const getLineSpacingBeforeSelection = (content, _services, _editor) => {
  if (!Array.isArray(content) || content.length === 0) {
    return void 0;
  }
  const node = content.find((node2) => {
    if (!node2?.attrs) {
      return;
    }
    const { style, styleDefaults } = node2.attrs;
    return style?.paddingTop || styleDefaults?.paddingTop;
  });
  return node?.attrs?.style?.paddingTop ?? node?.attrs?.styleDefaults?.paddingTop;
};
export {
  getLineSpacingBeforeSelection
};
//# sourceMappingURL=get-line-spacing-before-selection.js.map
