@crystaldesign/web-planner-logic 25.14.0-beta.2 → 25.14.0-beta.21

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 (56) hide show
  1. package/build/cjs/{DivaBoxPlanner-1b90896a.js → DivaBoxPlanner-1b528aea.js} +489 -265
  2. package/build/cjs/{DivaStandardPlanner-816f7344.js → DivaStandardPlanner-be62d50f.js} +4 -3
  3. package/build/cjs/{DoorPlanner-b5c5993b.js → DoorPlanner-52a515db.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-6bbb3036.js → Host3DSignalR-c5fa8d61.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-69df31a9.js → LiviqueWWSHandler-7692cac0.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-c15ee67a.js → PfisterWWSHandler-af5d982f.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-2f00b260.js → PlannerHandler2D-cf080fd5.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-f2a7887a.js → SeriousBasketHandler-05ef0a50.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-613aae50.js → ShelfPlanner-aa6fa9ae.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-71564218.js → StandardWWSHandler-0a959dd8.js} +1 -1
  11. package/build/cjs/{index-f1a70eb3.js → index-83dfa5ef.js} +186 -151
  12. package/build/cjs/index.js +1 -3
  13. package/build/esm/{DivaBoxPlanner-c3688dbb.js → DivaBoxPlanner-68835bff.js} +488 -265
  14. package/build/esm/{DivaStandardPlanner-5908d45b.js → DivaStandardPlanner-edab8611.js} +4 -3
  15. package/build/esm/{DoorPlanner-63d43d9b.js → DoorPlanner-d243c8a2.js} +1 -1
  16. package/build/esm/{Host3DSignalR-e0fd5c5e.js → Host3DSignalR-2ac24936.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-aa489385.js → LiviqueWWSHandler-9e3829b9.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-88f3bc2f.js → PfisterWWSHandler-5d99b08c.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-43910df5.js → PlannerHandler2D-6aa7326e.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-6a8f0e2d.js → SeriousBasketHandler-e47f2d8c.js} +1 -1
  21. package/build/esm/{ShelfPlanner-e548f714.js → ShelfPlanner-e187be95.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-f2e16ec1.js → StandardWWSHandler-ee22c3f6.js} +1 -1
  23. package/build/esm/{index-14f79ee4.js → index-07df9d4d.js} +187 -150
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/index.d.ts +0 -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/AiImageResult.d.ts +0 -2
  28. package/build/types/web-planner-logic/src/interface/API/AiImageResult.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +1 -0
  30. package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +1 -1
  32. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +1 -0
  34. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts +2 -0
  36. package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/ReturnTypes/index.d.ts +1 -0
  38. package/build/types/web-planner-logic/src/interface/ReturnTypes/index.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts +0 -1
  40. package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +3 -1
  42. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +2 -1
  44. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts +4 -4
  46. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts +1 -0
  48. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
  50. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
  51. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  52. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +1 -0
  53. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
  54. package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
  55. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
  56. package/package.json +2 -2
@@ -78,6 +78,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
78
78
  _defineProperty__default["default"](this, "jwt", void 0);
79
79
  _defineProperty__default["default"](this, "apiKey", void 0);
80
80
  _defineProperty__default["default"](this, "actions", void 0);
81
+ _defineProperty__default["default"](this, "state", void 0);
81
82
  _defineProperty__default["default"](this, "i18n", void 0);
82
83
  _defineProperty__default["default"](this, "getSessionGuid", void 0);
83
84
  _defineProperty__default["default"](this, "useEkPrices", false);
@@ -746,6 +747,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
746
747
  value: function setActions(actions) {
747
748
  this.actions = actions;
748
749
  }
750
+ }, {
751
+ key: "setState",
752
+ value: function setState(state) {
753
+ this.state = state;
754
+ }
749
755
  }, {
750
756
  key: "getI18n",
751
757
  value: function getI18n() {
@@ -756,7 +762,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
756
762
  key: "setAccountSessionGuid",
757
763
  value: function () {
758
764
  var _setAccountSessionGuid = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee5(_ref) {
759
- var os, accountGuid, catalogGuid, response, _this$actions;
765
+ var os, accountGuid, catalogGuid, response, _this$actions, _this$state$navigatio, _this$state;
760
766
  return _regeneratorRuntime__default["default"].wrap(function _callee5$(_context5) {
761
767
  while (1) switch (_context5.prev = _context5.next) {
762
768
  case 0:
@@ -795,7 +801,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
795
801
  break;
796
802
  case 16:
797
803
  if (this.applicationEnvironment == 'SELLER') {
798
- (_this$actions = this.actions) === null || _this$actions === void 0 || _this$actions.openComponent({
804
+ (_this$actions = this.actions) === null || _this$actions === void 0 || _this$actions.openComponent((_this$state$navigatio = (_this$state = this.state) === null || _this$state === void 0 || (_this$state = _this$state.navigationConfiguration) === null || _this$state === void 0 ? void 0 : _this$state.logoAction) !== null && _this$state$navigatio !== void 0 ? _this$state$navigatio : {
799
805
  type: 'SELLER',
800
806
  parameters: {
801
807
  module: 'Collections'
@@ -1114,7 +1120,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
1114
1120
  value: function getIDMItems(catalogId, serieId, typeNos) {
1115
1121
  return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
1116
1122
  return encodeURIComponent('typeNo==' + t);
1117
- }).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');
1123
+ }).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');
1118
1124
  }
1119
1125
  }, {
1120
1126
  key: "getIDMItem",
@@ -18088,7 +18094,9 @@ function getPropertiesForFeatureNo(properties, typeNo, featureNo, lang) {
18088
18094
  function getPropertiesForOptionKey(properties, featureNo, optionKey, lang) {
18089
18095
  return properties.filter(function (p) {
18090
18096
  var _p$featureNos2, _p$optionKeys2;
18091
- return (!((_p$featureNos2 = p.featureNos) !== null && _p$featureNos2 !== void 0 && _p$featureNos2.length) || featureNo !== undefined && p.featureNos.includes(featureNo)) && ((_p$optionKeys2 = p.optionKeys) === null || _p$optionKeys2 === void 0 ? void 0 : _p$optionKeys2.includes(optionKey));
18097
+ return (!((_p$featureNos2 = p.featureNos) !== null && _p$featureNos2 !== void 0 && _p$featureNos2.length) || featureNo !== undefined && p.featureNos.includes(featureNo)) && ((_p$optionKeys2 = p.optionKeys) === null || _p$optionKeys2 === void 0 || (_p$optionKeys2 = _p$optionKeys2.map(function (o) {
18098
+ return o.startsWith('OPV') ? o : 'OPV' + o;
18099
+ })) === null || _p$optionKeys2 === void 0 ? void 0 : _p$optionKeys2.includes(optionKey));
18092
18100
  }).map(function (p) {
18093
18101
  return {
18094
18102
  Value: DivaUtils__default["default"].getLocals(p.value, lang),
@@ -18678,15 +18686,20 @@ var ArticleOptionData = /*#__PURE__*/function () {
18678
18686
  key: "hasImages",
18679
18687
  get: function get() {
18680
18688
  if (this.opt.hasImages === undefined) {
18681
- var _this$opt$articleOpti, _this$opt$articleOpti2;
18682
- var opvs = Array.from((_this$opt$articleOpti = (_this$opt$articleOpti2 = this.opt.articleOptionValues) === null || _this$opt$articleOpti2 === void 0 ? void 0 : _this$opt$articleOpti2.values()) !== null && _this$opt$articleOpti !== void 0 ? _this$opt$articleOpti : []);
18683
- if (opvs.length > 0) {
18684
- this.opt.hasImages = opvs.some(function (v) {
18685
- var _v$articleOptionValue;
18686
- return v.hasImages || ((_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.values().some(function (v) {
18687
- return v.hasImages;
18688
- }));
18689
- });
18689
+ var _this$opt$catalogOPT$;
18690
+ if (this.opt.catalogOPT.layout == 'IMAGE' || (_this$opt$catalogOPT$ = this.opt.catalogOPT.layout) !== null && _this$opt$catalogOPT$ !== void 0 && _this$opt$catalogOPT$.includes('GAL')) {
18691
+ this.opt.hasImages = true;
18692
+ } else {
18693
+ var _this$opt$articleOpti, _this$opt$articleOpti2;
18694
+ var opvs = Array.from((_this$opt$articleOpti = (_this$opt$articleOpti2 = this.opt.articleOptionValues) === null || _this$opt$articleOpti2 === void 0 ? void 0 : _this$opt$articleOpti2.values()) !== null && _this$opt$articleOpti !== void 0 ? _this$opt$articleOpti : []);
18695
+ if (opvs.length > 0) {
18696
+ this.opt.hasImages = opvs.some(function (v) {
18697
+ var _v$articleOptionValue;
18698
+ return v.hasImages || ((_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 || (_v$articleOptionValue = _v$articleOptionValue.values()) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.some(function (v) {
18699
+ return v.hasImages;
18700
+ }));
18701
+ });
18702
+ }
18690
18703
  }
18691
18704
  }
18692
18705
  return this.opt.hasImages;
@@ -20166,15 +20179,24 @@ function mapProp() {
20166
20179
  });
20167
20180
  }
20168
20181
  function getCatalogPlanner(article, catalogArticle) {
20169
- var _catalogArticle$svgs, _article$depthBasicSh4, _article$depthBasicSh5, _article$depthBasicSh6, _article$widthBasicSh4, _article$widthBasicSh5, _article$widthBasicSh6, _article$heightBasicS4, _article$heightBasicS5, _article$heightBasicS6;
20182
+ var _article$avlFilter, _article$avrFilter, _article$depthBasicSh4, _article$depthBasicSh5, _article$depthBasicSh6, _article$widthBasicSh4, _article$widthBasicSh5, _article$widthBasicSh6, _article$heightBasicS4, _article$heightBasicS5, _article$heightBasicS6, _catalogArticle$svgs;
20170
20183
  return {
20171
20184
  articleCodex: article.typeNo,
20172
- avlFilter: [],
20173
- avrFilter: [],
20174
20185
  basePrice: 0,
20175
20186
  catalogArticle: catalogArticle,
20176
20187
  id: Number(article.typeKey),
20177
20188
  isArticleRelation: false,
20189
+ avlFilter: (_article$avlFilter = article.avlFilter) !== null && _article$avlFilter !== void 0 ? _article$avlFilter : [],
20190
+ avrFilter: (_article$avrFilter = article.avrFilter) !== null && _article$avrFilter !== void 0 ? _article$avrFilter : [],
20191
+ articleSizeY: article.depthBasicShapeNominalValue !== undefined ? Math.floor(((_article$depthBasicSh4 = article.depthBasicShapeNominalValue) !== null && _article$depthBasicSh4 !== void 0 ? _article$depthBasicSh4 : 0) / 10) : undefined,
20192
+ articleSizeYFrom: article.depthBasicShapeFrom !== undefined ? Math.floor(((_article$depthBasicSh5 = article.depthBasicShapeFrom) !== null && _article$depthBasicSh5 !== void 0 ? _article$depthBasicSh5 : 0) / 10) : undefined,
20193
+ articleSizeYTo: article.depthBasicShapeTo !== undefined ? Math.floor(((_article$depthBasicSh6 = article.depthBasicShapeTo) !== null && _article$depthBasicSh6 !== void 0 ? _article$depthBasicSh6 : 0) / 10) : undefined,
20194
+ articleSizeX: article.widthBasicShapeNominalValue !== undefined ? Math.floor(((_article$widthBasicSh4 = article.widthBasicShapeNominalValue) !== null && _article$widthBasicSh4 !== void 0 ? _article$widthBasicSh4 : 0) / 10) : undefined,
20195
+ articleSizeXFrom: article.widthBasicShapeFrom !== undefined ? Math.floor(((_article$widthBasicSh5 = article.widthBasicShapeFrom) !== null && _article$widthBasicSh5 !== void 0 ? _article$widthBasicSh5 : 0) / 10) : undefined,
20196
+ articleSizeXTo: article.widthBasicShapeTo !== undefined ? Math.floor(((_article$widthBasicSh6 = article.widthBasicShapeTo) !== null && _article$widthBasicSh6 !== void 0 ? _article$widthBasicSh6 : 0) / 10) : undefined,
20197
+ articleSizeZ: article.heightBasicShapeNominalValue !== undefined ? Math.floor(((_article$heightBasicS4 = article.heightBasicShapeNominalValue) !== null && _article$heightBasicS4 !== void 0 ? _article$heightBasicS4 : 0) / 10) : undefined,
20198
+ articleSizeZFrom: article.heightBasicShapeFrom !== undefined ? Math.floor(((_article$heightBasicS5 = article.heightBasicShapeFrom) !== null && _article$heightBasicS5 !== void 0 ? _article$heightBasicS5 : 0) / 10) : undefined,
20199
+ articleSizeZTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS6 = article.heightBasicShapeTo) !== null && _article$heightBasicS6 !== void 0 ? _article$heightBasicS6 : 0) / 10) : undefined,
20178
20200
  //TODO fill all these infos when implemented in backend
20179
20201
  topAVC: 0,
20180
20202
  topAVN: 0,
@@ -20185,15 +20207,6 @@ function getCatalogPlanner(article, catalogArticle) {
20185
20207
  topHasAVR: false,
20186
20208
  topSvg: (_catalogArticle$svgs = catalogArticle.svgs) === null || _catalogArticle$svgs === void 0 || (_catalogArticle$svgs = _catalogArticle$svgs[0]) === null || _catalogArticle$svgs === void 0 ? void 0 : _catalogArticle$svgs.url,
20187
20209
  topLayer: 30,
20188
- articleSizeY: article.depthBasicShapeNominalValue !== undefined ? Math.floor(((_article$depthBasicSh4 = article.depthBasicShapeNominalValue) !== null && _article$depthBasicSh4 !== void 0 ? _article$depthBasicSh4 : 0) / 10) : undefined,
20189
- articleSizeYFrom: article.depthBasicShapeFrom !== undefined ? Math.floor(((_article$depthBasicSh5 = article.depthBasicShapeFrom) !== null && _article$depthBasicSh5 !== void 0 ? _article$depthBasicSh5 : 0) / 10) : undefined,
20190
- articleSizeYTo: article.depthBasicShapeTo !== undefined ? Math.floor(((_article$depthBasicSh6 = article.depthBasicShapeTo) !== null && _article$depthBasicSh6 !== void 0 ? _article$depthBasicSh6 : 0) / 10) : undefined,
20191
- articleSizeX: article.widthBasicShapeNominalValue !== undefined ? Math.floor(((_article$widthBasicSh4 = article.widthBasicShapeNominalValue) !== null && _article$widthBasicSh4 !== void 0 ? _article$widthBasicSh4 : 0) / 10) : undefined,
20192
- articleSizeXFrom: article.widthBasicShapeFrom !== undefined ? Math.floor(((_article$widthBasicSh5 = article.widthBasicShapeFrom) !== null && _article$widthBasicSh5 !== void 0 ? _article$widthBasicSh5 : 0) / 10) : undefined,
20193
- articleSizeXTo: article.widthBasicShapeTo !== undefined ? Math.floor(((_article$widthBasicSh6 = article.widthBasicShapeTo) !== null && _article$widthBasicSh6 !== void 0 ? _article$widthBasicSh6 : 0) / 10) : undefined,
20194
- articleSizeZ: article.heightBasicShapeNominalValue !== undefined ? Math.floor(((_article$heightBasicS4 = article.heightBasicShapeNominalValue) !== null && _article$heightBasicS4 !== void 0 ? _article$heightBasicS4 : 0) / 10) : undefined,
20195
- articleSizeZFrom: article.heightBasicShapeFrom !== undefined ? Math.floor(((_article$heightBasicS5 = article.heightBasicShapeFrom) !== null && _article$heightBasicS5 !== void 0 ? _article$heightBasicS5 : 0) / 10) : undefined,
20196
- articleSizeZTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS6 = article.heightBasicShapeTo) !== null && _article$heightBasicS6 !== void 0 ? _article$heightBasicS6 : 0) / 10) : undefined,
20197
20210
  filterType: 'DockNone'
20198
20211
  };
20199
20212
  }
@@ -20222,7 +20235,16 @@ function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps
20222
20235
  price: catPlanArticle.basePrice,
20223
20236
  svgSrc: (_catPlanArticle$svgs = catPlanArticle.svgs) === null || _catPlanArticle$svgs === void 0 || (_catPlanArticle$svgs = _catPlanArticle$svgs[0]) === null || _catPlanArticle$svgs === void 0 ? void 0 : _catPlanArticle$svgs.url,
20224
20237
  title: catPlanArticle.name,
20225
- typeNr: catPlanArticle.typeNr
20238
+ typeNr: catPlanArticle.typeNr,
20239
+ width: catPlanArticle.articleSizeX,
20240
+ height: catPlanArticle.articleSizeZ,
20241
+ depth: catPlanArticle.articleSizeY,
20242
+ widthFrom: catPlanArticle.articleSizeXFrom,
20243
+ heightFrom: catPlanArticle.articleSizeZFrom,
20244
+ depthFrom: catPlanArticle.articleSizeYFrom,
20245
+ widthTo: catPlanArticle.articleSizeXTo,
20246
+ heightTo: catPlanArticle.articleSizeZTo,
20247
+ depthTo: catPlanArticle.articleSizeYTo
20226
20248
  });
20227
20249
  }
20228
20250
 
@@ -20364,6 +20386,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
20364
20386
  // jegliche artikle Realtions welche von den Daten kommen werden ignoriert
20365
20387
  repairVariantValues: undefined,
20366
20388
  // Mapping von OPT und OPV um beim öffnen von BK's die variantValues zu updaten
20389
+ filterForCheckoutButtons: [],
20390
+ // Array von Keys welche im Checkout Buttons gefiltert werden
20367
20391
  showPricePreviewOnlyOnOptions: [],
20368
20392
  hidePricePreviewOnlyOnOptions: [],
20369
20393
  forceConfigSingle: false,
@@ -21165,6 +21189,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
21165
21189
  get: function get() {
21166
21190
  return this.catalogProps.headerDimensionIds;
21167
21191
  }
21192
+ }, {
21193
+ key: "filterForCheckoutButtons",
21194
+ get: function get() {
21195
+ return this.catalogProps.filterForCheckoutButtons;
21196
+ }
21168
21197
  }, {
21169
21198
  key: "discountPercentage",
21170
21199
  get: function get() {
@@ -21538,6 +21567,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
21538
21567
  _this5.catalogProps.repairVariantValues['OPT' + vals[0].replace(':', ':OPV')] = 'OPT' + vals[1].replace(':', ':OPV');
21539
21568
  }
21540
21569
  break;
21570
+ case 'FILTER_FOR_CHECKOUT_BUTTONS':
21571
+ _this5.catalogProps.filterForCheckoutButtons = item.Value.split(';').map(function (t) {
21572
+ return t;
21573
+ });
21574
+ break;
21541
21575
  case 'DO_USE_RULEDESC_FOR_PARTLIST':
21542
21576
  _this5.catalogProps.doUseRuleDescForPartListArticles = '1' == item.Value;
21543
21577
  break;
@@ -22994,7 +23028,7 @@ var DivaEngine = /*#__PURE__*/function () {
22994
23028
  return ops.optionCodex == iKey;
22995
23029
  });
22996
23030
  if (_ops !== null && _ops !== void 0 && _ops.valCodex) {
22997
- var foundItem = _this.article.checkOptionAndOptionValue(_ops.optionCodex, _ops.valCodex);
23031
+ var foundItem = _this.article.checkOptionAndOptionValue(OP, _ops.valCodex);
22998
23032
  if ((foundItem === null || foundItem === void 0 ? void 0 : foundItem.opv) instanceof ArticleOptionValueData) {
22999
23033
  if (_ops.visibleOptionValues.get(foundItem.opv.codex) || _ops.visibleOptionValues.get(foundItem.opv.parentCodex)) {
23000
23034
  myItem = foundItem.opv;
@@ -28699,7 +28733,7 @@ var DivaArticle = /*#__PURE__*/function () {
28699
28733
  break;
28700
28734
  }
28701
28735
  _context.next = 4;
28702
- return Promise.resolve().then(function () { return require('./ShelfPlanner-613aae50.js'); });
28736
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-aa6fa9ae.js'); });
28703
28737
  case 4:
28704
28738
  _yield$import = _context.sent;
28705
28739
  ShelfPlanner = _yield$import["default"];
@@ -33345,7 +33379,7 @@ var DivaSet = /*#__PURE__*/function () {
33345
33379
  break;
33346
33380
  }
33347
33381
  _context5.next = 3;
33348
- return Promise.resolve().then(function () { return require('./DoorPlanner-b5c5993b.js'); });
33382
+ return Promise.resolve().then(function () { return require('./DoorPlanner-52a515db.js'); });
33349
33383
  case 3:
33350
33384
  _yield$import = _context5.sent;
33351
33385
  DoorPlanner = _yield$import["default"];
@@ -36226,7 +36260,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36226
36260
  return _context2.abrupt("return", 1);
36227
36261
  case 3:
36228
36262
  if (!orderline.IsPartlistArticle) {
36229
- variantValues = catalogData.repairVariantValues(orderline.getVariantValues(), orderline.ArticleCodex);
36263
+ variantValues = catalogData.repairVariantValues(orderline.getVariantValues(set.CatalogData.isIDMFormat), orderline.ArticleCodex);
36230
36264
  toLoadArticles.push({
36231
36265
  catalogCodex: catalogData.catalogCodex,
36232
36266
  articleCodex: orderline.ArticleCodex,
@@ -36768,10 +36802,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
36768
36802
  return _regeneratorRuntime__default["default"].wrap(function _callee7$(_context9) {
36769
36803
  while (1) switch (_context9.prev = _context9.next) {
36770
36804
  case 0:
36771
- set.getArticleByElementId(elementId);
36772
- _context9.next = 3;
36805
+ _context9.next = 2;
36773
36806
  return set.plannerHandler.movePlannerElements(set.getSetId(), elementId, absoluteMoveIndex);
36774
- case 3:
36807
+ case 2:
36775
36808
  case "end":
36776
36809
  return _context9.stop();
36777
36810
  }
@@ -38432,7 +38465,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
38432
38465
  value: (function () {
38433
38466
  var _updateArticlesOptionStatesOfActSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
38434
38467
  var _resultPlannerUpdate;
38435
- var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
38468
+ var elementsToDeleteById, targetArticlesToUpdateOnly, previousValues, articles, article, optState, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
38436
38469
  return _regeneratorRuntime__default["default"].wrap(function _callee28$(_context30) {
38437
38470
  while (1) switch (_context30.prev = _context30.next) {
38438
38471
  case 0:
@@ -38446,50 +38479,66 @@ var DivaSetHandler = /*#__PURE__*/function () {
38446
38479
  } else {
38447
38480
  targetArticlesToUpdateOnly = targetArticlesWithNewValues;
38448
38481
  }
38449
- _context30.next = 5;
38482
+ previousValues = {};
38483
+ articles = set.getDivaArticles();
38484
+ if (articles && targetArticlesWithNewValues && targetArticlesWithNewValues.length > 0 && myValues) {
38485
+ article = articles[targetArticlesWithNewValues[0]];
38486
+ optState = article === null || article === void 0 ? void 0 : article.getArticleJsonVariantValues();
38487
+ Object.keys(myValues).forEach(function (key) {
38488
+ if (optState && optState[key]) previousValues[key] = optState[key];
38489
+ });
38490
+ }
38491
+ _context30.next = 8;
38450
38492
  return articleHandlerInstance.updateArticlesOptionStates(myValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
38451
- case 5:
38493
+ case 8:
38452
38494
  retValues = _context30.sent;
38453
38495
  targetArticlesWithNewValues = retValues.targetArticlesToUpdate;
38454
38496
  if (!(retValues.partlistArticlesToLoad.length > 0)) {
38455
- _context30.next = 16;
38497
+ _context30.next = 19;
38456
38498
  break;
38457
38499
  }
38458
38500
  diff = targetArticlesToUpdateOnly.length - Object.keys(set.getDivaArticles()).length;
38459
38501
  if (!(diff == 0 || partlistDiff == diff)) {
38460
- _context30.next = 14;
38502
+ _context30.next = 17;
38461
38503
  break;
38462
38504
  }
38463
- _context30.next = 12;
38505
+ _context30.next = 15;
38464
38506
  return articleHandlerInstance.correctPartlistArticlesByGlobalRules(set, retValues.partlistArticlesToLoad, set.CatalogData.bundleRules, {
38465
38507
  doChange: false
38466
38508
  });
38467
- case 12:
38468
- _context30.next = 16;
38509
+ case 15:
38510
+ _context30.next = 19;
38469
38511
  break;
38470
- case 14:
38471
- _context30.next = 16;
38512
+ case 17:
38513
+ _context30.next = 19;
38472
38514
  return this.updateArticlesOptionStatesOfActSet(set, {}, targetArticlesWithNewValues, ignorePlanner, from, diff);
38473
- case 16:
38515
+ case 19:
38474
38516
  if (!(from !== 'initializingPartlist')) {
38475
- _context30.next = 19;
38517
+ _context30.next = 22;
38476
38518
  break;
38477
38519
  }
38478
- _context30.next = 19;
38520
+ _context30.next = 22;
38479
38521
  return this.updateEdoArticles(set, retValues.newEDOExtraArticles);
38480
- case 19:
38522
+ case 22:
38481
38523
  if (set.CatalogData.hasAlternateRenderings) set.CatalogData.updateAlternativeRenderings(set.getDivaArticles());
38482
38524
 
38483
38525
  //Update Planner - check if planner data changed
38484
38526
  if (!(!ignorePlanner && from != 'calcVariant')) {
38485
- _context30.next = 58;
38527
+ _context30.next = 64;
38486
38528
  break;
38487
38529
  }
38488
38530
  targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
38489
- _context30.next = 24;
38531
+ _context30.next = 27;
38490
38532
  return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
38491
- case 24:
38533
+ case 27:
38492
38534
  resultPlannerUpdate = _context30.sent;
38535
+ if (!resultPlannerUpdate.failed) {
38536
+ _context30.next = 31;
38537
+ break;
38538
+ }
38539
+ _context30.next = 31;
38540
+ return articleHandlerInstance.updateArticlesOptionStates(previousValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
38541
+ case 31:
38493
38542
  elementsToDeleteById = resultPlannerUpdate.elemIdsToDelete;
38494
38543
  for (i = 0; i < resultPlannerUpdate.elemIdsToDelete.length; i++) {
38495
38544
  articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
@@ -38499,55 +38548,55 @@ var DivaSetHandler = /*#__PURE__*/function () {
38499
38548
  }
38500
38549
  }
38501
38550
  if (!resultPlannerUpdate.doDeleteBackGrid) {
38502
- _context30.next = 34;
38551
+ _context30.next = 40;
38503
38552
  break;
38504
38553
  }
38505
- _context30.next = 30;
38554
+ _context30.next = 36;
38506
38555
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[0], false, resultPlannerUpdate.deletionType);
38507
- case 30:
38556
+ case 36:
38508
38557
  result = _context30.sent;
38509
38558
  //Others are deleted recursive
38510
38559
  if (result.selectElementId) {
38511
38560
  resultPlannerUpdate.elementIdsToUpdateSelection = [result.selectElementId];
38512
38561
  }
38513
- _context30.next = 41;
38562
+ _context30.next = 47;
38514
38563
  break;
38515
- case 34:
38564
+ case 40:
38516
38565
  i = 0;
38517
- case 35:
38566
+ case 41:
38518
38567
  if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
38519
- _context30.next = 41;
38568
+ _context30.next = 47;
38520
38569
  break;
38521
38570
  }
38522
- _context30.next = 38;
38571
+ _context30.next = 44;
38523
38572
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
38524
- case 38:
38573
+ case 44:
38525
38574
  i++;
38526
- _context30.next = 35;
38575
+ _context30.next = 41;
38527
38576
  break;
38528
- case 41:
38577
+ case 47:
38529
38578
  if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
38530
- _context30.next = 57;
38579
+ _context30.next = 63;
38531
38580
  break;
38532
38581
  }
38533
38582
  //Todo copy these elements
38534
38583
  articleCopyRelation = new Map();
38535
38584
  i = 0;
38536
- case 44:
38585
+ case 50:
38537
38586
  if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
38538
- _context30.next = 52;
38587
+ _context30.next = 58;
38539
38588
  break;
38540
38589
  }
38541
- _context30.next = 47;
38590
+ _context30.next = 53;
38542
38591
  return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
38543
- case 47:
38592
+ case 53:
38544
38593
  newArticle = _context30.sent;
38545
38594
  articleCopyRelation.set(resultPlannerUpdate.elementIdToCopy[i], newArticle.basketId);
38546
- case 49:
38595
+ case 55:
38547
38596
  i++;
38548
- _context30.next = 44;
38597
+ _context30.next = 50;
38549
38598
  break;
38550
- case 52:
38599
+ case 58:
38551
38600
  rpu = resultPlannerUpdate;
38552
38601
  copyIndex = {
38553
38602
  x: rpu.copyDPType == 'AVL' ? -1 : rpu.copyDPType == 'AVR' ? 1 : 0,
@@ -38555,25 +38604,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
38555
38604
  z: rpu.copyType == 'BoxPlanner_backside' ? -1 : 0
38556
38605
  };
38557
38606
  if (!(resultPlannerUpdate.copyType == 'BoxPlanner_backside')) {
38558
- _context30.next = 57;
38607
+ _context30.next = 63;
38559
38608
  break;
38560
38609
  }
38561
- _context30.next = 57;
38610
+ _context30.next = 63;
38562
38611
  return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
38563
38612
  copyIndex: copyIndex,
38564
38613
  copyType: resultPlannerUpdate.copyType,
38565
38614
  changedOPT: resultPlannerUpdate.changedOPT,
38566
38615
  targetElements: resultPlannerUpdate.targetElements
38567
38616
  });
38568
- case 57:
38617
+ case 63:
38569
38618
  this.updatePosNrOfAccessoiresOfTargetArticles(set, targetArticlesWithNewValues);
38570
- case 58:
38619
+ case 64:
38571
38620
  return _context30.abrupt("return", {
38572
38621
  articleCountChanged: elementsToDeleteById.length > 0,
38573
38622
  elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
38574
38623
  setId: set.getSetId()
38575
38624
  });
38576
- case 59:
38625
+ case 65:
38577
38626
  case "end":
38578
38627
  return _context30.stop();
38579
38628
  }
@@ -39103,7 +39152,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
39103
39152
  BasketModelDesc: catalogData.longDescription,
39104
39153
  BasketModelDesc_locales: catalogData.longDescription_locales,
39105
39154
  CatalogCodex: catalogData.catalogCodex,
39106
- SerieId: catalogData.isIDMFormat ? catalogData.catalogCodex : undefined,
39155
+ SerieId: catalogData.isIDMFormat ? catalogData.serieId : undefined,
39107
39156
  CatalogName: catalogData.origCatalogName,
39108
39157
  CatalogName_locales: catalogData.name_locales,
39109
39158
  CatalogOfflineVersion: catalogData.offlineVersion,
@@ -40518,7 +40567,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40518
40567
  break;
40519
40568
  case 3:
40520
40569
  _context12.next = 5;
40521
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-c15ee67a.js'); });
40570
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-af5d982f.js'); });
40522
40571
  case 5:
40523
40572
  _yield$import = _context12.sent;
40524
40573
  PfisterWWSHandler = _yield$import["default"];
@@ -40526,7 +40575,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40526
40575
  return _context12.abrupt("break", 27);
40527
40576
  case 9:
40528
40577
  _context12.next = 11;
40529
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-69df31a9.js'); });
40578
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-7692cac0.js'); });
40530
40579
  case 11:
40531
40580
  _yield$import2 = _context12.sent;
40532
40581
  LiviqueWWSHandler = _yield$import2["default"];
@@ -40534,7 +40583,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40534
40583
  return _context12.abrupt("break", 27);
40535
40584
  case 15:
40536
40585
  _context12.next = 17;
40537
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-f2a7887a.js'); });
40586
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-05ef0a50.js'); });
40538
40587
  case 17:
40539
40588
  _yield$import3 = _context12.sent;
40540
40589
  SeriousWWSHandler = _yield$import3["default"];
@@ -40542,7 +40591,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40542
40591
  return _context12.abrupt("break", 27);
40543
40592
  case 21:
40544
40593
  _context12.next = 23;
40545
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-71564218.js'); });
40594
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-0a959dd8.js'); });
40546
40595
  case 23:
40547
40596
  _yield$import4 = _context12.sent;
40548
40597
  StandardWWSHandler = _yield$import4["default"];
@@ -41966,7 +42015,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
41966
42015
  while (1) switch (_context3.prev = _context3.next) {
41967
42016
  case 0:
41968
42017
  _context3.next = 2;
41969
- return Promise.resolve().then(function () { return require('./Host3DSignalR-6bbb3036.js'); });
42018
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-c5fa8d61.js'); });
41970
42019
  case 2:
41971
42020
  _yield$import = _context3.sent;
41972
42021
  Host3DSignalR = _yield$import["default"];
@@ -43492,7 +43541,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43492
43541
  key: "updatePlanner",
43493
43542
  value: (function () {
43494
43543
  var _updatePlanner = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(setId, changedOPT, targetElementIds) {
43495
- var result, _this$plannerHandlerF, _this$plannerHandlerF2;
43544
+ var _this$plannerHandlerF, _this$plannerHandlerF2;
43545
+ var result;
43496
43546
  return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
43497
43547
  while (1) switch (_context2.prev = _context2.next) {
43498
43548
  case 0:
@@ -43502,7 +43552,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43502
43552
  }
43503
43553
  return _context2.abrupt("return", {
43504
43554
  elemIdsToDelete: [],
43505
- doDeleteBackGrid: false
43555
+ doDeleteBackGrid: false,
43556
+ failed: false
43506
43557
  });
43507
43558
  case 2:
43508
43559
  //Nothing changes, so do nothing
@@ -43511,9 +43562,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43511
43562
  return this.plannerList.get(setId).updatePlanner(changedOPT, targetElementIds);
43512
43563
  case 5:
43513
43564
  result = _context2.sent;
43514
- if (result.viewMessageCodex && result.viewMessageCodex != '') {
43515
- (_this$plannerHandlerF = (_this$plannerHandlerF2 = this.plannerHandlerFunctions).updatePlannerMsgContainer) === null || _this$plannerHandlerF === void 0 || _this$plannerHandlerF.call(_this$plannerHandlerF2, 'UPDATEPLANNER_INFO', true, 'INFO', result.viewMessageCodex, true, 5000);
43516
- }
43565
+ if (result.viewMessageCodex && result.viewMessageCodex != '') (_this$plannerHandlerF = (_this$plannerHandlerF2 = this.plannerHandlerFunctions).updatePlannerMsgContainer) === null || _this$plannerHandlerF === void 0 || _this$plannerHandlerF.call(_this$plannerHandlerF2, 'UPDATEPLANNER_INFO', true, 'INFO', result.viewMessageCodex, true, 5000);
43517
43566
  this.setPlannerHandler.updateSetPosNr(this.plannerList);
43518
43567
  DivaUtils__default["default"].endSpanOfApm('DivaPlannerHandler updatePlanner');
43519
43568
  return _context2.abrupt("return", result);
@@ -43624,7 +43673,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43624
43673
  break;
43625
43674
  case 8:
43626
43675
  _context4.next = 10;
43627
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-816f7344.js'); });
43676
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-be62d50f.js'); });
43628
43677
  case 10:
43629
43678
  _yield$import = _context4.sent;
43630
43679
  DivaStandardPlanner = _yield$import["default"];
@@ -43635,7 +43684,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43635
43684
  return _context4.abrupt("break", 21);
43636
43685
  case 15:
43637
43686
  _context4.next = 17;
43638
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-1b90896a.js'); });
43687
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-1b528aea.js'); });
43639
43688
  case 17:
43640
43689
  _yield$import2 = _context4.sent;
43641
43690
  DivaBoxPlanner = _yield$import2["default"];
@@ -45086,7 +45135,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45086
45135
  retVal = _context5.sent;
45087
45136
  (_this$actions10 = _this.actions) === null || _this$actions10 === void 0 || (_this$actions10$toggl = _this$actions10.toggleLoading) === null || _this$actions10$toggl === void 0 || _this$actions10$toggl.call(_this$actions10, 'LoadingArticle', false, false);
45088
45137
  if (retVal !== false) {
45089
- _this.loadShelfPlannerItems(paletteId, configStepKey, 'add accessoire');
45138
+ _this.loadShelfPlannerItems(paletteId, configStepKey, 'add_accessoire');
45090
45139
  _this.updateConfigStructure();
45091
45140
  _this.updatePriceInView();
45092
45141
  _this.updateViewButtonsDependigOnConfigStructure();
@@ -45480,6 +45529,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45480
45529
  this.api = new DivaApiHandler(this.plannerConfig, this.handler);
45481
45530
  this.api.setI18n(this.i18n);
45482
45531
  this.api.setActions(this.actions);
45532
+ this.api.setState(this.state);
45483
45533
  this.ReturnTo = this.plannerConfig.returnTo;
45484
45534
  LOG$1.startTransaction({
45485
45535
  event: 'onInitializeConfigurator',
@@ -45488,26 +45538,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45488
45538
  warningTime: 2000,
45489
45539
  errorTime: 4000
45490
45540
  });
45491
- _context14.next = 7;
45541
+ _context14.next = 8;
45492
45542
  return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
45493
- case 7:
45543
+ case 8:
45494
45544
  this.plannerHandler = new DivaPlannerHandler(false);
45495
45545
  viewReadyPromise = this.initViewApiDependencies();
45496
- _context14.next = 11;
45546
+ _context14.next = 12;
45497
45547
  return this.divaBasketHandler.initializeBasket(this.api);
45498
- case 11:
45548
+ case 12:
45499
45549
  loadSuccessful = _context14.sent;
45500
45550
  if (this.plannerConfig.configuratorSessionId === undefined && (!this.divaBasketHandler.hasConfiguratorSessionIdGetter || DivaUtils__default["default"].businessMetrics.getConfiguratorSessionId() === undefined)) {
45501
45551
  DivaUtils__default["default"].businessMetrics.setConfiguratorSessionId();
45502
45552
  }
45503
45553
  if (!loadSuccessful) {
45504
- _context14.next = 30;
45554
+ _context14.next = 31;
45505
45555
  break;
45506
45556
  }
45507
- _context14.prev = 14;
45508
- _context14.next = 17;
45557
+ _context14.prev = 15;
45558
+ _context14.next = 18;
45509
45559
  return this.initializeSets(loadSuccessful, viewReadyPromise);
45510
- case 17:
45560
+ case 18:
45511
45561
  ret = _context14.sent;
45512
45562
  set = this.actSet();
45513
45563
  if (ret && set && set.CatalogData.archived) {
@@ -45518,25 +45568,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45518
45568
  });
45519
45569
  }
45520
45570
  return _context14.abrupt("return", ret);
45521
- case 23:
45522
- _context14.prev = 23;
45523
- _context14.t0 = _context14["catch"](14);
45571
+ case 24:
45572
+ _context14.prev = 24;
45573
+ _context14.t0 = _context14["catch"](15);
45524
45574
  LOG$1.error(_context14.t0);
45525
45575
  this.onInitializationError(_context14.t0);
45526
45576
  return _context14.abrupt("return", false);
45527
- case 28:
45528
- _context14.next = 33;
45577
+ case 29:
45578
+ _context14.next = 34;
45529
45579
  break;
45530
- case 30:
45580
+ case 31:
45531
45581
  this.onInitializationError();
45532
45582
  //fehler beim laden vom basket..
45533
45583
  LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
45534
45584
  return _context14.abrupt("return", false);
45535
- case 33:
45585
+ case 34:
45536
45586
  case "end":
45537
45587
  return _context14.stop();
45538
45588
  }
45539
- }, _callee14, this, [[14, 23]]);
45589
+ }, _callee14, this, [[15, 24]]);
45540
45590
  }));
45541
45591
  function initialize() {
45542
45592
  return _initialize.apply(this, arguments);
@@ -46096,7 +46146,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46096
46146
  if (!curPlannerViewMode) return;
46097
46147
  LOG$1.debug('updatePlannerView in mode: ' + curPlannerViewMode + '; called from ' + callingFrom);
46098
46148
  //delete me if you see this
46099
- LOG$1.debug('lvl 1: ', curPlannerViewMode);
46149
+
46100
46150
  switch (curPlannerViewMode) {
46101
46151
  case '3DCOMB':
46102
46152
  setHandlerInstance.update3DPlannerView(true, !hybridInfo || hybridInfo && hybridInfo.focus.adjustZoomInUnity, set, this.getPlannerRenderingSize(), this.getPlanner3DGridEnabled(), 'STREAM', (_this$getDoShow3DDime2 = this.getDoShow3DDimensionLines) === null || _this$getDoShow3DDime2 === void 0 ? void 0 : _this$getDoShow3DDime2.call(this), alternateRenderInfo, hybridInfo ? {
@@ -46214,11 +46264,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46214
46264
  }
46215
46265
  return deletePlannerElement;
46216
46266
  }()
46217
- /**
46267
+ /**
46218
46268
  * This function moves an element from its origin to the desired index
46219
46269
  * current implementation is only for the new boxplanner
46220
- *
46221
- */
46270
+ *
46271
+ */
46222
46272
  }, {
46223
46273
  key: "movePlannerElement",
46224
46274
  value: (function () {
@@ -46232,13 +46282,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46232
46282
  _context21.next = 3;
46233
46283
  return setHandlerInstance.movePlannerElement(set, elementId, absoluteIndex);
46234
46284
  case 3:
46235
- _context21.sent;
46236
46285
  this.updateConfigStructure();
46237
46286
  (_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
46238
46287
  this.updatePlannerView('MOVE_PLANNER_ELEMENT');
46239
46288
  this.updatePriceInView();
46240
46289
  this.updateViewButtonsDependigOnConfigStructure();
46241
- case 9:
46290
+ case 8:
46242
46291
  case "end":
46243
46292
  return _context21.stop();
46244
46293
  }
@@ -46353,7 +46402,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46353
46402
  case 10:
46354
46403
  freeShelfGrids = _context23.t0;
46355
46404
  plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
46356
- LOG$1.debug('TOULA', 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
46357
46405
  LOG$1.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
46358
46406
  (_this$updateFreePlace = this.updateFreePlacesOnGrids) === null || _this$updateFreePlace === void 0 || _this$updateFreePlace.call(this, {
46359
46407
  freeShelfGrids: freeShelfGrids,
@@ -46363,7 +46411,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46363
46411
  freeShelfGrids: freeShelfGrids,
46364
46412
  plannedShelfGrids: plannedShelfGrids
46365
46413
  });
46366
- case 16:
46414
+ case 15:
46367
46415
  case "end":
46368
46416
  return _context23.stop();
46369
46417
  }
@@ -46380,7 +46428,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46380
46428
  var set = this.actSet();
46381
46429
  if (!set) return undefined;
46382
46430
  var freeShelfGrids = setHandlerInstance.getFreeToMoveShelfGrids(set, gridName, basketId);
46383
- LOG$1.debug('TOULA', 'freeShelfGridsMOVING', freeShelfGrids);
46384
46431
  return freeShelfGrids;
46385
46432
  }
46386
46433
  }, {
@@ -47142,21 +47189,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47142
47189
  var _this$actSet28;
47143
47190
  return this.api.getHidePlanner() || !!((_this$actSet28 = this.actSet()) !== null && _this$actSet28 !== void 0 && _this$actSet28.CatalogData.useBoxPlanner);
47144
47191
  }
47192
+ }, {
47193
+ key: "getFilterForCheckoutButtons",
47194
+ value: function getFilterForCheckoutButtons() {
47195
+ var _this$actSet$CatalogD, _this$actSet29;
47196
+ return (_this$actSet$CatalogD = (_this$actSet29 = this.actSet()) === null || _this$actSet29 === void 0 ? void 0 : _this$actSet29.CatalogData.filterForCheckoutButtons) !== null && _this$actSet$CatalogD !== void 0 ? _this$actSet$CatalogD : [];
47197
+ }
47145
47198
  }, {
47146
47199
  key: "getAllowRTV",
47147
47200
  value: function getAllowRTV() {
47148
- var _this$state9, _this$actSet29, _this$state10, _this$actSet30;
47201
+ var _this$state9, _this$actSet30, _this$state10, _this$actSet31;
47149
47202
  if (this.getEnableUnityRtvKombi()) return false;
47150
47203
  if ((_this$state9 = this.state) !== null && _this$state9 !== void 0 && _this$state9.organization.settings.forceRTV) return true;
47151
- if ((_this$actSet29 = this.actSet()) !== null && _this$actSet29 !== void 0 && _this$actSet29.CatalogData.divaForceRTV) return true;
47152
- if ((_this$state10 = this.state) !== null && _this$state10 !== void 0 && _this$state10.organization.settings.enableRTV && (_this$actSet30 = this.actSet()) !== null && _this$actSet30 !== void 0 && _this$actSet30.CatalogData.divaArReady) return true;
47204
+ if ((_this$actSet30 = this.actSet()) !== null && _this$actSet30 !== void 0 && _this$actSet30.CatalogData.divaForceRTV) return true;
47205
+ if ((_this$state10 = this.state) !== null && _this$state10 !== void 0 && _this$state10.organization.settings.enableRTV && (_this$actSet31 = this.actSet()) !== null && _this$actSet31 !== void 0 && _this$actSet31.CatalogData.divaArReady) return true;
47153
47206
  return false;
47154
47207
  }
47155
47208
  }, {
47156
47209
  key: "getForceRTV",
47157
47210
  value: function getForceRTV() {
47158
- var _this$actSet31;
47159
- return !!((_this$actSet31 = this.actSet()) !== null && _this$actSet31 !== void 0 && _this$actSet31.CatalogData.divaForceRTV);
47211
+ var _this$actSet32;
47212
+ return !!((_this$actSet32 = this.actSet()) !== null && _this$actSet32 !== void 0 && _this$actSet32.CatalogData.divaForceRTV);
47160
47213
  }
47161
47214
  }, {
47162
47215
  key: "getPricePreview",
@@ -47166,29 +47219,29 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47166
47219
  }, {
47167
47220
  key: "hide2DPlanner",
47168
47221
  value: function hide2DPlanner() {
47169
- var _this$actSet32;
47170
- return (_this$actSet32 = this.actSet()) === null || _this$actSet32 === void 0 ? void 0 : _this$actSet32.CatalogData.hide2DPlanner;
47222
+ var _this$actSet33;
47223
+ return (_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.CatalogData.hide2DPlanner;
47171
47224
  }
47172
47225
  }, {
47173
47226
  key: "getAllowQRCodeAR",
47174
47227
  value: function getAllowQRCodeAR() {
47175
- var _this$actSet33;
47176
- if (this.api.enableAR && (_this$actSet33 = this.actSet()) !== null && _this$actSet33 !== void 0 && _this$actSet33.CatalogData.divaArReady) return true;
47228
+ var _this$actSet34;
47229
+ if (this.api.enableAR && (_this$actSet34 = this.actSet()) !== null && _this$actSet34 !== void 0 && _this$actSet34.CatalogData.divaArReady) return true;
47177
47230
  return false;
47178
47231
  }
47179
47232
  }, {
47180
47233
  key: "getEnableUnityRtvKombi",
47181
47234
  value: function getEnableUnityRtvKombi() {
47182
- var _this$actSet34, _this$actSet35;
47235
+ var _this$actSet35, _this$actSet36;
47183
47236
  // if force rtv disable unity kombi - biohort
47184
- if ((_this$actSet34 = this.actSet()) !== null && _this$actSet34 !== void 0 && _this$actSet34.CatalogData.divaForceRTV) return false;
47185
- return ((_this$actSet35 = this.actSet()) === null || _this$actSet35 === void 0 ? void 0 : _this$actSet35.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
47237
+ if ((_this$actSet35 = this.actSet()) !== null && _this$actSet35 !== void 0 && _this$actSet35.CatalogData.divaForceRTV) return false;
47238
+ return ((_this$actSet36 = this.actSet()) === null || _this$actSet36 === void 0 ? void 0 : _this$actSet36.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
47186
47239
  }
47187
47240
  }, {
47188
47241
  key: "getShelfPlannerRTV",
47189
47242
  value: function getShelfPlannerRTV() {
47190
- var _this$actSet36;
47191
- return (_this$actSet36 = this.actSet()) === null || _this$actSet36 === void 0 ? void 0 : _this$actSet36.CatalogData.useShelfPlannerRTV;
47243
+ var _this$actSet37;
47244
+ return (_this$actSet37 = this.actSet()) === null || _this$actSet37 === void 0 ? void 0 : _this$actSet37.CatalogData.useShelfPlannerRTV;
47192
47245
  }
47193
47246
  }, {
47194
47247
  key: "getBasketData",
@@ -47229,8 +47282,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47229
47282
  }, {
47230
47283
  key: "getCatalogData",
47231
47284
  value: function getCatalogData() {
47232
- var _this$actSet37;
47233
- return (_this$actSet37 = this.actSet()) === null || _this$actSet37 === void 0 ? void 0 : _this$actSet37.CatalogData;
47285
+ var _this$actSet38;
47286
+ return (_this$actSet38 = this.actSet()) === null || _this$actSet38 === void 0 ? void 0 : _this$actSet38.CatalogData;
47234
47287
  }
47235
47288
  }, {
47236
47289
  key: "ReturnTo",
@@ -47428,11 +47481,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47428
47481
  key: "getCurrentBasket",
47429
47482
  value: function () {
47430
47483
  var _getCurrentBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee35(event, force, returnTo, dontGoToSummary, hideLoading) {
47431
- var _this$actSet38, _this$divaBasketHandl5, _this$onClickAddToBas3;
47484
+ var _this$actSet39, _this$divaBasketHandl5, _this$onClickAddToBas3;
47432
47485
  return _regeneratorRuntime__default["default"].wrap(function _callee35$(_context35) {
47433
47486
  while (1) switch (_context35.prev = _context35.next) {
47434
47487
  case 0:
47435
- if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet38 = this.actSet()) === null || _this$actSet38 === void 0 ? void 0 : _this$actSet38.setHash) === ((_this$divaBasketHandl5 = this.divaBasketHandler.actBasket) === null || _this$divaBasketHandl5 === void 0 || (_this$divaBasketHandl5 = _this$divaBasketHandl5.OrderSets) === null || _this$divaBasketHandl5 === void 0 ? void 0 : _this$divaBasketHandl5[0].SetHash) && !(returnTo !== null && returnTo !== void 0 && returnTo.includes('OPEN')))) {
47488
+ if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet39 = this.actSet()) === null || _this$actSet39 === void 0 ? void 0 : _this$actSet39.setHash) === ((_this$divaBasketHandl5 = this.divaBasketHandler.actBasket) === null || _this$divaBasketHandl5 === void 0 || (_this$divaBasketHandl5 = _this$divaBasketHandl5.OrderSets) === null || _this$divaBasketHandl5 === void 0 ? void 0 : _this$divaBasketHandl5[0].SetHash) && !(returnTo !== null && returnTo !== void 0 && returnTo.includes('OPEN')))) {
47436
47489
  _context35.next = 2;
47437
47490
  break;
47438
47491
  }
@@ -47772,9 +47825,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47772
47825
  }, {
47773
47826
  key: "getFavoriteAiRoomKeysFromSet",
47774
47827
  value: function getFavoriteAiRoomKeysFromSet() {
47775
- var _this$actSet39;
47828
+ var _this$actSet40;
47776
47829
  var orderSets = this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr);
47777
- var actSetId = (_this$actSet39 = this.actSet()) === null || _this$actSet39 === void 0 ? void 0 : _this$actSet39.getSetId();
47830
+ var actSetId = (_this$actSet40 = this.actSet()) === null || _this$actSet40 === void 0 ? void 0 : _this$actSet40.getSetId();
47778
47831
  var orderSet = orderSets.find(function (os) {
47779
47832
  return os.SetID === actSetId;
47780
47833
  });
@@ -67555,22 +67608,6 @@ var getOrigProductId = /*#__PURE__*/function () {
67555
67608
  };
67556
67609
  }();
67557
67610
 
67558
- // Full usage limits (for authenticated users)
67559
-
67560
- // Simplified usage limits (for anonymous users)
67561
-
67562
- // Union type to support both formats
67563
-
67564
- // Type guard to check if usage limits are simplified (anonymous user format)
67565
- function isSimplifiedUsageLimits(limits) {
67566
- return 'budget' in limits;
67567
- }
67568
-
67569
- // Type guard to check if usage limits are full (authenticated user format)
67570
- function isFullUsageLimits(limits) {
67571
- return 'daily' in limits;
67572
- }
67573
-
67574
67611
  exports.BoundingBox = BoundingBox;
67575
67612
  exports.CatalogPlannerArticleData = CatalogPlannerArticleData;
67576
67613
  exports.Cell = Cell;
@@ -67590,8 +67627,6 @@ exports.Vector4 = Vector4;
67590
67627
  exports.articleHandlerInstance = articleHandlerInstance;
67591
67628
  exports.creatRenderOrders = creatRenderOrders;
67592
67629
  exports.getOrigProductId = getOrigProductId;
67593
- exports.isFullUsageLimits = isFullUsageLimits;
67594
- exports.isSimplifiedUsageLimits = isSimplifiedUsageLimits;
67595
67630
  exports.loadAndRepairBasket = loadAndRepairBasket;
67596
67631
  exports.setHandlerInstance = setHandlerInstance;
67597
67632
  exports.summaryHandlerInstance = summaryHandlerInstance;