@crystaldesign/web-planner-logic 25.3.0-beta.9 → 25.3.0-rc.0

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 (75) hide show
  1. package/build/cjs/{DivaBoxPlanner-230a7343.js → DivaBoxPlanner-2016c8ea.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-3b70656f.js → DivaStandardPlanner-5c023752.js} +2 -2
  3. package/build/cjs/{DoorPlanner-85f5df3d.js → DoorPlanner-000f0379.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-06a86be8.js → Host3DSignalR-7e8a7a7f.js} +1 -2
  5. package/build/cjs/{LiviqueWWSHandler-8e9cc61c.js → LiviqueWWSHandler-20f43f5c.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-786700cb.js → PfisterWWSHandler-6659fd4b.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-d4305a93.js → PlannerHandler2D-9e43cd7b.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-70977945.js → SeriousBasketHandler-9a3aaf37.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-89d47e5e.js → ShelfPlanner-0835e1da.js} +39 -22
  10. package/build/cjs/{StandardWWSHandler-4e8f472a.js → StandardWWSHandler-8d963edd.js} +1 -1
  11. package/build/cjs/{index-1df7482f.js → index-aca6b737.js} +586 -427
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-ef50f3c1.js → DivaBoxPlanner-4d8f4d5d.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-50298918.js → DivaStandardPlanner-0ab1766b.js} +2 -2
  15. package/build/esm/{DoorPlanner-43de473a.js → DoorPlanner-cfaa621a.js} +1 -1
  16. package/build/esm/{Host3DSignalR-b772e3b5.js → Host3DSignalR-50fbaf0a.js} +1 -2
  17. package/build/esm/{LiviqueWWSHandler-e63f276f.js → LiviqueWWSHandler-5eff1e27.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-7f7996a7.js → PfisterWWSHandler-20707364.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-4e72c491.js → PlannerHandler2D-2d65ffca.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-1a4186bd.js → SeriousBasketHandler-43c91834.js} +1 -1
  21. package/build/esm/{ShelfPlanner-152084c3.js → ShelfPlanner-40de7cd1.js} +39 -22
  22. package/build/esm/{StandardWWSHandler-a5d84eb8.js → StandardWWSHandler-36b31757.js} +1 -1
  23. package/build/esm/{index-474fc67f.js → index-2a686c45.js} +586 -427
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +2 -1
  26. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/Configuration.d.ts +6 -0
  28. package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +1 -0
  30. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +2 -0
  32. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts +1 -7
  34. package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts +0 -1
  36. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +5 -0
  38. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts +4 -0
  40. package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +2 -2
  42. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +5 -0
  44. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +4 -0
  46. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts +1 -1
  48. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts +1 -0
  50. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  51. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
  52. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts +5 -0
  53. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -1
  54. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +1 -0
  55. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  56. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +3 -0
  57. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  58. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
  59. package/build/types/web-planner-logic/src/logic/Planner/Rendering/Host3DSignalR.d.ts.map +1 -1
  60. package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts.map +1 -1
  61. package/build/types/web-planner-logic/src/logic/Planner/Rendering/ViewPointHandler.d.ts +0 -4
  62. package/build/types/web-planner-logic/src/logic/Planner/Rendering/ViewPointHandler.d.ts.map +1 -1
  63. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  64. package/build/types/web-planner-logic/src/logic/repairBasket.d.ts +2 -2
  65. package/build/types/web-planner-logic/src/logic/repairBasket.d.ts.map +1 -1
  66. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +2 -0
  67. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  68. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +5 -0
  69. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
  70. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +5 -0
  71. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
  72. package/build/types/web-planner-logic/src/test/datas/environments/scripts/pfister-prod.d.ts.map +1 -1
  73. package/build/types/web-planner-logic/src/test/datas/environments/scripts/pfister-quality.d.ts.map +1 -1
  74. package/build/types/web-planner-logic/src/test/datas/environments/testing/retail-test.d.ts.map +1 -1
  75. package/package.json +2 -2
@@ -434,9 +434,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
434
434
  barrierConfig: data.barrierConfig,
435
435
  dontLoadAdditionalModelInfos: data.dontLoadAdditionalModelInfos,
436
436
  arViewerUrl: data.arViewerUrl,
437
+ arViewerIframe: data.arViewerIframe,
437
438
  useMask: data.useMask,
438
439
  loadProductBasketParams: data.loadProductBasketParams,
439
- addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey
440
+ addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey,
441
+ dontLoadDimensions: data.dontLoadDimensions
440
442
  };
441
443
  }
442
444
  }, {
@@ -763,17 +765,23 @@ var DivaApiHandler = /*#__PURE__*/function () {
763
765
  var _this$divaWebConfigDa28;
764
766
  return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.showDivaNr;
765
767
  }
768
+ }, {
769
+ key: "dontLoadDimensions",
770
+ value: function dontLoadDimensions() {
771
+ var _this$divaWebConfigDa29;
772
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.dontLoadDimensions;
773
+ }
766
774
  }, {
767
775
  key: "onErrorHandling",
768
776
  value: function onErrorHandling() {
769
- var _this$divaWebConfigDa29;
770
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.onErrorHandling;
777
+ var _this$divaWebConfigDa30;
778
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.onErrorHandling;
771
779
  }
772
780
  }, {
773
781
  key: "diva3DRenderingDefault",
774
782
  value: function diva3DRenderingDefault() {
775
- var _this$divaWebConfigDa30;
776
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.diva3DRenderingDefault;
783
+ var _this$divaWebConfigDa31;
784
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.diva3DRenderingDefault;
777
785
  }
778
786
  }, {
779
787
  key: "getJwt",
@@ -788,8 +796,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
788
796
  }, {
789
797
  key: "getUseMask",
790
798
  value: function getUseMask() {
791
- var _this$divaWebConfigDa31;
792
- return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.useMask;
799
+ var _this$divaWebConfigDa32;
800
+ return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.useMask;
793
801
  }
794
802
  }, {
795
803
  key: "apiUrl",
@@ -1308,14 +1316,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1308
1316
  }, {
1309
1317
  key: "dontLoadAdditionalModelInfos",
1310
1318
  get: function get() {
1311
- var _this$divaWebConfigDa32;
1312
- return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.dontLoadAdditionalModelInfos;
1319
+ var _this$divaWebConfigDa33;
1320
+ return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadAdditionalModelInfos;
1313
1321
  }
1314
1322
  }, {
1315
1323
  key: "dontLoadCatalogEditorLiteMask",
1316
1324
  get: function get() {
1317
- var _this$divaWebConfigDa33;
1318
- return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadCatalogEditorLiteMask;
1325
+ var _this$divaWebConfigDa34;
1326
+ return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.dontLoadCatalogEditorLiteMask;
1319
1327
  }
1320
1328
  }, {
1321
1329
  key: "OrganizationId",
@@ -1676,7 +1684,6 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1676
1684
  parent: parent,
1677
1685
  ocd: jsonOPV.OCD,
1678
1686
  quantity: jsonOPV.Quantity ? Number(jsonOPV.Quantity) : 1,
1679
- isDefault: jsonOPV.IsDefault,
1680
1687
  isPIMFlatValue: jsonOPV.PIMFlatValues === 'True',
1681
1688
  isVariantAttribute: jsonOPV.IsVariantAttribute
1682
1689
  };
@@ -1933,6 +1940,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1933
1940
  get: function get() {
1934
1941
  return this.opv.subArticleTypeNr;
1935
1942
  }
1943
+ }, {
1944
+ key: "addToMeasure",
1945
+ get: function get() {
1946
+ return this.opv.catalogOPV.addToMeasure;
1947
+ }
1936
1948
  }, {
1937
1949
  key: "hideSubarticleDescription",
1938
1950
  get: function get() {
@@ -16094,6 +16106,15 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16094
16106
  case 'SET_BY_RULE':
16095
16107
  this.opv.setByRule = prop.Value;
16096
16108
  break;
16109
+ case 'ADD_TO_MEASURE':
16110
+ this.opv.addToMeasure = prop.Value.split(';').map(function (v) {
16111
+ return {
16112
+ op: v.split(':')[0],
16113
+ value: Number(v.split(':')[1]),
16114
+ opt: 'OPT' + v.split(':')[2]
16115
+ };
16116
+ });
16117
+ break;
16097
16118
  default:
16098
16119
  if (key.includes('__')) break;
16099
16120
  var values_locales = [];
@@ -16389,6 +16410,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16389
16410
  get: function get() {
16390
16411
  return this.opv.customDimension;
16391
16412
  }
16413
+ }, {
16414
+ key: "addToMeasure",
16415
+ get: function get() {
16416
+ return this.opv.addToMeasure;
16417
+ }
16392
16418
  }]);
16393
16419
  }();
16394
16420
 
@@ -17986,10 +18012,10 @@ var OptionCatalogData = /*#__PURE__*/function () {
17986
18012
  case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
17987
18013
  this.opt.onlyVisibleIfNotDocked = prop.Value;
17988
18014
  break;
17989
- case 'ONLY_VIDSIBLE_IF_CONFIG_SINGLE':
18015
+ case 'ONLY_VISIBLE_IF_CONFIG_SINGLE':
17990
18016
  this.opt.onlyVisibleIfConfigSingle = prop.Value;
17991
18017
  break;
17992
- case 'ONLY_VIDSIBLE_IF_CONFIG_ALL':
18018
+ case 'ONLY_VISIBLE_IF_CONFIG_ALL':
17993
18019
  this.opt.onlyVisibleIfConfigAll = prop.Value;
17994
18020
  break;
17995
18021
  case 'ISDEFAULTVALUEFOROPTIONS':
@@ -18297,6 +18323,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18297
18323
  offlineData: json.OfflineData,
18298
18324
  offlineFilesLastUpdate: offlinFileLastUpdateTimestamp,
18299
18325
  offlineVersion: json.OfflineVersion,
18326
+ retailCatalogNr: json.RetailCatalogNr,
18300
18327
  description: orderSet.Description,
18301
18328
  mainCategory: (_json$MainCategory = json.MainCategory) !== null && _json$MainCategory !== void 0 ? _json$MainCategory : json.Name,
18302
18329
  supplierCatalogName: json.SupplierCatalogName,
@@ -18333,7 +18360,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18333
18360
  headerDimensionIds: [],
18334
18361
  dontShowBasePrice: false,
18335
18362
  // wenn true - dann sollte Preis Ab im Planner nicht angezeigt werden
18336
-
18363
+ autoOpenContentItem: false,
18337
18364
  //KatalogProperties - Planner Themen
18338
18365
  divaPlanerDigits: 0,
18339
18366
  // Anzahl der Kommastellen bei Masslinien im Planer (Jutzler mit mm)
@@ -18721,6 +18748,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18721
18748
  }
18722
18749
  } else if (key == 'ARTICLECONFIGALL') {
18723
18750
  _this.catalogData.articleConfigAll = item.Value == '1';
18751
+ } else if (key == 'AUTO_OPEN_CONTENTITEM') {
18752
+ _this.catalogData.autoOpenContentItem = item.Value == '1';
18724
18753
  } else if (key == 'HIDE_PRICE_GROUPS_OF_OPGS') {
18725
18754
  _this.catalogData.hidePriceGroupsOfOPGs = item.Value == '1';
18726
18755
  } else if (key == 'DONTHIDEOPTION') {
@@ -19050,7 +19079,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
19050
19079
  groupName: groupTitle,
19051
19080
  metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
19052
19081
  contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
19053
- groupContentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
19082
+ groupContentItemId: this.catalogArticles[catPlanArticle.codex].groupContentItemId,
19054
19083
  partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
19055
19084
  };
19056
19085
  //nicht ausmultiplizierte Elemente
@@ -19442,6 +19471,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19442
19471
  get: function get() {
19443
19472
  return this.catalogData.offlineFilesLastUpdate;
19444
19473
  }
19474
+ }, {
19475
+ key: "retailCatalogNr",
19476
+ get: function get() {
19477
+ return this.catalogData.retailCatalogNr;
19478
+ }
19445
19479
  }, {
19446
19480
  key: "description",
19447
19481
  get: function get() {
@@ -19656,6 +19690,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19656
19690
  get: function get() {
19657
19691
  return this.catalogData.alternateRenderings;
19658
19692
  }
19693
+ }, {
19694
+ key: "autoOpenContentItem",
19695
+ get: function get() {
19696
+ return this.catalogData.autoOpenContentItem;
19697
+ }
19659
19698
  }, {
19660
19699
  key: "alternateRenderingsForSummary",
19661
19700
  get: function get() {
@@ -20642,6 +20681,12 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20642
20681
  var _this$val$customDimen, _this$val24;
20643
20682
  return this.val && ((_this$val$customDimen = (_this$val24 = this.val) === null || _this$val24 === void 0 ? void 0 : _this$val24.customDimension) !== null && _this$val$customDimen !== void 0 ? _this$val$customDimen : this.option.customDimension);
20644
20683
  }
20684
+ }, {
20685
+ key: "addToMeasure",
20686
+ get: function get() {
20687
+ var _this$val25;
20688
+ return (_this$val25 = this.val) === null || _this$val25 === void 0 ? void 0 : _this$val25.addToMeasure;
20689
+ }
20645
20690
  }, {
20646
20691
  key: "showWarningForRequiresUserInput",
20647
20692
  get: function get() {
@@ -22219,6 +22264,16 @@ var DivaArticle = /*#__PURE__*/function () {
22219
22264
  }
22220
22265
  return true;
22221
22266
  }
22267
+ }, {
22268
+ key: "optionStatesWithAddToMeasure",
22269
+ value: function optionStatesWithAddToMeasure(opt) {
22270
+ return Object.values(this.articleOptionStates).filter(function (ops) {
22271
+ var _ops$addToMeasure, _ops$addToMeasure2;
22272
+ return ((_ops$addToMeasure = ops.addToMeasure) === null || _ops$addToMeasure === void 0 ? void 0 : _ops$addToMeasure.find(function (o) {
22273
+ return o.opt == opt;
22274
+ })) || ops.optionCodex == opt && ((_ops$addToMeasure2 = ops.addToMeasure) === null || _ops$addToMeasure2 === void 0 ? void 0 : _ops$addToMeasure2.length);
22275
+ });
22276
+ }
22222
22277
  }, {
22223
22278
  key: "requiredUserInputOptions",
22224
22279
  get: function get() {
@@ -22954,6 +23009,7 @@ var DivaArticle = /*#__PURE__*/function () {
22954
23009
  }
22955
23010
  this.updateIDMSpecificFeature(myArtOPS);
22956
23011
  }
23012
+ this.updateOptionsWithAddToMeasure(OP);
22957
23013
  }
22958
23014
  }, {
22959
23015
  key: "updateIDMSpecificFeature",
@@ -22981,7 +23037,8 @@ var DivaArticle = /*#__PURE__*/function () {
22981
23037
  if (myArtOPS.option.idmVariantenArt == 97) {
22982
23038
  //Planungshöhe
22983
23039
  try {
22984
- var toEvalTerm = myArtOPS.name.replace(',', '.').replace('cm', '').replace('ARTICLE_HEIGHT', this.article.catalogArticle.height ? this.article.catalogArticle.height.toString() : '');
23040
+ var _myArtOPS$freeText;
23041
+ var toEvalTerm = ((_myArtOPS$freeText = myArtOPS.freeText) !== null && _myArtOPS$freeText !== void 0 ? _myArtOPS$freeText : myArtOPS.name).replace(',', '.').replace('cm', '').replace('ARTICLE_HEIGHT', this.article.catalogArticle.height ? this.article.catalogArticle.height.toString() : '');
22985
23042
  var newHeight = eval(this.evalVariablenInName(toEvalTerm));
22986
23043
  this.article.doUpdatePlannerSize = true;
22987
23044
  this.calcHeight = Math.round((newHeight + Number.EPSILON) * 100) / 100;
@@ -22993,7 +23050,8 @@ var DivaArticle = /*#__PURE__*/function () {
22993
23050
  if (myArtOPS.option.idmVariantenArt == 96 || myArtOPS.option.diameter) {
22994
23051
  //Planungstiefe
22995
23052
  try {
22996
- var toEvalTerm = myArtOPS.name.replace(',', '.').replace('cm', '').replace('ARTICLE_DEPTH', this.article.catalogArticle.depth ? this.article.catalogArticle.depth.toString() : '');
23053
+ var _myArtOPS$freeText2;
23054
+ var toEvalTerm = ((_myArtOPS$freeText2 = myArtOPS.freeText) !== null && _myArtOPS$freeText2 !== void 0 ? _myArtOPS$freeText2 : myArtOPS.name).replace(',', '.').replace('cm', '').replace('ARTICLE_DEPTH', this.article.catalogArticle.depth ? this.article.catalogArticle.depth.toString() : '');
22997
23055
  var newDepth = eval(this.evalVariablenInName(toEvalTerm));
22998
23056
  this.article.doUpdatePlannerSize = true;
22999
23057
  this.calcDepth = Math.round((newDepth + Number.EPSILON) * 100) / 100;
@@ -23006,7 +23064,8 @@ var DivaArticle = /*#__PURE__*/function () {
23006
23064
  //Planungsbreite - ACHTUNG Fehler wenn mm
23007
23065
 
23008
23066
  try {
23009
- var toEvalTerm = myArtOPS.name.replace(',', '.').replace('cm', '').replace('ARTICLE_WIDTH', this.article.catalogArticle.width ? this.article.catalogArticle.width.toString() : '');
23067
+ var _myArtOPS$freeText3;
23068
+ var toEvalTerm = ((_myArtOPS$freeText3 = myArtOPS.freeText) !== null && _myArtOPS$freeText3 !== void 0 ? _myArtOPS$freeText3 : myArtOPS.name).replace(',', '.').replace('cm', '').replace('ARTICLE_WIDTH', this.article.catalogArticle.width ? this.article.catalogArticle.width.toString() : '');
23010
23069
  var newWidth = eval(this.evalVariablenInName(toEvalTerm));
23011
23070
  this.article.doUpdatePlannerSize = true;
23012
23071
  this.calcWidth = Math.round((newWidth + Number.EPSILON) * 100) / 100;
@@ -23109,6 +23168,61 @@ var DivaArticle = /*#__PURE__*/function () {
23109
23168
  return myDesc;
23110
23169
  }
23111
23170
  }
23171
+ }, {
23172
+ key: "updateOptionsWithAddToMeasure",
23173
+ value: function updateOptionsWithAddToMeasure(optionCodex) {
23174
+ var opsWithAddToMeasure = this.optionStatesWithAddToMeasure(optionCodex);
23175
+ var result = undefined;
23176
+ var optionsUsedFreetext = {};
23177
+ for (var i = 0; i < opsWithAddToMeasure.length; i++) {
23178
+ var _result2;
23179
+ var addToMeasureOps = opsWithAddToMeasure[i];
23180
+ for (var j = 0; j < addToMeasureOps.addToMeasure.length; j++) {
23181
+ var _Number, _this$getArticleOptio4;
23182
+ var addToMeasure = addToMeasureOps.addToMeasure[j];
23183
+ var value = optionsUsedFreetext[addToMeasure.opt] ? 0 : (_Number = Number((_this$getArticleOptio4 = this.getArticleOptionState(addToMeasure.opt)) === null || _this$getArticleOptio4 === void 0 ? void 0 : _this$getArticleOptio4.freeText)) !== null && _Number !== void 0 ? _Number : 0;
23184
+ optionsUsedFreetext[addToMeasure.opt] = true;
23185
+ if (!addToMeasureOps.val) continue;
23186
+ if (isNaN(value)) {
23187
+ result = undefined;
23188
+ break;
23189
+ } else {
23190
+ var _result;
23191
+ result = this.calculateMeasure(addToMeasure, ((_result = result) !== null && _result !== void 0 ? _result : 0) + value);
23192
+ }
23193
+ }
23194
+ this.setOP(addToMeasureOps.optionCodex, addToMeasureOps.val, (_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.toString());
23195
+ }
23196
+ }
23197
+ }, {
23198
+ key: "calcAddToMeasure",
23199
+ value: function calcAddToMeasure(optionCodex, value) {
23200
+ var opsWithAddToMeasure = this.optionStatesWithAddToMeasure(optionCodex);
23201
+ for (var j = 0; j < opsWithAddToMeasure.length; j++) {
23202
+ for (var i = 0; i < opsWithAddToMeasure[j].addToMeasure.length; i++) {
23203
+ var measure = opsWithAddToMeasure[j].addToMeasure[i];
23204
+ if (measure.opt != optionCodex) continue;
23205
+ value = this.calculateMeasure(measure, value);
23206
+ }
23207
+ }
23208
+ return value;
23209
+ }
23210
+ }, {
23211
+ key: "calculateMeasure",
23212
+ value: function calculateMeasure(measure, value) {
23213
+ switch (measure.op) {
23214
+ case '+':
23215
+ return Math.round(value + measure.value);
23216
+ case '-':
23217
+ return Math.round(value - measure.value);
23218
+ case '*':
23219
+ return Math.round(value * measure.value);
23220
+ case '/':
23221
+ return Math.round(value / measure.value);
23222
+ }
23223
+ LOG$d.error(new Error('operator ' + measure.op + ' not implemented'));
23224
+ return value;
23225
+ }
23112
23226
  }, {
23113
23227
  key: "clearOP",
23114
23228
  value: function clearOP(optionCodex) {
@@ -23999,7 +24113,7 @@ var DivaArticle = /*#__PURE__*/function () {
23999
24113
  break;
24000
24114
  }
24001
24115
  _context.next = 4;
24002
- return import('./ShelfPlanner-152084c3.js');
24116
+ return import('./ShelfPlanner-40de7cd1.js');
24003
24117
  case 4:
24004
24118
  _yield$import = _context.sent;
24005
24119
  ShelfPlanner = _yield$import["default"];
@@ -24130,6 +24244,9 @@ var DivaArticle = /*#__PURE__*/function () {
24130
24244
  }
24131
24245
  if ((mUnit || OP == 'OPTUMFANG' || OP == 'OPTUMFANG_KREIS') && this.parentHasSameOption(OP)) {
24132
24246
  var freeTextMeasure = parseFloat(myArtOPS.freeText ? myArtOPS.freeText : '');
24247
+ var newFreeTextMeasure = this.calcAddToMeasure(OP, freeTextMeasure);
24248
+ LOG$d.debug('freetext changed by addToMeasure at price calculation', newFreeTextMeasure, freeTextMeasure, myArtOPS.addToMeasure);
24249
+ freeTextMeasure = newFreeTextMeasure;
24133
24250
  if (freeTextMeasure || OP == 'OPTUMFANG' || OP == 'OPTUMFANG_KREIS') {
24134
24251
  if (calcUnitPrice != 0) {
24135
24252
  var quantity = 0;
@@ -24443,6 +24560,13 @@ var DivaArticle = /*#__PURE__*/function () {
24443
24560
  }
24444
24561
  }
24445
24562
  }
24563
+ //for classification usecase when suboption and option have the same name like OPTOPT_MATERIAL_1_00 and OPTOPT_MATERIAL_1_00.OPTOPT_MATERIAL_1_00
24564
+ if (_ops8) {
24565
+ var _ops8$valCodex;
24566
+ if ((_ops8$valCodex = _ops8.valCodex) !== null && _ops8$valCodex !== void 0 && _ops8$valCodex.startsWith('OPVSUB_') && !validValues[_key4 + '.' + _key4] && this.getArticleOptionState(_key4 + '.' + _key4)) {
24567
+ validValues[_key4 + '.' + _key4] = myValues[_key4];
24568
+ }
24569
+ }
24446
24570
  }
24447
24571
  return validValues;
24448
24572
  }
@@ -24643,8 +24767,9 @@ var DivaArticle = /*#__PURE__*/function () {
24643
24767
  }, {
24644
24768
  key: "addOptionStateFromArticleToPlannerData",
24645
24769
  value: function addOptionStateFromArticleToPlannerData(ret, alternateRenderInfo) {
24646
- for (var key in this.articleOptionStates) {
24647
- this.addOptionStateToPlannerData(ret, this.articleOptionStates[key], alternateRenderInfo);
24770
+ var articleOptions = this.getArticleOptionStatesWithOptionsForPrint();
24771
+ for (var key in articleOptions) {
24772
+ this.addOptionStateToPlannerData(ret, articleOptions[key], alternateRenderInfo);
24648
24773
  }
24649
24774
  for (var _key5 in this.article.partlistArticles) {
24650
24775
  var partlistArticle = this.article.partlistArticles[_key5];
@@ -24956,7 +25081,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24956
25081
  value: //Initialisiert eventuell Option Tree und Infos im CatalogArticle
24957
25082
  function () {
24958
25083
  var _loadArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(set, articleCodex, initParams) {
24959
- var _yield$this$preLoadAr, catalog, catalogArticle, newBasketId, _set$actions;
25084
+ var _yield$this$preLoadAr, catalog, catalogArticle, newBasketId;
24960
25085
  return _regeneratorRuntime.wrap(function _callee$(_context) {
24961
25086
  while (1) switch (_context.prev = _context.next) {
24962
25087
  case 0:
@@ -24980,12 +25105,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24980
25105
  articleCodex: articleCodex
24981
25106
  }
24982
25107
  }));
24983
- (_set$actions = set.actions) === null || _set$actions === void 0 || _set$actions.openModal({
24984
- accept: true,
24985
- title: set.i18n.t('modals.error_accured')
24986
- });
24987
- return _context.abrupt("return", false);
24988
- case 13:
25108
+ throw new Error('articleCodex not found in article list. Could be due to exclusivity or a bug in the application!');
25109
+ case 12:
24989
25110
  case "end":
24990
25111
  return _context.stop();
24991
25112
  }
@@ -28101,13 +28222,23 @@ var DivaSet = /*#__PURE__*/function () {
28101
28222
  _context3.t0 = [];
28102
28223
  _context3.t1 = _toConsumableArray(this.getCustomDimsFromConfig());
28103
28224
  _context3.t2 = _toConsumableArray;
28104
- _context3.next = 5;
28225
+ if (this.api.dontLoadDimensions()) {
28226
+ _context3.next = 9;
28227
+ break;
28228
+ }
28229
+ _context3.next = 6;
28105
28230
  return this.getCustomDimsFromCostructionService();
28106
- case 5:
28231
+ case 6:
28107
28232
  _context3.t3 = _context3.sent;
28108
- _context3.t4 = (0, _context3.t2)(_context3.t3);
28109
- return _context3.abrupt("return", _context3.t0.concat.call(_context3.t0, _context3.t1, _context3.t4));
28110
- case 8:
28233
+ _context3.next = 10;
28234
+ break;
28235
+ case 9:
28236
+ _context3.t3 = [];
28237
+ case 10:
28238
+ _context3.t4 = _context3.t3;
28239
+ _context3.t5 = (0, _context3.t2)(_context3.t4);
28240
+ return _context3.abrupt("return", _context3.t0.concat.call(_context3.t0, _context3.t1, _context3.t5));
28241
+ case 13:
28111
28242
  case "end":
28112
28243
  return _context3.stop();
28113
28244
  }
@@ -28684,7 +28815,7 @@ var DivaSet = /*#__PURE__*/function () {
28684
28815
  break;
28685
28816
  }
28686
28817
  _context5.next = 3;
28687
- return import('./DoorPlanner-43de473a.js');
28818
+ return import('./DoorPlanner-cfaa621a.js');
28688
28819
  case 3:
28689
28820
  _yield$import = _context5.sent;
28690
28821
  DoorPlanner = _yield$import["default"];
@@ -30595,10 +30726,11 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30595
30726
  //hier evtl. die Article mit einer gewissen reihenfolge durchlaufen!
30596
30727
  var optionsStates = optionStatesOfArticles[basketId];
30597
30728
  for (var optionCodex in optionsStates) {
30729
+ var _ops$addToMeasure;
30598
30730
  var ops = optionsStates[optionCodex];
30599
30731
  var selectionmode = ops.selectionmode;
30600
30732
  if (set.CatalogData.forceConfigSingle && (selectionmode == 1 || selectionmode == 2)) selectionmode = 3;
30601
- if (!ops.isInvisible && (selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && set.api.showSelectionModeZero()) && ops.isDoShow && ops.visibleCount > 0) {
30733
+ if (!ops.isInvisible && (selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && set.api.showSelectionModeZero()) && ops.isDoShow && !((_ops$addToMeasure = ops.addToMeasure) !== null && _ops$addToMeasure !== void 0 && _ops$addToMeasure.length) && ops.visibleCount > 0) {
30602
30734
  this.addOptionsStateToConfigTree(set, set.configTree, articles, basketId, ops, optionCodex, selectionmode, addToTabGroup);
30603
30735
  }
30604
30736
  }
@@ -31187,8 +31319,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
31187
31319
  value: function prepareConfigItemsForView(set, ops, myConfigItems, constructionRules, selectedVals, targetArticles, optionCodex,
31188
31320
  //bei einer OPG wird hier dessen hauptoptionCodex Übergeben
31189
31321
  idmOpgGroupName, idmOpgValCodex, idmOpgOptionCodex, freeTextValue, freeTextLang) {
31190
- var myConfigItemsForView = [],
31191
- objectKeys = Object.keys(myConfigItems);
31322
+ var myConfigItemsForView = [];
31323
+ var objectKeys = Object.keys(myConfigItems);
31324
+ var groupContentItemIdObject = this.getGroupContentItemIdObject(Object.values(myConfigItems), idmOpgGroupName);
31192
31325
  var _loop8 = function _loop8() {
31193
31326
  var _ops$optionOcd3, _item$images, _item$colorGroups, _item$pdfUrl, _item$url;
31194
31327
  var item = myConfigItems[objectKeys[i]];
@@ -31237,10 +31370,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
31237
31370
  //for freeText
31238
31371
  //if a opv has isFreeText = true and its selected a Textbox sould appear in the OptionValue
31239
31372
  //if the text is empty the opv is really selected
31240
- contentItemId: item.contentItemId,
31241
31373
  isOPVG: item.isOPVG,
31242
31374
  isParentOPVG: item.parent.codex.startsWith('OPV'),
31243
- groupContentItemId: item.groupContentItemId,
31375
+ contentItemId: item.contentItemId,
31376
+ groupContentItemId: groupName ? groupContentItemIdObject[groupName] : undefined,
31244
31377
  idmOpgOptionCodex: idmOpgOptionCodex,
31245
31378
  idmOpgValCodex: idmOpgValCodex,
31246
31379
  isFreeText: item.isFreeText,
@@ -31265,6 +31398,18 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
31265
31398
  myConfigItemsForView: myConfigItemsForView
31266
31399
  };
31267
31400
  }
31401
+ }, {
31402
+ key: "getGroupContentItemIdObject",
31403
+ value: function getGroupContentItemIdObject(configItems, alternativeGroupName) {
31404
+ var groupContentItemIdObject = {};
31405
+ for (var i = 0; i < configItems.length; i++) {
31406
+ var _item$groupName;
31407
+ var item = configItems[i];
31408
+ var groupName = (_item$groupName = item.groupName) !== null && _item$groupName !== void 0 ? _item$groupName : alternativeGroupName;
31409
+ if (groupName && item.groupContentItemId) groupContentItemIdObject[groupName] = item.groupContentItemId;
31410
+ }
31411
+ return groupContentItemIdObject;
31412
+ }
31268
31413
  }, {
31269
31414
  key: "getProductList",
31270
31415
  value: function getProductList() {
@@ -31282,10 +31427,11 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
31282
31427
  //hier evtl. die Article mit einer gewissen reihenfolge durchlaufen!
31283
31428
  var optionsStates = optionStatesOfArticles[iKey];
31284
31429
  for (var jKey in optionsStates) {
31430
+ var _ops$addToMeasure2;
31285
31431
  var ops = optionsStates[jKey];
31286
31432
  var selectionmode = ops.selectionmode;
31287
31433
  if (set.CatalogData.forceConfigSingle && (selectionmode == 1 || selectionmode == 2)) selectionmode = 3;
31288
- if (ops.isInvisible || selectionmode == 0 || !ops.isDoShow || ops.visibleCount == 0) {
31434
+ if (ops.isInvisible || selectionmode == 0 || !ops.isDoShow || ops.visibleCount == 0 || !!((_ops$addToMeasure2 = ops.addToMeasure) !== null && _ops$addToMeasure2 !== void 0 && _ops$addToMeasure2.length)) {
31289
31435
  this.addOptionsStateToConfigTree(set, configTree, articles, iKey, ops, jKey, selectionmode);
31290
31436
  }
31291
31437
  }
@@ -34047,6 +34193,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
34047
34193
  origOrderSet.AccountLogo = actOrderSet.AccountLogo;
34048
34194
  origOrderSet.CatalogOfflineVersion = actOrderSet.CatalogOfflineVersion;
34049
34195
  origOrderSet.CatalogGUID = actOrderSet.CatalogGUID;
34196
+ origOrderSet.RetailCatalogNr = actOrderSet.RetailCatalogNr;
34050
34197
  origOrderSet.CollectionGUID = actOrderSet.CollectionGUID;
34051
34198
  origOrderSet.OrderLines = actOrderSet.OrderLines;
34052
34199
  origOrderSet.OrderSetDesc = actOrderSet.OrderSetDesc;
@@ -34059,6 +34206,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
34059
34206
  origOrderSet.SetVariantBasketDatas = actOrderSet.SetVariantBasketDatas;
34060
34207
  origOrderSet.BBox = actOrderSet.BBox;
34061
34208
  origOrderSet.VariantDescription = actOrderSet.VariantDescription;
34209
+ origOrderSet.OfflineData = actOrderSet.OfflineData;
34062
34210
  if (actOrderSet.ConfigVariants && origOrderSet.ConfigVariants) origOrderSet.ConfigVariants = actOrderSet.ConfigVariants.map(function (variant, index) {
34063
34211
  var _origOrderSet$ConfigV;
34064
34212
  var configVariant = (_origOrderSet$ConfigV = origOrderSet.ConfigVariants) === null || _origOrderSet$ConfigV === void 0 ? void 0 : _origOrderSet$ConfigV[index];
@@ -34152,6 +34300,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
34152
34300
  CatalogName_locales: catalogData.name_locales,
34153
34301
  CatalogOfflineVersion: catalogData.offlineVersion,
34154
34302
  CatalogOfflineFilesLastUpdate: catalogData.offlineFilesLastUpdate,
34303
+ RetailCatalogNr: catalogData.retailCatalogNr,
34155
34304
  Description: catalogData.description,
34156
34305
  GroupType: GroupType,
34157
34306
  OfflineData: catalogData.offlineData,
@@ -34172,6 +34321,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
34172
34321
  SetName: set.setName,
34173
34322
  SetName_locales: set.setName_locales,
34174
34323
  ProductSetName: set.ProductSetName,
34324
+ SupplierGUID: catalogData.supplierGuid,
34175
34325
  SetPrice: set.getSetPrice(),
34176
34326
  BruttoSetPrice: bruttoPrice,
34177
34327
  SetQuantity: 1,
@@ -34477,7 +34627,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34477
34627
  this.plannerConfig = plannerConfig;
34478
34628
  this.assignNewDivaNr = !!this.plannerConfig.assignNewDivaNr;
34479
34629
  this._handler = plannerConfig.handler;
34480
- if (this.plannerConfig.divaNr == undefined && this.plannerConfig.basketData == undefined && this.plannerConfig.catalogCodex == undefined && this.plannerConfig.productId == undefined && this.plannerConfig.customProductId == undefined && this.plannerConfig.returnTo != 'TEST_CONFIGURATORLOGIC' && !((_this$plannerConfig$s = this.plannerConfig.settings) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.ViewConfig) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.plannerType) !== null && _this$plannerConfig$s !== void 0 && _this$plannerConfig$s.includes('PRODUCTS') || (_this$plannerConfig$s2 = this.plannerConfig.settings) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.ViewConfig) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.plannerType) !== null && _this$plannerConfig$s2 !== void 0 && _this$plannerConfig$s2.includes('PROMOTED'))) {
34630
+ if (this.plannerConfig.divaNr == undefined && this.plannerConfig.basketData == undefined && this.plannerConfig.catalogCodex == undefined && this.plannerConfig.productId == undefined && this.plannerConfig.customProductId == undefined && this.plannerConfig.returnTo != 'TEST_CONFIGURATORLOGIC' && !((_this$plannerConfig$s = this.plannerConfig.settings) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.viewConfig) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.plannerType) !== null && _this$plannerConfig$s !== void 0 && _this$plannerConfig$s.includes('PRODUCTS') || (_this$plannerConfig$s2 = this.plannerConfig.settings) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.viewConfig) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.plannerType) !== null && _this$plannerConfig$s2 !== void 0 && _this$plannerConfig$s2.includes('PROMOTED'))) {
34481
34631
  LOG$8.error(new DivaError('Keine Öffnungsparameter', {
34482
34632
  code: 'WC_0003'
34483
34633
  }));
@@ -34680,7 +34830,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34680
34830
  case 60:
34681
34831
  return _context.abrupt("return", _context.sent);
34682
34832
  case 63:
34683
- if (!((_this$plannerConfig$s3 = this.plannerConfig.settings) !== null && _this$plannerConfig$s3 !== void 0 && (_this$plannerConfig$s3 = _this$plannerConfig$s3.ViewConfig) !== null && _this$plannerConfig$s3 !== void 0 && _this$plannerConfig$s3.loadStartProduct)) {
34833
+ if (!((_this$plannerConfig$s3 = this.plannerConfig.settings) !== null && _this$plannerConfig$s3 !== void 0 && (_this$plannerConfig$s3 = _this$plannerConfig$s3.viewConfig) !== null && _this$plannerConfig$s3 !== void 0 && _this$plannerConfig$s3.loadStartProduct)) {
34684
34834
  _context.next = 86;
34685
34835
  break;
34686
34836
  }
@@ -34712,7 +34862,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34712
34862
  return _context.abrupt("return", _context.sent);
34713
34863
  case 75:
34714
34864
  successfully = false;
34715
- if (!((_this$plannerConfig$s4 = this.plannerConfig.settings) !== null && _this$plannerConfig$s4 !== void 0 && (_this$plannerConfig$s4 = _this$plannerConfig$s4.ViewConfig) !== null && _this$plannerConfig$s4 !== void 0 && _this$plannerConfig$s4.initFirstCatalog)) {
34865
+ if (!((_this$plannerConfig$s4 = this.plannerConfig.settings) !== null && _this$plannerConfig$s4 !== void 0 && (_this$plannerConfig$s4 = _this$plannerConfig$s4.viewConfig) !== null && _this$plannerConfig$s4 !== void 0 && _this$plannerConfig$s4.initFirstCatalog)) {
34716
34866
  _context.next = 80;
34717
34867
  break;
34718
34868
  }
@@ -34739,7 +34889,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34739
34889
  _context.next = 91;
34740
34890
  break;
34741
34891
  case 86:
34742
- if (!((_this$plannerConfig$s5 = this.plannerConfig.settings) !== null && _this$plannerConfig$s5 !== void 0 && (_this$plannerConfig$s5 = _this$plannerConfig$s5.ViewConfig) !== null && _this$plannerConfig$s5 !== void 0 && _this$plannerConfig$s5.initFirstCatalog)) {
34892
+ if (!((_this$plannerConfig$s5 = this.plannerConfig.settings) !== null && _this$plannerConfig$s5 !== void 0 && (_this$plannerConfig$s5 = _this$plannerConfig$s5.viewConfig) !== null && _this$plannerConfig$s5 !== void 0 && _this$plannerConfig$s5.initFirstCatalog)) {
34743
34893
  _context.next = 91;
34744
34894
  break;
34745
34895
  }
@@ -35292,7 +35442,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35292
35442
  key: "saveToBasket",
35293
35443
  value: function () {
35294
35444
  var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(api, actBasket, returnTo) {
35295
- var _this$plannerConfig$c4, _this$_basketHandler, _api$getJwt;
35445
+ var _this$plannerConfig$s9, _this$plannerConfig$c4, _this$_basketHandler, _api$getJwt;
35296
35446
  var response;
35297
35447
  return _regeneratorRuntime.wrap(function _callee11$(_context11) {
35298
35448
  while (1) switch (_context11.prev = _context11.next) {
@@ -35303,7 +35453,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35303
35453
  actBasket.PrintOptions = api.getPrintOptions(this.reportConfig);
35304
35454
  actBasket.ClientLanguage = api.getLanguage();
35305
35455
  _context11.next = 7;
35306
- return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser, this.plannerConfig.settings.keepSalesPersonDataInBasket);
35456
+ return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser, (_this$plannerConfig$s9 = this.plannerConfig.settings) === null || _this$plannerConfig$s9 === void 0 ? void 0 : _this$plannerConfig$s9.keepSalesPersonDataInBasket);
35307
35457
  case 7:
35308
35458
  actBasket.UserLanguage = api.getLanguage();
35309
35459
  actBasket.PrintRetailLogo = (_this$plannerConfig$c4 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c4 === void 0 ? void 0 : _this$plannerConfig$c4.logoUrl;
@@ -35474,7 +35624,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35474
35624
  break;
35475
35625
  case 3:
35476
35626
  _context12.next = 5;
35477
- return import('./PfisterWWSHandler-7f7996a7.js');
35627
+ return import('./PfisterWWSHandler-20707364.js');
35478
35628
  case 5:
35479
35629
  _yield$import = _context12.sent;
35480
35630
  PfisterWWSHandler = _yield$import["default"];
@@ -35482,7 +35632,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35482
35632
  return _context12.abrupt("break", 27);
35483
35633
  case 9:
35484
35634
  _context12.next = 11;
35485
- return import('./LiviqueWWSHandler-e63f276f.js');
35635
+ return import('./LiviqueWWSHandler-5eff1e27.js');
35486
35636
  case 11:
35487
35637
  _yield$import2 = _context12.sent;
35488
35638
  LiviqueWWSHandler = _yield$import2["default"];
@@ -35490,7 +35640,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35490
35640
  return _context12.abrupt("break", 27);
35491
35641
  case 15:
35492
35642
  _context12.next = 17;
35493
- return import('./SeriousBasketHandler-1a4186bd.js');
35643
+ return import('./SeriousBasketHandler-43c91834.js');
35494
35644
  case 17:
35495
35645
  _yield$import3 = _context12.sent;
35496
35646
  SeriousWWSHandler = _yield$import3["default"];
@@ -35498,7 +35648,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35498
35648
  return _context12.abrupt("break", 27);
35499
35649
  case 21:
35500
35650
  _context12.next = 23;
35501
- return import('./StandardWWSHandler-a5d84eb8.js');
35651
+ return import('./StandardWWSHandler-36b31757.js');
35502
35652
  case 23:
35503
35653
  _yield$import4 = _context12.sent;
35504
35654
  StandardWWSHandler = _yield$import4["default"];
@@ -35783,28 +35933,6 @@ var ViewPointHandler = /*#__PURE__*/function () {
35783
35933
  value: function zoomToStep(zoomStep) {
35784
35934
  this.navInfo3D.zoom = zoomStep;
35785
35935
  }
35786
- }, {
35787
- key: "swipeLeft",
35788
- value: function swipeLeft() {
35789
- this.navInfo3D.rotHori -= 15;
35790
- }
35791
- }, {
35792
- key: "swipRight",
35793
- value: function swipRight() {
35794
- this.navInfo3D.rotHori += 15;
35795
- }
35796
- }, {
35797
- key: "swipeUp",
35798
- value: function swipeUp() {
35799
- if (this.navInfo3D.rotVert == -15) return;
35800
- this.navInfo3D.rotVert -= 15;
35801
- }
35802
- }, {
35803
- key: "swipeDown",
35804
- value: function swipeDown() {
35805
- if (this.navInfo3D.rotVert == 45) return;
35806
- this.navInfo3D.rotVert += 15;
35807
- }
35808
35936
  }, {
35809
35937
  key: "setVpName",
35810
35938
  value: function setVpName(vpName) {
@@ -35859,6 +35987,7 @@ var ViewPointHandler = /*#__PURE__*/function () {
35859
35987
  key: "initRoomList",
35860
35988
  value: function initRoomList(roomlist, defaultBackgroundWidth, defaultBackgroundHeight) {
35861
35989
  this.roomListInfo = [];
35990
+ if (!roomlist) return;
35862
35991
  var roomListObj = JSON.parse(roomlist);
35863
35992
  var roomIsSel = true;
35864
35993
  for (var roomCodex in roomListObj) {
@@ -36941,7 +37070,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36941
37070
  while (1) switch (_context3.prev = _context3.next) {
36942
37071
  case 0:
36943
37072
  _context3.next = 2;
36944
- return import('./Host3DSignalR-b772e3b5.js');
37073
+ return import('./Host3DSignalR-50fbaf0a.js');
36945
37074
  case 2:
36946
37075
  _yield$import = _context3.sent;
36947
37076
  Host3DSignalR = _yield$import["default"];
@@ -37642,7 +37771,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37642
37771
  }, {
37643
37772
  key: "handle3DVisualizationChanged",
37644
37773
  value: function handle3DVisualizationChanged(mode, params) {
37645
- var _params$nav3DZoom, _params$nav3DZoom2, _params$nav3DZoom3, _params$nav3DSwipe, _params$nav3DSwipe2, _params$nav3DSwipe3, _params$nav3DSwipe4;
37774
+ var _params$nav3DZoom, _params$nav3DZoom2, _params$nav3DZoom3;
37646
37775
  switch (mode) {
37647
37776
  case 'Nav3DFullScreen':
37648
37777
  break;
@@ -37655,17 +37784,6 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37655
37784
  this.viewPointHandler.zoomToStep(params.nav3DZoom.zoomVal);
37656
37785
  }
37657
37786
  break;
37658
- case 'Nav3DSwipe':
37659
- if ((_params$nav3DSwipe = params.nav3DSwipe) !== null && _params$nav3DSwipe !== void 0 && _params$nav3DSwipe.doSwipeRight) {
37660
- this.viewPointHandler.swipRight();
37661
- } else if ((_params$nav3DSwipe2 = params.nav3DSwipe) !== null && _params$nav3DSwipe2 !== void 0 && _params$nav3DSwipe2.doSwipeLeft) {
37662
- this.viewPointHandler.swipeLeft();
37663
- } else if ((_params$nav3DSwipe3 = params.nav3DSwipe) !== null && _params$nav3DSwipe3 !== void 0 && _params$nav3DSwipe3.doSwipeDown) {
37664
- this.viewPointHandler.swipeDown();
37665
- } else if ((_params$nav3DSwipe4 = params.nav3DSwipe) !== null && _params$nav3DSwipe4 !== void 0 && _params$nav3DSwipe4.doSwipeUp) {
37666
- this.viewPointHandler.swipeUp();
37667
- }
37668
- break;
37669
37787
  case 'Nav3DFocus':
37670
37788
  this.viewPointHandler.focusOnElementId(params.nav3DFocus.setId, params.nav3DFocus.focusElementId);
37671
37789
  break;
@@ -38506,7 +38624,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38506
38624
  break;
38507
38625
  case 8:
38508
38626
  _context4.next = 10;
38509
- return import('./DivaStandardPlanner-50298918.js');
38627
+ return import('./DivaStandardPlanner-0ab1766b.js');
38510
38628
  case 10:
38511
38629
  _yield$import = _context4.sent;
38512
38630
  DivaStandardPlanner = _yield$import["default"];
@@ -38517,7 +38635,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38517
38635
  return _context4.abrupt("break", 21);
38518
38636
  case 15:
38519
38637
  _context4.next = 17;
38520
- return import('./DivaBoxPlanner-ef50f3c1.js');
38638
+ return import('./DivaBoxPlanner-4d8f4d5d.js');
38521
38639
  case 17:
38522
38640
  _yield$import2 = _context4.sent;
38523
38641
  DivaBoxPlanner = _yield$import2["default"];
@@ -39275,7 +39393,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
39275
39393
  planner3DGridEnabled: false,
39276
39394
  mediaServiceSaveMode: 'STREAM',
39277
39395
  doShow3DDimensionLines: !!doShow3DDimensionLines
39278
- }, undefined);
39396
+ }, undefined, true);
39279
39397
  } else {
39280
39398
  this.handler3D.handle3DVisualizationChanged(mode, params);
39281
39399
  }
@@ -40271,7 +40389,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40271
40389
  key: "initialize",
40272
40390
  value: function () {
40273
40391
  var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
40274
- var viewReadyPromise, loadSuccessful, _this$actions16, _set$getDivaArticles, _this$actions15, _this$actions15$toggl, initSetState, set, oldProductId, result, _this$actions17, catalogData, initializationId, _this$plannerConfig$a;
40392
+ var viewReadyPromise, loadSuccessful;
40275
40393
  return _regeneratorRuntime.wrap(function _callee14$(_context14) {
40276
40394
  while (1) switch (_context14.prev = _context14.next) {
40277
40395
  case 0:
@@ -40300,59 +40418,97 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40300
40418
  DivaUtils.businessMetrics.setConfiguratorSessionId();
40301
40419
  }
40302
40420
  if (!loadSuccessful) {
40303
- _context14.next = 56;
40421
+ _context14.next = 27;
40304
40422
  break;
40305
40423
  }
40424
+ _context14.prev = 15;
40425
+ _context14.next = 18;
40426
+ return this.initializeSets(loadSuccessful, viewReadyPromise);
40427
+ case 18:
40428
+ return _context14.abrupt("return", _context14.sent);
40429
+ case 21:
40430
+ _context14.prev = 21;
40431
+ _context14.t0 = _context14["catch"](15);
40432
+ this.onInitializationError();
40433
+ return _context14.abrupt("return", false);
40434
+ case 25:
40435
+ _context14.next = 30;
40436
+ break;
40437
+ case 27:
40438
+ this.onInitializationError();
40439
+ //fehler beim laden vom basket..
40440
+ LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
40441
+ return _context14.abrupt("return", false);
40442
+ case 30:
40443
+ case "end":
40444
+ return _context14.stop();
40445
+ }
40446
+ }, _callee14, this, [[15, 21]]);
40447
+ }));
40448
+ function initialize() {
40449
+ return _initialize.apply(this, arguments);
40450
+ }
40451
+ return initialize;
40452
+ }()
40453
+ }, {
40454
+ key: "initializeSets",
40455
+ value: function () {
40456
+ var _initializeSets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(loadSuccessful, viewReadyPromise) {
40457
+ var _this$actions16, _set$getDivaArticles;
40458
+ var _this$actions15, _this$actions15$toggl, initSetState, set, oldProductId, result, _this$actions17, catalogData, initializationId, _this$plannerConfig$a;
40459
+ return _regeneratorRuntime.wrap(function _callee15$(_context15) {
40460
+ while (1) switch (_context15.prev = _context15.next) {
40461
+ case 0:
40306
40462
  if (!(typeof loadSuccessful != 'boolean')) {
40307
- _context14.next = 24;
40463
+ _context15.next = 9;
40308
40464
  break;
40309
40465
  }
40310
40466
  if (!(loadSuccessful.type == 'ProductList')) {
40311
- _context14.next = 24;
40467
+ _context15.next = 9;
40312
40468
  break;
40313
40469
  }
40314
- _context14.next = 19;
40470
+ _context15.next = 4;
40315
40471
  return viewReadyPromise;
40316
- case 19:
40317
- _context14.next = 21;
40472
+ case 4:
40473
+ _context15.next = 6;
40318
40474
  return this.initView();
40319
- case 21:
40475
+ case 6:
40320
40476
  this.subscribeToWebPlannerEvents();
40321
40477
  (_this$actions15 = this.actions) === null || _this$actions15 === void 0 || (_this$actions15$toggl = _this$actions15.toggleLoading) === null || _this$actions15$toggl === void 0 || _this$actions15$toggl.call(_this$actions15, 'Planner_Loading', false, false);
40322
- return _context14.abrupt("return", true);
40323
- case 24:
40478
+ return _context15.abrupt("return", true);
40479
+ case 9:
40324
40480
  this.divaNr = this.divaBasketHandler.actDivaNr;
40325
40481
  initSetState = this.getInitStateForSet();
40326
40482
  this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
40327
- _context14.next = 29;
40483
+ _context15.next = 14;
40328
40484
  return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
40329
- case 29:
40485
+ case 14:
40330
40486
  set = this.actSet();
40331
40487
  oldProductId = this.divaBasketHandler.actBasket.MatchingProductId || this.divaBasketHandler.actBasket.OrigProductId;
40332
40488
  if (!(oldProductId && set && set !== null && set !== void 0 && set.api.doCheckForProductsPrice())) {
40333
- _context14.next = 38;
40489
+ _context15.next = 23;
40334
40490
  break;
40335
40491
  }
40336
- _context14.next = 34;
40492
+ _context15.next = 19;
40337
40493
  return this.divaBasketHandler.getProduct(this.api, oldProductId);
40338
- case 34:
40339
- result = _context14.sent;
40494
+ case 19:
40495
+ result = _context15.sent;
40340
40496
  if (result) productHandlerInstance.handleFountMatchingProducts(set, [result], set.setHash);
40341
- _context14.next = 39;
40497
+ _context15.next = 24;
40342
40498
  break;
40343
- case 38:
40499
+ case 23:
40344
40500
  if (typeof loadSuccessful != 'boolean' && set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
40345
40501
  if (loadSuccessful.type != 'ProductList') {
40346
40502
  productHandlerInstance.handleFountMatchingProducts(set, [loadSuccessful], set.setHash);
40347
40503
  }
40348
40504
  }
40349
- case 39:
40350
- _context14.next = 41;
40505
+ case 24:
40506
+ _context15.next = 26;
40351
40507
  return viewReadyPromise;
40352
- case 41:
40353
- _context14.next = 43;
40508
+ case 26:
40509
+ _context15.next = 28;
40354
40510
  return this.initView();
40355
- case 43:
40511
+ case 28:
40356
40512
  (_this$actions16 = this.actions) === null || _this$actions16 === void 0 || _this$actions16.onEvent({
40357
40513
  type: 'onConfiguratorReady'
40358
40514
  });
@@ -40362,7 +40518,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40362
40518
  });
40363
40519
  }
40364
40520
  this.subscribeToWebPlannerEvents();
40365
- this.divaBasketHandler.actBasket;
40366
40521
  catalogData = set === null || set === void 0 ? void 0 : set.CatalogData;
40367
40522
  initializationId = undefined;
40368
40523
  if (this.divaBasketHandler.initializationTypeGetter == 'PRODUCT_ID') {
@@ -40387,25 +40542,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40387
40542
  initializationType: this.divaBasketHandler.initializationTypeGetter,
40388
40543
  initializationId: initializationId
40389
40544
  }, false);
40390
- _context14.next = 53;
40545
+ _context15.next = 37;
40391
40546
  return this.fillBaksetforOnWebPlanerConfigChange(undefined, true);
40392
- case 53:
40393
- return _context14.abrupt("return", true);
40394
- case 56:
40395
- this.onInitializationError();
40396
- //fehler beim laden vom basket..
40397
- LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
40398
- return _context14.abrupt("return", false);
40399
- case 59:
40547
+ case 37:
40548
+ return _context15.abrupt("return", true);
40549
+ case 38:
40400
40550
  case "end":
40401
- return _context14.stop();
40551
+ return _context15.stop();
40402
40552
  }
40403
- }, _callee14, this);
40553
+ }, _callee15, this);
40404
40554
  }));
40405
- function initialize() {
40406
- return _initialize.apply(this, arguments);
40555
+ function initializeSets(_x53, _x54) {
40556
+ return _initializeSets.apply(this, arguments);
40407
40557
  }
40408
- return initialize;
40558
+ return initializeSets;
40409
40559
  }()
40410
40560
  }, {
40411
40561
  key: "updatePlannerConfig",
@@ -40464,11 +40614,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40464
40614
  var _this$plannerConfig$a3;
40465
40615
  if (!(onErrorHandling !== null && onErrorHandling !== void 0 && onErrorHandling.hideErrorMsg)) {
40466
40616
  var _this$plannerConfig$a2, _this$i18n$t, _this$i18n4, _onErrorHandling$erro;
40617
+ var isWeb = this.api.getApplicationEnvironment() == 'WEB';
40467
40618
  (_this$plannerConfig$a2 = this.plannerConfig.actions) === null || _this$plannerConfig$a2 === void 0 || _this$plannerConfig$a2.openModal({
40468
40619
  title: (_this$i18n$t = (_this$i18n4 = this.i18n()) === null || _this$i18n4 === void 0 ? void 0 : _this$i18n4.t((_onErrorHandling$erro = onErrorHandling.errorMsg) !== null && _onErrorHandling$erro !== void 0 ? _onErrorHandling$erro : 'modals.error_accured')) !== null && _this$i18n$t !== void 0 ? _this$i18n$t : 'An error occured. Please try again later.',
40469
40620
  accept: true,
40470
40621
  callback: function callback(accepted) {
40471
- if (accepted && _this2.api.getApplicationEnvironment() == 'WEB') {
40622
+ if (accepted && isWeb) {
40472
40623
  var _this2$state;
40473
40624
  _this2.callEvent('onWebPlanerClose');
40474
40625
  ((_this2$state = _this2.state) === null || _this2$state === void 0 ? void 0 : _this2$state.isFullscreenComponent) && _this2.callEvent('onFullscreenClose');
@@ -40532,23 +40683,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40532
40683
  }, {
40533
40684
  key: "initView",
40534
40685
  value: (function () {
40535
- var _initView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15() {
40686
+ var _initView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16() {
40536
40687
  var set, plannerMode, _this$initConfigurato, _this$initPlannerView, _this$initConfigurato2, _this$updateViewPlann9;
40537
- return _regeneratorRuntime.wrap(function _callee15$(_context15) {
40538
- while (1) switch (_context15.prev = _context15.next) {
40688
+ return _regeneratorRuntime.wrap(function _callee16$(_context16) {
40689
+ while (1) switch (_context16.prev = _context16.next) {
40539
40690
  case 0:
40540
40691
  set = this.actSet();
40541
40692
  plannerMode = this.getPlannerMode();
40542
40693
  this.initConfiguratorMode(plannerMode);
40543
40694
  if (!(plannerMode == 'ProductList')) {
40544
- _context15.next = 7;
40695
+ _context16.next = 7;
40545
40696
  break;
40546
40697
  }
40547
40698
  (_this$initConfigurato = this.initConfiguratorStructure) === null || _this$initConfigurato === void 0 || _this$initConfigurato.call(this, setHandlerInstance.loadConfigStructureForOnlyProductsList());
40548
- _context15.next = 17;
40699
+ _context16.next = 17;
40549
40700
  break;
40550
40701
  case 7:
40551
- _context15.next = 9;
40702
+ _context16.next = 9;
40552
40703
  return (_this$initPlannerView = this.initPlannerView) === null || _this$initPlannerView === void 0 ? void 0 : _this$initPlannerView.call(this);
40553
40704
  case 9:
40554
40705
  //first load the Configuratorstructure STARTCONFIG
@@ -40562,13 +40713,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40562
40713
  this.onBasketInitialized();
40563
40714
  this.checkMatchingProducts('onInit');
40564
40715
  case 17:
40565
- _context15.next = 19;
40716
+ _context16.next = 19;
40566
40717
  return this.runInitMode(plannerMode);
40567
40718
  case 19:
40568
40719
  case "end":
40569
- return _context15.stop();
40720
+ return _context16.stop();
40570
40721
  }
40571
- }, _callee15, this);
40722
+ }, _callee16, this);
40572
40723
  }));
40573
40724
  function initView() {
40574
40725
  return _initView.apply(this, arguments);
@@ -40589,26 +40740,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40589
40740
  }, {
40590
40741
  key: "runInitMode",
40591
40742
  value: function () {
40592
- var _runInitMode = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(plannerMode) {
40743
+ var _runInitMode = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(plannerMode) {
40593
40744
  var _this$state3;
40594
40745
  var doDefault, _this$navigateToTabGr2, configStepKey, _this$actSet5, _this$navigateToTabGr3, _this$navigateToTabGr4, _this$navigateToTabGr5;
40595
- return _regeneratorRuntime.wrap(function _callee16$(_context16) {
40596
- while (1) switch (_context16.prev = _context16.next) {
40746
+ return _regeneratorRuntime.wrap(function _callee17$(_context17) {
40747
+ while (1) switch (_context17.prev = _context17.next) {
40597
40748
  case 0:
40598
40749
  doDefault = true;
40599
40750
  if (!(this.plannerConfig.initMode == 'OPEN_LEAFLET_BARRIER' || this.plannerConfig.initMode == 'SHOW_PDF')) {
40600
- _context16.next = 10;
40751
+ _context17.next = 10;
40601
40752
  break;
40602
40753
  }
40603
40754
  if (this.plannerConfig.initMode == 'OPEN_LEAFLET_BARRIER') this.ReturnTo = 'OPEN_LEAFLET_BARRIER';
40604
40755
  if (this.plannerConfig.initMode == 'SHOW_PDF') this.ReturnTo = 'OPEN_PDF';
40605
40756
  (_this$navigateToTabGr2 = this.navigateToTabGroup) === null || _this$navigateToTabGr2 === void 0 || _this$navigateToTabGr2.call(this, 'SUMMARY', undefined, true);
40606
40757
  //TODO lea bug das hier ist nur ein temporäre lößung https://app.asana.com/0/1200869909950432/1200998848659806
40607
- _context16.next = 7;
40758
+ _context17.next = 7;
40608
40759
  return this.saveToBasketWrapper();
40609
40760
  case 7:
40610
40761
  doDefault = false;
40611
- _context16.next = 11;
40762
+ _context17.next = 11;
40612
40763
  break;
40613
40764
  case 10:
40614
40765
  if (this.plannerConfig.initMode == 'OPENCONFIGTABGROUP' || this.api.getPlannerType() == 'JUMP_OVER_PLANNER' || this.api.getPlannerType() == 'JUMP_OVER_PLANNER_ONLY_MOBILE' && (_this$state3 = this.state) !== null && _this$state3 !== void 0 && _this$state3.dimensions.isMobile) {
@@ -40632,11 +40783,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40632
40783
  }
40633
40784
  case 12:
40634
40785
  case "end":
40635
- return _context16.stop();
40786
+ return _context17.stop();
40636
40787
  }
40637
- }, _callee16, this);
40788
+ }, _callee17, this);
40638
40789
  }));
40639
- function runInitMode(_x53) {
40790
+ function runInitMode(_x55) {
40640
40791
  return _runInitMode.apply(this, arguments);
40641
40792
  }
40642
40793
  return runInitMode;
@@ -40644,16 +40795,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40644
40795
  }, {
40645
40796
  key: "addSetToActPlanningByDivaNr",
40646
40797
  value: function () {
40647
- var _addSetToActPlanningByDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(divaNr) {
40798
+ var _addSetToActPlanningByDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(divaNr) {
40648
40799
  var _this$updateViewPlann10;
40649
40800
  var set, orderSets, i, orderset, lastSetToInitialize, loadedSet, articlesKeys;
40650
- return _regeneratorRuntime.wrap(function _callee17$(_context17) {
40651
- while (1) switch (_context17.prev = _context17.next) {
40801
+ return _regeneratorRuntime.wrap(function _callee18$(_context18) {
40802
+ while (1) switch (_context18.prev = _context18.next) {
40652
40803
  case 0:
40653
40804
  set = this.actSet();
40654
40805
  this.divaBasketHandler.updateDivaNrInBasket(divaNr);
40655
40806
  this.divaBasketHandler.setIgnoreInitObjectWhenInitializing();
40656
- _context17.next = 5;
40807
+ _context18.next = 5;
40657
40808
  return this.divaBasketHandler.initializeBasket(this.api);
40658
40809
  case 5:
40659
40810
  orderSets = this.divaBasketHandler.actBasket.OrderSets;
@@ -40661,30 +40812,30 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40661
40812
  i = 0;
40662
40813
  case 8:
40663
40814
  if (!(i < orderSets.length)) {
40664
- _context17.next = 24;
40815
+ _context18.next = 24;
40665
40816
  break;
40666
40817
  }
40667
40818
  orderset = orderSets[i];
40668
40819
  lastSetToInitialize = setHandlerInstance.getOrderSetShouldInitPlanner(orderSets, i);
40669
40820
  loadedSet = setHandlerInstance.findLoadedSet(this.sets, orderset.CatalogCodex, orderset.AccountGUID);
40670
40821
  if (!loadedSet) {
40671
- _context17.next = 18;
40822
+ _context18.next = 18;
40672
40823
  break;
40673
40824
  }
40674
- _context17.next = 15;
40825
+ _context18.next = 15;
40675
40826
  return setHandlerInstance.addOrderSetArticlesToExistingSet(loadedSet, orderset, lastSetToInitialize);
40676
40827
  case 15:
40677
40828
  this.checkMatchingProducts('onAdd');
40678
- _context17.next = 20;
40829
+ _context18.next = 20;
40679
40830
  break;
40680
40831
  case 18:
40681
- _context17.next = 20;
40832
+ _context18.next = 20;
40682
40833
  return setHandlerInstance.initSet(orderset, this.getInitStateForSet(), lastSetToInitialize);
40683
40834
  case 20:
40684
40835
  this.cleanUpEmptySets(true);
40685
40836
  case 21:
40686
40837
  i++;
40687
- _context17.next = 8;
40838
+ _context18.next = 8;
40688
40839
  break;
40689
40840
  case 24:
40690
40841
  this.divaBasketHandler.actBasket.OrderSets = [];
@@ -40696,11 +40847,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40696
40847
  this.loadPaletteInfos(undefined, [articlesKeys[0]], articlesKeys);
40697
40848
  case 31:
40698
40849
  case "end":
40699
- return _context17.stop();
40850
+ return _context18.stop();
40700
40851
  }
40701
- }, _callee17, this);
40852
+ }, _callee18, this);
40702
40853
  }));
40703
- function addSetToActPlanningByDivaNr(_x54) {
40854
+ function addSetToActPlanningByDivaNr(_x56) {
40704
40855
  return _addSetToActPlanningByDivaNr.apply(this, arguments);
40705
40856
  }
40706
40857
  return addSetToActPlanningByDivaNr;
@@ -40733,28 +40884,28 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40733
40884
  }, {
40734
40885
  key: "setActSetCurConfigStepKey",
40735
40886
  value: function () {
40736
- var _setActSetCurConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(curConfigStepKey) {
40887
+ var _setActSetCurConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(curConfigStepKey) {
40737
40888
  var set;
40738
- return _regeneratorRuntime.wrap(function _callee18$(_context18) {
40739
- while (1) switch (_context18.prev = _context18.next) {
40889
+ return _regeneratorRuntime.wrap(function _callee19$(_context19) {
40890
+ while (1) switch (_context19.prev = _context19.next) {
40740
40891
  case 0:
40741
40892
  set = this.actSet();
40742
40893
  if (set) {
40743
- _context18.next = 3;
40894
+ _context19.next = 3;
40744
40895
  break;
40745
40896
  }
40746
- return _context18.abrupt("return");
40897
+ return _context19.abrupt("return");
40747
40898
  case 3:
40748
40899
  set.ActConfigStepKey = curConfigStepKey;
40749
- _context18.next = 6;
40900
+ _context19.next = 6;
40750
40901
  return setHandlerInstance.updateNavigation(set);
40751
40902
  case 6:
40752
40903
  case "end":
40753
- return _context18.stop();
40904
+ return _context19.stop();
40754
40905
  }
40755
- }, _callee18, this);
40906
+ }, _callee19, this);
40756
40907
  }));
40757
- function setActSetCurConfigStepKey(_x55) {
40908
+ function setActSetCurConfigStepKey(_x57) {
40758
40909
  return _setActSetCurConfigStepKey.apply(this, arguments);
40759
40910
  }
40760
40911
  return setActSetCurConfigStepKey;
@@ -40903,17 +41054,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40903
41054
  }, {
40904
41055
  key: "deletePlannerElement",
40905
41056
  value: function () {
40906
- var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(setId, elementId, denyElementSelectionClear) {
41057
+ var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(setId, elementId, denyElementSelectionClear) {
40907
41058
  var _this$updateViewPlann11;
40908
41059
  var set, result, _this$updateElementSe5, _this$updateElementSe6;
40909
- return _regeneratorRuntime.wrap(function _callee19$(_context19) {
40910
- while (1) switch (_context19.prev = _context19.next) {
41060
+ return _regeneratorRuntime.wrap(function _callee20$(_context20) {
41061
+ while (1) switch (_context20.prev = _context20.next) {
40911
41062
  case 0:
40912
41063
  set = this.sets[setId];
40913
- _context19.next = 3;
41064
+ _context20.next = 3;
40914
41065
  return setHandlerInstance.deleteElementFromSetByElemId(set, elementId, true);
40915
41066
  case 3:
40916
- result = _context19.sent;
41067
+ result = _context20.sent;
40917
41068
  this.updateConfigStructure();
40918
41069
  (_this$updateViewPlann11 = this.updateViewPlannerElements) === null || _this$updateViewPlann11 === void 0 || _this$updateViewPlann11.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
40919
41070
  this.updatePlannerView('DELETE_PLANNER_ELEMENT');
@@ -40924,17 +41075,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40924
41075
  }
40925
41076
  this.updatePriceInView();
40926
41077
  this.checkMatchingProducts('onDelete');
40927
- _context19.next = 14;
41078
+ _context20.next = 14;
40928
41079
  return this.getFreePlacesOnGrids(undefined, 'deleteElement');
40929
41080
  case 14:
40930
41081
  this.plannerChangeLog('onDeletePlanner');
40931
41082
  case 15:
40932
41083
  case "end":
40933
- return _context19.stop();
41084
+ return _context20.stop();
40934
41085
  }
40935
- }, _callee19, this);
41086
+ }, _callee20, this);
40936
41087
  }));
40937
- function deletePlannerElement(_x56, _x57, _x58) {
41088
+ function deletePlannerElement(_x58, _x59, _x60) {
40938
41089
  return _deletePlannerElement.apply(this, arguments);
40939
41090
  }
40940
41091
  return deletePlannerElement;
@@ -40948,17 +41099,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40948
41099
  }, {
40949
41100
  key: "copyPlannerElement",
40950
41101
  value: (function () {
40951
- var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(setId, elementId, curConfigKey, copyInfo) {
41102
+ var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(setId, elementId, curConfigKey, copyInfo) {
40952
41103
  var _this$updateViewPlann12;
40953
41104
  var set, newSelectedArticle, newConfigStepKey, _this$updateElementSe7, baseArticle;
40954
- return _regeneratorRuntime.wrap(function _callee20$(_context20) {
40955
- while (1) switch (_context20.prev = _context20.next) {
41105
+ return _regeneratorRuntime.wrap(function _callee21$(_context21) {
41106
+ while (1) switch (_context21.prev = _context21.next) {
40956
41107
  case 0:
40957
41108
  set = this.sets[setId];
40958
- _context20.next = 3;
41109
+ _context21.next = 3;
40959
41110
  return setHandlerInstance.copyPlannerElement(set, elementId, copyInfo);
40960
41111
  case 3:
40961
- newSelectedArticle = _context20.sent;
41112
+ newSelectedArticle = _context21.sent;
40962
41113
  this.updateConfigStructure();
40963
41114
  (_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
40964
41115
  this.updatePlannerView('COPY_PLANNER_ELEMENT');
@@ -40972,14 +41123,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40972
41123
  (_this$updateElementSe7 = this.updateElementSelectionPlanner) === null || _this$updateElementSe7 === void 0 || _this$updateElementSe7.call(this, [baseArticle.setId], [baseArticle.elementId], true);
40973
41124
  }
40974
41125
  this.checkMatchingProducts('onCopy');
40975
- return _context20.abrupt("return", newConfigStepKey);
41126
+ return _context21.abrupt("return", newConfigStepKey);
40976
41127
  case 13:
40977
41128
  case "end":
40978
- return _context20.stop();
41129
+ return _context21.stop();
40979
41130
  }
40980
- }, _callee20, this);
41131
+ }, _callee21, this);
40981
41132
  }));
40982
- function copyPlannerElement(_x59, _x60, _x61, _x62) {
41133
+ function copyPlannerElement(_x61, _x62, _x63, _x64) {
40983
41134
  return _copyPlannerElement.apply(this, arguments);
40984
41135
  }
40985
41136
  return copyPlannerElement;
@@ -41008,33 +41159,33 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41008
41159
  }, {
41009
41160
  key: "getFreePlacesOnGrids",
41010
41161
  value: function () {
41011
- var _getFreePlacesOnGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(gridGroup, from) {
41162
+ var _getFreePlacesOnGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(gridGroup, from) {
41012
41163
  var _this$updateFreePlace;
41013
41164
  var set, freeShelfGrids, plannedShelfGrids;
41014
- return _regeneratorRuntime.wrap(function _callee21$(_context21) {
41015
- while (1) switch (_context21.prev = _context21.next) {
41165
+ return _regeneratorRuntime.wrap(function _callee22$(_context22) {
41166
+ while (1) switch (_context22.prev = _context22.next) {
41016
41167
  case 0:
41017
41168
  set = this.actSet();
41018
41169
  if (set) {
41019
- _context21.next = 3;
41170
+ _context22.next = 3;
41020
41171
  break;
41021
41172
  }
41022
41173
  throw new Error('getFreePlacesOnGrids: act set is not defined!');
41023
41174
  case 3:
41024
41175
  if (!gridGroup) {
41025
- _context21.next = 9;
41176
+ _context22.next = 9;
41026
41177
  break;
41027
41178
  }
41028
- _context21.next = 6;
41179
+ _context22.next = 6;
41029
41180
  return setHandlerInstance.getFreeShelfGrids(set, gridGroup);
41030
41181
  case 6:
41031
- _context21.t0 = _context21.sent;
41032
- _context21.next = 10;
41182
+ _context22.t0 = _context22.sent;
41183
+ _context22.next = 10;
41033
41184
  break;
41034
41185
  case 9:
41035
- _context21.t0 = undefined;
41186
+ _context22.t0 = undefined;
41036
41187
  case 10:
41037
- freeShelfGrids = _context21.t0;
41188
+ freeShelfGrids = _context22.t0;
41038
41189
  plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
41039
41190
  LOG$1.debug('TOULA', 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
41040
41191
  LOG$1.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
@@ -41042,17 +41193,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41042
41193
  freeShelfGrids: freeShelfGrids,
41043
41194
  plannedShelfGrids: plannedShelfGrids
41044
41195
  });
41045
- return _context21.abrupt("return", {
41196
+ return _context22.abrupt("return", {
41046
41197
  freeShelfGrids: freeShelfGrids,
41047
41198
  plannedShelfGrids: plannedShelfGrids
41048
41199
  });
41049
41200
  case 16:
41050
41201
  case "end":
41051
- return _context21.stop();
41202
+ return _context22.stop();
41052
41203
  }
41053
- }, _callee21, this);
41204
+ }, _callee22, this);
41054
41205
  }));
41055
- function getFreePlacesOnGrids(_x63, _x64) {
41206
+ function getFreePlacesOnGrids(_x65, _x66) {
41056
41207
  return _getFreePlacesOnGrids.apply(this, arguments);
41057
41208
  }
41058
41209
  return getFreePlacesOnGrids;
@@ -41069,36 +41220,36 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41069
41220
  }, {
41070
41221
  key: "moveShelfItemToGrid",
41071
41222
  value: function () {
41072
- var _moveShelfItemToGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(accessoireBasketId, parentBasketId, gridName, cellIndex) {
41223
+ var _moveShelfItemToGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(accessoireBasketId, parentBasketId, gridName, cellIndex) {
41073
41224
  var set, newGridId;
41074
- return _regeneratorRuntime.wrap(function _callee22$(_context22) {
41075
- while (1) switch (_context22.prev = _context22.next) {
41225
+ return _regeneratorRuntime.wrap(function _callee23$(_context23) {
41226
+ while (1) switch (_context23.prev = _context23.next) {
41076
41227
  case 0:
41077
41228
  set = this.actSet();
41078
41229
  if (set) {
41079
- _context22.next = 3;
41230
+ _context23.next = 3;
41080
41231
  break;
41081
41232
  }
41082
- return _context22.abrupt("return");
41233
+ return _context23.abrupt("return");
41083
41234
  case 3:
41084
- _context22.next = 5;
41235
+ _context23.next = 5;
41085
41236
  return setHandlerInstance.moveShelfItemToGrid(set, accessoireBasketId, parentBasketId, gridName, cellIndex);
41086
41237
  case 5:
41087
- newGridId = _context22.sent;
41238
+ newGridId = _context23.sent;
41088
41239
  this.updatePlannerView('MOVE_SHELF_ITEM');
41089
41240
  if (!newGridId) {
41090
- _context22.next = 10;
41241
+ _context23.next = 10;
41091
41242
  break;
41092
41243
  }
41093
- _context22.next = 10;
41244
+ _context23.next = 10;
41094
41245
  return this.getFreePlacesOnGrids(newGridId, 'move shelf');
41095
41246
  case 10:
41096
41247
  case "end":
41097
- return _context22.stop();
41248
+ return _context23.stop();
41098
41249
  }
41099
- }, _callee22, this);
41250
+ }, _callee23, this);
41100
41251
  }));
41101
- function moveShelfItemToGrid(_x65, _x66, _x67, _x68) {
41252
+ function moveShelfItemToGrid(_x67, _x68, _x69, _x70) {
41102
41253
  return _moveShelfItemToGrid.apply(this, arguments);
41103
41254
  }
41104
41255
  return moveShelfItemToGrid;
@@ -41106,27 +41257,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41106
41257
  }, {
41107
41258
  key: "resetArticle",
41108
41259
  value: function () {
41109
- var _resetArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(basketId) {
41260
+ var _resetArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(basketId) {
41110
41261
  var set;
41111
- return _regeneratorRuntime.wrap(function _callee23$(_context23) {
41112
- while (1) switch (_context23.prev = _context23.next) {
41262
+ return _regeneratorRuntime.wrap(function _callee24$(_context24) {
41263
+ while (1) switch (_context24.prev = _context24.next) {
41113
41264
  case 0:
41114
41265
  set = this.actSet();
41115
41266
  if (set) {
41116
- _context23.next = 3;
41267
+ _context24.next = 3;
41117
41268
  break;
41118
41269
  }
41119
- return _context23.abrupt("return");
41270
+ return _context24.abrupt("return");
41120
41271
  case 3:
41121
- _context23.next = 5;
41272
+ _context24.next = 5;
41122
41273
  return setHandlerInstance.resetArticle(set, basketId);
41123
41274
  case 5:
41124
41275
  case "end":
41125
- return _context23.stop();
41276
+ return _context24.stop();
41126
41277
  }
41127
- }, _callee23, this);
41278
+ }, _callee24, this);
41128
41279
  }));
41129
- function resetArticle(_x69) {
41280
+ function resetArticle(_x71) {
41130
41281
  return _resetArticle.apply(this, arguments);
41131
41282
  }
41132
41283
  return resetArticle;
@@ -41156,10 +41307,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41156
41307
  }, {
41157
41308
  key: "checkMatchingProducts",
41158
41309
  value: function () {
41159
- var _checkMatchingProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(from) {
41310
+ var _checkMatchingProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(from) {
41160
41311
  var set, _set$getMatchingProdu, _set$getMatchingOrigP, _set$getMatchingOrigP2, _set$getMatchingProdu2;
41161
- return _regeneratorRuntime.wrap(function _callee24$(_context24) {
41162
- while (1) switch (_context24.prev = _context24.next) {
41312
+ return _regeneratorRuntime.wrap(function _callee25$(_context25) {
41313
+ while (1) switch (_context25.prev = _context25.next) {
41163
41314
  case 0:
41164
41315
  set = this.actSet();
41165
41316
  if (set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
@@ -41173,20 +41324,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41173
41324
  }
41174
41325
  }
41175
41326
  if (!(set !== null && set !== void 0 && set.api.doCheckForProductsMatch())) {
41176
- _context24.next = 6;
41327
+ _context25.next = 6;
41177
41328
  break;
41178
41329
  }
41179
- _context24.next = 5;
41330
+ _context25.next = 5;
41180
41331
  return productHandlerInstance.updateProducts(this.setsAsArray, this.api, this.divaBasketHandler.divaWWSHandler, from);
41181
41332
  case 5:
41182
41333
  this.updatePriceInView();
41183
41334
  case 6:
41184
41335
  case "end":
41185
- return _context24.stop();
41336
+ return _context25.stop();
41186
41337
  }
41187
- }, _callee24, this);
41338
+ }, _callee25, this);
41188
41339
  }));
41189
- function checkMatchingProducts(_x70) {
41340
+ function checkMatchingProducts(_x72) {
41190
41341
  return _checkMatchingProducts.apply(this, arguments);
41191
41342
  }
41192
41343
  return checkMatchingProducts;
@@ -41263,7 +41414,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41263
41414
  }, {
41264
41415
  key: "saveToBasketWrapper",
41265
41416
  value: function () {
41266
- var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(event, repairOnly, force) {
41417
+ var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
41267
41418
  var _this$actions27,
41268
41419
  _this$actions27$toggl,
41269
41420
  _this$actions28,
@@ -41272,8 +41423,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41272
41423
  _this$actions32,
41273
41424
  _this$i18n14;
41274
41425
  var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions26, result, _this$actions29, _this$i18n8, _this$i18n9, _this$actions30, _this$i18n10, _this$i18n11, _this$actions31, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
41275
- return _regeneratorRuntime.wrap(function _callee25$(_context25) {
41276
- while (1) switch (_context25.prev = _context25.next) {
41426
+ return _regeneratorRuntime.wrap(function _callee26$(_context26) {
41427
+ while (1) switch (_context26.prev = _context26.next) {
41277
41428
  case 0:
41278
41429
  returnTo = this.getReturnTo(event);
41279
41430
  finalEvent = {
@@ -41281,50 +41432,50 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41281
41432
  saveBasket: true
41282
41433
  };
41283
41434
  if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
41284
- _context25.next = 21;
41435
+ _context26.next = 21;
41285
41436
  break;
41286
41437
  }
41287
41438
  product = undefined;
41288
41439
  if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
41289
- _context25.next = 10;
41440
+ _context26.next = 10;
41290
41441
  break;
41291
41442
  }
41292
41443
  url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
41293
- _context25.next = 8;
41444
+ _context26.next = 8;
41294
41445
  return this.api.getDataCache(url, url, undefined, 'catalog');
41295
41446
  case 8:
41296
- _result = _context25.sent;
41447
+ _result = _context26.sent;
41297
41448
  product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
41298
41449
  case 10:
41299
- _context25.next = 12;
41450
+ _context26.next = 12;
41300
41451
  return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
41301
41452
  case 12:
41302
- finalEvent = _context25.sent;
41453
+ finalEvent = _context26.sent;
41303
41454
  if (finalEvent) {
41304
- _context25.next = 17;
41455
+ _context26.next = 17;
41305
41456
  break;
41306
41457
  }
41307
- return _context25.abrupt("return", 'canceled');
41458
+ return _context26.abrupt("return", 'canceled');
41308
41459
  case 17:
41309
41460
  if (!(!finalEvent.saveBasket && finalEvent.event)) {
41310
- _context25.next = 20;
41461
+ _context26.next = 20;
41311
41462
  break;
41312
41463
  }
41313
41464
  (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
41314
41465
  type: finalEvent.event
41315
41466
  });
41316
- return _context25.abrupt("return", 'canceled');
41467
+ return _context26.abrupt("return", 'canceled');
41317
41468
  case 20:
41318
41469
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
41319
41470
  case 21:
41320
41471
  (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, true);
41321
- _context25.next = 24;
41472
+ _context26.next = 24;
41322
41473
  return this.saveToBasket(finalEvent.event, repairOnly, force);
41323
41474
  case 24:
41324
- result = _context25.sent;
41475
+ result = _context26.sent;
41325
41476
  (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || (_this$actions28$toggl = _this$actions28.toggleLoading) === null || _this$actions28$toggl === void 0 || _this$actions28$toggl.call(_this$actions28, 'Planner_Saving', false, false);
41326
41477
  if (!(result === 'canceled')) {
41327
- _context25.next = 30;
41478
+ _context26.next = 30;
41328
41479
  break;
41329
41480
  }
41330
41481
  LOG$1.error(new DivaError('failed to save Basket'));
@@ -41332,10 +41483,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41332
41483
  text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
41333
41484
  accept: true
41334
41485
  });
41335
- return _context25.abrupt("return", result);
41486
+ return _context26.abrupt("return", result);
41336
41487
  case 30:
41337
- _context25.t0 = returnTo;
41338
- _context25.next = _context25.t0 === 'OPEN_PDF' ? 33 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context25.t0 === 'OPEN_CONTACT_FORM' ? 36 : 36;
41488
+ _context26.t0 = returnTo;
41489
+ _context26.next = _context26.t0 === 'OPEN_PDF' ? 33 : _context26.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context26.t0 === 'OPEN_CONTACT_FORM' ? 36 : 36;
41339
41490
  break;
41340
41491
  case 33:
41341
41492
  if (!this.getBasket().PDFDocumentURL) {
@@ -41355,7 +41506,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41355
41506
  }
41356
41507
  });
41357
41508
  }
41358
- return _context25.abrupt("break", 36);
41509
+ return _context26.abrupt("break", 36);
41359
41510
  case 35:
41360
41511
  (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
41361
41512
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
@@ -41363,20 +41514,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41363
41514
  });
41364
41515
  case 36:
41365
41516
  if (!(result == 'noArticleToSave')) {
41366
- _context25.next = 39;
41517
+ _context26.next = 39;
41367
41518
  break;
41368
41519
  }
41369
41520
  (_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
41370
- return _context25.abrupt("return", 'canceled');
41521
+ return _context26.abrupt("return", 'canceled');
41371
41522
  case 39:
41372
- return _context25.abrupt("return", result);
41523
+ return _context26.abrupt("return", result);
41373
41524
  case 40:
41374
41525
  case "end":
41375
- return _context25.stop();
41526
+ return _context26.stop();
41376
41527
  }
41377
- }, _callee25, this);
41528
+ }, _callee26, this);
41378
41529
  }));
41379
- function saveToBasketWrapper(_x71, _x72, _x73) {
41530
+ function saveToBasketWrapper(_x73, _x74, _x75) {
41380
41531
  return _saveToBasketWrapper.apply(this, arguments);
41381
41532
  }
41382
41533
  return saveToBasketWrapper;
@@ -41384,43 +41535,43 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41384
41535
  }, {
41385
41536
  key: "saveToBasket",
41386
41537
  value: function () {
41387
- var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
41538
+ var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(event, repairOnly, force) {
41388
41539
  var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
41389
41540
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
41390
- return _regeneratorRuntime.wrap(function _callee26$(_context26) {
41391
- while (1) switch (_context26.prev = _context26.next) {
41541
+ return _regeneratorRuntime.wrap(function _callee27$(_context27) {
41542
+ while (1) switch (_context27.prev = _context27.next) {
41392
41543
  case 0:
41393
41544
  set = this.actSet();
41394
41545
  if (!(setHandlerInstance.isNoArticleToSave(this.sets) && !force)) {
41395
- _context26.next = 3;
41546
+ _context27.next = 3;
41396
41547
  break;
41397
41548
  }
41398
- return _context26.abrupt("return", 'noArticleToSave');
41549
+ return _context27.abrupt("return", 'noArticleToSave');
41399
41550
  case 3:
41400
41551
  actBasket = this.divaBasketHandler.actBasket;
41401
41552
  returnTo = this.getReturnTo(event);
41402
41553
  if (!((_returnTo = returnTo) !== null && _returnTo !== void 0 && _returnTo.startsWith('FAVORITS') && favoritesHandlerInstance.FavoritesDefined(set))) {
41403
- _context26.next = 13;
41554
+ _context27.next = 13;
41404
41555
  break;
41405
41556
  }
41406
41557
  oldReturnTo = returnTo;
41407
41558
  this.ReturnTo = returnTo.replace('FAVORITS_', '');
41408
- _context26.next = 10;
41559
+ _context27.next = 10;
41409
41560
  return this.handleFavorites('SAVE');
41410
41561
  case 10:
41411
- result = _context26.sent;
41562
+ result = _context27.sent;
41412
41563
  if (result === 'canceled') {
41413
41564
  this.ReturnTo = oldReturnTo;
41414
41565
  }
41415
- return _context26.abrupt("return", result);
41566
+ return _context27.abrupt("return", result);
41416
41567
  case 13:
41417
- _context26.t0 = this.divaBasketHandler;
41418
- _context26.t1 = this.divaBasketHandler.actDivaNr;
41419
- _context26.next = 17;
41568
+ _context27.t0 = this.divaBasketHandler;
41569
+ _context27.t1 = this.divaBasketHandler.actDivaNr;
41570
+ _context27.next = 17;
41420
41571
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !!repairOnly, this.doAllowSetPlanner(), this.ReturnTo);
41421
41572
  case 17:
41422
- _context26.t2 = _context26.sent;
41423
- _context26.t0.setBasketData.call(_context26.t0, _context26.t1, _context26.t2);
41573
+ _context27.t2 = _context27.sent;
41574
+ _context27.t0.setBasketData.call(_context27.t0, _context27.t1, _context27.t2);
41424
41575
  if ((_returnTo2 = returnTo) !== null && _returnTo2 !== void 0 && _returnTo2.endsWith('OPEN_SELLER_BASKET')) {
41425
41576
  this.ReturnTo = 'OPEN_SELLER_BASKET';
41426
41577
  returnTo = this.ReturnTo;
@@ -41435,11 +41586,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41435
41586
  this.divaBasketHandler.fillOrigConfigurations();
41436
41587
  actBasket.Updated = Date.now();
41437
41588
  if (!returnTo) {
41438
- _context26.next = 52;
41589
+ _context27.next = 52;
41439
41590
  break;
41440
41591
  }
41441
- _context26.t3 = returnTo;
41442
- _context26.next = _context26.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 28 : _context26.t3 === 'OPEN_SELLER_BASKET' ? 31 : _context26.t3 === 'OPEN_PDF' ? 33 : _context26.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context26.t3 === 'SAVE_BASKET' ? 33 : _context26.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context26.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 52;
41592
+ _context27.t3 = returnTo;
41593
+ _context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 28 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 31 : _context27.t3 === 'OPEN_PDF' ? 33 : _context27.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context27.t3 === 'SAVE_BASKET' ? 33 : _context27.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context27.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 52;
41443
41594
  break;
41444
41595
  case 28:
41445
41596
  (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
@@ -41453,7 +41604,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41453
41604
  basketData: actBasket
41454
41605
  }
41455
41606
  });
41456
- return _context26.abrupt("break", 52);
41607
+ return _context27.abrupt("break", 52);
41457
41608
  case 31:
41458
41609
  (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
41459
41610
  type: 'SELLER',
@@ -41465,23 +41616,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41465
41616
  basketData: actBasket
41466
41617
  }
41467
41618
  });
41468
- return _context26.abrupt("break", 52);
41619
+ return _context27.abrupt("break", 52);
41469
41620
  case 33:
41470
41621
  if (!(event == 'onSaveProduct')) {
41471
- _context26.next = 43;
41622
+ _context27.next = 43;
41472
41623
  break;
41473
41624
  }
41474
41625
  //copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
41475
41626
  actBasket = new BasketData(JSON.parse(JSON.stringify(actBasket)));
41476
- _context26.next = 37;
41627
+ _context27.next = 37;
41477
41628
  return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
41478
41629
  case 37:
41479
- _context26.next = 39;
41630
+ _context27.next = 39;
41480
41631
  return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
41481
41632
  case 39:
41482
- newDivaNr = _context26.sent;
41633
+ newDivaNr = _context27.sent;
41483
41634
  actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
41484
- _context26.next = 51;
41635
+ _context27.next = 51;
41485
41636
  break;
41486
41637
  case 43:
41487
41638
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
@@ -41490,32 +41641,32 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41490
41641
  }
41491
41642
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
41492
41643
  actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
41493
- _context26.next = 48;
41644
+ _context27.next = 48;
41494
41645
  return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo);
41495
41646
  case 48:
41496
- _result2 = _context26.sent;
41647
+ _result2 = _context27.sent;
41497
41648
  if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
41498
- _context26.next = 51;
41649
+ _context27.next = 51;
41499
41650
  break;
41500
41651
  }
41501
- return _context26.abrupt("return", 'canceled');
41652
+ return _context27.abrupt("return", 'canceled');
41502
41653
  case 51:
41503
- return _context26.abrupt("break", 52);
41654
+ return _context27.abrupt("break", 52);
41504
41655
  case 52:
41505
41656
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
41506
41657
  actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
41507
- _context26.next = 56;
41658
+ _context27.next = 56;
41508
41659
  return this.addToBasket(actBasket, event);
41509
41660
  case 56:
41510
- product = _context26.sent;
41511
- return _context26.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
41661
+ product = _context27.sent;
41662
+ return _context27.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
41512
41663
  case 58:
41513
41664
  case "end":
41514
- return _context26.stop();
41665
+ return _context27.stop();
41515
41666
  }
41516
- }, _callee26, this);
41667
+ }, _callee27, this);
41517
41668
  }));
41518
- function saveToBasket(_x74, _x75, _x76) {
41669
+ function saveToBasket(_x76, _x77, _x78) {
41519
41670
  return _saveToBasket.apply(this, arguments);
41520
41671
  }
41521
41672
  return saveToBasket;
@@ -41560,7 +41711,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41560
41711
  return 'PLANNER';
41561
41712
  }
41562
41713
  var plannerType = (_set$CatalogData$plan = set === null || set === void 0 ? void 0 : set.CatalogData.plannerType) !== null && _set$CatalogData$plan !== void 0 ? _set$CatalogData$plan : this.api.getPlannerType();
41563
-
41714
+ var doTryOptimize = plannerType == 'CUSTOMER_OPTIMIZED_PLANNER' || plannerType == 'JUMP_OVER_PLANNER_ONLY_MOBILE' || plannerType == 'JUMP_OVER_PLANNER';
41564
41715
  //if planner is hidden by config but nothing is planned initially
41565
41716
  if (plannerType === 'NONE') {
41566
41717
  var _this$plannerConfig$a8, _this$actSet10;
@@ -41580,7 +41731,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41580
41731
  if (doShowPlanner) ret = 'PLANNER';
41581
41732
  plannerType = undefined;
41582
41733
  }
41583
- if (plannerType === 'CUSTOMER_OPTIMIZED_PLANNER') {
41734
+ if (doTryOptimize) {
41584
41735
  var _set$CatalogData$allC;
41585
41736
  var optimizationReason = undefined;
41586
41737
  //hide planner step when only one article is visible that is already planned
@@ -41599,7 +41750,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41599
41750
  }
41600
41751
  plannerType = undefined;
41601
41752
  }
41602
- if (plannerType) return plannerType;
41753
+ if (plannerType !== 'CUSTOMER_OPTIMIZED_PLANNER' && plannerType) return plannerType;
41603
41754
  if (doShowPlanner) {
41604
41755
  ret = 'PLANNER';
41605
41756
  }
@@ -41651,6 +41802,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41651
41802
  value: function getEmailConfig() {
41652
41803
  return this.api.getEmailConfig();
41653
41804
  }
41805
+ }, {
41806
+ key: "getAllConfig",
41807
+ value: function getAllConfig() {
41808
+ return this.plannerConfig.settings;
41809
+ }
41654
41810
  }, {
41655
41811
  key: "getTemplateConfig",
41656
41812
  value: function getTemplateConfig() {
@@ -41679,62 +41835,68 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41679
41835
  var _this$actSet18;
41680
41836
  return (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 || (_this$actSet18 = _this$actSet18.CatalogData) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.defaultDimensionsActive;
41681
41837
  }
41838
+ }, {
41839
+ key: "autoOpenContentItem",
41840
+ value: function autoOpenContentItem() {
41841
+ var _this$actSet19;
41842
+ return (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 || (_this$actSet19 = _this$actSet19.CatalogData) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.autoOpenContentItem;
41843
+ }
41682
41844
  }, {
41683
41845
  key: "hidePlannerUiIcons",
41684
41846
  value: function hidePlannerUiIcons() {
41685
- var _this$actSet19;
41686
- return (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 || (_this$actSet19 = _this$actSet19.CatalogData) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.hidePlannerUiIcons;
41847
+ var _this$actSet20;
41848
+ return (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 || (_this$actSet20 = _this$actSet20.CatalogData) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.hidePlannerUiIcons;
41687
41849
  }
41688
41850
  }, {
41689
41851
  key: "doShowPlannerReplaceMode",
41690
41852
  value: function doShowPlannerReplaceMode() {
41691
- var _this$actSet20, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
41692
- var catalogData = (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.CatalogData;
41853
+ var _this$actSet21, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
41854
+ var catalogData = (_this$actSet21 = this.actSet()) === null || _this$actSet21 === void 0 ? void 0 : _this$actSet21.CatalogData;
41693
41855
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.replaceModeActive) && ((_this$api$getViewConf2 = this.api.getViewConfig()) === null || _this$api$getViewConf2 === void 0 ? void 0 : _this$api$getViewConf2.showReplaceFunctionInPlanner) && Object.entries(catalogData.allCatalogPlannerArticles).length > 1 && Object.entries((_catalogData$PlannerP = (_catalogData$PlannerP2 = catalogData.PlannerPaletteViewInfo) === null || _catalogData$PlannerP2 === void 0 ? void 0 : _catalogData$PlannerP2.catalogPlannerArticles) !== null && _catalogData$PlannerP !== void 0 ? _catalogData$PlannerP : {}).length > 1;
41694
41856
  }
41695
41857
  }, {
41696
41858
  key: "doPlannerReplaceAutoSwitch",
41697
41859
  value: function doPlannerReplaceAutoSwitch() {
41698
- var _this$actSet21, _this$api$getViewConf3;
41699
- var catalogData = (_this$actSet21 = this.actSet()) === null || _this$actSet21 === void 0 ? void 0 : _this$actSet21.CatalogData;
41860
+ var _this$actSet22, _this$api$getViewConf3;
41861
+ var catalogData = (_this$actSet22 = this.actSet()) === null || _this$actSet22 === void 0 ? void 0 : _this$actSet22.CatalogData;
41700
41862
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.catalogPlannsCompletely) && this.doShowPlannerReplaceMode() && ((_this$api$getViewConf3 = this.api.getViewConfig()) === null || _this$api$getViewConf3 === void 0 ? void 0 : _this$api$getViewConf3.allowAutoSwitchInReplaceFunctionInPlanner);
41701
41863
  }
41702
41864
  }, {
41703
41865
  key: "getHidePlanner",
41704
41866
  value: function getHidePlanner() {
41705
- var _this$actSet22;
41706
- return this.api.getHidePlanner() || !!((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.useBoxPlanner);
41867
+ var _this$actSet23;
41868
+ return this.api.getHidePlanner() || !!((_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.useBoxPlanner);
41707
41869
  }
41708
41870
  }, {
41709
41871
  key: "getAllowRTV",
41710
41872
  value: function getAllowRTV() {
41711
- var _this$state5, _this$actSet23, _this$state6, _this$actSet24;
41873
+ var _this$state5, _this$actSet24, _this$state6, _this$actSet25;
41712
41874
  if (this.getEnableUnityRtvKombi()) return false;
41713
41875
  if ((_this$state5 = this.state) !== null && _this$state5 !== void 0 && _this$state5.organization.settings.forceRTV) return true;
41714
- if ((_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaForceRTV) return true;
41715
- if ((_this$state6 = this.state) !== null && _this$state6 !== void 0 && _this$state6.organization.settings.enableRTV && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
41876
+ if ((_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaForceRTV) return true;
41877
+ if ((_this$state6 = this.state) !== null && _this$state6 !== void 0 && _this$state6.organization.settings.enableRTV && (_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaArReady) return true;
41716
41878
  return false;
41717
41879
  }
41718
41880
  }, {
41719
41881
  key: "getAllowQRCodeAR",
41720
41882
  value: function getAllowQRCodeAR() {
41721
- var _this$actSet25;
41722
- if (this.api.enableAR && (_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaArReady) return true;
41883
+ var _this$actSet26;
41884
+ if (this.api.enableAR && (_this$actSet26 = this.actSet()) !== null && _this$actSet26 !== void 0 && _this$actSet26.CatalogData.divaArReady) return true;
41723
41885
  return false;
41724
41886
  }
41725
41887
  }, {
41726
41888
  key: "getEnableUnityRtvKombi",
41727
41889
  value: function getEnableUnityRtvKombi() {
41728
- var _this$actSet26, _this$actSet27;
41890
+ var _this$actSet27, _this$actSet28;
41729
41891
  // if force rtv disable unity kombi - biohort
41730
- if ((_this$actSet26 = this.actSet()) !== null && _this$actSet26 !== void 0 && _this$actSet26.CatalogData.divaForceRTV) return false;
41731
- return ((_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
41892
+ if ((_this$actSet27 = this.actSet()) !== null && _this$actSet27 !== void 0 && _this$actSet27.CatalogData.divaForceRTV) return false;
41893
+ return ((_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
41732
41894
  }
41733
41895
  }, {
41734
41896
  key: "getShelfPlannerRTV",
41735
41897
  value: function getShelfPlannerRTV() {
41736
- var _this$actSet28;
41737
- return (_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData.useShelfPlannerRTV;
41898
+ var _this$actSet29;
41899
+ return (_this$actSet29 = this.actSet()) === null || _this$actSet29 === void 0 ? void 0 : _this$actSet29.CatalogData.useShelfPlannerRTV;
41738
41900
  }
41739
41901
  }, {
41740
41902
  key: "getBasketData",
@@ -41749,23 +41911,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41749
41911
  }, {
41750
41912
  key: "getBasketDataWithEkText",
41751
41913
  value: function () {
41752
- var _getBasketDataWithEkText = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27() {
41753
- return _regeneratorRuntime.wrap(function _callee27$(_context27) {
41754
- while (1) switch (_context27.prev = _context27.next) {
41914
+ var _getBasketDataWithEkText = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28() {
41915
+ return _regeneratorRuntime.wrap(function _callee28$(_context28) {
41916
+ while (1) switch (_context28.prev = _context28.next) {
41755
41917
  case 0:
41756
- _context27.t0 = this.divaBasketHandler;
41757
- _context27.t1 = this.divaBasketHandler.actDivaNr;
41758
- _context27.next = 4;
41918
+ _context28.t0 = this.divaBasketHandler;
41919
+ _context28.t1 = this.divaBasketHandler.actDivaNr;
41920
+ _context28.next = 4;
41759
41921
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, true, this.doAllowSetPlanner(), this.ReturnTo);
41760
41922
  case 4:
41761
- _context27.t2 = _context27.sent;
41762
- _context27.t0.setBasketData.call(_context27.t0, _context27.t1, _context27.t2);
41763
- return _context27.abrupt("return", this.divaBasketHandler.actBasket);
41923
+ _context28.t2 = _context28.sent;
41924
+ _context28.t0.setBasketData.call(_context28.t0, _context28.t1, _context28.t2);
41925
+ return _context28.abrupt("return", this.divaBasketHandler.actBasket);
41764
41926
  case 7:
41765
41927
  case "end":
41766
- return _context27.stop();
41928
+ return _context28.stop();
41767
41929
  }
41768
- }, _callee27, this);
41930
+ }, _callee28, this);
41769
41931
  }));
41770
41932
  function getBasketDataWithEkText() {
41771
41933
  return _getBasketDataWithEkText.apply(this, arguments);
@@ -41775,8 +41937,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41775
41937
  }, {
41776
41938
  key: "getCatalogData",
41777
41939
  value: function getCatalogData() {
41778
- var _this$actSet29;
41779
- return (_this$actSet29 = this.actSet()) === null || _this$actSet29 === void 0 ? void 0 : _this$actSet29.CatalogData;
41940
+ var _this$actSet30;
41941
+ return (_this$actSet30 = this.actSet()) === null || _this$actSet30 === void 0 ? void 0 : _this$actSet30.CatalogData;
41780
41942
  }
41781
41943
  }, {
41782
41944
  key: "ReturnTo",
@@ -41791,7 +41953,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41791
41953
  }, {
41792
41954
  key: "addToBasket",
41793
41955
  value: function () {
41794
- var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(actBasket) {
41956
+ var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(actBasket) {
41795
41957
  var _this$actions36,
41796
41958
  _this$actions37,
41797
41959
  _this$actions38,
@@ -41811,44 +41973,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41811
41973
  to,
41812
41974
  variants,
41813
41975
  products,
41814
- _args28 = arguments;
41815
- return _regeneratorRuntime.wrap(function _callee28$(_context28) {
41816
- while (1) switch (_context28.prev = _context28.next) {
41976
+ _args29 = arguments;
41977
+ return _regeneratorRuntime.wrap(function _callee29$(_context29) {
41978
+ while (1) switch (_context29.prev = _context29.next) {
41817
41979
  case 0:
41818
- event = _args28.length > 1 && _args28[1] !== undefined ? _args28[1] : 'onAddToBasket';
41819
- _context28.t0 = event;
41820
- _context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 7 : _context28.t0 === 'onWebPlanerShare' ? 9 : _context28.t0 === 'onRequestConsulation' ? 11 : _context28.t0 === 'onSave' ? 13 : _context28.t0 === 'onSendEmail' ? 15 : _context28.t0 === 'onSaveProduct' ? 20 : _context28.t0 === 'dontSaveBasket' ? 27 : _context28.t0 === 'onAddToBasket' ? 28 : _context28.t0 === 'onSendContactForm' ? 30 : 33;
41980
+ event = _args29.length > 1 && _args29[1] !== undefined ? _args29[1] : 'onAddToBasket';
41981
+ _context29.t0 = event;
41982
+ _context29.next = _context29.t0 === 'onWebPlanerPrint' ? 5 : _context29.t0 === 'onWebPlanerSave' ? 7 : _context29.t0 === 'onWebPlanerShare' ? 9 : _context29.t0 === 'onRequestConsulation' ? 11 : _context29.t0 === 'onSave' ? 13 : _context29.t0 === 'onSendEmail' ? 15 : _context29.t0 === 'onSaveProduct' ? 20 : _context29.t0 === 'dontSaveBasket' ? 27 : _context29.t0 === 'onAddToBasket' ? 28 : _context29.t0 === 'onSendContactForm' ? 30 : 33;
41821
41983
  break;
41822
41984
  case 5:
41823
41985
  (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41824
41986
  type: 'onWebPlanerPrint',
41825
41987
  data: actBasket.getAsJson()
41826
41988
  });
41827
- return _context28.abrupt("break", 35);
41989
+ return _context29.abrupt("break", 35);
41828
41990
  case 7:
41829
41991
  (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41830
41992
  type: 'onWebPlanerSave',
41831
41993
  data: actBasket.getAsJson()
41832
41994
  });
41833
- return _context28.abrupt("break", 35);
41995
+ return _context29.abrupt("break", 35);
41834
41996
  case 9:
41835
41997
  (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41836
41998
  type: 'onWebPlanerShare',
41837
41999
  data: actBasket.getAsJson()
41838
42000
  });
41839
- return _context28.abrupt("break", 35);
42001
+ return _context29.abrupt("break", 35);
41840
42002
  case 11:
41841
42003
  (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41842
42004
  type: 'onRequestConsulation',
41843
42005
  data: actBasket.getAsJson()
41844
42006
  });
41845
- return _context28.abrupt("break", 35);
42007
+ return _context29.abrupt("break", 35);
41846
42008
  case 13:
41847
42009
  (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41848
42010
  type: 'onSave',
41849
42011
  data: actBasket.getAsJson()
41850
42012
  });
41851
- return _context28.abrupt("break", 35);
42013
+ return _context29.abrupt("break", 35);
41852
42014
  case 15:
41853
42015
  emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
41854
42016
  this.divaBasketHandler.emailConfig = undefined;
@@ -41883,51 +42045,51 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41883
42045
  type: 'onAddToBasket',
41884
42046
  data: actBasket.getAsJson()
41885
42047
  });
41886
- return _context28.abrupt("break", 35);
42048
+ return _context29.abrupt("break", 35);
41887
42049
  case 20:
41888
42050
  this.actSet().CatalogData;
41889
- _context28.next = 23;
42051
+ _context29.next = 23;
41890
42052
  return this.api.saveAsProduct(this.sets, actBasket);
41891
42053
  case 23:
41892
- products = _context28.sent;
42054
+ products = _context29.sent;
41893
42055
  (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41894
42056
  type: 'onAddToBasket',
41895
42057
  data: actBasket.getAsJson()
41896
42058
  });
41897
42059
  if (!products) {
41898
- _context28.next = 27;
42060
+ _context29.next = 27;
41899
42061
  break;
41900
42062
  }
41901
- return _context28.abrupt("return", products[0]);
42063
+ return _context29.abrupt("return", products[0]);
41902
42064
  case 27:
41903
42065
  case 28:
41904
42066
  (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41905
42067
  type: 'onAddToBasket',
41906
42068
  data: actBasket.getAsJson()
41907
42069
  });
41908
- return _context28.abrupt("break", 35);
42070
+ return _context29.abrupt("break", 35);
41909
42071
  case 30:
41910
42072
  (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
41911
42073
  type: 'onAddToBasket',
41912
42074
  data: actBasket.getAsJson()
41913
42075
  });
41914
42076
  this.openContactForm(this.divaBasketHandler);
41915
- return _context28.abrupt("break", 35);
42077
+ return _context29.abrupt("break", 35);
41916
42078
  case 33:
41917
42079
  (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
41918
42080
  type: event,
41919
42081
  data: actBasket.getAsJson()
41920
42082
  });
41921
- return _context28.abrupt("break", 35);
42083
+ return _context29.abrupt("break", 35);
41922
42084
  case 35:
41923
- return _context28.abrupt("return");
42085
+ return _context29.abrupt("return");
41924
42086
  case 36:
41925
42087
  case "end":
41926
- return _context28.stop();
42088
+ return _context29.stop();
41927
42089
  }
41928
- }, _callee28, this);
42090
+ }, _callee29, this);
41929
42091
  }));
41930
- function addToBasket(_x77) {
42092
+ function addToBasket(_x79) {
41931
42093
  return _addToBasket.apply(this, arguments);
41932
42094
  }
41933
42095
  return addToBasket;
@@ -42202,9 +42364,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42202
42364
  key: "initApiForLogicOnly",
42203
42365
  value: //just for testing purposes
42204
42366
  function () {
42205
- var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
42206
- return _regeneratorRuntime.wrap(function _callee29$(_context29) {
42207
- while (1) switch (_context29.prev = _context29.next) {
42367
+ var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
42368
+ return _regeneratorRuntime.wrap(function _callee30$(_context30) {
42369
+ while (1) switch (_context30.prev = _context30.next) {
42208
42370
  case 0:
42209
42371
  //empty services
42210
42372
  this.api = new DivaApiHandler(_objectSpread$5(_objectSpread$5({}, this.plannerConfig), {}, {
@@ -42217,17 +42379,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42217
42379
  jwt: jwt,
42218
42380
  apiKey: apiKey
42219
42381
  }), handler);
42220
- _context29.next = 3;
42382
+ _context30.next = 3;
42221
42383
  return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
42222
42384
  case 3:
42223
42385
  this.plannerHandler = new DivaPlannerHandler(true);
42224
42386
  case 4:
42225
42387
  case "end":
42226
- return _context29.stop();
42388
+ return _context30.stop();
42227
42389
  }
42228
- }, _callee29, this);
42390
+ }, _callee30, this);
42229
42391
  }));
42230
- function initApiForLogicOnly(_x78, _x79, _x80, _x81, _x82, _x83, _x84) {
42392
+ function initApiForLogicOnly(_x80, _x81, _x82, _x83, _x84, _x85, _x86) {
42231
42393
  return _initApiForLogicOnly.apply(this, arguments);
42232
42394
  }
42233
42395
  return initApiForLogicOnly;
@@ -42240,16 +42402,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42240
42402
  }, {
42241
42403
  key: "loadBasket",
42242
42404
  value: function () {
42243
- var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30() {
42244
- return _regeneratorRuntime.wrap(function _callee30$(_context30) {
42245
- while (1) switch (_context30.prev = _context30.next) {
42405
+ var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
42406
+ return _regeneratorRuntime.wrap(function _callee31$(_context31) {
42407
+ while (1) switch (_context31.prev = _context31.next) {
42246
42408
  case 0:
42247
- return _context30.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
42409
+ return _context31.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
42248
42410
  case 1:
42249
42411
  case "end":
42250
- return _context30.stop();
42412
+ return _context31.stop();
42251
42413
  }
42252
- }, _callee30, this);
42414
+ }, _callee31, this);
42253
42415
  }));
42254
42416
  function loadBasket() {
42255
42417
  return _loadBasket.apply(this, arguments);
@@ -42264,39 +42426,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42264
42426
  }, {
42265
42427
  key: "initBasket",
42266
42428
  value: function () {
42267
- var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites) {
42429
+ var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(init3D, ignoreFavorites) {
42268
42430
  var initSetState, set, basket;
42269
- return _regeneratorRuntime.wrap(function _callee31$(_context31) {
42270
- while (1) switch (_context31.prev = _context31.next) {
42431
+ return _regeneratorRuntime.wrap(function _callee32$(_context32) {
42432
+ while (1) switch (_context32.prev = _context32.next) {
42271
42433
  case 0:
42272
42434
  this.divaNr = this.divaBasketHandler.actDivaNr;
42273
42435
  initSetState = this.getInitStateForSet(!init3D);
42274
42436
  this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
42275
- _context31.next = 5;
42437
+ _context32.next = 5;
42276
42438
  return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
42277
42439
  case 5:
42278
42440
  //TODO check if when basket gets repaired the product match gets called
42279
42441
  set = this.actSet();
42280
42442
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
42281
42443
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
42282
- _context31.next = 10;
42444
+ _context32.next = 10;
42283
42445
  break;
42284
42446
  }
42285
- _context31.next = 10;
42447
+ _context32.next = 10;
42286
42448
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
42287
42449
  case 10:
42288
- _context31.next = 12;
42450
+ _context32.next = 12;
42289
42451
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
42290
42452
  case 12:
42291
- basket = _context31.sent;
42292
- return _context31.abrupt("return", basket);
42453
+ basket = _context32.sent;
42454
+ return _context32.abrupt("return", basket);
42293
42455
  case 14:
42294
42456
  case "end":
42295
- return _context31.stop();
42457
+ return _context32.stop();
42296
42458
  }
42297
- }, _callee31, this);
42459
+ }, _callee32, this);
42298
42460
  }));
42299
- function initBasket(_x85, _x86) {
42461
+ function initBasket(_x87, _x88) {
42300
42462
  return _initBasket.apply(this, arguments);
42301
42463
  }
42302
42464
  return initBasket;
@@ -42310,21 +42472,21 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42310
42472
  }, {
42311
42473
  key: "getValidVariantsLength",
42312
42474
  value: function () {
42313
- var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
42475
+ var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33() {
42314
42476
  var set;
42315
- return _regeneratorRuntime.wrap(function _callee32$(_context32) {
42316
- while (1) switch (_context32.prev = _context32.next) {
42477
+ return _regeneratorRuntime.wrap(function _callee33$(_context33) {
42478
+ while (1) switch (_context33.prev = _context33.next) {
42317
42479
  case 0:
42318
42480
  set = this.actSet();
42319
- _context32.next = 3;
42481
+ _context33.next = 3;
42320
42482
  return favoritesHandlerInstance.getValidVariants(set, true);
42321
42483
  case 3:
42322
- return _context32.abrupt("return", _context32.sent.length);
42484
+ return _context33.abrupt("return", _context33.sent.length);
42323
42485
  case 4:
42324
42486
  case "end":
42325
- return _context32.stop();
42487
+ return _context33.stop();
42326
42488
  }
42327
- }, _callee32, this);
42489
+ }, _callee33, this);
42328
42490
  }));
42329
42491
  function getValidVariantsLength() {
42330
42492
  return _getValidVariantsLength.apply(this, arguments);
@@ -42334,46 +42496,46 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42334
42496
  }, {
42335
42497
  key: "handleFavorites",
42336
42498
  value: function () {
42337
- var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(mode) {
42499
+ var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(mode) {
42338
42500
  var _this5 = this;
42339
42501
  var set, i;
42340
- return _regeneratorRuntime.wrap(function _callee33$(_context33) {
42341
- while (1) switch (_context33.prev = _context33.next) {
42502
+ return _regeneratorRuntime.wrap(function _callee34$(_context34) {
42503
+ while (1) switch (_context34.prev = _context34.next) {
42342
42504
  case 0:
42343
42505
  set = this.actSet();
42344
42506
  i = 0;
42345
42507
  case 2:
42346
42508
  if (!favoritesHandlerInstance.IsCalcForSummary) {
42347
- _context33.next = 11;
42509
+ _context34.next = 11;
42348
42510
  break;
42349
42511
  }
42350
- _context33.next = 5;
42512
+ _context34.next = 5;
42351
42513
  return DivaUtils.Sleep(200);
42352
42514
  case 5:
42353
42515
  i++;
42354
42516
  if (!(i > 1000)) {
42355
- _context33.next = 9;
42517
+ _context34.next = 9;
42356
42518
  break;
42357
42519
  }
42358
42520
  LOG$1.error(new DivaError('error on generating Variants of Summary'));
42359
- return _context33.abrupt("break", 11);
42521
+ return _context34.abrupt("break", 11);
42360
42522
  case 9:
42361
- _context33.next = 2;
42523
+ _context34.next = 2;
42362
42524
  break;
42363
42525
  case 11:
42364
- _context33.next = 13;
42526
+ _context34.next = 13;
42365
42527
  return favoritesHandlerInstance.handleFavorites(set, mode, this.divaBasketHandler.actBasket, this.saveToBasketWrapper.bind(this), this.doConfigure.bind(this), function () {
42366
42528
  return _this5.update2DGrid(set);
42367
42529
  }, this.actions);
42368
42530
  case 13:
42369
- return _context33.abrupt("return", _context33.sent);
42531
+ return _context34.abrupt("return", _context34.sent);
42370
42532
  case 14:
42371
42533
  case "end":
42372
- return _context33.stop();
42534
+ return _context34.stop();
42373
42535
  }
42374
- }, _callee33, this);
42536
+ }, _callee34, this);
42375
42537
  }));
42376
- function handleFavorites(_x87) {
42538
+ function handleFavorites(_x89) {
42377
42539
  return _handleFavorites.apply(this, arguments);
42378
42540
  }
42379
42541
  return handleFavorites;
@@ -42386,48 +42548,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42386
42548
  }, {
42387
42549
  key: "initSapOrderLinesFromBasket",
42388
42550
  value: function () {
42389
- var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(divaNr, init3D, onlyLoadOldBakset) {
42551
+ var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(divaNr, init3D, onlyLoadOldBakset) {
42390
42552
  var result, oldBasket, basket;
42391
- return _regeneratorRuntime.wrap(function _callee34$(_context34) {
42392
- while (1) switch (_context34.prev = _context34.next) {
42553
+ return _regeneratorRuntime.wrap(function _callee35$(_context35) {
42554
+ while (1) switch (_context35.prev = _context35.next) {
42393
42555
  case 0:
42394
42556
  if (divaNr) this.divaBasketHandler.updateDivaNrInBasket(divaNr);
42395
- _context34.next = 3;
42557
+ _context35.next = 3;
42396
42558
  return this.loadBasket();
42397
42559
  case 3:
42398
- result = _context34.sent;
42560
+ result = _context35.sent;
42399
42561
  if (!onlyLoadOldBakset) {
42400
- _context34.next = 6;
42562
+ _context35.next = 6;
42401
42563
  break;
42402
42564
  }
42403
- return _context34.abrupt("return", {
42565
+ return _context35.abrupt("return", {
42404
42566
  oldBasket: new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket))),
42405
42567
  cache: {}
42406
42568
  });
42407
42569
  case 6:
42408
42570
  if (!(result === false)) {
42409
- _context34.next = 8;
42571
+ _context35.next = 8;
42410
42572
  break;
42411
42573
  }
42412
42574
  throw new Error('Could not load basket! ' + divaNr);
42413
42575
  case 8:
42414
42576
  oldBasket = new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket)));
42415
- _context34.next = 11;
42577
+ _context35.next = 11;
42416
42578
  return this.initBasket(init3D);
42417
42579
  case 11:
42418
- basket = _context34.sent;
42419
- return _context34.abrupt("return", {
42580
+ basket = _context35.sent;
42581
+ return _context35.abrupt("return", {
42420
42582
  basket: basket,
42421
42583
  oldBasket: oldBasket,
42422
42584
  cache: this.api.getJsonDataCache()
42423
42585
  });
42424
42586
  case 13:
42425
42587
  case "end":
42426
- return _context34.stop();
42588
+ return _context35.stop();
42427
42589
  }
42428
- }, _callee34, this);
42590
+ }, _callee35, this);
42429
42591
  }));
42430
- function initSapOrderLinesFromBasket(_x88, _x89, _x90) {
42592
+ function initSapOrderLinesFromBasket(_x90, _x91, _x92) {
42431
42593
  return _initSapOrderLinesFromBasket.apply(this, arguments);
42432
42594
  }
42433
42595
  return initSapOrderLinesFromBasket;
@@ -43084,6 +43246,7 @@ var Grid = /*#__PURE__*/function () {
43084
43246
  //all the different accessoires selectable to place in the grid. can be absolute defined in grid.ArticleRelations or can change due to the heightGridCellCountOnRule where we rule is depending on the current configuration of the article.
43085
43247
  _defineProperty(this, "articleRelations", void 0);
43086
43248
  _defineProperty(this, "articleRelationsForOtherGroups", void 0);
43249
+ _defineProperty(this, "disableCellsByRules", void 0);
43087
43250
  //if in theis grid an shelfaccessoire is planned laod this article aswell
43088
43251
  _defineProperty(this, "montageOptions", void 0);
43089
43252
  //disableCellsByFreeText
@@ -43114,6 +43277,7 @@ var Grid = /*#__PURE__*/function () {
43114
43277
  this.showOnRule = grid.ShowOnRule;
43115
43278
  this.montageOptions = grid.MontageOptions;
43116
43279
  this.disableCellsByMeasures = grid.DisableCellsByMeasures;
43280
+ this.disableCellsByRules = grid.DisableCellsByRules;
43117
43281
  this.visitOption = grid.VisitOption;
43118
43282
  this.shelfId = 'SHELFARTICLE_' + article.basketId + '_' + index;
43119
43283
  this.heightGridCellCountOnRule = data.ShelfPlanner[index].HeightGridCellCountOnRule;
@@ -44082,6 +44246,21 @@ var Grid = /*#__PURE__*/function () {
44082
44246
  }
44083
44247
  return count;
44084
44248
  }
44249
+ }, {
44250
+ key: "getDisabledCellsByRule",
44251
+ value: function getDisabledCellsByRule() {
44252
+ var _this$disableCellsByR;
44253
+ var cellsToDisable = [];
44254
+ if (!((_this$disableCellsByR = this.disableCellsByRules) !== null && _this$disableCellsByR !== void 0 && _this$disableCellsByR.length)) return cellsToDisable;
44255
+ var article = this.article;
44256
+ for (var i = 0; i < this.disableCellsByRules.length; i++) {
44257
+ var rule = this.disableCellsByRules[i];
44258
+ if (!rule.rule || this.article.evalRule(DivaUtils.getRuleByFormula(rule.rule, this.article.catalogCodex, article.CatalogData.multiselectOptions))) {
44259
+ cellsToDisable = [].concat(_toConsumableArray(cellsToDisable), _toConsumableArray(rule.cells));
44260
+ }
44261
+ }
44262
+ return cellsToDisable;
44263
+ }
44085
44264
  }, {
44086
44265
  key: "ShelfId",
44087
44266
  get: function get() {
@@ -59775,8 +59954,6 @@ var a$3 = {
59775
59954
  },
59776
59955
  settings: {
59777
59956
  dontLoadAdditionalModelInfos: true,
59778
- identifier: 'Seller',
59779
- type: 'DIVA_WEBPLANNER',
59780
59957
  configParams: {
59781
59958
  mediaServiceApiKey: '620e074df81de00012ef47ed.wUyoXTbh4tR3DklrzvvdxFveVK9zcj4H',
59782
59959
  // api2devKey: '627b71be68f4c30011dd25e2.I2RdwvdHG4gruMNr6l810tTU5x7afNMm',
@@ -59836,13 +60013,10 @@ var a$2 = {
59836
60013
  }
59837
60014
  },
59838
60015
  settings: {
59839
- identifier: 'PfisterWebPlanner',
59840
- type: 'DIVA_WEBPLANNER',
59841
60016
  configParams: {
59842
60017
  mediaServiceApiKey: '5fb62c8251d161001142faec.TIxFhaibnlLORFzuRO0sqmYV6EnStvIg',
59843
60018
  apiKey: '628c84397f7ae3001155004a.ccRvikkGQZqmVHUHIwUDDSIBmrSBm/3V'
59844
60019
  },
59845
- description: '',
59846
60020
  applicationEnvironment: 'SELLER',
59847
60021
  priceInfo: 'LAYOUT_LISTPRICE',
59848
60022
  PriceFormat: {
@@ -59909,26 +60083,11 @@ var a$1 = {
59909
60083
  }
59910
60084
  },
59911
60085
  settings: {
59912
- identifier: 'PfisterWebPlanner',
59913
- type: 'DIVA_WEBPLANNER',
59914
60086
  configParams: {
59915
60087
  mediaServiceApiKey: '5fb396c986d73f0011e1c482.WKxhYaXxMhn9SmPPAK6tZa4oFnFjlSux',
59916
60088
  apiKey: '628c849377593d00119a87a0.CKOGmsd6LOjWGZtYk+9gB138lXCoOVBn'
59917
60089
  },
59918
- description: '',
59919
60090
  applicationEnvironment: 'SELLER',
59920
- priceInfo: 'LAYOUT_LISTPRICE',
59921
- PriceFormat: {
59922
- currency: 'CHF',
59923
- spacing: true,
59924
- currencyPosition: 'LEFT',
59925
- showDecimals: 'IF_NEEDED',
59926
- thousandSeparator: "'",
59927
- decimalSeparator: '.',
59928
- decimalsDigits: 2,
59929
- addIfNoDecimal: '.–'
59930
- },
59931
- divaMediaServiceApiKey: '5fb396c986d73f0011e1c482.WKxhYaXxMhn9SmPPAK6tZa4oFnFjlSux',
59932
60091
  diva3dServerMode: 'SignalR',
59933
60092
  diva3dRenderGroup: 'QDIVA' // "QDIVA2"
59934
60093
  },