@crystaldesign/web-planner-logic 25.2.0-beta.8 → 25.2.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/build/cjs/{DivaBoxPlanner-419deff0.js → DivaBoxPlanner-230a7343.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-452a7c54.js → DivaStandardPlanner-3b70656f.js} +3 -3
  3. package/build/cjs/{DoorPlanner-f3f26c1d.js → DoorPlanner-85f5df3d.js} +63 -15
  4. package/build/cjs/{Host3DSignalR-97efb5ee.js → Host3DSignalR-06a86be8.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-dc0bf512.js → LiviqueWWSHandler-8e9cc61c.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-9a9e6041.js → PfisterWWSHandler-786700cb.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-f63a421a.js → PlannerHandler2D-d4305a93.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-f21d468a.js → SeriousBasketHandler-70977945.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-1165e6f2.js → ShelfPlanner-89d47e5e.js} +86 -56
  10. package/build/cjs/{StandardWWSHandler-899f51d5.js → StandardWWSHandler-4e8f472a.js} +1 -1
  11. package/build/cjs/{index-eb6ae406.js → index-1df7482f.js} +1169 -928
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-ecd0e7d9.js → DivaBoxPlanner-ef50f3c1.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-fd494faa.js → DivaStandardPlanner-50298918.js} +3 -3
  15. package/build/esm/{DoorPlanner-c811330f.js → DoorPlanner-43de473a.js} +63 -15
  16. package/build/esm/{Host3DSignalR-2bfc7356.js → Host3DSignalR-b772e3b5.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-2f2c63a7.js → LiviqueWWSHandler-e63f276f.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-b7dd5d62.js → PfisterWWSHandler-7f7996a7.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-de8dd1f2.js → PlannerHandler2D-4e72c491.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-a0a3258f.js → SeriousBasketHandler-1a4186bd.js} +1 -1
  21. package/build/esm/{ShelfPlanner-f47cd0f7.js → ShelfPlanner-152084c3.js} +86 -56
  22. package/build/esm/{StandardWWSHandler-8b675fe0.js → StandardWWSHandler-a5d84eb8.js} +1 -1
  23. package/build/esm/{index-14b412d8.js → index-474fc67f.js} +1169 -928
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/API/TemplateConfigType.d.ts +1 -1
  26. package/build/types/web-planner-logic/src/interface/API/TemplateConfigType.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts +0 -1
  28. package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts +1 -0
  30. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/Basket/BasketEvent.d.ts +1 -1
  32. package/build/types/web-planner-logic/src/interface/Basket/BasketEvent.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/Configuration.d.ts +5 -0
  34. package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +1 -0
  36. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +2 -0
  38. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/interface/DoorPlanner/index.d.ts +1 -1
  40. package/build/types/web-planner-logic/src/interface/DoorPlanner/index.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +2 -0
  42. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts +7 -0
  44. package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +1 -1
  46. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +3 -2
  48. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +7 -4
  50. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  51. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  52. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  53. package/build/types/web-planner-logic/src/logic/ConfigTree/DoorPlanner/Door.d.ts +1 -1
  54. package/build/types/web-planner-logic/src/logic/ConfigTree/DoorPlanner/Door.d.ts.map +1 -1
  55. package/build/types/web-planner-logic/src/logic/ConfigTree/DoorPlanner/DoorPlanner.d.ts +11 -3
  56. package/build/types/web-planner-logic/src/logic/ConfigTree/DoorPlanner/DoorPlanner.d.ts.map +1 -1
  57. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts +4 -2
  58. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
  59. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts +10 -1
  60. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -1
  61. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +4 -1
  62. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  63. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
  64. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +1 -1
  65. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  66. package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts +1 -0
  67. package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts.map +1 -1
  68. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +2 -0
  69. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  70. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +2 -0
  71. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
  72. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +2 -0
  73. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
  74. 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-f47cd0f7.js');
24002
+ return import('./ShelfPlanner-152084c3.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-c811330f.js');
28687
+ return import('./DoorPlanner-43de473a.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,29 +33200,30 @@ 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) {
33107
- var _set$ViewConfig,
33203
+ var _variantsEvaluator = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(set, configItems, configStepKey, paletteType) {
33204
+ var _configItems$0$option,
33205
+ _set$ViewConfig,
33108
33206
  _set$api$ReturnToFrom,
33109
33207
  _set$CatalogData$show,
33110
33208
  _set$CatalogData$hide,
33111
33209
  _this = this;
33112
33210
  var opt, previewType, targetArticles, variants;
33113
- return _regeneratorRuntime.wrap(function _callee23$(_context25) {
33114
- while (1) switch (_context25.prev = _context25.next) {
33211
+ return _regeneratorRuntime.wrap(function _callee24$(_context26) {
33212
+ while (1) switch (_context26.prev = _context26.next) {
33115
33213
  case 0:
33116
- opt = set.CatalogData.getOption(configItems[0].op);
33214
+ opt = set.CatalogData.getOption((_configItems$0$option = configItems[0].optionOcd) !== null && _configItems$0$option !== void 0 ? _configItems$0$option : configItems[0].op);
33117
33215
  previewType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.pricePreview;
33118
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)))) {
33119
- _context25.next = 4;
33217
+ _context26.next = 4;
33120
33218
  break;
33121
33219
  }
33122
- return _context25.abrupt("return", configItems);
33220
+ return _context26.abrupt("return", configItems);
33123
33221
  case 4:
33124
33222
  targetArticles = set.configTree.getTargetArticles(configStepKey);
33125
- _context25.next = 7;
33223
+ _context26.next = 7;
33126
33224
  return this.calcVariants(set, configItems, targetArticles, opt.codex);
33127
33225
  case 7:
33128
- variants = _context25.sent;
33226
+ variants = _context26.sent;
33129
33227
  if (previewType) {
33130
33228
  configItems.map(function (c, index) {
33131
33229
  return c.pricePreviewPromise = {
@@ -33134,14 +33232,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33134
33232
  };
33135
33233
  });
33136
33234
  }
33137
- return _context25.abrupt("return", configItems);
33235
+ return _context26.abrupt("return", configItems);
33138
33236
  case 10:
33139
33237
  case "end":
33140
- return _context25.stop();
33238
+ return _context26.stop();
33141
33239
  }
33142
- }, _callee23, this);
33240
+ }, _callee24, this);
33143
33241
  }));
33144
- function variantsEvaluator(_x81, _x82, _x83, _x84) {
33242
+ function variantsEvaluator(_x85, _x86, _x87, _x88) {
33145
33243
  return _variantsEvaluator.apply(this, arguments);
33146
33244
  }
33147
33245
  return variantsEvaluator;
@@ -33149,10 +33247,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
33149
33247
  }, {
33150
33248
  key: "calcVariants",
33151
33249
  value: function () {
33152
- var _calcVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(realSet, configItems, targetArticles, optionCodex) {
33153
- var variantInfo, set, articles, origPrice, articleConfigs, i, basketId, totalConfig, key, parentNames, _i5, configItem;
33154
- return _regeneratorRuntime.wrap(function _callee24$(_context26) {
33155
- 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) {
33156
33254
  case 0:
33157
33255
  variantInfo = [];
33158
33256
  set = realSet.cloneSet();
@@ -33177,37 +33275,37 @@ var DivaSetHandler = /*#__PURE__*/function () {
33177
33275
  _i5 = 0;
33178
33276
  case 10:
33179
33277
  if (!(_i5 < configItems.length)) {
33180
- _context26.next = 23;
33278
+ _context27.next = 23;
33181
33279
  break;
33182
33280
  }
33183
33281
  configItem = configItems[_i5];
33184
- if (!(configItem.parentName && configItem.isParentOPVG)) {
33185
- _context26.next = 19;
33282
+ if (!(configItem.parentName && configItem.isParentOPVG || configItem.idmOpgValCodex)) {
33283
+ _context27.next = 19;
33186
33284
  break;
33187
33285
  }
33188
- if (!parentNames.includes(configItem.parentName)) {
33189
- _context26.next = 18;
33286
+ if (!parentNames.includes((_configItem$parentNam = configItem.parentName) !== null && _configItem$parentNam !== void 0 ? _configItem$parentNam : configItem.idmOpgValCodex)) {
33287
+ _context27.next = 18;
33190
33288
  break;
33191
33289
  }
33192
33290
  variantInfo.push(variantInfo[_i5 - 1]);
33193
- return _context26.abrupt("continue", 20);
33291
+ return _context27.abrupt("continue", 20);
33194
33292
  case 18:
33195
- parentNames.push(configItem.parentName);
33293
+ parentNames.push((_configItem$parentNam2 = configItem.parentName) !== null && _configItem$parentNam2 !== void 0 ? _configItem$parentNam2 : configItem.idmOpgValCodex);
33196
33294
  case 19:
33197
33295
  variantInfo.push(this.getVariant(set, configItem, articleConfigs, totalConfig, targetArticles, optionCodex, origPrice, _i5, variantInfo[_i5 - 1]));
33198
33296
  case 20:
33199
33297
  _i5++;
33200
- _context26.next = 10;
33298
+ _context27.next = 10;
33201
33299
  break;
33202
33300
  case 23:
33203
- return _context26.abrupt("return", variantInfo);
33301
+ return _context27.abrupt("return", variantInfo);
33204
33302
  case 24:
33205
33303
  case "end":
33206
- return _context26.stop();
33304
+ return _context27.stop();
33207
33305
  }
33208
- }, _callee24, this);
33306
+ }, _callee25, this);
33209
33307
  }));
33210
- function calcVariants(_x85, _x86, _x87, _x88) {
33308
+ function calcVariants(_x89, _x90, _x91, _x92) {
33211
33309
  return _calcVariants.apply(this, arguments);
33212
33310
  }
33213
33311
  return calcVariants;
@@ -33215,23 +33313,23 @@ var DivaSetHandler = /*#__PURE__*/function () {
33215
33313
  }, {
33216
33314
  key: "getVariant",
33217
33315
  value: function () {
33218
- 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) {
33219
33317
  var firstPrice, prevProm, startTime, doUseConfigs, hashVariantValues, variantValues, i, basketId, origConfig, key, hash, dataHash, _i6, endTime, calcTime, price, priceObj;
33220
- return _regeneratorRuntime.wrap(function _callee25$(_context27) {
33221
- while (1) switch (_context27.prev = _context27.next) {
33318
+ return _regeneratorRuntime.wrap(function _callee26$(_context28) {
33319
+ while (1) switch (_context28.prev = _context28.next) {
33222
33320
  case 0:
33223
33321
  firstPrice = undefined;
33224
33322
  prevProm = undefined;
33225
33323
  if (!previousPromise) {
33226
- _context27.next = 9;
33324
+ _context28.next = 9;
33227
33325
  break;
33228
33326
  }
33229
- _context27.next = 5;
33327
+ _context28.next = 5;
33230
33328
  return previousPromise;
33231
33329
  case 5:
33232
- prevProm = _context27.sent;
33330
+ prevProm = _context28.sent;
33233
33331
  firstPrice = prevProm.firstPrice;
33234
- _context27.next = 10;
33332
+ _context28.next = 10;
33235
33333
  break;
33236
33334
  case 9:
33237
33335
  firstPrice = set.getSetPrice();
@@ -33264,11 +33362,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33264
33362
  hash = md5(JSON.stringify([].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig)))));
33265
33363
  dataHash = set.CatalogData.getVariantsPriceByHash(hash);
33266
33364
  if (!dataHash) {
33267
- _context27.next = 21;
33365
+ _context28.next = 21;
33268
33366
  break;
33269
33367
  }
33270
33368
  LOG$9.debug('calcingVariant from Option:' + optionCodex + ' and index: ' + index + ' hash hit!', dataHash, [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig))), targetArticles);
33271
- return _context27.abrupt("return", _objectSpread$9(_objectSpread$9({}, dataHash), {}, {
33369
+ return _context28.abrupt("return", _objectSpread$9(_objectSpread$9({}, dataHash), {}, {
33272
33370
  origPrice: origPrice,
33273
33371
  firstPrice: firstPrice
33274
33372
  }));
@@ -33276,14 +33374,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33276
33374
  _i6 = 0;
33277
33375
  case 22:
33278
33376
  if (!(_i6 < variantValues.length)) {
33279
- _context27.next = 28;
33377
+ _context28.next = 28;
33280
33378
  break;
33281
33379
  }
33282
- _context27.next = 25;
33380
+ _context28.next = 25;
33283
33381
  return this.updateArticlesOptionStatesOfActSet(set, variantValues[_i6], [targetArticles[_i6]], true, 'calcVariant');
33284
33382
  case 25:
33285
33383
  _i6++;
33286
- _context27.next = 22;
33384
+ _context28.next = 22;
33287
33385
  break;
33288
33386
  case 28:
33289
33387
  endTime = new Date();
@@ -33301,14 +33399,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33301
33399
  hashObj: [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig)))
33302
33400
  };
33303
33401
  set.CatalogData.setVariantsPriceByHash(hash, priceObj);
33304
- return _context27.abrupt("return", priceObj);
33402
+ return _context28.abrupt("return", priceObj);
33305
33403
  case 35:
33306
33404
  case "end":
33307
- return _context27.stop();
33405
+ return _context28.stop();
33308
33406
  }
33309
- }, _callee25, this);
33407
+ }, _callee26, this);
33310
33408
  }));
33311
- function getVariant(_x89, _x90, _x91, _x92, _x93, _x94, _x95, _x96, _x97) {
33409
+ function getVariant(_x93, _x94, _x95, _x96, _x97, _x98, _x99, _x100, _x101) {
33312
33410
  return _getVariant.apply(this, arguments);
33313
33411
  }
33314
33412
  return getVariant;
@@ -33316,53 +33414,53 @@ var DivaSetHandler = /*#__PURE__*/function () {
33316
33414
  }, {
33317
33415
  key: "checkIfPriceDiffers",
33318
33416
  value: function () {
33319
- var _checkIfPriceDiffers = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(promises) {
33417
+ var _checkIfPriceDiffers = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(promises) {
33320
33418
  var results, i, price, j;
33321
- return _regeneratorRuntime.wrap(function _callee26$(_context28) {
33322
- while (1) switch (_context28.prev = _context28.next) {
33419
+ return _regeneratorRuntime.wrap(function _callee27$(_context29) {
33420
+ while (1) switch (_context29.prev = _context29.next) {
33323
33421
  case 0:
33324
33422
  results = [];
33325
33423
  i = 0;
33326
33424
  case 2:
33327
33425
  if (!(i < promises.length)) {
33328
- _context28.next = 19;
33426
+ _context29.next = 19;
33329
33427
  break;
33330
33428
  }
33331
- _context28.t0 = results;
33332
- _context28.next = 6;
33429
+ _context29.t0 = results;
33430
+ _context29.next = 6;
33333
33431
  return promises[i];
33334
33432
  case 6:
33335
- _context28.t1 = _context28.sent;
33336
- _context28.t0.push.call(_context28.t0, _context28.t1);
33433
+ _context29.t1 = _context29.sent;
33434
+ _context29.t0.push.call(_context29.t0, _context29.t1);
33337
33435
  price = results[0].price;
33338
33436
  j = 1;
33339
33437
  case 10:
33340
33438
  if (!(j < results.length)) {
33341
- _context28.next = 16;
33439
+ _context29.next = 16;
33342
33440
  break;
33343
33441
  }
33344
33442
  if (!(price !== results[j].price)) {
33345
- _context28.next = 13;
33443
+ _context29.next = 13;
33346
33444
  break;
33347
33445
  }
33348
- return _context28.abrupt("return", true);
33446
+ return _context29.abrupt("return", true);
33349
33447
  case 13:
33350
33448
  j++;
33351
- _context28.next = 10;
33449
+ _context29.next = 10;
33352
33450
  break;
33353
33451
  case 16:
33354
33452
  i++;
33355
- _context28.next = 2;
33453
+ _context29.next = 2;
33356
33454
  break;
33357
33455
  case 19:
33358
- return _context28.abrupt("return", false);
33456
+ return _context29.abrupt("return", false);
33359
33457
  case 20:
33360
33458
  case "end":
33361
- return _context28.stop();
33459
+ return _context29.stop();
33362
33460
  }
33363
- }, _callee26);
33461
+ }, _callee27);
33364
33462
  }));
33365
- function checkIfPriceDiffers(_x98) {
33463
+ function checkIfPriceDiffers(_x102) {
33366
33464
  return _checkIfPriceDiffers.apply(this, arguments);
33367
33465
  }
33368
33466
  return checkIfPriceDiffers;
@@ -33376,11 +33474,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33376
33474
  }, {
33377
33475
  key: "updateArticlesOptionStatesOfActSet",
33378
33476
  value: (function () {
33379
- 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) {
33380
33478
  var _Object$keys, _resultPlannerUpdate;
33381
33479
  var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle;
33382
- return _regeneratorRuntime.wrap(function _callee27$(_context29) {
33383
- while (1) switch (_context29.prev = _context29.next) {
33480
+ return _regeneratorRuntime.wrap(function _callee28$(_context30) {
33481
+ while (1) switch (_context30.prev = _context30.next) {
33384
33482
  case 0:
33385
33483
  elementsToDeleteById = [];
33386
33484
  targetArticlesToUpdateOnly = [];
@@ -33392,50 +33490,50 @@ var DivaSetHandler = /*#__PURE__*/function () {
33392
33490
  } else {
33393
33491
  targetArticlesToUpdateOnly = targetArticlesWithNewValues;
33394
33492
  }
33395
- _context29.next = 5;
33493
+ _context30.next = 5;
33396
33494
  return articleHandlerInstance.updateArticlesOptionStates(myValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
33397
33495
  case 5:
33398
- retValues = _context29.sent;
33496
+ retValues = _context30.sent;
33399
33497
  targetArticlesWithNewValues = retValues.targetArticlesToUpdate;
33400
33498
  if (!(retValues.partlistArticlesToLoad.length > 0)) {
33401
- _context29.next = 16;
33499
+ _context30.next = 16;
33402
33500
  break;
33403
33501
  }
33404
33502
  diff = targetArticlesToUpdateOnly.length - Object.keys(set.getDivaArticles()).length;
33405
33503
  if (!(diff == 0 || partlistDiff == diff)) {
33406
- _context29.next = 14;
33504
+ _context30.next = 14;
33407
33505
  break;
33408
33506
  }
33409
- _context29.next = 12;
33507
+ _context30.next = 12;
33410
33508
  return articleHandlerInstance.correctPartlistArticlesByGlobalRules(set, retValues.partlistArticlesToLoad, set.CatalogData.bundleRules, {
33411
33509
  doChange: false
33412
33510
  });
33413
33511
  case 12:
33414
- _context29.next = 16;
33512
+ _context30.next = 16;
33415
33513
  break;
33416
33514
  case 14:
33417
- _context29.next = 16;
33515
+ _context30.next = 16;
33418
33516
  return this.updateArticlesOptionStatesOfActSet(set, {}, targetArticlesWithNewValues, ignorePlanner, from, diff);
33419
33517
  case 16:
33420
33518
  if (!(from !== 'initializingPartlist')) {
33421
- _context29.next = 19;
33519
+ _context30.next = 19;
33422
33520
  break;
33423
33521
  }
33424
- _context29.next = 19;
33522
+ _context30.next = 19;
33425
33523
  return this.updateEdoArticles(set, retValues.newEDOExtraArticles);
33426
33524
  case 19:
33427
33525
  if (set.CatalogData.hasAlternateRenderings) set.CatalogData.updateAlternativeRenderings(set.getDivaArticles());
33428
33526
 
33429
33527
  //Update Planner - check if planner data changed
33430
33528
  if (!(!ignorePlanner && from != 'calcVariant')) {
33431
- _context29.next = 55;
33529
+ _context30.next = 55;
33432
33530
  break;
33433
33531
  }
33434
33532
  targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
33435
- _context29.next = 24;
33533
+ _context30.next = 24;
33436
33534
  return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
33437
33535
  case 24:
33438
- resultPlannerUpdate = _context29.sent;
33536
+ resultPlannerUpdate = _context30.sent;
33439
33537
  elementsToDeleteById = resultPlannerUpdate.elemIdsToDelete;
33440
33538
  for (i = 0; i < resultPlannerUpdate.elemIdsToDelete.length; i++) {
33441
33539
  articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
@@ -33445,35 +33543,35 @@ var DivaSetHandler = /*#__PURE__*/function () {
33445
33543
  }
33446
33544
  }
33447
33545
  if (!resultPlannerUpdate.doDeleteBackGrid) {
33448
- _context29.next = 34;
33546
+ _context30.next = 34;
33449
33547
  break;
33450
33548
  }
33451
- _context29.next = 30;
33549
+ _context30.next = 30;
33452
33550
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[0], false, resultPlannerUpdate.deletionType);
33453
33551
  case 30:
33454
- result = _context29.sent;
33552
+ result = _context30.sent;
33455
33553
  //Others are deleted recursive
33456
33554
  if (result.selectElementId) {
33457
33555
  resultPlannerUpdate.elementIdsToUpdateSelection = [result.selectElementId];
33458
33556
  }
33459
- _context29.next = 41;
33557
+ _context30.next = 41;
33460
33558
  break;
33461
33559
  case 34:
33462
33560
  i = 0;
33463
33561
  case 35:
33464
33562
  if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
33465
- _context29.next = 41;
33563
+ _context30.next = 41;
33466
33564
  break;
33467
33565
  }
33468
- _context29.next = 38;
33566
+ _context30.next = 38;
33469
33567
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
33470
33568
  case 38:
33471
33569
  i++;
33472
- _context29.next = 35;
33570
+ _context30.next = 35;
33473
33571
  break;
33474
33572
  case 41:
33475
33573
  if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
33476
- _context29.next = 54;
33574
+ _context30.next = 54;
33477
33575
  break;
33478
33576
  }
33479
33577
  //Todo copy these elements
@@ -33481,20 +33579,20 @@ var DivaSetHandler = /*#__PURE__*/function () {
33481
33579
  i = 0;
33482
33580
  case 44:
33483
33581
  if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
33484
- _context29.next = 52;
33582
+ _context30.next = 52;
33485
33583
  break;
33486
33584
  }
33487
- _context29.next = 47;
33585
+ _context30.next = 47;
33488
33586
  return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
33489
33587
  case 47:
33490
- newArticle = _context29.sent;
33588
+ newArticle = _context30.sent;
33491
33589
  articleCopyRelation.set(resultPlannerUpdate.elementIdToCopy[i], newArticle.basketId);
33492
33590
  case 49:
33493
33591
  i++;
33494
- _context29.next = 44;
33592
+ _context30.next = 44;
33495
33593
  break;
33496
33594
  case 52:
33497
- _context29.next = 54;
33595
+ _context30.next = 54;
33498
33596
  return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
33499
33597
  dpType: resultPlannerUpdate.copyDPType ? resultPlannerUpdate.copyDPType : 'NO',
33500
33598
  copyType: resultPlannerUpdate.copyType,
@@ -33507,18 +33605,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33507
33605
  if (from == 'FromViewClick' && (_Object$keys = Object.keys(myValues)) !== null && _Object$keys !== void 0 && _Object$keys.length) {
33508
33606
  this.confirmOptionsInMetric(set, [Object.keys(myValues)[0]]);
33509
33607
  }
33510
- return _context29.abrupt("return", {
33608
+ return _context30.abrupt("return", {
33511
33609
  articleCountChanged: elementsToDeleteById.length > 0,
33512
33610
  elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
33513
33611
  setId: set.getSetId()
33514
33612
  });
33515
33613
  case 57:
33516
33614
  case "end":
33517
- return _context29.stop();
33615
+ return _context30.stop();
33518
33616
  }
33519
- }, _callee27, this);
33617
+ }, _callee28, this);
33520
33618
  }));
33521
- function updateArticlesOptionStatesOfActSet(_x99, _x100, _x101, _x102, _x103, _x104) {
33619
+ function updateArticlesOptionStatesOfActSet(_x103, _x104, _x105, _x106, _x107, _x108) {
33522
33620
  return _updateArticlesOptionStatesOfActSet.apply(this, arguments);
33523
33621
  }
33524
33622
  return updateArticlesOptionStatesOfActSet;
@@ -33572,32 +33670,32 @@ var DivaSetHandler = /*#__PURE__*/function () {
33572
33670
  }, {
33573
33671
  key: "updateEdoArticles",
33574
33672
  value: function () {
33575
- var _updateEdoArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(set, edoArticlesToLoad) {
33673
+ var _updateEdoArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(set, edoArticlesToLoad) {
33576
33674
  var oldBasketIds, i, article, newArticles, _i7, _i8;
33577
- return _regeneratorRuntime.wrap(function _callee28$(_context30) {
33578
- while (1) switch (_context30.prev = _context30.next) {
33675
+ return _regeneratorRuntime.wrap(function _callee29$(_context31) {
33676
+ while (1) switch (_context31.prev = _context31.next) {
33579
33677
  case 0:
33580
33678
  if (!(set.edoExtraArticles.length > 0 || edoArticlesToLoad.length > 0)) {
33581
- _context30.next = 22;
33679
+ _context31.next = 22;
33582
33680
  break;
33583
33681
  }
33584
33682
  oldBasketIds = _toConsumableArray(set.edoExtraArticles);
33585
33683
  i = 0;
33586
33684
  case 3:
33587
33685
  if (!(i < set.edoExtraArticles.length)) {
33588
- _context30.next = 11;
33686
+ _context31.next = 11;
33589
33687
  break;
33590
33688
  }
33591
33689
  article = set.getArticleByBasketId(set.edoExtraArticles[i]);
33592
33690
  if (!article) {
33593
- _context30.next = 8;
33691
+ _context31.next = 8;
33594
33692
  break;
33595
33693
  }
33596
- _context30.next = 8;
33694
+ _context31.next = 8;
33597
33695
  return this.deleteElementFromSet(set, article);
33598
33696
  case 8:
33599
33697
  i++;
33600
- _context30.next = 3;
33698
+ _context31.next = 3;
33601
33699
  break;
33602
33700
  case 11:
33603
33701
  set.edoExtraArticles = [];
@@ -33605,18 +33703,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33605
33703
  _i7 = 0;
33606
33704
  case 14:
33607
33705
  if (!(_i7 < edoArticlesToLoad.length)) {
33608
- _context30.next = 21;
33706
+ _context31.next = 21;
33609
33707
  break;
33610
33708
  }
33611
- _context30.next = 17;
33709
+ _context31.next = 17;
33612
33710
  return this.addArticleToActSet(set, edoArticlesToLoad[_i7].ArticleCodex, _objectSpread$9(_objectSpread$9({}, edoArticlesToLoad[_i7]), {}, {
33613
33711
  basketId: oldBasketIds[_i7]
33614
33712
  }), true);
33615
33713
  case 17:
33616
- newArticles[_i7] = _context30.sent;
33714
+ newArticles[_i7] = _context31.sent;
33617
33715
  case 18:
33618
33716
  _i7++;
33619
- _context30.next = 14;
33717
+ _context31.next = 14;
33620
33718
  break;
33621
33719
  case 21:
33622
33720
  for (_i8 = 0; _i8 < newArticles.length; _i8++) {
@@ -33624,11 +33722,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33624
33722
  }
33625
33723
  case 22:
33626
33724
  case "end":
33627
- return _context30.stop();
33725
+ return _context31.stop();
33628
33726
  }
33629
- }, _callee28, this);
33727
+ }, _callee29, this);
33630
33728
  }));
33631
- function updateEdoArticles(_x105, _x106) {
33729
+ function updateEdoArticles(_x109, _x110) {
33632
33730
  return _updateEdoArticles.apply(this, arguments);
33633
33731
  }
33634
33732
  return updateEdoArticles;
@@ -33794,11 +33892,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33794
33892
  }, {
33795
33893
  key: "fillOrderLinesAndOrderSets",
33796
33894
  value: function () {
33797
- 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) {
33798
33896
  var _set$getMatchingProdu2, _set$getMatchingProdu3;
33799
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;
33800
- return _regeneratorRuntime.wrap(function _callee29$(_context31) {
33801
- while (1) switch (_context31.prev = _context31.next) {
33898
+ return _regeneratorRuntime.wrap(function _callee30$(_context32) {
33899
+ while (1) switch (_context32.prev = _context32.next) {
33802
33900
  case 0:
33803
33901
  orderSets = [];
33804
33902
  basketData = divaBasketHandler.actBasket;
@@ -33810,32 +33908,32 @@ var DivaSetHandler = /*#__PURE__*/function () {
33810
33908
  }
33811
33909
  basketData.MatchingProductId = set === null || set === void 0 || (_set$getMatchingProdu2 = set.getMatchingProduct()) === null || _set$getMatchingProdu2 === void 0 ? void 0 : _set$getMatchingProdu2._id;
33812
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();
33813
- _context31.t0 = _regeneratorRuntime.keys(sets);
33911
+ _context32.t0 = _regeneratorRuntime.keys(sets);
33814
33912
  case 8:
33815
- if ((_context31.t1 = _context31.t0()).done) {
33816
- _context31.next = 32;
33913
+ if ((_context32.t1 = _context32.t0()).done) {
33914
+ _context32.next = 32;
33817
33915
  break;
33818
33916
  }
33819
- key = _context31.t1.value;
33917
+ key = _context32.t1.value;
33820
33918
  _set = sets[key];
33821
33919
  catalogData = _set.CatalogData;
33822
33920
  articles = _set.getDivaArticles();
33823
- _context31.next = 15;
33921
+ _context32.next = 15;
33824
33922
  return this.getOrderSet(_set, catalogData, divaBasketHandler.actDivaNr, repairOnly, returnTo);
33825
33923
  case 15:
33826
- newOrderSet = _context31.sent;
33924
+ newOrderSet = _context32.sent;
33827
33925
  basketData.setIsPlanning(_set.SetType == 'PLANNING' ? '1' : '0');
33828
- _context31.next = 19;
33926
+ _context32.next = 19;
33829
33927
  return _set.getCustomDimensionsOfActSet();
33830
33928
  case 19:
33831
- customDimensions = _context31.sent;
33929
+ customDimensions = _context32.sent;
33832
33930
  OrderLinesOfActSet = articleHandlerInstance.getOrderLinesOfArticles(articles, customDimensions, repairOnly, !!((_set$basketConfigVari = _set.basketConfigVariants) !== null && _set$basketConfigVari !== void 0 && _set$basketConfigVari.length));
33833
33931
  articleHandlerInstance.checkForRoundingError(OrderLinesOfActSet, _set);
33834
33932
  if (OrderLinesOfActSet.length) {
33835
- _context31.next = 24;
33933
+ _context32.next = 24;
33836
33934
  break;
33837
33935
  }
33838
- return _context31.abrupt("continue", 8);
33936
+ return _context32.abrupt("continue", 8);
33839
33937
  case 24:
33840
33938
  OrderLinesOfActSet = divaBasketHandler.divaWWSHandler.repairWWSFlags(articles, OrderLinesOfActSet);
33841
33939
  if (newOrderSet.SetImage == '' && (_OrderLinesOfActSet$ = OrderLinesOfActSet[0]) !== null && _OrderLinesOfActSet$ !== void 0 && _OrderLinesOfActSet$.Image && _set.PlannerMode == 'No') {
@@ -33857,7 +33955,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33857
33955
  }
33858
33956
  newOrderSet.setOrderLines(OrderLinesOfActSet);
33859
33957
  orderSets.push(newOrderSet);
33860
- _context31.next = 8;
33958
+ _context32.next = 8;
33861
33959
  break;
33862
33960
  case 32:
33863
33961
  //fill diva3DProject for renderings & AR Converter
@@ -33865,7 +33963,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33865
33963
  i = 0;
33866
33964
  case 34:
33867
33965
  if (!(i < ((_basketData$OrderSets = basketData.OrderSets) === null || _basketData$OrderSets === void 0 ? void 0 : _basketData$OrderSets.length))) {
33868
- _context31.next = 49;
33966
+ _context32.next = 49;
33869
33967
  break;
33870
33968
  }
33871
33969
  oderSetsIsInActPlanning = false;
@@ -33873,18 +33971,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33873
33971
  j = 0;
33874
33972
  case 38:
33875
33973
  if (!(j < orderSets.length)) {
33876
- _context31.next = 45;
33974
+ _context32.next = 45;
33877
33975
  break;
33878
33976
  }
33879
33977
  if (!(orderSets[j].SetID == setId)) {
33880
- _context31.next = 42;
33978
+ _context32.next = 42;
33881
33979
  break;
33882
33980
  }
33883
33981
  oderSetsIsInActPlanning = true;
33884
- return _context31.abrupt("break", 45);
33982
+ return _context32.abrupt("break", 45);
33885
33983
  case 42:
33886
33984
  j++;
33887
- _context31.next = 38;
33985
+ _context32.next = 38;
33888
33986
  break;
33889
33987
  case 45:
33890
33988
  if (!oderSetsIsInActPlanning && !((_basketData$SetPlanne = basketData.SetPlannerInfos) !== null && _basketData$SetPlanne !== void 0 && _basketData$SetPlanne.InvolvedSetIds.includes(setId))) {
@@ -33892,7 +33990,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33892
33990
  }
33893
33991
  case 46:
33894
33992
  i++;
33895
- _context31.next = 34;
33993
+ _context32.next = 34;
33896
33994
  break;
33897
33995
  case 49:
33898
33996
  basketData.SetPlannerInfos = setPlanner ? this.getSetPlannerInfos(Object.keys(sets), orderSets) : undefined;
@@ -33901,14 +33999,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33901
33999
  } else {
33902
34000
  basketData.setOrderSets(orderSets);
33903
34001
  }
33904
- return _context31.abrupt("return", basketData);
34002
+ return _context32.abrupt("return", basketData);
33905
34003
  case 52:
33906
34004
  case "end":
33907
- return _context31.stop();
34005
+ return _context32.stop();
33908
34006
  }
33909
- }, _callee29, this);
34007
+ }, _callee30, this);
33910
34008
  }));
33911
- function fillOrderLinesAndOrderSets(_x107, _x108, _x109, _x110, _x111) {
34009
+ function fillOrderLinesAndOrderSets(_x111, _x112, _x113, _x114, _x115) {
33912
34010
  return _fillOrderLinesAndOrderSets.apply(this, arguments);
33913
34011
  }
33914
34012
  return fillOrderLinesAndOrderSets;
@@ -33992,11 +34090,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33992
34090
  }, {
33993
34091
  key: "getOrderSet",
33994
34092
  value: function () {
33995
- 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) {
33996
34094
  var _Object$values$, _set$getDivaArticles, _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
33997
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;
33998
- return _regeneratorRuntime.wrap(function _callee30$(_context32) {
33999
- while (1) switch (_context32.prev = _context32.next) {
34096
+ return _regeneratorRuntime.wrap(function _callee31$(_context33) {
34097
+ while (1) switch (_context33.prev = _context33.next) {
34000
34098
  case 0:
34001
34099
  dontGenerateImages = repairOnly || returnTo == 'DONT_SAVE_BASKET' || returnTo == 'TEST_CONFIGURATORLOGIC';
34002
34100
  DivaUtils.startSpanOfApm('GetSet3D und 2D Image');
@@ -34008,7 +34106,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
34008
34106
  hqRenderScript = undefined;
34009
34107
  dimensions = {};
34010
34108
  if (dontGenerateImages) {
34011
- _context32.next = 28;
34109
+ _context33.next = 28;
34012
34110
  break;
34013
34111
  }
34014
34112
  promise3D = this.getSetImage(set, typeof window === 'undefined');
@@ -34016,10 +34114,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
34016
34114
  if (!catalogData.dontSaveAlternativeRenderings && set.CatalogData.alternateRenderingsForSummary.length) {
34017
34115
  promise3DAlternate = this.getAlternateSetImages(set);
34018
34116
  }
34019
- _context32.next = 15;
34117
+ _context33.next = 15;
34020
34118
  return Promise.all([promise3D, promise2D, promise3DAlternate]);
34021
34119
  case 15:
34022
- _yield$Promise$all = _context32.sent;
34120
+ _yield$Promise$all = _context33.sent;
34023
34121
  _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 3);
34024
34122
  _yield$Promise$all2$ = _yield$Promise$all2[0];
34025
34123
  setImage = _yield$Promise$all2$.url;
@@ -34027,10 +34125,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
34027
34125
  urlToPlanning2D = _yield$Promise$all2[1];
34028
34126
  alternateSetImages = _yield$Promise$all2[2];
34029
34127
  promiseHQRenderScript = this.getHQRenderScript(set, divaNr);
34030
- _context32.next = 25;
34128
+ _context33.next = 25;
34031
34129
  return Promise.all([promiseHQRenderScript]);
34032
34130
  case 25:
34033
- _yield$Promise$all3 = _context32.sent;
34131
+ _yield$Promise$all3 = _context33.sent;
34034
34132
  _yield$Promise$all4 = _slicedToArray(_yield$Promise$all3, 1);
34035
34133
  hqRenderScript = _yield$Promise$all4[0];
34036
34134
  case 28:
@@ -34092,14 +34190,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
34092
34190
  MetaData: !((_set$basketConfigVari2 = set.basketConfigVariants) !== null && _set$basketConfigVari2 !== void 0 && _set$basketConfigVari2.length) ? set.MetaData : undefined,
34093
34191
  MetaData_locales: !((_set$basketConfigVari3 = set.basketConfigVariants) !== null && _set$basketConfigVari3 !== void 0 && _set$basketConfigVari3.length) ? set.MetaData_locales : undefined
34094
34192
  });
34095
- return _context32.abrupt("return", orderSet);
34193
+ return _context33.abrupt("return", orderSet);
34096
34194
  case 34:
34097
34195
  case "end":
34098
- return _context32.stop();
34196
+ return _context33.stop();
34099
34197
  }
34100
- }, _callee30, this);
34198
+ }, _callee31, this);
34101
34199
  }));
34102
- function getOrderSet(_x112, _x113, _x114, _x115, _x116) {
34200
+ function getOrderSet(_x116, _x117, _x118, _x119, _x120) {
34103
34201
  return _getOrderSet.apply(this, arguments);
34104
34202
  }
34105
34203
  return getOrderSet;
@@ -34112,31 +34210,31 @@ var DivaSetHandler = /*#__PURE__*/function () {
34112
34210
  }, {
34113
34211
  key: "getSetImage",
34114
34212
  value: (function () {
34115
- var _getSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(set, overwriteLastSavedRendering) {
34213
+ var _getSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(set, overwriteLastSavedRendering) {
34116
34214
  var is3D, _yield$set$plannerHan, dimensions, url;
34117
- return _regeneratorRuntime.wrap(function _callee31$(_context33) {
34118
- while (1) switch (_context33.prev = _context33.next) {
34215
+ return _regeneratorRuntime.wrap(function _callee32$(_context34) {
34216
+ while (1) switch (_context34.prev = _context34.next) {
34119
34217
  case 0:
34120
34218
  is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
34121
34219
  if (!is3D) {
34122
- _context33.next = 10;
34220
+ _context34.next = 10;
34123
34221
  break;
34124
34222
  }
34125
- _context33.next = 4;
34223
+ _context34.next = 4;
34126
34224
  return set.plannerHandler.saveSetImage(overwriteLastSavedRendering);
34127
34225
  case 4:
34128
- _context33.next = 6;
34226
+ _context34.next = 6;
34129
34227
  return set.plannerHandler.getSetImageAsUrl(set.getSetId());
34130
34228
  case 6:
34131
- _yield$set$plannerHan = _context33.sent;
34229
+ _yield$set$plannerHan = _context34.sent;
34132
34230
  dimensions = _yield$set$plannerHan.dimensions;
34133
34231
  url = _yield$set$plannerHan.url;
34134
- return _context33.abrupt("return", {
34232
+ return _context34.abrupt("return", {
34135
34233
  dimensions: dimensions,
34136
34234
  url: url
34137
34235
  });
34138
34236
  case 10:
34139
- return _context33.abrupt("return", {
34237
+ return _context34.abrupt("return", {
34140
34238
  dimensions: {
34141
34239
  w: undefined,
34142
34240
  h: undefined,
@@ -34145,11 +34243,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
34145
34243
  });
34146
34244
  case 11:
34147
34245
  case "end":
34148
- return _context33.stop();
34246
+ return _context34.stop();
34149
34247
  }
34150
- }, _callee31);
34248
+ }, _callee32);
34151
34249
  }));
34152
- function getSetImage(_x117, _x118) {
34250
+ function getSetImage(_x121, _x122) {
34153
34251
  return _getSetImage.apply(this, arguments);
34154
34252
  }
34155
34253
  return getSetImage;
@@ -34157,45 +34255,45 @@ var DivaSetHandler = /*#__PURE__*/function () {
34157
34255
  }, {
34158
34256
  key: "getHQRenderScript",
34159
34257
  value: function () {
34160
- var _getHQRenderScript = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(set, divaNr) {
34258
+ var _getHQRenderScript = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(set, divaNr) {
34161
34259
  var is3D, hqRenderScript, createdHQRenderScript;
34162
- return _regeneratorRuntime.wrap(function _callee32$(_context34) {
34163
- while (1) switch (_context34.prev = _context34.next) {
34260
+ return _regeneratorRuntime.wrap(function _callee33$(_context35) {
34261
+ while (1) switch (_context35.prev = _context35.next) {
34164
34262
  case 0:
34165
34263
  //if not 3d
34166
34264
  is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
34167
34265
  if (is3D) {
34168
- _context34.next = 3;
34266
+ _context35.next = 3;
34169
34267
  break;
34170
34268
  }
34171
- return _context34.abrupt("return");
34269
+ return _context35.abrupt("return");
34172
34270
  case 3:
34173
- _context34.next = 5;
34271
+ _context35.next = 5;
34174
34272
  return set.plannerHandler.saveSetHQRenderScript();
34175
34273
  case 5:
34176
34274
  hqRenderScript = set.plannerHandler.getSetHQRenderScript();
34177
34275
  if (hqRenderScript) {
34178
- _context34.next = 8;
34276
+ _context35.next = 8;
34179
34277
  break;
34180
34278
  }
34181
- return _context34.abrupt("return");
34279
+ return _context35.abrupt("return");
34182
34280
  case 8:
34183
- _context34.next = 10;
34281
+ _context35.next = 10;
34184
34282
  return set.api.postHQRenderScript({
34185
34283
  divaNr: divaNr,
34186
34284
  hqRenderscript: hqRenderScript,
34187
34285
  organization: set.api.OrganizationId
34188
34286
  });
34189
34287
  case 10:
34190
- createdHQRenderScript = _context34.sent;
34191
- return _context34.abrupt("return", createdHQRenderScript);
34288
+ createdHQRenderScript = _context35.sent;
34289
+ return _context35.abrupt("return", createdHQRenderScript);
34192
34290
  case 12:
34193
34291
  case "end":
34194
- return _context34.stop();
34292
+ return _context35.stop();
34195
34293
  }
34196
- }, _callee32);
34294
+ }, _callee33);
34197
34295
  }));
34198
- function getHQRenderScript(_x119, _x120) {
34296
+ function getHQRenderScript(_x123, _x124) {
34199
34297
  return _getHQRenderScript.apply(this, arguments);
34200
34298
  }
34201
34299
  return getHQRenderScript;
@@ -34209,34 +34307,34 @@ var DivaSetHandler = /*#__PURE__*/function () {
34209
34307
  }, {
34210
34308
  key: "getAlternateSetImages",
34211
34309
  value: (function () {
34212
- var _getAlternateSetImages = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(set) {
34310
+ var _getAlternateSetImages = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(set) {
34213
34311
  var is2D, catalogData, setImages;
34214
- return _regeneratorRuntime.wrap(function _callee33$(_context35) {
34215
- while (1) switch (_context35.prev = _context35.next) {
34312
+ return _regeneratorRuntime.wrap(function _callee34$(_context36) {
34313
+ while (1) switch (_context36.prev = _context36.next) {
34216
34314
  case 0:
34217
34315
  is2D = !['3DImage', '3DCOMB', 'BoxPlanner'].includes(set.getPlannerMode());
34218
34316
  if (!(is2D || set.onlyRunLogic)) {
34219
- _context35.next = 3;
34317
+ _context36.next = 3;
34220
34318
  break;
34221
34319
  }
34222
- return _context35.abrupt("return", []);
34320
+ return _context36.abrupt("return", []);
34223
34321
  case 3:
34224
34322
  catalogData = set.CatalogData;
34225
- _context35.next = 6;
34323
+ _context36.next = 6;
34226
34324
  return set.plannerHandler.saveAlternateSetImages(catalogData.catalogCodex, catalogData.catalogGuid);
34227
34325
  case 6:
34228
- _context35.next = 8;
34326
+ _context36.next = 8;
34229
34327
  return set.plannerHandler.getAlternateSetImagesAsSetImageData(set.getSetId());
34230
34328
  case 8:
34231
- setImages = _context35.sent;
34232
- return _context35.abrupt("return", setImages);
34329
+ setImages = _context36.sent;
34330
+ return _context36.abrupt("return", setImages);
34233
34331
  case 10:
34234
34332
  case "end":
34235
- return _context35.stop();
34333
+ return _context36.stop();
34236
34334
  }
34237
- }, _callee33);
34335
+ }, _callee34);
34238
34336
  }));
34239
- function getAlternateSetImages(_x121) {
34337
+ function getAlternateSetImages(_x125) {
34240
34338
  return _getAlternateSetImages.apply(this, arguments);
34241
34339
  }
34242
34340
  return getAlternateSetImages;
@@ -34244,30 +34342,30 @@ var DivaSetHandler = /*#__PURE__*/function () {
34244
34342
  }, {
34245
34343
  key: "get2DSetImage",
34246
34344
  value: function () {
34247
- var _get2DSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(set) {
34345
+ var _get2DSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(set) {
34248
34346
  var urlToPlanning2D, catalogData, planning2DAsJPGBase64;
34249
- return _regeneratorRuntime.wrap(function _callee34$(_context36) {
34250
- while (1) switch (_context36.prev = _context36.next) {
34347
+ return _regeneratorRuntime.wrap(function _callee35$(_context37) {
34348
+ while (1) switch (_context37.prev = _context37.next) {
34251
34349
  case 0:
34252
34350
  urlToPlanning2D = undefined, catalogData = set.CatalogData;
34253
34351
  planning2DAsJPGBase64 = set.getPlanning2DAsJpg();
34254
34352
  if (!(planning2DAsJPGBase64 != undefined && planning2DAsJPGBase64 != '' && planning2DAsJPGBase64 != 'data:,')) {
34255
- _context36.next = 6;
34353
+ _context37.next = 6;
34256
34354
  break;
34257
34355
  }
34258
- _context36.next = 5;
34356
+ _context37.next = 5;
34259
34357
  return set.plannerHandler.saveSet2DImage(set.getSetId(), catalogData.catalogCodex, catalogData.catalogGuid, planning2DAsJPGBase64);
34260
34358
  case 5:
34261
- urlToPlanning2D = _context36.sent;
34359
+ urlToPlanning2D = _context37.sent;
34262
34360
  case 6:
34263
- return _context36.abrupt("return", urlToPlanning2D);
34361
+ return _context37.abrupt("return", urlToPlanning2D);
34264
34362
  case 7:
34265
34363
  case "end":
34266
- return _context36.stop();
34364
+ return _context37.stop();
34267
34365
  }
34268
- }, _callee34);
34366
+ }, _callee35);
34269
34367
  }));
34270
- function get2DSetImage(_x122) {
34368
+ function get2DSetImage(_x126) {
34271
34369
  return _get2DSetImage.apply(this, arguments);
34272
34370
  }
34273
34371
  return get2DSetImage;
@@ -34307,25 +34405,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
34307
34405
  }, {
34308
34406
  key: "addOrderSetArticlesToExistingSet",
34309
34407
  value: function () {
34310
- var _addOrderSetArticlesToExistingSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(set, orderSet, lastSetToInitialize) {
34311
- return _regeneratorRuntime.wrap(function _callee35$(_context37) {
34312
- 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) {
34313
34411
  case 0:
34314
34412
  //TODO: GLOBAL STUFF
34315
34413
  //this.updateActSet(set);
34316
34414
  orderSet.changeBasketIds();
34317
- _context37.next = 3;
34415
+ _context38.next = 3;
34318
34416
  return this.initOrderLineArticles(set, orderSet);
34319
34417
  case 3:
34320
- _context37.next = 5;
34418
+ _context38.next = 5;
34321
34419
  return set.plannerHandler.extendSet(set, orderSet.SetPlanData, lastSetToInitialize);
34322
34420
  case 5:
34323
34421
  case "end":
34324
- return _context37.stop();
34422
+ return _context38.stop();
34325
34423
  }
34326
- }, _callee35, this);
34424
+ }, _callee36, this);
34327
34425
  }));
34328
- function addOrderSetArticlesToExistingSet(_x123, _x124, _x125) {
34426
+ function addOrderSetArticlesToExistingSet(_x127, _x128, _x129) {
34329
34427
  return _addOrderSetArticlesToExistingSet.apply(this, arguments);
34330
34428
  }
34331
34429
  return addOrderSetArticlesToExistingSet;
@@ -35376,7 +35474,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35376
35474
  break;
35377
35475
  case 3:
35378
35476
  _context12.next = 5;
35379
- return import('./PfisterWWSHandler-b7dd5d62.js');
35477
+ return import('./PfisterWWSHandler-7f7996a7.js');
35380
35478
  case 5:
35381
35479
  _yield$import = _context12.sent;
35382
35480
  PfisterWWSHandler = _yield$import["default"];
@@ -35384,7 +35482,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35384
35482
  return _context12.abrupt("break", 27);
35385
35483
  case 9:
35386
35484
  _context12.next = 11;
35387
- return import('./LiviqueWWSHandler-2f2c63a7.js');
35485
+ return import('./LiviqueWWSHandler-e63f276f.js');
35388
35486
  case 11:
35389
35487
  _yield$import2 = _context12.sent;
35390
35488
  LiviqueWWSHandler = _yield$import2["default"];
@@ -35392,7 +35490,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35392
35490
  return _context12.abrupt("break", 27);
35393
35491
  case 15:
35394
35492
  _context12.next = 17;
35395
- return import('./SeriousBasketHandler-a0a3258f.js');
35493
+ return import('./SeriousBasketHandler-1a4186bd.js');
35396
35494
  case 17:
35397
35495
  _yield$import3 = _context12.sent;
35398
35496
  SeriousWWSHandler = _yield$import3["default"];
@@ -35400,7 +35498,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35400
35498
  return _context12.abrupt("break", 27);
35401
35499
  case 21:
35402
35500
  _context12.next = 23;
35403
- return import('./StandardWWSHandler-8b675fe0.js');
35501
+ return import('./StandardWWSHandler-a5d84eb8.js');
35404
35502
  case 23:
35405
35503
  _yield$import4 = _context12.sent;
35406
35504
  StandardWWSHandler = _yield$import4["default"];
@@ -36843,7 +36941,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36843
36941
  while (1) switch (_context3.prev = _context3.next) {
36844
36942
  case 0:
36845
36943
  _context3.next = 2;
36846
- return import('./Host3DSignalR-2bfc7356.js');
36944
+ return import('./Host3DSignalR-b772e3b5.js');
36847
36945
  case 2:
36848
36946
  _yield$import = _context3.sent;
36849
36947
  Host3DSignalR = _yield$import["default"];
@@ -38408,7 +38506,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38408
38506
  break;
38409
38507
  case 8:
38410
38508
  _context4.next = 10;
38411
- return import('./DivaStandardPlanner-fd494faa.js');
38509
+ return import('./DivaStandardPlanner-50298918.js');
38412
38510
  case 10:
38413
38511
  _yield$import = _context4.sent;
38414
38512
  DivaStandardPlanner = _yield$import["default"];
@@ -38419,7 +38517,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38419
38517
  return _context4.abrupt("break", 21);
38420
38518
  case 15:
38421
38519
  _context4.next = 17;
38422
- return import('./DivaBoxPlanner-ecd0e7d9.js');
38520
+ return import('./DivaBoxPlanner-ef50f3c1.js');
38423
38521
  case 17:
38424
38522
  _yield$import2 = _context4.sent;
38425
38523
  DivaBoxPlanner = _yield$import2["default"];
@@ -39413,6 +39511,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39413
39511
  _classCallCheck(this, DivaWebPlanner);
39414
39512
  _defineProperty(this, "divaBasketHandler", void 0);
39415
39513
  _defineProperty(this, "openLeafeltBarrier", void 0);
39514
+ _defineProperty(this, "openContactForm", void 0);
39416
39515
  _defineProperty(this, "onClickAddToBasket", void 0);
39417
39516
  //Öffentliche Funktionen für die View
39418
39517
  _defineProperty(this, "initPlannerView", void 0);
@@ -39805,32 +39904,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39805
39904
  return _ref5.apply(this, arguments);
39806
39905
  };
39807
39906
  }());
39808
- _defineProperty(this, "moveShelfItem", function (paletteId, grid, initialIndex, finalIndex, configStepKey) {
39809
- var _this$updateViewPlann4;
39810
- var set = _this.actSet();
39811
- var result = setHandlerInstance.moveShelfItem(set, grid, initialIndex, finalIndex);
39812
- if (result == 'RESETTED_CELLS') {
39813
- var _this$updatePlannerMs, _this$i18n3;
39814
- (_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);
39815
- }
39816
- _this.updateConfigStructure();
39817
- _this.loadShelfPlannerItems(paletteId, configStepKey, 'move sheld');
39818
- (_this$updateViewPlann4 = _this.updateViewPlannerElements) === null || _this$updateViewPlann4 === void 0 || _this$updateViewPlann4.call(_this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
39819
- _this.updatePlannerView('MOVE_SHELF_ITEM');
39820
- });
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
+ }());
39821
39936
  _defineProperty(this, "moveDoors", function (movedDoor, targetDoor) {
39822
39937
  setHandlerInstance.moveDoors(_this.actSet(), movedDoor, targetDoor);
39823
39938
  _this.updatePlannerView('MOVE_DOORS');
39824
39939
  });
39825
39940
  _defineProperty(this, "deleteAccessorieOnShelfPlanner", /*#__PURE__*/function () {
39826
- 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) {
39827
39942
  var _this$updateViewPlann5;
39828
39943
  var set;
39829
- return _regeneratorRuntime.wrap(function _callee6$(_context6) {
39830
- while (1) switch (_context6.prev = _context6.next) {
39944
+ return _regeneratorRuntime.wrap(function _callee7$(_context7) {
39945
+ while (1) switch (_context7.prev = _context7.next) {
39831
39946
  case 0:
39832
39947
  set = _this.actSet();
39833
- _context6.next = 3;
39948
+ _context7.next = 3;
39834
39949
  return setHandlerInstance.deleteAccessorieOnShelfPlanner(set, gridIndex, cellIndex, parentBasketId);
39835
39950
  case 3:
39836
39951
  _this.updateConfigStructure();
@@ -39843,12 +39958,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39843
39958
  _this.plannerChangeLog('onDeletePlanner');
39844
39959
  case 11:
39845
39960
  case "end":
39846
- return _context6.stop();
39961
+ return _context7.stop();
39847
39962
  }
39848
- }, _callee6);
39963
+ }, _callee7);
39849
39964
  }));
39850
- return function (_x18, _x19, _x20, _x21, _x22) {
39851
- return _ref6.apply(this, arguments);
39965
+ return function (_x23, _x24, _x25, _x26, _x27) {
39966
+ return _ref7.apply(this, arguments);
39852
39967
  };
39853
39968
  }());
39854
39969
  /**
@@ -39859,12 +39974,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39859
39974
  * @param transState
39860
39975
  */
39861
39976
  _defineProperty(this, "updatePlannerTrans", /*#__PURE__*/function () {
39862
- 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) {
39863
39978
  var _this$updateElementSe3;
39864
- return _regeneratorRuntime.wrap(function _callee7$(_context7) {
39865
- while (1) switch (_context7.prev = _context7.next) {
39979
+ return _regeneratorRuntime.wrap(function _callee8$(_context8) {
39980
+ while (1) switch (_context8.prev = _context8.next) {
39866
39981
  case 0:
39867
- _context7.next = 2;
39982
+ _context8.next = 2;
39868
39983
  return setHandlerInstance.updatePlannerTrans(_this.actSet(), plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance);
39869
39984
  case 2:
39870
39985
  if (transState == 'END') {
@@ -39873,12 +39988,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39873
39988
  }
39874
39989
  case 3:
39875
39990
  case "end":
39876
- return _context7.stop();
39991
+ return _context8.stop();
39877
39992
  }
39878
- }, _callee7);
39993
+ }, _callee8);
39879
39994
  }));
39880
- return function (_x23, _x24, _x25, _x26, _x27, _x28, _x29) {
39881
- return _ref7.apply(this, arguments);
39995
+ return function (_x28, _x29, _x30, _x31, _x32, _x33, _x34) {
39996
+ return _ref8.apply(this, arguments);
39882
39997
  };
39883
39998
  }());
39884
39999
  /**
@@ -39897,18 +40012,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39897
40012
  }
39898
40013
  });
39899
40014
  _defineProperty(this, "updateAccessoireQuantity", /*#__PURE__*/function () {
39900
- 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) {
39901
40016
  var _this$actions11, _this$actions11$toggl, _this$actions12, _this$actions12$toggl;
39902
40017
  var set, ret;
39903
- return _regeneratorRuntime.wrap(function _callee8$(_context8) {
39904
- while (1) switch (_context8.prev = _context8.next) {
40018
+ return _regeneratorRuntime.wrap(function _callee9$(_context9) {
40019
+ while (1) switch (_context9.prev = _context9.next) {
39905
40020
  case 0:
39906
40021
  set = _this.actSet();
39907
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);
39908
- _context8.next = 4;
40023
+ _context9.next = 4;
39909
40024
  return setHandlerInstance.updateAccessoireQuantity(set, accessoireItem, relatedToBasketId, newQuantity, forceConfigSingle);
39910
40025
  case 4:
39911
- ret = _context8.sent;
40026
+ ret = _context9.sent;
39912
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);
39913
40028
  if (ret.somethingChanged) _this.updateConfigStructure();
39914
40029
  _this.updatePlannerView('UPDATE_ACC_QUANTITY');
@@ -39918,25 +40033,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39918
40033
  _this.plannerChangeLog('onUpdateAccessoireQuantity');
39919
40034
  case 12:
39920
40035
  case "end":
39921
- return _context8.stop();
40036
+ return _context9.stop();
39922
40037
  }
39923
- }, _callee8);
40038
+ }, _callee9);
39924
40039
  }));
39925
- return function (_x30, _x31, _x32, _x33) {
39926
- return _ref8.apply(this, arguments);
40040
+ return function (_x35, _x36, _x37, _x38) {
40041
+ return _ref9.apply(this, arguments);
39927
40042
  };
39928
40043
  }());
39929
40044
  _defineProperty(this, "deleteAccessoire", /*#__PURE__*/function () {
39930
- var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(articleCodex, parentBasketId) {
40045
+ var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(articleCodex, parentBasketId) {
39931
40046
  var set, wasDeleted, _this$updateViewPlann6;
39932
- return _regeneratorRuntime.wrap(function _callee9$(_context9) {
39933
- while (1) switch (_context9.prev = _context9.next) {
40047
+ return _regeneratorRuntime.wrap(function _callee10$(_context10) {
40048
+ while (1) switch (_context10.prev = _context10.next) {
39934
40049
  case 0:
39935
40050
  set = _this.actSet();
39936
- _context9.next = 3;
40051
+ _context10.next = 3;
39937
40052
  return setHandlerInstance.deleteAccessoire(set, articleCodex, parentBasketId);
39938
40053
  case 3:
39939
- wasDeleted = _context9.sent;
40054
+ wasDeleted = _context10.sent;
39940
40055
  if (wasDeleted) {
39941
40056
  _this.updateConfigStructure();
39942
40057
  (_this$updateViewPlann6 = _this.updateViewPlannerElements) === null || _this$updateViewPlann6 === void 0 || _this$updateViewPlann6.call(_this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
@@ -39946,15 +40061,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39946
40061
  }
39947
40062
  _this.checkMatchingProducts('onAccessoireDelete');
39948
40063
  _this.plannerChangeLog('onDeletePlanner');
39949
- return _context9.abrupt("return", wasDeleted);
40064
+ return _context10.abrupt("return", wasDeleted);
39950
40065
  case 8:
39951
40066
  case "end":
39952
- return _context9.stop();
40067
+ return _context10.stop();
39953
40068
  }
39954
- }, _callee9);
40069
+ }, _callee10);
39955
40070
  }));
39956
- return function (_x34, _x35) {
39957
- return _ref9.apply(this, arguments);
40071
+ return function (_x39, _x40) {
40072
+ return _ref10.apply(this, arguments);
39958
40073
  };
39959
40074
  }());
39960
40075
  _defineProperty(this, "loadPaletteInfos", function (configStepKey, activeArticles, targetArticles) {
@@ -39977,13 +40092,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39977
40092
  * @param configStepKey act ConfigStep
39978
40093
  */
39979
40094
  _defineProperty(this, "configSingleIsChanged", /*#__PURE__*/function () {
39980
- 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) {
39981
40096
  var set;
39982
- return _regeneratorRuntime.wrap(function _callee10$(_context10) {
39983
- while (1) switch (_context10.prev = _context10.next) {
40097
+ return _regeneratorRuntime.wrap(function _callee11$(_context11) {
40098
+ while (1) switch (_context11.prev = _context11.next) {
39984
40099
  case 0:
39985
40100
  set = _this.actSet();
39986
- _context10.next = 3;
40101
+ _context11.next = 3;
39987
40102
  return setHandlerInstance.configSingleIsChanged(set, doConfigSingle, groupedOptions, groupedArticles);
39988
40103
  case 3:
39989
40104
  _this.updatePriceInView();
@@ -39993,15 +40108,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39993
40108
  configStepKey = setHandlerInstance.getNewConfigStepKeyInOption(set, configStepKey, optionCodex, tabGroupKey);
39994
40109
  _this.updatePlannerView('CONFIG_SINGLE_IS_CHANGED');
39995
40110
  }
39996
- return _context10.abrupt("return", configStepKey);
40111
+ return _context11.abrupt("return", configStepKey);
39997
40112
  case 7:
39998
40113
  case "end":
39999
- return _context10.stop();
40114
+ return _context11.stop();
40000
40115
  }
40001
- }, _callee10);
40116
+ }, _callee11);
40002
40117
  }));
40003
- return function (_x36, _x37, _x38, _x39, _x40, _x41) {
40004
- return _ref10.apply(this, arguments);
40118
+ return function (_x41, _x42, _x43, _x44, _x45, _x46) {
40119
+ return _ref11.apply(this, arguments);
40005
40120
  };
40006
40121
  }());
40007
40122
  /**
@@ -40015,23 +40130,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40015
40130
  */
40016
40131
  //onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
40017
40132
  _defineProperty(this, "doConfigure", /*#__PURE__*/function () {
40018
- 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) {
40019
40134
  var _this$actions13, _this$actions13$toggl, _this$actions14, _this$actions14$toggl;
40020
- var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4, info;
40021
- return _regeneratorRuntime.wrap(function _callee11$(_context11) {
40022
- 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) {
40023
40138
  case 0:
40024
40139
  set = _this.actSet();
40025
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);
40026
- _context11.next = 4;
40141
+ _context12.next = 4;
40027
40142
  return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, myValues, targetArticles, undefined, 'FromViewClick');
40028
40143
  case 4:
40029
- returnValues = _context11.sent;
40144
+ returnValues = _context12.sent;
40030
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);
40031
40146
  structure = setHandlerInstance.loadConfigStructureOfActSet(set, _this.getCurPlannerType());
40032
40147
  _this.checkMatchingProducts('onConfig');
40033
40148
  if (dontUpdatePlannerView) {
40034
- _context11.next = 18;
40149
+ _context12.next = 18;
40035
40150
  break;
40036
40151
  }
40037
40152
  _this.updateConfiguratorStructure(structure);
@@ -40045,81 +40160,79 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40045
40160
  _this.updateViewButtonsDependigOnConfigStructure();
40046
40161
  _this.updatePlannerView('DO_CONFIGURE', myValues);
40047
40162
  _this.updateWebConfiguratorTitle();
40048
- _context11.next = 18;
40163
+ _context12.next = 18;
40049
40164
  return _this.getFreePlacesOnGrids(undefined, 'doConfigure');
40050
40165
  case 18:
40051
40166
  if (dontCallEvents) {
40052
- _context11.next = 21;
40167
+ _context12.next = 21;
40053
40168
  break;
40054
40169
  }
40055
- _context11.next = 21;
40170
+ _context12.next = 21;
40056
40171
  return _this.fillBaksetforOnWebPlanerConfigChange(myValues);
40057
40172
  case 21:
40058
40173
  _this.configuratorChangeLog('onConfiguratorStep', myValues);
40059
- info = setHandlerInstance.getPlannerInteractionInformation(set);
40060
- if (info) LOG$1.debug(info.boxPlannerInteractionInformationPerElement.keys.length.toString());
40061
- case 24:
40174
+ case 22:
40062
40175
  case "end":
40063
- return _context11.stop();
40176
+ return _context12.stop();
40064
40177
  }
40065
- }, _callee11);
40178
+ }, _callee12);
40066
40179
  }));
40067
- return function (_x42, _x43, _x44, _x45) {
40068
- return _ref11.apply(this, arguments);
40180
+ return function (_x47, _x48, _x49, _x50) {
40181
+ return _ref12.apply(this, arguments);
40069
40182
  };
40070
40183
  }());
40071
40184
  _defineProperty(this, "fillBaksetforOnWebPlanerConfigChange", /*#__PURE__*/function () {
40072
- var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(myValues, isInit) {
40185
+ var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(myValues, isInit) {
40073
40186
  var _myValues;
40074
40187
  var set, articles, article;
40075
- return _regeneratorRuntime.wrap(function _callee12$(_context12) {
40076
- while (1) switch (_context12.prev = _context12.next) {
40188
+ return _regeneratorRuntime.wrap(function _callee13$(_context13) {
40189
+ while (1) switch (_context13.prev = _context13.next) {
40077
40190
  case 0:
40078
40191
  if (_this.eventIsManagedByClient('onWebPlanerConfigChange')) {
40079
- _context12.next = 2;
40192
+ _context13.next = 2;
40080
40193
  break;
40081
40194
  }
40082
- return _context12.abrupt("return");
40195
+ return _context13.abrupt("return");
40083
40196
  case 2:
40084
40197
  set = _this.actSet();
40085
40198
  if (set) {
40086
- _context12.next = 5;
40199
+ _context13.next = 5;
40087
40200
  break;
40088
40201
  }
40089
- return _context12.abrupt("return");
40202
+ return _context13.abrupt("return");
40090
40203
  case 5:
40091
40204
  if (myValues) {
40092
- _context12.next = 11;
40205
+ _context13.next = 11;
40093
40206
  break;
40094
40207
  }
40095
40208
  //get first option of the first article
40096
40209
  articles = set.getDivaArticles();
40097
40210
  article = articles[Object.keys(articles)[0]];
40098
40211
  if (article) {
40099
- _context12.next = 10;
40212
+ _context13.next = 10;
40100
40213
  break;
40101
40214
  }
40102
- return _context12.abrupt("return");
40215
+ return _context13.abrupt("return");
40103
40216
  case 10:
40104
40217
  myValues = article === null || article === void 0 ? void 0 : article.VariantValuesWithoutFreetext;
40105
40218
  case 11:
40106
- _context12.t0 = _this.divaBasketHandler;
40107
- _context12.t1 = set;
40108
- _context12.next = 15;
40219
+ _context13.t0 = _this.divaBasketHandler;
40220
+ _context13.t1 = set;
40221
+ _context13.next = 15;
40109
40222
  return setHandlerInstance.fillOrderLinesAndOrderSets(_this.sets, _this.divaBasketHandler, true, _this.doAllowSetPlanner(), _this.ReturnTo);
40110
40223
  case 15:
40111
- _context12.t2 = _context12.sent;
40112
- _context12.t3 = Object.keys((_myValues = myValues) !== null && _myValues !== void 0 ? _myValues : {});
40113
- _context12.t4 = isInit;
40114
- 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));
40115
40228
  case 19:
40116
40229
  case "end":
40117
- return _context12.stop();
40230
+ return _context13.stop();
40118
40231
  }
40119
- }, _callee12);
40232
+ }, _callee13);
40120
40233
  }));
40121
- return function (_x46, _x47) {
40122
- return _ref12.apply(this, arguments);
40234
+ return function (_x51, _x52) {
40235
+ return _ref13.apply(this, arguments);
40123
40236
  };
40124
40237
  }());
40125
40238
  _defineProperty(this, "getPosNr", function (basketId) {
@@ -40157,10 +40270,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40157
40270
  return _createClass(DivaWebPlanner, [{
40158
40271
  key: "initialize",
40159
40272
  value: function () {
40160
- var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {
40273
+ var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
40161
40274
  var viewReadyPromise, loadSuccessful, _this$actions16, _set$getDivaArticles, _this$actions15, _this$actions15$toggl, initSetState, set, oldProductId, result, _this$actions17, catalogData, initializationId, _this$plannerConfig$a;
40162
- return _regeneratorRuntime.wrap(function _callee13$(_context13) {
40163
- while (1) switch (_context13.prev = _context13.next) {
40275
+ return _regeneratorRuntime.wrap(function _callee14$(_context14) {
40276
+ while (1) switch (_context14.prev = _context14.next) {
40164
40277
  case 0:
40165
40278
  this.api = new DivaApiHandler(this.plannerConfig, this.handler);
40166
40279
  this.api.setI18n(this.i18n);
@@ -40174,58 +40287,58 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40174
40287
  warningTime: 2000,
40175
40288
  errorTime: 4000
40176
40289
  });
40177
- _context13.next = 8;
40290
+ _context14.next = 8;
40178
40291
  return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
40179
40292
  case 8:
40180
40293
  this.plannerHandler = new DivaPlannerHandler(false);
40181
40294
  viewReadyPromise = this.initViewApiDependencies();
40182
- _context13.next = 12;
40295
+ _context14.next = 12;
40183
40296
  return this.divaBasketHandler.initializeBasket(this.api);
40184
40297
  case 12:
40185
- loadSuccessful = _context13.sent;
40298
+ loadSuccessful = _context14.sent;
40186
40299
  if (this.plannerConfig.configuratorSessionId === undefined && (!this.divaBasketHandler.hasConfiguratorSessionIdGetter || DivaUtils.businessMetrics.getConfiguratorSessionId() === undefined)) {
40187
40300
  DivaUtils.businessMetrics.setConfiguratorSessionId();
40188
40301
  }
40189
40302
  if (!loadSuccessful) {
40190
- _context13.next = 56;
40303
+ _context14.next = 56;
40191
40304
  break;
40192
40305
  }
40193
40306
  if (!(typeof loadSuccessful != 'boolean')) {
40194
- _context13.next = 24;
40307
+ _context14.next = 24;
40195
40308
  break;
40196
40309
  }
40197
40310
  if (!(loadSuccessful.type == 'ProductList')) {
40198
- _context13.next = 24;
40311
+ _context14.next = 24;
40199
40312
  break;
40200
40313
  }
40201
- _context13.next = 19;
40314
+ _context14.next = 19;
40202
40315
  return viewReadyPromise;
40203
40316
  case 19:
40204
- _context13.next = 21;
40317
+ _context14.next = 21;
40205
40318
  return this.initView();
40206
40319
  case 21:
40207
40320
  this.subscribeToWebPlannerEvents();
40208
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);
40209
- return _context13.abrupt("return", true);
40322
+ return _context14.abrupt("return", true);
40210
40323
  case 24:
40211
40324
  this.divaNr = this.divaBasketHandler.actDivaNr;
40212
40325
  initSetState = this.getInitStateForSet();
40213
40326
  this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
40214
- _context13.next = 29;
40327
+ _context14.next = 29;
40215
40328
  return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
40216
40329
  case 29:
40217
40330
  set = this.actSet();
40218
40331
  oldProductId = this.divaBasketHandler.actBasket.MatchingProductId || this.divaBasketHandler.actBasket.OrigProductId;
40219
40332
  if (!(oldProductId && set && set !== null && set !== void 0 && set.api.doCheckForProductsPrice())) {
40220
- _context13.next = 38;
40333
+ _context14.next = 38;
40221
40334
  break;
40222
40335
  }
40223
- _context13.next = 34;
40336
+ _context14.next = 34;
40224
40337
  return this.divaBasketHandler.getProduct(this.api, oldProductId);
40225
40338
  case 34:
40226
- result = _context13.sent;
40339
+ result = _context14.sent;
40227
40340
  if (result) productHandlerInstance.handleFountMatchingProducts(set, [result], set.setHash);
40228
- _context13.next = 39;
40341
+ _context14.next = 39;
40229
40342
  break;
40230
40343
  case 38:
40231
40344
  if (typeof loadSuccessful != 'boolean' && set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
@@ -40234,10 +40347,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40234
40347
  }
40235
40348
  }
40236
40349
  case 39:
40237
- _context13.next = 41;
40350
+ _context14.next = 41;
40238
40351
  return viewReadyPromise;
40239
40352
  case 41:
40240
- _context13.next = 43;
40353
+ _context14.next = 43;
40241
40354
  return this.initView();
40242
40355
  case 43:
40243
40356
  (_this$actions16 = this.actions) === null || _this$actions16 === void 0 || _this$actions16.onEvent({
@@ -40274,20 +40387,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40274
40387
  initializationType: this.divaBasketHandler.initializationTypeGetter,
40275
40388
  initializationId: initializationId
40276
40389
  }, false);
40277
- _context13.next = 53;
40390
+ _context14.next = 53;
40278
40391
  return this.fillBaksetforOnWebPlanerConfigChange(undefined, true);
40279
40392
  case 53:
40280
- return _context13.abrupt("return", true);
40393
+ return _context14.abrupt("return", true);
40281
40394
  case 56:
40282
40395
  this.onInitializationError();
40283
40396
  //fehler beim laden vom basket..
40284
40397
  LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
40285
- return _context13.abrupt("return", false);
40398
+ return _context14.abrupt("return", false);
40286
40399
  case 59:
40287
40400
  case "end":
40288
- return _context13.stop();
40401
+ return _context14.stop();
40289
40402
  }
40290
- }, _callee13, this);
40403
+ }, _callee14, this);
40291
40404
  }));
40292
40405
  function initialize() {
40293
40406
  return _initialize.apply(this, arguments);
@@ -40419,23 +40532,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40419
40532
  }, {
40420
40533
  key: "initView",
40421
40534
  value: (function () {
40422
- var _initView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
40535
+ var _initView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15() {
40423
40536
  var set, plannerMode, _this$initConfigurato, _this$initPlannerView, _this$initConfigurato2, _this$updateViewPlann9;
40424
- return _regeneratorRuntime.wrap(function _callee14$(_context14) {
40425
- while (1) switch (_context14.prev = _context14.next) {
40537
+ return _regeneratorRuntime.wrap(function _callee15$(_context15) {
40538
+ while (1) switch (_context15.prev = _context15.next) {
40426
40539
  case 0:
40427
40540
  set = this.actSet();
40428
40541
  plannerMode = this.getPlannerMode();
40429
40542
  this.initConfiguratorMode(plannerMode);
40430
40543
  if (!(plannerMode == 'ProductList')) {
40431
- _context14.next = 7;
40544
+ _context15.next = 7;
40432
40545
  break;
40433
40546
  }
40434
40547
  (_this$initConfigurato = this.initConfiguratorStructure) === null || _this$initConfigurato === void 0 || _this$initConfigurato.call(this, setHandlerInstance.loadConfigStructureForOnlyProductsList());
40435
- _context14.next = 17;
40548
+ _context15.next = 17;
40436
40549
  break;
40437
40550
  case 7:
40438
- _context14.next = 9;
40551
+ _context15.next = 9;
40439
40552
  return (_this$initPlannerView = this.initPlannerView) === null || _this$initPlannerView === void 0 ? void 0 : _this$initPlannerView.call(this);
40440
40553
  case 9:
40441
40554
  //first load the Configuratorstructure STARTCONFIG
@@ -40449,13 +40562,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40449
40562
  this.onBasketInitialized();
40450
40563
  this.checkMatchingProducts('onInit');
40451
40564
  case 17:
40452
- _context14.next = 19;
40565
+ _context15.next = 19;
40453
40566
  return this.runInitMode(plannerMode);
40454
40567
  case 19:
40455
40568
  case "end":
40456
- return _context14.stop();
40569
+ return _context15.stop();
40457
40570
  }
40458
- }, _callee14, this);
40571
+ }, _callee15, this);
40459
40572
  }));
40460
40573
  function initView() {
40461
40574
  return _initView.apply(this, arguments);
@@ -40476,26 +40589,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40476
40589
  }, {
40477
40590
  key: "runInitMode",
40478
40591
  value: function () {
40479
- var _runInitMode = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(plannerMode) {
40592
+ var _runInitMode = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(plannerMode) {
40480
40593
  var _this$state3;
40481
40594
  var doDefault, _this$navigateToTabGr2, configStepKey, _this$actSet5, _this$navigateToTabGr3, _this$navigateToTabGr4, _this$navigateToTabGr5;
40482
- return _regeneratorRuntime.wrap(function _callee15$(_context15) {
40483
- while (1) switch (_context15.prev = _context15.next) {
40595
+ return _regeneratorRuntime.wrap(function _callee16$(_context16) {
40596
+ while (1) switch (_context16.prev = _context16.next) {
40484
40597
  case 0:
40485
40598
  doDefault = true;
40486
40599
  if (!(this.plannerConfig.initMode == 'OPEN_LEAFLET_BARRIER' || this.plannerConfig.initMode == 'SHOW_PDF')) {
40487
- _context15.next = 10;
40600
+ _context16.next = 10;
40488
40601
  break;
40489
40602
  }
40490
40603
  if (this.plannerConfig.initMode == 'OPEN_LEAFLET_BARRIER') this.ReturnTo = 'OPEN_LEAFLET_BARRIER';
40491
40604
  if (this.plannerConfig.initMode == 'SHOW_PDF') this.ReturnTo = 'OPEN_PDF';
40492
40605
  (_this$navigateToTabGr2 = this.navigateToTabGroup) === null || _this$navigateToTabGr2 === void 0 || _this$navigateToTabGr2.call(this, 'SUMMARY', undefined, true);
40493
40606
  //TODO lea bug das hier ist nur ein temporäre lößung https://app.asana.com/0/1200869909950432/1200998848659806
40494
- _context15.next = 7;
40607
+ _context16.next = 7;
40495
40608
  return this.saveToBasketWrapper();
40496
40609
  case 7:
40497
40610
  doDefault = false;
40498
- _context15.next = 11;
40611
+ _context16.next = 11;
40499
40612
  break;
40500
40613
  case 10:
40501
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) {
@@ -40519,11 +40632,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40519
40632
  }
40520
40633
  case 12:
40521
40634
  case "end":
40522
- return _context15.stop();
40635
+ return _context16.stop();
40523
40636
  }
40524
- }, _callee15, this);
40637
+ }, _callee16, this);
40525
40638
  }));
40526
- function runInitMode(_x48) {
40639
+ function runInitMode(_x53) {
40527
40640
  return _runInitMode.apply(this, arguments);
40528
40641
  }
40529
40642
  return runInitMode;
@@ -40531,16 +40644,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40531
40644
  }, {
40532
40645
  key: "addSetToActPlanningByDivaNr",
40533
40646
  value: function () {
40534
- var _addSetToActPlanningByDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(divaNr) {
40647
+ var _addSetToActPlanningByDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(divaNr) {
40535
40648
  var _this$updateViewPlann10;
40536
40649
  var set, orderSets, i, orderset, lastSetToInitialize, loadedSet, articlesKeys;
40537
- return _regeneratorRuntime.wrap(function _callee16$(_context16) {
40538
- while (1) switch (_context16.prev = _context16.next) {
40650
+ return _regeneratorRuntime.wrap(function _callee17$(_context17) {
40651
+ while (1) switch (_context17.prev = _context17.next) {
40539
40652
  case 0:
40540
40653
  set = this.actSet();
40541
40654
  this.divaBasketHandler.updateDivaNrInBasket(divaNr);
40542
40655
  this.divaBasketHandler.setIgnoreInitObjectWhenInitializing();
40543
- _context16.next = 5;
40656
+ _context17.next = 5;
40544
40657
  return this.divaBasketHandler.initializeBasket(this.api);
40545
40658
  case 5:
40546
40659
  orderSets = this.divaBasketHandler.actBasket.OrderSets;
@@ -40548,30 +40661,30 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40548
40661
  i = 0;
40549
40662
  case 8:
40550
40663
  if (!(i < orderSets.length)) {
40551
- _context16.next = 24;
40664
+ _context17.next = 24;
40552
40665
  break;
40553
40666
  }
40554
40667
  orderset = orderSets[i];
40555
40668
  lastSetToInitialize = setHandlerInstance.getOrderSetShouldInitPlanner(orderSets, i);
40556
40669
  loadedSet = setHandlerInstance.findLoadedSet(this.sets, orderset.CatalogCodex, orderset.AccountGUID);
40557
40670
  if (!loadedSet) {
40558
- _context16.next = 18;
40671
+ _context17.next = 18;
40559
40672
  break;
40560
40673
  }
40561
- _context16.next = 15;
40674
+ _context17.next = 15;
40562
40675
  return setHandlerInstance.addOrderSetArticlesToExistingSet(loadedSet, orderset, lastSetToInitialize);
40563
40676
  case 15:
40564
40677
  this.checkMatchingProducts('onAdd');
40565
- _context16.next = 20;
40678
+ _context17.next = 20;
40566
40679
  break;
40567
40680
  case 18:
40568
- _context16.next = 20;
40681
+ _context17.next = 20;
40569
40682
  return setHandlerInstance.initSet(orderset, this.getInitStateForSet(), lastSetToInitialize);
40570
40683
  case 20:
40571
40684
  this.cleanUpEmptySets(true);
40572
40685
  case 21:
40573
40686
  i++;
40574
- _context16.next = 8;
40687
+ _context17.next = 8;
40575
40688
  break;
40576
40689
  case 24:
40577
40690
  this.divaBasketHandler.actBasket.OrderSets = [];
@@ -40583,11 +40696,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40583
40696
  this.loadPaletteInfos(undefined, [articlesKeys[0]], articlesKeys);
40584
40697
  case 31:
40585
40698
  case "end":
40586
- return _context16.stop();
40699
+ return _context17.stop();
40587
40700
  }
40588
- }, _callee16, this);
40701
+ }, _callee17, this);
40589
40702
  }));
40590
- function addSetToActPlanningByDivaNr(_x49) {
40703
+ function addSetToActPlanningByDivaNr(_x54) {
40591
40704
  return _addSetToActPlanningByDivaNr.apply(this, arguments);
40592
40705
  }
40593
40706
  return addSetToActPlanningByDivaNr;
@@ -40620,28 +40733,28 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40620
40733
  }, {
40621
40734
  key: "setActSetCurConfigStepKey",
40622
40735
  value: function () {
40623
- var _setActSetCurConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(curConfigStepKey) {
40736
+ var _setActSetCurConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(curConfigStepKey) {
40624
40737
  var set;
40625
- return _regeneratorRuntime.wrap(function _callee17$(_context17) {
40626
- while (1) switch (_context17.prev = _context17.next) {
40738
+ return _regeneratorRuntime.wrap(function _callee18$(_context18) {
40739
+ while (1) switch (_context18.prev = _context18.next) {
40627
40740
  case 0:
40628
40741
  set = this.actSet();
40629
40742
  if (set) {
40630
- _context17.next = 3;
40743
+ _context18.next = 3;
40631
40744
  break;
40632
40745
  }
40633
- return _context17.abrupt("return");
40746
+ return _context18.abrupt("return");
40634
40747
  case 3:
40635
40748
  set.ActConfigStepKey = curConfigStepKey;
40636
- _context17.next = 6;
40749
+ _context18.next = 6;
40637
40750
  return setHandlerInstance.updateNavigation(set);
40638
40751
  case 6:
40639
40752
  case "end":
40640
- return _context17.stop();
40753
+ return _context18.stop();
40641
40754
  }
40642
- }, _callee17, this);
40755
+ }, _callee18, this);
40643
40756
  }));
40644
- function setActSetCurConfigStepKey(_x50) {
40757
+ function setActSetCurConfigStepKey(_x55) {
40645
40758
  return _setActSetCurConfigStepKey.apply(this, arguments);
40646
40759
  }
40647
40760
  return setActSetCurConfigStepKey;
@@ -40790,17 +40903,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40790
40903
  }, {
40791
40904
  key: "deletePlannerElement",
40792
40905
  value: function () {
40793
- var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(setId, elementId, denyElementSelectionClear) {
40906
+ var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(setId, elementId, denyElementSelectionClear) {
40794
40907
  var _this$updateViewPlann11;
40795
40908
  var set, result, _this$updateElementSe5, _this$updateElementSe6;
40796
- return _regeneratorRuntime.wrap(function _callee18$(_context18) {
40797
- while (1) switch (_context18.prev = _context18.next) {
40909
+ return _regeneratorRuntime.wrap(function _callee19$(_context19) {
40910
+ while (1) switch (_context19.prev = _context19.next) {
40798
40911
  case 0:
40799
40912
  set = this.sets[setId];
40800
- _context18.next = 3;
40913
+ _context19.next = 3;
40801
40914
  return setHandlerInstance.deleteElementFromSetByElemId(set, elementId, true);
40802
40915
  case 3:
40803
- result = _context18.sent;
40916
+ result = _context19.sent;
40804
40917
  this.updateConfigStructure();
40805
40918
  (_this$updateViewPlann11 = this.updateViewPlannerElements) === null || _this$updateViewPlann11 === void 0 || _this$updateViewPlann11.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
40806
40919
  this.updatePlannerView('DELETE_PLANNER_ELEMENT');
@@ -40811,17 +40924,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40811
40924
  }
40812
40925
  this.updatePriceInView();
40813
40926
  this.checkMatchingProducts('onDelete');
40814
- _context18.next = 14;
40927
+ _context19.next = 14;
40815
40928
  return this.getFreePlacesOnGrids(undefined, 'deleteElement');
40816
40929
  case 14:
40817
40930
  this.plannerChangeLog('onDeletePlanner');
40818
40931
  case 15:
40819
40932
  case "end":
40820
- return _context18.stop();
40933
+ return _context19.stop();
40821
40934
  }
40822
- }, _callee18, this);
40935
+ }, _callee19, this);
40823
40936
  }));
40824
- function deletePlannerElement(_x51, _x52, _x53) {
40937
+ function deletePlannerElement(_x56, _x57, _x58) {
40825
40938
  return _deletePlannerElement.apply(this, arguments);
40826
40939
  }
40827
40940
  return deletePlannerElement;
@@ -40835,17 +40948,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40835
40948
  }, {
40836
40949
  key: "copyPlannerElement",
40837
40950
  value: (function () {
40838
- 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) {
40839
40952
  var _this$updateViewPlann12;
40840
40953
  var set, newSelectedArticle, newConfigStepKey, _this$updateElementSe7, baseArticle;
40841
- return _regeneratorRuntime.wrap(function _callee19$(_context19) {
40842
- while (1) switch (_context19.prev = _context19.next) {
40954
+ return _regeneratorRuntime.wrap(function _callee20$(_context20) {
40955
+ while (1) switch (_context20.prev = _context20.next) {
40843
40956
  case 0:
40844
40957
  set = this.sets[setId];
40845
- _context19.next = 3;
40958
+ _context20.next = 3;
40846
40959
  return setHandlerInstance.copyPlannerElement(set, elementId, copyInfo);
40847
40960
  case 3:
40848
- newSelectedArticle = _context19.sent;
40961
+ newSelectedArticle = _context20.sent;
40849
40962
  this.updateConfigStructure();
40850
40963
  (_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
40851
40964
  this.updatePlannerView('COPY_PLANNER_ELEMENT');
@@ -40859,14 +40972,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40859
40972
  (_this$updateElementSe7 = this.updateElementSelectionPlanner) === null || _this$updateElementSe7 === void 0 || _this$updateElementSe7.call(this, [baseArticle.setId], [baseArticle.elementId], true);
40860
40973
  }
40861
40974
  this.checkMatchingProducts('onCopy');
40862
- return _context19.abrupt("return", newConfigStepKey);
40975
+ return _context20.abrupt("return", newConfigStepKey);
40863
40976
  case 13:
40864
40977
  case "end":
40865
- return _context19.stop();
40978
+ return _context20.stop();
40866
40979
  }
40867
- }, _callee19, this);
40980
+ }, _callee20, this);
40868
40981
  }));
40869
- function copyPlannerElement(_x54, _x55, _x56, _x57) {
40982
+ function copyPlannerElement(_x59, _x60, _x61, _x62) {
40870
40983
  return _copyPlannerElement.apply(this, arguments);
40871
40984
  }
40872
40985
  return copyPlannerElement;
@@ -40895,33 +41008,33 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40895
41008
  }, {
40896
41009
  key: "getFreePlacesOnGrids",
40897
41010
  value: function () {
40898
- var _getFreePlacesOnGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(gridGroup, from) {
41011
+ var _getFreePlacesOnGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(gridGroup, from) {
40899
41012
  var _this$updateFreePlace;
40900
41013
  var set, freeShelfGrids, plannedShelfGrids;
40901
- return _regeneratorRuntime.wrap(function _callee20$(_context20) {
40902
- while (1) switch (_context20.prev = _context20.next) {
41014
+ return _regeneratorRuntime.wrap(function _callee21$(_context21) {
41015
+ while (1) switch (_context21.prev = _context21.next) {
40903
41016
  case 0:
40904
41017
  set = this.actSet();
40905
41018
  if (set) {
40906
- _context20.next = 3;
41019
+ _context21.next = 3;
40907
41020
  break;
40908
41021
  }
40909
41022
  throw new Error('getFreePlacesOnGrids: act set is not defined!');
40910
41023
  case 3:
40911
41024
  if (!gridGroup) {
40912
- _context20.next = 9;
41025
+ _context21.next = 9;
40913
41026
  break;
40914
41027
  }
40915
- _context20.next = 6;
41028
+ _context21.next = 6;
40916
41029
  return setHandlerInstance.getFreeShelfGrids(set, gridGroup);
40917
41030
  case 6:
40918
- _context20.t0 = _context20.sent;
40919
- _context20.next = 10;
41031
+ _context21.t0 = _context21.sent;
41032
+ _context21.next = 10;
40920
41033
  break;
40921
41034
  case 9:
40922
- _context20.t0 = undefined;
41035
+ _context21.t0 = undefined;
40923
41036
  case 10:
40924
- freeShelfGrids = _context20.t0;
41037
+ freeShelfGrids = _context21.t0;
40925
41038
  plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
40926
41039
  LOG$1.debug('TOULA', 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
40927
41040
  LOG$1.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
@@ -40929,17 +41042,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40929
41042
  freeShelfGrids: freeShelfGrids,
40930
41043
  plannedShelfGrids: plannedShelfGrids
40931
41044
  });
40932
- return _context20.abrupt("return", {
41045
+ return _context21.abrupt("return", {
40933
41046
  freeShelfGrids: freeShelfGrids,
40934
41047
  plannedShelfGrids: plannedShelfGrids
40935
41048
  });
40936
41049
  case 16:
40937
41050
  case "end":
40938
- return _context20.stop();
41051
+ return _context21.stop();
40939
41052
  }
40940
- }, _callee20, this);
41053
+ }, _callee21, this);
40941
41054
  }));
40942
- function getFreePlacesOnGrids(_x58, _x59) {
41055
+ function getFreePlacesOnGrids(_x63, _x64) {
40943
41056
  return _getFreePlacesOnGrids.apply(this, arguments);
40944
41057
  }
40945
41058
  return getFreePlacesOnGrids;
@@ -40956,36 +41069,36 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40956
41069
  }, {
40957
41070
  key: "moveShelfItemToGrid",
40958
41071
  value: function () {
40959
- 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) {
40960
41073
  var set, newGridId;
40961
- return _regeneratorRuntime.wrap(function _callee21$(_context21) {
40962
- while (1) switch (_context21.prev = _context21.next) {
41074
+ return _regeneratorRuntime.wrap(function _callee22$(_context22) {
41075
+ while (1) switch (_context22.prev = _context22.next) {
40963
41076
  case 0:
40964
41077
  set = this.actSet();
40965
41078
  if (set) {
40966
- _context21.next = 3;
41079
+ _context22.next = 3;
40967
41080
  break;
40968
41081
  }
40969
- return _context21.abrupt("return");
41082
+ return _context22.abrupt("return");
40970
41083
  case 3:
40971
- _context21.next = 5;
41084
+ _context22.next = 5;
40972
41085
  return setHandlerInstance.moveShelfItemToGrid(set, accessoireBasketId, parentBasketId, gridName, cellIndex);
40973
41086
  case 5:
40974
- newGridId = _context21.sent;
41087
+ newGridId = _context22.sent;
40975
41088
  this.updatePlannerView('MOVE_SHELF_ITEM');
40976
41089
  if (!newGridId) {
40977
- _context21.next = 10;
41090
+ _context22.next = 10;
40978
41091
  break;
40979
41092
  }
40980
- _context21.next = 10;
41093
+ _context22.next = 10;
40981
41094
  return this.getFreePlacesOnGrids(newGridId, 'move shelf');
40982
41095
  case 10:
40983
41096
  case "end":
40984
- return _context21.stop();
41097
+ return _context22.stop();
40985
41098
  }
40986
- }, _callee21, this);
41099
+ }, _callee22, this);
40987
41100
  }));
40988
- function moveShelfItemToGrid(_x60, _x61, _x62, _x63) {
41101
+ function moveShelfItemToGrid(_x65, _x66, _x67, _x68) {
40989
41102
  return _moveShelfItemToGrid.apply(this, arguments);
40990
41103
  }
40991
41104
  return moveShelfItemToGrid;
@@ -40993,27 +41106,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40993
41106
  }, {
40994
41107
  key: "resetArticle",
40995
41108
  value: function () {
40996
- var _resetArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(basketId) {
41109
+ var _resetArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(basketId) {
40997
41110
  var set;
40998
- return _regeneratorRuntime.wrap(function _callee22$(_context22) {
40999
- while (1) switch (_context22.prev = _context22.next) {
41111
+ return _regeneratorRuntime.wrap(function _callee23$(_context23) {
41112
+ while (1) switch (_context23.prev = _context23.next) {
41000
41113
  case 0:
41001
41114
  set = this.actSet();
41002
41115
  if (set) {
41003
- _context22.next = 3;
41116
+ _context23.next = 3;
41004
41117
  break;
41005
41118
  }
41006
- return _context22.abrupt("return");
41119
+ return _context23.abrupt("return");
41007
41120
  case 3:
41008
- _context22.next = 5;
41121
+ _context23.next = 5;
41009
41122
  return setHandlerInstance.resetArticle(set, basketId);
41010
41123
  case 5:
41011
41124
  case "end":
41012
- return _context22.stop();
41125
+ return _context23.stop();
41013
41126
  }
41014
- }, _callee22, this);
41127
+ }, _callee23, this);
41015
41128
  }));
41016
- function resetArticle(_x64) {
41129
+ function resetArticle(_x69) {
41017
41130
  return _resetArticle.apply(this, arguments);
41018
41131
  }
41019
41132
  return resetArticle;
@@ -41043,10 +41156,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41043
41156
  }, {
41044
41157
  key: "checkMatchingProducts",
41045
41158
  value: function () {
41046
- var _checkMatchingProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(from) {
41159
+ var _checkMatchingProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(from) {
41047
41160
  var set, _set$getMatchingProdu, _set$getMatchingOrigP, _set$getMatchingOrigP2, _set$getMatchingProdu2;
41048
- return _regeneratorRuntime.wrap(function _callee23$(_context23) {
41049
- while (1) switch (_context23.prev = _context23.next) {
41161
+ return _regeneratorRuntime.wrap(function _callee24$(_context24) {
41162
+ while (1) switch (_context24.prev = _context24.next) {
41050
41163
  case 0:
41051
41164
  set = this.actSet();
41052
41165
  if (set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
@@ -41060,20 +41173,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41060
41173
  }
41061
41174
  }
41062
41175
  if (!(set !== null && set !== void 0 && set.api.doCheckForProductsMatch())) {
41063
- _context23.next = 6;
41176
+ _context24.next = 6;
41064
41177
  break;
41065
41178
  }
41066
- _context23.next = 5;
41179
+ _context24.next = 5;
41067
41180
  return productHandlerInstance.updateProducts(this.setsAsArray, this.api, this.divaBasketHandler.divaWWSHandler, from);
41068
41181
  case 5:
41069
41182
  this.updatePriceInView();
41070
41183
  case 6:
41071
41184
  case "end":
41072
- return _context23.stop();
41185
+ return _context24.stop();
41073
41186
  }
41074
- }, _callee23, this);
41187
+ }, _callee24, this);
41075
41188
  }));
41076
- function checkMatchingProducts(_x65) {
41189
+ function checkMatchingProducts(_x70) {
41077
41190
  return _checkMatchingProducts.apply(this, arguments);
41078
41191
  }
41079
41192
  return checkMatchingProducts;
@@ -41150,7 +41263,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41150
41263
  }, {
41151
41264
  key: "saveToBasketWrapper",
41152
41265
  value: function () {
41153
- var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(event, repairOnly, force) {
41266
+ var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(event, repairOnly, force) {
41154
41267
  var _this$actions27,
41155
41268
  _this$actions27$toggl,
41156
41269
  _this$actions28,
@@ -41159,8 +41272,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41159
41272
  _this$actions32,
41160
41273
  _this$i18n14;
41161
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;
41162
- return _regeneratorRuntime.wrap(function _callee24$(_context24) {
41163
- while (1) switch (_context24.prev = _context24.next) {
41275
+ return _regeneratorRuntime.wrap(function _callee25$(_context25) {
41276
+ while (1) switch (_context25.prev = _context25.next) {
41164
41277
  case 0:
41165
41278
  returnTo = this.getReturnTo(event);
41166
41279
  finalEvent = {
@@ -41168,50 +41281,50 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41168
41281
  saveBasket: true
41169
41282
  };
41170
41283
  if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
41171
- _context24.next = 21;
41284
+ _context25.next = 21;
41172
41285
  break;
41173
41286
  }
41174
41287
  product = undefined;
41175
41288
  if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
41176
- _context24.next = 10;
41289
+ _context25.next = 10;
41177
41290
  break;
41178
41291
  }
41179
41292
  url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
41180
- _context24.next = 8;
41293
+ _context25.next = 8;
41181
41294
  return this.api.getDataCache(url, url, undefined, 'catalog');
41182
41295
  case 8:
41183
- _result = _context24.sent;
41296
+ _result = _context25.sent;
41184
41297
  product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
41185
41298
  case 10:
41186
- _context24.next = 12;
41299
+ _context25.next = 12;
41187
41300
  return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
41188
41301
  case 12:
41189
- finalEvent = _context24.sent;
41302
+ finalEvent = _context25.sent;
41190
41303
  if (finalEvent) {
41191
- _context24.next = 17;
41304
+ _context25.next = 17;
41192
41305
  break;
41193
41306
  }
41194
- return _context24.abrupt("return", 'canceled');
41307
+ return _context25.abrupt("return", 'canceled');
41195
41308
  case 17:
41196
41309
  if (!(!finalEvent.saveBasket && finalEvent.event)) {
41197
- _context24.next = 20;
41310
+ _context25.next = 20;
41198
41311
  break;
41199
41312
  }
41200
41313
  (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
41201
41314
  type: finalEvent.event
41202
41315
  });
41203
- return _context24.abrupt("return", 'canceled');
41316
+ return _context25.abrupt("return", 'canceled');
41204
41317
  case 20:
41205
41318
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
41206
41319
  case 21:
41207
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);
41208
- _context24.next = 24;
41321
+ _context25.next = 24;
41209
41322
  return this.saveToBasket(finalEvent.event, repairOnly, force);
41210
41323
  case 24:
41211
- result = _context24.sent;
41324
+ result = _context25.sent;
41212
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);
41213
41326
  if (!(result === 'canceled')) {
41214
- _context24.next = 30;
41327
+ _context25.next = 30;
41215
41328
  break;
41216
41329
  }
41217
41330
  LOG$1.error(new DivaError('failed to save Basket'));
@@ -41219,10 +41332,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41219
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() : '',
41220
41333
  accept: true
41221
41334
  });
41222
- return _context24.abrupt("return", result);
41335
+ return _context25.abrupt("return", result);
41223
41336
  case 30:
41224
- _context24.t0 = returnTo;
41225
- _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;
41226
41339
  break;
41227
41340
  case 33:
41228
41341
  if (!this.getBasket().PDFDocumentURL) {
@@ -41242,7 +41355,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41242
41355
  }
41243
41356
  });
41244
41357
  }
41245
- return _context24.abrupt("break", 36);
41358
+ return _context25.abrupt("break", 36);
41246
41359
  case 35:
41247
41360
  (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
41248
41361
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
@@ -41250,20 +41363,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41250
41363
  });
41251
41364
  case 36:
41252
41365
  if (!(result == 'noArticleToSave')) {
41253
- _context24.next = 39;
41366
+ _context25.next = 39;
41254
41367
  break;
41255
41368
  }
41256
41369
  (_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
41257
- return _context24.abrupt("return", 'canceled');
41370
+ return _context25.abrupt("return", 'canceled');
41258
41371
  case 39:
41259
- return _context24.abrupt("return", result);
41372
+ return _context25.abrupt("return", result);
41260
41373
  case 40:
41261
41374
  case "end":
41262
- return _context24.stop();
41375
+ return _context25.stop();
41263
41376
  }
41264
- }, _callee24, this);
41377
+ }, _callee25, this);
41265
41378
  }));
41266
- function saveToBasketWrapper(_x66, _x67, _x68) {
41379
+ function saveToBasketWrapper(_x71, _x72, _x73) {
41267
41380
  return _saveToBasketWrapper.apply(this, arguments);
41268
41381
  }
41269
41382
  return saveToBasketWrapper;
@@ -41271,43 +41384,43 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41271
41384
  }, {
41272
41385
  key: "saveToBasket",
41273
41386
  value: function () {
41274
- var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(event, repairOnly, force) {
41387
+ var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
41275
41388
  var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
41276
41389
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
41277
- return _regeneratorRuntime.wrap(function _callee25$(_context25) {
41278
- while (1) switch (_context25.prev = _context25.next) {
41390
+ return _regeneratorRuntime.wrap(function _callee26$(_context26) {
41391
+ while (1) switch (_context26.prev = _context26.next) {
41279
41392
  case 0:
41280
41393
  set = this.actSet();
41281
41394
  if (!(setHandlerInstance.isNoArticleToSave(this.sets) && !force)) {
41282
- _context25.next = 3;
41395
+ _context26.next = 3;
41283
41396
  break;
41284
41397
  }
41285
- return _context25.abrupt("return", 'noArticleToSave');
41398
+ return _context26.abrupt("return", 'noArticleToSave');
41286
41399
  case 3:
41287
41400
  actBasket = this.divaBasketHandler.actBasket;
41288
41401
  returnTo = this.getReturnTo(event);
41289
41402
  if (!((_returnTo = returnTo) !== null && _returnTo !== void 0 && _returnTo.startsWith('FAVORITS') && favoritesHandlerInstance.FavoritesDefined(set))) {
41290
- _context25.next = 13;
41403
+ _context26.next = 13;
41291
41404
  break;
41292
41405
  }
41293
41406
  oldReturnTo = returnTo;
41294
41407
  this.ReturnTo = returnTo.replace('FAVORITS_', '');
41295
- _context25.next = 10;
41408
+ _context26.next = 10;
41296
41409
  return this.handleFavorites('SAVE');
41297
41410
  case 10:
41298
- result = _context25.sent;
41411
+ result = _context26.sent;
41299
41412
  if (result === 'canceled') {
41300
41413
  this.ReturnTo = oldReturnTo;
41301
41414
  }
41302
- return _context25.abrupt("return", result);
41415
+ return _context26.abrupt("return", result);
41303
41416
  case 13:
41304
- _context25.t0 = this.divaBasketHandler;
41305
- _context25.t1 = this.divaBasketHandler.actDivaNr;
41306
- _context25.next = 17;
41417
+ _context26.t0 = this.divaBasketHandler;
41418
+ _context26.t1 = this.divaBasketHandler.actDivaNr;
41419
+ _context26.next = 17;
41307
41420
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !!repairOnly, this.doAllowSetPlanner(), this.ReturnTo);
41308
41421
  case 17:
41309
- _context25.t2 = _context25.sent;
41310
- _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);
41311
41424
  if ((_returnTo2 = returnTo) !== null && _returnTo2 !== void 0 && _returnTo2.endsWith('OPEN_SELLER_BASKET')) {
41312
41425
  this.ReturnTo = 'OPEN_SELLER_BASKET';
41313
41426
  returnTo = this.ReturnTo;
@@ -41322,11 +41435,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41322
41435
  this.divaBasketHandler.fillOrigConfigurations();
41323
41436
  actBasket.Updated = Date.now();
41324
41437
  if (!returnTo) {
41325
- _context25.next = 52;
41438
+ _context26.next = 52;
41326
41439
  break;
41327
41440
  }
41328
- _context25.t3 = returnTo;
41329
- _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;
41330
41443
  break;
41331
41444
  case 28:
41332
41445
  (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
@@ -41340,7 +41453,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41340
41453
  basketData: actBasket
41341
41454
  }
41342
41455
  });
41343
- return _context25.abrupt("break", 52);
41456
+ return _context26.abrupt("break", 52);
41344
41457
  case 31:
41345
41458
  (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
41346
41459
  type: 'SELLER',
@@ -41352,23 +41465,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41352
41465
  basketData: actBasket
41353
41466
  }
41354
41467
  });
41355
- return _context25.abrupt("break", 52);
41468
+ return _context26.abrupt("break", 52);
41356
41469
  case 33:
41357
41470
  if (!(event == 'onSaveProduct')) {
41358
- _context25.next = 43;
41471
+ _context26.next = 43;
41359
41472
  break;
41360
41473
  }
41361
41474
  //copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
41362
41475
  actBasket = new BasketData(JSON.parse(JSON.stringify(actBasket)));
41363
- _context25.next = 37;
41476
+ _context26.next = 37;
41364
41477
  return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
41365
41478
  case 37:
41366
- _context25.next = 39;
41479
+ _context26.next = 39;
41367
41480
  return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
41368
41481
  case 39:
41369
- newDivaNr = _context25.sent;
41482
+ newDivaNr = _context26.sent;
41370
41483
  actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
41371
- _context25.next = 51;
41484
+ _context26.next = 51;
41372
41485
  break;
41373
41486
  case 43:
41374
41487
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
@@ -41377,32 +41490,32 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41377
41490
  }
41378
41491
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
41379
41492
  actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
41380
- _context25.next = 48;
41493
+ _context26.next = 48;
41381
41494
  return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo);
41382
41495
  case 48:
41383
- _result2 = _context25.sent;
41496
+ _result2 = _context26.sent;
41384
41497
  if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
41385
- _context25.next = 51;
41498
+ _context26.next = 51;
41386
41499
  break;
41387
41500
  }
41388
- return _context25.abrupt("return", 'canceled');
41501
+ return _context26.abrupt("return", 'canceled');
41389
41502
  case 51:
41390
- return _context25.abrupt("break", 52);
41503
+ return _context26.abrupt("break", 52);
41391
41504
  case 52:
41392
41505
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
41393
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
41394
- _context25.next = 56;
41507
+ _context26.next = 56;
41395
41508
  return this.addToBasket(actBasket, event);
41396
41509
  case 56:
41397
- product = _context25.sent;
41398
- 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');
41399
41512
  case 58:
41400
41513
  case "end":
41401
- return _context25.stop();
41514
+ return _context26.stop();
41402
41515
  }
41403
- }, _callee25, this);
41516
+ }, _callee26, this);
41404
41517
  }));
41405
- function saveToBasket(_x69, _x70, _x71) {
41518
+ function saveToBasket(_x74, _x75, _x76) {
41406
41519
  return _saveToBasket.apply(this, arguments);
41407
41520
  }
41408
41521
  return saveToBasket;
@@ -41560,62 +41673,68 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41560
41673
  var _this$actSet17;
41561
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;
41562
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
+ }
41563
41682
  }, {
41564
41683
  key: "hidePlannerUiIcons",
41565
41684
  value: function hidePlannerUiIcons() {
41566
- var _this$actSet18;
41567
- 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;
41568
41687
  }
41569
41688
  }, {
41570
41689
  key: "doShowPlannerReplaceMode",
41571
41690
  value: function doShowPlannerReplaceMode() {
41572
- var _this$actSet19, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
41573
- 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;
41574
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;
41575
41694
  }
41576
41695
  }, {
41577
41696
  key: "doPlannerReplaceAutoSwitch",
41578
41697
  value: function doPlannerReplaceAutoSwitch() {
41579
- var _this$actSet20, _this$api$getViewConf3;
41580
- 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;
41581
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);
41582
41701
  }
41583
41702
  }, {
41584
41703
  key: "getHidePlanner",
41585
41704
  value: function getHidePlanner() {
41586
- var _this$actSet21;
41587
- 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);
41588
41707
  }
41589
41708
  }, {
41590
41709
  key: "getAllowRTV",
41591
41710
  value: function getAllowRTV() {
41592
- var _this$state5, _this$actSet22, _this$state6, _this$actSet23;
41711
+ var _this$state5, _this$actSet23, _this$state6, _this$actSet24;
41593
41712
  if (this.getEnableUnityRtvKombi()) return false;
41594
41713
  if ((_this$state5 = this.state) !== null && _this$state5 !== void 0 && _this$state5.organization.settings.forceRTV) return true;
41595
- if ((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaForceRTV) return true;
41596
- 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;
41597
41716
  return false;
41598
41717
  }
41599
41718
  }, {
41600
41719
  key: "getAllowQRCodeAR",
41601
41720
  value: function getAllowQRCodeAR() {
41602
- var _this$actSet24;
41603
- 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;
41604
41723
  return false;
41605
41724
  }
41606
41725
  }, {
41607
41726
  key: "getEnableUnityRtvKombi",
41608
41727
  value: function getEnableUnityRtvKombi() {
41609
- var _this$actSet25, _this$actSet26;
41728
+ var _this$actSet26, _this$actSet27;
41610
41729
  // if force rtv disable unity kombi - biohort
41611
- if ((_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaForceRTV) return false;
41612
- 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();
41613
41732
  }
41614
41733
  }, {
41615
41734
  key: "getShelfPlannerRTV",
41616
41735
  value: function getShelfPlannerRTV() {
41617
- var _this$actSet27;
41618
- 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;
41619
41738
  }
41620
41739
  }, {
41621
41740
  key: "getBasketData",
@@ -41630,23 +41749,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41630
41749
  }, {
41631
41750
  key: "getBasketDataWithEkText",
41632
41751
  value: function () {
41633
- var _getBasketDataWithEkText = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26() {
41634
- return _regeneratorRuntime.wrap(function _callee26$(_context26) {
41635
- 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) {
41636
41755
  case 0:
41637
- _context26.t0 = this.divaBasketHandler;
41638
- _context26.t1 = this.divaBasketHandler.actDivaNr;
41639
- _context26.next = 4;
41756
+ _context27.t0 = this.divaBasketHandler;
41757
+ _context27.t1 = this.divaBasketHandler.actDivaNr;
41758
+ _context27.next = 4;
41640
41759
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, true, this.doAllowSetPlanner(), this.ReturnTo);
41641
41760
  case 4:
41642
- _context26.t2 = _context26.sent;
41643
- _context26.t0.setBasketData.call(_context26.t0, _context26.t1, _context26.t2);
41644
- 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);
41645
41764
  case 7:
41646
41765
  case "end":
41647
- return _context26.stop();
41766
+ return _context27.stop();
41648
41767
  }
41649
- }, _callee26, this);
41768
+ }, _callee27, this);
41650
41769
  }));
41651
41770
  function getBasketDataWithEkText() {
41652
41771
  return _getBasketDataWithEkText.apply(this, arguments);
@@ -41656,8 +41775,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41656
41775
  }, {
41657
41776
  key: "getCatalogData",
41658
41777
  value: function getCatalogData() {
41659
- var _this$actSet28;
41660
- 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;
41661
41780
  }
41662
41781
  }, {
41663
41782
  key: "ReturnTo",
@@ -41672,7 +41791,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41672
41791
  }, {
41673
41792
  key: "addToBasket",
41674
41793
  value: function () {
41675
- var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(actBasket) {
41794
+ var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(actBasket) {
41676
41795
  var _this$actions36,
41677
41796
  _this$actions37,
41678
41797
  _this$actions38,
@@ -41683,7 +41802,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41683
41802
  _this$actions41,
41684
41803
  _this$actions42,
41685
41804
  _this$actions43,
41686
- _this$actions44;
41805
+ _this$actions44,
41806
+ _this$actions45;
41687
41807
  var event,
41688
41808
  emailConfig,
41689
41809
  _emailConfig$to$split,
@@ -41691,44 +41811,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41691
41811
  to,
41692
41812
  variants,
41693
41813
  products,
41694
- _args27 = arguments;
41695
- return _regeneratorRuntime.wrap(function _callee27$(_context27) {
41696
- 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) {
41697
41817
  case 0:
41698
- event = _args27.length > 1 && _args27[1] !== undefined ? _args27[1] : 'onAddToBasket';
41699
- _context27.t0 = event;
41700
- _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;
41701
41821
  break;
41702
41822
  case 5:
41703
41823
  (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41704
41824
  type: 'onWebPlanerPrint',
41705
41825
  data: actBasket.getAsJson()
41706
41826
  });
41707
- return _context27.abrupt("break", 32);
41827
+ return _context28.abrupt("break", 35);
41708
41828
  case 7:
41709
41829
  (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41710
41830
  type: 'onWebPlanerSave',
41711
41831
  data: actBasket.getAsJson()
41712
41832
  });
41713
- return _context27.abrupt("break", 32);
41833
+ return _context28.abrupt("break", 35);
41714
41834
  case 9:
41715
41835
  (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41716
41836
  type: 'onWebPlanerShare',
41717
41837
  data: actBasket.getAsJson()
41718
41838
  });
41719
- return _context27.abrupt("break", 32);
41839
+ return _context28.abrupt("break", 35);
41720
41840
  case 11:
41721
41841
  (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41722
41842
  type: 'onRequestConsulation',
41723
41843
  data: actBasket.getAsJson()
41724
41844
  });
41725
- return _context27.abrupt("break", 32);
41845
+ return _context28.abrupt("break", 35);
41726
41846
  case 13:
41727
41847
  (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41728
41848
  type: 'onSave',
41729
41849
  data: actBasket.getAsJson()
41730
41850
  });
41731
- return _context27.abrupt("break", 32);
41851
+ return _context28.abrupt("break", 35);
41732
41852
  case 15:
41733
41853
  emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
41734
41854
  this.divaBasketHandler.emailConfig = undefined;
@@ -41763,44 +41883,51 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41763
41883
  type: 'onAddToBasket',
41764
41884
  data: actBasket.getAsJson()
41765
41885
  });
41766
- return _context27.abrupt("break", 32);
41886
+ return _context28.abrupt("break", 35);
41767
41887
  case 20:
41768
41888
  this.actSet().CatalogData;
41769
- _context27.next = 23;
41889
+ _context28.next = 23;
41770
41890
  return this.api.saveAsProduct(this.sets, actBasket);
41771
41891
  case 23:
41772
- products = _context27.sent;
41892
+ products = _context28.sent;
41773
41893
  (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41774
41894
  type: 'onAddToBasket',
41775
41895
  data: actBasket.getAsJson()
41776
41896
  });
41777
41897
  if (!products) {
41778
- _context27.next = 27;
41898
+ _context28.next = 27;
41779
41899
  break;
41780
41900
  }
41781
- return _context27.abrupt("return", products[0]);
41901
+ return _context28.abrupt("return", products[0]);
41782
41902
  case 27:
41783
41903
  case 28:
41784
41904
  (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41785
41905
  type: 'onAddToBasket',
41786
41906
  data: actBasket.getAsJson()
41787
41907
  });
41788
- return _context27.abrupt("break", 32);
41908
+ return _context28.abrupt("break", 35);
41789
41909
  case 30:
41790
41910
  (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
41791
- type: event,
41911
+ type: 'onAddToBasket',
41792
41912
  data: actBasket.getAsJson()
41793
41913
  });
41794
- return _context27.abrupt("break", 32);
41795
- case 32:
41796
- return _context27.abrupt("return");
41914
+ this.openContactForm(this.divaBasketHandler);
41915
+ return _context28.abrupt("break", 35);
41797
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:
41798
41925
  case "end":
41799
- return _context27.stop();
41926
+ return _context28.stop();
41800
41927
  }
41801
- }, _callee27, this);
41928
+ }, _callee28, this);
41802
41929
  }));
41803
- function addToBasket(_x72) {
41930
+ function addToBasket(_x77) {
41804
41931
  return _addToBasket.apply(this, arguments);
41805
41932
  }
41806
41933
  return addToBasket;
@@ -41808,8 +41935,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41808
41935
  }, {
41809
41936
  key: "openPDFpostAsEvent",
41810
41937
  value: function openPDFpostAsEvent(mongoDBId) {
41811
- var _this$actions45, _this$actions46, _this$actions47;
41812
- (_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({
41813
41940
  type: 'update',
41814
41941
  param: {
41815
41942
  groupId: 'SHOWROOM',
@@ -41823,7 +41950,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41823
41950
  }
41824
41951
  }
41825
41952
  });
41826
- (_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({
41827
41954
  type: 'update',
41828
41955
  param: {
41829
41956
  groupId: 'SHOWROOM',
@@ -41837,7 +41964,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41837
41964
  }
41838
41965
  }
41839
41966
  });
41840
- (_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({
41841
41968
  type: 'REPORT',
41842
41969
  parameters: {
41843
41970
  id: mongoDBId
@@ -42047,6 +42174,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42047
42174
  value: function registerOpenLeafeltBarrier(openLeafeltBarrier) {
42048
42175
  this.openLeafeltBarrier = openLeafeltBarrier;
42049
42176
  }
42177
+ }, {
42178
+ key: "registerOpenContactForm",
42179
+ value: function registerOpenContactForm(openContactForm) {
42180
+ this.openContactForm = openContactForm;
42181
+ }
42050
42182
  }, {
42051
42183
  key: "registerOnClickAddToBasket",
42052
42184
  value: function registerOnClickAddToBasket(onClickAddToBasket) {
@@ -42057,22 +42189,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42057
42189
  }, {
42058
42190
  key: "subscribeToWebPlannerEvents",
42059
42191
  value: function subscribeToWebPlannerEvents() {
42060
- var _this$actions48;
42061
- (_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);
42062
42194
  }
42063
42195
  }, {
42064
42196
  key: "unsubscribeFromWebPlannerEvents",
42065
42197
  value: function unsubscribeFromWebPlannerEvents() {
42066
- var _this$actions49;
42067
- (_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);
42068
42200
  }
42069
42201
  }, {
42070
42202
  key: "initApiForLogicOnly",
42071
42203
  value: //just for testing purposes
42072
42204
  function () {
42073
- var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
42074
- return _regeneratorRuntime.wrap(function _callee28$(_context28) {
42075
- 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) {
42076
42208
  case 0:
42077
42209
  //empty services
42078
42210
  this.api = new DivaApiHandler(_objectSpread$5(_objectSpread$5({}, this.plannerConfig), {}, {
@@ -42085,17 +42217,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42085
42217
  jwt: jwt,
42086
42218
  apiKey: apiKey
42087
42219
  }), handler);
42088
- _context28.next = 3;
42220
+ _context29.next = 3;
42089
42221
  return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
42090
42222
  case 3:
42091
42223
  this.plannerHandler = new DivaPlannerHandler(true);
42092
42224
  case 4:
42093
42225
  case "end":
42094
- return _context28.stop();
42226
+ return _context29.stop();
42095
42227
  }
42096
- }, _callee28, this);
42228
+ }, _callee29, this);
42097
42229
  }));
42098
- function initApiForLogicOnly(_x73, _x74, _x75, _x76, _x77, _x78, _x79) {
42230
+ function initApiForLogicOnly(_x78, _x79, _x80, _x81, _x82, _x83, _x84) {
42099
42231
  return _initApiForLogicOnly.apply(this, arguments);
42100
42232
  }
42101
42233
  return initApiForLogicOnly;
@@ -42108,16 +42240,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42108
42240
  }, {
42109
42241
  key: "loadBasket",
42110
42242
  value: function () {
42111
- var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29() {
42112
- return _regeneratorRuntime.wrap(function _callee29$(_context29) {
42113
- 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) {
42114
42246
  case 0:
42115
- return _context29.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
42247
+ return _context30.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
42116
42248
  case 1:
42117
42249
  case "end":
42118
- return _context29.stop();
42250
+ return _context30.stop();
42119
42251
  }
42120
- }, _callee29, this);
42252
+ }, _callee30, this);
42121
42253
  }));
42122
42254
  function loadBasket() {
42123
42255
  return _loadBasket.apply(this, arguments);
@@ -42132,39 +42264,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42132
42264
  }, {
42133
42265
  key: "initBasket",
42134
42266
  value: function () {
42135
- var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(init3D, ignoreFavorites) {
42267
+ var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites) {
42136
42268
  var initSetState, set, basket;
42137
- return _regeneratorRuntime.wrap(function _callee30$(_context30) {
42138
- while (1) switch (_context30.prev = _context30.next) {
42269
+ return _regeneratorRuntime.wrap(function _callee31$(_context31) {
42270
+ while (1) switch (_context31.prev = _context31.next) {
42139
42271
  case 0:
42140
42272
  this.divaNr = this.divaBasketHandler.actDivaNr;
42141
42273
  initSetState = this.getInitStateForSet(!init3D);
42142
42274
  this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
42143
- _context30.next = 5;
42275
+ _context31.next = 5;
42144
42276
  return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
42145
42277
  case 5:
42146
42278
  //TODO check if when basket gets repaired the product match gets called
42147
42279
  set = this.actSet();
42148
42280
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
42149
42281
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
42150
- _context30.next = 10;
42282
+ _context31.next = 10;
42151
42283
  break;
42152
42284
  }
42153
- _context30.next = 10;
42285
+ _context31.next = 10;
42154
42286
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
42155
42287
  case 10:
42156
- _context30.next = 12;
42288
+ _context31.next = 12;
42157
42289
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
42158
42290
  case 12:
42159
- basket = _context30.sent;
42160
- return _context30.abrupt("return", basket);
42291
+ basket = _context31.sent;
42292
+ return _context31.abrupt("return", basket);
42161
42293
  case 14:
42162
42294
  case "end":
42163
- return _context30.stop();
42295
+ return _context31.stop();
42164
42296
  }
42165
- }, _callee30, this);
42297
+ }, _callee31, this);
42166
42298
  }));
42167
- function initBasket(_x80, _x81) {
42299
+ function initBasket(_x85, _x86) {
42168
42300
  return _initBasket.apply(this, arguments);
42169
42301
  }
42170
42302
  return initBasket;
@@ -42178,21 +42310,21 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42178
42310
  }, {
42179
42311
  key: "getValidVariantsLength",
42180
42312
  value: function () {
42181
- var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
42313
+ var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
42182
42314
  var set;
42183
- return _regeneratorRuntime.wrap(function _callee31$(_context31) {
42184
- while (1) switch (_context31.prev = _context31.next) {
42315
+ return _regeneratorRuntime.wrap(function _callee32$(_context32) {
42316
+ while (1) switch (_context32.prev = _context32.next) {
42185
42317
  case 0:
42186
42318
  set = this.actSet();
42187
- _context31.next = 3;
42319
+ _context32.next = 3;
42188
42320
  return favoritesHandlerInstance.getValidVariants(set, true);
42189
42321
  case 3:
42190
- return _context31.abrupt("return", _context31.sent.length);
42322
+ return _context32.abrupt("return", _context32.sent.length);
42191
42323
  case 4:
42192
42324
  case "end":
42193
- return _context31.stop();
42325
+ return _context32.stop();
42194
42326
  }
42195
- }, _callee31, this);
42327
+ }, _callee32, this);
42196
42328
  }));
42197
42329
  function getValidVariantsLength() {
42198
42330
  return _getValidVariantsLength.apply(this, arguments);
@@ -42202,46 +42334,46 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42202
42334
  }, {
42203
42335
  key: "handleFavorites",
42204
42336
  value: function () {
42205
- var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(mode) {
42337
+ var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(mode) {
42206
42338
  var _this5 = this;
42207
42339
  var set, i;
42208
- return _regeneratorRuntime.wrap(function _callee32$(_context32) {
42209
- while (1) switch (_context32.prev = _context32.next) {
42340
+ return _regeneratorRuntime.wrap(function _callee33$(_context33) {
42341
+ while (1) switch (_context33.prev = _context33.next) {
42210
42342
  case 0:
42211
42343
  set = this.actSet();
42212
42344
  i = 0;
42213
42345
  case 2:
42214
42346
  if (!favoritesHandlerInstance.IsCalcForSummary) {
42215
- _context32.next = 11;
42347
+ _context33.next = 11;
42216
42348
  break;
42217
42349
  }
42218
- _context32.next = 5;
42350
+ _context33.next = 5;
42219
42351
  return DivaUtils.Sleep(200);
42220
42352
  case 5:
42221
42353
  i++;
42222
42354
  if (!(i > 1000)) {
42223
- _context32.next = 9;
42355
+ _context33.next = 9;
42224
42356
  break;
42225
42357
  }
42226
42358
  LOG$1.error(new DivaError('error on generating Variants of Summary'));
42227
- return _context32.abrupt("break", 11);
42359
+ return _context33.abrupt("break", 11);
42228
42360
  case 9:
42229
- _context32.next = 2;
42361
+ _context33.next = 2;
42230
42362
  break;
42231
42363
  case 11:
42232
- _context32.next = 13;
42364
+ _context33.next = 13;
42233
42365
  return favoritesHandlerInstance.handleFavorites(set, mode, this.divaBasketHandler.actBasket, this.saveToBasketWrapper.bind(this), this.doConfigure.bind(this), function () {
42234
42366
  return _this5.update2DGrid(set);
42235
42367
  }, this.actions);
42236
42368
  case 13:
42237
- return _context32.abrupt("return", _context32.sent);
42369
+ return _context33.abrupt("return", _context33.sent);
42238
42370
  case 14:
42239
42371
  case "end":
42240
- return _context32.stop();
42372
+ return _context33.stop();
42241
42373
  }
42242
- }, _callee32, this);
42374
+ }, _callee33, this);
42243
42375
  }));
42244
- function handleFavorites(_x82) {
42376
+ function handleFavorites(_x87) {
42245
42377
  return _handleFavorites.apply(this, arguments);
42246
42378
  }
42247
42379
  return handleFavorites;
@@ -42254,48 +42386,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42254
42386
  }, {
42255
42387
  key: "initSapOrderLinesFromBasket",
42256
42388
  value: function () {
42257
- var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(divaNr, init3D, onlyLoadOldBakset) {
42389
+ var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(divaNr, init3D, onlyLoadOldBakset) {
42258
42390
  var result, oldBasket, basket;
42259
- return _regeneratorRuntime.wrap(function _callee33$(_context33) {
42260
- while (1) switch (_context33.prev = _context33.next) {
42391
+ return _regeneratorRuntime.wrap(function _callee34$(_context34) {
42392
+ while (1) switch (_context34.prev = _context34.next) {
42261
42393
  case 0:
42262
42394
  if (divaNr) this.divaBasketHandler.updateDivaNrInBasket(divaNr);
42263
- _context33.next = 3;
42395
+ _context34.next = 3;
42264
42396
  return this.loadBasket();
42265
42397
  case 3:
42266
- result = _context33.sent;
42398
+ result = _context34.sent;
42267
42399
  if (!onlyLoadOldBakset) {
42268
- _context33.next = 6;
42400
+ _context34.next = 6;
42269
42401
  break;
42270
42402
  }
42271
- return _context33.abrupt("return", {
42403
+ return _context34.abrupt("return", {
42272
42404
  oldBasket: new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket))),
42273
42405
  cache: {}
42274
42406
  });
42275
42407
  case 6:
42276
42408
  if (!(result === false)) {
42277
- _context33.next = 8;
42409
+ _context34.next = 8;
42278
42410
  break;
42279
42411
  }
42280
42412
  throw new Error('Could not load basket! ' + divaNr);
42281
42413
  case 8:
42282
42414
  oldBasket = new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket)));
42283
- _context33.next = 11;
42415
+ _context34.next = 11;
42284
42416
  return this.initBasket(init3D);
42285
42417
  case 11:
42286
- basket = _context33.sent;
42287
- return _context33.abrupt("return", {
42418
+ basket = _context34.sent;
42419
+ return _context34.abrupt("return", {
42288
42420
  basket: basket,
42289
42421
  oldBasket: oldBasket,
42290
42422
  cache: this.api.getJsonDataCache()
42291
42423
  });
42292
42424
  case 13:
42293
42425
  case "end":
42294
- return _context33.stop();
42426
+ return _context34.stop();
42295
42427
  }
42296
- }, _callee33, this);
42428
+ }, _callee34, this);
42297
42429
  }));
42298
- function initSapOrderLinesFromBasket(_x83, _x84, _x85) {
42430
+ function initSapOrderLinesFromBasket(_x88, _x89, _x90) {
42299
42431
  return _initSapOrderLinesFromBasket.apply(this, arguments);
42300
42432
  }
42301
42433
  return initSapOrderLinesFromBasket;
@@ -42547,6 +42679,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42547
42679
  this.initViewApiDependencies = undefined;
42548
42680
  this.setHQRenderScript = undefined;
42549
42681
  this.setCamInfo = undefined;
42682
+ this.openContactForm = undefined;
42550
42683
  }
42551
42684
  }]);
42552
42685
  }();
@@ -42953,6 +43086,8 @@ var Grid = /*#__PURE__*/function () {
42953
43086
  _defineProperty(this, "articleRelationsForOtherGroups", void 0);
42954
43087
  //if in theis grid an shelfaccessoire is planned laod this article aswell
42955
43088
  _defineProperty(this, "montageOptions", void 0);
43089
+ //disableCellsByFreeText
43090
+ _defineProperty(this, "disableCellsByMeasures", void 0);
42956
43091
  //this option gets triggered when the shelfplanner is visible and set back when navigating out of shelfstep
42957
43092
  _defineProperty(this, "visitOption", void 0);
42958
43093
  //this field allows the shelfplanner on the rule the cellCount and ArticleRelations can change
@@ -42978,6 +43113,7 @@ var Grid = /*#__PURE__*/function () {
42978
43113
  this.showAfterOPT = data.ShowAfterOPT;
42979
43114
  this.showOnRule = grid.ShowOnRule;
42980
43115
  this.montageOptions = grid.MontageOptions;
43116
+ this.disableCellsByMeasures = grid.DisableCellsByMeasures;
42981
43117
  this.visitOption = grid.VisitOption;
42982
43118
  this.shelfId = 'SHELFARTICLE_' + article.basketId + '_' + index;
42983
43119
  this.heightGridCellCountOnRule = data.ShelfPlanner[index].HeightGridCellCountOnRule;
@@ -43313,7 +43449,7 @@ var Grid = /*#__PURE__*/function () {
43313
43449
  case 2:
43314
43450
  dontOverwriteOptions = [];
43315
43451
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
43316
- var option, inUseCell, specificAccessoire, options, j, optionCodex, montageOptionState;
43452
+ var option, inUseCell, specificAccessoire, options, j, optionCodex, montageOptionState, _this$article$shelfAc, rest;
43317
43453
  return _regeneratorRuntime.wrap(function _loop$(_context4) {
43318
43454
  while (1) switch (_context4.prev = _context4.next) {
43319
43455
  case 0:
@@ -43321,42 +43457,61 @@ var Grid = /*#__PURE__*/function () {
43321
43457
  inUseCell = _this.cells.find(function (c, i) {
43322
43458
  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);
43323
43459
  });
43324
- specificAccessoire = option.accessoires && inUseCell !== null && inUseCell !== void 0 && inUseCell.Article ? [inUseCell.Article] : undefined;
43460
+ specificAccessoire = [];
43461
+ 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)) {
43462
+ if (inUseCell.Article) specificAccessoire.push(inUseCell.Article);
43463
+ }
43325
43464
  options = Array.isArray(option.optionCodex) ? option.optionCodex : [option.optionCodex];
43326
43465
  j = 0;
43327
- case 5:
43466
+ case 6:
43328
43467
  if (!(j < options.length)) {
43329
- _context4.next = 23;
43468
+ _context4.next = 29;
43330
43469
  break;
43331
43470
  }
43332
43471
  optionCodex = options[j];
43333
43472
  montageOptionState = _this.article.getArticleOptionState('OPT' + optionCodex);
43334
43473
  if (!dontOverwriteOptions.includes(optionCodex)) {
43335
- _context4.next = 10;
43474
+ _context4.next = 11;
43336
43475
  break;
43337
43476
  }
43338
- return _context4.abrupt("continue", 20);
43339
- case 10:
43477
+ return _context4.abrupt("continue", 26);
43478
+ case 11:
43340
43479
  if (!inUseCell) {
43341
- _context4.next = 17;
43480
+ _context4.next = 18;
43342
43481
  break;
43343
43482
  }
43344
43483
  if (montageOptionState) montageOptionState.val = montageOptionState.visibleOptionValues['OPVMIT'];
43345
- _context4.next = 14;
43484
+ _context4.next = 15;
43346
43485
  return _this.updateAccessoireMontageOption('OPT' + optionCodex, 'OPVMIT', specificAccessoire);
43347
- case 14:
43486
+ case 15:
43348
43487
  dontOverwriteOptions.push(optionCodex);
43349
- _context4.next = 20;
43488
+ _context4.next = 21;
43350
43489
  break;
43351
- case 17:
43490
+ case 18:
43352
43491
  if (montageOptionState) montageOptionState.val = montageOptionState.visibleOptionValues['OPVOHNE'];
43353
- _context4.next = 20;
43354
- return _this.updateAccessoireMontageOption('OPT' + optionCodex, 'OPVOHNE');
43355
- case 20:
43492
+ _context4.next = 21;
43493
+ return _this.updateAccessoireMontageOption('OPT' + optionCodex, 'OPVOHNE', []);
43494
+ case 21:
43495
+ if (!specificAccessoire.length) {
43496
+ _context4.next = 26;
43497
+ break;
43498
+ }
43499
+ rest = Object.values((_this$article$shelfAc = _this.article.shelfAccessoires) !== null && _this$article$shelfAc !== void 0 ? _this$article$shelfAc : {}).filter(function (a) {
43500
+ return !specificAccessoire.find(function (b) {
43501
+ return b.basketId == a.basketId;
43502
+ });
43503
+ });
43504
+ if (!rest.length) {
43505
+ _context4.next = 26;
43506
+ break;
43507
+ }
43508
+ _context4.next = 26;
43509
+ return _this.updateAccessoireMontageOption('OPT' + optionCodex, 'OPVOHNE', rest);
43510
+ case 26:
43356
43511
  j++;
43357
- _context4.next = 5;
43512
+ _context4.next = 6;
43358
43513
  break;
43359
- case 23:
43514
+ case 29:
43360
43515
  case "end":
43361
43516
  return _context4.stop();
43362
43517
  }
@@ -43388,12 +43543,12 @@ var Grid = /*#__PURE__*/function () {
43388
43543
  key: "updateAccessoireMontageOption",
43389
43544
  value: function () {
43390
43545
  var _updateAccessoireMontageOption = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(optionCodex, optionValueCodex, accessoires) {
43391
- var _this$article$shelfAc;
43546
+ var _this$article$shelfAc2;
43392
43547
  var i;
43393
43548
  return _regeneratorRuntime.wrap(function _callee5$(_context6) {
43394
43549
  while (1) switch (_context6.prev = _context6.next) {
43395
43550
  case 0:
43396
- if (!accessoires) accessoires = Object.values((_this$article$shelfAc = this.article.shelfAccessoires) !== null && _this$article$shelfAc !== void 0 ? _this$article$shelfAc : {});
43551
+ if (!accessoires.length) accessoires = Object.values((_this$article$shelfAc2 = this.article.shelfAccessoires) !== null && _this$article$shelfAc2 !== void 0 ? _this$article$shelfAc2 : {});
43397
43552
  i = 0;
43398
43553
  case 2:
43399
43554
  if (!(i < accessoires.length)) {
@@ -43496,145 +43651,204 @@ var Grid = /*#__PURE__*/function () {
43496
43651
  */
43497
43652
  }, {
43498
43653
  key: "moveCell",
43499
- value: function moveCell(initialIndex, finalIndex) {
43500
- var _this2 = this;
43501
- var cellsMoving = {};
43502
- var cellsMovingFinalPosition = {};
43503
- var cellsAjusting = {};
43504
- var cellsAtStart = [];
43505
- var cellsAtEnd = [];
43506
- var startAndFinalSwitched = false;
43507
- if (initialIndex > finalIndex) {
43508
- var tmp = finalIndex;
43509
- finalIndex = initialIndex;
43510
- initialIndex = tmp;
43511
- startAndFinalSwitched = true;
43512
- }
43513
-
43514
- //ajust finalIndex maybe at the place is already an element
43515
- if (!startAndFinalSwitched) {
43516
- while (this.cells[finalIndex] && this.cells[finalIndex].InUse != -1 && this.cells[finalIndex + 1] !== undefined) {
43517
- finalIndex++;
43518
- }
43519
- }
43520
- for (var i = 0; i < initialIndex; i++) {
43521
- cellsAtStart.push(this.cells[i]);
43522
- }
43523
- if (!startAndFinalSwitched) {
43524
- //moving up
43525
- for (var _i5 = 0; _i5 < this.cells.length; _i5++) {
43526
- if (this.cells[_i5].InUse == initialIndex || this.cells[_i5].OnBoard == initialIndex) {
43527
- cellsMoving[_i5] = this.cells[_i5];
43528
- }
43529
- }
43530
- var cellsMovingCount = Object.keys(cellsMoving).length;
43531
- for (var _i6 = initialIndex; _i6 <= finalIndex; _i6++) {
43532
- if (!cellsMoving[_i6]) {
43533
- cellsAjusting[_i6 - cellsMovingCount] = this.cells[_i6];
43534
- }
43535
- }
43536
- var cellsAjustingCount = Object.keys(cellsAjusting).length;
43537
- for (var key in cellsMoving) {
43538
- cellsMovingFinalPosition[Number(key) + cellsAjustingCount] = cellsMoving[key];
43539
- }
43540
- for (var _i7 = finalIndex + 1; _i7 < this.cells.length; _i7++) {
43541
- cellsAtEnd.push(this.cells[_i7]);
43542
- }
43543
- } else {
43544
- //moving down
43545
- for (var _i8 = 0; _i8 < this.cells.length; _i8++) {
43546
- if (this.cells[_i8].InUse == finalIndex || this.cells[_i8].OnBoard == finalIndex) {
43547
- cellsMoving[_i8] = this.cells[_i8];
43548
- }
43549
- }
43550
- var _cellsMovingCount = Object.keys(cellsMoving).length;
43551
- for (var _i9 = initialIndex; _i9 <= finalIndex; _i9++) {
43552
- if (!cellsMoving[_i9]) {
43553
- cellsAjusting[_i9 + _cellsMovingCount] = this.cells[_i9];
43554
- }
43555
- }
43556
- var _cellsAjustingCount = Object.keys(cellsAjusting).length;
43557
- for (var _key in cellsMoving) {
43558
- cellsMovingFinalPosition[Number(_key) - _cellsAjustingCount] = cellsMoving[_key];
43559
- }
43560
- for (var _i10 = finalIndex + _cellsMovingCount; _i10 < this.cells.length; _i10++) {
43561
- cellsAtEnd.push(this.cells[_i10]);
43562
- }
43563
- }
43654
+ value: (function () {
43655
+ var _moveCell = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(initialIndex, finalIndex) {
43656
+ var _this2 = this;
43657
+ 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;
43658
+ return _regeneratorRuntime.wrap(function _callee6$(_context8) {
43659
+ while (1) switch (_context8.prev = _context8.next) {
43660
+ case 0:
43661
+ cellsMoving = {};
43662
+ cellsMovingFinalPosition = {};
43663
+ cellsAjusting = {};
43664
+ cellsAtStart = [];
43665
+ cellsAtEnd = [];
43666
+ startAndFinalSwitched = false;
43667
+ if (initialIndex > finalIndex) {
43668
+ tmp = finalIndex;
43669
+ finalIndex = initialIndex;
43670
+ initialIndex = tmp;
43671
+ startAndFinalSwitched = true;
43672
+ }
43673
+
43674
+ //ajust finalIndex maybe at the place is already an element
43675
+ if (!startAndFinalSwitched) {
43676
+ while (this.cells[finalIndex] && this.cells[finalIndex].InUse != -1 && this.cells[finalIndex + 1] !== undefined) {
43677
+ finalIndex++;
43678
+ }
43679
+ }
43680
+ for (i = 0; i < initialIndex; i++) {
43681
+ cellsAtStart.push(this.cells[i]);
43682
+ }
43683
+ if (!startAndFinalSwitched) {
43684
+ //moving up
43685
+ for (_i5 = 0; _i5 < this.cells.length; _i5++) {
43686
+ if (this.cells[_i5].InUse == initialIndex || this.cells[_i5].OnBoard == initialIndex) {
43687
+ cellsMoving[_i5] = this.cells[_i5];
43688
+ }
43689
+ }
43690
+ cellsMovingCount = Object.keys(cellsMoving).length;
43691
+ for (_i6 = initialIndex; _i6 <= finalIndex; _i6++) {
43692
+ if (!cellsMoving[_i6]) {
43693
+ cellsAjusting[_i6 - cellsMovingCount] = this.cells[_i6];
43694
+ }
43695
+ }
43696
+ cellsAjustingCount = Object.keys(cellsAjusting).length;
43697
+ for (key in cellsMoving) {
43698
+ cellsMovingFinalPosition[Number(key) + cellsAjustingCount] = cellsMoving[key];
43699
+ }
43700
+ for (_i7 = finalIndex + 1; _i7 < this.cells.length; _i7++) {
43701
+ cellsAtEnd.push(this.cells[_i7]);
43702
+ }
43703
+ } else {
43704
+ //moving down
43705
+ for (_i8 = 0; _i8 < this.cells.length; _i8++) {
43706
+ if (this.cells[_i8].InUse == finalIndex || this.cells[_i8].OnBoard == finalIndex) {
43707
+ cellsMoving[_i8] = this.cells[_i8];
43708
+ }
43709
+ }
43710
+ _cellsMovingCount = Object.keys(cellsMoving).length;
43711
+ for (_i9 = initialIndex; _i9 <= finalIndex; _i9++) {
43712
+ if (!cellsMoving[_i9]) {
43713
+ cellsAjusting[_i9 + _cellsMovingCount] = this.cells[_i9];
43714
+ }
43715
+ }
43716
+ _cellsAjustingCount = Object.keys(cellsAjusting).length;
43717
+ for (_key in cellsMoving) {
43718
+ cellsMovingFinalPosition[Number(_key) - _cellsAjustingCount] = cellsMoving[_key];
43719
+ }
43720
+ for (_i10 = finalIndex + _cellsMovingCount; _i10 < this.cells.length; _i10++) {
43721
+ cellsAtEnd.push(this.cells[_i10]);
43722
+ }
43723
+ }
43564
43724
 
43565
- // if an element gets moved which shouldnt be moved dont fill the cells with the new order and just cancel
43566
- for (var _key2 in cellsAjusting) {
43567
- if (cellsAjusting[_key2].IsDisabled || cellsAjusting[_key2].NoMove) {
43568
- return;
43569
- }
43570
- }
43571
- var oldCells = this.cells;
43572
- // fill cells with new order
43573
- this.cells = [];
43574
- this.cells = cellsAtStart;
43575
- if (!startAndFinalSwitched) {
43576
- for (var _key3 in cellsAjusting) {
43577
- this.cells.push(cellsAjusting[_key3]);
43578
- }
43579
- for (var _key4 in cellsMovingFinalPosition) {
43580
- this.cells.push(cellsMovingFinalPosition[_key4]);
43581
- }
43582
- } else {
43583
- for (var _key5 in cellsMovingFinalPosition) {
43584
- this.cells.push(cellsMovingFinalPosition[_key5]);
43585
- }
43586
- for (var _key6 in cellsAjusting) {
43587
- this.cells.push(cellsAjusting[_key6]);
43588
- }
43589
- }
43590
- for (var _i11 = 0; _i11 < cellsAtEnd.length; _i11++) {
43591
- this.cells.push(cellsAtEnd[_i11]);
43592
- }
43593
- for (var _i12 = 0; _i12 < this.cells.length; _i12++) {
43594
- this.cells[_i12].moveCellToIndex(_i12);
43595
- }
43725
+ // if an element gets moved which shouldnt be moved dont fill the cells with the new order and just cancel
43726
+ _context8.t0 = _regeneratorRuntime.keys(cellsAjusting);
43727
+ case 11:
43728
+ if ((_context8.t1 = _context8.t0()).done) {
43729
+ _context8.next = 17;
43730
+ break;
43731
+ }
43732
+ _key2 = _context8.t1.value;
43733
+ if (!(cellsAjusting[_key2].IsDisabled || cellsAjusting[_key2].NoMove)) {
43734
+ _context8.next = 15;
43735
+ break;
43736
+ }
43737
+ return _context8.abrupt("return");
43738
+ case 15:
43739
+ _context8.next = 11;
43740
+ break;
43741
+ case 17:
43742
+ oldCells = this.cells; // fill cells with new order
43743
+ this.cells = [];
43744
+ this.cells = cellsAtStart;
43745
+ if (!startAndFinalSwitched) {
43746
+ for (_key3 in cellsAjusting) {
43747
+ this.cells.push(cellsAjusting[_key3]);
43748
+ }
43749
+ for (_key4 in cellsMovingFinalPosition) {
43750
+ this.cells.push(cellsMovingFinalPosition[_key4]);
43751
+ }
43752
+ } else {
43753
+ for (_key5 in cellsMovingFinalPosition) {
43754
+ this.cells.push(cellsMovingFinalPosition[_key5]);
43755
+ }
43756
+ for (_key6 in cellsAjusting) {
43757
+ this.cells.push(cellsAjusting[_key6]);
43758
+ }
43759
+ }
43760
+ for (_i11 = 0; _i11 < cellsAtEnd.length; _i11++) {
43761
+ this.cells.push(cellsAtEnd[_i11]);
43762
+ }
43763
+ for (_i12 = 0; _i12 < this.cells.length; _i12++) {
43764
+ this.cells[_i12].moveCellToIndex(_i12);
43765
+ }
43596
43766
 
43597
- //check for all the accessoires that moved during the process if they are allowed to be there
43598
- var accessoriesMoved = [];
43599
- var _loop2 = function _loop2() {
43600
- var cell = _this2.cells[_i13];
43601
- if (cell.Type == 'fitsOnParentRule' && cell.InUse > -1 && !accessoriesMoved.find(function (a) {
43602
- var _cell$Article2;
43603
- return ((_cell$Article2 = cell.Article) === null || _cell$Article2 === void 0 ? void 0 : _cell$Article2.basketId) == a.basketId;
43604
- })) {
43605
- var _cell$Article3;
43606
- accessoriesMoved.push({
43607
- article: cell.Article,
43608
- basketId: (_cell$Article3 = cell.Article) === null || _cell$Article3 === void 0 ? void 0 : _cell$Article3.basketId,
43609
- index: cell.InUse
43610
- });
43611
- }
43612
- };
43613
- for (var _i13 = 0; _i13 < this.cells.length; _i13++) {
43614
- _loop2();
43615
- }
43616
- var resetCells = false;
43617
- for (var _i14 = 0; _i14 < accessoriesMoved.length; _i14++) {
43618
- var result = this.tryFitOnShelf(accessoriesMoved[_i14].article, accessoriesMoved[_i14].index, accessoriesMoved[_i14].article.shelfPlanner, true);
43619
- if (result && result.type === 'fitsOnParentRule' && result.index === accessoriesMoved[_i14].index) ; else {
43620
- resetCells = true;
43621
- break;
43622
- }
43623
- }
43624
- if (resetCells) {
43625
- this.cells = oldCells;
43626
- for (var _i15 = 0; _i15 < this.cells.length; _i15++) {
43627
- this.cells[_i15].moveCellToIndex(_i15);
43628
- }
43767
+ //check for all the accessoires that moved during the process if they are allowed to be there
43768
+ accessoriesMoved = [];
43769
+ _loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
43770
+ var cell, _cell$Article3;
43771
+ return _regeneratorRuntime.wrap(function _loop2$(_context7) {
43772
+ while (1) switch (_context7.prev = _context7.next) {
43773
+ case 0:
43774
+ cell = _this2.cells[_i13];
43775
+ if (cell.Type == 'fitsOnParentRule' && cell.InUse > -1 && !accessoriesMoved.find(function (a) {
43776
+ var _cell$Article2;
43777
+ return ((_cell$Article2 = cell.Article) === null || _cell$Article2 === void 0 ? void 0 : _cell$Article2.basketId) == a.basketId;
43778
+ })) {
43779
+ accessoriesMoved.push({
43780
+ article: cell.Article,
43781
+ basketId: (_cell$Article3 = cell.Article) === null || _cell$Article3 === void 0 ? void 0 : _cell$Article3.basketId,
43782
+ index: cell.InUse
43783
+ });
43784
+ }
43785
+ case 2:
43786
+ case "end":
43787
+ return _context7.stop();
43788
+ }
43789
+ }, _loop2);
43790
+ });
43791
+ _i13 = 0;
43792
+ case 26:
43793
+ if (!(_i13 < this.cells.length)) {
43794
+ _context8.next = 31;
43795
+ break;
43796
+ }
43797
+ return _context8.delegateYield(_loop2(), "t2", 28);
43798
+ case 28:
43799
+ _i13++;
43800
+ _context8.next = 26;
43801
+ break;
43802
+ case 31:
43803
+ resetCells = false;
43804
+ _i14 = 0;
43805
+ case 33:
43806
+ if (!(_i14 < accessoriesMoved.length)) {
43807
+ _context8.next = 43;
43808
+ break;
43809
+ }
43810
+ result = this.tryFitOnShelf(accessoriesMoved[_i14].article, accessoriesMoved[_i14].index, accessoriesMoved[_i14].article.shelfPlanner, true);
43811
+ if (!(result && result.type === 'fitsOnParentRule' && result.index === accessoriesMoved[_i14].index)) {
43812
+ _context8.next = 38;
43813
+ break;
43814
+ }
43815
+ _context8.next = 40;
43816
+ break;
43817
+ case 38:
43818
+ resetCells = true;
43819
+ return _context8.abrupt("break", 43);
43820
+ case 40:
43821
+ _i14++;
43822
+ _context8.next = 33;
43823
+ break;
43824
+ case 43:
43825
+ if (resetCells) {
43826
+ this.cells = oldCells;
43827
+ for (_i15 = 0; _i15 < this.cells.length; _i15++) {
43828
+ this.cells[_i15].moveCellToIndex(_i15);
43829
+ }
43830
+ }
43831
+ this.updateRequredCells();
43832
+ _context8.next = 47;
43833
+ return this.updateMontageOption();
43834
+ case 47:
43835
+ return _context8.abrupt("return", resetCells ? 'RESETTED_CELLS' : 'SUCCESS');
43836
+ case 48:
43837
+ case "end":
43838
+ return _context8.stop();
43839
+ }
43840
+ }, _callee6, this);
43841
+ }));
43842
+ function moveCell(_x11, _x12) {
43843
+ return _moveCell.apply(this, arguments);
43629
43844
  }
43630
- this.updateRequredCells();
43631
- return resetCells ? 'RESETTED_CELLS' : 'SUCCESS';
43632
- }
43633
-
43845
+ return moveCell;
43846
+ }()
43634
43847
  /**
43635
43848
  *
43636
43849
  * @returns if one or more cells a still required return true
43637
43850
  */
43851
+ )
43638
43852
  }, {
43639
43853
  key: "areCellsStillRequired",
43640
43854
  value: function areCellsStillRequired() {
@@ -43846,6 +44060,28 @@ var Grid = /*#__PURE__*/function () {
43846
44060
  }
43847
44061
  return true;
43848
44062
  }
44063
+ }, {
44064
+ key: "getCellCount",
44065
+ value: function getCellCount(dp) {
44066
+ var count = this.cells.length;
44067
+ if (this.DisableCellsByMeasures) {
44068
+ var lowestMeasure = undefined;
44069
+ var options = this.DisableCellsByMeasures.options;
44070
+ for (var i = 0; i < options.length; i++) {
44071
+ if (options[i].dp && dp && dp == options[i].dp) continue;
44072
+ var o = options[i].opt;
44073
+ var ops = this.article.getArticleOptionState('OPT' + o);
44074
+ if (!ops) continue;
44075
+ if (!isNaN(Number(ops.freeText)) && (lowestMeasure === undefined || lowestMeasure > Number(ops.freeText))) lowestMeasure = Number(ops.freeText);
44076
+ }
44077
+ if (lowestMeasure) {
44078
+ var ratio = this.DisableCellsByMeasures.maxMeasure / this.cells.length;
44079
+ var rest = this.DisableCellsByMeasures.maxMeasure - lowestMeasure;
44080
+ count = this.cells.length - Math.round(rest / ratio);
44081
+ }
44082
+ }
44083
+ return count;
44084
+ }
43849
44085
  }, {
43850
44086
  key: "ShelfId",
43851
44087
  get: function get() {
@@ -43997,6 +44233,11 @@ var Grid = /*#__PURE__*/function () {
43997
44233
  set: function set(val) {
43998
44234
  this.disabledByRule = val;
43999
44235
  }
44236
+ }, {
44237
+ key: "DisableCellsByMeasures",
44238
+ get: function get() {
44239
+ return this.disableCellsByMeasures;
44240
+ }
44000
44241
  }, {
44001
44242
  key: "ArticleRelationsForOtherGroups",
44002
44243
  get: function get() {