function d(n) {
  if (!n.isActive("video"))
    return null;
  const { state: l } = n, { from: s, to: r } = l.selection;
  let e = null;
  if (l.doc.nodesBetween(s, r, (o) => {
    if (o.type.name === "video")
      return e = o, !1;
  }), !e)
    return null;
  const t = e.attrs, i = t.src, c = t.alignment, u = t.width ?? null, a = t.height ?? null;
  return i ? {
    src: i,
    alignment: c ?? "left",
    width: u,
    height: a
  } : null;
}
export {
  d as default
};
//# sourceMappingURL=getSelectedVideo.js.map
