@crystaldesign/web-planner-logic 26.5.0-beta.3 → 26.5.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 (45) hide show
  1. package/build/cjs/{DivaBoxPlanner-d378bbb7.js → DivaBoxPlanner-6004fce9.js} +7 -5
  2. package/build/cjs/{DivaStandardPlanner-4bab9fb6.js → DivaStandardPlanner-9c4e8626.js} +2 -2
  3. package/build/cjs/{DoorPlanner-d492a9d9.js → DoorPlanner-df44d442.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-e8e59f7a.js → Host3DSignalR-e1aec0e2.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-9b3939c8.js → LiviqueWWSHandler-f2dea1f8.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-7eb044db.js → PfisterWWSHandler-662cae94.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-89255bdd.js → PlannerHandler2D-87f68503.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-bbe6859a.js → SeriousBasketHandler-6310d3be.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-2a0fb19d.js → ShelfPlanner-d3bdc0de.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-3391c7ed.js → StandardWWSHandler-b055f6a4.js} +1 -1
  11. package/build/cjs/{index-a8cd3c1d.js → index-a90339fa.js} +93 -60
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-21211eeb.js → DivaBoxPlanner-be35d8b5.js} +7 -5
  14. package/build/esm/{DivaStandardPlanner-95dd670c.js → DivaStandardPlanner-cf15a3c5.js} +2 -2
  15. package/build/esm/{DoorPlanner-56b674bf.js → DoorPlanner-353867f8.js} +1 -1
  16. package/build/esm/{Host3DSignalR-0c56c943.js → Host3DSignalR-e9e1e7b5.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-0f7a4bcb.js → LiviqueWWSHandler-6e78c09c.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-7a25803c.js → PfisterWWSHandler-142e2ef6.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-2df72989.js → PlannerHandler2D-bcd064d5.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-6c14c04e.js → SeriousBasketHandler-deedf4e8.js} +1 -1
  21. package/build/esm/{ShelfPlanner-9c7ffe88.js → ShelfPlanner-8b97bd86.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-3a3026aa.js → StandardWWSHandler-ddbb240d.js} +1 -1
  23. package/build/esm/{index-79dd365f.js → index-b964d887.js} +93 -60
  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 +1 -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/DivaArticle.d.ts +1 -0
  36. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  38. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +9 -8
  40. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
  42. package/build/types/web-planner-logic/src/model/Articles/Article/IDMCatalogArticle.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
  44. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
  45. package/package.json +2 -2
@@ -5,11 +5,11 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
5
5
  var _createClass = require('@babel/runtime/helpers/createClass');
6
6
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
7
7
  var _regeneratorRuntime = require('@babel/runtime/regenerator');
8
- var index = require('./index-a8cd3c1d.js');
8
+ var index = require('./index-a90339fa.js');
9
9
  var DivaUtils = require('@crystaldesign/diva-utils');
10
10
  var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
11
11
  var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
12
- var PlannerHandler2D = require('./PlannerHandler2D-89255bdd.js');
12
+ var PlannerHandler2D = require('./PlannerHandler2D-87f68503.js');
13
13
  require('@babel/runtime/helpers/objectWithoutProperties');
14
14
  require('axios');
15
15
  require('@crystaldesign/basket-model');
@@ -4789,6 +4789,7 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
4789
4789
  var grid = this.generalPlanningState.grids[0].matrix;
4790
4790
  var backup = structuredClone(this.generalPlanningState);
4791
4791
  var res = this.getCellsInGridByElementId(elementId);
4792
+ if (res.cells.length == 0) return true;
4792
4793
  var cell = res.cells[0];
4793
4794
  var scpe = this.gridSetupParams.forceSingleCellPerElement;
4794
4795
  var origin = {
@@ -5124,10 +5125,11 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
5124
5125
  height = height < colHeight ? colHeight : height;
5125
5126
  }
5126
5127
  }
5127
- var depth = maxZ - minZ;
5128
- var width = maxX - minX;
5128
+ var depth = Math.abs(maxZ - minZ);
5129
+ var width = Math.abs(maxX - minX);
5129
5130
  if (this.hasActiveBackside) {
5130
- depth = curZ * 2;
5131
+ // Backside mirrors the front module, so total depth is doubled front bounding depth.
5132
+ depth *= 2;
5131
5133
  }
5132
5134
  return {
5133
5135
  width: Math.round(width * 1000) / 1000,
@@ -5,9 +5,9 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
5
5
  var _createClass = require('@babel/runtime/helpers/createClass');
6
6
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
7
7
  var _regeneratorRuntime = require('@babel/runtime/regenerator');
8
- var index = require('./index-a8cd3c1d.js');
8
+ var index = require('./index-a90339fa.js');
9
9
  var DivaUtils = require('@crystaldesign/diva-utils');
10
- var PlannerHandler2D = require('./PlannerHandler2D-89255bdd.js');
10
+ var PlannerHandler2D = require('./PlannerHandler2D-87f68503.js');
11
11
  require('@babel/runtime/helpers/slicedToArray');
12
12
  require('@babel/runtime/helpers/objectWithoutProperties');
13
13
  require('@babel/runtime/helpers/toConsumableArray');
@@ -3,7 +3,7 @@
3
3
  var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
4
4
  var _createClass = require('@babel/runtime/helpers/createClass');
5
5
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
- require('./index-a8cd3c1d.js');
6
+ require('./index-a90339fa.js');
7
7
  var DivaUtils = require('@crystaldesign/diva-utils');
8
8
  require('@babel/runtime/helpers/slicedToArray');
9
9
  require('@babel/runtime/helpers/asyncToGenerator');
@@ -5,7 +5,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
5
5
  var _createClass = require('@babel/runtime/helpers/createClass');
6
6
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
7
7
  var _regeneratorRuntime = require('@babel/runtime/regenerator');
8
- var index = require('./index-a8cd3c1d.js');
8
+ var index = require('./index-a90339fa.js');
9
9
  var DivaUtils = require('@crystaldesign/diva-utils');
10
10
  var signalr = require('@microsoft/signalr');
11
11
  var io = require('socket.io-client');
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
4
4
  var _createClass = require('@babel/runtime/helpers/createClass');
5
- require('./index-a8cd3c1d.js');
5
+ require('./index-a90339fa.js');
6
6
  require('@babel/runtime/helpers/slicedToArray');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('@babel/runtime/helpers/defineProperty');
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
4
4
  var _createClass = require('@babel/runtime/helpers/createClass');
5
- var index = require('./index-a8cd3c1d.js');
5
+ var index = require('./index-a90339fa.js');
6
6
  var basketModel = require('@crystaldesign/basket-model');
7
7
  var DivaUtils = require('@crystaldesign/diva-utils');
8
8
  require('@babel/runtime/helpers/slicedToArray');
@@ -5,7 +5,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
5
5
  var _createClass = require('@babel/runtime/helpers/createClass');
6
6
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
7
7
  var _regeneratorRuntime = require('@babel/runtime/regenerator');
8
- var index = require('./index-a8cd3c1d.js');
8
+ var index = require('./index-a90339fa.js');
9
9
  var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
10
10
  var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
11
11
  var fabric = require('fabric');
@@ -3,7 +3,7 @@
3
3
  var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
4
4
  var _createClass = require('@babel/runtime/helpers/createClass');
5
5
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
- var index = require('./index-a8cd3c1d.js');
6
+ var index = require('./index-a90339fa.js');
7
7
  var DivaUtils = require('@crystaldesign/diva-utils');
8
8
  require('@babel/runtime/helpers/slicedToArray');
9
9
  require('@babel/runtime/helpers/asyncToGenerator');
@@ -6,7 +6,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
6
6
  var _createClass = require('@babel/runtime/helpers/createClass');
7
7
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
8
8
  var _regeneratorRuntime = require('@babel/runtime/regenerator');
9
- var index = require('./index-a8cd3c1d.js');
9
+ var index = require('./index-a90339fa.js');
10
10
  var DivaUtils = require('@crystaldesign/diva-utils');
11
11
  require('@babel/runtime/helpers/slicedToArray');
12
12
  require('@babel/runtime/helpers/objectWithoutProperties');
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
4
4
  var _createClass = require('@babel/runtime/helpers/createClass');
5
- require('./index-a8cd3c1d.js');
5
+ require('./index-a90339fa.js');
6
6
  require('@babel/runtime/helpers/slicedToArray');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('@babel/runtime/helpers/defineProperty');
@@ -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
  }
@@ -17896,6 +17907,7 @@ function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
17896
17907
  isOPVG: jsonOPV.IsOPVG && jsonOPV.IsOPVG == '1' ? true : false,
17897
17908
  isFreeText: jsonOPV.FreeText && jsonOPV.FreeText == 'True' ? true : false,
17898
17909
  rals: jsonOPV.RALs,
17910
+ imagePaletteColor: jsonOPV.ImagePaletteColor,
17899
17911
  isCustomAttribute: jsonOPV.IsCustomAttribute,
17900
17912
  measureMinimum: jsonOPV.MeasureMinimum,
17901
17913
  measureMaximum: jsonOPV.MeasureMaximum,
@@ -19597,12 +19609,12 @@ function loadMoreFromIDMArticles(_x, _x2) {
19597
19609
  }
19598
19610
  function _loadMoreFromIDMArticles() {
19599
19611
  _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;
19612
+ 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
19613
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context5) {
19602
19614
  while (1) switch (_context5.prev = _context5.next) {
19603
19615
  case 0:
19604
19616
  _context5.next = 2;
19605
- return set.api.getDataCache(set.api.getIDMItems(set.CatalogData.catalogGuid, set.CatalogData.serieId, set.CatalogData.catalogCodex, catalogArticleDatas.map(function (a) {
19617
+ return set.api.getDataCache(set.api.getIDMItems(set.CatalogData.accountGuid, set.CatalogData.serieId, set.CatalogData.catalogCodex, catalogArticleDatas.map(function (a) {
19606
19618
  return a.articleCodex;
19607
19619
  })), undefined, undefined, 'enricher');
19608
19620
  case 2:
@@ -19652,7 +19664,7 @@ function _loadMoreFromIDMArticles() {
19652
19664
  }).map(function (a) {
19653
19665
  return a.featureClassRefNo;
19654
19666
  })));
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];
19667
+ 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
19668
  _context5.next = 16;
19657
19669
  return Promise.all(promises);
19658
19670
  case 16:
@@ -19667,11 +19679,17 @@ function _loadMoreFromIDMArticles() {
19667
19679
  }
19668
19680
  }
19669
19681
  if (!(toLoadDecisionIds.length !== 0 && toLoadDecisionIds.length != (decisions === null || decisions === void 0 ? void 0 : decisions.length))) {
19670
- _context5.next = 24;
19682
+ _context5.next = 26;
19671
19683
  break;
19672
19684
  }
19673
- throw new Error('loading decisions failed');
19674
- case 24:
19685
+ loadedIds = new Set((_decisions$map = decisions === null || decisions === void 0 ? void 0 : decisions.map(function (d) {
19686
+ return d.decisionNo;
19687
+ })) !== null && _decisions$map !== void 0 ? _decisions$map : []);
19688
+ missingIds = toLoadDecisionIds.filter(function (id) {
19689
+ return !loadedIds.has(id);
19690
+ });
19691
+ throw new Error("loading decisions failed \u2013 missing: [".concat(missingIds.join(', '), "]"));
19692
+ case 26:
19675
19693
  if (priceFeatureGroups) {
19676
19694
  for (_i5 = 0; _i5 < priceFeatureGroups.length; _i5++) {
19677
19695
  set.CatalogData.loadedPriceFeaturegroups.push(initializePriceFeatureGroups(priceFeatureGroups[_i5], set.CatalogData.idmOptionGroups));
@@ -19688,12 +19706,12 @@ function _loadMoreFromIDMArticles() {
19688
19706
  });
19689
19707
  toLoadFeatures = getFeatures(set, featureClasses);
19690
19708
  if (!toLoadFeatures.length) {
19691
- _context5.next = 39;
19709
+ _context5.next = 41;
19692
19710
  break;
19693
19711
  }
19694
- _context5.next = 31;
19695
- return set.api.getDataCache(set.api.getIDMFeatures(set.CatalogData.catalogGuid, toLoadFeatures), undefined, undefined, 'enricher');
19696
- case 31:
19712
+ _context5.next = 33;
19713
+ return set.api.getDataCache(set.api.getIDMFeatures(set.CatalogData.accountGuid, toLoadFeatures), undefined, undefined, 'enricher');
19714
+ case 33:
19697
19715
  features = _context5.sent;
19698
19716
  _loop4 = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop4() {
19699
19717
  var feature, insertIndex, k, _loop5, j;
@@ -19775,17 +19793,17 @@ function _loadMoreFromIDMArticles() {
19775
19793
  }, _loop4);
19776
19794
  });
19777
19795
  _i7 = 0;
19778
- case 34:
19796
+ case 36:
19779
19797
  if (!(_i7 < features.length)) {
19780
- _context5.next = 39;
19798
+ _context5.next = 41;
19781
19799
  break;
19782
19800
  }
19783
- return _context5.delegateYield(_loop4(), "t1", 36);
19784
- case 36:
19801
+ return _context5.delegateYield(_loop4(), "t1", 38);
19802
+ case 38:
19785
19803
  _i7++;
19786
- _context5.next = 34;
19804
+ _context5.next = 36;
19787
19805
  break;
19788
- case 39:
19806
+ case 41:
19789
19807
  _loop6 = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop6() {
19790
19808
  var catalogArticleData, featureClass, features, j;
19791
19809
  return _regeneratorRuntime__default["default"].wrap(function _loop6$(_context4) {
@@ -19812,21 +19830,21 @@ function _loadMoreFromIDMArticles() {
19812
19830
  }, _loop6);
19813
19831
  });
19814
19832
  _i8 = 0;
19815
- case 41:
19833
+ case 43:
19816
19834
  if (!(_i8 < catalogArticleDatas.length)) {
19817
- _context5.next = 46;
19835
+ _context5.next = 48;
19818
19836
  break;
19819
19837
  }
19820
- return _context5.delegateYield(_loop6(), "t2", 43);
19821
- case 43:
19838
+ return _context5.delegateYield(_loop6(), "t2", 45);
19839
+ case 45:
19822
19840
  _i8++;
19823
- _context5.next = 41;
19841
+ _context5.next = 43;
19824
19842
  break;
19825
- case 46:
19843
+ case 48:
19826
19844
  catalogArticleDatas.map(function (c) {
19827
19845
  return c.areOptionsLoaded = true;
19828
19846
  });
19829
- case 47:
19847
+ case 49:
19830
19848
  case "end":
19831
19849
  return _context5.stop();
19832
19850
  }
@@ -20210,15 +20228,16 @@ function ownKeys$l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
20210
20228
  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
20229
  var LOG$j = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
20212
20230
  function initIDMCatalogData(serie, orderSet, api) {
20213
- var _serie$catalogId, _serie$decisions, _serie$decisions2;
20231
+ var _serie$decisions, _serie$decisions2;
20214
20232
  var catalog = serie.catalogData;
20215
20233
  var catalogData = {
20216
- accountGuid: (_serie$catalogId = serie.catalogId) !== null && _serie$catalogId !== void 0 ? _serie$catalogId : orderSet.AccountGUID,
20234
+ accountGuid: orderSet.AccountGUID,
20217
20235
  serieId: serie._id,
20218
20236
  accountName: '',
20219
20237
  accountLogo: '',
20220
20238
  collectionGuid: serie.catalogId,
20221
- catalogGuid: serie.catalogId,
20239
+ catalogGuid: '',
20240
+ //serie.enricherPackageId,
20222
20241
  catalogCodex: serie.serieNo.toString(),
20223
20242
  catalogName: DivaUtils__default["default"].getLocals(serie.seriesName, api.getLanguageLowercase()),
20224
20243
  // name des Kataloges
@@ -20275,7 +20294,7 @@ function initIDMArticles(jsonItems, catalogData) {
20275
20294
  }
20276
20295
  }
20277
20296
  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;
20297
+ 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
20298
  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
20299
  var lang = catalogData.api.getLanguageLowercase();
20281
20300
  var featureProperties = convertProperties(article.properties, lang, 'featureNos');
@@ -20286,7 +20305,7 @@ function getCatalogArticle(article, catalogData) {
20286
20305
  articleCodex: article.typeNo,
20287
20306
  articleOptions: {},
20288
20307
  partListExclusive: article.partListExclusive,
20289
- guid: article.typeKey,
20308
+ guid: (_article$typeKey = article.typeKey) === null || _article$typeKey === void 0 ? void 0 : _article$typeKey.toString(),
20290
20309
  articleEAN: article.eanNumber,
20291
20310
  typeNr: article.eanNumber,
20292
20311
  retailArticleNr: article.salesNumber,
@@ -25646,7 +25665,7 @@ var IDMEngine = /*#__PURE__*/function () {
25646
25665
  });
25647
25666
  var ref = optionSetRef === null || optionSetRef === void 0 ? void 0 : optionSetRef.optionList;
25648
25667
  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);
25668
+ var doUseDoc = true;
25650
25669
  if (doAlsoCheckFeature.length > 0) {
25651
25670
  var _loop4 = function _loop4() {
25652
25671
  var _combination$projectO2;
@@ -26815,6 +26834,7 @@ var DivaArticle = /*#__PURE__*/function () {
26815
26834
  partlistDecisionNo: initParams.partlistDecisionNo,
26816
26835
  partListParentArticle: initParams.parentArticle,
26817
26836
  partlistArticleVisibleInTree: initParams.partlistArticleVisibleInTree,
26837
+ dontAddToFinalOrderLine: initParams.dontAddToFinalOrderLine,
26818
26838
  partlistArticleStandalone: initParams.partlistArticleStandalone,
26819
26839
  partlistGroupPrefix: initParams.partlistGroupPrefix,
26820
26840
  hasPartlistArticle: initParams.hasPartlistArticle ? initParams.hasPartlistArticle : false,
@@ -28645,6 +28665,11 @@ var DivaArticle = /*#__PURE__*/function () {
28645
28665
  }
28646
28666
  return ret;
28647
28667
  }
28668
+ }, {
28669
+ key: "dontAddToFinalOrderLine",
28670
+ get: function get() {
28671
+ return this.article.dontAddToFinalOrderLine;
28672
+ }
28648
28673
  }, {
28649
28674
  key: "areAllOptionsDefined",
28650
28675
  get: function get() {
@@ -29486,7 +29511,7 @@ var DivaArticle = /*#__PURE__*/function () {
29486
29511
  break;
29487
29512
  }
29488
29513
  _context.next = 4;
29489
- return Promise.resolve().then(function () { return require('./ShelfPlanner-2a0fb19d.js'); });
29514
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-d3bdc0de.js'); });
29490
29515
  case 4:
29491
29516
  _yield$import = _context.sent;
29492
29517
  ShelfPlanner = _yield$import["default"];
@@ -31219,6 +31244,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
31219
31244
  supplierOrderCodex: doLoadItem.SupplierOrderCodex,
31220
31245
  initDecisions: doLoadItem.initDecisions,
31221
31246
  partlistArticleVisibleInTree: doLoadItem.PosInvisibility === 0,
31247
+ dontAddToFinalOrderLine: doLoadItem.PosInvisibility === 1,
31222
31248
  partlistArticleStandalone: doLoadItem.ConfigurationMode,
31223
31249
  partlistGroupPrefix: doLoadItem.partlistGroupPrefix,
31224
31250
  optionsForPrint: doLoadItem.optionsForPrint,
@@ -31611,6 +31637,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
31611
31637
  Width: article.width,
31612
31638
  Depth: article.depth,
31613
31639
  Height: article.height,
31640
+ dontAddToFinalOrderLine: article.dontAddToFinalOrderLine,
31614
31641
  CatalogCodex: catalogData.catalogCodex,
31615
31642
  CatalogName: catalogData.catalogName,
31616
31643
  VKPrice: article.getVkPrice,
@@ -34879,6 +34906,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34879
34906
  var hasSelectionMode2 = [];
34880
34907
  var hasSelectionMode3 = [];
34881
34908
  var basketIds = [];
34909
+ var breakTabgroup = false;
34882
34910
  var _iterator4 = _createForOfIteratorHelper$4(tabGroup.options),
34883
34911
  _step4;
34884
34912
  try {
@@ -34886,6 +34914,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34886
34914
  var _step4$value = _slicedToArray__default["default"](_step4.value, 2),
34887
34915
  _optionCodex2 = _step4$value[0],
34888
34916
  _option2 = _step4$value[1];
34917
+ var configSteps = Array.from(_option2.configSteps.values());
34918
+ if (configSteps.find(function (configStep) {
34919
+ return configStep.notDisplayedInMainConfigTree;
34920
+ })) breakTabgroup = true;
34889
34921
  switch (_option2.selectionmode) {
34890
34922
  case 1:
34891
34923
  hasSelectionMode1.push(_optionCodex2);
@@ -34928,6 +34960,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34928
34960
  } finally {
34929
34961
  _iterator4.f();
34930
34962
  }
34963
+ if (breakTabgroup) continue;
34931
34964
  if (hasSelectionMode2.length > 0 && hasSelectionMode3.length > 0 && hasSelectionMode1.length == 0) {
34932
34965
  //make the selectionmode 2 options -> selectionmode 3
34933
34966
  var _iterator5 = _createForOfIteratorHelper$4(hasSelectionMode2),
@@ -37414,7 +37447,7 @@ var DivaSet = /*#__PURE__*/function () {
37414
37447
  break;
37415
37448
  }
37416
37449
  _context5.next = 3;
37417
- return Promise.resolve().then(function () { return require('./DoorPlanner-d492a9d9.js'); });
37450
+ return Promise.resolve().then(function () { return require('./DoorPlanner-df44d442.js'); });
37418
37451
  case 3:
37419
37452
  _yield$import = _context5.sent;
37420
37453
  DoorPlanner = _yield$import["default"];
@@ -41984,7 +42017,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
41984
42017
  actBasket.ReturnTo = returnTo;
41985
42018
  actBasket.PDFDocumentURL = '';
41986
42019
  actBasket.ReportConfigIdentifier = api.getReportConfigIdentifier();
41987
- actBasket.PrintOptions = api.getPrintOptions(this.reportConfig, !!arReady);
42020
+ actBasket.PrintOptions = api.getPrintOptions(this.reportConfig, !!actBasket.OrderSets[0].SetImage, !!arReady);
41988
42021
  actBasket.ClientLanguage = api.getLanguage();
41989
42022
  _context11.next = 8;
41990
42023
  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 +42211,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
42178
42211
  break;
42179
42212
  case 3:
42180
42213
  _context12.next = 5;
42181
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-7eb044db.js'); });
42214
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-662cae94.js'); });
42182
42215
  case 5:
42183
42216
  _yield$import = _context12.sent;
42184
42217
  PfisterWWSHandler = _yield$import["default"];
@@ -42186,7 +42219,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
42186
42219
  return _context12.abrupt("break", 27);
42187
42220
  case 9:
42188
42221
  _context12.next = 11;
42189
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-9b3939c8.js'); });
42222
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-f2dea1f8.js'); });
42190
42223
  case 11:
42191
42224
  _yield$import2 = _context12.sent;
42192
42225
  LiviqueWWSHandler = _yield$import2["default"];
@@ -42194,7 +42227,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
42194
42227
  return _context12.abrupt("break", 27);
42195
42228
  case 15:
42196
42229
  _context12.next = 17;
42197
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-bbe6859a.js'); });
42230
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-6310d3be.js'); });
42198
42231
  case 17:
42199
42232
  _yield$import3 = _context12.sent;
42200
42233
  SeriousWWSHandler = _yield$import3["default"];
@@ -42202,7 +42235,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
42202
42235
  return _context12.abrupt("break", 27);
42203
42236
  case 21:
42204
42237
  _context12.next = 23;
42205
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-3391c7ed.js'); });
42238
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-b055f6a4.js'); });
42206
42239
  case 23:
42207
42240
  _yield$import4 = _context12.sent;
42208
42241
  StandardWWSHandler = _yield$import4["default"];
@@ -43626,7 +43659,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
43626
43659
  while (1) switch (_context3.prev = _context3.next) {
43627
43660
  case 0:
43628
43661
  _context3.next = 2;
43629
- return Promise.resolve().then(function () { return require('./Host3DSignalR-e8e59f7a.js'); });
43662
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-e1aec0e2.js'); });
43630
43663
  case 2:
43631
43664
  _yield$import = _context3.sent;
43632
43665
  Host3DSignalR = _yield$import["default"];
@@ -45379,7 +45412,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
45379
45412
  break;
45380
45413
  case 8:
45381
45414
  _context4.next = 10;
45382
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-4bab9fb6.js'); });
45415
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-9c4e8626.js'); });
45383
45416
  case 10:
45384
45417
  _yield$import = _context4.sent;
45385
45418
  DivaStandardPlanner = _yield$import["default"];
@@ -45390,7 +45423,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
45390
45423
  return _context4.abrupt("break", 21);
45391
45424
  case 15:
45392
45425
  _context4.next = 17;
45393
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-d378bbb7.js'); });
45426
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-6004fce9.js'); });
45394
45427
  case 17:
45395
45428
  _yield$import2 = _context4.sent;
45396
45429
  DivaBoxPlanner = _yield$import2["default"];
@@ -47309,7 +47342,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47309
47342
  value: function () {
47310
47343
  var _initializeSets = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee15(loadSuccessful, viewReadyPromise) {
47311
47344
  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;
47345
+ 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
47346
  return _regeneratorRuntime__default["default"].wrap(function _callee15$(_context15) {
47314
47347
  while (1) switch (_context15.prev = _context15.next) {
47315
47348
  case 0:
@@ -47348,8 +47381,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47348
47381
  case 21:
47349
47382
  result = _context15.sent;
47350
47383
  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;
47384
+ (_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;
47385
+ (_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
47386
  _context15.next = 28;
47354
47387
  break;
47355
47388
  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-a90339fa.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-b964d887.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-bcd064d5.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,