import { defineComponent as f, computed as n, createElementBlock as a, createCommentVNode as r, openBlock as i, createElementVNode as p, toDisplayString as l, unref as m } from "vue";
import { useI18n as _ } from "vue-i18n";
import { aw as h } from "./start-CE9SawgU.js";
import "pinia";
import "./header-Bn1EKnBE.js";
import { b as s } from "./file-value.json_vue_type_i18n_index_0_src_true_lang-CGpYp_qr.js";
const V = {
  key: 0,
  class: "d-flex align-center"
}, g = ["href"], v = {
  key: 0,
  class: "ml-2"
}, y = /* @__PURE__ */ f({
  __name: "DatahubDataTypeFileValueRenderer",
  props: {
    row: {},
    rowIndex: {},
    cell: {},
    cellValue: {},
    dataTypeInstance: {},
    modelValue: {}
  },
  setup(c) {
    const e = c, { t: u } = _(), t = n(() => e.cellValue?.files?.length ? h(
      `Actindo.Modules.Actindo.ECM.Download.download?id=${encodeURIComponent(e.cellValue.files[0].id)}`
    ) : null), o = n(() => e.cellValue?.files?.length - 1);
    return (d, b) => t.value ? (i(), a("div", V, [
      p("a", { href: t.value }, l(d.cellValue.files[0].fileName), 9, g),
      o.value ? (i(), a("span", v, " +" + l(o.value) + " " + l(m(u)("datahub-plugin.file-value.files")), 1)) : r("", !0)
    ])) : r("", !0);
  }
});
typeof s == "function" && s(y);
export {
  y as default
};
