/**
 * Взаимодействие с Drawer оконами.
 */
var getDrawers = function getDrawers(items) {
  return items.filter(function (item) {
    var _item$info;
    return item === null || item === void 0 || (_item$info = item.info) === null || _item$info === void 0 ? void 0 : _item$info.isDrawer;
  });
};
var hasDrawers = function hasDrawers(items) {
  return getDrawers(items).length > 0;
};
var getIdLastDrawer = function getIdLastDrawer(items) {
  var drawers = getDrawers(items);
  if (!drawers.length) {
    return;
  }
  return drawers[drawers.length - 1].id;
};

export { getIdLastDrawer, hasDrawers };
