@crystaldesign/web-planner-logic 24.13.0-beta.9 → 24.13.0-rc.1

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.
Files changed (100) hide show
  1. package/build/cjs/{DivaBoxPlanner-ed22c1dd.js → DivaBoxPlanner-bcc31277.js} +80 -6
  2. package/build/cjs/{DivaStandardPlanner-924415b0.js → DivaStandardPlanner-8ad93926.js} +14 -3
  3. package/build/cjs/{DoorPlanner-33fde902.js → DoorPlanner-aa051061.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-0a901365.js → Host3DSignalR-6a177ecc.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-cf967a4d.js → LiviqueWWSHandler-18ed722f.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-3ab783ab.js → PfisterWWSHandler-3295548a.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-6b3a6722.js → PlannerHandler2D-2cd90ff1.js} +14 -2
  8. package/build/cjs/{SeriousBasketHandler-88cac4bb.js → SeriousBasketHandler-ac2bf9ba.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-cf726af7.js → ShelfPlanner-52374110.js} +4 -2
  10. package/build/cjs/{StandardWWSHandler-26ce5152.js → StandardWWSHandler-ab2a56e5.js} +1 -1
  11. package/build/cjs/{index-99fd2c34.js → index-44a63783.js} +576 -385
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-acb7342c.js → DivaBoxPlanner-8bf401d7.js} +80 -6
  14. package/build/esm/{DivaStandardPlanner-f4ce0bf9.js → DivaStandardPlanner-3735c08d.js} +14 -3
  15. package/build/esm/{DoorPlanner-c8958dcc.js → DoorPlanner-058cc697.js} +1 -1
  16. package/build/esm/{Host3DSignalR-f4620464.js → Host3DSignalR-0c6f2cb2.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-05983499.js → LiviqueWWSHandler-c2931ea0.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-e824a225.js → PfisterWWSHandler-c00ff2d2.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-a60954a4.js → PlannerHandler2D-c617facc.js} +14 -2
  20. package/build/esm/{SeriousBasketHandler-d0103e1a.js → SeriousBasketHandler-5dafd20f.js} +1 -1
  21. package/build/esm/{ShelfPlanner-65d91874.js → ShelfPlanner-655779a3.js} +4 -2
  22. package/build/esm/{StandardWWSHandler-539b9b15.js → StandardWWSHandler-1a0c3568.js} +1 -1
  23. package/build/esm/{index-c8ee8c9a.js → index-c35146d9.js} +576 -385
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +3 -0
  26. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts +1 -0
  28. package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts +1 -0
  30. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts +1 -0
  32. package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/Basket/BasketEvent.d.ts +1 -1
  34. package/build/types/web-planner-logic/src/interface/Basket/BasketEvent.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/Configuration.d.ts +2 -3
  36. package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +2 -1
  38. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionValueView.d.ts +1 -0
  40. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionValueView.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +4 -0
  42. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.d.ts +1 -0
  44. package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/interface/Planner/IDivaViewPlannerElement.d.ts +1 -0
  46. package/build/types/web-planner-logic/src/interface/Planner/IDivaViewPlannerElement.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/interface/PlannerPaletteViewDataType.d.ts +1 -0
  48. package/build/types/web-planner-logic/src/interface/PlannerPaletteViewDataType.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts +2 -0
  50. package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts.map +1 -1
  51. package/build/types/web-planner-logic/src/interface/test/index.d.ts +0 -1
  52. package/build/types/web-planner-logic/src/interface/test/index.d.ts.map +1 -1
  53. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  54. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts +2 -2
  55. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  56. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts +2 -4
  57. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -1
  58. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  59. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
  60. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -1
  61. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +1 -2
  62. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  63. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +7 -6
  64. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  65. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts +13 -0
  66. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
  67. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts +5 -0
  68. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts.map +1 -1
  69. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts +7 -0
  70. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
  71. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +6 -0
  72. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
  73. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +6 -0
  74. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
  75. package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/DockingPointHandler.d.ts.map +1 -1
  76. package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/PlannerHandler2D.d.ts.map +1 -1
  77. package/build/types/web-planner-logic/src/logic/Planner/Rendering/DivaMediaServiceHandler.d.ts +0 -2
  78. package/build/types/web-planner-logic/src/logic/Planner/Rendering/DivaMediaServiceHandler.d.ts.map +1 -1
  79. package/build/types/web-planner-logic/src/logic/Product/DivaProductHandler.d.ts +5 -0
  80. package/build/types/web-planner-logic/src/logic/Product/DivaProductHandler.d.ts.map +1 -1
  81. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +3 -0
  82. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
  83. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +2 -1
  84. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  85. package/build/types/web-planner-logic/src/logic/Set/FavoritesHandler.d.ts.map +1 -1
  86. package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts +1 -0
  87. package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts.map +1 -1
  88. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +2 -0
  89. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  90. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +2 -0
  91. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
  92. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +2 -0
  93. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
  94. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +2 -0
  95. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
  96. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +2 -0
  97. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
  98. package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts +1 -0
  99. package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts.map +1 -1
  100. package/package.json +2 -2
@@ -411,7 +411,6 @@ var DivaApiHandler = /*#__PURE__*/function () {
411
411
  diva3DRenderingDefault: data.diva3DRenderingDefault != undefined ? data.diva3DRenderingDefault : false,
412
412
  diva3dServerMode: data.diva3dServerMode != undefined ? data.diva3dServerMode : 'SignalR',
413
413
  diva3dRenderGroup: data.diva3dRenderGroup != undefined ? data.diva3dRenderGroup : 'MYCC7',
414
- mediaServiceApiKey: data.divaMediaServiceApiKey,
415
414
  language: lang !== null && lang !== void 0 ? lang : this.getLanguage(),
416
415
  abTestCases: data.abTestCases !== undefined ? data.abTestCases : [],
417
416
  checkForProductsPrice: data.checkForProductsPrice,
@@ -467,17 +466,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
467
466
  var _this$apiConfig$baske, _this$apiConfig9;
468
467
  return (_this$apiConfig$baske = (_this$apiConfig9 = this.apiConfig) === null || _this$apiConfig9 === void 0 ? void 0 : _this$apiConfig9.basketService) !== null && _this$apiConfig$baske !== void 0 ? _this$apiConfig$baske : '';
469
468
  }
470
- }, {
471
- key: "getDivaMediaServiceApiKey",
472
- value: function getDivaMediaServiceApiKey() {
473
- var _this$divaWebConfigDa, _this$divaWebConfigDa2;
474
- return (_this$divaWebConfigDa = (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.mediaServiceApiKey) !== null && _this$divaWebConfigDa !== void 0 ? _this$divaWebConfigDa : '';
475
- }
476
469
  }, {
477
470
  key: "getLoadProductBasketParams",
478
471
  value: function getLoadProductBasketParams() {
479
- var _this$divaWebConfigDa3;
480
- return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.loadProductBasketParams;
472
+ var _this$divaWebConfigDa;
473
+ return (_this$divaWebConfigDa = this.divaWebConfigData) === null || _this$divaWebConfigDa === void 0 ? void 0 : _this$divaWebConfigDa.loadProductBasketParams;
481
474
  }
482
475
  }, {
483
476
  key: "get3DServerUrl",
@@ -488,20 +481,20 @@ var DivaApiHandler = /*#__PURE__*/function () {
488
481
  }, {
489
482
  key: "doCheckForProductsPrice",
490
483
  value: function doCheckForProductsPrice() {
491
- var _this$divaWebConfigDa4;
492
- return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.checkForProductsPrice;
484
+ var _this$divaWebConfigDa2;
485
+ return (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.checkForProductsPrice;
493
486
  }
494
487
  }, {
495
488
  key: "getReportConfigIdentifier",
496
489
  value: function getReportConfigIdentifier() {
497
- var _this$divaWebConfigDa5;
498
- return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.reportConfigIdentifier;
490
+ var _this$divaWebConfigDa3;
491
+ return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.reportConfigIdentifier;
499
492
  }
500
493
  }, {
501
494
  key: "getPrintOptions",
502
495
  value: function getPrintOptions() {
503
- var _this$divaWebConfigDa6;
504
- var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.reportConfig;
496
+ var _this$divaWebConfigDa4;
497
+ var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.reportConfig;
505
498
  return {
506
499
  Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
507
500
  PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
@@ -521,8 +514,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
521
514
  }, {
522
515
  key: "get3DRenderGroup",
523
516
  value: function get3DRenderGroup() {
524
- var _this$divaWebConfigDa7, _this$divaWebConfigDa8;
525
- return (_this$divaWebConfigDa7 = (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dRenderGroup) !== null && _this$divaWebConfigDa7 !== void 0 ? _this$divaWebConfigDa7 : '';
517
+ var _this$divaWebConfigDa5, _this$divaWebConfigDa6;
518
+ return (_this$divaWebConfigDa5 = (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.diva3dRenderGroup) !== null && _this$divaWebConfigDa5 !== void 0 ? _this$divaWebConfigDa5 : '';
526
519
  }
527
520
  }, {
528
521
  key: "getServerId",
@@ -559,86 +552,86 @@ var DivaApiHandler = /*#__PURE__*/function () {
559
552
  }, {
560
553
  key: "getDiva3dStaticBGImage",
561
554
  value: function getDiva3dStaticBGImage() {
562
- var _this$divaWebConfigDa9;
563
- return (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.diva3dStaticBGImage;
555
+ var _this$divaWebConfigDa7;
556
+ return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.diva3dStaticBGImage;
564
557
  }
565
558
  }, {
566
559
  key: "getDiva3dStaticBGImage_DefaultRoomList",
567
560
  value: function getDiva3dStaticBGImage_DefaultRoomList() {
568
- var _this$divaWebConfigDa10, _this$divaWebConfigDa11;
569
- return ((_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3dStaticBGImage_DefaultRoomList;
561
+ var _this$divaWebConfigDa8, _this$divaWebConfigDa9;
562
+ return ((_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.diva3dStaticBGImage_DefaultRoomList;
570
563
  }
571
564
  }, {
572
565
  key: "getDiva3DAllowDefaultCatRoomList",
573
566
  value: function getDiva3DAllowDefaultCatRoomList() {
574
- var _this$divaWebConfigDa12;
575
- return (_this$divaWebConfigDa12 = this.divaWebConfigData) === null || _this$divaWebConfigDa12 === void 0 ? void 0 : _this$divaWebConfigDa12.diva3DAllowDefaultCatRoomList;
567
+ var _this$divaWebConfigDa10;
568
+ return (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3DAllowDefaultCatRoomList;
576
569
  }
577
570
  }, {
578
571
  key: "doAllowSetPlanner",
579
572
  value: function doAllowSetPlanner() {
580
- var _this$divaWebConfigDa13;
581
- return (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.doAllowSetPlanner;
573
+ var _this$divaWebConfigDa11;
574
+ return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.doAllowSetPlanner;
582
575
  }
583
576
  }, {
584
577
  key: "getHidePlanner",
585
578
  value: function getHidePlanner() {
586
- var _this$divaWebConfigDa14;
587
- return !!((_this$divaWebConfigDa14 = this.divaWebConfigData) !== null && _this$divaWebConfigDa14 !== void 0 && (_this$divaWebConfigDa14 = _this$divaWebConfigDa14.viewConfig) !== null && _this$divaWebConfigDa14 !== void 0 && _this$divaWebConfigDa14.hidePlanner);
579
+ var _this$divaWebConfigDa12;
580
+ return !!((_this$divaWebConfigDa12 = this.divaWebConfigData) !== null && _this$divaWebConfigDa12 !== void 0 && (_this$divaWebConfigDa12 = _this$divaWebConfigDa12.viewConfig) !== null && _this$divaWebConfigDa12 !== void 0 && _this$divaWebConfigDa12.hidePlanner);
588
581
  }
589
582
  }, {
590
583
  key: "getDoShowAR",
591
584
  value: function getDoShowAR() {
592
- var _this$divaWebConfigDa15;
593
- return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 || (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.enableAR;
585
+ var _this$divaWebConfigDa13;
586
+ return (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 || (_this$divaWebConfigDa13 = _this$divaWebConfigDa13.viewConfig) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.enableAR;
594
587
  }
595
588
  }, {
596
589
  key: "forceShowRTV",
597
590
  value: function forceShowRTV() {
598
- var _this$divaWebConfigDa16;
599
- return (_this$divaWebConfigDa16 = this.divaWebConfigData) === null || _this$divaWebConfigDa16 === void 0 || (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) === null || _this$divaWebConfigDa16 === void 0 ? void 0 : _this$divaWebConfigDa16.forceRTV;
591
+ var _this$divaWebConfigDa14;
592
+ return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 || (_this$divaWebConfigDa14 = _this$divaWebConfigDa14.viewConfig) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.forceRTV;
600
593
  }
601
594
  }, {
602
595
  key: "getDoShowRTV",
603
596
  value: function getDoShowRTV() {
604
- var _this$divaWebConfigDa17;
605
- return (_this$divaWebConfigDa17 = this.divaWebConfigData) === null || _this$divaWebConfigDa17 === void 0 || (_this$divaWebConfigDa17 = _this$divaWebConfigDa17.viewConfig) === null || _this$divaWebConfigDa17 === void 0 ? void 0 : _this$divaWebConfigDa17.enableRTV;
597
+ var _this$divaWebConfigDa15;
598
+ return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 || (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.enableRTV;
606
599
  }
607
600
  }, {
608
601
  key: "getEnableRTVUnityKombi",
609
602
  value: function getEnableRTVUnityKombi() {
610
- var _this$divaWebConfigDa18;
611
- return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.viewConfig.enableRtvUnityKombi);
603
+ var _this$divaWebConfigDa16;
604
+ return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.viewConfig.enableRtvUnityKombi);
612
605
  }
613
606
  }, {
614
607
  key: "getDoDisablePlanner2D",
615
608
  value: function getDoDisablePlanner2D() {
616
- var _this$divaWebConfigDa19;
617
- return !!((_this$divaWebConfigDa19 = this.divaWebConfigData) !== null && _this$divaWebConfigDa19 !== void 0 && _this$divaWebConfigDa19.doDisablePlanner2D);
609
+ var _this$divaWebConfigDa17;
610
+ return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
618
611
  }
619
612
  }, {
620
613
  key: "getRoomListInProduct",
621
614
  value: function getRoomListInProduct() {
622
- var _this$divaWebConfigDa20;
623
- return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && (_this$divaWebConfigDa20 = _this$divaWebConfigDa20.viewConfig) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.roomListInProduct);
615
+ var _this$divaWebConfigDa18;
616
+ return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
624
617
  }
625
618
  }, {
626
619
  key: "getPlannerType",
627
620
  value: function getPlannerType() {
628
- var _this$divaWebConfigDa21;
629
- return (_this$divaWebConfigDa21 = this.divaWebConfigData) === null || _this$divaWebConfigDa21 === void 0 || (_this$divaWebConfigDa21 = _this$divaWebConfigDa21.viewConfig) === null || _this$divaWebConfigDa21 === void 0 ? void 0 : _this$divaWebConfigDa21.plannerType;
621
+ var _this$divaWebConfigDa19;
622
+ return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 || (_this$divaWebConfigDa19 = _this$divaWebConfigDa19.viewConfig) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.plannerType;
630
623
  }
631
624
  }, {
632
625
  key: "getLoadSupplierColors",
633
626
  value: function getLoadSupplierColors() {
634
- var _this$divaWebConfigDa22;
635
- return !!((_this$divaWebConfigDa22 = this.divaWebConfigData) !== null && _this$divaWebConfigDa22 !== void 0 && _this$divaWebConfigDa22.loadSupplierColors);
627
+ var _this$divaWebConfigDa20;
628
+ return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
636
629
  }
637
630
  }, {
638
631
  key: "showSelectionModeZero",
639
632
  value: function showSelectionModeZero() {
640
- var _this$divaWebConfigDa23;
641
- return !!((_this$divaWebConfigDa23 = this.divaWebConfigData) !== null && _this$divaWebConfigDa23 !== void 0 && _this$divaWebConfigDa23.showSelectionModeZero);
633
+ var _this$divaWebConfigDa21;
634
+ return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
642
635
  }
643
636
  }, {
644
637
  key: "ruleDescSeperator",
@@ -658,8 +651,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
658
651
  }, {
659
652
  key: "getDoCheckVariantData",
660
653
  value: function getDoCheckVariantData() {
661
- var _this$divaWebConfigDa24;
662
- return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.doCheckVariantData;
654
+ var _this$divaWebConfigDa22;
655
+ return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.doCheckVariantData;
663
656
  }
664
657
  }, {
665
658
  key: "setI18n",
@@ -752,50 +745,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
752
745
  }, {
753
746
  key: "getViewConfig",
754
747
  value: function getViewConfig() {
755
- var _this$divaWebConfigDa25;
756
- return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.viewConfig;
748
+ var _this$divaWebConfigDa23;
749
+ return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.viewConfig;
757
750
  }
758
751
  }, {
759
752
  key: "getEmailConfig",
760
753
  value: function getEmailConfig() {
761
- var _this$divaWebConfigDa26;
762
- return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.emailConfig;
754
+ var _this$divaWebConfigDa24;
755
+ return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.emailConfig;
763
756
  }
764
757
  }, {
765
758
  key: "getABTestCases",
766
759
  value: function getABTestCases() {
767
- var _this$divaWebConfigDa27, _this$divaWebConfigDa28;
768
- return (_this$divaWebConfigDa27 = (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.abTestCases) !== null && _this$divaWebConfigDa27 !== void 0 ? _this$divaWebConfigDa27 : [];
760
+ var _this$divaWebConfigDa25, _this$divaWebConfigDa26;
761
+ return (_this$divaWebConfigDa25 = (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.abTestCases) !== null && _this$divaWebConfigDa25 !== void 0 ? _this$divaWebConfigDa25 : [];
769
762
  }
770
763
  }, {
771
764
  key: "getBarrierConfig",
772
765
  value: function getBarrierConfig() {
773
- var _this$divaWebConfigDa29;
774
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.barrierConfig;
766
+ var _this$divaWebConfigDa27;
767
+ return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.barrierConfig;
775
768
  }
776
769
  }, {
777
770
  key: "getTemplateConfig",
778
771
  value: function getTemplateConfig() {
779
- var _this$divaWebConfigDa30;
780
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.templateConfig;
772
+ var _this$divaWebConfigDa28;
773
+ return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.templateConfig;
781
774
  }
782
775
  }, {
783
776
  key: "showDivaNr",
784
777
  value: function showDivaNr() {
785
- var _this$divaWebConfigDa31;
786
- return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.showDivaNr;
778
+ var _this$divaWebConfigDa29;
779
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.showDivaNr;
787
780
  }
788
781
  }, {
789
782
  key: "onErrorHandling",
790
783
  value: function onErrorHandling() {
791
- var _this$divaWebConfigDa32;
792
- return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.onErrorHandling;
784
+ var _this$divaWebConfigDa30;
785
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.onErrorHandling;
793
786
  }
794
787
  }, {
795
788
  key: "diva3DRenderingDefault",
796
789
  value: function diva3DRenderingDefault() {
797
- var _this$divaWebConfigDa33;
798
- return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.diva3DRenderingDefault;
790
+ var _this$divaWebConfigDa31;
791
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.diva3DRenderingDefault;
799
792
  }
800
793
  }, {
801
794
  key: "getJwt",
@@ -810,8 +803,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
810
803
  }, {
811
804
  key: "getUseMask",
812
805
  value: function getUseMask() {
813
- var _this$divaWebConfigDa34;
814
- return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.useMask;
806
+ var _this$divaWebConfigDa32;
807
+ return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.useMask;
815
808
  }
816
809
  }, {
817
810
  key: "apiUrl",
@@ -883,8 +876,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
883
876
  return '/v1/products/' + productId + '/list';
884
877
  }
885
878
  }, {
886
- key: "getProductBasketUrl",
887
- value: function getProductBasketUrl(key, value) {
879
+ key: "getProductByKeyValueUrl",
880
+ value: function getProductByKeyValueUrl(key, value) {
888
881
  return "/v1/products/basket?key=".concat(key, "&value=").concat(value);
889
882
  }
890
883
  }, {
@@ -1331,14 +1324,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1331
1324
  }, {
1332
1325
  key: "dontLoadAdditionalModelInfos",
1333
1326
  get: function get() {
1334
- var _this$divaWebConfigDa35;
1335
- return (_this$divaWebConfigDa35 = this.divaWebConfigData) === null || _this$divaWebConfigDa35 === void 0 ? void 0 : _this$divaWebConfigDa35.dontLoadAdditionalModelInfos;
1327
+ var _this$divaWebConfigDa33;
1328
+ return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadAdditionalModelInfos;
1336
1329
  }
1337
1330
  }, {
1338
1331
  key: "dontLoadCatalogEditorLiteMask",
1339
1332
  get: function get() {
1340
- var _this$divaWebConfigDa36;
1341
- return (_this$divaWebConfigDa36 = this.divaWebConfigData) === null || _this$divaWebConfigDa36 === void 0 ? void 0 : _this$divaWebConfigDa36.dontLoadCatalogEditorLiteMask;
1333
+ var _this$divaWebConfigDa34;
1334
+ return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.dontLoadCatalogEditorLiteMask;
1342
1335
  }
1343
1336
  }, {
1344
1337
  key: "OrganizationId",
@@ -1597,6 +1590,16 @@ var ArticleOptionData = /*#__PURE__*/function () {
1597
1590
  get: function get() {
1598
1591
  return this.opt.catalogOPT.contentItemId;
1599
1592
  }
1593
+ }, {
1594
+ key: "showSearchbar",
1595
+ get: function get() {
1596
+ return this.opt.catalogOPT.showSearchbar;
1597
+ }
1598
+ }, {
1599
+ key: "showFilter",
1600
+ get: function get() {
1601
+ return this.opt.catalogOPT.showFilter;
1602
+ }
1600
1603
  }, {
1601
1604
  key: "pdfUrl",
1602
1605
  get: function get() {
@@ -1754,6 +1757,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1754
1757
  get: function get() {
1755
1758
  return this.opv.codex;
1756
1759
  }
1760
+ }, {
1761
+ key: "isNotRelevant",
1762
+ get: function get() {
1763
+ return this.opv.catalogOPV.isNotRelevant;
1764
+ }
1757
1765
  }, {
1758
1766
  key: "vCodex",
1759
1767
  get: function get() {
@@ -1904,6 +1912,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1904
1912
  get: function get() {
1905
1913
  return this.opv.catalogOPV.contentItemId;
1906
1914
  }
1915
+ }, {
1916
+ key: "groupContentItemId",
1917
+ get: function get() {
1918
+ return this.opv.catalogOPV.groupContentItemId;
1919
+ }
1907
1920
  }, {
1908
1921
  key: "subArticleCodex",
1909
1922
  get: function get() {
@@ -16043,6 +16056,10 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16043
16056
  this.opv.onRule = prop.Value;
16044
16057
  } else if (prop.Codex === 'CONTENT_ITEM') {
16045
16058
  this.opv.contentItemId = prop.Value;
16059
+ } else if (prop.Codex === 'IS_NOT_RELEVANT') {
16060
+ this.opv.isNotRelevant = prop.Value;
16061
+ } else if (prop.Codex === 'GROUP_CONTENT_ITEM') {
16062
+ this.opv.groupContentItemId = prop.Value;
16046
16063
  } else if (prop.Codex === 'SET_BY_RULE') {
16047
16064
  this.opv.setByRule = prop.Value;
16048
16065
  } else {
@@ -16080,6 +16097,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16080
16097
  get: function get() {
16081
16098
  return this.opv.vCodex;
16082
16099
  }
16100
+ }, {
16101
+ key: "isNotRelevant",
16102
+ get: function get() {
16103
+ return this.opv.isNotRelevant;
16104
+ }
16083
16105
  }, {
16084
16106
  key: "name",
16085
16107
  get: function get() {
@@ -16213,6 +16235,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16213
16235
  get: function get() {
16214
16236
  return this.opv.contentItemId;
16215
16237
  }
16238
+ }, {
16239
+ key: "groupContentItemId",
16240
+ get: function get() {
16241
+ return this.opv.groupContentItemId;
16242
+ }
16216
16243
  }, {
16217
16244
  key: "metaData",
16218
16245
  get: function get() {
@@ -16450,6 +16477,8 @@ var CatalogArticleData = /*#__PURE__*/function () {
16450
16477
  this.catalogArticle.maxPlanningCount = Number(prop.Value);
16451
16478
  } else if (_key == 'CONTENT_ITEM') {
16452
16479
  this.catalogArticle.contentItemId = prop.Value;
16480
+ } else if (_key == 'GROUP_CONTENT_ITEM') {
16481
+ this.catalogArticle.groupContentItemId = prop.Value;
16453
16482
  } else if (_key == 'HAS3D') {
16454
16483
  this.catalogArticle.isVisualized = prop.Value;
16455
16484
  } else {
@@ -16500,6 +16529,11 @@ var CatalogArticleData = /*#__PURE__*/function () {
16500
16529
  get: function get() {
16501
16530
  return this.catalogArticle.contentItemId;
16502
16531
  }
16532
+ }, {
16533
+ key: "groupContentItemId",
16534
+ get: function get() {
16535
+ return this.catalogArticle.groupContentItemId;
16536
+ }
16503
16537
  }, {
16504
16538
  key: "articleCodex",
16505
16539
  get: function get() {
@@ -17094,7 +17128,8 @@ var CatalogArticleData = /*#__PURE__*/function () {
17094
17128
  isVisualized: catalogArticle.isVisualized,
17095
17129
  configStepKeys: [],
17096
17130
  metaData: catalogArticle.metaDataView,
17097
- contentItemId: catalogArticle.contentItemId
17131
+ contentItemId: catalogArticle.contentItemId,
17132
+ groupContentItemId: catalogArticle.groupContentItemId
17098
17133
  });
17099
17134
  }
17100
17135
  }
@@ -17830,6 +17865,12 @@ var OptionCatalogData = /*#__PURE__*/function () {
17830
17865
  case 'INFO_URL':
17831
17866
  this.opt.url = prop.Value;
17832
17867
  break;
17868
+ case 'SHOW_SEARCHBAR':
17869
+ this.opt.showSearchbar = prop.Value == '1';
17870
+ break;
17871
+ case 'SHOW_FILTER':
17872
+ this.opt.showFilter = prop.Value == '1';
17873
+ break;
17833
17874
  case 'INFO_PDF':
17834
17875
  this.opt.pdfUrl = prop.Value;
17835
17876
  break;
@@ -18030,6 +18071,16 @@ var OptionCatalogData = /*#__PURE__*/function () {
18030
18071
  get: function get() {
18031
18072
  return this.opt.url;
18032
18073
  }
18074
+ }, {
18075
+ key: "showSearchbar",
18076
+ get: function get() {
18077
+ return this.opt.showSearchbar;
18078
+ }
18079
+ }, {
18080
+ key: "showFilter",
18081
+ get: function get() {
18082
+ return this.opt.showFilter;
18083
+ }
18033
18084
  }, {
18034
18085
  key: "pdfUrl",
18035
18086
  get: function get() {
@@ -18126,7 +18177,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
18126
18177
  brandName: json.Brandname,
18127
18178
  mediaUrl: '',
18128
18179
  // https://retail.diva-portal.de/files/33/9680c4a3-fc60-4541-8738-4859d9b24e9d/";
18129
- imageBaseUrl: '',
18130
18180
  subFolder: json.SubFolder,
18131
18181
  longDescription: json.LongDescription,
18132
18182
  longDescription_locales: json.LongDescription_locales,
@@ -18177,6 +18227,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18177
18227
  // die TypeNr wird im Planer bei der Artikelbeschreibung mit () dazugeschrieben
18178
18228
  startFilterParams: '',
18179
18229
  // ist Breistrichgetrennt und gibt an mit welchen Filter der Planer initialisiert wird. z.B. 2,3,4 = Links- Zwischen und Rehcte Anbauelemente (1= Solo, 2=links,3=Zwischen,4= Rechts,5=Accessoires)
18230
+ startHideArticles: [],
18231
+ // ist ein array mit articlesCodexes welche zu beginn im planner ausgeblendet werden
18180
18232
  useGlobalSVGScale: false,
18181
18233
  // SVG größe wird abhängig von den Artikelmaße gestreckt
18182
18234
  useBoxPlanner: false,
@@ -18201,9 +18253,12 @@ var DivaCatalogData = /*#__PURE__*/function () {
18201
18253
  //DP Logik
18202
18254
  reconfigAfterArticleDocked: false,
18203
18255
  ignoreLayerAVC: false,
18204
- // !! Obsolete - AVC auch docken, wenn auf demselben Layer LEA??
18256
+ //
18205
18257
  ignoreLayerAVOAVU: false,
18206
- // !! Obsolete - AVOAVU auch docken, wenn auf demselben Layer LEA??
18258
+ //
18259
+ ignoreLayerAVNAVS: false,
18260
+ //
18261
+
18207
18262
  dockAccOnAvoOnly: false,
18208
18263
  // ist bei Küssnacht dass Acc nicht an nach unten schauenden Dockingpoints angedockt werden können sondern immer nur oben drauf verplant werden können
18209
18264
  showAccOnDpOnly: false,
@@ -18309,6 +18364,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18309
18364
  DockNone: false
18310
18365
  },
18311
18366
  startFilter: [],
18367
+ startHideArticles: this.startHideArticles,
18312
18368
  showAllItemsInPlanner: this.catalogData.showAllItemsInPlanner,
18313
18369
  plannerConfiguration: this.getPlannerConfig()
18314
18370
  };
@@ -18328,9 +18384,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18328
18384
  key: "getMediaURL",
18329
18385
  value: function getMediaURL(subFolder) {
18330
18386
  var retval = '';
18331
- if (this.catalogData.imageBaseUrl != '') {
18332
- retval = this.catalogData.imageBaseUrl;
18333
- } else if (this.api.getBaseUrl().substring(0, 4) == 'http') {
18387
+ if (this.api.getBaseUrl().substring(0, 4) == 'http') {
18334
18388
  retval = this.api.getBaseUrl() + '/' + this.api.getServerId() + '/';
18335
18389
  }
18336
18390
  if (subFolder != '') retval += subFolder + '/';
@@ -18468,6 +18522,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18468
18522
  _this.catalogData.showTypeNrInPlanner = item.Value == '1';
18469
18523
  } else if (item.Codex == 'STARTFILTERPARAMS') {
18470
18524
  _this.catalogData.startFilterParams = String(item.Value);
18525
+ } else if (item.Codex == 'STARTHIDEARTICLES') {
18526
+ _this.catalogData.startHideArticles = item.Value.split(';');
18471
18527
  } else if (item.Codex == 'USEGLOBALSVGSCALE') {
18472
18528
  _this.catalogData.useGlobalSVGScale = item.Value == '1';
18473
18529
  } else if (item.Codex == 'USEBOXPLANNER') {
@@ -18502,6 +18558,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18502
18558
  _this.catalogData.ignoreLayerAVC = item.Value == '1';
18503
18559
  } else if (item.Codex == 'IGNORELAYERAVOAVU') {
18504
18560
  _this.catalogData.ignoreLayerAVOAVU = item.Value == '1';
18561
+ } else if (item.Codex == 'IGNORELAYERAVNAVS') {
18562
+ _this.catalogData.ignoreLayerAVNAVS = item.Value == '1';
18505
18563
  } else if (item.Codex == 'DOCKACCONAVOONLY') {
18506
18564
  //Accessoires können nur aufwärts verplant werden. (Für Küssnacht)
18507
18565
  _this.catalogData.dockAccOnAvoOnly = item.Value == '1';
@@ -18786,6 +18844,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18786
18844
  groupName: groupTitle,
18787
18845
  metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
18788
18846
  contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
18847
+ groupContentItemId: this.catalogArticles[catPlanArticle.codex].groupContentItemId,
18789
18848
  partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
18790
18849
  };
18791
18850
  this.plannerPaletteViewInfo.catalogPlannerArticles.push(catPlanArtView);
@@ -18844,6 +18903,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18844
18903
  groupName: groupTitle,
18845
18904
  metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
18846
18905
  contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
18906
+ groupContentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
18847
18907
  partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
18848
18908
  };
18849
18909
  //nicht ausmultiplizierte Elemente
@@ -19063,6 +19123,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
19063
19123
  return {
19064
19124
  ignoreLayerAVC: this.catalogData.ignoreLayerAVC,
19065
19125
  ignoreLayerAVOAVU: this.catalogData.ignoreLayerAVOAVU,
19126
+ ignoreLayerAVNAVS: this.catalogData.ignoreLayerAVNAVS,
19066
19127
  showAccOnDpOnly: this.catalogData.showAccOnDpOnly,
19067
19128
  dockAccOnAvoOnly: this.catalogData.dockAccOnAvoOnly,
19068
19129
  hideAccessoriesInPlanner: this.catalogData.accessorieStepAsPlanner,
@@ -19144,6 +19205,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19144
19205
  get: function get() {
19145
19206
  return this.catalogData.startFilterParams;
19146
19207
  }
19208
+ }, {
19209
+ key: "startHideArticles",
19210
+ get: function get() {
19211
+ return this.catalogData.startHideArticles;
19212
+ }
19147
19213
  }, {
19148
19214
  key: "replaceModeActive",
19149
19215
  get: function get() {
@@ -20007,7 +20073,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20007
20073
  }, {
20008
20074
  key: "isDisabled",
20009
20075
  get: function get() {
20010
- return this.articleOptionState.disabled || (this.valCodex == 'OPVNR' || this.valCodex == 'OPVNRR' || this.valCodex == 'OPVNR_0') && this.visibleCount == 1;
20076
+ var _this$val3;
20077
+ return this.articleOptionState.disabled || !!((_this$val3 = this.val) !== null && _this$val3 !== void 0 && _this$val3.isNotRelevant) && this.visibleCount == 1;
20011
20078
  },
20012
20079
  set: function set(isDisabled) {
20013
20080
  this.articleOptionState.disabled = isDisabled;
@@ -20015,7 +20082,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20015
20082
  }, {
20016
20083
  key: "isDoShow",
20017
20084
  get: function get() {
20018
- return this.articleOptionState.doShow && (this.valCodex != 'OPVNR' && this.valCodex != 'OPVNRR' && this.valCodex != 'OPVNR_0' || this.visibleCount > 1);
20085
+ var _this$val4;
20086
+ return this.articleOptionState.doShow && (!((_this$val4 = this.val) !== null && _this$val4 !== void 0 && _this$val4.isNotRelevant) || this.visibleCount > 1);
20019
20087
  },
20020
20088
  set: function set(doShow) {
20021
20089
  this.articleOptionState.doShow = doShow;
@@ -20059,14 +20127,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20059
20127
  }, {
20060
20128
  key: "priceId",
20061
20129
  get: function get() {
20062
- var _this$val$priceId, _this$val3;
20063
- return (_this$val$priceId = (_this$val3 = this.val) === null || _this$val3 === void 0 ? void 0 : _this$val3.priceId) !== null && _this$val$priceId !== void 0 ? _this$val$priceId : '';
20130
+ var _this$val$priceId, _this$val5;
20131
+ return (_this$val$priceId = (_this$val5 = this.val) === null || _this$val5 === void 0 ? void 0 : _this$val5.priceId) !== null && _this$val$priceId !== void 0 ? _this$val$priceId : '';
20064
20132
  }
20065
20133
  }, {
20066
20134
  key: "targetOption",
20067
20135
  get: function get() {
20068
- var _this$val4;
20069
- return (_this$val4 = this.val) === null || _this$val4 === void 0 ? void 0 : _this$val4.targetOption;
20136
+ var _this$val6;
20137
+ return (_this$val6 = this.val) === null || _this$val6 === void 0 ? void 0 : _this$val6.targetOption;
20070
20138
  }
20071
20139
  }, {
20072
20140
  key: "targetPPGPrefixes",
@@ -20083,14 +20151,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20083
20151
  }, {
20084
20152
  key: "quantity",
20085
20153
  get: function get() {
20086
- var _this$val$quantity, _this$val5;
20087
- return (_this$val$quantity = (_this$val5 = this.val) === null || _this$val5 === void 0 ? void 0 : _this$val5.quantity) !== null && _this$val$quantity !== void 0 ? _this$val$quantity : 1;
20154
+ var _this$val$quantity, _this$val7;
20155
+ return (_this$val$quantity = (_this$val7 = this.val) === null || _this$val7 === void 0 ? void 0 : _this$val7.quantity) !== null && _this$val$quantity !== void 0 ? _this$val$quantity : 1;
20088
20156
  }
20089
20157
  }, {
20090
20158
  key: "ocd",
20091
20159
  get: function get() {
20092
- var _this$val6;
20093
- return (_this$val6 = this.val) === null || _this$val6 === void 0 ? void 0 : _this$val6.ocd;
20160
+ var _this$val8;
20161
+ return (_this$val8 = this.val) === null || _this$val8 === void 0 ? void 0 : _this$val8.ocd;
20094
20162
  }
20095
20163
  }, {
20096
20164
  key: "optionOcd",
@@ -20100,8 +20168,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20100
20168
  }, {
20101
20169
  key: "value",
20102
20170
  get: function get() {
20103
- var _this$val7;
20104
- return (_this$val7 = this.val) === null || _this$val7 === void 0 ? void 0 : _this$val7.value;
20171
+ var _this$val9;
20172
+ return (_this$val9 = this.val) === null || _this$val9 === void 0 ? void 0 : _this$val9.value;
20105
20173
  }
20106
20174
  }, {
20107
20175
  key: "vCodex",
@@ -20129,8 +20197,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20129
20197
  get: function get() {
20130
20198
  if (this.articleOptionState.retailArticleNr) return this.articleOptionState.retailArticleNr;
20131
20199
  if (this.articleOptionState.option.articlePlaceholder) {
20132
- var _this$val8;
20133
- return (_this$val8 = this.val) === null || _this$val8 === void 0 ? void 0 : _this$val8.subRetailArticleNr;
20200
+ var _this$val10;
20201
+ return (_this$val10 = this.val) === null || _this$val10 === void 0 ? void 0 : _this$val10.subRetailArticleNr;
20134
20202
  }
20135
20203
  return undefined;
20136
20204
  },
@@ -20153,8 +20221,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20153
20221
  }, {
20154
20222
  key: "visibleInSummary",
20155
20223
  value: function visibleInSummary(aritcle) {
20156
- var _this$val9;
20157
- return !this.isInvisible && (this.selectionmode != 0 || (this.visibleCount > 1 || this.isFreeText) && aritcle.set.api.showSelectionModeZero()) && this.isDoShow && this.valCodex != 'OPVNR' && !this.isHiddenByDefaultValueForOptions(aritcle) && !((_this$val9 = this.val) !== null && _this$val9 !== void 0 && _this$val9.hideInSummary);
20224
+ var _this$val11, _this$val12;
20225
+ return !this.isInvisible && (this.selectionmode != 0 || (this.visibleCount > 1 || this.isFreeText) && aritcle.set.api.showSelectionModeZero()) && this.isDoShow && !((_this$val11 = this.val) !== null && _this$val11 !== void 0 && _this$val11.isNotRelevant) && !this.isHiddenByDefaultValueForOptions(aritcle) && !((_this$val12 = this.val) !== null && _this$val12 !== void 0 && _this$val12.hideInSummary);
20158
20226
  }
20159
20227
  }, {
20160
20228
  key: "isHiddenByDefaultValueForOptions",
@@ -20175,45 +20243,45 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20175
20243
  }, {
20176
20244
  key: "subArticleCodex",
20177
20245
  get: function get() {
20178
- var _this$val10;
20179
- return (_this$val10 = this.val) === null || _this$val10 === void 0 ? void 0 : _this$val10.subArticleCodex;
20246
+ var _this$val13;
20247
+ return (_this$val13 = this.val) === null || _this$val13 === void 0 ? void 0 : _this$val13.subArticleCodex;
20180
20248
  }
20181
20249
  }, {
20182
20250
  key: "subArticleName",
20183
20251
  get: function get() {
20184
- var _this$val11;
20185
- return (_this$val11 = this.val) === null || _this$val11 === void 0 ? void 0 : _this$val11.subArticleName;
20252
+ var _this$val14;
20253
+ return (_this$val14 = this.val) === null || _this$val14 === void 0 ? void 0 : _this$val14.subArticleName;
20186
20254
  }
20187
20255
  }, {
20188
20256
  key: "measureUnit",
20189
20257
  get: function get() {
20190
- var _this$val12;
20191
- return (_this$val12 = this.val) === null || _this$val12 === void 0 ? void 0 : _this$val12.measureUnit;
20258
+ var _this$val15;
20259
+ return (_this$val15 = this.val) === null || _this$val15 === void 0 ? void 0 : _this$val15.measureUnit;
20192
20260
  }
20193
20261
  }, {
20194
20262
  key: "priceUnit",
20195
20263
  get: function get() {
20196
- var _this$val$priceUnit, _this$val13, _this$val14, _this$val$parent;
20197
- var retval = (_this$val$priceUnit = (_this$val13 = this.val) === null || _this$val13 === void 0 ? void 0 : _this$val13.priceUnit) !== null && _this$val$priceUnit !== void 0 ? _this$val$priceUnit : (_this$val14 = this.val) !== null && _this$val14 !== void 0 && _this$val14.isParentOPVG ? (_this$val$parent = this.val.parent) === null || _this$val$parent === void 0 ? void 0 : _this$val$parent.priceUnit : undefined;
20264
+ var _this$val$priceUnit, _this$val16, _this$val17, _this$val$parent;
20265
+ var retval = (_this$val$priceUnit = (_this$val16 = this.val) === null || _this$val16 === void 0 ? void 0 : _this$val16.priceUnit) !== null && _this$val$priceUnit !== void 0 ? _this$val$priceUnit : (_this$val17 = this.val) !== null && _this$val17 !== void 0 && _this$val17.isParentOPVG ? (_this$val$parent = this.val.parent) === null || _this$val$parent === void 0 ? void 0 : _this$val$parent.priceUnit : undefined;
20198
20266
  return retval;
20199
20267
  }
20200
20268
  }, {
20201
20269
  key: "isPercentage",
20202
20270
  get: function get() {
20203
- var _this$val15;
20204
- return (_this$val15 = this.val) === null || _this$val15 === void 0 ? void 0 : _this$val15.isPercentage;
20271
+ var _this$val18;
20272
+ return (_this$val18 = this.val) === null || _this$val18 === void 0 ? void 0 : _this$val18.isPercentage;
20205
20273
  }
20206
20274
  }, {
20207
20275
  key: "replaceMainArtNr",
20208
20276
  get: function get() {
20209
- var _this$val16;
20210
- return (_this$val16 = this.val) === null || _this$val16 === void 0 ? void 0 : _this$val16.subarticleReplaceMainArticleNr;
20277
+ var _this$val19;
20278
+ return (_this$val19 = this.val) === null || _this$val19 === void 0 ? void 0 : _this$val19.subarticleReplaceMainArticleNr;
20211
20279
  }
20212
20280
  }, {
20213
20281
  key: "subArticleTypeNr",
20214
20282
  get: function get() {
20215
- var _this$val17;
20216
- return (_this$val17 = this.val) === null || _this$val17 === void 0 ? void 0 : _this$val17.subArticleTypeNr;
20283
+ var _this$val20;
20284
+ return (_this$val20 = this.val) === null || _this$val20 === void 0 ? void 0 : _this$val20.subArticleTypeNr;
20217
20285
  }
20218
20286
  }, {
20219
20287
  key: "isVisibleFreeText",
@@ -20239,14 +20307,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20239
20307
  }, {
20240
20308
  key: "isOnlyFreeText",
20241
20309
  get: function get() {
20242
- var _this$val18;
20243
- return ((_this$val18 = this.val) === null || _this$val18 === void 0 ? void 0 : _this$val18.isFreeText) && this.visibleCount == 1;
20310
+ var _this$val21;
20311
+ return ((_this$val21 = this.val) === null || _this$val21 === void 0 ? void 0 : _this$val21.isFreeText) && this.visibleCount == 1;
20244
20312
  }
20245
20313
  }, {
20246
20314
  key: "isFreeText",
20247
20315
  get: function get() {
20248
- var _this$val19;
20249
- return (_this$val19 = this.val) === null || _this$val19 === void 0 ? void 0 : _this$val19.isFreeText;
20316
+ var _this$val22;
20317
+ return (_this$val22 = this.val) === null || _this$val22 === void 0 ? void 0 : _this$val22.isFreeText;
20250
20318
  }
20251
20319
  }, {
20252
20320
  key: "freeText",
@@ -20291,8 +20359,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20291
20359
  }, {
20292
20360
  key: "warning",
20293
20361
  get: function get() {
20294
- var _this$val20;
20295
- if ((_this$val20 = this.val) !== null && _this$val20 !== void 0 && _this$val20.isFreeText) {
20362
+ var _this$val23;
20363
+ if ((_this$val23 = this.val) !== null && _this$val23 !== void 0 && _this$val23.isFreeText) {
20296
20364
  if (this.val.measureMaximum && Number(this.freeText) > Number(this.val.measureMaximum) || this.val.measureMinimum && Number(this.freeText) < Number(this.val.measureMinimum)) {
20297
20365
  return 'measureWarning';
20298
20366
  }
@@ -23561,7 +23629,7 @@ var DivaArticle = /*#__PURE__*/function () {
23561
23629
  break;
23562
23630
  }
23563
23631
  _context.next = 4;
23564
- return import('./ShelfPlanner-65d91874.js');
23632
+ return import('./ShelfPlanner-655779a3.js');
23565
23633
  case 4:
23566
23634
  _yield$import = _context.sent;
23567
23635
  ShelfPlanner = _yield$import["default"];
@@ -24751,7 +24819,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24751
24819
  break;
24752
24820
  }
24753
24821
  _context6.next = 15;
24754
- return this.updateCfgValues(actArticle, valuesArray[i], {});
24822
+ return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
24755
24823
  case 15:
24756
24824
  newPartlistArticlesToLoad = _context6.sent;
24757
24825
  _actArticle$checkDefa = actArticle.checkDefaultGlobalOpt(valuesArray[i]), variantValues = _actArticle$checkDefa.variantValues, triggerUpdate = _actArticle$checkDefa.triggerUpdate;
@@ -24765,7 +24833,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24765
24833
  }
24766
24834
  _context6.t0 = partlistArticlesToLoad;
24767
24835
  _context6.next = 24;
24768
- return this.updateCfgValues(actArticle, valuesArray[i], {});
24836
+ return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
24769
24837
  case 24:
24770
24838
  _context6.t1 = _context6.sent;
24771
24839
  partlistArticlesToLoad = _context6.t0.concat.call(_context6.t0, _context6.t1);
@@ -24780,7 +24848,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24780
24848
  case 32:
24781
24849
  _context6.t2 = partlistArticlesToLoad;
24782
24850
  _context6.next = 35;
24783
- return this.updateCfgValues(actArticle, {}, {});
24851
+ return this.updateCfgValues(actArticle, {}, {}, undefined, undefined, from == 'calcVariant');
24784
24852
  case 35:
24785
24853
  _context6.t3 = _context6.sent;
24786
24854
  partlistArticlesToLoad = _context6.t2.concat.call(_context6.t2, _context6.t3);
@@ -24827,10 +24895,10 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24827
24895
  break;
24828
24896
  }
24829
24897
  _context6.next = 59;
24830
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
24898
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24831
24899
  case 59:
24832
24900
  _context6.next = 61;
24833
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
24901
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24834
24902
  case 61:
24835
24903
  _i++;
24836
24904
  _context6.next = 54;
@@ -25100,7 +25168,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25100
25168
  }, {
25101
25169
  key: "updateCfgValues",
25102
25170
  value: (function () {
25103
- var _updateCfgValues = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(article, newConfigValues, alreadyInitializedValues, dontCalcPrice, dontLoadPartlist) {
25171
+ var _updateCfgValues = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(article, newConfigValues, alreadyInitializedValues, dontCalcPrice, dontLoadPartlist, calcVariantPrice) {
25104
25172
  var maxPriceOfGroupCodex, setByFeatureVariantValues, key, partlistArticlesToLoad;
25105
25173
  return _regeneratorRuntime.wrap(function _callee10$(_context10) {
25106
25174
  while (1) switch (_context10.prev = _context10.next) {
@@ -25136,19 +25204,23 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25136
25204
  }
25137
25205
 
25138
25206
  //await -> partlist berechnung und laden
25139
- _context10.next = 8;
25207
+ if (calcVariantPrice) {
25208
+ _context10.next = 9;
25209
+ break;
25210
+ }
25211
+ _context10.next = 9;
25140
25212
  return article.updateShelfPlannerState();
25141
- case 8:
25142
- if (dontCalcPrice) {
25143
- _context10.next = 11;
25213
+ case 9:
25214
+ if (!(!dontCalcPrice && !calcVariantPrice)) {
25215
+ _context10.next = 12;
25144
25216
  break;
25145
25217
  }
25146
- _context10.next = 11;
25218
+ _context10.next = 12;
25147
25219
  return this.updateLastElement(article);
25148
- case 11:
25149
- _context10.next = 13;
25220
+ case 12:
25221
+ _context10.next = 14;
25150
25222
  return this.evalAndLoadPartlistArticles(article, dontLoadPartlist, newConfigValues);
25151
- case 13:
25223
+ case 14:
25152
25224
  partlistArticlesToLoad = _context10.sent;
25153
25225
  // löscht seine eigene partlist article - optimierung schnittmenge nicht löschen und nur neu neu laden
25154
25226
 
@@ -25167,13 +25239,13 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25167
25239
  article.updateOPVImages();
25168
25240
  }
25169
25241
  return _context10.abrupt("return", partlistArticlesToLoad);
25170
- case 17:
25242
+ case 18:
25171
25243
  case "end":
25172
25244
  return _context10.stop();
25173
25245
  }
25174
25246
  }, _callee10, this);
25175
25247
  }));
25176
- function updateCfgValues(_x29, _x30, _x31, _x32, _x33) {
25248
+ function updateCfgValues(_x29, _x30, _x31, _x32, _x33, _x34) {
25177
25249
  return _updateCfgValues.apply(this, arguments);
25178
25250
  }
25179
25251
  return updateCfgValues;
@@ -25229,7 +25301,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25229
25301
  }
25230
25302
  }, _callee11, this);
25231
25303
  }));
25232
- function updateLastElement(_x34) {
25304
+ function updateLastElement(_x35) {
25233
25305
  return _updateLastElement.apply(this, arguments);
25234
25306
  }
25235
25307
  return updateLastElement;
@@ -25271,7 +25343,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25271
25343
  }
25272
25344
  }, _callee12);
25273
25345
  }));
25274
- function updateOption(_x35, _x36, _x37, _x38) {
25346
+ function updateOption(_x36, _x37, _x38, _x39) {
25275
25347
  return _updateOption.apply(this, arguments);
25276
25348
  }
25277
25349
  return updateOption;
@@ -25313,7 +25385,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25313
25385
  }
25314
25386
  }, _callee13, this);
25315
25387
  }));
25316
- function evalAndLoadPartlistArticles(_x39, _x40, _x41) {
25388
+ function evalAndLoadPartlistArticles(_x40, _x41, _x42) {
25317
25389
  return _evalAndLoadPartlistArticles.apply(this, arguments);
25318
25390
  }
25319
25391
  return evalAndLoadPartlistArticles;
@@ -25355,7 +25427,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25355
25427
  }
25356
25428
  }, _callee14, this);
25357
25429
  }));
25358
- function loadPartlistArticles(_x42, _x43, _x44) {
25430
+ function loadPartlistArticles(_x43, _x44, _x45) {
25359
25431
  return _loadPartlistArticles.apply(this, arguments);
25360
25432
  }
25361
25433
  return loadPartlistArticles;
@@ -25388,7 +25460,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25388
25460
  }
25389
25461
  }, _callee15, this);
25390
25462
  }));
25391
- function loadPartlistArticle(_x45, _x46, _x47) {
25463
+ function loadPartlistArticle(_x46, _x47, _x48) {
25392
25464
  return _loadPartlistArticle.apply(this, arguments);
25393
25465
  }
25394
25466
  return loadPartlistArticle;
@@ -25705,7 +25777,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25705
25777
  }
25706
25778
  }, _callee16);
25707
25779
  }));
25708
- function triggerShelfplannerVisibility(_x48, _x49) {
25780
+ function triggerShelfplannerVisibility(_x49, _x50) {
25709
25781
  return _triggerShelfplannerVisibility.apply(this, arguments);
25710
25782
  }
25711
25783
  return triggerShelfplannerVisibility;
@@ -25794,7 +25866,6 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25794
25866
  }
25795
25867
  ret = ret.concat(this.getOptiontreeAccessoiresArr(orderLineInitInfos.setId, article));
25796
25868
  }
25797
- this.checkForRoundingError(ret, Object.values(articles)[0].set);
25798
25869
  return ret;
25799
25870
  }
25800
25871
 
@@ -25809,11 +25880,9 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25809
25880
  var product = set === null || set === void 0 ? void 0 : set.priceForActHash();
25810
25881
  if (product !== null && product !== void 0 && product.percentage && product.percentage > ((_set$CatalogData$disc = set.CatalogData.discountPercentage) !== null && _set$CatalogData$disc !== void 0 ? _set$CatalogData$disc : 0)) {
25811
25882
  var setPrice = set.getSetPrice();
25812
- var olPrice = orderlines.filter(function (ol) {
25813
- return !ol.IsPartlistArticle;
25814
- }).reduce(function (sum, ol) {
25815
- var _ol$VKPrice$CalcPrice, _ol$VKPrice;
25816
- return sum + ((_ol$VKPrice$CalcPrice = (_ol$VKPrice = ol.VKPrice) === null || _ol$VKPrice === void 0 ? void 0 : _ol$VKPrice.CalcPrice) !== null && _ol$VKPrice$CalcPrice !== void 0 ? _ol$VKPrice$CalcPrice : 0);
25883
+ var olPrice = orderlines.reduce(function (sum, ol) {
25884
+ var _ol$VKPrice$Price, _ol$VKPrice;
25885
+ return sum + ((_ol$VKPrice$Price = (_ol$VKPrice = ol.VKPrice) === null || _ol$VKPrice === void 0 ? void 0 : _ol$VKPrice.Price) !== null && _ol$VKPrice$Price !== void 0 ? _ol$VKPrice$Price : 0) * ol.Quantity;
25817
25886
  }, 0);
25818
25887
  if (setPrice !== olPrice) {
25819
25888
  var _orderLine$ConfigPric;
@@ -25822,8 +25891,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25822
25891
  var _ol$VKPrice2;
25823
25892
  return (_ol$VKPrice2 = ol.VKPrice) === null || _ol$VKPrice2 === void 0 ? void 0 : _ol$VKPrice2.Price;
25824
25893
  });
25825
- orderLine.VKPrice.CalcPrice = orderlines[0].VKPrice.CalcPrice + roundingRest;
25826
- orderLine.VKPrice.Price = orderlines[0].VKPrice.Price + roundingRest;
25894
+ orderLine.VKPrice.CalcPrice = orderLine.VKPrice.CalcPrice + roundingRest;
25895
+ orderLine.VKPrice.Price = orderLine.VKPrice.Price + roundingRest;
25827
25896
  if ((_orderLine$ConfigPric = orderLine.ConfigPriceDatas) !== null && _orderLine$ConfigPric !== void 0 && _orderLine$ConfigPric.ConfigPrice) orderLine.ConfigPriceDatas.ConfigPrice = orderLine.ConfigPriceDatas.ConfigPrice + roundingRest;
25828
25897
  if (orderLine.IsPartlistArticle) {
25829
25898
  var _parent$VKPrice;
@@ -26004,7 +26073,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
26004
26073
  }
26005
26074
  }, _callee17, this);
26006
26075
  }));
26007
- function correctPartlistArticlesByGlobalRules(_x50, _x51, _x52, _x53) {
26076
+ function correctPartlistArticlesByGlobalRules(_x51, _x52, _x53, _x54) {
26008
26077
  return _correctPartlistArticlesByGlobalRules.apply(this, arguments);
26009
26078
  }
26010
26079
  return correctPartlistArticlesByGlobalRules;
@@ -26904,6 +26973,7 @@ var DivaSet = /*#__PURE__*/function () {
26904
26973
  _defineProperty(this, "setId", void 0);
26905
26974
  _defineProperty(this, "_isActSet", false);
26906
26975
  _defineProperty(this, "setData", void 0);
26976
+ _defineProperty(this, "_onlyCalcVariants", void 0);
26907
26977
  _defineProperty(this, "divaArticles", void 0);
26908
26978
  //Schlüssel ist basketId
26909
26979
  _defineProperty(this, "configSingleData", void 0);
@@ -28093,7 +28163,7 @@ var DivaSet = /*#__PURE__*/function () {
28093
28163
  break;
28094
28164
  }
28095
28165
  _context4.next = 3;
28096
- return import('./DoorPlanner-c8958dcc.js');
28166
+ return import('./DoorPlanner-058cc697.js');
28097
28167
  case 3:
28098
28168
  _yield$import = _context4.sent;
28099
28169
  DoorPlanner = _yield$import["default"];
@@ -28158,6 +28228,14 @@ var DivaSet = /*#__PURE__*/function () {
28158
28228
  get: function get() {
28159
28229
  return this.setState;
28160
28230
  }
28231
+ }, {
28232
+ key: "onlyCalcVariants",
28233
+ get: function get() {
28234
+ return this._onlyCalcVariants;
28235
+ },
28236
+ set: function set(val) {
28237
+ this._onlyCalcVariants = val;
28238
+ }
28161
28239
 
28162
28240
  /**
28163
28241
  *
@@ -28851,10 +28929,11 @@ var SummaryHandler = /*#__PURE__*/function () {
28851
28929
  value: function geTabGroupFormOptionsForSummary(article) {
28852
28930
  var tabGroups = [];
28853
28931
  for (var basketId in article.partlistArticles) {
28932
+ var _ops$val;
28854
28933
  var partlistArticle = article.partlistArticles[basketId];
28855
28934
  if (!partlistArticle.tabGroup) continue;
28856
28935
  var ops = article.getArticleOptionState('OPT' + partlistArticle.tabGroup);
28857
- if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && ops.valCodex != 'OPVNR' && ops !== null && ops !== void 0 && ops.optionTabGroup) {
28936
+ if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && !((_ops$val = ops.val) !== null && _ops$val !== void 0 && _ops$val.isNotRelevant) && ops !== null && ops !== void 0 && ops.optionTabGroup) {
28858
28937
  tabGroups.push({
28859
28938
  optionCodex: ops.optionCodex,
28860
28939
  tabGroup: ops.optionTabGroup
@@ -28864,8 +28943,9 @@ var SummaryHandler = /*#__PURE__*/function () {
28864
28943
 
28865
28944
  //old logic TODO: Delete in 2024
28866
28945
  if (Object.keys(tabGroups).length === 0) for (var _key12 in article.articleOptionStates) {
28946
+ var _ops$val2;
28867
28947
  var _ops = article.articleOptionStates[_key12];
28868
- if (!_ops.isInvisible && (_ops.selectionmode != 0 || (_ops.visibleCount > 1 || _ops.isFreeText) && article.set.api.showSelectionModeZero()) && _ops.isDoShow && _ops.valCodex != 'OPVNR') {
28948
+ if (!_ops.isInvisible && (_ops.selectionmode != 0 || (_ops.visibleCount > 1 || _ops.isFreeText) && article.set.api.showSelectionModeZero()) && !((_ops$val2 = _ops.val) !== null && _ops$val2 !== void 0 && _ops$val2.isNotRelevant) && _ops.isDoShow) {
28869
28949
  var tabGroup = _ops.option.addOptionToTabgroupInPartlistSummary;
28870
28950
  if (tabGroup) tabGroups.push({
28871
28951
  optionCodex: _key12,
@@ -28894,8 +28974,9 @@ var SummaryHandler = /*#__PURE__*/function () {
28894
28974
  var opss = [];
28895
28975
  if (article.getArticleOptionState('OPT' + optionCodexes[0])) {
28896
28976
  for (var i = 0; i < optionCodexes.length; i++) {
28977
+ var _optionState$val3;
28897
28978
  var optionState = article.getArticleOptionState('OPT' + optionCodexes[i]);
28898
- if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && optionState.valCodex != 'OPVNR') {
28979
+ if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && !((_optionState$val3 = optionState.val) !== null && _optionState$val3 !== void 0 && _optionState$val3.isNotRelevant)) {
28899
28980
  opss.push(optionState);
28900
28981
  }
28901
28982
  }
@@ -28904,8 +28985,9 @@ var SummaryHandler = /*#__PURE__*/function () {
28904
28985
 
28905
28986
  //old logic TODO: Delete in 2024
28906
28987
  for (var _key13 in article.articleOptionStates) {
28988
+ var _optionState$val4;
28907
28989
  var _optionState = article.articleOptionStates[_key13];
28908
- if (_optionState.option.addOptionToTabgroupInPartlistSummary == tabGroup && !_optionState.isInvisible && _optionState.isDoShow && _optionState.visibleCount > 0 && _optionState.valCodex != 'OPVNR') {
28990
+ if (_optionState.option.addOptionToTabgroupInPartlistSummary == tabGroup && !_optionState.isInvisible && _optionState.isDoShow && _optionState.visibleCount > 0 && !((_optionState$val4 = _optionState.val) !== null && _optionState$val4 !== void 0 && _optionState$val4.isNotRelevant)) {
28909
28991
  opss.push(_optionState);
28910
28992
  }
28911
28993
  }
@@ -29598,7 +29680,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29598
29680
  key: "getValidVariants",
29599
29681
  value: function () {
29600
29682
  var _getValidVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(set, useCache) {
29601
- var allvariants, validVariants, i;
29683
+ var allvariants, validVariants, i, _set$onlyCalcVariants;
29602
29684
  return _regeneratorRuntime.wrap(function _callee3$(_context4) {
29603
29685
  while (1) switch (_context4.prev = _context4.next) {
29604
29686
  case 0:
@@ -29619,7 +29701,9 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29619
29701
  validVariants = [];
29620
29702
  for (i = 0; i < allvariants.length; i++) {
29621
29703
  if (!set.disabledVariants.includes(allvariants[i].id)) {
29622
- validVariants.push(allvariants[i]);
29704
+ if (!((_set$onlyCalcVariants = set.onlyCalcVariants) !== null && _set$onlyCalcVariants !== void 0 && _set$onlyCalcVariants.length) || set.onlyCalcVariants.includes(allvariants[i].id)) {
29705
+ validVariants.push(allvariants[i]);
29706
+ }
29623
29707
  }
29624
29708
  }
29625
29709
  return _context4.abrupt("return", validVariants);
@@ -30000,9 +30084,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30000
30084
  }
30001
30085
  }, {
30002
30086
  key: "addOptionsStateToConfigTree",
30003
- value: function addOptionsStateToConfigTree(set, configTree, articles, basketId, ops, optionCodex, selectionmode, addToTabGroup) {
30004
- var _set$ViewConfig3;
30005
- var article = articles[basketId];
30087
+ value: function addOptionsStateToConfigTree(set, configTree, articles, b, ops, optionCodex, selectionmode, addToTabGroup) {
30088
+ var _article$partListPare, _set$ViewConfig3;
30089
+ var article = articles[b];
30090
+ var basketId = article.partlistArticleVisibleInTree ? (_article$partListPare = article.partListParentArticle) === null || _article$partListPare === void 0 ? void 0 : _article$partListPare.basketId : article.basketId;
30006
30091
  var tabGroupCodex;
30007
30092
  var tabGroupTitel;
30008
30093
  if (ops.optionTabGroup) tabGroupCodex = ops.optionTabGroup;else tabGroupCodex = ops.optionName;
@@ -30288,7 +30373,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30288
30373
  optionStatesOfArticles = set.getOptionStatesOfArticles(set.getDivaArticles(true));
30289
30374
  articles = set.getDivaArticles(true);
30290
30375
  step = set.configTree.getAllByKey(configStepKey);
30291
- retValues = this.getConfigItems(configStepKey, optionStatesOfArticles, set.configTree);
30376
+ retValues = this.getConfigItems(configStepKey, articles, set.configTree);
30292
30377
  optionCodex = undefined;
30293
30378
  if (!(retValues && step != null)) {
30294
30379
  _context.next = 55;
@@ -30368,7 +30453,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30368
30453
  case 39:
30369
30454
  seomethingChanged = true;
30370
30455
  _context.next = 42;
30371
- return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true);
30456
+ return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true);
30372
30457
  case 42:
30373
30458
  _retVal2 = this.prepareConfigItemsForView(set, optionState, targetArticle.getArticleOptionState(ops.optionCodex).visibleOptionValues, retValues.constructionRules, [], step.configStep.targetArticles, (_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.optionCodex, opg.visibleOptionValues[_key].name, opg.visibleOptionValues[_key].codex, opg.optionCodex);
30374
30459
  configItems = configItems.concat(_retVal2.myConfigItemsForView);
@@ -30421,7 +30506,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30421
30506
  }()
30422
30507
  }, {
30423
30508
  key: "getConfigItems",
30424
- value: function getConfigItems(key, optionStatesOfArticles, configTree) {
30509
+ value: function getConfigItems(key, articles, configTree) {
30425
30510
  var step = configTree.getAllByKey(key);
30426
30511
  if (step != null) {
30427
30512
  var configItems = {},
@@ -30435,7 +30520,8 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30435
30520
  notTotallyMatichingOPVs = false,
30436
30521
  myOptionState = undefined;
30437
30522
  for (var i = 0; i < configStep.targetArticles.length; i++) {
30438
- var myOptions = optionStatesOfArticles[configStep.targetArticles[i]];
30523
+ var article = articles[configStep.targetArticles[i]];
30524
+ var myOptions = article.articleOptionStates;
30439
30525
  myOptionState = myOptions[configStep.option];
30440
30526
  if (myOptionState.option.hasOPG) isOPG = true;
30441
30527
  selectedVals = selectedVals.concat(myOptionState.getSelectedVals);
@@ -30468,6 +30554,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30468
30554
  if (visibleOptionValuesOfArticles.length > 0) {
30469
30555
  configItems = Object.assign({}, visibleOptionValuesOfArticles[0]);
30470
30556
  var _loop4 = function _loop4(_i2) {
30557
+ if (articles[configStep.targetArticles[_i2]].articleOptionStates[configStep.option].definedBySetFeatureFixed) return 1; // continue
30471
30558
  var keys = Object.keys(configItems);
30472
30559
  var newKeys = Object.keys(visibleOptionValuesOfArticles[_i2]);
30473
30560
  var opvsOnlyInA = keys.filter(function (x) {
@@ -30525,7 +30612,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30525
30612
  }
30526
30613
  };
30527
30614
  for (var _i2 = 1; _i2 < visibleOptionValuesOfArticles.length; _i2++) {
30528
- _loop4(_i2);
30615
+ if (_loop4(_i2)) continue;
30529
30616
  }
30530
30617
  }
30531
30618
  return {
@@ -30626,6 +30713,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30626
30713
  //if a opv has isFreeText = true and its selected a Textbox sould appear in the OptionValue
30627
30714
  //if the text is empty the opv is really selected
30628
30715
  contentItemId: item.contentItemId,
30716
+ groupContentItemId: item.groupContentItemId,
30629
30717
  idmOpgOptionCodex: idmOpgOptionCodex,
30630
30718
  idmOpgValCodex: idmOpgValCodex,
30631
30719
  isFreeText: item.isFreeText,
@@ -30724,6 +30812,34 @@ var DivaProductHandler = /*#__PURE__*/function () {
30724
30812
  }
30725
30813
  return updateProducts;
30726
30814
  }()
30815
+ }, {
30816
+ key: "getBestMatch",
30817
+ value: function getBestMatch(articles, products) {
30818
+ var OPTION_CODEX = 'KOPFTEIL';
30819
+ if (!articles) return;
30820
+ for (var key in articles) {
30821
+ var _article$VariantValue;
30822
+ var article = articles[key];
30823
+ var opv = (_article$VariantValue = article.VariantValues['OPT' + OPTION_CODEX]) === null || _article$VariantValue === void 0 ? void 0 : _article$VariantValue.replace('OPV', '');
30824
+ if (!products || !opv) continue;
30825
+ for (var i = 0; i < products.length; i++) {
30826
+ var _products$i$affiliate;
30827
+ 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)) {
30828
+ return products[i];
30829
+ }
30830
+ }
30831
+ }
30832
+ return undefined;
30833
+ }
30834
+ }, {
30835
+ key: "findOPVCodexInVariantValues",
30836
+ value: function findOPVCodexInVariantValues(product, opt, opv) {
30837
+ return product.articles.find(function (article) {
30838
+ return article.variantValues.find(function (variant) {
30839
+ return variant.OPT === opt && variant.OPV === opv;
30840
+ });
30841
+ });
30842
+ }
30727
30843
  }]);
30728
30844
  }();
30729
30845
  var productHandlerInstance = new DivaProductHandler();
@@ -31699,8 +31815,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
31699
31815
  key: "deleteElementFromSet",
31700
31816
  value: function () {
31701
31817
  var _deleteElementFromSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(set, article, autoCorrectAVL_AVR, deletionType, dontReload) {
31702
- var _deletedArticle$doorP, _set$CatalogData;
31703
- var setId, deletedArticle, articles, key, newSelectedElement, oldTransform, result, _set$getArticleByBask3, elementDeleted;
31818
+ var setId, allElementsToDelete, success, newSelectedElement, i, _deletedArticle$doorP, _set$CatalogData, deletedArticle, articles, key, oldTransform, result, _set$getArticleByBask3;
31704
31819
  return _regeneratorRuntime.wrap(function _callee14$(_context16) {
31705
31820
  while (1) switch (_context16.prev = _context16.next) {
31706
31821
  case 0:
@@ -31715,35 +31830,44 @@ var DivaSetHandler = /*#__PURE__*/function () {
31715
31830
  setId: setId
31716
31831
  });
31717
31832
  case 3:
31833
+ allElementsToDelete = set.plannerHandler.getPlannerElementsInfluencedByDeletion(setId, article.elementId);
31834
+ success = false;
31835
+ newSelectedElement = undefined;
31836
+ i = 0;
31837
+ case 7:
31838
+ if (!(i < allElementsToDelete.length)) {
31839
+ _context16.next = 35;
31840
+ break;
31841
+ }
31842
+ article = set.getArticleByElementId(allElementsToDelete[i]);
31718
31843
  deletedArticle = article; //accessoires löschen
31719
31844
  articles = set.getAccessoiresOfBasketId(article.basketId);
31720
31845
  _context16.t0 = _regeneratorRuntime.keys(articles);
31721
- case 6:
31846
+ case 12:
31722
31847
  if ((_context16.t1 = _context16.t0()).done) {
31723
- _context16.next = 12;
31848
+ _context16.next = 18;
31724
31849
  break;
31725
31850
  }
31726
31851
  key = _context16.t1.value;
31727
- _context16.next = 10;
31852
+ _context16.next = 16;
31728
31853
  return this.deleteElementFromSet(set, articles[key]);
31729
- case 10:
31730
- _context16.next = 6;
31854
+ case 16:
31855
+ _context16.next = 12;
31731
31856
  break;
31732
- case 12:
31733
- newSelectedElement = undefined;
31857
+ case 18:
31734
31858
  oldTransform = undefined;
31735
31859
  if (deletedArticle) deletedArticle.deleted = true;
31736
31860
  if (!(deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.hasCatalogPlannerArticle)) {
31737
- _context16.next = 21;
31861
+ _context16.next = 26;
31738
31862
  break;
31739
31863
  }
31740
- _context16.next = 18;
31864
+ _context16.next = 23;
31741
31865
  return set.plannerHandler.deletePlannerElement(setId, deletedArticle.elementId, autoCorrectAVL_AVR, deletionType);
31742
- case 18:
31866
+ case 23:
31743
31867
  result = _context16.sent;
31744
31868
  newSelectedElement = result.newElementToSelect;
31745
31869
  oldTransform = result.transform;
31746
- case 21:
31870
+ case 26:
31747
31871
  //falls ein Accessoire gelöscht wurde wird das Accessoire auch wo es beim Parent hinterlegt war auch gelöscht
31748
31872
  if (deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.relatedToBasketId) {
31749
31873
  (_set$getArticleByBask3 = set.getArticleByBasketId(deletedArticle.relatedToBasketId)) === null || _set$getArticleByBask3 === void 0 || _set$getArticleByBask3.removeAccessoire(deletedArticle.basketId);
@@ -31751,21 +31875,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
31751
31875
 
31752
31876
  //doorplanner resetted
31753
31877
  deletedArticle === null || deletedArticle === void 0 || (_deletedArticle$doorP = deletedArticle.doorPlanner) === null || _deletedArticle$doorP === void 0 || _deletedArticle$doorP.deleteElement(deletedArticle.basketId);
31754
- elementDeleted = set.deleteArticle(article.basketId);
31878
+ success = set.deleteArticle(article.basketId);
31755
31879
  if (!((set.CatalogData.bundleRules || set.CatalogData.reconfigAfterArticleDocked || set !== null && set !== void 0 && (_set$CatalogData = set.CatalogData) !== null && _set$CatalogData !== void 0 && _set$CatalogData.getOption('OPTLASTSTACKEDARTICLE')) && !dontReload)) {
31756
- _context16.next = 27;
31880
+ _context16.next = 32;
31757
31881
  break;
31758
31882
  }
31759
- _context16.next = 27;
31883
+ _context16.next = 32;
31760
31884
  return this.updateArticlesOptionStatesOfActSet(set, {}, []);
31761
- case 27:
31885
+ case 32:
31886
+ i++;
31887
+ _context16.next = 7;
31888
+ break;
31889
+ case 35:
31762
31890
  return _context16.abrupt("return", {
31763
- success: elementDeleted,
31891
+ success: success,
31764
31892
  selectElementId: newSelectedElement,
31765
31893
  setId: setId,
31766
31894
  oldTransform: oldTransform
31767
31895
  });
31768
- case 28:
31896
+ case 36:
31769
31897
  case "end":
31770
31898
  return _context16.stop();
31771
31899
  }
@@ -32259,22 +32387,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
32259
32387
  }
32260
32388
  }, {
32261
32389
  key: "getPlannerPaletteViewInfo",
32262
- value: function getPlannerPaletteViewInfo(set, type) {
32390
+ value: function getPlannerPaletteViewInfo(set, type, selectedArticle) {
32263
32391
  var plannerViewInfo = set.CatalogData.PlannerPaletteViewInfo;
32264
32392
  var cleanedCaltaogPlannerArticles = [];
32265
32393
  for (var i = 0; i < plannerViewInfo.catalogPlannerArticles.length; i++) {
32266
32394
  var plannerElement = plannerViewInfo.catalogPlannerArticles[i];
32267
32395
  var articlecodex = plannerElement.articleCodex;
32268
- if (type == 'PLANNERSWITCH' && Object.keys(set.getDivaArticles())[0]) {
32396
+ if (type == 'PLANNERSWITCH' && selectedArticle) {
32269
32397
  if (plannerViewInfo.catalogPlannerArticles[i].filterType == 'Accessoire') continue;
32270
- cleanedCaltaogPlannerArticles.push(_objectSpread$8({}, plannerElement));
32271
- var index = cleanedCaltaogPlannerArticles.length - 1;
32272
- cleanedCaltaogPlannerArticles[index].groupName = '';
32273
- if (set.getArticlesByArticleCodex(articlecodex).length > 0) {
32274
- cleanedCaltaogPlannerArticles[index].sel = true;
32275
- } else {
32276
- cleanedCaltaogPlannerArticles[index].sel = false;
32277
- }
32398
+ cleanedCaltaogPlannerArticles.push(_objectSpread$8(_objectSpread$8({}, plannerElement), {}, {
32399
+ sel: articlecodex == selectedArticle,
32400
+ groupName: ''
32401
+ }));
32278
32402
  } else {
32279
32403
  var _set$CatalogData$getC;
32280
32404
  var dontPushElement = false;
@@ -32285,7 +32409,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
32285
32409
  plannerViewInfo.plannerConfiguration.updatePaletteAfterPlanningChanged = true;
32286
32410
  }
32287
32411
  }
32288
- if (!dontPushElement) cleanedCaltaogPlannerArticles.push(_objectSpread$8({}, plannerElement));
32412
+ if (!dontPushElement) cleanedCaltaogPlannerArticles.push(_objectSpread$8(_objectSpread$8({}, plannerElement), {}, {
32413
+ sel: articlecodex == selectedArticle
32414
+ }));
32289
32415
  }
32290
32416
  }
32291
32417
  return _objectSpread$8(_objectSpread$8({}, plannerViewInfo), {}, {
@@ -32455,11 +32581,28 @@ var DivaSetHandler = /*#__PURE__*/function () {
32455
32581
  targetArticles = targetArticles.concat(Object.keys((_articles$activeArtic = articles[activeArticles[0]]) === null || _articles$activeArtic === void 0 ? void 0 : _articles$activeArtic.accessoires));
32456
32582
  }
32457
32583
  var articleInfos = articleHandlerInstance.getArticleInfos(activeArticles, targetArticles, articles);
32584
+ //within an article and its partlistarticles cant be configured differently, so we group them here
32585
+ var groupedArticles = [];
32586
+ var _loop3 = function _loop3() {
32587
+ var article = articles[targetArticles[i]];
32588
+ var group = groupedArticles.find(function (group) {
32589
+ var _article$partListPare, _article$partListPare2;
32590
+ 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 : '');
32591
+ });
32592
+ if (group) {
32593
+ group.push(article.basketId);
32594
+ } else {
32595
+ groupedArticles.push([article.basketId]);
32596
+ }
32597
+ };
32598
+ for (var i = 0; i < targetArticles.length; i++) {
32599
+ _loop3();
32600
+ }
32458
32601
  var isConfigSingle = set.configSingle;
32459
32602
  var doShowConfigSingle = configStepKey ? set.configTree.doShowConfigSingle(configStepKey) : false;
32460
32603
  return {
32461
32604
  articleInfos: articleInfos,
32462
- doShowConfigSingle: doShowConfigSingle && targetArticles.length > 1,
32605
+ doShowConfigSingle: doShowConfigSingle && groupedArticles.length > 1,
32463
32606
  isConfigSingle: isConfigSingle,
32464
32607
  articleName: activeArticles[0] ? (_articles$activeArtic2 = articles[activeArticles[0]]) === null || _articles$activeArtic2 === void 0 || (_articles$activeArtic2 = _articles$activeArtic2.curProduct) === null || _articles$activeArtic2 === void 0 ? void 0 : _articles$activeArtic2.shortDescription : ''
32465
32608
  };
@@ -32548,7 +32691,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32548
32691
  value: (function () {
32549
32692
  var _variantsEvaluator = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(set, configItems, configStepKey, paletteType) {
32550
32693
  var _set$ViewConfig, _configItems$;
32551
- var opt, calcVariantsForPricePreview, previewType, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
32694
+ var opt, calcVariantsForPricePreview, previewType, _set$api$ReturnToFrom, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
32552
32695
  return _regeneratorRuntime.wrap(function _callee23$(_context25) {
32553
32696
  while (1) switch (_context25.prev = _context25.next) {
32554
32697
  case 0:
@@ -32562,7 +32705,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32562
32705
  calcVariantsForPricePreview = false;
32563
32706
  previewType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.pricePreview;
32564
32707
  if (previewType) {
32565
- calcVariantsForPricePreview = !set.dontCalcPricePreviewDueToPerformanceIssues && !opt.showOnSeparatTabgroup && (!((_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length) || set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex));
32708
+ calcVariantsForPricePreview = !set.dontCalcPricePreviewDueToPerformanceIssues && !((_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR')) && !opt.showOnSeparatTabgroup && (!((_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length) || set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex));
32566
32709
  }
32567
32710
  if (set.PlannerMode === 'BoxPlanner') calcVariantsForPricePreview = false;
32568
32711
  if (paletteType == 'GAL' && ((_configItems$ = configItems[0]) === null || _configItems$ === void 0 ? void 0 : _configItems$.groupName) === undefined || paletteType == 'TEXTBOX' || paletteType == 'NUMBERBOX' || paletteType == 'RANGE') {
@@ -32843,7 +32986,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32843
32986
  key: "confirmOptionsInMetric",
32844
32987
  value: function confirmOptionsInMetric(set, options, actionEvent) {
32845
32988
  var variantItems = set.getVariantBasketData();
32846
- var _loop3 = function _loop3() {
32989
+ var _loop4 = function _loop4() {
32847
32990
  var opt = options[i].substring(3);
32848
32991
  var variantItem = variantItems.find(function (item) {
32849
32992
  return item.OPT == opt;
@@ -32862,7 +33005,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32862
33005
  }
32863
33006
  };
32864
33007
  for (var i = 0; i < options.length; i++) {
32865
- _loop3();
33008
+ _loop4();
32866
33009
  }
32867
33010
  }
32868
33011
  }, {
@@ -32989,7 +33132,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32989
33132
  //check first if there are options that require user input
32990
33133
  var articles = [];
32991
33134
  var options = [];
32992
- var _loop4 = function _loop4(key) {
33135
+ var _loop5 = function _loop5(key) {
32993
33136
  var _articleHandler$check = articleHandlerInstance.checkIfAllOptionsAreDefined(sets[key].getDivaArticles()),
32994
33137
  articleNames = _articleHandler$check.articleNames,
32995
33138
  newOptions = _articleHandler$check.options;
@@ -33001,7 +33144,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33001
33144
  articles = articles.concat(articleNames);
33002
33145
  };
33003
33146
  for (var key in sets) {
33004
- _loop4(key);
33147
+ _loop5(key);
33005
33148
  }
33006
33149
  if (articles.length == 0) {
33007
33150
  return true;
@@ -33028,7 +33171,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33028
33171
  var accessoires = [];
33029
33172
  var grids = [];
33030
33173
  var articles = [];
33031
- var _loop5 = function _loop5() {
33174
+ var _loop6 = function _loop6() {
33032
33175
  var _retVal$configStep$ta2;
33033
33176
  var article = set.getArticleByBasketId((_retVal$configStep$ta2 = retVal === null || retVal === void 0 ? void 0 : retVal.configStep.targetArticles[i]) !== null && _retVal$configStep$ta2 !== void 0 ? _retVal$configStep$ta2 : '');
33034
33177
  if (!article || !article.shelfPlanner) return 1; // continue
@@ -33037,18 +33180,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33037
33180
  a = _article$shelfPlanner2.accessoires,
33038
33181
  g = _article$shelfPlanner2.grids;
33039
33182
  grids = [].concat(_toConsumableArray(grids), _toConsumableArray(g));
33040
- var _loop6 = function _loop6(j) {
33183
+ var _loop7 = function _loop7(j) {
33041
33184
  if (!accessoires.find(function (acc) {
33042
33185
  return acc.articleCodex === a[j].articleCodex;
33043
33186
  })) accessoires.push(a[j]);
33044
33187
  };
33045
33188
  for (var j = 0; j < a.length; j++) {
33046
- _loop6(j);
33189
+ _loop7(j);
33047
33190
  }
33048
33191
  };
33049
33192
  for (var i = 0; i < ((_retVal$configStep$ta = retVal === null || retVal === void 0 ? void 0 : retVal.configStep.targetArticles) !== null && _retVal$configStep$ta !== void 0 ? _retVal$configStep$ta : []).length; i++) {
33050
33193
  var _retVal$configStep$ta;
33051
- if (_loop5()) continue;
33194
+ if (_loop6()) continue;
33052
33195
  }
33053
33196
  configTreeHandler.fillConfigStepKeysInAccessoireItem(articles, set.configTree, accessoires !== null && accessoires !== void 0 ? accessoires : []);
33054
33197
  return {
@@ -33185,7 +33328,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33185
33328
  _context30.t0 = _regeneratorRuntime.keys(sets);
33186
33329
  case 7:
33187
33330
  if ((_context30.t1 = _context30.t0()).done) {
33188
- _context30.next = 29;
33331
+ _context30.next = 30;
33189
33332
  break;
33190
33333
  }
33191
33334
  key = _context30.t1.value;
@@ -33203,12 +33346,13 @@ var DivaSetHandler = /*#__PURE__*/function () {
33203
33346
  newOrderSet = _context30.sent;
33204
33347
  basketData.setIsPlanning(_set.SetType == 'PLANNING' ? '1' : '0');
33205
33348
  OrderLinesOfActSet = articleHandlerInstance.getOrderLinesOfArticles(articles, orderLineInitInfos, repairOnly, !!((_set$basketConfigVari = _set.basketConfigVariants) !== null && _set$basketConfigVari !== void 0 && _set$basketConfigVari.length));
33349
+ articleHandlerInstance.checkForRoundingError(OrderLinesOfActSet, _set);
33206
33350
  if (OrderLinesOfActSet.length) {
33207
- _context30.next = 21;
33351
+ _context30.next = 22;
33208
33352
  break;
33209
33353
  }
33210
33354
  return _context30.abrupt("continue", 7);
33211
- case 21:
33355
+ case 22:
33212
33356
  OrderLinesOfActSet = divaBasketHandler.divaWWSHandler.repairWWSFlags(articles, OrderLinesOfActSet);
33213
33357
  if (newOrderSet.SetImage == '' && (_OrderLinesOfActSet$ = OrderLinesOfActSet[0]) !== null && _OrderLinesOfActSet$ !== void 0 && _OrderLinesOfActSet$.Image && _set.PlannerMode == 'No') {
33214
33358
  newOrderSet.SetImage = OrderLinesOfActSet[0].Image.replace('_low', '');
@@ -33231,42 +33375,42 @@ var DivaSetHandler = /*#__PURE__*/function () {
33231
33375
  orderSets.push(newOrderSet);
33232
33376
  _context30.next = 7;
33233
33377
  break;
33234
- case 29:
33378
+ case 30:
33235
33379
  //fill diva3DProject for renderings & AR Converter
33236
33380
  basketData.Diva3DProject = DivaUtils.encodeBase64(set === null || set === void 0 ? void 0 : set.plannerHandler.getProject3D());
33237
33381
  i = 0;
33238
- case 31:
33382
+ case 32:
33239
33383
  if (!(i < ((_basketData$OrderSets = basketData.OrderSets) === null || _basketData$OrderSets === void 0 ? void 0 : _basketData$OrderSets.length))) {
33240
- _context30.next = 46;
33384
+ _context30.next = 47;
33241
33385
  break;
33242
33386
  }
33243
33387
  oderSetsIsInActPlanning = false;
33244
33388
  setId = basketData.OrderSets[i].SetID;
33245
33389
  j = 0;
33246
- case 35:
33390
+ case 36:
33247
33391
  if (!(j < orderSets.length)) {
33248
- _context30.next = 42;
33392
+ _context30.next = 43;
33249
33393
  break;
33250
33394
  }
33251
33395
  if (!(orderSets[j].SetID == setId)) {
33252
- _context30.next = 39;
33396
+ _context30.next = 40;
33253
33397
  break;
33254
33398
  }
33255
33399
  oderSetsIsInActPlanning = true;
33256
- return _context30.abrupt("break", 42);
33257
- case 39:
33400
+ return _context30.abrupt("break", 43);
33401
+ case 40:
33258
33402
  j++;
33259
- _context30.next = 35;
33403
+ _context30.next = 36;
33260
33404
  break;
33261
- case 42:
33405
+ case 43:
33262
33406
  if (!oderSetsIsInActPlanning && !((_basketData$SetPlanne = basketData.SetPlannerInfos) !== null && _basketData$SetPlanne !== void 0 && _basketData$SetPlanne.InvolvedSetIds.includes(setId))) {
33263
33407
  orderSets.push(basketData.OrderSets[i]);
33264
33408
  }
33265
- case 43:
33409
+ case 44:
33266
33410
  i++;
33267
- _context30.next = 31;
33411
+ _context30.next = 32;
33268
33412
  break;
33269
- case 46:
33413
+ case 47:
33270
33414
  basketData.SetPlannerInfos = setPlanner ? this.getSetPlannerInfos(Object.keys(sets), orderSets) : undefined;
33271
33415
  if (repairOnly) {
33272
33416
  this.repairOrderSets(basketData, orderSets);
@@ -33274,7 +33418,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33274
33418
  basketData.setOrderSets(orderSets);
33275
33419
  }
33276
33420
  return _context30.abrupt("return", basketData);
33277
- case 49:
33421
+ case 50:
33278
33422
  case "end":
33279
33423
  return _context30.stop();
33280
33424
  }
@@ -33309,7 +33453,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33309
33453
  }, {
33310
33454
  key: "repairOrderSets",
33311
33455
  value: function repairOrderSets(basketData, orerSets) {
33312
- var _loop7 = function _loop7() {
33456
+ var _loop8 = function _loop8() {
33313
33457
  var actOrderSet = orerSets[i];
33314
33458
  var setId = actOrderSet.SetID;
33315
33459
  var origOrderSet = basketData.OrderSets.find(function (set) {
@@ -33347,7 +33491,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33347
33491
  }
33348
33492
  };
33349
33493
  for (var i = 0; i < orerSets.length; i++) {
33350
- _loop7();
33494
+ _loop8();
33351
33495
  }
33352
33496
  }
33353
33497
  /**************************SpeicherRoutinen*************************************/
@@ -34052,7 +34196,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34052
34196
  key: "initProductId",
34053
34197
  value: function () {
34054
34198
  var _initProductId = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(api, productId) {
34055
- var result;
34199
+ var result, successful;
34056
34200
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
34057
34201
  while (1) switch (_context2.prev = _context2.next) {
34058
34202
  case 0:
@@ -34064,10 +34208,17 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34064
34208
  _context2.next = 6;
34065
34209
  return this.initBasket(api, result.divaNr, {
34066
34210
  basket: result.configuration
34067
- }, false);
34211
+ }, false, productId);
34068
34212
  case 6:
34069
- return _context2.abrupt("return", _context2.sent);
34070
- case 7:
34213
+ successful = _context2.sent;
34214
+ if (!successful) {
34215
+ _context2.next = 9;
34216
+ break;
34217
+ }
34218
+ return _context2.abrupt("return", result);
34219
+ case 9:
34220
+ return _context2.abrupt("return", false);
34221
+ case 10:
34071
34222
  case "end":
34072
34223
  return _context2.stop();
34073
34224
  }
@@ -34414,7 +34565,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34414
34565
  case 0:
34415
34566
  _context8.prev = 0;
34416
34567
  _context8.next = 3;
34417
- return api.getDataCache(api.getProductBasketUrl(key, productId), undefined, undefined, 'catalog', 'POST', {
34568
+ return api.getDataCache(api.getProductByKeyValueUrl(key, productId), undefined, undefined, 'catalog', 'POST', {
34418
34569
  fields: fields !== null && fields !== void 0 && fields.length ? fields : undefined
34419
34570
  });
34420
34571
  case 3:
@@ -34635,26 +34786,39 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34635
34786
  var _ops$ocd, _ops$valCodex;
34636
34787
  var ops = article.articleOptionStates[key];
34637
34788
  if (ops.option.sendToSAP && ops.val && ops.isDoShow && (!ops.isFreeText || !!ops.freeText) && !((_ops$ocd = ops.ocd) !== null && _ops$ocd !== void 0 && _ops$ocd.startsWith('OPVOPV_NICHT_RELEVANT')) && !((_ops$valCodex = ops.valCodex) !== null && _ops$valCodex !== void 0 && _ops$valCodex.startsWith('OPVOPV_NICHT_RELEVANT'))) {
34638
- var _ops$optionOcd;
34639
- sendToSap.push({
34640
- ID: sapCount++,
34641
- SAP_AUSP_ATNAM: ops.option.sendToSAP,
34642
- SAP_AUSP_ATWRT: ops.val.name,
34643
- opt: (_ops$optionOcd = ops.optionOcd) !== null && _ops$optionOcd !== void 0 ? _ops$optionOcd : ops.optionCodex
34644
- });
34789
+ var _ops$multiSelects;
34790
+ if (ops.isMultiselect && (_ops$multiSelects = ops.multiSelects) !== null && _ops$multiSelects !== void 0 && _ops$multiSelects.length) {
34791
+ for (var i = 0; i < ops.multiSelects.length; i++) {
34792
+ var _ops$optionOcd;
34793
+ sendToSap.push({
34794
+ ID: sapCount++,
34795
+ SAP_AUSP_ATNAM: ops.option.sendToSAP,
34796
+ SAP_AUSP_ATWRT: ops.multiSelects[i].name,
34797
+ opt: (_ops$optionOcd = ops.optionOcd) !== null && _ops$optionOcd !== void 0 ? _ops$optionOcd : ops.optionCodex
34798
+ });
34799
+ }
34800
+ } else {
34801
+ var _ops$optionOcd2;
34802
+ sendToSap.push({
34803
+ ID: sapCount++,
34804
+ SAP_AUSP_ATNAM: ops.option.sendToSAP,
34805
+ SAP_AUSP_ATWRT: ops.val.name,
34806
+ opt: (_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.optionCodex
34807
+ });
34808
+ }
34645
34809
  }
34646
34810
  }
34647
34811
  var _loop2 = function _loop2() {
34648
- var _opt$codex, _ops$optionOcd2, _ops$multiSelects;
34649
- var _article$parentOption = article.parentOptionCodex(options[i]),
34812
+ var _opt$codex, _ops$optionOcd3, _ops$multiSelects2;
34813
+ var _article$parentOption = article.parentOptionCodex(options[_i2]),
34650
34814
  codex = _article$parentOption.optionCodex,
34651
34815
  partenOptionCodex = _article$parentOption.partenOptionCodex;
34652
34816
  var _article$checkOptionA = article.checkOptionAndOptionValue(codex, '', partenOptionCodex),
34653
34817
  opt = _article$checkOptionA.opt;
34654
34818
  var ops = article.getArticleOptionState((_opt$codex = opt.codex) !== null && _opt$codex !== void 0 ? _opt$codex : codex);
34655
34819
  if (!(ops !== null && ops !== void 0 && ops.val)) return 1; // continue
34656
- var optionCodex = (ops.option.parentOptionCodex ? ops.option.parentOptionCodex + '.' : '') + ((_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.option.codex);
34657
- changedValues[optionCodex] = ((_ops$multiSelects = ops.multiSelects) !== null && _ops$multiSelects !== void 0 && _ops$multiSelects.length ? ops.multiselectSorted : [ops.val]).map(function (val) {
34820
+ var optionCodex = (ops.option.parentOptionCodex ? ops.option.parentOptionCodex + '.' : '') + ((_ops$optionOcd3 = ops.optionOcd) !== null && _ops$optionOcd3 !== void 0 ? _ops$optionOcd3 : ops.option.codex);
34821
+ changedValues[optionCodex] = ((_ops$multiSelects2 = ops.multiSelects) !== null && _ops$multiSelects2 !== void 0 && _ops$multiSelects2.length ? ops.multiselectSorted : [ops.val]).map(function (val) {
34658
34822
  var _val$ocd, _ops$freeTextLang3, _ops$freeTextLang4, _ops$option$ocd, _ops$val, _ops$val2;
34659
34823
  var attributeValue = (_val$ocd = val.ocd) !== null && _val$ocd !== void 0 ? _val$ocd : val.codex;
34660
34824
  if (ops.isFreeText) {
@@ -34705,7 +34869,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34705
34869
  };
34706
34870
  });
34707
34871
  };
34708
- for (var i = 0; i < options.length; i++) {
34872
+ for (var _i2 = 0; _i2 < options.length; _i2++) {
34709
34873
  if (_loop2()) continue;
34710
34874
  }
34711
34875
  var variantValues = article.VariantValuesParentOption;
@@ -34734,7 +34898,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34734
34898
  break;
34735
34899
  case 3:
34736
34900
  _context12.next = 5;
34737
- return import('./PfisterWWSHandler-e824a225.js');
34901
+ return import('./PfisterWWSHandler-c00ff2d2.js');
34738
34902
  case 5:
34739
34903
  _yield$import = _context12.sent;
34740
34904
  PfisterWWSHandler = _yield$import["default"];
@@ -34742,7 +34906,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34742
34906
  return _context12.abrupt("break", 27);
34743
34907
  case 9:
34744
34908
  _context12.next = 11;
34745
- return import('./LiviqueWWSHandler-05983499.js');
34909
+ return import('./LiviqueWWSHandler-c2931ea0.js');
34746
34910
  case 11:
34747
34911
  _yield$import2 = _context12.sent;
34748
34912
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34750,7 +34914,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34750
34914
  return _context12.abrupt("break", 27);
34751
34915
  case 15:
34752
34916
  _context12.next = 17;
34753
- return import('./SeriousBasketHandler-d0103e1a.js');
34917
+ return import('./SeriousBasketHandler-5dafd20f.js');
34754
34918
  case 17:
34755
34919
  _yield$import3 = _context12.sent;
34756
34920
  SeriousWWSHandler = _yield$import3["default"];
@@ -34758,7 +34922,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34758
34922
  return _context12.abrupt("break", 27);
34759
34923
  case 21:
34760
34924
  _context12.next = 23;
34761
- return import('./StandardWWSHandler-539b9b15.js');
34925
+ return import('./StandardWWSHandler-1a0c3568.js');
34762
34926
  case 23:
34763
34927
  _yield$import4 = _context12.sent;
34764
34928
  StandardWWSHandler = _yield$import4["default"];
@@ -36148,7 +36312,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36148
36312
  while (1) switch (_context3.prev = _context3.next) {
36149
36313
  case 0:
36150
36314
  _context3.next = 2;
36151
- return import('./Host3DSignalR-f4620464.js');
36315
+ return import('./Host3DSignalR-0c6f2cb2.js');
36152
36316
  case 2:
36153
36317
  _yield$import = _context3.sent;
36154
36318
  Host3DSignalR = _yield$import["default"];
@@ -37043,14 +37207,12 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
37043
37207
  _classCallCheck(this, DivaMediaServiceHandler);
37044
37208
  _defineProperty(this, "organizationId", void 0);
37045
37209
  _defineProperty(this, "mediaServiceUrl", void 0);
37046
- _defineProperty(this, "mediaServiceApiKey", void 0);
37047
37210
  _defineProperty(this, "jwt", void 0);
37048
37211
  _defineProperty(this, "POST_saveTmp2PermanentPostfix", '/saveTmp2Permanent');
37049
37212
  _defineProperty(this, "GET_MediaItemrefs", '/v1/mediaitems/refs?limit=20&skip=0&filter=');
37050
37213
  _defineProperty(this, "POST_mediaItem", '/v1/mediaitems?ref=true');
37051
37214
  this.organizationId = '';
37052
37215
  this.mediaServiceUrl = '';
37053
- this.mediaServiceApiKey = '';
37054
37216
  }
37055
37217
  return _createClass(DivaMediaServiceHandler, [{
37056
37218
  key: "setOrganizationId",
@@ -37062,11 +37224,6 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
37062
37224
  value: function setMediaServiceUrl(mediaServiceUrl) {
37063
37225
  this.mediaServiceUrl = mediaServiceUrl;
37064
37226
  }
37065
- }, {
37066
- key: "setMediaServiceApiKey",
37067
- value: function setMediaServiceApiKey(mediaServiceApiKey) {
37068
- this.mediaServiceApiKey = mediaServiceApiKey;
37069
- }
37070
37227
  }, {
37071
37228
  key: "setJwt",
37072
37229
  value: function setJwt(jwt) {
@@ -37123,7 +37280,7 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
37123
37280
  method: 'POST',
37124
37281
  body: data,
37125
37282
  headers: {
37126
- 'X-API-KEY': this.mediaServiceApiKey
37283
+ Authorization: 'Bearer ' + this.jwt
37127
37284
  }
37128
37285
  });
37129
37286
  case 11:
@@ -37494,7 +37651,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37494
37651
  key: "initPlanner",
37495
37652
  value: (function () {
37496
37653
  var _initPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(initSetState, plannerHandlerFunctions) {
37497
- var renderGroup, diva3dServerUrl, divaMediaServiceUrl, mediaServiceApiKey, _initSetState$api$web, result;
37654
+ var renderGroup, diva3dServerUrl, divaMediaServiceUrl, _initSetState$api$web, result;
37498
37655
  return _regeneratorRuntime.wrap(function _callee$(_context) {
37499
37656
  while (1) switch (_context.prev = _context.next) {
37500
37657
  case 0:
@@ -37502,8 +37659,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37502
37659
  renderGroup = initSetState.api.get3DRenderGroup();
37503
37660
  this.plannerHandlerFunctions = plannerHandlerFunctions;
37504
37661
  diva3dServerUrl = initSetState.api.get3DServerUrl();
37505
- divaMediaServiceUrl = initSetState.api.getDivaMediaServiceUrl();
37506
- mediaServiceApiKey = initSetState.api.getDivaMediaServiceApiKey(); //renderGroup = 'LeaTest';
37662
+ divaMediaServiceUrl = initSetState.api.getDivaMediaServiceUrl(); // renderGroup = 'LeaTest';
37507
37663
  //diva3dServerUrl = "https://test-einkauf-onboarding.pfister.ch/diva3d/diva3dhost2/";
37508
37664
  // diva3dServerUrl = "https://diva3dhost.diva-portal.com/diva3d/diva3dhost2/";
37509
37665
  //diva3dServerUrl = 'https://localhost:44315/';
@@ -37513,7 +37669,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37513
37669
  //divaMediaServiceUrl = 'https://api-test.diva-portal.com/media/';
37514
37670
  //divaMediaServiceUrl = 'http://localhost:3000';
37515
37671
  if (!(!initSetState.onlyRunLogic && !initSetState.no3DConnection)) {
37516
- _context.next = 14;
37672
+ _context.next = 13;
37517
37673
  break;
37518
37674
  }
37519
37675
  this.handler3D.initializeCallbackFunctions({
@@ -37532,24 +37688,23 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37532
37688
  arViewerUrl: (_initSetState$api$web = initSetState.api.webConfig) === null || _initSetState$api$web === void 0 ? void 0 : _initSetState$api$web.arViewerUrl
37533
37689
  });
37534
37690
  if (!(!this.handler3D.checkConnectionInitialized() || result.renderGroupChanged || result.diva3dServerUrlChanged)) {
37535
- _context.next = 13;
37691
+ _context.next = 12;
37536
37692
  break;
37537
37693
  }
37538
- _context.next = 13;
37694
+ _context.next = 12;
37539
37695
  return this.handler3D.initializeConnection();
37540
- case 13:
37696
+ case 12:
37541
37697
  if (this.divaNr != initSetState.divaNr) {
37542
37698
  this.divaNr = initSetState.divaNr;
37543
37699
  this.handler3D.joinDivaNr(this.divaNr);
37544
37700
  }
37545
- case 14:
37701
+ case 13:
37546
37702
  mediaServiceHandler.setMediaServiceUrl(divaMediaServiceUrl);
37547
- mediaServiceHandler.setMediaServiceApiKey(mediaServiceApiKey);
37548
37703
  mediaServiceHandler.setOrganizationId(initSetState.organizationId);
37549
37704
  mediaServiceHandler.setJwt(initSetState.api.getJwt());
37550
37705
  this.handler3D.setOrigConfigurationCallback(this.plannerHandlerFunctions.getOrigConfiguration);
37551
37706
  DivaUtils.endSpanOfApm('DivaPlannerHandler initPlanner');
37552
- case 20:
37707
+ case 18:
37553
37708
  case "end":
37554
37709
  return _context.stop();
37555
37710
  }
@@ -37700,7 +37855,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37700
37855
  break;
37701
37856
  case 8:
37702
37857
  _context4.next = 10;
37703
- return import('./DivaStandardPlanner-f4ce0bf9.js');
37858
+ return import('./DivaStandardPlanner-3735c08d.js');
37704
37859
  case 10:
37705
37860
  _yield$import = _context4.sent;
37706
37861
  DivaStandardPlanner = _yield$import["default"];
@@ -37711,7 +37866,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37711
37866
  return _context4.abrupt("break", 21);
37712
37867
  case 15:
37713
37868
  _context4.next = 17;
37714
- return import('./DivaBoxPlanner-acb7342c.js');
37869
+ return import('./DivaBoxPlanner-8bf401d7.js');
37715
37870
  case 17:
37716
37871
  _yield$import2 = _context4.sent;
37717
37872
  DivaBoxPlanner = _yield$import2["default"];
@@ -38327,6 +38482,20 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38327
38482
  return this.plannerList.get(setId).getPlannerElementsInfluencedByCopy(elementId, copyInfo);
38328
38483
  }
38329
38484
 
38485
+ /**
38486
+ * This function gets all Elements that are deleted when deleting one element.
38487
+ * @param setId
38488
+ * @param elementId
38489
+ */
38490
+ }, {
38491
+ key: "getPlannerElementsInfluencedByDeletion",
38492
+ value: function getPlannerElementsInfluencedByDeletion(setId, elementId) {
38493
+ if (!this.plannerList.has(setId)) {
38494
+ return [];
38495
+ }
38496
+ return this.plannerList.get(setId).getPlannerElementsInfluencedByDeletion(elementId);
38497
+ }
38498
+
38330
38499
  /**
38331
38500
  * This function is used to copy an element in the planner
38332
38501
  * @param setId
@@ -38797,11 +38966,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
38797
38966
  /**
38798
38967
  * This Function ist call from the View when all Planner Article are Requested for listing
38799
38968
  */
38800
- _defineProperty(this, "loadCatalogPlannerArticles", function (paletteeId, isUpdate, type, dockFilter, actStepName, stepKey) {
38969
+ _defineProperty(this, "loadCatalogPlannerArticles", function (paletteeId, isUpdate, type, dockFilter, actStepName, stepKey, selectedArticle) {
38801
38970
  var _this$updateCatalogPl;
38802
38971
  //Das aktuelle Set weiß welcher catalog gerade geladen ist.
38803
38972
  //Von diesem Katalog müssen wir die CatalogPlannerArticles laden.
38804
- (_this$updateCatalogPl = _this.updateCatalogPlannerArticles) === null || _this$updateCatalogPl === void 0 || _this$updateCatalogPl.call(_this, setHandlerInstance.getPlannerPaletteViewInfo(_this.actSet(), type), paletteeId, isUpdate, type, dockFilter, actStepName, stepKey);
38973
+ (_this$updateCatalogPl = _this.updateCatalogPlannerArticles) === null || _this$updateCatalogPl === void 0 || _this$updateCatalogPl.call(_this, setHandlerInstance.getPlannerPaletteViewInfo(_this.actSet(), type, selectedArticle), paletteeId, isUpdate, type, dockFilter, actStepName, stepKey);
38805
38974
  });
38806
38975
  /**
38807
38976
  * this fuction loads the accessoires of a specific article -> could be more than one article in the future
@@ -40388,76 +40557,90 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40388
40557
  key: "saveToBasketWrapper",
40389
40558
  value: function () {
40390
40559
  var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(event, repairOnly, force) {
40391
- var _this$actions25,
40392
- _this$actions25$toggl,
40393
- _this$actions26,
40560
+ var _this$actions26,
40394
40561
  _this$actions26$toggl,
40562
+ _this$actions27,
40563
+ _this$actions27$toggl,
40395
40564
  _this2 = this,
40396
- _this$actions30,
40565
+ _this$actions31,
40397
40566
  _this$i18n14;
40398
- var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, result, _this$actions27, _this$i18n8, _this$i18n9, _this$actions28, _this$i18n10, _this$i18n11, _this$actions29, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40567
+ var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions25, result, _this$actions28, _this$i18n8, _this$i18n9, _this$actions29, _this$i18n10, _this$i18n11, _this$actions30, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40399
40568
  return _regeneratorRuntime.wrap(function _callee25$(_context25) {
40400
40569
  while (1) switch (_context25.prev = _context25.next) {
40401
40570
  case 0:
40402
40571
  returnTo = this.getReturnTo(event);
40403
- finalEvent = event;
40572
+ finalEvent = {
40573
+ event: event,
40574
+ saveBasket: true
40575
+ };
40404
40576
  if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
40405
- _context25.next = 14;
40577
+ _context25.next = 21;
40406
40578
  break;
40407
40579
  }
40408
40580
  product = undefined;
40409
40581
  if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
40410
- _context25.next = 8;
40582
+ _context25.next = 10;
40411
40583
  break;
40412
40584
  }
40413
- _context25.next = 7;
40414
- return this.api.getDataCache(this.api.getCatalogProductUrl(this.actSet().getCatalogCodex()), undefined, undefined, 'catalog');
40415
- case 7:
40416
- _context25.sent;
40585
+ url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
40586
+ _context25.next = 8;
40587
+ return this.api.getDataCache(url, url, undefined, 'catalog');
40417
40588
  case 8:
40418
- _context25.next = 10;
40419
- return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
40589
+ _result = _context25.sent;
40590
+ product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
40420
40591
  case 10:
40592
+ _context25.next = 12;
40593
+ return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
40594
+ case 12:
40421
40595
  finalEvent = _context25.sent;
40422
40596
  if (finalEvent) {
40423
- _context25.next = 13;
40597
+ _context25.next = 17;
40424
40598
  break;
40425
40599
  }
40426
40600
  return _context25.abrupt("return", 'canceled');
40427
- case 13:
40428
- returnTo = finalEvent == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40429
- case 14:
40430
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || (_this$actions25$toggl = _this$actions25.toggleLoading) === null || _this$actions25$toggl === void 0 || _this$actions25$toggl.call(_this$actions25, 'Planner_Saving', false, true);
40431
- _context25.next = 17;
40432
- return this.saveToBasket(finalEvent, repairOnly, force);
40433
40601
  case 17:
40602
+ if (!(!finalEvent.saveBasket && finalEvent.event)) {
40603
+ _context25.next = 20;
40604
+ break;
40605
+ }
40606
+ (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40607
+ type: finalEvent.event
40608
+ });
40609
+ return _context25.abrupt("return", 'canceled');
40610
+ case 20:
40611
+ returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40612
+ case 21:
40613
+ (_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);
40614
+ _context25.next = 24;
40615
+ return this.saveToBasket(finalEvent.event, repairOnly, force);
40616
+ case 24:
40434
40617
  result = _context25.sent;
40435
- (_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, false);
40618
+ (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, false);
40436
40619
  if (!(result === 'canceled')) {
40437
- _context25.next = 23;
40620
+ _context25.next = 30;
40438
40621
  break;
40439
40622
  }
40440
40623
  LOG$1.error(new DivaError('failed to save Basket'));
40441
- (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || _this$actions27.openModal({
40624
+ (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40442
40625
  text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
40443
40626
  accept: true
40444
40627
  });
40445
40628
  return _context25.abrupt("return", result);
40446
- case 23:
40629
+ case 30:
40447
40630
  _context25.t0 = returnTo;
40448
- _context25.next = _context25.t0 === 'OPEN_PDF' ? 26 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 28 : 29;
40631
+ _context25.next = _context25.t0 === 'OPEN_PDF' ? 33 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : 36;
40449
40632
  break;
40450
- case 26:
40633
+ case 33:
40451
40634
  if (!this.getBasket().PDFDocumentURL) {
40452
40635
  LOG$1.error(new DivaError('PDF url is missing in basket', {
40453
40636
  code: 'WC_0010'
40454
40637
  }));
40455
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40638
+ (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40456
40639
  text: ((_this$i18n10 = this.i18n()) === null || _this$i18n10 === void 0 ? void 0 : _this$i18n10.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n11 = this.i18n()) === null || _this$i18n11 === void 0 ? void 0 : _this$i18n11.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
40457
40640
  accept: true
40458
40641
  });
40459
40642
  } else {
40460
- (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40643
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40461
40644
  text: (_this$i18n12 = this.i18n()) === null || _this$i18n12 === void 0 ? void 0 : _this$i18n12.t(this.divaBasketHandler.actBasket.Status === 'ORDER' ? 'modal.open_order_pdf_now' : 'modal.open_leaflet_pdf_now'),
40462
40645
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
40463
40646
  callback: function callback() {
@@ -40465,22 +40648,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40465
40648
  }
40466
40649
  });
40467
40650
  }
40468
- return _context25.abrupt("break", 29);
40469
- case 28:
40470
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40651
+ return _context25.abrupt("break", 36);
40652
+ case 35:
40653
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40471
40654
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
40472
40655
  accept: true
40473
40656
  });
40474
- case 29:
40657
+ case 36:
40475
40658
  if (!(result == 'noArticleToSave')) {
40476
- _context25.next = 32;
40659
+ _context25.next = 39;
40477
40660
  break;
40478
40661
  }
40479
40662
  (_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
40480
40663
  return _context25.abrupt("return", 'canceled');
40481
- case 32:
40664
+ case 39:
40482
40665
  return _context25.abrupt("return", result);
40483
- case 33:
40666
+ case 40:
40484
40667
  case "end":
40485
40668
  return _context25.stop();
40486
40669
  }
@@ -40495,7 +40678,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40495
40678
  key: "saveToBasket",
40496
40679
  value: function () {
40497
40680
  var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
40498
- var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions31, _this$actions32, _this$actions33;
40681
+ var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34;
40499
40682
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, _event4, product;
40500
40683
  return _regeneratorRuntime.wrap(function _callee26$(_context26) {
40501
40684
  while (1) switch (_context26.prev = _context26.next) {
@@ -40567,8 +40750,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40567
40750
  _context26.next = _context26.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 30 : _context26.t3 === 'OPEN_SELLER_BASKET' ? 33 : _context26.t3 === 'OPEN_PDF' ? 35 : _context26.t3 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context26.t3 === 'SAVE_BASKET' ? 35 : _context26.t3 === 'SAVE_BASKET_SYNC' ? 35 : _context26.t3 === 'OPEN_LEAFLET_BARRIER' ? 35 : 55;
40568
40751
  break;
40569
40752
  case 30:
40570
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.toggleLoading('buildScene', false, false);
40571
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openComponent({
40753
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.toggleLoading('buildScene', false, false);
40754
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
40572
40755
  type: 'SELLER',
40573
40756
  parameters: {
40574
40757
  module: 'PCreator',
@@ -40580,7 +40763,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40580
40763
  });
40581
40764
  return _context26.abrupt("break", 55);
40582
40765
  case 33:
40583
- (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
40766
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40584
40767
  type: 'SELLER',
40585
40768
  parameters: {
40586
40769
  module: 'Basket',
@@ -40634,12 +40817,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40634
40817
  return _context26.abrupt("break", 55);
40635
40818
  case 55:
40636
40819
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
40637
- _context26.next = 58;
40820
+ actBasket = this.divaBasketHandler.getBasketData(actBasket.DivaNr); //get pdf documenturl from saved basket
40821
+ _context26.next = 59;
40638
40822
  return this.addToBasket(actBasket, event);
40639
- case 58:
40823
+ case 59:
40640
40824
  product = _context26.sent;
40641
40825
  return _context26.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
40642
- case 60:
40826
+ case 61:
40643
40827
  case "end":
40644
40828
  return _context26.stop();
40645
40829
  }
@@ -40694,8 +40878,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40694
40878
 
40695
40879
  //if planner is hidden by config but nothing is planned initially
40696
40880
  if (plannerType === 'NONE') {
40697
- var _this$plannerConfig$a7, _this$actSet9;
40698
- if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet9 = this.actSet()) !== null && _this$actSet9 !== void 0 && (_this$actSet9 = _this$actSet9.CatalogData.startPlannerArticle) !== null && _this$actSet9 !== void 0 && _this$actSet9.length)) {
40881
+ var _this$plannerConfig$a7, _this$actSet10;
40882
+ if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet10 = this.actSet()) !== null && _this$actSet10 !== void 0 && (_this$actSet10 = _this$actSet10.CatalogData.startPlannerArticle) !== null && _this$actSet10 !== void 0 && _this$actSet10.length)) {
40699
40883
  plannerType = 'PLANNER';
40700
40884
  }
40701
40885
  }
@@ -40735,38 +40919,38 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40735
40919
  }, {
40736
40920
  key: "getCurCatalogCodex",
40737
40921
  value: function getCurCatalogCodex() {
40738
- var _this$actSet10;
40739
- return (_this$actSet10 = this.actSet()) === null || _this$actSet10 === void 0 ? void 0 : _this$actSet10.getCatalogCodex();
40922
+ var _this$actSet11;
40923
+ return (_this$actSet11 = this.actSet()) === null || _this$actSet11 === void 0 ? void 0 : _this$actSet11.getCatalogCodex();
40740
40924
  }
40741
40925
  }, {
40742
40926
  key: "getCurCatalogName",
40743
40927
  value: function getCurCatalogName() {
40744
- var _this$actSet11;
40745
- return (_this$actSet11 = this.actSet()) === null || _this$actSet11 === void 0 ? void 0 : _this$actSet11.getCatalogName();
40928
+ var _this$actSet12;
40929
+ return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getCatalogName();
40746
40930
  }
40747
40931
  }, {
40748
40932
  key: "getCurAccountName",
40749
40933
  value: function getCurAccountName() {
40750
- var _this$actSet12;
40751
- return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getAccountName();
40934
+ var _this$actSet13;
40935
+ return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getAccountName();
40752
40936
  }
40753
40937
  }, {
40754
40938
  key: "getCurSupplierGuid",
40755
40939
  value: function getCurSupplierGuid() {
40756
- var _this$actSet13;
40757
- return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getSupplierGuid();
40940
+ var _this$actSet14;
40941
+ return (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getSupplierGuid();
40758
40942
  }
40759
40943
  }, {
40760
40944
  key: "getCurSetPrice",
40761
40945
  value: function getCurSetPrice() {
40762
- var _this$actSet$getSetPr, _this$actSet14;
40763
- return (_this$actSet$getSetPr = (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
40946
+ var _this$actSet$getSetPr, _this$actSet15;
40947
+ return (_this$actSet$getSetPr = (_this$actSet15 = this.actSet()) === null || _this$actSet15 === void 0 ? void 0 : _this$actSet15.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
40764
40948
  }
40765
40949
  }, {
40766
40950
  key: "getCurImageMode",
40767
40951
  value: function getCurImageMode() {
40768
- var _this$actSet15;
40769
- return (_this$actSet15 = this.actSet()) !== null && _this$actSet15 !== void 0 && (_this$actSet15 = _this$actSet15.CatalogData) !== null && _this$actSet15 !== void 0 && _this$actSet15.has3dModels ? '3D' : '2D';
40952
+ var _this$actSet16;
40953
+ return (_this$actSet16 = this.actSet()) !== null && _this$actSet16 !== void 0 && (_this$actSet16 = _this$actSet16.CatalogData) !== null && _this$actSet16 !== void 0 && _this$actSet16.has3dModels ? '3D' : '2D';
40770
40954
  }
40771
40955
  }, {
40772
40956
  key: "getViewConfig",
@@ -40797,65 +40981,65 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40797
40981
  }, {
40798
40982
  key: "doShow3DDimensionLines",
40799
40983
  value: function doShow3DDimensionLines() {
40800
- var _this$actSet16;
40801
- return (_this$actSet16 = this.actSet()) === null || _this$actSet16 === void 0 || (_this$actSet16 = _this$actSet16.CatalogData) === null || _this$actSet16 === void 0 ? void 0 : _this$actSet16.doShow3DDimensionLines;
40984
+ var _this$actSet17;
40985
+ return (_this$actSet17 = this.actSet()) === null || _this$actSet17 === void 0 || (_this$actSet17 = _this$actSet17.CatalogData) === null || _this$actSet17 === void 0 ? void 0 : _this$actSet17.doShow3DDimensionLines;
40802
40986
  }
40803
40987
  }, {
40804
40988
  key: "hidePlannerUiIcons",
40805
40989
  value: function hidePlannerUiIcons() {
40806
- var _this$actSet17;
40807
- return (_this$actSet17 = this.actSet()) === null || _this$actSet17 === void 0 || (_this$actSet17 = _this$actSet17.CatalogData) === null || _this$actSet17 === void 0 ? void 0 : _this$actSet17.hidePlannerUiIcons;
40990
+ var _this$actSet18;
40991
+ return (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 || (_this$actSet18 = _this$actSet18.CatalogData) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.hidePlannerUiIcons;
40808
40992
  }
40809
40993
  }, {
40810
40994
  key: "doShowPlannerReplaceMode",
40811
40995
  value: function doShowPlannerReplaceMode() {
40812
- var _this$actSet18, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
40813
- var catalogData = (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.CatalogData;
40996
+ var _this$actSet19, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
40997
+ var catalogData = (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.CatalogData;
40814
40998
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.replaceModeActive) && ((_this$api$getViewConf2 = this.api.getViewConfig()) === null || _this$api$getViewConf2 === void 0 ? void 0 : _this$api$getViewConf2.showReplaceFunctionInPlanner) && Object.entries(catalogData.allCatalogPlannerArticles).length > 1 && Object.entries((_catalogData$PlannerP = (_catalogData$PlannerP2 = catalogData.PlannerPaletteViewInfo) === null || _catalogData$PlannerP2 === void 0 ? void 0 : _catalogData$PlannerP2.catalogPlannerArticles) !== null && _catalogData$PlannerP !== void 0 ? _catalogData$PlannerP : {}).length > 1;
40815
40999
  }
40816
41000
  }, {
40817
41001
  key: "doPlannerReplaceAutoSwitch",
40818
41002
  value: function doPlannerReplaceAutoSwitch() {
40819
- var _this$actSet19, _this$api$getViewConf3;
40820
- var catalogData = (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.CatalogData;
41003
+ var _this$actSet20, _this$api$getViewConf3;
41004
+ var catalogData = (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.CatalogData;
40821
41005
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.catalogPlannsCompletely) && this.doShowPlannerReplaceMode() && ((_this$api$getViewConf3 = this.api.getViewConfig()) === null || _this$api$getViewConf3 === void 0 ? void 0 : _this$api$getViewConf3.allowAutoSwitchInReplaceFunctionInPlanner);
40822
41006
  }
40823
41007
  }, {
40824
41008
  key: "getHidePlanner",
40825
41009
  value: function getHidePlanner() {
40826
- var _this$actSet20;
40827
- return this.api.getHidePlanner() || !!((_this$actSet20 = this.actSet()) !== null && _this$actSet20 !== void 0 && _this$actSet20.CatalogData.useBoxPlanner);
41010
+ var _this$actSet21;
41011
+ return this.api.getHidePlanner() || !!((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.useBoxPlanner);
40828
41012
  }
40829
41013
  }, {
40830
41014
  key: "getAllowRTV",
40831
41015
  value: function getAllowRTV() {
40832
- var _this$actSet21, _this$actSet22;
41016
+ var _this$actSet22, _this$actSet23;
40833
41017
  if (this.getEnableUnityRtvKombi()) return false;
40834
41018
  if (this.api.forceShowRTV()) return true;
40835
- if ((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.divaForceRTV) return true;
40836
- if (this.api.getDoShowRTV() && (_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaArReady) return true;
41019
+ if ((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaForceRTV) return true;
41020
+ if (this.api.getDoShowRTV() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
40837
41021
  return false;
40838
41022
  }
40839
41023
  }, {
40840
41024
  key: "geAllowQRCodeAR",
40841
41025
  value: function geAllowQRCodeAR() {
40842
- var _this$actSet23;
40843
- if (this.api.getDoShowAR() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
41026
+ var _this$actSet24;
41027
+ if (this.api.getDoShowAR() && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
40844
41028
  return false;
40845
41029
  }
40846
41030
  }, {
40847
41031
  key: "getEnableUnityRtvKombi",
40848
41032
  value: function getEnableUnityRtvKombi() {
40849
- var _this$actSet24, _this$actSet25;
41033
+ var _this$actSet25, _this$actSet26;
40850
41034
  // if force rtv disable unity kombi - biohort
40851
- if ((_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaForceRTV) return false;
40852
- return ((_this$actSet25 = this.actSet()) === null || _this$actSet25 === void 0 ? void 0 : _this$actSet25.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
41035
+ if ((_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaForceRTV) return false;
41036
+ return ((_this$actSet26 = this.actSet()) === null || _this$actSet26 === void 0 ? void 0 : _this$actSet26.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
40853
41037
  }
40854
41038
  }, {
40855
41039
  key: "getShelfPlannerRTV",
40856
41040
  value: function getShelfPlannerRTV() {
40857
- var _this$actSet26;
40858
- return (_this$actSet26 = this.actSet()) === null || _this$actSet26 === void 0 ? void 0 : _this$actSet26.CatalogData.useShelfPlannerRTV;
41041
+ var _this$actSet27;
41042
+ return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData.useShelfPlannerRTV;
40859
41043
  }
40860
41044
  }, {
40861
41045
  key: "getBasketData",
@@ -40896,8 +41080,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40896
41080
  }, {
40897
41081
  key: "getCatalogData",
40898
41082
  value: function getCatalogData() {
40899
- var _this$actSet27;
40900
- return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData;
41083
+ var _this$actSet28;
41084
+ return (_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData;
40901
41085
  }
40902
41086
  }, {
40903
41087
  key: "ReturnTo",
@@ -40913,16 +41097,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40913
41097
  key: "addToBasket",
40914
41098
  value: function () {
40915
41099
  var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(actBasket) {
40916
- var _this$actions34,
40917
- _this$actions35,
41100
+ var _this$actions35,
40918
41101
  _this$actions36,
40919
41102
  _this$actions37,
40920
41103
  _this$actions38,
41104
+ _this$actions39,
40921
41105
  _this$divaBasketHandl3,
40922
41106
  _this3 = this,
40923
- _this$actions39,
40924
41107
  _this$actions40,
40925
- _this$actions41;
41108
+ _this$actions41,
41109
+ _this$actions42,
41110
+ _this$actions43;
40926
41111
  var event,
40927
41112
  addToBasketLog,
40928
41113
  emailConfig,
@@ -40938,43 +41123,43 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40938
41123
  event = _args28.length > 1 && _args28[1] !== undefined ? _args28[1] : 'onAddToBasket';
40939
41124
  addToBasketLog = true;
40940
41125
  _context28.t0 = event;
40941
- _context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 8 : _context28.t0 === 'onWebPlanerShare' ? 11 : _context28.t0 === 'onRequestConsulation' ? 14 : _context28.t0 === 'onSave' ? 17 : _context28.t0 === 'onSendEmail' ? 20 : _context28.t0 === 'onSaveProduct' ? 25 : _context28.t0 === 'dontSaveBasket' ? 33 : _context28.t0 === 'onAddToBasket' ? 35 : 35;
41126
+ _context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 8 : _context28.t0 === 'onWebPlanerShare' ? 11 : _context28.t0 === 'onRequestConsulation' ? 14 : _context28.t0 === 'onSave' ? 17 : _context28.t0 === 'onSendEmail' ? 20 : _context28.t0 === 'onSaveProduct' ? 25 : _context28.t0 === 'dontSaveBasket' ? 33 : _context28.t0 === 'onAddToBasket' ? 35 : 38;
40942
41127
  break;
40943
41128
  case 5:
40944
41129
  this.handleSuccessTransaction('onPrintBasket', actBasket);
40945
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.onEvent({
41130
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
40946
41131
  type: 'onWebPlanerPrint',
40947
41132
  data: actBasket.getAsJson()
40948
41133
  });
40949
- return _context28.abrupt("break", 38);
41134
+ return _context28.abrupt("break", 40);
40950
41135
  case 8:
40951
41136
  this.handleSuccessTransaction('onSaveBasket', actBasket);
40952
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41137
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
40953
41138
  type: 'onWebPlanerSave',
40954
41139
  data: actBasket.getAsJson()
40955
41140
  });
40956
- return _context28.abrupt("break", 38);
41141
+ return _context28.abrupt("break", 40);
40957
41142
  case 11:
40958
41143
  this.handleSuccessTransaction('onShareBasket', actBasket);
40959
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41144
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
40960
41145
  type: 'onWebPlanerShare',
40961
41146
  data: actBasket.getAsJson()
40962
41147
  });
40963
- return _context28.abrupt("break", 38);
41148
+ return _context28.abrupt("break", 40);
40964
41149
  case 14:
40965
41150
  this.handleSuccessTransaction('onRequestConsulation', actBasket);
40966
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41151
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
40967
41152
  type: 'onRequestConsulation',
40968
41153
  data: actBasket.getAsJson()
40969
41154
  });
40970
- return _context28.abrupt("break", 38);
41155
+ return _context28.abrupt("break", 40);
40971
41156
  case 17:
40972
41157
  this.handleSuccessTransaction('onSave', actBasket);
40973
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41158
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
40974
41159
  type: 'onSave',
40975
41160
  data: actBasket.getAsJson()
40976
41161
  });
40977
- return _context28.abrupt("break", 38);
41162
+ return _context28.abrupt("break", 40);
40978
41163
  case 20:
40979
41164
  emailConfig = (_this$divaBasketHandl3 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl3 !== void 0 ? _this$divaBasketHandl3 : this.getEmailConfig(); //reset the emailConfig
40980
41165
  this.divaBasketHandler.emailConfig = undefined;
@@ -41006,11 +41191,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41006
41191
  });
41007
41192
  this.handleSuccessTransaction('onSendEmail', actBasket);
41008
41193
  }
41009
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41194
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41010
41195
  type: 'onAddToBasket',
41011
41196
  data: actBasket.getAsJson()
41012
41197
  });
41013
- return _context28.abrupt("break", 38);
41198
+ return _context28.abrupt("break", 40);
41014
41199
  case 25:
41015
41200
  this.actSet().CatalogData;
41016
41201
  _context28.next = 28;
@@ -41018,7 +41203,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41018
41203
  case 28:
41019
41204
  products = _context28.sent;
41020
41205
  this.handleSuccessTransaction('onSaveProduct', actBasket);
41021
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41206
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41022
41207
  type: 'onAddToBasket',
41023
41208
  data: actBasket.getAsJson()
41024
41209
  });
@@ -41032,14 +41217,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41032
41217
  addToBasketLog = false;
41033
41218
  case 35:
41034
41219
  if (addToBasketLog) this.handleSuccessTransaction('onAddToBasket', actBasket);
41035
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41220
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41036
41221
  type: 'onAddToBasket',
41037
41222
  data: actBasket.getAsJson()
41038
41223
  });
41039
- return _context28.abrupt("break", 38);
41224
+ return _context28.abrupt("break", 40);
41040
41225
  case 38:
41226
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41227
+ type: event,
41228
+ data: actBasket.getAsJson()
41229
+ });
41230
+ return _context28.abrupt("break", 40);
41231
+ case 40:
41041
41232
  return _context28.abrupt("return");
41042
- case 39:
41233
+ case 41:
41043
41234
  case "end":
41044
41235
  return _context28.stop();
41045
41236
  }
@@ -41064,8 +41255,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41064
41255
  }, {
41065
41256
  key: "openPDFpostAsEvent",
41066
41257
  value: function openPDFpostAsEvent(mongoDBId) {
41067
- var _this$actions42, _this$actions43, _this$actions44;
41068
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.updateBreadcrumbs({
41258
+ var _this$actions44, _this$actions45, _this$actions46;
41259
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.updateBreadcrumbs({
41069
41260
  type: 'update',
41070
41261
  param: {
41071
41262
  groupId: 'SHOWROOM',
@@ -41079,7 +41270,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41079
41270
  }
41080
41271
  }
41081
41272
  });
41082
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.updateBreadcrumbs({
41273
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41083
41274
  type: 'update',
41084
41275
  param: {
41085
41276
  groupId: 'SHOWROOM',
@@ -41093,7 +41284,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41093
41284
  }
41094
41285
  }
41095
41286
  });
41096
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.openComponent({
41287
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
41097
41288
  type: 'REPORT',
41098
41289
  parameters: {
41099
41290
  id: mongoDBId
@@ -41313,14 +41504,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41313
41504
  }, {
41314
41505
  key: "subscribeToWebPlannerEvents",
41315
41506
  value: function subscribeToWebPlannerEvents() {
41316
- var _this$actions45;
41317
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.subscribeEvents(this.addToBasketEventFunction);
41507
+ var _this$actions47;
41508
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
41318
41509
  }
41319
41510
  }, {
41320
41511
  key: "unsubscribeFromWebPlannerEvents",
41321
41512
  value: function unsubscribeFromWebPlannerEvents() {
41322
- var _this$actions46;
41323
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.unSubscribeEvents(this.addToBasketEventFunction);
41513
+ var _this$actions48;
41514
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
41324
41515
  }
41325
41516
  }, {
41326
41517
  key: "initApiForLogicOnly",
@@ -41388,7 +41579,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41388
41579
  }, {
41389
41580
  key: "initBasket",
41390
41581
  value: function () {
41391
- var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites) {
41582
+ var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites, onlyCalcVariants) {
41392
41583
  var _initSetState$api$web2;
41393
41584
  var initSetState, sets, result, _sets$, set, basket;
41394
41585
  return _regeneratorRuntime.wrap(function _callee31$(_context31) {
@@ -41417,28 +41608,28 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41417
41608
  (_sets$ = sets[0]) === null || _sets$ === void 0 || _sets$.remindPriceForHash(result);
41418
41609
  }
41419
41610
  case 12:
41420
- //TODO: GLOBAL STUFF
41421
41611
  set = this.actSet();
41612
+ if (set) set.onlyCalcVariants = onlyCalcVariants;
41422
41613
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
41423
41614
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
41424
- _context31.next = 17;
41615
+ _context31.next = 18;
41425
41616
  break;
41426
41617
  }
41427
- _context31.next = 17;
41618
+ _context31.next = 18;
41428
41619
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
41429
- case 17:
41430
- _context31.next = 19;
41620
+ case 18:
41621
+ _context31.next = 20;
41431
41622
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
41432
- case 19:
41623
+ case 20:
41433
41624
  basket = _context31.sent;
41434
41625
  return _context31.abrupt("return", basket);
41435
- case 21:
41626
+ case 22:
41436
41627
  case "end":
41437
41628
  return _context31.stop();
41438
41629
  }
41439
41630
  }, _callee31, this);
41440
41631
  }));
41441
- function initBasket(_x78, _x79) {
41632
+ function initBasket(_x78, _x79, _x80) {
41442
41633
  return _initBasket.apply(this, arguments);
41443
41634
  }
41444
41635
  return initBasket;
@@ -41515,7 +41706,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41515
41706
  }
41516
41707
  }, _callee33, this);
41517
41708
  }));
41518
- function handleFavorites(_x80) {
41709
+ function handleFavorites(_x81) {
41519
41710
  return _handleFavorites.apply(this, arguments);
41520
41711
  }
41521
41712
  return handleFavorites;
@@ -41569,7 +41760,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41569
41760
  }
41570
41761
  }, _callee34, this);
41571
41762
  }));
41572
- function initSapOrderLinesFromBasket(_x81, _x82, _x83) {
41763
+ function initSapOrderLinesFromBasket(_x82, _x83, _x84) {
41573
41764
  return _initSapOrderLinesFromBasket.apply(this, arguments);
41574
41765
  }
41575
41766
  return initSapOrderLinesFromBasket;
@@ -42441,7 +42632,7 @@ var Grid = /*#__PURE__*/function () {
42441
42632
  case 0:
42442
42633
  option = _this.montageOptions[i];
42443
42634
  inUseCell = _this.cells.find(function (c, i) {
42444
- return c.InUse === i && c.Article && (!option.accessoires || Array.isArray(option.accessoires) && option.accessoires.includes(c.Article.articleCodex) || !Array.isArray(option.accessoires) && option.accessoires == c.Article.articleCodex) && (!option.range || Array.isArray(option.range) && option.range.includes(i) || !Array.isArray(option.range) && option.range == i);
42635
+ return c.InUse === i && c.Article && (!option.accessoires || Array.isArray(option.accessoires) && option.accessoires.includes(c.Article.articleCodex) || !Array.isArray(option.accessoires) && option.accessoires == c.Article.articleCodex) && (!option.range || Array.isArray(option.range) && option.range.includes(i) || !Array.isArray(option.range) && option.range == i) && (!option.onTop || _this.cells[_this.cells.length - 1].InUse === i) && (!option.onBottom || _this.cells[0].InUse === i);
42445
42636
  });
42446
42637
  specificAccessoire = option.accessoires && inUseCell !== null && inUseCell !== void 0 && inUseCell.Article ? [inUseCell.Article] : undefined;
42447
42638
  options = Array.isArray(option.optionCodex) ? option.optionCodex : [option.optionCodex];