@crystaldesign/web-planner-logic 24.14.1-rc.0 → 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 (32) hide show
  1. package/build/cjs/{DivaBoxPlanner-c0521b92.js → DivaBoxPlanner-de64b005.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-112068e3.js → DivaStandardPlanner-dfce65c5.js} +2 -2
  3. package/build/cjs/{DoorPlanner-584269b5.js → DoorPlanner-566a8db9.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-c689fd17.js → Host3DSignalR-6cdfbdf8.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-f23fabcc.js → LiviqueWWSHandler-41177e0a.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-ae37e002.js → PfisterWWSHandler-f017d0c9.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-d4f13c3d.js → PlannerHandler2D-920d8043.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-dc19ff15.js → SeriousBasketHandler-6a2eba97.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-441ca110.js → ShelfPlanner-e74e3545.js} +2 -1
  10. package/build/cjs/{StandardWWSHandler-2e4778ec.js → StandardWWSHandler-d6836d3d.js} +1 -1
  11. package/build/cjs/{index-321b880c.js → index-81092c07.js} +67 -51
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-374cfb95.js → DivaBoxPlanner-f426d480.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-b78746d2.js → DivaStandardPlanner-70f2e5f8.js} +2 -2
  15. package/build/esm/{DoorPlanner-b841527f.js → DoorPlanner-bdb98e77.js} +1 -1
  16. package/build/esm/{Host3DSignalR-b5271560.js → Host3DSignalR-4e794660.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-5af67c6b.js → LiviqueWWSHandler-7dc2d92c.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-043f1cfc.js → PfisterWWSHandler-164397d1.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-8e998bfd.js → PlannerHandler2D-4e695046.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-ebc3754a.js → SeriousBasketHandler-2f939d54.js} +1 -1
  21. package/build/esm/{ShelfPlanner-188723ce.js → ShelfPlanner-99969903.js} +2 -1
  22. package/build/esm/{StandardWWSHandler-b6aff8d4.js → StandardWWSHandler-1b7a76f9.js} +1 -1
  23. package/build/esm/{index-68946af7.js → index-5753f739.js} +67 -51
  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/model/Articles/CatalogArticleData.d.ts.map +1 -1
  30. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +1 -0
  31. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  32. 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-321b880c.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-d4f13c3d.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-321b880c.js');
9
- var PlannerHandler2D = require('./PlannerHandler2D-d4f13c3d.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-321b880c.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-321b880c.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-321b880c.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-321b880c.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-321b880c.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-321b880c.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-321b880c.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-321b880c.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');
@@ -17093,6 +17093,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
17093
17093
  key: "initArticleRelations",
17094
17094
  value: function initArticleRelations(articleRelations, catalog) {
17095
17095
  //ein schönes Object mappen und z.B. nachschauen ob der Acc ein SVG hat
17096
+ if (catalog.ignoreArticleRelations) return;
17096
17097
  this.catalogArticle.articleRelations = [];
17097
17098
  if (articleRelations[0].Articles.length > 0) {
17098
17099
  this.catalogArticle.hasArticleRelations = true;
@@ -18302,6 +18303,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18302
18303
  // accessories sind direkt configurierbar im Accessorie Schritt. kommen aber trozdem auch im Optionsbaum raus
18303
18304
  configOnlyAccessoires: false,
18304
18305
  // accessories sind direkt configurierbar nur im Accessoires Schritt
18306
+ ignoreArticleRelations: false,
18307
+ // jegliche artikle Realtions welche von den Daten kommen werden ignoriert
18305
18308
  repairVariantValues: undefined,
18306
18309
  // Mapping von OPT und OPV um beim öffnen von BK's die variantValues zu updaten
18307
18310
  showPricePreviewOnlyOnOptions: [],
@@ -18609,6 +18612,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18609
18612
  _this.catalogData.configAccessoires = item.Value == '1';
18610
18613
  } else if (item.Codex == 'CONFIG_ONLY_ACCESSOIRES') {
18611
18614
  _this.catalogData.configOnlyAccessoires = item.Value == '1';
18615
+ } else if (item.Codex == 'IGNORE_ARTICLERELATIONS') {
18616
+ _this.catalogData.ignoreArticleRelations = item.Value == '1';
18612
18617
  } else if (item.Codex == 'REPAIR_VARIANT_VALUES') {
18613
18618
  var entries = item.Value.split(';;');
18614
18619
  _this.catalogData.repairVariantValues = {};
@@ -19215,6 +19220,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19215
19220
  get: function get() {
19216
19221
  return this.catalogData.configOnlyAccessoires;
19217
19222
  }
19223
+ }, {
19224
+ key: "ignoreArticleRelations",
19225
+ get: function get() {
19226
+ return this.catalogData.ignoreArticleRelations;
19227
+ }
19218
19228
  }, {
19219
19229
  key: "startFilterParams",
19220
19230
  get: function get() {
@@ -23699,7 +23709,7 @@ var DivaArticle = /*#__PURE__*/function () {
23699
23709
  break;
23700
23710
  }
23701
23711
  _context.next = 4;
23702
- return Promise.resolve().then(function () { return require('./ShelfPlanner-441ca110.js'); });
23712
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-e74e3545.js'); });
23703
23713
  case 4:
23704
23714
  _yield$import = _context.sent;
23705
23715
  ShelfPlanner = _yield$import["default"];
@@ -28222,7 +28232,7 @@ var DivaSet = /*#__PURE__*/function () {
28222
28232
  break;
28223
28233
  }
28224
28234
  _context4.next = 3;
28225
- return Promise.resolve().then(function () { return require('./DoorPlanner-584269b5.js'); });
28235
+ return Promise.resolve().then(function () { return require('./DoorPlanner-566a8db9.js'); });
28226
28236
  case 3:
28227
28237
  _yield$import = _context4.sent;
28228
28238
  DoorPlanner = _yield$import["default"];
@@ -34848,7 +34858,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34848
34858
  break;
34849
34859
  case 3:
34850
34860
  _context12.next = 5;
34851
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-ae37e002.js'); });
34861
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-f017d0c9.js'); });
34852
34862
  case 5:
34853
34863
  _yield$import = _context12.sent;
34854
34864
  PfisterWWSHandler = _yield$import["default"];
@@ -34856,7 +34866,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34856
34866
  return _context12.abrupt("break", 27);
34857
34867
  case 9:
34858
34868
  _context12.next = 11;
34859
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-f23fabcc.js'); });
34869
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-41177e0a.js'); });
34860
34870
  case 11:
34861
34871
  _yield$import2 = _context12.sent;
34862
34872
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34864,7 +34874,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34864
34874
  return _context12.abrupt("break", 27);
34865
34875
  case 15:
34866
34876
  _context12.next = 17;
34867
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-dc19ff15.js'); });
34877
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-6a2eba97.js'); });
34868
34878
  case 17:
34869
34879
  _yield$import3 = _context12.sent;
34870
34880
  SeriousWWSHandler = _yield$import3["default"];
@@ -34872,7 +34882,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34872
34882
  return _context12.abrupt("break", 27);
34873
34883
  case 21:
34874
34884
  _context12.next = 23;
34875
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-2e4778ec.js'); });
34885
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-d6836d3d.js'); });
34876
34886
  case 23:
34877
34887
  _yield$import4 = _context12.sent;
34878
34888
  StandardWWSHandler = _yield$import4["default"];
@@ -36386,7 +36396,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36386
36396
  while (1) switch (_context3.prev = _context3.next) {
36387
36397
  case 0:
36388
36398
  _context3.next = 2;
36389
- return Promise.resolve().then(function () { return require('./Host3DSignalR-c689fd17.js'); });
36399
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-6cdfbdf8.js'); });
36390
36400
  case 2:
36391
36401
  _yield$import = _context3.sent;
36392
36402
  Host3DSignalR = _yield$import["default"];
@@ -37945,7 +37955,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37945
37955
  break;
37946
37956
  case 8:
37947
37957
  _context4.next = 10;
37948
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-112068e3.js'); });
37958
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-dfce65c5.js'); });
37949
37959
  case 10:
37950
37960
  _yield$import = _context4.sent;
37951
37961
  DivaStandardPlanner = _yield$import["default"];
@@ -37956,7 +37966,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37956
37966
  return _context4.abrupt("break", 21);
37957
37967
  case 15:
37958
37968
  _context4.next = 17;
37959
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-c0521b92.js'); });
37969
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-de64b005.js'); });
37960
37970
  case 17:
37961
37971
  _yield$import2 = _context4.sent;
37962
37972
  DivaBoxPlanner = _yield$import2["default"];
@@ -40602,6 +40612,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40602
40612
  value: function eventIsManagedByClient(event) {
40603
40613
  return this.api.eventIsManagedByClient(event);
40604
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
+ }
40605
40621
  }, {
40606
40622
  key: "logGA",
40607
40623
  value: function logGA(action) {
@@ -40619,25 +40635,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40619
40635
  }, {
40620
40636
  key: "callEvent",
40621
40637
  value: function callEvent(event, param) {
40622
- var _this$actions21, _this$actions22, _this$actions23, _this$actions24;
40638
+ var _this$actions22, _this$actions23, _this$actions24, _this$actions25;
40623
40639
  switch (event) {
40624
40640
  case 'onFullscreenClose':
40625
- (_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({
40626
40642
  type: 'onFullscreenClose'
40627
40643
  });
40628
40644
  break;
40629
40645
  case 'onWebPlanerClose':
40630
- (_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({
40631
40647
  type: 'onWebPlanerClose'
40632
40648
  });
40633
40649
  break;
40634
40650
  case 'onWebPlanerHelp':
40635
- (_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({
40636
40652
  type: 'onWebPlanerHelp'
40637
40653
  });
40638
40654
  break;
40639
40655
  case 'onWebPlanerZoomClick':
40640
- (_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({
40641
40657
  type: 'onWebPlanerZoomClick',
40642
40658
  data: param
40643
40659
  });
@@ -40648,14 +40664,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40648
40664
  key: "saveToBasketWrapper",
40649
40665
  value: function () {
40650
40666
  var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee25(event, repairOnly, force) {
40651
- var _this$actions26,
40652
- _this$actions26$toggl,
40653
- _this$actions27,
40667
+ var _this$actions27,
40654
40668
  _this$actions27$toggl,
40669
+ _this$actions28,
40670
+ _this$actions28$toggl,
40655
40671
  _this2 = this,
40656
- _this$actions31,
40672
+ _this$actions32,
40657
40673
  _this$i18n14;
40658
- 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;
40659
40675
  return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
40660
40676
  while (1) switch (_context25.prev = _context25.next) {
40661
40677
  case 0:
@@ -40694,25 +40710,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40694
40710
  _context25.next = 20;
40695
40711
  break;
40696
40712
  }
40697
- (_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({
40698
40714
  type: finalEvent.event
40699
40715
  });
40700
40716
  return _context25.abrupt("return", 'canceled');
40701
40717
  case 20:
40702
40718
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40703
40719
  case 21:
40704
- (_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);
40705
40721
  _context25.next = 24;
40706
40722
  return this.saveToBasket(finalEvent.event, repairOnly, force);
40707
40723
  case 24:
40708
40724
  result = _context25.sent;
40709
- (_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);
40710
40726
  if (!(result === 'canceled')) {
40711
40727
  _context25.next = 30;
40712
40728
  break;
40713
40729
  }
40714
40730
  LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
40715
- (_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({
40716
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() : '',
40717
40733
  accept: true
40718
40734
  });
@@ -40726,12 +40742,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40726
40742
  LOG$1.error(new DivaUtils.DivaError('PDF url is missing in basket', {
40727
40743
  code: 'WC_0010'
40728
40744
  }));
40729
- (_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({
40730
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() : '',
40731
40747
  accept: true
40732
40748
  });
40733
40749
  } else {
40734
- (_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({
40735
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'),
40736
40752
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
40737
40753
  callback: function callback() {
@@ -40741,7 +40757,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40741
40757
  }
40742
40758
  return _context25.abrupt("break", 36);
40743
40759
  case 35:
40744
- (_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({
40745
40761
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
40746
40762
  accept: true
40747
40763
  });
@@ -40769,7 +40785,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40769
40785
  key: "saveToBasket",
40770
40786
  value: function () {
40771
40787
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, force) {
40772
- 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;
40773
40789
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
40774
40790
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
40775
40791
  while (1) switch (_context26.prev = _context26.next) {
@@ -40826,8 +40842,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40826
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;
40827
40843
  break;
40828
40844
  case 28:
40829
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.toggleLoading('buildScene', false, false);
40830
- (_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({
40831
40847
  type: 'SELLER',
40832
40848
  parameters: {
40833
40849
  module: 'PCreator',
@@ -40839,7 +40855,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40839
40855
  });
40840
40856
  return _context26.abrupt("break", 52);
40841
40857
  case 31:
40842
- (_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({
40843
40859
  type: 'SELLER',
40844
40860
  parameters: {
40845
40861
  module: 'Basket',
@@ -41162,17 +41178,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41162
41178
  key: "addToBasket",
41163
41179
  value: function () {
41164
41180
  var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(actBasket) {
41165
- var _this$actions35,
41166
- _this$actions36,
41181
+ var _this$actions36,
41167
41182
  _this$actions37,
41168
41183
  _this$actions38,
41169
41184
  _this$actions39,
41185
+ _this$actions40,
41170
41186
  _this$divaBasketHandl4,
41171
41187
  _this3 = this,
41172
- _this$actions40,
41173
41188
  _this$actions41,
41174
41189
  _this$actions42,
41175
- _this$actions43;
41190
+ _this$actions43,
41191
+ _this$actions44;
41176
41192
  var event,
41177
41193
  emailConfig,
41178
41194
  _emailConfig$to$split,
@@ -41189,31 +41205,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41189
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;
41190
41206
  break;
41191
41207
  case 5:
41192
- (_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({
41193
41209
  type: 'onWebPlanerPrint',
41194
41210
  data: actBasket.getAsJson()
41195
41211
  });
41196
41212
  return _context28.abrupt("break", 32);
41197
41213
  case 7:
41198
- (_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({
41199
41215
  type: 'onWebPlanerSave',
41200
41216
  data: actBasket.getAsJson()
41201
41217
  });
41202
41218
  return _context28.abrupt("break", 32);
41203
41219
  case 9:
41204
- (_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({
41205
41221
  type: 'onWebPlanerShare',
41206
41222
  data: actBasket.getAsJson()
41207
41223
  });
41208
41224
  return _context28.abrupt("break", 32);
41209
41225
  case 11:
41210
- (_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({
41211
41227
  type: 'onRequestConsulation',
41212
41228
  data: actBasket.getAsJson()
41213
41229
  });
41214
41230
  return _context28.abrupt("break", 32);
41215
41231
  case 13:
41216
- (_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({
41217
41233
  type: 'onSave',
41218
41234
  data: actBasket.getAsJson()
41219
41235
  });
@@ -41248,7 +41264,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41248
41264
  });
41249
41265
  });
41250
41266
  }
41251
- (_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({
41252
41268
  type: 'onAddToBasket',
41253
41269
  data: actBasket.getAsJson()
41254
41270
  });
@@ -41259,7 +41275,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41259
41275
  return this.api.saveAsProduct(this.sets, actBasket);
41260
41276
  case 23:
41261
41277
  products = _context28.sent;
41262
- (_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({
41263
41279
  type: 'onAddToBasket',
41264
41280
  data: actBasket.getAsJson()
41265
41281
  });
@@ -41270,13 +41286,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41270
41286
  return _context28.abrupt("return", products[0]);
41271
41287
  case 27:
41272
41288
  case 28:
41273
- (_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({
41274
41290
  type: 'onAddToBasket',
41275
41291
  data: actBasket.getAsJson()
41276
41292
  });
41277
41293
  return _context28.abrupt("break", 32);
41278
41294
  case 30:
41279
- (_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({
41280
41296
  type: event,
41281
41297
  data: actBasket.getAsJson()
41282
41298
  });
@@ -41297,8 +41313,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41297
41313
  }, {
41298
41314
  key: "openPDFpostAsEvent",
41299
41315
  value: function openPDFpostAsEvent(mongoDBId) {
41300
- var _this$actions44, _this$actions45, _this$actions46;
41301
- (_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({
41302
41318
  type: 'update',
41303
41319
  param: {
41304
41320
  groupId: 'SHOWROOM',
@@ -41312,7 +41328,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41312
41328
  }
41313
41329
  }
41314
41330
  });
41315
- (_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({
41316
41332
  type: 'update',
41317
41333
  param: {
41318
41334
  groupId: 'SHOWROOM',
@@ -41326,7 +41342,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41326
41342
  }
41327
41343
  }
41328
41344
  });
41329
- (_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({
41330
41346
  type: 'REPORT',
41331
41347
  parameters: {
41332
41348
  id: mongoDBId
@@ -41546,14 +41562,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41546
41562
  }, {
41547
41563
  key: "subscribeToWebPlannerEvents",
41548
41564
  value: function subscribeToWebPlannerEvents() {
41549
- var _this$actions47;
41550
- (_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);
41551
41567
  }
41552
41568
  }, {
41553
41569
  key: "unsubscribeFromWebPlannerEvents",
41554
41570
  value: function unsubscribeFromWebPlannerEvents() {
41555
- var _this$actions48;
41556
- (_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);
41557
41573
  }
41558
41574
  }, {
41559
41575
  key: "initApiForLogicOnly",
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-321b880c.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-68946af7.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-8e998bfd.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-68946af7.js';
7
- import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-8e998bfd.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-68946af7.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';
@@ -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-68946af7.js';
6
+ import { R as Rendering, H as HQRenderScript } from './index-5753f739.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-68946af7.js';
3
+ import './index-5753f739.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-68946af7.js';
3
+ import { a as articleHandlerInstance } from './index-5753f739.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-68946af7.js';
4
+ import { V as Vector3, c as Vector2, D as DockingPoint } from './index-5753f739.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';
@@ -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 { s as summaryHandlerInstance } from './index-68946af7.js';
4
+ import { s as summaryHandlerInstance } from './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';