import { defineComponent as c, computed as u, createElementBlock as s, openBlock as p, toDisplayString as i } from "vue";
import { useI18n as m } from "vue-i18n";
const l = 5, _ = /* @__PURE__ */ c({
  __name: "DatahubDataTypeTreeNodeValueRenderer",
  props: {
    row: {},
    rowIndex: {},
    cell: {},
    cellValue: {},
    dataTypeInstance: {},
    modelValue: {}
  },
  setup(a) {
    const e = a, { t: r } = m(), o = u(() => {
      if (!Array.isArray(e.cellValue))
        return "";
      const t = e.cellValue.slice(0, l).map((n) => n?.title ?? "").join(" | ");
      return e.cellValue.length > l ? r("datahub-plugin.tree-node-value.renderNOtherValues", {
        items: t,
        count: e.cellValue.length - l
      }) : t;
    });
    return (t, n) => (p(), s("span", null, i(o.value), 1));
  }
});
export {
  _ as default
};
