@crystaldesign/web-planner-logic 25.3.0-beta.9 → 25.4.0-beta.1

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
@@ -451,9 +451,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
451
451
  barrierConfig: data.barrierConfig,
452
452
  dontLoadAdditionalModelInfos: data.dontLoadAdditionalModelInfos,
453
453
  arViewerUrl: data.arViewerUrl,
454
+ arViewerIframe: data.arViewerIframe,
454
455
  useMask: data.useMask,
455
456
  loadProductBasketParams: data.loadProductBasketParams,
456
- addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey
457
+ addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey,
458
+ dontLoadDimensions: data.dontLoadDimensions
457
459
  };
458
460
  }
459
461
  }, {
@@ -780,17 +782,23 @@ var DivaApiHandler = /*#__PURE__*/function () {
780
782
  var _this$divaWebConfigDa28;
781
783
  return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.showDivaNr;
782
784
  }
785
+ }, {
786
+ key: "dontLoadDimensions",
787
+ value: function dontLoadDimensions() {
788
+ var _this$divaWebConfigDa29;
789
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.dontLoadDimensions;
790
+ }
783
791
  }, {
784
792
  key: "onErrorHandling",
785
793
  value: function onErrorHandling() {
786
- var _this$divaWebConfigDa29;
787
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.onErrorHandling;
794
+ var _this$divaWebConfigDa30;
795
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.onErrorHandling;
788
796
  }
789
797
  }, {
790
798
  key: "diva3DRenderingDefault",
791
799
  value: function diva3DRenderingDefault() {
792
- var _this$divaWebConfigDa30;
793
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.diva3DRenderingDefault;
800
+ var _this$divaWebConfigDa31;
801
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.diva3DRenderingDefault;
794
802
  }
795
803
  }, {
796
804
  key: "getJwt",
@@ -805,8 +813,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
805
813
  }, {
806
814
  key: "getUseMask",
807
815
  value: function getUseMask() {
808
- var _this$divaWebConfigDa31;
809
- return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.useMask;
816
+ var _this$divaWebConfigDa32;
817
+ return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.useMask;
810
818
  }
811
819
  }, {
812
820
  key: "apiUrl",
@@ -1325,14 +1333,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1325
1333
  }, {
1326
1334
  key: "dontLoadAdditionalModelInfos",
1327
1335
  get: function get() {
1328
- var _this$divaWebConfigDa32;
1329
- return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.dontLoadAdditionalModelInfos;
1336
+ var _this$divaWebConfigDa33;
1337
+ return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadAdditionalModelInfos;
1330
1338
  }
1331
1339
  }, {
1332
1340
  key: "dontLoadCatalogEditorLiteMask",
1333
1341
  get: function get() {
1334
- var _this$divaWebConfigDa33;
1335
- return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadCatalogEditorLiteMask;
1342
+ var _this$divaWebConfigDa34;
1343
+ return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.dontLoadCatalogEditorLiteMask;
1336
1344
  }
1337
1345
  }, {
1338
1346
  key: "OrganizationId",
@@ -1693,7 +1701,6 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1693
1701
  parent: parent,
1694
1702
  ocd: jsonOPV.OCD,
1695
1703
  quantity: jsonOPV.Quantity ? Number(jsonOPV.Quantity) : 1,
1696
- isDefault: jsonOPV.IsDefault,
1697
1704
  isPIMFlatValue: jsonOPV.PIMFlatValues === 'True',
1698
1705
  isVariantAttribute: jsonOPV.IsVariantAttribute
1699
1706
  };
@@ -1950,6 +1957,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1950
1957
  get: function get() {
1951
1958
  return this.opv.subArticleTypeNr;
1952
1959
  }
1960
+ }, {
1961
+ key: "addToMeasure",
1962
+ get: function get() {
1963
+ return this.opv.catalogOPV.addToMeasure;
1964
+ }
1953
1965
  }, {
1954
1966
  key: "hideSubarticleDescription",
1955
1967
  get: function get() {
@@ -16111,6 +16123,15 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16111
16123
  case 'SET_BY_RULE':
16112
16124
  this.opv.setByRule = prop.Value;
16113
16125
  break;
16126
+ case 'ADD_TO_MEASURE':
16127
+ this.opv.addToMeasure = prop.Value.split(';').map(function (v) {
16128
+ return {
16129
+ op: v.split(':')[0],
16130
+ value: Number(v.split(':')[1]),
16131
+ opt: 'OPT' + v.split(':')[2]
16132
+ };
16133
+ });
16134
+ break;
16114
16135
  default:
16115
16136
  if (key.includes('__')) break;
16116
16137
  var values_locales = [];
@@ -16406,6 +16427,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16406
16427
  get: function get() {
16407
16428
  return this.opv.customDimension;
16408
16429
  }
16430
+ }, {
16431
+ key: "addToMeasure",
16432
+ get: function get() {
16433
+ return this.opv.addToMeasure;
16434
+ }
16409
16435
  }]);
16410
16436
  }();
16411
16437
 
@@ -18003,10 +18029,10 @@ var OptionCatalogData = /*#__PURE__*/function () {
18003
18029
  case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
18004
18030
  this.opt.onlyVisibleIfNotDocked = prop.Value;
18005
18031
  break;
18006
- case 'ONLY_VIDSIBLE_IF_CONFIG_SINGLE':
18032
+ case 'ONLY_VISIBLE_IF_CONFIG_SINGLE':
18007
18033
  this.opt.onlyVisibleIfConfigSingle = prop.Value;
18008
18034
  break;
18009
- case 'ONLY_VIDSIBLE_IF_CONFIG_ALL':
18035
+ case 'ONLY_VISIBLE_IF_CONFIG_ALL':
18010
18036
  this.opt.onlyVisibleIfConfigAll = prop.Value;
18011
18037
  break;
18012
18038
  case 'ISDEFAULTVALUEFOROPTIONS':
@@ -18314,6 +18340,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18314
18340
  offlineData: json.OfflineData,
18315
18341
  offlineFilesLastUpdate: offlinFileLastUpdateTimestamp,
18316
18342
  offlineVersion: json.OfflineVersion,
18343
+ retailCatalogNr: json.RetailCatalogNr,
18317
18344
  description: orderSet.Description,
18318
18345
  mainCategory: (_json$MainCategory = json.MainCategory) !== null && _json$MainCategory !== void 0 ? _json$MainCategory : json.Name,
18319
18346
  supplierCatalogName: json.SupplierCatalogName,
@@ -18350,7 +18377,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18350
18377
  headerDimensionIds: [],
18351
18378
  dontShowBasePrice: false,
18352
18379
  // wenn true - dann sollte Preis Ab im Planner nicht angezeigt werden
18353
-
18380
+ autoOpenContentItem: false,
18354
18381
  //KatalogProperties - Planner Themen
18355
18382
  divaPlanerDigits: 0,
18356
18383
  // Anzahl der Kommastellen bei Masslinien im Planer (Jutzler mit mm)
@@ -18738,6 +18765,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18738
18765
  }
18739
18766
  } else if (key == 'ARTICLECONFIGALL') {
18740
18767
  _this.catalogData.articleConfigAll = item.Value == '1';
18768
+ } else if (key == 'AUTO_OPEN_CONTENTITEM') {
18769
+ _this.catalogData.autoOpenContentItem = item.Value == '1';
18741
18770
  } else if (key == 'HIDE_PRICE_GROUPS_OF_OPGS') {
18742
18771
  _this.catalogData.hidePriceGroupsOfOPGs = item.Value == '1';
18743
18772
  } else if (key == 'DONTHIDEOPTION') {
@@ -19067,7 +19096,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
19067
19096
  groupName: groupTitle,
19068
19097
  metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
19069
19098
  contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
19070
- groupContentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
19099
+ groupContentItemId: this.catalogArticles[catPlanArticle.codex].groupContentItemId,
19071
19100
  partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
19072
19101
  };
19073
19102
  //nicht ausmultiplizierte Elemente
@@ -19459,6 +19488,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19459
19488
  get: function get() {
19460
19489
  return this.catalogData.offlineFilesLastUpdate;
19461
19490
  }
19491
+ }, {
19492
+ key: "retailCatalogNr",
19493
+ get: function get() {
19494
+ return this.catalogData.retailCatalogNr;
19495
+ }
19462
19496
  }, {
19463
19497
  key: "description",
19464
19498
  get: function get() {
@@ -19673,6 +19707,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19673
19707
  get: function get() {
19674
19708
  return this.catalogData.alternateRenderings;
19675
19709
  }
19710
+ }, {
19711
+ key: "autoOpenContentItem",
19712
+ get: function get() {
19713
+ return this.catalogData.autoOpenContentItem;
19714
+ }
19676
19715
  }, {
19677
19716
  key: "alternateRenderingsForSummary",
19678
19717
  get: function get() {
@@ -20659,6 +20698,12 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20659
20698
  var _this$val$customDimen, _this$val24;
20660
20699
  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);
20661
20700
  }
20701
+ }, {
20702
+ key: "addToMeasure",
20703
+ get: function get() {
20704
+ var _this$val25;
20705
+ return (_this$val25 = this.val) === null || _this$val25 === void 0 ? void 0 : _this$val25.addToMeasure;
20706
+ }
20662
20707
  }, {
20663
20708
  key: "showWarningForRequiresUserInput",
20664
20709
  get: function get() {
@@ -22236,6 +22281,16 @@ var DivaArticle = /*#__PURE__*/function () {
22236
22281
  }
22237
22282
  return true;
22238
22283
  }
22284
+ }, {
22285
+ key: "optionStatesWithAddToMeasure",
22286
+ value: function optionStatesWithAddToMeasure(opt) {
22287
+ return Object.values(this.articleOptionStates).filter(function (ops) {
22288
+ var _ops$addToMeasure, _ops$addToMeasure2;
22289
+ return ((_ops$addToMeasure = ops.addToMeasure) === null || _ops$addToMeasure === void 0 ? void 0 : _ops$addToMeasure.find(function (o) {
22290
+ return o.opt == opt;
22291
+ })) || ops.optionCodex == opt && ((_ops$addToMeasure2 = ops.addToMeasure) === null || _ops$addToMeasure2 === void 0 ? void 0 : _ops$addToMeasure2.length);
22292
+ });
22293
+ }
22239
22294
  }, {
22240
22295
  key: "requiredUserInputOptions",
22241
22296
  get: function get() {
@@ -22971,6 +23026,7 @@ var DivaArticle = /*#__PURE__*/function () {
22971
23026
  }
22972
23027
  this.updateIDMSpecificFeature(myArtOPS);
22973
23028
  }
23029
+ this.updateOptionsWithAddToMeasure(OP);
22974
23030
  }
22975
23031
  }, {
22976
23032
  key: "updateIDMSpecificFeature",
@@ -22998,7 +23054,8 @@ var DivaArticle = /*#__PURE__*/function () {
22998
23054
  if (myArtOPS.option.idmVariantenArt == 97) {
22999
23055
  //Planungshöhe
23000
23056
  try {
23001
- var toEvalTerm = myArtOPS.name.replace(',', '.').replace('cm', '').replace('ARTICLE_HEIGHT', this.article.catalogArticle.height ? this.article.catalogArticle.height.toString() : '');
23057
+ var _myArtOPS$freeText;
23058
+ 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() : '');
23002
23059
  var newHeight = eval(this.evalVariablenInName(toEvalTerm));
23003
23060
  this.article.doUpdatePlannerSize = true;
23004
23061
  this.calcHeight = Math.round((newHeight + Number.EPSILON) * 100) / 100;
@@ -23010,7 +23067,8 @@ var DivaArticle = /*#__PURE__*/function () {
23010
23067
  if (myArtOPS.option.idmVariantenArt == 96 || myArtOPS.option.diameter) {
23011
23068
  //Planungstiefe
23012
23069
  try {
23013
- var toEvalTerm = myArtOPS.name.replace(',', '.').replace('cm', '').replace('ARTICLE_DEPTH', this.article.catalogArticle.depth ? this.article.catalogArticle.depth.toString() : '');
23070
+ var _myArtOPS$freeText2;
23071
+ 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() : '');
23014
23072
  var newDepth = eval(this.evalVariablenInName(toEvalTerm));
23015
23073
  this.article.doUpdatePlannerSize = true;
23016
23074
  this.calcDepth = Math.round((newDepth + Number.EPSILON) * 100) / 100;
@@ -23023,7 +23081,8 @@ var DivaArticle = /*#__PURE__*/function () {
23023
23081
  //Planungsbreite - ACHTUNG Fehler wenn mm
23024
23082
 
23025
23083
  try {
23026
- var toEvalTerm = myArtOPS.name.replace(',', '.').replace('cm', '').replace('ARTICLE_WIDTH', this.article.catalogArticle.width ? this.article.catalogArticle.width.toString() : '');
23084
+ var _myArtOPS$freeText3;
23085
+ 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() : '');
23027
23086
  var newWidth = eval(this.evalVariablenInName(toEvalTerm));
23028
23087
  this.article.doUpdatePlannerSize = true;
23029
23088
  this.calcWidth = Math.round((newWidth + Number.EPSILON) * 100) / 100;
@@ -23126,6 +23185,61 @@ var DivaArticle = /*#__PURE__*/function () {
23126
23185
  return myDesc;
23127
23186
  }
23128
23187
  }
23188
+ }, {
23189
+ key: "updateOptionsWithAddToMeasure",
23190
+ value: function updateOptionsWithAddToMeasure(optionCodex) {
23191
+ var opsWithAddToMeasure = this.optionStatesWithAddToMeasure(optionCodex);
23192
+ var result = undefined;
23193
+ var optionsUsedFreetext = {};
23194
+ for (var i = 0; i < opsWithAddToMeasure.length; i++) {
23195
+ var _result2;
23196
+ var addToMeasureOps = opsWithAddToMeasure[i];
23197
+ for (var j = 0; j < addToMeasureOps.addToMeasure.length; j++) {
23198
+ var _Number, _this$getArticleOptio4;
23199
+ var addToMeasure = addToMeasureOps.addToMeasure[j];
23200
+ 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;
23201
+ optionsUsedFreetext[addToMeasure.opt] = true;
23202
+ if (!addToMeasureOps.val) continue;
23203
+ if (isNaN(value)) {
23204
+ result = undefined;
23205
+ break;
23206
+ } else {
23207
+ var _result;
23208
+ result = this.calculateMeasure(addToMeasure, ((_result = result) !== null && _result !== void 0 ? _result : 0) + value);
23209
+ }
23210
+ }
23211
+ this.setOP(addToMeasureOps.optionCodex, addToMeasureOps.val, (_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.toString());
23212
+ }
23213
+ }
23214
+ }, {
23215
+ key: "calcAddToMeasure",
23216
+ value: function calcAddToMeasure(optionCodex, value) {
23217
+ var opsWithAddToMeasure = this.optionStatesWithAddToMeasure(optionCodex);
23218
+ for (var j = 0; j < opsWithAddToMeasure.length; j++) {
23219
+ for (var i = 0; i < opsWithAddToMeasure[j].addToMeasure.length; i++) {
23220
+ var measure = opsWithAddToMeasure[j].addToMeasure[i];
23221
+ if (measure.opt != optionCodex) continue;
23222
+ value = this.calculateMeasure(measure, value);
23223
+ }
23224
+ }
23225
+ return value;
23226
+ }
23227
+ }, {
23228
+ key: "calculateMeasure",
23229
+ value: function calculateMeasure(measure, value) {
23230
+ switch (measure.op) {
23231
+ case '+':
23232
+ return Math.round(value + measure.value);
23233
+ case '-':
23234
+ return Math.round(value - measure.value);
23235
+ case '*':
23236
+ return Math.round(value * measure.value);
23237
+ case '/':
23238
+ return Math.round(value / measure.value);
23239
+ }
23240
+ LOG$d.error(new Error('operator ' + measure.op + ' not implemented'));
23241
+ return value;
23242
+ }
23129
23243
  }, {
23130
23244
  key: "clearOP",
23131
23245
  value: function clearOP(optionCodex) {
@@ -24016,7 +24130,7 @@ var DivaArticle = /*#__PURE__*/function () {
24016
24130
  break;
24017
24131
  }
24018
24132
  _context.next = 4;
24019
- return Promise.resolve().then(function () { return require('./ShelfPlanner-89d47e5e.js'); });
24133
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-0835e1da.js'); });
24020
24134
  case 4:
24021
24135
  _yield$import = _context.sent;
24022
24136
  ShelfPlanner = _yield$import["default"];
@@ -24147,6 +24261,9 @@ var DivaArticle = /*#__PURE__*/function () {
24147
24261
  }
24148
24262
  if ((mUnit || OP == 'OPTUMFANG' || OP == 'OPTUMFANG_KREIS') && this.parentHasSameOption(OP)) {
24149
24263
  var freeTextMeasure = parseFloat(myArtOPS.freeText ? myArtOPS.freeText : '');
24264
+ var newFreeTextMeasure = this.calcAddToMeasure(OP, freeTextMeasure);
24265
+ LOG$d.debug('freetext changed by addToMeasure at price calculation', newFreeTextMeasure, freeTextMeasure, myArtOPS.addToMeasure);
24266
+ freeTextMeasure = newFreeTextMeasure;
24150
24267
  if (freeTextMeasure || OP == 'OPTUMFANG' || OP == 'OPTUMFANG_KREIS') {
24151
24268
  if (calcUnitPrice != 0) {
24152
24269
  var quantity = 0;
@@ -24460,6 +24577,13 @@ var DivaArticle = /*#__PURE__*/function () {
24460
24577
  }
24461
24578
  }
24462
24579
  }
24580
+ //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
24581
+ if (_ops8) {
24582
+ var _ops8$valCodex;
24583
+ if ((_ops8$valCodex = _ops8.valCodex) !== null && _ops8$valCodex !== void 0 && _ops8$valCodex.startsWith('OPVSUB_') && !validValues[_key4 + '.' + _key4] && this.getArticleOptionState(_key4 + '.' + _key4)) {
24584
+ validValues[_key4 + '.' + _key4] = myValues[_key4];
24585
+ }
24586
+ }
24463
24587
  }
24464
24588
  return validValues;
24465
24589
  }
@@ -24660,8 +24784,9 @@ var DivaArticle = /*#__PURE__*/function () {
24660
24784
  }, {
24661
24785
  key: "addOptionStateFromArticleToPlannerData",
24662
24786
  value: function addOptionStateFromArticleToPlannerData(ret, alternateRenderInfo) {
24663
- for (var key in this.articleOptionStates) {
24664
- this.addOptionStateToPlannerData(ret, this.articleOptionStates[key], alternateRenderInfo);
24787
+ var articleOptions = this.getArticleOptionStatesWithOptionsForPrint();
24788
+ for (var key in articleOptions) {
24789
+ this.addOptionStateToPlannerData(ret, articleOptions[key], alternateRenderInfo);
24665
24790
  }
24666
24791
  for (var _key5 in this.article.partlistArticles) {
24667
24792
  var partlistArticle = this.article.partlistArticles[_key5];
@@ -24973,7 +25098,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24973
25098
  value: //Initialisiert eventuell Option Tree und Infos im CatalogArticle
24974
25099
  function () {
24975
25100
  var _loadArticle = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(set, articleCodex, initParams) {
24976
- var _yield$this$preLoadAr, catalog, catalogArticle, newBasketId, _set$actions;
25101
+ var _yield$this$preLoadAr, catalog, catalogArticle, newBasketId;
24977
25102
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
24978
25103
  while (1) switch (_context.prev = _context.next) {
24979
25104
  case 0:
@@ -24997,12 +25122,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24997
25122
  articleCodex: articleCodex
24998
25123
  }
24999
25124
  }));
25000
- (_set$actions = set.actions) === null || _set$actions === void 0 || _set$actions.openModal({
25001
- accept: true,
25002
- title: set.i18n.t('modals.error_accured')
25003
- });
25004
- return _context.abrupt("return", false);
25005
- case 13:
25125
+ throw new Error('articleCodex not found in article list. Could be due to exclusivity or a bug in the application!');
25126
+ case 12:
25006
25127
  case "end":
25007
25128
  return _context.stop();
25008
25129
  }
@@ -28118,13 +28239,23 @@ var DivaSet = /*#__PURE__*/function () {
28118
28239
  _context3.t0 = [];
28119
28240
  _context3.t1 = _toConsumableArray__default["default"](this.getCustomDimsFromConfig());
28120
28241
  _context3.t2 = _toConsumableArray__default["default"];
28121
- _context3.next = 5;
28242
+ if (this.api.dontLoadDimensions()) {
28243
+ _context3.next = 9;
28244
+ break;
28245
+ }
28246
+ _context3.next = 6;
28122
28247
  return this.getCustomDimsFromCostructionService();
28123
- case 5:
28248
+ case 6:
28124
28249
  _context3.t3 = _context3.sent;
28125
- _context3.t4 = (0, _context3.t2)(_context3.t3);
28126
- return _context3.abrupt("return", _context3.t0.concat.call(_context3.t0, _context3.t1, _context3.t4));
28127
- case 8:
28250
+ _context3.next = 10;
28251
+ break;
28252
+ case 9:
28253
+ _context3.t3 = [];
28254
+ case 10:
28255
+ _context3.t4 = _context3.t3;
28256
+ _context3.t5 = (0, _context3.t2)(_context3.t4);
28257
+ return _context3.abrupt("return", _context3.t0.concat.call(_context3.t0, _context3.t1, _context3.t5));
28258
+ case 13:
28128
28259
  case "end":
28129
28260
  return _context3.stop();
28130
28261
  }
@@ -28701,7 +28832,7 @@ var DivaSet = /*#__PURE__*/function () {
28701
28832
  break;
28702
28833
  }
28703
28834
  _context5.next = 3;
28704
- return Promise.resolve().then(function () { return require('./DoorPlanner-85f5df3d.js'); });
28835
+ return Promise.resolve().then(function () { return require('./DoorPlanner-000f0379.js'); });
28705
28836
  case 3:
28706
28837
  _yield$import = _context5.sent;
28707
28838
  DoorPlanner = _yield$import["default"];
@@ -30612,10 +30743,11 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30612
30743
  //hier evtl. die Article mit einer gewissen reihenfolge durchlaufen!
30613
30744
  var optionsStates = optionStatesOfArticles[basketId];
30614
30745
  for (var optionCodex in optionsStates) {
30746
+ var _ops$addToMeasure;
30615
30747
  var ops = optionsStates[optionCodex];
30616
30748
  var selectionmode = ops.selectionmode;
30617
30749
  if (set.CatalogData.forceConfigSingle && (selectionmode == 1 || selectionmode == 2)) selectionmode = 3;
30618
- if (!ops.isInvisible && (selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && set.api.showSelectionModeZero()) && ops.isDoShow && ops.visibleCount > 0) {
30750
+ 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) {
30619
30751
  this.addOptionsStateToConfigTree(set, set.configTree, articles, basketId, ops, optionCodex, selectionmode, addToTabGroup);
30620
30752
  }
30621
30753
  }
@@ -31204,8 +31336,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
31204
31336
  value: function prepareConfigItemsForView(set, ops, myConfigItems, constructionRules, selectedVals, targetArticles, optionCodex,
31205
31337
  //bei einer OPG wird hier dessen hauptoptionCodex Übergeben
31206
31338
  idmOpgGroupName, idmOpgValCodex, idmOpgOptionCodex, freeTextValue, freeTextLang) {
31207
- var myConfigItemsForView = [],
31208
- objectKeys = Object.keys(myConfigItems);
31339
+ var myConfigItemsForView = [];
31340
+ var objectKeys = Object.keys(myConfigItems);
31341
+ var groupContentItemIdObject = this.getGroupContentItemIdObject(Object.values(myConfigItems), idmOpgGroupName);
31209
31342
  var _loop8 = function _loop8() {
31210
31343
  var _ops$optionOcd3, _item$images, _item$colorGroups, _item$pdfUrl, _item$url;
31211
31344
  var item = myConfigItems[objectKeys[i]];
@@ -31254,10 +31387,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
31254
31387
  //for freeText
31255
31388
  //if a opv has isFreeText = true and its selected a Textbox sould appear in the OptionValue
31256
31389
  //if the text is empty the opv is really selected
31257
- contentItemId: item.contentItemId,
31258
31390
  isOPVG: item.isOPVG,
31259
31391
  isParentOPVG: item.parent.codex.startsWith('OPV'),
31260
- groupContentItemId: item.groupContentItemId,
31392
+ contentItemId: item.contentItemId,
31393
+ groupContentItemId: groupName ? groupContentItemIdObject[groupName] : undefined,
31261
31394
  idmOpgOptionCodex: idmOpgOptionCodex,
31262
31395
  idmOpgValCodex: idmOpgValCodex,
31263
31396
  isFreeText: item.isFreeText,
@@ -31282,6 +31415,18 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
31282
31415
  myConfigItemsForView: myConfigItemsForView
31283
31416
  };
31284
31417
  }
31418
+ }, {
31419
+ key: "getGroupContentItemIdObject",
31420
+ value: function getGroupContentItemIdObject(configItems, alternativeGroupName) {
31421
+ var groupContentItemIdObject = {};
31422
+ for (var i = 0; i < configItems.length; i++) {
31423
+ var _item$groupName;
31424
+ var item = configItems[i];
31425
+ var groupName = (_item$groupName = item.groupName) !== null && _item$groupName !== void 0 ? _item$groupName : alternativeGroupName;
31426
+ if (groupName && item.groupContentItemId) groupContentItemIdObject[groupName] = item.groupContentItemId;
31427
+ }
31428
+ return groupContentItemIdObject;
31429
+ }
31285
31430
  }, {
31286
31431
  key: "getProductList",
31287
31432
  value: function getProductList() {
@@ -31299,10 +31444,11 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
31299
31444
  //hier evtl. die Article mit einer gewissen reihenfolge durchlaufen!
31300
31445
  var optionsStates = optionStatesOfArticles[iKey];
31301
31446
  for (var jKey in optionsStates) {
31447
+ var _ops$addToMeasure2;
31302
31448
  var ops = optionsStates[jKey];
31303
31449
  var selectionmode = ops.selectionmode;
31304
31450
  if (set.CatalogData.forceConfigSingle && (selectionmode == 1 || selectionmode == 2)) selectionmode = 3;
31305
- if (ops.isInvisible || selectionmode == 0 || !ops.isDoShow || ops.visibleCount == 0) {
31451
+ if (ops.isInvisible || selectionmode == 0 || !ops.isDoShow || ops.visibleCount == 0 || !!((_ops$addToMeasure2 = ops.addToMeasure) !== null && _ops$addToMeasure2 !== void 0 && _ops$addToMeasure2.length)) {
31306
31452
  this.addOptionsStateToConfigTree(set, configTree, articles, iKey, ops, jKey, selectionmode);
31307
31453
  }
31308
31454
  }
@@ -34064,6 +34210,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
34064
34210
  origOrderSet.AccountLogo = actOrderSet.AccountLogo;
34065
34211
  origOrderSet.CatalogOfflineVersion = actOrderSet.CatalogOfflineVersion;
34066
34212
  origOrderSet.CatalogGUID = actOrderSet.CatalogGUID;
34213
+ origOrderSet.RetailCatalogNr = actOrderSet.RetailCatalogNr;
34067
34214
  origOrderSet.CollectionGUID = actOrderSet.CollectionGUID;
34068
34215
  origOrderSet.OrderLines = actOrderSet.OrderLines;
34069
34216
  origOrderSet.OrderSetDesc = actOrderSet.OrderSetDesc;
@@ -34076,6 +34223,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
34076
34223
  origOrderSet.SetVariantBasketDatas = actOrderSet.SetVariantBasketDatas;
34077
34224
  origOrderSet.BBox = actOrderSet.BBox;
34078
34225
  origOrderSet.VariantDescription = actOrderSet.VariantDescription;
34226
+ origOrderSet.OfflineData = actOrderSet.OfflineData;
34079
34227
  if (actOrderSet.ConfigVariants && origOrderSet.ConfigVariants) origOrderSet.ConfigVariants = actOrderSet.ConfigVariants.map(function (variant, index) {
34080
34228
  var _origOrderSet$ConfigV;
34081
34229
  var configVariant = (_origOrderSet$ConfigV = origOrderSet.ConfigVariants) === null || _origOrderSet$ConfigV === void 0 ? void 0 : _origOrderSet$ConfigV[index];
@@ -34169,6 +34317,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
34169
34317
  CatalogName_locales: catalogData.name_locales,
34170
34318
  CatalogOfflineVersion: catalogData.offlineVersion,
34171
34319
  CatalogOfflineFilesLastUpdate: catalogData.offlineFilesLastUpdate,
34320
+ RetailCatalogNr: catalogData.retailCatalogNr,
34172
34321
  Description: catalogData.description,
34173
34322
  GroupType: GroupType,
34174
34323
  OfflineData: catalogData.offlineData,
@@ -34189,6 +34338,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
34189
34338
  SetName: set.setName,
34190
34339
  SetName_locales: set.setName_locales,
34191
34340
  ProductSetName: set.ProductSetName,
34341
+ SupplierGUID: catalogData.supplierGuid,
34192
34342
  SetPrice: set.getSetPrice(),
34193
34343
  BruttoSetPrice: bruttoPrice,
34194
34344
  SetQuantity: 1,
@@ -34494,7 +34644,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34494
34644
  this.plannerConfig = plannerConfig;
34495
34645
  this.assignNewDivaNr = !!this.plannerConfig.assignNewDivaNr;
34496
34646
  this._handler = plannerConfig.handler;
34497
- 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'))) {
34647
+ 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'))) {
34498
34648
  LOG$8.error(new DivaUtils.DivaError('Keine Öffnungsparameter', {
34499
34649
  code: 'WC_0003'
34500
34650
  }));
@@ -34697,7 +34847,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34697
34847
  case 60:
34698
34848
  return _context.abrupt("return", _context.sent);
34699
34849
  case 63:
34700
- 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)) {
34850
+ 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)) {
34701
34851
  _context.next = 86;
34702
34852
  break;
34703
34853
  }
@@ -34729,7 +34879,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34729
34879
  return _context.abrupt("return", _context.sent);
34730
34880
  case 75:
34731
34881
  successfully = false;
34732
- 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)) {
34882
+ 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)) {
34733
34883
  _context.next = 80;
34734
34884
  break;
34735
34885
  }
@@ -34756,7 +34906,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34756
34906
  _context.next = 91;
34757
34907
  break;
34758
34908
  case 86:
34759
- 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)) {
34909
+ 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)) {
34760
34910
  _context.next = 91;
34761
34911
  break;
34762
34912
  }
@@ -35309,7 +35459,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35309
35459
  key: "saveToBasket",
35310
35460
  value: function () {
35311
35461
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee11(api, actBasket, returnTo) {
35312
- var _this$plannerConfig$c4, _this$_basketHandler, _api$getJwt;
35462
+ var _this$plannerConfig$s9, _this$plannerConfig$c4, _this$_basketHandler, _api$getJwt;
35313
35463
  var response;
35314
35464
  return _regeneratorRuntime__default["default"].wrap(function _callee11$(_context11) {
35315
35465
  while (1) switch (_context11.prev = _context11.next) {
@@ -35320,7 +35470,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35320
35470
  actBasket.PrintOptions = api.getPrintOptions(this.reportConfig);
35321
35471
  actBasket.ClientLanguage = api.getLanguage();
35322
35472
  _context11.next = 7;
35323
- return DivaUtils__default["default"].updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser, this.plannerConfig.settings.keepSalesPersonDataInBasket);
35473
+ return DivaUtils__default["default"].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);
35324
35474
  case 7:
35325
35475
  actBasket.UserLanguage = api.getLanguage();
35326
35476
  actBasket.PrintRetailLogo = (_this$plannerConfig$c4 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c4 === void 0 ? void 0 : _this$plannerConfig$c4.logoUrl;
@@ -35491,7 +35641,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35491
35641
  break;
35492
35642
  case 3:
35493
35643
  _context12.next = 5;
35494
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-786700cb.js'); });
35644
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-6659fd4b.js'); });
35495
35645
  case 5:
35496
35646
  _yield$import = _context12.sent;
35497
35647
  PfisterWWSHandler = _yield$import["default"];
@@ -35499,7 +35649,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35499
35649
  return _context12.abrupt("break", 27);
35500
35650
  case 9:
35501
35651
  _context12.next = 11;
35502
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-8e9cc61c.js'); });
35652
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-20f43f5c.js'); });
35503
35653
  case 11:
35504
35654
  _yield$import2 = _context12.sent;
35505
35655
  LiviqueWWSHandler = _yield$import2["default"];
@@ -35507,7 +35657,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35507
35657
  return _context12.abrupt("break", 27);
35508
35658
  case 15:
35509
35659
  _context12.next = 17;
35510
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-70977945.js'); });
35660
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-9a3aaf37.js'); });
35511
35661
  case 17:
35512
35662
  _yield$import3 = _context12.sent;
35513
35663
  SeriousWWSHandler = _yield$import3["default"];
@@ -35515,7 +35665,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35515
35665
  return _context12.abrupt("break", 27);
35516
35666
  case 21:
35517
35667
  _context12.next = 23;
35518
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-4e8f472a.js'); });
35668
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-8d963edd.js'); });
35519
35669
  case 23:
35520
35670
  _yield$import4 = _context12.sent;
35521
35671
  StandardWWSHandler = _yield$import4["default"];
@@ -35800,28 +35950,6 @@ var ViewPointHandler = /*#__PURE__*/function () {
35800
35950
  value: function zoomToStep(zoomStep) {
35801
35951
  this.navInfo3D.zoom = zoomStep;
35802
35952
  }
35803
- }, {
35804
- key: "swipeLeft",
35805
- value: function swipeLeft() {
35806
- this.navInfo3D.rotHori -= 15;
35807
- }
35808
- }, {
35809
- key: "swipRight",
35810
- value: function swipRight() {
35811
- this.navInfo3D.rotHori += 15;
35812
- }
35813
- }, {
35814
- key: "swipeUp",
35815
- value: function swipeUp() {
35816
- if (this.navInfo3D.rotVert == -15) return;
35817
- this.navInfo3D.rotVert -= 15;
35818
- }
35819
- }, {
35820
- key: "swipeDown",
35821
- value: function swipeDown() {
35822
- if (this.navInfo3D.rotVert == 45) return;
35823
- this.navInfo3D.rotVert += 15;
35824
- }
35825
35953
  }, {
35826
35954
  key: "setVpName",
35827
35955
  value: function setVpName(vpName) {
@@ -35876,6 +36004,7 @@ var ViewPointHandler = /*#__PURE__*/function () {
35876
36004
  key: "initRoomList",
35877
36005
  value: function initRoomList(roomlist, defaultBackgroundWidth, defaultBackgroundHeight) {
35878
36006
  this.roomListInfo = [];
36007
+ if (!roomlist) return;
35879
36008
  var roomListObj = JSON.parse(roomlist);
35880
36009
  var roomIsSel = true;
35881
36010
  for (var roomCodex in roomListObj) {
@@ -36958,7 +37087,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36958
37087
  while (1) switch (_context3.prev = _context3.next) {
36959
37088
  case 0:
36960
37089
  _context3.next = 2;
36961
- return Promise.resolve().then(function () { return require('./Host3DSignalR-06a86be8.js'); });
37090
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-7e8a7a7f.js'); });
36962
37091
  case 2:
36963
37092
  _yield$import = _context3.sent;
36964
37093
  Host3DSignalR = _yield$import["default"];
@@ -37659,7 +37788,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37659
37788
  }, {
37660
37789
  key: "handle3DVisualizationChanged",
37661
37790
  value: function handle3DVisualizationChanged(mode, params) {
37662
- var _params$nav3DZoom, _params$nav3DZoom2, _params$nav3DZoom3, _params$nav3DSwipe, _params$nav3DSwipe2, _params$nav3DSwipe3, _params$nav3DSwipe4;
37791
+ var _params$nav3DZoom, _params$nav3DZoom2, _params$nav3DZoom3;
37663
37792
  switch (mode) {
37664
37793
  case 'Nav3DFullScreen':
37665
37794
  break;
@@ -37672,17 +37801,6 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37672
37801
  this.viewPointHandler.zoomToStep(params.nav3DZoom.zoomVal);
37673
37802
  }
37674
37803
  break;
37675
- case 'Nav3DSwipe':
37676
- if ((_params$nav3DSwipe = params.nav3DSwipe) !== null && _params$nav3DSwipe !== void 0 && _params$nav3DSwipe.doSwipeRight) {
37677
- this.viewPointHandler.swipRight();
37678
- } else if ((_params$nav3DSwipe2 = params.nav3DSwipe) !== null && _params$nav3DSwipe2 !== void 0 && _params$nav3DSwipe2.doSwipeLeft) {
37679
- this.viewPointHandler.swipeLeft();
37680
- } else if ((_params$nav3DSwipe3 = params.nav3DSwipe) !== null && _params$nav3DSwipe3 !== void 0 && _params$nav3DSwipe3.doSwipeDown) {
37681
- this.viewPointHandler.swipeDown();
37682
- } else if ((_params$nav3DSwipe4 = params.nav3DSwipe) !== null && _params$nav3DSwipe4 !== void 0 && _params$nav3DSwipe4.doSwipeUp) {
37683
- this.viewPointHandler.swipeUp();
37684
- }
37685
- break;
37686
37804
  case 'Nav3DFocus':
37687
37805
  this.viewPointHandler.focusOnElementId(params.nav3DFocus.setId, params.nav3DFocus.focusElementId);
37688
37806
  break;
@@ -38523,7 +38641,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38523
38641
  break;
38524
38642
  case 8:
38525
38643
  _context4.next = 10;
38526
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-3b70656f.js'); });
38644
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-5c023752.js'); });
38527
38645
  case 10:
38528
38646
  _yield$import = _context4.sent;
38529
38647
  DivaStandardPlanner = _yield$import["default"];
@@ -38534,7 +38652,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38534
38652
  return _context4.abrupt("break", 21);
38535
38653
  case 15:
38536
38654
  _context4.next = 17;
38537
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-230a7343.js'); });
38655
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-2016c8ea.js'); });
38538
38656
  case 17:
38539
38657
  _yield$import2 = _context4.sent;
38540
38658
  DivaBoxPlanner = _yield$import2["default"];
@@ -39292,7 +39410,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
39292
39410
  planner3DGridEnabled: false,
39293
39411
  mediaServiceSaveMode: 'STREAM',
39294
39412
  doShow3DDimensionLines: !!doShow3DDimensionLines
39295
- }, undefined);
39413
+ }, undefined, true);
39296
39414
  } else {
39297
39415
  this.handler3D.handle3DVisualizationChanged(mode, params);
39298
39416
  }
@@ -40288,7 +40406,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40288
40406
  key: "initialize",
40289
40407
  value: function () {
40290
40408
  var _initialize = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee14() {
40291
- var viewReadyPromise, loadSuccessful, _this$actions16, _set$getDivaArticles, _this$actions15, _this$actions15$toggl, initSetState, set, oldProductId, result, _this$actions17, catalogData, initializationId, _this$plannerConfig$a;
40409
+ var viewReadyPromise, loadSuccessful;
40292
40410
  return _regeneratorRuntime__default["default"].wrap(function _callee14$(_context14) {
40293
40411
  while (1) switch (_context14.prev = _context14.next) {
40294
40412
  case 0:
@@ -40317,59 +40435,97 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40317
40435
  DivaUtils__default["default"].businessMetrics.setConfiguratorSessionId();
40318
40436
  }
40319
40437
  if (!loadSuccessful) {
40320
- _context14.next = 56;
40438
+ _context14.next = 27;
40321
40439
  break;
40322
40440
  }
40441
+ _context14.prev = 15;
40442
+ _context14.next = 18;
40443
+ return this.initializeSets(loadSuccessful, viewReadyPromise);
40444
+ case 18:
40445
+ return _context14.abrupt("return", _context14.sent);
40446
+ case 21:
40447
+ _context14.prev = 21;
40448
+ _context14.t0 = _context14["catch"](15);
40449
+ this.onInitializationError();
40450
+ return _context14.abrupt("return", false);
40451
+ case 25:
40452
+ _context14.next = 30;
40453
+ break;
40454
+ case 27:
40455
+ this.onInitializationError();
40456
+ //fehler beim laden vom basket..
40457
+ LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
40458
+ return _context14.abrupt("return", false);
40459
+ case 30:
40460
+ case "end":
40461
+ return _context14.stop();
40462
+ }
40463
+ }, _callee14, this, [[15, 21]]);
40464
+ }));
40465
+ function initialize() {
40466
+ return _initialize.apply(this, arguments);
40467
+ }
40468
+ return initialize;
40469
+ }()
40470
+ }, {
40471
+ key: "initializeSets",
40472
+ value: function () {
40473
+ var _initializeSets = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee15(loadSuccessful, viewReadyPromise) {
40474
+ var _this$actions16, _set$getDivaArticles;
40475
+ var _this$actions15, _this$actions15$toggl, initSetState, set, oldProductId, result, _this$actions17, catalogData, initializationId, _this$plannerConfig$a;
40476
+ return _regeneratorRuntime__default["default"].wrap(function _callee15$(_context15) {
40477
+ while (1) switch (_context15.prev = _context15.next) {
40478
+ case 0:
40323
40479
  if (!(typeof loadSuccessful != 'boolean')) {
40324
- _context14.next = 24;
40480
+ _context15.next = 9;
40325
40481
  break;
40326
40482
  }
40327
40483
  if (!(loadSuccessful.type == 'ProductList')) {
40328
- _context14.next = 24;
40484
+ _context15.next = 9;
40329
40485
  break;
40330
40486
  }
40331
- _context14.next = 19;
40487
+ _context15.next = 4;
40332
40488
  return viewReadyPromise;
40333
- case 19:
40334
- _context14.next = 21;
40489
+ case 4:
40490
+ _context15.next = 6;
40335
40491
  return this.initView();
40336
- case 21:
40492
+ case 6:
40337
40493
  this.subscribeToWebPlannerEvents();
40338
40494
  (_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);
40339
- return _context14.abrupt("return", true);
40340
- case 24:
40495
+ return _context15.abrupt("return", true);
40496
+ case 9:
40341
40497
  this.divaNr = this.divaBasketHandler.actDivaNr;
40342
40498
  initSetState = this.getInitStateForSet();
40343
40499
  this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
40344
- _context14.next = 29;
40500
+ _context15.next = 14;
40345
40501
  return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
40346
- case 29:
40502
+ case 14:
40347
40503
  set = this.actSet();
40348
40504
  oldProductId = this.divaBasketHandler.actBasket.MatchingProductId || this.divaBasketHandler.actBasket.OrigProductId;
40349
40505
  if (!(oldProductId && set && set !== null && set !== void 0 && set.api.doCheckForProductsPrice())) {
40350
- _context14.next = 38;
40506
+ _context15.next = 23;
40351
40507
  break;
40352
40508
  }
40353
- _context14.next = 34;
40509
+ _context15.next = 19;
40354
40510
  return this.divaBasketHandler.getProduct(this.api, oldProductId);
40355
- case 34:
40356
- result = _context14.sent;
40511
+ case 19:
40512
+ result = _context15.sent;
40357
40513
  if (result) productHandlerInstance.handleFountMatchingProducts(set, [result], set.setHash);
40358
- _context14.next = 39;
40514
+ _context15.next = 24;
40359
40515
  break;
40360
- case 38:
40516
+ case 23:
40361
40517
  if (typeof loadSuccessful != 'boolean' && set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
40362
40518
  if (loadSuccessful.type != 'ProductList') {
40363
40519
  productHandlerInstance.handleFountMatchingProducts(set, [loadSuccessful], set.setHash);
40364
40520
  }
40365
40521
  }
40366
- case 39:
40367
- _context14.next = 41;
40522
+ case 24:
40523
+ _context15.next = 26;
40368
40524
  return viewReadyPromise;
40369
- case 41:
40370
- _context14.next = 43;
40525
+ case 26:
40526
+ _context15.next = 28;
40371
40527
  return this.initView();
40372
- case 43:
40528
+ case 28:
40373
40529
  (_this$actions16 = this.actions) === null || _this$actions16 === void 0 || _this$actions16.onEvent({
40374
40530
  type: 'onConfiguratorReady'
40375
40531
  });
@@ -40379,7 +40535,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40379
40535
  });
40380
40536
  }
40381
40537
  this.subscribeToWebPlannerEvents();
40382
- this.divaBasketHandler.actBasket;
40383
40538
  catalogData = set === null || set === void 0 ? void 0 : set.CatalogData;
40384
40539
  initializationId = undefined;
40385
40540
  if (this.divaBasketHandler.initializationTypeGetter == 'PRODUCT_ID') {
@@ -40404,25 +40559,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40404
40559
  initializationType: this.divaBasketHandler.initializationTypeGetter,
40405
40560
  initializationId: initializationId
40406
40561
  }, false);
40407
- _context14.next = 53;
40562
+ _context15.next = 37;
40408
40563
  return this.fillBaksetforOnWebPlanerConfigChange(undefined, true);
40409
- case 53:
40410
- return _context14.abrupt("return", true);
40411
- case 56:
40412
- this.onInitializationError();
40413
- //fehler beim laden vom basket..
40414
- LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
40415
- return _context14.abrupt("return", false);
40416
- case 59:
40564
+ case 37:
40565
+ return _context15.abrupt("return", true);
40566
+ case 38:
40417
40567
  case "end":
40418
- return _context14.stop();
40568
+ return _context15.stop();
40419
40569
  }
40420
- }, _callee14, this);
40570
+ }, _callee15, this);
40421
40571
  }));
40422
- function initialize() {
40423
- return _initialize.apply(this, arguments);
40572
+ function initializeSets(_x53, _x54) {
40573
+ return _initializeSets.apply(this, arguments);
40424
40574
  }
40425
- return initialize;
40575
+ return initializeSets;
40426
40576
  }()
40427
40577
  }, {
40428
40578
  key: "updatePlannerConfig",
@@ -40481,11 +40631,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40481
40631
  var _this$plannerConfig$a3;
40482
40632
  if (!(onErrorHandling !== null && onErrorHandling !== void 0 && onErrorHandling.hideErrorMsg)) {
40483
40633
  var _this$plannerConfig$a2, _this$i18n$t, _this$i18n4, _onErrorHandling$erro;
40634
+ var isWeb = this.api.getApplicationEnvironment() == 'WEB';
40484
40635
  (_this$plannerConfig$a2 = this.plannerConfig.actions) === null || _this$plannerConfig$a2 === void 0 || _this$plannerConfig$a2.openModal({
40485
40636
  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.',
40486
40637
  accept: true,
40487
40638
  callback: function callback(accepted) {
40488
- if (accepted && _this2.api.getApplicationEnvironment() == 'WEB') {
40639
+ if (accepted && isWeb) {
40489
40640
  var _this2$state;
40490
40641
  _this2.callEvent('onWebPlanerClose');
40491
40642
  ((_this2$state = _this2.state) === null || _this2$state === void 0 ? void 0 : _this2$state.isFullscreenComponent) && _this2.callEvent('onFullscreenClose');
@@ -40549,23 +40700,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40549
40700
  }, {
40550
40701
  key: "initView",
40551
40702
  value: (function () {
40552
- var _initView = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee15() {
40703
+ var _initView = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee16() {
40553
40704
  var set, plannerMode, _this$initConfigurato, _this$initPlannerView, _this$initConfigurato2, _this$updateViewPlann9;
40554
- return _regeneratorRuntime__default["default"].wrap(function _callee15$(_context15) {
40555
- while (1) switch (_context15.prev = _context15.next) {
40705
+ return _regeneratorRuntime__default["default"].wrap(function _callee16$(_context16) {
40706
+ while (1) switch (_context16.prev = _context16.next) {
40556
40707
  case 0:
40557
40708
  set = this.actSet();
40558
40709
  plannerMode = this.getPlannerMode();
40559
40710
  this.initConfiguratorMode(plannerMode);
40560
40711
  if (!(plannerMode == 'ProductList')) {
40561
- _context15.next = 7;
40712
+ _context16.next = 7;
40562
40713
  break;
40563
40714
  }
40564
40715
  (_this$initConfigurato = this.initConfiguratorStructure) === null || _this$initConfigurato === void 0 || _this$initConfigurato.call(this, setHandlerInstance.loadConfigStructureForOnlyProductsList());
40565
- _context15.next = 17;
40716
+ _context16.next = 17;
40566
40717
  break;
40567
40718
  case 7:
40568
- _context15.next = 9;
40719
+ _context16.next = 9;
40569
40720
  return (_this$initPlannerView = this.initPlannerView) === null || _this$initPlannerView === void 0 ? void 0 : _this$initPlannerView.call(this);
40570
40721
  case 9:
40571
40722
  //first load the Configuratorstructure STARTCONFIG
@@ -40579,13 +40730,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40579
40730
  this.onBasketInitialized();
40580
40731
  this.checkMatchingProducts('onInit');
40581
40732
  case 17:
40582
- _context15.next = 19;
40733
+ _context16.next = 19;
40583
40734
  return this.runInitMode(plannerMode);
40584
40735
  case 19:
40585
40736
  case "end":
40586
- return _context15.stop();
40737
+ return _context16.stop();
40587
40738
  }
40588
- }, _callee15, this);
40739
+ }, _callee16, this);
40589
40740
  }));
40590
40741
  function initView() {
40591
40742
  return _initView.apply(this, arguments);
@@ -40606,26 +40757,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40606
40757
  }, {
40607
40758
  key: "runInitMode",
40608
40759
  value: function () {
40609
- var _runInitMode = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee16(plannerMode) {
40760
+ var _runInitMode = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee17(plannerMode) {
40610
40761
  var _this$state3;
40611
40762
  var doDefault, _this$navigateToTabGr2, configStepKey, _this$actSet5, _this$navigateToTabGr3, _this$navigateToTabGr4, _this$navigateToTabGr5;
40612
- return _regeneratorRuntime__default["default"].wrap(function _callee16$(_context16) {
40613
- while (1) switch (_context16.prev = _context16.next) {
40763
+ return _regeneratorRuntime__default["default"].wrap(function _callee17$(_context17) {
40764
+ while (1) switch (_context17.prev = _context17.next) {
40614
40765
  case 0:
40615
40766
  doDefault = true;
40616
40767
  if (!(this.plannerConfig.initMode == 'OPEN_LEAFLET_BARRIER' || this.plannerConfig.initMode == 'SHOW_PDF')) {
40617
- _context16.next = 10;
40768
+ _context17.next = 10;
40618
40769
  break;
40619
40770
  }
40620
40771
  if (this.plannerConfig.initMode == 'OPEN_LEAFLET_BARRIER') this.ReturnTo = 'OPEN_LEAFLET_BARRIER';
40621
40772
  if (this.plannerConfig.initMode == 'SHOW_PDF') this.ReturnTo = 'OPEN_PDF';
40622
40773
  (_this$navigateToTabGr2 = this.navigateToTabGroup) === null || _this$navigateToTabGr2 === void 0 || _this$navigateToTabGr2.call(this, 'SUMMARY', undefined, true);
40623
40774
  //TODO lea bug das hier ist nur ein temporäre lößung https://app.asana.com/0/1200869909950432/1200998848659806
40624
- _context16.next = 7;
40775
+ _context17.next = 7;
40625
40776
  return this.saveToBasketWrapper();
40626
40777
  case 7:
40627
40778
  doDefault = false;
40628
- _context16.next = 11;
40779
+ _context17.next = 11;
40629
40780
  break;
40630
40781
  case 10:
40631
40782
  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) {
@@ -40649,11 +40800,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40649
40800
  }
40650
40801
  case 12:
40651
40802
  case "end":
40652
- return _context16.stop();
40803
+ return _context17.stop();
40653
40804
  }
40654
- }, _callee16, this);
40805
+ }, _callee17, this);
40655
40806
  }));
40656
- function runInitMode(_x53) {
40807
+ function runInitMode(_x55) {
40657
40808
  return _runInitMode.apply(this, arguments);
40658
40809
  }
40659
40810
  return runInitMode;
@@ -40661,16 +40812,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40661
40812
  }, {
40662
40813
  key: "addSetToActPlanningByDivaNr",
40663
40814
  value: function () {
40664
- var _addSetToActPlanningByDivaNr = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee17(divaNr) {
40815
+ var _addSetToActPlanningByDivaNr = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee18(divaNr) {
40665
40816
  var _this$updateViewPlann10;
40666
40817
  var set, orderSets, i, orderset, lastSetToInitialize, loadedSet, articlesKeys;
40667
- return _regeneratorRuntime__default["default"].wrap(function _callee17$(_context17) {
40668
- while (1) switch (_context17.prev = _context17.next) {
40818
+ return _regeneratorRuntime__default["default"].wrap(function _callee18$(_context18) {
40819
+ while (1) switch (_context18.prev = _context18.next) {
40669
40820
  case 0:
40670
40821
  set = this.actSet();
40671
40822
  this.divaBasketHandler.updateDivaNrInBasket(divaNr);
40672
40823
  this.divaBasketHandler.setIgnoreInitObjectWhenInitializing();
40673
- _context17.next = 5;
40824
+ _context18.next = 5;
40674
40825
  return this.divaBasketHandler.initializeBasket(this.api);
40675
40826
  case 5:
40676
40827
  orderSets = this.divaBasketHandler.actBasket.OrderSets;
@@ -40678,30 +40829,30 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40678
40829
  i = 0;
40679
40830
  case 8:
40680
40831
  if (!(i < orderSets.length)) {
40681
- _context17.next = 24;
40832
+ _context18.next = 24;
40682
40833
  break;
40683
40834
  }
40684
40835
  orderset = orderSets[i];
40685
40836
  lastSetToInitialize = setHandlerInstance.getOrderSetShouldInitPlanner(orderSets, i);
40686
40837
  loadedSet = setHandlerInstance.findLoadedSet(this.sets, orderset.CatalogCodex, orderset.AccountGUID);
40687
40838
  if (!loadedSet) {
40688
- _context17.next = 18;
40839
+ _context18.next = 18;
40689
40840
  break;
40690
40841
  }
40691
- _context17.next = 15;
40842
+ _context18.next = 15;
40692
40843
  return setHandlerInstance.addOrderSetArticlesToExistingSet(loadedSet, orderset, lastSetToInitialize);
40693
40844
  case 15:
40694
40845
  this.checkMatchingProducts('onAdd');
40695
- _context17.next = 20;
40846
+ _context18.next = 20;
40696
40847
  break;
40697
40848
  case 18:
40698
- _context17.next = 20;
40849
+ _context18.next = 20;
40699
40850
  return setHandlerInstance.initSet(orderset, this.getInitStateForSet(), lastSetToInitialize);
40700
40851
  case 20:
40701
40852
  this.cleanUpEmptySets(true);
40702
40853
  case 21:
40703
40854
  i++;
40704
- _context17.next = 8;
40855
+ _context18.next = 8;
40705
40856
  break;
40706
40857
  case 24:
40707
40858
  this.divaBasketHandler.actBasket.OrderSets = [];
@@ -40713,11 +40864,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40713
40864
  this.loadPaletteInfos(undefined, [articlesKeys[0]], articlesKeys);
40714
40865
  case 31:
40715
40866
  case "end":
40716
- return _context17.stop();
40867
+ return _context18.stop();
40717
40868
  }
40718
- }, _callee17, this);
40869
+ }, _callee18, this);
40719
40870
  }));
40720
- function addSetToActPlanningByDivaNr(_x54) {
40871
+ function addSetToActPlanningByDivaNr(_x56) {
40721
40872
  return _addSetToActPlanningByDivaNr.apply(this, arguments);
40722
40873
  }
40723
40874
  return addSetToActPlanningByDivaNr;
@@ -40750,28 +40901,28 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40750
40901
  }, {
40751
40902
  key: "setActSetCurConfigStepKey",
40752
40903
  value: function () {
40753
- var _setActSetCurConfigStepKey = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee18(curConfigStepKey) {
40904
+ var _setActSetCurConfigStepKey = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee19(curConfigStepKey) {
40754
40905
  var set;
40755
- return _regeneratorRuntime__default["default"].wrap(function _callee18$(_context18) {
40756
- while (1) switch (_context18.prev = _context18.next) {
40906
+ return _regeneratorRuntime__default["default"].wrap(function _callee19$(_context19) {
40907
+ while (1) switch (_context19.prev = _context19.next) {
40757
40908
  case 0:
40758
40909
  set = this.actSet();
40759
40910
  if (set) {
40760
- _context18.next = 3;
40911
+ _context19.next = 3;
40761
40912
  break;
40762
40913
  }
40763
- return _context18.abrupt("return");
40914
+ return _context19.abrupt("return");
40764
40915
  case 3:
40765
40916
  set.ActConfigStepKey = curConfigStepKey;
40766
- _context18.next = 6;
40917
+ _context19.next = 6;
40767
40918
  return setHandlerInstance.updateNavigation(set);
40768
40919
  case 6:
40769
40920
  case "end":
40770
- return _context18.stop();
40921
+ return _context19.stop();
40771
40922
  }
40772
- }, _callee18, this);
40923
+ }, _callee19, this);
40773
40924
  }));
40774
- function setActSetCurConfigStepKey(_x55) {
40925
+ function setActSetCurConfigStepKey(_x57) {
40775
40926
  return _setActSetCurConfigStepKey.apply(this, arguments);
40776
40927
  }
40777
40928
  return setActSetCurConfigStepKey;
@@ -40920,17 +41071,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40920
41071
  }, {
40921
41072
  key: "deletePlannerElement",
40922
41073
  value: function () {
40923
- var _deletePlannerElement = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee19(setId, elementId, denyElementSelectionClear) {
41074
+ var _deletePlannerElement = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee20(setId, elementId, denyElementSelectionClear) {
40924
41075
  var _this$updateViewPlann11;
40925
41076
  var set, result, _this$updateElementSe5, _this$updateElementSe6;
40926
- return _regeneratorRuntime__default["default"].wrap(function _callee19$(_context19) {
40927
- while (1) switch (_context19.prev = _context19.next) {
41077
+ return _regeneratorRuntime__default["default"].wrap(function _callee20$(_context20) {
41078
+ while (1) switch (_context20.prev = _context20.next) {
40928
41079
  case 0:
40929
41080
  set = this.sets[setId];
40930
- _context19.next = 3;
41081
+ _context20.next = 3;
40931
41082
  return setHandlerInstance.deleteElementFromSetByElemId(set, elementId, true);
40932
41083
  case 3:
40933
- result = _context19.sent;
41084
+ result = _context20.sent;
40934
41085
  this.updateConfigStructure();
40935
41086
  (_this$updateViewPlann11 = this.updateViewPlannerElements) === null || _this$updateViewPlann11 === void 0 || _this$updateViewPlann11.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
40936
41087
  this.updatePlannerView('DELETE_PLANNER_ELEMENT');
@@ -40941,17 +41092,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40941
41092
  }
40942
41093
  this.updatePriceInView();
40943
41094
  this.checkMatchingProducts('onDelete');
40944
- _context19.next = 14;
41095
+ _context20.next = 14;
40945
41096
  return this.getFreePlacesOnGrids(undefined, 'deleteElement');
40946
41097
  case 14:
40947
41098
  this.plannerChangeLog('onDeletePlanner');
40948
41099
  case 15:
40949
41100
  case "end":
40950
- return _context19.stop();
41101
+ return _context20.stop();
40951
41102
  }
40952
- }, _callee19, this);
41103
+ }, _callee20, this);
40953
41104
  }));
40954
- function deletePlannerElement(_x56, _x57, _x58) {
41105
+ function deletePlannerElement(_x58, _x59, _x60) {
40955
41106
  return _deletePlannerElement.apply(this, arguments);
40956
41107
  }
40957
41108
  return deletePlannerElement;
@@ -40965,17 +41116,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40965
41116
  }, {
40966
41117
  key: "copyPlannerElement",
40967
41118
  value: (function () {
40968
- var _copyPlannerElement = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee20(setId, elementId, curConfigKey, copyInfo) {
41119
+ var _copyPlannerElement = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee21(setId, elementId, curConfigKey, copyInfo) {
40969
41120
  var _this$updateViewPlann12;
40970
41121
  var set, newSelectedArticle, newConfigStepKey, _this$updateElementSe7, baseArticle;
40971
- return _regeneratorRuntime__default["default"].wrap(function _callee20$(_context20) {
40972
- while (1) switch (_context20.prev = _context20.next) {
41122
+ return _regeneratorRuntime__default["default"].wrap(function _callee21$(_context21) {
41123
+ while (1) switch (_context21.prev = _context21.next) {
40973
41124
  case 0:
40974
41125
  set = this.sets[setId];
40975
- _context20.next = 3;
41126
+ _context21.next = 3;
40976
41127
  return setHandlerInstance.copyPlannerElement(set, elementId, copyInfo);
40977
41128
  case 3:
40978
- newSelectedArticle = _context20.sent;
41129
+ newSelectedArticle = _context21.sent;
40979
41130
  this.updateConfigStructure();
40980
41131
  (_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
40981
41132
  this.updatePlannerView('COPY_PLANNER_ELEMENT');
@@ -40989,14 +41140,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40989
41140
  (_this$updateElementSe7 = this.updateElementSelectionPlanner) === null || _this$updateElementSe7 === void 0 || _this$updateElementSe7.call(this, [baseArticle.setId], [baseArticle.elementId], true);
40990
41141
  }
40991
41142
  this.checkMatchingProducts('onCopy');
40992
- return _context20.abrupt("return", newConfigStepKey);
41143
+ return _context21.abrupt("return", newConfigStepKey);
40993
41144
  case 13:
40994
41145
  case "end":
40995
- return _context20.stop();
41146
+ return _context21.stop();
40996
41147
  }
40997
- }, _callee20, this);
41148
+ }, _callee21, this);
40998
41149
  }));
40999
- function copyPlannerElement(_x59, _x60, _x61, _x62) {
41150
+ function copyPlannerElement(_x61, _x62, _x63, _x64) {
41000
41151
  return _copyPlannerElement.apply(this, arguments);
41001
41152
  }
41002
41153
  return copyPlannerElement;
@@ -41025,33 +41176,33 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41025
41176
  }, {
41026
41177
  key: "getFreePlacesOnGrids",
41027
41178
  value: function () {
41028
- var _getFreePlacesOnGrids = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee21(gridGroup, from) {
41179
+ var _getFreePlacesOnGrids = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee22(gridGroup, from) {
41029
41180
  var _this$updateFreePlace;
41030
41181
  var set, freeShelfGrids, plannedShelfGrids;
41031
- return _regeneratorRuntime__default["default"].wrap(function _callee21$(_context21) {
41032
- while (1) switch (_context21.prev = _context21.next) {
41182
+ return _regeneratorRuntime__default["default"].wrap(function _callee22$(_context22) {
41183
+ while (1) switch (_context22.prev = _context22.next) {
41033
41184
  case 0:
41034
41185
  set = this.actSet();
41035
41186
  if (set) {
41036
- _context21.next = 3;
41187
+ _context22.next = 3;
41037
41188
  break;
41038
41189
  }
41039
41190
  throw new Error('getFreePlacesOnGrids: act set is not defined!');
41040
41191
  case 3:
41041
41192
  if (!gridGroup) {
41042
- _context21.next = 9;
41193
+ _context22.next = 9;
41043
41194
  break;
41044
41195
  }
41045
- _context21.next = 6;
41196
+ _context22.next = 6;
41046
41197
  return setHandlerInstance.getFreeShelfGrids(set, gridGroup);
41047
41198
  case 6:
41048
- _context21.t0 = _context21.sent;
41049
- _context21.next = 10;
41199
+ _context22.t0 = _context22.sent;
41200
+ _context22.next = 10;
41050
41201
  break;
41051
41202
  case 9:
41052
- _context21.t0 = undefined;
41203
+ _context22.t0 = undefined;
41053
41204
  case 10:
41054
- freeShelfGrids = _context21.t0;
41205
+ freeShelfGrids = _context22.t0;
41055
41206
  plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
41056
41207
  LOG$1.debug('TOULA', 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
41057
41208
  LOG$1.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
@@ -41059,17 +41210,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41059
41210
  freeShelfGrids: freeShelfGrids,
41060
41211
  plannedShelfGrids: plannedShelfGrids
41061
41212
  });
41062
- return _context21.abrupt("return", {
41213
+ return _context22.abrupt("return", {
41063
41214
  freeShelfGrids: freeShelfGrids,
41064
41215
  plannedShelfGrids: plannedShelfGrids
41065
41216
  });
41066
41217
  case 16:
41067
41218
  case "end":
41068
- return _context21.stop();
41219
+ return _context22.stop();
41069
41220
  }
41070
- }, _callee21, this);
41221
+ }, _callee22, this);
41071
41222
  }));
41072
- function getFreePlacesOnGrids(_x63, _x64) {
41223
+ function getFreePlacesOnGrids(_x65, _x66) {
41073
41224
  return _getFreePlacesOnGrids.apply(this, arguments);
41074
41225
  }
41075
41226
  return getFreePlacesOnGrids;
@@ -41086,36 +41237,36 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41086
41237
  }, {
41087
41238
  key: "moveShelfItemToGrid",
41088
41239
  value: function () {
41089
- var _moveShelfItemToGrid = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee22(accessoireBasketId, parentBasketId, gridName, cellIndex) {
41240
+ var _moveShelfItemToGrid = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee23(accessoireBasketId, parentBasketId, gridName, cellIndex) {
41090
41241
  var set, newGridId;
41091
- return _regeneratorRuntime__default["default"].wrap(function _callee22$(_context22) {
41092
- while (1) switch (_context22.prev = _context22.next) {
41242
+ return _regeneratorRuntime__default["default"].wrap(function _callee23$(_context23) {
41243
+ while (1) switch (_context23.prev = _context23.next) {
41093
41244
  case 0:
41094
41245
  set = this.actSet();
41095
41246
  if (set) {
41096
- _context22.next = 3;
41247
+ _context23.next = 3;
41097
41248
  break;
41098
41249
  }
41099
- return _context22.abrupt("return");
41250
+ return _context23.abrupt("return");
41100
41251
  case 3:
41101
- _context22.next = 5;
41252
+ _context23.next = 5;
41102
41253
  return setHandlerInstance.moveShelfItemToGrid(set, accessoireBasketId, parentBasketId, gridName, cellIndex);
41103
41254
  case 5:
41104
- newGridId = _context22.sent;
41255
+ newGridId = _context23.sent;
41105
41256
  this.updatePlannerView('MOVE_SHELF_ITEM');
41106
41257
  if (!newGridId) {
41107
- _context22.next = 10;
41258
+ _context23.next = 10;
41108
41259
  break;
41109
41260
  }
41110
- _context22.next = 10;
41261
+ _context23.next = 10;
41111
41262
  return this.getFreePlacesOnGrids(newGridId, 'move shelf');
41112
41263
  case 10:
41113
41264
  case "end":
41114
- return _context22.stop();
41265
+ return _context23.stop();
41115
41266
  }
41116
- }, _callee22, this);
41267
+ }, _callee23, this);
41117
41268
  }));
41118
- function moveShelfItemToGrid(_x65, _x66, _x67, _x68) {
41269
+ function moveShelfItemToGrid(_x67, _x68, _x69, _x70) {
41119
41270
  return _moveShelfItemToGrid.apply(this, arguments);
41120
41271
  }
41121
41272
  return moveShelfItemToGrid;
@@ -41123,27 +41274,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41123
41274
  }, {
41124
41275
  key: "resetArticle",
41125
41276
  value: function () {
41126
- var _resetArticle = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee23(basketId) {
41277
+ var _resetArticle = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee24(basketId) {
41127
41278
  var set;
41128
- return _regeneratorRuntime__default["default"].wrap(function _callee23$(_context23) {
41129
- while (1) switch (_context23.prev = _context23.next) {
41279
+ return _regeneratorRuntime__default["default"].wrap(function _callee24$(_context24) {
41280
+ while (1) switch (_context24.prev = _context24.next) {
41130
41281
  case 0:
41131
41282
  set = this.actSet();
41132
41283
  if (set) {
41133
- _context23.next = 3;
41284
+ _context24.next = 3;
41134
41285
  break;
41135
41286
  }
41136
- return _context23.abrupt("return");
41287
+ return _context24.abrupt("return");
41137
41288
  case 3:
41138
- _context23.next = 5;
41289
+ _context24.next = 5;
41139
41290
  return setHandlerInstance.resetArticle(set, basketId);
41140
41291
  case 5:
41141
41292
  case "end":
41142
- return _context23.stop();
41293
+ return _context24.stop();
41143
41294
  }
41144
- }, _callee23, this);
41295
+ }, _callee24, this);
41145
41296
  }));
41146
- function resetArticle(_x69) {
41297
+ function resetArticle(_x71) {
41147
41298
  return _resetArticle.apply(this, arguments);
41148
41299
  }
41149
41300
  return resetArticle;
@@ -41173,10 +41324,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41173
41324
  }, {
41174
41325
  key: "checkMatchingProducts",
41175
41326
  value: function () {
41176
- var _checkMatchingProducts = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee24(from) {
41327
+ var _checkMatchingProducts = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee25(from) {
41177
41328
  var set, _set$getMatchingProdu, _set$getMatchingOrigP, _set$getMatchingOrigP2, _set$getMatchingProdu2;
41178
- return _regeneratorRuntime__default["default"].wrap(function _callee24$(_context24) {
41179
- while (1) switch (_context24.prev = _context24.next) {
41329
+ return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
41330
+ while (1) switch (_context25.prev = _context25.next) {
41180
41331
  case 0:
41181
41332
  set = this.actSet();
41182
41333
  if (set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
@@ -41190,20 +41341,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41190
41341
  }
41191
41342
  }
41192
41343
  if (!(set !== null && set !== void 0 && set.api.doCheckForProductsMatch())) {
41193
- _context24.next = 6;
41344
+ _context25.next = 6;
41194
41345
  break;
41195
41346
  }
41196
- _context24.next = 5;
41347
+ _context25.next = 5;
41197
41348
  return productHandlerInstance.updateProducts(this.setsAsArray, this.api, this.divaBasketHandler.divaWWSHandler, from);
41198
41349
  case 5:
41199
41350
  this.updatePriceInView();
41200
41351
  case 6:
41201
41352
  case "end":
41202
- return _context24.stop();
41353
+ return _context25.stop();
41203
41354
  }
41204
- }, _callee24, this);
41355
+ }, _callee25, this);
41205
41356
  }));
41206
- function checkMatchingProducts(_x70) {
41357
+ function checkMatchingProducts(_x72) {
41207
41358
  return _checkMatchingProducts.apply(this, arguments);
41208
41359
  }
41209
41360
  return checkMatchingProducts;
@@ -41280,7 +41431,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41280
41431
  }, {
41281
41432
  key: "saveToBasketWrapper",
41282
41433
  value: function () {
41283
- var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee25(event, repairOnly, force) {
41434
+ var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, force) {
41284
41435
  var _this$actions27,
41285
41436
  _this$actions27$toggl,
41286
41437
  _this$actions28,
@@ -41289,8 +41440,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41289
41440
  _this$actions32,
41290
41441
  _this$i18n14;
41291
41442
  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;
41292
- return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
41293
- while (1) switch (_context25.prev = _context25.next) {
41443
+ return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
41444
+ while (1) switch (_context26.prev = _context26.next) {
41294
41445
  case 0:
41295
41446
  returnTo = this.getReturnTo(event);
41296
41447
  finalEvent = {
@@ -41298,50 +41449,50 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41298
41449
  saveBasket: true
41299
41450
  };
41300
41451
  if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
41301
- _context25.next = 21;
41452
+ _context26.next = 21;
41302
41453
  break;
41303
41454
  }
41304
41455
  product = undefined;
41305
41456
  if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
41306
- _context25.next = 10;
41457
+ _context26.next = 10;
41307
41458
  break;
41308
41459
  }
41309
41460
  url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
41310
- _context25.next = 8;
41461
+ _context26.next = 8;
41311
41462
  return this.api.getDataCache(url, url, undefined, 'catalog');
41312
41463
  case 8:
41313
- _result = _context25.sent;
41464
+ _result = _context26.sent;
41314
41465
  product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
41315
41466
  case 10:
41316
- _context25.next = 12;
41467
+ _context26.next = 12;
41317
41468
  return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
41318
41469
  case 12:
41319
- finalEvent = _context25.sent;
41470
+ finalEvent = _context26.sent;
41320
41471
  if (finalEvent) {
41321
- _context25.next = 17;
41472
+ _context26.next = 17;
41322
41473
  break;
41323
41474
  }
41324
- return _context25.abrupt("return", 'canceled');
41475
+ return _context26.abrupt("return", 'canceled');
41325
41476
  case 17:
41326
41477
  if (!(!finalEvent.saveBasket && finalEvent.event)) {
41327
- _context25.next = 20;
41478
+ _context26.next = 20;
41328
41479
  break;
41329
41480
  }
41330
41481
  (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
41331
41482
  type: finalEvent.event
41332
41483
  });
41333
- return _context25.abrupt("return", 'canceled');
41484
+ return _context26.abrupt("return", 'canceled');
41334
41485
  case 20:
41335
41486
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
41336
41487
  case 21:
41337
41488
  (_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);
41338
- _context25.next = 24;
41489
+ _context26.next = 24;
41339
41490
  return this.saveToBasket(finalEvent.event, repairOnly, force);
41340
41491
  case 24:
41341
- result = _context25.sent;
41492
+ result = _context26.sent;
41342
41493
  (_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);
41343
41494
  if (!(result === 'canceled')) {
41344
- _context25.next = 30;
41495
+ _context26.next = 30;
41345
41496
  break;
41346
41497
  }
41347
41498
  LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
@@ -41349,10 +41500,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41349
41500
  text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
41350
41501
  accept: true
41351
41502
  });
41352
- return _context25.abrupt("return", result);
41503
+ return _context26.abrupt("return", result);
41353
41504
  case 30:
41354
- _context25.t0 = returnTo;
41355
- _context25.next = _context25.t0 === 'OPEN_PDF' ? 33 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context25.t0 === 'OPEN_CONTACT_FORM' ? 36 : 36;
41505
+ _context26.t0 = returnTo;
41506
+ _context26.next = _context26.t0 === 'OPEN_PDF' ? 33 : _context26.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context26.t0 === 'OPEN_CONTACT_FORM' ? 36 : 36;
41356
41507
  break;
41357
41508
  case 33:
41358
41509
  if (!this.getBasket().PDFDocumentURL) {
@@ -41372,7 +41523,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41372
41523
  }
41373
41524
  });
41374
41525
  }
41375
- return _context25.abrupt("break", 36);
41526
+ return _context26.abrupt("break", 36);
41376
41527
  case 35:
41377
41528
  (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
41378
41529
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
@@ -41380,20 +41531,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41380
41531
  });
41381
41532
  case 36:
41382
41533
  if (!(result == 'noArticleToSave')) {
41383
- _context25.next = 39;
41534
+ _context26.next = 39;
41384
41535
  break;
41385
41536
  }
41386
41537
  (_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
41387
- return _context25.abrupt("return", 'canceled');
41538
+ return _context26.abrupt("return", 'canceled');
41388
41539
  case 39:
41389
- return _context25.abrupt("return", result);
41540
+ return _context26.abrupt("return", result);
41390
41541
  case 40:
41391
41542
  case "end":
41392
- return _context25.stop();
41543
+ return _context26.stop();
41393
41544
  }
41394
- }, _callee25, this);
41545
+ }, _callee26, this);
41395
41546
  }));
41396
- function saveToBasketWrapper(_x71, _x72, _x73) {
41547
+ function saveToBasketWrapper(_x73, _x74, _x75) {
41397
41548
  return _saveToBasketWrapper.apply(this, arguments);
41398
41549
  }
41399
41550
  return saveToBasketWrapper;
@@ -41401,43 +41552,43 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41401
41552
  }, {
41402
41553
  key: "saveToBasket",
41403
41554
  value: function () {
41404
- var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, force) {
41555
+ var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27(event, repairOnly, force) {
41405
41556
  var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
41406
41557
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
41407
- return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
41408
- while (1) switch (_context26.prev = _context26.next) {
41558
+ return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context27) {
41559
+ while (1) switch (_context27.prev = _context27.next) {
41409
41560
  case 0:
41410
41561
  set = this.actSet();
41411
41562
  if (!(setHandlerInstance.isNoArticleToSave(this.sets) && !force)) {
41412
- _context26.next = 3;
41563
+ _context27.next = 3;
41413
41564
  break;
41414
41565
  }
41415
- return _context26.abrupt("return", 'noArticleToSave');
41566
+ return _context27.abrupt("return", 'noArticleToSave');
41416
41567
  case 3:
41417
41568
  actBasket = this.divaBasketHandler.actBasket;
41418
41569
  returnTo = this.getReturnTo(event);
41419
41570
  if (!((_returnTo = returnTo) !== null && _returnTo !== void 0 && _returnTo.startsWith('FAVORITS') && favoritesHandlerInstance.FavoritesDefined(set))) {
41420
- _context26.next = 13;
41571
+ _context27.next = 13;
41421
41572
  break;
41422
41573
  }
41423
41574
  oldReturnTo = returnTo;
41424
41575
  this.ReturnTo = returnTo.replace('FAVORITS_', '');
41425
- _context26.next = 10;
41576
+ _context27.next = 10;
41426
41577
  return this.handleFavorites('SAVE');
41427
41578
  case 10:
41428
- result = _context26.sent;
41579
+ result = _context27.sent;
41429
41580
  if (result === 'canceled') {
41430
41581
  this.ReturnTo = oldReturnTo;
41431
41582
  }
41432
- return _context26.abrupt("return", result);
41583
+ return _context27.abrupt("return", result);
41433
41584
  case 13:
41434
- _context26.t0 = this.divaBasketHandler;
41435
- _context26.t1 = this.divaBasketHandler.actDivaNr;
41436
- _context26.next = 17;
41585
+ _context27.t0 = this.divaBasketHandler;
41586
+ _context27.t1 = this.divaBasketHandler.actDivaNr;
41587
+ _context27.next = 17;
41437
41588
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !!repairOnly, this.doAllowSetPlanner(), this.ReturnTo);
41438
41589
  case 17:
41439
- _context26.t2 = _context26.sent;
41440
- _context26.t0.setBasketData.call(_context26.t0, _context26.t1, _context26.t2);
41590
+ _context27.t2 = _context27.sent;
41591
+ _context27.t0.setBasketData.call(_context27.t0, _context27.t1, _context27.t2);
41441
41592
  if ((_returnTo2 = returnTo) !== null && _returnTo2 !== void 0 && _returnTo2.endsWith('OPEN_SELLER_BASKET')) {
41442
41593
  this.ReturnTo = 'OPEN_SELLER_BASKET';
41443
41594
  returnTo = this.ReturnTo;
@@ -41452,11 +41603,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41452
41603
  this.divaBasketHandler.fillOrigConfigurations();
41453
41604
  actBasket.Updated = Date.now();
41454
41605
  if (!returnTo) {
41455
- _context26.next = 52;
41606
+ _context27.next = 52;
41456
41607
  break;
41457
41608
  }
41458
- _context26.t3 = returnTo;
41459
- _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;
41609
+ _context27.t3 = returnTo;
41610
+ _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;
41460
41611
  break;
41461
41612
  case 28:
41462
41613
  (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
@@ -41470,7 +41621,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41470
41621
  basketData: actBasket
41471
41622
  }
41472
41623
  });
41473
- return _context26.abrupt("break", 52);
41624
+ return _context27.abrupt("break", 52);
41474
41625
  case 31:
41475
41626
  (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
41476
41627
  type: 'SELLER',
@@ -41482,23 +41633,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41482
41633
  basketData: actBasket
41483
41634
  }
41484
41635
  });
41485
- return _context26.abrupt("break", 52);
41636
+ return _context27.abrupt("break", 52);
41486
41637
  case 33:
41487
41638
  if (!(event == 'onSaveProduct')) {
41488
- _context26.next = 43;
41639
+ _context27.next = 43;
41489
41640
  break;
41490
41641
  }
41491
41642
  //copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
41492
41643
  actBasket = new basketModel.BasketData(JSON.parse(JSON.stringify(actBasket)));
41493
- _context26.next = 37;
41644
+ _context27.next = 37;
41494
41645
  return DivaUtils__default["default"].updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
41495
41646
  case 37:
41496
- _context26.next = 39;
41647
+ _context27.next = 39;
41497
41648
  return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
41498
41649
  case 39:
41499
- newDivaNr = _context26.sent;
41650
+ newDivaNr = _context27.sent;
41500
41651
  actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
41501
- _context26.next = 51;
41652
+ _context27.next = 51;
41502
41653
  break;
41503
41654
  case 43:
41504
41655
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
@@ -41507,32 +41658,32 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41507
41658
  }
41508
41659
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
41509
41660
  actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
41510
- _context26.next = 48;
41661
+ _context27.next = 48;
41511
41662
  return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo);
41512
41663
  case 48:
41513
- _result2 = _context26.sent;
41664
+ _result2 = _context27.sent;
41514
41665
  if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
41515
- _context26.next = 51;
41666
+ _context27.next = 51;
41516
41667
  break;
41517
41668
  }
41518
- return _context26.abrupt("return", 'canceled');
41669
+ return _context27.abrupt("return", 'canceled');
41519
41670
  case 51:
41520
- return _context26.abrupt("break", 52);
41671
+ return _context27.abrupt("break", 52);
41521
41672
  case 52:
41522
41673
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
41523
41674
  actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
41524
- _context26.next = 56;
41675
+ _context27.next = 56;
41525
41676
  return this.addToBasket(actBasket, event);
41526
41677
  case 56:
41527
- product = _context26.sent;
41528
- return _context26.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
41678
+ product = _context27.sent;
41679
+ return _context27.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
41529
41680
  case 58:
41530
41681
  case "end":
41531
- return _context26.stop();
41682
+ return _context27.stop();
41532
41683
  }
41533
- }, _callee26, this);
41684
+ }, _callee27, this);
41534
41685
  }));
41535
- function saveToBasket(_x74, _x75, _x76) {
41686
+ function saveToBasket(_x76, _x77, _x78) {
41536
41687
  return _saveToBasket.apply(this, arguments);
41537
41688
  }
41538
41689
  return saveToBasket;
@@ -41577,7 +41728,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41577
41728
  return 'PLANNER';
41578
41729
  }
41579
41730
  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();
41580
-
41731
+ var doTryOptimize = plannerType == 'CUSTOMER_OPTIMIZED_PLANNER' || plannerType == 'JUMP_OVER_PLANNER_ONLY_MOBILE' || plannerType == 'JUMP_OVER_PLANNER';
41581
41732
  //if planner is hidden by config but nothing is planned initially
41582
41733
  if (plannerType === 'NONE') {
41583
41734
  var _this$plannerConfig$a8, _this$actSet10;
@@ -41597,7 +41748,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41597
41748
  if (doShowPlanner) ret = 'PLANNER';
41598
41749
  plannerType = undefined;
41599
41750
  }
41600
- if (plannerType === 'CUSTOMER_OPTIMIZED_PLANNER') {
41751
+ if (doTryOptimize) {
41601
41752
  var _set$CatalogData$allC;
41602
41753
  var optimizationReason = undefined;
41603
41754
  //hide planner step when only one article is visible that is already planned
@@ -41616,7 +41767,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41616
41767
  }
41617
41768
  plannerType = undefined;
41618
41769
  }
41619
- if (plannerType) return plannerType;
41770
+ if (plannerType !== 'CUSTOMER_OPTIMIZED_PLANNER' && plannerType) return plannerType;
41620
41771
  if (doShowPlanner) {
41621
41772
  ret = 'PLANNER';
41622
41773
  }
@@ -41668,6 +41819,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41668
41819
  value: function getEmailConfig() {
41669
41820
  return this.api.getEmailConfig();
41670
41821
  }
41822
+ }, {
41823
+ key: "getAllConfig",
41824
+ value: function getAllConfig() {
41825
+ return this.plannerConfig.settings;
41826
+ }
41671
41827
  }, {
41672
41828
  key: "getTemplateConfig",
41673
41829
  value: function getTemplateConfig() {
@@ -41696,62 +41852,68 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41696
41852
  var _this$actSet18;
41697
41853
  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;
41698
41854
  }
41855
+ }, {
41856
+ key: "autoOpenContentItem",
41857
+ value: function autoOpenContentItem() {
41858
+ var _this$actSet19;
41859
+ 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;
41860
+ }
41699
41861
  }, {
41700
41862
  key: "hidePlannerUiIcons",
41701
41863
  value: function hidePlannerUiIcons() {
41702
- var _this$actSet19;
41703
- 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;
41864
+ var _this$actSet20;
41865
+ 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;
41704
41866
  }
41705
41867
  }, {
41706
41868
  key: "doShowPlannerReplaceMode",
41707
41869
  value: function doShowPlannerReplaceMode() {
41708
- var _this$actSet20, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
41709
- var catalogData = (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.CatalogData;
41870
+ var _this$actSet21, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
41871
+ var catalogData = (_this$actSet21 = this.actSet()) === null || _this$actSet21 === void 0 ? void 0 : _this$actSet21.CatalogData;
41710
41872
  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;
41711
41873
  }
41712
41874
  }, {
41713
41875
  key: "doPlannerReplaceAutoSwitch",
41714
41876
  value: function doPlannerReplaceAutoSwitch() {
41715
- var _this$actSet21, _this$api$getViewConf3;
41716
- var catalogData = (_this$actSet21 = this.actSet()) === null || _this$actSet21 === void 0 ? void 0 : _this$actSet21.CatalogData;
41877
+ var _this$actSet22, _this$api$getViewConf3;
41878
+ var catalogData = (_this$actSet22 = this.actSet()) === null || _this$actSet22 === void 0 ? void 0 : _this$actSet22.CatalogData;
41717
41879
  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);
41718
41880
  }
41719
41881
  }, {
41720
41882
  key: "getHidePlanner",
41721
41883
  value: function getHidePlanner() {
41722
- var _this$actSet22;
41723
- return this.api.getHidePlanner() || !!((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.useBoxPlanner);
41884
+ var _this$actSet23;
41885
+ return this.api.getHidePlanner() || !!((_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.useBoxPlanner);
41724
41886
  }
41725
41887
  }, {
41726
41888
  key: "getAllowRTV",
41727
41889
  value: function getAllowRTV() {
41728
- var _this$state5, _this$actSet23, _this$state6, _this$actSet24;
41890
+ var _this$state5, _this$actSet24, _this$state6, _this$actSet25;
41729
41891
  if (this.getEnableUnityRtvKombi()) return false;
41730
41892
  if ((_this$state5 = this.state) !== null && _this$state5 !== void 0 && _this$state5.organization.settings.forceRTV) return true;
41731
- if ((_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaForceRTV) return true;
41732
- 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;
41893
+ if ((_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaForceRTV) return true;
41894
+ 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;
41733
41895
  return false;
41734
41896
  }
41735
41897
  }, {
41736
41898
  key: "getAllowQRCodeAR",
41737
41899
  value: function getAllowQRCodeAR() {
41738
- var _this$actSet25;
41739
- if (this.api.enableAR && (_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaArReady) return true;
41900
+ var _this$actSet26;
41901
+ if (this.api.enableAR && (_this$actSet26 = this.actSet()) !== null && _this$actSet26 !== void 0 && _this$actSet26.CatalogData.divaArReady) return true;
41740
41902
  return false;
41741
41903
  }
41742
41904
  }, {
41743
41905
  key: "getEnableUnityRtvKombi",
41744
41906
  value: function getEnableUnityRtvKombi() {
41745
- var _this$actSet26, _this$actSet27;
41907
+ var _this$actSet27, _this$actSet28;
41746
41908
  // if force rtv disable unity kombi - biohort
41747
- if ((_this$actSet26 = this.actSet()) !== null && _this$actSet26 !== void 0 && _this$actSet26.CatalogData.divaForceRTV) return false;
41748
- return ((_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
41909
+ if ((_this$actSet27 = this.actSet()) !== null && _this$actSet27 !== void 0 && _this$actSet27.CatalogData.divaForceRTV) return false;
41910
+ return ((_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
41749
41911
  }
41750
41912
  }, {
41751
41913
  key: "getShelfPlannerRTV",
41752
41914
  value: function getShelfPlannerRTV() {
41753
- var _this$actSet28;
41754
- return (_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData.useShelfPlannerRTV;
41915
+ var _this$actSet29;
41916
+ return (_this$actSet29 = this.actSet()) === null || _this$actSet29 === void 0 ? void 0 : _this$actSet29.CatalogData.useShelfPlannerRTV;
41755
41917
  }
41756
41918
  }, {
41757
41919
  key: "getBasketData",
@@ -41766,23 +41928,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41766
41928
  }, {
41767
41929
  key: "getBasketDataWithEkText",
41768
41930
  value: function () {
41769
- var _getBasketDataWithEkText = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27() {
41770
- return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context27) {
41771
- while (1) switch (_context27.prev = _context27.next) {
41931
+ var _getBasketDataWithEkText = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28() {
41932
+ return _regeneratorRuntime__default["default"].wrap(function _callee28$(_context28) {
41933
+ while (1) switch (_context28.prev = _context28.next) {
41772
41934
  case 0:
41773
- _context27.t0 = this.divaBasketHandler;
41774
- _context27.t1 = this.divaBasketHandler.actDivaNr;
41775
- _context27.next = 4;
41935
+ _context28.t0 = this.divaBasketHandler;
41936
+ _context28.t1 = this.divaBasketHandler.actDivaNr;
41937
+ _context28.next = 4;
41776
41938
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, true, this.doAllowSetPlanner(), this.ReturnTo);
41777
41939
  case 4:
41778
- _context27.t2 = _context27.sent;
41779
- _context27.t0.setBasketData.call(_context27.t0, _context27.t1, _context27.t2);
41780
- return _context27.abrupt("return", this.divaBasketHandler.actBasket);
41940
+ _context28.t2 = _context28.sent;
41941
+ _context28.t0.setBasketData.call(_context28.t0, _context28.t1, _context28.t2);
41942
+ return _context28.abrupt("return", this.divaBasketHandler.actBasket);
41781
41943
  case 7:
41782
41944
  case "end":
41783
- return _context27.stop();
41945
+ return _context28.stop();
41784
41946
  }
41785
- }, _callee27, this);
41947
+ }, _callee28, this);
41786
41948
  }));
41787
41949
  function getBasketDataWithEkText() {
41788
41950
  return _getBasketDataWithEkText.apply(this, arguments);
@@ -41792,8 +41954,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41792
41954
  }, {
41793
41955
  key: "getCatalogData",
41794
41956
  value: function getCatalogData() {
41795
- var _this$actSet29;
41796
- return (_this$actSet29 = this.actSet()) === null || _this$actSet29 === void 0 ? void 0 : _this$actSet29.CatalogData;
41957
+ var _this$actSet30;
41958
+ return (_this$actSet30 = this.actSet()) === null || _this$actSet30 === void 0 ? void 0 : _this$actSet30.CatalogData;
41797
41959
  }
41798
41960
  }, {
41799
41961
  key: "ReturnTo",
@@ -41808,7 +41970,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41808
41970
  }, {
41809
41971
  key: "addToBasket",
41810
41972
  value: function () {
41811
- var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(actBasket) {
41973
+ var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(actBasket) {
41812
41974
  var _this$actions36,
41813
41975
  _this$actions37,
41814
41976
  _this$actions38,
@@ -41828,44 +41990,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41828
41990
  to,
41829
41991
  variants,
41830
41992
  products,
41831
- _args28 = arguments;
41832
- return _regeneratorRuntime__default["default"].wrap(function _callee28$(_context28) {
41833
- while (1) switch (_context28.prev = _context28.next) {
41993
+ _args29 = arguments;
41994
+ return _regeneratorRuntime__default["default"].wrap(function _callee29$(_context29) {
41995
+ while (1) switch (_context29.prev = _context29.next) {
41834
41996
  case 0:
41835
- event = _args28.length > 1 && _args28[1] !== undefined ? _args28[1] : 'onAddToBasket';
41836
- _context28.t0 = event;
41837
- _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;
41997
+ event = _args29.length > 1 && _args29[1] !== undefined ? _args29[1] : 'onAddToBasket';
41998
+ _context29.t0 = event;
41999
+ _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;
41838
42000
  break;
41839
42001
  case 5:
41840
42002
  (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41841
42003
  type: 'onWebPlanerPrint',
41842
42004
  data: actBasket.getAsJson()
41843
42005
  });
41844
- return _context28.abrupt("break", 35);
42006
+ return _context29.abrupt("break", 35);
41845
42007
  case 7:
41846
42008
  (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41847
42009
  type: 'onWebPlanerSave',
41848
42010
  data: actBasket.getAsJson()
41849
42011
  });
41850
- return _context28.abrupt("break", 35);
42012
+ return _context29.abrupt("break", 35);
41851
42013
  case 9:
41852
42014
  (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41853
42015
  type: 'onWebPlanerShare',
41854
42016
  data: actBasket.getAsJson()
41855
42017
  });
41856
- return _context28.abrupt("break", 35);
42018
+ return _context29.abrupt("break", 35);
41857
42019
  case 11:
41858
42020
  (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41859
42021
  type: 'onRequestConsulation',
41860
42022
  data: actBasket.getAsJson()
41861
42023
  });
41862
- return _context28.abrupt("break", 35);
42024
+ return _context29.abrupt("break", 35);
41863
42025
  case 13:
41864
42026
  (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41865
42027
  type: 'onSave',
41866
42028
  data: actBasket.getAsJson()
41867
42029
  });
41868
- return _context28.abrupt("break", 35);
42030
+ return _context29.abrupt("break", 35);
41869
42031
  case 15:
41870
42032
  emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
41871
42033
  this.divaBasketHandler.emailConfig = undefined;
@@ -41900,51 +42062,51 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41900
42062
  type: 'onAddToBasket',
41901
42063
  data: actBasket.getAsJson()
41902
42064
  });
41903
- return _context28.abrupt("break", 35);
42065
+ return _context29.abrupt("break", 35);
41904
42066
  case 20:
41905
42067
  this.actSet().CatalogData;
41906
- _context28.next = 23;
42068
+ _context29.next = 23;
41907
42069
  return this.api.saveAsProduct(this.sets, actBasket);
41908
42070
  case 23:
41909
- products = _context28.sent;
42071
+ products = _context29.sent;
41910
42072
  (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41911
42073
  type: 'onAddToBasket',
41912
42074
  data: actBasket.getAsJson()
41913
42075
  });
41914
42076
  if (!products) {
41915
- _context28.next = 27;
42077
+ _context29.next = 27;
41916
42078
  break;
41917
42079
  }
41918
- return _context28.abrupt("return", products[0]);
42080
+ return _context29.abrupt("return", products[0]);
41919
42081
  case 27:
41920
42082
  case 28:
41921
42083
  (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41922
42084
  type: 'onAddToBasket',
41923
42085
  data: actBasket.getAsJson()
41924
42086
  });
41925
- return _context28.abrupt("break", 35);
42087
+ return _context29.abrupt("break", 35);
41926
42088
  case 30:
41927
42089
  (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
41928
42090
  type: 'onAddToBasket',
41929
42091
  data: actBasket.getAsJson()
41930
42092
  });
41931
42093
  this.openContactForm(this.divaBasketHandler);
41932
- return _context28.abrupt("break", 35);
42094
+ return _context29.abrupt("break", 35);
41933
42095
  case 33:
41934
42096
  (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
41935
42097
  type: event,
41936
42098
  data: actBasket.getAsJson()
41937
42099
  });
41938
- return _context28.abrupt("break", 35);
42100
+ return _context29.abrupt("break", 35);
41939
42101
  case 35:
41940
- return _context28.abrupt("return");
42102
+ return _context29.abrupt("return");
41941
42103
  case 36:
41942
42104
  case "end":
41943
- return _context28.stop();
42105
+ return _context29.stop();
41944
42106
  }
41945
- }, _callee28, this);
42107
+ }, _callee29, this);
41946
42108
  }));
41947
- function addToBasket(_x77) {
42109
+ function addToBasket(_x79) {
41948
42110
  return _addToBasket.apply(this, arguments);
41949
42111
  }
41950
42112
  return addToBasket;
@@ -42219,9 +42381,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42219
42381
  key: "initApiForLogicOnly",
42220
42382
  value: //just for testing purposes
42221
42383
  function () {
42222
- var _initApiForLogicOnly = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
42223
- return _regeneratorRuntime__default["default"].wrap(function _callee29$(_context29) {
42224
- while (1) switch (_context29.prev = _context29.next) {
42384
+ var _initApiForLogicOnly = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
42385
+ return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context30) {
42386
+ while (1) switch (_context30.prev = _context30.next) {
42225
42387
  case 0:
42226
42388
  //empty services
42227
42389
  this.api = new DivaApiHandler(_objectSpread$5(_objectSpread$5({}, this.plannerConfig), {}, {
@@ -42234,17 +42396,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42234
42396
  jwt: jwt,
42235
42397
  apiKey: apiKey
42236
42398
  }), handler);
42237
- _context29.next = 3;
42399
+ _context30.next = 3;
42238
42400
  return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
42239
42401
  case 3:
42240
42402
  this.plannerHandler = new DivaPlannerHandler(true);
42241
42403
  case 4:
42242
42404
  case "end":
42243
- return _context29.stop();
42405
+ return _context30.stop();
42244
42406
  }
42245
- }, _callee29, this);
42407
+ }, _callee30, this);
42246
42408
  }));
42247
- function initApiForLogicOnly(_x78, _x79, _x80, _x81, _x82, _x83, _x84) {
42409
+ function initApiForLogicOnly(_x80, _x81, _x82, _x83, _x84, _x85, _x86) {
42248
42410
  return _initApiForLogicOnly.apply(this, arguments);
42249
42411
  }
42250
42412
  return initApiForLogicOnly;
@@ -42257,16 +42419,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42257
42419
  }, {
42258
42420
  key: "loadBasket",
42259
42421
  value: function () {
42260
- var _loadBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30() {
42261
- return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context30) {
42262
- while (1) switch (_context30.prev = _context30.next) {
42422
+ var _loadBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31() {
42423
+ return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context31) {
42424
+ while (1) switch (_context31.prev = _context31.next) {
42263
42425
  case 0:
42264
- return _context30.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
42426
+ return _context31.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
42265
42427
  case 1:
42266
42428
  case "end":
42267
- return _context30.stop();
42429
+ return _context31.stop();
42268
42430
  }
42269
- }, _callee30, this);
42431
+ }, _callee31, this);
42270
42432
  }));
42271
42433
  function loadBasket() {
42272
42434
  return _loadBasket.apply(this, arguments);
@@ -42281,39 +42443,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42281
42443
  }, {
42282
42444
  key: "initBasket",
42283
42445
  value: function () {
42284
- var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(init3D, ignoreFavorites) {
42446
+ var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee32(init3D, ignoreFavorites) {
42285
42447
  var initSetState, set, basket;
42286
- return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context31) {
42287
- while (1) switch (_context31.prev = _context31.next) {
42448
+ return _regeneratorRuntime__default["default"].wrap(function _callee32$(_context32) {
42449
+ while (1) switch (_context32.prev = _context32.next) {
42288
42450
  case 0:
42289
42451
  this.divaNr = this.divaBasketHandler.actDivaNr;
42290
42452
  initSetState = this.getInitStateForSet(!init3D);
42291
42453
  this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
42292
- _context31.next = 5;
42454
+ _context32.next = 5;
42293
42455
  return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
42294
42456
  case 5:
42295
42457
  //TODO check if when basket gets repaired the product match gets called
42296
42458
  set = this.actSet();
42297
42459
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
42298
42460
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
42299
- _context31.next = 10;
42461
+ _context32.next = 10;
42300
42462
  break;
42301
42463
  }
42302
- _context31.next = 10;
42464
+ _context32.next = 10;
42303
42465
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
42304
42466
  case 10:
42305
- _context31.next = 12;
42467
+ _context32.next = 12;
42306
42468
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
42307
42469
  case 12:
42308
- basket = _context31.sent;
42309
- return _context31.abrupt("return", basket);
42470
+ basket = _context32.sent;
42471
+ return _context32.abrupt("return", basket);
42310
42472
  case 14:
42311
42473
  case "end":
42312
- return _context31.stop();
42474
+ return _context32.stop();
42313
42475
  }
42314
- }, _callee31, this);
42476
+ }, _callee32, this);
42315
42477
  }));
42316
- function initBasket(_x85, _x86) {
42478
+ function initBasket(_x87, _x88) {
42317
42479
  return _initBasket.apply(this, arguments);
42318
42480
  }
42319
42481
  return initBasket;
@@ -42327,21 +42489,21 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42327
42489
  }, {
42328
42490
  key: "getValidVariantsLength",
42329
42491
  value: function () {
42330
- var _getValidVariantsLength = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee32() {
42492
+ var _getValidVariantsLength = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee33() {
42331
42493
  var set;
42332
- return _regeneratorRuntime__default["default"].wrap(function _callee32$(_context32) {
42333
- while (1) switch (_context32.prev = _context32.next) {
42494
+ return _regeneratorRuntime__default["default"].wrap(function _callee33$(_context33) {
42495
+ while (1) switch (_context33.prev = _context33.next) {
42334
42496
  case 0:
42335
42497
  set = this.actSet();
42336
- _context32.next = 3;
42498
+ _context33.next = 3;
42337
42499
  return favoritesHandlerInstance.getValidVariants(set, true);
42338
42500
  case 3:
42339
- return _context32.abrupt("return", _context32.sent.length);
42501
+ return _context33.abrupt("return", _context33.sent.length);
42340
42502
  case 4:
42341
42503
  case "end":
42342
- return _context32.stop();
42504
+ return _context33.stop();
42343
42505
  }
42344
- }, _callee32, this);
42506
+ }, _callee33, this);
42345
42507
  }));
42346
42508
  function getValidVariantsLength() {
42347
42509
  return _getValidVariantsLength.apply(this, arguments);
@@ -42351,46 +42513,46 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42351
42513
  }, {
42352
42514
  key: "handleFavorites",
42353
42515
  value: function () {
42354
- var _handleFavorites = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee33(mode) {
42516
+ var _handleFavorites = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee34(mode) {
42355
42517
  var _this5 = this;
42356
42518
  var set, i;
42357
- return _regeneratorRuntime__default["default"].wrap(function _callee33$(_context33) {
42358
- while (1) switch (_context33.prev = _context33.next) {
42519
+ return _regeneratorRuntime__default["default"].wrap(function _callee34$(_context34) {
42520
+ while (1) switch (_context34.prev = _context34.next) {
42359
42521
  case 0:
42360
42522
  set = this.actSet();
42361
42523
  i = 0;
42362
42524
  case 2:
42363
42525
  if (!favoritesHandlerInstance.IsCalcForSummary) {
42364
- _context33.next = 11;
42526
+ _context34.next = 11;
42365
42527
  break;
42366
42528
  }
42367
- _context33.next = 5;
42529
+ _context34.next = 5;
42368
42530
  return DivaUtils__default["default"].Sleep(200);
42369
42531
  case 5:
42370
42532
  i++;
42371
42533
  if (!(i > 1000)) {
42372
- _context33.next = 9;
42534
+ _context34.next = 9;
42373
42535
  break;
42374
42536
  }
42375
42537
  LOG$1.error(new DivaUtils.DivaError('error on generating Variants of Summary'));
42376
- return _context33.abrupt("break", 11);
42538
+ return _context34.abrupt("break", 11);
42377
42539
  case 9:
42378
- _context33.next = 2;
42540
+ _context34.next = 2;
42379
42541
  break;
42380
42542
  case 11:
42381
- _context33.next = 13;
42543
+ _context34.next = 13;
42382
42544
  return favoritesHandlerInstance.handleFavorites(set, mode, this.divaBasketHandler.actBasket, this.saveToBasketWrapper.bind(this), this.doConfigure.bind(this), function () {
42383
42545
  return _this5.update2DGrid(set);
42384
42546
  }, this.actions);
42385
42547
  case 13:
42386
- return _context33.abrupt("return", _context33.sent);
42548
+ return _context34.abrupt("return", _context34.sent);
42387
42549
  case 14:
42388
42550
  case "end":
42389
- return _context33.stop();
42551
+ return _context34.stop();
42390
42552
  }
42391
- }, _callee33, this);
42553
+ }, _callee34, this);
42392
42554
  }));
42393
- function handleFavorites(_x87) {
42555
+ function handleFavorites(_x89) {
42394
42556
  return _handleFavorites.apply(this, arguments);
42395
42557
  }
42396
42558
  return handleFavorites;
@@ -42403,48 +42565,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42403
42565
  }, {
42404
42566
  key: "initSapOrderLinesFromBasket",
42405
42567
  value: function () {
42406
- var _initSapOrderLinesFromBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee34(divaNr, init3D, onlyLoadOldBakset) {
42568
+ var _initSapOrderLinesFromBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee35(divaNr, init3D, onlyLoadOldBakset) {
42407
42569
  var result, oldBasket, basket;
42408
- return _regeneratorRuntime__default["default"].wrap(function _callee34$(_context34) {
42409
- while (1) switch (_context34.prev = _context34.next) {
42570
+ return _regeneratorRuntime__default["default"].wrap(function _callee35$(_context35) {
42571
+ while (1) switch (_context35.prev = _context35.next) {
42410
42572
  case 0:
42411
42573
  if (divaNr) this.divaBasketHandler.updateDivaNrInBasket(divaNr);
42412
- _context34.next = 3;
42574
+ _context35.next = 3;
42413
42575
  return this.loadBasket();
42414
42576
  case 3:
42415
- result = _context34.sent;
42577
+ result = _context35.sent;
42416
42578
  if (!onlyLoadOldBakset) {
42417
- _context34.next = 6;
42579
+ _context35.next = 6;
42418
42580
  break;
42419
42581
  }
42420
- return _context34.abrupt("return", {
42582
+ return _context35.abrupt("return", {
42421
42583
  oldBasket: new basketModel.BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket))),
42422
42584
  cache: {}
42423
42585
  });
42424
42586
  case 6:
42425
42587
  if (!(result === false)) {
42426
- _context34.next = 8;
42588
+ _context35.next = 8;
42427
42589
  break;
42428
42590
  }
42429
42591
  throw new Error('Could not load basket! ' + divaNr);
42430
42592
  case 8:
42431
42593
  oldBasket = new basketModel.BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket)));
42432
- _context34.next = 11;
42594
+ _context35.next = 11;
42433
42595
  return this.initBasket(init3D);
42434
42596
  case 11:
42435
- basket = _context34.sent;
42436
- return _context34.abrupt("return", {
42597
+ basket = _context35.sent;
42598
+ return _context35.abrupt("return", {
42437
42599
  basket: basket,
42438
42600
  oldBasket: oldBasket,
42439
42601
  cache: this.api.getJsonDataCache()
42440
42602
  });
42441
42603
  case 13:
42442
42604
  case "end":
42443
- return _context34.stop();
42605
+ return _context35.stop();
42444
42606
  }
42445
- }, _callee34, this);
42607
+ }, _callee35, this);
42446
42608
  }));
42447
- function initSapOrderLinesFromBasket(_x88, _x89, _x90) {
42609
+ function initSapOrderLinesFromBasket(_x90, _x91, _x92) {
42448
42610
  return _initSapOrderLinesFromBasket.apply(this, arguments);
42449
42611
  }
42450
42612
  return initSapOrderLinesFromBasket;
@@ -43101,6 +43263,7 @@ var Grid = /*#__PURE__*/function () {
43101
43263
  //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.
43102
43264
  _defineProperty__default["default"](this, "articleRelations", void 0);
43103
43265
  _defineProperty__default["default"](this, "articleRelationsForOtherGroups", void 0);
43266
+ _defineProperty__default["default"](this, "disableCellsByRules", void 0);
43104
43267
  //if in theis grid an shelfaccessoire is planned laod this article aswell
43105
43268
  _defineProperty__default["default"](this, "montageOptions", void 0);
43106
43269
  //disableCellsByFreeText
@@ -43131,6 +43294,7 @@ var Grid = /*#__PURE__*/function () {
43131
43294
  this.showOnRule = grid.ShowOnRule;
43132
43295
  this.montageOptions = grid.MontageOptions;
43133
43296
  this.disableCellsByMeasures = grid.DisableCellsByMeasures;
43297
+ this.disableCellsByRules = grid.DisableCellsByRules;
43134
43298
  this.visitOption = grid.VisitOption;
43135
43299
  this.shelfId = 'SHELFARTICLE_' + article.basketId + '_' + index;
43136
43300
  this.heightGridCellCountOnRule = data.ShelfPlanner[index].HeightGridCellCountOnRule;
@@ -44099,6 +44263,21 @@ var Grid = /*#__PURE__*/function () {
44099
44263
  }
44100
44264
  return count;
44101
44265
  }
44266
+ }, {
44267
+ key: "getDisabledCellsByRule",
44268
+ value: function getDisabledCellsByRule() {
44269
+ var _this$disableCellsByR;
44270
+ var cellsToDisable = [];
44271
+ if (!((_this$disableCellsByR = this.disableCellsByRules) !== null && _this$disableCellsByR !== void 0 && _this$disableCellsByR.length)) return cellsToDisable;
44272
+ var article = this.article;
44273
+ for (var i = 0; i < this.disableCellsByRules.length; i++) {
44274
+ var rule = this.disableCellsByRules[i];
44275
+ if (!rule.rule || this.article.evalRule(DivaUtils__default["default"].getRuleByFormula(rule.rule, this.article.catalogCodex, article.CatalogData.multiselectOptions))) {
44276
+ cellsToDisable = [].concat(_toConsumableArray__default["default"](cellsToDisable), _toConsumableArray__default["default"](rule.cells));
44277
+ }
44278
+ }
44279
+ return cellsToDisable;
44280
+ }
44102
44281
  }, {
44103
44282
  key: "ShelfId",
44104
44283
  get: function get() {
@@ -59792,8 +59971,6 @@ var a$3 = {
59792
59971
  },
59793
59972
  settings: {
59794
59973
  dontLoadAdditionalModelInfos: true,
59795
- identifier: 'Seller',
59796
- type: 'DIVA_WEBPLANNER',
59797
59974
  configParams: {
59798
59975
  mediaServiceApiKey: '620e074df81de00012ef47ed.wUyoXTbh4tR3DklrzvvdxFveVK9zcj4H',
59799
59976
  // api2devKey: '627b71be68f4c30011dd25e2.I2RdwvdHG4gruMNr6l810tTU5x7afNMm',
@@ -59853,13 +60030,10 @@ var a$2 = {
59853
60030
  }
59854
60031
  },
59855
60032
  settings: {
59856
- identifier: 'PfisterWebPlanner',
59857
- type: 'DIVA_WEBPLANNER',
59858
60033
  configParams: {
59859
60034
  mediaServiceApiKey: '5fb62c8251d161001142faec.TIxFhaibnlLORFzuRO0sqmYV6EnStvIg',
59860
60035
  apiKey: '628c84397f7ae3001155004a.ccRvikkGQZqmVHUHIwUDDSIBmrSBm/3V'
59861
60036
  },
59862
- description: '',
59863
60037
  applicationEnvironment: 'SELLER',
59864
60038
  priceInfo: 'LAYOUT_LISTPRICE',
59865
60039
  PriceFormat: {
@@ -59926,26 +60100,11 @@ var a$1 = {
59926
60100
  }
59927
60101
  },
59928
60102
  settings: {
59929
- identifier: 'PfisterWebPlanner',
59930
- type: 'DIVA_WEBPLANNER',
59931
60103
  configParams: {
59932
60104
  mediaServiceApiKey: '5fb396c986d73f0011e1c482.WKxhYaXxMhn9SmPPAK6tZa4oFnFjlSux',
59933
60105
  apiKey: '628c849377593d00119a87a0.CKOGmsd6LOjWGZtYk+9gB138lXCoOVBn'
59934
60106
  },
59935
- description: '',
59936
60107
  applicationEnvironment: 'SELLER',
59937
- priceInfo: 'LAYOUT_LISTPRICE',
59938
- PriceFormat: {
59939
- currency: 'CHF',
59940
- spacing: true,
59941
- currencyPosition: 'LEFT',
59942
- showDecimals: 'IF_NEEDED',
59943
- thousandSeparator: "'",
59944
- decimalSeparator: '.',
59945
- decimalsDigits: 2,
59946
- addIfNoDecimal: '.–'
59947
- },
59948
- divaMediaServiceApiKey: '5fb396c986d73f0011e1c482.WKxhYaXxMhn9SmPPAK6tZa4oFnFjlSux',
59949
60108
  diva3dServerMode: 'SignalR',
59950
60109
  diva3dRenderGroup: 'QDIVA' // "QDIVA2"
59951
60110
  },