import { defineComponent as p, computed as u, createElementBlock as d, createCommentVNode as T, openBlock as f, toDisplayString as _ } from "vue";
import { useI18n as D } from "vue-i18n";
import { h as F } from "./moment-h96o7c8I.mjs";
import { D as V, T as h } from "./constants-1J8fqgyx.mjs";
const g = { key: 0 }, A = /* @__PURE__ */ p({
  __name: "DatahubDataTypeDateTimeValueRenderer",
  props: {
    row: {},
    rowIndex: {},
    cell: {},
    cellValue: {},
    dataTypeInstance: {},
    modelValue: {}
  },
  setup(m) {
    const a = m, { t: s } = D();
    function l(r, e) {
      const t = V[r], o = h[e], n = t ? s(t) : "", i = o ? s(o) : "";
      return `${n} ${i}`;
    }
    const c = u(() => {
      var e, t, o, n;
      if (!a.cellValue)
        return "";
      const r = l(
        (t = (e = a.cell.properties) == null ? void 0 : e.configuration) == null ? void 0 : t.dateFormat,
        (n = (o = a.cell.properties) == null ? void 0 : o.configuration) == null ? void 0 : n.timeFormat
      );
      return F(a.cellValue).format(r);
    });
    return (r, e) => c.value ? (f(), d("span", g, _(c.value), 1)) : T("", !0);
  }
});
export {
  A as default
};
