@crystaldesign/web-planner-logic 24.13.0-beta.2 → 24.13.0-beta.21
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-ed22c1dd.js → DivaBoxPlanner-407b522a.js} +80 -6
- package/build/cjs/{DivaStandardPlanner-924415b0.js → DivaStandardPlanner-2d5e2fcb.js} +14 -3
- package/build/cjs/{DoorPlanner-33fde902.js → DoorPlanner-b5c52f00.js} +1 -1
- package/build/cjs/{Host3DSignalR-0a901365.js → Host3DSignalR-d90c84fc.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-cf967a4d.js → LiviqueWWSHandler-e2865f37.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-3ab783ab.js → PfisterWWSHandler-85364fc5.js} +1 -1
- package/build/cjs/{PlannerHandler2D-6b3a6722.js → PlannerHandler2D-e2a8f28f.js} +9 -2
- package/build/cjs/{SeriousBasketHandler-88cac4bb.js → SeriousBasketHandler-10541589.js} +1 -1
- package/build/cjs/{ShelfPlanner-cf726af7.js → ShelfPlanner-ffca2d2f.js} +3 -2
- package/build/cjs/{StandardWWSHandler-26ce5152.js → StandardWWSHandler-2abbb584.js} +1 -1
- package/build/cjs/{index-99fd2c34.js → index-f42160a0.js} +503 -322
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-acb7342c.js → DivaBoxPlanner-6d8b1276.js} +80 -6
- package/build/esm/{DivaStandardPlanner-f4ce0bf9.js → DivaStandardPlanner-01ffe668.js} +14 -3
- package/build/esm/{DoorPlanner-c8958dcc.js → DoorPlanner-9dc6e1b8.js} +1 -1
- package/build/esm/{Host3DSignalR-f4620464.js → Host3DSignalR-91bc0e45.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-05983499.js → LiviqueWWSHandler-fc475051.js} +1 -1
- package/build/esm/{PfisterWWSHandler-e824a225.js → PfisterWWSHandler-7bb3d5e6.js} +1 -1
- package/build/esm/{PlannerHandler2D-a60954a4.js → PlannerHandler2D-46c4c559.js} +9 -2
- package/build/esm/{SeriousBasketHandler-d0103e1a.js → SeriousBasketHandler-a2a6aae7.js} +1 -1
- package/build/esm/{ShelfPlanner-65d91874.js → ShelfPlanner-1d639b0b.js} +3 -2
- package/build/esm/{StandardWWSHandler-539b9b15.js → StandardWWSHandler-68a6351e.js} +1 -1
- package/build/esm/{index-c8ee8c9a.js → index-02b8c883.js} +503 -322
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +3 -0
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.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/CatalogArticleDataType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.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/Basket/BasketEvent.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/Basket/BasketEvent.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Configuration.d.ts +2 -3
- package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionValueView.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionValueView.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +4 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.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/test/index.d.ts +0 -1
- package/build/types/web-planner-logic/src/interface/test/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts +2 -4
- package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +1 -2
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +6 -5
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts +13 -0
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts +5 -0
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts +7 -0
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +6 -0
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +6 -0
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/DockingPointHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/PlannerHandler2D.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/DivaMediaServiceHandler.d.ts +0 -2
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/DivaMediaServiceHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Product/DivaProductHandler.d.ts +5 -0
- package/build/types/web-planner-logic/src/logic/Product/DivaProductHandler.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/logic/Set/FavoritesHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts +1 -0
- package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +1 -0
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +2 -0
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +2 -0
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +2 -0
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +2 -0
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -411,7 +411,6 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
411
411
|
diva3DRenderingDefault: data.diva3DRenderingDefault != undefined ? data.diva3DRenderingDefault : false,
|
|
412
412
|
diva3dServerMode: data.diva3dServerMode != undefined ? data.diva3dServerMode : 'SignalR',
|
|
413
413
|
diva3dRenderGroup: data.diva3dRenderGroup != undefined ? data.diva3dRenderGroup : 'MYCC7',
|
|
414
|
-
mediaServiceApiKey: data.divaMediaServiceApiKey,
|
|
415
414
|
language: lang !== null && lang !== void 0 ? lang : this.getLanguage(),
|
|
416
415
|
abTestCases: data.abTestCases !== undefined ? data.abTestCases : [],
|
|
417
416
|
checkForProductsPrice: data.checkForProductsPrice,
|
|
@@ -467,17 +466,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
467
466
|
var _this$apiConfig$baske, _this$apiConfig9;
|
|
468
467
|
return (_this$apiConfig$baske = (_this$apiConfig9 = this.apiConfig) === null || _this$apiConfig9 === void 0 ? void 0 : _this$apiConfig9.basketService) !== null && _this$apiConfig$baske !== void 0 ? _this$apiConfig$baske : '';
|
|
469
468
|
}
|
|
470
|
-
}, {
|
|
471
|
-
key: "getDivaMediaServiceApiKey",
|
|
472
|
-
value: function getDivaMediaServiceApiKey() {
|
|
473
|
-
var _this$divaWebConfigDa, _this$divaWebConfigDa2;
|
|
474
|
-
return (_this$divaWebConfigDa = (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.mediaServiceApiKey) !== null && _this$divaWebConfigDa !== void 0 ? _this$divaWebConfigDa : '';
|
|
475
|
-
}
|
|
476
469
|
}, {
|
|
477
470
|
key: "getLoadProductBasketParams",
|
|
478
471
|
value: function getLoadProductBasketParams() {
|
|
479
|
-
var _this$
|
|
480
|
-
return (_this$
|
|
472
|
+
var _this$divaWebConfigDa;
|
|
473
|
+
return (_this$divaWebConfigDa = this.divaWebConfigData) === null || _this$divaWebConfigDa === void 0 ? void 0 : _this$divaWebConfigDa.loadProductBasketParams;
|
|
481
474
|
}
|
|
482
475
|
}, {
|
|
483
476
|
key: "get3DServerUrl",
|
|
@@ -488,20 +481,20 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
488
481
|
}, {
|
|
489
482
|
key: "doCheckForProductsPrice",
|
|
490
483
|
value: function doCheckForProductsPrice() {
|
|
491
|
-
var _this$
|
|
492
|
-
return (_this$
|
|
484
|
+
var _this$divaWebConfigDa2;
|
|
485
|
+
return (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.checkForProductsPrice;
|
|
493
486
|
}
|
|
494
487
|
}, {
|
|
495
488
|
key: "getReportConfigIdentifier",
|
|
496
489
|
value: function getReportConfigIdentifier() {
|
|
497
|
-
var _this$
|
|
498
|
-
return (_this$
|
|
490
|
+
var _this$divaWebConfigDa3;
|
|
491
|
+
return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.reportConfigIdentifier;
|
|
499
492
|
}
|
|
500
493
|
}, {
|
|
501
494
|
key: "getPrintOptions",
|
|
502
495
|
value: function getPrintOptions() {
|
|
503
|
-
var _this$
|
|
504
|
-
var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$
|
|
496
|
+
var _this$divaWebConfigDa4;
|
|
497
|
+
var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.reportConfig;
|
|
505
498
|
return {
|
|
506
499
|
Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
|
|
507
500
|
PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
|
|
@@ -521,8 +514,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
521
514
|
}, {
|
|
522
515
|
key: "get3DRenderGroup",
|
|
523
516
|
value: function get3DRenderGroup() {
|
|
524
|
-
var _this$
|
|
525
|
-
return (_this$
|
|
517
|
+
var _this$divaWebConfigDa5, _this$divaWebConfigDa6;
|
|
518
|
+
return (_this$divaWebConfigDa5 = (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.diva3dRenderGroup) !== null && _this$divaWebConfigDa5 !== void 0 ? _this$divaWebConfigDa5 : '';
|
|
526
519
|
}
|
|
527
520
|
}, {
|
|
528
521
|
key: "getServerId",
|
|
@@ -559,86 +552,86 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
559
552
|
}, {
|
|
560
553
|
key: "getDiva3dStaticBGImage",
|
|
561
554
|
value: function getDiva3dStaticBGImage() {
|
|
562
|
-
var _this$
|
|
563
|
-
return (_this$
|
|
555
|
+
var _this$divaWebConfigDa7;
|
|
556
|
+
return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.diva3dStaticBGImage;
|
|
564
557
|
}
|
|
565
558
|
}, {
|
|
566
559
|
key: "getDiva3dStaticBGImage_DefaultRoomList",
|
|
567
560
|
value: function getDiva3dStaticBGImage_DefaultRoomList() {
|
|
568
|
-
var _this$
|
|
569
|
-
return ((_this$
|
|
561
|
+
var _this$divaWebConfigDa8, _this$divaWebConfigDa9;
|
|
562
|
+
return ((_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.diva3dStaticBGImage_DefaultRoomList;
|
|
570
563
|
}
|
|
571
564
|
}, {
|
|
572
565
|
key: "getDiva3DAllowDefaultCatRoomList",
|
|
573
566
|
value: function getDiva3DAllowDefaultCatRoomList() {
|
|
574
|
-
var _this$
|
|
575
|
-
return (_this$
|
|
567
|
+
var _this$divaWebConfigDa10;
|
|
568
|
+
return (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3DAllowDefaultCatRoomList;
|
|
576
569
|
}
|
|
577
570
|
}, {
|
|
578
571
|
key: "doAllowSetPlanner",
|
|
579
572
|
value: function doAllowSetPlanner() {
|
|
580
|
-
var _this$
|
|
581
|
-
return (_this$
|
|
573
|
+
var _this$divaWebConfigDa11;
|
|
574
|
+
return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.doAllowSetPlanner;
|
|
582
575
|
}
|
|
583
576
|
}, {
|
|
584
577
|
key: "getHidePlanner",
|
|
585
578
|
value: function getHidePlanner() {
|
|
586
|
-
var _this$
|
|
587
|
-
return !!((_this$
|
|
579
|
+
var _this$divaWebConfigDa12;
|
|
580
|
+
return !!((_this$divaWebConfigDa12 = this.divaWebConfigData) !== null && _this$divaWebConfigDa12 !== void 0 && (_this$divaWebConfigDa12 = _this$divaWebConfigDa12.viewConfig) !== null && _this$divaWebConfigDa12 !== void 0 && _this$divaWebConfigDa12.hidePlanner);
|
|
588
581
|
}
|
|
589
582
|
}, {
|
|
590
583
|
key: "getDoShowAR",
|
|
591
584
|
value: function getDoShowAR() {
|
|
592
|
-
var _this$
|
|
593
|
-
return (_this$
|
|
585
|
+
var _this$divaWebConfigDa13;
|
|
586
|
+
return (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 || (_this$divaWebConfigDa13 = _this$divaWebConfigDa13.viewConfig) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.enableAR;
|
|
594
587
|
}
|
|
595
588
|
}, {
|
|
596
589
|
key: "forceShowRTV",
|
|
597
590
|
value: function forceShowRTV() {
|
|
598
|
-
var _this$
|
|
599
|
-
return (_this$
|
|
591
|
+
var _this$divaWebConfigDa14;
|
|
592
|
+
return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 || (_this$divaWebConfigDa14 = _this$divaWebConfigDa14.viewConfig) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.forceRTV;
|
|
600
593
|
}
|
|
601
594
|
}, {
|
|
602
595
|
key: "getDoShowRTV",
|
|
603
596
|
value: function getDoShowRTV() {
|
|
604
|
-
var _this$
|
|
605
|
-
return (_this$
|
|
597
|
+
var _this$divaWebConfigDa15;
|
|
598
|
+
return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 || (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.enableRTV;
|
|
606
599
|
}
|
|
607
600
|
}, {
|
|
608
601
|
key: "getEnableRTVUnityKombi",
|
|
609
602
|
value: function getEnableRTVUnityKombi() {
|
|
610
|
-
var _this$
|
|
611
|
-
return !!((_this$
|
|
603
|
+
var _this$divaWebConfigDa16;
|
|
604
|
+
return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.viewConfig.enableRtvUnityKombi);
|
|
612
605
|
}
|
|
613
606
|
}, {
|
|
614
607
|
key: "getDoDisablePlanner2D",
|
|
615
608
|
value: function getDoDisablePlanner2D() {
|
|
616
|
-
var _this$
|
|
617
|
-
return !!((_this$
|
|
609
|
+
var _this$divaWebConfigDa17;
|
|
610
|
+
return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
|
|
618
611
|
}
|
|
619
612
|
}, {
|
|
620
613
|
key: "getRoomListInProduct",
|
|
621
614
|
value: function getRoomListInProduct() {
|
|
622
|
-
var _this$
|
|
623
|
-
return !!((_this$
|
|
615
|
+
var _this$divaWebConfigDa18;
|
|
616
|
+
return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
|
|
624
617
|
}
|
|
625
618
|
}, {
|
|
626
619
|
key: "getPlannerType",
|
|
627
620
|
value: function getPlannerType() {
|
|
628
|
-
var _this$
|
|
629
|
-
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 ? void 0 : _this$divaWebConfigDa19.plannerType;
|
|
630
623
|
}
|
|
631
624
|
}, {
|
|
632
625
|
key: "getLoadSupplierColors",
|
|
633
626
|
value: function getLoadSupplierColors() {
|
|
634
|
-
var _this$
|
|
635
|
-
return !!((_this$
|
|
627
|
+
var _this$divaWebConfigDa20;
|
|
628
|
+
return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
|
|
636
629
|
}
|
|
637
630
|
}, {
|
|
638
631
|
key: "showSelectionModeZero",
|
|
639
632
|
value: function showSelectionModeZero() {
|
|
640
|
-
var _this$
|
|
641
|
-
return !!((_this$
|
|
633
|
+
var _this$divaWebConfigDa21;
|
|
634
|
+
return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
|
|
642
635
|
}
|
|
643
636
|
}, {
|
|
644
637
|
key: "ruleDescSeperator",
|
|
@@ -658,8 +651,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
658
651
|
}, {
|
|
659
652
|
key: "getDoCheckVariantData",
|
|
660
653
|
value: function getDoCheckVariantData() {
|
|
661
|
-
var _this$
|
|
662
|
-
return (_this$
|
|
654
|
+
var _this$divaWebConfigDa22;
|
|
655
|
+
return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.doCheckVariantData;
|
|
663
656
|
}
|
|
664
657
|
}, {
|
|
665
658
|
key: "setI18n",
|
|
@@ -752,50 +745,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
752
745
|
}, {
|
|
753
746
|
key: "getViewConfig",
|
|
754
747
|
value: function getViewConfig() {
|
|
755
|
-
var _this$
|
|
756
|
-
return (_this$
|
|
748
|
+
var _this$divaWebConfigDa23;
|
|
749
|
+
return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.viewConfig;
|
|
757
750
|
}
|
|
758
751
|
}, {
|
|
759
752
|
key: "getEmailConfig",
|
|
760
753
|
value: function getEmailConfig() {
|
|
761
|
-
var _this$
|
|
762
|
-
return (_this$
|
|
754
|
+
var _this$divaWebConfigDa24;
|
|
755
|
+
return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.emailConfig;
|
|
763
756
|
}
|
|
764
757
|
}, {
|
|
765
758
|
key: "getABTestCases",
|
|
766
759
|
value: function getABTestCases() {
|
|
767
|
-
var _this$
|
|
768
|
-
return (_this$
|
|
760
|
+
var _this$divaWebConfigDa25, _this$divaWebConfigDa26;
|
|
761
|
+
return (_this$divaWebConfigDa25 = (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.abTestCases) !== null && _this$divaWebConfigDa25 !== void 0 ? _this$divaWebConfigDa25 : [];
|
|
769
762
|
}
|
|
770
763
|
}, {
|
|
771
764
|
key: "getBarrierConfig",
|
|
772
765
|
value: function getBarrierConfig() {
|
|
773
|
-
var _this$
|
|
774
|
-
return (_this$
|
|
766
|
+
var _this$divaWebConfigDa27;
|
|
767
|
+
return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.barrierConfig;
|
|
775
768
|
}
|
|
776
769
|
}, {
|
|
777
770
|
key: "getTemplateConfig",
|
|
778
771
|
value: function getTemplateConfig() {
|
|
779
|
-
var _this$
|
|
780
|
-
return (_this$
|
|
772
|
+
var _this$divaWebConfigDa28;
|
|
773
|
+
return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.templateConfig;
|
|
781
774
|
}
|
|
782
775
|
}, {
|
|
783
776
|
key: "showDivaNr",
|
|
784
777
|
value: function showDivaNr() {
|
|
785
|
-
var _this$
|
|
786
|
-
return (_this$
|
|
778
|
+
var _this$divaWebConfigDa29;
|
|
779
|
+
return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.showDivaNr;
|
|
787
780
|
}
|
|
788
781
|
}, {
|
|
789
782
|
key: "onErrorHandling",
|
|
790
783
|
value: function onErrorHandling() {
|
|
791
|
-
var _this$
|
|
792
|
-
return (_this$
|
|
784
|
+
var _this$divaWebConfigDa30;
|
|
785
|
+
return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.onErrorHandling;
|
|
793
786
|
}
|
|
794
787
|
}, {
|
|
795
788
|
key: "diva3DRenderingDefault",
|
|
796
789
|
value: function diva3DRenderingDefault() {
|
|
797
|
-
var _this$
|
|
798
|
-
return (_this$
|
|
790
|
+
var _this$divaWebConfigDa31;
|
|
791
|
+
return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.diva3DRenderingDefault;
|
|
799
792
|
}
|
|
800
793
|
}, {
|
|
801
794
|
key: "getJwt",
|
|
@@ -810,8 +803,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
810
803
|
}, {
|
|
811
804
|
key: "getUseMask",
|
|
812
805
|
value: function getUseMask() {
|
|
813
|
-
var _this$
|
|
814
|
-
return (_this$
|
|
806
|
+
var _this$divaWebConfigDa32;
|
|
807
|
+
return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.useMask;
|
|
815
808
|
}
|
|
816
809
|
}, {
|
|
817
810
|
key: "apiUrl",
|
|
@@ -883,8 +876,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
883
876
|
return '/v1/products/' + productId + '/list';
|
|
884
877
|
}
|
|
885
878
|
}, {
|
|
886
|
-
key: "
|
|
887
|
-
value: function
|
|
879
|
+
key: "getProductByKeyValueUrl",
|
|
880
|
+
value: function getProductByKeyValueUrl(key, value) {
|
|
888
881
|
return "/v1/products/basket?key=".concat(key, "&value=").concat(value);
|
|
889
882
|
}
|
|
890
883
|
}, {
|
|
@@ -1331,14 +1324,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1331
1324
|
}, {
|
|
1332
1325
|
key: "dontLoadAdditionalModelInfos",
|
|
1333
1326
|
get: function get() {
|
|
1334
|
-
var _this$
|
|
1335
|
-
return (_this$
|
|
1327
|
+
var _this$divaWebConfigDa33;
|
|
1328
|
+
return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadAdditionalModelInfos;
|
|
1336
1329
|
}
|
|
1337
1330
|
}, {
|
|
1338
1331
|
key: "dontLoadCatalogEditorLiteMask",
|
|
1339
1332
|
get: function get() {
|
|
1340
|
-
var _this$
|
|
1341
|
-
return (_this$
|
|
1333
|
+
var _this$divaWebConfigDa34;
|
|
1334
|
+
return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.dontLoadCatalogEditorLiteMask;
|
|
1342
1335
|
}
|
|
1343
1336
|
}, {
|
|
1344
1337
|
key: "OrganizationId",
|
|
@@ -1597,6 +1590,16 @@ var ArticleOptionData = /*#__PURE__*/function () {
|
|
|
1597
1590
|
get: function get() {
|
|
1598
1591
|
return this.opt.catalogOPT.contentItemId;
|
|
1599
1592
|
}
|
|
1593
|
+
}, {
|
|
1594
|
+
key: "showSearchbar",
|
|
1595
|
+
get: function get() {
|
|
1596
|
+
return this.opt.catalogOPT.showSearchbar;
|
|
1597
|
+
}
|
|
1598
|
+
}, {
|
|
1599
|
+
key: "showFilter",
|
|
1600
|
+
get: function get() {
|
|
1601
|
+
return this.opt.catalogOPT.showFilter;
|
|
1602
|
+
}
|
|
1600
1603
|
}, {
|
|
1601
1604
|
key: "pdfUrl",
|
|
1602
1605
|
get: function get() {
|
|
@@ -1754,6 +1757,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
|
|
|
1754
1757
|
get: function get() {
|
|
1755
1758
|
return this.opv.codex;
|
|
1756
1759
|
}
|
|
1760
|
+
}, {
|
|
1761
|
+
key: "isNotRelevant",
|
|
1762
|
+
get: function get() {
|
|
1763
|
+
return this.opv.catalogOPV.isNotRelevant;
|
|
1764
|
+
}
|
|
1757
1765
|
}, {
|
|
1758
1766
|
key: "vCodex",
|
|
1759
1767
|
get: function get() {
|
|
@@ -1904,6 +1912,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
|
|
|
1904
1912
|
get: function get() {
|
|
1905
1913
|
return this.opv.catalogOPV.contentItemId;
|
|
1906
1914
|
}
|
|
1915
|
+
}, {
|
|
1916
|
+
key: "groupContentItemId",
|
|
1917
|
+
get: function get() {
|
|
1918
|
+
return this.opv.catalogOPV.groupContentItemId;
|
|
1919
|
+
}
|
|
1907
1920
|
}, {
|
|
1908
1921
|
key: "subArticleCodex",
|
|
1909
1922
|
get: function get() {
|
|
@@ -16043,6 +16056,10 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16043
16056
|
this.opv.onRule = prop.Value;
|
|
16044
16057
|
} else if (prop.Codex === 'CONTENT_ITEM') {
|
|
16045
16058
|
this.opv.contentItemId = prop.Value;
|
|
16059
|
+
} else if (prop.Codex === 'IS_NOT_RELEVANT') {
|
|
16060
|
+
this.opv.isNotRelevant = prop.Value;
|
|
16061
|
+
} else if (prop.Codex === 'GROUP_CONTENT_ITEM') {
|
|
16062
|
+
this.opv.groupContentItemId = prop.Value;
|
|
16046
16063
|
} else if (prop.Codex === 'SET_BY_RULE') {
|
|
16047
16064
|
this.opv.setByRule = prop.Value;
|
|
16048
16065
|
} else {
|
|
@@ -16080,6 +16097,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16080
16097
|
get: function get() {
|
|
16081
16098
|
return this.opv.vCodex;
|
|
16082
16099
|
}
|
|
16100
|
+
}, {
|
|
16101
|
+
key: "isNotRelevant",
|
|
16102
|
+
get: function get() {
|
|
16103
|
+
return this.opv.isNotRelevant;
|
|
16104
|
+
}
|
|
16083
16105
|
}, {
|
|
16084
16106
|
key: "name",
|
|
16085
16107
|
get: function get() {
|
|
@@ -16213,6 +16235,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16213
16235
|
get: function get() {
|
|
16214
16236
|
return this.opv.contentItemId;
|
|
16215
16237
|
}
|
|
16238
|
+
}, {
|
|
16239
|
+
key: "groupContentItemId",
|
|
16240
|
+
get: function get() {
|
|
16241
|
+
return this.opv.groupContentItemId;
|
|
16242
|
+
}
|
|
16216
16243
|
}, {
|
|
16217
16244
|
key: "metaData",
|
|
16218
16245
|
get: function get() {
|
|
@@ -16450,6 +16477,8 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
16450
16477
|
this.catalogArticle.maxPlanningCount = Number(prop.Value);
|
|
16451
16478
|
} else if (_key == 'CONTENT_ITEM') {
|
|
16452
16479
|
this.catalogArticle.contentItemId = prop.Value;
|
|
16480
|
+
} else if (_key == 'GROUP_CONTENT_ITEM') {
|
|
16481
|
+
this.catalogArticle.groupContentItemId = prop.Value;
|
|
16453
16482
|
} else if (_key == 'HAS3D') {
|
|
16454
16483
|
this.catalogArticle.isVisualized = prop.Value;
|
|
16455
16484
|
} else {
|
|
@@ -16500,6 +16529,11 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
16500
16529
|
get: function get() {
|
|
16501
16530
|
return this.catalogArticle.contentItemId;
|
|
16502
16531
|
}
|
|
16532
|
+
}, {
|
|
16533
|
+
key: "groupContentItemId",
|
|
16534
|
+
get: function get() {
|
|
16535
|
+
return this.catalogArticle.groupContentItemId;
|
|
16536
|
+
}
|
|
16503
16537
|
}, {
|
|
16504
16538
|
key: "articleCodex",
|
|
16505
16539
|
get: function get() {
|
|
@@ -17094,7 +17128,8 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
17094
17128
|
isVisualized: catalogArticle.isVisualized,
|
|
17095
17129
|
configStepKeys: [],
|
|
17096
17130
|
metaData: catalogArticle.metaDataView,
|
|
17097
|
-
contentItemId: catalogArticle.contentItemId
|
|
17131
|
+
contentItemId: catalogArticle.contentItemId,
|
|
17132
|
+
groupContentItemId: catalogArticle.groupContentItemId
|
|
17098
17133
|
});
|
|
17099
17134
|
}
|
|
17100
17135
|
}
|
|
@@ -17830,6 +17865,12 @@ var OptionCatalogData = /*#__PURE__*/function () {
|
|
|
17830
17865
|
case 'INFO_URL':
|
|
17831
17866
|
this.opt.url = prop.Value;
|
|
17832
17867
|
break;
|
|
17868
|
+
case 'SHOW_SEARCHBAR':
|
|
17869
|
+
this.opt.showSearchbar = prop.Value == '1';
|
|
17870
|
+
break;
|
|
17871
|
+
case 'SHOW_FILTER':
|
|
17872
|
+
this.opt.showFilter = prop.Value == '1';
|
|
17873
|
+
break;
|
|
17833
17874
|
case 'INFO_PDF':
|
|
17834
17875
|
this.opt.pdfUrl = prop.Value;
|
|
17835
17876
|
break;
|
|
@@ -18030,6 +18071,16 @@ var OptionCatalogData = /*#__PURE__*/function () {
|
|
|
18030
18071
|
get: function get() {
|
|
18031
18072
|
return this.opt.url;
|
|
18032
18073
|
}
|
|
18074
|
+
}, {
|
|
18075
|
+
key: "showSearchbar",
|
|
18076
|
+
get: function get() {
|
|
18077
|
+
return this.opt.showSearchbar;
|
|
18078
|
+
}
|
|
18079
|
+
}, {
|
|
18080
|
+
key: "showFilter",
|
|
18081
|
+
get: function get() {
|
|
18082
|
+
return this.opt.showFilter;
|
|
18083
|
+
}
|
|
18033
18084
|
}, {
|
|
18034
18085
|
key: "pdfUrl",
|
|
18035
18086
|
get: function get() {
|
|
@@ -18126,7 +18177,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18126
18177
|
brandName: json.Brandname,
|
|
18127
18178
|
mediaUrl: '',
|
|
18128
18179
|
// https://retail.diva-portal.de/files/33/9680c4a3-fc60-4541-8738-4859d9b24e9d/";
|
|
18129
|
-
imageBaseUrl: '',
|
|
18130
18180
|
subFolder: json.SubFolder,
|
|
18131
18181
|
longDescription: json.LongDescription,
|
|
18132
18182
|
longDescription_locales: json.LongDescription_locales,
|
|
@@ -18201,9 +18251,12 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18201
18251
|
//DP Logik
|
|
18202
18252
|
reconfigAfterArticleDocked: false,
|
|
18203
18253
|
ignoreLayerAVC: false,
|
|
18204
|
-
//
|
|
18254
|
+
//
|
|
18205
18255
|
ignoreLayerAVOAVU: false,
|
|
18206
|
-
//
|
|
18256
|
+
//
|
|
18257
|
+
ignoreLayerAVNAVS: false,
|
|
18258
|
+
//
|
|
18259
|
+
|
|
18207
18260
|
dockAccOnAvoOnly: false,
|
|
18208
18261
|
// ist bei Küssnacht dass Acc nicht an nach unten schauenden Dockingpoints angedockt werden können sondern immer nur oben drauf verplant werden können
|
|
18209
18262
|
showAccOnDpOnly: false,
|
|
@@ -18328,9 +18381,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18328
18381
|
key: "getMediaURL",
|
|
18329
18382
|
value: function getMediaURL(subFolder) {
|
|
18330
18383
|
var retval = '';
|
|
18331
|
-
if (this.
|
|
18332
|
-
retval = this.catalogData.imageBaseUrl;
|
|
18333
|
-
} else if (this.api.getBaseUrl().substring(0, 4) == 'http') {
|
|
18384
|
+
if (this.api.getBaseUrl().substring(0, 4) == 'http') {
|
|
18334
18385
|
retval = this.api.getBaseUrl() + '/' + this.api.getServerId() + '/';
|
|
18335
18386
|
}
|
|
18336
18387
|
if (subFolder != '') retval += subFolder + '/';
|
|
@@ -18502,6 +18553,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18502
18553
|
_this.catalogData.ignoreLayerAVC = item.Value == '1';
|
|
18503
18554
|
} else if (item.Codex == 'IGNORELAYERAVOAVU') {
|
|
18504
18555
|
_this.catalogData.ignoreLayerAVOAVU = item.Value == '1';
|
|
18556
|
+
} else if (item.Codex == 'IGNORELAYERAVNAVS') {
|
|
18557
|
+
_this.catalogData.ignoreLayerAVNAVS = item.Value == '1';
|
|
18505
18558
|
} else if (item.Codex == 'DOCKACCONAVOONLY') {
|
|
18506
18559
|
//Accessoires können nur aufwärts verplant werden. (Für Küssnacht)
|
|
18507
18560
|
_this.catalogData.dockAccOnAvoOnly = item.Value == '1';
|
|
@@ -18786,6 +18839,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18786
18839
|
groupName: groupTitle,
|
|
18787
18840
|
metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
|
|
18788
18841
|
contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
|
|
18842
|
+
groupContentItemId: this.catalogArticles[catPlanArticle.codex].groupContentItemId,
|
|
18789
18843
|
partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
|
|
18790
18844
|
};
|
|
18791
18845
|
this.plannerPaletteViewInfo.catalogPlannerArticles.push(catPlanArtView);
|
|
@@ -18844,6 +18898,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18844
18898
|
groupName: groupTitle,
|
|
18845
18899
|
metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
|
|
18846
18900
|
contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
|
|
18901
|
+
groupContentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
|
|
18847
18902
|
partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
|
|
18848
18903
|
};
|
|
18849
18904
|
//nicht ausmultiplizierte Elemente
|
|
@@ -19063,6 +19118,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19063
19118
|
return {
|
|
19064
19119
|
ignoreLayerAVC: this.catalogData.ignoreLayerAVC,
|
|
19065
19120
|
ignoreLayerAVOAVU: this.catalogData.ignoreLayerAVOAVU,
|
|
19121
|
+
ignoreLayerAVNAVS: this.catalogData.ignoreLayerAVNAVS,
|
|
19066
19122
|
showAccOnDpOnly: this.catalogData.showAccOnDpOnly,
|
|
19067
19123
|
dockAccOnAvoOnly: this.catalogData.dockAccOnAvoOnly,
|
|
19068
19124
|
hideAccessoriesInPlanner: this.catalogData.accessorieStepAsPlanner,
|
|
@@ -20007,7 +20063,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20007
20063
|
}, {
|
|
20008
20064
|
key: "isDisabled",
|
|
20009
20065
|
get: function get() {
|
|
20010
|
-
|
|
20066
|
+
var _this$val3;
|
|
20067
|
+
return this.articleOptionState.disabled || !!((_this$val3 = this.val) !== null && _this$val3 !== void 0 && _this$val3.isNotRelevant) && this.visibleCount == 1;
|
|
20011
20068
|
},
|
|
20012
20069
|
set: function set(isDisabled) {
|
|
20013
20070
|
this.articleOptionState.disabled = isDisabled;
|
|
@@ -20015,7 +20072,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20015
20072
|
}, {
|
|
20016
20073
|
key: "isDoShow",
|
|
20017
20074
|
get: function get() {
|
|
20018
|
-
|
|
20075
|
+
var _this$val4;
|
|
20076
|
+
return this.articleOptionState.doShow && (!((_this$val4 = this.val) !== null && _this$val4 !== void 0 && _this$val4.isNotRelevant) || this.visibleCount > 1);
|
|
20019
20077
|
},
|
|
20020
20078
|
set: function set(doShow) {
|
|
20021
20079
|
this.articleOptionState.doShow = doShow;
|
|
@@ -20059,14 +20117,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20059
20117
|
}, {
|
|
20060
20118
|
key: "priceId",
|
|
20061
20119
|
get: function get() {
|
|
20062
|
-
var _this$val$priceId, _this$
|
|
20063
|
-
return (_this$val$priceId = (_this$
|
|
20120
|
+
var _this$val$priceId, _this$val5;
|
|
20121
|
+
return (_this$val$priceId = (_this$val5 = this.val) === null || _this$val5 === void 0 ? void 0 : _this$val5.priceId) !== null && _this$val$priceId !== void 0 ? _this$val$priceId : '';
|
|
20064
20122
|
}
|
|
20065
20123
|
}, {
|
|
20066
20124
|
key: "targetOption",
|
|
20067
20125
|
get: function get() {
|
|
20068
|
-
var _this$
|
|
20069
|
-
return (_this$
|
|
20126
|
+
var _this$val6;
|
|
20127
|
+
return (_this$val6 = this.val) === null || _this$val6 === void 0 ? void 0 : _this$val6.targetOption;
|
|
20070
20128
|
}
|
|
20071
20129
|
}, {
|
|
20072
20130
|
key: "targetPPGPrefixes",
|
|
@@ -20083,14 +20141,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20083
20141
|
}, {
|
|
20084
20142
|
key: "quantity",
|
|
20085
20143
|
get: function get() {
|
|
20086
|
-
var _this$val$quantity, _this$
|
|
20087
|
-
return (_this$val$quantity = (_this$
|
|
20144
|
+
var _this$val$quantity, _this$val7;
|
|
20145
|
+
return (_this$val$quantity = (_this$val7 = this.val) === null || _this$val7 === void 0 ? void 0 : _this$val7.quantity) !== null && _this$val$quantity !== void 0 ? _this$val$quantity : 1;
|
|
20088
20146
|
}
|
|
20089
20147
|
}, {
|
|
20090
20148
|
key: "ocd",
|
|
20091
20149
|
get: function get() {
|
|
20092
|
-
var _this$
|
|
20093
|
-
return (_this$
|
|
20150
|
+
var _this$val8;
|
|
20151
|
+
return (_this$val8 = this.val) === null || _this$val8 === void 0 ? void 0 : _this$val8.ocd;
|
|
20094
20152
|
}
|
|
20095
20153
|
}, {
|
|
20096
20154
|
key: "optionOcd",
|
|
@@ -20100,8 +20158,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20100
20158
|
}, {
|
|
20101
20159
|
key: "value",
|
|
20102
20160
|
get: function get() {
|
|
20103
|
-
var _this$
|
|
20104
|
-
return (_this$
|
|
20161
|
+
var _this$val9;
|
|
20162
|
+
return (_this$val9 = this.val) === null || _this$val9 === void 0 ? void 0 : _this$val9.value;
|
|
20105
20163
|
}
|
|
20106
20164
|
}, {
|
|
20107
20165
|
key: "vCodex",
|
|
@@ -20129,8 +20187,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20129
20187
|
get: function get() {
|
|
20130
20188
|
if (this.articleOptionState.retailArticleNr) return this.articleOptionState.retailArticleNr;
|
|
20131
20189
|
if (this.articleOptionState.option.articlePlaceholder) {
|
|
20132
|
-
var _this$
|
|
20133
|
-
return (_this$
|
|
20190
|
+
var _this$val10;
|
|
20191
|
+
return (_this$val10 = this.val) === null || _this$val10 === void 0 ? void 0 : _this$val10.subRetailArticleNr;
|
|
20134
20192
|
}
|
|
20135
20193
|
return undefined;
|
|
20136
20194
|
},
|
|
@@ -20153,8 +20211,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20153
20211
|
}, {
|
|
20154
20212
|
key: "visibleInSummary",
|
|
20155
20213
|
value: function visibleInSummary(aritcle) {
|
|
20156
|
-
var _this$
|
|
20157
|
-
return !this.isInvisible && (this.selectionmode != 0 || (this.visibleCount > 1 || this.isFreeText) && aritcle.set.api.showSelectionModeZero()) && this.isDoShow && this.
|
|
20214
|
+
var _this$val11, _this$val12;
|
|
20215
|
+
return !this.isInvisible && (this.selectionmode != 0 || (this.visibleCount > 1 || this.isFreeText) && aritcle.set.api.showSelectionModeZero()) && this.isDoShow && !((_this$val11 = this.val) !== null && _this$val11 !== void 0 && _this$val11.isNotRelevant) && !this.isHiddenByDefaultValueForOptions(aritcle) && !((_this$val12 = this.val) !== null && _this$val12 !== void 0 && _this$val12.hideInSummary);
|
|
20158
20216
|
}
|
|
20159
20217
|
}, {
|
|
20160
20218
|
key: "isHiddenByDefaultValueForOptions",
|
|
@@ -20175,45 +20233,45 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20175
20233
|
}, {
|
|
20176
20234
|
key: "subArticleCodex",
|
|
20177
20235
|
get: function get() {
|
|
20178
|
-
var _this$
|
|
20179
|
-
return (_this$
|
|
20236
|
+
var _this$val13;
|
|
20237
|
+
return (_this$val13 = this.val) === null || _this$val13 === void 0 ? void 0 : _this$val13.subArticleCodex;
|
|
20180
20238
|
}
|
|
20181
20239
|
}, {
|
|
20182
20240
|
key: "subArticleName",
|
|
20183
20241
|
get: function get() {
|
|
20184
|
-
var _this$
|
|
20185
|
-
return (_this$
|
|
20242
|
+
var _this$val14;
|
|
20243
|
+
return (_this$val14 = this.val) === null || _this$val14 === void 0 ? void 0 : _this$val14.subArticleName;
|
|
20186
20244
|
}
|
|
20187
20245
|
}, {
|
|
20188
20246
|
key: "measureUnit",
|
|
20189
20247
|
get: function get() {
|
|
20190
|
-
var _this$
|
|
20191
|
-
return (_this$
|
|
20248
|
+
var _this$val15;
|
|
20249
|
+
return (_this$val15 = this.val) === null || _this$val15 === void 0 ? void 0 : _this$val15.measureUnit;
|
|
20192
20250
|
}
|
|
20193
20251
|
}, {
|
|
20194
20252
|
key: "priceUnit",
|
|
20195
20253
|
get: function get() {
|
|
20196
|
-
var _this$val$priceUnit, _this$
|
|
20197
|
-
var retval = (_this$val$priceUnit = (_this$
|
|
20254
|
+
var _this$val$priceUnit, _this$val16, _this$val17, _this$val$parent;
|
|
20255
|
+
var retval = (_this$val$priceUnit = (_this$val16 = this.val) === null || _this$val16 === void 0 ? void 0 : _this$val16.priceUnit) !== null && _this$val$priceUnit !== void 0 ? _this$val$priceUnit : (_this$val17 = this.val) !== null && _this$val17 !== void 0 && _this$val17.isParentOPVG ? (_this$val$parent = this.val.parent) === null || _this$val$parent === void 0 ? void 0 : _this$val$parent.priceUnit : undefined;
|
|
20198
20256
|
return retval;
|
|
20199
20257
|
}
|
|
20200
20258
|
}, {
|
|
20201
20259
|
key: "isPercentage",
|
|
20202
20260
|
get: function get() {
|
|
20203
|
-
var _this$
|
|
20204
|
-
return (_this$
|
|
20261
|
+
var _this$val18;
|
|
20262
|
+
return (_this$val18 = this.val) === null || _this$val18 === void 0 ? void 0 : _this$val18.isPercentage;
|
|
20205
20263
|
}
|
|
20206
20264
|
}, {
|
|
20207
20265
|
key: "replaceMainArtNr",
|
|
20208
20266
|
get: function get() {
|
|
20209
|
-
var _this$
|
|
20210
|
-
return (_this$
|
|
20267
|
+
var _this$val19;
|
|
20268
|
+
return (_this$val19 = this.val) === null || _this$val19 === void 0 ? void 0 : _this$val19.subarticleReplaceMainArticleNr;
|
|
20211
20269
|
}
|
|
20212
20270
|
}, {
|
|
20213
20271
|
key: "subArticleTypeNr",
|
|
20214
20272
|
get: function get() {
|
|
20215
|
-
var _this$
|
|
20216
|
-
return (_this$
|
|
20273
|
+
var _this$val20;
|
|
20274
|
+
return (_this$val20 = this.val) === null || _this$val20 === void 0 ? void 0 : _this$val20.subArticleTypeNr;
|
|
20217
20275
|
}
|
|
20218
20276
|
}, {
|
|
20219
20277
|
key: "isVisibleFreeText",
|
|
@@ -20239,14 +20297,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20239
20297
|
}, {
|
|
20240
20298
|
key: "isOnlyFreeText",
|
|
20241
20299
|
get: function get() {
|
|
20242
|
-
var _this$
|
|
20243
|
-
return ((_this$
|
|
20300
|
+
var _this$val21;
|
|
20301
|
+
return ((_this$val21 = this.val) === null || _this$val21 === void 0 ? void 0 : _this$val21.isFreeText) && this.visibleCount == 1;
|
|
20244
20302
|
}
|
|
20245
20303
|
}, {
|
|
20246
20304
|
key: "isFreeText",
|
|
20247
20305
|
get: function get() {
|
|
20248
|
-
var _this$
|
|
20249
|
-
return (_this$
|
|
20306
|
+
var _this$val22;
|
|
20307
|
+
return (_this$val22 = this.val) === null || _this$val22 === void 0 ? void 0 : _this$val22.isFreeText;
|
|
20250
20308
|
}
|
|
20251
20309
|
}, {
|
|
20252
20310
|
key: "freeText",
|
|
@@ -20291,8 +20349,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20291
20349
|
}, {
|
|
20292
20350
|
key: "warning",
|
|
20293
20351
|
get: function get() {
|
|
20294
|
-
var _this$
|
|
20295
|
-
if ((_this$
|
|
20352
|
+
var _this$val23;
|
|
20353
|
+
if ((_this$val23 = this.val) !== null && _this$val23 !== void 0 && _this$val23.isFreeText) {
|
|
20296
20354
|
if (this.val.measureMaximum && Number(this.freeText) > Number(this.val.measureMaximum) || this.val.measureMinimum && Number(this.freeText) < Number(this.val.measureMinimum)) {
|
|
20297
20355
|
return 'measureWarning';
|
|
20298
20356
|
}
|
|
@@ -23561,7 +23619,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23561
23619
|
break;
|
|
23562
23620
|
}
|
|
23563
23621
|
_context.next = 4;
|
|
23564
|
-
return import('./ShelfPlanner-
|
|
23622
|
+
return import('./ShelfPlanner-1d639b0b.js');
|
|
23565
23623
|
case 4:
|
|
23566
23624
|
_yield$import = _context.sent;
|
|
23567
23625
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -26904,6 +26962,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
26904
26962
|
_defineProperty(this, "setId", void 0);
|
|
26905
26963
|
_defineProperty(this, "_isActSet", false);
|
|
26906
26964
|
_defineProperty(this, "setData", void 0);
|
|
26965
|
+
_defineProperty(this, "_onlyCalcVariants", void 0);
|
|
26907
26966
|
_defineProperty(this, "divaArticles", void 0);
|
|
26908
26967
|
//Schlüssel ist basketId
|
|
26909
26968
|
_defineProperty(this, "configSingleData", void 0);
|
|
@@ -28093,7 +28152,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28093
28152
|
break;
|
|
28094
28153
|
}
|
|
28095
28154
|
_context4.next = 3;
|
|
28096
|
-
return import('./DoorPlanner-
|
|
28155
|
+
return import('./DoorPlanner-9dc6e1b8.js');
|
|
28097
28156
|
case 3:
|
|
28098
28157
|
_yield$import = _context4.sent;
|
|
28099
28158
|
DoorPlanner = _yield$import["default"];
|
|
@@ -28158,6 +28217,14 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28158
28217
|
get: function get() {
|
|
28159
28218
|
return this.setState;
|
|
28160
28219
|
}
|
|
28220
|
+
}, {
|
|
28221
|
+
key: "onlyCalcVariants",
|
|
28222
|
+
get: function get() {
|
|
28223
|
+
return this._onlyCalcVariants;
|
|
28224
|
+
},
|
|
28225
|
+
set: function set(val) {
|
|
28226
|
+
this._onlyCalcVariants = val;
|
|
28227
|
+
}
|
|
28161
28228
|
|
|
28162
28229
|
/**
|
|
28163
28230
|
*
|
|
@@ -28851,10 +28918,11 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
28851
28918
|
value: function geTabGroupFormOptionsForSummary(article) {
|
|
28852
28919
|
var tabGroups = [];
|
|
28853
28920
|
for (var basketId in article.partlistArticles) {
|
|
28921
|
+
var _ops$val;
|
|
28854
28922
|
var partlistArticle = article.partlistArticles[basketId];
|
|
28855
28923
|
if (!partlistArticle.tabGroup) continue;
|
|
28856
28924
|
var ops = article.getArticleOptionState('OPT' + partlistArticle.tabGroup);
|
|
28857
|
-
if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && ops.
|
|
28925
|
+
if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && !((_ops$val = ops.val) !== null && _ops$val !== void 0 && _ops$val.isNotRelevant) && ops !== null && ops !== void 0 && ops.optionTabGroup) {
|
|
28858
28926
|
tabGroups.push({
|
|
28859
28927
|
optionCodex: ops.optionCodex,
|
|
28860
28928
|
tabGroup: ops.optionTabGroup
|
|
@@ -28864,8 +28932,9 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
28864
28932
|
|
|
28865
28933
|
//old logic TODO: Delete in 2024
|
|
28866
28934
|
if (Object.keys(tabGroups).length === 0) for (var _key12 in article.articleOptionStates) {
|
|
28935
|
+
var _ops$val2;
|
|
28867
28936
|
var _ops = article.articleOptionStates[_key12];
|
|
28868
|
-
if (!_ops.isInvisible && (_ops.selectionmode != 0 || (_ops.visibleCount > 1 || _ops.isFreeText) && article.set.api.showSelectionModeZero()) && _ops.
|
|
28937
|
+
if (!_ops.isInvisible && (_ops.selectionmode != 0 || (_ops.visibleCount > 1 || _ops.isFreeText) && article.set.api.showSelectionModeZero()) && !((_ops$val2 = _ops.val) !== null && _ops$val2 !== void 0 && _ops$val2.isNotRelevant) && _ops.isDoShow) {
|
|
28869
28938
|
var tabGroup = _ops.option.addOptionToTabgroupInPartlistSummary;
|
|
28870
28939
|
if (tabGroup) tabGroups.push({
|
|
28871
28940
|
optionCodex: _key12,
|
|
@@ -28894,8 +28963,9 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
28894
28963
|
var opss = [];
|
|
28895
28964
|
if (article.getArticleOptionState('OPT' + optionCodexes[0])) {
|
|
28896
28965
|
for (var i = 0; i < optionCodexes.length; i++) {
|
|
28966
|
+
var _optionState$val3;
|
|
28897
28967
|
var optionState = article.getArticleOptionState('OPT' + optionCodexes[i]);
|
|
28898
|
-
if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && optionState.
|
|
28968
|
+
if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && !((_optionState$val3 = optionState.val) !== null && _optionState$val3 !== void 0 && _optionState$val3.isNotRelevant)) {
|
|
28899
28969
|
opss.push(optionState);
|
|
28900
28970
|
}
|
|
28901
28971
|
}
|
|
@@ -28904,8 +28974,9 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
28904
28974
|
|
|
28905
28975
|
//old logic TODO: Delete in 2024
|
|
28906
28976
|
for (var _key13 in article.articleOptionStates) {
|
|
28977
|
+
var _optionState$val4;
|
|
28907
28978
|
var _optionState = article.articleOptionStates[_key13];
|
|
28908
|
-
if (_optionState.option.addOptionToTabgroupInPartlistSummary == tabGroup && !_optionState.isInvisible && _optionState.isDoShow && _optionState.visibleCount > 0 && _optionState.
|
|
28979
|
+
if (_optionState.option.addOptionToTabgroupInPartlistSummary == tabGroup && !_optionState.isInvisible && _optionState.isDoShow && _optionState.visibleCount > 0 && !((_optionState$val4 = _optionState.val) !== null && _optionState$val4 !== void 0 && _optionState$val4.isNotRelevant)) {
|
|
28909
28980
|
opss.push(_optionState);
|
|
28910
28981
|
}
|
|
28911
28982
|
}
|
|
@@ -29598,7 +29669,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
29598
29669
|
key: "getValidVariants",
|
|
29599
29670
|
value: function () {
|
|
29600
29671
|
var _getValidVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(set, useCache) {
|
|
29601
|
-
var allvariants, validVariants, i;
|
|
29672
|
+
var allvariants, validVariants, i, _set$onlyCalcVariants;
|
|
29602
29673
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
|
29603
29674
|
while (1) switch (_context4.prev = _context4.next) {
|
|
29604
29675
|
case 0:
|
|
@@ -29619,7 +29690,9 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
29619
29690
|
validVariants = [];
|
|
29620
29691
|
for (i = 0; i < allvariants.length; i++) {
|
|
29621
29692
|
if (!set.disabledVariants.includes(allvariants[i].id)) {
|
|
29622
|
-
|
|
29693
|
+
if (!((_set$onlyCalcVariants = set.onlyCalcVariants) !== null && _set$onlyCalcVariants !== void 0 && _set$onlyCalcVariants.length) || set.onlyCalcVariants.includes(allvariants[i].id)) {
|
|
29694
|
+
validVariants.push(allvariants[i]);
|
|
29695
|
+
}
|
|
29623
29696
|
}
|
|
29624
29697
|
}
|
|
29625
29698
|
return _context4.abrupt("return", validVariants);
|
|
@@ -30000,9 +30073,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30000
30073
|
}
|
|
30001
30074
|
}, {
|
|
30002
30075
|
key: "addOptionsStateToConfigTree",
|
|
30003
|
-
value: function addOptionsStateToConfigTree(set, configTree, articles,
|
|
30004
|
-
var _set$ViewConfig3;
|
|
30005
|
-
var article = articles[
|
|
30076
|
+
value: function addOptionsStateToConfigTree(set, configTree, articles, b, ops, optionCodex, selectionmode, addToTabGroup) {
|
|
30077
|
+
var _article$partListPare, _set$ViewConfig3;
|
|
30078
|
+
var article = articles[b];
|
|
30079
|
+
var basketId = article.partlistArticleVisibleInTree ? (_article$partListPare = article.partListParentArticle) === null || _article$partListPare === void 0 ? void 0 : _article$partListPare.basketId : article.basketId;
|
|
30006
30080
|
var tabGroupCodex;
|
|
30007
30081
|
var tabGroupTitel;
|
|
30008
30082
|
if (ops.optionTabGroup) tabGroupCodex = ops.optionTabGroup;else tabGroupCodex = ops.optionName;
|
|
@@ -30288,7 +30362,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30288
30362
|
optionStatesOfArticles = set.getOptionStatesOfArticles(set.getDivaArticles(true));
|
|
30289
30363
|
articles = set.getDivaArticles(true);
|
|
30290
30364
|
step = set.configTree.getAllByKey(configStepKey);
|
|
30291
|
-
retValues = this.getConfigItems(configStepKey,
|
|
30365
|
+
retValues = this.getConfigItems(configStepKey, articles, set.configTree);
|
|
30292
30366
|
optionCodex = undefined;
|
|
30293
30367
|
if (!(retValues && step != null)) {
|
|
30294
30368
|
_context.next = 55;
|
|
@@ -30421,7 +30495,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30421
30495
|
}()
|
|
30422
30496
|
}, {
|
|
30423
30497
|
key: "getConfigItems",
|
|
30424
|
-
value: function getConfigItems(key,
|
|
30498
|
+
value: function getConfigItems(key, articles, configTree) {
|
|
30425
30499
|
var step = configTree.getAllByKey(key);
|
|
30426
30500
|
if (step != null) {
|
|
30427
30501
|
var configItems = {},
|
|
@@ -30435,7 +30509,8 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30435
30509
|
notTotallyMatichingOPVs = false,
|
|
30436
30510
|
myOptionState = undefined;
|
|
30437
30511
|
for (var i = 0; i < configStep.targetArticles.length; i++) {
|
|
30438
|
-
var
|
|
30512
|
+
var article = articles[configStep.targetArticles[i]];
|
|
30513
|
+
var myOptions = article.articleOptionStates;
|
|
30439
30514
|
myOptionState = myOptions[configStep.option];
|
|
30440
30515
|
if (myOptionState.option.hasOPG) isOPG = true;
|
|
30441
30516
|
selectedVals = selectedVals.concat(myOptionState.getSelectedVals);
|
|
@@ -30468,6 +30543,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30468
30543
|
if (visibleOptionValuesOfArticles.length > 0) {
|
|
30469
30544
|
configItems = Object.assign({}, visibleOptionValuesOfArticles[0]);
|
|
30470
30545
|
var _loop4 = function _loop4(_i2) {
|
|
30546
|
+
if (articles[configStep.targetArticles[_i2]].articleOptionStates[configStep.option].definedBySetFeatureFixed) return 1; // continue
|
|
30471
30547
|
var keys = Object.keys(configItems);
|
|
30472
30548
|
var newKeys = Object.keys(visibleOptionValuesOfArticles[_i2]);
|
|
30473
30549
|
var opvsOnlyInA = keys.filter(function (x) {
|
|
@@ -30525,7 +30601,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30525
30601
|
}
|
|
30526
30602
|
};
|
|
30527
30603
|
for (var _i2 = 1; _i2 < visibleOptionValuesOfArticles.length; _i2++) {
|
|
30528
|
-
_loop4(_i2);
|
|
30604
|
+
if (_loop4(_i2)) continue;
|
|
30529
30605
|
}
|
|
30530
30606
|
}
|
|
30531
30607
|
return {
|
|
@@ -30626,6 +30702,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30626
30702
|
//if a opv has isFreeText = true and its selected a Textbox sould appear in the OptionValue
|
|
30627
30703
|
//if the text is empty the opv is really selected
|
|
30628
30704
|
contentItemId: item.contentItemId,
|
|
30705
|
+
groupContentItemId: item.groupContentItemId,
|
|
30629
30706
|
idmOpgOptionCodex: idmOpgOptionCodex,
|
|
30630
30707
|
idmOpgValCodex: idmOpgValCodex,
|
|
30631
30708
|
isFreeText: item.isFreeText,
|
|
@@ -30724,6 +30801,34 @@ var DivaProductHandler = /*#__PURE__*/function () {
|
|
|
30724
30801
|
}
|
|
30725
30802
|
return updateProducts;
|
|
30726
30803
|
}()
|
|
30804
|
+
}, {
|
|
30805
|
+
key: "getBestMatch",
|
|
30806
|
+
value: function getBestMatch(articles, products) {
|
|
30807
|
+
var OPTION_CODEX = 'KOPFTEIL';
|
|
30808
|
+
if (!articles) return;
|
|
30809
|
+
for (var key in articles) {
|
|
30810
|
+
var _article$VariantValue;
|
|
30811
|
+
var article = articles[key];
|
|
30812
|
+
var opv = (_article$VariantValue = article.VariantValues['OPT' + OPTION_CODEX]) === null || _article$VariantValue === void 0 ? void 0 : _article$VariantValue.replace('OPV', '');
|
|
30813
|
+
if (!products || !opv) continue;
|
|
30814
|
+
for (var i = 0; i < products.length; i++) {
|
|
30815
|
+
var _products$i$affiliate;
|
|
30816
|
+
if ((_products$i$affiliate = products[i].affiliate) !== null && _products$i$affiliate !== void 0 && _products$i$affiliate.length) if (this.findOPVCodexInVariantValues(products[i], OPTION_CODEX, opv)) {
|
|
30817
|
+
return products[i];
|
|
30818
|
+
}
|
|
30819
|
+
}
|
|
30820
|
+
}
|
|
30821
|
+
return undefined;
|
|
30822
|
+
}
|
|
30823
|
+
}, {
|
|
30824
|
+
key: "findOPVCodexInVariantValues",
|
|
30825
|
+
value: function findOPVCodexInVariantValues(product, opt, opv) {
|
|
30826
|
+
return product.articles.find(function (article) {
|
|
30827
|
+
return article.variantValues.find(function (variant) {
|
|
30828
|
+
return variant.OPT === opt && variant.OPV === opv;
|
|
30829
|
+
});
|
|
30830
|
+
});
|
|
30831
|
+
}
|
|
30727
30832
|
}]);
|
|
30728
30833
|
}();
|
|
30729
30834
|
var productHandlerInstance = new DivaProductHandler();
|
|
@@ -31699,8 +31804,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31699
31804
|
key: "deleteElementFromSet",
|
|
31700
31805
|
value: function () {
|
|
31701
31806
|
var _deleteElementFromSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(set, article, autoCorrectAVL_AVR, deletionType, dontReload) {
|
|
31702
|
-
var _deletedArticle$doorP, _set$CatalogData;
|
|
31703
|
-
var setId, deletedArticle, articles, key, newSelectedElement, oldTransform, result, _set$getArticleByBask3, elementDeleted;
|
|
31807
|
+
var setId, allElementsToDelete, success, newSelectedElement, i, _deletedArticle$doorP, _set$CatalogData, deletedArticle, articles, key, oldTransform, result, _set$getArticleByBask3;
|
|
31704
31808
|
return _regeneratorRuntime.wrap(function _callee14$(_context16) {
|
|
31705
31809
|
while (1) switch (_context16.prev = _context16.next) {
|
|
31706
31810
|
case 0:
|
|
@@ -31715,35 +31819,44 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31715
31819
|
setId: setId
|
|
31716
31820
|
});
|
|
31717
31821
|
case 3:
|
|
31822
|
+
allElementsToDelete = set.plannerHandler.getPlannerElementsInfluencedByDeletion(setId, article.elementId);
|
|
31823
|
+
success = false;
|
|
31824
|
+
newSelectedElement = undefined;
|
|
31825
|
+
i = 0;
|
|
31826
|
+
case 7:
|
|
31827
|
+
if (!(i < allElementsToDelete.length)) {
|
|
31828
|
+
_context16.next = 35;
|
|
31829
|
+
break;
|
|
31830
|
+
}
|
|
31831
|
+
article = set.getArticleByElementId(allElementsToDelete[i]);
|
|
31718
31832
|
deletedArticle = article; //accessoires löschen
|
|
31719
31833
|
articles = set.getAccessoiresOfBasketId(article.basketId);
|
|
31720
31834
|
_context16.t0 = _regeneratorRuntime.keys(articles);
|
|
31721
|
-
case
|
|
31835
|
+
case 12:
|
|
31722
31836
|
if ((_context16.t1 = _context16.t0()).done) {
|
|
31723
|
-
_context16.next =
|
|
31837
|
+
_context16.next = 18;
|
|
31724
31838
|
break;
|
|
31725
31839
|
}
|
|
31726
31840
|
key = _context16.t1.value;
|
|
31727
|
-
_context16.next =
|
|
31841
|
+
_context16.next = 16;
|
|
31728
31842
|
return this.deleteElementFromSet(set, articles[key]);
|
|
31729
|
-
case
|
|
31730
|
-
_context16.next =
|
|
31843
|
+
case 16:
|
|
31844
|
+
_context16.next = 12;
|
|
31731
31845
|
break;
|
|
31732
|
-
case
|
|
31733
|
-
newSelectedElement = undefined;
|
|
31846
|
+
case 18:
|
|
31734
31847
|
oldTransform = undefined;
|
|
31735
31848
|
if (deletedArticle) deletedArticle.deleted = true;
|
|
31736
31849
|
if (!(deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.hasCatalogPlannerArticle)) {
|
|
31737
|
-
_context16.next =
|
|
31850
|
+
_context16.next = 26;
|
|
31738
31851
|
break;
|
|
31739
31852
|
}
|
|
31740
|
-
_context16.next =
|
|
31853
|
+
_context16.next = 23;
|
|
31741
31854
|
return set.plannerHandler.deletePlannerElement(setId, deletedArticle.elementId, autoCorrectAVL_AVR, deletionType);
|
|
31742
|
-
case
|
|
31855
|
+
case 23:
|
|
31743
31856
|
result = _context16.sent;
|
|
31744
31857
|
newSelectedElement = result.newElementToSelect;
|
|
31745
31858
|
oldTransform = result.transform;
|
|
31746
|
-
case
|
|
31859
|
+
case 26:
|
|
31747
31860
|
//falls ein Accessoire gelöscht wurde wird das Accessoire auch wo es beim Parent hinterlegt war auch gelöscht
|
|
31748
31861
|
if (deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.relatedToBasketId) {
|
|
31749
31862
|
(_set$getArticleByBask3 = set.getArticleByBasketId(deletedArticle.relatedToBasketId)) === null || _set$getArticleByBask3 === void 0 || _set$getArticleByBask3.removeAccessoire(deletedArticle.basketId);
|
|
@@ -31751,21 +31864,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31751
31864
|
|
|
31752
31865
|
//doorplanner resetted
|
|
31753
31866
|
deletedArticle === null || deletedArticle === void 0 || (_deletedArticle$doorP = deletedArticle.doorPlanner) === null || _deletedArticle$doorP === void 0 || _deletedArticle$doorP.deleteElement(deletedArticle.basketId);
|
|
31754
|
-
|
|
31867
|
+
success = set.deleteArticle(article.basketId);
|
|
31755
31868
|
if (!((set.CatalogData.bundleRules || set.CatalogData.reconfigAfterArticleDocked || set !== null && set !== void 0 && (_set$CatalogData = set.CatalogData) !== null && _set$CatalogData !== void 0 && _set$CatalogData.getOption('OPTLASTSTACKEDARTICLE')) && !dontReload)) {
|
|
31756
|
-
_context16.next =
|
|
31869
|
+
_context16.next = 32;
|
|
31757
31870
|
break;
|
|
31758
31871
|
}
|
|
31759
|
-
_context16.next =
|
|
31872
|
+
_context16.next = 32;
|
|
31760
31873
|
return this.updateArticlesOptionStatesOfActSet(set, {}, []);
|
|
31761
|
-
case
|
|
31874
|
+
case 32:
|
|
31875
|
+
i++;
|
|
31876
|
+
_context16.next = 7;
|
|
31877
|
+
break;
|
|
31878
|
+
case 35:
|
|
31762
31879
|
return _context16.abrupt("return", {
|
|
31763
|
-
success:
|
|
31880
|
+
success: success,
|
|
31764
31881
|
selectElementId: newSelectedElement,
|
|
31765
31882
|
setId: setId,
|
|
31766
31883
|
oldTransform: oldTransform
|
|
31767
31884
|
});
|
|
31768
|
-
case
|
|
31885
|
+
case 36:
|
|
31769
31886
|
case "end":
|
|
31770
31887
|
return _context16.stop();
|
|
31771
31888
|
}
|
|
@@ -32455,11 +32572,28 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32455
32572
|
targetArticles = targetArticles.concat(Object.keys((_articles$activeArtic = articles[activeArticles[0]]) === null || _articles$activeArtic === void 0 ? void 0 : _articles$activeArtic.accessoires));
|
|
32456
32573
|
}
|
|
32457
32574
|
var articleInfos = articleHandlerInstance.getArticleInfos(activeArticles, targetArticles, articles);
|
|
32575
|
+
//within an article and its partlistarticles cant be configured differently, so we group them here
|
|
32576
|
+
var groupedArticles = [];
|
|
32577
|
+
var _loop3 = function _loop3() {
|
|
32578
|
+
var article = articles[targetArticles[i]];
|
|
32579
|
+
var group = groupedArticles.find(function (group) {
|
|
32580
|
+
var _article$partListPare, _article$partListPare2;
|
|
32581
|
+
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 : '');
|
|
32582
|
+
});
|
|
32583
|
+
if (group) {
|
|
32584
|
+
group.push(article.basketId);
|
|
32585
|
+
} else {
|
|
32586
|
+
groupedArticles.push([article.basketId]);
|
|
32587
|
+
}
|
|
32588
|
+
};
|
|
32589
|
+
for (var i = 0; i < targetArticles.length; i++) {
|
|
32590
|
+
_loop3();
|
|
32591
|
+
}
|
|
32458
32592
|
var isConfigSingle = set.configSingle;
|
|
32459
32593
|
var doShowConfigSingle = configStepKey ? set.configTree.doShowConfigSingle(configStepKey) : false;
|
|
32460
32594
|
return {
|
|
32461
32595
|
articleInfos: articleInfos,
|
|
32462
|
-
doShowConfigSingle: doShowConfigSingle &&
|
|
32596
|
+
doShowConfigSingle: doShowConfigSingle && groupedArticles.length > 1,
|
|
32463
32597
|
isConfigSingle: isConfigSingle,
|
|
32464
32598
|
articleName: activeArticles[0] ? (_articles$activeArtic2 = articles[activeArticles[0]]) === null || _articles$activeArtic2 === void 0 || (_articles$activeArtic2 = _articles$activeArtic2.curProduct) === null || _articles$activeArtic2 === void 0 ? void 0 : _articles$activeArtic2.shortDescription : ''
|
|
32465
32599
|
};
|
|
@@ -32548,7 +32682,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32548
32682
|
value: (function () {
|
|
32549
32683
|
var _variantsEvaluator = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(set, configItems, configStepKey, paletteType) {
|
|
32550
32684
|
var _set$ViewConfig, _configItems$;
|
|
32551
|
-
var opt, calcVariantsForPricePreview, previewType, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
|
|
32685
|
+
var opt, calcVariantsForPricePreview, previewType, _set$api$ReturnToFrom, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
|
|
32552
32686
|
return _regeneratorRuntime.wrap(function _callee23$(_context25) {
|
|
32553
32687
|
while (1) switch (_context25.prev = _context25.next) {
|
|
32554
32688
|
case 0:
|
|
@@ -32562,7 +32696,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32562
32696
|
calcVariantsForPricePreview = false;
|
|
32563
32697
|
previewType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.pricePreview;
|
|
32564
32698
|
if (previewType) {
|
|
32565
|
-
calcVariantsForPricePreview = !set.dontCalcPricePreviewDueToPerformanceIssues && !opt.showOnSeparatTabgroup && (!((_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length) || set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex));
|
|
32699
|
+
calcVariantsForPricePreview = !set.dontCalcPricePreviewDueToPerformanceIssues && !((_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR')) && !opt.showOnSeparatTabgroup && (!((_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length) || set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex));
|
|
32566
32700
|
}
|
|
32567
32701
|
if (set.PlannerMode === 'BoxPlanner') calcVariantsForPricePreview = false;
|
|
32568
32702
|
if (paletteType == 'GAL' && ((_configItems$ = configItems[0]) === null || _configItems$ === void 0 ? void 0 : _configItems$.groupName) === undefined || paletteType == 'TEXTBOX' || paletteType == 'NUMBERBOX' || paletteType == 'RANGE') {
|
|
@@ -32843,7 +32977,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32843
32977
|
key: "confirmOptionsInMetric",
|
|
32844
32978
|
value: function confirmOptionsInMetric(set, options, actionEvent) {
|
|
32845
32979
|
var variantItems = set.getVariantBasketData();
|
|
32846
|
-
var
|
|
32980
|
+
var _loop4 = function _loop4() {
|
|
32847
32981
|
var opt = options[i].substring(3);
|
|
32848
32982
|
var variantItem = variantItems.find(function (item) {
|
|
32849
32983
|
return item.OPT == opt;
|
|
@@ -32862,7 +32996,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32862
32996
|
}
|
|
32863
32997
|
};
|
|
32864
32998
|
for (var i = 0; i < options.length; i++) {
|
|
32865
|
-
|
|
32999
|
+
_loop4();
|
|
32866
33000
|
}
|
|
32867
33001
|
}
|
|
32868
33002
|
}, {
|
|
@@ -32989,7 +33123,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32989
33123
|
//check first if there are options that require user input
|
|
32990
33124
|
var articles = [];
|
|
32991
33125
|
var options = [];
|
|
32992
|
-
var
|
|
33126
|
+
var _loop5 = function _loop5(key) {
|
|
32993
33127
|
var _articleHandler$check = articleHandlerInstance.checkIfAllOptionsAreDefined(sets[key].getDivaArticles()),
|
|
32994
33128
|
articleNames = _articleHandler$check.articleNames,
|
|
32995
33129
|
newOptions = _articleHandler$check.options;
|
|
@@ -33001,7 +33135,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33001
33135
|
articles = articles.concat(articleNames);
|
|
33002
33136
|
};
|
|
33003
33137
|
for (var key in sets) {
|
|
33004
|
-
|
|
33138
|
+
_loop5(key);
|
|
33005
33139
|
}
|
|
33006
33140
|
if (articles.length == 0) {
|
|
33007
33141
|
return true;
|
|
@@ -33028,7 +33162,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33028
33162
|
var accessoires = [];
|
|
33029
33163
|
var grids = [];
|
|
33030
33164
|
var articles = [];
|
|
33031
|
-
var
|
|
33165
|
+
var _loop6 = function _loop6() {
|
|
33032
33166
|
var _retVal$configStep$ta2;
|
|
33033
33167
|
var article = set.getArticleByBasketId((_retVal$configStep$ta2 = retVal === null || retVal === void 0 ? void 0 : retVal.configStep.targetArticles[i]) !== null && _retVal$configStep$ta2 !== void 0 ? _retVal$configStep$ta2 : '');
|
|
33034
33168
|
if (!article || !article.shelfPlanner) return 1; // continue
|
|
@@ -33037,18 +33171,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33037
33171
|
a = _article$shelfPlanner2.accessoires,
|
|
33038
33172
|
g = _article$shelfPlanner2.grids;
|
|
33039
33173
|
grids = [].concat(_toConsumableArray(grids), _toConsumableArray(g));
|
|
33040
|
-
var
|
|
33174
|
+
var _loop7 = function _loop7(j) {
|
|
33041
33175
|
if (!accessoires.find(function (acc) {
|
|
33042
33176
|
return acc.articleCodex === a[j].articleCodex;
|
|
33043
33177
|
})) accessoires.push(a[j]);
|
|
33044
33178
|
};
|
|
33045
33179
|
for (var j = 0; j < a.length; j++) {
|
|
33046
|
-
|
|
33180
|
+
_loop7(j);
|
|
33047
33181
|
}
|
|
33048
33182
|
};
|
|
33049
33183
|
for (var i = 0; i < ((_retVal$configStep$ta = retVal === null || retVal === void 0 ? void 0 : retVal.configStep.targetArticles) !== null && _retVal$configStep$ta !== void 0 ? _retVal$configStep$ta : []).length; i++) {
|
|
33050
33184
|
var _retVal$configStep$ta;
|
|
33051
|
-
if (
|
|
33185
|
+
if (_loop6()) continue;
|
|
33052
33186
|
}
|
|
33053
33187
|
configTreeHandler.fillConfigStepKeysInAccessoireItem(articles, set.configTree, accessoires !== null && accessoires !== void 0 ? accessoires : []);
|
|
33054
33188
|
return {
|
|
@@ -33309,7 +33443,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33309
33443
|
}, {
|
|
33310
33444
|
key: "repairOrderSets",
|
|
33311
33445
|
value: function repairOrderSets(basketData, orerSets) {
|
|
33312
|
-
var
|
|
33446
|
+
var _loop8 = function _loop8() {
|
|
33313
33447
|
var actOrderSet = orerSets[i];
|
|
33314
33448
|
var setId = actOrderSet.SetID;
|
|
33315
33449
|
var origOrderSet = basketData.OrderSets.find(function (set) {
|
|
@@ -33347,7 +33481,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33347
33481
|
}
|
|
33348
33482
|
};
|
|
33349
33483
|
for (var i = 0; i < orerSets.length; i++) {
|
|
33350
|
-
|
|
33484
|
+
_loop8();
|
|
33351
33485
|
}
|
|
33352
33486
|
}
|
|
33353
33487
|
/**************************SpeicherRoutinen*************************************/
|
|
@@ -34052,7 +34186,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34052
34186
|
key: "initProductId",
|
|
34053
34187
|
value: function () {
|
|
34054
34188
|
var _initProductId = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(api, productId) {
|
|
34055
|
-
var result;
|
|
34189
|
+
var result, successful;
|
|
34056
34190
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
34057
34191
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34058
34192
|
case 0:
|
|
@@ -34064,10 +34198,17 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34064
34198
|
_context2.next = 6;
|
|
34065
34199
|
return this.initBasket(api, result.divaNr, {
|
|
34066
34200
|
basket: result.configuration
|
|
34067
|
-
}, false);
|
|
34201
|
+
}, false, productId);
|
|
34068
34202
|
case 6:
|
|
34069
|
-
|
|
34070
|
-
|
|
34203
|
+
successful = _context2.sent;
|
|
34204
|
+
if (!successful) {
|
|
34205
|
+
_context2.next = 9;
|
|
34206
|
+
break;
|
|
34207
|
+
}
|
|
34208
|
+
return _context2.abrupt("return", result);
|
|
34209
|
+
case 9:
|
|
34210
|
+
return _context2.abrupt("return", false);
|
|
34211
|
+
case 10:
|
|
34071
34212
|
case "end":
|
|
34072
34213
|
return _context2.stop();
|
|
34073
34214
|
}
|
|
@@ -34414,7 +34555,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34414
34555
|
case 0:
|
|
34415
34556
|
_context8.prev = 0;
|
|
34416
34557
|
_context8.next = 3;
|
|
34417
|
-
return api.getDataCache(api.
|
|
34558
|
+
return api.getDataCache(api.getProductByKeyValueUrl(key, productId), undefined, undefined, 'catalog', 'POST', {
|
|
34418
34559
|
fields: fields !== null && fields !== void 0 && fields.length ? fields : undefined
|
|
34419
34560
|
});
|
|
34420
34561
|
case 3:
|
|
@@ -34635,26 +34776,39 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34635
34776
|
var _ops$ocd, _ops$valCodex;
|
|
34636
34777
|
var ops = article.articleOptionStates[key];
|
|
34637
34778
|
if (ops.option.sendToSAP && ops.val && ops.isDoShow && (!ops.isFreeText || !!ops.freeText) && !((_ops$ocd = ops.ocd) !== null && _ops$ocd !== void 0 && _ops$ocd.startsWith('OPVOPV_NICHT_RELEVANT')) && !((_ops$valCodex = ops.valCodex) !== null && _ops$valCodex !== void 0 && _ops$valCodex.startsWith('OPVOPV_NICHT_RELEVANT'))) {
|
|
34638
|
-
var _ops$
|
|
34639
|
-
|
|
34640
|
-
|
|
34641
|
-
|
|
34642
|
-
|
|
34643
|
-
|
|
34644
|
-
|
|
34779
|
+
var _ops$multiSelects;
|
|
34780
|
+
if (ops.isMultiselect && (_ops$multiSelects = ops.multiSelects) !== null && _ops$multiSelects !== void 0 && _ops$multiSelects.length) {
|
|
34781
|
+
for (var i = 0; i < ops.multiSelects.length; i++) {
|
|
34782
|
+
var _ops$optionOcd;
|
|
34783
|
+
sendToSap.push({
|
|
34784
|
+
ID: sapCount++,
|
|
34785
|
+
SAP_AUSP_ATNAM: ops.option.sendToSAP,
|
|
34786
|
+
SAP_AUSP_ATWRT: ops.multiSelects[i].name,
|
|
34787
|
+
opt: (_ops$optionOcd = ops.optionOcd) !== null && _ops$optionOcd !== void 0 ? _ops$optionOcd : ops.optionCodex
|
|
34788
|
+
});
|
|
34789
|
+
}
|
|
34790
|
+
} else {
|
|
34791
|
+
var _ops$optionOcd2;
|
|
34792
|
+
sendToSap.push({
|
|
34793
|
+
ID: sapCount++,
|
|
34794
|
+
SAP_AUSP_ATNAM: ops.option.sendToSAP,
|
|
34795
|
+
SAP_AUSP_ATWRT: ops.val.name,
|
|
34796
|
+
opt: (_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.optionCodex
|
|
34797
|
+
});
|
|
34798
|
+
}
|
|
34645
34799
|
}
|
|
34646
34800
|
}
|
|
34647
34801
|
var _loop2 = function _loop2() {
|
|
34648
|
-
var _opt$codex, _ops$
|
|
34649
|
-
var _article$parentOption = article.parentOptionCodex(options[
|
|
34802
|
+
var _opt$codex, _ops$optionOcd3, _ops$multiSelects2;
|
|
34803
|
+
var _article$parentOption = article.parentOptionCodex(options[_i2]),
|
|
34650
34804
|
codex = _article$parentOption.optionCodex,
|
|
34651
34805
|
partenOptionCodex = _article$parentOption.partenOptionCodex;
|
|
34652
34806
|
var _article$checkOptionA = article.checkOptionAndOptionValue(codex, '', partenOptionCodex),
|
|
34653
34807
|
opt = _article$checkOptionA.opt;
|
|
34654
34808
|
var ops = article.getArticleOptionState((_opt$codex = opt.codex) !== null && _opt$codex !== void 0 ? _opt$codex : codex);
|
|
34655
34809
|
if (!(ops !== null && ops !== void 0 && ops.val)) return 1; // continue
|
|
34656
|
-
var optionCodex = (ops.option.parentOptionCodex ? ops.option.parentOptionCodex + '.' : '') + ((_ops$
|
|
34657
|
-
changedValues[optionCodex] = ((_ops$
|
|
34810
|
+
var optionCodex = (ops.option.parentOptionCodex ? ops.option.parentOptionCodex + '.' : '') + ((_ops$optionOcd3 = ops.optionOcd) !== null && _ops$optionOcd3 !== void 0 ? _ops$optionOcd3 : ops.option.codex);
|
|
34811
|
+
changedValues[optionCodex] = ((_ops$multiSelects2 = ops.multiSelects) !== null && _ops$multiSelects2 !== void 0 && _ops$multiSelects2.length ? ops.multiselectSorted : [ops.val]).map(function (val) {
|
|
34658
34812
|
var _val$ocd, _ops$freeTextLang3, _ops$freeTextLang4, _ops$option$ocd, _ops$val, _ops$val2;
|
|
34659
34813
|
var attributeValue = (_val$ocd = val.ocd) !== null && _val$ocd !== void 0 ? _val$ocd : val.codex;
|
|
34660
34814
|
if (ops.isFreeText) {
|
|
@@ -34705,7 +34859,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34705
34859
|
};
|
|
34706
34860
|
});
|
|
34707
34861
|
};
|
|
34708
|
-
for (var
|
|
34862
|
+
for (var _i2 = 0; _i2 < options.length; _i2++) {
|
|
34709
34863
|
if (_loop2()) continue;
|
|
34710
34864
|
}
|
|
34711
34865
|
var variantValues = article.VariantValuesParentOption;
|
|
@@ -34734,7 +34888,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34734
34888
|
break;
|
|
34735
34889
|
case 3:
|
|
34736
34890
|
_context12.next = 5;
|
|
34737
|
-
return import('./PfisterWWSHandler-
|
|
34891
|
+
return import('./PfisterWWSHandler-7bb3d5e6.js');
|
|
34738
34892
|
case 5:
|
|
34739
34893
|
_yield$import = _context12.sent;
|
|
34740
34894
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -34742,7 +34896,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34742
34896
|
return _context12.abrupt("break", 27);
|
|
34743
34897
|
case 9:
|
|
34744
34898
|
_context12.next = 11;
|
|
34745
|
-
return import('./LiviqueWWSHandler-
|
|
34899
|
+
return import('./LiviqueWWSHandler-fc475051.js');
|
|
34746
34900
|
case 11:
|
|
34747
34901
|
_yield$import2 = _context12.sent;
|
|
34748
34902
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -34750,7 +34904,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34750
34904
|
return _context12.abrupt("break", 27);
|
|
34751
34905
|
case 15:
|
|
34752
34906
|
_context12.next = 17;
|
|
34753
|
-
return import('./SeriousBasketHandler-
|
|
34907
|
+
return import('./SeriousBasketHandler-a2a6aae7.js');
|
|
34754
34908
|
case 17:
|
|
34755
34909
|
_yield$import3 = _context12.sent;
|
|
34756
34910
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -34758,7 +34912,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34758
34912
|
return _context12.abrupt("break", 27);
|
|
34759
34913
|
case 21:
|
|
34760
34914
|
_context12.next = 23;
|
|
34761
|
-
return import('./StandardWWSHandler-
|
|
34915
|
+
return import('./StandardWWSHandler-68a6351e.js');
|
|
34762
34916
|
case 23:
|
|
34763
34917
|
_yield$import4 = _context12.sent;
|
|
34764
34918
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -36148,7 +36302,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36148
36302
|
while (1) switch (_context3.prev = _context3.next) {
|
|
36149
36303
|
case 0:
|
|
36150
36304
|
_context3.next = 2;
|
|
36151
|
-
return import('./Host3DSignalR-
|
|
36305
|
+
return import('./Host3DSignalR-91bc0e45.js');
|
|
36152
36306
|
case 2:
|
|
36153
36307
|
_yield$import = _context3.sent;
|
|
36154
36308
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -37043,14 +37197,12 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
|
|
|
37043
37197
|
_classCallCheck(this, DivaMediaServiceHandler);
|
|
37044
37198
|
_defineProperty(this, "organizationId", void 0);
|
|
37045
37199
|
_defineProperty(this, "mediaServiceUrl", void 0);
|
|
37046
|
-
_defineProperty(this, "mediaServiceApiKey", void 0);
|
|
37047
37200
|
_defineProperty(this, "jwt", void 0);
|
|
37048
37201
|
_defineProperty(this, "POST_saveTmp2PermanentPostfix", '/saveTmp2Permanent');
|
|
37049
37202
|
_defineProperty(this, "GET_MediaItemrefs", '/v1/mediaitems/refs?limit=20&skip=0&filter=');
|
|
37050
37203
|
_defineProperty(this, "POST_mediaItem", '/v1/mediaitems?ref=true');
|
|
37051
37204
|
this.organizationId = '';
|
|
37052
37205
|
this.mediaServiceUrl = '';
|
|
37053
|
-
this.mediaServiceApiKey = '';
|
|
37054
37206
|
}
|
|
37055
37207
|
return _createClass(DivaMediaServiceHandler, [{
|
|
37056
37208
|
key: "setOrganizationId",
|
|
@@ -37062,11 +37214,6 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
|
|
|
37062
37214
|
value: function setMediaServiceUrl(mediaServiceUrl) {
|
|
37063
37215
|
this.mediaServiceUrl = mediaServiceUrl;
|
|
37064
37216
|
}
|
|
37065
|
-
}, {
|
|
37066
|
-
key: "setMediaServiceApiKey",
|
|
37067
|
-
value: function setMediaServiceApiKey(mediaServiceApiKey) {
|
|
37068
|
-
this.mediaServiceApiKey = mediaServiceApiKey;
|
|
37069
|
-
}
|
|
37070
37217
|
}, {
|
|
37071
37218
|
key: "setJwt",
|
|
37072
37219
|
value: function setJwt(jwt) {
|
|
@@ -37123,7 +37270,7 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
|
|
|
37123
37270
|
method: 'POST',
|
|
37124
37271
|
body: data,
|
|
37125
37272
|
headers: {
|
|
37126
|
-
'
|
|
37273
|
+
Authorization: 'Bearer ' + this.jwt
|
|
37127
37274
|
}
|
|
37128
37275
|
});
|
|
37129
37276
|
case 11:
|
|
@@ -37494,7 +37641,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37494
37641
|
key: "initPlanner",
|
|
37495
37642
|
value: (function () {
|
|
37496
37643
|
var _initPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(initSetState, plannerHandlerFunctions) {
|
|
37497
|
-
var renderGroup, diva3dServerUrl, divaMediaServiceUrl,
|
|
37644
|
+
var renderGroup, diva3dServerUrl, divaMediaServiceUrl, _initSetState$api$web, result;
|
|
37498
37645
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
37499
37646
|
while (1) switch (_context.prev = _context.next) {
|
|
37500
37647
|
case 0:
|
|
@@ -37502,8 +37649,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37502
37649
|
renderGroup = initSetState.api.get3DRenderGroup();
|
|
37503
37650
|
this.plannerHandlerFunctions = plannerHandlerFunctions;
|
|
37504
37651
|
diva3dServerUrl = initSetState.api.get3DServerUrl();
|
|
37505
|
-
divaMediaServiceUrl = initSetState.api.getDivaMediaServiceUrl();
|
|
37506
|
-
mediaServiceApiKey = initSetState.api.getDivaMediaServiceApiKey(); //renderGroup = 'LeaTest';
|
|
37652
|
+
divaMediaServiceUrl = initSetState.api.getDivaMediaServiceUrl(); // renderGroup = 'LeaTest';
|
|
37507
37653
|
//diva3dServerUrl = "https://test-einkauf-onboarding.pfister.ch/diva3d/diva3dhost2/";
|
|
37508
37654
|
// diva3dServerUrl = "https://diva3dhost.diva-portal.com/diva3d/diva3dhost2/";
|
|
37509
37655
|
//diva3dServerUrl = 'https://localhost:44315/';
|
|
@@ -37513,7 +37659,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37513
37659
|
//divaMediaServiceUrl = 'https://api-test.diva-portal.com/media/';
|
|
37514
37660
|
//divaMediaServiceUrl = 'http://localhost:3000';
|
|
37515
37661
|
if (!(!initSetState.onlyRunLogic && !initSetState.no3DConnection)) {
|
|
37516
|
-
_context.next =
|
|
37662
|
+
_context.next = 13;
|
|
37517
37663
|
break;
|
|
37518
37664
|
}
|
|
37519
37665
|
this.handler3D.initializeCallbackFunctions({
|
|
@@ -37532,24 +37678,23 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37532
37678
|
arViewerUrl: (_initSetState$api$web = initSetState.api.webConfig) === null || _initSetState$api$web === void 0 ? void 0 : _initSetState$api$web.arViewerUrl
|
|
37533
37679
|
});
|
|
37534
37680
|
if (!(!this.handler3D.checkConnectionInitialized() || result.renderGroupChanged || result.diva3dServerUrlChanged)) {
|
|
37535
|
-
_context.next =
|
|
37681
|
+
_context.next = 12;
|
|
37536
37682
|
break;
|
|
37537
37683
|
}
|
|
37538
|
-
_context.next =
|
|
37684
|
+
_context.next = 12;
|
|
37539
37685
|
return this.handler3D.initializeConnection();
|
|
37540
|
-
case
|
|
37686
|
+
case 12:
|
|
37541
37687
|
if (this.divaNr != initSetState.divaNr) {
|
|
37542
37688
|
this.divaNr = initSetState.divaNr;
|
|
37543
37689
|
this.handler3D.joinDivaNr(this.divaNr);
|
|
37544
37690
|
}
|
|
37545
|
-
case
|
|
37691
|
+
case 13:
|
|
37546
37692
|
mediaServiceHandler.setMediaServiceUrl(divaMediaServiceUrl);
|
|
37547
|
-
mediaServiceHandler.setMediaServiceApiKey(mediaServiceApiKey);
|
|
37548
37693
|
mediaServiceHandler.setOrganizationId(initSetState.organizationId);
|
|
37549
37694
|
mediaServiceHandler.setJwt(initSetState.api.getJwt());
|
|
37550
37695
|
this.handler3D.setOrigConfigurationCallback(this.plannerHandlerFunctions.getOrigConfiguration);
|
|
37551
37696
|
DivaUtils.endSpanOfApm('DivaPlannerHandler initPlanner');
|
|
37552
|
-
case
|
|
37697
|
+
case 18:
|
|
37553
37698
|
case "end":
|
|
37554
37699
|
return _context.stop();
|
|
37555
37700
|
}
|
|
@@ -37700,7 +37845,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37700
37845
|
break;
|
|
37701
37846
|
case 8:
|
|
37702
37847
|
_context4.next = 10;
|
|
37703
|
-
return import('./DivaStandardPlanner-
|
|
37848
|
+
return import('./DivaStandardPlanner-01ffe668.js');
|
|
37704
37849
|
case 10:
|
|
37705
37850
|
_yield$import = _context4.sent;
|
|
37706
37851
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -37711,7 +37856,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37711
37856
|
return _context4.abrupt("break", 21);
|
|
37712
37857
|
case 15:
|
|
37713
37858
|
_context4.next = 17;
|
|
37714
|
-
return import('./DivaBoxPlanner-
|
|
37859
|
+
return import('./DivaBoxPlanner-6d8b1276.js');
|
|
37715
37860
|
case 17:
|
|
37716
37861
|
_yield$import2 = _context4.sent;
|
|
37717
37862
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -38327,6 +38472,20 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38327
38472
|
return this.plannerList.get(setId).getPlannerElementsInfluencedByCopy(elementId, copyInfo);
|
|
38328
38473
|
}
|
|
38329
38474
|
|
|
38475
|
+
/**
|
|
38476
|
+
* This function gets all Elements that are deleted when deleting one element.
|
|
38477
|
+
* @param setId
|
|
38478
|
+
* @param elementId
|
|
38479
|
+
*/
|
|
38480
|
+
}, {
|
|
38481
|
+
key: "getPlannerElementsInfluencedByDeletion",
|
|
38482
|
+
value: function getPlannerElementsInfluencedByDeletion(setId, elementId) {
|
|
38483
|
+
if (!this.plannerList.has(setId)) {
|
|
38484
|
+
return [];
|
|
38485
|
+
}
|
|
38486
|
+
return this.plannerList.get(setId).getPlannerElementsInfluencedByDeletion(elementId);
|
|
38487
|
+
}
|
|
38488
|
+
|
|
38330
38489
|
/**
|
|
38331
38490
|
* This function is used to copy an element in the planner
|
|
38332
38491
|
* @param setId
|
|
@@ -40388,76 +40547,90 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40388
40547
|
key: "saveToBasketWrapper",
|
|
40389
40548
|
value: function () {
|
|
40390
40549
|
var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(event, repairOnly, force) {
|
|
40391
|
-
var _this$
|
|
40392
|
-
_this$actions25$toggl,
|
|
40393
|
-
_this$actions26,
|
|
40550
|
+
var _this$actions26,
|
|
40394
40551
|
_this$actions26$toggl,
|
|
40552
|
+
_this$actions27,
|
|
40553
|
+
_this$actions27$toggl,
|
|
40395
40554
|
_this2 = this,
|
|
40396
|
-
_this$
|
|
40555
|
+
_this$actions31,
|
|
40397
40556
|
_this$i18n14;
|
|
40398
|
-
var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, result, _this$
|
|
40557
|
+
var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions25, result, _this$actions28, _this$i18n8, _this$i18n9, _this$actions29, _this$i18n10, _this$i18n11, _this$actions30, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
|
|
40399
40558
|
return _regeneratorRuntime.wrap(function _callee25$(_context25) {
|
|
40400
40559
|
while (1) switch (_context25.prev = _context25.next) {
|
|
40401
40560
|
case 0:
|
|
40402
40561
|
returnTo = this.getReturnTo(event);
|
|
40403
|
-
finalEvent =
|
|
40562
|
+
finalEvent = {
|
|
40563
|
+
event: event,
|
|
40564
|
+
saveBasket: true
|
|
40565
|
+
};
|
|
40404
40566
|
if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
|
|
40405
|
-
_context25.next =
|
|
40567
|
+
_context25.next = 21;
|
|
40406
40568
|
break;
|
|
40407
40569
|
}
|
|
40408
40570
|
product = undefined;
|
|
40409
40571
|
if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
|
|
40410
|
-
_context25.next =
|
|
40572
|
+
_context25.next = 10;
|
|
40411
40573
|
break;
|
|
40412
40574
|
}
|
|
40413
|
-
|
|
40414
|
-
|
|
40415
|
-
|
|
40416
|
-
_context25.sent;
|
|
40575
|
+
url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
|
|
40576
|
+
_context25.next = 8;
|
|
40577
|
+
return this.api.getDataCache(url, url, undefined, 'catalog');
|
|
40417
40578
|
case 8:
|
|
40418
|
-
|
|
40419
|
-
|
|
40579
|
+
_result = _context25.sent;
|
|
40580
|
+
product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
|
|
40420
40581
|
case 10:
|
|
40582
|
+
_context25.next = 12;
|
|
40583
|
+
return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
|
|
40584
|
+
case 12:
|
|
40421
40585
|
finalEvent = _context25.sent;
|
|
40422
40586
|
if (finalEvent) {
|
|
40423
|
-
_context25.next =
|
|
40587
|
+
_context25.next = 17;
|
|
40424
40588
|
break;
|
|
40425
40589
|
}
|
|
40426
40590
|
return _context25.abrupt("return", 'canceled');
|
|
40427
|
-
case 13:
|
|
40428
|
-
returnTo = finalEvent == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
|
|
40429
|
-
case 14:
|
|
40430
|
-
(_this$actions25 = this.actions) === null || _this$actions25 === void 0 || (_this$actions25$toggl = _this$actions25.toggleLoading) === null || _this$actions25$toggl === void 0 || _this$actions25$toggl.call(_this$actions25, 'Planner_Saving', false, true);
|
|
40431
|
-
_context25.next = 17;
|
|
40432
|
-
return this.saveToBasket(finalEvent, repairOnly, force);
|
|
40433
40591
|
case 17:
|
|
40592
|
+
if (!(!finalEvent.saveBasket && finalEvent.event)) {
|
|
40593
|
+
_context25.next = 20;
|
|
40594
|
+
break;
|
|
40595
|
+
}
|
|
40596
|
+
(_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
|
|
40597
|
+
type: finalEvent.event
|
|
40598
|
+
});
|
|
40599
|
+
return _context25.abrupt("return", 'canceled');
|
|
40600
|
+
case 20:
|
|
40601
|
+
returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
|
|
40602
|
+
case 21:
|
|
40603
|
+
(_this$actions26 = this.actions) === null || _this$actions26 === void 0 || (_this$actions26$toggl = _this$actions26.toggleLoading) === null || _this$actions26$toggl === void 0 || _this$actions26$toggl.call(_this$actions26, 'Planner_Saving', false, true);
|
|
40604
|
+
_context25.next = 24;
|
|
40605
|
+
return this.saveToBasket(finalEvent.event, repairOnly, force);
|
|
40606
|
+
case 24:
|
|
40434
40607
|
result = _context25.sent;
|
|
40435
|
-
(_this$
|
|
40608
|
+
(_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, false);
|
|
40436
40609
|
if (!(result === 'canceled')) {
|
|
40437
|
-
_context25.next =
|
|
40610
|
+
_context25.next = 30;
|
|
40438
40611
|
break;
|
|
40439
40612
|
}
|
|
40440
40613
|
LOG$1.error(new DivaError('failed to save Basket'));
|
|
40441
|
-
(_this$
|
|
40614
|
+
(_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
|
|
40442
40615
|
text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
|
|
40443
40616
|
accept: true
|
|
40444
40617
|
});
|
|
40445
40618
|
return _context25.abrupt("return", result);
|
|
40446
|
-
case
|
|
40619
|
+
case 30:
|
|
40447
40620
|
_context25.t0 = returnTo;
|
|
40448
|
-
_context25.next = _context25.t0 === 'OPEN_PDF' ?
|
|
40621
|
+
_context25.next = _context25.t0 === 'OPEN_PDF' ? 33 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : 36;
|
|
40449
40622
|
break;
|
|
40450
|
-
case
|
|
40623
|
+
case 33:
|
|
40451
40624
|
if (!this.getBasket().PDFDocumentURL) {
|
|
40452
40625
|
LOG$1.error(new DivaError('PDF url is missing in basket', {
|
|
40453
40626
|
code: 'WC_0010'
|
|
40454
40627
|
}));
|
|
40455
|
-
(_this$
|
|
40628
|
+
(_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
|
|
40456
40629
|
text: ((_this$i18n10 = this.i18n()) === null || _this$i18n10 === void 0 ? void 0 : _this$i18n10.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n11 = this.i18n()) === null || _this$i18n11 === void 0 ? void 0 : _this$i18n11.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
|
|
40457
40630
|
accept: true
|
|
40458
40631
|
});
|
|
40459
40632
|
} else {
|
|
40460
|
-
(_this$
|
|
40633
|
+
(_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
|
|
40461
40634
|
text: (_this$i18n12 = this.i18n()) === null || _this$i18n12 === void 0 ? void 0 : _this$i18n12.t(this.divaBasketHandler.actBasket.Status === 'ORDER' ? 'modal.open_order_pdf_now' : 'modal.open_leaflet_pdf_now'),
|
|
40462
40635
|
accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
|
|
40463
40636
|
callback: function callback() {
|
|
@@ -40465,22 +40638,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40465
40638
|
}
|
|
40466
40639
|
});
|
|
40467
40640
|
}
|
|
40468
|
-
return _context25.abrupt("break",
|
|
40469
|
-
case
|
|
40470
|
-
(_this$
|
|
40641
|
+
return _context25.abrupt("break", 36);
|
|
40642
|
+
case 35:
|
|
40643
|
+
(_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
|
|
40471
40644
|
text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
|
|
40472
40645
|
accept: true
|
|
40473
40646
|
});
|
|
40474
|
-
case
|
|
40647
|
+
case 36:
|
|
40475
40648
|
if (!(result == 'noArticleToSave')) {
|
|
40476
|
-
_context25.next =
|
|
40649
|
+
_context25.next = 39;
|
|
40477
40650
|
break;
|
|
40478
40651
|
}
|
|
40479
40652
|
(_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
|
|
40480
40653
|
return _context25.abrupt("return", 'canceled');
|
|
40481
|
-
case
|
|
40654
|
+
case 39:
|
|
40482
40655
|
return _context25.abrupt("return", result);
|
|
40483
|
-
case
|
|
40656
|
+
case 40:
|
|
40484
40657
|
case "end":
|
|
40485
40658
|
return _context25.stop();
|
|
40486
40659
|
}
|
|
@@ -40495,7 +40668,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40495
40668
|
key: "saveToBasket",
|
|
40496
40669
|
value: function () {
|
|
40497
40670
|
var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
|
|
40498
|
-
var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$
|
|
40671
|
+
var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34;
|
|
40499
40672
|
var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, _event4, product;
|
|
40500
40673
|
return _regeneratorRuntime.wrap(function _callee26$(_context26) {
|
|
40501
40674
|
while (1) switch (_context26.prev = _context26.next) {
|
|
@@ -40567,8 +40740,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40567
40740
|
_context26.next = _context26.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 30 : _context26.t3 === 'OPEN_SELLER_BASKET' ? 33 : _context26.t3 === 'OPEN_PDF' ? 35 : _context26.t3 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context26.t3 === 'SAVE_BASKET' ? 35 : _context26.t3 === 'SAVE_BASKET_SYNC' ? 35 : _context26.t3 === 'OPEN_LEAFLET_BARRIER' ? 35 : 55;
|
|
40568
40741
|
break;
|
|
40569
40742
|
case 30:
|
|
40570
|
-
(_this$
|
|
40571
|
-
(_this$
|
|
40743
|
+
(_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.toggleLoading('buildScene', false, false);
|
|
40744
|
+
(_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
|
|
40572
40745
|
type: 'SELLER',
|
|
40573
40746
|
parameters: {
|
|
40574
40747
|
module: 'PCreator',
|
|
@@ -40580,7 +40753,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40580
40753
|
});
|
|
40581
40754
|
return _context26.abrupt("break", 55);
|
|
40582
40755
|
case 33:
|
|
40583
|
-
(_this$
|
|
40756
|
+
(_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
|
|
40584
40757
|
type: 'SELLER',
|
|
40585
40758
|
parameters: {
|
|
40586
40759
|
module: 'Basket',
|
|
@@ -40634,12 +40807,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40634
40807
|
return _context26.abrupt("break", 55);
|
|
40635
40808
|
case 55:
|
|
40636
40809
|
if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
|
|
40637
|
-
|
|
40810
|
+
actBasket = this.divaBasketHandler.getBasketData(actBasket.DivaNr); //get pdf documenturl from saved basket
|
|
40811
|
+
_context26.next = 59;
|
|
40638
40812
|
return this.addToBasket(actBasket, event);
|
|
40639
|
-
case
|
|
40813
|
+
case 59:
|
|
40640
40814
|
product = _context26.sent;
|
|
40641
40815
|
return _context26.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
|
|
40642
|
-
case
|
|
40816
|
+
case 61:
|
|
40643
40817
|
case "end":
|
|
40644
40818
|
return _context26.stop();
|
|
40645
40819
|
}
|
|
@@ -40694,8 +40868,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40694
40868
|
|
|
40695
40869
|
//if planner is hidden by config but nothing is planned initially
|
|
40696
40870
|
if (plannerType === 'NONE') {
|
|
40697
|
-
var _this$plannerConfig$a7, _this$
|
|
40698
|
-
if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$
|
|
40871
|
+
var _this$plannerConfig$a7, _this$actSet10;
|
|
40872
|
+
if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet10 = this.actSet()) !== null && _this$actSet10 !== void 0 && (_this$actSet10 = _this$actSet10.CatalogData.startPlannerArticle) !== null && _this$actSet10 !== void 0 && _this$actSet10.length)) {
|
|
40699
40873
|
plannerType = 'PLANNER';
|
|
40700
40874
|
}
|
|
40701
40875
|
}
|
|
@@ -40735,38 +40909,38 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40735
40909
|
}, {
|
|
40736
40910
|
key: "getCurCatalogCodex",
|
|
40737
40911
|
value: function getCurCatalogCodex() {
|
|
40738
|
-
var _this$
|
|
40739
|
-
return (_this$
|
|
40912
|
+
var _this$actSet11;
|
|
40913
|
+
return (_this$actSet11 = this.actSet()) === null || _this$actSet11 === void 0 ? void 0 : _this$actSet11.getCatalogCodex();
|
|
40740
40914
|
}
|
|
40741
40915
|
}, {
|
|
40742
40916
|
key: "getCurCatalogName",
|
|
40743
40917
|
value: function getCurCatalogName() {
|
|
40744
|
-
var _this$
|
|
40745
|
-
return (_this$
|
|
40918
|
+
var _this$actSet12;
|
|
40919
|
+
return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getCatalogName();
|
|
40746
40920
|
}
|
|
40747
40921
|
}, {
|
|
40748
40922
|
key: "getCurAccountName",
|
|
40749
40923
|
value: function getCurAccountName() {
|
|
40750
|
-
var _this$
|
|
40751
|
-
return (_this$
|
|
40924
|
+
var _this$actSet13;
|
|
40925
|
+
return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getAccountName();
|
|
40752
40926
|
}
|
|
40753
40927
|
}, {
|
|
40754
40928
|
key: "getCurSupplierGuid",
|
|
40755
40929
|
value: function getCurSupplierGuid() {
|
|
40756
|
-
var _this$
|
|
40757
|
-
return (_this$
|
|
40930
|
+
var _this$actSet14;
|
|
40931
|
+
return (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getSupplierGuid();
|
|
40758
40932
|
}
|
|
40759
40933
|
}, {
|
|
40760
40934
|
key: "getCurSetPrice",
|
|
40761
40935
|
value: function getCurSetPrice() {
|
|
40762
|
-
var _this$actSet$getSetPr, _this$
|
|
40763
|
-
return (_this$actSet$getSetPr = (_this$
|
|
40936
|
+
var _this$actSet$getSetPr, _this$actSet15;
|
|
40937
|
+
return (_this$actSet$getSetPr = (_this$actSet15 = this.actSet()) === null || _this$actSet15 === void 0 ? void 0 : _this$actSet15.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
|
|
40764
40938
|
}
|
|
40765
40939
|
}, {
|
|
40766
40940
|
key: "getCurImageMode",
|
|
40767
40941
|
value: function getCurImageMode() {
|
|
40768
|
-
var _this$
|
|
40769
|
-
return (_this$
|
|
40942
|
+
var _this$actSet16;
|
|
40943
|
+
return (_this$actSet16 = this.actSet()) !== null && _this$actSet16 !== void 0 && (_this$actSet16 = _this$actSet16.CatalogData) !== null && _this$actSet16 !== void 0 && _this$actSet16.has3dModels ? '3D' : '2D';
|
|
40770
40944
|
}
|
|
40771
40945
|
}, {
|
|
40772
40946
|
key: "getViewConfig",
|
|
@@ -40797,65 +40971,65 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40797
40971
|
}, {
|
|
40798
40972
|
key: "doShow3DDimensionLines",
|
|
40799
40973
|
value: function doShow3DDimensionLines() {
|
|
40800
|
-
var _this$
|
|
40801
|
-
return (_this$
|
|
40974
|
+
var _this$actSet17;
|
|
40975
|
+
return (_this$actSet17 = this.actSet()) === null || _this$actSet17 === void 0 || (_this$actSet17 = _this$actSet17.CatalogData) === null || _this$actSet17 === void 0 ? void 0 : _this$actSet17.doShow3DDimensionLines;
|
|
40802
40976
|
}
|
|
40803
40977
|
}, {
|
|
40804
40978
|
key: "hidePlannerUiIcons",
|
|
40805
40979
|
value: function hidePlannerUiIcons() {
|
|
40806
|
-
var _this$
|
|
40807
|
-
return (_this$
|
|
40980
|
+
var _this$actSet18;
|
|
40981
|
+
return (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 || (_this$actSet18 = _this$actSet18.CatalogData) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.hidePlannerUiIcons;
|
|
40808
40982
|
}
|
|
40809
40983
|
}, {
|
|
40810
40984
|
key: "doShowPlannerReplaceMode",
|
|
40811
40985
|
value: function doShowPlannerReplaceMode() {
|
|
40812
|
-
var _this$
|
|
40813
|
-
var catalogData = (_this$
|
|
40986
|
+
var _this$actSet19, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
|
|
40987
|
+
var catalogData = (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.CatalogData;
|
|
40814
40988
|
return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.replaceModeActive) && ((_this$api$getViewConf2 = this.api.getViewConfig()) === null || _this$api$getViewConf2 === void 0 ? void 0 : _this$api$getViewConf2.showReplaceFunctionInPlanner) && Object.entries(catalogData.allCatalogPlannerArticles).length > 1 && Object.entries((_catalogData$PlannerP = (_catalogData$PlannerP2 = catalogData.PlannerPaletteViewInfo) === null || _catalogData$PlannerP2 === void 0 ? void 0 : _catalogData$PlannerP2.catalogPlannerArticles) !== null && _catalogData$PlannerP !== void 0 ? _catalogData$PlannerP : {}).length > 1;
|
|
40815
40989
|
}
|
|
40816
40990
|
}, {
|
|
40817
40991
|
key: "doPlannerReplaceAutoSwitch",
|
|
40818
40992
|
value: function doPlannerReplaceAutoSwitch() {
|
|
40819
|
-
var _this$
|
|
40820
|
-
var catalogData = (_this$
|
|
40993
|
+
var _this$actSet20, _this$api$getViewConf3;
|
|
40994
|
+
var catalogData = (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.CatalogData;
|
|
40821
40995
|
return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.catalogPlannsCompletely) && this.doShowPlannerReplaceMode() && ((_this$api$getViewConf3 = this.api.getViewConfig()) === null || _this$api$getViewConf3 === void 0 ? void 0 : _this$api$getViewConf3.allowAutoSwitchInReplaceFunctionInPlanner);
|
|
40822
40996
|
}
|
|
40823
40997
|
}, {
|
|
40824
40998
|
key: "getHidePlanner",
|
|
40825
40999
|
value: function getHidePlanner() {
|
|
40826
|
-
var _this$
|
|
40827
|
-
return this.api.getHidePlanner() || !!((_this$
|
|
41000
|
+
var _this$actSet21;
|
|
41001
|
+
return this.api.getHidePlanner() || !!((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.useBoxPlanner);
|
|
40828
41002
|
}
|
|
40829
41003
|
}, {
|
|
40830
41004
|
key: "getAllowRTV",
|
|
40831
41005
|
value: function getAllowRTV() {
|
|
40832
|
-
var _this$
|
|
41006
|
+
var _this$actSet22, _this$actSet23;
|
|
40833
41007
|
if (this.getEnableUnityRtvKombi()) return false;
|
|
40834
41008
|
if (this.api.forceShowRTV()) return true;
|
|
40835
|
-
if ((_this$
|
|
40836
|
-
if (this.api.getDoShowRTV() && (_this$
|
|
41009
|
+
if ((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaForceRTV) return true;
|
|
41010
|
+
if (this.api.getDoShowRTV() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
|
|
40837
41011
|
return false;
|
|
40838
41012
|
}
|
|
40839
41013
|
}, {
|
|
40840
41014
|
key: "geAllowQRCodeAR",
|
|
40841
41015
|
value: function geAllowQRCodeAR() {
|
|
40842
|
-
var _this$
|
|
40843
|
-
if (this.api.getDoShowAR() && (_this$
|
|
41016
|
+
var _this$actSet24;
|
|
41017
|
+
if (this.api.getDoShowAR() && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
|
|
40844
41018
|
return false;
|
|
40845
41019
|
}
|
|
40846
41020
|
}, {
|
|
40847
41021
|
key: "getEnableUnityRtvKombi",
|
|
40848
41022
|
value: function getEnableUnityRtvKombi() {
|
|
40849
|
-
var _this$
|
|
41023
|
+
var _this$actSet25, _this$actSet26;
|
|
40850
41024
|
// if force rtv disable unity kombi - biohort
|
|
40851
|
-
if ((_this$
|
|
40852
|
-
return ((_this$
|
|
41025
|
+
if ((_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaForceRTV) return false;
|
|
41026
|
+
return ((_this$actSet26 = this.actSet()) === null || _this$actSet26 === void 0 ? void 0 : _this$actSet26.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
|
|
40853
41027
|
}
|
|
40854
41028
|
}, {
|
|
40855
41029
|
key: "getShelfPlannerRTV",
|
|
40856
41030
|
value: function getShelfPlannerRTV() {
|
|
40857
|
-
var _this$
|
|
40858
|
-
return (_this$
|
|
41031
|
+
var _this$actSet27;
|
|
41032
|
+
return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData.useShelfPlannerRTV;
|
|
40859
41033
|
}
|
|
40860
41034
|
}, {
|
|
40861
41035
|
key: "getBasketData",
|
|
@@ -40896,8 +41070,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40896
41070
|
}, {
|
|
40897
41071
|
key: "getCatalogData",
|
|
40898
41072
|
value: function getCatalogData() {
|
|
40899
|
-
var _this$
|
|
40900
|
-
return (_this$
|
|
41073
|
+
var _this$actSet28;
|
|
41074
|
+
return (_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData;
|
|
40901
41075
|
}
|
|
40902
41076
|
}, {
|
|
40903
41077
|
key: "ReturnTo",
|
|
@@ -40913,16 +41087,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40913
41087
|
key: "addToBasket",
|
|
40914
41088
|
value: function () {
|
|
40915
41089
|
var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(actBasket) {
|
|
40916
|
-
var _this$
|
|
40917
|
-
_this$actions35,
|
|
41090
|
+
var _this$actions35,
|
|
40918
41091
|
_this$actions36,
|
|
40919
41092
|
_this$actions37,
|
|
40920
41093
|
_this$actions38,
|
|
41094
|
+
_this$actions39,
|
|
40921
41095
|
_this$divaBasketHandl3,
|
|
40922
41096
|
_this3 = this,
|
|
40923
|
-
_this$actions39,
|
|
40924
41097
|
_this$actions40,
|
|
40925
|
-
_this$actions41
|
|
41098
|
+
_this$actions41,
|
|
41099
|
+
_this$actions42,
|
|
41100
|
+
_this$actions43;
|
|
40926
41101
|
var event,
|
|
40927
41102
|
addToBasketLog,
|
|
40928
41103
|
emailConfig,
|
|
@@ -40938,43 +41113,43 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40938
41113
|
event = _args28.length > 1 && _args28[1] !== undefined ? _args28[1] : 'onAddToBasket';
|
|
40939
41114
|
addToBasketLog = true;
|
|
40940
41115
|
_context28.t0 = event;
|
|
40941
|
-
_context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 8 : _context28.t0 === 'onWebPlanerShare' ? 11 : _context28.t0 === 'onRequestConsulation' ? 14 : _context28.t0 === 'onSave' ? 17 : _context28.t0 === 'onSendEmail' ? 20 : _context28.t0 === 'onSaveProduct' ? 25 : _context28.t0 === 'dontSaveBasket' ? 33 : _context28.t0 === 'onAddToBasket' ? 35 :
|
|
41116
|
+
_context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 8 : _context28.t0 === 'onWebPlanerShare' ? 11 : _context28.t0 === 'onRequestConsulation' ? 14 : _context28.t0 === 'onSave' ? 17 : _context28.t0 === 'onSendEmail' ? 20 : _context28.t0 === 'onSaveProduct' ? 25 : _context28.t0 === 'dontSaveBasket' ? 33 : _context28.t0 === 'onAddToBasket' ? 35 : 38;
|
|
40942
41117
|
break;
|
|
40943
41118
|
case 5:
|
|
40944
41119
|
this.handleSuccessTransaction('onPrintBasket', actBasket);
|
|
40945
|
-
(_this$
|
|
41120
|
+
(_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
|
|
40946
41121
|
type: 'onWebPlanerPrint',
|
|
40947
41122
|
data: actBasket.getAsJson()
|
|
40948
41123
|
});
|
|
40949
|
-
return _context28.abrupt("break",
|
|
41124
|
+
return _context28.abrupt("break", 40);
|
|
40950
41125
|
case 8:
|
|
40951
41126
|
this.handleSuccessTransaction('onSaveBasket', actBasket);
|
|
40952
|
-
(_this$
|
|
41127
|
+
(_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
|
|
40953
41128
|
type: 'onWebPlanerSave',
|
|
40954
41129
|
data: actBasket.getAsJson()
|
|
40955
41130
|
});
|
|
40956
|
-
return _context28.abrupt("break",
|
|
41131
|
+
return _context28.abrupt("break", 40);
|
|
40957
41132
|
case 11:
|
|
40958
41133
|
this.handleSuccessTransaction('onShareBasket', actBasket);
|
|
40959
|
-
(_this$
|
|
41134
|
+
(_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
|
|
40960
41135
|
type: 'onWebPlanerShare',
|
|
40961
41136
|
data: actBasket.getAsJson()
|
|
40962
41137
|
});
|
|
40963
|
-
return _context28.abrupt("break",
|
|
41138
|
+
return _context28.abrupt("break", 40);
|
|
40964
41139
|
case 14:
|
|
40965
41140
|
this.handleSuccessTransaction('onRequestConsulation', actBasket);
|
|
40966
|
-
(_this$
|
|
41141
|
+
(_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
|
|
40967
41142
|
type: 'onRequestConsulation',
|
|
40968
41143
|
data: actBasket.getAsJson()
|
|
40969
41144
|
});
|
|
40970
|
-
return _context28.abrupt("break",
|
|
41145
|
+
return _context28.abrupt("break", 40);
|
|
40971
41146
|
case 17:
|
|
40972
41147
|
this.handleSuccessTransaction('onSave', actBasket);
|
|
40973
|
-
(_this$
|
|
41148
|
+
(_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
|
|
40974
41149
|
type: 'onSave',
|
|
40975
41150
|
data: actBasket.getAsJson()
|
|
40976
41151
|
});
|
|
40977
|
-
return _context28.abrupt("break",
|
|
41152
|
+
return _context28.abrupt("break", 40);
|
|
40978
41153
|
case 20:
|
|
40979
41154
|
emailConfig = (_this$divaBasketHandl3 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl3 !== void 0 ? _this$divaBasketHandl3 : this.getEmailConfig(); //reset the emailConfig
|
|
40980
41155
|
this.divaBasketHandler.emailConfig = undefined;
|
|
@@ -41006,11 +41181,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41006
41181
|
});
|
|
41007
41182
|
this.handleSuccessTransaction('onSendEmail', actBasket);
|
|
41008
41183
|
}
|
|
41009
|
-
(_this$
|
|
41184
|
+
(_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
|
|
41010
41185
|
type: 'onAddToBasket',
|
|
41011
41186
|
data: actBasket.getAsJson()
|
|
41012
41187
|
});
|
|
41013
|
-
return _context28.abrupt("break",
|
|
41188
|
+
return _context28.abrupt("break", 40);
|
|
41014
41189
|
case 25:
|
|
41015
41190
|
this.actSet().CatalogData;
|
|
41016
41191
|
_context28.next = 28;
|
|
@@ -41018,7 +41193,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41018
41193
|
case 28:
|
|
41019
41194
|
products = _context28.sent;
|
|
41020
41195
|
this.handleSuccessTransaction('onSaveProduct', actBasket);
|
|
41021
|
-
(_this$
|
|
41196
|
+
(_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
|
|
41022
41197
|
type: 'onAddToBasket',
|
|
41023
41198
|
data: actBasket.getAsJson()
|
|
41024
41199
|
});
|
|
@@ -41032,14 +41207,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41032
41207
|
addToBasketLog = false;
|
|
41033
41208
|
case 35:
|
|
41034
41209
|
if (addToBasketLog) this.handleSuccessTransaction('onAddToBasket', actBasket);
|
|
41035
|
-
(_this$
|
|
41210
|
+
(_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
|
|
41036
41211
|
type: 'onAddToBasket',
|
|
41037
41212
|
data: actBasket.getAsJson()
|
|
41038
41213
|
});
|
|
41039
|
-
return _context28.abrupt("break",
|
|
41214
|
+
return _context28.abrupt("break", 40);
|
|
41040
41215
|
case 38:
|
|
41216
|
+
(_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
|
|
41217
|
+
type: event,
|
|
41218
|
+
data: actBasket.getAsJson()
|
|
41219
|
+
});
|
|
41220
|
+
return _context28.abrupt("break", 40);
|
|
41221
|
+
case 40:
|
|
41041
41222
|
return _context28.abrupt("return");
|
|
41042
|
-
case
|
|
41223
|
+
case 41:
|
|
41043
41224
|
case "end":
|
|
41044
41225
|
return _context28.stop();
|
|
41045
41226
|
}
|
|
@@ -41064,8 +41245,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41064
41245
|
}, {
|
|
41065
41246
|
key: "openPDFpostAsEvent",
|
|
41066
41247
|
value: function openPDFpostAsEvent(mongoDBId) {
|
|
41067
|
-
var _this$
|
|
41068
|
-
(_this$
|
|
41248
|
+
var _this$actions44, _this$actions45, _this$actions46;
|
|
41249
|
+
(_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.updateBreadcrumbs({
|
|
41069
41250
|
type: 'update',
|
|
41070
41251
|
param: {
|
|
41071
41252
|
groupId: 'SHOWROOM',
|
|
@@ -41079,7 +41260,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41079
41260
|
}
|
|
41080
41261
|
}
|
|
41081
41262
|
});
|
|
41082
|
-
(_this$
|
|
41263
|
+
(_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
|
|
41083
41264
|
type: 'update',
|
|
41084
41265
|
param: {
|
|
41085
41266
|
groupId: 'SHOWROOM',
|
|
@@ -41093,7 +41274,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41093
41274
|
}
|
|
41094
41275
|
}
|
|
41095
41276
|
});
|
|
41096
|
-
(_this$
|
|
41277
|
+
(_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
|
|
41097
41278
|
type: 'REPORT',
|
|
41098
41279
|
parameters: {
|
|
41099
41280
|
id: mongoDBId
|
|
@@ -41313,14 +41494,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41313
41494
|
}, {
|
|
41314
41495
|
key: "subscribeToWebPlannerEvents",
|
|
41315
41496
|
value: function subscribeToWebPlannerEvents() {
|
|
41316
|
-
var _this$
|
|
41317
|
-
(_this$
|
|
41497
|
+
var _this$actions47;
|
|
41498
|
+
(_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
|
|
41318
41499
|
}
|
|
41319
41500
|
}, {
|
|
41320
41501
|
key: "unsubscribeFromWebPlannerEvents",
|
|
41321
41502
|
value: function unsubscribeFromWebPlannerEvents() {
|
|
41322
|
-
var _this$
|
|
41323
|
-
(_this$
|
|
41503
|
+
var _this$actions48;
|
|
41504
|
+
(_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
|
|
41324
41505
|
}
|
|
41325
41506
|
}, {
|
|
41326
41507
|
key: "initApiForLogicOnly",
|
|
@@ -41388,7 +41569,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41388
41569
|
}, {
|
|
41389
41570
|
key: "initBasket",
|
|
41390
41571
|
value: function () {
|
|
41391
|
-
var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites) {
|
|
41572
|
+
var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites, onlyCalcVariants) {
|
|
41392
41573
|
var _initSetState$api$web2;
|
|
41393
41574
|
var initSetState, sets, result, _sets$, set, basket;
|
|
41394
41575
|
return _regeneratorRuntime.wrap(function _callee31$(_context31) {
|
|
@@ -41417,28 +41598,28 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41417
41598
|
(_sets$ = sets[0]) === null || _sets$ === void 0 || _sets$.remindPriceForHash(result);
|
|
41418
41599
|
}
|
|
41419
41600
|
case 12:
|
|
41420
|
-
//TODO: GLOBAL STUFF
|
|
41421
41601
|
set = this.actSet();
|
|
41602
|
+
if (set) set.onlyCalcVariants = onlyCalcVariants;
|
|
41422
41603
|
setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
|
|
41423
41604
|
if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
|
|
41424
|
-
_context31.next =
|
|
41605
|
+
_context31.next = 18;
|
|
41425
41606
|
break;
|
|
41426
41607
|
}
|
|
41427
|
-
_context31.next =
|
|
41608
|
+
_context31.next = 18;
|
|
41428
41609
|
return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
|
|
41429
|
-
case
|
|
41430
|
-
_context31.next =
|
|
41610
|
+
case 18:
|
|
41611
|
+
_context31.next = 20;
|
|
41431
41612
|
return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
|
|
41432
|
-
case
|
|
41613
|
+
case 20:
|
|
41433
41614
|
basket = _context31.sent;
|
|
41434
41615
|
return _context31.abrupt("return", basket);
|
|
41435
|
-
case
|
|
41616
|
+
case 22:
|
|
41436
41617
|
case "end":
|
|
41437
41618
|
return _context31.stop();
|
|
41438
41619
|
}
|
|
41439
41620
|
}, _callee31, this);
|
|
41440
41621
|
}));
|
|
41441
|
-
function initBasket(_x78, _x79) {
|
|
41622
|
+
function initBasket(_x78, _x79, _x80) {
|
|
41442
41623
|
return _initBasket.apply(this, arguments);
|
|
41443
41624
|
}
|
|
41444
41625
|
return initBasket;
|
|
@@ -41515,7 +41696,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41515
41696
|
}
|
|
41516
41697
|
}, _callee33, this);
|
|
41517
41698
|
}));
|
|
41518
|
-
function handleFavorites(
|
|
41699
|
+
function handleFavorites(_x81) {
|
|
41519
41700
|
return _handleFavorites.apply(this, arguments);
|
|
41520
41701
|
}
|
|
41521
41702
|
return handleFavorites;
|
|
@@ -41569,7 +41750,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41569
41750
|
}
|
|
41570
41751
|
}, _callee34, this);
|
|
41571
41752
|
}));
|
|
41572
|
-
function initSapOrderLinesFromBasket(
|
|
41753
|
+
function initSapOrderLinesFromBasket(_x82, _x83, _x84) {
|
|
41573
41754
|
return _initSapOrderLinesFromBasket.apply(this, arguments);
|
|
41574
41755
|
}
|
|
41575
41756
|
return initSapOrderLinesFromBasket;
|