@crystaldesign/web-planner-logic 26.5.0-beta.4 → 26.5.0-beta.40

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 (50) hide show
  1. package/build/cjs/{DivaBoxPlanner-d378bbb7.js → DivaBoxPlanner-6bfcec61.js} +7 -5
  2. package/build/cjs/{DivaStandardPlanner-4bab9fb6.js → DivaStandardPlanner-a867eff7.js} +2 -2
  3. package/build/cjs/{DoorPlanner-d492a9d9.js → DoorPlanner-0a53a6c5.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-e8e59f7a.js → Host3DSignalR-e445e5f7.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-9b3939c8.js → LiviqueWWSHandler-687234fb.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-7eb044db.js → PfisterWWSHandler-2312012e.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-89255bdd.js → PlannerHandler2D-9ec90470.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-bbe6859a.js → SeriousBasketHandler-b18705d7.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-2a0fb19d.js → ShelfPlanner-30a0393b.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-3391c7ed.js → StandardWWSHandler-338cf72c.js} +1 -1
  11. package/build/cjs/{index-a8cd3c1d.js → index-dfc430a1.js} +126 -66
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-21211eeb.js → DivaBoxPlanner-db5ceeba.js} +7 -5
  14. package/build/esm/{DivaStandardPlanner-95dd670c.js → DivaStandardPlanner-14ec5854.js} +2 -2
  15. package/build/esm/{DoorPlanner-56b674bf.js → DoorPlanner-d34f51b1.js} +1 -1
  16. package/build/esm/{Host3DSignalR-0c56c943.js → Host3DSignalR-1f0212d1.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-0f7a4bcb.js → LiviqueWWSHandler-ab7ec8f8.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-7a25803c.js → PfisterWWSHandler-ad162a8d.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-2df72989.js → PlannerHandler2D-5a896f31.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-6c14c04e.js → SeriousBasketHandler-6883d7c5.js} +1 -1
  21. package/build/esm/{ShelfPlanner-9c7ffe88.js → ShelfPlanner-a0607e53.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-3a3026aa.js → StandardWWSHandler-e5780ba3.js} +1 -1
  23. package/build/esm/{index-79dd365f.js → index-700a861f.js} +126 -66
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/index.d.ts +1 -1
  26. package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +27 -1
  28. package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +2 -0
  30. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/Articles/ArticleDataType.d.ts +1 -0
  32. package/build/types/web-planner-logic/src/interface/Articles/ArticleDataType.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +7 -0
  34. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +1 -1
  36. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +1 -0
  38. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  40. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +9 -8
  42. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
  44. package/build/types/web-planner-logic/src/model/Articles/Article/IDMCatalogArticle.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
  46. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +1 -1
  47. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
  48. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +1 -1
  49. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
  50. package/package.json +2 -2
@@ -598,10 +598,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
598
598
  value: function getPrintOptions() {
599
599
  var _this$divaWebConfigDa11;
600
600
  var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.reportConfig;
601
- var arReady = arguments.length > 1 ? arguments[1] : undefined;
601
+ var has3D = arguments.length > 1 ? arguments[1] : undefined;
602
+ var arReady = arguments.length > 2 ? arguments[2] : undefined;
602
603
  return {
603
604
  Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
604
- PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
605
+ PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch) && has3D,
605
606
  Remark: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithRemark),
606
607
  Prices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPrices),
607
608
  AllPrices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithAllPrices),
@@ -1103,57 +1104,63 @@ var DivaApiHandler = /*#__PURE__*/function () {
1103
1104
  }
1104
1105
 
1105
1106
  /******************IDM Service CALLs */
1107
+ }, {
1108
+ key: "isSeller",
1109
+ get: function get() {
1110
+ return !this.useEnricherService && !this.useIDMService;
1111
+ }
1106
1112
  }, {
1107
1113
  key: "idmPrefix",
1108
1114
  get: function get() {
1109
1115
  if (this.useEnricherService && !this.packageId) throw new Error('packageId as parameter not missing');
1110
- return this.useEnricherService ? '/wysiwyg/' + this.packageId : this.useIDMService ? '' : '/live';
1116
+ return this.useEnricherService ? '/wysiwyg/' + this.packageId : this.useIDMService ? '' : '/live/' + this.organization._id;
1111
1117
  }
1112
1118
  }, {
1113
1119
  key: "getIDMCatalog",
1114
1120
  value: function getIDMCatalog(catalogId) {
1121
+ if (this.isSeller) return this.idmPrefix + '/packages' + (!this.useEnricherService ? '/' + catalogId + '/catalog' : '');
1115
1122
  return this.idmPrefix + '/catalogs' + (!this.useEnricherService ? '/' + catalogId : '');
1116
1123
  }
1117
1124
  }, {
1118
1125
  key: "getIDMSerieByNo",
1119
- value: function getIDMSerieByNo(catalogId, serieId, serieNo) {
1120
- return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + (this.useIDMService ? serieId : serieNo);
1126
+ value: function getIDMSerieByNo(packageId, serieId, serieNo) {
1127
+ return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/series/' + (this.useIDMService ? serieId : serieNo);
1121
1128
  }
1122
1129
  }, {
1123
1130
  key: "getIDMItems",
1124
- value: function getIDMItems(catalogId, serieId, serieNo, typeNos) {
1125
- return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + (this.useIDMService ? serieId : serieNo) + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
1131
+ value: function getIDMItems(packageId, serieId, serieNo, typeNos) {
1132
+ return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/series/' + (this.useIDMService ? serieId : serieNo) + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
1126
1133
  return encodeURIComponent('typeNo==' + t);
1127
1134
  }).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;detailInfos;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber;avrFilter;avlFilter');
1128
1135
  }
1129
1136
  }, {
1130
1137
  key: "getIDMFeatures",
1131
- value: function getIDMFeatures(catalogId, features) {
1132
- return this.idmPrefix + '/catalogs/' + catalogId + '/features' + '?featureNos=' + features.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1138
+ value: function getIDMFeatures(packageId, features) {
1139
+ return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/features' + '?featureNos=' + features.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1133
1140
  }
1134
1141
  }, {
1135
1142
  key: "getIDMDecisions",
1136
- value: function getIDMDecisions(catalogId, decisions) {
1137
- return this.idmPrefix + '/catalogs/' + catalogId + '/decisions' + '?decisionNos=' + decisions.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1143
+ value: function getIDMDecisions(packageId, decisions) {
1144
+ return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/decisions' + '?decisionNos=' + decisions.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1138
1145
  }
1139
1146
  }, {
1140
1147
  key: "getIDMDetailInfos",
1141
- value: function getIDMDetailInfos(catalogId, detailinfos) {
1142
- return this.idmPrefix + '/catalogs/' + catalogId + '/detailinfos' + '?filter=' + detailinfos.map(function (d) {
1148
+ value: function getIDMDetailInfos(packageId, detailinfos) {
1149
+ return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/detailinfos' + '?filter=' + detailinfos.map(function (d) {
1143
1150
  return encodeURIComponent('featureClassNo==' + d);
1144
1151
  }).join(' || ');
1145
1152
  }
1146
1153
  }, {
1147
1154
  key: "getIDMFeatureClass",
1148
- value: function getIDMFeatureClass(catalogId, featureclasses) {
1149
- return this.idmPrefix + '/catalogs/' + catalogId + '/featureclasses' + '?filter=' + featureclasses.map(function (f) {
1155
+ value: function getIDMFeatureClass(packageId, featureclasses) {
1156
+ return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/featureclasses' + '?filter=' + featureclasses.map(function (f) {
1150
1157
  return encodeURIComponent('featureClassNo==' + f);
1151
1158
  }).join(' || ');
1152
1159
  }
1153
1160
  }, {
1154
1161
  key: "getIDMPriceFeatureGroups",
1155
- value: function getIDMPriceFeatureGroups(catalogId, pricefeaturegroups) {
1156
- return this.idmPrefix + '/catalogs/' + catalogId + '/pricefeaturegroups' + '?filter=' + pricefeaturegroups.map(function (p) {
1162
+ value: function getIDMPriceFeatureGroups(packageId, pricefeaturegroups) {
1163
+ return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/pricefeaturegroups' + '?filter=' + pricefeaturegroups.map(function (p) {
1157
1164
  return encodeURIComponent('priceFeatureGroupNo==' + p);
1158
1165
  }).join(' || ');
1159
1166
  }
@@ -16391,7 +16398,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16391
16398
  return undefined;
16392
16399
  });
16393
16400
  this.opv = opv;
16394
- opv.colorGroups = this.mapRALColorToGroup();
16401
+ if (opv.imagePaletteColor) {
16402
+ this.opv.colorGroups = [opv.imagePaletteColor];
16403
+ } else {
16404
+ opv.colorGroups = this.mapRALColorToGroup();
16405
+ }
16395
16406
  var metaDatas = setOptionValueProperties(catalogData, this.opv.propertyObj, (_this$opv$property = this.opv.property) !== null && _this$opv$property !== void 0 ? _this$opv$property : []);
16396
16407
  this.opv.metaData = metaDatas;
16397
16408
  }
@@ -16492,27 +16503,32 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16492
16503
  }, {
16493
16504
  key: "isFreeText",
16494
16505
  get: function get() {
16495
- return this.opv.isFreeText;
16506
+ var _this$opv$propertyObj;
16507
+ return (_this$opv$propertyObj = this.opv.propertyObj.optionFreeText) !== null && _this$opv$propertyObj !== void 0 ? _this$opv$propertyObj : this.opv.isFreeText;
16496
16508
  }
16497
16509
  }, {
16498
16510
  key: "measureUnit",
16499
16511
  get: function get() {
16500
- return this.opv.measureUnit;
16512
+ var _this$opv$propertyObj2;
16513
+ return (_this$opv$propertyObj2 = this.opv.propertyObj.measureUnit) !== null && _this$opv$propertyObj2 !== void 0 ? _this$opv$propertyObj2 : this.opv.measureUnit;
16501
16514
  }
16502
16515
  }, {
16503
16516
  key: "measureMinimum",
16504
16517
  get: function get() {
16505
- return this.opv.measureMinimum;
16518
+ var _this$opv$propertyObj3;
16519
+ return (_this$opv$propertyObj3 = this.opv.propertyObj.measureMinimum) !== null && _this$opv$propertyObj3 !== void 0 ? _this$opv$propertyObj3 : this.opv.measureMinimum;
16506
16520
  }
16507
16521
  }, {
16508
16522
  key: "measureMaximum",
16509
16523
  get: function get() {
16510
- return this.opv.measureMaximum;
16524
+ var _this$opv$propertyObj4;
16525
+ return (_this$opv$propertyObj4 = this.opv.propertyObj.measureMaximum) !== null && _this$opv$propertyObj4 !== void 0 ? _this$opv$propertyObj4 : this.opv.measureMaximum;
16511
16526
  }
16512
16527
  }, {
16513
16528
  key: "measureStep",
16514
16529
  get: function get() {
16515
- return this.opv.measureStep;
16530
+ var _this$opv$propertyObj5;
16531
+ return (_this$opv$propertyObj5 = this.opv.propertyObj.measureStep) !== null && _this$opv$propertyObj5 !== void 0 ? _this$opv$propertyObj5 : this.opv.measureStep;
16516
16532
  }
16517
16533
  }, {
16518
16534
  key: "hideSubarticleDescription",
@@ -16527,7 +16543,8 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16527
16543
  }, {
16528
16544
  key: "priceUnit",
16529
16545
  get: function get() {
16530
- return this.opv.priceUnit;
16546
+ var _this$opv$propertyObj6;
16547
+ return (_this$opv$propertyObj6 = this.opv.propertyObj.priceUnit) !== null && _this$opv$propertyObj6 !== void 0 ? _this$opv$propertyObj6 : this.opv.priceUnit;
16531
16548
  }
16532
16549
  }, {
16533
16550
  key: "value",
@@ -16759,6 +16776,24 @@ var setOptionValueProperties = function setOptionValueProperties(catalogData, op
16759
16776
  case 'IsVariantAttribute':
16760
16777
  opv.isVariantAttribute = prop.Value == '1';
16761
16778
  break;
16779
+ case 'OPTION_FREE_TEXT':
16780
+ opv.optionFreeText = !!prop.Value;
16781
+ break;
16782
+ case 'MEASURE_UNIT':
16783
+ opv.measureUnit = prop.Value;
16784
+ break;
16785
+ case 'MEASURE_MINIMUM':
16786
+ opv.measureMinimum = prop.Value;
16787
+ break;
16788
+ case 'MEASURE_MAXIMUM':
16789
+ opv.measureMaximum = prop.Value;
16790
+ break;
16791
+ case 'MEASURE_STEP':
16792
+ opv.measureStep = prop.Value;
16793
+ break;
16794
+ case 'PRICE_UNIT':
16795
+ opv.priceUnit = prop.Value;
16796
+ break;
16762
16797
  case 'ION_COMMENT_TEXT':
16763
16798
  case 'EshopCategoryMapping':
16764
16799
  case 'TopFilterAttribute':
@@ -17896,6 +17931,7 @@ function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
17896
17931
  isOPVG: jsonOPV.IsOPVG && jsonOPV.IsOPVG == '1' ? true : false,
17897
17932
  isFreeText: jsonOPV.FreeText && jsonOPV.FreeText == 'True' ? true : false,
17898
17933
  rals: jsonOPV.RALs,
17934
+ imagePaletteColor: jsonOPV.ImagePaletteColor,
17899
17935
  isCustomAttribute: jsonOPV.IsCustomAttribute,
17900
17936
  measureMinimum: jsonOPV.MeasureMinimum,
17901
17937
  measureMaximum: jsonOPV.MeasureMaximum,
@@ -19597,12 +19633,12 @@ function loadMoreFromIDMArticles(_x, _x2) {
19597
19633
  }
19598
19634
  function _loadMoreFromIDMArticles() {
19599
19635
  _loadMoreFromIDMArticles = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(catalogArticleDatas, set) {
19600
- var items, _loop3, i, toLoadDecisionIds, toLoadPFGroups, toLoadFeatureClassRefNo, promises, _yield$Promise$all, _yield$Promise$all2, featureClasses, priceFeatureGroups, decisions, _i4, _i5, _i6, _catalogArticleData$d2, catalogArticleData, toLoadFeatures, features, _loop4, _i7, _loop6, _i8;
19636
+ var items, _loop3, i, toLoadDecisionIds, toLoadPFGroups, toLoadFeatureClassRefNo, promises, _yield$Promise$all, _yield$Promise$all2, featureClasses, priceFeatureGroups, decisions, _i4, _decisions$map, loadedIds, missingIds, _i5, _i6, _catalogArticleData$d2, catalogArticleData, toLoadFeatures, features, _loop4, _i7, _loop6, _i8;
19601
19637
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context5) {
19602
19638
  while (1) switch (_context5.prev = _context5.next) {
19603
19639
  case 0:
19604
19640
  _context5.next = 2;
19605
- return set.api.getDataCache(set.api.getIDMItems(set.CatalogData.catalogGuid, set.CatalogData.serieId, set.CatalogData.catalogCodex, catalogArticleDatas.map(function (a) {
19641
+ return set.api.getDataCache(set.api.getIDMItems(set.CatalogData.accountGuid, set.CatalogData.serieId, set.CatalogData.catalogCodex, catalogArticleDatas.map(function (a) {
19606
19642
  return a.articleCodex;
19607
19643
  })), undefined, undefined, 'enricher');
19608
19644
  case 2:
@@ -19652,7 +19688,7 @@ function _loadMoreFromIDMArticles() {
19652
19688
  }).map(function (a) {
19653
19689
  return a.featureClassRefNo;
19654
19690
  })));
19655
- promises = [set.api.getDataCache(set.api.getIDMFeatureClass(set.CatalogData.catalogGuid, toLoadFeatureClassRefNo), undefined, undefined, 'enricher'), toLoadPFGroups.length ? set.api.getDataCache(set.api.getIDMPriceFeatureGroups(set.CatalogData.catalogGuid, toLoadPFGroups), undefined, undefined, 'enricher') : undefined, toLoadDecisionIds.length ? set.api.getDataCache(set.api.getIDMDecisions(set.CatalogData.catalogGuid, toLoadDecisionIds), undefined, undefined, 'enricher') : undefined];
19691
+ promises = [set.api.getDataCache(set.api.getIDMFeatureClass(set.CatalogData.accountGuid, toLoadFeatureClassRefNo), undefined, undefined, 'enricher'), toLoadPFGroups.length ? set.api.getDataCache(set.api.getIDMPriceFeatureGroups(set.CatalogData.accountGuid, toLoadPFGroups), undefined, undefined, 'enricher') : undefined, toLoadDecisionIds.length ? set.api.getDataCache(set.api.getIDMDecisions(set.CatalogData.accountGuid, toLoadDecisionIds), undefined, undefined, 'enricher') : undefined];
19656
19692
  _context5.next = 16;
19657
19693
  return Promise.all(promises);
19658
19694
  case 16:
@@ -19667,11 +19703,17 @@ function _loadMoreFromIDMArticles() {
19667
19703
  }
19668
19704
  }
19669
19705
  if (!(toLoadDecisionIds.length !== 0 && toLoadDecisionIds.length != (decisions === null || decisions === void 0 ? void 0 : decisions.length))) {
19670
- _context5.next = 24;
19706
+ _context5.next = 26;
19671
19707
  break;
19672
19708
  }
19673
- throw new Error('loading decisions failed');
19674
- case 24:
19709
+ loadedIds = new Set((_decisions$map = decisions === null || decisions === void 0 ? void 0 : decisions.map(function (d) {
19710
+ return d.decisionNo;
19711
+ })) !== null && _decisions$map !== void 0 ? _decisions$map : []);
19712
+ missingIds = toLoadDecisionIds.filter(function (id) {
19713
+ return !loadedIds.has(id);
19714
+ });
19715
+ throw new Error("loading decisions failed \u2013 missing: [".concat(missingIds.join(', '), "]"));
19716
+ case 26:
19675
19717
  if (priceFeatureGroups) {
19676
19718
  for (_i5 = 0; _i5 < priceFeatureGroups.length; _i5++) {
19677
19719
  set.CatalogData.loadedPriceFeaturegroups.push(initializePriceFeatureGroups(priceFeatureGroups[_i5], set.CatalogData.idmOptionGroups));
@@ -19688,12 +19730,12 @@ function _loadMoreFromIDMArticles() {
19688
19730
  });
19689
19731
  toLoadFeatures = getFeatures(set, featureClasses);
19690
19732
  if (!toLoadFeatures.length) {
19691
- _context5.next = 39;
19733
+ _context5.next = 41;
19692
19734
  break;
19693
19735
  }
19694
- _context5.next = 31;
19695
- return set.api.getDataCache(set.api.getIDMFeatures(set.CatalogData.catalogGuid, toLoadFeatures), undefined, undefined, 'enricher');
19696
- case 31:
19736
+ _context5.next = 33;
19737
+ return set.api.getDataCache(set.api.getIDMFeatures(set.CatalogData.accountGuid, toLoadFeatures), undefined, undefined, 'enricher');
19738
+ case 33:
19697
19739
  features = _context5.sent;
19698
19740
  _loop4 = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop4() {
19699
19741
  var feature, insertIndex, k, _loop5, j;
@@ -19775,17 +19817,17 @@ function _loadMoreFromIDMArticles() {
19775
19817
  }, _loop4);
19776
19818
  });
19777
19819
  _i7 = 0;
19778
- case 34:
19820
+ case 36:
19779
19821
  if (!(_i7 < features.length)) {
19780
- _context5.next = 39;
19822
+ _context5.next = 41;
19781
19823
  break;
19782
19824
  }
19783
- return _context5.delegateYield(_loop4(), "t1", 36);
19784
- case 36:
19825
+ return _context5.delegateYield(_loop4(), "t1", 38);
19826
+ case 38:
19785
19827
  _i7++;
19786
- _context5.next = 34;
19828
+ _context5.next = 36;
19787
19829
  break;
19788
- case 39:
19830
+ case 41:
19789
19831
  _loop6 = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop6() {
19790
19832
  var catalogArticleData, featureClass, features, j;
19791
19833
  return _regeneratorRuntime__default["default"].wrap(function _loop6$(_context4) {
@@ -19812,21 +19854,21 @@ function _loadMoreFromIDMArticles() {
19812
19854
  }, _loop6);
19813
19855
  });
19814
19856
  _i8 = 0;
19815
- case 41:
19857
+ case 43:
19816
19858
  if (!(_i8 < catalogArticleDatas.length)) {
19817
- _context5.next = 46;
19859
+ _context5.next = 48;
19818
19860
  break;
19819
19861
  }
19820
- return _context5.delegateYield(_loop6(), "t2", 43);
19821
- case 43:
19862
+ return _context5.delegateYield(_loop6(), "t2", 45);
19863
+ case 45:
19822
19864
  _i8++;
19823
- _context5.next = 41;
19865
+ _context5.next = 43;
19824
19866
  break;
19825
- case 46:
19867
+ case 48:
19826
19868
  catalogArticleDatas.map(function (c) {
19827
19869
  return c.areOptionsLoaded = true;
19828
19870
  });
19829
- case 47:
19871
+ case 49:
19830
19872
  case "end":
19831
19873
  return _context5.stop();
19832
19874
  }
@@ -20210,15 +20252,16 @@ function ownKeys$l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
20210
20252
  function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20211
20253
  var LOG$j = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
20212
20254
  function initIDMCatalogData(serie, orderSet, api) {
20213
- var _serie$catalogId, _serie$decisions, _serie$decisions2;
20255
+ var _serie$decisions, _serie$decisions2;
20214
20256
  var catalog = serie.catalogData;
20215
20257
  var catalogData = {
20216
- accountGuid: (_serie$catalogId = serie.catalogId) !== null && _serie$catalogId !== void 0 ? _serie$catalogId : orderSet.AccountGUID,
20258
+ accountGuid: orderSet.AccountGUID,
20217
20259
  serieId: serie._id,
20218
20260
  accountName: '',
20219
20261
  accountLogo: '',
20220
20262
  collectionGuid: serie.catalogId,
20221
- catalogGuid: serie.catalogId,
20263
+ catalogGuid: '',
20264
+ //serie.enricherPackageId,
20222
20265
  catalogCodex: serie.serieNo.toString(),
20223
20266
  catalogName: DivaUtils__default["default"].getLocals(serie.seriesName, api.getLanguageLowercase()),
20224
20267
  // name des Kataloges
@@ -20275,7 +20318,7 @@ function initIDMArticles(jsonItems, catalogData) {
20275
20318
  }
20276
20319
  }
20277
20320
  function getCatalogArticle(article, catalogData) {
20278
- var _catalogData$catalogM, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$fullText3, _articleMask$properti, _article$depthBasicSh, _article$depthBasicSh2, _article$depthBasicSh3, _article$widthBasicSh, _article$widthBasicSh2, _article$widthBasicSh3, _article$heightBasicS, _article$heightBasicS2, _article$heightBasicS3, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _article$detailInfos3, _articleMask$groupnam, _articleMask$groupnam2;
20321
+ var _catalogData$catalogM, _article$typeKey, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$fullText3, _articleMask$properti, _article$depthBasicSh, _article$depthBasicSh2, _article$depthBasicSh3, _article$widthBasicSh, _article$widthBasicSh2, _article$widthBasicSh3, _article$heightBasicS, _article$heightBasicS2, _article$heightBasicS3, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _article$detailInfos3, _articleMask$groupnam, _articleMask$groupnam2;
20279
20322
  var articleMask = (_catalogData$catalogM = catalogData.catalogMask) === null || _catalogData$catalogM === void 0 || (_catalogData$catalogM = _catalogData$catalogM.articles) === null || _catalogData$catalogM === void 0 ? void 0 : _catalogData$catalogM[article.typeNo];
20280
20323
  var lang = catalogData.api.getLanguageLowercase();
20281
20324
  var featureProperties = convertProperties(article.properties, lang, 'featureNos');
@@ -20286,7 +20329,7 @@ function getCatalogArticle(article, catalogData) {
20286
20329
  articleCodex: article.typeNo,
20287
20330
  articleOptions: {},
20288
20331
  partListExclusive: article.partListExclusive,
20289
- guid: article.typeKey,
20332
+ guid: (_article$typeKey = article.typeKey) === null || _article$typeKey === void 0 ? void 0 : _article$typeKey.toString(),
20290
20333
  articleEAN: article.eanNumber,
20291
20334
  typeNr: article.eanNumber,
20292
20335
  retailArticleNr: article.salesNumber,
@@ -25646,7 +25689,7 @@ var IDMEngine = /*#__PURE__*/function () {
25646
25689
  });
25647
25690
  var ref = optionSetRef === null || optionSetRef === void 0 ? void 0 : optionSetRef.optionList;
25648
25691
  if (optionSetRef && !optionSetRef.optionList) throw new Error('optionSetRef not implemented: ' + JSON.stringify(optionSetRef));
25649
- var doUseDoc = !ref || !!_this3.evalValueWithOperator(ref.operator, ref.options, ops.valCodex);
25692
+ var doUseDoc = true;
25650
25693
  if (doAlsoCheckFeature.length > 0) {
25651
25694
  var _loop4 = function _loop4() {
25652
25695
  var _combination$projectO2;
@@ -26815,6 +26858,7 @@ var DivaArticle = /*#__PURE__*/function () {
26815
26858
  partlistDecisionNo: initParams.partlistDecisionNo,
26816
26859
  partListParentArticle: initParams.parentArticle,
26817
26860
  partlistArticleVisibleInTree: initParams.partlistArticleVisibleInTree,
26861
+ dontAddToFinalOrderLine: initParams.dontAddToFinalOrderLine,
26818
26862
  partlistArticleStandalone: initParams.partlistArticleStandalone,
26819
26863
  partlistGroupPrefix: initParams.partlistGroupPrefix,
26820
26864
  hasPartlistArticle: initParams.hasPartlistArticle ? initParams.hasPartlistArticle : false,
@@ -28645,6 +28689,11 @@ var DivaArticle = /*#__PURE__*/function () {
28645
28689
  }
28646
28690
  return ret;
28647
28691
  }
28692
+ }, {
28693
+ key: "dontAddToFinalOrderLine",
28694
+ get: function get() {
28695
+ return this.article.dontAddToFinalOrderLine;
28696
+ }
28648
28697
  }, {
28649
28698
  key: "areAllOptionsDefined",
28650
28699
  get: function get() {
@@ -29486,7 +29535,7 @@ var DivaArticle = /*#__PURE__*/function () {
29486
29535
  break;
29487
29536
  }
29488
29537
  _context.next = 4;
29489
- return Promise.resolve().then(function () { return require('./ShelfPlanner-2a0fb19d.js'); });
29538
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-30a0393b.js'); });
29490
29539
  case 4:
29491
29540
  _yield$import = _context.sent;
29492
29541
  ShelfPlanner = _yield$import["default"];
@@ -31219,6 +31268,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
31219
31268
  supplierOrderCodex: doLoadItem.SupplierOrderCodex,
31220
31269
  initDecisions: doLoadItem.initDecisions,
31221
31270
  partlistArticleVisibleInTree: doLoadItem.PosInvisibility === 0,
31271
+ dontAddToFinalOrderLine: doLoadItem.PosInvisibility === 1,
31222
31272
  partlistArticleStandalone: doLoadItem.ConfigurationMode,
31223
31273
  partlistGroupPrefix: doLoadItem.partlistGroupPrefix,
31224
31274
  optionsForPrint: doLoadItem.optionsForPrint,
@@ -31611,6 +31661,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
31611
31661
  Width: article.width,
31612
31662
  Depth: article.depth,
31613
31663
  Height: article.height,
31664
+ dontAddToFinalOrderLine: article.dontAddToFinalOrderLine,
31614
31665
  CatalogCodex: catalogData.catalogCodex,
31615
31666
  CatalogName: catalogData.catalogName,
31616
31667
  VKPrice: article.getVkPrice,
@@ -34867,6 +34918,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34867
34918
  if (Object.values(articles).find(function (article) {
34868
34919
  return article.shelfPlanner;
34869
34920
  })) return;
34921
+ if (Object.values(articles).find(function (article) {
34922
+ return article.set.CatalogData.useBoxPlanner;
34923
+ })) return;
34870
34924
  var _iterator3 = _createForOfIteratorHelper$4(configTree.tabGroups),
34871
34925
  _step3;
34872
34926
  try {
@@ -34879,6 +34933,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34879
34933
  var hasSelectionMode2 = [];
34880
34934
  var hasSelectionMode3 = [];
34881
34935
  var basketIds = [];
34936
+ var breakTabgroup = false;
34882
34937
  var _iterator4 = _createForOfIteratorHelper$4(tabGroup.options),
34883
34938
  _step4;
34884
34939
  try {
@@ -34886,6 +34941,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34886
34941
  var _step4$value = _slicedToArray__default["default"](_step4.value, 2),
34887
34942
  _optionCodex2 = _step4$value[0],
34888
34943
  _option2 = _step4$value[1];
34944
+ var configSteps = Array.from(_option2.configSteps.values());
34945
+ if (configSteps.find(function (configStep) {
34946
+ return configStep.notDisplayedInMainConfigTree;
34947
+ })) breakTabgroup = true;
34889
34948
  switch (_option2.selectionmode) {
34890
34949
  case 1:
34891
34950
  hasSelectionMode1.push(_optionCodex2);
@@ -34928,6 +34987,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34928
34987
  } finally {
34929
34988
  _iterator4.f();
34930
34989
  }
34990
+ if (breakTabgroup) continue;
34931
34991
  if (hasSelectionMode2.length > 0 && hasSelectionMode3.length > 0 && hasSelectionMode1.length == 0) {
34932
34992
  //make the selectionmode 2 options -> selectionmode 3
34933
34993
  var _iterator5 = _createForOfIteratorHelper$4(hasSelectionMode2),
@@ -37414,7 +37474,7 @@ var DivaSet = /*#__PURE__*/function () {
37414
37474
  break;
37415
37475
  }
37416
37476
  _context5.next = 3;
37417
- return Promise.resolve().then(function () { return require('./DoorPlanner-d492a9d9.js'); });
37477
+ return Promise.resolve().then(function () { return require('./DoorPlanner-0a53a6c5.js'); });
37418
37478
  case 3:
37419
37479
  _yield$import = _context5.sent;
37420
37480
  DoorPlanner = _yield$import["default"];
@@ -41984,7 +42044,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
41984
42044
  actBasket.ReturnTo = returnTo;
41985
42045
  actBasket.PDFDocumentURL = '';
41986
42046
  actBasket.ReportConfigIdentifier = api.getReportConfigIdentifier();
41987
- actBasket.PrintOptions = api.getPrintOptions(this.reportConfig, !!arReady);
42047
+ actBasket.PrintOptions = api.getPrintOptions(this.reportConfig, !!actBasket.OrderSets[0].SetImage, !!arReady);
41988
42048
  actBasket.ClientLanguage = api.getLanguage();
41989
42049
  _context11.next = 8;
41990
42050
  return DivaUtils__default["default"].updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser, (_this$plannerConfig$s10 = this.plannerConfig.settings) === null || _this$plannerConfig$s10 === void 0 ? void 0 : _this$plannerConfig$s10.keepSalesPersonDataInBasket);
@@ -42178,7 +42238,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
42178
42238
  break;
42179
42239
  case 3:
42180
42240
  _context12.next = 5;
42181
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-7eb044db.js'); });
42241
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-2312012e.js'); });
42182
42242
  case 5:
42183
42243
  _yield$import = _context12.sent;
42184
42244
  PfisterWWSHandler = _yield$import["default"];
@@ -42186,7 +42246,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
42186
42246
  return _context12.abrupt("break", 27);
42187
42247
  case 9:
42188
42248
  _context12.next = 11;
42189
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-9b3939c8.js'); });
42249
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-687234fb.js'); });
42190
42250
  case 11:
42191
42251
  _yield$import2 = _context12.sent;
42192
42252
  LiviqueWWSHandler = _yield$import2["default"];
@@ -42194,7 +42254,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
42194
42254
  return _context12.abrupt("break", 27);
42195
42255
  case 15:
42196
42256
  _context12.next = 17;
42197
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-bbe6859a.js'); });
42257
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-b18705d7.js'); });
42198
42258
  case 17:
42199
42259
  _yield$import3 = _context12.sent;
42200
42260
  SeriousWWSHandler = _yield$import3["default"];
@@ -42202,7 +42262,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
42202
42262
  return _context12.abrupt("break", 27);
42203
42263
  case 21:
42204
42264
  _context12.next = 23;
42205
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-3391c7ed.js'); });
42265
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-338cf72c.js'); });
42206
42266
  case 23:
42207
42267
  _yield$import4 = _context12.sent;
42208
42268
  StandardWWSHandler = _yield$import4["default"];
@@ -43626,7 +43686,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
43626
43686
  while (1) switch (_context3.prev = _context3.next) {
43627
43687
  case 0:
43628
43688
  _context3.next = 2;
43629
- return Promise.resolve().then(function () { return require('./Host3DSignalR-e8e59f7a.js'); });
43689
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-e445e5f7.js'); });
43630
43690
  case 2:
43631
43691
  _yield$import = _context3.sent;
43632
43692
  Host3DSignalR = _yield$import["default"];
@@ -45379,7 +45439,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
45379
45439
  break;
45380
45440
  case 8:
45381
45441
  _context4.next = 10;
45382
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-4bab9fb6.js'); });
45442
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-a867eff7.js'); });
45383
45443
  case 10:
45384
45444
  _yield$import = _context4.sent;
45385
45445
  DivaStandardPlanner = _yield$import["default"];
@@ -45390,7 +45450,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
45390
45450
  return _context4.abrupt("break", 21);
45391
45451
  case 15:
45392
45452
  _context4.next = 17;
45393
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-d378bbb7.js'); });
45453
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-6bfcec61.js'); });
45394
45454
  case 17:
45395
45455
  _yield$import2 = _context4.sent;
45396
45456
  DivaBoxPlanner = _yield$import2["default"];
@@ -47309,7 +47369,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47309
47369
  value: function () {
47310
47370
  var _initializeSets = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee15(loadSuccessful, viewReadyPromise) {
47311
47371
  var _this$actions17, _set$getDivaArticles, _catalogData$catalogM, _catalogData$catalogM2;
47312
- var _this$actions16, _this$actions16$toggl, initSetState, set, oldProductId, _result$customData, _result$customData2, result, _this$actions18, catalogData, initializationId, _this$plannerConfig$a, initializationType;
47372
+ var _this$actions16, _this$actions16$toggl, initSetState, set, oldProductId, _result$customData$SA, _result$customData, _result$customData2, _result$customData$SA2, _result$customData3, _result$customData4, result, _this$actions18, catalogData, initializationId, _this$plannerConfig$a, initializationType;
47313
47373
  return _regeneratorRuntime__default["default"].wrap(function _callee15$(_context15) {
47314
47374
  while (1) switch (_context15.prev = _context15.next) {
47315
47375
  case 0:
@@ -47348,8 +47408,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47348
47408
  case 21:
47349
47409
  result = _context15.sent;
47350
47410
  if (result) productHandlerInstance.handleFountMatchingProducts(set, [result], set.setHash);
47351
- result === null || result === void 0 || (_result$customData = result.customData) === null || _result$customData === void 0 ? void 0 : _result$customData.SAP_MARA_MATKL;
47352
- result === null || result === void 0 || (_result$customData2 = result.customData) === null || _result$customData2 === void 0 ? void 0 : _result$customData2.SAP_MARA_PRDHA;
47411
+ (_result$customData$SA = result === null || result === void 0 || (_result$customData = result.customData) === null || _result$customData === void 0 || (_result$customData = _result$customData.SAP) === null || _result$customData === void 0 ? void 0 : _result$customData.SAP_MARA_MATKL) !== null && _result$customData$SA !== void 0 ? _result$customData$SA : result === null || result === void 0 || (_result$customData2 = result.customData) === null || _result$customData2 === void 0 || (_result$customData2 = _result$customData2.SAP_MARA_MATKL) === null || _result$customData2 === void 0 ? void 0 : _result$customData2.value;
47412
+ (_result$customData$SA2 = result === null || result === void 0 || (_result$customData3 = result.customData) === null || _result$customData3 === void 0 || (_result$customData3 = _result$customData3.SAP) === null || _result$customData3 === void 0 ? void 0 : _result$customData3.SAP_MARA_PRDHA) !== null && _result$customData$SA2 !== void 0 ? _result$customData$SA2 : result === null || result === void 0 || (_result$customData4 = result.customData) === null || _result$customData4 === void 0 || (_result$customData4 = _result$customData4.SAP_MARA_PRDHA) === null || _result$customData4 === void 0 ? void 0 : _result$customData4.value;
47353
47413
  _context15.next = 28;
47354
47414
  break;
47355
47415
  case 27:
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-a8cd3c1d.js');
5
+ var index = require('./index-dfc430a1.js');
6
6
  require('@babel/runtime/helpers/slicedToArray');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('@babel/runtime/helpers/classCallCheck');
@@ -3,11 +3,11 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { c as Vector2, V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-79dd365f.js';
6
+ import { c as Vector2, V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-700a861f.js';
7
7
  import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
8
8
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
9
9
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
10
- import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-2df72989.js';
10
+ import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-5a896f31.js';
11
11
  import '@babel/runtime/helpers/objectWithoutProperties';
12
12
  import 'axios';
13
13
  import '@crystaldesign/basket-model';
@@ -4776,6 +4776,7 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
4776
4776
  var grid = this.generalPlanningState.grids[0].matrix;
4777
4777
  var backup = structuredClone(this.generalPlanningState);
4778
4778
  var res = this.getCellsInGridByElementId(elementId);
4779
+ if (res.cells.length == 0) return true;
4779
4780
  var cell = res.cells[0];
4780
4781
  var scpe = this.gridSetupParams.forceSingleCellPerElement;
4781
4782
  var origin = {
@@ -5111,10 +5112,11 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
5111
5112
  height = height < colHeight ? colHeight : height;
5112
5113
  }
5113
5114
  }
5114
- var depth = maxZ - minZ;
5115
- var width = maxX - minX;
5115
+ var depth = Math.abs(maxZ - minZ);
5116
+ var width = Math.abs(maxX - minX);
5116
5117
  if (this.hasActiveBackside) {
5117
- depth = curZ * 2;
5118
+ // Backside mirrors the front module, so total depth is doubled front bounding depth.
5119
+ depth *= 2;
5118
5120
  }
5119
5121
  return {
5120
5122
  width: Math.round(width * 1000) / 1000,
@@ -3,9 +3,9 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { V as Vector3, c as Vector2, P as PlannerElementData, B as BoundingBox } from './index-79dd365f.js';
6
+ import { V as Vector3, c as Vector2, P as PlannerElementData, B as BoundingBox } from './index-700a861f.js';
7
7
  import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
8
- import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-2df72989.js';
8
+ import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-5a896f31.js';
9
9
  import '@babel/runtime/helpers/slicedToArray';
10
10
  import '@babel/runtime/helpers/objectWithoutProperties';
11
11
  import '@babel/runtime/helpers/toConsumableArray';
@@ -1,7 +1,7 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
3
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
- import './index-79dd365f.js';
4
+ import './index-700a861f.js';
5
5
  import DivaUtils from '@crystaldesign/diva-utils';
6
6
  import '@babel/runtime/helpers/slicedToArray';
7
7
  import '@babel/runtime/helpers/asyncToGenerator';
@@ -3,7 +3,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { R as Rendering, H as HQRenderScript } from './index-79dd365f.js';
6
+ import { R as Rendering, H as HQRenderScript } from './index-700a861f.js';
7
7
  import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
8
8
  import { HubConnectionBuilder, LogLevel } from '@microsoft/signalr';
9
9
  import io from 'socket.io-client';
@@ -1,6 +1,6 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
- import './index-79dd365f.js';
3
+ import './index-700a861f.js';
4
4
  import '@babel/runtime/helpers/slicedToArray';
5
5
  import '@babel/runtime/helpers/asyncToGenerator';
6
6
  import '@babel/runtime/helpers/defineProperty';
@@ -1,6 +1,6 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
- import { a as articleHandlerInstance } from './index-79dd365f.js';
3
+ import { a as articleHandlerInstance } from './index-700a861f.js';
4
4
  import { SAPOrderLineData } from '@crystaldesign/basket-model';
5
5
  import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
6
6
  import '@babel/runtime/helpers/slicedToArray';
@@ -3,7 +3,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { c as Vector2, D as DockingPoint, V as Vector3 } from './index-79dd365f.js';
6
+ import { c as Vector2, D as DockingPoint, V as Vector3 } from './index-700a861f.js';
7
7
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
8
8
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
9
9
  import { fabric } from 'fabric';