import { defineComponent as _, createElementBlock as t, openBlock as e, Fragment as l, createTextVNode as V, toDisplayString as r, unref as d, createElementVNode as m, createBlock as g, createCommentVNode as k, withCtx as f, renderList as h, normalizeProps as y, guardReactiveProps as C } from "vue";
import { useI18n as R } from "vue-i18n";
import { K as D, l as M } from "./start-BYfL32Oe.mjs";
import "pinia";
import "vue-router";
import "./header-Droxy2Kd.mjs";
import "./moment-h96o7c8I.mjs";
const T = {
  key: 2,
  class: "d-flex align-center"
}, $ = { class: "datahub-label mr-3" }, b = /* @__PURE__ */ _({
  __name: "DatahubDataTypeVariantValueRenderer",
  props: {
    row: {},
    rowIndex: {},
    cell: {},
    cellValue: {},
    dataTypeInstance: {},
    modelValue: {}
  },
  setup(s) {
    const { t: n } = R();
    return (a, w) => {
      var c;
      return a.cellValue ? a.cellValue.isMasterEntity ? (e(), t(l, { key: 1 }, [
        V(r(d(n)("datahub-plugin.variant-value.VariantValueMasterRender", {
          numberOfChildren: a.cellValue.numberOfChildren
        })), 1)
      ], 64)) : (e(), t("div", T, [
        m("div", $, r(d(n)("datahub-plugin.variant-value.VariantValueChildRender")), 1),
        (c = a.cellValue.definingValues) != null && c.length ? (e(), g(d(D), { key: 0 }, {
          activator: f(({ props: i }) => [
            m("div", y(C(i)), [
              (e(!0), t(l, null, h(a.cellValue.definingValues.slice(0, 2), ({ attributeName: u, value: o }, p) => (e(), t("div", { key: p }, r(`${u}: ${o}${p === 1 && a.cellValue.definingValues.length > 2 ? "..." : ""}`), 1))), 128))
            ], 16)
          ]),
          default: f(() => [
            (e(!0), t(l, null, h(a.cellValue.definingValues, ({ attributeName: i, value: u }, o) => (e(), t("div", { key: o }, r(`${i}: ${u}`), 1))), 128))
          ]),
          _: 1
        })) : k("", !0)
      ])) : (e(), t(l, { key: 0 }, [
        V(r(""))
      ], 64));
    };
  }
});
function v(s) {
  const n = s;
  n.__i18n = n.__i18n || [], n.__i18n.push({
    locale: "",
    resource: {
      "en-US": {
        "datahub-plugin": {
          "variant-value": {
            VariantValueMasterRender: { t: 0, b: { t: 2, i: [{ t: 3, v: "Master product with " }, { t: 4, k: "numberOfChildren" }, { t: 3, v: " Variants" }] } },
            VariantValueChildRender: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Variant" } }
          }
        }
      },
      "de-DE": {
        "datahub-plugin": {
          "variant-value": {
            VariantValueMasterRender: { t: 0, b: { t: 2, i: [{ t: 3, v: "Hauptprodukt mit " }, { t: 4, k: "numberOfChildren" }, { t: 3, v: " Varianten" }] } },
            VariantValueChildRender: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Variante" } }
          }
        }
      }
    }
  });
}
typeof v == "function" && v(b);
const z = /* @__PURE__ */ M(b, [["__scopeId", "data-v-1ac71110"]]);
export {
  z as default
};
