@crystaldesign/web-planner-logic 24.13.0-beta.3 → 24.13.0-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/build/cjs/{DivaBoxPlanner-ed22c1dd.js → DivaBoxPlanner-06c887f9.js} +80 -6
  2. package/build/cjs/{DivaStandardPlanner-924415b0.js → DivaStandardPlanner-a22fbb23.js} +14 -3
  3. package/build/cjs/{DoorPlanner-33fde902.js → DoorPlanner-aa2112d0.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-0a901365.js → Host3DSignalR-c0bbd863.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-cf967a4d.js → LiviqueWWSHandler-30f8e243.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-3ab783ab.js → PfisterWWSHandler-6a9426b7.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-6b3a6722.js → PlannerHandler2D-90985ae4.js} +9 -2
  8. package/build/cjs/{SeriousBasketHandler-88cac4bb.js → SeriousBasketHandler-8777b207.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-cf726af7.js → ShelfPlanner-92d63e52.js} +4 -2
  10. package/build/cjs/{StandardWWSHandler-26ce5152.js → StandardWWSHandler-ffc29053.js} +1 -1
  11. package/build/cjs/{index-99fd2c34.js → index-70778578.js} +555 -372
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-acb7342c.js → DivaBoxPlanner-058f2cca.js} +80 -6
  14. package/build/esm/{DivaStandardPlanner-f4ce0bf9.js → DivaStandardPlanner-208066ab.js} +14 -3
  15. package/build/esm/{DoorPlanner-c8958dcc.js → DoorPlanner-cfd783d3.js} +1 -1
  16. package/build/esm/{Host3DSignalR-f4620464.js → Host3DSignalR-c8efe09c.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-05983499.js → LiviqueWWSHandler-bbd8a88e.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-e824a225.js → PfisterWWSHandler-04389428.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-a60954a4.js → PlannerHandler2D-55077851.js} +9 -2
  20. package/build/esm/{SeriousBasketHandler-d0103e1a.js → SeriousBasketHandler-0ee10495.js} +1 -1
  21. package/build/esm/{ShelfPlanner-65d91874.js → ShelfPlanner-a6ead2c4.js} +4 -2
  22. package/build/esm/{StandardWWSHandler-539b9b15.js → StandardWWSHandler-30491100.js} +1 -1
  23. package/build/esm/{index-c8ee8c9a.js → index-d8177ff7.js} +555 -372
  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 +1 -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/ShelfPlanner/ShelfAccessoiresView.d.ts +2 -0
  46. package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/interface/test/index.d.ts +0 -1
  48. package/build/types/web-planner-logic/src/interface/test/index.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  50. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts +2 -2
  51. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  52. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts +2 -4
  53. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -1
  54. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  55. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
  56. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -1
  57. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +1 -2
  58. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  59. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +6 -5
  60. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  61. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts +13 -0
  62. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
  63. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts +5 -0
  64. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts.map +1 -1
  65. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts +7 -0
  66. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
  67. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +6 -0
  68. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
  69. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +6 -0
  70. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
  71. package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/DockingPointHandler.d.ts.map +1 -1
  72. package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/PlannerHandler2D.d.ts.map +1 -1
  73. package/build/types/web-planner-logic/src/logic/Planner/Rendering/DivaMediaServiceHandler.d.ts +0 -2
  74. package/build/types/web-planner-logic/src/logic/Planner/Rendering/DivaMediaServiceHandler.d.ts.map +1 -1
  75. package/build/types/web-planner-logic/src/logic/Product/DivaProductHandler.d.ts +5 -0
  76. package/build/types/web-planner-logic/src/logic/Product/DivaProductHandler.d.ts.map +1 -1
  77. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +3 -0
  78. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
  79. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  80. package/build/types/web-planner-logic/src/logic/Set/FavoritesHandler.d.ts.map +1 -1
  81. package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts +1 -0
  82. package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts.map +1 -1
  83. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +1 -0
  84. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  85. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +2 -0
  86. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
  87. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +2 -0
  88. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
  89. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +2 -0
  90. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
  91. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +2 -0
  92. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
  93. package/package.json +2 -2
@@ -411,7 +411,6 @@ var DivaApiHandler = /*#__PURE__*/function () {
411
411
  diva3DRenderingDefault: data.diva3DRenderingDefault != undefined ? data.diva3DRenderingDefault : false,
412
412
  diva3dServerMode: data.diva3dServerMode != undefined ? data.diva3dServerMode : 'SignalR',
413
413
  diva3dRenderGroup: data.diva3dRenderGroup != undefined ? data.diva3dRenderGroup : 'MYCC7',
414
- mediaServiceApiKey: data.divaMediaServiceApiKey,
415
414
  language: lang !== null && lang !== void 0 ? lang : this.getLanguage(),
416
415
  abTestCases: data.abTestCases !== undefined ? data.abTestCases : [],
417
416
  checkForProductsPrice: data.checkForProductsPrice,
@@ -467,17 +466,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
467
466
  var _this$apiConfig$baske, _this$apiConfig9;
468
467
  return (_this$apiConfig$baske = (_this$apiConfig9 = this.apiConfig) === null || _this$apiConfig9 === void 0 ? void 0 : _this$apiConfig9.basketService) !== null && _this$apiConfig$baske !== void 0 ? _this$apiConfig$baske : '';
469
468
  }
470
- }, {
471
- key: "getDivaMediaServiceApiKey",
472
- value: function getDivaMediaServiceApiKey() {
473
- var _this$divaWebConfigDa, _this$divaWebConfigDa2;
474
- return (_this$divaWebConfigDa = (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.mediaServiceApiKey) !== null && _this$divaWebConfigDa !== void 0 ? _this$divaWebConfigDa : '';
475
- }
476
469
  }, {
477
470
  key: "getLoadProductBasketParams",
478
471
  value: function getLoadProductBasketParams() {
479
- var _this$divaWebConfigDa3;
480
- return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.loadProductBasketParams;
472
+ var _this$divaWebConfigDa;
473
+ return (_this$divaWebConfigDa = this.divaWebConfigData) === null || _this$divaWebConfigDa === void 0 ? void 0 : _this$divaWebConfigDa.loadProductBasketParams;
481
474
  }
482
475
  }, {
483
476
  key: "get3DServerUrl",
@@ -488,20 +481,20 @@ var DivaApiHandler = /*#__PURE__*/function () {
488
481
  }, {
489
482
  key: "doCheckForProductsPrice",
490
483
  value: function doCheckForProductsPrice() {
491
- var _this$divaWebConfigDa4;
492
- return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.checkForProductsPrice;
484
+ var _this$divaWebConfigDa2;
485
+ return (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.checkForProductsPrice;
493
486
  }
494
487
  }, {
495
488
  key: "getReportConfigIdentifier",
496
489
  value: function getReportConfigIdentifier() {
497
- var _this$divaWebConfigDa5;
498
- return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.reportConfigIdentifier;
490
+ var _this$divaWebConfigDa3;
491
+ return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.reportConfigIdentifier;
499
492
  }
500
493
  }, {
501
494
  key: "getPrintOptions",
502
495
  value: function getPrintOptions() {
503
- var _this$divaWebConfigDa6;
504
- var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.reportConfig;
496
+ var _this$divaWebConfigDa4;
497
+ var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.reportConfig;
505
498
  return {
506
499
  Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
507
500
  PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
@@ -521,8 +514,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
521
514
  }, {
522
515
  key: "get3DRenderGroup",
523
516
  value: function get3DRenderGroup() {
524
- var _this$divaWebConfigDa7, _this$divaWebConfigDa8;
525
- return (_this$divaWebConfigDa7 = (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dRenderGroup) !== null && _this$divaWebConfigDa7 !== void 0 ? _this$divaWebConfigDa7 : '';
517
+ var _this$divaWebConfigDa5, _this$divaWebConfigDa6;
518
+ return (_this$divaWebConfigDa5 = (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.diva3dRenderGroup) !== null && _this$divaWebConfigDa5 !== void 0 ? _this$divaWebConfigDa5 : '';
526
519
  }
527
520
  }, {
528
521
  key: "getServerId",
@@ -559,86 +552,86 @@ var DivaApiHandler = /*#__PURE__*/function () {
559
552
  }, {
560
553
  key: "getDiva3dStaticBGImage",
561
554
  value: function getDiva3dStaticBGImage() {
562
- var _this$divaWebConfigDa9;
563
- return (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.diva3dStaticBGImage;
555
+ var _this$divaWebConfigDa7;
556
+ return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.diva3dStaticBGImage;
564
557
  }
565
558
  }, {
566
559
  key: "getDiva3dStaticBGImage_DefaultRoomList",
567
560
  value: function getDiva3dStaticBGImage_DefaultRoomList() {
568
- var _this$divaWebConfigDa10, _this$divaWebConfigDa11;
569
- return ((_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3dStaticBGImage_DefaultRoomList;
561
+ var _this$divaWebConfigDa8, _this$divaWebConfigDa9;
562
+ return ((_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.diva3dStaticBGImage_DefaultRoomList;
570
563
  }
571
564
  }, {
572
565
  key: "getDiva3DAllowDefaultCatRoomList",
573
566
  value: function getDiva3DAllowDefaultCatRoomList() {
574
- var _this$divaWebConfigDa12;
575
- return (_this$divaWebConfigDa12 = this.divaWebConfigData) === null || _this$divaWebConfigDa12 === void 0 ? void 0 : _this$divaWebConfigDa12.diva3DAllowDefaultCatRoomList;
567
+ var _this$divaWebConfigDa10;
568
+ return (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3DAllowDefaultCatRoomList;
576
569
  }
577
570
  }, {
578
571
  key: "doAllowSetPlanner",
579
572
  value: function doAllowSetPlanner() {
580
- var _this$divaWebConfigDa13;
581
- return (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.doAllowSetPlanner;
573
+ var _this$divaWebConfigDa11;
574
+ return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.doAllowSetPlanner;
582
575
  }
583
576
  }, {
584
577
  key: "getHidePlanner",
585
578
  value: function getHidePlanner() {
586
- var _this$divaWebConfigDa14;
587
- return !!((_this$divaWebConfigDa14 = this.divaWebConfigData) !== null && _this$divaWebConfigDa14 !== void 0 && (_this$divaWebConfigDa14 = _this$divaWebConfigDa14.viewConfig) !== null && _this$divaWebConfigDa14 !== void 0 && _this$divaWebConfigDa14.hidePlanner);
579
+ var _this$divaWebConfigDa12;
580
+ return !!((_this$divaWebConfigDa12 = this.divaWebConfigData) !== null && _this$divaWebConfigDa12 !== void 0 && (_this$divaWebConfigDa12 = _this$divaWebConfigDa12.viewConfig) !== null && _this$divaWebConfigDa12 !== void 0 && _this$divaWebConfigDa12.hidePlanner);
588
581
  }
589
582
  }, {
590
583
  key: "getDoShowAR",
591
584
  value: function getDoShowAR() {
592
- var _this$divaWebConfigDa15;
593
- return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 || (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.enableAR;
585
+ var _this$divaWebConfigDa13;
586
+ return (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 || (_this$divaWebConfigDa13 = _this$divaWebConfigDa13.viewConfig) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.enableAR;
594
587
  }
595
588
  }, {
596
589
  key: "forceShowRTV",
597
590
  value: function forceShowRTV() {
598
- var _this$divaWebConfigDa16;
599
- return (_this$divaWebConfigDa16 = this.divaWebConfigData) === null || _this$divaWebConfigDa16 === void 0 || (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) === null || _this$divaWebConfigDa16 === void 0 ? void 0 : _this$divaWebConfigDa16.forceRTV;
591
+ var _this$divaWebConfigDa14;
592
+ return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 || (_this$divaWebConfigDa14 = _this$divaWebConfigDa14.viewConfig) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.forceRTV;
600
593
  }
601
594
  }, {
602
595
  key: "getDoShowRTV",
603
596
  value: function getDoShowRTV() {
604
- var _this$divaWebConfigDa17;
605
- return (_this$divaWebConfigDa17 = this.divaWebConfigData) === null || _this$divaWebConfigDa17 === void 0 || (_this$divaWebConfigDa17 = _this$divaWebConfigDa17.viewConfig) === null || _this$divaWebConfigDa17 === void 0 ? void 0 : _this$divaWebConfigDa17.enableRTV;
597
+ var _this$divaWebConfigDa15;
598
+ return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 || (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.enableRTV;
606
599
  }
607
600
  }, {
608
601
  key: "getEnableRTVUnityKombi",
609
602
  value: function getEnableRTVUnityKombi() {
610
- var _this$divaWebConfigDa18;
611
- return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.viewConfig.enableRtvUnityKombi);
603
+ var _this$divaWebConfigDa16;
604
+ return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.viewConfig.enableRtvUnityKombi);
612
605
  }
613
606
  }, {
614
607
  key: "getDoDisablePlanner2D",
615
608
  value: function getDoDisablePlanner2D() {
616
- var _this$divaWebConfigDa19;
617
- return !!((_this$divaWebConfigDa19 = this.divaWebConfigData) !== null && _this$divaWebConfigDa19 !== void 0 && _this$divaWebConfigDa19.doDisablePlanner2D);
609
+ var _this$divaWebConfigDa17;
610
+ return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
618
611
  }
619
612
  }, {
620
613
  key: "getRoomListInProduct",
621
614
  value: function getRoomListInProduct() {
622
- var _this$divaWebConfigDa20;
623
- return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && (_this$divaWebConfigDa20 = _this$divaWebConfigDa20.viewConfig) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.roomListInProduct);
615
+ var _this$divaWebConfigDa18;
616
+ return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
624
617
  }
625
618
  }, {
626
619
  key: "getPlannerType",
627
620
  value: function getPlannerType() {
628
- var _this$divaWebConfigDa21;
629
- return (_this$divaWebConfigDa21 = this.divaWebConfigData) === null || _this$divaWebConfigDa21 === void 0 || (_this$divaWebConfigDa21 = _this$divaWebConfigDa21.viewConfig) === null || _this$divaWebConfigDa21 === void 0 ? void 0 : _this$divaWebConfigDa21.plannerType;
621
+ var _this$divaWebConfigDa19;
622
+ return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 || (_this$divaWebConfigDa19 = _this$divaWebConfigDa19.viewConfig) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.plannerType;
630
623
  }
631
624
  }, {
632
625
  key: "getLoadSupplierColors",
633
626
  value: function getLoadSupplierColors() {
634
- var _this$divaWebConfigDa22;
635
- return !!((_this$divaWebConfigDa22 = this.divaWebConfigData) !== null && _this$divaWebConfigDa22 !== void 0 && _this$divaWebConfigDa22.loadSupplierColors);
627
+ var _this$divaWebConfigDa20;
628
+ return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
636
629
  }
637
630
  }, {
638
631
  key: "showSelectionModeZero",
639
632
  value: function showSelectionModeZero() {
640
- var _this$divaWebConfigDa23;
641
- return !!((_this$divaWebConfigDa23 = this.divaWebConfigData) !== null && _this$divaWebConfigDa23 !== void 0 && _this$divaWebConfigDa23.showSelectionModeZero);
633
+ var _this$divaWebConfigDa21;
634
+ return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
642
635
  }
643
636
  }, {
644
637
  key: "ruleDescSeperator",
@@ -658,8 +651,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
658
651
  }, {
659
652
  key: "getDoCheckVariantData",
660
653
  value: function getDoCheckVariantData() {
661
- var _this$divaWebConfigDa24;
662
- return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.doCheckVariantData;
654
+ var _this$divaWebConfigDa22;
655
+ return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.doCheckVariantData;
663
656
  }
664
657
  }, {
665
658
  key: "setI18n",
@@ -752,50 +745,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
752
745
  }, {
753
746
  key: "getViewConfig",
754
747
  value: function getViewConfig() {
755
- var _this$divaWebConfigDa25;
756
- return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.viewConfig;
748
+ var _this$divaWebConfigDa23;
749
+ return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.viewConfig;
757
750
  }
758
751
  }, {
759
752
  key: "getEmailConfig",
760
753
  value: function getEmailConfig() {
761
- var _this$divaWebConfigDa26;
762
- return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.emailConfig;
754
+ var _this$divaWebConfigDa24;
755
+ return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.emailConfig;
763
756
  }
764
757
  }, {
765
758
  key: "getABTestCases",
766
759
  value: function getABTestCases() {
767
- var _this$divaWebConfigDa27, _this$divaWebConfigDa28;
768
- return (_this$divaWebConfigDa27 = (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.abTestCases) !== null && _this$divaWebConfigDa27 !== void 0 ? _this$divaWebConfigDa27 : [];
760
+ var _this$divaWebConfigDa25, _this$divaWebConfigDa26;
761
+ return (_this$divaWebConfigDa25 = (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.abTestCases) !== null && _this$divaWebConfigDa25 !== void 0 ? _this$divaWebConfigDa25 : [];
769
762
  }
770
763
  }, {
771
764
  key: "getBarrierConfig",
772
765
  value: function getBarrierConfig() {
773
- var _this$divaWebConfigDa29;
774
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.barrierConfig;
766
+ var _this$divaWebConfigDa27;
767
+ return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.barrierConfig;
775
768
  }
776
769
  }, {
777
770
  key: "getTemplateConfig",
778
771
  value: function getTemplateConfig() {
779
- var _this$divaWebConfigDa30;
780
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.templateConfig;
772
+ var _this$divaWebConfigDa28;
773
+ return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.templateConfig;
781
774
  }
782
775
  }, {
783
776
  key: "showDivaNr",
784
777
  value: function showDivaNr() {
785
- var _this$divaWebConfigDa31;
786
- return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.showDivaNr;
778
+ var _this$divaWebConfigDa29;
779
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.showDivaNr;
787
780
  }
788
781
  }, {
789
782
  key: "onErrorHandling",
790
783
  value: function onErrorHandling() {
791
- var _this$divaWebConfigDa32;
792
- return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.onErrorHandling;
784
+ var _this$divaWebConfigDa30;
785
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.onErrorHandling;
793
786
  }
794
787
  }, {
795
788
  key: "diva3DRenderingDefault",
796
789
  value: function diva3DRenderingDefault() {
797
- var _this$divaWebConfigDa33;
798
- return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.diva3DRenderingDefault;
790
+ var _this$divaWebConfigDa31;
791
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.diva3DRenderingDefault;
799
792
  }
800
793
  }, {
801
794
  key: "getJwt",
@@ -810,8 +803,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
810
803
  }, {
811
804
  key: "getUseMask",
812
805
  value: function getUseMask() {
813
- var _this$divaWebConfigDa34;
814
- return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.useMask;
806
+ var _this$divaWebConfigDa32;
807
+ return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.useMask;
815
808
  }
816
809
  }, {
817
810
  key: "apiUrl",
@@ -883,8 +876,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
883
876
  return '/v1/products/' + productId + '/list';
884
877
  }
885
878
  }, {
886
- key: "getProductBasketUrl",
887
- value: function getProductBasketUrl(key, value) {
879
+ key: "getProductByKeyValueUrl",
880
+ value: function getProductByKeyValueUrl(key, value) {
888
881
  return "/v1/products/basket?key=".concat(key, "&value=").concat(value);
889
882
  }
890
883
  }, {
@@ -1331,14 +1324,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1331
1324
  }, {
1332
1325
  key: "dontLoadAdditionalModelInfos",
1333
1326
  get: function get() {
1334
- var _this$divaWebConfigDa35;
1335
- return (_this$divaWebConfigDa35 = this.divaWebConfigData) === null || _this$divaWebConfigDa35 === void 0 ? void 0 : _this$divaWebConfigDa35.dontLoadAdditionalModelInfos;
1327
+ var _this$divaWebConfigDa33;
1328
+ return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadAdditionalModelInfos;
1336
1329
  }
1337
1330
  }, {
1338
1331
  key: "dontLoadCatalogEditorLiteMask",
1339
1332
  get: function get() {
1340
- var _this$divaWebConfigDa36;
1341
- return (_this$divaWebConfigDa36 = this.divaWebConfigData) === null || _this$divaWebConfigDa36 === void 0 ? void 0 : _this$divaWebConfigDa36.dontLoadCatalogEditorLiteMask;
1333
+ var _this$divaWebConfigDa34;
1334
+ return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.dontLoadCatalogEditorLiteMask;
1342
1335
  }
1343
1336
  }, {
1344
1337
  key: "OrganizationId",
@@ -1597,6 +1590,16 @@ var ArticleOptionData = /*#__PURE__*/function () {
1597
1590
  get: function get() {
1598
1591
  return this.opt.catalogOPT.contentItemId;
1599
1592
  }
1593
+ }, {
1594
+ key: "showSearchbar",
1595
+ get: function get() {
1596
+ return this.opt.catalogOPT.showSearchbar;
1597
+ }
1598
+ }, {
1599
+ key: "showFilter",
1600
+ get: function get() {
1601
+ return this.opt.catalogOPT.showFilter;
1602
+ }
1600
1603
  }, {
1601
1604
  key: "pdfUrl",
1602
1605
  get: function get() {
@@ -1754,6 +1757,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1754
1757
  get: function get() {
1755
1758
  return this.opv.codex;
1756
1759
  }
1760
+ }, {
1761
+ key: "isNotRelevant",
1762
+ get: function get() {
1763
+ return this.opv.catalogOPV.isNotRelevant;
1764
+ }
1757
1765
  }, {
1758
1766
  key: "vCodex",
1759
1767
  get: function get() {
@@ -1904,6 +1912,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1904
1912
  get: function get() {
1905
1913
  return this.opv.catalogOPV.contentItemId;
1906
1914
  }
1915
+ }, {
1916
+ key: "groupContentItemId",
1917
+ get: function get() {
1918
+ return this.opv.catalogOPV.groupContentItemId;
1919
+ }
1907
1920
  }, {
1908
1921
  key: "subArticleCodex",
1909
1922
  get: function get() {
@@ -16043,6 +16056,10 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16043
16056
  this.opv.onRule = prop.Value;
16044
16057
  } else if (prop.Codex === 'CONTENT_ITEM') {
16045
16058
  this.opv.contentItemId = prop.Value;
16059
+ } else if (prop.Codex === 'IS_NOT_RELEVANT') {
16060
+ this.opv.isNotRelevant = prop.Value;
16061
+ } else if (prop.Codex === 'GROUP_CONTENT_ITEM') {
16062
+ this.opv.groupContentItemId = prop.Value;
16046
16063
  } else if (prop.Codex === 'SET_BY_RULE') {
16047
16064
  this.opv.setByRule = prop.Value;
16048
16065
  } else {
@@ -16080,6 +16097,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16080
16097
  get: function get() {
16081
16098
  return this.opv.vCodex;
16082
16099
  }
16100
+ }, {
16101
+ key: "isNotRelevant",
16102
+ get: function get() {
16103
+ return this.opv.isNotRelevant;
16104
+ }
16083
16105
  }, {
16084
16106
  key: "name",
16085
16107
  get: function get() {
@@ -16213,6 +16235,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16213
16235
  get: function get() {
16214
16236
  return this.opv.contentItemId;
16215
16237
  }
16238
+ }, {
16239
+ key: "groupContentItemId",
16240
+ get: function get() {
16241
+ return this.opv.groupContentItemId;
16242
+ }
16216
16243
  }, {
16217
16244
  key: "metaData",
16218
16245
  get: function get() {
@@ -16450,6 +16477,8 @@ var CatalogArticleData = /*#__PURE__*/function () {
16450
16477
  this.catalogArticle.maxPlanningCount = Number(prop.Value);
16451
16478
  } else if (_key == 'CONTENT_ITEM') {
16452
16479
  this.catalogArticle.contentItemId = prop.Value;
16480
+ } else if (_key == 'GROUP_CONTENT_ITEM') {
16481
+ this.catalogArticle.groupContentItemId = prop.Value;
16453
16482
  } else if (_key == 'HAS3D') {
16454
16483
  this.catalogArticle.isVisualized = prop.Value;
16455
16484
  } else {
@@ -16500,6 +16529,11 @@ var CatalogArticleData = /*#__PURE__*/function () {
16500
16529
  get: function get() {
16501
16530
  return this.catalogArticle.contentItemId;
16502
16531
  }
16532
+ }, {
16533
+ key: "groupContentItemId",
16534
+ get: function get() {
16535
+ return this.catalogArticle.groupContentItemId;
16536
+ }
16503
16537
  }, {
16504
16538
  key: "articleCodex",
16505
16539
  get: function get() {
@@ -17094,7 +17128,8 @@ var CatalogArticleData = /*#__PURE__*/function () {
17094
17128
  isVisualized: catalogArticle.isVisualized,
17095
17129
  configStepKeys: [],
17096
17130
  metaData: catalogArticle.metaDataView,
17097
- contentItemId: catalogArticle.contentItemId
17131
+ contentItemId: catalogArticle.contentItemId,
17132
+ groupContentItemId: catalogArticle.groupContentItemId
17098
17133
  });
17099
17134
  }
17100
17135
  }
@@ -17830,6 +17865,12 @@ var OptionCatalogData = /*#__PURE__*/function () {
17830
17865
  case 'INFO_URL':
17831
17866
  this.opt.url = prop.Value;
17832
17867
  break;
17868
+ case 'SHOW_SEARCHBAR':
17869
+ this.opt.showSearchbar = prop.Value == '1';
17870
+ break;
17871
+ case 'SHOW_FILTER':
17872
+ this.opt.showFilter = prop.Value == '1';
17873
+ break;
17833
17874
  case 'INFO_PDF':
17834
17875
  this.opt.pdfUrl = prop.Value;
17835
17876
  break;
@@ -18030,6 +18071,16 @@ var OptionCatalogData = /*#__PURE__*/function () {
18030
18071
  get: function get() {
18031
18072
  return this.opt.url;
18032
18073
  }
18074
+ }, {
18075
+ key: "showSearchbar",
18076
+ get: function get() {
18077
+ return this.opt.showSearchbar;
18078
+ }
18079
+ }, {
18080
+ key: "showFilter",
18081
+ get: function get() {
18082
+ return this.opt.showFilter;
18083
+ }
18033
18084
  }, {
18034
18085
  key: "pdfUrl",
18035
18086
  get: function get() {
@@ -18126,7 +18177,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
18126
18177
  brandName: json.Brandname,
18127
18178
  mediaUrl: '',
18128
18179
  // https://retail.diva-portal.de/files/33/9680c4a3-fc60-4541-8738-4859d9b24e9d/";
18129
- imageBaseUrl: '',
18130
18180
  subFolder: json.SubFolder,
18131
18181
  longDescription: json.LongDescription,
18132
18182
  longDescription_locales: json.LongDescription_locales,
@@ -18201,9 +18251,12 @@ var DivaCatalogData = /*#__PURE__*/function () {
18201
18251
  //DP Logik
18202
18252
  reconfigAfterArticleDocked: false,
18203
18253
  ignoreLayerAVC: false,
18204
- // !! Obsolete - AVC auch docken, wenn auf demselben Layer LEA??
18254
+ //
18205
18255
  ignoreLayerAVOAVU: false,
18206
- // !! Obsolete - AVOAVU auch docken, wenn auf demselben Layer LEA??
18256
+ //
18257
+ ignoreLayerAVNAVS: false,
18258
+ //
18259
+
18207
18260
  dockAccOnAvoOnly: false,
18208
18261
  // ist bei Küssnacht dass Acc nicht an nach unten schauenden Dockingpoints angedockt werden können sondern immer nur oben drauf verplant werden können
18209
18262
  showAccOnDpOnly: false,
@@ -18328,9 +18381,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18328
18381
  key: "getMediaURL",
18329
18382
  value: function getMediaURL(subFolder) {
18330
18383
  var retval = '';
18331
- if (this.catalogData.imageBaseUrl != '') {
18332
- retval = this.catalogData.imageBaseUrl;
18333
- } else if (this.api.getBaseUrl().substring(0, 4) == 'http') {
18384
+ if (this.api.getBaseUrl().substring(0, 4) == 'http') {
18334
18385
  retval = this.api.getBaseUrl() + '/' + this.api.getServerId() + '/';
18335
18386
  }
18336
18387
  if (subFolder != '') retval += subFolder + '/';
@@ -18502,6 +18553,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18502
18553
  _this.catalogData.ignoreLayerAVC = item.Value == '1';
18503
18554
  } else if (item.Codex == 'IGNORELAYERAVOAVU') {
18504
18555
  _this.catalogData.ignoreLayerAVOAVU = item.Value == '1';
18556
+ } else if (item.Codex == 'IGNORELAYERAVNAVS') {
18557
+ _this.catalogData.ignoreLayerAVNAVS = item.Value == '1';
18505
18558
  } else if (item.Codex == 'DOCKACCONAVOONLY') {
18506
18559
  //Accessoires können nur aufwärts verplant werden. (Für Küssnacht)
18507
18560
  _this.catalogData.dockAccOnAvoOnly = item.Value == '1';
@@ -18786,6 +18839,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18786
18839
  groupName: groupTitle,
18787
18840
  metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
18788
18841
  contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
18842
+ groupContentItemId: this.catalogArticles[catPlanArticle.codex].groupContentItemId,
18789
18843
  partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
18790
18844
  };
18791
18845
  this.plannerPaletteViewInfo.catalogPlannerArticles.push(catPlanArtView);
@@ -18844,6 +18898,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18844
18898
  groupName: groupTitle,
18845
18899
  metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
18846
18900
  contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
18901
+ groupContentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
18847
18902
  partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
18848
18903
  };
18849
18904
  //nicht ausmultiplizierte Elemente
@@ -19063,6 +19118,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
19063
19118
  return {
19064
19119
  ignoreLayerAVC: this.catalogData.ignoreLayerAVC,
19065
19120
  ignoreLayerAVOAVU: this.catalogData.ignoreLayerAVOAVU,
19121
+ ignoreLayerAVNAVS: this.catalogData.ignoreLayerAVNAVS,
19066
19122
  showAccOnDpOnly: this.catalogData.showAccOnDpOnly,
19067
19123
  dockAccOnAvoOnly: this.catalogData.dockAccOnAvoOnly,
19068
19124
  hideAccessoriesInPlanner: this.catalogData.accessorieStepAsPlanner,
@@ -20007,7 +20063,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20007
20063
  }, {
20008
20064
  key: "isDisabled",
20009
20065
  get: function get() {
20010
- return this.articleOptionState.disabled || (this.valCodex == 'OPVNR' || this.valCodex == 'OPVNRR' || this.valCodex == 'OPVNR_0') && this.visibleCount == 1;
20066
+ var _this$val3;
20067
+ return this.articleOptionState.disabled || !!((_this$val3 = this.val) !== null && _this$val3 !== void 0 && _this$val3.isNotRelevant) && this.visibleCount == 1;
20011
20068
  },
20012
20069
  set: function set(isDisabled) {
20013
20070
  this.articleOptionState.disabled = isDisabled;
@@ -20015,7 +20072,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20015
20072
  }, {
20016
20073
  key: "isDoShow",
20017
20074
  get: function get() {
20018
- return this.articleOptionState.doShow && (this.valCodex != 'OPVNR' && this.valCodex != 'OPVNRR' && this.valCodex != 'OPVNR_0' || this.visibleCount > 1);
20075
+ var _this$val4;
20076
+ return this.articleOptionState.doShow && (!((_this$val4 = this.val) !== null && _this$val4 !== void 0 && _this$val4.isNotRelevant) || this.visibleCount > 1);
20019
20077
  },
20020
20078
  set: function set(doShow) {
20021
20079
  this.articleOptionState.doShow = doShow;
@@ -20059,14 +20117,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20059
20117
  }, {
20060
20118
  key: "priceId",
20061
20119
  get: function get() {
20062
- var _this$val$priceId, _this$val3;
20063
- return (_this$val$priceId = (_this$val3 = this.val) === null || _this$val3 === void 0 ? void 0 : _this$val3.priceId) !== null && _this$val$priceId !== void 0 ? _this$val$priceId : '';
20120
+ var _this$val$priceId, _this$val5;
20121
+ return (_this$val$priceId = (_this$val5 = this.val) === null || _this$val5 === void 0 ? void 0 : _this$val5.priceId) !== null && _this$val$priceId !== void 0 ? _this$val$priceId : '';
20064
20122
  }
20065
20123
  }, {
20066
20124
  key: "targetOption",
20067
20125
  get: function get() {
20068
- var _this$val4;
20069
- return (_this$val4 = this.val) === null || _this$val4 === void 0 ? void 0 : _this$val4.targetOption;
20126
+ var _this$val6;
20127
+ return (_this$val6 = this.val) === null || _this$val6 === void 0 ? void 0 : _this$val6.targetOption;
20070
20128
  }
20071
20129
  }, {
20072
20130
  key: "targetPPGPrefixes",
@@ -20083,14 +20141,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20083
20141
  }, {
20084
20142
  key: "quantity",
20085
20143
  get: function get() {
20086
- var _this$val$quantity, _this$val5;
20087
- return (_this$val$quantity = (_this$val5 = this.val) === null || _this$val5 === void 0 ? void 0 : _this$val5.quantity) !== null && _this$val$quantity !== void 0 ? _this$val$quantity : 1;
20144
+ var _this$val$quantity, _this$val7;
20145
+ return (_this$val$quantity = (_this$val7 = this.val) === null || _this$val7 === void 0 ? void 0 : _this$val7.quantity) !== null && _this$val$quantity !== void 0 ? _this$val$quantity : 1;
20088
20146
  }
20089
20147
  }, {
20090
20148
  key: "ocd",
20091
20149
  get: function get() {
20092
- var _this$val6;
20093
- return (_this$val6 = this.val) === null || _this$val6 === void 0 ? void 0 : _this$val6.ocd;
20150
+ var _this$val8;
20151
+ return (_this$val8 = this.val) === null || _this$val8 === void 0 ? void 0 : _this$val8.ocd;
20094
20152
  }
20095
20153
  }, {
20096
20154
  key: "optionOcd",
@@ -20100,8 +20158,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20100
20158
  }, {
20101
20159
  key: "value",
20102
20160
  get: function get() {
20103
- var _this$val7;
20104
- return (_this$val7 = this.val) === null || _this$val7 === void 0 ? void 0 : _this$val7.value;
20161
+ var _this$val9;
20162
+ return (_this$val9 = this.val) === null || _this$val9 === void 0 ? void 0 : _this$val9.value;
20105
20163
  }
20106
20164
  }, {
20107
20165
  key: "vCodex",
@@ -20129,8 +20187,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20129
20187
  get: function get() {
20130
20188
  if (this.articleOptionState.retailArticleNr) return this.articleOptionState.retailArticleNr;
20131
20189
  if (this.articleOptionState.option.articlePlaceholder) {
20132
- var _this$val8;
20133
- return (_this$val8 = this.val) === null || _this$val8 === void 0 ? void 0 : _this$val8.subRetailArticleNr;
20190
+ var _this$val10;
20191
+ return (_this$val10 = this.val) === null || _this$val10 === void 0 ? void 0 : _this$val10.subRetailArticleNr;
20134
20192
  }
20135
20193
  return undefined;
20136
20194
  },
@@ -20153,8 +20211,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20153
20211
  }, {
20154
20212
  key: "visibleInSummary",
20155
20213
  value: function visibleInSummary(aritcle) {
20156
- var _this$val9;
20157
- return !this.isInvisible && (this.selectionmode != 0 || (this.visibleCount > 1 || this.isFreeText) && aritcle.set.api.showSelectionModeZero()) && this.isDoShow && this.valCodex != 'OPVNR' && !this.isHiddenByDefaultValueForOptions(aritcle) && !((_this$val9 = this.val) !== null && _this$val9 !== void 0 && _this$val9.hideInSummary);
20214
+ var _this$val11, _this$val12;
20215
+ return !this.isInvisible && (this.selectionmode != 0 || (this.visibleCount > 1 || this.isFreeText) && aritcle.set.api.showSelectionModeZero()) && this.isDoShow && !((_this$val11 = this.val) !== null && _this$val11 !== void 0 && _this$val11.isNotRelevant) && !this.isHiddenByDefaultValueForOptions(aritcle) && !((_this$val12 = this.val) !== null && _this$val12 !== void 0 && _this$val12.hideInSummary);
20158
20216
  }
20159
20217
  }, {
20160
20218
  key: "isHiddenByDefaultValueForOptions",
@@ -20175,45 +20233,45 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20175
20233
  }, {
20176
20234
  key: "subArticleCodex",
20177
20235
  get: function get() {
20178
- var _this$val10;
20179
- return (_this$val10 = this.val) === null || _this$val10 === void 0 ? void 0 : _this$val10.subArticleCodex;
20236
+ var _this$val13;
20237
+ return (_this$val13 = this.val) === null || _this$val13 === void 0 ? void 0 : _this$val13.subArticleCodex;
20180
20238
  }
20181
20239
  }, {
20182
20240
  key: "subArticleName",
20183
20241
  get: function get() {
20184
- var _this$val11;
20185
- return (_this$val11 = this.val) === null || _this$val11 === void 0 ? void 0 : _this$val11.subArticleName;
20242
+ var _this$val14;
20243
+ return (_this$val14 = this.val) === null || _this$val14 === void 0 ? void 0 : _this$val14.subArticleName;
20186
20244
  }
20187
20245
  }, {
20188
20246
  key: "measureUnit",
20189
20247
  get: function get() {
20190
- var _this$val12;
20191
- return (_this$val12 = this.val) === null || _this$val12 === void 0 ? void 0 : _this$val12.measureUnit;
20248
+ var _this$val15;
20249
+ return (_this$val15 = this.val) === null || _this$val15 === void 0 ? void 0 : _this$val15.measureUnit;
20192
20250
  }
20193
20251
  }, {
20194
20252
  key: "priceUnit",
20195
20253
  get: function get() {
20196
- var _this$val$priceUnit, _this$val13, _this$val14, _this$val$parent;
20197
- var retval = (_this$val$priceUnit = (_this$val13 = this.val) === null || _this$val13 === void 0 ? void 0 : _this$val13.priceUnit) !== null && _this$val$priceUnit !== void 0 ? _this$val$priceUnit : (_this$val14 = this.val) !== null && _this$val14 !== void 0 && _this$val14.isParentOPVG ? (_this$val$parent = this.val.parent) === null || _this$val$parent === void 0 ? void 0 : _this$val$parent.priceUnit : undefined;
20254
+ var _this$val$priceUnit, _this$val16, _this$val17, _this$val$parent;
20255
+ var retval = (_this$val$priceUnit = (_this$val16 = this.val) === null || _this$val16 === void 0 ? void 0 : _this$val16.priceUnit) !== null && _this$val$priceUnit !== void 0 ? _this$val$priceUnit : (_this$val17 = this.val) !== null && _this$val17 !== void 0 && _this$val17.isParentOPVG ? (_this$val$parent = this.val.parent) === null || _this$val$parent === void 0 ? void 0 : _this$val$parent.priceUnit : undefined;
20198
20256
  return retval;
20199
20257
  }
20200
20258
  }, {
20201
20259
  key: "isPercentage",
20202
20260
  get: function get() {
20203
- var _this$val15;
20204
- return (_this$val15 = this.val) === null || _this$val15 === void 0 ? void 0 : _this$val15.isPercentage;
20261
+ var _this$val18;
20262
+ return (_this$val18 = this.val) === null || _this$val18 === void 0 ? void 0 : _this$val18.isPercentage;
20205
20263
  }
20206
20264
  }, {
20207
20265
  key: "replaceMainArtNr",
20208
20266
  get: function get() {
20209
- var _this$val16;
20210
- return (_this$val16 = this.val) === null || _this$val16 === void 0 ? void 0 : _this$val16.subarticleReplaceMainArticleNr;
20267
+ var _this$val19;
20268
+ return (_this$val19 = this.val) === null || _this$val19 === void 0 ? void 0 : _this$val19.subarticleReplaceMainArticleNr;
20211
20269
  }
20212
20270
  }, {
20213
20271
  key: "subArticleTypeNr",
20214
20272
  get: function get() {
20215
- var _this$val17;
20216
- return (_this$val17 = this.val) === null || _this$val17 === void 0 ? void 0 : _this$val17.subArticleTypeNr;
20273
+ var _this$val20;
20274
+ return (_this$val20 = this.val) === null || _this$val20 === void 0 ? void 0 : _this$val20.subArticleTypeNr;
20217
20275
  }
20218
20276
  }, {
20219
20277
  key: "isVisibleFreeText",
@@ -20239,14 +20297,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20239
20297
  }, {
20240
20298
  key: "isOnlyFreeText",
20241
20299
  get: function get() {
20242
- var _this$val18;
20243
- return ((_this$val18 = this.val) === null || _this$val18 === void 0 ? void 0 : _this$val18.isFreeText) && this.visibleCount == 1;
20300
+ var _this$val21;
20301
+ return ((_this$val21 = this.val) === null || _this$val21 === void 0 ? void 0 : _this$val21.isFreeText) && this.visibleCount == 1;
20244
20302
  }
20245
20303
  }, {
20246
20304
  key: "isFreeText",
20247
20305
  get: function get() {
20248
- var _this$val19;
20249
- return (_this$val19 = this.val) === null || _this$val19 === void 0 ? void 0 : _this$val19.isFreeText;
20306
+ var _this$val22;
20307
+ return (_this$val22 = this.val) === null || _this$val22 === void 0 ? void 0 : _this$val22.isFreeText;
20250
20308
  }
20251
20309
  }, {
20252
20310
  key: "freeText",
@@ -20291,8 +20349,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20291
20349
  }, {
20292
20350
  key: "warning",
20293
20351
  get: function get() {
20294
- var _this$val20;
20295
- if ((_this$val20 = this.val) !== null && _this$val20 !== void 0 && _this$val20.isFreeText) {
20352
+ var _this$val23;
20353
+ if ((_this$val23 = this.val) !== null && _this$val23 !== void 0 && _this$val23.isFreeText) {
20296
20354
  if (this.val.measureMaximum && Number(this.freeText) > Number(this.val.measureMaximum) || this.val.measureMinimum && Number(this.freeText) < Number(this.val.measureMinimum)) {
20297
20355
  return 'measureWarning';
20298
20356
  }
@@ -23561,7 +23619,7 @@ var DivaArticle = /*#__PURE__*/function () {
23561
23619
  break;
23562
23620
  }
23563
23621
  _context.next = 4;
23564
- return import('./ShelfPlanner-65d91874.js');
23622
+ return import('./ShelfPlanner-a6ead2c4.js');
23565
23623
  case 4:
23566
23624
  _yield$import = _context.sent;
23567
23625
  ShelfPlanner = _yield$import["default"];
@@ -24751,7 +24809,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24751
24809
  break;
24752
24810
  }
24753
24811
  _context6.next = 15;
24754
- return this.updateCfgValues(actArticle, valuesArray[i], {});
24812
+ return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
24755
24813
  case 15:
24756
24814
  newPartlistArticlesToLoad = _context6.sent;
24757
24815
  _actArticle$checkDefa = actArticle.checkDefaultGlobalOpt(valuesArray[i]), variantValues = _actArticle$checkDefa.variantValues, triggerUpdate = _actArticle$checkDefa.triggerUpdate;
@@ -24765,7 +24823,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24765
24823
  }
24766
24824
  _context6.t0 = partlistArticlesToLoad;
24767
24825
  _context6.next = 24;
24768
- return this.updateCfgValues(actArticle, valuesArray[i], {});
24826
+ return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
24769
24827
  case 24:
24770
24828
  _context6.t1 = _context6.sent;
24771
24829
  partlistArticlesToLoad = _context6.t0.concat.call(_context6.t0, _context6.t1);
@@ -24780,7 +24838,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24780
24838
  case 32:
24781
24839
  _context6.t2 = partlistArticlesToLoad;
24782
24840
  _context6.next = 35;
24783
- return this.updateCfgValues(actArticle, {}, {});
24841
+ return this.updateCfgValues(actArticle, {}, {}, undefined, undefined, from == 'calcVariant');
24784
24842
  case 35:
24785
24843
  _context6.t3 = _context6.sent;
24786
24844
  partlistArticlesToLoad = _context6.t2.concat.call(_context6.t2, _context6.t3);
@@ -24827,10 +24885,10 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24827
24885
  break;
24828
24886
  }
24829
24887
  _context6.next = 59;
24830
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
24888
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24831
24889
  case 59:
24832
24890
  _context6.next = 61;
24833
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
24891
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24834
24892
  case 61:
24835
24893
  _i++;
24836
24894
  _context6.next = 54;
@@ -25100,7 +25158,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25100
25158
  }, {
25101
25159
  key: "updateCfgValues",
25102
25160
  value: (function () {
25103
- var _updateCfgValues = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(article, newConfigValues, alreadyInitializedValues, dontCalcPrice, dontLoadPartlist) {
25161
+ var _updateCfgValues = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(article, newConfigValues, alreadyInitializedValues, dontCalcPrice, dontLoadPartlist, calcVariantPrice) {
25104
25162
  var maxPriceOfGroupCodex, setByFeatureVariantValues, key, partlistArticlesToLoad;
25105
25163
  return _regeneratorRuntime.wrap(function _callee10$(_context10) {
25106
25164
  while (1) switch (_context10.prev = _context10.next) {
@@ -25136,19 +25194,23 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25136
25194
  }
25137
25195
 
25138
25196
  //await -> partlist berechnung und laden
25139
- _context10.next = 8;
25197
+ if (calcVariantPrice) {
25198
+ _context10.next = 9;
25199
+ break;
25200
+ }
25201
+ _context10.next = 9;
25140
25202
  return article.updateShelfPlannerState();
25141
- case 8:
25142
- if (dontCalcPrice) {
25143
- _context10.next = 11;
25203
+ case 9:
25204
+ if (!(!dontCalcPrice && !calcVariantPrice)) {
25205
+ _context10.next = 12;
25144
25206
  break;
25145
25207
  }
25146
- _context10.next = 11;
25208
+ _context10.next = 12;
25147
25209
  return this.updateLastElement(article);
25148
- case 11:
25149
- _context10.next = 13;
25210
+ case 12:
25211
+ _context10.next = 14;
25150
25212
  return this.evalAndLoadPartlistArticles(article, dontLoadPartlist, newConfigValues);
25151
- case 13:
25213
+ case 14:
25152
25214
  partlistArticlesToLoad = _context10.sent;
25153
25215
  // löscht seine eigene partlist article - optimierung schnittmenge nicht löschen und nur neu neu laden
25154
25216
 
@@ -25167,13 +25229,13 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25167
25229
  article.updateOPVImages();
25168
25230
  }
25169
25231
  return _context10.abrupt("return", partlistArticlesToLoad);
25170
- case 17:
25232
+ case 18:
25171
25233
  case "end":
25172
25234
  return _context10.stop();
25173
25235
  }
25174
25236
  }, _callee10, this);
25175
25237
  }));
25176
- function updateCfgValues(_x29, _x30, _x31, _x32, _x33) {
25238
+ function updateCfgValues(_x29, _x30, _x31, _x32, _x33, _x34) {
25177
25239
  return _updateCfgValues.apply(this, arguments);
25178
25240
  }
25179
25241
  return updateCfgValues;
@@ -25229,7 +25291,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25229
25291
  }
25230
25292
  }, _callee11, this);
25231
25293
  }));
25232
- function updateLastElement(_x34) {
25294
+ function updateLastElement(_x35) {
25233
25295
  return _updateLastElement.apply(this, arguments);
25234
25296
  }
25235
25297
  return updateLastElement;
@@ -25271,7 +25333,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25271
25333
  }
25272
25334
  }, _callee12);
25273
25335
  }));
25274
- function updateOption(_x35, _x36, _x37, _x38) {
25336
+ function updateOption(_x36, _x37, _x38, _x39) {
25275
25337
  return _updateOption.apply(this, arguments);
25276
25338
  }
25277
25339
  return updateOption;
@@ -25313,7 +25375,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25313
25375
  }
25314
25376
  }, _callee13, this);
25315
25377
  }));
25316
- function evalAndLoadPartlistArticles(_x39, _x40, _x41) {
25378
+ function evalAndLoadPartlistArticles(_x40, _x41, _x42) {
25317
25379
  return _evalAndLoadPartlistArticles.apply(this, arguments);
25318
25380
  }
25319
25381
  return evalAndLoadPartlistArticles;
@@ -25355,7 +25417,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25355
25417
  }
25356
25418
  }, _callee14, this);
25357
25419
  }));
25358
- function loadPartlistArticles(_x42, _x43, _x44) {
25420
+ function loadPartlistArticles(_x43, _x44, _x45) {
25359
25421
  return _loadPartlistArticles.apply(this, arguments);
25360
25422
  }
25361
25423
  return loadPartlistArticles;
@@ -25388,7 +25450,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25388
25450
  }
25389
25451
  }, _callee15, this);
25390
25452
  }));
25391
- function loadPartlistArticle(_x45, _x46, _x47) {
25453
+ function loadPartlistArticle(_x46, _x47, _x48) {
25392
25454
  return _loadPartlistArticle.apply(this, arguments);
25393
25455
  }
25394
25456
  return loadPartlistArticle;
@@ -25705,7 +25767,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25705
25767
  }
25706
25768
  }, _callee16);
25707
25769
  }));
25708
- function triggerShelfplannerVisibility(_x48, _x49) {
25770
+ function triggerShelfplannerVisibility(_x49, _x50) {
25709
25771
  return _triggerShelfplannerVisibility.apply(this, arguments);
25710
25772
  }
25711
25773
  return triggerShelfplannerVisibility;
@@ -25794,7 +25856,6 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25794
25856
  }
25795
25857
  ret = ret.concat(this.getOptiontreeAccessoiresArr(orderLineInitInfos.setId, article));
25796
25858
  }
25797
- this.checkForRoundingError(ret, Object.values(articles)[0].set);
25798
25859
  return ret;
25799
25860
  }
25800
25861
 
@@ -25809,11 +25870,9 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25809
25870
  var product = set === null || set === void 0 ? void 0 : set.priceForActHash();
25810
25871
  if (product !== null && product !== void 0 && product.percentage && product.percentage > ((_set$CatalogData$disc = set.CatalogData.discountPercentage) !== null && _set$CatalogData$disc !== void 0 ? _set$CatalogData$disc : 0)) {
25811
25872
  var setPrice = set.getSetPrice();
25812
- var olPrice = orderlines.filter(function (ol) {
25813
- return !ol.IsPartlistArticle;
25814
- }).reduce(function (sum, ol) {
25815
- var _ol$VKPrice$CalcPrice, _ol$VKPrice;
25816
- return sum + ((_ol$VKPrice$CalcPrice = (_ol$VKPrice = ol.VKPrice) === null || _ol$VKPrice === void 0 ? void 0 : _ol$VKPrice.CalcPrice) !== null && _ol$VKPrice$CalcPrice !== void 0 ? _ol$VKPrice$CalcPrice : 0);
25873
+ var olPrice = orderlines.reduce(function (sum, ol) {
25874
+ var _ol$VKPrice$Price, _ol$VKPrice;
25875
+ return sum + ((_ol$VKPrice$Price = (_ol$VKPrice = ol.VKPrice) === null || _ol$VKPrice === void 0 ? void 0 : _ol$VKPrice.Price) !== null && _ol$VKPrice$Price !== void 0 ? _ol$VKPrice$Price : 0) * ol.Quantity;
25817
25876
  }, 0);
25818
25877
  if (setPrice !== olPrice) {
25819
25878
  var _orderLine$ConfigPric;
@@ -25822,8 +25881,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25822
25881
  var _ol$VKPrice2;
25823
25882
  return (_ol$VKPrice2 = ol.VKPrice) === null || _ol$VKPrice2 === void 0 ? void 0 : _ol$VKPrice2.Price;
25824
25883
  });
25825
- orderLine.VKPrice.CalcPrice = orderlines[0].VKPrice.CalcPrice + roundingRest;
25826
- orderLine.VKPrice.Price = orderlines[0].VKPrice.Price + roundingRest;
25884
+ orderLine.VKPrice.CalcPrice = orderLine.VKPrice.CalcPrice + roundingRest;
25885
+ orderLine.VKPrice.Price = orderLine.VKPrice.Price + roundingRest;
25827
25886
  if ((_orderLine$ConfigPric = orderLine.ConfigPriceDatas) !== null && _orderLine$ConfigPric !== void 0 && _orderLine$ConfigPric.ConfigPrice) orderLine.ConfigPriceDatas.ConfigPrice = orderLine.ConfigPriceDatas.ConfigPrice + roundingRest;
25828
25887
  if (orderLine.IsPartlistArticle) {
25829
25888
  var _parent$VKPrice;
@@ -26004,7 +26063,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
26004
26063
  }
26005
26064
  }, _callee17, this);
26006
26065
  }));
26007
- function correctPartlistArticlesByGlobalRules(_x50, _x51, _x52, _x53) {
26066
+ function correctPartlistArticlesByGlobalRules(_x51, _x52, _x53, _x54) {
26008
26067
  return _correctPartlistArticlesByGlobalRules.apply(this, arguments);
26009
26068
  }
26010
26069
  return correctPartlistArticlesByGlobalRules;
@@ -26904,6 +26963,7 @@ var DivaSet = /*#__PURE__*/function () {
26904
26963
  _defineProperty(this, "setId", void 0);
26905
26964
  _defineProperty(this, "_isActSet", false);
26906
26965
  _defineProperty(this, "setData", void 0);
26966
+ _defineProperty(this, "_onlyCalcVariants", void 0);
26907
26967
  _defineProperty(this, "divaArticles", void 0);
26908
26968
  //Schlüssel ist basketId
26909
26969
  _defineProperty(this, "configSingleData", void 0);
@@ -28093,7 +28153,7 @@ var DivaSet = /*#__PURE__*/function () {
28093
28153
  break;
28094
28154
  }
28095
28155
  _context4.next = 3;
28096
- return import('./DoorPlanner-c8958dcc.js');
28156
+ return import('./DoorPlanner-cfd783d3.js');
28097
28157
  case 3:
28098
28158
  _yield$import = _context4.sent;
28099
28159
  DoorPlanner = _yield$import["default"];
@@ -28158,6 +28218,14 @@ var DivaSet = /*#__PURE__*/function () {
28158
28218
  get: function get() {
28159
28219
  return this.setState;
28160
28220
  }
28221
+ }, {
28222
+ key: "onlyCalcVariants",
28223
+ get: function get() {
28224
+ return this._onlyCalcVariants;
28225
+ },
28226
+ set: function set(val) {
28227
+ this._onlyCalcVariants = val;
28228
+ }
28161
28229
 
28162
28230
  /**
28163
28231
  *
@@ -28851,10 +28919,11 @@ var SummaryHandler = /*#__PURE__*/function () {
28851
28919
  value: function geTabGroupFormOptionsForSummary(article) {
28852
28920
  var tabGroups = [];
28853
28921
  for (var basketId in article.partlistArticles) {
28922
+ var _ops$val;
28854
28923
  var partlistArticle = article.partlistArticles[basketId];
28855
28924
  if (!partlistArticle.tabGroup) continue;
28856
28925
  var ops = article.getArticleOptionState('OPT' + partlistArticle.tabGroup);
28857
- if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && ops.valCodex != 'OPVNR' && ops !== null && ops !== void 0 && ops.optionTabGroup) {
28926
+ if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && !((_ops$val = ops.val) !== null && _ops$val !== void 0 && _ops$val.isNotRelevant) && ops !== null && ops !== void 0 && ops.optionTabGroup) {
28858
28927
  tabGroups.push({
28859
28928
  optionCodex: ops.optionCodex,
28860
28929
  tabGroup: ops.optionTabGroup
@@ -28864,8 +28933,9 @@ var SummaryHandler = /*#__PURE__*/function () {
28864
28933
 
28865
28934
  //old logic TODO: Delete in 2024
28866
28935
  if (Object.keys(tabGroups).length === 0) for (var _key12 in article.articleOptionStates) {
28936
+ var _ops$val2;
28867
28937
  var _ops = article.articleOptionStates[_key12];
28868
- if (!_ops.isInvisible && (_ops.selectionmode != 0 || (_ops.visibleCount > 1 || _ops.isFreeText) && article.set.api.showSelectionModeZero()) && _ops.isDoShow && _ops.valCodex != 'OPVNR') {
28938
+ if (!_ops.isInvisible && (_ops.selectionmode != 0 || (_ops.visibleCount > 1 || _ops.isFreeText) && article.set.api.showSelectionModeZero()) && !((_ops$val2 = _ops.val) !== null && _ops$val2 !== void 0 && _ops$val2.isNotRelevant) && _ops.isDoShow) {
28869
28939
  var tabGroup = _ops.option.addOptionToTabgroupInPartlistSummary;
28870
28940
  if (tabGroup) tabGroups.push({
28871
28941
  optionCodex: _key12,
@@ -28894,8 +28964,9 @@ var SummaryHandler = /*#__PURE__*/function () {
28894
28964
  var opss = [];
28895
28965
  if (article.getArticleOptionState('OPT' + optionCodexes[0])) {
28896
28966
  for (var i = 0; i < optionCodexes.length; i++) {
28967
+ var _optionState$val3;
28897
28968
  var optionState = article.getArticleOptionState('OPT' + optionCodexes[i]);
28898
- if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && optionState.valCodex != 'OPVNR') {
28969
+ if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && !((_optionState$val3 = optionState.val) !== null && _optionState$val3 !== void 0 && _optionState$val3.isNotRelevant)) {
28899
28970
  opss.push(optionState);
28900
28971
  }
28901
28972
  }
@@ -28904,8 +28975,9 @@ var SummaryHandler = /*#__PURE__*/function () {
28904
28975
 
28905
28976
  //old logic TODO: Delete in 2024
28906
28977
  for (var _key13 in article.articleOptionStates) {
28978
+ var _optionState$val4;
28907
28979
  var _optionState = article.articleOptionStates[_key13];
28908
- if (_optionState.option.addOptionToTabgroupInPartlistSummary == tabGroup && !_optionState.isInvisible && _optionState.isDoShow && _optionState.visibleCount > 0 && _optionState.valCodex != 'OPVNR') {
28980
+ if (_optionState.option.addOptionToTabgroupInPartlistSummary == tabGroup && !_optionState.isInvisible && _optionState.isDoShow && _optionState.visibleCount > 0 && !((_optionState$val4 = _optionState.val) !== null && _optionState$val4 !== void 0 && _optionState$val4.isNotRelevant)) {
28909
28981
  opss.push(_optionState);
28910
28982
  }
28911
28983
  }
@@ -29598,7 +29670,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29598
29670
  key: "getValidVariants",
29599
29671
  value: function () {
29600
29672
  var _getValidVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(set, useCache) {
29601
- var allvariants, validVariants, i;
29673
+ var allvariants, validVariants, i, _set$onlyCalcVariants;
29602
29674
  return _regeneratorRuntime.wrap(function _callee3$(_context4) {
29603
29675
  while (1) switch (_context4.prev = _context4.next) {
29604
29676
  case 0:
@@ -29619,7 +29691,9 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29619
29691
  validVariants = [];
29620
29692
  for (i = 0; i < allvariants.length; i++) {
29621
29693
  if (!set.disabledVariants.includes(allvariants[i].id)) {
29622
- validVariants.push(allvariants[i]);
29694
+ if (!((_set$onlyCalcVariants = set.onlyCalcVariants) !== null && _set$onlyCalcVariants !== void 0 && _set$onlyCalcVariants.length) || set.onlyCalcVariants.includes(allvariants[i].id)) {
29695
+ validVariants.push(allvariants[i]);
29696
+ }
29623
29697
  }
29624
29698
  }
29625
29699
  return _context4.abrupt("return", validVariants);
@@ -30000,9 +30074,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30000
30074
  }
30001
30075
  }, {
30002
30076
  key: "addOptionsStateToConfigTree",
30003
- value: function addOptionsStateToConfigTree(set, configTree, articles, basketId, ops, optionCodex, selectionmode, addToTabGroup) {
30004
- var _set$ViewConfig3;
30005
- var article = articles[basketId];
30077
+ value: function addOptionsStateToConfigTree(set, configTree, articles, b, ops, optionCodex, selectionmode, addToTabGroup) {
30078
+ var _article$partListPare, _set$ViewConfig3;
30079
+ var article = articles[b];
30080
+ var basketId = article.partlistArticleVisibleInTree ? (_article$partListPare = article.partListParentArticle) === null || _article$partListPare === void 0 ? void 0 : _article$partListPare.basketId : article.basketId;
30006
30081
  var tabGroupCodex;
30007
30082
  var tabGroupTitel;
30008
30083
  if (ops.optionTabGroup) tabGroupCodex = ops.optionTabGroup;else tabGroupCodex = ops.optionName;
@@ -30288,7 +30363,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30288
30363
  optionStatesOfArticles = set.getOptionStatesOfArticles(set.getDivaArticles(true));
30289
30364
  articles = set.getDivaArticles(true);
30290
30365
  step = set.configTree.getAllByKey(configStepKey);
30291
- retValues = this.getConfigItems(configStepKey, optionStatesOfArticles, set.configTree);
30366
+ retValues = this.getConfigItems(configStepKey, articles, set.configTree);
30292
30367
  optionCodex = undefined;
30293
30368
  if (!(retValues && step != null)) {
30294
30369
  _context.next = 55;
@@ -30368,7 +30443,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30368
30443
  case 39:
30369
30444
  seomethingChanged = true;
30370
30445
  _context.next = 42;
30371
- return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true);
30446
+ return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true);
30372
30447
  case 42:
30373
30448
  _retVal2 = this.prepareConfigItemsForView(set, optionState, targetArticle.getArticleOptionState(ops.optionCodex).visibleOptionValues, retValues.constructionRules, [], step.configStep.targetArticles, (_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.optionCodex, opg.visibleOptionValues[_key].name, opg.visibleOptionValues[_key].codex, opg.optionCodex);
30374
30449
  configItems = configItems.concat(_retVal2.myConfigItemsForView);
@@ -30421,7 +30496,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30421
30496
  }()
30422
30497
  }, {
30423
30498
  key: "getConfigItems",
30424
- value: function getConfigItems(key, optionStatesOfArticles, configTree) {
30499
+ value: function getConfigItems(key, articles, configTree) {
30425
30500
  var step = configTree.getAllByKey(key);
30426
30501
  if (step != null) {
30427
30502
  var configItems = {},
@@ -30435,7 +30510,8 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30435
30510
  notTotallyMatichingOPVs = false,
30436
30511
  myOptionState = undefined;
30437
30512
  for (var i = 0; i < configStep.targetArticles.length; i++) {
30438
- var myOptions = optionStatesOfArticles[configStep.targetArticles[i]];
30513
+ var article = articles[configStep.targetArticles[i]];
30514
+ var myOptions = article.articleOptionStates;
30439
30515
  myOptionState = myOptions[configStep.option];
30440
30516
  if (myOptionState.option.hasOPG) isOPG = true;
30441
30517
  selectedVals = selectedVals.concat(myOptionState.getSelectedVals);
@@ -30468,6 +30544,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30468
30544
  if (visibleOptionValuesOfArticles.length > 0) {
30469
30545
  configItems = Object.assign({}, visibleOptionValuesOfArticles[0]);
30470
30546
  var _loop4 = function _loop4(_i2) {
30547
+ if (articles[configStep.targetArticles[_i2]].articleOptionStates[configStep.option].definedBySetFeatureFixed) return 1; // continue
30471
30548
  var keys = Object.keys(configItems);
30472
30549
  var newKeys = Object.keys(visibleOptionValuesOfArticles[_i2]);
30473
30550
  var opvsOnlyInA = keys.filter(function (x) {
@@ -30525,7 +30602,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30525
30602
  }
30526
30603
  };
30527
30604
  for (var _i2 = 1; _i2 < visibleOptionValuesOfArticles.length; _i2++) {
30528
- _loop4(_i2);
30605
+ if (_loop4(_i2)) continue;
30529
30606
  }
30530
30607
  }
30531
30608
  return {
@@ -30626,6 +30703,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30626
30703
  //if a opv has isFreeText = true and its selected a Textbox sould appear in the OptionValue
30627
30704
  //if the text is empty the opv is really selected
30628
30705
  contentItemId: item.contentItemId,
30706
+ groupContentItemId: item.groupContentItemId,
30629
30707
  idmOpgOptionCodex: idmOpgOptionCodex,
30630
30708
  idmOpgValCodex: idmOpgValCodex,
30631
30709
  isFreeText: item.isFreeText,
@@ -30724,6 +30802,34 @@ var DivaProductHandler = /*#__PURE__*/function () {
30724
30802
  }
30725
30803
  return updateProducts;
30726
30804
  }()
30805
+ }, {
30806
+ key: "getBestMatch",
30807
+ value: function getBestMatch(articles, products) {
30808
+ var OPTION_CODEX = 'KOPFTEIL';
30809
+ if (!articles) return;
30810
+ for (var key in articles) {
30811
+ var _article$VariantValue;
30812
+ var article = articles[key];
30813
+ var opv = (_article$VariantValue = article.VariantValues['OPT' + OPTION_CODEX]) === null || _article$VariantValue === void 0 ? void 0 : _article$VariantValue.replace('OPV', '');
30814
+ if (!products || !opv) continue;
30815
+ for (var i = 0; i < products.length; i++) {
30816
+ var _products$i$affiliate;
30817
+ 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)) {
30818
+ return products[i];
30819
+ }
30820
+ }
30821
+ }
30822
+ return undefined;
30823
+ }
30824
+ }, {
30825
+ key: "findOPVCodexInVariantValues",
30826
+ value: function findOPVCodexInVariantValues(product, opt, opv) {
30827
+ return product.articles.find(function (article) {
30828
+ return article.variantValues.find(function (variant) {
30829
+ return variant.OPT === opt && variant.OPV === opv;
30830
+ });
30831
+ });
30832
+ }
30727
30833
  }]);
30728
30834
  }();
30729
30835
  var productHandlerInstance = new DivaProductHandler();
@@ -31699,8 +31805,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
31699
31805
  key: "deleteElementFromSet",
31700
31806
  value: function () {
31701
31807
  var _deleteElementFromSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(set, article, autoCorrectAVL_AVR, deletionType, dontReload) {
31702
- var _deletedArticle$doorP, _set$CatalogData;
31703
- var setId, deletedArticle, articles, key, newSelectedElement, oldTransform, result, _set$getArticleByBask3, elementDeleted;
31808
+ var setId, allElementsToDelete, success, newSelectedElement, i, _deletedArticle$doorP, _set$CatalogData, deletedArticle, articles, key, oldTransform, result, _set$getArticleByBask3;
31704
31809
  return _regeneratorRuntime.wrap(function _callee14$(_context16) {
31705
31810
  while (1) switch (_context16.prev = _context16.next) {
31706
31811
  case 0:
@@ -31715,35 +31820,44 @@ var DivaSetHandler = /*#__PURE__*/function () {
31715
31820
  setId: setId
31716
31821
  });
31717
31822
  case 3:
31823
+ allElementsToDelete = set.plannerHandler.getPlannerElementsInfluencedByDeletion(setId, article.elementId);
31824
+ success = false;
31825
+ newSelectedElement = undefined;
31826
+ i = 0;
31827
+ case 7:
31828
+ if (!(i < allElementsToDelete.length)) {
31829
+ _context16.next = 35;
31830
+ break;
31831
+ }
31832
+ article = set.getArticleByElementId(allElementsToDelete[i]);
31718
31833
  deletedArticle = article; //accessoires löschen
31719
31834
  articles = set.getAccessoiresOfBasketId(article.basketId);
31720
31835
  _context16.t0 = _regeneratorRuntime.keys(articles);
31721
- case 6:
31836
+ case 12:
31722
31837
  if ((_context16.t1 = _context16.t0()).done) {
31723
- _context16.next = 12;
31838
+ _context16.next = 18;
31724
31839
  break;
31725
31840
  }
31726
31841
  key = _context16.t1.value;
31727
- _context16.next = 10;
31842
+ _context16.next = 16;
31728
31843
  return this.deleteElementFromSet(set, articles[key]);
31729
- case 10:
31730
- _context16.next = 6;
31844
+ case 16:
31845
+ _context16.next = 12;
31731
31846
  break;
31732
- case 12:
31733
- newSelectedElement = undefined;
31847
+ case 18:
31734
31848
  oldTransform = undefined;
31735
31849
  if (deletedArticle) deletedArticle.deleted = true;
31736
31850
  if (!(deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.hasCatalogPlannerArticle)) {
31737
- _context16.next = 21;
31851
+ _context16.next = 26;
31738
31852
  break;
31739
31853
  }
31740
- _context16.next = 18;
31854
+ _context16.next = 23;
31741
31855
  return set.plannerHandler.deletePlannerElement(setId, deletedArticle.elementId, autoCorrectAVL_AVR, deletionType);
31742
- case 18:
31856
+ case 23:
31743
31857
  result = _context16.sent;
31744
31858
  newSelectedElement = result.newElementToSelect;
31745
31859
  oldTransform = result.transform;
31746
- case 21:
31860
+ case 26:
31747
31861
  //falls ein Accessoire gelöscht wurde wird das Accessoire auch wo es beim Parent hinterlegt war auch gelöscht
31748
31862
  if (deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.relatedToBasketId) {
31749
31863
  (_set$getArticleByBask3 = set.getArticleByBasketId(deletedArticle.relatedToBasketId)) === null || _set$getArticleByBask3 === void 0 || _set$getArticleByBask3.removeAccessoire(deletedArticle.basketId);
@@ -31751,21 +31865,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
31751
31865
 
31752
31866
  //doorplanner resetted
31753
31867
  deletedArticle === null || deletedArticle === void 0 || (_deletedArticle$doorP = deletedArticle.doorPlanner) === null || _deletedArticle$doorP === void 0 || _deletedArticle$doorP.deleteElement(deletedArticle.basketId);
31754
- elementDeleted = set.deleteArticle(article.basketId);
31868
+ success = set.deleteArticle(article.basketId);
31755
31869
  if (!((set.CatalogData.bundleRules || set.CatalogData.reconfigAfterArticleDocked || set !== null && set !== void 0 && (_set$CatalogData = set.CatalogData) !== null && _set$CatalogData !== void 0 && _set$CatalogData.getOption('OPTLASTSTACKEDARTICLE')) && !dontReload)) {
31756
- _context16.next = 27;
31870
+ _context16.next = 32;
31757
31871
  break;
31758
31872
  }
31759
- _context16.next = 27;
31873
+ _context16.next = 32;
31760
31874
  return this.updateArticlesOptionStatesOfActSet(set, {}, []);
31761
- case 27:
31875
+ case 32:
31876
+ i++;
31877
+ _context16.next = 7;
31878
+ break;
31879
+ case 35:
31762
31880
  return _context16.abrupt("return", {
31763
- success: elementDeleted,
31881
+ success: success,
31764
31882
  selectElementId: newSelectedElement,
31765
31883
  setId: setId,
31766
31884
  oldTransform: oldTransform
31767
31885
  });
31768
- case 28:
31886
+ case 36:
31769
31887
  case "end":
31770
31888
  return _context16.stop();
31771
31889
  }
@@ -32455,11 +32573,28 @@ var DivaSetHandler = /*#__PURE__*/function () {
32455
32573
  targetArticles = targetArticles.concat(Object.keys((_articles$activeArtic = articles[activeArticles[0]]) === null || _articles$activeArtic === void 0 ? void 0 : _articles$activeArtic.accessoires));
32456
32574
  }
32457
32575
  var articleInfos = articleHandlerInstance.getArticleInfos(activeArticles, targetArticles, articles);
32576
+ //within an article and its partlistarticles cant be configured differently, so we group them here
32577
+ var groupedArticles = [];
32578
+ var _loop3 = function _loop3() {
32579
+ var article = articles[targetArticles[i]];
32580
+ var group = groupedArticles.find(function (group) {
32581
+ var _article$partListPare, _article$partListPare2;
32582
+ 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 : '');
32583
+ });
32584
+ if (group) {
32585
+ group.push(article.basketId);
32586
+ } else {
32587
+ groupedArticles.push([article.basketId]);
32588
+ }
32589
+ };
32590
+ for (var i = 0; i < targetArticles.length; i++) {
32591
+ _loop3();
32592
+ }
32458
32593
  var isConfigSingle = set.configSingle;
32459
32594
  var doShowConfigSingle = configStepKey ? set.configTree.doShowConfigSingle(configStepKey) : false;
32460
32595
  return {
32461
32596
  articleInfos: articleInfos,
32462
- doShowConfigSingle: doShowConfigSingle && targetArticles.length > 1,
32597
+ doShowConfigSingle: doShowConfigSingle && groupedArticles.length > 1,
32463
32598
  isConfigSingle: isConfigSingle,
32464
32599
  articleName: activeArticles[0] ? (_articles$activeArtic2 = articles[activeArticles[0]]) === null || _articles$activeArtic2 === void 0 || (_articles$activeArtic2 = _articles$activeArtic2.curProduct) === null || _articles$activeArtic2 === void 0 ? void 0 : _articles$activeArtic2.shortDescription : ''
32465
32600
  };
@@ -32548,7 +32683,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32548
32683
  value: (function () {
32549
32684
  var _variantsEvaluator = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(set, configItems, configStepKey, paletteType) {
32550
32685
  var _set$ViewConfig, _configItems$;
32551
- var opt, calcVariantsForPricePreview, previewType, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
32686
+ var opt, calcVariantsForPricePreview, previewType, _set$api$ReturnToFrom, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
32552
32687
  return _regeneratorRuntime.wrap(function _callee23$(_context25) {
32553
32688
  while (1) switch (_context25.prev = _context25.next) {
32554
32689
  case 0:
@@ -32562,7 +32697,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32562
32697
  calcVariantsForPricePreview = false;
32563
32698
  previewType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.pricePreview;
32564
32699
  if (previewType) {
32565
- calcVariantsForPricePreview = !set.dontCalcPricePreviewDueToPerformanceIssues && !opt.showOnSeparatTabgroup && (!((_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length) || set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex));
32700
+ calcVariantsForPricePreview = !set.dontCalcPricePreviewDueToPerformanceIssues && !((_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR')) && !opt.showOnSeparatTabgroup && (!((_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length) || set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex));
32566
32701
  }
32567
32702
  if (set.PlannerMode === 'BoxPlanner') calcVariantsForPricePreview = false;
32568
32703
  if (paletteType == 'GAL' && ((_configItems$ = configItems[0]) === null || _configItems$ === void 0 ? void 0 : _configItems$.groupName) === undefined || paletteType == 'TEXTBOX' || paletteType == 'NUMBERBOX' || paletteType == 'RANGE') {
@@ -32843,7 +32978,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32843
32978
  key: "confirmOptionsInMetric",
32844
32979
  value: function confirmOptionsInMetric(set, options, actionEvent) {
32845
32980
  var variantItems = set.getVariantBasketData();
32846
- var _loop3 = function _loop3() {
32981
+ var _loop4 = function _loop4() {
32847
32982
  var opt = options[i].substring(3);
32848
32983
  var variantItem = variantItems.find(function (item) {
32849
32984
  return item.OPT == opt;
@@ -32862,7 +32997,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32862
32997
  }
32863
32998
  };
32864
32999
  for (var i = 0; i < options.length; i++) {
32865
- _loop3();
33000
+ _loop4();
32866
33001
  }
32867
33002
  }
32868
33003
  }, {
@@ -32989,7 +33124,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32989
33124
  //check first if there are options that require user input
32990
33125
  var articles = [];
32991
33126
  var options = [];
32992
- var _loop4 = function _loop4(key) {
33127
+ var _loop5 = function _loop5(key) {
32993
33128
  var _articleHandler$check = articleHandlerInstance.checkIfAllOptionsAreDefined(sets[key].getDivaArticles()),
32994
33129
  articleNames = _articleHandler$check.articleNames,
32995
33130
  newOptions = _articleHandler$check.options;
@@ -33001,7 +33136,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33001
33136
  articles = articles.concat(articleNames);
33002
33137
  };
33003
33138
  for (var key in sets) {
33004
- _loop4(key);
33139
+ _loop5(key);
33005
33140
  }
33006
33141
  if (articles.length == 0) {
33007
33142
  return true;
@@ -33028,7 +33163,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33028
33163
  var accessoires = [];
33029
33164
  var grids = [];
33030
33165
  var articles = [];
33031
- var _loop5 = function _loop5() {
33166
+ var _loop6 = function _loop6() {
33032
33167
  var _retVal$configStep$ta2;
33033
33168
  var article = set.getArticleByBasketId((_retVal$configStep$ta2 = retVal === null || retVal === void 0 ? void 0 : retVal.configStep.targetArticles[i]) !== null && _retVal$configStep$ta2 !== void 0 ? _retVal$configStep$ta2 : '');
33034
33169
  if (!article || !article.shelfPlanner) return 1; // continue
@@ -33037,18 +33172,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33037
33172
  a = _article$shelfPlanner2.accessoires,
33038
33173
  g = _article$shelfPlanner2.grids;
33039
33174
  grids = [].concat(_toConsumableArray(grids), _toConsumableArray(g));
33040
- var _loop6 = function _loop6(j) {
33175
+ var _loop7 = function _loop7(j) {
33041
33176
  if (!accessoires.find(function (acc) {
33042
33177
  return acc.articleCodex === a[j].articleCodex;
33043
33178
  })) accessoires.push(a[j]);
33044
33179
  };
33045
33180
  for (var j = 0; j < a.length; j++) {
33046
- _loop6(j);
33181
+ _loop7(j);
33047
33182
  }
33048
33183
  };
33049
33184
  for (var i = 0; i < ((_retVal$configStep$ta = retVal === null || retVal === void 0 ? void 0 : retVal.configStep.targetArticles) !== null && _retVal$configStep$ta !== void 0 ? _retVal$configStep$ta : []).length; i++) {
33050
33185
  var _retVal$configStep$ta;
33051
- if (_loop5()) continue;
33186
+ if (_loop6()) continue;
33052
33187
  }
33053
33188
  configTreeHandler.fillConfigStepKeysInAccessoireItem(articles, set.configTree, accessoires !== null && accessoires !== void 0 ? accessoires : []);
33054
33189
  return {
@@ -33185,7 +33320,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33185
33320
  _context30.t0 = _regeneratorRuntime.keys(sets);
33186
33321
  case 7:
33187
33322
  if ((_context30.t1 = _context30.t0()).done) {
33188
- _context30.next = 29;
33323
+ _context30.next = 30;
33189
33324
  break;
33190
33325
  }
33191
33326
  key = _context30.t1.value;
@@ -33203,12 +33338,13 @@ var DivaSetHandler = /*#__PURE__*/function () {
33203
33338
  newOrderSet = _context30.sent;
33204
33339
  basketData.setIsPlanning(_set.SetType == 'PLANNING' ? '1' : '0');
33205
33340
  OrderLinesOfActSet = articleHandlerInstance.getOrderLinesOfArticles(articles, orderLineInitInfos, repairOnly, !!((_set$basketConfigVari = _set.basketConfigVariants) !== null && _set$basketConfigVari !== void 0 && _set$basketConfigVari.length));
33341
+ articleHandlerInstance.checkForRoundingError(OrderLinesOfActSet, _set);
33206
33342
  if (OrderLinesOfActSet.length) {
33207
- _context30.next = 21;
33343
+ _context30.next = 22;
33208
33344
  break;
33209
33345
  }
33210
33346
  return _context30.abrupt("continue", 7);
33211
- case 21:
33347
+ case 22:
33212
33348
  OrderLinesOfActSet = divaBasketHandler.divaWWSHandler.repairWWSFlags(articles, OrderLinesOfActSet);
33213
33349
  if (newOrderSet.SetImage == '' && (_OrderLinesOfActSet$ = OrderLinesOfActSet[0]) !== null && _OrderLinesOfActSet$ !== void 0 && _OrderLinesOfActSet$.Image && _set.PlannerMode == 'No') {
33214
33350
  newOrderSet.SetImage = OrderLinesOfActSet[0].Image.replace('_low', '');
@@ -33231,42 +33367,42 @@ var DivaSetHandler = /*#__PURE__*/function () {
33231
33367
  orderSets.push(newOrderSet);
33232
33368
  _context30.next = 7;
33233
33369
  break;
33234
- case 29:
33370
+ case 30:
33235
33371
  //fill diva3DProject for renderings & AR Converter
33236
33372
  basketData.Diva3DProject = DivaUtils.encodeBase64(set === null || set === void 0 ? void 0 : set.plannerHandler.getProject3D());
33237
33373
  i = 0;
33238
- case 31:
33374
+ case 32:
33239
33375
  if (!(i < ((_basketData$OrderSets = basketData.OrderSets) === null || _basketData$OrderSets === void 0 ? void 0 : _basketData$OrderSets.length))) {
33240
- _context30.next = 46;
33376
+ _context30.next = 47;
33241
33377
  break;
33242
33378
  }
33243
33379
  oderSetsIsInActPlanning = false;
33244
33380
  setId = basketData.OrderSets[i].SetID;
33245
33381
  j = 0;
33246
- case 35:
33382
+ case 36:
33247
33383
  if (!(j < orderSets.length)) {
33248
- _context30.next = 42;
33384
+ _context30.next = 43;
33249
33385
  break;
33250
33386
  }
33251
33387
  if (!(orderSets[j].SetID == setId)) {
33252
- _context30.next = 39;
33388
+ _context30.next = 40;
33253
33389
  break;
33254
33390
  }
33255
33391
  oderSetsIsInActPlanning = true;
33256
- return _context30.abrupt("break", 42);
33257
- case 39:
33392
+ return _context30.abrupt("break", 43);
33393
+ case 40:
33258
33394
  j++;
33259
- _context30.next = 35;
33395
+ _context30.next = 36;
33260
33396
  break;
33261
- case 42:
33397
+ case 43:
33262
33398
  if (!oderSetsIsInActPlanning && !((_basketData$SetPlanne = basketData.SetPlannerInfos) !== null && _basketData$SetPlanne !== void 0 && _basketData$SetPlanne.InvolvedSetIds.includes(setId))) {
33263
33399
  orderSets.push(basketData.OrderSets[i]);
33264
33400
  }
33265
- case 43:
33401
+ case 44:
33266
33402
  i++;
33267
- _context30.next = 31;
33403
+ _context30.next = 32;
33268
33404
  break;
33269
- case 46:
33405
+ case 47:
33270
33406
  basketData.SetPlannerInfos = setPlanner ? this.getSetPlannerInfos(Object.keys(sets), orderSets) : undefined;
33271
33407
  if (repairOnly) {
33272
33408
  this.repairOrderSets(basketData, orderSets);
@@ -33274,7 +33410,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33274
33410
  basketData.setOrderSets(orderSets);
33275
33411
  }
33276
33412
  return _context30.abrupt("return", basketData);
33277
- case 49:
33413
+ case 50:
33278
33414
  case "end":
33279
33415
  return _context30.stop();
33280
33416
  }
@@ -33309,7 +33445,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33309
33445
  }, {
33310
33446
  key: "repairOrderSets",
33311
33447
  value: function repairOrderSets(basketData, orerSets) {
33312
- var _loop7 = function _loop7() {
33448
+ var _loop8 = function _loop8() {
33313
33449
  var actOrderSet = orerSets[i];
33314
33450
  var setId = actOrderSet.SetID;
33315
33451
  var origOrderSet = basketData.OrderSets.find(function (set) {
@@ -33347,7 +33483,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33347
33483
  }
33348
33484
  };
33349
33485
  for (var i = 0; i < orerSets.length; i++) {
33350
- _loop7();
33486
+ _loop8();
33351
33487
  }
33352
33488
  }
33353
33489
  /**************************SpeicherRoutinen*************************************/
@@ -34052,7 +34188,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34052
34188
  key: "initProductId",
34053
34189
  value: function () {
34054
34190
  var _initProductId = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(api, productId) {
34055
- var result;
34191
+ var result, successful;
34056
34192
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
34057
34193
  while (1) switch (_context2.prev = _context2.next) {
34058
34194
  case 0:
@@ -34064,10 +34200,17 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34064
34200
  _context2.next = 6;
34065
34201
  return this.initBasket(api, result.divaNr, {
34066
34202
  basket: result.configuration
34067
- }, false);
34203
+ }, false, productId);
34068
34204
  case 6:
34069
- return _context2.abrupt("return", _context2.sent);
34070
- case 7:
34205
+ successful = _context2.sent;
34206
+ if (!successful) {
34207
+ _context2.next = 9;
34208
+ break;
34209
+ }
34210
+ return _context2.abrupt("return", result);
34211
+ case 9:
34212
+ return _context2.abrupt("return", false);
34213
+ case 10:
34071
34214
  case "end":
34072
34215
  return _context2.stop();
34073
34216
  }
@@ -34414,7 +34557,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34414
34557
  case 0:
34415
34558
  _context8.prev = 0;
34416
34559
  _context8.next = 3;
34417
- return api.getDataCache(api.getProductBasketUrl(key, productId), undefined, undefined, 'catalog', 'POST', {
34560
+ return api.getDataCache(api.getProductByKeyValueUrl(key, productId), undefined, undefined, 'catalog', 'POST', {
34418
34561
  fields: fields !== null && fields !== void 0 && fields.length ? fields : undefined
34419
34562
  });
34420
34563
  case 3:
@@ -34635,26 +34778,39 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34635
34778
  var _ops$ocd, _ops$valCodex;
34636
34779
  var ops = article.articleOptionStates[key];
34637
34780
  if (ops.option.sendToSAP && ops.val && ops.isDoShow && (!ops.isFreeText || !!ops.freeText) && !((_ops$ocd = ops.ocd) !== null && _ops$ocd !== void 0 && _ops$ocd.startsWith('OPVOPV_NICHT_RELEVANT')) && !((_ops$valCodex = ops.valCodex) !== null && _ops$valCodex !== void 0 && _ops$valCodex.startsWith('OPVOPV_NICHT_RELEVANT'))) {
34638
- var _ops$optionOcd;
34639
- sendToSap.push({
34640
- ID: sapCount++,
34641
- SAP_AUSP_ATNAM: ops.option.sendToSAP,
34642
- SAP_AUSP_ATWRT: ops.val.name,
34643
- opt: (_ops$optionOcd = ops.optionOcd) !== null && _ops$optionOcd !== void 0 ? _ops$optionOcd : ops.optionCodex
34644
- });
34781
+ var _ops$multiSelects;
34782
+ if (ops.isMultiselect && (_ops$multiSelects = ops.multiSelects) !== null && _ops$multiSelects !== void 0 && _ops$multiSelects.length) {
34783
+ for (var i = 0; i < ops.multiSelects.length; i++) {
34784
+ var _ops$optionOcd;
34785
+ sendToSap.push({
34786
+ ID: sapCount++,
34787
+ SAP_AUSP_ATNAM: ops.option.sendToSAP,
34788
+ SAP_AUSP_ATWRT: ops.multiSelects[i].name,
34789
+ opt: (_ops$optionOcd = ops.optionOcd) !== null && _ops$optionOcd !== void 0 ? _ops$optionOcd : ops.optionCodex
34790
+ });
34791
+ }
34792
+ } else {
34793
+ var _ops$optionOcd2;
34794
+ sendToSap.push({
34795
+ ID: sapCount++,
34796
+ SAP_AUSP_ATNAM: ops.option.sendToSAP,
34797
+ SAP_AUSP_ATWRT: ops.val.name,
34798
+ opt: (_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.optionCodex
34799
+ });
34800
+ }
34645
34801
  }
34646
34802
  }
34647
34803
  var _loop2 = function _loop2() {
34648
- var _opt$codex, _ops$optionOcd2, _ops$multiSelects;
34649
- var _article$parentOption = article.parentOptionCodex(options[i]),
34804
+ var _opt$codex, _ops$optionOcd3, _ops$multiSelects2;
34805
+ var _article$parentOption = article.parentOptionCodex(options[_i2]),
34650
34806
  codex = _article$parentOption.optionCodex,
34651
34807
  partenOptionCodex = _article$parentOption.partenOptionCodex;
34652
34808
  var _article$checkOptionA = article.checkOptionAndOptionValue(codex, '', partenOptionCodex),
34653
34809
  opt = _article$checkOptionA.opt;
34654
34810
  var ops = article.getArticleOptionState((_opt$codex = opt.codex) !== null && _opt$codex !== void 0 ? _opt$codex : codex);
34655
34811
  if (!(ops !== null && ops !== void 0 && ops.val)) return 1; // continue
34656
- var optionCodex = (ops.option.parentOptionCodex ? ops.option.parentOptionCodex + '.' : '') + ((_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.option.codex);
34657
- changedValues[optionCodex] = ((_ops$multiSelects = ops.multiSelects) !== null && _ops$multiSelects !== void 0 && _ops$multiSelects.length ? ops.multiselectSorted : [ops.val]).map(function (val) {
34812
+ var optionCodex = (ops.option.parentOptionCodex ? ops.option.parentOptionCodex + '.' : '') + ((_ops$optionOcd3 = ops.optionOcd) !== null && _ops$optionOcd3 !== void 0 ? _ops$optionOcd3 : ops.option.codex);
34813
+ changedValues[optionCodex] = ((_ops$multiSelects2 = ops.multiSelects) !== null && _ops$multiSelects2 !== void 0 && _ops$multiSelects2.length ? ops.multiselectSorted : [ops.val]).map(function (val) {
34658
34814
  var _val$ocd, _ops$freeTextLang3, _ops$freeTextLang4, _ops$option$ocd, _ops$val, _ops$val2;
34659
34815
  var attributeValue = (_val$ocd = val.ocd) !== null && _val$ocd !== void 0 ? _val$ocd : val.codex;
34660
34816
  if (ops.isFreeText) {
@@ -34705,7 +34861,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34705
34861
  };
34706
34862
  });
34707
34863
  };
34708
- for (var i = 0; i < options.length; i++) {
34864
+ for (var _i2 = 0; _i2 < options.length; _i2++) {
34709
34865
  if (_loop2()) continue;
34710
34866
  }
34711
34867
  var variantValues = article.VariantValuesParentOption;
@@ -34734,7 +34890,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34734
34890
  break;
34735
34891
  case 3:
34736
34892
  _context12.next = 5;
34737
- return import('./PfisterWWSHandler-e824a225.js');
34893
+ return import('./PfisterWWSHandler-04389428.js');
34738
34894
  case 5:
34739
34895
  _yield$import = _context12.sent;
34740
34896
  PfisterWWSHandler = _yield$import["default"];
@@ -34742,7 +34898,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34742
34898
  return _context12.abrupt("break", 27);
34743
34899
  case 9:
34744
34900
  _context12.next = 11;
34745
- return import('./LiviqueWWSHandler-05983499.js');
34901
+ return import('./LiviqueWWSHandler-bbd8a88e.js');
34746
34902
  case 11:
34747
34903
  _yield$import2 = _context12.sent;
34748
34904
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34750,7 +34906,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34750
34906
  return _context12.abrupt("break", 27);
34751
34907
  case 15:
34752
34908
  _context12.next = 17;
34753
- return import('./SeriousBasketHandler-d0103e1a.js');
34909
+ return import('./SeriousBasketHandler-0ee10495.js');
34754
34910
  case 17:
34755
34911
  _yield$import3 = _context12.sent;
34756
34912
  SeriousWWSHandler = _yield$import3["default"];
@@ -34758,7 +34914,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34758
34914
  return _context12.abrupt("break", 27);
34759
34915
  case 21:
34760
34916
  _context12.next = 23;
34761
- return import('./StandardWWSHandler-539b9b15.js');
34917
+ return import('./StandardWWSHandler-30491100.js');
34762
34918
  case 23:
34763
34919
  _yield$import4 = _context12.sent;
34764
34920
  StandardWWSHandler = _yield$import4["default"];
@@ -36148,7 +36304,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36148
36304
  while (1) switch (_context3.prev = _context3.next) {
36149
36305
  case 0:
36150
36306
  _context3.next = 2;
36151
- return import('./Host3DSignalR-f4620464.js');
36307
+ return import('./Host3DSignalR-c8efe09c.js');
36152
36308
  case 2:
36153
36309
  _yield$import = _context3.sent;
36154
36310
  Host3DSignalR = _yield$import["default"];
@@ -37043,14 +37199,12 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
37043
37199
  _classCallCheck(this, DivaMediaServiceHandler);
37044
37200
  _defineProperty(this, "organizationId", void 0);
37045
37201
  _defineProperty(this, "mediaServiceUrl", void 0);
37046
- _defineProperty(this, "mediaServiceApiKey", void 0);
37047
37202
  _defineProperty(this, "jwt", void 0);
37048
37203
  _defineProperty(this, "POST_saveTmp2PermanentPostfix", '/saveTmp2Permanent');
37049
37204
  _defineProperty(this, "GET_MediaItemrefs", '/v1/mediaitems/refs?limit=20&skip=0&filter=');
37050
37205
  _defineProperty(this, "POST_mediaItem", '/v1/mediaitems?ref=true');
37051
37206
  this.organizationId = '';
37052
37207
  this.mediaServiceUrl = '';
37053
- this.mediaServiceApiKey = '';
37054
37208
  }
37055
37209
  return _createClass(DivaMediaServiceHandler, [{
37056
37210
  key: "setOrganizationId",
@@ -37062,11 +37216,6 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
37062
37216
  value: function setMediaServiceUrl(mediaServiceUrl) {
37063
37217
  this.mediaServiceUrl = mediaServiceUrl;
37064
37218
  }
37065
- }, {
37066
- key: "setMediaServiceApiKey",
37067
- value: function setMediaServiceApiKey(mediaServiceApiKey) {
37068
- this.mediaServiceApiKey = mediaServiceApiKey;
37069
- }
37070
37219
  }, {
37071
37220
  key: "setJwt",
37072
37221
  value: function setJwt(jwt) {
@@ -37123,7 +37272,7 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
37123
37272
  method: 'POST',
37124
37273
  body: data,
37125
37274
  headers: {
37126
- 'X-API-KEY': this.mediaServiceApiKey
37275
+ Authorization: 'Bearer ' + this.jwt
37127
37276
  }
37128
37277
  });
37129
37278
  case 11:
@@ -37494,7 +37643,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37494
37643
  key: "initPlanner",
37495
37644
  value: (function () {
37496
37645
  var _initPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(initSetState, plannerHandlerFunctions) {
37497
- var renderGroup, diva3dServerUrl, divaMediaServiceUrl, mediaServiceApiKey, _initSetState$api$web, result;
37646
+ var renderGroup, diva3dServerUrl, divaMediaServiceUrl, _initSetState$api$web, result;
37498
37647
  return _regeneratorRuntime.wrap(function _callee$(_context) {
37499
37648
  while (1) switch (_context.prev = _context.next) {
37500
37649
  case 0:
@@ -37502,8 +37651,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37502
37651
  renderGroup = initSetState.api.get3DRenderGroup();
37503
37652
  this.plannerHandlerFunctions = plannerHandlerFunctions;
37504
37653
  diva3dServerUrl = initSetState.api.get3DServerUrl();
37505
- divaMediaServiceUrl = initSetState.api.getDivaMediaServiceUrl();
37506
- mediaServiceApiKey = initSetState.api.getDivaMediaServiceApiKey(); //renderGroup = 'LeaTest';
37654
+ divaMediaServiceUrl = initSetState.api.getDivaMediaServiceUrl(); // renderGroup = 'LeaTest';
37507
37655
  //diva3dServerUrl = "https://test-einkauf-onboarding.pfister.ch/diva3d/diva3dhost2/";
37508
37656
  // diva3dServerUrl = "https://diva3dhost.diva-portal.com/diva3d/diva3dhost2/";
37509
37657
  //diva3dServerUrl = 'https://localhost:44315/';
@@ -37513,7 +37661,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37513
37661
  //divaMediaServiceUrl = 'https://api-test.diva-portal.com/media/';
37514
37662
  //divaMediaServiceUrl = 'http://localhost:3000';
37515
37663
  if (!(!initSetState.onlyRunLogic && !initSetState.no3DConnection)) {
37516
- _context.next = 14;
37664
+ _context.next = 13;
37517
37665
  break;
37518
37666
  }
37519
37667
  this.handler3D.initializeCallbackFunctions({
@@ -37532,24 +37680,23 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37532
37680
  arViewerUrl: (_initSetState$api$web = initSetState.api.webConfig) === null || _initSetState$api$web === void 0 ? void 0 : _initSetState$api$web.arViewerUrl
37533
37681
  });
37534
37682
  if (!(!this.handler3D.checkConnectionInitialized() || result.renderGroupChanged || result.diva3dServerUrlChanged)) {
37535
- _context.next = 13;
37683
+ _context.next = 12;
37536
37684
  break;
37537
37685
  }
37538
- _context.next = 13;
37686
+ _context.next = 12;
37539
37687
  return this.handler3D.initializeConnection();
37540
- case 13:
37688
+ case 12:
37541
37689
  if (this.divaNr != initSetState.divaNr) {
37542
37690
  this.divaNr = initSetState.divaNr;
37543
37691
  this.handler3D.joinDivaNr(this.divaNr);
37544
37692
  }
37545
- case 14:
37693
+ case 13:
37546
37694
  mediaServiceHandler.setMediaServiceUrl(divaMediaServiceUrl);
37547
- mediaServiceHandler.setMediaServiceApiKey(mediaServiceApiKey);
37548
37695
  mediaServiceHandler.setOrganizationId(initSetState.organizationId);
37549
37696
  mediaServiceHandler.setJwt(initSetState.api.getJwt());
37550
37697
  this.handler3D.setOrigConfigurationCallback(this.plannerHandlerFunctions.getOrigConfiguration);
37551
37698
  DivaUtils.endSpanOfApm('DivaPlannerHandler initPlanner');
37552
- case 20:
37699
+ case 18:
37553
37700
  case "end":
37554
37701
  return _context.stop();
37555
37702
  }
@@ -37700,7 +37847,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37700
37847
  break;
37701
37848
  case 8:
37702
37849
  _context4.next = 10;
37703
- return import('./DivaStandardPlanner-f4ce0bf9.js');
37850
+ return import('./DivaStandardPlanner-208066ab.js');
37704
37851
  case 10:
37705
37852
  _yield$import = _context4.sent;
37706
37853
  DivaStandardPlanner = _yield$import["default"];
@@ -37711,7 +37858,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37711
37858
  return _context4.abrupt("break", 21);
37712
37859
  case 15:
37713
37860
  _context4.next = 17;
37714
- return import('./DivaBoxPlanner-acb7342c.js');
37861
+ return import('./DivaBoxPlanner-058f2cca.js');
37715
37862
  case 17:
37716
37863
  _yield$import2 = _context4.sent;
37717
37864
  DivaBoxPlanner = _yield$import2["default"];
@@ -38327,6 +38474,20 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38327
38474
  return this.plannerList.get(setId).getPlannerElementsInfluencedByCopy(elementId, copyInfo);
38328
38475
  }
38329
38476
 
38477
+ /**
38478
+ * This function gets all Elements that are deleted when deleting one element.
38479
+ * @param setId
38480
+ * @param elementId
38481
+ */
38482
+ }, {
38483
+ key: "getPlannerElementsInfluencedByDeletion",
38484
+ value: function getPlannerElementsInfluencedByDeletion(setId, elementId) {
38485
+ if (!this.plannerList.has(setId)) {
38486
+ return [];
38487
+ }
38488
+ return this.plannerList.get(setId).getPlannerElementsInfluencedByDeletion(elementId);
38489
+ }
38490
+
38330
38491
  /**
38331
38492
  * This function is used to copy an element in the planner
38332
38493
  * @param setId
@@ -40388,76 +40549,90 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40388
40549
  key: "saveToBasketWrapper",
40389
40550
  value: function () {
40390
40551
  var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(event, repairOnly, force) {
40391
- var _this$actions25,
40392
- _this$actions25$toggl,
40393
- _this$actions26,
40552
+ var _this$actions26,
40394
40553
  _this$actions26$toggl,
40554
+ _this$actions27,
40555
+ _this$actions27$toggl,
40395
40556
  _this2 = this,
40396
- _this$actions30,
40557
+ _this$actions31,
40397
40558
  _this$i18n14;
40398
- var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, result, _this$actions27, _this$i18n8, _this$i18n9, _this$actions28, _this$i18n10, _this$i18n11, _this$actions29, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40559
+ var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions25, result, _this$actions28, _this$i18n8, _this$i18n9, _this$actions29, _this$i18n10, _this$i18n11, _this$actions30, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40399
40560
  return _regeneratorRuntime.wrap(function _callee25$(_context25) {
40400
40561
  while (1) switch (_context25.prev = _context25.next) {
40401
40562
  case 0:
40402
40563
  returnTo = this.getReturnTo(event);
40403
- finalEvent = event;
40564
+ finalEvent = {
40565
+ event: event,
40566
+ saveBasket: true
40567
+ };
40404
40568
  if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
40405
- _context25.next = 14;
40569
+ _context25.next = 21;
40406
40570
  break;
40407
40571
  }
40408
40572
  product = undefined;
40409
40573
  if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
40410
- _context25.next = 8;
40574
+ _context25.next = 10;
40411
40575
  break;
40412
40576
  }
40413
- _context25.next = 7;
40414
- return this.api.getDataCache(this.api.getCatalogProductUrl(this.actSet().getCatalogCodex()), undefined, undefined, 'catalog');
40415
- case 7:
40416
- _context25.sent;
40577
+ url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
40578
+ _context25.next = 8;
40579
+ return this.api.getDataCache(url, url, undefined, 'catalog');
40417
40580
  case 8:
40418
- _context25.next = 10;
40419
- return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
40581
+ _result = _context25.sent;
40582
+ product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
40420
40583
  case 10:
40584
+ _context25.next = 12;
40585
+ return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
40586
+ case 12:
40421
40587
  finalEvent = _context25.sent;
40422
40588
  if (finalEvent) {
40423
- _context25.next = 13;
40589
+ _context25.next = 17;
40424
40590
  break;
40425
40591
  }
40426
40592
  return _context25.abrupt("return", 'canceled');
40427
- case 13:
40428
- returnTo = finalEvent == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40429
- case 14:
40430
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || (_this$actions25$toggl = _this$actions25.toggleLoading) === null || _this$actions25$toggl === void 0 || _this$actions25$toggl.call(_this$actions25, 'Planner_Saving', false, true);
40431
- _context25.next = 17;
40432
- return this.saveToBasket(finalEvent, repairOnly, force);
40433
40593
  case 17:
40594
+ if (!(!finalEvent.saveBasket && finalEvent.event)) {
40595
+ _context25.next = 20;
40596
+ break;
40597
+ }
40598
+ (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40599
+ type: finalEvent.event
40600
+ });
40601
+ return _context25.abrupt("return", 'canceled');
40602
+ case 20:
40603
+ returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40604
+ case 21:
40605
+ (_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);
40606
+ _context25.next = 24;
40607
+ return this.saveToBasket(finalEvent.event, repairOnly, force);
40608
+ case 24:
40434
40609
  result = _context25.sent;
40435
- (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || (_this$actions26$toggl = _this$actions26.toggleLoading) === null || _this$actions26$toggl === void 0 || _this$actions26$toggl.call(_this$actions26, 'Planner_Saving', false, false);
40610
+ (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, false);
40436
40611
  if (!(result === 'canceled')) {
40437
- _context25.next = 23;
40612
+ _context25.next = 30;
40438
40613
  break;
40439
40614
  }
40440
40615
  LOG$1.error(new DivaError('failed to save Basket'));
40441
- (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || _this$actions27.openModal({
40616
+ (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40442
40617
  text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
40443
40618
  accept: true
40444
40619
  });
40445
40620
  return _context25.abrupt("return", result);
40446
- case 23:
40621
+ case 30:
40447
40622
  _context25.t0 = returnTo;
40448
- _context25.next = _context25.t0 === 'OPEN_PDF' ? 26 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 28 : 29;
40623
+ _context25.next = _context25.t0 === 'OPEN_PDF' ? 33 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : 36;
40449
40624
  break;
40450
- case 26:
40625
+ case 33:
40451
40626
  if (!this.getBasket().PDFDocumentURL) {
40452
40627
  LOG$1.error(new DivaError('PDF url is missing in basket', {
40453
40628
  code: 'WC_0010'
40454
40629
  }));
40455
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40630
+ (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40456
40631
  text: ((_this$i18n10 = this.i18n()) === null || _this$i18n10 === void 0 ? void 0 : _this$i18n10.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n11 = this.i18n()) === null || _this$i18n11 === void 0 ? void 0 : _this$i18n11.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
40457
40632
  accept: true
40458
40633
  });
40459
40634
  } else {
40460
- (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40635
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40461
40636
  text: (_this$i18n12 = this.i18n()) === null || _this$i18n12 === void 0 ? void 0 : _this$i18n12.t(this.divaBasketHandler.actBasket.Status === 'ORDER' ? 'modal.open_order_pdf_now' : 'modal.open_leaflet_pdf_now'),
40462
40637
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
40463
40638
  callback: function callback() {
@@ -40465,22 +40640,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40465
40640
  }
40466
40641
  });
40467
40642
  }
40468
- return _context25.abrupt("break", 29);
40469
- case 28:
40470
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40643
+ return _context25.abrupt("break", 36);
40644
+ case 35:
40645
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40471
40646
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
40472
40647
  accept: true
40473
40648
  });
40474
- case 29:
40649
+ case 36:
40475
40650
  if (!(result == 'noArticleToSave')) {
40476
- _context25.next = 32;
40651
+ _context25.next = 39;
40477
40652
  break;
40478
40653
  }
40479
40654
  (_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
40480
40655
  return _context25.abrupt("return", 'canceled');
40481
- case 32:
40656
+ case 39:
40482
40657
  return _context25.abrupt("return", result);
40483
- case 33:
40658
+ case 40:
40484
40659
  case "end":
40485
40660
  return _context25.stop();
40486
40661
  }
@@ -40495,7 +40670,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40495
40670
  key: "saveToBasket",
40496
40671
  value: function () {
40497
40672
  var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
40498
- var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions31, _this$actions32, _this$actions33;
40673
+ var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34;
40499
40674
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, _event4, product;
40500
40675
  return _regeneratorRuntime.wrap(function _callee26$(_context26) {
40501
40676
  while (1) switch (_context26.prev = _context26.next) {
@@ -40567,8 +40742,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40567
40742
  _context26.next = _context26.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 30 : _context26.t3 === 'OPEN_SELLER_BASKET' ? 33 : _context26.t3 === 'OPEN_PDF' ? 35 : _context26.t3 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context26.t3 === 'SAVE_BASKET' ? 35 : _context26.t3 === 'SAVE_BASKET_SYNC' ? 35 : _context26.t3 === 'OPEN_LEAFLET_BARRIER' ? 35 : 55;
40568
40743
  break;
40569
40744
  case 30:
40570
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.toggleLoading('buildScene', false, false);
40571
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openComponent({
40745
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.toggleLoading('buildScene', false, false);
40746
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
40572
40747
  type: 'SELLER',
40573
40748
  parameters: {
40574
40749
  module: 'PCreator',
@@ -40580,7 +40755,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40580
40755
  });
40581
40756
  return _context26.abrupt("break", 55);
40582
40757
  case 33:
40583
- (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
40758
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40584
40759
  type: 'SELLER',
40585
40760
  parameters: {
40586
40761
  module: 'Basket',
@@ -40634,12 +40809,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40634
40809
  return _context26.abrupt("break", 55);
40635
40810
  case 55:
40636
40811
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
40637
- _context26.next = 58;
40812
+ actBasket = this.divaBasketHandler.getBasketData(actBasket.DivaNr); //get pdf documenturl from saved basket
40813
+ _context26.next = 59;
40638
40814
  return this.addToBasket(actBasket, event);
40639
- case 58:
40815
+ case 59:
40640
40816
  product = _context26.sent;
40641
40817
  return _context26.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
40642
- case 60:
40818
+ case 61:
40643
40819
  case "end":
40644
40820
  return _context26.stop();
40645
40821
  }
@@ -40694,8 +40870,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40694
40870
 
40695
40871
  //if planner is hidden by config but nothing is planned initially
40696
40872
  if (plannerType === 'NONE') {
40697
- var _this$plannerConfig$a7, _this$actSet9;
40698
- if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet9 = this.actSet()) !== null && _this$actSet9 !== void 0 && (_this$actSet9 = _this$actSet9.CatalogData.startPlannerArticle) !== null && _this$actSet9 !== void 0 && _this$actSet9.length)) {
40873
+ var _this$plannerConfig$a7, _this$actSet10;
40874
+ if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet10 = this.actSet()) !== null && _this$actSet10 !== void 0 && (_this$actSet10 = _this$actSet10.CatalogData.startPlannerArticle) !== null && _this$actSet10 !== void 0 && _this$actSet10.length)) {
40699
40875
  plannerType = 'PLANNER';
40700
40876
  }
40701
40877
  }
@@ -40735,38 +40911,38 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40735
40911
  }, {
40736
40912
  key: "getCurCatalogCodex",
40737
40913
  value: function getCurCatalogCodex() {
40738
- var _this$actSet10;
40739
- return (_this$actSet10 = this.actSet()) === null || _this$actSet10 === void 0 ? void 0 : _this$actSet10.getCatalogCodex();
40914
+ var _this$actSet11;
40915
+ return (_this$actSet11 = this.actSet()) === null || _this$actSet11 === void 0 ? void 0 : _this$actSet11.getCatalogCodex();
40740
40916
  }
40741
40917
  }, {
40742
40918
  key: "getCurCatalogName",
40743
40919
  value: function getCurCatalogName() {
40744
- var _this$actSet11;
40745
- return (_this$actSet11 = this.actSet()) === null || _this$actSet11 === void 0 ? void 0 : _this$actSet11.getCatalogName();
40920
+ var _this$actSet12;
40921
+ return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getCatalogName();
40746
40922
  }
40747
40923
  }, {
40748
40924
  key: "getCurAccountName",
40749
40925
  value: function getCurAccountName() {
40750
- var _this$actSet12;
40751
- return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getAccountName();
40926
+ var _this$actSet13;
40927
+ return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getAccountName();
40752
40928
  }
40753
40929
  }, {
40754
40930
  key: "getCurSupplierGuid",
40755
40931
  value: function getCurSupplierGuid() {
40756
- var _this$actSet13;
40757
- return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getSupplierGuid();
40932
+ var _this$actSet14;
40933
+ return (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getSupplierGuid();
40758
40934
  }
40759
40935
  }, {
40760
40936
  key: "getCurSetPrice",
40761
40937
  value: function getCurSetPrice() {
40762
- var _this$actSet$getSetPr, _this$actSet14;
40763
- return (_this$actSet$getSetPr = (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
40938
+ var _this$actSet$getSetPr, _this$actSet15;
40939
+ return (_this$actSet$getSetPr = (_this$actSet15 = this.actSet()) === null || _this$actSet15 === void 0 ? void 0 : _this$actSet15.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
40764
40940
  }
40765
40941
  }, {
40766
40942
  key: "getCurImageMode",
40767
40943
  value: function getCurImageMode() {
40768
- var _this$actSet15;
40769
- return (_this$actSet15 = this.actSet()) !== null && _this$actSet15 !== void 0 && (_this$actSet15 = _this$actSet15.CatalogData) !== null && _this$actSet15 !== void 0 && _this$actSet15.has3dModels ? '3D' : '2D';
40944
+ var _this$actSet16;
40945
+ return (_this$actSet16 = this.actSet()) !== null && _this$actSet16 !== void 0 && (_this$actSet16 = _this$actSet16.CatalogData) !== null && _this$actSet16 !== void 0 && _this$actSet16.has3dModels ? '3D' : '2D';
40770
40946
  }
40771
40947
  }, {
40772
40948
  key: "getViewConfig",
@@ -40797,65 +40973,65 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40797
40973
  }, {
40798
40974
  key: "doShow3DDimensionLines",
40799
40975
  value: function doShow3DDimensionLines() {
40800
- var _this$actSet16;
40801
- return (_this$actSet16 = this.actSet()) === null || _this$actSet16 === void 0 || (_this$actSet16 = _this$actSet16.CatalogData) === null || _this$actSet16 === void 0 ? void 0 : _this$actSet16.doShow3DDimensionLines;
40976
+ var _this$actSet17;
40977
+ return (_this$actSet17 = this.actSet()) === null || _this$actSet17 === void 0 || (_this$actSet17 = _this$actSet17.CatalogData) === null || _this$actSet17 === void 0 ? void 0 : _this$actSet17.doShow3DDimensionLines;
40802
40978
  }
40803
40979
  }, {
40804
40980
  key: "hidePlannerUiIcons",
40805
40981
  value: function hidePlannerUiIcons() {
40806
- var _this$actSet17;
40807
- return (_this$actSet17 = this.actSet()) === null || _this$actSet17 === void 0 || (_this$actSet17 = _this$actSet17.CatalogData) === null || _this$actSet17 === void 0 ? void 0 : _this$actSet17.hidePlannerUiIcons;
40982
+ var _this$actSet18;
40983
+ return (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 || (_this$actSet18 = _this$actSet18.CatalogData) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.hidePlannerUiIcons;
40808
40984
  }
40809
40985
  }, {
40810
40986
  key: "doShowPlannerReplaceMode",
40811
40987
  value: function doShowPlannerReplaceMode() {
40812
- var _this$actSet18, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
40813
- var catalogData = (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.CatalogData;
40988
+ var _this$actSet19, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
40989
+ var catalogData = (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.CatalogData;
40814
40990
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.replaceModeActive) && ((_this$api$getViewConf2 = this.api.getViewConfig()) === null || _this$api$getViewConf2 === void 0 ? void 0 : _this$api$getViewConf2.showReplaceFunctionInPlanner) && Object.entries(catalogData.allCatalogPlannerArticles).length > 1 && Object.entries((_catalogData$PlannerP = (_catalogData$PlannerP2 = catalogData.PlannerPaletteViewInfo) === null || _catalogData$PlannerP2 === void 0 ? void 0 : _catalogData$PlannerP2.catalogPlannerArticles) !== null && _catalogData$PlannerP !== void 0 ? _catalogData$PlannerP : {}).length > 1;
40815
40991
  }
40816
40992
  }, {
40817
40993
  key: "doPlannerReplaceAutoSwitch",
40818
40994
  value: function doPlannerReplaceAutoSwitch() {
40819
- var _this$actSet19, _this$api$getViewConf3;
40820
- var catalogData = (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.CatalogData;
40995
+ var _this$actSet20, _this$api$getViewConf3;
40996
+ var catalogData = (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.CatalogData;
40821
40997
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.catalogPlannsCompletely) && this.doShowPlannerReplaceMode() && ((_this$api$getViewConf3 = this.api.getViewConfig()) === null || _this$api$getViewConf3 === void 0 ? void 0 : _this$api$getViewConf3.allowAutoSwitchInReplaceFunctionInPlanner);
40822
40998
  }
40823
40999
  }, {
40824
41000
  key: "getHidePlanner",
40825
41001
  value: function getHidePlanner() {
40826
- var _this$actSet20;
40827
- return this.api.getHidePlanner() || !!((_this$actSet20 = this.actSet()) !== null && _this$actSet20 !== void 0 && _this$actSet20.CatalogData.useBoxPlanner);
41002
+ var _this$actSet21;
41003
+ return this.api.getHidePlanner() || !!((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.useBoxPlanner);
40828
41004
  }
40829
41005
  }, {
40830
41006
  key: "getAllowRTV",
40831
41007
  value: function getAllowRTV() {
40832
- var _this$actSet21, _this$actSet22;
41008
+ var _this$actSet22, _this$actSet23;
40833
41009
  if (this.getEnableUnityRtvKombi()) return false;
40834
41010
  if (this.api.forceShowRTV()) return true;
40835
- if ((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.divaForceRTV) return true;
40836
- if (this.api.getDoShowRTV() && (_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaArReady) return true;
41011
+ if ((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaForceRTV) return true;
41012
+ if (this.api.getDoShowRTV() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
40837
41013
  return false;
40838
41014
  }
40839
41015
  }, {
40840
41016
  key: "geAllowQRCodeAR",
40841
41017
  value: function geAllowQRCodeAR() {
40842
- var _this$actSet23;
40843
- if (this.api.getDoShowAR() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
41018
+ var _this$actSet24;
41019
+ if (this.api.getDoShowAR() && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
40844
41020
  return false;
40845
41021
  }
40846
41022
  }, {
40847
41023
  key: "getEnableUnityRtvKombi",
40848
41024
  value: function getEnableUnityRtvKombi() {
40849
- var _this$actSet24, _this$actSet25;
41025
+ var _this$actSet25, _this$actSet26;
40850
41026
  // if force rtv disable unity kombi - biohort
40851
- if ((_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaForceRTV) return false;
40852
- return ((_this$actSet25 = this.actSet()) === null || _this$actSet25 === void 0 ? void 0 : _this$actSet25.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
41027
+ if ((_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaForceRTV) return false;
41028
+ return ((_this$actSet26 = this.actSet()) === null || _this$actSet26 === void 0 ? void 0 : _this$actSet26.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
40853
41029
  }
40854
41030
  }, {
40855
41031
  key: "getShelfPlannerRTV",
40856
41032
  value: function getShelfPlannerRTV() {
40857
- var _this$actSet26;
40858
- return (_this$actSet26 = this.actSet()) === null || _this$actSet26 === void 0 ? void 0 : _this$actSet26.CatalogData.useShelfPlannerRTV;
41033
+ var _this$actSet27;
41034
+ return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData.useShelfPlannerRTV;
40859
41035
  }
40860
41036
  }, {
40861
41037
  key: "getBasketData",
@@ -40896,8 +41072,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40896
41072
  }, {
40897
41073
  key: "getCatalogData",
40898
41074
  value: function getCatalogData() {
40899
- var _this$actSet27;
40900
- return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData;
41075
+ var _this$actSet28;
41076
+ return (_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData;
40901
41077
  }
40902
41078
  }, {
40903
41079
  key: "ReturnTo",
@@ -40913,16 +41089,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40913
41089
  key: "addToBasket",
40914
41090
  value: function () {
40915
41091
  var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(actBasket) {
40916
- var _this$actions34,
40917
- _this$actions35,
41092
+ var _this$actions35,
40918
41093
  _this$actions36,
40919
41094
  _this$actions37,
40920
41095
  _this$actions38,
41096
+ _this$actions39,
40921
41097
  _this$divaBasketHandl3,
40922
41098
  _this3 = this,
40923
- _this$actions39,
40924
41099
  _this$actions40,
40925
- _this$actions41;
41100
+ _this$actions41,
41101
+ _this$actions42,
41102
+ _this$actions43;
40926
41103
  var event,
40927
41104
  addToBasketLog,
40928
41105
  emailConfig,
@@ -40938,43 +41115,43 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40938
41115
  event = _args28.length > 1 && _args28[1] !== undefined ? _args28[1] : 'onAddToBasket';
40939
41116
  addToBasketLog = true;
40940
41117
  _context28.t0 = event;
40941
- _context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 8 : _context28.t0 === 'onWebPlanerShare' ? 11 : _context28.t0 === 'onRequestConsulation' ? 14 : _context28.t0 === 'onSave' ? 17 : _context28.t0 === 'onSendEmail' ? 20 : _context28.t0 === 'onSaveProduct' ? 25 : _context28.t0 === 'dontSaveBasket' ? 33 : _context28.t0 === 'onAddToBasket' ? 35 : 35;
41118
+ _context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 8 : _context28.t0 === 'onWebPlanerShare' ? 11 : _context28.t0 === 'onRequestConsulation' ? 14 : _context28.t0 === 'onSave' ? 17 : _context28.t0 === 'onSendEmail' ? 20 : _context28.t0 === 'onSaveProduct' ? 25 : _context28.t0 === 'dontSaveBasket' ? 33 : _context28.t0 === 'onAddToBasket' ? 35 : 38;
40942
41119
  break;
40943
41120
  case 5:
40944
41121
  this.handleSuccessTransaction('onPrintBasket', actBasket);
40945
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.onEvent({
41122
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
40946
41123
  type: 'onWebPlanerPrint',
40947
41124
  data: actBasket.getAsJson()
40948
41125
  });
40949
- return _context28.abrupt("break", 38);
41126
+ return _context28.abrupt("break", 40);
40950
41127
  case 8:
40951
41128
  this.handleSuccessTransaction('onSaveBasket', actBasket);
40952
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41129
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
40953
41130
  type: 'onWebPlanerSave',
40954
41131
  data: actBasket.getAsJson()
40955
41132
  });
40956
- return _context28.abrupt("break", 38);
41133
+ return _context28.abrupt("break", 40);
40957
41134
  case 11:
40958
41135
  this.handleSuccessTransaction('onShareBasket', actBasket);
40959
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41136
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
40960
41137
  type: 'onWebPlanerShare',
40961
41138
  data: actBasket.getAsJson()
40962
41139
  });
40963
- return _context28.abrupt("break", 38);
41140
+ return _context28.abrupt("break", 40);
40964
41141
  case 14:
40965
41142
  this.handleSuccessTransaction('onRequestConsulation', actBasket);
40966
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41143
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
40967
41144
  type: 'onRequestConsulation',
40968
41145
  data: actBasket.getAsJson()
40969
41146
  });
40970
- return _context28.abrupt("break", 38);
41147
+ return _context28.abrupt("break", 40);
40971
41148
  case 17:
40972
41149
  this.handleSuccessTransaction('onSave', actBasket);
40973
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41150
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
40974
41151
  type: 'onSave',
40975
41152
  data: actBasket.getAsJson()
40976
41153
  });
40977
- return _context28.abrupt("break", 38);
41154
+ return _context28.abrupt("break", 40);
40978
41155
  case 20:
40979
41156
  emailConfig = (_this$divaBasketHandl3 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl3 !== void 0 ? _this$divaBasketHandl3 : this.getEmailConfig(); //reset the emailConfig
40980
41157
  this.divaBasketHandler.emailConfig = undefined;
@@ -41006,11 +41183,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41006
41183
  });
41007
41184
  this.handleSuccessTransaction('onSendEmail', actBasket);
41008
41185
  }
41009
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41186
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41010
41187
  type: 'onAddToBasket',
41011
41188
  data: actBasket.getAsJson()
41012
41189
  });
41013
- return _context28.abrupt("break", 38);
41190
+ return _context28.abrupt("break", 40);
41014
41191
  case 25:
41015
41192
  this.actSet().CatalogData;
41016
41193
  _context28.next = 28;
@@ -41018,7 +41195,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41018
41195
  case 28:
41019
41196
  products = _context28.sent;
41020
41197
  this.handleSuccessTransaction('onSaveProduct', actBasket);
41021
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41198
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41022
41199
  type: 'onAddToBasket',
41023
41200
  data: actBasket.getAsJson()
41024
41201
  });
@@ -41032,14 +41209,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41032
41209
  addToBasketLog = false;
41033
41210
  case 35:
41034
41211
  if (addToBasketLog) this.handleSuccessTransaction('onAddToBasket', actBasket);
41035
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41212
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41036
41213
  type: 'onAddToBasket',
41037
41214
  data: actBasket.getAsJson()
41038
41215
  });
41039
- return _context28.abrupt("break", 38);
41216
+ return _context28.abrupt("break", 40);
41040
41217
  case 38:
41218
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41219
+ type: event,
41220
+ data: actBasket.getAsJson()
41221
+ });
41222
+ return _context28.abrupt("break", 40);
41223
+ case 40:
41041
41224
  return _context28.abrupt("return");
41042
- case 39:
41225
+ case 41:
41043
41226
  case "end":
41044
41227
  return _context28.stop();
41045
41228
  }
@@ -41064,8 +41247,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41064
41247
  }, {
41065
41248
  key: "openPDFpostAsEvent",
41066
41249
  value: function openPDFpostAsEvent(mongoDBId) {
41067
- var _this$actions42, _this$actions43, _this$actions44;
41068
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.updateBreadcrumbs({
41250
+ var _this$actions44, _this$actions45, _this$actions46;
41251
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.updateBreadcrumbs({
41069
41252
  type: 'update',
41070
41253
  param: {
41071
41254
  groupId: 'SHOWROOM',
@@ -41079,7 +41262,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41079
41262
  }
41080
41263
  }
41081
41264
  });
41082
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.updateBreadcrumbs({
41265
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41083
41266
  type: 'update',
41084
41267
  param: {
41085
41268
  groupId: 'SHOWROOM',
@@ -41093,7 +41276,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41093
41276
  }
41094
41277
  }
41095
41278
  });
41096
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.openComponent({
41279
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
41097
41280
  type: 'REPORT',
41098
41281
  parameters: {
41099
41282
  id: mongoDBId
@@ -41313,14 +41496,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41313
41496
  }, {
41314
41497
  key: "subscribeToWebPlannerEvents",
41315
41498
  value: function subscribeToWebPlannerEvents() {
41316
- var _this$actions45;
41317
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.subscribeEvents(this.addToBasketEventFunction);
41499
+ var _this$actions47;
41500
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
41318
41501
  }
41319
41502
  }, {
41320
41503
  key: "unsubscribeFromWebPlannerEvents",
41321
41504
  value: function unsubscribeFromWebPlannerEvents() {
41322
- var _this$actions46;
41323
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.unSubscribeEvents(this.addToBasketEventFunction);
41505
+ var _this$actions48;
41506
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
41324
41507
  }
41325
41508
  }, {
41326
41509
  key: "initApiForLogicOnly",
@@ -41388,7 +41571,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41388
41571
  }, {
41389
41572
  key: "initBasket",
41390
41573
  value: function () {
41391
- var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites) {
41574
+ var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites, onlyCalcVariants) {
41392
41575
  var _initSetState$api$web2;
41393
41576
  var initSetState, sets, result, _sets$, set, basket;
41394
41577
  return _regeneratorRuntime.wrap(function _callee31$(_context31) {
@@ -41417,28 +41600,28 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41417
41600
  (_sets$ = sets[0]) === null || _sets$ === void 0 || _sets$.remindPriceForHash(result);
41418
41601
  }
41419
41602
  case 12:
41420
- //TODO: GLOBAL STUFF
41421
41603
  set = this.actSet();
41604
+ if (set) set.onlyCalcVariants = onlyCalcVariants;
41422
41605
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
41423
41606
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
41424
- _context31.next = 17;
41607
+ _context31.next = 18;
41425
41608
  break;
41426
41609
  }
41427
- _context31.next = 17;
41610
+ _context31.next = 18;
41428
41611
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
41429
- case 17:
41430
- _context31.next = 19;
41612
+ case 18:
41613
+ _context31.next = 20;
41431
41614
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
41432
- case 19:
41615
+ case 20:
41433
41616
  basket = _context31.sent;
41434
41617
  return _context31.abrupt("return", basket);
41435
- case 21:
41618
+ case 22:
41436
41619
  case "end":
41437
41620
  return _context31.stop();
41438
41621
  }
41439
41622
  }, _callee31, this);
41440
41623
  }));
41441
- function initBasket(_x78, _x79) {
41624
+ function initBasket(_x78, _x79, _x80) {
41442
41625
  return _initBasket.apply(this, arguments);
41443
41626
  }
41444
41627
  return initBasket;
@@ -41515,7 +41698,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41515
41698
  }
41516
41699
  }, _callee33, this);
41517
41700
  }));
41518
- function handleFavorites(_x80) {
41701
+ function handleFavorites(_x81) {
41519
41702
  return _handleFavorites.apply(this, arguments);
41520
41703
  }
41521
41704
  return handleFavorites;
@@ -41569,7 +41752,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41569
41752
  }
41570
41753
  }, _callee34, this);
41571
41754
  }));
41572
- function initSapOrderLinesFromBasket(_x81, _x82, _x83) {
41755
+ function initSapOrderLinesFromBasket(_x82, _x83, _x84) {
41573
41756
  return _initSapOrderLinesFromBasket.apply(this, arguments);
41574
41757
  }
41575
41758
  return initSapOrderLinesFromBasket;
@@ -42441,7 +42624,7 @@ var Grid = /*#__PURE__*/function () {
42441
42624
  case 0:
42442
42625
  option = _this.montageOptions[i];
42443
42626
  inUseCell = _this.cells.find(function (c, i) {
42444
- return c.InUse === i && c.Article && (!option.accessoires || Array.isArray(option.accessoires) && option.accessoires.includes(c.Article.articleCodex) || !Array.isArray(option.accessoires) && option.accessoires == c.Article.articleCodex) && (!option.range || Array.isArray(option.range) && option.range.includes(i) || !Array.isArray(option.range) && option.range == i);
42627
+ return c.InUse === i && c.Article && (!option.accessoires || Array.isArray(option.accessoires) && option.accessoires.includes(c.Article.articleCodex) || !Array.isArray(option.accessoires) && option.accessoires == c.Article.articleCodex) && (!option.range || Array.isArray(option.range) && option.range.includes(i) || !Array.isArray(option.range) && option.range == i) && (!option.onTop || _this.cells[_this.cells.length - 1].InUse === i) && (!option.onBottom || _this.cells[0].InUse === i);
42445
42628
  });
42446
42629
  specificAccessoire = option.accessoires && inUseCell !== null && inUseCell !== void 0 && inUseCell.Article ? [inUseCell.Article] : undefined;
42447
42630
  options = Array.isArray(option.optionCodex) ? option.optionCodex : [option.optionCodex];