@crystaldesign/web-planner-logic 24.12.0-beta.35 → 24.12.0-beta.37

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 (34) hide show
  1. package/build/cjs/{DivaBoxPlanner-3d0df8b2.js → DivaBoxPlanner-d7da16a8.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-4eab9a89.js → DivaStandardPlanner-d498cfee.js} +8 -8
  3. package/build/cjs/{DoorPlanner-5e13f22d.js → DoorPlanner-e764c8fb.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-8f0042de.js → Host3DSignalR-600ce869.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-f94e56ac.js → LiviqueWWSHandler-3c5f38b8.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-82f2f6f4.js → PfisterWWSHandler-f0420b6e.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-4f6a8be6.js → PlannerHandler2D-a6c5bc70.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-58724b70.js → SeriousBasketHandler-3e286b68.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-d4b464ab.js → ShelfPlanner-22e3e6a5.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-c5efe938.js → StandardWWSHandler-c2ac4b39.js} +1 -1
  11. package/build/cjs/{index-f0729366.js → index-96d8f124.js} +56 -57
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-338d0a29.js → DivaBoxPlanner-4ee51455.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-40d20c95.js → DivaStandardPlanner-ca3c5ef2.js} +8 -8
  15. package/build/esm/{DoorPlanner-eeb69239.js → DoorPlanner-a283b46f.js} +1 -1
  16. package/build/esm/{Host3DSignalR-e2c4de4a.js → Host3DSignalR-bb7dd950.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-93a06670.js → LiviqueWWSHandler-d83dd6af.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-1710ba58.js → PfisterWWSHandler-48eecaae.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-4ae91290.js → PlannerHandler2D-c2477409.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-ee17743f.js → SeriousBasketHandler-13fcc1aa.js} +1 -1
  21. package/build/esm/{ShelfPlanner-865e36db.js → ShelfPlanner-31b3a870.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-efec5b65.js → StandardWWSHandler-f96ca8c7.js} +1 -1
  23. package/build/esm/{index-676ee670.js → index-e2c00fcd.js} +56 -57
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +1 -0
  26. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -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/DivaStandardPlanner.d.ts +0 -2
  30. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/logic/Set/FavoritesHandler.d.ts.map +1 -1
  32. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +1 -0
  33. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  34. 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-f0729366.js');
8
+ var index = require('./index-96d8f124.js');
9
9
  var DivaUtils = require('@crystaldesign/diva-utils');
10
10
  var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
11
- var PlannerHandler2D = require('./PlannerHandler2D-4f6a8be6.js');
11
+ var PlannerHandler2D = require('./PlannerHandler2D-a6c5bc70.js');
12
12
  require('@babel/runtime/helpers/objectWithoutProperties');
13
13
  require('@babel/runtime/helpers/slicedToArray');
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-f0729366.js');
9
- var PlannerHandler2D = require('./PlannerHandler2D-4f6a8be6.js');
8
+ var index = require('./index-96d8f124.js');
9
+ var PlannerHandler2D = require('./PlannerHandler2D-a6c5bc70.js');
10
10
  var DivaUtils = require('@crystaldesign/diva-utils');
11
11
  require('@babel/runtime/helpers/objectWithoutProperties');
12
12
  require('@babel/runtime/helpers/slicedToArray');
@@ -51,8 +51,6 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
51
51
  _defineProperty__default["default"](this, "doShowAR", false);
52
52
  _defineProperty__default["default"](this, "doDisablePlanner2D", false);
53
53
  //Do not load any SVGs or 2DPlanner things
54
- _defineProperty__default["default"](this, "doIgnorePlanningCompleted", false);
55
- _defineProperty__default["default"](this, "doCheckConstructionWarnings", void 0);
56
54
  _defineProperty__default["default"](this, "plannerHasStaticBackground", void 0);
57
55
  //IDM
58
56
  _defineProperty__default["default"](this, "isIDM3DCat", false);
@@ -134,8 +132,6 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
134
132
  };
135
133
  this.plannerHasStaticBackground = plannerHasStaticBackground;
136
134
  var catalog = this.set.CatalogData;
137
- this.doCheckConstructionWarnings = catalog.doCheckConstructionWarnings;
138
- this.doIgnorePlanningCompleted = catalog.doHideCompletenessWarning;
139
135
  LOG.businessEvent('onPlannerChange', 'Planner', 'create Standard Planner plannerID: ' + plannerId + '; doHidePlanner: ' + (doHidePlanner ? 'true' : 'false') + '; doDisablePlanner2D: ' + (doDisablePlanner2D ? 'true' : 'false'), {
140
136
  cat: catalog.catalogCodex
141
137
  });
@@ -1407,11 +1403,12 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
1407
1403
  if (!checkSingleElementId || element1.getElementId() == checkSingleElementId) {
1408
1404
  var initialIndex = checkSingleElementId ? 0 : i + 1;
1409
1405
  for (var j = initialIndex; j < allElements.length; j++) {
1406
+ var _this$set$CatalogData, _this$set$CatalogData2;
1410
1407
  var element2 = allElements[j];
1411
1408
  if (element1.getElementId() == element2.getElementId()) continue;
1412
1409
  if (PlannerHandler2D.dockingPointHandlerInst.checkElementsAreDocking(element1, element2)) continue;
1413
1410
  var collision = false;
1414
- if (this.set.CatalogData.doCheckConstructionWarnings) {
1411
+ if (this.set.CatalogData.doCheckConstructionWarnings || (_this$set$CatalogData = this.set.CatalogData.forceConstructionWarningForArticles) !== null && _this$set$CatalogData !== void 0 && _this$set$CatalogData.includes(element1.ArticleCodex) || (_this$set$CatalogData2 = this.set.CatalogData.forceConstructionWarningForArticles) !== null && _this$set$CatalogData2 !== void 0 && _this$set$CatalogData2.includes(element2.ArticleCodex)) {
1415
1412
  collision = PlannerHandler2D.handler2D.checkCollision(element1, element2);
1416
1413
  }
1417
1414
  if (collision) {
@@ -1742,9 +1739,12 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
1742
1739
  }, {
1743
1740
  key: "getPlanningIsComplete",
1744
1741
  value: function getPlanningIsComplete(forceCheck) {
1745
- if (!forceCheck && (this.doIgnorePlanningCompleted || !this.doCheckConstructionWarnings)) return true;
1742
+ var _this6 = this;
1743
+ var dontCheck = !forceCheck && (this.set.CatalogData.doHideCompletenessWarning || !this.set.CatalogData.doCheckConstructionWarnings);
1746
1744
  var elemNotComplete = false;
1747
1745
  this.plannerElements.forEach(function (plannerElement, key) {
1746
+ var _this6$set$CatalogDat;
1747
+ if (dontCheck && !((_this6$set$CatalogDat = _this6.set.CatalogData.forceConstructionWarningForArticles) !== null && _this6$set$CatalogDat !== void 0 && _this6$set$CatalogDat.includes(plannerElement.ArticleCodex))) return;
1748
1748
  if (!elemNotComplete && (plannerElement.getFreeDockingPointsByType('AVL').length > 0 || plannerElement.getFreeDockingPointsByType('AVR').length > 0)) {
1749
1749
  elemNotComplete = true;
1750
1750
  }
@@ -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-f0729366.js');
6
+ require('./index-96d8f124.js');
7
7
  var DivaUtils = require('@crystaldesign/diva-utils');
8
8
  require('@babel/runtime/helpers/asyncToGenerator');
9
9
  require('@babel/runtime/regenerator');
@@ -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-f0729366.js');
8
+ var index = require('./index-96d8f124.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-f0729366.js');
5
+ require('./index-96d8f124.js');
6
6
  require('@babel/runtime/helpers/asyncToGenerator');
7
7
  require('@babel/runtime/helpers/defineProperty');
8
8
  require('@babel/runtime/regenerator');
@@ -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-f0729366.js');
5
+ require('./index-96d8f124.js');
6
6
  var basketModel = require('@crystaldesign/basket-model');
7
7
  var DivaUtils = require('@crystaldesign/diva-utils');
8
8
  require('@babel/runtime/helpers/asyncToGenerator');
@@ -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-f0729366.js');
6
+ var index = require('./index-96d8f124.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-f0729366.js');
6
+ var index = require('./index-96d8f124.js');
7
7
  var DivaUtils = require('@crystaldesign/diva-utils');
8
8
  require('@babel/runtime/helpers/asyncToGenerator');
9
9
  require('@babel/runtime/regenerator');
@@ -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-f0729366.js');
9
+ var index = require('./index-96d8f124.js');
10
10
  var DivaUtils = require('@crystaldesign/diva-utils');
11
11
  require('@babel/runtime/helpers/objectWithoutProperties');
12
12
  require('@babel/runtime/helpers/slicedToArray');
@@ -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-f0729366.js');
5
+ require('./index-96d8f124.js');
6
6
  require('@babel/runtime/helpers/asyncToGenerator');
7
7
  require('@babel/runtime/helpers/defineProperty');
8
8
  require('@babel/runtime/regenerator');
@@ -756,7 +756,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
756
756
  }, {
757
757
  key: "getBasketDataUrlCacheKey",
758
758
  value: function getBasketDataUrlCacheKey(divaNr) {
759
- //if divaNr is a variant of a divaNr (saves with favorites) divaNr looks like: "Diva-123456_0001". Here we got do build the querystring differently
759
+ //this is only used for testing logic to stiff match the query hash so moched calls are used
760
760
  var qs;
761
761
  if (divaNr.includes('_') && divaNr.substring(divaNr.indexOf('_') + 1).length == 4) {
762
762
  var splittedDivaNr = divaNr.split('_');
@@ -18508,6 +18508,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18508
18508
  //Warnings
18509
18509
  else if (item.Codex == 'HIDECONSTRUCTIONWARNING') {
18510
18510
  _this.catalogData.doCheckConstructionWarnings = item.Value == '0';
18511
+ } else if (item.Codex == 'FORCECONSTRUCTIONWARNINGARTICLES') {
18512
+ _this.catalogData.forceConstructionWarningForArticles = item.Value.split(';');
18511
18513
  } else if (item.Codex == 'HIDECOMPLETENESSWARNING') {
18512
18514
  _this.catalogData.hideCompletenessWarning = item.Value == '1';
18513
18515
  }
@@ -19328,6 +19330,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19328
19330
  get: function get() {
19329
19331
  return this.catalogData.doCheckConstructionWarnings;
19330
19332
  }
19333
+ }, {
19334
+ key: "forceConstructionWarningForArticles",
19335
+ get: function get() {
19336
+ return this.catalogData.forceConstructionWarningForArticles;
19337
+ }
19331
19338
  }, {
19332
19339
  key: "doHideCompletenessWarning",
19333
19340
  get: function get() {
@@ -23571,7 +23578,7 @@ var DivaArticle = /*#__PURE__*/function () {
23571
23578
  break;
23572
23579
  }
23573
23580
  _context.next = 4;
23574
- return Promise.resolve().then(function () { return require('./ShelfPlanner-d4b464ab.js'); });
23581
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-22e3e6a5.js'); });
23575
23582
  case 4:
23576
23583
  _yield$import = _context.sent;
23577
23584
  ShelfPlanner = _yield$import["default"];
@@ -28103,7 +28110,7 @@ var DivaSet = /*#__PURE__*/function () {
28103
28110
  break;
28104
28111
  }
28105
28112
  _context4.next = 3;
28106
- return Promise.resolve().then(function () { return require('./DoorPlanner-5e13f22d.js'); });
28113
+ return Promise.resolve().then(function () { return require('./DoorPlanner-e764c8fb.js'); });
28107
28114
  case 3:
28108
28115
  _yield$import = _context4.sent;
28109
28116
  DoorPlanner = _yield$import["default"];
@@ -29148,33 +29155,35 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29148
29155
  key: "getVariantsForSummary",
29149
29156
  value: function () {
29150
29157
  var _getVariantsForSummary = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(set) {
29151
- var _set$allVariantsCache;
29158
+ var _set$actions, _set$allVariantsCache, _set$actions2;
29152
29159
  var variants;
29153
29160
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
29154
29161
  while (1) switch (_context.prev = _context.next) {
29155
29162
  case 0:
29156
29163
  this.isCalcForSummary = true;
29164
+ (_set$actions = set.actions) === null || _set$actions === void 0 || _set$actions.toggleLoading('calcfavorites', false, true);
29157
29165
  if (!((_set$allVariantsCache = set.allVariantsCache) !== null && _set$allVariantsCache !== void 0)) {
29158
- _context.next = 5;
29166
+ _context.next = 6;
29159
29167
  break;
29160
29168
  }
29161
29169
  _context.t0 = _set$allVariantsCache;
29162
- _context.next = 8;
29170
+ _context.next = 9;
29163
29171
  break;
29164
- case 5:
29165
- _context.next = 7;
29172
+ case 6:
29173
+ _context.next = 8;
29166
29174
  return this.getAllValidVariants(set);
29167
- case 7:
29168
- _context.t0 = _context.sent;
29169
29175
  case 8:
29176
+ _context.t0 = _context.sent;
29177
+ case 9:
29170
29178
  variants = _context.t0;
29179
+ (_set$actions2 = set.actions) === null || _set$actions2 === void 0 || _set$actions2.toggleLoading('calcfavorites', false, false);
29171
29180
  this.isCalcForSummary = false;
29172
29181
  return _context.abrupt("return", {
29173
29182
  disabled: set.disabledVariants,
29174
29183
  variants: variants,
29175
29184
  singleOptions: this.repairFavorites(set).singleOptions
29176
29185
  });
29177
- case 11:
29186
+ case 13:
29178
29187
  case "end":
29179
29188
  return _context.stop();
29180
29189
  }
@@ -34394,7 +34403,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34394
34403
  case 9:
34395
34404
  _context7.prev = 9;
34396
34405
  _context7.t0 = _context7["catch"](0);
34397
- LOG$7.error(new DivaUtils.DivaError('ProductId cannot be found in Database', {
34406
+ LOG$7.error(new DivaUtils.DivaError('DivaNr cannot be found in Database', {
34398
34407
  code: 'WC_0004',
34399
34408
  custom: {
34400
34409
  divaNr: divaNr
@@ -34431,9 +34440,10 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34431
34440
  _context8.next = 9;
34432
34441
  break;
34433
34442
  }
34434
- LOG$7.error(new DivaUtils.DivaError('ProductId cannot be found in Database', {
34443
+ LOG$7.error(new DivaUtils.DivaError('CustomProductId cannot be found in Database', {
34435
34444
  code: 'WC_0005',
34436
34445
  custom: {
34446
+ key: key,
34437
34447
  productId: productId
34438
34448
  }
34439
34449
  }));
@@ -34741,7 +34751,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34741
34751
  break;
34742
34752
  case 3:
34743
34753
  _context12.next = 5;
34744
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-82f2f6f4.js'); });
34754
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-f0420b6e.js'); });
34745
34755
  case 5:
34746
34756
  _yield$import = _context12.sent;
34747
34757
  PfisterWWSHandler = _yield$import["default"];
@@ -34749,7 +34759,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34749
34759
  return _context12.abrupt("break", 27);
34750
34760
  case 9:
34751
34761
  _context12.next = 11;
34752
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-f94e56ac.js'); });
34762
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-3c5f38b8.js'); });
34753
34763
  case 11:
34754
34764
  _yield$import2 = _context12.sent;
34755
34765
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34757,7 +34767,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34757
34767
  return _context12.abrupt("break", 27);
34758
34768
  case 15:
34759
34769
  _context12.next = 17;
34760
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-58724b70.js'); });
34770
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-3e286b68.js'); });
34761
34771
  case 17:
34762
34772
  _yield$import3 = _context12.sent;
34763
34773
  SeriousWWSHandler = _yield$import3["default"];
@@ -34765,7 +34775,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34765
34775
  return _context12.abrupt("break", 27);
34766
34776
  case 21:
34767
34777
  _context12.next = 23;
34768
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-c5efe938.js'); });
34778
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-c2ac4b39.js'); });
34769
34779
  case 23:
34770
34780
  _yield$import4 = _context12.sent;
34771
34781
  StandardWWSHandler = _yield$import4["default"];
@@ -36155,7 +36165,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36155
36165
  while (1) switch (_context3.prev = _context3.next) {
36156
36166
  case 0:
36157
36167
  _context3.next = 2;
36158
- return Promise.resolve().then(function () { return require('./Host3DSignalR-8f0042de.js'); });
36168
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-600ce869.js'); });
36159
36169
  case 2:
36160
36170
  _yield$import = _context3.sent;
36161
36171
  Host3DSignalR = _yield$import["default"];
@@ -37707,7 +37717,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37707
37717
  break;
37708
37718
  case 8:
37709
37719
  _context4.next = 10;
37710
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-4eab9a89.js'); });
37720
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-d498cfee.js'); });
37711
37721
  case 10:
37712
37722
  _yield$import = _context4.sent;
37713
37723
  DivaStandardPlanner = _yield$import["default"];
@@ -37718,7 +37728,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37718
37728
  return _context4.abrupt("break", 21);
37719
37729
  case 15:
37720
37730
  _context4.next = 17;
37721
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-3d0df8b2.js'); });
37731
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-d7da16a8.js'); });
37722
37732
  case 17:
37723
37733
  _yield$import2 = _context4.sent;
37724
37734
  DivaBoxPlanner = _yield$import2["default"];
@@ -40402,7 +40412,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40402
40412
  _this2 = this,
40403
40413
  _this$actions30,
40404
40414
  _this$i18n14;
40405
- var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, result, _this$actions27, _this$i18n8, _this$i18n9, _this$actions28, _this$i18n10, _this$i18n11, _this$actions29, _this$i18n12, _this$i18n13, _this$updatePlannerMs2, _this$actions31, _this$i18n15;
40415
+ var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, result, _this$actions27, _this$i18n8, _this$i18n9, _this$actions28, _this$i18n10, _this$i18n11, _this$actions29, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40406
40416
  return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
40407
40417
  while (1) switch (_context25.prev = _context25.next) {
40408
40418
  case 0:
@@ -40486,19 +40496,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40486
40496
  (_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
40487
40497
  return _context25.abrupt("return", 'canceled');
40488
40498
  case 32:
40489
- if (!(result == 'payloadToBig')) {
40490
- _context25.next = 35;
40491
- break;
40492
- }
40493
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40494
- accept: true,
40495
- text: (_this$i18n15 = this.i18n()) === null || _this$i18n15 === void 0 ? void 0 : _this$i18n15.t('configurator.PAYLOAD_TO_BIG'),
40496
- title: 'modals.error_saving'
40497
- });
40498
- return _context25.abrupt("return", 'canceled');
40499
- case 35:
40500
40499
  return _context25.abrupt("return", result);
40501
- case 36:
40500
+ case 33:
40502
40501
  case "end":
40503
40502
  return _context25.stop();
40504
40503
  }
@@ -40513,7 +40512,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40513
40512
  key: "saveToBasket",
40514
40513
  value: function () {
40515
40514
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, force) {
40516
- var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34;
40515
+ var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions31, _this$actions32, _this$actions33;
40517
40516
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, _event4, product;
40518
40517
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
40519
40518
  while (1) switch (_context26.prev = _context26.next) {
@@ -40585,8 +40584,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40585
40584
  _context26.next = _context26.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 30 : _context26.t3 === 'OPEN_SELLER_BASKET' ? 33 : _context26.t3 === 'OPEN_PDF' ? 35 : _context26.t3 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context26.t3 === 'SAVE_BASKET' ? 35 : _context26.t3 === 'SAVE_BASKET_SYNC' ? 35 : _context26.t3 === 'OPEN_LEAFLET_BARRIER' ? 35 : 55;
40586
40585
  break;
40587
40586
  case 30:
40588
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.toggleLoading('buildScene', false, false);
40589
- (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
40587
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.toggleLoading('buildScene', false, false);
40588
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openComponent({
40590
40589
  type: 'SELLER',
40591
40590
  parameters: {
40592
40591
  module: 'PCreator',
@@ -40598,7 +40597,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40598
40597
  });
40599
40598
  return _context26.abrupt("break", 55);
40600
40599
  case 33:
40601
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40600
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
40602
40601
  type: 'SELLER',
40603
40602
  parameters: {
40604
40603
  module: 'Basket',
@@ -40931,16 +40930,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40931
40930
  key: "addToBasket",
40932
40931
  value: function () {
40933
40932
  var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(actBasket) {
40934
- var _this$actions35,
40933
+ var _this$actions34,
40934
+ _this$actions35,
40935
40935
  _this$actions36,
40936
40936
  _this$actions37,
40937
40937
  _this$actions38,
40938
- _this$actions39,
40939
40938
  _this$divaBasketHandl3,
40940
40939
  _this3 = this,
40940
+ _this$actions39,
40941
40941
  _this$actions40,
40942
- _this$actions41,
40943
- _this$actions42;
40942
+ _this$actions41;
40944
40943
  var event,
40945
40944
  addToBasketLog,
40946
40945
  emailConfig,
@@ -40960,35 +40959,35 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40960
40959
  break;
40961
40960
  case 5:
40962
40961
  this.handleSuccessTransaction('onPrintBasket', actBasket);
40963
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
40962
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.onEvent({
40964
40963
  type: 'onWebPlanerPrint',
40965
40964
  data: actBasket.getAsJson()
40966
40965
  });
40967
40966
  return _context28.abrupt("break", 38);
40968
40967
  case 8:
40969
40968
  this.handleSuccessTransaction('onSaveBasket', actBasket);
40970
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
40969
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
40971
40970
  type: 'onWebPlanerSave',
40972
40971
  data: actBasket.getAsJson()
40973
40972
  });
40974
40973
  return _context28.abrupt("break", 38);
40975
40974
  case 11:
40976
40975
  this.handleSuccessTransaction('onShareBasket', actBasket);
40977
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
40976
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
40978
40977
  type: 'onWebPlanerShare',
40979
40978
  data: actBasket.getAsJson()
40980
40979
  });
40981
40980
  return _context28.abrupt("break", 38);
40982
40981
  case 14:
40983
40982
  this.handleSuccessTransaction('onRequestConsulation', actBasket);
40984
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
40983
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
40985
40984
  type: 'onRequestConsulation',
40986
40985
  data: actBasket.getAsJson()
40987
40986
  });
40988
40987
  return _context28.abrupt("break", 38);
40989
40988
  case 17:
40990
40989
  this.handleSuccessTransaction('onSave', actBasket);
40991
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
40990
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
40992
40991
  type: 'onSave',
40993
40992
  data: actBasket.getAsJson()
40994
40993
  });
@@ -41024,7 +41023,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41024
41023
  });
41025
41024
  this.handleSuccessTransaction('onSendEmail', actBasket);
41026
41025
  }
41027
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41026
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41028
41027
  type: 'onAddToBasket',
41029
41028
  data: actBasket.getAsJson()
41030
41029
  });
@@ -41036,7 +41035,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41036
41035
  case 28:
41037
41036
  products = _context28.sent;
41038
41037
  this.handleSuccessTransaction('onSaveProduct', actBasket);
41039
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41038
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41040
41039
  type: 'onAddToBasket',
41041
41040
  data: actBasket.getAsJson()
41042
41041
  });
@@ -41050,7 +41049,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41050
41049
  addToBasketLog = false;
41051
41050
  case 35:
41052
41051
  if (addToBasketLog) this.handleSuccessTransaction('onAddToBasket', actBasket);
41053
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41052
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41054
41053
  type: 'onAddToBasket',
41055
41054
  data: actBasket.getAsJson()
41056
41055
  });
@@ -41082,8 +41081,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41082
41081
  }, {
41083
41082
  key: "openPDFpostAsEvent",
41084
41083
  value: function openPDFpostAsEvent(mongoDBId) {
41085
- var _this$actions43, _this$actions44, _this$actions45;
41086
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.updateBreadcrumbs({
41084
+ var _this$actions42, _this$actions43, _this$actions44;
41085
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.updateBreadcrumbs({
41087
41086
  type: 'update',
41088
41087
  param: {
41089
41088
  groupId: 'SHOWROOM',
@@ -41097,7 +41096,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41097
41096
  }
41098
41097
  }
41099
41098
  });
41100
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.updateBreadcrumbs({
41099
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.updateBreadcrumbs({
41101
41100
  type: 'update',
41102
41101
  param: {
41103
41102
  groupId: 'SHOWROOM',
@@ -41111,7 +41110,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41111
41110
  }
41112
41111
  }
41113
41112
  });
41114
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.openComponent({
41113
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.openComponent({
41115
41114
  type: 'REPORT',
41116
41115
  parameters: {
41117
41116
  id: mongoDBId
@@ -41331,14 +41330,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41331
41330
  }, {
41332
41331
  key: "subscribeToWebPlannerEvents",
41333
41332
  value: function subscribeToWebPlannerEvents() {
41334
- var _this$actions46;
41335
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.subscribeEvents(this.addToBasketEventFunction);
41333
+ var _this$actions45;
41334
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.subscribeEvents(this.addToBasketEventFunction);
41336
41335
  }
41337
41336
  }, {
41338
41337
  key: "unsubscribeFromWebPlannerEvents",
41339
41338
  value: function unsubscribeFromWebPlannerEvents() {
41340
- var _this$actions47;
41341
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.unSubscribeEvents(this.addToBasketEventFunction);
41339
+ var _this$actions46;
41340
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.unSubscribeEvents(this.addToBasketEventFunction);
41342
41341
  }
41343
41342
  }, {
41344
41343
  key: "initApiForLogicOnly",
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-f0729366.js');
5
+ var index = require('./index-96d8f124.js');
6
6
  require('@babel/runtime/helpers/asyncToGenerator');
7
7
  require('@babel/runtime/helpers/classCallCheck');
8
8
  require('@babel/runtime/helpers/createClass');
@@ -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-676ee670.js';
6
+ import { V as Vector3, B as BoundingBox } from './index-e2c00fcd.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-4ae91290.js';
9
+ import { d as dockingPointHandlerInst, P as PlannerElementData, h as handler2D } from './PlannerHandler2D-c2477409.js';
10
10
  import '@babel/runtime/helpers/objectWithoutProperties';
11
11
  import '@babel/runtime/helpers/slicedToArray';
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-676ee670.js';
7
- import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-4ae91290.js';
6
+ import { V as Vector3, c as Vector2, B as BoundingBox } from './index-e2c00fcd.js';
7
+ import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-c2477409.js';
8
8
  import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
9
9
  import '@babel/runtime/helpers/objectWithoutProperties';
10
10
  import '@babel/runtime/helpers/slicedToArray';
@@ -40,8 +40,6 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
40
40
  _defineProperty(this, "doShowAR", false);
41
41
  _defineProperty(this, "doDisablePlanner2D", false);
42
42
  //Do not load any SVGs or 2DPlanner things
43
- _defineProperty(this, "doIgnorePlanningCompleted", false);
44
- _defineProperty(this, "doCheckConstructionWarnings", void 0);
45
43
  _defineProperty(this, "plannerHasStaticBackground", void 0);
46
44
  //IDM
47
45
  _defineProperty(this, "isIDM3DCat", false);
@@ -123,8 +121,6 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
123
121
  };
124
122
  this.plannerHasStaticBackground = plannerHasStaticBackground;
125
123
  var catalog = this.set.CatalogData;
126
- this.doCheckConstructionWarnings = catalog.doCheckConstructionWarnings;
127
- this.doIgnorePlanningCompleted = catalog.doHideCompletenessWarning;
128
124
  LOG.businessEvent('onPlannerChange', 'Planner', 'create Standard Planner plannerID: ' + plannerId + '; doHidePlanner: ' + (doHidePlanner ? 'true' : 'false') + '; doDisablePlanner2D: ' + (doDisablePlanner2D ? 'true' : 'false'), {
129
125
  cat: catalog.catalogCodex
130
126
  });
@@ -1396,11 +1392,12 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
1396
1392
  if (!checkSingleElementId || element1.getElementId() == checkSingleElementId) {
1397
1393
  var initialIndex = checkSingleElementId ? 0 : i + 1;
1398
1394
  for (var j = initialIndex; j < allElements.length; j++) {
1395
+ var _this$set$CatalogData, _this$set$CatalogData2;
1399
1396
  var element2 = allElements[j];
1400
1397
  if (element1.getElementId() == element2.getElementId()) continue;
1401
1398
  if (dockingPointHandlerInst.checkElementsAreDocking(element1, element2)) continue;
1402
1399
  var collision = false;
1403
- if (this.set.CatalogData.doCheckConstructionWarnings) {
1400
+ if (this.set.CatalogData.doCheckConstructionWarnings || (_this$set$CatalogData = this.set.CatalogData.forceConstructionWarningForArticles) !== null && _this$set$CatalogData !== void 0 && _this$set$CatalogData.includes(element1.ArticleCodex) || (_this$set$CatalogData2 = this.set.CatalogData.forceConstructionWarningForArticles) !== null && _this$set$CatalogData2 !== void 0 && _this$set$CatalogData2.includes(element2.ArticleCodex)) {
1404
1401
  collision = handler2D.checkCollision(element1, element2);
1405
1402
  }
1406
1403
  if (collision) {
@@ -1731,9 +1728,12 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
1731
1728
  }, {
1732
1729
  key: "getPlanningIsComplete",
1733
1730
  value: function getPlanningIsComplete(forceCheck) {
1734
- if (!forceCheck && (this.doIgnorePlanningCompleted || !this.doCheckConstructionWarnings)) return true;
1731
+ var _this6 = this;
1732
+ var dontCheck = !forceCheck && (this.set.CatalogData.doHideCompletenessWarning || !this.set.CatalogData.doCheckConstructionWarnings);
1735
1733
  var elemNotComplete = false;
1736
1734
  this.plannerElements.forEach(function (plannerElement, key) {
1735
+ var _this6$set$CatalogDat;
1736
+ if (dontCheck && !((_this6$set$CatalogDat = _this6.set.CatalogData.forceConstructionWarningForArticles) !== null && _this6$set$CatalogDat !== void 0 && _this6$set$CatalogDat.includes(plannerElement.ArticleCodex))) return;
1737
1737
  if (!elemNotComplete && (plannerElement.getFreeDockingPointsByType('AVL').length > 0 || plannerElement.getFreeDockingPointsByType('AVR').length > 0)) {
1738
1738
  elemNotComplete = true;
1739
1739
  }
@@ -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-676ee670.js';
4
+ import './index-e2c00fcd.js';
5
5
  import DivaUtils from '@crystaldesign/diva-utils';
6
6
  import '@babel/runtime/helpers/asyncToGenerator';
7
7
  import '@babel/runtime/regenerator';
@@ -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-676ee670.js';
6
+ import { R as Rendering, H as HQRenderScript } from './index-e2c00fcd.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-676ee670.js';
3
+ import './index-e2c00fcd.js';
4
4
  import '@babel/runtime/helpers/asyncToGenerator';
5
5
  import '@babel/runtime/helpers/defineProperty';
6
6
  import '@babel/runtime/regenerator';