"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getBreakoutResizableNodeTypes = void 0;
var getBreakoutResizableNodeTypes = exports.getBreakoutResizableNodeTypes = function getBreakoutResizableNodeTypes(schema) {
  var isRuleAndPanelResizingEnabled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  var _schema$nodes = schema.nodes,
    expand = _schema$nodes.expand,
    codeBlock = _schema$nodes.codeBlock,
    layoutSection = _schema$nodes.layoutSection,
    syncBlock = _schema$nodes.syncBlock,
    bodiedSyncBlock = _schema$nodes.bodiedSyncBlock,
    rule = _schema$nodes.rule,
    panel = _schema$nodes.panel,
    panel_c1 = _schema$nodes.panel_c1;
  var breakoutResizableNodeTypes = [expand, codeBlock, layoutSection, syncBlock, bodiedSyncBlock];
  if (isRuleAndPanelResizingEnabled) {
    breakoutResizableNodeTypes.push(rule, panel, panel_c1);
  }
  return new Set(breakoutResizableNodeTypes);
};