import { defineComponent as l, createBlock as m, openBlock as r, unref as i, normalizeClass as n, withCtx as p, createElementVNode as d, createElementBlock as o, createCommentVNode as a, renderSlot as s, createTextVNode as c, toDisplayString as t } from "vue";
import { a as _ } from "./start-BYfL32Oe.mjs";
import "vue-i18n";
import "pinia";
import "vue-router";
import "./header-Droxy2Kd.mjs";
import "./moment-h96o7c8I.mjs";
const u = { class: "complex-value__container" }, h = {
  key: 0,
  class: "complex-value__header mb-2"
}, f = {
  key: 0,
  class: "complex-value__error text-error mt-2"
}, D = /* @__PURE__ */ l({
  __name: "DatahubDataComplexValue",
  props: {
    header: {},
    errorMessage: {}
  },
  setup(v) {
    return (e, g) => (r(), m(i(_), {
      class: n(["complex-value", { invalid: e.errorMessage }])
    }, {
      default: p(() => [
        d("div", u, [
          e.header || e.$slots.header ? (r(), o("div", h, [
            c(t(e.header) + " ", 1),
            s(e.$slots, "header")
          ])) : a("", !0),
          s(e.$slots, "default")
        ]),
        e.errorMessage ? (r(), o("div", f, t(e.errorMessage), 1)) : a("", !0)
      ]),
      _: 3
    }, 8, ["class"]));
  }
});
export {
  D as _
};
