import { computed as n } from "vue";
function a({ objects: r }) {
  return {
    groupedObjects: n(() => !r.value || r.value.length === 0 ? [] : r.value.map((s, e, t) => {
      const o = e > 0 && t[e - 1].position === s.position && t[e - 1].header === s.header, u = e > 0 && !["message.system", "message.typing"].includes(t[e - 1].type);
      return {
        ...s,
        isFirstInSeries: !o || !u
      };
    }))
  };
}
export {
  a as useFeedGrouping
};
