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