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

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
@@ -428,7 +428,6 @@ var DivaApiHandler = /*#__PURE__*/function () {
428
428
  diva3DRenderingDefault: data.diva3DRenderingDefault != undefined ? data.diva3DRenderingDefault : false,
429
429
  diva3dServerMode: data.diva3dServerMode != undefined ? data.diva3dServerMode : 'SignalR',
430
430
  diva3dRenderGroup: data.diva3dRenderGroup != undefined ? data.diva3dRenderGroup : 'MYCC7',
431
- mediaServiceApiKey: data.divaMediaServiceApiKey,
432
431
  language: lang !== null && lang !== void 0 ? lang : this.getLanguage(),
433
432
  abTestCases: data.abTestCases !== undefined ? data.abTestCases : [],
434
433
  checkForProductsPrice: data.checkForProductsPrice,
@@ -484,17 +483,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
484
483
  var _this$apiConfig$baske, _this$apiConfig9;
485
484
  return (_this$apiConfig$baske = (_this$apiConfig9 = this.apiConfig) === null || _this$apiConfig9 === void 0 ? void 0 : _this$apiConfig9.basketService) !== null && _this$apiConfig$baske !== void 0 ? _this$apiConfig$baske : '';
486
485
  }
487
- }, {
488
- key: "getDivaMediaServiceApiKey",
489
- value: function getDivaMediaServiceApiKey() {
490
- var _this$divaWebConfigDa, _this$divaWebConfigDa2;
491
- return (_this$divaWebConfigDa = (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.mediaServiceApiKey) !== null && _this$divaWebConfigDa !== void 0 ? _this$divaWebConfigDa : '';
492
- }
493
486
  }, {
494
487
  key: "getLoadProductBasketParams",
495
488
  value: function getLoadProductBasketParams() {
496
- var _this$divaWebConfigDa3;
497
- return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.loadProductBasketParams;
489
+ var _this$divaWebConfigDa;
490
+ return (_this$divaWebConfigDa = this.divaWebConfigData) === null || _this$divaWebConfigDa === void 0 ? void 0 : _this$divaWebConfigDa.loadProductBasketParams;
498
491
  }
499
492
  }, {
500
493
  key: "get3DServerUrl",
@@ -505,20 +498,20 @@ var DivaApiHandler = /*#__PURE__*/function () {
505
498
  }, {
506
499
  key: "doCheckForProductsPrice",
507
500
  value: function doCheckForProductsPrice() {
508
- var _this$divaWebConfigDa4;
509
- return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.checkForProductsPrice;
501
+ var _this$divaWebConfigDa2;
502
+ return (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.checkForProductsPrice;
510
503
  }
511
504
  }, {
512
505
  key: "getReportConfigIdentifier",
513
506
  value: function getReportConfigIdentifier() {
514
- var _this$divaWebConfigDa5;
515
- return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.reportConfigIdentifier;
507
+ var _this$divaWebConfigDa3;
508
+ return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.reportConfigIdentifier;
516
509
  }
517
510
  }, {
518
511
  key: "getPrintOptions",
519
512
  value: function getPrintOptions() {
520
- var _this$divaWebConfigDa6;
521
- var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.reportConfig;
513
+ var _this$divaWebConfigDa4;
514
+ var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.reportConfig;
522
515
  return {
523
516
  Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
524
517
  PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
@@ -538,8 +531,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
538
531
  }, {
539
532
  key: "get3DRenderGroup",
540
533
  value: function get3DRenderGroup() {
541
- var _this$divaWebConfigDa7, _this$divaWebConfigDa8;
542
- return (_this$divaWebConfigDa7 = (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dRenderGroup) !== null && _this$divaWebConfigDa7 !== void 0 ? _this$divaWebConfigDa7 : '';
534
+ var _this$divaWebConfigDa5, _this$divaWebConfigDa6;
535
+ return (_this$divaWebConfigDa5 = (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.diva3dRenderGroup) !== null && _this$divaWebConfigDa5 !== void 0 ? _this$divaWebConfigDa5 : '';
543
536
  }
544
537
  }, {
545
538
  key: "getServerId",
@@ -576,86 +569,86 @@ var DivaApiHandler = /*#__PURE__*/function () {
576
569
  }, {
577
570
  key: "getDiva3dStaticBGImage",
578
571
  value: function getDiva3dStaticBGImage() {
579
- var _this$divaWebConfigDa9;
580
- return (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.diva3dStaticBGImage;
572
+ var _this$divaWebConfigDa7;
573
+ return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.diva3dStaticBGImage;
581
574
  }
582
575
  }, {
583
576
  key: "getDiva3dStaticBGImage_DefaultRoomList",
584
577
  value: function getDiva3dStaticBGImage_DefaultRoomList() {
585
- var _this$divaWebConfigDa10, _this$divaWebConfigDa11;
586
- return ((_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3dStaticBGImage_DefaultRoomList;
578
+ var _this$divaWebConfigDa8, _this$divaWebConfigDa9;
579
+ return ((_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.diva3dStaticBGImage_DefaultRoomList;
587
580
  }
588
581
  }, {
589
582
  key: "getDiva3DAllowDefaultCatRoomList",
590
583
  value: function getDiva3DAllowDefaultCatRoomList() {
591
- var _this$divaWebConfigDa12;
592
- return (_this$divaWebConfigDa12 = this.divaWebConfigData) === null || _this$divaWebConfigDa12 === void 0 ? void 0 : _this$divaWebConfigDa12.diva3DAllowDefaultCatRoomList;
584
+ var _this$divaWebConfigDa10;
585
+ return (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3DAllowDefaultCatRoomList;
593
586
  }
594
587
  }, {
595
588
  key: "doAllowSetPlanner",
596
589
  value: function doAllowSetPlanner() {
597
- var _this$divaWebConfigDa13;
598
- return (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.doAllowSetPlanner;
590
+ var _this$divaWebConfigDa11;
591
+ return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.doAllowSetPlanner;
599
592
  }
600
593
  }, {
601
594
  key: "getHidePlanner",
602
595
  value: function getHidePlanner() {
603
- var _this$divaWebConfigDa14;
604
- return !!((_this$divaWebConfigDa14 = this.divaWebConfigData) !== null && _this$divaWebConfigDa14 !== void 0 && (_this$divaWebConfigDa14 = _this$divaWebConfigDa14.viewConfig) !== null && _this$divaWebConfigDa14 !== void 0 && _this$divaWebConfigDa14.hidePlanner);
596
+ var _this$divaWebConfigDa12;
597
+ return !!((_this$divaWebConfigDa12 = this.divaWebConfigData) !== null && _this$divaWebConfigDa12 !== void 0 && (_this$divaWebConfigDa12 = _this$divaWebConfigDa12.viewConfig) !== null && _this$divaWebConfigDa12 !== void 0 && _this$divaWebConfigDa12.hidePlanner);
605
598
  }
606
599
  }, {
607
600
  key: "getDoShowAR",
608
601
  value: function getDoShowAR() {
609
- var _this$divaWebConfigDa15;
610
- return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 || (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.enableAR;
602
+ var _this$divaWebConfigDa13;
603
+ return (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 || (_this$divaWebConfigDa13 = _this$divaWebConfigDa13.viewConfig) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.enableAR;
611
604
  }
612
605
  }, {
613
606
  key: "forceShowRTV",
614
607
  value: function forceShowRTV() {
615
- var _this$divaWebConfigDa16;
616
- return (_this$divaWebConfigDa16 = this.divaWebConfigData) === null || _this$divaWebConfigDa16 === void 0 || (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) === null || _this$divaWebConfigDa16 === void 0 ? void 0 : _this$divaWebConfigDa16.forceRTV;
608
+ var _this$divaWebConfigDa14;
609
+ return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 || (_this$divaWebConfigDa14 = _this$divaWebConfigDa14.viewConfig) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.forceRTV;
617
610
  }
618
611
  }, {
619
612
  key: "getDoShowRTV",
620
613
  value: function getDoShowRTV() {
621
- var _this$divaWebConfigDa17;
622
- return (_this$divaWebConfigDa17 = this.divaWebConfigData) === null || _this$divaWebConfigDa17 === void 0 || (_this$divaWebConfigDa17 = _this$divaWebConfigDa17.viewConfig) === null || _this$divaWebConfigDa17 === void 0 ? void 0 : _this$divaWebConfigDa17.enableRTV;
614
+ var _this$divaWebConfigDa15;
615
+ return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 || (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.enableRTV;
623
616
  }
624
617
  }, {
625
618
  key: "getEnableRTVUnityKombi",
626
619
  value: function getEnableRTVUnityKombi() {
627
- var _this$divaWebConfigDa18;
628
- return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.viewConfig.enableRtvUnityKombi);
620
+ var _this$divaWebConfigDa16;
621
+ return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.viewConfig.enableRtvUnityKombi);
629
622
  }
630
623
  }, {
631
624
  key: "getDoDisablePlanner2D",
632
625
  value: function getDoDisablePlanner2D() {
633
- var _this$divaWebConfigDa19;
634
- return !!((_this$divaWebConfigDa19 = this.divaWebConfigData) !== null && _this$divaWebConfigDa19 !== void 0 && _this$divaWebConfigDa19.doDisablePlanner2D);
626
+ var _this$divaWebConfigDa17;
627
+ return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
635
628
  }
636
629
  }, {
637
630
  key: "getRoomListInProduct",
638
631
  value: function getRoomListInProduct() {
639
- var _this$divaWebConfigDa20;
640
- return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && (_this$divaWebConfigDa20 = _this$divaWebConfigDa20.viewConfig) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.roomListInProduct);
632
+ var _this$divaWebConfigDa18;
633
+ return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
641
634
  }
642
635
  }, {
643
636
  key: "getPlannerType",
644
637
  value: function getPlannerType() {
645
- var _this$divaWebConfigDa21;
646
- return (_this$divaWebConfigDa21 = this.divaWebConfigData) === null || _this$divaWebConfigDa21 === void 0 || (_this$divaWebConfigDa21 = _this$divaWebConfigDa21.viewConfig) === null || _this$divaWebConfigDa21 === void 0 ? void 0 : _this$divaWebConfigDa21.plannerType;
638
+ var _this$divaWebConfigDa19;
639
+ return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 || (_this$divaWebConfigDa19 = _this$divaWebConfigDa19.viewConfig) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.plannerType;
647
640
  }
648
641
  }, {
649
642
  key: "getLoadSupplierColors",
650
643
  value: function getLoadSupplierColors() {
651
- var _this$divaWebConfigDa22;
652
- return !!((_this$divaWebConfigDa22 = this.divaWebConfigData) !== null && _this$divaWebConfigDa22 !== void 0 && _this$divaWebConfigDa22.loadSupplierColors);
644
+ var _this$divaWebConfigDa20;
645
+ return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
653
646
  }
654
647
  }, {
655
648
  key: "showSelectionModeZero",
656
649
  value: function showSelectionModeZero() {
657
- var _this$divaWebConfigDa23;
658
- return !!((_this$divaWebConfigDa23 = this.divaWebConfigData) !== null && _this$divaWebConfigDa23 !== void 0 && _this$divaWebConfigDa23.showSelectionModeZero);
650
+ var _this$divaWebConfigDa21;
651
+ return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
659
652
  }
660
653
  }, {
661
654
  key: "ruleDescSeperator",
@@ -675,8 +668,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
675
668
  }, {
676
669
  key: "getDoCheckVariantData",
677
670
  value: function getDoCheckVariantData() {
678
- var _this$divaWebConfigDa24;
679
- return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.doCheckVariantData;
671
+ var _this$divaWebConfigDa22;
672
+ return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.doCheckVariantData;
680
673
  }
681
674
  }, {
682
675
  key: "setI18n",
@@ -769,50 +762,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
769
762
  }, {
770
763
  key: "getViewConfig",
771
764
  value: function getViewConfig() {
772
- var _this$divaWebConfigDa25;
773
- return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.viewConfig;
765
+ var _this$divaWebConfigDa23;
766
+ return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.viewConfig;
774
767
  }
775
768
  }, {
776
769
  key: "getEmailConfig",
777
770
  value: function getEmailConfig() {
778
- var _this$divaWebConfigDa26;
779
- return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.emailConfig;
771
+ var _this$divaWebConfigDa24;
772
+ return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.emailConfig;
780
773
  }
781
774
  }, {
782
775
  key: "getABTestCases",
783
776
  value: function getABTestCases() {
784
- var _this$divaWebConfigDa27, _this$divaWebConfigDa28;
785
- return (_this$divaWebConfigDa27 = (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.abTestCases) !== null && _this$divaWebConfigDa27 !== void 0 ? _this$divaWebConfigDa27 : [];
777
+ var _this$divaWebConfigDa25, _this$divaWebConfigDa26;
778
+ return (_this$divaWebConfigDa25 = (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.abTestCases) !== null && _this$divaWebConfigDa25 !== void 0 ? _this$divaWebConfigDa25 : [];
786
779
  }
787
780
  }, {
788
781
  key: "getBarrierConfig",
789
782
  value: function getBarrierConfig() {
790
- var _this$divaWebConfigDa29;
791
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.barrierConfig;
783
+ var _this$divaWebConfigDa27;
784
+ return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.barrierConfig;
792
785
  }
793
786
  }, {
794
787
  key: "getTemplateConfig",
795
788
  value: function getTemplateConfig() {
796
- var _this$divaWebConfigDa30;
797
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.templateConfig;
789
+ var _this$divaWebConfigDa28;
790
+ return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.templateConfig;
798
791
  }
799
792
  }, {
800
793
  key: "showDivaNr",
801
794
  value: function showDivaNr() {
802
- var _this$divaWebConfigDa31;
803
- return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.showDivaNr;
795
+ var _this$divaWebConfigDa29;
796
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.showDivaNr;
804
797
  }
805
798
  }, {
806
799
  key: "onErrorHandling",
807
800
  value: function onErrorHandling() {
808
- var _this$divaWebConfigDa32;
809
- return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.onErrorHandling;
801
+ var _this$divaWebConfigDa30;
802
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.onErrorHandling;
810
803
  }
811
804
  }, {
812
805
  key: "diva3DRenderingDefault",
813
806
  value: function diva3DRenderingDefault() {
814
- var _this$divaWebConfigDa33;
815
- return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.diva3DRenderingDefault;
807
+ var _this$divaWebConfigDa31;
808
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.diva3DRenderingDefault;
816
809
  }
817
810
  }, {
818
811
  key: "getJwt",
@@ -827,8 +820,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
827
820
  }, {
828
821
  key: "getUseMask",
829
822
  value: function getUseMask() {
830
- var _this$divaWebConfigDa34;
831
- return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.useMask;
823
+ var _this$divaWebConfigDa32;
824
+ return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.useMask;
832
825
  }
833
826
  }, {
834
827
  key: "apiUrl",
@@ -900,8 +893,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
900
893
  return '/v1/products/' + productId + '/list';
901
894
  }
902
895
  }, {
903
- key: "getProductBasketUrl",
904
- value: function getProductBasketUrl(key, value) {
896
+ key: "getProductByKeyValueUrl",
897
+ value: function getProductByKeyValueUrl(key, value) {
905
898
  return "/v1/products/basket?key=".concat(key, "&value=").concat(value);
906
899
  }
907
900
  }, {
@@ -1348,14 +1341,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1348
1341
  }, {
1349
1342
  key: "dontLoadAdditionalModelInfos",
1350
1343
  get: function get() {
1351
- var _this$divaWebConfigDa35;
1352
- return (_this$divaWebConfigDa35 = this.divaWebConfigData) === null || _this$divaWebConfigDa35 === void 0 ? void 0 : _this$divaWebConfigDa35.dontLoadAdditionalModelInfos;
1344
+ var _this$divaWebConfigDa33;
1345
+ return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadAdditionalModelInfos;
1353
1346
  }
1354
1347
  }, {
1355
1348
  key: "dontLoadCatalogEditorLiteMask",
1356
1349
  get: function get() {
1357
- var _this$divaWebConfigDa36;
1358
- return (_this$divaWebConfigDa36 = this.divaWebConfigData) === null || _this$divaWebConfigDa36 === void 0 ? void 0 : _this$divaWebConfigDa36.dontLoadCatalogEditorLiteMask;
1350
+ var _this$divaWebConfigDa34;
1351
+ return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.dontLoadCatalogEditorLiteMask;
1359
1352
  }
1360
1353
  }, {
1361
1354
  key: "OrganizationId",
@@ -1614,6 +1607,16 @@ var ArticleOptionData = /*#__PURE__*/function () {
1614
1607
  get: function get() {
1615
1608
  return this.opt.catalogOPT.contentItemId;
1616
1609
  }
1610
+ }, {
1611
+ key: "showSearchbar",
1612
+ get: function get() {
1613
+ return this.opt.catalogOPT.showSearchbar;
1614
+ }
1615
+ }, {
1616
+ key: "showFilter",
1617
+ get: function get() {
1618
+ return this.opt.catalogOPT.showFilter;
1619
+ }
1617
1620
  }, {
1618
1621
  key: "pdfUrl",
1619
1622
  get: function get() {
@@ -1771,6 +1774,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1771
1774
  get: function get() {
1772
1775
  return this.opv.codex;
1773
1776
  }
1777
+ }, {
1778
+ key: "isNotRelevant",
1779
+ get: function get() {
1780
+ return this.opv.catalogOPV.isNotRelevant;
1781
+ }
1774
1782
  }, {
1775
1783
  key: "vCodex",
1776
1784
  get: function get() {
@@ -1921,6 +1929,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1921
1929
  get: function get() {
1922
1930
  return this.opv.catalogOPV.contentItemId;
1923
1931
  }
1932
+ }, {
1933
+ key: "groupContentItemId",
1934
+ get: function get() {
1935
+ return this.opv.catalogOPV.groupContentItemId;
1936
+ }
1924
1937
  }, {
1925
1938
  key: "subArticleCodex",
1926
1939
  get: function get() {
@@ -16060,6 +16073,10 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16060
16073
  this.opv.onRule = prop.Value;
16061
16074
  } else if (prop.Codex === 'CONTENT_ITEM') {
16062
16075
  this.opv.contentItemId = prop.Value;
16076
+ } else if (prop.Codex === 'IS_NOT_RELEVANT') {
16077
+ this.opv.isNotRelevant = prop.Value;
16078
+ } else if (prop.Codex === 'GROUP_CONTENT_ITEM') {
16079
+ this.opv.groupContentItemId = prop.Value;
16063
16080
  } else if (prop.Codex === 'SET_BY_RULE') {
16064
16081
  this.opv.setByRule = prop.Value;
16065
16082
  } else {
@@ -16097,6 +16114,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16097
16114
  get: function get() {
16098
16115
  return this.opv.vCodex;
16099
16116
  }
16117
+ }, {
16118
+ key: "isNotRelevant",
16119
+ get: function get() {
16120
+ return this.opv.isNotRelevant;
16121
+ }
16100
16122
  }, {
16101
16123
  key: "name",
16102
16124
  get: function get() {
@@ -16230,6 +16252,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16230
16252
  get: function get() {
16231
16253
  return this.opv.contentItemId;
16232
16254
  }
16255
+ }, {
16256
+ key: "groupContentItemId",
16257
+ get: function get() {
16258
+ return this.opv.groupContentItemId;
16259
+ }
16233
16260
  }, {
16234
16261
  key: "metaData",
16235
16262
  get: function get() {
@@ -16467,6 +16494,8 @@ var CatalogArticleData = /*#__PURE__*/function () {
16467
16494
  this.catalogArticle.maxPlanningCount = Number(prop.Value);
16468
16495
  } else if (_key == 'CONTENT_ITEM') {
16469
16496
  this.catalogArticle.contentItemId = prop.Value;
16497
+ } else if (_key == 'GROUP_CONTENT_ITEM') {
16498
+ this.catalogArticle.groupContentItemId = prop.Value;
16470
16499
  } else if (_key == 'HAS3D') {
16471
16500
  this.catalogArticle.isVisualized = prop.Value;
16472
16501
  } else {
@@ -16517,6 +16546,11 @@ var CatalogArticleData = /*#__PURE__*/function () {
16517
16546
  get: function get() {
16518
16547
  return this.catalogArticle.contentItemId;
16519
16548
  }
16549
+ }, {
16550
+ key: "groupContentItemId",
16551
+ get: function get() {
16552
+ return this.catalogArticle.groupContentItemId;
16553
+ }
16520
16554
  }, {
16521
16555
  key: "articleCodex",
16522
16556
  get: function get() {
@@ -17111,7 +17145,8 @@ var CatalogArticleData = /*#__PURE__*/function () {
17111
17145
  isVisualized: catalogArticle.isVisualized,
17112
17146
  configStepKeys: [],
17113
17147
  metaData: catalogArticle.metaDataView,
17114
- contentItemId: catalogArticle.contentItemId
17148
+ contentItemId: catalogArticle.contentItemId,
17149
+ groupContentItemId: catalogArticle.groupContentItemId
17115
17150
  });
17116
17151
  }
17117
17152
  }
@@ -17847,6 +17882,12 @@ var OptionCatalogData = /*#__PURE__*/function () {
17847
17882
  case 'INFO_URL':
17848
17883
  this.opt.url = prop.Value;
17849
17884
  break;
17885
+ case 'SHOW_SEARCHBAR':
17886
+ this.opt.showSearchbar = prop.Value == '1';
17887
+ break;
17888
+ case 'SHOW_FILTER':
17889
+ this.opt.showFilter = prop.Value == '1';
17890
+ break;
17850
17891
  case 'INFO_PDF':
17851
17892
  this.opt.pdfUrl = prop.Value;
17852
17893
  break;
@@ -18047,6 +18088,16 @@ var OptionCatalogData = /*#__PURE__*/function () {
18047
18088
  get: function get() {
18048
18089
  return this.opt.url;
18049
18090
  }
18091
+ }, {
18092
+ key: "showSearchbar",
18093
+ get: function get() {
18094
+ return this.opt.showSearchbar;
18095
+ }
18096
+ }, {
18097
+ key: "showFilter",
18098
+ get: function get() {
18099
+ return this.opt.showFilter;
18100
+ }
18050
18101
  }, {
18051
18102
  key: "pdfUrl",
18052
18103
  get: function get() {
@@ -18143,7 +18194,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
18143
18194
  brandName: json.Brandname,
18144
18195
  mediaUrl: '',
18145
18196
  // https://retail.diva-portal.de/files/33/9680c4a3-fc60-4541-8738-4859d9b24e9d/";
18146
- imageBaseUrl: '',
18147
18197
  subFolder: json.SubFolder,
18148
18198
  longDescription: json.LongDescription,
18149
18199
  longDescription_locales: json.LongDescription_locales,
@@ -18218,9 +18268,12 @@ var DivaCatalogData = /*#__PURE__*/function () {
18218
18268
  //DP Logik
18219
18269
  reconfigAfterArticleDocked: false,
18220
18270
  ignoreLayerAVC: false,
18221
- // !! Obsolete - AVC auch docken, wenn auf demselben Layer LEA??
18271
+ //
18222
18272
  ignoreLayerAVOAVU: false,
18223
- // !! Obsolete - AVOAVU auch docken, wenn auf demselben Layer LEA??
18273
+ //
18274
+ ignoreLayerAVNAVS: false,
18275
+ //
18276
+
18224
18277
  dockAccOnAvoOnly: false,
18225
18278
  // ist bei Küssnacht dass Acc nicht an nach unten schauenden Dockingpoints angedockt werden können sondern immer nur oben drauf verplant werden können
18226
18279
  showAccOnDpOnly: false,
@@ -18345,9 +18398,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18345
18398
  key: "getMediaURL",
18346
18399
  value: function getMediaURL(subFolder) {
18347
18400
  var retval = '';
18348
- if (this.catalogData.imageBaseUrl != '') {
18349
- retval = this.catalogData.imageBaseUrl;
18350
- } else if (this.api.getBaseUrl().substring(0, 4) == 'http') {
18401
+ if (this.api.getBaseUrl().substring(0, 4) == 'http') {
18351
18402
  retval = this.api.getBaseUrl() + '/' + this.api.getServerId() + '/';
18352
18403
  }
18353
18404
  if (subFolder != '') retval += subFolder + '/';
@@ -18519,6 +18570,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18519
18570
  _this.catalogData.ignoreLayerAVC = item.Value == '1';
18520
18571
  } else if (item.Codex == 'IGNORELAYERAVOAVU') {
18521
18572
  _this.catalogData.ignoreLayerAVOAVU = item.Value == '1';
18573
+ } else if (item.Codex == 'IGNORELAYERAVNAVS') {
18574
+ _this.catalogData.ignoreLayerAVNAVS = item.Value == '1';
18522
18575
  } else if (item.Codex == 'DOCKACCONAVOONLY') {
18523
18576
  //Accessoires können nur aufwärts verplant werden. (Für Küssnacht)
18524
18577
  _this.catalogData.dockAccOnAvoOnly = item.Value == '1';
@@ -18803,6 +18856,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18803
18856
  groupName: groupTitle,
18804
18857
  metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
18805
18858
  contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
18859
+ groupContentItemId: this.catalogArticles[catPlanArticle.codex].groupContentItemId,
18806
18860
  partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
18807
18861
  };
18808
18862
  this.plannerPaletteViewInfo.catalogPlannerArticles.push(catPlanArtView);
@@ -18861,6 +18915,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18861
18915
  groupName: groupTitle,
18862
18916
  metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
18863
18917
  contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
18918
+ groupContentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
18864
18919
  partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
18865
18920
  };
18866
18921
  //nicht ausmultiplizierte Elemente
@@ -19080,6 +19135,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
19080
19135
  return {
19081
19136
  ignoreLayerAVC: this.catalogData.ignoreLayerAVC,
19082
19137
  ignoreLayerAVOAVU: this.catalogData.ignoreLayerAVOAVU,
19138
+ ignoreLayerAVNAVS: this.catalogData.ignoreLayerAVNAVS,
19083
19139
  showAccOnDpOnly: this.catalogData.showAccOnDpOnly,
19084
19140
  dockAccOnAvoOnly: this.catalogData.dockAccOnAvoOnly,
19085
19141
  hideAccessoriesInPlanner: this.catalogData.accessorieStepAsPlanner,
@@ -20024,7 +20080,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20024
20080
  }, {
20025
20081
  key: "isDisabled",
20026
20082
  get: function get() {
20027
- return this.articleOptionState.disabled || (this.valCodex == 'OPVNR' || this.valCodex == 'OPVNRR' || this.valCodex == 'OPVNR_0') && this.visibleCount == 1;
20083
+ var _this$val3;
20084
+ return this.articleOptionState.disabled || !!((_this$val3 = this.val) !== null && _this$val3 !== void 0 && _this$val3.isNotRelevant) && this.visibleCount == 1;
20028
20085
  },
20029
20086
  set: function set(isDisabled) {
20030
20087
  this.articleOptionState.disabled = isDisabled;
@@ -20032,7 +20089,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20032
20089
  }, {
20033
20090
  key: "isDoShow",
20034
20091
  get: function get() {
20035
- return this.articleOptionState.doShow && (this.valCodex != 'OPVNR' && this.valCodex != 'OPVNRR' && this.valCodex != 'OPVNR_0' || this.visibleCount > 1);
20092
+ var _this$val4;
20093
+ return this.articleOptionState.doShow && (!((_this$val4 = this.val) !== null && _this$val4 !== void 0 && _this$val4.isNotRelevant) || this.visibleCount > 1);
20036
20094
  },
20037
20095
  set: function set(doShow) {
20038
20096
  this.articleOptionState.doShow = doShow;
@@ -20076,14 +20134,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20076
20134
  }, {
20077
20135
  key: "priceId",
20078
20136
  get: function get() {
20079
- var _this$val$priceId, _this$val3;
20080
- return (_this$val$priceId = (_this$val3 = this.val) === null || _this$val3 === void 0 ? void 0 : _this$val3.priceId) !== null && _this$val$priceId !== void 0 ? _this$val$priceId : '';
20137
+ var _this$val$priceId, _this$val5;
20138
+ return (_this$val$priceId = (_this$val5 = this.val) === null || _this$val5 === void 0 ? void 0 : _this$val5.priceId) !== null && _this$val$priceId !== void 0 ? _this$val$priceId : '';
20081
20139
  }
20082
20140
  }, {
20083
20141
  key: "targetOption",
20084
20142
  get: function get() {
20085
- var _this$val4;
20086
- return (_this$val4 = this.val) === null || _this$val4 === void 0 ? void 0 : _this$val4.targetOption;
20143
+ var _this$val6;
20144
+ return (_this$val6 = this.val) === null || _this$val6 === void 0 ? void 0 : _this$val6.targetOption;
20087
20145
  }
20088
20146
  }, {
20089
20147
  key: "targetPPGPrefixes",
@@ -20100,14 +20158,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20100
20158
  }, {
20101
20159
  key: "quantity",
20102
20160
  get: function get() {
20103
- var _this$val$quantity, _this$val5;
20104
- return (_this$val$quantity = (_this$val5 = this.val) === null || _this$val5 === void 0 ? void 0 : _this$val5.quantity) !== null && _this$val$quantity !== void 0 ? _this$val$quantity : 1;
20161
+ var _this$val$quantity, _this$val7;
20162
+ return (_this$val$quantity = (_this$val7 = this.val) === null || _this$val7 === void 0 ? void 0 : _this$val7.quantity) !== null && _this$val$quantity !== void 0 ? _this$val$quantity : 1;
20105
20163
  }
20106
20164
  }, {
20107
20165
  key: "ocd",
20108
20166
  get: function get() {
20109
- var _this$val6;
20110
- return (_this$val6 = this.val) === null || _this$val6 === void 0 ? void 0 : _this$val6.ocd;
20167
+ var _this$val8;
20168
+ return (_this$val8 = this.val) === null || _this$val8 === void 0 ? void 0 : _this$val8.ocd;
20111
20169
  }
20112
20170
  }, {
20113
20171
  key: "optionOcd",
@@ -20117,8 +20175,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20117
20175
  }, {
20118
20176
  key: "value",
20119
20177
  get: function get() {
20120
- var _this$val7;
20121
- return (_this$val7 = this.val) === null || _this$val7 === void 0 ? void 0 : _this$val7.value;
20178
+ var _this$val9;
20179
+ return (_this$val9 = this.val) === null || _this$val9 === void 0 ? void 0 : _this$val9.value;
20122
20180
  }
20123
20181
  }, {
20124
20182
  key: "vCodex",
@@ -20146,8 +20204,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20146
20204
  get: function get() {
20147
20205
  if (this.articleOptionState.retailArticleNr) return this.articleOptionState.retailArticleNr;
20148
20206
  if (this.articleOptionState.option.articlePlaceholder) {
20149
- var _this$val8;
20150
- return (_this$val8 = this.val) === null || _this$val8 === void 0 ? void 0 : _this$val8.subRetailArticleNr;
20207
+ var _this$val10;
20208
+ return (_this$val10 = this.val) === null || _this$val10 === void 0 ? void 0 : _this$val10.subRetailArticleNr;
20151
20209
  }
20152
20210
  return undefined;
20153
20211
  },
@@ -20170,8 +20228,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20170
20228
  }, {
20171
20229
  key: "visibleInSummary",
20172
20230
  value: function visibleInSummary(aritcle) {
20173
- var _this$val9;
20174
- return !this.isInvisible && (this.selectionmode != 0 || (this.visibleCount > 1 || this.isFreeText) && aritcle.set.api.showSelectionModeZero()) && this.isDoShow && this.valCodex != 'OPVNR' && !this.isHiddenByDefaultValueForOptions(aritcle) && !((_this$val9 = this.val) !== null && _this$val9 !== void 0 && _this$val9.hideInSummary);
20231
+ var _this$val11, _this$val12;
20232
+ return !this.isInvisible && (this.selectionmode != 0 || (this.visibleCount > 1 || this.isFreeText) && aritcle.set.api.showSelectionModeZero()) && this.isDoShow && !((_this$val11 = this.val) !== null && _this$val11 !== void 0 && _this$val11.isNotRelevant) && !this.isHiddenByDefaultValueForOptions(aritcle) && !((_this$val12 = this.val) !== null && _this$val12 !== void 0 && _this$val12.hideInSummary);
20175
20233
  }
20176
20234
  }, {
20177
20235
  key: "isHiddenByDefaultValueForOptions",
@@ -20192,45 +20250,45 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20192
20250
  }, {
20193
20251
  key: "subArticleCodex",
20194
20252
  get: function get() {
20195
- var _this$val10;
20196
- return (_this$val10 = this.val) === null || _this$val10 === void 0 ? void 0 : _this$val10.subArticleCodex;
20253
+ var _this$val13;
20254
+ return (_this$val13 = this.val) === null || _this$val13 === void 0 ? void 0 : _this$val13.subArticleCodex;
20197
20255
  }
20198
20256
  }, {
20199
20257
  key: "subArticleName",
20200
20258
  get: function get() {
20201
- var _this$val11;
20202
- return (_this$val11 = this.val) === null || _this$val11 === void 0 ? void 0 : _this$val11.subArticleName;
20259
+ var _this$val14;
20260
+ return (_this$val14 = this.val) === null || _this$val14 === void 0 ? void 0 : _this$val14.subArticleName;
20203
20261
  }
20204
20262
  }, {
20205
20263
  key: "measureUnit",
20206
20264
  get: function get() {
20207
- var _this$val12;
20208
- return (_this$val12 = this.val) === null || _this$val12 === void 0 ? void 0 : _this$val12.measureUnit;
20265
+ var _this$val15;
20266
+ return (_this$val15 = this.val) === null || _this$val15 === void 0 ? void 0 : _this$val15.measureUnit;
20209
20267
  }
20210
20268
  }, {
20211
20269
  key: "priceUnit",
20212
20270
  get: function get() {
20213
- var _this$val$priceUnit, _this$val13, _this$val14, _this$val$parent;
20214
- var retval = (_this$val$priceUnit = (_this$val13 = this.val) === null || _this$val13 === void 0 ? void 0 : _this$val13.priceUnit) !== null && _this$val$priceUnit !== void 0 ? _this$val$priceUnit : (_this$val14 = this.val) !== null && _this$val14 !== void 0 && _this$val14.isParentOPVG ? (_this$val$parent = this.val.parent) === null || _this$val$parent === void 0 ? void 0 : _this$val$parent.priceUnit : undefined;
20271
+ var _this$val$priceUnit, _this$val16, _this$val17, _this$val$parent;
20272
+ var retval = (_this$val$priceUnit = (_this$val16 = this.val) === null || _this$val16 === void 0 ? void 0 : _this$val16.priceUnit) !== null && _this$val$priceUnit !== void 0 ? _this$val$priceUnit : (_this$val17 = this.val) !== null && _this$val17 !== void 0 && _this$val17.isParentOPVG ? (_this$val$parent = this.val.parent) === null || _this$val$parent === void 0 ? void 0 : _this$val$parent.priceUnit : undefined;
20215
20273
  return retval;
20216
20274
  }
20217
20275
  }, {
20218
20276
  key: "isPercentage",
20219
20277
  get: function get() {
20220
- var _this$val15;
20221
- return (_this$val15 = this.val) === null || _this$val15 === void 0 ? void 0 : _this$val15.isPercentage;
20278
+ var _this$val18;
20279
+ return (_this$val18 = this.val) === null || _this$val18 === void 0 ? void 0 : _this$val18.isPercentage;
20222
20280
  }
20223
20281
  }, {
20224
20282
  key: "replaceMainArtNr",
20225
20283
  get: function get() {
20226
- var _this$val16;
20227
- return (_this$val16 = this.val) === null || _this$val16 === void 0 ? void 0 : _this$val16.subarticleReplaceMainArticleNr;
20284
+ var _this$val19;
20285
+ return (_this$val19 = this.val) === null || _this$val19 === void 0 ? void 0 : _this$val19.subarticleReplaceMainArticleNr;
20228
20286
  }
20229
20287
  }, {
20230
20288
  key: "subArticleTypeNr",
20231
20289
  get: function get() {
20232
- var _this$val17;
20233
- return (_this$val17 = this.val) === null || _this$val17 === void 0 ? void 0 : _this$val17.subArticleTypeNr;
20290
+ var _this$val20;
20291
+ return (_this$val20 = this.val) === null || _this$val20 === void 0 ? void 0 : _this$val20.subArticleTypeNr;
20234
20292
  }
20235
20293
  }, {
20236
20294
  key: "isVisibleFreeText",
@@ -20256,14 +20314,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20256
20314
  }, {
20257
20315
  key: "isOnlyFreeText",
20258
20316
  get: function get() {
20259
- var _this$val18;
20260
- return ((_this$val18 = this.val) === null || _this$val18 === void 0 ? void 0 : _this$val18.isFreeText) && this.visibleCount == 1;
20317
+ var _this$val21;
20318
+ return ((_this$val21 = this.val) === null || _this$val21 === void 0 ? void 0 : _this$val21.isFreeText) && this.visibleCount == 1;
20261
20319
  }
20262
20320
  }, {
20263
20321
  key: "isFreeText",
20264
20322
  get: function get() {
20265
- var _this$val19;
20266
- return (_this$val19 = this.val) === null || _this$val19 === void 0 ? void 0 : _this$val19.isFreeText;
20323
+ var _this$val22;
20324
+ return (_this$val22 = this.val) === null || _this$val22 === void 0 ? void 0 : _this$val22.isFreeText;
20267
20325
  }
20268
20326
  }, {
20269
20327
  key: "freeText",
@@ -20308,8 +20366,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20308
20366
  }, {
20309
20367
  key: "warning",
20310
20368
  get: function get() {
20311
- var _this$val20;
20312
- if ((_this$val20 = this.val) !== null && _this$val20 !== void 0 && _this$val20.isFreeText) {
20369
+ var _this$val23;
20370
+ if ((_this$val23 = this.val) !== null && _this$val23 !== void 0 && _this$val23.isFreeText) {
20313
20371
  if (this.val.measureMaximum && Number(this.freeText) > Number(this.val.measureMaximum) || this.val.measureMinimum && Number(this.freeText) < Number(this.val.measureMinimum)) {
20314
20372
  return 'measureWarning';
20315
20373
  }
@@ -23578,7 +23636,7 @@ var DivaArticle = /*#__PURE__*/function () {
23578
23636
  break;
23579
23637
  }
23580
23638
  _context.next = 4;
23581
- return Promise.resolve().then(function () { return require('./ShelfPlanner-cf726af7.js'); });
23639
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-92d63e52.js'); });
23582
23640
  case 4:
23583
23641
  _yield$import = _context.sent;
23584
23642
  ShelfPlanner = _yield$import["default"];
@@ -24768,7 +24826,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24768
24826
  break;
24769
24827
  }
24770
24828
  _context6.next = 15;
24771
- return this.updateCfgValues(actArticle, valuesArray[i], {});
24829
+ return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
24772
24830
  case 15:
24773
24831
  newPartlistArticlesToLoad = _context6.sent;
24774
24832
  _actArticle$checkDefa = actArticle.checkDefaultGlobalOpt(valuesArray[i]), variantValues = _actArticle$checkDefa.variantValues, triggerUpdate = _actArticle$checkDefa.triggerUpdate;
@@ -24782,7 +24840,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24782
24840
  }
24783
24841
  _context6.t0 = partlistArticlesToLoad;
24784
24842
  _context6.next = 24;
24785
- return this.updateCfgValues(actArticle, valuesArray[i], {});
24843
+ return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
24786
24844
  case 24:
24787
24845
  _context6.t1 = _context6.sent;
24788
24846
  partlistArticlesToLoad = _context6.t0.concat.call(_context6.t0, _context6.t1);
@@ -24797,7 +24855,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24797
24855
  case 32:
24798
24856
  _context6.t2 = partlistArticlesToLoad;
24799
24857
  _context6.next = 35;
24800
- return this.updateCfgValues(actArticle, {}, {});
24858
+ return this.updateCfgValues(actArticle, {}, {}, undefined, undefined, from == 'calcVariant');
24801
24859
  case 35:
24802
24860
  _context6.t3 = _context6.sent;
24803
24861
  partlistArticlesToLoad = _context6.t2.concat.call(_context6.t2, _context6.t3);
@@ -24844,10 +24902,10 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24844
24902
  break;
24845
24903
  }
24846
24904
  _context6.next = 59;
24847
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
24905
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24848
24906
  case 59:
24849
24907
  _context6.next = 61;
24850
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
24908
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24851
24909
  case 61:
24852
24910
  _i++;
24853
24911
  _context6.next = 54;
@@ -25117,7 +25175,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25117
25175
  }, {
25118
25176
  key: "updateCfgValues",
25119
25177
  value: (function () {
25120
- var _updateCfgValues = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee10(article, newConfigValues, alreadyInitializedValues, dontCalcPrice, dontLoadPartlist) {
25178
+ var _updateCfgValues = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee10(article, newConfigValues, alreadyInitializedValues, dontCalcPrice, dontLoadPartlist, calcVariantPrice) {
25121
25179
  var maxPriceOfGroupCodex, setByFeatureVariantValues, key, partlistArticlesToLoad;
25122
25180
  return _regeneratorRuntime__default["default"].wrap(function _callee10$(_context10) {
25123
25181
  while (1) switch (_context10.prev = _context10.next) {
@@ -25153,19 +25211,23 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25153
25211
  }
25154
25212
 
25155
25213
  //await -> partlist berechnung und laden
25156
- _context10.next = 8;
25214
+ if (calcVariantPrice) {
25215
+ _context10.next = 9;
25216
+ break;
25217
+ }
25218
+ _context10.next = 9;
25157
25219
  return article.updateShelfPlannerState();
25158
- case 8:
25159
- if (dontCalcPrice) {
25160
- _context10.next = 11;
25220
+ case 9:
25221
+ if (!(!dontCalcPrice && !calcVariantPrice)) {
25222
+ _context10.next = 12;
25161
25223
  break;
25162
25224
  }
25163
- _context10.next = 11;
25225
+ _context10.next = 12;
25164
25226
  return this.updateLastElement(article);
25165
- case 11:
25166
- _context10.next = 13;
25227
+ case 12:
25228
+ _context10.next = 14;
25167
25229
  return this.evalAndLoadPartlistArticles(article, dontLoadPartlist, newConfigValues);
25168
- case 13:
25230
+ case 14:
25169
25231
  partlistArticlesToLoad = _context10.sent;
25170
25232
  // löscht seine eigene partlist article - optimierung schnittmenge nicht löschen und nur neu neu laden
25171
25233
 
@@ -25184,13 +25246,13 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25184
25246
  article.updateOPVImages();
25185
25247
  }
25186
25248
  return _context10.abrupt("return", partlistArticlesToLoad);
25187
- case 17:
25249
+ case 18:
25188
25250
  case "end":
25189
25251
  return _context10.stop();
25190
25252
  }
25191
25253
  }, _callee10, this);
25192
25254
  }));
25193
- function updateCfgValues(_x29, _x30, _x31, _x32, _x33) {
25255
+ function updateCfgValues(_x29, _x30, _x31, _x32, _x33, _x34) {
25194
25256
  return _updateCfgValues.apply(this, arguments);
25195
25257
  }
25196
25258
  return updateCfgValues;
@@ -25246,7 +25308,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25246
25308
  }
25247
25309
  }, _callee11, this);
25248
25310
  }));
25249
- function updateLastElement(_x34) {
25311
+ function updateLastElement(_x35) {
25250
25312
  return _updateLastElement.apply(this, arguments);
25251
25313
  }
25252
25314
  return updateLastElement;
@@ -25288,7 +25350,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25288
25350
  }
25289
25351
  }, _callee12);
25290
25352
  }));
25291
- function updateOption(_x35, _x36, _x37, _x38) {
25353
+ function updateOption(_x36, _x37, _x38, _x39) {
25292
25354
  return _updateOption.apply(this, arguments);
25293
25355
  }
25294
25356
  return updateOption;
@@ -25330,7 +25392,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25330
25392
  }
25331
25393
  }, _callee13, this);
25332
25394
  }));
25333
- function evalAndLoadPartlistArticles(_x39, _x40, _x41) {
25395
+ function evalAndLoadPartlistArticles(_x40, _x41, _x42) {
25334
25396
  return _evalAndLoadPartlistArticles.apply(this, arguments);
25335
25397
  }
25336
25398
  return evalAndLoadPartlistArticles;
@@ -25372,7 +25434,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25372
25434
  }
25373
25435
  }, _callee14, this);
25374
25436
  }));
25375
- function loadPartlistArticles(_x42, _x43, _x44) {
25437
+ function loadPartlistArticles(_x43, _x44, _x45) {
25376
25438
  return _loadPartlistArticles.apply(this, arguments);
25377
25439
  }
25378
25440
  return loadPartlistArticles;
@@ -25405,7 +25467,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25405
25467
  }
25406
25468
  }, _callee15, this);
25407
25469
  }));
25408
- function loadPartlistArticle(_x45, _x46, _x47) {
25470
+ function loadPartlistArticle(_x46, _x47, _x48) {
25409
25471
  return _loadPartlistArticle.apply(this, arguments);
25410
25472
  }
25411
25473
  return loadPartlistArticle;
@@ -25722,7 +25784,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25722
25784
  }
25723
25785
  }, _callee16);
25724
25786
  }));
25725
- function triggerShelfplannerVisibility(_x48, _x49) {
25787
+ function triggerShelfplannerVisibility(_x49, _x50) {
25726
25788
  return _triggerShelfplannerVisibility.apply(this, arguments);
25727
25789
  }
25728
25790
  return triggerShelfplannerVisibility;
@@ -25811,7 +25873,6 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25811
25873
  }
25812
25874
  ret = ret.concat(this.getOptiontreeAccessoiresArr(orderLineInitInfos.setId, article));
25813
25875
  }
25814
- this.checkForRoundingError(ret, Object.values(articles)[0].set);
25815
25876
  return ret;
25816
25877
  }
25817
25878
 
@@ -25826,11 +25887,9 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25826
25887
  var product = set === null || set === void 0 ? void 0 : set.priceForActHash();
25827
25888
  if (product !== null && product !== void 0 && product.percentage && product.percentage > ((_set$CatalogData$disc = set.CatalogData.discountPercentage) !== null && _set$CatalogData$disc !== void 0 ? _set$CatalogData$disc : 0)) {
25828
25889
  var setPrice = set.getSetPrice();
25829
- var olPrice = orderlines.filter(function (ol) {
25830
- return !ol.IsPartlistArticle;
25831
- }).reduce(function (sum, ol) {
25832
- var _ol$VKPrice$CalcPrice, _ol$VKPrice;
25833
- return sum + ((_ol$VKPrice$CalcPrice = (_ol$VKPrice = ol.VKPrice) === null || _ol$VKPrice === void 0 ? void 0 : _ol$VKPrice.CalcPrice) !== null && _ol$VKPrice$CalcPrice !== void 0 ? _ol$VKPrice$CalcPrice : 0);
25890
+ var olPrice = orderlines.reduce(function (sum, ol) {
25891
+ var _ol$VKPrice$Price, _ol$VKPrice;
25892
+ return sum + ((_ol$VKPrice$Price = (_ol$VKPrice = ol.VKPrice) === null || _ol$VKPrice === void 0 ? void 0 : _ol$VKPrice.Price) !== null && _ol$VKPrice$Price !== void 0 ? _ol$VKPrice$Price : 0) * ol.Quantity;
25834
25893
  }, 0);
25835
25894
  if (setPrice !== olPrice) {
25836
25895
  var _orderLine$ConfigPric;
@@ -25839,8 +25898,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25839
25898
  var _ol$VKPrice2;
25840
25899
  return (_ol$VKPrice2 = ol.VKPrice) === null || _ol$VKPrice2 === void 0 ? void 0 : _ol$VKPrice2.Price;
25841
25900
  });
25842
- orderLine.VKPrice.CalcPrice = orderlines[0].VKPrice.CalcPrice + roundingRest;
25843
- orderLine.VKPrice.Price = orderlines[0].VKPrice.Price + roundingRest;
25901
+ orderLine.VKPrice.CalcPrice = orderLine.VKPrice.CalcPrice + roundingRest;
25902
+ orderLine.VKPrice.Price = orderLine.VKPrice.Price + roundingRest;
25844
25903
  if ((_orderLine$ConfigPric = orderLine.ConfigPriceDatas) !== null && _orderLine$ConfigPric !== void 0 && _orderLine$ConfigPric.ConfigPrice) orderLine.ConfigPriceDatas.ConfigPrice = orderLine.ConfigPriceDatas.ConfigPrice + roundingRest;
25845
25904
  if (orderLine.IsPartlistArticle) {
25846
25905
  var _parent$VKPrice;
@@ -26021,7 +26080,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
26021
26080
  }
26022
26081
  }, _callee17, this);
26023
26082
  }));
26024
- function correctPartlistArticlesByGlobalRules(_x50, _x51, _x52, _x53) {
26083
+ function correctPartlistArticlesByGlobalRules(_x51, _x52, _x53, _x54) {
26025
26084
  return _correctPartlistArticlesByGlobalRules.apply(this, arguments);
26026
26085
  }
26027
26086
  return correctPartlistArticlesByGlobalRules;
@@ -26921,6 +26980,7 @@ var DivaSet = /*#__PURE__*/function () {
26921
26980
  _defineProperty__default["default"](this, "setId", void 0);
26922
26981
  _defineProperty__default["default"](this, "_isActSet", false);
26923
26982
  _defineProperty__default["default"](this, "setData", void 0);
26983
+ _defineProperty__default["default"](this, "_onlyCalcVariants", void 0);
26924
26984
  _defineProperty__default["default"](this, "divaArticles", void 0);
26925
26985
  //Schlüssel ist basketId
26926
26986
  _defineProperty__default["default"](this, "configSingleData", void 0);
@@ -28110,7 +28170,7 @@ var DivaSet = /*#__PURE__*/function () {
28110
28170
  break;
28111
28171
  }
28112
28172
  _context4.next = 3;
28113
- return Promise.resolve().then(function () { return require('./DoorPlanner-33fde902.js'); });
28173
+ return Promise.resolve().then(function () { return require('./DoorPlanner-aa2112d0.js'); });
28114
28174
  case 3:
28115
28175
  _yield$import = _context4.sent;
28116
28176
  DoorPlanner = _yield$import["default"];
@@ -28175,6 +28235,14 @@ var DivaSet = /*#__PURE__*/function () {
28175
28235
  get: function get() {
28176
28236
  return this.setState;
28177
28237
  }
28238
+ }, {
28239
+ key: "onlyCalcVariants",
28240
+ get: function get() {
28241
+ return this._onlyCalcVariants;
28242
+ },
28243
+ set: function set(val) {
28244
+ this._onlyCalcVariants = val;
28245
+ }
28178
28246
 
28179
28247
  /**
28180
28248
  *
@@ -28868,10 +28936,11 @@ var SummaryHandler = /*#__PURE__*/function () {
28868
28936
  value: function geTabGroupFormOptionsForSummary(article) {
28869
28937
  var tabGroups = [];
28870
28938
  for (var basketId in article.partlistArticles) {
28939
+ var _ops$val;
28871
28940
  var partlistArticle = article.partlistArticles[basketId];
28872
28941
  if (!partlistArticle.tabGroup) continue;
28873
28942
  var ops = article.getArticleOptionState('OPT' + partlistArticle.tabGroup);
28874
- if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && ops.valCodex != 'OPVNR' && ops !== null && ops !== void 0 && ops.optionTabGroup) {
28943
+ if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && !((_ops$val = ops.val) !== null && _ops$val !== void 0 && _ops$val.isNotRelevant) && ops !== null && ops !== void 0 && ops.optionTabGroup) {
28875
28944
  tabGroups.push({
28876
28945
  optionCodex: ops.optionCodex,
28877
28946
  tabGroup: ops.optionTabGroup
@@ -28881,8 +28950,9 @@ var SummaryHandler = /*#__PURE__*/function () {
28881
28950
 
28882
28951
  //old logic TODO: Delete in 2024
28883
28952
  if (Object.keys(tabGroups).length === 0) for (var _key12 in article.articleOptionStates) {
28953
+ var _ops$val2;
28884
28954
  var _ops = article.articleOptionStates[_key12];
28885
- if (!_ops.isInvisible && (_ops.selectionmode != 0 || (_ops.visibleCount > 1 || _ops.isFreeText) && article.set.api.showSelectionModeZero()) && _ops.isDoShow && _ops.valCodex != 'OPVNR') {
28955
+ if (!_ops.isInvisible && (_ops.selectionmode != 0 || (_ops.visibleCount > 1 || _ops.isFreeText) && article.set.api.showSelectionModeZero()) && !((_ops$val2 = _ops.val) !== null && _ops$val2 !== void 0 && _ops$val2.isNotRelevant) && _ops.isDoShow) {
28886
28956
  var tabGroup = _ops.option.addOptionToTabgroupInPartlistSummary;
28887
28957
  if (tabGroup) tabGroups.push({
28888
28958
  optionCodex: _key12,
@@ -28911,8 +28981,9 @@ var SummaryHandler = /*#__PURE__*/function () {
28911
28981
  var opss = [];
28912
28982
  if (article.getArticleOptionState('OPT' + optionCodexes[0])) {
28913
28983
  for (var i = 0; i < optionCodexes.length; i++) {
28984
+ var _optionState$val3;
28914
28985
  var optionState = article.getArticleOptionState('OPT' + optionCodexes[i]);
28915
- if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && optionState.valCodex != 'OPVNR') {
28986
+ if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && !((_optionState$val3 = optionState.val) !== null && _optionState$val3 !== void 0 && _optionState$val3.isNotRelevant)) {
28916
28987
  opss.push(optionState);
28917
28988
  }
28918
28989
  }
@@ -28921,8 +28992,9 @@ var SummaryHandler = /*#__PURE__*/function () {
28921
28992
 
28922
28993
  //old logic TODO: Delete in 2024
28923
28994
  for (var _key13 in article.articleOptionStates) {
28995
+ var _optionState$val4;
28924
28996
  var _optionState = article.articleOptionStates[_key13];
28925
- if (_optionState.option.addOptionToTabgroupInPartlistSummary == tabGroup && !_optionState.isInvisible && _optionState.isDoShow && _optionState.visibleCount > 0 && _optionState.valCodex != 'OPVNR') {
28997
+ if (_optionState.option.addOptionToTabgroupInPartlistSummary == tabGroup && !_optionState.isInvisible && _optionState.isDoShow && _optionState.visibleCount > 0 && !((_optionState$val4 = _optionState.val) !== null && _optionState$val4 !== void 0 && _optionState$val4.isNotRelevant)) {
28926
28998
  opss.push(_optionState);
28927
28999
  }
28928
29000
  }
@@ -29615,7 +29687,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29615
29687
  key: "getValidVariants",
29616
29688
  value: function () {
29617
29689
  var _getValidVariants = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee3(set, useCache) {
29618
- var allvariants, validVariants, i;
29690
+ var allvariants, validVariants, i, _set$onlyCalcVariants;
29619
29691
  return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context4) {
29620
29692
  while (1) switch (_context4.prev = _context4.next) {
29621
29693
  case 0:
@@ -29636,7 +29708,9 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29636
29708
  validVariants = [];
29637
29709
  for (i = 0; i < allvariants.length; i++) {
29638
29710
  if (!set.disabledVariants.includes(allvariants[i].id)) {
29639
- validVariants.push(allvariants[i]);
29711
+ if (!((_set$onlyCalcVariants = set.onlyCalcVariants) !== null && _set$onlyCalcVariants !== void 0 && _set$onlyCalcVariants.length) || set.onlyCalcVariants.includes(allvariants[i].id)) {
29712
+ validVariants.push(allvariants[i]);
29713
+ }
29640
29714
  }
29641
29715
  }
29642
29716
  return _context4.abrupt("return", validVariants);
@@ -30017,9 +30091,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30017
30091
  }
30018
30092
  }, {
30019
30093
  key: "addOptionsStateToConfigTree",
30020
- value: function addOptionsStateToConfigTree(set, configTree, articles, basketId, ops, optionCodex, selectionmode, addToTabGroup) {
30021
- var _set$ViewConfig3;
30022
- var article = articles[basketId];
30094
+ value: function addOptionsStateToConfigTree(set, configTree, articles, b, ops, optionCodex, selectionmode, addToTabGroup) {
30095
+ var _article$partListPare, _set$ViewConfig3;
30096
+ var article = articles[b];
30097
+ var basketId = article.partlistArticleVisibleInTree ? (_article$partListPare = article.partListParentArticle) === null || _article$partListPare === void 0 ? void 0 : _article$partListPare.basketId : article.basketId;
30023
30098
  var tabGroupCodex;
30024
30099
  var tabGroupTitel;
30025
30100
  if (ops.optionTabGroup) tabGroupCodex = ops.optionTabGroup;else tabGroupCodex = ops.optionName;
@@ -30305,7 +30380,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30305
30380
  optionStatesOfArticles = set.getOptionStatesOfArticles(set.getDivaArticles(true));
30306
30381
  articles = set.getDivaArticles(true);
30307
30382
  step = set.configTree.getAllByKey(configStepKey);
30308
- retValues = this.getConfigItems(configStepKey, optionStatesOfArticles, set.configTree);
30383
+ retValues = this.getConfigItems(configStepKey, articles, set.configTree);
30309
30384
  optionCodex = undefined;
30310
30385
  if (!(retValues && step != null)) {
30311
30386
  _context.next = 55;
@@ -30385,7 +30460,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30385
30460
  case 39:
30386
30461
  seomethingChanged = true;
30387
30462
  _context.next = 42;
30388
- return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true);
30463
+ return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true);
30389
30464
  case 42:
30390
30465
  _retVal2 = this.prepareConfigItemsForView(set, optionState, targetArticle.getArticleOptionState(ops.optionCodex).visibleOptionValues, retValues.constructionRules, [], step.configStep.targetArticles, (_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.optionCodex, opg.visibleOptionValues[_key].name, opg.visibleOptionValues[_key].codex, opg.optionCodex);
30391
30466
  configItems = configItems.concat(_retVal2.myConfigItemsForView);
@@ -30438,7 +30513,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30438
30513
  }()
30439
30514
  }, {
30440
30515
  key: "getConfigItems",
30441
- value: function getConfigItems(key, optionStatesOfArticles, configTree) {
30516
+ value: function getConfigItems(key, articles, configTree) {
30442
30517
  var step = configTree.getAllByKey(key);
30443
30518
  if (step != null) {
30444
30519
  var configItems = {},
@@ -30452,7 +30527,8 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30452
30527
  notTotallyMatichingOPVs = false,
30453
30528
  myOptionState = undefined;
30454
30529
  for (var i = 0; i < configStep.targetArticles.length; i++) {
30455
- var myOptions = optionStatesOfArticles[configStep.targetArticles[i]];
30530
+ var article = articles[configStep.targetArticles[i]];
30531
+ var myOptions = article.articleOptionStates;
30456
30532
  myOptionState = myOptions[configStep.option];
30457
30533
  if (myOptionState.option.hasOPG) isOPG = true;
30458
30534
  selectedVals = selectedVals.concat(myOptionState.getSelectedVals);
@@ -30485,6 +30561,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30485
30561
  if (visibleOptionValuesOfArticles.length > 0) {
30486
30562
  configItems = Object.assign({}, visibleOptionValuesOfArticles[0]);
30487
30563
  var _loop4 = function _loop4(_i2) {
30564
+ if (articles[configStep.targetArticles[_i2]].articleOptionStates[configStep.option].definedBySetFeatureFixed) return 1; // continue
30488
30565
  var keys = Object.keys(configItems);
30489
30566
  var newKeys = Object.keys(visibleOptionValuesOfArticles[_i2]);
30490
30567
  var opvsOnlyInA = keys.filter(function (x) {
@@ -30542,7 +30619,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30542
30619
  }
30543
30620
  };
30544
30621
  for (var _i2 = 1; _i2 < visibleOptionValuesOfArticles.length; _i2++) {
30545
- _loop4(_i2);
30622
+ if (_loop4(_i2)) continue;
30546
30623
  }
30547
30624
  }
30548
30625
  return {
@@ -30643,6 +30720,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30643
30720
  //if a opv has isFreeText = true and its selected a Textbox sould appear in the OptionValue
30644
30721
  //if the text is empty the opv is really selected
30645
30722
  contentItemId: item.contentItemId,
30723
+ groupContentItemId: item.groupContentItemId,
30646
30724
  idmOpgOptionCodex: idmOpgOptionCodex,
30647
30725
  idmOpgValCodex: idmOpgValCodex,
30648
30726
  isFreeText: item.isFreeText,
@@ -30741,6 +30819,34 @@ var DivaProductHandler = /*#__PURE__*/function () {
30741
30819
  }
30742
30820
  return updateProducts;
30743
30821
  }()
30822
+ }, {
30823
+ key: "getBestMatch",
30824
+ value: function getBestMatch(articles, products) {
30825
+ var OPTION_CODEX = 'KOPFTEIL';
30826
+ if (!articles) return;
30827
+ for (var key in articles) {
30828
+ var _article$VariantValue;
30829
+ var article = articles[key];
30830
+ var opv = (_article$VariantValue = article.VariantValues['OPT' + OPTION_CODEX]) === null || _article$VariantValue === void 0 ? void 0 : _article$VariantValue.replace('OPV', '');
30831
+ if (!products || !opv) continue;
30832
+ for (var i = 0; i < products.length; i++) {
30833
+ var _products$i$affiliate;
30834
+ 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)) {
30835
+ return products[i];
30836
+ }
30837
+ }
30838
+ }
30839
+ return undefined;
30840
+ }
30841
+ }, {
30842
+ key: "findOPVCodexInVariantValues",
30843
+ value: function findOPVCodexInVariantValues(product, opt, opv) {
30844
+ return product.articles.find(function (article) {
30845
+ return article.variantValues.find(function (variant) {
30846
+ return variant.OPT === opt && variant.OPV === opv;
30847
+ });
30848
+ });
30849
+ }
30744
30850
  }]);
30745
30851
  }();
30746
30852
  var productHandlerInstance = new DivaProductHandler();
@@ -31716,8 +31822,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
31716
31822
  key: "deleteElementFromSet",
31717
31823
  value: function () {
31718
31824
  var _deleteElementFromSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee14(set, article, autoCorrectAVL_AVR, deletionType, dontReload) {
31719
- var _deletedArticle$doorP, _set$CatalogData;
31720
- var setId, deletedArticle, articles, key, newSelectedElement, oldTransform, result, _set$getArticleByBask3, elementDeleted;
31825
+ var setId, allElementsToDelete, success, newSelectedElement, i, _deletedArticle$doorP, _set$CatalogData, deletedArticle, articles, key, oldTransform, result, _set$getArticleByBask3;
31721
31826
  return _regeneratorRuntime__default["default"].wrap(function _callee14$(_context16) {
31722
31827
  while (1) switch (_context16.prev = _context16.next) {
31723
31828
  case 0:
@@ -31732,35 +31837,44 @@ var DivaSetHandler = /*#__PURE__*/function () {
31732
31837
  setId: setId
31733
31838
  });
31734
31839
  case 3:
31840
+ allElementsToDelete = set.plannerHandler.getPlannerElementsInfluencedByDeletion(setId, article.elementId);
31841
+ success = false;
31842
+ newSelectedElement = undefined;
31843
+ i = 0;
31844
+ case 7:
31845
+ if (!(i < allElementsToDelete.length)) {
31846
+ _context16.next = 35;
31847
+ break;
31848
+ }
31849
+ article = set.getArticleByElementId(allElementsToDelete[i]);
31735
31850
  deletedArticle = article; //accessoires löschen
31736
31851
  articles = set.getAccessoiresOfBasketId(article.basketId);
31737
31852
  _context16.t0 = _regeneratorRuntime__default["default"].keys(articles);
31738
- case 6:
31853
+ case 12:
31739
31854
  if ((_context16.t1 = _context16.t0()).done) {
31740
- _context16.next = 12;
31855
+ _context16.next = 18;
31741
31856
  break;
31742
31857
  }
31743
31858
  key = _context16.t1.value;
31744
- _context16.next = 10;
31859
+ _context16.next = 16;
31745
31860
  return this.deleteElementFromSet(set, articles[key]);
31746
- case 10:
31747
- _context16.next = 6;
31861
+ case 16:
31862
+ _context16.next = 12;
31748
31863
  break;
31749
- case 12:
31750
- newSelectedElement = undefined;
31864
+ case 18:
31751
31865
  oldTransform = undefined;
31752
31866
  if (deletedArticle) deletedArticle.deleted = true;
31753
31867
  if (!(deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.hasCatalogPlannerArticle)) {
31754
- _context16.next = 21;
31868
+ _context16.next = 26;
31755
31869
  break;
31756
31870
  }
31757
- _context16.next = 18;
31871
+ _context16.next = 23;
31758
31872
  return set.plannerHandler.deletePlannerElement(setId, deletedArticle.elementId, autoCorrectAVL_AVR, deletionType);
31759
- case 18:
31873
+ case 23:
31760
31874
  result = _context16.sent;
31761
31875
  newSelectedElement = result.newElementToSelect;
31762
31876
  oldTransform = result.transform;
31763
- case 21:
31877
+ case 26:
31764
31878
  //falls ein Accessoire gelöscht wurde wird das Accessoire auch wo es beim Parent hinterlegt war auch gelöscht
31765
31879
  if (deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.relatedToBasketId) {
31766
31880
  (_set$getArticleByBask3 = set.getArticleByBasketId(deletedArticle.relatedToBasketId)) === null || _set$getArticleByBask3 === void 0 || _set$getArticleByBask3.removeAccessoire(deletedArticle.basketId);
@@ -31768,21 +31882,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
31768
31882
 
31769
31883
  //doorplanner resetted
31770
31884
  deletedArticle === null || deletedArticle === void 0 || (_deletedArticle$doorP = deletedArticle.doorPlanner) === null || _deletedArticle$doorP === void 0 || _deletedArticle$doorP.deleteElement(deletedArticle.basketId);
31771
- elementDeleted = set.deleteArticle(article.basketId);
31885
+ success = set.deleteArticle(article.basketId);
31772
31886
  if (!((set.CatalogData.bundleRules || set.CatalogData.reconfigAfterArticleDocked || set !== null && set !== void 0 && (_set$CatalogData = set.CatalogData) !== null && _set$CatalogData !== void 0 && _set$CatalogData.getOption('OPTLASTSTACKEDARTICLE')) && !dontReload)) {
31773
- _context16.next = 27;
31887
+ _context16.next = 32;
31774
31888
  break;
31775
31889
  }
31776
- _context16.next = 27;
31890
+ _context16.next = 32;
31777
31891
  return this.updateArticlesOptionStatesOfActSet(set, {}, []);
31778
- case 27:
31892
+ case 32:
31893
+ i++;
31894
+ _context16.next = 7;
31895
+ break;
31896
+ case 35:
31779
31897
  return _context16.abrupt("return", {
31780
- success: elementDeleted,
31898
+ success: success,
31781
31899
  selectElementId: newSelectedElement,
31782
31900
  setId: setId,
31783
31901
  oldTransform: oldTransform
31784
31902
  });
31785
- case 28:
31903
+ case 36:
31786
31904
  case "end":
31787
31905
  return _context16.stop();
31788
31906
  }
@@ -32472,11 +32590,28 @@ var DivaSetHandler = /*#__PURE__*/function () {
32472
32590
  targetArticles = targetArticles.concat(Object.keys((_articles$activeArtic = articles[activeArticles[0]]) === null || _articles$activeArtic === void 0 ? void 0 : _articles$activeArtic.accessoires));
32473
32591
  }
32474
32592
  var articleInfos = articleHandlerInstance.getArticleInfos(activeArticles, targetArticles, articles);
32593
+ //within an article and its partlistarticles cant be configured differently, so we group them here
32594
+ var groupedArticles = [];
32595
+ var _loop3 = function _loop3() {
32596
+ var article = articles[targetArticles[i]];
32597
+ var group = groupedArticles.find(function (group) {
32598
+ var _article$partListPare, _article$partListPare2;
32599
+ 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 : '');
32600
+ });
32601
+ if (group) {
32602
+ group.push(article.basketId);
32603
+ } else {
32604
+ groupedArticles.push([article.basketId]);
32605
+ }
32606
+ };
32607
+ for (var i = 0; i < targetArticles.length; i++) {
32608
+ _loop3();
32609
+ }
32475
32610
  var isConfigSingle = set.configSingle;
32476
32611
  var doShowConfigSingle = configStepKey ? set.configTree.doShowConfigSingle(configStepKey) : false;
32477
32612
  return {
32478
32613
  articleInfos: articleInfos,
32479
- doShowConfigSingle: doShowConfigSingle && targetArticles.length > 1,
32614
+ doShowConfigSingle: doShowConfigSingle && groupedArticles.length > 1,
32480
32615
  isConfigSingle: isConfigSingle,
32481
32616
  articleName: activeArticles[0] ? (_articles$activeArtic2 = articles[activeArticles[0]]) === null || _articles$activeArtic2 === void 0 || (_articles$activeArtic2 = _articles$activeArtic2.curProduct) === null || _articles$activeArtic2 === void 0 ? void 0 : _articles$activeArtic2.shortDescription : ''
32482
32617
  };
@@ -32565,7 +32700,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32565
32700
  value: (function () {
32566
32701
  var _variantsEvaluator = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee23(set, configItems, configStepKey, paletteType) {
32567
32702
  var _set$ViewConfig, _configItems$;
32568
- var opt, calcVariantsForPricePreview, previewType, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
32703
+ var opt, calcVariantsForPricePreview, previewType, _set$api$ReturnToFrom, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
32569
32704
  return _regeneratorRuntime__default["default"].wrap(function _callee23$(_context25) {
32570
32705
  while (1) switch (_context25.prev = _context25.next) {
32571
32706
  case 0:
@@ -32579,7 +32714,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32579
32714
  calcVariantsForPricePreview = false;
32580
32715
  previewType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.pricePreview;
32581
32716
  if (previewType) {
32582
- calcVariantsForPricePreview = !set.dontCalcPricePreviewDueToPerformanceIssues && !opt.showOnSeparatTabgroup && (!((_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length) || set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex));
32717
+ calcVariantsForPricePreview = !set.dontCalcPricePreviewDueToPerformanceIssues && !((_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR')) && !opt.showOnSeparatTabgroup && (!((_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length) || set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex));
32583
32718
  }
32584
32719
  if (set.PlannerMode === 'BoxPlanner') calcVariantsForPricePreview = false;
32585
32720
  if (paletteType == 'GAL' && ((_configItems$ = configItems[0]) === null || _configItems$ === void 0 ? void 0 : _configItems$.groupName) === undefined || paletteType == 'TEXTBOX' || paletteType == 'NUMBERBOX' || paletteType == 'RANGE') {
@@ -32860,7 +32995,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32860
32995
  key: "confirmOptionsInMetric",
32861
32996
  value: function confirmOptionsInMetric(set, options, actionEvent) {
32862
32997
  var variantItems = set.getVariantBasketData();
32863
- var _loop3 = function _loop3() {
32998
+ var _loop4 = function _loop4() {
32864
32999
  var opt = options[i].substring(3);
32865
33000
  var variantItem = variantItems.find(function (item) {
32866
33001
  return item.OPT == opt;
@@ -32879,7 +33014,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32879
33014
  }
32880
33015
  };
32881
33016
  for (var i = 0; i < options.length; i++) {
32882
- _loop3();
33017
+ _loop4();
32883
33018
  }
32884
33019
  }
32885
33020
  }, {
@@ -33006,7 +33141,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33006
33141
  //check first if there are options that require user input
33007
33142
  var articles = [];
33008
33143
  var options = [];
33009
- var _loop4 = function _loop4(key) {
33144
+ var _loop5 = function _loop5(key) {
33010
33145
  var _articleHandler$check = articleHandlerInstance.checkIfAllOptionsAreDefined(sets[key].getDivaArticles()),
33011
33146
  articleNames = _articleHandler$check.articleNames,
33012
33147
  newOptions = _articleHandler$check.options;
@@ -33018,7 +33153,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33018
33153
  articles = articles.concat(articleNames);
33019
33154
  };
33020
33155
  for (var key in sets) {
33021
- _loop4(key);
33156
+ _loop5(key);
33022
33157
  }
33023
33158
  if (articles.length == 0) {
33024
33159
  return true;
@@ -33045,7 +33180,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33045
33180
  var accessoires = [];
33046
33181
  var grids = [];
33047
33182
  var articles = [];
33048
- var _loop5 = function _loop5() {
33183
+ var _loop6 = function _loop6() {
33049
33184
  var _retVal$configStep$ta2;
33050
33185
  var article = set.getArticleByBasketId((_retVal$configStep$ta2 = retVal === null || retVal === void 0 ? void 0 : retVal.configStep.targetArticles[i]) !== null && _retVal$configStep$ta2 !== void 0 ? _retVal$configStep$ta2 : '');
33051
33186
  if (!article || !article.shelfPlanner) return 1; // continue
@@ -33054,18 +33189,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33054
33189
  a = _article$shelfPlanner2.accessoires,
33055
33190
  g = _article$shelfPlanner2.grids;
33056
33191
  grids = [].concat(_toConsumableArray__default["default"](grids), _toConsumableArray__default["default"](g));
33057
- var _loop6 = function _loop6(j) {
33192
+ var _loop7 = function _loop7(j) {
33058
33193
  if (!accessoires.find(function (acc) {
33059
33194
  return acc.articleCodex === a[j].articleCodex;
33060
33195
  })) accessoires.push(a[j]);
33061
33196
  };
33062
33197
  for (var j = 0; j < a.length; j++) {
33063
- _loop6(j);
33198
+ _loop7(j);
33064
33199
  }
33065
33200
  };
33066
33201
  for (var i = 0; i < ((_retVal$configStep$ta = retVal === null || retVal === void 0 ? void 0 : retVal.configStep.targetArticles) !== null && _retVal$configStep$ta !== void 0 ? _retVal$configStep$ta : []).length; i++) {
33067
33202
  var _retVal$configStep$ta;
33068
- if (_loop5()) continue;
33203
+ if (_loop6()) continue;
33069
33204
  }
33070
33205
  configTreeHandler.fillConfigStepKeysInAccessoireItem(articles, set.configTree, accessoires !== null && accessoires !== void 0 ? accessoires : []);
33071
33206
  return {
@@ -33202,7 +33337,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33202
33337
  _context30.t0 = _regeneratorRuntime__default["default"].keys(sets);
33203
33338
  case 7:
33204
33339
  if ((_context30.t1 = _context30.t0()).done) {
33205
- _context30.next = 29;
33340
+ _context30.next = 30;
33206
33341
  break;
33207
33342
  }
33208
33343
  key = _context30.t1.value;
@@ -33220,12 +33355,13 @@ var DivaSetHandler = /*#__PURE__*/function () {
33220
33355
  newOrderSet = _context30.sent;
33221
33356
  basketData.setIsPlanning(_set.SetType == 'PLANNING' ? '1' : '0');
33222
33357
  OrderLinesOfActSet = articleHandlerInstance.getOrderLinesOfArticles(articles, orderLineInitInfos, repairOnly, !!((_set$basketConfigVari = _set.basketConfigVariants) !== null && _set$basketConfigVari !== void 0 && _set$basketConfigVari.length));
33358
+ articleHandlerInstance.checkForRoundingError(OrderLinesOfActSet, _set);
33223
33359
  if (OrderLinesOfActSet.length) {
33224
- _context30.next = 21;
33360
+ _context30.next = 22;
33225
33361
  break;
33226
33362
  }
33227
33363
  return _context30.abrupt("continue", 7);
33228
- case 21:
33364
+ case 22:
33229
33365
  OrderLinesOfActSet = divaBasketHandler.divaWWSHandler.repairWWSFlags(articles, OrderLinesOfActSet);
33230
33366
  if (newOrderSet.SetImage == '' && (_OrderLinesOfActSet$ = OrderLinesOfActSet[0]) !== null && _OrderLinesOfActSet$ !== void 0 && _OrderLinesOfActSet$.Image && _set.PlannerMode == 'No') {
33231
33367
  newOrderSet.SetImage = OrderLinesOfActSet[0].Image.replace('_low', '');
@@ -33248,42 +33384,42 @@ var DivaSetHandler = /*#__PURE__*/function () {
33248
33384
  orderSets.push(newOrderSet);
33249
33385
  _context30.next = 7;
33250
33386
  break;
33251
- case 29:
33387
+ case 30:
33252
33388
  //fill diva3DProject for renderings & AR Converter
33253
33389
  basketData.Diva3DProject = DivaUtils__default["default"].encodeBase64(set === null || set === void 0 ? void 0 : set.plannerHandler.getProject3D());
33254
33390
  i = 0;
33255
- case 31:
33391
+ case 32:
33256
33392
  if (!(i < ((_basketData$OrderSets = basketData.OrderSets) === null || _basketData$OrderSets === void 0 ? void 0 : _basketData$OrderSets.length))) {
33257
- _context30.next = 46;
33393
+ _context30.next = 47;
33258
33394
  break;
33259
33395
  }
33260
33396
  oderSetsIsInActPlanning = false;
33261
33397
  setId = basketData.OrderSets[i].SetID;
33262
33398
  j = 0;
33263
- case 35:
33399
+ case 36:
33264
33400
  if (!(j < orderSets.length)) {
33265
- _context30.next = 42;
33401
+ _context30.next = 43;
33266
33402
  break;
33267
33403
  }
33268
33404
  if (!(orderSets[j].SetID == setId)) {
33269
- _context30.next = 39;
33405
+ _context30.next = 40;
33270
33406
  break;
33271
33407
  }
33272
33408
  oderSetsIsInActPlanning = true;
33273
- return _context30.abrupt("break", 42);
33274
- case 39:
33409
+ return _context30.abrupt("break", 43);
33410
+ case 40:
33275
33411
  j++;
33276
- _context30.next = 35;
33412
+ _context30.next = 36;
33277
33413
  break;
33278
- case 42:
33414
+ case 43:
33279
33415
  if (!oderSetsIsInActPlanning && !((_basketData$SetPlanne = basketData.SetPlannerInfos) !== null && _basketData$SetPlanne !== void 0 && _basketData$SetPlanne.InvolvedSetIds.includes(setId))) {
33280
33416
  orderSets.push(basketData.OrderSets[i]);
33281
33417
  }
33282
- case 43:
33418
+ case 44:
33283
33419
  i++;
33284
- _context30.next = 31;
33420
+ _context30.next = 32;
33285
33421
  break;
33286
- case 46:
33422
+ case 47:
33287
33423
  basketData.SetPlannerInfos = setPlanner ? this.getSetPlannerInfos(Object.keys(sets), orderSets) : undefined;
33288
33424
  if (repairOnly) {
33289
33425
  this.repairOrderSets(basketData, orderSets);
@@ -33291,7 +33427,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33291
33427
  basketData.setOrderSets(orderSets);
33292
33428
  }
33293
33429
  return _context30.abrupt("return", basketData);
33294
- case 49:
33430
+ case 50:
33295
33431
  case "end":
33296
33432
  return _context30.stop();
33297
33433
  }
@@ -33326,7 +33462,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33326
33462
  }, {
33327
33463
  key: "repairOrderSets",
33328
33464
  value: function repairOrderSets(basketData, orerSets) {
33329
- var _loop7 = function _loop7() {
33465
+ var _loop8 = function _loop8() {
33330
33466
  var actOrderSet = orerSets[i];
33331
33467
  var setId = actOrderSet.SetID;
33332
33468
  var origOrderSet = basketData.OrderSets.find(function (set) {
@@ -33364,7 +33500,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33364
33500
  }
33365
33501
  };
33366
33502
  for (var i = 0; i < orerSets.length; i++) {
33367
- _loop7();
33503
+ _loop8();
33368
33504
  }
33369
33505
  }
33370
33506
  /**************************SpeicherRoutinen*************************************/
@@ -34069,7 +34205,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34069
34205
  key: "initProductId",
34070
34206
  value: function () {
34071
34207
  var _initProductId = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(api, productId) {
34072
- var result;
34208
+ var result, successful;
34073
34209
  return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
34074
34210
  while (1) switch (_context2.prev = _context2.next) {
34075
34211
  case 0:
@@ -34081,10 +34217,17 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34081
34217
  _context2.next = 6;
34082
34218
  return this.initBasket(api, result.divaNr, {
34083
34219
  basket: result.configuration
34084
- }, false);
34220
+ }, false, productId);
34085
34221
  case 6:
34086
- return _context2.abrupt("return", _context2.sent);
34087
- case 7:
34222
+ successful = _context2.sent;
34223
+ if (!successful) {
34224
+ _context2.next = 9;
34225
+ break;
34226
+ }
34227
+ return _context2.abrupt("return", result);
34228
+ case 9:
34229
+ return _context2.abrupt("return", false);
34230
+ case 10:
34088
34231
  case "end":
34089
34232
  return _context2.stop();
34090
34233
  }
@@ -34431,7 +34574,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34431
34574
  case 0:
34432
34575
  _context8.prev = 0;
34433
34576
  _context8.next = 3;
34434
- return api.getDataCache(api.getProductBasketUrl(key, productId), undefined, undefined, 'catalog', 'POST', {
34577
+ return api.getDataCache(api.getProductByKeyValueUrl(key, productId), undefined, undefined, 'catalog', 'POST', {
34435
34578
  fields: fields !== null && fields !== void 0 && fields.length ? fields : undefined
34436
34579
  });
34437
34580
  case 3:
@@ -34652,26 +34795,39 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34652
34795
  var _ops$ocd, _ops$valCodex;
34653
34796
  var ops = article.articleOptionStates[key];
34654
34797
  if (ops.option.sendToSAP && ops.val && ops.isDoShow && (!ops.isFreeText || !!ops.freeText) && !((_ops$ocd = ops.ocd) !== null && _ops$ocd !== void 0 && _ops$ocd.startsWith('OPVOPV_NICHT_RELEVANT')) && !((_ops$valCodex = ops.valCodex) !== null && _ops$valCodex !== void 0 && _ops$valCodex.startsWith('OPVOPV_NICHT_RELEVANT'))) {
34655
- var _ops$optionOcd;
34656
- sendToSap.push({
34657
- ID: sapCount++,
34658
- SAP_AUSP_ATNAM: ops.option.sendToSAP,
34659
- SAP_AUSP_ATWRT: ops.val.name,
34660
- opt: (_ops$optionOcd = ops.optionOcd) !== null && _ops$optionOcd !== void 0 ? _ops$optionOcd : ops.optionCodex
34661
- });
34798
+ var _ops$multiSelects;
34799
+ if (ops.isMultiselect && (_ops$multiSelects = ops.multiSelects) !== null && _ops$multiSelects !== void 0 && _ops$multiSelects.length) {
34800
+ for (var i = 0; i < ops.multiSelects.length; i++) {
34801
+ var _ops$optionOcd;
34802
+ sendToSap.push({
34803
+ ID: sapCount++,
34804
+ SAP_AUSP_ATNAM: ops.option.sendToSAP,
34805
+ SAP_AUSP_ATWRT: ops.multiSelects[i].name,
34806
+ opt: (_ops$optionOcd = ops.optionOcd) !== null && _ops$optionOcd !== void 0 ? _ops$optionOcd : ops.optionCodex
34807
+ });
34808
+ }
34809
+ } else {
34810
+ var _ops$optionOcd2;
34811
+ sendToSap.push({
34812
+ ID: sapCount++,
34813
+ SAP_AUSP_ATNAM: ops.option.sendToSAP,
34814
+ SAP_AUSP_ATWRT: ops.val.name,
34815
+ opt: (_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.optionCodex
34816
+ });
34817
+ }
34662
34818
  }
34663
34819
  }
34664
34820
  var _loop2 = function _loop2() {
34665
- var _opt$codex, _ops$optionOcd2, _ops$multiSelects;
34666
- var _article$parentOption = article.parentOptionCodex(options[i]),
34821
+ var _opt$codex, _ops$optionOcd3, _ops$multiSelects2;
34822
+ var _article$parentOption = article.parentOptionCodex(options[_i2]),
34667
34823
  codex = _article$parentOption.optionCodex,
34668
34824
  partenOptionCodex = _article$parentOption.partenOptionCodex;
34669
34825
  var _article$checkOptionA = article.checkOptionAndOptionValue(codex, '', partenOptionCodex),
34670
34826
  opt = _article$checkOptionA.opt;
34671
34827
  var ops = article.getArticleOptionState((_opt$codex = opt.codex) !== null && _opt$codex !== void 0 ? _opt$codex : codex);
34672
34828
  if (!(ops !== null && ops !== void 0 && ops.val)) return 1; // continue
34673
- var optionCodex = (ops.option.parentOptionCodex ? ops.option.parentOptionCodex + '.' : '') + ((_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.option.codex);
34674
- changedValues[optionCodex] = ((_ops$multiSelects = ops.multiSelects) !== null && _ops$multiSelects !== void 0 && _ops$multiSelects.length ? ops.multiselectSorted : [ops.val]).map(function (val) {
34829
+ var optionCodex = (ops.option.parentOptionCodex ? ops.option.parentOptionCodex + '.' : '') + ((_ops$optionOcd3 = ops.optionOcd) !== null && _ops$optionOcd3 !== void 0 ? _ops$optionOcd3 : ops.option.codex);
34830
+ changedValues[optionCodex] = ((_ops$multiSelects2 = ops.multiSelects) !== null && _ops$multiSelects2 !== void 0 && _ops$multiSelects2.length ? ops.multiselectSorted : [ops.val]).map(function (val) {
34675
34831
  var _val$ocd, _ops$freeTextLang3, _ops$freeTextLang4, _ops$option$ocd, _ops$val, _ops$val2;
34676
34832
  var attributeValue = (_val$ocd = val.ocd) !== null && _val$ocd !== void 0 ? _val$ocd : val.codex;
34677
34833
  if (ops.isFreeText) {
@@ -34722,7 +34878,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34722
34878
  };
34723
34879
  });
34724
34880
  };
34725
- for (var i = 0; i < options.length; i++) {
34881
+ for (var _i2 = 0; _i2 < options.length; _i2++) {
34726
34882
  if (_loop2()) continue;
34727
34883
  }
34728
34884
  var variantValues = article.VariantValuesParentOption;
@@ -34751,7 +34907,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34751
34907
  break;
34752
34908
  case 3:
34753
34909
  _context12.next = 5;
34754
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-3ab783ab.js'); });
34910
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-6a9426b7.js'); });
34755
34911
  case 5:
34756
34912
  _yield$import = _context12.sent;
34757
34913
  PfisterWWSHandler = _yield$import["default"];
@@ -34759,7 +34915,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34759
34915
  return _context12.abrupt("break", 27);
34760
34916
  case 9:
34761
34917
  _context12.next = 11;
34762
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-cf967a4d.js'); });
34918
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-30f8e243.js'); });
34763
34919
  case 11:
34764
34920
  _yield$import2 = _context12.sent;
34765
34921
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34767,7 +34923,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34767
34923
  return _context12.abrupt("break", 27);
34768
34924
  case 15:
34769
34925
  _context12.next = 17;
34770
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-88cac4bb.js'); });
34926
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-8777b207.js'); });
34771
34927
  case 17:
34772
34928
  _yield$import3 = _context12.sent;
34773
34929
  SeriousWWSHandler = _yield$import3["default"];
@@ -34775,7 +34931,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34775
34931
  return _context12.abrupt("break", 27);
34776
34932
  case 21:
34777
34933
  _context12.next = 23;
34778
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-26ce5152.js'); });
34934
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-ffc29053.js'); });
34779
34935
  case 23:
34780
34936
  _yield$import4 = _context12.sent;
34781
34937
  StandardWWSHandler = _yield$import4["default"];
@@ -36165,7 +36321,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36165
36321
  while (1) switch (_context3.prev = _context3.next) {
36166
36322
  case 0:
36167
36323
  _context3.next = 2;
36168
- return Promise.resolve().then(function () { return require('./Host3DSignalR-0a901365.js'); });
36324
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-c0bbd863.js'); });
36169
36325
  case 2:
36170
36326
  _yield$import = _context3.sent;
36171
36327
  Host3DSignalR = _yield$import["default"];
@@ -37060,14 +37216,12 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
37060
37216
  _classCallCheck__default["default"](this, DivaMediaServiceHandler);
37061
37217
  _defineProperty__default["default"](this, "organizationId", void 0);
37062
37218
  _defineProperty__default["default"](this, "mediaServiceUrl", void 0);
37063
- _defineProperty__default["default"](this, "mediaServiceApiKey", void 0);
37064
37219
  _defineProperty__default["default"](this, "jwt", void 0);
37065
37220
  _defineProperty__default["default"](this, "POST_saveTmp2PermanentPostfix", '/saveTmp2Permanent');
37066
37221
  _defineProperty__default["default"](this, "GET_MediaItemrefs", '/v1/mediaitems/refs?limit=20&skip=0&filter=');
37067
37222
  _defineProperty__default["default"](this, "POST_mediaItem", '/v1/mediaitems?ref=true');
37068
37223
  this.organizationId = '';
37069
37224
  this.mediaServiceUrl = '';
37070
- this.mediaServiceApiKey = '';
37071
37225
  }
37072
37226
  return _createClass__default["default"](DivaMediaServiceHandler, [{
37073
37227
  key: "setOrganizationId",
@@ -37079,11 +37233,6 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
37079
37233
  value: function setMediaServiceUrl(mediaServiceUrl) {
37080
37234
  this.mediaServiceUrl = mediaServiceUrl;
37081
37235
  }
37082
- }, {
37083
- key: "setMediaServiceApiKey",
37084
- value: function setMediaServiceApiKey(mediaServiceApiKey) {
37085
- this.mediaServiceApiKey = mediaServiceApiKey;
37086
- }
37087
37236
  }, {
37088
37237
  key: "setJwt",
37089
37238
  value: function setJwt(jwt) {
@@ -37140,7 +37289,7 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
37140
37289
  method: 'POST',
37141
37290
  body: data,
37142
37291
  headers: {
37143
- 'X-API-KEY': this.mediaServiceApiKey
37292
+ Authorization: 'Bearer ' + this.jwt
37144
37293
  }
37145
37294
  });
37146
37295
  case 11:
@@ -37511,7 +37660,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37511
37660
  key: "initPlanner",
37512
37661
  value: (function () {
37513
37662
  var _initPlanner = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(initSetState, plannerHandlerFunctions) {
37514
- var renderGroup, diva3dServerUrl, divaMediaServiceUrl, mediaServiceApiKey, _initSetState$api$web, result;
37663
+ var renderGroup, diva3dServerUrl, divaMediaServiceUrl, _initSetState$api$web, result;
37515
37664
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
37516
37665
  while (1) switch (_context.prev = _context.next) {
37517
37666
  case 0:
@@ -37519,8 +37668,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37519
37668
  renderGroup = initSetState.api.get3DRenderGroup();
37520
37669
  this.plannerHandlerFunctions = plannerHandlerFunctions;
37521
37670
  diva3dServerUrl = initSetState.api.get3DServerUrl();
37522
- divaMediaServiceUrl = initSetState.api.getDivaMediaServiceUrl();
37523
- mediaServiceApiKey = initSetState.api.getDivaMediaServiceApiKey(); //renderGroup = 'LeaTest';
37671
+ divaMediaServiceUrl = initSetState.api.getDivaMediaServiceUrl(); // renderGroup = 'LeaTest';
37524
37672
  //diva3dServerUrl = "https://test-einkauf-onboarding.pfister.ch/diva3d/diva3dhost2/";
37525
37673
  // diva3dServerUrl = "https://diva3dhost.diva-portal.com/diva3d/diva3dhost2/";
37526
37674
  //diva3dServerUrl = 'https://localhost:44315/';
@@ -37530,7 +37678,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37530
37678
  //divaMediaServiceUrl = 'https://api-test.diva-portal.com/media/';
37531
37679
  //divaMediaServiceUrl = 'http://localhost:3000';
37532
37680
  if (!(!initSetState.onlyRunLogic && !initSetState.no3DConnection)) {
37533
- _context.next = 14;
37681
+ _context.next = 13;
37534
37682
  break;
37535
37683
  }
37536
37684
  this.handler3D.initializeCallbackFunctions({
@@ -37549,24 +37697,23 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37549
37697
  arViewerUrl: (_initSetState$api$web = initSetState.api.webConfig) === null || _initSetState$api$web === void 0 ? void 0 : _initSetState$api$web.arViewerUrl
37550
37698
  });
37551
37699
  if (!(!this.handler3D.checkConnectionInitialized() || result.renderGroupChanged || result.diva3dServerUrlChanged)) {
37552
- _context.next = 13;
37700
+ _context.next = 12;
37553
37701
  break;
37554
37702
  }
37555
- _context.next = 13;
37703
+ _context.next = 12;
37556
37704
  return this.handler3D.initializeConnection();
37557
- case 13:
37705
+ case 12:
37558
37706
  if (this.divaNr != initSetState.divaNr) {
37559
37707
  this.divaNr = initSetState.divaNr;
37560
37708
  this.handler3D.joinDivaNr(this.divaNr);
37561
37709
  }
37562
- case 14:
37710
+ case 13:
37563
37711
  mediaServiceHandler.setMediaServiceUrl(divaMediaServiceUrl);
37564
- mediaServiceHandler.setMediaServiceApiKey(mediaServiceApiKey);
37565
37712
  mediaServiceHandler.setOrganizationId(initSetState.organizationId);
37566
37713
  mediaServiceHandler.setJwt(initSetState.api.getJwt());
37567
37714
  this.handler3D.setOrigConfigurationCallback(this.plannerHandlerFunctions.getOrigConfiguration);
37568
37715
  DivaUtils__default["default"].endSpanOfApm('DivaPlannerHandler initPlanner');
37569
- case 20:
37716
+ case 18:
37570
37717
  case "end":
37571
37718
  return _context.stop();
37572
37719
  }
@@ -37717,7 +37864,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37717
37864
  break;
37718
37865
  case 8:
37719
37866
  _context4.next = 10;
37720
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-924415b0.js'); });
37867
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-a22fbb23.js'); });
37721
37868
  case 10:
37722
37869
  _yield$import = _context4.sent;
37723
37870
  DivaStandardPlanner = _yield$import["default"];
@@ -37728,7 +37875,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37728
37875
  return _context4.abrupt("break", 21);
37729
37876
  case 15:
37730
37877
  _context4.next = 17;
37731
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-ed22c1dd.js'); });
37878
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-06c887f9.js'); });
37732
37879
  case 17:
37733
37880
  _yield$import2 = _context4.sent;
37734
37881
  DivaBoxPlanner = _yield$import2["default"];
@@ -38344,6 +38491,20 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38344
38491
  return this.plannerList.get(setId).getPlannerElementsInfluencedByCopy(elementId, copyInfo);
38345
38492
  }
38346
38493
 
38494
+ /**
38495
+ * This function gets all Elements that are deleted when deleting one element.
38496
+ * @param setId
38497
+ * @param elementId
38498
+ */
38499
+ }, {
38500
+ key: "getPlannerElementsInfluencedByDeletion",
38501
+ value: function getPlannerElementsInfluencedByDeletion(setId, elementId) {
38502
+ if (!this.plannerList.has(setId)) {
38503
+ return [];
38504
+ }
38505
+ return this.plannerList.get(setId).getPlannerElementsInfluencedByDeletion(elementId);
38506
+ }
38507
+
38347
38508
  /**
38348
38509
  * This function is used to copy an element in the planner
38349
38510
  * @param setId
@@ -40405,76 +40566,90 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40405
40566
  key: "saveToBasketWrapper",
40406
40567
  value: function () {
40407
40568
  var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee25(event, repairOnly, force) {
40408
- var _this$actions25,
40409
- _this$actions25$toggl,
40410
- _this$actions26,
40569
+ var _this$actions26,
40411
40570
  _this$actions26$toggl,
40571
+ _this$actions27,
40572
+ _this$actions27$toggl,
40412
40573
  _this2 = this,
40413
- _this$actions30,
40574
+ _this$actions31,
40414
40575
  _this$i18n14;
40415
- var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, result, _this$actions27, _this$i18n8, _this$i18n9, _this$actions28, _this$i18n10, _this$i18n11, _this$actions29, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40576
+ var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions25, result, _this$actions28, _this$i18n8, _this$i18n9, _this$actions29, _this$i18n10, _this$i18n11, _this$actions30, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40416
40577
  return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
40417
40578
  while (1) switch (_context25.prev = _context25.next) {
40418
40579
  case 0:
40419
40580
  returnTo = this.getReturnTo(event);
40420
- finalEvent = event;
40581
+ finalEvent = {
40582
+ event: event,
40583
+ saveBasket: true
40584
+ };
40421
40585
  if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
40422
- _context25.next = 14;
40586
+ _context25.next = 21;
40423
40587
  break;
40424
40588
  }
40425
40589
  product = undefined;
40426
40590
  if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
40427
- _context25.next = 8;
40591
+ _context25.next = 10;
40428
40592
  break;
40429
40593
  }
40430
- _context25.next = 7;
40431
- return this.api.getDataCache(this.api.getCatalogProductUrl(this.actSet().getCatalogCodex()), undefined, undefined, 'catalog');
40432
- case 7:
40433
- _context25.sent;
40594
+ url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
40595
+ _context25.next = 8;
40596
+ return this.api.getDataCache(url, url, undefined, 'catalog');
40434
40597
  case 8:
40435
- _context25.next = 10;
40436
- return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
40598
+ _result = _context25.sent;
40599
+ product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
40437
40600
  case 10:
40601
+ _context25.next = 12;
40602
+ return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
40603
+ case 12:
40438
40604
  finalEvent = _context25.sent;
40439
40605
  if (finalEvent) {
40440
- _context25.next = 13;
40606
+ _context25.next = 17;
40441
40607
  break;
40442
40608
  }
40443
40609
  return _context25.abrupt("return", 'canceled');
40444
- case 13:
40445
- returnTo = finalEvent == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40446
- case 14:
40447
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || (_this$actions25$toggl = _this$actions25.toggleLoading) === null || _this$actions25$toggl === void 0 || _this$actions25$toggl.call(_this$actions25, 'Planner_Saving', false, true);
40448
- _context25.next = 17;
40449
- return this.saveToBasket(finalEvent, repairOnly, force);
40450
40610
  case 17:
40611
+ if (!(!finalEvent.saveBasket && finalEvent.event)) {
40612
+ _context25.next = 20;
40613
+ break;
40614
+ }
40615
+ (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40616
+ type: finalEvent.event
40617
+ });
40618
+ return _context25.abrupt("return", 'canceled');
40619
+ case 20:
40620
+ returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40621
+ case 21:
40622
+ (_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);
40623
+ _context25.next = 24;
40624
+ return this.saveToBasket(finalEvent.event, repairOnly, force);
40625
+ case 24:
40451
40626
  result = _context25.sent;
40452
- (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || (_this$actions26$toggl = _this$actions26.toggleLoading) === null || _this$actions26$toggl === void 0 || _this$actions26$toggl.call(_this$actions26, 'Planner_Saving', false, false);
40627
+ (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, false);
40453
40628
  if (!(result === 'canceled')) {
40454
- _context25.next = 23;
40629
+ _context25.next = 30;
40455
40630
  break;
40456
40631
  }
40457
40632
  LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
40458
- (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || _this$actions27.openModal({
40633
+ (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40459
40634
  text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
40460
40635
  accept: true
40461
40636
  });
40462
40637
  return _context25.abrupt("return", result);
40463
- case 23:
40638
+ case 30:
40464
40639
  _context25.t0 = returnTo;
40465
- _context25.next = _context25.t0 === 'OPEN_PDF' ? 26 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 28 : 29;
40640
+ _context25.next = _context25.t0 === 'OPEN_PDF' ? 33 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : 36;
40466
40641
  break;
40467
- case 26:
40642
+ case 33:
40468
40643
  if (!this.getBasket().PDFDocumentURL) {
40469
40644
  LOG$1.error(new DivaUtils.DivaError('PDF url is missing in basket', {
40470
40645
  code: 'WC_0010'
40471
40646
  }));
40472
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40647
+ (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40473
40648
  text: ((_this$i18n10 = this.i18n()) === null || _this$i18n10 === void 0 ? void 0 : _this$i18n10.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n11 = this.i18n()) === null || _this$i18n11 === void 0 ? void 0 : _this$i18n11.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
40474
40649
  accept: true
40475
40650
  });
40476
40651
  } else {
40477
- (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40652
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40478
40653
  text: (_this$i18n12 = this.i18n()) === null || _this$i18n12 === void 0 ? void 0 : _this$i18n12.t(this.divaBasketHandler.actBasket.Status === 'ORDER' ? 'modal.open_order_pdf_now' : 'modal.open_leaflet_pdf_now'),
40479
40654
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
40480
40655
  callback: function callback() {
@@ -40482,22 +40657,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40482
40657
  }
40483
40658
  });
40484
40659
  }
40485
- return _context25.abrupt("break", 29);
40486
- case 28:
40487
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40660
+ return _context25.abrupt("break", 36);
40661
+ case 35:
40662
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40488
40663
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
40489
40664
  accept: true
40490
40665
  });
40491
- case 29:
40666
+ case 36:
40492
40667
  if (!(result == 'noArticleToSave')) {
40493
- _context25.next = 32;
40668
+ _context25.next = 39;
40494
40669
  break;
40495
40670
  }
40496
40671
  (_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
40497
40672
  return _context25.abrupt("return", 'canceled');
40498
- case 32:
40673
+ case 39:
40499
40674
  return _context25.abrupt("return", result);
40500
- case 33:
40675
+ case 40:
40501
40676
  case "end":
40502
40677
  return _context25.stop();
40503
40678
  }
@@ -40512,7 +40687,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40512
40687
  key: "saveToBasket",
40513
40688
  value: function () {
40514
40689
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, force) {
40515
- var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions31, _this$actions32, _this$actions33;
40690
+ var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34;
40516
40691
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, _event4, product;
40517
40692
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
40518
40693
  while (1) switch (_context26.prev = _context26.next) {
@@ -40584,8 +40759,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40584
40759
  _context26.next = _context26.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 30 : _context26.t3 === 'OPEN_SELLER_BASKET' ? 33 : _context26.t3 === 'OPEN_PDF' ? 35 : _context26.t3 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context26.t3 === 'SAVE_BASKET' ? 35 : _context26.t3 === 'SAVE_BASKET_SYNC' ? 35 : _context26.t3 === 'OPEN_LEAFLET_BARRIER' ? 35 : 55;
40585
40760
  break;
40586
40761
  case 30:
40587
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.toggleLoading('buildScene', false, false);
40588
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openComponent({
40762
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.toggleLoading('buildScene', false, false);
40763
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
40589
40764
  type: 'SELLER',
40590
40765
  parameters: {
40591
40766
  module: 'PCreator',
@@ -40597,7 +40772,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40597
40772
  });
40598
40773
  return _context26.abrupt("break", 55);
40599
40774
  case 33:
40600
- (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
40775
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40601
40776
  type: 'SELLER',
40602
40777
  parameters: {
40603
40778
  module: 'Basket',
@@ -40651,12 +40826,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40651
40826
  return _context26.abrupt("break", 55);
40652
40827
  case 55:
40653
40828
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
40654
- _context26.next = 58;
40829
+ actBasket = this.divaBasketHandler.getBasketData(actBasket.DivaNr); //get pdf documenturl from saved basket
40830
+ _context26.next = 59;
40655
40831
  return this.addToBasket(actBasket, event);
40656
- case 58:
40832
+ case 59:
40657
40833
  product = _context26.sent;
40658
40834
  return _context26.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
40659
- case 60:
40835
+ case 61:
40660
40836
  case "end":
40661
40837
  return _context26.stop();
40662
40838
  }
@@ -40711,8 +40887,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40711
40887
 
40712
40888
  //if planner is hidden by config but nothing is planned initially
40713
40889
  if (plannerType === 'NONE') {
40714
- var _this$plannerConfig$a7, _this$actSet9;
40715
- if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet9 = this.actSet()) !== null && _this$actSet9 !== void 0 && (_this$actSet9 = _this$actSet9.CatalogData.startPlannerArticle) !== null && _this$actSet9 !== void 0 && _this$actSet9.length)) {
40890
+ var _this$plannerConfig$a7, _this$actSet10;
40891
+ if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet10 = this.actSet()) !== null && _this$actSet10 !== void 0 && (_this$actSet10 = _this$actSet10.CatalogData.startPlannerArticle) !== null && _this$actSet10 !== void 0 && _this$actSet10.length)) {
40716
40892
  plannerType = 'PLANNER';
40717
40893
  }
40718
40894
  }
@@ -40752,38 +40928,38 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40752
40928
  }, {
40753
40929
  key: "getCurCatalogCodex",
40754
40930
  value: function getCurCatalogCodex() {
40755
- var _this$actSet10;
40756
- return (_this$actSet10 = this.actSet()) === null || _this$actSet10 === void 0 ? void 0 : _this$actSet10.getCatalogCodex();
40931
+ var _this$actSet11;
40932
+ return (_this$actSet11 = this.actSet()) === null || _this$actSet11 === void 0 ? void 0 : _this$actSet11.getCatalogCodex();
40757
40933
  }
40758
40934
  }, {
40759
40935
  key: "getCurCatalogName",
40760
40936
  value: function getCurCatalogName() {
40761
- var _this$actSet11;
40762
- return (_this$actSet11 = this.actSet()) === null || _this$actSet11 === void 0 ? void 0 : _this$actSet11.getCatalogName();
40937
+ var _this$actSet12;
40938
+ return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getCatalogName();
40763
40939
  }
40764
40940
  }, {
40765
40941
  key: "getCurAccountName",
40766
40942
  value: function getCurAccountName() {
40767
- var _this$actSet12;
40768
- return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getAccountName();
40943
+ var _this$actSet13;
40944
+ return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getAccountName();
40769
40945
  }
40770
40946
  }, {
40771
40947
  key: "getCurSupplierGuid",
40772
40948
  value: function getCurSupplierGuid() {
40773
- var _this$actSet13;
40774
- return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getSupplierGuid();
40949
+ var _this$actSet14;
40950
+ return (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getSupplierGuid();
40775
40951
  }
40776
40952
  }, {
40777
40953
  key: "getCurSetPrice",
40778
40954
  value: function getCurSetPrice() {
40779
- var _this$actSet$getSetPr, _this$actSet14;
40780
- return (_this$actSet$getSetPr = (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
40955
+ var _this$actSet$getSetPr, _this$actSet15;
40956
+ return (_this$actSet$getSetPr = (_this$actSet15 = this.actSet()) === null || _this$actSet15 === void 0 ? void 0 : _this$actSet15.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
40781
40957
  }
40782
40958
  }, {
40783
40959
  key: "getCurImageMode",
40784
40960
  value: function getCurImageMode() {
40785
- var _this$actSet15;
40786
- return (_this$actSet15 = this.actSet()) !== null && _this$actSet15 !== void 0 && (_this$actSet15 = _this$actSet15.CatalogData) !== null && _this$actSet15 !== void 0 && _this$actSet15.has3dModels ? '3D' : '2D';
40961
+ var _this$actSet16;
40962
+ return (_this$actSet16 = this.actSet()) !== null && _this$actSet16 !== void 0 && (_this$actSet16 = _this$actSet16.CatalogData) !== null && _this$actSet16 !== void 0 && _this$actSet16.has3dModels ? '3D' : '2D';
40787
40963
  }
40788
40964
  }, {
40789
40965
  key: "getViewConfig",
@@ -40814,65 +40990,65 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40814
40990
  }, {
40815
40991
  key: "doShow3DDimensionLines",
40816
40992
  value: function doShow3DDimensionLines() {
40817
- var _this$actSet16;
40818
- return (_this$actSet16 = this.actSet()) === null || _this$actSet16 === void 0 || (_this$actSet16 = _this$actSet16.CatalogData) === null || _this$actSet16 === void 0 ? void 0 : _this$actSet16.doShow3DDimensionLines;
40993
+ var _this$actSet17;
40994
+ return (_this$actSet17 = this.actSet()) === null || _this$actSet17 === void 0 || (_this$actSet17 = _this$actSet17.CatalogData) === null || _this$actSet17 === void 0 ? void 0 : _this$actSet17.doShow3DDimensionLines;
40819
40995
  }
40820
40996
  }, {
40821
40997
  key: "hidePlannerUiIcons",
40822
40998
  value: function hidePlannerUiIcons() {
40823
- var _this$actSet17;
40824
- return (_this$actSet17 = this.actSet()) === null || _this$actSet17 === void 0 || (_this$actSet17 = _this$actSet17.CatalogData) === null || _this$actSet17 === void 0 ? void 0 : _this$actSet17.hidePlannerUiIcons;
40999
+ var _this$actSet18;
41000
+ return (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 || (_this$actSet18 = _this$actSet18.CatalogData) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.hidePlannerUiIcons;
40825
41001
  }
40826
41002
  }, {
40827
41003
  key: "doShowPlannerReplaceMode",
40828
41004
  value: function doShowPlannerReplaceMode() {
40829
- var _this$actSet18, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
40830
- var catalogData = (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.CatalogData;
41005
+ var _this$actSet19, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
41006
+ var catalogData = (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.CatalogData;
40831
41007
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.replaceModeActive) && ((_this$api$getViewConf2 = this.api.getViewConfig()) === null || _this$api$getViewConf2 === void 0 ? void 0 : _this$api$getViewConf2.showReplaceFunctionInPlanner) && Object.entries(catalogData.allCatalogPlannerArticles).length > 1 && Object.entries((_catalogData$PlannerP = (_catalogData$PlannerP2 = catalogData.PlannerPaletteViewInfo) === null || _catalogData$PlannerP2 === void 0 ? void 0 : _catalogData$PlannerP2.catalogPlannerArticles) !== null && _catalogData$PlannerP !== void 0 ? _catalogData$PlannerP : {}).length > 1;
40832
41008
  }
40833
41009
  }, {
40834
41010
  key: "doPlannerReplaceAutoSwitch",
40835
41011
  value: function doPlannerReplaceAutoSwitch() {
40836
- var _this$actSet19, _this$api$getViewConf3;
40837
- var catalogData = (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.CatalogData;
41012
+ var _this$actSet20, _this$api$getViewConf3;
41013
+ var catalogData = (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.CatalogData;
40838
41014
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.catalogPlannsCompletely) && this.doShowPlannerReplaceMode() && ((_this$api$getViewConf3 = this.api.getViewConfig()) === null || _this$api$getViewConf3 === void 0 ? void 0 : _this$api$getViewConf3.allowAutoSwitchInReplaceFunctionInPlanner);
40839
41015
  }
40840
41016
  }, {
40841
41017
  key: "getHidePlanner",
40842
41018
  value: function getHidePlanner() {
40843
- var _this$actSet20;
40844
- return this.api.getHidePlanner() || !!((_this$actSet20 = this.actSet()) !== null && _this$actSet20 !== void 0 && _this$actSet20.CatalogData.useBoxPlanner);
41019
+ var _this$actSet21;
41020
+ return this.api.getHidePlanner() || !!((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.useBoxPlanner);
40845
41021
  }
40846
41022
  }, {
40847
41023
  key: "getAllowRTV",
40848
41024
  value: function getAllowRTV() {
40849
- var _this$actSet21, _this$actSet22;
41025
+ var _this$actSet22, _this$actSet23;
40850
41026
  if (this.getEnableUnityRtvKombi()) return false;
40851
41027
  if (this.api.forceShowRTV()) return true;
40852
- if ((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.divaForceRTV) return true;
40853
- if (this.api.getDoShowRTV() && (_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaArReady) return true;
41028
+ if ((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaForceRTV) return true;
41029
+ if (this.api.getDoShowRTV() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
40854
41030
  return false;
40855
41031
  }
40856
41032
  }, {
40857
41033
  key: "geAllowQRCodeAR",
40858
41034
  value: function geAllowQRCodeAR() {
40859
- var _this$actSet23;
40860
- if (this.api.getDoShowAR() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
41035
+ var _this$actSet24;
41036
+ if (this.api.getDoShowAR() && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
40861
41037
  return false;
40862
41038
  }
40863
41039
  }, {
40864
41040
  key: "getEnableUnityRtvKombi",
40865
41041
  value: function getEnableUnityRtvKombi() {
40866
- var _this$actSet24, _this$actSet25;
41042
+ var _this$actSet25, _this$actSet26;
40867
41043
  // if force rtv disable unity kombi - biohort
40868
- if ((_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaForceRTV) return false;
40869
- return ((_this$actSet25 = this.actSet()) === null || _this$actSet25 === void 0 ? void 0 : _this$actSet25.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
41044
+ if ((_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaForceRTV) return false;
41045
+ return ((_this$actSet26 = this.actSet()) === null || _this$actSet26 === void 0 ? void 0 : _this$actSet26.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
40870
41046
  }
40871
41047
  }, {
40872
41048
  key: "getShelfPlannerRTV",
40873
41049
  value: function getShelfPlannerRTV() {
40874
- var _this$actSet26;
40875
- return (_this$actSet26 = this.actSet()) === null || _this$actSet26 === void 0 ? void 0 : _this$actSet26.CatalogData.useShelfPlannerRTV;
41050
+ var _this$actSet27;
41051
+ return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData.useShelfPlannerRTV;
40876
41052
  }
40877
41053
  }, {
40878
41054
  key: "getBasketData",
@@ -40913,8 +41089,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40913
41089
  }, {
40914
41090
  key: "getCatalogData",
40915
41091
  value: function getCatalogData() {
40916
- var _this$actSet27;
40917
- return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData;
41092
+ var _this$actSet28;
41093
+ return (_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData;
40918
41094
  }
40919
41095
  }, {
40920
41096
  key: "ReturnTo",
@@ -40930,16 +41106,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40930
41106
  key: "addToBasket",
40931
41107
  value: function () {
40932
41108
  var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(actBasket) {
40933
- var _this$actions34,
40934
- _this$actions35,
41109
+ var _this$actions35,
40935
41110
  _this$actions36,
40936
41111
  _this$actions37,
40937
41112
  _this$actions38,
41113
+ _this$actions39,
40938
41114
  _this$divaBasketHandl3,
40939
41115
  _this3 = this,
40940
- _this$actions39,
40941
41116
  _this$actions40,
40942
- _this$actions41;
41117
+ _this$actions41,
41118
+ _this$actions42,
41119
+ _this$actions43;
40943
41120
  var event,
40944
41121
  addToBasketLog,
40945
41122
  emailConfig,
@@ -40955,43 +41132,43 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40955
41132
  event = _args28.length > 1 && _args28[1] !== undefined ? _args28[1] : 'onAddToBasket';
40956
41133
  addToBasketLog = true;
40957
41134
  _context28.t0 = event;
40958
- _context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 8 : _context28.t0 === 'onWebPlanerShare' ? 11 : _context28.t0 === 'onRequestConsulation' ? 14 : _context28.t0 === 'onSave' ? 17 : _context28.t0 === 'onSendEmail' ? 20 : _context28.t0 === 'onSaveProduct' ? 25 : _context28.t0 === 'dontSaveBasket' ? 33 : _context28.t0 === 'onAddToBasket' ? 35 : 35;
41135
+ _context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 8 : _context28.t0 === 'onWebPlanerShare' ? 11 : _context28.t0 === 'onRequestConsulation' ? 14 : _context28.t0 === 'onSave' ? 17 : _context28.t0 === 'onSendEmail' ? 20 : _context28.t0 === 'onSaveProduct' ? 25 : _context28.t0 === 'dontSaveBasket' ? 33 : _context28.t0 === 'onAddToBasket' ? 35 : 38;
40959
41136
  break;
40960
41137
  case 5:
40961
41138
  this.handleSuccessTransaction('onPrintBasket', actBasket);
40962
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.onEvent({
41139
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
40963
41140
  type: 'onWebPlanerPrint',
40964
41141
  data: actBasket.getAsJson()
40965
41142
  });
40966
- return _context28.abrupt("break", 38);
41143
+ return _context28.abrupt("break", 40);
40967
41144
  case 8:
40968
41145
  this.handleSuccessTransaction('onSaveBasket', actBasket);
40969
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41146
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
40970
41147
  type: 'onWebPlanerSave',
40971
41148
  data: actBasket.getAsJson()
40972
41149
  });
40973
- return _context28.abrupt("break", 38);
41150
+ return _context28.abrupt("break", 40);
40974
41151
  case 11:
40975
41152
  this.handleSuccessTransaction('onShareBasket', actBasket);
40976
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41153
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
40977
41154
  type: 'onWebPlanerShare',
40978
41155
  data: actBasket.getAsJson()
40979
41156
  });
40980
- return _context28.abrupt("break", 38);
41157
+ return _context28.abrupt("break", 40);
40981
41158
  case 14:
40982
41159
  this.handleSuccessTransaction('onRequestConsulation', actBasket);
40983
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41160
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
40984
41161
  type: 'onRequestConsulation',
40985
41162
  data: actBasket.getAsJson()
40986
41163
  });
40987
- return _context28.abrupt("break", 38);
41164
+ return _context28.abrupt("break", 40);
40988
41165
  case 17:
40989
41166
  this.handleSuccessTransaction('onSave', actBasket);
40990
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41167
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
40991
41168
  type: 'onSave',
40992
41169
  data: actBasket.getAsJson()
40993
41170
  });
40994
- return _context28.abrupt("break", 38);
41171
+ return _context28.abrupt("break", 40);
40995
41172
  case 20:
40996
41173
  emailConfig = (_this$divaBasketHandl3 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl3 !== void 0 ? _this$divaBasketHandl3 : this.getEmailConfig(); //reset the emailConfig
40997
41174
  this.divaBasketHandler.emailConfig = undefined;
@@ -41023,11 +41200,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41023
41200
  });
41024
41201
  this.handleSuccessTransaction('onSendEmail', actBasket);
41025
41202
  }
41026
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41203
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41027
41204
  type: 'onAddToBasket',
41028
41205
  data: actBasket.getAsJson()
41029
41206
  });
41030
- return _context28.abrupt("break", 38);
41207
+ return _context28.abrupt("break", 40);
41031
41208
  case 25:
41032
41209
  this.actSet().CatalogData;
41033
41210
  _context28.next = 28;
@@ -41035,7 +41212,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41035
41212
  case 28:
41036
41213
  products = _context28.sent;
41037
41214
  this.handleSuccessTransaction('onSaveProduct', actBasket);
41038
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41215
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41039
41216
  type: 'onAddToBasket',
41040
41217
  data: actBasket.getAsJson()
41041
41218
  });
@@ -41049,14 +41226,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41049
41226
  addToBasketLog = false;
41050
41227
  case 35:
41051
41228
  if (addToBasketLog) this.handleSuccessTransaction('onAddToBasket', actBasket);
41052
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41229
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41053
41230
  type: 'onAddToBasket',
41054
41231
  data: actBasket.getAsJson()
41055
41232
  });
41056
- return _context28.abrupt("break", 38);
41233
+ return _context28.abrupt("break", 40);
41057
41234
  case 38:
41235
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41236
+ type: event,
41237
+ data: actBasket.getAsJson()
41238
+ });
41239
+ return _context28.abrupt("break", 40);
41240
+ case 40:
41058
41241
  return _context28.abrupt("return");
41059
- case 39:
41242
+ case 41:
41060
41243
  case "end":
41061
41244
  return _context28.stop();
41062
41245
  }
@@ -41081,8 +41264,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41081
41264
  }, {
41082
41265
  key: "openPDFpostAsEvent",
41083
41266
  value: function openPDFpostAsEvent(mongoDBId) {
41084
- var _this$actions42, _this$actions43, _this$actions44;
41085
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.updateBreadcrumbs({
41267
+ var _this$actions44, _this$actions45, _this$actions46;
41268
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.updateBreadcrumbs({
41086
41269
  type: 'update',
41087
41270
  param: {
41088
41271
  groupId: 'SHOWROOM',
@@ -41096,7 +41279,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41096
41279
  }
41097
41280
  }
41098
41281
  });
41099
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.updateBreadcrumbs({
41282
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41100
41283
  type: 'update',
41101
41284
  param: {
41102
41285
  groupId: 'SHOWROOM',
@@ -41110,7 +41293,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41110
41293
  }
41111
41294
  }
41112
41295
  });
41113
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.openComponent({
41296
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
41114
41297
  type: 'REPORT',
41115
41298
  parameters: {
41116
41299
  id: mongoDBId
@@ -41330,14 +41513,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41330
41513
  }, {
41331
41514
  key: "subscribeToWebPlannerEvents",
41332
41515
  value: function subscribeToWebPlannerEvents() {
41333
- var _this$actions45;
41334
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.subscribeEvents(this.addToBasketEventFunction);
41516
+ var _this$actions47;
41517
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
41335
41518
  }
41336
41519
  }, {
41337
41520
  key: "unsubscribeFromWebPlannerEvents",
41338
41521
  value: function unsubscribeFromWebPlannerEvents() {
41339
- var _this$actions46;
41340
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.unSubscribeEvents(this.addToBasketEventFunction);
41522
+ var _this$actions48;
41523
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
41341
41524
  }
41342
41525
  }, {
41343
41526
  key: "initApiForLogicOnly",
@@ -41405,7 +41588,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41405
41588
  }, {
41406
41589
  key: "initBasket",
41407
41590
  value: function () {
41408
- var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(init3D, ignoreFavorites) {
41591
+ var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(init3D, ignoreFavorites, onlyCalcVariants) {
41409
41592
  var _initSetState$api$web2;
41410
41593
  var initSetState, sets, result, _sets$, set, basket;
41411
41594
  return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context31) {
@@ -41434,28 +41617,28 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41434
41617
  (_sets$ = sets[0]) === null || _sets$ === void 0 || _sets$.remindPriceForHash(result);
41435
41618
  }
41436
41619
  case 12:
41437
- //TODO: GLOBAL STUFF
41438
41620
  set = this.actSet();
41621
+ if (set) set.onlyCalcVariants = onlyCalcVariants;
41439
41622
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
41440
41623
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
41441
- _context31.next = 17;
41624
+ _context31.next = 18;
41442
41625
  break;
41443
41626
  }
41444
- _context31.next = 17;
41627
+ _context31.next = 18;
41445
41628
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
41446
- case 17:
41447
- _context31.next = 19;
41629
+ case 18:
41630
+ _context31.next = 20;
41448
41631
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
41449
- case 19:
41632
+ case 20:
41450
41633
  basket = _context31.sent;
41451
41634
  return _context31.abrupt("return", basket);
41452
- case 21:
41635
+ case 22:
41453
41636
  case "end":
41454
41637
  return _context31.stop();
41455
41638
  }
41456
41639
  }, _callee31, this);
41457
41640
  }));
41458
- function initBasket(_x78, _x79) {
41641
+ function initBasket(_x78, _x79, _x80) {
41459
41642
  return _initBasket.apply(this, arguments);
41460
41643
  }
41461
41644
  return initBasket;
@@ -41532,7 +41715,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41532
41715
  }
41533
41716
  }, _callee33, this);
41534
41717
  }));
41535
- function handleFavorites(_x80) {
41718
+ function handleFavorites(_x81) {
41536
41719
  return _handleFavorites.apply(this, arguments);
41537
41720
  }
41538
41721
  return handleFavorites;
@@ -41586,7 +41769,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41586
41769
  }
41587
41770
  }, _callee34, this);
41588
41771
  }));
41589
- function initSapOrderLinesFromBasket(_x81, _x82, _x83) {
41772
+ function initSapOrderLinesFromBasket(_x82, _x83, _x84) {
41590
41773
  return _initSapOrderLinesFromBasket.apply(this, arguments);
41591
41774
  }
41592
41775
  return initSapOrderLinesFromBasket;
@@ -42458,7 +42641,7 @@ var Grid = /*#__PURE__*/function () {
42458
42641
  case 0:
42459
42642
  option = _this.montageOptions[i];
42460
42643
  inUseCell = _this.cells.find(function (c, i) {
42461
- return c.InUse === i && c.Article && (!option.accessoires || Array.isArray(option.accessoires) && option.accessoires.includes(c.Article.articleCodex) || !Array.isArray(option.accessoires) && option.accessoires == c.Article.articleCodex) && (!option.range || Array.isArray(option.range) && option.range.includes(i) || !Array.isArray(option.range) && option.range == i);
42644
+ return c.InUse === i && c.Article && (!option.accessoires || Array.isArray(option.accessoires) && option.accessoires.includes(c.Article.articleCodex) || !Array.isArray(option.accessoires) && option.accessoires == c.Article.articleCodex) && (!option.range || Array.isArray(option.range) && option.range.includes(i) || !Array.isArray(option.range) && option.range == i) && (!option.onTop || _this.cells[_this.cells.length - 1].InUse === i) && (!option.onBottom || _this.cells[0].InUse === i);
42462
42645
  });
42463
42646
  specificAccessoire = option.accessoires && inUseCell !== null && inUseCell !== void 0 && inUseCell.Article ? [inUseCell.Article] : undefined;
42464
42647
  options = Array.isArray(option.optionCodex) ? option.optionCodex : [option.optionCodex];