@crystaldesign/web-planner-logic 24.12.0-beta.7 → 24.12.0-beta.9

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 (41) hide show
  1. package/build/cjs/{DivaBoxPlanner-18f1ae44.js → DivaBoxPlanner-7b508f32.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-dc3a795f.js → DivaStandardPlanner-c73e6e57.js} +2 -2
  3. package/build/cjs/{DoorPlanner-d96cea1c.js → DoorPlanner-ffa7af62.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-4aa3fc0b.js → Host3DSignalR-d3830717.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-297878d2.js → LiviqueWWSHandler-85a1dc89.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-d1400c5f.js → PfisterWWSHandler-b47dba23.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-df72a9db.js → PlannerHandler2D-9d9d1af9.js} +1 -1
  8. package/build/cjs/{ProductBasketHandler-19c99496.js → ProductBasketHandler-22cb7ee4.js} +1 -1
  9. package/build/cjs/{SeriousBasketHandler-0199731a.js → SeriousBasketHandler-28f031fa.js} +1 -1
  10. package/build/cjs/{ShelfPlanner-6ff6daf5.js → ShelfPlanner-4b697826.js} +1 -1
  11. package/build/cjs/{StandardWWSHandler-dc3d7475.js → StandardWWSHandler-ab0c107b.js} +1 -1
  12. package/build/cjs/{index-83a7edd3.js → index-bceec53b.js} +145 -104
  13. package/build/cjs/index.js +1 -1
  14. package/build/esm/{DivaBoxPlanner-bef89c9b.js → DivaBoxPlanner-81bbe89c.js} +2 -2
  15. package/build/esm/{DivaStandardPlanner-855876a6.js → DivaStandardPlanner-c3f7e518.js} +2 -2
  16. package/build/esm/{DoorPlanner-eb0b94a0.js → DoorPlanner-f4b338c4.js} +1 -1
  17. package/build/esm/{Host3DSignalR-ed2088a2.js → Host3DSignalR-45bb9e24.js} +1 -1
  18. package/build/esm/{LiviqueWWSHandler-99e43d3a.js → LiviqueWWSHandler-d401b8c4.js} +1 -1
  19. package/build/esm/{PfisterWWSHandler-794e96d4.js → PfisterWWSHandler-ebfad71d.js} +1 -1
  20. package/build/esm/{PlannerHandler2D-58932ae5.js → PlannerHandler2D-fb755d99.js} +1 -1
  21. package/build/esm/{ProductBasketHandler-5ab958f7.js → ProductBasketHandler-68443648.js} +1 -1
  22. package/build/esm/{SeriousBasketHandler-c9decc55.js → SeriousBasketHandler-53ff90b8.js} +1 -1
  23. package/build/esm/{ShelfPlanner-ff141873.js → ShelfPlanner-569fe7f0.js} +1 -1
  24. package/build/esm/{StandardWWSHandler-92f613fa.js → StandardWWSHandler-b903e37c.js} +1 -1
  25. package/build/esm/{index-6805291d.js → index-3bbc6483.js} +145 -104
  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/Rules/NotificationRule.d.ts +15 -7
  32. package/build/types/web-planner-logic/src/interface/Rules/NotificationRule.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts +7 -3
  34. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +9 -2
  36. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +5 -2
  38. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +3 -2
  40. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  41. package/package.json +2 -2
@@ -18310,7 +18310,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18310
18310
  DE: 'Achtung alle änderungen gehen verlohren... Bist du sicher?'
18311
18311
  }
18312
18312
  }],
18313
- warningRule: [],
18313
+ warningRules: [],
18314
+ bannerRules: [],
18314
18315
  summaryTabGroupPosition: undefined,
18315
18316
  onConfigSingleDontGeneralize: false,
18316
18317
  ignoreMaxPriceAsBP: false,
@@ -18615,7 +18616,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
18615
18616
  } else if (item.Codex == 'NOTIFICATIONS') {
18616
18617
  _this.catalogData.notificationsRules = JSON.parse(item.Value);
18617
18618
  } else if (item.Codex == 'WARNINGS') {
18618
- _this.catalogData.warningRule = JSON.parse(item.Value);
18619
+ _this.catalogData.warningRules = JSON.parse(item.Value);
18620
+ } else if (item.Codex == 'BANNER') {
18621
+ _this.catalogData.bannerRules = JSON.parse(item.Value);
18619
18622
  } else if (item.Codex == 'IGNORE_MAX_PRICE_AS_BASEPRICE') {
18620
18623
  _this.catalogData.ignoreMaxPriceAsBP = item.Value == '1';
18621
18624
  } else if (item.Codex == 'DONT_USE_VCODEX_FOR_BASKET') {
@@ -19483,9 +19486,14 @@ var DivaCatalogData = /*#__PURE__*/function () {
19483
19486
  return this.catalogData.notificationsRules;
19484
19487
  }
19485
19488
  }, {
19486
- key: "warningRule",
19489
+ key: "warningRules",
19487
19490
  get: function get() {
19488
- return this.catalogData.warningRule;
19491
+ return this.catalogData.warningRules;
19492
+ }
19493
+ }, {
19494
+ key: "bannerRules",
19495
+ get: function get() {
19496
+ return this.catalogData.bannerRules;
19489
19497
  }
19490
19498
  }, {
19491
19499
  key: "dontSaveAlternativeRenderings",
@@ -23568,7 +23576,7 @@ var DivaArticle = /*#__PURE__*/function () {
23568
23576
  break;
23569
23577
  }
23570
23578
  _context.next = 4;
23571
- return Promise.resolve().then(function () { return require('./ShelfPlanner-6ff6daf5.js'); });
23579
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-4b697826.js'); });
23572
23580
  case 4:
23573
23581
  _yield$import = _context.sent;
23574
23582
  ShelfPlanner = _yield$import["default"];
@@ -25432,6 +25440,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25432
25440
  }, {
25433
25441
  key: "evalOpvsOnOpvsConstructionRules",
25434
25442
  value: function evalOpvsOnOpvsConstructionRules(article) {
25443
+ var _article$CatalogData$;
25435
25444
  var somethingChanged = false;
25436
25445
  var previousRules = {};
25437
25446
  if (article.updatedOPVbyOPVConstructionRules) {
@@ -25495,19 +25504,20 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25495
25504
  }
25496
25505
  }
25497
25506
  }
25498
- var notifications = this.checkNotificationRules(article.CatalogData.warningRule, _defineProperty__default["default"]({}, article.basketId, article), {});
25499
- if (notifications !== null && notifications !== void 0 && notifications.length) {
25500
- for (var _i3 = 0; _i3 < notifications.length; _i3++) {
25501
- var _item = notifications[_i3];
25502
- if (!_item.showAsWarning) continue;
25503
- article.addUpdatedOPVbyOPVConstructionRules(_item.showAsWarning.option + ';' + _item.showAsWarning.optionValue, article.updateOPVConstruction('OPT' + _item.showAsWarning.option, 'OPV' + _item.showAsWarning.optionValue, {
25504
- message: _item.message,
25505
- type: _item.type == 'error' ? 'DISABLE' : 'WARNING'
25506
- }));
25507
+ if ((_article$CatalogData$ = article.CatalogData.warningRules) !== null && _article$CatalogData$ !== void 0 && _article$CatalogData$.length) {
25508
+ var notifications = this.checkNotificationRules(article.CatalogData.warningRules, _defineProperty__default["default"]({}, article.basketId, article), {});
25509
+ if (notifications !== null && notifications !== void 0 && notifications.length) {
25510
+ for (var _i3 = 0; _i3 < notifications.length; _i3++) {
25511
+ var _item = notifications[_i3];
25512
+ if (!_item.showAsWarning) continue;
25513
+ article.addUpdatedOPVbyOPVConstructionRules(_item.showAsWarning.option + ';' + _item.showAsWarning.optionValue, article.updateOPVConstruction('OPT' + _item.showAsWarning.option, 'OPV' + _item.showAsWarning.optionValue, {
25514
+ message: _item.message,
25515
+ type: _item.type == 'error' ? 'DISABLE' : 'WARNING'
25516
+ }));
25517
+ }
25518
+ somethingChanged = true;
25507
25519
  }
25508
- somethingChanged = true;
25509
25520
  }
25510
-
25511
25521
  //falls die vorherigen reglen anders sind wie die neuen, artiklekonfiguration neu laden
25512
25522
  if (somethingChanged && JSON.stringify(previousRules) != JSON.stringify(article.updatedOPVbyOPVConstructionRules)) {
25513
25523
  this.updateCfgValues(article, {}, {});
@@ -25523,7 +25533,6 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25523
25533
  }, {
25524
25534
  key: "checkNotificationRules",
25525
25535
  value: function checkNotificationRules(toCheckRules, articles, visitedOptions, event) {
25526
- if (!(toCheckRules !== null && toCheckRules !== void 0 && toCheckRules.length)) return;
25527
25536
  var returnValue = [];
25528
25537
  for (var i = 0; i < toCheckRules.length; i++) {
25529
25538
  var entry = toCheckRules[i];
@@ -25531,27 +25540,12 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25531
25540
  var ruleValid = false;
25532
25541
  for (var j = 0; j < rules.length; j++) {
25533
25542
  for (var basketId in articles) {
25534
- var _rule$articles;
25535
25543
  ruleValid = false;
25536
25544
  var rule = rules[j];
25537
25545
  var article = articles[basketId];
25538
- if ((_rule$articles = rule.articles) !== null && _rule$articles !== void 0 && _rule$articles.length && !rule.articles.includes(article.articleCodex)) continue;
25539
- if (rule.variantValues && !this.objectIncudesObject(rule.variantValues, article.VariantValuesWithoutOPTandOPV)) continue;
25540
- if (rule.visitedOptions && !this.arrayIncludesArray(rule.visitedOptions, visitedOptions[basketId])) continue;
25541
- if (rule.jsFormula && !article.evalRule(DivaUtils__default["default"].getRuleByFormula(rule.jsFormula))) continue;
25542
- if (rule.sizes) console.error('size logic not jet implemented');
25546
+ if (!this.checkRule(rule, article, visitedOptions)) continue;
25543
25547
  if ((event === null || event === void 0 ? void 0 : event.type) == 'config' && entry.type == 'notification') {
25544
- var _entry$checkOnEvents, _entry$checkOnEvents2, _entry$checkOnEvents3, _entry$checkOnEvents4;
25545
- 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;
25546
- 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;
25547
- if (checkOPT) {
25548
- if (Array.isArray(checkOPT) && !checkOPT.includes(event.data.optionCodex)) continue;
25549
- if (!Array.isArray(checkOPT) && checkOPT !== event.data.optionCodex) continue;
25550
- }
25551
- if (checkOPV) {
25552
- if (Array.isArray(checkOPV) && !checkOPV.includes(event.data.optionValueCodex)) continue;
25553
- if (!Array.isArray(checkOPV) && checkOPV !== event.data.optionValueCodex) continue;
25554
- }
25548
+ if (!this.checkOnEvent(event.checkOnEvents, event.data)) continue;
25555
25549
  }
25556
25550
  ruleValid = true;
25557
25551
  break;
@@ -25567,6 +25561,35 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25567
25561
  }
25568
25562
  return returnValue;
25569
25563
  }
25564
+ }, {
25565
+ key: "checkRule",
25566
+ value: function checkRule(rule, article, visitedOptions) {
25567
+ var _rule$articles;
25568
+ if ((_rule$articles = rule.articles) !== null && _rule$articles !== void 0 && _rule$articles.length && !rule.articles.includes(article.articleCodex)) return false;
25569
+ if (rule.variantValues && !this.objectIncudesObject(rule.variantValues, article.VariantValuesWithoutOPTandOPV)) return false;
25570
+ if (rule.visitedOptions && !this.arrayIncludesArray(rule.visitedOptions, visitedOptions[article.basketId])) return false;
25571
+ if (rule.jsFormula && !article.evalRule(DivaUtils__default["default"].getRuleByFormula(rule.jsFormula))) return false;
25572
+ if (rule.sizes) {
25573
+ console.error('size logic not jet implemented');
25574
+ return false;
25575
+ }
25576
+ return true;
25577
+ }
25578
+ }, {
25579
+ key: "checkOnEvent",
25580
+ value: function checkOnEvent(event, data) {
25581
+ var checkOPT = event !== null && event !== void 0 && event.option ? 'OPT' + (event === null || event === void 0 ? void 0 : event.option) : undefined;
25582
+ var checkOPV = event !== null && event !== void 0 && event.optionValue ? 'OPV' + (event === null || event === void 0 ? void 0 : event.optionValue) : undefined;
25583
+ if (checkOPT) {
25584
+ if (Array.isArray(checkOPT) && !checkOPT.includes(data.optionCodex)) return false;
25585
+ if (!Array.isArray(checkOPT) && checkOPT !== data.optionCodex) return false;
25586
+ }
25587
+ if (checkOPV) {
25588
+ if (Array.isArray(checkOPV) && !checkOPV.includes(data.optionValueCodex)) return false;
25589
+ if (!Array.isArray(checkOPV) && checkOPV !== data.optionValueCodex) return false;
25590
+ }
25591
+ return true;
25592
+ }
25570
25593
  }, {
25571
25594
  key: "objectIncudesObject",
25572
25595
  value: function objectIncudesObject(smallerObject, biggerObject) {
@@ -28083,7 +28106,7 @@ var DivaSet = /*#__PURE__*/function () {
28083
28106
  break;
28084
28107
  }
28085
28108
  _context4.next = 3;
28086
- return Promise.resolve().then(function () { return require('./DoorPlanner-d96cea1c.js'); });
28109
+ return Promise.resolve().then(function () { return require('./DoorPlanner-ffa7af62.js'); });
28087
28110
  case 3:
28088
28111
  _yield$import = _context4.sent;
28089
28112
  DoorPlanner = _yield$import["default"];
@@ -33436,6 +33459,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33436
33459
  _loop3();
33437
33460
  }
33438
33461
  }
33462
+ }, {
33463
+ key: "checkBannerRules",
33464
+ value: function checkBannerRules(set, visitedOptions, event) {
33465
+ var bannerRules = set.CatalogData.bannerRules;
33466
+ if (!bannerRules) return;
33467
+ var rules = articleHandlerInstance.checkNotificationRules(bannerRules, set.getDivaArticles(), visitedOptions, event);
33468
+ return rules === null || rules === void 0 ? void 0 : rules[0];
33469
+ }
33439
33470
  }, {
33440
33471
  key: "checkNotificationRules",
33441
33472
  value: function checkNotificationRules(set, targetArticles, visitedOptions, event) {
@@ -35347,7 +35378,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35347
35378
  break;
35348
35379
  case 3:
35349
35380
  _context13.next = 5;
35350
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-d1400c5f.js'); });
35381
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-b47dba23.js'); });
35351
35382
  case 5:
35352
35383
  _yield$import = _context13.sent;
35353
35384
  PfisterWWSHandler = _yield$import["default"];
@@ -35355,7 +35386,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35355
35386
  return _context13.abrupt("break", 33);
35356
35387
  case 9:
35357
35388
  _context13.next = 11;
35358
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-297878d2.js'); });
35389
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-85a1dc89.js'); });
35359
35390
  case 11:
35360
35391
  _yield$import2 = _context13.sent;
35361
35392
  LiviqueWWSHandler = _yield$import2["default"];
@@ -35363,7 +35394,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35363
35394
  return _context13.abrupt("break", 33);
35364
35395
  case 15:
35365
35396
  _context13.next = 17;
35366
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-0199731a.js'); });
35397
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-28f031fa.js'); });
35367
35398
  case 17:
35368
35399
  _yield$import3 = _context13.sent;
35369
35400
  SeriousWWSHandler = _yield$import3["default"];
@@ -35371,7 +35402,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35371
35402
  return _context13.abrupt("break", 33);
35372
35403
  case 21:
35373
35404
  _context13.next = 23;
35374
- return Promise.resolve().then(function () { return require('./ProductBasketHandler-19c99496.js'); });
35405
+ return Promise.resolve().then(function () { return require('./ProductBasketHandler-22cb7ee4.js'); });
35375
35406
  case 23:
35376
35407
  _yield$import4 = _context13.sent;
35377
35408
  ProductWWSHandler = _yield$import4["default"];
@@ -35379,7 +35410,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
35379
35410
  return _context13.abrupt("break", 33);
35380
35411
  case 27:
35381
35412
  _context13.next = 29;
35382
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-dc3d7475.js'); });
35413
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-ab0c107b.js'); });
35383
35414
  case 29:
35384
35415
  _yield$import5 = _context13.sent;
35385
35416
  StandardWWSHandler = _yield$import5["default"];
@@ -36764,7 +36795,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36764
36795
  while (1) switch (_context3.prev = _context3.next) {
36765
36796
  case 0:
36766
36797
  _context3.next = 2;
36767
- return Promise.resolve().then(function () { return require('./Host3DSignalR-4aa3fc0b.js'); });
36798
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-d3830717.js'); });
36768
36799
  case 2:
36769
36800
  _yield$import = _context3.sent;
36770
36801
  Host3DSignalR = _yield$import["default"];
@@ -38316,7 +38347,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38316
38347
  break;
38317
38348
  case 8:
38318
38349
  _context4.next = 10;
38319
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-dc3a795f.js'); });
38350
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-c73e6e57.js'); });
38320
38351
  case 10:
38321
38352
  _yield$import = _context4.sent;
38322
38353
  DivaStandardPlanner = _yield$import["default"];
@@ -38327,7 +38358,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38327
38358
  return _context4.abrupt("break", 21);
38328
38359
  case 15:
38329
38360
  _context4.next = 17;
38330
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-18f1ae44.js'); });
38361
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-7b508f32.js'); });
38331
38362
  case 17:
38332
38363
  _yield$import2 = _context4.sent;
38333
38364
  DivaBoxPlanner = _yield$import2["default"];
@@ -39858,19 +39889,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39858
39889
  //onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
39859
39890
  _defineProperty__default["default"](this, "doConfigure", /*#__PURE__*/function () {
39860
39891
  var _ref11 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee11(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents) {
39892
+ var _this$actions13, _this$actions13$toggl, _this$actions14, _this$actions14$toggl;
39861
39893
  var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4;
39862
39894
  return _regeneratorRuntime__default["default"].wrap(function _callee11$(_context11) {
39863
39895
  while (1) switch (_context11.prev = _context11.next) {
39864
39896
  case 0:
39865
39897
  set = _this.actSet();
39866
- _context11.next = 3;
39898
+ (_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);
39899
+ _context11.next = 4;
39867
39900
  return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, myValues, targetArticles, undefined, 'FromViewClick');
39868
- case 3:
39901
+ case 4:
39869
39902
  returnValues = _context11.sent;
39903
+ (_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);
39870
39904
  structure = setHandlerInstance.loadConfigStructureOfActSet(set, _this.getCurPlannerType());
39871
39905
  _this.checkVariantData();
39872
39906
  if (dontUpdatePlannerView) {
39873
- _context11.next = 16;
39907
+ _context11.next = 18;
39874
39908
  break;
39875
39909
  }
39876
39910
  _this.updateConfiguratorStructure(structure);
@@ -39884,16 +39918,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39884
39918
  _this.updateViewButtonsDependigOnConfigStructure();
39885
39919
  _this.updatePlannerView('DO_CONFIGURE', myValues);
39886
39920
  _this.updateWebConfiguratorTitle();
39887
- _context11.next = 16;
39921
+ _context11.next = 18;
39888
39922
  return _this.getFreePlacesOnGrids(undefined, 'doConfigure');
39889
- case 16:
39923
+ case 18:
39890
39924
  if (dontCallEvents) {
39891
- _context11.next = 19;
39925
+ _context11.next = 21;
39892
39926
  break;
39893
39927
  }
39894
- _context11.next = 19;
39928
+ _context11.next = 21;
39895
39929
  return _this.fillBaksetforOnWebPlanerConfigChange(myValues);
39896
- case 19:
39930
+ case 21:
39897
39931
  case "end":
39898
39932
  return _context11.stop();
39899
39933
  }
@@ -39993,7 +40027,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39993
40027
  key: "initialize",
39994
40028
  value: function () {
39995
40029
  var _initialize = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee13() {
39996
- 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;
40030
+ 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;
39997
40031
  return _regeneratorRuntime__default["default"].wrap(function _callee13$(_context13) {
39998
40032
  while (1) switch (_context13.prev = _context13.next) {
39999
40033
  case 0:
@@ -40037,7 +40071,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40037
40071
  return this.initView();
40038
40072
  case 20:
40039
40073
  this.subscribeToWebPlannerEvents();
40040
- (_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);
40074
+ (_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);
40041
40075
  return _context13.abrupt("return", true);
40042
40076
  case 23:
40043
40077
  //TODO: get prices of matching product with more than one element
@@ -40087,11 +40121,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40087
40121
  _context13.next = 44;
40088
40122
  return this.initView();
40089
40123
  case 44:
40090
- (_this$actions14 = this.actions) === null || _this$actions14 === void 0 || _this$actions14.onEvent({
40124
+ (_this$actions16 = this.actions) === null || _this$actions16 === void 0 || _this$actions16.onEvent({
40091
40125
  type: 'onConfiguratorReady'
40092
40126
  });
40093
40127
  if (Object.keys((_set$getDivaArticles = set === null || set === void 0 ? void 0 : set.getDivaArticles()) !== null && _set$getDivaArticles !== void 0 ? _set$getDivaArticles : {}).length) {
40094
- (_this$actions15 = this.actions) === null || _this$actions15 === void 0 || _this$actions15.onEvent({
40128
+ (_this$actions17 = this.actions) === null || _this$actions17 === void 0 || _this$actions17.onEvent({
40095
40129
  type: 'onArticleInitialized'
40096
40130
  });
40097
40131
  }
@@ -40186,11 +40220,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40186
40220
  }, {
40187
40221
  key: "onInitializationError",
40188
40222
  value: function onInitializationError() {
40189
- var _this$state2, _this$actions17, _this$actions17$toggl;
40223
+ var _this$state2, _this$actions19, _this$actions19$toggl;
40190
40224
  var onErrorHandling = this.api.onErrorHandling();
40191
40225
  if ((_this$state2 = this.state) !== null && _this$state2 !== void 0 && _this$state2.isFullscreenComponent) {
40192
- var _this$actions16;
40193
- (_this$actions16 = this.actions) === null || _this$actions16 === void 0 || _this$actions16.closeComponentInFullscreen();
40226
+ var _this$actions18;
40227
+ (_this$actions18 = this.actions) === null || _this$actions18 === void 0 || _this$actions18.closeComponentInFullscreen();
40194
40228
  return;
40195
40229
  }
40196
40230
  if (onErrorHandling) {
@@ -40231,7 +40265,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40231
40265
  });
40232
40266
  }
40233
40267
  }
40234
- (_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);
40268
+ (_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);
40235
40269
  }
40236
40270
  }, {
40237
40271
  key: "getDivaArticles",
@@ -40945,8 +40979,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40945
40979
  }, {
40946
40980
  key: "changeOnFavorites",
40947
40981
  value: function changeOnFavorites(opt, opvs, targetArticles, remove) {
40948
- var _this$actions18;
40949
- favoritesHandlerInstance.changeOnFavorites(this.actSet(), opt, opvs, targetArticles, remove, (_this$actions18 = this.actions) === null || _this$actions18 === void 0 ? void 0 : _this$actions18.openModal);
40982
+ var _this$actions20;
40983
+ favoritesHandlerInstance.changeOnFavorites(this.actSet(), opt, opvs, targetArticles, remove, (_this$actions20 = this.actions) === null || _this$actions20 === void 0 ? void 0 : _this$actions20.openModal);
40950
40984
  }
40951
40985
  }, {
40952
40986
  key: "setDifferentOptions",
@@ -40993,25 +41027,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40993
41027
  }, {
40994
41028
  key: "callEvent",
40995
41029
  value: function callEvent(event, param) {
40996
- var _this$actions19, _this$actions20, _this$actions21, _this$actions22;
41030
+ var _this$actions21, _this$actions22, _this$actions23, _this$actions24;
40997
41031
  switch (event) {
40998
41032
  case 'onFullscreenClose':
40999
- (_this$actions19 = this.actions) === null || _this$actions19 === void 0 || _this$actions19.onEvent({
41033
+ (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.onEvent({
41000
41034
  type: 'onFullscreenClose'
41001
41035
  });
41002
41036
  break;
41003
41037
  case 'onWebPlanerClose':
41004
- (_this$actions20 = this.actions) === null || _this$actions20 === void 0 || _this$actions20.onEvent({
41038
+ (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
41005
41039
  type: 'onWebPlanerClose'
41006
41040
  });
41007
41041
  break;
41008
41042
  case 'onWebPlanerHelp':
41009
- (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.onEvent({
41043
+ (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
41010
41044
  type: 'onWebPlanerHelp'
41011
41045
  });
41012
41046
  break;
41013
41047
  case 'onWebPlanerZoomClick':
41014
- (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
41048
+ (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
41015
41049
  type: 'onWebPlanerZoomClick',
41016
41050
  data: param
41017
41051
  });
@@ -41022,14 +41056,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41022
41056
  key: "saveToBasketWrapper",
41023
41057
  value: function () {
41024
41058
  var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, force) {
41025
- var _this$actions23,
41026
- _this$actions23$toggl,
41027
- _this$actions24,
41028
- _this$actions24$toggl,
41059
+ var _this$actions25,
41060
+ _this$actions25$toggl,
41061
+ _this$actions26,
41062
+ _this$actions26$toggl,
41029
41063
  _this2 = this,
41030
- _this$actions28,
41064
+ _this$actions30,
41031
41065
  _this$i18n14;
41032
- 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;
41066
+ 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;
41033
41067
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
41034
41068
  while (1) switch (_context26.prev = _context26.next) {
41035
41069
  case 0:
@@ -41063,18 +41097,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41063
41097
  case 15:
41064
41098
  returnTo = finalEvent == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
41065
41099
  case 16:
41066
- (_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);
41100
+ (_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);
41067
41101
  _context26.next = 19;
41068
41102
  return this.saveToBasket(finalEvent, repairOnly, force);
41069
41103
  case 19:
41070
41104
  result = _context26.sent;
41071
- (_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);
41105
+ (_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);
41072
41106
  if (!(result === 'canceled')) {
41073
41107
  _context26.next = 25;
41074
41108
  break;
41075
41109
  }
41076
41110
  LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
41077
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.openModal({
41111
+ (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || _this$actions27.openModal({
41078
41112
  text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
41079
41113
  accept: true
41080
41114
  });
@@ -41088,12 +41122,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41088
41122
  LOG$1.error(new DivaUtils.DivaError('PDF url is missing in basket', {
41089
41123
  code: 'WC_0010'
41090
41124
  }));
41091
- (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.openModal({
41125
+ (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
41092
41126
  text: ((_this$i18n10 = this.i18n()) === null || _this$i18n10 === void 0 ? void 0 : _this$i18n10.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n11 = this.i18n()) === null || _this$i18n11 === void 0 ? void 0 : _this$i18n11.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
41093
41127
  accept: true
41094
41128
  });
41095
41129
  } else {
41096
- (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || _this$actions27.openModal({
41130
+ (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
41097
41131
  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'),
41098
41132
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
41099
41133
  callback: function callback() {
@@ -41103,7 +41137,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41103
41137
  }
41104
41138
  return _context26.abrupt("break", 31);
41105
41139
  case 30:
41106
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
41140
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
41107
41141
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
41108
41142
  accept: true
41109
41143
  });
@@ -41119,7 +41153,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41119
41153
  _context26.next = 37;
41120
41154
  break;
41121
41155
  }
41122
- (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
41156
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
41123
41157
  accept: true,
41124
41158
  text: (_this$i18n15 = this.i18n()) === null || _this$i18n15 === void 0 ? void 0 : _this$i18n15.t('configurator.PAYLOAD_TO_BIG'),
41125
41159
  title: 'modals.error_saving'
@@ -41142,7 +41176,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41142
41176
  key: "saveToBasket",
41143
41177
  value: function () {
41144
41178
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27(event, repairOnly, force) {
41145
- var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions30, _this$actions31;
41179
+ var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions32, _this$actions33;
41146
41180
  var set, actBasket, returnTo, oldReturnTo, count, basketData, bytes, result, newDivaNr, _result2, _event4, product;
41147
41181
  return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context27) {
41148
41182
  while (1) switch (_context27.prev = _context27.next) {
@@ -41229,7 +41263,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41229
41263
  _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;
41230
41264
  break;
41231
41265
  case 39:
41232
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openComponent({
41266
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openComponent({
41233
41267
  type: 'SELLER',
41234
41268
  parameters: {
41235
41269
  module: 'PCreator',
@@ -41242,7 +41276,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41242
41276
  });
41243
41277
  return _context27.abrupt("break", 63);
41244
41278
  case 41:
41245
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openComponent({
41279
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
41246
41280
  type: 'SELLER',
41247
41281
  parameters: {
41248
41282
  module: 'Basket',
@@ -41324,6 +41358,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41324
41358
  if (!set) return;
41325
41359
  return setHandlerInstance.checkNotificationRules(set, targetArticles, visitedOptions, event);
41326
41360
  }
41361
+ }, {
41362
+ key: "checkBannerRules",
41363
+ value: function checkBannerRules(visitedOptions, event) {
41364
+ var set = this.actSet();
41365
+ if (!set) return;
41366
+ return setHandlerInstance.checkBannerRules(set, visitedOptions, event);
41367
+ }
41327
41368
 
41328
41369
  /**
41329
41370
  * This function returns true if the Planner Mode should be visible and the planner Step should be shown.
@@ -41568,16 +41609,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41568
41609
  key: "addToBasket",
41569
41610
  value: function () {
41570
41611
  var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(actBasket) {
41571
- var _this$actions32,
41572
- _this$actions33,
41573
- _this$actions34,
41612
+ var _this$actions34,
41574
41613
  _this$actions35,
41575
41614
  _this$actions36,
41576
- _this$divaBasketHandl3,
41577
- _this3 = this,
41578
41615
  _this$actions37,
41579
41616
  _this$actions38,
41580
- _this$actions39;
41617
+ _this$divaBasketHandl3,
41618
+ _this3 = this,
41619
+ _this$actions39,
41620
+ _this$actions40,
41621
+ _this$actions41;
41581
41622
  var event,
41582
41623
  addToBasketLog,
41583
41624
  emailConfig,
@@ -41597,35 +41638,35 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41597
41638
  break;
41598
41639
  case 5:
41599
41640
  this.handleSuccessTransaction('onPrintBasket', actBasket);
41600
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.onEvent({
41641
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.onEvent({
41601
41642
  type: 'onWebPlanerPrint',
41602
41643
  data: actBasket.getAsJson()
41603
41644
  });
41604
41645
  return _context29.abrupt("break", 38);
41605
41646
  case 8:
41606
41647
  this.handleSuccessTransaction('onSaveBasket', actBasket);
41607
- (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.onEvent({
41648
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41608
41649
  type: 'onWebPlanerSave',
41609
41650
  data: actBasket.getAsJson()
41610
41651
  });
41611
41652
  return _context29.abrupt("break", 38);
41612
41653
  case 11:
41613
41654
  this.handleSuccessTransaction('onShareBasket', actBasket);
41614
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.onEvent({
41655
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41615
41656
  type: 'onWebPlanerShare',
41616
41657
  data: actBasket.getAsJson()
41617
41658
  });
41618
41659
  return _context29.abrupt("break", 38);
41619
41660
  case 14:
41620
41661
  this.handleSuccessTransaction('onRequestConsulation', actBasket);
41621
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41662
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41622
41663
  type: 'onRequestConsulation',
41623
41664
  data: actBasket.getAsJson()
41624
41665
  });
41625
41666
  return _context29.abrupt("break", 38);
41626
41667
  case 17:
41627
41668
  this.handleSuccessTransaction('onSave', actBasket);
41628
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41669
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41629
41670
  type: 'onSave',
41630
41671
  data: actBasket.getAsJson()
41631
41672
  });
@@ -41661,7 +41702,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41661
41702
  });
41662
41703
  this.handleSuccessTransaction('onSendEmail', actBasket);
41663
41704
  }
41664
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41705
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41665
41706
  type: 'onAddToBasket',
41666
41707
  data: actBasket.getAsJson()
41667
41708
  });
@@ -41673,7 +41714,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41673
41714
  case 28:
41674
41715
  products = _context29.sent;
41675
41716
  this.handleSuccessTransaction('onSaveProduct', actBasket);
41676
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41717
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41677
41718
  type: 'onAddToBasket',
41678
41719
  data: actBasket.getAsJson()
41679
41720
  });
@@ -41687,7 +41728,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41687
41728
  addToBasketLog = false;
41688
41729
  case 35:
41689
41730
  if (addToBasketLog) this.handleSuccessTransaction('onAddToBasket', actBasket);
41690
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41731
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41691
41732
  type: 'onAddToBasket',
41692
41733
  data: actBasket.getAsJson()
41693
41734
  });
@@ -41719,8 +41760,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41719
41760
  }, {
41720
41761
  key: "openPDFpostAsEvent",
41721
41762
  value: function openPDFpostAsEvent(mongoDBId) {
41722
- var _this$actions40, _this$actions41, _this$actions42;
41723
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.updateBreadcrumbs({
41763
+ var _this$actions42, _this$actions43, _this$actions44;
41764
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.updateBreadcrumbs({
41724
41765
  type: 'update',
41725
41766
  param: {
41726
41767
  groupId: 'SHOWROOM',
@@ -41734,7 +41775,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41734
41775
  }
41735
41776
  }
41736
41777
  });
41737
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.updateBreadcrumbs({
41778
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.updateBreadcrumbs({
41738
41779
  type: 'update',
41739
41780
  param: {
41740
41781
  groupId: 'SHOWROOM',
@@ -41748,7 +41789,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41748
41789
  }
41749
41790
  }
41750
41791
  });
41751
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.openComponent({
41792
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.openComponent({
41752
41793
  type: 'REPORT',
41753
41794
  parameters: {
41754
41795
  id: mongoDBId
@@ -41968,14 +42009,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41968
42009
  }, {
41969
42010
  key: "subscribeToWebPlannerEvents",
41970
42011
  value: function subscribeToWebPlannerEvents() {
41971
- var _this$actions43;
41972
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.subscribeEvents(this.addToBasketEventFunction);
42012
+ var _this$actions45;
42013
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.subscribeEvents(this.addToBasketEventFunction);
41973
42014
  }
41974
42015
  }, {
41975
42016
  key: "unsubscribeFromWebPlannerEvents",
41976
42017
  value: function unsubscribeFromWebPlannerEvents() {
41977
- var _this$actions44;
41978
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.unSubscribeEvents(this.addToBasketEventFunction);
42018
+ var _this$actions46;
42019
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.unSubscribeEvents(this.addToBasketEventFunction);
41979
42020
  }
41980
42021
  }, {
41981
42022
  key: "initApiForLogicOnly",