import { defineComponent as o, computed as u, toDisplayString as s } from "vue";
const i = /* @__PURE__ */ o({
  __name: "DatahubDataTypeSalesUnitValueRenderer",
  props: {
    row: {},
    rowIndex: {},
    cell: {},
    cellValue: {},
    dataTypeInstance: {},
    modelValue: {}
  },
  setup(n) {
    const t = n, a = u(() => {
      if (!t.cellValue)
        return "";
      const e = (t.cell.properties.units ?? []).find(({ id: r }) => r === t.cellValue.unitId);
      return e ? `${e.name} (${e.symbol})` : "";
    });
    return (l, e) => s(a.value);
  }
});
export {
  i as default
};
