@crystaldesign/web-planner-logic 26.10.0-beta.2 → 26.10.0-beta.21

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 (67) hide show
  1. package/build/cjs/{DivaBoxPlanner-c8851567.js → DivaBoxPlanner-e3242372.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-7bc436a9.js → DivaStandardPlanner-d664f65f.js} +2 -2
  3. package/build/cjs/{DoorPlanner-66d87428.js → DoorPlanner-eafbfb1a.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-86c47fd9.js → Host3DSignalR-bf95d8ac.js} +19 -30
  5. package/build/cjs/{LiviqueWWSHandler-e0237503.js → LiviqueWWSHandler-354d24e6.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-91a53f99.js → PfisterWWSHandler-36496b1d.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-21891681.js → PlannerHandler2D-5dd46e9f.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-39f6c012.js → SeriousBasketHandler-3e617693.js} +5 -3
  9. package/build/cjs/{ShelfPlanner-9323783f.js → ShelfPlanner-a1701e2f.js} +383 -130
  10. package/build/cjs/{StandardWWSHandler-87d4c9ca.js → StandardWWSHandler-a510ba04.js} +1 -1
  11. package/build/cjs/{index-89322318.js → index-30e83479.js} +1373 -1107
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-05a7aba4.js → DivaBoxPlanner-7e7758c6.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-c5615a1d.js → DivaStandardPlanner-bc2f4cfe.js} +2 -2
  15. package/build/esm/{DoorPlanner-dc53eaca.js → DoorPlanner-0fecdb68.js} +1 -1
  16. package/build/esm/{Host3DSignalR-e94ff645.js → Host3DSignalR-cb81cb1c.js} +19 -30
  17. package/build/esm/{LiviqueWWSHandler-35286ba2.js → LiviqueWWSHandler-5115b2f2.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-4ac1baf9.js → PfisterWWSHandler-a5fe2da2.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-d863886b.js → PlannerHandler2D-b7a174b5.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-fd07c5d0.js → SeriousBasketHandler-60e32f9c.js} +5 -3
  21. package/build/esm/{ShelfPlanner-2a545c7c.js → ShelfPlanner-6f7a0317.js} +384 -131
  22. package/build/esm/{StandardWWSHandler-21793a92.js → StandardWWSHandler-c16d9ee4.js} +1 -1
  23. package/build/esm/{index-176318a8.js → index-d9bab15b.js} +1373 -1107
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts +1 -2
  26. package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/Planner/Config/ViewPlannerConfig.d.ts +0 -1
  28. package/build/types/web-planner-logic/src/interface/Planner/Config/ViewPlannerConfig.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/Planner/ViewPlannerConfigType.d.ts +0 -1
  30. package/build/types/web-planner-logic/src/interface/Planner/ViewPlannerConfigType.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts +19 -0
  32. package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  34. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +7 -0
  35. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  36. package/build/types/web-planner-logic/src/logic/Article/Engine/ArticleEngine.d.ts +4 -0
  37. package/build/types/web-planner-logic/src/logic/Article/Engine/ArticleEngine.d.ts.map +1 -1
  38. package/build/types/web-planner-logic/src/logic/Article/Engine/DivaArticleEngine.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/logic/Article/Engine/DivaArticleEngine.test.d.ts +2 -0
  40. package/build/types/web-planner-logic/src/logic/Article/Engine/DivaArticleEngine.test.d.ts.map +1 -0
  41. package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.d.ts +9 -0
  42. package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/Basket/SeriousBasketHandler.d.ts.map +1 -1
  44. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts +2 -0
  45. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
  46. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts +25 -0
  48. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/logic/ConfigTree/SummaryHandler.d.ts.map +1 -1
  50. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  51. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +0 -2
  52. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  53. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +1 -1
  54. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
  55. package/build/types/web-planner-logic/src/logic/Planner/Rendering/Host3DSignalR.d.ts +0 -6
  56. package/build/types/web-planner-logic/src/logic/Planner/Rendering/Host3DSignalR.d.ts.map +1 -1
  57. package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts +1 -2
  58. package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts.map +1 -1
  59. package/build/types/web-planner-logic/src/logic/Planner/Rendering/Rendering.d.ts +3 -14
  60. package/build/types/web-planner-logic/src/logic/Planner/Rendering/Rendering.d.ts.map +1 -1
  61. package/build/types/web-planner-logic/src/logic/Planner/Rendering/types.d.ts +0 -1
  62. package/build/types/web-planner-logic/src/logic/Planner/Rendering/types.d.ts.map +1 -1
  63. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +13 -2
  64. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  65. package/build/types/web-planner-logic/src/test/plannerBusinessEvents.test.d.ts +3 -0
  66. package/build/types/web-planner-logic/src/test/plannerBusinessEvents.test.d.ts.map +1 -0
  67. package/package.json +2 -2
@@ -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-89322318.js');
9
+ var index = require('./index-30e83479.js');
10
10
  var DivaUtils = require('@crystaldesign/diva-utils');
11
11
  require('@babel/runtime/helpers/slicedToArray');
12
12
  require('@babel/runtime/helpers/objectWithoutProperties');
@@ -30,6 +30,7 @@ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_definePropert
30
30
  var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
31
31
  var DivaUtils__default = /*#__PURE__*/_interopDefaultLegacy(DivaUtils);
32
32
 
33
+ var LOG = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
33
34
  var ShelfPlanner = /*#__PURE__*/function () {
34
35
  function ShelfPlanner(data, article) {
35
36
  _classCallCheck__default["default"](this, ShelfPlanner);
@@ -57,7 +58,14 @@ var ShelfPlanner = /*#__PURE__*/function () {
57
58
  //rule so the shelfplanner cells get disabled when the neighbour (AVL or AVR) is smaller. eg: Ben sulvag
58
59
  _defineProperty__default["default"](this, "disableCellsByElement", void 0);
59
60
  _defineProperty__default["default"](this, "montageOptions", []);
61
+ //true until the shelfaccessoires saved in the basket were restored into the cells (see restoreShelfAccessoires in the DivaSetHandler).
62
+ //until then no initAcc may be placed, they would occupy the cells of the saved accessoires
63
+ _defineProperty__default["default"](this, "restorePending", void 0);
64
+ //accessoires of grids that were switched off by a grid rule, per gridIndex. They get placed again when the grid
65
+ //becomes active again - eg a shelf that is configured from 100cm to 50cm and back keeps its accessoires
66
+ _defineProperty__default["default"](this, "stashedAccessoires", {});
60
67
  this.article = article;
68
+ this.restorePending = !!article.shelfPlanData;
61
69
  this.disableCellsByElement = data.DisableCells;
62
70
  this.data = data;
63
71
  this.showAfterOPT = data.ShowAfterOPT;
@@ -102,6 +110,14 @@ var ShelfPlanner = /*#__PURE__*/function () {
102
110
  get: function get() {
103
111
  return this.isVisible;
104
112
  }
113
+ }, {
114
+ key: "RestorePending",
115
+ get: function get() {
116
+ return this.restorePending;
117
+ },
118
+ set: function set(restorePending) {
119
+ this.restorePending = restorePending;
120
+ }
105
121
  /**
106
122
  * if the shelfplanner step was not visible but is visible again the initAcc get initialized but only if !this.article.shelfPlanData -> the shelfplanner get initialized from basket
107
123
  * if the shelfplanner step is no more visible delete all the accessoires
@@ -172,77 +188,95 @@ var ShelfPlanner = /*#__PURE__*/function () {
172
188
  _i = 0;
173
189
  case 4:
174
190
  if (!(_i < gridsTodos.length)) {
175
- _context2.next = 11;
191
+ _context2.next = 13;
176
192
  break;
177
193
  }
178
- if (!gridsTodos[_i].length) {
179
- _context2.next = 8;
194
+ if (gridsTodos[_i].length) {
195
+ _context2.next = 7;
180
196
  break;
181
197
  }
182
- _context2.next = 8;
198
+ return _context2.abrupt("continue", 10);
199
+ case 7:
200
+ //remember the accessoires before they get deleted, so they can be placed again when the grid becomes active again
201
+ this.stashAccessoiresOfGrid(_i);
202
+ _context2.next = 10;
183
203
  return this.grids[_i].deleteAllAccOfGrid();
184
- case 8:
204
+ case 10:
185
205
  _i++;
186
206
  _context2.next = 4;
187
207
  break;
188
- case 11:
208
+ case 13:
189
209
  _i2 = 0;
190
- case 12:
210
+ case 14:
191
211
  if (!(_i2 < gridsTodos.length)) {
192
- _context2.next = 23;
212
+ _context2.next = 30;
193
213
  break;
194
214
  }
195
215
  if (gridsTodos[_i2].length) {
196
- _context2.next = 15;
216
+ _context2.next = 17;
197
217
  break;
198
218
  }
199
- return _context2.abrupt("continue", 20);
200
- case 15:
201
- grid = this.grids[_i2];
219
+ return _context2.abrupt("continue", 27);
220
+ case 17:
202
221
  if (gridsTodos[_i2].includes('heightGridRule')) {
203
222
  this.creatNewGrid(_i2);
204
223
  newHeightSet = true;
205
224
  }
225
+ //read the grid after a possible recreate, the replaced one is not the grid that gets filled
226
+ grid = this.grids[_i2];
206
227
  if (!((gridsTodos[_i2].includes('heightGridRule') || gridsTodos[_i2].includes('disableGridRule')) && !grid.DisabledByRule)) {
207
- _context2.next = 20;
228
+ _context2.next = 27;
229
+ break;
230
+ }
231
+ if (!this.restorePending) {
232
+ _context2.next = 22;
208
233
  break;
209
234
  }
210
- _context2.next = 20;
235
+ return _context2.abrupt("continue", 27);
236
+ case 22:
237
+ _context2.next = 24;
238
+ return this.placeStashedAccessoiresOfGrid(_i2);
239
+ case 24:
240
+ if (_context2.sent) {
241
+ _context2.next = 27;
242
+ break;
243
+ }
244
+ _context2.next = 27;
211
245
  return this.initAccList(_i2);
212
- case 20:
246
+ case 27:
213
247
  _i2++;
214
- _context2.next = 12;
248
+ _context2.next = 14;
215
249
  break;
216
- case 23:
250
+ case 30:
217
251
  if (!(!newHeightSet && Object.keys(variantValues).length)) {
218
- _context2.next = 34;
252
+ _context2.next = 41;
219
253
  break;
220
254
  }
221
255
  grids = this.activeGrids;
222
256
  _i3 = 0;
223
- case 26:
257
+ case 33:
224
258
  if (!(_i3 < grids.length)) {
225
- _context2.next = 34;
259
+ _context2.next = 41;
226
260
  break;
227
261
  }
228
262
  _grid = grids[_i3];
229
263
  if (!((_grid$DisableCellsByM = _grid.DisableCellsByMeasures) !== null && _grid$DisableCellsByM !== void 0 && _grid$DisableCellsByM.options.find(function (o) {
230
264
  return Object.keys(variantValues).includes('OPT' + o.opt);
231
265
  }) || !!_grid.disableCellsByRules)) {
232
- _context2.next = 31;
266
+ _context2.next = 38;
233
267
  break;
234
268
  }
235
269
  newHeightSet = true;
236
- return _context2.abrupt("break", 34);
237
- case 31:
270
+ return _context2.abrupt("break", 41);
271
+ case 38:
238
272
  _i3++;
239
- _context2.next = 26;
273
+ _context2.next = 33;
240
274
  break;
241
- case 34:
275
+ case 41:
242
276
  if (newHeightSet) {
243
277
  this.updateDisabledCells();
244
278
  }
245
- case 35:
279
+ case 42:
246
280
  case "end":
247
281
  return _context2.stop();
248
282
  }
@@ -257,55 +291,269 @@ var ShelfPlanner = /*#__PURE__*/function () {
257
291
  key: "creatNewGrid",
258
292
  value: function creatNewGrid(i) {
259
293
  this.grids[i] = new index.Grid(i, this.article, this.data);
294
+ this.grids[i].onConfigChanged();
260
295
  }
261
296
 
297
+ /**
298
+ * Remembers the accessoires of a grid that is about to be cleared because a grid rule switched it off.
299
+ * An empty grid never overwrites an existing memory, so the accessoires survive further configuration changes.
300
+ * @param gridIndex grid that gets cleared
301
+ */
302
+ }, {
303
+ key: "stashAccessoiresOfGrid",
304
+ value: function stashAccessoiresOfGrid(gridIndex) {
305
+ var stashedAccessoires = this.collectAccessoiresToStash(this.grids[gridIndex]);
306
+ if (!stashedAccessoires.length) return;
307
+ this.stashedAccessoires[gridIndex] = stashedAccessoires;
308
+ }
309
+
310
+ /**
311
+ * Collects an accessoire of every cell it starts in, including the accessoires of the accessoire itself
312
+ * (eg the drawers of an EINBAU), because those get deleted with their parent as well.
313
+ */
314
+ }, {
315
+ key: "collectAccessoiresToStash",
316
+ value: function collectAccessoiresToStash(grid) {
317
+ var stashedAccessoires = [];
318
+ for (var i = 0; i < grid.Cells.length; i++) {
319
+ var cell = grid.Cells[i];
320
+ var accessoire = cell.Article;
321
+ if (cell.InUse !== i || !accessoire) continue;
322
+
323
+ //the accessoire can be a shelf itself (eg an EINBAU), its own accessoires are grouped by its own grids
324
+ var accessoires = {};
325
+ var accessoireShelfPlanner = accessoire.shelfPlanner;
326
+ for (var j = 0; j < ((_accessoireShelfPlann = accessoireShelfPlanner === null || accessoireShelfPlanner === void 0 ? void 0 : accessoireShelfPlanner.grids.length) !== null && _accessoireShelfPlann !== void 0 ? _accessoireShelfPlann : 0); j++) {
327
+ var _accessoireShelfPlann;
328
+ var accessoireGrid = accessoireShelfPlanner.grids[j];
329
+ var accessoiresOfGrid = accessoireShelfPlanner.collectAccessoiresToStash(accessoireGrid);
330
+ if (accessoiresOfGrid.length) accessoires[accessoireGrid.ShelfIndex] = accessoiresOfGrid;
331
+ }
332
+ stashedAccessoires.push({
333
+ articleCodex: accessoire.articleCodex,
334
+ cellIndex: i,
335
+ noMove: cell.NoMove,
336
+ noDelete: cell.NoDelete,
337
+ quantity: accessoire.quantity,
338
+ variantValues: accessoire.VariantValues,
339
+ accessoires: accessoires
340
+ });
341
+ }
342
+ return stashedAccessoires;
343
+ }
344
+
345
+ /**
346
+ * Places the remembered accessoires of a grid back into their cells.
347
+ * @param gridIndex grid that became active again
348
+ * @returns how many accessoires were placed - 0 means the grid is still empty and needs its initAcc
349
+ */
350
+ }, {
351
+ key: "placeStashedAccessoiresOfGrid",
352
+ value: (function () {
353
+ var _placeStashedAccessoiresOfGrid = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee3(gridIndex) {
354
+ var stashedAccessoires;
355
+ return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context3) {
356
+ while (1) switch (_context3.prev = _context3.next) {
357
+ case 0:
358
+ stashedAccessoires = this.stashedAccessoires[gridIndex];
359
+ if (stashedAccessoires !== null && stashedAccessoires !== void 0 && stashedAccessoires.length) {
360
+ _context3.next = 3;
361
+ break;
362
+ }
363
+ return _context3.abrupt("return", 0);
364
+ case 3:
365
+ //remove it first, a reconfiguration triggered by placing them must not place them a second time
366
+ delete this.stashedAccessoires[gridIndex];
367
+ _context3.next = 6;
368
+ return this.placeStashedAccessoiresInGrid(gridIndex, stashedAccessoires);
369
+ case 6:
370
+ return _context3.abrupt("return", _context3.sent);
371
+ case 7:
372
+ case "end":
373
+ return _context3.stop();
374
+ }
375
+ }, _callee3, this);
376
+ }));
377
+ function placeStashedAccessoiresOfGrid(_x3) {
378
+ return _placeStashedAccessoiresOfGrid.apply(this, arguments);
379
+ }
380
+ return placeStashedAccessoiresOfGrid;
381
+ }() /** Places stashed accessoires that are grouped by gridIndex - used for the accessoires of an accessoire. */)
382
+ }, {
383
+ key: "placeStashedAccessoiresByGrid",
384
+ value: (function () {
385
+ var _placeStashedAccessoiresByGrid = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee4(stashedAccessoires) {
386
+ var gridIndexes, i, _this$getGridByIndex, gridIndex;
387
+ return _regeneratorRuntime__default["default"].wrap(function _callee4$(_context4) {
388
+ while (1) switch (_context4.prev = _context4.next) {
389
+ case 0:
390
+ gridIndexes = Object.keys(stashedAccessoires);
391
+ i = 0;
392
+ case 2:
393
+ if (!(i < gridIndexes.length)) {
394
+ _context4.next = 14;
395
+ break;
396
+ }
397
+ gridIndex = Number(gridIndexes[i]); //the accessoire was created new, so its initAcc are already placed in the cells the remembered accessoires need
398
+ _context4.next = 6;
399
+ return (_this$getGridByIndex = this.getGridByIndex(gridIndex)) === null || _this$getGridByIndex === void 0 ? void 0 : _this$getGridByIndex.deleteAllAccOfGrid();
400
+ case 6:
401
+ _context4.next = 8;
402
+ return this.placeStashedAccessoiresInGrid(gridIndex, stashedAccessoires[gridIndex]);
403
+ case 8:
404
+ if (_context4.sent) {
405
+ _context4.next = 11;
406
+ break;
407
+ }
408
+ _context4.next = 11;
409
+ return this.initAccList(gridIndex);
410
+ case 11:
411
+ i++;
412
+ _context4.next = 2;
413
+ break;
414
+ case 14:
415
+ case "end":
416
+ return _context4.stop();
417
+ }
418
+ }, _callee4, this);
419
+ }));
420
+ function placeStashedAccessoiresByGrid(_x4) {
421
+ return _placeStashedAccessoiresByGrid.apply(this, arguments);
422
+ }
423
+ return placeStashedAccessoiresByGrid;
424
+ }() /** @returns how many of the stashed accessoires were placed */)
425
+ }, {
426
+ key: "placeStashedAccessoiresInGrid",
427
+ value: (function () {
428
+ var _placeStashedAccessoiresInGrid = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee5(gridIndex, stashedAccessoires) {
429
+ var placedAccessoires, grid, i, stashed, result, fitResult, accessoire;
430
+ return _regeneratorRuntime__default["default"].wrap(function _callee5$(_context5) {
431
+ while (1) switch (_context5.prev = _context5.next) {
432
+ case 0:
433
+ placedAccessoires = 0;
434
+ grid = this.getGridByIndex(gridIndex);
435
+ if (grid) {
436
+ _context5.next = 4;
437
+ break;
438
+ }
439
+ return _context5.abrupt("return", placedAccessoires);
440
+ case 4:
441
+ i = 0;
442
+ case 5:
443
+ if (!(i < stashedAccessoires.length)) {
444
+ _context5.next = 28;
445
+ break;
446
+ }
447
+ stashed = stashedAccessoires[i];
448
+ grid.ActAccessoire = stashed.articleCodex;
449
+ _context5.next = 10;
450
+ return index.setHandlerInstance.addAccessorieOnShelfPlanner(this.article.set, gridIndex, stashed.cellIndex, this.article.basketId, {
451
+ noMove: stashed.noMove,
452
+ noDelete: stashed.noDelete,
453
+ byInit: true
454
+ });
455
+ case 10:
456
+ result = _context5.sent;
457
+ grid.ActAccessoire = undefined;
458
+ fitResult = result === false || result.index === undefined ? undefined : result;
459
+ accessoire = fitResult === null || fitResult === void 0 ? void 0 : fitResult.accessoire;
460
+ if (!(!fitResult || !accessoire)) {
461
+ _context5.next = 17;
462
+ break;
463
+ }
464
+ LOG.error(new DivaUtils.DivaError('shelfaccessoire of a switched off grid does not fit anymore and gets dropped', {
465
+ code: 'WC_0015',
466
+ custom: {
467
+ stashed: stashed,
468
+ gridName: grid.GridName,
469
+ result: result,
470
+ parentPosNr: this.article.posNr,
471
+ parentArticleCodex: this.article.articleCodex,
472
+ parentBasketId: this.article.basketId
473
+ }
474
+ }));
475
+ return _context5.abrupt("continue", 25);
476
+ case 17:
477
+ accessoire.quantity = stashed.quantity;
478
+ placedAccessoires++;
479
+ if (!Object.keys(stashed.variantValues).length) {
480
+ _context5.next = 22;
481
+ break;
482
+ }
483
+ _context5.next = 22;
484
+ return index.articleHandlerInstance.updateCfgValues(accessoire, stashed.variantValues, {});
485
+ case 22:
486
+ if (!accessoire.shelfPlanner) {
487
+ _context5.next = 25;
488
+ break;
489
+ }
490
+ _context5.next = 25;
491
+ return accessoire.shelfPlanner.placeStashedAccessoiresByGrid(stashed.accessoires);
492
+ case 25:
493
+ i++;
494
+ _context5.next = 5;
495
+ break;
496
+ case 28:
497
+ return _context5.abrupt("return", placedAccessoires);
498
+ case 29:
499
+ case "end":
500
+ return _context5.stop();
501
+ }
502
+ }, _callee5, this);
503
+ }));
504
+ function placeStashedAccessoiresInGrid(_x5, _x6) {
505
+ return _placeStashedAccessoiresInGrid.apply(this, arguments);
506
+ }
507
+ return placeStashedAccessoiresInGrid;
508
+ }()
262
509
  /**
263
510
  * runs through the InitAccArr and initialized all the accessoires eg: Kleiderstange gets placed
264
511
  * if the replaceFromParent == true it removed the same article from the parent shelfplanner if one is found eg: Kleiderstange gets removed from schrank when the T-Sück gets initialized
265
512
  */
513
+ )
266
514
  }, {
267
515
  key: "initAccList",
268
516
  value: (function () {
269
- var _initAccList = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee3(gridIndex) {
517
+ var _initAccList = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee6(gridIndex) {
270
518
  var grids, i, grid, j, initAcc, k, _this$article$accesso, shelfId, accessoires, _accessoireToDelete$s, accessoireToDelete, rh;
271
- return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context3) {
272
- while (1) switch (_context3.prev = _context3.next) {
519
+ return _regeneratorRuntime__default["default"].wrap(function _callee6$(_context6) {
520
+ while (1) switch (_context6.prev = _context6.next) {
273
521
  case 0:
274
522
  grids = this.activeGrids;
275
523
  i = 0;
276
524
  case 2:
277
525
  if (!(i < grids.length)) {
278
- _context3.next = 36;
526
+ _context6.next = 36;
279
527
  break;
280
528
  }
281
529
  grid = grids[i];
282
530
  if (!(gridIndex !== undefined && grid.ShelfIndex !== gridIndex)) {
283
- _context3.next = 6;
531
+ _context6.next = 6;
284
532
  break;
285
533
  }
286
- return _context3.abrupt("continue", 33);
534
+ return _context6.abrupt("continue", 33);
287
535
  case 6:
288
536
  if (grid.InitAccArr) {
289
- _context3.next = 8;
537
+ _context6.next = 8;
290
538
  break;
291
539
  }
292
- return _context3.abrupt("continue", 33);
540
+ return _context6.abrupt("continue", 33);
293
541
  case 8:
294
542
  j = 0;
295
543
  case 9:
296
544
  if (!(j < grid.InitAccArr.length)) {
297
- _context3.next = 33;
545
+ _context6.next = 33;
298
546
  break;
299
547
  }
300
548
  initAcc = grid.InitAccArr[j];
301
549
  k = 0;
302
550
  case 12:
303
551
  if (!(k < initAcc.initRH.length)) {
304
- _context3.next = 30;
552
+ _context6.next = 30;
305
553
  break;
306
554
  }
307
555
  grid.ActAccessoire = initAcc.Codex;
308
- _context3.next = 16;
556
+ _context6.next = 16;
309
557
  return index.setHandlerInstance.addAccessorieOnShelfPlanner(this.article.set, grid.ShelfIndex, initAcc.initRH[k], grid.basketId, {
310
558
  noMove: initAcc.noMove,
311
559
  noDelete: initAcc.noDelete,
@@ -313,48 +561,48 @@ var ShelfPlanner = /*#__PURE__*/function () {
313
561
  });
314
562
  case 16:
315
563
  if (!initAcc.replaceFromParent) {
316
- _context3.next = 26;
564
+ _context6.next = 26;
317
565
  break;
318
566
  }
319
567
  shelfId = this.getShelfParentShelfId();
320
568
  if (!(shelfId && (_this$article$accesso = this.article.accessoireParentArticle) !== null && _this$article$accesso !== void 0 && _this$article$accesso.shelfPlanner)) {
321
- _context3.next = 26;
569
+ _context6.next = 26;
322
570
  break;
323
571
  }
324
572
  accessoires = this.article.accessoireParentArticle.shelfPlanner.getAccessorireByCodex(shelfId, initAcc.Codex);
325
573
  if (!(accessoires && accessoires.length > 0)) {
326
- _context3.next = 26;
574
+ _context6.next = 26;
327
575
  break;
328
576
  }
329
577
  accessoireToDelete = accessoires[0];
330
578
  rh = (_accessoireToDelete$s = accessoireToDelete.shelfPlanner) === null || _accessoireToDelete$s === void 0 ? void 0 : _accessoireToDelete$s.getRHOnParentArticle();
331
579
  if (!(rh !== undefined && accessoireToDelete.relatedToShelfGrid !== undefined)) {
332
- _context3.next = 26;
580
+ _context6.next = 26;
333
581
  break;
334
582
  }
335
- _context3.next = 26;
583
+ _context6.next = 26;
336
584
  return index.setHandlerInstance.deleteAccessorieOnShelfPlanner(this.article.set, accessoireToDelete.relatedToShelfGrid, rh, this.article.accessoireParentArticle.basketId);
337
585
  case 26:
338
586
  grid.ActAccessoire = undefined;
339
587
  case 27:
340
588
  k++;
341
- _context3.next = 12;
589
+ _context6.next = 12;
342
590
  break;
343
591
  case 30:
344
592
  j++;
345
- _context3.next = 9;
593
+ _context6.next = 9;
346
594
  break;
347
595
  case 33:
348
596
  i++;
349
- _context3.next = 2;
597
+ _context6.next = 2;
350
598
  break;
351
599
  case 36:
352
600
  case "end":
353
- return _context3.stop();
601
+ return _context6.stop();
354
602
  }
355
- }, _callee3, this);
603
+ }, _callee6, this);
356
604
  }));
357
- function initAccList(_x3) {
605
+ function initAccList(_x7) {
358
606
  return _initAccList.apply(this, arguments);
359
607
  }
360
608
  return initAccList;
@@ -383,31 +631,31 @@ var ShelfPlanner = /*#__PURE__*/function () {
383
631
  }, {
384
632
  key: "triggerVisibility",
385
633
  value: function () {
386
- var _triggerVisibility = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee4(gridGroup) {
634
+ var _triggerVisibility = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee7(gridGroup) {
387
635
  var toCleanOptions, toUpdateOptions, i, grid, _i4, option, visitOptionState;
388
- return _regeneratorRuntime__default["default"].wrap(function _callee4$(_context4) {
389
- while (1) switch (_context4.prev = _context4.next) {
636
+ return _regeneratorRuntime__default["default"].wrap(function _callee7$(_context7) {
637
+ while (1) switch (_context7.prev = _context7.next) {
390
638
  case 0:
391
639
  toCleanOptions = [];
392
640
  toUpdateOptions = [];
393
641
  i = 0;
394
642
  case 3:
395
643
  if (!(i < this.grids.length)) {
396
- _context4.next = 13;
644
+ _context7.next = 13;
397
645
  break;
398
646
  }
399
647
  grid = this.grids[i];
400
648
  if (grid.VisitOption) {
401
- _context4.next = 7;
649
+ _context7.next = 7;
402
650
  break;
403
651
  }
404
- return _context4.abrupt("continue", 10);
652
+ return _context7.abrupt("continue", 10);
405
653
  case 7:
406
654
  if (!(toUpdateOptions.includes(grid.VisitOption) || toCleanOptions.includes(grid.VisitOption))) {
407
- _context4.next = 9;
655
+ _context7.next = 9;
408
656
  break;
409
657
  }
410
- return _context4.abrupt("continue", 10);
658
+ return _context7.abrupt("continue", 10);
411
659
  case 9:
412
660
  if (gridGroup && (grid.gridGroup == gridGroup || grid.alternativeGridGroups.includes(gridGroup))) {
413
661
  toUpdateOptions.push(grid.VisitOption);
@@ -417,34 +665,34 @@ var ShelfPlanner = /*#__PURE__*/function () {
417
665
  }
418
666
  case 10:
419
667
  i++;
420
- _context4.next = 3;
668
+ _context7.next = 3;
421
669
  break;
422
670
  case 13:
423
671
  _i4 = 0;
424
672
  case 14:
425
673
  if (!(_i4 < [].concat(toUpdateOptions, toCleanOptions).length)) {
426
- _context4.next = 23;
674
+ _context7.next = 23;
427
675
  break;
428
676
  }
429
677
  option = [].concat(toUpdateOptions, toCleanOptions)[_i4];
430
678
  visitOptionState = this.article.getArticleOptionState((!this.article.CatalogData.isIDMFormat ? 'OPT' : '') + option);
431
679
  if (!visitOptionState) {
432
- _context4.next = 20;
680
+ _context7.next = 20;
433
681
  break;
434
682
  }
435
- _context4.next = 20;
683
+ _context7.next = 20;
436
684
  return index.articleHandlerInstance.updateOption(this.article, visitOptionState.optionCodex, toUpdateOptions.includes(option) ? 'OPVMIT' : 'OPVOHNE');
437
685
  case 20:
438
686
  _i4++;
439
- _context4.next = 14;
687
+ _context7.next = 14;
440
688
  break;
441
689
  case 23:
442
690
  case "end":
443
- return _context4.stop();
691
+ return _context7.stop();
444
692
  }
445
- }, _callee4, this);
693
+ }, _callee7, this);
446
694
  }));
447
- function triggerVisibility(_x4) {
695
+ function triggerVisibility(_x8) {
448
696
  return _triggerVisibility.apply(this, arguments);
449
697
  }
450
698
  return triggerVisibility;
@@ -452,29 +700,30 @@ var ShelfPlanner = /*#__PURE__*/function () {
452
700
  }, {
453
701
  key: "deleteAllAcc",
454
702
  value: function () {
455
- var _deleteAllAcc = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee5() {
703
+ var _deleteAllAcc = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee8() {
456
704
  var i;
457
- return _regeneratorRuntime__default["default"].wrap(function _callee5$(_context5) {
458
- while (1) switch (_context5.prev = _context5.next) {
705
+ return _regeneratorRuntime__default["default"].wrap(function _callee8$(_context8) {
706
+ while (1) switch (_context8.prev = _context8.next) {
459
707
  case 0:
460
708
  this.article.shelfPlanData = undefined;
709
+ this.restorePending = false;
461
710
  i = 0;
462
- case 2:
711
+ case 3:
463
712
  if (!(i < this.grids.length)) {
464
- _context5.next = 8;
713
+ _context8.next = 9;
465
714
  break;
466
715
  }
467
- _context5.next = 5;
716
+ _context8.next = 6;
468
717
  return this.grids[i].deleteAllAccOfGrid();
469
- case 5:
718
+ case 6:
470
719
  i++;
471
- _context5.next = 2;
720
+ _context8.next = 3;
472
721
  break;
473
- case 8:
722
+ case 9:
474
723
  case "end":
475
- return _context5.stop();
724
+ return _context8.stop();
476
725
  }
477
- }, _callee5, this);
726
+ }, _callee8, this);
478
727
  }));
479
728
  function deleteAllAcc() {
480
729
  return _deleteAllAcc.apply(this, arguments);
@@ -578,10 +827,10 @@ var ShelfPlanner = /*#__PURE__*/function () {
578
827
  }, {
579
828
  key: "deleteAccessoireOfCellInGrid",
580
829
  value: (function () {
581
- var _deleteAccessoireOfCellInGrid = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee6(gridIndex, cellIndex) {
830
+ var _deleteAccessoireOfCellInGrid = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee9(gridIndex, cellIndex) {
582
831
  var grid, inUse, deleteIndex, onBoardCell, accessoire;
583
- return _regeneratorRuntime__default["default"].wrap(function _callee6$(_context6) {
584
- while (1) switch (_context6.prev = _context6.next) {
832
+ return _regeneratorRuntime__default["default"].wrap(function _callee9$(_context9) {
833
+ while (1) switch (_context9.prev = _context9.next) {
585
834
  case 0:
586
835
  grid = this.grids[gridIndex];
587
836
  inUse = grid.Cells[cellIndex].InUse;
@@ -596,24 +845,24 @@ var ShelfPlanner = /*#__PURE__*/function () {
596
845
  accessoire = grid.Cells[cellIndex].Article;
597
846
  }
598
847
  if (!accessoire) {
599
- _context6.next = 8;
848
+ _context9.next = 8;
600
849
  break;
601
850
  }
602
851
  this.checkForNewFreeAccessoire(accessoire, gridIndex);
603
- _context6.next = 8;
852
+ _context9.next = 8;
604
853
  return this.handleDeleteTakePlaceOnOtherGrids(gridIndex, deleteIndex, accessoire);
605
854
  case 8:
606
- _context6.next = 10;
855
+ _context9.next = 10;
607
856
  return grid.deleteAccessoireInCells(deleteIndex);
608
857
  case 10:
609
- return _context6.abrupt("return", _context6.sent);
858
+ return _context9.abrupt("return", _context9.sent);
610
859
  case 11:
611
860
  case "end":
612
- return _context6.stop();
861
+ return _context9.stop();
613
862
  }
614
- }, _callee6, this);
863
+ }, _callee9, this);
615
864
  }));
616
- function deleteAccessoireOfCellInGrid(_x5, _x6) {
865
+ function deleteAccessoireOfCellInGrid(_x9, _x10) {
617
866
  return _deleteAccessoireOfCellInGrid.apply(this, arguments);
618
867
  }
619
868
  return deleteAccessoireOfCellInGrid;
@@ -648,16 +897,16 @@ var ShelfPlanner = /*#__PURE__*/function () {
648
897
  }, {
649
898
  key: "handleDeleteTakePlaceOnOtherGrids",
650
899
  value: (function () {
651
- var _handleDeleteTakePlaceOnOtherGrids = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee7(gridIndex, cellIndex, accessoire) {
900
+ var _handleDeleteTakePlaceOnOtherGrids = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee10(gridIndex, cellIndex, accessoire) {
652
901
  var i, _cell$Article, cell, _i5, _cell$Article2, _cell, _i6;
653
- return _regeneratorRuntime__default["default"].wrap(function _callee7$(_context7) {
654
- while (1) switch (_context7.prev = _context7.next) {
902
+ return _regeneratorRuntime__default["default"].wrap(function _callee10$(_context10) {
903
+ while (1) switch (_context10.prev = _context10.next) {
655
904
  case 0:
656
905
  if (accessoire.shelfHeight) {
657
- _context7.next = 2;
906
+ _context10.next = 2;
658
907
  break;
659
908
  }
660
- return _context7.abrupt("return");
909
+ return _context10.abrupt("return");
661
910
  case 2:
662
911
  if (accessoire.shelfHeightAbove) {
663
912
  for (i = 0; i < accessoire.shelfHeightAbove; i++) {
@@ -676,34 +925,34 @@ var ShelfPlanner = /*#__PURE__*/function () {
676
925
  }
677
926
  }
678
927
  if (!this.doesTakePlaceOnOtherGrids(accessoire)) {
679
- _context7.next = 14;
928
+ _context10.next = 14;
680
929
  break;
681
930
  }
682
931
  _i6 = 0;
683
932
  case 6:
684
933
  if (!(_i6 < this.grids.length)) {
685
- _context7.next = 14;
934
+ _context10.next = 14;
686
935
  break;
687
936
  }
688
937
  if (!(_i6 === gridIndex)) {
689
- _context7.next = 9;
938
+ _context10.next = 9;
690
939
  break;
691
940
  }
692
- return _context7.abrupt("continue", 11);
941
+ return _context10.abrupt("continue", 11);
693
942
  case 9:
694
- _context7.next = 11;
943
+ _context10.next = 11;
695
944
  return this.grids[_i6].deleteAccessoireInCells(cellIndex);
696
945
  case 11:
697
946
  _i6++;
698
- _context7.next = 6;
947
+ _context10.next = 6;
699
948
  break;
700
949
  case 14:
701
950
  case "end":
702
- return _context7.stop();
951
+ return _context10.stop();
703
952
  }
704
- }, _callee7, this);
953
+ }, _callee10, this);
705
954
  }));
706
- function handleDeleteTakePlaceOnOtherGrids(_x7, _x8, _x9) {
955
+ function handleDeleteTakePlaceOnOtherGrids(_x11, _x12, _x13) {
707
956
  return _handleDeleteTakePlaceOnOtherGrids.apply(this, arguments);
708
957
  }
709
958
  return handleDeleteTakePlaceOnOtherGrids;
@@ -719,40 +968,40 @@ var ShelfPlanner = /*#__PURE__*/function () {
719
968
  }, {
720
969
  key: "addAccessoireInCellInGrid",
721
970
  value: (function () {
722
- var _addAccessoireInCellInGrid = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee8(accessoire, gridIndex, cellIndex, type, params) {
971
+ var _addAccessoireInCellInGrid = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee11(accessoire, gridIndex, cellIndex, type, params) {
723
972
  var grids, i, grid;
724
- return _regeneratorRuntime__default["default"].wrap(function _callee8$(_context8) {
725
- while (1) switch (_context8.prev = _context8.next) {
973
+ return _regeneratorRuntime__default["default"].wrap(function _callee11$(_context11) {
974
+ while (1) switch (_context11.prev = _context11.next) {
726
975
  case 0:
727
976
  grids = this.doesTakePlaceOnOtherGrids(accessoire) ? this.activeGrids : [this.grids[gridIndex]];
728
977
  i = 0;
729
978
  case 2:
730
979
  if (!(i < grids.length)) {
731
- _context8.next = 11;
980
+ _context11.next = 11;
732
981
  break;
733
982
  }
734
983
  grid = grids[i];
735
984
  if (!grid.DisabledByRule) {
736
- _context8.next = 6;
985
+ _context11.next = 6;
737
986
  break;
738
987
  }
739
- return _context8.abrupt("continue", 8);
988
+ return _context11.abrupt("continue", 8);
740
989
  case 6:
741
- _context8.next = 8;
990
+ _context11.next = 8;
742
991
  return grids[i].addAccessoireInCells(cellIndex, accessoire, type, grid.ShelfIndex !== gridIndex ? true : params === null || params === void 0 ? void 0 : params.noMove, grid.ShelfIndex !== gridIndex ? true : params === null || params === void 0 ? void 0 : params.noDelete, grid.ShelfIndex !== gridIndex ? true : undefined);
743
992
  case 8:
744
993
  i++;
745
- _context8.next = 2;
994
+ _context11.next = 2;
746
995
  break;
747
996
  case 11:
748
997
  this.checkForFreeAccessoire(accessoire);
749
998
  case 12:
750
999
  case "end":
751
- return _context8.stop();
1000
+ return _context11.stop();
752
1001
  }
753
- }, _callee8, this);
1002
+ }, _callee11, this);
754
1003
  }));
755
- function addAccessoireInCellInGrid(_x10, _x11, _x12, _x13, _x14) {
1004
+ function addAccessoireInCellInGrid(_x14, _x15, _x16, _x17, _x18) {
756
1005
  return _addAccessoireInCellInGrid.apply(this, arguments);
757
1006
  }
758
1007
  return addAccessoireInCellInGrid;
@@ -840,7 +1089,11 @@ var ShelfPlanner = /*#__PURE__*/function () {
840
1089
  value: function generateShelfPlandata() {
841
1090
  var _this$article$doorPla;
842
1091
  var ret = [];
843
- var grids = this.activeGrids;
1092
+ var grids = this.grids.filter(function (grid) {
1093
+ return !grid.DisabledByRule || grid.Cells.some(function (cell) {
1094
+ return cell.InUse === cell.Index && cell.Article;
1095
+ });
1096
+ });
844
1097
  for (var i = 0; i < grids.length; i++) {
845
1098
  var cells = [];
846
1099
  var grid = grids[i];
@@ -1054,16 +1307,16 @@ var ShelfPlanner = /*#__PURE__*/function () {
1054
1307
  }, {
1055
1308
  key: "disableCellsByDockedShelfs",
1056
1309
  value: (function () {
1057
- var _disableCellsByDockedShelfs = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee9(count) {
1310
+ var _disableCellsByDockedShelfs = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee12(count) {
1058
1311
  var grids, i, grid, gridCount, toDisableCells, useCount, j, _j, cell, _j2;
1059
- return _regeneratorRuntime__default["default"].wrap(function _callee9$(_context9) {
1060
- while (1) switch (_context9.prev = _context9.next) {
1312
+ return _regeneratorRuntime__default["default"].wrap(function _callee12$(_context12) {
1313
+ while (1) switch (_context12.prev = _context12.next) {
1061
1314
  case 0:
1062
1315
  grids = this.activeGrids;
1063
1316
  i = 0;
1064
1317
  case 2:
1065
1318
  if (!(i < grids.length)) {
1066
- _context9.next = 29;
1319
+ _context12.next = 29;
1067
1320
  break;
1068
1321
  }
1069
1322
  grid = grids[i];
@@ -1076,51 +1329,51 @@ var ShelfPlanner = /*#__PURE__*/function () {
1076
1329
  _j = 0;
1077
1330
  case 9:
1078
1331
  if (!(_j < toDisableCells.length)) {
1079
- _context9.next = 18;
1332
+ _context12.next = 18;
1080
1333
  break;
1081
1334
  }
1082
1335
  cell = grid.Cells[toDisableCells[_j]];
1083
1336
  if (!(cell.InUse == toDisableCells[_j])) {
1084
- _context9.next = 14;
1337
+ _context12.next = 14;
1085
1338
  break;
1086
1339
  }
1087
- _context9.next = 14;
1340
+ _context12.next = 14;
1088
1341
  return index.setHandlerInstance.deleteAccessorieOnShelfPlanner(this.article.set, grid.ShelfIndex, cell.InUse, grid.basketId);
1089
1342
  case 14:
1090
1343
  cell.IsDisabled = true;
1091
1344
  case 15:
1092
1345
  _j++;
1093
- _context9.next = 9;
1346
+ _context12.next = 9;
1094
1347
  break;
1095
1348
  case 18:
1096
1349
  _j2 = 0;
1097
1350
  case 19:
1098
1351
  if (!(_j2 < grid.Cells.length)) {
1099
- _context9.next = 26;
1352
+ _context12.next = 26;
1100
1353
  break;
1101
1354
  }
1102
1355
  if (!toDisableCells.includes(_j2)) {
1103
- _context9.next = 22;
1356
+ _context12.next = 22;
1104
1357
  break;
1105
1358
  }
1106
- return _context9.abrupt("continue", 23);
1359
+ return _context12.abrupt("continue", 23);
1107
1360
  case 22:
1108
1361
  grid.Cells[_j2].IsDisabled = false;
1109
1362
  case 23:
1110
1363
  _j2++;
1111
- _context9.next = 19;
1364
+ _context12.next = 19;
1112
1365
  break;
1113
1366
  case 26:
1114
1367
  i++;
1115
- _context9.next = 2;
1368
+ _context12.next = 2;
1116
1369
  break;
1117
1370
  case 29:
1118
1371
  case "end":
1119
- return _context9.stop();
1372
+ return _context12.stop();
1120
1373
  }
1121
- }, _callee9, this);
1374
+ }, _callee12, this);
1122
1375
  }));
1123
- function disableCellsByDockedShelfs(_x15) {
1376
+ function disableCellsByDockedShelfs(_x19) {
1124
1377
  return _disableCellsByDockedShelfs.apply(this, arguments);
1125
1378
  }
1126
1379
  return disableCellsByDockedShelfs;
@@ -1161,8 +1414,8 @@ var ShelfPlanner = /*#__PURE__*/function () {
1161
1414
  }, {
1162
1415
  key: "getCellIndexOfBasketId",
1163
1416
  value: function getCellIndexOfBasketId(gridIndex, basketId) {
1164
- var _this$getGridByIndex;
1165
- return (_this$getGridByIndex = this.getGridByIndex(gridIndex)) === null || _this$getGridByIndex === void 0 ? void 0 : _this$getGridByIndex.getIndexOfBasketId(basketId);
1417
+ var _this$getGridByIndex2;
1418
+ return (_this$getGridByIndex2 = this.getGridByIndex(gridIndex)) === null || _this$getGridByIndex2 === void 0 ? void 0 : _this$getGridByIndex2.getIndexOfBasketId(basketId);
1166
1419
  }
1167
1420
  }, {
1168
1421
  key: "allGrids",