@crystaldesign/web-planner-logic 24.13.0-beta.8 → 24.13.0-rc.0

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
@@ -428,7 +428,6 @@ var DivaApiHandler = /*#__PURE__*/function () {
428
428
  diva3DRenderingDefault: data.diva3DRenderingDefault != undefined ? data.diva3DRenderingDefault : false,
429
429
  diva3dServerMode: data.diva3dServerMode != undefined ? data.diva3dServerMode : 'SignalR',
430
430
  diva3dRenderGroup: data.diva3dRenderGroup != undefined ? data.diva3dRenderGroup : 'MYCC7',
431
- mediaServiceApiKey: data.divaMediaServiceApiKey,
432
431
  language: lang !== null && lang !== void 0 ? lang : this.getLanguage(),
433
432
  abTestCases: data.abTestCases !== undefined ? data.abTestCases : [],
434
433
  checkForProductsPrice: data.checkForProductsPrice,
@@ -484,17 +483,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
484
483
  var _this$apiConfig$baske, _this$apiConfig9;
485
484
  return (_this$apiConfig$baske = (_this$apiConfig9 = this.apiConfig) === null || _this$apiConfig9 === void 0 ? void 0 : _this$apiConfig9.basketService) !== null && _this$apiConfig$baske !== void 0 ? _this$apiConfig$baske : '';
486
485
  }
487
- }, {
488
- key: "getDivaMediaServiceApiKey",
489
- value: function getDivaMediaServiceApiKey() {
490
- var _this$divaWebConfigDa, _this$divaWebConfigDa2;
491
- return (_this$divaWebConfigDa = (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.mediaServiceApiKey) !== null && _this$divaWebConfigDa !== void 0 ? _this$divaWebConfigDa : '';
492
- }
493
486
  }, {
494
487
  key: "getLoadProductBasketParams",
495
488
  value: function getLoadProductBasketParams() {
496
- var _this$divaWebConfigDa3;
497
- return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.loadProductBasketParams;
489
+ var _this$divaWebConfigDa;
490
+ return (_this$divaWebConfigDa = this.divaWebConfigData) === null || _this$divaWebConfigDa === void 0 ? void 0 : _this$divaWebConfigDa.loadProductBasketParams;
498
491
  }
499
492
  }, {
500
493
  key: "get3DServerUrl",
@@ -505,20 +498,20 @@ var DivaApiHandler = /*#__PURE__*/function () {
505
498
  }, {
506
499
  key: "doCheckForProductsPrice",
507
500
  value: function doCheckForProductsPrice() {
508
- var _this$divaWebConfigDa4;
509
- return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.checkForProductsPrice;
501
+ var _this$divaWebConfigDa2;
502
+ return (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.checkForProductsPrice;
510
503
  }
511
504
  }, {
512
505
  key: "getReportConfigIdentifier",
513
506
  value: function getReportConfigIdentifier() {
514
- var _this$divaWebConfigDa5;
515
- return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.reportConfigIdentifier;
507
+ var _this$divaWebConfigDa3;
508
+ return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.reportConfigIdentifier;
516
509
  }
517
510
  }, {
518
511
  key: "getPrintOptions",
519
512
  value: function getPrintOptions() {
520
- var _this$divaWebConfigDa6;
521
- var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.reportConfig;
513
+ var _this$divaWebConfigDa4;
514
+ var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.reportConfig;
522
515
  return {
523
516
  Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
524
517
  PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
@@ -538,8 +531,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
538
531
  }, {
539
532
  key: "get3DRenderGroup",
540
533
  value: function get3DRenderGroup() {
541
- var _this$divaWebConfigDa7, _this$divaWebConfigDa8;
542
- return (_this$divaWebConfigDa7 = (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dRenderGroup) !== null && _this$divaWebConfigDa7 !== void 0 ? _this$divaWebConfigDa7 : '';
534
+ var _this$divaWebConfigDa5, _this$divaWebConfigDa6;
535
+ return (_this$divaWebConfigDa5 = (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.diva3dRenderGroup) !== null && _this$divaWebConfigDa5 !== void 0 ? _this$divaWebConfigDa5 : '';
543
536
  }
544
537
  }, {
545
538
  key: "getServerId",
@@ -576,86 +569,86 @@ var DivaApiHandler = /*#__PURE__*/function () {
576
569
  }, {
577
570
  key: "getDiva3dStaticBGImage",
578
571
  value: function getDiva3dStaticBGImage() {
579
- var _this$divaWebConfigDa9;
580
- return (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.diva3dStaticBGImage;
572
+ var _this$divaWebConfigDa7;
573
+ return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.diva3dStaticBGImage;
581
574
  }
582
575
  }, {
583
576
  key: "getDiva3dStaticBGImage_DefaultRoomList",
584
577
  value: function getDiva3dStaticBGImage_DefaultRoomList() {
585
- var _this$divaWebConfigDa10, _this$divaWebConfigDa11;
586
- 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;
578
+ var _this$divaWebConfigDa8, _this$divaWebConfigDa9;
579
+ return ((_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.diva3dStaticBGImage_DefaultRoomList;
587
580
  }
588
581
  }, {
589
582
  key: "getDiva3DAllowDefaultCatRoomList",
590
583
  value: function getDiva3DAllowDefaultCatRoomList() {
591
- var _this$divaWebConfigDa12;
592
- return (_this$divaWebConfigDa12 = this.divaWebConfigData) === null || _this$divaWebConfigDa12 === void 0 ? void 0 : _this$divaWebConfigDa12.diva3DAllowDefaultCatRoomList;
584
+ var _this$divaWebConfigDa10;
585
+ return (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3DAllowDefaultCatRoomList;
593
586
  }
594
587
  }, {
595
588
  key: "doAllowSetPlanner",
596
589
  value: function doAllowSetPlanner() {
597
- var _this$divaWebConfigDa13;
598
- return (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.doAllowSetPlanner;
590
+ var _this$divaWebConfigDa11;
591
+ return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.doAllowSetPlanner;
599
592
  }
600
593
  }, {
601
594
  key: "getHidePlanner",
602
595
  value: function getHidePlanner() {
603
- var _this$divaWebConfigDa14;
604
- return !!((_this$divaWebConfigDa14 = this.divaWebConfigData) !== null && _this$divaWebConfigDa14 !== void 0 && (_this$divaWebConfigDa14 = _this$divaWebConfigDa14.viewConfig) !== null && _this$divaWebConfigDa14 !== void 0 && _this$divaWebConfigDa14.hidePlanner);
596
+ var _this$divaWebConfigDa12;
597
+ return !!((_this$divaWebConfigDa12 = this.divaWebConfigData) !== null && _this$divaWebConfigDa12 !== void 0 && (_this$divaWebConfigDa12 = _this$divaWebConfigDa12.viewConfig) !== null && _this$divaWebConfigDa12 !== void 0 && _this$divaWebConfigDa12.hidePlanner);
605
598
  }
606
599
  }, {
607
600
  key: "getDoShowAR",
608
601
  value: function getDoShowAR() {
609
- var _this$divaWebConfigDa15;
610
- 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;
602
+ var _this$divaWebConfigDa13;
603
+ return (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 || (_this$divaWebConfigDa13 = _this$divaWebConfigDa13.viewConfig) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.enableAR;
611
604
  }
612
605
  }, {
613
606
  key: "forceShowRTV",
614
607
  value: function forceShowRTV() {
615
- var _this$divaWebConfigDa16;
616
- 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;
608
+ var _this$divaWebConfigDa14;
609
+ return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 || (_this$divaWebConfigDa14 = _this$divaWebConfigDa14.viewConfig) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.forceRTV;
617
610
  }
618
611
  }, {
619
612
  key: "getDoShowRTV",
620
613
  value: function getDoShowRTV() {
621
- var _this$divaWebConfigDa17;
622
- 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;
614
+ var _this$divaWebConfigDa15;
615
+ return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 || (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.enableRTV;
623
616
  }
624
617
  }, {
625
618
  key: "getEnableRTVUnityKombi",
626
619
  value: function getEnableRTVUnityKombi() {
627
- var _this$divaWebConfigDa18;
628
- return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.viewConfig.enableRtvUnityKombi);
620
+ var _this$divaWebConfigDa16;
621
+ return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.viewConfig.enableRtvUnityKombi);
629
622
  }
630
623
  }, {
631
624
  key: "getDoDisablePlanner2D",
632
625
  value: function getDoDisablePlanner2D() {
633
- var _this$divaWebConfigDa19;
634
- return !!((_this$divaWebConfigDa19 = this.divaWebConfigData) !== null && _this$divaWebConfigDa19 !== void 0 && _this$divaWebConfigDa19.doDisablePlanner2D);
626
+ var _this$divaWebConfigDa17;
627
+ return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
635
628
  }
636
629
  }, {
637
630
  key: "getRoomListInProduct",
638
631
  value: function getRoomListInProduct() {
639
- var _this$divaWebConfigDa20;
640
- return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && (_this$divaWebConfigDa20 = _this$divaWebConfigDa20.viewConfig) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.roomListInProduct);
632
+ var _this$divaWebConfigDa18;
633
+ return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
641
634
  }
642
635
  }, {
643
636
  key: "getPlannerType",
644
637
  value: function getPlannerType() {
645
- var _this$divaWebConfigDa21;
646
- 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;
638
+ var _this$divaWebConfigDa19;
639
+ return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 || (_this$divaWebConfigDa19 = _this$divaWebConfigDa19.viewConfig) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.plannerType;
647
640
  }
648
641
  }, {
649
642
  key: "getLoadSupplierColors",
650
643
  value: function getLoadSupplierColors() {
651
- var _this$divaWebConfigDa22;
652
- return !!((_this$divaWebConfigDa22 = this.divaWebConfigData) !== null && _this$divaWebConfigDa22 !== void 0 && _this$divaWebConfigDa22.loadSupplierColors);
644
+ var _this$divaWebConfigDa20;
645
+ return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
653
646
  }
654
647
  }, {
655
648
  key: "showSelectionModeZero",
656
649
  value: function showSelectionModeZero() {
657
- var _this$divaWebConfigDa23;
658
- return !!((_this$divaWebConfigDa23 = this.divaWebConfigData) !== null && _this$divaWebConfigDa23 !== void 0 && _this$divaWebConfigDa23.showSelectionModeZero);
650
+ var _this$divaWebConfigDa21;
651
+ return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
659
652
  }
660
653
  }, {
661
654
  key: "ruleDescSeperator",
@@ -675,8 +668,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
675
668
  }, {
676
669
  key: "getDoCheckVariantData",
677
670
  value: function getDoCheckVariantData() {
678
- var _this$divaWebConfigDa24;
679
- return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.doCheckVariantData;
671
+ var _this$divaWebConfigDa22;
672
+ return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.doCheckVariantData;
680
673
  }
681
674
  }, {
682
675
  key: "setI18n",
@@ -769,50 +762,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
769
762
  }, {
770
763
  key: "getViewConfig",
771
764
  value: function getViewConfig() {
772
- var _this$divaWebConfigDa25;
773
- return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.viewConfig;
765
+ var _this$divaWebConfigDa23;
766
+ return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.viewConfig;
774
767
  }
775
768
  }, {
776
769
  key: "getEmailConfig",
777
770
  value: function getEmailConfig() {
778
- var _this$divaWebConfigDa26;
779
- return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.emailConfig;
771
+ var _this$divaWebConfigDa24;
772
+ return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.emailConfig;
780
773
  }
781
774
  }, {
782
775
  key: "getABTestCases",
783
776
  value: function getABTestCases() {
784
- var _this$divaWebConfigDa27, _this$divaWebConfigDa28;
785
- return (_this$divaWebConfigDa27 = (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.abTestCases) !== null && _this$divaWebConfigDa27 !== void 0 ? _this$divaWebConfigDa27 : [];
777
+ var _this$divaWebConfigDa25, _this$divaWebConfigDa26;
778
+ return (_this$divaWebConfigDa25 = (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.abTestCases) !== null && _this$divaWebConfigDa25 !== void 0 ? _this$divaWebConfigDa25 : [];
786
779
  }
787
780
  }, {
788
781
  key: "getBarrierConfig",
789
782
  value: function getBarrierConfig() {
790
- var _this$divaWebConfigDa29;
791
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.barrierConfig;
783
+ var _this$divaWebConfigDa27;
784
+ return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.barrierConfig;
792
785
  }
793
786
  }, {
794
787
  key: "getTemplateConfig",
795
788
  value: function getTemplateConfig() {
796
- var _this$divaWebConfigDa30;
797
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.templateConfig;
789
+ var _this$divaWebConfigDa28;
790
+ return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.templateConfig;
798
791
  }
799
792
  }, {
800
793
  key: "showDivaNr",
801
794
  value: function showDivaNr() {
802
- var _this$divaWebConfigDa31;
803
- return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.showDivaNr;
795
+ var _this$divaWebConfigDa29;
796
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.showDivaNr;
804
797
  }
805
798
  }, {
806
799
  key: "onErrorHandling",
807
800
  value: function onErrorHandling() {
808
- var _this$divaWebConfigDa32;
809
- return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.onErrorHandling;
801
+ var _this$divaWebConfigDa30;
802
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.onErrorHandling;
810
803
  }
811
804
  }, {
812
805
  key: "diva3DRenderingDefault",
813
806
  value: function diva3DRenderingDefault() {
814
- var _this$divaWebConfigDa33;
815
- return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.diva3DRenderingDefault;
807
+ var _this$divaWebConfigDa31;
808
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.diva3DRenderingDefault;
816
809
  }
817
810
  }, {
818
811
  key: "getJwt",
@@ -827,8 +820,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
827
820
  }, {
828
821
  key: "getUseMask",
829
822
  value: function getUseMask() {
830
- var _this$divaWebConfigDa34;
831
- return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.useMask;
823
+ var _this$divaWebConfigDa32;
824
+ return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.useMask;
832
825
  }
833
826
  }, {
834
827
  key: "apiUrl",
@@ -900,8 +893,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
900
893
  return '/v1/products/' + productId + '/list';
901
894
  }
902
895
  }, {
903
- key: "getProductBasketUrl",
904
- value: function getProductBasketUrl(key, value) {
896
+ key: "getProductByKeyValueUrl",
897
+ value: function getProductByKeyValueUrl(key, value) {
905
898
  return "/v1/products/basket?key=".concat(key, "&value=").concat(value);
906
899
  }
907
900
  }, {
@@ -1348,14 +1341,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1348
1341
  }, {
1349
1342
  key: "dontLoadAdditionalModelInfos",
1350
1343
  get: function get() {
1351
- var _this$divaWebConfigDa35;
1352
- return (_this$divaWebConfigDa35 = this.divaWebConfigData) === null || _this$divaWebConfigDa35 === void 0 ? void 0 : _this$divaWebConfigDa35.dontLoadAdditionalModelInfos;
1344
+ var _this$divaWebConfigDa33;
1345
+ return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadAdditionalModelInfos;
1353
1346
  }
1354
1347
  }, {
1355
1348
  key: "dontLoadCatalogEditorLiteMask",
1356
1349
  get: function get() {
1357
- var _this$divaWebConfigDa36;
1358
- return (_this$divaWebConfigDa36 = this.divaWebConfigData) === null || _this$divaWebConfigDa36 === void 0 ? void 0 : _this$divaWebConfigDa36.dontLoadCatalogEditorLiteMask;
1350
+ var _this$divaWebConfigDa34;
1351
+ return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.dontLoadCatalogEditorLiteMask;
1359
1352
  }
1360
1353
  }, {
1361
1354
  key: "OrganizationId",
@@ -1614,6 +1607,16 @@ var ArticleOptionData = /*#__PURE__*/function () {
1614
1607
  get: function get() {
1615
1608
  return this.opt.catalogOPT.contentItemId;
1616
1609
  }
1610
+ }, {
1611
+ key: "showSearchbar",
1612
+ get: function get() {
1613
+ return this.opt.catalogOPT.showSearchbar;
1614
+ }
1615
+ }, {
1616
+ key: "showFilter",
1617
+ get: function get() {
1618
+ return this.opt.catalogOPT.showFilter;
1619
+ }
1617
1620
  }, {
1618
1621
  key: "pdfUrl",
1619
1622
  get: function get() {
@@ -1771,6 +1774,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1771
1774
  get: function get() {
1772
1775
  return this.opv.codex;
1773
1776
  }
1777
+ }, {
1778
+ key: "isNotRelevant",
1779
+ get: function get() {
1780
+ return this.opv.catalogOPV.isNotRelevant;
1781
+ }
1774
1782
  }, {
1775
1783
  key: "vCodex",
1776
1784
  get: function get() {
@@ -1921,6 +1929,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1921
1929
  get: function get() {
1922
1930
  return this.opv.catalogOPV.contentItemId;
1923
1931
  }
1932
+ }, {
1933
+ key: "groupContentItemId",
1934
+ get: function get() {
1935
+ return this.opv.catalogOPV.groupContentItemId;
1936
+ }
1924
1937
  }, {
1925
1938
  key: "subArticleCodex",
1926
1939
  get: function get() {
@@ -16060,6 +16073,10 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16060
16073
  this.opv.onRule = prop.Value;
16061
16074
  } else if (prop.Codex === 'CONTENT_ITEM') {
16062
16075
  this.opv.contentItemId = prop.Value;
16076
+ } else if (prop.Codex === 'IS_NOT_RELEVANT') {
16077
+ this.opv.isNotRelevant = prop.Value;
16078
+ } else if (prop.Codex === 'GROUP_CONTENT_ITEM') {
16079
+ this.opv.groupContentItemId = prop.Value;
16063
16080
  } else if (prop.Codex === 'SET_BY_RULE') {
16064
16081
  this.opv.setByRule = prop.Value;
16065
16082
  } else {
@@ -16097,6 +16114,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16097
16114
  get: function get() {
16098
16115
  return this.opv.vCodex;
16099
16116
  }
16117
+ }, {
16118
+ key: "isNotRelevant",
16119
+ get: function get() {
16120
+ return this.opv.isNotRelevant;
16121
+ }
16100
16122
  }, {
16101
16123
  key: "name",
16102
16124
  get: function get() {
@@ -16230,6 +16252,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16230
16252
  get: function get() {
16231
16253
  return this.opv.contentItemId;
16232
16254
  }
16255
+ }, {
16256
+ key: "groupContentItemId",
16257
+ get: function get() {
16258
+ return this.opv.groupContentItemId;
16259
+ }
16233
16260
  }, {
16234
16261
  key: "metaData",
16235
16262
  get: function get() {
@@ -16467,6 +16494,8 @@ var CatalogArticleData = /*#__PURE__*/function () {
16467
16494
  this.catalogArticle.maxPlanningCount = Number(prop.Value);
16468
16495
  } else if (_key == 'CONTENT_ITEM') {
16469
16496
  this.catalogArticle.contentItemId = prop.Value;
16497
+ } else if (_key == 'GROUP_CONTENT_ITEM') {
16498
+ this.catalogArticle.groupContentItemId = prop.Value;
16470
16499
  } else if (_key == 'HAS3D') {
16471
16500
  this.catalogArticle.isVisualized = prop.Value;
16472
16501
  } else {
@@ -16517,6 +16546,11 @@ var CatalogArticleData = /*#__PURE__*/function () {
16517
16546
  get: function get() {
16518
16547
  return this.catalogArticle.contentItemId;
16519
16548
  }
16549
+ }, {
16550
+ key: "groupContentItemId",
16551
+ get: function get() {
16552
+ return this.catalogArticle.groupContentItemId;
16553
+ }
16520
16554
  }, {
16521
16555
  key: "articleCodex",
16522
16556
  get: function get() {
@@ -17111,7 +17145,8 @@ var CatalogArticleData = /*#__PURE__*/function () {
17111
17145
  isVisualized: catalogArticle.isVisualized,
17112
17146
  configStepKeys: [],
17113
17147
  metaData: catalogArticle.metaDataView,
17114
- contentItemId: catalogArticle.contentItemId
17148
+ contentItemId: catalogArticle.contentItemId,
17149
+ groupContentItemId: catalogArticle.groupContentItemId
17115
17150
  });
17116
17151
  }
17117
17152
  }
@@ -17847,6 +17882,12 @@ var OptionCatalogData = /*#__PURE__*/function () {
17847
17882
  case 'INFO_URL':
17848
17883
  this.opt.url = prop.Value;
17849
17884
  break;
17885
+ case 'SHOW_SEARCHBAR':
17886
+ this.opt.showSearchbar = prop.Value == '1';
17887
+ break;
17888
+ case 'SHOW_FILTER':
17889
+ this.opt.showFilter = prop.Value == '1';
17890
+ break;
17850
17891
  case 'INFO_PDF':
17851
17892
  this.opt.pdfUrl = prop.Value;
17852
17893
  break;
@@ -18047,6 +18088,16 @@ var OptionCatalogData = /*#__PURE__*/function () {
18047
18088
  get: function get() {
18048
18089
  return this.opt.url;
18049
18090
  }
18091
+ }, {
18092
+ key: "showSearchbar",
18093
+ get: function get() {
18094
+ return this.opt.showSearchbar;
18095
+ }
18096
+ }, {
18097
+ key: "showFilter",
18098
+ get: function get() {
18099
+ return this.opt.showFilter;
18100
+ }
18050
18101
  }, {
18051
18102
  key: "pdfUrl",
18052
18103
  get: function get() {
@@ -18143,7 +18194,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
18143
18194
  brandName: json.Brandname,
18144
18195
  mediaUrl: '',
18145
18196
  // https://retail.diva-portal.de/files/33/9680c4a3-fc60-4541-8738-4859d9b24e9d/";
18146
- imageBaseUrl: '',
18147
18197
  subFolder: json.SubFolder,
18148
18198
  longDescription: json.LongDescription,
18149
18199
  longDescription_locales: json.LongDescription_locales,
@@ -18194,6 +18244,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18194
18244
  // die TypeNr wird im Planer bei der Artikelbeschreibung mit () dazugeschrieben
18195
18245
  startFilterParams: '',
18196
18246
  // 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)
18247
+ startHideArticles: [],
18248
+ // ist ein array mit articlesCodexes welche zu beginn im planner ausgeblendet werden
18197
18249
  useGlobalSVGScale: false,
18198
18250
  // SVG größe wird abhängig von den Artikelmaße gestreckt
18199
18251
  useBoxPlanner: false,
@@ -18218,9 +18270,12 @@ var DivaCatalogData = /*#__PURE__*/function () {
18218
18270
  //DP Logik
18219
18271
  reconfigAfterArticleDocked: false,
18220
18272
  ignoreLayerAVC: false,
18221
- // !! Obsolete - AVC auch docken, wenn auf demselben Layer LEA??
18273
+ //
18222
18274
  ignoreLayerAVOAVU: false,
18223
- // !! Obsolete - AVOAVU auch docken, wenn auf demselben Layer LEA??
18275
+ //
18276
+ ignoreLayerAVNAVS: false,
18277
+ //
18278
+
18224
18279
  dockAccOnAvoOnly: false,
18225
18280
  // ist bei Küssnacht dass Acc nicht an nach unten schauenden Dockingpoints angedockt werden können sondern immer nur oben drauf verplant werden können
18226
18281
  showAccOnDpOnly: false,
@@ -18326,6 +18381,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18326
18381
  DockNone: false
18327
18382
  },
18328
18383
  startFilter: [],
18384
+ startHideArticles: this.startHideArticles,
18329
18385
  showAllItemsInPlanner: this.catalogData.showAllItemsInPlanner,
18330
18386
  plannerConfiguration: this.getPlannerConfig()
18331
18387
  };
@@ -18345,9 +18401,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18345
18401
  key: "getMediaURL",
18346
18402
  value: function getMediaURL(subFolder) {
18347
18403
  var retval = '';
18348
- if (this.catalogData.imageBaseUrl != '') {
18349
- retval = this.catalogData.imageBaseUrl;
18350
- } else if (this.api.getBaseUrl().substring(0, 4) == 'http') {
18404
+ if (this.api.getBaseUrl().substring(0, 4) == 'http') {
18351
18405
  retval = this.api.getBaseUrl() + '/' + this.api.getServerId() + '/';
18352
18406
  }
18353
18407
  if (subFolder != '') retval += subFolder + '/';
@@ -18485,6 +18539,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18485
18539
  _this.catalogData.showTypeNrInPlanner = item.Value == '1';
18486
18540
  } else if (item.Codex == 'STARTFILTERPARAMS') {
18487
18541
  _this.catalogData.startFilterParams = String(item.Value);
18542
+ } else if (item.Codex == 'STARTHIDEARTICLES') {
18543
+ _this.catalogData.startHideArticles = item.Value.split(';');
18488
18544
  } else if (item.Codex == 'USEGLOBALSVGSCALE') {
18489
18545
  _this.catalogData.useGlobalSVGScale = item.Value == '1';
18490
18546
  } else if (item.Codex == 'USEBOXPLANNER') {
@@ -18519,6 +18575,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18519
18575
  _this.catalogData.ignoreLayerAVC = item.Value == '1';
18520
18576
  } else if (item.Codex == 'IGNORELAYERAVOAVU') {
18521
18577
  _this.catalogData.ignoreLayerAVOAVU = item.Value == '1';
18578
+ } else if (item.Codex == 'IGNORELAYERAVNAVS') {
18579
+ _this.catalogData.ignoreLayerAVNAVS = item.Value == '1';
18522
18580
  } else if (item.Codex == 'DOCKACCONAVOONLY') {
18523
18581
  //Accessoires können nur aufwärts verplant werden. (Für Küssnacht)
18524
18582
  _this.catalogData.dockAccOnAvoOnly = item.Value == '1';
@@ -18803,6 +18861,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18803
18861
  groupName: groupTitle,
18804
18862
  metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
18805
18863
  contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
18864
+ groupContentItemId: this.catalogArticles[catPlanArticle.codex].groupContentItemId,
18806
18865
  partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
18807
18866
  };
18808
18867
  this.plannerPaletteViewInfo.catalogPlannerArticles.push(catPlanArtView);
@@ -18861,6 +18920,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18861
18920
  groupName: groupTitle,
18862
18921
  metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
18863
18922
  contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
18923
+ groupContentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
18864
18924
  partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
18865
18925
  };
18866
18926
  //nicht ausmultiplizierte Elemente
@@ -19080,6 +19140,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
19080
19140
  return {
19081
19141
  ignoreLayerAVC: this.catalogData.ignoreLayerAVC,
19082
19142
  ignoreLayerAVOAVU: this.catalogData.ignoreLayerAVOAVU,
19143
+ ignoreLayerAVNAVS: this.catalogData.ignoreLayerAVNAVS,
19083
19144
  showAccOnDpOnly: this.catalogData.showAccOnDpOnly,
19084
19145
  dockAccOnAvoOnly: this.catalogData.dockAccOnAvoOnly,
19085
19146
  hideAccessoriesInPlanner: this.catalogData.accessorieStepAsPlanner,
@@ -19161,6 +19222,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19161
19222
  get: function get() {
19162
19223
  return this.catalogData.startFilterParams;
19163
19224
  }
19225
+ }, {
19226
+ key: "startHideArticles",
19227
+ get: function get() {
19228
+ return this.catalogData.startHideArticles;
19229
+ }
19164
19230
  }, {
19165
19231
  key: "replaceModeActive",
19166
19232
  get: function get() {
@@ -20024,7 +20090,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20024
20090
  }, {
20025
20091
  key: "isDisabled",
20026
20092
  get: function get() {
20027
- return this.articleOptionState.disabled || (this.valCodex == 'OPVNR' || this.valCodex == 'OPVNRR' || this.valCodex == 'OPVNR_0') && this.visibleCount == 1;
20093
+ var _this$val3;
20094
+ return this.articleOptionState.disabled || !!((_this$val3 = this.val) !== null && _this$val3 !== void 0 && _this$val3.isNotRelevant) && this.visibleCount == 1;
20028
20095
  },
20029
20096
  set: function set(isDisabled) {
20030
20097
  this.articleOptionState.disabled = isDisabled;
@@ -20032,7 +20099,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20032
20099
  }, {
20033
20100
  key: "isDoShow",
20034
20101
  get: function get() {
20035
- return this.articleOptionState.doShow && (this.valCodex != 'OPVNR' && this.valCodex != 'OPVNRR' && this.valCodex != 'OPVNR_0' || this.visibleCount > 1);
20102
+ var _this$val4;
20103
+ return this.articleOptionState.doShow && (!((_this$val4 = this.val) !== null && _this$val4 !== void 0 && _this$val4.isNotRelevant) || this.visibleCount > 1);
20036
20104
  },
20037
20105
  set: function set(doShow) {
20038
20106
  this.articleOptionState.doShow = doShow;
@@ -20076,14 +20144,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20076
20144
  }, {
20077
20145
  key: "priceId",
20078
20146
  get: function get() {
20079
- var _this$val$priceId, _this$val3;
20080
- 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 : '';
20147
+ var _this$val$priceId, _this$val5;
20148
+ return (_this$val$priceId = (_this$val5 = this.val) === null || _this$val5 === void 0 ? void 0 : _this$val5.priceId) !== null && _this$val$priceId !== void 0 ? _this$val$priceId : '';
20081
20149
  }
20082
20150
  }, {
20083
20151
  key: "targetOption",
20084
20152
  get: function get() {
20085
- var _this$val4;
20086
- return (_this$val4 = this.val) === null || _this$val4 === void 0 ? void 0 : _this$val4.targetOption;
20153
+ var _this$val6;
20154
+ return (_this$val6 = this.val) === null || _this$val6 === void 0 ? void 0 : _this$val6.targetOption;
20087
20155
  }
20088
20156
  }, {
20089
20157
  key: "targetPPGPrefixes",
@@ -20100,14 +20168,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20100
20168
  }, {
20101
20169
  key: "quantity",
20102
20170
  get: function get() {
20103
- var _this$val$quantity, _this$val5;
20104
- 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;
20171
+ var _this$val$quantity, _this$val7;
20172
+ return (_this$val$quantity = (_this$val7 = this.val) === null || _this$val7 === void 0 ? void 0 : _this$val7.quantity) !== null && _this$val$quantity !== void 0 ? _this$val$quantity : 1;
20105
20173
  }
20106
20174
  }, {
20107
20175
  key: "ocd",
20108
20176
  get: function get() {
20109
- var _this$val6;
20110
- return (_this$val6 = this.val) === null || _this$val6 === void 0 ? void 0 : _this$val6.ocd;
20177
+ var _this$val8;
20178
+ return (_this$val8 = this.val) === null || _this$val8 === void 0 ? void 0 : _this$val8.ocd;
20111
20179
  }
20112
20180
  }, {
20113
20181
  key: "optionOcd",
@@ -20117,8 +20185,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20117
20185
  }, {
20118
20186
  key: "value",
20119
20187
  get: function get() {
20120
- var _this$val7;
20121
- return (_this$val7 = this.val) === null || _this$val7 === void 0 ? void 0 : _this$val7.value;
20188
+ var _this$val9;
20189
+ return (_this$val9 = this.val) === null || _this$val9 === void 0 ? void 0 : _this$val9.value;
20122
20190
  }
20123
20191
  }, {
20124
20192
  key: "vCodex",
@@ -20146,8 +20214,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20146
20214
  get: function get() {
20147
20215
  if (this.articleOptionState.retailArticleNr) return this.articleOptionState.retailArticleNr;
20148
20216
  if (this.articleOptionState.option.articlePlaceholder) {
20149
- var _this$val8;
20150
- return (_this$val8 = this.val) === null || _this$val8 === void 0 ? void 0 : _this$val8.subRetailArticleNr;
20217
+ var _this$val10;
20218
+ return (_this$val10 = this.val) === null || _this$val10 === void 0 ? void 0 : _this$val10.subRetailArticleNr;
20151
20219
  }
20152
20220
  return undefined;
20153
20221
  },
@@ -20170,8 +20238,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20170
20238
  }, {
20171
20239
  key: "visibleInSummary",
20172
20240
  value: function visibleInSummary(aritcle) {
20173
- var _this$val9;
20174
- 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);
20241
+ var _this$val11, _this$val12;
20242
+ return !this.isInvisible && (this.selectionmode != 0 || (this.visibleCount > 1 || this.isFreeText) && aritcle.set.api.showSelectionModeZero()) && this.isDoShow && !((_this$val11 = this.val) !== null && _this$val11 !== void 0 && _this$val11.isNotRelevant) && !this.isHiddenByDefaultValueForOptions(aritcle) && !((_this$val12 = this.val) !== null && _this$val12 !== void 0 && _this$val12.hideInSummary);
20175
20243
  }
20176
20244
  }, {
20177
20245
  key: "isHiddenByDefaultValueForOptions",
@@ -20192,45 +20260,45 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20192
20260
  }, {
20193
20261
  key: "subArticleCodex",
20194
20262
  get: function get() {
20195
- var _this$val10;
20196
- return (_this$val10 = this.val) === null || _this$val10 === void 0 ? void 0 : _this$val10.subArticleCodex;
20263
+ var _this$val13;
20264
+ return (_this$val13 = this.val) === null || _this$val13 === void 0 ? void 0 : _this$val13.subArticleCodex;
20197
20265
  }
20198
20266
  }, {
20199
20267
  key: "subArticleName",
20200
20268
  get: function get() {
20201
- var _this$val11;
20202
- return (_this$val11 = this.val) === null || _this$val11 === void 0 ? void 0 : _this$val11.subArticleName;
20269
+ var _this$val14;
20270
+ return (_this$val14 = this.val) === null || _this$val14 === void 0 ? void 0 : _this$val14.subArticleName;
20203
20271
  }
20204
20272
  }, {
20205
20273
  key: "measureUnit",
20206
20274
  get: function get() {
20207
- var _this$val12;
20208
- return (_this$val12 = this.val) === null || _this$val12 === void 0 ? void 0 : _this$val12.measureUnit;
20275
+ var _this$val15;
20276
+ return (_this$val15 = this.val) === null || _this$val15 === void 0 ? void 0 : _this$val15.measureUnit;
20209
20277
  }
20210
20278
  }, {
20211
20279
  key: "priceUnit",
20212
20280
  get: function get() {
20213
- var _this$val$priceUnit, _this$val13, _this$val14, _this$val$parent;
20214
- 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;
20281
+ var _this$val$priceUnit, _this$val16, _this$val17, _this$val$parent;
20282
+ var retval = (_this$val$priceUnit = (_this$val16 = this.val) === null || _this$val16 === void 0 ? void 0 : _this$val16.priceUnit) !== null && _this$val$priceUnit !== void 0 ? _this$val$priceUnit : (_this$val17 = this.val) !== null && _this$val17 !== void 0 && _this$val17.isParentOPVG ? (_this$val$parent = this.val.parent) === null || _this$val$parent === void 0 ? void 0 : _this$val$parent.priceUnit : undefined;
20215
20283
  return retval;
20216
20284
  }
20217
20285
  }, {
20218
20286
  key: "isPercentage",
20219
20287
  get: function get() {
20220
- var _this$val15;
20221
- return (_this$val15 = this.val) === null || _this$val15 === void 0 ? void 0 : _this$val15.isPercentage;
20288
+ var _this$val18;
20289
+ return (_this$val18 = this.val) === null || _this$val18 === void 0 ? void 0 : _this$val18.isPercentage;
20222
20290
  }
20223
20291
  }, {
20224
20292
  key: "replaceMainArtNr",
20225
20293
  get: function get() {
20226
- var _this$val16;
20227
- return (_this$val16 = this.val) === null || _this$val16 === void 0 ? void 0 : _this$val16.subarticleReplaceMainArticleNr;
20294
+ var _this$val19;
20295
+ return (_this$val19 = this.val) === null || _this$val19 === void 0 ? void 0 : _this$val19.subarticleReplaceMainArticleNr;
20228
20296
  }
20229
20297
  }, {
20230
20298
  key: "subArticleTypeNr",
20231
20299
  get: function get() {
20232
- var _this$val17;
20233
- return (_this$val17 = this.val) === null || _this$val17 === void 0 ? void 0 : _this$val17.subArticleTypeNr;
20300
+ var _this$val20;
20301
+ return (_this$val20 = this.val) === null || _this$val20 === void 0 ? void 0 : _this$val20.subArticleTypeNr;
20234
20302
  }
20235
20303
  }, {
20236
20304
  key: "isVisibleFreeText",
@@ -20256,14 +20324,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20256
20324
  }, {
20257
20325
  key: "isOnlyFreeText",
20258
20326
  get: function get() {
20259
- var _this$val18;
20260
- return ((_this$val18 = this.val) === null || _this$val18 === void 0 ? void 0 : _this$val18.isFreeText) && this.visibleCount == 1;
20327
+ var _this$val21;
20328
+ return ((_this$val21 = this.val) === null || _this$val21 === void 0 ? void 0 : _this$val21.isFreeText) && this.visibleCount == 1;
20261
20329
  }
20262
20330
  }, {
20263
20331
  key: "isFreeText",
20264
20332
  get: function get() {
20265
- var _this$val19;
20266
- return (_this$val19 = this.val) === null || _this$val19 === void 0 ? void 0 : _this$val19.isFreeText;
20333
+ var _this$val22;
20334
+ return (_this$val22 = this.val) === null || _this$val22 === void 0 ? void 0 : _this$val22.isFreeText;
20267
20335
  }
20268
20336
  }, {
20269
20337
  key: "freeText",
@@ -20308,8 +20376,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20308
20376
  }, {
20309
20377
  key: "warning",
20310
20378
  get: function get() {
20311
- var _this$val20;
20312
- if ((_this$val20 = this.val) !== null && _this$val20 !== void 0 && _this$val20.isFreeText) {
20379
+ var _this$val23;
20380
+ if ((_this$val23 = this.val) !== null && _this$val23 !== void 0 && _this$val23.isFreeText) {
20313
20381
  if (this.val.measureMaximum && Number(this.freeText) > Number(this.val.measureMaximum) || this.val.measureMinimum && Number(this.freeText) < Number(this.val.measureMinimum)) {
20314
20382
  return 'measureWarning';
20315
20383
  }
@@ -23578,7 +23646,7 @@ var DivaArticle = /*#__PURE__*/function () {
23578
23646
  break;
23579
23647
  }
23580
23648
  _context.next = 4;
23581
- return Promise.resolve().then(function () { return require('./ShelfPlanner-cf726af7.js'); });
23649
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-52374110.js'); });
23582
23650
  case 4:
23583
23651
  _yield$import = _context.sent;
23584
23652
  ShelfPlanner = _yield$import["default"];
@@ -24768,7 +24836,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24768
24836
  break;
24769
24837
  }
24770
24838
  _context6.next = 15;
24771
- return this.updateCfgValues(actArticle, valuesArray[i], {});
24839
+ return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
24772
24840
  case 15:
24773
24841
  newPartlistArticlesToLoad = _context6.sent;
24774
24842
  _actArticle$checkDefa = actArticle.checkDefaultGlobalOpt(valuesArray[i]), variantValues = _actArticle$checkDefa.variantValues, triggerUpdate = _actArticle$checkDefa.triggerUpdate;
@@ -24782,7 +24850,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24782
24850
  }
24783
24851
  _context6.t0 = partlistArticlesToLoad;
24784
24852
  _context6.next = 24;
24785
- return this.updateCfgValues(actArticle, valuesArray[i], {});
24853
+ return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
24786
24854
  case 24:
24787
24855
  _context6.t1 = _context6.sent;
24788
24856
  partlistArticlesToLoad = _context6.t0.concat.call(_context6.t0, _context6.t1);
@@ -24797,7 +24865,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24797
24865
  case 32:
24798
24866
  _context6.t2 = partlistArticlesToLoad;
24799
24867
  _context6.next = 35;
24800
- return this.updateCfgValues(actArticle, {}, {});
24868
+ return this.updateCfgValues(actArticle, {}, {}, undefined, undefined, from == 'calcVariant');
24801
24869
  case 35:
24802
24870
  _context6.t3 = _context6.sent;
24803
24871
  partlistArticlesToLoad = _context6.t2.concat.call(_context6.t2, _context6.t3);
@@ -24844,10 +24912,10 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24844
24912
  break;
24845
24913
  }
24846
24914
  _context6.next = 59;
24847
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
24915
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24848
24916
  case 59:
24849
24917
  _context6.next = 61;
24850
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
24918
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24851
24919
  case 61:
24852
24920
  _i++;
24853
24921
  _context6.next = 54;
@@ -25117,7 +25185,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25117
25185
  }, {
25118
25186
  key: "updateCfgValues",
25119
25187
  value: (function () {
25120
- var _updateCfgValues = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee10(article, newConfigValues, alreadyInitializedValues, dontCalcPrice, dontLoadPartlist) {
25188
+ var _updateCfgValues = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee10(article, newConfigValues, alreadyInitializedValues, dontCalcPrice, dontLoadPartlist, calcVariantPrice) {
25121
25189
  var maxPriceOfGroupCodex, setByFeatureVariantValues, key, partlistArticlesToLoad;
25122
25190
  return _regeneratorRuntime__default["default"].wrap(function _callee10$(_context10) {
25123
25191
  while (1) switch (_context10.prev = _context10.next) {
@@ -25153,19 +25221,23 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25153
25221
  }
25154
25222
 
25155
25223
  //await -> partlist berechnung und laden
25156
- _context10.next = 8;
25224
+ if (calcVariantPrice) {
25225
+ _context10.next = 9;
25226
+ break;
25227
+ }
25228
+ _context10.next = 9;
25157
25229
  return article.updateShelfPlannerState();
25158
- case 8:
25159
- if (dontCalcPrice) {
25160
- _context10.next = 11;
25230
+ case 9:
25231
+ if (!(!dontCalcPrice && !calcVariantPrice)) {
25232
+ _context10.next = 12;
25161
25233
  break;
25162
25234
  }
25163
- _context10.next = 11;
25235
+ _context10.next = 12;
25164
25236
  return this.updateLastElement(article);
25165
- case 11:
25166
- _context10.next = 13;
25237
+ case 12:
25238
+ _context10.next = 14;
25167
25239
  return this.evalAndLoadPartlistArticles(article, dontLoadPartlist, newConfigValues);
25168
- case 13:
25240
+ case 14:
25169
25241
  partlistArticlesToLoad = _context10.sent;
25170
25242
  // löscht seine eigene partlist article - optimierung schnittmenge nicht löschen und nur neu neu laden
25171
25243
 
@@ -25184,13 +25256,13 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25184
25256
  article.updateOPVImages();
25185
25257
  }
25186
25258
  return _context10.abrupt("return", partlistArticlesToLoad);
25187
- case 17:
25259
+ case 18:
25188
25260
  case "end":
25189
25261
  return _context10.stop();
25190
25262
  }
25191
25263
  }, _callee10, this);
25192
25264
  }));
25193
- function updateCfgValues(_x29, _x30, _x31, _x32, _x33) {
25265
+ function updateCfgValues(_x29, _x30, _x31, _x32, _x33, _x34) {
25194
25266
  return _updateCfgValues.apply(this, arguments);
25195
25267
  }
25196
25268
  return updateCfgValues;
@@ -25246,7 +25318,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25246
25318
  }
25247
25319
  }, _callee11, this);
25248
25320
  }));
25249
- function updateLastElement(_x34) {
25321
+ function updateLastElement(_x35) {
25250
25322
  return _updateLastElement.apply(this, arguments);
25251
25323
  }
25252
25324
  return updateLastElement;
@@ -25288,7 +25360,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25288
25360
  }
25289
25361
  }, _callee12);
25290
25362
  }));
25291
- function updateOption(_x35, _x36, _x37, _x38) {
25363
+ function updateOption(_x36, _x37, _x38, _x39) {
25292
25364
  return _updateOption.apply(this, arguments);
25293
25365
  }
25294
25366
  return updateOption;
@@ -25330,7 +25402,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25330
25402
  }
25331
25403
  }, _callee13, this);
25332
25404
  }));
25333
- function evalAndLoadPartlistArticles(_x39, _x40, _x41) {
25405
+ function evalAndLoadPartlistArticles(_x40, _x41, _x42) {
25334
25406
  return _evalAndLoadPartlistArticles.apply(this, arguments);
25335
25407
  }
25336
25408
  return evalAndLoadPartlistArticles;
@@ -25372,7 +25444,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25372
25444
  }
25373
25445
  }, _callee14, this);
25374
25446
  }));
25375
- function loadPartlistArticles(_x42, _x43, _x44) {
25447
+ function loadPartlistArticles(_x43, _x44, _x45) {
25376
25448
  return _loadPartlistArticles.apply(this, arguments);
25377
25449
  }
25378
25450
  return loadPartlistArticles;
@@ -25405,7 +25477,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25405
25477
  }
25406
25478
  }, _callee15, this);
25407
25479
  }));
25408
- function loadPartlistArticle(_x45, _x46, _x47) {
25480
+ function loadPartlistArticle(_x46, _x47, _x48) {
25409
25481
  return _loadPartlistArticle.apply(this, arguments);
25410
25482
  }
25411
25483
  return loadPartlistArticle;
@@ -25722,7 +25794,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25722
25794
  }
25723
25795
  }, _callee16);
25724
25796
  }));
25725
- function triggerShelfplannerVisibility(_x48, _x49) {
25797
+ function triggerShelfplannerVisibility(_x49, _x50) {
25726
25798
  return _triggerShelfplannerVisibility.apply(this, arguments);
25727
25799
  }
25728
25800
  return triggerShelfplannerVisibility;
@@ -25811,7 +25883,6 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25811
25883
  }
25812
25884
  ret = ret.concat(this.getOptiontreeAccessoiresArr(orderLineInitInfos.setId, article));
25813
25885
  }
25814
- this.checkForRoundingError(ret, Object.values(articles)[0].set);
25815
25886
  return ret;
25816
25887
  }
25817
25888
 
@@ -25826,11 +25897,9 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25826
25897
  var product = set === null || set === void 0 ? void 0 : set.priceForActHash();
25827
25898
  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)) {
25828
25899
  var setPrice = set.getSetPrice();
25829
- var olPrice = orderlines.filter(function (ol) {
25830
- return !ol.IsPartlistArticle;
25831
- }).reduce(function (sum, ol) {
25832
- var _ol$VKPrice$CalcPrice, _ol$VKPrice;
25833
- 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);
25900
+ var olPrice = orderlines.reduce(function (sum, ol) {
25901
+ var _ol$VKPrice$Price, _ol$VKPrice;
25902
+ 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;
25834
25903
  }, 0);
25835
25904
  if (setPrice !== olPrice) {
25836
25905
  var _orderLine$ConfigPric;
@@ -25839,8 +25908,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25839
25908
  var _ol$VKPrice2;
25840
25909
  return (_ol$VKPrice2 = ol.VKPrice) === null || _ol$VKPrice2 === void 0 ? void 0 : _ol$VKPrice2.Price;
25841
25910
  });
25842
- orderLine.VKPrice.CalcPrice = orderlines[0].VKPrice.CalcPrice + roundingRest;
25843
- orderLine.VKPrice.Price = orderlines[0].VKPrice.Price + roundingRest;
25911
+ orderLine.VKPrice.CalcPrice = orderLine.VKPrice.CalcPrice + roundingRest;
25912
+ orderLine.VKPrice.Price = orderLine.VKPrice.Price + roundingRest;
25844
25913
  if ((_orderLine$ConfigPric = orderLine.ConfigPriceDatas) !== null && _orderLine$ConfigPric !== void 0 && _orderLine$ConfigPric.ConfigPrice) orderLine.ConfigPriceDatas.ConfigPrice = orderLine.ConfigPriceDatas.ConfigPrice + roundingRest;
25845
25914
  if (orderLine.IsPartlistArticle) {
25846
25915
  var _parent$VKPrice;
@@ -26021,7 +26090,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
26021
26090
  }
26022
26091
  }, _callee17, this);
26023
26092
  }));
26024
- function correctPartlistArticlesByGlobalRules(_x50, _x51, _x52, _x53) {
26093
+ function correctPartlistArticlesByGlobalRules(_x51, _x52, _x53, _x54) {
26025
26094
  return _correctPartlistArticlesByGlobalRules.apply(this, arguments);
26026
26095
  }
26027
26096
  return correctPartlistArticlesByGlobalRules;
@@ -26921,6 +26990,7 @@ var DivaSet = /*#__PURE__*/function () {
26921
26990
  _defineProperty__default["default"](this, "setId", void 0);
26922
26991
  _defineProperty__default["default"](this, "_isActSet", false);
26923
26992
  _defineProperty__default["default"](this, "setData", void 0);
26993
+ _defineProperty__default["default"](this, "_onlyCalcVariants", void 0);
26924
26994
  _defineProperty__default["default"](this, "divaArticles", void 0);
26925
26995
  //Schlüssel ist basketId
26926
26996
  _defineProperty__default["default"](this, "configSingleData", void 0);
@@ -28110,7 +28180,7 @@ var DivaSet = /*#__PURE__*/function () {
28110
28180
  break;
28111
28181
  }
28112
28182
  _context4.next = 3;
28113
- return Promise.resolve().then(function () { return require('./DoorPlanner-33fde902.js'); });
28183
+ return Promise.resolve().then(function () { return require('./DoorPlanner-aa051061.js'); });
28114
28184
  case 3:
28115
28185
  _yield$import = _context4.sent;
28116
28186
  DoorPlanner = _yield$import["default"];
@@ -28175,6 +28245,14 @@ var DivaSet = /*#__PURE__*/function () {
28175
28245
  get: function get() {
28176
28246
  return this.setState;
28177
28247
  }
28248
+ }, {
28249
+ key: "onlyCalcVariants",
28250
+ get: function get() {
28251
+ return this._onlyCalcVariants;
28252
+ },
28253
+ set: function set(val) {
28254
+ this._onlyCalcVariants = val;
28255
+ }
28178
28256
 
28179
28257
  /**
28180
28258
  *
@@ -28868,10 +28946,11 @@ var SummaryHandler = /*#__PURE__*/function () {
28868
28946
  value: function geTabGroupFormOptionsForSummary(article) {
28869
28947
  var tabGroups = [];
28870
28948
  for (var basketId in article.partlistArticles) {
28949
+ var _ops$val;
28871
28950
  var partlistArticle = article.partlistArticles[basketId];
28872
28951
  if (!partlistArticle.tabGroup) continue;
28873
28952
  var ops = article.getArticleOptionState('OPT' + partlistArticle.tabGroup);
28874
- if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && ops.valCodex != 'OPVNR' && ops !== null && ops !== void 0 && ops.optionTabGroup) {
28953
+ if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && !((_ops$val = ops.val) !== null && _ops$val !== void 0 && _ops$val.isNotRelevant) && ops !== null && ops !== void 0 && ops.optionTabGroup) {
28875
28954
  tabGroups.push({
28876
28955
  optionCodex: ops.optionCodex,
28877
28956
  tabGroup: ops.optionTabGroup
@@ -28881,8 +28960,9 @@ var SummaryHandler = /*#__PURE__*/function () {
28881
28960
 
28882
28961
  //old logic TODO: Delete in 2024
28883
28962
  if (Object.keys(tabGroups).length === 0) for (var _key12 in article.articleOptionStates) {
28963
+ var _ops$val2;
28884
28964
  var _ops = article.articleOptionStates[_key12];
28885
- if (!_ops.isInvisible && (_ops.selectionmode != 0 || (_ops.visibleCount > 1 || _ops.isFreeText) && article.set.api.showSelectionModeZero()) && _ops.isDoShow && _ops.valCodex != 'OPVNR') {
28965
+ if (!_ops.isInvisible && (_ops.selectionmode != 0 || (_ops.visibleCount > 1 || _ops.isFreeText) && article.set.api.showSelectionModeZero()) && !((_ops$val2 = _ops.val) !== null && _ops$val2 !== void 0 && _ops$val2.isNotRelevant) && _ops.isDoShow) {
28886
28966
  var tabGroup = _ops.option.addOptionToTabgroupInPartlistSummary;
28887
28967
  if (tabGroup) tabGroups.push({
28888
28968
  optionCodex: _key12,
@@ -28911,8 +28991,9 @@ var SummaryHandler = /*#__PURE__*/function () {
28911
28991
  var opss = [];
28912
28992
  if (article.getArticleOptionState('OPT' + optionCodexes[0])) {
28913
28993
  for (var i = 0; i < optionCodexes.length; i++) {
28994
+ var _optionState$val3;
28914
28995
  var optionState = article.getArticleOptionState('OPT' + optionCodexes[i]);
28915
- if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && optionState.valCodex != 'OPVNR') {
28996
+ if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && !((_optionState$val3 = optionState.val) !== null && _optionState$val3 !== void 0 && _optionState$val3.isNotRelevant)) {
28916
28997
  opss.push(optionState);
28917
28998
  }
28918
28999
  }
@@ -28921,8 +29002,9 @@ var SummaryHandler = /*#__PURE__*/function () {
28921
29002
 
28922
29003
  //old logic TODO: Delete in 2024
28923
29004
  for (var _key13 in article.articleOptionStates) {
29005
+ var _optionState$val4;
28924
29006
  var _optionState = article.articleOptionStates[_key13];
28925
- if (_optionState.option.addOptionToTabgroupInPartlistSummary == tabGroup && !_optionState.isInvisible && _optionState.isDoShow && _optionState.visibleCount > 0 && _optionState.valCodex != 'OPVNR') {
29007
+ if (_optionState.option.addOptionToTabgroupInPartlistSummary == tabGroup && !_optionState.isInvisible && _optionState.isDoShow && _optionState.visibleCount > 0 && !((_optionState$val4 = _optionState.val) !== null && _optionState$val4 !== void 0 && _optionState$val4.isNotRelevant)) {
28926
29008
  opss.push(_optionState);
28927
29009
  }
28928
29010
  }
@@ -29615,7 +29697,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29615
29697
  key: "getValidVariants",
29616
29698
  value: function () {
29617
29699
  var _getValidVariants = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee3(set, useCache) {
29618
- var allvariants, validVariants, i;
29700
+ var allvariants, validVariants, i, _set$onlyCalcVariants;
29619
29701
  return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context4) {
29620
29702
  while (1) switch (_context4.prev = _context4.next) {
29621
29703
  case 0:
@@ -29636,7 +29718,9 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29636
29718
  validVariants = [];
29637
29719
  for (i = 0; i < allvariants.length; i++) {
29638
29720
  if (!set.disabledVariants.includes(allvariants[i].id)) {
29639
- validVariants.push(allvariants[i]);
29721
+ if (!((_set$onlyCalcVariants = set.onlyCalcVariants) !== null && _set$onlyCalcVariants !== void 0 && _set$onlyCalcVariants.length) || set.onlyCalcVariants.includes(allvariants[i].id)) {
29722
+ validVariants.push(allvariants[i]);
29723
+ }
29640
29724
  }
29641
29725
  }
29642
29726
  return _context4.abrupt("return", validVariants);
@@ -30017,9 +30101,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30017
30101
  }
30018
30102
  }, {
30019
30103
  key: "addOptionsStateToConfigTree",
30020
- value: function addOptionsStateToConfigTree(set, configTree, articles, basketId, ops, optionCodex, selectionmode, addToTabGroup) {
30021
- var _set$ViewConfig3;
30022
- var article = articles[basketId];
30104
+ value: function addOptionsStateToConfigTree(set, configTree, articles, b, ops, optionCodex, selectionmode, addToTabGroup) {
30105
+ var _article$partListPare, _set$ViewConfig3;
30106
+ var article = articles[b];
30107
+ var basketId = article.partlistArticleVisibleInTree ? (_article$partListPare = article.partListParentArticle) === null || _article$partListPare === void 0 ? void 0 : _article$partListPare.basketId : article.basketId;
30023
30108
  var tabGroupCodex;
30024
30109
  var tabGroupTitel;
30025
30110
  if (ops.optionTabGroup) tabGroupCodex = ops.optionTabGroup;else tabGroupCodex = ops.optionName;
@@ -30305,7 +30390,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30305
30390
  optionStatesOfArticles = set.getOptionStatesOfArticles(set.getDivaArticles(true));
30306
30391
  articles = set.getDivaArticles(true);
30307
30392
  step = set.configTree.getAllByKey(configStepKey);
30308
- retValues = this.getConfigItems(configStepKey, optionStatesOfArticles, set.configTree);
30393
+ retValues = this.getConfigItems(configStepKey, articles, set.configTree);
30309
30394
  optionCodex = undefined;
30310
30395
  if (!(retValues && step != null)) {
30311
30396
  _context.next = 55;
@@ -30385,7 +30470,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30385
30470
  case 39:
30386
30471
  seomethingChanged = true;
30387
30472
  _context.next = 42;
30388
- return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true);
30473
+ return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true);
30389
30474
  case 42:
30390
30475
  _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);
30391
30476
  configItems = configItems.concat(_retVal2.myConfigItemsForView);
@@ -30438,7 +30523,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30438
30523
  }()
30439
30524
  }, {
30440
30525
  key: "getConfigItems",
30441
- value: function getConfigItems(key, optionStatesOfArticles, configTree) {
30526
+ value: function getConfigItems(key, articles, configTree) {
30442
30527
  var step = configTree.getAllByKey(key);
30443
30528
  if (step != null) {
30444
30529
  var configItems = {},
@@ -30452,7 +30537,8 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30452
30537
  notTotallyMatichingOPVs = false,
30453
30538
  myOptionState = undefined;
30454
30539
  for (var i = 0; i < configStep.targetArticles.length; i++) {
30455
- var myOptions = optionStatesOfArticles[configStep.targetArticles[i]];
30540
+ var article = articles[configStep.targetArticles[i]];
30541
+ var myOptions = article.articleOptionStates;
30456
30542
  myOptionState = myOptions[configStep.option];
30457
30543
  if (myOptionState.option.hasOPG) isOPG = true;
30458
30544
  selectedVals = selectedVals.concat(myOptionState.getSelectedVals);
@@ -30485,6 +30571,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30485
30571
  if (visibleOptionValuesOfArticles.length > 0) {
30486
30572
  configItems = Object.assign({}, visibleOptionValuesOfArticles[0]);
30487
30573
  var _loop4 = function _loop4(_i2) {
30574
+ if (articles[configStep.targetArticles[_i2]].articleOptionStates[configStep.option].definedBySetFeatureFixed) return 1; // continue
30488
30575
  var keys = Object.keys(configItems);
30489
30576
  var newKeys = Object.keys(visibleOptionValuesOfArticles[_i2]);
30490
30577
  var opvsOnlyInA = keys.filter(function (x) {
@@ -30542,7 +30629,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30542
30629
  }
30543
30630
  };
30544
30631
  for (var _i2 = 1; _i2 < visibleOptionValuesOfArticles.length; _i2++) {
30545
- _loop4(_i2);
30632
+ if (_loop4(_i2)) continue;
30546
30633
  }
30547
30634
  }
30548
30635
  return {
@@ -30643,6 +30730,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30643
30730
  //if a opv has isFreeText = true and its selected a Textbox sould appear in the OptionValue
30644
30731
  //if the text is empty the opv is really selected
30645
30732
  contentItemId: item.contentItemId,
30733
+ groupContentItemId: item.groupContentItemId,
30646
30734
  idmOpgOptionCodex: idmOpgOptionCodex,
30647
30735
  idmOpgValCodex: idmOpgValCodex,
30648
30736
  isFreeText: item.isFreeText,
@@ -30741,6 +30829,34 @@ var DivaProductHandler = /*#__PURE__*/function () {
30741
30829
  }
30742
30830
  return updateProducts;
30743
30831
  }()
30832
+ }, {
30833
+ key: "getBestMatch",
30834
+ value: function getBestMatch(articles, products) {
30835
+ var OPTION_CODEX = 'KOPFTEIL';
30836
+ if (!articles) return;
30837
+ for (var key in articles) {
30838
+ var _article$VariantValue;
30839
+ var article = articles[key];
30840
+ var opv = (_article$VariantValue = article.VariantValues['OPT' + OPTION_CODEX]) === null || _article$VariantValue === void 0 ? void 0 : _article$VariantValue.replace('OPV', '');
30841
+ if (!products || !opv) continue;
30842
+ for (var i = 0; i < products.length; i++) {
30843
+ var _products$i$affiliate;
30844
+ 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)) {
30845
+ return products[i];
30846
+ }
30847
+ }
30848
+ }
30849
+ return undefined;
30850
+ }
30851
+ }, {
30852
+ key: "findOPVCodexInVariantValues",
30853
+ value: function findOPVCodexInVariantValues(product, opt, opv) {
30854
+ return product.articles.find(function (article) {
30855
+ return article.variantValues.find(function (variant) {
30856
+ return variant.OPT === opt && variant.OPV === opv;
30857
+ });
30858
+ });
30859
+ }
30744
30860
  }]);
30745
30861
  }();
30746
30862
  var productHandlerInstance = new DivaProductHandler();
@@ -31716,8 +31832,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
31716
31832
  key: "deleteElementFromSet",
31717
31833
  value: function () {
31718
31834
  var _deleteElementFromSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee14(set, article, autoCorrectAVL_AVR, deletionType, dontReload) {
31719
- var _deletedArticle$doorP, _set$CatalogData;
31720
- var setId, deletedArticle, articles, key, newSelectedElement, oldTransform, result, _set$getArticleByBask3, elementDeleted;
31835
+ var setId, allElementsToDelete, success, newSelectedElement, i, _deletedArticle$doorP, _set$CatalogData, deletedArticle, articles, key, oldTransform, result, _set$getArticleByBask3;
31721
31836
  return _regeneratorRuntime__default["default"].wrap(function _callee14$(_context16) {
31722
31837
  while (1) switch (_context16.prev = _context16.next) {
31723
31838
  case 0:
@@ -31732,35 +31847,44 @@ var DivaSetHandler = /*#__PURE__*/function () {
31732
31847
  setId: setId
31733
31848
  });
31734
31849
  case 3:
31850
+ allElementsToDelete = set.plannerHandler.getPlannerElementsInfluencedByDeletion(setId, article.elementId);
31851
+ success = false;
31852
+ newSelectedElement = undefined;
31853
+ i = 0;
31854
+ case 7:
31855
+ if (!(i < allElementsToDelete.length)) {
31856
+ _context16.next = 35;
31857
+ break;
31858
+ }
31859
+ article = set.getArticleByElementId(allElementsToDelete[i]);
31735
31860
  deletedArticle = article; //accessoires löschen
31736
31861
  articles = set.getAccessoiresOfBasketId(article.basketId);
31737
31862
  _context16.t0 = _regeneratorRuntime__default["default"].keys(articles);
31738
- case 6:
31863
+ case 12:
31739
31864
  if ((_context16.t1 = _context16.t0()).done) {
31740
- _context16.next = 12;
31865
+ _context16.next = 18;
31741
31866
  break;
31742
31867
  }
31743
31868
  key = _context16.t1.value;
31744
- _context16.next = 10;
31869
+ _context16.next = 16;
31745
31870
  return this.deleteElementFromSet(set, articles[key]);
31746
- case 10:
31747
- _context16.next = 6;
31871
+ case 16:
31872
+ _context16.next = 12;
31748
31873
  break;
31749
- case 12:
31750
- newSelectedElement = undefined;
31874
+ case 18:
31751
31875
  oldTransform = undefined;
31752
31876
  if (deletedArticle) deletedArticle.deleted = true;
31753
31877
  if (!(deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.hasCatalogPlannerArticle)) {
31754
- _context16.next = 21;
31878
+ _context16.next = 26;
31755
31879
  break;
31756
31880
  }
31757
- _context16.next = 18;
31881
+ _context16.next = 23;
31758
31882
  return set.plannerHandler.deletePlannerElement(setId, deletedArticle.elementId, autoCorrectAVL_AVR, deletionType);
31759
- case 18:
31883
+ case 23:
31760
31884
  result = _context16.sent;
31761
31885
  newSelectedElement = result.newElementToSelect;
31762
31886
  oldTransform = result.transform;
31763
- case 21:
31887
+ case 26:
31764
31888
  //falls ein Accessoire gelöscht wurde wird das Accessoire auch wo es beim Parent hinterlegt war auch gelöscht
31765
31889
  if (deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.relatedToBasketId) {
31766
31890
  (_set$getArticleByBask3 = set.getArticleByBasketId(deletedArticle.relatedToBasketId)) === null || _set$getArticleByBask3 === void 0 || _set$getArticleByBask3.removeAccessoire(deletedArticle.basketId);
@@ -31768,21 +31892,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
31768
31892
 
31769
31893
  //doorplanner resetted
31770
31894
  deletedArticle === null || deletedArticle === void 0 || (_deletedArticle$doorP = deletedArticle.doorPlanner) === null || _deletedArticle$doorP === void 0 || _deletedArticle$doorP.deleteElement(deletedArticle.basketId);
31771
- elementDeleted = set.deleteArticle(article.basketId);
31895
+ success = set.deleteArticle(article.basketId);
31772
31896
  if (!((set.CatalogData.bundleRules || set.CatalogData.reconfigAfterArticleDocked || set !== null && set !== void 0 && (_set$CatalogData = set.CatalogData) !== null && _set$CatalogData !== void 0 && _set$CatalogData.getOption('OPTLASTSTACKEDARTICLE')) && !dontReload)) {
31773
- _context16.next = 27;
31897
+ _context16.next = 32;
31774
31898
  break;
31775
31899
  }
31776
- _context16.next = 27;
31900
+ _context16.next = 32;
31777
31901
  return this.updateArticlesOptionStatesOfActSet(set, {}, []);
31778
- case 27:
31902
+ case 32:
31903
+ i++;
31904
+ _context16.next = 7;
31905
+ break;
31906
+ case 35:
31779
31907
  return _context16.abrupt("return", {
31780
- success: elementDeleted,
31908
+ success: success,
31781
31909
  selectElementId: newSelectedElement,
31782
31910
  setId: setId,
31783
31911
  oldTransform: oldTransform
31784
31912
  });
31785
- case 28:
31913
+ case 36:
31786
31914
  case "end":
31787
31915
  return _context16.stop();
31788
31916
  }
@@ -32276,22 +32404,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
32276
32404
  }
32277
32405
  }, {
32278
32406
  key: "getPlannerPaletteViewInfo",
32279
- value: function getPlannerPaletteViewInfo(set, type) {
32407
+ value: function getPlannerPaletteViewInfo(set, type, selectedArticle) {
32280
32408
  var plannerViewInfo = set.CatalogData.PlannerPaletteViewInfo;
32281
32409
  var cleanedCaltaogPlannerArticles = [];
32282
32410
  for (var i = 0; i < plannerViewInfo.catalogPlannerArticles.length; i++) {
32283
32411
  var plannerElement = plannerViewInfo.catalogPlannerArticles[i];
32284
32412
  var articlecodex = plannerElement.articleCodex;
32285
- if (type == 'PLANNERSWITCH' && Object.keys(set.getDivaArticles())[0]) {
32413
+ if (type == 'PLANNERSWITCH' && selectedArticle) {
32286
32414
  if (plannerViewInfo.catalogPlannerArticles[i].filterType == 'Accessoire') continue;
32287
- cleanedCaltaogPlannerArticles.push(_objectSpread$8({}, plannerElement));
32288
- var index = cleanedCaltaogPlannerArticles.length - 1;
32289
- cleanedCaltaogPlannerArticles[index].groupName = '';
32290
- if (set.getArticlesByArticleCodex(articlecodex).length > 0) {
32291
- cleanedCaltaogPlannerArticles[index].sel = true;
32292
- } else {
32293
- cleanedCaltaogPlannerArticles[index].sel = false;
32294
- }
32415
+ cleanedCaltaogPlannerArticles.push(_objectSpread$8(_objectSpread$8({}, plannerElement), {}, {
32416
+ sel: articlecodex == selectedArticle,
32417
+ groupName: ''
32418
+ }));
32295
32419
  } else {
32296
32420
  var _set$CatalogData$getC;
32297
32421
  var dontPushElement = false;
@@ -32302,7 +32426,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
32302
32426
  plannerViewInfo.plannerConfiguration.updatePaletteAfterPlanningChanged = true;
32303
32427
  }
32304
32428
  }
32305
- if (!dontPushElement) cleanedCaltaogPlannerArticles.push(_objectSpread$8({}, plannerElement));
32429
+ if (!dontPushElement) cleanedCaltaogPlannerArticles.push(_objectSpread$8(_objectSpread$8({}, plannerElement), {}, {
32430
+ sel: articlecodex == selectedArticle
32431
+ }));
32306
32432
  }
32307
32433
  }
32308
32434
  return _objectSpread$8(_objectSpread$8({}, plannerViewInfo), {}, {
@@ -32472,11 +32598,28 @@ var DivaSetHandler = /*#__PURE__*/function () {
32472
32598
  targetArticles = targetArticles.concat(Object.keys((_articles$activeArtic = articles[activeArticles[0]]) === null || _articles$activeArtic === void 0 ? void 0 : _articles$activeArtic.accessoires));
32473
32599
  }
32474
32600
  var articleInfos = articleHandlerInstance.getArticleInfos(activeArticles, targetArticles, articles);
32601
+ //within an article and its partlistarticles cant be configured differently, so we group them here
32602
+ var groupedArticles = [];
32603
+ var _loop3 = function _loop3() {
32604
+ var article = articles[targetArticles[i]];
32605
+ var group = groupedArticles.find(function (group) {
32606
+ var _article$partListPare, _article$partListPare2;
32607
+ 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 : '');
32608
+ });
32609
+ if (group) {
32610
+ group.push(article.basketId);
32611
+ } else {
32612
+ groupedArticles.push([article.basketId]);
32613
+ }
32614
+ };
32615
+ for (var i = 0; i < targetArticles.length; i++) {
32616
+ _loop3();
32617
+ }
32475
32618
  var isConfigSingle = set.configSingle;
32476
32619
  var doShowConfigSingle = configStepKey ? set.configTree.doShowConfigSingle(configStepKey) : false;
32477
32620
  return {
32478
32621
  articleInfos: articleInfos,
32479
- doShowConfigSingle: doShowConfigSingle && targetArticles.length > 1,
32622
+ doShowConfigSingle: doShowConfigSingle && groupedArticles.length > 1,
32480
32623
  isConfigSingle: isConfigSingle,
32481
32624
  articleName: activeArticles[0] ? (_articles$activeArtic2 = articles[activeArticles[0]]) === null || _articles$activeArtic2 === void 0 || (_articles$activeArtic2 = _articles$activeArtic2.curProduct) === null || _articles$activeArtic2 === void 0 ? void 0 : _articles$activeArtic2.shortDescription : ''
32482
32625
  };
@@ -32565,7 +32708,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32565
32708
  value: (function () {
32566
32709
  var _variantsEvaluator = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee23(set, configItems, configStepKey, paletteType) {
32567
32710
  var _set$ViewConfig, _configItems$;
32568
- var opt, calcVariantsForPricePreview, previewType, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
32711
+ var opt, calcVariantsForPricePreview, previewType, _set$api$ReturnToFrom, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
32569
32712
  return _regeneratorRuntime__default["default"].wrap(function _callee23$(_context25) {
32570
32713
  while (1) switch (_context25.prev = _context25.next) {
32571
32714
  case 0:
@@ -32579,7 +32722,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32579
32722
  calcVariantsForPricePreview = false;
32580
32723
  previewType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.pricePreview;
32581
32724
  if (previewType) {
32582
- calcVariantsForPricePreview = !set.dontCalcPricePreviewDueToPerformanceIssues && !opt.showOnSeparatTabgroup && (!((_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length) || set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex));
32725
+ calcVariantsForPricePreview = !set.dontCalcPricePreviewDueToPerformanceIssues && !((_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR')) && !opt.showOnSeparatTabgroup && (!((_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length) || set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex));
32583
32726
  }
32584
32727
  if (set.PlannerMode === 'BoxPlanner') calcVariantsForPricePreview = false;
32585
32728
  if (paletteType == 'GAL' && ((_configItems$ = configItems[0]) === null || _configItems$ === void 0 ? void 0 : _configItems$.groupName) === undefined || paletteType == 'TEXTBOX' || paletteType == 'NUMBERBOX' || paletteType == 'RANGE') {
@@ -32860,7 +33003,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32860
33003
  key: "confirmOptionsInMetric",
32861
33004
  value: function confirmOptionsInMetric(set, options, actionEvent) {
32862
33005
  var variantItems = set.getVariantBasketData();
32863
- var _loop3 = function _loop3() {
33006
+ var _loop4 = function _loop4() {
32864
33007
  var opt = options[i].substring(3);
32865
33008
  var variantItem = variantItems.find(function (item) {
32866
33009
  return item.OPT == opt;
@@ -32879,7 +33022,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32879
33022
  }
32880
33023
  };
32881
33024
  for (var i = 0; i < options.length; i++) {
32882
- _loop3();
33025
+ _loop4();
32883
33026
  }
32884
33027
  }
32885
33028
  }, {
@@ -33006,7 +33149,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33006
33149
  //check first if there are options that require user input
33007
33150
  var articles = [];
33008
33151
  var options = [];
33009
- var _loop4 = function _loop4(key) {
33152
+ var _loop5 = function _loop5(key) {
33010
33153
  var _articleHandler$check = articleHandlerInstance.checkIfAllOptionsAreDefined(sets[key].getDivaArticles()),
33011
33154
  articleNames = _articleHandler$check.articleNames,
33012
33155
  newOptions = _articleHandler$check.options;
@@ -33018,7 +33161,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33018
33161
  articles = articles.concat(articleNames);
33019
33162
  };
33020
33163
  for (var key in sets) {
33021
- _loop4(key);
33164
+ _loop5(key);
33022
33165
  }
33023
33166
  if (articles.length == 0) {
33024
33167
  return true;
@@ -33045,7 +33188,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33045
33188
  var accessoires = [];
33046
33189
  var grids = [];
33047
33190
  var articles = [];
33048
- var _loop5 = function _loop5() {
33191
+ var _loop6 = function _loop6() {
33049
33192
  var _retVal$configStep$ta2;
33050
33193
  var article = set.getArticleByBasketId((_retVal$configStep$ta2 = retVal === null || retVal === void 0 ? void 0 : retVal.configStep.targetArticles[i]) !== null && _retVal$configStep$ta2 !== void 0 ? _retVal$configStep$ta2 : '');
33051
33194
  if (!article || !article.shelfPlanner) return 1; // continue
@@ -33054,18 +33197,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33054
33197
  a = _article$shelfPlanner2.accessoires,
33055
33198
  g = _article$shelfPlanner2.grids;
33056
33199
  grids = [].concat(_toConsumableArray__default["default"](grids), _toConsumableArray__default["default"](g));
33057
- var _loop6 = function _loop6(j) {
33200
+ var _loop7 = function _loop7(j) {
33058
33201
  if (!accessoires.find(function (acc) {
33059
33202
  return acc.articleCodex === a[j].articleCodex;
33060
33203
  })) accessoires.push(a[j]);
33061
33204
  };
33062
33205
  for (var j = 0; j < a.length; j++) {
33063
- _loop6(j);
33206
+ _loop7(j);
33064
33207
  }
33065
33208
  };
33066
33209
  for (var i = 0; i < ((_retVal$configStep$ta = retVal === null || retVal === void 0 ? void 0 : retVal.configStep.targetArticles) !== null && _retVal$configStep$ta !== void 0 ? _retVal$configStep$ta : []).length; i++) {
33067
33210
  var _retVal$configStep$ta;
33068
- if (_loop5()) continue;
33211
+ if (_loop6()) continue;
33069
33212
  }
33070
33213
  configTreeHandler.fillConfigStepKeysInAccessoireItem(articles, set.configTree, accessoires !== null && accessoires !== void 0 ? accessoires : []);
33071
33214
  return {
@@ -33202,7 +33345,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33202
33345
  _context30.t0 = _regeneratorRuntime__default["default"].keys(sets);
33203
33346
  case 7:
33204
33347
  if ((_context30.t1 = _context30.t0()).done) {
33205
- _context30.next = 29;
33348
+ _context30.next = 30;
33206
33349
  break;
33207
33350
  }
33208
33351
  key = _context30.t1.value;
@@ -33220,12 +33363,13 @@ var DivaSetHandler = /*#__PURE__*/function () {
33220
33363
  newOrderSet = _context30.sent;
33221
33364
  basketData.setIsPlanning(_set.SetType == 'PLANNING' ? '1' : '0');
33222
33365
  OrderLinesOfActSet = articleHandlerInstance.getOrderLinesOfArticles(articles, orderLineInitInfos, repairOnly, !!((_set$basketConfigVari = _set.basketConfigVariants) !== null && _set$basketConfigVari !== void 0 && _set$basketConfigVari.length));
33366
+ articleHandlerInstance.checkForRoundingError(OrderLinesOfActSet, _set);
33223
33367
  if (OrderLinesOfActSet.length) {
33224
- _context30.next = 21;
33368
+ _context30.next = 22;
33225
33369
  break;
33226
33370
  }
33227
33371
  return _context30.abrupt("continue", 7);
33228
- case 21:
33372
+ case 22:
33229
33373
  OrderLinesOfActSet = divaBasketHandler.divaWWSHandler.repairWWSFlags(articles, OrderLinesOfActSet);
33230
33374
  if (newOrderSet.SetImage == '' && (_OrderLinesOfActSet$ = OrderLinesOfActSet[0]) !== null && _OrderLinesOfActSet$ !== void 0 && _OrderLinesOfActSet$.Image && _set.PlannerMode == 'No') {
33231
33375
  newOrderSet.SetImage = OrderLinesOfActSet[0].Image.replace('_low', '');
@@ -33248,42 +33392,42 @@ var DivaSetHandler = /*#__PURE__*/function () {
33248
33392
  orderSets.push(newOrderSet);
33249
33393
  _context30.next = 7;
33250
33394
  break;
33251
- case 29:
33395
+ case 30:
33252
33396
  //fill diva3DProject for renderings & AR Converter
33253
33397
  basketData.Diva3DProject = DivaUtils__default["default"].encodeBase64(set === null || set === void 0 ? void 0 : set.plannerHandler.getProject3D());
33254
33398
  i = 0;
33255
- case 31:
33399
+ case 32:
33256
33400
  if (!(i < ((_basketData$OrderSets = basketData.OrderSets) === null || _basketData$OrderSets === void 0 ? void 0 : _basketData$OrderSets.length))) {
33257
- _context30.next = 46;
33401
+ _context30.next = 47;
33258
33402
  break;
33259
33403
  }
33260
33404
  oderSetsIsInActPlanning = false;
33261
33405
  setId = basketData.OrderSets[i].SetID;
33262
33406
  j = 0;
33263
- case 35:
33407
+ case 36:
33264
33408
  if (!(j < orderSets.length)) {
33265
- _context30.next = 42;
33409
+ _context30.next = 43;
33266
33410
  break;
33267
33411
  }
33268
33412
  if (!(orderSets[j].SetID == setId)) {
33269
- _context30.next = 39;
33413
+ _context30.next = 40;
33270
33414
  break;
33271
33415
  }
33272
33416
  oderSetsIsInActPlanning = true;
33273
- return _context30.abrupt("break", 42);
33274
- case 39:
33417
+ return _context30.abrupt("break", 43);
33418
+ case 40:
33275
33419
  j++;
33276
- _context30.next = 35;
33420
+ _context30.next = 36;
33277
33421
  break;
33278
- case 42:
33422
+ case 43:
33279
33423
  if (!oderSetsIsInActPlanning && !((_basketData$SetPlanne = basketData.SetPlannerInfos) !== null && _basketData$SetPlanne !== void 0 && _basketData$SetPlanne.InvolvedSetIds.includes(setId))) {
33280
33424
  orderSets.push(basketData.OrderSets[i]);
33281
33425
  }
33282
- case 43:
33426
+ case 44:
33283
33427
  i++;
33284
- _context30.next = 31;
33428
+ _context30.next = 32;
33285
33429
  break;
33286
- case 46:
33430
+ case 47:
33287
33431
  basketData.SetPlannerInfos = setPlanner ? this.getSetPlannerInfos(Object.keys(sets), orderSets) : undefined;
33288
33432
  if (repairOnly) {
33289
33433
  this.repairOrderSets(basketData, orderSets);
@@ -33291,7 +33435,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33291
33435
  basketData.setOrderSets(orderSets);
33292
33436
  }
33293
33437
  return _context30.abrupt("return", basketData);
33294
- case 49:
33438
+ case 50:
33295
33439
  case "end":
33296
33440
  return _context30.stop();
33297
33441
  }
@@ -33326,7 +33470,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33326
33470
  }, {
33327
33471
  key: "repairOrderSets",
33328
33472
  value: function repairOrderSets(basketData, orerSets) {
33329
- var _loop7 = function _loop7() {
33473
+ var _loop8 = function _loop8() {
33330
33474
  var actOrderSet = orerSets[i];
33331
33475
  var setId = actOrderSet.SetID;
33332
33476
  var origOrderSet = basketData.OrderSets.find(function (set) {
@@ -33364,7 +33508,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33364
33508
  }
33365
33509
  };
33366
33510
  for (var i = 0; i < orerSets.length; i++) {
33367
- _loop7();
33511
+ _loop8();
33368
33512
  }
33369
33513
  }
33370
33514
  /**************************SpeicherRoutinen*************************************/
@@ -34069,7 +34213,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34069
34213
  key: "initProductId",
34070
34214
  value: function () {
34071
34215
  var _initProductId = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(api, productId) {
34072
- var result;
34216
+ var result, successful;
34073
34217
  return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
34074
34218
  while (1) switch (_context2.prev = _context2.next) {
34075
34219
  case 0:
@@ -34081,10 +34225,17 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34081
34225
  _context2.next = 6;
34082
34226
  return this.initBasket(api, result.divaNr, {
34083
34227
  basket: result.configuration
34084
- }, false);
34228
+ }, false, productId);
34085
34229
  case 6:
34086
- return _context2.abrupt("return", _context2.sent);
34087
- case 7:
34230
+ successful = _context2.sent;
34231
+ if (!successful) {
34232
+ _context2.next = 9;
34233
+ break;
34234
+ }
34235
+ return _context2.abrupt("return", result);
34236
+ case 9:
34237
+ return _context2.abrupt("return", false);
34238
+ case 10:
34088
34239
  case "end":
34089
34240
  return _context2.stop();
34090
34241
  }
@@ -34431,7 +34582,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34431
34582
  case 0:
34432
34583
  _context8.prev = 0;
34433
34584
  _context8.next = 3;
34434
- return api.getDataCache(api.getProductBasketUrl(key, productId), undefined, undefined, 'catalog', 'POST', {
34585
+ return api.getDataCache(api.getProductByKeyValueUrl(key, productId), undefined, undefined, 'catalog', 'POST', {
34435
34586
  fields: fields !== null && fields !== void 0 && fields.length ? fields : undefined
34436
34587
  });
34437
34588
  case 3:
@@ -34652,26 +34803,39 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34652
34803
  var _ops$ocd, _ops$valCodex;
34653
34804
  var ops = article.articleOptionStates[key];
34654
34805
  if (ops.option.sendToSAP && ops.val && ops.isDoShow && (!ops.isFreeText || !!ops.freeText) && !((_ops$ocd = ops.ocd) !== null && _ops$ocd !== void 0 && _ops$ocd.startsWith('OPVOPV_NICHT_RELEVANT')) && !((_ops$valCodex = ops.valCodex) !== null && _ops$valCodex !== void 0 && _ops$valCodex.startsWith('OPVOPV_NICHT_RELEVANT'))) {
34655
- var _ops$optionOcd;
34656
- sendToSap.push({
34657
- ID: sapCount++,
34658
- SAP_AUSP_ATNAM: ops.option.sendToSAP,
34659
- SAP_AUSP_ATWRT: ops.val.name,
34660
- opt: (_ops$optionOcd = ops.optionOcd) !== null && _ops$optionOcd !== void 0 ? _ops$optionOcd : ops.optionCodex
34661
- });
34806
+ var _ops$multiSelects;
34807
+ if (ops.isMultiselect && (_ops$multiSelects = ops.multiSelects) !== null && _ops$multiSelects !== void 0 && _ops$multiSelects.length) {
34808
+ for (var i = 0; i < ops.multiSelects.length; i++) {
34809
+ var _ops$optionOcd;
34810
+ sendToSap.push({
34811
+ ID: sapCount++,
34812
+ SAP_AUSP_ATNAM: ops.option.sendToSAP,
34813
+ SAP_AUSP_ATWRT: ops.multiSelects[i].name,
34814
+ opt: (_ops$optionOcd = ops.optionOcd) !== null && _ops$optionOcd !== void 0 ? _ops$optionOcd : ops.optionCodex
34815
+ });
34816
+ }
34817
+ } else {
34818
+ var _ops$optionOcd2;
34819
+ sendToSap.push({
34820
+ ID: sapCount++,
34821
+ SAP_AUSP_ATNAM: ops.option.sendToSAP,
34822
+ SAP_AUSP_ATWRT: ops.val.name,
34823
+ opt: (_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.optionCodex
34824
+ });
34825
+ }
34662
34826
  }
34663
34827
  }
34664
34828
  var _loop2 = function _loop2() {
34665
- var _opt$codex, _ops$optionOcd2, _ops$multiSelects;
34666
- var _article$parentOption = article.parentOptionCodex(options[i]),
34829
+ var _opt$codex, _ops$optionOcd3, _ops$multiSelects2;
34830
+ var _article$parentOption = article.parentOptionCodex(options[_i2]),
34667
34831
  codex = _article$parentOption.optionCodex,
34668
34832
  partenOptionCodex = _article$parentOption.partenOptionCodex;
34669
34833
  var _article$checkOptionA = article.checkOptionAndOptionValue(codex, '', partenOptionCodex),
34670
34834
  opt = _article$checkOptionA.opt;
34671
34835
  var ops = article.getArticleOptionState((_opt$codex = opt.codex) !== null && _opt$codex !== void 0 ? _opt$codex : codex);
34672
34836
  if (!(ops !== null && ops !== void 0 && ops.val)) return 1; // continue
34673
- var optionCodex = (ops.option.parentOptionCodex ? ops.option.parentOptionCodex + '.' : '') + ((_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.option.codex);
34674
- changedValues[optionCodex] = ((_ops$multiSelects = ops.multiSelects) !== null && _ops$multiSelects !== void 0 && _ops$multiSelects.length ? ops.multiselectSorted : [ops.val]).map(function (val) {
34837
+ var optionCodex = (ops.option.parentOptionCodex ? ops.option.parentOptionCodex + '.' : '') + ((_ops$optionOcd3 = ops.optionOcd) !== null && _ops$optionOcd3 !== void 0 ? _ops$optionOcd3 : ops.option.codex);
34838
+ changedValues[optionCodex] = ((_ops$multiSelects2 = ops.multiSelects) !== null && _ops$multiSelects2 !== void 0 && _ops$multiSelects2.length ? ops.multiselectSorted : [ops.val]).map(function (val) {
34675
34839
  var _val$ocd, _ops$freeTextLang3, _ops$freeTextLang4, _ops$option$ocd, _ops$val, _ops$val2;
34676
34840
  var attributeValue = (_val$ocd = val.ocd) !== null && _val$ocd !== void 0 ? _val$ocd : val.codex;
34677
34841
  if (ops.isFreeText) {
@@ -34722,7 +34886,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34722
34886
  };
34723
34887
  });
34724
34888
  };
34725
- for (var i = 0; i < options.length; i++) {
34889
+ for (var _i2 = 0; _i2 < options.length; _i2++) {
34726
34890
  if (_loop2()) continue;
34727
34891
  }
34728
34892
  var variantValues = article.VariantValuesParentOption;
@@ -34751,7 +34915,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34751
34915
  break;
34752
34916
  case 3:
34753
34917
  _context12.next = 5;
34754
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-3ab783ab.js'); });
34918
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-3295548a.js'); });
34755
34919
  case 5:
34756
34920
  _yield$import = _context12.sent;
34757
34921
  PfisterWWSHandler = _yield$import["default"];
@@ -34759,7 +34923,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34759
34923
  return _context12.abrupt("break", 27);
34760
34924
  case 9:
34761
34925
  _context12.next = 11;
34762
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-cf967a4d.js'); });
34926
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-18ed722f.js'); });
34763
34927
  case 11:
34764
34928
  _yield$import2 = _context12.sent;
34765
34929
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34767,7 +34931,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34767
34931
  return _context12.abrupt("break", 27);
34768
34932
  case 15:
34769
34933
  _context12.next = 17;
34770
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-88cac4bb.js'); });
34934
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-ac2bf9ba.js'); });
34771
34935
  case 17:
34772
34936
  _yield$import3 = _context12.sent;
34773
34937
  SeriousWWSHandler = _yield$import3["default"];
@@ -34775,7 +34939,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34775
34939
  return _context12.abrupt("break", 27);
34776
34940
  case 21:
34777
34941
  _context12.next = 23;
34778
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-26ce5152.js'); });
34942
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-ab2a56e5.js'); });
34779
34943
  case 23:
34780
34944
  _yield$import4 = _context12.sent;
34781
34945
  StandardWWSHandler = _yield$import4["default"];
@@ -36165,7 +36329,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36165
36329
  while (1) switch (_context3.prev = _context3.next) {
36166
36330
  case 0:
36167
36331
  _context3.next = 2;
36168
- return Promise.resolve().then(function () { return require('./Host3DSignalR-0a901365.js'); });
36332
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-6a177ecc.js'); });
36169
36333
  case 2:
36170
36334
  _yield$import = _context3.sent;
36171
36335
  Host3DSignalR = _yield$import["default"];
@@ -37060,14 +37224,12 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
37060
37224
  _classCallCheck__default["default"](this, DivaMediaServiceHandler);
37061
37225
  _defineProperty__default["default"](this, "organizationId", void 0);
37062
37226
  _defineProperty__default["default"](this, "mediaServiceUrl", void 0);
37063
- _defineProperty__default["default"](this, "mediaServiceApiKey", void 0);
37064
37227
  _defineProperty__default["default"](this, "jwt", void 0);
37065
37228
  _defineProperty__default["default"](this, "POST_saveTmp2PermanentPostfix", '/saveTmp2Permanent');
37066
37229
  _defineProperty__default["default"](this, "GET_MediaItemrefs", '/v1/mediaitems/refs?limit=20&skip=0&filter=');
37067
37230
  _defineProperty__default["default"](this, "POST_mediaItem", '/v1/mediaitems?ref=true');
37068
37231
  this.organizationId = '';
37069
37232
  this.mediaServiceUrl = '';
37070
- this.mediaServiceApiKey = '';
37071
37233
  }
37072
37234
  return _createClass__default["default"](DivaMediaServiceHandler, [{
37073
37235
  key: "setOrganizationId",
@@ -37079,11 +37241,6 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
37079
37241
  value: function setMediaServiceUrl(mediaServiceUrl) {
37080
37242
  this.mediaServiceUrl = mediaServiceUrl;
37081
37243
  }
37082
- }, {
37083
- key: "setMediaServiceApiKey",
37084
- value: function setMediaServiceApiKey(mediaServiceApiKey) {
37085
- this.mediaServiceApiKey = mediaServiceApiKey;
37086
- }
37087
37244
  }, {
37088
37245
  key: "setJwt",
37089
37246
  value: function setJwt(jwt) {
@@ -37140,7 +37297,7 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
37140
37297
  method: 'POST',
37141
37298
  body: data,
37142
37299
  headers: {
37143
- 'X-API-KEY': this.mediaServiceApiKey
37300
+ Authorization: 'Bearer ' + this.jwt
37144
37301
  }
37145
37302
  });
37146
37303
  case 11:
@@ -37511,7 +37668,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37511
37668
  key: "initPlanner",
37512
37669
  value: (function () {
37513
37670
  var _initPlanner = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(initSetState, plannerHandlerFunctions) {
37514
- var renderGroup, diva3dServerUrl, divaMediaServiceUrl, mediaServiceApiKey, _initSetState$api$web, result;
37671
+ var renderGroup, diva3dServerUrl, divaMediaServiceUrl, _initSetState$api$web, result;
37515
37672
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
37516
37673
  while (1) switch (_context.prev = _context.next) {
37517
37674
  case 0:
@@ -37519,8 +37676,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37519
37676
  renderGroup = initSetState.api.get3DRenderGroup();
37520
37677
  this.plannerHandlerFunctions = plannerHandlerFunctions;
37521
37678
  diva3dServerUrl = initSetState.api.get3DServerUrl();
37522
- divaMediaServiceUrl = initSetState.api.getDivaMediaServiceUrl();
37523
- mediaServiceApiKey = initSetState.api.getDivaMediaServiceApiKey(); //renderGroup = 'LeaTest';
37679
+ divaMediaServiceUrl = initSetState.api.getDivaMediaServiceUrl(); // renderGroup = 'LeaTest';
37524
37680
  //diva3dServerUrl = "https://test-einkauf-onboarding.pfister.ch/diva3d/diva3dhost2/";
37525
37681
  // diva3dServerUrl = "https://diva3dhost.diva-portal.com/diva3d/diva3dhost2/";
37526
37682
  //diva3dServerUrl = 'https://localhost:44315/';
@@ -37530,7 +37686,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37530
37686
  //divaMediaServiceUrl = 'https://api-test.diva-portal.com/media/';
37531
37687
  //divaMediaServiceUrl = 'http://localhost:3000';
37532
37688
  if (!(!initSetState.onlyRunLogic && !initSetState.no3DConnection)) {
37533
- _context.next = 14;
37689
+ _context.next = 13;
37534
37690
  break;
37535
37691
  }
37536
37692
  this.handler3D.initializeCallbackFunctions({
@@ -37549,24 +37705,23 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37549
37705
  arViewerUrl: (_initSetState$api$web = initSetState.api.webConfig) === null || _initSetState$api$web === void 0 ? void 0 : _initSetState$api$web.arViewerUrl
37550
37706
  });
37551
37707
  if (!(!this.handler3D.checkConnectionInitialized() || result.renderGroupChanged || result.diva3dServerUrlChanged)) {
37552
- _context.next = 13;
37708
+ _context.next = 12;
37553
37709
  break;
37554
37710
  }
37555
- _context.next = 13;
37711
+ _context.next = 12;
37556
37712
  return this.handler3D.initializeConnection();
37557
- case 13:
37713
+ case 12:
37558
37714
  if (this.divaNr != initSetState.divaNr) {
37559
37715
  this.divaNr = initSetState.divaNr;
37560
37716
  this.handler3D.joinDivaNr(this.divaNr);
37561
37717
  }
37562
- case 14:
37718
+ case 13:
37563
37719
  mediaServiceHandler.setMediaServiceUrl(divaMediaServiceUrl);
37564
- mediaServiceHandler.setMediaServiceApiKey(mediaServiceApiKey);
37565
37720
  mediaServiceHandler.setOrganizationId(initSetState.organizationId);
37566
37721
  mediaServiceHandler.setJwt(initSetState.api.getJwt());
37567
37722
  this.handler3D.setOrigConfigurationCallback(this.plannerHandlerFunctions.getOrigConfiguration);
37568
37723
  DivaUtils__default["default"].endSpanOfApm('DivaPlannerHandler initPlanner');
37569
- case 20:
37724
+ case 18:
37570
37725
  case "end":
37571
37726
  return _context.stop();
37572
37727
  }
@@ -37717,7 +37872,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37717
37872
  break;
37718
37873
  case 8:
37719
37874
  _context4.next = 10;
37720
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-924415b0.js'); });
37875
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-8ad93926.js'); });
37721
37876
  case 10:
37722
37877
  _yield$import = _context4.sent;
37723
37878
  DivaStandardPlanner = _yield$import["default"];
@@ -37728,7 +37883,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37728
37883
  return _context4.abrupt("break", 21);
37729
37884
  case 15:
37730
37885
  _context4.next = 17;
37731
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-ed22c1dd.js'); });
37886
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-bcc31277.js'); });
37732
37887
  case 17:
37733
37888
  _yield$import2 = _context4.sent;
37734
37889
  DivaBoxPlanner = _yield$import2["default"];
@@ -38344,6 +38499,20 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38344
38499
  return this.plannerList.get(setId).getPlannerElementsInfluencedByCopy(elementId, copyInfo);
38345
38500
  }
38346
38501
 
38502
+ /**
38503
+ * This function gets all Elements that are deleted when deleting one element.
38504
+ * @param setId
38505
+ * @param elementId
38506
+ */
38507
+ }, {
38508
+ key: "getPlannerElementsInfluencedByDeletion",
38509
+ value: function getPlannerElementsInfluencedByDeletion(setId, elementId) {
38510
+ if (!this.plannerList.has(setId)) {
38511
+ return [];
38512
+ }
38513
+ return this.plannerList.get(setId).getPlannerElementsInfluencedByDeletion(elementId);
38514
+ }
38515
+
38347
38516
  /**
38348
38517
  * This function is used to copy an element in the planner
38349
38518
  * @param setId
@@ -38814,11 +38983,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
38814
38983
  /**
38815
38984
  * This Function ist call from the View when all Planner Article are Requested for listing
38816
38985
  */
38817
- _defineProperty__default["default"](this, "loadCatalogPlannerArticles", function (paletteeId, isUpdate, type, dockFilter, actStepName, stepKey) {
38986
+ _defineProperty__default["default"](this, "loadCatalogPlannerArticles", function (paletteeId, isUpdate, type, dockFilter, actStepName, stepKey, selectedArticle) {
38818
38987
  var _this$updateCatalogPl;
38819
38988
  //Das aktuelle Set weiß welcher catalog gerade geladen ist.
38820
38989
  //Von diesem Katalog müssen wir die CatalogPlannerArticles laden.
38821
- (_this$updateCatalogPl = _this.updateCatalogPlannerArticles) === null || _this$updateCatalogPl === void 0 || _this$updateCatalogPl.call(_this, setHandlerInstance.getPlannerPaletteViewInfo(_this.actSet(), type), paletteeId, isUpdate, type, dockFilter, actStepName, stepKey);
38990
+ (_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);
38822
38991
  });
38823
38992
  /**
38824
38993
  * this fuction loads the accessoires of a specific article -> could be more than one article in the future
@@ -40405,76 +40574,90 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40405
40574
  key: "saveToBasketWrapper",
40406
40575
  value: function () {
40407
40576
  var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee25(event, repairOnly, force) {
40408
- var _this$actions25,
40409
- _this$actions25$toggl,
40410
- _this$actions26,
40577
+ var _this$actions26,
40411
40578
  _this$actions26$toggl,
40579
+ _this$actions27,
40580
+ _this$actions27$toggl,
40412
40581
  _this2 = this,
40413
- _this$actions30,
40582
+ _this$actions31,
40414
40583
  _this$i18n14;
40415
- 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;
40584
+ var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions25, result, _this$actions28, _this$i18n8, _this$i18n9, _this$actions29, _this$i18n10, _this$i18n11, _this$actions30, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40416
40585
  return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
40417
40586
  while (1) switch (_context25.prev = _context25.next) {
40418
40587
  case 0:
40419
40588
  returnTo = this.getReturnTo(event);
40420
- finalEvent = event;
40589
+ finalEvent = {
40590
+ event: event,
40591
+ saveBasket: true
40592
+ };
40421
40593
  if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
40422
- _context25.next = 14;
40594
+ _context25.next = 21;
40423
40595
  break;
40424
40596
  }
40425
40597
  product = undefined;
40426
40598
  if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
40427
- _context25.next = 8;
40599
+ _context25.next = 10;
40428
40600
  break;
40429
40601
  }
40430
- _context25.next = 7;
40431
- return this.api.getDataCache(this.api.getCatalogProductUrl(this.actSet().getCatalogCodex()), undefined, undefined, 'catalog');
40432
- case 7:
40433
- _context25.sent;
40602
+ url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
40603
+ _context25.next = 8;
40604
+ return this.api.getDataCache(url, url, undefined, 'catalog');
40434
40605
  case 8:
40435
- _context25.next = 10;
40436
- return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
40606
+ _result = _context25.sent;
40607
+ product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
40437
40608
  case 10:
40609
+ _context25.next = 12;
40610
+ return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
40611
+ case 12:
40438
40612
  finalEvent = _context25.sent;
40439
40613
  if (finalEvent) {
40440
- _context25.next = 13;
40614
+ _context25.next = 17;
40441
40615
  break;
40442
40616
  }
40443
40617
  return _context25.abrupt("return", 'canceled');
40444
- case 13:
40445
- returnTo = finalEvent == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40446
- case 14:
40447
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || (_this$actions25$toggl = _this$actions25.toggleLoading) === null || _this$actions25$toggl === void 0 || _this$actions25$toggl.call(_this$actions25, 'Planner_Saving', false, true);
40448
- _context25.next = 17;
40449
- return this.saveToBasket(finalEvent, repairOnly, force);
40450
40618
  case 17:
40619
+ if (!(!finalEvent.saveBasket && finalEvent.event)) {
40620
+ _context25.next = 20;
40621
+ break;
40622
+ }
40623
+ (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40624
+ type: finalEvent.event
40625
+ });
40626
+ return _context25.abrupt("return", 'canceled');
40627
+ case 20:
40628
+ returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40629
+ case 21:
40630
+ (_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);
40631
+ _context25.next = 24;
40632
+ return this.saveToBasket(finalEvent.event, repairOnly, force);
40633
+ case 24:
40451
40634
  result = _context25.sent;
40452
- (_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);
40635
+ (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, false);
40453
40636
  if (!(result === 'canceled')) {
40454
- _context25.next = 23;
40637
+ _context25.next = 30;
40455
40638
  break;
40456
40639
  }
40457
40640
  LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
40458
- (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || _this$actions27.openModal({
40641
+ (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40459
40642
  text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
40460
40643
  accept: true
40461
40644
  });
40462
40645
  return _context25.abrupt("return", result);
40463
- case 23:
40646
+ case 30:
40464
40647
  _context25.t0 = returnTo;
40465
- _context25.next = _context25.t0 === 'OPEN_PDF' ? 26 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 28 : 29;
40648
+ _context25.next = _context25.t0 === 'OPEN_PDF' ? 33 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : 36;
40466
40649
  break;
40467
- case 26:
40650
+ case 33:
40468
40651
  if (!this.getBasket().PDFDocumentURL) {
40469
40652
  LOG$1.error(new DivaUtils.DivaError('PDF url is missing in basket', {
40470
40653
  code: 'WC_0010'
40471
40654
  }));
40472
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40655
+ (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40473
40656
  text: ((_this$i18n10 = this.i18n()) === null || _this$i18n10 === void 0 ? void 0 : _this$i18n10.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n11 = this.i18n()) === null || _this$i18n11 === void 0 ? void 0 : _this$i18n11.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
40474
40657
  accept: true
40475
40658
  });
40476
40659
  } else {
40477
- (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40660
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40478
40661
  text: (_this$i18n12 = this.i18n()) === null || _this$i18n12 === void 0 ? void 0 : _this$i18n12.t(this.divaBasketHandler.actBasket.Status === 'ORDER' ? 'modal.open_order_pdf_now' : 'modal.open_leaflet_pdf_now'),
40479
40662
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
40480
40663
  callback: function callback() {
@@ -40482,22 +40665,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40482
40665
  }
40483
40666
  });
40484
40667
  }
40485
- return _context25.abrupt("break", 29);
40486
- case 28:
40487
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40668
+ return _context25.abrupt("break", 36);
40669
+ case 35:
40670
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40488
40671
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
40489
40672
  accept: true
40490
40673
  });
40491
- case 29:
40674
+ case 36:
40492
40675
  if (!(result == 'noArticleToSave')) {
40493
- _context25.next = 32;
40676
+ _context25.next = 39;
40494
40677
  break;
40495
40678
  }
40496
40679
  (_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
40497
40680
  return _context25.abrupt("return", 'canceled');
40498
- case 32:
40681
+ case 39:
40499
40682
  return _context25.abrupt("return", result);
40500
- case 33:
40683
+ case 40:
40501
40684
  case "end":
40502
40685
  return _context25.stop();
40503
40686
  }
@@ -40512,7 +40695,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40512
40695
  key: "saveToBasket",
40513
40696
  value: function () {
40514
40697
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, force) {
40515
- var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions31, _this$actions32, _this$actions33;
40698
+ var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34;
40516
40699
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, _event4, product;
40517
40700
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
40518
40701
  while (1) switch (_context26.prev = _context26.next) {
@@ -40584,8 +40767,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40584
40767
  _context26.next = _context26.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 30 : _context26.t3 === 'OPEN_SELLER_BASKET' ? 33 : _context26.t3 === 'OPEN_PDF' ? 35 : _context26.t3 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context26.t3 === 'SAVE_BASKET' ? 35 : _context26.t3 === 'SAVE_BASKET_SYNC' ? 35 : _context26.t3 === 'OPEN_LEAFLET_BARRIER' ? 35 : 55;
40585
40768
  break;
40586
40769
  case 30:
40587
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.toggleLoading('buildScene', false, false);
40588
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openComponent({
40770
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.toggleLoading('buildScene', false, false);
40771
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
40589
40772
  type: 'SELLER',
40590
40773
  parameters: {
40591
40774
  module: 'PCreator',
@@ -40597,7 +40780,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40597
40780
  });
40598
40781
  return _context26.abrupt("break", 55);
40599
40782
  case 33:
40600
- (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
40783
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40601
40784
  type: 'SELLER',
40602
40785
  parameters: {
40603
40786
  module: 'Basket',
@@ -40651,12 +40834,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40651
40834
  return _context26.abrupt("break", 55);
40652
40835
  case 55:
40653
40836
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
40654
- _context26.next = 58;
40837
+ actBasket = this.divaBasketHandler.getBasketData(actBasket.DivaNr); //get pdf documenturl from saved basket
40838
+ _context26.next = 59;
40655
40839
  return this.addToBasket(actBasket, event);
40656
- case 58:
40840
+ case 59:
40657
40841
  product = _context26.sent;
40658
40842
  return _context26.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
40659
- case 60:
40843
+ case 61:
40660
40844
  case "end":
40661
40845
  return _context26.stop();
40662
40846
  }
@@ -40711,8 +40895,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40711
40895
 
40712
40896
  //if planner is hidden by config but nothing is planned initially
40713
40897
  if (plannerType === 'NONE') {
40714
- var _this$plannerConfig$a7, _this$actSet9;
40715
- if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet9 = this.actSet()) !== null && _this$actSet9 !== void 0 && (_this$actSet9 = _this$actSet9.CatalogData.startPlannerArticle) !== null && _this$actSet9 !== void 0 && _this$actSet9.length)) {
40898
+ var _this$plannerConfig$a7, _this$actSet10;
40899
+ if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet10 = this.actSet()) !== null && _this$actSet10 !== void 0 && (_this$actSet10 = _this$actSet10.CatalogData.startPlannerArticle) !== null && _this$actSet10 !== void 0 && _this$actSet10.length)) {
40716
40900
  plannerType = 'PLANNER';
40717
40901
  }
40718
40902
  }
@@ -40752,38 +40936,38 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40752
40936
  }, {
40753
40937
  key: "getCurCatalogCodex",
40754
40938
  value: function getCurCatalogCodex() {
40755
- var _this$actSet10;
40756
- return (_this$actSet10 = this.actSet()) === null || _this$actSet10 === void 0 ? void 0 : _this$actSet10.getCatalogCodex();
40939
+ var _this$actSet11;
40940
+ return (_this$actSet11 = this.actSet()) === null || _this$actSet11 === void 0 ? void 0 : _this$actSet11.getCatalogCodex();
40757
40941
  }
40758
40942
  }, {
40759
40943
  key: "getCurCatalogName",
40760
40944
  value: function getCurCatalogName() {
40761
- var _this$actSet11;
40762
- return (_this$actSet11 = this.actSet()) === null || _this$actSet11 === void 0 ? void 0 : _this$actSet11.getCatalogName();
40945
+ var _this$actSet12;
40946
+ return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getCatalogName();
40763
40947
  }
40764
40948
  }, {
40765
40949
  key: "getCurAccountName",
40766
40950
  value: function getCurAccountName() {
40767
- var _this$actSet12;
40768
- return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getAccountName();
40951
+ var _this$actSet13;
40952
+ return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getAccountName();
40769
40953
  }
40770
40954
  }, {
40771
40955
  key: "getCurSupplierGuid",
40772
40956
  value: function getCurSupplierGuid() {
40773
- var _this$actSet13;
40774
- return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getSupplierGuid();
40957
+ var _this$actSet14;
40958
+ return (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getSupplierGuid();
40775
40959
  }
40776
40960
  }, {
40777
40961
  key: "getCurSetPrice",
40778
40962
  value: function getCurSetPrice() {
40779
- var _this$actSet$getSetPr, _this$actSet14;
40780
- 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;
40963
+ var _this$actSet$getSetPr, _this$actSet15;
40964
+ return (_this$actSet$getSetPr = (_this$actSet15 = this.actSet()) === null || _this$actSet15 === void 0 ? void 0 : _this$actSet15.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
40781
40965
  }
40782
40966
  }, {
40783
40967
  key: "getCurImageMode",
40784
40968
  value: function getCurImageMode() {
40785
- var _this$actSet15;
40786
- 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';
40969
+ var _this$actSet16;
40970
+ return (_this$actSet16 = this.actSet()) !== null && _this$actSet16 !== void 0 && (_this$actSet16 = _this$actSet16.CatalogData) !== null && _this$actSet16 !== void 0 && _this$actSet16.has3dModels ? '3D' : '2D';
40787
40971
  }
40788
40972
  }, {
40789
40973
  key: "getViewConfig",
@@ -40814,65 +40998,65 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40814
40998
  }, {
40815
40999
  key: "doShow3DDimensionLines",
40816
41000
  value: function doShow3DDimensionLines() {
40817
- var _this$actSet16;
40818
- 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;
41001
+ var _this$actSet17;
41002
+ return (_this$actSet17 = this.actSet()) === null || _this$actSet17 === void 0 || (_this$actSet17 = _this$actSet17.CatalogData) === null || _this$actSet17 === void 0 ? void 0 : _this$actSet17.doShow3DDimensionLines;
40819
41003
  }
40820
41004
  }, {
40821
41005
  key: "hidePlannerUiIcons",
40822
41006
  value: function hidePlannerUiIcons() {
40823
- var _this$actSet17;
40824
- 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;
41007
+ var _this$actSet18;
41008
+ return (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 || (_this$actSet18 = _this$actSet18.CatalogData) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.hidePlannerUiIcons;
40825
41009
  }
40826
41010
  }, {
40827
41011
  key: "doShowPlannerReplaceMode",
40828
41012
  value: function doShowPlannerReplaceMode() {
40829
- var _this$actSet18, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
40830
- var catalogData = (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.CatalogData;
41013
+ var _this$actSet19, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
41014
+ var catalogData = (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.CatalogData;
40831
41015
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.replaceModeActive) && ((_this$api$getViewConf2 = this.api.getViewConfig()) === null || _this$api$getViewConf2 === void 0 ? void 0 : _this$api$getViewConf2.showReplaceFunctionInPlanner) && Object.entries(catalogData.allCatalogPlannerArticles).length > 1 && Object.entries((_catalogData$PlannerP = (_catalogData$PlannerP2 = catalogData.PlannerPaletteViewInfo) === null || _catalogData$PlannerP2 === void 0 ? void 0 : _catalogData$PlannerP2.catalogPlannerArticles) !== null && _catalogData$PlannerP !== void 0 ? _catalogData$PlannerP : {}).length > 1;
40832
41016
  }
40833
41017
  }, {
40834
41018
  key: "doPlannerReplaceAutoSwitch",
40835
41019
  value: function doPlannerReplaceAutoSwitch() {
40836
- var _this$actSet19, _this$api$getViewConf3;
40837
- var catalogData = (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.CatalogData;
41020
+ var _this$actSet20, _this$api$getViewConf3;
41021
+ var catalogData = (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.CatalogData;
40838
41022
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.catalogPlannsCompletely) && this.doShowPlannerReplaceMode() && ((_this$api$getViewConf3 = this.api.getViewConfig()) === null || _this$api$getViewConf3 === void 0 ? void 0 : _this$api$getViewConf3.allowAutoSwitchInReplaceFunctionInPlanner);
40839
41023
  }
40840
41024
  }, {
40841
41025
  key: "getHidePlanner",
40842
41026
  value: function getHidePlanner() {
40843
- var _this$actSet20;
40844
- return this.api.getHidePlanner() || !!((_this$actSet20 = this.actSet()) !== null && _this$actSet20 !== void 0 && _this$actSet20.CatalogData.useBoxPlanner);
41027
+ var _this$actSet21;
41028
+ return this.api.getHidePlanner() || !!((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.useBoxPlanner);
40845
41029
  }
40846
41030
  }, {
40847
41031
  key: "getAllowRTV",
40848
41032
  value: function getAllowRTV() {
40849
- var _this$actSet21, _this$actSet22;
41033
+ var _this$actSet22, _this$actSet23;
40850
41034
  if (this.getEnableUnityRtvKombi()) return false;
40851
41035
  if (this.api.forceShowRTV()) return true;
40852
- if ((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.divaForceRTV) return true;
40853
- if (this.api.getDoShowRTV() && (_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaArReady) return true;
41036
+ if ((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaForceRTV) return true;
41037
+ if (this.api.getDoShowRTV() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
40854
41038
  return false;
40855
41039
  }
40856
41040
  }, {
40857
41041
  key: "geAllowQRCodeAR",
40858
41042
  value: function geAllowQRCodeAR() {
40859
- var _this$actSet23;
40860
- if (this.api.getDoShowAR() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
41043
+ var _this$actSet24;
41044
+ if (this.api.getDoShowAR() && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
40861
41045
  return false;
40862
41046
  }
40863
41047
  }, {
40864
41048
  key: "getEnableUnityRtvKombi",
40865
41049
  value: function getEnableUnityRtvKombi() {
40866
- var _this$actSet24, _this$actSet25;
41050
+ var _this$actSet25, _this$actSet26;
40867
41051
  // if force rtv disable unity kombi - biohort
40868
- if ((_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaForceRTV) return false;
40869
- return ((_this$actSet25 = this.actSet()) === null || _this$actSet25 === void 0 ? void 0 : _this$actSet25.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
41052
+ if ((_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaForceRTV) return false;
41053
+ return ((_this$actSet26 = this.actSet()) === null || _this$actSet26 === void 0 ? void 0 : _this$actSet26.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
40870
41054
  }
40871
41055
  }, {
40872
41056
  key: "getShelfPlannerRTV",
40873
41057
  value: function getShelfPlannerRTV() {
40874
- var _this$actSet26;
40875
- return (_this$actSet26 = this.actSet()) === null || _this$actSet26 === void 0 ? void 0 : _this$actSet26.CatalogData.useShelfPlannerRTV;
41058
+ var _this$actSet27;
41059
+ return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData.useShelfPlannerRTV;
40876
41060
  }
40877
41061
  }, {
40878
41062
  key: "getBasketData",
@@ -40913,8 +41097,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40913
41097
  }, {
40914
41098
  key: "getCatalogData",
40915
41099
  value: function getCatalogData() {
40916
- var _this$actSet27;
40917
- return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData;
41100
+ var _this$actSet28;
41101
+ return (_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData;
40918
41102
  }
40919
41103
  }, {
40920
41104
  key: "ReturnTo",
@@ -40930,16 +41114,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40930
41114
  key: "addToBasket",
40931
41115
  value: function () {
40932
41116
  var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(actBasket) {
40933
- var _this$actions34,
40934
- _this$actions35,
41117
+ var _this$actions35,
40935
41118
  _this$actions36,
40936
41119
  _this$actions37,
40937
41120
  _this$actions38,
41121
+ _this$actions39,
40938
41122
  _this$divaBasketHandl3,
40939
41123
  _this3 = this,
40940
- _this$actions39,
40941
41124
  _this$actions40,
40942
- _this$actions41;
41125
+ _this$actions41,
41126
+ _this$actions42,
41127
+ _this$actions43;
40943
41128
  var event,
40944
41129
  addToBasketLog,
40945
41130
  emailConfig,
@@ -40955,43 +41140,43 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40955
41140
  event = _args28.length > 1 && _args28[1] !== undefined ? _args28[1] : 'onAddToBasket';
40956
41141
  addToBasketLog = true;
40957
41142
  _context28.t0 = event;
40958
- _context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 8 : _context28.t0 === 'onWebPlanerShare' ? 11 : _context28.t0 === 'onRequestConsulation' ? 14 : _context28.t0 === 'onSave' ? 17 : _context28.t0 === 'onSendEmail' ? 20 : _context28.t0 === 'onSaveProduct' ? 25 : _context28.t0 === 'dontSaveBasket' ? 33 : _context28.t0 === 'onAddToBasket' ? 35 : 35;
41143
+ _context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 8 : _context28.t0 === 'onWebPlanerShare' ? 11 : _context28.t0 === 'onRequestConsulation' ? 14 : _context28.t0 === 'onSave' ? 17 : _context28.t0 === 'onSendEmail' ? 20 : _context28.t0 === 'onSaveProduct' ? 25 : _context28.t0 === 'dontSaveBasket' ? 33 : _context28.t0 === 'onAddToBasket' ? 35 : 38;
40959
41144
  break;
40960
41145
  case 5:
40961
41146
  this.handleSuccessTransaction('onPrintBasket', actBasket);
40962
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.onEvent({
41147
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
40963
41148
  type: 'onWebPlanerPrint',
40964
41149
  data: actBasket.getAsJson()
40965
41150
  });
40966
- return _context28.abrupt("break", 38);
41151
+ return _context28.abrupt("break", 40);
40967
41152
  case 8:
40968
41153
  this.handleSuccessTransaction('onSaveBasket', actBasket);
40969
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41154
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
40970
41155
  type: 'onWebPlanerSave',
40971
41156
  data: actBasket.getAsJson()
40972
41157
  });
40973
- return _context28.abrupt("break", 38);
41158
+ return _context28.abrupt("break", 40);
40974
41159
  case 11:
40975
41160
  this.handleSuccessTransaction('onShareBasket', actBasket);
40976
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41161
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
40977
41162
  type: 'onWebPlanerShare',
40978
41163
  data: actBasket.getAsJson()
40979
41164
  });
40980
- return _context28.abrupt("break", 38);
41165
+ return _context28.abrupt("break", 40);
40981
41166
  case 14:
40982
41167
  this.handleSuccessTransaction('onRequestConsulation', actBasket);
40983
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41168
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
40984
41169
  type: 'onRequestConsulation',
40985
41170
  data: actBasket.getAsJson()
40986
41171
  });
40987
- return _context28.abrupt("break", 38);
41172
+ return _context28.abrupt("break", 40);
40988
41173
  case 17:
40989
41174
  this.handleSuccessTransaction('onSave', actBasket);
40990
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41175
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
40991
41176
  type: 'onSave',
40992
41177
  data: actBasket.getAsJson()
40993
41178
  });
40994
- return _context28.abrupt("break", 38);
41179
+ return _context28.abrupt("break", 40);
40995
41180
  case 20:
40996
41181
  emailConfig = (_this$divaBasketHandl3 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl3 !== void 0 ? _this$divaBasketHandl3 : this.getEmailConfig(); //reset the emailConfig
40997
41182
  this.divaBasketHandler.emailConfig = undefined;
@@ -41023,11 +41208,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41023
41208
  });
41024
41209
  this.handleSuccessTransaction('onSendEmail', actBasket);
41025
41210
  }
41026
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41211
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41027
41212
  type: 'onAddToBasket',
41028
41213
  data: actBasket.getAsJson()
41029
41214
  });
41030
- return _context28.abrupt("break", 38);
41215
+ return _context28.abrupt("break", 40);
41031
41216
  case 25:
41032
41217
  this.actSet().CatalogData;
41033
41218
  _context28.next = 28;
@@ -41035,7 +41220,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41035
41220
  case 28:
41036
41221
  products = _context28.sent;
41037
41222
  this.handleSuccessTransaction('onSaveProduct', actBasket);
41038
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41223
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41039
41224
  type: 'onAddToBasket',
41040
41225
  data: actBasket.getAsJson()
41041
41226
  });
@@ -41049,14 +41234,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41049
41234
  addToBasketLog = false;
41050
41235
  case 35:
41051
41236
  if (addToBasketLog) this.handleSuccessTransaction('onAddToBasket', actBasket);
41052
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41237
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41053
41238
  type: 'onAddToBasket',
41054
41239
  data: actBasket.getAsJson()
41055
41240
  });
41056
- return _context28.abrupt("break", 38);
41241
+ return _context28.abrupt("break", 40);
41057
41242
  case 38:
41243
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41244
+ type: event,
41245
+ data: actBasket.getAsJson()
41246
+ });
41247
+ return _context28.abrupt("break", 40);
41248
+ case 40:
41058
41249
  return _context28.abrupt("return");
41059
- case 39:
41250
+ case 41:
41060
41251
  case "end":
41061
41252
  return _context28.stop();
41062
41253
  }
@@ -41081,8 +41272,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41081
41272
  }, {
41082
41273
  key: "openPDFpostAsEvent",
41083
41274
  value: function openPDFpostAsEvent(mongoDBId) {
41084
- var _this$actions42, _this$actions43, _this$actions44;
41085
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.updateBreadcrumbs({
41275
+ var _this$actions44, _this$actions45, _this$actions46;
41276
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.updateBreadcrumbs({
41086
41277
  type: 'update',
41087
41278
  param: {
41088
41279
  groupId: 'SHOWROOM',
@@ -41096,7 +41287,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41096
41287
  }
41097
41288
  }
41098
41289
  });
41099
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.updateBreadcrumbs({
41290
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41100
41291
  type: 'update',
41101
41292
  param: {
41102
41293
  groupId: 'SHOWROOM',
@@ -41110,7 +41301,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41110
41301
  }
41111
41302
  }
41112
41303
  });
41113
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.openComponent({
41304
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
41114
41305
  type: 'REPORT',
41115
41306
  parameters: {
41116
41307
  id: mongoDBId
@@ -41330,14 +41521,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41330
41521
  }, {
41331
41522
  key: "subscribeToWebPlannerEvents",
41332
41523
  value: function subscribeToWebPlannerEvents() {
41333
- var _this$actions45;
41334
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.subscribeEvents(this.addToBasketEventFunction);
41524
+ var _this$actions47;
41525
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
41335
41526
  }
41336
41527
  }, {
41337
41528
  key: "unsubscribeFromWebPlannerEvents",
41338
41529
  value: function unsubscribeFromWebPlannerEvents() {
41339
- var _this$actions46;
41340
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.unSubscribeEvents(this.addToBasketEventFunction);
41530
+ var _this$actions48;
41531
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
41341
41532
  }
41342
41533
  }, {
41343
41534
  key: "initApiForLogicOnly",
@@ -41405,7 +41596,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41405
41596
  }, {
41406
41597
  key: "initBasket",
41407
41598
  value: function () {
41408
- var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(init3D, ignoreFavorites) {
41599
+ var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(init3D, ignoreFavorites, onlyCalcVariants) {
41409
41600
  var _initSetState$api$web2;
41410
41601
  var initSetState, sets, result, _sets$, set, basket;
41411
41602
  return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context31) {
@@ -41434,28 +41625,28 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41434
41625
  (_sets$ = sets[0]) === null || _sets$ === void 0 || _sets$.remindPriceForHash(result);
41435
41626
  }
41436
41627
  case 12:
41437
- //TODO: GLOBAL STUFF
41438
41628
  set = this.actSet();
41629
+ if (set) set.onlyCalcVariants = onlyCalcVariants;
41439
41630
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
41440
41631
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
41441
- _context31.next = 17;
41632
+ _context31.next = 18;
41442
41633
  break;
41443
41634
  }
41444
- _context31.next = 17;
41635
+ _context31.next = 18;
41445
41636
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
41446
- case 17:
41447
- _context31.next = 19;
41637
+ case 18:
41638
+ _context31.next = 20;
41448
41639
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
41449
- case 19:
41640
+ case 20:
41450
41641
  basket = _context31.sent;
41451
41642
  return _context31.abrupt("return", basket);
41452
- case 21:
41643
+ case 22:
41453
41644
  case "end":
41454
41645
  return _context31.stop();
41455
41646
  }
41456
41647
  }, _callee31, this);
41457
41648
  }));
41458
- function initBasket(_x78, _x79) {
41649
+ function initBasket(_x78, _x79, _x80) {
41459
41650
  return _initBasket.apply(this, arguments);
41460
41651
  }
41461
41652
  return initBasket;
@@ -41532,7 +41723,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41532
41723
  }
41533
41724
  }, _callee33, this);
41534
41725
  }));
41535
- function handleFavorites(_x80) {
41726
+ function handleFavorites(_x81) {
41536
41727
  return _handleFavorites.apply(this, arguments);
41537
41728
  }
41538
41729
  return handleFavorites;
@@ -41586,7 +41777,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41586
41777
  }
41587
41778
  }, _callee34, this);
41588
41779
  }));
41589
- function initSapOrderLinesFromBasket(_x81, _x82, _x83) {
41780
+ function initSapOrderLinesFromBasket(_x82, _x83, _x84) {
41590
41781
  return _initSapOrderLinesFromBasket.apply(this, arguments);
41591
41782
  }
41592
41783
  return initSapOrderLinesFromBasket;
@@ -42458,7 +42649,7 @@ var Grid = /*#__PURE__*/function () {
42458
42649
  case 0:
42459
42650
  option = _this.montageOptions[i];
42460
42651
  inUseCell = _this.cells.find(function (c, i) {
42461
- 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);
42652
+ 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);
42462
42653
  });
42463
42654
  specificAccessoire = option.accessoires && inUseCell !== null && inUseCell !== void 0 && inUseCell.Article ? [inUseCell.Article] : undefined;
42464
42655
  options = Array.isArray(option.optionCodex) ? option.optionCodex : [option.optionCodex];