@crystaldesign/web-planner-logic 25.5.0-beta.23 → 25.5.0-beta.25

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