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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/build/cjs/{DivaBoxPlanner-2c3ad573.js → DivaBoxPlanner-c64b3f8e.js} +8 -6
  2. package/build/cjs/{DivaStandardPlanner-2712c847.js → DivaStandardPlanner-20a3cd6b.js} +4 -4
  3. package/build/cjs/{DoorPlanner-660c92f8.js → DoorPlanner-83441a1d.js} +2 -2
  4. package/build/cjs/{Host3DSignalR-67d1bbd5.js → Host3DSignalR-9cb30c6a.js} +2 -2
  5. package/build/cjs/{LiviqueWWSHandler-59d934f3.js → LiviqueWWSHandler-528fcf07.js} +2 -2
  6. package/build/cjs/{PfisterWWSHandler-4792814e.js → PfisterWWSHandler-6f4470f9.js} +2 -2
  7. package/build/cjs/{PlannerHandler2D-a209c839.js → PlannerHandler2D-30115ec4.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-79c2b600.js → SeriousBasketHandler-e8700270.js} +2 -2
  9. package/build/cjs/{ShelfPlanner-92294342.js → ShelfPlanner-8ac26ec8.js} +2 -2
  10. package/build/cjs/{StandardWWSHandler-d6dfcbbe.js → StandardWWSHandler-68586650.js} +2 -2
  11. package/build/cjs/{index-2bfc75a1.js → index-ef0b5024.js} +262 -207
  12. package/build/cjs/index.js +2 -2
  13. package/build/esm/{DivaBoxPlanner-d8275f1e.js → DivaBoxPlanner-f5c4db48.js} +8 -6
  14. package/build/esm/{DivaStandardPlanner-20b8fe29.js → DivaStandardPlanner-b665914e.js} +4 -4
  15. package/build/esm/{DoorPlanner-c06b15c0.js → DoorPlanner-8a6c4578.js} +2 -2
  16. package/build/esm/{Host3DSignalR-829f756b.js → Host3DSignalR-c84e359e.js} +2 -2
  17. package/build/esm/{LiviqueWWSHandler-d9eb5296.js → LiviqueWWSHandler-027969eb.js} +2 -2
  18. package/build/esm/{PfisterWWSHandler-cc0d15f9.js → PfisterWWSHandler-2f9f3597.js} +2 -2
  19. package/build/esm/{PlannerHandler2D-91372ea4.js → PlannerHandler2D-7df08909.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-da2d5909.js → SeriousBasketHandler-47f99a15.js} +2 -2
  21. package/build/esm/{ShelfPlanner-601413ca.js → ShelfPlanner-ab9c3b07.js} +2 -2
  22. package/build/esm/{StandardWWSHandler-c72e0f32.js → StandardWWSHandler-0cd6e78c.js} +2 -2
  23. package/build/esm/{index-f240c58e.js → index-76b2a34a.js} +261 -206
  24. package/build/esm/index.js +2 -2
  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
@@ -1,10 +1,10 @@
1
+ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
1
2
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
2
3
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
4
  import _createClass from '@babel/runtime/helpers/createClass';
4
5
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
6
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
7
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
7
- import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
8
8
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
9
9
  import axios$1 from 'axios';
10
10
  import DivaUtils, { DivaError, md5, nanoid } from '@crystaldesign/diva-utils';
@@ -579,59 +579,40 @@ var DivaApiHandler = /*#__PURE__*/function () {
579
579
  var _this$divaWebConfigDa12;
580
580
  return !!((_this$divaWebConfigDa12 = this.divaWebConfigData) !== null && _this$divaWebConfigDa12 !== void 0 && (_this$divaWebConfigDa12 = _this$divaWebConfigDa12.viewConfig) !== null && _this$divaWebConfigDa12 !== void 0 && _this$divaWebConfigDa12.hidePlanner);
581
581
  }
582
- }, {
583
- key: "getDoShowAR",
584
- value: function getDoShowAR() {
585
- var _this$divaWebConfigDa13;
586
- return (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 || (_this$divaWebConfigDa13 = _this$divaWebConfigDa13.viewConfig) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.enableAR;
587
- }
588
- }, {
589
- key: "forceShowRTV",
590
- value: function forceShowRTV() {
591
- var _this$divaWebConfigDa14;
592
- return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 || (_this$divaWebConfigDa14 = _this$divaWebConfigDa14.viewConfig) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.forceRTV;
593
- }
594
- }, {
595
- key: "getDoShowRTV",
596
- value: function getDoShowRTV() {
597
- var _this$divaWebConfigDa15;
598
- return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 || (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.enableRTV;
599
- }
600
582
  }, {
601
583
  key: "getEnableRTVUnityKombi",
602
584
  value: function getEnableRTVUnityKombi() {
603
- var _this$divaWebConfigDa16;
604
- return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.viewConfig.enableRtvUnityKombi);
585
+ return !!this.organization.settings.enableRTV;
605
586
  }
606
587
  }, {
607
588
  key: "getDoDisablePlanner2D",
608
589
  value: function getDoDisablePlanner2D() {
609
- var _this$divaWebConfigDa17;
610
- return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
590
+ var _this$divaWebConfigDa13;
591
+ return !!((_this$divaWebConfigDa13 = this.divaWebConfigData) !== null && _this$divaWebConfigDa13 !== void 0 && _this$divaWebConfigDa13.doDisablePlanner2D);
611
592
  }
612
593
  }, {
613
594
  key: "getRoomListInProduct",
614
595
  value: function getRoomListInProduct() {
615
- var _this$divaWebConfigDa18;
616
- return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
596
+ var _this$divaWebConfigDa14;
597
+ return !!((_this$divaWebConfigDa14 = this.divaWebConfigData) !== null && _this$divaWebConfigDa14 !== void 0 && (_this$divaWebConfigDa14 = _this$divaWebConfigDa14.viewConfig) !== null && _this$divaWebConfigDa14 !== void 0 && _this$divaWebConfigDa14.roomListInProduct);
617
598
  }
618
599
  }, {
619
600
  key: "getPlannerType",
620
601
  value: function getPlannerType() {
621
- var _this$divaWebConfigDa19;
622
- return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 || (_this$divaWebConfigDa19 = _this$divaWebConfigDa19.viewConfig) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.plannerType;
602
+ var _this$divaWebConfigDa15;
603
+ return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 || (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.plannerType;
623
604
  }
624
605
  }, {
625
606
  key: "getLoadSupplierColors",
626
607
  value: function getLoadSupplierColors() {
627
- var _this$divaWebConfigDa20;
628
- return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
608
+ var _this$divaWebConfigDa16;
609
+ return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.loadSupplierColors);
629
610
  }
630
611
  }, {
631
612
  key: "showSelectionModeZero",
632
613
  value: function showSelectionModeZero() {
633
- var _this$divaWebConfigDa21;
634
- return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
614
+ var _this$divaWebConfigDa17;
615
+ return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.showSelectionModeZero);
635
616
  }
636
617
  }, {
637
618
  key: "ruleDescSeperator",
@@ -651,8 +632,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
651
632
  }, {
652
633
  key: "getDoCheckVariantData",
653
634
  value: function getDoCheckVariantData() {
654
- var _this$divaWebConfigDa22;
655
- return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.doCheckVariantData;
635
+ var _this$divaWebConfigDa18;
636
+ return (_this$divaWebConfigDa18 = this.divaWebConfigData) === null || _this$divaWebConfigDa18 === void 0 ? void 0 : _this$divaWebConfigDa18.doCheckVariantData;
656
637
  }
657
638
  }, {
658
639
  key: "setI18n",
@@ -745,50 +726,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
745
726
  }, {
746
727
  key: "getViewConfig",
747
728
  value: function getViewConfig() {
748
- var _this$divaWebConfigDa23;
749
- return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.viewConfig;
729
+ var _this$divaWebConfigDa19;
730
+ return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.viewConfig;
750
731
  }
751
732
  }, {
752
733
  key: "getEmailConfig",
753
734
  value: function getEmailConfig() {
754
- var _this$divaWebConfigDa24;
755
- return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.emailConfig;
735
+ var _this$divaWebConfigDa20;
736
+ return (_this$divaWebConfigDa20 = this.divaWebConfigData) === null || _this$divaWebConfigDa20 === void 0 ? void 0 : _this$divaWebConfigDa20.emailConfig;
756
737
  }
757
738
  }, {
758
739
  key: "getABTestCases",
759
740
  value: function getABTestCases() {
760
- var _this$divaWebConfigDa25, _this$divaWebConfigDa26;
761
- return (_this$divaWebConfigDa25 = (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.abTestCases) !== null && _this$divaWebConfigDa25 !== void 0 ? _this$divaWebConfigDa25 : [];
741
+ var _this$divaWebConfigDa21, _this$divaWebConfigDa22;
742
+ return (_this$divaWebConfigDa21 = (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.abTestCases) !== null && _this$divaWebConfigDa21 !== void 0 ? _this$divaWebConfigDa21 : [];
762
743
  }
763
744
  }, {
764
745
  key: "getBarrierConfig",
765
746
  value: function getBarrierConfig() {
766
- var _this$divaWebConfigDa27;
767
- return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.barrierConfig;
747
+ var _this$divaWebConfigDa23;
748
+ return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.barrierConfig;
768
749
  }
769
750
  }, {
770
751
  key: "getTemplateConfig",
771
752
  value: function getTemplateConfig() {
772
- var _this$divaWebConfigDa28;
773
- return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.templateConfig;
753
+ var _this$divaWebConfigDa24;
754
+ return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.templateConfig;
774
755
  }
775
756
  }, {
776
757
  key: "showDivaNr",
777
758
  value: function showDivaNr() {
778
- var _this$divaWebConfigDa29;
779
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.showDivaNr;
759
+ var _this$divaWebConfigDa25;
760
+ return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.showDivaNr;
780
761
  }
781
762
  }, {
782
763
  key: "onErrorHandling",
783
764
  value: function onErrorHandling() {
784
- var _this$divaWebConfigDa30;
785
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.onErrorHandling;
765
+ var _this$divaWebConfigDa26;
766
+ return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.onErrorHandling;
786
767
  }
787
768
  }, {
788
769
  key: "diva3DRenderingDefault",
789
770
  value: function diva3DRenderingDefault() {
790
- var _this$divaWebConfigDa31;
791
- return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.diva3DRenderingDefault;
771
+ var _this$divaWebConfigDa27;
772
+ return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.diva3DRenderingDefault;
792
773
  }
793
774
  }, {
794
775
  key: "getJwt",
@@ -803,8 +784,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
803
784
  }, {
804
785
  key: "getUseMask",
805
786
  value: function getUseMask() {
806
- var _this$divaWebConfigDa32;
807
- return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.useMask;
787
+ var _this$divaWebConfigDa28;
788
+ return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.useMask;
808
789
  }
809
790
  }, {
810
791
  key: "apiUrl",
@@ -1324,14 +1305,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1324
1305
  }, {
1325
1306
  key: "dontLoadAdditionalModelInfos",
1326
1307
  get: function get() {
1327
- var _this$divaWebConfigDa33;
1328
- return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadAdditionalModelInfos;
1308
+ var _this$divaWebConfigDa29;
1309
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.dontLoadAdditionalModelInfos;
1329
1310
  }
1330
1311
  }, {
1331
1312
  key: "dontLoadCatalogEditorLiteMask",
1332
1313
  get: function get() {
1333
- var _this$divaWebConfigDa34;
1334
- return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.dontLoadCatalogEditorLiteMask;
1314
+ var _this$divaWebConfigDa30;
1315
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.dontLoadCatalogEditorLiteMask;
1335
1316
  }
1336
1317
  }, {
1337
1318
  key: "OrganizationId",
@@ -1339,6 +1320,12 @@ var DivaApiHandler = /*#__PURE__*/function () {
1339
1320
  var _this$organization4;
1340
1321
  return (_this$organization4 = this.organization) === null || _this$organization4 === void 0 ? void 0 : _this$organization4._id;
1341
1322
  }
1323
+ }, {
1324
+ key: "enableAR",
1325
+ get: function get() {
1326
+ var _this$organization5;
1327
+ return (_this$organization5 = this.organization) === null || _this$organization5 === void 0 || (_this$organization5 = _this$organization5.settings) === null || _this$organization5 === void 0 ? void 0 : _this$organization5.enableAR;
1328
+ }
1342
1329
  }, {
1343
1330
  key: "webConfig",
1344
1331
  get: function get() {
@@ -19726,7 +19713,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19726
19713
  return _context.abrupt("return", state.divaCatalogs[catalogKey]);
19727
19714
  case 5:
19728
19715
  if (!orderSet) {
19729
- _context.next = 47;
19716
+ _context.next = 53;
19730
19717
  break;
19731
19718
  }
19732
19719
  // ab hier parallell laden
@@ -19758,22 +19745,30 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19758
19745
  case 23:
19759
19746
  mask = _context.sent;
19760
19747
  case 24:
19748
+ _context.next = 29;
19749
+ break;
19750
+ case 26:
19751
+ _context.prev = 26;
19752
+ _context.t0 = _context["catch"](19);
19753
+ LOG$d.debug('no mask found: ' + _context.t0);
19754
+ case 29:
19755
+ _context.prev = 29;
19761
19756
  if (!(!state.api.dontLoadAdditionalModelInfos && catalogApiData.AccountGuid)) {
19762
- _context.next = 28;
19757
+ _context.next = 34;
19763
19758
  break;
19764
19759
  }
19765
- _context.next = 27;
19760
+ _context.next = 33;
19766
19761
  return state.api.getDataCache(state.api.getAdditionalModelInfosQS(catalogApiData.AccountGuid, catalogApiData.GUID), undefined, undefined, 'catalog');
19767
- case 27:
19762
+ case 33:
19768
19763
  additionalModelInfos = _context.sent;
19769
- case 28:
19770
- _context.next = 33;
19764
+ case 34:
19765
+ _context.next = 39;
19771
19766
  break;
19772
- case 30:
19773
- _context.prev = 30;
19774
- _context.t0 = _context["catch"](19);
19775
- LOG$d.debug('no additionalModelInfos found: ' + _context.t0);
19776
- case 33:
19767
+ case 36:
19768
+ _context.prev = 36;
19769
+ _context.t1 = _context["catch"](29);
19770
+ LOG$d.debug('no additionalModelInfos found: ' + _context.t1);
19771
+ case 39:
19777
19772
  if (state.catalogMask || mask) {
19778
19773
  if (!additionalModelInfos) additionalModelInfos = {
19779
19774
  _id: ''
@@ -19782,19 +19777,19 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19782
19777
  }
19783
19778
  catalogData = new DivaCatalogData(catalogApiData, orderSet, state.api, additionalModelInfos);
19784
19779
  if (!(catalogArticleListData.Articles && catalogArticleListData.Articles.length > 0)) {
19785
- _context.next = 39;
19780
+ _context.next = 45;
19786
19781
  break;
19787
19782
  }
19788
19783
  catalogData.initCatalogArticles(catalogArticleListData.Articles);
19789
- _context.next = 42;
19784
+ _context.next = 48;
19790
19785
  break;
19791
- case 39:
19786
+ case 45:
19792
19787
  DivaUtils.endSpanOfApm('Catalog initialize');
19793
19788
  LOG$d.error(new DivaError('Catalog ' + catalogData.catalogName + ' not listed', {
19794
19789
  code: 'WC_0002'
19795
19790
  }));
19796
19791
  throw new Error('Articles of Catalog: ' + catalogData.catalogCodex + ' are empty');
19797
- case 42:
19792
+ case 48:
19798
19793
  if (catalogArticlePlannerListData.PlannerElements && catalogArticlePlannerListData.PlannerElements.length > 0) {
19799
19794
  catalogData.initCatalogPlannerArticles(catalogArticlePlannerListData.PlannerElements);
19800
19795
  }
@@ -19811,16 +19806,16 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19811
19806
 
19812
19807
  DivaUtils.endSpanOfApm('Catalog initialize');
19813
19808
  return _context.abrupt("return", state.divaCatalogs[catalogKey]);
19814
- case 47:
19809
+ case 53:
19815
19810
  LOG$d.error(new DivaError('Catalog: ' + catalogCodex + ' not initialized! and orderSet not set', {
19816
19811
  code: 'WC_0007'
19817
19812
  }));
19818
19813
  return _context.abrupt("return", state.divaCatalogs[catalogKey]);
19819
- case 49:
19814
+ case 55:
19820
19815
  case "end":
19821
19816
  return _context.stop();
19822
19817
  }
19823
- }, _callee, null, [[19, 30]]);
19818
+ }, _callee, null, [[19, 26], [29, 36]]);
19824
19819
  }));
19825
19820
  function getCatalogData(_x, _x2, _x3) {
19826
19821
  return _getCatalogData.apply(this, arguments);
@@ -20706,8 +20701,18 @@ var DivaArticle = /*#__PURE__*/function () {
20706
20701
  if (Object.entries(partlistArticles).length && !this.CatalogData.bundleRules) {
20707
20702
  LOG$c.error(new DivaError('sorting partlistarticles Failed', {
20708
20703
  custom: {
20709
- partlistArticles: partlistArticles,
20710
- partlistArticlesToLoad: partlistArticlesToLoad
20704
+ partlistArticles: Object.values(partlistArticles).map(function (p) {
20705
+ return {
20706
+ BasketId: p.basketId,
20707
+ ArticleCodex: p.articleCodex
20708
+ };
20709
+ }),
20710
+ partlistArticlesToLoad: partlistArticlesToLoad.map(function (p) {
20711
+ return {
20712
+ BasketId: p.ArticleCodex,
20713
+ ArticleCodex: p.ArticleCodex
20714
+ };
20715
+ })
20711
20716
  }
20712
20717
  }));
20713
20718
  }
@@ -23629,7 +23634,7 @@ var DivaArticle = /*#__PURE__*/function () {
23629
23634
  break;
23630
23635
  }
23631
23636
  _context.next = 4;
23632
- return import('./ShelfPlanner-601413ca.js');
23637
+ return import('./ShelfPlanner-ab9c3b07.js');
23633
23638
  case 4:
23634
23639
  _yield$import = _context.sent;
23635
23640
  ShelfPlanner = _yield$import["default"];
@@ -28163,7 +28168,7 @@ var DivaSet = /*#__PURE__*/function () {
28163
28168
  break;
28164
28169
  }
28165
28170
  _context4.next = 3;
28166
- return import('./DoorPlanner-c06b15c0.js');
28171
+ return import('./DoorPlanner-8a6c4578.js');
28167
28172
  case 3:
28168
28173
  _yield$import = _context4.sent;
28169
28174
  DoorPlanner = _yield$import["default"];
@@ -31801,8 +31806,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
31801
31806
  }, {
31802
31807
  key: "deleteElementFromSet",
31803
31808
  value: function () {
31804
- var _deleteElementFromSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(set, article, autoCorrectAVL_AVR, deletionType, dontReload) {
31805
- var setId, allElementsToDelete, success, newSelectedElement, i, _deletedArticle$doorP, _set$CatalogData, deletedArticle, articles, key, oldTransform, result, _set$getArticleByBask3;
31809
+ var _deleteElementFromSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(set, article, autoCorrectAVL_AVR, deletionType, dontReload, dontCheckInfluencedPlannerElements) {
31810
+ var _deletedArticle$doorP, _set$CatalogData;
31811
+ var setId, success, newSelectedElement, allElementsToDelete, i, art, deletedArticle, articles, key, oldTransform, result, _set$getArticleByBask3;
31806
31812
  return _regeneratorRuntime.wrap(function _callee14$(_context16) {
31807
31813
  while (1) switch (_context16.prev = _context16.next) {
31808
31814
  case 0:
@@ -31817,44 +31823,55 @@ var DivaSetHandler = /*#__PURE__*/function () {
31817
31823
  setId: setId
31818
31824
  });
31819
31825
  case 3:
31820
- allElementsToDelete = set.plannerHandler.getPlannerElementsInfluencedByDeletion(setId, article.elementId);
31821
31826
  success = false;
31822
31827
  newSelectedElement = undefined;
31828
+ if (dontCheckInfluencedPlannerElements) {
31829
+ _context16.next = 15;
31830
+ break;
31831
+ }
31832
+ allElementsToDelete = set.plannerHandler.getPlannerElementsInfluencedByDeletion(setId, article.elementId);
31823
31833
  i = 0;
31824
- case 7:
31834
+ case 8:
31825
31835
  if (!(i < allElementsToDelete.length)) {
31826
- _context16.next = 35;
31836
+ _context16.next = 15;
31827
31837
  break;
31828
31838
  }
31829
- article = set.getArticleByElementId(allElementsToDelete[i]);
31839
+ art = set.getArticleByElementId(allElementsToDelete[i]);
31840
+ _context16.next = 12;
31841
+ return this.deleteElementFromSet(set, art, undefined, undefined, true, true);
31842
+ case 12:
31843
+ i++;
31844
+ _context16.next = 8;
31845
+ break;
31846
+ case 15:
31830
31847
  deletedArticle = article; //accessoires löschen
31831
31848
  articles = set.getAccessoiresOfBasketId(article.basketId);
31832
31849
  _context16.t0 = _regeneratorRuntime.keys(articles);
31833
- case 12:
31850
+ case 18:
31834
31851
  if ((_context16.t1 = _context16.t0()).done) {
31835
- _context16.next = 18;
31852
+ _context16.next = 24;
31836
31853
  break;
31837
31854
  }
31838
31855
  key = _context16.t1.value;
31839
- _context16.next = 16;
31840
- return this.deleteElementFromSet(set, articles[key]);
31841
- case 16:
31842
- _context16.next = 12;
31856
+ _context16.next = 22;
31857
+ return this.deleteElementFromSet(set, articles[key], undefined, undefined, true);
31858
+ case 22:
31859
+ _context16.next = 18;
31843
31860
  break;
31844
- case 18:
31861
+ case 24:
31845
31862
  oldTransform = undefined;
31846
31863
  if (deletedArticle) deletedArticle.deleted = true;
31847
31864
  if (!(deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.hasCatalogPlannerArticle)) {
31848
- _context16.next = 26;
31865
+ _context16.next = 32;
31849
31866
  break;
31850
31867
  }
31851
- _context16.next = 23;
31868
+ _context16.next = 29;
31852
31869
  return set.plannerHandler.deletePlannerElement(setId, deletedArticle.elementId, autoCorrectAVL_AVR, deletionType);
31853
- case 23:
31870
+ case 29:
31854
31871
  result = _context16.sent;
31855
31872
  newSelectedElement = result.newElementToSelect;
31856
31873
  oldTransform = result.transform;
31857
- case 26:
31874
+ case 32:
31858
31875
  //falls ein Accessoire gelöscht wurde wird das Accessoire auch wo es beim Parent hinterlegt war auch gelöscht
31859
31876
  if (deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.relatedToBasketId) {
31860
31877
  (_set$getArticleByBask3 = set.getArticleByBasketId(deletedArticle.relatedToBasketId)) === null || _set$getArticleByBask3 === void 0 || _set$getArticleByBask3.removeAccessoire(deletedArticle.basketId);
@@ -31864,29 +31881,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
31864
31881
  deletedArticle === null || deletedArticle === void 0 || (_deletedArticle$doorP = deletedArticle.doorPlanner) === null || _deletedArticle$doorP === void 0 || _deletedArticle$doorP.deleteElement(deletedArticle.basketId);
31865
31882
  success = set.deleteArticle(article.basketId);
31866
31883
  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)) {
31867
- _context16.next = 32;
31884
+ _context16.next = 38;
31868
31885
  break;
31869
31886
  }
31870
- _context16.next = 32;
31887
+ _context16.next = 38;
31871
31888
  return this.updateArticlesOptionStatesOfActSet(set, {}, []);
31872
- case 32:
31873
- i++;
31874
- _context16.next = 7;
31875
- break;
31876
- case 35:
31889
+ case 38:
31877
31890
  return _context16.abrupt("return", {
31878
31891
  success: success,
31879
31892
  selectElementId: newSelectedElement,
31880
31893
  setId: setId,
31881
31894
  oldTransform: oldTransform
31882
31895
  });
31883
- case 36:
31896
+ case 39:
31884
31897
  case "end":
31885
31898
  return _context16.stop();
31886
31899
  }
31887
31900
  }, _callee14, this);
31888
31901
  }));
31889
- function deleteElementFromSet(_x41, _x42, _x43, _x44, _x45) {
31902
+ function deleteElementFromSet(_x41, _x42, _x43, _x44, _x45, _x46) {
31890
31903
  return _deleteElementFromSet.apply(this, arguments);
31891
31904
  }
31892
31905
  return deleteElementFromSet;
@@ -31961,7 +31974,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
31961
31974
  }
31962
31975
  }, _callee15, this);
31963
31976
  }));
31964
- function addAccessorieOnShelfPlanner(_x46, _x47, _x48, _x49, _x50) {
31977
+ function addAccessorieOnShelfPlanner(_x47, _x48, _x49, _x50, _x51) {
31965
31978
  return _addAccessorieOnShelfPlanner.apply(this, arguments);
31966
31979
  }
31967
31980
  return addAccessorieOnShelfPlanner;
@@ -32035,7 +32048,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32035
32048
  }
32036
32049
  }, _callee16, this);
32037
32050
  }));
32038
- function getFreeShelfGrids(_x51, _x52) {
32051
+ function getFreeShelfGrids(_x52, _x53) {
32039
32052
  return _getFreeShelfGrids.apply(this, arguments);
32040
32053
  }
32041
32054
  return getFreeShelfGrids;
@@ -32171,7 +32184,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32171
32184
  }
32172
32185
  }, _callee17, this);
32173
32186
  }));
32174
- function moveShelfItemToGrid(_x53, _x54, _x55, _x56, _x57) {
32187
+ function moveShelfItemToGrid(_x54, _x55, _x56, _x57, _x58) {
32175
32188
  return _moveShelfItemToGrid.apply(this, arguments);
32176
32189
  }
32177
32190
  return moveShelfItemToGrid;
@@ -32205,7 +32218,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32205
32218
  }
32206
32219
  }, _callee18, this);
32207
32220
  }));
32208
- function deleteAccessorieOnShelfPlanner(_x58, _x59, _x60, _x61, _x62) {
32221
+ function deleteAccessorieOnShelfPlanner(_x59, _x60, _x61, _x62, _x63) {
32209
32222
  return _deleteAccessorieOnShelfPlanner.apply(this, arguments);
32210
32223
  }
32211
32224
  return deleteAccessorieOnShelfPlanner;
@@ -32231,7 +32244,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32231
32244
  }
32232
32245
  }, _callee19, this);
32233
32246
  }));
32234
- function updatePlannerTrans(_x63, _x64, _x65, _x66, _x67, _x68, _x69) {
32247
+ function updatePlannerTrans(_x64, _x65, _x66, _x67, _x68, _x69, _x70) {
32235
32248
  return _updatePlannerTrans.apply(this, arguments);
32236
32249
  }
32237
32250
  return updatePlannerTrans;
@@ -32345,7 +32358,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32345
32358
  }
32346
32359
  }, _callee20, this);
32347
32360
  }));
32348
- function deleteAccessoire(_x70, _x71, _x72) {
32361
+ function deleteAccessoire(_x71, _x72, _x73) {
32349
32362
  return _deleteAccessoire.apply(this, arguments);
32350
32363
  }
32351
32364
  return deleteAccessoire;
@@ -32499,7 +32512,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32499
32512
  }
32500
32513
  }, _callee21, this);
32501
32514
  }));
32502
- function configSingleIsChanged(_x73, _x74, _x75, _x76) {
32515
+ function configSingleIsChanged(_x74, _x75, _x76, _x77) {
32503
32516
  return _configSingleIsChanged.apply(this, arguments);
32504
32517
  }
32505
32518
  return configSingleIsChanged;
@@ -32634,7 +32647,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32634
32647
  }
32635
32648
  }, _callee22, this);
32636
32649
  }));
32637
- function loadConfigItemsOfActSetByConfigStepKey(_x77, _x78, _x79) {
32650
+ function loadConfigItemsOfActSetByConfigStepKey(_x78, _x79, _x80) {
32638
32651
  return _loadConfigItemsOfActSetByConfigStepKey.apply(this, arguments);
32639
32652
  }
32640
32653
  return loadConfigItemsOfActSetByConfigStepKey;
@@ -32721,7 +32734,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32721
32734
  }
32722
32735
  }, _callee23, this);
32723
32736
  }));
32724
- function variantsEvaluator(_x80, _x81, _x82, _x83) {
32737
+ function variantsEvaluator(_x81, _x82, _x83, _x84) {
32725
32738
  return _variantsEvaluator.apply(this, arguments);
32726
32739
  }
32727
32740
  return variantsEvaluator;
@@ -32799,7 +32812,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32799
32812
  }
32800
32813
  }, _callee24, this);
32801
32814
  }));
32802
- function calcVariants(_x84, _x85, _x86) {
32815
+ function calcVariants(_x85, _x86, _x87) {
32803
32816
  return _calcVariants.apply(this, arguments);
32804
32817
  }
32805
32818
  return calcVariants;
@@ -32964,7 +32977,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32964
32977
  }
32965
32978
  }, _callee25, this);
32966
32979
  }));
32967
- function updateArticlesOptionStatesOfActSet(_x87, _x88, _x89, _x90, _x91, _x92) {
32980
+ function updateArticlesOptionStatesOfActSet(_x88, _x89, _x90, _x91, _x92, _x93) {
32968
32981
  return _updateArticlesOptionStatesOfActSet.apply(this, arguments);
32969
32982
  }
32970
32983
  return updateArticlesOptionStatesOfActSet;
@@ -33074,7 +33087,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33074
33087
  }
33075
33088
  }, _callee26, this);
33076
33089
  }));
33077
- function updateEdoArticles(_x93, _x94) {
33090
+ function updateEdoArticles(_x94, _x95) {
33078
33091
  return _updateEdoArticles.apply(this, arguments);
33079
33092
  }
33080
33093
  return updateEdoArticles;
@@ -33236,7 +33249,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33236
33249
  }
33237
33250
  }, _callee27);
33238
33251
  }));
33239
- function checkVariantData(_x95) {
33252
+ function checkVariantData(_x96) {
33240
33253
  return _checkVariantData.apply(this, arguments);
33241
33254
  }
33242
33255
  return checkVariantData;
@@ -33402,7 +33415,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33402
33415
  }
33403
33416
  }, _callee28, this);
33404
33417
  }));
33405
- function fillOrderLinesAndOrderSets(_x96, _x97, _x98, _x99, _x100) {
33418
+ function fillOrderLinesAndOrderSets(_x97, _x98, _x99, _x100, _x101) {
33406
33419
  return _fillOrderLinesAndOrderSets.apply(this, arguments);
33407
33420
  }
33408
33421
  return fillOrderLinesAndOrderSets;
@@ -33487,7 +33500,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33487
33500
  key: "getOrderSet",
33488
33501
  value: function () {
33489
33502
  var _getOrderSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(set, catalogData, posNr, divaNr, repairOnly, returnTo) {
33490
- var _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
33503
+ var _Object$values$, _set$getDivaArticles, _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
33491
33504
  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;
33492
33505
  return _regeneratorRuntime.wrap(function _callee29$(_context31) {
33493
33506
  while (1) switch (_context31.prev = _context31.next) {
@@ -33555,7 +33568,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33555
33568
  SetArticleNrPrefix: set.SetArticleNrPrefix,
33556
33569
  BBox: this.getBBoxObject(set, dimensions),
33557
33570
  SetVariantBasketDatas: set.getVariantBasketData(),
33558
- SetImage: setImage,
33571
+ 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,
33559
33572
  //Add url string of current rendering.
33560
33573
  HQRenderScript: (_hqRenderScript = hqRenderScript) === null || _hqRenderScript === void 0 ? void 0 : _hqRenderScript._id,
33561
33574
  Set2DImage: urlToPlanning2D,
@@ -33593,7 +33606,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33593
33606
  }
33594
33607
  }, _callee29, this);
33595
33608
  }));
33596
- function getOrderSet(_x101, _x102, _x103, _x104, _x105, _x106) {
33609
+ function getOrderSet(_x102, _x103, _x104, _x105, _x106, _x107) {
33597
33610
  return _getOrderSet.apply(this, arguments);
33598
33611
  }
33599
33612
  return getOrderSet;
@@ -33643,7 +33656,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33643
33656
  }
33644
33657
  }, _callee30);
33645
33658
  }));
33646
- function getSetImage(_x107, _x108) {
33659
+ function getSetImage(_x108, _x109) {
33647
33660
  return _getSetImage.apply(this, arguments);
33648
33661
  }
33649
33662
  return getSetImage;
@@ -33689,7 +33702,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33689
33702
  }
33690
33703
  }, _callee31);
33691
33704
  }));
33692
- function getHQRenderScript(_x109, _x110) {
33705
+ function getHQRenderScript(_x110, _x111) {
33693
33706
  return _getHQRenderScript.apply(this, arguments);
33694
33707
  }
33695
33708
  return getHQRenderScript;
@@ -33730,7 +33743,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33730
33743
  }
33731
33744
  }, _callee32);
33732
33745
  }));
33733
- function getAlternateSetImages(_x111) {
33746
+ function getAlternateSetImages(_x112) {
33734
33747
  return _getAlternateSetImages.apply(this, arguments);
33735
33748
  }
33736
33749
  return getAlternateSetImages;
@@ -33761,7 +33774,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33761
33774
  }
33762
33775
  }, _callee33);
33763
33776
  }));
33764
- function get2DSetImage(_x112) {
33777
+ function get2DSetImage(_x113) {
33765
33778
  return _get2DSetImage.apply(this, arguments);
33766
33779
  }
33767
33780
  return get2DSetImage;
@@ -33776,8 +33789,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33776
33789
  Y: (_dimensions$d = dimensions === null || dimensions === void 0 ? void 0 : dimensions.d) !== null && _dimensions$d !== void 0 ? _dimensions$d : bbox.depth,
33777
33790
  Z: (_dimensions$h = dimensions === null || dimensions === void 0 ? void 0 : dimensions.h) !== null && _dimensions$h !== void 0 ? _dimensions$h : bbox.height
33778
33791
  };
33792
+ if (set.PlannerMode == 'No') {
33793
+ var article = Object.values(set.getDivaArticles())[0];
33794
+ dim.X = article === null || article === void 0 ? void 0 : article.width;
33795
+ dim.Y = article === null || article === void 0 ? void 0 : article.depth;
33796
+ dim.Z = article === null || article === void 0 ? void 0 : article.height;
33797
+ }
33779
33798
  return _objectSpread$8(_objectSpread$8({}, dim), {}, {
33780
- 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' : '')
33799
+ 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' : '')
33781
33800
  });
33782
33801
  }
33783
33802
  }, {
@@ -33825,7 +33844,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33825
33844
  }
33826
33845
  }, _callee34, this);
33827
33846
  }));
33828
- function addOrderSetArticlesToExistingSet(_x113, _x114, _x115) {
33847
+ function addOrderSetArticlesToExistingSet(_x114, _x115, _x116) {
33829
33848
  return _addOrderSetArticlesToExistingSet.apply(this, arguments);
33830
33849
  }
33831
33850
  return addOrderSetArticlesToExistingSet;
@@ -33867,6 +33886,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
33867
33886
  _defineProperty(this, "_basketHandler", void 0);
33868
33887
  _defineProperty(this, "startProductId", void 0);
33869
33888
  _defineProperty(this, "initializationType", void 0);
33889
+ _defineProperty(this, "hasConfiguratorSessionId", false);
33870
33890
  //Only helper variable
33871
33891
  _defineProperty(this, "origConfiguration", {});
33872
33892
  /**
@@ -33893,6 +33913,11 @@ var DivaBasketHandler = /*#__PURE__*/function () {
33893
33913
  }
33894
33914
  }
33895
33915
  return _createClass(DivaBasketHandler, [{
33916
+ key: "hasConfiguratorSessionIdGetter",
33917
+ get: function get() {
33918
+ return this.hasConfiguratorSessionId;
33919
+ }
33920
+ }, {
33896
33921
  key: "initializationTypeGetter",
33897
33922
  get: function get() {
33898
33923
  return this.initializationType;
@@ -33955,13 +33980,13 @@ var DivaBasketHandler = /*#__PURE__*/function () {
33955
33980
  this.startProductId = undefined;
33956
33981
  LOG$7.debug("Basket initialising. initObject is: '", this.plannerConfig, "' divaNr to load is: '" + this.loadDivaNr + "'");
33957
33982
  if (this.ignoreInitObjectWhenInitializing) {
33958
- _context.next = 36;
33983
+ _context.next = 37;
33959
33984
  break;
33960
33985
  }
33961
33986
  returnSuccessfully = false; //UseCase 1
33962
33987
  //Basket wird mit basket aus auftrage neu eröffnet zum bearbeiten
33963
33988
  if (!this.plannerConfig.basketData) {
33964
- _context.next = 28;
33989
+ _context.next = 29;
33965
33990
  break;
33966
33991
  }
33967
33992
  if (!this.plannerConfig.assignNewDivaNr) {
@@ -34008,17 +34033,18 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34008
34033
  }
34009
34034
  this.specificSetIdToLoad = this.plannerConfig.setId;
34010
34035
  this.initializationType = 'BASKET';
34036
+ this.hasConfiguratorSessionId = true;
34011
34037
  returnSuccessfully = true;
34012
- case 28:
34038
+ case 29:
34013
34039
  if (!this.plannerConfig.catalogCodex) {
34014
- _context.next = 32;
34040
+ _context.next = 33;
34015
34041
  break;
34016
34042
  }
34017
- _context.next = 31;
34043
+ _context.next = 32;
34018
34044
  return this.loadBasketByCatalogCodex(api);
34019
- case 31:
34020
- returnSuccessfully = _context.sent;
34021
34045
  case 32:
34046
+ returnSuccessfully = _context.sent;
34047
+ case 33:
34022
34048
  if (DivaUtils.bridge) {
34023
34049
  DivaUtils.bridge.sendMessage({
34024
34050
  type: 'ABN',
@@ -34031,55 +34057,55 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34031
34057
  this.initializationType = 'MODELINFO';
34032
34058
  }
34033
34059
  if (!returnSuccessfully) {
34034
- _context.next = 36;
34060
+ _context.next = 37;
34035
34061
  break;
34036
34062
  }
34037
34063
  return _context.abrupt("return", returnSuccessfully);
34038
- case 36:
34064
+ case 37:
34039
34065
  if (!this.loadDivaNr) {
34040
- _context.next = 43;
34066
+ _context.next = 44;
34041
34067
  break;
34042
34068
  }
34043
34069
  this.initializationType = 'SERVER_DIVANR';
34044
- _context.next = 40;
34070
+ _context.next = 41;
34045
34071
  return this.loadBasketByDivaNr(api, this.loadDivaNr);
34046
- case 40:
34072
+ case 41:
34047
34073
  return _context.abrupt("return", _context.sent);
34048
- case 43:
34074
+ case 44:
34049
34075
  if (!this.plannerConfig.customProductId) {
34050
- _context.next = 54;
34076
+ _context.next = 55;
34051
34077
  break;
34052
34078
  }
34053
34079
  this.assignNewDivaNr = true;
34054
34080
  params = api.getLoadProductBasketParams();
34055
34081
  if (!params) {
34056
- _context.next = 50;
34082
+ _context.next = 51;
34057
34083
  break;
34058
34084
  }
34059
- _context.next = 49;
34085
+ _context.next = 50;
34060
34086
  return this.loadBasketByCustomProductId(api, params.customProductField, this.plannerConfig.customProductId, (_params$customFieldsT = params.customFieldsToLoad) !== null && _params$customFieldsT !== void 0 && _params$customFieldsT.length ? params.customFieldsToLoad : []);
34061
- case 49:
34062
- return _context.abrupt("return", _context.sent);
34063
34087
  case 50:
34088
+ return _context.abrupt("return", _context.sent);
34089
+ case 51:
34064
34090
  this.initializationType = 'CUSTOM_PRODUCT_ID';
34065
34091
  return _context.abrupt("return", false);
34066
- case 54:
34092
+ case 55:
34067
34093
  if (!this.plannerConfig.productId) {
34068
- _context.next = 62;
34094
+ _context.next = 63;
34069
34095
  break;
34070
34096
  }
34071
34097
  this.assignNewDivaNr = true;
34072
34098
  this.initializationType = 'PRODUCT_ID';
34073
- _context.next = 59;
34099
+ _context.next = 60;
34074
34100
  return this.initProductId(api, this.plannerConfig.productId);
34075
- case 59:
34101
+ case 60:
34076
34102
  return _context.abrupt("return", _context.sent);
34077
- case 62:
34103
+ case 63:
34078
34104
  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)) {
34079
- _context.next = 85;
34105
+ _context.next = 86;
34080
34106
  break;
34081
34107
  }
34082
- _context.next = 65;
34108
+ _context.next = 66;
34083
34109
  return (_this$plannerConfig$h = this.plannerConfig.handler) === null || _this$plannerConfig$h === void 0 ? void 0 : _this$plannerConfig$h.productHandler.apiGetProductByFilter([{
34084
34110
  id: 'startProductForOrganizations',
34085
34111
  op: 'eq',
@@ -34093,35 +34119,35 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34093
34119
  op: 'eq',
34094
34120
  value: (_this$plannerConfig$c3 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c3 === void 0 ? void 0 : _this$plannerConfig$c3._id
34095
34121
  }]);
34096
- case 65:
34122
+ case 66:
34097
34123
  result = _context.sent;
34098
34124
  if (!(result !== null && result !== void 0 && (_result$data$ = result.data[0]) !== null && _result$data$ !== void 0 && _result$data$._id)) {
34099
- _context.next = 74;
34125
+ _context.next = 75;
34100
34126
  break;
34101
34127
  }
34102
34128
  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;
34103
34129
  this.initializationType = 'START_PRODUCT';
34104
- _context.next = 71;
34130
+ _context.next = 72;
34105
34131
  return this.initProductId(api, result.data[0]._id);
34106
- case 71:
34132
+ case 72:
34107
34133
  return _context.abrupt("return", _context.sent);
34108
- case 74:
34134
+ case 75:
34109
34135
  successfully = false;
34110
34136
  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)) {
34111
- _context.next = 79;
34137
+ _context.next = 80;
34112
34138
  break;
34113
34139
  }
34114
- _context.next = 78;
34140
+ _context.next = 79;
34115
34141
  return this.tryInitFirstCatalog(api);
34116
- case 78:
34117
- successfully = _context.sent;
34118
34142
  case 79:
34143
+ successfully = _context.sent;
34144
+ case 80:
34119
34145
  if (!successfully) {
34120
- _context.next = 81;
34146
+ _context.next = 82;
34121
34147
  break;
34122
34148
  }
34123
34149
  return _context.abrupt("return", true);
34124
- case 81:
34150
+ case 82:
34125
34151
  (_this$plannerConfig$a5 = this.plannerConfig.actions) === null || _this$plannerConfig$a5 === void 0 || _this$plannerConfig$a5.openModal({
34126
34152
  accept: false,
34127
34153
  reject: false,
@@ -34130,23 +34156,23 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34130
34156
  text: (_api$getI18n2 = api.getI18n()) === null || _api$getI18n2 === void 0 ? void 0 : _api$getI18n2.t('configurator.no_startproduct_defined_text')
34131
34157
  });
34132
34158
  LOG$7.error(new 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"!'));
34133
- case 83:
34134
- _context.next = 90;
34159
+ case 84:
34160
+ _context.next = 91;
34135
34161
  break;
34136
- case 85:
34162
+ case 86:
34137
34163
  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)) {
34138
- _context.next = 90;
34164
+ _context.next = 91;
34139
34165
  break;
34140
34166
  }
34141
34167
  //USECASE 7 Default Catalog gets initialized
34142
34168
  this.initializationType = 'DEFAULT_CATALOG';
34143
- _context.next = 89;
34169
+ _context.next = 90;
34144
34170
  return this.tryInitFirstCatalog(api);
34145
- case 89:
34146
- return _context.abrupt("return", _context.sent);
34147
34171
  case 90:
34172
+ return _context.abrupt("return", _context.sent);
34173
+ case 91:
34148
34174
  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'))) {
34149
- _context.next = 93;
34175
+ _context.next = 94;
34150
34176
  break;
34151
34177
  }
34152
34178
  //UseCase 8
@@ -34155,9 +34181,9 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34155
34181
  return _context.abrupt("return", {
34156
34182
  type: 'ProductList'
34157
34183
  });
34158
- case 93:
34159
- return _context.abrupt("return", false);
34160
34184
  case 94:
34185
+ return _context.abrupt("return", false);
34186
+ case 95:
34161
34187
  case "end":
34162
34188
  return _context.stop();
34163
34189
  }
@@ -34425,8 +34451,9 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34425
34451
  }
34426
34452
  }, {
34427
34453
  key: "getBasketData",
34428
- value: function getBasketData(divaNr) {
34429
- return this.baskets[divaNr];
34454
+ value: function getBasketData(divaNr, variantId) {
34455
+ var _this$baskets;
34456
+ return (_this$baskets = this.baskets[divaNr + '-' + variantId]) !== null && _this$baskets !== void 0 ? _this$baskets : this.baskets[divaNr];
34430
34457
  }
34431
34458
  }, {
34432
34459
  key: "setBasketData",
@@ -34868,7 +34895,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34868
34895
  break;
34869
34896
  case 3:
34870
34897
  _context12.next = 5;
34871
- return import('./PfisterWWSHandler-cc0d15f9.js');
34898
+ return import('./PfisterWWSHandler-2f9f3597.js');
34872
34899
  case 5:
34873
34900
  _yield$import = _context12.sent;
34874
34901
  PfisterWWSHandler = _yield$import["default"];
@@ -34876,7 +34903,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34876
34903
  return _context12.abrupt("break", 27);
34877
34904
  case 9:
34878
34905
  _context12.next = 11;
34879
- return import('./LiviqueWWSHandler-d9eb5296.js');
34906
+ return import('./LiviqueWWSHandler-027969eb.js');
34880
34907
  case 11:
34881
34908
  _yield$import2 = _context12.sent;
34882
34909
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34884,7 +34911,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34884
34911
  return _context12.abrupt("break", 27);
34885
34912
  case 15:
34886
34913
  _context12.next = 17;
34887
- return import('./SeriousBasketHandler-da2d5909.js');
34914
+ return import('./SeriousBasketHandler-47f99a15.js');
34888
34915
  case 17:
34889
34916
  _yield$import3 = _context12.sent;
34890
34917
  SeriousWWSHandler = _yield$import3["default"];
@@ -34892,7 +34919,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34892
34919
  return _context12.abrupt("break", 27);
34893
34920
  case 21:
34894
34921
  _context12.next = 23;
34895
- return import('./StandardWWSHandler-c72e0f32.js');
34922
+ return import('./StandardWWSHandler-0cd6e78c.js');
34896
34923
  case 23:
34897
34924
  _yield$import4 = _context12.sent;
34898
34925
  StandardWWSHandler = _yield$import4["default"];
@@ -36227,7 +36254,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36227
36254
  while (1) switch (_context3.prev = _context3.next) {
36228
36255
  case 0:
36229
36256
  _context3.next = 2;
36230
- return import('./Host3DSignalR-829f756b.js');
36257
+ return import('./Host3DSignalR-c84e359e.js');
36231
36258
  case 2:
36232
36259
  _yield$import = _context3.sent;
36233
36260
  Host3DSignalR = _yield$import["default"];
@@ -37069,7 +37096,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37069
37096
  _this2.liveArSocket.auth = _objectSpread$6(_objectSpread$6({}, _this2.liveArSocket.auth), {}, {
37070
37097
  connectionId: data.connectionId
37071
37098
  });
37072
- resolve(_this2.liveArViewerUrl + '?liveArConnectionId=' + data.connectionId + '&organizationId=' + _this2.renderSettings.OrganizationId + '&divaSessionId=' + DivaUtils.SessionId);
37099
+ resolve(_this2.liveArViewerUrl + '?liveArConnectionId=' + data.connectionId + '&organizationId=' + _this2.renderSettings.OrganizationId + '&divaSessionId=' + DivaUtils.SessionId + DivaUtils.ConfigurationId ? '&configurationId=' + DivaUtils.ConfigurationId : '');
37073
37100
  });
37074
37101
  _this2.liveArSocket.on('connect_error', function (err) {
37075
37102
  return reject(err);
@@ -37770,18 +37797,18 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37770
37797
  break;
37771
37798
  case 8:
37772
37799
  _context4.next = 10;
37773
- return import('./DivaStandardPlanner-20b8fe29.js');
37800
+ return import('./DivaStandardPlanner-b665914e.js');
37774
37801
  case 10:
37775
37802
  _yield$import = _context4.sent;
37776
37803
  DivaStandardPlanner = _yield$import["default"];
37777
- planner = new DivaStandardPlanner(set, this.plannerHandlerFunctions.updatePlannerMsgContainer, this.plannerIDCount, this.setPlannerHandler.getGlobalBoundingBox(), set.api.getHidePlanner(), !!set.api.getDoShowAR(), set.api.getDoDisablePlanner2D(), hasStaticBackground);
37804
+ planner = new DivaStandardPlanner(set, this.plannerHandlerFunctions.updatePlannerMsgContainer, this.plannerIDCount, this.setPlannerHandler.getGlobalBoundingBox(), set.api.getHidePlanner(), !!set.api.enableAR, set.api.getDoDisablePlanner2D(), hasStaticBackground);
37778
37805
  if (catalogData.isIDM3DCat) {
37779
37806
  planner.initIDM3DMeta(catalogData.IDM3DCatCodex);
37780
37807
  }
37781
37808
  return _context4.abrupt("break", 21);
37782
37809
  case 15:
37783
37810
  _context4.next = 17;
37784
- return import('./DivaBoxPlanner-d8275f1e.js');
37811
+ return import('./DivaBoxPlanner-f5c4db48.js');
37785
37812
  case 17:
37786
37813
  _yield$import2 = _context4.sent;
37787
37814
  DivaBoxPlanner = _yield$import2["default"];
@@ -39508,7 +39535,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39508
39535
  case 12:
39509
39536
  loadSuccessful = _context13.sent;
39510
39537
  if (!loadSuccessful) {
39511
- _context13.next = 60;
39538
+ _context13.next = 61;
39512
39539
  break;
39513
39540
  }
39514
39541
  if (!(typeof loadSuccessful != 'boolean')) {
@@ -39583,6 +39610,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39583
39610
  this.subscribeToWebPlannerEvents();
39584
39611
  this.divaBasketHandler.actBasket;
39585
39612
  catalogData = set === null || set === void 0 ? void 0 : set.CatalogData;
39613
+ if (!this.divaBasketHandler.hasConfiguratorSessionIdGetter || DivaUtils.businessMetrics.getConfiguratorSessionId() == undefined) {
39614
+ DivaUtils.businessMetrics.setConfiguratorSessionId();
39615
+ }
39586
39616
  initializationId = undefined;
39587
39617
  if (this.divaBasketHandler.initializationTypeGetter == 'PRODUCT_ID') {
39588
39618
  //KONFIGURATOR LOADED BY PRODUCT. LOG THIS HERE! WITH PRODUCT NAME AND PRODUCT ID
@@ -39606,16 +39636,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39606
39636
  initializationType: this.divaBasketHandler.initializationTypeGetter,
39607
39637
  initializationId: initializationId
39608
39638
  }, false);
39609
- _context13.next = 57;
39639
+ _context13.next = 58;
39610
39640
  return this.fillBaksetforOnWebPlanerConfigChange(undefined, true);
39611
- case 57:
39641
+ case 58:
39612
39642
  return _context13.abrupt("return", true);
39613
- case 60:
39643
+ case 61:
39614
39644
  this.onInitializationError();
39615
39645
  //fehler beim laden vom basket..
39616
39646
  LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
39617
39647
  return _context13.abrupt("return", false);
39618
- case 63:
39648
+ case 64:
39619
39649
  case "end":
39620
39650
  return _context13.stop();
39621
39651
  }
@@ -40601,7 +40631,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40601
40631
  key: "saveToBasket",
40602
40632
  value: function () {
40603
40633
  var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
40604
- var _returnTo, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34;
40634
+ var _returnTo, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34, _this$divaBasketHandl2;
40605
40635
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
40606
40636
  return _regeneratorRuntime.wrap(function _callee26$(_context26) {
40607
40637
  while (1) switch (_context26.prev = _context26.next) {
@@ -40719,7 +40749,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40719
40749
  return _context26.abrupt("break", 52);
40720
40750
  case 52:
40721
40751
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
40722
- actBasket = this.divaBasketHandler.getBasketData(actBasket.DivaNr); //get pdf documenturl from saved basket
40752
+ actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
40723
40753
  _context26.next = 56;
40724
40754
  return this.addToBasket(actBasket, event);
40725
40755
  case 56:
@@ -40869,8 +40899,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40869
40899
  }, {
40870
40900
  key: "doAllowSetPlanner",
40871
40901
  value: function doAllowSetPlanner() {
40872
- var _this$returnTo, _this$divaBasketHandl2;
40873
- 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);
40902
+ var _this$returnTo, _this$divaBasketHandl3;
40903
+ 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);
40874
40904
  }
40875
40905
  }, {
40876
40906
  key: "doShow3DDimensionLines",
@@ -40907,18 +40937,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40907
40937
  }, {
40908
40938
  key: "getAllowRTV",
40909
40939
  value: function getAllowRTV() {
40910
- var _this$actSet22, _this$actSet23;
40940
+ var _this$state3, _this$actSet22, _this$state4, _this$actSet23;
40911
40941
  if (this.getEnableUnityRtvKombi()) return false;
40912
- if (this.api.forceShowRTV()) return true;
40942
+ if ((_this$state3 = this.state) !== null && _this$state3 !== void 0 && _this$state3.organization.settings.forceRTV) return true;
40913
40943
  if ((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaForceRTV) return true;
40914
- if (this.api.getDoShowRTV() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
40944
+ 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;
40915
40945
  return false;
40916
40946
  }
40917
40947
  }, {
40918
- key: "geAllowQRCodeAR",
40919
- value: function geAllowQRCodeAR() {
40948
+ key: "getAllowQRCodeAR",
40949
+ value: function getAllowQRCodeAR() {
40920
40950
  var _this$actSet24;
40921
- if (this.api.getDoShowAR() && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
40951
+ if (this.api.enableAR && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
40922
40952
  return false;
40923
40953
  }
40924
40954
  }, {
@@ -40996,7 +41026,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40996
41026
  _this$actions37,
40997
41027
  _this$actions38,
40998
41028
  _this$actions39,
40999
- _this$divaBasketHandl3,
41029
+ _this$divaBasketHandl4,
41000
41030
  _this3 = this,
41001
41031
  _this$actions40,
41002
41032
  _this$actions41,
@@ -41048,7 +41078,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41048
41078
  });
41049
41079
  return _context28.abrupt("break", 32);
41050
41080
  case 15:
41051
- emailConfig = (_this$divaBasketHandl3 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl3 !== void 0 ? _this$divaBasketHandl3 : this.getEmailConfig(); //reset the emailConfig
41081
+ emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
41052
41082
  this.divaBasketHandler.emailConfig = undefined;
41053
41083
  if (emailConfig) {
41054
41084
  to = (_emailConfig$to$split = (_emailConfig$to = emailConfig.to) === null || _emailConfig$to === void 0 ? void 0 : _emailConfig$to.split(',').map(function (mail) {
@@ -41690,13 +41720,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41690
41720
  key: "plannerChangeLog",
41691
41721
  value: function plannerChangeLog(action) {
41692
41722
  var set = this.actSet();
41723
+ var articleCodex = [];
41724
+ var accesoriesCodex = [];
41693
41725
  var articles = [];
41694
41726
  if (set) {
41695
41727
  for (var _i = 0, _Object$values = Object.values(set.getDivaArticles()); _i < _Object$values.length; _i++) {
41696
41728
  var article = _Object$values[_i];
41697
41729
  if (article.relatedToBasketId) {
41698
41730
  var toAdd = {
41699
- articleCodex: article.configArticleCodex,
41731
+ codex: article.configArticleCodex,
41700
41732
  basketId: article.basketId,
41701
41733
  relatedBasektId: article.relatedToBasketId,
41702
41734
  type: 'ACCESSORIE'
@@ -41706,9 +41738,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41706
41738
  } else {
41707
41739
  articles.push(toAdd);
41708
41740
  }
41741
+ if (article.configArticleCodex) accesoriesCodex.push(article.configArticleCodex);
41709
41742
  } else {
41710
41743
  var _toAdd = {
41711
- articleCodex: article.configArticleCodex,
41744
+ codex: article.configArticleCodex,
41712
41745
  basketId: article.basketId,
41713
41746
  type: 'ARTICLE'
41714
41747
  };
@@ -41717,11 +41750,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41717
41750
  } else {
41718
41751
  articles.push(_toAdd);
41719
41752
  }
41753
+ if (article.configArticleCodex) articleCodex.push(article.configArticleCodex);
41720
41754
  }
41721
41755
  }
41722
41756
  }
41723
41757
  LOG$1.businessEvent(action, 'Planner', 'Planner wurde verändert', {
41724
- articles: articles
41758
+ article: {
41759
+ articleCodex: articleCodex,
41760
+ accesoriesCodex: accesoriesCodex,
41761
+ article_nested: articles
41762
+ }
41725
41763
  });
41726
41764
  }
41727
41765
  }, {
@@ -41729,24 +41767,41 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41729
41767
  value: function configuratorChangeLog(action) {
41730
41768
  var set = this.actSet();
41731
41769
  var configuration = [];
41770
+ var allOpt = [];
41771
+ var allOpv = [];
41732
41772
  if (set) {
41733
41773
  for (var _i2 = 0, _Object$values2 = Object.values(set.getDivaArticles()); _i2 < _Object$values2.length; _i2++) {
41734
41774
  var article = _Object$values2[_i2];
41735
41775
  if (!configuration) {
41736
41776
  configuration = [{
41737
41777
  varientValues: article.VariantValues,
41738
- basketId: article.basketId
41778
+ basketId: article.basketId,
41779
+ opt: Object.keys(article.VariantValues),
41780
+ opv: Object.values(article.VariantValues)
41739
41781
  }];
41740
41782
  } else {
41741
41783
  configuration.push({
41742
41784
  varientValues: article.VariantValues,
41743
- basketId: article.basketId
41785
+ basketId: article.basketId,
41786
+ opt: Object.keys(article.VariantValues),
41787
+ opv: Object.values(article.VariantValues)
41744
41788
  });
41745
41789
  }
41790
+ for (var _i3 = 0, _Object$entries = Object.entries(article.VariantValues); _i3 < _Object$entries.length; _i3++) {
41791
+ var _Object$entries$_i = _slicedToArray(_Object$entries[_i3], 2),
41792
+ opt = _Object$entries$_i[0],
41793
+ opv = _Object$entries$_i[1];
41794
+ allOpt.push(opt);
41795
+ allOpv.push(opv);
41796
+ }
41746
41797
  }
41747
41798
  }
41748
41799
  LOG$1.businessEvent(action, 'Planner', 'Configurator wurde verändert', {
41749
- configuration: configuration
41800
+ configuration: {
41801
+ opt: Array.from(new Set(allOpt)),
41802
+ opv: Array.from(new Set(allOpv)),
41803
+ configuration_nested: configuration
41804
+ }
41750
41805
  });
41751
41806
  }
41752
41807
  }, {