@crystaldesign/web-planner-logic 24.14.0-beta.2 → 24.14.0-beta.21

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 (40) hide show
  1. package/build/cjs/{DivaBoxPlanner-2c3ad573.js → DivaBoxPlanner-1dbb2b3e.js} +7 -5
  2. package/build/cjs/{DivaStandardPlanner-2712c847.js → DivaStandardPlanner-8f22cd16.js} +3 -3
  3. package/build/cjs/{DoorPlanner-660c92f8.js → DoorPlanner-b0a67ddd.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-67d1bbd5.js → Host3DSignalR-fe254b6c.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-59d934f3.js → LiviqueWWSHandler-2b0c9046.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-4792814e.js → PfisterWWSHandler-20a3aa88.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-a209c839.js → PlannerHandler2D-56d91a4c.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-79c2b600.js → SeriousBasketHandler-20b5e9bd.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-92294342.js → ShelfPlanner-b10b303f.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-d6dfcbbe.js → StandardWWSHandler-301ce47d.js} +1 -1
  11. package/build/cjs/{index-2bfc75a1.js → index-7b3afec0.js} +230 -199
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-d8275f1e.js → DivaBoxPlanner-18be0386.js} +7 -5
  14. package/build/esm/{DivaStandardPlanner-20b8fe29.js → DivaStandardPlanner-4a467c1f.js} +3 -3
  15. package/build/esm/{DoorPlanner-c06b15c0.js → DoorPlanner-14a4b738.js} +1 -1
  16. package/build/esm/{Host3DSignalR-829f756b.js → Host3DSignalR-b7a3ef2b.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-d9eb5296.js → LiviqueWWSHandler-1d8bd04d.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-cc0d15f9.js → PfisterWWSHandler-306890c4.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-91372ea4.js → PlannerHandler2D-7ec24382.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-da2d5909.js → SeriousBasketHandler-b9a37881.js} +1 -1
  21. package/build/esm/{ShelfPlanner-601413ca.js → ShelfPlanner-8ceb3faa.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-c72e0f32.js → StandardWWSHandler-e18e1760.js} +1 -1
  23. package/build/esm/{index-f240c58e.js → index-a443016b.js} +230 -199
  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 +3 -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/Planner/Rendering/PlannerHandler3D.d.ts.map +1 -1
  38. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +1 -1
  39. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  40. 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-92294342.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-660c92f8.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;
@@ -33884,6 +33904,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
33884
33904
  _defineProperty__default["default"](this, "_basketHandler", void 0);
33885
33905
  _defineProperty__default["default"](this, "startProductId", void 0);
33886
33906
  _defineProperty__default["default"](this, "initializationType", void 0);
33907
+ _defineProperty__default["default"](this, "hasConfiguratorSessionId", false);
33887
33908
  //Only helper variable
33888
33909
  _defineProperty__default["default"](this, "origConfiguration", {});
33889
33910
  /**
@@ -33910,6 +33931,11 @@ var DivaBasketHandler = /*#__PURE__*/function () {
33910
33931
  }
33911
33932
  }
33912
33933
  return _createClass__default["default"](DivaBasketHandler, [{
33934
+ key: "hasConfiguratorSessionIdGetter",
33935
+ get: function get() {
33936
+ return this.hasConfiguratorSessionId;
33937
+ }
33938
+ }, {
33913
33939
  key: "initializationTypeGetter",
33914
33940
  get: function get() {
33915
33941
  return this.initializationType;
@@ -33972,13 +33998,13 @@ var DivaBasketHandler = /*#__PURE__*/function () {
33972
33998
  this.startProductId = undefined;
33973
33999
  LOG$7.debug("Basket initialising. initObject is: '", this.plannerConfig, "' divaNr to load is: '" + this.loadDivaNr + "'");
33974
34000
  if (this.ignoreInitObjectWhenInitializing) {
33975
- _context.next = 36;
34001
+ _context.next = 37;
33976
34002
  break;
33977
34003
  }
33978
34004
  returnSuccessfully = false; //UseCase 1
33979
34005
  //Basket wird mit basket aus auftrage neu eröffnet zum bearbeiten
33980
34006
  if (!this.plannerConfig.basketData) {
33981
- _context.next = 28;
34007
+ _context.next = 29;
33982
34008
  break;
33983
34009
  }
33984
34010
  if (!this.plannerConfig.assignNewDivaNr) {
@@ -34025,17 +34051,18 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34025
34051
  }
34026
34052
  this.specificSetIdToLoad = this.plannerConfig.setId;
34027
34053
  this.initializationType = 'BASKET';
34054
+ this.hasConfiguratorSessionId = true;
34028
34055
  returnSuccessfully = true;
34029
- case 28:
34056
+ case 29:
34030
34057
  if (!this.plannerConfig.catalogCodex) {
34031
- _context.next = 32;
34058
+ _context.next = 33;
34032
34059
  break;
34033
34060
  }
34034
- _context.next = 31;
34061
+ _context.next = 32;
34035
34062
  return this.loadBasketByCatalogCodex(api);
34036
- case 31:
34037
- returnSuccessfully = _context.sent;
34038
34063
  case 32:
34064
+ returnSuccessfully = _context.sent;
34065
+ case 33:
34039
34066
  if (DivaUtils__default["default"].bridge) {
34040
34067
  DivaUtils__default["default"].bridge.sendMessage({
34041
34068
  type: 'ABN',
@@ -34048,55 +34075,55 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34048
34075
  this.initializationType = 'MODELINFO';
34049
34076
  }
34050
34077
  if (!returnSuccessfully) {
34051
- _context.next = 36;
34078
+ _context.next = 37;
34052
34079
  break;
34053
34080
  }
34054
34081
  return _context.abrupt("return", returnSuccessfully);
34055
- case 36:
34082
+ case 37:
34056
34083
  if (!this.loadDivaNr) {
34057
- _context.next = 43;
34084
+ _context.next = 44;
34058
34085
  break;
34059
34086
  }
34060
34087
  this.initializationType = 'SERVER_DIVANR';
34061
- _context.next = 40;
34088
+ _context.next = 41;
34062
34089
  return this.loadBasketByDivaNr(api, this.loadDivaNr);
34063
- case 40:
34090
+ case 41:
34064
34091
  return _context.abrupt("return", _context.sent);
34065
- case 43:
34092
+ case 44:
34066
34093
  if (!this.plannerConfig.customProductId) {
34067
- _context.next = 54;
34094
+ _context.next = 55;
34068
34095
  break;
34069
34096
  }
34070
34097
  this.assignNewDivaNr = true;
34071
34098
  params = api.getLoadProductBasketParams();
34072
34099
  if (!params) {
34073
- _context.next = 50;
34100
+ _context.next = 51;
34074
34101
  break;
34075
34102
  }
34076
- _context.next = 49;
34103
+ _context.next = 50;
34077
34104
  return this.loadBasketByCustomProductId(api, params.customProductField, this.plannerConfig.customProductId, (_params$customFieldsT = params.customFieldsToLoad) !== null && _params$customFieldsT !== void 0 && _params$customFieldsT.length ? params.customFieldsToLoad : []);
34078
- case 49:
34079
- return _context.abrupt("return", _context.sent);
34080
34105
  case 50:
34106
+ return _context.abrupt("return", _context.sent);
34107
+ case 51:
34081
34108
  this.initializationType = 'CUSTOM_PRODUCT_ID';
34082
34109
  return _context.abrupt("return", false);
34083
- case 54:
34110
+ case 55:
34084
34111
  if (!this.plannerConfig.productId) {
34085
- _context.next = 62;
34112
+ _context.next = 63;
34086
34113
  break;
34087
34114
  }
34088
34115
  this.assignNewDivaNr = true;
34089
34116
  this.initializationType = 'PRODUCT_ID';
34090
- _context.next = 59;
34117
+ _context.next = 60;
34091
34118
  return this.initProductId(api, this.plannerConfig.productId);
34092
- case 59:
34119
+ case 60:
34093
34120
  return _context.abrupt("return", _context.sent);
34094
- case 62:
34121
+ case 63:
34095
34122
  if (!((_this$plannerConfig$s3 = this.plannerConfig.settings) !== null && _this$plannerConfig$s3 !== void 0 && (_this$plannerConfig$s3 = _this$plannerConfig$s3.ViewConfig) !== null && _this$plannerConfig$s3 !== void 0 && _this$plannerConfig$s3.loadStartProduct)) {
34096
- _context.next = 85;
34123
+ _context.next = 86;
34097
34124
  break;
34098
34125
  }
34099
- _context.next = 65;
34126
+ _context.next = 66;
34100
34127
  return (_this$plannerConfig$h = this.plannerConfig.handler) === null || _this$plannerConfig$h === void 0 ? void 0 : _this$plannerConfig$h.productHandler.apiGetProductByFilter([{
34101
34128
  id: 'startProductForOrganizations',
34102
34129
  op: 'eq',
@@ -34110,35 +34137,35 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34110
34137
  op: 'eq',
34111
34138
  value: (_this$plannerConfig$c3 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c3 === void 0 ? void 0 : _this$plannerConfig$c3._id
34112
34139
  }]);
34113
- case 65:
34140
+ case 66:
34114
34141
  result = _context.sent;
34115
34142
  if (!(result !== null && result !== void 0 && (_result$data$ = result.data[0]) !== null && _result$data$ !== void 0 && _result$data$._id)) {
34116
- _context.next = 74;
34143
+ _context.next = 75;
34117
34144
  break;
34118
34145
  }
34119
34146
  this.startProductId = result === null || result === void 0 || (_result$data$2 = result.data[0]) === null || _result$data$2 === void 0 ? void 0 : _result$data$2._id;
34120
34147
  this.initializationType = 'START_PRODUCT';
34121
- _context.next = 71;
34148
+ _context.next = 72;
34122
34149
  return this.initProductId(api, result.data[0]._id);
34123
- case 71:
34150
+ case 72:
34124
34151
  return _context.abrupt("return", _context.sent);
34125
- case 74:
34152
+ case 75:
34126
34153
  successfully = false;
34127
34154
  if (!((_this$plannerConfig$s4 = this.plannerConfig.settings) !== null && _this$plannerConfig$s4 !== void 0 && (_this$plannerConfig$s4 = _this$plannerConfig$s4.ViewConfig) !== null && _this$plannerConfig$s4 !== void 0 && _this$plannerConfig$s4.initFirstCatalog)) {
34128
- _context.next = 79;
34155
+ _context.next = 80;
34129
34156
  break;
34130
34157
  }
34131
- _context.next = 78;
34158
+ _context.next = 79;
34132
34159
  return this.tryInitFirstCatalog(api);
34133
- case 78:
34134
- successfully = _context.sent;
34135
34160
  case 79:
34161
+ successfully = _context.sent;
34162
+ case 80:
34136
34163
  if (!successfully) {
34137
- _context.next = 81;
34164
+ _context.next = 82;
34138
34165
  break;
34139
34166
  }
34140
34167
  return _context.abrupt("return", true);
34141
- case 81:
34168
+ case 82:
34142
34169
  (_this$plannerConfig$a5 = this.plannerConfig.actions) === null || _this$plannerConfig$a5 === void 0 || _this$plannerConfig$a5.openModal({
34143
34170
  accept: false,
34144
34171
  reject: false,
@@ -34147,23 +34174,23 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34147
34174
  text: (_api$getI18n2 = api.getI18n()) === null || _api$getI18n2 === void 0 ? void 0 : _api$getI18n2.t('configurator.no_startproduct_defined_text')
34148
34175
  });
34149
34176
  LOG$7.error(new DivaUtils.DivaError('it is configured to initialize the startProductForOrganizations if there are no other parameters. But no available product was found with organizationId: "' + this.plannerConfig.currentOrganization._id + '" in the field: "startProductForOrganizations"!'));
34150
- case 83:
34151
- _context.next = 90;
34177
+ case 84:
34178
+ _context.next = 91;
34152
34179
  break;
34153
- case 85:
34180
+ case 86:
34154
34181
  if (!((_this$plannerConfig$s5 = this.plannerConfig.settings) !== null && _this$plannerConfig$s5 !== void 0 && (_this$plannerConfig$s5 = _this$plannerConfig$s5.ViewConfig) !== null && _this$plannerConfig$s5 !== void 0 && _this$plannerConfig$s5.initFirstCatalog)) {
34155
- _context.next = 90;
34182
+ _context.next = 91;
34156
34183
  break;
34157
34184
  }
34158
34185
  //USECASE 7 Default Catalog gets initialized
34159
34186
  this.initializationType = 'DEFAULT_CATALOG';
34160
- _context.next = 89;
34187
+ _context.next = 90;
34161
34188
  return this.tryInitFirstCatalog(api);
34162
- case 89:
34163
- return _context.abrupt("return", _context.sent);
34164
34189
  case 90:
34190
+ return _context.abrupt("return", _context.sent);
34191
+ case 91:
34165
34192
  if (!((_api$getPlannerType = api.getPlannerType()) !== null && _api$getPlannerType !== void 0 && _api$getPlannerType.includes('PRODUCTS') || (_this$plannerConfig$r = this.plannerConfig.returnTo) !== null && _this$plannerConfig$r !== void 0 && _this$plannerConfig$r.startsWith('SETPLANNER_OPEN_SELLER_BASKET'))) {
34166
- _context.next = 93;
34193
+ _context.next = 94;
34167
34194
  break;
34168
34195
  }
34169
34196
  //UseCase 8
@@ -34172,9 +34199,9 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34172
34199
  return _context.abrupt("return", {
34173
34200
  type: 'ProductList'
34174
34201
  });
34175
- case 93:
34176
- return _context.abrupt("return", false);
34177
34202
  case 94:
34203
+ return _context.abrupt("return", false);
34204
+ case 95:
34178
34205
  case "end":
34179
34206
  return _context.stop();
34180
34207
  }
@@ -34442,8 +34469,9 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34442
34469
  }
34443
34470
  }, {
34444
34471
  key: "getBasketData",
34445
- value: function getBasketData(divaNr) {
34446
- 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];
34447
34475
  }
34448
34476
  }, {
34449
34477
  key: "setBasketData",
@@ -34885,7 +34913,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34885
34913
  break;
34886
34914
  case 3:
34887
34915
  _context12.next = 5;
34888
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-4792814e.js'); });
34916
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-20a3aa88.js'); });
34889
34917
  case 5:
34890
34918
  _yield$import = _context12.sent;
34891
34919
  PfisterWWSHandler = _yield$import["default"];
@@ -34893,7 +34921,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34893
34921
  return _context12.abrupt("break", 27);
34894
34922
  case 9:
34895
34923
  _context12.next = 11;
34896
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-59d934f3.js'); });
34924
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-2b0c9046.js'); });
34897
34925
  case 11:
34898
34926
  _yield$import2 = _context12.sent;
34899
34927
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34901,7 +34929,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34901
34929
  return _context12.abrupt("break", 27);
34902
34930
  case 15:
34903
34931
  _context12.next = 17;
34904
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-79c2b600.js'); });
34932
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-20b5e9bd.js'); });
34905
34933
  case 17:
34906
34934
  _yield$import3 = _context12.sent;
34907
34935
  SeriousWWSHandler = _yield$import3["default"];
@@ -34909,7 +34937,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34909
34937
  return _context12.abrupt("break", 27);
34910
34938
  case 21:
34911
34939
  _context12.next = 23;
34912
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-d6dfcbbe.js'); });
34940
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-301ce47d.js'); });
34913
34941
  case 23:
34914
34942
  _yield$import4 = _context12.sent;
34915
34943
  StandardWWSHandler = _yield$import4["default"];
@@ -36244,7 +36272,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36244
36272
  while (1) switch (_context3.prev = _context3.next) {
36245
36273
  case 0:
36246
36274
  _context3.next = 2;
36247
- return Promise.resolve().then(function () { return require('./Host3DSignalR-67d1bbd5.js'); });
36275
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-fe254b6c.js'); });
36248
36276
  case 2:
36249
36277
  _yield$import = _context3.sent;
36250
36278
  Host3DSignalR = _yield$import["default"];
@@ -37086,7 +37114,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37086
37114
  _this2.liveArSocket.auth = _objectSpread$6(_objectSpread$6({}, _this2.liveArSocket.auth), {}, {
37087
37115
  connectionId: data.connectionId
37088
37116
  });
37089
- resolve(_this2.liveArViewerUrl + '?liveArConnectionId=' + data.connectionId + '&organizationId=' + _this2.renderSettings.OrganizationId + '&divaSessionId=' + DivaUtils__default["default"].SessionId);
37117
+ resolve(_this2.liveArViewerUrl + '?liveArConnectionId=' + data.connectionId + '&organizationId=' + _this2.renderSettings.OrganizationId + '&divaSessionId=' + DivaUtils__default["default"].SessionId + DivaUtils__default["default"].ConfigurationId ? '&configurationId=' + DivaUtils__default["default"].ConfigurationId : '');
37090
37118
  });
37091
37119
  _this2.liveArSocket.on('connect_error', function (err) {
37092
37120
  return reject(err);
@@ -37787,18 +37815,18 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37787
37815
  break;
37788
37816
  case 8:
37789
37817
  _context4.next = 10;
37790
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-2712c847.js'); });
37818
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-8f22cd16.js'); });
37791
37819
  case 10:
37792
37820
  _yield$import = _context4.sent;
37793
37821
  DivaStandardPlanner = _yield$import["default"];
37794
- 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);
37795
37823
  if (catalogData.isIDM3DCat) {
37796
37824
  planner.initIDM3DMeta(catalogData.IDM3DCatCodex);
37797
37825
  }
37798
37826
  return _context4.abrupt("break", 21);
37799
37827
  case 15:
37800
37828
  _context4.next = 17;
37801
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-2c3ad573.js'); });
37829
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-1dbb2b3e.js'); });
37802
37830
  case 17:
37803
37831
  _yield$import2 = _context4.sent;
37804
37832
  DivaBoxPlanner = _yield$import2["default"];
@@ -39525,7 +39553,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39525
39553
  case 12:
39526
39554
  loadSuccessful = _context13.sent;
39527
39555
  if (!loadSuccessful) {
39528
- _context13.next = 60;
39556
+ _context13.next = 61;
39529
39557
  break;
39530
39558
  }
39531
39559
  if (!(typeof loadSuccessful != 'boolean')) {
@@ -39600,6 +39628,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39600
39628
  this.subscribeToWebPlannerEvents();
39601
39629
  this.divaBasketHandler.actBasket;
39602
39630
  catalogData = set === null || set === void 0 ? void 0 : set.CatalogData;
39631
+ if (!this.divaBasketHandler.hasConfiguratorSessionIdGetter || DivaUtils__default["default"].businessMetrics.getConfiguratorSessionId() == undefined) {
39632
+ DivaUtils__default["default"].businessMetrics.setConfiguratorSessionId();
39633
+ }
39603
39634
  initializationId = undefined;
39604
39635
  if (this.divaBasketHandler.initializationTypeGetter == 'PRODUCT_ID') {
39605
39636
  //KONFIGURATOR LOADED BY PRODUCT. LOG THIS HERE! WITH PRODUCT NAME AND PRODUCT ID
@@ -39623,16 +39654,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39623
39654
  initializationType: this.divaBasketHandler.initializationTypeGetter,
39624
39655
  initializationId: initializationId
39625
39656
  }, false);
39626
- _context13.next = 57;
39657
+ _context13.next = 58;
39627
39658
  return this.fillBaksetforOnWebPlanerConfigChange(undefined, true);
39628
- case 57:
39659
+ case 58:
39629
39660
  return _context13.abrupt("return", true);
39630
- case 60:
39661
+ case 61:
39631
39662
  this.onInitializationError();
39632
39663
  //fehler beim laden vom basket..
39633
39664
  LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
39634
39665
  return _context13.abrupt("return", false);
39635
- case 63:
39666
+ case 64:
39636
39667
  case "end":
39637
39668
  return _context13.stop();
39638
39669
  }
@@ -40618,7 +40649,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40618
40649
  key: "saveToBasket",
40619
40650
  value: function () {
40620
40651
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, force) {
40621
- var _returnTo, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34;
40652
+ var _returnTo, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34, _this$divaBasketHandl2;
40622
40653
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
40623
40654
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
40624
40655
  while (1) switch (_context26.prev = _context26.next) {
@@ -40736,7 +40767,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40736
40767
  return _context26.abrupt("break", 52);
40737
40768
  case 52:
40738
40769
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
40739
- 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
40740
40771
  _context26.next = 56;
40741
40772
  return this.addToBasket(actBasket, event);
40742
40773
  case 56:
@@ -40886,8 +40917,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40886
40917
  }, {
40887
40918
  key: "doAllowSetPlanner",
40888
40919
  value: function doAllowSetPlanner() {
40889
- var _this$returnTo, _this$divaBasketHandl2;
40890
- 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);
40891
40922
  }
40892
40923
  }, {
40893
40924
  key: "doShow3DDimensionLines",
@@ -40924,18 +40955,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40924
40955
  }, {
40925
40956
  key: "getAllowRTV",
40926
40957
  value: function getAllowRTV() {
40927
- var _this$actSet22, _this$actSet23;
40958
+ var _this$state3, _this$actSet22, _this$state4, _this$actSet23;
40928
40959
  if (this.getEnableUnityRtvKombi()) return false;
40929
- if (this.api.forceShowRTV()) return true;
40960
+ if ((_this$state3 = this.state) !== null && _this$state3 !== void 0 && _this$state3.organization.settings.forceRTV) return true;
40930
40961
  if ((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaForceRTV) return true;
40931
- 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;
40932
40963
  return false;
40933
40964
  }
40934
40965
  }, {
40935
- key: "geAllowQRCodeAR",
40936
- value: function geAllowQRCodeAR() {
40966
+ key: "getAllowQRCodeAR",
40967
+ value: function getAllowQRCodeAR() {
40937
40968
  var _this$actSet24;
40938
- 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;
40939
40970
  return false;
40940
40971
  }
40941
40972
  }, {
@@ -41013,7 +41044,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41013
41044
  _this$actions37,
41014
41045
  _this$actions38,
41015
41046
  _this$actions39,
41016
- _this$divaBasketHandl3,
41047
+ _this$divaBasketHandl4,
41017
41048
  _this3 = this,
41018
41049
  _this$actions40,
41019
41050
  _this$actions41,
@@ -41065,7 +41096,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41065
41096
  });
41066
41097
  return _context28.abrupt("break", 32);
41067
41098
  case 15:
41068
- 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
41069
41100
  this.divaBasketHandler.emailConfig = undefined;
41070
41101
  if (emailConfig) {
41071
41102
  to = (_emailConfig$to$split = (_emailConfig$to = emailConfig.to) === null || _emailConfig$to === void 0 ? void 0 : _emailConfig$to.split(',').map(function (mail) {