@crystaldesign/web-planner-logic 24.15.0-beta.1 → 24.15.0-beta.10

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 (35) hide show
  1. package/build/cjs/{DivaBoxPlanner-4789bc0a.js → DivaBoxPlanner-de64b005.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-dbdb4ba0.js → DivaStandardPlanner-dfce65c5.js} +2 -2
  3. package/build/cjs/{DoorPlanner-e05bdec4.js → DoorPlanner-566a8db9.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-908946a2.js → Host3DSignalR-6cdfbdf8.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-4bad8cba.js → LiviqueWWSHandler-41177e0a.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-93d9fb4d.js → PfisterWWSHandler-f017d0c9.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-593db35b.js → PlannerHandler2D-920d8043.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-f1feae09.js → SeriousBasketHandler-6a2eba97.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-47d446eb.js → ShelfPlanner-e74e3545.js} +2 -1
  10. package/build/cjs/{StandardWWSHandler-1e7710d3.js → StandardWWSHandler-d6836d3d.js} +1 -1
  11. package/build/cjs/{index-5f530bbb.js → index-81092c07.js} +75 -58
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-11ab03fc.js → DivaBoxPlanner-f426d480.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-fcc8d692.js → DivaStandardPlanner-70f2e5f8.js} +2 -2
  15. package/build/esm/{DoorPlanner-36d5e093.js → DoorPlanner-bdb98e77.js} +1 -1
  16. package/build/esm/{Host3DSignalR-9222f4e5.js → Host3DSignalR-4e794660.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-b01ffddd.js → LiviqueWWSHandler-7dc2d92c.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-327b06c0.js → PfisterWWSHandler-164397d1.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-4ca09229.js → PlannerHandler2D-4e695046.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-36a1b987.js → SeriousBasketHandler-2f939d54.js} +1 -1
  21. package/build/esm/{ShelfPlanner-a08089d2.js → ShelfPlanner-99969903.js} +2 -1
  22. package/build/esm/{StandardWWSHandler-96622950.js → StandardWWSHandler-1b7a76f9.js} +1 -1
  23. package/build/esm/{index-16bf1098.js → index-5753f739.js} +75 -58
  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/DivaWebPlanner.d.ts +2 -1
  28. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/logic/Planner/Rendering/Rendering.d.ts.map +1 -1
  30. package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +1 -0
  32. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +1 -1
  34. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
  35. package/package.json +2 -2
@@ -5,10 +5,10 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
5
5
  var _createClass = require('@babel/runtime/helpers/createClass');
6
6
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
7
7
  var _regeneratorRuntime = require('@babel/runtime/regenerator');
8
- var index = require('./index-5f530bbb.js');
8
+ var index = require('./index-81092c07.js');
9
9
  var DivaUtils = require('@crystaldesign/diva-utils');
10
10
  var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
11
- var PlannerHandler2D = require('./PlannerHandler2D-593db35b.js');
11
+ var PlannerHandler2D = require('./PlannerHandler2D-920d8043.js');
12
12
  require('@babel/runtime/helpers/slicedToArray');
13
13
  require('@babel/runtime/helpers/objectWithoutProperties');
14
14
  require('axios');
@@ -5,8 +5,8 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
5
5
  var _createClass = require('@babel/runtime/helpers/createClass');
6
6
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
7
7
  var _regeneratorRuntime = require('@babel/runtime/regenerator');
8
- var index = require('./index-5f530bbb.js');
9
- var PlannerHandler2D = require('./PlannerHandler2D-593db35b.js');
8
+ var index = require('./index-81092c07.js');
9
+ var PlannerHandler2D = require('./PlannerHandler2D-920d8043.js');
10
10
  var DivaUtils = require('@crystaldesign/diva-utils');
11
11
  require('@babel/runtime/helpers/slicedToArray');
12
12
  require('@babel/runtime/helpers/objectWithoutProperties');
@@ -3,7 +3,7 @@
3
3
  var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
4
4
  var _createClass = require('@babel/runtime/helpers/createClass');
5
5
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
- require('./index-5f530bbb.js');
6
+ require('./index-81092c07.js');
7
7
  var DivaUtils = require('@crystaldesign/diva-utils');
8
8
  require('@babel/runtime/helpers/slicedToArray');
9
9
  require('@babel/runtime/helpers/asyncToGenerator');
@@ -5,7 +5,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
5
5
  var _createClass = require('@babel/runtime/helpers/createClass');
6
6
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
7
7
  var _regeneratorRuntime = require('@babel/runtime/regenerator');
8
- var index = require('./index-5f530bbb.js');
8
+ var index = require('./index-81092c07.js');
9
9
  var DivaUtils = require('@crystaldesign/diva-utils');
10
10
  var signalr = require('@microsoft/signalr');
11
11
  var io = require('socket.io-client');
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
4
4
  var _createClass = require('@babel/runtime/helpers/createClass');
5
- require('./index-5f530bbb.js');
5
+ require('./index-81092c07.js');
6
6
  require('@babel/runtime/helpers/slicedToArray');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('@babel/runtime/helpers/defineProperty');
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
4
4
  var _createClass = require('@babel/runtime/helpers/createClass');
5
- var index = require('./index-5f530bbb.js');
5
+ var index = require('./index-81092c07.js');
6
6
  var basketModel = require('@crystaldesign/basket-model');
7
7
  var DivaUtils = require('@crystaldesign/diva-utils');
8
8
  require('@babel/runtime/helpers/slicedToArray');
@@ -3,7 +3,7 @@
3
3
  var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
4
4
  var _createClass = require('@babel/runtime/helpers/createClass');
5
5
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
- var index = require('./index-5f530bbb.js');
6
+ var index = require('./index-81092c07.js');
7
7
  var DivaUtils = require('@crystaldesign/diva-utils');
8
8
  var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
9
9
  var _regeneratorRuntime = require('@babel/runtime/regenerator');
@@ -3,7 +3,7 @@
3
3
  var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
4
4
  var _createClass = require('@babel/runtime/helpers/createClass');
5
5
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
- var index = require('./index-5f530bbb.js');
6
+ var index = require('./index-81092c07.js');
7
7
  var DivaUtils = require('@crystaldesign/diva-utils');
8
8
  require('@babel/runtime/helpers/slicedToArray');
9
9
  require('@babel/runtime/helpers/asyncToGenerator');
@@ -6,7 +6,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
6
6
  var _createClass = require('@babel/runtime/helpers/createClass');
7
7
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
8
8
  var _regeneratorRuntime = require('@babel/runtime/regenerator');
9
- var index = require('./index-5f530bbb.js');
9
+ var index = require('./index-81092c07.js');
10
10
  var DivaUtils = require('@crystaldesign/diva-utils');
11
11
  require('@babel/runtime/helpers/slicedToArray');
12
12
  require('@babel/runtime/helpers/objectWithoutProperties');
@@ -516,6 +516,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
516
516
  var ret = {};
517
517
  for (var i = 0; i < grids.length; i++) {
518
518
  var grid = grids[i];
519
+ if (grid.DisabledByRule) continue;
519
520
  ret[grid.GridName] = {
520
521
  freeCells: grid.getFreeSpacesOfAccessoire(accessoire),
521
522
  idx: i
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
4
4
  var _createClass = require('@babel/runtime/helpers/createClass');
5
- require('./index-5f530bbb.js');
5
+ require('./index-81092c07.js');
6
6
  require('@babel/runtime/helpers/slicedToArray');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('@babel/runtime/helpers/defineProperty');
@@ -1758,7 +1758,8 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1758
1758
  }, {
1759
1759
  key: "isNotRelevant",
1760
1760
  get: function get() {
1761
- return this.opv.catalogOPV.isNotRelevant;
1761
+ var _this$opv$catalogOPV$, _this$ocd;
1762
+ 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
1763
  }
1763
1764
  }, {
1764
1765
  key: "vCodex",
@@ -2009,11 +2010,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
2009
2010
  }, {
2010
2011
  key: "metaDataView",
2011
2012
  get: function get() {
2012
- var _this$ocd;
2013
+ var _this$ocd2;
2013
2014
  return [].concat(_toConsumableArray__default["default"](this.opv.catalogOPV.metaDataView), [{
2014
2015
  codex: 'codex',
2015
2016
  name: '',
2016
- values: [((_this$ocd = this.ocd) !== null && _this$ocd !== void 0 ? _this$ocd : this.codex).replace('OPVOPV_', 'OPV_')],
2017
+ values: [((_this$ocd2 = this.ocd) !== null && _this$ocd2 !== void 0 ? _this$ocd2 : this.codex).replace('OPVOPV_', 'OPV_')],
2017
2018
  values_locales: []
2018
2019
  }]);
2019
2020
  }
@@ -17092,6 +17093,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
17092
17093
  key: "initArticleRelations",
17093
17094
  value: function initArticleRelations(articleRelations, catalog) {
17094
17095
  //ein schönes Object mappen und z.B. nachschauen ob der Acc ein SVG hat
17096
+ if (catalog.ignoreArticleRelations) return;
17095
17097
  this.catalogArticle.articleRelations = [];
17096
17098
  if (articleRelations[0].Articles.length > 0) {
17097
17099
  this.catalogArticle.hasArticleRelations = true;
@@ -18301,6 +18303,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18301
18303
  // accessories sind direkt configurierbar im Accessorie Schritt. kommen aber trozdem auch im Optionsbaum raus
18302
18304
  configOnlyAccessoires: false,
18303
18305
  // accessories sind direkt configurierbar nur im Accessoires Schritt
18306
+ ignoreArticleRelations: false,
18307
+ // jegliche artikle Realtions welche von den Daten kommen werden ignoriert
18304
18308
  repairVariantValues: undefined,
18305
18309
  // Mapping von OPT und OPV um beim öffnen von BK's die variantValues zu updaten
18306
18310
  showPricePreviewOnlyOnOptions: [],
@@ -18608,6 +18612,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18608
18612
  _this.catalogData.configAccessoires = item.Value == '1';
18609
18613
  } else if (item.Codex == 'CONFIG_ONLY_ACCESSOIRES') {
18610
18614
  _this.catalogData.configOnlyAccessoires = item.Value == '1';
18615
+ } else if (item.Codex == 'IGNORE_ARTICLERELATIONS') {
18616
+ _this.catalogData.ignoreArticleRelations = item.Value == '1';
18611
18617
  } else if (item.Codex == 'REPAIR_VARIANT_VALUES') {
18612
18618
  var entries = item.Value.split(';;');
18613
18619
  _this.catalogData.repairVariantValues = {};
@@ -19214,6 +19220,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19214
19220
  get: function get() {
19215
19221
  return this.catalogData.configOnlyAccessoires;
19216
19222
  }
19223
+ }, {
19224
+ key: "ignoreArticleRelations",
19225
+ get: function get() {
19226
+ return this.catalogData.ignoreArticleRelations;
19227
+ }
19217
19228
  }, {
19218
19229
  key: "startFilterParams",
19219
19230
  get: function get() {
@@ -23698,7 +23709,7 @@ var DivaArticle = /*#__PURE__*/function () {
23698
23709
  break;
23699
23710
  }
23700
23711
  _context.next = 4;
23701
- return Promise.resolve().then(function () { return require('./ShelfPlanner-47d446eb.js'); });
23712
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-e74e3545.js'); });
23702
23713
  case 4:
23703
23714
  _yield$import = _context.sent;
23704
23715
  ShelfPlanner = _yield$import["default"];
@@ -28221,7 +28232,7 @@ var DivaSet = /*#__PURE__*/function () {
28221
28232
  break;
28222
28233
  }
28223
28234
  _context4.next = 3;
28224
- return Promise.resolve().then(function () { return require('./DoorPlanner-e05bdec4.js'); });
28235
+ return Promise.resolve().then(function () { return require('./DoorPlanner-566a8db9.js'); });
28225
28236
  case 3:
28226
28237
  _yield$import = _context4.sent;
28227
28238
  DoorPlanner = _yield$import["default"];
@@ -30730,7 +30741,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30730
30741
  var myConfigItemsForView = [],
30731
30742
  objectKeys = Object.keys(myConfigItems);
30732
30743
  var _loop8 = function _loop8() {
30733
- var _ops$optionOcd3, _item$colorGroups, _item$pdfUrl, _item$url;
30744
+ var _ops$optionOcd3, _item$images, _item$colorGroups, _item$pdfUrl, _item$url;
30734
30745
  var item = myConfigItems[objectKeys[i]];
30735
30746
  var key = objectKeys[i];
30736
30747
  var groupName = item.groupName ? item.groupName : idmOpgGroupName;
@@ -30759,7 +30770,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30759
30770
  codex: item.codex,
30760
30771
  ocd: item.ocd,
30761
30772
  vCodex: item.vCodex,
30762
- layout: item.isTexture ? 'TEXTURE' : item.image ? 'IMAGE' : 'TEXT',
30773
+ layout: item.isTexture ? 'TEXTURE' : item.image || (_item$images = item.images) !== null && _item$images !== void 0 && _item$images.length ? 'IMAGE' : 'TEXT',
30763
30774
  image: image,
30764
30775
  zoomImage: zoomImage,
30765
30776
  hexColor: item.hexColor,
@@ -34847,7 +34858,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34847
34858
  break;
34848
34859
  case 3:
34849
34860
  _context12.next = 5;
34850
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-93d9fb4d.js'); });
34861
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-f017d0c9.js'); });
34851
34862
  case 5:
34852
34863
  _yield$import = _context12.sent;
34853
34864
  PfisterWWSHandler = _yield$import["default"];
@@ -34855,7 +34866,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34855
34866
  return _context12.abrupt("break", 27);
34856
34867
  case 9:
34857
34868
  _context12.next = 11;
34858
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-4bad8cba.js'); });
34869
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-41177e0a.js'); });
34859
34870
  case 11:
34860
34871
  _yield$import2 = _context12.sent;
34861
34872
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34863,7 +34874,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34863
34874
  return _context12.abrupt("break", 27);
34864
34875
  case 15:
34865
34876
  _context12.next = 17;
34866
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-f1feae09.js'); });
34877
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-6a2eba97.js'); });
34867
34878
  case 17:
34868
34879
  _yield$import3 = _context12.sent;
34869
34880
  SeriousWWSHandler = _yield$import3["default"];
@@ -34871,7 +34882,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34871
34882
  return _context12.abrupt("break", 27);
34872
34883
  case 21:
34873
34884
  _context12.next = 23;
34874
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-1e7710d3.js'); });
34885
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-d6836d3d.js'); });
34875
34886
  case 23:
34876
34887
  _yield$import4 = _context12.sent;
34877
34888
  StandardWWSHandler = _yield$import4["default"];
@@ -35686,6 +35697,7 @@ var Rendering = /*#__PURE__*/function () {
35686
35697
  }, {
35687
35698
  key: "hasUIInfosOfElement",
35688
35699
  value: function hasUIInfosOfElement(setId, elementid) {
35700
+ if (this.hasStaticBackground) return false; //when the rendering has static background, no UI Info is loaded d
35689
35701
  if (this.uiInfo[setId] == undefined && this.uiInfo['S1'] != undefined) {
35690
35702
  return this.uiInfo['S1']['E' + elementid] != undefined;
35691
35703
  } else {
@@ -36384,7 +36396,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36384
36396
  while (1) switch (_context3.prev = _context3.next) {
36385
36397
  case 0:
36386
36398
  _context3.next = 2;
36387
- return Promise.resolve().then(function () { return require('./Host3DSignalR-908946a2.js'); });
36399
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-6cdfbdf8.js'); });
36388
36400
  case 2:
36389
36401
  _yield$import = _context3.sent;
36390
36402
  Host3DSignalR = _yield$import["default"];
@@ -37943,7 +37955,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37943
37955
  break;
37944
37956
  case 8:
37945
37957
  _context4.next = 10;
37946
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-dbdb4ba0.js'); });
37958
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-dfce65c5.js'); });
37947
37959
  case 10:
37948
37960
  _yield$import = _context4.sent;
37949
37961
  DivaStandardPlanner = _yield$import["default"];
@@ -37954,7 +37966,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37954
37966
  return _context4.abrupt("break", 21);
37955
37967
  case 15:
37956
37968
  _context4.next = 17;
37957
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-4789bc0a.js'); });
37969
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-de64b005.js'); });
37958
37970
  case 17:
37959
37971
  _yield$import2 = _context4.sent;
37960
37972
  DivaBoxPlanner = _yield$import2["default"];
@@ -40600,6 +40612,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40600
40612
  value: function eventIsManagedByClient(event) {
40601
40613
  return this.api.eventIsManagedByClient(event);
40602
40614
  }
40615
+ }, {
40616
+ key: "showModal",
40617
+ value: function showModal(data) {
40618
+ var _this$actions21;
40619
+ (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.openModal(data);
40620
+ }
40603
40621
  }, {
40604
40622
  key: "logGA",
40605
40623
  value: function logGA(action) {
@@ -40617,25 +40635,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40617
40635
  }, {
40618
40636
  key: "callEvent",
40619
40637
  value: function callEvent(event, param) {
40620
- var _this$actions21, _this$actions22, _this$actions23, _this$actions24;
40638
+ var _this$actions22, _this$actions23, _this$actions24, _this$actions25;
40621
40639
  switch (event) {
40622
40640
  case 'onFullscreenClose':
40623
- (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.onEvent({
40641
+ (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40624
40642
  type: 'onFullscreenClose'
40625
40643
  });
40626
40644
  break;
40627
40645
  case 'onWebPlanerClose':
40628
- (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40646
+ (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40629
40647
  type: 'onWebPlanerClose'
40630
40648
  });
40631
40649
  break;
40632
40650
  case 'onWebPlanerHelp':
40633
- (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40651
+ (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40634
40652
  type: 'onWebPlanerHelp'
40635
40653
  });
40636
40654
  break;
40637
40655
  case 'onWebPlanerZoomClick':
40638
- (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40656
+ (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40639
40657
  type: 'onWebPlanerZoomClick',
40640
40658
  data: param
40641
40659
  });
@@ -40646,14 +40664,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40646
40664
  key: "saveToBasketWrapper",
40647
40665
  value: function () {
40648
40666
  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,
40667
+ var _this$actions27,
40652
40668
  _this$actions27$toggl,
40669
+ _this$actions28,
40670
+ _this$actions28$toggl,
40653
40671
  _this2 = this,
40654
- _this$actions31,
40672
+ _this$actions32,
40655
40673
  _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;
40674
+ 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
40675
  return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
40658
40676
  while (1) switch (_context25.prev = _context25.next) {
40659
40677
  case 0:
@@ -40692,25 +40710,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40692
40710
  _context25.next = 20;
40693
40711
  break;
40694
40712
  }
40695
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40713
+ (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
40696
40714
  type: finalEvent.event
40697
40715
  });
40698
40716
  return _context25.abrupt("return", 'canceled');
40699
40717
  case 20:
40700
40718
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40701
40719
  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);
40720
+ (_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
40721
  _context25.next = 24;
40704
40722
  return this.saveToBasket(finalEvent.event, repairOnly, force);
40705
40723
  case 24:
40706
40724
  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);
40725
+ (_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
40726
  if (!(result === 'canceled')) {
40709
40727
  _context25.next = 30;
40710
40728
  break;
40711
40729
  }
40712
40730
  LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
40713
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40731
+ (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40714
40732
  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
40733
  accept: true
40716
40734
  });
@@ -40724,12 +40742,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40724
40742
  LOG$1.error(new DivaUtils.DivaError('PDF url is missing in basket', {
40725
40743
  code: 'WC_0010'
40726
40744
  }));
40727
- (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40745
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40728
40746
  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
40747
  accept: true
40730
40748
  });
40731
40749
  } else {
40732
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40750
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40733
40751
  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
40752
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
40735
40753
  callback: function callback() {
@@ -40739,7 +40757,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40739
40757
  }
40740
40758
  return _context25.abrupt("break", 36);
40741
40759
  case 35:
40742
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40760
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
40743
40761
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
40744
40762
  accept: true
40745
40763
  });
@@ -40767,7 +40785,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40767
40785
  key: "saveToBasket",
40768
40786
  value: function () {
40769
40787
  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;
40788
+ var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
40771
40789
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
40772
40790
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
40773
40791
  while (1) switch (_context26.prev = _context26.next) {
@@ -40824,8 +40842,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40824
40842
  _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
40843
  break;
40826
40844
  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({
40845
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
40846
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40829
40847
  type: 'SELLER',
40830
40848
  parameters: {
40831
40849
  module: 'PCreator',
@@ -40837,7 +40855,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40837
40855
  });
40838
40856
  return _context26.abrupt("break", 52);
40839
40857
  case 31:
40840
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40858
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
40841
40859
  type: 'SELLER',
40842
40860
  parameters: {
40843
40861
  module: 'Basket',
@@ -40951,7 +40969,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40951
40969
  }
40952
40970
  }
40953
40971
  if (plannerType === 'JUMP_OVER_PLANNER') {
40954
- ret = 'PLANNER';
40972
+ if (doShowPlanner) ret = 'PLANNER';
40955
40973
  plannerType = undefined;
40956
40974
  }
40957
40975
  if (plannerType === 'CUSTOMER_OPTIMIZED_PLANNER') {
@@ -40975,7 +40993,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40975
40993
  }
40976
40994
  if (plannerType) return plannerType;
40977
40995
  if (doShowPlanner) {
40978
- // deprected; plannerType should only be used
40979
40996
  ret = 'PLANNER';
40980
40997
  }
40981
40998
  return ret;
@@ -41161,17 +41178,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41161
41178
  key: "addToBasket",
41162
41179
  value: function () {
41163
41180
  var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(actBasket) {
41164
- var _this$actions35,
41165
- _this$actions36,
41181
+ var _this$actions36,
41166
41182
  _this$actions37,
41167
41183
  _this$actions38,
41168
41184
  _this$actions39,
41185
+ _this$actions40,
41169
41186
  _this$divaBasketHandl4,
41170
41187
  _this3 = this,
41171
- _this$actions40,
41172
41188
  _this$actions41,
41173
41189
  _this$actions42,
41174
- _this$actions43;
41190
+ _this$actions43,
41191
+ _this$actions44;
41175
41192
  var event,
41176
41193
  emailConfig,
41177
41194
  _emailConfig$to$split,
@@ -41188,31 +41205,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41188
41205
  _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
41206
  break;
41190
41207
  case 5:
41191
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41208
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41192
41209
  type: 'onWebPlanerPrint',
41193
41210
  data: actBasket.getAsJson()
41194
41211
  });
41195
41212
  return _context28.abrupt("break", 32);
41196
41213
  case 7:
41197
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41214
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41198
41215
  type: 'onWebPlanerSave',
41199
41216
  data: actBasket.getAsJson()
41200
41217
  });
41201
41218
  return _context28.abrupt("break", 32);
41202
41219
  case 9:
41203
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41220
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41204
41221
  type: 'onWebPlanerShare',
41205
41222
  data: actBasket.getAsJson()
41206
41223
  });
41207
41224
  return _context28.abrupt("break", 32);
41208
41225
  case 11:
41209
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41226
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41210
41227
  type: 'onRequestConsulation',
41211
41228
  data: actBasket.getAsJson()
41212
41229
  });
41213
41230
  return _context28.abrupt("break", 32);
41214
41231
  case 13:
41215
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41232
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41216
41233
  type: 'onSave',
41217
41234
  data: actBasket.getAsJson()
41218
41235
  });
@@ -41247,7 +41264,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41247
41264
  });
41248
41265
  });
41249
41266
  }
41250
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41267
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41251
41268
  type: 'onAddToBasket',
41252
41269
  data: actBasket.getAsJson()
41253
41270
  });
@@ -41258,7 +41275,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41258
41275
  return this.api.saveAsProduct(this.sets, actBasket);
41259
41276
  case 23:
41260
41277
  products = _context28.sent;
41261
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41278
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41262
41279
  type: 'onAddToBasket',
41263
41280
  data: actBasket.getAsJson()
41264
41281
  });
@@ -41269,13 +41286,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41269
41286
  return _context28.abrupt("return", products[0]);
41270
41287
  case 27:
41271
41288
  case 28:
41272
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41289
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41273
41290
  type: 'onAddToBasket',
41274
41291
  data: actBasket.getAsJson()
41275
41292
  });
41276
41293
  return _context28.abrupt("break", 32);
41277
41294
  case 30:
41278
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41295
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
41279
41296
  type: event,
41280
41297
  data: actBasket.getAsJson()
41281
41298
  });
@@ -41296,8 +41313,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41296
41313
  }, {
41297
41314
  key: "openPDFpostAsEvent",
41298
41315
  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({
41316
+ var _this$actions45, _this$actions46, _this$actions47;
41317
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41301
41318
  type: 'update',
41302
41319
  param: {
41303
41320
  groupId: 'SHOWROOM',
@@ -41311,7 +41328,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41311
41328
  }
41312
41329
  }
41313
41330
  });
41314
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41331
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.updateBreadcrumbs({
41315
41332
  type: 'update',
41316
41333
  param: {
41317
41334
  groupId: 'SHOWROOM',
@@ -41325,7 +41342,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41325
41342
  }
41326
41343
  }
41327
41344
  });
41328
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
41345
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.openComponent({
41329
41346
  type: 'REPORT',
41330
41347
  parameters: {
41331
41348
  id: mongoDBId
@@ -41545,14 +41562,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41545
41562
  }, {
41546
41563
  key: "subscribeToWebPlannerEvents",
41547
41564
  value: function subscribeToWebPlannerEvents() {
41548
- var _this$actions47;
41549
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
41565
+ var _this$actions48;
41566
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.subscribeEvents(this.addToBasketEventFunction);
41550
41567
  }
41551
41568
  }, {
41552
41569
  key: "unsubscribeFromWebPlannerEvents",
41553
41570
  value: function unsubscribeFromWebPlannerEvents() {
41554
- var _this$actions48;
41555
- (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
41571
+ var _this$actions49;
41572
+ (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.unSubscribeEvents(this.addToBasketEventFunction);
41556
41573
  }
41557
41574
  }, {
41558
41575
  key: "initApiForLogicOnly",
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-5f530bbb.js');
5
+ var index = require('./index-81092c07.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-16bf1098.js';
6
+ import { V as Vector3, B as BoundingBox } from './index-5753f739.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-4ca09229.js';
9
+ import { d as dockingPointHandlerInst, P as PlannerElementData, h as handler2D } from './PlannerHandler2D-4e695046.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-16bf1098.js';
7
- import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-4ca09229.js';
6
+ import { V as Vector3, c as Vector2, B as BoundingBox } from './index-5753f739.js';
7
+ import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-4e695046.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-16bf1098.js';
4
+ import './index-5753f739.js';
5
5
  import DivaUtils from '@crystaldesign/diva-utils';
6
6
  import '@babel/runtime/helpers/slicedToArray';
7
7
  import '@babel/runtime/helpers/asyncToGenerator';