@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
|
@@ -428,7 +428,6 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
428
428
|
diva3DRenderingDefault: data.diva3DRenderingDefault != undefined ? data.diva3DRenderingDefault : false,
|
|
429
429
|
diva3dServerMode: data.diva3dServerMode != undefined ? data.diva3dServerMode : 'SignalR',
|
|
430
430
|
diva3dRenderGroup: data.diva3dRenderGroup != undefined ? data.diva3dRenderGroup : 'MYCC7',
|
|
431
|
-
mediaServiceApiKey: data.divaMediaServiceApiKey,
|
|
432
431
|
language: lang !== null && lang !== void 0 ? lang : this.getLanguage(),
|
|
433
432
|
abTestCases: data.abTestCases !== undefined ? data.abTestCases : [],
|
|
434
433
|
checkForProductsPrice: data.checkForProductsPrice,
|
|
@@ -484,17 +483,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
484
483
|
var _this$apiConfig$baske, _this$apiConfig9;
|
|
485
484
|
return (_this$apiConfig$baske = (_this$apiConfig9 = this.apiConfig) === null || _this$apiConfig9 === void 0 ? void 0 : _this$apiConfig9.basketService) !== null && _this$apiConfig$baske !== void 0 ? _this$apiConfig$baske : '';
|
|
486
485
|
}
|
|
487
|
-
}, {
|
|
488
|
-
key: "getDivaMediaServiceApiKey",
|
|
489
|
-
value: function getDivaMediaServiceApiKey() {
|
|
490
|
-
var _this$divaWebConfigDa, _this$divaWebConfigDa2;
|
|
491
|
-
return (_this$divaWebConfigDa = (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.mediaServiceApiKey) !== null && _this$divaWebConfigDa !== void 0 ? _this$divaWebConfigDa : '';
|
|
492
|
-
}
|
|
493
486
|
}, {
|
|
494
487
|
key: "getLoadProductBasketParams",
|
|
495
488
|
value: function getLoadProductBasketParams() {
|
|
496
|
-
var _this$
|
|
497
|
-
return (_this$
|
|
489
|
+
var _this$divaWebConfigDa;
|
|
490
|
+
return (_this$divaWebConfigDa = this.divaWebConfigData) === null || _this$divaWebConfigDa === void 0 ? void 0 : _this$divaWebConfigDa.loadProductBasketParams;
|
|
498
491
|
}
|
|
499
492
|
}, {
|
|
500
493
|
key: "get3DServerUrl",
|
|
@@ -505,20 +498,20 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
505
498
|
}, {
|
|
506
499
|
key: "doCheckForProductsPrice",
|
|
507
500
|
value: function doCheckForProductsPrice() {
|
|
508
|
-
var _this$
|
|
509
|
-
return (_this$
|
|
501
|
+
var _this$divaWebConfigDa2;
|
|
502
|
+
return (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.checkForProductsPrice;
|
|
510
503
|
}
|
|
511
504
|
}, {
|
|
512
505
|
key: "getReportConfigIdentifier",
|
|
513
506
|
value: function getReportConfigIdentifier() {
|
|
514
|
-
var _this$
|
|
515
|
-
return (_this$
|
|
507
|
+
var _this$divaWebConfigDa3;
|
|
508
|
+
return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.reportConfigIdentifier;
|
|
516
509
|
}
|
|
517
510
|
}, {
|
|
518
511
|
key: "getPrintOptions",
|
|
519
512
|
value: function getPrintOptions() {
|
|
520
|
-
var _this$
|
|
521
|
-
var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$
|
|
513
|
+
var _this$divaWebConfigDa4;
|
|
514
|
+
var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.reportConfig;
|
|
522
515
|
return {
|
|
523
516
|
Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
|
|
524
517
|
PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
|
|
@@ -538,8 +531,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
538
531
|
}, {
|
|
539
532
|
key: "get3DRenderGroup",
|
|
540
533
|
value: function get3DRenderGroup() {
|
|
541
|
-
var _this$
|
|
542
|
-
return (_this$
|
|
534
|
+
var _this$divaWebConfigDa5, _this$divaWebConfigDa6;
|
|
535
|
+
return (_this$divaWebConfigDa5 = (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.diva3dRenderGroup) !== null && _this$divaWebConfigDa5 !== void 0 ? _this$divaWebConfigDa5 : '';
|
|
543
536
|
}
|
|
544
537
|
}, {
|
|
545
538
|
key: "getServerId",
|
|
@@ -576,86 +569,86 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
576
569
|
}, {
|
|
577
570
|
key: "getDiva3dStaticBGImage",
|
|
578
571
|
value: function getDiva3dStaticBGImage() {
|
|
579
|
-
var _this$
|
|
580
|
-
return (_this$
|
|
572
|
+
var _this$divaWebConfigDa7;
|
|
573
|
+
return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.diva3dStaticBGImage;
|
|
581
574
|
}
|
|
582
575
|
}, {
|
|
583
576
|
key: "getDiva3dStaticBGImage_DefaultRoomList",
|
|
584
577
|
value: function getDiva3dStaticBGImage_DefaultRoomList() {
|
|
585
|
-
var _this$
|
|
586
|
-
return ((_this$
|
|
578
|
+
var _this$divaWebConfigDa8, _this$divaWebConfigDa9;
|
|
579
|
+
return ((_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.diva3dStaticBGImage_DefaultRoomList;
|
|
587
580
|
}
|
|
588
581
|
}, {
|
|
589
582
|
key: "getDiva3DAllowDefaultCatRoomList",
|
|
590
583
|
value: function getDiva3DAllowDefaultCatRoomList() {
|
|
591
|
-
var _this$
|
|
592
|
-
return (_this$
|
|
584
|
+
var _this$divaWebConfigDa10;
|
|
585
|
+
return (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3DAllowDefaultCatRoomList;
|
|
593
586
|
}
|
|
594
587
|
}, {
|
|
595
588
|
key: "doAllowSetPlanner",
|
|
596
589
|
value: function doAllowSetPlanner() {
|
|
597
|
-
var _this$
|
|
598
|
-
return (_this$
|
|
590
|
+
var _this$divaWebConfigDa11;
|
|
591
|
+
return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.doAllowSetPlanner;
|
|
599
592
|
}
|
|
600
593
|
}, {
|
|
601
594
|
key: "getHidePlanner",
|
|
602
595
|
value: function getHidePlanner() {
|
|
603
|
-
var _this$
|
|
604
|
-
return !!((_this$
|
|
596
|
+
var _this$divaWebConfigDa12;
|
|
597
|
+
return !!((_this$divaWebConfigDa12 = this.divaWebConfigData) !== null && _this$divaWebConfigDa12 !== void 0 && (_this$divaWebConfigDa12 = _this$divaWebConfigDa12.viewConfig) !== null && _this$divaWebConfigDa12 !== void 0 && _this$divaWebConfigDa12.hidePlanner);
|
|
605
598
|
}
|
|
606
599
|
}, {
|
|
607
600
|
key: "getDoShowAR",
|
|
608
601
|
value: function getDoShowAR() {
|
|
609
|
-
var _this$
|
|
610
|
-
return (_this$
|
|
602
|
+
var _this$divaWebConfigDa13;
|
|
603
|
+
return (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 || (_this$divaWebConfigDa13 = _this$divaWebConfigDa13.viewConfig) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.enableAR;
|
|
611
604
|
}
|
|
612
605
|
}, {
|
|
613
606
|
key: "forceShowRTV",
|
|
614
607
|
value: function forceShowRTV() {
|
|
615
|
-
var _this$
|
|
616
|
-
return (_this$
|
|
608
|
+
var _this$divaWebConfigDa14;
|
|
609
|
+
return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 || (_this$divaWebConfigDa14 = _this$divaWebConfigDa14.viewConfig) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.forceRTV;
|
|
617
610
|
}
|
|
618
611
|
}, {
|
|
619
612
|
key: "getDoShowRTV",
|
|
620
613
|
value: function getDoShowRTV() {
|
|
621
|
-
var _this$
|
|
622
|
-
return (_this$
|
|
614
|
+
var _this$divaWebConfigDa15;
|
|
615
|
+
return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 || (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.enableRTV;
|
|
623
616
|
}
|
|
624
617
|
}, {
|
|
625
618
|
key: "getEnableRTVUnityKombi",
|
|
626
619
|
value: function getEnableRTVUnityKombi() {
|
|
627
|
-
var _this$
|
|
628
|
-
return !!((_this$
|
|
620
|
+
var _this$divaWebConfigDa16;
|
|
621
|
+
return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.viewConfig.enableRtvUnityKombi);
|
|
629
622
|
}
|
|
630
623
|
}, {
|
|
631
624
|
key: "getDoDisablePlanner2D",
|
|
632
625
|
value: function getDoDisablePlanner2D() {
|
|
633
|
-
var _this$
|
|
634
|
-
return !!((_this$
|
|
626
|
+
var _this$divaWebConfigDa17;
|
|
627
|
+
return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
|
|
635
628
|
}
|
|
636
629
|
}, {
|
|
637
630
|
key: "getRoomListInProduct",
|
|
638
631
|
value: function getRoomListInProduct() {
|
|
639
|
-
var _this$
|
|
640
|
-
return !!((_this$
|
|
632
|
+
var _this$divaWebConfigDa18;
|
|
633
|
+
return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
|
|
641
634
|
}
|
|
642
635
|
}, {
|
|
643
636
|
key: "getPlannerType",
|
|
644
637
|
value: function getPlannerType() {
|
|
645
|
-
var _this$
|
|
646
|
-
return (_this$
|
|
638
|
+
var _this$divaWebConfigDa19;
|
|
639
|
+
return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 || (_this$divaWebConfigDa19 = _this$divaWebConfigDa19.viewConfig) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.plannerType;
|
|
647
640
|
}
|
|
648
641
|
}, {
|
|
649
642
|
key: "getLoadSupplierColors",
|
|
650
643
|
value: function getLoadSupplierColors() {
|
|
651
|
-
var _this$
|
|
652
|
-
return !!((_this$
|
|
644
|
+
var _this$divaWebConfigDa20;
|
|
645
|
+
return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
|
|
653
646
|
}
|
|
654
647
|
}, {
|
|
655
648
|
key: "showSelectionModeZero",
|
|
656
649
|
value: function showSelectionModeZero() {
|
|
657
|
-
var _this$
|
|
658
|
-
return !!((_this$
|
|
650
|
+
var _this$divaWebConfigDa21;
|
|
651
|
+
return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
|
|
659
652
|
}
|
|
660
653
|
}, {
|
|
661
654
|
key: "ruleDescSeperator",
|
|
@@ -675,8 +668,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
675
668
|
}, {
|
|
676
669
|
key: "getDoCheckVariantData",
|
|
677
670
|
value: function getDoCheckVariantData() {
|
|
678
|
-
var _this$
|
|
679
|
-
return (_this$
|
|
671
|
+
var _this$divaWebConfigDa22;
|
|
672
|
+
return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.doCheckVariantData;
|
|
680
673
|
}
|
|
681
674
|
}, {
|
|
682
675
|
key: "setI18n",
|
|
@@ -769,50 +762,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
769
762
|
}, {
|
|
770
763
|
key: "getViewConfig",
|
|
771
764
|
value: function getViewConfig() {
|
|
772
|
-
var _this$
|
|
773
|
-
return (_this$
|
|
765
|
+
var _this$divaWebConfigDa23;
|
|
766
|
+
return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.viewConfig;
|
|
774
767
|
}
|
|
775
768
|
}, {
|
|
776
769
|
key: "getEmailConfig",
|
|
777
770
|
value: function getEmailConfig() {
|
|
778
|
-
var _this$
|
|
779
|
-
return (_this$
|
|
771
|
+
var _this$divaWebConfigDa24;
|
|
772
|
+
return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.emailConfig;
|
|
780
773
|
}
|
|
781
774
|
}, {
|
|
782
775
|
key: "getABTestCases",
|
|
783
776
|
value: function getABTestCases() {
|
|
784
|
-
var _this$
|
|
785
|
-
return (_this$
|
|
777
|
+
var _this$divaWebConfigDa25, _this$divaWebConfigDa26;
|
|
778
|
+
return (_this$divaWebConfigDa25 = (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.abTestCases) !== null && _this$divaWebConfigDa25 !== void 0 ? _this$divaWebConfigDa25 : [];
|
|
786
779
|
}
|
|
787
780
|
}, {
|
|
788
781
|
key: "getBarrierConfig",
|
|
789
782
|
value: function getBarrierConfig() {
|
|
790
|
-
var _this$
|
|
791
|
-
return (_this$
|
|
783
|
+
var _this$divaWebConfigDa27;
|
|
784
|
+
return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.barrierConfig;
|
|
792
785
|
}
|
|
793
786
|
}, {
|
|
794
787
|
key: "getTemplateConfig",
|
|
795
788
|
value: function getTemplateConfig() {
|
|
796
|
-
var _this$
|
|
797
|
-
return (_this$
|
|
789
|
+
var _this$divaWebConfigDa28;
|
|
790
|
+
return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.templateConfig;
|
|
798
791
|
}
|
|
799
792
|
}, {
|
|
800
793
|
key: "showDivaNr",
|
|
801
794
|
value: function showDivaNr() {
|
|
802
|
-
var _this$
|
|
803
|
-
return (_this$
|
|
795
|
+
var _this$divaWebConfigDa29;
|
|
796
|
+
return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.showDivaNr;
|
|
804
797
|
}
|
|
805
798
|
}, {
|
|
806
799
|
key: "onErrorHandling",
|
|
807
800
|
value: function onErrorHandling() {
|
|
808
|
-
var _this$
|
|
809
|
-
return (_this$
|
|
801
|
+
var _this$divaWebConfigDa30;
|
|
802
|
+
return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.onErrorHandling;
|
|
810
803
|
}
|
|
811
804
|
}, {
|
|
812
805
|
key: "diva3DRenderingDefault",
|
|
813
806
|
value: function diva3DRenderingDefault() {
|
|
814
|
-
var _this$
|
|
815
|
-
return (_this$
|
|
807
|
+
var _this$divaWebConfigDa31;
|
|
808
|
+
return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.diva3DRenderingDefault;
|
|
816
809
|
}
|
|
817
810
|
}, {
|
|
818
811
|
key: "getJwt",
|
|
@@ -827,8 +820,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
827
820
|
}, {
|
|
828
821
|
key: "getUseMask",
|
|
829
822
|
value: function getUseMask() {
|
|
830
|
-
var _this$
|
|
831
|
-
return (_this$
|
|
823
|
+
var _this$divaWebConfigDa32;
|
|
824
|
+
return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.useMask;
|
|
832
825
|
}
|
|
833
826
|
}, {
|
|
834
827
|
key: "apiUrl",
|
|
@@ -900,8 +893,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
900
893
|
return '/v1/products/' + productId + '/list';
|
|
901
894
|
}
|
|
902
895
|
}, {
|
|
903
|
-
key: "
|
|
904
|
-
value: function
|
|
896
|
+
key: "getProductByKeyValueUrl",
|
|
897
|
+
value: function getProductByKeyValueUrl(key, value) {
|
|
905
898
|
return "/v1/products/basket?key=".concat(key, "&value=").concat(value);
|
|
906
899
|
}
|
|
907
900
|
}, {
|
|
@@ -1348,14 +1341,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1348
1341
|
}, {
|
|
1349
1342
|
key: "dontLoadAdditionalModelInfos",
|
|
1350
1343
|
get: function get() {
|
|
1351
|
-
var _this$
|
|
1352
|
-
return (_this$
|
|
1344
|
+
var _this$divaWebConfigDa33;
|
|
1345
|
+
return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadAdditionalModelInfos;
|
|
1353
1346
|
}
|
|
1354
1347
|
}, {
|
|
1355
1348
|
key: "dontLoadCatalogEditorLiteMask",
|
|
1356
1349
|
get: function get() {
|
|
1357
|
-
var _this$
|
|
1358
|
-
return (_this$
|
|
1350
|
+
var _this$divaWebConfigDa34;
|
|
1351
|
+
return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.dontLoadCatalogEditorLiteMask;
|
|
1359
1352
|
}
|
|
1360
1353
|
}, {
|
|
1361
1354
|
key: "OrganizationId",
|
|
@@ -1614,6 +1607,16 @@ var ArticleOptionData = /*#__PURE__*/function () {
|
|
|
1614
1607
|
get: function get() {
|
|
1615
1608
|
return this.opt.catalogOPT.contentItemId;
|
|
1616
1609
|
}
|
|
1610
|
+
}, {
|
|
1611
|
+
key: "showSearchbar",
|
|
1612
|
+
get: function get() {
|
|
1613
|
+
return this.opt.catalogOPT.showSearchbar;
|
|
1614
|
+
}
|
|
1615
|
+
}, {
|
|
1616
|
+
key: "showFilter",
|
|
1617
|
+
get: function get() {
|
|
1618
|
+
return this.opt.catalogOPT.showFilter;
|
|
1619
|
+
}
|
|
1617
1620
|
}, {
|
|
1618
1621
|
key: "pdfUrl",
|
|
1619
1622
|
get: function get() {
|
|
@@ -1771,6 +1774,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
|
|
|
1771
1774
|
get: function get() {
|
|
1772
1775
|
return this.opv.codex;
|
|
1773
1776
|
}
|
|
1777
|
+
}, {
|
|
1778
|
+
key: "isNotRelevant",
|
|
1779
|
+
get: function get() {
|
|
1780
|
+
return this.opv.catalogOPV.isNotRelevant;
|
|
1781
|
+
}
|
|
1774
1782
|
}, {
|
|
1775
1783
|
key: "vCodex",
|
|
1776
1784
|
get: function get() {
|
|
@@ -1921,6 +1929,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
|
|
|
1921
1929
|
get: function get() {
|
|
1922
1930
|
return this.opv.catalogOPV.contentItemId;
|
|
1923
1931
|
}
|
|
1932
|
+
}, {
|
|
1933
|
+
key: "groupContentItemId",
|
|
1934
|
+
get: function get() {
|
|
1935
|
+
return this.opv.catalogOPV.groupContentItemId;
|
|
1936
|
+
}
|
|
1924
1937
|
}, {
|
|
1925
1938
|
key: "subArticleCodex",
|
|
1926
1939
|
get: function get() {
|
|
@@ -16060,6 +16073,10 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16060
16073
|
this.opv.onRule = prop.Value;
|
|
16061
16074
|
} else if (prop.Codex === 'CONTENT_ITEM') {
|
|
16062
16075
|
this.opv.contentItemId = prop.Value;
|
|
16076
|
+
} else if (prop.Codex === 'IS_NOT_RELEVANT') {
|
|
16077
|
+
this.opv.isNotRelevant = prop.Value;
|
|
16078
|
+
} else if (prop.Codex === 'GROUP_CONTENT_ITEM') {
|
|
16079
|
+
this.opv.groupContentItemId = prop.Value;
|
|
16063
16080
|
} else if (prop.Codex === 'SET_BY_RULE') {
|
|
16064
16081
|
this.opv.setByRule = prop.Value;
|
|
16065
16082
|
} else {
|
|
@@ -16097,6 +16114,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16097
16114
|
get: function get() {
|
|
16098
16115
|
return this.opv.vCodex;
|
|
16099
16116
|
}
|
|
16117
|
+
}, {
|
|
16118
|
+
key: "isNotRelevant",
|
|
16119
|
+
get: function get() {
|
|
16120
|
+
return this.opv.isNotRelevant;
|
|
16121
|
+
}
|
|
16100
16122
|
}, {
|
|
16101
16123
|
key: "name",
|
|
16102
16124
|
get: function get() {
|
|
@@ -16230,6 +16252,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16230
16252
|
get: function get() {
|
|
16231
16253
|
return this.opv.contentItemId;
|
|
16232
16254
|
}
|
|
16255
|
+
}, {
|
|
16256
|
+
key: "groupContentItemId",
|
|
16257
|
+
get: function get() {
|
|
16258
|
+
return this.opv.groupContentItemId;
|
|
16259
|
+
}
|
|
16233
16260
|
}, {
|
|
16234
16261
|
key: "metaData",
|
|
16235
16262
|
get: function get() {
|
|
@@ -16467,6 +16494,8 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
16467
16494
|
this.catalogArticle.maxPlanningCount = Number(prop.Value);
|
|
16468
16495
|
} else if (_key == 'CONTENT_ITEM') {
|
|
16469
16496
|
this.catalogArticle.contentItemId = prop.Value;
|
|
16497
|
+
} else if (_key == 'GROUP_CONTENT_ITEM') {
|
|
16498
|
+
this.catalogArticle.groupContentItemId = prop.Value;
|
|
16470
16499
|
} else if (_key == 'HAS3D') {
|
|
16471
16500
|
this.catalogArticle.isVisualized = prop.Value;
|
|
16472
16501
|
} else {
|
|
@@ -16517,6 +16546,11 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
16517
16546
|
get: function get() {
|
|
16518
16547
|
return this.catalogArticle.contentItemId;
|
|
16519
16548
|
}
|
|
16549
|
+
}, {
|
|
16550
|
+
key: "groupContentItemId",
|
|
16551
|
+
get: function get() {
|
|
16552
|
+
return this.catalogArticle.groupContentItemId;
|
|
16553
|
+
}
|
|
16520
16554
|
}, {
|
|
16521
16555
|
key: "articleCodex",
|
|
16522
16556
|
get: function get() {
|
|
@@ -17111,7 +17145,8 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
17111
17145
|
isVisualized: catalogArticle.isVisualized,
|
|
17112
17146
|
configStepKeys: [],
|
|
17113
17147
|
metaData: catalogArticle.metaDataView,
|
|
17114
|
-
contentItemId: catalogArticle.contentItemId
|
|
17148
|
+
contentItemId: catalogArticle.contentItemId,
|
|
17149
|
+
groupContentItemId: catalogArticle.groupContentItemId
|
|
17115
17150
|
});
|
|
17116
17151
|
}
|
|
17117
17152
|
}
|
|
@@ -17847,6 +17882,12 @@ var OptionCatalogData = /*#__PURE__*/function () {
|
|
|
17847
17882
|
case 'INFO_URL':
|
|
17848
17883
|
this.opt.url = prop.Value;
|
|
17849
17884
|
break;
|
|
17885
|
+
case 'SHOW_SEARCHBAR':
|
|
17886
|
+
this.opt.showSearchbar = prop.Value == '1';
|
|
17887
|
+
break;
|
|
17888
|
+
case 'SHOW_FILTER':
|
|
17889
|
+
this.opt.showFilter = prop.Value == '1';
|
|
17890
|
+
break;
|
|
17850
17891
|
case 'INFO_PDF':
|
|
17851
17892
|
this.opt.pdfUrl = prop.Value;
|
|
17852
17893
|
break;
|
|
@@ -18047,6 +18088,16 @@ var OptionCatalogData = /*#__PURE__*/function () {
|
|
|
18047
18088
|
get: function get() {
|
|
18048
18089
|
return this.opt.url;
|
|
18049
18090
|
}
|
|
18091
|
+
}, {
|
|
18092
|
+
key: "showSearchbar",
|
|
18093
|
+
get: function get() {
|
|
18094
|
+
return this.opt.showSearchbar;
|
|
18095
|
+
}
|
|
18096
|
+
}, {
|
|
18097
|
+
key: "showFilter",
|
|
18098
|
+
get: function get() {
|
|
18099
|
+
return this.opt.showFilter;
|
|
18100
|
+
}
|
|
18050
18101
|
}, {
|
|
18051
18102
|
key: "pdfUrl",
|
|
18052
18103
|
get: function get() {
|
|
@@ -18143,7 +18194,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18143
18194
|
brandName: json.Brandname,
|
|
18144
18195
|
mediaUrl: '',
|
|
18145
18196
|
// https://retail.diva-portal.de/files/33/9680c4a3-fc60-4541-8738-4859d9b24e9d/";
|
|
18146
|
-
imageBaseUrl: '',
|
|
18147
18197
|
subFolder: json.SubFolder,
|
|
18148
18198
|
longDescription: json.LongDescription,
|
|
18149
18199
|
longDescription_locales: json.LongDescription_locales,
|
|
@@ -18218,9 +18268,12 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18218
18268
|
//DP Logik
|
|
18219
18269
|
reconfigAfterArticleDocked: false,
|
|
18220
18270
|
ignoreLayerAVC: false,
|
|
18221
|
-
//
|
|
18271
|
+
//
|
|
18222
18272
|
ignoreLayerAVOAVU: false,
|
|
18223
|
-
//
|
|
18273
|
+
//
|
|
18274
|
+
ignoreLayerAVNAVS: false,
|
|
18275
|
+
//
|
|
18276
|
+
|
|
18224
18277
|
dockAccOnAvoOnly: false,
|
|
18225
18278
|
// 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
|
|
18226
18279
|
showAccOnDpOnly: false,
|
|
@@ -18345,9 +18398,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18345
18398
|
key: "getMediaURL",
|
|
18346
18399
|
value: function getMediaURL(subFolder) {
|
|
18347
18400
|
var retval = '';
|
|
18348
|
-
if (this.
|
|
18349
|
-
retval = this.catalogData.imageBaseUrl;
|
|
18350
|
-
} else if (this.api.getBaseUrl().substring(0, 4) == 'http') {
|
|
18401
|
+
if (this.api.getBaseUrl().substring(0, 4) == 'http') {
|
|
18351
18402
|
retval = this.api.getBaseUrl() + '/' + this.api.getServerId() + '/';
|
|
18352
18403
|
}
|
|
18353
18404
|
if (subFolder != '') retval += subFolder + '/';
|
|
@@ -18519,6 +18570,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18519
18570
|
_this.catalogData.ignoreLayerAVC = item.Value == '1';
|
|
18520
18571
|
} else if (item.Codex == 'IGNORELAYERAVOAVU') {
|
|
18521
18572
|
_this.catalogData.ignoreLayerAVOAVU = item.Value == '1';
|
|
18573
|
+
} else if (item.Codex == 'IGNORELAYERAVNAVS') {
|
|
18574
|
+
_this.catalogData.ignoreLayerAVNAVS = item.Value == '1';
|
|
18522
18575
|
} else if (item.Codex == 'DOCKACCONAVOONLY') {
|
|
18523
18576
|
//Accessoires können nur aufwärts verplant werden. (Für Küssnacht)
|
|
18524
18577
|
_this.catalogData.dockAccOnAvoOnly = item.Value == '1';
|
|
@@ -18803,6 +18856,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18803
18856
|
groupName: groupTitle,
|
|
18804
18857
|
metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
|
|
18805
18858
|
contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
|
|
18859
|
+
groupContentItemId: this.catalogArticles[catPlanArticle.codex].groupContentItemId,
|
|
18806
18860
|
partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
|
|
18807
18861
|
};
|
|
18808
18862
|
this.plannerPaletteViewInfo.catalogPlannerArticles.push(catPlanArtView);
|
|
@@ -18861,6 +18915,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18861
18915
|
groupName: groupTitle,
|
|
18862
18916
|
metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
|
|
18863
18917
|
contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
|
|
18918
|
+
groupContentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
|
|
18864
18919
|
partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
|
|
18865
18920
|
};
|
|
18866
18921
|
//nicht ausmultiplizierte Elemente
|
|
@@ -19080,6 +19135,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19080
19135
|
return {
|
|
19081
19136
|
ignoreLayerAVC: this.catalogData.ignoreLayerAVC,
|
|
19082
19137
|
ignoreLayerAVOAVU: this.catalogData.ignoreLayerAVOAVU,
|
|
19138
|
+
ignoreLayerAVNAVS: this.catalogData.ignoreLayerAVNAVS,
|
|
19083
19139
|
showAccOnDpOnly: this.catalogData.showAccOnDpOnly,
|
|
19084
19140
|
dockAccOnAvoOnly: this.catalogData.dockAccOnAvoOnly,
|
|
19085
19141
|
hideAccessoriesInPlanner: this.catalogData.accessorieStepAsPlanner,
|
|
@@ -20024,7 +20080,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20024
20080
|
}, {
|
|
20025
20081
|
key: "isDisabled",
|
|
20026
20082
|
get: function get() {
|
|
20027
|
-
|
|
20083
|
+
var _this$val3;
|
|
20084
|
+
return this.articleOptionState.disabled || !!((_this$val3 = this.val) !== null && _this$val3 !== void 0 && _this$val3.isNotRelevant) && this.visibleCount == 1;
|
|
20028
20085
|
},
|
|
20029
20086
|
set: function set(isDisabled) {
|
|
20030
20087
|
this.articleOptionState.disabled = isDisabled;
|
|
@@ -20032,7 +20089,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20032
20089
|
}, {
|
|
20033
20090
|
key: "isDoShow",
|
|
20034
20091
|
get: function get() {
|
|
20035
|
-
|
|
20092
|
+
var _this$val4;
|
|
20093
|
+
return this.articleOptionState.doShow && (!((_this$val4 = this.val) !== null && _this$val4 !== void 0 && _this$val4.isNotRelevant) || this.visibleCount > 1);
|
|
20036
20094
|
},
|
|
20037
20095
|
set: function set(doShow) {
|
|
20038
20096
|
this.articleOptionState.doShow = doShow;
|
|
@@ -20076,14 +20134,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20076
20134
|
}, {
|
|
20077
20135
|
key: "priceId",
|
|
20078
20136
|
get: function get() {
|
|
20079
|
-
var _this$val$priceId, _this$
|
|
20080
|
-
return (_this$val$priceId = (_this$
|
|
20137
|
+
var _this$val$priceId, _this$val5;
|
|
20138
|
+
return (_this$val$priceId = (_this$val5 = this.val) === null || _this$val5 === void 0 ? void 0 : _this$val5.priceId) !== null && _this$val$priceId !== void 0 ? _this$val$priceId : '';
|
|
20081
20139
|
}
|
|
20082
20140
|
}, {
|
|
20083
20141
|
key: "targetOption",
|
|
20084
20142
|
get: function get() {
|
|
20085
|
-
var _this$
|
|
20086
|
-
return (_this$
|
|
20143
|
+
var _this$val6;
|
|
20144
|
+
return (_this$val6 = this.val) === null || _this$val6 === void 0 ? void 0 : _this$val6.targetOption;
|
|
20087
20145
|
}
|
|
20088
20146
|
}, {
|
|
20089
20147
|
key: "targetPPGPrefixes",
|
|
@@ -20100,14 +20158,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20100
20158
|
}, {
|
|
20101
20159
|
key: "quantity",
|
|
20102
20160
|
get: function get() {
|
|
20103
|
-
var _this$val$quantity, _this$
|
|
20104
|
-
return (_this$val$quantity = (_this$
|
|
20161
|
+
var _this$val$quantity, _this$val7;
|
|
20162
|
+
return (_this$val$quantity = (_this$val7 = this.val) === null || _this$val7 === void 0 ? void 0 : _this$val7.quantity) !== null && _this$val$quantity !== void 0 ? _this$val$quantity : 1;
|
|
20105
20163
|
}
|
|
20106
20164
|
}, {
|
|
20107
20165
|
key: "ocd",
|
|
20108
20166
|
get: function get() {
|
|
20109
|
-
var _this$
|
|
20110
|
-
return (_this$
|
|
20167
|
+
var _this$val8;
|
|
20168
|
+
return (_this$val8 = this.val) === null || _this$val8 === void 0 ? void 0 : _this$val8.ocd;
|
|
20111
20169
|
}
|
|
20112
20170
|
}, {
|
|
20113
20171
|
key: "optionOcd",
|
|
@@ -20117,8 +20175,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20117
20175
|
}, {
|
|
20118
20176
|
key: "value",
|
|
20119
20177
|
get: function get() {
|
|
20120
|
-
var _this$
|
|
20121
|
-
return (_this$
|
|
20178
|
+
var _this$val9;
|
|
20179
|
+
return (_this$val9 = this.val) === null || _this$val9 === void 0 ? void 0 : _this$val9.value;
|
|
20122
20180
|
}
|
|
20123
20181
|
}, {
|
|
20124
20182
|
key: "vCodex",
|
|
@@ -20146,8 +20204,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20146
20204
|
get: function get() {
|
|
20147
20205
|
if (this.articleOptionState.retailArticleNr) return this.articleOptionState.retailArticleNr;
|
|
20148
20206
|
if (this.articleOptionState.option.articlePlaceholder) {
|
|
20149
|
-
var _this$
|
|
20150
|
-
return (_this$
|
|
20207
|
+
var _this$val10;
|
|
20208
|
+
return (_this$val10 = this.val) === null || _this$val10 === void 0 ? void 0 : _this$val10.subRetailArticleNr;
|
|
20151
20209
|
}
|
|
20152
20210
|
return undefined;
|
|
20153
20211
|
},
|
|
@@ -20170,8 +20228,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20170
20228
|
}, {
|
|
20171
20229
|
key: "visibleInSummary",
|
|
20172
20230
|
value: function visibleInSummary(aritcle) {
|
|
20173
|
-
var _this$
|
|
20174
|
-
return !this.isInvisible && (this.selectionmode != 0 || (this.visibleCount > 1 || this.isFreeText) && aritcle.set.api.showSelectionModeZero()) && this.isDoShow && this.
|
|
20231
|
+
var _this$val11, _this$val12;
|
|
20232
|
+
return !this.isInvisible && (this.selectionmode != 0 || (this.visibleCount > 1 || this.isFreeText) && aritcle.set.api.showSelectionModeZero()) && this.isDoShow && !((_this$val11 = this.val) !== null && _this$val11 !== void 0 && _this$val11.isNotRelevant) && !this.isHiddenByDefaultValueForOptions(aritcle) && !((_this$val12 = this.val) !== null && _this$val12 !== void 0 && _this$val12.hideInSummary);
|
|
20175
20233
|
}
|
|
20176
20234
|
}, {
|
|
20177
20235
|
key: "isHiddenByDefaultValueForOptions",
|
|
@@ -20192,45 +20250,45 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20192
20250
|
}, {
|
|
20193
20251
|
key: "subArticleCodex",
|
|
20194
20252
|
get: function get() {
|
|
20195
|
-
var _this$
|
|
20196
|
-
return (_this$
|
|
20253
|
+
var _this$val13;
|
|
20254
|
+
return (_this$val13 = this.val) === null || _this$val13 === void 0 ? void 0 : _this$val13.subArticleCodex;
|
|
20197
20255
|
}
|
|
20198
20256
|
}, {
|
|
20199
20257
|
key: "subArticleName",
|
|
20200
20258
|
get: function get() {
|
|
20201
|
-
var _this$
|
|
20202
|
-
return (_this$
|
|
20259
|
+
var _this$val14;
|
|
20260
|
+
return (_this$val14 = this.val) === null || _this$val14 === void 0 ? void 0 : _this$val14.subArticleName;
|
|
20203
20261
|
}
|
|
20204
20262
|
}, {
|
|
20205
20263
|
key: "measureUnit",
|
|
20206
20264
|
get: function get() {
|
|
20207
|
-
var _this$
|
|
20208
|
-
return (_this$
|
|
20265
|
+
var _this$val15;
|
|
20266
|
+
return (_this$val15 = this.val) === null || _this$val15 === void 0 ? void 0 : _this$val15.measureUnit;
|
|
20209
20267
|
}
|
|
20210
20268
|
}, {
|
|
20211
20269
|
key: "priceUnit",
|
|
20212
20270
|
get: function get() {
|
|
20213
|
-
var _this$val$priceUnit, _this$
|
|
20214
|
-
var retval = (_this$val$priceUnit = (_this$
|
|
20271
|
+
var _this$val$priceUnit, _this$val16, _this$val17, _this$val$parent;
|
|
20272
|
+
var retval = (_this$val$priceUnit = (_this$val16 = this.val) === null || _this$val16 === void 0 ? void 0 : _this$val16.priceUnit) !== null && _this$val$priceUnit !== void 0 ? _this$val$priceUnit : (_this$val17 = this.val) !== null && _this$val17 !== void 0 && _this$val17.isParentOPVG ? (_this$val$parent = this.val.parent) === null || _this$val$parent === void 0 ? void 0 : _this$val$parent.priceUnit : undefined;
|
|
20215
20273
|
return retval;
|
|
20216
20274
|
}
|
|
20217
20275
|
}, {
|
|
20218
20276
|
key: "isPercentage",
|
|
20219
20277
|
get: function get() {
|
|
20220
|
-
var _this$
|
|
20221
|
-
return (_this$
|
|
20278
|
+
var _this$val18;
|
|
20279
|
+
return (_this$val18 = this.val) === null || _this$val18 === void 0 ? void 0 : _this$val18.isPercentage;
|
|
20222
20280
|
}
|
|
20223
20281
|
}, {
|
|
20224
20282
|
key: "replaceMainArtNr",
|
|
20225
20283
|
get: function get() {
|
|
20226
|
-
var _this$
|
|
20227
|
-
return (_this$
|
|
20284
|
+
var _this$val19;
|
|
20285
|
+
return (_this$val19 = this.val) === null || _this$val19 === void 0 ? void 0 : _this$val19.subarticleReplaceMainArticleNr;
|
|
20228
20286
|
}
|
|
20229
20287
|
}, {
|
|
20230
20288
|
key: "subArticleTypeNr",
|
|
20231
20289
|
get: function get() {
|
|
20232
|
-
var _this$
|
|
20233
|
-
return (_this$
|
|
20290
|
+
var _this$val20;
|
|
20291
|
+
return (_this$val20 = this.val) === null || _this$val20 === void 0 ? void 0 : _this$val20.subArticleTypeNr;
|
|
20234
20292
|
}
|
|
20235
20293
|
}, {
|
|
20236
20294
|
key: "isVisibleFreeText",
|
|
@@ -20256,14 +20314,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20256
20314
|
}, {
|
|
20257
20315
|
key: "isOnlyFreeText",
|
|
20258
20316
|
get: function get() {
|
|
20259
|
-
var _this$
|
|
20260
|
-
return ((_this$
|
|
20317
|
+
var _this$val21;
|
|
20318
|
+
return ((_this$val21 = this.val) === null || _this$val21 === void 0 ? void 0 : _this$val21.isFreeText) && this.visibleCount == 1;
|
|
20261
20319
|
}
|
|
20262
20320
|
}, {
|
|
20263
20321
|
key: "isFreeText",
|
|
20264
20322
|
get: function get() {
|
|
20265
|
-
var _this$
|
|
20266
|
-
return (_this$
|
|
20323
|
+
var _this$val22;
|
|
20324
|
+
return (_this$val22 = this.val) === null || _this$val22 === void 0 ? void 0 : _this$val22.isFreeText;
|
|
20267
20325
|
}
|
|
20268
20326
|
}, {
|
|
20269
20327
|
key: "freeText",
|
|
@@ -20308,8 +20366,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20308
20366
|
}, {
|
|
20309
20367
|
key: "warning",
|
|
20310
20368
|
get: function get() {
|
|
20311
|
-
var _this$
|
|
20312
|
-
if ((_this$
|
|
20369
|
+
var _this$val23;
|
|
20370
|
+
if ((_this$val23 = this.val) !== null && _this$val23 !== void 0 && _this$val23.isFreeText) {
|
|
20313
20371
|
if (this.val.measureMaximum && Number(this.freeText) > Number(this.val.measureMaximum) || this.val.measureMinimum && Number(this.freeText) < Number(this.val.measureMinimum)) {
|
|
20314
20372
|
return 'measureWarning';
|
|
20315
20373
|
}
|
|
@@ -23578,7 +23636,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23578
23636
|
break;
|
|
23579
23637
|
}
|
|
23580
23638
|
_context.next = 4;
|
|
23581
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
23639
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-ffca2d2f.js'); });
|
|
23582
23640
|
case 4:
|
|
23583
23641
|
_yield$import = _context.sent;
|
|
23584
23642
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -26921,6 +26979,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
26921
26979
|
_defineProperty__default["default"](this, "setId", void 0);
|
|
26922
26980
|
_defineProperty__default["default"](this, "_isActSet", false);
|
|
26923
26981
|
_defineProperty__default["default"](this, "setData", void 0);
|
|
26982
|
+
_defineProperty__default["default"](this, "_onlyCalcVariants", void 0);
|
|
26924
26983
|
_defineProperty__default["default"](this, "divaArticles", void 0);
|
|
26925
26984
|
//Schlüssel ist basketId
|
|
26926
26985
|
_defineProperty__default["default"](this, "configSingleData", void 0);
|
|
@@ -28110,7 +28169,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28110
28169
|
break;
|
|
28111
28170
|
}
|
|
28112
28171
|
_context4.next = 3;
|
|
28113
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
28172
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-b5c52f00.js'); });
|
|
28114
28173
|
case 3:
|
|
28115
28174
|
_yield$import = _context4.sent;
|
|
28116
28175
|
DoorPlanner = _yield$import["default"];
|
|
@@ -28175,6 +28234,14 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28175
28234
|
get: function get() {
|
|
28176
28235
|
return this.setState;
|
|
28177
28236
|
}
|
|
28237
|
+
}, {
|
|
28238
|
+
key: "onlyCalcVariants",
|
|
28239
|
+
get: function get() {
|
|
28240
|
+
return this._onlyCalcVariants;
|
|
28241
|
+
},
|
|
28242
|
+
set: function set(val) {
|
|
28243
|
+
this._onlyCalcVariants = val;
|
|
28244
|
+
}
|
|
28178
28245
|
|
|
28179
28246
|
/**
|
|
28180
28247
|
*
|
|
@@ -28868,10 +28935,11 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
28868
28935
|
value: function geTabGroupFormOptionsForSummary(article) {
|
|
28869
28936
|
var tabGroups = [];
|
|
28870
28937
|
for (var basketId in article.partlistArticles) {
|
|
28938
|
+
var _ops$val;
|
|
28871
28939
|
var partlistArticle = article.partlistArticles[basketId];
|
|
28872
28940
|
if (!partlistArticle.tabGroup) continue;
|
|
28873
28941
|
var ops = article.getArticleOptionState('OPT' + partlistArticle.tabGroup);
|
|
28874
|
-
if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && ops.
|
|
28942
|
+
if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && !((_ops$val = ops.val) !== null && _ops$val !== void 0 && _ops$val.isNotRelevant) && ops !== null && ops !== void 0 && ops.optionTabGroup) {
|
|
28875
28943
|
tabGroups.push({
|
|
28876
28944
|
optionCodex: ops.optionCodex,
|
|
28877
28945
|
tabGroup: ops.optionTabGroup
|
|
@@ -28881,8 +28949,9 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
28881
28949
|
|
|
28882
28950
|
//old logic TODO: Delete in 2024
|
|
28883
28951
|
if (Object.keys(tabGroups).length === 0) for (var _key12 in article.articleOptionStates) {
|
|
28952
|
+
var _ops$val2;
|
|
28884
28953
|
var _ops = article.articleOptionStates[_key12];
|
|
28885
|
-
if (!_ops.isInvisible && (_ops.selectionmode != 0 || (_ops.visibleCount > 1 || _ops.isFreeText) && article.set.api.showSelectionModeZero()) && _ops.
|
|
28954
|
+
if (!_ops.isInvisible && (_ops.selectionmode != 0 || (_ops.visibleCount > 1 || _ops.isFreeText) && article.set.api.showSelectionModeZero()) && !((_ops$val2 = _ops.val) !== null && _ops$val2 !== void 0 && _ops$val2.isNotRelevant) && _ops.isDoShow) {
|
|
28886
28955
|
var tabGroup = _ops.option.addOptionToTabgroupInPartlistSummary;
|
|
28887
28956
|
if (tabGroup) tabGroups.push({
|
|
28888
28957
|
optionCodex: _key12,
|
|
@@ -28911,8 +28980,9 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
28911
28980
|
var opss = [];
|
|
28912
28981
|
if (article.getArticleOptionState('OPT' + optionCodexes[0])) {
|
|
28913
28982
|
for (var i = 0; i < optionCodexes.length; i++) {
|
|
28983
|
+
var _optionState$val3;
|
|
28914
28984
|
var optionState = article.getArticleOptionState('OPT' + optionCodexes[i]);
|
|
28915
|
-
if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && optionState.
|
|
28985
|
+
if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && !((_optionState$val3 = optionState.val) !== null && _optionState$val3 !== void 0 && _optionState$val3.isNotRelevant)) {
|
|
28916
28986
|
opss.push(optionState);
|
|
28917
28987
|
}
|
|
28918
28988
|
}
|
|
@@ -28921,8 +28991,9 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
28921
28991
|
|
|
28922
28992
|
//old logic TODO: Delete in 2024
|
|
28923
28993
|
for (var _key13 in article.articleOptionStates) {
|
|
28994
|
+
var _optionState$val4;
|
|
28924
28995
|
var _optionState = article.articleOptionStates[_key13];
|
|
28925
|
-
if (_optionState.option.addOptionToTabgroupInPartlistSummary == tabGroup && !_optionState.isInvisible && _optionState.isDoShow && _optionState.visibleCount > 0 && _optionState.
|
|
28996
|
+
if (_optionState.option.addOptionToTabgroupInPartlistSummary == tabGroup && !_optionState.isInvisible && _optionState.isDoShow && _optionState.visibleCount > 0 && !((_optionState$val4 = _optionState.val) !== null && _optionState$val4 !== void 0 && _optionState$val4.isNotRelevant)) {
|
|
28926
28997
|
opss.push(_optionState);
|
|
28927
28998
|
}
|
|
28928
28999
|
}
|
|
@@ -29615,7 +29686,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
29615
29686
|
key: "getValidVariants",
|
|
29616
29687
|
value: function () {
|
|
29617
29688
|
var _getValidVariants = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee3(set, useCache) {
|
|
29618
|
-
var allvariants, validVariants, i;
|
|
29689
|
+
var allvariants, validVariants, i, _set$onlyCalcVariants;
|
|
29619
29690
|
return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context4) {
|
|
29620
29691
|
while (1) switch (_context4.prev = _context4.next) {
|
|
29621
29692
|
case 0:
|
|
@@ -29636,7 +29707,9 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
29636
29707
|
validVariants = [];
|
|
29637
29708
|
for (i = 0; i < allvariants.length; i++) {
|
|
29638
29709
|
if (!set.disabledVariants.includes(allvariants[i].id)) {
|
|
29639
|
-
|
|
29710
|
+
if (!((_set$onlyCalcVariants = set.onlyCalcVariants) !== null && _set$onlyCalcVariants !== void 0 && _set$onlyCalcVariants.length) || set.onlyCalcVariants.includes(allvariants[i].id)) {
|
|
29711
|
+
validVariants.push(allvariants[i]);
|
|
29712
|
+
}
|
|
29640
29713
|
}
|
|
29641
29714
|
}
|
|
29642
29715
|
return _context4.abrupt("return", validVariants);
|
|
@@ -30017,9 +30090,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30017
30090
|
}
|
|
30018
30091
|
}, {
|
|
30019
30092
|
key: "addOptionsStateToConfigTree",
|
|
30020
|
-
value: function addOptionsStateToConfigTree(set, configTree, articles,
|
|
30021
|
-
var _set$ViewConfig3;
|
|
30022
|
-
var article = articles[
|
|
30093
|
+
value: function addOptionsStateToConfigTree(set, configTree, articles, b, ops, optionCodex, selectionmode, addToTabGroup) {
|
|
30094
|
+
var _article$partListPare, _set$ViewConfig3;
|
|
30095
|
+
var article = articles[b];
|
|
30096
|
+
var basketId = article.partlistArticleVisibleInTree ? (_article$partListPare = article.partListParentArticle) === null || _article$partListPare === void 0 ? void 0 : _article$partListPare.basketId : article.basketId;
|
|
30023
30097
|
var tabGroupCodex;
|
|
30024
30098
|
var tabGroupTitel;
|
|
30025
30099
|
if (ops.optionTabGroup) tabGroupCodex = ops.optionTabGroup;else tabGroupCodex = ops.optionName;
|
|
@@ -30305,7 +30379,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30305
30379
|
optionStatesOfArticles = set.getOptionStatesOfArticles(set.getDivaArticles(true));
|
|
30306
30380
|
articles = set.getDivaArticles(true);
|
|
30307
30381
|
step = set.configTree.getAllByKey(configStepKey);
|
|
30308
|
-
retValues = this.getConfigItems(configStepKey,
|
|
30382
|
+
retValues = this.getConfigItems(configStepKey, articles, set.configTree);
|
|
30309
30383
|
optionCodex = undefined;
|
|
30310
30384
|
if (!(retValues && step != null)) {
|
|
30311
30385
|
_context.next = 55;
|
|
@@ -30438,7 +30512,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30438
30512
|
}()
|
|
30439
30513
|
}, {
|
|
30440
30514
|
key: "getConfigItems",
|
|
30441
|
-
value: function getConfigItems(key,
|
|
30515
|
+
value: function getConfigItems(key, articles, configTree) {
|
|
30442
30516
|
var step = configTree.getAllByKey(key);
|
|
30443
30517
|
if (step != null) {
|
|
30444
30518
|
var configItems = {},
|
|
@@ -30452,7 +30526,8 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30452
30526
|
notTotallyMatichingOPVs = false,
|
|
30453
30527
|
myOptionState = undefined;
|
|
30454
30528
|
for (var i = 0; i < configStep.targetArticles.length; i++) {
|
|
30455
|
-
var
|
|
30529
|
+
var article = articles[configStep.targetArticles[i]];
|
|
30530
|
+
var myOptions = article.articleOptionStates;
|
|
30456
30531
|
myOptionState = myOptions[configStep.option];
|
|
30457
30532
|
if (myOptionState.option.hasOPG) isOPG = true;
|
|
30458
30533
|
selectedVals = selectedVals.concat(myOptionState.getSelectedVals);
|
|
@@ -30485,6 +30560,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30485
30560
|
if (visibleOptionValuesOfArticles.length > 0) {
|
|
30486
30561
|
configItems = Object.assign({}, visibleOptionValuesOfArticles[0]);
|
|
30487
30562
|
var _loop4 = function _loop4(_i2) {
|
|
30563
|
+
if (articles[configStep.targetArticles[_i2]].articleOptionStates[configStep.option].definedBySetFeatureFixed) return 1; // continue
|
|
30488
30564
|
var keys = Object.keys(configItems);
|
|
30489
30565
|
var newKeys = Object.keys(visibleOptionValuesOfArticles[_i2]);
|
|
30490
30566
|
var opvsOnlyInA = keys.filter(function (x) {
|
|
@@ -30542,7 +30618,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30542
30618
|
}
|
|
30543
30619
|
};
|
|
30544
30620
|
for (var _i2 = 1; _i2 < visibleOptionValuesOfArticles.length; _i2++) {
|
|
30545
|
-
_loop4(_i2);
|
|
30621
|
+
if (_loop4(_i2)) continue;
|
|
30546
30622
|
}
|
|
30547
30623
|
}
|
|
30548
30624
|
return {
|
|
@@ -30643,6 +30719,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30643
30719
|
//if a opv has isFreeText = true and its selected a Textbox sould appear in the OptionValue
|
|
30644
30720
|
//if the text is empty the opv is really selected
|
|
30645
30721
|
contentItemId: item.contentItemId,
|
|
30722
|
+
groupContentItemId: item.groupContentItemId,
|
|
30646
30723
|
idmOpgOptionCodex: idmOpgOptionCodex,
|
|
30647
30724
|
idmOpgValCodex: idmOpgValCodex,
|
|
30648
30725
|
isFreeText: item.isFreeText,
|
|
@@ -30741,6 +30818,34 @@ var DivaProductHandler = /*#__PURE__*/function () {
|
|
|
30741
30818
|
}
|
|
30742
30819
|
return updateProducts;
|
|
30743
30820
|
}()
|
|
30821
|
+
}, {
|
|
30822
|
+
key: "getBestMatch",
|
|
30823
|
+
value: function getBestMatch(articles, products) {
|
|
30824
|
+
var OPTION_CODEX = 'KOPFTEIL';
|
|
30825
|
+
if (!articles) return;
|
|
30826
|
+
for (var key in articles) {
|
|
30827
|
+
var _article$VariantValue;
|
|
30828
|
+
var article = articles[key];
|
|
30829
|
+
var opv = (_article$VariantValue = article.VariantValues['OPT' + OPTION_CODEX]) === null || _article$VariantValue === void 0 ? void 0 : _article$VariantValue.replace('OPV', '');
|
|
30830
|
+
if (!products || !opv) continue;
|
|
30831
|
+
for (var i = 0; i < products.length; i++) {
|
|
30832
|
+
var _products$i$affiliate;
|
|
30833
|
+
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)) {
|
|
30834
|
+
return products[i];
|
|
30835
|
+
}
|
|
30836
|
+
}
|
|
30837
|
+
}
|
|
30838
|
+
return undefined;
|
|
30839
|
+
}
|
|
30840
|
+
}, {
|
|
30841
|
+
key: "findOPVCodexInVariantValues",
|
|
30842
|
+
value: function findOPVCodexInVariantValues(product, opt, opv) {
|
|
30843
|
+
return product.articles.find(function (article) {
|
|
30844
|
+
return article.variantValues.find(function (variant) {
|
|
30845
|
+
return variant.OPT === opt && variant.OPV === opv;
|
|
30846
|
+
});
|
|
30847
|
+
});
|
|
30848
|
+
}
|
|
30744
30849
|
}]);
|
|
30745
30850
|
}();
|
|
30746
30851
|
var productHandlerInstance = new DivaProductHandler();
|
|
@@ -31716,8 +31821,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31716
31821
|
key: "deleteElementFromSet",
|
|
31717
31822
|
value: function () {
|
|
31718
31823
|
var _deleteElementFromSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee14(set, article, autoCorrectAVL_AVR, deletionType, dontReload) {
|
|
31719
|
-
var _deletedArticle$doorP, _set$CatalogData;
|
|
31720
|
-
var setId, deletedArticle, articles, key, newSelectedElement, oldTransform, result, _set$getArticleByBask3, elementDeleted;
|
|
31824
|
+
var setId, allElementsToDelete, success, newSelectedElement, i, _deletedArticle$doorP, _set$CatalogData, deletedArticle, articles, key, oldTransform, result, _set$getArticleByBask3;
|
|
31721
31825
|
return _regeneratorRuntime__default["default"].wrap(function _callee14$(_context16) {
|
|
31722
31826
|
while (1) switch (_context16.prev = _context16.next) {
|
|
31723
31827
|
case 0:
|
|
@@ -31732,35 +31836,44 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31732
31836
|
setId: setId
|
|
31733
31837
|
});
|
|
31734
31838
|
case 3:
|
|
31839
|
+
allElementsToDelete = set.plannerHandler.getPlannerElementsInfluencedByDeletion(setId, article.elementId);
|
|
31840
|
+
success = false;
|
|
31841
|
+
newSelectedElement = undefined;
|
|
31842
|
+
i = 0;
|
|
31843
|
+
case 7:
|
|
31844
|
+
if (!(i < allElementsToDelete.length)) {
|
|
31845
|
+
_context16.next = 35;
|
|
31846
|
+
break;
|
|
31847
|
+
}
|
|
31848
|
+
article = set.getArticleByElementId(allElementsToDelete[i]);
|
|
31735
31849
|
deletedArticle = article; //accessoires löschen
|
|
31736
31850
|
articles = set.getAccessoiresOfBasketId(article.basketId);
|
|
31737
31851
|
_context16.t0 = _regeneratorRuntime__default["default"].keys(articles);
|
|
31738
|
-
case
|
|
31852
|
+
case 12:
|
|
31739
31853
|
if ((_context16.t1 = _context16.t0()).done) {
|
|
31740
|
-
_context16.next =
|
|
31854
|
+
_context16.next = 18;
|
|
31741
31855
|
break;
|
|
31742
31856
|
}
|
|
31743
31857
|
key = _context16.t1.value;
|
|
31744
|
-
_context16.next =
|
|
31858
|
+
_context16.next = 16;
|
|
31745
31859
|
return this.deleteElementFromSet(set, articles[key]);
|
|
31746
|
-
case
|
|
31747
|
-
_context16.next =
|
|
31860
|
+
case 16:
|
|
31861
|
+
_context16.next = 12;
|
|
31748
31862
|
break;
|
|
31749
|
-
case
|
|
31750
|
-
newSelectedElement = undefined;
|
|
31863
|
+
case 18:
|
|
31751
31864
|
oldTransform = undefined;
|
|
31752
31865
|
if (deletedArticle) deletedArticle.deleted = true;
|
|
31753
31866
|
if (!(deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.hasCatalogPlannerArticle)) {
|
|
31754
|
-
_context16.next =
|
|
31867
|
+
_context16.next = 26;
|
|
31755
31868
|
break;
|
|
31756
31869
|
}
|
|
31757
|
-
_context16.next =
|
|
31870
|
+
_context16.next = 23;
|
|
31758
31871
|
return set.plannerHandler.deletePlannerElement(setId, deletedArticle.elementId, autoCorrectAVL_AVR, deletionType);
|
|
31759
|
-
case
|
|
31872
|
+
case 23:
|
|
31760
31873
|
result = _context16.sent;
|
|
31761
31874
|
newSelectedElement = result.newElementToSelect;
|
|
31762
31875
|
oldTransform = result.transform;
|
|
31763
|
-
case
|
|
31876
|
+
case 26:
|
|
31764
31877
|
//falls ein Accessoire gelöscht wurde wird das Accessoire auch wo es beim Parent hinterlegt war auch gelöscht
|
|
31765
31878
|
if (deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.relatedToBasketId) {
|
|
31766
31879
|
(_set$getArticleByBask3 = set.getArticleByBasketId(deletedArticle.relatedToBasketId)) === null || _set$getArticleByBask3 === void 0 || _set$getArticleByBask3.removeAccessoire(deletedArticle.basketId);
|
|
@@ -31768,21 +31881,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31768
31881
|
|
|
31769
31882
|
//doorplanner resetted
|
|
31770
31883
|
deletedArticle === null || deletedArticle === void 0 || (_deletedArticle$doorP = deletedArticle.doorPlanner) === null || _deletedArticle$doorP === void 0 || _deletedArticle$doorP.deleteElement(deletedArticle.basketId);
|
|
31771
|
-
|
|
31884
|
+
success = set.deleteArticle(article.basketId);
|
|
31772
31885
|
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)) {
|
|
31773
|
-
_context16.next =
|
|
31886
|
+
_context16.next = 32;
|
|
31774
31887
|
break;
|
|
31775
31888
|
}
|
|
31776
|
-
_context16.next =
|
|
31889
|
+
_context16.next = 32;
|
|
31777
31890
|
return this.updateArticlesOptionStatesOfActSet(set, {}, []);
|
|
31778
|
-
case
|
|
31891
|
+
case 32:
|
|
31892
|
+
i++;
|
|
31893
|
+
_context16.next = 7;
|
|
31894
|
+
break;
|
|
31895
|
+
case 35:
|
|
31779
31896
|
return _context16.abrupt("return", {
|
|
31780
|
-
success:
|
|
31897
|
+
success: success,
|
|
31781
31898
|
selectElementId: newSelectedElement,
|
|
31782
31899
|
setId: setId,
|
|
31783
31900
|
oldTransform: oldTransform
|
|
31784
31901
|
});
|
|
31785
|
-
case
|
|
31902
|
+
case 36:
|
|
31786
31903
|
case "end":
|
|
31787
31904
|
return _context16.stop();
|
|
31788
31905
|
}
|
|
@@ -32472,11 +32589,28 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32472
32589
|
targetArticles = targetArticles.concat(Object.keys((_articles$activeArtic = articles[activeArticles[0]]) === null || _articles$activeArtic === void 0 ? void 0 : _articles$activeArtic.accessoires));
|
|
32473
32590
|
}
|
|
32474
32591
|
var articleInfos = articleHandlerInstance.getArticleInfos(activeArticles, targetArticles, articles);
|
|
32592
|
+
//within an article and its partlistarticles cant be configured differently, so we group them here
|
|
32593
|
+
var groupedArticles = [];
|
|
32594
|
+
var _loop3 = function _loop3() {
|
|
32595
|
+
var article = articles[targetArticles[i]];
|
|
32596
|
+
var group = groupedArticles.find(function (group) {
|
|
32597
|
+
var _article$partListPare, _article$partListPare2;
|
|
32598
|
+
return group.includes((_article$partListPare = (_article$partListPare2 = article.partListParentArticle) === null || _article$partListPare2 === void 0 ? void 0 : _article$partListPare2.basketId) !== null && _article$partListPare !== void 0 ? _article$partListPare : '');
|
|
32599
|
+
});
|
|
32600
|
+
if (group) {
|
|
32601
|
+
group.push(article.basketId);
|
|
32602
|
+
} else {
|
|
32603
|
+
groupedArticles.push([article.basketId]);
|
|
32604
|
+
}
|
|
32605
|
+
};
|
|
32606
|
+
for (var i = 0; i < targetArticles.length; i++) {
|
|
32607
|
+
_loop3();
|
|
32608
|
+
}
|
|
32475
32609
|
var isConfigSingle = set.configSingle;
|
|
32476
32610
|
var doShowConfigSingle = configStepKey ? set.configTree.doShowConfigSingle(configStepKey) : false;
|
|
32477
32611
|
return {
|
|
32478
32612
|
articleInfos: articleInfos,
|
|
32479
|
-
doShowConfigSingle: doShowConfigSingle &&
|
|
32613
|
+
doShowConfigSingle: doShowConfigSingle && groupedArticles.length > 1,
|
|
32480
32614
|
isConfigSingle: isConfigSingle,
|
|
32481
32615
|
articleName: activeArticles[0] ? (_articles$activeArtic2 = articles[activeArticles[0]]) === null || _articles$activeArtic2 === void 0 || (_articles$activeArtic2 = _articles$activeArtic2.curProduct) === null || _articles$activeArtic2 === void 0 ? void 0 : _articles$activeArtic2.shortDescription : ''
|
|
32482
32616
|
};
|
|
@@ -32565,7 +32699,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32565
32699
|
value: (function () {
|
|
32566
32700
|
var _variantsEvaluator = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee23(set, configItems, configStepKey, paletteType) {
|
|
32567
32701
|
var _set$ViewConfig, _configItems$;
|
|
32568
|
-
var opt, calcVariantsForPricePreview, previewType, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
|
|
32702
|
+
var opt, calcVariantsForPricePreview, previewType, _set$api$ReturnToFrom, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
|
|
32569
32703
|
return _regeneratorRuntime__default["default"].wrap(function _callee23$(_context25) {
|
|
32570
32704
|
while (1) switch (_context25.prev = _context25.next) {
|
|
32571
32705
|
case 0:
|
|
@@ -32579,7 +32713,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32579
32713
|
calcVariantsForPricePreview = false;
|
|
32580
32714
|
previewType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.pricePreview;
|
|
32581
32715
|
if (previewType) {
|
|
32582
|
-
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));
|
|
32716
|
+
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));
|
|
32583
32717
|
}
|
|
32584
32718
|
if (set.PlannerMode === 'BoxPlanner') calcVariantsForPricePreview = false;
|
|
32585
32719
|
if (paletteType == 'GAL' && ((_configItems$ = configItems[0]) === null || _configItems$ === void 0 ? void 0 : _configItems$.groupName) === undefined || paletteType == 'TEXTBOX' || paletteType == 'NUMBERBOX' || paletteType == 'RANGE') {
|
|
@@ -32860,7 +32994,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32860
32994
|
key: "confirmOptionsInMetric",
|
|
32861
32995
|
value: function confirmOptionsInMetric(set, options, actionEvent) {
|
|
32862
32996
|
var variantItems = set.getVariantBasketData();
|
|
32863
|
-
var
|
|
32997
|
+
var _loop4 = function _loop4() {
|
|
32864
32998
|
var opt = options[i].substring(3);
|
|
32865
32999
|
var variantItem = variantItems.find(function (item) {
|
|
32866
33000
|
return item.OPT == opt;
|
|
@@ -32879,7 +33013,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32879
33013
|
}
|
|
32880
33014
|
};
|
|
32881
33015
|
for (var i = 0; i < options.length; i++) {
|
|
32882
|
-
|
|
33016
|
+
_loop4();
|
|
32883
33017
|
}
|
|
32884
33018
|
}
|
|
32885
33019
|
}, {
|
|
@@ -33006,7 +33140,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33006
33140
|
//check first if there are options that require user input
|
|
33007
33141
|
var articles = [];
|
|
33008
33142
|
var options = [];
|
|
33009
|
-
var
|
|
33143
|
+
var _loop5 = function _loop5(key) {
|
|
33010
33144
|
var _articleHandler$check = articleHandlerInstance.checkIfAllOptionsAreDefined(sets[key].getDivaArticles()),
|
|
33011
33145
|
articleNames = _articleHandler$check.articleNames,
|
|
33012
33146
|
newOptions = _articleHandler$check.options;
|
|
@@ -33018,7 +33152,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33018
33152
|
articles = articles.concat(articleNames);
|
|
33019
33153
|
};
|
|
33020
33154
|
for (var key in sets) {
|
|
33021
|
-
|
|
33155
|
+
_loop5(key);
|
|
33022
33156
|
}
|
|
33023
33157
|
if (articles.length == 0) {
|
|
33024
33158
|
return true;
|
|
@@ -33045,7 +33179,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33045
33179
|
var accessoires = [];
|
|
33046
33180
|
var grids = [];
|
|
33047
33181
|
var articles = [];
|
|
33048
|
-
var
|
|
33182
|
+
var _loop6 = function _loop6() {
|
|
33049
33183
|
var _retVal$configStep$ta2;
|
|
33050
33184
|
var article = set.getArticleByBasketId((_retVal$configStep$ta2 = retVal === null || retVal === void 0 ? void 0 : retVal.configStep.targetArticles[i]) !== null && _retVal$configStep$ta2 !== void 0 ? _retVal$configStep$ta2 : '');
|
|
33051
33185
|
if (!article || !article.shelfPlanner) return 1; // continue
|
|
@@ -33054,18 +33188,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33054
33188
|
a = _article$shelfPlanner2.accessoires,
|
|
33055
33189
|
g = _article$shelfPlanner2.grids;
|
|
33056
33190
|
grids = [].concat(_toConsumableArray__default["default"](grids), _toConsumableArray__default["default"](g));
|
|
33057
|
-
var
|
|
33191
|
+
var _loop7 = function _loop7(j) {
|
|
33058
33192
|
if (!accessoires.find(function (acc) {
|
|
33059
33193
|
return acc.articleCodex === a[j].articleCodex;
|
|
33060
33194
|
})) accessoires.push(a[j]);
|
|
33061
33195
|
};
|
|
33062
33196
|
for (var j = 0; j < a.length; j++) {
|
|
33063
|
-
|
|
33197
|
+
_loop7(j);
|
|
33064
33198
|
}
|
|
33065
33199
|
};
|
|
33066
33200
|
for (var i = 0; i < ((_retVal$configStep$ta = retVal === null || retVal === void 0 ? void 0 : retVal.configStep.targetArticles) !== null && _retVal$configStep$ta !== void 0 ? _retVal$configStep$ta : []).length; i++) {
|
|
33067
33201
|
var _retVal$configStep$ta;
|
|
33068
|
-
if (
|
|
33202
|
+
if (_loop6()) continue;
|
|
33069
33203
|
}
|
|
33070
33204
|
configTreeHandler.fillConfigStepKeysInAccessoireItem(articles, set.configTree, accessoires !== null && accessoires !== void 0 ? accessoires : []);
|
|
33071
33205
|
return {
|
|
@@ -33326,7 +33460,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33326
33460
|
}, {
|
|
33327
33461
|
key: "repairOrderSets",
|
|
33328
33462
|
value: function repairOrderSets(basketData, orerSets) {
|
|
33329
|
-
var
|
|
33463
|
+
var _loop8 = function _loop8() {
|
|
33330
33464
|
var actOrderSet = orerSets[i];
|
|
33331
33465
|
var setId = actOrderSet.SetID;
|
|
33332
33466
|
var origOrderSet = basketData.OrderSets.find(function (set) {
|
|
@@ -33364,7 +33498,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33364
33498
|
}
|
|
33365
33499
|
};
|
|
33366
33500
|
for (var i = 0; i < orerSets.length; i++) {
|
|
33367
|
-
|
|
33501
|
+
_loop8();
|
|
33368
33502
|
}
|
|
33369
33503
|
}
|
|
33370
33504
|
/**************************SpeicherRoutinen*************************************/
|
|
@@ -34069,7 +34203,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34069
34203
|
key: "initProductId",
|
|
34070
34204
|
value: function () {
|
|
34071
34205
|
var _initProductId = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(api, productId) {
|
|
34072
|
-
var result;
|
|
34206
|
+
var result, successful;
|
|
34073
34207
|
return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
|
|
34074
34208
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34075
34209
|
case 0:
|
|
@@ -34081,10 +34215,17 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34081
34215
|
_context2.next = 6;
|
|
34082
34216
|
return this.initBasket(api, result.divaNr, {
|
|
34083
34217
|
basket: result.configuration
|
|
34084
|
-
}, false);
|
|
34218
|
+
}, false, productId);
|
|
34085
34219
|
case 6:
|
|
34086
|
-
|
|
34087
|
-
|
|
34220
|
+
successful = _context2.sent;
|
|
34221
|
+
if (!successful) {
|
|
34222
|
+
_context2.next = 9;
|
|
34223
|
+
break;
|
|
34224
|
+
}
|
|
34225
|
+
return _context2.abrupt("return", result);
|
|
34226
|
+
case 9:
|
|
34227
|
+
return _context2.abrupt("return", false);
|
|
34228
|
+
case 10:
|
|
34088
34229
|
case "end":
|
|
34089
34230
|
return _context2.stop();
|
|
34090
34231
|
}
|
|
@@ -34431,7 +34572,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34431
34572
|
case 0:
|
|
34432
34573
|
_context8.prev = 0;
|
|
34433
34574
|
_context8.next = 3;
|
|
34434
|
-
return api.getDataCache(api.
|
|
34575
|
+
return api.getDataCache(api.getProductByKeyValueUrl(key, productId), undefined, undefined, 'catalog', 'POST', {
|
|
34435
34576
|
fields: fields !== null && fields !== void 0 && fields.length ? fields : undefined
|
|
34436
34577
|
});
|
|
34437
34578
|
case 3:
|
|
@@ -34652,26 +34793,39 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34652
34793
|
var _ops$ocd, _ops$valCodex;
|
|
34653
34794
|
var ops = article.articleOptionStates[key];
|
|
34654
34795
|
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'))) {
|
|
34655
|
-
var _ops$
|
|
34656
|
-
|
|
34657
|
-
|
|
34658
|
-
|
|
34659
|
-
|
|
34660
|
-
|
|
34661
|
-
|
|
34796
|
+
var _ops$multiSelects;
|
|
34797
|
+
if (ops.isMultiselect && (_ops$multiSelects = ops.multiSelects) !== null && _ops$multiSelects !== void 0 && _ops$multiSelects.length) {
|
|
34798
|
+
for (var i = 0; i < ops.multiSelects.length; i++) {
|
|
34799
|
+
var _ops$optionOcd;
|
|
34800
|
+
sendToSap.push({
|
|
34801
|
+
ID: sapCount++,
|
|
34802
|
+
SAP_AUSP_ATNAM: ops.option.sendToSAP,
|
|
34803
|
+
SAP_AUSP_ATWRT: ops.multiSelects[i].name,
|
|
34804
|
+
opt: (_ops$optionOcd = ops.optionOcd) !== null && _ops$optionOcd !== void 0 ? _ops$optionOcd : ops.optionCodex
|
|
34805
|
+
});
|
|
34806
|
+
}
|
|
34807
|
+
} else {
|
|
34808
|
+
var _ops$optionOcd2;
|
|
34809
|
+
sendToSap.push({
|
|
34810
|
+
ID: sapCount++,
|
|
34811
|
+
SAP_AUSP_ATNAM: ops.option.sendToSAP,
|
|
34812
|
+
SAP_AUSP_ATWRT: ops.val.name,
|
|
34813
|
+
opt: (_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.optionCodex
|
|
34814
|
+
});
|
|
34815
|
+
}
|
|
34662
34816
|
}
|
|
34663
34817
|
}
|
|
34664
34818
|
var _loop2 = function _loop2() {
|
|
34665
|
-
var _opt$codex, _ops$
|
|
34666
|
-
var _article$parentOption = article.parentOptionCodex(options[
|
|
34819
|
+
var _opt$codex, _ops$optionOcd3, _ops$multiSelects2;
|
|
34820
|
+
var _article$parentOption = article.parentOptionCodex(options[_i2]),
|
|
34667
34821
|
codex = _article$parentOption.optionCodex,
|
|
34668
34822
|
partenOptionCodex = _article$parentOption.partenOptionCodex;
|
|
34669
34823
|
var _article$checkOptionA = article.checkOptionAndOptionValue(codex, '', partenOptionCodex),
|
|
34670
34824
|
opt = _article$checkOptionA.opt;
|
|
34671
34825
|
var ops = article.getArticleOptionState((_opt$codex = opt.codex) !== null && _opt$codex !== void 0 ? _opt$codex : codex);
|
|
34672
34826
|
if (!(ops !== null && ops !== void 0 && ops.val)) return 1; // continue
|
|
34673
|
-
var optionCodex = (ops.option.parentOptionCodex ? ops.option.parentOptionCodex + '.' : '') + ((_ops$
|
|
34674
|
-
changedValues[optionCodex] = ((_ops$
|
|
34827
|
+
var optionCodex = (ops.option.parentOptionCodex ? ops.option.parentOptionCodex + '.' : '') + ((_ops$optionOcd3 = ops.optionOcd) !== null && _ops$optionOcd3 !== void 0 ? _ops$optionOcd3 : ops.option.codex);
|
|
34828
|
+
changedValues[optionCodex] = ((_ops$multiSelects2 = ops.multiSelects) !== null && _ops$multiSelects2 !== void 0 && _ops$multiSelects2.length ? ops.multiselectSorted : [ops.val]).map(function (val) {
|
|
34675
34829
|
var _val$ocd, _ops$freeTextLang3, _ops$freeTextLang4, _ops$option$ocd, _ops$val, _ops$val2;
|
|
34676
34830
|
var attributeValue = (_val$ocd = val.ocd) !== null && _val$ocd !== void 0 ? _val$ocd : val.codex;
|
|
34677
34831
|
if (ops.isFreeText) {
|
|
@@ -34722,7 +34876,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34722
34876
|
};
|
|
34723
34877
|
});
|
|
34724
34878
|
};
|
|
34725
|
-
for (var
|
|
34879
|
+
for (var _i2 = 0; _i2 < options.length; _i2++) {
|
|
34726
34880
|
if (_loop2()) continue;
|
|
34727
34881
|
}
|
|
34728
34882
|
var variantValues = article.VariantValuesParentOption;
|
|
@@ -34751,7 +34905,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34751
34905
|
break;
|
|
34752
34906
|
case 3:
|
|
34753
34907
|
_context12.next = 5;
|
|
34754
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
34908
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-85364fc5.js'); });
|
|
34755
34909
|
case 5:
|
|
34756
34910
|
_yield$import = _context12.sent;
|
|
34757
34911
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -34759,7 +34913,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34759
34913
|
return _context12.abrupt("break", 27);
|
|
34760
34914
|
case 9:
|
|
34761
34915
|
_context12.next = 11;
|
|
34762
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
34916
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-e2865f37.js'); });
|
|
34763
34917
|
case 11:
|
|
34764
34918
|
_yield$import2 = _context12.sent;
|
|
34765
34919
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -34767,7 +34921,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34767
34921
|
return _context12.abrupt("break", 27);
|
|
34768
34922
|
case 15:
|
|
34769
34923
|
_context12.next = 17;
|
|
34770
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
34924
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-10541589.js'); });
|
|
34771
34925
|
case 17:
|
|
34772
34926
|
_yield$import3 = _context12.sent;
|
|
34773
34927
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -34775,7 +34929,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34775
34929
|
return _context12.abrupt("break", 27);
|
|
34776
34930
|
case 21:
|
|
34777
34931
|
_context12.next = 23;
|
|
34778
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
34932
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-2abbb584.js'); });
|
|
34779
34933
|
case 23:
|
|
34780
34934
|
_yield$import4 = _context12.sent;
|
|
34781
34935
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -36165,7 +36319,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36165
36319
|
while (1) switch (_context3.prev = _context3.next) {
|
|
36166
36320
|
case 0:
|
|
36167
36321
|
_context3.next = 2;
|
|
36168
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
36322
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-d90c84fc.js'); });
|
|
36169
36323
|
case 2:
|
|
36170
36324
|
_yield$import = _context3.sent;
|
|
36171
36325
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -37060,14 +37214,12 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
|
|
|
37060
37214
|
_classCallCheck__default["default"](this, DivaMediaServiceHandler);
|
|
37061
37215
|
_defineProperty__default["default"](this, "organizationId", void 0);
|
|
37062
37216
|
_defineProperty__default["default"](this, "mediaServiceUrl", void 0);
|
|
37063
|
-
_defineProperty__default["default"](this, "mediaServiceApiKey", void 0);
|
|
37064
37217
|
_defineProperty__default["default"](this, "jwt", void 0);
|
|
37065
37218
|
_defineProperty__default["default"](this, "POST_saveTmp2PermanentPostfix", '/saveTmp2Permanent');
|
|
37066
37219
|
_defineProperty__default["default"](this, "GET_MediaItemrefs", '/v1/mediaitems/refs?limit=20&skip=0&filter=');
|
|
37067
37220
|
_defineProperty__default["default"](this, "POST_mediaItem", '/v1/mediaitems?ref=true');
|
|
37068
37221
|
this.organizationId = '';
|
|
37069
37222
|
this.mediaServiceUrl = '';
|
|
37070
|
-
this.mediaServiceApiKey = '';
|
|
37071
37223
|
}
|
|
37072
37224
|
return _createClass__default["default"](DivaMediaServiceHandler, [{
|
|
37073
37225
|
key: "setOrganizationId",
|
|
@@ -37079,11 +37231,6 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
|
|
|
37079
37231
|
value: function setMediaServiceUrl(mediaServiceUrl) {
|
|
37080
37232
|
this.mediaServiceUrl = mediaServiceUrl;
|
|
37081
37233
|
}
|
|
37082
|
-
}, {
|
|
37083
|
-
key: "setMediaServiceApiKey",
|
|
37084
|
-
value: function setMediaServiceApiKey(mediaServiceApiKey) {
|
|
37085
|
-
this.mediaServiceApiKey = mediaServiceApiKey;
|
|
37086
|
-
}
|
|
37087
37234
|
}, {
|
|
37088
37235
|
key: "setJwt",
|
|
37089
37236
|
value: function setJwt(jwt) {
|
|
@@ -37140,7 +37287,7 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
|
|
|
37140
37287
|
method: 'POST',
|
|
37141
37288
|
body: data,
|
|
37142
37289
|
headers: {
|
|
37143
|
-
'
|
|
37290
|
+
Authorization: 'Bearer ' + this.jwt
|
|
37144
37291
|
}
|
|
37145
37292
|
});
|
|
37146
37293
|
case 11:
|
|
@@ -37511,7 +37658,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37511
37658
|
key: "initPlanner",
|
|
37512
37659
|
value: (function () {
|
|
37513
37660
|
var _initPlanner = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(initSetState, plannerHandlerFunctions) {
|
|
37514
|
-
var renderGroup, diva3dServerUrl, divaMediaServiceUrl,
|
|
37661
|
+
var renderGroup, diva3dServerUrl, divaMediaServiceUrl, _initSetState$api$web, result;
|
|
37515
37662
|
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
37516
37663
|
while (1) switch (_context.prev = _context.next) {
|
|
37517
37664
|
case 0:
|
|
@@ -37519,8 +37666,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37519
37666
|
renderGroup = initSetState.api.get3DRenderGroup();
|
|
37520
37667
|
this.plannerHandlerFunctions = plannerHandlerFunctions;
|
|
37521
37668
|
diva3dServerUrl = initSetState.api.get3DServerUrl();
|
|
37522
|
-
divaMediaServiceUrl = initSetState.api.getDivaMediaServiceUrl();
|
|
37523
|
-
mediaServiceApiKey = initSetState.api.getDivaMediaServiceApiKey(); //renderGroup = 'LeaTest';
|
|
37669
|
+
divaMediaServiceUrl = initSetState.api.getDivaMediaServiceUrl(); // renderGroup = 'LeaTest';
|
|
37524
37670
|
//diva3dServerUrl = "https://test-einkauf-onboarding.pfister.ch/diva3d/diva3dhost2/";
|
|
37525
37671
|
// diva3dServerUrl = "https://diva3dhost.diva-portal.com/diva3d/diva3dhost2/";
|
|
37526
37672
|
//diva3dServerUrl = 'https://localhost:44315/';
|
|
@@ -37530,7 +37676,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37530
37676
|
//divaMediaServiceUrl = 'https://api-test.diva-portal.com/media/';
|
|
37531
37677
|
//divaMediaServiceUrl = 'http://localhost:3000';
|
|
37532
37678
|
if (!(!initSetState.onlyRunLogic && !initSetState.no3DConnection)) {
|
|
37533
|
-
_context.next =
|
|
37679
|
+
_context.next = 13;
|
|
37534
37680
|
break;
|
|
37535
37681
|
}
|
|
37536
37682
|
this.handler3D.initializeCallbackFunctions({
|
|
@@ -37549,24 +37695,23 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37549
37695
|
arViewerUrl: (_initSetState$api$web = initSetState.api.webConfig) === null || _initSetState$api$web === void 0 ? void 0 : _initSetState$api$web.arViewerUrl
|
|
37550
37696
|
});
|
|
37551
37697
|
if (!(!this.handler3D.checkConnectionInitialized() || result.renderGroupChanged || result.diva3dServerUrlChanged)) {
|
|
37552
|
-
_context.next =
|
|
37698
|
+
_context.next = 12;
|
|
37553
37699
|
break;
|
|
37554
37700
|
}
|
|
37555
|
-
_context.next =
|
|
37701
|
+
_context.next = 12;
|
|
37556
37702
|
return this.handler3D.initializeConnection();
|
|
37557
|
-
case
|
|
37703
|
+
case 12:
|
|
37558
37704
|
if (this.divaNr != initSetState.divaNr) {
|
|
37559
37705
|
this.divaNr = initSetState.divaNr;
|
|
37560
37706
|
this.handler3D.joinDivaNr(this.divaNr);
|
|
37561
37707
|
}
|
|
37562
|
-
case
|
|
37708
|
+
case 13:
|
|
37563
37709
|
mediaServiceHandler.setMediaServiceUrl(divaMediaServiceUrl);
|
|
37564
|
-
mediaServiceHandler.setMediaServiceApiKey(mediaServiceApiKey);
|
|
37565
37710
|
mediaServiceHandler.setOrganizationId(initSetState.organizationId);
|
|
37566
37711
|
mediaServiceHandler.setJwt(initSetState.api.getJwt());
|
|
37567
37712
|
this.handler3D.setOrigConfigurationCallback(this.plannerHandlerFunctions.getOrigConfiguration);
|
|
37568
37713
|
DivaUtils__default["default"].endSpanOfApm('DivaPlannerHandler initPlanner');
|
|
37569
|
-
case
|
|
37714
|
+
case 18:
|
|
37570
37715
|
case "end":
|
|
37571
37716
|
return _context.stop();
|
|
37572
37717
|
}
|
|
@@ -37717,7 +37862,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37717
37862
|
break;
|
|
37718
37863
|
case 8:
|
|
37719
37864
|
_context4.next = 10;
|
|
37720
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
37865
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-2d5e2fcb.js'); });
|
|
37721
37866
|
case 10:
|
|
37722
37867
|
_yield$import = _context4.sent;
|
|
37723
37868
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -37728,7 +37873,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37728
37873
|
return _context4.abrupt("break", 21);
|
|
37729
37874
|
case 15:
|
|
37730
37875
|
_context4.next = 17;
|
|
37731
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
37876
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-407b522a.js'); });
|
|
37732
37877
|
case 17:
|
|
37733
37878
|
_yield$import2 = _context4.sent;
|
|
37734
37879
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -38344,6 +38489,20 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38344
38489
|
return this.plannerList.get(setId).getPlannerElementsInfluencedByCopy(elementId, copyInfo);
|
|
38345
38490
|
}
|
|
38346
38491
|
|
|
38492
|
+
/**
|
|
38493
|
+
* This function gets all Elements that are deleted when deleting one element.
|
|
38494
|
+
* @param setId
|
|
38495
|
+
* @param elementId
|
|
38496
|
+
*/
|
|
38497
|
+
}, {
|
|
38498
|
+
key: "getPlannerElementsInfluencedByDeletion",
|
|
38499
|
+
value: function getPlannerElementsInfluencedByDeletion(setId, elementId) {
|
|
38500
|
+
if (!this.plannerList.has(setId)) {
|
|
38501
|
+
return [];
|
|
38502
|
+
}
|
|
38503
|
+
return this.plannerList.get(setId).getPlannerElementsInfluencedByDeletion(elementId);
|
|
38504
|
+
}
|
|
38505
|
+
|
|
38347
38506
|
/**
|
|
38348
38507
|
* This function is used to copy an element in the planner
|
|
38349
38508
|
* @param setId
|
|
@@ -40405,76 +40564,90 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40405
40564
|
key: "saveToBasketWrapper",
|
|
40406
40565
|
value: function () {
|
|
40407
40566
|
var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee25(event, repairOnly, force) {
|
|
40408
|
-
var _this$
|
|
40409
|
-
_this$actions25$toggl,
|
|
40410
|
-
_this$actions26,
|
|
40567
|
+
var _this$actions26,
|
|
40411
40568
|
_this$actions26$toggl,
|
|
40569
|
+
_this$actions27,
|
|
40570
|
+
_this$actions27$toggl,
|
|
40412
40571
|
_this2 = this,
|
|
40413
|
-
_this$
|
|
40572
|
+
_this$actions31,
|
|
40414
40573
|
_this$i18n14;
|
|
40415
|
-
var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, result, _this$
|
|
40574
|
+
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;
|
|
40416
40575
|
return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
|
|
40417
40576
|
while (1) switch (_context25.prev = _context25.next) {
|
|
40418
40577
|
case 0:
|
|
40419
40578
|
returnTo = this.getReturnTo(event);
|
|
40420
|
-
finalEvent =
|
|
40579
|
+
finalEvent = {
|
|
40580
|
+
event: event,
|
|
40581
|
+
saveBasket: true
|
|
40582
|
+
};
|
|
40421
40583
|
if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
|
|
40422
|
-
_context25.next =
|
|
40584
|
+
_context25.next = 21;
|
|
40423
40585
|
break;
|
|
40424
40586
|
}
|
|
40425
40587
|
product = undefined;
|
|
40426
40588
|
if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
|
|
40427
|
-
_context25.next =
|
|
40589
|
+
_context25.next = 10;
|
|
40428
40590
|
break;
|
|
40429
40591
|
}
|
|
40430
|
-
|
|
40431
|
-
|
|
40432
|
-
|
|
40433
|
-
_context25.sent;
|
|
40592
|
+
url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
|
|
40593
|
+
_context25.next = 8;
|
|
40594
|
+
return this.api.getDataCache(url, url, undefined, 'catalog');
|
|
40434
40595
|
case 8:
|
|
40435
|
-
|
|
40436
|
-
|
|
40596
|
+
_result = _context25.sent;
|
|
40597
|
+
product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
|
|
40437
40598
|
case 10:
|
|
40599
|
+
_context25.next = 12;
|
|
40600
|
+
return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
|
|
40601
|
+
case 12:
|
|
40438
40602
|
finalEvent = _context25.sent;
|
|
40439
40603
|
if (finalEvent) {
|
|
40440
|
-
_context25.next =
|
|
40604
|
+
_context25.next = 17;
|
|
40441
40605
|
break;
|
|
40442
40606
|
}
|
|
40443
40607
|
return _context25.abrupt("return", 'canceled');
|
|
40444
|
-
case 13:
|
|
40445
|
-
returnTo = finalEvent == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
|
|
40446
|
-
case 14:
|
|
40447
|
-
(_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);
|
|
40448
|
-
_context25.next = 17;
|
|
40449
|
-
return this.saveToBasket(finalEvent, repairOnly, force);
|
|
40450
40608
|
case 17:
|
|
40609
|
+
if (!(!finalEvent.saveBasket && finalEvent.event)) {
|
|
40610
|
+
_context25.next = 20;
|
|
40611
|
+
break;
|
|
40612
|
+
}
|
|
40613
|
+
(_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
|
|
40614
|
+
type: finalEvent.event
|
|
40615
|
+
});
|
|
40616
|
+
return _context25.abrupt("return", 'canceled');
|
|
40617
|
+
case 20:
|
|
40618
|
+
returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
|
|
40619
|
+
case 21:
|
|
40620
|
+
(_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);
|
|
40621
|
+
_context25.next = 24;
|
|
40622
|
+
return this.saveToBasket(finalEvent.event, repairOnly, force);
|
|
40623
|
+
case 24:
|
|
40451
40624
|
result = _context25.sent;
|
|
40452
|
-
(_this$
|
|
40625
|
+
(_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);
|
|
40453
40626
|
if (!(result === 'canceled')) {
|
|
40454
|
-
_context25.next =
|
|
40627
|
+
_context25.next = 30;
|
|
40455
40628
|
break;
|
|
40456
40629
|
}
|
|
40457
40630
|
LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
|
|
40458
|
-
(_this$
|
|
40631
|
+
(_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
|
|
40459
40632
|
text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
|
|
40460
40633
|
accept: true
|
|
40461
40634
|
});
|
|
40462
40635
|
return _context25.abrupt("return", result);
|
|
40463
|
-
case
|
|
40636
|
+
case 30:
|
|
40464
40637
|
_context25.t0 = returnTo;
|
|
40465
|
-
_context25.next = _context25.t0 === 'OPEN_PDF' ?
|
|
40638
|
+
_context25.next = _context25.t0 === 'OPEN_PDF' ? 33 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : 36;
|
|
40466
40639
|
break;
|
|
40467
|
-
case
|
|
40640
|
+
case 33:
|
|
40468
40641
|
if (!this.getBasket().PDFDocumentURL) {
|
|
40469
40642
|
LOG$1.error(new DivaUtils.DivaError('PDF url is missing in basket', {
|
|
40470
40643
|
code: 'WC_0010'
|
|
40471
40644
|
}));
|
|
40472
|
-
(_this$
|
|
40645
|
+
(_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
|
|
40473
40646
|
text: ((_this$i18n10 = this.i18n()) === null || _this$i18n10 === void 0 ? void 0 : _this$i18n10.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n11 = this.i18n()) === null || _this$i18n11 === void 0 ? void 0 : _this$i18n11.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
|
|
40474
40647
|
accept: true
|
|
40475
40648
|
});
|
|
40476
40649
|
} else {
|
|
40477
|
-
(_this$
|
|
40650
|
+
(_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
|
|
40478
40651
|
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'),
|
|
40479
40652
|
accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
|
|
40480
40653
|
callback: function callback() {
|
|
@@ -40482,22 +40655,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40482
40655
|
}
|
|
40483
40656
|
});
|
|
40484
40657
|
}
|
|
40485
|
-
return _context25.abrupt("break",
|
|
40486
|
-
case
|
|
40487
|
-
(_this$
|
|
40658
|
+
return _context25.abrupt("break", 36);
|
|
40659
|
+
case 35:
|
|
40660
|
+
(_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
|
|
40488
40661
|
text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
|
|
40489
40662
|
accept: true
|
|
40490
40663
|
});
|
|
40491
|
-
case
|
|
40664
|
+
case 36:
|
|
40492
40665
|
if (!(result == 'noArticleToSave')) {
|
|
40493
|
-
_context25.next =
|
|
40666
|
+
_context25.next = 39;
|
|
40494
40667
|
break;
|
|
40495
40668
|
}
|
|
40496
40669
|
(_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
|
|
40497
40670
|
return _context25.abrupt("return", 'canceled');
|
|
40498
|
-
case
|
|
40671
|
+
case 39:
|
|
40499
40672
|
return _context25.abrupt("return", result);
|
|
40500
|
-
case
|
|
40673
|
+
case 40:
|
|
40501
40674
|
case "end":
|
|
40502
40675
|
return _context25.stop();
|
|
40503
40676
|
}
|
|
@@ -40512,7 +40685,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40512
40685
|
key: "saveToBasket",
|
|
40513
40686
|
value: function () {
|
|
40514
40687
|
var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, force) {
|
|
40515
|
-
var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$
|
|
40688
|
+
var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34;
|
|
40516
40689
|
var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, _event4, product;
|
|
40517
40690
|
return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
|
|
40518
40691
|
while (1) switch (_context26.prev = _context26.next) {
|
|
@@ -40584,8 +40757,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40584
40757
|
_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;
|
|
40585
40758
|
break;
|
|
40586
40759
|
case 30:
|
|
40587
|
-
(_this$
|
|
40588
|
-
(_this$
|
|
40760
|
+
(_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.toggleLoading('buildScene', false, false);
|
|
40761
|
+
(_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
|
|
40589
40762
|
type: 'SELLER',
|
|
40590
40763
|
parameters: {
|
|
40591
40764
|
module: 'PCreator',
|
|
@@ -40597,7 +40770,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40597
40770
|
});
|
|
40598
40771
|
return _context26.abrupt("break", 55);
|
|
40599
40772
|
case 33:
|
|
40600
|
-
(_this$
|
|
40773
|
+
(_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
|
|
40601
40774
|
type: 'SELLER',
|
|
40602
40775
|
parameters: {
|
|
40603
40776
|
module: 'Basket',
|
|
@@ -40651,12 +40824,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40651
40824
|
return _context26.abrupt("break", 55);
|
|
40652
40825
|
case 55:
|
|
40653
40826
|
if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
|
|
40654
|
-
|
|
40827
|
+
actBasket = this.divaBasketHandler.getBasketData(actBasket.DivaNr); //get pdf documenturl from saved basket
|
|
40828
|
+
_context26.next = 59;
|
|
40655
40829
|
return this.addToBasket(actBasket, event);
|
|
40656
|
-
case
|
|
40830
|
+
case 59:
|
|
40657
40831
|
product = _context26.sent;
|
|
40658
40832
|
return _context26.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
|
|
40659
|
-
case
|
|
40833
|
+
case 61:
|
|
40660
40834
|
case "end":
|
|
40661
40835
|
return _context26.stop();
|
|
40662
40836
|
}
|
|
@@ -40711,8 +40885,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40711
40885
|
|
|
40712
40886
|
//if planner is hidden by config but nothing is planned initially
|
|
40713
40887
|
if (plannerType === 'NONE') {
|
|
40714
|
-
var _this$plannerConfig$a7, _this$
|
|
40715
|
-
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$
|
|
40888
|
+
var _this$plannerConfig$a7, _this$actSet10;
|
|
40889
|
+
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)) {
|
|
40716
40890
|
plannerType = 'PLANNER';
|
|
40717
40891
|
}
|
|
40718
40892
|
}
|
|
@@ -40752,38 +40926,38 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40752
40926
|
}, {
|
|
40753
40927
|
key: "getCurCatalogCodex",
|
|
40754
40928
|
value: function getCurCatalogCodex() {
|
|
40755
|
-
var _this$
|
|
40756
|
-
return (_this$
|
|
40929
|
+
var _this$actSet11;
|
|
40930
|
+
return (_this$actSet11 = this.actSet()) === null || _this$actSet11 === void 0 ? void 0 : _this$actSet11.getCatalogCodex();
|
|
40757
40931
|
}
|
|
40758
40932
|
}, {
|
|
40759
40933
|
key: "getCurCatalogName",
|
|
40760
40934
|
value: function getCurCatalogName() {
|
|
40761
|
-
var _this$
|
|
40762
|
-
return (_this$
|
|
40935
|
+
var _this$actSet12;
|
|
40936
|
+
return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getCatalogName();
|
|
40763
40937
|
}
|
|
40764
40938
|
}, {
|
|
40765
40939
|
key: "getCurAccountName",
|
|
40766
40940
|
value: function getCurAccountName() {
|
|
40767
|
-
var _this$
|
|
40768
|
-
return (_this$
|
|
40941
|
+
var _this$actSet13;
|
|
40942
|
+
return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getAccountName();
|
|
40769
40943
|
}
|
|
40770
40944
|
}, {
|
|
40771
40945
|
key: "getCurSupplierGuid",
|
|
40772
40946
|
value: function getCurSupplierGuid() {
|
|
40773
|
-
var _this$
|
|
40774
|
-
return (_this$
|
|
40947
|
+
var _this$actSet14;
|
|
40948
|
+
return (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getSupplierGuid();
|
|
40775
40949
|
}
|
|
40776
40950
|
}, {
|
|
40777
40951
|
key: "getCurSetPrice",
|
|
40778
40952
|
value: function getCurSetPrice() {
|
|
40779
|
-
var _this$actSet$getSetPr, _this$
|
|
40780
|
-
return (_this$actSet$getSetPr = (_this$
|
|
40953
|
+
var _this$actSet$getSetPr, _this$actSet15;
|
|
40954
|
+
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;
|
|
40781
40955
|
}
|
|
40782
40956
|
}, {
|
|
40783
40957
|
key: "getCurImageMode",
|
|
40784
40958
|
value: function getCurImageMode() {
|
|
40785
|
-
var _this$
|
|
40786
|
-
return (_this$
|
|
40959
|
+
var _this$actSet16;
|
|
40960
|
+
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';
|
|
40787
40961
|
}
|
|
40788
40962
|
}, {
|
|
40789
40963
|
key: "getViewConfig",
|
|
@@ -40814,65 +40988,65 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40814
40988
|
}, {
|
|
40815
40989
|
key: "doShow3DDimensionLines",
|
|
40816
40990
|
value: function doShow3DDimensionLines() {
|
|
40817
|
-
var _this$
|
|
40818
|
-
return (_this$
|
|
40991
|
+
var _this$actSet17;
|
|
40992
|
+
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;
|
|
40819
40993
|
}
|
|
40820
40994
|
}, {
|
|
40821
40995
|
key: "hidePlannerUiIcons",
|
|
40822
40996
|
value: function hidePlannerUiIcons() {
|
|
40823
|
-
var _this$
|
|
40824
|
-
return (_this$
|
|
40997
|
+
var _this$actSet18;
|
|
40998
|
+
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;
|
|
40825
40999
|
}
|
|
40826
41000
|
}, {
|
|
40827
41001
|
key: "doShowPlannerReplaceMode",
|
|
40828
41002
|
value: function doShowPlannerReplaceMode() {
|
|
40829
|
-
var _this$
|
|
40830
|
-
var catalogData = (_this$
|
|
41003
|
+
var _this$actSet19, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
|
|
41004
|
+
var catalogData = (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.CatalogData;
|
|
40831
41005
|
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;
|
|
40832
41006
|
}
|
|
40833
41007
|
}, {
|
|
40834
41008
|
key: "doPlannerReplaceAutoSwitch",
|
|
40835
41009
|
value: function doPlannerReplaceAutoSwitch() {
|
|
40836
|
-
var _this$
|
|
40837
|
-
var catalogData = (_this$
|
|
41010
|
+
var _this$actSet20, _this$api$getViewConf3;
|
|
41011
|
+
var catalogData = (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.CatalogData;
|
|
40838
41012
|
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);
|
|
40839
41013
|
}
|
|
40840
41014
|
}, {
|
|
40841
41015
|
key: "getHidePlanner",
|
|
40842
41016
|
value: function getHidePlanner() {
|
|
40843
|
-
var _this$
|
|
40844
|
-
return this.api.getHidePlanner() || !!((_this$
|
|
41017
|
+
var _this$actSet21;
|
|
41018
|
+
return this.api.getHidePlanner() || !!((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.useBoxPlanner);
|
|
40845
41019
|
}
|
|
40846
41020
|
}, {
|
|
40847
41021
|
key: "getAllowRTV",
|
|
40848
41022
|
value: function getAllowRTV() {
|
|
40849
|
-
var _this$
|
|
41023
|
+
var _this$actSet22, _this$actSet23;
|
|
40850
41024
|
if (this.getEnableUnityRtvKombi()) return false;
|
|
40851
41025
|
if (this.api.forceShowRTV()) return true;
|
|
40852
|
-
if ((_this$
|
|
40853
|
-
if (this.api.getDoShowRTV() && (_this$
|
|
41026
|
+
if ((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaForceRTV) return true;
|
|
41027
|
+
if (this.api.getDoShowRTV() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
|
|
40854
41028
|
return false;
|
|
40855
41029
|
}
|
|
40856
41030
|
}, {
|
|
40857
41031
|
key: "geAllowQRCodeAR",
|
|
40858
41032
|
value: function geAllowQRCodeAR() {
|
|
40859
|
-
var _this$
|
|
40860
|
-
if (this.api.getDoShowAR() && (_this$
|
|
41033
|
+
var _this$actSet24;
|
|
41034
|
+
if (this.api.getDoShowAR() && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
|
|
40861
41035
|
return false;
|
|
40862
41036
|
}
|
|
40863
41037
|
}, {
|
|
40864
41038
|
key: "getEnableUnityRtvKombi",
|
|
40865
41039
|
value: function getEnableUnityRtvKombi() {
|
|
40866
|
-
var _this$
|
|
41040
|
+
var _this$actSet25, _this$actSet26;
|
|
40867
41041
|
// if force rtv disable unity kombi - biohort
|
|
40868
|
-
if ((_this$
|
|
40869
|
-
return ((_this$
|
|
41042
|
+
if ((_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaForceRTV) return false;
|
|
41043
|
+
return ((_this$actSet26 = this.actSet()) === null || _this$actSet26 === void 0 ? void 0 : _this$actSet26.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
|
|
40870
41044
|
}
|
|
40871
41045
|
}, {
|
|
40872
41046
|
key: "getShelfPlannerRTV",
|
|
40873
41047
|
value: function getShelfPlannerRTV() {
|
|
40874
|
-
var _this$
|
|
40875
|
-
return (_this$
|
|
41048
|
+
var _this$actSet27;
|
|
41049
|
+
return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData.useShelfPlannerRTV;
|
|
40876
41050
|
}
|
|
40877
41051
|
}, {
|
|
40878
41052
|
key: "getBasketData",
|
|
@@ -40913,8 +41087,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40913
41087
|
}, {
|
|
40914
41088
|
key: "getCatalogData",
|
|
40915
41089
|
value: function getCatalogData() {
|
|
40916
|
-
var _this$
|
|
40917
|
-
return (_this$
|
|
41090
|
+
var _this$actSet28;
|
|
41091
|
+
return (_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData;
|
|
40918
41092
|
}
|
|
40919
41093
|
}, {
|
|
40920
41094
|
key: "ReturnTo",
|
|
@@ -40930,16 +41104,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40930
41104
|
key: "addToBasket",
|
|
40931
41105
|
value: function () {
|
|
40932
41106
|
var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(actBasket) {
|
|
40933
|
-
var _this$
|
|
40934
|
-
_this$actions35,
|
|
41107
|
+
var _this$actions35,
|
|
40935
41108
|
_this$actions36,
|
|
40936
41109
|
_this$actions37,
|
|
40937
41110
|
_this$actions38,
|
|
41111
|
+
_this$actions39,
|
|
40938
41112
|
_this$divaBasketHandl3,
|
|
40939
41113
|
_this3 = this,
|
|
40940
|
-
_this$actions39,
|
|
40941
41114
|
_this$actions40,
|
|
40942
|
-
_this$actions41
|
|
41115
|
+
_this$actions41,
|
|
41116
|
+
_this$actions42,
|
|
41117
|
+
_this$actions43;
|
|
40943
41118
|
var event,
|
|
40944
41119
|
addToBasketLog,
|
|
40945
41120
|
emailConfig,
|
|
@@ -40955,43 +41130,43 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40955
41130
|
event = _args28.length > 1 && _args28[1] !== undefined ? _args28[1] : 'onAddToBasket';
|
|
40956
41131
|
addToBasketLog = true;
|
|
40957
41132
|
_context28.t0 = event;
|
|
40958
|
-
_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 :
|
|
41133
|
+
_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;
|
|
40959
41134
|
break;
|
|
40960
41135
|
case 5:
|
|
40961
41136
|
this.handleSuccessTransaction('onPrintBasket', actBasket);
|
|
40962
|
-
(_this$
|
|
41137
|
+
(_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
|
|
40963
41138
|
type: 'onWebPlanerPrint',
|
|
40964
41139
|
data: actBasket.getAsJson()
|
|
40965
41140
|
});
|
|
40966
|
-
return _context28.abrupt("break",
|
|
41141
|
+
return _context28.abrupt("break", 40);
|
|
40967
41142
|
case 8:
|
|
40968
41143
|
this.handleSuccessTransaction('onSaveBasket', actBasket);
|
|
40969
|
-
(_this$
|
|
41144
|
+
(_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
|
|
40970
41145
|
type: 'onWebPlanerSave',
|
|
40971
41146
|
data: actBasket.getAsJson()
|
|
40972
41147
|
});
|
|
40973
|
-
return _context28.abrupt("break",
|
|
41148
|
+
return _context28.abrupt("break", 40);
|
|
40974
41149
|
case 11:
|
|
40975
41150
|
this.handleSuccessTransaction('onShareBasket', actBasket);
|
|
40976
|
-
(_this$
|
|
41151
|
+
(_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
|
|
40977
41152
|
type: 'onWebPlanerShare',
|
|
40978
41153
|
data: actBasket.getAsJson()
|
|
40979
41154
|
});
|
|
40980
|
-
return _context28.abrupt("break",
|
|
41155
|
+
return _context28.abrupt("break", 40);
|
|
40981
41156
|
case 14:
|
|
40982
41157
|
this.handleSuccessTransaction('onRequestConsulation', actBasket);
|
|
40983
|
-
(_this$
|
|
41158
|
+
(_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
|
|
40984
41159
|
type: 'onRequestConsulation',
|
|
40985
41160
|
data: actBasket.getAsJson()
|
|
40986
41161
|
});
|
|
40987
|
-
return _context28.abrupt("break",
|
|
41162
|
+
return _context28.abrupt("break", 40);
|
|
40988
41163
|
case 17:
|
|
40989
41164
|
this.handleSuccessTransaction('onSave', actBasket);
|
|
40990
|
-
(_this$
|
|
41165
|
+
(_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
|
|
40991
41166
|
type: 'onSave',
|
|
40992
41167
|
data: actBasket.getAsJson()
|
|
40993
41168
|
});
|
|
40994
|
-
return _context28.abrupt("break",
|
|
41169
|
+
return _context28.abrupt("break", 40);
|
|
40995
41170
|
case 20:
|
|
40996
41171
|
emailConfig = (_this$divaBasketHandl3 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl3 !== void 0 ? _this$divaBasketHandl3 : this.getEmailConfig(); //reset the emailConfig
|
|
40997
41172
|
this.divaBasketHandler.emailConfig = undefined;
|
|
@@ -41023,11 +41198,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41023
41198
|
});
|
|
41024
41199
|
this.handleSuccessTransaction('onSendEmail', actBasket);
|
|
41025
41200
|
}
|
|
41026
|
-
(_this$
|
|
41201
|
+
(_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
|
|
41027
41202
|
type: 'onAddToBasket',
|
|
41028
41203
|
data: actBasket.getAsJson()
|
|
41029
41204
|
});
|
|
41030
|
-
return _context28.abrupt("break",
|
|
41205
|
+
return _context28.abrupt("break", 40);
|
|
41031
41206
|
case 25:
|
|
41032
41207
|
this.actSet().CatalogData;
|
|
41033
41208
|
_context28.next = 28;
|
|
@@ -41035,7 +41210,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41035
41210
|
case 28:
|
|
41036
41211
|
products = _context28.sent;
|
|
41037
41212
|
this.handleSuccessTransaction('onSaveProduct', actBasket);
|
|
41038
|
-
(_this$
|
|
41213
|
+
(_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
|
|
41039
41214
|
type: 'onAddToBasket',
|
|
41040
41215
|
data: actBasket.getAsJson()
|
|
41041
41216
|
});
|
|
@@ -41049,14 +41224,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41049
41224
|
addToBasketLog = false;
|
|
41050
41225
|
case 35:
|
|
41051
41226
|
if (addToBasketLog) this.handleSuccessTransaction('onAddToBasket', actBasket);
|
|
41052
|
-
(_this$
|
|
41227
|
+
(_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
|
|
41053
41228
|
type: 'onAddToBasket',
|
|
41054
41229
|
data: actBasket.getAsJson()
|
|
41055
41230
|
});
|
|
41056
|
-
return _context28.abrupt("break",
|
|
41231
|
+
return _context28.abrupt("break", 40);
|
|
41057
41232
|
case 38:
|
|
41233
|
+
(_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
|
|
41234
|
+
type: event,
|
|
41235
|
+
data: actBasket.getAsJson()
|
|
41236
|
+
});
|
|
41237
|
+
return _context28.abrupt("break", 40);
|
|
41238
|
+
case 40:
|
|
41058
41239
|
return _context28.abrupt("return");
|
|
41059
|
-
case
|
|
41240
|
+
case 41:
|
|
41060
41241
|
case "end":
|
|
41061
41242
|
return _context28.stop();
|
|
41062
41243
|
}
|
|
@@ -41081,8 +41262,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41081
41262
|
}, {
|
|
41082
41263
|
key: "openPDFpostAsEvent",
|
|
41083
41264
|
value: function openPDFpostAsEvent(mongoDBId) {
|
|
41084
|
-
var _this$
|
|
41085
|
-
(_this$
|
|
41265
|
+
var _this$actions44, _this$actions45, _this$actions46;
|
|
41266
|
+
(_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.updateBreadcrumbs({
|
|
41086
41267
|
type: 'update',
|
|
41087
41268
|
param: {
|
|
41088
41269
|
groupId: 'SHOWROOM',
|
|
@@ -41096,7 +41277,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41096
41277
|
}
|
|
41097
41278
|
}
|
|
41098
41279
|
});
|
|
41099
|
-
(_this$
|
|
41280
|
+
(_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
|
|
41100
41281
|
type: 'update',
|
|
41101
41282
|
param: {
|
|
41102
41283
|
groupId: 'SHOWROOM',
|
|
@@ -41110,7 +41291,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41110
41291
|
}
|
|
41111
41292
|
}
|
|
41112
41293
|
});
|
|
41113
|
-
(_this$
|
|
41294
|
+
(_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
|
|
41114
41295
|
type: 'REPORT',
|
|
41115
41296
|
parameters: {
|
|
41116
41297
|
id: mongoDBId
|
|
@@ -41330,14 +41511,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41330
41511
|
}, {
|
|
41331
41512
|
key: "subscribeToWebPlannerEvents",
|
|
41332
41513
|
value: function subscribeToWebPlannerEvents() {
|
|
41333
|
-
var _this$
|
|
41334
|
-
(_this$
|
|
41514
|
+
var _this$actions47;
|
|
41515
|
+
(_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
|
|
41335
41516
|
}
|
|
41336
41517
|
}, {
|
|
41337
41518
|
key: "unsubscribeFromWebPlannerEvents",
|
|
41338
41519
|
value: function unsubscribeFromWebPlannerEvents() {
|
|
41339
|
-
var _this$
|
|
41340
|
-
(_this$
|
|
41520
|
+
var _this$actions48;
|
|
41521
|
+
(_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
|
|
41341
41522
|
}
|
|
41342
41523
|
}, {
|
|
41343
41524
|
key: "initApiForLogicOnly",
|
|
@@ -41405,7 +41586,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41405
41586
|
}, {
|
|
41406
41587
|
key: "initBasket",
|
|
41407
41588
|
value: function () {
|
|
41408
|
-
var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(init3D, ignoreFavorites) {
|
|
41589
|
+
var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(init3D, ignoreFavorites, onlyCalcVariants) {
|
|
41409
41590
|
var _initSetState$api$web2;
|
|
41410
41591
|
var initSetState, sets, result, _sets$, set, basket;
|
|
41411
41592
|
return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context31) {
|
|
@@ -41434,28 +41615,28 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41434
41615
|
(_sets$ = sets[0]) === null || _sets$ === void 0 || _sets$.remindPriceForHash(result);
|
|
41435
41616
|
}
|
|
41436
41617
|
case 12:
|
|
41437
|
-
//TODO: GLOBAL STUFF
|
|
41438
41618
|
set = this.actSet();
|
|
41619
|
+
if (set) set.onlyCalcVariants = onlyCalcVariants;
|
|
41439
41620
|
setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
|
|
41440
41621
|
if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
|
|
41441
|
-
_context31.next =
|
|
41622
|
+
_context31.next = 18;
|
|
41442
41623
|
break;
|
|
41443
41624
|
}
|
|
41444
|
-
_context31.next =
|
|
41625
|
+
_context31.next = 18;
|
|
41445
41626
|
return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
|
|
41446
|
-
case
|
|
41447
|
-
_context31.next =
|
|
41627
|
+
case 18:
|
|
41628
|
+
_context31.next = 20;
|
|
41448
41629
|
return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
|
|
41449
|
-
case
|
|
41630
|
+
case 20:
|
|
41450
41631
|
basket = _context31.sent;
|
|
41451
41632
|
return _context31.abrupt("return", basket);
|
|
41452
|
-
case
|
|
41633
|
+
case 22:
|
|
41453
41634
|
case "end":
|
|
41454
41635
|
return _context31.stop();
|
|
41455
41636
|
}
|
|
41456
41637
|
}, _callee31, this);
|
|
41457
41638
|
}));
|
|
41458
|
-
function initBasket(_x78, _x79) {
|
|
41639
|
+
function initBasket(_x78, _x79, _x80) {
|
|
41459
41640
|
return _initBasket.apply(this, arguments);
|
|
41460
41641
|
}
|
|
41461
41642
|
return initBasket;
|
|
@@ -41532,7 +41713,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41532
41713
|
}
|
|
41533
41714
|
}, _callee33, this);
|
|
41534
41715
|
}));
|
|
41535
|
-
function handleFavorites(
|
|
41716
|
+
function handleFavorites(_x81) {
|
|
41536
41717
|
return _handleFavorites.apply(this, arguments);
|
|
41537
41718
|
}
|
|
41538
41719
|
return handleFavorites;
|
|
@@ -41586,7 +41767,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41586
41767
|
}
|
|
41587
41768
|
}, _callee34, this);
|
|
41588
41769
|
}));
|
|
41589
|
-
function initSapOrderLinesFromBasket(
|
|
41770
|
+
function initSapOrderLinesFromBasket(_x82, _x83, _x84) {
|
|
41590
41771
|
return _initSapOrderLinesFromBasket.apply(this, arguments);
|
|
41591
41772
|
}
|
|
41592
41773
|
return initSapOrderLinesFromBasket;
|