@crystaldesign/web-planner-logic 25.3.0-beta.3 → 25.3.0-beta.30

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 (66) hide show
  1. package/build/cjs/{DivaBoxPlanner-230a7343.js → DivaBoxPlanner-ea5239f1.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-3b70656f.js → DivaStandardPlanner-6c02bcbe.js} +2 -2
  3. package/build/cjs/{DoorPlanner-85f5df3d.js → DoorPlanner-0377c63d.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-06a86be8.js → Host3DSignalR-2edb05b1.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-8e9cc61c.js → LiviqueWWSHandler-7304b5ee.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-786700cb.js → PfisterWWSHandler-3d92efb8.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-d4305a93.js → PlannerHandler2D-a48ef80a.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-70977945.js → SeriousBasketHandler-85192699.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-89d47e5e.js → ShelfPlanner-7d289992.js} +39 -22
  10. package/build/cjs/{StandardWWSHandler-4e8f472a.js → StandardWWSHandler-be8f7217.js} +1 -1
  11. package/build/cjs/{index-1df7482f.js → index-86203b5f.js} +485 -380
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-ef50f3c1.js → DivaBoxPlanner-1289c1ee.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-50298918.js → DivaStandardPlanner-1f8aaa64.js} +2 -2
  15. package/build/esm/{DoorPlanner-43de473a.js → DoorPlanner-79a7e654.js} +1 -1
  16. package/build/esm/{Host3DSignalR-b772e3b5.js → Host3DSignalR-91c94279.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-e63f276f.js → LiviqueWWSHandler-fcbcd7cd.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-7f7996a7.js → PfisterWWSHandler-fc8023b7.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-4e72c491.js → PlannerHandler2D-9f8817dd.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-1a4186bd.js → SeriousBasketHandler-37bd9174.js} +1 -1
  21. package/build/esm/{ShelfPlanner-152084c3.js → ShelfPlanner-3aaabff9.js} +39 -22
  22. package/build/esm/{StandardWWSHandler-a5d84eb8.js → StandardWWSHandler-337f91dc.js} +1 -1
  23. package/build/esm/{index-474fc67f.js → index-ffa19f7a.js} +485 -380
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +1 -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 +5 -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/FunctionTypes/index.d.ts +1 -7
  30. package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts +0 -1
  32. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +5 -0
  34. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts +4 -0
  36. package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +2 -2
  38. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +5 -0
  40. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +4 -0
  42. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts +1 -1
  44. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  46. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts +5 -0
  48. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  50. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +2 -0
  51. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  52. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
  53. package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts.map +1 -1
  54. package/build/types/web-planner-logic/src/logic/Planner/Rendering/ViewPointHandler.d.ts +0 -4
  55. package/build/types/web-planner-logic/src/logic/Planner/Rendering/ViewPointHandler.d.ts.map +1 -1
  56. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  57. package/build/types/web-planner-logic/src/logic/repairBasket.d.ts +2 -2
  58. package/build/types/web-planner-logic/src/logic/repairBasket.d.ts.map +1 -1
  59. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +5 -0
  60. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
  61. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +5 -0
  62. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
  63. package/build/types/web-planner-logic/src/test/datas/environments/scripts/pfister-prod.d.ts.map +1 -1
  64. package/build/types/web-planner-logic/src/test/datas/environments/scripts/pfister-quality.d.ts.map +1 -1
  65. package/build/types/web-planner-logic/src/test/datas/environments/testing/retail-test.d.ts.map +1 -1
  66. package/package.json +2 -2
@@ -434,6 +434,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
434
434
  barrierConfig: data.barrierConfig,
435
435
  dontLoadAdditionalModelInfos: data.dontLoadAdditionalModelInfos,
436
436
  arViewerUrl: data.arViewerUrl,
437
+ arViewerIframe: data.arViewerIframe,
437
438
  useMask: data.useMask,
438
439
  loadProductBasketParams: data.loadProductBasketParams,
439
440
  addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey
@@ -1676,7 +1677,6 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1676
1677
  parent: parent,
1677
1678
  ocd: jsonOPV.OCD,
1678
1679
  quantity: jsonOPV.Quantity ? Number(jsonOPV.Quantity) : 1,
1679
- isDefault: jsonOPV.IsDefault,
1680
1680
  isPIMFlatValue: jsonOPV.PIMFlatValues === 'True',
1681
1681
  isVariantAttribute: jsonOPV.IsVariantAttribute
1682
1682
  };
@@ -1933,6 +1933,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1933
1933
  get: function get() {
1934
1934
  return this.opv.subArticleTypeNr;
1935
1935
  }
1936
+ }, {
1937
+ key: "addToMeasure",
1938
+ get: function get() {
1939
+ return this.opv.catalogOPV.addToMeasure;
1940
+ }
1936
1941
  }, {
1937
1942
  key: "hideSubarticleDescription",
1938
1943
  get: function get() {
@@ -16094,6 +16099,15 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16094
16099
  case 'SET_BY_RULE':
16095
16100
  this.opv.setByRule = prop.Value;
16096
16101
  break;
16102
+ case 'ADD_TO_MEASURE':
16103
+ this.opv.addToMeasure = prop.Value.split(';').map(function (v) {
16104
+ return {
16105
+ op: v.split(':')[0],
16106
+ value: Number(v.split(':')[1]),
16107
+ opt: 'OPT' + v.split(':')[2]
16108
+ };
16109
+ });
16110
+ break;
16097
16111
  default:
16098
16112
  if (key.includes('__')) break;
16099
16113
  var values_locales = [];
@@ -16389,6 +16403,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16389
16403
  get: function get() {
16390
16404
  return this.opv.customDimension;
16391
16405
  }
16406
+ }, {
16407
+ key: "addToMeasure",
16408
+ get: function get() {
16409
+ return this.opv.addToMeasure;
16410
+ }
16392
16411
  }]);
16393
16412
  }();
16394
16413
 
@@ -17986,10 +18005,10 @@ var OptionCatalogData = /*#__PURE__*/function () {
17986
18005
  case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
17987
18006
  this.opt.onlyVisibleIfNotDocked = prop.Value;
17988
18007
  break;
17989
- case 'ONLY_VIDSIBLE_IF_CONFIG_SINGLE':
18008
+ case 'ONLY_VISIBLE_IF_CONFIG_SINGLE':
17990
18009
  this.opt.onlyVisibleIfConfigSingle = prop.Value;
17991
18010
  break;
17992
- case 'ONLY_VIDSIBLE_IF_CONFIG_ALL':
18011
+ case 'ONLY_VISIBLE_IF_CONFIG_ALL':
17993
18012
  this.opt.onlyVisibleIfConfigAll = prop.Value;
17994
18013
  break;
17995
18014
  case 'ISDEFAULTVALUEFOROPTIONS':
@@ -20642,6 +20661,12 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20642
20661
  var _this$val$customDimen, _this$val24;
20643
20662
  return this.val && ((_this$val$customDimen = (_this$val24 = this.val) === null || _this$val24 === void 0 ? void 0 : _this$val24.customDimension) !== null && _this$val$customDimen !== void 0 ? _this$val$customDimen : this.option.customDimension);
20644
20663
  }
20664
+ }, {
20665
+ key: "addToMeasure",
20666
+ get: function get() {
20667
+ var _this$val25;
20668
+ return (_this$val25 = this.val) === null || _this$val25 === void 0 ? void 0 : _this$val25.addToMeasure;
20669
+ }
20645
20670
  }, {
20646
20671
  key: "showWarningForRequiresUserInput",
20647
20672
  get: function get() {
@@ -22219,6 +22244,16 @@ var DivaArticle = /*#__PURE__*/function () {
22219
22244
  }
22220
22245
  return true;
22221
22246
  }
22247
+ }, {
22248
+ key: "optionStatesWithAddToMeasure",
22249
+ value: function optionStatesWithAddToMeasure(opt) {
22250
+ return Object.values(this.articleOptionStates).filter(function (ops) {
22251
+ var _ops$addToMeasure, _ops$addToMeasure2;
22252
+ return ((_ops$addToMeasure = ops.addToMeasure) === null || _ops$addToMeasure === void 0 ? void 0 : _ops$addToMeasure.find(function (o) {
22253
+ return o.opt == opt;
22254
+ })) || ops.optionCodex == opt && ((_ops$addToMeasure2 = ops.addToMeasure) === null || _ops$addToMeasure2 === void 0 ? void 0 : _ops$addToMeasure2.length);
22255
+ });
22256
+ }
22222
22257
  }, {
22223
22258
  key: "requiredUserInputOptions",
22224
22259
  get: function get() {
@@ -22954,6 +22989,7 @@ var DivaArticle = /*#__PURE__*/function () {
22954
22989
  }
22955
22990
  this.updateIDMSpecificFeature(myArtOPS);
22956
22991
  }
22992
+ this.updateOptionsWithAddToMeasure(OP);
22957
22993
  }
22958
22994
  }, {
22959
22995
  key: "updateIDMSpecificFeature",
@@ -23109,6 +23145,61 @@ var DivaArticle = /*#__PURE__*/function () {
23109
23145
  return myDesc;
23110
23146
  }
23111
23147
  }
23148
+ }, {
23149
+ key: "updateOptionsWithAddToMeasure",
23150
+ value: function updateOptionsWithAddToMeasure(optionCodex) {
23151
+ var opsWithAddToMeasure = this.optionStatesWithAddToMeasure(optionCodex);
23152
+ var result = undefined;
23153
+ var optionsUsedFreetext = {};
23154
+ for (var i = 0; i < opsWithAddToMeasure.length; i++) {
23155
+ var _result2;
23156
+ var addToMeasureOps = opsWithAddToMeasure[i];
23157
+ for (var j = 0; j < addToMeasureOps.addToMeasure.length; j++) {
23158
+ var _Number, _this$getArticleOptio4;
23159
+ var addToMeasure = addToMeasureOps.addToMeasure[j];
23160
+ 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;
23161
+ optionsUsedFreetext[addToMeasure.opt] = true;
23162
+ if (!addToMeasureOps.val) continue;
23163
+ if (isNaN(value)) {
23164
+ result = undefined;
23165
+ break;
23166
+ } else {
23167
+ var _result;
23168
+ result = this.calculateMeasure(addToMeasure, ((_result = result) !== null && _result !== void 0 ? _result : 0) + value);
23169
+ }
23170
+ }
23171
+ this.setOP(addToMeasureOps.optionCodex, addToMeasureOps.val, (_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.toString());
23172
+ }
23173
+ }
23174
+ }, {
23175
+ key: "calcAddToMeasure",
23176
+ value: function calcAddToMeasure(optionCodex, value) {
23177
+ var opsWithAddToMeasure = this.optionStatesWithAddToMeasure(optionCodex);
23178
+ for (var j = 0; j < opsWithAddToMeasure.length; j++) {
23179
+ for (var i = 0; i < opsWithAddToMeasure[j].addToMeasure.length; i++) {
23180
+ var measure = opsWithAddToMeasure[j].addToMeasure[i];
23181
+ if (measure.opt != optionCodex) continue;
23182
+ value = this.calculateMeasure(measure, value);
23183
+ }
23184
+ }
23185
+ return value;
23186
+ }
23187
+ }, {
23188
+ key: "calculateMeasure",
23189
+ value: function calculateMeasure(measure, value) {
23190
+ switch (measure.op) {
23191
+ case '+':
23192
+ return Math.round(value + measure.value);
23193
+ case '-':
23194
+ return Math.round(value - measure.value);
23195
+ case '*':
23196
+ return Math.round(value * measure.value);
23197
+ case '/':
23198
+ return Math.round(value / measure.value);
23199
+ }
23200
+ LOG$d.error(new Error('operator ' + measure.op + ' not implemented'));
23201
+ return value;
23202
+ }
23112
23203
  }, {
23113
23204
  key: "clearOP",
23114
23205
  value: function clearOP(optionCodex) {
@@ -23999,7 +24090,7 @@ var DivaArticle = /*#__PURE__*/function () {
23999
24090
  break;
24000
24091
  }
24001
24092
  _context.next = 4;
24002
- return import('./ShelfPlanner-152084c3.js');
24093
+ return import('./ShelfPlanner-3aaabff9.js');
24003
24094
  case 4:
24004
24095
  _yield$import = _context.sent;
24005
24096
  ShelfPlanner = _yield$import["default"];
@@ -24130,6 +24221,9 @@ var DivaArticle = /*#__PURE__*/function () {
24130
24221
  }
24131
24222
  if ((mUnit || OP == 'OPTUMFANG' || OP == 'OPTUMFANG_KREIS') && this.parentHasSameOption(OP)) {
24132
24223
  var freeTextMeasure = parseFloat(myArtOPS.freeText ? myArtOPS.freeText : '');
24224
+ var newFreeTextMeasure = this.calcAddToMeasure(OP, freeTextMeasure);
24225
+ LOG$d.debug('freetext changed by addToMeasure at price calculation', newFreeTextMeasure, freeTextMeasure, myArtOPS.addToMeasure);
24226
+ freeTextMeasure = newFreeTextMeasure;
24133
24227
  if (freeTextMeasure || OP == 'OPTUMFANG' || OP == 'OPTUMFANG_KREIS') {
24134
24228
  if (calcUnitPrice != 0) {
24135
24229
  var quantity = 0;
@@ -24443,6 +24537,13 @@ var DivaArticle = /*#__PURE__*/function () {
24443
24537
  }
24444
24538
  }
24445
24539
  }
24540
+ //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
24541
+ if (_ops8) {
24542
+ var _ops8$valCodex;
24543
+ if ((_ops8$valCodex = _ops8.valCodex) !== null && _ops8$valCodex !== void 0 && _ops8$valCodex.startsWith('OPVSUB_') && !validValues[_key4 + '.' + _key4] && this.getArticleOptionState(_key4 + '.' + _key4)) {
24544
+ validValues[_key4 + '.' + _key4] = myValues[_key4];
24545
+ }
24546
+ }
24446
24547
  }
24447
24548
  return validValues;
24448
24549
  }
@@ -24643,8 +24744,9 @@ var DivaArticle = /*#__PURE__*/function () {
24643
24744
  }, {
24644
24745
  key: "addOptionStateFromArticleToPlannerData",
24645
24746
  value: function addOptionStateFromArticleToPlannerData(ret, alternateRenderInfo) {
24646
- for (var key in this.articleOptionStates) {
24647
- this.addOptionStateToPlannerData(ret, this.articleOptionStates[key], alternateRenderInfo);
24747
+ var articleOptions = this.getArticleOptionStatesWithOptionsForPrint();
24748
+ for (var key in articleOptions) {
24749
+ this.addOptionStateToPlannerData(ret, articleOptions[key], alternateRenderInfo);
24648
24750
  }
24649
24751
  for (var _key5 in this.article.partlistArticles) {
24650
24752
  var partlistArticle = this.article.partlistArticles[_key5];
@@ -24956,7 +25058,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24956
25058
  value: //Initialisiert eventuell Option Tree und Infos im CatalogArticle
24957
25059
  function () {
24958
25060
  var _loadArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(set, articleCodex, initParams) {
24959
- var _yield$this$preLoadAr, catalog, catalogArticle, newBasketId, _set$actions;
25061
+ var _yield$this$preLoadAr, catalog, catalogArticle, newBasketId;
24960
25062
  return _regeneratorRuntime.wrap(function _callee$(_context) {
24961
25063
  while (1) switch (_context.prev = _context.next) {
24962
25064
  case 0:
@@ -24980,12 +25082,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24980
25082
  articleCodex: articleCodex
24981
25083
  }
24982
25084
  }));
24983
- (_set$actions = set.actions) === null || _set$actions === void 0 || _set$actions.openModal({
24984
- accept: true,
24985
- title: set.i18n.t('modals.error_accured')
24986
- });
24987
- return _context.abrupt("return", false);
24988
- case 13:
25085
+ throw new Error('articleCodex not found in article list. Could be due to exclusivity or a bug in the application!');
25086
+ case 12:
24989
25087
  case "end":
24990
25088
  return _context.stop();
24991
25089
  }
@@ -28684,7 +28782,7 @@ var DivaSet = /*#__PURE__*/function () {
28684
28782
  break;
28685
28783
  }
28686
28784
  _context5.next = 3;
28687
- return import('./DoorPlanner-43de473a.js');
28785
+ return import('./DoorPlanner-79a7e654.js');
28688
28786
  case 3:
28689
28787
  _yield$import = _context5.sent;
28690
28788
  DoorPlanner = _yield$import["default"];
@@ -30595,10 +30693,11 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30595
30693
  //hier evtl. die Article mit einer gewissen reihenfolge durchlaufen!
30596
30694
  var optionsStates = optionStatesOfArticles[basketId];
30597
30695
  for (var optionCodex in optionsStates) {
30696
+ var _ops$addToMeasure;
30598
30697
  var ops = optionsStates[optionCodex];
30599
30698
  var selectionmode = ops.selectionmode;
30600
30699
  if (set.CatalogData.forceConfigSingle && (selectionmode == 1 || selectionmode == 2)) selectionmode = 3;
30601
- if (!ops.isInvisible && (selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && set.api.showSelectionModeZero()) && ops.isDoShow && ops.visibleCount > 0) {
30700
+ if (!ops.isInvisible && (selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && set.api.showSelectionModeZero()) && ops.isDoShow && !((_ops$addToMeasure = ops.addToMeasure) !== null && _ops$addToMeasure !== void 0 && _ops$addToMeasure.length) && ops.visibleCount > 0) {
30602
30701
  this.addOptionsStateToConfigTree(set, set.configTree, articles, basketId, ops, optionCodex, selectionmode, addToTabGroup);
30603
30702
  }
30604
30703
  }
@@ -31282,10 +31381,11 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
31282
31381
  //hier evtl. die Article mit einer gewissen reihenfolge durchlaufen!
31283
31382
  var optionsStates = optionStatesOfArticles[iKey];
31284
31383
  for (var jKey in optionsStates) {
31384
+ var _ops$addToMeasure2;
31285
31385
  var ops = optionsStates[jKey];
31286
31386
  var selectionmode = ops.selectionmode;
31287
31387
  if (set.CatalogData.forceConfigSingle && (selectionmode == 1 || selectionmode == 2)) selectionmode = 3;
31288
- if (ops.isInvisible || selectionmode == 0 || !ops.isDoShow || ops.visibleCount == 0) {
31388
+ if (ops.isInvisible || selectionmode == 0 || !ops.isDoShow || ops.visibleCount == 0 || !!((_ops$addToMeasure2 = ops.addToMeasure) !== null && _ops$addToMeasure2 !== void 0 && _ops$addToMeasure2.length)) {
31289
31389
  this.addOptionsStateToConfigTree(set, configTree, articles, iKey, ops, jKey, selectionmode);
31290
31390
  }
31291
31391
  }
@@ -34059,6 +34159,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
34059
34159
  origOrderSet.SetVariantBasketDatas = actOrderSet.SetVariantBasketDatas;
34060
34160
  origOrderSet.BBox = actOrderSet.BBox;
34061
34161
  origOrderSet.VariantDescription = actOrderSet.VariantDescription;
34162
+ origOrderSet.OfflineData = actOrderSet.OfflineData;
34062
34163
  if (actOrderSet.ConfigVariants && origOrderSet.ConfigVariants) origOrderSet.ConfigVariants = actOrderSet.ConfigVariants.map(function (variant, index) {
34063
34164
  var _origOrderSet$ConfigV;
34064
34165
  var configVariant = (_origOrderSet$ConfigV = origOrderSet.ConfigVariants) === null || _origOrderSet$ConfigV === void 0 ? void 0 : _origOrderSet$ConfigV[index];
@@ -34172,6 +34273,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
34172
34273
  SetName: set.setName,
34173
34274
  SetName_locales: set.setName_locales,
34174
34275
  ProductSetName: set.ProductSetName,
34276
+ SupplierGUID: catalogData.supplierGuid,
34175
34277
  SetPrice: set.getSetPrice(),
34176
34278
  BruttoSetPrice: bruttoPrice,
34177
34279
  SetQuantity: 1,
@@ -34477,7 +34579,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34477
34579
  this.plannerConfig = plannerConfig;
34478
34580
  this.assignNewDivaNr = !!this.plannerConfig.assignNewDivaNr;
34479
34581
  this._handler = plannerConfig.handler;
34480
- if (this.plannerConfig.divaNr == undefined && this.plannerConfig.basketData == undefined && this.plannerConfig.catalogCodex == undefined && this.plannerConfig.productId == undefined && this.plannerConfig.customProductId == undefined && this.plannerConfig.returnTo != 'TEST_CONFIGURATORLOGIC' && !((_this$plannerConfig$s = this.plannerConfig.settings) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.ViewConfig) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.plannerType) !== null && _this$plannerConfig$s !== void 0 && _this$plannerConfig$s.includes('PRODUCTS') || (_this$plannerConfig$s2 = this.plannerConfig.settings) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.ViewConfig) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.plannerType) !== null && _this$plannerConfig$s2 !== void 0 && _this$plannerConfig$s2.includes('PROMOTED'))) {
34582
+ if (this.plannerConfig.divaNr == undefined && this.plannerConfig.basketData == undefined && this.plannerConfig.catalogCodex == undefined && this.plannerConfig.productId == undefined && this.plannerConfig.customProductId == undefined && this.plannerConfig.returnTo != 'TEST_CONFIGURATORLOGIC' && !((_this$plannerConfig$s = this.plannerConfig.settings) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.viewConfig) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.plannerType) !== null && _this$plannerConfig$s !== void 0 && _this$plannerConfig$s.includes('PRODUCTS') || (_this$plannerConfig$s2 = this.plannerConfig.settings) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.viewConfig) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.plannerType) !== null && _this$plannerConfig$s2 !== void 0 && _this$plannerConfig$s2.includes('PROMOTED'))) {
34481
34583
  LOG$8.error(new DivaError('Keine Öffnungsparameter', {
34482
34584
  code: 'WC_0003'
34483
34585
  }));
@@ -34680,7 +34782,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34680
34782
  case 60:
34681
34783
  return _context.abrupt("return", _context.sent);
34682
34784
  case 63:
34683
- if (!((_this$plannerConfig$s3 = this.plannerConfig.settings) !== null && _this$plannerConfig$s3 !== void 0 && (_this$plannerConfig$s3 = _this$plannerConfig$s3.ViewConfig) !== null && _this$plannerConfig$s3 !== void 0 && _this$plannerConfig$s3.loadStartProduct)) {
34785
+ if (!((_this$plannerConfig$s3 = this.plannerConfig.settings) !== null && _this$plannerConfig$s3 !== void 0 && (_this$plannerConfig$s3 = _this$plannerConfig$s3.viewConfig) !== null && _this$plannerConfig$s3 !== void 0 && _this$plannerConfig$s3.loadStartProduct)) {
34684
34786
  _context.next = 86;
34685
34787
  break;
34686
34788
  }
@@ -34712,7 +34814,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34712
34814
  return _context.abrupt("return", _context.sent);
34713
34815
  case 75:
34714
34816
  successfully = false;
34715
- if (!((_this$plannerConfig$s4 = this.plannerConfig.settings) !== null && _this$plannerConfig$s4 !== void 0 && (_this$plannerConfig$s4 = _this$plannerConfig$s4.ViewConfig) !== null && _this$plannerConfig$s4 !== void 0 && _this$plannerConfig$s4.initFirstCatalog)) {
34817
+ if (!((_this$plannerConfig$s4 = this.plannerConfig.settings) !== null && _this$plannerConfig$s4 !== void 0 && (_this$plannerConfig$s4 = _this$plannerConfig$s4.viewConfig) !== null && _this$plannerConfig$s4 !== void 0 && _this$plannerConfig$s4.initFirstCatalog)) {
34716
34818
  _context.next = 80;
34717
34819
  break;
34718
34820
  }
@@ -34739,7 +34841,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34739
34841
  _context.next = 91;
34740
34842
  break;
34741
34843
  case 86:
34742
- if (!((_this$plannerConfig$s5 = this.plannerConfig.settings) !== null && _this$plannerConfig$s5 !== void 0 && (_this$plannerConfig$s5 = _this$plannerConfig$s5.ViewConfig) !== null && _this$plannerConfig$s5 !== void 0 && _this$plannerConfig$s5.initFirstCatalog)) {
34844
+ if (!((_this$plannerConfig$s5 = this.plannerConfig.settings) !== null && _this$plannerConfig$s5 !== void 0 && (_this$plannerConfig$s5 = _this$plannerConfig$s5.viewConfig) !== null && _this$plannerConfig$s5 !== void 0 && _this$plannerConfig$s5.initFirstCatalog)) {
34743
34845
  _context.next = 91;
34744
34846
  break;
34745
34847
  }
@@ -35292,7 +35394,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35292
35394
  key: "saveToBasket",
35293
35395
  value: function () {
35294
35396
  var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(api, actBasket, returnTo) {
35295
- var _this$plannerConfig$c4, _this$_basketHandler, _api$getJwt;
35397
+ var _this$plannerConfig$s9, _this$plannerConfig$c4, _this$_basketHandler, _api$getJwt;
35296
35398
  var response;
35297
35399
  return _regeneratorRuntime.wrap(function _callee11$(_context11) {
35298
35400
  while (1) switch (_context11.prev = _context11.next) {
@@ -35303,7 +35405,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35303
35405
  actBasket.PrintOptions = api.getPrintOptions(this.reportConfig);
35304
35406
  actBasket.ClientLanguage = api.getLanguage();
35305
35407
  _context11.next = 7;
35306
- return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser, this.plannerConfig.settings.keepSalesPersonDataInBasket);
35408
+ return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser, (_this$plannerConfig$s9 = this.plannerConfig.settings) === null || _this$plannerConfig$s9 === void 0 ? void 0 : _this$plannerConfig$s9.keepSalesPersonDataInBasket);
35307
35409
  case 7:
35308
35410
  actBasket.UserLanguage = api.getLanguage();
35309
35411
  actBasket.PrintRetailLogo = (_this$plannerConfig$c4 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c4 === void 0 ? void 0 : _this$plannerConfig$c4.logoUrl;
@@ -35474,7 +35576,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35474
35576
  break;
35475
35577
  case 3:
35476
35578
  _context12.next = 5;
35477
- return import('./PfisterWWSHandler-7f7996a7.js');
35579
+ return import('./PfisterWWSHandler-fc8023b7.js');
35478
35580
  case 5:
35479
35581
  _yield$import = _context12.sent;
35480
35582
  PfisterWWSHandler = _yield$import["default"];
@@ -35482,7 +35584,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35482
35584
  return _context12.abrupt("break", 27);
35483
35585
  case 9:
35484
35586
  _context12.next = 11;
35485
- return import('./LiviqueWWSHandler-e63f276f.js');
35587
+ return import('./LiviqueWWSHandler-fcbcd7cd.js');
35486
35588
  case 11:
35487
35589
  _yield$import2 = _context12.sent;
35488
35590
  LiviqueWWSHandler = _yield$import2["default"];
@@ -35490,7 +35592,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35490
35592
  return _context12.abrupt("break", 27);
35491
35593
  case 15:
35492
35594
  _context12.next = 17;
35493
- return import('./SeriousBasketHandler-1a4186bd.js');
35595
+ return import('./SeriousBasketHandler-37bd9174.js');
35494
35596
  case 17:
35495
35597
  _yield$import3 = _context12.sent;
35496
35598
  SeriousWWSHandler = _yield$import3["default"];
@@ -35498,7 +35600,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35498
35600
  return _context12.abrupt("break", 27);
35499
35601
  case 21:
35500
35602
  _context12.next = 23;
35501
- return import('./StandardWWSHandler-a5d84eb8.js');
35603
+ return import('./StandardWWSHandler-337f91dc.js');
35502
35604
  case 23:
35503
35605
  _yield$import4 = _context12.sent;
35504
35606
  StandardWWSHandler = _yield$import4["default"];
@@ -35783,28 +35885,6 @@ var ViewPointHandler = /*#__PURE__*/function () {
35783
35885
  value: function zoomToStep(zoomStep) {
35784
35886
  this.navInfo3D.zoom = zoomStep;
35785
35887
  }
35786
- }, {
35787
- key: "swipeLeft",
35788
- value: function swipeLeft() {
35789
- this.navInfo3D.rotHori -= 15;
35790
- }
35791
- }, {
35792
- key: "swipRight",
35793
- value: function swipRight() {
35794
- this.navInfo3D.rotHori += 15;
35795
- }
35796
- }, {
35797
- key: "swipeUp",
35798
- value: function swipeUp() {
35799
- if (this.navInfo3D.rotVert == -15) return;
35800
- this.navInfo3D.rotVert -= 15;
35801
- }
35802
- }, {
35803
- key: "swipeDown",
35804
- value: function swipeDown() {
35805
- if (this.navInfo3D.rotVert == 45) return;
35806
- this.navInfo3D.rotVert += 15;
35807
- }
35808
35888
  }, {
35809
35889
  key: "setVpName",
35810
35890
  value: function setVpName(vpName) {
@@ -35859,6 +35939,7 @@ var ViewPointHandler = /*#__PURE__*/function () {
35859
35939
  key: "initRoomList",
35860
35940
  value: function initRoomList(roomlist, defaultBackgroundWidth, defaultBackgroundHeight) {
35861
35941
  this.roomListInfo = [];
35942
+ if (!roomlist) return;
35862
35943
  var roomListObj = JSON.parse(roomlist);
35863
35944
  var roomIsSel = true;
35864
35945
  for (var roomCodex in roomListObj) {
@@ -36941,7 +37022,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36941
37022
  while (1) switch (_context3.prev = _context3.next) {
36942
37023
  case 0:
36943
37024
  _context3.next = 2;
36944
- return import('./Host3DSignalR-b772e3b5.js');
37025
+ return import('./Host3DSignalR-91c94279.js');
36945
37026
  case 2:
36946
37027
  _yield$import = _context3.sent;
36947
37028
  Host3DSignalR = _yield$import["default"];
@@ -37642,7 +37723,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37642
37723
  }, {
37643
37724
  key: "handle3DVisualizationChanged",
37644
37725
  value: function handle3DVisualizationChanged(mode, params) {
37645
- var _params$nav3DZoom, _params$nav3DZoom2, _params$nav3DZoom3, _params$nav3DSwipe, _params$nav3DSwipe2, _params$nav3DSwipe3, _params$nav3DSwipe4;
37726
+ var _params$nav3DZoom, _params$nav3DZoom2, _params$nav3DZoom3;
37646
37727
  switch (mode) {
37647
37728
  case 'Nav3DFullScreen':
37648
37729
  break;
@@ -37655,17 +37736,6 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37655
37736
  this.viewPointHandler.zoomToStep(params.nav3DZoom.zoomVal);
37656
37737
  }
37657
37738
  break;
37658
- case 'Nav3DSwipe':
37659
- if ((_params$nav3DSwipe = params.nav3DSwipe) !== null && _params$nav3DSwipe !== void 0 && _params$nav3DSwipe.doSwipeRight) {
37660
- this.viewPointHandler.swipRight();
37661
- } else if ((_params$nav3DSwipe2 = params.nav3DSwipe) !== null && _params$nav3DSwipe2 !== void 0 && _params$nav3DSwipe2.doSwipeLeft) {
37662
- this.viewPointHandler.swipeLeft();
37663
- } else if ((_params$nav3DSwipe3 = params.nav3DSwipe) !== null && _params$nav3DSwipe3 !== void 0 && _params$nav3DSwipe3.doSwipeDown) {
37664
- this.viewPointHandler.swipeDown();
37665
- } else if ((_params$nav3DSwipe4 = params.nav3DSwipe) !== null && _params$nav3DSwipe4 !== void 0 && _params$nav3DSwipe4.doSwipeUp) {
37666
- this.viewPointHandler.swipeUp();
37667
- }
37668
- break;
37669
37739
  case 'Nav3DFocus':
37670
37740
  this.viewPointHandler.focusOnElementId(params.nav3DFocus.setId, params.nav3DFocus.focusElementId);
37671
37741
  break;
@@ -38506,7 +38576,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38506
38576
  break;
38507
38577
  case 8:
38508
38578
  _context4.next = 10;
38509
- return import('./DivaStandardPlanner-50298918.js');
38579
+ return import('./DivaStandardPlanner-1f8aaa64.js');
38510
38580
  case 10:
38511
38581
  _yield$import = _context4.sent;
38512
38582
  DivaStandardPlanner = _yield$import["default"];
@@ -38517,7 +38587,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38517
38587
  return _context4.abrupt("break", 21);
38518
38588
  case 15:
38519
38589
  _context4.next = 17;
38520
- return import('./DivaBoxPlanner-ef50f3c1.js');
38590
+ return import('./DivaBoxPlanner-1289c1ee.js');
38521
38591
  case 17:
38522
38592
  _yield$import2 = _context4.sent;
38523
38593
  DivaBoxPlanner = _yield$import2["default"];
@@ -39275,7 +39345,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
39275
39345
  planner3DGridEnabled: false,
39276
39346
  mediaServiceSaveMode: 'STREAM',
39277
39347
  doShow3DDimensionLines: !!doShow3DDimensionLines
39278
- }, undefined);
39348
+ }, undefined, true);
39279
39349
  } else {
39280
39350
  this.handler3D.handle3DVisualizationChanged(mode, params);
39281
39351
  }
@@ -40271,7 +40341,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40271
40341
  key: "initialize",
40272
40342
  value: function () {
40273
40343
  var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
40274
- var viewReadyPromise, loadSuccessful, _this$actions16, _set$getDivaArticles, _this$actions15, _this$actions15$toggl, initSetState, set, oldProductId, result, _this$actions17, catalogData, initializationId, _this$plannerConfig$a;
40344
+ var viewReadyPromise, loadSuccessful;
40275
40345
  return _regeneratorRuntime.wrap(function _callee14$(_context14) {
40276
40346
  while (1) switch (_context14.prev = _context14.next) {
40277
40347
  case 0:
@@ -40300,59 +40370,97 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40300
40370
  DivaUtils.businessMetrics.setConfiguratorSessionId();
40301
40371
  }
40302
40372
  if (!loadSuccessful) {
40303
- _context14.next = 56;
40373
+ _context14.next = 27;
40304
40374
  break;
40305
40375
  }
40376
+ _context14.prev = 15;
40377
+ _context14.next = 18;
40378
+ return this.initializeSets(loadSuccessful, viewReadyPromise);
40379
+ case 18:
40380
+ return _context14.abrupt("return", _context14.sent);
40381
+ case 21:
40382
+ _context14.prev = 21;
40383
+ _context14.t0 = _context14["catch"](15);
40384
+ this.onInitializationError();
40385
+ return _context14.abrupt("return", false);
40386
+ case 25:
40387
+ _context14.next = 30;
40388
+ break;
40389
+ case 27:
40390
+ this.onInitializationError();
40391
+ //fehler beim laden vom basket..
40392
+ LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
40393
+ return _context14.abrupt("return", false);
40394
+ case 30:
40395
+ case "end":
40396
+ return _context14.stop();
40397
+ }
40398
+ }, _callee14, this, [[15, 21]]);
40399
+ }));
40400
+ function initialize() {
40401
+ return _initialize.apply(this, arguments);
40402
+ }
40403
+ return initialize;
40404
+ }()
40405
+ }, {
40406
+ key: "initializeSets",
40407
+ value: function () {
40408
+ var _initializeSets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(loadSuccessful, viewReadyPromise) {
40409
+ var _this$actions16, _set$getDivaArticles;
40410
+ var _this$actions15, _this$actions15$toggl, initSetState, set, oldProductId, result, _this$actions17, catalogData, initializationId, _this$plannerConfig$a;
40411
+ return _regeneratorRuntime.wrap(function _callee15$(_context15) {
40412
+ while (1) switch (_context15.prev = _context15.next) {
40413
+ case 0:
40306
40414
  if (!(typeof loadSuccessful != 'boolean')) {
40307
- _context14.next = 24;
40415
+ _context15.next = 9;
40308
40416
  break;
40309
40417
  }
40310
40418
  if (!(loadSuccessful.type == 'ProductList')) {
40311
- _context14.next = 24;
40419
+ _context15.next = 9;
40312
40420
  break;
40313
40421
  }
40314
- _context14.next = 19;
40422
+ _context15.next = 4;
40315
40423
  return viewReadyPromise;
40316
- case 19:
40317
- _context14.next = 21;
40424
+ case 4:
40425
+ _context15.next = 6;
40318
40426
  return this.initView();
40319
- case 21:
40427
+ case 6:
40320
40428
  this.subscribeToWebPlannerEvents();
40321
40429
  (_this$actions15 = this.actions) === null || _this$actions15 === void 0 || (_this$actions15$toggl = _this$actions15.toggleLoading) === null || _this$actions15$toggl === void 0 || _this$actions15$toggl.call(_this$actions15, 'Planner_Loading', false, false);
40322
- return _context14.abrupt("return", true);
40323
- case 24:
40430
+ return _context15.abrupt("return", true);
40431
+ case 9:
40324
40432
  this.divaNr = this.divaBasketHandler.actDivaNr;
40325
40433
  initSetState = this.getInitStateForSet();
40326
40434
  this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
40327
- _context14.next = 29;
40435
+ _context15.next = 14;
40328
40436
  return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
40329
- case 29:
40437
+ case 14:
40330
40438
  set = this.actSet();
40331
40439
  oldProductId = this.divaBasketHandler.actBasket.MatchingProductId || this.divaBasketHandler.actBasket.OrigProductId;
40332
40440
  if (!(oldProductId && set && set !== null && set !== void 0 && set.api.doCheckForProductsPrice())) {
40333
- _context14.next = 38;
40441
+ _context15.next = 23;
40334
40442
  break;
40335
40443
  }
40336
- _context14.next = 34;
40444
+ _context15.next = 19;
40337
40445
  return this.divaBasketHandler.getProduct(this.api, oldProductId);
40338
- case 34:
40339
- result = _context14.sent;
40446
+ case 19:
40447
+ result = _context15.sent;
40340
40448
  if (result) productHandlerInstance.handleFountMatchingProducts(set, [result], set.setHash);
40341
- _context14.next = 39;
40449
+ _context15.next = 24;
40342
40450
  break;
40343
- case 38:
40451
+ case 23:
40344
40452
  if (typeof loadSuccessful != 'boolean' && set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
40345
40453
  if (loadSuccessful.type != 'ProductList') {
40346
40454
  productHandlerInstance.handleFountMatchingProducts(set, [loadSuccessful], set.setHash);
40347
40455
  }
40348
40456
  }
40349
- case 39:
40350
- _context14.next = 41;
40457
+ case 24:
40458
+ _context15.next = 26;
40351
40459
  return viewReadyPromise;
40352
- case 41:
40353
- _context14.next = 43;
40460
+ case 26:
40461
+ _context15.next = 28;
40354
40462
  return this.initView();
40355
- case 43:
40463
+ case 28:
40356
40464
  (_this$actions16 = this.actions) === null || _this$actions16 === void 0 || _this$actions16.onEvent({
40357
40465
  type: 'onConfiguratorReady'
40358
40466
  });
@@ -40362,7 +40470,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40362
40470
  });
40363
40471
  }
40364
40472
  this.subscribeToWebPlannerEvents();
40365
- this.divaBasketHandler.actBasket;
40366
40473
  catalogData = set === null || set === void 0 ? void 0 : set.CatalogData;
40367
40474
  initializationId = undefined;
40368
40475
  if (this.divaBasketHandler.initializationTypeGetter == 'PRODUCT_ID') {
@@ -40387,25 +40494,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40387
40494
  initializationType: this.divaBasketHandler.initializationTypeGetter,
40388
40495
  initializationId: initializationId
40389
40496
  }, false);
40390
- _context14.next = 53;
40497
+ _context15.next = 37;
40391
40498
  return this.fillBaksetforOnWebPlanerConfigChange(undefined, true);
40392
- case 53:
40393
- return _context14.abrupt("return", true);
40394
- case 56:
40395
- this.onInitializationError();
40396
- //fehler beim laden vom basket..
40397
- LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
40398
- return _context14.abrupt("return", false);
40399
- case 59:
40499
+ case 37:
40500
+ return _context15.abrupt("return", true);
40501
+ case 38:
40400
40502
  case "end":
40401
- return _context14.stop();
40503
+ return _context15.stop();
40402
40504
  }
40403
- }, _callee14, this);
40505
+ }, _callee15, this);
40404
40506
  }));
40405
- function initialize() {
40406
- return _initialize.apply(this, arguments);
40507
+ function initializeSets(_x53, _x54) {
40508
+ return _initializeSets.apply(this, arguments);
40407
40509
  }
40408
- return initialize;
40510
+ return initializeSets;
40409
40511
  }()
40410
40512
  }, {
40411
40513
  key: "updatePlannerConfig",
@@ -40464,11 +40566,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40464
40566
  var _this$plannerConfig$a3;
40465
40567
  if (!(onErrorHandling !== null && onErrorHandling !== void 0 && onErrorHandling.hideErrorMsg)) {
40466
40568
  var _this$plannerConfig$a2, _this$i18n$t, _this$i18n4, _onErrorHandling$erro;
40569
+ var isWeb = this.api.getApplicationEnvironment() == 'WEB';
40467
40570
  (_this$plannerConfig$a2 = this.plannerConfig.actions) === null || _this$plannerConfig$a2 === void 0 || _this$plannerConfig$a2.openModal({
40468
40571
  title: (_this$i18n$t = (_this$i18n4 = this.i18n()) === null || _this$i18n4 === void 0 ? void 0 : _this$i18n4.t((_onErrorHandling$erro = onErrorHandling.errorMsg) !== null && _onErrorHandling$erro !== void 0 ? _onErrorHandling$erro : 'modals.error_accured')) !== null && _this$i18n$t !== void 0 ? _this$i18n$t : 'An error occured. Please try again later.',
40469
40572
  accept: true,
40470
40573
  callback: function callback(accepted) {
40471
- if (accepted && _this2.api.getApplicationEnvironment() == 'WEB') {
40574
+ if (accepted && isWeb) {
40472
40575
  var _this2$state;
40473
40576
  _this2.callEvent('onWebPlanerClose');
40474
40577
  ((_this2$state = _this2.state) === null || _this2$state === void 0 ? void 0 : _this2$state.isFullscreenComponent) && _this2.callEvent('onFullscreenClose');
@@ -40495,7 +40598,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40495
40598
  var _this$plannerConfig$a6, _this$i18n7, _this$plannerConfig$a7, _this$plannerConfig$c;
40496
40599
  (_this$plannerConfig$a6 = this.plannerConfig.actions) === null || _this$plannerConfig$a6 === void 0 || _this$plannerConfig$a6.openModal({
40497
40600
  accept: true,
40498
- title: (_this$i18n7 = this.i18n()) === null || _this$i18n7 === void 0 ? void 0 : _this$i18n7.t('modals.error_accured')
40601
+ title: (_this$i18n7 = this.i18n()) === null || _this$i18n7 === void 0 ? void 0 : _this$i18n7.t('modals.error_accured33')
40499
40602
  });
40500
40603
  (_this$plannerConfig$a7 = this.plannerConfig.actions) === null || _this$plannerConfig$a7 === void 0 || _this$plannerConfig$a7.openComponent({
40501
40604
  type: 'SELLER',
@@ -40532,23 +40635,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40532
40635
  }, {
40533
40636
  key: "initView",
40534
40637
  value: (function () {
40535
- var _initView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15() {
40638
+ var _initView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16() {
40536
40639
  var set, plannerMode, _this$initConfigurato, _this$initPlannerView, _this$initConfigurato2, _this$updateViewPlann9;
40537
- return _regeneratorRuntime.wrap(function _callee15$(_context15) {
40538
- while (1) switch (_context15.prev = _context15.next) {
40640
+ return _regeneratorRuntime.wrap(function _callee16$(_context16) {
40641
+ while (1) switch (_context16.prev = _context16.next) {
40539
40642
  case 0:
40540
40643
  set = this.actSet();
40541
40644
  plannerMode = this.getPlannerMode();
40542
40645
  this.initConfiguratorMode(plannerMode);
40543
40646
  if (!(plannerMode == 'ProductList')) {
40544
- _context15.next = 7;
40647
+ _context16.next = 7;
40545
40648
  break;
40546
40649
  }
40547
40650
  (_this$initConfigurato = this.initConfiguratorStructure) === null || _this$initConfigurato === void 0 || _this$initConfigurato.call(this, setHandlerInstance.loadConfigStructureForOnlyProductsList());
40548
- _context15.next = 17;
40651
+ _context16.next = 17;
40549
40652
  break;
40550
40653
  case 7:
40551
- _context15.next = 9;
40654
+ _context16.next = 9;
40552
40655
  return (_this$initPlannerView = this.initPlannerView) === null || _this$initPlannerView === void 0 ? void 0 : _this$initPlannerView.call(this);
40553
40656
  case 9:
40554
40657
  //first load the Configuratorstructure STARTCONFIG
@@ -40562,13 +40665,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40562
40665
  this.onBasketInitialized();
40563
40666
  this.checkMatchingProducts('onInit');
40564
40667
  case 17:
40565
- _context15.next = 19;
40668
+ _context16.next = 19;
40566
40669
  return this.runInitMode(plannerMode);
40567
40670
  case 19:
40568
40671
  case "end":
40569
- return _context15.stop();
40672
+ return _context16.stop();
40570
40673
  }
40571
- }, _callee15, this);
40674
+ }, _callee16, this);
40572
40675
  }));
40573
40676
  function initView() {
40574
40677
  return _initView.apply(this, arguments);
@@ -40589,26 +40692,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40589
40692
  }, {
40590
40693
  key: "runInitMode",
40591
40694
  value: function () {
40592
- var _runInitMode = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(plannerMode) {
40695
+ var _runInitMode = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(plannerMode) {
40593
40696
  var _this$state3;
40594
40697
  var doDefault, _this$navigateToTabGr2, configStepKey, _this$actSet5, _this$navigateToTabGr3, _this$navigateToTabGr4, _this$navigateToTabGr5;
40595
- return _regeneratorRuntime.wrap(function _callee16$(_context16) {
40596
- while (1) switch (_context16.prev = _context16.next) {
40698
+ return _regeneratorRuntime.wrap(function _callee17$(_context17) {
40699
+ while (1) switch (_context17.prev = _context17.next) {
40597
40700
  case 0:
40598
40701
  doDefault = true;
40599
40702
  if (!(this.plannerConfig.initMode == 'OPEN_LEAFLET_BARRIER' || this.plannerConfig.initMode == 'SHOW_PDF')) {
40600
- _context16.next = 10;
40703
+ _context17.next = 10;
40601
40704
  break;
40602
40705
  }
40603
40706
  if (this.plannerConfig.initMode == 'OPEN_LEAFLET_BARRIER') this.ReturnTo = 'OPEN_LEAFLET_BARRIER';
40604
40707
  if (this.plannerConfig.initMode == 'SHOW_PDF') this.ReturnTo = 'OPEN_PDF';
40605
40708
  (_this$navigateToTabGr2 = this.navigateToTabGroup) === null || _this$navigateToTabGr2 === void 0 || _this$navigateToTabGr2.call(this, 'SUMMARY', undefined, true);
40606
40709
  //TODO lea bug das hier ist nur ein temporäre lößung https://app.asana.com/0/1200869909950432/1200998848659806
40607
- _context16.next = 7;
40710
+ _context17.next = 7;
40608
40711
  return this.saveToBasketWrapper();
40609
40712
  case 7:
40610
40713
  doDefault = false;
40611
- _context16.next = 11;
40714
+ _context17.next = 11;
40612
40715
  break;
40613
40716
  case 10:
40614
40717
  if (this.plannerConfig.initMode == 'OPENCONFIGTABGROUP' || this.api.getPlannerType() == 'JUMP_OVER_PLANNER' || this.api.getPlannerType() == 'JUMP_OVER_PLANNER_ONLY_MOBILE' && (_this$state3 = this.state) !== null && _this$state3 !== void 0 && _this$state3.dimensions.isMobile) {
@@ -40632,11 +40735,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40632
40735
  }
40633
40736
  case 12:
40634
40737
  case "end":
40635
- return _context16.stop();
40738
+ return _context17.stop();
40636
40739
  }
40637
- }, _callee16, this);
40740
+ }, _callee17, this);
40638
40741
  }));
40639
- function runInitMode(_x53) {
40742
+ function runInitMode(_x55) {
40640
40743
  return _runInitMode.apply(this, arguments);
40641
40744
  }
40642
40745
  return runInitMode;
@@ -40644,16 +40747,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40644
40747
  }, {
40645
40748
  key: "addSetToActPlanningByDivaNr",
40646
40749
  value: function () {
40647
- var _addSetToActPlanningByDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(divaNr) {
40750
+ var _addSetToActPlanningByDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(divaNr) {
40648
40751
  var _this$updateViewPlann10;
40649
40752
  var set, orderSets, i, orderset, lastSetToInitialize, loadedSet, articlesKeys;
40650
- return _regeneratorRuntime.wrap(function _callee17$(_context17) {
40651
- while (1) switch (_context17.prev = _context17.next) {
40753
+ return _regeneratorRuntime.wrap(function _callee18$(_context18) {
40754
+ while (1) switch (_context18.prev = _context18.next) {
40652
40755
  case 0:
40653
40756
  set = this.actSet();
40654
40757
  this.divaBasketHandler.updateDivaNrInBasket(divaNr);
40655
40758
  this.divaBasketHandler.setIgnoreInitObjectWhenInitializing();
40656
- _context17.next = 5;
40759
+ _context18.next = 5;
40657
40760
  return this.divaBasketHandler.initializeBasket(this.api);
40658
40761
  case 5:
40659
40762
  orderSets = this.divaBasketHandler.actBasket.OrderSets;
@@ -40661,30 +40764,30 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40661
40764
  i = 0;
40662
40765
  case 8:
40663
40766
  if (!(i < orderSets.length)) {
40664
- _context17.next = 24;
40767
+ _context18.next = 24;
40665
40768
  break;
40666
40769
  }
40667
40770
  orderset = orderSets[i];
40668
40771
  lastSetToInitialize = setHandlerInstance.getOrderSetShouldInitPlanner(orderSets, i);
40669
40772
  loadedSet = setHandlerInstance.findLoadedSet(this.sets, orderset.CatalogCodex, orderset.AccountGUID);
40670
40773
  if (!loadedSet) {
40671
- _context17.next = 18;
40774
+ _context18.next = 18;
40672
40775
  break;
40673
40776
  }
40674
- _context17.next = 15;
40777
+ _context18.next = 15;
40675
40778
  return setHandlerInstance.addOrderSetArticlesToExistingSet(loadedSet, orderset, lastSetToInitialize);
40676
40779
  case 15:
40677
40780
  this.checkMatchingProducts('onAdd');
40678
- _context17.next = 20;
40781
+ _context18.next = 20;
40679
40782
  break;
40680
40783
  case 18:
40681
- _context17.next = 20;
40784
+ _context18.next = 20;
40682
40785
  return setHandlerInstance.initSet(orderset, this.getInitStateForSet(), lastSetToInitialize);
40683
40786
  case 20:
40684
40787
  this.cleanUpEmptySets(true);
40685
40788
  case 21:
40686
40789
  i++;
40687
- _context17.next = 8;
40790
+ _context18.next = 8;
40688
40791
  break;
40689
40792
  case 24:
40690
40793
  this.divaBasketHandler.actBasket.OrderSets = [];
@@ -40696,11 +40799,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40696
40799
  this.loadPaletteInfos(undefined, [articlesKeys[0]], articlesKeys);
40697
40800
  case 31:
40698
40801
  case "end":
40699
- return _context17.stop();
40802
+ return _context18.stop();
40700
40803
  }
40701
- }, _callee17, this);
40804
+ }, _callee18, this);
40702
40805
  }));
40703
- function addSetToActPlanningByDivaNr(_x54) {
40806
+ function addSetToActPlanningByDivaNr(_x56) {
40704
40807
  return _addSetToActPlanningByDivaNr.apply(this, arguments);
40705
40808
  }
40706
40809
  return addSetToActPlanningByDivaNr;
@@ -40733,28 +40836,28 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40733
40836
  }, {
40734
40837
  key: "setActSetCurConfigStepKey",
40735
40838
  value: function () {
40736
- var _setActSetCurConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(curConfigStepKey) {
40839
+ var _setActSetCurConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(curConfigStepKey) {
40737
40840
  var set;
40738
- return _regeneratorRuntime.wrap(function _callee18$(_context18) {
40739
- while (1) switch (_context18.prev = _context18.next) {
40841
+ return _regeneratorRuntime.wrap(function _callee19$(_context19) {
40842
+ while (1) switch (_context19.prev = _context19.next) {
40740
40843
  case 0:
40741
40844
  set = this.actSet();
40742
40845
  if (set) {
40743
- _context18.next = 3;
40846
+ _context19.next = 3;
40744
40847
  break;
40745
40848
  }
40746
- return _context18.abrupt("return");
40849
+ return _context19.abrupt("return");
40747
40850
  case 3:
40748
40851
  set.ActConfigStepKey = curConfigStepKey;
40749
- _context18.next = 6;
40852
+ _context19.next = 6;
40750
40853
  return setHandlerInstance.updateNavigation(set);
40751
40854
  case 6:
40752
40855
  case "end":
40753
- return _context18.stop();
40856
+ return _context19.stop();
40754
40857
  }
40755
- }, _callee18, this);
40858
+ }, _callee19, this);
40756
40859
  }));
40757
- function setActSetCurConfigStepKey(_x55) {
40860
+ function setActSetCurConfigStepKey(_x57) {
40758
40861
  return _setActSetCurConfigStepKey.apply(this, arguments);
40759
40862
  }
40760
40863
  return setActSetCurConfigStepKey;
@@ -40903,17 +41006,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40903
41006
  }, {
40904
41007
  key: "deletePlannerElement",
40905
41008
  value: function () {
40906
- var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(setId, elementId, denyElementSelectionClear) {
41009
+ var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(setId, elementId, denyElementSelectionClear) {
40907
41010
  var _this$updateViewPlann11;
40908
41011
  var set, result, _this$updateElementSe5, _this$updateElementSe6;
40909
- return _regeneratorRuntime.wrap(function _callee19$(_context19) {
40910
- while (1) switch (_context19.prev = _context19.next) {
41012
+ return _regeneratorRuntime.wrap(function _callee20$(_context20) {
41013
+ while (1) switch (_context20.prev = _context20.next) {
40911
41014
  case 0:
40912
41015
  set = this.sets[setId];
40913
- _context19.next = 3;
41016
+ _context20.next = 3;
40914
41017
  return setHandlerInstance.deleteElementFromSetByElemId(set, elementId, true);
40915
41018
  case 3:
40916
- result = _context19.sent;
41019
+ result = _context20.sent;
40917
41020
  this.updateConfigStructure();
40918
41021
  (_this$updateViewPlann11 = this.updateViewPlannerElements) === null || _this$updateViewPlann11 === void 0 || _this$updateViewPlann11.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
40919
41022
  this.updatePlannerView('DELETE_PLANNER_ELEMENT');
@@ -40924,17 +41027,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40924
41027
  }
40925
41028
  this.updatePriceInView();
40926
41029
  this.checkMatchingProducts('onDelete');
40927
- _context19.next = 14;
41030
+ _context20.next = 14;
40928
41031
  return this.getFreePlacesOnGrids(undefined, 'deleteElement');
40929
41032
  case 14:
40930
41033
  this.plannerChangeLog('onDeletePlanner');
40931
41034
  case 15:
40932
41035
  case "end":
40933
- return _context19.stop();
41036
+ return _context20.stop();
40934
41037
  }
40935
- }, _callee19, this);
41038
+ }, _callee20, this);
40936
41039
  }));
40937
- function deletePlannerElement(_x56, _x57, _x58) {
41040
+ function deletePlannerElement(_x58, _x59, _x60) {
40938
41041
  return _deletePlannerElement.apply(this, arguments);
40939
41042
  }
40940
41043
  return deletePlannerElement;
@@ -40948,17 +41051,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40948
41051
  }, {
40949
41052
  key: "copyPlannerElement",
40950
41053
  value: (function () {
40951
- var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(setId, elementId, curConfigKey, copyInfo) {
41054
+ var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(setId, elementId, curConfigKey, copyInfo) {
40952
41055
  var _this$updateViewPlann12;
40953
41056
  var set, newSelectedArticle, newConfigStepKey, _this$updateElementSe7, baseArticle;
40954
- return _regeneratorRuntime.wrap(function _callee20$(_context20) {
40955
- while (1) switch (_context20.prev = _context20.next) {
41057
+ return _regeneratorRuntime.wrap(function _callee21$(_context21) {
41058
+ while (1) switch (_context21.prev = _context21.next) {
40956
41059
  case 0:
40957
41060
  set = this.sets[setId];
40958
- _context20.next = 3;
41061
+ _context21.next = 3;
40959
41062
  return setHandlerInstance.copyPlannerElement(set, elementId, copyInfo);
40960
41063
  case 3:
40961
- newSelectedArticle = _context20.sent;
41064
+ newSelectedArticle = _context21.sent;
40962
41065
  this.updateConfigStructure();
40963
41066
  (_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
40964
41067
  this.updatePlannerView('COPY_PLANNER_ELEMENT');
@@ -40972,14 +41075,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40972
41075
  (_this$updateElementSe7 = this.updateElementSelectionPlanner) === null || _this$updateElementSe7 === void 0 || _this$updateElementSe7.call(this, [baseArticle.setId], [baseArticle.elementId], true);
40973
41076
  }
40974
41077
  this.checkMatchingProducts('onCopy');
40975
- return _context20.abrupt("return", newConfigStepKey);
41078
+ return _context21.abrupt("return", newConfigStepKey);
40976
41079
  case 13:
40977
41080
  case "end":
40978
- return _context20.stop();
41081
+ return _context21.stop();
40979
41082
  }
40980
- }, _callee20, this);
41083
+ }, _callee21, this);
40981
41084
  }));
40982
- function copyPlannerElement(_x59, _x60, _x61, _x62) {
41085
+ function copyPlannerElement(_x61, _x62, _x63, _x64) {
40983
41086
  return _copyPlannerElement.apply(this, arguments);
40984
41087
  }
40985
41088
  return copyPlannerElement;
@@ -41008,33 +41111,33 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41008
41111
  }, {
41009
41112
  key: "getFreePlacesOnGrids",
41010
41113
  value: function () {
41011
- var _getFreePlacesOnGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(gridGroup, from) {
41114
+ var _getFreePlacesOnGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(gridGroup, from) {
41012
41115
  var _this$updateFreePlace;
41013
41116
  var set, freeShelfGrids, plannedShelfGrids;
41014
- return _regeneratorRuntime.wrap(function _callee21$(_context21) {
41015
- while (1) switch (_context21.prev = _context21.next) {
41117
+ return _regeneratorRuntime.wrap(function _callee22$(_context22) {
41118
+ while (1) switch (_context22.prev = _context22.next) {
41016
41119
  case 0:
41017
41120
  set = this.actSet();
41018
41121
  if (set) {
41019
- _context21.next = 3;
41122
+ _context22.next = 3;
41020
41123
  break;
41021
41124
  }
41022
41125
  throw new Error('getFreePlacesOnGrids: act set is not defined!');
41023
41126
  case 3:
41024
41127
  if (!gridGroup) {
41025
- _context21.next = 9;
41128
+ _context22.next = 9;
41026
41129
  break;
41027
41130
  }
41028
- _context21.next = 6;
41131
+ _context22.next = 6;
41029
41132
  return setHandlerInstance.getFreeShelfGrids(set, gridGroup);
41030
41133
  case 6:
41031
- _context21.t0 = _context21.sent;
41032
- _context21.next = 10;
41134
+ _context22.t0 = _context22.sent;
41135
+ _context22.next = 10;
41033
41136
  break;
41034
41137
  case 9:
41035
- _context21.t0 = undefined;
41138
+ _context22.t0 = undefined;
41036
41139
  case 10:
41037
- freeShelfGrids = _context21.t0;
41140
+ freeShelfGrids = _context22.t0;
41038
41141
  plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
41039
41142
  LOG$1.debug('TOULA', 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
41040
41143
  LOG$1.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
@@ -41042,17 +41145,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41042
41145
  freeShelfGrids: freeShelfGrids,
41043
41146
  plannedShelfGrids: plannedShelfGrids
41044
41147
  });
41045
- return _context21.abrupt("return", {
41148
+ return _context22.abrupt("return", {
41046
41149
  freeShelfGrids: freeShelfGrids,
41047
41150
  plannedShelfGrids: plannedShelfGrids
41048
41151
  });
41049
41152
  case 16:
41050
41153
  case "end":
41051
- return _context21.stop();
41154
+ return _context22.stop();
41052
41155
  }
41053
- }, _callee21, this);
41156
+ }, _callee22, this);
41054
41157
  }));
41055
- function getFreePlacesOnGrids(_x63, _x64) {
41158
+ function getFreePlacesOnGrids(_x65, _x66) {
41056
41159
  return _getFreePlacesOnGrids.apply(this, arguments);
41057
41160
  }
41058
41161
  return getFreePlacesOnGrids;
@@ -41069,36 +41172,36 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41069
41172
  }, {
41070
41173
  key: "moveShelfItemToGrid",
41071
41174
  value: function () {
41072
- var _moveShelfItemToGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(accessoireBasketId, parentBasketId, gridName, cellIndex) {
41175
+ var _moveShelfItemToGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(accessoireBasketId, parentBasketId, gridName, cellIndex) {
41073
41176
  var set, newGridId;
41074
- return _regeneratorRuntime.wrap(function _callee22$(_context22) {
41075
- while (1) switch (_context22.prev = _context22.next) {
41177
+ return _regeneratorRuntime.wrap(function _callee23$(_context23) {
41178
+ while (1) switch (_context23.prev = _context23.next) {
41076
41179
  case 0:
41077
41180
  set = this.actSet();
41078
41181
  if (set) {
41079
- _context22.next = 3;
41182
+ _context23.next = 3;
41080
41183
  break;
41081
41184
  }
41082
- return _context22.abrupt("return");
41185
+ return _context23.abrupt("return");
41083
41186
  case 3:
41084
- _context22.next = 5;
41187
+ _context23.next = 5;
41085
41188
  return setHandlerInstance.moveShelfItemToGrid(set, accessoireBasketId, parentBasketId, gridName, cellIndex);
41086
41189
  case 5:
41087
- newGridId = _context22.sent;
41190
+ newGridId = _context23.sent;
41088
41191
  this.updatePlannerView('MOVE_SHELF_ITEM');
41089
41192
  if (!newGridId) {
41090
- _context22.next = 10;
41193
+ _context23.next = 10;
41091
41194
  break;
41092
41195
  }
41093
- _context22.next = 10;
41196
+ _context23.next = 10;
41094
41197
  return this.getFreePlacesOnGrids(newGridId, 'move shelf');
41095
41198
  case 10:
41096
41199
  case "end":
41097
- return _context22.stop();
41200
+ return _context23.stop();
41098
41201
  }
41099
- }, _callee22, this);
41202
+ }, _callee23, this);
41100
41203
  }));
41101
- function moveShelfItemToGrid(_x65, _x66, _x67, _x68) {
41204
+ function moveShelfItemToGrid(_x67, _x68, _x69, _x70) {
41102
41205
  return _moveShelfItemToGrid.apply(this, arguments);
41103
41206
  }
41104
41207
  return moveShelfItemToGrid;
@@ -41106,27 +41209,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41106
41209
  }, {
41107
41210
  key: "resetArticle",
41108
41211
  value: function () {
41109
- var _resetArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(basketId) {
41212
+ var _resetArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(basketId) {
41110
41213
  var set;
41111
- return _regeneratorRuntime.wrap(function _callee23$(_context23) {
41112
- while (1) switch (_context23.prev = _context23.next) {
41214
+ return _regeneratorRuntime.wrap(function _callee24$(_context24) {
41215
+ while (1) switch (_context24.prev = _context24.next) {
41113
41216
  case 0:
41114
41217
  set = this.actSet();
41115
41218
  if (set) {
41116
- _context23.next = 3;
41219
+ _context24.next = 3;
41117
41220
  break;
41118
41221
  }
41119
- return _context23.abrupt("return");
41222
+ return _context24.abrupt("return");
41120
41223
  case 3:
41121
- _context23.next = 5;
41224
+ _context24.next = 5;
41122
41225
  return setHandlerInstance.resetArticle(set, basketId);
41123
41226
  case 5:
41124
41227
  case "end":
41125
- return _context23.stop();
41228
+ return _context24.stop();
41126
41229
  }
41127
- }, _callee23, this);
41230
+ }, _callee24, this);
41128
41231
  }));
41129
- function resetArticle(_x69) {
41232
+ function resetArticle(_x71) {
41130
41233
  return _resetArticle.apply(this, arguments);
41131
41234
  }
41132
41235
  return resetArticle;
@@ -41156,10 +41259,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41156
41259
  }, {
41157
41260
  key: "checkMatchingProducts",
41158
41261
  value: function () {
41159
- var _checkMatchingProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(from) {
41262
+ var _checkMatchingProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(from) {
41160
41263
  var set, _set$getMatchingProdu, _set$getMatchingOrigP, _set$getMatchingOrigP2, _set$getMatchingProdu2;
41161
- return _regeneratorRuntime.wrap(function _callee24$(_context24) {
41162
- while (1) switch (_context24.prev = _context24.next) {
41264
+ return _regeneratorRuntime.wrap(function _callee25$(_context25) {
41265
+ while (1) switch (_context25.prev = _context25.next) {
41163
41266
  case 0:
41164
41267
  set = this.actSet();
41165
41268
  if (set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
@@ -41173,20 +41276,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41173
41276
  }
41174
41277
  }
41175
41278
  if (!(set !== null && set !== void 0 && set.api.doCheckForProductsMatch())) {
41176
- _context24.next = 6;
41279
+ _context25.next = 6;
41177
41280
  break;
41178
41281
  }
41179
- _context24.next = 5;
41282
+ _context25.next = 5;
41180
41283
  return productHandlerInstance.updateProducts(this.setsAsArray, this.api, this.divaBasketHandler.divaWWSHandler, from);
41181
41284
  case 5:
41182
41285
  this.updatePriceInView();
41183
41286
  case 6:
41184
41287
  case "end":
41185
- return _context24.stop();
41288
+ return _context25.stop();
41186
41289
  }
41187
- }, _callee24, this);
41290
+ }, _callee25, this);
41188
41291
  }));
41189
- function checkMatchingProducts(_x70) {
41292
+ function checkMatchingProducts(_x72) {
41190
41293
  return _checkMatchingProducts.apply(this, arguments);
41191
41294
  }
41192
41295
  return checkMatchingProducts;
@@ -41263,7 +41366,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41263
41366
  }, {
41264
41367
  key: "saveToBasketWrapper",
41265
41368
  value: function () {
41266
- var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(event, repairOnly, force) {
41369
+ var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
41267
41370
  var _this$actions27,
41268
41371
  _this$actions27$toggl,
41269
41372
  _this$actions28,
@@ -41272,8 +41375,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41272
41375
  _this$actions32,
41273
41376
  _this$i18n14;
41274
41377
  var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions26, result, _this$actions29, _this$i18n8, _this$i18n9, _this$actions30, _this$i18n10, _this$i18n11, _this$actions31, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
41275
- return _regeneratorRuntime.wrap(function _callee25$(_context25) {
41276
- while (1) switch (_context25.prev = _context25.next) {
41378
+ return _regeneratorRuntime.wrap(function _callee26$(_context26) {
41379
+ while (1) switch (_context26.prev = _context26.next) {
41277
41380
  case 0:
41278
41381
  returnTo = this.getReturnTo(event);
41279
41382
  finalEvent = {
@@ -41281,50 +41384,50 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41281
41384
  saveBasket: true
41282
41385
  };
41283
41386
  if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
41284
- _context25.next = 21;
41387
+ _context26.next = 21;
41285
41388
  break;
41286
41389
  }
41287
41390
  product = undefined;
41288
41391
  if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
41289
- _context25.next = 10;
41392
+ _context26.next = 10;
41290
41393
  break;
41291
41394
  }
41292
41395
  url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
41293
- _context25.next = 8;
41396
+ _context26.next = 8;
41294
41397
  return this.api.getDataCache(url, url, undefined, 'catalog');
41295
41398
  case 8:
41296
- _result = _context25.sent;
41399
+ _result = _context26.sent;
41297
41400
  product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
41298
41401
  case 10:
41299
- _context25.next = 12;
41402
+ _context26.next = 12;
41300
41403
  return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
41301
41404
  case 12:
41302
- finalEvent = _context25.sent;
41405
+ finalEvent = _context26.sent;
41303
41406
  if (finalEvent) {
41304
- _context25.next = 17;
41407
+ _context26.next = 17;
41305
41408
  break;
41306
41409
  }
41307
- return _context25.abrupt("return", 'canceled');
41410
+ return _context26.abrupt("return", 'canceled');
41308
41411
  case 17:
41309
41412
  if (!(!finalEvent.saveBasket && finalEvent.event)) {
41310
- _context25.next = 20;
41413
+ _context26.next = 20;
41311
41414
  break;
41312
41415
  }
41313
41416
  (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
41314
41417
  type: finalEvent.event
41315
41418
  });
41316
- return _context25.abrupt("return", 'canceled');
41419
+ return _context26.abrupt("return", 'canceled');
41317
41420
  case 20:
41318
41421
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
41319
41422
  case 21:
41320
41423
  (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, true);
41321
- _context25.next = 24;
41424
+ _context26.next = 24;
41322
41425
  return this.saveToBasket(finalEvent.event, repairOnly, force);
41323
41426
  case 24:
41324
- result = _context25.sent;
41427
+ result = _context26.sent;
41325
41428
  (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || (_this$actions28$toggl = _this$actions28.toggleLoading) === null || _this$actions28$toggl === void 0 || _this$actions28$toggl.call(_this$actions28, 'Planner_Saving', false, false);
41326
41429
  if (!(result === 'canceled')) {
41327
- _context25.next = 30;
41430
+ _context26.next = 30;
41328
41431
  break;
41329
41432
  }
41330
41433
  LOG$1.error(new DivaError('failed to save Basket'));
@@ -41332,10 +41435,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41332
41435
  text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
41333
41436
  accept: true
41334
41437
  });
41335
- return _context25.abrupt("return", result);
41438
+ return _context26.abrupt("return", result);
41336
41439
  case 30:
41337
- _context25.t0 = returnTo;
41338
- _context25.next = _context25.t0 === 'OPEN_PDF' ? 33 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context25.t0 === 'OPEN_CONTACT_FORM' ? 36 : 36;
41440
+ _context26.t0 = returnTo;
41441
+ _context26.next = _context26.t0 === 'OPEN_PDF' ? 33 : _context26.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context26.t0 === 'OPEN_CONTACT_FORM' ? 36 : 36;
41339
41442
  break;
41340
41443
  case 33:
41341
41444
  if (!this.getBasket().PDFDocumentURL) {
@@ -41355,7 +41458,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41355
41458
  }
41356
41459
  });
41357
41460
  }
41358
- return _context25.abrupt("break", 36);
41461
+ return _context26.abrupt("break", 36);
41359
41462
  case 35:
41360
41463
  (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
41361
41464
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
@@ -41363,20 +41466,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41363
41466
  });
41364
41467
  case 36:
41365
41468
  if (!(result == 'noArticleToSave')) {
41366
- _context25.next = 39;
41469
+ _context26.next = 39;
41367
41470
  break;
41368
41471
  }
41369
41472
  (_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
41370
- return _context25.abrupt("return", 'canceled');
41473
+ return _context26.abrupt("return", 'canceled');
41371
41474
  case 39:
41372
- return _context25.abrupt("return", result);
41475
+ return _context26.abrupt("return", result);
41373
41476
  case 40:
41374
41477
  case "end":
41375
- return _context25.stop();
41478
+ return _context26.stop();
41376
41479
  }
41377
- }, _callee25, this);
41480
+ }, _callee26, this);
41378
41481
  }));
41379
- function saveToBasketWrapper(_x71, _x72, _x73) {
41482
+ function saveToBasketWrapper(_x73, _x74, _x75) {
41380
41483
  return _saveToBasketWrapper.apply(this, arguments);
41381
41484
  }
41382
41485
  return saveToBasketWrapper;
@@ -41384,43 +41487,43 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41384
41487
  }, {
41385
41488
  key: "saveToBasket",
41386
41489
  value: function () {
41387
- var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
41490
+ var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(event, repairOnly, force) {
41388
41491
  var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
41389
41492
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
41390
- return _regeneratorRuntime.wrap(function _callee26$(_context26) {
41391
- while (1) switch (_context26.prev = _context26.next) {
41493
+ return _regeneratorRuntime.wrap(function _callee27$(_context27) {
41494
+ while (1) switch (_context27.prev = _context27.next) {
41392
41495
  case 0:
41393
41496
  set = this.actSet();
41394
41497
  if (!(setHandlerInstance.isNoArticleToSave(this.sets) && !force)) {
41395
- _context26.next = 3;
41498
+ _context27.next = 3;
41396
41499
  break;
41397
41500
  }
41398
- return _context26.abrupt("return", 'noArticleToSave');
41501
+ return _context27.abrupt("return", 'noArticleToSave');
41399
41502
  case 3:
41400
41503
  actBasket = this.divaBasketHandler.actBasket;
41401
41504
  returnTo = this.getReturnTo(event);
41402
41505
  if (!((_returnTo = returnTo) !== null && _returnTo !== void 0 && _returnTo.startsWith('FAVORITS') && favoritesHandlerInstance.FavoritesDefined(set))) {
41403
- _context26.next = 13;
41506
+ _context27.next = 13;
41404
41507
  break;
41405
41508
  }
41406
41509
  oldReturnTo = returnTo;
41407
41510
  this.ReturnTo = returnTo.replace('FAVORITS_', '');
41408
- _context26.next = 10;
41511
+ _context27.next = 10;
41409
41512
  return this.handleFavorites('SAVE');
41410
41513
  case 10:
41411
- result = _context26.sent;
41514
+ result = _context27.sent;
41412
41515
  if (result === 'canceled') {
41413
41516
  this.ReturnTo = oldReturnTo;
41414
41517
  }
41415
- return _context26.abrupt("return", result);
41518
+ return _context27.abrupt("return", result);
41416
41519
  case 13:
41417
- _context26.t0 = this.divaBasketHandler;
41418
- _context26.t1 = this.divaBasketHandler.actDivaNr;
41419
- _context26.next = 17;
41520
+ _context27.t0 = this.divaBasketHandler;
41521
+ _context27.t1 = this.divaBasketHandler.actDivaNr;
41522
+ _context27.next = 17;
41420
41523
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !!repairOnly, this.doAllowSetPlanner(), this.ReturnTo);
41421
41524
  case 17:
41422
- _context26.t2 = _context26.sent;
41423
- _context26.t0.setBasketData.call(_context26.t0, _context26.t1, _context26.t2);
41525
+ _context27.t2 = _context27.sent;
41526
+ _context27.t0.setBasketData.call(_context27.t0, _context27.t1, _context27.t2);
41424
41527
  if ((_returnTo2 = returnTo) !== null && _returnTo2 !== void 0 && _returnTo2.endsWith('OPEN_SELLER_BASKET')) {
41425
41528
  this.ReturnTo = 'OPEN_SELLER_BASKET';
41426
41529
  returnTo = this.ReturnTo;
@@ -41435,11 +41538,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41435
41538
  this.divaBasketHandler.fillOrigConfigurations();
41436
41539
  actBasket.Updated = Date.now();
41437
41540
  if (!returnTo) {
41438
- _context26.next = 52;
41541
+ _context27.next = 52;
41439
41542
  break;
41440
41543
  }
41441
- _context26.t3 = returnTo;
41442
- _context26.next = _context26.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 28 : _context26.t3 === 'OPEN_SELLER_BASKET' ? 31 : _context26.t3 === 'OPEN_PDF' ? 33 : _context26.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context26.t3 === 'SAVE_BASKET' ? 33 : _context26.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context26.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 52;
41544
+ _context27.t3 = returnTo;
41545
+ _context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 28 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 31 : _context27.t3 === 'OPEN_PDF' ? 33 : _context27.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context27.t3 === 'SAVE_BASKET' ? 33 : _context27.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context27.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 52;
41443
41546
  break;
41444
41547
  case 28:
41445
41548
  (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
@@ -41453,7 +41556,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41453
41556
  basketData: actBasket
41454
41557
  }
41455
41558
  });
41456
- return _context26.abrupt("break", 52);
41559
+ return _context27.abrupt("break", 52);
41457
41560
  case 31:
41458
41561
  (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
41459
41562
  type: 'SELLER',
@@ -41465,23 +41568,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41465
41568
  basketData: actBasket
41466
41569
  }
41467
41570
  });
41468
- return _context26.abrupt("break", 52);
41571
+ return _context27.abrupt("break", 52);
41469
41572
  case 33:
41470
41573
  if (!(event == 'onSaveProduct')) {
41471
- _context26.next = 43;
41574
+ _context27.next = 43;
41472
41575
  break;
41473
41576
  }
41474
41577
  //copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
41475
41578
  actBasket = new BasketData(JSON.parse(JSON.stringify(actBasket)));
41476
- _context26.next = 37;
41579
+ _context27.next = 37;
41477
41580
  return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
41478
41581
  case 37:
41479
- _context26.next = 39;
41582
+ _context27.next = 39;
41480
41583
  return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
41481
41584
  case 39:
41482
- newDivaNr = _context26.sent;
41585
+ newDivaNr = _context27.sent;
41483
41586
  actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
41484
- _context26.next = 51;
41587
+ _context27.next = 51;
41485
41588
  break;
41486
41589
  case 43:
41487
41590
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
@@ -41490,32 +41593,32 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41490
41593
  }
41491
41594
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
41492
41595
  actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
41493
- _context26.next = 48;
41596
+ _context27.next = 48;
41494
41597
  return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo);
41495
41598
  case 48:
41496
- _result2 = _context26.sent;
41599
+ _result2 = _context27.sent;
41497
41600
  if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
41498
- _context26.next = 51;
41601
+ _context27.next = 51;
41499
41602
  break;
41500
41603
  }
41501
- return _context26.abrupt("return", 'canceled');
41604
+ return _context27.abrupt("return", 'canceled');
41502
41605
  case 51:
41503
- return _context26.abrupt("break", 52);
41606
+ return _context27.abrupt("break", 52);
41504
41607
  case 52:
41505
41608
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
41506
41609
  actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
41507
- _context26.next = 56;
41610
+ _context27.next = 56;
41508
41611
  return this.addToBasket(actBasket, event);
41509
41612
  case 56:
41510
- product = _context26.sent;
41511
- return _context26.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
41613
+ product = _context27.sent;
41614
+ return _context27.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
41512
41615
  case 58:
41513
41616
  case "end":
41514
- return _context26.stop();
41617
+ return _context27.stop();
41515
41618
  }
41516
- }, _callee26, this);
41619
+ }, _callee27, this);
41517
41620
  }));
41518
- function saveToBasket(_x74, _x75, _x76) {
41621
+ function saveToBasket(_x76, _x77, _x78) {
41519
41622
  return _saveToBasket.apply(this, arguments);
41520
41623
  }
41521
41624
  return saveToBasket;
@@ -41651,6 +41754,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41651
41754
  value: function getEmailConfig() {
41652
41755
  return this.api.getEmailConfig();
41653
41756
  }
41757
+ }, {
41758
+ key: "getAllConfig",
41759
+ value: function getAllConfig() {
41760
+ return this.plannerConfig.settings;
41761
+ }
41654
41762
  }, {
41655
41763
  key: "getTemplateConfig",
41656
41764
  value: function getTemplateConfig() {
@@ -41749,23 +41857,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41749
41857
  }, {
41750
41858
  key: "getBasketDataWithEkText",
41751
41859
  value: function () {
41752
- var _getBasketDataWithEkText = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27() {
41753
- return _regeneratorRuntime.wrap(function _callee27$(_context27) {
41754
- while (1) switch (_context27.prev = _context27.next) {
41860
+ var _getBasketDataWithEkText = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28() {
41861
+ return _regeneratorRuntime.wrap(function _callee28$(_context28) {
41862
+ while (1) switch (_context28.prev = _context28.next) {
41755
41863
  case 0:
41756
- _context27.t0 = this.divaBasketHandler;
41757
- _context27.t1 = this.divaBasketHandler.actDivaNr;
41758
- _context27.next = 4;
41864
+ _context28.t0 = this.divaBasketHandler;
41865
+ _context28.t1 = this.divaBasketHandler.actDivaNr;
41866
+ _context28.next = 4;
41759
41867
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, true, this.doAllowSetPlanner(), this.ReturnTo);
41760
41868
  case 4:
41761
- _context27.t2 = _context27.sent;
41762
- _context27.t0.setBasketData.call(_context27.t0, _context27.t1, _context27.t2);
41763
- return _context27.abrupt("return", this.divaBasketHandler.actBasket);
41869
+ _context28.t2 = _context28.sent;
41870
+ _context28.t0.setBasketData.call(_context28.t0, _context28.t1, _context28.t2);
41871
+ return _context28.abrupt("return", this.divaBasketHandler.actBasket);
41764
41872
  case 7:
41765
41873
  case "end":
41766
- return _context27.stop();
41874
+ return _context28.stop();
41767
41875
  }
41768
- }, _callee27, this);
41876
+ }, _callee28, this);
41769
41877
  }));
41770
41878
  function getBasketDataWithEkText() {
41771
41879
  return _getBasketDataWithEkText.apply(this, arguments);
@@ -41791,7 +41899,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41791
41899
  }, {
41792
41900
  key: "addToBasket",
41793
41901
  value: function () {
41794
- var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(actBasket) {
41902
+ var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(actBasket) {
41795
41903
  var _this$actions36,
41796
41904
  _this$actions37,
41797
41905
  _this$actions38,
@@ -41811,44 +41919,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41811
41919
  to,
41812
41920
  variants,
41813
41921
  products,
41814
- _args28 = arguments;
41815
- return _regeneratorRuntime.wrap(function _callee28$(_context28) {
41816
- while (1) switch (_context28.prev = _context28.next) {
41922
+ _args29 = arguments;
41923
+ return _regeneratorRuntime.wrap(function _callee29$(_context29) {
41924
+ while (1) switch (_context29.prev = _context29.next) {
41817
41925
  case 0:
41818
- event = _args28.length > 1 && _args28[1] !== undefined ? _args28[1] : 'onAddToBasket';
41819
- _context28.t0 = event;
41820
- _context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 7 : _context28.t0 === 'onWebPlanerShare' ? 9 : _context28.t0 === 'onRequestConsulation' ? 11 : _context28.t0 === 'onSave' ? 13 : _context28.t0 === 'onSendEmail' ? 15 : _context28.t0 === 'onSaveProduct' ? 20 : _context28.t0 === 'dontSaveBasket' ? 27 : _context28.t0 === 'onAddToBasket' ? 28 : _context28.t0 === 'onSendContactForm' ? 30 : 33;
41926
+ event = _args29.length > 1 && _args29[1] !== undefined ? _args29[1] : 'onAddToBasket';
41927
+ _context29.t0 = event;
41928
+ _context29.next = _context29.t0 === 'onWebPlanerPrint' ? 5 : _context29.t0 === 'onWebPlanerSave' ? 7 : _context29.t0 === 'onWebPlanerShare' ? 9 : _context29.t0 === 'onRequestConsulation' ? 11 : _context29.t0 === 'onSave' ? 13 : _context29.t0 === 'onSendEmail' ? 15 : _context29.t0 === 'onSaveProduct' ? 20 : _context29.t0 === 'dontSaveBasket' ? 27 : _context29.t0 === 'onAddToBasket' ? 28 : _context29.t0 === 'onSendContactForm' ? 30 : 33;
41821
41929
  break;
41822
41930
  case 5:
41823
41931
  (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41824
41932
  type: 'onWebPlanerPrint',
41825
41933
  data: actBasket.getAsJson()
41826
41934
  });
41827
- return _context28.abrupt("break", 35);
41935
+ return _context29.abrupt("break", 35);
41828
41936
  case 7:
41829
41937
  (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41830
41938
  type: 'onWebPlanerSave',
41831
41939
  data: actBasket.getAsJson()
41832
41940
  });
41833
- return _context28.abrupt("break", 35);
41941
+ return _context29.abrupt("break", 35);
41834
41942
  case 9:
41835
41943
  (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41836
41944
  type: 'onWebPlanerShare',
41837
41945
  data: actBasket.getAsJson()
41838
41946
  });
41839
- return _context28.abrupt("break", 35);
41947
+ return _context29.abrupt("break", 35);
41840
41948
  case 11:
41841
41949
  (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41842
41950
  type: 'onRequestConsulation',
41843
41951
  data: actBasket.getAsJson()
41844
41952
  });
41845
- return _context28.abrupt("break", 35);
41953
+ return _context29.abrupt("break", 35);
41846
41954
  case 13:
41847
41955
  (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41848
41956
  type: 'onSave',
41849
41957
  data: actBasket.getAsJson()
41850
41958
  });
41851
- return _context28.abrupt("break", 35);
41959
+ return _context29.abrupt("break", 35);
41852
41960
  case 15:
41853
41961
  emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
41854
41962
  this.divaBasketHandler.emailConfig = undefined;
@@ -41883,51 +41991,51 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41883
41991
  type: 'onAddToBasket',
41884
41992
  data: actBasket.getAsJson()
41885
41993
  });
41886
- return _context28.abrupt("break", 35);
41994
+ return _context29.abrupt("break", 35);
41887
41995
  case 20:
41888
41996
  this.actSet().CatalogData;
41889
- _context28.next = 23;
41997
+ _context29.next = 23;
41890
41998
  return this.api.saveAsProduct(this.sets, actBasket);
41891
41999
  case 23:
41892
- products = _context28.sent;
42000
+ products = _context29.sent;
41893
42001
  (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41894
42002
  type: 'onAddToBasket',
41895
42003
  data: actBasket.getAsJson()
41896
42004
  });
41897
42005
  if (!products) {
41898
- _context28.next = 27;
42006
+ _context29.next = 27;
41899
42007
  break;
41900
42008
  }
41901
- return _context28.abrupt("return", products[0]);
42009
+ return _context29.abrupt("return", products[0]);
41902
42010
  case 27:
41903
42011
  case 28:
41904
42012
  (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41905
42013
  type: 'onAddToBasket',
41906
42014
  data: actBasket.getAsJson()
41907
42015
  });
41908
- return _context28.abrupt("break", 35);
42016
+ return _context29.abrupt("break", 35);
41909
42017
  case 30:
41910
42018
  (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
41911
42019
  type: 'onAddToBasket',
41912
42020
  data: actBasket.getAsJson()
41913
42021
  });
41914
42022
  this.openContactForm(this.divaBasketHandler);
41915
- return _context28.abrupt("break", 35);
42023
+ return _context29.abrupt("break", 35);
41916
42024
  case 33:
41917
42025
  (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
41918
42026
  type: event,
41919
42027
  data: actBasket.getAsJson()
41920
42028
  });
41921
- return _context28.abrupt("break", 35);
42029
+ return _context29.abrupt("break", 35);
41922
42030
  case 35:
41923
- return _context28.abrupt("return");
42031
+ return _context29.abrupt("return");
41924
42032
  case 36:
41925
42033
  case "end":
41926
- return _context28.stop();
42034
+ return _context29.stop();
41927
42035
  }
41928
- }, _callee28, this);
42036
+ }, _callee29, this);
41929
42037
  }));
41930
- function addToBasket(_x77) {
42038
+ function addToBasket(_x79) {
41931
42039
  return _addToBasket.apply(this, arguments);
41932
42040
  }
41933
42041
  return addToBasket;
@@ -42202,9 +42310,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42202
42310
  key: "initApiForLogicOnly",
42203
42311
  value: //just for testing purposes
42204
42312
  function () {
42205
- var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
42206
- return _regeneratorRuntime.wrap(function _callee29$(_context29) {
42207
- while (1) switch (_context29.prev = _context29.next) {
42313
+ var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
42314
+ return _regeneratorRuntime.wrap(function _callee30$(_context30) {
42315
+ while (1) switch (_context30.prev = _context30.next) {
42208
42316
  case 0:
42209
42317
  //empty services
42210
42318
  this.api = new DivaApiHandler(_objectSpread$5(_objectSpread$5({}, this.plannerConfig), {}, {
@@ -42217,17 +42325,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42217
42325
  jwt: jwt,
42218
42326
  apiKey: apiKey
42219
42327
  }), handler);
42220
- _context29.next = 3;
42328
+ _context30.next = 3;
42221
42329
  return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
42222
42330
  case 3:
42223
42331
  this.plannerHandler = new DivaPlannerHandler(true);
42224
42332
  case 4:
42225
42333
  case "end":
42226
- return _context29.stop();
42334
+ return _context30.stop();
42227
42335
  }
42228
- }, _callee29, this);
42336
+ }, _callee30, this);
42229
42337
  }));
42230
- function initApiForLogicOnly(_x78, _x79, _x80, _x81, _x82, _x83, _x84) {
42338
+ function initApiForLogicOnly(_x80, _x81, _x82, _x83, _x84, _x85, _x86) {
42231
42339
  return _initApiForLogicOnly.apply(this, arguments);
42232
42340
  }
42233
42341
  return initApiForLogicOnly;
@@ -42240,16 +42348,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42240
42348
  }, {
42241
42349
  key: "loadBasket",
42242
42350
  value: function () {
42243
- var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30() {
42244
- return _regeneratorRuntime.wrap(function _callee30$(_context30) {
42245
- while (1) switch (_context30.prev = _context30.next) {
42351
+ var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
42352
+ return _regeneratorRuntime.wrap(function _callee31$(_context31) {
42353
+ while (1) switch (_context31.prev = _context31.next) {
42246
42354
  case 0:
42247
- return _context30.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
42355
+ return _context31.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
42248
42356
  case 1:
42249
42357
  case "end":
42250
- return _context30.stop();
42358
+ return _context31.stop();
42251
42359
  }
42252
- }, _callee30, this);
42360
+ }, _callee31, this);
42253
42361
  }));
42254
42362
  function loadBasket() {
42255
42363
  return _loadBasket.apply(this, arguments);
@@ -42264,39 +42372,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42264
42372
  }, {
42265
42373
  key: "initBasket",
42266
42374
  value: function () {
42267
- var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites) {
42375
+ var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(init3D, ignoreFavorites) {
42268
42376
  var initSetState, set, basket;
42269
- return _regeneratorRuntime.wrap(function _callee31$(_context31) {
42270
- while (1) switch (_context31.prev = _context31.next) {
42377
+ return _regeneratorRuntime.wrap(function _callee32$(_context32) {
42378
+ while (1) switch (_context32.prev = _context32.next) {
42271
42379
  case 0:
42272
42380
  this.divaNr = this.divaBasketHandler.actDivaNr;
42273
42381
  initSetState = this.getInitStateForSet(!init3D);
42274
42382
  this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
42275
- _context31.next = 5;
42383
+ _context32.next = 5;
42276
42384
  return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
42277
42385
  case 5:
42278
42386
  //TODO check if when basket gets repaired the product match gets called
42279
42387
  set = this.actSet();
42280
42388
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
42281
42389
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
42282
- _context31.next = 10;
42390
+ _context32.next = 10;
42283
42391
  break;
42284
42392
  }
42285
- _context31.next = 10;
42393
+ _context32.next = 10;
42286
42394
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
42287
42395
  case 10:
42288
- _context31.next = 12;
42396
+ _context32.next = 12;
42289
42397
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
42290
42398
  case 12:
42291
- basket = _context31.sent;
42292
- return _context31.abrupt("return", basket);
42399
+ basket = _context32.sent;
42400
+ return _context32.abrupt("return", basket);
42293
42401
  case 14:
42294
42402
  case "end":
42295
- return _context31.stop();
42403
+ return _context32.stop();
42296
42404
  }
42297
- }, _callee31, this);
42405
+ }, _callee32, this);
42298
42406
  }));
42299
- function initBasket(_x85, _x86) {
42407
+ function initBasket(_x87, _x88) {
42300
42408
  return _initBasket.apply(this, arguments);
42301
42409
  }
42302
42410
  return initBasket;
@@ -42310,21 +42418,21 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42310
42418
  }, {
42311
42419
  key: "getValidVariantsLength",
42312
42420
  value: function () {
42313
- var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
42421
+ var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33() {
42314
42422
  var set;
42315
- return _regeneratorRuntime.wrap(function _callee32$(_context32) {
42316
- while (1) switch (_context32.prev = _context32.next) {
42423
+ return _regeneratorRuntime.wrap(function _callee33$(_context33) {
42424
+ while (1) switch (_context33.prev = _context33.next) {
42317
42425
  case 0:
42318
42426
  set = this.actSet();
42319
- _context32.next = 3;
42427
+ _context33.next = 3;
42320
42428
  return favoritesHandlerInstance.getValidVariants(set, true);
42321
42429
  case 3:
42322
- return _context32.abrupt("return", _context32.sent.length);
42430
+ return _context33.abrupt("return", _context33.sent.length);
42323
42431
  case 4:
42324
42432
  case "end":
42325
- return _context32.stop();
42433
+ return _context33.stop();
42326
42434
  }
42327
- }, _callee32, this);
42435
+ }, _callee33, this);
42328
42436
  }));
42329
42437
  function getValidVariantsLength() {
42330
42438
  return _getValidVariantsLength.apply(this, arguments);
@@ -42334,46 +42442,46 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42334
42442
  }, {
42335
42443
  key: "handleFavorites",
42336
42444
  value: function () {
42337
- var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(mode) {
42445
+ var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(mode) {
42338
42446
  var _this5 = this;
42339
42447
  var set, i;
42340
- return _regeneratorRuntime.wrap(function _callee33$(_context33) {
42341
- while (1) switch (_context33.prev = _context33.next) {
42448
+ return _regeneratorRuntime.wrap(function _callee34$(_context34) {
42449
+ while (1) switch (_context34.prev = _context34.next) {
42342
42450
  case 0:
42343
42451
  set = this.actSet();
42344
42452
  i = 0;
42345
42453
  case 2:
42346
42454
  if (!favoritesHandlerInstance.IsCalcForSummary) {
42347
- _context33.next = 11;
42455
+ _context34.next = 11;
42348
42456
  break;
42349
42457
  }
42350
- _context33.next = 5;
42458
+ _context34.next = 5;
42351
42459
  return DivaUtils.Sleep(200);
42352
42460
  case 5:
42353
42461
  i++;
42354
42462
  if (!(i > 1000)) {
42355
- _context33.next = 9;
42463
+ _context34.next = 9;
42356
42464
  break;
42357
42465
  }
42358
42466
  LOG$1.error(new DivaError('error on generating Variants of Summary'));
42359
- return _context33.abrupt("break", 11);
42467
+ return _context34.abrupt("break", 11);
42360
42468
  case 9:
42361
- _context33.next = 2;
42469
+ _context34.next = 2;
42362
42470
  break;
42363
42471
  case 11:
42364
- _context33.next = 13;
42472
+ _context34.next = 13;
42365
42473
  return favoritesHandlerInstance.handleFavorites(set, mode, this.divaBasketHandler.actBasket, this.saveToBasketWrapper.bind(this), this.doConfigure.bind(this), function () {
42366
42474
  return _this5.update2DGrid(set);
42367
42475
  }, this.actions);
42368
42476
  case 13:
42369
- return _context33.abrupt("return", _context33.sent);
42477
+ return _context34.abrupt("return", _context34.sent);
42370
42478
  case 14:
42371
42479
  case "end":
42372
- return _context33.stop();
42480
+ return _context34.stop();
42373
42481
  }
42374
- }, _callee33, this);
42482
+ }, _callee34, this);
42375
42483
  }));
42376
- function handleFavorites(_x87) {
42484
+ function handleFavorites(_x89) {
42377
42485
  return _handleFavorites.apply(this, arguments);
42378
42486
  }
42379
42487
  return handleFavorites;
@@ -42386,48 +42494,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42386
42494
  }, {
42387
42495
  key: "initSapOrderLinesFromBasket",
42388
42496
  value: function () {
42389
- var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(divaNr, init3D, onlyLoadOldBakset) {
42497
+ var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(divaNr, init3D, onlyLoadOldBakset) {
42390
42498
  var result, oldBasket, basket;
42391
- return _regeneratorRuntime.wrap(function _callee34$(_context34) {
42392
- while (1) switch (_context34.prev = _context34.next) {
42499
+ return _regeneratorRuntime.wrap(function _callee35$(_context35) {
42500
+ while (1) switch (_context35.prev = _context35.next) {
42393
42501
  case 0:
42394
42502
  if (divaNr) this.divaBasketHandler.updateDivaNrInBasket(divaNr);
42395
- _context34.next = 3;
42503
+ _context35.next = 3;
42396
42504
  return this.loadBasket();
42397
42505
  case 3:
42398
- result = _context34.sent;
42506
+ result = _context35.sent;
42399
42507
  if (!onlyLoadOldBakset) {
42400
- _context34.next = 6;
42508
+ _context35.next = 6;
42401
42509
  break;
42402
42510
  }
42403
- return _context34.abrupt("return", {
42511
+ return _context35.abrupt("return", {
42404
42512
  oldBasket: new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket))),
42405
42513
  cache: {}
42406
42514
  });
42407
42515
  case 6:
42408
42516
  if (!(result === false)) {
42409
- _context34.next = 8;
42517
+ _context35.next = 8;
42410
42518
  break;
42411
42519
  }
42412
42520
  throw new Error('Could not load basket! ' + divaNr);
42413
42521
  case 8:
42414
42522
  oldBasket = new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket)));
42415
- _context34.next = 11;
42523
+ _context35.next = 11;
42416
42524
  return this.initBasket(init3D);
42417
42525
  case 11:
42418
- basket = _context34.sent;
42419
- return _context34.abrupt("return", {
42526
+ basket = _context35.sent;
42527
+ return _context35.abrupt("return", {
42420
42528
  basket: basket,
42421
42529
  oldBasket: oldBasket,
42422
42530
  cache: this.api.getJsonDataCache()
42423
42531
  });
42424
42532
  case 13:
42425
42533
  case "end":
42426
- return _context34.stop();
42534
+ return _context35.stop();
42427
42535
  }
42428
- }, _callee34, this);
42536
+ }, _callee35, this);
42429
42537
  }));
42430
- function initSapOrderLinesFromBasket(_x88, _x89, _x90) {
42538
+ function initSapOrderLinesFromBasket(_x90, _x91, _x92) {
42431
42539
  return _initSapOrderLinesFromBasket.apply(this, arguments);
42432
42540
  }
42433
42541
  return initSapOrderLinesFromBasket;
@@ -43084,6 +43192,7 @@ var Grid = /*#__PURE__*/function () {
43084
43192
  //all the different accessoires selectable to place in the grid. can be absolute defined in grid.ArticleRelations or can change due to the heightGridCellCountOnRule where we rule is depending on the current configuration of the article.
43085
43193
  _defineProperty(this, "articleRelations", void 0);
43086
43194
  _defineProperty(this, "articleRelationsForOtherGroups", void 0);
43195
+ _defineProperty(this, "disableCellsByRules", void 0);
43087
43196
  //if in theis grid an shelfaccessoire is planned laod this article aswell
43088
43197
  _defineProperty(this, "montageOptions", void 0);
43089
43198
  //disableCellsByFreeText
@@ -43114,6 +43223,7 @@ var Grid = /*#__PURE__*/function () {
43114
43223
  this.showOnRule = grid.ShowOnRule;
43115
43224
  this.montageOptions = grid.MontageOptions;
43116
43225
  this.disableCellsByMeasures = grid.DisableCellsByMeasures;
43226
+ this.disableCellsByRules = grid.DisableCellsByRules;
43117
43227
  this.visitOption = grid.VisitOption;
43118
43228
  this.shelfId = 'SHELFARTICLE_' + article.basketId + '_' + index;
43119
43229
  this.heightGridCellCountOnRule = data.ShelfPlanner[index].HeightGridCellCountOnRule;
@@ -44082,6 +44192,21 @@ var Grid = /*#__PURE__*/function () {
44082
44192
  }
44083
44193
  return count;
44084
44194
  }
44195
+ }, {
44196
+ key: "getDisabledCellsByRule",
44197
+ value: function getDisabledCellsByRule() {
44198
+ var _this$disableCellsByR;
44199
+ var cellsToDisable = [];
44200
+ if (!((_this$disableCellsByR = this.disableCellsByRules) !== null && _this$disableCellsByR !== void 0 && _this$disableCellsByR.length)) return cellsToDisable;
44201
+ var article = this.article;
44202
+ for (var i = 0; i < this.disableCellsByRules.length; i++) {
44203
+ var rule = this.disableCellsByRules[i];
44204
+ if (!rule.rule || this.article.evalRule(DivaUtils.getRuleByFormula(rule.rule, this.article.catalogCodex, article.CatalogData.multiselectOptions))) {
44205
+ cellsToDisable = [].concat(_toConsumableArray(cellsToDisable), _toConsumableArray(rule.cells));
44206
+ }
44207
+ }
44208
+ return cellsToDisable;
44209
+ }
44085
44210
  }, {
44086
44211
  key: "ShelfId",
44087
44212
  get: function get() {
@@ -59775,8 +59900,6 @@ var a$3 = {
59775
59900
  },
59776
59901
  settings: {
59777
59902
  dontLoadAdditionalModelInfos: true,
59778
- identifier: 'Seller',
59779
- type: 'DIVA_WEBPLANNER',
59780
59903
  configParams: {
59781
59904
  mediaServiceApiKey: '620e074df81de00012ef47ed.wUyoXTbh4tR3DklrzvvdxFveVK9zcj4H',
59782
59905
  // api2devKey: '627b71be68f4c30011dd25e2.I2RdwvdHG4gruMNr6l810tTU5x7afNMm',
@@ -59836,13 +59959,10 @@ var a$2 = {
59836
59959
  }
59837
59960
  },
59838
59961
  settings: {
59839
- identifier: 'PfisterWebPlanner',
59840
- type: 'DIVA_WEBPLANNER',
59841
59962
  configParams: {
59842
59963
  mediaServiceApiKey: '5fb62c8251d161001142faec.TIxFhaibnlLORFzuRO0sqmYV6EnStvIg',
59843
59964
  apiKey: '628c84397f7ae3001155004a.ccRvikkGQZqmVHUHIwUDDSIBmrSBm/3V'
59844
59965
  },
59845
- description: '',
59846
59966
  applicationEnvironment: 'SELLER',
59847
59967
  priceInfo: 'LAYOUT_LISTPRICE',
59848
59968
  PriceFormat: {
@@ -59909,26 +60029,11 @@ var a$1 = {
59909
60029
  }
59910
60030
  },
59911
60031
  settings: {
59912
- identifier: 'PfisterWebPlanner',
59913
- type: 'DIVA_WEBPLANNER',
59914
60032
  configParams: {
59915
60033
  mediaServiceApiKey: '5fb396c986d73f0011e1c482.WKxhYaXxMhn9SmPPAK6tZa4oFnFjlSux',
59916
60034
  apiKey: '628c849377593d00119a87a0.CKOGmsd6LOjWGZtYk+9gB138lXCoOVBn'
59917
60035
  },
59918
- description: '',
59919
60036
  applicationEnvironment: 'SELLER',
59920
- priceInfo: 'LAYOUT_LISTPRICE',
59921
- PriceFormat: {
59922
- currency: 'CHF',
59923
- spacing: true,
59924
- currencyPosition: 'LEFT',
59925
- showDecimals: 'IF_NEEDED',
59926
- thousandSeparator: "'",
59927
- decimalSeparator: '.',
59928
- decimalsDigits: 2,
59929
- addIfNoDecimal: '.–'
59930
- },
59931
- divaMediaServiceApiKey: '5fb396c986d73f0011e1c482.WKxhYaXxMhn9SmPPAK6tZa4oFnFjlSux',
59932
60037
  diva3dServerMode: 'SignalR',
59933
60038
  diva3dRenderGroup: 'QDIVA' // "QDIVA2"
59934
60039
  },