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

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-1fcf2412.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-dbdb4ba0.js → DivaStandardPlanner-513590ce.js} +2 -2
  3. package/build/cjs/{DoorPlanner-e05bdec4.js → DoorPlanner-df4ed5f1.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-908946a2.js → Host3DSignalR-8086697c.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-4bad8cba.js → LiviqueWWSHandler-584d4786.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-93d9fb4d.js → PfisterWWSHandler-3a00f020.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-593db35b.js → PlannerHandler2D-93177886.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-f1feae09.js → SeriousBasketHandler-c20c6964.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-47d446eb.js → ShelfPlanner-63c5c64d.js} +2 -1
  10. package/build/cjs/{StandardWWSHandler-1e7710d3.js → StandardWWSHandler-3ee71d5d.js} +1 -1
  11. package/build/cjs/{index-5f530bbb.js → index-a19e08b4.js} +79 -61
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-11ab03fc.js → DivaBoxPlanner-d7f5bd50.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-fcc8d692.js → DivaStandardPlanner-581fa3e7.js} +2 -2
  15. package/build/esm/{DoorPlanner-36d5e093.js → DoorPlanner-d9915cf3.js} +1 -1
  16. package/build/esm/{Host3DSignalR-9222f4e5.js → Host3DSignalR-44d4d90e.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-b01ffddd.js → LiviqueWWSHandler-598ca95a.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-327b06c0.js → PfisterWWSHandler-47d76be7.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-4ca09229.js → PlannerHandler2D-25264855.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-36a1b987.js → SeriousBasketHandler-2c6f2143.js} +1 -1
  21. package/build/esm/{ShelfPlanner-a08089d2.js → ShelfPlanner-4b1c336e.js} +2 -1
  22. package/build/esm/{StandardWWSHandler-96622950.js → StandardWWSHandler-338ed92a.js} +1 -1
  23. package/build/esm/{index-16bf1098.js → index-7e622dc6.js} +79 -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/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-a19e08b4.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-93177886.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-a19e08b4.js');
9
+ var PlannerHandler2D = require('./PlannerHandler2D-93177886.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-a19e08b4.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-a19e08b4.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-a19e08b4.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-a19e08b4.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-a19e08b4.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-a19e08b4.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-a19e08b4.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-a19e08b4.js');
6
6
  require('@babel/runtime/helpers/slicedToArray');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('@babel/runtime/helpers/defineProperty');
@@ -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-47d446eb.js'); });
23713
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-63c5c64d.js'); });
23702
23714
  case 4:
23703
23715
  _yield$import = _context.sent;
23704
23716
  ShelfPlanner = _yield$import["default"];
@@ -28221,7 +28233,7 @@ var DivaSet = /*#__PURE__*/function () {
28221
28233
  break;
28222
28234
  }
28223
28235
  _context4.next = 3;
28224
- return Promise.resolve().then(function () { return require('./DoorPlanner-e05bdec4.js'); });
28236
+ return Promise.resolve().then(function () { return require('./DoorPlanner-df4ed5f1.js'); });
28225
28237
  case 3:
28226
28238
  _yield$import = _context4.sent;
28227
28239
  DoorPlanner = _yield$import["default"];
@@ -30730,7 +30742,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30730
30742
  var myConfigItemsForView = [],
30731
30743
  objectKeys = Object.keys(myConfigItems);
30732
30744
  var _loop8 = function _loop8() {
30733
- var _ops$optionOcd3, _item$colorGroups, _item$pdfUrl, _item$url;
30745
+ var _ops$optionOcd3, _item$images, _item$colorGroups, _item$pdfUrl, _item$url;
30734
30746
  var item = myConfigItems[objectKeys[i]];
30735
30747
  var key = objectKeys[i];
30736
30748
  var groupName = item.groupName ? item.groupName : idmOpgGroupName;
@@ -30759,7 +30771,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30759
30771
  codex: item.codex,
30760
30772
  ocd: item.ocd,
30761
30773
  vCodex: item.vCodex,
30762
- layout: item.isTexture ? 'TEXTURE' : item.image ? 'IMAGE' : 'TEXT',
30774
+ layout: item.isTexture ? 'TEXTURE' : item.image || (_item$images = item.images) !== null && _item$images !== void 0 && _item$images.length ? 'IMAGE' : 'TEXT',
30763
30775
  image: image,
30764
30776
  zoomImage: zoomImage,
30765
30777
  hexColor: item.hexColor,
@@ -34847,7 +34859,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34847
34859
  break;
34848
34860
  case 3:
34849
34861
  _context12.next = 5;
34850
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-93d9fb4d.js'); });
34862
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-3a00f020.js'); });
34851
34863
  case 5:
34852
34864
  _yield$import = _context12.sent;
34853
34865
  PfisterWWSHandler = _yield$import["default"];
@@ -34855,7 +34867,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34855
34867
  return _context12.abrupt("break", 27);
34856
34868
  case 9:
34857
34869
  _context12.next = 11;
34858
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-4bad8cba.js'); });
34870
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-584d4786.js'); });
34859
34871
  case 11:
34860
34872
  _yield$import2 = _context12.sent;
34861
34873
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34863,7 +34875,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34863
34875
  return _context12.abrupt("break", 27);
34864
34876
  case 15:
34865
34877
  _context12.next = 17;
34866
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-f1feae09.js'); });
34878
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-c20c6964.js'); });
34867
34879
  case 17:
34868
34880
  _yield$import3 = _context12.sent;
34869
34881
  SeriousWWSHandler = _yield$import3["default"];
@@ -34871,7 +34883,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34871
34883
  return _context12.abrupt("break", 27);
34872
34884
  case 21:
34873
34885
  _context12.next = 23;
34874
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-1e7710d3.js'); });
34886
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-3ee71d5d.js'); });
34875
34887
  case 23:
34876
34888
  _yield$import4 = _context12.sent;
34877
34889
  StandardWWSHandler = _yield$import4["default"];
@@ -35686,6 +35698,7 @@ var Rendering = /*#__PURE__*/function () {
35686
35698
  }, {
35687
35699
  key: "hasUIInfosOfElement",
35688
35700
  value: function hasUIInfosOfElement(setId, elementid) {
35701
+ if (this.hasStaticBackground) return false; //when the rendering has static background, no UI Info is loaded d
35689
35702
  if (this.uiInfo[setId] == undefined && this.uiInfo['S1'] != undefined) {
35690
35703
  return this.uiInfo['S1']['E' + elementid] != undefined;
35691
35704
  } else {
@@ -36384,7 +36397,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36384
36397
  while (1) switch (_context3.prev = _context3.next) {
36385
36398
  case 0:
36386
36399
  _context3.next = 2;
36387
- return Promise.resolve().then(function () { return require('./Host3DSignalR-908946a2.js'); });
36400
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-8086697c.js'); });
36388
36401
  case 2:
36389
36402
  _yield$import = _context3.sent;
36390
36403
  Host3DSignalR = _yield$import["default"];
@@ -37943,7 +37956,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37943
37956
  break;
37944
37957
  case 8:
37945
37958
  _context4.next = 10;
37946
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-dbdb4ba0.js'); });
37959
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-513590ce.js'); });
37947
37960
  case 10:
37948
37961
  _yield$import = _context4.sent;
37949
37962
  DivaStandardPlanner = _yield$import["default"];
@@ -37954,7 +37967,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37954
37967
  return _context4.abrupt("break", 21);
37955
37968
  case 15:
37956
37969
  _context4.next = 17;
37957
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-4789bc0a.js'); });
37970
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-1fcf2412.js'); });
37958
37971
  case 17:
37959
37972
  _yield$import2 = _context4.sent;
37960
37973
  DivaBoxPlanner = _yield$import2["default"];
@@ -40600,6 +40613,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40600
40613
  value: function eventIsManagedByClient(event) {
40601
40614
  return this.api.eventIsManagedByClient(event);
40602
40615
  }
40616
+ }, {
40617
+ key: "showModal",
40618
+ value: function showModal(data) {
40619
+ var _this$actions21;
40620
+ (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.openModal(data);
40621
+ }
40603
40622
  }, {
40604
40623
  key: "logGA",
40605
40624
  value: function logGA(action) {
@@ -40617,25 +40636,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40617
40636
  }, {
40618
40637
  key: "callEvent",
40619
40638
  value: function callEvent(event, param) {
40620
- var _this$actions21, _this$actions22, _this$actions23, _this$actions24;
40639
+ var _this$actions22, _this$actions23, _this$actions24, _this$actions25;
40621
40640
  switch (event) {
40622
40641
  case 'onFullscreenClose':
40623
- (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.onEvent({
40642
+ (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40624
40643
  type: 'onFullscreenClose'
40625
40644
  });
40626
40645
  break;
40627
40646
  case 'onWebPlanerClose':
40628
- (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40647
+ (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40629
40648
  type: 'onWebPlanerClose'
40630
40649
  });
40631
40650
  break;
40632
40651
  case 'onWebPlanerHelp':
40633
- (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40652
+ (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40634
40653
  type: 'onWebPlanerHelp'
40635
40654
  });
40636
40655
  break;
40637
40656
  case 'onWebPlanerZoomClick':
40638
- (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40657
+ (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40639
40658
  type: 'onWebPlanerZoomClick',
40640
40659
  data: param
40641
40660
  });
@@ -40646,14 +40665,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40646
40665
  key: "saveToBasketWrapper",
40647
40666
  value: function () {
40648
40667
  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,
40668
+ var _this$actions27,
40652
40669
  _this$actions27$toggl,
40670
+ _this$actions28,
40671
+ _this$actions28$toggl,
40653
40672
  _this2 = this,
40654
- _this$actions31,
40673
+ _this$actions32,
40655
40674
  _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;
40675
+ 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
40676
  return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
40658
40677
  while (1) switch (_context25.prev = _context25.next) {
40659
40678
  case 0:
@@ -40692,25 +40711,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40692
40711
  _context25.next = 20;
40693
40712
  break;
40694
40713
  }
40695
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40714
+ (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
40696
40715
  type: finalEvent.event
40697
40716
  });
40698
40717
  return _context25.abrupt("return", 'canceled');
40699
40718
  case 20:
40700
40719
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40701
40720
  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);
40721
+ (_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
40722
  _context25.next = 24;
40704
40723
  return this.saveToBasket(finalEvent.event, repairOnly, force);
40705
40724
  case 24:
40706
40725
  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);
40726
+ (_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
40727
  if (!(result === 'canceled')) {
40709
40728
  _context25.next = 30;
40710
40729
  break;
40711
40730
  }
40712
40731
  LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
40713
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40732
+ (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40714
40733
  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
40734
  accept: true
40716
40735
  });
@@ -40724,12 +40743,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40724
40743
  LOG$1.error(new DivaUtils.DivaError('PDF url is missing in basket', {
40725
40744
  code: 'WC_0010'
40726
40745
  }));
40727
- (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40746
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40728
40747
  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
40748
  accept: true
40730
40749
  });
40731
40750
  } else {
40732
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40751
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40733
40752
  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
40753
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
40735
40754
  callback: function callback() {
@@ -40739,7 +40758,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40739
40758
  }
40740
40759
  return _context25.abrupt("break", 36);
40741
40760
  case 35:
40742
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40761
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
40743
40762
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
40744
40763
  accept: true
40745
40764
  });
@@ -40767,7 +40786,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40767
40786
  key: "saveToBasket",
40768
40787
  value: function () {
40769
40788
  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;
40789
+ var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
40771
40790
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
40772
40791
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
40773
40792
  while (1) switch (_context26.prev = _context26.next) {
@@ -40824,8 +40843,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40824
40843
  _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
40844
  break;
40826
40845
  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({
40846
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
40847
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40829
40848
  type: 'SELLER',
40830
40849
  parameters: {
40831
40850
  module: 'PCreator',
@@ -40837,7 +40856,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40837
40856
  });
40838
40857
  return _context26.abrupt("break", 52);
40839
40858
  case 31:
40840
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40859
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
40841
40860
  type: 'SELLER',
40842
40861
  parameters: {
40843
40862
  module: 'Basket',
@@ -40951,7 +40970,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40951
40970
  }
40952
40971
  }
40953
40972
  if (plannerType === 'JUMP_OVER_PLANNER') {
40954
- ret = 'PLANNER';
40973
+ if (doShowPlanner) ret = 'PLANNER';
40955
40974
  plannerType = undefined;
40956
40975
  }
40957
40976
  if (plannerType === 'CUSTOMER_OPTIMIZED_PLANNER') {
@@ -40975,7 +40994,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40975
40994
  }
40976
40995
  if (plannerType) return plannerType;
40977
40996
  if (doShowPlanner) {
40978
- // deprected; plannerType should only be used
40979
40997
  ret = 'PLANNER';
40980
40998
  }
40981
40999
  return ret;
@@ -41161,17 +41179,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41161
41179
  key: "addToBasket",
41162
41180
  value: function () {
41163
41181
  var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(actBasket) {
41164
- var _this$actions35,
41165
- _this$actions36,
41182
+ var _this$actions36,
41166
41183
  _this$actions37,
41167
41184
  _this$actions38,
41168
41185
  _this$actions39,
41186
+ _this$actions40,
41169
41187
  _this$divaBasketHandl4,
41170
41188
  _this3 = this,
41171
- _this$actions40,
41172
41189
  _this$actions41,
41173
41190
  _this$actions42,
41174
- _this$actions43;
41191
+ _this$actions43,
41192
+ _this$actions44;
41175
41193
  var event,
41176
41194
  emailConfig,
41177
41195
  _emailConfig$to$split,
@@ -41188,31 +41206,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41188
41206
  _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
41207
  break;
41190
41208
  case 5:
41191
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41209
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41192
41210
  type: 'onWebPlanerPrint',
41193
41211
  data: actBasket.getAsJson()
41194
41212
  });
41195
41213
  return _context28.abrupt("break", 32);
41196
41214
  case 7:
41197
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41215
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41198
41216
  type: 'onWebPlanerSave',
41199
41217
  data: actBasket.getAsJson()
41200
41218
  });
41201
41219
  return _context28.abrupt("break", 32);
41202
41220
  case 9:
41203
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41221
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41204
41222
  type: 'onWebPlanerShare',
41205
41223
  data: actBasket.getAsJson()
41206
41224
  });
41207
41225
  return _context28.abrupt("break", 32);
41208
41226
  case 11:
41209
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41227
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41210
41228
  type: 'onRequestConsulation',
41211
41229
  data: actBasket.getAsJson()
41212
41230
  });
41213
41231
  return _context28.abrupt("break", 32);
41214
41232
  case 13:
41215
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41233
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41216
41234
  type: 'onSave',
41217
41235
  data: actBasket.getAsJson()
41218
41236
  });
@@ -41247,7 +41265,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41247
41265
  });
41248
41266
  });
41249
41267
  }
41250
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41268
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41251
41269
  type: 'onAddToBasket',
41252
41270
  data: actBasket.getAsJson()
41253
41271
  });
@@ -41258,7 +41276,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41258
41276
  return this.api.saveAsProduct(this.sets, actBasket);
41259
41277
  case 23:
41260
41278
  products = _context28.sent;
41261
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41279
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41262
41280
  type: 'onAddToBasket',
41263
41281
  data: actBasket.getAsJson()
41264
41282
  });
@@ -41269,13 +41287,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41269
41287
  return _context28.abrupt("return", products[0]);
41270
41288
  case 27:
41271
41289
  case 28:
41272
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41290
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41273
41291
  type: 'onAddToBasket',
41274
41292
  data: actBasket.getAsJson()
41275
41293
  });
41276
41294
  return _context28.abrupt("break", 32);
41277
41295
  case 30:
41278
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41296
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
41279
41297
  type: event,
41280
41298
  data: actBasket.getAsJson()
41281
41299
  });
@@ -41296,8 +41314,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41296
41314
  }, {
41297
41315
  key: "openPDFpostAsEvent",
41298
41316
  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({
41317
+ var _this$actions45, _this$actions46, _this$actions47;
41318
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41301
41319
  type: 'update',
41302
41320
  param: {
41303
41321
  groupId: 'SHOWROOM',
@@ -41311,7 +41329,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41311
41329
  }
41312
41330
  }
41313
41331
  });
41314
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41332
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.updateBreadcrumbs({
41315
41333
  type: 'update',
41316
41334
  param: {
41317
41335
  groupId: 'SHOWROOM',
@@ -41325,7 +41343,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41325
41343
  }
41326
41344
  }
41327
41345
  });
41328
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
41346
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.openComponent({
41329
41347
  type: 'REPORT',
41330
41348
  parameters: {
41331
41349
  id: mongoDBId
@@ -41545,14 +41563,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41545
41563
  }, {
41546
41564
  key: "subscribeToWebPlannerEvents",
41547
41565
  value: function subscribeToWebPlannerEvents() {
41548
- var _this$actions47;
41549
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
41566
+ var _this$actions48;
41567
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.subscribeEvents(this.addToBasketEventFunction);
41550
41568
  }
41551
41569
  }, {
41552
41570
  key: "unsubscribeFromWebPlannerEvents",
41553
41571
  value: function unsubscribeFromWebPlannerEvents() {
41554
- var _this$actions48;
41555
- (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
41572
+ var _this$actions49;
41573
+ (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.unSubscribeEvents(this.addToBasketEventFunction);
41556
41574
  }
41557
41575
  }, {
41558
41576
  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-a19e08b4.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-7e622dc6.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-25264855.js';
10
10
  import '@babel/runtime/helpers/slicedToArray';
11
11
  import '@babel/runtime/helpers/objectWithoutProperties';
12
12
  import 'axios';