@crystaldesign/web-planner-logic 24.14.0-beta.15 → 24.14.0-beta.17

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 (39) hide show
  1. package/build/cjs/{DivaBoxPlanner-b8c943f9.js → DivaBoxPlanner-1dbb2b3e.js} +7 -5
  2. package/build/cjs/{DivaStandardPlanner-d545a524.js → DivaStandardPlanner-8f22cd16.js} +3 -3
  3. package/build/cjs/{DoorPlanner-cbf256ac.js → DoorPlanner-b0a67ddd.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-38042dd4.js → Host3DSignalR-fe254b6c.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-5968a440.js → LiviqueWWSHandler-2b0c9046.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-a19fb640.js → PfisterWWSHandler-20a3aa88.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-104c25e8.js → PlannerHandler2D-56d91a4c.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-afe39b25.js → SeriousBasketHandler-20b5e9bd.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-b68a936a.js → ShelfPlanner-b10b303f.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-d56e153f.js → StandardWWSHandler-301ce47d.js} +1 -1
  11. package/build/cjs/{index-fc73236c.js → index-7b3afec0.js} +168 -147
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-d5cb2761.js → DivaBoxPlanner-18be0386.js} +7 -5
  14. package/build/esm/{DivaStandardPlanner-7b4a2363.js → DivaStandardPlanner-4a467c1f.js} +3 -3
  15. package/build/esm/{DoorPlanner-d637db66.js → DoorPlanner-14a4b738.js} +1 -1
  16. package/build/esm/{Host3DSignalR-cc8579c6.js → Host3DSignalR-b7a3ef2b.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-36b3f3bf.js → LiviqueWWSHandler-1d8bd04d.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-55960acc.js → PfisterWWSHandler-306890c4.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-c5f068a9.js → PlannerHandler2D-7ec24382.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-6c11ee06.js → SeriousBasketHandler-b9a37881.js} +1 -1
  21. package/build/esm/{ShelfPlanner-ab85b5ea.js → ShelfPlanner-8ceb3faa.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-4f44c130.js → StandardWWSHandler-e18e1760.js} +1 -1
  23. package/build/esm/{index-21a4713a.js → index-a443016b.js} +168 -147
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +1 -4
  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/CoreTypes/index.d.ts +5 -0
  28. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  30. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts +1 -1
  31. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -1
  32. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +2 -4
  33. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  34. package/build/types/web-planner-logic/src/logic/DivaCatalogHandler.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +1 -1
  36. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +1 -1
  38. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  39. package/package.json +2 -2
@@ -596,59 +596,41 @@ var DivaApiHandler = /*#__PURE__*/function () {
596
596
  var _this$divaWebConfigDa12;
597
597
  return !!((_this$divaWebConfigDa12 = this.divaWebConfigData) !== null && _this$divaWebConfigDa12 !== void 0 && (_this$divaWebConfigDa12 = _this$divaWebConfigDa12.viewConfig) !== null && _this$divaWebConfigDa12 !== void 0 && _this$divaWebConfigDa12.hidePlanner);
598
598
  }
599
- }, {
600
- key: "getDoShowAR",
601
- value: function getDoShowAR() {
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;
604
- }
605
- }, {
606
- key: "forceShowRTV",
607
- value: function forceShowRTV() {
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;
610
- }
611
- }, {
612
- key: "getDoShowRTV",
613
- value: function getDoShowRTV() {
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;
616
- }
617
599
  }, {
618
600
  key: "getEnableRTVUnityKombi",
619
601
  value: function getEnableRTVUnityKombi() {
620
- var _this$divaWebConfigDa16;
621
- return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.viewConfig.enableRtvUnityKombi);
602
+ var _this$divaWebConfigDa13;
603
+ return !!((_this$divaWebConfigDa13 = this.divaWebConfigData) !== null && _this$divaWebConfigDa13 !== void 0 && _this$divaWebConfigDa13.viewConfig.enableRtvUnityKombi);
622
604
  }
623
605
  }, {
624
606
  key: "getDoDisablePlanner2D",
625
607
  value: function getDoDisablePlanner2D() {
626
- var _this$divaWebConfigDa17;
627
- return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
608
+ var _this$divaWebConfigDa14;
609
+ return !!((_this$divaWebConfigDa14 = this.divaWebConfigData) !== null && _this$divaWebConfigDa14 !== void 0 && _this$divaWebConfigDa14.doDisablePlanner2D);
628
610
  }
629
611
  }, {
630
612
  key: "getRoomListInProduct",
631
613
  value: function getRoomListInProduct() {
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);
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 && _this$divaWebConfigDa15.roomListInProduct);
634
616
  }
635
617
  }, {
636
618
  key: "getPlannerType",
637
619
  value: function getPlannerType() {
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;
620
+ var _this$divaWebConfigDa16;
621
+ return (_this$divaWebConfigDa16 = this.divaWebConfigData) === null || _this$divaWebConfigDa16 === void 0 || (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) === null || _this$divaWebConfigDa16 === void 0 ? void 0 : _this$divaWebConfigDa16.plannerType;
640
622
  }
641
623
  }, {
642
624
  key: "getLoadSupplierColors",
643
625
  value: function getLoadSupplierColors() {
644
- var _this$divaWebConfigDa20;
645
- return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
626
+ var _this$divaWebConfigDa17;
627
+ return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.loadSupplierColors);
646
628
  }
647
629
  }, {
648
630
  key: "showSelectionModeZero",
649
631
  value: function showSelectionModeZero() {
650
- var _this$divaWebConfigDa21;
651
- return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
632
+ var _this$divaWebConfigDa18;
633
+ return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.showSelectionModeZero);
652
634
  }
653
635
  }, {
654
636
  key: "ruleDescSeperator",
@@ -668,8 +650,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
668
650
  }, {
669
651
  key: "getDoCheckVariantData",
670
652
  value: function getDoCheckVariantData() {
671
- var _this$divaWebConfigDa22;
672
- return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.doCheckVariantData;
653
+ var _this$divaWebConfigDa19;
654
+ return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.doCheckVariantData;
673
655
  }
674
656
  }, {
675
657
  key: "setI18n",
@@ -762,50 +744,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
762
744
  }, {
763
745
  key: "getViewConfig",
764
746
  value: function getViewConfig() {
765
- var _this$divaWebConfigDa23;
766
- return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.viewConfig;
747
+ var _this$divaWebConfigDa20;
748
+ return (_this$divaWebConfigDa20 = this.divaWebConfigData) === null || _this$divaWebConfigDa20 === void 0 ? void 0 : _this$divaWebConfigDa20.viewConfig;
767
749
  }
768
750
  }, {
769
751
  key: "getEmailConfig",
770
752
  value: function getEmailConfig() {
771
- var _this$divaWebConfigDa24;
772
- return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.emailConfig;
753
+ var _this$divaWebConfigDa21;
754
+ return (_this$divaWebConfigDa21 = this.divaWebConfigData) === null || _this$divaWebConfigDa21 === void 0 ? void 0 : _this$divaWebConfigDa21.emailConfig;
773
755
  }
774
756
  }, {
775
757
  key: "getABTestCases",
776
758
  value: function getABTestCases() {
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 : [];
759
+ var _this$divaWebConfigDa22, _this$divaWebConfigDa23;
760
+ return (_this$divaWebConfigDa22 = (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.abTestCases) !== null && _this$divaWebConfigDa22 !== void 0 ? _this$divaWebConfigDa22 : [];
779
761
  }
780
762
  }, {
781
763
  key: "getBarrierConfig",
782
764
  value: function getBarrierConfig() {
783
- var _this$divaWebConfigDa27;
784
- return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.barrierConfig;
765
+ var _this$divaWebConfigDa24;
766
+ return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.barrierConfig;
785
767
  }
786
768
  }, {
787
769
  key: "getTemplateConfig",
788
770
  value: function getTemplateConfig() {
789
- var _this$divaWebConfigDa28;
790
- return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.templateConfig;
771
+ var _this$divaWebConfigDa25;
772
+ return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.templateConfig;
791
773
  }
792
774
  }, {
793
775
  key: "showDivaNr",
794
776
  value: function showDivaNr() {
795
- var _this$divaWebConfigDa29;
796
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.showDivaNr;
777
+ var _this$divaWebConfigDa26;
778
+ return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.showDivaNr;
797
779
  }
798
780
  }, {
799
781
  key: "onErrorHandling",
800
782
  value: function onErrorHandling() {
801
- var _this$divaWebConfigDa30;
802
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.onErrorHandling;
783
+ var _this$divaWebConfigDa27;
784
+ return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.onErrorHandling;
803
785
  }
804
786
  }, {
805
787
  key: "diva3DRenderingDefault",
806
788
  value: function diva3DRenderingDefault() {
807
- var _this$divaWebConfigDa31;
808
- return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.diva3DRenderingDefault;
789
+ var _this$divaWebConfigDa28;
790
+ return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.diva3DRenderingDefault;
809
791
  }
810
792
  }, {
811
793
  key: "getJwt",
@@ -820,8 +802,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
820
802
  }, {
821
803
  key: "getUseMask",
822
804
  value: function getUseMask() {
823
- var _this$divaWebConfigDa32;
824
- return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.useMask;
805
+ var _this$divaWebConfigDa29;
806
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.useMask;
825
807
  }
826
808
  }, {
827
809
  key: "apiUrl",
@@ -1341,14 +1323,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1341
1323
  }, {
1342
1324
  key: "dontLoadAdditionalModelInfos",
1343
1325
  get: function get() {
1344
- var _this$divaWebConfigDa33;
1345
- return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadAdditionalModelInfos;
1326
+ var _this$divaWebConfigDa30;
1327
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.dontLoadAdditionalModelInfos;
1346
1328
  }
1347
1329
  }, {
1348
1330
  key: "dontLoadCatalogEditorLiteMask",
1349
1331
  get: function get() {
1350
- var _this$divaWebConfigDa34;
1351
- return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.dontLoadCatalogEditorLiteMask;
1332
+ var _this$divaWebConfigDa31;
1333
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.dontLoadCatalogEditorLiteMask;
1352
1334
  }
1353
1335
  }, {
1354
1336
  key: "OrganizationId",
@@ -1356,6 +1338,12 @@ var DivaApiHandler = /*#__PURE__*/function () {
1356
1338
  var _this$organization4;
1357
1339
  return (_this$organization4 = this.organization) === null || _this$organization4 === void 0 ? void 0 : _this$organization4._id;
1358
1340
  }
1341
+ }, {
1342
+ key: "enableAR",
1343
+ get: function get() {
1344
+ var _this$organization5;
1345
+ return (_this$organization5 = this.organization) === null || _this$organization5 === void 0 ? void 0 : _this$organization5.enableAR;
1346
+ }
1359
1347
  }, {
1360
1348
  key: "webConfig",
1361
1349
  get: function get() {
@@ -19743,7 +19731,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19743
19731
  return _context.abrupt("return", state.divaCatalogs[catalogKey]);
19744
19732
  case 5:
19745
19733
  if (!orderSet) {
19746
- _context.next = 47;
19734
+ _context.next = 53;
19747
19735
  break;
19748
19736
  }
19749
19737
  // ab hier parallell laden
@@ -19775,22 +19763,30 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19775
19763
  case 23:
19776
19764
  mask = _context.sent;
19777
19765
  case 24:
19766
+ _context.next = 29;
19767
+ break;
19768
+ case 26:
19769
+ _context.prev = 26;
19770
+ _context.t0 = _context["catch"](19);
19771
+ LOG$d.debug('no mask found: ' + _context.t0);
19772
+ case 29:
19773
+ _context.prev = 29;
19778
19774
  if (!(!state.api.dontLoadAdditionalModelInfos && catalogApiData.AccountGuid)) {
19779
- _context.next = 28;
19775
+ _context.next = 34;
19780
19776
  break;
19781
19777
  }
19782
- _context.next = 27;
19778
+ _context.next = 33;
19783
19779
  return state.api.getDataCache(state.api.getAdditionalModelInfosQS(catalogApiData.AccountGuid, catalogApiData.GUID), undefined, undefined, 'catalog');
19784
- case 27:
19780
+ case 33:
19785
19781
  additionalModelInfos = _context.sent;
19786
- case 28:
19787
- _context.next = 33;
19782
+ case 34:
19783
+ _context.next = 39;
19788
19784
  break;
19789
- case 30:
19790
- _context.prev = 30;
19791
- _context.t0 = _context["catch"](19);
19792
- LOG$d.debug('no additionalModelInfos found: ' + _context.t0);
19793
- case 33:
19785
+ case 36:
19786
+ _context.prev = 36;
19787
+ _context.t1 = _context["catch"](29);
19788
+ LOG$d.debug('no additionalModelInfos found: ' + _context.t1);
19789
+ case 39:
19794
19790
  if (state.catalogMask || mask) {
19795
19791
  if (!additionalModelInfos) additionalModelInfos = {
19796
19792
  _id: ''
@@ -19799,19 +19795,19 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19799
19795
  }
19800
19796
  catalogData = new DivaCatalogData(catalogApiData, orderSet, state.api, additionalModelInfos);
19801
19797
  if (!(catalogArticleListData.Articles && catalogArticleListData.Articles.length > 0)) {
19802
- _context.next = 39;
19798
+ _context.next = 45;
19803
19799
  break;
19804
19800
  }
19805
19801
  catalogData.initCatalogArticles(catalogArticleListData.Articles);
19806
- _context.next = 42;
19802
+ _context.next = 48;
19807
19803
  break;
19808
- case 39:
19804
+ case 45:
19809
19805
  DivaUtils__default["default"].endSpanOfApm('Catalog initialize');
19810
19806
  LOG$d.error(new DivaUtils.DivaError('Catalog ' + catalogData.catalogName + ' not listed', {
19811
19807
  code: 'WC_0002'
19812
19808
  }));
19813
19809
  throw new Error('Articles of Catalog: ' + catalogData.catalogCodex + ' are empty');
19814
- case 42:
19810
+ case 48:
19815
19811
  if (catalogArticlePlannerListData.PlannerElements && catalogArticlePlannerListData.PlannerElements.length > 0) {
19816
19812
  catalogData.initCatalogPlannerArticles(catalogArticlePlannerListData.PlannerElements);
19817
19813
  }
@@ -19828,16 +19824,16 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19828
19824
 
19829
19825
  DivaUtils__default["default"].endSpanOfApm('Catalog initialize');
19830
19826
  return _context.abrupt("return", state.divaCatalogs[catalogKey]);
19831
- case 47:
19827
+ case 53:
19832
19828
  LOG$d.error(new DivaUtils.DivaError('Catalog: ' + catalogCodex + ' not initialized! and orderSet not set', {
19833
19829
  code: 'WC_0007'
19834
19830
  }));
19835
19831
  return _context.abrupt("return", state.divaCatalogs[catalogKey]);
19836
- case 49:
19832
+ case 55:
19837
19833
  case "end":
19838
19834
  return _context.stop();
19839
19835
  }
19840
- }, _callee, null, [[19, 30]]);
19836
+ }, _callee, null, [[19, 26], [29, 36]]);
19841
19837
  }));
19842
19838
  function getCatalogData(_x, _x2, _x3) {
19843
19839
  return _getCatalogData.apply(this, arguments);
@@ -20723,8 +20719,18 @@ var DivaArticle = /*#__PURE__*/function () {
20723
20719
  if (Object.entries(partlistArticles).length && !this.CatalogData.bundleRules) {
20724
20720
  LOG$c.error(new DivaUtils.DivaError('sorting partlistarticles Failed', {
20725
20721
  custom: {
20726
- partlistArticles: partlistArticles,
20727
- partlistArticlesToLoad: partlistArticlesToLoad
20722
+ partlistArticles: Object.values(partlistArticles).map(function (p) {
20723
+ return {
20724
+ BasketId: p.basketId,
20725
+ ArticleCodex: p.articleCodex
20726
+ };
20727
+ }),
20728
+ partlistArticlesToLoad: partlistArticlesToLoad.map(function (p) {
20729
+ return {
20730
+ BasketId: p.ArticleCodex,
20731
+ ArticleCodex: p.ArticleCodex
20732
+ };
20733
+ })
20728
20734
  }
20729
20735
  }));
20730
20736
  }
@@ -23646,7 +23652,7 @@ var DivaArticle = /*#__PURE__*/function () {
23646
23652
  break;
23647
23653
  }
23648
23654
  _context.next = 4;
23649
- return Promise.resolve().then(function () { return require('./ShelfPlanner-b68a936a.js'); });
23655
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-b10b303f.js'); });
23650
23656
  case 4:
23651
23657
  _yield$import = _context.sent;
23652
23658
  ShelfPlanner = _yield$import["default"];
@@ -28180,7 +28186,7 @@ var DivaSet = /*#__PURE__*/function () {
28180
28186
  break;
28181
28187
  }
28182
28188
  _context4.next = 3;
28183
- return Promise.resolve().then(function () { return require('./DoorPlanner-cbf256ac.js'); });
28189
+ return Promise.resolve().then(function () { return require('./DoorPlanner-b0a67ddd.js'); });
28184
28190
  case 3:
28185
28191
  _yield$import = _context4.sent;
28186
28192
  DoorPlanner = _yield$import["default"];
@@ -31818,8 +31824,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
31818
31824
  }, {
31819
31825
  key: "deleteElementFromSet",
31820
31826
  value: function () {
31821
- var _deleteElementFromSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee14(set, article, autoCorrectAVL_AVR, deletionType, dontReload) {
31822
- var setId, allElementsToDelete, success, newSelectedElement, i, _deletedArticle$doorP, _set$CatalogData, deletedArticle, articles, key, oldTransform, result, _set$getArticleByBask3;
31827
+ var _deleteElementFromSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee14(set, article, autoCorrectAVL_AVR, deletionType, dontReload, dontCheckInfluencedPlannerElements) {
31828
+ var _deletedArticle$doorP, _set$CatalogData;
31829
+ var setId, success, newSelectedElement, allElementsToDelete, i, art, deletedArticle, articles, key, oldTransform, result, _set$getArticleByBask3;
31823
31830
  return _regeneratorRuntime__default["default"].wrap(function _callee14$(_context16) {
31824
31831
  while (1) switch (_context16.prev = _context16.next) {
31825
31832
  case 0:
@@ -31834,44 +31841,55 @@ var DivaSetHandler = /*#__PURE__*/function () {
31834
31841
  setId: setId
31835
31842
  });
31836
31843
  case 3:
31837
- allElementsToDelete = set.plannerHandler.getPlannerElementsInfluencedByDeletion(setId, article.elementId);
31838
31844
  success = false;
31839
31845
  newSelectedElement = undefined;
31846
+ if (dontCheckInfluencedPlannerElements) {
31847
+ _context16.next = 15;
31848
+ break;
31849
+ }
31850
+ allElementsToDelete = set.plannerHandler.getPlannerElementsInfluencedByDeletion(setId, article.elementId);
31840
31851
  i = 0;
31841
- case 7:
31852
+ case 8:
31842
31853
  if (!(i < allElementsToDelete.length)) {
31843
- _context16.next = 35;
31854
+ _context16.next = 15;
31844
31855
  break;
31845
31856
  }
31846
- article = set.getArticleByElementId(allElementsToDelete[i]);
31857
+ art = set.getArticleByElementId(allElementsToDelete[i]);
31858
+ _context16.next = 12;
31859
+ return this.deleteElementFromSet(set, art, undefined, undefined, true, true);
31860
+ case 12:
31861
+ i++;
31862
+ _context16.next = 8;
31863
+ break;
31864
+ case 15:
31847
31865
  deletedArticle = article; //accessoires löschen
31848
31866
  articles = set.getAccessoiresOfBasketId(article.basketId);
31849
31867
  _context16.t0 = _regeneratorRuntime__default["default"].keys(articles);
31850
- case 12:
31868
+ case 18:
31851
31869
  if ((_context16.t1 = _context16.t0()).done) {
31852
- _context16.next = 18;
31870
+ _context16.next = 24;
31853
31871
  break;
31854
31872
  }
31855
31873
  key = _context16.t1.value;
31856
- _context16.next = 16;
31857
- return this.deleteElementFromSet(set, articles[key]);
31858
- case 16:
31859
- _context16.next = 12;
31874
+ _context16.next = 22;
31875
+ return this.deleteElementFromSet(set, articles[key], undefined, undefined, true);
31876
+ case 22:
31877
+ _context16.next = 18;
31860
31878
  break;
31861
- case 18:
31879
+ case 24:
31862
31880
  oldTransform = undefined;
31863
31881
  if (deletedArticle) deletedArticle.deleted = true;
31864
31882
  if (!(deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.hasCatalogPlannerArticle)) {
31865
- _context16.next = 26;
31883
+ _context16.next = 32;
31866
31884
  break;
31867
31885
  }
31868
- _context16.next = 23;
31886
+ _context16.next = 29;
31869
31887
  return set.plannerHandler.deletePlannerElement(setId, deletedArticle.elementId, autoCorrectAVL_AVR, deletionType);
31870
- case 23:
31888
+ case 29:
31871
31889
  result = _context16.sent;
31872
31890
  newSelectedElement = result.newElementToSelect;
31873
31891
  oldTransform = result.transform;
31874
- case 26:
31892
+ case 32:
31875
31893
  //falls ein Accessoire gelöscht wurde wird das Accessoire auch wo es beim Parent hinterlegt war auch gelöscht
31876
31894
  if (deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.relatedToBasketId) {
31877
31895
  (_set$getArticleByBask3 = set.getArticleByBasketId(deletedArticle.relatedToBasketId)) === null || _set$getArticleByBask3 === void 0 || _set$getArticleByBask3.removeAccessoire(deletedArticle.basketId);
@@ -31881,29 +31899,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
31881
31899
  deletedArticle === null || deletedArticle === void 0 || (_deletedArticle$doorP = deletedArticle.doorPlanner) === null || _deletedArticle$doorP === void 0 || _deletedArticle$doorP.deleteElement(deletedArticle.basketId);
31882
31900
  success = set.deleteArticle(article.basketId);
31883
31901
  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)) {
31884
- _context16.next = 32;
31902
+ _context16.next = 38;
31885
31903
  break;
31886
31904
  }
31887
- _context16.next = 32;
31905
+ _context16.next = 38;
31888
31906
  return this.updateArticlesOptionStatesOfActSet(set, {}, []);
31889
- case 32:
31890
- i++;
31891
- _context16.next = 7;
31892
- break;
31893
- case 35:
31907
+ case 38:
31894
31908
  return _context16.abrupt("return", {
31895
31909
  success: success,
31896
31910
  selectElementId: newSelectedElement,
31897
31911
  setId: setId,
31898
31912
  oldTransform: oldTransform
31899
31913
  });
31900
- case 36:
31914
+ case 39:
31901
31915
  case "end":
31902
31916
  return _context16.stop();
31903
31917
  }
31904
31918
  }, _callee14, this);
31905
31919
  }));
31906
- function deleteElementFromSet(_x41, _x42, _x43, _x44, _x45) {
31920
+ function deleteElementFromSet(_x41, _x42, _x43, _x44, _x45, _x46) {
31907
31921
  return _deleteElementFromSet.apply(this, arguments);
31908
31922
  }
31909
31923
  return deleteElementFromSet;
@@ -31978,7 +31992,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
31978
31992
  }
31979
31993
  }, _callee15, this);
31980
31994
  }));
31981
- function addAccessorieOnShelfPlanner(_x46, _x47, _x48, _x49, _x50) {
31995
+ function addAccessorieOnShelfPlanner(_x47, _x48, _x49, _x50, _x51) {
31982
31996
  return _addAccessorieOnShelfPlanner.apply(this, arguments);
31983
31997
  }
31984
31998
  return addAccessorieOnShelfPlanner;
@@ -32052,7 +32066,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32052
32066
  }
32053
32067
  }, _callee16, this);
32054
32068
  }));
32055
- function getFreeShelfGrids(_x51, _x52) {
32069
+ function getFreeShelfGrids(_x52, _x53) {
32056
32070
  return _getFreeShelfGrids.apply(this, arguments);
32057
32071
  }
32058
32072
  return getFreeShelfGrids;
@@ -32188,7 +32202,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32188
32202
  }
32189
32203
  }, _callee17, this);
32190
32204
  }));
32191
- function moveShelfItemToGrid(_x53, _x54, _x55, _x56, _x57) {
32205
+ function moveShelfItemToGrid(_x54, _x55, _x56, _x57, _x58) {
32192
32206
  return _moveShelfItemToGrid.apply(this, arguments);
32193
32207
  }
32194
32208
  return moveShelfItemToGrid;
@@ -32222,7 +32236,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32222
32236
  }
32223
32237
  }, _callee18, this);
32224
32238
  }));
32225
- function deleteAccessorieOnShelfPlanner(_x58, _x59, _x60, _x61, _x62) {
32239
+ function deleteAccessorieOnShelfPlanner(_x59, _x60, _x61, _x62, _x63) {
32226
32240
  return _deleteAccessorieOnShelfPlanner.apply(this, arguments);
32227
32241
  }
32228
32242
  return deleteAccessorieOnShelfPlanner;
@@ -32248,7 +32262,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32248
32262
  }
32249
32263
  }, _callee19, this);
32250
32264
  }));
32251
- function updatePlannerTrans(_x63, _x64, _x65, _x66, _x67, _x68, _x69) {
32265
+ function updatePlannerTrans(_x64, _x65, _x66, _x67, _x68, _x69, _x70) {
32252
32266
  return _updatePlannerTrans.apply(this, arguments);
32253
32267
  }
32254
32268
  return updatePlannerTrans;
@@ -32362,7 +32376,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32362
32376
  }
32363
32377
  }, _callee20, this);
32364
32378
  }));
32365
- function deleteAccessoire(_x70, _x71, _x72) {
32379
+ function deleteAccessoire(_x71, _x72, _x73) {
32366
32380
  return _deleteAccessoire.apply(this, arguments);
32367
32381
  }
32368
32382
  return deleteAccessoire;
@@ -32516,7 +32530,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32516
32530
  }
32517
32531
  }, _callee21, this);
32518
32532
  }));
32519
- function configSingleIsChanged(_x73, _x74, _x75, _x76) {
32533
+ function configSingleIsChanged(_x74, _x75, _x76, _x77) {
32520
32534
  return _configSingleIsChanged.apply(this, arguments);
32521
32535
  }
32522
32536
  return configSingleIsChanged;
@@ -32651,7 +32665,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32651
32665
  }
32652
32666
  }, _callee22, this);
32653
32667
  }));
32654
- function loadConfigItemsOfActSetByConfigStepKey(_x77, _x78, _x79) {
32668
+ function loadConfigItemsOfActSetByConfigStepKey(_x78, _x79, _x80) {
32655
32669
  return _loadConfigItemsOfActSetByConfigStepKey.apply(this, arguments);
32656
32670
  }
32657
32671
  return loadConfigItemsOfActSetByConfigStepKey;
@@ -32738,7 +32752,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32738
32752
  }
32739
32753
  }, _callee23, this);
32740
32754
  }));
32741
- function variantsEvaluator(_x80, _x81, _x82, _x83) {
32755
+ function variantsEvaluator(_x81, _x82, _x83, _x84) {
32742
32756
  return _variantsEvaluator.apply(this, arguments);
32743
32757
  }
32744
32758
  return variantsEvaluator;
@@ -32816,7 +32830,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32816
32830
  }
32817
32831
  }, _callee24, this);
32818
32832
  }));
32819
- function calcVariants(_x84, _x85, _x86) {
32833
+ function calcVariants(_x85, _x86, _x87) {
32820
32834
  return _calcVariants.apply(this, arguments);
32821
32835
  }
32822
32836
  return calcVariants;
@@ -32981,7 +32995,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32981
32995
  }
32982
32996
  }, _callee25, this);
32983
32997
  }));
32984
- function updateArticlesOptionStatesOfActSet(_x87, _x88, _x89, _x90, _x91, _x92) {
32998
+ function updateArticlesOptionStatesOfActSet(_x88, _x89, _x90, _x91, _x92, _x93) {
32985
32999
  return _updateArticlesOptionStatesOfActSet.apply(this, arguments);
32986
33000
  }
32987
33001
  return updateArticlesOptionStatesOfActSet;
@@ -33091,7 +33105,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33091
33105
  }
33092
33106
  }, _callee26, this);
33093
33107
  }));
33094
- function updateEdoArticles(_x93, _x94) {
33108
+ function updateEdoArticles(_x94, _x95) {
33095
33109
  return _updateEdoArticles.apply(this, arguments);
33096
33110
  }
33097
33111
  return updateEdoArticles;
@@ -33253,7 +33267,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33253
33267
  }
33254
33268
  }, _callee27);
33255
33269
  }));
33256
- function checkVariantData(_x95) {
33270
+ function checkVariantData(_x96) {
33257
33271
  return _checkVariantData.apply(this, arguments);
33258
33272
  }
33259
33273
  return checkVariantData;
@@ -33419,7 +33433,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33419
33433
  }
33420
33434
  }, _callee28, this);
33421
33435
  }));
33422
- function fillOrderLinesAndOrderSets(_x96, _x97, _x98, _x99, _x100) {
33436
+ function fillOrderLinesAndOrderSets(_x97, _x98, _x99, _x100, _x101) {
33423
33437
  return _fillOrderLinesAndOrderSets.apply(this, arguments);
33424
33438
  }
33425
33439
  return fillOrderLinesAndOrderSets;
@@ -33504,7 +33518,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33504
33518
  key: "getOrderSet",
33505
33519
  value: function () {
33506
33520
  var _getOrderSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(set, catalogData, posNr, divaNr, repairOnly, returnTo) {
33507
- var _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
33521
+ var _Object$values$, _set$getDivaArticles, _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
33508
33522
  var dontGenerateImages, orderSet, GroupType, plannerData, setImage, urlToPlanning2D, alternateSetImages, hqRenderScript, dimensions, promise3D, promise2D, promise3DAlternate, _yield$Promise$all, _yield$Promise$all2, _yield$Promise$all2$, promiseHQRenderScript, _yield$Promise$all3, _yield$Promise$all4, plannerWarnings, bruttoPrice;
33509
33523
  return _regeneratorRuntime__default["default"].wrap(function _callee29$(_context31) {
33510
33524
  while (1) switch (_context31.prev = _context31.next) {
@@ -33572,7 +33586,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33572
33586
  SetArticleNrPrefix: set.SetArticleNrPrefix,
33573
33587
  BBox: this.getBBoxObject(set, dimensions),
33574
33588
  SetVariantBasketDatas: set.getVariantBasketData(),
33575
- SetImage: setImage,
33589
+ SetImage: set.PlannerMode == 'No' ? (_Object$values$ = Object.values((_set$getDivaArticles = set.getDivaArticles()) !== null && _set$getDivaArticles !== void 0 ? _set$getDivaArticles : {})[0]) === null || _Object$values$ === void 0 ? void 0 : _Object$values$.imageUrl : setImage,
33576
33590
  //Add url string of current rendering.
33577
33591
  HQRenderScript: (_hqRenderScript = hqRenderScript) === null || _hqRenderScript === void 0 ? void 0 : _hqRenderScript._id,
33578
33592
  Set2DImage: urlToPlanning2D,
@@ -33610,7 +33624,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33610
33624
  }
33611
33625
  }, _callee29, this);
33612
33626
  }));
33613
- function getOrderSet(_x101, _x102, _x103, _x104, _x105, _x106) {
33627
+ function getOrderSet(_x102, _x103, _x104, _x105, _x106, _x107) {
33614
33628
  return _getOrderSet.apply(this, arguments);
33615
33629
  }
33616
33630
  return getOrderSet;
@@ -33660,7 +33674,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33660
33674
  }
33661
33675
  }, _callee30);
33662
33676
  }));
33663
- function getSetImage(_x107, _x108) {
33677
+ function getSetImage(_x108, _x109) {
33664
33678
  return _getSetImage.apply(this, arguments);
33665
33679
  }
33666
33680
  return getSetImage;
@@ -33706,7 +33720,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33706
33720
  }
33707
33721
  }, _callee31);
33708
33722
  }));
33709
- function getHQRenderScript(_x109, _x110) {
33723
+ function getHQRenderScript(_x110, _x111) {
33710
33724
  return _getHQRenderScript.apply(this, arguments);
33711
33725
  }
33712
33726
  return getHQRenderScript;
@@ -33747,7 +33761,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33747
33761
  }
33748
33762
  }, _callee32);
33749
33763
  }));
33750
- function getAlternateSetImages(_x111) {
33764
+ function getAlternateSetImages(_x112) {
33751
33765
  return _getAlternateSetImages.apply(this, arguments);
33752
33766
  }
33753
33767
  return getAlternateSetImages;
@@ -33778,7 +33792,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33778
33792
  }
33779
33793
  }, _callee33);
33780
33794
  }));
33781
- function get2DSetImage(_x112) {
33795
+ function get2DSetImage(_x113) {
33782
33796
  return _get2DSetImage.apply(this, arguments);
33783
33797
  }
33784
33798
  return get2DSetImage;
@@ -33793,8 +33807,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33793
33807
  Y: (_dimensions$d = dimensions === null || dimensions === void 0 ? void 0 : dimensions.d) !== null && _dimensions$d !== void 0 ? _dimensions$d : bbox.depth,
33794
33808
  Z: (_dimensions$h = dimensions === null || dimensions === void 0 ? void 0 : dimensions.h) !== null && _dimensions$h !== void 0 ? _dimensions$h : bbox.height
33795
33809
  };
33810
+ if (set.PlannerMode == 'No') {
33811
+ var article = Object.values(set.getDivaArticles())[0];
33812
+ dim.X = article === null || article === void 0 ? void 0 : article.width;
33813
+ dim.Y = article === null || article === void 0 ? void 0 : article.depth;
33814
+ dim.Z = article === null || article === void 0 ? void 0 : article.height;
33815
+ }
33796
33816
  return _objectSpread$8(_objectSpread$8({}, dim), {}, {
33797
- Info: ((_set$api$getI18n$t = (_set$api$getI18n = set.api.getI18n()) === null || _set$api$getI18n === void 0 || (_set$api$getI18n$t2 = _set$api$getI18n.t) === null || _set$api$getI18n$t2 === void 0 ? void 0 : _set$api$getI18n$t2.call(_set$api$getI18n, 'utils.width_first_letter', 'B')) !== null && _set$api$getI18n$t !== void 0 ? _set$api$getI18n$t : 'B') + ': ' + dim.X + ' cm x ' + ((_set$api$getI18n$t3 = (_set$api$getI18n2 = set.api.getI18n()) === null || _set$api$getI18n2 === void 0 || (_set$api$getI18n2$t = _set$api$getI18n2.t) === null || _set$api$getI18n2$t === void 0 ? void 0 : _set$api$getI18n2$t.call(_set$api$getI18n2, 'utils.depth_first_letter', 'T')) !== null && _set$api$getI18n$t3 !== void 0 ? _set$api$getI18n$t3 : 'T') + ': ' + dim.Y + ' cm' + (dim.Z ? ' x ' + ((_set$api$getI18n$t4 = (_set$api$getI18n3 = set.api.getI18n()) === null || _set$api$getI18n3 === void 0 || (_set$api$getI18n3$t = _set$api$getI18n3.t) === null || _set$api$getI18n3$t === void 0 ? void 0 : _set$api$getI18n3$t.call(_set$api$getI18n3, 'utils.height_first_letter', 'H')) !== null && _set$api$getI18n$t4 !== void 0 ? _set$api$getI18n$t4 : 'H') + ': ' + dim.X + ' cm' : '')
33817
+ Info: ((_set$api$getI18n$t = (_set$api$getI18n = set.api.getI18n()) === null || _set$api$getI18n === void 0 || (_set$api$getI18n$t2 = _set$api$getI18n.t) === null || _set$api$getI18n$t2 === void 0 ? void 0 : _set$api$getI18n$t2.call(_set$api$getI18n, 'utils.width_first_letter', 'B')) !== null && _set$api$getI18n$t !== void 0 ? _set$api$getI18n$t : 'B') + ': ' + dim.X + ' cm x ' + ((_set$api$getI18n$t3 = (_set$api$getI18n2 = set.api.getI18n()) === null || _set$api$getI18n2 === void 0 || (_set$api$getI18n2$t = _set$api$getI18n2.t) === null || _set$api$getI18n2$t === void 0 ? void 0 : _set$api$getI18n2$t.call(_set$api$getI18n2, 'utils.depth_first_letter', 'T')) !== null && _set$api$getI18n$t3 !== void 0 ? _set$api$getI18n$t3 : 'T') + ': ' + dim.Y + ' cm' + (dim.Z ? ' x ' + ((_set$api$getI18n$t4 = (_set$api$getI18n3 = set.api.getI18n()) === null || _set$api$getI18n3 === void 0 || (_set$api$getI18n3$t = _set$api$getI18n3.t) === null || _set$api$getI18n3$t === void 0 ? void 0 : _set$api$getI18n3$t.call(_set$api$getI18n3, 'utils.height_first_letter', 'H')) !== null && _set$api$getI18n$t4 !== void 0 ? _set$api$getI18n$t4 : 'H') + ': ' + dim.Z + ' cm' : '')
33798
33818
  });
33799
33819
  }
33800
33820
  }, {
@@ -33842,7 +33862,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33842
33862
  }
33843
33863
  }, _callee34, this);
33844
33864
  }));
33845
- function addOrderSetArticlesToExistingSet(_x113, _x114, _x115) {
33865
+ function addOrderSetArticlesToExistingSet(_x114, _x115, _x116) {
33846
33866
  return _addOrderSetArticlesToExistingSet.apply(this, arguments);
33847
33867
  }
33848
33868
  return addOrderSetArticlesToExistingSet;
@@ -34449,8 +34469,9 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34449
34469
  }
34450
34470
  }, {
34451
34471
  key: "getBasketData",
34452
- value: function getBasketData(divaNr) {
34453
- return this.baskets[divaNr];
34472
+ value: function getBasketData(divaNr, variantId) {
34473
+ var _this$baskets;
34474
+ return (_this$baskets = this.baskets[divaNr + '-' + variantId]) !== null && _this$baskets !== void 0 ? _this$baskets : this.baskets[divaNr];
34454
34475
  }
34455
34476
  }, {
34456
34477
  key: "setBasketData",
@@ -34892,7 +34913,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34892
34913
  break;
34893
34914
  case 3:
34894
34915
  _context12.next = 5;
34895
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-a19fb640.js'); });
34916
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-20a3aa88.js'); });
34896
34917
  case 5:
34897
34918
  _yield$import = _context12.sent;
34898
34919
  PfisterWWSHandler = _yield$import["default"];
@@ -34900,7 +34921,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34900
34921
  return _context12.abrupt("break", 27);
34901
34922
  case 9:
34902
34923
  _context12.next = 11;
34903
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-5968a440.js'); });
34924
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-2b0c9046.js'); });
34904
34925
  case 11:
34905
34926
  _yield$import2 = _context12.sent;
34906
34927
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34908,7 +34929,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34908
34929
  return _context12.abrupt("break", 27);
34909
34930
  case 15:
34910
34931
  _context12.next = 17;
34911
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-afe39b25.js'); });
34932
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-20b5e9bd.js'); });
34912
34933
  case 17:
34913
34934
  _yield$import3 = _context12.sent;
34914
34935
  SeriousWWSHandler = _yield$import3["default"];
@@ -34916,7 +34937,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34916
34937
  return _context12.abrupt("break", 27);
34917
34938
  case 21:
34918
34939
  _context12.next = 23;
34919
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-d56e153f.js'); });
34940
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-301ce47d.js'); });
34920
34941
  case 23:
34921
34942
  _yield$import4 = _context12.sent;
34922
34943
  StandardWWSHandler = _yield$import4["default"];
@@ -36251,7 +36272,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36251
36272
  while (1) switch (_context3.prev = _context3.next) {
36252
36273
  case 0:
36253
36274
  _context3.next = 2;
36254
- return Promise.resolve().then(function () { return require('./Host3DSignalR-38042dd4.js'); });
36275
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-fe254b6c.js'); });
36255
36276
  case 2:
36256
36277
  _yield$import = _context3.sent;
36257
36278
  Host3DSignalR = _yield$import["default"];
@@ -37794,18 +37815,18 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37794
37815
  break;
37795
37816
  case 8:
37796
37817
  _context4.next = 10;
37797
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-d545a524.js'); });
37818
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-8f22cd16.js'); });
37798
37819
  case 10:
37799
37820
  _yield$import = _context4.sent;
37800
37821
  DivaStandardPlanner = _yield$import["default"];
37801
- planner = new DivaStandardPlanner(set, this.plannerHandlerFunctions.updatePlannerMsgContainer, this.plannerIDCount, this.setPlannerHandler.getGlobalBoundingBox(), set.api.getHidePlanner(), !!set.api.getDoShowAR(), set.api.getDoDisablePlanner2D(), hasStaticBackground);
37822
+ planner = new DivaStandardPlanner(set, this.plannerHandlerFunctions.updatePlannerMsgContainer, this.plannerIDCount, this.setPlannerHandler.getGlobalBoundingBox(), set.api.getHidePlanner(), !!set.api.enableAR, set.api.getDoDisablePlanner2D(), hasStaticBackground);
37802
37823
  if (catalogData.isIDM3DCat) {
37803
37824
  planner.initIDM3DMeta(catalogData.IDM3DCatCodex);
37804
37825
  }
37805
37826
  return _context4.abrupt("break", 21);
37806
37827
  case 15:
37807
37828
  _context4.next = 17;
37808
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-b8c943f9.js'); });
37829
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-1dbb2b3e.js'); });
37809
37830
  case 17:
37810
37831
  _yield$import2 = _context4.sent;
37811
37832
  DivaBoxPlanner = _yield$import2["default"];
@@ -40628,7 +40649,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40628
40649
  key: "saveToBasket",
40629
40650
  value: function () {
40630
40651
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, force) {
40631
- var _returnTo, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34;
40652
+ var _returnTo, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34, _this$divaBasketHandl2;
40632
40653
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
40633
40654
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
40634
40655
  while (1) switch (_context26.prev = _context26.next) {
@@ -40746,7 +40767,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40746
40767
  return _context26.abrupt("break", 52);
40747
40768
  case 52:
40748
40769
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
40749
- actBasket = this.divaBasketHandler.getBasketData(actBasket.DivaNr); //get pdf documenturl from saved basket
40770
+ actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
40750
40771
  _context26.next = 56;
40751
40772
  return this.addToBasket(actBasket, event);
40752
40773
  case 56:
@@ -40896,8 +40917,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40896
40917
  }, {
40897
40918
  key: "doAllowSetPlanner",
40898
40919
  value: function doAllowSetPlanner() {
40899
- var _this$returnTo, _this$divaBasketHandl2;
40900
- return this.api.doAllowSetPlanner() || ((_this$returnTo = this.returnTo) === null || _this$returnTo === void 0 ? void 0 : _this$returnTo.startsWith('SETPLANNER')) || !!((_this$divaBasketHandl2 = this.divaBasketHandler) !== null && _this$divaBasketHandl2 !== void 0 && (_this$divaBasketHandl2 = _this$divaBasketHandl2.actBasket) !== null && _this$divaBasketHandl2 !== void 0 && _this$divaBasketHandl2.SetPlannerInfos);
40920
+ var _this$returnTo, _this$divaBasketHandl3;
40921
+ return this.api.doAllowSetPlanner() || ((_this$returnTo = this.returnTo) === null || _this$returnTo === void 0 ? void 0 : _this$returnTo.startsWith('SETPLANNER')) || !!((_this$divaBasketHandl3 = this.divaBasketHandler) !== null && _this$divaBasketHandl3 !== void 0 && (_this$divaBasketHandl3 = _this$divaBasketHandl3.actBasket) !== null && _this$divaBasketHandl3 !== void 0 && _this$divaBasketHandl3.SetPlannerInfos);
40901
40922
  }
40902
40923
  }, {
40903
40924
  key: "doShow3DDimensionLines",
@@ -40934,18 +40955,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40934
40955
  }, {
40935
40956
  key: "getAllowRTV",
40936
40957
  value: function getAllowRTV() {
40937
- var _this$actSet22, _this$actSet23;
40958
+ var _this$state3, _this$actSet22, _this$state4, _this$actSet23;
40938
40959
  if (this.getEnableUnityRtvKombi()) return false;
40939
- if (this.api.forceShowRTV()) return true;
40960
+ if ((_this$state3 = this.state) !== null && _this$state3 !== void 0 && _this$state3.organization.settings.forceRTV) return true;
40940
40961
  if ((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaForceRTV) return true;
40941
- if (this.api.getDoShowRTV() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
40962
+ if ((_this$state4 = this.state) !== null && _this$state4 !== void 0 && _this$state4.organization.settings.enableRTV && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
40942
40963
  return false;
40943
40964
  }
40944
40965
  }, {
40945
- key: "geAllowQRCodeAR",
40946
- value: function geAllowQRCodeAR() {
40966
+ key: "getAllowQRCodeAR",
40967
+ value: function getAllowQRCodeAR() {
40947
40968
  var _this$actSet24;
40948
- if (this.api.getDoShowAR() && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
40969
+ if (this.api.enableAR && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
40949
40970
  return false;
40950
40971
  }
40951
40972
  }, {
@@ -41023,7 +41044,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41023
41044
  _this$actions37,
41024
41045
  _this$actions38,
41025
41046
  _this$actions39,
41026
- _this$divaBasketHandl3,
41047
+ _this$divaBasketHandl4,
41027
41048
  _this3 = this,
41028
41049
  _this$actions40,
41029
41050
  _this$actions41,
@@ -41075,7 +41096,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41075
41096
  });
41076
41097
  return _context28.abrupt("break", 32);
41077
41098
  case 15:
41078
- emailConfig = (_this$divaBasketHandl3 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl3 !== void 0 ? _this$divaBasketHandl3 : this.getEmailConfig(); //reset the emailConfig
41099
+ emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
41079
41100
  this.divaBasketHandler.emailConfig = undefined;
41080
41101
  if (emailConfig) {
41081
41102
  to = (_emailConfig$to$split = (_emailConfig$to = emailConfig.to) === null || _emailConfig$to === void 0 ? void 0 : _emailConfig$to.split(',').map(function (mail) {