@crystaldesign/web-planner-logic 24.12.0-beta.6 → 24.12.0-beta.8

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 (52) hide show
  1. package/build/cjs/{DivaBoxPlanner-24c3effa.js → DivaBoxPlanner-7b508f32.js} +3 -3
  2. package/build/cjs/{DivaStandardPlanner-b62c0304.js → DivaStandardPlanner-c73e6e57.js} +17 -81
  3. package/build/cjs/{DoorPlanner-27606bf5.js → DoorPlanner-ffa7af62.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-0ac712b7.js → Host3DSignalR-d3830717.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-cfdd098a.js → LiviqueWWSHandler-85a1dc89.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-e8efc3dc.js → PfisterWWSHandler-b47dba23.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-5330f8e0.js → PlannerHandler2D-9d9d1af9.js} +27 -37
  8. package/build/cjs/{ProductBasketHandler-0748483c.js → ProductBasketHandler-22cb7ee4.js} +1 -1
  9. package/build/cjs/{SeriousBasketHandler-899cfde8.js → SeriousBasketHandler-28f031fa.js} +1 -1
  10. package/build/cjs/{ShelfPlanner-3b246a69.js → ShelfPlanner-4b697826.js} +1 -1
  11. package/build/cjs/{StandardWWSHandler-7468715d.js → StandardWWSHandler-ab0c107b.js} +1 -1
  12. package/build/cjs/{index-3f62a309.js → index-bceec53b.js} +297 -205
  13. package/build/cjs/index.js +1 -1
  14. package/build/esm/{DivaBoxPlanner-4071a7c8.js → DivaBoxPlanner-81bbe89c.js} +3 -3
  15. package/build/esm/{DivaStandardPlanner-70df13db.js → DivaStandardPlanner-c3f7e518.js} +17 -81
  16. package/build/esm/{DoorPlanner-982053c8.js → DoorPlanner-f4b338c4.js} +1 -1
  17. package/build/esm/{Host3DSignalR-4c56ff5e.js → Host3DSignalR-45bb9e24.js} +1 -1
  18. package/build/esm/{LiviqueWWSHandler-b692f264.js → LiviqueWWSHandler-d401b8c4.js} +1 -1
  19. package/build/esm/{PfisterWWSHandler-ecfa8cb2.js → PfisterWWSHandler-ebfad71d.js} +1 -1
  20. package/build/esm/{PlannerHandler2D-b2a7194e.js → PlannerHandler2D-fb755d99.js} +27 -37
  21. package/build/esm/{ProductBasketHandler-5f1f22c2.js → ProductBasketHandler-68443648.js} +1 -1
  22. package/build/esm/{SeriousBasketHandler-ec280d69.js → SeriousBasketHandler-53ff90b8.js} +1 -1
  23. package/build/esm/{ShelfPlanner-e134bcd0.js → ShelfPlanner-569fe7f0.js} +1 -1
  24. package/build/esm/{StandardWWSHandler-9df76d79.js → StandardWWSHandler-b903e37c.js} +1 -1
  25. package/build/esm/{index-d4e4c9f2.js → index-3bbc6483.js} +297 -205
  26. package/build/esm/index.js +1 -1
  27. package/build/types/web-planner-logic/src/index.d.ts +1 -1
  28. package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +3 -2
  30. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/Planner/IDivaSetPlanner.d.ts +1 -1
  32. package/build/types/web-planner-logic/src/interface/Planner/IDivaSetPlanner.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/Planner/IDivaViewPlannerElement.d.ts +0 -2
  34. package/build/types/web-planner-logic/src/interface/Planner/IDivaViewPlannerElement.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/Rules/NotificationRule.d.ts +15 -7
  36. package/build/types/web-planner-logic/src/interface/Rules/NotificationRule.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts +7 -3
  38. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +10 -2
  40. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +8 -1
  42. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
  44. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +2 -3
  45. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
  46. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +26 -5
  47. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  48. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +3 -2
  49. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  50. package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts +1 -3
  51. package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts.map +1 -1
  52. package/package.json +2 -2
@@ -18293,7 +18293,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18293
18293
  DE: 'Achtung alle änderungen gehen verlohren... Bist du sicher?'
18294
18294
  }
18295
18295
  }],
18296
- warningRule: [],
18296
+ warningRules: [],
18297
+ bannerRules: [],
18297
18298
  summaryTabGroupPosition: undefined,
18298
18299
  onConfigSingleDontGeneralize: false,
18299
18300
  ignoreMaxPriceAsBP: false,
@@ -18598,7 +18599,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
18598
18599
  } else if (item.Codex == 'NOTIFICATIONS') {
18599
18600
  _this.catalogData.notificationsRules = JSON.parse(item.Value);
18600
18601
  } else if (item.Codex == 'WARNINGS') {
18601
- _this.catalogData.warningRule = JSON.parse(item.Value);
18602
+ _this.catalogData.warningRules = JSON.parse(item.Value);
18603
+ } else if (item.Codex == 'BANNER') {
18604
+ _this.catalogData.bannerRules = JSON.parse(item.Value);
18602
18605
  } else if (item.Codex == 'IGNORE_MAX_PRICE_AS_BASEPRICE') {
18603
18606
  _this.catalogData.ignoreMaxPriceAsBP = item.Value == '1';
18604
18607
  } else if (item.Codex == 'DONT_USE_VCODEX_FOR_BASKET') {
@@ -19466,9 +19469,14 @@ var DivaCatalogData = /*#__PURE__*/function () {
19466
19469
  return this.catalogData.notificationsRules;
19467
19470
  }
19468
19471
  }, {
19469
- key: "warningRule",
19472
+ key: "warningRules",
19470
19473
  get: function get() {
19471
- return this.catalogData.warningRule;
19474
+ return this.catalogData.warningRules;
19475
+ }
19476
+ }, {
19477
+ key: "bannerRules",
19478
+ get: function get() {
19479
+ return this.catalogData.bannerRules;
19472
19480
  }
19473
19481
  }, {
19474
19482
  key: "dontSaveAlternativeRenderings",
@@ -23551,7 +23559,7 @@ var DivaArticle = /*#__PURE__*/function () {
23551
23559
  break;
23552
23560
  }
23553
23561
  _context.next = 4;
23554
- return import('./ShelfPlanner-e134bcd0.js');
23562
+ return import('./ShelfPlanner-569fe7f0.js');
23555
23563
  case 4:
23556
23564
  _yield$import = _context.sent;
23557
23565
  ShelfPlanner = _yield$import["default"];
@@ -25415,6 +25423,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25415
25423
  }, {
25416
25424
  key: "evalOpvsOnOpvsConstructionRules",
25417
25425
  value: function evalOpvsOnOpvsConstructionRules(article) {
25426
+ var _article$CatalogData$;
25418
25427
  var somethingChanged = false;
25419
25428
  var previousRules = {};
25420
25429
  if (article.updatedOPVbyOPVConstructionRules) {
@@ -25478,19 +25487,20 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25478
25487
  }
25479
25488
  }
25480
25489
  }
25481
- var notifications = this.checkNotificationRules(article.CatalogData.warningRule, _defineProperty({}, article.basketId, article), {});
25482
- if (notifications !== null && notifications !== void 0 && notifications.length) {
25483
- for (var _i3 = 0; _i3 < notifications.length; _i3++) {
25484
- var _item = notifications[_i3];
25485
- if (!_item.showAsWarning) continue;
25486
- article.addUpdatedOPVbyOPVConstructionRules(_item.showAsWarning.option + ';' + _item.showAsWarning.optionValue, article.updateOPVConstruction('OPT' + _item.showAsWarning.option, 'OPV' + _item.showAsWarning.optionValue, {
25487
- message: _item.message,
25488
- type: _item.type == 'error' ? 'DISABLE' : 'WARNING'
25489
- }));
25490
+ if ((_article$CatalogData$ = article.CatalogData.warningRules) !== null && _article$CatalogData$ !== void 0 && _article$CatalogData$.length) {
25491
+ var notifications = this.checkNotificationRules(article.CatalogData.warningRules, _defineProperty({}, article.basketId, article), {});
25492
+ if (notifications !== null && notifications !== void 0 && notifications.length) {
25493
+ for (var _i3 = 0; _i3 < notifications.length; _i3++) {
25494
+ var _item = notifications[_i3];
25495
+ if (!_item.showAsWarning) continue;
25496
+ article.addUpdatedOPVbyOPVConstructionRules(_item.showAsWarning.option + ';' + _item.showAsWarning.optionValue, article.updateOPVConstruction('OPT' + _item.showAsWarning.option, 'OPV' + _item.showAsWarning.optionValue, {
25497
+ message: _item.message,
25498
+ type: _item.type == 'error' ? 'DISABLE' : 'WARNING'
25499
+ }));
25500
+ }
25501
+ somethingChanged = true;
25490
25502
  }
25491
- somethingChanged = true;
25492
25503
  }
25493
-
25494
25504
  //falls die vorherigen reglen anders sind wie die neuen, artiklekonfiguration neu laden
25495
25505
  if (somethingChanged && JSON.stringify(previousRules) != JSON.stringify(article.updatedOPVbyOPVConstructionRules)) {
25496
25506
  this.updateCfgValues(article, {}, {});
@@ -25506,7 +25516,6 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25506
25516
  }, {
25507
25517
  key: "checkNotificationRules",
25508
25518
  value: function checkNotificationRules(toCheckRules, articles, visitedOptions, event) {
25509
- if (!(toCheckRules !== null && toCheckRules !== void 0 && toCheckRules.length)) return;
25510
25519
  var returnValue = [];
25511
25520
  for (var i = 0; i < toCheckRules.length; i++) {
25512
25521
  var entry = toCheckRules[i];
@@ -25514,27 +25523,12 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25514
25523
  var ruleValid = false;
25515
25524
  for (var j = 0; j < rules.length; j++) {
25516
25525
  for (var basketId in articles) {
25517
- var _rule$articles;
25518
25526
  ruleValid = false;
25519
25527
  var rule = rules[j];
25520
25528
  var article = articles[basketId];
25521
- if ((_rule$articles = rule.articles) !== null && _rule$articles !== void 0 && _rule$articles.length && !rule.articles.includes(article.articleCodex)) continue;
25522
- if (rule.variantValues && !this.objectIncudesObject(rule.variantValues, article.VariantValuesWithoutOPTandOPV)) continue;
25523
- if (rule.visitedOptions && !this.arrayIncludesArray(rule.visitedOptions, visitedOptions[basketId])) continue;
25524
- if (rule.jsFormula && !article.evalRule(DivaUtils.getRuleByFormula(rule.jsFormula))) continue;
25525
- if (rule.sizes) console.error('size logic not jet implemented');
25529
+ if (!this.checkRule(rule, article, visitedOptions)) continue;
25526
25530
  if ((event === null || event === void 0 ? void 0 : event.type) == 'config' && entry.type == 'notification') {
25527
- var _entry$checkOnEvents, _entry$checkOnEvents2, _entry$checkOnEvents3, _entry$checkOnEvents4;
25528
- var checkOPT = (_entry$checkOnEvents = entry.checkOnEvents) !== null && _entry$checkOnEvents !== void 0 && _entry$checkOnEvents.option ? 'OPT' + ((_entry$checkOnEvents2 = entry.checkOnEvents) === null || _entry$checkOnEvents2 === void 0 ? void 0 : _entry$checkOnEvents2.option) : undefined;
25529
- var checkOPV = (_entry$checkOnEvents3 = entry.checkOnEvents) !== null && _entry$checkOnEvents3 !== void 0 && _entry$checkOnEvents3.optionValue ? 'OPV' + ((_entry$checkOnEvents4 = entry.checkOnEvents) === null || _entry$checkOnEvents4 === void 0 ? void 0 : _entry$checkOnEvents4.optionValue) : undefined;
25530
- if (checkOPT) {
25531
- if (Array.isArray(checkOPT) && !checkOPT.includes(event.data.optionCodex)) continue;
25532
- if (!Array.isArray(checkOPT) && checkOPT !== event.data.optionCodex) continue;
25533
- }
25534
- if (checkOPV) {
25535
- if (Array.isArray(checkOPV) && !checkOPV.includes(event.data.optionValueCodex)) continue;
25536
- if (!Array.isArray(checkOPV) && checkOPV !== event.data.optionValueCodex) continue;
25537
- }
25531
+ if (!this.checkOnEvent(event.checkOnEvents, event.data)) continue;
25538
25532
  }
25539
25533
  ruleValid = true;
25540
25534
  break;
@@ -25550,6 +25544,35 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25550
25544
  }
25551
25545
  return returnValue;
25552
25546
  }
25547
+ }, {
25548
+ key: "checkRule",
25549
+ value: function checkRule(rule, article, visitedOptions) {
25550
+ var _rule$articles;
25551
+ if ((_rule$articles = rule.articles) !== null && _rule$articles !== void 0 && _rule$articles.length && !rule.articles.includes(article.articleCodex)) return false;
25552
+ if (rule.variantValues && !this.objectIncudesObject(rule.variantValues, article.VariantValuesWithoutOPTandOPV)) return false;
25553
+ if (rule.visitedOptions && !this.arrayIncludesArray(rule.visitedOptions, visitedOptions[article.basketId])) return false;
25554
+ if (rule.jsFormula && !article.evalRule(DivaUtils.getRuleByFormula(rule.jsFormula))) return false;
25555
+ if (rule.sizes) {
25556
+ console.error('size logic not jet implemented');
25557
+ return false;
25558
+ }
25559
+ return true;
25560
+ }
25561
+ }, {
25562
+ key: "checkOnEvent",
25563
+ value: function checkOnEvent(event, data) {
25564
+ var checkOPT = event !== null && event !== void 0 && event.option ? 'OPT' + (event === null || event === void 0 ? void 0 : event.option) : undefined;
25565
+ var checkOPV = event !== null && event !== void 0 && event.optionValue ? 'OPV' + (event === null || event === void 0 ? void 0 : event.optionValue) : undefined;
25566
+ if (checkOPT) {
25567
+ if (Array.isArray(checkOPT) && !checkOPT.includes(data.optionCodex)) return false;
25568
+ if (!Array.isArray(checkOPT) && checkOPT !== data.optionCodex) return false;
25569
+ }
25570
+ if (checkOPV) {
25571
+ if (Array.isArray(checkOPV) && !checkOPV.includes(data.optionValueCodex)) return false;
25572
+ if (!Array.isArray(checkOPV) && checkOPV !== data.optionValueCodex) return false;
25573
+ }
25574
+ return true;
25575
+ }
25553
25576
  }, {
25554
25577
  key: "objectIncudesObject",
25555
25578
  value: function objectIncudesObject(smallerObject, biggerObject) {
@@ -27012,14 +27035,9 @@ var DivaSet = /*#__PURE__*/function () {
27012
27035
  return _ref.apply(this, arguments);
27013
27036
  };
27014
27037
  }());
27015
- _defineProperty(this, "setPosNr", function (elementId, posNr, accNr) {
27038
+ _defineProperty(this, "setPosNr", function (elementId, posNr) {
27016
27039
  var article = _this.getArticleByElementId(elementId);
27017
- if (article) {
27018
- article.posNr = posNr;
27019
- if (accNr != undefined) {
27020
- article.posNr = Number(posNr + '.' + (accNr < 10 ? '0' : '') + accNr.toString());
27021
- }
27022
- }
27040
+ if (article) article.posNr = posNr;
27023
27041
  _this.sortDivaArticlesByArticlePosNr();
27024
27042
  });
27025
27043
  _defineProperty(this, "setElementId", function (basketID, elementId) {
@@ -27270,54 +27288,56 @@ var DivaSet = /*#__PURE__*/function () {
27270
27288
  }, {
27271
27289
  key: "giveAccNewPosNrByBasketId",
27272
27290
  value: function giveAccNewPosNrByBasketId(BasketIdParent) {
27273
- var curNum = this.giveNotPlannedAccPosNrByBasketId(BasketIdParent);
27291
+ var curNum = this.giveAccPosNrByBasketId(BasketIdParent);
27274
27292
  this.givePartlistAccPosNrByBasketId(BasketIdParent, curNum);
27275
27293
  this.sortDivaArticlesByArticlePosNr();
27276
27294
  }
27277
27295
  }, {
27278
- key: "giveNotPlannedAccPosNrByBasketId",
27279
- value: function giveNotPlannedAccPosNrByBasketId(BasketIdParent, BasketId, curNum) {
27296
+ key: "giveAccPosNrByBasketId",
27297
+ value: function giveAccPosNrByBasketId(basketId) {
27298
+ var curNum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
27280
27299
  var allAccs = [];
27281
27300
  var articles = this.getDivaArticles();
27282
- if (!BasketId) BasketId = BasketIdParent;
27283
- var myParentArticle = articles[BasketIdParent];
27284
- var _this$getSplitPlanned = this.getSplitPlannedAccessoiresOfBasketId(BasketId),
27301
+ var article = articles[basketId];
27302
+ if (!article) throw new Error('article ' + basketId + ' does not exist');
27303
+ var myParentArticle = article.getBaseParent();
27304
+ var _this$getSplitPlanned = this.getSplitPlannedAccessoiresOfBasketId(basketId),
27285
27305
  notPlannedAcc = _this$getSplitPlanned.notPlannedAcc,
27286
27306
  plannedAcc = _this$getSplitPlanned.plannedAcc;
27287
- if (curNum === undefined) curNum = this.getStartingPosNr(BasketIdParent);
27288
- for (var key in notPlannedAcc) {
27289
- allAccs.push(notPlannedAcc[key]);
27307
+ for (var key in plannedAcc) {
27308
+ allAccs.push(plannedAcc[key]);
27309
+ }
27310
+ for (var _key3 in notPlannedAcc) {
27311
+ allAccs.push(notPlannedAcc[_key3]);
27290
27312
  }
27291
27313
  for (var i = 0; i < allAccs.length; i++) {
27314
+ var accessoire = allAccs[i];
27292
27315
  curNum++;
27293
- allAccs[i].posNr = Number(parseFloat((myParentArticle.posNr + curNum / 100).toString()).toFixed(2));
27294
- if (allAccs[i].shelfAccessoires || Object.keys(allAccs[i].accessoires).length !== 0) {
27295
- curNum = this.giveNotPlannedAccPosNrByBasketId(BasketIdParent, allAccs[i].basketId, curNum);
27316
+ accessoire.posNr = Number(parseFloat((myParentArticle.posNr + curNum / 100).toString()).toFixed(2));
27317
+ if (accessoire.shelfAccessoires || Object.keys(accessoire.accessoires).length !== 0) {
27318
+ curNum = this.giveAccPosNrByBasketId(accessoire.basketId, curNum);
27319
+ }
27320
+ if (accessoire.hasPartlistArticle) {
27321
+ curNum = this.givePartlistAccPosNrByBasketId(accessoire.basketId, curNum);
27296
27322
  }
27297
- }
27298
- for (var _key3 in plannedAcc) {
27299
- curNum = this.giveNotPlannedAccPosNrByBasketId(BasketIdParent, _key3, curNum);
27300
27323
  }
27301
27324
  return curNum;
27302
27325
  }
27303
27326
  }, {
27304
27327
  key: "givePartlistAccPosNrByBasketId",
27305
- value: function givePartlistAccPosNrByBasketId(BasketIdParent, curNum) {
27306
- var articles = this.getDivaArticles();
27307
- if (!Object.entries(articles).length) return;
27308
- var myParentArticle = articles[BasketIdParent];
27309
- var allAcc = [myParentArticle];
27310
- allAcc = allAcc.concat(this.getAccessoiresOfArticleRecursive(BasketIdParent));
27311
- for (var i = 0; i < allAcc.length; i++) {
27312
- var partlistArticles = this.getPartlistArticlesOfArticle(allAcc[i]);
27313
- if (!(partlistArticles !== null && partlistArticles !== void 0 && partlistArticles.length)) continue;
27314
- for (var j = 0; j < partlistArticles.length; j++) {
27315
- var accessoire = partlistArticles[j];
27316
- if (accessoire.hasPartlistArticle && accessoire.isPartListArticle && !accessoire.partlistArticleVisibleInTree) continue;
27317
- curNum++;
27318
- accessoire.posNr = Number(parseFloat((myParentArticle.posNr + curNum / 100).toString()).toFixed(2));
27319
- }
27328
+ value: function givePartlistAccPosNrByBasketId(basketId, curNum) {
27329
+ var article = this.getArticleByBasketId(basketId);
27330
+ if (!article) return curNum;
27331
+ var baseParent = article.getBaseParent();
27332
+ var partlistArticles = this.getPartlistArticlesOfArticle(article);
27333
+ for (var j = 0; j < ((_partlistArticles$len = partlistArticles === null || partlistArticles === void 0 ? void 0 : partlistArticles.length) !== null && _partlistArticles$len !== void 0 ? _partlistArticles$len : 0); j++) {
27334
+ var _partlistArticles$len;
27335
+ var accessoire = partlistArticles[j];
27336
+ if (accessoire.hasPartlistArticle && accessoire.isPartListArticle && !accessoire.partlistArticleVisibleInTree) continue;
27337
+ curNum++;
27338
+ accessoire.posNr = Number(parseFloat((baseParent.posNr + curNum / 100).toString()).toFixed(2));
27320
27339
  }
27340
+ return curNum;
27321
27341
  }
27322
27342
  }, {
27323
27343
  key: "getAccessoiresOfBasketId",
@@ -27349,11 +27369,6 @@ var DivaSet = /*#__PURE__*/function () {
27349
27369
  notPlannedAcc: notPlannedAcc
27350
27370
  };
27351
27371
  }
27352
- }, {
27353
- key: "getStartingPosNr",
27354
- value: function getStartingPosNr(basketid) {
27355
- return this.getAccessoiresOfArticleRecursive(basketid, 'onlyPlanner').length;
27356
- }
27357
27372
  }, {
27358
27373
  key: "getAccessoiresOfBasketIdAsArray",
27359
27374
  value: function getAccessoiresOfBasketIdAsArray(basketId, filter) {
@@ -27674,7 +27689,9 @@ var DivaSet = /*#__PURE__*/function () {
27674
27689
  value: function getArticleByBasketId(basketId) {
27675
27690
  if (this.divaArticles[basketId]) return this.divaArticles[basketId];
27676
27691
  for (var key in this.divaArticles) {
27677
- if (this.divaArticles[key].partlistArticles[basketId]) return this.divaArticles[key].partlistArticles[basketId];
27692
+ var article = this.divaArticles[key];
27693
+ var plArticles = article.getRecursivePartlistArticles();
27694
+ if (plArticles[basketId]) return plArticles[basketId];
27678
27695
  }
27679
27696
  return undefined;
27680
27697
  }
@@ -28072,7 +28089,7 @@ var DivaSet = /*#__PURE__*/function () {
28072
28089
  break;
28073
28090
  }
28074
28091
  _context4.next = 3;
28075
- return import('./DoorPlanner-982053c8.js');
28092
+ return import('./DoorPlanner-f4b338c4.js');
28076
28093
  case 3:
28077
28094
  _yield$import = _context4.sent;
28078
28095
  DoorPlanner = _yield$import["default"];
@@ -30336,46 +30353,49 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
30336
30353
  value: function () {
30337
30354
  var _saveConfigVariantsInBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(set, basket, variant, repairOnly) {
30338
30355
  var _hQRenderScript, _basket$OrderSets$set, _basket$OrderSets$set2;
30339
- var setindex, setImage, urlToPlanning2D, hQRenderScript, plannerData, promises, _yield$Promise$all, _yield$Promise$all2, i, optionsSorted, variantValues, _i3, opt, key, targetArticle, configVariant;
30356
+ var setindex, setImage, dimensions, urlToPlanning2D, hQRenderScript, plannerData, promises, _yield$Promise$all, _yield$Promise$all2, _yield$Promise$all2$, i, optionsSorted, variantValues, _i3, opt, key, targetArticle, configVariant;
30340
30357
  return _regeneratorRuntime.wrap(function _callee5$(_context6) {
30341
30358
  while (1) switch (_context6.prev = _context6.next) {
30342
30359
  case 0:
30343
30360
  setindex = -1;
30344
30361
  setImage = undefined;
30362
+ dimensions = {};
30345
30363
  urlToPlanning2D = undefined;
30346
30364
  hQRenderScript = undefined;
30347
30365
  plannerData = set.plannerHandler.savePlanner(set.getSetId());
30348
30366
  if (repairOnly) {
30349
- _context6.next = 14;
30367
+ _context6.next = 17;
30350
30368
  break;
30351
30369
  }
30352
30370
  promises = [setHandlerInstance.getSetImage(set, true), setHandlerInstance.get2DSetImage(set), setHandlerInstance.getHQRenderScript(set, basket.DivaNr)];
30353
- _context6.next = 9;
30371
+ _context6.next = 10;
30354
30372
  return Promise.all(promises);
30355
- case 9:
30373
+ case 10:
30356
30374
  _yield$Promise$all = _context6.sent;
30357
30375
  _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 3);
30358
- setImage = _yield$Promise$all2[0];
30376
+ _yield$Promise$all2$ = _yield$Promise$all2[0];
30377
+ setImage = _yield$Promise$all2$.url;
30378
+ dimensions = _yield$Promise$all2$.dimensions;
30359
30379
  urlToPlanning2D = _yield$Promise$all2[1];
30360
30380
  hQRenderScript = _yield$Promise$all2[2];
30361
- case 14:
30381
+ case 17:
30362
30382
  i = 0;
30363
- case 15:
30383
+ case 18:
30364
30384
  if (!(i < basket.OrderSets.length)) {
30365
- _context6.next = 22;
30385
+ _context6.next = 25;
30366
30386
  break;
30367
30387
  }
30368
30388
  if (!(set.getSetId() == basket.OrderSets[i].SetID)) {
30369
- _context6.next = 19;
30389
+ _context6.next = 22;
30370
30390
  break;
30371
30391
  }
30372
30392
  setindex = i;
30373
- return _context6.abrupt("break", 22);
30374
- case 19:
30393
+ return _context6.abrupt("break", 25);
30394
+ case 22:
30375
30395
  i++;
30376
- _context6.next = 15;
30396
+ _context6.next = 18;
30377
30397
  break;
30378
- case 22:
30398
+ case 25:
30379
30399
  if (!basket.OrderSets[setindex].ConfigVariants) basket.OrderSets[setindex].ConfigVariants = [];
30380
30400
  optionsSorted = set.CatalogData.getOptionsPosition();
30381
30401
  variantValues = {};
@@ -30386,9 +30406,9 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
30386
30406
  if (targetArticle[opt] && !variantValues[opt]) variantValues[opt] = targetArticle[opt];
30387
30407
  }
30388
30408
  }
30389
- configVariant = new ConfigVariantData(variant.id, set.setName, set.setName_locales, setImage, (_hQRenderScript = hQRenderScript) === null || _hQRenderScript === void 0 ? void 0 : _hQRenderScript._id, DivaUtils.encodeBase64(set.plannerHandler.getProject3D(set.getSetId())), set.getVariantsDescription(), set.SetArticleNr, set.getSetPrice(), set.setHash, 1, set.getVariantBasketData(), articleHandlerInstance.getCompactOrderLine(_objectSpread$a(_objectSpread$a({}, set.getDivaArticles()), set.getPartlistArticlesOfSet())), variantValues, summaryHandlerInstance.convertSummaryItemsToSummaryInfo(set), plannerData != undefined ? DivaUtils.encodeBase64(JSON.stringify(plannerData)) : '', urlToPlanning2D, setHandlerInstance.getBBoxObject(set), set.getBruttoSetPrice(), undefined, undefined, set.MetaData, set.MetaData_locales, DivaUtils.stripTagsFromDict(set.getVariantsDescription_locales()), (_basket$OrderSets$set = basket.OrderSets[setindex].ConfigVariants) === null || _basket$OrderSets$set === void 0 || (_basket$OrderSets$set = _basket$OrderSets$set[set.basketConfigVariants.length]) === null || _basket$OrderSets$set === void 0 ? void 0 : _basket$OrderSets$set.SetOrderText, (_basket$OrderSets$set2 = basket.OrderSets[setindex].ConfigVariants) === null || _basket$OrderSets$set2 === void 0 || (_basket$OrderSets$set2 = _basket$OrderSets$set2[set.basketConfigVariants.length]) === null || _basket$OrderSets$set2 === void 0 ? void 0 : _basket$OrderSets$set2.SetOrderText_locales);
30409
+ configVariant = new ConfigVariantData(variant.id, set.setName, set.setName_locales, setImage, (_hQRenderScript = hQRenderScript) === null || _hQRenderScript === void 0 ? void 0 : _hQRenderScript._id, DivaUtils.encodeBase64(set.plannerHandler.getProject3D(set.getSetId())), set.getVariantsDescription(), set.SetArticleNr, set.getSetPrice(), set.setHash, 1, set.getVariantBasketData(), articleHandlerInstance.getCompactOrderLine(_objectSpread$a(_objectSpread$a({}, set.getDivaArticles()), set.getPartlistArticlesOfSet())), variantValues, summaryHandlerInstance.convertSummaryItemsToSummaryInfo(set), plannerData != undefined ? DivaUtils.encodeBase64(JSON.stringify(plannerData)) : '', urlToPlanning2D, setHandlerInstance.getBBoxObject(set, dimensions), set.getBruttoSetPrice(), undefined, undefined, set.MetaData, set.MetaData_locales, DivaUtils.stripTagsFromDict(set.getVariantsDescription_locales()), (_basket$OrderSets$set = basket.OrderSets[setindex].ConfigVariants) === null || _basket$OrderSets$set === void 0 || (_basket$OrderSets$set = _basket$OrderSets$set[set.basketConfigVariants.length]) === null || _basket$OrderSets$set === void 0 ? void 0 : _basket$OrderSets$set.SetOrderText, (_basket$OrderSets$set2 = basket.OrderSets[setindex].ConfigVariants) === null || _basket$OrderSets$set2 === void 0 || (_basket$OrderSets$set2 = _basket$OrderSets$set2[set.basketConfigVariants.length]) === null || _basket$OrderSets$set2 === void 0 ? void 0 : _basket$OrderSets$set2.SetOrderText_locales);
30390
30410
  set.basketConfigVariants.push(configVariant);
30391
- case 28:
30411
+ case 31:
30392
30412
  case "end":
30393
30413
  return _context6.stop();
30394
30414
  }
@@ -33150,21 +33170,31 @@ var DivaSetHandler = /*#__PURE__*/function () {
33150
33170
  key: "calcVariants",
33151
33171
  value: function () {
33152
33172
  var _calcVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(set, configItems, targetArticles) {
33153
- var variantInfo, origConfig, i, item, variantValues, doUseConfigs, key;
33173
+ var variantInfo, articles, origConfigs, i, item, variantValues, doUseConfigs, targetIndex, origConfig, key, _targetIndex;
33154
33174
  return _regeneratorRuntime.wrap(function _callee24$(_context26) {
33155
33175
  while (1) switch (_context26.prev = _context26.next) {
33156
33176
  case 0:
33157
33177
  variantInfo = [];
33158
- origConfig = set.getDivaArticles()[targetArticles[0]].VariantValues;
33178
+ articles = set.getDivaArticles();
33179
+ origConfigs = targetArticles.map(function (basketId) {
33180
+ return articles[basketId].VariantValues;
33181
+ });
33159
33182
  i = 0;
33160
- case 3:
33183
+ case 4:
33161
33184
  if (!(i < configItems.length)) {
33162
- _context26.next = 16;
33185
+ _context26.next = 23;
33163
33186
  break;
33164
33187
  }
33165
33188
  item = configItems[i];
33166
33189
  variantValues = {};
33167
33190
  doUseConfigs = false;
33191
+ targetIndex = 0;
33192
+ case 9:
33193
+ if (!(targetIndex < origConfigs.length)) {
33194
+ _context26.next = 19;
33195
+ break;
33196
+ }
33197
+ origConfig = origConfigs[targetIndex];
33168
33198
  for (key in origConfig) {
33169
33199
  if (key == item.op || key == item.idmOpgOptionCodex) {
33170
33200
  doUseConfigs = true;
@@ -33172,24 +33202,38 @@ var DivaSetHandler = /*#__PURE__*/function () {
33172
33202
  }
33173
33203
  variantValues[item.op] = item.codex;
33174
33204
  if (item.idmOpgOptionCodex) variantValues[item.idmOpgOptionCodex] = item.idmOpgValCodex;
33175
- _context26.next = 12;
33176
- return this.updateArticlesOptionStatesOfActSet(set, variantValues, targetArticles, true, 'calcVariant');
33177
- case 12:
33205
+ _context26.next = 16;
33206
+ return this.updateArticlesOptionStatesOfActSet(set, variantValues, [targetArticles[targetIndex]], true, 'calcVariant');
33207
+ case 16:
33208
+ targetIndex++;
33209
+ _context26.next = 9;
33210
+ break;
33211
+ case 19:
33178
33212
  variantInfo.push({
33179
33213
  price: set.getSetPrice(),
33180
33214
  variants: set.getGeneralVariantValues(targetArticles),
33181
33215
  opt: item.op
33182
33216
  });
33183
- case 13:
33217
+ case 20:
33184
33218
  i++;
33185
- _context26.next = 3;
33219
+ _context26.next = 4;
33186
33220
  break;
33187
- case 16:
33188
- _context26.next = 18;
33189
- return this.updateArticlesOptionStatesOfActSet(set, origConfig, targetArticles, true);
33190
- case 18:
33221
+ case 23:
33222
+ _targetIndex = 0;
33223
+ case 24:
33224
+ if (!(_targetIndex < origConfigs.length)) {
33225
+ _context26.next = 30;
33226
+ break;
33227
+ }
33228
+ _context26.next = 27;
33229
+ return this.updateArticlesOptionStatesOfActSet(set, origConfigs[_targetIndex], [targetArticles[_targetIndex]], true);
33230
+ case 27:
33231
+ _targetIndex++;
33232
+ _context26.next = 24;
33233
+ break;
33234
+ case 30:
33191
33235
  return _context26.abrupt("return", variantInfo);
33192
- case 19:
33236
+ case 31:
33193
33237
  case "end":
33194
33238
  return _context26.stop();
33195
33239
  }
@@ -33398,6 +33442,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33398
33442
  _loop3();
33399
33443
  }
33400
33444
  }
33445
+ }, {
33446
+ key: "checkBannerRules",
33447
+ value: function checkBannerRules(set, visitedOptions, event) {
33448
+ var bannerRules = set.CatalogData.bannerRules;
33449
+ if (!bannerRules) return;
33450
+ var rules = articleHandlerInstance.checkNotificationRules(bannerRules, set.getDivaArticles(), visitedOptions, event);
33451
+ return rules === null || rules === void 0 ? void 0 : rules[0];
33452
+ }
33401
33453
  }, {
33402
33454
  key: "checkNotificationRules",
33403
33455
  value: function checkNotificationRules(set, targetArticles, visitedOptions, event) {
@@ -33886,7 +33938,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33886
33938
  value: function () {
33887
33939
  var _getOrderSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(set, catalogData, posNr, divaNr, repairOnly, returnTo) {
33888
33940
  var _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
33889
- var dontGenerateImages, orderSet, GroupType, plannerData, setImage, urlToPlanning2D, alternateSetImages, hqRenderScript, promise3D, promise2D, promise3DAlternate, _yield$Promise$all, _yield$Promise$all2, promiseHQRenderScript, _yield$Promise$all3, _yield$Promise$all4, plannerWarnings, bruttoPrice;
33941
+ 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;
33890
33942
  return _regeneratorRuntime.wrap(function _callee29$(_context31) {
33891
33943
  while (1) switch (_context31.prev = _context31.next) {
33892
33944
  case 0:
@@ -33898,8 +33950,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
33898
33950
  urlToPlanning2D = undefined;
33899
33951
  alternateSetImages = undefined;
33900
33952
  hqRenderScript = undefined;
33953
+ dimensions = {};
33901
33954
  if (dontGenerateImages) {
33902
- _context31.next = 25;
33955
+ _context31.next = 28;
33903
33956
  break;
33904
33957
  }
33905
33958
  promise3D = this.getSetImage(set, typeof window === 'undefined');
@@ -33907,22 +33960,24 @@ var DivaSetHandler = /*#__PURE__*/function () {
33907
33960
  if (!catalogData.dontSaveAlternativeRenderings && set.CatalogData.alternateRenderingsForSummary.length) {
33908
33961
  promise3DAlternate = this.getAlternateSetImages(set);
33909
33962
  }
33910
- _context31.next = 14;
33963
+ _context31.next = 15;
33911
33964
  return Promise.all([promise3D, promise2D, promise3DAlternate]);
33912
- case 14:
33965
+ case 15:
33913
33966
  _yield$Promise$all = _context31.sent;
33914
33967
  _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 3);
33915
- setImage = _yield$Promise$all2[0];
33968
+ _yield$Promise$all2$ = _yield$Promise$all2[0];
33969
+ setImage = _yield$Promise$all2$.url;
33970
+ dimensions = _yield$Promise$all2$.dimensions;
33916
33971
  urlToPlanning2D = _yield$Promise$all2[1];
33917
33972
  alternateSetImages = _yield$Promise$all2[2];
33918
33973
  promiseHQRenderScript = this.getHQRenderScript(set, divaNr);
33919
- _context31.next = 22;
33974
+ _context31.next = 25;
33920
33975
  return Promise.all([promiseHQRenderScript]);
33921
- case 22:
33976
+ case 25:
33922
33977
  _yield$Promise$all3 = _context31.sent;
33923
33978
  _yield$Promise$all4 = _slicedToArray(_yield$Promise$all3, 1);
33924
33979
  hqRenderScript = _yield$Promise$all4[0];
33925
- case 25:
33980
+ case 28:
33926
33981
  LOG$8.startTransaction({
33927
33982
  event: 'FillBakset',
33928
33983
  eventId: 'FILL_BASKET',
@@ -33954,7 +34009,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33954
34009
  OfflineData: catalogData.offlineData,
33955
34010
  SetArticleNr: set.SetArticleNr ? set.SetArticleNr : catalogData.retailArticleNr,
33956
34011
  SetArticleNrPrefix: set.SetArticleNrPrefix,
33957
- BBox: this.getBBoxObject(set),
34012
+ BBox: this.getBBoxObject(set, dimensions),
33958
34013
  SetVariantBasketDatas: set.getVariantBasketData(),
33959
34014
  SetImage: setImage,
33960
34015
  //Add url string of current rendering.
@@ -33988,7 +34043,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33988
34043
  MetaData_locales: !((_set$basketConfigVari3 = set.basketConfigVariants) !== null && _set$basketConfigVari3 !== void 0 && _set$basketConfigVari3.length) ? set.MetaData_locales : undefined
33989
34044
  });
33990
34045
  return _context31.abrupt("return", orderSet);
33991
- case 32:
34046
+ case 35:
33992
34047
  case "end":
33993
34048
  return _context31.stop();
33994
34049
  }
@@ -34008,14 +34063,13 @@ var DivaSetHandler = /*#__PURE__*/function () {
34008
34063
  key: "getSetImage",
34009
34064
  value: (function () {
34010
34065
  var _getSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(set, overwriteLastSavedRendering) {
34011
- var setImage, is3D;
34066
+ var is3D, _yield$set$plannerHan, dimensions, url;
34012
34067
  return _regeneratorRuntime.wrap(function _callee30$(_context32) {
34013
34068
  while (1) switch (_context32.prev = _context32.next) {
34014
34069
  case 0:
34015
- setImage = undefined;
34016
34070
  is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
34017
34071
  if (!is3D) {
34018
- _context32.next = 10;
34072
+ _context32.next = 12;
34019
34073
  break;
34020
34074
  }
34021
34075
  LOG$8.startTransaction({
@@ -34023,17 +34077,29 @@ var DivaSetHandler = /*#__PURE__*/function () {
34023
34077
  message: 'render 3D Image',
34024
34078
  eventId: 'RENDER_3D_IMAGE'
34025
34079
  });
34026
- _context32.next = 6;
34080
+ _context32.next = 5;
34027
34081
  return set.plannerHandler.saveSetImage(overwriteLastSavedRendering);
34028
- case 6:
34029
- _context32.next = 8;
34082
+ case 5:
34083
+ _context32.next = 7;
34030
34084
  return set.plannerHandler.getSetImageAsUrl(set.getSetId());
34031
- case 8:
34032
- setImage = _context32.sent;
34085
+ case 7:
34086
+ _yield$set$plannerHan = _context32.sent;
34087
+ dimensions = _yield$set$plannerHan.dimensions;
34088
+ url = _yield$set$plannerHan.url;
34033
34089
  LOG$8.successTransaction('RENDER_3D_IMAGE');
34034
- case 10:
34035
- return _context32.abrupt("return", setImage);
34036
- case 11:
34090
+ return _context32.abrupt("return", {
34091
+ dimensions: dimensions,
34092
+ url: url
34093
+ });
34094
+ case 12:
34095
+ return _context32.abrupt("return", {
34096
+ dimensions: {
34097
+ w: undefined,
34098
+ h: undefined,
34099
+ d: undefined
34100
+ }
34101
+ });
34102
+ case 13:
34037
34103
  case "end":
34038
34104
  return _context32.stop();
34039
34105
  }
@@ -34176,14 +34242,17 @@ var DivaSetHandler = /*#__PURE__*/function () {
34176
34242
  }()
34177
34243
  }, {
34178
34244
  key: "getBBoxObject",
34179
- value: function getBBoxObject(set) {
34245
+ value: function getBBoxObject(set, dimensions) {
34246
+ var _dimensions$w, _dimensions$d, _dimensions$h, _set$api$getI18n$t, _set$api$getI18n, _set$api$getI18n$t2, _set$api$getI18n$t3, _set$api$getI18n2, _set$api$getI18n2$t, _set$api$getI18n$t4, _set$api$getI18n3, _set$api$getI18n3$t;
34180
34247
  var bbox = set.plannerHandler.getSetBoundingBox(set.getSetId());
34181
- return {
34182
- X: bbox.width,
34183
- Y: bbox.depth,
34184
- Z: bbox.height,
34185
- Info: bbox.width + 'cm x ' + bbox.depth + 'cm'
34248
+ var dim = {
34249
+ X: (_dimensions$w = dimensions === null || dimensions === void 0 ? void 0 : dimensions.w) !== null && _dimensions$w !== void 0 ? _dimensions$w : bbox.width,
34250
+ Y: (_dimensions$d = dimensions === null || dimensions === void 0 ? void 0 : dimensions.d) !== null && _dimensions$d !== void 0 ? _dimensions$d : bbox.depth,
34251
+ Z: (_dimensions$h = dimensions === null || dimensions === void 0 ? void 0 : dimensions.h) !== null && _dimensions$h !== void 0 ? _dimensions$h : bbox.height
34186
34252
  };
34253
+ return _objectSpread$8(_objectSpread$8({}, dim), {}, {
34254
+ Info: ((_set$api$getI18n$t = (_set$api$getI18n = set.api.getI18n()) === null || _set$api$getI18n === void 0 || (_set$api$getI18n$t2 = _set$api$getI18n.t) === null || _set$api$getI18n$t2 === void 0 ? void 0 : _set$api$getI18n$t2.call(_set$api$getI18n, 'utils.width_first_letter', 'B')) !== null && _set$api$getI18n$t !== void 0 ? _set$api$getI18n$t : 'B') + ': ' + dim.X + ' cm x ' + ((_set$api$getI18n$t3 = (_set$api$getI18n2 = set.api.getI18n()) === null || _set$api$getI18n2 === void 0 || (_set$api$getI18n2$t = _set$api$getI18n2.t) === null || _set$api$getI18n2$t === void 0 ? void 0 : _set$api$getI18n2$t.call(_set$api$getI18n2, 'utils.depth_first_letter', 'T')) !== null && _set$api$getI18n$t3 !== void 0 ? _set$api$getI18n$t3 : 'T') + ': ' + dim.Y + ' cm' + (dim.Z ? ' x ' + ((_set$api$getI18n$t4 = (_set$api$getI18n3 = set.api.getI18n()) === null || _set$api$getI18n3 === void 0 || (_set$api$getI18n3$t = _set$api$getI18n3.t) === null || _set$api$getI18n3$t === void 0 ? void 0 : _set$api$getI18n3$t.call(_set$api$getI18n3, 'utils.height_first_letter', 'H')) !== null && _set$api$getI18n$t4 !== void 0 ? _set$api$getI18n$t4 : 'H') + ': ' + dim.X + ' cm' : '')
34255
+ });
34187
34256
  }
34188
34257
  }, {
34189
34258
  key: "loadProductsOfSets",
@@ -35292,7 +35361,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35292
35361
  break;
35293
35362
  case 3:
35294
35363
  _context13.next = 5;
35295
- return import('./PfisterWWSHandler-ecfa8cb2.js');
35364
+ return import('./PfisterWWSHandler-ebfad71d.js');
35296
35365
  case 5:
35297
35366
  _yield$import = _context13.sent;
35298
35367
  PfisterWWSHandler = _yield$import["default"];
@@ -35300,7 +35369,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35300
35369
  return _context13.abrupt("break", 33);
35301
35370
  case 9:
35302
35371
  _context13.next = 11;
35303
- return import('./LiviqueWWSHandler-b692f264.js');
35372
+ return import('./LiviqueWWSHandler-d401b8c4.js');
35304
35373
  case 11:
35305
35374
  _yield$import2 = _context13.sent;
35306
35375
  LiviqueWWSHandler = _yield$import2["default"];
@@ -35308,7 +35377,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35308
35377
  return _context13.abrupt("break", 33);
35309
35378
  case 15:
35310
35379
  _context13.next = 17;
35311
- return import('./SeriousBasketHandler-ec280d69.js');
35380
+ return import('./SeriousBasketHandler-53ff90b8.js');
35312
35381
  case 17:
35313
35382
  _yield$import3 = _context13.sent;
35314
35383
  SeriousWWSHandler = _yield$import3["default"];
@@ -35316,7 +35385,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35316
35385
  return _context13.abrupt("break", 33);
35317
35386
  case 21:
35318
35387
  _context13.next = 23;
35319
- return import('./ProductBasketHandler-5f1f22c2.js');
35388
+ return import('./ProductBasketHandler-68443648.js');
35320
35389
  case 23:
35321
35390
  _yield$import4 = _context13.sent;
35322
35391
  ProductWWSHandler = _yield$import4["default"];
@@ -35324,7 +35393,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35324
35393
  return _context13.abrupt("break", 33);
35325
35394
  case 27:
35326
35395
  _context13.next = 29;
35327
- return import('./StandardWWSHandler-9df76d79.js');
35396
+ return import('./StandardWWSHandler-b903e37c.js');
35328
35397
  case 29:
35329
35398
  _yield$import5 = _context13.sent;
35330
35399
  StandardWWSHandler = _yield$import5["default"];
@@ -36709,7 +36778,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36709
36778
  while (1) switch (_context3.prev = _context3.next) {
36710
36779
  case 0:
36711
36780
  _context3.next = 2;
36712
- return import('./Host3DSignalR-4c56ff5e.js');
36781
+ return import('./Host3DSignalR-45bb9e24.js');
36713
36782
  case 2:
36714
36783
  _yield$import = _context3.sent;
36715
36784
  Host3DSignalR = _yield$import["default"];
@@ -37190,7 +37259,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37190
37259
  if (params.alternateRenderInfo && (params.alternateRenderInfo.overwrittenViewPointName || params.alternateRenderInfo.viewPointName)) this.handleStaticVP(params.alternateRenderInfo.overwrittenViewPointName ? params.alternateRenderInfo.overwrittenViewPointName : params.alternateRenderInfo.viewPointName);
37191
37260
  camera = params.camera ? params.camera : params.useLatestCamera ? this.latestCamera : undefined;
37192
37261
  planningHash = md5(JSON.stringify(params.planningData) + JSON.stringify(camera));
37193
- if (planningHash) doReloadWholePlanning = false;
37262
+ if (planningHash == this.lastFramePlanningHash) doReloadWholePlanning = false;
37194
37263
  if (params.forceReloadPlanning || (_this$viewPointHandle = this.viewPointHandler.getCurRoomlistVP()) !== null && _this$viewPointHandle !== void 0 && _this$viewPointHandle.isStatic) doReloadWholePlanning = true;
37195
37264
  this.lastFramePlanningHash = planningHash;
37196
37265
  requestRenderingFrom3DHost = false;
@@ -38261,7 +38330,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38261
38330
  break;
38262
38331
  case 8:
38263
38332
  _context4.next = 10;
38264
- return import('./DivaStandardPlanner-70df13db.js');
38333
+ return import('./DivaStandardPlanner-c3f7e518.js');
38265
38334
  case 10:
38266
38335
  _yield$import = _context4.sent;
38267
38336
  DivaStandardPlanner = _yield$import["default"];
@@ -38272,7 +38341,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38272
38341
  return _context4.abrupt("break", 21);
38273
38342
  case 15:
38274
38343
  _context4.next = 17;
38275
- return import('./DivaBoxPlanner-4071a7c8.js');
38344
+ return import('./DivaBoxPlanner-81bbe89c.js');
38276
38345
  case 17:
38277
38346
  _yield$import2 = _context4.sent;
38278
38347
  DivaBoxPlanner = _yield$import2["default"];
@@ -38415,7 +38484,14 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38415
38484
  case 2:
38416
38485
  rendering = _context6.sent;
38417
38486
  LOG$2.debug('SAVE SET IMAGE DIM3D width: ' + (rendering === null || rendering === void 0 ? void 0 : rendering.get3DDimInfo().w) + ', height: ' + (rendering === null || rendering === void 0 ? void 0 : rendering.get3DDimInfo().h) + ', depth: ' + (rendering === null || rendering === void 0 ? void 0 : rendering.get3DDimInfo().d));
38418
- return _context6.abrupt("return", rendering != undefined ? rendering.UrlToSavedRendering : '');
38487
+ return _context6.abrupt("return", {
38488
+ url: rendering === null || rendering === void 0 ? void 0 : rendering.UrlToSavedRendering,
38489
+ dimensions: {
38490
+ w: rendering === null || rendering === void 0 ? void 0 : rendering.get3DDimInfo().w,
38491
+ h: rendering === null || rendering === void 0 ? void 0 : rendering.get3DDimInfo().h,
38492
+ d: rendering === null || rendering === void 0 ? void 0 : rendering.get3DDimInfo().d
38493
+ }
38494
+ });
38419
38495
  case 5:
38420
38496
  case "end":
38421
38497
  return _context6.stop();
@@ -39796,19 +39872,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39796
39872
  //onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
39797
39873
  _defineProperty(this, "doConfigure", /*#__PURE__*/function () {
39798
39874
  var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents) {
39875
+ var _this$actions13, _this$actions13$toggl, _this$actions14, _this$actions14$toggl;
39799
39876
  var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4;
39800
39877
  return _regeneratorRuntime.wrap(function _callee11$(_context11) {
39801
39878
  while (1) switch (_context11.prev = _context11.next) {
39802
39879
  case 0:
39803
39880
  set = _this.actSet();
39804
- _context11.next = 3;
39881
+ (_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);
39882
+ _context11.next = 4;
39805
39883
  return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, myValues, targetArticles, undefined, 'FromViewClick');
39806
- case 3:
39884
+ case 4:
39807
39885
  returnValues = _context11.sent;
39886
+ (_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);
39808
39887
  structure = setHandlerInstance.loadConfigStructureOfActSet(set, _this.getCurPlannerType());
39809
39888
  _this.checkVariantData();
39810
39889
  if (dontUpdatePlannerView) {
39811
- _context11.next = 16;
39890
+ _context11.next = 18;
39812
39891
  break;
39813
39892
  }
39814
39893
  _this.updateConfiguratorStructure(structure);
@@ -39822,16 +39901,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39822
39901
  _this.updateViewButtonsDependigOnConfigStructure();
39823
39902
  _this.updatePlannerView('DO_CONFIGURE', myValues);
39824
39903
  _this.updateWebConfiguratorTitle();
39825
- _context11.next = 16;
39904
+ _context11.next = 18;
39826
39905
  return _this.getFreePlacesOnGrids(undefined, 'doConfigure');
39827
- case 16:
39906
+ case 18:
39828
39907
  if (dontCallEvents) {
39829
- _context11.next = 19;
39908
+ _context11.next = 21;
39830
39909
  break;
39831
39910
  }
39832
- _context11.next = 19;
39911
+ _context11.next = 21;
39833
39912
  return _this.fillBaksetforOnWebPlanerConfigChange(myValues);
39834
- case 19:
39913
+ case 21:
39835
39914
  case "end":
39836
39915
  return _context11.stop();
39837
39916
  }
@@ -39895,6 +39974,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39895
39974
  return _ref12.apply(this, arguments);
39896
39975
  };
39897
39976
  }());
39977
+ _defineProperty(this, "getPosNr", function (basketId) {
39978
+ var _set$getArticleByBask;
39979
+ var set = _this.actSet();
39980
+ if (!set) throw new Error('set undefined');
39981
+ return (_set$getArticleByBask = set.getArticleByBasketId(basketId)) === null || _set$getArticleByBask === void 0 ? void 0 : _set$getArticleByBask.posNr;
39982
+ });
39898
39983
  _defineProperty(this, "getReturnTo", function (event) {
39899
39984
  var returnTo = _this.ReturnTo;
39900
39985
  if (returnTo == undefined) {
@@ -39925,7 +40010,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39925
40010
  key: "initialize",
39926
40011
  value: function () {
39927
40012
  var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {
39928
- var viewReadyPromise, loadSuccessful, _initSetState$api$web, _this$actions14, _set$getDivaArticles, _set$getSetPrice, _this$actions13, _this$actions13$toggl, initSetState, set, products, result, _this$actions15, basket, catalogData;
40013
+ var viewReadyPromise, loadSuccessful, _initSetState$api$web, _this$actions16, _set$getDivaArticles, _set$getSetPrice, _this$actions15, _this$actions15$toggl, initSetState, set, products, result, _this$actions17, basket, catalogData;
39929
40014
  return _regeneratorRuntime.wrap(function _callee13$(_context13) {
39930
40015
  while (1) switch (_context13.prev = _context13.next) {
39931
40016
  case 0:
@@ -39969,7 +40054,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39969
40054
  return this.initView();
39970
40055
  case 20:
39971
40056
  this.subscribeToWebPlannerEvents();
39972
- (_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, 'Planner_Loading', false, false);
40057
+ (_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);
39973
40058
  return _context13.abrupt("return", true);
39974
40059
  case 23:
39975
40060
  //TODO: get prices of matching product with more than one element
@@ -40019,11 +40104,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40019
40104
  _context13.next = 44;
40020
40105
  return this.initView();
40021
40106
  case 44:
40022
- (_this$actions14 = this.actions) === null || _this$actions14 === void 0 || _this$actions14.onEvent({
40107
+ (_this$actions16 = this.actions) === null || _this$actions16 === void 0 || _this$actions16.onEvent({
40023
40108
  type: 'onConfiguratorReady'
40024
40109
  });
40025
40110
  if (Object.keys((_set$getDivaArticles = set === null || set === void 0 ? void 0 : set.getDivaArticles()) !== null && _set$getDivaArticles !== void 0 ? _set$getDivaArticles : {}).length) {
40026
- (_this$actions15 = this.actions) === null || _this$actions15 === void 0 || _this$actions15.onEvent({
40111
+ (_this$actions17 = this.actions) === null || _this$actions17 === void 0 || _this$actions17.onEvent({
40027
40112
  type: 'onArticleInitialized'
40028
40113
  });
40029
40114
  }
@@ -40118,11 +40203,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40118
40203
  }, {
40119
40204
  key: "onInitializationError",
40120
40205
  value: function onInitializationError() {
40121
- var _this$state2, _this$actions17, _this$actions17$toggl;
40206
+ var _this$state2, _this$actions19, _this$actions19$toggl;
40122
40207
  var onErrorHandling = this.api.onErrorHandling();
40123
40208
  if ((_this$state2 = this.state) !== null && _this$state2 !== void 0 && _this$state2.isFullscreenComponent) {
40124
- var _this$actions16;
40125
- (_this$actions16 = this.actions) === null || _this$actions16 === void 0 || _this$actions16.closeComponentInFullscreen();
40209
+ var _this$actions18;
40210
+ (_this$actions18 = this.actions) === null || _this$actions18 === void 0 || _this$actions18.closeComponentInFullscreen();
40126
40211
  return;
40127
40212
  }
40128
40213
  if (onErrorHandling) {
@@ -40163,7 +40248,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40163
40248
  });
40164
40249
  }
40165
40250
  }
40166
- (_this$actions17 = this.actions) === null || _this$actions17 === void 0 || (_this$actions17$toggl = _this$actions17.toggleLoading) === null || _this$actions17$toggl === void 0 || _this$actions17$toggl.call(_this$actions17, 'Planner_Loading', false, false);
40251
+ (_this$actions19 = this.actions) === null || _this$actions19 === void 0 || (_this$actions19$toggl = _this$actions19.toggleLoading) === null || _this$actions19$toggl === void 0 || _this$actions19$toggl.call(_this$actions19, 'Planner_Loading', false, false);
40167
40252
  }
40168
40253
  }, {
40169
40254
  key: "getDivaArticles",
@@ -40877,8 +40962,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40877
40962
  }, {
40878
40963
  key: "changeOnFavorites",
40879
40964
  value: function changeOnFavorites(opt, opvs, targetArticles, remove) {
40880
- var _this$actions18;
40881
- favoritesHandlerInstance.changeOnFavorites(this.actSet(), opt, opvs, targetArticles, remove, (_this$actions18 = this.actions) === null || _this$actions18 === void 0 ? void 0 : _this$actions18.openModal);
40965
+ var _this$actions20;
40966
+ favoritesHandlerInstance.changeOnFavorites(this.actSet(), opt, opvs, targetArticles, remove, (_this$actions20 = this.actions) === null || _this$actions20 === void 0 ? void 0 : _this$actions20.openModal);
40882
40967
  }
40883
40968
  }, {
40884
40969
  key: "setDifferentOptions",
@@ -40925,25 +41010,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40925
41010
  }, {
40926
41011
  key: "callEvent",
40927
41012
  value: function callEvent(event, param) {
40928
- var _this$actions19, _this$actions20, _this$actions21, _this$actions22;
41013
+ var _this$actions21, _this$actions22, _this$actions23, _this$actions24;
40929
41014
  switch (event) {
40930
41015
  case 'onFullscreenClose':
40931
- (_this$actions19 = this.actions) === null || _this$actions19 === void 0 || _this$actions19.onEvent({
41016
+ (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.onEvent({
40932
41017
  type: 'onFullscreenClose'
40933
41018
  });
40934
41019
  break;
40935
41020
  case 'onWebPlanerClose':
40936
- (_this$actions20 = this.actions) === null || _this$actions20 === void 0 || _this$actions20.onEvent({
41021
+ (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40937
41022
  type: 'onWebPlanerClose'
40938
41023
  });
40939
41024
  break;
40940
41025
  case 'onWebPlanerHelp':
40941
- (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.onEvent({
41026
+ (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40942
41027
  type: 'onWebPlanerHelp'
40943
41028
  });
40944
41029
  break;
40945
41030
  case 'onWebPlanerZoomClick':
40946
- (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
41031
+ (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40947
41032
  type: 'onWebPlanerZoomClick',
40948
41033
  data: param
40949
41034
  });
@@ -40954,14 +41039,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40954
41039
  key: "saveToBasketWrapper",
40955
41040
  value: function () {
40956
41041
  var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
40957
- var _this$actions23,
40958
- _this$actions23$toggl,
40959
- _this$actions24,
40960
- _this$actions24$toggl,
41042
+ var _this$actions25,
41043
+ _this$actions25$toggl,
41044
+ _this$actions26,
41045
+ _this$actions26$toggl,
40961
41046
  _this2 = this,
40962
- _this$actions28,
41047
+ _this$actions30,
40963
41048
  _this$i18n14;
40964
- var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _result, result, _this$actions25, _this$i18n8, _this$i18n9, _this$actions26, _this$i18n10, _this$i18n11, _this$actions27, _this$i18n12, _this$i18n13, _this$updatePlannerMs2, _this$actions29, _this$i18n15;
41049
+ var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _result, result, _this$actions27, _this$i18n8, _this$i18n9, _this$actions28, _this$i18n10, _this$i18n11, _this$actions29, _this$i18n12, _this$i18n13, _this$updatePlannerMs2, _this$actions31, _this$i18n15;
40965
41050
  return _regeneratorRuntime.wrap(function _callee26$(_context26) {
40966
41051
  while (1) switch (_context26.prev = _context26.next) {
40967
41052
  case 0:
@@ -40995,18 +41080,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40995
41080
  case 15:
40996
41081
  returnTo = finalEvent == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40997
41082
  case 16:
40998
- (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || (_this$actions23$toggl = _this$actions23.toggleLoading) === null || _this$actions23$toggl === void 0 || _this$actions23$toggl.call(_this$actions23, 'Planner_Saving', false, true);
41083
+ (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || (_this$actions25$toggl = _this$actions25.toggleLoading) === null || _this$actions25$toggl === void 0 || _this$actions25$toggl.call(_this$actions25, 'Planner_Saving', false, true);
40999
41084
  _context26.next = 19;
41000
41085
  return this.saveToBasket(finalEvent, repairOnly, force);
41001
41086
  case 19:
41002
41087
  result = _context26.sent;
41003
- (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || (_this$actions24$toggl = _this$actions24.toggleLoading) === null || _this$actions24$toggl === void 0 || _this$actions24$toggl.call(_this$actions24, 'Planner_Saving', false, false);
41088
+ (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || (_this$actions26$toggl = _this$actions26.toggleLoading) === null || _this$actions26$toggl === void 0 || _this$actions26$toggl.call(_this$actions26, 'Planner_Saving', false, false);
41004
41089
  if (!(result === 'canceled')) {
41005
41090
  _context26.next = 25;
41006
41091
  break;
41007
41092
  }
41008
41093
  LOG$1.error(new DivaError('failed to save Basket'));
41009
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.openModal({
41094
+ (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || _this$actions27.openModal({
41010
41095
  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() : '',
41011
41096
  accept: true
41012
41097
  });
@@ -41020,12 +41105,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41020
41105
  LOG$1.error(new DivaError('PDF url is missing in basket', {
41021
41106
  code: 'WC_0010'
41022
41107
  }));
41023
- (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.openModal({
41108
+ (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
41024
41109
  text: ((_this$i18n10 = this.i18n()) === null || _this$i18n10 === void 0 ? void 0 : _this$i18n10.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n11 = this.i18n()) === null || _this$i18n11 === void 0 ? void 0 : _this$i18n11.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
41025
41110
  accept: true
41026
41111
  });
41027
41112
  } else {
41028
- (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || _this$actions27.openModal({
41113
+ (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
41029
41114
  text: (_this$i18n12 = this.i18n()) === null || _this$i18n12 === void 0 ? void 0 : _this$i18n12.t(this.divaBasketHandler.actBasket.Status === 'ORDER' ? 'modal.open_order_pdf_now' : 'modal.open_leaflet_pdf_now'),
41030
41115
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
41031
41116
  callback: function callback() {
@@ -41035,7 +41120,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41035
41120
  }
41036
41121
  return _context26.abrupt("break", 31);
41037
41122
  case 30:
41038
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
41123
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
41039
41124
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
41040
41125
  accept: true
41041
41126
  });
@@ -41051,7 +41136,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41051
41136
  _context26.next = 37;
41052
41137
  break;
41053
41138
  }
41054
- (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
41139
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
41055
41140
  accept: true,
41056
41141
  text: (_this$i18n15 = this.i18n()) === null || _this$i18n15 === void 0 ? void 0 : _this$i18n15.t('configurator.PAYLOAD_TO_BIG'),
41057
41142
  title: 'modals.error_saving'
@@ -41074,7 +41159,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41074
41159
  key: "saveToBasket",
41075
41160
  value: function () {
41076
41161
  var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(event, repairOnly, force) {
41077
- var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions30, _this$actions31;
41162
+ var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions32, _this$actions33;
41078
41163
  var set, actBasket, returnTo, oldReturnTo, count, basketData, bytes, result, newDivaNr, _result2, _event4, product;
41079
41164
  return _regeneratorRuntime.wrap(function _callee27$(_context27) {
41080
41165
  while (1) switch (_context27.prev = _context27.next) {
@@ -41161,7 +41246,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41161
41246
  _context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 39 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 41 : _context27.t3 === 'OPEN_PDF' ? 43 : _context27.t3 === 'SAVE_BASKET_WITH_MODAL' ? 43 : _context27.t3 === 'SAVE_BASKET' ? 43 : _context27.t3 === 'SAVE_BASKET_SYNC' ? 43 : _context27.t3 === 'OPEN_LEAFLET_BARRIER' ? 43 : 63;
41162
41247
  break;
41163
41248
  case 39:
41164
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openComponent({
41249
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openComponent({
41165
41250
  type: 'SELLER',
41166
41251
  parameters: {
41167
41252
  module: 'PCreator',
@@ -41174,7 +41259,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41174
41259
  });
41175
41260
  return _context27.abrupt("break", 63);
41176
41261
  case 41:
41177
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openComponent({
41262
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
41178
41263
  type: 'SELLER',
41179
41264
  parameters: {
41180
41265
  module: 'Basket',
@@ -41256,6 +41341,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41256
41341
  if (!set) return;
41257
41342
  return setHandlerInstance.checkNotificationRules(set, targetArticles, visitedOptions, event);
41258
41343
  }
41344
+ }, {
41345
+ key: "checkBannerRules",
41346
+ value: function checkBannerRules(visitedOptions, event) {
41347
+ var set = this.actSet();
41348
+ if (!set) return;
41349
+ return setHandlerInstance.checkBannerRules(set, visitedOptions, event);
41350
+ }
41259
41351
 
41260
41352
  /**
41261
41353
  * This function returns true if the Planner Mode should be visible and the planner Step should be shown.
@@ -41500,16 +41592,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41500
41592
  key: "addToBasket",
41501
41593
  value: function () {
41502
41594
  var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(actBasket) {
41503
- var _this$actions32,
41504
- _this$actions33,
41505
- _this$actions34,
41595
+ var _this$actions34,
41506
41596
  _this$actions35,
41507
41597
  _this$actions36,
41508
- _this$divaBasketHandl3,
41509
- _this3 = this,
41510
41598
  _this$actions37,
41511
41599
  _this$actions38,
41512
- _this$actions39;
41600
+ _this$divaBasketHandl3,
41601
+ _this3 = this,
41602
+ _this$actions39,
41603
+ _this$actions40,
41604
+ _this$actions41;
41513
41605
  var event,
41514
41606
  addToBasketLog,
41515
41607
  emailConfig,
@@ -41529,35 +41621,35 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41529
41621
  break;
41530
41622
  case 5:
41531
41623
  this.handleSuccessTransaction('onPrintBasket', actBasket);
41532
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.onEvent({
41624
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.onEvent({
41533
41625
  type: 'onWebPlanerPrint',
41534
41626
  data: actBasket.getAsJson()
41535
41627
  });
41536
41628
  return _context29.abrupt("break", 38);
41537
41629
  case 8:
41538
41630
  this.handleSuccessTransaction('onSaveBasket', actBasket);
41539
- (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.onEvent({
41631
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41540
41632
  type: 'onWebPlanerSave',
41541
41633
  data: actBasket.getAsJson()
41542
41634
  });
41543
41635
  return _context29.abrupt("break", 38);
41544
41636
  case 11:
41545
41637
  this.handleSuccessTransaction('onShareBasket', actBasket);
41546
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.onEvent({
41638
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41547
41639
  type: 'onWebPlanerShare',
41548
41640
  data: actBasket.getAsJson()
41549
41641
  });
41550
41642
  return _context29.abrupt("break", 38);
41551
41643
  case 14:
41552
41644
  this.handleSuccessTransaction('onRequestConsulation', actBasket);
41553
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41645
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41554
41646
  type: 'onRequestConsulation',
41555
41647
  data: actBasket.getAsJson()
41556
41648
  });
41557
41649
  return _context29.abrupt("break", 38);
41558
41650
  case 17:
41559
41651
  this.handleSuccessTransaction('onSave', actBasket);
41560
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41652
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41561
41653
  type: 'onSave',
41562
41654
  data: actBasket.getAsJson()
41563
41655
  });
@@ -41593,7 +41685,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41593
41685
  });
41594
41686
  this.handleSuccessTransaction('onSendEmail', actBasket);
41595
41687
  }
41596
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41688
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41597
41689
  type: 'onAddToBasket',
41598
41690
  data: actBasket.getAsJson()
41599
41691
  });
@@ -41605,7 +41697,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41605
41697
  case 28:
41606
41698
  products = _context29.sent;
41607
41699
  this.handleSuccessTransaction('onSaveProduct', actBasket);
41608
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41700
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41609
41701
  type: 'onAddToBasket',
41610
41702
  data: actBasket.getAsJson()
41611
41703
  });
@@ -41619,7 +41711,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41619
41711
  addToBasketLog = false;
41620
41712
  case 35:
41621
41713
  if (addToBasketLog) this.handleSuccessTransaction('onAddToBasket', actBasket);
41622
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41714
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41623
41715
  type: 'onAddToBasket',
41624
41716
  data: actBasket.getAsJson()
41625
41717
  });
@@ -41651,8 +41743,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41651
41743
  }, {
41652
41744
  key: "openPDFpostAsEvent",
41653
41745
  value: function openPDFpostAsEvent(mongoDBId) {
41654
- var _this$actions40, _this$actions41, _this$actions42;
41655
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.updateBreadcrumbs({
41746
+ var _this$actions42, _this$actions43, _this$actions44;
41747
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.updateBreadcrumbs({
41656
41748
  type: 'update',
41657
41749
  param: {
41658
41750
  groupId: 'SHOWROOM',
@@ -41666,7 +41758,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41666
41758
  }
41667
41759
  }
41668
41760
  });
41669
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.updateBreadcrumbs({
41761
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.updateBreadcrumbs({
41670
41762
  type: 'update',
41671
41763
  param: {
41672
41764
  groupId: 'SHOWROOM',
@@ -41680,7 +41772,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41680
41772
  }
41681
41773
  }
41682
41774
  });
41683
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.openComponent({
41775
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.openComponent({
41684
41776
  type: 'REPORT',
41685
41777
  parameters: {
41686
41778
  id: mongoDBId
@@ -41900,14 +41992,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41900
41992
  }, {
41901
41993
  key: "subscribeToWebPlannerEvents",
41902
41994
  value: function subscribeToWebPlannerEvents() {
41903
- var _this$actions43;
41904
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.subscribeEvents(this.addToBasketEventFunction);
41995
+ var _this$actions45;
41996
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.subscribeEvents(this.addToBasketEventFunction);
41905
41997
  }
41906
41998
  }, {
41907
41999
  key: "unsubscribeFromWebPlannerEvents",
41908
42000
  value: function unsubscribeFromWebPlannerEvents() {
41909
- var _this$actions44;
41910
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.unSubscribeEvents(this.addToBasketEventFunction);
42001
+ var _this$actions46;
42002
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.unSubscribeEvents(this.addToBasketEventFunction);
41911
42003
  }
41912
42004
  }, {
41913
42005
  key: "initApiForLogicOnly",