@crystaldesign/web-planner-logic 24.15.0-beta.2 → 24.15.0-beta.20

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 (37) hide show
  1. package/build/cjs/{DivaBoxPlanner-a902a2b5.js → DivaBoxPlanner-60276fe9.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-64e0b280.js → DivaStandardPlanner-8df55520.js} +2 -2
  3. package/build/cjs/{DoorPlanner-e98cc91c.js → DoorPlanner-e541a189.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-b507198e.js → Host3DSignalR-54e7cf6b.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-e144ed04.js → LiviqueWWSHandler-edaaf5ad.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-4a6d833a.js → PfisterWWSHandler-e57cbbf5.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-56454913.js → PlannerHandler2D-202d2c32.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-8530c15f.js → SeriousBasketHandler-f133ea82.js} +15 -4
  9. package/build/cjs/{ShelfPlanner-ce137022.js → ShelfPlanner-af84a77b.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-cd08ca46.js → StandardWWSHandler-910afd9a.js} +1 -1
  11. package/build/cjs/{index-46a915c3.js → index-85eca595.js} +83 -61
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-d09aeb85.js → DivaBoxPlanner-b6d4ad5f.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-d510e8d0.js → DivaStandardPlanner-4fce9085.js} +2 -2
  15. package/build/esm/{DoorPlanner-713539f6.js → DoorPlanner-30b88009.js} +1 -1
  16. package/build/esm/{Host3DSignalR-62dcf76f.js → Host3DSignalR-a92414c4.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-795815ac.js → LiviqueWWSHandler-f9f3b694.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-0f6f7d10.js → PfisterWWSHandler-d90c1191.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-4b739952.js → PlannerHandler2D-d7399455.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-05587353.js → SeriousBasketHandler-b7da61b8.js} +15 -4
  21. package/build/esm/{ShelfPlanner-1e73edcf.js → ShelfPlanner-b340b843.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-69ded749.js → StandardWWSHandler-8d4736c2.js} +1 -1
  23. package/build/esm/{index-032d3dde.js → index-b94d14dd.js} +83 -61
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +1 -0
  26. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/logic/Basket/SeriousBasketHandler.d.ts.map +1 -1
  28. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +2 -1
  30. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/logic/Planner/Rendering/Rendering.d.ts.map +1 -1
  32. package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +1 -0
  34. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +1 -1
  36. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
  37. package/package.json +2 -2
@@ -604,7 +604,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
604
604
  }, {
605
605
  key: "getEnableRTVUnityKombi",
606
606
  value: function getEnableRTVUnityKombi() {
607
- return !!this.organization.settings.enableRTV;
607
+ var _this$organization$se;
608
+ return !!((_this$organization$se = this.organization.settings) !== null && _this$organization$se !== void 0 && _this$organization$se.enableRTV);
608
609
  }
609
610
  }, {
610
611
  key: "getDoDisablePlanner2D",
@@ -639,8 +640,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
639
640
  }, {
640
641
  key: "ruleDescSeperator",
641
642
  value: function ruleDescSeperator() {
642
- var _this$organization$se, _this$organization2;
643
- var seperator = (_this$organization$se = (_this$organization2 = this.organization) === null || _this$organization2 === void 0 || (_this$organization2 = _this$organization2.settings) === null || _this$organization2 === void 0 ? void 0 : _this$organization2.ruleDescSeperator) !== null && _this$organization$se !== void 0 ? _this$organization$se : ', ';
643
+ var _this$organization$se2, _this$organization2;
644
+ var seperator = (_this$organization$se2 = (_this$organization2 = this.organization) === null || _this$organization2 === void 0 || (_this$organization2 = _this$organization2.settings) === null || _this$organization2 === void 0 ? void 0 : _this$organization2.ruleDescSeperator) !== null && _this$organization$se2 !== void 0 ? _this$organization$se2 : ', ';
644
645
  // \n is escaped in url and therefore needs to be set via keyword
645
646
  if (seperator == 'newLine') return '\n';
646
647
  return seperator;
@@ -1758,7 +1759,8 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1758
1759
  }, {
1759
1760
  key: "isNotRelevant",
1760
1761
  get: function get() {
1761
- return this.opv.catalogOPV.isNotRelevant;
1762
+ var _this$opv$catalogOPV$, _this$ocd;
1763
+ return (_this$opv$catalogOPV$ = this.opv.catalogOPV.isNotRelevant) !== null && _this$opv$catalogOPV$ !== void 0 ? _this$opv$catalogOPV$ : ['OPVNR', 'OPVNRR', 'OPVNR_0'].includes((_this$ocd = this.ocd) !== null && _this$ocd !== void 0 ? _this$ocd : this.codex);
1762
1764
  }
1763
1765
  }, {
1764
1766
  key: "vCodex",
@@ -2009,11 +2011,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
2009
2011
  }, {
2010
2012
  key: "metaDataView",
2011
2013
  get: function get() {
2012
- var _this$ocd;
2014
+ var _this$ocd2;
2013
2015
  return [].concat(_toConsumableArray__default["default"](this.opv.catalogOPV.metaDataView), [{
2014
2016
  codex: 'codex',
2015
2017
  name: '',
2016
- values: [((_this$ocd = this.ocd) !== null && _this$ocd !== void 0 ? _this$ocd : this.codex).replace('OPVOPV_', 'OPV_')],
2018
+ values: [((_this$ocd2 = this.ocd) !== null && _this$ocd2 !== void 0 ? _this$ocd2 : this.codex).replace('OPVOPV_', 'OPV_')],
2017
2019
  values_locales: []
2018
2020
  }]);
2019
2021
  }
@@ -17092,6 +17094,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
17092
17094
  key: "initArticleRelations",
17093
17095
  value: function initArticleRelations(articleRelations, catalog) {
17094
17096
  //ein schönes Object mappen und z.B. nachschauen ob der Acc ein SVG hat
17097
+ if (catalog.ignoreArticleRelations) return;
17095
17098
  this.catalogArticle.articleRelations = [];
17096
17099
  if (articleRelations[0].Articles.length > 0) {
17097
17100
  this.catalogArticle.hasArticleRelations = true;
@@ -18301,6 +18304,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18301
18304
  // accessories sind direkt configurierbar im Accessorie Schritt. kommen aber trozdem auch im Optionsbaum raus
18302
18305
  configOnlyAccessoires: false,
18303
18306
  // accessories sind direkt configurierbar nur im Accessoires Schritt
18307
+ ignoreArticleRelations: false,
18308
+ // jegliche artikle Realtions welche von den Daten kommen werden ignoriert
18304
18309
  repairVariantValues: undefined,
18305
18310
  // Mapping von OPT und OPV um beim öffnen von BK's die variantValues zu updaten
18306
18311
  showPricePreviewOnlyOnOptions: [],
@@ -18608,6 +18613,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18608
18613
  _this.catalogData.configAccessoires = item.Value == '1';
18609
18614
  } else if (item.Codex == 'CONFIG_ONLY_ACCESSOIRES') {
18610
18615
  _this.catalogData.configOnlyAccessoires = item.Value == '1';
18616
+ } else if (item.Codex == 'IGNORE_ARTICLERELATIONS') {
18617
+ _this.catalogData.ignoreArticleRelations = item.Value == '1';
18611
18618
  } else if (item.Codex == 'REPAIR_VARIANT_VALUES') {
18612
18619
  var entries = item.Value.split(';;');
18613
18620
  _this.catalogData.repairVariantValues = {};
@@ -19214,6 +19221,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19214
19221
  get: function get() {
19215
19222
  return this.catalogData.configOnlyAccessoires;
19216
19223
  }
19224
+ }, {
19225
+ key: "ignoreArticleRelations",
19226
+ get: function get() {
19227
+ return this.catalogData.ignoreArticleRelations;
19228
+ }
19217
19229
  }, {
19218
19230
  key: "startFilterParams",
19219
19231
  get: function get() {
@@ -23698,7 +23710,7 @@ var DivaArticle = /*#__PURE__*/function () {
23698
23710
  break;
23699
23711
  }
23700
23712
  _context.next = 4;
23701
- return Promise.resolve().then(function () { return require('./ShelfPlanner-ce137022.js'); });
23713
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-af84a77b.js'); });
23702
23714
  case 4:
23703
23715
  _yield$import = _context.sent;
23704
23716
  ShelfPlanner = _yield$import["default"];
@@ -26677,6 +26689,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26677
26689
  }, {
26678
26690
  key: "getCurPaletteType",
26679
26691
  value: function getCurPaletteType(set, configStepKey, articles) {
26692
+ var _set$api$ReturnToFrom;
26680
26693
  var step = this.getAllByKey(configStepKey);
26681
26694
  var configStep = step === null || step === void 0 ? void 0 : step.configStep;
26682
26695
  var optionStep = step === null || step === void 0 ? void 0 : step.optionStep;
@@ -26710,6 +26723,9 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26710
26723
  paletteType = 'GAL';
26711
26724
  }
26712
26725
  }
26726
+ if ((_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('FAVORITS')) if (paletteType == 'DROPDOWN_IMAGE' || paletteType == 'DROPDOWN_TEXT' || paletteType == 'TOGGLE_NAME' || paletteType == 'TOGGLE') {
26727
+ paletteType = 'SMALL';
26728
+ }
26713
26729
  return paletteType;
26714
26730
  }
26715
26731
  }, {
@@ -28221,7 +28237,7 @@ var DivaSet = /*#__PURE__*/function () {
28221
28237
  break;
28222
28238
  }
28223
28239
  _context4.next = 3;
28224
- return Promise.resolve().then(function () { return require('./DoorPlanner-e98cc91c.js'); });
28240
+ return Promise.resolve().then(function () { return require('./DoorPlanner-e541a189.js'); });
28225
28241
  case 3:
28226
28242
  _yield$import = _context4.sent;
28227
28243
  DoorPlanner = _yield$import["default"];
@@ -30730,7 +30746,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30730
30746
  var myConfigItemsForView = [],
30731
30747
  objectKeys = Object.keys(myConfigItems);
30732
30748
  var _loop8 = function _loop8() {
30733
- var _ops$optionOcd3, _item$colorGroups, _item$pdfUrl, _item$url;
30749
+ var _ops$optionOcd3, _item$images, _item$colorGroups, _item$pdfUrl, _item$url;
30734
30750
  var item = myConfigItems[objectKeys[i]];
30735
30751
  var key = objectKeys[i];
30736
30752
  var groupName = item.groupName ? item.groupName : idmOpgGroupName;
@@ -30759,7 +30775,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30759
30775
  codex: item.codex,
30760
30776
  ocd: item.ocd,
30761
30777
  vCodex: item.vCodex,
30762
- layout: item.isTexture ? 'TEXTURE' : item.image ? 'IMAGE' : 'TEXT',
30778
+ layout: item.isTexture ? 'TEXTURE' : item.image || (_item$images = item.images) !== null && _item$images !== void 0 && _item$images.length ? 'IMAGE' : 'TEXT',
30763
30779
  image: image,
30764
30780
  zoomImage: zoomImage,
30765
30781
  hexColor: item.hexColor,
@@ -34847,7 +34863,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34847
34863
  break;
34848
34864
  case 3:
34849
34865
  _context12.next = 5;
34850
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-4a6d833a.js'); });
34866
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-e57cbbf5.js'); });
34851
34867
  case 5:
34852
34868
  _yield$import = _context12.sent;
34853
34869
  PfisterWWSHandler = _yield$import["default"];
@@ -34855,7 +34871,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34855
34871
  return _context12.abrupt("break", 27);
34856
34872
  case 9:
34857
34873
  _context12.next = 11;
34858
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-e144ed04.js'); });
34874
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-edaaf5ad.js'); });
34859
34875
  case 11:
34860
34876
  _yield$import2 = _context12.sent;
34861
34877
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34863,7 +34879,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34863
34879
  return _context12.abrupt("break", 27);
34864
34880
  case 15:
34865
34881
  _context12.next = 17;
34866
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-8530c15f.js'); });
34882
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-f133ea82.js'); });
34867
34883
  case 17:
34868
34884
  _yield$import3 = _context12.sent;
34869
34885
  SeriousWWSHandler = _yield$import3["default"];
@@ -34871,7 +34887,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34871
34887
  return _context12.abrupt("break", 27);
34872
34888
  case 21:
34873
34889
  _context12.next = 23;
34874
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-cd08ca46.js'); });
34890
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-910afd9a.js'); });
34875
34891
  case 23:
34876
34892
  _yield$import4 = _context12.sent;
34877
34893
  StandardWWSHandler = _yield$import4["default"];
@@ -35686,6 +35702,7 @@ var Rendering = /*#__PURE__*/function () {
35686
35702
  }, {
35687
35703
  key: "hasUIInfosOfElement",
35688
35704
  value: function hasUIInfosOfElement(setId, elementid) {
35705
+ if (this.hasStaticBackground) return false; //when the rendering has static background, no UI Info is loaded d
35689
35706
  if (this.uiInfo[setId] == undefined && this.uiInfo['S1'] != undefined) {
35690
35707
  return this.uiInfo['S1']['E' + elementid] != undefined;
35691
35708
  } else {
@@ -36384,7 +36401,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36384
36401
  while (1) switch (_context3.prev = _context3.next) {
36385
36402
  case 0:
36386
36403
  _context3.next = 2;
36387
- return Promise.resolve().then(function () { return require('./Host3DSignalR-b507198e.js'); });
36404
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-54e7cf6b.js'); });
36388
36405
  case 2:
36389
36406
  _yield$import = _context3.sent;
36390
36407
  Host3DSignalR = _yield$import["default"];
@@ -37943,7 +37960,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37943
37960
  break;
37944
37961
  case 8:
37945
37962
  _context4.next = 10;
37946
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-64e0b280.js'); });
37963
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-8df55520.js'); });
37947
37964
  case 10:
37948
37965
  _yield$import = _context4.sent;
37949
37966
  DivaStandardPlanner = _yield$import["default"];
@@ -37954,7 +37971,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37954
37971
  return _context4.abrupt("break", 21);
37955
37972
  case 15:
37956
37973
  _context4.next = 17;
37957
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-a902a2b5.js'); });
37974
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-60276fe9.js'); });
37958
37975
  case 17:
37959
37976
  _yield$import2 = _context4.sent;
37960
37977
  DivaBoxPlanner = _yield$import2["default"];
@@ -40600,6 +40617,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40600
40617
  value: function eventIsManagedByClient(event) {
40601
40618
  return this.api.eventIsManagedByClient(event);
40602
40619
  }
40620
+ }, {
40621
+ key: "showModal",
40622
+ value: function showModal(data) {
40623
+ var _this$actions21;
40624
+ (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.openModal(data);
40625
+ }
40603
40626
  }, {
40604
40627
  key: "logGA",
40605
40628
  value: function logGA(action) {
@@ -40617,25 +40640,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40617
40640
  }, {
40618
40641
  key: "callEvent",
40619
40642
  value: function callEvent(event, param) {
40620
- var _this$actions21, _this$actions22, _this$actions23, _this$actions24;
40643
+ var _this$actions22, _this$actions23, _this$actions24, _this$actions25;
40621
40644
  switch (event) {
40622
40645
  case 'onFullscreenClose':
40623
- (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.onEvent({
40646
+ (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40624
40647
  type: 'onFullscreenClose'
40625
40648
  });
40626
40649
  break;
40627
40650
  case 'onWebPlanerClose':
40628
- (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40651
+ (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40629
40652
  type: 'onWebPlanerClose'
40630
40653
  });
40631
40654
  break;
40632
40655
  case 'onWebPlanerHelp':
40633
- (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40656
+ (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40634
40657
  type: 'onWebPlanerHelp'
40635
40658
  });
40636
40659
  break;
40637
40660
  case 'onWebPlanerZoomClick':
40638
- (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40661
+ (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40639
40662
  type: 'onWebPlanerZoomClick',
40640
40663
  data: param
40641
40664
  });
@@ -40646,14 +40669,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40646
40669
  key: "saveToBasketWrapper",
40647
40670
  value: function () {
40648
40671
  var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee25(event, repairOnly, force) {
40649
- var _this$actions26,
40650
- _this$actions26$toggl,
40651
- _this$actions27,
40672
+ var _this$actions27,
40652
40673
  _this$actions27$toggl,
40674
+ _this$actions28,
40675
+ _this$actions28$toggl,
40653
40676
  _this2 = this,
40654
- _this$actions31,
40677
+ _this$actions32,
40655
40678
  _this$i18n14;
40656
- var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions25, result, _this$actions28, _this$i18n8, _this$i18n9, _this$actions29, _this$i18n10, _this$i18n11, _this$actions30, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40679
+ var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions26, result, _this$actions29, _this$i18n8, _this$i18n9, _this$actions30, _this$i18n10, _this$i18n11, _this$actions31, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40657
40680
  return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
40658
40681
  while (1) switch (_context25.prev = _context25.next) {
40659
40682
  case 0:
@@ -40692,25 +40715,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40692
40715
  _context25.next = 20;
40693
40716
  break;
40694
40717
  }
40695
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40718
+ (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
40696
40719
  type: finalEvent.event
40697
40720
  });
40698
40721
  return _context25.abrupt("return", 'canceled');
40699
40722
  case 20:
40700
40723
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40701
40724
  case 21:
40702
- (_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, true);
40725
+ (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, true);
40703
40726
  _context25.next = 24;
40704
40727
  return this.saveToBasket(finalEvent.event, repairOnly, force);
40705
40728
  case 24:
40706
40729
  result = _context25.sent;
40707
- (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, false);
40730
+ (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || (_this$actions28$toggl = _this$actions28.toggleLoading) === null || _this$actions28$toggl === void 0 || _this$actions28$toggl.call(_this$actions28, 'Planner_Saving', false, false);
40708
40731
  if (!(result === 'canceled')) {
40709
40732
  _context25.next = 30;
40710
40733
  break;
40711
40734
  }
40712
40735
  LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
40713
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40736
+ (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40714
40737
  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() : '',
40715
40738
  accept: true
40716
40739
  });
@@ -40724,12 +40747,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40724
40747
  LOG$1.error(new DivaUtils.DivaError('PDF url is missing in basket', {
40725
40748
  code: 'WC_0010'
40726
40749
  }));
40727
- (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40750
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40728
40751
  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() : '',
40729
40752
  accept: true
40730
40753
  });
40731
40754
  } else {
40732
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40755
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40733
40756
  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'),
40734
40757
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
40735
40758
  callback: function callback() {
@@ -40739,7 +40762,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40739
40762
  }
40740
40763
  return _context25.abrupt("break", 36);
40741
40764
  case 35:
40742
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40765
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
40743
40766
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
40744
40767
  accept: true
40745
40768
  });
@@ -40767,7 +40790,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40767
40790
  key: "saveToBasket",
40768
40791
  value: function () {
40769
40792
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, force) {
40770
- var _returnTo, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34, _this$divaBasketHandl2;
40793
+ var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
40771
40794
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
40772
40795
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
40773
40796
  while (1) switch (_context26.prev = _context26.next) {
@@ -40824,8 +40847,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40824
40847
  _context26.next = _context26.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 28 : _context26.t3 === 'OPEN_SELLER_BASKET' ? 31 : _context26.t3 === 'OPEN_PDF' ? 33 : _context26.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context26.t3 === 'SAVE_BASKET' ? 33 : _context26.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context26.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 52;
40825
40848
  break;
40826
40849
  case 28:
40827
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.toggleLoading('buildScene', false, false);
40828
- (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
40850
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
40851
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40829
40852
  type: 'SELLER',
40830
40853
  parameters: {
40831
40854
  module: 'PCreator',
@@ -40837,7 +40860,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40837
40860
  });
40838
40861
  return _context26.abrupt("break", 52);
40839
40862
  case 31:
40840
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40863
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
40841
40864
  type: 'SELLER',
40842
40865
  parameters: {
40843
40866
  module: 'Basket',
@@ -40951,7 +40974,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40951
40974
  }
40952
40975
  }
40953
40976
  if (plannerType === 'JUMP_OVER_PLANNER') {
40954
- ret = 'PLANNER';
40977
+ if (doShowPlanner) ret = 'PLANNER';
40955
40978
  plannerType = undefined;
40956
40979
  }
40957
40980
  if (plannerType === 'CUSTOMER_OPTIMIZED_PLANNER') {
@@ -40975,7 +40998,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40975
40998
  }
40976
40999
  if (plannerType) return plannerType;
40977
41000
  if (doShowPlanner) {
40978
- // deprected; plannerType should only be used
40979
41001
  ret = 'PLANNER';
40980
41002
  }
40981
41003
  return ret;
@@ -41161,17 +41183,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41161
41183
  key: "addToBasket",
41162
41184
  value: function () {
41163
41185
  var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(actBasket) {
41164
- var _this$actions35,
41165
- _this$actions36,
41186
+ var _this$actions36,
41166
41187
  _this$actions37,
41167
41188
  _this$actions38,
41168
41189
  _this$actions39,
41190
+ _this$actions40,
41169
41191
  _this$divaBasketHandl4,
41170
41192
  _this3 = this,
41171
- _this$actions40,
41172
41193
  _this$actions41,
41173
41194
  _this$actions42,
41174
- _this$actions43;
41195
+ _this$actions43,
41196
+ _this$actions44;
41175
41197
  var event,
41176
41198
  emailConfig,
41177
41199
  _emailConfig$to$split,
@@ -41188,31 +41210,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41188
41210
  _context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 7 : _context28.t0 === 'onWebPlanerShare' ? 9 : _context28.t0 === 'onRequestConsulation' ? 11 : _context28.t0 === 'onSave' ? 13 : _context28.t0 === 'onSendEmail' ? 15 : _context28.t0 === 'onSaveProduct' ? 20 : _context28.t0 === 'dontSaveBasket' ? 27 : _context28.t0 === 'onAddToBasket' ? 28 : 30;
41189
41211
  break;
41190
41212
  case 5:
41191
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41213
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41192
41214
  type: 'onWebPlanerPrint',
41193
41215
  data: actBasket.getAsJson()
41194
41216
  });
41195
41217
  return _context28.abrupt("break", 32);
41196
41218
  case 7:
41197
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41219
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41198
41220
  type: 'onWebPlanerSave',
41199
41221
  data: actBasket.getAsJson()
41200
41222
  });
41201
41223
  return _context28.abrupt("break", 32);
41202
41224
  case 9:
41203
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41225
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41204
41226
  type: 'onWebPlanerShare',
41205
41227
  data: actBasket.getAsJson()
41206
41228
  });
41207
41229
  return _context28.abrupt("break", 32);
41208
41230
  case 11:
41209
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41231
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41210
41232
  type: 'onRequestConsulation',
41211
41233
  data: actBasket.getAsJson()
41212
41234
  });
41213
41235
  return _context28.abrupt("break", 32);
41214
41236
  case 13:
41215
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41237
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41216
41238
  type: 'onSave',
41217
41239
  data: actBasket.getAsJson()
41218
41240
  });
@@ -41247,7 +41269,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41247
41269
  });
41248
41270
  });
41249
41271
  }
41250
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41272
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41251
41273
  type: 'onAddToBasket',
41252
41274
  data: actBasket.getAsJson()
41253
41275
  });
@@ -41258,7 +41280,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41258
41280
  return this.api.saveAsProduct(this.sets, actBasket);
41259
41281
  case 23:
41260
41282
  products = _context28.sent;
41261
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41283
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41262
41284
  type: 'onAddToBasket',
41263
41285
  data: actBasket.getAsJson()
41264
41286
  });
@@ -41269,13 +41291,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41269
41291
  return _context28.abrupt("return", products[0]);
41270
41292
  case 27:
41271
41293
  case 28:
41272
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41294
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41273
41295
  type: 'onAddToBasket',
41274
41296
  data: actBasket.getAsJson()
41275
41297
  });
41276
41298
  return _context28.abrupt("break", 32);
41277
41299
  case 30:
41278
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41300
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
41279
41301
  type: event,
41280
41302
  data: actBasket.getAsJson()
41281
41303
  });
@@ -41296,8 +41318,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41296
41318
  }, {
41297
41319
  key: "openPDFpostAsEvent",
41298
41320
  value: function openPDFpostAsEvent(mongoDBId) {
41299
- var _this$actions44, _this$actions45, _this$actions46;
41300
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.updateBreadcrumbs({
41321
+ var _this$actions45, _this$actions46, _this$actions47;
41322
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41301
41323
  type: 'update',
41302
41324
  param: {
41303
41325
  groupId: 'SHOWROOM',
@@ -41311,7 +41333,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41311
41333
  }
41312
41334
  }
41313
41335
  });
41314
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41336
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.updateBreadcrumbs({
41315
41337
  type: 'update',
41316
41338
  param: {
41317
41339
  groupId: 'SHOWROOM',
@@ -41325,7 +41347,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41325
41347
  }
41326
41348
  }
41327
41349
  });
41328
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
41350
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.openComponent({
41329
41351
  type: 'REPORT',
41330
41352
  parameters: {
41331
41353
  id: mongoDBId
@@ -41545,14 +41567,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41545
41567
  }, {
41546
41568
  key: "subscribeToWebPlannerEvents",
41547
41569
  value: function subscribeToWebPlannerEvents() {
41548
- var _this$actions47;
41549
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
41570
+ var _this$actions48;
41571
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.subscribeEvents(this.addToBasketEventFunction);
41550
41572
  }
41551
41573
  }, {
41552
41574
  key: "unsubscribeFromWebPlannerEvents",
41553
41575
  value: function unsubscribeFromWebPlannerEvents() {
41554
- var _this$actions48;
41555
- (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
41576
+ var _this$actions49;
41577
+ (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.unSubscribeEvents(this.addToBasketEventFunction);
41556
41578
  }
41557
41579
  }, {
41558
41580
  key: "initApiForLogicOnly",
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-46a915c3.js');
5
+ var index = require('./index-85eca595.js');
6
6
  require('@babel/runtime/helpers/slicedToArray');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('@babel/runtime/helpers/classCallCheck');
@@ -3,10 +3,10 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { V as Vector3, B as BoundingBox } from './index-032d3dde.js';
6
+ import { V as Vector3, B as BoundingBox } from './index-b94d14dd.js';
7
7
  import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
8
8
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
9
- import { d as dockingPointHandlerInst, P as PlannerElementData, h as handler2D } from './PlannerHandler2D-4b739952.js';
9
+ import { d as dockingPointHandlerInst, P as PlannerElementData, h as handler2D } from './PlannerHandler2D-d7399455.js';
10
10
  import '@babel/runtime/helpers/slicedToArray';
11
11
  import '@babel/runtime/helpers/objectWithoutProperties';
12
12
  import 'axios';
@@ -3,8 +3,8 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { V as Vector3, c as Vector2, B as BoundingBox } from './index-032d3dde.js';
7
- import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-4b739952.js';
6
+ import { V as Vector3, c as Vector2, B as BoundingBox } from './index-b94d14dd.js';
7
+ import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-d7399455.js';
8
8
  import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
9
9
  import '@babel/runtime/helpers/slicedToArray';
10
10
  import '@babel/runtime/helpers/objectWithoutProperties';
@@ -1,7 +1,7 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
3
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
- import './index-032d3dde.js';
4
+ import './index-b94d14dd.js';
5
5
  import DivaUtils from '@crystaldesign/diva-utils';
6
6
  import '@babel/runtime/helpers/slicedToArray';
7
7
  import '@babel/runtime/helpers/asyncToGenerator';
@@ -3,7 +3,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { R as Rendering, H as HQRenderScript } from './index-032d3dde.js';
6
+ import { R as Rendering, H as HQRenderScript } from './index-b94d14dd.js';
7
7
  import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
8
8
  import { HubConnectionBuilder, LogLevel } from '@microsoft/signalr';
9
9
  import io from 'socket.io-client';
@@ -1,6 +1,6 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
- import './index-032d3dde.js';
3
+ import './index-b94d14dd.js';
4
4
  import '@babel/runtime/helpers/slicedToArray';
5
5
  import '@babel/runtime/helpers/asyncToGenerator';
6
6
  import '@babel/runtime/helpers/defineProperty';
@@ -1,6 +1,6 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
- import { a as articleHandlerInstance } from './index-032d3dde.js';
3
+ import { a as articleHandlerInstance } from './index-b94d14dd.js';
4
4
  import { SAPOrderLineData } from '@crystaldesign/basket-model';
5
5
  import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
6
6
  import '@babel/runtime/helpers/slicedToArray';
@@ -1,7 +1,7 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
3
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
- import { V as Vector3, c as Vector2, D as DockingPoint } from './index-032d3dde.js';
4
+ import { V as Vector3, c as Vector2, D as DockingPoint } from './index-b94d14dd.js';
5
5
  import DivaUtils, { md5, DivaError } from '@crystaldesign/diva-utils';
6
6
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
7
7
  import _regeneratorRuntime from '@babel/runtime/regenerator';