@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.
- package/build/cjs/{DivaBoxPlanner-34742921.js → DivaBoxPlanner-4c4c5907.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-32079554.js → DivaStandardPlanner-009fd660.js} +2 -2
- package/build/cjs/{DoorPlanner-17cec7e7.js → DoorPlanner-1be5ffce.js} +1 -1
- package/build/cjs/{Host3DSignalR-77d09d15.js → Host3DSignalR-804049fc.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-e1f87ae3.js → LiviqueWWSHandler-21356746.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-6f5672b9.js → PfisterWWSHandler-8fb8ec2d.js} +1 -1
- package/build/cjs/{PlannerHandler2D-b1354a71.js → PlannerHandler2D-f33ffe15.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-d3864f70.js → SeriousBasketHandler-07d4cc77.js} +1 -1
- package/build/cjs/{ShelfPlanner-2db3c4a8.js → ShelfPlanner-55a68467.js} +1 -1
- package/build/cjs/{StandardWWSHandler-db6b5fca.js → StandardWWSHandler-4bbaa9e8.js} +1 -1
- package/build/cjs/{index-4977414c.js → index-0bd7d9d8.js} +167 -101
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-a981fb02.js → DivaBoxPlanner-dce8ec99.js} +2 -2
- package/build/esm/{DivaStandardPlanner-280e1526.js → DivaStandardPlanner-32ffafad.js} +2 -2
- package/build/esm/{DoorPlanner-be8b2d1d.js → DoorPlanner-b856a708.js} +1 -1
- package/build/esm/{Host3DSignalR-f7d149a0.js → Host3DSignalR-358a2dcd.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-0cae8969.js → LiviqueWWSHandler-5993db4f.js} +1 -1
- package/build/esm/{PfisterWWSHandler-a08c74f9.js → PfisterWWSHandler-3ac3632d.js} +1 -1
- package/build/esm/{PlannerHandler2D-3c00ee4d.js → PlannerHandler2D-f9ad3a72.js} +1 -1
- package/build/esm/{SeriousBasketHandler-55877df4.js → SeriousBasketHandler-1f99d7ae.js} +1 -1
- package/build/esm/{ShelfPlanner-750e93d3.js → ShelfPlanner-be7eeb0a.js} +1 -1
- package/build/esm/{StandardWWSHandler-34d7a2c7.js → StandardWWSHandler-243499db.js} +1 -1
- package/build/esm/{index-3a8d263d.js → index-dab5a608.js} +167 -101
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +1 -0
- package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Configuration.d.ts +4 -1
- package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +4 -1
- package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +7 -3
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaCatalogHandler.d.ts +1 -0
- package/build/types/web-planner-logic/src/logic/DivaCatalogHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +2 -2
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -458,9 +458,30 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
458
458
|
useMask: data.useMask,
|
|
459
459
|
loadProductBasketParams: data.loadProductBasketParams,
|
|
460
460
|
addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey,
|
|
461
|
-
dontLoadDimensions: data.dontLoadDimensions
|
|
461
|
+
dontLoadDimensions: data.dontLoadDimensions,
|
|
462
|
+
useIDMService: data.useIDMService,
|
|
463
|
+
useEnricherService: data.useEnricherService,
|
|
464
|
+
packageId: plannerConfig.packageId
|
|
462
465
|
};
|
|
463
466
|
}
|
|
467
|
+
}, {
|
|
468
|
+
key: "useIDMService",
|
|
469
|
+
get: function get() {
|
|
470
|
+
var _this$divaWebConfigDa4;
|
|
471
|
+
return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.useIDMService;
|
|
472
|
+
}
|
|
473
|
+
}, {
|
|
474
|
+
key: "useEnricherService",
|
|
475
|
+
get: function get() {
|
|
476
|
+
var _this$divaWebConfigDa5;
|
|
477
|
+
return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.useEnricherService;
|
|
478
|
+
}
|
|
479
|
+
}, {
|
|
480
|
+
key: "packageId",
|
|
481
|
+
get: function get() {
|
|
482
|
+
var _this$divaWebConfigDa6;
|
|
483
|
+
return (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.packageId;
|
|
484
|
+
}
|
|
464
485
|
}, {
|
|
465
486
|
key: "getReportServiceUrl",
|
|
466
487
|
value: function getReportServiceUrl() {
|
|
@@ -494,8 +515,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
494
515
|
}, {
|
|
495
516
|
key: "getLoadProductBasketParams",
|
|
496
517
|
value: function getLoadProductBasketParams() {
|
|
497
|
-
var _this$
|
|
498
|
-
return (_this$
|
|
518
|
+
var _this$divaWebConfigDa7;
|
|
519
|
+
return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.loadProductBasketParams;
|
|
499
520
|
}
|
|
500
521
|
}, {
|
|
501
522
|
key: "get3DServerUrl",
|
|
@@ -506,32 +527,33 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
506
527
|
}, {
|
|
507
528
|
key: "doCheckForProductsPrice",
|
|
508
529
|
value: function doCheckForProductsPrice() {
|
|
509
|
-
var _this$
|
|
510
|
-
return (_this$
|
|
530
|
+
var _this$divaWebConfigDa8;
|
|
531
|
+
return (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.checkForProductsPrice;
|
|
511
532
|
}
|
|
512
533
|
}, {
|
|
513
534
|
key: "doCheckForProductsMatch",
|
|
514
535
|
value: function doCheckForProductsMatch() {
|
|
515
|
-
var _this$
|
|
516
|
-
return (_this$
|
|
536
|
+
var _this$divaWebConfigDa9;
|
|
537
|
+
return (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.checkForProductsMatch;
|
|
517
538
|
}
|
|
518
539
|
}, {
|
|
519
540
|
key: "getReportConfigIdentifier",
|
|
520
541
|
value: function getReportConfigIdentifier() {
|
|
521
|
-
var _this$
|
|
522
|
-
return (_this$
|
|
542
|
+
var _this$divaWebConfigDa10;
|
|
543
|
+
return (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.reportConfigIdentifier;
|
|
523
544
|
}
|
|
524
545
|
}, {
|
|
525
546
|
key: "getPrintOptions",
|
|
526
547
|
value: function getPrintOptions() {
|
|
527
|
-
var _this$
|
|
528
|
-
var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$
|
|
548
|
+
var _this$divaWebConfigDa11;
|
|
549
|
+
var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.reportConfig;
|
|
529
550
|
return {
|
|
530
551
|
Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
|
|
531
552
|
PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
|
|
532
553
|
Remark: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithRemark),
|
|
533
554
|
Prices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPrices),
|
|
534
555
|
AllPrices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithAllPrices),
|
|
556
|
+
arQrCode: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithArQrCode),
|
|
535
557
|
OpvCodices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithOpvCodices),
|
|
536
558
|
ModelName: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithModelName),
|
|
537
559
|
CollectionLogo: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithCollectionLogo),
|
|
@@ -546,8 +568,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
546
568
|
}, {
|
|
547
569
|
key: "get3DRenderGroup",
|
|
548
570
|
value: function get3DRenderGroup() {
|
|
549
|
-
var _this$
|
|
550
|
-
return (_this$
|
|
571
|
+
var _this$divaWebConfigDa12, _this$divaWebConfigDa13;
|
|
572
|
+
return (_this$divaWebConfigDa12 = (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.diva3dRenderGroup) !== null && _this$divaWebConfigDa12 !== void 0 ? _this$divaWebConfigDa12 : '';
|
|
551
573
|
}
|
|
552
574
|
}, {
|
|
553
575
|
key: "getServerId",
|
|
@@ -589,32 +611,32 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
589
611
|
}, {
|
|
590
612
|
key: "getDiva3dStaticBGImage",
|
|
591
613
|
value: function getDiva3dStaticBGImage() {
|
|
592
|
-
var _this$
|
|
593
|
-
return (_this$
|
|
614
|
+
var _this$divaWebConfigDa14;
|
|
615
|
+
return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.diva3dStaticBGImage;
|
|
594
616
|
}
|
|
595
617
|
}, {
|
|
596
618
|
key: "getDiva3dStaticBGImage_DefaultRoomList",
|
|
597
619
|
value: function getDiva3dStaticBGImage_DefaultRoomList() {
|
|
598
|
-
var _this$
|
|
599
|
-
return ((_this$
|
|
620
|
+
var _this$divaWebConfigDa15, _this$divaWebConfigDa16;
|
|
621
|
+
return ((_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa16 = this.divaWebConfigData) === null || _this$divaWebConfigDa16 === void 0 ? void 0 : _this$divaWebConfigDa16.diva3dStaticBGImage_DefaultRoomList;
|
|
600
622
|
}
|
|
601
623
|
}, {
|
|
602
624
|
key: "getDiva3DAllowDefaultCatRoomList",
|
|
603
625
|
value: function getDiva3DAllowDefaultCatRoomList() {
|
|
604
|
-
var _this$
|
|
605
|
-
return (_this$
|
|
626
|
+
var _this$divaWebConfigDa17;
|
|
627
|
+
return (_this$divaWebConfigDa17 = this.divaWebConfigData) === null || _this$divaWebConfigDa17 === void 0 ? void 0 : _this$divaWebConfigDa17.diva3DAllowDefaultCatRoomList;
|
|
606
628
|
}
|
|
607
629
|
}, {
|
|
608
630
|
key: "doAllowSetPlanner",
|
|
609
631
|
value: function doAllowSetPlanner() {
|
|
610
|
-
var _this$
|
|
611
|
-
return (_this$
|
|
632
|
+
var _this$divaWebConfigDa18;
|
|
633
|
+
return (_this$divaWebConfigDa18 = this.divaWebConfigData) === null || _this$divaWebConfigDa18 === void 0 ? void 0 : _this$divaWebConfigDa18.doAllowSetPlanner;
|
|
612
634
|
}
|
|
613
635
|
}, {
|
|
614
636
|
key: "getHidePlanner",
|
|
615
637
|
value: function getHidePlanner() {
|
|
616
|
-
var _this$
|
|
617
|
-
return !!((_this$
|
|
638
|
+
var _this$divaWebConfigDa19;
|
|
639
|
+
return !!((_this$divaWebConfigDa19 = this.divaWebConfigData) !== null && _this$divaWebConfigDa19 !== void 0 && (_this$divaWebConfigDa19 = _this$divaWebConfigDa19.viewConfig) !== null && _this$divaWebConfigDa19 !== void 0 && _this$divaWebConfigDa19.hidePlanner);
|
|
618
640
|
}
|
|
619
641
|
}, {
|
|
620
642
|
key: "getEnableRTVUnityKombi",
|
|
@@ -625,32 +647,32 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
625
647
|
}, {
|
|
626
648
|
key: "getDoDisablePlanner2D",
|
|
627
649
|
value: function getDoDisablePlanner2D() {
|
|
628
|
-
var _this$
|
|
629
|
-
return !!((_this$
|
|
650
|
+
var _this$divaWebConfigDa20;
|
|
651
|
+
return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.doDisablePlanner2D);
|
|
630
652
|
}
|
|
631
653
|
}, {
|
|
632
654
|
key: "getRoomListInProduct",
|
|
633
655
|
value: function getRoomListInProduct() {
|
|
634
|
-
var _this$
|
|
635
|
-
return !!((_this$
|
|
656
|
+
var _this$divaWebConfigDa21;
|
|
657
|
+
return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && (_this$divaWebConfigDa21 = _this$divaWebConfigDa21.viewConfig) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.roomListInProduct);
|
|
636
658
|
}
|
|
637
659
|
}, {
|
|
638
660
|
key: "getPlannerType",
|
|
639
661
|
value: function getPlannerType() {
|
|
640
|
-
var _this$
|
|
641
|
-
return (_this$
|
|
662
|
+
var _this$divaWebConfigDa22;
|
|
663
|
+
return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 || (_this$divaWebConfigDa22 = _this$divaWebConfigDa22.viewConfig) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.plannerType;
|
|
642
664
|
}
|
|
643
665
|
}, {
|
|
644
666
|
key: "getLoadSupplierColors",
|
|
645
667
|
value: function getLoadSupplierColors() {
|
|
646
|
-
var _this$
|
|
647
|
-
return !!((_this$
|
|
668
|
+
var _this$divaWebConfigDa23;
|
|
669
|
+
return !!((_this$divaWebConfigDa23 = this.divaWebConfigData) !== null && _this$divaWebConfigDa23 !== void 0 && _this$divaWebConfigDa23.loadSupplierColors);
|
|
648
670
|
}
|
|
649
671
|
}, {
|
|
650
672
|
key: "showSelectionModeZero",
|
|
651
673
|
value: function showSelectionModeZero() {
|
|
652
|
-
var _this$
|
|
653
|
-
return !!((_this$
|
|
674
|
+
var _this$divaWebConfigDa24;
|
|
675
|
+
return !!((_this$divaWebConfigDa24 = this.divaWebConfigData) !== null && _this$divaWebConfigDa24 !== void 0 && _this$divaWebConfigDa24.showSelectionModeZero);
|
|
654
676
|
}
|
|
655
677
|
}, {
|
|
656
678
|
key: "ruleDescSeperator",
|
|
@@ -753,56 +775,56 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
753
775
|
}, {
|
|
754
776
|
key: "getViewConfig",
|
|
755
777
|
value: function getViewConfig() {
|
|
756
|
-
var _this$
|
|
757
|
-
return (_this$
|
|
778
|
+
var _this$divaWebConfigDa25;
|
|
779
|
+
return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.viewConfig;
|
|
758
780
|
}
|
|
759
781
|
}, {
|
|
760
782
|
key: "getEmailConfig",
|
|
761
783
|
value: function getEmailConfig() {
|
|
762
|
-
var _this$
|
|
763
|
-
return (_this$
|
|
784
|
+
var _this$divaWebConfigDa26;
|
|
785
|
+
return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.emailConfig;
|
|
764
786
|
}
|
|
765
787
|
}, {
|
|
766
788
|
key: "getABTestCases",
|
|
767
789
|
value: function getABTestCases() {
|
|
768
|
-
var _this$
|
|
769
|
-
return (_this$
|
|
790
|
+
var _this$divaWebConfigDa27, _this$divaWebConfigDa28;
|
|
791
|
+
return (_this$divaWebConfigDa27 = (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.abTestCases) !== null && _this$divaWebConfigDa27 !== void 0 ? _this$divaWebConfigDa27 : [];
|
|
770
792
|
}
|
|
771
793
|
}, {
|
|
772
794
|
key: "getBarrierConfig",
|
|
773
795
|
value: function getBarrierConfig() {
|
|
774
|
-
var _this$
|
|
775
|
-
return (_this$
|
|
796
|
+
var _this$divaWebConfigDa29;
|
|
797
|
+
return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.barrierConfig;
|
|
776
798
|
}
|
|
777
799
|
}, {
|
|
778
800
|
key: "getTemplateConfig",
|
|
779
801
|
value: function getTemplateConfig() {
|
|
780
|
-
var _this$
|
|
781
|
-
return (_this$
|
|
802
|
+
var _this$divaWebConfigDa30;
|
|
803
|
+
return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.templateConfig;
|
|
782
804
|
}
|
|
783
805
|
}, {
|
|
784
806
|
key: "showDivaNr",
|
|
785
807
|
value: function showDivaNr() {
|
|
786
|
-
var _this$
|
|
787
|
-
return (_this$
|
|
808
|
+
var _this$divaWebConfigDa31;
|
|
809
|
+
return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.showDivaNr;
|
|
788
810
|
}
|
|
789
811
|
}, {
|
|
790
812
|
key: "dontLoadDimensions",
|
|
791
813
|
value: function dontLoadDimensions() {
|
|
792
|
-
var _this$
|
|
793
|
-
return (_this$
|
|
814
|
+
var _this$divaWebConfigDa32;
|
|
815
|
+
return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.dontLoadDimensions;
|
|
794
816
|
}
|
|
795
817
|
}, {
|
|
796
818
|
key: "onErrorHandling",
|
|
797
819
|
value: function onErrorHandling() {
|
|
798
|
-
var _this$
|
|
799
|
-
return (_this$
|
|
820
|
+
var _this$divaWebConfigDa33;
|
|
821
|
+
return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.onErrorHandling;
|
|
800
822
|
}
|
|
801
823
|
}, {
|
|
802
824
|
key: "diva3DRenderingDefault",
|
|
803
825
|
value: function diva3DRenderingDefault() {
|
|
804
|
-
var _this$
|
|
805
|
-
return (_this$
|
|
826
|
+
var _this$divaWebConfigDa34;
|
|
827
|
+
return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.diva3DRenderingDefault;
|
|
806
828
|
}
|
|
807
829
|
}, {
|
|
808
830
|
key: "getJwt",
|
|
@@ -817,13 +839,13 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
817
839
|
}, {
|
|
818
840
|
key: "getUseMask",
|
|
819
841
|
value: function getUseMask() {
|
|
820
|
-
var _this$
|
|
821
|
-
return (_this$
|
|
842
|
+
var _this$divaWebConfigDa35;
|
|
843
|
+
return (_this$divaWebConfigDa35 = this.divaWebConfigData) === null || _this$divaWebConfigDa35 === void 0 ? void 0 : _this$divaWebConfigDa35.useMask;
|
|
822
844
|
}
|
|
823
845
|
}, {
|
|
824
846
|
key: "apiUrl",
|
|
825
847
|
value: function apiUrl(queryString, useWebServiceApi) {
|
|
826
|
-
var _this$
|
|
848
|
+
var _this$apiConfig23, _this$apiConfig24, _this$apiConfig25;
|
|
827
849
|
if (useWebServiceApi == 'catalog') {
|
|
828
850
|
var _this$apiConfig13, _this$apiConfig14;
|
|
829
851
|
if (!((_this$apiConfig13 = this.apiConfig) !== null && _this$apiConfig13 !== void 0 && _this$apiConfig13.catalogService)) throw new Error('No catalog Service defined');
|
|
@@ -840,17 +862,22 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
840
862
|
return ((_this$apiConfig18 = this.apiConfig) === null || _this$apiConfig18 === void 0 ? void 0 : _this$apiConfig18.reportService) + queryString;
|
|
841
863
|
}
|
|
842
864
|
if (useWebServiceApi == 'enricher') {
|
|
843
|
-
var _this$
|
|
844
|
-
if (
|
|
845
|
-
|
|
865
|
+
var _this$apiConfig21, _this$apiConfig22;
|
|
866
|
+
if (this.useIDMService) {
|
|
867
|
+
var _this$apiConfig19, _this$apiConfig20;
|
|
868
|
+
if (!((_this$apiConfig19 = this.apiConfig) !== null && _this$apiConfig19 !== void 0 && _this$apiConfig19.idmService)) throw new Error('No report Service defined');
|
|
869
|
+
return ((_this$apiConfig20 = this.apiConfig) === null || _this$apiConfig20 === void 0 ? void 0 : _this$apiConfig20.idmService) + queryString;
|
|
870
|
+
}
|
|
871
|
+
if (!((_this$apiConfig21 = this.apiConfig) !== null && _this$apiConfig21 !== void 0 && _this$apiConfig21.enricherService)) throw new Error('No report Service defined');
|
|
872
|
+
return ((_this$apiConfig22 = this.apiConfig) === null || _this$apiConfig22 === void 0 ? void 0 : _this$apiConfig22.enricherService) + queryString;
|
|
846
873
|
}
|
|
847
|
-
var url = (_this$
|
|
848
|
-
if (this.getApplicationEnvironment() == 'WEB' && (_this$
|
|
874
|
+
var url = (_this$apiConfig23 = this.apiConfig) === null || _this$apiConfig23 === void 0 ? void 0 : _this$apiConfig23.api2["default"];
|
|
875
|
+
if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig24 = this.apiConfig) !== null && _this$apiConfig24 !== void 0 && _this$apiConfig24.api2.web) {
|
|
849
876
|
url = this.apiConfig.api2.web;
|
|
850
877
|
}
|
|
851
|
-
if (this.useEkPrices && (_this$
|
|
852
|
-
var _this$
|
|
853
|
-
url = (_this$
|
|
878
|
+
if (this.useEkPrices && (_this$apiConfig25 = this.apiConfig) !== null && _this$apiConfig25 !== void 0 && _this$apiConfig25.api2.ek) {
|
|
879
|
+
var _this$apiConfig26;
|
|
880
|
+
url = (_this$apiConfig26 = this.apiConfig) === null || _this$apiConfig26 === void 0 ? void 0 : _this$apiConfig26.api2.ek;
|
|
854
881
|
}
|
|
855
882
|
if (!url) throw new Error('No API2 defined');
|
|
856
883
|
return url + '?' + queryString;
|
|
@@ -1017,56 +1044,62 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1017
1044
|
}
|
|
1018
1045
|
|
|
1019
1046
|
/******************IDM Service CALLs */
|
|
1047
|
+
}, {
|
|
1048
|
+
key: "idmPrefix",
|
|
1049
|
+
get: function get() {
|
|
1050
|
+
if (this.useEnricherService && !this.packageId) throw new Error('packageId as parameter not missing');
|
|
1051
|
+
return this.useEnricherService ? '/wysiwyg/v3.0/' + this.packageId : !this.useIDMService ? '/live/v3.0' : '/v3.0';
|
|
1052
|
+
}
|
|
1020
1053
|
}, {
|
|
1021
1054
|
key: "getIDMCatalog",
|
|
1022
1055
|
value: function getIDMCatalog(catalogId) {
|
|
1023
|
-
return '/
|
|
1056
|
+
return this.idmPrefix + '/catalogs' + (!this.useEnricherService ? '/' + catalogId : '');
|
|
1024
1057
|
}
|
|
1025
1058
|
}, {
|
|
1026
1059
|
key: "getIDMSerieByNo",
|
|
1027
1060
|
value: function getIDMSerieByNo(catalogId, serieNo) {
|
|
1028
|
-
return '/
|
|
1061
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/series' + '?filter=' + encodeURIComponent('serieNo==' + serieNo);
|
|
1029
1062
|
}
|
|
1030
1063
|
}, {
|
|
1031
1064
|
key: "getIDMItems",
|
|
1032
1065
|
value: function getIDMItems(catalogId, serieId, typeNos) {
|
|
1033
|
-
return '/
|
|
1066
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
|
|
1034
1067
|
return encodeURIComponent('typeNo==' + t);
|
|
1035
1068
|
}).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;detailInfos;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber');
|
|
1036
1069
|
}
|
|
1037
1070
|
}, {
|
|
1038
1071
|
key: "getIDMItem",
|
|
1039
1072
|
value: function getIDMItem(catalogId, serieId, typeNo) {
|
|
1040
|
-
return '/
|
|
1073
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items/' + typeNo;
|
|
1041
1074
|
}
|
|
1042
1075
|
}, {
|
|
1043
1076
|
key: "getIDMFeatures",
|
|
1044
1077
|
value: function getIDMFeatures(catalogId, features) {
|
|
1045
|
-
return '/
|
|
1078
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/features' + '?featureNos=' + features.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
|
|
1046
1079
|
}
|
|
1047
1080
|
}, {
|
|
1048
1081
|
key: "getIDMDecisions",
|
|
1049
1082
|
value: function getIDMDecisions(catalogId, decisions) {
|
|
1050
|
-
return '/
|
|
1083
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/decisions' + '?decisionNos=' + decisions.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
|
|
1051
1084
|
}
|
|
1052
1085
|
}, {
|
|
1053
1086
|
key: "getIDMDetailInfos",
|
|
1054
1087
|
value: function getIDMDetailInfos(catalogId, detailinfos) {
|
|
1055
|
-
return '/
|
|
1088
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/detailinfos' + '?filter=' + detailinfos.map(function (d) {
|
|
1056
1089
|
return encodeURIComponent('featureClassNo==' + d);
|
|
1057
1090
|
}).join(' || ');
|
|
1058
1091
|
}
|
|
1059
1092
|
}, {
|
|
1060
1093
|
key: "getIDMFeatureClass",
|
|
1061
1094
|
value: function getIDMFeatureClass(catalogId, featureclasses) {
|
|
1062
|
-
return '/
|
|
1095
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/featureclasses' + '?filter=' + featureclasses.map(function (f) {
|
|
1063
1096
|
return encodeURIComponent('featureClassNo==' + f);
|
|
1064
1097
|
}).join(' || ');
|
|
1065
1098
|
}
|
|
1066
1099
|
}, {
|
|
1067
1100
|
key: "getIDMPriceFeatureGroups",
|
|
1068
1101
|
value: function getIDMPriceFeatureGroups(catalogId, pricefeaturegroups) {
|
|
1069
|
-
return '/
|
|
1102
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/pricefeaturegroups' + '?filter=' + pricefeaturegroups.map(function (p) {
|
|
1070
1103
|
return encodeURIComponent('priceFeatureGroupNo==' + p);
|
|
1071
1104
|
}).join(' || ');
|
|
1072
1105
|
}
|
|
@@ -1233,12 +1266,12 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1233
1266
|
key: "getDimensionbyId",
|
|
1234
1267
|
value: function () {
|
|
1235
1268
|
var _getDimensionbyId = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee11(id, iln, catalogCodex, plannedOptions) {
|
|
1236
|
-
var _this$
|
|
1269
|
+
var _this$apiConfig27;
|
|
1237
1270
|
var fullUrl, res, headers;
|
|
1238
1271
|
return _regeneratorRuntime__default["default"].wrap(function _callee11$(_context11) {
|
|
1239
1272
|
while (1) switch (_context11.prev = _context11.next) {
|
|
1240
1273
|
case 0:
|
|
1241
|
-
fullUrl = this.getConstructorServiceUrl() + '/dimension/' + id + '?iln=' + iln + '&catalogCodex=' + catalogCodex + '&debug=' + ((_this$
|
|
1274
|
+
fullUrl = this.getConstructorServiceUrl() + '/dimension/' + id + '?iln=' + iln + '&catalogCodex=' + catalogCodex + '&debug=' + ((_this$apiConfig27 = this.apiConfig) === null || _this$apiConfig27 === void 0 ? void 0 : _this$apiConfig27.useDebugUrl);
|
|
1242
1275
|
headers = {};
|
|
1243
1276
|
if (this.jwt) headers = {
|
|
1244
1277
|
Authorization: 'Bearer ' + this.jwt
|
|
@@ -1371,14 +1404,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1371
1404
|
}, {
|
|
1372
1405
|
key: "dontLoadAdditionalModelInfos",
|
|
1373
1406
|
get: function get() {
|
|
1374
|
-
var _this$
|
|
1375
|
-
return (_this$
|
|
1407
|
+
var _this$divaWebConfigDa36;
|
|
1408
|
+
return (_this$divaWebConfigDa36 = this.divaWebConfigData) === null || _this$divaWebConfigDa36 === void 0 ? void 0 : _this$divaWebConfigDa36.dontLoadAdditionalModelInfos;
|
|
1376
1409
|
}
|
|
1377
1410
|
}, {
|
|
1378
1411
|
key: "dontLoadCatalogEditorLiteMask",
|
|
1379
1412
|
get: function get() {
|
|
1380
|
-
var _this$
|
|
1381
|
-
return (_this$
|
|
1413
|
+
var _this$divaWebConfigDa37;
|
|
1414
|
+
return (_this$divaWebConfigDa37 = this.divaWebConfigData) === null || _this$divaWebConfigDa37 === void 0 ? void 0 : _this$divaWebConfigDa37.dontLoadCatalogEditorLiteMask;
|
|
1382
1415
|
}
|
|
1383
1416
|
}, {
|
|
1384
1417
|
key: "OrganizationId",
|
|
@@ -19146,8 +19179,9 @@ var getFeatures = function getFeatures(set, featureClasses) {
|
|
|
19146
19179
|
return toLoadFeatures;
|
|
19147
19180
|
};
|
|
19148
19181
|
var getFeaturesByFeatureClass = function getFeaturesByFeatureClass(featureClass) {
|
|
19182
|
+
var _featureClass$feature;
|
|
19149
19183
|
var neededFeatures = [];
|
|
19150
|
-
var featureRefs = Object.keys(featureClass.featureRefs);
|
|
19184
|
+
var featureRefs = Object.keys((_featureClass$feature = featureClass.featureRefs) !== null && _featureClass$feature !== void 0 ? _featureClass$feature : {});
|
|
19151
19185
|
for (var j = 0; j < featureRefs.length; j++) {
|
|
19152
19186
|
neededFeatures.push(featureRefs[j]);
|
|
19153
19187
|
}
|
|
@@ -19230,7 +19264,7 @@ var parseOptionSetRef = function parseOptionSetRef(optionsSetRefs, idmOptionGrou
|
|
|
19230
19264
|
value: group
|
|
19231
19265
|
};
|
|
19232
19266
|
} else {
|
|
19233
|
-
|
|
19267
|
+
LOG$j.error(new Error('rule not implemented' + JSON.stringify(optionsSetRefs)));
|
|
19234
19268
|
}
|
|
19235
19269
|
}
|
|
19236
19270
|
} else {
|
|
@@ -19868,9 +19902,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19868
19902
|
this._api = api;
|
|
19869
19903
|
this.additionalModelInfos = additionalModelInfos;
|
|
19870
19904
|
if (json.Properties) {
|
|
19871
|
-
var _this$catalogMask$cat, _this$catalogMask;
|
|
19905
|
+
var _json$Properties, _this$catalogMask$cat, _this$catalogMask;
|
|
19872
19906
|
this.origProperties = json.Properties;
|
|
19873
|
-
this.initProperties(catalogCodex, [].concat(_toConsumableArray__default["default"](json.Properties), _toConsumableArray__default["default"]((_this$catalogMask$cat = (_this$catalogMask = this.catalogMask) === null || _this$catalogMask === void 0 || (_this$catalogMask = _this$catalogMask.catalog) === null || _this$catalogMask === void 0 ? void 0 : _this$catalogMask.properties) !== null && _this$catalogMask$cat !== void 0 ? _this$catalogMask$cat : [])));
|
|
19907
|
+
this.initProperties(catalogCodex, [].concat(_toConsumableArray__default["default"]((_json$Properties = json.Properties) !== null && _json$Properties !== void 0 ? _json$Properties : []), _toConsumableArray__default["default"]((_this$catalogMask$cat = (_this$catalogMask = this.catalogMask) === null || _this$catalogMask === void 0 || (_this$catalogMask = _this$catalogMask.catalog) === null || _this$catalogMask === void 0 ? void 0 : _this$catalogMask.properties) !== null && _this$catalogMask$cat !== void 0 ? _this$catalogMask$cat : [])));
|
|
19874
19908
|
}
|
|
19875
19909
|
this.plannerPaletteViewInfo = {
|
|
19876
19910
|
catalogPlannerArticles: [],
|
|
@@ -19902,8 +19936,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19902
19936
|
initIDMArticles(articleJson, this);
|
|
19903
19937
|
}
|
|
19904
19938
|
if (this.origProperties) {
|
|
19905
|
-
var _this$catalogMask$cat2, _this$catalogMask2;
|
|
19906
|
-
this.initPropertiesAfterOptionsInit(catalogCodex, [].concat(_toConsumableArray__default["default"](json.Properties), _toConsumableArray__default["default"]((_this$catalogMask$cat2 = (_this$catalogMask2 = this.catalogMask) === null || _this$catalogMask2 === void 0 || (_this$catalogMask2 = _this$catalogMask2.catalog) === null || _this$catalogMask2 === void 0 ? void 0 : _this$catalogMask2.properties) !== null && _this$catalogMask$cat2 !== void 0 ? _this$catalogMask$cat2 : [])));
|
|
19939
|
+
var _json$Properties2, _this$catalogMask$cat2, _this$catalogMask2;
|
|
19940
|
+
this.initPropertiesAfterOptionsInit(catalogCodex, [].concat(_toConsumableArray__default["default"]((_json$Properties2 = json.Properties) !== null && _json$Properties2 !== void 0 ? _json$Properties2 : []), _toConsumableArray__default["default"]((_this$catalogMask$cat2 = (_this$catalogMask2 = this.catalogMask) === null || _this$catalogMask2 === void 0 || (_this$catalogMask2 = _this$catalogMask2.catalog) === null || _this$catalogMask2 === void 0 ? void 0 : _this$catalogMask2.properties) !== null && _this$catalogMask$cat2 !== void 0 ? _this$catalogMask$cat2 : [])));
|
|
19907
19941
|
}
|
|
19908
19942
|
}
|
|
19909
19943
|
return _createClass__default["default"](DivaCatalogData, [{
|
|
@@ -20110,8 +20144,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20110
20144
|
}
|
|
20111
20145
|
}, {
|
|
20112
20146
|
key: "getFeatures",
|
|
20113
|
-
value: function getFeatures(
|
|
20147
|
+
value: function getFeatures() {
|
|
20114
20148
|
var _this3 = this;
|
|
20149
|
+
var featureRefs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
20115
20150
|
return featureRefs.map(function (ref) {
|
|
20116
20151
|
return _this3.catalogData.loadedFeatures.find(function (f) {
|
|
20117
20152
|
return f.featureNo == ref;
|
|
@@ -21406,7 +21441,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
21406
21441
|
return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context3) {
|
|
21407
21442
|
while (1) switch (_context3.prev = _context3.next) {
|
|
21408
21443
|
case 0:
|
|
21409
|
-
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 ?
|
|
21444
|
+
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];
|
|
21410
21445
|
_context3.next = 3;
|
|
21411
21446
|
return Promise.all(promises);
|
|
21412
21447
|
case 3:
|
|
@@ -21424,13 +21459,41 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
21424
21459
|
case "end":
|
|
21425
21460
|
return _context3.stop();
|
|
21426
21461
|
}
|
|
21427
|
-
}, _callee3);
|
|
21462
|
+
}, _callee3, this);
|
|
21428
21463
|
}));
|
|
21429
21464
|
function loadIDMCatalog(_x7, _x8, _x9, _x10, _x11) {
|
|
21430
21465
|
return _loadIDMCatalog.apply(this, arguments);
|
|
21431
21466
|
}
|
|
21432
21467
|
return loadIDMCatalog;
|
|
21433
21468
|
}()
|
|
21469
|
+
}, {
|
|
21470
|
+
key: "getAdditionalModeInfos",
|
|
21471
|
+
value: function () {
|
|
21472
|
+
var _getAdditionalModeInfos = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee4(state, serieId, accountId) {
|
|
21473
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee4$(_context4) {
|
|
21474
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
21475
|
+
case 0:
|
|
21476
|
+
_context4.prev = 0;
|
|
21477
|
+
_context4.next = 3;
|
|
21478
|
+
return state.api.getDataCache(state.api.getAdditionalModelInfosQS(accountId, serieId), undefined, undefined, 'catalog');
|
|
21479
|
+
case 3:
|
|
21480
|
+
return _context4.abrupt("return", _context4.sent);
|
|
21481
|
+
case 6:
|
|
21482
|
+
_context4.prev = 6;
|
|
21483
|
+
_context4.t0 = _context4["catch"](0);
|
|
21484
|
+
LOG$g.debug('additional ModelInfo not found');
|
|
21485
|
+
return _context4.abrupt("return", undefined);
|
|
21486
|
+
case 10:
|
|
21487
|
+
case "end":
|
|
21488
|
+
return _context4.stop();
|
|
21489
|
+
}
|
|
21490
|
+
}, _callee4, null, [[0, 6]]);
|
|
21491
|
+
}));
|
|
21492
|
+
function getAdditionalModeInfos(_x12, _x13, _x14) {
|
|
21493
|
+
return _getAdditionalModeInfos.apply(this, arguments);
|
|
21494
|
+
}
|
|
21495
|
+
return getAdditionalModeInfos;
|
|
21496
|
+
}()
|
|
21434
21497
|
}]);
|
|
21435
21498
|
}();
|
|
21436
21499
|
var catalogHandlerInstance = new DivaCatalogHandler();
|
|
@@ -23946,9 +24009,10 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
23946
24009
|
}, {
|
|
23947
24010
|
key: "evalType1Decision",
|
|
23948
24011
|
value: function evalType1Decision(decision) {
|
|
24012
|
+
var _decision$featureRefs;
|
|
23949
24013
|
var validOptions = {};
|
|
23950
24014
|
var doAlsoCheckFeatureNos = [];
|
|
23951
|
-
if (!decision.optionCombinations.length || !decision.featureRefs.length) return;
|
|
24015
|
+
if (!decision.optionCombinations.length || !((_decision$featureRefs = decision.featureRefs) !== null && _decision$featureRefs !== void 0 && _decision$featureRefs.length)) return;
|
|
23952
24016
|
var sortedDeatureRefs = this.sortFeatures(decision.featureRefs);
|
|
23953
24017
|
for (var p = 0; p < sortedDeatureRefs.length; p++) {
|
|
23954
24018
|
var featureNo = sortedDeatureRefs[p];
|
|
@@ -24049,10 +24113,10 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24049
24113
|
}, {
|
|
24050
24114
|
key: "evalType0Decision",
|
|
24051
24115
|
value: function evalType0Decision(decision) {
|
|
24052
|
-
var _decision$optionCombi;
|
|
24116
|
+
var _decision$optionCombi, _decision$featureRefs2;
|
|
24053
24117
|
var invalidOptions = {},
|
|
24054
24118
|
doAlsoCheckFeature = [];
|
|
24055
|
-
if (!((_decision$optionCombi = decision.optionCombinations) !== null && _decision$optionCombi !== void 0 && _decision$optionCombi.length) || !decision.featureRefs.length) return;
|
|
24119
|
+
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;
|
|
24056
24120
|
var sortedDeatureRefs = this.sortFeatures(decision.featureRefs);
|
|
24057
24121
|
for (var p = 0; p < sortedDeatureRefs.length; p++) {
|
|
24058
24122
|
var featureNo = sortedDeatureRefs[p];
|
|
@@ -24153,7 +24217,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24153
24217
|
} else if (action.value) {
|
|
24154
24218
|
_this2.assignOptionValue(action.target, action.value, action.actionType === 'SET_FEATURE_FIXED' ? 'fix' : 'set');
|
|
24155
24219
|
} else {
|
|
24156
|
-
|
|
24220
|
+
LOG$e.error(new Error('decision' + decision.decisionNo + ' has action that referst to a feature that does not existi on this article'));
|
|
24157
24221
|
}
|
|
24158
24222
|
break;
|
|
24159
24223
|
case '1':
|
|
@@ -24239,8 +24303,9 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24239
24303
|
ref = _command$split2[0];
|
|
24240
24304
|
value = _command$split2[1];
|
|
24241
24305
|
if (ref == 'FEATURE_REF') {
|
|
24306
|
+
var _this$article$getArti;
|
|
24242
24307
|
ref = undefined;
|
|
24243
|
-
value = this.article.getArticleOptionState(value).valCodex;
|
|
24308
|
+
value = (_this$article$getArti = this.article.getArticleOptionState(value)) === null || _this$article$getArti === void 0 ? void 0 : _this$article$getArti.valCodex;
|
|
24244
24309
|
} else if (ref == 'OPTION_REF') {
|
|
24245
24310
|
ref = undefined;
|
|
24246
24311
|
} else if (ref == 'FORMULA_REF') {
|
|
@@ -24660,7 +24725,8 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24660
24725
|
var variantValuesArr = [];
|
|
24661
24726
|
var decisions = this.decisions;
|
|
24662
24727
|
var relevantDecisions = decisions.filter(function (d) {
|
|
24663
|
-
|
|
24728
|
+
var _d$featureRefs;
|
|
24729
|
+
return (_d$featureRefs = d.featureRefs) === null || _d$featureRefs === void 0 ? void 0 : _d$featureRefs.includes(featureNo);
|
|
24664
24730
|
});
|
|
24665
24731
|
for (var i = 0; i < relevantDecisions.length; i++) {
|
|
24666
24732
|
var decision = relevantDecisions[i];
|
|
@@ -27213,7 +27279,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27213
27279
|
break;
|
|
27214
27280
|
}
|
|
27215
27281
|
_context.next = 4;
|
|
27216
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
27282
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-55a68467.js'); });
|
|
27217
27283
|
case 4:
|
|
27218
27284
|
_yield$import = _context.sent;
|
|
27219
27285
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -31862,7 +31928,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31862
31928
|
break;
|
|
31863
31929
|
}
|
|
31864
31930
|
_context5.next = 3;
|
|
31865
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
31931
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-1be5ffce.js'); });
|
|
31866
31932
|
case 3:
|
|
31867
31933
|
_yield$import = _context5.sent;
|
|
31868
31934
|
DoorPlanner = _yield$import["default"];
|
|
@@ -38737,7 +38803,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38737
38803
|
break;
|
|
38738
38804
|
case 3:
|
|
38739
38805
|
_context12.next = 5;
|
|
38740
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
38806
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-8fb8ec2d.js'); });
|
|
38741
38807
|
case 5:
|
|
38742
38808
|
_yield$import = _context12.sent;
|
|
38743
38809
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -38745,7 +38811,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38745
38811
|
return _context12.abrupt("break", 27);
|
|
38746
38812
|
case 9:
|
|
38747
38813
|
_context12.next = 11;
|
|
38748
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
38814
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-21356746.js'); });
|
|
38749
38815
|
case 11:
|
|
38750
38816
|
_yield$import2 = _context12.sent;
|
|
38751
38817
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -38753,7 +38819,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38753
38819
|
return _context12.abrupt("break", 27);
|
|
38754
38820
|
case 15:
|
|
38755
38821
|
_context12.next = 17;
|
|
38756
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
38822
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-07d4cc77.js'); });
|
|
38757
38823
|
case 17:
|
|
38758
38824
|
_yield$import3 = _context12.sent;
|
|
38759
38825
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -38761,7 +38827,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38761
38827
|
return _context12.abrupt("break", 27);
|
|
38762
38828
|
case 21:
|
|
38763
38829
|
_context12.next = 23;
|
|
38764
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
38830
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-4bbaa9e8.js'); });
|
|
38765
38831
|
case 23:
|
|
38766
38832
|
_yield$import4 = _context12.sent;
|
|
38767
38833
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -40189,7 +40255,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
40189
40255
|
while (1) switch (_context3.prev = _context3.next) {
|
|
40190
40256
|
case 0:
|
|
40191
40257
|
_context3.next = 2;
|
|
40192
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
40258
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-804049fc.js'); });
|
|
40193
40259
|
case 2:
|
|
40194
40260
|
_yield$import = _context3.sent;
|
|
40195
40261
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -41746,7 +41812,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41746
41812
|
break;
|
|
41747
41813
|
case 8:
|
|
41748
41814
|
_context4.next = 10;
|
|
41749
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
41815
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-009fd660.js'); });
|
|
41750
41816
|
case 10:
|
|
41751
41817
|
_yield$import = _context4.sent;
|
|
41752
41818
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -41757,7 +41823,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41757
41823
|
return _context4.abrupt("break", 21);
|
|
41758
41824
|
case 15:
|
|
41759
41825
|
_context4.next = 17;
|
|
41760
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
41826
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-4c4c5907.js'); });
|
|
41761
41827
|
case 17:
|
|
41762
41828
|
_yield$import2 = _context4.sent;
|
|
41763
41829
|
DivaBoxPlanner = _yield$import2["default"];
|