@crystaldesign/web-planner-logic 25.5.0-beta.24 → 25.5.0-beta.26

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 (40) hide show
  1. package/build/cjs/{DivaBoxPlanner-1033eb82.js → DivaBoxPlanner-4c4c5907.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-cc9f217c.js → DivaStandardPlanner-009fd660.js} +2 -2
  3. package/build/cjs/{DoorPlanner-dc6fd38f.js → DoorPlanner-1be5ffce.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-2e02d190.js → Host3DSignalR-804049fc.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-b4e9dc6e.js → LiviqueWWSHandler-21356746.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-76c5ec66.js → PfisterWWSHandler-8fb8ec2d.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-59218e51.js → PlannerHandler2D-f33ffe15.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-c5432974.js → SeriousBasketHandler-07d4cc77.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-eef5622f.js → ShelfPlanner-55a68467.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-eb31a67e.js → StandardWWSHandler-4bbaa9e8.js} +1 -1
  11. package/build/cjs/{index-00c59464.js → index-0bd7d9d8.js} +166 -101
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-4bc43284.js → DivaBoxPlanner-dce8ec99.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-efb6dff8.js → DivaStandardPlanner-32ffafad.js} +2 -2
  15. package/build/esm/{DoorPlanner-115c1abf.js → DoorPlanner-b856a708.js} +1 -1
  16. package/build/esm/{Host3DSignalR-5e95c584.js → Host3DSignalR-358a2dcd.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-dde7053e.js → LiviqueWWSHandler-5993db4f.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-5e88e892.js → PfisterWWSHandler-3ac3632d.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-21bb9e89.js → PlannerHandler2D-f9ad3a72.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-4522e09d.js → SeriousBasketHandler-1f99d7ae.js} +1 -1
  21. package/build/esm/{ShelfPlanner-a476c247.js → ShelfPlanner-be7eeb0a.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-d19607b2.js → StandardWWSHandler-243499db.js} +1 -1
  23. package/build/esm/{index-9c21acb4.js → index-dab5a608.js} +166 -101
  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/Configuration.d.ts +4 -1
  28. package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +4 -1
  30. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts +1 -1
  32. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +7 -3
  33. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  34. package/build/types/web-planner-logic/src/logic/DivaCatalogHandler.d.ts +1 -0
  35. package/build/types/web-planner-logic/src/logic/DivaCatalogHandler.d.ts.map +1 -1
  36. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +2 -2
  37. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  38. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +1 -1
  39. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
  40. package/package.json +2 -2
@@ -441,9 +441,30 @@ var DivaApiHandler = /*#__PURE__*/function () {
441
441
  useMask: data.useMask,
442
442
  loadProductBasketParams: data.loadProductBasketParams,
443
443
  addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey,
444
- dontLoadDimensions: data.dontLoadDimensions
444
+ dontLoadDimensions: data.dontLoadDimensions,
445
+ useIDMService: data.useIDMService,
446
+ useEnricherService: data.useEnricherService,
447
+ packageId: plannerConfig.packageId
445
448
  };
446
449
  }
450
+ }, {
451
+ key: "useIDMService",
452
+ get: function get() {
453
+ var _this$divaWebConfigDa4;
454
+ return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.useIDMService;
455
+ }
456
+ }, {
457
+ key: "useEnricherService",
458
+ get: function get() {
459
+ var _this$divaWebConfigDa5;
460
+ return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.useEnricherService;
461
+ }
462
+ }, {
463
+ key: "packageId",
464
+ get: function get() {
465
+ var _this$divaWebConfigDa6;
466
+ return (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.packageId;
467
+ }
447
468
  }, {
448
469
  key: "getReportServiceUrl",
449
470
  value: function getReportServiceUrl() {
@@ -477,8 +498,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
477
498
  }, {
478
499
  key: "getLoadProductBasketParams",
479
500
  value: function getLoadProductBasketParams() {
480
- var _this$divaWebConfigDa4;
481
- return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.loadProductBasketParams;
501
+ var _this$divaWebConfigDa7;
502
+ return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.loadProductBasketParams;
482
503
  }
483
504
  }, {
484
505
  key: "get3DServerUrl",
@@ -489,26 +510,26 @@ var DivaApiHandler = /*#__PURE__*/function () {
489
510
  }, {
490
511
  key: "doCheckForProductsPrice",
491
512
  value: function doCheckForProductsPrice() {
492
- var _this$divaWebConfigDa5;
493
- return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.checkForProductsPrice;
513
+ var _this$divaWebConfigDa8;
514
+ return (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.checkForProductsPrice;
494
515
  }
495
516
  }, {
496
517
  key: "doCheckForProductsMatch",
497
518
  value: function doCheckForProductsMatch() {
498
- var _this$divaWebConfigDa6;
499
- return (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.checkForProductsMatch;
519
+ var _this$divaWebConfigDa9;
520
+ return (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.checkForProductsMatch;
500
521
  }
501
522
  }, {
502
523
  key: "getReportConfigIdentifier",
503
524
  value: function getReportConfigIdentifier() {
504
- var _this$divaWebConfigDa7;
505
- return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.reportConfigIdentifier;
525
+ var _this$divaWebConfigDa10;
526
+ return (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.reportConfigIdentifier;
506
527
  }
507
528
  }, {
508
529
  key: "getPrintOptions",
509
530
  value: function getPrintOptions() {
510
- var _this$divaWebConfigDa8;
511
- var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.reportConfig;
531
+ var _this$divaWebConfigDa11;
532
+ var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.reportConfig;
512
533
  return {
513
534
  Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
514
535
  PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
@@ -530,8 +551,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
530
551
  }, {
531
552
  key: "get3DRenderGroup",
532
553
  value: function get3DRenderGroup() {
533
- var _this$divaWebConfigDa9, _this$divaWebConfigDa10;
534
- return (_this$divaWebConfigDa9 = (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3dRenderGroup) !== null && _this$divaWebConfigDa9 !== void 0 ? _this$divaWebConfigDa9 : '';
554
+ var _this$divaWebConfigDa12, _this$divaWebConfigDa13;
555
+ return (_this$divaWebConfigDa12 = (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.diva3dRenderGroup) !== null && _this$divaWebConfigDa12 !== void 0 ? _this$divaWebConfigDa12 : '';
535
556
  }
536
557
  }, {
537
558
  key: "getServerId",
@@ -573,32 +594,32 @@ var DivaApiHandler = /*#__PURE__*/function () {
573
594
  }, {
574
595
  key: "getDiva3dStaticBGImage",
575
596
  value: function getDiva3dStaticBGImage() {
576
- var _this$divaWebConfigDa11;
577
- return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3dStaticBGImage;
597
+ var _this$divaWebConfigDa14;
598
+ return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.diva3dStaticBGImage;
578
599
  }
579
600
  }, {
580
601
  key: "getDiva3dStaticBGImage_DefaultRoomList",
581
602
  value: function getDiva3dStaticBGImage_DefaultRoomList() {
582
- var _this$divaWebConfigDa12, _this$divaWebConfigDa13;
583
- return ((_this$divaWebConfigDa12 = this.divaWebConfigData) === null || _this$divaWebConfigDa12 === void 0 ? void 0 : _this$divaWebConfigDa12.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.diva3dStaticBGImage_DefaultRoomList;
603
+ var _this$divaWebConfigDa15, _this$divaWebConfigDa16;
604
+ return ((_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa16 = this.divaWebConfigData) === null || _this$divaWebConfigDa16 === void 0 ? void 0 : _this$divaWebConfigDa16.diva3dStaticBGImage_DefaultRoomList;
584
605
  }
585
606
  }, {
586
607
  key: "getDiva3DAllowDefaultCatRoomList",
587
608
  value: function getDiva3DAllowDefaultCatRoomList() {
588
- var _this$divaWebConfigDa14;
589
- return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.diva3DAllowDefaultCatRoomList;
609
+ var _this$divaWebConfigDa17;
610
+ return (_this$divaWebConfigDa17 = this.divaWebConfigData) === null || _this$divaWebConfigDa17 === void 0 ? void 0 : _this$divaWebConfigDa17.diva3DAllowDefaultCatRoomList;
590
611
  }
591
612
  }, {
592
613
  key: "doAllowSetPlanner",
593
614
  value: function doAllowSetPlanner() {
594
- var _this$divaWebConfigDa15;
595
- return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.doAllowSetPlanner;
615
+ var _this$divaWebConfigDa18;
616
+ return (_this$divaWebConfigDa18 = this.divaWebConfigData) === null || _this$divaWebConfigDa18 === void 0 ? void 0 : _this$divaWebConfigDa18.doAllowSetPlanner;
596
617
  }
597
618
  }, {
598
619
  key: "getHidePlanner",
599
620
  value: function getHidePlanner() {
600
- var _this$divaWebConfigDa16;
601
- return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.hidePlanner);
621
+ var _this$divaWebConfigDa19;
622
+ return !!((_this$divaWebConfigDa19 = this.divaWebConfigData) !== null && _this$divaWebConfigDa19 !== void 0 && (_this$divaWebConfigDa19 = _this$divaWebConfigDa19.viewConfig) !== null && _this$divaWebConfigDa19 !== void 0 && _this$divaWebConfigDa19.hidePlanner);
602
623
  }
603
624
  }, {
604
625
  key: "getEnableRTVUnityKombi",
@@ -609,32 +630,32 @@ var DivaApiHandler = /*#__PURE__*/function () {
609
630
  }, {
610
631
  key: "getDoDisablePlanner2D",
611
632
  value: function getDoDisablePlanner2D() {
612
- var _this$divaWebConfigDa17;
613
- return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
633
+ var _this$divaWebConfigDa20;
634
+ return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.doDisablePlanner2D);
614
635
  }
615
636
  }, {
616
637
  key: "getRoomListInProduct",
617
638
  value: function getRoomListInProduct() {
618
- var _this$divaWebConfigDa18;
619
- return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
639
+ var _this$divaWebConfigDa21;
640
+ return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && (_this$divaWebConfigDa21 = _this$divaWebConfigDa21.viewConfig) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.roomListInProduct);
620
641
  }
621
642
  }, {
622
643
  key: "getPlannerType",
623
644
  value: function getPlannerType() {
624
- var _this$divaWebConfigDa19;
625
- return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 || (_this$divaWebConfigDa19 = _this$divaWebConfigDa19.viewConfig) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.plannerType;
645
+ var _this$divaWebConfigDa22;
646
+ return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 || (_this$divaWebConfigDa22 = _this$divaWebConfigDa22.viewConfig) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.plannerType;
626
647
  }
627
648
  }, {
628
649
  key: "getLoadSupplierColors",
629
650
  value: function getLoadSupplierColors() {
630
- var _this$divaWebConfigDa20;
631
- return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
651
+ var _this$divaWebConfigDa23;
652
+ return !!((_this$divaWebConfigDa23 = this.divaWebConfigData) !== null && _this$divaWebConfigDa23 !== void 0 && _this$divaWebConfigDa23.loadSupplierColors);
632
653
  }
633
654
  }, {
634
655
  key: "showSelectionModeZero",
635
656
  value: function showSelectionModeZero() {
636
- var _this$divaWebConfigDa21;
637
- return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
657
+ var _this$divaWebConfigDa24;
658
+ return !!((_this$divaWebConfigDa24 = this.divaWebConfigData) !== null && _this$divaWebConfigDa24 !== void 0 && _this$divaWebConfigDa24.showSelectionModeZero);
638
659
  }
639
660
  }, {
640
661
  key: "ruleDescSeperator",
@@ -737,56 +758,56 @@ var DivaApiHandler = /*#__PURE__*/function () {
737
758
  }, {
738
759
  key: "getViewConfig",
739
760
  value: function getViewConfig() {
740
- var _this$divaWebConfigDa22;
741
- return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.viewConfig;
761
+ var _this$divaWebConfigDa25;
762
+ return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.viewConfig;
742
763
  }
743
764
  }, {
744
765
  key: "getEmailConfig",
745
766
  value: function getEmailConfig() {
746
- var _this$divaWebConfigDa23;
747
- return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.emailConfig;
767
+ var _this$divaWebConfigDa26;
768
+ return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.emailConfig;
748
769
  }
749
770
  }, {
750
771
  key: "getABTestCases",
751
772
  value: function getABTestCases() {
752
- var _this$divaWebConfigDa24, _this$divaWebConfigDa25;
753
- return (_this$divaWebConfigDa24 = (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.abTestCases) !== null && _this$divaWebConfigDa24 !== void 0 ? _this$divaWebConfigDa24 : [];
773
+ var _this$divaWebConfigDa27, _this$divaWebConfigDa28;
774
+ return (_this$divaWebConfigDa27 = (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.abTestCases) !== null && _this$divaWebConfigDa27 !== void 0 ? _this$divaWebConfigDa27 : [];
754
775
  }
755
776
  }, {
756
777
  key: "getBarrierConfig",
757
778
  value: function getBarrierConfig() {
758
- var _this$divaWebConfigDa26;
759
- return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.barrierConfig;
779
+ var _this$divaWebConfigDa29;
780
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.barrierConfig;
760
781
  }
761
782
  }, {
762
783
  key: "getTemplateConfig",
763
784
  value: function getTemplateConfig() {
764
- var _this$divaWebConfigDa27;
765
- return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.templateConfig;
785
+ var _this$divaWebConfigDa30;
786
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.templateConfig;
766
787
  }
767
788
  }, {
768
789
  key: "showDivaNr",
769
790
  value: function showDivaNr() {
770
- var _this$divaWebConfigDa28;
771
- return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.showDivaNr;
791
+ var _this$divaWebConfigDa31;
792
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.showDivaNr;
772
793
  }
773
794
  }, {
774
795
  key: "dontLoadDimensions",
775
796
  value: function dontLoadDimensions() {
776
- var _this$divaWebConfigDa29;
777
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.dontLoadDimensions;
797
+ var _this$divaWebConfigDa32;
798
+ return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.dontLoadDimensions;
778
799
  }
779
800
  }, {
780
801
  key: "onErrorHandling",
781
802
  value: function onErrorHandling() {
782
- var _this$divaWebConfigDa30;
783
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.onErrorHandling;
803
+ var _this$divaWebConfigDa33;
804
+ return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.onErrorHandling;
784
805
  }
785
806
  }, {
786
807
  key: "diva3DRenderingDefault",
787
808
  value: function diva3DRenderingDefault() {
788
- var _this$divaWebConfigDa31;
789
- return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.diva3DRenderingDefault;
809
+ var _this$divaWebConfigDa34;
810
+ return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.diva3DRenderingDefault;
790
811
  }
791
812
  }, {
792
813
  key: "getJwt",
@@ -801,13 +822,13 @@ var DivaApiHandler = /*#__PURE__*/function () {
801
822
  }, {
802
823
  key: "getUseMask",
803
824
  value: function getUseMask() {
804
- var _this$divaWebConfigDa32;
805
- return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.useMask;
825
+ var _this$divaWebConfigDa35;
826
+ return (_this$divaWebConfigDa35 = this.divaWebConfigData) === null || _this$divaWebConfigDa35 === void 0 ? void 0 : _this$divaWebConfigDa35.useMask;
806
827
  }
807
828
  }, {
808
829
  key: "apiUrl",
809
830
  value: function apiUrl(queryString, useWebServiceApi) {
810
- var _this$apiConfig21, _this$apiConfig22, _this$apiConfig23;
831
+ var _this$apiConfig23, _this$apiConfig24, _this$apiConfig25;
811
832
  if (useWebServiceApi == 'catalog') {
812
833
  var _this$apiConfig13, _this$apiConfig14;
813
834
  if (!((_this$apiConfig13 = this.apiConfig) !== null && _this$apiConfig13 !== void 0 && _this$apiConfig13.catalogService)) throw new Error('No catalog Service defined');
@@ -824,17 +845,22 @@ var DivaApiHandler = /*#__PURE__*/function () {
824
845
  return ((_this$apiConfig18 = this.apiConfig) === null || _this$apiConfig18 === void 0 ? void 0 : _this$apiConfig18.reportService) + queryString;
825
846
  }
826
847
  if (useWebServiceApi == 'enricher') {
827
- var _this$apiConfig19, _this$apiConfig20;
828
- if (!((_this$apiConfig19 = this.apiConfig) !== null && _this$apiConfig19 !== void 0 && _this$apiConfig19.enricherService)) throw new Error('No report Service defined');
829
- return ((_this$apiConfig20 = this.apiConfig) === null || _this$apiConfig20 === void 0 ? void 0 : _this$apiConfig20.enricherService) + queryString;
848
+ var _this$apiConfig21, _this$apiConfig22;
849
+ if (this.useIDMService) {
850
+ var _this$apiConfig19, _this$apiConfig20;
851
+ if (!((_this$apiConfig19 = this.apiConfig) !== null && _this$apiConfig19 !== void 0 && _this$apiConfig19.idmService)) throw new Error('No report Service defined');
852
+ return ((_this$apiConfig20 = this.apiConfig) === null || _this$apiConfig20 === void 0 ? void 0 : _this$apiConfig20.idmService) + queryString;
853
+ }
854
+ if (!((_this$apiConfig21 = this.apiConfig) !== null && _this$apiConfig21 !== void 0 && _this$apiConfig21.enricherService)) throw new Error('No report Service defined');
855
+ return ((_this$apiConfig22 = this.apiConfig) === null || _this$apiConfig22 === void 0 ? void 0 : _this$apiConfig22.enricherService) + queryString;
830
856
  }
831
- var url = (_this$apiConfig21 = this.apiConfig) === null || _this$apiConfig21 === void 0 ? void 0 : _this$apiConfig21.api2["default"];
832
- if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig22 = this.apiConfig) !== null && _this$apiConfig22 !== void 0 && _this$apiConfig22.api2.web) {
857
+ var url = (_this$apiConfig23 = this.apiConfig) === null || _this$apiConfig23 === void 0 ? void 0 : _this$apiConfig23.api2["default"];
858
+ if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig24 = this.apiConfig) !== null && _this$apiConfig24 !== void 0 && _this$apiConfig24.api2.web) {
833
859
  url = this.apiConfig.api2.web;
834
860
  }
835
- if (this.useEkPrices && (_this$apiConfig23 = this.apiConfig) !== null && _this$apiConfig23 !== void 0 && _this$apiConfig23.api2.ek) {
836
- var _this$apiConfig24;
837
- url = (_this$apiConfig24 = this.apiConfig) === null || _this$apiConfig24 === void 0 ? void 0 : _this$apiConfig24.api2.ek;
861
+ if (this.useEkPrices && (_this$apiConfig25 = this.apiConfig) !== null && _this$apiConfig25 !== void 0 && _this$apiConfig25.api2.ek) {
862
+ var _this$apiConfig26;
863
+ url = (_this$apiConfig26 = this.apiConfig) === null || _this$apiConfig26 === void 0 ? void 0 : _this$apiConfig26.api2.ek;
838
864
  }
839
865
  if (!url) throw new Error('No API2 defined');
840
866
  return url + '?' + queryString;
@@ -1001,56 +1027,62 @@ var DivaApiHandler = /*#__PURE__*/function () {
1001
1027
  }
1002
1028
 
1003
1029
  /******************IDM Service CALLs */
1030
+ }, {
1031
+ key: "idmPrefix",
1032
+ get: function get() {
1033
+ if (this.useEnricherService && !this.packageId) throw new Error('packageId as parameter not missing');
1034
+ return this.useEnricherService ? '/wysiwyg/v3.0/' + this.packageId : !this.useIDMService ? '/live/v3.0' : '/v3.0';
1035
+ }
1004
1036
  }, {
1005
1037
  key: "getIDMCatalog",
1006
1038
  value: function getIDMCatalog(catalogId) {
1007
- return '/live/v3.0/catalogs/' + catalogId;
1039
+ return this.idmPrefix + '/catalogs' + (!this.useEnricherService ? '/' + catalogId : '');
1008
1040
  }
1009
1041
  }, {
1010
1042
  key: "getIDMSerieByNo",
1011
1043
  value: function getIDMSerieByNo(catalogId, serieNo) {
1012
- return '/live/v3.0/catalogs/' + catalogId + '/series' + '?filter=' + encodeURIComponent('serieNo==' + serieNo);
1044
+ return this.idmPrefix + '/catalogs/' + catalogId + '/series' + '?filter=' + encodeURIComponent('serieNo==' + serieNo);
1013
1045
  }
1014
1046
  }, {
1015
1047
  key: "getIDMItems",
1016
1048
  value: function getIDMItems(catalogId, serieId, typeNos) {
1017
- return '/live/v3.0/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
1049
+ return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
1018
1050
  return encodeURIComponent('typeNo==' + t);
1019
1051
  }).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;detailInfos;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber');
1020
1052
  }
1021
1053
  }, {
1022
1054
  key: "getIDMItem",
1023
1055
  value: function getIDMItem(catalogId, serieId, typeNo) {
1024
- return '/live/v3.0/catalogs/' + catalogId + '/series/' + serieId + '/items/' + typeNo;
1056
+ return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items/' + typeNo;
1025
1057
  }
1026
1058
  }, {
1027
1059
  key: "getIDMFeatures",
1028
1060
  value: function getIDMFeatures(catalogId, features) {
1029
- return '/live/v3.0/catalogs/' + catalogId + '/features' + '?featureNos=' + features.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1061
+ return this.idmPrefix + '/catalogs/' + catalogId + '/features' + '?featureNos=' + features.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1030
1062
  }
1031
1063
  }, {
1032
1064
  key: "getIDMDecisions",
1033
1065
  value: function getIDMDecisions(catalogId, decisions) {
1034
- return '/live/v3.0/catalogs/' + catalogId + '/decisions' + '?decisionNos=' + decisions.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1066
+ return this.idmPrefix + '/catalogs/' + catalogId + '/decisions' + '?decisionNos=' + decisions.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1035
1067
  }
1036
1068
  }, {
1037
1069
  key: "getIDMDetailInfos",
1038
1070
  value: function getIDMDetailInfos(catalogId, detailinfos) {
1039
- return '/live/v3.0/catalogs/' + catalogId + '/detailinfos' + '?filter=' + detailinfos.map(function (d) {
1071
+ return this.idmPrefix + '/catalogs/' + catalogId + '/detailinfos' + '?filter=' + detailinfos.map(function (d) {
1040
1072
  return encodeURIComponent('featureClassNo==' + d);
1041
1073
  }).join(' || ');
1042
1074
  }
1043
1075
  }, {
1044
1076
  key: "getIDMFeatureClass",
1045
1077
  value: function getIDMFeatureClass(catalogId, featureclasses) {
1046
- return '/live/v3.0/catalogs/' + catalogId + '/featureclasses' + '?filter=' + featureclasses.map(function (f) {
1078
+ return this.idmPrefix + '/catalogs/' + catalogId + '/featureclasses' + '?filter=' + featureclasses.map(function (f) {
1047
1079
  return encodeURIComponent('featureClassNo==' + f);
1048
1080
  }).join(' || ');
1049
1081
  }
1050
1082
  }, {
1051
1083
  key: "getIDMPriceFeatureGroups",
1052
1084
  value: function getIDMPriceFeatureGroups(catalogId, pricefeaturegroups) {
1053
- return '/live/v3.0/catalogs/' + catalogId + '/pricefeaturegroups' + '?filter=' + pricefeaturegroups.map(function (p) {
1085
+ return this.idmPrefix + '/catalogs/' + catalogId + '/pricefeaturegroups' + '?filter=' + pricefeaturegroups.map(function (p) {
1054
1086
  return encodeURIComponent('priceFeatureGroupNo==' + p);
1055
1087
  }).join(' || ');
1056
1088
  }
@@ -1217,12 +1249,12 @@ var DivaApiHandler = /*#__PURE__*/function () {
1217
1249
  key: "getDimensionbyId",
1218
1250
  value: function () {
1219
1251
  var _getDimensionbyId = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(id, iln, catalogCodex, plannedOptions) {
1220
- var _this$apiConfig25;
1252
+ var _this$apiConfig27;
1221
1253
  var fullUrl, res, headers;
1222
1254
  return _regeneratorRuntime.wrap(function _callee11$(_context11) {
1223
1255
  while (1) switch (_context11.prev = _context11.next) {
1224
1256
  case 0:
1225
- fullUrl = this.getConstructorServiceUrl() + '/dimension/' + id + '?iln=' + iln + '&catalogCodex=' + catalogCodex + '&debug=' + ((_this$apiConfig25 = this.apiConfig) === null || _this$apiConfig25 === void 0 ? void 0 : _this$apiConfig25.useDebugUrl);
1257
+ fullUrl = this.getConstructorServiceUrl() + '/dimension/' + id + '?iln=' + iln + '&catalogCodex=' + catalogCodex + '&debug=' + ((_this$apiConfig27 = this.apiConfig) === null || _this$apiConfig27 === void 0 ? void 0 : _this$apiConfig27.useDebugUrl);
1226
1258
  headers = {};
1227
1259
  if (this.jwt) headers = {
1228
1260
  Authorization: 'Bearer ' + this.jwt
@@ -1355,14 +1387,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1355
1387
  }, {
1356
1388
  key: "dontLoadAdditionalModelInfos",
1357
1389
  get: function get() {
1358
- var _this$divaWebConfigDa33;
1359
- return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadAdditionalModelInfos;
1390
+ var _this$divaWebConfigDa36;
1391
+ return (_this$divaWebConfigDa36 = this.divaWebConfigData) === null || _this$divaWebConfigDa36 === void 0 ? void 0 : _this$divaWebConfigDa36.dontLoadAdditionalModelInfos;
1360
1392
  }
1361
1393
  }, {
1362
1394
  key: "dontLoadCatalogEditorLiteMask",
1363
1395
  get: function get() {
1364
- var _this$divaWebConfigDa34;
1365
- return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.dontLoadCatalogEditorLiteMask;
1396
+ var _this$divaWebConfigDa37;
1397
+ return (_this$divaWebConfigDa37 = this.divaWebConfigData) === null || _this$divaWebConfigDa37 === void 0 ? void 0 : _this$divaWebConfigDa37.dontLoadCatalogEditorLiteMask;
1366
1398
  }
1367
1399
  }, {
1368
1400
  key: "OrganizationId",
@@ -19130,8 +19162,9 @@ var getFeatures = function getFeatures(set, featureClasses) {
19130
19162
  return toLoadFeatures;
19131
19163
  };
19132
19164
  var getFeaturesByFeatureClass = function getFeaturesByFeatureClass(featureClass) {
19165
+ var _featureClass$feature;
19133
19166
  var neededFeatures = [];
19134
- var featureRefs = Object.keys(featureClass.featureRefs);
19167
+ var featureRefs = Object.keys((_featureClass$feature = featureClass.featureRefs) !== null && _featureClass$feature !== void 0 ? _featureClass$feature : {});
19135
19168
  for (var j = 0; j < featureRefs.length; j++) {
19136
19169
  neededFeatures.push(featureRefs[j]);
19137
19170
  }
@@ -19214,7 +19247,7 @@ var parseOptionSetRef = function parseOptionSetRef(optionsSetRefs, idmOptionGrou
19214
19247
  value: group
19215
19248
  };
19216
19249
  } else {
19217
- throw new Error('rule not implemented' + JSON.stringify(optionsSetRefs));
19250
+ LOG$j.error(new Error('rule not implemented' + JSON.stringify(optionsSetRefs)));
19218
19251
  }
19219
19252
  }
19220
19253
  } else {
@@ -19852,9 +19885,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
19852
19885
  this._api = api;
19853
19886
  this.additionalModelInfos = additionalModelInfos;
19854
19887
  if (json.Properties) {
19855
- var _this$catalogMask$cat, _this$catalogMask;
19888
+ var _json$Properties, _this$catalogMask$cat, _this$catalogMask;
19856
19889
  this.origProperties = json.Properties;
19857
- this.initProperties(catalogCodex, [].concat(_toConsumableArray(json.Properties), _toConsumableArray((_this$catalogMask$cat = (_this$catalogMask = this.catalogMask) === null || _this$catalogMask === void 0 || (_this$catalogMask = _this$catalogMask.catalog) === null || _this$catalogMask === void 0 ? void 0 : _this$catalogMask.properties) !== null && _this$catalogMask$cat !== void 0 ? _this$catalogMask$cat : [])));
19890
+ this.initProperties(catalogCodex, [].concat(_toConsumableArray((_json$Properties = json.Properties) !== null && _json$Properties !== void 0 ? _json$Properties : []), _toConsumableArray((_this$catalogMask$cat = (_this$catalogMask = this.catalogMask) === null || _this$catalogMask === void 0 || (_this$catalogMask = _this$catalogMask.catalog) === null || _this$catalogMask === void 0 ? void 0 : _this$catalogMask.properties) !== null && _this$catalogMask$cat !== void 0 ? _this$catalogMask$cat : [])));
19858
19891
  }
19859
19892
  this.plannerPaletteViewInfo = {
19860
19893
  catalogPlannerArticles: [],
@@ -19886,8 +19919,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
19886
19919
  initIDMArticles(articleJson, this);
19887
19920
  }
19888
19921
  if (this.origProperties) {
19889
- var _this$catalogMask$cat2, _this$catalogMask2;
19890
- this.initPropertiesAfterOptionsInit(catalogCodex, [].concat(_toConsumableArray(json.Properties), _toConsumableArray((_this$catalogMask$cat2 = (_this$catalogMask2 = this.catalogMask) === null || _this$catalogMask2 === void 0 || (_this$catalogMask2 = _this$catalogMask2.catalog) === null || _this$catalogMask2 === void 0 ? void 0 : _this$catalogMask2.properties) !== null && _this$catalogMask$cat2 !== void 0 ? _this$catalogMask$cat2 : [])));
19922
+ var _json$Properties2, _this$catalogMask$cat2, _this$catalogMask2;
19923
+ this.initPropertiesAfterOptionsInit(catalogCodex, [].concat(_toConsumableArray((_json$Properties2 = json.Properties) !== null && _json$Properties2 !== void 0 ? _json$Properties2 : []), _toConsumableArray((_this$catalogMask$cat2 = (_this$catalogMask2 = this.catalogMask) === null || _this$catalogMask2 === void 0 || (_this$catalogMask2 = _this$catalogMask2.catalog) === null || _this$catalogMask2 === void 0 ? void 0 : _this$catalogMask2.properties) !== null && _this$catalogMask$cat2 !== void 0 ? _this$catalogMask$cat2 : [])));
19891
19924
  }
19892
19925
  }
19893
19926
  return _createClass(DivaCatalogData, [{
@@ -20094,8 +20127,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
20094
20127
  }
20095
20128
  }, {
20096
20129
  key: "getFeatures",
20097
- value: function getFeatures(featureRefs) {
20130
+ value: function getFeatures() {
20098
20131
  var _this3 = this;
20132
+ var featureRefs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
20099
20133
  return featureRefs.map(function (ref) {
20100
20134
  return _this3.catalogData.loadedFeatures.find(function (f) {
20101
20135
  return f.featureNo == ref;
@@ -21390,7 +21424,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
21390
21424
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
21391
21425
  while (1) switch (_context3.prev = _context3.next) {
21392
21426
  case 0:
21393
- 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];
21427
+ 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];
21394
21428
  _context3.next = 3;
21395
21429
  return Promise.all(promises);
21396
21430
  case 3:
@@ -21408,13 +21442,41 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
21408
21442
  case "end":
21409
21443
  return _context3.stop();
21410
21444
  }
21411
- }, _callee3);
21445
+ }, _callee3, this);
21412
21446
  }));
21413
21447
  function loadIDMCatalog(_x7, _x8, _x9, _x10, _x11) {
21414
21448
  return _loadIDMCatalog.apply(this, arguments);
21415
21449
  }
21416
21450
  return loadIDMCatalog;
21417
21451
  }()
21452
+ }, {
21453
+ key: "getAdditionalModeInfos",
21454
+ value: function () {
21455
+ var _getAdditionalModeInfos = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(state, serieId, accountId) {
21456
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
21457
+ while (1) switch (_context4.prev = _context4.next) {
21458
+ case 0:
21459
+ _context4.prev = 0;
21460
+ _context4.next = 3;
21461
+ return state.api.getDataCache(state.api.getAdditionalModelInfosQS(accountId, serieId), undefined, undefined, 'catalog');
21462
+ case 3:
21463
+ return _context4.abrupt("return", _context4.sent);
21464
+ case 6:
21465
+ _context4.prev = 6;
21466
+ _context4.t0 = _context4["catch"](0);
21467
+ LOG$g.debug('additional ModelInfo not found');
21468
+ return _context4.abrupt("return", undefined);
21469
+ case 10:
21470
+ case "end":
21471
+ return _context4.stop();
21472
+ }
21473
+ }, _callee4, null, [[0, 6]]);
21474
+ }));
21475
+ function getAdditionalModeInfos(_x12, _x13, _x14) {
21476
+ return _getAdditionalModeInfos.apply(this, arguments);
21477
+ }
21478
+ return getAdditionalModeInfos;
21479
+ }()
21418
21480
  }]);
21419
21481
  }();
21420
21482
  var catalogHandlerInstance = new DivaCatalogHandler();
@@ -23930,9 +23992,10 @@ var IDMEngine = /*#__PURE__*/function () {
23930
23992
  }, {
23931
23993
  key: "evalType1Decision",
23932
23994
  value: function evalType1Decision(decision) {
23995
+ var _decision$featureRefs;
23933
23996
  var validOptions = {};
23934
23997
  var doAlsoCheckFeatureNos = [];
23935
- if (!decision.optionCombinations.length || !decision.featureRefs.length) return;
23998
+ if (!decision.optionCombinations.length || !((_decision$featureRefs = decision.featureRefs) !== null && _decision$featureRefs !== void 0 && _decision$featureRefs.length)) return;
23936
23999
  var sortedDeatureRefs = this.sortFeatures(decision.featureRefs);
23937
24000
  for (var p = 0; p < sortedDeatureRefs.length; p++) {
23938
24001
  var featureNo = sortedDeatureRefs[p];
@@ -24033,10 +24096,10 @@ var IDMEngine = /*#__PURE__*/function () {
24033
24096
  }, {
24034
24097
  key: "evalType0Decision",
24035
24098
  value: function evalType0Decision(decision) {
24036
- var _decision$optionCombi;
24099
+ var _decision$optionCombi, _decision$featureRefs2;
24037
24100
  var invalidOptions = {},
24038
24101
  doAlsoCheckFeature = [];
24039
- if (!((_decision$optionCombi = decision.optionCombinations) !== null && _decision$optionCombi !== void 0 && _decision$optionCombi.length) || !decision.featureRefs.length) return;
24102
+ 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;
24040
24103
  var sortedDeatureRefs = this.sortFeatures(decision.featureRefs);
24041
24104
  for (var p = 0; p < sortedDeatureRefs.length; p++) {
24042
24105
  var featureNo = sortedDeatureRefs[p];
@@ -24137,7 +24200,7 @@ var IDMEngine = /*#__PURE__*/function () {
24137
24200
  } else if (action.value) {
24138
24201
  _this2.assignOptionValue(action.target, action.value, action.actionType === 'SET_FEATURE_FIXED' ? 'fix' : 'set');
24139
24202
  } else {
24140
- throw new Error('check this usecase idk');
24203
+ LOG$e.error(new Error('decision' + decision.decisionNo + ' has action that referst to a feature that does not existi on this article'));
24141
24204
  }
24142
24205
  break;
24143
24206
  case '1':
@@ -24223,8 +24286,9 @@ var IDMEngine = /*#__PURE__*/function () {
24223
24286
  ref = _command$split2[0];
24224
24287
  value = _command$split2[1];
24225
24288
  if (ref == 'FEATURE_REF') {
24289
+ var _this$article$getArti;
24226
24290
  ref = undefined;
24227
- value = this.article.getArticleOptionState(value).valCodex;
24291
+ value = (_this$article$getArti = this.article.getArticleOptionState(value)) === null || _this$article$getArti === void 0 ? void 0 : _this$article$getArti.valCodex;
24228
24292
  } else if (ref == 'OPTION_REF') {
24229
24293
  ref = undefined;
24230
24294
  } else if (ref == 'FORMULA_REF') {
@@ -24644,7 +24708,8 @@ var IDMEngine = /*#__PURE__*/function () {
24644
24708
  var variantValuesArr = [];
24645
24709
  var decisions = this.decisions;
24646
24710
  var relevantDecisions = decisions.filter(function (d) {
24647
- return d.featureRefs.includes(featureNo);
24711
+ var _d$featureRefs;
24712
+ return (_d$featureRefs = d.featureRefs) === null || _d$featureRefs === void 0 ? void 0 : _d$featureRefs.includes(featureNo);
24648
24713
  });
24649
24714
  for (var i = 0; i < relevantDecisions.length; i++) {
24650
24715
  var decision = relevantDecisions[i];
@@ -27197,7 +27262,7 @@ var DivaArticle = /*#__PURE__*/function () {
27197
27262
  break;
27198
27263
  }
27199
27264
  _context.next = 4;
27200
- return import('./ShelfPlanner-a476c247.js');
27265
+ return import('./ShelfPlanner-be7eeb0a.js');
27201
27266
  case 4:
27202
27267
  _yield$import = _context.sent;
27203
27268
  ShelfPlanner = _yield$import["default"];
@@ -31846,7 +31911,7 @@ var DivaSet = /*#__PURE__*/function () {
31846
31911
  break;
31847
31912
  }
31848
31913
  _context5.next = 3;
31849
- return import('./DoorPlanner-115c1abf.js');
31914
+ return import('./DoorPlanner-b856a708.js');
31850
31915
  case 3:
31851
31916
  _yield$import = _context5.sent;
31852
31917
  DoorPlanner = _yield$import["default"];
@@ -38721,7 +38786,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38721
38786
  break;
38722
38787
  case 3:
38723
38788
  _context12.next = 5;
38724
- return import('./PfisterWWSHandler-5e88e892.js');
38789
+ return import('./PfisterWWSHandler-3ac3632d.js');
38725
38790
  case 5:
38726
38791
  _yield$import = _context12.sent;
38727
38792
  PfisterWWSHandler = _yield$import["default"];
@@ -38729,7 +38794,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38729
38794
  return _context12.abrupt("break", 27);
38730
38795
  case 9:
38731
38796
  _context12.next = 11;
38732
- return import('./LiviqueWWSHandler-dde7053e.js');
38797
+ return import('./LiviqueWWSHandler-5993db4f.js');
38733
38798
  case 11:
38734
38799
  _yield$import2 = _context12.sent;
38735
38800
  LiviqueWWSHandler = _yield$import2["default"];
@@ -38737,7 +38802,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38737
38802
  return _context12.abrupt("break", 27);
38738
38803
  case 15:
38739
38804
  _context12.next = 17;
38740
- return import('./SeriousBasketHandler-4522e09d.js');
38805
+ return import('./SeriousBasketHandler-1f99d7ae.js');
38741
38806
  case 17:
38742
38807
  _yield$import3 = _context12.sent;
38743
38808
  SeriousWWSHandler = _yield$import3["default"];
@@ -38745,7 +38810,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38745
38810
  return _context12.abrupt("break", 27);
38746
38811
  case 21:
38747
38812
  _context12.next = 23;
38748
- return import('./StandardWWSHandler-d19607b2.js');
38813
+ return import('./StandardWWSHandler-243499db.js');
38749
38814
  case 23:
38750
38815
  _yield$import4 = _context12.sent;
38751
38816
  StandardWWSHandler = _yield$import4["default"];
@@ -40173,7 +40238,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
40173
40238
  while (1) switch (_context3.prev = _context3.next) {
40174
40239
  case 0:
40175
40240
  _context3.next = 2;
40176
- return import('./Host3DSignalR-5e95c584.js');
40241
+ return import('./Host3DSignalR-358a2dcd.js');
40177
40242
  case 2:
40178
40243
  _yield$import = _context3.sent;
40179
40244
  Host3DSignalR = _yield$import["default"];
@@ -41730,7 +41795,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
41730
41795
  break;
41731
41796
  case 8:
41732
41797
  _context4.next = 10;
41733
- return import('./DivaStandardPlanner-efb6dff8.js');
41798
+ return import('./DivaStandardPlanner-32ffafad.js');
41734
41799
  case 10:
41735
41800
  _yield$import = _context4.sent;
41736
41801
  DivaStandardPlanner = _yield$import["default"];
@@ -41741,7 +41806,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
41741
41806
  return _context4.abrupt("break", 21);
41742
41807
  case 15:
41743
41808
  _context4.next = 17;
41744
- return import('./DivaBoxPlanner-4bc43284.js');
41809
+ return import('./DivaBoxPlanner-dce8ec99.js');
41745
41810
  case 17:
41746
41811
  _yield$import2 = _context4.sent;
41747
41812
  DivaBoxPlanner = _yield$import2["default"];