@crystaldesign/web-planner-logic 24.13.0-beta.19 → 24.13.0-beta.20
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-a504a175.js → DivaBoxPlanner-407b522a.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-3dfb6e80.js → DivaStandardPlanner-2d5e2fcb.js} +2 -2
- package/build/cjs/{DoorPlanner-36c05859.js → DoorPlanner-b5c52f00.js} +1 -1
- package/build/cjs/{Host3DSignalR-e79f499a.js → Host3DSignalR-d90c84fc.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-18dd3594.js → LiviqueWWSHandler-e2865f37.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-9aaa8d65.js → PfisterWWSHandler-85364fc5.js} +1 -1
- package/build/cjs/{PlannerHandler2D-808edf49.js → PlannerHandler2D-e2a8f28f.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-6fdf7d50.js → SeriousBasketHandler-10541589.js} +1 -1
- package/build/cjs/{ShelfPlanner-fb3274cb.js → ShelfPlanner-ffca2d2f.js} +1 -1
- package/build/cjs/{StandardWWSHandler-35476b87.js → StandardWWSHandler-2abbb584.js} +1 -1
- package/build/cjs/{index-2a4d14ca.js → index-f42160a0.js} +176 -154
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-a9d8af1d.js → DivaBoxPlanner-6d8b1276.js} +2 -2
- package/build/esm/{DivaStandardPlanner-3a672b9f.js → DivaStandardPlanner-01ffe668.js} +2 -2
- package/build/esm/{DoorPlanner-549c8c25.js → DoorPlanner-9dc6e1b8.js} +1 -1
- package/build/esm/{Host3DSignalR-13ab6094.js → Host3DSignalR-91bc0e45.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-75f299c2.js → LiviqueWWSHandler-fc475051.js} +1 -1
- package/build/esm/{PfisterWWSHandler-a8932746.js → PfisterWWSHandler-7bb3d5e6.js} +1 -1
- package/build/esm/{PlannerHandler2D-a8f5a302.js → PlannerHandler2D-46c4c559.js} +1 -1
- package/build/esm/{SeriousBasketHandler-fcb69872.js → SeriousBasketHandler-a2a6aae7.js} +1 -1
- package/build/esm/{ShelfPlanner-82b5ff7f.js → ShelfPlanner-1d639b0b.js} +1 -1
- package/build/esm/{StandardWWSHandler-29b26dbf.js → StandardWWSHandler-68a6351e.js} +1 -1
- package/build/esm/{index-d8eda4df.js → index-02b8c883.js} +176 -154
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/interface/Configuration.d.ts +0 -1
- package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/test/index.d.ts +0 -1
- package/build/types/web-planner-logic/src/interface/test/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +0 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/DivaMediaServiceHandler.d.ts +0 -2
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/DivaMediaServiceHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +1 -0
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +1 -0
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -428,7 +428,6 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
428
428
|
diva3DRenderingDefault: data.diva3DRenderingDefault != undefined ? data.diva3DRenderingDefault : false,
|
|
429
429
|
diva3dServerMode: data.diva3dServerMode != undefined ? data.diva3dServerMode : 'SignalR',
|
|
430
430
|
diva3dRenderGroup: data.diva3dRenderGroup != undefined ? data.diva3dRenderGroup : 'MYCC7',
|
|
431
|
-
mediaServiceApiKey: data.divaMediaServiceApiKey,
|
|
432
431
|
language: lang !== null && lang !== void 0 ? lang : this.getLanguage(),
|
|
433
432
|
abTestCases: data.abTestCases !== undefined ? data.abTestCases : [],
|
|
434
433
|
checkForProductsPrice: data.checkForProductsPrice,
|
|
@@ -484,17 +483,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
484
483
|
var _this$apiConfig$baske, _this$apiConfig9;
|
|
485
484
|
return (_this$apiConfig$baske = (_this$apiConfig9 = this.apiConfig) === null || _this$apiConfig9 === void 0 ? void 0 : _this$apiConfig9.basketService) !== null && _this$apiConfig$baske !== void 0 ? _this$apiConfig$baske : '';
|
|
486
485
|
}
|
|
487
|
-
}, {
|
|
488
|
-
key: "getDivaMediaServiceApiKey",
|
|
489
|
-
value: function getDivaMediaServiceApiKey() {
|
|
490
|
-
var _this$divaWebConfigDa, _this$divaWebConfigDa2;
|
|
491
|
-
return (_this$divaWebConfigDa = (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.mediaServiceApiKey) !== null && _this$divaWebConfigDa !== void 0 ? _this$divaWebConfigDa : '';
|
|
492
|
-
}
|
|
493
486
|
}, {
|
|
494
487
|
key: "getLoadProductBasketParams",
|
|
495
488
|
value: function getLoadProductBasketParams() {
|
|
496
|
-
var _this$
|
|
497
|
-
return (_this$
|
|
489
|
+
var _this$divaWebConfigDa;
|
|
490
|
+
return (_this$divaWebConfigDa = this.divaWebConfigData) === null || _this$divaWebConfigDa === void 0 ? void 0 : _this$divaWebConfigDa.loadProductBasketParams;
|
|
498
491
|
}
|
|
499
492
|
}, {
|
|
500
493
|
key: "get3DServerUrl",
|
|
@@ -505,20 +498,20 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
505
498
|
}, {
|
|
506
499
|
key: "doCheckForProductsPrice",
|
|
507
500
|
value: function doCheckForProductsPrice() {
|
|
508
|
-
var _this$
|
|
509
|
-
return (_this$
|
|
501
|
+
var _this$divaWebConfigDa2;
|
|
502
|
+
return (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.checkForProductsPrice;
|
|
510
503
|
}
|
|
511
504
|
}, {
|
|
512
505
|
key: "getReportConfigIdentifier",
|
|
513
506
|
value: function getReportConfigIdentifier() {
|
|
514
|
-
var _this$
|
|
515
|
-
return (_this$
|
|
507
|
+
var _this$divaWebConfigDa3;
|
|
508
|
+
return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.reportConfigIdentifier;
|
|
516
509
|
}
|
|
517
510
|
}, {
|
|
518
511
|
key: "getPrintOptions",
|
|
519
512
|
value: function getPrintOptions() {
|
|
520
|
-
var _this$
|
|
521
|
-
var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$
|
|
513
|
+
var _this$divaWebConfigDa4;
|
|
514
|
+
var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.reportConfig;
|
|
522
515
|
return {
|
|
523
516
|
Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
|
|
524
517
|
PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
|
|
@@ -538,8 +531,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
538
531
|
}, {
|
|
539
532
|
key: "get3DRenderGroup",
|
|
540
533
|
value: function get3DRenderGroup() {
|
|
541
|
-
var _this$
|
|
542
|
-
return (_this$
|
|
534
|
+
var _this$divaWebConfigDa5, _this$divaWebConfigDa6;
|
|
535
|
+
return (_this$divaWebConfigDa5 = (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.diva3dRenderGroup) !== null && _this$divaWebConfigDa5 !== void 0 ? _this$divaWebConfigDa5 : '';
|
|
543
536
|
}
|
|
544
537
|
}, {
|
|
545
538
|
key: "getServerId",
|
|
@@ -576,86 +569,86 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
576
569
|
}, {
|
|
577
570
|
key: "getDiva3dStaticBGImage",
|
|
578
571
|
value: function getDiva3dStaticBGImage() {
|
|
579
|
-
var _this$
|
|
580
|
-
return (_this$
|
|
572
|
+
var _this$divaWebConfigDa7;
|
|
573
|
+
return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.diva3dStaticBGImage;
|
|
581
574
|
}
|
|
582
575
|
}, {
|
|
583
576
|
key: "getDiva3dStaticBGImage_DefaultRoomList",
|
|
584
577
|
value: function getDiva3dStaticBGImage_DefaultRoomList() {
|
|
585
|
-
var _this$
|
|
586
|
-
return ((_this$
|
|
578
|
+
var _this$divaWebConfigDa8, _this$divaWebConfigDa9;
|
|
579
|
+
return ((_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.diva3dStaticBGImage_DefaultRoomList;
|
|
587
580
|
}
|
|
588
581
|
}, {
|
|
589
582
|
key: "getDiva3DAllowDefaultCatRoomList",
|
|
590
583
|
value: function getDiva3DAllowDefaultCatRoomList() {
|
|
591
|
-
var _this$
|
|
592
|
-
return (_this$
|
|
584
|
+
var _this$divaWebConfigDa10;
|
|
585
|
+
return (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3DAllowDefaultCatRoomList;
|
|
593
586
|
}
|
|
594
587
|
}, {
|
|
595
588
|
key: "doAllowSetPlanner",
|
|
596
589
|
value: function doAllowSetPlanner() {
|
|
597
|
-
var _this$
|
|
598
|
-
return (_this$
|
|
590
|
+
var _this$divaWebConfigDa11;
|
|
591
|
+
return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.doAllowSetPlanner;
|
|
599
592
|
}
|
|
600
593
|
}, {
|
|
601
594
|
key: "getHidePlanner",
|
|
602
595
|
value: function getHidePlanner() {
|
|
603
|
-
var _this$
|
|
604
|
-
return !!((_this$
|
|
596
|
+
var _this$divaWebConfigDa12;
|
|
597
|
+
return !!((_this$divaWebConfigDa12 = this.divaWebConfigData) !== null && _this$divaWebConfigDa12 !== void 0 && (_this$divaWebConfigDa12 = _this$divaWebConfigDa12.viewConfig) !== null && _this$divaWebConfigDa12 !== void 0 && _this$divaWebConfigDa12.hidePlanner);
|
|
605
598
|
}
|
|
606
599
|
}, {
|
|
607
600
|
key: "getDoShowAR",
|
|
608
601
|
value: function getDoShowAR() {
|
|
609
|
-
var _this$
|
|
610
|
-
return (_this$
|
|
602
|
+
var _this$divaWebConfigDa13;
|
|
603
|
+
return (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 || (_this$divaWebConfigDa13 = _this$divaWebConfigDa13.viewConfig) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.enableAR;
|
|
611
604
|
}
|
|
612
605
|
}, {
|
|
613
606
|
key: "forceShowRTV",
|
|
614
607
|
value: function forceShowRTV() {
|
|
615
|
-
var _this$
|
|
616
|
-
return (_this$
|
|
608
|
+
var _this$divaWebConfigDa14;
|
|
609
|
+
return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 || (_this$divaWebConfigDa14 = _this$divaWebConfigDa14.viewConfig) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.forceRTV;
|
|
617
610
|
}
|
|
618
611
|
}, {
|
|
619
612
|
key: "getDoShowRTV",
|
|
620
613
|
value: function getDoShowRTV() {
|
|
621
|
-
var _this$
|
|
622
|
-
return (_this$
|
|
614
|
+
var _this$divaWebConfigDa15;
|
|
615
|
+
return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 || (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.enableRTV;
|
|
623
616
|
}
|
|
624
617
|
}, {
|
|
625
618
|
key: "getEnableRTVUnityKombi",
|
|
626
619
|
value: function getEnableRTVUnityKombi() {
|
|
627
|
-
var _this$
|
|
628
|
-
return !!((_this$
|
|
620
|
+
var _this$divaWebConfigDa16;
|
|
621
|
+
return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.viewConfig.enableRtvUnityKombi);
|
|
629
622
|
}
|
|
630
623
|
}, {
|
|
631
624
|
key: "getDoDisablePlanner2D",
|
|
632
625
|
value: function getDoDisablePlanner2D() {
|
|
633
|
-
var _this$
|
|
634
|
-
return !!((_this$
|
|
626
|
+
var _this$divaWebConfigDa17;
|
|
627
|
+
return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
|
|
635
628
|
}
|
|
636
629
|
}, {
|
|
637
630
|
key: "getRoomListInProduct",
|
|
638
631
|
value: function getRoomListInProduct() {
|
|
639
|
-
var _this$
|
|
640
|
-
return !!((_this$
|
|
632
|
+
var _this$divaWebConfigDa18;
|
|
633
|
+
return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
|
|
641
634
|
}
|
|
642
635
|
}, {
|
|
643
636
|
key: "getPlannerType",
|
|
644
637
|
value: function getPlannerType() {
|
|
645
|
-
var _this$
|
|
646
|
-
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 ? void 0 : _this$divaWebConfigDa19.plannerType;
|
|
647
640
|
}
|
|
648
641
|
}, {
|
|
649
642
|
key: "getLoadSupplierColors",
|
|
650
643
|
value: function getLoadSupplierColors() {
|
|
651
|
-
var _this$
|
|
652
|
-
return !!((_this$
|
|
644
|
+
var _this$divaWebConfigDa20;
|
|
645
|
+
return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
|
|
653
646
|
}
|
|
654
647
|
}, {
|
|
655
648
|
key: "showSelectionModeZero",
|
|
656
649
|
value: function showSelectionModeZero() {
|
|
657
|
-
var _this$
|
|
658
|
-
return !!((_this$
|
|
650
|
+
var _this$divaWebConfigDa21;
|
|
651
|
+
return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
|
|
659
652
|
}
|
|
660
653
|
}, {
|
|
661
654
|
key: "ruleDescSeperator",
|
|
@@ -675,8 +668,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
675
668
|
}, {
|
|
676
669
|
key: "getDoCheckVariantData",
|
|
677
670
|
value: function getDoCheckVariantData() {
|
|
678
|
-
var _this$
|
|
679
|
-
return (_this$
|
|
671
|
+
var _this$divaWebConfigDa22;
|
|
672
|
+
return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.doCheckVariantData;
|
|
680
673
|
}
|
|
681
674
|
}, {
|
|
682
675
|
key: "setI18n",
|
|
@@ -769,50 +762,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
769
762
|
}, {
|
|
770
763
|
key: "getViewConfig",
|
|
771
764
|
value: function getViewConfig() {
|
|
772
|
-
var _this$
|
|
773
|
-
return (_this$
|
|
765
|
+
var _this$divaWebConfigDa23;
|
|
766
|
+
return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.viewConfig;
|
|
774
767
|
}
|
|
775
768
|
}, {
|
|
776
769
|
key: "getEmailConfig",
|
|
777
770
|
value: function getEmailConfig() {
|
|
778
|
-
var _this$
|
|
779
|
-
return (_this$
|
|
771
|
+
var _this$divaWebConfigDa24;
|
|
772
|
+
return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.emailConfig;
|
|
780
773
|
}
|
|
781
774
|
}, {
|
|
782
775
|
key: "getABTestCases",
|
|
783
776
|
value: function getABTestCases() {
|
|
784
|
-
var _this$
|
|
785
|
-
return (_this$
|
|
777
|
+
var _this$divaWebConfigDa25, _this$divaWebConfigDa26;
|
|
778
|
+
return (_this$divaWebConfigDa25 = (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.abTestCases) !== null && _this$divaWebConfigDa25 !== void 0 ? _this$divaWebConfigDa25 : [];
|
|
786
779
|
}
|
|
787
780
|
}, {
|
|
788
781
|
key: "getBarrierConfig",
|
|
789
782
|
value: function getBarrierConfig() {
|
|
790
|
-
var _this$
|
|
791
|
-
return (_this$
|
|
783
|
+
var _this$divaWebConfigDa27;
|
|
784
|
+
return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.barrierConfig;
|
|
792
785
|
}
|
|
793
786
|
}, {
|
|
794
787
|
key: "getTemplateConfig",
|
|
795
788
|
value: function getTemplateConfig() {
|
|
796
|
-
var _this$
|
|
797
|
-
return (_this$
|
|
789
|
+
var _this$divaWebConfigDa28;
|
|
790
|
+
return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.templateConfig;
|
|
798
791
|
}
|
|
799
792
|
}, {
|
|
800
793
|
key: "showDivaNr",
|
|
801
794
|
value: function showDivaNr() {
|
|
802
|
-
var _this$
|
|
803
|
-
return (_this$
|
|
795
|
+
var _this$divaWebConfigDa29;
|
|
796
|
+
return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.showDivaNr;
|
|
804
797
|
}
|
|
805
798
|
}, {
|
|
806
799
|
key: "onErrorHandling",
|
|
807
800
|
value: function onErrorHandling() {
|
|
808
|
-
var _this$
|
|
809
|
-
return (_this$
|
|
801
|
+
var _this$divaWebConfigDa30;
|
|
802
|
+
return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.onErrorHandling;
|
|
810
803
|
}
|
|
811
804
|
}, {
|
|
812
805
|
key: "diva3DRenderingDefault",
|
|
813
806
|
value: function diva3DRenderingDefault() {
|
|
814
|
-
var _this$
|
|
815
|
-
return (_this$
|
|
807
|
+
var _this$divaWebConfigDa31;
|
|
808
|
+
return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.diva3DRenderingDefault;
|
|
816
809
|
}
|
|
817
810
|
}, {
|
|
818
811
|
key: "getJwt",
|
|
@@ -827,8 +820,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
827
820
|
}, {
|
|
828
821
|
key: "getUseMask",
|
|
829
822
|
value: function getUseMask() {
|
|
830
|
-
var _this$
|
|
831
|
-
return (_this$
|
|
823
|
+
var _this$divaWebConfigDa32;
|
|
824
|
+
return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.useMask;
|
|
832
825
|
}
|
|
833
826
|
}, {
|
|
834
827
|
key: "apiUrl",
|
|
@@ -1348,14 +1341,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1348
1341
|
}, {
|
|
1349
1342
|
key: "dontLoadAdditionalModelInfos",
|
|
1350
1343
|
get: function get() {
|
|
1351
|
-
var _this$
|
|
1352
|
-
return (_this$
|
|
1344
|
+
var _this$divaWebConfigDa33;
|
|
1345
|
+
return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadAdditionalModelInfos;
|
|
1353
1346
|
}
|
|
1354
1347
|
}, {
|
|
1355
1348
|
key: "dontLoadCatalogEditorLiteMask",
|
|
1356
1349
|
get: function get() {
|
|
1357
|
-
var _this$
|
|
1358
|
-
return (_this$
|
|
1350
|
+
var _this$divaWebConfigDa34;
|
|
1351
|
+
return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.dontLoadCatalogEditorLiteMask;
|
|
1359
1352
|
}
|
|
1360
1353
|
}, {
|
|
1361
1354
|
key: "OrganizationId",
|
|
@@ -1781,6 +1774,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
|
|
|
1781
1774
|
get: function get() {
|
|
1782
1775
|
return this.opv.codex;
|
|
1783
1776
|
}
|
|
1777
|
+
}, {
|
|
1778
|
+
key: "isNotRelevant",
|
|
1779
|
+
get: function get() {
|
|
1780
|
+
return this.opv.catalogOPV.isNotRelevant;
|
|
1781
|
+
}
|
|
1784
1782
|
}, {
|
|
1785
1783
|
key: "vCodex",
|
|
1786
1784
|
get: function get() {
|
|
@@ -16075,6 +16073,8 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16075
16073
|
this.opv.onRule = prop.Value;
|
|
16076
16074
|
} else if (prop.Codex === 'CONTENT_ITEM') {
|
|
16077
16075
|
this.opv.contentItemId = prop.Value;
|
|
16076
|
+
} else if (prop.Codex === 'IS_NOT_RELEVANT') {
|
|
16077
|
+
this.opv.isNotRelevant = prop.Value;
|
|
16078
16078
|
} else if (prop.Codex === 'GROUP_CONTENT_ITEM') {
|
|
16079
16079
|
this.opv.groupContentItemId = prop.Value;
|
|
16080
16080
|
} else if (prop.Codex === 'SET_BY_RULE') {
|
|
@@ -16114,6 +16114,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16114
16114
|
get: function get() {
|
|
16115
16115
|
return this.opv.vCodex;
|
|
16116
16116
|
}
|
|
16117
|
+
}, {
|
|
16118
|
+
key: "isNotRelevant",
|
|
16119
|
+
get: function get() {
|
|
16120
|
+
return this.opv.isNotRelevant;
|
|
16121
|
+
}
|
|
16117
16122
|
}, {
|
|
16118
16123
|
key: "name",
|
|
16119
16124
|
get: function get() {
|
|
@@ -20075,7 +20080,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20075
20080
|
}, {
|
|
20076
20081
|
key: "isDisabled",
|
|
20077
20082
|
get: function get() {
|
|
20078
|
-
|
|
20083
|
+
var _this$val3;
|
|
20084
|
+
return this.articleOptionState.disabled || !!((_this$val3 = this.val) !== null && _this$val3 !== void 0 && _this$val3.isNotRelevant) && this.visibleCount == 1;
|
|
20079
20085
|
},
|
|
20080
20086
|
set: function set(isDisabled) {
|
|
20081
20087
|
this.articleOptionState.disabled = isDisabled;
|
|
@@ -20083,7 +20089,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20083
20089
|
}, {
|
|
20084
20090
|
key: "isDoShow",
|
|
20085
20091
|
get: function get() {
|
|
20086
|
-
|
|
20092
|
+
var _this$val4;
|
|
20093
|
+
return this.articleOptionState.doShow && (!((_this$val4 = this.val) !== null && _this$val4 !== void 0 && _this$val4.isNotRelevant) || this.visibleCount > 1);
|
|
20087
20094
|
},
|
|
20088
20095
|
set: function set(doShow) {
|
|
20089
20096
|
this.articleOptionState.doShow = doShow;
|
|
@@ -20127,14 +20134,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20127
20134
|
}, {
|
|
20128
20135
|
key: "priceId",
|
|
20129
20136
|
get: function get() {
|
|
20130
|
-
var _this$val$priceId, _this$
|
|
20131
|
-
return (_this$val$priceId = (_this$
|
|
20137
|
+
var _this$val$priceId, _this$val5;
|
|
20138
|
+
return (_this$val$priceId = (_this$val5 = this.val) === null || _this$val5 === void 0 ? void 0 : _this$val5.priceId) !== null && _this$val$priceId !== void 0 ? _this$val$priceId : '';
|
|
20132
20139
|
}
|
|
20133
20140
|
}, {
|
|
20134
20141
|
key: "targetOption",
|
|
20135
20142
|
get: function get() {
|
|
20136
|
-
var _this$
|
|
20137
|
-
return (_this$
|
|
20143
|
+
var _this$val6;
|
|
20144
|
+
return (_this$val6 = this.val) === null || _this$val6 === void 0 ? void 0 : _this$val6.targetOption;
|
|
20138
20145
|
}
|
|
20139
20146
|
}, {
|
|
20140
20147
|
key: "targetPPGPrefixes",
|
|
@@ -20151,14 +20158,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20151
20158
|
}, {
|
|
20152
20159
|
key: "quantity",
|
|
20153
20160
|
get: function get() {
|
|
20154
|
-
var _this$val$quantity, _this$
|
|
20155
|
-
return (_this$val$quantity = (_this$
|
|
20161
|
+
var _this$val$quantity, _this$val7;
|
|
20162
|
+
return (_this$val$quantity = (_this$val7 = this.val) === null || _this$val7 === void 0 ? void 0 : _this$val7.quantity) !== null && _this$val$quantity !== void 0 ? _this$val$quantity : 1;
|
|
20156
20163
|
}
|
|
20157
20164
|
}, {
|
|
20158
20165
|
key: "ocd",
|
|
20159
20166
|
get: function get() {
|
|
20160
|
-
var _this$
|
|
20161
|
-
return (_this$
|
|
20167
|
+
var _this$val8;
|
|
20168
|
+
return (_this$val8 = this.val) === null || _this$val8 === void 0 ? void 0 : _this$val8.ocd;
|
|
20162
20169
|
}
|
|
20163
20170
|
}, {
|
|
20164
20171
|
key: "optionOcd",
|
|
@@ -20168,8 +20175,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20168
20175
|
}, {
|
|
20169
20176
|
key: "value",
|
|
20170
20177
|
get: function get() {
|
|
20171
|
-
var _this$
|
|
20172
|
-
return (_this$
|
|
20178
|
+
var _this$val9;
|
|
20179
|
+
return (_this$val9 = this.val) === null || _this$val9 === void 0 ? void 0 : _this$val9.value;
|
|
20173
20180
|
}
|
|
20174
20181
|
}, {
|
|
20175
20182
|
key: "vCodex",
|
|
@@ -20197,8 +20204,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20197
20204
|
get: function get() {
|
|
20198
20205
|
if (this.articleOptionState.retailArticleNr) return this.articleOptionState.retailArticleNr;
|
|
20199
20206
|
if (this.articleOptionState.option.articlePlaceholder) {
|
|
20200
|
-
var _this$
|
|
20201
|
-
return (_this$
|
|
20207
|
+
var _this$val10;
|
|
20208
|
+
return (_this$val10 = this.val) === null || _this$val10 === void 0 ? void 0 : _this$val10.subRetailArticleNr;
|
|
20202
20209
|
}
|
|
20203
20210
|
return undefined;
|
|
20204
20211
|
},
|
|
@@ -20221,8 +20228,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20221
20228
|
}, {
|
|
20222
20229
|
key: "visibleInSummary",
|
|
20223
20230
|
value: function visibleInSummary(aritcle) {
|
|
20224
|
-
var _this$
|
|
20225
|
-
return !this.isInvisible && (this.selectionmode != 0 || (this.visibleCount > 1 || this.isFreeText) && aritcle.set.api.showSelectionModeZero()) && this.isDoShow && this.
|
|
20231
|
+
var _this$val11, _this$val12;
|
|
20232
|
+
return !this.isInvisible && (this.selectionmode != 0 || (this.visibleCount > 1 || this.isFreeText) && aritcle.set.api.showSelectionModeZero()) && this.isDoShow && !((_this$val11 = this.val) !== null && _this$val11 !== void 0 && _this$val11.isNotRelevant) && !this.isHiddenByDefaultValueForOptions(aritcle) && !((_this$val12 = this.val) !== null && _this$val12 !== void 0 && _this$val12.hideInSummary);
|
|
20226
20233
|
}
|
|
20227
20234
|
}, {
|
|
20228
20235
|
key: "isHiddenByDefaultValueForOptions",
|
|
@@ -20243,45 +20250,45 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20243
20250
|
}, {
|
|
20244
20251
|
key: "subArticleCodex",
|
|
20245
20252
|
get: function get() {
|
|
20246
|
-
var _this$
|
|
20247
|
-
return (_this$
|
|
20253
|
+
var _this$val13;
|
|
20254
|
+
return (_this$val13 = this.val) === null || _this$val13 === void 0 ? void 0 : _this$val13.subArticleCodex;
|
|
20248
20255
|
}
|
|
20249
20256
|
}, {
|
|
20250
20257
|
key: "subArticleName",
|
|
20251
20258
|
get: function get() {
|
|
20252
|
-
var _this$
|
|
20253
|
-
return (_this$
|
|
20259
|
+
var _this$val14;
|
|
20260
|
+
return (_this$val14 = this.val) === null || _this$val14 === void 0 ? void 0 : _this$val14.subArticleName;
|
|
20254
20261
|
}
|
|
20255
20262
|
}, {
|
|
20256
20263
|
key: "measureUnit",
|
|
20257
20264
|
get: function get() {
|
|
20258
|
-
var _this$
|
|
20259
|
-
return (_this$
|
|
20265
|
+
var _this$val15;
|
|
20266
|
+
return (_this$val15 = this.val) === null || _this$val15 === void 0 ? void 0 : _this$val15.measureUnit;
|
|
20260
20267
|
}
|
|
20261
20268
|
}, {
|
|
20262
20269
|
key: "priceUnit",
|
|
20263
20270
|
get: function get() {
|
|
20264
|
-
var _this$val$priceUnit, _this$
|
|
20265
|
-
var retval = (_this$val$priceUnit = (_this$
|
|
20271
|
+
var _this$val$priceUnit, _this$val16, _this$val17, _this$val$parent;
|
|
20272
|
+
var retval = (_this$val$priceUnit = (_this$val16 = this.val) === null || _this$val16 === void 0 ? void 0 : _this$val16.priceUnit) !== null && _this$val$priceUnit !== void 0 ? _this$val$priceUnit : (_this$val17 = this.val) !== null && _this$val17 !== void 0 && _this$val17.isParentOPVG ? (_this$val$parent = this.val.parent) === null || _this$val$parent === void 0 ? void 0 : _this$val$parent.priceUnit : undefined;
|
|
20266
20273
|
return retval;
|
|
20267
20274
|
}
|
|
20268
20275
|
}, {
|
|
20269
20276
|
key: "isPercentage",
|
|
20270
20277
|
get: function get() {
|
|
20271
|
-
var _this$
|
|
20272
|
-
return (_this$
|
|
20278
|
+
var _this$val18;
|
|
20279
|
+
return (_this$val18 = this.val) === null || _this$val18 === void 0 ? void 0 : _this$val18.isPercentage;
|
|
20273
20280
|
}
|
|
20274
20281
|
}, {
|
|
20275
20282
|
key: "replaceMainArtNr",
|
|
20276
20283
|
get: function get() {
|
|
20277
|
-
var _this$
|
|
20278
|
-
return (_this$
|
|
20284
|
+
var _this$val19;
|
|
20285
|
+
return (_this$val19 = this.val) === null || _this$val19 === void 0 ? void 0 : _this$val19.subarticleReplaceMainArticleNr;
|
|
20279
20286
|
}
|
|
20280
20287
|
}, {
|
|
20281
20288
|
key: "subArticleTypeNr",
|
|
20282
20289
|
get: function get() {
|
|
20283
|
-
var _this$
|
|
20284
|
-
return (_this$
|
|
20290
|
+
var _this$val20;
|
|
20291
|
+
return (_this$val20 = this.val) === null || _this$val20 === void 0 ? void 0 : _this$val20.subArticleTypeNr;
|
|
20285
20292
|
}
|
|
20286
20293
|
}, {
|
|
20287
20294
|
key: "isVisibleFreeText",
|
|
@@ -20307,14 +20314,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20307
20314
|
}, {
|
|
20308
20315
|
key: "isOnlyFreeText",
|
|
20309
20316
|
get: function get() {
|
|
20310
|
-
var _this$
|
|
20311
|
-
return ((_this$
|
|
20317
|
+
var _this$val21;
|
|
20318
|
+
return ((_this$val21 = this.val) === null || _this$val21 === void 0 ? void 0 : _this$val21.isFreeText) && this.visibleCount == 1;
|
|
20312
20319
|
}
|
|
20313
20320
|
}, {
|
|
20314
20321
|
key: "isFreeText",
|
|
20315
20322
|
get: function get() {
|
|
20316
|
-
var _this$
|
|
20317
|
-
return (_this$
|
|
20323
|
+
var _this$val22;
|
|
20324
|
+
return (_this$val22 = this.val) === null || _this$val22 === void 0 ? void 0 : _this$val22.isFreeText;
|
|
20318
20325
|
}
|
|
20319
20326
|
}, {
|
|
20320
20327
|
key: "freeText",
|
|
@@ -20359,8 +20366,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20359
20366
|
}, {
|
|
20360
20367
|
key: "warning",
|
|
20361
20368
|
get: function get() {
|
|
20362
|
-
var _this$
|
|
20363
|
-
if ((_this$
|
|
20369
|
+
var _this$val23;
|
|
20370
|
+
if ((_this$val23 = this.val) !== null && _this$val23 !== void 0 && _this$val23.isFreeText) {
|
|
20364
20371
|
if (this.val.measureMaximum && Number(this.freeText) > Number(this.val.measureMaximum) || this.val.measureMinimum && Number(this.freeText) < Number(this.val.measureMinimum)) {
|
|
20365
20372
|
return 'measureWarning';
|
|
20366
20373
|
}
|
|
@@ -23629,7 +23636,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23629
23636
|
break;
|
|
23630
23637
|
}
|
|
23631
23638
|
_context.next = 4;
|
|
23632
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
23639
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-ffca2d2f.js'); });
|
|
23633
23640
|
case 4:
|
|
23634
23641
|
_yield$import = _context.sent;
|
|
23635
23642
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -28162,7 +28169,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28162
28169
|
break;
|
|
28163
28170
|
}
|
|
28164
28171
|
_context4.next = 3;
|
|
28165
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
28172
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-b5c52f00.js'); });
|
|
28166
28173
|
case 3:
|
|
28167
28174
|
_yield$import = _context4.sent;
|
|
28168
28175
|
DoorPlanner = _yield$import["default"];
|
|
@@ -28928,10 +28935,11 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
28928
28935
|
value: function geTabGroupFormOptionsForSummary(article) {
|
|
28929
28936
|
var tabGroups = [];
|
|
28930
28937
|
for (var basketId in article.partlistArticles) {
|
|
28938
|
+
var _ops$val;
|
|
28931
28939
|
var partlistArticle = article.partlistArticles[basketId];
|
|
28932
28940
|
if (!partlistArticle.tabGroup) continue;
|
|
28933
28941
|
var ops = article.getArticleOptionState('OPT' + partlistArticle.tabGroup);
|
|
28934
|
-
if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && ops.
|
|
28942
|
+
if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && !((_ops$val = ops.val) !== null && _ops$val !== void 0 && _ops$val.isNotRelevant) && ops !== null && ops !== void 0 && ops.optionTabGroup) {
|
|
28935
28943
|
tabGroups.push({
|
|
28936
28944
|
optionCodex: ops.optionCodex,
|
|
28937
28945
|
tabGroup: ops.optionTabGroup
|
|
@@ -28941,8 +28949,9 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
28941
28949
|
|
|
28942
28950
|
//old logic TODO: Delete in 2024
|
|
28943
28951
|
if (Object.keys(tabGroups).length === 0) for (var _key12 in article.articleOptionStates) {
|
|
28952
|
+
var _ops$val2;
|
|
28944
28953
|
var _ops = article.articleOptionStates[_key12];
|
|
28945
|
-
if (!_ops.isInvisible && (_ops.selectionmode != 0 || (_ops.visibleCount > 1 || _ops.isFreeText) && article.set.api.showSelectionModeZero()) && _ops.
|
|
28954
|
+
if (!_ops.isInvisible && (_ops.selectionmode != 0 || (_ops.visibleCount > 1 || _ops.isFreeText) && article.set.api.showSelectionModeZero()) && !((_ops$val2 = _ops.val) !== null && _ops$val2 !== void 0 && _ops$val2.isNotRelevant) && _ops.isDoShow) {
|
|
28946
28955
|
var tabGroup = _ops.option.addOptionToTabgroupInPartlistSummary;
|
|
28947
28956
|
if (tabGroup) tabGroups.push({
|
|
28948
28957
|
optionCodex: _key12,
|
|
@@ -28971,8 +28980,9 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
28971
28980
|
var opss = [];
|
|
28972
28981
|
if (article.getArticleOptionState('OPT' + optionCodexes[0])) {
|
|
28973
28982
|
for (var i = 0; i < optionCodexes.length; i++) {
|
|
28983
|
+
var _optionState$val3;
|
|
28974
28984
|
var optionState = article.getArticleOptionState('OPT' + optionCodexes[i]);
|
|
28975
|
-
if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && optionState.
|
|
28985
|
+
if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && !((_optionState$val3 = optionState.val) !== null && _optionState$val3 !== void 0 && _optionState$val3.isNotRelevant)) {
|
|
28976
28986
|
opss.push(optionState);
|
|
28977
28987
|
}
|
|
28978
28988
|
}
|
|
@@ -28981,8 +28991,9 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
28981
28991
|
|
|
28982
28992
|
//old logic TODO: Delete in 2024
|
|
28983
28993
|
for (var _key13 in article.articleOptionStates) {
|
|
28994
|
+
var _optionState$val4;
|
|
28984
28995
|
var _optionState = article.articleOptionStates[_key13];
|
|
28985
|
-
if (_optionState.option.addOptionToTabgroupInPartlistSummary == tabGroup && !_optionState.isInvisible && _optionState.isDoShow && _optionState.visibleCount > 0 && _optionState.
|
|
28996
|
+
if (_optionState.option.addOptionToTabgroupInPartlistSummary == tabGroup && !_optionState.isInvisible && _optionState.isDoShow && _optionState.visibleCount > 0 && !((_optionState$val4 = _optionState.val) !== null && _optionState$val4 !== void 0 && _optionState$val4.isNotRelevant)) {
|
|
28986
28997
|
opss.push(_optionState);
|
|
28987
28998
|
}
|
|
28988
28999
|
}
|
|
@@ -30079,9 +30090,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30079
30090
|
}
|
|
30080
30091
|
}, {
|
|
30081
30092
|
key: "addOptionsStateToConfigTree",
|
|
30082
|
-
value: function addOptionsStateToConfigTree(set, configTree, articles,
|
|
30083
|
-
var _set$ViewConfig3;
|
|
30084
|
-
var article = articles[
|
|
30093
|
+
value: function addOptionsStateToConfigTree(set, configTree, articles, b, ops, optionCodex, selectionmode, addToTabGroup) {
|
|
30094
|
+
var _article$partListPare, _set$ViewConfig3;
|
|
30095
|
+
var article = articles[b];
|
|
30096
|
+
var basketId = article.partlistArticleVisibleInTree ? (_article$partListPare = article.partListParentArticle) === null || _article$partListPare === void 0 ? void 0 : _article$partListPare.basketId : article.basketId;
|
|
30085
30097
|
var tabGroupCodex;
|
|
30086
30098
|
var tabGroupTitel;
|
|
30087
30099
|
if (ops.optionTabGroup) tabGroupCodex = ops.optionTabGroup;else tabGroupCodex = ops.optionName;
|
|
@@ -30367,7 +30379,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30367
30379
|
optionStatesOfArticles = set.getOptionStatesOfArticles(set.getDivaArticles(true));
|
|
30368
30380
|
articles = set.getDivaArticles(true);
|
|
30369
30381
|
step = set.configTree.getAllByKey(configStepKey);
|
|
30370
|
-
retValues = this.getConfigItems(configStepKey,
|
|
30382
|
+
retValues = this.getConfigItems(configStepKey, articles, set.configTree);
|
|
30371
30383
|
optionCodex = undefined;
|
|
30372
30384
|
if (!(retValues && step != null)) {
|
|
30373
30385
|
_context.next = 55;
|
|
@@ -30500,7 +30512,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30500
30512
|
}()
|
|
30501
30513
|
}, {
|
|
30502
30514
|
key: "getConfigItems",
|
|
30503
|
-
value: function getConfigItems(key,
|
|
30515
|
+
value: function getConfigItems(key, articles, configTree) {
|
|
30504
30516
|
var step = configTree.getAllByKey(key);
|
|
30505
30517
|
if (step != null) {
|
|
30506
30518
|
var configItems = {},
|
|
@@ -30514,7 +30526,8 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30514
30526
|
notTotallyMatichingOPVs = false,
|
|
30515
30527
|
myOptionState = undefined;
|
|
30516
30528
|
for (var i = 0; i < configStep.targetArticles.length; i++) {
|
|
30517
|
-
var
|
|
30529
|
+
var article = articles[configStep.targetArticles[i]];
|
|
30530
|
+
var myOptions = article.articleOptionStates;
|
|
30518
30531
|
myOptionState = myOptions[configStep.option];
|
|
30519
30532
|
if (myOptionState.option.hasOPG) isOPG = true;
|
|
30520
30533
|
selectedVals = selectedVals.concat(myOptionState.getSelectedVals);
|
|
@@ -30547,6 +30560,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30547
30560
|
if (visibleOptionValuesOfArticles.length > 0) {
|
|
30548
30561
|
configItems = Object.assign({}, visibleOptionValuesOfArticles[0]);
|
|
30549
30562
|
var _loop4 = function _loop4(_i2) {
|
|
30563
|
+
if (articles[configStep.targetArticles[_i2]].articleOptionStates[configStep.option].definedBySetFeatureFixed) return 1; // continue
|
|
30550
30564
|
var keys = Object.keys(configItems);
|
|
30551
30565
|
var newKeys = Object.keys(visibleOptionValuesOfArticles[_i2]);
|
|
30552
30566
|
var opvsOnlyInA = keys.filter(function (x) {
|
|
@@ -30604,7 +30618,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30604
30618
|
}
|
|
30605
30619
|
};
|
|
30606
30620
|
for (var _i2 = 1; _i2 < visibleOptionValuesOfArticles.length; _i2++) {
|
|
30607
|
-
_loop4(_i2);
|
|
30621
|
+
if (_loop4(_i2)) continue;
|
|
30608
30622
|
}
|
|
30609
30623
|
}
|
|
30610
30624
|
return {
|
|
@@ -32575,11 +32589,28 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32575
32589
|
targetArticles = targetArticles.concat(Object.keys((_articles$activeArtic = articles[activeArticles[0]]) === null || _articles$activeArtic === void 0 ? void 0 : _articles$activeArtic.accessoires));
|
|
32576
32590
|
}
|
|
32577
32591
|
var articleInfos = articleHandlerInstance.getArticleInfos(activeArticles, targetArticles, articles);
|
|
32592
|
+
//within an article and its partlistarticles cant be configured differently, so we group them here
|
|
32593
|
+
var groupedArticles = [];
|
|
32594
|
+
var _loop3 = function _loop3() {
|
|
32595
|
+
var article = articles[targetArticles[i]];
|
|
32596
|
+
var group = groupedArticles.find(function (group) {
|
|
32597
|
+
var _article$partListPare, _article$partListPare2;
|
|
32598
|
+
return group.includes((_article$partListPare = (_article$partListPare2 = article.partListParentArticle) === null || _article$partListPare2 === void 0 ? void 0 : _article$partListPare2.basketId) !== null && _article$partListPare !== void 0 ? _article$partListPare : '');
|
|
32599
|
+
});
|
|
32600
|
+
if (group) {
|
|
32601
|
+
group.push(article.basketId);
|
|
32602
|
+
} else {
|
|
32603
|
+
groupedArticles.push([article.basketId]);
|
|
32604
|
+
}
|
|
32605
|
+
};
|
|
32606
|
+
for (var i = 0; i < targetArticles.length; i++) {
|
|
32607
|
+
_loop3();
|
|
32608
|
+
}
|
|
32578
32609
|
var isConfigSingle = set.configSingle;
|
|
32579
32610
|
var doShowConfigSingle = configStepKey ? set.configTree.doShowConfigSingle(configStepKey) : false;
|
|
32580
32611
|
return {
|
|
32581
32612
|
articleInfos: articleInfos,
|
|
32582
|
-
doShowConfigSingle: doShowConfigSingle &&
|
|
32613
|
+
doShowConfigSingle: doShowConfigSingle && groupedArticles.length > 1,
|
|
32583
32614
|
isConfigSingle: isConfigSingle,
|
|
32584
32615
|
articleName: activeArticles[0] ? (_articles$activeArtic2 = articles[activeArticles[0]]) === null || _articles$activeArtic2 === void 0 || (_articles$activeArtic2 = _articles$activeArtic2.curProduct) === null || _articles$activeArtic2 === void 0 ? void 0 : _articles$activeArtic2.shortDescription : ''
|
|
32585
32616
|
};
|
|
@@ -32963,7 +32994,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32963
32994
|
key: "confirmOptionsInMetric",
|
|
32964
32995
|
value: function confirmOptionsInMetric(set, options, actionEvent) {
|
|
32965
32996
|
var variantItems = set.getVariantBasketData();
|
|
32966
|
-
var
|
|
32997
|
+
var _loop4 = function _loop4() {
|
|
32967
32998
|
var opt = options[i].substring(3);
|
|
32968
32999
|
var variantItem = variantItems.find(function (item) {
|
|
32969
33000
|
return item.OPT == opt;
|
|
@@ -32982,7 +33013,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32982
33013
|
}
|
|
32983
33014
|
};
|
|
32984
33015
|
for (var i = 0; i < options.length; i++) {
|
|
32985
|
-
|
|
33016
|
+
_loop4();
|
|
32986
33017
|
}
|
|
32987
33018
|
}
|
|
32988
33019
|
}, {
|
|
@@ -33109,7 +33140,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33109
33140
|
//check first if there are options that require user input
|
|
33110
33141
|
var articles = [];
|
|
33111
33142
|
var options = [];
|
|
33112
|
-
var
|
|
33143
|
+
var _loop5 = function _loop5(key) {
|
|
33113
33144
|
var _articleHandler$check = articleHandlerInstance.checkIfAllOptionsAreDefined(sets[key].getDivaArticles()),
|
|
33114
33145
|
articleNames = _articleHandler$check.articleNames,
|
|
33115
33146
|
newOptions = _articleHandler$check.options;
|
|
@@ -33121,7 +33152,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33121
33152
|
articles = articles.concat(articleNames);
|
|
33122
33153
|
};
|
|
33123
33154
|
for (var key in sets) {
|
|
33124
|
-
|
|
33155
|
+
_loop5(key);
|
|
33125
33156
|
}
|
|
33126
33157
|
if (articles.length == 0) {
|
|
33127
33158
|
return true;
|
|
@@ -33148,7 +33179,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33148
33179
|
var accessoires = [];
|
|
33149
33180
|
var grids = [];
|
|
33150
33181
|
var articles = [];
|
|
33151
|
-
var
|
|
33182
|
+
var _loop6 = function _loop6() {
|
|
33152
33183
|
var _retVal$configStep$ta2;
|
|
33153
33184
|
var article = set.getArticleByBasketId((_retVal$configStep$ta2 = retVal === null || retVal === void 0 ? void 0 : retVal.configStep.targetArticles[i]) !== null && _retVal$configStep$ta2 !== void 0 ? _retVal$configStep$ta2 : '');
|
|
33154
33185
|
if (!article || !article.shelfPlanner) return 1; // continue
|
|
@@ -33157,18 +33188,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33157
33188
|
a = _article$shelfPlanner2.accessoires,
|
|
33158
33189
|
g = _article$shelfPlanner2.grids;
|
|
33159
33190
|
grids = [].concat(_toConsumableArray__default["default"](grids), _toConsumableArray__default["default"](g));
|
|
33160
|
-
var
|
|
33191
|
+
var _loop7 = function _loop7(j) {
|
|
33161
33192
|
if (!accessoires.find(function (acc) {
|
|
33162
33193
|
return acc.articleCodex === a[j].articleCodex;
|
|
33163
33194
|
})) accessoires.push(a[j]);
|
|
33164
33195
|
};
|
|
33165
33196
|
for (var j = 0; j < a.length; j++) {
|
|
33166
|
-
|
|
33197
|
+
_loop7(j);
|
|
33167
33198
|
}
|
|
33168
33199
|
};
|
|
33169
33200
|
for (var i = 0; i < ((_retVal$configStep$ta = retVal === null || retVal === void 0 ? void 0 : retVal.configStep.targetArticles) !== null && _retVal$configStep$ta !== void 0 ? _retVal$configStep$ta : []).length; i++) {
|
|
33170
33201
|
var _retVal$configStep$ta;
|
|
33171
|
-
if (
|
|
33202
|
+
if (_loop6()) continue;
|
|
33172
33203
|
}
|
|
33173
33204
|
configTreeHandler.fillConfigStepKeysInAccessoireItem(articles, set.configTree, accessoires !== null && accessoires !== void 0 ? accessoires : []);
|
|
33174
33205
|
return {
|
|
@@ -33429,7 +33460,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33429
33460
|
}, {
|
|
33430
33461
|
key: "repairOrderSets",
|
|
33431
33462
|
value: function repairOrderSets(basketData, orerSets) {
|
|
33432
|
-
var
|
|
33463
|
+
var _loop8 = function _loop8() {
|
|
33433
33464
|
var actOrderSet = orerSets[i];
|
|
33434
33465
|
var setId = actOrderSet.SetID;
|
|
33435
33466
|
var origOrderSet = basketData.OrderSets.find(function (set) {
|
|
@@ -33467,7 +33498,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33467
33498
|
}
|
|
33468
33499
|
};
|
|
33469
33500
|
for (var i = 0; i < orerSets.length; i++) {
|
|
33470
|
-
|
|
33501
|
+
_loop8();
|
|
33471
33502
|
}
|
|
33472
33503
|
}
|
|
33473
33504
|
/**************************SpeicherRoutinen*************************************/
|
|
@@ -34874,7 +34905,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34874
34905
|
break;
|
|
34875
34906
|
case 3:
|
|
34876
34907
|
_context12.next = 5;
|
|
34877
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
34908
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-85364fc5.js'); });
|
|
34878
34909
|
case 5:
|
|
34879
34910
|
_yield$import = _context12.sent;
|
|
34880
34911
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -34882,7 +34913,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34882
34913
|
return _context12.abrupt("break", 27);
|
|
34883
34914
|
case 9:
|
|
34884
34915
|
_context12.next = 11;
|
|
34885
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
34916
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-e2865f37.js'); });
|
|
34886
34917
|
case 11:
|
|
34887
34918
|
_yield$import2 = _context12.sent;
|
|
34888
34919
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -34890,7 +34921,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34890
34921
|
return _context12.abrupt("break", 27);
|
|
34891
34922
|
case 15:
|
|
34892
34923
|
_context12.next = 17;
|
|
34893
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
34924
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-10541589.js'); });
|
|
34894
34925
|
case 17:
|
|
34895
34926
|
_yield$import3 = _context12.sent;
|
|
34896
34927
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -34898,7 +34929,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34898
34929
|
return _context12.abrupt("break", 27);
|
|
34899
34930
|
case 21:
|
|
34900
34931
|
_context12.next = 23;
|
|
34901
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
34932
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-2abbb584.js'); });
|
|
34902
34933
|
case 23:
|
|
34903
34934
|
_yield$import4 = _context12.sent;
|
|
34904
34935
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -36288,7 +36319,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36288
36319
|
while (1) switch (_context3.prev = _context3.next) {
|
|
36289
36320
|
case 0:
|
|
36290
36321
|
_context3.next = 2;
|
|
36291
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
36322
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-d90c84fc.js'); });
|
|
36292
36323
|
case 2:
|
|
36293
36324
|
_yield$import = _context3.sent;
|
|
36294
36325
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -37183,14 +37214,12 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
|
|
|
37183
37214
|
_classCallCheck__default["default"](this, DivaMediaServiceHandler);
|
|
37184
37215
|
_defineProperty__default["default"](this, "organizationId", void 0);
|
|
37185
37216
|
_defineProperty__default["default"](this, "mediaServiceUrl", void 0);
|
|
37186
|
-
_defineProperty__default["default"](this, "mediaServiceApiKey", void 0);
|
|
37187
37217
|
_defineProperty__default["default"](this, "jwt", void 0);
|
|
37188
37218
|
_defineProperty__default["default"](this, "POST_saveTmp2PermanentPostfix", '/saveTmp2Permanent');
|
|
37189
37219
|
_defineProperty__default["default"](this, "GET_MediaItemrefs", '/v1/mediaitems/refs?limit=20&skip=0&filter=');
|
|
37190
37220
|
_defineProperty__default["default"](this, "POST_mediaItem", '/v1/mediaitems?ref=true');
|
|
37191
37221
|
this.organizationId = '';
|
|
37192
37222
|
this.mediaServiceUrl = '';
|
|
37193
|
-
this.mediaServiceApiKey = '';
|
|
37194
37223
|
}
|
|
37195
37224
|
return _createClass__default["default"](DivaMediaServiceHandler, [{
|
|
37196
37225
|
key: "setOrganizationId",
|
|
@@ -37202,11 +37231,6 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
|
|
|
37202
37231
|
value: function setMediaServiceUrl(mediaServiceUrl) {
|
|
37203
37232
|
this.mediaServiceUrl = mediaServiceUrl;
|
|
37204
37233
|
}
|
|
37205
|
-
}, {
|
|
37206
|
-
key: "setMediaServiceApiKey",
|
|
37207
|
-
value: function setMediaServiceApiKey(mediaServiceApiKey) {
|
|
37208
|
-
this.mediaServiceApiKey = mediaServiceApiKey;
|
|
37209
|
-
}
|
|
37210
37234
|
}, {
|
|
37211
37235
|
key: "setJwt",
|
|
37212
37236
|
value: function setJwt(jwt) {
|
|
@@ -37263,7 +37287,7 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
|
|
|
37263
37287
|
method: 'POST',
|
|
37264
37288
|
body: data,
|
|
37265
37289
|
headers: {
|
|
37266
|
-
'
|
|
37290
|
+
Authorization: 'Bearer ' + this.jwt
|
|
37267
37291
|
}
|
|
37268
37292
|
});
|
|
37269
37293
|
case 11:
|
|
@@ -37634,7 +37658,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37634
37658
|
key: "initPlanner",
|
|
37635
37659
|
value: (function () {
|
|
37636
37660
|
var _initPlanner = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(initSetState, plannerHandlerFunctions) {
|
|
37637
|
-
var renderGroup, diva3dServerUrl, divaMediaServiceUrl,
|
|
37661
|
+
var renderGroup, diva3dServerUrl, divaMediaServiceUrl, _initSetState$api$web, result;
|
|
37638
37662
|
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
37639
37663
|
while (1) switch (_context.prev = _context.next) {
|
|
37640
37664
|
case 0:
|
|
@@ -37642,8 +37666,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37642
37666
|
renderGroup = initSetState.api.get3DRenderGroup();
|
|
37643
37667
|
this.plannerHandlerFunctions = plannerHandlerFunctions;
|
|
37644
37668
|
diva3dServerUrl = initSetState.api.get3DServerUrl();
|
|
37645
|
-
divaMediaServiceUrl = initSetState.api.getDivaMediaServiceUrl();
|
|
37646
|
-
mediaServiceApiKey = initSetState.api.getDivaMediaServiceApiKey(); // renderGroup = 'LeaTest';
|
|
37669
|
+
divaMediaServiceUrl = initSetState.api.getDivaMediaServiceUrl(); // renderGroup = 'LeaTest';
|
|
37647
37670
|
//diva3dServerUrl = "https://test-einkauf-onboarding.pfister.ch/diva3d/diva3dhost2/";
|
|
37648
37671
|
// diva3dServerUrl = "https://diva3dhost.diva-portal.com/diva3d/diva3dhost2/";
|
|
37649
37672
|
//diva3dServerUrl = 'https://localhost:44315/';
|
|
@@ -37653,7 +37676,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37653
37676
|
//divaMediaServiceUrl = 'https://api-test.diva-portal.com/media/';
|
|
37654
37677
|
//divaMediaServiceUrl = 'http://localhost:3000';
|
|
37655
37678
|
if (!(!initSetState.onlyRunLogic && !initSetState.no3DConnection)) {
|
|
37656
|
-
_context.next =
|
|
37679
|
+
_context.next = 13;
|
|
37657
37680
|
break;
|
|
37658
37681
|
}
|
|
37659
37682
|
this.handler3D.initializeCallbackFunctions({
|
|
@@ -37672,24 +37695,23 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37672
37695
|
arViewerUrl: (_initSetState$api$web = initSetState.api.webConfig) === null || _initSetState$api$web === void 0 ? void 0 : _initSetState$api$web.arViewerUrl
|
|
37673
37696
|
});
|
|
37674
37697
|
if (!(!this.handler3D.checkConnectionInitialized() || result.renderGroupChanged || result.diva3dServerUrlChanged)) {
|
|
37675
|
-
_context.next =
|
|
37698
|
+
_context.next = 12;
|
|
37676
37699
|
break;
|
|
37677
37700
|
}
|
|
37678
|
-
_context.next =
|
|
37701
|
+
_context.next = 12;
|
|
37679
37702
|
return this.handler3D.initializeConnection();
|
|
37680
|
-
case
|
|
37703
|
+
case 12:
|
|
37681
37704
|
if (this.divaNr != initSetState.divaNr) {
|
|
37682
37705
|
this.divaNr = initSetState.divaNr;
|
|
37683
37706
|
this.handler3D.joinDivaNr(this.divaNr);
|
|
37684
37707
|
}
|
|
37685
|
-
case
|
|
37708
|
+
case 13:
|
|
37686
37709
|
mediaServiceHandler.setMediaServiceUrl(divaMediaServiceUrl);
|
|
37687
|
-
mediaServiceHandler.setMediaServiceApiKey(mediaServiceApiKey);
|
|
37688
37710
|
mediaServiceHandler.setOrganizationId(initSetState.organizationId);
|
|
37689
37711
|
mediaServiceHandler.setJwt(initSetState.api.getJwt());
|
|
37690
37712
|
this.handler3D.setOrigConfigurationCallback(this.plannerHandlerFunctions.getOrigConfiguration);
|
|
37691
37713
|
DivaUtils__default["default"].endSpanOfApm('DivaPlannerHandler initPlanner');
|
|
37692
|
-
case
|
|
37714
|
+
case 18:
|
|
37693
37715
|
case "end":
|
|
37694
37716
|
return _context.stop();
|
|
37695
37717
|
}
|
|
@@ -37840,7 +37862,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37840
37862
|
break;
|
|
37841
37863
|
case 8:
|
|
37842
37864
|
_context4.next = 10;
|
|
37843
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
37865
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-2d5e2fcb.js'); });
|
|
37844
37866
|
case 10:
|
|
37845
37867
|
_yield$import = _context4.sent;
|
|
37846
37868
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -37851,7 +37873,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37851
37873
|
return _context4.abrupt("break", 21);
|
|
37852
37874
|
case 15:
|
|
37853
37875
|
_context4.next = 17;
|
|
37854
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
37876
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-407b522a.js'); });
|
|
37855
37877
|
case 17:
|
|
37856
37878
|
_yield$import2 = _context4.sent;
|
|
37857
37879
|
DivaBoxPlanner = _yield$import2["default"];
|