@crystaldesign/web-planner-logic 25.5.0-beta.3 → 25.5.0-beta.30
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-10481078.js → DivaBoxPlanner-fc704b00.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-d13cca7a.js → DivaStandardPlanner-8a3c6fc0.js} +66 -27
- package/build/cjs/{DoorPlanner-4ebcc53d.js → DoorPlanner-5dcac7c5.js} +1 -1
- package/build/cjs/{Host3DSignalR-1c1b8c1a.js → Host3DSignalR-a5a11447.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-11ecd966.js → LiviqueWWSHandler-7223bb81.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-85b20c41.js → PfisterWWSHandler-05f3ce5d.js} +1 -1
- package/build/cjs/{PlannerHandler2D-b0c0eae8.js → PlannerHandler2D-ef7e0f27.js} +9 -3
- package/build/cjs/{SeriousBasketHandler-5ebc3e01.js → SeriousBasketHandler-1b0b8848.js} +2 -2
- package/build/cjs/{ShelfPlanner-c89976b9.js → ShelfPlanner-9b6a7bf9.js} +2 -1
- package/build/cjs/{StandardWWSHandler-63132754.js → StandardWWSHandler-eb600be9.js} +1 -1
- package/build/cjs/{index-e9136eb2.js → index-ee78e6cf.js} +715 -432
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-960dd248.js → DivaBoxPlanner-348955db.js} +2 -2
- package/build/esm/{DivaStandardPlanner-8be567e2.js → DivaStandardPlanner-1309f086.js} +66 -27
- package/build/esm/{DoorPlanner-9116e0cc.js → DoorPlanner-1f367baa.js} +1 -1
- package/build/esm/{Host3DSignalR-2ff79baa.js → Host3DSignalR-552de97e.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-152cbf3e.js → LiviqueWWSHandler-95c5256d.js} +1 -1
- package/build/esm/{PfisterWWSHandler-1041d9f9.js → PfisterWWSHandler-a9626e93.js} +1 -1
- package/build/esm/{PlannerHandler2D-4656f6ab.js → PlannerHandler2D-c482d040.js} +9 -3
- package/build/esm/{SeriousBasketHandler-447744dd.js → SeriousBasketHandler-c9454fb5.js} +2 -2
- package/build/esm/{ShelfPlanner-f2022d16.js → ShelfPlanner-4cdfc179.js} +2 -1
- package/build/esm/{StandardWWSHandler-aac0d68a.js → StandardWWSHandler-51882988.js} +1 -1
- package/build/esm/{index-7ca7b229.js → index-590a7a81.js} +715 -432
- 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/API/Checkout.d.ts +4 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/ArticleDataType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/Articles/ArticleDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/PartListArticleToLoadType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Articles/PartListArticleToLoadType.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/CoreTypes/index.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +0 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts +3 -1
- package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.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/OptionTypes/DecisionType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/DecisionType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/PlannerDataType.d.ts +3 -0
- package/build/types/web-planner-logic/src/interface/Planner/PlannerDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.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/Article/DivaArticle.d.ts +16 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/Engine/ArticleEngine.d.ts +3 -0
- package/build/types/web-planner-logic/src/logic/Article/Engine/ArticleEngine.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/Engine/DivaArticleEngine.d.ts +3 -0
- package/build/types/web-planner-logic/src/logic/Article/Engine/DivaArticleEngine.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.d.ts +5 -0
- package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.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/ConfigTree/DivaConfigTree.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +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 +4 -3
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +3 -0
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.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/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/CatalogPlannerArticleData.d.ts +1 -0
- package/build/types/web-planner-logic/src/model/Articles/CatalogPlannerArticleData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +5 -2
- package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts +3 -0
- package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.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
|
-
}).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber');
|
|
1068
|
+
}).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;detailInfos;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber');
|
|
1036
1069
|
}
|
|
1037
1070
|
}, {
|
|
1038
1071
|
key: "getIDMItem",
|
|
1039
1072
|
value: function getIDMItem(catalogId, serieId, typeNo) {
|
|
1040
|
-
return '/
|
|
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",
|
|
@@ -1636,6 +1669,11 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
|
|
|
1636
1669
|
get: function get() {
|
|
1637
1670
|
return this.catPlanArt.articleCodex;
|
|
1638
1671
|
}
|
|
1672
|
+
}, {
|
|
1673
|
+
key: "longDescription",
|
|
1674
|
+
get: function get() {
|
|
1675
|
+
return this.catPlanArt.catalogArticle.longDescription;
|
|
1676
|
+
}
|
|
1639
1677
|
}, {
|
|
1640
1678
|
key: "svgs",
|
|
1641
1679
|
get: function get() {
|
|
@@ -16341,7 +16379,10 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16341
16379
|
}, {
|
|
16342
16380
|
key: "pdfUrl",
|
|
16343
16381
|
get: function get() {
|
|
16344
|
-
|
|
16382
|
+
var _this$opv$textbaustei, _this$opv$textbaustei2;
|
|
16383
|
+
return (_this$opv$textbaustei = (_this$opv$textbaustei2 = this.opv.textbausteine) === null || _this$opv$textbaustei2 === void 0 || (_this$opv$textbaustei2 = _this$opv$textbaustei2.find(function (item) {
|
|
16384
|
+
return item.Memo.endsWith('.pdf');
|
|
16385
|
+
})) === null || _this$opv$textbaustei2 === void 0 ? void 0 : _this$opv$textbaustei2.Memo) !== null && _this$opv$textbaustei !== void 0 ? _this$opv$textbaustei : this.opv.pdfUrl;
|
|
16345
16386
|
}
|
|
16346
16387
|
}, {
|
|
16347
16388
|
key: "rals",
|
|
@@ -17446,7 +17487,8 @@ function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
|
|
|
17446
17487
|
showOnlyWhenHasPrice: jsonOPV.ShowOnlyWhenHasPrice && jsonOPV.ShowOnlyWhenHasPrice == 'True' ? true : false,
|
|
17447
17488
|
priceUnit: jsonOPV.PriceUnit,
|
|
17448
17489
|
value: jsonOPV.Value,
|
|
17449
|
-
property: [].concat(_toConsumableArray__default["default"]((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray__default["default"]((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : []))
|
|
17490
|
+
property: [].concat(_toConsumableArray__default["default"]((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray__default["default"]((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : [])),
|
|
17491
|
+
textbausteine: jsonOPV.Textbausteine
|
|
17450
17492
|
};
|
|
17451
17493
|
if (jsonOPV.MeasureUnit) {
|
|
17452
17494
|
switch (jsonOPV.MeasureUnit) {
|
|
@@ -17604,6 +17646,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17604
17646
|
articleCodex: catPlanArticle.codex,
|
|
17605
17647
|
catalogCodex: catalogData.catalogCodex,
|
|
17606
17648
|
title: title,
|
|
17649
|
+
longDescription: catPlanArticle.longDescription,
|
|
17607
17650
|
width: catPlanArticle.articleSizeX,
|
|
17608
17651
|
height: catPlanArticle.articleSizeZ,
|
|
17609
17652
|
depth: catPlanArticle.articleSizeY,
|
|
@@ -17664,6 +17707,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17664
17707
|
articleCodex: catPlanArticle.codex,
|
|
17665
17708
|
catalogCodex: catalogData.catalogCodex,
|
|
17666
17709
|
title: title,
|
|
17710
|
+
longDescription: catPlanArticle.longDescription,
|
|
17667
17711
|
width: catPlanArticle.articleSizeX,
|
|
17668
17712
|
height: catPlanArticle.articleSizeZ,
|
|
17669
17713
|
depth: catPlanArticle.articleSizeY,
|
|
@@ -18567,6 +18611,7 @@ function initArticleRelations(articleRelations, catalogArticleData, catalog) {
|
|
|
18567
18611
|
price: !catalog.dontShowBasePrice ? (_myAcc$BasePrice = myAcc.BasePrice) !== null && _myAcc$BasePrice !== void 0 ? _myAcc$BasePrice : catalogArticleData.articlePrice : 0,
|
|
18568
18612
|
articleCodex: myAcc.Codex,
|
|
18569
18613
|
catalogCodex: myAcc.CatalogCodex,
|
|
18614
|
+
longDescription: myAcc.longDescription,
|
|
18570
18615
|
positionGroupNr: myAcc.PositionGroupNr,
|
|
18571
18616
|
typeNr: _catalogArticle.typeNr,
|
|
18572
18617
|
image: _catalogArticle.image ? catalog.getCatImageURL(_catalogArticle.image, '') : undefined,
|
|
@@ -19134,8 +19179,9 @@ var getFeatures = function getFeatures(set, featureClasses) {
|
|
|
19134
19179
|
return toLoadFeatures;
|
|
19135
19180
|
};
|
|
19136
19181
|
var getFeaturesByFeatureClass = function getFeaturesByFeatureClass(featureClass) {
|
|
19182
|
+
var _featureClass$feature;
|
|
19137
19183
|
var neededFeatures = [];
|
|
19138
|
-
var featureRefs = Object.keys(featureClass.featureRefs);
|
|
19184
|
+
var featureRefs = Object.keys((_featureClass$feature = featureClass.featureRefs) !== null && _featureClass$feature !== void 0 ? _featureClass$feature : {});
|
|
19139
19185
|
for (var j = 0; j < featureRefs.length; j++) {
|
|
19140
19186
|
neededFeatures.push(featureRefs[j]);
|
|
19141
19187
|
}
|
|
@@ -19218,7 +19264,7 @@ var parseOptionSetRef = function parseOptionSetRef(optionsSetRefs, idmOptionGrou
|
|
|
19218
19264
|
value: group
|
|
19219
19265
|
};
|
|
19220
19266
|
} else {
|
|
19221
|
-
|
|
19267
|
+
LOG$j.error(new Error('rule not implemented' + JSON.stringify(optionsSetRefs)));
|
|
19222
19268
|
}
|
|
19223
19269
|
}
|
|
19224
19270
|
} else {
|
|
@@ -19520,7 +19566,7 @@ function initIDMArticles(jsonItems, catalogData) {
|
|
|
19520
19566
|
}
|
|
19521
19567
|
}
|
|
19522
19568
|
function getCatalogArticle(article, catalogData) {
|
|
19523
|
-
var _catalogData$catalogM, _articleMask$name, _articleMask$properti, _article$weightNetto, _article$detailInfos, _article$detailInfos2;
|
|
19569
|
+
var _catalogData$catalogM, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$shortText, _articleMask$properti, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _articleMask$groupnam, _articleMask$groupnam2;
|
|
19524
19570
|
var articleMask = (_catalogData$catalogM = catalogData.catalogMask) === null || _catalogData$catalogM === void 0 || (_catalogData$catalogM = _catalogData$catalogM.articles) === null || _catalogData$catalogM === void 0 ? void 0 : _catalogData$catalogM[article.typeNo];
|
|
19525
19571
|
var lang = catalogData.api.getLanguageLowercase();
|
|
19526
19572
|
var featureProperties = convertProperties(article.properties, lang, 'featureNos');
|
|
@@ -19543,11 +19589,11 @@ function getCatalogArticle(article, catalogData) {
|
|
|
19543
19589
|
hasArticleRelations: false,
|
|
19544
19590
|
hasPartlistArticle: !!article.partListRef,
|
|
19545
19591
|
hasType1Dependencies: false,
|
|
19546
|
-
name: DivaUtils__default["default"].getLocals((_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.shortText, lang),
|
|
19547
|
-
longDescription: DivaUtils__default["default"].getLocals(article.fullText, lang),
|
|
19548
|
-
longDescription_locales: article.fullText,
|
|
19592
|
+
name: DivaUtils__default["default"].getLocals((_ref = (_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.shortText) !== null && _ref !== void 0 ? _ref : article.fullText, lang),
|
|
19593
|
+
longDescription: DivaUtils__default["default"].getLocals((_article$fullText = article.fullText) !== null && _article$fullText !== void 0 ? _article$fullText : article.shortText, lang),
|
|
19594
|
+
longDescription_locales: (_article$fullText2 = article.fullText) !== null && _article$fullText2 !== void 0 ? _article$fullText2 : article.shortText,
|
|
19549
19595
|
isHidden: !!(articleMask !== null && articleMask !== void 0 && articleMask.hidden),
|
|
19550
|
-
origName: DivaUtils__default["default"].getLocals(article.shortText, lang),
|
|
19596
|
+
origName: DivaUtils__default["default"].getLocals((_article$shortText = article.shortText) !== null && _article$shortText !== void 0 ? _article$shortText : article.fullText, lang),
|
|
19551
19597
|
properties: [].concat(_toConsumableArray__default["default"](convertProperties(article.properties, lang)), _toConsumableArray__default["default"]((_articleMask$properti = articleMask === null || articleMask === void 0 ? void 0 : articleMask.properties) !== null && _articleMask$properti !== void 0 ? _articleMask$properti : [])),
|
|
19552
19598
|
optionProperties: optionProperties,
|
|
19553
19599
|
featureProperties: featureProperties,
|
|
@@ -19579,12 +19625,12 @@ function getCatalogArticle(article, catalogData) {
|
|
|
19579
19625
|
url: d.url,
|
|
19580
19626
|
detailInfoNo: d.detailInfoNo
|
|
19581
19627
|
};
|
|
19582
|
-
})
|
|
19628
|
+
}),
|
|
19629
|
+
groupName: (_articleMask$groupnam = articleMask === null || articleMask === void 0 || (_articleMask$groupnam2 = articleMask.groupname) === null || _articleMask$groupnam2 === void 0 ? void 0 : _articleMask$groupnam2[catalogData.api.getLanguage()]) !== null && _articleMask$groupnam !== void 0 ? _articleMask$groupnam : article.typeKey
|
|
19583
19630
|
};
|
|
19584
19631
|
}
|
|
19585
19632
|
|
|
19586
19633
|
/*
|
|
19587
|
-
groupName: articleMask?.groupname?.[catalogData.api.getLanguage()] ?? jsonArticle.GroupName,
|
|
19588
19634
|
mainCategory: jsonArticle.MainCategory && jsonArticle.MainCategory != '' ? jsonArticle.MainCategory : undefined,
|
|
19589
19635
|
price: jsonArticle.VKP1 && isNaN(jsonArticle.VKP1) ? Number(jsonArticle.VKP1.replace(',', '.')) : jsonArticle.VKP1,
|
|
19590
19636
|
priceGroup: jsonArticle.PriceGroup,
|
|
@@ -19663,15 +19709,16 @@ function getCatalogPlanner(article, catalogArticle) {
|
|
|
19663
19709
|
};
|
|
19664
19710
|
}
|
|
19665
19711
|
function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps, plannerPaletteViewInfo) {
|
|
19666
|
-
var _catPlanArticle$filte, _catPlanArticle$svgs;
|
|
19712
|
+
var _catPlanArticle$filte, _catPlanArticle$group, _catPlanArticle$svgs;
|
|
19667
19713
|
plannerPaletteViewInfo.catalogPlannerArticles.push({
|
|
19668
19714
|
articleCodex: catPlanArticle.codex,
|
|
19669
19715
|
avlFilter: catPlanArticle.avlFilter,
|
|
19670
19716
|
avrFilter: catPlanArticle.avrFilter,
|
|
19717
|
+
longDescription: catPlanArticle.longDescription,
|
|
19671
19718
|
catalogCodex: catPlanArticle.catalogCodex,
|
|
19672
19719
|
codex: catPlanArticle.codex,
|
|
19673
19720
|
filterType: (_catPlanArticle$filte = catPlanArticle.filterType) !== null && _catPlanArticle$filte !== void 0 ? _catPlanArticle$filte : 'DockNone',
|
|
19674
|
-
groupName: '',
|
|
19721
|
+
groupName: (_catPlanArticle$group = catPlanArticle.groupName) !== null && _catPlanArticle$group !== void 0 ? _catPlanArticle$group : '',
|
|
19675
19722
|
hasAVC: !!catPlanArticle.topAVC,
|
|
19676
19723
|
hasAVN: !!catPlanArticle.topAVN,
|
|
19677
19724
|
hasAVO: !!catPlanArticle.topAVO,
|
|
@@ -19829,8 +19876,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19829
19876
|
hidePricePreviewOnlyOnOptions: [],
|
|
19830
19877
|
forceConfigSingle: false,
|
|
19831
19878
|
// das einzeln konfigurieren wird in diesem Katalog gezwungen
|
|
19832
|
-
doubleClickOnConfig: false,
|
|
19833
|
-
// Felher bei Ada IDM wird somit ausgebessert
|
|
19834
19879
|
doUseRuleDescForPartListArticles: false,
|
|
19835
19880
|
initOptionTreeTwice: false,
|
|
19836
19881
|
// Felher bei Cotta IDM wird somit ausgebes
|
|
@@ -19857,9 +19902,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19857
19902
|
this._api = api;
|
|
19858
19903
|
this.additionalModelInfos = additionalModelInfos;
|
|
19859
19904
|
if (json.Properties) {
|
|
19860
|
-
var _this$catalogMask$cat, _this$catalogMask;
|
|
19905
|
+
var _json$Properties, _this$catalogMask$cat, _this$catalogMask;
|
|
19861
19906
|
this.origProperties = json.Properties;
|
|
19862
|
-
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 : [])));
|
|
19863
19908
|
}
|
|
19864
19909
|
this.plannerPaletteViewInfo = {
|
|
19865
19910
|
catalogPlannerArticles: [],
|
|
@@ -19890,6 +19935,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19890
19935
|
this.catalogData = initIDMCatalogData(json, orderSet, api);
|
|
19891
19936
|
initIDMArticles(articleJson, this);
|
|
19892
19937
|
}
|
|
19938
|
+
if (this.origProperties) {
|
|
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 : [])));
|
|
19941
|
+
}
|
|
19893
19942
|
}
|
|
19894
19943
|
return _createClass__default["default"](DivaCatalogData, [{
|
|
19895
19944
|
key: "getCatImageURL",
|
|
@@ -20095,8 +20144,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20095
20144
|
}
|
|
20096
20145
|
}, {
|
|
20097
20146
|
key: "getFeatures",
|
|
20098
|
-
value: function getFeatures(
|
|
20147
|
+
value: function getFeatures() {
|
|
20099
20148
|
var _this3 = this;
|
|
20149
|
+
var featureRefs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
20100
20150
|
return featureRefs.map(function (ref) {
|
|
20101
20151
|
return _this3.catalogData.loadedFeatures.find(function (f) {
|
|
20102
20152
|
return f.featureNo == ref;
|
|
@@ -20470,11 +20520,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20470
20520
|
var _this$optionValues2;
|
|
20471
20521
|
return Object.values((_this$optionValues2 = this.optionValues) !== null && _this$optionValues2 !== void 0 ? _this$optionValues2 : {});
|
|
20472
20522
|
}
|
|
20473
|
-
}, {
|
|
20474
|
-
key: "doubleClickOnConfig",
|
|
20475
|
-
get: function get() {
|
|
20476
|
-
return this.catalogProps.doubleClickOnConfig;
|
|
20477
|
-
}
|
|
20478
20523
|
}, {
|
|
20479
20524
|
key: "initOptionTreeTwice",
|
|
20480
20525
|
get: function get() {
|
|
@@ -20814,6 +20859,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20814
20859
|
break;
|
|
20815
20860
|
case 'DEFAULT_DO_SHOW_3DDIMENSIONS':
|
|
20816
20861
|
_this5.catalogProps.defaultDimensionsActive = '1' == item.Value || 'true' == item.Value.toLowerCase();
|
|
20862
|
+
break;
|
|
20817
20863
|
// Planner Topics
|
|
20818
20864
|
case 'IS_IDM3D_CAT':
|
|
20819
20865
|
_this5.catalogProps.isIDM3DCat = item.Value == '1' || item.Value.toLowerCase() == 'true';
|
|
@@ -20987,9 +21033,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20987
21033
|
return 'OPT' + t;
|
|
20988
21034
|
});
|
|
20989
21035
|
break;
|
|
20990
|
-
case 'DOUBLE_CLICK_ON_CONFIG':
|
|
20991
|
-
_this5.catalogProps.doubleClickOnConfig = '1' == item.Value;
|
|
20992
|
-
break;
|
|
20993
21036
|
case 'INIT_OPTIONTREE_TWICE':
|
|
20994
21037
|
_this5.catalogProps.initOptionTreeTwice = '1' == item.Value;
|
|
20995
21038
|
break;
|
|
@@ -21029,17 +21072,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
21029
21072
|
case 'ADD_PA_ON_EDO':
|
|
21030
21073
|
_this5.handleEdoArticles(properties, item);
|
|
21031
21074
|
break;
|
|
21032
|
-
default:
|
|
21033
|
-
if (key.startsWith('3D_STATBG_ROOMLIST')) {
|
|
21034
|
-
// item.Value =
|
|
21035
|
-
// "weissraum_LUECK;backgroundimgroom_lueck_modern;backgroundimgroom_lueck_romantic;backgroundimgroom_lueck_loft;backgroundimgroom_lueck_night";
|
|
21036
|
-
_this5.catalogProps.roomList3DStaticBGImage.set(item.Codex, item.Value.split(';'));
|
|
21037
|
-
} else if (key.startsWith('3D_STANDARD_WHITEROOM')) {
|
|
21038
|
-
_this5.catalogProps.diva3dStandardWhiteroom = item.Value;
|
|
21039
|
-
} else if (key.startsWith('DIVA3D_IMAGE')) {
|
|
21040
|
-
_this5.handleDIVA3DMetaTag(item);
|
|
21041
|
-
}
|
|
21042
|
-
break;
|
|
21043
21075
|
}
|
|
21044
21076
|
});
|
|
21045
21077
|
if (!diva3DRenderingIsSet) {
|
|
@@ -21048,6 +21080,25 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
21048
21080
|
}
|
|
21049
21081
|
}
|
|
21050
21082
|
}
|
|
21083
|
+
}, {
|
|
21084
|
+
key: "initPropertiesAfterOptionsInit",
|
|
21085
|
+
value: function initPropertiesAfterOptionsInit(catalogCodex, properties) {
|
|
21086
|
+
var _this6 = this;
|
|
21087
|
+
properties.forEach(function (item, index) {
|
|
21088
|
+
//3D Allgemein
|
|
21089
|
+
var key = item.Codex;
|
|
21090
|
+
if (key.startsWith(catalogCodex + '__')) key = key.replace(catalogCodex + '__', '');
|
|
21091
|
+
if (key.startsWith('3D_STATBG_ROOMLIST')) {
|
|
21092
|
+
// item.Value =
|
|
21093
|
+
// "weissraum_LUECK;backgroundimgroom_lueck_modern;backgroundimgroom_lueck_romantic;backgroundimgroom_lueck_loft;backgroundimgroom_lueck_night";
|
|
21094
|
+
_this6.catalogProps.roomList3DStaticBGImage.set(item.Codex, item.Value.split(';'));
|
|
21095
|
+
} else if (key.startsWith('3D_STANDARD_WHITEROOM')) {
|
|
21096
|
+
_this6.catalogProps.diva3dStandardWhiteroom = item.Value;
|
|
21097
|
+
} else if (key.startsWith('DIVA3D_IMAGE')) {
|
|
21098
|
+
_this6.handleDIVA3DMetaTag(item);
|
|
21099
|
+
}
|
|
21100
|
+
});
|
|
21101
|
+
}
|
|
21051
21102
|
}, {
|
|
21052
21103
|
key: "handleDIVA3DMetaTag",
|
|
21053
21104
|
value: function handleDIVA3DMetaTag(item) {
|
|
@@ -21187,10 +21238,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
21187
21238
|
}, {
|
|
21188
21239
|
key: "initMask",
|
|
21189
21240
|
value: function initMask(initProps) {
|
|
21190
|
-
var _this$
|
|
21191
|
-
if ((_this$
|
|
21192
|
-
var _this$catalogMask$
|
|
21193
|
-
if ((_this$catalogMask$
|
|
21241
|
+
var _this$catalogMask3;
|
|
21242
|
+
if ((_this$catalogMask3 = this.catalogMask) !== null && _this$catalogMask3 !== void 0 && _this$catalogMask3.catalog) {
|
|
21243
|
+
var _this$catalogMask$cat3;
|
|
21244
|
+
if ((_this$catalogMask$cat3 = this.catalogMask.catalog.name) !== null && _this$catalogMask$cat3 !== void 0 && _this$catalogMask$cat3[this.api.getLanguage()]) this.catalogData.catalogName = this.catalogMask.catalog.name[this.api.getLanguage()];
|
|
21194
21245
|
if (this.catalogMask.catalog.name) this.catalogData.name_locales = this.catalogMask.catalog.name;
|
|
21195
21246
|
if (this.catalogMask.catalog.properties && initProps) this.initProperties(this.catalogCodex, [].concat(_toConsumableArray__default["default"](this.origProperties), _toConsumableArray__default["default"](this.catalogMask.catalog.properties)));
|
|
21196
21247
|
}
|
|
@@ -21390,7 +21441,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
21390
21441
|
return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context3) {
|
|
21391
21442
|
while (1) switch (_context3.prev = _context3.next) {
|
|
21392
21443
|
case 0:
|
|
21393
|
-
promises = [state.api.getDataCache(state.api.getIDMCatalog(accountId), undefined, undefined, 'enricher'), state.api.getDataCache(state.api.getIDMSerieByNo(accountId, serieNo), undefined, undefined, 'enricher'), state.api.getDataCache(state.api.getIDMItems(accountId, serieId), undefined, undefined, 'enricher'), state.api.dontLoadAdditionalModelInfos ?
|
|
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];
|
|
21394
21445
|
_context3.next = 3;
|
|
21395
21446
|
return Promise.all(promises);
|
|
21396
21447
|
case 3:
|
|
@@ -21408,13 +21459,41 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
21408
21459
|
case "end":
|
|
21409
21460
|
return _context3.stop();
|
|
21410
21461
|
}
|
|
21411
|
-
}, _callee3);
|
|
21462
|
+
}, _callee3, this);
|
|
21412
21463
|
}));
|
|
21413
21464
|
function loadIDMCatalog(_x7, _x8, _x9, _x10, _x11) {
|
|
21414
21465
|
return _loadIDMCatalog.apply(this, arguments);
|
|
21415
21466
|
}
|
|
21416
21467
|
return loadIDMCatalog;
|
|
21417
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
|
+
}()
|
|
21418
21497
|
}]);
|
|
21419
21498
|
}();
|
|
21420
21499
|
var catalogHandlerInstance = new DivaCatalogHandler();
|
|
@@ -21616,12 +21695,12 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
21616
21695
|
}, {
|
|
21617
21696
|
key: "IsDockingFilterFeature",
|
|
21618
21697
|
get: function get() {
|
|
21619
|
-
return this.option.idmVariantenArt ? [89, 90].includes(this.option.idmVariantenArt) : false;
|
|
21698
|
+
return this.option.idmVariantenArt ? [89, 90, 1089, 1090].includes(this.option.idmVariantenArt) : false;
|
|
21620
21699
|
}
|
|
21621
21700
|
}, {
|
|
21622
21701
|
key: "IsIDMSpecialFeature",
|
|
21623
21702
|
get: function get() {
|
|
21624
|
-
return this.option.idmVariantenArt ? [95, 96, 97, 89, 90].includes(this.option.idmVariantenArt) : false;
|
|
21703
|
+
return this.option.idmVariantenArt ? [95, 96, 97, 89, 90, 1095, 1096, 1097, 1089, 1090].includes(this.option.idmVariantenArt) : false;
|
|
21625
21704
|
}
|
|
21626
21705
|
}, {
|
|
21627
21706
|
key: "visibleOptionValues",
|
|
@@ -22316,8 +22395,9 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22316
22395
|
}, {
|
|
22317
22396
|
key: "updateIDMSpecificFeature",
|
|
22318
22397
|
value: function updateIDMSpecificFeature(ops) {
|
|
22398
|
+
var _ops$option$idmVarian, _ops$option$idmVarian2, _ops$option$idmVarian3, _ops$option$idmVarian4, _ops$option$idmVarian5;
|
|
22319
22399
|
if (!this.article.parentHasSameOption(ops.optionCodex)) return;
|
|
22320
|
-
if (ops.option.idmVariantenArt
|
|
22400
|
+
if ([90, 1090].includes((_ops$option$idmVarian = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian !== void 0 ? _ops$option$idmVarian : 0)) {
|
|
22321
22401
|
//R (Anschlusstyp R) - AVR
|
|
22322
22402
|
var newAVRFilter = [],
|
|
22323
22403
|
visibleOPVs = ops.visibleOptionValues;
|
|
@@ -22326,7 +22406,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22326
22406
|
}
|
|
22327
22407
|
this.article.newPossibleAVRFilters = newAVRFilter;
|
|
22328
22408
|
}
|
|
22329
|
-
if (ops.option.idmVariantenArt
|
|
22409
|
+
if ([89, 1089].includes((_ops$option$idmVarian2 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian2 !== void 0 ? _ops$option$idmVarian2 : 0)) {
|
|
22330
22410
|
//L (Anschlusstyp L) - AVL
|
|
22331
22411
|
var newAVLFilter = [],
|
|
22332
22412
|
_visibleOPVs = ops.visibleOptionValues;
|
|
@@ -22336,7 +22416,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22336
22416
|
this.article.newPossibleAVLFilters = newAVLFilter;
|
|
22337
22417
|
}
|
|
22338
22418
|
//beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
|
|
22339
|
-
if (ops.option.idmVariantenArt
|
|
22419
|
+
if ([97, 1097].includes((_ops$option$idmVarian3 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian3 !== void 0 ? _ops$option$idmVarian3 : 0)) {
|
|
22340
22420
|
//Planungshöhe
|
|
22341
22421
|
try {
|
|
22342
22422
|
var _ops$freeText;
|
|
@@ -22349,7 +22429,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22349
22429
|
}
|
|
22350
22430
|
}
|
|
22351
22431
|
//beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
|
|
22352
|
-
if (ops.option.idmVariantenArt
|
|
22432
|
+
if ([96, 1096].includes((_ops$option$idmVarian4 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian4 !== void 0 ? _ops$option$idmVarian4 : 0) || ops.option.diameter) {
|
|
22353
22433
|
//Planungstiefe
|
|
22354
22434
|
try {
|
|
22355
22435
|
var _ops$freeText2;
|
|
@@ -22362,7 +22442,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22362
22442
|
}
|
|
22363
22443
|
}
|
|
22364
22444
|
//beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
|
|
22365
|
-
if (ops.option.idmVariantenArt
|
|
22445
|
+
if ([95, 1095].includes((_ops$option$idmVarian5 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian5 !== void 0 ? _ops$option$idmVarian5 : 0) || ops.option.diameter) {
|
|
22366
22446
|
//Planungsbreite - ACHTUNG Fehler wenn mm
|
|
22367
22447
|
|
|
22368
22448
|
try {
|
|
@@ -22492,8 +22572,10 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22492
22572
|
var _this$article$set$Vie;
|
|
22493
22573
|
//die Klasse ArticleOptionState wird einfach neu initialisiert
|
|
22494
22574
|
var oldOPS = this.article.getArticleOptionState(optionCodex);
|
|
22575
|
+
if (!oldOPS) return;
|
|
22495
22576
|
if (keepEnalbed) {
|
|
22496
22577
|
oldOPS.val = undefined;
|
|
22578
|
+
oldOPS.isDoShow = oldOPS.visibleCount > 1;
|
|
22497
22579
|
return;
|
|
22498
22580
|
}
|
|
22499
22581
|
var option = oldOPS.option;
|
|
@@ -22690,7 +22772,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22690
22772
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
22691
22773
|
var ops = _step3.value;
|
|
22692
22774
|
//when an option has no decisions the first visible optionValue has to be selected per default
|
|
22693
|
-
if (ops.val === undefined && ops.visibleCount) {
|
|
22775
|
+
if (ops.val === undefined && ops.visibleCount && !this.article.CatalogData.useDiomexConfigLogic) {
|
|
22694
22776
|
this.assignOptionValue(ops.optionCodex, Object.keys(ops.visibleOptionValues)[0]);
|
|
22695
22777
|
}
|
|
22696
22778
|
if (ops.visibleCount && ops.IsIDMSpecialFeature) {
|
|
@@ -23228,6 +23310,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23228
23310
|
value: function evalPartlist(newConfigValues) {
|
|
23229
23311
|
var partlistArticlesToLoad = [];
|
|
23230
23312
|
var myPartlistArticles = this.article.groupedPartlists;
|
|
23313
|
+
var partlistGroup = [];
|
|
23231
23314
|
for (var iKey in myPartlistArticles) {
|
|
23232
23315
|
var groupDecisionVal;
|
|
23233
23316
|
var key = Number(iKey);
|
|
@@ -23238,6 +23321,9 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23238
23321
|
for (var b = 0; b < myPartlistArticles[key].length; b++) {
|
|
23239
23322
|
var startTime = Date.now();
|
|
23240
23323
|
var myPartListPos = myPartlistArticles[key][b];
|
|
23324
|
+
if (myPartListPos.PartlistGroup && partlistGroup.includes(myPartListPos.PartlistGroup)) {
|
|
23325
|
+
continue;
|
|
23326
|
+
}
|
|
23241
23327
|
if (myPartListPos.ItemRefArticles) {
|
|
23242
23328
|
var decisions = myPartListPos.PartListPosDecisionsAndPosCounts;
|
|
23243
23329
|
if (decisions) {
|
|
@@ -23250,16 +23336,16 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23250
23336
|
if ((_myDecisionVal = myDecisionVal) !== null && _myDecisionVal !== void 0 && _myDecisionVal.isValidDOC || relationTypeNone) {
|
|
23251
23337
|
// wenn die Decision gültig, gelten die ItemRefArticles
|
|
23252
23338
|
partlistAdded = true;
|
|
23253
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, myDecisionVal, groupDecisionVal, myDecisionNumber);
|
|
23339
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, myDecisionVal, groupDecisionVal, myDecisionNumber);
|
|
23254
23340
|
break;
|
|
23255
23341
|
}
|
|
23256
23342
|
}
|
|
23257
23343
|
if (decisions.length === 0) {
|
|
23258
23344
|
LOG$f.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.ItemRefArticles);
|
|
23259
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
23345
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
23260
23346
|
} else if (!partlistAdded && this.article.CatalogData.useDecisionPosCountValue && myPartListPos.PosCountValue > 0) {
|
|
23261
23347
|
LOG$f.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.ItemRefArticles);
|
|
23262
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
23348
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
23263
23349
|
}
|
|
23264
23350
|
}
|
|
23265
23351
|
}
|
|
@@ -23271,7 +23357,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23271
23357
|
}
|
|
23272
23358
|
}, {
|
|
23273
23359
|
key: "addPartilstToPartlistArticlesToLoad",
|
|
23274
|
-
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, myDecisionVal, groupDecisionVal, decisionNumber) {
|
|
23360
|
+
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, myDecisionVal, groupDecisionVal, decisionNumber) {
|
|
23275
23361
|
var _myPartListPos$Option,
|
|
23276
23362
|
_this2 = this;
|
|
23277
23363
|
var allDecisions = this.article.catalogArticle.articleDecisions;
|
|
@@ -23328,7 +23414,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23328
23414
|
_loop3(i);
|
|
23329
23415
|
}
|
|
23330
23416
|
if (quanitity >= 1) {
|
|
23331
|
-
var _myDecisionVal$Rule
|
|
23417
|
+
var _myDecisionVal$Rule;
|
|
23332
23418
|
partlistArticlesToLoad.push({
|
|
23333
23419
|
CatalogCodex: catalogCodex !== null && catalogCodex !== void 0 ? catalogCodex : _this2.article.catalogCodex,
|
|
23334
23420
|
BasketID: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.basketId,
|
|
@@ -23343,11 +23429,13 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23343
23429
|
RuleDesc: myRuleDesc,
|
|
23344
23430
|
RuleDesc_locales: myRuleDesc_locales,
|
|
23345
23431
|
PosInvisibility: myPartListPos.PosInvisibility,
|
|
23346
|
-
|
|
23432
|
+
ConfigurationMode: myPartListPos.ConfigurationMode,
|
|
23433
|
+
VariantValues: _this2.article.variantValuesForPla(myPartListPos.ConfigurationMode, previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantValues, newConfigValues),
|
|
23347
23434
|
VariantItemData: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantItemData,
|
|
23348
23435
|
optionImgForPrint: optionImgForPrint,
|
|
23349
23436
|
optionsForPrint: optionsForPrint
|
|
23350
23437
|
});
|
|
23438
|
+
if (myPartListPos.PartlistGroup) partlistGroup.push(myPartListPos.PartlistGroup);
|
|
23351
23439
|
}
|
|
23352
23440
|
};
|
|
23353
23441
|
for (var d = 0; d < myPartListPos.ItemRefArticles.length; d++) {
|
|
@@ -23475,7 +23563,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23475
23563
|
} else if (calcUnit2Price != 0) {
|
|
23476
23564
|
//for diamter option
|
|
23477
23565
|
if (ops.option.diameter) {
|
|
23478
|
-
ops.usedCalcPrice = calcUnit2Price *
|
|
23566
|
+
ops.usedCalcPrice = calcUnit2Price * freeTextMeasure * freeTextMeasure;
|
|
23479
23567
|
} else {
|
|
23480
23568
|
if (firstUnit2Param == 0) {
|
|
23481
23569
|
firstUnit2Param = freeTextMeasure;
|
|
@@ -23700,6 +23788,35 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23700
23788
|
}
|
|
23701
23789
|
}
|
|
23702
23790
|
}
|
|
23791
|
+
}, {
|
|
23792
|
+
key: "getValuesInfluencingOPT",
|
|
23793
|
+
value: function getValuesInfluencingOPT(featureNo) {
|
|
23794
|
+
var decisions = this.article.catalogArticle.articleDecisions;
|
|
23795
|
+
//add the partlist spesific decisions to the normal decisions
|
|
23796
|
+
if (this.article.initDecisions) decisions = decisions.concat(this.article.initDecisions);
|
|
23797
|
+
var variantValuesArr = [];
|
|
23798
|
+
var relevantDecisions = decisions.filter(function (d) {
|
|
23799
|
+
var _d$Options;
|
|
23800
|
+
return (_d$Options = d.Options) === null || _d$Options === void 0 ? void 0 : _d$Options.includes(featureNo);
|
|
23801
|
+
});
|
|
23802
|
+
for (var i = 0; i < relevantDecisions.length; i++) {
|
|
23803
|
+
var decision = relevantDecisions[i];
|
|
23804
|
+
if (decision.Type == '1' && decision.DOC) {
|
|
23805
|
+
for (var j = 0; j < decision.DOC.length; j++) {
|
|
23806
|
+
var _oc$Row;
|
|
23807
|
+
var oc = decision.DOC[j];
|
|
23808
|
+
var variantValues = {};
|
|
23809
|
+
if (!Object.values((_oc$Row = oc.Row) !== null && _oc$Row !== void 0 ? _oc$Row : {}).length) continue;
|
|
23810
|
+
for (var key in oc.Row) {
|
|
23811
|
+
if (key == featureNo) continue;
|
|
23812
|
+
variantValues[key] = oc.Row[key][0];
|
|
23813
|
+
}
|
|
23814
|
+
variantValuesArr.push(variantValues);
|
|
23815
|
+
}
|
|
23816
|
+
}
|
|
23817
|
+
}
|
|
23818
|
+
return variantValuesArr;
|
|
23819
|
+
}
|
|
23703
23820
|
}, {
|
|
23704
23821
|
key: "getOptionPrice",
|
|
23705
23822
|
value: function getOptionPrice(calculatedPrice, optItem, digits) {
|
|
@@ -23784,17 +23901,23 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
23784
23901
|
LOG$e.debug('eval Decisions total time in ' + (endTime - startTime) + ' of ' + count);
|
|
23785
23902
|
}
|
|
23786
23903
|
}, {
|
|
23787
|
-
key: "
|
|
23788
|
-
|
|
23904
|
+
key: "decisions",
|
|
23905
|
+
get: function get() {
|
|
23789
23906
|
var _unsortedDecisons;
|
|
23790
23907
|
var unsortedDecisons = this.article.articleIDMDecisions;
|
|
23791
|
-
if (!((_unsortedDecisons = unsortedDecisons) !== null && _unsortedDecisons !== void 0 && _unsortedDecisons.length)) return;
|
|
23908
|
+
if (!((_unsortedDecisons = unsortedDecisons) !== null && _unsortedDecisons !== void 0 && _unsortedDecisons.length)) return [];
|
|
23792
23909
|
//add the partlist spesific decisions to the normal decisions
|
|
23793
23910
|
|
|
23794
23911
|
if (this.article.initDecisions) unsortedDecisons = unsortedDecisons.concat(this.article.initDecisions);
|
|
23795
|
-
|
|
23912
|
+
return unsortedDecisons.sort(function (a, b) {
|
|
23796
23913
|
return a.prio - b.prio;
|
|
23797
23914
|
});
|
|
23915
|
+
}
|
|
23916
|
+
}, {
|
|
23917
|
+
key: "evalDecisionsfunction",
|
|
23918
|
+
value: function evalDecisionsfunction() {
|
|
23919
|
+
var decisions = this.decisions;
|
|
23920
|
+
if (!decisions.length) return;
|
|
23798
23921
|
for (var i = 0; i < decisions.length; i++) {
|
|
23799
23922
|
decisions[i].enabled = true;
|
|
23800
23923
|
decisions[i].disableHistory = [];
|
|
@@ -23886,9 +24009,10 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
23886
24009
|
}, {
|
|
23887
24010
|
key: "evalType1Decision",
|
|
23888
24011
|
value: function evalType1Decision(decision) {
|
|
24012
|
+
var _decision$featureRefs;
|
|
23889
24013
|
var validOptions = {};
|
|
23890
24014
|
var doAlsoCheckFeatureNos = [];
|
|
23891
|
-
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;
|
|
23892
24016
|
var sortedDeatureRefs = this.sortFeatures(decision.featureRefs);
|
|
23893
24017
|
for (var p = 0; p < sortedDeatureRefs.length; p++) {
|
|
23894
24018
|
var featureNo = sortedDeatureRefs[p];
|
|
@@ -23989,10 +24113,10 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
23989
24113
|
}, {
|
|
23990
24114
|
key: "evalType0Decision",
|
|
23991
24115
|
value: function evalType0Decision(decision) {
|
|
23992
|
-
var _decision$optionCombi;
|
|
24116
|
+
var _decision$optionCombi, _decision$featureRefs2;
|
|
23993
24117
|
var invalidOptions = {},
|
|
23994
24118
|
doAlsoCheckFeature = [];
|
|
23995
|
-
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;
|
|
23996
24120
|
var sortedDeatureRefs = this.sortFeatures(decision.featureRefs);
|
|
23997
24121
|
for (var p = 0; p < sortedDeatureRefs.length; p++) {
|
|
23998
24122
|
var featureNo = sortedDeatureRefs[p];
|
|
@@ -24093,7 +24217,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24093
24217
|
} else if (action.value) {
|
|
24094
24218
|
_this2.assignOptionValue(action.target, action.value, action.actionType === 'SET_FEATURE_FIXED' ? 'fix' : 'set');
|
|
24095
24219
|
} else {
|
|
24096
|
-
|
|
24220
|
+
LOG$e.error(new Error('decision' + decision.decisionNo + ' has action that referst to a feature that does not existi on this article'));
|
|
24097
24221
|
}
|
|
24098
24222
|
break;
|
|
24099
24223
|
case '1':
|
|
@@ -24179,8 +24303,9 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24179
24303
|
ref = _command$split2[0];
|
|
24180
24304
|
value = _command$split2[1];
|
|
24181
24305
|
if (ref == 'FEATURE_REF') {
|
|
24306
|
+
var _this$article$getArti;
|
|
24182
24307
|
ref = undefined;
|
|
24183
|
-
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;
|
|
24184
24309
|
} else if (ref == 'OPTION_REF') {
|
|
24185
24310
|
ref = undefined;
|
|
24186
24311
|
} else if (ref == 'FORMULA_REF') {
|
|
@@ -24249,6 +24374,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24249
24374
|
var oldOPS = this.article.getArticleOptionState(featureNo);
|
|
24250
24375
|
if (keepEnalbed) {
|
|
24251
24376
|
oldOPS.val = undefined;
|
|
24377
|
+
oldOPS.isDoShow = oldOPS.visibleCount > 1;
|
|
24252
24378
|
return;
|
|
24253
24379
|
}
|
|
24254
24380
|
var option = oldOPS.option;
|
|
@@ -24366,10 +24492,12 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24366
24492
|
var partlistArticlesToLoad = [];
|
|
24367
24493
|
var myPartlistArticles = (_this$article$catalog4 = this.article.catalogArticle.idmPartlist) === null || _this$article$catalog4 === void 0 ? void 0 : _this$article$catalog4.partlistPos;
|
|
24368
24494
|
if (!(myPartlistArticles !== null && myPartlistArticles !== void 0 && myPartlistArticles.length)) return [];
|
|
24495
|
+
var partlistGroup = [];
|
|
24369
24496
|
for (var i = 0; i < myPartlistArticles.length; i++) {
|
|
24370
24497
|
var _myPartListPos$decisi;
|
|
24371
24498
|
var myPartListPos = myPartlistArticles[i];
|
|
24372
24499
|
if (!myPartListPos.itemRefTypeNo) continue;
|
|
24500
|
+
if (myPartListPos.partlistGroup && partlistGroup.includes(myPartListPos.partlistGroup)) continue;
|
|
24373
24501
|
var decisions = this.article.CatalogData.getDecisionsByNo([].concat(_toConsumableArray__default["default"]((_myPartListPos$decisi = myPartListPos.decisions) !== null && _myPartListPos$decisi !== void 0 ? _myPartListPos$decisi : []), _toConsumableArray__default["default"](myPartListPos.decisionPosCount ? [myPartListPos.decisionPosCount] : [])));
|
|
24374
24502
|
var partlistAdded = false;
|
|
24375
24503
|
for (var c = 0; c < decisions.length; c++) {
|
|
@@ -24378,22 +24506,22 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24378
24506
|
var isValidDOC = relationTypeNone ? undefined : this.checkDecisionNumber(decision.decisionNo);
|
|
24379
24507
|
if (!isValidDOC && !relationTypeNone) continue;
|
|
24380
24508
|
partlistAdded = true;
|
|
24381
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, undefined, !relationTypeNone ? decision.decisionNo : undefined);
|
|
24509
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, undefined, !relationTypeNone ? decision.decisionNo : undefined);
|
|
24382
24510
|
break;
|
|
24383
24511
|
}
|
|
24384
24512
|
if (decisions.length === 0 && !partlistAdded) {
|
|
24385
24513
|
LOG$e.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.itemRefTypeNo);
|
|
24386
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
24514
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
24387
24515
|
} else if (!partlistAdded && myPartListPos.posCountValue > 0) {
|
|
24388
24516
|
LOG$e.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.itemRefTypeNo);
|
|
24389
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
24517
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
24390
24518
|
}
|
|
24391
24519
|
}
|
|
24392
24520
|
return partlistArticlesToLoad;
|
|
24393
24521
|
}
|
|
24394
24522
|
}, {
|
|
24395
24523
|
key: "addPartilstToPartlistArticlesToLoad",
|
|
24396
|
-
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, rule, decisionNo) {
|
|
24524
|
+
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, rule, decisionNo) {
|
|
24397
24525
|
var decisions = this.article.CatalogData.getDecisionsByNo(myPartListPos.decisions);
|
|
24398
24526
|
|
|
24399
24527
|
//const optionsForPrint: string[] = (myPartListPos.OptionsForPrint as string)?.split(';').map((o: string) => 'OPT' + o);
|
|
@@ -24444,7 +24572,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24444
24572
|
_loop2(i);
|
|
24445
24573
|
}
|
|
24446
24574
|
if (quanitity >= 1) {
|
|
24447
|
-
var _catalogCodex$toStrin
|
|
24575
|
+
var _catalogCodex$toStrin;
|
|
24448
24576
|
partlistArticlesToLoad.push({
|
|
24449
24577
|
CatalogCodex: (_catalogCodex$toStrin = catalogCodex.toString()) !== null && _catalogCodex$toStrin !== void 0 ? _catalogCodex$toStrin : this.article.catalogCodex,
|
|
24450
24578
|
BasketID: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.basketId,
|
|
@@ -24461,11 +24589,13 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24461
24589
|
RuleDesc: myRuleDesc,
|
|
24462
24590
|
RuleDesc_locales: myRuleDesc_locales,
|
|
24463
24591
|
PosInvisibility: myPartListPos.posInvisibility,
|
|
24464
|
-
|
|
24592
|
+
ConfigurationMode: myPartListPos.configurationMode,
|
|
24593
|
+
VariantValues: this.article.variantValuesForPla(myPartListPos.configurationMode, previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantValues, newConfigValues),
|
|
24465
24594
|
VariantItemData: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantItemData
|
|
24466
24595
|
//optionImgForPrint,
|
|
24467
24596
|
//optionsForPrint,
|
|
24468
24597
|
});
|
|
24598
|
+
if (myPartListPos.partlistGroup) partlistGroup.push(myPartListPos.partlistGroup);
|
|
24469
24599
|
}
|
|
24470
24600
|
return partlistArticlesToLoad;
|
|
24471
24601
|
}
|
|
@@ -24551,16 +24681,17 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24551
24681
|
}, {
|
|
24552
24682
|
key: "updateIDMSpecificFeature",
|
|
24553
24683
|
value: function updateIDMSpecificFeature(myArtOPS) {
|
|
24684
|
+
var _myArtOPS$option$idmV, _myArtOPS$option$idmV2, _myArtOPS$option$idmV3, _myArtOPS$option$idmV4, _myArtOPS$option$idmV5;
|
|
24554
24685
|
if (!this.article.parentHasSameOption(myArtOPS.optionCodex)) return;
|
|
24555
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24686
|
+
if ([90, 1090].includes((_myArtOPS$option$idmV = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV !== void 0 ? _myArtOPS$option$idmV : 0)) {
|
|
24556
24687
|
//R (Anschlusstyp R) - AVR
|
|
24557
24688
|
this.article.newPossibleAVRFilters = Object.keys(myArtOPS.visibleOptionValues);
|
|
24558
24689
|
}
|
|
24559
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24690
|
+
if ([89, 1089].includes((_myArtOPS$option$idmV2 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV2 !== void 0 ? _myArtOPS$option$idmV2 : 0)) {
|
|
24560
24691
|
//L (Anschlusstyp L) - AVL
|
|
24561
24692
|
this.article.newPossibleAVLFilters = Object.keys(myArtOPS.visibleOptionValues);
|
|
24562
24693
|
}
|
|
24563
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24694
|
+
if ([97, 1097].includes((_myArtOPS$option$idmV3 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV3 !== void 0 ? _myArtOPS$option$idmV3 : 0)) {
|
|
24564
24695
|
try {
|
|
24565
24696
|
var _myArtOPS$measureValu;
|
|
24566
24697
|
this.article.doUpdatePlannerSize = true;
|
|
@@ -24569,7 +24700,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24569
24700
|
LOG$e.warn('Invalid Planungdepth - IDMVariantenArt 97: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
|
|
24570
24701
|
}
|
|
24571
24702
|
}
|
|
24572
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24703
|
+
if ([96, 1096].includes((_myArtOPS$option$idmV4 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV4 !== void 0 ? _myArtOPS$option$idmV4 : 0) || myArtOPS.option.diameter) {
|
|
24573
24704
|
try {
|
|
24574
24705
|
var _myArtOPS$measureValu2;
|
|
24575
24706
|
this.article.doUpdatePlannerSize = true;
|
|
@@ -24578,7 +24709,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24578
24709
|
LOG$e.warn('Invalid Planungdepth - IDMVariantenArt 96: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
|
|
24579
24710
|
}
|
|
24580
24711
|
}
|
|
24581
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24712
|
+
if ([95, 1095].includes((_myArtOPS$option$idmV5 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV5 !== void 0 ? _myArtOPS$option$idmV5 : 0) || myArtOPS.option.diameter) {
|
|
24582
24713
|
try {
|
|
24583
24714
|
var _myArtOPS$measureValu3;
|
|
24584
24715
|
this.article.doUpdatePlannerSize = true;
|
|
@@ -24588,6 +24719,31 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24588
24719
|
}
|
|
24589
24720
|
}
|
|
24590
24721
|
}
|
|
24722
|
+
}, {
|
|
24723
|
+
key: "getValuesInfluencingOPT",
|
|
24724
|
+
value: function getValuesInfluencingOPT(featureNo) {
|
|
24725
|
+
var variantValuesArr = [];
|
|
24726
|
+
var decisions = this.decisions;
|
|
24727
|
+
var relevantDecisions = decisions.filter(function (d) {
|
|
24728
|
+
var _d$featureRefs;
|
|
24729
|
+
return (_d$featureRefs = d.featureRefs) === null || _d$featureRefs === void 0 ? void 0 : _d$featureRefs.includes(featureNo);
|
|
24730
|
+
});
|
|
24731
|
+
for (var i = 0; i < relevantDecisions.length; i++) {
|
|
24732
|
+
var decision = relevantDecisions[i];
|
|
24733
|
+
if (decision.decisionType == 1) {
|
|
24734
|
+
for (var j = 0; j < decision.optionCombinations.length; j++) {
|
|
24735
|
+
var oc = decision.optionCombinations[j];
|
|
24736
|
+
var variantValues = {};
|
|
24737
|
+
for (var key in oc.parsedOptionSetRefs) {
|
|
24738
|
+
if (key == featureNo) continue;
|
|
24739
|
+
variantValues[key] = oc.parsedOptionSetRefs[key].value[0];
|
|
24740
|
+
}
|
|
24741
|
+
variantValuesArr.push(variantValues);
|
|
24742
|
+
}
|
|
24743
|
+
}
|
|
24744
|
+
}
|
|
24745
|
+
return variantValuesArr;
|
|
24746
|
+
}
|
|
24591
24747
|
}, {
|
|
24592
24748
|
key: "evalMeasureFormula",
|
|
24593
24749
|
value: function evalMeasureFormula(formula) {
|
|
@@ -24687,6 +24843,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24687
24843
|
partlistDecisionNo: initParams.partlistDecisionNo,
|
|
24688
24844
|
partListParentArticle: initParams.parentArticle,
|
|
24689
24845
|
partlistArticleVisibleInTree: initParams.partlistArticleVisibleInTree,
|
|
24846
|
+
partlistArticleStandalone: initParams.partlistArticleStandalone,
|
|
24690
24847
|
hasPartlistArticle: initParams.hasPartlistArticle ? initParams.hasPartlistArticle : false,
|
|
24691
24848
|
noPrice: (_initParams$noPrice = initParams.noPrice) !== null && _initParams$noPrice !== void 0 ? _initParams$noPrice : false,
|
|
24692
24849
|
retailArticleNr: initParams.RetailArticleNr ? initParams.RetailArticleNr : initParams.retailArticleNr,
|
|
@@ -24756,7 +24913,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24756
24913
|
currentAccessorires: [],
|
|
24757
24914
|
parentElementId: isNotDockedAccessoire ? this.set.getDivaArticles()[this.relatedToBasketId].elementId : undefined,
|
|
24758
24915
|
isNotDockedAccessoire: isNotDockedAccessoire,
|
|
24759
|
-
svgsWithFormula: []
|
|
24916
|
+
svgsWithFormula: [],
|
|
24917
|
+
varaintValuesInfluencingAVLAVRFilter: []
|
|
24760
24918
|
};
|
|
24761
24919
|
var plannerElement = this.article.catalogArticle.catalogPlannerArticle;
|
|
24762
24920
|
if (plannerElement) {
|
|
@@ -24827,6 +24985,11 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24827
24985
|
get: function get() {
|
|
24828
24986
|
return this.article.partlistArticleVisibleInTree && this.hasOptionsThatParentDoesNotHave;
|
|
24829
24987
|
}
|
|
24988
|
+
}, {
|
|
24989
|
+
key: "partlistArticleStandalone",
|
|
24990
|
+
get: function get() {
|
|
24991
|
+
return this.article.partlistArticleStandalone;
|
|
24992
|
+
}
|
|
24830
24993
|
}, {
|
|
24831
24994
|
key: "partlistArticlesReqursive",
|
|
24832
24995
|
get: function get() {
|
|
@@ -24841,6 +25004,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24841
25004
|
get: function get() {
|
|
24842
25005
|
var _this$partListParentA;
|
|
24843
25006
|
if (!this.partListParentArticle) return false;
|
|
25007
|
+
if (this.partlistArticleStandalone) return true;
|
|
24844
25008
|
//a partlistartilce should really only be visible in the configtree when the parent does not have a option in his Optiontree that the partlistarticle has
|
|
24845
25009
|
// first usecase https://app.asana.com/0/1204193128085691/1204389027061737
|
|
24846
25010
|
var myOptions = this.articleOptionStatesKeys;
|
|
@@ -24851,17 +25015,24 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24851
25015
|
}
|
|
24852
25016
|
}, {
|
|
24853
25017
|
key: "getRecursivePartlistArticles",
|
|
24854
|
-
value: function getRecursivePartlistArticles(onlyVisible) {
|
|
25018
|
+
value: function getRecursivePartlistArticles(onlyVisible, excludeStandalonePla) {
|
|
24855
25019
|
var partlistArticles = {};
|
|
24856
25020
|
for (var basketId in this.partlistArticles) {
|
|
24857
25021
|
var partlistArticle = this.partlistArticles[basketId];
|
|
24858
|
-
if (!onlyVisible || partlistArticle.partlistArticleVisibleInTree) partlistArticles[basketId] = partlistArticle;
|
|
25022
|
+
if (!onlyVisible || partlistArticle.partlistArticleVisibleInTree || !excludeStandalonePla && partlistArticle.partlistArticleStandalone) partlistArticles[basketId] = partlistArticle;
|
|
24859
25023
|
if (partlistArticle.hasPartlistArticle) {
|
|
24860
|
-
partlistArticles = _objectSpread$e(_objectSpread$e({}, partlistArticles), partlistArticle.getRecursivePartlistArticles(onlyVisible));
|
|
25024
|
+
partlistArticles = _objectSpread$e(_objectSpread$e({}, partlistArticles), partlistArticle.getRecursivePartlistArticles(onlyVisible, excludeStandalonePla));
|
|
24861
25025
|
}
|
|
24862
25026
|
}
|
|
24863
25027
|
return partlistArticles;
|
|
24864
25028
|
}
|
|
25029
|
+
}, {
|
|
25030
|
+
key: "variantValuesForPla",
|
|
25031
|
+
value: function variantValuesForPla(configurationMode, previousPartlistArticleVariantValues, newConfigValues) {
|
|
25032
|
+
//if configurationMode is true its previous values are more important than the values of the parentelement because its standalone configurable
|
|
25033
|
+
if (configurationMode) return _objectSpread$e(_objectSpread$e({}, newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {}), previousPartlistArticleVariantValues !== null && previousPartlistArticleVariantValues !== void 0 ? previousPartlistArticleVariantValues : {});
|
|
25034
|
+
return _objectSpread$e(_objectSpread$e({}, previousPartlistArticleVariantValues !== null && previousPartlistArticleVariantValues !== void 0 ? previousPartlistArticleVariantValues : {}), newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {});
|
|
25035
|
+
}
|
|
24865
25036
|
}, {
|
|
24866
25037
|
key: "partlistArticlesAsArray",
|
|
24867
25038
|
get: function get() {
|
|
@@ -25505,31 +25676,32 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25505
25676
|
});
|
|
25506
25677
|
if (firstMatch) return firstMatch;
|
|
25507
25678
|
if (from !== ((_this$partListParentA9 = this.partListParentArticle) === null || _this$partListParentA9 === void 0 ? void 0 : _this$partListParentA9.basketId) && (_this$partListParentA10 = this.partListParentArticle) !== null && _this$partListParentA10 !== void 0 && _this$partListParentA10.getArticleOptionState(codex, undefined, checkOnAccessoireParent)) {
|
|
25508
|
-
|
|
25679
|
+
var ops = this.partListParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
|
|
25680
|
+
if (ops) return ops;
|
|
25509
25681
|
}
|
|
25510
25682
|
if (Object.keys((_this$partlistArticle3 = this.partlistArticles) !== null && _this$partlistArticle3 !== void 0 ? _this$partlistArticle3 : {}).length > 0) {
|
|
25511
25683
|
for (var key in this.partlistArticles) {
|
|
25512
25684
|
if (from === key) continue;
|
|
25513
25685
|
var partlistArticle = this.partlistArticles[key];
|
|
25514
|
-
var
|
|
25515
|
-
if (
|
|
25686
|
+
var _ops = partlistArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
|
|
25687
|
+
if (_ops) return _ops;
|
|
25516
25688
|
}
|
|
25517
25689
|
}
|
|
25518
25690
|
var _iterator5 = _createForOfIteratorHelper$6(this.articleOptionStatesData),
|
|
25519
25691
|
_step5;
|
|
25520
25692
|
try {
|
|
25521
25693
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
25522
|
-
var
|
|
25694
|
+
var _ops3 = _step5.value;
|
|
25523
25695
|
if (!codex.includes('.')) {
|
|
25524
|
-
if (
|
|
25525
|
-
return
|
|
25696
|
+
if (_ops3.option.ocd == codex && _ops3.isDoShow && !_ops3.isDisabled) {
|
|
25697
|
+
return _ops3;
|
|
25526
25698
|
}
|
|
25527
25699
|
} else {
|
|
25528
25700
|
var _this$parentOptionCod = this.parentOptionCodex(codex),
|
|
25529
25701
|
optionCodex = _this$parentOptionCod.optionCodex,
|
|
25530
25702
|
partenOptionCodex = _this$parentOptionCod.partenOptionCodex;
|
|
25531
|
-
if ((
|
|
25532
|
-
return
|
|
25703
|
+
if ((_ops3.option.ocd == optionCodex || _ops3.option.codex == optionCodex) && _ops3.option.parentOptionCodex == partenOptionCodex) {
|
|
25704
|
+
return _ops3;
|
|
25533
25705
|
}
|
|
25534
25706
|
}
|
|
25535
25707
|
}
|
|
@@ -25539,8 +25711,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25539
25711
|
_iterator5.f();
|
|
25540
25712
|
}
|
|
25541
25713
|
if (checkOnAccessoireParent && this.accessoireParentArticle) {
|
|
25542
|
-
var
|
|
25543
|
-
if (
|
|
25714
|
+
var _ops2 = this.accessoireParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
|
|
25715
|
+
if (_ops2) return _ops2;
|
|
25544
25716
|
}
|
|
25545
25717
|
return undefined;
|
|
25546
25718
|
}
|
|
@@ -25734,9 +25906,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25734
25906
|
get: function get() {
|
|
25735
25907
|
var _this$partlistArticle4;
|
|
25736
25908
|
if (Object.values((_this$partlistArticle4 = this.partlistArticles) !== null && _this$partlistArticle4 !== void 0 ? _this$partlistArticle4 : {}).find(function (p) {
|
|
25737
|
-
return p.partlistArticleVisibleInTree;
|
|
25909
|
+
return p.partlistArticleVisibleInTree || p.partlistArticleStandalone;
|
|
25738
25910
|
})) return true;
|
|
25739
|
-
return this.partlistArticleVisibleInTree;
|
|
25911
|
+
return this.partlistArticleVisibleInTree || this.partlistArticleStandalone;
|
|
25740
25912
|
}
|
|
25741
25913
|
}, {
|
|
25742
25914
|
key: "partListParentArticle",
|
|
@@ -26197,13 +26369,15 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26197
26369
|
invisible: ops.isInvisible,
|
|
26198
26370
|
visibleOPVs: Object.values(ops.visibleOptionValues).map(function (v) {
|
|
26199
26371
|
return v.codex;
|
|
26200
|
-
})
|
|
26372
|
+
}),
|
|
26373
|
+
optName: ops.optionName
|
|
26201
26374
|
};
|
|
26202
26375
|
if (ops.freeText) {
|
|
26203
26376
|
ret[ops.optionCodex + '_val'] = {
|
|
26204
26377
|
selOPV: ops.freeText,
|
|
26205
26378
|
visibleOPVs: [],
|
|
26206
|
-
invisible: true
|
|
26379
|
+
invisible: true,
|
|
26380
|
+
optName: ''
|
|
26207
26381
|
};
|
|
26208
26382
|
}
|
|
26209
26383
|
}
|
|
@@ -26335,8 +26509,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26335
26509
|
_step14;
|
|
26336
26510
|
try {
|
|
26337
26511
|
for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
|
|
26512
|
+
var _ops$idmVariantenArt;
|
|
26338
26513
|
var ops = _step14.value;
|
|
26339
|
-
if (ops.isDoShow && (!(ops.idmVariantenArt
|
|
26514
|
+
if (ops.isDoShow && (![95, 96, 97, 1095, 1096, 1097].includes((_ops$idmVariantenArt = ops.idmVariantenArt) !== null && _ops$idmVariantenArt !== void 0 ? _ops$idmVariantenArt : 0) || ops.isVisibleFreeText) && ops.val && ops.visibleCount > 0 && !ops.isDescribingState) {
|
|
26340
26515
|
variantValues.push((this.CatalogData.isIDMFormat ? ops.optionCodex : ops.optionCodex.substring(3)) + '_' + (this.CatalogData.isIDMFormat ? ops.val.codex : ops.val.codex.substring(3)) + (ops.freeText ? '_' + ops.freeText : ops.value ? '_' + ops.value : ''));
|
|
26341
26516
|
}
|
|
26342
26517
|
}
|
|
@@ -26489,6 +26664,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26489
26664
|
}, {
|
|
26490
26665
|
key: "deletePartlistArticles",
|
|
26491
26666
|
value: function deletePartlistArticles() {
|
|
26667
|
+
for (var pl in this.article.partlistArticles) {
|
|
26668
|
+
this.article.partlistArticles[pl].deleted = true;
|
|
26669
|
+
}
|
|
26492
26670
|
if (Object.keys(this.article.partlistArticles).length) this.article.previousPartlistArticles = this.article.partlistArticles;
|
|
26493
26671
|
this.article.partlistArticles = {};
|
|
26494
26672
|
}
|
|
@@ -26779,9 +26957,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26779
26957
|
_step21;
|
|
26780
26958
|
try {
|
|
26781
26959
|
for (_iterator21.s(); !(_step21 = _iterator21.n()).done;) {
|
|
26782
|
-
var
|
|
26783
|
-
if (
|
|
26784
|
-
ret = this.checkOptionSearchOPV(
|
|
26960
|
+
var _ops4 = _step21.value;
|
|
26961
|
+
if (_ops4.option.ocd == optionCodex && _ops4.isDoShow && (parentOptionCodex == '' || parentOptionCodex == _ops4.option.parentOptionCodex)) {
|
|
26962
|
+
ret = this.checkOptionSearchOPV(_ops4.option, optionValueCodex, ret);
|
|
26785
26963
|
}
|
|
26786
26964
|
}
|
|
26787
26965
|
//fallback for pfister classification usecase
|
|
@@ -26794,9 +26972,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26794
26972
|
_step22;
|
|
26795
26973
|
try {
|
|
26796
26974
|
for (_iterator22.s(); !(_step22 = _iterator22.n()).done;) {
|
|
26797
|
-
var
|
|
26798
|
-
if (
|
|
26799
|
-
return this.checkOptionSearchOPV(
|
|
26975
|
+
var _ops5 = _step22.value;
|
|
26976
|
+
if (_ops5.option.ocd == optionCodex && optionCodex !== null && optionCodex !== void 0 && optionCodex.startsWith('OPTOPT') && (parentOptionCodex == '' || parentOptionCodex == _ops5.option.parentOptionCodex)) {
|
|
26977
|
+
return this.checkOptionSearchOPV(_ops5.option, optionValueCodex, ret);
|
|
26800
26978
|
}
|
|
26801
26979
|
}
|
|
26802
26980
|
} catch (err) {
|
|
@@ -27019,6 +27197,18 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27019
27197
|
}
|
|
27020
27198
|
return visibleOptionValues[Object.keys(visibleOptionValues)[0]];
|
|
27021
27199
|
}
|
|
27200
|
+
}, {
|
|
27201
|
+
key: "getVariantValuesInfluencingAVLAVRFilter",
|
|
27202
|
+
value: function getVariantValuesInfluencingAVLAVRFilter() {
|
|
27203
|
+
var filterOptions = [(!this.CatalogData.isIDMFormat ? 'OPT' : '') + '89', (!this.CatalogData.isIDMFormat ? 'OPT' : '') + '90'];
|
|
27204
|
+
var variantValues = [];
|
|
27205
|
+
for (var i = 0; i < filterOptions.length; i++) {
|
|
27206
|
+
if (this.getArticleOptionState(filterOptions[i])) {
|
|
27207
|
+
variantValues = [].concat(_toConsumableArray__default["default"](this.engine.getValuesInfluencingOPT(filterOptions[i])), _toConsumableArray__default["default"](variantValues));
|
|
27208
|
+
}
|
|
27209
|
+
}
|
|
27210
|
+
return variantValues;
|
|
27211
|
+
}
|
|
27022
27212
|
}, {
|
|
27023
27213
|
key: "updateOptionsWithAddToMeasure",
|
|
27024
27214
|
value: function updateOptionsWithAddToMeasure(optionCodex) {
|
|
@@ -27089,7 +27279,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27089
27279
|
break;
|
|
27090
27280
|
}
|
|
27091
27281
|
_context.next = 4;
|
|
27092
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
27282
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-9b6a7bf9.js'); });
|
|
27093
27283
|
case 4:
|
|
27094
27284
|
_yield$import = _context.sent;
|
|
27095
27285
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -27152,6 +27342,39 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27152
27342
|
if (!this.partListParentArticle) return true;
|
|
27153
27343
|
return !!this.partListParentArticle.getArticleOptionStateFlat(opt) || this.partlistArticleVisibleInTree;
|
|
27154
27344
|
}
|
|
27345
|
+
}, {
|
|
27346
|
+
key: "afterInit",
|
|
27347
|
+
value: function () {
|
|
27348
|
+
var _afterInit = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2() {
|
|
27349
|
+
var variantValues, i, _ops$visibleOptionVal, ops, _ops$visibleOptionVal2;
|
|
27350
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
|
|
27351
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27352
|
+
case 0:
|
|
27353
|
+
if (this.CatalogData.useDiomexConfigLogic) {
|
|
27354
|
+
_context2.next = 2;
|
|
27355
|
+
break;
|
|
27356
|
+
}
|
|
27357
|
+
return _context2.abrupt("return", {});
|
|
27358
|
+
case 2:
|
|
27359
|
+
variantValues = {};
|
|
27360
|
+
for (i = 0; i < this.articleOptionStates.length; i++) {
|
|
27361
|
+
ops = this.articleOptionStates[i];
|
|
27362
|
+
if (ops.val === undefined && Object.values((_ops$visibleOptionVal = ops.visibleOptionValues) !== null && _ops$visibleOptionVal !== void 0 ? _ops$visibleOptionVal : {}).length && !ops.isInvisible) {
|
|
27363
|
+
variantValues[ops.optionCodex] = Object.values((_ops$visibleOptionVal2 = ops.visibleOptionValues) !== null && _ops$visibleOptionVal2 !== void 0 ? _ops$visibleOptionVal2 : {})[0].codex;
|
|
27364
|
+
}
|
|
27365
|
+
}
|
|
27366
|
+
return _context2.abrupt("return", variantValues);
|
|
27367
|
+
case 5:
|
|
27368
|
+
case "end":
|
|
27369
|
+
return _context2.stop();
|
|
27370
|
+
}
|
|
27371
|
+
}, _callee2, this);
|
|
27372
|
+
}));
|
|
27373
|
+
function afterInit() {
|
|
27374
|
+
return _afterInit.apply(this, arguments);
|
|
27375
|
+
}
|
|
27376
|
+
return afterInit;
|
|
27377
|
+
}()
|
|
27155
27378
|
}, {
|
|
27156
27379
|
key: "getValidValues",
|
|
27157
27380
|
value: function getValidValues(myValues, mergeOptionToSameOption, setConfigDoesOverWrite) {
|
|
@@ -27200,8 +27423,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27200
27423
|
}
|
|
27201
27424
|
}
|
|
27202
27425
|
for (var _key2 in myValues) {
|
|
27203
|
-
var
|
|
27204
|
-
if (
|
|
27426
|
+
var _ops6 = this.getArticleOptionState(_key2);
|
|
27427
|
+
if (_ops6) {
|
|
27205
27428
|
validValues[_key2] = myValues[_key2];
|
|
27206
27429
|
} else if (_key2.endsWith('_val') && this.getArticleOptionState(_key2.replace(/_val/g, ''))) {
|
|
27207
27430
|
validValues[_key2] = myValues[_key2];
|
|
@@ -27210,10 +27433,10 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27210
27433
|
_step24;
|
|
27211
27434
|
try {
|
|
27212
27435
|
for (_iterator24.s(); !(_step24 = _iterator24.n()).done;) {
|
|
27213
|
-
var
|
|
27214
|
-
if (
|
|
27215
|
-
var values = this.checkOptionSearchOPV(
|
|
27216
|
-
if (values !== null && values !== void 0 && values.opv) validValues[
|
|
27436
|
+
var _ops7 = _step24.value;
|
|
27437
|
+
if (_ops7.optionOcd == _key2) {
|
|
27438
|
+
var values = this.checkOptionSearchOPV(_ops7.option, myValues[_key2], {});
|
|
27439
|
+
if (values !== null && values !== void 0 && values.opv) validValues[_ops7.optionCodex] = values.opv.codex;
|
|
27217
27440
|
}
|
|
27218
27441
|
}
|
|
27219
27442
|
} catch (err) {
|
|
@@ -27223,9 +27446,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27223
27446
|
}
|
|
27224
27447
|
}
|
|
27225
27448
|
//for classification usecase when suboption and option have the same name like OPTOPT_MATERIAL_1_00 and OPTOPT_MATERIAL_1_00.OPTOPT_MATERIAL_1_00
|
|
27226
|
-
if (
|
|
27227
|
-
var
|
|
27228
|
-
if ((
|
|
27449
|
+
if (_ops6) {
|
|
27450
|
+
var _ops6$valCodex;
|
|
27451
|
+
if ((_ops6$valCodex = _ops6.valCodex) !== null && _ops6$valCodex !== void 0 && _ops6$valCodex.startsWith('OPVSUB_') && !validValues[_key2 + '.' + _key2] && this.getArticleOptionState(_key2 + '.' + _key2)) {
|
|
27229
27452
|
validValues[_key2 + '.' + _key2] = myValues[_key2];
|
|
27230
27453
|
}
|
|
27231
27454
|
}
|
|
@@ -27565,7 +27788,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27565
27788
|
var ops = _step28.value;
|
|
27566
27789
|
var OP = ops.optionCodex;
|
|
27567
27790
|
if (ops) {
|
|
27568
|
-
var
|
|
27791
|
+
var _ops$idmVariantenArt2;
|
|
27792
|
+
var doHideSizeOption = [95, 96, 97, 1095, 1096, 1097].includes((_ops$idmVariantenArt2 = ops.idmVariantenArt) !== null && _ops$idmVariantenArt2 !== void 0 ? _ops$idmVariantenArt2 : 0);
|
|
27569
27793
|
if (ops.isVisibleFreeText == true) {
|
|
27570
27794
|
doHideSizeOption = false;
|
|
27571
27795
|
}
|
|
@@ -27736,15 +27960,15 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27736
27960
|
value: function validateAndSetNewConfigValues(newConfigValues) {
|
|
27737
27961
|
var freeTextValues = {};
|
|
27738
27962
|
for (var key in newConfigValues) {
|
|
27739
|
-
var
|
|
27963
|
+
var _ops8, _ops9, _newConfigValues$key;
|
|
27740
27964
|
var ops = this.getArticleOptionState(key);
|
|
27741
27965
|
var _this$parentOptionCod5 = this.parentOptionCodex(key),
|
|
27742
27966
|
optionCodex = _this$parentOptionCod5.optionCodex,
|
|
27743
27967
|
partenOptionCodex = _this$parentOptionCod5.partenOptionCodex;
|
|
27744
|
-
if ((
|
|
27968
|
+
if ((_ops8 = ops) !== null && _ops8 !== void 0 && _ops8.isMultiselect) {
|
|
27745
27969
|
ops = this.handleMultiselect(ops, newConfigValues, key);
|
|
27746
27970
|
}
|
|
27747
|
-
if ((
|
|
27971
|
+
if ((_ops9 = ops) !== null && _ops9 !== void 0 && _ops9.isFreeText) {
|
|
27748
27972
|
this.handleFreeText(ops, newConfigValues, key, freeTextValues);
|
|
27749
27973
|
}
|
|
27750
27974
|
var opvCodex = (_newConfigValues$key = newConfigValues[key]) === null || _newConfigValues$key === void 0 ? void 0 : _newConfigValues$key.split(';')[0];
|
|
@@ -27755,8 +27979,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27755
27979
|
var myFreeText = foundItem.opv.isFreeText ? newConfigValues[optionCodex + '_val'] : undefined;
|
|
27756
27980
|
this.engine.updateArtOPV(foundItem.opv, foundItem.opt.codex, this.getArticleOptionState(foundItem.opt.codex), myFreeText);
|
|
27757
27981
|
} else {
|
|
27758
|
-
var
|
|
27759
|
-
if (ops && !((
|
|
27982
|
+
var _ops10;
|
|
27983
|
+
if (ops && !((_ops10 = ops) !== null && _ops10 !== void 0 && _ops10.isFreeText)) {
|
|
27760
27984
|
// to initialize freetexts where the freetext is not the only selectable opv in the options
|
|
27761
27985
|
this.checkIfSelectableOpvIsFreetext(ops, opvCodex, newConfigValues);
|
|
27762
27986
|
}
|
|
@@ -28013,7 +28237,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28013
28237
|
while (1) switch (_context5.prev = _context5.next) {
|
|
28014
28238
|
case 0:
|
|
28015
28239
|
if (!(article.articleType == 'OPTION' || article.articleType == 'OPTIONTREE')) {
|
|
28016
|
-
_context5.next =
|
|
28240
|
+
_context5.next = 11;
|
|
28017
28241
|
break;
|
|
28018
28242
|
}
|
|
28019
28243
|
_context5.next = 3;
|
|
@@ -28022,13 +28246,20 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28022
28246
|
_context5.next = 5;
|
|
28023
28247
|
return this.updateCfgValues(article, defaultValues, variantValues);
|
|
28024
28248
|
case 5:
|
|
28025
|
-
if (!(
|
|
28249
|
+
if (!(from === 'initializingPartlist')) {
|
|
28026
28250
|
_context5.next = 8;
|
|
28027
28251
|
break;
|
|
28028
28252
|
}
|
|
28029
28253
|
_context5.next = 8;
|
|
28030
|
-
return
|
|
28254
|
+
return this.updateEmptyOption(article);
|
|
28031
28255
|
case 8:
|
|
28256
|
+
if (!(article.set.PlannerMode !== 'BoxPlanner')) {
|
|
28257
|
+
_context5.next = 11;
|
|
28258
|
+
break;
|
|
28259
|
+
}
|
|
28260
|
+
_context5.next = 11;
|
|
28261
|
+
return setHandlerInstance.updateArticlesOptionStatesOfActSet(article.set, defaultValues, [article.basketId], ignorePlanner, from);
|
|
28262
|
+
case 11:
|
|
28032
28263
|
case "end":
|
|
28033
28264
|
return _context5.stop();
|
|
28034
28265
|
}
|
|
@@ -28054,7 +28285,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28054
28285
|
key: "updateArticlesOptionStates",
|
|
28055
28286
|
value: function () {
|
|
28056
28287
|
var _updateArticlesOptionStates = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee5(myValues, targetArticlesWithNewValues, targetArticlesToUpdate, articles, from) {
|
|
28057
|
-
var newEDOExtraArticles, partlistArticlesToLoad, valuesArray, i, actArticle,
|
|
28288
|
+
var newEDOExtraArticles, partlistArticlesToLoad, valuesArray, i, _actArticle, actArticle, newPLATL, _actArticle$checkDefa, variantValues, triggerUpdate, pla;
|
|
28058
28289
|
return _regeneratorRuntime__default["default"].wrap(function _callee5$(_context6) {
|
|
28059
28290
|
while (1) switch (_context6.prev = _context6.next) {
|
|
28060
28291
|
case 0:
|
|
@@ -28064,74 +28295,79 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28064
28295
|
i = 0;
|
|
28065
28296
|
case 4:
|
|
28066
28297
|
if (!(i < targetArticlesToUpdate.length)) {
|
|
28067
|
-
_context6.next =
|
|
28298
|
+
_context6.next = 40;
|
|
28068
28299
|
break;
|
|
28069
28300
|
}
|
|
28070
28301
|
valuesArray[i] = {};
|
|
28071
28302
|
actArticle = articles[targetArticlesToUpdate[i]];
|
|
28303
|
+
if ((_actArticle = actArticle) !== null && _actArticle !== void 0 && _actArticle.deleted && actArticle.isPartListArticle && actArticle.partListParentArticle) {
|
|
28304
|
+
actArticle = actArticle.partListParentArticle.partlistArticles[actArticle.basketId];
|
|
28305
|
+
}
|
|
28072
28306
|
if (!(!actArticle || actArticle.deleted)) {
|
|
28073
|
-
_context6.next =
|
|
28307
|
+
_context6.next = 12;
|
|
28074
28308
|
break;
|
|
28075
28309
|
}
|
|
28076
28310
|
targetArticlesToUpdate.splice(i, 1);
|
|
28077
28311
|
i--;
|
|
28078
|
-
return _context6.abrupt("continue",
|
|
28079
|
-
case
|
|
28312
|
+
return _context6.abrupt("continue", 37);
|
|
28313
|
+
case 12:
|
|
28080
28314
|
if (targetArticlesWithNewValues.includes(targetArticlesToUpdate[i])) {
|
|
28081
28315
|
valuesArray[i] = actArticle.getValidValues(_objectSpread$d({}, myValues), actArticle.CatalogData.mergeOptionsToSameOption);
|
|
28082
28316
|
}
|
|
28083
28317
|
|
|
28084
28318
|
//only set config if valuesArray are not empty or the article is initializing
|
|
28319
|
+
newPLATL = void 0; // partlistarticle to load
|
|
28085
28320
|
if (!(Object.entries(valuesArray[i]).length > 0 || from !== null && from !== void 0 && from.startsWith('initializing'))) {
|
|
28086
|
-
_context6.next =
|
|
28321
|
+
_context6.next = 29;
|
|
28087
28322
|
break;
|
|
28088
28323
|
}
|
|
28089
|
-
_context6.next =
|
|
28324
|
+
_context6.next = 17;
|
|
28090
28325
|
return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
|
|
28091
|
-
case
|
|
28092
|
-
|
|
28326
|
+
case 17:
|
|
28327
|
+
newPLATL = _context6.sent;
|
|
28093
28328
|
_actArticle$checkDefa = actArticle.checkDefaultGlobalOpt(valuesArray[i]), variantValues = _actArticle$checkDefa.variantValues, triggerUpdate = _actArticle$checkDefa.triggerUpdate;
|
|
28094
28329
|
valuesArray[i] = variantValues;
|
|
28095
|
-
_context6.next =
|
|
28330
|
+
_context6.next = 22;
|
|
28096
28331
|
return this.updateAccessoriesFromGlobalOption(valuesArray[i], actArticle);
|
|
28097
|
-
case
|
|
28332
|
+
case 22:
|
|
28098
28333
|
if (!triggerUpdate) {
|
|
28099
|
-
_context6.next =
|
|
28334
|
+
_context6.next = 26;
|
|
28100
28335
|
break;
|
|
28101
28336
|
}
|
|
28102
|
-
_context6.next =
|
|
28337
|
+
_context6.next = 25;
|
|
28103
28338
|
return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
|
|
28104
|
-
case
|
|
28105
|
-
|
|
28106
|
-
case
|
|
28107
|
-
partlistArticlesToLoad = partlistArticlesToLoad.concat(newPartlistArticlesToLoad);
|
|
28339
|
+
case 25:
|
|
28340
|
+
newPLATL = _context6.sent;
|
|
28341
|
+
case 26:
|
|
28108
28342
|
newEDOExtraArticles = this.checkEDOArticles(articles);
|
|
28109
|
-
_context6.next =
|
|
28343
|
+
_context6.next = 32;
|
|
28110
28344
|
break;
|
|
28111
|
-
case
|
|
28112
|
-
_context6.t0 = partlistArticlesToLoad;
|
|
28345
|
+
case 29:
|
|
28113
28346
|
_context6.next = 31;
|
|
28114
28347
|
return this.updateCfgValues(actArticle, {}, {}, undefined, undefined, from == 'calcVariant');
|
|
28115
28348
|
case 31:
|
|
28116
|
-
|
|
28117
|
-
|
|
28118
|
-
|
|
28349
|
+
newPLATL = _context6.sent;
|
|
28350
|
+
case 32:
|
|
28351
|
+
_context6.next = 34;
|
|
28352
|
+
return this.updateEmptyOption(actArticle);
|
|
28353
|
+
case 34:
|
|
28354
|
+
pla = _context6.sent;
|
|
28355
|
+
if (pla !== undefined) newPLATL = pla;
|
|
28356
|
+
partlistArticlesToLoad = partlistArticlesToLoad.concat(newPLATL);
|
|
28357
|
+
case 37:
|
|
28119
28358
|
i++;
|
|
28120
28359
|
_context6.next = 4;
|
|
28121
28360
|
break;
|
|
28122
|
-
case 36:
|
|
28123
|
-
_context6.next = 38;
|
|
28124
|
-
return this.triggerUpdateOnVisiblePartilstArticles(targetArticlesToUpdate, articles);
|
|
28125
|
-
case 38:
|
|
28126
|
-
_context6.next = 40;
|
|
28127
|
-
return this.triggerMoreUpdates(targetArticlesToUpdate, valuesArray, articles, from);
|
|
28128
28361
|
case 40:
|
|
28362
|
+
_context6.next = 42;
|
|
28363
|
+
return this.triggerUpdateOnVisiblePartilstArticles(targetArticlesToUpdate, articles);
|
|
28364
|
+
case 42:
|
|
28129
28365
|
return _context6.abrupt("return", {
|
|
28130
28366
|
newEDOExtraArticles: newEDOExtraArticles,
|
|
28131
28367
|
targetArticlesToUpdate: targetArticlesToUpdate,
|
|
28132
28368
|
partlistArticlesToLoad: partlistArticlesToLoad
|
|
28133
28369
|
});
|
|
28134
|
-
case
|
|
28370
|
+
case 43:
|
|
28135
28371
|
case "end":
|
|
28136
28372
|
return _context6.stop();
|
|
28137
28373
|
}
|
|
@@ -28143,38 +28379,38 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28143
28379
|
return updateArticlesOptionStates;
|
|
28144
28380
|
}()
|
|
28145
28381
|
}, {
|
|
28146
|
-
key: "
|
|
28382
|
+
key: "triggerUpdateOnVisiblePartilstArticles",
|
|
28147
28383
|
value: function () {
|
|
28148
|
-
var
|
|
28149
|
-
var
|
|
28384
|
+
var _triggerUpdateOnVisiblePartilstArticles = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee6(targetArticlesToUpdate, articles) {
|
|
28385
|
+
var _articles$targetArtic;
|
|
28386
|
+
var key, configuredArticle, toIgnore, actArticle;
|
|
28150
28387
|
return _regeneratorRuntime__default["default"].wrap(function _callee6$(_context7) {
|
|
28151
28388
|
while (1) switch (_context7.prev = _context7.next) {
|
|
28152
28389
|
case 0:
|
|
28153
|
-
if (!(
|
|
28154
|
-
_context7.next =
|
|
28390
|
+
if (!((_articles$targetArtic = articles[targetArticlesToUpdate[0]]) !== null && _articles$targetArtic !== void 0 && _articles$targetArtic.hasPartlistArticleVisibleInTree)) {
|
|
28391
|
+
_context7.next = 13;
|
|
28155
28392
|
break;
|
|
28156
28393
|
}
|
|
28157
|
-
|
|
28394
|
+
_context7.t0 = _regeneratorRuntime__default["default"].keys(articles);
|
|
28158
28395
|
case 2:
|
|
28159
|
-
|
|
28160
|
-
case 3:
|
|
28161
|
-
if (!(i < targetArticlesToUpdate.length)) {
|
|
28396
|
+
if ((_context7.t1 = _context7.t0()).done) {
|
|
28162
28397
|
_context7.next = 13;
|
|
28163
28398
|
break;
|
|
28164
28399
|
}
|
|
28165
|
-
|
|
28166
|
-
|
|
28167
|
-
|
|
28400
|
+
key = _context7.t1.value;
|
|
28401
|
+
configuredArticle = articles[targetArticlesToUpdate[0]];
|
|
28402
|
+
toIgnore = configuredArticle.pushParentId();
|
|
28403
|
+
if (![configuredArticle.basketId].concat(_toConsumableArray__default["default"](toIgnore)).includes(key)) {
|
|
28404
|
+
_context7.next = 8;
|
|
28168
28405
|
break;
|
|
28169
28406
|
}
|
|
28170
|
-
_context7.
|
|
28171
|
-
return this.updateCfgValues(article, valuesArray[i], {});
|
|
28407
|
+
return _context7.abrupt("continue", 2);
|
|
28172
28408
|
case 8:
|
|
28173
|
-
|
|
28174
|
-
|
|
28175
|
-
|
|
28176
|
-
|
|
28177
|
-
_context7.next =
|
|
28409
|
+
actArticle = articles[key];
|
|
28410
|
+
_context7.next = 11;
|
|
28411
|
+
return this.updateCfgValues(actArticle, {}, {});
|
|
28412
|
+
case 11:
|
|
28413
|
+
_context7.next = 2;
|
|
28178
28414
|
break;
|
|
28179
28415
|
case 13:
|
|
28180
28416
|
case "end":
|
|
@@ -28182,55 +28418,43 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28182
28418
|
}
|
|
28183
28419
|
}, _callee6, this);
|
|
28184
28420
|
}));
|
|
28185
|
-
function
|
|
28186
|
-
return
|
|
28421
|
+
function triggerUpdateOnVisiblePartilstArticles(_x19, _x20) {
|
|
28422
|
+
return _triggerUpdateOnVisiblePartilstArticles.apply(this, arguments);
|
|
28187
28423
|
}
|
|
28188
|
-
return
|
|
28424
|
+
return triggerUpdateOnVisiblePartilstArticles;
|
|
28189
28425
|
}()
|
|
28190
28426
|
}, {
|
|
28191
|
-
key: "
|
|
28427
|
+
key: "updateEmptyOption",
|
|
28192
28428
|
value: function () {
|
|
28193
|
-
var
|
|
28194
|
-
var
|
|
28195
|
-
var key, configuredArticle, toIgnore, actArticle;
|
|
28429
|
+
var _updateEmptyOption = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee7(article) {
|
|
28430
|
+
var emyptsOptionsToSet;
|
|
28196
28431
|
return _regeneratorRuntime__default["default"].wrap(function _callee7$(_context8) {
|
|
28197
28432
|
while (1) switch (_context8.prev = _context8.next) {
|
|
28198
28433
|
case 0:
|
|
28199
|
-
|
|
28200
|
-
|
|
28201
|
-
break;
|
|
28202
|
-
}
|
|
28203
|
-
_context8.t0 = _regeneratorRuntime__default["default"].keys(articles);
|
|
28434
|
+
_context8.next = 2;
|
|
28435
|
+
return article.afterInit();
|
|
28204
28436
|
case 2:
|
|
28205
|
-
|
|
28206
|
-
|
|
28207
|
-
|
|
28208
|
-
}
|
|
28209
|
-
key = _context8.t1.value;
|
|
28210
|
-
configuredArticle = articles[targetArticlesToUpdate[0]];
|
|
28211
|
-
toIgnore = configuredArticle.pushParentId();
|
|
28212
|
-
if (![configuredArticle.basketId].concat(_toConsumableArray__default["default"](toIgnore)).includes(key)) {
|
|
28213
|
-
_context8.next = 8;
|
|
28437
|
+
emyptsOptionsToSet = _context8.sent;
|
|
28438
|
+
if (!Object.keys(emyptsOptionsToSet).length) {
|
|
28439
|
+
_context8.next = 7;
|
|
28214
28440
|
break;
|
|
28215
28441
|
}
|
|
28216
|
-
|
|
28442
|
+
_context8.next = 6;
|
|
28443
|
+
return this.updateCfgValues(article, emyptsOptionsToSet, {});
|
|
28444
|
+
case 6:
|
|
28445
|
+
return _context8.abrupt("return", _context8.sent);
|
|
28446
|
+
case 7:
|
|
28447
|
+
return _context8.abrupt("return", undefined);
|
|
28217
28448
|
case 8:
|
|
28218
|
-
actArticle = articles[key];
|
|
28219
|
-
_context8.next = 11;
|
|
28220
|
-
return this.updateCfgValues(actArticle, {}, {});
|
|
28221
|
-
case 11:
|
|
28222
|
-
_context8.next = 2;
|
|
28223
|
-
break;
|
|
28224
|
-
case 13:
|
|
28225
28449
|
case "end":
|
|
28226
28450
|
return _context8.stop();
|
|
28227
28451
|
}
|
|
28228
28452
|
}, _callee7, this);
|
|
28229
28453
|
}));
|
|
28230
|
-
function
|
|
28231
|
-
return
|
|
28454
|
+
function updateEmptyOption(_x21) {
|
|
28455
|
+
return _updateEmptyOption.apply(this, arguments);
|
|
28232
28456
|
}
|
|
28233
|
-
return
|
|
28457
|
+
return updateEmptyOption;
|
|
28234
28458
|
}()
|
|
28235
28459
|
}, {
|
|
28236
28460
|
key: "updateAccessoriesFromGlobalOption",
|
|
@@ -28259,7 +28483,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28259
28483
|
}
|
|
28260
28484
|
}, _callee8, this);
|
|
28261
28485
|
}));
|
|
28262
|
-
function updateAccessoriesFromGlobalOption(
|
|
28486
|
+
function updateAccessoriesFromGlobalOption(_x22, _x23) {
|
|
28263
28487
|
return _updateAccessoriesFromGlobalOption.apply(this, arguments);
|
|
28264
28488
|
}
|
|
28265
28489
|
return updateAccessoriesFromGlobalOption;
|
|
@@ -28497,12 +28721,14 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28497
28721
|
_iterator3.f();
|
|
28498
28722
|
return _context11.finish(30);
|
|
28499
28723
|
case 33:
|
|
28724
|
+
if (article.plannerData) article.plannerData.varaintValuesInfluencingAVLAVRFilter = article.getVariantValuesInfluencingAVLAVRFilter();
|
|
28725
|
+
case 34:
|
|
28500
28726
|
case "end":
|
|
28501
28727
|
return _context11.stop();
|
|
28502
28728
|
}
|
|
28503
28729
|
}, _callee9, null, [[12, 27, 30, 33]]);
|
|
28504
28730
|
}));
|
|
28505
|
-
function initCfgValues(
|
|
28731
|
+
function initCfgValues(_x24, _x25, _x26) {
|
|
28506
28732
|
return _initCfgValues.apply(this, arguments);
|
|
28507
28733
|
}
|
|
28508
28734
|
return initCfgValues;
|
|
@@ -28522,7 +28748,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28522
28748
|
}
|
|
28523
28749
|
}, _callee10, this);
|
|
28524
28750
|
}));
|
|
28525
|
-
function setValidVariantValues(
|
|
28751
|
+
function setValidVariantValues(_x27) {
|
|
28526
28752
|
return _setValidVariantValues.apply(this, arguments);
|
|
28527
28753
|
}
|
|
28528
28754
|
return setValidVariantValues;
|
|
@@ -28608,7 +28834,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28608
28834
|
}
|
|
28609
28835
|
}, _callee11, this);
|
|
28610
28836
|
}));
|
|
28611
|
-
function updateCfgValues(
|
|
28837
|
+
function updateCfgValues(_x28, _x29, _x30, _x31, _x32, _x33) {
|
|
28612
28838
|
return _updateCfgValues.apply(this, arguments);
|
|
28613
28839
|
}
|
|
28614
28840
|
return updateCfgValues;
|
|
@@ -28665,7 +28891,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28665
28891
|
}
|
|
28666
28892
|
}, _callee12, this);
|
|
28667
28893
|
}));
|
|
28668
|
-
function updateLastElement(
|
|
28894
|
+
function updateLastElement(_x34) {
|
|
28669
28895
|
return _updateLastElement.apply(this, arguments);
|
|
28670
28896
|
}
|
|
28671
28897
|
return updateLastElement;
|
|
@@ -28707,7 +28933,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28707
28933
|
}
|
|
28708
28934
|
}, _callee13);
|
|
28709
28935
|
}));
|
|
28710
|
-
function updateOption(
|
|
28936
|
+
function updateOption(_x35, _x36, _x37, _x38) {
|
|
28711
28937
|
return _updateOption.apply(this, arguments);
|
|
28712
28938
|
}
|
|
28713
28939
|
return updateOption;
|
|
@@ -28749,7 +28975,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28749
28975
|
}
|
|
28750
28976
|
}, _callee14, this);
|
|
28751
28977
|
}));
|
|
28752
|
-
function evalAndLoadPartlistArticles(
|
|
28978
|
+
function evalAndLoadPartlistArticles(_x39, _x40, _x41) {
|
|
28753
28979
|
return _evalAndLoadPartlistArticles.apply(this, arguments);
|
|
28754
28980
|
}
|
|
28755
28981
|
return evalAndLoadPartlistArticles;
|
|
@@ -28788,7 +29014,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28788
29014
|
}
|
|
28789
29015
|
}, _callee15, this);
|
|
28790
29016
|
}));
|
|
28791
|
-
function loadPartlistArticles(
|
|
29017
|
+
function loadPartlistArticles(_x42, _x43, _x44) {
|
|
28792
29018
|
return _loadPartlistArticles.apply(this, arguments);
|
|
28793
29019
|
}
|
|
28794
29020
|
return loadPartlistArticles;
|
|
@@ -28798,7 +29024,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28798
29024
|
key: "loadPartlistArticle",
|
|
28799
29025
|
value: function () {
|
|
28800
29026
|
var _loadPartlistArticle = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee16(doLoadItem, article, newConfigValues) {
|
|
28801
|
-
var nArticle;
|
|
29027
|
+
var nArticle, _doLoadItem$VariantVa;
|
|
28802
29028
|
return _regeneratorRuntime__default["default"].wrap(function _callee16$(_context18) {
|
|
28803
29029
|
while (1) switch (_context18.prev = _context18.next) {
|
|
28804
29030
|
case 0:
|
|
@@ -28812,7 +29038,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28812
29038
|
}
|
|
28813
29039
|
doLoadItem.BasketID = nArticle.basketId;
|
|
28814
29040
|
_context18.next = 7;
|
|
28815
|
-
return this.toDoAfterArticleLoaded(nArticle, {},
|
|
29041
|
+
return this.toDoAfterArticleLoaded(nArticle, {}, nArticle.variantValuesForPla(nArticle.partlistArticleStandalone, (_doLoadItem$VariantVa = doLoadItem.VariantValues) !== null && _doLoadItem$VariantVa !== void 0 ? _doLoadItem$VariantVa : {}, newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {}), 'initializingPartlist', doLoadItem.VariantItemData);
|
|
28816
29042
|
case 7:
|
|
28817
29043
|
article.addPartlistArticle(nArticle);
|
|
28818
29044
|
case 8:
|
|
@@ -28821,7 +29047,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28821
29047
|
}
|
|
28822
29048
|
}, _callee16, this);
|
|
28823
29049
|
}));
|
|
28824
|
-
function loadPartlistArticle(
|
|
29050
|
+
function loadPartlistArticle(_x45, _x46, _x47) {
|
|
28825
29051
|
return _loadPartlistArticle.apply(this, arguments);
|
|
28826
29052
|
}
|
|
28827
29053
|
return loadPartlistArticle;
|
|
@@ -28851,6 +29077,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28851
29077
|
supplierOrderCodex: doLoadItem.SupplierOrderCodex,
|
|
28852
29078
|
initDecisions: doLoadItem.initDecisions,
|
|
28853
29079
|
partlistArticleVisibleInTree: doLoadItem.PosInvisibility === 0,
|
|
29080
|
+
partlistArticleStandalone: doLoadItem.ConfigurationMode,
|
|
28854
29081
|
optionsForPrint: doLoadItem.optionsForPrint,
|
|
28855
29082
|
optionImgForPrint: doLoadItem.optionImgForPrint,
|
|
28856
29083
|
catalogCodex: doLoadItem.CatalogCodex
|
|
@@ -28982,7 +29209,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28982
29209
|
}
|
|
28983
29210
|
}, _callee17, this);
|
|
28984
29211
|
}));
|
|
28985
|
-
function evalOpvsOnOpvsConstructionRules(
|
|
29212
|
+
function evalOpvsOnOpvsConstructionRules(_x48) {
|
|
28986
29213
|
return _evalOpvsOnOpvsConstructionRules.apply(this, arguments);
|
|
28987
29214
|
}
|
|
28988
29215
|
return evalOpvsOnOpvsConstructionRules;
|
|
@@ -29185,7 +29412,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29185
29412
|
}
|
|
29186
29413
|
}, _callee18);
|
|
29187
29414
|
}));
|
|
29188
|
-
function triggerShelfplannerVisibility(
|
|
29415
|
+
function triggerShelfplannerVisibility(_x49, _x50) {
|
|
29189
29416
|
return _triggerShelfplannerVisibility.apply(this, arguments);
|
|
29190
29417
|
}
|
|
29191
29418
|
return triggerShelfplannerVisibility;
|
|
@@ -29262,7 +29489,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29262
29489
|
IsPartlistArticle: article.isPartListArticle,
|
|
29263
29490
|
IsPlannerElement: article.hasCatalogPlannerArticle,
|
|
29264
29491
|
HasPartlistArticle: article.hasPartlistArticle,
|
|
29265
|
-
PartlistArticleInvisibility: !article.partlistArticleVisibleInTree && !article.optionsForPrint,
|
|
29492
|
+
PartlistArticleInvisibility: !article.partlistArticleVisibleInTree && !article.optionsForPrint && !article.partlistArticleStandalone,
|
|
29266
29493
|
SendToSAP: article.sendToSap,
|
|
29267
29494
|
ShelfPlandata: article.shelfPlanner ? DivaUtils__default["default"].encodeBasketJson((_article$shelfPlanner3 = (_article$shelfPlanner4 = article.shelfPlanner) === null || _article$shelfPlanner4 === void 0 ? void 0 : _article$shelfPlanner4.generateShelfPlandata()) !== null && _article$shelfPlanner3 !== void 0 ? _article$shelfPlanner3 : (_article$doorPlanner = article.doorPlanner) === null || _article$doorPlanner === void 0 ? void 0 : _article$doorPlanner.getMovedData(article.basketId)) : undefined,
|
|
29268
29495
|
MetaData: !hasFavorites ? article.MetaData : undefined,
|
|
@@ -29509,7 +29736,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29509
29736
|
}
|
|
29510
29737
|
}, _callee19, this);
|
|
29511
29738
|
}));
|
|
29512
|
-
function correctPartlistArticlesByGlobalRules(
|
|
29739
|
+
function correctPartlistArticlesByGlobalRules(_x51, _x52, _x53, _x54) {
|
|
29513
29740
|
return _correctPartlistArticlesByGlobalRules.apply(this, arguments);
|
|
29514
29741
|
}
|
|
29515
29742
|
return correctPartlistArticlesByGlobalRules;
|
|
@@ -30172,7 +30399,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
|
|
|
30172
30399
|
var myOption = myTabGroup.options[lKey];
|
|
30173
30400
|
if (myOption.idmVariantType) {
|
|
30174
30401
|
var _catalog$getOption;
|
|
30175
|
-
var opgPairs = [[2, 3], [4, 5], [6, 7], [11, 12]
|
|
30402
|
+
var opgPairs = [[2, 3], [4, 5], [6, 7], [11, 12]];
|
|
30176
30403
|
for (var i = 0; i < opgPairs.length; i++) {
|
|
30177
30404
|
var optionStep = this.getOptionWhereIDMVariantIs(iKey, opgPairs[i][1]);
|
|
30178
30405
|
if (myOption.idmVariantType == opgPairs[i][0] && optionStep && !optionStep.mergesToOPG) {
|
|
@@ -30427,6 +30654,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
30427
30654
|
_defineProperty__default["default"](this, "matchingOrigProduct", void 0);
|
|
30428
30655
|
_defineProperty__default["default"](this, "_supplierColors", void 0);
|
|
30429
30656
|
_defineProperty__default["default"](this, "_logDecisions", false);
|
|
30657
|
+
_defineProperty__default["default"](this, "_logTotalStateForVariants", false);
|
|
30430
30658
|
/**Favorits state */
|
|
30431
30659
|
_defineProperty__default["default"](this, "_handlelingCurrentFavorites", false);
|
|
30432
30660
|
_defineProperty__default["default"](this, "_favorites", {
|
|
@@ -31700,7 +31928,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31700
31928
|
break;
|
|
31701
31929
|
}
|
|
31702
31930
|
_context5.next = 3;
|
|
31703
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
31931
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-5dcac7c5.js'); });
|
|
31704
31932
|
case 3:
|
|
31705
31933
|
_yield$import = _context5.sent;
|
|
31706
31934
|
DoorPlanner = _yield$import["default"];
|
|
@@ -31867,6 +32095,14 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31867
32095
|
set: function set(val) {
|
|
31868
32096
|
this._logDecisions = val;
|
|
31869
32097
|
}
|
|
32098
|
+
}, {
|
|
32099
|
+
key: "logTotalStateForVariants",
|
|
32100
|
+
get: function get() {
|
|
32101
|
+
return this._logTotalStateForVariants;
|
|
32102
|
+
},
|
|
32103
|
+
set: function set(val) {
|
|
32104
|
+
this._logTotalStateForVariants = val;
|
|
32105
|
+
}
|
|
31870
32106
|
}, {
|
|
31871
32107
|
key: "showAccessioreOnLastTab",
|
|
31872
32108
|
get: function get() {
|
|
@@ -31884,6 +32120,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31884
32120
|
var clonedSet = new DivaSet(this.CatalogData, this.setId, {}, _objectSpread$c({}, this.setState));
|
|
31885
32121
|
clonedSet.setData = _objectSpread$c({}, this.setData);
|
|
31886
32122
|
clonedSet.configSingle = this.configSingle;
|
|
32123
|
+
clonedSet.logTotalStateForVariants = this.logTotalStateForVariants;
|
|
31887
32124
|
var articles = this.getDivaArticles();
|
|
31888
32125
|
//if boxplanner needs to be working, the planner needs to be cloned too
|
|
31889
32126
|
//this.setState.plannerHandler = this.setState.plannerHandler.clonePlannerHandler(clonedSet, this);
|
|
@@ -33665,7 +33902,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
33665
33902
|
}
|
|
33666
33903
|
configStepKey = configStepKey + '_' + 'acc' + (set.CatalogData.forceConfigAllAccessoires ? article.articleCodex : basketId);
|
|
33667
33904
|
}
|
|
33668
|
-
var plaBasketIds = Object.keys(articles[basketId].getRecursivePartlistArticles(true));
|
|
33905
|
+
var plaBasketIds = Object.keys(articles[basketId].getRecursivePartlistArticles(true, true));
|
|
33669
33906
|
var singleOPVOnly = ops.visibleCount == 1 && !ops.isFreeText && !set.CatalogData.dontHideOption.includes(ops.option.codex) && !((_set$ViewConfig3 = set.ViewConfig) !== null && _set$ViewConfig3 !== void 0 && _set$ViewConfig3.showSingleOPVOnly);
|
|
33670
33907
|
var isAccessoire = !!article.relatedToBasketId ? article.articleCodex : false;
|
|
33671
33908
|
if (!configTree.getTabGroupByCodex(tabGroupCodex)) {
|
|
@@ -34091,7 +34328,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34091
34328
|
notTotallyMatichingOPVs = false,
|
|
34092
34329
|
myOptionState = undefined;
|
|
34093
34330
|
for (var i = 0; i < configStep.targetArticles.length; i++) {
|
|
34094
|
-
var _myOptionState;
|
|
34331
|
+
var _myOptionState, _myOptionState$idmVar;
|
|
34095
34332
|
var article = articles[configStep.targetArticles[i]];
|
|
34096
34333
|
myOptionState = article.getArticleOptionState(configStep.option);
|
|
34097
34334
|
if (!myOptionState) throw new Error('myOptionState ' + configStep.option + ' is undefined');
|
|
@@ -34103,7 +34340,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34103
34340
|
if (myOptionState.isFreeText && myOptionState.freeTextLang) {
|
|
34104
34341
|
freeTextLang = myOptionState.freeTextLang;
|
|
34105
34342
|
}
|
|
34106
|
-
if (myOptionState.headerPosVariationType == 'V' || myOptionState.idmVariantenArt
|
|
34343
|
+
if (myOptionState.headerPosVariationType == 'V' || [35, 1035].includes((_myOptionState$idmVar = myOptionState.idmVariantenArt) !== null && _myOptionState$idmVar !== void 0 ? _myOptionState$idmVar : 0)) {
|
|
34107
34344
|
// 35 is the seatingheight. Articles should not be albe to have different seatheight
|
|
34108
34345
|
//get schnittmenge of all the articles
|
|
34109
34346
|
if (i === 0) {
|
|
@@ -36180,7 +36417,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36180
36417
|
var _article$partListPare, _article$partListPare2;
|
|
36181
36418
|
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 : '');
|
|
36182
36419
|
});
|
|
36183
|
-
if (group) {
|
|
36420
|
+
if (group && !article.partlistArticleStandalone) {
|
|
36184
36421
|
group.push(article.basketId);
|
|
36185
36422
|
} else {
|
|
36186
36423
|
groupedArticles.push([article.basketId]);
|
|
@@ -36297,16 +36534,26 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36297
36534
|
case 2:
|
|
36298
36535
|
opt = set.CatalogData.getOption((_configItems$0$option = configItems[0].optionOcd) !== null && _configItems$0$option !== void 0 ? _configItems$0$option : configItems[0].op);
|
|
36299
36536
|
previewType = set.api.pricePreview;
|
|
36300
|
-
if (!(!opt ||
|
|
36537
|
+
if (!(!opt || opt.mergeIDMToOPG || configItems[0].isOPVG || opt.showOnSeparatTabgroup || set.PlannerMode === 'BoxPlanner' || ['TEXTBOX', 'NUMBERBOX', 'RANGE'].includes(paletteType) || (_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR'))) {
|
|
36301
36538
|
_context26.next = 6;
|
|
36302
36539
|
break;
|
|
36303
36540
|
}
|
|
36304
36541
|
return _context26.abrupt("return", configItems);
|
|
36305
36542
|
case 6:
|
|
36543
|
+
if (!(!previewType || previewType == 'off' || configItems.length == 1 || opt.isDescribingState || configItems.length > 300 && !configItems[0].groupName || (_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length && !set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex.substring(3)) || (_set$CatalogData$hide = set.CatalogData.hidePricePreviewOnlyOnOptions) !== null && _set$CatalogData$hide !== void 0 && _set$CatalogData$hide.length && set.CatalogData.hidePricePreviewOnlyOnOptions.includes(opt.codex.substring(3)))) {
|
|
36544
|
+
_context26.next = 9;
|
|
36545
|
+
break;
|
|
36546
|
+
}
|
|
36547
|
+
if (set.logTotalStateForVariants) {
|
|
36548
|
+
_context26.next = 9;
|
|
36549
|
+
break;
|
|
36550
|
+
}
|
|
36551
|
+
return _context26.abrupt("return", configItems);
|
|
36552
|
+
case 9:
|
|
36306
36553
|
targetArticles = set.configTree.getTargetArticles(configStepKey);
|
|
36307
|
-
_context26.next =
|
|
36554
|
+
_context26.next = 12;
|
|
36308
36555
|
return this.calcVariants(set, configItems, targetArticles, opt.codex);
|
|
36309
|
-
case
|
|
36556
|
+
case 12:
|
|
36310
36557
|
variants = _context26.sent;
|
|
36311
36558
|
if (previewType) {
|
|
36312
36559
|
configItems.map(function (c, index) {
|
|
@@ -36317,7 +36564,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36317
36564
|
});
|
|
36318
36565
|
}
|
|
36319
36566
|
return _context26.abrupt("return", configItems);
|
|
36320
|
-
case
|
|
36567
|
+
case 15:
|
|
36321
36568
|
case "end":
|
|
36322
36569
|
return _context26.stop();
|
|
36323
36570
|
}
|
|
@@ -36338,7 +36585,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36338
36585
|
case 0:
|
|
36339
36586
|
variantInfo = [];
|
|
36340
36587
|
set = realSet.cloneSet();
|
|
36341
|
-
articles = set.getDivaArticles();
|
|
36588
|
+
articles = set.getDivaArticles(true);
|
|
36342
36589
|
origPrice = set.getSetPrice();
|
|
36343
36590
|
articleConfigs = {};
|
|
36344
36591
|
for (i = 0; i < targetArticles.length; i++) {
|
|
@@ -36445,7 +36692,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36445
36692
|
}
|
|
36446
36693
|
hash = DivaUtils.md5(JSON.stringify([].concat(hashVariantValues, _toConsumableArray__default["default"](Object.values(totalConfig)))));
|
|
36447
36694
|
dataHash = set.CatalogData.getVariantsPriceByHash(hash);
|
|
36448
|
-
if (!dataHash) {
|
|
36695
|
+
if (!(dataHash && (!set.logTotalStateForVariants || dataHash.articleSnapshot))) {
|
|
36449
36696
|
_context28.next = 21;
|
|
36450
36697
|
break;
|
|
36451
36698
|
}
|
|
@@ -36480,7 +36727,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36480
36727
|
calcTime: calcTime,
|
|
36481
36728
|
firstPrice: firstPrice,
|
|
36482
36729
|
variantValues: hashVariantValues,
|
|
36483
|
-
hashObj: [].concat(hashVariantValues, _toConsumableArray__default["default"](Object.values(totalConfig)))
|
|
36730
|
+
hashObj: [].concat(hashVariantValues, _toConsumableArray__default["default"](Object.values(totalConfig))),
|
|
36731
|
+
articleSnapshot: set.logTotalStateForVariants ? set.cloneSet().getDivaArticles() : undefined
|
|
36484
36732
|
};
|
|
36485
36733
|
set.CatalogData.setVariantsPriceByHash(hash, priceObj);
|
|
36486
36734
|
return _context28.abrupt("return", priceObj);
|
|
@@ -37058,13 +37306,16 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
37058
37306
|
break;
|
|
37059
37307
|
case 49:
|
|
37060
37308
|
basketData.SetPlannerInfos = setPlanner ? this.getSetPlannerInfos(Object.keys(sets), orderSets) : undefined;
|
|
37309
|
+
basketData.catalogStatus = Object.values(sets).find(function (s) {
|
|
37310
|
+
return !!s.CatalogData.archived;
|
|
37311
|
+
}) ? 'ARCHIVED' : 'LISTED';
|
|
37061
37312
|
if (repairOnly) {
|
|
37062
37313
|
this.repairOrderSets(basketData, orderSets);
|
|
37063
37314
|
} else {
|
|
37064
37315
|
basketData.setOrderSets(orderSets);
|
|
37065
37316
|
}
|
|
37066
37317
|
return _context32.abrupt("return", basketData);
|
|
37067
|
-
case
|
|
37318
|
+
case 53:
|
|
37068
37319
|
case "end":
|
|
37069
37320
|
return _context32.stop();
|
|
37070
37321
|
}
|
|
@@ -37125,6 +37376,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
37125
37376
|
origOrderSet.BBox = actOrderSet.BBox;
|
|
37126
37377
|
origOrderSet.VariantDescription = actOrderSet.VariantDescription;
|
|
37127
37378
|
origOrderSet.OfflineData = actOrderSet.OfflineData;
|
|
37379
|
+
origOrderSet.CatalogName = actOrderSet.CatalogName;
|
|
37380
|
+
origOrderSet.CatalogName_locales = actOrderSet.CatalogName_locales;
|
|
37128
37381
|
if (actOrderSet.ConfigVariants && origOrderSet.ConfigVariants) origOrderSet.ConfigVariants = actOrderSet.ConfigVariants.map(function (variant, index) {
|
|
37129
37382
|
var _origOrderSet$ConfigV;
|
|
37130
37383
|
var configVariant = (_origOrderSet$ConfigV = origOrderSet.ConfigVariants) === null || _origOrderSet$ConfigV === void 0 ? void 0 : _origOrderSet$ConfigV[index];
|
|
@@ -37549,7 +37802,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
37549
37802
|
this.plannerConfig = plannerConfig;
|
|
37550
37803
|
this.assignNewDivaNr = !!this.plannerConfig.assignNewDivaNr;
|
|
37551
37804
|
this._handler = plannerConfig.handler;
|
|
37552
|
-
if (this.plannerConfig.divaNr == undefined && this.plannerConfig.basketData == undefined && this.plannerConfig.catalogCodex
|
|
37805
|
+
if (this.plannerConfig.divaNr == undefined && this.plannerConfig.basketData == undefined && this.plannerConfig.catalogCodex === undefined && this.plannerConfig.productId == undefined && this.plannerConfig.customProductId == undefined && this.plannerConfig.returnTo != 'TEST_CONFIGURATORLOGIC' && !((_this$plannerConfig$s = this.plannerConfig.settings) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.viewConfig) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.plannerType) !== null && _this$plannerConfig$s !== void 0 && _this$plannerConfig$s.includes('PRODUCTS') || (_this$plannerConfig$s2 = this.plannerConfig.settings) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.viewConfig) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.plannerType) !== null && _this$plannerConfig$s2 !== void 0 && _this$plannerConfig$s2.includes('PROMOTED'))) {
|
|
37553
37806
|
LOG$8.error(new DivaUtils.DivaError('Keine Öffnungsparameter', {
|
|
37554
37807
|
code: 'WC_0003'
|
|
37555
37808
|
}));
|
|
@@ -37676,7 +37929,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
37676
37929
|
case 22:
|
|
37677
37930
|
this.baskets[this.divaNr] = this.plannerConfig.basketData;
|
|
37678
37931
|
if (!this.baskets[this.divaNr].CustomerJourneyId) this.baskets[this.divaNr].CustomerJourneyId = DivaUtils.nanoid();
|
|
37679
|
-
if (this.actBasket.OrigCatalogCodex) {
|
|
37932
|
+
if (this.actBasket.OrigCatalogCodex !== undefined) {
|
|
37680
37933
|
this.origConfiguration.originCatalogCodex = this.actBasket.OrigCatalogCodex;
|
|
37681
37934
|
this.origConfiguration.originArticleCodexes = this.actBasket.OrigArticleCodexes;
|
|
37682
37935
|
} else if (this.actBasket.OrigDivaNr) {
|
|
@@ -37687,7 +37940,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
37687
37940
|
this.hasConfiguratorSessionId = true;
|
|
37688
37941
|
returnSuccessfully = true;
|
|
37689
37942
|
case 29:
|
|
37690
|
-
if (!this.plannerConfig.catalogCodex) {
|
|
37943
|
+
if (!(this.plannerConfig.catalogCodex !== undefined)) {
|
|
37691
37944
|
_context.next = 33;
|
|
37692
37945
|
break;
|
|
37693
37946
|
}
|
|
@@ -37982,7 +38235,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
37982
38235
|
LOG$8.debug('divaNr: ' + divaNr + ' was loaded successfully from server!');
|
|
37983
38236
|
if (basketFromAPI.OrigDivaNr) {
|
|
37984
38237
|
this.origConfiguration.originDivaNr = basketFromAPI.OrigDivaNr;
|
|
37985
|
-
} else if (basketFromAPI.OrigCatalogCodex) {
|
|
38238
|
+
} else if (basketFromAPI.OrigCatalogCodex !== undefined) {
|
|
37986
38239
|
this.origConfiguration.originCatalogCodex = basketFromAPI.OrigCatalogCodex;
|
|
37987
38240
|
this.origConfiguration.originArticleCodexes = basketFromAPI.OrigArticleCodexes;
|
|
37988
38241
|
} else {
|
|
@@ -38352,7 +38605,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38352
38605
|
}, {
|
|
38353
38606
|
key: "fillOrigConfigurations",
|
|
38354
38607
|
value: function fillOrigConfigurations() {
|
|
38355
|
-
if (this.origConfiguration.originCatalogCodex) {
|
|
38608
|
+
if (this.origConfiguration.originCatalogCodex !== undefined) {
|
|
38356
38609
|
this.actBasket.OrigCatalogCodex = this.origConfiguration.originCatalogCodex;
|
|
38357
38610
|
this.actBasket.OrigArticleCodexes = this.origConfiguration.originArticleCodexes;
|
|
38358
38611
|
this.actBasket.OrigDivaNr = undefined;
|
|
@@ -38398,7 +38651,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38398
38651
|
_context11.next = 19;
|
|
38399
38652
|
break;
|
|
38400
38653
|
case 17:
|
|
38401
|
-
if (!(response === 'ERROR_NO_BASKET_SAVED' || response === 'ERROR_BASKET_AFTER_SAVE')) {
|
|
38654
|
+
if (!(response === 'ERROR_NO_BASKET_SAVED' || response === 'ERROR_BASKET_AFTER_SAVE' || response === 'ERROR_NO_BASKET_SAVED_ENTITY_EXISTS')) {
|
|
38402
38655
|
_context11.next = 19;
|
|
38403
38656
|
break;
|
|
38404
38657
|
}
|
|
@@ -38555,7 +38808,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38555
38808
|
break;
|
|
38556
38809
|
case 3:
|
|
38557
38810
|
_context12.next = 5;
|
|
38558
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
38811
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-05f3ce5d.js'); });
|
|
38559
38812
|
case 5:
|
|
38560
38813
|
_yield$import = _context12.sent;
|
|
38561
38814
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -38563,7 +38816,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38563
38816
|
return _context12.abrupt("break", 27);
|
|
38564
38817
|
case 9:
|
|
38565
38818
|
_context12.next = 11;
|
|
38566
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
38819
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-7223bb81.js'); });
|
|
38567
38820
|
case 11:
|
|
38568
38821
|
_yield$import2 = _context12.sent;
|
|
38569
38822
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -38571,7 +38824,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38571
38824
|
return _context12.abrupt("break", 27);
|
|
38572
38825
|
case 15:
|
|
38573
38826
|
_context12.next = 17;
|
|
38574
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
38827
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-1b0b8848.js'); });
|
|
38575
38828
|
case 17:
|
|
38576
38829
|
_yield$import3 = _context12.sent;
|
|
38577
38830
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -38579,7 +38832,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38579
38832
|
return _context12.abrupt("break", 27);
|
|
38580
38833
|
case 21:
|
|
38581
38834
|
_context12.next = 23;
|
|
38582
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
38835
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-eb600be9.js'); });
|
|
38583
38836
|
case 23:
|
|
38584
38837
|
_yield$import4 = _context12.sent;
|
|
38585
38838
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -40007,7 +40260,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
40007
40260
|
while (1) switch (_context3.prev = _context3.next) {
|
|
40008
40261
|
case 0:
|
|
40009
40262
|
_context3.next = 2;
|
|
40010
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
40263
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-a5a11447.js'); });
|
|
40011
40264
|
case 2:
|
|
40012
40265
|
_yield$import = _context3.sent;
|
|
40013
40266
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -41564,7 +41817,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41564
41817
|
break;
|
|
41565
41818
|
case 8:
|
|
41566
41819
|
_context4.next = 10;
|
|
41567
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
41820
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-8a3c6fc0.js'); });
|
|
41568
41821
|
case 10:
|
|
41569
41822
|
_yield$import = _context4.sent;
|
|
41570
41823
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -41575,7 +41828,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41575
41828
|
return _context4.abrupt("break", 21);
|
|
41576
41829
|
case 15:
|
|
41577
41830
|
_context4.next = 17;
|
|
41578
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
41831
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-fc704b00.js'); });
|
|
41579
41832
|
case 17:
|
|
41580
41833
|
_yield$import2 = _context4.sent;
|
|
41581
41834
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -43622,9 +43875,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
43622
43875
|
}
|
|
43623
43876
|
}, {
|
|
43624
43877
|
key: "getDivaArticles",
|
|
43625
|
-
value: function getDivaArticles() {
|
|
43878
|
+
value: function getDivaArticles(visiblePartlistArticlesAlso, allPartlistArticlesAlso) {
|
|
43626
43879
|
var _this$actSet3;
|
|
43627
|
-
return (_this$actSet3 = this.actSet()) === null || _this$actSet3 === void 0 ? void 0 : _this$actSet3.getDivaArticles();
|
|
43880
|
+
return (_this$actSet3 = this.actSet()) === null || _this$actSet3 === void 0 ? void 0 : _this$actSet3.getDivaArticles(visiblePartlistArticlesAlso, allPartlistArticlesAlso);
|
|
43628
43881
|
}
|
|
43629
43882
|
|
|
43630
43883
|
//for debugging
|
|
@@ -44555,11 +44808,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44555
44808
|
this.divaBasketHandler.fillOrigConfigurations();
|
|
44556
44809
|
actBasket.Updated = Date.now();
|
|
44557
44810
|
if (!returnTo) {
|
|
44558
|
-
_context27.next =
|
|
44811
|
+
_context27.next = 52;
|
|
44559
44812
|
break;
|
|
44560
44813
|
}
|
|
44561
44814
|
_context27.t3 = returnTo;
|
|
44562
|
-
_context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 30 : _context27.t3 === 'OPEN_PDF' ?
|
|
44815
|
+
_context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 30 : _context27.t3 === 'OPEN_PDF' ? 33 : _context27.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context27.t3 === 'SAVE_BASKET' ? 33 : _context27.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context27.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 52;
|
|
44563
44816
|
break;
|
|
44564
44817
|
case 27:
|
|
44565
44818
|
(_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.toggleLoading('buildScene', false, false);
|
|
@@ -44573,8 +44826,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44573
44826
|
basketData: actBasket
|
|
44574
44827
|
}
|
|
44575
44828
|
});
|
|
44576
|
-
return _context27.abrupt("break",
|
|
44829
|
+
return _context27.abrupt("break", 52);
|
|
44577
44830
|
case 30:
|
|
44831
|
+
if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
|
|
44832
|
+
actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
|
|
44833
|
+
}
|
|
44578
44834
|
(_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.openComponent({
|
|
44579
44835
|
type: 'SELLER',
|
|
44580
44836
|
parameters: {
|
|
@@ -44585,51 +44841,51 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44585
44841
|
basketData: actBasket
|
|
44586
44842
|
}
|
|
44587
44843
|
});
|
|
44588
|
-
return _context27.abrupt("break",
|
|
44589
|
-
case
|
|
44844
|
+
return _context27.abrupt("break", 52);
|
|
44845
|
+
case 33:
|
|
44590
44846
|
if (!(event == 'onSaveProduct')) {
|
|
44591
|
-
_context27.next =
|
|
44847
|
+
_context27.next = 43;
|
|
44592
44848
|
break;
|
|
44593
44849
|
}
|
|
44594
44850
|
//copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
|
|
44595
44851
|
actBasket = new basketModel.BasketData(JSON.parse(JSON.stringify(actBasket)));
|
|
44596
|
-
_context27.next =
|
|
44852
|
+
_context27.next = 37;
|
|
44597
44853
|
return DivaUtils__default["default"].updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
|
|
44598
|
-
case
|
|
44599
|
-
_context27.next =
|
|
44854
|
+
case 37:
|
|
44855
|
+
_context27.next = 39;
|
|
44600
44856
|
return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
|
|
44601
|
-
case
|
|
44857
|
+
case 39:
|
|
44602
44858
|
newDivaNr = _context27.sent;
|
|
44603
44859
|
actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
|
|
44604
|
-
_context27.next =
|
|
44860
|
+
_context27.next = 51;
|
|
44605
44861
|
break;
|
|
44606
|
-
case
|
|
44862
|
+
case 43:
|
|
44607
44863
|
if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
|
|
44608
44864
|
this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = undefined;
|
|
44609
44865
|
actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
|
|
44610
44866
|
}
|
|
44611
44867
|
this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
|
|
44612
44868
|
actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
|
|
44613
|
-
_context27.next =
|
|
44869
|
+
_context27.next = 48;
|
|
44614
44870
|
return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo);
|
|
44615
|
-
case
|
|
44871
|
+
case 48:
|
|
44616
44872
|
_result2 = _context27.sent;
|
|
44617
44873
|
if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
|
|
44618
|
-
_context27.next =
|
|
44874
|
+
_context27.next = 51;
|
|
44619
44875
|
break;
|
|
44620
44876
|
}
|
|
44621
44877
|
return _context27.abrupt("return", 'canceled');
|
|
44622
|
-
case 50:
|
|
44623
|
-
return _context27.abrupt("break", 51);
|
|
44624
44878
|
case 51:
|
|
44879
|
+
return _context27.abrupt("break", 52);
|
|
44880
|
+
case 52:
|
|
44625
44881
|
if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
|
|
44626
44882
|
actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
|
|
44627
|
-
_context27.next =
|
|
44883
|
+
_context27.next = 56;
|
|
44628
44884
|
return this.addToBasket(actBasket, event);
|
|
44629
|
-
case
|
|
44885
|
+
case 56:
|
|
44630
44886
|
product = _context27.sent;
|
|
44631
44887
|
return _context27.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
|
|
44632
|
-
case
|
|
44888
|
+
case 58:
|
|
44633
44889
|
case "end":
|
|
44634
44890
|
return _context27.stop();
|
|
44635
44891
|
}
|
|
@@ -44679,7 +44935,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44679
44935
|
//if planner is hidden by config but nothing is planned initially
|
|
44680
44936
|
if (plannerType === 'NONE') {
|
|
44681
44937
|
var _this$plannerConfig$a8, _this$actSet11;
|
|
44682
|
-
if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a8 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a8 !== void 0 && _this$plannerConfig$a8.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet11 = this.actSet()) !== null && _this$actSet11 !== void 0 && (_this$actSet11 = _this$actSet11.CatalogData.startPlannerArticle) !== null && _this$actSet11 !== void 0 && _this$actSet11.length)) {
|
|
44938
|
+
if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex !== undefined && !((_this$plannerConfig$a8 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a8 !== void 0 && _this$plannerConfig$a8.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet11 = this.actSet()) !== null && _this$actSet11 !== void 0 && (_this$actSet11 = _this$actSet11.CatalogData.startPlannerArticle) !== null && _this$actSet11 !== void 0 && _this$actSet11.length)) {
|
|
44683
44939
|
plannerType = 'PLANNER';
|
|
44684
44940
|
}
|
|
44685
44941
|
}
|
|
@@ -44954,39 +45210,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44954
45210
|
case 0:
|
|
44955
45211
|
event = _args29.length > 1 && _args29[1] !== undefined ? _args29[1] : 'onAddToBasket';
|
|
44956
45212
|
_context29.t0 = event;
|
|
44957
|
-
_context29.next = _context29.t0 === 'onWebPlanerPrint' ?
|
|
45213
|
+
_context29.next = _context29.t0 === 'onWebPlanerPrint' ? 4 : _context29.t0 === 'onWebPlanerSave' ? 6 : _context29.t0 === 'onWebPlanerShare' ? 8 : _context29.t0 === 'onRequestConsulation' ? 10 : _context29.t0 === 'onSave' ? 12 : _context29.t0 === 'onSendEmail' ? 14 : _context29.t0 === 'onSaveProduct' ? 19 : _context29.t0 === 'dontSaveBasket' ? 26 : _context29.t0 === 'onAddToBasket' ? 26 : _context29.t0 === 'onSendContactForm' ? 28 : 31;
|
|
44958
45214
|
break;
|
|
44959
|
-
case
|
|
45215
|
+
case 4:
|
|
44960
45216
|
(_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
|
|
44961
45217
|
type: 'onWebPlanerPrint',
|
|
44962
45218
|
data: actBasket.getAsJson()
|
|
44963
45219
|
});
|
|
44964
|
-
return _context29.abrupt("break",
|
|
44965
|
-
case
|
|
45220
|
+
return _context29.abrupt("break", 33);
|
|
45221
|
+
case 6:
|
|
44966
45222
|
(_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
|
|
44967
45223
|
type: 'onWebPlanerSave',
|
|
44968
45224
|
data: actBasket.getAsJson()
|
|
44969
45225
|
});
|
|
44970
|
-
return _context29.abrupt("break",
|
|
44971
|
-
case
|
|
45226
|
+
return _context29.abrupt("break", 33);
|
|
45227
|
+
case 8:
|
|
44972
45228
|
(_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
|
|
44973
45229
|
type: 'onWebPlanerShare',
|
|
44974
45230
|
data: actBasket.getAsJson()
|
|
44975
45231
|
});
|
|
44976
|
-
return _context29.abrupt("break",
|
|
44977
|
-
case
|
|
45232
|
+
return _context29.abrupt("break", 33);
|
|
45233
|
+
case 10:
|
|
44978
45234
|
(_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
|
|
44979
45235
|
type: 'onRequestConsulation',
|
|
44980
45236
|
data: actBasket.getAsJson()
|
|
44981
45237
|
});
|
|
44982
|
-
return _context29.abrupt("break",
|
|
44983
|
-
case
|
|
45238
|
+
return _context29.abrupt("break", 33);
|
|
45239
|
+
case 12:
|
|
44984
45240
|
(_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
|
|
44985
45241
|
type: 'onSave',
|
|
44986
45242
|
data: actBasket.getAsJson()
|
|
44987
45243
|
});
|
|
44988
|
-
return _context29.abrupt("break",
|
|
44989
|
-
case
|
|
45244
|
+
return _context29.abrupt("break", 33);
|
|
45245
|
+
case 14:
|
|
44990
45246
|
emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
|
|
44991
45247
|
this.divaBasketHandler.emailConfig = undefined;
|
|
44992
45248
|
if (emailConfig) {
|
|
@@ -45020,45 +45276,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45020
45276
|
type: 'onAddToBasket',
|
|
45021
45277
|
data: actBasket.getAsJson()
|
|
45022
45278
|
});
|
|
45023
|
-
return _context29.abrupt("break",
|
|
45024
|
-
case
|
|
45279
|
+
return _context29.abrupt("break", 33);
|
|
45280
|
+
case 19:
|
|
45025
45281
|
this.actSet().CatalogData;
|
|
45026
|
-
_context29.next =
|
|
45282
|
+
_context29.next = 22;
|
|
45027
45283
|
return this.api.saveAsProduct(this.sets, actBasket);
|
|
45028
|
-
case
|
|
45284
|
+
case 22:
|
|
45029
45285
|
products = _context29.sent;
|
|
45030
45286
|
(_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
|
|
45031
45287
|
type: 'onAddToBasket',
|
|
45032
45288
|
data: actBasket.getAsJson()
|
|
45033
45289
|
});
|
|
45034
45290
|
if (!products) {
|
|
45035
|
-
_context29.next =
|
|
45291
|
+
_context29.next = 26;
|
|
45036
45292
|
break;
|
|
45037
45293
|
}
|
|
45038
45294
|
return _context29.abrupt("return", products[0]);
|
|
45039
|
-
case
|
|
45040
|
-
case 28:
|
|
45295
|
+
case 26:
|
|
45041
45296
|
(_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
|
|
45042
45297
|
type: 'onAddToBasket',
|
|
45043
45298
|
data: actBasket.getAsJson()
|
|
45044
45299
|
});
|
|
45045
|
-
return _context29.abrupt("break",
|
|
45046
|
-
case
|
|
45300
|
+
return _context29.abrupt("break", 33);
|
|
45301
|
+
case 28:
|
|
45047
45302
|
(_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
|
|
45048
45303
|
type: 'onAddToBasket',
|
|
45049
45304
|
data: actBasket.getAsJson()
|
|
45050
45305
|
});
|
|
45051
45306
|
this.openContactForm(this.divaBasketHandler);
|
|
45052
|
-
return _context29.abrupt("break",
|
|
45053
|
-
case
|
|
45307
|
+
return _context29.abrupt("break", 33);
|
|
45308
|
+
case 31:
|
|
45054
45309
|
(_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.onEvent({
|
|
45055
45310
|
type: event,
|
|
45056
45311
|
data: actBasket.getAsJson()
|
|
45057
45312
|
});
|
|
45058
|
-
return _context29.abrupt("break",
|
|
45059
|
-
case
|
|
45313
|
+
return _context29.abrupt("break", 33);
|
|
45314
|
+
case 33:
|
|
45060
45315
|
return _context29.abrupt("return");
|
|
45061
|
-
case
|
|
45316
|
+
case 34:
|
|
45062
45317
|
case "end":
|
|
45063
45318
|
return _context29.stop();
|
|
45064
45319
|
}
|
|
@@ -45116,7 +45371,35 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45116
45371
|
(_this$api = this.api) === null || _this$api === void 0 || _this$api.clearCache();
|
|
45117
45372
|
this.divaCatalogs = {};
|
|
45118
45373
|
}
|
|
45119
|
-
|
|
45374
|
+
}, {
|
|
45375
|
+
key: "getCurrentBasket",
|
|
45376
|
+
value: function () {
|
|
45377
|
+
var _getCurrentBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(event, force, returnTo, dontGoToSummary) {
|
|
45378
|
+
var _this$actSet33, _this$divaBasketHandl5, _this$onClickAddToBas3;
|
|
45379
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context30) {
|
|
45380
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
45381
|
+
case 0:
|
|
45382
|
+
if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.setHash) === ((_this$divaBasketHandl5 = this.divaBasketHandler.actBasket) === null || _this$divaBasketHandl5 === void 0 || (_this$divaBasketHandl5 = _this$divaBasketHandl5.OrderSets) === null || _this$divaBasketHandl5 === void 0 ? void 0 : _this$divaBasketHandl5[0].SetHash))) {
|
|
45383
|
+
_context30.next = 2;
|
|
45384
|
+
break;
|
|
45385
|
+
}
|
|
45386
|
+
return _context30.abrupt("return", true);
|
|
45387
|
+
case 2:
|
|
45388
|
+
_context30.next = 4;
|
|
45389
|
+
return (_this$onClickAddToBas3 = this.onClickAddToBasket) === null || _this$onClickAddToBas3 === void 0 ? void 0 : _this$onClickAddToBas3.call(this, event, force, returnTo, dontGoToSummary);
|
|
45390
|
+
case 4:
|
|
45391
|
+
return _context30.abrupt("return", !!_context30.sent);
|
|
45392
|
+
case 5:
|
|
45393
|
+
case "end":
|
|
45394
|
+
return _context30.stop();
|
|
45395
|
+
}
|
|
45396
|
+
}, _callee30, this);
|
|
45397
|
+
}));
|
|
45398
|
+
function getCurrentBasket(_x80, _x81, _x82, _x83) {
|
|
45399
|
+
return _getCurrentBasket.apply(this, arguments);
|
|
45400
|
+
}
|
|
45401
|
+
return getCurrentBasket;
|
|
45402
|
+
}()
|
|
45120
45403
|
/*********************************END Functions in Logik called From View END *************************************/
|
|
45121
45404
|
/*********************************** Register Funictions from Logik to View ***************************************/
|
|
45122
45405
|
}, {
|
|
@@ -45339,9 +45622,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45339
45622
|
key: "initApiForLogicOnly",
|
|
45340
45623
|
value: //just for testing purposes
|
|
45341
45624
|
function () {
|
|
45342
|
-
var _initApiForLogicOnly = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
45343
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
45344
|
-
while (1) switch (
|
|
45625
|
+
var _initApiForLogicOnly = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
|
|
45626
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context31) {
|
|
45627
|
+
while (1) switch (_context31.prev = _context31.next) {
|
|
45345
45628
|
case 0:
|
|
45346
45629
|
//empty services
|
|
45347
45630
|
this.api = new DivaApiHandler(_objectSpread$5(_objectSpread$5({}, this.plannerConfig), {}, {
|
|
@@ -45354,17 +45637,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45354
45637
|
jwt: jwt,
|
|
45355
45638
|
apiKey: apiKey
|
|
45356
45639
|
}), handler);
|
|
45357
|
-
|
|
45640
|
+
_context31.next = 3;
|
|
45358
45641
|
return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
|
|
45359
45642
|
case 3:
|
|
45360
45643
|
this.plannerHandler = new DivaPlannerHandler(true);
|
|
45361
45644
|
case 4:
|
|
45362
45645
|
case "end":
|
|
45363
|
-
return
|
|
45646
|
+
return _context31.stop();
|
|
45364
45647
|
}
|
|
45365
|
-
},
|
|
45648
|
+
}, _callee31, this);
|
|
45366
45649
|
}));
|
|
45367
|
-
function initApiForLogicOnly(
|
|
45650
|
+
function initApiForLogicOnly(_x84, _x85, _x86, _x87, _x88, _x89, _x90) {
|
|
45368
45651
|
return _initApiForLogicOnly.apply(this, arguments);
|
|
45369
45652
|
}
|
|
45370
45653
|
return initApiForLogicOnly;
|
|
@@ -45377,16 +45660,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45377
45660
|
}, {
|
|
45378
45661
|
key: "loadBasket",
|
|
45379
45662
|
value: function () {
|
|
45380
|
-
var _loadBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
45381
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
45382
|
-
while (1) switch (
|
|
45663
|
+
var _loadBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee32() {
|
|
45664
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee32$(_context32) {
|
|
45665
|
+
while (1) switch (_context32.prev = _context32.next) {
|
|
45383
45666
|
case 0:
|
|
45384
|
-
return
|
|
45667
|
+
return _context32.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
|
|
45385
45668
|
case 1:
|
|
45386
45669
|
case "end":
|
|
45387
|
-
return
|
|
45670
|
+
return _context32.stop();
|
|
45388
45671
|
}
|
|
45389
|
-
},
|
|
45672
|
+
}, _callee32, this);
|
|
45390
45673
|
}));
|
|
45391
45674
|
function loadBasket() {
|
|
45392
45675
|
return _loadBasket.apply(this, arguments);
|
|
@@ -45401,39 +45684,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45401
45684
|
}, {
|
|
45402
45685
|
key: "initBasket",
|
|
45403
45686
|
value: function () {
|
|
45404
|
-
var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
45687
|
+
var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee33(init3D, ignoreFavorites) {
|
|
45405
45688
|
var initSetState, set, basket;
|
|
45406
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
45407
|
-
while (1) switch (
|
|
45689
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee33$(_context33) {
|
|
45690
|
+
while (1) switch (_context33.prev = _context33.next) {
|
|
45408
45691
|
case 0:
|
|
45409
45692
|
this.divaNr = this.divaBasketHandler.actDivaNr;
|
|
45410
45693
|
initSetState = this.getInitStateForSet(!init3D);
|
|
45411
45694
|
this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
|
|
45412
|
-
|
|
45695
|
+
_context33.next = 5;
|
|
45413
45696
|
return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
|
|
45414
45697
|
case 5:
|
|
45415
45698
|
//TODO check if when basket gets repaired the product match gets called
|
|
45416
45699
|
set = this.actSet();
|
|
45417
45700
|
setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
|
|
45418
45701
|
if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
|
|
45419
|
-
|
|
45702
|
+
_context33.next = 10;
|
|
45420
45703
|
break;
|
|
45421
45704
|
}
|
|
45422
|
-
|
|
45705
|
+
_context33.next = 10;
|
|
45423
45706
|
return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
|
|
45424
45707
|
case 10:
|
|
45425
|
-
|
|
45708
|
+
_context33.next = 12;
|
|
45426
45709
|
return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
|
|
45427
45710
|
case 12:
|
|
45428
|
-
basket =
|
|
45429
|
-
return
|
|
45711
|
+
basket = _context33.sent;
|
|
45712
|
+
return _context33.abrupt("return", basket);
|
|
45430
45713
|
case 14:
|
|
45431
45714
|
case "end":
|
|
45432
|
-
return
|
|
45715
|
+
return _context33.stop();
|
|
45433
45716
|
}
|
|
45434
|
-
},
|
|
45717
|
+
}, _callee33, this);
|
|
45435
45718
|
}));
|
|
45436
|
-
function initBasket(
|
|
45719
|
+
function initBasket(_x91, _x92) {
|
|
45437
45720
|
return _initBasket.apply(this, arguments);
|
|
45438
45721
|
}
|
|
45439
45722
|
return initBasket;
|
|
@@ -45447,21 +45730,21 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45447
45730
|
}, {
|
|
45448
45731
|
key: "getValidVariantsLength",
|
|
45449
45732
|
value: function () {
|
|
45450
|
-
var _getValidVariantsLength = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
45733
|
+
var _getValidVariantsLength = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee34() {
|
|
45451
45734
|
var set;
|
|
45452
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
45453
|
-
while (1) switch (
|
|
45735
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee34$(_context34) {
|
|
45736
|
+
while (1) switch (_context34.prev = _context34.next) {
|
|
45454
45737
|
case 0:
|
|
45455
45738
|
set = this.actSet();
|
|
45456
|
-
|
|
45739
|
+
_context34.next = 3;
|
|
45457
45740
|
return favoritesHandlerInstance.getValidVariants(set, true);
|
|
45458
45741
|
case 3:
|
|
45459
|
-
return
|
|
45742
|
+
return _context34.abrupt("return", _context34.sent.length);
|
|
45460
45743
|
case 4:
|
|
45461
45744
|
case "end":
|
|
45462
|
-
return
|
|
45745
|
+
return _context34.stop();
|
|
45463
45746
|
}
|
|
45464
|
-
},
|
|
45747
|
+
}, _callee34, this);
|
|
45465
45748
|
}));
|
|
45466
45749
|
function getValidVariantsLength() {
|
|
45467
45750
|
return _getValidVariantsLength.apply(this, arguments);
|
|
@@ -45471,46 +45754,46 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45471
45754
|
}, {
|
|
45472
45755
|
key: "handleFavorites",
|
|
45473
45756
|
value: function () {
|
|
45474
|
-
var _handleFavorites = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
45757
|
+
var _handleFavorites = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee35(mode) {
|
|
45475
45758
|
var _this5 = this;
|
|
45476
45759
|
var set, i;
|
|
45477
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
45478
|
-
while (1) switch (
|
|
45760
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee35$(_context35) {
|
|
45761
|
+
while (1) switch (_context35.prev = _context35.next) {
|
|
45479
45762
|
case 0:
|
|
45480
45763
|
set = this.actSet();
|
|
45481
45764
|
i = 0;
|
|
45482
45765
|
case 2:
|
|
45483
45766
|
if (!favoritesHandlerInstance.IsCalcForSummary) {
|
|
45484
|
-
|
|
45767
|
+
_context35.next = 11;
|
|
45485
45768
|
break;
|
|
45486
45769
|
}
|
|
45487
|
-
|
|
45770
|
+
_context35.next = 5;
|
|
45488
45771
|
return DivaUtils__default["default"].Sleep(200);
|
|
45489
45772
|
case 5:
|
|
45490
45773
|
i++;
|
|
45491
45774
|
if (!(i > 1000)) {
|
|
45492
|
-
|
|
45775
|
+
_context35.next = 9;
|
|
45493
45776
|
break;
|
|
45494
45777
|
}
|
|
45495
45778
|
LOG$1.error(new DivaUtils.DivaError('error on generating Variants of Summary'));
|
|
45496
|
-
return
|
|
45779
|
+
return _context35.abrupt("break", 11);
|
|
45497
45780
|
case 9:
|
|
45498
|
-
|
|
45781
|
+
_context35.next = 2;
|
|
45499
45782
|
break;
|
|
45500
45783
|
case 11:
|
|
45501
|
-
|
|
45784
|
+
_context35.next = 13;
|
|
45502
45785
|
return favoritesHandlerInstance.handleFavorites(set, mode, this.divaBasketHandler.actBasket, this.saveToBasketWrapper.bind(this), this.doConfigure.bind(this), function () {
|
|
45503
45786
|
return _this5.update2DGrid(set);
|
|
45504
45787
|
}, this.actions);
|
|
45505
45788
|
case 13:
|
|
45506
|
-
return
|
|
45789
|
+
return _context35.abrupt("return", _context35.sent);
|
|
45507
45790
|
case 14:
|
|
45508
45791
|
case "end":
|
|
45509
|
-
return
|
|
45792
|
+
return _context35.stop();
|
|
45510
45793
|
}
|
|
45511
|
-
},
|
|
45794
|
+
}, _callee35, this);
|
|
45512
45795
|
}));
|
|
45513
|
-
function handleFavorites(
|
|
45796
|
+
function handleFavorites(_x93) {
|
|
45514
45797
|
return _handleFavorites.apply(this, arguments);
|
|
45515
45798
|
}
|
|
45516
45799
|
return handleFavorites;
|
|
@@ -45523,48 +45806,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45523
45806
|
}, {
|
|
45524
45807
|
key: "initSapOrderLinesFromBasket",
|
|
45525
45808
|
value: function () {
|
|
45526
|
-
var _initSapOrderLinesFromBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
45809
|
+
var _initSapOrderLinesFromBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee36(divaNr, init3D, onlyLoadOldBakset) {
|
|
45527
45810
|
var result, oldBasket, basket;
|
|
45528
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
45529
|
-
while (1) switch (
|
|
45811
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee36$(_context36) {
|
|
45812
|
+
while (1) switch (_context36.prev = _context36.next) {
|
|
45530
45813
|
case 0:
|
|
45531
45814
|
if (divaNr) this.divaBasketHandler.updateDivaNrInBasket(divaNr);
|
|
45532
|
-
|
|
45815
|
+
_context36.next = 3;
|
|
45533
45816
|
return this.loadBasket();
|
|
45534
45817
|
case 3:
|
|
45535
|
-
result =
|
|
45818
|
+
result = _context36.sent;
|
|
45536
45819
|
if (!onlyLoadOldBakset) {
|
|
45537
|
-
|
|
45820
|
+
_context36.next = 6;
|
|
45538
45821
|
break;
|
|
45539
45822
|
}
|
|
45540
|
-
return
|
|
45823
|
+
return _context36.abrupt("return", {
|
|
45541
45824
|
oldBasket: new basketModel.BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket))),
|
|
45542
45825
|
cache: {}
|
|
45543
45826
|
});
|
|
45544
45827
|
case 6:
|
|
45545
45828
|
if (!(result === false)) {
|
|
45546
|
-
|
|
45829
|
+
_context36.next = 8;
|
|
45547
45830
|
break;
|
|
45548
45831
|
}
|
|
45549
45832
|
throw new Error('Could not load basket! ' + divaNr);
|
|
45550
45833
|
case 8:
|
|
45551
45834
|
oldBasket = new basketModel.BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket)));
|
|
45552
|
-
|
|
45835
|
+
_context36.next = 11;
|
|
45553
45836
|
return this.initBasket(init3D);
|
|
45554
45837
|
case 11:
|
|
45555
|
-
basket =
|
|
45556
|
-
return
|
|
45838
|
+
basket = _context36.sent;
|
|
45839
|
+
return _context36.abrupt("return", {
|
|
45557
45840
|
basket: basket,
|
|
45558
45841
|
oldBasket: oldBasket,
|
|
45559
45842
|
cache: this.api.getJsonDataCache()
|
|
45560
45843
|
});
|
|
45561
45844
|
case 13:
|
|
45562
45845
|
case "end":
|
|
45563
|
-
return
|
|
45846
|
+
return _context36.stop();
|
|
45564
45847
|
}
|
|
45565
|
-
},
|
|
45848
|
+
}, _callee36, this);
|
|
45566
45849
|
}));
|
|
45567
|
-
function initSapOrderLinesFromBasket(
|
|
45850
|
+
function initSapOrderLinesFromBasket(_x94, _x95, _x96) {
|
|
45568
45851
|
return _initSapOrderLinesFromBasket.apply(this, arguments);
|
|
45569
45852
|
}
|
|
45570
45853
|
return initSapOrderLinesFromBasket;
|