@crystaldesign/web-planner-logic 25.2.0-beta.9 → 25.2.0-rc.2

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 (76) hide show
  1. package/build/cjs/{DivaBoxPlanner-0b5fc55d.js → DivaBoxPlanner-4f7682d9.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-ba6ac0e0.js → DivaStandardPlanner-6620f394.js} +3 -3
  3. package/build/cjs/{DoorPlanner-ff751c5d.js → DoorPlanner-2d0cefd6.js} +63 -15
  4. package/build/cjs/{Host3DSignalR-866de988.js → Host3DSignalR-2b059c8a.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-e3abc577.js → LiviqueWWSHandler-7939ab08.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-73a9bdf5.js → PfisterWWSHandler-234bfab3.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-7ed1ebda.js → PlannerHandler2D-54bf71b0.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-2d198f97.js → SeriousBasketHandler-9a9a89f8.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-dcbf6995.js → ShelfPlanner-cb759526.js} +109 -62
  10. package/build/cjs/{StandardWWSHandler-5bb617f6.js → StandardWWSHandler-83c094db.js} +1 -1
  11. package/build/cjs/{index-a281c8e2.js → index-7e0352d6.js} +1183 -926
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-b34e6090.js → DivaBoxPlanner-1bbf6c94.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-a9fa32ef.js → DivaStandardPlanner-f0775cae.js} +3 -3
  15. package/build/esm/{DoorPlanner-a51c88c2.js → DoorPlanner-74c6c1f8.js} +63 -15
  16. package/build/esm/{Host3DSignalR-d2089f28.js → Host3DSignalR-edf72b8d.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-3b40fb8b.js → LiviqueWWSHandler-0f489736.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-17c1ca79.js → PfisterWWSHandler-4df9c8d9.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-b42db556.js → PlannerHandler2D-428d09e4.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-600cc933.js → SeriousBasketHandler-28fe2ec4.js} +1 -1
  21. package/build/esm/{ShelfPlanner-b5cd6836.js → ShelfPlanner-b577ca48.js} +109 -62
  22. package/build/esm/{StandardWWSHandler-bb1dee15.js → StandardWWSHandler-550b61ff.js} +1 -1
  23. package/build/esm/{index-d820aa17.js → index-1cbb5b1b.js} +1183 -926
  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/API/ViewConfigDataType.d.ts +1 -1
  28. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts +0 -1
  30. package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts +1 -0
  32. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/Basket/BasketEvent.d.ts +1 -1
  34. package/build/types/web-planner-logic/src/interface/Basket/BasketEvent.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/Configuration.d.ts +5 -0
  36. package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +1 -0
  38. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +2 -0
  40. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/interface/DoorPlanner/index.d.ts +1 -1
  42. package/build/types/web-planner-logic/src/interface/DoorPlanner/index.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +2 -0
  44. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts +11 -0
  46. package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +1 -1
  48. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +3 -2
  50. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  51. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +7 -4
  52. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  53. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  54. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  55. package/build/types/web-planner-logic/src/logic/ConfigTree/DoorPlanner/Door.d.ts +1 -1
  56. package/build/types/web-planner-logic/src/logic/ConfigTree/DoorPlanner/Door.d.ts.map +1 -1
  57. package/build/types/web-planner-logic/src/logic/ConfigTree/DoorPlanner/DoorPlanner.d.ts +11 -3
  58. package/build/types/web-planner-logic/src/logic/ConfigTree/DoorPlanner/DoorPlanner.d.ts.map +1 -1
  59. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts +4 -2
  60. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
  61. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts +15 -1
  62. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -1
  63. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +4 -1
  64. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  65. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
  66. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +1 -1
  67. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  68. package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts +1 -0
  69. package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts.map +1 -1
  70. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +2 -0
  71. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  72. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +2 -0
  73. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
  74. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +2 -0
  75. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
  76. 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",
@@ -17150,7 +17168,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
17150
17168
  if (articleRelations[0].Articles.length > 0) {
17151
17169
  this.catalogArticle.hasArticleRelations = true;
17152
17170
  for (var i = 0; i < articleRelations[0].Articles.length; i++) {
17153
- var _catalogArticle$catal, _catalogArticle$catal2, _catalogArticle$catal3, _catalogArticle$catal4, _catalogArticle$catal5, _catalogArticle$catal6, _catalogArticle$catal7, _catalogArticle$catal8, _catalogArticle$catal9, _catalogArticle$catal10;
17171
+ var _myAcc$BasePrice, _catalogArticle$catal, _catalogArticle$catal2, _catalogArticle$catal3, _catalogArticle$catal4, _catalogArticle$catal5, _catalogArticle$catal6, _catalogArticle$catal7, _catalogArticle$catal8, _catalogArticle$catal9, _catalogArticle$catal10;
17154
17172
  var myAcc = articleRelations[0].Articles[i];
17155
17173
  if (this.catalogCodex != myAcc.CatalogCodex) {
17156
17174
  //DivaUtils.LOG.log("Accessoire ist von einem anderen Catalog. Sollte eig funktionern aber bitte testen!");
@@ -17163,8 +17181,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
17163
17181
  actQuantity: 0,
17164
17182
  minQuantity: myAcc.MinQuantity,
17165
17183
  maxQuantity: myAcc.MaxQuantity,
17166
- price: !catalog.dontShowBasePrice ? myAcc.BasePrice : 0,
17167
- formattedPrice: '',
17184
+ price: !catalog.dontShowBasePrice ? (_myAcc$BasePrice = myAcc.BasePrice) !== null && _myAcc$BasePrice !== void 0 ? _myAcc$BasePrice : catalogArticle.articlePrice : 0,
17168
17185
  articleCodex: myAcc.Codex,
17169
17186
  catalogCodex: myAcc.CatalogCodex,
17170
17187
  positionGroupNr: myAcc.PositionGroupNr,
@@ -17813,7 +17830,8 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
17813
17830
  }, {
17814
17831
  key: "basePrice",
17815
17832
  get: function get() {
17816
- return this.catPlanArt.basePrice;
17833
+ var _this$catPlanArt$base;
17834
+ return (_this$catPlanArt$base = this.catPlanArt.basePrice) !== null && _this$catPlanArt$base !== void 0 ? _this$catPlanArt$base : this.catPlanArt.catalogArticle.articlePrice;
17817
17835
  }
17818
17836
  }, {
17819
17837
  key: "modelName3D",
@@ -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() {
@@ -18286,6 +18320,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18286
18320
  // Saves the information for alternate renderings (e.g Jultzer Atlantis hide doors)
18287
18321
  doShow3DDimensionLines: true,
18288
18322
  // Set do show dimensionLines per default to true
18323
+ defaultDimensionsActive: false,
18324
+ // start with dimensions visible in 3D
18289
18325
  isIDM3DCat: false,
18290
18326
  IDM3DCatCodex: '',
18291
18327
  divaArReady: false,
@@ -18324,6 +18360,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18324
18360
  showAllItemsInPlanner: false,
18325
18361
  // All elements are shown in the planner palette
18326
18362
  hidePlannerUiIcons: false,
18363
+ dontSetPosNrFromPlanner: false,
18327
18364
  //Warnings
18328
18365
  doCheckConstructionWarnings: true,
18329
18366
  // konstruktionswarnungen können mit diesem Flag ausgeblendet werden (Rolf Benz)
@@ -18540,6 +18577,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18540
18577
  _this.catalogData.diva3dCompatibleWithImageCache = item.Value == '1';
18541
18578
  } else if (key == 'ENABLE_DO_SHOW_3DDIMENSIONS') {
18542
18579
  _this.catalogData.doShow3DDimensionLines = item.Value == '1' || item.Value.toLowerCase() == 'true';
18580
+ } else if (key == 'DEFAULT_DO_SHOW_3DDIMENSIONS') {
18581
+ _this.catalogData.defaultDimensionsActive = item.Value == '1' || item.Value.toLowerCase() == 'true';
18543
18582
  } else if (key == 'IS_IDM3D_CAT') {
18544
18583
  _this.catalogData.isIDM3DCat = item.Value == '1' || item.Value.toLowerCase() == 'true';
18545
18584
  } else if (key == 'IDM3D_CAT_CODEX') {
@@ -18640,6 +18679,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18640
18679
  _this.catalogData.replaceModeActive = item.Value == '1';
18641
18680
  } else if (key == 'HIDE_PLANNER_UI_ICONS') {
18642
18681
  _this.catalogData.hidePlannerUiIcons = item.Value == '1';
18682
+ } else if (key == 'DONT_SET_POSNR_FROM_PLANNER') {
18683
+ _this.catalogData.dontSetPosNrFromPlanner = item.Value == '1';
18643
18684
  }
18644
18685
 
18645
18686
  //Warnings
@@ -19421,6 +19462,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19421
19462
  get: function get() {
19422
19463
  return this.catalogData.dontHideOption;
19423
19464
  }
19465
+ }, {
19466
+ key: "dontSetPosNrFromPlanner",
19467
+ get: function get() {
19468
+ return this.catalogData.dontSetPosNrFromPlanner;
19469
+ }
19424
19470
  }, {
19425
19471
  key: "defaultGroupsClosed",
19426
19472
  get: function get() {
@@ -19476,6 +19522,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19476
19522
  get: function get() {
19477
19523
  return this.catalogData.doShow3DDimensionLines;
19478
19524
  }
19525
+ }, {
19526
+ key: "defaultDimensionsActive",
19527
+ get: function get() {
19528
+ return this.catalogData.defaultDimensionsActive;
19529
+ }
19479
19530
  }, {
19480
19531
  key: "hidePlannerUiIcons",
19481
19532
  get: function get() {
@@ -19996,9 +20047,11 @@ var catalogHandlerInstance = new DivaCatalogHandler();
19996
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; }
19997
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; }
19998
20049
  var ArticleOptionStateData = /*#__PURE__*/function () {
19999
- function ArticleOptionStateData(option, defaultOPV, useIsOptionDefinedWarning) {
20050
+ function ArticleOptionStateData(option, getIsConfigSingle, defaultOPV, useIsOptionDefinedWarning) {
20000
20051
  _classCallCheck(this, ArticleOptionStateData);
20001
20052
  _defineProperty(this, "articleOptionState", void 0);
20053
+ _defineProperty(this, "getIsConfigSingle", void 0);
20054
+ this.getIsConfigSingle = getIsConfigSingle;
20002
20055
  this.articleOptionState = {
20003
20056
  option: option,
20004
20057
  name: '',
@@ -20255,7 +20308,7 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20255
20308
  key: "isDoShow",
20256
20309
  get: function get() {
20257
20310
  var _this$val4;
20258
- 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());
20259
20312
  },
20260
20313
  set: function set(doShow) {
20261
20314
  this.articleOptionState.doShow = doShow;
@@ -20635,8 +20688,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20635
20688
  }
20636
20689
  }, {
20637
20690
  key: "cloneOptionState",
20638
- value: function cloneOptionState() {
20639
- var clonedOps = new ArticleOptionStateData(this.option);
20691
+ value: function cloneOptionState(getIsConfigSingle) {
20692
+ var clonedOps = new ArticleOptionStateData(this.option, getIsConfigSingle);
20640
20693
  clonedOps.articleOptionState = _objectSpread$f(_objectSpread$f({}, this.articleOptionState), {}, {
20641
20694
  imageOPVs: _objectSpread$f({}, this.articleOptionState.imageOPVs),
20642
20695
  visibleOPVs: _objectSpread$f({}, this.articleOptionState.visibleOPVs),
@@ -20664,6 +20717,9 @@ var DivaArticle = /*#__PURE__*/function () {
20664
20717
  _defineProperty(this, "actPlannerData", void 0);
20665
20718
  //Hier steht die aktuelle Konfiguration
20666
20719
  _defineProperty(this, "decisionDebugStacks", []);
20720
+ _defineProperty(this, "getIsConfigSingle", function () {
20721
+ return _this.set.configSingle;
20722
+ });
20667
20723
  _defineProperty(this, "getPreviousPartlistArticle", function (articleCodex) {
20668
20724
  var _this$article$previou;
20669
20725
  var prevPartlistArticles = (_this$article$previou = _this.article.previousPartlistArticles) !== null && _this$article$previou !== void 0 ? _this$article$previou : {};
@@ -21145,9 +21201,10 @@ var DivaArticle = /*#__PURE__*/function () {
21145
21201
  key: "getArticleOptionStatesWithOptionsForPrint",
21146
21202
  value: function getArticleOptionStatesWithOptionsForPrint() {
21147
21203
  var opsObj = _objectSpread$e({}, this.articleOptionStates);
21148
- if (this.article.optionsForPrint) {
21149
- for (var i = 0; i < this.article.optionsForPrint.length; i++) {
21150
- 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);
21151
21208
  if (ops) opsObj[ops.optionCodex] = ops;
21152
21209
  }
21153
21210
  }
@@ -21230,9 +21287,9 @@ var DivaArticle = /*#__PURE__*/function () {
21230
21287
  }, {
21231
21288
  key: "name",
21232
21289
  get: function get() {
21233
- var _this$article$actDesc, _this$article$options;
21290
+ var _this$article$actDesc, _this$optionsForPrint;
21234
21291
  var ret = (_this$article$actDesc = this.article.actDescription) !== null && _this$article$actDesc !== void 0 ? _this$article$actDesc : this.catalogArticleName;
21235
- 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)) {
21236
21293
  var ruleDesc = this.article.ruleDesc;
21237
21294
  if (!this.set.api.ruleDescWithoutParenthesis()) ruleDesc = '(' + ruleDesc + ')';
21238
21295
  ret += ' ' + (this.CatalogData.addNewLineBeforRuleDesc ? this.set.api.ruleDescSeperator() : '') + ruleDesc;
@@ -21269,7 +21326,10 @@ var DivaArticle = /*#__PURE__*/function () {
21269
21326
  }, {
21270
21327
  key: "optionsForPrint",
21271
21328
  get: function get() {
21272
- 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
+ });
21273
21333
  }
21274
21334
  }, {
21275
21335
  key: "image",
@@ -21386,19 +21446,19 @@ var DivaArticle = /*#__PURE__*/function () {
21386
21446
  }
21387
21447
  }, {
21388
21448
  key: "getArticleOptionState",
21389
- value: function getArticleOptionState(codex, from) {
21449
+ value: function getArticleOptionState(codex, from, checkOnAccessoireParent) {
21390
21450
  var _this$partListParentA10, _this$partListParentA11, _this$partlistArticle3;
21391
21451
  if (this.articleOptionStatesData[codex]) {
21392
21452
  return this.articleOptionStatesData[codex];
21393
21453
  }
21394
- 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)) {
21395
- 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);
21396
21456
  }
21397
21457
  if (Object.keys((_this$partlistArticle3 = this.partlistArticles) !== null && _this$partlistArticle3 !== void 0 ? _this$partlistArticle3 : {}).length > 0) {
21398
21458
  for (var key in this.partlistArticles) {
21399
21459
  if (from === key) continue;
21400
21460
  var partlistArticle = this.partlistArticles[key];
21401
- var ops = partlistArticle.getArticleOptionState(codex, this.basketId);
21461
+ var ops = partlistArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
21402
21462
  if (ops) return ops;
21403
21463
  }
21404
21464
  }
@@ -21417,6 +21477,10 @@ var DivaArticle = /*#__PURE__*/function () {
21417
21477
  }
21418
21478
  }
21419
21479
  }
21480
+ if (checkOnAccessoireParent && this.accessoireParentArticle) {
21481
+ var _ops2 = this.accessoireParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
21482
+ if (_ops2) return _ops2;
21483
+ }
21420
21484
  return this.articleOptionStatesData[codex];
21421
21485
  //kann sein dass die OCD der Option dem codex entspricht
21422
21486
  }
@@ -21631,7 +21695,7 @@ var DivaArticle = /*#__PURE__*/function () {
21631
21695
  }, {
21632
21696
  key: "dockedOnAV",
21633
21697
  value: function dockedOnAV(type) {
21634
- return articleHandlerInstance.dockedOnAV(type, this);
21698
+ return articleHandlerInstance.dockedOnAV('AV' + type, this);
21635
21699
  }
21636
21700
  }, {
21637
21701
  key: "accessoireParentArticle",
@@ -22351,6 +22415,9 @@ var DivaArticle = /*#__PURE__*/function () {
22351
22415
  if (actArticleOptionState[refOptCodex].visibleOptionValues[_iKey]) {
22352
22416
  actArticleOptionState[refOptCodex].defaultOPV = curOpvValue;
22353
22417
  optToChange[refOptCodex] = curOpvValue;
22418
+ if (optToChange[opt + '_val']) {
22419
+ optToChange[refOptCodex + '_val'] = optToChange[opt + '_val'];
22420
+ }
22354
22421
  opvIsValid = true;
22355
22422
  }
22356
22423
  break;
@@ -22474,9 +22541,9 @@ var DivaArticle = /*#__PURE__*/function () {
22474
22541
  }
22475
22542
  //fallback for pfister classification usecase
22476
22543
  for (var _iKey2 in this.articleOptionStates) {
22477
- var _ops2 = this.articleOptionStates[_iKey2];
22478
- if (_ops2.option.ocd == optionCodex && optionCodex !== null && optionCodex !== void 0 && optionCodex.startsWith('OPTOPT') && (parentOptionCodex == '' || parentOptionCodex == _ops2.option.parentOptionCodex)) {
22479
- 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);
22480
22547
  }
22481
22548
  }
22482
22549
  }
@@ -22564,15 +22631,15 @@ var DivaArticle = /*#__PURE__*/function () {
22564
22631
  value: function validateAndSetNewConfigValues(newConfigValues) {
22565
22632
  var freeTextValues = {};
22566
22633
  for (var key in newConfigValues) {
22567
- var _ops3, _ops4, _newConfigValues$key;
22634
+ var _ops4, _ops5, _newConfigValues$key;
22568
22635
  var ops = this.getArticleOptionState(key);
22569
22636
  var _this$parentOptionCod3 = this.parentOptionCodex(key),
22570
22637
  optionCodex = _this$parentOptionCod3.optionCodex,
22571
22638
  partenOptionCodex = _this$parentOptionCod3.partenOptionCodex;
22572
- if ((_ops3 = ops) !== null && _ops3 !== void 0 && _ops3.isMultiselect) {
22639
+ if ((_ops4 = ops) !== null && _ops4 !== void 0 && _ops4.isMultiselect) {
22573
22640
  ops = this.handleMultiselect(ops, newConfigValues, key);
22574
22641
  }
22575
- if ((_ops4 = ops) !== null && _ops4 !== void 0 && _ops4.isFreeText) {
22642
+ if ((_ops5 = ops) !== null && _ops5 !== void 0 && _ops5.isFreeText) {
22576
22643
  this.handleFreeText(ops, newConfigValues, key, freeTextValues);
22577
22644
  }
22578
22645
  var opvCodex = (_newConfigValues$key = newConfigValues[key]) === null || _newConfigValues$key === void 0 ? void 0 : _newConfigValues$key.split(';')[0];
@@ -22583,8 +22650,8 @@ var DivaArticle = /*#__PURE__*/function () {
22583
22650
  var myFreeText = foundItem.opv.isFreeText ? newConfigValues[optionCodex + '_val'] : undefined;
22584
22651
  this.updateArtOPV(foundItem.opv, foundItem.opt.codex, this.getArticleOptionState(foundItem.opt.codex), myFreeText);
22585
22652
  } else {
22586
- var _ops5;
22587
- if (ops && !((_ops5 = ops) !== null && _ops5 !== void 0 && _ops5.isFreeText)) {
22653
+ var _ops6;
22654
+ if (ops && !((_ops6 = ops) !== null && _ops6 !== void 0 && _ops6.isFreeText)) {
22588
22655
  // to initialize freetexts where the freetext is not the only selectable opv in the options
22589
22656
  this.checkIfSelectableOpvIsFreetext(ops, opvCodex, newConfigValues);
22590
22657
  }
@@ -23049,7 +23116,7 @@ var DivaArticle = /*#__PURE__*/function () {
23049
23116
  //die Klasse ArticleOptionState wird einfach neu initialisiert
23050
23117
  var oldOPS = this.getArticleOptionState(optionCodex);
23051
23118
  var option = oldOPS.option;
23052
- 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);
23053
23120
  optionState.isDisabled = true;
23054
23121
  this.uploadOptionState(optionState);
23055
23122
  }
@@ -23118,9 +23185,7 @@ var DivaArticle = /*#__PURE__*/function () {
23118
23185
  _this3 = this;
23119
23186
  var allDecisions = this.article.catalogArticle.articleDecisions;
23120
23187
  var decisions = myPartListPos.PartListPosDecisionsAndPosCounts;
23121
- var optionsForPrint = (_myPartListPos$Option = myPartListPos.OptionsForPrint) === null || _myPartListPos$Option === void 0 ? void 0 : _myPartListPos$Option.split(';').map(function (o) {
23122
- return 'OPT' + o;
23123
- });
23188
+ var optionsForPrint = (_myPartListPos$Option = myPartListPos.OptionsForPrint) === null || _myPartListPos$Option === void 0 ? void 0 : _myPartListPos$Option.split(';');
23124
23189
  var optionImgForPrint = myPartListPos.OptionImgForPrint ? 'OPT' + myPartListPos.OptionImgForPrint : undefined;
23125
23190
  var _loop = function _loop() {
23126
23191
  var myRuleDesc = '';
@@ -23492,13 +23557,13 @@ var DivaArticle = /*#__PURE__*/function () {
23492
23557
  for (var f = 0; f < doAlsoCheckOPTs.length; f++) {
23493
23558
  var _myDoc$Row;
23494
23559
  var checkOptX = doAlsoCheckOPTs[f];
23495
- var _ops6 = this.getArticleOptionState(checkOptX);
23496
- 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)) {
23497
23562
  if (!myDoc.Row[checkOptX].find(function (o) {
23498
23563
  return !o.startsWith('!');
23499
23564
  })) {
23500
23565
  //all is inverted
23501
- if (myDoc.Row[checkOptX].includes('!' + _ops6.valCodex)) {
23566
+ if (myDoc.Row[checkOptX].includes('!' + _ops7.valCodex)) {
23502
23567
  doUseDoc = false;
23503
23568
  break;
23504
23569
  }
@@ -23922,9 +23987,9 @@ var DivaArticle = /*#__PURE__*/function () {
23922
23987
  }, {
23923
23988
  key: "updateShelfPlannerState",
23924
23989
  value: function () {
23925
- var _updateShelfPlannerState = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
23990
+ var _updateShelfPlannerState = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(variantValues) {
23926
23991
  var _this$doorPlanner;
23927
- var j3D, _yield$import, ShelfPlanner;
23992
+ var j3D, _yield$import, ShelfPlanner, doorPlanner;
23928
23993
  return _regeneratorRuntime.wrap(function _callee$(_context) {
23929
23994
  while (1) switch (_context.prev = _context.next) {
23930
23995
  case 0:
@@ -23934,51 +23999,59 @@ var DivaArticle = /*#__PURE__*/function () {
23934
23999
  break;
23935
24000
  }
23936
24001
  _context.next = 4;
23937
- return import('./ShelfPlanner-b5cd6836.js');
24002
+ return import('./ShelfPlanner-b577ca48.js');
23938
24003
  case 4:
23939
24004
  _yield$import = _context.sent;
23940
24005
  ShelfPlanner = _yield$import["default"];
23941
24006
  this.article.shelfPlanner = new ShelfPlanner(j3D, this);
23942
24007
  case 7:
23943
- if (j3D && j3D.Doors && !((_this$doorPlanner = this.doorPlanner) !== null && _this$doorPlanner !== void 0 && _this$doorPlanner.alreadyInitialized(this.basketId))) {
23944
- 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();
23945
24018
  }
23946
24019
  if (!this.shelfPlanner) {
23947
- _context.next = 23;
24020
+ _context.next = 27;
23948
24021
  break;
23949
24022
  }
23950
24023
  if (!this.shelfPlanner.showOnRule) {
23951
- _context.next = 19;
24024
+ _context.next = 23;
23952
24025
  break;
23953
24026
  }
23954
24027
  if (!this.evalRule(this.shelfPlanner.showOnRule)) {
23955
- _context.next = 15;
24028
+ _context.next = 19;
23956
24029
  break;
23957
24030
  }
23958
- _context.next = 13;
23959
- return this.shelfPlanner.setIsVisible(true);
23960
- case 13:
23961
- _context.next = 17;
23962
- break;
23963
- case 15:
23964
24031
  _context.next = 17;
23965
- return this.shelfPlanner.setIsVisible(false);
24032
+ return this.shelfPlanner.setIsVisible(true);
23966
24033
  case 17:
23967
24034
  _context.next = 21;
23968
24035
  break;
23969
24036
  case 19:
23970
24037
  _context.next = 21;
23971
- return this.shelfPlanner.setIsVisible(true);
24038
+ return this.shelfPlanner.setIsVisible(false);
23972
24039
  case 21:
23973
- _context.next = 23;
23974
- return this.shelfPlanner.onConfigChanged();
24040
+ _context.next = 25;
24041
+ break;
23975
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:
23976
24049
  case "end":
23977
24050
  return _context.stop();
23978
24051
  }
23979
24052
  }, _callee, this);
23980
24053
  }));
23981
- function updateShelfPlannerState() {
24054
+ function updateShelfPlannerState(_x) {
23982
24055
  return _updateShelfPlannerState.apply(this, arguments);
23983
24056
  }
23984
24057
  return updateShelfPlannerState;
@@ -23987,7 +24060,7 @@ var DivaArticle = /*#__PURE__*/function () {
23987
24060
  key: "calcConfigPrice",
23988
24061
  value: function calcConfigPrice(maxPriceOfGroupCodex, digits) {
23989
24062
  var _this4 = this,
23990
- _this$catalogArticle$;
24063
+ _this$catalogArticle$2;
23991
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.
23992
24065
  //wenn ja, hier neues shape übergeben
23993
24066
  if (this.articleType === 'FLAT') return;
@@ -24187,7 +24260,7 @@ var DivaArticle = /*#__PURE__*/function () {
24187
24260
 
24188
24261
  //Wenn der Artikel über IDM einnen Längen/Flächenabhängigen Preis hat, dann entspricht der aktuelle Preis nur einer Einheit
24189
24262
  //dieser muss jetzt m it entsprechenden Massen multipliziert werden
24190
- 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) {
24191
24264
  articleUsedCalcPrice = articleUsedCalcPrice * idmPriceMeasureFactor / this.catalogArticle.basicUnitPrice;
24192
24265
  }
24193
24266
  this.article.price = articleUsedCalcPrice;
@@ -24356,16 +24429,16 @@ var DivaArticle = /*#__PURE__*/function () {
24356
24429
  }
24357
24430
  }
24358
24431
  for (var _key4 in myValues) {
24359
- var _ops7 = this.getArticleOptionState(_key4);
24360
- if (_ops7) {
24432
+ var _ops8 = this.getArticleOptionState(_key4);
24433
+ if (_ops8) {
24361
24434
  validValues[_key4] = myValues[_key4];
24362
24435
  } else if (_key4.endsWith('_val') && this.getArticleOptionState(_key4.replace(/_val/g, ''))) {
24363
24436
  validValues[_key4] = myValues[_key4];
24364
24437
  } else {
24365
24438
  for (var _opt in this.articleOptionStates) {
24366
- var _ops8 = this.articleOptionStates[_opt];
24439
+ var _ops9 = this.articleOptionStates[_opt];
24367
24440
  if (this.articleOptionStates[_opt].optionOcd == _key4) {
24368
- var values = this.checkOptionSearchOPV(_ops8.option, myValues[_key4], {});
24441
+ var values = this.checkOptionSearchOPV(_ops9.option, myValues[_key4], {});
24369
24442
  if (values !== null && values !== void 0 && values.opv) validValues[_opt] = values.opv.codex;
24370
24443
  }
24371
24444
  }
@@ -24685,7 +24758,7 @@ var DivaArticle = /*#__PURE__*/function () {
24685
24758
  }
24686
24759
  if (myArtOption.isDoShow && !doHideSizeOption && myArtOption.val) {
24687
24760
  if (myArtOption.visibleCount > 0) {
24688
- var _myArtOption$valName_, _this$article$options2, _this$article$options3, _myArtOption$val;
24761
+ var _myArtOption$valName_, _this$optionsForPrint2, _this$optionsForPrint3, _myArtOption$val;
24689
24762
  var isfreeText = false,
24690
24763
  isMeasureValue = false,
24691
24764
  freeText = undefined,
@@ -24727,7 +24800,7 @@ var DivaArticle = /*#__PURE__*/function () {
24727
24800
  TabGroup_locales: myArtOption.optionTabGroup_locales,
24728
24801
  SendToSAP: myArtOption.option.sendToSAP,
24729
24802
  ArticlePlaceholder: myArtOption.option.articlePlaceholder,
24730
- 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))),
24731
24804
  HideInOrderText: myArtOption.hideInOrderText,
24732
24805
  IsDescribingState: myArtOption.isDescribingState,
24733
24806
  FreeTextLang: myArtOption.freeTextLang,
@@ -24856,7 +24929,7 @@ var DivaArticle = /*#__PURE__*/function () {
24856
24929
  value: function cloneArticle(set) {
24857
24930
  var clonedArticle = new DivaArticle(set, this.basketId, _objectSpread$e({}, this.article), this.article.catalogArticle, set.CatalogData);
24858
24931
  for (var key in this.articleOptionStates) {
24859
- clonedArticle.articleOptionStates[key] = this.articleOptionStates[key].cloneOptionState();
24932
+ clonedArticle.articleOptionStates[key] = this.articleOptionStates[key].cloneOptionState(clonedArticle.getIsConfigSingle);
24860
24933
  }
24861
24934
  clonedArticle.article.partlistArticles = {};
24862
24935
  clonedArticle.article.previousPartlistArticles = {};
@@ -25356,7 +25429,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25356
25429
  for (key in myCatalogArticleOptions) {
25357
25430
  //Hier wird mal geschaut, ob der aktuelle Artikel alle Optionen schon initialisiert hat.
25358
25431
  if (!articleOptionState[key]) {
25359
- 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);
25360
25433
  article.uploadOptionState(optionState); //alle Optionen erstellen
25361
25434
  }
25362
25435
  }
@@ -25527,7 +25600,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25527
25600
  break;
25528
25601
  }
25529
25602
  _context10.next = 9;
25530
- return article.updateShelfPlannerState();
25603
+ return article.updateShelfPlannerState(newConfigValues);
25531
25604
  case 9:
25532
25605
  if (!(!dontCalcPrice && !calcVariantPrice)) {
25533
25606
  _context10.next = 12;
@@ -28611,7 +28684,7 @@ var DivaSet = /*#__PURE__*/function () {
28611
28684
  break;
28612
28685
  }
28613
28686
  _context5.next = 3;
28614
- return import('./DoorPlanner-a51c88c2.js');
28687
+ return import('./DoorPlanner-74c6c1f8.js');
28615
28688
  case 3:
28616
28689
  _yield$import = _context5.sent;
28617
28690
  DoorPlanner = _yield$import["default"];
@@ -30746,8 +30819,11 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30746
30819
  if (ops && basketId && parentCodex && ((_ops$optionOcd = ops.optionOcd) !== null && _ops$optionOcd !== void 0 ? _ops$optionOcd : ops.optionCodex) !== parentCodex) {
30747
30820
  var article = set.getArticleByBasketId(basketId);
30748
30821
  if (article) {
30749
- var _ops$visibleOptionVal;
30750
- if (!!article.getArticleOptionState(ops.option.parentOptionCodex).isDifferentOption) return true;
30822
+ var _o$valCodex, _ops$visibleOptionVal;
30823
+ var o = article.getArticleOptionState(ops.option.parentOptionCodex);
30824
+ if (!!o.isDifferentOption && !((_o$valCodex = o.valCodex) !== null && _o$valCodex !== void 0 && _o$valCodex.includes('OPVSUB'))) {
30825
+ return true;
30826
+ }
30751
30827
  var rul = (_ops$visibleOptionVal = ops.visibleOptionValues[Object.keys(ops.visibleOptionValues)[0]]) === null || _ops$visibleOptionVal === void 0 ? void 0 : _ops$visibleOptionVal.rul;
30752
30828
  if (rul) {
30753
30829
  var parentOptions = DivaUtils.getOptionsByRule(rul);
@@ -32356,7 +32432,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32356
32432
  break;
32357
32433
  }
32358
32434
  _context17.next = 18;
32359
- return parentArticle.shelfPlanner.onConfigChanged();
32435
+ return parentArticle.shelfPlanner.onConfigChanged({});
32360
32436
  case 18:
32361
32437
  _context17.next = 22;
32362
32438
  break;
@@ -32386,13 +32462,34 @@ var DivaSetHandler = /*#__PURE__*/function () {
32386
32462
  }()
32387
32463
  }, {
32388
32464
  key: "moveShelfItem",
32389
- value: function moveShelfItem(set, grid, initialIndex, finalIndex) {
32390
- var article = set.getArticleByBasketId(grid.basketId);
32391
- if (article && article.shelfPlanner) {
32392
- 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);
32393
32490
  }
32394
- return 'NOTHING_CHANGED';
32395
- }
32491
+ return moveShelfItem;
32492
+ }()
32396
32493
  }, {
32397
32494
  key: "selectShelfAccArticle",
32398
32495
  value: function selectShelfAccArticle(set, gridGroup, targetArticles, articleCodex) {
@@ -32409,11 +32506,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
32409
32506
  }, {
32410
32507
  key: "getFreeShelfGrids",
32411
32508
  value: function () {
32412
- var _getFreeShelfGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(set, gridGroup) {
32509
+ var _getFreeShelfGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(set, gridGroup) {
32413
32510
  var _article$shelfPlanner;
32414
32511
  var articles, article, articleCodex, accessoire, ret;
32415
- return _regeneratorRuntime.wrap(function _callee16$(_context18) {
32416
- while (1) switch (_context18.prev = _context18.next) {
32512
+ return _regeneratorRuntime.wrap(function _callee17$(_context19) {
32513
+ while (1) switch (_context19.prev = _context19.next) {
32417
32514
  case 0:
32418
32515
  articles = set.getDivaArticlesByGridGroup(gridGroup);
32419
32516
  article = Object.values(articles).find(function (a) {
@@ -32422,38 +32519,38 @@ var DivaSetHandler = /*#__PURE__*/function () {
32422
32519
  });
32423
32520
  articleCodex = article === null || article === void 0 || (_article$shelfPlanner = article.shelfPlanner) === null || _article$shelfPlanner === void 0 ? void 0 : _article$shelfPlanner.getSelectedAccessoireById(gridGroup);
32424
32521
  if (!(!article || !articleCodex)) {
32425
- _context18.next = 5;
32522
+ _context19.next = 5;
32426
32523
  break;
32427
32524
  }
32428
- return _context18.abrupt("return", undefined);
32525
+ return _context19.abrupt("return", undefined);
32429
32526
  case 5:
32430
- _context18.next = 7;
32527
+ _context19.next = 7;
32431
32528
  return this.addArticleToActSet(set, articleCodex, {
32432
32529
  relatedToBasketId: article.basketId,
32433
32530
  relatedToShelf: article.basketId,
32434
32531
  relatedToShelfGrid: 0
32435
32532
  }, false, 'toDeleteShelf');
32436
32533
  case 7:
32437
- accessoire = _context18.sent;
32438
- _context18.next = 10;
32439
- return accessoire.updateShelfPlannerState();
32534
+ accessoire = _context19.sent;
32535
+ _context19.next = 10;
32536
+ return accessoire.updateShelfPlannerState({});
32440
32537
  case 10:
32441
32538
  articleHandlerInstance.initCfgValues(accessoire, {});
32442
- _context18.next = 13;
32539
+ _context19.next = 13;
32443
32540
  return articleHandlerInstance.updateCfgValues(accessoire, {}, {}, true, true);
32444
32541
  case 13:
32445
32542
  ret = this.getFreePlaces(gridGroup, articles, accessoire);
32446
- _context18.next = 16;
32543
+ _context19.next = 16;
32447
32544
  return this.deleteElementFromSet(set, accessoire, undefined, undefined, true);
32448
32545
  case 16:
32449
- return _context18.abrupt("return", ret);
32546
+ return _context19.abrupt("return", ret);
32450
32547
  case 17:
32451
32548
  case "end":
32452
- return _context18.stop();
32549
+ return _context19.stop();
32453
32550
  }
32454
- }, _callee16, this);
32551
+ }, _callee17, this);
32455
32552
  }));
32456
- function getFreeShelfGrids(_x52, _x53) {
32553
+ function getFreeShelfGrids(_x56, _x57) {
32457
32554
  return _getFreeShelfGrids.apply(this, arguments);
32458
32555
  }
32459
32556
  return getFreeShelfGrids;
@@ -32512,62 +32609,62 @@ var DivaSetHandler = /*#__PURE__*/function () {
32512
32609
  }, {
32513
32610
  key: "moveShelfItemToGrid",
32514
32611
  value: function () {
32515
- 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) {
32516
32613
  var _oldGrid$Cells$find;
32517
32614
  var artices, accessoire, oldParent, newParent, oldGrid, newGrid, index;
32518
- return _regeneratorRuntime.wrap(function _callee17$(_context19) {
32519
- while (1) switch (_context19.prev = _context19.next) {
32615
+ return _regeneratorRuntime.wrap(function _callee18$(_context20) {
32616
+ while (1) switch (_context20.prev = _context20.next) {
32520
32617
  case 0:
32521
32618
  artices = set.getDivaArticles();
32522
32619
  accessoire = artices[accessoireBasketId];
32523
32620
  oldParent = accessoire.accessoireParentArticle;
32524
32621
  newParent = artices[parentBasketId];
32525
32622
  if (!(accessoire.relatedToShelfGrid === undefined)) {
32526
- _context19.next = 6;
32623
+ _context20.next = 6;
32527
32624
  break;
32528
32625
  }
32529
- return _context19.abrupt("return");
32626
+ return _context20.abrupt("return");
32530
32627
  case 6:
32531
32628
  if (oldParent !== null && oldParent !== void 0 && oldParent.shelfPlanner) {
32532
- _context19.next = 8;
32629
+ _context20.next = 8;
32533
32630
  break;
32534
32631
  }
32535
- return _context19.abrupt("return");
32632
+ return _context20.abrupt("return");
32536
32633
  case 8:
32537
32634
  if (newParent !== null && newParent !== void 0 && newParent.shelfPlanner) {
32538
- _context19.next = 10;
32635
+ _context20.next = 10;
32539
32636
  break;
32540
32637
  }
32541
- return _context19.abrupt("return");
32638
+ return _context20.abrupt("return");
32542
32639
  case 10:
32543
32640
  oldGrid = oldParent.shelfPlanner.getGridByIndex(accessoire.relatedToShelfGrid);
32544
32641
  newGrid = newParent.shelfPlanner.getGridByGridName(gridName);
32545
32642
  if (oldGrid) {
32546
- _context19.next = 14;
32643
+ _context20.next = 14;
32547
32644
  break;
32548
32645
  }
32549
- return _context19.abrupt("return");
32646
+ return _context20.abrupt("return");
32550
32647
  case 14:
32551
32648
  if (newGrid) {
32552
- _context19.next = 16;
32649
+ _context20.next = 16;
32553
32650
  break;
32554
32651
  }
32555
- return _context19.abrupt("return");
32652
+ return _context20.abrupt("return");
32556
32653
  case 16:
32557
32654
  index = oldGrid === null || oldGrid === void 0 || (_oldGrid$Cells$find = oldGrid.Cells.find(function (c, i) {
32558
32655
  var _c$Article;
32559
32656
  return c.Index === c.InUse && ((_c$Article = c.Article) === null || _c$Article === void 0 ? void 0 : _c$Article.basketId) == accessoire.basketId;
32560
32657
  })) === null || _oldGrid$Cells$find === void 0 ? void 0 : _oldGrid$Cells$find.Index;
32561
32658
  if (!(index === undefined)) {
32562
- _context19.next = 19;
32659
+ _context20.next = 19;
32563
32660
  break;
32564
32661
  }
32565
- return _context19.abrupt("return");
32662
+ return _context20.abrupt("return");
32566
32663
  case 19:
32567
- _context19.next = 21;
32664
+ _context20.next = 21;
32568
32665
  return oldParent.shelfPlanner.deleteAccessoireOfCellInGrid(accessoire.relatedToShelfGrid, index);
32569
32666
  case 21:
32570
- _context19.next = 23;
32667
+ _context20.next = 23;
32571
32668
  return newParent.shelfPlanner.addAccessoireInCellInGrid(accessoire, newGrid.ShelfIndex, cellIndex, 'fitsOn');
32572
32669
  case 23:
32573
32670
  accessoire.relatedToShelfGrid = newGrid.ShelfIndex;
@@ -32579,17 +32676,17 @@ var DivaSetHandler = /*#__PURE__*/function () {
32579
32676
  set.giveAccNewPosNrByBasketId(set.getBaseParentArticleOfAccessoire(oldParent.basketId).basketId);
32580
32677
  }
32581
32678
  set.giveAccNewPosNrByBasketId(set.getBaseParentArticleOfAccessoire(newParent.basketId).basketId);
32582
- _context19.next = 28;
32679
+ _context20.next = 28;
32583
32680
  return this.updateArticlesOptionStatesOfActSet(set, {}, [oldParent.basketId, newParent.basketId]);
32584
32681
  case 28:
32585
- return _context19.abrupt("return", newGrid.getGridIdByArticleCodex(accessoire.articleCodex));
32682
+ return _context20.abrupt("return", newGrid.getGridIdByArticleCodex(accessoire.articleCodex));
32586
32683
  case 29:
32587
32684
  case "end":
32588
- return _context19.stop();
32685
+ return _context20.stop();
32589
32686
  }
32590
- }, _callee17, this);
32687
+ }, _callee18, this);
32591
32688
  }));
32592
- function moveShelfItemToGrid(_x54, _x55, _x56, _x57, _x58) {
32689
+ function moveShelfItemToGrid(_x58, _x59, _x60, _x61, _x62) {
32593
32690
  return _moveShelfItemToGrid.apply(this, arguments);
32594
32691
  }
32595
32692
  return moveShelfItemToGrid;
@@ -32597,33 +32694,33 @@ var DivaSetHandler = /*#__PURE__*/function () {
32597
32694
  }, {
32598
32695
  key: "deleteAccessorieOnShelfPlanner",
32599
32696
  value: function () {
32600
- 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) {
32601
32698
  var _parentArticle$shelfP2;
32602
32699
  var parentArticle, articeToDelete, _parentArticle$shelfP3;
32603
- return _regeneratorRuntime.wrap(function _callee18$(_context20) {
32604
- while (1) switch (_context20.prev = _context20.next) {
32700
+ return _regeneratorRuntime.wrap(function _callee19$(_context21) {
32701
+ while (1) switch (_context21.prev = _context21.next) {
32605
32702
  case 0:
32606
32703
  parentArticle = set.getArticleByBasketId(parentBasketId);
32607
- _context20.next = 3;
32704
+ _context21.next = 3;
32608
32705
  return parentArticle === null || parentArticle === void 0 || (_parentArticle$shelfP2 = parentArticle.shelfPlanner) === null || _parentArticle$shelfP2 === void 0 ? void 0 : _parentArticle$shelfP2.deleteAccessoireOfCellInGrid(gridIndex, cellIndex);
32609
32706
  case 3:
32610
- articeToDelete = _context20.sent;
32707
+ articeToDelete = _context21.sent;
32611
32708
  if (!articeToDelete) {
32612
- _context20.next = 9;
32709
+ _context21.next = 9;
32613
32710
  break;
32614
32711
  }
32615
- _context20.next = 7;
32712
+ _context21.next = 7;
32616
32713
  return this.deleteElementFromSet(set, articeToDelete, false, undefined, dontReload);
32617
32714
  case 7:
32618
- _context20.next = 9;
32619
- 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({});
32620
32717
  case 9:
32621
32718
  case "end":
32622
- return _context20.stop();
32719
+ return _context21.stop();
32623
32720
  }
32624
- }, _callee18, this);
32721
+ }, _callee19, this);
32625
32722
  }));
32626
- function deleteAccessorieOnShelfPlanner(_x59, _x60, _x61, _x62, _x63) {
32723
+ function deleteAccessorieOnShelfPlanner(_x63, _x64, _x65, _x66, _x67) {
32627
32724
  return _deleteAccessorieOnShelfPlanner.apply(this, arguments);
32628
32725
  }
32629
32726
  return deleteAccessorieOnShelfPlanner;
@@ -32631,25 +32728,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
32631
32728
  }, {
32632
32729
  key: "updatePlannerTrans",
32633
32730
  value: function () {
32634
- 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) {
32635
32732
  var updateConfig;
32636
- return _regeneratorRuntime.wrap(function _callee19$(_context21) {
32637
- while (1) switch (_context21.prev = _context21.next) {
32733
+ return _regeneratorRuntime.wrap(function _callee20$(_context22) {
32734
+ while (1) switch (_context22.prev = _context22.next) {
32638
32735
  case 0:
32639
32736
  updateConfig = set.plannerHandler.updatePlannerTrans(set.getSetId(), plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance);
32640
32737
  if (!updateConfig) {
32641
- _context21.next = 4;
32738
+ _context22.next = 4;
32642
32739
  break;
32643
32740
  }
32644
- _context21.next = 4;
32741
+ _context22.next = 4;
32645
32742
  return this.updateArticlesOptionStatesOfActSet(set, {}, [], true, 'initializingAfterTrans');
32646
32743
  case 4:
32647
32744
  case "end":
32648
- return _context21.stop();
32745
+ return _context22.stop();
32649
32746
  }
32650
- }, _callee19, this);
32747
+ }, _callee20, this);
32651
32748
  }));
32652
- function updatePlannerTrans(_x64, _x65, _x66, _x67, _x68, _x69, _x70) {
32749
+ function updatePlannerTrans(_x68, _x69, _x70, _x71, _x72, _x73, _x74) {
32653
32750
  return _updatePlannerTrans.apply(this, arguments);
32654
32751
  }
32655
32752
  return updatePlannerTrans;
@@ -32725,10 +32822,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
32725
32822
  }, {
32726
32823
  key: "deleteAccessoire",
32727
32824
  value: function () {
32728
- var _deleteAccessoire = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(set, articleCodex, parentBasketId) {
32825
+ var _deleteAccessoire = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(set, articleCodex, parentBasketId) {
32729
32826
  var divaArticles, articlesToDelete, key, articleToDelete, maxQuantity, i;
32730
- return _regeneratorRuntime.wrap(function _callee20$(_context22) {
32731
- while (1) switch (_context22.prev = _context22.next) {
32827
+ return _regeneratorRuntime.wrap(function _callee21$(_context23) {
32828
+ while (1) switch (_context23.prev = _context23.next) {
32732
32829
  case 0:
32733
32830
  divaArticles = set.getDivaArticles();
32734
32831
  articlesToDelete = [];
@@ -32740,7 +32837,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32740
32837
  }
32741
32838
  }
32742
32839
  if (!(articlesToDelete.length > 0)) {
32743
- _context22.next = 17;
32840
+ _context23.next = 17;
32744
32841
  break;
32745
32842
  }
32746
32843
  articlesToDelete.sort(function (a, b) {
@@ -32754,27 +32851,27 @@ var DivaSetHandler = /*#__PURE__*/function () {
32754
32851
  }
32755
32852
  }
32756
32853
  if (!(articleToDelete.quantity > 1)) {
32757
- _context22.next = 14;
32854
+ _context23.next = 14;
32758
32855
  break;
32759
32856
  }
32760
- _context22.next = 11;
32857
+ _context23.next = 11;
32761
32858
  return articleHandlerInstance.updateAccessoireQuantity(articleToDelete, articleToDelete.quantity - 1);
32762
32859
  case 11:
32763
- return _context22.abrupt("return", true);
32860
+ return _context23.abrupt("return", true);
32764
32861
  case 14:
32765
- _context22.next = 16;
32862
+ _context23.next = 16;
32766
32863
  return this.deleteElementFromSet(articleToDelete.set, articleToDelete);
32767
32864
  case 16:
32768
- return _context22.abrupt("return", _context22.sent);
32865
+ return _context23.abrupt("return", _context23.sent);
32769
32866
  case 17:
32770
- return _context22.abrupt("return", false);
32867
+ return _context23.abrupt("return", false);
32771
32868
  case 18:
32772
32869
  case "end":
32773
- return _context22.stop();
32870
+ return _context23.stop();
32774
32871
  }
32775
- }, _callee20, this);
32872
+ }, _callee21, this);
32776
32873
  }));
32777
- function deleteAccessoire(_x71, _x72, _x73) {
32874
+ function deleteAccessoire(_x75, _x76, _x77) {
32778
32875
  return _deleteAccessoire.apply(this, arguments);
32779
32876
  }
32780
32877
  return deleteAccessoire;
@@ -32900,19 +32997,19 @@ var DivaSetHandler = /*#__PURE__*/function () {
32900
32997
  }, {
32901
32998
  key: "configSingleIsChanged",
32902
32999
  value: (function () {
32903
- 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) {
32904
33001
  var _set$getArticleByBask4, variantValues, key;
32905
- return _regeneratorRuntime.wrap(function _callee21$(_context23) {
32906
- while (1) switch (_context23.prev = _context23.next) {
33002
+ return _regeneratorRuntime.wrap(function _callee22$(_context24) {
33003
+ while (1) switch (_context24.prev = _context24.next) {
32907
33004
  case 0:
32908
33005
  set.configSingle = newIsConfigSingle;
32909
33006
  if (!(!set.configSingle && !set.CatalogData.onConfigSingleDontGeneralize && groupedOptions && groupedArticles)) {
32910
- _context23.next = 7;
33007
+ _context24.next = 7;
32911
33008
  break;
32912
33009
  }
32913
33010
  variantValues = (_set$getArticleByBask4 = set.getArticleByBasketId(groupedArticles[0])) === null || _set$getArticleByBask4 === void 0 ? void 0 : _set$getArticleByBask4.VariantValues;
32914
33011
  if (!variantValues) {
32915
- _context23.next = 7;
33012
+ _context24.next = 7;
32916
33013
  break;
32917
33014
  }
32918
33015
  for (key in variantValues) {
@@ -32920,15 +33017,15 @@ var DivaSetHandler = /*#__PURE__*/function () {
32920
33017
  delete variantValues[key];
32921
33018
  }
32922
33019
  }
32923
- _context23.next = 7;
33020
+ _context24.next = 7;
32924
33021
  return this.updateArticlesOptionStatesOfActSet(set, variantValues, groupedArticles);
32925
33022
  case 7:
32926
33023
  case "end":
32927
- return _context23.stop();
33024
+ return _context24.stop();
32928
33025
  }
32929
- }, _callee21, this);
33026
+ }, _callee22, this);
32930
33027
  }));
32931
- function configSingleIsChanged(_x74, _x75, _x76, _x77) {
33028
+ function configSingleIsChanged(_x78, _x79, _x80, _x81) {
32932
33029
  return _configSingleIsChanged.apply(this, arguments);
32933
33030
  }
32934
33031
  return configSingleIsChanged;
@@ -33025,26 +33122,26 @@ var DivaSetHandler = /*#__PURE__*/function () {
33025
33122
  }, {
33026
33123
  key: "loadConfigItemsOfActSetByConfigStepKey",
33027
33124
  value: function () {
33028
- var _loadConfigItemsOfActSetByConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(set, configStepKey, visible) {
33125
+ var _loadConfigItemsOfActSetByConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(set, configStepKey, visible) {
33029
33126
  var _configItems$option;
33030
33127
  var configItems, paletteType, filterType, stepInfo, contentItemId;
33031
- return _regeneratorRuntime.wrap(function _callee22$(_context24) {
33032
- while (1) switch (_context24.prev = _context24.next) {
33128
+ return _regeneratorRuntime.wrap(function _callee23$(_context25) {
33129
+ while (1) switch (_context25.prev = _context25.next) {
33033
33130
  case 0:
33034
- _context24.next = 2;
33131
+ _context25.next = 2;
33035
33132
  return configTreeHandler.getConifgItemsForView(set, configStepKey);
33036
33133
  case 2:
33037
- configItems = _context24.sent;
33134
+ configItems = _context25.sent;
33038
33135
  paletteType = set.configTree.getCurPaletteType(set, configStepKey);
33039
33136
  configItems.configItems = this.removeDockingInfluencableconfigItems(set, configItems.configItems, configStepKey);
33040
- _context24.next = 7;
33137
+ _context25.next = 7;
33041
33138
  return this.variantsEvaluator(set, configItems.configItems, configStepKey, paletteType);
33042
33139
  case 7:
33043
- configItems.configItems = _context24.sent;
33140
+ configItems.configItems = _context25.sent;
33044
33141
  filterType = set.configTree.getCurFilterType(configStepKey, configItems.configItems);
33045
33142
  stepInfo = set.configTree.getStepInfo(configStepKey);
33046
33143
  contentItemId = (_configItems$option = configItems.option) === null || _configItems$option === void 0 ? void 0 : _configItems$option.contentItemId;
33047
- return _context24.abrupt("return", _objectSpread$9(_objectSpread$9(_objectSpread$9({
33144
+ return _context25.abrupt("return", _objectSpread$9(_objectSpread$9(_objectSpread$9({
33048
33145
  isRenderedNotInSettingPalette: set.configTree.isRenderedNotInSettingPalette(configStepKey),
33049
33146
  isRenderedInAccessorieStep: set.configTree.isRenderedInAccessorieStep(configStepKey),
33050
33147
  visible: set.configTree.getVisibility(configStepKey, visible, set.CatalogData)
@@ -33057,11 +33154,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33057
33154
  }));
33058
33155
  case 12:
33059
33156
  case "end":
33060
- return _context24.stop();
33157
+ return _context25.stop();
33061
33158
  }
33062
- }, _callee22, this);
33159
+ }, _callee23, this);
33063
33160
  }));
33064
- function loadConfigItemsOfActSetByConfigStepKey(_x78, _x79, _x80) {
33161
+ function loadConfigItemsOfActSetByConfigStepKey(_x82, _x83, _x84) {
33065
33162
  return _loadConfigItemsOfActSetByConfigStepKey.apply(this, arguments);
33066
33163
  }
33067
33164
  return loadConfigItemsOfActSetByConfigStepKey;
@@ -33103,7 +33200,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33103
33200
  }, {
33104
33201
  key: "variantsEvaluator",
33105
33202
  value: (function () {
33106
- 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) {
33107
33204
  var _configItems$0$option,
33108
33205
  _set$ViewConfig,
33109
33206
  _set$api$ReturnToFrom,
@@ -33111,22 +33208,22 @@ var DivaSetHandler = /*#__PURE__*/function () {
33111
33208
  _set$CatalogData$hide,
33112
33209
  _this = this;
33113
33210
  var opt, previewType, targetArticles, variants;
33114
- return _regeneratorRuntime.wrap(function _callee23$(_context25) {
33115
- while (1) switch (_context25.prev = _context25.next) {
33211
+ return _regeneratorRuntime.wrap(function _callee24$(_context26) {
33212
+ while (1) switch (_context26.prev = _context26.next) {
33116
33213
  case 0:
33117
33214
  opt = set.CatalogData.getOption((_configItems$0$option = configItems[0].optionOcd) !== null && _configItems$0$option !== void 0 ? _configItems$0$option : configItems[0].op);
33118
33215
  previewType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.pricePreview;
33119
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)))) {
33120
- _context25.next = 4;
33217
+ _context26.next = 4;
33121
33218
  break;
33122
33219
  }
33123
- return _context25.abrupt("return", configItems);
33220
+ return _context26.abrupt("return", configItems);
33124
33221
  case 4:
33125
33222
  targetArticles = set.configTree.getTargetArticles(configStepKey);
33126
- _context25.next = 7;
33223
+ _context26.next = 7;
33127
33224
  return this.calcVariants(set, configItems, targetArticles, opt.codex);
33128
33225
  case 7:
33129
- variants = _context25.sent;
33226
+ variants = _context26.sent;
33130
33227
  if (previewType) {
33131
33228
  configItems.map(function (c, index) {
33132
33229
  return c.pricePreviewPromise = {
@@ -33135,14 +33232,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33135
33232
  };
33136
33233
  });
33137
33234
  }
33138
- return _context25.abrupt("return", configItems);
33235
+ return _context26.abrupt("return", configItems);
33139
33236
  case 10:
33140
33237
  case "end":
33141
- return _context25.stop();
33238
+ return _context26.stop();
33142
33239
  }
33143
- }, _callee23, this);
33240
+ }, _callee24, this);
33144
33241
  }));
33145
- function variantsEvaluator(_x81, _x82, _x83, _x84) {
33242
+ function variantsEvaluator(_x85, _x86, _x87, _x88) {
33146
33243
  return _variantsEvaluator.apply(this, arguments);
33147
33244
  }
33148
33245
  return variantsEvaluator;
@@ -33150,10 +33247,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
33150
33247
  }, {
33151
33248
  key: "calcVariants",
33152
33249
  value: function () {
33153
- var _calcVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(realSet, configItems, targetArticles, optionCodex) {
33154
- var variantInfo, set, articles, origPrice, articleConfigs, i, basketId, totalConfig, key, parentNames, _i5, configItem;
33155
- return _regeneratorRuntime.wrap(function _callee24$(_context26) {
33156
- while (1) switch (_context26.prev = _context26.next) {
33250
+ var _calcVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(realSet, configItems, targetArticles, optionCodex) {
33251
+ var variantInfo, set, articles, origPrice, articleConfigs, i, basketId, totalConfig, key, parentNames, _i5, configItem, _configItem$parentNam, _configItem$parentNam2;
33252
+ return _regeneratorRuntime.wrap(function _callee25$(_context27) {
33253
+ while (1) switch (_context27.prev = _context27.next) {
33157
33254
  case 0:
33158
33255
  variantInfo = [];
33159
33256
  set = realSet.cloneSet();
@@ -33178,37 +33275,37 @@ var DivaSetHandler = /*#__PURE__*/function () {
33178
33275
  _i5 = 0;
33179
33276
  case 10:
33180
33277
  if (!(_i5 < configItems.length)) {
33181
- _context26.next = 23;
33278
+ _context27.next = 23;
33182
33279
  break;
33183
33280
  }
33184
33281
  configItem = configItems[_i5];
33185
- if (!(configItem.parentName && configItem.isParentOPVG)) {
33186
- _context26.next = 19;
33282
+ if (!(configItem.parentName && configItem.isParentOPVG || configItem.idmOpgValCodex)) {
33283
+ _context27.next = 19;
33187
33284
  break;
33188
33285
  }
33189
- if (!parentNames.includes(configItem.parentName)) {
33190
- _context26.next = 18;
33286
+ if (!parentNames.includes((_configItem$parentNam = configItem.parentName) !== null && _configItem$parentNam !== void 0 ? _configItem$parentNam : configItem.idmOpgValCodex)) {
33287
+ _context27.next = 18;
33191
33288
  break;
33192
33289
  }
33193
33290
  variantInfo.push(variantInfo[_i5 - 1]);
33194
- return _context26.abrupt("continue", 20);
33291
+ return _context27.abrupt("continue", 20);
33195
33292
  case 18:
33196
- parentNames.push(configItem.parentName);
33293
+ parentNames.push((_configItem$parentNam2 = configItem.parentName) !== null && _configItem$parentNam2 !== void 0 ? _configItem$parentNam2 : configItem.idmOpgValCodex);
33197
33294
  case 19:
33198
33295
  variantInfo.push(this.getVariant(set, configItem, articleConfigs, totalConfig, targetArticles, optionCodex, origPrice, _i5, variantInfo[_i5 - 1]));
33199
33296
  case 20:
33200
33297
  _i5++;
33201
- _context26.next = 10;
33298
+ _context27.next = 10;
33202
33299
  break;
33203
33300
  case 23:
33204
- return _context26.abrupt("return", variantInfo);
33301
+ return _context27.abrupt("return", variantInfo);
33205
33302
  case 24:
33206
33303
  case "end":
33207
- return _context26.stop();
33304
+ return _context27.stop();
33208
33305
  }
33209
- }, _callee24, this);
33306
+ }, _callee25, this);
33210
33307
  }));
33211
- function calcVariants(_x85, _x86, _x87, _x88) {
33308
+ function calcVariants(_x89, _x90, _x91, _x92) {
33212
33309
  return _calcVariants.apply(this, arguments);
33213
33310
  }
33214
33311
  return calcVariants;
@@ -33216,23 +33313,23 @@ var DivaSetHandler = /*#__PURE__*/function () {
33216
33313
  }, {
33217
33314
  key: "getVariant",
33218
33315
  value: function () {
33219
- 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) {
33220
33317
  var firstPrice, prevProm, startTime, doUseConfigs, hashVariantValues, variantValues, i, basketId, origConfig, key, hash, dataHash, _i6, endTime, calcTime, price, priceObj;
33221
- return _regeneratorRuntime.wrap(function _callee25$(_context27) {
33222
- while (1) switch (_context27.prev = _context27.next) {
33318
+ return _regeneratorRuntime.wrap(function _callee26$(_context28) {
33319
+ while (1) switch (_context28.prev = _context28.next) {
33223
33320
  case 0:
33224
33321
  firstPrice = undefined;
33225
33322
  prevProm = undefined;
33226
33323
  if (!previousPromise) {
33227
- _context27.next = 9;
33324
+ _context28.next = 9;
33228
33325
  break;
33229
33326
  }
33230
- _context27.next = 5;
33327
+ _context28.next = 5;
33231
33328
  return previousPromise;
33232
33329
  case 5:
33233
- prevProm = _context27.sent;
33330
+ prevProm = _context28.sent;
33234
33331
  firstPrice = prevProm.firstPrice;
33235
- _context27.next = 10;
33332
+ _context28.next = 10;
33236
33333
  break;
33237
33334
  case 9:
33238
33335
  firstPrice = set.getSetPrice();
@@ -33265,11 +33362,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33265
33362
  hash = md5(JSON.stringify([].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig)))));
33266
33363
  dataHash = set.CatalogData.getVariantsPriceByHash(hash);
33267
33364
  if (!dataHash) {
33268
- _context27.next = 21;
33365
+ _context28.next = 21;
33269
33366
  break;
33270
33367
  }
33271
33368
  LOG$9.debug('calcingVariant from Option:' + optionCodex + ' and index: ' + index + ' hash hit!', dataHash, [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig))), targetArticles);
33272
- return _context27.abrupt("return", _objectSpread$9(_objectSpread$9({}, dataHash), {}, {
33369
+ return _context28.abrupt("return", _objectSpread$9(_objectSpread$9({}, dataHash), {}, {
33273
33370
  origPrice: origPrice,
33274
33371
  firstPrice: firstPrice
33275
33372
  }));
@@ -33277,14 +33374,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33277
33374
  _i6 = 0;
33278
33375
  case 22:
33279
33376
  if (!(_i6 < variantValues.length)) {
33280
- _context27.next = 28;
33377
+ _context28.next = 28;
33281
33378
  break;
33282
33379
  }
33283
- _context27.next = 25;
33380
+ _context28.next = 25;
33284
33381
  return this.updateArticlesOptionStatesOfActSet(set, variantValues[_i6], [targetArticles[_i6]], true, 'calcVariant');
33285
33382
  case 25:
33286
33383
  _i6++;
33287
- _context27.next = 22;
33384
+ _context28.next = 22;
33288
33385
  break;
33289
33386
  case 28:
33290
33387
  endTime = new Date();
@@ -33302,14 +33399,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33302
33399
  hashObj: [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig)))
33303
33400
  };
33304
33401
  set.CatalogData.setVariantsPriceByHash(hash, priceObj);
33305
- return _context27.abrupt("return", priceObj);
33402
+ return _context28.abrupt("return", priceObj);
33306
33403
  case 35:
33307
33404
  case "end":
33308
- return _context27.stop();
33405
+ return _context28.stop();
33309
33406
  }
33310
- }, _callee25, this);
33407
+ }, _callee26, this);
33311
33408
  }));
33312
- function getVariant(_x89, _x90, _x91, _x92, _x93, _x94, _x95, _x96, _x97) {
33409
+ function getVariant(_x93, _x94, _x95, _x96, _x97, _x98, _x99, _x100, _x101) {
33313
33410
  return _getVariant.apply(this, arguments);
33314
33411
  }
33315
33412
  return getVariant;
@@ -33317,53 +33414,53 @@ var DivaSetHandler = /*#__PURE__*/function () {
33317
33414
  }, {
33318
33415
  key: "checkIfPriceDiffers",
33319
33416
  value: function () {
33320
- var _checkIfPriceDiffers = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(promises) {
33417
+ var _checkIfPriceDiffers = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(promises) {
33321
33418
  var results, i, price, j;
33322
- return _regeneratorRuntime.wrap(function _callee26$(_context28) {
33323
- while (1) switch (_context28.prev = _context28.next) {
33419
+ return _regeneratorRuntime.wrap(function _callee27$(_context29) {
33420
+ while (1) switch (_context29.prev = _context29.next) {
33324
33421
  case 0:
33325
33422
  results = [];
33326
33423
  i = 0;
33327
33424
  case 2:
33328
33425
  if (!(i < promises.length)) {
33329
- _context28.next = 19;
33426
+ _context29.next = 19;
33330
33427
  break;
33331
33428
  }
33332
- _context28.t0 = results;
33333
- _context28.next = 6;
33429
+ _context29.t0 = results;
33430
+ _context29.next = 6;
33334
33431
  return promises[i];
33335
33432
  case 6:
33336
- _context28.t1 = _context28.sent;
33337
- _context28.t0.push.call(_context28.t0, _context28.t1);
33433
+ _context29.t1 = _context29.sent;
33434
+ _context29.t0.push.call(_context29.t0, _context29.t1);
33338
33435
  price = results[0].price;
33339
33436
  j = 1;
33340
33437
  case 10:
33341
33438
  if (!(j < results.length)) {
33342
- _context28.next = 16;
33439
+ _context29.next = 16;
33343
33440
  break;
33344
33441
  }
33345
33442
  if (!(price !== results[j].price)) {
33346
- _context28.next = 13;
33443
+ _context29.next = 13;
33347
33444
  break;
33348
33445
  }
33349
- return _context28.abrupt("return", true);
33446
+ return _context29.abrupt("return", true);
33350
33447
  case 13:
33351
33448
  j++;
33352
- _context28.next = 10;
33449
+ _context29.next = 10;
33353
33450
  break;
33354
33451
  case 16:
33355
33452
  i++;
33356
- _context28.next = 2;
33453
+ _context29.next = 2;
33357
33454
  break;
33358
33455
  case 19:
33359
- return _context28.abrupt("return", false);
33456
+ return _context29.abrupt("return", false);
33360
33457
  case 20:
33361
33458
  case "end":
33362
- return _context28.stop();
33459
+ return _context29.stop();
33363
33460
  }
33364
- }, _callee26);
33461
+ }, _callee27);
33365
33462
  }));
33366
- function checkIfPriceDiffers(_x98) {
33463
+ function checkIfPriceDiffers(_x102) {
33367
33464
  return _checkIfPriceDiffers.apply(this, arguments);
33368
33465
  }
33369
33466
  return checkIfPriceDiffers;
@@ -33377,11 +33474,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33377
33474
  }, {
33378
33475
  key: "updateArticlesOptionStatesOfActSet",
33379
33476
  value: (function () {
33380
- 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) {
33381
33478
  var _Object$keys, _resultPlannerUpdate;
33382
33479
  var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle;
33383
- return _regeneratorRuntime.wrap(function _callee27$(_context29) {
33384
- while (1) switch (_context29.prev = _context29.next) {
33480
+ return _regeneratorRuntime.wrap(function _callee28$(_context30) {
33481
+ while (1) switch (_context30.prev = _context30.next) {
33385
33482
  case 0:
33386
33483
  elementsToDeleteById = [];
33387
33484
  targetArticlesToUpdateOnly = [];
@@ -33393,50 +33490,50 @@ var DivaSetHandler = /*#__PURE__*/function () {
33393
33490
  } else {
33394
33491
  targetArticlesToUpdateOnly = targetArticlesWithNewValues;
33395
33492
  }
33396
- _context29.next = 5;
33493
+ _context30.next = 5;
33397
33494
  return articleHandlerInstance.updateArticlesOptionStates(myValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
33398
33495
  case 5:
33399
- retValues = _context29.sent;
33496
+ retValues = _context30.sent;
33400
33497
  targetArticlesWithNewValues = retValues.targetArticlesToUpdate;
33401
33498
  if (!(retValues.partlistArticlesToLoad.length > 0)) {
33402
- _context29.next = 16;
33499
+ _context30.next = 16;
33403
33500
  break;
33404
33501
  }
33405
33502
  diff = targetArticlesToUpdateOnly.length - Object.keys(set.getDivaArticles()).length;
33406
33503
  if (!(diff == 0 || partlistDiff == diff)) {
33407
- _context29.next = 14;
33504
+ _context30.next = 14;
33408
33505
  break;
33409
33506
  }
33410
- _context29.next = 12;
33507
+ _context30.next = 12;
33411
33508
  return articleHandlerInstance.correctPartlistArticlesByGlobalRules(set, retValues.partlistArticlesToLoad, set.CatalogData.bundleRules, {
33412
33509
  doChange: false
33413
33510
  });
33414
33511
  case 12:
33415
- _context29.next = 16;
33512
+ _context30.next = 16;
33416
33513
  break;
33417
33514
  case 14:
33418
- _context29.next = 16;
33515
+ _context30.next = 16;
33419
33516
  return this.updateArticlesOptionStatesOfActSet(set, {}, targetArticlesWithNewValues, ignorePlanner, from, diff);
33420
33517
  case 16:
33421
33518
  if (!(from !== 'initializingPartlist')) {
33422
- _context29.next = 19;
33519
+ _context30.next = 19;
33423
33520
  break;
33424
33521
  }
33425
- _context29.next = 19;
33522
+ _context30.next = 19;
33426
33523
  return this.updateEdoArticles(set, retValues.newEDOExtraArticles);
33427
33524
  case 19:
33428
33525
  if (set.CatalogData.hasAlternateRenderings) set.CatalogData.updateAlternativeRenderings(set.getDivaArticles());
33429
33526
 
33430
33527
  //Update Planner - check if planner data changed
33431
33528
  if (!(!ignorePlanner && from != 'calcVariant')) {
33432
- _context29.next = 55;
33529
+ _context30.next = 55;
33433
33530
  break;
33434
33531
  }
33435
33532
  targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
33436
- _context29.next = 24;
33533
+ _context30.next = 24;
33437
33534
  return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
33438
33535
  case 24:
33439
- resultPlannerUpdate = _context29.sent;
33536
+ resultPlannerUpdate = _context30.sent;
33440
33537
  elementsToDeleteById = resultPlannerUpdate.elemIdsToDelete;
33441
33538
  for (i = 0; i < resultPlannerUpdate.elemIdsToDelete.length; i++) {
33442
33539
  articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
@@ -33446,35 +33543,35 @@ var DivaSetHandler = /*#__PURE__*/function () {
33446
33543
  }
33447
33544
  }
33448
33545
  if (!resultPlannerUpdate.doDeleteBackGrid) {
33449
- _context29.next = 34;
33546
+ _context30.next = 34;
33450
33547
  break;
33451
33548
  }
33452
- _context29.next = 30;
33549
+ _context30.next = 30;
33453
33550
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[0], false, resultPlannerUpdate.deletionType);
33454
33551
  case 30:
33455
- result = _context29.sent;
33552
+ result = _context30.sent;
33456
33553
  //Others are deleted recursive
33457
33554
  if (result.selectElementId) {
33458
33555
  resultPlannerUpdate.elementIdsToUpdateSelection = [result.selectElementId];
33459
33556
  }
33460
- _context29.next = 41;
33557
+ _context30.next = 41;
33461
33558
  break;
33462
33559
  case 34:
33463
33560
  i = 0;
33464
33561
  case 35:
33465
33562
  if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
33466
- _context29.next = 41;
33563
+ _context30.next = 41;
33467
33564
  break;
33468
33565
  }
33469
- _context29.next = 38;
33566
+ _context30.next = 38;
33470
33567
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
33471
33568
  case 38:
33472
33569
  i++;
33473
- _context29.next = 35;
33570
+ _context30.next = 35;
33474
33571
  break;
33475
33572
  case 41:
33476
33573
  if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
33477
- _context29.next = 54;
33574
+ _context30.next = 54;
33478
33575
  break;
33479
33576
  }
33480
33577
  //Todo copy these elements
@@ -33482,20 +33579,20 @@ var DivaSetHandler = /*#__PURE__*/function () {
33482
33579
  i = 0;
33483
33580
  case 44:
33484
33581
  if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
33485
- _context29.next = 52;
33582
+ _context30.next = 52;
33486
33583
  break;
33487
33584
  }
33488
- _context29.next = 47;
33585
+ _context30.next = 47;
33489
33586
  return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
33490
33587
  case 47:
33491
- newArticle = _context29.sent;
33588
+ newArticle = _context30.sent;
33492
33589
  articleCopyRelation.set(resultPlannerUpdate.elementIdToCopy[i], newArticle.basketId);
33493
33590
  case 49:
33494
33591
  i++;
33495
- _context29.next = 44;
33592
+ _context30.next = 44;
33496
33593
  break;
33497
33594
  case 52:
33498
- _context29.next = 54;
33595
+ _context30.next = 54;
33499
33596
  return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
33500
33597
  dpType: resultPlannerUpdate.copyDPType ? resultPlannerUpdate.copyDPType : 'NO',
33501
33598
  copyType: resultPlannerUpdate.copyType,
@@ -33508,18 +33605,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33508
33605
  if (from == 'FromViewClick' && (_Object$keys = Object.keys(myValues)) !== null && _Object$keys !== void 0 && _Object$keys.length) {
33509
33606
  this.confirmOptionsInMetric(set, [Object.keys(myValues)[0]]);
33510
33607
  }
33511
- return _context29.abrupt("return", {
33608
+ return _context30.abrupt("return", {
33512
33609
  articleCountChanged: elementsToDeleteById.length > 0,
33513
33610
  elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
33514
33611
  setId: set.getSetId()
33515
33612
  });
33516
33613
  case 57:
33517
33614
  case "end":
33518
- return _context29.stop();
33615
+ return _context30.stop();
33519
33616
  }
33520
- }, _callee27, this);
33617
+ }, _callee28, this);
33521
33618
  }));
33522
- function updateArticlesOptionStatesOfActSet(_x99, _x100, _x101, _x102, _x103, _x104) {
33619
+ function updateArticlesOptionStatesOfActSet(_x103, _x104, _x105, _x106, _x107, _x108) {
33523
33620
  return _updateArticlesOptionStatesOfActSet.apply(this, arguments);
33524
33621
  }
33525
33622
  return updateArticlesOptionStatesOfActSet;
@@ -33573,32 +33670,32 @@ var DivaSetHandler = /*#__PURE__*/function () {
33573
33670
  }, {
33574
33671
  key: "updateEdoArticles",
33575
33672
  value: function () {
33576
- var _updateEdoArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(set, edoArticlesToLoad) {
33673
+ var _updateEdoArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(set, edoArticlesToLoad) {
33577
33674
  var oldBasketIds, i, article, newArticles, _i7, _i8;
33578
- return _regeneratorRuntime.wrap(function _callee28$(_context30) {
33579
- while (1) switch (_context30.prev = _context30.next) {
33675
+ return _regeneratorRuntime.wrap(function _callee29$(_context31) {
33676
+ while (1) switch (_context31.prev = _context31.next) {
33580
33677
  case 0:
33581
33678
  if (!(set.edoExtraArticles.length > 0 || edoArticlesToLoad.length > 0)) {
33582
- _context30.next = 22;
33679
+ _context31.next = 22;
33583
33680
  break;
33584
33681
  }
33585
33682
  oldBasketIds = _toConsumableArray(set.edoExtraArticles);
33586
33683
  i = 0;
33587
33684
  case 3:
33588
33685
  if (!(i < set.edoExtraArticles.length)) {
33589
- _context30.next = 11;
33686
+ _context31.next = 11;
33590
33687
  break;
33591
33688
  }
33592
33689
  article = set.getArticleByBasketId(set.edoExtraArticles[i]);
33593
33690
  if (!article) {
33594
- _context30.next = 8;
33691
+ _context31.next = 8;
33595
33692
  break;
33596
33693
  }
33597
- _context30.next = 8;
33694
+ _context31.next = 8;
33598
33695
  return this.deleteElementFromSet(set, article);
33599
33696
  case 8:
33600
33697
  i++;
33601
- _context30.next = 3;
33698
+ _context31.next = 3;
33602
33699
  break;
33603
33700
  case 11:
33604
33701
  set.edoExtraArticles = [];
@@ -33606,18 +33703,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33606
33703
  _i7 = 0;
33607
33704
  case 14:
33608
33705
  if (!(_i7 < edoArticlesToLoad.length)) {
33609
- _context30.next = 21;
33706
+ _context31.next = 21;
33610
33707
  break;
33611
33708
  }
33612
- _context30.next = 17;
33709
+ _context31.next = 17;
33613
33710
  return this.addArticleToActSet(set, edoArticlesToLoad[_i7].ArticleCodex, _objectSpread$9(_objectSpread$9({}, edoArticlesToLoad[_i7]), {}, {
33614
33711
  basketId: oldBasketIds[_i7]
33615
33712
  }), true);
33616
33713
  case 17:
33617
- newArticles[_i7] = _context30.sent;
33714
+ newArticles[_i7] = _context31.sent;
33618
33715
  case 18:
33619
33716
  _i7++;
33620
- _context30.next = 14;
33717
+ _context31.next = 14;
33621
33718
  break;
33622
33719
  case 21:
33623
33720
  for (_i8 = 0; _i8 < newArticles.length; _i8++) {
@@ -33625,11 +33722,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33625
33722
  }
33626
33723
  case 22:
33627
33724
  case "end":
33628
- return _context30.stop();
33725
+ return _context31.stop();
33629
33726
  }
33630
- }, _callee28, this);
33727
+ }, _callee29, this);
33631
33728
  }));
33632
- function updateEdoArticles(_x105, _x106) {
33729
+ function updateEdoArticles(_x109, _x110) {
33633
33730
  return _updateEdoArticles.apply(this, arguments);
33634
33731
  }
33635
33732
  return updateEdoArticles;
@@ -33795,11 +33892,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33795
33892
  }, {
33796
33893
  key: "fillOrderLinesAndOrderSets",
33797
33894
  value: function () {
33798
- 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) {
33799
33896
  var _set$getMatchingProdu2, _set$getMatchingProdu3;
33800
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;
33801
- return _regeneratorRuntime.wrap(function _callee29$(_context31) {
33802
- while (1) switch (_context31.prev = _context31.next) {
33898
+ return _regeneratorRuntime.wrap(function _callee30$(_context32) {
33899
+ while (1) switch (_context32.prev = _context32.next) {
33803
33900
  case 0:
33804
33901
  orderSets = [];
33805
33902
  basketData = divaBasketHandler.actBasket;
@@ -33811,32 +33908,32 @@ var DivaSetHandler = /*#__PURE__*/function () {
33811
33908
  }
33812
33909
  basketData.MatchingProductId = set === null || set === void 0 || (_set$getMatchingProdu2 = set.getMatchingProduct()) === null || _set$getMatchingProdu2 === void 0 ? void 0 : _set$getMatchingProdu2._id;
33813
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();
33814
- _context31.t0 = _regeneratorRuntime.keys(sets);
33911
+ _context32.t0 = _regeneratorRuntime.keys(sets);
33815
33912
  case 8:
33816
- if ((_context31.t1 = _context31.t0()).done) {
33817
- _context31.next = 32;
33913
+ if ((_context32.t1 = _context32.t0()).done) {
33914
+ _context32.next = 32;
33818
33915
  break;
33819
33916
  }
33820
- key = _context31.t1.value;
33917
+ key = _context32.t1.value;
33821
33918
  _set = sets[key];
33822
33919
  catalogData = _set.CatalogData;
33823
33920
  articles = _set.getDivaArticles();
33824
- _context31.next = 15;
33921
+ _context32.next = 15;
33825
33922
  return this.getOrderSet(_set, catalogData, divaBasketHandler.actDivaNr, repairOnly, returnTo);
33826
33923
  case 15:
33827
- newOrderSet = _context31.sent;
33924
+ newOrderSet = _context32.sent;
33828
33925
  basketData.setIsPlanning(_set.SetType == 'PLANNING' ? '1' : '0');
33829
- _context31.next = 19;
33926
+ _context32.next = 19;
33830
33927
  return _set.getCustomDimensionsOfActSet();
33831
33928
  case 19:
33832
- customDimensions = _context31.sent;
33929
+ customDimensions = _context32.sent;
33833
33930
  OrderLinesOfActSet = articleHandlerInstance.getOrderLinesOfArticles(articles, customDimensions, repairOnly, !!((_set$basketConfigVari = _set.basketConfigVariants) !== null && _set$basketConfigVari !== void 0 && _set$basketConfigVari.length));
33834
33931
  articleHandlerInstance.checkForRoundingError(OrderLinesOfActSet, _set);
33835
33932
  if (OrderLinesOfActSet.length) {
33836
- _context31.next = 24;
33933
+ _context32.next = 24;
33837
33934
  break;
33838
33935
  }
33839
- return _context31.abrupt("continue", 8);
33936
+ return _context32.abrupt("continue", 8);
33840
33937
  case 24:
33841
33938
  OrderLinesOfActSet = divaBasketHandler.divaWWSHandler.repairWWSFlags(articles, OrderLinesOfActSet);
33842
33939
  if (newOrderSet.SetImage == '' && (_OrderLinesOfActSet$ = OrderLinesOfActSet[0]) !== null && _OrderLinesOfActSet$ !== void 0 && _OrderLinesOfActSet$.Image && _set.PlannerMode == 'No') {
@@ -33858,7 +33955,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33858
33955
  }
33859
33956
  newOrderSet.setOrderLines(OrderLinesOfActSet);
33860
33957
  orderSets.push(newOrderSet);
33861
- _context31.next = 8;
33958
+ _context32.next = 8;
33862
33959
  break;
33863
33960
  case 32:
33864
33961
  //fill diva3DProject for renderings & AR Converter
@@ -33866,7 +33963,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33866
33963
  i = 0;
33867
33964
  case 34:
33868
33965
  if (!(i < ((_basketData$OrderSets = basketData.OrderSets) === null || _basketData$OrderSets === void 0 ? void 0 : _basketData$OrderSets.length))) {
33869
- _context31.next = 49;
33966
+ _context32.next = 49;
33870
33967
  break;
33871
33968
  }
33872
33969
  oderSetsIsInActPlanning = false;
@@ -33874,18 +33971,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33874
33971
  j = 0;
33875
33972
  case 38:
33876
33973
  if (!(j < orderSets.length)) {
33877
- _context31.next = 45;
33974
+ _context32.next = 45;
33878
33975
  break;
33879
33976
  }
33880
33977
  if (!(orderSets[j].SetID == setId)) {
33881
- _context31.next = 42;
33978
+ _context32.next = 42;
33882
33979
  break;
33883
33980
  }
33884
33981
  oderSetsIsInActPlanning = true;
33885
- return _context31.abrupt("break", 45);
33982
+ return _context32.abrupt("break", 45);
33886
33983
  case 42:
33887
33984
  j++;
33888
- _context31.next = 38;
33985
+ _context32.next = 38;
33889
33986
  break;
33890
33987
  case 45:
33891
33988
  if (!oderSetsIsInActPlanning && !((_basketData$SetPlanne = basketData.SetPlannerInfos) !== null && _basketData$SetPlanne !== void 0 && _basketData$SetPlanne.InvolvedSetIds.includes(setId))) {
@@ -33893,7 +33990,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33893
33990
  }
33894
33991
  case 46:
33895
33992
  i++;
33896
- _context31.next = 34;
33993
+ _context32.next = 34;
33897
33994
  break;
33898
33995
  case 49:
33899
33996
  basketData.SetPlannerInfos = setPlanner ? this.getSetPlannerInfos(Object.keys(sets), orderSets) : undefined;
@@ -33902,14 +33999,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33902
33999
  } else {
33903
34000
  basketData.setOrderSets(orderSets);
33904
34001
  }
33905
- return _context31.abrupt("return", basketData);
34002
+ return _context32.abrupt("return", basketData);
33906
34003
  case 52:
33907
34004
  case "end":
33908
- return _context31.stop();
34005
+ return _context32.stop();
33909
34006
  }
33910
- }, _callee29, this);
34007
+ }, _callee30, this);
33911
34008
  }));
33912
- function fillOrderLinesAndOrderSets(_x107, _x108, _x109, _x110, _x111) {
34009
+ function fillOrderLinesAndOrderSets(_x111, _x112, _x113, _x114, _x115) {
33913
34010
  return _fillOrderLinesAndOrderSets.apply(this, arguments);
33914
34011
  }
33915
34012
  return fillOrderLinesAndOrderSets;
@@ -33993,11 +34090,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33993
34090
  }, {
33994
34091
  key: "getOrderSet",
33995
34092
  value: function () {
33996
- 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) {
33997
34094
  var _Object$values$, _set$getDivaArticles, _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
33998
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;
33999
- return _regeneratorRuntime.wrap(function _callee30$(_context32) {
34000
- while (1) switch (_context32.prev = _context32.next) {
34096
+ return _regeneratorRuntime.wrap(function _callee31$(_context33) {
34097
+ while (1) switch (_context33.prev = _context33.next) {
34001
34098
  case 0:
34002
34099
  dontGenerateImages = repairOnly || returnTo == 'DONT_SAVE_BASKET' || returnTo == 'TEST_CONFIGURATORLOGIC';
34003
34100
  DivaUtils.startSpanOfApm('GetSet3D und 2D Image');
@@ -34009,7 +34106,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
34009
34106
  hqRenderScript = undefined;
34010
34107
  dimensions = {};
34011
34108
  if (dontGenerateImages) {
34012
- _context32.next = 28;
34109
+ _context33.next = 28;
34013
34110
  break;
34014
34111
  }
34015
34112
  promise3D = this.getSetImage(set, typeof window === 'undefined');
@@ -34017,10 +34114,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
34017
34114
  if (!catalogData.dontSaveAlternativeRenderings && set.CatalogData.alternateRenderingsForSummary.length) {
34018
34115
  promise3DAlternate = this.getAlternateSetImages(set);
34019
34116
  }
34020
- _context32.next = 15;
34117
+ _context33.next = 15;
34021
34118
  return Promise.all([promise3D, promise2D, promise3DAlternate]);
34022
34119
  case 15:
34023
- _yield$Promise$all = _context32.sent;
34120
+ _yield$Promise$all = _context33.sent;
34024
34121
  _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 3);
34025
34122
  _yield$Promise$all2$ = _yield$Promise$all2[0];
34026
34123
  setImage = _yield$Promise$all2$.url;
@@ -34028,10 +34125,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
34028
34125
  urlToPlanning2D = _yield$Promise$all2[1];
34029
34126
  alternateSetImages = _yield$Promise$all2[2];
34030
34127
  promiseHQRenderScript = this.getHQRenderScript(set, divaNr);
34031
- _context32.next = 25;
34128
+ _context33.next = 25;
34032
34129
  return Promise.all([promiseHQRenderScript]);
34033
34130
  case 25:
34034
- _yield$Promise$all3 = _context32.sent;
34131
+ _yield$Promise$all3 = _context33.sent;
34035
34132
  _yield$Promise$all4 = _slicedToArray(_yield$Promise$all3, 1);
34036
34133
  hqRenderScript = _yield$Promise$all4[0];
34037
34134
  case 28:
@@ -34093,14 +34190,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
34093
34190
  MetaData: !((_set$basketConfigVari2 = set.basketConfigVariants) !== null && _set$basketConfigVari2 !== void 0 && _set$basketConfigVari2.length) ? set.MetaData : undefined,
34094
34191
  MetaData_locales: !((_set$basketConfigVari3 = set.basketConfigVariants) !== null && _set$basketConfigVari3 !== void 0 && _set$basketConfigVari3.length) ? set.MetaData_locales : undefined
34095
34192
  });
34096
- return _context32.abrupt("return", orderSet);
34193
+ return _context33.abrupt("return", orderSet);
34097
34194
  case 34:
34098
34195
  case "end":
34099
- return _context32.stop();
34196
+ return _context33.stop();
34100
34197
  }
34101
- }, _callee30, this);
34198
+ }, _callee31, this);
34102
34199
  }));
34103
- function getOrderSet(_x112, _x113, _x114, _x115, _x116) {
34200
+ function getOrderSet(_x116, _x117, _x118, _x119, _x120) {
34104
34201
  return _getOrderSet.apply(this, arguments);
34105
34202
  }
34106
34203
  return getOrderSet;
@@ -34113,31 +34210,31 @@ var DivaSetHandler = /*#__PURE__*/function () {
34113
34210
  }, {
34114
34211
  key: "getSetImage",
34115
34212
  value: (function () {
34116
- var _getSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(set, overwriteLastSavedRendering) {
34213
+ var _getSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(set, overwriteLastSavedRendering) {
34117
34214
  var is3D, _yield$set$plannerHan, dimensions, url;
34118
- return _regeneratorRuntime.wrap(function _callee31$(_context33) {
34119
- while (1) switch (_context33.prev = _context33.next) {
34215
+ return _regeneratorRuntime.wrap(function _callee32$(_context34) {
34216
+ while (1) switch (_context34.prev = _context34.next) {
34120
34217
  case 0:
34121
34218
  is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
34122
34219
  if (!is3D) {
34123
- _context33.next = 10;
34220
+ _context34.next = 10;
34124
34221
  break;
34125
34222
  }
34126
- _context33.next = 4;
34223
+ _context34.next = 4;
34127
34224
  return set.plannerHandler.saveSetImage(overwriteLastSavedRendering);
34128
34225
  case 4:
34129
- _context33.next = 6;
34226
+ _context34.next = 6;
34130
34227
  return set.plannerHandler.getSetImageAsUrl(set.getSetId());
34131
34228
  case 6:
34132
- _yield$set$plannerHan = _context33.sent;
34229
+ _yield$set$plannerHan = _context34.sent;
34133
34230
  dimensions = _yield$set$plannerHan.dimensions;
34134
34231
  url = _yield$set$plannerHan.url;
34135
- return _context33.abrupt("return", {
34232
+ return _context34.abrupt("return", {
34136
34233
  dimensions: dimensions,
34137
34234
  url: url
34138
34235
  });
34139
34236
  case 10:
34140
- return _context33.abrupt("return", {
34237
+ return _context34.abrupt("return", {
34141
34238
  dimensions: {
34142
34239
  w: undefined,
34143
34240
  h: undefined,
@@ -34146,11 +34243,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
34146
34243
  });
34147
34244
  case 11:
34148
34245
  case "end":
34149
- return _context33.stop();
34246
+ return _context34.stop();
34150
34247
  }
34151
- }, _callee31);
34248
+ }, _callee32);
34152
34249
  }));
34153
- function getSetImage(_x117, _x118) {
34250
+ function getSetImage(_x121, _x122) {
34154
34251
  return _getSetImage.apply(this, arguments);
34155
34252
  }
34156
34253
  return getSetImage;
@@ -34158,45 +34255,45 @@ var DivaSetHandler = /*#__PURE__*/function () {
34158
34255
  }, {
34159
34256
  key: "getHQRenderScript",
34160
34257
  value: function () {
34161
- var _getHQRenderScript = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(set, divaNr) {
34258
+ var _getHQRenderScript = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(set, divaNr) {
34162
34259
  var is3D, hqRenderScript, createdHQRenderScript;
34163
- return _regeneratorRuntime.wrap(function _callee32$(_context34) {
34164
- while (1) switch (_context34.prev = _context34.next) {
34260
+ return _regeneratorRuntime.wrap(function _callee33$(_context35) {
34261
+ while (1) switch (_context35.prev = _context35.next) {
34165
34262
  case 0:
34166
34263
  //if not 3d
34167
34264
  is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
34168
34265
  if (is3D) {
34169
- _context34.next = 3;
34266
+ _context35.next = 3;
34170
34267
  break;
34171
34268
  }
34172
- return _context34.abrupt("return");
34269
+ return _context35.abrupt("return");
34173
34270
  case 3:
34174
- _context34.next = 5;
34271
+ _context35.next = 5;
34175
34272
  return set.plannerHandler.saveSetHQRenderScript();
34176
34273
  case 5:
34177
34274
  hqRenderScript = set.plannerHandler.getSetHQRenderScript();
34178
34275
  if (hqRenderScript) {
34179
- _context34.next = 8;
34276
+ _context35.next = 8;
34180
34277
  break;
34181
34278
  }
34182
- return _context34.abrupt("return");
34279
+ return _context35.abrupt("return");
34183
34280
  case 8:
34184
- _context34.next = 10;
34281
+ _context35.next = 10;
34185
34282
  return set.api.postHQRenderScript({
34186
34283
  divaNr: divaNr,
34187
34284
  hqRenderscript: hqRenderScript,
34188
34285
  organization: set.api.OrganizationId
34189
34286
  });
34190
34287
  case 10:
34191
- createdHQRenderScript = _context34.sent;
34192
- return _context34.abrupt("return", createdHQRenderScript);
34288
+ createdHQRenderScript = _context35.sent;
34289
+ return _context35.abrupt("return", createdHQRenderScript);
34193
34290
  case 12:
34194
34291
  case "end":
34195
- return _context34.stop();
34292
+ return _context35.stop();
34196
34293
  }
34197
- }, _callee32);
34294
+ }, _callee33);
34198
34295
  }));
34199
- function getHQRenderScript(_x119, _x120) {
34296
+ function getHQRenderScript(_x123, _x124) {
34200
34297
  return _getHQRenderScript.apply(this, arguments);
34201
34298
  }
34202
34299
  return getHQRenderScript;
@@ -34210,34 +34307,34 @@ var DivaSetHandler = /*#__PURE__*/function () {
34210
34307
  }, {
34211
34308
  key: "getAlternateSetImages",
34212
34309
  value: (function () {
34213
- var _getAlternateSetImages = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(set) {
34310
+ var _getAlternateSetImages = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(set) {
34214
34311
  var is2D, catalogData, setImages;
34215
- return _regeneratorRuntime.wrap(function _callee33$(_context35) {
34216
- while (1) switch (_context35.prev = _context35.next) {
34312
+ return _regeneratorRuntime.wrap(function _callee34$(_context36) {
34313
+ while (1) switch (_context36.prev = _context36.next) {
34217
34314
  case 0:
34218
34315
  is2D = !['3DImage', '3DCOMB', 'BoxPlanner'].includes(set.getPlannerMode());
34219
34316
  if (!(is2D || set.onlyRunLogic)) {
34220
- _context35.next = 3;
34317
+ _context36.next = 3;
34221
34318
  break;
34222
34319
  }
34223
- return _context35.abrupt("return", []);
34320
+ return _context36.abrupt("return", []);
34224
34321
  case 3:
34225
34322
  catalogData = set.CatalogData;
34226
- _context35.next = 6;
34323
+ _context36.next = 6;
34227
34324
  return set.plannerHandler.saveAlternateSetImages(catalogData.catalogCodex, catalogData.catalogGuid);
34228
34325
  case 6:
34229
- _context35.next = 8;
34326
+ _context36.next = 8;
34230
34327
  return set.plannerHandler.getAlternateSetImagesAsSetImageData(set.getSetId());
34231
34328
  case 8:
34232
- setImages = _context35.sent;
34233
- return _context35.abrupt("return", setImages);
34329
+ setImages = _context36.sent;
34330
+ return _context36.abrupt("return", setImages);
34234
34331
  case 10:
34235
34332
  case "end":
34236
- return _context35.stop();
34333
+ return _context36.stop();
34237
34334
  }
34238
- }, _callee33);
34335
+ }, _callee34);
34239
34336
  }));
34240
- function getAlternateSetImages(_x121) {
34337
+ function getAlternateSetImages(_x125) {
34241
34338
  return _getAlternateSetImages.apply(this, arguments);
34242
34339
  }
34243
34340
  return getAlternateSetImages;
@@ -34245,30 +34342,30 @@ var DivaSetHandler = /*#__PURE__*/function () {
34245
34342
  }, {
34246
34343
  key: "get2DSetImage",
34247
34344
  value: function () {
34248
- var _get2DSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(set) {
34345
+ var _get2DSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(set) {
34249
34346
  var urlToPlanning2D, catalogData, planning2DAsJPGBase64;
34250
- return _regeneratorRuntime.wrap(function _callee34$(_context36) {
34251
- while (1) switch (_context36.prev = _context36.next) {
34347
+ return _regeneratorRuntime.wrap(function _callee35$(_context37) {
34348
+ while (1) switch (_context37.prev = _context37.next) {
34252
34349
  case 0:
34253
34350
  urlToPlanning2D = undefined, catalogData = set.CatalogData;
34254
34351
  planning2DAsJPGBase64 = set.getPlanning2DAsJpg();
34255
34352
  if (!(planning2DAsJPGBase64 != undefined && planning2DAsJPGBase64 != '' && planning2DAsJPGBase64 != 'data:,')) {
34256
- _context36.next = 6;
34353
+ _context37.next = 6;
34257
34354
  break;
34258
34355
  }
34259
- _context36.next = 5;
34356
+ _context37.next = 5;
34260
34357
  return set.plannerHandler.saveSet2DImage(set.getSetId(), catalogData.catalogCodex, catalogData.catalogGuid, planning2DAsJPGBase64);
34261
34358
  case 5:
34262
- urlToPlanning2D = _context36.sent;
34359
+ urlToPlanning2D = _context37.sent;
34263
34360
  case 6:
34264
- return _context36.abrupt("return", urlToPlanning2D);
34361
+ return _context37.abrupt("return", urlToPlanning2D);
34265
34362
  case 7:
34266
34363
  case "end":
34267
- return _context36.stop();
34364
+ return _context37.stop();
34268
34365
  }
34269
- }, _callee34);
34366
+ }, _callee35);
34270
34367
  }));
34271
- function get2DSetImage(_x122) {
34368
+ function get2DSetImage(_x126) {
34272
34369
  return _get2DSetImage.apply(this, arguments);
34273
34370
  }
34274
34371
  return get2DSetImage;
@@ -34308,25 +34405,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
34308
34405
  }, {
34309
34406
  key: "addOrderSetArticlesToExistingSet",
34310
34407
  value: function () {
34311
- var _addOrderSetArticlesToExistingSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(set, orderSet, lastSetToInitialize) {
34312
- return _regeneratorRuntime.wrap(function _callee35$(_context37) {
34313
- 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) {
34314
34411
  case 0:
34315
34412
  //TODO: GLOBAL STUFF
34316
34413
  //this.updateActSet(set);
34317
34414
  orderSet.changeBasketIds();
34318
- _context37.next = 3;
34415
+ _context38.next = 3;
34319
34416
  return this.initOrderLineArticles(set, orderSet);
34320
34417
  case 3:
34321
- _context37.next = 5;
34418
+ _context38.next = 5;
34322
34419
  return set.plannerHandler.extendSet(set, orderSet.SetPlanData, lastSetToInitialize);
34323
34420
  case 5:
34324
34421
  case "end":
34325
- return _context37.stop();
34422
+ return _context38.stop();
34326
34423
  }
34327
- }, _callee35, this);
34424
+ }, _callee36, this);
34328
34425
  }));
34329
- function addOrderSetArticlesToExistingSet(_x123, _x124, _x125) {
34426
+ function addOrderSetArticlesToExistingSet(_x127, _x128, _x129) {
34330
34427
  return _addOrderSetArticlesToExistingSet.apply(this, arguments);
34331
34428
  }
34332
34429
  return addOrderSetArticlesToExistingSet;
@@ -35377,7 +35474,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35377
35474
  break;
35378
35475
  case 3:
35379
35476
  _context12.next = 5;
35380
- return import('./PfisterWWSHandler-17c1ca79.js');
35477
+ return import('./PfisterWWSHandler-4df9c8d9.js');
35381
35478
  case 5:
35382
35479
  _yield$import = _context12.sent;
35383
35480
  PfisterWWSHandler = _yield$import["default"];
@@ -35385,7 +35482,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35385
35482
  return _context12.abrupt("break", 27);
35386
35483
  case 9:
35387
35484
  _context12.next = 11;
35388
- return import('./LiviqueWWSHandler-3b40fb8b.js');
35485
+ return import('./LiviqueWWSHandler-0f489736.js');
35389
35486
  case 11:
35390
35487
  _yield$import2 = _context12.sent;
35391
35488
  LiviqueWWSHandler = _yield$import2["default"];
@@ -35393,7 +35490,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35393
35490
  return _context12.abrupt("break", 27);
35394
35491
  case 15:
35395
35492
  _context12.next = 17;
35396
- return import('./SeriousBasketHandler-600cc933.js');
35493
+ return import('./SeriousBasketHandler-28fe2ec4.js');
35397
35494
  case 17:
35398
35495
  _yield$import3 = _context12.sent;
35399
35496
  SeriousWWSHandler = _yield$import3["default"];
@@ -35401,7 +35498,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35401
35498
  return _context12.abrupt("break", 27);
35402
35499
  case 21:
35403
35500
  _context12.next = 23;
35404
- return import('./StandardWWSHandler-bb1dee15.js');
35501
+ return import('./StandardWWSHandler-550b61ff.js');
35405
35502
  case 23:
35406
35503
  _yield$import4 = _context12.sent;
35407
35504
  StandardWWSHandler = _yield$import4["default"];
@@ -36844,7 +36941,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36844
36941
  while (1) switch (_context3.prev = _context3.next) {
36845
36942
  case 0:
36846
36943
  _context3.next = 2;
36847
- return import('./Host3DSignalR-d2089f28.js');
36944
+ return import('./Host3DSignalR-edf72b8d.js');
36848
36945
  case 2:
36849
36946
  _yield$import = _context3.sent;
36850
36947
  Host3DSignalR = _yield$import["default"];
@@ -38409,7 +38506,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38409
38506
  break;
38410
38507
  case 8:
38411
38508
  _context4.next = 10;
38412
- return import('./DivaStandardPlanner-a9fa32ef.js');
38509
+ return import('./DivaStandardPlanner-f0775cae.js');
38413
38510
  case 10:
38414
38511
  _yield$import = _context4.sent;
38415
38512
  DivaStandardPlanner = _yield$import["default"];
@@ -38420,7 +38517,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38420
38517
  return _context4.abrupt("break", 21);
38421
38518
  case 15:
38422
38519
  _context4.next = 17;
38423
- return import('./DivaBoxPlanner-b34e6090.js');
38520
+ return import('./DivaBoxPlanner-1bbf6c94.js');
38424
38521
  case 17:
38425
38522
  _yield$import2 = _context4.sent;
38426
38523
  DivaBoxPlanner = _yield$import2["default"];
@@ -39414,6 +39511,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39414
39511
  _classCallCheck(this, DivaWebPlanner);
39415
39512
  _defineProperty(this, "divaBasketHandler", void 0);
39416
39513
  _defineProperty(this, "openLeafeltBarrier", void 0);
39514
+ _defineProperty(this, "openContactForm", void 0);
39417
39515
  _defineProperty(this, "onClickAddToBasket", void 0);
39418
39516
  //Öffentliche Funktionen für die View
39419
39517
  _defineProperty(this, "initPlannerView", void 0);
@@ -39806,32 +39904,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39806
39904
  return _ref5.apply(this, arguments);
39807
39905
  };
39808
39906
  }());
39809
- _defineProperty(this, "moveShelfItem", function (paletteId, grid, initialIndex, finalIndex, configStepKey) {
39810
- var _this$updateViewPlann4;
39811
- var set = _this.actSet();
39812
- var result = setHandlerInstance.moveShelfItem(set, grid, initialIndex, finalIndex);
39813
- if (result == 'RESETTED_CELLS') {
39814
- var _this$updatePlannerMs, _this$i18n3;
39815
- (_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);
39816
- }
39817
- _this.updateConfigStructure();
39818
- _this.loadShelfPlannerItems(paletteId, configStepKey, 'move sheld');
39819
- (_this$updateViewPlann4 = _this.updateViewPlannerElements) === null || _this$updateViewPlann4 === void 0 || _this$updateViewPlann4.call(_this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
39820
- _this.updatePlannerView('MOVE_SHELF_ITEM');
39821
- });
39907
+ _defineProperty(this, "moveShelfItem", /*#__PURE__*/function () {
39908
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(paletteId, grid, initialIndex, finalIndex, configStepKey) {
39909
+ var _this$updateViewPlann4;
39910
+ var set, result, _this$updatePlannerMs, _this$i18n3;
39911
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
39912
+ while (1) switch (_context6.prev = _context6.next) {
39913
+ case 0:
39914
+ set = _this.actSet();
39915
+ _context6.next = 3;
39916
+ return setHandlerInstance.moveShelfItem(set, grid, initialIndex, finalIndex);
39917
+ case 3:
39918
+ result = _context6.sent;
39919
+ if (result == 'RESETTED_CELLS') {
39920
+ (_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);
39921
+ }
39922
+ _this.updateConfigStructure();
39923
+ _this.loadShelfPlannerItems(paletteId, configStepKey, 'move sheld');
39924
+ (_this$updateViewPlann4 = _this.updateViewPlannerElements) === null || _this$updateViewPlann4 === void 0 || _this$updateViewPlann4.call(_this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
39925
+ _this.updatePlannerView('MOVE_SHELF_ITEM');
39926
+ case 9:
39927
+ case "end":
39928
+ return _context6.stop();
39929
+ }
39930
+ }, _callee6);
39931
+ }));
39932
+ return function (_x18, _x19, _x20, _x21, _x22) {
39933
+ return _ref6.apply(this, arguments);
39934
+ };
39935
+ }());
39822
39936
  _defineProperty(this, "moveDoors", function (movedDoor, targetDoor) {
39823
39937
  setHandlerInstance.moveDoors(_this.actSet(), movedDoor, targetDoor);
39824
39938
  _this.updatePlannerView('MOVE_DOORS');
39825
39939
  });
39826
39940
  _defineProperty(this, "deleteAccessorieOnShelfPlanner", /*#__PURE__*/function () {
39827
- var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(paletteId, gridIndex, cellIndex, parentBasketId, configStepKey) {
39941
+ var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(paletteId, gridIndex, cellIndex, parentBasketId, configStepKey) {
39828
39942
  var _this$updateViewPlann5;
39829
39943
  var set;
39830
- return _regeneratorRuntime.wrap(function _callee6$(_context6) {
39831
- while (1) switch (_context6.prev = _context6.next) {
39944
+ return _regeneratorRuntime.wrap(function _callee7$(_context7) {
39945
+ while (1) switch (_context7.prev = _context7.next) {
39832
39946
  case 0:
39833
39947
  set = _this.actSet();
39834
- _context6.next = 3;
39948
+ _context7.next = 3;
39835
39949
  return setHandlerInstance.deleteAccessorieOnShelfPlanner(set, gridIndex, cellIndex, parentBasketId);
39836
39950
  case 3:
39837
39951
  _this.updateConfigStructure();
@@ -39844,12 +39958,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39844
39958
  _this.plannerChangeLog('onDeletePlanner');
39845
39959
  case 11:
39846
39960
  case "end":
39847
- return _context6.stop();
39961
+ return _context7.stop();
39848
39962
  }
39849
- }, _callee6);
39963
+ }, _callee7);
39850
39964
  }));
39851
- return function (_x18, _x19, _x20, _x21, _x22) {
39852
- return _ref6.apply(this, arguments);
39965
+ return function (_x23, _x24, _x25, _x26, _x27) {
39966
+ return _ref7.apply(this, arguments);
39853
39967
  };
39854
39968
  }());
39855
39969
  /**
@@ -39860,12 +39974,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39860
39974
  * @param transState
39861
39975
  */
39862
39976
  _defineProperty(this, "updatePlannerTrans", /*#__PURE__*/function () {
39863
- var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(setId, plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance) {
39977
+ var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(setId, plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance) {
39864
39978
  var _this$updateElementSe3;
39865
- return _regeneratorRuntime.wrap(function _callee7$(_context7) {
39866
- while (1) switch (_context7.prev = _context7.next) {
39979
+ return _regeneratorRuntime.wrap(function _callee8$(_context8) {
39980
+ while (1) switch (_context8.prev = _context8.next) {
39867
39981
  case 0:
39868
- _context7.next = 2;
39982
+ _context8.next = 2;
39869
39983
  return setHandlerInstance.updatePlannerTrans(_this.actSet(), plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance);
39870
39984
  case 2:
39871
39985
  if (transState == 'END') {
@@ -39874,12 +39988,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39874
39988
  }
39875
39989
  case 3:
39876
39990
  case "end":
39877
- return _context7.stop();
39991
+ return _context8.stop();
39878
39992
  }
39879
- }, _callee7);
39993
+ }, _callee8);
39880
39994
  }));
39881
- return function (_x23, _x24, _x25, _x26, _x27, _x28, _x29) {
39882
- return _ref7.apply(this, arguments);
39995
+ return function (_x28, _x29, _x30, _x31, _x32, _x33, _x34) {
39996
+ return _ref8.apply(this, arguments);
39883
39997
  };
39884
39998
  }());
39885
39999
  /**
@@ -39898,18 +40012,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39898
40012
  }
39899
40013
  });
39900
40014
  _defineProperty(this, "updateAccessoireQuantity", /*#__PURE__*/function () {
39901
- var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(accessoireItem, relatedToBasketId, newQuantity, forceConfigSingle) {
40015
+ var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(accessoireItem, relatedToBasketId, newQuantity, forceConfigSingle) {
39902
40016
  var _this$actions11, _this$actions11$toggl, _this$actions12, _this$actions12$toggl;
39903
40017
  var set, ret;
39904
- return _regeneratorRuntime.wrap(function _callee8$(_context8) {
39905
- while (1) switch (_context8.prev = _context8.next) {
40018
+ return _regeneratorRuntime.wrap(function _callee9$(_context9) {
40019
+ while (1) switch (_context9.prev = _context9.next) {
39906
40020
  case 0:
39907
40021
  set = _this.actSet();
39908
40022
  (_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);
39909
- _context8.next = 4;
40023
+ _context9.next = 4;
39910
40024
  return setHandlerInstance.updateAccessoireQuantity(set, accessoireItem, relatedToBasketId, newQuantity, forceConfigSingle);
39911
40025
  case 4:
39912
- ret = _context8.sent;
40026
+ ret = _context9.sent;
39913
40027
  (_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);
39914
40028
  if (ret.somethingChanged) _this.updateConfigStructure();
39915
40029
  _this.updatePlannerView('UPDATE_ACC_QUANTITY');
@@ -39919,25 +40033,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39919
40033
  _this.plannerChangeLog('onUpdateAccessoireQuantity');
39920
40034
  case 12:
39921
40035
  case "end":
39922
- return _context8.stop();
40036
+ return _context9.stop();
39923
40037
  }
39924
- }, _callee8);
40038
+ }, _callee9);
39925
40039
  }));
39926
- return function (_x30, _x31, _x32, _x33) {
39927
- return _ref8.apply(this, arguments);
40040
+ return function (_x35, _x36, _x37, _x38) {
40041
+ return _ref9.apply(this, arguments);
39928
40042
  };
39929
40043
  }());
39930
40044
  _defineProperty(this, "deleteAccessoire", /*#__PURE__*/function () {
39931
- var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(articleCodex, parentBasketId) {
40045
+ var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(articleCodex, parentBasketId) {
39932
40046
  var set, wasDeleted, _this$updateViewPlann6;
39933
- return _regeneratorRuntime.wrap(function _callee9$(_context9) {
39934
- while (1) switch (_context9.prev = _context9.next) {
40047
+ return _regeneratorRuntime.wrap(function _callee10$(_context10) {
40048
+ while (1) switch (_context10.prev = _context10.next) {
39935
40049
  case 0:
39936
40050
  set = _this.actSet();
39937
- _context9.next = 3;
40051
+ _context10.next = 3;
39938
40052
  return setHandlerInstance.deleteAccessoire(set, articleCodex, parentBasketId);
39939
40053
  case 3:
39940
- wasDeleted = _context9.sent;
40054
+ wasDeleted = _context10.sent;
39941
40055
  if (wasDeleted) {
39942
40056
  _this.updateConfigStructure();
39943
40057
  (_this$updateViewPlann6 = _this.updateViewPlannerElements) === null || _this$updateViewPlann6 === void 0 || _this$updateViewPlann6.call(_this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
@@ -39947,15 +40061,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39947
40061
  }
39948
40062
  _this.checkMatchingProducts('onAccessoireDelete');
39949
40063
  _this.plannerChangeLog('onDeletePlanner');
39950
- return _context9.abrupt("return", wasDeleted);
40064
+ return _context10.abrupt("return", wasDeleted);
39951
40065
  case 8:
39952
40066
  case "end":
39953
- return _context9.stop();
40067
+ return _context10.stop();
39954
40068
  }
39955
- }, _callee9);
40069
+ }, _callee10);
39956
40070
  }));
39957
- return function (_x34, _x35) {
39958
- return _ref9.apply(this, arguments);
40071
+ return function (_x39, _x40) {
40072
+ return _ref10.apply(this, arguments);
39959
40073
  };
39960
40074
  }());
39961
40075
  _defineProperty(this, "loadPaletteInfos", function (configStepKey, activeArticles, targetArticles) {
@@ -39978,13 +40092,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39978
40092
  * @param configStepKey act ConfigStep
39979
40093
  */
39980
40094
  _defineProperty(this, "configSingleIsChanged", /*#__PURE__*/function () {
39981
- var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(doConfigSingle, configStepKey, groupedOptions, groupedArticles, optionCodex, tabGroupKey) {
40095
+ var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(doConfigSingle, configStepKey, groupedOptions, groupedArticles, optionCodex, tabGroupKey) {
39982
40096
  var set;
39983
- return _regeneratorRuntime.wrap(function _callee10$(_context10) {
39984
- while (1) switch (_context10.prev = _context10.next) {
40097
+ return _regeneratorRuntime.wrap(function _callee11$(_context11) {
40098
+ while (1) switch (_context11.prev = _context11.next) {
39985
40099
  case 0:
39986
40100
  set = _this.actSet();
39987
- _context10.next = 3;
40101
+ _context11.next = 3;
39988
40102
  return setHandlerInstance.configSingleIsChanged(set, doConfigSingle, groupedOptions, groupedArticles);
39989
40103
  case 3:
39990
40104
  _this.updatePriceInView();
@@ -39994,15 +40108,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39994
40108
  configStepKey = setHandlerInstance.getNewConfigStepKeyInOption(set, configStepKey, optionCodex, tabGroupKey);
39995
40109
  _this.updatePlannerView('CONFIG_SINGLE_IS_CHANGED');
39996
40110
  }
39997
- return _context10.abrupt("return", configStepKey);
40111
+ return _context11.abrupt("return", configStepKey);
39998
40112
  case 7:
39999
40113
  case "end":
40000
- return _context10.stop();
40114
+ return _context11.stop();
40001
40115
  }
40002
- }, _callee10);
40116
+ }, _callee11);
40003
40117
  }));
40004
- return function (_x36, _x37, _x38, _x39, _x40, _x41) {
40005
- return _ref10.apply(this, arguments);
40118
+ return function (_x41, _x42, _x43, _x44, _x45, _x46) {
40119
+ return _ref11.apply(this, arguments);
40006
40120
  };
40007
40121
  }());
40008
40122
  /**
@@ -40016,23 +40130,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40016
40130
  */
40017
40131
  //onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
40018
40132
  _defineProperty(this, "doConfigure", /*#__PURE__*/function () {
40019
- var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents) {
40133
+ var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents) {
40020
40134
  var _this$actions13, _this$actions13$toggl, _this$actions14, _this$actions14$toggl;
40021
- var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4, info;
40022
- return _regeneratorRuntime.wrap(function _callee11$(_context11) {
40023
- while (1) switch (_context11.prev = _context11.next) {
40135
+ var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4;
40136
+ return _regeneratorRuntime.wrap(function _callee12$(_context12) {
40137
+ while (1) switch (_context12.prev = _context12.next) {
40024
40138
  case 0:
40025
40139
  set = _this.actSet();
40026
40140
  (_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);
40027
- _context11.next = 4;
40141
+ _context12.next = 4;
40028
40142
  return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, myValues, targetArticles, undefined, 'FromViewClick');
40029
40143
  case 4:
40030
- returnValues = _context11.sent;
40144
+ returnValues = _context12.sent;
40031
40145
  (_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);
40032
40146
  structure = setHandlerInstance.loadConfigStructureOfActSet(set, _this.getCurPlannerType());
40033
40147
  _this.checkMatchingProducts('onConfig');
40034
40148
  if (dontUpdatePlannerView) {
40035
- _context11.next = 18;
40149
+ _context12.next = 18;
40036
40150
  break;
40037
40151
  }
40038
40152
  _this.updateConfiguratorStructure(structure);
@@ -40046,81 +40160,79 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40046
40160
  _this.updateViewButtonsDependigOnConfigStructure();
40047
40161
  _this.updatePlannerView('DO_CONFIGURE', myValues);
40048
40162
  _this.updateWebConfiguratorTitle();
40049
- _context11.next = 18;
40163
+ _context12.next = 18;
40050
40164
  return _this.getFreePlacesOnGrids(undefined, 'doConfigure');
40051
40165
  case 18:
40052
40166
  if (dontCallEvents) {
40053
- _context11.next = 21;
40167
+ _context12.next = 21;
40054
40168
  break;
40055
40169
  }
40056
- _context11.next = 21;
40170
+ _context12.next = 21;
40057
40171
  return _this.fillBaksetforOnWebPlanerConfigChange(myValues);
40058
40172
  case 21:
40059
40173
  _this.configuratorChangeLog('onConfiguratorStep', myValues);
40060
- info = setHandlerInstance.getPlannerInteractionInformation(set);
40061
- if (info) LOG$1.debug(info.boxPlannerInteractionInformationPerElement.keys.length.toString());
40062
- case 24:
40174
+ case 22:
40063
40175
  case "end":
40064
- return _context11.stop();
40176
+ return _context12.stop();
40065
40177
  }
40066
- }, _callee11);
40178
+ }, _callee12);
40067
40179
  }));
40068
- return function (_x42, _x43, _x44, _x45) {
40069
- return _ref11.apply(this, arguments);
40180
+ return function (_x47, _x48, _x49, _x50) {
40181
+ return _ref12.apply(this, arguments);
40070
40182
  };
40071
40183
  }());
40072
40184
  _defineProperty(this, "fillBaksetforOnWebPlanerConfigChange", /*#__PURE__*/function () {
40073
- var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(myValues, isInit) {
40185
+ var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(myValues, isInit) {
40074
40186
  var _myValues;
40075
40187
  var set, articles, article;
40076
- return _regeneratorRuntime.wrap(function _callee12$(_context12) {
40077
- while (1) switch (_context12.prev = _context12.next) {
40188
+ return _regeneratorRuntime.wrap(function _callee13$(_context13) {
40189
+ while (1) switch (_context13.prev = _context13.next) {
40078
40190
  case 0:
40079
40191
  if (_this.eventIsManagedByClient('onWebPlanerConfigChange')) {
40080
- _context12.next = 2;
40192
+ _context13.next = 2;
40081
40193
  break;
40082
40194
  }
40083
- return _context12.abrupt("return");
40195
+ return _context13.abrupt("return");
40084
40196
  case 2:
40085
40197
  set = _this.actSet();
40086
40198
  if (set) {
40087
- _context12.next = 5;
40199
+ _context13.next = 5;
40088
40200
  break;
40089
40201
  }
40090
- return _context12.abrupt("return");
40202
+ return _context13.abrupt("return");
40091
40203
  case 5:
40092
40204
  if (myValues) {
40093
- _context12.next = 11;
40205
+ _context13.next = 11;
40094
40206
  break;
40095
40207
  }
40096
40208
  //get first option of the first article
40097
40209
  articles = set.getDivaArticles();
40098
40210
  article = articles[Object.keys(articles)[0]];
40099
40211
  if (article) {
40100
- _context12.next = 10;
40212
+ _context13.next = 10;
40101
40213
  break;
40102
40214
  }
40103
- return _context12.abrupt("return");
40215
+ return _context13.abrupt("return");
40104
40216
  case 10:
40105
40217
  myValues = article === null || article === void 0 ? void 0 : article.VariantValuesWithoutFreetext;
40106
40218
  case 11:
40107
- _context12.t0 = _this.divaBasketHandler;
40108
- _context12.t1 = set;
40109
- _context12.next = 15;
40219
+ _context13.t0 = _this.divaBasketHandler;
40220
+ _context13.t1 = set;
40221
+ _context13.next = 15;
40110
40222
  return setHandlerInstance.fillOrderLinesAndOrderSets(_this.sets, _this.divaBasketHandler, true, _this.doAllowSetPlanner(), _this.ReturnTo);
40111
40223
  case 15:
40112
- _context12.t2 = _context12.sent;
40113
- _context12.t3 = Object.keys((_myValues = myValues) !== null && _myValues !== void 0 ? _myValues : {});
40114
- _context12.t4 = isInit;
40115
- return _context12.abrupt("return", _context12.t0.fillBaksetforOnWebPlanerConfigChange.call(_context12.t0, _context12.t1, _context12.t2, _context12.t3, _context12.t4));
40224
+ _context13.t2 = _context13.sent;
40225
+ _context13.t3 = Object.keys((_myValues = myValues) !== null && _myValues !== void 0 ? _myValues : {});
40226
+ _context13.t4 = isInit;
40227
+ return _context13.abrupt("return", _context13.t0.fillBaksetforOnWebPlanerConfigChange.call(_context13.t0, _context13.t1, _context13.t2, _context13.t3, _context13.t4));
40116
40228
  case 19:
40117
40229
  case "end":
40118
- return _context12.stop();
40230
+ return _context13.stop();
40119
40231
  }
40120
- }, _callee12);
40232
+ }, _callee13);
40121
40233
  }));
40122
- return function (_x46, _x47) {
40123
- return _ref12.apply(this, arguments);
40234
+ return function (_x51, _x52) {
40235
+ return _ref13.apply(this, arguments);
40124
40236
  };
40125
40237
  }());
40126
40238
  _defineProperty(this, "getPosNr", function (basketId) {
@@ -40158,10 +40270,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40158
40270
  return _createClass(DivaWebPlanner, [{
40159
40271
  key: "initialize",
40160
40272
  value: function () {
40161
- var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {
40273
+ var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
40162
40274
  var viewReadyPromise, loadSuccessful, _this$actions16, _set$getDivaArticles, _this$actions15, _this$actions15$toggl, initSetState, set, oldProductId, result, _this$actions17, catalogData, initializationId, _this$plannerConfig$a;
40163
- return _regeneratorRuntime.wrap(function _callee13$(_context13) {
40164
- while (1) switch (_context13.prev = _context13.next) {
40275
+ return _regeneratorRuntime.wrap(function _callee14$(_context14) {
40276
+ while (1) switch (_context14.prev = _context14.next) {
40165
40277
  case 0:
40166
40278
  this.api = new DivaApiHandler(this.plannerConfig, this.handler);
40167
40279
  this.api.setI18n(this.i18n);
@@ -40175,58 +40287,58 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40175
40287
  warningTime: 2000,
40176
40288
  errorTime: 4000
40177
40289
  });
40178
- _context13.next = 8;
40290
+ _context14.next = 8;
40179
40291
  return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
40180
40292
  case 8:
40181
40293
  this.plannerHandler = new DivaPlannerHandler(false);
40182
40294
  viewReadyPromise = this.initViewApiDependencies();
40183
- _context13.next = 12;
40295
+ _context14.next = 12;
40184
40296
  return this.divaBasketHandler.initializeBasket(this.api);
40185
40297
  case 12:
40186
- loadSuccessful = _context13.sent;
40298
+ loadSuccessful = _context14.sent;
40187
40299
  if (this.plannerConfig.configuratorSessionId === undefined && (!this.divaBasketHandler.hasConfiguratorSessionIdGetter || DivaUtils.businessMetrics.getConfiguratorSessionId() === undefined)) {
40188
40300
  DivaUtils.businessMetrics.setConfiguratorSessionId();
40189
40301
  }
40190
40302
  if (!loadSuccessful) {
40191
- _context13.next = 56;
40303
+ _context14.next = 56;
40192
40304
  break;
40193
40305
  }
40194
40306
  if (!(typeof loadSuccessful != 'boolean')) {
40195
- _context13.next = 24;
40307
+ _context14.next = 24;
40196
40308
  break;
40197
40309
  }
40198
40310
  if (!(loadSuccessful.type == 'ProductList')) {
40199
- _context13.next = 24;
40311
+ _context14.next = 24;
40200
40312
  break;
40201
40313
  }
40202
- _context13.next = 19;
40314
+ _context14.next = 19;
40203
40315
  return viewReadyPromise;
40204
40316
  case 19:
40205
- _context13.next = 21;
40317
+ _context14.next = 21;
40206
40318
  return this.initView();
40207
40319
  case 21:
40208
40320
  this.subscribeToWebPlannerEvents();
40209
40321
  (_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);
40210
- return _context13.abrupt("return", true);
40322
+ return _context14.abrupt("return", true);
40211
40323
  case 24:
40212
40324
  this.divaNr = this.divaBasketHandler.actDivaNr;
40213
40325
  initSetState = this.getInitStateForSet();
40214
40326
  this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
40215
- _context13.next = 29;
40327
+ _context14.next = 29;
40216
40328
  return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
40217
40329
  case 29:
40218
40330
  set = this.actSet();
40219
40331
  oldProductId = this.divaBasketHandler.actBasket.MatchingProductId || this.divaBasketHandler.actBasket.OrigProductId;
40220
40332
  if (!(oldProductId && set && set !== null && set !== void 0 && set.api.doCheckForProductsPrice())) {
40221
- _context13.next = 38;
40333
+ _context14.next = 38;
40222
40334
  break;
40223
40335
  }
40224
- _context13.next = 34;
40336
+ _context14.next = 34;
40225
40337
  return this.divaBasketHandler.getProduct(this.api, oldProductId);
40226
40338
  case 34:
40227
- result = _context13.sent;
40339
+ result = _context14.sent;
40228
40340
  if (result) productHandlerInstance.handleFountMatchingProducts(set, [result], set.setHash);
40229
- _context13.next = 39;
40341
+ _context14.next = 39;
40230
40342
  break;
40231
40343
  case 38:
40232
40344
  if (typeof loadSuccessful != 'boolean' && set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
@@ -40235,10 +40347,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40235
40347
  }
40236
40348
  }
40237
40349
  case 39:
40238
- _context13.next = 41;
40350
+ _context14.next = 41;
40239
40351
  return viewReadyPromise;
40240
40352
  case 41:
40241
- _context13.next = 43;
40353
+ _context14.next = 43;
40242
40354
  return this.initView();
40243
40355
  case 43:
40244
40356
  (_this$actions16 = this.actions) === null || _this$actions16 === void 0 || _this$actions16.onEvent({
@@ -40275,20 +40387,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40275
40387
  initializationType: this.divaBasketHandler.initializationTypeGetter,
40276
40388
  initializationId: initializationId
40277
40389
  }, false);
40278
- _context13.next = 53;
40390
+ _context14.next = 53;
40279
40391
  return this.fillBaksetforOnWebPlanerConfigChange(undefined, true);
40280
40392
  case 53:
40281
- return _context13.abrupt("return", true);
40393
+ return _context14.abrupt("return", true);
40282
40394
  case 56:
40283
40395
  this.onInitializationError();
40284
40396
  //fehler beim laden vom basket..
40285
40397
  LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
40286
- return _context13.abrupt("return", false);
40398
+ return _context14.abrupt("return", false);
40287
40399
  case 59:
40288
40400
  case "end":
40289
- return _context13.stop();
40401
+ return _context14.stop();
40290
40402
  }
40291
- }, _callee13, this);
40403
+ }, _callee14, this);
40292
40404
  }));
40293
40405
  function initialize() {
40294
40406
  return _initialize.apply(this, arguments);
@@ -40420,23 +40532,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40420
40532
  }, {
40421
40533
  key: "initView",
40422
40534
  value: (function () {
40423
- var _initView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
40535
+ var _initView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15() {
40424
40536
  var set, plannerMode, _this$initConfigurato, _this$initPlannerView, _this$initConfigurato2, _this$updateViewPlann9;
40425
- return _regeneratorRuntime.wrap(function _callee14$(_context14) {
40426
- while (1) switch (_context14.prev = _context14.next) {
40537
+ return _regeneratorRuntime.wrap(function _callee15$(_context15) {
40538
+ while (1) switch (_context15.prev = _context15.next) {
40427
40539
  case 0:
40428
40540
  set = this.actSet();
40429
40541
  plannerMode = this.getPlannerMode();
40430
40542
  this.initConfiguratorMode(plannerMode);
40431
40543
  if (!(plannerMode == 'ProductList')) {
40432
- _context14.next = 7;
40544
+ _context15.next = 7;
40433
40545
  break;
40434
40546
  }
40435
40547
  (_this$initConfigurato = this.initConfiguratorStructure) === null || _this$initConfigurato === void 0 || _this$initConfigurato.call(this, setHandlerInstance.loadConfigStructureForOnlyProductsList());
40436
- _context14.next = 17;
40548
+ _context15.next = 17;
40437
40549
  break;
40438
40550
  case 7:
40439
- _context14.next = 9;
40551
+ _context15.next = 9;
40440
40552
  return (_this$initPlannerView = this.initPlannerView) === null || _this$initPlannerView === void 0 ? void 0 : _this$initPlannerView.call(this);
40441
40553
  case 9:
40442
40554
  //first load the Configuratorstructure STARTCONFIG
@@ -40450,13 +40562,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40450
40562
  this.onBasketInitialized();
40451
40563
  this.checkMatchingProducts('onInit');
40452
40564
  case 17:
40453
- _context14.next = 19;
40565
+ _context15.next = 19;
40454
40566
  return this.runInitMode(plannerMode);
40455
40567
  case 19:
40456
40568
  case "end":
40457
- return _context14.stop();
40569
+ return _context15.stop();
40458
40570
  }
40459
- }, _callee14, this);
40571
+ }, _callee15, this);
40460
40572
  }));
40461
40573
  function initView() {
40462
40574
  return _initView.apply(this, arguments);
@@ -40477,26 +40589,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40477
40589
  }, {
40478
40590
  key: "runInitMode",
40479
40591
  value: function () {
40480
- var _runInitMode = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(plannerMode) {
40592
+ var _runInitMode = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(plannerMode) {
40481
40593
  var _this$state3;
40482
40594
  var doDefault, _this$navigateToTabGr2, configStepKey, _this$actSet5, _this$navigateToTabGr3, _this$navigateToTabGr4, _this$navigateToTabGr5;
40483
- return _regeneratorRuntime.wrap(function _callee15$(_context15) {
40484
- while (1) switch (_context15.prev = _context15.next) {
40595
+ return _regeneratorRuntime.wrap(function _callee16$(_context16) {
40596
+ while (1) switch (_context16.prev = _context16.next) {
40485
40597
  case 0:
40486
40598
  doDefault = true;
40487
40599
  if (!(this.plannerConfig.initMode == 'OPEN_LEAFLET_BARRIER' || this.plannerConfig.initMode == 'SHOW_PDF')) {
40488
- _context15.next = 10;
40600
+ _context16.next = 10;
40489
40601
  break;
40490
40602
  }
40491
40603
  if (this.plannerConfig.initMode == 'OPEN_LEAFLET_BARRIER') this.ReturnTo = 'OPEN_LEAFLET_BARRIER';
40492
40604
  if (this.plannerConfig.initMode == 'SHOW_PDF') this.ReturnTo = 'OPEN_PDF';
40493
40605
  (_this$navigateToTabGr2 = this.navigateToTabGroup) === null || _this$navigateToTabGr2 === void 0 || _this$navigateToTabGr2.call(this, 'SUMMARY', undefined, true);
40494
40606
  //TODO lea bug das hier ist nur ein temporäre lößung https://app.asana.com/0/1200869909950432/1200998848659806
40495
- _context15.next = 7;
40607
+ _context16.next = 7;
40496
40608
  return this.saveToBasketWrapper();
40497
40609
  case 7:
40498
40610
  doDefault = false;
40499
- _context15.next = 11;
40611
+ _context16.next = 11;
40500
40612
  break;
40501
40613
  case 10:
40502
40614
  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) {
@@ -40520,11 +40632,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40520
40632
  }
40521
40633
  case 12:
40522
40634
  case "end":
40523
- return _context15.stop();
40635
+ return _context16.stop();
40524
40636
  }
40525
- }, _callee15, this);
40637
+ }, _callee16, this);
40526
40638
  }));
40527
- function runInitMode(_x48) {
40639
+ function runInitMode(_x53) {
40528
40640
  return _runInitMode.apply(this, arguments);
40529
40641
  }
40530
40642
  return runInitMode;
@@ -40532,16 +40644,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40532
40644
  }, {
40533
40645
  key: "addSetToActPlanningByDivaNr",
40534
40646
  value: function () {
40535
- var _addSetToActPlanningByDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(divaNr) {
40647
+ var _addSetToActPlanningByDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(divaNr) {
40536
40648
  var _this$updateViewPlann10;
40537
40649
  var set, orderSets, i, orderset, lastSetToInitialize, loadedSet, articlesKeys;
40538
- return _regeneratorRuntime.wrap(function _callee16$(_context16) {
40539
- while (1) switch (_context16.prev = _context16.next) {
40650
+ return _regeneratorRuntime.wrap(function _callee17$(_context17) {
40651
+ while (1) switch (_context17.prev = _context17.next) {
40540
40652
  case 0:
40541
40653
  set = this.actSet();
40542
40654
  this.divaBasketHandler.updateDivaNrInBasket(divaNr);
40543
40655
  this.divaBasketHandler.setIgnoreInitObjectWhenInitializing();
40544
- _context16.next = 5;
40656
+ _context17.next = 5;
40545
40657
  return this.divaBasketHandler.initializeBasket(this.api);
40546
40658
  case 5:
40547
40659
  orderSets = this.divaBasketHandler.actBasket.OrderSets;
@@ -40549,30 +40661,30 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40549
40661
  i = 0;
40550
40662
  case 8:
40551
40663
  if (!(i < orderSets.length)) {
40552
- _context16.next = 24;
40664
+ _context17.next = 24;
40553
40665
  break;
40554
40666
  }
40555
40667
  orderset = orderSets[i];
40556
40668
  lastSetToInitialize = setHandlerInstance.getOrderSetShouldInitPlanner(orderSets, i);
40557
40669
  loadedSet = setHandlerInstance.findLoadedSet(this.sets, orderset.CatalogCodex, orderset.AccountGUID);
40558
40670
  if (!loadedSet) {
40559
- _context16.next = 18;
40671
+ _context17.next = 18;
40560
40672
  break;
40561
40673
  }
40562
- _context16.next = 15;
40674
+ _context17.next = 15;
40563
40675
  return setHandlerInstance.addOrderSetArticlesToExistingSet(loadedSet, orderset, lastSetToInitialize);
40564
40676
  case 15:
40565
40677
  this.checkMatchingProducts('onAdd');
40566
- _context16.next = 20;
40678
+ _context17.next = 20;
40567
40679
  break;
40568
40680
  case 18:
40569
- _context16.next = 20;
40681
+ _context17.next = 20;
40570
40682
  return setHandlerInstance.initSet(orderset, this.getInitStateForSet(), lastSetToInitialize);
40571
40683
  case 20:
40572
40684
  this.cleanUpEmptySets(true);
40573
40685
  case 21:
40574
40686
  i++;
40575
- _context16.next = 8;
40687
+ _context17.next = 8;
40576
40688
  break;
40577
40689
  case 24:
40578
40690
  this.divaBasketHandler.actBasket.OrderSets = [];
@@ -40584,11 +40696,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40584
40696
  this.loadPaletteInfos(undefined, [articlesKeys[0]], articlesKeys);
40585
40697
  case 31:
40586
40698
  case "end":
40587
- return _context16.stop();
40699
+ return _context17.stop();
40588
40700
  }
40589
- }, _callee16, this);
40701
+ }, _callee17, this);
40590
40702
  }));
40591
- function addSetToActPlanningByDivaNr(_x49) {
40703
+ function addSetToActPlanningByDivaNr(_x54) {
40592
40704
  return _addSetToActPlanningByDivaNr.apply(this, arguments);
40593
40705
  }
40594
40706
  return addSetToActPlanningByDivaNr;
@@ -40621,28 +40733,28 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40621
40733
  }, {
40622
40734
  key: "setActSetCurConfigStepKey",
40623
40735
  value: function () {
40624
- var _setActSetCurConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(curConfigStepKey) {
40736
+ var _setActSetCurConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(curConfigStepKey) {
40625
40737
  var set;
40626
- return _regeneratorRuntime.wrap(function _callee17$(_context17) {
40627
- while (1) switch (_context17.prev = _context17.next) {
40738
+ return _regeneratorRuntime.wrap(function _callee18$(_context18) {
40739
+ while (1) switch (_context18.prev = _context18.next) {
40628
40740
  case 0:
40629
40741
  set = this.actSet();
40630
40742
  if (set) {
40631
- _context17.next = 3;
40743
+ _context18.next = 3;
40632
40744
  break;
40633
40745
  }
40634
- return _context17.abrupt("return");
40746
+ return _context18.abrupt("return");
40635
40747
  case 3:
40636
40748
  set.ActConfigStepKey = curConfigStepKey;
40637
- _context17.next = 6;
40749
+ _context18.next = 6;
40638
40750
  return setHandlerInstance.updateNavigation(set);
40639
40751
  case 6:
40640
40752
  case "end":
40641
- return _context17.stop();
40753
+ return _context18.stop();
40642
40754
  }
40643
- }, _callee17, this);
40755
+ }, _callee18, this);
40644
40756
  }));
40645
- function setActSetCurConfigStepKey(_x50) {
40757
+ function setActSetCurConfigStepKey(_x55) {
40646
40758
  return _setActSetCurConfigStepKey.apply(this, arguments);
40647
40759
  }
40648
40760
  return setActSetCurConfigStepKey;
@@ -40791,17 +40903,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40791
40903
  }, {
40792
40904
  key: "deletePlannerElement",
40793
40905
  value: function () {
40794
- var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(setId, elementId, denyElementSelectionClear) {
40906
+ var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(setId, elementId, denyElementSelectionClear) {
40795
40907
  var _this$updateViewPlann11;
40796
40908
  var set, result, _this$updateElementSe5, _this$updateElementSe6;
40797
- return _regeneratorRuntime.wrap(function _callee18$(_context18) {
40798
- while (1) switch (_context18.prev = _context18.next) {
40909
+ return _regeneratorRuntime.wrap(function _callee19$(_context19) {
40910
+ while (1) switch (_context19.prev = _context19.next) {
40799
40911
  case 0:
40800
40912
  set = this.sets[setId];
40801
- _context18.next = 3;
40913
+ _context19.next = 3;
40802
40914
  return setHandlerInstance.deleteElementFromSetByElemId(set, elementId, true);
40803
40915
  case 3:
40804
- result = _context18.sent;
40916
+ result = _context19.sent;
40805
40917
  this.updateConfigStructure();
40806
40918
  (_this$updateViewPlann11 = this.updateViewPlannerElements) === null || _this$updateViewPlann11 === void 0 || _this$updateViewPlann11.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
40807
40919
  this.updatePlannerView('DELETE_PLANNER_ELEMENT');
@@ -40812,17 +40924,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40812
40924
  }
40813
40925
  this.updatePriceInView();
40814
40926
  this.checkMatchingProducts('onDelete');
40815
- _context18.next = 14;
40927
+ _context19.next = 14;
40816
40928
  return this.getFreePlacesOnGrids(undefined, 'deleteElement');
40817
40929
  case 14:
40818
40930
  this.plannerChangeLog('onDeletePlanner');
40819
40931
  case 15:
40820
40932
  case "end":
40821
- return _context18.stop();
40933
+ return _context19.stop();
40822
40934
  }
40823
- }, _callee18, this);
40935
+ }, _callee19, this);
40824
40936
  }));
40825
- function deletePlannerElement(_x51, _x52, _x53) {
40937
+ function deletePlannerElement(_x56, _x57, _x58) {
40826
40938
  return _deletePlannerElement.apply(this, arguments);
40827
40939
  }
40828
40940
  return deletePlannerElement;
@@ -40836,17 +40948,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40836
40948
  }, {
40837
40949
  key: "copyPlannerElement",
40838
40950
  value: (function () {
40839
- var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(setId, elementId, curConfigKey, copyInfo) {
40951
+ var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(setId, elementId, curConfigKey, copyInfo) {
40840
40952
  var _this$updateViewPlann12;
40841
40953
  var set, newSelectedArticle, newConfigStepKey, _this$updateElementSe7, baseArticle;
40842
- return _regeneratorRuntime.wrap(function _callee19$(_context19) {
40843
- while (1) switch (_context19.prev = _context19.next) {
40954
+ return _regeneratorRuntime.wrap(function _callee20$(_context20) {
40955
+ while (1) switch (_context20.prev = _context20.next) {
40844
40956
  case 0:
40845
40957
  set = this.sets[setId];
40846
- _context19.next = 3;
40958
+ _context20.next = 3;
40847
40959
  return setHandlerInstance.copyPlannerElement(set, elementId, copyInfo);
40848
40960
  case 3:
40849
- newSelectedArticle = _context19.sent;
40961
+ newSelectedArticle = _context20.sent;
40850
40962
  this.updateConfigStructure();
40851
40963
  (_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
40852
40964
  this.updatePlannerView('COPY_PLANNER_ELEMENT');
@@ -40860,14 +40972,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40860
40972
  (_this$updateElementSe7 = this.updateElementSelectionPlanner) === null || _this$updateElementSe7 === void 0 || _this$updateElementSe7.call(this, [baseArticle.setId], [baseArticle.elementId], true);
40861
40973
  }
40862
40974
  this.checkMatchingProducts('onCopy');
40863
- return _context19.abrupt("return", newConfigStepKey);
40975
+ return _context20.abrupt("return", newConfigStepKey);
40864
40976
  case 13:
40865
40977
  case "end":
40866
- return _context19.stop();
40978
+ return _context20.stop();
40867
40979
  }
40868
- }, _callee19, this);
40980
+ }, _callee20, this);
40869
40981
  }));
40870
- function copyPlannerElement(_x54, _x55, _x56, _x57) {
40982
+ function copyPlannerElement(_x59, _x60, _x61, _x62) {
40871
40983
  return _copyPlannerElement.apply(this, arguments);
40872
40984
  }
40873
40985
  return copyPlannerElement;
@@ -40896,33 +41008,33 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40896
41008
  }, {
40897
41009
  key: "getFreePlacesOnGrids",
40898
41010
  value: function () {
40899
- var _getFreePlacesOnGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(gridGroup, from) {
41011
+ var _getFreePlacesOnGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(gridGroup, from) {
40900
41012
  var _this$updateFreePlace;
40901
41013
  var set, freeShelfGrids, plannedShelfGrids;
40902
- return _regeneratorRuntime.wrap(function _callee20$(_context20) {
40903
- while (1) switch (_context20.prev = _context20.next) {
41014
+ return _regeneratorRuntime.wrap(function _callee21$(_context21) {
41015
+ while (1) switch (_context21.prev = _context21.next) {
40904
41016
  case 0:
40905
41017
  set = this.actSet();
40906
41018
  if (set) {
40907
- _context20.next = 3;
41019
+ _context21.next = 3;
40908
41020
  break;
40909
41021
  }
40910
41022
  throw new Error('getFreePlacesOnGrids: act set is not defined!');
40911
41023
  case 3:
40912
41024
  if (!gridGroup) {
40913
- _context20.next = 9;
41025
+ _context21.next = 9;
40914
41026
  break;
40915
41027
  }
40916
- _context20.next = 6;
41028
+ _context21.next = 6;
40917
41029
  return setHandlerInstance.getFreeShelfGrids(set, gridGroup);
40918
41030
  case 6:
40919
- _context20.t0 = _context20.sent;
40920
- _context20.next = 10;
41031
+ _context21.t0 = _context21.sent;
41032
+ _context21.next = 10;
40921
41033
  break;
40922
41034
  case 9:
40923
- _context20.t0 = undefined;
41035
+ _context21.t0 = undefined;
40924
41036
  case 10:
40925
- freeShelfGrids = _context20.t0;
41037
+ freeShelfGrids = _context21.t0;
40926
41038
  plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
40927
41039
  LOG$1.debug('TOULA', 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
40928
41040
  LOG$1.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
@@ -40930,17 +41042,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40930
41042
  freeShelfGrids: freeShelfGrids,
40931
41043
  plannedShelfGrids: plannedShelfGrids
40932
41044
  });
40933
- return _context20.abrupt("return", {
41045
+ return _context21.abrupt("return", {
40934
41046
  freeShelfGrids: freeShelfGrids,
40935
41047
  plannedShelfGrids: plannedShelfGrids
40936
41048
  });
40937
41049
  case 16:
40938
41050
  case "end":
40939
- return _context20.stop();
41051
+ return _context21.stop();
40940
41052
  }
40941
- }, _callee20, this);
41053
+ }, _callee21, this);
40942
41054
  }));
40943
- function getFreePlacesOnGrids(_x58, _x59) {
41055
+ function getFreePlacesOnGrids(_x63, _x64) {
40944
41056
  return _getFreePlacesOnGrids.apply(this, arguments);
40945
41057
  }
40946
41058
  return getFreePlacesOnGrids;
@@ -40957,36 +41069,36 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40957
41069
  }, {
40958
41070
  key: "moveShelfItemToGrid",
40959
41071
  value: function () {
40960
- var _moveShelfItemToGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(accessoireBasketId, parentBasketId, gridName, cellIndex) {
41072
+ var _moveShelfItemToGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(accessoireBasketId, parentBasketId, gridName, cellIndex) {
40961
41073
  var set, newGridId;
40962
- return _regeneratorRuntime.wrap(function _callee21$(_context21) {
40963
- while (1) switch (_context21.prev = _context21.next) {
41074
+ return _regeneratorRuntime.wrap(function _callee22$(_context22) {
41075
+ while (1) switch (_context22.prev = _context22.next) {
40964
41076
  case 0:
40965
41077
  set = this.actSet();
40966
41078
  if (set) {
40967
- _context21.next = 3;
41079
+ _context22.next = 3;
40968
41080
  break;
40969
41081
  }
40970
- return _context21.abrupt("return");
41082
+ return _context22.abrupt("return");
40971
41083
  case 3:
40972
- _context21.next = 5;
41084
+ _context22.next = 5;
40973
41085
  return setHandlerInstance.moveShelfItemToGrid(set, accessoireBasketId, parentBasketId, gridName, cellIndex);
40974
41086
  case 5:
40975
- newGridId = _context21.sent;
41087
+ newGridId = _context22.sent;
40976
41088
  this.updatePlannerView('MOVE_SHELF_ITEM');
40977
41089
  if (!newGridId) {
40978
- _context21.next = 10;
41090
+ _context22.next = 10;
40979
41091
  break;
40980
41092
  }
40981
- _context21.next = 10;
41093
+ _context22.next = 10;
40982
41094
  return this.getFreePlacesOnGrids(newGridId, 'move shelf');
40983
41095
  case 10:
40984
41096
  case "end":
40985
- return _context21.stop();
41097
+ return _context22.stop();
40986
41098
  }
40987
- }, _callee21, this);
41099
+ }, _callee22, this);
40988
41100
  }));
40989
- function moveShelfItemToGrid(_x60, _x61, _x62, _x63) {
41101
+ function moveShelfItemToGrid(_x65, _x66, _x67, _x68) {
40990
41102
  return _moveShelfItemToGrid.apply(this, arguments);
40991
41103
  }
40992
41104
  return moveShelfItemToGrid;
@@ -40994,27 +41106,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40994
41106
  }, {
40995
41107
  key: "resetArticle",
40996
41108
  value: function () {
40997
- var _resetArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(basketId) {
41109
+ var _resetArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(basketId) {
40998
41110
  var set;
40999
- return _regeneratorRuntime.wrap(function _callee22$(_context22) {
41000
- while (1) switch (_context22.prev = _context22.next) {
41111
+ return _regeneratorRuntime.wrap(function _callee23$(_context23) {
41112
+ while (1) switch (_context23.prev = _context23.next) {
41001
41113
  case 0:
41002
41114
  set = this.actSet();
41003
41115
  if (set) {
41004
- _context22.next = 3;
41116
+ _context23.next = 3;
41005
41117
  break;
41006
41118
  }
41007
- return _context22.abrupt("return");
41119
+ return _context23.abrupt("return");
41008
41120
  case 3:
41009
- _context22.next = 5;
41121
+ _context23.next = 5;
41010
41122
  return setHandlerInstance.resetArticle(set, basketId);
41011
41123
  case 5:
41012
41124
  case "end":
41013
- return _context22.stop();
41125
+ return _context23.stop();
41014
41126
  }
41015
- }, _callee22, this);
41127
+ }, _callee23, this);
41016
41128
  }));
41017
- function resetArticle(_x64) {
41129
+ function resetArticle(_x69) {
41018
41130
  return _resetArticle.apply(this, arguments);
41019
41131
  }
41020
41132
  return resetArticle;
@@ -41044,10 +41156,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41044
41156
  }, {
41045
41157
  key: "checkMatchingProducts",
41046
41158
  value: function () {
41047
- var _checkMatchingProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(from) {
41159
+ var _checkMatchingProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(from) {
41048
41160
  var set, _set$getMatchingProdu, _set$getMatchingOrigP, _set$getMatchingOrigP2, _set$getMatchingProdu2;
41049
- return _regeneratorRuntime.wrap(function _callee23$(_context23) {
41050
- while (1) switch (_context23.prev = _context23.next) {
41161
+ return _regeneratorRuntime.wrap(function _callee24$(_context24) {
41162
+ while (1) switch (_context24.prev = _context24.next) {
41051
41163
  case 0:
41052
41164
  set = this.actSet();
41053
41165
  if (set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
@@ -41061,20 +41173,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41061
41173
  }
41062
41174
  }
41063
41175
  if (!(set !== null && set !== void 0 && set.api.doCheckForProductsMatch())) {
41064
- _context23.next = 6;
41176
+ _context24.next = 6;
41065
41177
  break;
41066
41178
  }
41067
- _context23.next = 5;
41179
+ _context24.next = 5;
41068
41180
  return productHandlerInstance.updateProducts(this.setsAsArray, this.api, this.divaBasketHandler.divaWWSHandler, from);
41069
41181
  case 5:
41070
41182
  this.updatePriceInView();
41071
41183
  case 6:
41072
41184
  case "end":
41073
- return _context23.stop();
41185
+ return _context24.stop();
41074
41186
  }
41075
- }, _callee23, this);
41187
+ }, _callee24, this);
41076
41188
  }));
41077
- function checkMatchingProducts(_x65) {
41189
+ function checkMatchingProducts(_x70) {
41078
41190
  return _checkMatchingProducts.apply(this, arguments);
41079
41191
  }
41080
41192
  return checkMatchingProducts;
@@ -41151,7 +41263,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41151
41263
  }, {
41152
41264
  key: "saveToBasketWrapper",
41153
41265
  value: function () {
41154
- var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(event, repairOnly, force) {
41266
+ var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(event, repairOnly, force) {
41155
41267
  var _this$actions27,
41156
41268
  _this$actions27$toggl,
41157
41269
  _this$actions28,
@@ -41160,8 +41272,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41160
41272
  _this$actions32,
41161
41273
  _this$i18n14;
41162
41274
  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;
41163
- return _regeneratorRuntime.wrap(function _callee24$(_context24) {
41164
- while (1) switch (_context24.prev = _context24.next) {
41275
+ return _regeneratorRuntime.wrap(function _callee25$(_context25) {
41276
+ while (1) switch (_context25.prev = _context25.next) {
41165
41277
  case 0:
41166
41278
  returnTo = this.getReturnTo(event);
41167
41279
  finalEvent = {
@@ -41169,50 +41281,50 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41169
41281
  saveBasket: true
41170
41282
  };
41171
41283
  if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
41172
- _context24.next = 21;
41284
+ _context25.next = 21;
41173
41285
  break;
41174
41286
  }
41175
41287
  product = undefined;
41176
41288
  if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
41177
- _context24.next = 10;
41289
+ _context25.next = 10;
41178
41290
  break;
41179
41291
  }
41180
41292
  url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
41181
- _context24.next = 8;
41293
+ _context25.next = 8;
41182
41294
  return this.api.getDataCache(url, url, undefined, 'catalog');
41183
41295
  case 8:
41184
- _result = _context24.sent;
41296
+ _result = _context25.sent;
41185
41297
  product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
41186
41298
  case 10:
41187
- _context24.next = 12;
41299
+ _context25.next = 12;
41188
41300
  return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
41189
41301
  case 12:
41190
- finalEvent = _context24.sent;
41302
+ finalEvent = _context25.sent;
41191
41303
  if (finalEvent) {
41192
- _context24.next = 17;
41304
+ _context25.next = 17;
41193
41305
  break;
41194
41306
  }
41195
- return _context24.abrupt("return", 'canceled');
41307
+ return _context25.abrupt("return", 'canceled');
41196
41308
  case 17:
41197
41309
  if (!(!finalEvent.saveBasket && finalEvent.event)) {
41198
- _context24.next = 20;
41310
+ _context25.next = 20;
41199
41311
  break;
41200
41312
  }
41201
41313
  (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
41202
41314
  type: finalEvent.event
41203
41315
  });
41204
- return _context24.abrupt("return", 'canceled');
41316
+ return _context25.abrupt("return", 'canceled');
41205
41317
  case 20:
41206
41318
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
41207
41319
  case 21:
41208
41320
  (_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);
41209
- _context24.next = 24;
41321
+ _context25.next = 24;
41210
41322
  return this.saveToBasket(finalEvent.event, repairOnly, force);
41211
41323
  case 24:
41212
- result = _context24.sent;
41324
+ result = _context25.sent;
41213
41325
  (_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);
41214
41326
  if (!(result === 'canceled')) {
41215
- _context24.next = 30;
41327
+ _context25.next = 30;
41216
41328
  break;
41217
41329
  }
41218
41330
  LOG$1.error(new DivaError('failed to save Basket'));
@@ -41220,10 +41332,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41220
41332
  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() : '',
41221
41333
  accept: true
41222
41334
  });
41223
- return _context24.abrupt("return", result);
41335
+ return _context25.abrupt("return", result);
41224
41336
  case 30:
41225
- _context24.t0 = returnTo;
41226
- _context24.next = _context24.t0 === 'OPEN_PDF' ? 33 : _context24.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : 36;
41337
+ _context25.t0 = returnTo;
41338
+ _context25.next = _context25.t0 === 'OPEN_PDF' ? 33 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context25.t0 === 'OPEN_CONTACT_FORM' ? 36 : 36;
41227
41339
  break;
41228
41340
  case 33:
41229
41341
  if (!this.getBasket().PDFDocumentURL) {
@@ -41243,7 +41355,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41243
41355
  }
41244
41356
  });
41245
41357
  }
41246
- return _context24.abrupt("break", 36);
41358
+ return _context25.abrupt("break", 36);
41247
41359
  case 35:
41248
41360
  (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
41249
41361
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
@@ -41251,20 +41363,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41251
41363
  });
41252
41364
  case 36:
41253
41365
  if (!(result == 'noArticleToSave')) {
41254
- _context24.next = 39;
41366
+ _context25.next = 39;
41255
41367
  break;
41256
41368
  }
41257
41369
  (_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
41258
- return _context24.abrupt("return", 'canceled');
41370
+ return _context25.abrupt("return", 'canceled');
41259
41371
  case 39:
41260
- return _context24.abrupt("return", result);
41372
+ return _context25.abrupt("return", result);
41261
41373
  case 40:
41262
41374
  case "end":
41263
- return _context24.stop();
41375
+ return _context25.stop();
41264
41376
  }
41265
- }, _callee24, this);
41377
+ }, _callee25, this);
41266
41378
  }));
41267
- function saveToBasketWrapper(_x66, _x67, _x68) {
41379
+ function saveToBasketWrapper(_x71, _x72, _x73) {
41268
41380
  return _saveToBasketWrapper.apply(this, arguments);
41269
41381
  }
41270
41382
  return saveToBasketWrapper;
@@ -41272,43 +41384,43 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41272
41384
  }, {
41273
41385
  key: "saveToBasket",
41274
41386
  value: function () {
41275
- var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(event, repairOnly, force) {
41387
+ var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
41276
41388
  var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
41277
41389
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
41278
- return _regeneratorRuntime.wrap(function _callee25$(_context25) {
41279
- while (1) switch (_context25.prev = _context25.next) {
41390
+ return _regeneratorRuntime.wrap(function _callee26$(_context26) {
41391
+ while (1) switch (_context26.prev = _context26.next) {
41280
41392
  case 0:
41281
41393
  set = this.actSet();
41282
41394
  if (!(setHandlerInstance.isNoArticleToSave(this.sets) && !force)) {
41283
- _context25.next = 3;
41395
+ _context26.next = 3;
41284
41396
  break;
41285
41397
  }
41286
- return _context25.abrupt("return", 'noArticleToSave');
41398
+ return _context26.abrupt("return", 'noArticleToSave');
41287
41399
  case 3:
41288
41400
  actBasket = this.divaBasketHandler.actBasket;
41289
41401
  returnTo = this.getReturnTo(event);
41290
41402
  if (!((_returnTo = returnTo) !== null && _returnTo !== void 0 && _returnTo.startsWith('FAVORITS') && favoritesHandlerInstance.FavoritesDefined(set))) {
41291
- _context25.next = 13;
41403
+ _context26.next = 13;
41292
41404
  break;
41293
41405
  }
41294
41406
  oldReturnTo = returnTo;
41295
41407
  this.ReturnTo = returnTo.replace('FAVORITS_', '');
41296
- _context25.next = 10;
41408
+ _context26.next = 10;
41297
41409
  return this.handleFavorites('SAVE');
41298
41410
  case 10:
41299
- result = _context25.sent;
41411
+ result = _context26.sent;
41300
41412
  if (result === 'canceled') {
41301
41413
  this.ReturnTo = oldReturnTo;
41302
41414
  }
41303
- return _context25.abrupt("return", result);
41415
+ return _context26.abrupt("return", result);
41304
41416
  case 13:
41305
- _context25.t0 = this.divaBasketHandler;
41306
- _context25.t1 = this.divaBasketHandler.actDivaNr;
41307
- _context25.next = 17;
41417
+ _context26.t0 = this.divaBasketHandler;
41418
+ _context26.t1 = this.divaBasketHandler.actDivaNr;
41419
+ _context26.next = 17;
41308
41420
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !!repairOnly, this.doAllowSetPlanner(), this.ReturnTo);
41309
41421
  case 17:
41310
- _context25.t2 = _context25.sent;
41311
- _context25.t0.setBasketData.call(_context25.t0, _context25.t1, _context25.t2);
41422
+ _context26.t2 = _context26.sent;
41423
+ _context26.t0.setBasketData.call(_context26.t0, _context26.t1, _context26.t2);
41312
41424
  if ((_returnTo2 = returnTo) !== null && _returnTo2 !== void 0 && _returnTo2.endsWith('OPEN_SELLER_BASKET')) {
41313
41425
  this.ReturnTo = 'OPEN_SELLER_BASKET';
41314
41426
  returnTo = this.ReturnTo;
@@ -41323,11 +41435,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41323
41435
  this.divaBasketHandler.fillOrigConfigurations();
41324
41436
  actBasket.Updated = Date.now();
41325
41437
  if (!returnTo) {
41326
- _context25.next = 52;
41438
+ _context26.next = 52;
41327
41439
  break;
41328
41440
  }
41329
- _context25.t3 = returnTo;
41330
- _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;
41441
+ _context26.t3 = returnTo;
41442
+ _context26.next = _context26.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 28 : _context26.t3 === 'OPEN_SELLER_BASKET' ? 31 : _context26.t3 === 'OPEN_PDF' ? 33 : _context26.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context26.t3 === 'SAVE_BASKET' ? 33 : _context26.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context26.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 52;
41331
41443
  break;
41332
41444
  case 28:
41333
41445
  (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
@@ -41341,7 +41453,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41341
41453
  basketData: actBasket
41342
41454
  }
41343
41455
  });
41344
- return _context25.abrupt("break", 52);
41456
+ return _context26.abrupt("break", 52);
41345
41457
  case 31:
41346
41458
  (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
41347
41459
  type: 'SELLER',
@@ -41353,23 +41465,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41353
41465
  basketData: actBasket
41354
41466
  }
41355
41467
  });
41356
- return _context25.abrupt("break", 52);
41468
+ return _context26.abrupt("break", 52);
41357
41469
  case 33:
41358
41470
  if (!(event == 'onSaveProduct')) {
41359
- _context25.next = 43;
41471
+ _context26.next = 43;
41360
41472
  break;
41361
41473
  }
41362
41474
  //copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
41363
41475
  actBasket = new BasketData(JSON.parse(JSON.stringify(actBasket)));
41364
- _context25.next = 37;
41476
+ _context26.next = 37;
41365
41477
  return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
41366
41478
  case 37:
41367
- _context25.next = 39;
41479
+ _context26.next = 39;
41368
41480
  return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
41369
41481
  case 39:
41370
- newDivaNr = _context25.sent;
41482
+ newDivaNr = _context26.sent;
41371
41483
  actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
41372
- _context25.next = 51;
41484
+ _context26.next = 51;
41373
41485
  break;
41374
41486
  case 43:
41375
41487
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
@@ -41378,32 +41490,32 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41378
41490
  }
41379
41491
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
41380
41492
  actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
41381
- _context25.next = 48;
41493
+ _context26.next = 48;
41382
41494
  return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo);
41383
41495
  case 48:
41384
- _result2 = _context25.sent;
41496
+ _result2 = _context26.sent;
41385
41497
  if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
41386
- _context25.next = 51;
41498
+ _context26.next = 51;
41387
41499
  break;
41388
41500
  }
41389
- return _context25.abrupt("return", 'canceled');
41501
+ return _context26.abrupt("return", 'canceled');
41390
41502
  case 51:
41391
- return _context25.abrupt("break", 52);
41503
+ return _context26.abrupt("break", 52);
41392
41504
  case 52:
41393
41505
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
41394
41506
  actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
41395
- _context25.next = 56;
41507
+ _context26.next = 56;
41396
41508
  return this.addToBasket(actBasket, event);
41397
41509
  case 56:
41398
- product = _context25.sent;
41399
- return _context25.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
41510
+ product = _context26.sent;
41511
+ return _context26.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
41400
41512
  case 58:
41401
41513
  case "end":
41402
- return _context25.stop();
41514
+ return _context26.stop();
41403
41515
  }
41404
- }, _callee25, this);
41516
+ }, _callee26, this);
41405
41517
  }));
41406
- function saveToBasket(_x69, _x70, _x71) {
41518
+ function saveToBasket(_x74, _x75, _x76) {
41407
41519
  return _saveToBasket.apply(this, arguments);
41408
41520
  }
41409
41521
  return saveToBasket;
@@ -41561,62 +41673,68 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41561
41673
  var _this$actSet17;
41562
41674
  return (_this$actSet17 = this.actSet()) === null || _this$actSet17 === void 0 || (_this$actSet17 = _this$actSet17.CatalogData) === null || _this$actSet17 === void 0 ? void 0 : _this$actSet17.doShow3DDimensionLines;
41563
41675
  }
41676
+ }, {
41677
+ key: "defaultDimensionsActive",
41678
+ value: function defaultDimensionsActive() {
41679
+ var _this$actSet18;
41680
+ return (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 || (_this$actSet18 = _this$actSet18.CatalogData) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.defaultDimensionsActive;
41681
+ }
41564
41682
  }, {
41565
41683
  key: "hidePlannerUiIcons",
41566
41684
  value: function hidePlannerUiIcons() {
41567
- var _this$actSet18;
41568
- return (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 || (_this$actSet18 = _this$actSet18.CatalogData) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.hidePlannerUiIcons;
41685
+ var _this$actSet19;
41686
+ return (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 || (_this$actSet19 = _this$actSet19.CatalogData) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.hidePlannerUiIcons;
41569
41687
  }
41570
41688
  }, {
41571
41689
  key: "doShowPlannerReplaceMode",
41572
41690
  value: function doShowPlannerReplaceMode() {
41573
- var _this$actSet19, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
41574
- var catalogData = (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.CatalogData;
41691
+ var _this$actSet20, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
41692
+ var catalogData = (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.CatalogData;
41575
41693
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.replaceModeActive) && ((_this$api$getViewConf2 = this.api.getViewConfig()) === null || _this$api$getViewConf2 === void 0 ? void 0 : _this$api$getViewConf2.showReplaceFunctionInPlanner) && Object.entries(catalogData.allCatalogPlannerArticles).length > 1 && Object.entries((_catalogData$PlannerP = (_catalogData$PlannerP2 = catalogData.PlannerPaletteViewInfo) === null || _catalogData$PlannerP2 === void 0 ? void 0 : _catalogData$PlannerP2.catalogPlannerArticles) !== null && _catalogData$PlannerP !== void 0 ? _catalogData$PlannerP : {}).length > 1;
41576
41694
  }
41577
41695
  }, {
41578
41696
  key: "doPlannerReplaceAutoSwitch",
41579
41697
  value: function doPlannerReplaceAutoSwitch() {
41580
- var _this$actSet20, _this$api$getViewConf3;
41581
- var catalogData = (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.CatalogData;
41698
+ var _this$actSet21, _this$api$getViewConf3;
41699
+ var catalogData = (_this$actSet21 = this.actSet()) === null || _this$actSet21 === void 0 ? void 0 : _this$actSet21.CatalogData;
41582
41700
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.catalogPlannsCompletely) && this.doShowPlannerReplaceMode() && ((_this$api$getViewConf3 = this.api.getViewConfig()) === null || _this$api$getViewConf3 === void 0 ? void 0 : _this$api$getViewConf3.allowAutoSwitchInReplaceFunctionInPlanner);
41583
41701
  }
41584
41702
  }, {
41585
41703
  key: "getHidePlanner",
41586
41704
  value: function getHidePlanner() {
41587
- var _this$actSet21;
41588
- return this.api.getHidePlanner() || !!((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.useBoxPlanner);
41705
+ var _this$actSet22;
41706
+ return this.api.getHidePlanner() || !!((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.useBoxPlanner);
41589
41707
  }
41590
41708
  }, {
41591
41709
  key: "getAllowRTV",
41592
41710
  value: function getAllowRTV() {
41593
- var _this$state5, _this$actSet22, _this$state6, _this$actSet23;
41711
+ var _this$state5, _this$actSet23, _this$state6, _this$actSet24;
41594
41712
  if (this.getEnableUnityRtvKombi()) return false;
41595
41713
  if ((_this$state5 = this.state) !== null && _this$state5 !== void 0 && _this$state5.organization.settings.forceRTV) return true;
41596
- if ((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaForceRTV) return true;
41597
- if ((_this$state6 = this.state) !== null && _this$state6 !== void 0 && _this$state6.organization.settings.enableRTV && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
41714
+ if ((_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaForceRTV) return true;
41715
+ if ((_this$state6 = this.state) !== null && _this$state6 !== void 0 && _this$state6.organization.settings.enableRTV && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
41598
41716
  return false;
41599
41717
  }
41600
41718
  }, {
41601
41719
  key: "getAllowQRCodeAR",
41602
41720
  value: function getAllowQRCodeAR() {
41603
- var _this$actSet24;
41604
- if (this.api.enableAR && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
41721
+ var _this$actSet25;
41722
+ if (this.api.enableAR && (_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaArReady) return true;
41605
41723
  return false;
41606
41724
  }
41607
41725
  }, {
41608
41726
  key: "getEnableUnityRtvKombi",
41609
41727
  value: function getEnableUnityRtvKombi() {
41610
- var _this$actSet25, _this$actSet26;
41728
+ var _this$actSet26, _this$actSet27;
41611
41729
  // if force rtv disable unity kombi - biohort
41612
- if ((_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaForceRTV) return false;
41613
- return ((_this$actSet26 = this.actSet()) === null || _this$actSet26 === void 0 ? void 0 : _this$actSet26.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
41730
+ if ((_this$actSet26 = this.actSet()) !== null && _this$actSet26 !== void 0 && _this$actSet26.CatalogData.divaForceRTV) return false;
41731
+ return ((_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
41614
41732
  }
41615
41733
  }, {
41616
41734
  key: "getShelfPlannerRTV",
41617
41735
  value: function getShelfPlannerRTV() {
41618
- var _this$actSet27;
41619
- return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData.useShelfPlannerRTV;
41736
+ var _this$actSet28;
41737
+ return (_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData.useShelfPlannerRTV;
41620
41738
  }
41621
41739
  }, {
41622
41740
  key: "getBasketData",
@@ -41631,23 +41749,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41631
41749
  }, {
41632
41750
  key: "getBasketDataWithEkText",
41633
41751
  value: function () {
41634
- var _getBasketDataWithEkText = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26() {
41635
- return _regeneratorRuntime.wrap(function _callee26$(_context26) {
41636
- while (1) switch (_context26.prev = _context26.next) {
41752
+ var _getBasketDataWithEkText = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27() {
41753
+ return _regeneratorRuntime.wrap(function _callee27$(_context27) {
41754
+ while (1) switch (_context27.prev = _context27.next) {
41637
41755
  case 0:
41638
- _context26.t0 = this.divaBasketHandler;
41639
- _context26.t1 = this.divaBasketHandler.actDivaNr;
41640
- _context26.next = 4;
41756
+ _context27.t0 = this.divaBasketHandler;
41757
+ _context27.t1 = this.divaBasketHandler.actDivaNr;
41758
+ _context27.next = 4;
41641
41759
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, true, this.doAllowSetPlanner(), this.ReturnTo);
41642
41760
  case 4:
41643
- _context26.t2 = _context26.sent;
41644
- _context26.t0.setBasketData.call(_context26.t0, _context26.t1, _context26.t2);
41645
- return _context26.abrupt("return", this.divaBasketHandler.actBasket);
41761
+ _context27.t2 = _context27.sent;
41762
+ _context27.t0.setBasketData.call(_context27.t0, _context27.t1, _context27.t2);
41763
+ return _context27.abrupt("return", this.divaBasketHandler.actBasket);
41646
41764
  case 7:
41647
41765
  case "end":
41648
- return _context26.stop();
41766
+ return _context27.stop();
41649
41767
  }
41650
- }, _callee26, this);
41768
+ }, _callee27, this);
41651
41769
  }));
41652
41770
  function getBasketDataWithEkText() {
41653
41771
  return _getBasketDataWithEkText.apply(this, arguments);
@@ -41657,8 +41775,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41657
41775
  }, {
41658
41776
  key: "getCatalogData",
41659
41777
  value: function getCatalogData() {
41660
- var _this$actSet28;
41661
- return (_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData;
41778
+ var _this$actSet29;
41779
+ return (_this$actSet29 = this.actSet()) === null || _this$actSet29 === void 0 ? void 0 : _this$actSet29.CatalogData;
41662
41780
  }
41663
41781
  }, {
41664
41782
  key: "ReturnTo",
@@ -41673,7 +41791,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41673
41791
  }, {
41674
41792
  key: "addToBasket",
41675
41793
  value: function () {
41676
- var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(actBasket) {
41794
+ var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(actBasket) {
41677
41795
  var _this$actions36,
41678
41796
  _this$actions37,
41679
41797
  _this$actions38,
@@ -41684,7 +41802,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41684
41802
  _this$actions41,
41685
41803
  _this$actions42,
41686
41804
  _this$actions43,
41687
- _this$actions44;
41805
+ _this$actions44,
41806
+ _this$actions45;
41688
41807
  var event,
41689
41808
  emailConfig,
41690
41809
  _emailConfig$to$split,
@@ -41692,44 +41811,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41692
41811
  to,
41693
41812
  variants,
41694
41813
  products,
41695
- _args27 = arguments;
41696
- return _regeneratorRuntime.wrap(function _callee27$(_context27) {
41697
- while (1) switch (_context27.prev = _context27.next) {
41814
+ _args28 = arguments;
41815
+ return _regeneratorRuntime.wrap(function _callee28$(_context28) {
41816
+ while (1) switch (_context28.prev = _context28.next) {
41698
41817
  case 0:
41699
- event = _args27.length > 1 && _args27[1] !== undefined ? _args27[1] : 'onAddToBasket';
41700
- _context27.t0 = event;
41701
- _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;
41818
+ event = _args28.length > 1 && _args28[1] !== undefined ? _args28[1] : 'onAddToBasket';
41819
+ _context28.t0 = event;
41820
+ _context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 7 : _context28.t0 === 'onWebPlanerShare' ? 9 : _context28.t0 === 'onRequestConsulation' ? 11 : _context28.t0 === 'onSave' ? 13 : _context28.t0 === 'onSendEmail' ? 15 : _context28.t0 === 'onSaveProduct' ? 20 : _context28.t0 === 'dontSaveBasket' ? 27 : _context28.t0 === 'onAddToBasket' ? 28 : _context28.t0 === 'onSendContactForm' ? 30 : 33;
41702
41821
  break;
41703
41822
  case 5:
41704
41823
  (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41705
41824
  type: 'onWebPlanerPrint',
41706
41825
  data: actBasket.getAsJson()
41707
41826
  });
41708
- return _context27.abrupt("break", 32);
41827
+ return _context28.abrupt("break", 35);
41709
41828
  case 7:
41710
41829
  (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41711
41830
  type: 'onWebPlanerSave',
41712
41831
  data: actBasket.getAsJson()
41713
41832
  });
41714
- return _context27.abrupt("break", 32);
41833
+ return _context28.abrupt("break", 35);
41715
41834
  case 9:
41716
41835
  (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41717
41836
  type: 'onWebPlanerShare',
41718
41837
  data: actBasket.getAsJson()
41719
41838
  });
41720
- return _context27.abrupt("break", 32);
41839
+ return _context28.abrupt("break", 35);
41721
41840
  case 11:
41722
41841
  (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41723
41842
  type: 'onRequestConsulation',
41724
41843
  data: actBasket.getAsJson()
41725
41844
  });
41726
- return _context27.abrupt("break", 32);
41845
+ return _context28.abrupt("break", 35);
41727
41846
  case 13:
41728
41847
  (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41729
41848
  type: 'onSave',
41730
41849
  data: actBasket.getAsJson()
41731
41850
  });
41732
- return _context27.abrupt("break", 32);
41851
+ return _context28.abrupt("break", 35);
41733
41852
  case 15:
41734
41853
  emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
41735
41854
  this.divaBasketHandler.emailConfig = undefined;
@@ -41764,44 +41883,51 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41764
41883
  type: 'onAddToBasket',
41765
41884
  data: actBasket.getAsJson()
41766
41885
  });
41767
- return _context27.abrupt("break", 32);
41886
+ return _context28.abrupt("break", 35);
41768
41887
  case 20:
41769
41888
  this.actSet().CatalogData;
41770
- _context27.next = 23;
41889
+ _context28.next = 23;
41771
41890
  return this.api.saveAsProduct(this.sets, actBasket);
41772
41891
  case 23:
41773
- products = _context27.sent;
41892
+ products = _context28.sent;
41774
41893
  (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41775
41894
  type: 'onAddToBasket',
41776
41895
  data: actBasket.getAsJson()
41777
41896
  });
41778
41897
  if (!products) {
41779
- _context27.next = 27;
41898
+ _context28.next = 27;
41780
41899
  break;
41781
41900
  }
41782
- return _context27.abrupt("return", products[0]);
41901
+ return _context28.abrupt("return", products[0]);
41783
41902
  case 27:
41784
41903
  case 28:
41785
41904
  (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41786
41905
  type: 'onAddToBasket',
41787
41906
  data: actBasket.getAsJson()
41788
41907
  });
41789
- return _context27.abrupt("break", 32);
41908
+ return _context28.abrupt("break", 35);
41790
41909
  case 30:
41791
41910
  (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
41792
- type: event,
41911
+ type: 'onAddToBasket',
41793
41912
  data: actBasket.getAsJson()
41794
41913
  });
41795
- return _context27.abrupt("break", 32);
41796
- case 32:
41797
- return _context27.abrupt("return");
41914
+ this.openContactForm(this.divaBasketHandler);
41915
+ return _context28.abrupt("break", 35);
41798
41916
  case 33:
41917
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
41918
+ type: event,
41919
+ data: actBasket.getAsJson()
41920
+ });
41921
+ return _context28.abrupt("break", 35);
41922
+ case 35:
41923
+ return _context28.abrupt("return");
41924
+ case 36:
41799
41925
  case "end":
41800
- return _context27.stop();
41926
+ return _context28.stop();
41801
41927
  }
41802
- }, _callee27, this);
41928
+ }, _callee28, this);
41803
41929
  }));
41804
- function addToBasket(_x72) {
41930
+ function addToBasket(_x77) {
41805
41931
  return _addToBasket.apply(this, arguments);
41806
41932
  }
41807
41933
  return addToBasket;
@@ -41809,8 +41935,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41809
41935
  }, {
41810
41936
  key: "openPDFpostAsEvent",
41811
41937
  value: function openPDFpostAsEvent(mongoDBId) {
41812
- var _this$actions45, _this$actions46, _this$actions47;
41813
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41938
+ var _this$actions46, _this$actions47, _this$actions48;
41939
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.updateBreadcrumbs({
41814
41940
  type: 'update',
41815
41941
  param: {
41816
41942
  groupId: 'SHOWROOM',
@@ -41824,7 +41950,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41824
41950
  }
41825
41951
  }
41826
41952
  });
41827
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.updateBreadcrumbs({
41953
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.updateBreadcrumbs({
41828
41954
  type: 'update',
41829
41955
  param: {
41830
41956
  groupId: 'SHOWROOM',
@@ -41838,7 +41964,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41838
41964
  }
41839
41965
  }
41840
41966
  });
41841
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.openComponent({
41967
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.openComponent({
41842
41968
  type: 'REPORT',
41843
41969
  parameters: {
41844
41970
  id: mongoDBId
@@ -42048,6 +42174,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42048
42174
  value: function registerOpenLeafeltBarrier(openLeafeltBarrier) {
42049
42175
  this.openLeafeltBarrier = openLeafeltBarrier;
42050
42176
  }
42177
+ }, {
42178
+ key: "registerOpenContactForm",
42179
+ value: function registerOpenContactForm(openContactForm) {
42180
+ this.openContactForm = openContactForm;
42181
+ }
42051
42182
  }, {
42052
42183
  key: "registerOnClickAddToBasket",
42053
42184
  value: function registerOnClickAddToBasket(onClickAddToBasket) {
@@ -42058,22 +42189,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42058
42189
  }, {
42059
42190
  key: "subscribeToWebPlannerEvents",
42060
42191
  value: function subscribeToWebPlannerEvents() {
42061
- var _this$actions48;
42062
- (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.subscribeEvents(this.addToBasketEventFunction);
42192
+ var _this$actions49;
42193
+ (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.subscribeEvents(this.addToBasketEventFunction);
42063
42194
  }
42064
42195
  }, {
42065
42196
  key: "unsubscribeFromWebPlannerEvents",
42066
42197
  value: function unsubscribeFromWebPlannerEvents() {
42067
- var _this$actions49;
42068
- (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.unSubscribeEvents(this.addToBasketEventFunction);
42198
+ var _this$actions50;
42199
+ (_this$actions50 = this.actions) === null || _this$actions50 === void 0 || _this$actions50.unSubscribeEvents(this.addToBasketEventFunction);
42069
42200
  }
42070
42201
  }, {
42071
42202
  key: "initApiForLogicOnly",
42072
42203
  value: //just for testing purposes
42073
42204
  function () {
42074
- var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
42075
- return _regeneratorRuntime.wrap(function _callee28$(_context28) {
42076
- while (1) switch (_context28.prev = _context28.next) {
42205
+ var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
42206
+ return _regeneratorRuntime.wrap(function _callee29$(_context29) {
42207
+ while (1) switch (_context29.prev = _context29.next) {
42077
42208
  case 0:
42078
42209
  //empty services
42079
42210
  this.api = new DivaApiHandler(_objectSpread$5(_objectSpread$5({}, this.plannerConfig), {}, {
@@ -42086,17 +42217,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42086
42217
  jwt: jwt,
42087
42218
  apiKey: apiKey
42088
42219
  }), handler);
42089
- _context28.next = 3;
42220
+ _context29.next = 3;
42090
42221
  return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
42091
42222
  case 3:
42092
42223
  this.plannerHandler = new DivaPlannerHandler(true);
42093
42224
  case 4:
42094
42225
  case "end":
42095
- return _context28.stop();
42226
+ return _context29.stop();
42096
42227
  }
42097
- }, _callee28, this);
42228
+ }, _callee29, this);
42098
42229
  }));
42099
- function initApiForLogicOnly(_x73, _x74, _x75, _x76, _x77, _x78, _x79) {
42230
+ function initApiForLogicOnly(_x78, _x79, _x80, _x81, _x82, _x83, _x84) {
42100
42231
  return _initApiForLogicOnly.apply(this, arguments);
42101
42232
  }
42102
42233
  return initApiForLogicOnly;
@@ -42109,16 +42240,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42109
42240
  }, {
42110
42241
  key: "loadBasket",
42111
42242
  value: function () {
42112
- var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29() {
42113
- return _regeneratorRuntime.wrap(function _callee29$(_context29) {
42114
- while (1) switch (_context29.prev = _context29.next) {
42243
+ var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30() {
42244
+ return _regeneratorRuntime.wrap(function _callee30$(_context30) {
42245
+ while (1) switch (_context30.prev = _context30.next) {
42115
42246
  case 0:
42116
- return _context29.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
42247
+ return _context30.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
42117
42248
  case 1:
42118
42249
  case "end":
42119
- return _context29.stop();
42250
+ return _context30.stop();
42120
42251
  }
42121
- }, _callee29, this);
42252
+ }, _callee30, this);
42122
42253
  }));
42123
42254
  function loadBasket() {
42124
42255
  return _loadBasket.apply(this, arguments);
@@ -42133,39 +42264,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42133
42264
  }, {
42134
42265
  key: "initBasket",
42135
42266
  value: function () {
42136
- var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(init3D, ignoreFavorites) {
42267
+ var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites) {
42137
42268
  var initSetState, set, basket;
42138
- return _regeneratorRuntime.wrap(function _callee30$(_context30) {
42139
- while (1) switch (_context30.prev = _context30.next) {
42269
+ return _regeneratorRuntime.wrap(function _callee31$(_context31) {
42270
+ while (1) switch (_context31.prev = _context31.next) {
42140
42271
  case 0:
42141
42272
  this.divaNr = this.divaBasketHandler.actDivaNr;
42142
42273
  initSetState = this.getInitStateForSet(!init3D);
42143
42274
  this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
42144
- _context30.next = 5;
42275
+ _context31.next = 5;
42145
42276
  return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
42146
42277
  case 5:
42147
42278
  //TODO check if when basket gets repaired the product match gets called
42148
42279
  set = this.actSet();
42149
42280
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
42150
42281
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
42151
- _context30.next = 10;
42282
+ _context31.next = 10;
42152
42283
  break;
42153
42284
  }
42154
- _context30.next = 10;
42285
+ _context31.next = 10;
42155
42286
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
42156
42287
  case 10:
42157
- _context30.next = 12;
42288
+ _context31.next = 12;
42158
42289
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
42159
42290
  case 12:
42160
- basket = _context30.sent;
42161
- return _context30.abrupt("return", basket);
42291
+ basket = _context31.sent;
42292
+ return _context31.abrupt("return", basket);
42162
42293
  case 14:
42163
42294
  case "end":
42164
- return _context30.stop();
42295
+ return _context31.stop();
42165
42296
  }
42166
- }, _callee30, this);
42297
+ }, _callee31, this);
42167
42298
  }));
42168
- function initBasket(_x80, _x81) {
42299
+ function initBasket(_x85, _x86) {
42169
42300
  return _initBasket.apply(this, arguments);
42170
42301
  }
42171
42302
  return initBasket;
@@ -42179,21 +42310,21 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42179
42310
  }, {
42180
42311
  key: "getValidVariantsLength",
42181
42312
  value: function () {
42182
- var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
42313
+ var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
42183
42314
  var set;
42184
- return _regeneratorRuntime.wrap(function _callee31$(_context31) {
42185
- while (1) switch (_context31.prev = _context31.next) {
42315
+ return _regeneratorRuntime.wrap(function _callee32$(_context32) {
42316
+ while (1) switch (_context32.prev = _context32.next) {
42186
42317
  case 0:
42187
42318
  set = this.actSet();
42188
- _context31.next = 3;
42319
+ _context32.next = 3;
42189
42320
  return favoritesHandlerInstance.getValidVariants(set, true);
42190
42321
  case 3:
42191
- return _context31.abrupt("return", _context31.sent.length);
42322
+ return _context32.abrupt("return", _context32.sent.length);
42192
42323
  case 4:
42193
42324
  case "end":
42194
- return _context31.stop();
42325
+ return _context32.stop();
42195
42326
  }
42196
- }, _callee31, this);
42327
+ }, _callee32, this);
42197
42328
  }));
42198
42329
  function getValidVariantsLength() {
42199
42330
  return _getValidVariantsLength.apply(this, arguments);
@@ -42203,46 +42334,46 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42203
42334
  }, {
42204
42335
  key: "handleFavorites",
42205
42336
  value: function () {
42206
- var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(mode) {
42337
+ var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(mode) {
42207
42338
  var _this5 = this;
42208
42339
  var set, i;
42209
- return _regeneratorRuntime.wrap(function _callee32$(_context32) {
42210
- while (1) switch (_context32.prev = _context32.next) {
42340
+ return _regeneratorRuntime.wrap(function _callee33$(_context33) {
42341
+ while (1) switch (_context33.prev = _context33.next) {
42211
42342
  case 0:
42212
42343
  set = this.actSet();
42213
42344
  i = 0;
42214
42345
  case 2:
42215
42346
  if (!favoritesHandlerInstance.IsCalcForSummary) {
42216
- _context32.next = 11;
42347
+ _context33.next = 11;
42217
42348
  break;
42218
42349
  }
42219
- _context32.next = 5;
42350
+ _context33.next = 5;
42220
42351
  return DivaUtils.Sleep(200);
42221
42352
  case 5:
42222
42353
  i++;
42223
42354
  if (!(i > 1000)) {
42224
- _context32.next = 9;
42355
+ _context33.next = 9;
42225
42356
  break;
42226
42357
  }
42227
42358
  LOG$1.error(new DivaError('error on generating Variants of Summary'));
42228
- return _context32.abrupt("break", 11);
42359
+ return _context33.abrupt("break", 11);
42229
42360
  case 9:
42230
- _context32.next = 2;
42361
+ _context33.next = 2;
42231
42362
  break;
42232
42363
  case 11:
42233
- _context32.next = 13;
42364
+ _context33.next = 13;
42234
42365
  return favoritesHandlerInstance.handleFavorites(set, mode, this.divaBasketHandler.actBasket, this.saveToBasketWrapper.bind(this), this.doConfigure.bind(this), function () {
42235
42366
  return _this5.update2DGrid(set);
42236
42367
  }, this.actions);
42237
42368
  case 13:
42238
- return _context32.abrupt("return", _context32.sent);
42369
+ return _context33.abrupt("return", _context33.sent);
42239
42370
  case 14:
42240
42371
  case "end":
42241
- return _context32.stop();
42372
+ return _context33.stop();
42242
42373
  }
42243
- }, _callee32, this);
42374
+ }, _callee33, this);
42244
42375
  }));
42245
- function handleFavorites(_x82) {
42376
+ function handleFavorites(_x87) {
42246
42377
  return _handleFavorites.apply(this, arguments);
42247
42378
  }
42248
42379
  return handleFavorites;
@@ -42255,48 +42386,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42255
42386
  }, {
42256
42387
  key: "initSapOrderLinesFromBasket",
42257
42388
  value: function () {
42258
- var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(divaNr, init3D, onlyLoadOldBakset) {
42389
+ var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(divaNr, init3D, onlyLoadOldBakset) {
42259
42390
  var result, oldBasket, basket;
42260
- return _regeneratorRuntime.wrap(function _callee33$(_context33) {
42261
- while (1) switch (_context33.prev = _context33.next) {
42391
+ return _regeneratorRuntime.wrap(function _callee34$(_context34) {
42392
+ while (1) switch (_context34.prev = _context34.next) {
42262
42393
  case 0:
42263
42394
  if (divaNr) this.divaBasketHandler.updateDivaNrInBasket(divaNr);
42264
- _context33.next = 3;
42395
+ _context34.next = 3;
42265
42396
  return this.loadBasket();
42266
42397
  case 3:
42267
- result = _context33.sent;
42398
+ result = _context34.sent;
42268
42399
  if (!onlyLoadOldBakset) {
42269
- _context33.next = 6;
42400
+ _context34.next = 6;
42270
42401
  break;
42271
42402
  }
42272
- return _context33.abrupt("return", {
42403
+ return _context34.abrupt("return", {
42273
42404
  oldBasket: new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket))),
42274
42405
  cache: {}
42275
42406
  });
42276
42407
  case 6:
42277
42408
  if (!(result === false)) {
42278
- _context33.next = 8;
42409
+ _context34.next = 8;
42279
42410
  break;
42280
42411
  }
42281
42412
  throw new Error('Could not load basket! ' + divaNr);
42282
42413
  case 8:
42283
42414
  oldBasket = new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket)));
42284
- _context33.next = 11;
42415
+ _context34.next = 11;
42285
42416
  return this.initBasket(init3D);
42286
42417
  case 11:
42287
- basket = _context33.sent;
42288
- return _context33.abrupt("return", {
42418
+ basket = _context34.sent;
42419
+ return _context34.abrupt("return", {
42289
42420
  basket: basket,
42290
42421
  oldBasket: oldBasket,
42291
42422
  cache: this.api.getJsonDataCache()
42292
42423
  });
42293
42424
  case 13:
42294
42425
  case "end":
42295
- return _context33.stop();
42426
+ return _context34.stop();
42296
42427
  }
42297
- }, _callee33, this);
42428
+ }, _callee34, this);
42298
42429
  }));
42299
- function initSapOrderLinesFromBasket(_x83, _x84, _x85) {
42430
+ function initSapOrderLinesFromBasket(_x88, _x89, _x90) {
42300
42431
  return _initSapOrderLinesFromBasket.apply(this, arguments);
42301
42432
  }
42302
42433
  return initSapOrderLinesFromBasket;
@@ -42548,6 +42679,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42548
42679
  this.initViewApiDependencies = undefined;
42549
42680
  this.setHQRenderScript = undefined;
42550
42681
  this.setCamInfo = undefined;
42682
+ this.openContactForm = undefined;
42551
42683
  }
42552
42684
  }]);
42553
42685
  }();
@@ -42952,8 +43084,11 @@ var Grid = /*#__PURE__*/function () {
42952
43084
  //all the different accessoires selectable to place in the grid. can be absolute defined in grid.ArticleRelations or can change due to the heightGridCellCountOnRule where we rule is depending on the current configuration of the article.
42953
43085
  _defineProperty(this, "articleRelations", void 0);
42954
43086
  _defineProperty(this, "articleRelationsForOtherGroups", void 0);
43087
+ _defineProperty(this, "disableCellsByRules", void 0);
42955
43088
  //if in theis grid an shelfaccessoire is planned laod this article aswell
42956
43089
  _defineProperty(this, "montageOptions", void 0);
43090
+ //disableCellsByFreeText
43091
+ _defineProperty(this, "disableCellsByMeasures", void 0);
42957
43092
  //this option gets triggered when the shelfplanner is visible and set back when navigating out of shelfstep
42958
43093
  _defineProperty(this, "visitOption", void 0);
42959
43094
  //this field allows the shelfplanner on the rule the cellCount and ArticleRelations can change
@@ -42979,6 +43114,8 @@ var Grid = /*#__PURE__*/function () {
42979
43114
  this.showAfterOPT = data.ShowAfterOPT;
42980
43115
  this.showOnRule = grid.ShowOnRule;
42981
43116
  this.montageOptions = grid.MontageOptions;
43117
+ this.disableCellsByMeasures = grid.DisableCellsByMeasures;
43118
+ this.disableCellsByRules = grid.DisableCellsByRules;
42982
43119
  this.visitOption = grid.VisitOption;
42983
43120
  this.shelfId = 'SHELFARTICLE_' + article.basketId + '_' + index;
42984
43121
  this.heightGridCellCountOnRule = data.ShelfPlanner[index].HeightGridCellCountOnRule;
@@ -43314,7 +43451,7 @@ var Grid = /*#__PURE__*/function () {
43314
43451
  case 2:
43315
43452
  dontOverwriteOptions = [];
43316
43453
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
43317
- var option, inUseCell, specificAccessoire, options, j, optionCodex, montageOptionState;
43454
+ var option, inUseCell, specificAccessoire, options, j, optionCodex, montageOptionState, _this$article$shelfAc, rest;
43318
43455
  return _regeneratorRuntime.wrap(function _loop$(_context4) {
43319
43456
  while (1) switch (_context4.prev = _context4.next) {
43320
43457
  case 0:
@@ -43322,42 +43459,61 @@ var Grid = /*#__PURE__*/function () {
43322
43459
  inUseCell = _this.cells.find(function (c, i) {
43323
43460
  return c.InUse === i && c.Article && (!option.accessoires || Array.isArray(option.accessoires) && option.accessoires.includes(c.Article.articleCodex) || !Array.isArray(option.accessoires) && option.accessoires == c.Article.articleCodex) && (!option.range || Array.isArray(option.range) && option.range.includes(i) || !Array.isArray(option.range) && option.range == i) && (!option.onTop || _this.cells[_this.cells.length - 1].InUse === i) && (!option.onBottom || _this.cells[0].InUse === i);
43324
43461
  });
43325
- specificAccessoire = option.accessoires && inUseCell !== null && inUseCell !== void 0 && inUseCell.Article ? [inUseCell.Article] : undefined;
43462
+ specificAccessoire = [];
43463
+ if (option.accessoires && inUseCell !== null && inUseCell !== void 0 && inUseCell.Article) specificAccessoire.push(inUseCell.Article);else if (option.onTop && _this.cells[_this.cells.length - 1].InUse == (inUseCell === null || inUseCell === void 0 ? void 0 : inUseCell.InUse) || option.onBottom && _this.cells[0].InUse == (inUseCell === null || inUseCell === void 0 ? void 0 : inUseCell.InUse)) {
43464
+ if (inUseCell.Article) specificAccessoire.push(inUseCell.Article);
43465
+ }
43326
43466
  options = Array.isArray(option.optionCodex) ? option.optionCodex : [option.optionCodex];
43327
43467
  j = 0;
43328
- case 5:
43468
+ case 6:
43329
43469
  if (!(j < options.length)) {
43330
- _context4.next = 23;
43470
+ _context4.next = 29;
43331
43471
  break;
43332
43472
  }
43333
43473
  optionCodex = options[j];
43334
43474
  montageOptionState = _this.article.getArticleOptionState('OPT' + optionCodex);
43335
43475
  if (!dontOverwriteOptions.includes(optionCodex)) {
43336
- _context4.next = 10;
43476
+ _context4.next = 11;
43337
43477
  break;
43338
43478
  }
43339
- return _context4.abrupt("continue", 20);
43340
- case 10:
43479
+ return _context4.abrupt("continue", 26);
43480
+ case 11:
43341
43481
  if (!inUseCell) {
43342
- _context4.next = 17;
43482
+ _context4.next = 18;
43343
43483
  break;
43344
43484
  }
43345
43485
  if (montageOptionState) montageOptionState.val = montageOptionState.visibleOptionValues['OPVMIT'];
43346
- _context4.next = 14;
43486
+ _context4.next = 15;
43347
43487
  return _this.updateAccessoireMontageOption('OPT' + optionCodex, 'OPVMIT', specificAccessoire);
43348
- case 14:
43488
+ case 15:
43349
43489
  dontOverwriteOptions.push(optionCodex);
43350
- _context4.next = 20;
43490
+ _context4.next = 21;
43351
43491
  break;
43352
- case 17:
43492
+ case 18:
43353
43493
  if (montageOptionState) montageOptionState.val = montageOptionState.visibleOptionValues['OPVOHNE'];
43354
- _context4.next = 20;
43355
- return _this.updateAccessoireMontageOption('OPT' + optionCodex, 'OPVOHNE');
43356
- case 20:
43494
+ _context4.next = 21;
43495
+ return _this.updateAccessoireMontageOption('OPT' + optionCodex, 'OPVOHNE', []);
43496
+ case 21:
43497
+ if (!specificAccessoire.length) {
43498
+ _context4.next = 26;
43499
+ break;
43500
+ }
43501
+ rest = Object.values((_this$article$shelfAc = _this.article.shelfAccessoires) !== null && _this$article$shelfAc !== void 0 ? _this$article$shelfAc : {}).filter(function (a) {
43502
+ return !specificAccessoire.find(function (b) {
43503
+ return b.basketId == a.basketId;
43504
+ });
43505
+ });
43506
+ if (!rest.length) {
43507
+ _context4.next = 26;
43508
+ break;
43509
+ }
43510
+ _context4.next = 26;
43511
+ return _this.updateAccessoireMontageOption('OPT' + optionCodex, 'OPVOHNE', rest);
43512
+ case 26:
43357
43513
  j++;
43358
- _context4.next = 5;
43514
+ _context4.next = 6;
43359
43515
  break;
43360
- case 23:
43516
+ case 29:
43361
43517
  case "end":
43362
43518
  return _context4.stop();
43363
43519
  }
@@ -43389,12 +43545,12 @@ var Grid = /*#__PURE__*/function () {
43389
43545
  key: "updateAccessoireMontageOption",
43390
43546
  value: function () {
43391
43547
  var _updateAccessoireMontageOption = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(optionCodex, optionValueCodex, accessoires) {
43392
- var _this$article$shelfAc;
43548
+ var _this$article$shelfAc2;
43393
43549
  var i;
43394
43550
  return _regeneratorRuntime.wrap(function _callee5$(_context6) {
43395
43551
  while (1) switch (_context6.prev = _context6.next) {
43396
43552
  case 0:
43397
- if (!accessoires) accessoires = Object.values((_this$article$shelfAc = this.article.shelfAccessoires) !== null && _this$article$shelfAc !== void 0 ? _this$article$shelfAc : {});
43553
+ if (!accessoires.length) accessoires = Object.values((_this$article$shelfAc2 = this.article.shelfAccessoires) !== null && _this$article$shelfAc2 !== void 0 ? _this$article$shelfAc2 : {});
43398
43554
  i = 0;
43399
43555
  case 2:
43400
43556
  if (!(i < accessoires.length)) {
@@ -43497,145 +43653,204 @@ var Grid = /*#__PURE__*/function () {
43497
43653
  */
43498
43654
  }, {
43499
43655
  key: "moveCell",
43500
- value: function moveCell(initialIndex, finalIndex) {
43501
- var _this2 = this;
43502
- var cellsMoving = {};
43503
- var cellsMovingFinalPosition = {};
43504
- var cellsAjusting = {};
43505
- var cellsAtStart = [];
43506
- var cellsAtEnd = [];
43507
- var startAndFinalSwitched = false;
43508
- if (initialIndex > finalIndex) {
43509
- var tmp = finalIndex;
43510
- finalIndex = initialIndex;
43511
- initialIndex = tmp;
43512
- startAndFinalSwitched = true;
43513
- }
43514
-
43515
- //ajust finalIndex maybe at the place is already an element
43516
- if (!startAndFinalSwitched) {
43517
- while (this.cells[finalIndex] && this.cells[finalIndex].InUse != -1 && this.cells[finalIndex + 1] !== undefined) {
43518
- finalIndex++;
43519
- }
43520
- }
43521
- for (var i = 0; i < initialIndex; i++) {
43522
- cellsAtStart.push(this.cells[i]);
43523
- }
43524
- if (!startAndFinalSwitched) {
43525
- //moving up
43526
- for (var _i5 = 0; _i5 < this.cells.length; _i5++) {
43527
- if (this.cells[_i5].InUse == initialIndex || this.cells[_i5].OnBoard == initialIndex) {
43528
- cellsMoving[_i5] = this.cells[_i5];
43529
- }
43530
- }
43531
- var cellsMovingCount = Object.keys(cellsMoving).length;
43532
- for (var _i6 = initialIndex; _i6 <= finalIndex; _i6++) {
43533
- if (!cellsMoving[_i6]) {
43534
- cellsAjusting[_i6 - cellsMovingCount] = this.cells[_i6];
43535
- }
43536
- }
43537
- var cellsAjustingCount = Object.keys(cellsAjusting).length;
43538
- for (var key in cellsMoving) {
43539
- cellsMovingFinalPosition[Number(key) + cellsAjustingCount] = cellsMoving[key];
43540
- }
43541
- for (var _i7 = finalIndex + 1; _i7 < this.cells.length; _i7++) {
43542
- cellsAtEnd.push(this.cells[_i7]);
43543
- }
43544
- } else {
43545
- //moving down
43546
- for (var _i8 = 0; _i8 < this.cells.length; _i8++) {
43547
- if (this.cells[_i8].InUse == finalIndex || this.cells[_i8].OnBoard == finalIndex) {
43548
- cellsMoving[_i8] = this.cells[_i8];
43549
- }
43550
- }
43551
- var _cellsMovingCount = Object.keys(cellsMoving).length;
43552
- for (var _i9 = initialIndex; _i9 <= finalIndex; _i9++) {
43553
- if (!cellsMoving[_i9]) {
43554
- cellsAjusting[_i9 + _cellsMovingCount] = this.cells[_i9];
43555
- }
43556
- }
43557
- var _cellsAjustingCount = Object.keys(cellsAjusting).length;
43558
- for (var _key in cellsMoving) {
43559
- cellsMovingFinalPosition[Number(_key) - _cellsAjustingCount] = cellsMoving[_key];
43560
- }
43561
- for (var _i10 = finalIndex + _cellsMovingCount; _i10 < this.cells.length; _i10++) {
43562
- cellsAtEnd.push(this.cells[_i10]);
43563
- }
43564
- }
43656
+ value: (function () {
43657
+ var _moveCell = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(initialIndex, finalIndex) {
43658
+ var _this2 = this;
43659
+ 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;
43660
+ return _regeneratorRuntime.wrap(function _callee6$(_context8) {
43661
+ while (1) switch (_context8.prev = _context8.next) {
43662
+ case 0:
43663
+ cellsMoving = {};
43664
+ cellsMovingFinalPosition = {};
43665
+ cellsAjusting = {};
43666
+ cellsAtStart = [];
43667
+ cellsAtEnd = [];
43668
+ startAndFinalSwitched = false;
43669
+ if (initialIndex > finalIndex) {
43670
+ tmp = finalIndex;
43671
+ finalIndex = initialIndex;
43672
+ initialIndex = tmp;
43673
+ startAndFinalSwitched = true;
43674
+ }
43675
+
43676
+ //ajust finalIndex maybe at the place is already an element
43677
+ if (!startAndFinalSwitched) {
43678
+ while (this.cells[finalIndex] && this.cells[finalIndex].InUse != -1 && this.cells[finalIndex + 1] !== undefined) {
43679
+ finalIndex++;
43680
+ }
43681
+ }
43682
+ for (i = 0; i < initialIndex; i++) {
43683
+ cellsAtStart.push(this.cells[i]);
43684
+ }
43685
+ if (!startAndFinalSwitched) {
43686
+ //moving up
43687
+ for (_i5 = 0; _i5 < this.cells.length; _i5++) {
43688
+ if (this.cells[_i5].InUse == initialIndex || this.cells[_i5].OnBoard == initialIndex) {
43689
+ cellsMoving[_i5] = this.cells[_i5];
43690
+ }
43691
+ }
43692
+ cellsMovingCount = Object.keys(cellsMoving).length;
43693
+ for (_i6 = initialIndex; _i6 <= finalIndex; _i6++) {
43694
+ if (!cellsMoving[_i6]) {
43695
+ cellsAjusting[_i6 - cellsMovingCount] = this.cells[_i6];
43696
+ }
43697
+ }
43698
+ cellsAjustingCount = Object.keys(cellsAjusting).length;
43699
+ for (key in cellsMoving) {
43700
+ cellsMovingFinalPosition[Number(key) + cellsAjustingCount] = cellsMoving[key];
43701
+ }
43702
+ for (_i7 = finalIndex + 1; _i7 < this.cells.length; _i7++) {
43703
+ cellsAtEnd.push(this.cells[_i7]);
43704
+ }
43705
+ } else {
43706
+ //moving down
43707
+ for (_i8 = 0; _i8 < this.cells.length; _i8++) {
43708
+ if (this.cells[_i8].InUse == finalIndex || this.cells[_i8].OnBoard == finalIndex) {
43709
+ cellsMoving[_i8] = this.cells[_i8];
43710
+ }
43711
+ }
43712
+ _cellsMovingCount = Object.keys(cellsMoving).length;
43713
+ for (_i9 = initialIndex; _i9 <= finalIndex; _i9++) {
43714
+ if (!cellsMoving[_i9]) {
43715
+ cellsAjusting[_i9 + _cellsMovingCount] = this.cells[_i9];
43716
+ }
43717
+ }
43718
+ _cellsAjustingCount = Object.keys(cellsAjusting).length;
43719
+ for (_key in cellsMoving) {
43720
+ cellsMovingFinalPosition[Number(_key) - _cellsAjustingCount] = cellsMoving[_key];
43721
+ }
43722
+ for (_i10 = finalIndex + _cellsMovingCount; _i10 < this.cells.length; _i10++) {
43723
+ cellsAtEnd.push(this.cells[_i10]);
43724
+ }
43725
+ }
43565
43726
 
43566
- // if an element gets moved which shouldnt be moved dont fill the cells with the new order and just cancel
43567
- for (var _key2 in cellsAjusting) {
43568
- if (cellsAjusting[_key2].IsDisabled || cellsAjusting[_key2].NoMove) {
43569
- return;
43570
- }
43571
- }
43572
- var oldCells = this.cells;
43573
- // fill cells with new order
43574
- this.cells = [];
43575
- this.cells = cellsAtStart;
43576
- if (!startAndFinalSwitched) {
43577
- for (var _key3 in cellsAjusting) {
43578
- this.cells.push(cellsAjusting[_key3]);
43579
- }
43580
- for (var _key4 in cellsMovingFinalPosition) {
43581
- this.cells.push(cellsMovingFinalPosition[_key4]);
43582
- }
43583
- } else {
43584
- for (var _key5 in cellsMovingFinalPosition) {
43585
- this.cells.push(cellsMovingFinalPosition[_key5]);
43586
- }
43587
- for (var _key6 in cellsAjusting) {
43588
- this.cells.push(cellsAjusting[_key6]);
43589
- }
43590
- }
43591
- for (var _i11 = 0; _i11 < cellsAtEnd.length; _i11++) {
43592
- this.cells.push(cellsAtEnd[_i11]);
43593
- }
43594
- for (var _i12 = 0; _i12 < this.cells.length; _i12++) {
43595
- this.cells[_i12].moveCellToIndex(_i12);
43596
- }
43727
+ // if an element gets moved which shouldnt be moved dont fill the cells with the new order and just cancel
43728
+ _context8.t0 = _regeneratorRuntime.keys(cellsAjusting);
43729
+ case 11:
43730
+ if ((_context8.t1 = _context8.t0()).done) {
43731
+ _context8.next = 17;
43732
+ break;
43733
+ }
43734
+ _key2 = _context8.t1.value;
43735
+ if (!(cellsAjusting[_key2].IsDisabled || cellsAjusting[_key2].NoMove)) {
43736
+ _context8.next = 15;
43737
+ break;
43738
+ }
43739
+ return _context8.abrupt("return");
43740
+ case 15:
43741
+ _context8.next = 11;
43742
+ break;
43743
+ case 17:
43744
+ oldCells = this.cells; // fill cells with new order
43745
+ this.cells = [];
43746
+ this.cells = cellsAtStart;
43747
+ if (!startAndFinalSwitched) {
43748
+ for (_key3 in cellsAjusting) {
43749
+ this.cells.push(cellsAjusting[_key3]);
43750
+ }
43751
+ for (_key4 in cellsMovingFinalPosition) {
43752
+ this.cells.push(cellsMovingFinalPosition[_key4]);
43753
+ }
43754
+ } else {
43755
+ for (_key5 in cellsMovingFinalPosition) {
43756
+ this.cells.push(cellsMovingFinalPosition[_key5]);
43757
+ }
43758
+ for (_key6 in cellsAjusting) {
43759
+ this.cells.push(cellsAjusting[_key6]);
43760
+ }
43761
+ }
43762
+ for (_i11 = 0; _i11 < cellsAtEnd.length; _i11++) {
43763
+ this.cells.push(cellsAtEnd[_i11]);
43764
+ }
43765
+ for (_i12 = 0; _i12 < this.cells.length; _i12++) {
43766
+ this.cells[_i12].moveCellToIndex(_i12);
43767
+ }
43597
43768
 
43598
- //check for all the accessoires that moved during the process if they are allowed to be there
43599
- var accessoriesMoved = [];
43600
- var _loop2 = function _loop2() {
43601
- var cell = _this2.cells[_i13];
43602
- if (cell.Type == 'fitsOnParentRule' && cell.InUse > -1 && !accessoriesMoved.find(function (a) {
43603
- var _cell$Article2;
43604
- return ((_cell$Article2 = cell.Article) === null || _cell$Article2 === void 0 ? void 0 : _cell$Article2.basketId) == a.basketId;
43605
- })) {
43606
- var _cell$Article3;
43607
- accessoriesMoved.push({
43608
- article: cell.Article,
43609
- basketId: (_cell$Article3 = cell.Article) === null || _cell$Article3 === void 0 ? void 0 : _cell$Article3.basketId,
43610
- index: cell.InUse
43611
- });
43612
- }
43613
- };
43614
- for (var _i13 = 0; _i13 < this.cells.length; _i13++) {
43615
- _loop2();
43616
- }
43617
- var resetCells = false;
43618
- for (var _i14 = 0; _i14 < accessoriesMoved.length; _i14++) {
43619
- var result = this.tryFitOnShelf(accessoriesMoved[_i14].article, accessoriesMoved[_i14].index, accessoriesMoved[_i14].article.shelfPlanner, true);
43620
- if (result && result.type === 'fitsOnParentRule' && result.index === accessoriesMoved[_i14].index) ; else {
43621
- resetCells = true;
43622
- break;
43623
- }
43624
- }
43625
- if (resetCells) {
43626
- this.cells = oldCells;
43627
- for (var _i15 = 0; _i15 < this.cells.length; _i15++) {
43628
- this.cells[_i15].moveCellToIndex(_i15);
43629
- }
43769
+ //check for all the accessoires that moved during the process if they are allowed to be there
43770
+ accessoriesMoved = [];
43771
+ _loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
43772
+ var cell, _cell$Article3;
43773
+ return _regeneratorRuntime.wrap(function _loop2$(_context7) {
43774
+ while (1) switch (_context7.prev = _context7.next) {
43775
+ case 0:
43776
+ cell = _this2.cells[_i13];
43777
+ if (cell.Type == 'fitsOnParentRule' && cell.InUse > -1 && !accessoriesMoved.find(function (a) {
43778
+ var _cell$Article2;
43779
+ return ((_cell$Article2 = cell.Article) === null || _cell$Article2 === void 0 ? void 0 : _cell$Article2.basketId) == a.basketId;
43780
+ })) {
43781
+ accessoriesMoved.push({
43782
+ article: cell.Article,
43783
+ basketId: (_cell$Article3 = cell.Article) === null || _cell$Article3 === void 0 ? void 0 : _cell$Article3.basketId,
43784
+ index: cell.InUse
43785
+ });
43786
+ }
43787
+ case 2:
43788
+ case "end":
43789
+ return _context7.stop();
43790
+ }
43791
+ }, _loop2);
43792
+ });
43793
+ _i13 = 0;
43794
+ case 26:
43795
+ if (!(_i13 < this.cells.length)) {
43796
+ _context8.next = 31;
43797
+ break;
43798
+ }
43799
+ return _context8.delegateYield(_loop2(), "t2", 28);
43800
+ case 28:
43801
+ _i13++;
43802
+ _context8.next = 26;
43803
+ break;
43804
+ case 31:
43805
+ resetCells = false;
43806
+ _i14 = 0;
43807
+ case 33:
43808
+ if (!(_i14 < accessoriesMoved.length)) {
43809
+ _context8.next = 43;
43810
+ break;
43811
+ }
43812
+ result = this.tryFitOnShelf(accessoriesMoved[_i14].article, accessoriesMoved[_i14].index, accessoriesMoved[_i14].article.shelfPlanner, true);
43813
+ if (!(result && result.type === 'fitsOnParentRule' && result.index === accessoriesMoved[_i14].index)) {
43814
+ _context8.next = 38;
43815
+ break;
43816
+ }
43817
+ _context8.next = 40;
43818
+ break;
43819
+ case 38:
43820
+ resetCells = true;
43821
+ return _context8.abrupt("break", 43);
43822
+ case 40:
43823
+ _i14++;
43824
+ _context8.next = 33;
43825
+ break;
43826
+ case 43:
43827
+ if (resetCells) {
43828
+ this.cells = oldCells;
43829
+ for (_i15 = 0; _i15 < this.cells.length; _i15++) {
43830
+ this.cells[_i15].moveCellToIndex(_i15);
43831
+ }
43832
+ }
43833
+ this.updateRequredCells();
43834
+ _context8.next = 47;
43835
+ return this.updateMontageOption();
43836
+ case 47:
43837
+ return _context8.abrupt("return", resetCells ? 'RESETTED_CELLS' : 'SUCCESS');
43838
+ case 48:
43839
+ case "end":
43840
+ return _context8.stop();
43841
+ }
43842
+ }, _callee6, this);
43843
+ }));
43844
+ function moveCell(_x11, _x12) {
43845
+ return _moveCell.apply(this, arguments);
43630
43846
  }
43631
- this.updateRequredCells();
43632
- return resetCells ? 'RESETTED_CELLS' : 'SUCCESS';
43633
- }
43634
-
43847
+ return moveCell;
43848
+ }()
43635
43849
  /**
43636
43850
  *
43637
43851
  * @returns if one or more cells a still required return true
43638
43852
  */
43853
+ )
43639
43854
  }, {
43640
43855
  key: "areCellsStillRequired",
43641
43856
  value: function areCellsStillRequired() {
@@ -43847,6 +44062,43 @@ var Grid = /*#__PURE__*/function () {
43847
44062
  }
43848
44063
  return true;
43849
44064
  }
44065
+ }, {
44066
+ key: "getCellCount",
44067
+ value: function getCellCount(dp) {
44068
+ var count = this.cells.length;
44069
+ if (this.DisableCellsByMeasures) {
44070
+ var lowestMeasure = undefined;
44071
+ var options = this.DisableCellsByMeasures.options;
44072
+ for (var i = 0; i < options.length; i++) {
44073
+ if (options[i].dp && dp && dp == options[i].dp) continue;
44074
+ var o = options[i].opt;
44075
+ var ops = this.article.getArticleOptionState('OPT' + o);
44076
+ if (!ops) continue;
44077
+ if (!isNaN(Number(ops.freeText)) && (lowestMeasure === undefined || lowestMeasure > Number(ops.freeText))) lowestMeasure = Number(ops.freeText);
44078
+ }
44079
+ if (lowestMeasure) {
44080
+ var ratio = this.DisableCellsByMeasures.maxMeasure / this.cells.length;
44081
+ var rest = this.DisableCellsByMeasures.maxMeasure - lowestMeasure;
44082
+ count = this.cells.length - Math.round(rest / ratio);
44083
+ }
44084
+ }
44085
+ return count;
44086
+ }
44087
+ }, {
44088
+ key: "getDisabledCellsByRule",
44089
+ value: function getDisabledCellsByRule() {
44090
+ var _this$disableCellsByR;
44091
+ var cellsToDisable = [];
44092
+ if (!((_this$disableCellsByR = this.disableCellsByRules) !== null && _this$disableCellsByR !== void 0 && _this$disableCellsByR.length)) return cellsToDisable;
44093
+ var article = this.article;
44094
+ for (var i = 0; i < this.disableCellsByRules.length; i++) {
44095
+ var rule = this.disableCellsByRules[i];
44096
+ if (this.article.evalRule(DivaUtils.getRuleByFormula(rule.rule, this.article.catalogCodex, article.CatalogData.multiselectOptions))) {
44097
+ cellsToDisable = [].concat(_toConsumableArray(cellsToDisable), _toConsumableArray(rule.cells));
44098
+ }
44099
+ }
44100
+ return cellsToDisable;
44101
+ }
43850
44102
  }, {
43851
44103
  key: "ShelfId",
43852
44104
  get: function get() {
@@ -43998,6 +44250,11 @@ var Grid = /*#__PURE__*/function () {
43998
44250
  set: function set(val) {
43999
44251
  this.disabledByRule = val;
44000
44252
  }
44253
+ }, {
44254
+ key: "DisableCellsByMeasures",
44255
+ get: function get() {
44256
+ return this.disableCellsByMeasures;
44257
+ }
44001
44258
  }, {
44002
44259
  key: "ArticleRelationsForOtherGroups",
44003
44260
  get: function get() {