import { defineComponent as p, mergeModels as c, useModel as d, onBeforeMount as m, createElementBlock as g, openBlock as b, createVNode as f, createElementVNode as _, unref as t, toDisplayString as v } from "vue";
import { useI18n as h } from "vue-i18n";
import { storeToRefs as y } from "pinia";
import { a as V } from "./start-CE9SawgU.js";
import "./header-Bn1EKnBE.js";
import { u as x } from "./dataTypes-DocW2t0g.js";
const E = /* @__PURE__ */ p({
  __name: "NullCoalescenceExtension",
  props: /* @__PURE__ */ c({
    attributeMap: {},
    destinationAttribute: {},
    sourceAttributes: {},
    etlAttributeSetMapId: {}
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(l) {
    const e = d(l, "modelValue"), { t: a } = h(), n = x(), { languages: u, isLanguagesLoading: r } = y(n);
    return m(n.ensureLanguages), (L, o) => (b(), g("div", null, [
      f(t(V), {
        modelValue: e.value.languageKey,
        "onUpdate:modelValue": o[0] || (o[0] = (s) => e.value.languageKey = s),
        items: t(u),
        loading: t(r),
        label: t(a)("datahub-plugin.etl.null-coalescence.label"),
        "item-title": "description",
        "item-value": "key",
        "max-width": "567",
        "persistent-placeholder": ""
      }, null, 8, ["modelValue", "items", "loading", "label"]),
      _("p", null, v(t(a)("datahub-plugin.etl.null-coalescence.RelevantLangExpl")), 1)
    ]));
  }
});
function i(l) {
  const e = l;
  e.__i18n = e.__i18n || [], e.__i18n.push({
    locale: "",
    resource: {
      "en-US": {
        "datahub-plugin": {
          etl: {
            "null-coalescence": {
              label: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Relevant Language" } },
              RelevantLangExpl: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Option only relevant if a tree node source attribute is mapped to a single language attribute" } }
            }
          }
        }
      },
      "de-DE": {
        "datahub-plugin": {
          etl: {
            "null-coalescence": {
              label: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Relevante Sprache" } },
              RelevantLangExpl: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Option nur relevant, falls ein Baumstruktur-Quellattribut einem einsprachigen Attribut zugeordnet wird" } }
            }
          }
        }
      }
    }
  });
}
typeof i == "function" && i(E);
export {
  E as default
};
