@crystaldesign/web-planner-logic 25.2.0-beta.37 → 25.2.0-beta.39

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 (58) hide show
  1. package/build/cjs/{DivaBoxPlanner-9af577c0.js → DivaBoxPlanner-36e6dbff.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-ee35bfea.js → DivaStandardPlanner-2e4e37dc.js} +2 -2
  3. package/build/cjs/{DoorPlanner-12087488.js → DoorPlanner-f92a3ca7.js} +63 -15
  4. package/build/cjs/{Host3DSignalR-9f5f0d8d.js → Host3DSignalR-31492dfb.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-1b0af4b7.js → LiviqueWWSHandler-71f569e4.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-0179eb08.js → PfisterWWSHandler-e4aafb4d.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-d653a179.js → PlannerHandler2D-74f64cf0.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-ae4052f6.js → SeriousBasketHandler-7b7bf8c3.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-b3a9e5b2.js → ShelfPlanner-4ae5d391.js} +86 -56
  10. package/build/cjs/{StandardWWSHandler-cfc6a796.js → StandardWWSHandler-45c6e3a5.js} +1 -1
  11. package/build/cjs/{index-d7b37252.js → index-7f718c86.js} +1058 -871
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-7c40aa5b.js → DivaBoxPlanner-6b469169.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-5c6cc87c.js → DivaStandardPlanner-03d4d99d.js} +2 -2
  15. package/build/esm/{DoorPlanner-09e8a29d.js → DoorPlanner-c16219e9.js} +63 -15
  16. package/build/esm/{Host3DSignalR-85c6a251.js → Host3DSignalR-85e7de8b.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-aa91694f.js → LiviqueWWSHandler-b9215ed8.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-f5c82bab.js → PfisterWWSHandler-157299aa.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-36f1f7c6.js → PlannerHandler2D-d24ed39d.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-9ca925b6.js → SeriousBasketHandler-ac28da61.js} +1 -1
  21. package/build/esm/{ShelfPlanner-3c55864b.js → ShelfPlanner-1f12094a.js} +86 -56
  22. package/build/esm/{StandardWWSHandler-d3611d24.js → StandardWWSHandler-a41bada8.js} +1 -1
  23. package/build/esm/{index-0af027b3.js → index-6326b8b3.js} +1058 -871
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/API/TemplateConfigType.d.ts +1 -1
  26. package/build/types/web-planner-logic/src/interface/API/TemplateConfigType.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts +1 -0
  28. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/DoorPlanner/index.d.ts +1 -1
  30. package/build/types/web-planner-logic/src/interface/DoorPlanner/index.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +2 -0
  32. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts +7 -0
  34. package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +3 -2
  36. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +7 -4
  38. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  40. package/build/types/web-planner-logic/src/logic/ConfigTree/DoorPlanner/Door.d.ts +1 -1
  41. package/build/types/web-planner-logic/src/logic/ConfigTree/DoorPlanner/Door.d.ts.map +1 -1
  42. package/build/types/web-planner-logic/src/logic/ConfigTree/DoorPlanner/DoorPlanner.d.ts +11 -3
  43. package/build/types/web-planner-logic/src/logic/ConfigTree/DoorPlanner/DoorPlanner.d.ts.map +1 -1
  44. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts +4 -2
  45. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
  46. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts +10 -1
  47. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -1
  48. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +1 -1
  49. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  50. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +1 -1
  51. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  52. package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts +1 -0
  53. package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts.map +1 -1
  54. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +2 -0
  55. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
  56. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +2 -0
  57. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
  58. package/package.json +2 -2
@@ -1560,6 +1560,16 @@ var ArticleOptionData = /*#__PURE__*/function () {
1560
1560
  get: function get() {
1561
1561
  return this.opt.catalogOPT.onlyVisibleIfNotDocked;
1562
1562
  }
1563
+ }, {
1564
+ key: "onlyVisibleIfConfigSingle",
1565
+ get: function get() {
1566
+ return this.opt.catalogOPT.onlyVisibleIfConfigSingle;
1567
+ }
1568
+ }, {
1569
+ key: "onlyVisibleIfConfigAll",
1570
+ get: function get() {
1571
+ return this.opt.catalogOPT.onlyVisibleIfConfigAll;
1572
+ }
1563
1573
  }, {
1564
1574
  key: "isDefaultValueForOptions",
1565
1575
  get: function get() {
@@ -16533,6 +16543,9 @@ var CatalogArticleData = /*#__PURE__*/function () {
16533
16543
  case 'HAS3D':
16534
16544
  this.catalogArticle.isVisualized = prop.Value;
16535
16545
  break;
16546
+ case 'OPTIONS_FOR_PRINT':
16547
+ this.catalogArticle.optionsForPrint = prop.Value.split(';');
16548
+ break;
16536
16549
  default:
16537
16550
  if (_key.includes('__')) break;
16538
16551
  var values = prop.Value.split(';');
@@ -16968,6 +16981,11 @@ var CatalogArticleData = /*#__PURE__*/function () {
16968
16981
  get: function get() {
16969
16982
  return this.catalogArticle.usePRGasOPVArticleNr;
16970
16983
  }
16984
+ }, {
16985
+ key: "optionsForPrint",
16986
+ get: function get() {
16987
+ return this.catalogArticle.optionsForPrint;
16988
+ }
16971
16989
  //tabGroup can include an optionCodex to reference a tabgroup or a tabgroup -> this was made for translation purposes
16972
16990
  }, {
16973
16991
  key: "tabGroup",
@@ -17968,6 +17986,12 @@ var OptionCatalogData = /*#__PURE__*/function () {
17968
17986
  case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
17969
17987
  this.opt.onlyVisibleIfNotDocked = prop.Value;
17970
17988
  break;
17989
+ case 'ONLY_VIDSIBLE_IF_CONFIG_SINGLE':
17990
+ this.opt.onlyVisibleIfConfigSingle = prop.Value;
17991
+ break;
17992
+ case 'ONLY_VIDSIBLE_IF_CONFIG_ALL':
17993
+ this.opt.onlyVisibleIfConfigAll = prop.Value;
17994
+ break;
17971
17995
  case 'ISDEFAULTVALUEFOROPTIONS':
17972
17996
  this.opt.isDefaultValueForOptions = prop.Value;
17973
17997
  break;
@@ -18129,6 +18153,16 @@ var OptionCatalogData = /*#__PURE__*/function () {
18129
18153
  // deprecated: was used for Bail amalfi accessoires
18130
18154
  return this.opt.onlyVisibleIfNotDocked;
18131
18155
  }
18156
+ }, {
18157
+ key: "onlyVisibleIfConfigSingle",
18158
+ get: function get() {
18159
+ return this.opt.onlyVisibleIfConfigSingle;
18160
+ }
18161
+ }, {
18162
+ key: "onlyVisibleIfConfigAll",
18163
+ get: function get() {
18164
+ return this.opt.onlyVisibleIfConfigAll;
18165
+ }
18132
18166
  }, {
18133
18167
  key: "isDefaultValueForOptions",
18134
18168
  get: function get() {
@@ -20013,9 +20047,11 @@ var catalogHandlerInstance = new DivaCatalogHandler();
20013
20047
  function ownKeys$f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20014
20048
  function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20015
20049
  var ArticleOptionStateData = /*#__PURE__*/function () {
20016
- function ArticleOptionStateData(option, defaultOPV, useIsOptionDefinedWarning) {
20050
+ function ArticleOptionStateData(option, getIsConfigSingle, defaultOPV, useIsOptionDefinedWarning) {
20017
20051
  _classCallCheck(this, ArticleOptionStateData);
20018
20052
  _defineProperty(this, "articleOptionState", void 0);
20053
+ _defineProperty(this, "getIsConfigSingle", void 0);
20054
+ this.getIsConfigSingle = getIsConfigSingle;
20019
20055
  this.articleOptionState = {
20020
20056
  option: option,
20021
20057
  name: '',
@@ -20272,7 +20308,7 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20272
20308
  key: "isDoShow",
20273
20309
  get: function get() {
20274
20310
  var _this$val4;
20275
- return this.articleOptionState.doShow && (!((_this$val4 = this.val) !== null && _this$val4 !== void 0 && _this$val4.isNotRelevant) || this.visibleCount > 1);
20311
+ return this.articleOptionState.doShow && (!((_this$val4 = this.val) !== null && _this$val4 !== void 0 && _this$val4.isNotRelevant) || this.visibleCount > 1) && (!this.option.onlyVisibleIfConfigAll || !this.getIsConfigSingle()) && (!this.option.onlyVisibleIfConfigSingle || this.getIsConfigSingle());
20276
20312
  },
20277
20313
  set: function set(doShow) {
20278
20314
  this.articleOptionState.doShow = doShow;
@@ -20652,8 +20688,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20652
20688
  }
20653
20689
  }, {
20654
20690
  key: "cloneOptionState",
20655
- value: function cloneOptionState() {
20656
- var clonedOps = new ArticleOptionStateData(this.option);
20691
+ value: function cloneOptionState(getIsConfigSingle) {
20692
+ var clonedOps = new ArticleOptionStateData(this.option, getIsConfigSingle);
20657
20693
  clonedOps.articleOptionState = _objectSpread$f(_objectSpread$f({}, this.articleOptionState), {}, {
20658
20694
  imageOPVs: _objectSpread$f({}, this.articleOptionState.imageOPVs),
20659
20695
  visibleOPVs: _objectSpread$f({}, this.articleOptionState.visibleOPVs),
@@ -20681,6 +20717,9 @@ var DivaArticle = /*#__PURE__*/function () {
20681
20717
  _defineProperty(this, "actPlannerData", void 0);
20682
20718
  //Hier steht die aktuelle Konfiguration
20683
20719
  _defineProperty(this, "decisionDebugStacks", []);
20720
+ _defineProperty(this, "getIsConfigSingle", function () {
20721
+ return _this.set.configSingle;
20722
+ });
20684
20723
  _defineProperty(this, "getPreviousPartlistArticle", function (articleCodex) {
20685
20724
  var _this$article$previou;
20686
20725
  var prevPartlistArticles = (_this$article$previou = _this.article.previousPartlistArticles) !== null && _this$article$previou !== void 0 ? _this$article$previou : {};
@@ -21162,9 +21201,10 @@ var DivaArticle = /*#__PURE__*/function () {
21162
21201
  key: "getArticleOptionStatesWithOptionsForPrint",
21163
21202
  value: function getArticleOptionStatesWithOptionsForPrint() {
21164
21203
  var opsObj = _objectSpread$e({}, this.articleOptionStates);
21165
- if (this.article.optionsForPrint) {
21166
- for (var i = 0; i < this.article.optionsForPrint.length; i++) {
21167
- var ops = this.getArticleOptionState(this.article.optionsForPrint[i]);
21204
+ var optionsForPrint = this.optionsForPrint;
21205
+ if (optionsForPrint.length) {
21206
+ for (var i = 0; i < optionsForPrint.length; i++) {
21207
+ var ops = this.getArticleOptionState(optionsForPrint[i], undefined, true);
21168
21208
  if (ops) opsObj[ops.optionCodex] = ops;
21169
21209
  }
21170
21210
  }
@@ -21247,9 +21287,9 @@ var DivaArticle = /*#__PURE__*/function () {
21247
21287
  }, {
21248
21288
  key: "name",
21249
21289
  get: function get() {
21250
- var _this$article$actDesc, _this$article$options;
21290
+ var _this$article$actDesc, _this$optionsForPrint;
21251
21291
  var ret = (_this$article$actDesc = this.article.actDescription) !== null && _this$article$actDesc !== void 0 ? _this$article$actDesc : this.catalogArticleName;
21252
- if (this.RetailPrefix != 'SAP' && this.article.ruleDesc && this.article.ruleDesc != '' && !((_this$article$options = this.article.optionsForPrint) !== null && _this$article$options !== void 0 && _this$article$options.length)) {
21292
+ if (this.RetailPrefix != 'SAP' && this.article.ruleDesc && this.article.ruleDesc != '' && !((_this$optionsForPrint = this.optionsForPrint) !== null && _this$optionsForPrint !== void 0 && _this$optionsForPrint.length)) {
21253
21293
  var ruleDesc = this.article.ruleDesc;
21254
21294
  if (!this.set.api.ruleDescWithoutParenthesis()) ruleDesc = '(' + ruleDesc + ')';
21255
21295
  ret += ' ' + (this.CatalogData.addNewLineBeforRuleDesc ? this.set.api.ruleDescSeperator() : '') + ruleDesc;
@@ -21286,7 +21326,10 @@ var DivaArticle = /*#__PURE__*/function () {
21286
21326
  }, {
21287
21327
  key: "optionsForPrint",
21288
21328
  get: function get() {
21289
- return this.article.optionsForPrint;
21329
+ var _this$article$options, _this$catalogArticle$;
21330
+ return [].concat(_toConsumableArray((_this$article$options = this.article.optionsForPrint) !== null && _this$article$options !== void 0 ? _this$article$options : []), _toConsumableArray((_this$catalogArticle$ = this.catalogArticle.optionsForPrint) !== null && _this$catalogArticle$ !== void 0 ? _this$catalogArticle$ : [])).map(function (o) {
21331
+ return 'OPT' + o;
21332
+ });
21290
21333
  }
21291
21334
  }, {
21292
21335
  key: "image",
@@ -21403,19 +21446,19 @@ var DivaArticle = /*#__PURE__*/function () {
21403
21446
  }
21404
21447
  }, {
21405
21448
  key: "getArticleOptionState",
21406
- value: function getArticleOptionState(codex, from) {
21449
+ value: function getArticleOptionState(codex, from, checkOnAccessoireParent) {
21407
21450
  var _this$partListParentA10, _this$partListParentA11, _this$partlistArticle3;
21408
21451
  if (this.articleOptionStatesData[codex]) {
21409
21452
  return this.articleOptionStatesData[codex];
21410
21453
  }
21411
- if (from !== ((_this$partListParentA10 = this.partListParentArticle) === null || _this$partListParentA10 === void 0 ? void 0 : _this$partListParentA10.basketId) && (_this$partListParentA11 = this.partListParentArticle) !== null && _this$partListParentA11 !== void 0 && _this$partListParentA11.getArticleOptionState(codex)) {
21412
- return this.partListParentArticle.getArticleOptionState(codex, this.basketId);
21454
+ if (from !== ((_this$partListParentA10 = this.partListParentArticle) === null || _this$partListParentA10 === void 0 ? void 0 : _this$partListParentA10.basketId) && (_this$partListParentA11 = this.partListParentArticle) !== null && _this$partListParentA11 !== void 0 && _this$partListParentA11.getArticleOptionState(codex, undefined, checkOnAccessoireParent)) {
21455
+ return this.partListParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
21413
21456
  }
21414
21457
  if (Object.keys((_this$partlistArticle3 = this.partlistArticles) !== null && _this$partlistArticle3 !== void 0 ? _this$partlistArticle3 : {}).length > 0) {
21415
21458
  for (var key in this.partlistArticles) {
21416
21459
  if (from === key) continue;
21417
21460
  var partlistArticle = this.partlistArticles[key];
21418
- var ops = partlistArticle.getArticleOptionState(codex, this.basketId);
21461
+ var ops = partlistArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
21419
21462
  if (ops) return ops;
21420
21463
  }
21421
21464
  }
@@ -21434,6 +21477,10 @@ var DivaArticle = /*#__PURE__*/function () {
21434
21477
  }
21435
21478
  }
21436
21479
  }
21480
+ if (checkOnAccessoireParent && this.accessoireParentArticle) {
21481
+ var _ops2 = this.accessoireParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
21482
+ if (_ops2) return _ops2;
21483
+ }
21437
21484
  return this.articleOptionStatesData[codex];
21438
21485
  //kann sein dass die OCD der Option dem codex entspricht
21439
21486
  }
@@ -21648,7 +21695,7 @@ var DivaArticle = /*#__PURE__*/function () {
21648
21695
  }, {
21649
21696
  key: "dockedOnAV",
21650
21697
  value: function dockedOnAV(type) {
21651
- return articleHandlerInstance.dockedOnAV(type, this);
21698
+ return articleHandlerInstance.dockedOnAV('AV' + type, this);
21652
21699
  }
21653
21700
  }, {
21654
21701
  key: "accessoireParentArticle",
@@ -22368,6 +22415,9 @@ var DivaArticle = /*#__PURE__*/function () {
22368
22415
  if (actArticleOptionState[refOptCodex].visibleOptionValues[_iKey]) {
22369
22416
  actArticleOptionState[refOptCodex].defaultOPV = curOpvValue;
22370
22417
  optToChange[refOptCodex] = curOpvValue;
22418
+ if (optToChange[opt + '_val']) {
22419
+ optToChange[refOptCodex + '_val'] = optToChange[opt + '_val'];
22420
+ }
22371
22421
  opvIsValid = true;
22372
22422
  }
22373
22423
  break;
@@ -22491,9 +22541,9 @@ var DivaArticle = /*#__PURE__*/function () {
22491
22541
  }
22492
22542
  //fallback for pfister classification usecase
22493
22543
  for (var _iKey2 in this.articleOptionStates) {
22494
- var _ops2 = this.articleOptionStates[_iKey2];
22495
- if (_ops2.option.ocd == optionCodex && optionCodex !== null && optionCodex !== void 0 && optionCodex.startsWith('OPTOPT') && (parentOptionCodex == '' || parentOptionCodex == _ops2.option.parentOptionCodex)) {
22496
- return this.checkOptionSearchOPV(_ops2.option, optionValueCodex, ret);
22544
+ var _ops3 = this.articleOptionStates[_iKey2];
22545
+ if (_ops3.option.ocd == optionCodex && optionCodex !== null && optionCodex !== void 0 && optionCodex.startsWith('OPTOPT') && (parentOptionCodex == '' || parentOptionCodex == _ops3.option.parentOptionCodex)) {
22546
+ return this.checkOptionSearchOPV(_ops3.option, optionValueCodex, ret);
22497
22547
  }
22498
22548
  }
22499
22549
  }
@@ -22581,15 +22631,15 @@ var DivaArticle = /*#__PURE__*/function () {
22581
22631
  value: function validateAndSetNewConfigValues(newConfigValues) {
22582
22632
  var freeTextValues = {};
22583
22633
  for (var key in newConfigValues) {
22584
- var _ops3, _ops4, _newConfigValues$key;
22634
+ var _ops4, _ops5, _newConfigValues$key;
22585
22635
  var ops = this.getArticleOptionState(key);
22586
22636
  var _this$parentOptionCod3 = this.parentOptionCodex(key),
22587
22637
  optionCodex = _this$parentOptionCod3.optionCodex,
22588
22638
  partenOptionCodex = _this$parentOptionCod3.partenOptionCodex;
22589
- if ((_ops3 = ops) !== null && _ops3 !== void 0 && _ops3.isMultiselect) {
22639
+ if ((_ops4 = ops) !== null && _ops4 !== void 0 && _ops4.isMultiselect) {
22590
22640
  ops = this.handleMultiselect(ops, newConfigValues, key);
22591
22641
  }
22592
- if ((_ops4 = ops) !== null && _ops4 !== void 0 && _ops4.isFreeText) {
22642
+ if ((_ops5 = ops) !== null && _ops5 !== void 0 && _ops5.isFreeText) {
22593
22643
  this.handleFreeText(ops, newConfigValues, key, freeTextValues);
22594
22644
  }
22595
22645
  var opvCodex = (_newConfigValues$key = newConfigValues[key]) === null || _newConfigValues$key === void 0 ? void 0 : _newConfigValues$key.split(';')[0];
@@ -22600,8 +22650,8 @@ var DivaArticle = /*#__PURE__*/function () {
22600
22650
  var myFreeText = foundItem.opv.isFreeText ? newConfigValues[optionCodex + '_val'] : undefined;
22601
22651
  this.updateArtOPV(foundItem.opv, foundItem.opt.codex, this.getArticleOptionState(foundItem.opt.codex), myFreeText);
22602
22652
  } else {
22603
- var _ops5;
22604
- if (ops && !((_ops5 = ops) !== null && _ops5 !== void 0 && _ops5.isFreeText)) {
22653
+ var _ops6;
22654
+ if (ops && !((_ops6 = ops) !== null && _ops6 !== void 0 && _ops6.isFreeText)) {
22605
22655
  // to initialize freetexts where the freetext is not the only selectable opv in the options
22606
22656
  this.checkIfSelectableOpvIsFreetext(ops, opvCodex, newConfigValues);
22607
22657
  }
@@ -23066,7 +23116,7 @@ var DivaArticle = /*#__PURE__*/function () {
23066
23116
  //die Klasse ArticleOptionState wird einfach neu initialisiert
23067
23117
  var oldOPS = this.getArticleOptionState(optionCodex);
23068
23118
  var option = oldOPS.option;
23069
- var optionState = new ArticleOptionStateData(option, oldOPS.defaultOPV, (_this$set$ViewConfig2 = this.set.ViewConfig) === null || _this$set$ViewConfig2 === void 0 ? void 0 : _this$set$ViewConfig2.useIsOptionDefinedWarning);
23119
+ var optionState = new ArticleOptionStateData(option, this.getIsConfigSingle, oldOPS.defaultOPV, (_this$set$ViewConfig2 = this.set.ViewConfig) === null || _this$set$ViewConfig2 === void 0 ? void 0 : _this$set$ViewConfig2.useIsOptionDefinedWarning);
23070
23120
  optionState.isDisabled = true;
23071
23121
  this.uploadOptionState(optionState);
23072
23122
  }
@@ -23135,9 +23185,7 @@ var DivaArticle = /*#__PURE__*/function () {
23135
23185
  _this3 = this;
23136
23186
  var allDecisions = this.article.catalogArticle.articleDecisions;
23137
23187
  var decisions = myPartListPos.PartListPosDecisionsAndPosCounts;
23138
- var optionsForPrint = (_myPartListPos$Option = myPartListPos.OptionsForPrint) === null || _myPartListPos$Option === void 0 ? void 0 : _myPartListPos$Option.split(';').map(function (o) {
23139
- return 'OPT' + o;
23140
- });
23188
+ var optionsForPrint = (_myPartListPos$Option = myPartListPos.OptionsForPrint) === null || _myPartListPos$Option === void 0 ? void 0 : _myPartListPos$Option.split(';');
23141
23189
  var optionImgForPrint = myPartListPos.OptionImgForPrint ? 'OPT' + myPartListPos.OptionImgForPrint : undefined;
23142
23190
  var _loop = function _loop() {
23143
23191
  var myRuleDesc = '';
@@ -23509,13 +23557,13 @@ var DivaArticle = /*#__PURE__*/function () {
23509
23557
  for (var f = 0; f < doAlsoCheckOPTs.length; f++) {
23510
23558
  var _myDoc$Row;
23511
23559
  var checkOptX = doAlsoCheckOPTs[f];
23512
- var _ops6 = this.getArticleOptionState(checkOptX);
23513
- if (_ops6 && (_myDoc$Row = myDoc.Row) !== null && _myDoc$Row !== void 0 && _myDoc$Row[checkOptX] && _ops6.valCodex && !myDoc.Row[checkOptX].includes(_ops6.valCodex)) {
23560
+ var _ops7 = this.getArticleOptionState(checkOptX);
23561
+ if (_ops7 && (_myDoc$Row = myDoc.Row) !== null && _myDoc$Row !== void 0 && _myDoc$Row[checkOptX] && _ops7.valCodex && !myDoc.Row[checkOptX].includes(_ops7.valCodex)) {
23514
23562
  if (!myDoc.Row[checkOptX].find(function (o) {
23515
23563
  return !o.startsWith('!');
23516
23564
  })) {
23517
23565
  //all is inverted
23518
- if (myDoc.Row[checkOptX].includes('!' + _ops6.valCodex)) {
23566
+ if (myDoc.Row[checkOptX].includes('!' + _ops7.valCodex)) {
23519
23567
  doUseDoc = false;
23520
23568
  break;
23521
23569
  }
@@ -23939,9 +23987,9 @@ var DivaArticle = /*#__PURE__*/function () {
23939
23987
  }, {
23940
23988
  key: "updateShelfPlannerState",
23941
23989
  value: function () {
23942
- var _updateShelfPlannerState = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
23990
+ var _updateShelfPlannerState = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(variantValues) {
23943
23991
  var _this$doorPlanner;
23944
- var j3D, _yield$import, ShelfPlanner;
23992
+ var j3D, _yield$import, ShelfPlanner, doorPlanner;
23945
23993
  return _regeneratorRuntime.wrap(function _callee$(_context) {
23946
23994
  while (1) switch (_context.prev = _context.next) {
23947
23995
  case 0:
@@ -23951,51 +23999,59 @@ var DivaArticle = /*#__PURE__*/function () {
23951
23999
  break;
23952
24000
  }
23953
24001
  _context.next = 4;
23954
- return import('./ShelfPlanner-3c55864b.js');
24002
+ return import('./ShelfPlanner-1f12094a.js');
23955
24003
  case 4:
23956
24004
  _yield$import = _context.sent;
23957
24005
  ShelfPlanner = _yield$import["default"];
23958
24006
  this.article.shelfPlanner = new ShelfPlanner(j3D, this);
23959
24007
  case 7:
23960
- if (j3D && j3D.Doors && !((_this$doorPlanner = this.doorPlanner) !== null && _this$doorPlanner !== void 0 && _this$doorPlanner.alreadyInitialized(this.basketId))) {
23961
- this.set.initializeDoorPlanner(j3D, this);
24008
+ if (!(j3D && (j3D.Doors || j3D.DoorsSwitcher) && !((_this$doorPlanner = this.doorPlanner) !== null && _this$doorPlanner !== void 0 && _this$doorPlanner.alreadyInitialized(this.basketId)))) {
24009
+ _context.next = 10;
24010
+ break;
24011
+ }
24012
+ _context.next = 10;
24013
+ return this.set.initializeDoorPlanner(j3D, this);
24014
+ case 10:
24015
+ doorPlanner = this.doorPlanner;
24016
+ if (doorPlanner) {
24017
+ doorPlanner.updateAfterConfigChanged();
23962
24018
  }
23963
24019
  if (!this.shelfPlanner) {
23964
- _context.next = 23;
24020
+ _context.next = 27;
23965
24021
  break;
23966
24022
  }
23967
24023
  if (!this.shelfPlanner.showOnRule) {
23968
- _context.next = 19;
24024
+ _context.next = 23;
23969
24025
  break;
23970
24026
  }
23971
24027
  if (!this.evalRule(this.shelfPlanner.showOnRule)) {
23972
- _context.next = 15;
24028
+ _context.next = 19;
23973
24029
  break;
23974
24030
  }
23975
- _context.next = 13;
23976
- return this.shelfPlanner.setIsVisible(true);
23977
- case 13:
23978
24031
  _context.next = 17;
23979
- break;
23980
- case 15:
23981
- _context.next = 17;
23982
- return this.shelfPlanner.setIsVisible(false);
24032
+ return this.shelfPlanner.setIsVisible(true);
23983
24033
  case 17:
23984
24034
  _context.next = 21;
23985
24035
  break;
23986
24036
  case 19:
23987
24037
  _context.next = 21;
23988
- return this.shelfPlanner.setIsVisible(true);
24038
+ return this.shelfPlanner.setIsVisible(false);
23989
24039
  case 21:
23990
- _context.next = 23;
23991
- return this.shelfPlanner.onConfigChanged();
24040
+ _context.next = 25;
24041
+ break;
23992
24042
  case 23:
24043
+ _context.next = 25;
24044
+ return this.shelfPlanner.setIsVisible(true);
24045
+ case 25:
24046
+ _context.next = 27;
24047
+ return this.shelfPlanner.onConfigChanged(variantValues);
24048
+ case 27:
23993
24049
  case "end":
23994
24050
  return _context.stop();
23995
24051
  }
23996
24052
  }, _callee, this);
23997
24053
  }));
23998
- function updateShelfPlannerState() {
24054
+ function updateShelfPlannerState(_x) {
23999
24055
  return _updateShelfPlannerState.apply(this, arguments);
24000
24056
  }
24001
24057
  return updateShelfPlannerState;
@@ -24004,7 +24060,7 @@ var DivaArticle = /*#__PURE__*/function () {
24004
24060
  key: "calcConfigPrice",
24005
24061
  value: function calcConfigPrice(maxPriceOfGroupCodex, digits) {
24006
24062
  var _this4 = this,
24007
- _this$catalogArticle$;
24063
+ _this$catalogArticle$2;
24008
24064
  //Wenn im Planer für dieses Shape mehere Rules gibt, müssen wir diese jetzt prüfen, ob jetzt ein anderes shape gültig ist.
24009
24065
  //wenn ja, hier neues shape übergeben
24010
24066
  if (this.articleType === 'FLAT') return;
@@ -24204,7 +24260,7 @@ var DivaArticle = /*#__PURE__*/function () {
24204
24260
 
24205
24261
  //Wenn der Artikel über IDM einnen Längen/Flächenabhängigen Preis hat, dann entspricht der aktuelle Preis nur einer Einheit
24206
24262
  //dieser muss jetzt m it entsprechenden Massen multipliziert werden
24207
- if (articleUsedCalcPrice > 0 && ((_this$catalogArticle$ = this.catalogArticle.basicUnitPrice) !== null && _this$catalogArticle$ !== void 0 ? _this$catalogArticle$ : 0) > 0 && idmPriceMeasureFactor > 1) {
24263
+ if (articleUsedCalcPrice > 0 && ((_this$catalogArticle$2 = this.catalogArticle.basicUnitPrice) !== null && _this$catalogArticle$2 !== void 0 ? _this$catalogArticle$2 : 0) > 0 && idmPriceMeasureFactor > 1) {
24208
24264
  articleUsedCalcPrice = articleUsedCalcPrice * idmPriceMeasureFactor / this.catalogArticle.basicUnitPrice;
24209
24265
  }
24210
24266
  this.article.price = articleUsedCalcPrice;
@@ -24373,16 +24429,16 @@ var DivaArticle = /*#__PURE__*/function () {
24373
24429
  }
24374
24430
  }
24375
24431
  for (var _key4 in myValues) {
24376
- var _ops7 = this.getArticleOptionState(_key4);
24377
- if (_ops7) {
24432
+ var _ops8 = this.getArticleOptionState(_key4);
24433
+ if (_ops8) {
24378
24434
  validValues[_key4] = myValues[_key4];
24379
24435
  } else if (_key4.endsWith('_val') && this.getArticleOptionState(_key4.replace(/_val/g, ''))) {
24380
24436
  validValues[_key4] = myValues[_key4];
24381
24437
  } else {
24382
24438
  for (var _opt in this.articleOptionStates) {
24383
- var _ops8 = this.articleOptionStates[_opt];
24439
+ var _ops9 = this.articleOptionStates[_opt];
24384
24440
  if (this.articleOptionStates[_opt].optionOcd == _key4) {
24385
- var values = this.checkOptionSearchOPV(_ops8.option, myValues[_key4], {});
24441
+ var values = this.checkOptionSearchOPV(_ops9.option, myValues[_key4], {});
24386
24442
  if (values !== null && values !== void 0 && values.opv) validValues[_opt] = values.opv.codex;
24387
24443
  }
24388
24444
  }
@@ -24702,7 +24758,7 @@ var DivaArticle = /*#__PURE__*/function () {
24702
24758
  }
24703
24759
  if (myArtOption.isDoShow && !doHideSizeOption && myArtOption.val) {
24704
24760
  if (myArtOption.visibleCount > 0) {
24705
- var _myArtOption$valName_, _this$article$options2, _this$article$options3, _myArtOption$val;
24761
+ var _myArtOption$valName_, _this$optionsForPrint2, _this$optionsForPrint3, _myArtOption$val;
24706
24762
  var isfreeText = false,
24707
24763
  isMeasureValue = false,
24708
24764
  freeText = undefined,
@@ -24744,7 +24800,7 @@ var DivaArticle = /*#__PURE__*/function () {
24744
24800
  TabGroup_locales: myArtOption.optionTabGroup_locales,
24745
24801
  SendToSAP: myArtOption.option.sendToSAP,
24746
24802
  ArticlePlaceholder: myArtOption.option.articlePlaceholder,
24747
- Hidden: myArtOption.headerPosVariationType == 'I' || myArtOption.isInvisible || myArtOption.val.hideInSummary || this.isPartListArticle && ((_this$article$options2 = this.article.optionsForPrint) === null || _this$article$options2 === void 0 ? void 0 : _this$article$options2.length) && !((_this$article$options3 = this.article.optionsForPrint) !== null && _this$article$options3 !== void 0 && _this$article$options3.includes(OP)),
24803
+ Hidden: !!(myArtOption.headerPosVariationType == 'I' || myArtOption.isInvisible || myArtOption.val.hideInSummary || this.isPartListArticle && (_this$optionsForPrint2 = this.optionsForPrint) !== null && _this$optionsForPrint2 !== void 0 && _this$optionsForPrint2.length && !((_this$optionsForPrint3 = this.optionsForPrint) !== null && _this$optionsForPrint3 !== void 0 && _this$optionsForPrint3.includes(OP))),
24748
24804
  HideInOrderText: myArtOption.hideInOrderText,
24749
24805
  IsDescribingState: myArtOption.isDescribingState,
24750
24806
  FreeTextLang: myArtOption.freeTextLang,
@@ -24873,7 +24929,7 @@ var DivaArticle = /*#__PURE__*/function () {
24873
24929
  value: function cloneArticle(set) {
24874
24930
  var clonedArticle = new DivaArticle(set, this.basketId, _objectSpread$e({}, this.article), this.article.catalogArticle, set.CatalogData);
24875
24931
  for (var key in this.articleOptionStates) {
24876
- clonedArticle.articleOptionStates[key] = this.articleOptionStates[key].cloneOptionState();
24932
+ clonedArticle.articleOptionStates[key] = this.articleOptionStates[key].cloneOptionState(clonedArticle.getIsConfigSingle);
24877
24933
  }
24878
24934
  clonedArticle.article.partlistArticles = {};
24879
24935
  clonedArticle.article.previousPartlistArticles = {};
@@ -25373,7 +25429,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25373
25429
  for (key in myCatalogArticleOptions) {
25374
25430
  //Hier wird mal geschaut, ob der aktuelle Artikel alle Optionen schon initialisiert hat.
25375
25431
  if (!articleOptionState[key]) {
25376
- optionState = new ArticleOptionStateData(myCatalogArticleOptions[key], undefined, (_article$set$ViewConf = article.set.ViewConfig) === null || _article$set$ViewConf === void 0 ? void 0 : _article$set$ViewConf.useIsOptionDefinedWarning);
25432
+ optionState = new ArticleOptionStateData(myCatalogArticleOptions[key], article.getIsConfigSingle, undefined, (_article$set$ViewConf = article.set.ViewConfig) === null || _article$set$ViewConf === void 0 ? void 0 : _article$set$ViewConf.useIsOptionDefinedWarning);
25377
25433
  article.uploadOptionState(optionState); //alle Optionen erstellen
25378
25434
  }
25379
25435
  }
@@ -25544,7 +25600,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25544
25600
  break;
25545
25601
  }
25546
25602
  _context10.next = 9;
25547
- return article.updateShelfPlannerState();
25603
+ return article.updateShelfPlannerState(newConfigValues);
25548
25604
  case 9:
25549
25605
  if (!(!dontCalcPrice && !calcVariantPrice)) {
25550
25606
  _context10.next = 12;
@@ -28628,7 +28684,7 @@ var DivaSet = /*#__PURE__*/function () {
28628
28684
  break;
28629
28685
  }
28630
28686
  _context5.next = 3;
28631
- return import('./DoorPlanner-09e8a29d.js');
28687
+ return import('./DoorPlanner-c16219e9.js');
28632
28688
  case 3:
28633
28689
  _yield$import = _context5.sent;
28634
28690
  DoorPlanner = _yield$import["default"];
@@ -32376,7 +32432,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32376
32432
  break;
32377
32433
  }
32378
32434
  _context17.next = 18;
32379
- return parentArticle.shelfPlanner.onConfigChanged();
32435
+ return parentArticle.shelfPlanner.onConfigChanged({});
32380
32436
  case 18:
32381
32437
  _context17.next = 22;
32382
32438
  break;
@@ -32406,13 +32462,34 @@ var DivaSetHandler = /*#__PURE__*/function () {
32406
32462
  }()
32407
32463
  }, {
32408
32464
  key: "moveShelfItem",
32409
- value: function moveShelfItem(set, grid, initialIndex, finalIndex) {
32410
- var article = set.getArticleByBasketId(grid.basketId);
32411
- if (article && article.shelfPlanner) {
32412
- return article.shelfPlanner.grids[grid.ShelfIndex].moveCell(initialIndex, finalIndex);
32465
+ value: function () {
32466
+ var _moveShelfItem = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(set, grid, initialIndex, finalIndex) {
32467
+ var article;
32468
+ return _regeneratorRuntime.wrap(function _callee16$(_context18) {
32469
+ while (1) switch (_context18.prev = _context18.next) {
32470
+ case 0:
32471
+ article = set.getArticleByBasketId(grid.basketId);
32472
+ if (!(article && article.shelfPlanner)) {
32473
+ _context18.next = 5;
32474
+ break;
32475
+ }
32476
+ _context18.next = 4;
32477
+ return article.shelfPlanner.grids[grid.ShelfIndex].moveCell(initialIndex, finalIndex);
32478
+ case 4:
32479
+ return _context18.abrupt("return", _context18.sent);
32480
+ case 5:
32481
+ return _context18.abrupt("return", 'NOTHING_CHANGED');
32482
+ case 6:
32483
+ case "end":
32484
+ return _context18.stop();
32485
+ }
32486
+ }, _callee16);
32487
+ }));
32488
+ function moveShelfItem(_x52, _x53, _x54, _x55) {
32489
+ return _moveShelfItem.apply(this, arguments);
32413
32490
  }
32414
- return 'NOTHING_CHANGED';
32415
- }
32491
+ return moveShelfItem;
32492
+ }()
32416
32493
  }, {
32417
32494
  key: "selectShelfAccArticle",
32418
32495
  value: function selectShelfAccArticle(set, gridGroup, targetArticles, articleCodex) {
@@ -32429,11 +32506,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
32429
32506
  }, {
32430
32507
  key: "getFreeShelfGrids",
32431
32508
  value: function () {
32432
- var _getFreeShelfGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(set, gridGroup) {
32509
+ var _getFreeShelfGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(set, gridGroup) {
32433
32510
  var _article$shelfPlanner;
32434
32511
  var articles, article, articleCodex, accessoire, ret;
32435
- return _regeneratorRuntime.wrap(function _callee16$(_context18) {
32436
- while (1) switch (_context18.prev = _context18.next) {
32512
+ return _regeneratorRuntime.wrap(function _callee17$(_context19) {
32513
+ while (1) switch (_context19.prev = _context19.next) {
32437
32514
  case 0:
32438
32515
  articles = set.getDivaArticlesByGridGroup(gridGroup);
32439
32516
  article = Object.values(articles).find(function (a) {
@@ -32442,38 +32519,38 @@ var DivaSetHandler = /*#__PURE__*/function () {
32442
32519
  });
32443
32520
  articleCodex = article === null || article === void 0 || (_article$shelfPlanner = article.shelfPlanner) === null || _article$shelfPlanner === void 0 ? void 0 : _article$shelfPlanner.getSelectedAccessoireById(gridGroup);
32444
32521
  if (!(!article || !articleCodex)) {
32445
- _context18.next = 5;
32522
+ _context19.next = 5;
32446
32523
  break;
32447
32524
  }
32448
- return _context18.abrupt("return", undefined);
32525
+ return _context19.abrupt("return", undefined);
32449
32526
  case 5:
32450
- _context18.next = 7;
32527
+ _context19.next = 7;
32451
32528
  return this.addArticleToActSet(set, articleCodex, {
32452
32529
  relatedToBasketId: article.basketId,
32453
32530
  relatedToShelf: article.basketId,
32454
32531
  relatedToShelfGrid: 0
32455
32532
  }, false, 'toDeleteShelf');
32456
32533
  case 7:
32457
- accessoire = _context18.sent;
32458
- _context18.next = 10;
32459
- return accessoire.updateShelfPlannerState();
32534
+ accessoire = _context19.sent;
32535
+ _context19.next = 10;
32536
+ return accessoire.updateShelfPlannerState({});
32460
32537
  case 10:
32461
32538
  articleHandlerInstance.initCfgValues(accessoire, {});
32462
- _context18.next = 13;
32539
+ _context19.next = 13;
32463
32540
  return articleHandlerInstance.updateCfgValues(accessoire, {}, {}, true, true);
32464
32541
  case 13:
32465
32542
  ret = this.getFreePlaces(gridGroup, articles, accessoire);
32466
- _context18.next = 16;
32543
+ _context19.next = 16;
32467
32544
  return this.deleteElementFromSet(set, accessoire, undefined, undefined, true);
32468
32545
  case 16:
32469
- return _context18.abrupt("return", ret);
32546
+ return _context19.abrupt("return", ret);
32470
32547
  case 17:
32471
32548
  case "end":
32472
- return _context18.stop();
32549
+ return _context19.stop();
32473
32550
  }
32474
- }, _callee16, this);
32551
+ }, _callee17, this);
32475
32552
  }));
32476
- function getFreeShelfGrids(_x52, _x53) {
32553
+ function getFreeShelfGrids(_x56, _x57) {
32477
32554
  return _getFreeShelfGrids.apply(this, arguments);
32478
32555
  }
32479
32556
  return getFreeShelfGrids;
@@ -32532,62 +32609,62 @@ var DivaSetHandler = /*#__PURE__*/function () {
32532
32609
  }, {
32533
32610
  key: "moveShelfItemToGrid",
32534
32611
  value: function () {
32535
- var _moveShelfItemToGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(set, accessoireBasketId, parentBasketId, gridName, cellIndex) {
32612
+ var _moveShelfItemToGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(set, accessoireBasketId, parentBasketId, gridName, cellIndex) {
32536
32613
  var _oldGrid$Cells$find;
32537
32614
  var artices, accessoire, oldParent, newParent, oldGrid, newGrid, index;
32538
- return _regeneratorRuntime.wrap(function _callee17$(_context19) {
32539
- while (1) switch (_context19.prev = _context19.next) {
32615
+ return _regeneratorRuntime.wrap(function _callee18$(_context20) {
32616
+ while (1) switch (_context20.prev = _context20.next) {
32540
32617
  case 0:
32541
32618
  artices = set.getDivaArticles();
32542
32619
  accessoire = artices[accessoireBasketId];
32543
32620
  oldParent = accessoire.accessoireParentArticle;
32544
32621
  newParent = artices[parentBasketId];
32545
32622
  if (!(accessoire.relatedToShelfGrid === undefined)) {
32546
- _context19.next = 6;
32623
+ _context20.next = 6;
32547
32624
  break;
32548
32625
  }
32549
- return _context19.abrupt("return");
32626
+ return _context20.abrupt("return");
32550
32627
  case 6:
32551
32628
  if (oldParent !== null && oldParent !== void 0 && oldParent.shelfPlanner) {
32552
- _context19.next = 8;
32629
+ _context20.next = 8;
32553
32630
  break;
32554
32631
  }
32555
- return _context19.abrupt("return");
32632
+ return _context20.abrupt("return");
32556
32633
  case 8:
32557
32634
  if (newParent !== null && newParent !== void 0 && newParent.shelfPlanner) {
32558
- _context19.next = 10;
32635
+ _context20.next = 10;
32559
32636
  break;
32560
32637
  }
32561
- return _context19.abrupt("return");
32638
+ return _context20.abrupt("return");
32562
32639
  case 10:
32563
32640
  oldGrid = oldParent.shelfPlanner.getGridByIndex(accessoire.relatedToShelfGrid);
32564
32641
  newGrid = newParent.shelfPlanner.getGridByGridName(gridName);
32565
32642
  if (oldGrid) {
32566
- _context19.next = 14;
32643
+ _context20.next = 14;
32567
32644
  break;
32568
32645
  }
32569
- return _context19.abrupt("return");
32646
+ return _context20.abrupt("return");
32570
32647
  case 14:
32571
32648
  if (newGrid) {
32572
- _context19.next = 16;
32649
+ _context20.next = 16;
32573
32650
  break;
32574
32651
  }
32575
- return _context19.abrupt("return");
32652
+ return _context20.abrupt("return");
32576
32653
  case 16:
32577
32654
  index = oldGrid === null || oldGrid === void 0 || (_oldGrid$Cells$find = oldGrid.Cells.find(function (c, i) {
32578
32655
  var _c$Article;
32579
32656
  return c.Index === c.InUse && ((_c$Article = c.Article) === null || _c$Article === void 0 ? void 0 : _c$Article.basketId) == accessoire.basketId;
32580
32657
  })) === null || _oldGrid$Cells$find === void 0 ? void 0 : _oldGrid$Cells$find.Index;
32581
32658
  if (!(index === undefined)) {
32582
- _context19.next = 19;
32659
+ _context20.next = 19;
32583
32660
  break;
32584
32661
  }
32585
- return _context19.abrupt("return");
32662
+ return _context20.abrupt("return");
32586
32663
  case 19:
32587
- _context19.next = 21;
32664
+ _context20.next = 21;
32588
32665
  return oldParent.shelfPlanner.deleteAccessoireOfCellInGrid(accessoire.relatedToShelfGrid, index);
32589
32666
  case 21:
32590
- _context19.next = 23;
32667
+ _context20.next = 23;
32591
32668
  return newParent.shelfPlanner.addAccessoireInCellInGrid(accessoire, newGrid.ShelfIndex, cellIndex, 'fitsOn');
32592
32669
  case 23:
32593
32670
  accessoire.relatedToShelfGrid = newGrid.ShelfIndex;
@@ -32599,17 +32676,17 @@ var DivaSetHandler = /*#__PURE__*/function () {
32599
32676
  set.giveAccNewPosNrByBasketId(set.getBaseParentArticleOfAccessoire(oldParent.basketId).basketId);
32600
32677
  }
32601
32678
  set.giveAccNewPosNrByBasketId(set.getBaseParentArticleOfAccessoire(newParent.basketId).basketId);
32602
- _context19.next = 28;
32679
+ _context20.next = 28;
32603
32680
  return this.updateArticlesOptionStatesOfActSet(set, {}, [oldParent.basketId, newParent.basketId]);
32604
32681
  case 28:
32605
- return _context19.abrupt("return", newGrid.getGridIdByArticleCodex(accessoire.articleCodex));
32682
+ return _context20.abrupt("return", newGrid.getGridIdByArticleCodex(accessoire.articleCodex));
32606
32683
  case 29:
32607
32684
  case "end":
32608
- return _context19.stop();
32685
+ return _context20.stop();
32609
32686
  }
32610
- }, _callee17, this);
32687
+ }, _callee18, this);
32611
32688
  }));
32612
- function moveShelfItemToGrid(_x54, _x55, _x56, _x57, _x58) {
32689
+ function moveShelfItemToGrid(_x58, _x59, _x60, _x61, _x62) {
32613
32690
  return _moveShelfItemToGrid.apply(this, arguments);
32614
32691
  }
32615
32692
  return moveShelfItemToGrid;
@@ -32617,33 +32694,33 @@ var DivaSetHandler = /*#__PURE__*/function () {
32617
32694
  }, {
32618
32695
  key: "deleteAccessorieOnShelfPlanner",
32619
32696
  value: function () {
32620
- var _deleteAccessorieOnShelfPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(set, gridIndex, cellIndex, parentBasketId, dontReload) {
32697
+ var _deleteAccessorieOnShelfPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(set, gridIndex, cellIndex, parentBasketId, dontReload) {
32621
32698
  var _parentArticle$shelfP2;
32622
32699
  var parentArticle, articeToDelete, _parentArticle$shelfP3;
32623
- return _regeneratorRuntime.wrap(function _callee18$(_context20) {
32624
- while (1) switch (_context20.prev = _context20.next) {
32700
+ return _regeneratorRuntime.wrap(function _callee19$(_context21) {
32701
+ while (1) switch (_context21.prev = _context21.next) {
32625
32702
  case 0:
32626
32703
  parentArticle = set.getArticleByBasketId(parentBasketId);
32627
- _context20.next = 3;
32704
+ _context21.next = 3;
32628
32705
  return parentArticle === null || parentArticle === void 0 || (_parentArticle$shelfP2 = parentArticle.shelfPlanner) === null || _parentArticle$shelfP2 === void 0 ? void 0 : _parentArticle$shelfP2.deleteAccessoireOfCellInGrid(gridIndex, cellIndex);
32629
32706
  case 3:
32630
- articeToDelete = _context20.sent;
32707
+ articeToDelete = _context21.sent;
32631
32708
  if (!articeToDelete) {
32632
- _context20.next = 9;
32709
+ _context21.next = 9;
32633
32710
  break;
32634
32711
  }
32635
- _context20.next = 7;
32712
+ _context21.next = 7;
32636
32713
  return this.deleteElementFromSet(set, articeToDelete, false, undefined, dontReload);
32637
32714
  case 7:
32638
- _context20.next = 9;
32639
- return parentArticle === null || parentArticle === void 0 || (_parentArticle$shelfP3 = parentArticle.shelfPlanner) === null || _parentArticle$shelfP3 === void 0 ? void 0 : _parentArticle$shelfP3.onConfigChanged();
32715
+ _context21.next = 9;
32716
+ return parentArticle === null || parentArticle === void 0 || (_parentArticle$shelfP3 = parentArticle.shelfPlanner) === null || _parentArticle$shelfP3 === void 0 ? void 0 : _parentArticle$shelfP3.onConfigChanged({});
32640
32717
  case 9:
32641
32718
  case "end":
32642
- return _context20.stop();
32719
+ return _context21.stop();
32643
32720
  }
32644
- }, _callee18, this);
32721
+ }, _callee19, this);
32645
32722
  }));
32646
- function deleteAccessorieOnShelfPlanner(_x59, _x60, _x61, _x62, _x63) {
32723
+ function deleteAccessorieOnShelfPlanner(_x63, _x64, _x65, _x66, _x67) {
32647
32724
  return _deleteAccessorieOnShelfPlanner.apply(this, arguments);
32648
32725
  }
32649
32726
  return deleteAccessorieOnShelfPlanner;
@@ -32651,25 +32728,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
32651
32728
  }, {
32652
32729
  key: "updatePlannerTrans",
32653
32730
  value: function () {
32654
- var _updatePlannerTrans = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(set, plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance) {
32731
+ var _updatePlannerTrans = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(set, plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance) {
32655
32732
  var updateConfig;
32656
- return _regeneratorRuntime.wrap(function _callee19$(_context21) {
32657
- while (1) switch (_context21.prev = _context21.next) {
32733
+ return _regeneratorRuntime.wrap(function _callee20$(_context22) {
32734
+ while (1) switch (_context22.prev = _context22.next) {
32658
32735
  case 0:
32659
32736
  updateConfig = set.plannerHandler.updatePlannerTrans(set.getSetId(), plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance);
32660
32737
  if (!updateConfig) {
32661
- _context21.next = 4;
32738
+ _context22.next = 4;
32662
32739
  break;
32663
32740
  }
32664
- _context21.next = 4;
32741
+ _context22.next = 4;
32665
32742
  return this.updateArticlesOptionStatesOfActSet(set, {}, [], true, 'initializingAfterTrans');
32666
32743
  case 4:
32667
32744
  case "end":
32668
- return _context21.stop();
32745
+ return _context22.stop();
32669
32746
  }
32670
- }, _callee19, this);
32747
+ }, _callee20, this);
32671
32748
  }));
32672
- function updatePlannerTrans(_x64, _x65, _x66, _x67, _x68, _x69, _x70) {
32749
+ function updatePlannerTrans(_x68, _x69, _x70, _x71, _x72, _x73, _x74) {
32673
32750
  return _updatePlannerTrans.apply(this, arguments);
32674
32751
  }
32675
32752
  return updatePlannerTrans;
@@ -32745,10 +32822,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
32745
32822
  }, {
32746
32823
  key: "deleteAccessoire",
32747
32824
  value: function () {
32748
- var _deleteAccessoire = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(set, articleCodex, parentBasketId) {
32825
+ var _deleteAccessoire = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(set, articleCodex, parentBasketId) {
32749
32826
  var divaArticles, articlesToDelete, key, articleToDelete, maxQuantity, i;
32750
- return _regeneratorRuntime.wrap(function _callee20$(_context22) {
32751
- while (1) switch (_context22.prev = _context22.next) {
32827
+ return _regeneratorRuntime.wrap(function _callee21$(_context23) {
32828
+ while (1) switch (_context23.prev = _context23.next) {
32752
32829
  case 0:
32753
32830
  divaArticles = set.getDivaArticles();
32754
32831
  articlesToDelete = [];
@@ -32760,7 +32837,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32760
32837
  }
32761
32838
  }
32762
32839
  if (!(articlesToDelete.length > 0)) {
32763
- _context22.next = 17;
32840
+ _context23.next = 17;
32764
32841
  break;
32765
32842
  }
32766
32843
  articlesToDelete.sort(function (a, b) {
@@ -32774,27 +32851,27 @@ var DivaSetHandler = /*#__PURE__*/function () {
32774
32851
  }
32775
32852
  }
32776
32853
  if (!(articleToDelete.quantity > 1)) {
32777
- _context22.next = 14;
32854
+ _context23.next = 14;
32778
32855
  break;
32779
32856
  }
32780
- _context22.next = 11;
32857
+ _context23.next = 11;
32781
32858
  return articleHandlerInstance.updateAccessoireQuantity(articleToDelete, articleToDelete.quantity - 1);
32782
32859
  case 11:
32783
- return _context22.abrupt("return", true);
32860
+ return _context23.abrupt("return", true);
32784
32861
  case 14:
32785
- _context22.next = 16;
32862
+ _context23.next = 16;
32786
32863
  return this.deleteElementFromSet(articleToDelete.set, articleToDelete);
32787
32864
  case 16:
32788
- return _context22.abrupt("return", _context22.sent);
32865
+ return _context23.abrupt("return", _context23.sent);
32789
32866
  case 17:
32790
- return _context22.abrupt("return", false);
32867
+ return _context23.abrupt("return", false);
32791
32868
  case 18:
32792
32869
  case "end":
32793
- return _context22.stop();
32870
+ return _context23.stop();
32794
32871
  }
32795
- }, _callee20, this);
32872
+ }, _callee21, this);
32796
32873
  }));
32797
- function deleteAccessoire(_x71, _x72, _x73) {
32874
+ function deleteAccessoire(_x75, _x76, _x77) {
32798
32875
  return _deleteAccessoire.apply(this, arguments);
32799
32876
  }
32800
32877
  return deleteAccessoire;
@@ -32920,19 +32997,19 @@ var DivaSetHandler = /*#__PURE__*/function () {
32920
32997
  }, {
32921
32998
  key: "configSingleIsChanged",
32922
32999
  value: (function () {
32923
- var _configSingleIsChanged = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(set, newIsConfigSingle, groupedOptions, groupedArticles) {
33000
+ var _configSingleIsChanged = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(set, newIsConfigSingle, groupedOptions, groupedArticles) {
32924
33001
  var _set$getArticleByBask4, variantValues, key;
32925
- return _regeneratorRuntime.wrap(function _callee21$(_context23) {
32926
- while (1) switch (_context23.prev = _context23.next) {
33002
+ return _regeneratorRuntime.wrap(function _callee22$(_context24) {
33003
+ while (1) switch (_context24.prev = _context24.next) {
32927
33004
  case 0:
32928
33005
  set.configSingle = newIsConfigSingle;
32929
33006
  if (!(!set.configSingle && !set.CatalogData.onConfigSingleDontGeneralize && groupedOptions && groupedArticles)) {
32930
- _context23.next = 7;
33007
+ _context24.next = 7;
32931
33008
  break;
32932
33009
  }
32933
33010
  variantValues = (_set$getArticleByBask4 = set.getArticleByBasketId(groupedArticles[0])) === null || _set$getArticleByBask4 === void 0 ? void 0 : _set$getArticleByBask4.VariantValues;
32934
33011
  if (!variantValues) {
32935
- _context23.next = 7;
33012
+ _context24.next = 7;
32936
33013
  break;
32937
33014
  }
32938
33015
  for (key in variantValues) {
@@ -32940,15 +33017,15 @@ var DivaSetHandler = /*#__PURE__*/function () {
32940
33017
  delete variantValues[key];
32941
33018
  }
32942
33019
  }
32943
- _context23.next = 7;
33020
+ _context24.next = 7;
32944
33021
  return this.updateArticlesOptionStatesOfActSet(set, variantValues, groupedArticles);
32945
33022
  case 7:
32946
33023
  case "end":
32947
- return _context23.stop();
33024
+ return _context24.stop();
32948
33025
  }
32949
- }, _callee21, this);
33026
+ }, _callee22, this);
32950
33027
  }));
32951
- function configSingleIsChanged(_x74, _x75, _x76, _x77) {
33028
+ function configSingleIsChanged(_x78, _x79, _x80, _x81) {
32952
33029
  return _configSingleIsChanged.apply(this, arguments);
32953
33030
  }
32954
33031
  return configSingleIsChanged;
@@ -33045,26 +33122,26 @@ var DivaSetHandler = /*#__PURE__*/function () {
33045
33122
  }, {
33046
33123
  key: "loadConfigItemsOfActSetByConfigStepKey",
33047
33124
  value: function () {
33048
- var _loadConfigItemsOfActSetByConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(set, configStepKey, visible) {
33125
+ var _loadConfigItemsOfActSetByConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(set, configStepKey, visible) {
33049
33126
  var _configItems$option;
33050
33127
  var configItems, paletteType, filterType, stepInfo, contentItemId;
33051
- return _regeneratorRuntime.wrap(function _callee22$(_context24) {
33052
- while (1) switch (_context24.prev = _context24.next) {
33128
+ return _regeneratorRuntime.wrap(function _callee23$(_context25) {
33129
+ while (1) switch (_context25.prev = _context25.next) {
33053
33130
  case 0:
33054
- _context24.next = 2;
33131
+ _context25.next = 2;
33055
33132
  return configTreeHandler.getConifgItemsForView(set, configStepKey);
33056
33133
  case 2:
33057
- configItems = _context24.sent;
33134
+ configItems = _context25.sent;
33058
33135
  paletteType = set.configTree.getCurPaletteType(set, configStepKey);
33059
33136
  configItems.configItems = this.removeDockingInfluencableconfigItems(set, configItems.configItems, configStepKey);
33060
- _context24.next = 7;
33137
+ _context25.next = 7;
33061
33138
  return this.variantsEvaluator(set, configItems.configItems, configStepKey, paletteType);
33062
33139
  case 7:
33063
- configItems.configItems = _context24.sent;
33140
+ configItems.configItems = _context25.sent;
33064
33141
  filterType = set.configTree.getCurFilterType(configStepKey, configItems.configItems);
33065
33142
  stepInfo = set.configTree.getStepInfo(configStepKey);
33066
33143
  contentItemId = (_configItems$option = configItems.option) === null || _configItems$option === void 0 ? void 0 : _configItems$option.contentItemId;
33067
- return _context24.abrupt("return", _objectSpread$9(_objectSpread$9(_objectSpread$9({
33144
+ return _context25.abrupt("return", _objectSpread$9(_objectSpread$9(_objectSpread$9({
33068
33145
  isRenderedNotInSettingPalette: set.configTree.isRenderedNotInSettingPalette(configStepKey),
33069
33146
  isRenderedInAccessorieStep: set.configTree.isRenderedInAccessorieStep(configStepKey),
33070
33147
  visible: set.configTree.getVisibility(configStepKey, visible, set.CatalogData)
@@ -33077,11 +33154,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33077
33154
  }));
33078
33155
  case 12:
33079
33156
  case "end":
33080
- return _context24.stop();
33157
+ return _context25.stop();
33081
33158
  }
33082
- }, _callee22, this);
33159
+ }, _callee23, this);
33083
33160
  }));
33084
- function loadConfigItemsOfActSetByConfigStepKey(_x78, _x79, _x80) {
33161
+ function loadConfigItemsOfActSetByConfigStepKey(_x82, _x83, _x84) {
33085
33162
  return _loadConfigItemsOfActSetByConfigStepKey.apply(this, arguments);
33086
33163
  }
33087
33164
  return loadConfigItemsOfActSetByConfigStepKey;
@@ -33123,7 +33200,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33123
33200
  }, {
33124
33201
  key: "variantsEvaluator",
33125
33202
  value: (function () {
33126
- var _variantsEvaluator = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(set, configItems, configStepKey, paletteType) {
33203
+ var _variantsEvaluator = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(set, configItems, configStepKey, paletteType) {
33127
33204
  var _configItems$0$option,
33128
33205
  _set$ViewConfig,
33129
33206
  _set$api$ReturnToFrom,
@@ -33131,22 +33208,22 @@ var DivaSetHandler = /*#__PURE__*/function () {
33131
33208
  _set$CatalogData$hide,
33132
33209
  _this = this;
33133
33210
  var opt, previewType, targetArticles, variants;
33134
- return _regeneratorRuntime.wrap(function _callee23$(_context25) {
33135
- while (1) switch (_context25.prev = _context25.next) {
33211
+ return _regeneratorRuntime.wrap(function _callee24$(_context26) {
33212
+ while (1) switch (_context26.prev = _context26.next) {
33136
33213
  case 0:
33137
33214
  opt = set.CatalogData.getOption((_configItems$0$option = configItems[0].optionOcd) !== null && _configItems$0$option !== void 0 ? _configItems$0$option : configItems[0].op);
33138
33215
  previewType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.pricePreview;
33139
33216
  if (!(!opt || !previewType || opt.mergeIDMToOPG || opt.isDescribingState || configItems[0].isOPVG || configItems.length == 1 || opt.showOnSeparatTabgroup || set.PlannerMode === 'BoxPlanner' || ['TEXTBOX', 'NUMBERBOX', 'RANGE'].includes(paletteType) || (_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR') || (_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length && !set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex.substring(3)) || (_set$CatalogData$hide = set.CatalogData.hidePricePreviewOnlyOnOptions) !== null && _set$CatalogData$hide !== void 0 && _set$CatalogData$hide.length && set.CatalogData.hidePricePreviewOnlyOnOptions.includes(opt.codex.substring(3)))) {
33140
- _context25.next = 4;
33217
+ _context26.next = 4;
33141
33218
  break;
33142
33219
  }
33143
- return _context25.abrupt("return", configItems);
33220
+ return _context26.abrupt("return", configItems);
33144
33221
  case 4:
33145
33222
  targetArticles = set.configTree.getTargetArticles(configStepKey);
33146
- _context25.next = 7;
33223
+ _context26.next = 7;
33147
33224
  return this.calcVariants(set, configItems, targetArticles, opt.codex);
33148
33225
  case 7:
33149
- variants = _context25.sent;
33226
+ variants = _context26.sent;
33150
33227
  if (previewType) {
33151
33228
  configItems.map(function (c, index) {
33152
33229
  return c.pricePreviewPromise = {
@@ -33155,14 +33232,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33155
33232
  };
33156
33233
  });
33157
33234
  }
33158
- return _context25.abrupt("return", configItems);
33235
+ return _context26.abrupt("return", configItems);
33159
33236
  case 10:
33160
33237
  case "end":
33161
- return _context25.stop();
33238
+ return _context26.stop();
33162
33239
  }
33163
- }, _callee23, this);
33240
+ }, _callee24, this);
33164
33241
  }));
33165
- function variantsEvaluator(_x81, _x82, _x83, _x84) {
33242
+ function variantsEvaluator(_x85, _x86, _x87, _x88) {
33166
33243
  return _variantsEvaluator.apply(this, arguments);
33167
33244
  }
33168
33245
  return variantsEvaluator;
@@ -33170,10 +33247,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
33170
33247
  }, {
33171
33248
  key: "calcVariants",
33172
33249
  value: function () {
33173
- var _calcVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(realSet, configItems, targetArticles, optionCodex) {
33250
+ var _calcVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(realSet, configItems, targetArticles, optionCodex) {
33174
33251
  var variantInfo, set, articles, origPrice, articleConfigs, i, basketId, totalConfig, key, parentNames, _i5, configItem, _configItem$parentNam, _configItem$parentNam2;
33175
- return _regeneratorRuntime.wrap(function _callee24$(_context26) {
33176
- while (1) switch (_context26.prev = _context26.next) {
33252
+ return _regeneratorRuntime.wrap(function _callee25$(_context27) {
33253
+ while (1) switch (_context27.prev = _context27.next) {
33177
33254
  case 0:
33178
33255
  variantInfo = [];
33179
33256
  set = realSet.cloneSet();
@@ -33198,37 +33275,37 @@ var DivaSetHandler = /*#__PURE__*/function () {
33198
33275
  _i5 = 0;
33199
33276
  case 10:
33200
33277
  if (!(_i5 < configItems.length)) {
33201
- _context26.next = 23;
33278
+ _context27.next = 23;
33202
33279
  break;
33203
33280
  }
33204
33281
  configItem = configItems[_i5];
33205
33282
  if (!(configItem.parentName && configItem.isParentOPVG || configItem.idmOpgValCodex)) {
33206
- _context26.next = 19;
33283
+ _context27.next = 19;
33207
33284
  break;
33208
33285
  }
33209
33286
  if (!parentNames.includes((_configItem$parentNam = configItem.parentName) !== null && _configItem$parentNam !== void 0 ? _configItem$parentNam : configItem.idmOpgValCodex)) {
33210
- _context26.next = 18;
33287
+ _context27.next = 18;
33211
33288
  break;
33212
33289
  }
33213
33290
  variantInfo.push(variantInfo[_i5 - 1]);
33214
- return _context26.abrupt("continue", 20);
33291
+ return _context27.abrupt("continue", 20);
33215
33292
  case 18:
33216
33293
  parentNames.push((_configItem$parentNam2 = configItem.parentName) !== null && _configItem$parentNam2 !== void 0 ? _configItem$parentNam2 : configItem.idmOpgValCodex);
33217
33294
  case 19:
33218
33295
  variantInfo.push(this.getVariant(set, configItem, articleConfigs, totalConfig, targetArticles, optionCodex, origPrice, _i5, variantInfo[_i5 - 1]));
33219
33296
  case 20:
33220
33297
  _i5++;
33221
- _context26.next = 10;
33298
+ _context27.next = 10;
33222
33299
  break;
33223
33300
  case 23:
33224
- return _context26.abrupt("return", variantInfo);
33301
+ return _context27.abrupt("return", variantInfo);
33225
33302
  case 24:
33226
33303
  case "end":
33227
- return _context26.stop();
33304
+ return _context27.stop();
33228
33305
  }
33229
- }, _callee24, this);
33306
+ }, _callee25, this);
33230
33307
  }));
33231
- function calcVariants(_x85, _x86, _x87, _x88) {
33308
+ function calcVariants(_x89, _x90, _x91, _x92) {
33232
33309
  return _calcVariants.apply(this, arguments);
33233
33310
  }
33234
33311
  return calcVariants;
@@ -33236,23 +33313,23 @@ var DivaSetHandler = /*#__PURE__*/function () {
33236
33313
  }, {
33237
33314
  key: "getVariant",
33238
33315
  value: function () {
33239
- var _getVariant = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(set, item, origConfigs, totalConfig, targetArticles, optionCodex, origPrice, index, previousPromise) {
33316
+ var _getVariant = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(set, item, origConfigs, totalConfig, targetArticles, optionCodex, origPrice, index, previousPromise) {
33240
33317
  var firstPrice, prevProm, startTime, doUseConfigs, hashVariantValues, variantValues, i, basketId, origConfig, key, hash, dataHash, _i6, endTime, calcTime, price, priceObj;
33241
- return _regeneratorRuntime.wrap(function _callee25$(_context27) {
33242
- while (1) switch (_context27.prev = _context27.next) {
33318
+ return _regeneratorRuntime.wrap(function _callee26$(_context28) {
33319
+ while (1) switch (_context28.prev = _context28.next) {
33243
33320
  case 0:
33244
33321
  firstPrice = undefined;
33245
33322
  prevProm = undefined;
33246
33323
  if (!previousPromise) {
33247
- _context27.next = 9;
33324
+ _context28.next = 9;
33248
33325
  break;
33249
33326
  }
33250
- _context27.next = 5;
33327
+ _context28.next = 5;
33251
33328
  return previousPromise;
33252
33329
  case 5:
33253
- prevProm = _context27.sent;
33330
+ prevProm = _context28.sent;
33254
33331
  firstPrice = prevProm.firstPrice;
33255
- _context27.next = 10;
33332
+ _context28.next = 10;
33256
33333
  break;
33257
33334
  case 9:
33258
33335
  firstPrice = set.getSetPrice();
@@ -33285,11 +33362,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33285
33362
  hash = md5(JSON.stringify([].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig)))));
33286
33363
  dataHash = set.CatalogData.getVariantsPriceByHash(hash);
33287
33364
  if (!dataHash) {
33288
- _context27.next = 21;
33365
+ _context28.next = 21;
33289
33366
  break;
33290
33367
  }
33291
33368
  LOG$9.debug('calcingVariant from Option:' + optionCodex + ' and index: ' + index + ' hash hit!', dataHash, [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig))), targetArticles);
33292
- return _context27.abrupt("return", _objectSpread$9(_objectSpread$9({}, dataHash), {}, {
33369
+ return _context28.abrupt("return", _objectSpread$9(_objectSpread$9({}, dataHash), {}, {
33293
33370
  origPrice: origPrice,
33294
33371
  firstPrice: firstPrice
33295
33372
  }));
@@ -33297,14 +33374,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33297
33374
  _i6 = 0;
33298
33375
  case 22:
33299
33376
  if (!(_i6 < variantValues.length)) {
33300
- _context27.next = 28;
33377
+ _context28.next = 28;
33301
33378
  break;
33302
33379
  }
33303
- _context27.next = 25;
33380
+ _context28.next = 25;
33304
33381
  return this.updateArticlesOptionStatesOfActSet(set, variantValues[_i6], [targetArticles[_i6]], true, 'calcVariant');
33305
33382
  case 25:
33306
33383
  _i6++;
33307
- _context27.next = 22;
33384
+ _context28.next = 22;
33308
33385
  break;
33309
33386
  case 28:
33310
33387
  endTime = new Date();
@@ -33322,14 +33399,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33322
33399
  hashObj: [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig)))
33323
33400
  };
33324
33401
  set.CatalogData.setVariantsPriceByHash(hash, priceObj);
33325
- return _context27.abrupt("return", priceObj);
33402
+ return _context28.abrupt("return", priceObj);
33326
33403
  case 35:
33327
33404
  case "end":
33328
- return _context27.stop();
33405
+ return _context28.stop();
33329
33406
  }
33330
- }, _callee25, this);
33407
+ }, _callee26, this);
33331
33408
  }));
33332
- function getVariant(_x89, _x90, _x91, _x92, _x93, _x94, _x95, _x96, _x97) {
33409
+ function getVariant(_x93, _x94, _x95, _x96, _x97, _x98, _x99, _x100, _x101) {
33333
33410
  return _getVariant.apply(this, arguments);
33334
33411
  }
33335
33412
  return getVariant;
@@ -33337,53 +33414,53 @@ var DivaSetHandler = /*#__PURE__*/function () {
33337
33414
  }, {
33338
33415
  key: "checkIfPriceDiffers",
33339
33416
  value: function () {
33340
- var _checkIfPriceDiffers = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(promises) {
33417
+ var _checkIfPriceDiffers = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(promises) {
33341
33418
  var results, i, price, j;
33342
- return _regeneratorRuntime.wrap(function _callee26$(_context28) {
33343
- while (1) switch (_context28.prev = _context28.next) {
33419
+ return _regeneratorRuntime.wrap(function _callee27$(_context29) {
33420
+ while (1) switch (_context29.prev = _context29.next) {
33344
33421
  case 0:
33345
33422
  results = [];
33346
33423
  i = 0;
33347
33424
  case 2:
33348
33425
  if (!(i < promises.length)) {
33349
- _context28.next = 19;
33426
+ _context29.next = 19;
33350
33427
  break;
33351
33428
  }
33352
- _context28.t0 = results;
33353
- _context28.next = 6;
33429
+ _context29.t0 = results;
33430
+ _context29.next = 6;
33354
33431
  return promises[i];
33355
33432
  case 6:
33356
- _context28.t1 = _context28.sent;
33357
- _context28.t0.push.call(_context28.t0, _context28.t1);
33433
+ _context29.t1 = _context29.sent;
33434
+ _context29.t0.push.call(_context29.t0, _context29.t1);
33358
33435
  price = results[0].price;
33359
33436
  j = 1;
33360
33437
  case 10:
33361
33438
  if (!(j < results.length)) {
33362
- _context28.next = 16;
33439
+ _context29.next = 16;
33363
33440
  break;
33364
33441
  }
33365
33442
  if (!(price !== results[j].price)) {
33366
- _context28.next = 13;
33443
+ _context29.next = 13;
33367
33444
  break;
33368
33445
  }
33369
- return _context28.abrupt("return", true);
33446
+ return _context29.abrupt("return", true);
33370
33447
  case 13:
33371
33448
  j++;
33372
- _context28.next = 10;
33449
+ _context29.next = 10;
33373
33450
  break;
33374
33451
  case 16:
33375
33452
  i++;
33376
- _context28.next = 2;
33453
+ _context29.next = 2;
33377
33454
  break;
33378
33455
  case 19:
33379
- return _context28.abrupt("return", false);
33456
+ return _context29.abrupt("return", false);
33380
33457
  case 20:
33381
33458
  case "end":
33382
- return _context28.stop();
33459
+ return _context29.stop();
33383
33460
  }
33384
- }, _callee26);
33461
+ }, _callee27);
33385
33462
  }));
33386
- function checkIfPriceDiffers(_x98) {
33463
+ function checkIfPriceDiffers(_x102) {
33387
33464
  return _checkIfPriceDiffers.apply(this, arguments);
33388
33465
  }
33389
33466
  return checkIfPriceDiffers;
@@ -33397,11 +33474,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33397
33474
  }, {
33398
33475
  key: "updateArticlesOptionStatesOfActSet",
33399
33476
  value: (function () {
33400
- var _updateArticlesOptionStatesOfActSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
33477
+ var _updateArticlesOptionStatesOfActSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
33401
33478
  var _Object$keys, _resultPlannerUpdate;
33402
33479
  var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle;
33403
- return _regeneratorRuntime.wrap(function _callee27$(_context29) {
33404
- while (1) switch (_context29.prev = _context29.next) {
33480
+ return _regeneratorRuntime.wrap(function _callee28$(_context30) {
33481
+ while (1) switch (_context30.prev = _context30.next) {
33405
33482
  case 0:
33406
33483
  elementsToDeleteById = [];
33407
33484
  targetArticlesToUpdateOnly = [];
@@ -33413,50 +33490,50 @@ var DivaSetHandler = /*#__PURE__*/function () {
33413
33490
  } else {
33414
33491
  targetArticlesToUpdateOnly = targetArticlesWithNewValues;
33415
33492
  }
33416
- _context29.next = 5;
33493
+ _context30.next = 5;
33417
33494
  return articleHandlerInstance.updateArticlesOptionStates(myValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
33418
33495
  case 5:
33419
- retValues = _context29.sent;
33496
+ retValues = _context30.sent;
33420
33497
  targetArticlesWithNewValues = retValues.targetArticlesToUpdate;
33421
33498
  if (!(retValues.partlistArticlesToLoad.length > 0)) {
33422
- _context29.next = 16;
33499
+ _context30.next = 16;
33423
33500
  break;
33424
33501
  }
33425
33502
  diff = targetArticlesToUpdateOnly.length - Object.keys(set.getDivaArticles()).length;
33426
33503
  if (!(diff == 0 || partlistDiff == diff)) {
33427
- _context29.next = 14;
33504
+ _context30.next = 14;
33428
33505
  break;
33429
33506
  }
33430
- _context29.next = 12;
33507
+ _context30.next = 12;
33431
33508
  return articleHandlerInstance.correctPartlistArticlesByGlobalRules(set, retValues.partlistArticlesToLoad, set.CatalogData.bundleRules, {
33432
33509
  doChange: false
33433
33510
  });
33434
33511
  case 12:
33435
- _context29.next = 16;
33512
+ _context30.next = 16;
33436
33513
  break;
33437
33514
  case 14:
33438
- _context29.next = 16;
33515
+ _context30.next = 16;
33439
33516
  return this.updateArticlesOptionStatesOfActSet(set, {}, targetArticlesWithNewValues, ignorePlanner, from, diff);
33440
33517
  case 16:
33441
33518
  if (!(from !== 'initializingPartlist')) {
33442
- _context29.next = 19;
33519
+ _context30.next = 19;
33443
33520
  break;
33444
33521
  }
33445
- _context29.next = 19;
33522
+ _context30.next = 19;
33446
33523
  return this.updateEdoArticles(set, retValues.newEDOExtraArticles);
33447
33524
  case 19:
33448
33525
  if (set.CatalogData.hasAlternateRenderings) set.CatalogData.updateAlternativeRenderings(set.getDivaArticles());
33449
33526
 
33450
33527
  //Update Planner - check if planner data changed
33451
33528
  if (!(!ignorePlanner && from != 'calcVariant')) {
33452
- _context29.next = 55;
33529
+ _context30.next = 55;
33453
33530
  break;
33454
33531
  }
33455
33532
  targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
33456
- _context29.next = 24;
33533
+ _context30.next = 24;
33457
33534
  return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
33458
33535
  case 24:
33459
- resultPlannerUpdate = _context29.sent;
33536
+ resultPlannerUpdate = _context30.sent;
33460
33537
  elementsToDeleteById = resultPlannerUpdate.elemIdsToDelete;
33461
33538
  for (i = 0; i < resultPlannerUpdate.elemIdsToDelete.length; i++) {
33462
33539
  articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
@@ -33466,35 +33543,35 @@ var DivaSetHandler = /*#__PURE__*/function () {
33466
33543
  }
33467
33544
  }
33468
33545
  if (!resultPlannerUpdate.doDeleteBackGrid) {
33469
- _context29.next = 34;
33546
+ _context30.next = 34;
33470
33547
  break;
33471
33548
  }
33472
- _context29.next = 30;
33549
+ _context30.next = 30;
33473
33550
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[0], false, resultPlannerUpdate.deletionType);
33474
33551
  case 30:
33475
- result = _context29.sent;
33552
+ result = _context30.sent;
33476
33553
  //Others are deleted recursive
33477
33554
  if (result.selectElementId) {
33478
33555
  resultPlannerUpdate.elementIdsToUpdateSelection = [result.selectElementId];
33479
33556
  }
33480
- _context29.next = 41;
33557
+ _context30.next = 41;
33481
33558
  break;
33482
33559
  case 34:
33483
33560
  i = 0;
33484
33561
  case 35:
33485
33562
  if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
33486
- _context29.next = 41;
33563
+ _context30.next = 41;
33487
33564
  break;
33488
33565
  }
33489
- _context29.next = 38;
33566
+ _context30.next = 38;
33490
33567
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
33491
33568
  case 38:
33492
33569
  i++;
33493
- _context29.next = 35;
33570
+ _context30.next = 35;
33494
33571
  break;
33495
33572
  case 41:
33496
33573
  if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
33497
- _context29.next = 54;
33574
+ _context30.next = 54;
33498
33575
  break;
33499
33576
  }
33500
33577
  //Todo copy these elements
@@ -33502,20 +33579,20 @@ var DivaSetHandler = /*#__PURE__*/function () {
33502
33579
  i = 0;
33503
33580
  case 44:
33504
33581
  if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
33505
- _context29.next = 52;
33582
+ _context30.next = 52;
33506
33583
  break;
33507
33584
  }
33508
- _context29.next = 47;
33585
+ _context30.next = 47;
33509
33586
  return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
33510
33587
  case 47:
33511
- newArticle = _context29.sent;
33588
+ newArticle = _context30.sent;
33512
33589
  articleCopyRelation.set(resultPlannerUpdate.elementIdToCopy[i], newArticle.basketId);
33513
33590
  case 49:
33514
33591
  i++;
33515
- _context29.next = 44;
33592
+ _context30.next = 44;
33516
33593
  break;
33517
33594
  case 52:
33518
- _context29.next = 54;
33595
+ _context30.next = 54;
33519
33596
  return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
33520
33597
  dpType: resultPlannerUpdate.copyDPType ? resultPlannerUpdate.copyDPType : 'NO',
33521
33598
  copyType: resultPlannerUpdate.copyType,
@@ -33528,18 +33605,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33528
33605
  if (from == 'FromViewClick' && (_Object$keys = Object.keys(myValues)) !== null && _Object$keys !== void 0 && _Object$keys.length) {
33529
33606
  this.confirmOptionsInMetric(set, [Object.keys(myValues)[0]]);
33530
33607
  }
33531
- return _context29.abrupt("return", {
33608
+ return _context30.abrupt("return", {
33532
33609
  articleCountChanged: elementsToDeleteById.length > 0,
33533
33610
  elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
33534
33611
  setId: set.getSetId()
33535
33612
  });
33536
33613
  case 57:
33537
33614
  case "end":
33538
- return _context29.stop();
33615
+ return _context30.stop();
33539
33616
  }
33540
- }, _callee27, this);
33617
+ }, _callee28, this);
33541
33618
  }));
33542
- function updateArticlesOptionStatesOfActSet(_x99, _x100, _x101, _x102, _x103, _x104) {
33619
+ function updateArticlesOptionStatesOfActSet(_x103, _x104, _x105, _x106, _x107, _x108) {
33543
33620
  return _updateArticlesOptionStatesOfActSet.apply(this, arguments);
33544
33621
  }
33545
33622
  return updateArticlesOptionStatesOfActSet;
@@ -33593,32 +33670,32 @@ var DivaSetHandler = /*#__PURE__*/function () {
33593
33670
  }, {
33594
33671
  key: "updateEdoArticles",
33595
33672
  value: function () {
33596
- var _updateEdoArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(set, edoArticlesToLoad) {
33673
+ var _updateEdoArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(set, edoArticlesToLoad) {
33597
33674
  var oldBasketIds, i, article, newArticles, _i7, _i8;
33598
- return _regeneratorRuntime.wrap(function _callee28$(_context30) {
33599
- while (1) switch (_context30.prev = _context30.next) {
33675
+ return _regeneratorRuntime.wrap(function _callee29$(_context31) {
33676
+ while (1) switch (_context31.prev = _context31.next) {
33600
33677
  case 0:
33601
33678
  if (!(set.edoExtraArticles.length > 0 || edoArticlesToLoad.length > 0)) {
33602
- _context30.next = 22;
33679
+ _context31.next = 22;
33603
33680
  break;
33604
33681
  }
33605
33682
  oldBasketIds = _toConsumableArray(set.edoExtraArticles);
33606
33683
  i = 0;
33607
33684
  case 3:
33608
33685
  if (!(i < set.edoExtraArticles.length)) {
33609
- _context30.next = 11;
33686
+ _context31.next = 11;
33610
33687
  break;
33611
33688
  }
33612
33689
  article = set.getArticleByBasketId(set.edoExtraArticles[i]);
33613
33690
  if (!article) {
33614
- _context30.next = 8;
33691
+ _context31.next = 8;
33615
33692
  break;
33616
33693
  }
33617
- _context30.next = 8;
33694
+ _context31.next = 8;
33618
33695
  return this.deleteElementFromSet(set, article);
33619
33696
  case 8:
33620
33697
  i++;
33621
- _context30.next = 3;
33698
+ _context31.next = 3;
33622
33699
  break;
33623
33700
  case 11:
33624
33701
  set.edoExtraArticles = [];
@@ -33626,18 +33703,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33626
33703
  _i7 = 0;
33627
33704
  case 14:
33628
33705
  if (!(_i7 < edoArticlesToLoad.length)) {
33629
- _context30.next = 21;
33706
+ _context31.next = 21;
33630
33707
  break;
33631
33708
  }
33632
- _context30.next = 17;
33709
+ _context31.next = 17;
33633
33710
  return this.addArticleToActSet(set, edoArticlesToLoad[_i7].ArticleCodex, _objectSpread$9(_objectSpread$9({}, edoArticlesToLoad[_i7]), {}, {
33634
33711
  basketId: oldBasketIds[_i7]
33635
33712
  }), true);
33636
33713
  case 17:
33637
- newArticles[_i7] = _context30.sent;
33714
+ newArticles[_i7] = _context31.sent;
33638
33715
  case 18:
33639
33716
  _i7++;
33640
- _context30.next = 14;
33717
+ _context31.next = 14;
33641
33718
  break;
33642
33719
  case 21:
33643
33720
  for (_i8 = 0; _i8 < newArticles.length; _i8++) {
@@ -33645,11 +33722,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33645
33722
  }
33646
33723
  case 22:
33647
33724
  case "end":
33648
- return _context30.stop();
33725
+ return _context31.stop();
33649
33726
  }
33650
- }, _callee28, this);
33727
+ }, _callee29, this);
33651
33728
  }));
33652
- function updateEdoArticles(_x105, _x106) {
33729
+ function updateEdoArticles(_x109, _x110) {
33653
33730
  return _updateEdoArticles.apply(this, arguments);
33654
33731
  }
33655
33732
  return updateEdoArticles;
@@ -33815,11 +33892,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33815
33892
  }, {
33816
33893
  key: "fillOrderLinesAndOrderSets",
33817
33894
  value: function () {
33818
- var _fillOrderLinesAndOrderSets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(sets, divaBasketHandler, repairOnly, setPlanner, returnTo) {
33895
+ var _fillOrderLinesAndOrderSets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(sets, divaBasketHandler, repairOnly, setPlanner, returnTo) {
33819
33896
  var _set$getMatchingProdu2, _set$getMatchingProdu3;
33820
33897
  var orderSets, basketData, set, _set$getMatchingProdu, key, _set$basketConfigVari, _OrderLinesOfActSet$, _set, catalogData, articles, newOrderSet, customDimensions, OrderLinesOfActSet, ret, _key2, i, _basketData$OrderSets, _basketData$SetPlanne, oderSetsIsInActPlanning, setId, j;
33821
- return _regeneratorRuntime.wrap(function _callee29$(_context31) {
33822
- while (1) switch (_context31.prev = _context31.next) {
33898
+ return _regeneratorRuntime.wrap(function _callee30$(_context32) {
33899
+ while (1) switch (_context32.prev = _context32.next) {
33823
33900
  case 0:
33824
33901
  orderSets = [];
33825
33902
  basketData = divaBasketHandler.actBasket;
@@ -33831,32 +33908,32 @@ var DivaSetHandler = /*#__PURE__*/function () {
33831
33908
  }
33832
33909
  basketData.MatchingProductId = set === null || set === void 0 || (_set$getMatchingProdu2 = set.getMatchingProduct()) === null || _set$getMatchingProdu2 === void 0 ? void 0 : _set$getMatchingProdu2._id;
33833
33910
  basketData.MatchingProductRetailerArticleNr = set === null || set === void 0 || (_set$getMatchingProdu3 = set.getMatchingProduct()) === null || _set$getMatchingProdu3 === void 0 || (_set$getMatchingProdu3 = _set$getMatchingProdu3.retailerArticleNr) === null || _set$getMatchingProdu3 === void 0 ? void 0 : _set$getMatchingProdu3.toString();
33834
- _context31.t0 = _regeneratorRuntime.keys(sets);
33911
+ _context32.t0 = _regeneratorRuntime.keys(sets);
33835
33912
  case 8:
33836
- if ((_context31.t1 = _context31.t0()).done) {
33837
- _context31.next = 32;
33913
+ if ((_context32.t1 = _context32.t0()).done) {
33914
+ _context32.next = 32;
33838
33915
  break;
33839
33916
  }
33840
- key = _context31.t1.value;
33917
+ key = _context32.t1.value;
33841
33918
  _set = sets[key];
33842
33919
  catalogData = _set.CatalogData;
33843
33920
  articles = _set.getDivaArticles();
33844
- _context31.next = 15;
33921
+ _context32.next = 15;
33845
33922
  return this.getOrderSet(_set, catalogData, divaBasketHandler.actDivaNr, repairOnly, returnTo);
33846
33923
  case 15:
33847
- newOrderSet = _context31.sent;
33924
+ newOrderSet = _context32.sent;
33848
33925
  basketData.setIsPlanning(_set.SetType == 'PLANNING' ? '1' : '0');
33849
- _context31.next = 19;
33926
+ _context32.next = 19;
33850
33927
  return _set.getCustomDimensionsOfActSet();
33851
33928
  case 19:
33852
- customDimensions = _context31.sent;
33929
+ customDimensions = _context32.sent;
33853
33930
  OrderLinesOfActSet = articleHandlerInstance.getOrderLinesOfArticles(articles, customDimensions, repairOnly, !!((_set$basketConfigVari = _set.basketConfigVariants) !== null && _set$basketConfigVari !== void 0 && _set$basketConfigVari.length));
33854
33931
  articleHandlerInstance.checkForRoundingError(OrderLinesOfActSet, _set);
33855
33932
  if (OrderLinesOfActSet.length) {
33856
- _context31.next = 24;
33933
+ _context32.next = 24;
33857
33934
  break;
33858
33935
  }
33859
- return _context31.abrupt("continue", 8);
33936
+ return _context32.abrupt("continue", 8);
33860
33937
  case 24:
33861
33938
  OrderLinesOfActSet = divaBasketHandler.divaWWSHandler.repairWWSFlags(articles, OrderLinesOfActSet);
33862
33939
  if (newOrderSet.SetImage == '' && (_OrderLinesOfActSet$ = OrderLinesOfActSet[0]) !== null && _OrderLinesOfActSet$ !== void 0 && _OrderLinesOfActSet$.Image && _set.PlannerMode == 'No') {
@@ -33878,7 +33955,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33878
33955
  }
33879
33956
  newOrderSet.setOrderLines(OrderLinesOfActSet);
33880
33957
  orderSets.push(newOrderSet);
33881
- _context31.next = 8;
33958
+ _context32.next = 8;
33882
33959
  break;
33883
33960
  case 32:
33884
33961
  //fill diva3DProject for renderings & AR Converter
@@ -33886,7 +33963,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33886
33963
  i = 0;
33887
33964
  case 34:
33888
33965
  if (!(i < ((_basketData$OrderSets = basketData.OrderSets) === null || _basketData$OrderSets === void 0 ? void 0 : _basketData$OrderSets.length))) {
33889
- _context31.next = 49;
33966
+ _context32.next = 49;
33890
33967
  break;
33891
33968
  }
33892
33969
  oderSetsIsInActPlanning = false;
@@ -33894,18 +33971,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33894
33971
  j = 0;
33895
33972
  case 38:
33896
33973
  if (!(j < orderSets.length)) {
33897
- _context31.next = 45;
33974
+ _context32.next = 45;
33898
33975
  break;
33899
33976
  }
33900
33977
  if (!(orderSets[j].SetID == setId)) {
33901
- _context31.next = 42;
33978
+ _context32.next = 42;
33902
33979
  break;
33903
33980
  }
33904
33981
  oderSetsIsInActPlanning = true;
33905
- return _context31.abrupt("break", 45);
33982
+ return _context32.abrupt("break", 45);
33906
33983
  case 42:
33907
33984
  j++;
33908
- _context31.next = 38;
33985
+ _context32.next = 38;
33909
33986
  break;
33910
33987
  case 45:
33911
33988
  if (!oderSetsIsInActPlanning && !((_basketData$SetPlanne = basketData.SetPlannerInfos) !== null && _basketData$SetPlanne !== void 0 && _basketData$SetPlanne.InvolvedSetIds.includes(setId))) {
@@ -33913,7 +33990,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33913
33990
  }
33914
33991
  case 46:
33915
33992
  i++;
33916
- _context31.next = 34;
33993
+ _context32.next = 34;
33917
33994
  break;
33918
33995
  case 49:
33919
33996
  basketData.SetPlannerInfos = setPlanner ? this.getSetPlannerInfos(Object.keys(sets), orderSets) : undefined;
@@ -33922,14 +33999,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33922
33999
  } else {
33923
34000
  basketData.setOrderSets(orderSets);
33924
34001
  }
33925
- return _context31.abrupt("return", basketData);
34002
+ return _context32.abrupt("return", basketData);
33926
34003
  case 52:
33927
34004
  case "end":
33928
- return _context31.stop();
34005
+ return _context32.stop();
33929
34006
  }
33930
- }, _callee29, this);
34007
+ }, _callee30, this);
33931
34008
  }));
33932
- function fillOrderLinesAndOrderSets(_x107, _x108, _x109, _x110, _x111) {
34009
+ function fillOrderLinesAndOrderSets(_x111, _x112, _x113, _x114, _x115) {
33933
34010
  return _fillOrderLinesAndOrderSets.apply(this, arguments);
33934
34011
  }
33935
34012
  return fillOrderLinesAndOrderSets;
@@ -34013,11 +34090,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
34013
34090
  }, {
34014
34091
  key: "getOrderSet",
34015
34092
  value: function () {
34016
- var _getOrderSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(set, catalogData, divaNr, repairOnly, returnTo) {
34093
+ var _getOrderSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(set, catalogData, divaNr, repairOnly, returnTo) {
34017
34094
  var _Object$values$, _set$getDivaArticles, _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
34018
34095
  var dontGenerateImages, orderSet, GroupType, plannerData, setImage, urlToPlanning2D, alternateSetImages, hqRenderScript, dimensions, promise3D, promise2D, promise3DAlternate, _yield$Promise$all, _yield$Promise$all2, _yield$Promise$all2$, promiseHQRenderScript, _yield$Promise$all3, _yield$Promise$all4, plannerWarnings, bruttoPrice;
34019
- return _regeneratorRuntime.wrap(function _callee30$(_context32) {
34020
- while (1) switch (_context32.prev = _context32.next) {
34096
+ return _regeneratorRuntime.wrap(function _callee31$(_context33) {
34097
+ while (1) switch (_context33.prev = _context33.next) {
34021
34098
  case 0:
34022
34099
  dontGenerateImages = repairOnly || returnTo == 'DONT_SAVE_BASKET' || returnTo == 'TEST_CONFIGURATORLOGIC';
34023
34100
  DivaUtils.startSpanOfApm('GetSet3D und 2D Image');
@@ -34029,7 +34106,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
34029
34106
  hqRenderScript = undefined;
34030
34107
  dimensions = {};
34031
34108
  if (dontGenerateImages) {
34032
- _context32.next = 28;
34109
+ _context33.next = 28;
34033
34110
  break;
34034
34111
  }
34035
34112
  promise3D = this.getSetImage(set, typeof window === 'undefined');
@@ -34037,10 +34114,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
34037
34114
  if (!catalogData.dontSaveAlternativeRenderings && set.CatalogData.alternateRenderingsForSummary.length) {
34038
34115
  promise3DAlternate = this.getAlternateSetImages(set);
34039
34116
  }
34040
- _context32.next = 15;
34117
+ _context33.next = 15;
34041
34118
  return Promise.all([promise3D, promise2D, promise3DAlternate]);
34042
34119
  case 15:
34043
- _yield$Promise$all = _context32.sent;
34120
+ _yield$Promise$all = _context33.sent;
34044
34121
  _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 3);
34045
34122
  _yield$Promise$all2$ = _yield$Promise$all2[0];
34046
34123
  setImage = _yield$Promise$all2$.url;
@@ -34048,10 +34125,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
34048
34125
  urlToPlanning2D = _yield$Promise$all2[1];
34049
34126
  alternateSetImages = _yield$Promise$all2[2];
34050
34127
  promiseHQRenderScript = this.getHQRenderScript(set, divaNr);
34051
- _context32.next = 25;
34128
+ _context33.next = 25;
34052
34129
  return Promise.all([promiseHQRenderScript]);
34053
34130
  case 25:
34054
- _yield$Promise$all3 = _context32.sent;
34131
+ _yield$Promise$all3 = _context33.sent;
34055
34132
  _yield$Promise$all4 = _slicedToArray(_yield$Promise$all3, 1);
34056
34133
  hqRenderScript = _yield$Promise$all4[0];
34057
34134
  case 28:
@@ -34113,14 +34190,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
34113
34190
  MetaData: !((_set$basketConfigVari2 = set.basketConfigVariants) !== null && _set$basketConfigVari2 !== void 0 && _set$basketConfigVari2.length) ? set.MetaData : undefined,
34114
34191
  MetaData_locales: !((_set$basketConfigVari3 = set.basketConfigVariants) !== null && _set$basketConfigVari3 !== void 0 && _set$basketConfigVari3.length) ? set.MetaData_locales : undefined
34115
34192
  });
34116
- return _context32.abrupt("return", orderSet);
34193
+ return _context33.abrupt("return", orderSet);
34117
34194
  case 34:
34118
34195
  case "end":
34119
- return _context32.stop();
34196
+ return _context33.stop();
34120
34197
  }
34121
- }, _callee30, this);
34198
+ }, _callee31, this);
34122
34199
  }));
34123
- function getOrderSet(_x112, _x113, _x114, _x115, _x116) {
34200
+ function getOrderSet(_x116, _x117, _x118, _x119, _x120) {
34124
34201
  return _getOrderSet.apply(this, arguments);
34125
34202
  }
34126
34203
  return getOrderSet;
@@ -34133,31 +34210,31 @@ var DivaSetHandler = /*#__PURE__*/function () {
34133
34210
  }, {
34134
34211
  key: "getSetImage",
34135
34212
  value: (function () {
34136
- var _getSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(set, overwriteLastSavedRendering) {
34213
+ var _getSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(set, overwriteLastSavedRendering) {
34137
34214
  var is3D, _yield$set$plannerHan, dimensions, url;
34138
- return _regeneratorRuntime.wrap(function _callee31$(_context33) {
34139
- while (1) switch (_context33.prev = _context33.next) {
34215
+ return _regeneratorRuntime.wrap(function _callee32$(_context34) {
34216
+ while (1) switch (_context34.prev = _context34.next) {
34140
34217
  case 0:
34141
34218
  is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
34142
34219
  if (!is3D) {
34143
- _context33.next = 10;
34220
+ _context34.next = 10;
34144
34221
  break;
34145
34222
  }
34146
- _context33.next = 4;
34223
+ _context34.next = 4;
34147
34224
  return set.plannerHandler.saveSetImage(overwriteLastSavedRendering);
34148
34225
  case 4:
34149
- _context33.next = 6;
34226
+ _context34.next = 6;
34150
34227
  return set.plannerHandler.getSetImageAsUrl(set.getSetId());
34151
34228
  case 6:
34152
- _yield$set$plannerHan = _context33.sent;
34229
+ _yield$set$plannerHan = _context34.sent;
34153
34230
  dimensions = _yield$set$plannerHan.dimensions;
34154
34231
  url = _yield$set$plannerHan.url;
34155
- return _context33.abrupt("return", {
34232
+ return _context34.abrupt("return", {
34156
34233
  dimensions: dimensions,
34157
34234
  url: url
34158
34235
  });
34159
34236
  case 10:
34160
- return _context33.abrupt("return", {
34237
+ return _context34.abrupt("return", {
34161
34238
  dimensions: {
34162
34239
  w: undefined,
34163
34240
  h: undefined,
@@ -34166,11 +34243,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
34166
34243
  });
34167
34244
  case 11:
34168
34245
  case "end":
34169
- return _context33.stop();
34246
+ return _context34.stop();
34170
34247
  }
34171
- }, _callee31);
34248
+ }, _callee32);
34172
34249
  }));
34173
- function getSetImage(_x117, _x118) {
34250
+ function getSetImage(_x121, _x122) {
34174
34251
  return _getSetImage.apply(this, arguments);
34175
34252
  }
34176
34253
  return getSetImage;
@@ -34178,45 +34255,45 @@ var DivaSetHandler = /*#__PURE__*/function () {
34178
34255
  }, {
34179
34256
  key: "getHQRenderScript",
34180
34257
  value: function () {
34181
- var _getHQRenderScript = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(set, divaNr) {
34258
+ var _getHQRenderScript = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(set, divaNr) {
34182
34259
  var is3D, hqRenderScript, createdHQRenderScript;
34183
- return _regeneratorRuntime.wrap(function _callee32$(_context34) {
34184
- while (1) switch (_context34.prev = _context34.next) {
34260
+ return _regeneratorRuntime.wrap(function _callee33$(_context35) {
34261
+ while (1) switch (_context35.prev = _context35.next) {
34185
34262
  case 0:
34186
34263
  //if not 3d
34187
34264
  is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
34188
34265
  if (is3D) {
34189
- _context34.next = 3;
34266
+ _context35.next = 3;
34190
34267
  break;
34191
34268
  }
34192
- return _context34.abrupt("return");
34269
+ return _context35.abrupt("return");
34193
34270
  case 3:
34194
- _context34.next = 5;
34271
+ _context35.next = 5;
34195
34272
  return set.plannerHandler.saveSetHQRenderScript();
34196
34273
  case 5:
34197
34274
  hqRenderScript = set.plannerHandler.getSetHQRenderScript();
34198
34275
  if (hqRenderScript) {
34199
- _context34.next = 8;
34276
+ _context35.next = 8;
34200
34277
  break;
34201
34278
  }
34202
- return _context34.abrupt("return");
34279
+ return _context35.abrupt("return");
34203
34280
  case 8:
34204
- _context34.next = 10;
34281
+ _context35.next = 10;
34205
34282
  return set.api.postHQRenderScript({
34206
34283
  divaNr: divaNr,
34207
34284
  hqRenderscript: hqRenderScript,
34208
34285
  organization: set.api.OrganizationId
34209
34286
  });
34210
34287
  case 10:
34211
- createdHQRenderScript = _context34.sent;
34212
- return _context34.abrupt("return", createdHQRenderScript);
34288
+ createdHQRenderScript = _context35.sent;
34289
+ return _context35.abrupt("return", createdHQRenderScript);
34213
34290
  case 12:
34214
34291
  case "end":
34215
- return _context34.stop();
34292
+ return _context35.stop();
34216
34293
  }
34217
- }, _callee32);
34294
+ }, _callee33);
34218
34295
  }));
34219
- function getHQRenderScript(_x119, _x120) {
34296
+ function getHQRenderScript(_x123, _x124) {
34220
34297
  return _getHQRenderScript.apply(this, arguments);
34221
34298
  }
34222
34299
  return getHQRenderScript;
@@ -34230,34 +34307,34 @@ var DivaSetHandler = /*#__PURE__*/function () {
34230
34307
  }, {
34231
34308
  key: "getAlternateSetImages",
34232
34309
  value: (function () {
34233
- var _getAlternateSetImages = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(set) {
34310
+ var _getAlternateSetImages = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(set) {
34234
34311
  var is2D, catalogData, setImages;
34235
- return _regeneratorRuntime.wrap(function _callee33$(_context35) {
34236
- while (1) switch (_context35.prev = _context35.next) {
34312
+ return _regeneratorRuntime.wrap(function _callee34$(_context36) {
34313
+ while (1) switch (_context36.prev = _context36.next) {
34237
34314
  case 0:
34238
34315
  is2D = !['3DImage', '3DCOMB', 'BoxPlanner'].includes(set.getPlannerMode());
34239
34316
  if (!(is2D || set.onlyRunLogic)) {
34240
- _context35.next = 3;
34317
+ _context36.next = 3;
34241
34318
  break;
34242
34319
  }
34243
- return _context35.abrupt("return", []);
34320
+ return _context36.abrupt("return", []);
34244
34321
  case 3:
34245
34322
  catalogData = set.CatalogData;
34246
- _context35.next = 6;
34323
+ _context36.next = 6;
34247
34324
  return set.plannerHandler.saveAlternateSetImages(catalogData.catalogCodex, catalogData.catalogGuid);
34248
34325
  case 6:
34249
- _context35.next = 8;
34326
+ _context36.next = 8;
34250
34327
  return set.plannerHandler.getAlternateSetImagesAsSetImageData(set.getSetId());
34251
34328
  case 8:
34252
- setImages = _context35.sent;
34253
- return _context35.abrupt("return", setImages);
34329
+ setImages = _context36.sent;
34330
+ return _context36.abrupt("return", setImages);
34254
34331
  case 10:
34255
34332
  case "end":
34256
- return _context35.stop();
34333
+ return _context36.stop();
34257
34334
  }
34258
- }, _callee33);
34335
+ }, _callee34);
34259
34336
  }));
34260
- function getAlternateSetImages(_x121) {
34337
+ function getAlternateSetImages(_x125) {
34261
34338
  return _getAlternateSetImages.apply(this, arguments);
34262
34339
  }
34263
34340
  return getAlternateSetImages;
@@ -34265,30 +34342,30 @@ var DivaSetHandler = /*#__PURE__*/function () {
34265
34342
  }, {
34266
34343
  key: "get2DSetImage",
34267
34344
  value: function () {
34268
- var _get2DSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(set) {
34345
+ var _get2DSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(set) {
34269
34346
  var urlToPlanning2D, catalogData, planning2DAsJPGBase64;
34270
- return _regeneratorRuntime.wrap(function _callee34$(_context36) {
34271
- while (1) switch (_context36.prev = _context36.next) {
34347
+ return _regeneratorRuntime.wrap(function _callee35$(_context37) {
34348
+ while (1) switch (_context37.prev = _context37.next) {
34272
34349
  case 0:
34273
34350
  urlToPlanning2D = undefined, catalogData = set.CatalogData;
34274
34351
  planning2DAsJPGBase64 = set.getPlanning2DAsJpg();
34275
34352
  if (!(planning2DAsJPGBase64 != undefined && planning2DAsJPGBase64 != '' && planning2DAsJPGBase64 != 'data:,')) {
34276
- _context36.next = 6;
34353
+ _context37.next = 6;
34277
34354
  break;
34278
34355
  }
34279
- _context36.next = 5;
34356
+ _context37.next = 5;
34280
34357
  return set.plannerHandler.saveSet2DImage(set.getSetId(), catalogData.catalogCodex, catalogData.catalogGuid, planning2DAsJPGBase64);
34281
34358
  case 5:
34282
- urlToPlanning2D = _context36.sent;
34359
+ urlToPlanning2D = _context37.sent;
34283
34360
  case 6:
34284
- return _context36.abrupt("return", urlToPlanning2D);
34361
+ return _context37.abrupt("return", urlToPlanning2D);
34285
34362
  case 7:
34286
34363
  case "end":
34287
- return _context36.stop();
34364
+ return _context37.stop();
34288
34365
  }
34289
- }, _callee34);
34366
+ }, _callee35);
34290
34367
  }));
34291
- function get2DSetImage(_x122) {
34368
+ function get2DSetImage(_x126) {
34292
34369
  return _get2DSetImage.apply(this, arguments);
34293
34370
  }
34294
34371
  return get2DSetImage;
@@ -34328,25 +34405,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
34328
34405
  }, {
34329
34406
  key: "addOrderSetArticlesToExistingSet",
34330
34407
  value: function () {
34331
- var _addOrderSetArticlesToExistingSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(set, orderSet, lastSetToInitialize) {
34332
- return _regeneratorRuntime.wrap(function _callee35$(_context37) {
34333
- while (1) switch (_context37.prev = _context37.next) {
34408
+ var _addOrderSetArticlesToExistingSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee36(set, orderSet, lastSetToInitialize) {
34409
+ return _regeneratorRuntime.wrap(function _callee36$(_context38) {
34410
+ while (1) switch (_context38.prev = _context38.next) {
34334
34411
  case 0:
34335
34412
  //TODO: GLOBAL STUFF
34336
34413
  //this.updateActSet(set);
34337
34414
  orderSet.changeBasketIds();
34338
- _context37.next = 3;
34415
+ _context38.next = 3;
34339
34416
  return this.initOrderLineArticles(set, orderSet);
34340
34417
  case 3:
34341
- _context37.next = 5;
34418
+ _context38.next = 5;
34342
34419
  return set.plannerHandler.extendSet(set, orderSet.SetPlanData, lastSetToInitialize);
34343
34420
  case 5:
34344
34421
  case "end":
34345
- return _context37.stop();
34422
+ return _context38.stop();
34346
34423
  }
34347
- }, _callee35, this);
34424
+ }, _callee36, this);
34348
34425
  }));
34349
- function addOrderSetArticlesToExistingSet(_x123, _x124, _x125) {
34426
+ function addOrderSetArticlesToExistingSet(_x127, _x128, _x129) {
34350
34427
  return _addOrderSetArticlesToExistingSet.apply(this, arguments);
34351
34428
  }
34352
34429
  return addOrderSetArticlesToExistingSet;
@@ -35397,7 +35474,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35397
35474
  break;
35398
35475
  case 3:
35399
35476
  _context12.next = 5;
35400
- return import('./PfisterWWSHandler-f5c82bab.js');
35477
+ return import('./PfisterWWSHandler-157299aa.js');
35401
35478
  case 5:
35402
35479
  _yield$import = _context12.sent;
35403
35480
  PfisterWWSHandler = _yield$import["default"];
@@ -35405,7 +35482,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35405
35482
  return _context12.abrupt("break", 27);
35406
35483
  case 9:
35407
35484
  _context12.next = 11;
35408
- return import('./LiviqueWWSHandler-aa91694f.js');
35485
+ return import('./LiviqueWWSHandler-b9215ed8.js');
35409
35486
  case 11:
35410
35487
  _yield$import2 = _context12.sent;
35411
35488
  LiviqueWWSHandler = _yield$import2["default"];
@@ -35413,7 +35490,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35413
35490
  return _context12.abrupt("break", 27);
35414
35491
  case 15:
35415
35492
  _context12.next = 17;
35416
- return import('./SeriousBasketHandler-9ca925b6.js');
35493
+ return import('./SeriousBasketHandler-ac28da61.js');
35417
35494
  case 17:
35418
35495
  _yield$import3 = _context12.sent;
35419
35496
  SeriousWWSHandler = _yield$import3["default"];
@@ -35421,7 +35498,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35421
35498
  return _context12.abrupt("break", 27);
35422
35499
  case 21:
35423
35500
  _context12.next = 23;
35424
- return import('./StandardWWSHandler-d3611d24.js');
35501
+ return import('./StandardWWSHandler-a41bada8.js');
35425
35502
  case 23:
35426
35503
  _yield$import4 = _context12.sent;
35427
35504
  StandardWWSHandler = _yield$import4["default"];
@@ -36864,7 +36941,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36864
36941
  while (1) switch (_context3.prev = _context3.next) {
36865
36942
  case 0:
36866
36943
  _context3.next = 2;
36867
- return import('./Host3DSignalR-85c6a251.js');
36944
+ return import('./Host3DSignalR-85e7de8b.js');
36868
36945
  case 2:
36869
36946
  _yield$import = _context3.sent;
36870
36947
  Host3DSignalR = _yield$import["default"];
@@ -38429,7 +38506,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38429
38506
  break;
38430
38507
  case 8:
38431
38508
  _context4.next = 10;
38432
- return import('./DivaStandardPlanner-5c6cc87c.js');
38509
+ return import('./DivaStandardPlanner-03d4d99d.js');
38433
38510
  case 10:
38434
38511
  _yield$import = _context4.sent;
38435
38512
  DivaStandardPlanner = _yield$import["default"];
@@ -38440,7 +38517,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38440
38517
  return _context4.abrupt("break", 21);
38441
38518
  case 15:
38442
38519
  _context4.next = 17;
38443
- return import('./DivaBoxPlanner-7c40aa5b.js');
38520
+ return import('./DivaBoxPlanner-6b469169.js');
38444
38521
  case 17:
38445
38522
  _yield$import2 = _context4.sent;
38446
38523
  DivaBoxPlanner = _yield$import2["default"];
@@ -39826,32 +39903,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39826
39903
  return _ref5.apply(this, arguments);
39827
39904
  };
39828
39905
  }());
39829
- _defineProperty(this, "moveShelfItem", function (paletteId, grid, initialIndex, finalIndex, configStepKey) {
39830
- var _this$updateViewPlann4;
39831
- var set = _this.actSet();
39832
- var result = setHandlerInstance.moveShelfItem(set, grid, initialIndex, finalIndex);
39833
- if (result == 'RESETTED_CELLS') {
39834
- var _this$updatePlannerMs, _this$i18n3;
39835
- (_this$updatePlannerMs = _this.updatePlannerMsgContainer) === null || _this$updatePlannerMs === void 0 || _this$updatePlannerMs.call(_this, 'COULD_NOT_MOVE_SHELVES', true, 'INFO', (_this$i18n3 = _this.i18n()) === null || _this$i18n3 === void 0 ? void 0 : _this$i18n3.t('configurator.move_resetted'), true);
39836
- }
39837
- _this.updateConfigStructure();
39838
- _this.loadShelfPlannerItems(paletteId, configStepKey, 'move sheld');
39839
- (_this$updateViewPlann4 = _this.updateViewPlannerElements) === null || _this$updateViewPlann4 === void 0 || _this$updateViewPlann4.call(_this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
39840
- _this.updatePlannerView('MOVE_SHELF_ITEM');
39841
- });
39906
+ _defineProperty(this, "moveShelfItem", /*#__PURE__*/function () {
39907
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(paletteId, grid, initialIndex, finalIndex, configStepKey) {
39908
+ var _this$updateViewPlann4;
39909
+ var set, result, _this$updatePlannerMs, _this$i18n3;
39910
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
39911
+ while (1) switch (_context6.prev = _context6.next) {
39912
+ case 0:
39913
+ set = _this.actSet();
39914
+ _context6.next = 3;
39915
+ return setHandlerInstance.moveShelfItem(set, grid, initialIndex, finalIndex);
39916
+ case 3:
39917
+ result = _context6.sent;
39918
+ if (result == 'RESETTED_CELLS') {
39919
+ (_this$updatePlannerMs = _this.updatePlannerMsgContainer) === null || _this$updatePlannerMs === void 0 || _this$updatePlannerMs.call(_this, 'COULD_NOT_MOVE_SHELVES', true, 'INFO', (_this$i18n3 = _this.i18n()) === null || _this$i18n3 === void 0 ? void 0 : _this$i18n3.t('configurator.move_resetted'), true);
39920
+ }
39921
+ _this.updateConfigStructure();
39922
+ _this.loadShelfPlannerItems(paletteId, configStepKey, 'move sheld');
39923
+ (_this$updateViewPlann4 = _this.updateViewPlannerElements) === null || _this$updateViewPlann4 === void 0 || _this$updateViewPlann4.call(_this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
39924
+ _this.updatePlannerView('MOVE_SHELF_ITEM');
39925
+ case 9:
39926
+ case "end":
39927
+ return _context6.stop();
39928
+ }
39929
+ }, _callee6);
39930
+ }));
39931
+ return function (_x18, _x19, _x20, _x21, _x22) {
39932
+ return _ref6.apply(this, arguments);
39933
+ };
39934
+ }());
39842
39935
  _defineProperty(this, "moveDoors", function (movedDoor, targetDoor) {
39843
39936
  setHandlerInstance.moveDoors(_this.actSet(), movedDoor, targetDoor);
39844
39937
  _this.updatePlannerView('MOVE_DOORS');
39845
39938
  });
39846
39939
  _defineProperty(this, "deleteAccessorieOnShelfPlanner", /*#__PURE__*/function () {
39847
- var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(paletteId, gridIndex, cellIndex, parentBasketId, configStepKey) {
39940
+ var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(paletteId, gridIndex, cellIndex, parentBasketId, configStepKey) {
39848
39941
  var _this$updateViewPlann5;
39849
39942
  var set;
39850
- return _regeneratorRuntime.wrap(function _callee6$(_context6) {
39851
- while (1) switch (_context6.prev = _context6.next) {
39943
+ return _regeneratorRuntime.wrap(function _callee7$(_context7) {
39944
+ while (1) switch (_context7.prev = _context7.next) {
39852
39945
  case 0:
39853
39946
  set = _this.actSet();
39854
- _context6.next = 3;
39947
+ _context7.next = 3;
39855
39948
  return setHandlerInstance.deleteAccessorieOnShelfPlanner(set, gridIndex, cellIndex, parentBasketId);
39856
39949
  case 3:
39857
39950
  _this.updateConfigStructure();
@@ -39864,12 +39957,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39864
39957
  _this.plannerChangeLog('onDeletePlanner');
39865
39958
  case 11:
39866
39959
  case "end":
39867
- return _context6.stop();
39960
+ return _context7.stop();
39868
39961
  }
39869
- }, _callee6);
39962
+ }, _callee7);
39870
39963
  }));
39871
- return function (_x18, _x19, _x20, _x21, _x22) {
39872
- return _ref6.apply(this, arguments);
39964
+ return function (_x23, _x24, _x25, _x26, _x27) {
39965
+ return _ref7.apply(this, arguments);
39873
39966
  };
39874
39967
  }());
39875
39968
  /**
@@ -39880,12 +39973,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39880
39973
  * @param transState
39881
39974
  */
39882
39975
  _defineProperty(this, "updatePlannerTrans", /*#__PURE__*/function () {
39883
- var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(setId, plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance) {
39976
+ var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(setId, plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance) {
39884
39977
  var _this$updateElementSe3;
39885
- return _regeneratorRuntime.wrap(function _callee7$(_context7) {
39886
- while (1) switch (_context7.prev = _context7.next) {
39978
+ return _regeneratorRuntime.wrap(function _callee8$(_context8) {
39979
+ while (1) switch (_context8.prev = _context8.next) {
39887
39980
  case 0:
39888
- _context7.next = 2;
39981
+ _context8.next = 2;
39889
39982
  return setHandlerInstance.updatePlannerTrans(_this.actSet(), plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance);
39890
39983
  case 2:
39891
39984
  if (transState == 'END') {
@@ -39894,12 +39987,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39894
39987
  }
39895
39988
  case 3:
39896
39989
  case "end":
39897
- return _context7.stop();
39990
+ return _context8.stop();
39898
39991
  }
39899
- }, _callee7);
39992
+ }, _callee8);
39900
39993
  }));
39901
- return function (_x23, _x24, _x25, _x26, _x27, _x28, _x29) {
39902
- return _ref7.apply(this, arguments);
39994
+ return function (_x28, _x29, _x30, _x31, _x32, _x33, _x34) {
39995
+ return _ref8.apply(this, arguments);
39903
39996
  };
39904
39997
  }());
39905
39998
  /**
@@ -39918,18 +40011,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39918
40011
  }
39919
40012
  });
39920
40013
  _defineProperty(this, "updateAccessoireQuantity", /*#__PURE__*/function () {
39921
- var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(accessoireItem, relatedToBasketId, newQuantity, forceConfigSingle) {
40014
+ var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(accessoireItem, relatedToBasketId, newQuantity, forceConfigSingle) {
39922
40015
  var _this$actions11, _this$actions11$toggl, _this$actions12, _this$actions12$toggl;
39923
40016
  var set, ret;
39924
- return _regeneratorRuntime.wrap(function _callee8$(_context8) {
39925
- while (1) switch (_context8.prev = _context8.next) {
40017
+ return _regeneratorRuntime.wrap(function _callee9$(_context9) {
40018
+ while (1) switch (_context9.prev = _context9.next) {
39926
40019
  case 0:
39927
40020
  set = _this.actSet();
39928
40021
  (_this$actions11 = _this.actions) === null || _this$actions11 === void 0 || (_this$actions11$toggl = _this$actions11.toggleLoading) === null || _this$actions11$toggl === void 0 || _this$actions11$toggl.call(_this$actions11, 'LoadingArticles_' + accessoireItem.articleCodex, false, true);
39929
- _context8.next = 4;
40022
+ _context9.next = 4;
39930
40023
  return setHandlerInstance.updateAccessoireQuantity(set, accessoireItem, relatedToBasketId, newQuantity, forceConfigSingle);
39931
40024
  case 4:
39932
- ret = _context8.sent;
40025
+ ret = _context9.sent;
39933
40026
  (_this$actions12 = _this.actions) === null || _this$actions12 === void 0 || (_this$actions12$toggl = _this$actions12.toggleLoading) === null || _this$actions12$toggl === void 0 || _this$actions12$toggl.call(_this$actions12, 'LoadingArticles_' + accessoireItem.articleCodex, false, false);
39934
40027
  if (ret.somethingChanged) _this.updateConfigStructure();
39935
40028
  _this.updatePlannerView('UPDATE_ACC_QUANTITY');
@@ -39939,25 +40032,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39939
40032
  _this.plannerChangeLog('onUpdateAccessoireQuantity');
39940
40033
  case 12:
39941
40034
  case "end":
39942
- return _context8.stop();
40035
+ return _context9.stop();
39943
40036
  }
39944
- }, _callee8);
40037
+ }, _callee9);
39945
40038
  }));
39946
- return function (_x30, _x31, _x32, _x33) {
39947
- return _ref8.apply(this, arguments);
40039
+ return function (_x35, _x36, _x37, _x38) {
40040
+ return _ref9.apply(this, arguments);
39948
40041
  };
39949
40042
  }());
39950
40043
  _defineProperty(this, "deleteAccessoire", /*#__PURE__*/function () {
39951
- var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(articleCodex, parentBasketId) {
40044
+ var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(articleCodex, parentBasketId) {
39952
40045
  var set, wasDeleted, _this$updateViewPlann6;
39953
- return _regeneratorRuntime.wrap(function _callee9$(_context9) {
39954
- while (1) switch (_context9.prev = _context9.next) {
40046
+ return _regeneratorRuntime.wrap(function _callee10$(_context10) {
40047
+ while (1) switch (_context10.prev = _context10.next) {
39955
40048
  case 0:
39956
40049
  set = _this.actSet();
39957
- _context9.next = 3;
40050
+ _context10.next = 3;
39958
40051
  return setHandlerInstance.deleteAccessoire(set, articleCodex, parentBasketId);
39959
40052
  case 3:
39960
- wasDeleted = _context9.sent;
40053
+ wasDeleted = _context10.sent;
39961
40054
  if (wasDeleted) {
39962
40055
  _this.updateConfigStructure();
39963
40056
  (_this$updateViewPlann6 = _this.updateViewPlannerElements) === null || _this$updateViewPlann6 === void 0 || _this$updateViewPlann6.call(_this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
@@ -39967,15 +40060,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39967
40060
  }
39968
40061
  _this.checkMatchingProducts('onAccessoireDelete');
39969
40062
  _this.plannerChangeLog('onDeletePlanner');
39970
- return _context9.abrupt("return", wasDeleted);
40063
+ return _context10.abrupt("return", wasDeleted);
39971
40064
  case 8:
39972
40065
  case "end":
39973
- return _context9.stop();
40066
+ return _context10.stop();
39974
40067
  }
39975
- }, _callee9);
40068
+ }, _callee10);
39976
40069
  }));
39977
- return function (_x34, _x35) {
39978
- return _ref9.apply(this, arguments);
40070
+ return function (_x39, _x40) {
40071
+ return _ref10.apply(this, arguments);
39979
40072
  };
39980
40073
  }());
39981
40074
  _defineProperty(this, "loadPaletteInfos", function (configStepKey, activeArticles, targetArticles) {
@@ -39998,13 +40091,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39998
40091
  * @param configStepKey act ConfigStep
39999
40092
  */
40000
40093
  _defineProperty(this, "configSingleIsChanged", /*#__PURE__*/function () {
40001
- var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(doConfigSingle, configStepKey, groupedOptions, groupedArticles, optionCodex, tabGroupKey) {
40094
+ var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(doConfigSingle, configStepKey, groupedOptions, groupedArticles, optionCodex, tabGroupKey) {
40002
40095
  var set;
40003
- return _regeneratorRuntime.wrap(function _callee10$(_context10) {
40004
- while (1) switch (_context10.prev = _context10.next) {
40096
+ return _regeneratorRuntime.wrap(function _callee11$(_context11) {
40097
+ while (1) switch (_context11.prev = _context11.next) {
40005
40098
  case 0:
40006
40099
  set = _this.actSet();
40007
- _context10.next = 3;
40100
+ _context11.next = 3;
40008
40101
  return setHandlerInstance.configSingleIsChanged(set, doConfigSingle, groupedOptions, groupedArticles);
40009
40102
  case 3:
40010
40103
  _this.updatePriceInView();
@@ -40014,15 +40107,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40014
40107
  configStepKey = setHandlerInstance.getNewConfigStepKeyInOption(set, configStepKey, optionCodex, tabGroupKey);
40015
40108
  _this.updatePlannerView('CONFIG_SINGLE_IS_CHANGED');
40016
40109
  }
40017
- return _context10.abrupt("return", configStepKey);
40110
+ return _context11.abrupt("return", configStepKey);
40018
40111
  case 7:
40019
40112
  case "end":
40020
- return _context10.stop();
40113
+ return _context11.stop();
40021
40114
  }
40022
- }, _callee10);
40115
+ }, _callee11);
40023
40116
  }));
40024
- return function (_x36, _x37, _x38, _x39, _x40, _x41) {
40025
- return _ref10.apply(this, arguments);
40117
+ return function (_x41, _x42, _x43, _x44, _x45, _x46) {
40118
+ return _ref11.apply(this, arguments);
40026
40119
  };
40027
40120
  }());
40028
40121
  /**
@@ -40036,23 +40129,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40036
40129
  */
40037
40130
  //onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
40038
40131
  _defineProperty(this, "doConfigure", /*#__PURE__*/function () {
40039
- var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents) {
40132
+ var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents) {
40040
40133
  var _this$actions13, _this$actions13$toggl, _this$actions14, _this$actions14$toggl;
40041
40134
  var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4;
40042
- return _regeneratorRuntime.wrap(function _callee11$(_context11) {
40043
- while (1) switch (_context11.prev = _context11.next) {
40135
+ return _regeneratorRuntime.wrap(function _callee12$(_context12) {
40136
+ while (1) switch (_context12.prev = _context12.next) {
40044
40137
  case 0:
40045
40138
  set = _this.actSet();
40046
40139
  (_this$actions13 = _this.actions) === null || _this$actions13 === void 0 || (_this$actions13$toggl = _this$actions13.toggleLoading) === null || _this$actions13$toggl === void 0 || _this$actions13$toggl.call(_this$actions13, 'doConfigure', false, true);
40047
- _context11.next = 4;
40140
+ _context12.next = 4;
40048
40141
  return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, myValues, targetArticles, undefined, 'FromViewClick');
40049
40142
  case 4:
40050
- returnValues = _context11.sent;
40143
+ returnValues = _context12.sent;
40051
40144
  (_this$actions14 = _this.actions) === null || _this$actions14 === void 0 || (_this$actions14$toggl = _this$actions14.toggleLoading) === null || _this$actions14$toggl === void 0 || _this$actions14$toggl.call(_this$actions14, 'doConfigure', false, false);
40052
40145
  structure = setHandlerInstance.loadConfigStructureOfActSet(set, _this.getCurPlannerType());
40053
40146
  _this.checkMatchingProducts('onConfig');
40054
40147
  if (dontUpdatePlannerView) {
40055
- _context11.next = 18;
40148
+ _context12.next = 18;
40056
40149
  break;
40057
40150
  }
40058
40151
  _this.updateConfiguratorStructure(structure);
@@ -40066,79 +40159,79 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40066
40159
  _this.updateViewButtonsDependigOnConfigStructure();
40067
40160
  _this.updatePlannerView('DO_CONFIGURE', myValues);
40068
40161
  _this.updateWebConfiguratorTitle();
40069
- _context11.next = 18;
40162
+ _context12.next = 18;
40070
40163
  return _this.getFreePlacesOnGrids(undefined, 'doConfigure');
40071
40164
  case 18:
40072
40165
  if (dontCallEvents) {
40073
- _context11.next = 21;
40166
+ _context12.next = 21;
40074
40167
  break;
40075
40168
  }
40076
- _context11.next = 21;
40169
+ _context12.next = 21;
40077
40170
  return _this.fillBaksetforOnWebPlanerConfigChange(myValues);
40078
40171
  case 21:
40079
40172
  _this.configuratorChangeLog('onConfiguratorStep', myValues);
40080
40173
  case 22:
40081
40174
  case "end":
40082
- return _context11.stop();
40175
+ return _context12.stop();
40083
40176
  }
40084
- }, _callee11);
40177
+ }, _callee12);
40085
40178
  }));
40086
- return function (_x42, _x43, _x44, _x45) {
40087
- return _ref11.apply(this, arguments);
40179
+ return function (_x47, _x48, _x49, _x50) {
40180
+ return _ref12.apply(this, arguments);
40088
40181
  };
40089
40182
  }());
40090
40183
  _defineProperty(this, "fillBaksetforOnWebPlanerConfigChange", /*#__PURE__*/function () {
40091
- var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(myValues, isInit) {
40184
+ var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(myValues, isInit) {
40092
40185
  var _myValues;
40093
40186
  var set, articles, article;
40094
- return _regeneratorRuntime.wrap(function _callee12$(_context12) {
40095
- while (1) switch (_context12.prev = _context12.next) {
40187
+ return _regeneratorRuntime.wrap(function _callee13$(_context13) {
40188
+ while (1) switch (_context13.prev = _context13.next) {
40096
40189
  case 0:
40097
40190
  if (_this.eventIsManagedByClient('onWebPlanerConfigChange')) {
40098
- _context12.next = 2;
40191
+ _context13.next = 2;
40099
40192
  break;
40100
40193
  }
40101
- return _context12.abrupt("return");
40194
+ return _context13.abrupt("return");
40102
40195
  case 2:
40103
40196
  set = _this.actSet();
40104
40197
  if (set) {
40105
- _context12.next = 5;
40198
+ _context13.next = 5;
40106
40199
  break;
40107
40200
  }
40108
- return _context12.abrupt("return");
40201
+ return _context13.abrupt("return");
40109
40202
  case 5:
40110
40203
  if (myValues) {
40111
- _context12.next = 11;
40204
+ _context13.next = 11;
40112
40205
  break;
40113
40206
  }
40114
40207
  //get first option of the first article
40115
40208
  articles = set.getDivaArticles();
40116
40209
  article = articles[Object.keys(articles)[0]];
40117
40210
  if (article) {
40118
- _context12.next = 10;
40211
+ _context13.next = 10;
40119
40212
  break;
40120
40213
  }
40121
- return _context12.abrupt("return");
40214
+ return _context13.abrupt("return");
40122
40215
  case 10:
40123
40216
  myValues = article === null || article === void 0 ? void 0 : article.VariantValuesWithoutFreetext;
40124
40217
  case 11:
40125
- _context12.t0 = _this.divaBasketHandler;
40126
- _context12.t1 = set;
40127
- _context12.next = 15;
40218
+ _context13.t0 = _this.divaBasketHandler;
40219
+ _context13.t1 = set;
40220
+ _context13.next = 15;
40128
40221
  return setHandlerInstance.fillOrderLinesAndOrderSets(_this.sets, _this.divaBasketHandler, true, _this.doAllowSetPlanner(), _this.ReturnTo);
40129
40222
  case 15:
40130
- _context12.t2 = _context12.sent;
40131
- _context12.t3 = Object.keys((_myValues = myValues) !== null && _myValues !== void 0 ? _myValues : {});
40132
- _context12.t4 = isInit;
40133
- return _context12.abrupt("return", _context12.t0.fillBaksetforOnWebPlanerConfigChange.call(_context12.t0, _context12.t1, _context12.t2, _context12.t3, _context12.t4));
40223
+ _context13.t2 = _context13.sent;
40224
+ _context13.t3 = Object.keys((_myValues = myValues) !== null && _myValues !== void 0 ? _myValues : {});
40225
+ _context13.t4 = isInit;
40226
+ return _context13.abrupt("return", _context13.t0.fillBaksetforOnWebPlanerConfigChange.call(_context13.t0, _context13.t1, _context13.t2, _context13.t3, _context13.t4));
40134
40227
  case 19:
40135
40228
  case "end":
40136
- return _context12.stop();
40229
+ return _context13.stop();
40137
40230
  }
40138
- }, _callee12);
40231
+ }, _callee13);
40139
40232
  }));
40140
- return function (_x46, _x47) {
40141
- return _ref12.apply(this, arguments);
40233
+ return function (_x51, _x52) {
40234
+ return _ref13.apply(this, arguments);
40142
40235
  };
40143
40236
  }());
40144
40237
  _defineProperty(this, "getPosNr", function (basketId) {
@@ -40176,10 +40269,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40176
40269
  return _createClass(DivaWebPlanner, [{
40177
40270
  key: "initialize",
40178
40271
  value: function () {
40179
- var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {
40272
+ var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
40180
40273
  var viewReadyPromise, loadSuccessful, _this$actions16, _set$getDivaArticles, _this$actions15, _this$actions15$toggl, initSetState, set, oldProductId, result, _this$actions17, catalogData, initializationId, _this$plannerConfig$a;
40181
- return _regeneratorRuntime.wrap(function _callee13$(_context13) {
40182
- while (1) switch (_context13.prev = _context13.next) {
40274
+ return _regeneratorRuntime.wrap(function _callee14$(_context14) {
40275
+ while (1) switch (_context14.prev = _context14.next) {
40183
40276
  case 0:
40184
40277
  this.api = new DivaApiHandler(this.plannerConfig, this.handler);
40185
40278
  this.api.setI18n(this.i18n);
@@ -40193,58 +40286,58 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40193
40286
  warningTime: 2000,
40194
40287
  errorTime: 4000
40195
40288
  });
40196
- _context13.next = 8;
40289
+ _context14.next = 8;
40197
40290
  return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
40198
40291
  case 8:
40199
40292
  this.plannerHandler = new DivaPlannerHandler(false);
40200
40293
  viewReadyPromise = this.initViewApiDependencies();
40201
- _context13.next = 12;
40294
+ _context14.next = 12;
40202
40295
  return this.divaBasketHandler.initializeBasket(this.api);
40203
40296
  case 12:
40204
- loadSuccessful = _context13.sent;
40297
+ loadSuccessful = _context14.sent;
40205
40298
  if (this.plannerConfig.configuratorSessionId === undefined && (!this.divaBasketHandler.hasConfiguratorSessionIdGetter || DivaUtils.businessMetrics.getConfiguratorSessionId() === undefined)) {
40206
40299
  DivaUtils.businessMetrics.setConfiguratorSessionId();
40207
40300
  }
40208
40301
  if (!loadSuccessful) {
40209
- _context13.next = 56;
40302
+ _context14.next = 56;
40210
40303
  break;
40211
40304
  }
40212
40305
  if (!(typeof loadSuccessful != 'boolean')) {
40213
- _context13.next = 24;
40306
+ _context14.next = 24;
40214
40307
  break;
40215
40308
  }
40216
40309
  if (!(loadSuccessful.type == 'ProductList')) {
40217
- _context13.next = 24;
40310
+ _context14.next = 24;
40218
40311
  break;
40219
40312
  }
40220
- _context13.next = 19;
40313
+ _context14.next = 19;
40221
40314
  return viewReadyPromise;
40222
40315
  case 19:
40223
- _context13.next = 21;
40316
+ _context14.next = 21;
40224
40317
  return this.initView();
40225
40318
  case 21:
40226
40319
  this.subscribeToWebPlannerEvents();
40227
40320
  (_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);
40228
- return _context13.abrupt("return", true);
40321
+ return _context14.abrupt("return", true);
40229
40322
  case 24:
40230
40323
  this.divaNr = this.divaBasketHandler.actDivaNr;
40231
40324
  initSetState = this.getInitStateForSet();
40232
40325
  this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
40233
- _context13.next = 29;
40326
+ _context14.next = 29;
40234
40327
  return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
40235
40328
  case 29:
40236
40329
  set = this.actSet();
40237
40330
  oldProductId = this.divaBasketHandler.actBasket.MatchingProductId || this.divaBasketHandler.actBasket.OrigProductId;
40238
40331
  if (!(oldProductId && set && set !== null && set !== void 0 && set.api.doCheckForProductsPrice())) {
40239
- _context13.next = 38;
40332
+ _context14.next = 38;
40240
40333
  break;
40241
40334
  }
40242
- _context13.next = 34;
40335
+ _context14.next = 34;
40243
40336
  return this.divaBasketHandler.getProduct(this.api, oldProductId);
40244
40337
  case 34:
40245
- result = _context13.sent;
40338
+ result = _context14.sent;
40246
40339
  if (result) productHandlerInstance.handleFountMatchingProducts(set, [result], set.setHash);
40247
- _context13.next = 39;
40340
+ _context14.next = 39;
40248
40341
  break;
40249
40342
  case 38:
40250
40343
  if (typeof loadSuccessful != 'boolean' && set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
@@ -40253,10 +40346,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40253
40346
  }
40254
40347
  }
40255
40348
  case 39:
40256
- _context13.next = 41;
40349
+ _context14.next = 41;
40257
40350
  return viewReadyPromise;
40258
40351
  case 41:
40259
- _context13.next = 43;
40352
+ _context14.next = 43;
40260
40353
  return this.initView();
40261
40354
  case 43:
40262
40355
  (_this$actions16 = this.actions) === null || _this$actions16 === void 0 || _this$actions16.onEvent({
@@ -40293,20 +40386,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40293
40386
  initializationType: this.divaBasketHandler.initializationTypeGetter,
40294
40387
  initializationId: initializationId
40295
40388
  }, false);
40296
- _context13.next = 53;
40389
+ _context14.next = 53;
40297
40390
  return this.fillBaksetforOnWebPlanerConfigChange(undefined, true);
40298
40391
  case 53:
40299
- return _context13.abrupt("return", true);
40392
+ return _context14.abrupt("return", true);
40300
40393
  case 56:
40301
40394
  this.onInitializationError();
40302
40395
  //fehler beim laden vom basket..
40303
40396
  LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
40304
- return _context13.abrupt("return", false);
40397
+ return _context14.abrupt("return", false);
40305
40398
  case 59:
40306
40399
  case "end":
40307
- return _context13.stop();
40400
+ return _context14.stop();
40308
40401
  }
40309
- }, _callee13, this);
40402
+ }, _callee14, this);
40310
40403
  }));
40311
40404
  function initialize() {
40312
40405
  return _initialize.apply(this, arguments);
@@ -40438,23 +40531,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40438
40531
  }, {
40439
40532
  key: "initView",
40440
40533
  value: (function () {
40441
- var _initView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
40534
+ var _initView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15() {
40442
40535
  var set, plannerMode, _this$initConfigurato, _this$initPlannerView, _this$initConfigurato2, _this$updateViewPlann9;
40443
- return _regeneratorRuntime.wrap(function _callee14$(_context14) {
40444
- while (1) switch (_context14.prev = _context14.next) {
40536
+ return _regeneratorRuntime.wrap(function _callee15$(_context15) {
40537
+ while (1) switch (_context15.prev = _context15.next) {
40445
40538
  case 0:
40446
40539
  set = this.actSet();
40447
40540
  plannerMode = this.getPlannerMode();
40448
40541
  this.initConfiguratorMode(plannerMode);
40449
40542
  if (!(plannerMode == 'ProductList')) {
40450
- _context14.next = 7;
40543
+ _context15.next = 7;
40451
40544
  break;
40452
40545
  }
40453
40546
  (_this$initConfigurato = this.initConfiguratorStructure) === null || _this$initConfigurato === void 0 || _this$initConfigurato.call(this, setHandlerInstance.loadConfigStructureForOnlyProductsList());
40454
- _context14.next = 17;
40547
+ _context15.next = 17;
40455
40548
  break;
40456
40549
  case 7:
40457
- _context14.next = 9;
40550
+ _context15.next = 9;
40458
40551
  return (_this$initPlannerView = this.initPlannerView) === null || _this$initPlannerView === void 0 ? void 0 : _this$initPlannerView.call(this);
40459
40552
  case 9:
40460
40553
  //first load the Configuratorstructure STARTCONFIG
@@ -40468,13 +40561,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40468
40561
  this.onBasketInitialized();
40469
40562
  this.checkMatchingProducts('onInit');
40470
40563
  case 17:
40471
- _context14.next = 19;
40564
+ _context15.next = 19;
40472
40565
  return this.runInitMode(plannerMode);
40473
40566
  case 19:
40474
40567
  case "end":
40475
- return _context14.stop();
40568
+ return _context15.stop();
40476
40569
  }
40477
- }, _callee14, this);
40570
+ }, _callee15, this);
40478
40571
  }));
40479
40572
  function initView() {
40480
40573
  return _initView.apply(this, arguments);
@@ -40495,26 +40588,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40495
40588
  }, {
40496
40589
  key: "runInitMode",
40497
40590
  value: function () {
40498
- var _runInitMode = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(plannerMode) {
40591
+ var _runInitMode = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(plannerMode) {
40499
40592
  var _this$state3;
40500
40593
  var doDefault, _this$navigateToTabGr2, configStepKey, _this$actSet5, _this$navigateToTabGr3, _this$navigateToTabGr4, _this$navigateToTabGr5;
40501
- return _regeneratorRuntime.wrap(function _callee15$(_context15) {
40502
- while (1) switch (_context15.prev = _context15.next) {
40594
+ return _regeneratorRuntime.wrap(function _callee16$(_context16) {
40595
+ while (1) switch (_context16.prev = _context16.next) {
40503
40596
  case 0:
40504
40597
  doDefault = true;
40505
40598
  if (!(this.plannerConfig.initMode == 'OPEN_LEAFLET_BARRIER' || this.plannerConfig.initMode == 'SHOW_PDF')) {
40506
- _context15.next = 10;
40599
+ _context16.next = 10;
40507
40600
  break;
40508
40601
  }
40509
40602
  if (this.plannerConfig.initMode == 'OPEN_LEAFLET_BARRIER') this.ReturnTo = 'OPEN_LEAFLET_BARRIER';
40510
40603
  if (this.plannerConfig.initMode == 'SHOW_PDF') this.ReturnTo = 'OPEN_PDF';
40511
40604
  (_this$navigateToTabGr2 = this.navigateToTabGroup) === null || _this$navigateToTabGr2 === void 0 || _this$navigateToTabGr2.call(this, 'SUMMARY', undefined, true);
40512
40605
  //TODO lea bug das hier ist nur ein temporäre lößung https://app.asana.com/0/1200869909950432/1200998848659806
40513
- _context15.next = 7;
40606
+ _context16.next = 7;
40514
40607
  return this.saveToBasketWrapper();
40515
40608
  case 7:
40516
40609
  doDefault = false;
40517
- _context15.next = 11;
40610
+ _context16.next = 11;
40518
40611
  break;
40519
40612
  case 10:
40520
40613
  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) {
@@ -40538,11 +40631,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40538
40631
  }
40539
40632
  case 12:
40540
40633
  case "end":
40541
- return _context15.stop();
40634
+ return _context16.stop();
40542
40635
  }
40543
- }, _callee15, this);
40636
+ }, _callee16, this);
40544
40637
  }));
40545
- function runInitMode(_x48) {
40638
+ function runInitMode(_x53) {
40546
40639
  return _runInitMode.apply(this, arguments);
40547
40640
  }
40548
40641
  return runInitMode;
@@ -40550,16 +40643,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40550
40643
  }, {
40551
40644
  key: "addSetToActPlanningByDivaNr",
40552
40645
  value: function () {
40553
- var _addSetToActPlanningByDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(divaNr) {
40646
+ var _addSetToActPlanningByDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(divaNr) {
40554
40647
  var _this$updateViewPlann10;
40555
40648
  var set, orderSets, i, orderset, lastSetToInitialize, loadedSet, articlesKeys;
40556
- return _regeneratorRuntime.wrap(function _callee16$(_context16) {
40557
- while (1) switch (_context16.prev = _context16.next) {
40649
+ return _regeneratorRuntime.wrap(function _callee17$(_context17) {
40650
+ while (1) switch (_context17.prev = _context17.next) {
40558
40651
  case 0:
40559
40652
  set = this.actSet();
40560
40653
  this.divaBasketHandler.updateDivaNrInBasket(divaNr);
40561
40654
  this.divaBasketHandler.setIgnoreInitObjectWhenInitializing();
40562
- _context16.next = 5;
40655
+ _context17.next = 5;
40563
40656
  return this.divaBasketHandler.initializeBasket(this.api);
40564
40657
  case 5:
40565
40658
  orderSets = this.divaBasketHandler.actBasket.OrderSets;
@@ -40567,30 +40660,30 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40567
40660
  i = 0;
40568
40661
  case 8:
40569
40662
  if (!(i < orderSets.length)) {
40570
- _context16.next = 24;
40663
+ _context17.next = 24;
40571
40664
  break;
40572
40665
  }
40573
40666
  orderset = orderSets[i];
40574
40667
  lastSetToInitialize = setHandlerInstance.getOrderSetShouldInitPlanner(orderSets, i);
40575
40668
  loadedSet = setHandlerInstance.findLoadedSet(this.sets, orderset.CatalogCodex, orderset.AccountGUID);
40576
40669
  if (!loadedSet) {
40577
- _context16.next = 18;
40670
+ _context17.next = 18;
40578
40671
  break;
40579
40672
  }
40580
- _context16.next = 15;
40673
+ _context17.next = 15;
40581
40674
  return setHandlerInstance.addOrderSetArticlesToExistingSet(loadedSet, orderset, lastSetToInitialize);
40582
40675
  case 15:
40583
40676
  this.checkMatchingProducts('onAdd');
40584
- _context16.next = 20;
40677
+ _context17.next = 20;
40585
40678
  break;
40586
40679
  case 18:
40587
- _context16.next = 20;
40680
+ _context17.next = 20;
40588
40681
  return setHandlerInstance.initSet(orderset, this.getInitStateForSet(), lastSetToInitialize);
40589
40682
  case 20:
40590
40683
  this.cleanUpEmptySets(true);
40591
40684
  case 21:
40592
40685
  i++;
40593
- _context16.next = 8;
40686
+ _context17.next = 8;
40594
40687
  break;
40595
40688
  case 24:
40596
40689
  this.divaBasketHandler.actBasket.OrderSets = [];
@@ -40602,11 +40695,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40602
40695
  this.loadPaletteInfos(undefined, [articlesKeys[0]], articlesKeys);
40603
40696
  case 31:
40604
40697
  case "end":
40605
- return _context16.stop();
40698
+ return _context17.stop();
40606
40699
  }
40607
- }, _callee16, this);
40700
+ }, _callee17, this);
40608
40701
  }));
40609
- function addSetToActPlanningByDivaNr(_x49) {
40702
+ function addSetToActPlanningByDivaNr(_x54) {
40610
40703
  return _addSetToActPlanningByDivaNr.apply(this, arguments);
40611
40704
  }
40612
40705
  return addSetToActPlanningByDivaNr;
@@ -40639,28 +40732,28 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40639
40732
  }, {
40640
40733
  key: "setActSetCurConfigStepKey",
40641
40734
  value: function () {
40642
- var _setActSetCurConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(curConfigStepKey) {
40735
+ var _setActSetCurConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(curConfigStepKey) {
40643
40736
  var set;
40644
- return _regeneratorRuntime.wrap(function _callee17$(_context17) {
40645
- while (1) switch (_context17.prev = _context17.next) {
40737
+ return _regeneratorRuntime.wrap(function _callee18$(_context18) {
40738
+ while (1) switch (_context18.prev = _context18.next) {
40646
40739
  case 0:
40647
40740
  set = this.actSet();
40648
40741
  if (set) {
40649
- _context17.next = 3;
40742
+ _context18.next = 3;
40650
40743
  break;
40651
40744
  }
40652
- return _context17.abrupt("return");
40745
+ return _context18.abrupt("return");
40653
40746
  case 3:
40654
40747
  set.ActConfigStepKey = curConfigStepKey;
40655
- _context17.next = 6;
40748
+ _context18.next = 6;
40656
40749
  return setHandlerInstance.updateNavigation(set);
40657
40750
  case 6:
40658
40751
  case "end":
40659
- return _context17.stop();
40752
+ return _context18.stop();
40660
40753
  }
40661
- }, _callee17, this);
40754
+ }, _callee18, this);
40662
40755
  }));
40663
- function setActSetCurConfigStepKey(_x50) {
40756
+ function setActSetCurConfigStepKey(_x55) {
40664
40757
  return _setActSetCurConfigStepKey.apply(this, arguments);
40665
40758
  }
40666
40759
  return setActSetCurConfigStepKey;
@@ -40809,17 +40902,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40809
40902
  }, {
40810
40903
  key: "deletePlannerElement",
40811
40904
  value: function () {
40812
- var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(setId, elementId, denyElementSelectionClear) {
40905
+ var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(setId, elementId, denyElementSelectionClear) {
40813
40906
  var _this$updateViewPlann11;
40814
40907
  var set, result, _this$updateElementSe5, _this$updateElementSe6;
40815
- return _regeneratorRuntime.wrap(function _callee18$(_context18) {
40816
- while (1) switch (_context18.prev = _context18.next) {
40908
+ return _regeneratorRuntime.wrap(function _callee19$(_context19) {
40909
+ while (1) switch (_context19.prev = _context19.next) {
40817
40910
  case 0:
40818
40911
  set = this.sets[setId];
40819
- _context18.next = 3;
40912
+ _context19.next = 3;
40820
40913
  return setHandlerInstance.deleteElementFromSetByElemId(set, elementId, true);
40821
40914
  case 3:
40822
- result = _context18.sent;
40915
+ result = _context19.sent;
40823
40916
  this.updateConfigStructure();
40824
40917
  (_this$updateViewPlann11 = this.updateViewPlannerElements) === null || _this$updateViewPlann11 === void 0 || _this$updateViewPlann11.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
40825
40918
  this.updatePlannerView('DELETE_PLANNER_ELEMENT');
@@ -40830,17 +40923,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40830
40923
  }
40831
40924
  this.updatePriceInView();
40832
40925
  this.checkMatchingProducts('onDelete');
40833
- _context18.next = 14;
40926
+ _context19.next = 14;
40834
40927
  return this.getFreePlacesOnGrids(undefined, 'deleteElement');
40835
40928
  case 14:
40836
40929
  this.plannerChangeLog('onDeletePlanner');
40837
40930
  case 15:
40838
40931
  case "end":
40839
- return _context18.stop();
40932
+ return _context19.stop();
40840
40933
  }
40841
- }, _callee18, this);
40934
+ }, _callee19, this);
40842
40935
  }));
40843
- function deletePlannerElement(_x51, _x52, _x53) {
40936
+ function deletePlannerElement(_x56, _x57, _x58) {
40844
40937
  return _deletePlannerElement.apply(this, arguments);
40845
40938
  }
40846
40939
  return deletePlannerElement;
@@ -40854,17 +40947,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40854
40947
  }, {
40855
40948
  key: "copyPlannerElement",
40856
40949
  value: (function () {
40857
- var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(setId, elementId, curConfigKey, copyInfo) {
40950
+ var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(setId, elementId, curConfigKey, copyInfo) {
40858
40951
  var _this$updateViewPlann12;
40859
40952
  var set, newSelectedArticle, newConfigStepKey, _this$updateElementSe7, baseArticle;
40860
- return _regeneratorRuntime.wrap(function _callee19$(_context19) {
40861
- while (1) switch (_context19.prev = _context19.next) {
40953
+ return _regeneratorRuntime.wrap(function _callee20$(_context20) {
40954
+ while (1) switch (_context20.prev = _context20.next) {
40862
40955
  case 0:
40863
40956
  set = this.sets[setId];
40864
- _context19.next = 3;
40957
+ _context20.next = 3;
40865
40958
  return setHandlerInstance.copyPlannerElement(set, elementId, copyInfo);
40866
40959
  case 3:
40867
- newSelectedArticle = _context19.sent;
40960
+ newSelectedArticle = _context20.sent;
40868
40961
  this.updateConfigStructure();
40869
40962
  (_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
40870
40963
  this.updatePlannerView('COPY_PLANNER_ELEMENT');
@@ -40878,14 +40971,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40878
40971
  (_this$updateElementSe7 = this.updateElementSelectionPlanner) === null || _this$updateElementSe7 === void 0 || _this$updateElementSe7.call(this, [baseArticle.setId], [baseArticle.elementId], true);
40879
40972
  }
40880
40973
  this.checkMatchingProducts('onCopy');
40881
- return _context19.abrupt("return", newConfigStepKey);
40974
+ return _context20.abrupt("return", newConfigStepKey);
40882
40975
  case 13:
40883
40976
  case "end":
40884
- return _context19.stop();
40977
+ return _context20.stop();
40885
40978
  }
40886
- }, _callee19, this);
40979
+ }, _callee20, this);
40887
40980
  }));
40888
- function copyPlannerElement(_x54, _x55, _x56, _x57) {
40981
+ function copyPlannerElement(_x59, _x60, _x61, _x62) {
40889
40982
  return _copyPlannerElement.apply(this, arguments);
40890
40983
  }
40891
40984
  return copyPlannerElement;
@@ -40914,33 +41007,33 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40914
41007
  }, {
40915
41008
  key: "getFreePlacesOnGrids",
40916
41009
  value: function () {
40917
- var _getFreePlacesOnGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(gridGroup, from) {
41010
+ var _getFreePlacesOnGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(gridGroup, from) {
40918
41011
  var _this$updateFreePlace;
40919
41012
  var set, freeShelfGrids, plannedShelfGrids;
40920
- return _regeneratorRuntime.wrap(function _callee20$(_context20) {
40921
- while (1) switch (_context20.prev = _context20.next) {
41013
+ return _regeneratorRuntime.wrap(function _callee21$(_context21) {
41014
+ while (1) switch (_context21.prev = _context21.next) {
40922
41015
  case 0:
40923
41016
  set = this.actSet();
40924
41017
  if (set) {
40925
- _context20.next = 3;
41018
+ _context21.next = 3;
40926
41019
  break;
40927
41020
  }
40928
41021
  throw new Error('getFreePlacesOnGrids: act set is not defined!');
40929
41022
  case 3:
40930
41023
  if (!gridGroup) {
40931
- _context20.next = 9;
41024
+ _context21.next = 9;
40932
41025
  break;
40933
41026
  }
40934
- _context20.next = 6;
41027
+ _context21.next = 6;
40935
41028
  return setHandlerInstance.getFreeShelfGrids(set, gridGroup);
40936
41029
  case 6:
40937
- _context20.t0 = _context20.sent;
40938
- _context20.next = 10;
41030
+ _context21.t0 = _context21.sent;
41031
+ _context21.next = 10;
40939
41032
  break;
40940
41033
  case 9:
40941
- _context20.t0 = undefined;
41034
+ _context21.t0 = undefined;
40942
41035
  case 10:
40943
- freeShelfGrids = _context20.t0;
41036
+ freeShelfGrids = _context21.t0;
40944
41037
  plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
40945
41038
  LOG$1.debug('TOULA', 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
40946
41039
  LOG$1.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
@@ -40948,17 +41041,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40948
41041
  freeShelfGrids: freeShelfGrids,
40949
41042
  plannedShelfGrids: plannedShelfGrids
40950
41043
  });
40951
- return _context20.abrupt("return", {
41044
+ return _context21.abrupt("return", {
40952
41045
  freeShelfGrids: freeShelfGrids,
40953
41046
  plannedShelfGrids: plannedShelfGrids
40954
41047
  });
40955
41048
  case 16:
40956
41049
  case "end":
40957
- return _context20.stop();
41050
+ return _context21.stop();
40958
41051
  }
40959
- }, _callee20, this);
41052
+ }, _callee21, this);
40960
41053
  }));
40961
- function getFreePlacesOnGrids(_x58, _x59) {
41054
+ function getFreePlacesOnGrids(_x63, _x64) {
40962
41055
  return _getFreePlacesOnGrids.apply(this, arguments);
40963
41056
  }
40964
41057
  return getFreePlacesOnGrids;
@@ -40975,36 +41068,36 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40975
41068
  }, {
40976
41069
  key: "moveShelfItemToGrid",
40977
41070
  value: function () {
40978
- var _moveShelfItemToGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(accessoireBasketId, parentBasketId, gridName, cellIndex) {
41071
+ var _moveShelfItemToGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(accessoireBasketId, parentBasketId, gridName, cellIndex) {
40979
41072
  var set, newGridId;
40980
- return _regeneratorRuntime.wrap(function _callee21$(_context21) {
40981
- while (1) switch (_context21.prev = _context21.next) {
41073
+ return _regeneratorRuntime.wrap(function _callee22$(_context22) {
41074
+ while (1) switch (_context22.prev = _context22.next) {
40982
41075
  case 0:
40983
41076
  set = this.actSet();
40984
41077
  if (set) {
40985
- _context21.next = 3;
41078
+ _context22.next = 3;
40986
41079
  break;
40987
41080
  }
40988
- return _context21.abrupt("return");
41081
+ return _context22.abrupt("return");
40989
41082
  case 3:
40990
- _context21.next = 5;
41083
+ _context22.next = 5;
40991
41084
  return setHandlerInstance.moveShelfItemToGrid(set, accessoireBasketId, parentBasketId, gridName, cellIndex);
40992
41085
  case 5:
40993
- newGridId = _context21.sent;
41086
+ newGridId = _context22.sent;
40994
41087
  this.updatePlannerView('MOVE_SHELF_ITEM');
40995
41088
  if (!newGridId) {
40996
- _context21.next = 10;
41089
+ _context22.next = 10;
40997
41090
  break;
40998
41091
  }
40999
- _context21.next = 10;
41092
+ _context22.next = 10;
41000
41093
  return this.getFreePlacesOnGrids(newGridId, 'move shelf');
41001
41094
  case 10:
41002
41095
  case "end":
41003
- return _context21.stop();
41096
+ return _context22.stop();
41004
41097
  }
41005
- }, _callee21, this);
41098
+ }, _callee22, this);
41006
41099
  }));
41007
- function moveShelfItemToGrid(_x60, _x61, _x62, _x63) {
41100
+ function moveShelfItemToGrid(_x65, _x66, _x67, _x68) {
41008
41101
  return _moveShelfItemToGrid.apply(this, arguments);
41009
41102
  }
41010
41103
  return moveShelfItemToGrid;
@@ -41012,27 +41105,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41012
41105
  }, {
41013
41106
  key: "resetArticle",
41014
41107
  value: function () {
41015
- var _resetArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(basketId) {
41108
+ var _resetArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(basketId) {
41016
41109
  var set;
41017
- return _regeneratorRuntime.wrap(function _callee22$(_context22) {
41018
- while (1) switch (_context22.prev = _context22.next) {
41110
+ return _regeneratorRuntime.wrap(function _callee23$(_context23) {
41111
+ while (1) switch (_context23.prev = _context23.next) {
41019
41112
  case 0:
41020
41113
  set = this.actSet();
41021
41114
  if (set) {
41022
- _context22.next = 3;
41115
+ _context23.next = 3;
41023
41116
  break;
41024
41117
  }
41025
- return _context22.abrupt("return");
41118
+ return _context23.abrupt("return");
41026
41119
  case 3:
41027
- _context22.next = 5;
41120
+ _context23.next = 5;
41028
41121
  return setHandlerInstance.resetArticle(set, basketId);
41029
41122
  case 5:
41030
41123
  case "end":
41031
- return _context22.stop();
41124
+ return _context23.stop();
41032
41125
  }
41033
- }, _callee22, this);
41126
+ }, _callee23, this);
41034
41127
  }));
41035
- function resetArticle(_x64) {
41128
+ function resetArticle(_x69) {
41036
41129
  return _resetArticle.apply(this, arguments);
41037
41130
  }
41038
41131
  return resetArticle;
@@ -41062,10 +41155,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41062
41155
  }, {
41063
41156
  key: "checkMatchingProducts",
41064
41157
  value: function () {
41065
- var _checkMatchingProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(from) {
41158
+ var _checkMatchingProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(from) {
41066
41159
  var set, _set$getMatchingProdu, _set$getMatchingOrigP, _set$getMatchingOrigP2, _set$getMatchingProdu2;
41067
- return _regeneratorRuntime.wrap(function _callee23$(_context23) {
41068
- while (1) switch (_context23.prev = _context23.next) {
41160
+ return _regeneratorRuntime.wrap(function _callee24$(_context24) {
41161
+ while (1) switch (_context24.prev = _context24.next) {
41069
41162
  case 0:
41070
41163
  set = this.actSet();
41071
41164
  if (set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
@@ -41079,20 +41172,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41079
41172
  }
41080
41173
  }
41081
41174
  if (!(set !== null && set !== void 0 && set.api.doCheckForProductsMatch())) {
41082
- _context23.next = 6;
41175
+ _context24.next = 6;
41083
41176
  break;
41084
41177
  }
41085
- _context23.next = 5;
41178
+ _context24.next = 5;
41086
41179
  return productHandlerInstance.updateProducts(this.setsAsArray, this.api, this.divaBasketHandler.divaWWSHandler, from);
41087
41180
  case 5:
41088
41181
  this.updatePriceInView();
41089
41182
  case 6:
41090
41183
  case "end":
41091
- return _context23.stop();
41184
+ return _context24.stop();
41092
41185
  }
41093
- }, _callee23, this);
41186
+ }, _callee24, this);
41094
41187
  }));
41095
- function checkMatchingProducts(_x65) {
41188
+ function checkMatchingProducts(_x70) {
41096
41189
  return _checkMatchingProducts.apply(this, arguments);
41097
41190
  }
41098
41191
  return checkMatchingProducts;
@@ -41169,7 +41262,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41169
41262
  }, {
41170
41263
  key: "saveToBasketWrapper",
41171
41264
  value: function () {
41172
- var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(event, repairOnly, force) {
41265
+ var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(event, repairOnly, force) {
41173
41266
  var _this$actions27,
41174
41267
  _this$actions27$toggl,
41175
41268
  _this$actions28,
@@ -41178,8 +41271,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41178
41271
  _this$actions32,
41179
41272
  _this$i18n14;
41180
41273
  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;
41181
- return _regeneratorRuntime.wrap(function _callee24$(_context24) {
41182
- while (1) switch (_context24.prev = _context24.next) {
41274
+ return _regeneratorRuntime.wrap(function _callee25$(_context25) {
41275
+ while (1) switch (_context25.prev = _context25.next) {
41183
41276
  case 0:
41184
41277
  returnTo = this.getReturnTo(event);
41185
41278
  finalEvent = {
@@ -41187,50 +41280,50 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41187
41280
  saveBasket: true
41188
41281
  };
41189
41282
  if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
41190
- _context24.next = 21;
41283
+ _context25.next = 21;
41191
41284
  break;
41192
41285
  }
41193
41286
  product = undefined;
41194
41287
  if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
41195
- _context24.next = 10;
41288
+ _context25.next = 10;
41196
41289
  break;
41197
41290
  }
41198
41291
  url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
41199
- _context24.next = 8;
41292
+ _context25.next = 8;
41200
41293
  return this.api.getDataCache(url, url, undefined, 'catalog');
41201
41294
  case 8:
41202
- _result = _context24.sent;
41295
+ _result = _context25.sent;
41203
41296
  product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
41204
41297
  case 10:
41205
- _context24.next = 12;
41298
+ _context25.next = 12;
41206
41299
  return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
41207
41300
  case 12:
41208
- finalEvent = _context24.sent;
41301
+ finalEvent = _context25.sent;
41209
41302
  if (finalEvent) {
41210
- _context24.next = 17;
41303
+ _context25.next = 17;
41211
41304
  break;
41212
41305
  }
41213
- return _context24.abrupt("return", 'canceled');
41306
+ return _context25.abrupt("return", 'canceled');
41214
41307
  case 17:
41215
41308
  if (!(!finalEvent.saveBasket && finalEvent.event)) {
41216
- _context24.next = 20;
41309
+ _context25.next = 20;
41217
41310
  break;
41218
41311
  }
41219
41312
  (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
41220
41313
  type: finalEvent.event
41221
41314
  });
41222
- return _context24.abrupt("return", 'canceled');
41315
+ return _context25.abrupt("return", 'canceled');
41223
41316
  case 20:
41224
41317
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
41225
41318
  case 21:
41226
41319
  (_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);
41227
- _context24.next = 24;
41320
+ _context25.next = 24;
41228
41321
  return this.saveToBasket(finalEvent.event, repairOnly, force);
41229
41322
  case 24:
41230
- result = _context24.sent;
41323
+ result = _context25.sent;
41231
41324
  (_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);
41232
41325
  if (!(result === 'canceled')) {
41233
- _context24.next = 30;
41326
+ _context25.next = 30;
41234
41327
  break;
41235
41328
  }
41236
41329
  LOG$1.error(new DivaError('failed to save Basket'));
@@ -41238,10 +41331,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41238
41331
  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() : '',
41239
41332
  accept: true
41240
41333
  });
41241
- return _context24.abrupt("return", result);
41334
+ return _context25.abrupt("return", result);
41242
41335
  case 30:
41243
- _context24.t0 = returnTo;
41244
- _context24.next = _context24.t0 === 'OPEN_PDF' ? 33 : _context24.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : 36;
41336
+ _context25.t0 = returnTo;
41337
+ _context25.next = _context25.t0 === 'OPEN_PDF' ? 33 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : 36;
41245
41338
  break;
41246
41339
  case 33:
41247
41340
  if (!this.getBasket().PDFDocumentURL) {
@@ -41261,7 +41354,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41261
41354
  }
41262
41355
  });
41263
41356
  }
41264
- return _context24.abrupt("break", 36);
41357
+ return _context25.abrupt("break", 36);
41265
41358
  case 35:
41266
41359
  (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
41267
41360
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
@@ -41269,20 +41362,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41269
41362
  });
41270
41363
  case 36:
41271
41364
  if (!(result == 'noArticleToSave')) {
41272
- _context24.next = 39;
41365
+ _context25.next = 39;
41273
41366
  break;
41274
41367
  }
41275
41368
  (_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
41276
- return _context24.abrupt("return", 'canceled');
41369
+ return _context25.abrupt("return", 'canceled');
41277
41370
  case 39:
41278
- return _context24.abrupt("return", result);
41371
+ return _context25.abrupt("return", result);
41279
41372
  case 40:
41280
41373
  case "end":
41281
- return _context24.stop();
41374
+ return _context25.stop();
41282
41375
  }
41283
- }, _callee24, this);
41376
+ }, _callee25, this);
41284
41377
  }));
41285
- function saveToBasketWrapper(_x66, _x67, _x68) {
41378
+ function saveToBasketWrapper(_x71, _x72, _x73) {
41286
41379
  return _saveToBasketWrapper.apply(this, arguments);
41287
41380
  }
41288
41381
  return saveToBasketWrapper;
@@ -41290,43 +41383,43 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41290
41383
  }, {
41291
41384
  key: "saveToBasket",
41292
41385
  value: function () {
41293
- var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(event, repairOnly, force) {
41386
+ var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
41294
41387
  var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
41295
41388
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
41296
- return _regeneratorRuntime.wrap(function _callee25$(_context25) {
41297
- while (1) switch (_context25.prev = _context25.next) {
41389
+ return _regeneratorRuntime.wrap(function _callee26$(_context26) {
41390
+ while (1) switch (_context26.prev = _context26.next) {
41298
41391
  case 0:
41299
41392
  set = this.actSet();
41300
41393
  if (!(setHandlerInstance.isNoArticleToSave(this.sets) && !force)) {
41301
- _context25.next = 3;
41394
+ _context26.next = 3;
41302
41395
  break;
41303
41396
  }
41304
- return _context25.abrupt("return", 'noArticleToSave');
41397
+ return _context26.abrupt("return", 'noArticleToSave');
41305
41398
  case 3:
41306
41399
  actBasket = this.divaBasketHandler.actBasket;
41307
41400
  returnTo = this.getReturnTo(event);
41308
41401
  if (!((_returnTo = returnTo) !== null && _returnTo !== void 0 && _returnTo.startsWith('FAVORITS') && favoritesHandlerInstance.FavoritesDefined(set))) {
41309
- _context25.next = 13;
41402
+ _context26.next = 13;
41310
41403
  break;
41311
41404
  }
41312
41405
  oldReturnTo = returnTo;
41313
41406
  this.ReturnTo = returnTo.replace('FAVORITS_', '');
41314
- _context25.next = 10;
41407
+ _context26.next = 10;
41315
41408
  return this.handleFavorites('SAVE');
41316
41409
  case 10:
41317
- result = _context25.sent;
41410
+ result = _context26.sent;
41318
41411
  if (result === 'canceled') {
41319
41412
  this.ReturnTo = oldReturnTo;
41320
41413
  }
41321
- return _context25.abrupt("return", result);
41414
+ return _context26.abrupt("return", result);
41322
41415
  case 13:
41323
- _context25.t0 = this.divaBasketHandler;
41324
- _context25.t1 = this.divaBasketHandler.actDivaNr;
41325
- _context25.next = 17;
41416
+ _context26.t0 = this.divaBasketHandler;
41417
+ _context26.t1 = this.divaBasketHandler.actDivaNr;
41418
+ _context26.next = 17;
41326
41419
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !!repairOnly, this.doAllowSetPlanner(), this.ReturnTo);
41327
41420
  case 17:
41328
- _context25.t2 = _context25.sent;
41329
- _context25.t0.setBasketData.call(_context25.t0, _context25.t1, _context25.t2);
41421
+ _context26.t2 = _context26.sent;
41422
+ _context26.t0.setBasketData.call(_context26.t0, _context26.t1, _context26.t2);
41330
41423
  if ((_returnTo2 = returnTo) !== null && _returnTo2 !== void 0 && _returnTo2.endsWith('OPEN_SELLER_BASKET')) {
41331
41424
  this.ReturnTo = 'OPEN_SELLER_BASKET';
41332
41425
  returnTo = this.ReturnTo;
@@ -41341,11 +41434,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41341
41434
  this.divaBasketHandler.fillOrigConfigurations();
41342
41435
  actBasket.Updated = Date.now();
41343
41436
  if (!returnTo) {
41344
- _context25.next = 52;
41437
+ _context26.next = 52;
41345
41438
  break;
41346
41439
  }
41347
- _context25.t3 = returnTo;
41348
- _context25.next = _context25.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 28 : _context25.t3 === 'OPEN_SELLER_BASKET' ? 31 : _context25.t3 === 'OPEN_PDF' ? 33 : _context25.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context25.t3 === 'SAVE_BASKET' ? 33 : _context25.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context25.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 52;
41440
+ _context26.t3 = returnTo;
41441
+ _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;
41349
41442
  break;
41350
41443
  case 28:
41351
41444
  (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
@@ -41359,7 +41452,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41359
41452
  basketData: actBasket
41360
41453
  }
41361
41454
  });
41362
- return _context25.abrupt("break", 52);
41455
+ return _context26.abrupt("break", 52);
41363
41456
  case 31:
41364
41457
  (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
41365
41458
  type: 'SELLER',
@@ -41371,23 +41464,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41371
41464
  basketData: actBasket
41372
41465
  }
41373
41466
  });
41374
- return _context25.abrupt("break", 52);
41467
+ return _context26.abrupt("break", 52);
41375
41468
  case 33:
41376
41469
  if (!(event == 'onSaveProduct')) {
41377
- _context25.next = 43;
41470
+ _context26.next = 43;
41378
41471
  break;
41379
41472
  }
41380
41473
  //copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
41381
41474
  actBasket = new BasketData(JSON.parse(JSON.stringify(actBasket)));
41382
- _context25.next = 37;
41475
+ _context26.next = 37;
41383
41476
  return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
41384
41477
  case 37:
41385
- _context25.next = 39;
41478
+ _context26.next = 39;
41386
41479
  return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
41387
41480
  case 39:
41388
- newDivaNr = _context25.sent;
41481
+ newDivaNr = _context26.sent;
41389
41482
  actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
41390
- _context25.next = 51;
41483
+ _context26.next = 51;
41391
41484
  break;
41392
41485
  case 43:
41393
41486
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
@@ -41396,32 +41489,32 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41396
41489
  }
41397
41490
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
41398
41491
  actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
41399
- _context25.next = 48;
41492
+ _context26.next = 48;
41400
41493
  return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo);
41401
41494
  case 48:
41402
- _result2 = _context25.sent;
41495
+ _result2 = _context26.sent;
41403
41496
  if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
41404
- _context25.next = 51;
41497
+ _context26.next = 51;
41405
41498
  break;
41406
41499
  }
41407
- return _context25.abrupt("return", 'canceled');
41500
+ return _context26.abrupt("return", 'canceled');
41408
41501
  case 51:
41409
- return _context25.abrupt("break", 52);
41502
+ return _context26.abrupt("break", 52);
41410
41503
  case 52:
41411
41504
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
41412
41505
  actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
41413
- _context25.next = 56;
41506
+ _context26.next = 56;
41414
41507
  return this.addToBasket(actBasket, event);
41415
41508
  case 56:
41416
- product = _context25.sent;
41417
- return _context25.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
41509
+ product = _context26.sent;
41510
+ return _context26.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
41418
41511
  case 58:
41419
41512
  case "end":
41420
- return _context25.stop();
41513
+ return _context26.stop();
41421
41514
  }
41422
- }, _callee25, this);
41515
+ }, _callee26, this);
41423
41516
  }));
41424
- function saveToBasket(_x69, _x70, _x71) {
41517
+ function saveToBasket(_x74, _x75, _x76) {
41425
41518
  return _saveToBasket.apply(this, arguments);
41426
41519
  }
41427
41520
  return saveToBasket;
@@ -41655,23 +41748,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41655
41748
  }, {
41656
41749
  key: "getBasketDataWithEkText",
41657
41750
  value: function () {
41658
- var _getBasketDataWithEkText = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26() {
41659
- return _regeneratorRuntime.wrap(function _callee26$(_context26) {
41660
- while (1) switch (_context26.prev = _context26.next) {
41751
+ var _getBasketDataWithEkText = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27() {
41752
+ return _regeneratorRuntime.wrap(function _callee27$(_context27) {
41753
+ while (1) switch (_context27.prev = _context27.next) {
41661
41754
  case 0:
41662
- _context26.t0 = this.divaBasketHandler;
41663
- _context26.t1 = this.divaBasketHandler.actDivaNr;
41664
- _context26.next = 4;
41755
+ _context27.t0 = this.divaBasketHandler;
41756
+ _context27.t1 = this.divaBasketHandler.actDivaNr;
41757
+ _context27.next = 4;
41665
41758
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, true, this.doAllowSetPlanner(), this.ReturnTo);
41666
41759
  case 4:
41667
- _context26.t2 = _context26.sent;
41668
- _context26.t0.setBasketData.call(_context26.t0, _context26.t1, _context26.t2);
41669
- return _context26.abrupt("return", this.divaBasketHandler.actBasket);
41760
+ _context27.t2 = _context27.sent;
41761
+ _context27.t0.setBasketData.call(_context27.t0, _context27.t1, _context27.t2);
41762
+ return _context27.abrupt("return", this.divaBasketHandler.actBasket);
41670
41763
  case 7:
41671
41764
  case "end":
41672
- return _context26.stop();
41765
+ return _context27.stop();
41673
41766
  }
41674
- }, _callee26, this);
41767
+ }, _callee27, this);
41675
41768
  }));
41676
41769
  function getBasketDataWithEkText() {
41677
41770
  return _getBasketDataWithEkText.apply(this, arguments);
@@ -41697,7 +41790,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41697
41790
  }, {
41698
41791
  key: "addToBasket",
41699
41792
  value: function () {
41700
- var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(actBasket) {
41793
+ var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(actBasket) {
41701
41794
  var _this$actions36,
41702
41795
  _this$actions37,
41703
41796
  _this$actions38,
@@ -41716,44 +41809,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41716
41809
  to,
41717
41810
  variants,
41718
41811
  products,
41719
- _args27 = arguments;
41720
- return _regeneratorRuntime.wrap(function _callee27$(_context27) {
41721
- while (1) switch (_context27.prev = _context27.next) {
41812
+ _args28 = arguments;
41813
+ return _regeneratorRuntime.wrap(function _callee28$(_context28) {
41814
+ while (1) switch (_context28.prev = _context28.next) {
41722
41815
  case 0:
41723
- event = _args27.length > 1 && _args27[1] !== undefined ? _args27[1] : 'onAddToBasket';
41724
- _context27.t0 = event;
41725
- _context27.next = _context27.t0 === 'onWebPlanerPrint' ? 5 : _context27.t0 === 'onWebPlanerSave' ? 7 : _context27.t0 === 'onWebPlanerShare' ? 9 : _context27.t0 === 'onRequestConsulation' ? 11 : _context27.t0 === 'onSave' ? 13 : _context27.t0 === 'onSendEmail' ? 15 : _context27.t0 === 'onSaveProduct' ? 20 : _context27.t0 === 'dontSaveBasket' ? 27 : _context27.t0 === 'onAddToBasket' ? 28 : 30;
41816
+ event = _args28.length > 1 && _args28[1] !== undefined ? _args28[1] : 'onAddToBasket';
41817
+ _context28.t0 = event;
41818
+ _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 : 30;
41726
41819
  break;
41727
41820
  case 5:
41728
41821
  (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41729
41822
  type: 'onWebPlanerPrint',
41730
41823
  data: actBasket.getAsJson()
41731
41824
  });
41732
- return _context27.abrupt("break", 32);
41825
+ return _context28.abrupt("break", 32);
41733
41826
  case 7:
41734
41827
  (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41735
41828
  type: 'onWebPlanerSave',
41736
41829
  data: actBasket.getAsJson()
41737
41830
  });
41738
- return _context27.abrupt("break", 32);
41831
+ return _context28.abrupt("break", 32);
41739
41832
  case 9:
41740
41833
  (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41741
41834
  type: 'onWebPlanerShare',
41742
41835
  data: actBasket.getAsJson()
41743
41836
  });
41744
- return _context27.abrupt("break", 32);
41837
+ return _context28.abrupt("break", 32);
41745
41838
  case 11:
41746
41839
  (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41747
41840
  type: 'onRequestConsulation',
41748
41841
  data: actBasket.getAsJson()
41749
41842
  });
41750
- return _context27.abrupt("break", 32);
41843
+ return _context28.abrupt("break", 32);
41751
41844
  case 13:
41752
41845
  (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41753
41846
  type: 'onSave',
41754
41847
  data: actBasket.getAsJson()
41755
41848
  });
41756
- return _context27.abrupt("break", 32);
41849
+ return _context28.abrupt("break", 32);
41757
41850
  case 15:
41758
41851
  emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
41759
41852
  this.divaBasketHandler.emailConfig = undefined;
@@ -41788,44 +41881,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41788
41881
  type: 'onAddToBasket',
41789
41882
  data: actBasket.getAsJson()
41790
41883
  });
41791
- return _context27.abrupt("break", 32);
41884
+ return _context28.abrupt("break", 32);
41792
41885
  case 20:
41793
41886
  this.actSet().CatalogData;
41794
- _context27.next = 23;
41887
+ _context28.next = 23;
41795
41888
  return this.api.saveAsProduct(this.sets, actBasket);
41796
41889
  case 23:
41797
- products = _context27.sent;
41890
+ products = _context28.sent;
41798
41891
  (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41799
41892
  type: 'onAddToBasket',
41800
41893
  data: actBasket.getAsJson()
41801
41894
  });
41802
41895
  if (!products) {
41803
- _context27.next = 27;
41896
+ _context28.next = 27;
41804
41897
  break;
41805
41898
  }
41806
- return _context27.abrupt("return", products[0]);
41899
+ return _context28.abrupt("return", products[0]);
41807
41900
  case 27:
41808
41901
  case 28:
41809
41902
  (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41810
41903
  type: 'onAddToBasket',
41811
41904
  data: actBasket.getAsJson()
41812
41905
  });
41813
- return _context27.abrupt("break", 32);
41906
+ return _context28.abrupt("break", 32);
41814
41907
  case 30:
41815
41908
  (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
41816
41909
  type: event,
41817
41910
  data: actBasket.getAsJson()
41818
41911
  });
41819
- return _context27.abrupt("break", 32);
41912
+ return _context28.abrupt("break", 32);
41820
41913
  case 32:
41821
- return _context27.abrupt("return");
41914
+ return _context28.abrupt("return");
41822
41915
  case 33:
41823
41916
  case "end":
41824
- return _context27.stop();
41917
+ return _context28.stop();
41825
41918
  }
41826
- }, _callee27, this);
41919
+ }, _callee28, this);
41827
41920
  }));
41828
- function addToBasket(_x72) {
41921
+ function addToBasket(_x77) {
41829
41922
  return _addToBasket.apply(this, arguments);
41830
41923
  }
41831
41924
  return addToBasket;
@@ -42095,9 +42188,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42095
42188
  key: "initApiForLogicOnly",
42096
42189
  value: //just for testing purposes
42097
42190
  function () {
42098
- var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
42099
- return _regeneratorRuntime.wrap(function _callee28$(_context28) {
42100
- while (1) switch (_context28.prev = _context28.next) {
42191
+ var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
42192
+ return _regeneratorRuntime.wrap(function _callee29$(_context29) {
42193
+ while (1) switch (_context29.prev = _context29.next) {
42101
42194
  case 0:
42102
42195
  //empty services
42103
42196
  this.api = new DivaApiHandler(_objectSpread$5(_objectSpread$5({}, this.plannerConfig), {}, {
@@ -42110,17 +42203,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42110
42203
  jwt: jwt,
42111
42204
  apiKey: apiKey
42112
42205
  }), handler);
42113
- _context28.next = 3;
42206
+ _context29.next = 3;
42114
42207
  return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
42115
42208
  case 3:
42116
42209
  this.plannerHandler = new DivaPlannerHandler(true);
42117
42210
  case 4:
42118
42211
  case "end":
42119
- return _context28.stop();
42212
+ return _context29.stop();
42120
42213
  }
42121
- }, _callee28, this);
42214
+ }, _callee29, this);
42122
42215
  }));
42123
- function initApiForLogicOnly(_x73, _x74, _x75, _x76, _x77, _x78, _x79) {
42216
+ function initApiForLogicOnly(_x78, _x79, _x80, _x81, _x82, _x83, _x84) {
42124
42217
  return _initApiForLogicOnly.apply(this, arguments);
42125
42218
  }
42126
42219
  return initApiForLogicOnly;
@@ -42133,16 +42226,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42133
42226
  }, {
42134
42227
  key: "loadBasket",
42135
42228
  value: function () {
42136
- var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29() {
42137
- return _regeneratorRuntime.wrap(function _callee29$(_context29) {
42138
- while (1) switch (_context29.prev = _context29.next) {
42229
+ var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30() {
42230
+ return _regeneratorRuntime.wrap(function _callee30$(_context30) {
42231
+ while (1) switch (_context30.prev = _context30.next) {
42139
42232
  case 0:
42140
- return _context29.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
42233
+ return _context30.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
42141
42234
  case 1:
42142
42235
  case "end":
42143
- return _context29.stop();
42236
+ return _context30.stop();
42144
42237
  }
42145
- }, _callee29, this);
42238
+ }, _callee30, this);
42146
42239
  }));
42147
42240
  function loadBasket() {
42148
42241
  return _loadBasket.apply(this, arguments);
@@ -42157,39 +42250,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42157
42250
  }, {
42158
42251
  key: "initBasket",
42159
42252
  value: function () {
42160
- var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(init3D, ignoreFavorites) {
42253
+ var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites) {
42161
42254
  var initSetState, set, basket;
42162
- return _regeneratorRuntime.wrap(function _callee30$(_context30) {
42163
- while (1) switch (_context30.prev = _context30.next) {
42255
+ return _regeneratorRuntime.wrap(function _callee31$(_context31) {
42256
+ while (1) switch (_context31.prev = _context31.next) {
42164
42257
  case 0:
42165
42258
  this.divaNr = this.divaBasketHandler.actDivaNr;
42166
42259
  initSetState = this.getInitStateForSet(!init3D);
42167
42260
  this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
42168
- _context30.next = 5;
42261
+ _context31.next = 5;
42169
42262
  return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
42170
42263
  case 5:
42171
42264
  //TODO check if when basket gets repaired the product match gets called
42172
42265
  set = this.actSet();
42173
42266
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
42174
42267
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
42175
- _context30.next = 10;
42268
+ _context31.next = 10;
42176
42269
  break;
42177
42270
  }
42178
- _context30.next = 10;
42271
+ _context31.next = 10;
42179
42272
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
42180
42273
  case 10:
42181
- _context30.next = 12;
42274
+ _context31.next = 12;
42182
42275
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
42183
42276
  case 12:
42184
- basket = _context30.sent;
42185
- return _context30.abrupt("return", basket);
42277
+ basket = _context31.sent;
42278
+ return _context31.abrupt("return", basket);
42186
42279
  case 14:
42187
42280
  case "end":
42188
- return _context30.stop();
42281
+ return _context31.stop();
42189
42282
  }
42190
- }, _callee30, this);
42283
+ }, _callee31, this);
42191
42284
  }));
42192
- function initBasket(_x80, _x81) {
42285
+ function initBasket(_x85, _x86) {
42193
42286
  return _initBasket.apply(this, arguments);
42194
42287
  }
42195
42288
  return initBasket;
@@ -42203,21 +42296,21 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42203
42296
  }, {
42204
42297
  key: "getValidVariantsLength",
42205
42298
  value: function () {
42206
- var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
42299
+ var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
42207
42300
  var set;
42208
- return _regeneratorRuntime.wrap(function _callee31$(_context31) {
42209
- while (1) switch (_context31.prev = _context31.next) {
42301
+ return _regeneratorRuntime.wrap(function _callee32$(_context32) {
42302
+ while (1) switch (_context32.prev = _context32.next) {
42210
42303
  case 0:
42211
42304
  set = this.actSet();
42212
- _context31.next = 3;
42305
+ _context32.next = 3;
42213
42306
  return favoritesHandlerInstance.getValidVariants(set, true);
42214
42307
  case 3:
42215
- return _context31.abrupt("return", _context31.sent.length);
42308
+ return _context32.abrupt("return", _context32.sent.length);
42216
42309
  case 4:
42217
42310
  case "end":
42218
- return _context31.stop();
42311
+ return _context32.stop();
42219
42312
  }
42220
- }, _callee31, this);
42313
+ }, _callee32, this);
42221
42314
  }));
42222
42315
  function getValidVariantsLength() {
42223
42316
  return _getValidVariantsLength.apply(this, arguments);
@@ -42227,46 +42320,46 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42227
42320
  }, {
42228
42321
  key: "handleFavorites",
42229
42322
  value: function () {
42230
- var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(mode) {
42323
+ var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(mode) {
42231
42324
  var _this5 = this;
42232
42325
  var set, i;
42233
- return _regeneratorRuntime.wrap(function _callee32$(_context32) {
42234
- while (1) switch (_context32.prev = _context32.next) {
42326
+ return _regeneratorRuntime.wrap(function _callee33$(_context33) {
42327
+ while (1) switch (_context33.prev = _context33.next) {
42235
42328
  case 0:
42236
42329
  set = this.actSet();
42237
42330
  i = 0;
42238
42331
  case 2:
42239
42332
  if (!favoritesHandlerInstance.IsCalcForSummary) {
42240
- _context32.next = 11;
42333
+ _context33.next = 11;
42241
42334
  break;
42242
42335
  }
42243
- _context32.next = 5;
42336
+ _context33.next = 5;
42244
42337
  return DivaUtils.Sleep(200);
42245
42338
  case 5:
42246
42339
  i++;
42247
42340
  if (!(i > 1000)) {
42248
- _context32.next = 9;
42341
+ _context33.next = 9;
42249
42342
  break;
42250
42343
  }
42251
42344
  LOG$1.error(new DivaError('error on generating Variants of Summary'));
42252
- return _context32.abrupt("break", 11);
42345
+ return _context33.abrupt("break", 11);
42253
42346
  case 9:
42254
- _context32.next = 2;
42347
+ _context33.next = 2;
42255
42348
  break;
42256
42349
  case 11:
42257
- _context32.next = 13;
42350
+ _context33.next = 13;
42258
42351
  return favoritesHandlerInstance.handleFavorites(set, mode, this.divaBasketHandler.actBasket, this.saveToBasketWrapper.bind(this), this.doConfigure.bind(this), function () {
42259
42352
  return _this5.update2DGrid(set);
42260
42353
  }, this.actions);
42261
42354
  case 13:
42262
- return _context32.abrupt("return", _context32.sent);
42355
+ return _context33.abrupt("return", _context33.sent);
42263
42356
  case 14:
42264
42357
  case "end":
42265
- return _context32.stop();
42358
+ return _context33.stop();
42266
42359
  }
42267
- }, _callee32, this);
42360
+ }, _callee33, this);
42268
42361
  }));
42269
- function handleFavorites(_x82) {
42362
+ function handleFavorites(_x87) {
42270
42363
  return _handleFavorites.apply(this, arguments);
42271
42364
  }
42272
42365
  return handleFavorites;
@@ -42279,48 +42372,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42279
42372
  }, {
42280
42373
  key: "initSapOrderLinesFromBasket",
42281
42374
  value: function () {
42282
- var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(divaNr, init3D, onlyLoadOldBakset) {
42375
+ var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(divaNr, init3D, onlyLoadOldBakset) {
42283
42376
  var result, oldBasket, basket;
42284
- return _regeneratorRuntime.wrap(function _callee33$(_context33) {
42285
- while (1) switch (_context33.prev = _context33.next) {
42377
+ return _regeneratorRuntime.wrap(function _callee34$(_context34) {
42378
+ while (1) switch (_context34.prev = _context34.next) {
42286
42379
  case 0:
42287
42380
  if (divaNr) this.divaBasketHandler.updateDivaNrInBasket(divaNr);
42288
- _context33.next = 3;
42381
+ _context34.next = 3;
42289
42382
  return this.loadBasket();
42290
42383
  case 3:
42291
- result = _context33.sent;
42384
+ result = _context34.sent;
42292
42385
  if (!onlyLoadOldBakset) {
42293
- _context33.next = 6;
42386
+ _context34.next = 6;
42294
42387
  break;
42295
42388
  }
42296
- return _context33.abrupt("return", {
42389
+ return _context34.abrupt("return", {
42297
42390
  oldBasket: new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket))),
42298
42391
  cache: {}
42299
42392
  });
42300
42393
  case 6:
42301
42394
  if (!(result === false)) {
42302
- _context33.next = 8;
42395
+ _context34.next = 8;
42303
42396
  break;
42304
42397
  }
42305
42398
  throw new Error('Could not load basket! ' + divaNr);
42306
42399
  case 8:
42307
42400
  oldBasket = new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket)));
42308
- _context33.next = 11;
42401
+ _context34.next = 11;
42309
42402
  return this.initBasket(init3D);
42310
42403
  case 11:
42311
- basket = _context33.sent;
42312
- return _context33.abrupt("return", {
42404
+ basket = _context34.sent;
42405
+ return _context34.abrupt("return", {
42313
42406
  basket: basket,
42314
42407
  oldBasket: oldBasket,
42315
42408
  cache: this.api.getJsonDataCache()
42316
42409
  });
42317
42410
  case 13:
42318
42411
  case "end":
42319
- return _context33.stop();
42412
+ return _context34.stop();
42320
42413
  }
42321
- }, _callee33, this);
42414
+ }, _callee34, this);
42322
42415
  }));
42323
- function initSapOrderLinesFromBasket(_x83, _x84, _x85) {
42416
+ function initSapOrderLinesFromBasket(_x88, _x89, _x90) {
42324
42417
  return _initSapOrderLinesFromBasket.apply(this, arguments);
42325
42418
  }
42326
42419
  return initSapOrderLinesFromBasket;
@@ -42978,6 +43071,8 @@ var Grid = /*#__PURE__*/function () {
42978
43071
  _defineProperty(this, "articleRelationsForOtherGroups", void 0);
42979
43072
  //if in theis grid an shelfaccessoire is planned laod this article aswell
42980
43073
  _defineProperty(this, "montageOptions", void 0);
43074
+ //disableCellsByFreeText
43075
+ _defineProperty(this, "disableCellsByMeasures", void 0);
42981
43076
  //this option gets triggered when the shelfplanner is visible and set back when navigating out of shelfstep
42982
43077
  _defineProperty(this, "visitOption", void 0);
42983
43078
  //this field allows the shelfplanner on the rule the cellCount and ArticleRelations can change
@@ -43003,6 +43098,7 @@ var Grid = /*#__PURE__*/function () {
43003
43098
  this.showAfterOPT = data.ShowAfterOPT;
43004
43099
  this.showOnRule = grid.ShowOnRule;
43005
43100
  this.montageOptions = grid.MontageOptions;
43101
+ this.disableCellsByMeasures = grid.DisableCellsByMeasures;
43006
43102
  this.visitOption = grid.VisitOption;
43007
43103
  this.shelfId = 'SHELFARTICLE_' + article.basketId + '_' + index;
43008
43104
  this.heightGridCellCountOnRule = data.ShelfPlanner[index].HeightGridCellCountOnRule;
@@ -43338,7 +43434,7 @@ var Grid = /*#__PURE__*/function () {
43338
43434
  case 2:
43339
43435
  dontOverwriteOptions = [];
43340
43436
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
43341
- var option, inUseCell, specificAccessoire, options, j, optionCodex, montageOptionState, _this$article$shelfAc;
43437
+ var option, inUseCell, specificAccessoire, options, j, optionCodex, montageOptionState, _this$article$shelfAc, rest;
43342
43438
  return _regeneratorRuntime.wrap(function _loop$(_context4) {
43343
43439
  while (1) switch (_context4.prev = _context4.next) {
43344
43440
  case 0:
@@ -43354,7 +43450,7 @@ var Grid = /*#__PURE__*/function () {
43354
43450
  j = 0;
43355
43451
  case 6:
43356
43452
  if (!(j < options.length)) {
43357
- _context4.next = 27;
43453
+ _context4.next = 29;
43358
43454
  break;
43359
43455
  }
43360
43456
  optionCodex = options[j];
@@ -43363,7 +43459,7 @@ var Grid = /*#__PURE__*/function () {
43363
43459
  _context4.next = 11;
43364
43460
  break;
43365
43461
  }
43366
- return _context4.abrupt("continue", 24);
43462
+ return _context4.abrupt("continue", 26);
43367
43463
  case 11:
43368
43464
  if (!inUseCell) {
43369
43465
  _context4.next = 18;
@@ -43382,20 +43478,25 @@ var Grid = /*#__PURE__*/function () {
43382
43478
  return _this.updateAccessoireMontageOption('OPT' + optionCodex, 'OPVOHNE', []);
43383
43479
  case 21:
43384
43480
  if (!specificAccessoire.length) {
43385
- _context4.next = 24;
43481
+ _context4.next = 26;
43386
43482
  break;
43387
43483
  }
43388
- _context4.next = 24;
43389
- return _this.updateAccessoireMontageOption('OPT' + optionCodex, 'OPVOHNE', Object.values((_this$article$shelfAc = _this.article.shelfAccessoires) !== null && _this$article$shelfAc !== void 0 ? _this$article$shelfAc : {}).filter(function (a) {
43484
+ rest = Object.values((_this$article$shelfAc = _this.article.shelfAccessoires) !== null && _this$article$shelfAc !== void 0 ? _this$article$shelfAc : {}).filter(function (a) {
43390
43485
  return !specificAccessoire.find(function (b) {
43391
43486
  return b.basketId == a.basketId;
43392
43487
  });
43393
- }));
43394
- case 24:
43488
+ });
43489
+ if (!rest.length) {
43490
+ _context4.next = 26;
43491
+ break;
43492
+ }
43493
+ _context4.next = 26;
43494
+ return _this.updateAccessoireMontageOption('OPT' + optionCodex, 'OPVOHNE', rest);
43495
+ case 26:
43395
43496
  j++;
43396
43497
  _context4.next = 6;
43397
43498
  break;
43398
- case 27:
43499
+ case 29:
43399
43500
  case "end":
43400
43501
  return _context4.stop();
43401
43502
  }
@@ -43535,145 +43636,204 @@ var Grid = /*#__PURE__*/function () {
43535
43636
  */
43536
43637
  }, {
43537
43638
  key: "moveCell",
43538
- value: function moveCell(initialIndex, finalIndex) {
43539
- var _this2 = this;
43540
- var cellsMoving = {};
43541
- var cellsMovingFinalPosition = {};
43542
- var cellsAjusting = {};
43543
- var cellsAtStart = [];
43544
- var cellsAtEnd = [];
43545
- var startAndFinalSwitched = false;
43546
- if (initialIndex > finalIndex) {
43547
- var tmp = finalIndex;
43548
- finalIndex = initialIndex;
43549
- initialIndex = tmp;
43550
- startAndFinalSwitched = true;
43551
- }
43552
-
43553
- //ajust finalIndex maybe at the place is already an element
43554
- if (!startAndFinalSwitched) {
43555
- while (this.cells[finalIndex] && this.cells[finalIndex].InUse != -1 && this.cells[finalIndex + 1] !== undefined) {
43556
- finalIndex++;
43557
- }
43558
- }
43559
- for (var i = 0; i < initialIndex; i++) {
43560
- cellsAtStart.push(this.cells[i]);
43561
- }
43562
- if (!startAndFinalSwitched) {
43563
- //moving up
43564
- for (var _i5 = 0; _i5 < this.cells.length; _i5++) {
43565
- if (this.cells[_i5].InUse == initialIndex || this.cells[_i5].OnBoard == initialIndex) {
43566
- cellsMoving[_i5] = this.cells[_i5];
43567
- }
43568
- }
43569
- var cellsMovingCount = Object.keys(cellsMoving).length;
43570
- for (var _i6 = initialIndex; _i6 <= finalIndex; _i6++) {
43571
- if (!cellsMoving[_i6]) {
43572
- cellsAjusting[_i6 - cellsMovingCount] = this.cells[_i6];
43573
- }
43574
- }
43575
- var cellsAjustingCount = Object.keys(cellsAjusting).length;
43576
- for (var key in cellsMoving) {
43577
- cellsMovingFinalPosition[Number(key) + cellsAjustingCount] = cellsMoving[key];
43578
- }
43579
- for (var _i7 = finalIndex + 1; _i7 < this.cells.length; _i7++) {
43580
- cellsAtEnd.push(this.cells[_i7]);
43581
- }
43582
- } else {
43583
- //moving down
43584
- for (var _i8 = 0; _i8 < this.cells.length; _i8++) {
43585
- if (this.cells[_i8].InUse == finalIndex || this.cells[_i8].OnBoard == finalIndex) {
43586
- cellsMoving[_i8] = this.cells[_i8];
43587
- }
43588
- }
43589
- var _cellsMovingCount = Object.keys(cellsMoving).length;
43590
- for (var _i9 = initialIndex; _i9 <= finalIndex; _i9++) {
43591
- if (!cellsMoving[_i9]) {
43592
- cellsAjusting[_i9 + _cellsMovingCount] = this.cells[_i9];
43593
- }
43594
- }
43595
- var _cellsAjustingCount = Object.keys(cellsAjusting).length;
43596
- for (var _key in cellsMoving) {
43597
- cellsMovingFinalPosition[Number(_key) - _cellsAjustingCount] = cellsMoving[_key];
43598
- }
43599
- for (var _i10 = finalIndex + _cellsMovingCount; _i10 < this.cells.length; _i10++) {
43600
- cellsAtEnd.push(this.cells[_i10]);
43601
- }
43602
- }
43639
+ value: (function () {
43640
+ var _moveCell = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(initialIndex, finalIndex) {
43641
+ var _this2 = this;
43642
+ var cellsMoving, cellsMovingFinalPosition, cellsAjusting, cellsAtStart, cellsAtEnd, startAndFinalSwitched, tmp, i, _i5, cellsMovingCount, _i6, cellsAjustingCount, key, _i7, _i8, _cellsMovingCount, _i9, _cellsAjustingCount, _key, _i10, _key2, oldCells, _key3, _key4, _key5, _key6, _i11, _i12, accessoriesMoved, _loop2, _i13, resetCells, _i14, result, _i15;
43643
+ return _regeneratorRuntime.wrap(function _callee6$(_context8) {
43644
+ while (1) switch (_context8.prev = _context8.next) {
43645
+ case 0:
43646
+ cellsMoving = {};
43647
+ cellsMovingFinalPosition = {};
43648
+ cellsAjusting = {};
43649
+ cellsAtStart = [];
43650
+ cellsAtEnd = [];
43651
+ startAndFinalSwitched = false;
43652
+ if (initialIndex > finalIndex) {
43653
+ tmp = finalIndex;
43654
+ finalIndex = initialIndex;
43655
+ initialIndex = tmp;
43656
+ startAndFinalSwitched = true;
43657
+ }
43658
+
43659
+ //ajust finalIndex maybe at the place is already an element
43660
+ if (!startAndFinalSwitched) {
43661
+ while (this.cells[finalIndex] && this.cells[finalIndex].InUse != -1 && this.cells[finalIndex + 1] !== undefined) {
43662
+ finalIndex++;
43663
+ }
43664
+ }
43665
+ for (i = 0; i < initialIndex; i++) {
43666
+ cellsAtStart.push(this.cells[i]);
43667
+ }
43668
+ if (!startAndFinalSwitched) {
43669
+ //moving up
43670
+ for (_i5 = 0; _i5 < this.cells.length; _i5++) {
43671
+ if (this.cells[_i5].InUse == initialIndex || this.cells[_i5].OnBoard == initialIndex) {
43672
+ cellsMoving[_i5] = this.cells[_i5];
43673
+ }
43674
+ }
43675
+ cellsMovingCount = Object.keys(cellsMoving).length;
43676
+ for (_i6 = initialIndex; _i6 <= finalIndex; _i6++) {
43677
+ if (!cellsMoving[_i6]) {
43678
+ cellsAjusting[_i6 - cellsMovingCount] = this.cells[_i6];
43679
+ }
43680
+ }
43681
+ cellsAjustingCount = Object.keys(cellsAjusting).length;
43682
+ for (key in cellsMoving) {
43683
+ cellsMovingFinalPosition[Number(key) + cellsAjustingCount] = cellsMoving[key];
43684
+ }
43685
+ for (_i7 = finalIndex + 1; _i7 < this.cells.length; _i7++) {
43686
+ cellsAtEnd.push(this.cells[_i7]);
43687
+ }
43688
+ } else {
43689
+ //moving down
43690
+ for (_i8 = 0; _i8 < this.cells.length; _i8++) {
43691
+ if (this.cells[_i8].InUse == finalIndex || this.cells[_i8].OnBoard == finalIndex) {
43692
+ cellsMoving[_i8] = this.cells[_i8];
43693
+ }
43694
+ }
43695
+ _cellsMovingCount = Object.keys(cellsMoving).length;
43696
+ for (_i9 = initialIndex; _i9 <= finalIndex; _i9++) {
43697
+ if (!cellsMoving[_i9]) {
43698
+ cellsAjusting[_i9 + _cellsMovingCount] = this.cells[_i9];
43699
+ }
43700
+ }
43701
+ _cellsAjustingCount = Object.keys(cellsAjusting).length;
43702
+ for (_key in cellsMoving) {
43703
+ cellsMovingFinalPosition[Number(_key) - _cellsAjustingCount] = cellsMoving[_key];
43704
+ }
43705
+ for (_i10 = finalIndex + _cellsMovingCount; _i10 < this.cells.length; _i10++) {
43706
+ cellsAtEnd.push(this.cells[_i10]);
43707
+ }
43708
+ }
43603
43709
 
43604
- // if an element gets moved which shouldnt be moved dont fill the cells with the new order and just cancel
43605
- for (var _key2 in cellsAjusting) {
43606
- if (cellsAjusting[_key2].IsDisabled || cellsAjusting[_key2].NoMove) {
43607
- return;
43608
- }
43609
- }
43610
- var oldCells = this.cells;
43611
- // fill cells with new order
43612
- this.cells = [];
43613
- this.cells = cellsAtStart;
43614
- if (!startAndFinalSwitched) {
43615
- for (var _key3 in cellsAjusting) {
43616
- this.cells.push(cellsAjusting[_key3]);
43617
- }
43618
- for (var _key4 in cellsMovingFinalPosition) {
43619
- this.cells.push(cellsMovingFinalPosition[_key4]);
43620
- }
43621
- } else {
43622
- for (var _key5 in cellsMovingFinalPosition) {
43623
- this.cells.push(cellsMovingFinalPosition[_key5]);
43624
- }
43625
- for (var _key6 in cellsAjusting) {
43626
- this.cells.push(cellsAjusting[_key6]);
43627
- }
43628
- }
43629
- for (var _i11 = 0; _i11 < cellsAtEnd.length; _i11++) {
43630
- this.cells.push(cellsAtEnd[_i11]);
43631
- }
43632
- for (var _i12 = 0; _i12 < this.cells.length; _i12++) {
43633
- this.cells[_i12].moveCellToIndex(_i12);
43634
- }
43710
+ // if an element gets moved which shouldnt be moved dont fill the cells with the new order and just cancel
43711
+ _context8.t0 = _regeneratorRuntime.keys(cellsAjusting);
43712
+ case 11:
43713
+ if ((_context8.t1 = _context8.t0()).done) {
43714
+ _context8.next = 17;
43715
+ break;
43716
+ }
43717
+ _key2 = _context8.t1.value;
43718
+ if (!(cellsAjusting[_key2].IsDisabled || cellsAjusting[_key2].NoMove)) {
43719
+ _context8.next = 15;
43720
+ break;
43721
+ }
43722
+ return _context8.abrupt("return");
43723
+ case 15:
43724
+ _context8.next = 11;
43725
+ break;
43726
+ case 17:
43727
+ oldCells = this.cells; // fill cells with new order
43728
+ this.cells = [];
43729
+ this.cells = cellsAtStart;
43730
+ if (!startAndFinalSwitched) {
43731
+ for (_key3 in cellsAjusting) {
43732
+ this.cells.push(cellsAjusting[_key3]);
43733
+ }
43734
+ for (_key4 in cellsMovingFinalPosition) {
43735
+ this.cells.push(cellsMovingFinalPosition[_key4]);
43736
+ }
43737
+ } else {
43738
+ for (_key5 in cellsMovingFinalPosition) {
43739
+ this.cells.push(cellsMovingFinalPosition[_key5]);
43740
+ }
43741
+ for (_key6 in cellsAjusting) {
43742
+ this.cells.push(cellsAjusting[_key6]);
43743
+ }
43744
+ }
43745
+ for (_i11 = 0; _i11 < cellsAtEnd.length; _i11++) {
43746
+ this.cells.push(cellsAtEnd[_i11]);
43747
+ }
43748
+ for (_i12 = 0; _i12 < this.cells.length; _i12++) {
43749
+ this.cells[_i12].moveCellToIndex(_i12);
43750
+ }
43635
43751
 
43636
- //check for all the accessoires that moved during the process if they are allowed to be there
43637
- var accessoriesMoved = [];
43638
- var _loop2 = function _loop2() {
43639
- var cell = _this2.cells[_i13];
43640
- if (cell.Type == 'fitsOnParentRule' && cell.InUse > -1 && !accessoriesMoved.find(function (a) {
43641
- var _cell$Article2;
43642
- return ((_cell$Article2 = cell.Article) === null || _cell$Article2 === void 0 ? void 0 : _cell$Article2.basketId) == a.basketId;
43643
- })) {
43644
- var _cell$Article3;
43645
- accessoriesMoved.push({
43646
- article: cell.Article,
43647
- basketId: (_cell$Article3 = cell.Article) === null || _cell$Article3 === void 0 ? void 0 : _cell$Article3.basketId,
43648
- index: cell.InUse
43649
- });
43650
- }
43651
- };
43652
- for (var _i13 = 0; _i13 < this.cells.length; _i13++) {
43653
- _loop2();
43654
- }
43655
- var resetCells = false;
43656
- for (var _i14 = 0; _i14 < accessoriesMoved.length; _i14++) {
43657
- var result = this.tryFitOnShelf(accessoriesMoved[_i14].article, accessoriesMoved[_i14].index, accessoriesMoved[_i14].article.shelfPlanner, true);
43658
- if (result && result.type === 'fitsOnParentRule' && result.index === accessoriesMoved[_i14].index) ; else {
43659
- resetCells = true;
43660
- break;
43661
- }
43662
- }
43663
- if (resetCells) {
43664
- this.cells = oldCells;
43665
- for (var _i15 = 0; _i15 < this.cells.length; _i15++) {
43666
- this.cells[_i15].moveCellToIndex(_i15);
43667
- }
43752
+ //check for all the accessoires that moved during the process if they are allowed to be there
43753
+ accessoriesMoved = [];
43754
+ _loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
43755
+ var cell, _cell$Article3;
43756
+ return _regeneratorRuntime.wrap(function _loop2$(_context7) {
43757
+ while (1) switch (_context7.prev = _context7.next) {
43758
+ case 0:
43759
+ cell = _this2.cells[_i13];
43760
+ if (cell.Type == 'fitsOnParentRule' && cell.InUse > -1 && !accessoriesMoved.find(function (a) {
43761
+ var _cell$Article2;
43762
+ return ((_cell$Article2 = cell.Article) === null || _cell$Article2 === void 0 ? void 0 : _cell$Article2.basketId) == a.basketId;
43763
+ })) {
43764
+ accessoriesMoved.push({
43765
+ article: cell.Article,
43766
+ basketId: (_cell$Article3 = cell.Article) === null || _cell$Article3 === void 0 ? void 0 : _cell$Article3.basketId,
43767
+ index: cell.InUse
43768
+ });
43769
+ }
43770
+ case 2:
43771
+ case "end":
43772
+ return _context7.stop();
43773
+ }
43774
+ }, _loop2);
43775
+ });
43776
+ _i13 = 0;
43777
+ case 26:
43778
+ if (!(_i13 < this.cells.length)) {
43779
+ _context8.next = 31;
43780
+ break;
43781
+ }
43782
+ return _context8.delegateYield(_loop2(), "t2", 28);
43783
+ case 28:
43784
+ _i13++;
43785
+ _context8.next = 26;
43786
+ break;
43787
+ case 31:
43788
+ resetCells = false;
43789
+ _i14 = 0;
43790
+ case 33:
43791
+ if (!(_i14 < accessoriesMoved.length)) {
43792
+ _context8.next = 43;
43793
+ break;
43794
+ }
43795
+ result = this.tryFitOnShelf(accessoriesMoved[_i14].article, accessoriesMoved[_i14].index, accessoriesMoved[_i14].article.shelfPlanner, true);
43796
+ if (!(result && result.type === 'fitsOnParentRule' && result.index === accessoriesMoved[_i14].index)) {
43797
+ _context8.next = 38;
43798
+ break;
43799
+ }
43800
+ _context8.next = 40;
43801
+ break;
43802
+ case 38:
43803
+ resetCells = true;
43804
+ return _context8.abrupt("break", 43);
43805
+ case 40:
43806
+ _i14++;
43807
+ _context8.next = 33;
43808
+ break;
43809
+ case 43:
43810
+ if (resetCells) {
43811
+ this.cells = oldCells;
43812
+ for (_i15 = 0; _i15 < this.cells.length; _i15++) {
43813
+ this.cells[_i15].moveCellToIndex(_i15);
43814
+ }
43815
+ }
43816
+ this.updateRequredCells();
43817
+ _context8.next = 47;
43818
+ return this.updateMontageOption();
43819
+ case 47:
43820
+ return _context8.abrupt("return", resetCells ? 'RESETTED_CELLS' : 'SUCCESS');
43821
+ case 48:
43822
+ case "end":
43823
+ return _context8.stop();
43824
+ }
43825
+ }, _callee6, this);
43826
+ }));
43827
+ function moveCell(_x11, _x12) {
43828
+ return _moveCell.apply(this, arguments);
43668
43829
  }
43669
- this.updateRequredCells();
43670
- return resetCells ? 'RESETTED_CELLS' : 'SUCCESS';
43671
- }
43672
-
43830
+ return moveCell;
43831
+ }()
43673
43832
  /**
43674
43833
  *
43675
43834
  * @returns if one or more cells a still required return true
43676
43835
  */
43836
+ )
43677
43837
  }, {
43678
43838
  key: "areCellsStillRequired",
43679
43839
  value: function areCellsStillRequired() {
@@ -43885,6 +44045,28 @@ var Grid = /*#__PURE__*/function () {
43885
44045
  }
43886
44046
  return true;
43887
44047
  }
44048
+ }, {
44049
+ key: "getCellCount",
44050
+ value: function getCellCount(dp) {
44051
+ var count = this.cells.length;
44052
+ if (this.DisableCellsByMeasures) {
44053
+ var lowestMeasure = undefined;
44054
+ var options = this.DisableCellsByMeasures.options;
44055
+ for (var i = 0; i < options.length; i++) {
44056
+ if (options[i].dp && dp && dp == options[i].dp) continue;
44057
+ var o = options[i].opt;
44058
+ var ops = this.article.getArticleOptionState('OPT' + o);
44059
+ if (!ops) continue;
44060
+ if (!isNaN(Number(ops.freeText)) && (lowestMeasure === undefined || lowestMeasure > Number(ops.freeText))) lowestMeasure = Number(ops.freeText);
44061
+ }
44062
+ if (lowestMeasure) {
44063
+ var ratio = this.DisableCellsByMeasures.maxMeasure / this.cells.length;
44064
+ var rest = this.DisableCellsByMeasures.maxMeasure - lowestMeasure;
44065
+ count = this.cells.length - Math.round(rest / ratio);
44066
+ }
44067
+ }
44068
+ return count;
44069
+ }
43888
44070
  }, {
43889
44071
  key: "ShelfId",
43890
44072
  get: function get() {
@@ -44036,6 +44218,11 @@ var Grid = /*#__PURE__*/function () {
44036
44218
  set: function set(val) {
44037
44219
  this.disabledByRule = val;
44038
44220
  }
44221
+ }, {
44222
+ key: "DisableCellsByMeasures",
44223
+ get: function get() {
44224
+ return this.disableCellsByMeasures;
44225
+ }
44039
44226
  }, {
44040
44227
  key: "ArticleRelationsForOtherGroups",
44041
44228
  get: function get() {