@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
@@ -4,8 +4,8 @@ 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-176318a8.js';
8
- import DivaUtils from '@crystaldesign/diva-utils';
7
+ import { G as Grid, a as articleHandlerInstance, b as setHandlerInstance } from './index-d9bab15b.js';
8
+ import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
9
9
  import '@babel/runtime/helpers/slicedToArray';
10
10
  import '@babel/runtime/helpers/objectWithoutProperties';
11
11
  import 'axios';
@@ -18,6 +18,7 @@ import '@babel/runtime/helpers/wrapNativeSuper';
18
18
  import '@crystaldesign/basket-handler';
19
19
  import 'socket.io-client';
20
20
 
21
+ var LOG = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
21
22
  var ShelfPlanner = /*#__PURE__*/function () {
22
23
  function ShelfPlanner(data, article) {
23
24
  _classCallCheck(this, ShelfPlanner);
@@ -45,7 +46,14 @@ var ShelfPlanner = /*#__PURE__*/function () {
45
46
  //rule so the shelfplanner cells get disabled when the neighbour (AVL or AVR) is smaller. eg: Ben sulvag
46
47
  _defineProperty(this, "disableCellsByElement", void 0);
47
48
  _defineProperty(this, "montageOptions", []);
49
+ //true until the shelfaccessoires saved in the basket were restored into the cells (see restoreShelfAccessoires in the DivaSetHandler).
50
+ //until then no initAcc may be placed, they would occupy the cells of the saved accessoires
51
+ _defineProperty(this, "restorePending", void 0);
52
+ //accessoires of grids that were switched off by a grid rule, per gridIndex. They get placed again when the grid
53
+ //becomes active again - eg a shelf that is configured from 100cm to 50cm and back keeps its accessoires
54
+ _defineProperty(this, "stashedAccessoires", {});
48
55
  this.article = article;
56
+ this.restorePending = !!article.shelfPlanData;
49
57
  this.disableCellsByElement = data.DisableCells;
50
58
  this.data = data;
51
59
  this.showAfterOPT = data.ShowAfterOPT;
@@ -90,6 +98,14 @@ var ShelfPlanner = /*#__PURE__*/function () {
90
98
  get: function get() {
91
99
  return this.isVisible;
92
100
  }
101
+ }, {
102
+ key: "RestorePending",
103
+ get: function get() {
104
+ return this.restorePending;
105
+ },
106
+ set: function set(restorePending) {
107
+ this.restorePending = restorePending;
108
+ }
93
109
  /**
94
110
  * 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
95
111
  * if the shelfplanner step is no more visible delete all the accessoires
@@ -160,77 +176,95 @@ var ShelfPlanner = /*#__PURE__*/function () {
160
176
  _i = 0;
161
177
  case 4:
162
178
  if (!(_i < gridsTodos.length)) {
163
- _context2.next = 11;
179
+ _context2.next = 13;
164
180
  break;
165
181
  }
166
- if (!gridsTodos[_i].length) {
167
- _context2.next = 8;
182
+ if (gridsTodos[_i].length) {
183
+ _context2.next = 7;
168
184
  break;
169
185
  }
170
- _context2.next = 8;
186
+ return _context2.abrupt("continue", 10);
187
+ case 7:
188
+ //remember the accessoires before they get deleted, so they can be placed again when the grid becomes active again
189
+ this.stashAccessoiresOfGrid(_i);
190
+ _context2.next = 10;
171
191
  return this.grids[_i].deleteAllAccOfGrid();
172
- case 8:
192
+ case 10:
173
193
  _i++;
174
194
  _context2.next = 4;
175
195
  break;
176
- case 11:
196
+ case 13:
177
197
  _i2 = 0;
178
- case 12:
198
+ case 14:
179
199
  if (!(_i2 < gridsTodos.length)) {
180
- _context2.next = 23;
200
+ _context2.next = 30;
181
201
  break;
182
202
  }
183
203
  if (gridsTodos[_i2].length) {
184
- _context2.next = 15;
204
+ _context2.next = 17;
185
205
  break;
186
206
  }
187
- return _context2.abrupt("continue", 20);
188
- case 15:
189
- grid = this.grids[_i2];
207
+ return _context2.abrupt("continue", 27);
208
+ case 17:
190
209
  if (gridsTodos[_i2].includes('heightGridRule')) {
191
210
  this.creatNewGrid(_i2);
192
211
  newHeightSet = true;
193
212
  }
213
+ //read the grid after a possible recreate, the replaced one is not the grid that gets filled
214
+ grid = this.grids[_i2];
194
215
  if (!((gridsTodos[_i2].includes('heightGridRule') || gridsTodos[_i2].includes('disableGridRule')) && !grid.DisabledByRule)) {
195
- _context2.next = 20;
216
+ _context2.next = 27;
217
+ break;
218
+ }
219
+ if (!this.restorePending) {
220
+ _context2.next = 22;
196
221
  break;
197
222
  }
198
- _context2.next = 20;
223
+ return _context2.abrupt("continue", 27);
224
+ case 22:
225
+ _context2.next = 24;
226
+ return this.placeStashedAccessoiresOfGrid(_i2);
227
+ case 24:
228
+ if (_context2.sent) {
229
+ _context2.next = 27;
230
+ break;
231
+ }
232
+ _context2.next = 27;
199
233
  return this.initAccList(_i2);
200
- case 20:
234
+ case 27:
201
235
  _i2++;
202
- _context2.next = 12;
236
+ _context2.next = 14;
203
237
  break;
204
- case 23:
238
+ case 30:
205
239
  if (!(!newHeightSet && Object.keys(variantValues).length)) {
206
- _context2.next = 34;
240
+ _context2.next = 41;
207
241
  break;
208
242
  }
209
243
  grids = this.activeGrids;
210
244
  _i3 = 0;
211
- case 26:
245
+ case 33:
212
246
  if (!(_i3 < grids.length)) {
213
- _context2.next = 34;
247
+ _context2.next = 41;
214
248
  break;
215
249
  }
216
250
  _grid = grids[_i3];
217
251
  if (!((_grid$DisableCellsByM = _grid.DisableCellsByMeasures) !== null && _grid$DisableCellsByM !== void 0 && _grid$DisableCellsByM.options.find(function (o) {
218
252
  return Object.keys(variantValues).includes('OPT' + o.opt);
219
253
  }) || !!_grid.disableCellsByRules)) {
220
- _context2.next = 31;
254
+ _context2.next = 38;
221
255
  break;
222
256
  }
223
257
  newHeightSet = true;
224
- return _context2.abrupt("break", 34);
225
- case 31:
258
+ return _context2.abrupt("break", 41);
259
+ case 38:
226
260
  _i3++;
227
- _context2.next = 26;
261
+ _context2.next = 33;
228
262
  break;
229
- case 34:
263
+ case 41:
230
264
  if (newHeightSet) {
231
265
  this.updateDisabledCells();
232
266
  }
233
- case 35:
267
+ case 42:
234
268
  case "end":
235
269
  return _context2.stop();
236
270
  }
@@ -245,55 +279,269 @@ var ShelfPlanner = /*#__PURE__*/function () {
245
279
  key: "creatNewGrid",
246
280
  value: function creatNewGrid(i) {
247
281
  this.grids[i] = new Grid(i, this.article, this.data);
282
+ this.grids[i].onConfigChanged();
248
283
  }
249
284
 
285
+ /**
286
+ * Remembers the accessoires of a grid that is about to be cleared because a grid rule switched it off.
287
+ * An empty grid never overwrites an existing memory, so the accessoires survive further configuration changes.
288
+ * @param gridIndex grid that gets cleared
289
+ */
290
+ }, {
291
+ key: "stashAccessoiresOfGrid",
292
+ value: function stashAccessoiresOfGrid(gridIndex) {
293
+ var stashedAccessoires = this.collectAccessoiresToStash(this.grids[gridIndex]);
294
+ if (!stashedAccessoires.length) return;
295
+ this.stashedAccessoires[gridIndex] = stashedAccessoires;
296
+ }
297
+
298
+ /**
299
+ * Collects an accessoire of every cell it starts in, including the accessoires of the accessoire itself
300
+ * (eg the drawers of an EINBAU), because those get deleted with their parent as well.
301
+ */
302
+ }, {
303
+ key: "collectAccessoiresToStash",
304
+ value: function collectAccessoiresToStash(grid) {
305
+ var stashedAccessoires = [];
306
+ for (var i = 0; i < grid.Cells.length; i++) {
307
+ var cell = grid.Cells[i];
308
+ var accessoire = cell.Article;
309
+ if (cell.InUse !== i || !accessoire) continue;
310
+
311
+ //the accessoire can be a shelf itself (eg an EINBAU), its own accessoires are grouped by its own grids
312
+ var accessoires = {};
313
+ var accessoireShelfPlanner = accessoire.shelfPlanner;
314
+ for (var j = 0; j < ((_accessoireShelfPlann = accessoireShelfPlanner === null || accessoireShelfPlanner === void 0 ? void 0 : accessoireShelfPlanner.grids.length) !== null && _accessoireShelfPlann !== void 0 ? _accessoireShelfPlann : 0); j++) {
315
+ var _accessoireShelfPlann;
316
+ var accessoireGrid = accessoireShelfPlanner.grids[j];
317
+ var accessoiresOfGrid = accessoireShelfPlanner.collectAccessoiresToStash(accessoireGrid);
318
+ if (accessoiresOfGrid.length) accessoires[accessoireGrid.ShelfIndex] = accessoiresOfGrid;
319
+ }
320
+ stashedAccessoires.push({
321
+ articleCodex: accessoire.articleCodex,
322
+ cellIndex: i,
323
+ noMove: cell.NoMove,
324
+ noDelete: cell.NoDelete,
325
+ quantity: accessoire.quantity,
326
+ variantValues: accessoire.VariantValues,
327
+ accessoires: accessoires
328
+ });
329
+ }
330
+ return stashedAccessoires;
331
+ }
332
+
333
+ /**
334
+ * Places the remembered accessoires of a grid back into their cells.
335
+ * @param gridIndex grid that became active again
336
+ * @returns how many accessoires were placed - 0 means the grid is still empty and needs its initAcc
337
+ */
338
+ }, {
339
+ key: "placeStashedAccessoiresOfGrid",
340
+ value: (function () {
341
+ var _placeStashedAccessoiresOfGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(gridIndex) {
342
+ var stashedAccessoires;
343
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
344
+ while (1) switch (_context3.prev = _context3.next) {
345
+ case 0:
346
+ stashedAccessoires = this.stashedAccessoires[gridIndex];
347
+ if (stashedAccessoires !== null && stashedAccessoires !== void 0 && stashedAccessoires.length) {
348
+ _context3.next = 3;
349
+ break;
350
+ }
351
+ return _context3.abrupt("return", 0);
352
+ case 3:
353
+ //remove it first, a reconfiguration triggered by placing them must not place them a second time
354
+ delete this.stashedAccessoires[gridIndex];
355
+ _context3.next = 6;
356
+ return this.placeStashedAccessoiresInGrid(gridIndex, stashedAccessoires);
357
+ case 6:
358
+ return _context3.abrupt("return", _context3.sent);
359
+ case 7:
360
+ case "end":
361
+ return _context3.stop();
362
+ }
363
+ }, _callee3, this);
364
+ }));
365
+ function placeStashedAccessoiresOfGrid(_x3) {
366
+ return _placeStashedAccessoiresOfGrid.apply(this, arguments);
367
+ }
368
+ return placeStashedAccessoiresOfGrid;
369
+ }() /** Places stashed accessoires that are grouped by gridIndex - used for the accessoires of an accessoire. */)
370
+ }, {
371
+ key: "placeStashedAccessoiresByGrid",
372
+ value: (function () {
373
+ var _placeStashedAccessoiresByGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(stashedAccessoires) {
374
+ var gridIndexes, i, _this$getGridByIndex, gridIndex;
375
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
376
+ while (1) switch (_context4.prev = _context4.next) {
377
+ case 0:
378
+ gridIndexes = Object.keys(stashedAccessoires);
379
+ i = 0;
380
+ case 2:
381
+ if (!(i < gridIndexes.length)) {
382
+ _context4.next = 14;
383
+ break;
384
+ }
385
+ gridIndex = Number(gridIndexes[i]); //the accessoire was created new, so its initAcc are already placed in the cells the remembered accessoires need
386
+ _context4.next = 6;
387
+ return (_this$getGridByIndex = this.getGridByIndex(gridIndex)) === null || _this$getGridByIndex === void 0 ? void 0 : _this$getGridByIndex.deleteAllAccOfGrid();
388
+ case 6:
389
+ _context4.next = 8;
390
+ return this.placeStashedAccessoiresInGrid(gridIndex, stashedAccessoires[gridIndex]);
391
+ case 8:
392
+ if (_context4.sent) {
393
+ _context4.next = 11;
394
+ break;
395
+ }
396
+ _context4.next = 11;
397
+ return this.initAccList(gridIndex);
398
+ case 11:
399
+ i++;
400
+ _context4.next = 2;
401
+ break;
402
+ case 14:
403
+ case "end":
404
+ return _context4.stop();
405
+ }
406
+ }, _callee4, this);
407
+ }));
408
+ function placeStashedAccessoiresByGrid(_x4) {
409
+ return _placeStashedAccessoiresByGrid.apply(this, arguments);
410
+ }
411
+ return placeStashedAccessoiresByGrid;
412
+ }() /** @returns how many of the stashed accessoires were placed */)
413
+ }, {
414
+ key: "placeStashedAccessoiresInGrid",
415
+ value: (function () {
416
+ var _placeStashedAccessoiresInGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(gridIndex, stashedAccessoires) {
417
+ var placedAccessoires, grid, i, stashed, result, fitResult, accessoire;
418
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
419
+ while (1) switch (_context5.prev = _context5.next) {
420
+ case 0:
421
+ placedAccessoires = 0;
422
+ grid = this.getGridByIndex(gridIndex);
423
+ if (grid) {
424
+ _context5.next = 4;
425
+ break;
426
+ }
427
+ return _context5.abrupt("return", placedAccessoires);
428
+ case 4:
429
+ i = 0;
430
+ case 5:
431
+ if (!(i < stashedAccessoires.length)) {
432
+ _context5.next = 28;
433
+ break;
434
+ }
435
+ stashed = stashedAccessoires[i];
436
+ grid.ActAccessoire = stashed.articleCodex;
437
+ _context5.next = 10;
438
+ return setHandlerInstance.addAccessorieOnShelfPlanner(this.article.set, gridIndex, stashed.cellIndex, this.article.basketId, {
439
+ noMove: stashed.noMove,
440
+ noDelete: stashed.noDelete,
441
+ byInit: true
442
+ });
443
+ case 10:
444
+ result = _context5.sent;
445
+ grid.ActAccessoire = undefined;
446
+ fitResult = result === false || result.index === undefined ? undefined : result;
447
+ accessoire = fitResult === null || fitResult === void 0 ? void 0 : fitResult.accessoire;
448
+ if (!(!fitResult || !accessoire)) {
449
+ _context5.next = 17;
450
+ break;
451
+ }
452
+ LOG.error(new DivaError('shelfaccessoire of a switched off grid does not fit anymore and gets dropped', {
453
+ code: 'WC_0015',
454
+ custom: {
455
+ stashed: stashed,
456
+ gridName: grid.GridName,
457
+ result: result,
458
+ parentPosNr: this.article.posNr,
459
+ parentArticleCodex: this.article.articleCodex,
460
+ parentBasketId: this.article.basketId
461
+ }
462
+ }));
463
+ return _context5.abrupt("continue", 25);
464
+ case 17:
465
+ accessoire.quantity = stashed.quantity;
466
+ placedAccessoires++;
467
+ if (!Object.keys(stashed.variantValues).length) {
468
+ _context5.next = 22;
469
+ break;
470
+ }
471
+ _context5.next = 22;
472
+ return articleHandlerInstance.updateCfgValues(accessoire, stashed.variantValues, {});
473
+ case 22:
474
+ if (!accessoire.shelfPlanner) {
475
+ _context5.next = 25;
476
+ break;
477
+ }
478
+ _context5.next = 25;
479
+ return accessoire.shelfPlanner.placeStashedAccessoiresByGrid(stashed.accessoires);
480
+ case 25:
481
+ i++;
482
+ _context5.next = 5;
483
+ break;
484
+ case 28:
485
+ return _context5.abrupt("return", placedAccessoires);
486
+ case 29:
487
+ case "end":
488
+ return _context5.stop();
489
+ }
490
+ }, _callee5, this);
491
+ }));
492
+ function placeStashedAccessoiresInGrid(_x5, _x6) {
493
+ return _placeStashedAccessoiresInGrid.apply(this, arguments);
494
+ }
495
+ return placeStashedAccessoiresInGrid;
496
+ }()
250
497
  /**
251
498
  * runs through the InitAccArr and initialized all the accessoires eg: Kleiderstange gets placed
252
499
  * 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
253
500
  */
501
+ )
254
502
  }, {
255
503
  key: "initAccList",
256
504
  value: (function () {
257
- var _initAccList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(gridIndex) {
505
+ var _initAccList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(gridIndex) {
258
506
  var grids, i, grid, j, initAcc, k, _this$article$accesso, shelfId, accessoires, _accessoireToDelete$s, accessoireToDelete, rh;
259
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
260
- while (1) switch (_context3.prev = _context3.next) {
507
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
508
+ while (1) switch (_context6.prev = _context6.next) {
261
509
  case 0:
262
510
  grids = this.activeGrids;
263
511
  i = 0;
264
512
  case 2:
265
513
  if (!(i < grids.length)) {
266
- _context3.next = 36;
514
+ _context6.next = 36;
267
515
  break;
268
516
  }
269
517
  grid = grids[i];
270
518
  if (!(gridIndex !== undefined && grid.ShelfIndex !== gridIndex)) {
271
- _context3.next = 6;
519
+ _context6.next = 6;
272
520
  break;
273
521
  }
274
- return _context3.abrupt("continue", 33);
522
+ return _context6.abrupt("continue", 33);
275
523
  case 6:
276
524
  if (grid.InitAccArr) {
277
- _context3.next = 8;
525
+ _context6.next = 8;
278
526
  break;
279
527
  }
280
- return _context3.abrupt("continue", 33);
528
+ return _context6.abrupt("continue", 33);
281
529
  case 8:
282
530
  j = 0;
283
531
  case 9:
284
532
  if (!(j < grid.InitAccArr.length)) {
285
- _context3.next = 33;
533
+ _context6.next = 33;
286
534
  break;
287
535
  }
288
536
  initAcc = grid.InitAccArr[j];
289
537
  k = 0;
290
538
  case 12:
291
539
  if (!(k < initAcc.initRH.length)) {
292
- _context3.next = 30;
540
+ _context6.next = 30;
293
541
  break;
294
542
  }
295
543
  grid.ActAccessoire = initAcc.Codex;
296
- _context3.next = 16;
544
+ _context6.next = 16;
297
545
  return setHandlerInstance.addAccessorieOnShelfPlanner(this.article.set, grid.ShelfIndex, initAcc.initRH[k], grid.basketId, {
298
546
  noMove: initAcc.noMove,
299
547
  noDelete: initAcc.noDelete,
@@ -301,48 +549,48 @@ var ShelfPlanner = /*#__PURE__*/function () {
301
549
  });
302
550
  case 16:
303
551
  if (!initAcc.replaceFromParent) {
304
- _context3.next = 26;
552
+ _context6.next = 26;
305
553
  break;
306
554
  }
307
555
  shelfId = this.getShelfParentShelfId();
308
556
  if (!(shelfId && (_this$article$accesso = this.article.accessoireParentArticle) !== null && _this$article$accesso !== void 0 && _this$article$accesso.shelfPlanner)) {
309
- _context3.next = 26;
557
+ _context6.next = 26;
310
558
  break;
311
559
  }
312
560
  accessoires = this.article.accessoireParentArticle.shelfPlanner.getAccessorireByCodex(shelfId, initAcc.Codex);
313
561
  if (!(accessoires && accessoires.length > 0)) {
314
- _context3.next = 26;
562
+ _context6.next = 26;
315
563
  break;
316
564
  }
317
565
  accessoireToDelete = accessoires[0];
318
566
  rh = (_accessoireToDelete$s = accessoireToDelete.shelfPlanner) === null || _accessoireToDelete$s === void 0 ? void 0 : _accessoireToDelete$s.getRHOnParentArticle();
319
567
  if (!(rh !== undefined && accessoireToDelete.relatedToShelfGrid !== undefined)) {
320
- _context3.next = 26;
568
+ _context6.next = 26;
321
569
  break;
322
570
  }
323
- _context3.next = 26;
571
+ _context6.next = 26;
324
572
  return setHandlerInstance.deleteAccessorieOnShelfPlanner(this.article.set, accessoireToDelete.relatedToShelfGrid, rh, this.article.accessoireParentArticle.basketId);
325
573
  case 26:
326
574
  grid.ActAccessoire = undefined;
327
575
  case 27:
328
576
  k++;
329
- _context3.next = 12;
577
+ _context6.next = 12;
330
578
  break;
331
579
  case 30:
332
580
  j++;
333
- _context3.next = 9;
581
+ _context6.next = 9;
334
582
  break;
335
583
  case 33:
336
584
  i++;
337
- _context3.next = 2;
585
+ _context6.next = 2;
338
586
  break;
339
587
  case 36:
340
588
  case "end":
341
- return _context3.stop();
589
+ return _context6.stop();
342
590
  }
343
- }, _callee3, this);
591
+ }, _callee6, this);
344
592
  }));
345
- function initAccList(_x3) {
593
+ function initAccList(_x7) {
346
594
  return _initAccList.apply(this, arguments);
347
595
  }
348
596
  return initAccList;
@@ -371,31 +619,31 @@ var ShelfPlanner = /*#__PURE__*/function () {
371
619
  }, {
372
620
  key: "triggerVisibility",
373
621
  value: function () {
374
- var _triggerVisibility = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(gridGroup) {
622
+ var _triggerVisibility = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(gridGroup) {
375
623
  var toCleanOptions, toUpdateOptions, i, grid, _i4, option, visitOptionState;
376
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
377
- while (1) switch (_context4.prev = _context4.next) {
624
+ return _regeneratorRuntime.wrap(function _callee7$(_context7) {
625
+ while (1) switch (_context7.prev = _context7.next) {
378
626
  case 0:
379
627
  toCleanOptions = [];
380
628
  toUpdateOptions = [];
381
629
  i = 0;
382
630
  case 3:
383
631
  if (!(i < this.grids.length)) {
384
- _context4.next = 13;
632
+ _context7.next = 13;
385
633
  break;
386
634
  }
387
635
  grid = this.grids[i];
388
636
  if (grid.VisitOption) {
389
- _context4.next = 7;
637
+ _context7.next = 7;
390
638
  break;
391
639
  }
392
- return _context4.abrupt("continue", 10);
640
+ return _context7.abrupt("continue", 10);
393
641
  case 7:
394
642
  if (!(toUpdateOptions.includes(grid.VisitOption) || toCleanOptions.includes(grid.VisitOption))) {
395
- _context4.next = 9;
643
+ _context7.next = 9;
396
644
  break;
397
645
  }
398
- return _context4.abrupt("continue", 10);
646
+ return _context7.abrupt("continue", 10);
399
647
  case 9:
400
648
  if (gridGroup && (grid.gridGroup == gridGroup || grid.alternativeGridGroups.includes(gridGroup))) {
401
649
  toUpdateOptions.push(grid.VisitOption);
@@ -405,34 +653,34 @@ var ShelfPlanner = /*#__PURE__*/function () {
405
653
  }
406
654
  case 10:
407
655
  i++;
408
- _context4.next = 3;
656
+ _context7.next = 3;
409
657
  break;
410
658
  case 13:
411
659
  _i4 = 0;
412
660
  case 14:
413
661
  if (!(_i4 < [].concat(toUpdateOptions, toCleanOptions).length)) {
414
- _context4.next = 23;
662
+ _context7.next = 23;
415
663
  break;
416
664
  }
417
665
  option = [].concat(toUpdateOptions, toCleanOptions)[_i4];
418
666
  visitOptionState = this.article.getArticleOptionState((!this.article.CatalogData.isIDMFormat ? 'OPT' : '') + option);
419
667
  if (!visitOptionState) {
420
- _context4.next = 20;
668
+ _context7.next = 20;
421
669
  break;
422
670
  }
423
- _context4.next = 20;
671
+ _context7.next = 20;
424
672
  return articleHandlerInstance.updateOption(this.article, visitOptionState.optionCodex, toUpdateOptions.includes(option) ? 'OPVMIT' : 'OPVOHNE');
425
673
  case 20:
426
674
  _i4++;
427
- _context4.next = 14;
675
+ _context7.next = 14;
428
676
  break;
429
677
  case 23:
430
678
  case "end":
431
- return _context4.stop();
679
+ return _context7.stop();
432
680
  }
433
- }, _callee4, this);
681
+ }, _callee7, this);
434
682
  }));
435
- function triggerVisibility(_x4) {
683
+ function triggerVisibility(_x8) {
436
684
  return _triggerVisibility.apply(this, arguments);
437
685
  }
438
686
  return triggerVisibility;
@@ -440,29 +688,30 @@ var ShelfPlanner = /*#__PURE__*/function () {
440
688
  }, {
441
689
  key: "deleteAllAcc",
442
690
  value: function () {
443
- var _deleteAllAcc = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
691
+ var _deleteAllAcc = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
444
692
  var i;
445
- return _regeneratorRuntime.wrap(function _callee5$(_context5) {
446
- while (1) switch (_context5.prev = _context5.next) {
693
+ return _regeneratorRuntime.wrap(function _callee8$(_context8) {
694
+ while (1) switch (_context8.prev = _context8.next) {
447
695
  case 0:
448
696
  this.article.shelfPlanData = undefined;
697
+ this.restorePending = false;
449
698
  i = 0;
450
- case 2:
699
+ case 3:
451
700
  if (!(i < this.grids.length)) {
452
- _context5.next = 8;
701
+ _context8.next = 9;
453
702
  break;
454
703
  }
455
- _context5.next = 5;
704
+ _context8.next = 6;
456
705
  return this.grids[i].deleteAllAccOfGrid();
457
- case 5:
706
+ case 6:
458
707
  i++;
459
- _context5.next = 2;
708
+ _context8.next = 3;
460
709
  break;
461
- case 8:
710
+ case 9:
462
711
  case "end":
463
- return _context5.stop();
712
+ return _context8.stop();
464
713
  }
465
- }, _callee5, this);
714
+ }, _callee8, this);
466
715
  }));
467
716
  function deleteAllAcc() {
468
717
  return _deleteAllAcc.apply(this, arguments);
@@ -566,10 +815,10 @@ var ShelfPlanner = /*#__PURE__*/function () {
566
815
  }, {
567
816
  key: "deleteAccessoireOfCellInGrid",
568
817
  value: (function () {
569
- var _deleteAccessoireOfCellInGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(gridIndex, cellIndex) {
818
+ var _deleteAccessoireOfCellInGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(gridIndex, cellIndex) {
570
819
  var grid, inUse, deleteIndex, onBoardCell, accessoire;
571
- return _regeneratorRuntime.wrap(function _callee6$(_context6) {
572
- while (1) switch (_context6.prev = _context6.next) {
820
+ return _regeneratorRuntime.wrap(function _callee9$(_context9) {
821
+ while (1) switch (_context9.prev = _context9.next) {
573
822
  case 0:
574
823
  grid = this.grids[gridIndex];
575
824
  inUse = grid.Cells[cellIndex].InUse;
@@ -584,24 +833,24 @@ var ShelfPlanner = /*#__PURE__*/function () {
584
833
  accessoire = grid.Cells[cellIndex].Article;
585
834
  }
586
835
  if (!accessoire) {
587
- _context6.next = 8;
836
+ _context9.next = 8;
588
837
  break;
589
838
  }
590
839
  this.checkForNewFreeAccessoire(accessoire, gridIndex);
591
- _context6.next = 8;
840
+ _context9.next = 8;
592
841
  return this.handleDeleteTakePlaceOnOtherGrids(gridIndex, deleteIndex, accessoire);
593
842
  case 8:
594
- _context6.next = 10;
843
+ _context9.next = 10;
595
844
  return grid.deleteAccessoireInCells(deleteIndex);
596
845
  case 10:
597
- return _context6.abrupt("return", _context6.sent);
846
+ return _context9.abrupt("return", _context9.sent);
598
847
  case 11:
599
848
  case "end":
600
- return _context6.stop();
849
+ return _context9.stop();
601
850
  }
602
- }, _callee6, this);
851
+ }, _callee9, this);
603
852
  }));
604
- function deleteAccessoireOfCellInGrid(_x5, _x6) {
853
+ function deleteAccessoireOfCellInGrid(_x9, _x10) {
605
854
  return _deleteAccessoireOfCellInGrid.apply(this, arguments);
606
855
  }
607
856
  return deleteAccessoireOfCellInGrid;
@@ -636,16 +885,16 @@ var ShelfPlanner = /*#__PURE__*/function () {
636
885
  }, {
637
886
  key: "handleDeleteTakePlaceOnOtherGrids",
638
887
  value: (function () {
639
- var _handleDeleteTakePlaceOnOtherGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(gridIndex, cellIndex, accessoire) {
888
+ var _handleDeleteTakePlaceOnOtherGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(gridIndex, cellIndex, accessoire) {
640
889
  var i, _cell$Article, cell, _i5, _cell$Article2, _cell, _i6;
641
- return _regeneratorRuntime.wrap(function _callee7$(_context7) {
642
- while (1) switch (_context7.prev = _context7.next) {
890
+ return _regeneratorRuntime.wrap(function _callee10$(_context10) {
891
+ while (1) switch (_context10.prev = _context10.next) {
643
892
  case 0:
644
893
  if (accessoire.shelfHeight) {
645
- _context7.next = 2;
894
+ _context10.next = 2;
646
895
  break;
647
896
  }
648
- return _context7.abrupt("return");
897
+ return _context10.abrupt("return");
649
898
  case 2:
650
899
  if (accessoire.shelfHeightAbove) {
651
900
  for (i = 0; i < accessoire.shelfHeightAbove; i++) {
@@ -664,34 +913,34 @@ var ShelfPlanner = /*#__PURE__*/function () {
664
913
  }
665
914
  }
666
915
  if (!this.doesTakePlaceOnOtherGrids(accessoire)) {
667
- _context7.next = 14;
916
+ _context10.next = 14;
668
917
  break;
669
918
  }
670
919
  _i6 = 0;
671
920
  case 6:
672
921
  if (!(_i6 < this.grids.length)) {
673
- _context7.next = 14;
922
+ _context10.next = 14;
674
923
  break;
675
924
  }
676
925
  if (!(_i6 === gridIndex)) {
677
- _context7.next = 9;
926
+ _context10.next = 9;
678
927
  break;
679
928
  }
680
- return _context7.abrupt("continue", 11);
929
+ return _context10.abrupt("continue", 11);
681
930
  case 9:
682
- _context7.next = 11;
931
+ _context10.next = 11;
683
932
  return this.grids[_i6].deleteAccessoireInCells(cellIndex);
684
933
  case 11:
685
934
  _i6++;
686
- _context7.next = 6;
935
+ _context10.next = 6;
687
936
  break;
688
937
  case 14:
689
938
  case "end":
690
- return _context7.stop();
939
+ return _context10.stop();
691
940
  }
692
- }, _callee7, this);
941
+ }, _callee10, this);
693
942
  }));
694
- function handleDeleteTakePlaceOnOtherGrids(_x7, _x8, _x9) {
943
+ function handleDeleteTakePlaceOnOtherGrids(_x11, _x12, _x13) {
695
944
  return _handleDeleteTakePlaceOnOtherGrids.apply(this, arguments);
696
945
  }
697
946
  return handleDeleteTakePlaceOnOtherGrids;
@@ -707,40 +956,40 @@ var ShelfPlanner = /*#__PURE__*/function () {
707
956
  }, {
708
957
  key: "addAccessoireInCellInGrid",
709
958
  value: (function () {
710
- var _addAccessoireInCellInGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(accessoire, gridIndex, cellIndex, type, params) {
959
+ var _addAccessoireInCellInGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(accessoire, gridIndex, cellIndex, type, params) {
711
960
  var grids, i, grid;
712
- return _regeneratorRuntime.wrap(function _callee8$(_context8) {
713
- while (1) switch (_context8.prev = _context8.next) {
961
+ return _regeneratorRuntime.wrap(function _callee11$(_context11) {
962
+ while (1) switch (_context11.prev = _context11.next) {
714
963
  case 0:
715
964
  grids = this.doesTakePlaceOnOtherGrids(accessoire) ? this.activeGrids : [this.grids[gridIndex]];
716
965
  i = 0;
717
966
  case 2:
718
967
  if (!(i < grids.length)) {
719
- _context8.next = 11;
968
+ _context11.next = 11;
720
969
  break;
721
970
  }
722
971
  grid = grids[i];
723
972
  if (!grid.DisabledByRule) {
724
- _context8.next = 6;
973
+ _context11.next = 6;
725
974
  break;
726
975
  }
727
- return _context8.abrupt("continue", 8);
976
+ return _context11.abrupt("continue", 8);
728
977
  case 6:
729
- _context8.next = 8;
978
+ _context11.next = 8;
730
979
  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);
731
980
  case 8:
732
981
  i++;
733
- _context8.next = 2;
982
+ _context11.next = 2;
734
983
  break;
735
984
  case 11:
736
985
  this.checkForFreeAccessoire(accessoire);
737
986
  case 12:
738
987
  case "end":
739
- return _context8.stop();
988
+ return _context11.stop();
740
989
  }
741
- }, _callee8, this);
990
+ }, _callee11, this);
742
991
  }));
743
- function addAccessoireInCellInGrid(_x10, _x11, _x12, _x13, _x14) {
992
+ function addAccessoireInCellInGrid(_x14, _x15, _x16, _x17, _x18) {
744
993
  return _addAccessoireInCellInGrid.apply(this, arguments);
745
994
  }
746
995
  return addAccessoireInCellInGrid;
@@ -828,7 +1077,11 @@ var ShelfPlanner = /*#__PURE__*/function () {
828
1077
  value: function generateShelfPlandata() {
829
1078
  var _this$article$doorPla;
830
1079
  var ret = [];
831
- var grids = this.activeGrids;
1080
+ var grids = this.grids.filter(function (grid) {
1081
+ return !grid.DisabledByRule || grid.Cells.some(function (cell) {
1082
+ return cell.InUse === cell.Index && cell.Article;
1083
+ });
1084
+ });
832
1085
  for (var i = 0; i < grids.length; i++) {
833
1086
  var cells = [];
834
1087
  var grid = grids[i];
@@ -1042,16 +1295,16 @@ var ShelfPlanner = /*#__PURE__*/function () {
1042
1295
  }, {
1043
1296
  key: "disableCellsByDockedShelfs",
1044
1297
  value: (function () {
1045
- var _disableCellsByDockedShelfs = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(count) {
1298
+ var _disableCellsByDockedShelfs = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(count) {
1046
1299
  var grids, i, grid, gridCount, toDisableCells, useCount, j, _j, cell, _j2;
1047
- return _regeneratorRuntime.wrap(function _callee9$(_context9) {
1048
- while (1) switch (_context9.prev = _context9.next) {
1300
+ return _regeneratorRuntime.wrap(function _callee12$(_context12) {
1301
+ while (1) switch (_context12.prev = _context12.next) {
1049
1302
  case 0:
1050
1303
  grids = this.activeGrids;
1051
1304
  i = 0;
1052
1305
  case 2:
1053
1306
  if (!(i < grids.length)) {
1054
- _context9.next = 29;
1307
+ _context12.next = 29;
1055
1308
  break;
1056
1309
  }
1057
1310
  grid = grids[i];
@@ -1064,51 +1317,51 @@ var ShelfPlanner = /*#__PURE__*/function () {
1064
1317
  _j = 0;
1065
1318
  case 9:
1066
1319
  if (!(_j < toDisableCells.length)) {
1067
- _context9.next = 18;
1320
+ _context12.next = 18;
1068
1321
  break;
1069
1322
  }
1070
1323
  cell = grid.Cells[toDisableCells[_j]];
1071
1324
  if (!(cell.InUse == toDisableCells[_j])) {
1072
- _context9.next = 14;
1325
+ _context12.next = 14;
1073
1326
  break;
1074
1327
  }
1075
- _context9.next = 14;
1328
+ _context12.next = 14;
1076
1329
  return setHandlerInstance.deleteAccessorieOnShelfPlanner(this.article.set, grid.ShelfIndex, cell.InUse, grid.basketId);
1077
1330
  case 14:
1078
1331
  cell.IsDisabled = true;
1079
1332
  case 15:
1080
1333
  _j++;
1081
- _context9.next = 9;
1334
+ _context12.next = 9;
1082
1335
  break;
1083
1336
  case 18:
1084
1337
  _j2 = 0;
1085
1338
  case 19:
1086
1339
  if (!(_j2 < grid.Cells.length)) {
1087
- _context9.next = 26;
1340
+ _context12.next = 26;
1088
1341
  break;
1089
1342
  }
1090
1343
  if (!toDisableCells.includes(_j2)) {
1091
- _context9.next = 22;
1344
+ _context12.next = 22;
1092
1345
  break;
1093
1346
  }
1094
- return _context9.abrupt("continue", 23);
1347
+ return _context12.abrupt("continue", 23);
1095
1348
  case 22:
1096
1349
  grid.Cells[_j2].IsDisabled = false;
1097
1350
  case 23:
1098
1351
  _j2++;
1099
- _context9.next = 19;
1352
+ _context12.next = 19;
1100
1353
  break;
1101
1354
  case 26:
1102
1355
  i++;
1103
- _context9.next = 2;
1356
+ _context12.next = 2;
1104
1357
  break;
1105
1358
  case 29:
1106
1359
  case "end":
1107
- return _context9.stop();
1360
+ return _context12.stop();
1108
1361
  }
1109
- }, _callee9, this);
1362
+ }, _callee12, this);
1110
1363
  }));
1111
- function disableCellsByDockedShelfs(_x15) {
1364
+ function disableCellsByDockedShelfs(_x19) {
1112
1365
  return _disableCellsByDockedShelfs.apply(this, arguments);
1113
1366
  }
1114
1367
  return disableCellsByDockedShelfs;
@@ -1149,8 +1402,8 @@ var ShelfPlanner = /*#__PURE__*/function () {
1149
1402
  }, {
1150
1403
  key: "getCellIndexOfBasketId",
1151
1404
  value: function getCellIndexOfBasketId(gridIndex, basketId) {
1152
- var _this$getGridByIndex;
1153
- return (_this$getGridByIndex = this.getGridByIndex(gridIndex)) === null || _this$getGridByIndex === void 0 ? void 0 : _this$getGridByIndex.getIndexOfBasketId(basketId);
1405
+ var _this$getGridByIndex2;
1406
+ return (_this$getGridByIndex2 = this.getGridByIndex(gridIndex)) === null || _this$getGridByIndex2 === void 0 ? void 0 : _this$getGridByIndex2.getIndexOfBasketId(basketId);
1154
1407
  }
1155
1408
  }, {
1156
1409
  key: "allGrids",