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

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 (53) hide show
  1. package/build/cjs/{DivaBoxPlanner-d378bbb7.js → DivaBoxPlanner-086aa98a.js} +7 -5
  2. package/build/cjs/{DivaStandardPlanner-4bab9fb6.js → DivaStandardPlanner-3bef0d4e.js} +2 -2
  3. package/build/cjs/{DoorPlanner-d492a9d9.js → DoorPlanner-6f008f45.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-e8e59f7a.js → Host3DSignalR-2457b2ad.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-9b3939c8.js → LiviqueWWSHandler-3f812d5a.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-7eb044db.js → PfisterWWSHandler-5e91b618.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-89255bdd.js → PlannerHandler2D-6636901f.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-bbe6859a.js → SeriousBasketHandler-b2126d85.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-2a0fb19d.js → ShelfPlanner-4ec62f1b.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-3391c7ed.js → StandardWWSHandler-e4fa3a65.js} +1 -1
  11. package/build/cjs/{index-a8cd3c1d.js → index-27e0998b.js} +154 -109
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-21211eeb.js → DivaBoxPlanner-11615043.js} +7 -5
  14. package/build/esm/{DivaStandardPlanner-95dd670c.js → DivaStandardPlanner-d0e42b6f.js} +2 -2
  15. package/build/esm/{DoorPlanner-56b674bf.js → DoorPlanner-c3a5867e.js} +1 -1
  16. package/build/esm/{Host3DSignalR-0c56c943.js → Host3DSignalR-579a03b5.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-0f7a4bcb.js → LiviqueWWSHandler-577062a1.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-7a25803c.js → PfisterWWSHandler-c42c01f3.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-2df72989.js → PlannerHandler2D-e909256d.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-6c14c04e.js → SeriousBasketHandler-0f981576.js} +1 -1
  21. package/build/esm/{ShelfPlanner-9c7ffe88.js → ShelfPlanner-82d07350.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-3a3026aa.js → StandardWWSHandler-9da8ed75.js} +1 -1
  23. package/build/esm/{index-79dd365f.js → index-59b843a9.js} +154 -109
  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/IDM/ArticleApi.d.ts +16 -0
  34. package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +7 -0
  36. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +1 -1
  38. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +1 -0
  40. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  42. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +9 -8
  44. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
  46. package/build/types/web-planner-logic/src/model/Articles/Article/IDMCatalogArticle.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
  48. package/build/types/web-planner-logic/src/model/Catalog/IDMCatalogData.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +1 -1
  50. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
  51. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +1 -1
  52. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
  53. package/package.json +2 -2
@@ -43,8 +43,8 @@ var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
43
43
  })();
44
44
 
45
45
  var _excluded = ["type"];
46
- function ownKeys$n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
47
- function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
46
+ function ownKeys$m(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
47
+ function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$m(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
48
48
  // Import types from AI service
49
49
 
50
50
  var LOG$p = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
@@ -285,8 +285,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
285
285
  if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig2 = this.apiConfig) !== null && _this$apiConfig2 !== void 0 && _this$apiConfig2.api2.web) {
286
286
  api2Url = this.apiConfig.api2.web;
287
287
  }
288
- _context2.t0 = _objectSpread$n;
289
- _context2.t1 = _objectSpread$n({}, init.config.headers);
288
+ _context2.t0 = _objectSpread$m;
289
+ _context2.t1 = _objectSpread$m({}, init.config.headers);
290
290
  _context2.t2 = {};
291
291
  _context2.next = 21;
292
292
  return this.getSessionGuid('V', undefined, this.OrganizationId, api2Url);
@@ -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
- }).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');
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;images;svgs');
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
  }
@@ -1241,11 +1248,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
1241
1248
  headers = this.getAiServiceAuthHeaders(leadKey);
1242
1249
  _context9.next = 4;
1243
1250
  return this.fetchData(url, {
1244
- data: _objectSpread$n(_objectSpread$n({}, data), {}, {
1251
+ data: _objectSpread$m(_objectSpread$m({}, data), {}, {
1245
1252
  organizationId: this.OrganizationId
1246
1253
  }),
1247
1254
  config: {
1248
- headers: _objectSpread$n(_objectSpread$n({}, headers), {}, {
1255
+ headers: _objectSpread$m(_objectSpread$m({}, headers), {}, {
1249
1256
  'X-Session-Id': DivaUtils__default["default"].SessionId,
1250
1257
  'X-Configurator-Id': (_DivaUtils$Configurat = DivaUtils__default["default"].ConfigurationId) !== null && _DivaUtils$Configurat !== void 0 ? _DivaUtils$Configurat : ''
1251
1258
  })
@@ -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,
@@ -19589,20 +19625,20 @@ function getArticleOptionValueType(set, codex, jsonOPV, catalogOPV, myArticle, i
19589
19625
  return opv;
19590
19626
  }
19591
19627
 
19592
- function ownKeys$m(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19593
- function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$m(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19628
+ function ownKeys$l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19629
+ 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; }
19594
19630
  var LOG$k = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
19595
19631
  function loadMoreFromIDMArticles(_x, _x2) {
19596
19632
  return _loadMoreFromIDMArticles.apply(this, arguments);
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
  }
@@ -19914,11 +19956,11 @@ var getPriceFeatureGroups = function getPriceFeatureGroups(catalogArticleDatas,
19914
19956
  var initializeDecision = function initializeDecision(decision, idmOptionGroups) {
19915
19957
  var _decision$optionCombi;
19916
19958
  var optionCombinations = (_decision$optionCombi = decision.optionCombinations) === null || _decision$optionCombi === void 0 ? void 0 : _decision$optionCombi.map(function (c) {
19917
- return _objectSpread$m(_objectSpread$m({}, c), {}, {
19959
+ return _objectSpread$l(_objectSpread$l({}, c), {}, {
19918
19960
  projectOptionsSetRefs: parseOptionSetRef(c.projectOptionsSetRefs, idmOptionGroups)
19919
19961
  });
19920
19962
  });
19921
- return _objectSpread$m(_objectSpread$m({}, decision), {}, {
19963
+ return _objectSpread$l(_objectSpread$l({}, decision), {}, {
19922
19964
  optionCombinations: optionCombinations === null || optionCombinations === void 0 ? void 0 : optionCombinations.sort(function (a, b) {
19923
19965
  return a.sequence - b.sequence;
19924
19966
  })
@@ -19927,16 +19969,16 @@ var initializeDecision = function initializeDecision(decision, idmOptionGroups)
19927
19969
  var initializePriceFeatureGroups = function initializePriceFeatureGroups(priceFeatureGroup, idmOptionGroups) {
19928
19970
  var _priceFeatureGroup$pr, _priceFeatureGroup$pr2;
19929
19971
  var finishes = (_priceFeatureGroup$pr = priceFeatureGroup.projectFinishes) === null || _priceFeatureGroup$pr === void 0 ? void 0 : _priceFeatureGroup$pr.map(function (c) {
19930
- return _objectSpread$m(_objectSpread$m({}, c), {}, {
19972
+ return _objectSpread$l(_objectSpread$l({}, c), {}, {
19931
19973
  projectOptionsSetRefs: c.optionsSetRef ? parseOptionSetRef(c.optionsSetRef, idmOptionGroups) : []
19932
19974
  });
19933
19975
  });
19934
19976
  var percentageSurcharges = (_priceFeatureGroup$pr2 = priceFeatureGroup.projectPercentageSurcharges) === null || _priceFeatureGroup$pr2 === void 0 ? void 0 : _priceFeatureGroup$pr2.map(function (c) {
19935
- return _objectSpread$m(_objectSpread$m({}, c), {}, {
19977
+ return _objectSpread$l(_objectSpread$l({}, c), {}, {
19936
19978
  optionsSetRefs: c.optionsSetRef ? parseOptionSetRef(c.optionsSetRef, idmOptionGroups) : []
19937
19979
  });
19938
19980
  });
19939
- return _objectSpread$m(_objectSpread$m({}, priceFeatureGroup), {}, {
19981
+ return _objectSpread$l(_objectSpread$l({}, priceFeatureGroup), {}, {
19940
19982
  projectFinishes: finishes === null || finishes === void 0 ? void 0 : finishes.sort(function (a, b) {
19941
19983
  return a.sequence - b.sequence;
19942
19984
  }),
@@ -20206,19 +20248,18 @@ function rgbToHex(r, g, b) {
20206
20248
  return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
20207
20249
  }
20208
20250
 
20209
- function ownKeys$l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20210
- 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
20251
  var LOG$j = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
20212
20252
  function initIDMCatalogData(serie, orderSet, api) {
20213
- var _serie$catalogId, _serie$decisions, _serie$decisions2;
20253
+ var _serie$decisions, _serie$decisions2;
20214
20254
  var catalog = serie.catalogData;
20215
20255
  var catalogData = {
20216
- accountGuid: (_serie$catalogId = serie.catalogId) !== null && _serie$catalogId !== void 0 ? _serie$catalogId : orderSet.AccountGUID,
20256
+ accountGuid: orderSet.AccountGUID,
20217
20257
  serieId: serie._id,
20218
20258
  accountName: '',
20219
20259
  accountLogo: '',
20220
20260
  collectionGuid: serie.catalogId,
20221
- catalogGuid: serie.catalogId,
20261
+ catalogGuid: '',
20262
+ //serie.enricherPackageId,
20222
20263
  catalogCodex: serie.serieNo.toString(),
20223
20264
  catalogName: DivaUtils__default["default"].getLocals(serie.seriesName, api.getLanguageLowercase()),
20224
20265
  // name des Kataloges
@@ -20275,18 +20316,19 @@ function initIDMArticles(jsonItems, catalogData) {
20275
20316
  }
20276
20317
  }
20277
20318
  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;
20319
+ var _catalogData$catalogM, _article$images, _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, _images$, _article$svgs, _articleMask$groupnam, _articleMask$groupnam2;
20279
20320
  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
20321
  var lang = catalogData.api.getLanguageLowercase();
20281
20322
  var featureProperties = convertProperties(article.properties, lang, 'featureNos');
20282
20323
  var optionProperties = convertProperties(article.properties, lang, 'optionKeys');
20324
+ var images = (_article$images = article.images) === null || _article$images === void 0 ? void 0 : _article$images.map(mapIDMMediaItem);
20283
20325
  return {
20284
20326
  areOptionsLoaded: false,
20285
20327
  arePricesLoaded: false,
20286
20328
  articleCodex: article.typeNo,
20287
20329
  articleOptions: {},
20288
20330
  partListExclusive: article.partListExclusive,
20289
- guid: article.typeKey,
20331
+ guid: (_article$typeKey = article.typeKey) === null || _article$typeKey === void 0 ? void 0 : _article$typeKey.toString(),
20290
20332
  articleEAN: article.eanNumber,
20291
20333
  typeNr: article.eanNumber,
20292
20334
  retailArticleNr: article.salesNumber,
@@ -20326,34 +20368,12 @@ function getCatalogArticle(article, catalogData) {
20326
20368
  heightTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS3 = article.heightBasicShapeTo) !== null && _article$heightBasicS3 !== void 0 ? _article$heightBasicS3 : 0) / 10) : undefined,
20327
20369
  volume: article.volume,
20328
20370
  weight: (_article$weightNetto = article.weightNetto) !== null && _article$weightNetto !== void 0 ? _article$weightNetto : article.weightBrutto,
20329
- image: getLowResUrl((_article$detailInfos = article.detailInfos) === null || _article$detailInfos === void 0 || (_article$detailInfos = _article$detailInfos.find(function (d) {
20330
- return d.functionType == 'CAT_ART';
20331
- })) === null || _article$detailInfos === void 0 ? void 0 : _article$detailInfos.url),
20332
- images: (_article$detailInfos2 = article.detailInfos) === null || _article$detailInfos2 === void 0 || (_article$detailInfos2 = _article$detailInfos2.filter(function (d) {
20333
- return d.functionType == 'CAT_ART';
20334
- })) === null || _article$detailInfos2 === void 0 ? void 0 : _article$detailInfos2.map(function (d) {
20335
- var _getLowResUrl, _article$detailInfoRe, _article$detailInfoRe2;
20336
- return {
20337
- url: (_getLowResUrl = getLowResUrl(d.url)) !== null && _getLowResUrl !== void 0 ? _getLowResUrl : '',
20338
- detailInfoNo: d.detailInfoNo,
20339
- decisionNos: (_article$detailInfoRe = (_article$detailInfoRe2 = article.detailInfoRefs) === null || _article$detailInfoRe2 === void 0 || (_article$detailInfoRe2 = _article$detailInfoRe2[d.detailInfoNo]) === null || _article$detailInfoRe2 === void 0 ? void 0 : _article$detailInfoRe2.filter(function (n) {
20340
- return n !== null;
20341
- })) !== null && _article$detailInfoRe !== void 0 ? _article$detailInfoRe : []
20342
- };
20343
- }),
20371
+ image: images === null || images === void 0 || (_images$ = images[0]) === null || _images$ === void 0 ? void 0 : _images$.url,
20372
+ images: images,
20344
20373
  idmPrices: article.prices,
20345
20374
  idmPartlist: article.partlist,
20346
20375
  articleRelations: [],
20347
- svgs: (_article$detailInfos3 = article.detailInfos) === null || _article$detailInfos3 === void 0 ? void 0 : _article$detailInfos3.filter(function (d) {
20348
- return d.classification == 'SVG';
20349
- }).map(function (d) {
20350
- var _article$detailInfoRe3, _article$detailInfoRe4;
20351
- return _objectSpread$l(_objectSpread$l({}, d), {}, {
20352
- decisionNos: (_article$detailInfoRe3 = (_article$detailInfoRe4 = article.detailInfoRefs) === null || _article$detailInfoRe4 === void 0 || (_article$detailInfoRe4 = _article$detailInfoRe4[d.detailInfoNo]) === null || _article$detailInfoRe4 === void 0 ? void 0 : _article$detailInfoRe4.filter(function (n) {
20353
- return n !== null;
20354
- })) !== null && _article$detailInfoRe3 !== void 0 ? _article$detailInfoRe3 : []
20355
- });
20356
- }),
20376
+ svgs: (_article$svgs = article.svgs) === null || _article$svgs === void 0 ? void 0 : _article$svgs.map(mapIDMMediaItem),
20357
20377
  groupName: (_articleMask$groupnam = articleMask === null || articleMask === void 0 || (_articleMask$groupnam2 = articleMask.groupname) === null || _articleMask$groupnam2 === void 0 ? void 0 : _articleMask$groupnam2[catalogData.api.getLanguage()]) !== null && _articleMask$groupnam !== void 0 ? _articleMask$groupnam : article.typeKey
20358
20378
  };
20359
20379
  }
@@ -20370,6 +20390,14 @@ function getCatalogArticle(article, catalogData) {
20370
20390
  function getLowResUrl(url) {
20371
20391
  return url === null || url === void 0 ? void 0 : url.replace('.jpg', '_low.jpg').replace('.jpeg', '_low.jpeg').replace('.png', '_low.png');
20372
20392
  }
20393
+ function mapIDMMediaItem(mediaItem) {
20394
+ var _getLowResUrl;
20395
+ return {
20396
+ url: (_getLowResUrl = getLowResUrl(mediaItem.url)) !== null && _getLowResUrl !== void 0 ? _getLowResUrl : '',
20397
+ detailInfoNo: mediaItem.detailInfoNo,
20398
+ decisionNos: mediaItem.decisionNo ? [mediaItem.decisionNo] : []
20399
+ };
20400
+ }
20373
20401
  function convertProperties() {
20374
20402
  var properties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
20375
20403
  var lang = arguments.length > 1 ? arguments[1] : undefined;
@@ -20403,8 +20431,8 @@ function mapProp() {
20403
20431
  });
20404
20432
  }
20405
20433
  function getCatalogPlanner(article, catalogArticle, catalogData) {
20406
- var _article$detailInfos4, _article$avlFilter, _article$avrFilter, _article$depthBasicSh4, _article$depthBasicSh5, _article$depthBasicSh6, _article$widthBasicSh4, _article$widthBasicSh5, _article$widthBasicSh6, _article$heightBasicS4, _article$heightBasicS5, _article$heightBasicS6, _svg$avc, _svg$avn, _svg$avo, _svg$avs, _svg$avu, _svg$hasAVL, _svg$hasAVR, _catalogArticle$svgs;
20407
- var svg = (_article$detailInfos4 = article.detailInfos) === null || _article$detailInfos4 === void 0 ? void 0 : _article$detailInfos4.find(function (d) {
20434
+ var _article$detailInfos, _article$avlFilter, _article$avrFilter, _article$depthBasicSh4, _article$depthBasicSh5, _article$depthBasicSh6, _article$widthBasicSh4, _article$widthBasicSh5, _article$widthBasicSh6, _article$heightBasicS4, _article$heightBasicS5, _article$heightBasicS6, _svg$avc, _svg$avn, _svg$avo, _svg$avs, _svg$avu, _svg$hasAVL, _svg$hasAVR, _catalogArticle$svgs;
20435
+ var svg = (_article$detailInfos = article.detailInfos) === null || _article$detailInfos === void 0 ? void 0 : _article$detailInfos.find(function (d) {
20408
20436
  return d.classification == 'SVG';
20409
20437
  });
20410
20438
 
@@ -25646,7 +25674,7 @@ var IDMEngine = /*#__PURE__*/function () {
25646
25674
  });
25647
25675
  var ref = optionSetRef === null || optionSetRef === void 0 ? void 0 : optionSetRef.optionList;
25648
25676
  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);
25677
+ var doUseDoc = true;
25650
25678
  if (doAlsoCheckFeature.length > 0) {
25651
25679
  var _loop4 = function _loop4() {
25652
25680
  var _combination$projectO2;
@@ -26815,6 +26843,7 @@ var DivaArticle = /*#__PURE__*/function () {
26815
26843
  partlistDecisionNo: initParams.partlistDecisionNo,
26816
26844
  partListParentArticle: initParams.parentArticle,
26817
26845
  partlistArticleVisibleInTree: initParams.partlistArticleVisibleInTree,
26846
+ dontAddToFinalOrderLine: initParams.dontAddToFinalOrderLine,
26818
26847
  partlistArticleStandalone: initParams.partlistArticleStandalone,
26819
26848
  partlistGroupPrefix: initParams.partlistGroupPrefix,
26820
26849
  hasPartlistArticle: initParams.hasPartlistArticle ? initParams.hasPartlistArticle : false,
@@ -28645,6 +28674,11 @@ var DivaArticle = /*#__PURE__*/function () {
28645
28674
  }
28646
28675
  return ret;
28647
28676
  }
28677
+ }, {
28678
+ key: "dontAddToFinalOrderLine",
28679
+ get: function get() {
28680
+ return this.article.dontAddToFinalOrderLine;
28681
+ }
28648
28682
  }, {
28649
28683
  key: "areAllOptionsDefined",
28650
28684
  get: function get() {
@@ -29486,7 +29520,7 @@ var DivaArticle = /*#__PURE__*/function () {
29486
29520
  break;
29487
29521
  }
29488
29522
  _context.next = 4;
29489
- return Promise.resolve().then(function () { return require('./ShelfPlanner-2a0fb19d.js'); });
29523
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-4ec62f1b.js'); });
29490
29524
  case 4:
29491
29525
  _yield$import = _context.sent;
29492
29526
  ShelfPlanner = _yield$import["default"];
@@ -31219,6 +31253,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
31219
31253
  supplierOrderCodex: doLoadItem.SupplierOrderCodex,
31220
31254
  initDecisions: doLoadItem.initDecisions,
31221
31255
  partlistArticleVisibleInTree: doLoadItem.PosInvisibility === 0,
31256
+ dontAddToFinalOrderLine: doLoadItem.PosInvisibility === 1,
31222
31257
  partlistArticleStandalone: doLoadItem.ConfigurationMode,
31223
31258
  partlistGroupPrefix: doLoadItem.partlistGroupPrefix,
31224
31259
  optionsForPrint: doLoadItem.optionsForPrint,
@@ -31611,6 +31646,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
31611
31646
  Width: article.width,
31612
31647
  Depth: article.depth,
31613
31648
  Height: article.height,
31649
+ dontAddToFinalOrderLine: article.dontAddToFinalOrderLine,
31614
31650
  CatalogCodex: catalogData.catalogCodex,
31615
31651
  CatalogName: catalogData.catalogName,
31616
31652
  VKPrice: article.getVkPrice,
@@ -34867,6 +34903,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34867
34903
  if (Object.values(articles).find(function (article) {
34868
34904
  return article.shelfPlanner;
34869
34905
  })) return;
34906
+ if (Object.values(articles).find(function (article) {
34907
+ return article.set.CatalogData.useBoxPlanner;
34908
+ })) return;
34870
34909
  var _iterator3 = _createForOfIteratorHelper$4(configTree.tabGroups),
34871
34910
  _step3;
34872
34911
  try {
@@ -34879,6 +34918,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34879
34918
  var hasSelectionMode2 = [];
34880
34919
  var hasSelectionMode3 = [];
34881
34920
  var basketIds = [];
34921
+ var breakTabgroup = false;
34882
34922
  var _iterator4 = _createForOfIteratorHelper$4(tabGroup.options),
34883
34923
  _step4;
34884
34924
  try {
@@ -34886,6 +34926,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34886
34926
  var _step4$value = _slicedToArray__default["default"](_step4.value, 2),
34887
34927
  _optionCodex2 = _step4$value[0],
34888
34928
  _option2 = _step4$value[1];
34929
+ var configSteps = Array.from(_option2.configSteps.values());
34930
+ if (configSteps.find(function (configStep) {
34931
+ return configStep.notDisplayedInMainConfigTree;
34932
+ })) breakTabgroup = true;
34889
34933
  switch (_option2.selectionmode) {
34890
34934
  case 1:
34891
34935
  hasSelectionMode1.push(_optionCodex2);
@@ -34928,6 +34972,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34928
34972
  } finally {
34929
34973
  _iterator4.f();
34930
34974
  }
34975
+ if (breakTabgroup) continue;
34931
34976
  if (hasSelectionMode2.length > 0 && hasSelectionMode3.length > 0 && hasSelectionMode1.length == 0) {
34932
34977
  //make the selectionmode 2 options -> selectionmode 3
34933
34978
  var _iterator5 = _createForOfIteratorHelper$4(hasSelectionMode2),
@@ -37414,7 +37459,7 @@ var DivaSet = /*#__PURE__*/function () {
37414
37459
  break;
37415
37460
  }
37416
37461
  _context5.next = 3;
37417
- return Promise.resolve().then(function () { return require('./DoorPlanner-d492a9d9.js'); });
37462
+ return Promise.resolve().then(function () { return require('./DoorPlanner-6f008f45.js'); });
37418
37463
  case 3:
37419
37464
  _yield$import = _context5.sent;
37420
37465
  DoorPlanner = _yield$import["default"];
@@ -41984,7 +42029,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
41984
42029
  actBasket.ReturnTo = returnTo;
41985
42030
  actBasket.PDFDocumentURL = '';
41986
42031
  actBasket.ReportConfigIdentifier = api.getReportConfigIdentifier();
41987
- actBasket.PrintOptions = api.getPrintOptions(this.reportConfig, !!arReady);
42032
+ actBasket.PrintOptions = api.getPrintOptions(this.reportConfig, !!actBasket.OrderSets[0].SetImage, !!arReady);
41988
42033
  actBasket.ClientLanguage = api.getLanguage();
41989
42034
  _context11.next = 8;
41990
42035
  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 +42223,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
42178
42223
  break;
42179
42224
  case 3:
42180
42225
  _context12.next = 5;
42181
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-7eb044db.js'); });
42226
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-5e91b618.js'); });
42182
42227
  case 5:
42183
42228
  _yield$import = _context12.sent;
42184
42229
  PfisterWWSHandler = _yield$import["default"];
@@ -42186,7 +42231,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
42186
42231
  return _context12.abrupt("break", 27);
42187
42232
  case 9:
42188
42233
  _context12.next = 11;
42189
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-9b3939c8.js'); });
42234
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-3f812d5a.js'); });
42190
42235
  case 11:
42191
42236
  _yield$import2 = _context12.sent;
42192
42237
  LiviqueWWSHandler = _yield$import2["default"];
@@ -42194,7 +42239,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
42194
42239
  return _context12.abrupt("break", 27);
42195
42240
  case 15:
42196
42241
  _context12.next = 17;
42197
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-bbe6859a.js'); });
42242
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-b2126d85.js'); });
42198
42243
  case 17:
42199
42244
  _yield$import3 = _context12.sent;
42200
42245
  SeriousWWSHandler = _yield$import3["default"];
@@ -42202,7 +42247,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
42202
42247
  return _context12.abrupt("break", 27);
42203
42248
  case 21:
42204
42249
  _context12.next = 23;
42205
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-3391c7ed.js'); });
42250
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-e4fa3a65.js'); });
42206
42251
  case 23:
42207
42252
  _yield$import4 = _context12.sent;
42208
42253
  StandardWWSHandler = _yield$import4["default"];
@@ -43626,7 +43671,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
43626
43671
  while (1) switch (_context3.prev = _context3.next) {
43627
43672
  case 0:
43628
43673
  _context3.next = 2;
43629
- return Promise.resolve().then(function () { return require('./Host3DSignalR-e8e59f7a.js'); });
43674
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-2457b2ad.js'); });
43630
43675
  case 2:
43631
43676
  _yield$import = _context3.sent;
43632
43677
  Host3DSignalR = _yield$import["default"];
@@ -45379,7 +45424,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
45379
45424
  break;
45380
45425
  case 8:
45381
45426
  _context4.next = 10;
45382
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-4bab9fb6.js'); });
45427
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-3bef0d4e.js'); });
45383
45428
  case 10:
45384
45429
  _yield$import = _context4.sent;
45385
45430
  DivaStandardPlanner = _yield$import["default"];
@@ -45390,7 +45435,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
45390
45435
  return _context4.abrupt("break", 21);
45391
45436
  case 15:
45392
45437
  _context4.next = 17;
45393
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-d378bbb7.js'); });
45438
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-086aa98a.js'); });
45394
45439
  case 17:
45395
45440
  _yield$import2 = _context4.sent;
45396
45441
  DivaBoxPlanner = _yield$import2["default"];
@@ -47309,7 +47354,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47309
47354
  value: function () {
47310
47355
  var _initializeSets = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee15(loadSuccessful, viewReadyPromise) {
47311
47356
  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;
47357
+ 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
47358
  return _regeneratorRuntime__default["default"].wrap(function _callee15$(_context15) {
47314
47359
  while (1) switch (_context15.prev = _context15.next) {
47315
47360
  case 0:
@@ -47348,8 +47393,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47348
47393
  case 21:
47349
47394
  result = _context15.sent;
47350
47395
  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;
47396
+ (_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;
47397
+ (_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
47398
  _context15.next = 28;
47354
47399
  break;
47355
47400
  case 27: