@crystaldesign/web-planner-logic 24.10.0-beta.1 → 24.10.0-beta.10

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 (54) hide show
  1. package/build/cjs/{DivaBoxPlanner-6a883291.js → DivaBoxPlanner-d100fdb8.js} +3 -3
  2. package/build/cjs/{DivaSingleProductPlanner-fcf3e4be.js → DivaSingleProductPlanner-a308bc4c.js} +2 -2
  3. package/build/cjs/{DivaStandardPlanner-a18f752d.js → DivaStandardPlanner-3ead2b7c.js} +3 -3
  4. package/build/cjs/{DockingPointHandler-5c6b6024.js → DockingPointHandler-26105372.js} +1 -1
  5. package/build/cjs/{DoorPlanner-5164c50d.js → DoorPlanner-96be0550.js} +1 -1
  6. package/build/cjs/{Host3DSignalR-f13134cb.js → Host3DSignalR-e4ca360e.js} +1 -1
  7. package/build/cjs/{LiviqueWWSHandler-32bb295f.js → LiviqueWWSHandler-735014f7.js} +1 -1
  8. package/build/cjs/{PfisterWWSHandler-0447de84.js → PfisterWWSHandler-224c584c.js} +1 -1
  9. package/build/cjs/{PlannerHandler2D-a941c306.js → PlannerHandler2D-01fb3b8e.js} +2 -2
  10. package/build/cjs/{ProductBasketHandler-144386d9.js → ProductBasketHandler-034a3339.js} +1 -1
  11. package/build/cjs/{SeriousBasketHandler-e7f5bfb9.js → SeriousBasketHandler-3f4b1594.js} +1 -1
  12. package/build/cjs/{ShelfPlanner-63df1fef.js → ShelfPlanner-402344f9.js} +2 -2
  13. package/build/cjs/{StandardWWSHandler-96b3ab81.js → StandardWWSHandler-b61cae22.js} +1 -1
  14. package/build/cjs/{index-0cf8efc1.js → index-0fbd8bd2.js} +263 -168
  15. package/build/cjs/index.js +1 -1
  16. package/build/esm/{DivaBoxPlanner-0a38d41b.js → DivaBoxPlanner-19c913f4.js} +3 -3
  17. package/build/esm/{DivaSingleProductPlanner-76dcd48c.js → DivaSingleProductPlanner-355443b6.js} +2 -2
  18. package/build/esm/{DivaStandardPlanner-774854f1.js → DivaStandardPlanner-f8d55f53.js} +3 -3
  19. package/build/esm/{DockingPointHandler-c35c0ee3.js → DockingPointHandler-072c0cdc.js} +1 -1
  20. package/build/esm/{DoorPlanner-c9293a3a.js → DoorPlanner-8e9ebc6a.js} +1 -1
  21. package/build/esm/{Host3DSignalR-3ca1dd9c.js → Host3DSignalR-9c502b78.js} +1 -1
  22. package/build/esm/{LiviqueWWSHandler-28edc334.js → LiviqueWWSHandler-817f6954.js} +1 -1
  23. package/build/esm/{PfisterWWSHandler-21e4c2f3.js → PfisterWWSHandler-f3758c94.js} +1 -1
  24. package/build/esm/{PlannerHandler2D-9f4f8efb.js → PlannerHandler2D-0d5bb96d.js} +2 -2
  25. package/build/esm/{ProductBasketHandler-fa0c1a9e.js → ProductBasketHandler-9e2c5c1a.js} +1 -1
  26. package/build/esm/{SeriousBasketHandler-2e0ab157.js → SeriousBasketHandler-9a45b419.js} +1 -1
  27. package/build/esm/{ShelfPlanner-c52e6233.js → ShelfPlanner-4c376e6b.js} +2 -2
  28. package/build/esm/{StandardWWSHandler-72ea1ffc.js → StandardWWSHandler-0dc1e038.js} +1 -1
  29. package/build/esm/{index-622ebf68.js → index-fe659872.js} +263 -168
  30. package/build/esm/index.js +1 -1
  31. package/build/types/web-planner-logic/src/index.d.ts +1 -0
  32. package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/API/TemplateConfigType.d.ts +1 -1
  34. package/build/types/web-planner-logic/src/interface/API/TemplateConfigType.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +1 -1
  36. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts +12 -4
  38. package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +44 -14
  40. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts +3 -2
  42. package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +1 -0
  44. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts +2 -1
  46. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +2 -1
  48. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/logic/DivaCatalogHandler.d.ts.map +1 -1
  50. package/build/types/web-planner-logic/src/logic/Set/FavoritesHandler.d.ts.map +1 -1
  51. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  52. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
  53. package/build/types/web-planner-logic/src/test/scripts/productHandlerMoc.d.ts.map +1 -1
  54. package/package.json +2 -2
@@ -863,7 +863,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
863
863
  }, {
864
864
  key: "apiUrl",
865
865
  value: function apiUrl(queryString, useWebServiceApi) {
866
- var _this$apiConfig19, _this$apiConfig20;
866
+ var _this$apiConfig21, _this$apiConfig22;
867
867
  if (useWebServiceApi == 'catalog') {
868
868
  var _this$apiConfig13, _this$apiConfig14;
869
869
  if (!((_this$apiConfig13 = this.apiConfig) !== null && _this$apiConfig13 !== void 0 && _this$apiConfig13.catalogService)) throw new Error('No catalog Service defined');
@@ -879,8 +879,13 @@ var DivaApiHandler = /*#__PURE__*/function () {
879
879
  if (!((_this$apiConfig17 = this.apiConfig) !== null && _this$apiConfig17 !== void 0 && _this$apiConfig17.reportService)) throw new Error('No report Service defined');
880
880
  return ((_this$apiConfig18 = this.apiConfig) === null || _this$apiConfig18 === void 0 ? void 0 : _this$apiConfig18.reportService) + queryString;
881
881
  }
882
- var url = (_this$apiConfig19 = this.apiConfig) === null || _this$apiConfig19 === void 0 ? void 0 : _this$apiConfig19.api2["default"];
883
- if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig20 = this.apiConfig) !== null && _this$apiConfig20 !== void 0 && _this$apiConfig20.api2.web) {
882
+ if (useWebServiceApi == 'enricher') {
883
+ var _this$apiConfig19, _this$apiConfig20;
884
+ if (!((_this$apiConfig19 = this.apiConfig) !== null && _this$apiConfig19 !== void 0 && _this$apiConfig19.enricherService)) throw new Error('No report Service defined');
885
+ return ((_this$apiConfig20 = this.apiConfig) === null || _this$apiConfig20 === void 0 ? void 0 : _this$apiConfig20.enricherService) + queryString;
886
+ }
887
+ var url = (_this$apiConfig21 = this.apiConfig) === null || _this$apiConfig21 === void 0 ? void 0 : _this$apiConfig21.api2["default"];
888
+ if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig22 = this.apiConfig) !== null && _this$apiConfig22 !== void 0 && _this$apiConfig22.api2.web) {
884
889
  url = this.apiConfig.api2.web;
885
890
  }
886
891
  if (!url) throw new Error('No API2 defined');
@@ -944,7 +949,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
944
949
  }, {
945
950
  key: "getCatalogProductUrl",
946
951
  value: function getCatalogProductUrl(catalogCodex) {
947
- var search = '{catCodex,contains,' + catalogCodex + '},{available,eq,true}';
952
+ var search = '{catCodex,contains,' + catalogCodex + "},{availableForOrganizations,eq,".concat(this.organization._id, "}");
948
953
  return '/v1/products?' + 'search=' + encodeURIComponent('[' + search + ']') + '&organizationIds=' + this.organization._id + '&fields=' + encodeURIComponent('{divaNr,addedPrice,discountedPrice,shortDescription,image,dockingPoints,articles,originDivaNr,variantId,affiliate,retailerArticleNr,minQuantity,increments,calculatedPrice}');
949
954
  }
950
955
  }, {
@@ -983,6 +988,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
983
988
  value: function getAdditionalModelInfosQS(accountGuid, catalogGuid) {
984
989
  return '/additionalModelInfos/one?' + '&accountGuid=' + accountGuid + '&catalogGuid=' + catalogGuid;
985
990
  }
991
+ }, {
992
+ key: "getCatalogMaskQS",
993
+ value: function getCatalogMaskQS(catalogGuid, organizationId) {
994
+ return '/live/mask/' + catalogGuid + '/mask?organizationId=' + organizationId;
995
+ }
986
996
  }, {
987
997
  key: "getAdditionalModelInfosPostMaskQS",
988
998
  value: function getAdditionalModelInfosPostMaskQS(id) {
@@ -1252,12 +1262,12 @@ var DivaApiHandler = /*#__PURE__*/function () {
1252
1262
  key: "getDimensionbyId",
1253
1263
  value: function () {
1254
1264
  var _getDimensionbyId = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee11(id, iln, catalogCodex, plannedOptions) {
1255
- var _this$apiConfig21;
1265
+ var _this$apiConfig23;
1256
1266
  var fullUrl, res, headers;
1257
1267
  return _regeneratorRuntime__default["default"].wrap(function _callee11$(_context11) {
1258
1268
  while (1) switch (_context11.prev = _context11.next) {
1259
1269
  case 0:
1260
- fullUrl = this.getConstructorServiceUrl() + '/dimension/' + id + '?iln=' + iln + '&catalogCodex=' + catalogCodex + '&debug=' + ((_this$apiConfig21 = this.apiConfig) === null || _this$apiConfig21 === void 0 ? void 0 : _this$apiConfig21.useDebugUrl);
1270
+ fullUrl = this.getConstructorServiceUrl() + '/dimension/' + id + '?iln=' + iln + '&catalogCodex=' + catalogCodex + '&debug=' + ((_this$apiConfig23 = this.apiConfig) === null || _this$apiConfig23 === void 0 ? void 0 : _this$apiConfig23.useDebugUrl);
1261
1271
  headers = {};
1262
1272
  if (this.jwt) headers = {
1263
1273
  Authorization: 'Bearer ' + this.jwt
@@ -16043,7 +16053,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16043
16053
  showOnlyWhenHasPrice: jsonOPV.ShowOnlyWhenHasPrice && jsonOPV.ShowOnlyWhenHasPrice == 'True' ? true : false,
16044
16054
  priceUnit: jsonOPV.PriceUnit,
16045
16055
  value: jsonOPV.Value,
16046
- property: [].concat(_toConsumableArray__default["default"]((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray__default["default"]((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : [])),
16056
+ property: [].concat(_toConsumableArray__default["default"]((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray__default["default"](Object.values((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : {}))),
16047
16057
  textbausteine: jsonOPV.Textbausteine
16048
16058
  };
16049
16059
  this.opv.colorGroups = this.mapRALColorToGroup();
@@ -16425,7 +16435,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
16425
16435
  arePricesLoaded: false,
16426
16436
  articleOptions: {},
16427
16437
  decisions: [],
16428
- properties: [].concat(_toConsumableArray__default["default"]((_jsonArticle$Metadata = jsonArticle.Metadatas) !== null && _jsonArticle$Metadata !== void 0 ? _jsonArticle$Metadata : []), _toConsumableArray__default["default"]((_articleMask$properti = articleMask === null || articleMask === void 0 ? void 0 : articleMask.properties) !== null && _articleMask$properti !== void 0 ? _articleMask$properti : [])),
16438
+ properties: [].concat(_toConsumableArray__default["default"]((_jsonArticle$Metadata = jsonArticle.Metadatas) !== null && _jsonArticle$Metadata !== void 0 ? _jsonArticle$Metadata : []), _toConsumableArray__default["default"](Object.values((_articleMask$properti = articleMask === null || articleMask === void 0 ? void 0 : articleMask.properties) !== null && _articleMask$properti !== void 0 ? _articleMask$properti : {}))),
16429
16439
  image: jsonArticle.Image && jsonArticle.Image != '' ? jsonArticle.Image : undefined,
16430
16440
  imageWidth: jsonArticle.ImageWidth ? jsonArticle.ImageWidth : undefined,
16431
16441
  imageHeight: jsonArticle.ImageHeight ? jsonArticle.ImageHeight : undefined,
@@ -17829,10 +17839,11 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
17829
17839
 
17830
17840
  var OptionCatalogData = /*#__PURE__*/function () {
17831
17841
  function OptionCatalogData(codex, jsonOPT, catalogData) {
17832
- var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _optionMask$name$cata, _optionMask$name, _catalogData$api$getL, _optionMask$name2, _optionMask$hidden, _optionMask$tabGroup, _catalogData$api$getL2, _ref, _optionMask$layout, _optionMask$propertie, _jsonOPT$showOPVAsArt, _jsonOPT$Properties, _optionMask$propertie2;
17842
+ var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _jsonOPT$Properties, _optionMask$propertie, _optionMask$name$cata, _optionMask$name, _catalogData$api$getL, _optionMask$name2, _optionMask$hidden, _optionMask$tabGroup, _catalogData$api$getL2, _ref, _optionMask$layout, _properties$find, _jsonOPT$showOPVAsArt;
17833
17843
  _classCallCheck__default["default"](this, OptionCatalogData);
17834
17844
  _defineProperty__default["default"](this, "opt", void 0);
17835
17845
  var optionMask = (_catalogData$catalogM = (_catalogData$catalogM2 = catalogData.catalogMask) === null || _catalogData$catalogM2 === void 0 || (_catalogData$catalogM2 = _catalogData$catalogM2.options) === null || _catalogData$catalogM2 === void 0 ? void 0 : _catalogData$catalogM2[codex]) !== null && _catalogData$catalogM !== void 0 ? _catalogData$catalogM : codex.startsWith('OPT') ? (_catalogData$catalogM3 = catalogData.catalogMask) === null || _catalogData$catalogM3 === void 0 || (_catalogData$catalogM3 = _catalogData$catalogM3.options) === null || _catalogData$catalogM3 === void 0 ? void 0 : _catalogData$catalogM3[codex.substring(3)] : undefined;
17846
+ var properties = [].concat(_toConsumableArray__default["default"]((_jsonOPT$Properties = jsonOPT.Properties) !== null && _jsonOPT$Properties !== void 0 ? _jsonOPT$Properties : []), _toConsumableArray__default["default"](Object.values((_optionMask$propertie = optionMask === null || optionMask === void 0 ? void 0 : optionMask.properties) !== null && _optionMask$propertie !== void 0 ? _optionMask$propertie : {})));
17836
17847
  this.opt = {
17837
17848
  codex: codex,
17838
17849
  name: (_optionMask$name$cata = optionMask === null || optionMask === void 0 || (_optionMask$name = optionMask.name) === null || _optionMask$name === void 0 ? void 0 : _optionMask$name[(_catalogData$api$getL = catalogData.api.getLanguage()) === null || _catalogData$api$getL === void 0 ? void 0 : _catalogData$api$getL.toLowerCase()]) !== null && _optionMask$name$cata !== void 0 ? _optionMask$name$cata : jsonOPT.Name,
@@ -17843,9 +17854,9 @@ var OptionCatalogData = /*#__PURE__*/function () {
17843
17854
  image: jsonOPT.Image ? jsonOPT.Image : undefined,
17844
17855
  invisible: (_optionMask$hidden = optionMask === null || optionMask === void 0 ? void 0 : optionMask.hidden) !== null && _optionMask$hidden !== void 0 ? _optionMask$hidden : jsonOPT.Invisible != undefined ? jsonOPT.Invisible : false,
17845
17856
  maskTabgroup: optionMask === null || optionMask === void 0 || (_optionMask$tabGroup = optionMask.tabGroup) === null || _optionMask$tabGroup === void 0 ? void 0 : _optionMask$tabGroup[(_catalogData$api$getL2 = catalogData.api.getLanguage()) === null || _catalogData$api$getL2 === void 0 ? void 0 : _catalogData$api$getL2.toLowerCase()],
17846
- layout: (_ref = (_optionMask$layout = optionMask === null || optionMask === void 0 ? void 0 : optionMask.layout) !== null && _optionMask$layout !== void 0 ? _optionMask$layout : optionMask === null || optionMask === void 0 || (_optionMask$propertie = optionMask.properties) === null || _optionMask$propertie === void 0 || (_optionMask$propertie = _optionMask$propertie.find(function (p) {
17857
+ layout: (_ref = (_optionMask$layout = optionMask === null || optionMask === void 0 ? void 0 : optionMask.layout) !== null && _optionMask$layout !== void 0 ? _optionMask$layout : properties === null || properties === void 0 || (_properties$find = properties.find(function (p) {
17847
17858
  return p.Codex == 'LAYOUT';
17848
- })) === null || _optionMask$propertie === void 0 ? void 0 : _optionMask$propertie.Value) !== null && _ref !== void 0 ? _ref : jsonOPT.Layout != undefined ? jsonOPT.Layout : 'IMAGE',
17859
+ })) === null || _properties$find === void 0 ? void 0 : _properties$find.Value) !== null && _ref !== void 0 ? _ref : jsonOPT.Layout != undefined ? jsonOPT.Layout : 'IMAGE',
17849
17860
  multiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : false,
17850
17861
  sendToPIM: !!jsonOPT.SendToPIM,
17851
17862
  useMaxPriceOfGroup: jsonOPT.UseMaxPriceOfGroup != undefined ? Number(jsonOPT.UseMaxPriceOfGroup) : undefined,
@@ -17854,7 +17865,7 @@ var OptionCatalogData = /*#__PURE__*/function () {
17854
17865
  hideInOrderText: jsonOPT.hideInOrderText != undefined ? jsonOPT.hideInOrderText == 'True' : false,
17855
17866
  showOPVCodex: jsonOPT.showOPVCodex != undefined ? jsonOPT.showOPVCodex == 'True' : false,
17856
17867
  showOPVAsArticleNr: typeof jsonOPT.showOPVAsArticleNr == 'boolean' ? jsonOPT.showOPVAsArticleNr : ((_jsonOPT$showOPVAsArt = jsonOPT.showOPVAsArticleNr) === null || _jsonOPT$showOPVAsArt === void 0 ? void 0 : _jsonOPT$showOPVAsArt.toLowerCase()) == 'true',
17857
- property: [].concat(_toConsumableArray__default["default"]((_jsonOPT$Properties = jsonOPT.Properties) !== null && _jsonOPT$Properties !== void 0 ? _jsonOPT$Properties : []), _toConsumableArray__default["default"]((_optionMask$propertie2 = optionMask === null || optionMask === void 0 ? void 0 : optionMask.properties) !== null && _optionMask$propertie2 !== void 0 ? _optionMask$propertie2 : [])),
17868
+ property: properties,
17858
17869
  parentOptionCodex: jsonOPT.ParentOptionCodex,
17859
17870
  articlePlaceholder: jsonOPT.ArticlePlaceholder && jsonOPT.ArticlePlaceholder == 'True' ? true : false,
17860
17871
  isMultiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : false
@@ -18289,7 +18300,28 @@ var DivaCatalogData = /*#__PURE__*/function () {
18289
18300
  // old tag
18290
18301
  useDecisionPosCountValue: false,
18291
18302
  useShelfPlannerRTV: false,
18292
- notificationsRules: [],
18303
+ notificationsRules: [{
18304
+ rules: [{
18305
+ visitedOptions: ['SHELFARTICLE_1'],
18306
+ articles: [''],
18307
+ jsFormula: '',
18308
+ variantValues: {}
18309
+ }],
18310
+ checkOnEvents: {
18311
+ option: 'GR',
18312
+ articleCodex: '',
18313
+ optionValue: ''
18314
+ },
18315
+ type: 'notification',
18316
+ showInModal: true,
18317
+ onlyShowOnce: true,
18318
+ messageTitle: {
18319
+ DE: 'ospele'
18320
+ },
18321
+ message: {
18322
+ DE: 'Achtung alle änderungen gehen verlohren... Bist du sicher?'
18323
+ }
18324
+ }],
18293
18325
  warningRule: [],
18294
18326
  summaryTabGroupPosition: undefined,
18295
18327
  onConfigSingleDontGeneralize: false,
@@ -18335,7 +18367,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18335
18367
  var _this$catalogMask$cat;
18336
18368
  if ((_this$catalogMask$cat = this.catalogMask.catalog.name) !== null && _this$catalogMask$cat !== void 0 && _this$catalogMask$cat[this.api.getLanguage()]) this.catalogData.catalogName = this.catalogMask.catalog.name[this.api.getLanguage()];
18337
18369
  if (this.catalogMask.catalog.name) this.catalogData.name_locales = this.catalogMask.catalog.name;
18338
- if (this.catalogMask.catalog.properties) this.initProperties([].concat(_toConsumableArray__default["default"](this.origProperties), _toConsumableArray__default["default"](this.catalogMask.catalog.properties)));
18370
+ if (this.catalogMask.catalog.properties) this.initProperties([].concat(_toConsumableArray__default["default"](this.origProperties), _toConsumableArray__default["default"](Object.values(this.catalogMask.catalog.properties))));
18339
18371
  }
18340
18372
  }
18341
18373
  }, {
@@ -18593,6 +18625,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18593
18625
  _this.catalogData.bundleRules = JSON.parse(item.Value);
18594
18626
  } else if (item.Codex == 'NOTIFICATIONS') {
18595
18627
  _this.catalogData.notificationsRules = JSON.parse(item.Value);
18628
+ } else if (item.Codex == 'WARNINGS') {
18629
+ _this.catalogData.warningRule = JSON.parse(item.Value);
18596
18630
  } else if (item.Codex == 'IGNORE_MAX_PRICE_AS_BASEPRICE') {
18597
18631
  _this.catalogData.ignoreMaxPriceAsBP = item.Value == '1';
18598
18632
  } else if (item.Codex == 'DONT_USE_VCODEX_FOR_BASKET') {
@@ -19614,7 +19648,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19614
19648
  key: "getCatalogData",
19615
19649
  value: function () {
19616
19650
  var _getCatalogData = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(state, catalogCodex, orderSet) {
19617
- var catalogKey, promises, _yield$Promise$all, _yield$Promise$all2, catalogApiData, catalogArticleListData, catalogArticlePlannerListData, additionalModelInfos, catalogData, _state$actions;
19651
+ var catalogKey, promises, _yield$Promise$all, _yield$Promise$all2, catalogApiData, catalogArticleListData, catalogArticlePlannerListData, additionalModelInfos, mask, _state$catalogMask, catalogData, _state$actions;
19618
19652
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
19619
19653
  while (1) switch (_context.prev = _context.next) {
19620
19654
  case 0:
@@ -19626,7 +19660,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19626
19660
  return _context.abrupt("return", state.divaCatalogs[catalogKey]);
19627
19661
  case 5:
19628
19662
  if (!orderSet) {
19629
- _context.next = 42;
19663
+ _context.next = 46;
19630
19664
  break;
19631
19665
  }
19632
19666
  // ab hier parallell laden
@@ -19647,43 +19681,49 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19647
19681
  throw new Error(catalogApiData.Error);
19648
19682
  case 17:
19649
19683
  additionalModelInfos = undefined;
19684
+ mask = undefined;
19685
+ _context.prev = 19;
19686
+ _context.next = 22;
19687
+ return state.api.getDataCache(state.api.getCatalogMaskQS(catalogApiData.GUID, state.api.OrganizationId), undefined, undefined, 'enricher');
19688
+ case 22:
19689
+ mask = _context.sent;
19650
19690
  if (!(!state.api.dontLoadAdditionalModelInfos && catalogApiData.AccountGuid)) {
19651
- _context.next = 28;
19691
+ _context.next = 27;
19652
19692
  break;
19653
19693
  }
19654
- _context.prev = 19;
19655
- _context.next = 22;
19694
+ _context.next = 26;
19656
19695
  return state.api.getDataCache(state.api.getAdditionalModelInfosQS(catalogApiData.AccountGuid, catalogApiData.GUID), undefined, undefined, 'catalog');
19657
- case 22:
19696
+ case 26:
19658
19697
  additionalModelInfos = _context.sent;
19659
- _context.next = 28;
19698
+ case 27:
19699
+ _context.next = 32;
19660
19700
  break;
19661
- case 25:
19662
- _context.prev = 25;
19701
+ case 29:
19702
+ _context.prev = 29;
19663
19703
  _context.t0 = _context["catch"](19);
19664
19704
  LOG$d.debug('no additionalModelInfos found: ' + _context.t0);
19665
- case 28:
19666
- if (state.catalogMask) {
19705
+ case 32:
19706
+ if (state.catalogMask || mask) {
19667
19707
  if (!additionalModelInfos) additionalModelInfos = {
19668
19708
  _id: ''
19669
19709
  };
19670
- additionalModelInfos.catalogMask = state.catalogMask;
19710
+ additionalModelInfos.catalogMask = (_state$catalogMask = state.catalogMask) !== null && _state$catalogMask !== void 0 ? _state$catalogMask : mask;
19671
19711
  }
19672
19712
  catalogData = new DivaCatalogData(catalogApiData, orderSet, state.api, additionalModelInfos);
19673
19713
  if (!(catalogArticleListData.Articles && catalogArticleListData.Articles.length > 0)) {
19674
- _context.next = 34;
19714
+ _context.next = 38;
19675
19715
  break;
19676
19716
  }
19677
19717
  catalogData.initCatalogArticles(catalogArticleListData.Articles);
19678
- _context.next = 37;
19718
+ _context.next = 41;
19679
19719
  break;
19680
- case 34:
19720
+ case 38:
19681
19721
  DivaUtils__default["default"].endSpanOfApm('Catalog initialize');
19682
19722
  LOG$d.error(new DivaUtils.DivaError('Catalog ' + catalogData.catalogName + ' not listed', {
19683
19723
  code: 'WC_0002'
19684
19724
  }));
19685
19725
  throw new Error('Articles of Catalog: ' + catalogData.catalogCodex + ' are empty');
19686
- case 37:
19726
+ case 41:
19687
19727
  if (catalogArticlePlannerListData.PlannerElements && catalogArticlePlannerListData.PlannerElements.length > 0) {
19688
19728
  catalogData.initCatalogPlannerArticles(catalogArticlePlannerListData.PlannerElements);
19689
19729
  }
@@ -19700,16 +19740,16 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19700
19740
 
19701
19741
  DivaUtils__default["default"].endSpanOfApm('Catalog initialize');
19702
19742
  return _context.abrupt("return", state.divaCatalogs[catalogKey]);
19703
- case 42:
19743
+ case 46:
19704
19744
  LOG$d.error(new DivaUtils.DivaError('Catalog: ' + catalogCodex + ' not initialized! and orderSet not set', {
19705
19745
  code: 'WC_0007'
19706
19746
  }));
19707
19747
  return _context.abrupt("return", state.divaCatalogs[catalogKey]);
19708
- case 44:
19748
+ case 48:
19709
19749
  case "end":
19710
19750
  return _context.stop();
19711
19751
  }
19712
- }, _callee, null, [[19, 25]]);
19752
+ }, _callee, null, [[19, 29]]);
19713
19753
  }));
19714
19754
  function getCatalogData(_x, _x2, _x3) {
19715
19755
  return _getCatalogData.apply(this, arguments);
@@ -23504,7 +23544,7 @@ var DivaArticle = /*#__PURE__*/function () {
23504
23544
  break;
23505
23545
  }
23506
23546
  _context.next = 4;
23507
- return Promise.resolve().then(function () { return require('./ShelfPlanner-63df1fef.js'); });
23547
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-402344f9.js'); });
23508
23548
  case 4:
23509
23549
  _yield$import = _context.sent;
23510
23550
  ShelfPlanner = _yield$import["default"];
@@ -23568,6 +23608,7 @@ var DivaArticle = /*#__PURE__*/function () {
23568
23608
  calcUnitPrice = 0,
23569
23609
  calcUnit2Price = 0,
23570
23610
  firstUnit2Param = 0,
23611
+ secondUnit2Param = 0,
23571
23612
  idmPriceMeasureFactor = 1;
23572
23613
  //CalcPreise berechnen
23573
23614
  for (var i = 0; i < maxPriceOfGroupCodex.length; i++) {
@@ -23598,76 +23639,82 @@ var DivaArticle = /*#__PURE__*/function () {
23598
23639
  if (myArtOPS.replaceMainArtNr) {
23599
23640
  this.configArticleCodex = myArtOPS.replaceMainArtNr;
23600
23641
  }
23642
+ var name = myArtOPS.name;
23643
+ console.log('name', name);
23601
23644
  if (!tmpOPT.useMaxPriceOfGroup) {
23602
23645
  myArtOPS.calcPrice = myArtOPS.price * myArtOPS.quantity;
23603
23646
  }
23604
- switch (pUnit) {
23605
- case 'm':
23606
- calcUnitPrice += myArtOPS.calcPrice / 100;
23607
- break;
23608
- case 'cm':
23609
- calcUnitPrice += myArtOPS.calcPrice;
23610
- break;
23611
- case 'm2':
23612
- calcUnit2Price += myArtOPS.calcPrice / 10000;
23613
- break;
23614
- case 'cm2':
23615
- calcUnit2Price += myArtOPS.calcPrice;
23616
- break;
23617
- default:
23618
- if (myArtOPS.isPercentage) {
23619
- //hier myArtOPS.TargetOption auswerten
23620
- if (myArtOPS.targetOption && myArtOPS.targetOption != '') ; else {
23621
- myArtOPS.usedCalcPrice = myArtOPS.calcPrice;
23622
- }
23623
- } else {
23624
- myArtOPS.usedCalcPrice = DivaUtils__default["default"].decimalAdjust('round', myArtOPS.calcPrice, digits);
23625
- }
23626
- break;
23627
- }
23628
- if (mUnit || OP == 'OPTUMFANG' || OP == 'OPTUMFANG_KREIS') {
23629
- var freeTextMeasure = parseFloat(myArtOPS.freeText ? myArtOPS.freeText : '');
23630
- if (freeTextMeasure || OP == 'OPTUMFANG' || OP == 'OPTUMFANG_KREIS') {
23631
- if (calcUnitPrice != 0) {
23632
- var quantity = 0;
23633
- if (OP == 'OPTUMFANG') {
23634
- mUnit = 'cm';
23635
- quantity = this.calcWidth * 2 + this.calcDepth * 2;
23636
- } else if (OP == 'OPTUMFANG_KREIS') {
23637
- mUnit = 'cm';
23638
- quantity = this.calcWidth * Math.PI;
23647
+ if (pUnit !== null && pUnit !== void 0 && pUnit.includes('2') && calcUnit2Price && firstUnit2Param && secondUnit2Param) {
23648
+ var unit2Price = this.getCalcPerUnit(pUnit, myArtOPS.calcPrice);
23649
+ myArtOPS.usedCalcPrice = unit2Price * firstUnit2Param * secondUnit2Param;
23650
+ } else {
23651
+ switch (pUnit) {
23652
+ case 'm':
23653
+ calcUnitPrice += myArtOPS.calcPrice / 100;
23654
+ break;
23655
+ case 'cm':
23656
+ calcUnitPrice += myArtOPS.calcPrice;
23657
+ break;
23658
+ case 'm2':
23659
+ calcUnit2Price += myArtOPS.calcPrice / 10000;
23660
+ break;
23661
+ case 'cm2':
23662
+ calcUnit2Price += myArtOPS.calcPrice;
23663
+ break;
23664
+ default:
23665
+ if (myArtOPS.isPercentage) {
23666
+ //hier myArtOPS.TargetOption auswerten
23667
+ if (myArtOPS.targetOption && myArtOPS.targetOption != '') ; else {
23668
+ myArtOPS.usedCalcPrice = myArtOPS.calcPrice;
23669
+ }
23639
23670
  } else {
23640
- quantity = freeTextMeasure;
23671
+ myArtOPS.usedCalcPrice = DivaUtils__default["default"].decimalAdjust('round', myArtOPS.calcPrice, digits);
23641
23672
  }
23642
- if (mUnit == 'cm') myArtOPS.usedCalcPrice = calcUnitPrice * quantity;else if (mUnit == 'm') myArtOPS.usedCalcPrice = calcUnitPrice * quantity * 100;
23643
- } else if (calcUnit2Price != 0) {
23644
- //for diamter option
23645
- if (myArtOPS.option.diameter) {
23646
- myArtOPS.usedCalcPrice = calcUnit2Price * this.calcWidth * this.calcDepth;
23647
- } else {
23648
- if (firstUnit2Param == 0) {
23649
- firstUnit2Param = freeTextMeasure;
23650
- if (mUnit == 'm') firstUnit2Param = firstUnit2Param * 100;
23673
+ break;
23674
+ }
23675
+ if (mUnit || OP == 'OPTUMFANG' || OP == 'OPTUMFANG_KREIS') {
23676
+ var freeTextMeasure = parseFloat(myArtOPS.freeText ? myArtOPS.freeText : '');
23677
+ if (freeTextMeasure || (OP == 'OPTUMFANG' || OP == 'OPTUMFANG_KREIS') && calcUnitPrice != 0) {
23678
+ if (calcUnitPrice != 0) {
23679
+ var quantity = 0;
23680
+ if (OP == 'OPTUMFANG') {
23681
+ mUnit = 'cm';
23682
+ quantity = this.calcWidth * 2 + this.calcDepth * 2;
23683
+ } else if (OP == 'OPTUMFANG_KREIS') {
23684
+ mUnit = 'cm';
23685
+ quantity = this.calcWidth * Math.PI;
23686
+ } else {
23687
+ quantity = freeTextMeasure;
23688
+ }
23689
+ if (mUnit == 'cm') myArtOPS.usedCalcPrice = calcUnitPrice * quantity;else if (mUnit == 'm') myArtOPS.usedCalcPrice = calcUnitPrice * quantity * 100;
23690
+ } else if (calcUnit2Price != 0) {
23691
+ //for diamter option
23692
+ if (myArtOPS.option.diameter) {
23693
+ myArtOPS.usedCalcPrice = calcUnit2Price * this.calcWidth * this.calcDepth;
23651
23694
  } else {
23652
- var secondUnit2Param = freeTextMeasure;
23653
- if (mUnit == 'm') secondUnit2Param = secondUnit2Param * 100;
23654
- myArtOPS.usedCalcPrice = calcUnit2Price * firstUnit2Param * secondUnit2Param;
23695
+ if (firstUnit2Param == 0) {
23696
+ firstUnit2Param = freeTextMeasure;
23697
+ if (mUnit == 'm') firstUnit2Param = firstUnit2Param * 100;
23698
+ } else {
23699
+ secondUnit2Param = freeTextMeasure;
23700
+ if (mUnit == 'm') secondUnit2Param = secondUnit2Param * 100;
23701
+ myArtOPS.usedCalcPrice = calcUnit2Price * firstUnit2Param * secondUnit2Param;
23702
+ }
23655
23703
  }
23656
23704
  }
23657
23705
  }
23658
23706
  }
23659
- }
23660
- if (OP == 'OPT95' && !!this.catalogArticle.widthHasPrice) {
23661
- idmPriceMeasureFactor = idmPriceMeasureFactor * this.calcWidth;
23662
- }
23663
- if (OP == 'OPT96' && !!this.catalogArticle.depthHasPrice) {
23664
- idmPriceMeasureFactor = idmPriceMeasureFactor * this.calcDepth;
23665
- }
23666
- if (OP == 'OPT97' && !!this.catalogArticle.heightHasPrice) {
23667
- idmPriceMeasureFactor = idmPriceMeasureFactor * this.calcHeight;
23707
+ if (OP == 'OPT95' && !!this.catalogArticle.widthHasPrice) {
23708
+ idmPriceMeasureFactor = idmPriceMeasureFactor * this.calcWidth;
23709
+ }
23710
+ if (OP == 'OPT96' && !!this.catalogArticle.depthHasPrice) {
23711
+ idmPriceMeasureFactor = idmPriceMeasureFactor * this.calcDepth;
23712
+ }
23713
+ if (OP == 'OPT97' && !!this.catalogArticle.heightHasPrice) {
23714
+ idmPriceMeasureFactor = idmPriceMeasureFactor * this.calcHeight;
23715
+ }
23668
23716
  }
23669
23717
  }
23670
-
23671
23718
  //jetzt nochmal prozentuelle Preise mit TargetOption berechnen
23672
23719
  for (var _iKey3 in myArtOPSs) {
23673
23720
  var _myArtOPS = myArtOPSs[_iKey3];
@@ -23763,6 +23810,21 @@ var DivaArticle = /*#__PURE__*/function () {
23763
23810
  }
23764
23811
  this.article.price = articleUsedCalcPrice;
23765
23812
  }
23813
+ }, {
23814
+ key: "getCalcPerUnit",
23815
+ value: function getCalcPerUnit(unit, calcPrice) {
23816
+ switch (unit) {
23817
+ case 'm':
23818
+ return calcPrice / 100;
23819
+ case 'cm':
23820
+ return calcPrice;
23821
+ case 'm2':
23822
+ return calcPrice / 10000;
23823
+ case 'cm2':
23824
+ return calcPrice;
23825
+ }
23826
+ return 0;
23827
+ }
23766
23828
  }, {
23767
23829
  key: "getOptionPrice",
23768
23830
  value: function getOptionPrice(calculatedPrice, optItem, digits) {
@@ -27943,8 +28005,8 @@ var DivaSet = /*#__PURE__*/function () {
27943
28005
  }, {
27944
28006
  key: "remindPriceForHash",
27945
28007
  value: function remindPriceForHash(product) {
27946
- var _product$discountedPr, _product$discountedPr2;
27947
- if (!product.available) return;
28008
+ var _product$availableFor, _product$discountedPr, _product$discountedPr2;
28009
+ if (!((_product$availableFor = product.availableForOrganizations) !== null && _product$availableFor !== void 0 && _product$availableFor.includes(this.getSetState.organizationId))) return;
27948
28010
  var claculatedPrice = this.getSetPrice(true);
27949
28011
  if (!product.discountedPrice && product.addedPrice === product.calculatedPrice && claculatedPrice == product.calculatedPrice) {
27950
28012
  return;
@@ -27970,7 +28032,7 @@ var DivaSet = /*#__PURE__*/function () {
27970
28032
  break;
27971
28033
  }
27972
28034
  _context4.next = 3;
27973
- return Promise.resolve().then(function () { return require('./DoorPlanner-5164c50d.js'); });
28035
+ return Promise.resolve().then(function () { return require('./DoorPlanner-96be0550.js'); });
27974
28036
  case 3:
27975
28037
  _yield$import = _context4.sent;
27976
28038
  DoorPlanner = _yield$import["default"];
@@ -29395,7 +29457,7 @@ var SummaryHandler = /*#__PURE__*/function () {
29395
29457
  if (article.getArticleOptionState('OPT' + optionCodexes[0])) {
29396
29458
  for (var i = 0; i < optionCodexes.length; i++) {
29397
29459
  var optionState = article.getArticleOptionState('OPT' + optionCodexes[i]);
29398
- if (!optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && optionState.valCodex != 'OPVNR') {
29460
+ if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && optionState.valCodex != 'OPVNR') {
29399
29461
  opss.push(optionState);
29400
29462
  }
29401
29463
  }
@@ -29687,10 +29749,10 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29687
29749
  setHashes = {};
29688
29750
  variantId = this.getVariantIdToStart(set);
29689
29751
  origConfig = articles[Object.keys(articles)[0]].VariantValues;
29690
- i = variants.length - 1;
29752
+ i = 0;
29691
29753
  case 6:
29692
- if (!(i >= 0)) {
29693
- _context3.next = 50;
29754
+ if (!(i < variants.length)) {
29755
+ _context3.next = 53;
29694
29756
  break;
29695
29757
  }
29696
29758
  variantForTargetArticles = variants[i];
@@ -29793,9 +29855,14 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29793
29855
  variantForTargetArticles.configVariantValues = configVariantValues;
29794
29856
  variantForTargetArticles.price = set === null || set === void 0 ? void 0 : set.getSetPrice();
29795
29857
  variantForTargetArticles.title = set === null || set === void 0 ? void 0 : set.CatalogData.catalogName;
29796
- if (!variantIsValid) {
29797
- variants.splice(i, 1);
29858
+ if (variantIsValid) {
29859
+ _context3.next = 48;
29860
+ break;
29798
29861
  }
29862
+ variants.splice(i, 1);
29863
+ i--;
29864
+ return _context3.abrupt("continue", 50);
29865
+ case 48:
29799
29866
  reservedId = this.tryGetOldVariantIdForVariant(set, variants[i]);
29800
29867
  if (reservedId !== undefined) {
29801
29868
  variants[i].id = reservedId;
@@ -29803,21 +29870,21 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29803
29870
  variants[i].id = variantId;
29804
29871
  variantId++;
29805
29872
  }
29806
- case 47:
29807
- i--;
29873
+ case 50:
29874
+ i++;
29808
29875
  _context3.next = 6;
29809
29876
  break;
29810
- case 50:
29877
+ case 53:
29811
29878
  if (!set.favoritesChanged) this.evalOldConfigVariants(set, variants);
29812
- _context3.next = 53;
29879
+ _context3.next = 56;
29813
29880
  return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, origConfig, Object.keys(articles), true);
29814
- case 53:
29881
+ case 56:
29815
29882
  set.allVariantsCache = variants;
29816
29883
  variants.sort(function (a, b) {
29817
29884
  return a.id - b.id;
29818
29885
  });
29819
29886
  return _context3.abrupt("return", variants);
29820
- case 56:
29887
+ case 59:
29821
29888
  case "end":
29822
29889
  return _context3.stop();
29823
29890
  }
@@ -30104,7 +30171,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
30104
30171
  allvariants = _context4.t0;
30105
30172
  validVariants = [];
30106
30173
  for (i = 0; i < allvariants.length; i++) {
30107
- if (!set.disabledVariants.includes(i)) {
30174
+ if (!set.disabledVariants.includes(allvariants[i].id)) {
30108
30175
  validVariants.push(allvariants[i]);
30109
30176
  }
30110
30177
  }
@@ -30299,8 +30366,8 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
30299
30366
  if (!((_set$oldConfigVariant3 = set.oldConfigVariants) !== null && _set$oldConfigVariant3 !== void 0 && _set$oldConfigVariant3.length)) return;
30300
30367
  //set all invalid
30301
30368
  set.disabledVariants = [];
30302
- variants.map(function (v, index) {
30303
- return set.disabledVariants.push(index);
30369
+ variants.map(function (v) {
30370
+ return set.disabledVariants.push(v.id);
30304
30371
  });
30305
30372
  var oldConfigVariants = _toConsumableArray__default["default"](set.oldConfigVariants);
30306
30373
  for (var i = 0; i < variants.length; i++) {
@@ -30323,7 +30390,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
30323
30390
  if (tryNext) break;
30324
30391
  }
30325
30392
  if (!tryNext) {
30326
- var index = set.disabledVariants.indexOf(i);
30393
+ var index = set.disabledVariants.indexOf(variant.id);
30327
30394
  if (index != -1) set.disabledVariants.splice(index, 1);
30328
30395
  oldConfigVariants.splice(j, 1);
30329
30396
  }
@@ -34819,7 +34886,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34819
34886
  value: function () {
34820
34887
  var _initializeBasket = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(api) {
34821
34888
  var _this$plannerConfig$s3, _this$plannerConfig$s5, _api$getPlannerType, _this$plannerConfig$r;
34822
- var returnSuccessfully, divaNr, i, os, _params$customFieldsT, params, _this$plannerConfig$h, _this$plannerConfig$c, _this$plannerConfig$c2, _result$data$, result, _result$data$2, _this$plannerConfig$s4, _this$plannerConfig$a4, _api$getI18n, _api$getI18n2, successfully;
34889
+ var returnSuccessfully, divaNr, i, os, _params$customFieldsT, params, _this$plannerConfig$h, _this$plannerConfig$c, _this$plannerConfig$c2, _this$plannerConfig$c3, _result$data$, result, _result$data$2, _this$plannerConfig$s4, _this$plannerConfig$a4, _api$getI18n, _api$getI18n2, successfully;
34823
34890
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
34824
34891
  while (1) switch (_context.prev = _context.next) {
34825
34892
  case 0:
@@ -34952,9 +35019,9 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34952
35019
  op: 'eq',
34953
35020
  value: (_this$plannerConfig$c2 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c2 === void 0 ? void 0 : _this$plannerConfig$c2._id
34954
35021
  }, {
34955
- id: 'available',
35022
+ id: 'availableForOrganizations',
34956
35023
  op: 'eq',
34957
- value: true
35024
+ value: (_this$plannerConfig$c3 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c3 === void 0 ? void 0 : _this$plannerConfig$c3._id
34958
35025
  }]);
34959
35026
  case 60:
34960
35027
  result = _context.sent;
@@ -35588,7 +35655,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35588
35655
  key: "saveToBasket",
35589
35656
  value: function () {
35590
35657
  var _saveToBasket = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee12(api, actBasket, returnTo) {
35591
- var _this$plannerConfig$c3, _this$_basketHandler, _api$getJwt;
35658
+ var _this$plannerConfig$c4, _this$_basketHandler, _api$getJwt;
35592
35659
  var response;
35593
35660
  return _regeneratorRuntime__default["default"].wrap(function _callee12$(_context12) {
35594
35661
  while (1) switch (_context12.prev = _context12.next) {
@@ -35607,7 +35674,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35607
35674
  return DivaUtils__default["default"].updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser, this.plannerConfig.settings.keepSalesPersonDataInBasket);
35608
35675
  case 8:
35609
35676
  actBasket.UserLanguage = api.getLanguage();
35610
- actBasket.PrintRetailLogo = (_this$plannerConfig$c3 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c3 === void 0 ? void 0 : _this$plannerConfig$c3.logoUrl;
35677
+ actBasket.PrintRetailLogo = (_this$plannerConfig$c4 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c4 === void 0 ? void 0 : _this$plannerConfig$c4.logoUrl;
35611
35678
  _context12.next = 12;
35612
35679
  return (_this$_basketHandler = this._basketHandler) === null || _this$_basketHandler === void 0 ? void 0 : _this$_basketHandler.saveBasket({
35613
35680
  jwt: (_api$getJwt = api.getJwt()) !== null && _api$getJwt !== void 0 ? _api$getJwt : undefined,
@@ -35763,7 +35830,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35763
35830
  break;
35764
35831
  case 3:
35765
35832
  _context13.next = 5;
35766
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-0447de84.js'); });
35833
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-224c584c.js'); });
35767
35834
  case 5:
35768
35835
  _yield$import = _context13.sent;
35769
35836
  PfisterWWSHandler = _yield$import["default"];
@@ -35771,7 +35838,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35771
35838
  return _context13.abrupt("break", 33);
35772
35839
  case 9:
35773
35840
  _context13.next = 11;
35774
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-32bb295f.js'); });
35841
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-735014f7.js'); });
35775
35842
  case 11:
35776
35843
  _yield$import2 = _context13.sent;
35777
35844
  LiviqueWWSHandler = _yield$import2["default"];
@@ -35779,7 +35846,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35779
35846
  return _context13.abrupt("break", 33);
35780
35847
  case 15:
35781
35848
  _context13.next = 17;
35782
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-e7f5bfb9.js'); });
35849
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-3f4b1594.js'); });
35783
35850
  case 17:
35784
35851
  _yield$import3 = _context13.sent;
35785
35852
  SeriousWWSHandler = _yield$import3["default"];
@@ -35787,7 +35854,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35787
35854
  return _context13.abrupt("break", 33);
35788
35855
  case 21:
35789
35856
  _context13.next = 23;
35790
- return Promise.resolve().then(function () { return require('./ProductBasketHandler-144386d9.js'); });
35857
+ return Promise.resolve().then(function () { return require('./ProductBasketHandler-034a3339.js'); });
35791
35858
  case 23:
35792
35859
  _yield$import4 = _context13.sent;
35793
35860
  ProductWWSHandler = _yield$import4["default"];
@@ -35795,7 +35862,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35795
35862
  return _context13.abrupt("break", 33);
35796
35863
  case 27:
35797
35864
  _context13.next = 29;
35798
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-96b3ab81.js'); });
35865
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-b61cae22.js'); });
35799
35866
  case 29:
35800
35867
  _yield$import5 = _context13.sent;
35801
35868
  StandardWWSHandler = _yield$import5["default"];
@@ -35826,43 +35893,43 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35826
35893
  //if no shopType is set in parent organization, no ropo effekt
35827
35894
  if (!organization.shopType) return;
35828
35895
  if (organization.shopType == 'store' && sourceOrganizationId.shopType == 'store') {
35829
- var _this$plannerConfig$c4;
35896
+ var _this$plannerConfig$c5;
35830
35897
  LOG$6.businessEvent('ropoEffectStoreToStore', 'Seller', 'Evaluating the ROPO Effect Store To Store', {
35831
35898
  sourceDivaNr: sourceBasket.DivaNr,
35832
35899
  sourceOrgId: sourceOrganizationId.id,
35833
- targetOrgId: (_this$plannerConfig$c4 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c4 === void 0 ? void 0 : _this$plannerConfig$c4._id
35900
+ targetOrgId: (_this$plannerConfig$c5 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c5 === void 0 ? void 0 : _this$plannerConfig$c5._id
35834
35901
  });
35835
35902
  } else if (organization.shopType == 'webshop' && sourceOrganizationId.shopType == 'webshop') {
35836
- var _this$plannerConfig$c5;
35903
+ var _this$plannerConfig$c6;
35837
35904
  LOG$6.businessEvent('ropoEffectWebToWeb', 'Seller', 'Evaluating the ROPO Effect Web To Web', {
35838
35905
  sourceDivaNr: sourceBasket.DivaNr,
35839
35906
  sourceOrgId: sourceOrganizationId.id,
35840
- targetOrgId: (_this$plannerConfig$c5 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c5 === void 0 ? void 0 : _this$plannerConfig$c5._id
35907
+ targetOrgId: (_this$plannerConfig$c6 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c6 === void 0 ? void 0 : _this$plannerConfig$c6._id
35841
35908
  });
35842
35909
  } else if (organization.shopType == 'store' && sourceOrganizationId.shopType == 'webshop') {
35843
- var _this$plannerConfig$c6;
35910
+ var _this$plannerConfig$c7;
35844
35911
  LOG$6.businessEvent('ropoEffectStoreToWeb', 'Seller', 'Evaluating the ROPO Effect Web To Store', {
35845
35912
  sourceDivaNr: sourceBasket.DivaNr,
35846
35913
  sourceOrgId: sourceOrganizationId.id,
35847
- targetOrgId: (_this$plannerConfig$c6 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c6 === void 0 ? void 0 : _this$plannerConfig$c6._id
35914
+ targetOrgId: (_this$plannerConfig$c7 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c7 === void 0 ? void 0 : _this$plannerConfig$c7._id
35848
35915
  });
35849
35916
  } else if (organization.shopType == 'webshop' && sourceOrganizationId.shopType == 'store') {
35850
- var _this$plannerConfig$c7;
35917
+ var _this$plannerConfig$c8;
35851
35918
  LOG$6.businessEvent('ropoEffectWebToStore', 'Seller', 'Evaluating the ROPO Effect Store To Web', {
35852
35919
  sourceDivaNr: sourceBasket.DivaNr,
35853
35920
  sourceOrgId: sourceOrganizationId.id,
35854
- targetOrgId: (_this$plannerConfig$c7 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c7 === void 0 ? void 0 : _this$plannerConfig$c7._id
35921
+ targetOrgId: (_this$plannerConfig$c8 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c8 === void 0 ? void 0 : _this$plannerConfig$c8._id
35855
35922
  });
35856
35923
  }
35857
35924
  } catch (e) {
35858
- var _this$plannerConfig$c8;
35925
+ var _this$plannerConfig$c9;
35859
35926
  LOG$6.error(new DivaUtils.DivaError('Error on Evaluating ROPO Effect', {
35860
35927
  code: 'SELLER_0006',
35861
35928
  cause: e,
35862
35929
  custom: {
35863
35930
  sourceDivaNr: sourceBasket.DivaNr,
35864
35931
  sourceOrgId: sourceOrganizationId,
35865
- targetOrgId: (_this$plannerConfig$c8 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c8 === void 0 ? void 0 : _this$plannerConfig$c8._id
35932
+ targetOrgId: (_this$plannerConfig$c9 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c9 === void 0 ? void 0 : _this$plannerConfig$c9._id
35866
35933
  }
35867
35934
  }));
35868
35935
  }
@@ -37000,7 +37067,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37000
37067
  break;
37001
37068
  }
37002
37069
  _context3.next = 3;
37003
- return Promise.resolve().then(function () { return require('./Host3DSignalR-f13134cb.js'); });
37070
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-e4ca360e.js'); });
37004
37071
  case 3:
37005
37072
  _yield$import = _context3.sent;
37006
37073
  Host3DSignalR = _yield$import["default"];
@@ -38560,7 +38627,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38560
38627
  break;
38561
38628
  }
38562
38629
  _context4.next = 11;
38563
- return Promise.resolve().then(function () { return require('./DivaSingleProductPlanner-fcf3e4be.js'); });
38630
+ return Promise.resolve().then(function () { return require('./DivaSingleProductPlanner-a308bc4c.js'); });
38564
38631
  case 11:
38565
38632
  _yield$import = _context4.sent;
38566
38633
  DivaSingleProductPlanner = _yield$import["default"];
@@ -38569,7 +38636,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38569
38636
  break;
38570
38637
  case 16:
38571
38638
  _context4.next = 18;
38572
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-a18f752d.js'); });
38639
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-3ead2b7c.js'); });
38573
38640
  case 18:
38574
38641
  _yield$import2 = _context4.sent;
38575
38642
  DivaStandardPlanner = _yield$import2["default"];
@@ -38581,7 +38648,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38581
38648
  return _context4.abrupt("break", 29);
38582
38649
  case 23:
38583
38650
  _context4.next = 25;
38584
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-6a883291.js'); });
38651
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-d100fdb8.js'); });
38585
38652
  case 25:
38586
38653
  _yield$import3 = _context4.sent;
38587
38654
  DivaBoxPlanner = _yield$import3["default"];
@@ -42974,6 +43041,8 @@ var Grid = /*#__PURE__*/function () {
42974
43041
  // E.g: "Grid Left" or "Grid Middle" or "Grid Right"
42975
43042
  _defineProperty__default["default"](this, "gridName", void 0);
42976
43043
  _defineProperty__default["default"](this, "maxAccessoireInGridCounter", void 0);
43044
+ //only one array of accessoires is plannable together in one grid. the accessoires of the mid array exclude each other. The outer array is for te usage of this rule in different usecases.
43045
+ _defineProperty__default["default"](this, "excludeAccessoiresByAccessoiresInGrid", void 0);
42977
43046
  _defineProperty__default["default"](this, "influencedByNeighborGrids", void 0);
42978
43047
  _defineProperty__default["default"](this, "influencedByOverlappingGrids", void 0);
42979
43048
  var grid = data.ShelfPlanner[index];
@@ -42989,6 +43058,7 @@ var Grid = /*#__PURE__*/function () {
42989
43058
  this.requiredWarning = grid.RequiredWarning;
42990
43059
  this.gridName = grid.GridName;
42991
43060
  this.maxAccessoireInGridCounter = grid.MaxAccessoireInGridCounter;
43061
+ this.excludeAccessoiresByAccessoiresInGrid = grid.ExcludeAccessoiresByAccessoiresInGrid;
42992
43062
  this.influencedByNeighborGrids = grid.InfluencedByNeighborGrids;
42993
43063
  this.influencedByOverlappingGrids = grid.InfluencedByOverlappingGrids;
42994
43064
  this._group = grid.Group;
@@ -43001,8 +43071,9 @@ var Grid = /*#__PURE__*/function () {
43001
43071
  for (var i = 0; i < this.heightGridCellCountOnRule.length; i++) {
43002
43072
  var gridOnRule = this.heightGridCellCountOnRule[i];
43003
43073
  if (this.article.evalRule(DivaUtils__default["default"].getRuleByFormula(gridOnRule.Rule))) {
43004
- cellCount = gridOnRule.HeightGridCellCount;
43005
- this.articleRelations = gridOnRule.ArticleRelations;
43074
+ var _gridOnRule$HeightGri, _gridOnRule$ArticleRe;
43075
+ cellCount = (_gridOnRule$HeightGri = gridOnRule.HeightGridCellCount) !== null && _gridOnRule$HeightGri !== void 0 ? _gridOnRule$HeightGri : grid.HeightGridCellCount;
43076
+ this.articleRelations = (_gridOnRule$ArticleRe = gridOnRule.ArticleRelations) !== null && _gridOnRule$ArticleRe !== void 0 ? _gridOnRule$ArticleRe : grid.ArticleRelations;
43006
43077
  if (gridOnRule.initAccArr) this.initAccArr = gridOnRule.initAccArr;
43007
43078
  this.currentLoadedRuleIndex = i;
43008
43079
  }
@@ -43674,7 +43745,7 @@ var Grid = /*#__PURE__*/function () {
43674
43745
  key: "getFreeSpacesOfAccessoire",
43675
43746
  value: function getFreeSpacesOfAccessoire(accessoire) {
43676
43747
  var size = accessoire.shelfHeight;
43677
- if (!size || this.disabledByRule || this.maxAccessoireCountReached(accessoire)) return [];
43748
+ if (!size || this.disabledByRule || this.checkAccessoireInGridRules(accessoire)) return [];
43678
43749
  var freeCells = [];
43679
43750
  for (var i = 0; i < this.Cells.length; i++) {
43680
43751
  var _cell$Article4;
@@ -43709,22 +43780,51 @@ var Grid = /*#__PURE__*/function () {
43709
43780
  return _toConsumableArray__default["default"](new Set(freeCells));
43710
43781
  }
43711
43782
  }, {
43712
- key: "maxAccessoireCountReached",
43713
- value: function maxAccessoireCountReached(accessoire) {
43714
- var _this$maxAccessoireIn;
43715
- if (!((_this$maxAccessoireIn = this.maxAccessoireInGridCounter) !== null && _this$maxAccessoireIn !== void 0 && _this$maxAccessoireIn.length)) return false;
43716
- for (var i = 0; i < this.maxAccessoireInGridCounter.length; i++) {
43717
- var rule = this.maxAccessoireInGridCounter[i];
43718
- var counter = 0;
43719
- if (rule.accessoires.includes(accessoire.articleCodex)) {
43720
- var currentAccessoires = Object.values(this.Accessoires);
43721
- for (var j = 0; j < currentAccessoires.length; j++) {
43722
- var curAcc = currentAccessoires[j];
43723
- if (rule.accessoires.includes(curAcc.articleCodex)) {
43724
- counter = counter + curAcc.quantity;
43783
+ key: "checkAccessoireInGridRules",
43784
+ value: function checkAccessoireInGridRules(accessoire) {
43785
+ var _this$maxAccessoireIn, _this$excludeAccessoi;
43786
+ //max count in grid logic
43787
+ if ((_this$maxAccessoireIn = this.maxAccessoireInGridCounter) !== null && _this$maxAccessoireIn !== void 0 && _this$maxAccessoireIn.length) {
43788
+ for (var i = 0; i < this.maxAccessoireInGridCounter.length; i++) {
43789
+ var rule = this.maxAccessoireInGridCounter[i];
43790
+ var counter = 0;
43791
+ if (rule.accessoires.includes(accessoire.articleCodex)) {
43792
+ var currentAccessoires = Object.values(this.Accessoires);
43793
+ for (var j = 0; j < currentAccessoires.length; j++) {
43794
+ var curAcc = currentAccessoires[j];
43795
+ if (rule.accessoires.includes(curAcc.articleCodex)) {
43796
+ counter = counter + curAcc.quantity;
43797
+ }
43798
+ }
43799
+ if (counter >= rule.maxCount) return true;
43800
+ }
43801
+ }
43802
+ }
43803
+
43804
+ //accessories excluded eachother
43805
+ if ((_this$excludeAccessoi = this.excludeAccessoiresByAccessoiresInGrid) !== null && _this$excludeAccessoi !== void 0 && _this$excludeAccessoi.length) {
43806
+ var excludeAccessoiresGroup = this.excludeAccessoiresByAccessoiresInGrid;
43807
+ for (var _j2 = 0; _j2 < excludeAccessoiresGroup.length; _j2++) {
43808
+ var plannedAccessoireIndex = -1;
43809
+ var excludeAccessoires = excludeAccessoiresGroup[_j2];
43810
+ for (var _i16 = 0; _i16 < excludeAccessoires.length; _i16++) {
43811
+ var accessoireArray = excludeAccessoires[_i16];
43812
+ for (var basketId in this.Accessoires) {
43813
+ var palnnedAccessoire = this.Accessoires[basketId];
43814
+ if (accessoireArray.includes(palnnedAccessoire.articleCodex)) {
43815
+ plannedAccessoireIndex = _i16;
43816
+ break;
43817
+ }
43818
+ }
43819
+ if (plannedAccessoireIndex >= 0) break;
43820
+ }
43821
+ if (plannedAccessoireIndex >= 0) {
43822
+ for (var _i17 = 0; _i17 < excludeAccessoires.length; _i17++) {
43823
+ var _accessoireArray = excludeAccessoires[_i17];
43824
+ if (plannedAccessoireIndex == _i17) continue;
43825
+ if (_accessoireArray.includes(accessoire.articleCodex)) return true;
43725
43826
  }
43726
43827
  }
43727
- if (counter >= rule.maxCount) return true;
43728
43828
  }
43729
43829
  }
43730
43830
  return false;
@@ -43769,16 +43869,16 @@ var Grid = /*#__PURE__*/function () {
43769
43869
  }
43770
43870
  }
43771
43871
  if ((_this$influencedByNei = this.influencedByNeighborGrids) !== null && _this$influencedByNei !== void 0 && _this$influencedByNei.length) {
43772
- for (var _i16 = 0; _i16 < this.influencedByNeighborGrids.length; _i16++) {
43872
+ for (var _i18 = 0; _i18 < this.influencedByNeighborGrids.length; _i18++) {
43773
43873
  var _this$article$shelfPl2;
43774
- var _influenced = this.influencedByNeighborGrids[_i16];
43874
+ var _influenced = this.influencedByNeighborGrids[_i18];
43775
43875
  var neighborGrid = (_this$article$shelfPl2 = this.article.shelfPlanner) === null || _this$article$shelfPl2 === void 0 ? void 0 : _this$article$shelfPl2.getGridByGridName(_influenced.GridName);
43776
43876
  var _ret = false;
43777
43877
  if (!neighborGrid) continue;
43778
43878
  if (neighborGrid.Direction === this.Direction) {
43779
- for (var _j2 = 0; _j2 < size; _j2++) {
43879
+ for (var _j3 = 0; _j3 < size; _j3++) {
43780
43880
  var _cell$Article5;
43781
- var cell = neighborGrid.cells[_j2 + index];
43881
+ var cell = neighborGrid.cells[_j3 + index];
43782
43882
  if ((cell === null || cell === void 0 ? void 0 : cell.InUse) !== -1 && ((_cell$Article5 = cell.Article) === null || _cell$Article5 === void 0 ? void 0 : _cell$Article5.basketId) !== accessoire.basketId) {
43783
43883
  _ret = true;
43784
43884
  }
@@ -43881,19 +43981,20 @@ var Grid = /*#__PURE__*/function () {
43881
43981
  });
43882
43982
  if (alternative) return alternative.ArticleRelations;
43883
43983
  if (this.heightGridCellCountOnRule && this.currentLoadedRuleIndex !== false) {
43884
- return this.heightGridCellCountOnRule[this.currentLoadedRuleIndex].ArticleRelations;
43984
+ var curGrid = this.heightGridCellCountOnRule[this.currentLoadedRuleIndex];
43985
+ if (curGrid.ArticleRelations) return curGrid.ArticleRelations;
43885
43986
  }
43886
43987
  return this.articleRelations;
43887
43988
  }
43888
43989
  }, {
43889
43990
  key: "getGridIdByArticleCodex",
43890
43991
  value: function getGridIdByArticleCodex(articleCodex) {
43891
- var _this$ArticleRelation3;
43992
+ var _this$ArticleRelation3, _this$heightGridCellC;
43892
43993
  var alternative = (_this$ArticleRelation3 = this.ArticleRelationsForOtherGroups) === null || _this$ArticleRelation3 === void 0 ? void 0 : _this$ArticleRelation3.find(function (g) {
43893
43994
  return g.ArticleRelations.includes(articleCodex);
43894
43995
  });
43895
43996
  if (alternative) return alternative.Group;
43896
- if (this.heightGridCellCountOnRule && this.currentLoadedRuleIndex !== false && this.heightGridCellCountOnRule[this.currentLoadedRuleIndex].ArticleRelations.includes(articleCodex)) {
43997
+ if (this.heightGridCellCountOnRule && this.currentLoadedRuleIndex !== false && (_this$heightGridCellC = this.heightGridCellCountOnRule[this.currentLoadedRuleIndex].ArticleRelations) !== null && _this$heightGridCellC !== void 0 && _this$heightGridCellC.includes(articleCodex)) {
43897
43998
  return this.gridGroup;
43898
43999
  }
43899
44000
  if (this.articleRelations.includes(articleCodex)) {
@@ -59884,7 +59985,7 @@ var ProductHandler = /*#__PURE__*/function () {
59884
59985
  */
59885
59986
  _defineProperty__default["default"](this, "loadProducts", /*#__PURE__*/function () {
59886
59987
  var _ref4 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(_ref3) {
59887
- var _productData$length, _basket$OrderSets, _baseProduct, _baseProduct2, _baseProduct3, _baseProduct4, _baseProduct5, _baseProduct6, _baseProduct7, _baseProduct8, _baseProduct9, _baseProduct10, _baseProduct11, _baseProduct$width, _baseProduct12, _basket$SetPlannerInf, _basket$OrderSets$0$B, _baseProduct$height, _baseProduct13, _basket$SetPlannerInf2, _basket$OrderSets$0$B2, _baseProduct$depth, _baseProduct14, _basket$SetPlannerInf3, _basket$OrderSets$0$B3, _basket$SetPlannerInf4, _basket$SetPlannerInf5, _baseProduct15, _baseProduct16, _baseProduct17, _baseProduct18;
59988
+ var _productData$length, _basket$OrderSets, _baseProduct, _baseProduct2, _baseProduct3, _baseProduct4, _baseProduct5, _baseProduct6, _baseProduct7, _baseProduct8, _baseProduct9, _baseProduct10, _baseProduct11, _baseProduct$width, _baseProduct12, _basket$SetPlannerInf, _basket$OrderSets$0$B, _baseProduct$height, _baseProduct13, _basket$SetPlannerInf2, _basket$OrderSets$0$B2, _baseProduct$depth, _baseProduct14, _basket$SetPlannerInf3, _basket$OrderSets$0$B3, _basket$SetPlannerInf4, _basket$SetPlannerInf5, _baseProduct15, _baseProduct16, _baseProduct17;
59888
59989
  var basket, catalogData, productData, classificationFields, products, baseProduct, variantProducts, isSet, dockingPoints, orderDescription, catalogDataName, catalogDataDescription, setName, _ProductHandler$calcu, shortDescription, shortDescriptionModified, _ProductHandler$calcu2, addedPrice, addedPriceModified, articles, baseData, classificationData, variantData, variantDataModified, addedProducts, removedProducts, optFields, initialSelectedFields, _basket$OrderSets$0$C2, usedConfigVariants, differingOPTs, _basket$OrderSets$0$C3, opts, i;
59889
59990
  return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
59890
59991
  while (1) switch (_context2.prev = _context2.next) {
@@ -59996,10 +60097,9 @@ var ProductHandler = /*#__PURE__*/function () {
59996
60097
  mainCategory: _this.mainCategory,
59997
60098
  subCategory: _this.subCategory,
59998
60099
  retailerArticleNr: (_baseProduct15 = baseProduct) === null || _baseProduct15 === void 0 ? void 0 : _baseProduct15.retailerArticleNr,
59999
- available: ((_baseProduct16 = baseProduct) === null || _baseProduct16 === void 0 ? void 0 : _baseProduct16.available) != undefined ? baseProduct.available : false,
60000
60100
  dockingPoints: dockingPoints,
60001
- media: (_baseProduct17 = baseProduct) === null || _baseProduct17 === void 0 ? void 0 : _baseProduct17.media,
60002
- affiliate: (_baseProduct18 = baseProduct) === null || _baseProduct18 === void 0 ? void 0 : _baseProduct18.affiliate
60101
+ media: (_baseProduct16 = baseProduct) === null || _baseProduct16 === void 0 ? void 0 : _baseProduct16.media,
60102
+ affiliate: (_baseProduct17 = baseProduct) === null || _baseProduct17 === void 0 ? void 0 : _baseProduct17.affiliate
60003
60103
  }; //get classification data and remove field prefix
60004
60104
  classificationData = _this.parseClassificationFields(baseProduct, true); // init Variants
60005
60105
  variantData = [];
@@ -60481,11 +60581,6 @@ _defineProperty__default["default"](ProductHandler, "baseDataFields", [{
60481
60581
  type: 'text',
60482
60582
  title: 'productcreator.fields.technicalDescription',
60483
60583
  fieldType: 'BASE'
60484
- }, {
60485
- field: 'available',
60486
- type: 'boolean',
60487
- title: 'productcreator.fields.available',
60488
- fieldType: 'BASE'
60489
60584
  }, {
60490
60585
  field: 'calculatedPrice',
60491
60586
  type: 'price',