@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
|
@@ -441,9 +441,30 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
441
441
|
useMask: data.useMask,
|
|
442
442
|
loadProductBasketParams: data.loadProductBasketParams,
|
|
443
443
|
addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey,
|
|
444
|
-
dontLoadDimensions: data.dontLoadDimensions
|
|
444
|
+
dontLoadDimensions: data.dontLoadDimensions,
|
|
445
|
+
useIDMService: data.useIDMService,
|
|
446
|
+
useEnricherService: data.useEnricherService,
|
|
447
|
+
packageId: plannerConfig.packageId
|
|
445
448
|
};
|
|
446
449
|
}
|
|
450
|
+
}, {
|
|
451
|
+
key: "useIDMService",
|
|
452
|
+
get: function get() {
|
|
453
|
+
var _this$divaWebConfigDa4;
|
|
454
|
+
return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.useIDMService;
|
|
455
|
+
}
|
|
456
|
+
}, {
|
|
457
|
+
key: "useEnricherService",
|
|
458
|
+
get: function get() {
|
|
459
|
+
var _this$divaWebConfigDa5;
|
|
460
|
+
return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.useEnricherService;
|
|
461
|
+
}
|
|
462
|
+
}, {
|
|
463
|
+
key: "packageId",
|
|
464
|
+
get: function get() {
|
|
465
|
+
var _this$divaWebConfigDa6;
|
|
466
|
+
return (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.packageId;
|
|
467
|
+
}
|
|
447
468
|
}, {
|
|
448
469
|
key: "getReportServiceUrl",
|
|
449
470
|
value: function getReportServiceUrl() {
|
|
@@ -477,8 +498,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
477
498
|
}, {
|
|
478
499
|
key: "getLoadProductBasketParams",
|
|
479
500
|
value: function getLoadProductBasketParams() {
|
|
480
|
-
var _this$
|
|
481
|
-
return (_this$
|
|
501
|
+
var _this$divaWebConfigDa7;
|
|
502
|
+
return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.loadProductBasketParams;
|
|
482
503
|
}
|
|
483
504
|
}, {
|
|
484
505
|
key: "get3DServerUrl",
|
|
@@ -489,32 +510,33 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
489
510
|
}, {
|
|
490
511
|
key: "doCheckForProductsPrice",
|
|
491
512
|
value: function doCheckForProductsPrice() {
|
|
492
|
-
var _this$
|
|
493
|
-
return (_this$
|
|
513
|
+
var _this$divaWebConfigDa8;
|
|
514
|
+
return (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.checkForProductsPrice;
|
|
494
515
|
}
|
|
495
516
|
}, {
|
|
496
517
|
key: "doCheckForProductsMatch",
|
|
497
518
|
value: function doCheckForProductsMatch() {
|
|
498
|
-
var _this$
|
|
499
|
-
return (_this$
|
|
519
|
+
var _this$divaWebConfigDa9;
|
|
520
|
+
return (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.checkForProductsMatch;
|
|
500
521
|
}
|
|
501
522
|
}, {
|
|
502
523
|
key: "getReportConfigIdentifier",
|
|
503
524
|
value: function getReportConfigIdentifier() {
|
|
504
|
-
var _this$
|
|
505
|
-
return (_this$
|
|
525
|
+
var _this$divaWebConfigDa10;
|
|
526
|
+
return (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.reportConfigIdentifier;
|
|
506
527
|
}
|
|
507
528
|
}, {
|
|
508
529
|
key: "getPrintOptions",
|
|
509
530
|
value: function getPrintOptions() {
|
|
510
|
-
var _this$
|
|
511
|
-
var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$
|
|
531
|
+
var _this$divaWebConfigDa11;
|
|
532
|
+
var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.reportConfig;
|
|
512
533
|
return {
|
|
513
534
|
Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
|
|
514
535
|
PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
|
|
515
536
|
Remark: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithRemark),
|
|
516
537
|
Prices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPrices),
|
|
517
538
|
AllPrices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithAllPrices),
|
|
539
|
+
arQrCode: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithArQrCode),
|
|
518
540
|
OpvCodices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithOpvCodices),
|
|
519
541
|
ModelName: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithModelName),
|
|
520
542
|
CollectionLogo: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithCollectionLogo),
|
|
@@ -529,8 +551,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
529
551
|
}, {
|
|
530
552
|
key: "get3DRenderGroup",
|
|
531
553
|
value: function get3DRenderGroup() {
|
|
532
|
-
var _this$
|
|
533
|
-
return (_this$
|
|
554
|
+
var _this$divaWebConfigDa12, _this$divaWebConfigDa13;
|
|
555
|
+
return (_this$divaWebConfigDa12 = (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.diva3dRenderGroup) !== null && _this$divaWebConfigDa12 !== void 0 ? _this$divaWebConfigDa12 : '';
|
|
534
556
|
}
|
|
535
557
|
}, {
|
|
536
558
|
key: "getServerId",
|
|
@@ -572,32 +594,32 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
572
594
|
}, {
|
|
573
595
|
key: "getDiva3dStaticBGImage",
|
|
574
596
|
value: function getDiva3dStaticBGImage() {
|
|
575
|
-
var _this$
|
|
576
|
-
return (_this$
|
|
597
|
+
var _this$divaWebConfigDa14;
|
|
598
|
+
return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.diva3dStaticBGImage;
|
|
577
599
|
}
|
|
578
600
|
}, {
|
|
579
601
|
key: "getDiva3dStaticBGImage_DefaultRoomList",
|
|
580
602
|
value: function getDiva3dStaticBGImage_DefaultRoomList() {
|
|
581
|
-
var _this$
|
|
582
|
-
return ((_this$
|
|
603
|
+
var _this$divaWebConfigDa15, _this$divaWebConfigDa16;
|
|
604
|
+
return ((_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa16 = this.divaWebConfigData) === null || _this$divaWebConfigDa16 === void 0 ? void 0 : _this$divaWebConfigDa16.diva3dStaticBGImage_DefaultRoomList;
|
|
583
605
|
}
|
|
584
606
|
}, {
|
|
585
607
|
key: "getDiva3DAllowDefaultCatRoomList",
|
|
586
608
|
value: function getDiva3DAllowDefaultCatRoomList() {
|
|
587
|
-
var _this$
|
|
588
|
-
return (_this$
|
|
609
|
+
var _this$divaWebConfigDa17;
|
|
610
|
+
return (_this$divaWebConfigDa17 = this.divaWebConfigData) === null || _this$divaWebConfigDa17 === void 0 ? void 0 : _this$divaWebConfigDa17.diva3DAllowDefaultCatRoomList;
|
|
589
611
|
}
|
|
590
612
|
}, {
|
|
591
613
|
key: "doAllowSetPlanner",
|
|
592
614
|
value: function doAllowSetPlanner() {
|
|
593
|
-
var _this$
|
|
594
|
-
return (_this$
|
|
615
|
+
var _this$divaWebConfigDa18;
|
|
616
|
+
return (_this$divaWebConfigDa18 = this.divaWebConfigData) === null || _this$divaWebConfigDa18 === void 0 ? void 0 : _this$divaWebConfigDa18.doAllowSetPlanner;
|
|
595
617
|
}
|
|
596
618
|
}, {
|
|
597
619
|
key: "getHidePlanner",
|
|
598
620
|
value: function getHidePlanner() {
|
|
599
|
-
var _this$
|
|
600
|
-
return !!((_this$
|
|
621
|
+
var _this$divaWebConfigDa19;
|
|
622
|
+
return !!((_this$divaWebConfigDa19 = this.divaWebConfigData) !== null && _this$divaWebConfigDa19 !== void 0 && (_this$divaWebConfigDa19 = _this$divaWebConfigDa19.viewConfig) !== null && _this$divaWebConfigDa19 !== void 0 && _this$divaWebConfigDa19.hidePlanner);
|
|
601
623
|
}
|
|
602
624
|
}, {
|
|
603
625
|
key: "getEnableRTVUnityKombi",
|
|
@@ -608,32 +630,32 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
608
630
|
}, {
|
|
609
631
|
key: "getDoDisablePlanner2D",
|
|
610
632
|
value: function getDoDisablePlanner2D() {
|
|
611
|
-
var _this$
|
|
612
|
-
return !!((_this$
|
|
633
|
+
var _this$divaWebConfigDa20;
|
|
634
|
+
return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.doDisablePlanner2D);
|
|
613
635
|
}
|
|
614
636
|
}, {
|
|
615
637
|
key: "getRoomListInProduct",
|
|
616
638
|
value: function getRoomListInProduct() {
|
|
617
|
-
var _this$
|
|
618
|
-
return !!((_this$
|
|
639
|
+
var _this$divaWebConfigDa21;
|
|
640
|
+
return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && (_this$divaWebConfigDa21 = _this$divaWebConfigDa21.viewConfig) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.roomListInProduct);
|
|
619
641
|
}
|
|
620
642
|
}, {
|
|
621
643
|
key: "getPlannerType",
|
|
622
644
|
value: function getPlannerType() {
|
|
623
|
-
var _this$
|
|
624
|
-
return (_this$
|
|
645
|
+
var _this$divaWebConfigDa22;
|
|
646
|
+
return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 || (_this$divaWebConfigDa22 = _this$divaWebConfigDa22.viewConfig) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.plannerType;
|
|
625
647
|
}
|
|
626
648
|
}, {
|
|
627
649
|
key: "getLoadSupplierColors",
|
|
628
650
|
value: function getLoadSupplierColors() {
|
|
629
|
-
var _this$
|
|
630
|
-
return !!((_this$
|
|
651
|
+
var _this$divaWebConfigDa23;
|
|
652
|
+
return !!((_this$divaWebConfigDa23 = this.divaWebConfigData) !== null && _this$divaWebConfigDa23 !== void 0 && _this$divaWebConfigDa23.loadSupplierColors);
|
|
631
653
|
}
|
|
632
654
|
}, {
|
|
633
655
|
key: "showSelectionModeZero",
|
|
634
656
|
value: function showSelectionModeZero() {
|
|
635
|
-
var _this$
|
|
636
|
-
return !!((_this$
|
|
657
|
+
var _this$divaWebConfigDa24;
|
|
658
|
+
return !!((_this$divaWebConfigDa24 = this.divaWebConfigData) !== null && _this$divaWebConfigDa24 !== void 0 && _this$divaWebConfigDa24.showSelectionModeZero);
|
|
637
659
|
}
|
|
638
660
|
}, {
|
|
639
661
|
key: "ruleDescSeperator",
|
|
@@ -736,56 +758,56 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
736
758
|
}, {
|
|
737
759
|
key: "getViewConfig",
|
|
738
760
|
value: function getViewConfig() {
|
|
739
|
-
var _this$
|
|
740
|
-
return (_this$
|
|
761
|
+
var _this$divaWebConfigDa25;
|
|
762
|
+
return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.viewConfig;
|
|
741
763
|
}
|
|
742
764
|
}, {
|
|
743
765
|
key: "getEmailConfig",
|
|
744
766
|
value: function getEmailConfig() {
|
|
745
|
-
var _this$
|
|
746
|
-
return (_this$
|
|
767
|
+
var _this$divaWebConfigDa26;
|
|
768
|
+
return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.emailConfig;
|
|
747
769
|
}
|
|
748
770
|
}, {
|
|
749
771
|
key: "getABTestCases",
|
|
750
772
|
value: function getABTestCases() {
|
|
751
|
-
var _this$
|
|
752
|
-
return (_this$
|
|
773
|
+
var _this$divaWebConfigDa27, _this$divaWebConfigDa28;
|
|
774
|
+
return (_this$divaWebConfigDa27 = (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.abTestCases) !== null && _this$divaWebConfigDa27 !== void 0 ? _this$divaWebConfigDa27 : [];
|
|
753
775
|
}
|
|
754
776
|
}, {
|
|
755
777
|
key: "getBarrierConfig",
|
|
756
778
|
value: function getBarrierConfig() {
|
|
757
|
-
var _this$
|
|
758
|
-
return (_this$
|
|
779
|
+
var _this$divaWebConfigDa29;
|
|
780
|
+
return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.barrierConfig;
|
|
759
781
|
}
|
|
760
782
|
}, {
|
|
761
783
|
key: "getTemplateConfig",
|
|
762
784
|
value: function getTemplateConfig() {
|
|
763
|
-
var _this$
|
|
764
|
-
return (_this$
|
|
785
|
+
var _this$divaWebConfigDa30;
|
|
786
|
+
return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.templateConfig;
|
|
765
787
|
}
|
|
766
788
|
}, {
|
|
767
789
|
key: "showDivaNr",
|
|
768
790
|
value: function showDivaNr() {
|
|
769
|
-
var _this$
|
|
770
|
-
return (_this$
|
|
791
|
+
var _this$divaWebConfigDa31;
|
|
792
|
+
return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.showDivaNr;
|
|
771
793
|
}
|
|
772
794
|
}, {
|
|
773
795
|
key: "dontLoadDimensions",
|
|
774
796
|
value: function dontLoadDimensions() {
|
|
775
|
-
var _this$
|
|
776
|
-
return (_this$
|
|
797
|
+
var _this$divaWebConfigDa32;
|
|
798
|
+
return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.dontLoadDimensions;
|
|
777
799
|
}
|
|
778
800
|
}, {
|
|
779
801
|
key: "onErrorHandling",
|
|
780
802
|
value: function onErrorHandling() {
|
|
781
|
-
var _this$
|
|
782
|
-
return (_this$
|
|
803
|
+
var _this$divaWebConfigDa33;
|
|
804
|
+
return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.onErrorHandling;
|
|
783
805
|
}
|
|
784
806
|
}, {
|
|
785
807
|
key: "diva3DRenderingDefault",
|
|
786
808
|
value: function diva3DRenderingDefault() {
|
|
787
|
-
var _this$
|
|
788
|
-
return (_this$
|
|
809
|
+
var _this$divaWebConfigDa34;
|
|
810
|
+
return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.diva3DRenderingDefault;
|
|
789
811
|
}
|
|
790
812
|
}, {
|
|
791
813
|
key: "getJwt",
|
|
@@ -800,13 +822,13 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
800
822
|
}, {
|
|
801
823
|
key: "getUseMask",
|
|
802
824
|
value: function getUseMask() {
|
|
803
|
-
var _this$
|
|
804
|
-
return (_this$
|
|
825
|
+
var _this$divaWebConfigDa35;
|
|
826
|
+
return (_this$divaWebConfigDa35 = this.divaWebConfigData) === null || _this$divaWebConfigDa35 === void 0 ? void 0 : _this$divaWebConfigDa35.useMask;
|
|
805
827
|
}
|
|
806
828
|
}, {
|
|
807
829
|
key: "apiUrl",
|
|
808
830
|
value: function apiUrl(queryString, useWebServiceApi) {
|
|
809
|
-
var _this$
|
|
831
|
+
var _this$apiConfig23, _this$apiConfig24, _this$apiConfig25;
|
|
810
832
|
if (useWebServiceApi == 'catalog') {
|
|
811
833
|
var _this$apiConfig13, _this$apiConfig14;
|
|
812
834
|
if (!((_this$apiConfig13 = this.apiConfig) !== null && _this$apiConfig13 !== void 0 && _this$apiConfig13.catalogService)) throw new Error('No catalog Service defined');
|
|
@@ -823,17 +845,22 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
823
845
|
return ((_this$apiConfig18 = this.apiConfig) === null || _this$apiConfig18 === void 0 ? void 0 : _this$apiConfig18.reportService) + queryString;
|
|
824
846
|
}
|
|
825
847
|
if (useWebServiceApi == 'enricher') {
|
|
826
|
-
var _this$
|
|
827
|
-
if (
|
|
828
|
-
|
|
848
|
+
var _this$apiConfig21, _this$apiConfig22;
|
|
849
|
+
if (this.useIDMService) {
|
|
850
|
+
var _this$apiConfig19, _this$apiConfig20;
|
|
851
|
+
if (!((_this$apiConfig19 = this.apiConfig) !== null && _this$apiConfig19 !== void 0 && _this$apiConfig19.idmService)) throw new Error('No report Service defined');
|
|
852
|
+
return ((_this$apiConfig20 = this.apiConfig) === null || _this$apiConfig20 === void 0 ? void 0 : _this$apiConfig20.idmService) + queryString;
|
|
853
|
+
}
|
|
854
|
+
if (!((_this$apiConfig21 = this.apiConfig) !== null && _this$apiConfig21 !== void 0 && _this$apiConfig21.enricherService)) throw new Error('No report Service defined');
|
|
855
|
+
return ((_this$apiConfig22 = this.apiConfig) === null || _this$apiConfig22 === void 0 ? void 0 : _this$apiConfig22.enricherService) + queryString;
|
|
829
856
|
}
|
|
830
|
-
var url = (_this$
|
|
831
|
-
if (this.getApplicationEnvironment() == 'WEB' && (_this$
|
|
857
|
+
var url = (_this$apiConfig23 = this.apiConfig) === null || _this$apiConfig23 === void 0 ? void 0 : _this$apiConfig23.api2["default"];
|
|
858
|
+
if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig24 = this.apiConfig) !== null && _this$apiConfig24 !== void 0 && _this$apiConfig24.api2.web) {
|
|
832
859
|
url = this.apiConfig.api2.web;
|
|
833
860
|
}
|
|
834
|
-
if (this.useEkPrices && (_this$
|
|
835
|
-
var _this$
|
|
836
|
-
url = (_this$
|
|
861
|
+
if (this.useEkPrices && (_this$apiConfig25 = this.apiConfig) !== null && _this$apiConfig25 !== void 0 && _this$apiConfig25.api2.ek) {
|
|
862
|
+
var _this$apiConfig26;
|
|
863
|
+
url = (_this$apiConfig26 = this.apiConfig) === null || _this$apiConfig26 === void 0 ? void 0 : _this$apiConfig26.api2.ek;
|
|
837
864
|
}
|
|
838
865
|
if (!url) throw new Error('No API2 defined');
|
|
839
866
|
return url + '?' + queryString;
|
|
@@ -1000,56 +1027,62 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1000
1027
|
}
|
|
1001
1028
|
|
|
1002
1029
|
/******************IDM Service CALLs */
|
|
1030
|
+
}, {
|
|
1031
|
+
key: "idmPrefix",
|
|
1032
|
+
get: function get() {
|
|
1033
|
+
if (this.useEnricherService && !this.packageId) throw new Error('packageId as parameter not missing');
|
|
1034
|
+
return this.useEnricherService ? '/wysiwyg/v3.0/' + this.packageId : !this.useIDMService ? '/live/v3.0' : '/v3.0';
|
|
1035
|
+
}
|
|
1003
1036
|
}, {
|
|
1004
1037
|
key: "getIDMCatalog",
|
|
1005
1038
|
value: function getIDMCatalog(catalogId) {
|
|
1006
|
-
return '/
|
|
1039
|
+
return this.idmPrefix + '/catalogs' + (!this.useEnricherService ? '/' + catalogId : '');
|
|
1007
1040
|
}
|
|
1008
1041
|
}, {
|
|
1009
1042
|
key: "getIDMSerieByNo",
|
|
1010
1043
|
value: function getIDMSerieByNo(catalogId, serieNo) {
|
|
1011
|
-
return '/
|
|
1044
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/series' + '?filter=' + encodeURIComponent('serieNo==' + serieNo);
|
|
1012
1045
|
}
|
|
1013
1046
|
}, {
|
|
1014
1047
|
key: "getIDMItems",
|
|
1015
1048
|
value: function getIDMItems(catalogId, serieId, typeNos) {
|
|
1016
|
-
return '/
|
|
1049
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
|
|
1017
1050
|
return encodeURIComponent('typeNo==' + t);
|
|
1018
|
-
}).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');
|
|
1051
|
+
}).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;detailInfos;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber');
|
|
1019
1052
|
}
|
|
1020
1053
|
}, {
|
|
1021
1054
|
key: "getIDMItem",
|
|
1022
1055
|
value: function getIDMItem(catalogId, serieId, typeNo) {
|
|
1023
|
-
return '/
|
|
1056
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items/' + typeNo;
|
|
1024
1057
|
}
|
|
1025
1058
|
}, {
|
|
1026
1059
|
key: "getIDMFeatures",
|
|
1027
1060
|
value: function getIDMFeatures(catalogId, features) {
|
|
1028
|
-
return '/
|
|
1061
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/features' + '?featureNos=' + features.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
|
|
1029
1062
|
}
|
|
1030
1063
|
}, {
|
|
1031
1064
|
key: "getIDMDecisions",
|
|
1032
1065
|
value: function getIDMDecisions(catalogId, decisions) {
|
|
1033
|
-
return '/
|
|
1066
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/decisions' + '?decisionNos=' + decisions.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
|
|
1034
1067
|
}
|
|
1035
1068
|
}, {
|
|
1036
1069
|
key: "getIDMDetailInfos",
|
|
1037
1070
|
value: function getIDMDetailInfos(catalogId, detailinfos) {
|
|
1038
|
-
return '/
|
|
1071
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/detailinfos' + '?filter=' + detailinfos.map(function (d) {
|
|
1039
1072
|
return encodeURIComponent('featureClassNo==' + d);
|
|
1040
1073
|
}).join(' || ');
|
|
1041
1074
|
}
|
|
1042
1075
|
}, {
|
|
1043
1076
|
key: "getIDMFeatureClass",
|
|
1044
1077
|
value: function getIDMFeatureClass(catalogId, featureclasses) {
|
|
1045
|
-
return '/
|
|
1078
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/featureclasses' + '?filter=' + featureclasses.map(function (f) {
|
|
1046
1079
|
return encodeURIComponent('featureClassNo==' + f);
|
|
1047
1080
|
}).join(' || ');
|
|
1048
1081
|
}
|
|
1049
1082
|
}, {
|
|
1050
1083
|
key: "getIDMPriceFeatureGroups",
|
|
1051
1084
|
value: function getIDMPriceFeatureGroups(catalogId, pricefeaturegroups) {
|
|
1052
|
-
return '/
|
|
1085
|
+
return this.idmPrefix + '/catalogs/' + catalogId + '/pricefeaturegroups' + '?filter=' + pricefeaturegroups.map(function (p) {
|
|
1053
1086
|
return encodeURIComponent('priceFeatureGroupNo==' + p);
|
|
1054
1087
|
}).join(' || ');
|
|
1055
1088
|
}
|
|
@@ -1216,12 +1249,12 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1216
1249
|
key: "getDimensionbyId",
|
|
1217
1250
|
value: function () {
|
|
1218
1251
|
var _getDimensionbyId = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(id, iln, catalogCodex, plannedOptions) {
|
|
1219
|
-
var _this$
|
|
1252
|
+
var _this$apiConfig27;
|
|
1220
1253
|
var fullUrl, res, headers;
|
|
1221
1254
|
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
1222
1255
|
while (1) switch (_context11.prev = _context11.next) {
|
|
1223
1256
|
case 0:
|
|
1224
|
-
fullUrl = this.getConstructorServiceUrl() + '/dimension/' + id + '?iln=' + iln + '&catalogCodex=' + catalogCodex + '&debug=' + ((_this$
|
|
1257
|
+
fullUrl = this.getConstructorServiceUrl() + '/dimension/' + id + '?iln=' + iln + '&catalogCodex=' + catalogCodex + '&debug=' + ((_this$apiConfig27 = this.apiConfig) === null || _this$apiConfig27 === void 0 ? void 0 : _this$apiConfig27.useDebugUrl);
|
|
1225
1258
|
headers = {};
|
|
1226
1259
|
if (this.jwt) headers = {
|
|
1227
1260
|
Authorization: 'Bearer ' + this.jwt
|
|
@@ -1354,14 +1387,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1354
1387
|
}, {
|
|
1355
1388
|
key: "dontLoadAdditionalModelInfos",
|
|
1356
1389
|
get: function get() {
|
|
1357
|
-
var _this$
|
|
1358
|
-
return (_this$
|
|
1390
|
+
var _this$divaWebConfigDa36;
|
|
1391
|
+
return (_this$divaWebConfigDa36 = this.divaWebConfigData) === null || _this$divaWebConfigDa36 === void 0 ? void 0 : _this$divaWebConfigDa36.dontLoadAdditionalModelInfos;
|
|
1359
1392
|
}
|
|
1360
1393
|
}, {
|
|
1361
1394
|
key: "dontLoadCatalogEditorLiteMask",
|
|
1362
1395
|
get: function get() {
|
|
1363
|
-
var _this$
|
|
1364
|
-
return (_this$
|
|
1396
|
+
var _this$divaWebConfigDa37;
|
|
1397
|
+
return (_this$divaWebConfigDa37 = this.divaWebConfigData) === null || _this$divaWebConfigDa37 === void 0 ? void 0 : _this$divaWebConfigDa37.dontLoadCatalogEditorLiteMask;
|
|
1365
1398
|
}
|
|
1366
1399
|
}, {
|
|
1367
1400
|
key: "OrganizationId",
|
|
@@ -1619,6 +1652,11 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
|
|
|
1619
1652
|
get: function get() {
|
|
1620
1653
|
return this.catPlanArt.articleCodex;
|
|
1621
1654
|
}
|
|
1655
|
+
}, {
|
|
1656
|
+
key: "longDescription",
|
|
1657
|
+
get: function get() {
|
|
1658
|
+
return this.catPlanArt.catalogArticle.longDescription;
|
|
1659
|
+
}
|
|
1622
1660
|
}, {
|
|
1623
1661
|
key: "svgs",
|
|
1624
1662
|
get: function get() {
|
|
@@ -16324,7 +16362,10 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16324
16362
|
}, {
|
|
16325
16363
|
key: "pdfUrl",
|
|
16326
16364
|
get: function get() {
|
|
16327
|
-
|
|
16365
|
+
var _this$opv$textbaustei, _this$opv$textbaustei2;
|
|
16366
|
+
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) {
|
|
16367
|
+
return item.Memo.endsWith('.pdf');
|
|
16368
|
+
})) === null || _this$opv$textbaustei2 === void 0 ? void 0 : _this$opv$textbaustei2.Memo) !== null && _this$opv$textbaustei !== void 0 ? _this$opv$textbaustei : this.opv.pdfUrl;
|
|
16328
16369
|
}
|
|
16329
16370
|
}, {
|
|
16330
16371
|
key: "rals",
|
|
@@ -17429,7 +17470,8 @@ function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
|
|
|
17429
17470
|
showOnlyWhenHasPrice: jsonOPV.ShowOnlyWhenHasPrice && jsonOPV.ShowOnlyWhenHasPrice == 'True' ? true : false,
|
|
17430
17471
|
priceUnit: jsonOPV.PriceUnit,
|
|
17431
17472
|
value: jsonOPV.Value,
|
|
17432
|
-
property: [].concat(_toConsumableArray((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : []))
|
|
17473
|
+
property: [].concat(_toConsumableArray((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : [])),
|
|
17474
|
+
textbausteine: jsonOPV.Textbausteine
|
|
17433
17475
|
};
|
|
17434
17476
|
if (jsonOPV.MeasureUnit) {
|
|
17435
17477
|
switch (jsonOPV.MeasureUnit) {
|
|
@@ -17587,6 +17629,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17587
17629
|
articleCodex: catPlanArticle.codex,
|
|
17588
17630
|
catalogCodex: catalogData.catalogCodex,
|
|
17589
17631
|
title: title,
|
|
17632
|
+
longDescription: catPlanArticle.longDescription,
|
|
17590
17633
|
width: catPlanArticle.articleSizeX,
|
|
17591
17634
|
height: catPlanArticle.articleSizeZ,
|
|
17592
17635
|
depth: catPlanArticle.articleSizeY,
|
|
@@ -17647,6 +17690,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17647
17690
|
articleCodex: catPlanArticle.codex,
|
|
17648
17691
|
catalogCodex: catalogData.catalogCodex,
|
|
17649
17692
|
title: title,
|
|
17693
|
+
longDescription: catPlanArticle.longDescription,
|
|
17650
17694
|
width: catPlanArticle.articleSizeX,
|
|
17651
17695
|
height: catPlanArticle.articleSizeZ,
|
|
17652
17696
|
depth: catPlanArticle.articleSizeY,
|
|
@@ -18550,6 +18594,7 @@ function initArticleRelations(articleRelations, catalogArticleData, catalog) {
|
|
|
18550
18594
|
price: !catalog.dontShowBasePrice ? (_myAcc$BasePrice = myAcc.BasePrice) !== null && _myAcc$BasePrice !== void 0 ? _myAcc$BasePrice : catalogArticleData.articlePrice : 0,
|
|
18551
18595
|
articleCodex: myAcc.Codex,
|
|
18552
18596
|
catalogCodex: myAcc.CatalogCodex,
|
|
18597
|
+
longDescription: myAcc.longDescription,
|
|
18553
18598
|
positionGroupNr: myAcc.PositionGroupNr,
|
|
18554
18599
|
typeNr: _catalogArticle.typeNr,
|
|
18555
18600
|
image: _catalogArticle.image ? catalog.getCatImageURL(_catalogArticle.image, '') : undefined,
|
|
@@ -19117,8 +19162,9 @@ var getFeatures = function getFeatures(set, featureClasses) {
|
|
|
19117
19162
|
return toLoadFeatures;
|
|
19118
19163
|
};
|
|
19119
19164
|
var getFeaturesByFeatureClass = function getFeaturesByFeatureClass(featureClass) {
|
|
19165
|
+
var _featureClass$feature;
|
|
19120
19166
|
var neededFeatures = [];
|
|
19121
|
-
var featureRefs = Object.keys(featureClass.featureRefs);
|
|
19167
|
+
var featureRefs = Object.keys((_featureClass$feature = featureClass.featureRefs) !== null && _featureClass$feature !== void 0 ? _featureClass$feature : {});
|
|
19122
19168
|
for (var j = 0; j < featureRefs.length; j++) {
|
|
19123
19169
|
neededFeatures.push(featureRefs[j]);
|
|
19124
19170
|
}
|
|
@@ -19201,7 +19247,7 @@ var parseOptionSetRef = function parseOptionSetRef(optionsSetRefs, idmOptionGrou
|
|
|
19201
19247
|
value: group
|
|
19202
19248
|
};
|
|
19203
19249
|
} else {
|
|
19204
|
-
|
|
19250
|
+
LOG$j.error(new Error('rule not implemented' + JSON.stringify(optionsSetRefs)));
|
|
19205
19251
|
}
|
|
19206
19252
|
}
|
|
19207
19253
|
} else {
|
|
@@ -19503,7 +19549,7 @@ function initIDMArticles(jsonItems, catalogData) {
|
|
|
19503
19549
|
}
|
|
19504
19550
|
}
|
|
19505
19551
|
function getCatalogArticle(article, catalogData) {
|
|
19506
|
-
var _catalogData$catalogM, _articleMask$name, _articleMask$properti, _article$weightNetto, _article$detailInfos, _article$detailInfos2;
|
|
19552
|
+
var _catalogData$catalogM, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$shortText, _articleMask$properti, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _articleMask$groupnam, _articleMask$groupnam2;
|
|
19507
19553
|
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];
|
|
19508
19554
|
var lang = catalogData.api.getLanguageLowercase();
|
|
19509
19555
|
var featureProperties = convertProperties(article.properties, lang, 'featureNos');
|
|
@@ -19526,11 +19572,11 @@ function getCatalogArticle(article, catalogData) {
|
|
|
19526
19572
|
hasArticleRelations: false,
|
|
19527
19573
|
hasPartlistArticle: !!article.partListRef,
|
|
19528
19574
|
hasType1Dependencies: false,
|
|
19529
|
-
name: DivaUtils.getLocals((_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.shortText, lang),
|
|
19530
|
-
longDescription: DivaUtils.getLocals(article.fullText, lang),
|
|
19531
|
-
longDescription_locales: article.fullText,
|
|
19575
|
+
name: DivaUtils.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),
|
|
19576
|
+
longDescription: DivaUtils.getLocals((_article$fullText = article.fullText) !== null && _article$fullText !== void 0 ? _article$fullText : article.shortText, lang),
|
|
19577
|
+
longDescription_locales: (_article$fullText2 = article.fullText) !== null && _article$fullText2 !== void 0 ? _article$fullText2 : article.shortText,
|
|
19532
19578
|
isHidden: !!(articleMask !== null && articleMask !== void 0 && articleMask.hidden),
|
|
19533
|
-
origName: DivaUtils.getLocals(article.shortText, lang),
|
|
19579
|
+
origName: DivaUtils.getLocals((_article$shortText = article.shortText) !== null && _article$shortText !== void 0 ? _article$shortText : article.fullText, lang),
|
|
19534
19580
|
properties: [].concat(_toConsumableArray(convertProperties(article.properties, lang)), _toConsumableArray((_articleMask$properti = articleMask === null || articleMask === void 0 ? void 0 : articleMask.properties) !== null && _articleMask$properti !== void 0 ? _articleMask$properti : [])),
|
|
19535
19581
|
optionProperties: optionProperties,
|
|
19536
19582
|
featureProperties: featureProperties,
|
|
@@ -19562,12 +19608,12 @@ function getCatalogArticle(article, catalogData) {
|
|
|
19562
19608
|
url: d.url,
|
|
19563
19609
|
detailInfoNo: d.detailInfoNo
|
|
19564
19610
|
};
|
|
19565
|
-
})
|
|
19611
|
+
}),
|
|
19612
|
+
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
|
|
19566
19613
|
};
|
|
19567
19614
|
}
|
|
19568
19615
|
|
|
19569
19616
|
/*
|
|
19570
|
-
groupName: articleMask?.groupname?.[catalogData.api.getLanguage()] ?? jsonArticle.GroupName,
|
|
19571
19617
|
mainCategory: jsonArticle.MainCategory && jsonArticle.MainCategory != '' ? jsonArticle.MainCategory : undefined,
|
|
19572
19618
|
price: jsonArticle.VKP1 && isNaN(jsonArticle.VKP1) ? Number(jsonArticle.VKP1.replace(',', '.')) : jsonArticle.VKP1,
|
|
19573
19619
|
priceGroup: jsonArticle.PriceGroup,
|
|
@@ -19646,15 +19692,16 @@ function getCatalogPlanner(article, catalogArticle) {
|
|
|
19646
19692
|
};
|
|
19647
19693
|
}
|
|
19648
19694
|
function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps, plannerPaletteViewInfo) {
|
|
19649
|
-
var _catPlanArticle$filte, _catPlanArticle$svgs;
|
|
19695
|
+
var _catPlanArticle$filte, _catPlanArticle$group, _catPlanArticle$svgs;
|
|
19650
19696
|
plannerPaletteViewInfo.catalogPlannerArticles.push({
|
|
19651
19697
|
articleCodex: catPlanArticle.codex,
|
|
19652
19698
|
avlFilter: catPlanArticle.avlFilter,
|
|
19653
19699
|
avrFilter: catPlanArticle.avrFilter,
|
|
19700
|
+
longDescription: catPlanArticle.longDescription,
|
|
19654
19701
|
catalogCodex: catPlanArticle.catalogCodex,
|
|
19655
19702
|
codex: catPlanArticle.codex,
|
|
19656
19703
|
filterType: (_catPlanArticle$filte = catPlanArticle.filterType) !== null && _catPlanArticle$filte !== void 0 ? _catPlanArticle$filte : 'DockNone',
|
|
19657
|
-
groupName: '',
|
|
19704
|
+
groupName: (_catPlanArticle$group = catPlanArticle.groupName) !== null && _catPlanArticle$group !== void 0 ? _catPlanArticle$group : '',
|
|
19658
19705
|
hasAVC: !!catPlanArticle.topAVC,
|
|
19659
19706
|
hasAVN: !!catPlanArticle.topAVN,
|
|
19660
19707
|
hasAVO: !!catPlanArticle.topAVO,
|
|
@@ -19812,8 +19859,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19812
19859
|
hidePricePreviewOnlyOnOptions: [],
|
|
19813
19860
|
forceConfigSingle: false,
|
|
19814
19861
|
// das einzeln konfigurieren wird in diesem Katalog gezwungen
|
|
19815
|
-
doubleClickOnConfig: false,
|
|
19816
|
-
// Felher bei Ada IDM wird somit ausgebessert
|
|
19817
19862
|
doUseRuleDescForPartListArticles: false,
|
|
19818
19863
|
initOptionTreeTwice: false,
|
|
19819
19864
|
// Felher bei Cotta IDM wird somit ausgebes
|
|
@@ -19840,9 +19885,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19840
19885
|
this._api = api;
|
|
19841
19886
|
this.additionalModelInfos = additionalModelInfos;
|
|
19842
19887
|
if (json.Properties) {
|
|
19843
|
-
var _this$catalogMask$cat, _this$catalogMask;
|
|
19888
|
+
var _json$Properties, _this$catalogMask$cat, _this$catalogMask;
|
|
19844
19889
|
this.origProperties = json.Properties;
|
|
19845
|
-
this.initProperties(catalogCodex, [].concat(_toConsumableArray(json.Properties), _toConsumableArray((_this$catalogMask$cat = (_this$catalogMask = this.catalogMask) === null || _this$catalogMask === void 0 || (_this$catalogMask = _this$catalogMask.catalog) === null || _this$catalogMask === void 0 ? void 0 : _this$catalogMask.properties) !== null && _this$catalogMask$cat !== void 0 ? _this$catalogMask$cat : [])));
|
|
19890
|
+
this.initProperties(catalogCodex, [].concat(_toConsumableArray((_json$Properties = json.Properties) !== null && _json$Properties !== void 0 ? _json$Properties : []), _toConsumableArray((_this$catalogMask$cat = (_this$catalogMask = this.catalogMask) === null || _this$catalogMask === void 0 || (_this$catalogMask = _this$catalogMask.catalog) === null || _this$catalogMask === void 0 ? void 0 : _this$catalogMask.properties) !== null && _this$catalogMask$cat !== void 0 ? _this$catalogMask$cat : [])));
|
|
19846
19891
|
}
|
|
19847
19892
|
this.plannerPaletteViewInfo = {
|
|
19848
19893
|
catalogPlannerArticles: [],
|
|
@@ -19873,6 +19918,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19873
19918
|
this.catalogData = initIDMCatalogData(json, orderSet, api);
|
|
19874
19919
|
initIDMArticles(articleJson, this);
|
|
19875
19920
|
}
|
|
19921
|
+
if (this.origProperties) {
|
|
19922
|
+
var _json$Properties2, _this$catalogMask$cat2, _this$catalogMask2;
|
|
19923
|
+
this.initPropertiesAfterOptionsInit(catalogCodex, [].concat(_toConsumableArray((_json$Properties2 = json.Properties) !== null && _json$Properties2 !== void 0 ? _json$Properties2 : []), _toConsumableArray((_this$catalogMask$cat2 = (_this$catalogMask2 = this.catalogMask) === null || _this$catalogMask2 === void 0 || (_this$catalogMask2 = _this$catalogMask2.catalog) === null || _this$catalogMask2 === void 0 ? void 0 : _this$catalogMask2.properties) !== null && _this$catalogMask$cat2 !== void 0 ? _this$catalogMask$cat2 : [])));
|
|
19924
|
+
}
|
|
19876
19925
|
}
|
|
19877
19926
|
return _createClass(DivaCatalogData, [{
|
|
19878
19927
|
key: "getCatImageURL",
|
|
@@ -20078,8 +20127,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20078
20127
|
}
|
|
20079
20128
|
}, {
|
|
20080
20129
|
key: "getFeatures",
|
|
20081
|
-
value: function getFeatures(
|
|
20130
|
+
value: function getFeatures() {
|
|
20082
20131
|
var _this3 = this;
|
|
20132
|
+
var featureRefs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
20083
20133
|
return featureRefs.map(function (ref) {
|
|
20084
20134
|
return _this3.catalogData.loadedFeatures.find(function (f) {
|
|
20085
20135
|
return f.featureNo == ref;
|
|
@@ -20453,11 +20503,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20453
20503
|
var _this$optionValues2;
|
|
20454
20504
|
return Object.values((_this$optionValues2 = this.optionValues) !== null && _this$optionValues2 !== void 0 ? _this$optionValues2 : {});
|
|
20455
20505
|
}
|
|
20456
|
-
}, {
|
|
20457
|
-
key: "doubleClickOnConfig",
|
|
20458
|
-
get: function get() {
|
|
20459
|
-
return this.catalogProps.doubleClickOnConfig;
|
|
20460
|
-
}
|
|
20461
20506
|
}, {
|
|
20462
20507
|
key: "initOptionTreeTwice",
|
|
20463
20508
|
get: function get() {
|
|
@@ -20797,6 +20842,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20797
20842
|
break;
|
|
20798
20843
|
case 'DEFAULT_DO_SHOW_3DDIMENSIONS':
|
|
20799
20844
|
_this5.catalogProps.defaultDimensionsActive = '1' == item.Value || 'true' == item.Value.toLowerCase();
|
|
20845
|
+
break;
|
|
20800
20846
|
// Planner Topics
|
|
20801
20847
|
case 'IS_IDM3D_CAT':
|
|
20802
20848
|
_this5.catalogProps.isIDM3DCat = item.Value == '1' || item.Value.toLowerCase() == 'true';
|
|
@@ -20970,9 +21016,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20970
21016
|
return 'OPT' + t;
|
|
20971
21017
|
});
|
|
20972
21018
|
break;
|
|
20973
|
-
case 'DOUBLE_CLICK_ON_CONFIG':
|
|
20974
|
-
_this5.catalogProps.doubleClickOnConfig = '1' == item.Value;
|
|
20975
|
-
break;
|
|
20976
21019
|
case 'INIT_OPTIONTREE_TWICE':
|
|
20977
21020
|
_this5.catalogProps.initOptionTreeTwice = '1' == item.Value;
|
|
20978
21021
|
break;
|
|
@@ -21012,17 +21055,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
21012
21055
|
case 'ADD_PA_ON_EDO':
|
|
21013
21056
|
_this5.handleEdoArticles(properties, item);
|
|
21014
21057
|
break;
|
|
21015
|
-
default:
|
|
21016
|
-
if (key.startsWith('3D_STATBG_ROOMLIST')) {
|
|
21017
|
-
// item.Value =
|
|
21018
|
-
// "weissraum_LUECK;backgroundimgroom_lueck_modern;backgroundimgroom_lueck_romantic;backgroundimgroom_lueck_loft;backgroundimgroom_lueck_night";
|
|
21019
|
-
_this5.catalogProps.roomList3DStaticBGImage.set(item.Codex, item.Value.split(';'));
|
|
21020
|
-
} else if (key.startsWith('3D_STANDARD_WHITEROOM')) {
|
|
21021
|
-
_this5.catalogProps.diva3dStandardWhiteroom = item.Value;
|
|
21022
|
-
} else if (key.startsWith('DIVA3D_IMAGE')) {
|
|
21023
|
-
_this5.handleDIVA3DMetaTag(item);
|
|
21024
|
-
}
|
|
21025
|
-
break;
|
|
21026
21058
|
}
|
|
21027
21059
|
});
|
|
21028
21060
|
if (!diva3DRenderingIsSet) {
|
|
@@ -21031,6 +21063,25 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
21031
21063
|
}
|
|
21032
21064
|
}
|
|
21033
21065
|
}
|
|
21066
|
+
}, {
|
|
21067
|
+
key: "initPropertiesAfterOptionsInit",
|
|
21068
|
+
value: function initPropertiesAfterOptionsInit(catalogCodex, properties) {
|
|
21069
|
+
var _this6 = this;
|
|
21070
|
+
properties.forEach(function (item, index) {
|
|
21071
|
+
//3D Allgemein
|
|
21072
|
+
var key = item.Codex;
|
|
21073
|
+
if (key.startsWith(catalogCodex + '__')) key = key.replace(catalogCodex + '__', '');
|
|
21074
|
+
if (key.startsWith('3D_STATBG_ROOMLIST')) {
|
|
21075
|
+
// item.Value =
|
|
21076
|
+
// "weissraum_LUECK;backgroundimgroom_lueck_modern;backgroundimgroom_lueck_romantic;backgroundimgroom_lueck_loft;backgroundimgroom_lueck_night";
|
|
21077
|
+
_this6.catalogProps.roomList3DStaticBGImage.set(item.Codex, item.Value.split(';'));
|
|
21078
|
+
} else if (key.startsWith('3D_STANDARD_WHITEROOM')) {
|
|
21079
|
+
_this6.catalogProps.diva3dStandardWhiteroom = item.Value;
|
|
21080
|
+
} else if (key.startsWith('DIVA3D_IMAGE')) {
|
|
21081
|
+
_this6.handleDIVA3DMetaTag(item);
|
|
21082
|
+
}
|
|
21083
|
+
});
|
|
21084
|
+
}
|
|
21034
21085
|
}, {
|
|
21035
21086
|
key: "handleDIVA3DMetaTag",
|
|
21036
21087
|
value: function handleDIVA3DMetaTag(item) {
|
|
@@ -21170,10 +21221,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
21170
21221
|
}, {
|
|
21171
21222
|
key: "initMask",
|
|
21172
21223
|
value: function initMask(initProps) {
|
|
21173
|
-
var _this$
|
|
21174
|
-
if ((_this$
|
|
21175
|
-
var _this$catalogMask$
|
|
21176
|
-
if ((_this$catalogMask$
|
|
21224
|
+
var _this$catalogMask3;
|
|
21225
|
+
if ((_this$catalogMask3 = this.catalogMask) !== null && _this$catalogMask3 !== void 0 && _this$catalogMask3.catalog) {
|
|
21226
|
+
var _this$catalogMask$cat3;
|
|
21227
|
+
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()];
|
|
21177
21228
|
if (this.catalogMask.catalog.name) this.catalogData.name_locales = this.catalogMask.catalog.name;
|
|
21178
21229
|
if (this.catalogMask.catalog.properties && initProps) this.initProperties(this.catalogCodex, [].concat(_toConsumableArray(this.origProperties), _toConsumableArray(this.catalogMask.catalog.properties)));
|
|
21179
21230
|
}
|
|
@@ -21373,7 +21424,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
21373
21424
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
21374
21425
|
while (1) switch (_context3.prev = _context3.next) {
|
|
21375
21426
|
case 0:
|
|
21376
|
-
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 ?
|
|
21427
|
+
promises = [state.api.getDataCache(state.api.getIDMCatalog(accountId), undefined, undefined, 'enricher'), state.api.getDataCache(state.api.getIDMSerieByNo(accountId, serieNo), undefined, undefined, 'enricher'), state.api.getDataCache(state.api.getIDMItems(accountId, serieId), undefined, undefined, 'enricher'), !state.api.dontLoadAdditionalModelInfos ? this.getAdditionalModeInfos(state, serieId, accountId) : undefined];
|
|
21377
21428
|
_context3.next = 3;
|
|
21378
21429
|
return Promise.all(promises);
|
|
21379
21430
|
case 3:
|
|
@@ -21391,13 +21442,41 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
21391
21442
|
case "end":
|
|
21392
21443
|
return _context3.stop();
|
|
21393
21444
|
}
|
|
21394
|
-
}, _callee3);
|
|
21445
|
+
}, _callee3, this);
|
|
21395
21446
|
}));
|
|
21396
21447
|
function loadIDMCatalog(_x7, _x8, _x9, _x10, _x11) {
|
|
21397
21448
|
return _loadIDMCatalog.apply(this, arguments);
|
|
21398
21449
|
}
|
|
21399
21450
|
return loadIDMCatalog;
|
|
21400
21451
|
}()
|
|
21452
|
+
}, {
|
|
21453
|
+
key: "getAdditionalModeInfos",
|
|
21454
|
+
value: function () {
|
|
21455
|
+
var _getAdditionalModeInfos = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(state, serieId, accountId) {
|
|
21456
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
21457
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
21458
|
+
case 0:
|
|
21459
|
+
_context4.prev = 0;
|
|
21460
|
+
_context4.next = 3;
|
|
21461
|
+
return state.api.getDataCache(state.api.getAdditionalModelInfosQS(accountId, serieId), undefined, undefined, 'catalog');
|
|
21462
|
+
case 3:
|
|
21463
|
+
return _context4.abrupt("return", _context4.sent);
|
|
21464
|
+
case 6:
|
|
21465
|
+
_context4.prev = 6;
|
|
21466
|
+
_context4.t0 = _context4["catch"](0);
|
|
21467
|
+
LOG$g.debug('additional ModelInfo not found');
|
|
21468
|
+
return _context4.abrupt("return", undefined);
|
|
21469
|
+
case 10:
|
|
21470
|
+
case "end":
|
|
21471
|
+
return _context4.stop();
|
|
21472
|
+
}
|
|
21473
|
+
}, _callee4, null, [[0, 6]]);
|
|
21474
|
+
}));
|
|
21475
|
+
function getAdditionalModeInfos(_x12, _x13, _x14) {
|
|
21476
|
+
return _getAdditionalModeInfos.apply(this, arguments);
|
|
21477
|
+
}
|
|
21478
|
+
return getAdditionalModeInfos;
|
|
21479
|
+
}()
|
|
21401
21480
|
}]);
|
|
21402
21481
|
}();
|
|
21403
21482
|
var catalogHandlerInstance = new DivaCatalogHandler();
|
|
@@ -21599,12 +21678,12 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
21599
21678
|
}, {
|
|
21600
21679
|
key: "IsDockingFilterFeature",
|
|
21601
21680
|
get: function get() {
|
|
21602
|
-
return this.option.idmVariantenArt ? [89, 90].includes(this.option.idmVariantenArt) : false;
|
|
21681
|
+
return this.option.idmVariantenArt ? [89, 90, 1089, 1090].includes(this.option.idmVariantenArt) : false;
|
|
21603
21682
|
}
|
|
21604
21683
|
}, {
|
|
21605
21684
|
key: "IsIDMSpecialFeature",
|
|
21606
21685
|
get: function get() {
|
|
21607
|
-
return this.option.idmVariantenArt ? [95, 96, 97, 89, 90].includes(this.option.idmVariantenArt) : false;
|
|
21686
|
+
return this.option.idmVariantenArt ? [95, 96, 97, 89, 90, 1095, 1096, 1097, 1089, 1090].includes(this.option.idmVariantenArt) : false;
|
|
21608
21687
|
}
|
|
21609
21688
|
}, {
|
|
21610
21689
|
key: "visibleOptionValues",
|
|
@@ -22299,8 +22378,9 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22299
22378
|
}, {
|
|
22300
22379
|
key: "updateIDMSpecificFeature",
|
|
22301
22380
|
value: function updateIDMSpecificFeature(ops) {
|
|
22381
|
+
var _ops$option$idmVarian, _ops$option$idmVarian2, _ops$option$idmVarian3, _ops$option$idmVarian4, _ops$option$idmVarian5;
|
|
22302
22382
|
if (!this.article.parentHasSameOption(ops.optionCodex)) return;
|
|
22303
|
-
if (ops.option.idmVariantenArt
|
|
22383
|
+
if ([90, 1090].includes((_ops$option$idmVarian = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian !== void 0 ? _ops$option$idmVarian : 0)) {
|
|
22304
22384
|
//R (Anschlusstyp R) - AVR
|
|
22305
22385
|
var newAVRFilter = [],
|
|
22306
22386
|
visibleOPVs = ops.visibleOptionValues;
|
|
@@ -22309,7 +22389,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22309
22389
|
}
|
|
22310
22390
|
this.article.newPossibleAVRFilters = newAVRFilter;
|
|
22311
22391
|
}
|
|
22312
|
-
if (ops.option.idmVariantenArt
|
|
22392
|
+
if ([89, 1089].includes((_ops$option$idmVarian2 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian2 !== void 0 ? _ops$option$idmVarian2 : 0)) {
|
|
22313
22393
|
//L (Anschlusstyp L) - AVL
|
|
22314
22394
|
var newAVLFilter = [],
|
|
22315
22395
|
_visibleOPVs = ops.visibleOptionValues;
|
|
@@ -22319,7 +22399,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22319
22399
|
this.article.newPossibleAVLFilters = newAVLFilter;
|
|
22320
22400
|
}
|
|
22321
22401
|
//beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
|
|
22322
|
-
if (ops.option.idmVariantenArt
|
|
22402
|
+
if ([97, 1097].includes((_ops$option$idmVarian3 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian3 !== void 0 ? _ops$option$idmVarian3 : 0)) {
|
|
22323
22403
|
//Planungshöhe
|
|
22324
22404
|
try {
|
|
22325
22405
|
var _ops$freeText;
|
|
@@ -22332,7 +22412,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22332
22412
|
}
|
|
22333
22413
|
}
|
|
22334
22414
|
//beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
|
|
22335
|
-
if (ops.option.idmVariantenArt
|
|
22415
|
+
if ([96, 1096].includes((_ops$option$idmVarian4 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian4 !== void 0 ? _ops$option$idmVarian4 : 0) || ops.option.diameter) {
|
|
22336
22416
|
//Planungstiefe
|
|
22337
22417
|
try {
|
|
22338
22418
|
var _ops$freeText2;
|
|
@@ -22345,7 +22425,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22345
22425
|
}
|
|
22346
22426
|
}
|
|
22347
22427
|
//beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
|
|
22348
|
-
if (ops.option.idmVariantenArt
|
|
22428
|
+
if ([95, 1095].includes((_ops$option$idmVarian5 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian5 !== void 0 ? _ops$option$idmVarian5 : 0) || ops.option.diameter) {
|
|
22349
22429
|
//Planungsbreite - ACHTUNG Fehler wenn mm
|
|
22350
22430
|
|
|
22351
22431
|
try {
|
|
@@ -22475,8 +22555,10 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22475
22555
|
var _this$article$set$Vie;
|
|
22476
22556
|
//die Klasse ArticleOptionState wird einfach neu initialisiert
|
|
22477
22557
|
var oldOPS = this.article.getArticleOptionState(optionCodex);
|
|
22558
|
+
if (!oldOPS) return;
|
|
22478
22559
|
if (keepEnalbed) {
|
|
22479
22560
|
oldOPS.val = undefined;
|
|
22561
|
+
oldOPS.isDoShow = oldOPS.visibleCount > 1;
|
|
22480
22562
|
return;
|
|
22481
22563
|
}
|
|
22482
22564
|
var option = oldOPS.option;
|
|
@@ -22673,7 +22755,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22673
22755
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
22674
22756
|
var ops = _step3.value;
|
|
22675
22757
|
//when an option has no decisions the first visible optionValue has to be selected per default
|
|
22676
|
-
if (ops.val === undefined && ops.visibleCount) {
|
|
22758
|
+
if (ops.val === undefined && ops.visibleCount && !this.article.CatalogData.useDiomexConfigLogic) {
|
|
22677
22759
|
this.assignOptionValue(ops.optionCodex, Object.keys(ops.visibleOptionValues)[0]);
|
|
22678
22760
|
}
|
|
22679
22761
|
if (ops.visibleCount && ops.IsIDMSpecialFeature) {
|
|
@@ -23211,6 +23293,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23211
23293
|
value: function evalPartlist(newConfigValues) {
|
|
23212
23294
|
var partlistArticlesToLoad = [];
|
|
23213
23295
|
var myPartlistArticles = this.article.groupedPartlists;
|
|
23296
|
+
var partlistGroup = [];
|
|
23214
23297
|
for (var iKey in myPartlistArticles) {
|
|
23215
23298
|
var groupDecisionVal;
|
|
23216
23299
|
var key = Number(iKey);
|
|
@@ -23221,6 +23304,9 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23221
23304
|
for (var b = 0; b < myPartlistArticles[key].length; b++) {
|
|
23222
23305
|
var startTime = Date.now();
|
|
23223
23306
|
var myPartListPos = myPartlistArticles[key][b];
|
|
23307
|
+
if (myPartListPos.PartlistGroup && partlistGroup.includes(myPartListPos.PartlistGroup)) {
|
|
23308
|
+
continue;
|
|
23309
|
+
}
|
|
23224
23310
|
if (myPartListPos.ItemRefArticles) {
|
|
23225
23311
|
var decisions = myPartListPos.PartListPosDecisionsAndPosCounts;
|
|
23226
23312
|
if (decisions) {
|
|
@@ -23233,16 +23319,16 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23233
23319
|
if ((_myDecisionVal = myDecisionVal) !== null && _myDecisionVal !== void 0 && _myDecisionVal.isValidDOC || relationTypeNone) {
|
|
23234
23320
|
// wenn die Decision gültig, gelten die ItemRefArticles
|
|
23235
23321
|
partlistAdded = true;
|
|
23236
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, myDecisionVal, groupDecisionVal, myDecisionNumber);
|
|
23322
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, myDecisionVal, groupDecisionVal, myDecisionNumber);
|
|
23237
23323
|
break;
|
|
23238
23324
|
}
|
|
23239
23325
|
}
|
|
23240
23326
|
if (decisions.length === 0) {
|
|
23241
23327
|
LOG$f.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.ItemRefArticles);
|
|
23242
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
23328
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
23243
23329
|
} else if (!partlistAdded && this.article.CatalogData.useDecisionPosCountValue && myPartListPos.PosCountValue > 0) {
|
|
23244
23330
|
LOG$f.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.ItemRefArticles);
|
|
23245
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
23331
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
23246
23332
|
}
|
|
23247
23333
|
}
|
|
23248
23334
|
}
|
|
@@ -23254,7 +23340,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23254
23340
|
}
|
|
23255
23341
|
}, {
|
|
23256
23342
|
key: "addPartilstToPartlistArticlesToLoad",
|
|
23257
|
-
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, myDecisionVal, groupDecisionVal, decisionNumber) {
|
|
23343
|
+
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, myDecisionVal, groupDecisionVal, decisionNumber) {
|
|
23258
23344
|
var _myPartListPos$Option,
|
|
23259
23345
|
_this2 = this;
|
|
23260
23346
|
var allDecisions = this.article.catalogArticle.articleDecisions;
|
|
@@ -23311,7 +23397,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23311
23397
|
_loop3(i);
|
|
23312
23398
|
}
|
|
23313
23399
|
if (quanitity >= 1) {
|
|
23314
|
-
var _myDecisionVal$Rule
|
|
23400
|
+
var _myDecisionVal$Rule;
|
|
23315
23401
|
partlistArticlesToLoad.push({
|
|
23316
23402
|
CatalogCodex: catalogCodex !== null && catalogCodex !== void 0 ? catalogCodex : _this2.article.catalogCodex,
|
|
23317
23403
|
BasketID: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.basketId,
|
|
@@ -23326,11 +23412,13 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23326
23412
|
RuleDesc: myRuleDesc,
|
|
23327
23413
|
RuleDesc_locales: myRuleDesc_locales,
|
|
23328
23414
|
PosInvisibility: myPartListPos.PosInvisibility,
|
|
23329
|
-
|
|
23415
|
+
ConfigurationMode: myPartListPos.ConfigurationMode,
|
|
23416
|
+
VariantValues: _this2.article.variantValuesForPla(myPartListPos.ConfigurationMode, previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantValues, newConfigValues),
|
|
23330
23417
|
VariantItemData: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantItemData,
|
|
23331
23418
|
optionImgForPrint: optionImgForPrint,
|
|
23332
23419
|
optionsForPrint: optionsForPrint
|
|
23333
23420
|
});
|
|
23421
|
+
if (myPartListPos.PartlistGroup) partlistGroup.push(myPartListPos.PartlistGroup);
|
|
23334
23422
|
}
|
|
23335
23423
|
};
|
|
23336
23424
|
for (var d = 0; d < myPartListPos.ItemRefArticles.length; d++) {
|
|
@@ -23458,7 +23546,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23458
23546
|
} else if (calcUnit2Price != 0) {
|
|
23459
23547
|
//for diamter option
|
|
23460
23548
|
if (ops.option.diameter) {
|
|
23461
|
-
ops.usedCalcPrice = calcUnit2Price *
|
|
23549
|
+
ops.usedCalcPrice = calcUnit2Price * freeTextMeasure * freeTextMeasure;
|
|
23462
23550
|
} else {
|
|
23463
23551
|
if (firstUnit2Param == 0) {
|
|
23464
23552
|
firstUnit2Param = freeTextMeasure;
|
|
@@ -23683,6 +23771,35 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23683
23771
|
}
|
|
23684
23772
|
}
|
|
23685
23773
|
}
|
|
23774
|
+
}, {
|
|
23775
|
+
key: "getValuesInfluencingOPT",
|
|
23776
|
+
value: function getValuesInfluencingOPT(featureNo) {
|
|
23777
|
+
var decisions = this.article.catalogArticle.articleDecisions;
|
|
23778
|
+
//add the partlist spesific decisions to the normal decisions
|
|
23779
|
+
if (this.article.initDecisions) decisions = decisions.concat(this.article.initDecisions);
|
|
23780
|
+
var variantValuesArr = [];
|
|
23781
|
+
var relevantDecisions = decisions.filter(function (d) {
|
|
23782
|
+
var _d$Options;
|
|
23783
|
+
return (_d$Options = d.Options) === null || _d$Options === void 0 ? void 0 : _d$Options.includes(featureNo);
|
|
23784
|
+
});
|
|
23785
|
+
for (var i = 0; i < relevantDecisions.length; i++) {
|
|
23786
|
+
var decision = relevantDecisions[i];
|
|
23787
|
+
if (decision.Type == '1' && decision.DOC) {
|
|
23788
|
+
for (var j = 0; j < decision.DOC.length; j++) {
|
|
23789
|
+
var _oc$Row;
|
|
23790
|
+
var oc = decision.DOC[j];
|
|
23791
|
+
var variantValues = {};
|
|
23792
|
+
if (!Object.values((_oc$Row = oc.Row) !== null && _oc$Row !== void 0 ? _oc$Row : {}).length) continue;
|
|
23793
|
+
for (var key in oc.Row) {
|
|
23794
|
+
if (key == featureNo) continue;
|
|
23795
|
+
variantValues[key] = oc.Row[key][0];
|
|
23796
|
+
}
|
|
23797
|
+
variantValuesArr.push(variantValues);
|
|
23798
|
+
}
|
|
23799
|
+
}
|
|
23800
|
+
}
|
|
23801
|
+
return variantValuesArr;
|
|
23802
|
+
}
|
|
23686
23803
|
}, {
|
|
23687
23804
|
key: "getOptionPrice",
|
|
23688
23805
|
value: function getOptionPrice(calculatedPrice, optItem, digits) {
|
|
@@ -23767,17 +23884,23 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
23767
23884
|
LOG$e.debug('eval Decisions total time in ' + (endTime - startTime) + ' of ' + count);
|
|
23768
23885
|
}
|
|
23769
23886
|
}, {
|
|
23770
|
-
key: "
|
|
23771
|
-
|
|
23887
|
+
key: "decisions",
|
|
23888
|
+
get: function get() {
|
|
23772
23889
|
var _unsortedDecisons;
|
|
23773
23890
|
var unsortedDecisons = this.article.articleIDMDecisions;
|
|
23774
|
-
if (!((_unsortedDecisons = unsortedDecisons) !== null && _unsortedDecisons !== void 0 && _unsortedDecisons.length)) return;
|
|
23891
|
+
if (!((_unsortedDecisons = unsortedDecisons) !== null && _unsortedDecisons !== void 0 && _unsortedDecisons.length)) return [];
|
|
23775
23892
|
//add the partlist spesific decisions to the normal decisions
|
|
23776
23893
|
|
|
23777
23894
|
if (this.article.initDecisions) unsortedDecisons = unsortedDecisons.concat(this.article.initDecisions);
|
|
23778
|
-
|
|
23895
|
+
return unsortedDecisons.sort(function (a, b) {
|
|
23779
23896
|
return a.prio - b.prio;
|
|
23780
23897
|
});
|
|
23898
|
+
}
|
|
23899
|
+
}, {
|
|
23900
|
+
key: "evalDecisionsfunction",
|
|
23901
|
+
value: function evalDecisionsfunction() {
|
|
23902
|
+
var decisions = this.decisions;
|
|
23903
|
+
if (!decisions.length) return;
|
|
23781
23904
|
for (var i = 0; i < decisions.length; i++) {
|
|
23782
23905
|
decisions[i].enabled = true;
|
|
23783
23906
|
decisions[i].disableHistory = [];
|
|
@@ -23869,9 +23992,10 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
23869
23992
|
}, {
|
|
23870
23993
|
key: "evalType1Decision",
|
|
23871
23994
|
value: function evalType1Decision(decision) {
|
|
23995
|
+
var _decision$featureRefs;
|
|
23872
23996
|
var validOptions = {};
|
|
23873
23997
|
var doAlsoCheckFeatureNos = [];
|
|
23874
|
-
if (!decision.optionCombinations.length || !decision.featureRefs.length) return;
|
|
23998
|
+
if (!decision.optionCombinations.length || !((_decision$featureRefs = decision.featureRefs) !== null && _decision$featureRefs !== void 0 && _decision$featureRefs.length)) return;
|
|
23875
23999
|
var sortedDeatureRefs = this.sortFeatures(decision.featureRefs);
|
|
23876
24000
|
for (var p = 0; p < sortedDeatureRefs.length; p++) {
|
|
23877
24001
|
var featureNo = sortedDeatureRefs[p];
|
|
@@ -23972,10 +24096,10 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
23972
24096
|
}, {
|
|
23973
24097
|
key: "evalType0Decision",
|
|
23974
24098
|
value: function evalType0Decision(decision) {
|
|
23975
|
-
var _decision$optionCombi;
|
|
24099
|
+
var _decision$optionCombi, _decision$featureRefs2;
|
|
23976
24100
|
var invalidOptions = {},
|
|
23977
24101
|
doAlsoCheckFeature = [];
|
|
23978
|
-
if (!((_decision$optionCombi = decision.optionCombinations) !== null && _decision$optionCombi !== void 0 && _decision$optionCombi.length) || !decision.featureRefs.length) return;
|
|
24102
|
+
if (!((_decision$optionCombi = decision.optionCombinations) !== null && _decision$optionCombi !== void 0 && _decision$optionCombi.length) || !((_decision$featureRefs2 = decision.featureRefs) !== null && _decision$featureRefs2 !== void 0 && _decision$featureRefs2.length)) return;
|
|
23979
24103
|
var sortedDeatureRefs = this.sortFeatures(decision.featureRefs);
|
|
23980
24104
|
for (var p = 0; p < sortedDeatureRefs.length; p++) {
|
|
23981
24105
|
var featureNo = sortedDeatureRefs[p];
|
|
@@ -24076,7 +24200,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24076
24200
|
} else if (action.value) {
|
|
24077
24201
|
_this2.assignOptionValue(action.target, action.value, action.actionType === 'SET_FEATURE_FIXED' ? 'fix' : 'set');
|
|
24078
24202
|
} else {
|
|
24079
|
-
|
|
24203
|
+
LOG$e.error(new Error('decision' + decision.decisionNo + ' has action that referst to a feature that does not existi on this article'));
|
|
24080
24204
|
}
|
|
24081
24205
|
break;
|
|
24082
24206
|
case '1':
|
|
@@ -24162,8 +24286,9 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24162
24286
|
ref = _command$split2[0];
|
|
24163
24287
|
value = _command$split2[1];
|
|
24164
24288
|
if (ref == 'FEATURE_REF') {
|
|
24289
|
+
var _this$article$getArti;
|
|
24165
24290
|
ref = undefined;
|
|
24166
|
-
value = this.article.getArticleOptionState(value).valCodex;
|
|
24291
|
+
value = (_this$article$getArti = this.article.getArticleOptionState(value)) === null || _this$article$getArti === void 0 ? void 0 : _this$article$getArti.valCodex;
|
|
24167
24292
|
} else if (ref == 'OPTION_REF') {
|
|
24168
24293
|
ref = undefined;
|
|
24169
24294
|
} else if (ref == 'FORMULA_REF') {
|
|
@@ -24232,6 +24357,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24232
24357
|
var oldOPS = this.article.getArticleOptionState(featureNo);
|
|
24233
24358
|
if (keepEnalbed) {
|
|
24234
24359
|
oldOPS.val = undefined;
|
|
24360
|
+
oldOPS.isDoShow = oldOPS.visibleCount > 1;
|
|
24235
24361
|
return;
|
|
24236
24362
|
}
|
|
24237
24363
|
var option = oldOPS.option;
|
|
@@ -24349,10 +24475,12 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24349
24475
|
var partlistArticlesToLoad = [];
|
|
24350
24476
|
var myPartlistArticles = (_this$article$catalog4 = this.article.catalogArticle.idmPartlist) === null || _this$article$catalog4 === void 0 ? void 0 : _this$article$catalog4.partlistPos;
|
|
24351
24477
|
if (!(myPartlistArticles !== null && myPartlistArticles !== void 0 && myPartlistArticles.length)) return [];
|
|
24478
|
+
var partlistGroup = [];
|
|
24352
24479
|
for (var i = 0; i < myPartlistArticles.length; i++) {
|
|
24353
24480
|
var _myPartListPos$decisi;
|
|
24354
24481
|
var myPartListPos = myPartlistArticles[i];
|
|
24355
24482
|
if (!myPartListPos.itemRefTypeNo) continue;
|
|
24483
|
+
if (myPartListPos.partlistGroup && partlistGroup.includes(myPartListPos.partlistGroup)) continue;
|
|
24356
24484
|
var decisions = this.article.CatalogData.getDecisionsByNo([].concat(_toConsumableArray((_myPartListPos$decisi = myPartListPos.decisions) !== null && _myPartListPos$decisi !== void 0 ? _myPartListPos$decisi : []), _toConsumableArray(myPartListPos.decisionPosCount ? [myPartListPos.decisionPosCount] : [])));
|
|
24357
24485
|
var partlistAdded = false;
|
|
24358
24486
|
for (var c = 0; c < decisions.length; c++) {
|
|
@@ -24361,22 +24489,22 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24361
24489
|
var isValidDOC = relationTypeNone ? undefined : this.checkDecisionNumber(decision.decisionNo);
|
|
24362
24490
|
if (!isValidDOC && !relationTypeNone) continue;
|
|
24363
24491
|
partlistAdded = true;
|
|
24364
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, undefined, !relationTypeNone ? decision.decisionNo : undefined);
|
|
24492
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, undefined, !relationTypeNone ? decision.decisionNo : undefined);
|
|
24365
24493
|
break;
|
|
24366
24494
|
}
|
|
24367
24495
|
if (decisions.length === 0 && !partlistAdded) {
|
|
24368
24496
|
LOG$e.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.itemRefTypeNo);
|
|
24369
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
24497
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
24370
24498
|
} else if (!partlistAdded && myPartListPos.posCountValue > 0) {
|
|
24371
24499
|
LOG$e.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.itemRefTypeNo);
|
|
24372
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
24500
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
24373
24501
|
}
|
|
24374
24502
|
}
|
|
24375
24503
|
return partlistArticlesToLoad;
|
|
24376
24504
|
}
|
|
24377
24505
|
}, {
|
|
24378
24506
|
key: "addPartilstToPartlistArticlesToLoad",
|
|
24379
|
-
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, rule, decisionNo) {
|
|
24507
|
+
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, rule, decisionNo) {
|
|
24380
24508
|
var decisions = this.article.CatalogData.getDecisionsByNo(myPartListPos.decisions);
|
|
24381
24509
|
|
|
24382
24510
|
//const optionsForPrint: string[] = (myPartListPos.OptionsForPrint as string)?.split(';').map((o: string) => 'OPT' + o);
|
|
@@ -24427,7 +24555,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24427
24555
|
_loop2(i);
|
|
24428
24556
|
}
|
|
24429
24557
|
if (quanitity >= 1) {
|
|
24430
|
-
var _catalogCodex$toStrin
|
|
24558
|
+
var _catalogCodex$toStrin;
|
|
24431
24559
|
partlistArticlesToLoad.push({
|
|
24432
24560
|
CatalogCodex: (_catalogCodex$toStrin = catalogCodex.toString()) !== null && _catalogCodex$toStrin !== void 0 ? _catalogCodex$toStrin : this.article.catalogCodex,
|
|
24433
24561
|
BasketID: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.basketId,
|
|
@@ -24444,11 +24572,13 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24444
24572
|
RuleDesc: myRuleDesc,
|
|
24445
24573
|
RuleDesc_locales: myRuleDesc_locales,
|
|
24446
24574
|
PosInvisibility: myPartListPos.posInvisibility,
|
|
24447
|
-
|
|
24575
|
+
ConfigurationMode: myPartListPos.configurationMode,
|
|
24576
|
+
VariantValues: this.article.variantValuesForPla(myPartListPos.configurationMode, previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantValues, newConfigValues),
|
|
24448
24577
|
VariantItemData: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantItemData
|
|
24449
24578
|
//optionImgForPrint,
|
|
24450
24579
|
//optionsForPrint,
|
|
24451
24580
|
});
|
|
24581
|
+
if (myPartListPos.partlistGroup) partlistGroup.push(myPartListPos.partlistGroup);
|
|
24452
24582
|
}
|
|
24453
24583
|
return partlistArticlesToLoad;
|
|
24454
24584
|
}
|
|
@@ -24534,16 +24664,17 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24534
24664
|
}, {
|
|
24535
24665
|
key: "updateIDMSpecificFeature",
|
|
24536
24666
|
value: function updateIDMSpecificFeature(myArtOPS) {
|
|
24667
|
+
var _myArtOPS$option$idmV, _myArtOPS$option$idmV2, _myArtOPS$option$idmV3, _myArtOPS$option$idmV4, _myArtOPS$option$idmV5;
|
|
24537
24668
|
if (!this.article.parentHasSameOption(myArtOPS.optionCodex)) return;
|
|
24538
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24669
|
+
if ([90, 1090].includes((_myArtOPS$option$idmV = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV !== void 0 ? _myArtOPS$option$idmV : 0)) {
|
|
24539
24670
|
//R (Anschlusstyp R) - AVR
|
|
24540
24671
|
this.article.newPossibleAVRFilters = Object.keys(myArtOPS.visibleOptionValues);
|
|
24541
24672
|
}
|
|
24542
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24673
|
+
if ([89, 1089].includes((_myArtOPS$option$idmV2 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV2 !== void 0 ? _myArtOPS$option$idmV2 : 0)) {
|
|
24543
24674
|
//L (Anschlusstyp L) - AVL
|
|
24544
24675
|
this.article.newPossibleAVLFilters = Object.keys(myArtOPS.visibleOptionValues);
|
|
24545
24676
|
}
|
|
24546
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24677
|
+
if ([97, 1097].includes((_myArtOPS$option$idmV3 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV3 !== void 0 ? _myArtOPS$option$idmV3 : 0)) {
|
|
24547
24678
|
try {
|
|
24548
24679
|
var _myArtOPS$measureValu;
|
|
24549
24680
|
this.article.doUpdatePlannerSize = true;
|
|
@@ -24552,7 +24683,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24552
24683
|
LOG$e.warn('Invalid Planungdepth - IDMVariantenArt 97: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
|
|
24553
24684
|
}
|
|
24554
24685
|
}
|
|
24555
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24686
|
+
if ([96, 1096].includes((_myArtOPS$option$idmV4 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV4 !== void 0 ? _myArtOPS$option$idmV4 : 0) || myArtOPS.option.diameter) {
|
|
24556
24687
|
try {
|
|
24557
24688
|
var _myArtOPS$measureValu2;
|
|
24558
24689
|
this.article.doUpdatePlannerSize = true;
|
|
@@ -24561,7 +24692,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24561
24692
|
LOG$e.warn('Invalid Planungdepth - IDMVariantenArt 96: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
|
|
24562
24693
|
}
|
|
24563
24694
|
}
|
|
24564
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24695
|
+
if ([95, 1095].includes((_myArtOPS$option$idmV5 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV5 !== void 0 ? _myArtOPS$option$idmV5 : 0) || myArtOPS.option.diameter) {
|
|
24565
24696
|
try {
|
|
24566
24697
|
var _myArtOPS$measureValu3;
|
|
24567
24698
|
this.article.doUpdatePlannerSize = true;
|
|
@@ -24571,6 +24702,31 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24571
24702
|
}
|
|
24572
24703
|
}
|
|
24573
24704
|
}
|
|
24705
|
+
}, {
|
|
24706
|
+
key: "getValuesInfluencingOPT",
|
|
24707
|
+
value: function getValuesInfluencingOPT(featureNo) {
|
|
24708
|
+
var variantValuesArr = [];
|
|
24709
|
+
var decisions = this.decisions;
|
|
24710
|
+
var relevantDecisions = decisions.filter(function (d) {
|
|
24711
|
+
var _d$featureRefs;
|
|
24712
|
+
return (_d$featureRefs = d.featureRefs) === null || _d$featureRefs === void 0 ? void 0 : _d$featureRefs.includes(featureNo);
|
|
24713
|
+
});
|
|
24714
|
+
for (var i = 0; i < relevantDecisions.length; i++) {
|
|
24715
|
+
var decision = relevantDecisions[i];
|
|
24716
|
+
if (decision.decisionType == 1) {
|
|
24717
|
+
for (var j = 0; j < decision.optionCombinations.length; j++) {
|
|
24718
|
+
var oc = decision.optionCombinations[j];
|
|
24719
|
+
var variantValues = {};
|
|
24720
|
+
for (var key in oc.parsedOptionSetRefs) {
|
|
24721
|
+
if (key == featureNo) continue;
|
|
24722
|
+
variantValues[key] = oc.parsedOptionSetRefs[key].value[0];
|
|
24723
|
+
}
|
|
24724
|
+
variantValuesArr.push(variantValues);
|
|
24725
|
+
}
|
|
24726
|
+
}
|
|
24727
|
+
}
|
|
24728
|
+
return variantValuesArr;
|
|
24729
|
+
}
|
|
24574
24730
|
}, {
|
|
24575
24731
|
key: "evalMeasureFormula",
|
|
24576
24732
|
value: function evalMeasureFormula(formula) {
|
|
@@ -24670,6 +24826,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24670
24826
|
partlistDecisionNo: initParams.partlistDecisionNo,
|
|
24671
24827
|
partListParentArticle: initParams.parentArticle,
|
|
24672
24828
|
partlistArticleVisibleInTree: initParams.partlistArticleVisibleInTree,
|
|
24829
|
+
partlistArticleStandalone: initParams.partlistArticleStandalone,
|
|
24673
24830
|
hasPartlistArticle: initParams.hasPartlistArticle ? initParams.hasPartlistArticle : false,
|
|
24674
24831
|
noPrice: (_initParams$noPrice = initParams.noPrice) !== null && _initParams$noPrice !== void 0 ? _initParams$noPrice : false,
|
|
24675
24832
|
retailArticleNr: initParams.RetailArticleNr ? initParams.RetailArticleNr : initParams.retailArticleNr,
|
|
@@ -24739,7 +24896,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24739
24896
|
currentAccessorires: [],
|
|
24740
24897
|
parentElementId: isNotDockedAccessoire ? this.set.getDivaArticles()[this.relatedToBasketId].elementId : undefined,
|
|
24741
24898
|
isNotDockedAccessoire: isNotDockedAccessoire,
|
|
24742
|
-
svgsWithFormula: []
|
|
24899
|
+
svgsWithFormula: [],
|
|
24900
|
+
varaintValuesInfluencingAVLAVRFilter: []
|
|
24743
24901
|
};
|
|
24744
24902
|
var plannerElement = this.article.catalogArticle.catalogPlannerArticle;
|
|
24745
24903
|
if (plannerElement) {
|
|
@@ -24810,6 +24968,11 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24810
24968
|
get: function get() {
|
|
24811
24969
|
return this.article.partlistArticleVisibleInTree && this.hasOptionsThatParentDoesNotHave;
|
|
24812
24970
|
}
|
|
24971
|
+
}, {
|
|
24972
|
+
key: "partlistArticleStandalone",
|
|
24973
|
+
get: function get() {
|
|
24974
|
+
return this.article.partlistArticleStandalone;
|
|
24975
|
+
}
|
|
24813
24976
|
}, {
|
|
24814
24977
|
key: "partlistArticlesReqursive",
|
|
24815
24978
|
get: function get() {
|
|
@@ -24824,6 +24987,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24824
24987
|
get: function get() {
|
|
24825
24988
|
var _this$partListParentA;
|
|
24826
24989
|
if (!this.partListParentArticle) return false;
|
|
24990
|
+
if (this.partlistArticleStandalone) return true;
|
|
24827
24991
|
//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
|
|
24828
24992
|
// first usecase https://app.asana.com/0/1204193128085691/1204389027061737
|
|
24829
24993
|
var myOptions = this.articleOptionStatesKeys;
|
|
@@ -24834,17 +24998,24 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24834
24998
|
}
|
|
24835
24999
|
}, {
|
|
24836
25000
|
key: "getRecursivePartlistArticles",
|
|
24837
|
-
value: function getRecursivePartlistArticles(onlyVisible) {
|
|
25001
|
+
value: function getRecursivePartlistArticles(onlyVisible, excludeStandalonePla) {
|
|
24838
25002
|
var partlistArticles = {};
|
|
24839
25003
|
for (var basketId in this.partlistArticles) {
|
|
24840
25004
|
var partlistArticle = this.partlistArticles[basketId];
|
|
24841
|
-
if (!onlyVisible || partlistArticle.partlistArticleVisibleInTree) partlistArticles[basketId] = partlistArticle;
|
|
25005
|
+
if (!onlyVisible || partlistArticle.partlistArticleVisibleInTree || !excludeStandalonePla && partlistArticle.partlistArticleStandalone) partlistArticles[basketId] = partlistArticle;
|
|
24842
25006
|
if (partlistArticle.hasPartlistArticle) {
|
|
24843
|
-
partlistArticles = _objectSpread$e(_objectSpread$e({}, partlistArticles), partlistArticle.getRecursivePartlistArticles(onlyVisible));
|
|
25007
|
+
partlistArticles = _objectSpread$e(_objectSpread$e({}, partlistArticles), partlistArticle.getRecursivePartlistArticles(onlyVisible, excludeStandalonePla));
|
|
24844
25008
|
}
|
|
24845
25009
|
}
|
|
24846
25010
|
return partlistArticles;
|
|
24847
25011
|
}
|
|
25012
|
+
}, {
|
|
25013
|
+
key: "variantValuesForPla",
|
|
25014
|
+
value: function variantValuesForPla(configurationMode, previousPartlistArticleVariantValues, newConfigValues) {
|
|
25015
|
+
//if configurationMode is true its previous values are more important than the values of the parentelement because its standalone configurable
|
|
25016
|
+
if (configurationMode) return _objectSpread$e(_objectSpread$e({}, newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {}), previousPartlistArticleVariantValues !== null && previousPartlistArticleVariantValues !== void 0 ? previousPartlistArticleVariantValues : {});
|
|
25017
|
+
return _objectSpread$e(_objectSpread$e({}, previousPartlistArticleVariantValues !== null && previousPartlistArticleVariantValues !== void 0 ? previousPartlistArticleVariantValues : {}), newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {});
|
|
25018
|
+
}
|
|
24848
25019
|
}, {
|
|
24849
25020
|
key: "partlistArticlesAsArray",
|
|
24850
25021
|
get: function get() {
|
|
@@ -25488,31 +25659,32 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25488
25659
|
});
|
|
25489
25660
|
if (firstMatch) return firstMatch;
|
|
25490
25661
|
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)) {
|
|
25491
|
-
|
|
25662
|
+
var ops = this.partListParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
|
|
25663
|
+
if (ops) return ops;
|
|
25492
25664
|
}
|
|
25493
25665
|
if (Object.keys((_this$partlistArticle3 = this.partlistArticles) !== null && _this$partlistArticle3 !== void 0 ? _this$partlistArticle3 : {}).length > 0) {
|
|
25494
25666
|
for (var key in this.partlistArticles) {
|
|
25495
25667
|
if (from === key) continue;
|
|
25496
25668
|
var partlistArticle = this.partlistArticles[key];
|
|
25497
|
-
var
|
|
25498
|
-
if (
|
|
25669
|
+
var _ops = partlistArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
|
|
25670
|
+
if (_ops) return _ops;
|
|
25499
25671
|
}
|
|
25500
25672
|
}
|
|
25501
25673
|
var _iterator5 = _createForOfIteratorHelper$6(this.articleOptionStatesData),
|
|
25502
25674
|
_step5;
|
|
25503
25675
|
try {
|
|
25504
25676
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
25505
|
-
var
|
|
25677
|
+
var _ops3 = _step5.value;
|
|
25506
25678
|
if (!codex.includes('.')) {
|
|
25507
|
-
if (
|
|
25508
|
-
return
|
|
25679
|
+
if (_ops3.option.ocd == codex && _ops3.isDoShow && !_ops3.isDisabled) {
|
|
25680
|
+
return _ops3;
|
|
25509
25681
|
}
|
|
25510
25682
|
} else {
|
|
25511
25683
|
var _this$parentOptionCod = this.parentOptionCodex(codex),
|
|
25512
25684
|
optionCodex = _this$parentOptionCod.optionCodex,
|
|
25513
25685
|
partenOptionCodex = _this$parentOptionCod.partenOptionCodex;
|
|
25514
|
-
if ((
|
|
25515
|
-
return
|
|
25686
|
+
if ((_ops3.option.ocd == optionCodex || _ops3.option.codex == optionCodex) && _ops3.option.parentOptionCodex == partenOptionCodex) {
|
|
25687
|
+
return _ops3;
|
|
25516
25688
|
}
|
|
25517
25689
|
}
|
|
25518
25690
|
}
|
|
@@ -25522,8 +25694,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25522
25694
|
_iterator5.f();
|
|
25523
25695
|
}
|
|
25524
25696
|
if (checkOnAccessoireParent && this.accessoireParentArticle) {
|
|
25525
|
-
var
|
|
25526
|
-
if (
|
|
25697
|
+
var _ops2 = this.accessoireParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
|
|
25698
|
+
if (_ops2) return _ops2;
|
|
25527
25699
|
}
|
|
25528
25700
|
return undefined;
|
|
25529
25701
|
}
|
|
@@ -25717,9 +25889,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25717
25889
|
get: function get() {
|
|
25718
25890
|
var _this$partlistArticle4;
|
|
25719
25891
|
if (Object.values((_this$partlistArticle4 = this.partlistArticles) !== null && _this$partlistArticle4 !== void 0 ? _this$partlistArticle4 : {}).find(function (p) {
|
|
25720
|
-
return p.partlistArticleVisibleInTree;
|
|
25892
|
+
return p.partlistArticleVisibleInTree || p.partlistArticleStandalone;
|
|
25721
25893
|
})) return true;
|
|
25722
|
-
return this.partlistArticleVisibleInTree;
|
|
25894
|
+
return this.partlistArticleVisibleInTree || this.partlistArticleStandalone;
|
|
25723
25895
|
}
|
|
25724
25896
|
}, {
|
|
25725
25897
|
key: "partListParentArticle",
|
|
@@ -26180,13 +26352,15 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26180
26352
|
invisible: ops.isInvisible,
|
|
26181
26353
|
visibleOPVs: Object.values(ops.visibleOptionValues).map(function (v) {
|
|
26182
26354
|
return v.codex;
|
|
26183
|
-
})
|
|
26355
|
+
}),
|
|
26356
|
+
optName: ops.optionName
|
|
26184
26357
|
};
|
|
26185
26358
|
if (ops.freeText) {
|
|
26186
26359
|
ret[ops.optionCodex + '_val'] = {
|
|
26187
26360
|
selOPV: ops.freeText,
|
|
26188
26361
|
visibleOPVs: [],
|
|
26189
|
-
invisible: true
|
|
26362
|
+
invisible: true,
|
|
26363
|
+
optName: ''
|
|
26190
26364
|
};
|
|
26191
26365
|
}
|
|
26192
26366
|
}
|
|
@@ -26318,8 +26492,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26318
26492
|
_step14;
|
|
26319
26493
|
try {
|
|
26320
26494
|
for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
|
|
26495
|
+
var _ops$idmVariantenArt;
|
|
26321
26496
|
var ops = _step14.value;
|
|
26322
|
-
if (ops.isDoShow && (!(ops.idmVariantenArt
|
|
26497
|
+
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) {
|
|
26323
26498
|
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 : ''));
|
|
26324
26499
|
}
|
|
26325
26500
|
}
|
|
@@ -26472,6 +26647,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26472
26647
|
}, {
|
|
26473
26648
|
key: "deletePartlistArticles",
|
|
26474
26649
|
value: function deletePartlistArticles() {
|
|
26650
|
+
for (var pl in this.article.partlistArticles) {
|
|
26651
|
+
this.article.partlistArticles[pl].deleted = true;
|
|
26652
|
+
}
|
|
26475
26653
|
if (Object.keys(this.article.partlistArticles).length) this.article.previousPartlistArticles = this.article.partlistArticles;
|
|
26476
26654
|
this.article.partlistArticles = {};
|
|
26477
26655
|
}
|
|
@@ -26762,9 +26940,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26762
26940
|
_step21;
|
|
26763
26941
|
try {
|
|
26764
26942
|
for (_iterator21.s(); !(_step21 = _iterator21.n()).done;) {
|
|
26765
|
-
var
|
|
26766
|
-
if (
|
|
26767
|
-
ret = this.checkOptionSearchOPV(
|
|
26943
|
+
var _ops4 = _step21.value;
|
|
26944
|
+
if (_ops4.option.ocd == optionCodex && _ops4.isDoShow && (parentOptionCodex == '' || parentOptionCodex == _ops4.option.parentOptionCodex)) {
|
|
26945
|
+
ret = this.checkOptionSearchOPV(_ops4.option, optionValueCodex, ret);
|
|
26768
26946
|
}
|
|
26769
26947
|
}
|
|
26770
26948
|
//fallback for pfister classification usecase
|
|
@@ -26777,9 +26955,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26777
26955
|
_step22;
|
|
26778
26956
|
try {
|
|
26779
26957
|
for (_iterator22.s(); !(_step22 = _iterator22.n()).done;) {
|
|
26780
|
-
var
|
|
26781
|
-
if (
|
|
26782
|
-
return this.checkOptionSearchOPV(
|
|
26958
|
+
var _ops5 = _step22.value;
|
|
26959
|
+
if (_ops5.option.ocd == optionCodex && optionCodex !== null && optionCodex !== void 0 && optionCodex.startsWith('OPTOPT') && (parentOptionCodex == '' || parentOptionCodex == _ops5.option.parentOptionCodex)) {
|
|
26960
|
+
return this.checkOptionSearchOPV(_ops5.option, optionValueCodex, ret);
|
|
26783
26961
|
}
|
|
26784
26962
|
}
|
|
26785
26963
|
} catch (err) {
|
|
@@ -27002,6 +27180,18 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27002
27180
|
}
|
|
27003
27181
|
return visibleOptionValues[Object.keys(visibleOptionValues)[0]];
|
|
27004
27182
|
}
|
|
27183
|
+
}, {
|
|
27184
|
+
key: "getVariantValuesInfluencingAVLAVRFilter",
|
|
27185
|
+
value: function getVariantValuesInfluencingAVLAVRFilter() {
|
|
27186
|
+
var filterOptions = [(!this.CatalogData.isIDMFormat ? 'OPT' : '') + '89', (!this.CatalogData.isIDMFormat ? 'OPT' : '') + '90'];
|
|
27187
|
+
var variantValues = [];
|
|
27188
|
+
for (var i = 0; i < filterOptions.length; i++) {
|
|
27189
|
+
if (this.getArticleOptionState(filterOptions[i])) {
|
|
27190
|
+
variantValues = [].concat(_toConsumableArray(this.engine.getValuesInfluencingOPT(filterOptions[i])), _toConsumableArray(variantValues));
|
|
27191
|
+
}
|
|
27192
|
+
}
|
|
27193
|
+
return variantValues;
|
|
27194
|
+
}
|
|
27005
27195
|
}, {
|
|
27006
27196
|
key: "updateOptionsWithAddToMeasure",
|
|
27007
27197
|
value: function updateOptionsWithAddToMeasure(optionCodex) {
|
|
@@ -27072,7 +27262,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27072
27262
|
break;
|
|
27073
27263
|
}
|
|
27074
27264
|
_context.next = 4;
|
|
27075
|
-
return import('./ShelfPlanner-
|
|
27265
|
+
return import('./ShelfPlanner-4cdfc179.js');
|
|
27076
27266
|
case 4:
|
|
27077
27267
|
_yield$import = _context.sent;
|
|
27078
27268
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -27135,6 +27325,39 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27135
27325
|
if (!this.partListParentArticle) return true;
|
|
27136
27326
|
return !!this.partListParentArticle.getArticleOptionStateFlat(opt) || this.partlistArticleVisibleInTree;
|
|
27137
27327
|
}
|
|
27328
|
+
}, {
|
|
27329
|
+
key: "afterInit",
|
|
27330
|
+
value: function () {
|
|
27331
|
+
var _afterInit = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
27332
|
+
var variantValues, i, _ops$visibleOptionVal, ops, _ops$visibleOptionVal2;
|
|
27333
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
27334
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27335
|
+
case 0:
|
|
27336
|
+
if (this.CatalogData.useDiomexConfigLogic) {
|
|
27337
|
+
_context2.next = 2;
|
|
27338
|
+
break;
|
|
27339
|
+
}
|
|
27340
|
+
return _context2.abrupt("return", {});
|
|
27341
|
+
case 2:
|
|
27342
|
+
variantValues = {};
|
|
27343
|
+
for (i = 0; i < this.articleOptionStates.length; i++) {
|
|
27344
|
+
ops = this.articleOptionStates[i];
|
|
27345
|
+
if (ops.val === undefined && Object.values((_ops$visibleOptionVal = ops.visibleOptionValues) !== null && _ops$visibleOptionVal !== void 0 ? _ops$visibleOptionVal : {}).length && !ops.isInvisible) {
|
|
27346
|
+
variantValues[ops.optionCodex] = Object.values((_ops$visibleOptionVal2 = ops.visibleOptionValues) !== null && _ops$visibleOptionVal2 !== void 0 ? _ops$visibleOptionVal2 : {})[0].codex;
|
|
27347
|
+
}
|
|
27348
|
+
}
|
|
27349
|
+
return _context2.abrupt("return", variantValues);
|
|
27350
|
+
case 5:
|
|
27351
|
+
case "end":
|
|
27352
|
+
return _context2.stop();
|
|
27353
|
+
}
|
|
27354
|
+
}, _callee2, this);
|
|
27355
|
+
}));
|
|
27356
|
+
function afterInit() {
|
|
27357
|
+
return _afterInit.apply(this, arguments);
|
|
27358
|
+
}
|
|
27359
|
+
return afterInit;
|
|
27360
|
+
}()
|
|
27138
27361
|
}, {
|
|
27139
27362
|
key: "getValidValues",
|
|
27140
27363
|
value: function getValidValues(myValues, mergeOptionToSameOption, setConfigDoesOverWrite) {
|
|
@@ -27183,8 +27406,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27183
27406
|
}
|
|
27184
27407
|
}
|
|
27185
27408
|
for (var _key2 in myValues) {
|
|
27186
|
-
var
|
|
27187
|
-
if (
|
|
27409
|
+
var _ops6 = this.getArticleOptionState(_key2);
|
|
27410
|
+
if (_ops6) {
|
|
27188
27411
|
validValues[_key2] = myValues[_key2];
|
|
27189
27412
|
} else if (_key2.endsWith('_val') && this.getArticleOptionState(_key2.replace(/_val/g, ''))) {
|
|
27190
27413
|
validValues[_key2] = myValues[_key2];
|
|
@@ -27193,10 +27416,10 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27193
27416
|
_step24;
|
|
27194
27417
|
try {
|
|
27195
27418
|
for (_iterator24.s(); !(_step24 = _iterator24.n()).done;) {
|
|
27196
|
-
var
|
|
27197
|
-
if (
|
|
27198
|
-
var values = this.checkOptionSearchOPV(
|
|
27199
|
-
if (values !== null && values !== void 0 && values.opv) validValues[
|
|
27419
|
+
var _ops7 = _step24.value;
|
|
27420
|
+
if (_ops7.optionOcd == _key2) {
|
|
27421
|
+
var values = this.checkOptionSearchOPV(_ops7.option, myValues[_key2], {});
|
|
27422
|
+
if (values !== null && values !== void 0 && values.opv) validValues[_ops7.optionCodex] = values.opv.codex;
|
|
27200
27423
|
}
|
|
27201
27424
|
}
|
|
27202
27425
|
} catch (err) {
|
|
@@ -27206,9 +27429,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27206
27429
|
}
|
|
27207
27430
|
}
|
|
27208
27431
|
//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
|
|
27209
|
-
if (
|
|
27210
|
-
var
|
|
27211
|
-
if ((
|
|
27432
|
+
if (_ops6) {
|
|
27433
|
+
var _ops6$valCodex;
|
|
27434
|
+
if ((_ops6$valCodex = _ops6.valCodex) !== null && _ops6$valCodex !== void 0 && _ops6$valCodex.startsWith('OPVSUB_') && !validValues[_key2 + '.' + _key2] && this.getArticleOptionState(_key2 + '.' + _key2)) {
|
|
27212
27435
|
validValues[_key2 + '.' + _key2] = myValues[_key2];
|
|
27213
27436
|
}
|
|
27214
27437
|
}
|
|
@@ -27548,7 +27771,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27548
27771
|
var ops = _step28.value;
|
|
27549
27772
|
var OP = ops.optionCodex;
|
|
27550
27773
|
if (ops) {
|
|
27551
|
-
var
|
|
27774
|
+
var _ops$idmVariantenArt2;
|
|
27775
|
+
var doHideSizeOption = [95, 96, 97, 1095, 1096, 1097].includes((_ops$idmVariantenArt2 = ops.idmVariantenArt) !== null && _ops$idmVariantenArt2 !== void 0 ? _ops$idmVariantenArt2 : 0);
|
|
27552
27776
|
if (ops.isVisibleFreeText == true) {
|
|
27553
27777
|
doHideSizeOption = false;
|
|
27554
27778
|
}
|
|
@@ -27719,15 +27943,15 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27719
27943
|
value: function validateAndSetNewConfigValues(newConfigValues) {
|
|
27720
27944
|
var freeTextValues = {};
|
|
27721
27945
|
for (var key in newConfigValues) {
|
|
27722
|
-
var
|
|
27946
|
+
var _ops8, _ops9, _newConfigValues$key;
|
|
27723
27947
|
var ops = this.getArticleOptionState(key);
|
|
27724
27948
|
var _this$parentOptionCod5 = this.parentOptionCodex(key),
|
|
27725
27949
|
optionCodex = _this$parentOptionCod5.optionCodex,
|
|
27726
27950
|
partenOptionCodex = _this$parentOptionCod5.partenOptionCodex;
|
|
27727
|
-
if ((
|
|
27951
|
+
if ((_ops8 = ops) !== null && _ops8 !== void 0 && _ops8.isMultiselect) {
|
|
27728
27952
|
ops = this.handleMultiselect(ops, newConfigValues, key);
|
|
27729
27953
|
}
|
|
27730
|
-
if ((
|
|
27954
|
+
if ((_ops9 = ops) !== null && _ops9 !== void 0 && _ops9.isFreeText) {
|
|
27731
27955
|
this.handleFreeText(ops, newConfigValues, key, freeTextValues);
|
|
27732
27956
|
}
|
|
27733
27957
|
var opvCodex = (_newConfigValues$key = newConfigValues[key]) === null || _newConfigValues$key === void 0 ? void 0 : _newConfigValues$key.split(';')[0];
|
|
@@ -27738,8 +27962,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27738
27962
|
var myFreeText = foundItem.opv.isFreeText ? newConfigValues[optionCodex + '_val'] : undefined;
|
|
27739
27963
|
this.engine.updateArtOPV(foundItem.opv, foundItem.opt.codex, this.getArticleOptionState(foundItem.opt.codex), myFreeText);
|
|
27740
27964
|
} else {
|
|
27741
|
-
var
|
|
27742
|
-
if (ops && !((
|
|
27965
|
+
var _ops10;
|
|
27966
|
+
if (ops && !((_ops10 = ops) !== null && _ops10 !== void 0 && _ops10.isFreeText)) {
|
|
27743
27967
|
// to initialize freetexts where the freetext is not the only selectable opv in the options
|
|
27744
27968
|
this.checkIfSelectableOpvIsFreetext(ops, opvCodex, newConfigValues);
|
|
27745
27969
|
}
|
|
@@ -27996,7 +28220,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
27996
28220
|
while (1) switch (_context5.prev = _context5.next) {
|
|
27997
28221
|
case 0:
|
|
27998
28222
|
if (!(article.articleType == 'OPTION' || article.articleType == 'OPTIONTREE')) {
|
|
27999
|
-
_context5.next =
|
|
28223
|
+
_context5.next = 11;
|
|
28000
28224
|
break;
|
|
28001
28225
|
}
|
|
28002
28226
|
_context5.next = 3;
|
|
@@ -28005,13 +28229,20 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28005
28229
|
_context5.next = 5;
|
|
28006
28230
|
return this.updateCfgValues(article, defaultValues, variantValues);
|
|
28007
28231
|
case 5:
|
|
28008
|
-
if (!(
|
|
28232
|
+
if (!(from === 'initializingPartlist')) {
|
|
28009
28233
|
_context5.next = 8;
|
|
28010
28234
|
break;
|
|
28011
28235
|
}
|
|
28012
28236
|
_context5.next = 8;
|
|
28013
|
-
return
|
|
28237
|
+
return this.updateEmptyOption(article);
|
|
28014
28238
|
case 8:
|
|
28239
|
+
if (!(article.set.PlannerMode !== 'BoxPlanner')) {
|
|
28240
|
+
_context5.next = 11;
|
|
28241
|
+
break;
|
|
28242
|
+
}
|
|
28243
|
+
_context5.next = 11;
|
|
28244
|
+
return setHandlerInstance.updateArticlesOptionStatesOfActSet(article.set, defaultValues, [article.basketId], ignorePlanner, from);
|
|
28245
|
+
case 11:
|
|
28015
28246
|
case "end":
|
|
28016
28247
|
return _context5.stop();
|
|
28017
28248
|
}
|
|
@@ -28037,7 +28268,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28037
28268
|
key: "updateArticlesOptionStates",
|
|
28038
28269
|
value: function () {
|
|
28039
28270
|
var _updateArticlesOptionStates = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(myValues, targetArticlesWithNewValues, targetArticlesToUpdate, articles, from) {
|
|
28040
|
-
var newEDOExtraArticles, partlistArticlesToLoad, valuesArray, i, actArticle,
|
|
28271
|
+
var newEDOExtraArticles, partlistArticlesToLoad, valuesArray, i, _actArticle, actArticle, newPLATL, _actArticle$checkDefa, variantValues, triggerUpdate, pla;
|
|
28041
28272
|
return _regeneratorRuntime.wrap(function _callee5$(_context6) {
|
|
28042
28273
|
while (1) switch (_context6.prev = _context6.next) {
|
|
28043
28274
|
case 0:
|
|
@@ -28047,74 +28278,79 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28047
28278
|
i = 0;
|
|
28048
28279
|
case 4:
|
|
28049
28280
|
if (!(i < targetArticlesToUpdate.length)) {
|
|
28050
|
-
_context6.next =
|
|
28281
|
+
_context6.next = 40;
|
|
28051
28282
|
break;
|
|
28052
28283
|
}
|
|
28053
28284
|
valuesArray[i] = {};
|
|
28054
28285
|
actArticle = articles[targetArticlesToUpdate[i]];
|
|
28286
|
+
if ((_actArticle = actArticle) !== null && _actArticle !== void 0 && _actArticle.deleted && actArticle.isPartListArticle && actArticle.partListParentArticle) {
|
|
28287
|
+
actArticle = actArticle.partListParentArticle.partlistArticles[actArticle.basketId];
|
|
28288
|
+
}
|
|
28055
28289
|
if (!(!actArticle || actArticle.deleted)) {
|
|
28056
|
-
_context6.next =
|
|
28290
|
+
_context6.next = 12;
|
|
28057
28291
|
break;
|
|
28058
28292
|
}
|
|
28059
28293
|
targetArticlesToUpdate.splice(i, 1);
|
|
28060
28294
|
i--;
|
|
28061
|
-
return _context6.abrupt("continue",
|
|
28062
|
-
case
|
|
28295
|
+
return _context6.abrupt("continue", 37);
|
|
28296
|
+
case 12:
|
|
28063
28297
|
if (targetArticlesWithNewValues.includes(targetArticlesToUpdate[i])) {
|
|
28064
28298
|
valuesArray[i] = actArticle.getValidValues(_objectSpread$d({}, myValues), actArticle.CatalogData.mergeOptionsToSameOption);
|
|
28065
28299
|
}
|
|
28066
28300
|
|
|
28067
28301
|
//only set config if valuesArray are not empty or the article is initializing
|
|
28302
|
+
newPLATL = void 0; // partlistarticle to load
|
|
28068
28303
|
if (!(Object.entries(valuesArray[i]).length > 0 || from !== null && from !== void 0 && from.startsWith('initializing'))) {
|
|
28069
|
-
_context6.next =
|
|
28304
|
+
_context6.next = 29;
|
|
28070
28305
|
break;
|
|
28071
28306
|
}
|
|
28072
|
-
_context6.next =
|
|
28307
|
+
_context6.next = 17;
|
|
28073
28308
|
return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
|
|
28074
|
-
case
|
|
28075
|
-
|
|
28309
|
+
case 17:
|
|
28310
|
+
newPLATL = _context6.sent;
|
|
28076
28311
|
_actArticle$checkDefa = actArticle.checkDefaultGlobalOpt(valuesArray[i]), variantValues = _actArticle$checkDefa.variantValues, triggerUpdate = _actArticle$checkDefa.triggerUpdate;
|
|
28077
28312
|
valuesArray[i] = variantValues;
|
|
28078
|
-
_context6.next =
|
|
28313
|
+
_context6.next = 22;
|
|
28079
28314
|
return this.updateAccessoriesFromGlobalOption(valuesArray[i], actArticle);
|
|
28080
|
-
case
|
|
28315
|
+
case 22:
|
|
28081
28316
|
if (!triggerUpdate) {
|
|
28082
|
-
_context6.next =
|
|
28317
|
+
_context6.next = 26;
|
|
28083
28318
|
break;
|
|
28084
28319
|
}
|
|
28085
|
-
_context6.next =
|
|
28320
|
+
_context6.next = 25;
|
|
28086
28321
|
return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
|
|
28087
|
-
case
|
|
28088
|
-
|
|
28089
|
-
case
|
|
28090
|
-
partlistArticlesToLoad = partlistArticlesToLoad.concat(newPartlistArticlesToLoad);
|
|
28322
|
+
case 25:
|
|
28323
|
+
newPLATL = _context6.sent;
|
|
28324
|
+
case 26:
|
|
28091
28325
|
newEDOExtraArticles = this.checkEDOArticles(articles);
|
|
28092
|
-
_context6.next =
|
|
28326
|
+
_context6.next = 32;
|
|
28093
28327
|
break;
|
|
28094
|
-
case
|
|
28095
|
-
_context6.t0 = partlistArticlesToLoad;
|
|
28328
|
+
case 29:
|
|
28096
28329
|
_context6.next = 31;
|
|
28097
28330
|
return this.updateCfgValues(actArticle, {}, {}, undefined, undefined, from == 'calcVariant');
|
|
28098
28331
|
case 31:
|
|
28099
|
-
|
|
28100
|
-
|
|
28101
|
-
|
|
28332
|
+
newPLATL = _context6.sent;
|
|
28333
|
+
case 32:
|
|
28334
|
+
_context6.next = 34;
|
|
28335
|
+
return this.updateEmptyOption(actArticle);
|
|
28336
|
+
case 34:
|
|
28337
|
+
pla = _context6.sent;
|
|
28338
|
+
if (pla !== undefined) newPLATL = pla;
|
|
28339
|
+
partlistArticlesToLoad = partlistArticlesToLoad.concat(newPLATL);
|
|
28340
|
+
case 37:
|
|
28102
28341
|
i++;
|
|
28103
28342
|
_context6.next = 4;
|
|
28104
28343
|
break;
|
|
28105
|
-
case 36:
|
|
28106
|
-
_context6.next = 38;
|
|
28107
|
-
return this.triggerUpdateOnVisiblePartilstArticles(targetArticlesToUpdate, articles);
|
|
28108
|
-
case 38:
|
|
28109
|
-
_context6.next = 40;
|
|
28110
|
-
return this.triggerMoreUpdates(targetArticlesToUpdate, valuesArray, articles, from);
|
|
28111
28344
|
case 40:
|
|
28345
|
+
_context6.next = 42;
|
|
28346
|
+
return this.triggerUpdateOnVisiblePartilstArticles(targetArticlesToUpdate, articles);
|
|
28347
|
+
case 42:
|
|
28112
28348
|
return _context6.abrupt("return", {
|
|
28113
28349
|
newEDOExtraArticles: newEDOExtraArticles,
|
|
28114
28350
|
targetArticlesToUpdate: targetArticlesToUpdate,
|
|
28115
28351
|
partlistArticlesToLoad: partlistArticlesToLoad
|
|
28116
28352
|
});
|
|
28117
|
-
case
|
|
28353
|
+
case 43:
|
|
28118
28354
|
case "end":
|
|
28119
28355
|
return _context6.stop();
|
|
28120
28356
|
}
|
|
@@ -28126,38 +28362,38 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28126
28362
|
return updateArticlesOptionStates;
|
|
28127
28363
|
}()
|
|
28128
28364
|
}, {
|
|
28129
|
-
key: "
|
|
28365
|
+
key: "triggerUpdateOnVisiblePartilstArticles",
|
|
28130
28366
|
value: function () {
|
|
28131
|
-
var
|
|
28132
|
-
var
|
|
28367
|
+
var _triggerUpdateOnVisiblePartilstArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(targetArticlesToUpdate, articles) {
|
|
28368
|
+
var _articles$targetArtic;
|
|
28369
|
+
var key, configuredArticle, toIgnore, actArticle;
|
|
28133
28370
|
return _regeneratorRuntime.wrap(function _callee6$(_context7) {
|
|
28134
28371
|
while (1) switch (_context7.prev = _context7.next) {
|
|
28135
28372
|
case 0:
|
|
28136
|
-
if (!(
|
|
28137
|
-
_context7.next =
|
|
28373
|
+
if (!((_articles$targetArtic = articles[targetArticlesToUpdate[0]]) !== null && _articles$targetArtic !== void 0 && _articles$targetArtic.hasPartlistArticleVisibleInTree)) {
|
|
28374
|
+
_context7.next = 13;
|
|
28138
28375
|
break;
|
|
28139
28376
|
}
|
|
28140
|
-
|
|
28377
|
+
_context7.t0 = _regeneratorRuntime.keys(articles);
|
|
28141
28378
|
case 2:
|
|
28142
|
-
|
|
28143
|
-
case 3:
|
|
28144
|
-
if (!(i < targetArticlesToUpdate.length)) {
|
|
28379
|
+
if ((_context7.t1 = _context7.t0()).done) {
|
|
28145
28380
|
_context7.next = 13;
|
|
28146
28381
|
break;
|
|
28147
28382
|
}
|
|
28148
|
-
|
|
28149
|
-
|
|
28150
|
-
|
|
28383
|
+
key = _context7.t1.value;
|
|
28384
|
+
configuredArticle = articles[targetArticlesToUpdate[0]];
|
|
28385
|
+
toIgnore = configuredArticle.pushParentId();
|
|
28386
|
+
if (![configuredArticle.basketId].concat(_toConsumableArray(toIgnore)).includes(key)) {
|
|
28387
|
+
_context7.next = 8;
|
|
28151
28388
|
break;
|
|
28152
28389
|
}
|
|
28153
|
-
_context7.
|
|
28154
|
-
return this.updateCfgValues(article, valuesArray[i], {});
|
|
28390
|
+
return _context7.abrupt("continue", 2);
|
|
28155
28391
|
case 8:
|
|
28156
|
-
|
|
28157
|
-
|
|
28158
|
-
|
|
28159
|
-
|
|
28160
|
-
_context7.next =
|
|
28392
|
+
actArticle = articles[key];
|
|
28393
|
+
_context7.next = 11;
|
|
28394
|
+
return this.updateCfgValues(actArticle, {}, {});
|
|
28395
|
+
case 11:
|
|
28396
|
+
_context7.next = 2;
|
|
28161
28397
|
break;
|
|
28162
28398
|
case 13:
|
|
28163
28399
|
case "end":
|
|
@@ -28165,55 +28401,43 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28165
28401
|
}
|
|
28166
28402
|
}, _callee6, this);
|
|
28167
28403
|
}));
|
|
28168
|
-
function
|
|
28169
|
-
return
|
|
28404
|
+
function triggerUpdateOnVisiblePartilstArticles(_x19, _x20) {
|
|
28405
|
+
return _triggerUpdateOnVisiblePartilstArticles.apply(this, arguments);
|
|
28170
28406
|
}
|
|
28171
|
-
return
|
|
28407
|
+
return triggerUpdateOnVisiblePartilstArticles;
|
|
28172
28408
|
}()
|
|
28173
28409
|
}, {
|
|
28174
|
-
key: "
|
|
28410
|
+
key: "updateEmptyOption",
|
|
28175
28411
|
value: function () {
|
|
28176
|
-
var
|
|
28177
|
-
var
|
|
28178
|
-
var key, configuredArticle, toIgnore, actArticle;
|
|
28412
|
+
var _updateEmptyOption = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(article) {
|
|
28413
|
+
var emyptsOptionsToSet;
|
|
28179
28414
|
return _regeneratorRuntime.wrap(function _callee7$(_context8) {
|
|
28180
28415
|
while (1) switch (_context8.prev = _context8.next) {
|
|
28181
28416
|
case 0:
|
|
28182
|
-
|
|
28183
|
-
|
|
28184
|
-
break;
|
|
28185
|
-
}
|
|
28186
|
-
_context8.t0 = _regeneratorRuntime.keys(articles);
|
|
28417
|
+
_context8.next = 2;
|
|
28418
|
+
return article.afterInit();
|
|
28187
28419
|
case 2:
|
|
28188
|
-
|
|
28189
|
-
|
|
28190
|
-
|
|
28191
|
-
}
|
|
28192
|
-
key = _context8.t1.value;
|
|
28193
|
-
configuredArticle = articles[targetArticlesToUpdate[0]];
|
|
28194
|
-
toIgnore = configuredArticle.pushParentId();
|
|
28195
|
-
if (![configuredArticle.basketId].concat(_toConsumableArray(toIgnore)).includes(key)) {
|
|
28196
|
-
_context8.next = 8;
|
|
28420
|
+
emyptsOptionsToSet = _context8.sent;
|
|
28421
|
+
if (!Object.keys(emyptsOptionsToSet).length) {
|
|
28422
|
+
_context8.next = 7;
|
|
28197
28423
|
break;
|
|
28198
28424
|
}
|
|
28199
|
-
|
|
28425
|
+
_context8.next = 6;
|
|
28426
|
+
return this.updateCfgValues(article, emyptsOptionsToSet, {});
|
|
28427
|
+
case 6:
|
|
28428
|
+
return _context8.abrupt("return", _context8.sent);
|
|
28429
|
+
case 7:
|
|
28430
|
+
return _context8.abrupt("return", undefined);
|
|
28200
28431
|
case 8:
|
|
28201
|
-
actArticle = articles[key];
|
|
28202
|
-
_context8.next = 11;
|
|
28203
|
-
return this.updateCfgValues(actArticle, {}, {});
|
|
28204
|
-
case 11:
|
|
28205
|
-
_context8.next = 2;
|
|
28206
|
-
break;
|
|
28207
|
-
case 13:
|
|
28208
28432
|
case "end":
|
|
28209
28433
|
return _context8.stop();
|
|
28210
28434
|
}
|
|
28211
28435
|
}, _callee7, this);
|
|
28212
28436
|
}));
|
|
28213
|
-
function
|
|
28214
|
-
return
|
|
28437
|
+
function updateEmptyOption(_x21) {
|
|
28438
|
+
return _updateEmptyOption.apply(this, arguments);
|
|
28215
28439
|
}
|
|
28216
|
-
return
|
|
28440
|
+
return updateEmptyOption;
|
|
28217
28441
|
}()
|
|
28218
28442
|
}, {
|
|
28219
28443
|
key: "updateAccessoriesFromGlobalOption",
|
|
@@ -28242,7 +28466,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28242
28466
|
}
|
|
28243
28467
|
}, _callee8, this);
|
|
28244
28468
|
}));
|
|
28245
|
-
function updateAccessoriesFromGlobalOption(
|
|
28469
|
+
function updateAccessoriesFromGlobalOption(_x22, _x23) {
|
|
28246
28470
|
return _updateAccessoriesFromGlobalOption.apply(this, arguments);
|
|
28247
28471
|
}
|
|
28248
28472
|
return updateAccessoriesFromGlobalOption;
|
|
@@ -28480,12 +28704,14 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28480
28704
|
_iterator3.f();
|
|
28481
28705
|
return _context11.finish(30);
|
|
28482
28706
|
case 33:
|
|
28707
|
+
if (article.plannerData) article.plannerData.varaintValuesInfluencingAVLAVRFilter = article.getVariantValuesInfluencingAVLAVRFilter();
|
|
28708
|
+
case 34:
|
|
28483
28709
|
case "end":
|
|
28484
28710
|
return _context11.stop();
|
|
28485
28711
|
}
|
|
28486
28712
|
}, _callee9, null, [[12, 27, 30, 33]]);
|
|
28487
28713
|
}));
|
|
28488
|
-
function initCfgValues(
|
|
28714
|
+
function initCfgValues(_x24, _x25, _x26) {
|
|
28489
28715
|
return _initCfgValues.apply(this, arguments);
|
|
28490
28716
|
}
|
|
28491
28717
|
return initCfgValues;
|
|
@@ -28505,7 +28731,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28505
28731
|
}
|
|
28506
28732
|
}, _callee10, this);
|
|
28507
28733
|
}));
|
|
28508
|
-
function setValidVariantValues(
|
|
28734
|
+
function setValidVariantValues(_x27) {
|
|
28509
28735
|
return _setValidVariantValues.apply(this, arguments);
|
|
28510
28736
|
}
|
|
28511
28737
|
return setValidVariantValues;
|
|
@@ -28591,7 +28817,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28591
28817
|
}
|
|
28592
28818
|
}, _callee11, this);
|
|
28593
28819
|
}));
|
|
28594
|
-
function updateCfgValues(
|
|
28820
|
+
function updateCfgValues(_x28, _x29, _x30, _x31, _x32, _x33) {
|
|
28595
28821
|
return _updateCfgValues.apply(this, arguments);
|
|
28596
28822
|
}
|
|
28597
28823
|
return updateCfgValues;
|
|
@@ -28648,7 +28874,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28648
28874
|
}
|
|
28649
28875
|
}, _callee12, this);
|
|
28650
28876
|
}));
|
|
28651
|
-
function updateLastElement(
|
|
28877
|
+
function updateLastElement(_x34) {
|
|
28652
28878
|
return _updateLastElement.apply(this, arguments);
|
|
28653
28879
|
}
|
|
28654
28880
|
return updateLastElement;
|
|
@@ -28690,7 +28916,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28690
28916
|
}
|
|
28691
28917
|
}, _callee13);
|
|
28692
28918
|
}));
|
|
28693
|
-
function updateOption(
|
|
28919
|
+
function updateOption(_x35, _x36, _x37, _x38) {
|
|
28694
28920
|
return _updateOption.apply(this, arguments);
|
|
28695
28921
|
}
|
|
28696
28922
|
return updateOption;
|
|
@@ -28732,7 +28958,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28732
28958
|
}
|
|
28733
28959
|
}, _callee14, this);
|
|
28734
28960
|
}));
|
|
28735
|
-
function evalAndLoadPartlistArticles(
|
|
28961
|
+
function evalAndLoadPartlistArticles(_x39, _x40, _x41) {
|
|
28736
28962
|
return _evalAndLoadPartlistArticles.apply(this, arguments);
|
|
28737
28963
|
}
|
|
28738
28964
|
return evalAndLoadPartlistArticles;
|
|
@@ -28771,7 +28997,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28771
28997
|
}
|
|
28772
28998
|
}, _callee15, this);
|
|
28773
28999
|
}));
|
|
28774
|
-
function loadPartlistArticles(
|
|
29000
|
+
function loadPartlistArticles(_x42, _x43, _x44) {
|
|
28775
29001
|
return _loadPartlistArticles.apply(this, arguments);
|
|
28776
29002
|
}
|
|
28777
29003
|
return loadPartlistArticles;
|
|
@@ -28781,7 +29007,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28781
29007
|
key: "loadPartlistArticle",
|
|
28782
29008
|
value: function () {
|
|
28783
29009
|
var _loadPartlistArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(doLoadItem, article, newConfigValues) {
|
|
28784
|
-
var nArticle;
|
|
29010
|
+
var nArticle, _doLoadItem$VariantVa;
|
|
28785
29011
|
return _regeneratorRuntime.wrap(function _callee16$(_context18) {
|
|
28786
29012
|
while (1) switch (_context18.prev = _context18.next) {
|
|
28787
29013
|
case 0:
|
|
@@ -28795,7 +29021,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28795
29021
|
}
|
|
28796
29022
|
doLoadItem.BasketID = nArticle.basketId;
|
|
28797
29023
|
_context18.next = 7;
|
|
28798
|
-
return this.toDoAfterArticleLoaded(nArticle, {},
|
|
29024
|
+
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);
|
|
28799
29025
|
case 7:
|
|
28800
29026
|
article.addPartlistArticle(nArticle);
|
|
28801
29027
|
case 8:
|
|
@@ -28804,7 +29030,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28804
29030
|
}
|
|
28805
29031
|
}, _callee16, this);
|
|
28806
29032
|
}));
|
|
28807
|
-
function loadPartlistArticle(
|
|
29033
|
+
function loadPartlistArticle(_x45, _x46, _x47) {
|
|
28808
29034
|
return _loadPartlistArticle.apply(this, arguments);
|
|
28809
29035
|
}
|
|
28810
29036
|
return loadPartlistArticle;
|
|
@@ -28834,6 +29060,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28834
29060
|
supplierOrderCodex: doLoadItem.SupplierOrderCodex,
|
|
28835
29061
|
initDecisions: doLoadItem.initDecisions,
|
|
28836
29062
|
partlistArticleVisibleInTree: doLoadItem.PosInvisibility === 0,
|
|
29063
|
+
partlistArticleStandalone: doLoadItem.ConfigurationMode,
|
|
28837
29064
|
optionsForPrint: doLoadItem.optionsForPrint,
|
|
28838
29065
|
optionImgForPrint: doLoadItem.optionImgForPrint,
|
|
28839
29066
|
catalogCodex: doLoadItem.CatalogCodex
|
|
@@ -28965,7 +29192,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28965
29192
|
}
|
|
28966
29193
|
}, _callee17, this);
|
|
28967
29194
|
}));
|
|
28968
|
-
function evalOpvsOnOpvsConstructionRules(
|
|
29195
|
+
function evalOpvsOnOpvsConstructionRules(_x48) {
|
|
28969
29196
|
return _evalOpvsOnOpvsConstructionRules.apply(this, arguments);
|
|
28970
29197
|
}
|
|
28971
29198
|
return evalOpvsOnOpvsConstructionRules;
|
|
@@ -29168,7 +29395,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29168
29395
|
}
|
|
29169
29396
|
}, _callee18);
|
|
29170
29397
|
}));
|
|
29171
|
-
function triggerShelfplannerVisibility(
|
|
29398
|
+
function triggerShelfplannerVisibility(_x49, _x50) {
|
|
29172
29399
|
return _triggerShelfplannerVisibility.apply(this, arguments);
|
|
29173
29400
|
}
|
|
29174
29401
|
return triggerShelfplannerVisibility;
|
|
@@ -29245,7 +29472,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29245
29472
|
IsPartlistArticle: article.isPartListArticle,
|
|
29246
29473
|
IsPlannerElement: article.hasCatalogPlannerArticle,
|
|
29247
29474
|
HasPartlistArticle: article.hasPartlistArticle,
|
|
29248
|
-
PartlistArticleInvisibility: !article.partlistArticleVisibleInTree && !article.optionsForPrint,
|
|
29475
|
+
PartlistArticleInvisibility: !article.partlistArticleVisibleInTree && !article.optionsForPrint && !article.partlistArticleStandalone,
|
|
29249
29476
|
SendToSAP: article.sendToSap,
|
|
29250
29477
|
ShelfPlandata: article.shelfPlanner ? DivaUtils.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,
|
|
29251
29478
|
MetaData: !hasFavorites ? article.MetaData : undefined,
|
|
@@ -29492,7 +29719,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29492
29719
|
}
|
|
29493
29720
|
}, _callee19, this);
|
|
29494
29721
|
}));
|
|
29495
|
-
function correctPartlistArticlesByGlobalRules(
|
|
29722
|
+
function correctPartlistArticlesByGlobalRules(_x51, _x52, _x53, _x54) {
|
|
29496
29723
|
return _correctPartlistArticlesByGlobalRules.apply(this, arguments);
|
|
29497
29724
|
}
|
|
29498
29725
|
return correctPartlistArticlesByGlobalRules;
|
|
@@ -30155,7 +30382,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
|
|
|
30155
30382
|
var myOption = myTabGroup.options[lKey];
|
|
30156
30383
|
if (myOption.idmVariantType) {
|
|
30157
30384
|
var _catalog$getOption;
|
|
30158
|
-
var opgPairs = [[2, 3], [4, 5], [6, 7], [11, 12]
|
|
30385
|
+
var opgPairs = [[2, 3], [4, 5], [6, 7], [11, 12]];
|
|
30159
30386
|
for (var i = 0; i < opgPairs.length; i++) {
|
|
30160
30387
|
var optionStep = this.getOptionWhereIDMVariantIs(iKey, opgPairs[i][1]);
|
|
30161
30388
|
if (myOption.idmVariantType == opgPairs[i][0] && optionStep && !optionStep.mergesToOPG) {
|
|
@@ -30410,6 +30637,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
30410
30637
|
_defineProperty(this, "matchingOrigProduct", void 0);
|
|
30411
30638
|
_defineProperty(this, "_supplierColors", void 0);
|
|
30412
30639
|
_defineProperty(this, "_logDecisions", false);
|
|
30640
|
+
_defineProperty(this, "_logTotalStateForVariants", false);
|
|
30413
30641
|
/**Favorits state */
|
|
30414
30642
|
_defineProperty(this, "_handlelingCurrentFavorites", false);
|
|
30415
30643
|
_defineProperty(this, "_favorites", {
|
|
@@ -31683,7 +31911,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31683
31911
|
break;
|
|
31684
31912
|
}
|
|
31685
31913
|
_context5.next = 3;
|
|
31686
|
-
return import('./DoorPlanner-
|
|
31914
|
+
return import('./DoorPlanner-1f367baa.js');
|
|
31687
31915
|
case 3:
|
|
31688
31916
|
_yield$import = _context5.sent;
|
|
31689
31917
|
DoorPlanner = _yield$import["default"];
|
|
@@ -31850,6 +32078,14 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31850
32078
|
set: function set(val) {
|
|
31851
32079
|
this._logDecisions = val;
|
|
31852
32080
|
}
|
|
32081
|
+
}, {
|
|
32082
|
+
key: "logTotalStateForVariants",
|
|
32083
|
+
get: function get() {
|
|
32084
|
+
return this._logTotalStateForVariants;
|
|
32085
|
+
},
|
|
32086
|
+
set: function set(val) {
|
|
32087
|
+
this._logTotalStateForVariants = val;
|
|
32088
|
+
}
|
|
31853
32089
|
}, {
|
|
31854
32090
|
key: "showAccessioreOnLastTab",
|
|
31855
32091
|
get: function get() {
|
|
@@ -31867,6 +32103,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31867
32103
|
var clonedSet = new DivaSet(this.CatalogData, this.setId, {}, _objectSpread$c({}, this.setState));
|
|
31868
32104
|
clonedSet.setData = _objectSpread$c({}, this.setData);
|
|
31869
32105
|
clonedSet.configSingle = this.configSingle;
|
|
32106
|
+
clonedSet.logTotalStateForVariants = this.logTotalStateForVariants;
|
|
31870
32107
|
var articles = this.getDivaArticles();
|
|
31871
32108
|
//if boxplanner needs to be working, the planner needs to be cloned too
|
|
31872
32109
|
//this.setState.plannerHandler = this.setState.plannerHandler.clonePlannerHandler(clonedSet, this);
|
|
@@ -33648,7 +33885,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
33648
33885
|
}
|
|
33649
33886
|
configStepKey = configStepKey + '_' + 'acc' + (set.CatalogData.forceConfigAllAccessoires ? article.articleCodex : basketId);
|
|
33650
33887
|
}
|
|
33651
|
-
var plaBasketIds = Object.keys(articles[basketId].getRecursivePartlistArticles(true));
|
|
33888
|
+
var plaBasketIds = Object.keys(articles[basketId].getRecursivePartlistArticles(true, true));
|
|
33652
33889
|
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);
|
|
33653
33890
|
var isAccessoire = !!article.relatedToBasketId ? article.articleCodex : false;
|
|
33654
33891
|
if (!configTree.getTabGroupByCodex(tabGroupCodex)) {
|
|
@@ -34074,7 +34311,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34074
34311
|
notTotallyMatichingOPVs = false,
|
|
34075
34312
|
myOptionState = undefined;
|
|
34076
34313
|
for (var i = 0; i < configStep.targetArticles.length; i++) {
|
|
34077
|
-
var _myOptionState;
|
|
34314
|
+
var _myOptionState, _myOptionState$idmVar;
|
|
34078
34315
|
var article = articles[configStep.targetArticles[i]];
|
|
34079
34316
|
myOptionState = article.getArticleOptionState(configStep.option);
|
|
34080
34317
|
if (!myOptionState) throw new Error('myOptionState ' + configStep.option + ' is undefined');
|
|
@@ -34086,7 +34323,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34086
34323
|
if (myOptionState.isFreeText && myOptionState.freeTextLang) {
|
|
34087
34324
|
freeTextLang = myOptionState.freeTextLang;
|
|
34088
34325
|
}
|
|
34089
|
-
if (myOptionState.headerPosVariationType == 'V' || myOptionState.idmVariantenArt
|
|
34326
|
+
if (myOptionState.headerPosVariationType == 'V' || [35, 1035].includes((_myOptionState$idmVar = myOptionState.idmVariantenArt) !== null && _myOptionState$idmVar !== void 0 ? _myOptionState$idmVar : 0)) {
|
|
34090
34327
|
// 35 is the seatingheight. Articles should not be albe to have different seatheight
|
|
34091
34328
|
//get schnittmenge of all the articles
|
|
34092
34329
|
if (i === 0) {
|
|
@@ -36163,7 +36400,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36163
36400
|
var _article$partListPare, _article$partListPare2;
|
|
36164
36401
|
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 : '');
|
|
36165
36402
|
});
|
|
36166
|
-
if (group) {
|
|
36403
|
+
if (group && !article.partlistArticleStandalone) {
|
|
36167
36404
|
group.push(article.basketId);
|
|
36168
36405
|
} else {
|
|
36169
36406
|
groupedArticles.push([article.basketId]);
|
|
@@ -36280,16 +36517,26 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36280
36517
|
case 2:
|
|
36281
36518
|
opt = set.CatalogData.getOption((_configItems$0$option = configItems[0].optionOcd) !== null && _configItems$0$option !== void 0 ? _configItems$0$option : configItems[0].op);
|
|
36282
36519
|
previewType = set.api.pricePreview;
|
|
36283
|
-
if (!(!opt ||
|
|
36520
|
+
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'))) {
|
|
36284
36521
|
_context26.next = 6;
|
|
36285
36522
|
break;
|
|
36286
36523
|
}
|
|
36287
36524
|
return _context26.abrupt("return", configItems);
|
|
36288
36525
|
case 6:
|
|
36526
|
+
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)))) {
|
|
36527
|
+
_context26.next = 9;
|
|
36528
|
+
break;
|
|
36529
|
+
}
|
|
36530
|
+
if (set.logTotalStateForVariants) {
|
|
36531
|
+
_context26.next = 9;
|
|
36532
|
+
break;
|
|
36533
|
+
}
|
|
36534
|
+
return _context26.abrupt("return", configItems);
|
|
36535
|
+
case 9:
|
|
36289
36536
|
targetArticles = set.configTree.getTargetArticles(configStepKey);
|
|
36290
|
-
_context26.next =
|
|
36537
|
+
_context26.next = 12;
|
|
36291
36538
|
return this.calcVariants(set, configItems, targetArticles, opt.codex);
|
|
36292
|
-
case
|
|
36539
|
+
case 12:
|
|
36293
36540
|
variants = _context26.sent;
|
|
36294
36541
|
if (previewType) {
|
|
36295
36542
|
configItems.map(function (c, index) {
|
|
@@ -36300,7 +36547,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36300
36547
|
});
|
|
36301
36548
|
}
|
|
36302
36549
|
return _context26.abrupt("return", configItems);
|
|
36303
|
-
case
|
|
36550
|
+
case 15:
|
|
36304
36551
|
case "end":
|
|
36305
36552
|
return _context26.stop();
|
|
36306
36553
|
}
|
|
@@ -36321,7 +36568,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36321
36568
|
case 0:
|
|
36322
36569
|
variantInfo = [];
|
|
36323
36570
|
set = realSet.cloneSet();
|
|
36324
|
-
articles = set.getDivaArticles();
|
|
36571
|
+
articles = set.getDivaArticles(true);
|
|
36325
36572
|
origPrice = set.getSetPrice();
|
|
36326
36573
|
articleConfigs = {};
|
|
36327
36574
|
for (i = 0; i < targetArticles.length; i++) {
|
|
@@ -36428,7 +36675,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36428
36675
|
}
|
|
36429
36676
|
hash = md5(JSON.stringify([].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig)))));
|
|
36430
36677
|
dataHash = set.CatalogData.getVariantsPriceByHash(hash);
|
|
36431
|
-
if (!dataHash) {
|
|
36678
|
+
if (!(dataHash && (!set.logTotalStateForVariants || dataHash.articleSnapshot))) {
|
|
36432
36679
|
_context28.next = 21;
|
|
36433
36680
|
break;
|
|
36434
36681
|
}
|
|
@@ -36463,7 +36710,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36463
36710
|
calcTime: calcTime,
|
|
36464
36711
|
firstPrice: firstPrice,
|
|
36465
36712
|
variantValues: hashVariantValues,
|
|
36466
|
-
hashObj: [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig)))
|
|
36713
|
+
hashObj: [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig))),
|
|
36714
|
+
articleSnapshot: set.logTotalStateForVariants ? set.cloneSet().getDivaArticles() : undefined
|
|
36467
36715
|
};
|
|
36468
36716
|
set.CatalogData.setVariantsPriceByHash(hash, priceObj);
|
|
36469
36717
|
return _context28.abrupt("return", priceObj);
|
|
@@ -37041,13 +37289,16 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
37041
37289
|
break;
|
|
37042
37290
|
case 49:
|
|
37043
37291
|
basketData.SetPlannerInfos = setPlanner ? this.getSetPlannerInfos(Object.keys(sets), orderSets) : undefined;
|
|
37292
|
+
basketData.catalogStatus = Object.values(sets).find(function (s) {
|
|
37293
|
+
return !!s.CatalogData.archived;
|
|
37294
|
+
}) ? 'ARCHIVED' : 'LISTED';
|
|
37044
37295
|
if (repairOnly) {
|
|
37045
37296
|
this.repairOrderSets(basketData, orderSets);
|
|
37046
37297
|
} else {
|
|
37047
37298
|
basketData.setOrderSets(orderSets);
|
|
37048
37299
|
}
|
|
37049
37300
|
return _context32.abrupt("return", basketData);
|
|
37050
|
-
case
|
|
37301
|
+
case 53:
|
|
37051
37302
|
case "end":
|
|
37052
37303
|
return _context32.stop();
|
|
37053
37304
|
}
|
|
@@ -37108,6 +37359,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
37108
37359
|
origOrderSet.BBox = actOrderSet.BBox;
|
|
37109
37360
|
origOrderSet.VariantDescription = actOrderSet.VariantDescription;
|
|
37110
37361
|
origOrderSet.OfflineData = actOrderSet.OfflineData;
|
|
37362
|
+
origOrderSet.CatalogName = actOrderSet.CatalogName;
|
|
37363
|
+
origOrderSet.CatalogName_locales = actOrderSet.CatalogName_locales;
|
|
37111
37364
|
if (actOrderSet.ConfigVariants && origOrderSet.ConfigVariants) origOrderSet.ConfigVariants = actOrderSet.ConfigVariants.map(function (variant, index) {
|
|
37112
37365
|
var _origOrderSet$ConfigV;
|
|
37113
37366
|
var configVariant = (_origOrderSet$ConfigV = origOrderSet.ConfigVariants) === null || _origOrderSet$ConfigV === void 0 ? void 0 : _origOrderSet$ConfigV[index];
|
|
@@ -37532,7 +37785,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
37532
37785
|
this.plannerConfig = plannerConfig;
|
|
37533
37786
|
this.assignNewDivaNr = !!this.plannerConfig.assignNewDivaNr;
|
|
37534
37787
|
this._handler = plannerConfig.handler;
|
|
37535
|
-
if (this.plannerConfig.divaNr == undefined && this.plannerConfig.basketData == undefined && this.plannerConfig.catalogCodex
|
|
37788
|
+
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'))) {
|
|
37536
37789
|
LOG$8.error(new DivaError('Keine Öffnungsparameter', {
|
|
37537
37790
|
code: 'WC_0003'
|
|
37538
37791
|
}));
|
|
@@ -37659,7 +37912,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
37659
37912
|
case 22:
|
|
37660
37913
|
this.baskets[this.divaNr] = this.plannerConfig.basketData;
|
|
37661
37914
|
if (!this.baskets[this.divaNr].CustomerJourneyId) this.baskets[this.divaNr].CustomerJourneyId = nanoid();
|
|
37662
|
-
if (this.actBasket.OrigCatalogCodex) {
|
|
37915
|
+
if (this.actBasket.OrigCatalogCodex !== undefined) {
|
|
37663
37916
|
this.origConfiguration.originCatalogCodex = this.actBasket.OrigCatalogCodex;
|
|
37664
37917
|
this.origConfiguration.originArticleCodexes = this.actBasket.OrigArticleCodexes;
|
|
37665
37918
|
} else if (this.actBasket.OrigDivaNr) {
|
|
@@ -37670,7 +37923,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
37670
37923
|
this.hasConfiguratorSessionId = true;
|
|
37671
37924
|
returnSuccessfully = true;
|
|
37672
37925
|
case 29:
|
|
37673
|
-
if (!this.plannerConfig.catalogCodex) {
|
|
37926
|
+
if (!(this.plannerConfig.catalogCodex !== undefined)) {
|
|
37674
37927
|
_context.next = 33;
|
|
37675
37928
|
break;
|
|
37676
37929
|
}
|
|
@@ -37965,7 +38218,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
37965
38218
|
LOG$8.debug('divaNr: ' + divaNr + ' was loaded successfully from server!');
|
|
37966
38219
|
if (basketFromAPI.OrigDivaNr) {
|
|
37967
38220
|
this.origConfiguration.originDivaNr = basketFromAPI.OrigDivaNr;
|
|
37968
|
-
} else if (basketFromAPI.OrigCatalogCodex) {
|
|
38221
|
+
} else if (basketFromAPI.OrigCatalogCodex !== undefined) {
|
|
37969
38222
|
this.origConfiguration.originCatalogCodex = basketFromAPI.OrigCatalogCodex;
|
|
37970
38223
|
this.origConfiguration.originArticleCodexes = basketFromAPI.OrigArticleCodexes;
|
|
37971
38224
|
} else {
|
|
@@ -38335,7 +38588,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38335
38588
|
}, {
|
|
38336
38589
|
key: "fillOrigConfigurations",
|
|
38337
38590
|
value: function fillOrigConfigurations() {
|
|
38338
|
-
if (this.origConfiguration.originCatalogCodex) {
|
|
38591
|
+
if (this.origConfiguration.originCatalogCodex !== undefined) {
|
|
38339
38592
|
this.actBasket.OrigCatalogCodex = this.origConfiguration.originCatalogCodex;
|
|
38340
38593
|
this.actBasket.OrigArticleCodexes = this.origConfiguration.originArticleCodexes;
|
|
38341
38594
|
this.actBasket.OrigDivaNr = undefined;
|
|
@@ -38381,7 +38634,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38381
38634
|
_context11.next = 19;
|
|
38382
38635
|
break;
|
|
38383
38636
|
case 17:
|
|
38384
|
-
if (!(response === 'ERROR_NO_BASKET_SAVED' || response === 'ERROR_BASKET_AFTER_SAVE')) {
|
|
38637
|
+
if (!(response === 'ERROR_NO_BASKET_SAVED' || response === 'ERROR_BASKET_AFTER_SAVE' || response === 'ERROR_NO_BASKET_SAVED_ENTITY_EXISTS')) {
|
|
38385
38638
|
_context11.next = 19;
|
|
38386
38639
|
break;
|
|
38387
38640
|
}
|
|
@@ -38538,7 +38791,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38538
38791
|
break;
|
|
38539
38792
|
case 3:
|
|
38540
38793
|
_context12.next = 5;
|
|
38541
|
-
return import('./PfisterWWSHandler-
|
|
38794
|
+
return import('./PfisterWWSHandler-a9626e93.js');
|
|
38542
38795
|
case 5:
|
|
38543
38796
|
_yield$import = _context12.sent;
|
|
38544
38797
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -38546,7 +38799,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38546
38799
|
return _context12.abrupt("break", 27);
|
|
38547
38800
|
case 9:
|
|
38548
38801
|
_context12.next = 11;
|
|
38549
|
-
return import('./LiviqueWWSHandler-
|
|
38802
|
+
return import('./LiviqueWWSHandler-95c5256d.js');
|
|
38550
38803
|
case 11:
|
|
38551
38804
|
_yield$import2 = _context12.sent;
|
|
38552
38805
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -38554,7 +38807,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38554
38807
|
return _context12.abrupt("break", 27);
|
|
38555
38808
|
case 15:
|
|
38556
38809
|
_context12.next = 17;
|
|
38557
|
-
return import('./SeriousBasketHandler-
|
|
38810
|
+
return import('./SeriousBasketHandler-c9454fb5.js');
|
|
38558
38811
|
case 17:
|
|
38559
38812
|
_yield$import3 = _context12.sent;
|
|
38560
38813
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -38562,7 +38815,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38562
38815
|
return _context12.abrupt("break", 27);
|
|
38563
38816
|
case 21:
|
|
38564
38817
|
_context12.next = 23;
|
|
38565
|
-
return import('./StandardWWSHandler-
|
|
38818
|
+
return import('./StandardWWSHandler-51882988.js');
|
|
38566
38819
|
case 23:
|
|
38567
38820
|
_yield$import4 = _context12.sent;
|
|
38568
38821
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -39990,7 +40243,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
39990
40243
|
while (1) switch (_context3.prev = _context3.next) {
|
|
39991
40244
|
case 0:
|
|
39992
40245
|
_context3.next = 2;
|
|
39993
|
-
return import('./Host3DSignalR-
|
|
40246
|
+
return import('./Host3DSignalR-552de97e.js');
|
|
39994
40247
|
case 2:
|
|
39995
40248
|
_yield$import = _context3.sent;
|
|
39996
40249
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -41547,7 +41800,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41547
41800
|
break;
|
|
41548
41801
|
case 8:
|
|
41549
41802
|
_context4.next = 10;
|
|
41550
|
-
return import('./DivaStandardPlanner-
|
|
41803
|
+
return import('./DivaStandardPlanner-1309f086.js');
|
|
41551
41804
|
case 10:
|
|
41552
41805
|
_yield$import = _context4.sent;
|
|
41553
41806
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -41558,7 +41811,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41558
41811
|
return _context4.abrupt("break", 21);
|
|
41559
41812
|
case 15:
|
|
41560
41813
|
_context4.next = 17;
|
|
41561
|
-
return import('./DivaBoxPlanner-
|
|
41814
|
+
return import('./DivaBoxPlanner-348955db.js');
|
|
41562
41815
|
case 17:
|
|
41563
41816
|
_yield$import2 = _context4.sent;
|
|
41564
41817
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -43605,9 +43858,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
43605
43858
|
}
|
|
43606
43859
|
}, {
|
|
43607
43860
|
key: "getDivaArticles",
|
|
43608
|
-
value: function getDivaArticles() {
|
|
43861
|
+
value: function getDivaArticles(visiblePartlistArticlesAlso, allPartlistArticlesAlso) {
|
|
43609
43862
|
var _this$actSet3;
|
|
43610
|
-
return (_this$actSet3 = this.actSet()) === null || _this$actSet3 === void 0 ? void 0 : _this$actSet3.getDivaArticles();
|
|
43863
|
+
return (_this$actSet3 = this.actSet()) === null || _this$actSet3 === void 0 ? void 0 : _this$actSet3.getDivaArticles(visiblePartlistArticlesAlso, allPartlistArticlesAlso);
|
|
43611
43864
|
}
|
|
43612
43865
|
|
|
43613
43866
|
//for debugging
|
|
@@ -44538,11 +44791,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44538
44791
|
this.divaBasketHandler.fillOrigConfigurations();
|
|
44539
44792
|
actBasket.Updated = Date.now();
|
|
44540
44793
|
if (!returnTo) {
|
|
44541
|
-
_context27.next =
|
|
44794
|
+
_context27.next = 52;
|
|
44542
44795
|
break;
|
|
44543
44796
|
}
|
|
44544
44797
|
_context27.t3 = returnTo;
|
|
44545
|
-
_context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 30 : _context27.t3 === 'OPEN_PDF' ?
|
|
44798
|
+
_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;
|
|
44546
44799
|
break;
|
|
44547
44800
|
case 27:
|
|
44548
44801
|
(_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.toggleLoading('buildScene', false, false);
|
|
@@ -44556,8 +44809,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44556
44809
|
basketData: actBasket
|
|
44557
44810
|
}
|
|
44558
44811
|
});
|
|
44559
|
-
return _context27.abrupt("break",
|
|
44812
|
+
return _context27.abrupt("break", 52);
|
|
44560
44813
|
case 30:
|
|
44814
|
+
if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
|
|
44815
|
+
actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
|
|
44816
|
+
}
|
|
44561
44817
|
(_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.openComponent({
|
|
44562
44818
|
type: 'SELLER',
|
|
44563
44819
|
parameters: {
|
|
@@ -44568,51 +44824,51 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44568
44824
|
basketData: actBasket
|
|
44569
44825
|
}
|
|
44570
44826
|
});
|
|
44571
|
-
return _context27.abrupt("break",
|
|
44572
|
-
case
|
|
44827
|
+
return _context27.abrupt("break", 52);
|
|
44828
|
+
case 33:
|
|
44573
44829
|
if (!(event == 'onSaveProduct')) {
|
|
44574
|
-
_context27.next =
|
|
44830
|
+
_context27.next = 43;
|
|
44575
44831
|
break;
|
|
44576
44832
|
}
|
|
44577
44833
|
//copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
|
|
44578
44834
|
actBasket = new BasketData(JSON.parse(JSON.stringify(actBasket)));
|
|
44579
|
-
_context27.next =
|
|
44835
|
+
_context27.next = 37;
|
|
44580
44836
|
return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
|
|
44581
|
-
case
|
|
44582
|
-
_context27.next =
|
|
44837
|
+
case 37:
|
|
44838
|
+
_context27.next = 39;
|
|
44583
44839
|
return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
|
|
44584
|
-
case
|
|
44840
|
+
case 39:
|
|
44585
44841
|
newDivaNr = _context27.sent;
|
|
44586
44842
|
actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
|
|
44587
|
-
_context27.next =
|
|
44843
|
+
_context27.next = 51;
|
|
44588
44844
|
break;
|
|
44589
|
-
case
|
|
44845
|
+
case 43:
|
|
44590
44846
|
if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
|
|
44591
44847
|
this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = undefined;
|
|
44592
44848
|
actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
|
|
44593
44849
|
}
|
|
44594
44850
|
this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
|
|
44595
44851
|
actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
|
|
44596
|
-
_context27.next =
|
|
44852
|
+
_context27.next = 48;
|
|
44597
44853
|
return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo);
|
|
44598
|
-
case
|
|
44854
|
+
case 48:
|
|
44599
44855
|
_result2 = _context27.sent;
|
|
44600
44856
|
if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
|
|
44601
|
-
_context27.next =
|
|
44857
|
+
_context27.next = 51;
|
|
44602
44858
|
break;
|
|
44603
44859
|
}
|
|
44604
44860
|
return _context27.abrupt("return", 'canceled');
|
|
44605
|
-
case 50:
|
|
44606
|
-
return _context27.abrupt("break", 51);
|
|
44607
44861
|
case 51:
|
|
44862
|
+
return _context27.abrupt("break", 52);
|
|
44863
|
+
case 52:
|
|
44608
44864
|
if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
|
|
44609
44865
|
actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
|
|
44610
|
-
_context27.next =
|
|
44866
|
+
_context27.next = 56;
|
|
44611
44867
|
return this.addToBasket(actBasket, event);
|
|
44612
|
-
case
|
|
44868
|
+
case 56:
|
|
44613
44869
|
product = _context27.sent;
|
|
44614
44870
|
return _context27.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
|
|
44615
|
-
case
|
|
44871
|
+
case 58:
|
|
44616
44872
|
case "end":
|
|
44617
44873
|
return _context27.stop();
|
|
44618
44874
|
}
|
|
@@ -44662,7 +44918,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44662
44918
|
//if planner is hidden by config but nothing is planned initially
|
|
44663
44919
|
if (plannerType === 'NONE') {
|
|
44664
44920
|
var _this$plannerConfig$a8, _this$actSet11;
|
|
44665
|
-
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)) {
|
|
44921
|
+
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)) {
|
|
44666
44922
|
plannerType = 'PLANNER';
|
|
44667
44923
|
}
|
|
44668
44924
|
}
|
|
@@ -44937,39 +45193,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44937
45193
|
case 0:
|
|
44938
45194
|
event = _args29.length > 1 && _args29[1] !== undefined ? _args29[1] : 'onAddToBasket';
|
|
44939
45195
|
_context29.t0 = event;
|
|
44940
|
-
_context29.next = _context29.t0 === 'onWebPlanerPrint' ?
|
|
45196
|
+
_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;
|
|
44941
45197
|
break;
|
|
44942
|
-
case
|
|
45198
|
+
case 4:
|
|
44943
45199
|
(_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
|
|
44944
45200
|
type: 'onWebPlanerPrint',
|
|
44945
45201
|
data: actBasket.getAsJson()
|
|
44946
45202
|
});
|
|
44947
|
-
return _context29.abrupt("break",
|
|
44948
|
-
case
|
|
45203
|
+
return _context29.abrupt("break", 33);
|
|
45204
|
+
case 6:
|
|
44949
45205
|
(_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
|
|
44950
45206
|
type: 'onWebPlanerSave',
|
|
44951
45207
|
data: actBasket.getAsJson()
|
|
44952
45208
|
});
|
|
44953
|
-
return _context29.abrupt("break",
|
|
44954
|
-
case
|
|
45209
|
+
return _context29.abrupt("break", 33);
|
|
45210
|
+
case 8:
|
|
44955
45211
|
(_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
|
|
44956
45212
|
type: 'onWebPlanerShare',
|
|
44957
45213
|
data: actBasket.getAsJson()
|
|
44958
45214
|
});
|
|
44959
|
-
return _context29.abrupt("break",
|
|
44960
|
-
case
|
|
45215
|
+
return _context29.abrupt("break", 33);
|
|
45216
|
+
case 10:
|
|
44961
45217
|
(_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
|
|
44962
45218
|
type: 'onRequestConsulation',
|
|
44963
45219
|
data: actBasket.getAsJson()
|
|
44964
45220
|
});
|
|
44965
|
-
return _context29.abrupt("break",
|
|
44966
|
-
case
|
|
45221
|
+
return _context29.abrupt("break", 33);
|
|
45222
|
+
case 12:
|
|
44967
45223
|
(_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
|
|
44968
45224
|
type: 'onSave',
|
|
44969
45225
|
data: actBasket.getAsJson()
|
|
44970
45226
|
});
|
|
44971
|
-
return _context29.abrupt("break",
|
|
44972
|
-
case
|
|
45227
|
+
return _context29.abrupt("break", 33);
|
|
45228
|
+
case 14:
|
|
44973
45229
|
emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
|
|
44974
45230
|
this.divaBasketHandler.emailConfig = undefined;
|
|
44975
45231
|
if (emailConfig) {
|
|
@@ -45003,45 +45259,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45003
45259
|
type: 'onAddToBasket',
|
|
45004
45260
|
data: actBasket.getAsJson()
|
|
45005
45261
|
});
|
|
45006
|
-
return _context29.abrupt("break",
|
|
45007
|
-
case
|
|
45262
|
+
return _context29.abrupt("break", 33);
|
|
45263
|
+
case 19:
|
|
45008
45264
|
this.actSet().CatalogData;
|
|
45009
|
-
_context29.next =
|
|
45265
|
+
_context29.next = 22;
|
|
45010
45266
|
return this.api.saveAsProduct(this.sets, actBasket);
|
|
45011
|
-
case
|
|
45267
|
+
case 22:
|
|
45012
45268
|
products = _context29.sent;
|
|
45013
45269
|
(_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
|
|
45014
45270
|
type: 'onAddToBasket',
|
|
45015
45271
|
data: actBasket.getAsJson()
|
|
45016
45272
|
});
|
|
45017
45273
|
if (!products) {
|
|
45018
|
-
_context29.next =
|
|
45274
|
+
_context29.next = 26;
|
|
45019
45275
|
break;
|
|
45020
45276
|
}
|
|
45021
45277
|
return _context29.abrupt("return", products[0]);
|
|
45022
|
-
case
|
|
45023
|
-
case 28:
|
|
45278
|
+
case 26:
|
|
45024
45279
|
(_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
|
|
45025
45280
|
type: 'onAddToBasket',
|
|
45026
45281
|
data: actBasket.getAsJson()
|
|
45027
45282
|
});
|
|
45028
|
-
return _context29.abrupt("break",
|
|
45029
|
-
case
|
|
45283
|
+
return _context29.abrupt("break", 33);
|
|
45284
|
+
case 28:
|
|
45030
45285
|
(_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
|
|
45031
45286
|
type: 'onAddToBasket',
|
|
45032
45287
|
data: actBasket.getAsJson()
|
|
45033
45288
|
});
|
|
45034
45289
|
this.openContactForm(this.divaBasketHandler);
|
|
45035
|
-
return _context29.abrupt("break",
|
|
45036
|
-
case
|
|
45290
|
+
return _context29.abrupt("break", 33);
|
|
45291
|
+
case 31:
|
|
45037
45292
|
(_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.onEvent({
|
|
45038
45293
|
type: event,
|
|
45039
45294
|
data: actBasket.getAsJson()
|
|
45040
45295
|
});
|
|
45041
|
-
return _context29.abrupt("break",
|
|
45042
|
-
case
|
|
45296
|
+
return _context29.abrupt("break", 33);
|
|
45297
|
+
case 33:
|
|
45043
45298
|
return _context29.abrupt("return");
|
|
45044
|
-
case
|
|
45299
|
+
case 34:
|
|
45045
45300
|
case "end":
|
|
45046
45301
|
return _context29.stop();
|
|
45047
45302
|
}
|
|
@@ -45099,7 +45354,35 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45099
45354
|
(_this$api = this.api) === null || _this$api === void 0 || _this$api.clearCache();
|
|
45100
45355
|
this.divaCatalogs = {};
|
|
45101
45356
|
}
|
|
45102
|
-
|
|
45357
|
+
}, {
|
|
45358
|
+
key: "getCurrentBasket",
|
|
45359
|
+
value: function () {
|
|
45360
|
+
var _getCurrentBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(event, force, returnTo, dontGoToSummary) {
|
|
45361
|
+
var _this$actSet33, _this$divaBasketHandl5, _this$onClickAddToBas3;
|
|
45362
|
+
return _regeneratorRuntime.wrap(function _callee30$(_context30) {
|
|
45363
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
45364
|
+
case 0:
|
|
45365
|
+
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))) {
|
|
45366
|
+
_context30.next = 2;
|
|
45367
|
+
break;
|
|
45368
|
+
}
|
|
45369
|
+
return _context30.abrupt("return", true);
|
|
45370
|
+
case 2:
|
|
45371
|
+
_context30.next = 4;
|
|
45372
|
+
return (_this$onClickAddToBas3 = this.onClickAddToBasket) === null || _this$onClickAddToBas3 === void 0 ? void 0 : _this$onClickAddToBas3.call(this, event, force, returnTo, dontGoToSummary);
|
|
45373
|
+
case 4:
|
|
45374
|
+
return _context30.abrupt("return", !!_context30.sent);
|
|
45375
|
+
case 5:
|
|
45376
|
+
case "end":
|
|
45377
|
+
return _context30.stop();
|
|
45378
|
+
}
|
|
45379
|
+
}, _callee30, this);
|
|
45380
|
+
}));
|
|
45381
|
+
function getCurrentBasket(_x80, _x81, _x82, _x83) {
|
|
45382
|
+
return _getCurrentBasket.apply(this, arguments);
|
|
45383
|
+
}
|
|
45384
|
+
return getCurrentBasket;
|
|
45385
|
+
}()
|
|
45103
45386
|
/*********************************END Functions in Logik called From View END *************************************/
|
|
45104
45387
|
/*********************************** Register Funictions from Logik to View ***************************************/
|
|
45105
45388
|
}, {
|
|
@@ -45322,9 +45605,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45322
45605
|
key: "initApiForLogicOnly",
|
|
45323
45606
|
value: //just for testing purposes
|
|
45324
45607
|
function () {
|
|
45325
|
-
var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
45326
|
-
return _regeneratorRuntime.wrap(function
|
|
45327
|
-
while (1) switch (
|
|
45608
|
+
var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
|
|
45609
|
+
return _regeneratorRuntime.wrap(function _callee31$(_context31) {
|
|
45610
|
+
while (1) switch (_context31.prev = _context31.next) {
|
|
45328
45611
|
case 0:
|
|
45329
45612
|
//empty services
|
|
45330
45613
|
this.api = new DivaApiHandler(_objectSpread$5(_objectSpread$5({}, this.plannerConfig), {}, {
|
|
@@ -45337,17 +45620,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45337
45620
|
jwt: jwt,
|
|
45338
45621
|
apiKey: apiKey
|
|
45339
45622
|
}), handler);
|
|
45340
|
-
|
|
45623
|
+
_context31.next = 3;
|
|
45341
45624
|
return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
|
|
45342
45625
|
case 3:
|
|
45343
45626
|
this.plannerHandler = new DivaPlannerHandler(true);
|
|
45344
45627
|
case 4:
|
|
45345
45628
|
case "end":
|
|
45346
|
-
return
|
|
45629
|
+
return _context31.stop();
|
|
45347
45630
|
}
|
|
45348
|
-
},
|
|
45631
|
+
}, _callee31, this);
|
|
45349
45632
|
}));
|
|
45350
|
-
function initApiForLogicOnly(
|
|
45633
|
+
function initApiForLogicOnly(_x84, _x85, _x86, _x87, _x88, _x89, _x90) {
|
|
45351
45634
|
return _initApiForLogicOnly.apply(this, arguments);
|
|
45352
45635
|
}
|
|
45353
45636
|
return initApiForLogicOnly;
|
|
@@ -45360,16 +45643,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45360
45643
|
}, {
|
|
45361
45644
|
key: "loadBasket",
|
|
45362
45645
|
value: function () {
|
|
45363
|
-
var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
45364
|
-
return _regeneratorRuntime.wrap(function
|
|
45365
|
-
while (1) switch (
|
|
45646
|
+
var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
|
|
45647
|
+
return _regeneratorRuntime.wrap(function _callee32$(_context32) {
|
|
45648
|
+
while (1) switch (_context32.prev = _context32.next) {
|
|
45366
45649
|
case 0:
|
|
45367
|
-
return
|
|
45650
|
+
return _context32.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
|
|
45368
45651
|
case 1:
|
|
45369
45652
|
case "end":
|
|
45370
|
-
return
|
|
45653
|
+
return _context32.stop();
|
|
45371
45654
|
}
|
|
45372
|
-
},
|
|
45655
|
+
}, _callee32, this);
|
|
45373
45656
|
}));
|
|
45374
45657
|
function loadBasket() {
|
|
45375
45658
|
return _loadBasket.apply(this, arguments);
|
|
@@ -45384,39 +45667,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45384
45667
|
}, {
|
|
45385
45668
|
key: "initBasket",
|
|
45386
45669
|
value: function () {
|
|
45387
|
-
var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
45670
|
+
var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(init3D, ignoreFavorites) {
|
|
45388
45671
|
var initSetState, set, basket;
|
|
45389
|
-
return _regeneratorRuntime.wrap(function
|
|
45390
|
-
while (1) switch (
|
|
45672
|
+
return _regeneratorRuntime.wrap(function _callee33$(_context33) {
|
|
45673
|
+
while (1) switch (_context33.prev = _context33.next) {
|
|
45391
45674
|
case 0:
|
|
45392
45675
|
this.divaNr = this.divaBasketHandler.actDivaNr;
|
|
45393
45676
|
initSetState = this.getInitStateForSet(!init3D);
|
|
45394
45677
|
this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
|
|
45395
|
-
|
|
45678
|
+
_context33.next = 5;
|
|
45396
45679
|
return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
|
|
45397
45680
|
case 5:
|
|
45398
45681
|
//TODO check if when basket gets repaired the product match gets called
|
|
45399
45682
|
set = this.actSet();
|
|
45400
45683
|
setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
|
|
45401
45684
|
if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
|
|
45402
|
-
|
|
45685
|
+
_context33.next = 10;
|
|
45403
45686
|
break;
|
|
45404
45687
|
}
|
|
45405
|
-
|
|
45688
|
+
_context33.next = 10;
|
|
45406
45689
|
return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
|
|
45407
45690
|
case 10:
|
|
45408
|
-
|
|
45691
|
+
_context33.next = 12;
|
|
45409
45692
|
return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
|
|
45410
45693
|
case 12:
|
|
45411
|
-
basket =
|
|
45412
|
-
return
|
|
45694
|
+
basket = _context33.sent;
|
|
45695
|
+
return _context33.abrupt("return", basket);
|
|
45413
45696
|
case 14:
|
|
45414
45697
|
case "end":
|
|
45415
|
-
return
|
|
45698
|
+
return _context33.stop();
|
|
45416
45699
|
}
|
|
45417
|
-
},
|
|
45700
|
+
}, _callee33, this);
|
|
45418
45701
|
}));
|
|
45419
|
-
function initBasket(
|
|
45702
|
+
function initBasket(_x91, _x92) {
|
|
45420
45703
|
return _initBasket.apply(this, arguments);
|
|
45421
45704
|
}
|
|
45422
45705
|
return initBasket;
|
|
@@ -45430,21 +45713,21 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45430
45713
|
}, {
|
|
45431
45714
|
key: "getValidVariantsLength",
|
|
45432
45715
|
value: function () {
|
|
45433
|
-
var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
45716
|
+
var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34() {
|
|
45434
45717
|
var set;
|
|
45435
|
-
return _regeneratorRuntime.wrap(function
|
|
45436
|
-
while (1) switch (
|
|
45718
|
+
return _regeneratorRuntime.wrap(function _callee34$(_context34) {
|
|
45719
|
+
while (1) switch (_context34.prev = _context34.next) {
|
|
45437
45720
|
case 0:
|
|
45438
45721
|
set = this.actSet();
|
|
45439
|
-
|
|
45722
|
+
_context34.next = 3;
|
|
45440
45723
|
return favoritesHandlerInstance.getValidVariants(set, true);
|
|
45441
45724
|
case 3:
|
|
45442
|
-
return
|
|
45725
|
+
return _context34.abrupt("return", _context34.sent.length);
|
|
45443
45726
|
case 4:
|
|
45444
45727
|
case "end":
|
|
45445
|
-
return
|
|
45728
|
+
return _context34.stop();
|
|
45446
45729
|
}
|
|
45447
|
-
},
|
|
45730
|
+
}, _callee34, this);
|
|
45448
45731
|
}));
|
|
45449
45732
|
function getValidVariantsLength() {
|
|
45450
45733
|
return _getValidVariantsLength.apply(this, arguments);
|
|
@@ -45454,46 +45737,46 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45454
45737
|
}, {
|
|
45455
45738
|
key: "handleFavorites",
|
|
45456
45739
|
value: function () {
|
|
45457
|
-
var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
45740
|
+
var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(mode) {
|
|
45458
45741
|
var _this5 = this;
|
|
45459
45742
|
var set, i;
|
|
45460
|
-
return _regeneratorRuntime.wrap(function
|
|
45461
|
-
while (1) switch (
|
|
45743
|
+
return _regeneratorRuntime.wrap(function _callee35$(_context35) {
|
|
45744
|
+
while (1) switch (_context35.prev = _context35.next) {
|
|
45462
45745
|
case 0:
|
|
45463
45746
|
set = this.actSet();
|
|
45464
45747
|
i = 0;
|
|
45465
45748
|
case 2:
|
|
45466
45749
|
if (!favoritesHandlerInstance.IsCalcForSummary) {
|
|
45467
|
-
|
|
45750
|
+
_context35.next = 11;
|
|
45468
45751
|
break;
|
|
45469
45752
|
}
|
|
45470
|
-
|
|
45753
|
+
_context35.next = 5;
|
|
45471
45754
|
return DivaUtils.Sleep(200);
|
|
45472
45755
|
case 5:
|
|
45473
45756
|
i++;
|
|
45474
45757
|
if (!(i > 1000)) {
|
|
45475
|
-
|
|
45758
|
+
_context35.next = 9;
|
|
45476
45759
|
break;
|
|
45477
45760
|
}
|
|
45478
45761
|
LOG$1.error(new DivaError('error on generating Variants of Summary'));
|
|
45479
|
-
return
|
|
45762
|
+
return _context35.abrupt("break", 11);
|
|
45480
45763
|
case 9:
|
|
45481
|
-
|
|
45764
|
+
_context35.next = 2;
|
|
45482
45765
|
break;
|
|
45483
45766
|
case 11:
|
|
45484
|
-
|
|
45767
|
+
_context35.next = 13;
|
|
45485
45768
|
return favoritesHandlerInstance.handleFavorites(set, mode, this.divaBasketHandler.actBasket, this.saveToBasketWrapper.bind(this), this.doConfigure.bind(this), function () {
|
|
45486
45769
|
return _this5.update2DGrid(set);
|
|
45487
45770
|
}, this.actions);
|
|
45488
45771
|
case 13:
|
|
45489
|
-
return
|
|
45772
|
+
return _context35.abrupt("return", _context35.sent);
|
|
45490
45773
|
case 14:
|
|
45491
45774
|
case "end":
|
|
45492
|
-
return
|
|
45775
|
+
return _context35.stop();
|
|
45493
45776
|
}
|
|
45494
|
-
},
|
|
45777
|
+
}, _callee35, this);
|
|
45495
45778
|
}));
|
|
45496
|
-
function handleFavorites(
|
|
45779
|
+
function handleFavorites(_x93) {
|
|
45497
45780
|
return _handleFavorites.apply(this, arguments);
|
|
45498
45781
|
}
|
|
45499
45782
|
return handleFavorites;
|
|
@@ -45506,48 +45789,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45506
45789
|
}, {
|
|
45507
45790
|
key: "initSapOrderLinesFromBasket",
|
|
45508
45791
|
value: function () {
|
|
45509
|
-
var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
45792
|
+
var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee36(divaNr, init3D, onlyLoadOldBakset) {
|
|
45510
45793
|
var result, oldBasket, basket;
|
|
45511
|
-
return _regeneratorRuntime.wrap(function
|
|
45512
|
-
while (1) switch (
|
|
45794
|
+
return _regeneratorRuntime.wrap(function _callee36$(_context36) {
|
|
45795
|
+
while (1) switch (_context36.prev = _context36.next) {
|
|
45513
45796
|
case 0:
|
|
45514
45797
|
if (divaNr) this.divaBasketHandler.updateDivaNrInBasket(divaNr);
|
|
45515
|
-
|
|
45798
|
+
_context36.next = 3;
|
|
45516
45799
|
return this.loadBasket();
|
|
45517
45800
|
case 3:
|
|
45518
|
-
result =
|
|
45801
|
+
result = _context36.sent;
|
|
45519
45802
|
if (!onlyLoadOldBakset) {
|
|
45520
|
-
|
|
45803
|
+
_context36.next = 6;
|
|
45521
45804
|
break;
|
|
45522
45805
|
}
|
|
45523
|
-
return
|
|
45806
|
+
return _context36.abrupt("return", {
|
|
45524
45807
|
oldBasket: new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket))),
|
|
45525
45808
|
cache: {}
|
|
45526
45809
|
});
|
|
45527
45810
|
case 6:
|
|
45528
45811
|
if (!(result === false)) {
|
|
45529
|
-
|
|
45812
|
+
_context36.next = 8;
|
|
45530
45813
|
break;
|
|
45531
45814
|
}
|
|
45532
45815
|
throw new Error('Could not load basket! ' + divaNr);
|
|
45533
45816
|
case 8:
|
|
45534
45817
|
oldBasket = new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket)));
|
|
45535
|
-
|
|
45818
|
+
_context36.next = 11;
|
|
45536
45819
|
return this.initBasket(init3D);
|
|
45537
45820
|
case 11:
|
|
45538
|
-
basket =
|
|
45539
|
-
return
|
|
45821
|
+
basket = _context36.sent;
|
|
45822
|
+
return _context36.abrupt("return", {
|
|
45540
45823
|
basket: basket,
|
|
45541
45824
|
oldBasket: oldBasket,
|
|
45542
45825
|
cache: this.api.getJsonDataCache()
|
|
45543
45826
|
});
|
|
45544
45827
|
case 13:
|
|
45545
45828
|
case "end":
|
|
45546
|
-
return
|
|
45829
|
+
return _context36.stop();
|
|
45547
45830
|
}
|
|
45548
|
-
},
|
|
45831
|
+
}, _callee36, this);
|
|
45549
45832
|
}));
|
|
45550
|
-
function initSapOrderLinesFromBasket(
|
|
45833
|
+
function initSapOrderLinesFromBasket(_x94, _x95, _x96) {
|
|
45551
45834
|
return _initSapOrderLinesFromBasket.apply(this, arguments);
|
|
45552
45835
|
}
|
|
45553
45836
|
return initSapOrderLinesFromBasket;
|