@crystaldesign/web-planner-logic 24.15.0-beta.3 → 24.15.0-beta.5

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-a902a2b5.js → DivaBoxPlanner-ca2e3211.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-64e0b280.js → DivaStandardPlanner-fd77e087.js} +2 -2
  3. package/build/cjs/{DoorPlanner-e98cc91c.js → DoorPlanner-d7f850f6.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-b507198e.js → Host3DSignalR-faeb7f69.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-e144ed04.js → LiviqueWWSHandler-c96184f3.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-4a6d833a.js → PfisterWWSHandler-84985514.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-56454913.js → PlannerHandler2D-0c9be791.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-8530c15f.js → SeriousBasketHandler-4d654472.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-ce137022.js → ShelfPlanner-def0430b.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-cd08ca46.js → StandardWWSHandler-7e21c389.js} +1 -1
  11. package/build/cjs/{index-46a915c3.js → index-6605ebb5.js} +67 -51
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-d09aeb85.js → DivaBoxPlanner-e8d78d18.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-d510e8d0.js → DivaStandardPlanner-9634ed4f.js} +2 -2
  15. package/build/esm/{DoorPlanner-713539f6.js → DoorPlanner-6a42609b.js} +1 -1
  16. package/build/esm/{Host3DSignalR-62dcf76f.js → Host3DSignalR-28976fa1.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-795815ac.js → LiviqueWWSHandler-10b94f4b.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-0f6f7d10.js → PfisterWWSHandler-8bbed095.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-4b739952.js → PlannerHandler2D-d481bf68.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-05587353.js → SeriousBasketHandler-1ef6abe1.js} +1 -1
  21. package/build/esm/{ShelfPlanner-1e73edcf.js → ShelfPlanner-b3e7cec8.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-69ded749.js → StandardWWSHandler-aa406b72.js} +1 -1
  23. package/build/esm/{index-032d3dde.js → index-abaa0abc.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-46a915c3.js');
8
+ var index = require('./index-6605ebb5.js');
9
9
  var DivaUtils = require('@crystaldesign/diva-utils');
10
10
  var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
11
- var PlannerHandler2D = require('./PlannerHandler2D-56454913.js');
11
+ var PlannerHandler2D = require('./PlannerHandler2D-0c9be791.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-46a915c3.js');
9
- var PlannerHandler2D = require('./PlannerHandler2D-56454913.js');
8
+ var index = require('./index-6605ebb5.js');
9
+ var PlannerHandler2D = require('./PlannerHandler2D-0c9be791.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-46a915c3.js');
6
+ require('./index-6605ebb5.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-46a915c3.js');
8
+ var index = require('./index-6605ebb5.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-46a915c3.js');
5
+ require('./index-6605ebb5.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-46a915c3.js');
5
+ var index = require('./index-6605ebb5.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-46a915c3.js');
6
+ var index = require('./index-6605ebb5.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-46a915c3.js');
6
+ var index = require('./index-6605ebb5.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-46a915c3.js');
9
+ var index = require('./index-6605ebb5.js');
10
10
  var DivaUtils = require('@crystaldesign/diva-utils');
11
11
  require('@babel/runtime/helpers/slicedToArray');
12
12
  require('@babel/runtime/helpers/objectWithoutProperties');
@@ -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-46a915c3.js');
5
+ require('./index-6605ebb5.js');
6
6
  require('@babel/runtime/helpers/slicedToArray');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('@babel/runtime/helpers/defineProperty');
@@ -17092,6 +17092,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
17092
17092
  key: "initArticleRelations",
17093
17093
  value: function initArticleRelations(articleRelations, catalog) {
17094
17094
  //ein schönes Object mappen und z.B. nachschauen ob der Acc ein SVG hat
17095
+ if (catalog.ignoreArticleRelations) return;
17095
17096
  this.catalogArticle.articleRelations = [];
17096
17097
  if (articleRelations[0].Articles.length > 0) {
17097
17098
  this.catalogArticle.hasArticleRelations = true;
@@ -18301,6 +18302,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18301
18302
  // accessories sind direkt configurierbar im Accessorie Schritt. kommen aber trozdem auch im Optionsbaum raus
18302
18303
  configOnlyAccessoires: false,
18303
18304
  // accessories sind direkt configurierbar nur im Accessoires Schritt
18305
+ ignoreArticleRelations: false,
18306
+ // jegliche artikle Realtions welche von den Daten kommen werden ignoriert
18304
18307
  repairVariantValues: undefined,
18305
18308
  // Mapping von OPT und OPV um beim öffnen von BK's die variantValues zu updaten
18306
18309
  showPricePreviewOnlyOnOptions: [],
@@ -18608,6 +18611,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18608
18611
  _this.catalogData.configAccessoires = item.Value == '1';
18609
18612
  } else if (item.Codex == 'CONFIG_ONLY_ACCESSOIRES') {
18610
18613
  _this.catalogData.configOnlyAccessoires = item.Value == '1';
18614
+ } else if (item.Codex == 'IGNORE_ARTICLERELATIONS') {
18615
+ _this.catalogData.ignoreArticleRelations = item.Value == '1';
18611
18616
  } else if (item.Codex == 'REPAIR_VARIANT_VALUES') {
18612
18617
  var entries = item.Value.split(';;');
18613
18618
  _this.catalogData.repairVariantValues = {};
@@ -19214,6 +19219,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19214
19219
  get: function get() {
19215
19220
  return this.catalogData.configOnlyAccessoires;
19216
19221
  }
19222
+ }, {
19223
+ key: "ignoreArticleRelations",
19224
+ get: function get() {
19225
+ return this.catalogData.ignoreArticleRelations;
19226
+ }
19217
19227
  }, {
19218
19228
  key: "startFilterParams",
19219
19229
  get: function get() {
@@ -23698,7 +23708,7 @@ var DivaArticle = /*#__PURE__*/function () {
23698
23708
  break;
23699
23709
  }
23700
23710
  _context.next = 4;
23701
- return Promise.resolve().then(function () { return require('./ShelfPlanner-ce137022.js'); });
23711
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-def0430b.js'); });
23702
23712
  case 4:
23703
23713
  _yield$import = _context.sent;
23704
23714
  ShelfPlanner = _yield$import["default"];
@@ -28221,7 +28231,7 @@ var DivaSet = /*#__PURE__*/function () {
28221
28231
  break;
28222
28232
  }
28223
28233
  _context4.next = 3;
28224
- return Promise.resolve().then(function () { return require('./DoorPlanner-e98cc91c.js'); });
28234
+ return Promise.resolve().then(function () { return require('./DoorPlanner-d7f850f6.js'); });
28225
28235
  case 3:
28226
28236
  _yield$import = _context4.sent;
28227
28237
  DoorPlanner = _yield$import["default"];
@@ -34847,7 +34857,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34847
34857
  break;
34848
34858
  case 3:
34849
34859
  _context12.next = 5;
34850
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-4a6d833a.js'); });
34860
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-84985514.js'); });
34851
34861
  case 5:
34852
34862
  _yield$import = _context12.sent;
34853
34863
  PfisterWWSHandler = _yield$import["default"];
@@ -34855,7 +34865,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34855
34865
  return _context12.abrupt("break", 27);
34856
34866
  case 9:
34857
34867
  _context12.next = 11;
34858
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-e144ed04.js'); });
34868
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-c96184f3.js'); });
34859
34869
  case 11:
34860
34870
  _yield$import2 = _context12.sent;
34861
34871
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34863,7 +34873,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34863
34873
  return _context12.abrupt("break", 27);
34864
34874
  case 15:
34865
34875
  _context12.next = 17;
34866
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-8530c15f.js'); });
34876
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-4d654472.js'); });
34867
34877
  case 17:
34868
34878
  _yield$import3 = _context12.sent;
34869
34879
  SeriousWWSHandler = _yield$import3["default"];
@@ -34871,7 +34881,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34871
34881
  return _context12.abrupt("break", 27);
34872
34882
  case 21:
34873
34883
  _context12.next = 23;
34874
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-cd08ca46.js'); });
34884
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-7e21c389.js'); });
34875
34885
  case 23:
34876
34886
  _yield$import4 = _context12.sent;
34877
34887
  StandardWWSHandler = _yield$import4["default"];
@@ -36384,7 +36394,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36384
36394
  while (1) switch (_context3.prev = _context3.next) {
36385
36395
  case 0:
36386
36396
  _context3.next = 2;
36387
- return Promise.resolve().then(function () { return require('./Host3DSignalR-b507198e.js'); });
36397
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-faeb7f69.js'); });
36388
36398
  case 2:
36389
36399
  _yield$import = _context3.sent;
36390
36400
  Host3DSignalR = _yield$import["default"];
@@ -37943,7 +37953,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37943
37953
  break;
37944
37954
  case 8:
37945
37955
  _context4.next = 10;
37946
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-64e0b280.js'); });
37956
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-fd77e087.js'); });
37947
37957
  case 10:
37948
37958
  _yield$import = _context4.sent;
37949
37959
  DivaStandardPlanner = _yield$import["default"];
@@ -37954,7 +37964,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37954
37964
  return _context4.abrupt("break", 21);
37955
37965
  case 15:
37956
37966
  _context4.next = 17;
37957
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-a902a2b5.js'); });
37967
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-ca2e3211.js'); });
37958
37968
  case 17:
37959
37969
  _yield$import2 = _context4.sent;
37960
37970
  DivaBoxPlanner = _yield$import2["default"];
@@ -40600,6 +40610,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40600
40610
  value: function eventIsManagedByClient(event) {
40601
40611
  return this.api.eventIsManagedByClient(event);
40602
40612
  }
40613
+ }, {
40614
+ key: "showModal",
40615
+ value: function showModal(data) {
40616
+ var _this$actions21;
40617
+ (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.openModal(data);
40618
+ }
40603
40619
  }, {
40604
40620
  key: "logGA",
40605
40621
  value: function logGA(action) {
@@ -40617,25 +40633,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40617
40633
  }, {
40618
40634
  key: "callEvent",
40619
40635
  value: function callEvent(event, param) {
40620
- var _this$actions21, _this$actions22, _this$actions23, _this$actions24;
40636
+ var _this$actions22, _this$actions23, _this$actions24, _this$actions25;
40621
40637
  switch (event) {
40622
40638
  case 'onFullscreenClose':
40623
- (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.onEvent({
40639
+ (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40624
40640
  type: 'onFullscreenClose'
40625
40641
  });
40626
40642
  break;
40627
40643
  case 'onWebPlanerClose':
40628
- (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40644
+ (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40629
40645
  type: 'onWebPlanerClose'
40630
40646
  });
40631
40647
  break;
40632
40648
  case 'onWebPlanerHelp':
40633
- (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40649
+ (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40634
40650
  type: 'onWebPlanerHelp'
40635
40651
  });
40636
40652
  break;
40637
40653
  case 'onWebPlanerZoomClick':
40638
- (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40654
+ (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40639
40655
  type: 'onWebPlanerZoomClick',
40640
40656
  data: param
40641
40657
  });
@@ -40646,14 +40662,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40646
40662
  key: "saveToBasketWrapper",
40647
40663
  value: function () {
40648
40664
  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,
40665
+ var _this$actions27,
40652
40666
  _this$actions27$toggl,
40667
+ _this$actions28,
40668
+ _this$actions28$toggl,
40653
40669
  _this2 = this,
40654
- _this$actions31,
40670
+ _this$actions32,
40655
40671
  _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;
40672
+ 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
40673
  return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
40658
40674
  while (1) switch (_context25.prev = _context25.next) {
40659
40675
  case 0:
@@ -40692,25 +40708,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40692
40708
  _context25.next = 20;
40693
40709
  break;
40694
40710
  }
40695
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40711
+ (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
40696
40712
  type: finalEvent.event
40697
40713
  });
40698
40714
  return _context25.abrupt("return", 'canceled');
40699
40715
  case 20:
40700
40716
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40701
40717
  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);
40718
+ (_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
40719
  _context25.next = 24;
40704
40720
  return this.saveToBasket(finalEvent.event, repairOnly, force);
40705
40721
  case 24:
40706
40722
  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);
40723
+ (_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
40724
  if (!(result === 'canceled')) {
40709
40725
  _context25.next = 30;
40710
40726
  break;
40711
40727
  }
40712
40728
  LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
40713
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40729
+ (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40714
40730
  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
40731
  accept: true
40716
40732
  });
@@ -40724,12 +40740,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40724
40740
  LOG$1.error(new DivaUtils.DivaError('PDF url is missing in basket', {
40725
40741
  code: 'WC_0010'
40726
40742
  }));
40727
- (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40743
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40728
40744
  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
40745
  accept: true
40730
40746
  });
40731
40747
  } else {
40732
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40748
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40733
40749
  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
40750
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
40735
40751
  callback: function callback() {
@@ -40739,7 +40755,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40739
40755
  }
40740
40756
  return _context25.abrupt("break", 36);
40741
40757
  case 35:
40742
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40758
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
40743
40759
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
40744
40760
  accept: true
40745
40761
  });
@@ -40767,7 +40783,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40767
40783
  key: "saveToBasket",
40768
40784
  value: function () {
40769
40785
  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;
40786
+ var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
40771
40787
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
40772
40788
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
40773
40789
  while (1) switch (_context26.prev = _context26.next) {
@@ -40824,8 +40840,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40824
40840
  _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
40841
  break;
40826
40842
  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({
40843
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
40844
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40829
40845
  type: 'SELLER',
40830
40846
  parameters: {
40831
40847
  module: 'PCreator',
@@ -40837,7 +40853,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40837
40853
  });
40838
40854
  return _context26.abrupt("break", 52);
40839
40855
  case 31:
40840
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40856
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
40841
40857
  type: 'SELLER',
40842
40858
  parameters: {
40843
40859
  module: 'Basket',
@@ -41161,17 +41177,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41161
41177
  key: "addToBasket",
41162
41178
  value: function () {
41163
41179
  var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(actBasket) {
41164
- var _this$actions35,
41165
- _this$actions36,
41180
+ var _this$actions36,
41166
41181
  _this$actions37,
41167
41182
  _this$actions38,
41168
41183
  _this$actions39,
41184
+ _this$actions40,
41169
41185
  _this$divaBasketHandl4,
41170
41186
  _this3 = this,
41171
- _this$actions40,
41172
41187
  _this$actions41,
41173
41188
  _this$actions42,
41174
- _this$actions43;
41189
+ _this$actions43,
41190
+ _this$actions44;
41175
41191
  var event,
41176
41192
  emailConfig,
41177
41193
  _emailConfig$to$split,
@@ -41188,31 +41204,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41188
41204
  _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
41205
  break;
41190
41206
  case 5:
41191
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41207
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41192
41208
  type: 'onWebPlanerPrint',
41193
41209
  data: actBasket.getAsJson()
41194
41210
  });
41195
41211
  return _context28.abrupt("break", 32);
41196
41212
  case 7:
41197
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41213
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41198
41214
  type: 'onWebPlanerSave',
41199
41215
  data: actBasket.getAsJson()
41200
41216
  });
41201
41217
  return _context28.abrupt("break", 32);
41202
41218
  case 9:
41203
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41219
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41204
41220
  type: 'onWebPlanerShare',
41205
41221
  data: actBasket.getAsJson()
41206
41222
  });
41207
41223
  return _context28.abrupt("break", 32);
41208
41224
  case 11:
41209
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41225
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41210
41226
  type: 'onRequestConsulation',
41211
41227
  data: actBasket.getAsJson()
41212
41228
  });
41213
41229
  return _context28.abrupt("break", 32);
41214
41230
  case 13:
41215
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41231
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41216
41232
  type: 'onSave',
41217
41233
  data: actBasket.getAsJson()
41218
41234
  });
@@ -41247,7 +41263,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41247
41263
  });
41248
41264
  });
41249
41265
  }
41250
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41266
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41251
41267
  type: 'onAddToBasket',
41252
41268
  data: actBasket.getAsJson()
41253
41269
  });
@@ -41258,7 +41274,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41258
41274
  return this.api.saveAsProduct(this.sets, actBasket);
41259
41275
  case 23:
41260
41276
  products = _context28.sent;
41261
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41277
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41262
41278
  type: 'onAddToBasket',
41263
41279
  data: actBasket.getAsJson()
41264
41280
  });
@@ -41269,13 +41285,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41269
41285
  return _context28.abrupt("return", products[0]);
41270
41286
  case 27:
41271
41287
  case 28:
41272
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41288
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41273
41289
  type: 'onAddToBasket',
41274
41290
  data: actBasket.getAsJson()
41275
41291
  });
41276
41292
  return _context28.abrupt("break", 32);
41277
41293
  case 30:
41278
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41294
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
41279
41295
  type: event,
41280
41296
  data: actBasket.getAsJson()
41281
41297
  });
@@ -41296,8 +41312,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41296
41312
  }, {
41297
41313
  key: "openPDFpostAsEvent",
41298
41314
  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({
41315
+ var _this$actions45, _this$actions46, _this$actions47;
41316
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41301
41317
  type: 'update',
41302
41318
  param: {
41303
41319
  groupId: 'SHOWROOM',
@@ -41311,7 +41327,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41311
41327
  }
41312
41328
  }
41313
41329
  });
41314
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41330
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.updateBreadcrumbs({
41315
41331
  type: 'update',
41316
41332
  param: {
41317
41333
  groupId: 'SHOWROOM',
@@ -41325,7 +41341,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41325
41341
  }
41326
41342
  }
41327
41343
  });
41328
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
41344
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.openComponent({
41329
41345
  type: 'REPORT',
41330
41346
  parameters: {
41331
41347
  id: mongoDBId
@@ -41545,14 +41561,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41545
41561
  }, {
41546
41562
  key: "subscribeToWebPlannerEvents",
41547
41563
  value: function subscribeToWebPlannerEvents() {
41548
- var _this$actions47;
41549
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
41564
+ var _this$actions48;
41565
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.subscribeEvents(this.addToBasketEventFunction);
41550
41566
  }
41551
41567
  }, {
41552
41568
  key: "unsubscribeFromWebPlannerEvents",
41553
41569
  value: function unsubscribeFromWebPlannerEvents() {
41554
- var _this$actions48;
41555
- (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
41570
+ var _this$actions49;
41571
+ (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.unSubscribeEvents(this.addToBasketEventFunction);
41556
41572
  }
41557
41573
  }, {
41558
41574
  key: "initApiForLogicOnly",
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-46a915c3.js');
5
+ var index = require('./index-6605ebb5.js');
6
6
  require('@babel/runtime/helpers/slicedToArray');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('@babel/runtime/helpers/classCallCheck');
@@ -3,10 +3,10 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { V as Vector3, B as BoundingBox } from './index-032d3dde.js';
6
+ import { V as Vector3, B as BoundingBox } from './index-abaa0abc.js';
7
7
  import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
8
8
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
9
- import { d as dockingPointHandlerInst, P as PlannerElementData, h as handler2D } from './PlannerHandler2D-4b739952.js';
9
+ import { d as dockingPointHandlerInst, P as PlannerElementData, h as handler2D } from './PlannerHandler2D-d481bf68.js';
10
10
  import '@babel/runtime/helpers/slicedToArray';
11
11
  import '@babel/runtime/helpers/objectWithoutProperties';
12
12
  import 'axios';
@@ -3,8 +3,8 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { V as Vector3, c as Vector2, B as BoundingBox } from './index-032d3dde.js';
7
- import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-4b739952.js';
6
+ import { V as Vector3, c as Vector2, B as BoundingBox } from './index-abaa0abc.js';
7
+ import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-d481bf68.js';
8
8
  import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
9
9
  import '@babel/runtime/helpers/slicedToArray';
10
10
  import '@babel/runtime/helpers/objectWithoutProperties';
@@ -1,7 +1,7 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
3
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
- import './index-032d3dde.js';
4
+ import './index-abaa0abc.js';
5
5
  import DivaUtils from '@crystaldesign/diva-utils';
6
6
  import '@babel/runtime/helpers/slicedToArray';
7
7
  import '@babel/runtime/helpers/asyncToGenerator';
@@ -3,7 +3,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { R as Rendering, H as HQRenderScript } from './index-032d3dde.js';
6
+ import { R as Rendering, H as HQRenderScript } from './index-abaa0abc.js';
7
7
  import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
8
8
  import { HubConnectionBuilder, LogLevel } from '@microsoft/signalr';
9
9
  import io from 'socket.io-client';
@@ -1,6 +1,6 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
- import './index-032d3dde.js';
3
+ import './index-abaa0abc.js';
4
4
  import '@babel/runtime/helpers/slicedToArray';
5
5
  import '@babel/runtime/helpers/asyncToGenerator';
6
6
  import '@babel/runtime/helpers/defineProperty';
@@ -1,6 +1,6 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
- import { a as articleHandlerInstance } from './index-032d3dde.js';
3
+ import { a as articleHandlerInstance } from './index-abaa0abc.js';
4
4
  import { SAPOrderLineData } from '@crystaldesign/basket-model';
5
5
  import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
6
6
  import '@babel/runtime/helpers/slicedToArray';
@@ -1,7 +1,7 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
3
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
- import { V as Vector3, c as Vector2, D as DockingPoint } from './index-032d3dde.js';
4
+ import { V as Vector3, c as Vector2, D as DockingPoint } from './index-abaa0abc.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-032d3dde.js';
4
+ import { s as summaryHandlerInstance } from './index-abaa0abc.js';
5
5
  import DivaUtils from '@crystaldesign/diva-utils';
6
6
  import '@babel/runtime/helpers/slicedToArray';
7
7
  import '@babel/runtime/helpers/asyncToGenerator';
@@ -4,7 +4,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
4
4
  import _createClass from '@babel/runtime/helpers/createClass';
5
5
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
6
6
  import _regeneratorRuntime from '@babel/runtime/regenerator';
7
- import { G as Grid, b as setHandlerInstance, a as articleHandlerInstance } from './index-032d3dde.js';
7
+ import { G as Grid, b as setHandlerInstance, a as articleHandlerInstance } from './index-abaa0abc.js';
8
8
  import DivaUtils from '@crystaldesign/diva-utils';
9
9
  import '@babel/runtime/helpers/slicedToArray';
10
10
  import '@babel/runtime/helpers/objectWithoutProperties';