import { defineComponent as g, mergeModels as p, useModel as f, onBeforeMount as A, createElementBlock as _, openBlock as o, createVNode as r, createBlock as x, createCommentVNode as V, unref as t } from "vue";
import { useI18n as v } from "vue-i18n";
import { storeToRefs as h } from "pinia";
import { e as y, d as S, a as I, o as L } from "./start-CE9SawgU.js";
import "./header-Bn1EKnBE.js";
import { u as E } from "./dataTypes-DocW2t0g.js";
const T = { class: "extension-config d-flex flex-wrap" }, d = /* @__PURE__ */ g({
  __name: "VariantToStringExtension",
  props: /* @__PURE__ */ p({
    attributeMap: {},
    destinationAttribute: {},
    sourceAttributes: {},
    etlAttributeSetMapId: {}
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(n) {
    const e = f(n, "modelValue"), { t: i } = v(), l = E(), { languages: m, isLanguagesLoading: c } = h(l);
    return A(l.ensureLanguages), (b, a) => (o(), _("div", T, [
      r(t(y), {
        modelValue: e.value.includeAttributeNames,
        "onUpdate:modelValue": a[0] || (a[0] = (u) => e.value.includeAttributeNames = u),
        label: t(i)("datahub-plugin.etl.variant-to-string.IncludeAttributeName"),
        "max-width": "567"
      }, null, 8, ["modelValue", "label"]),
      r(t(S), {
        modelValue: e.value.excludedAttributeKeys,
        "onUpdate:modelValue": a[1] || (a[1] = (u) => e.value.excludedAttributeKeys = u),
        label: t(i)("datahub-plugin.etl.variant-to-string.ExcludedAttributeKeys"),
        "max-width": "567",
        "persistent-placeholder": ""
      }, null, 8, ["modelValue", "label"]),
      b.destinationAttribute?.multilanguage ? V("", !0) : (o(), x(t(I), {
        key: 0,
        modelValue: e.value.sourceLanguageId,
        "onUpdate:modelValue": a[2] || (a[2] = (u) => e.value.sourceLanguageId = u),
        items: t(m),
        loading: t(c),
        label: t(i)("datahub-plugin.etl.variant-to-string.SourceTreeLanguage"),
        "item-title": "description",
        "item-value": "id",
        "max-width": "567",
        "persistent-placeholder": ""
      }, null, 8, ["modelValue", "items", "loading", "label"]))
    ]));
  }
});
function s(n) {
  const e = n;
  e.__i18n = e.__i18n || [], e.__i18n.push({
    locale: "",
    resource: {
      "en-US": {
        "datahub-plugin": {
          etl: {
            "variant-to-string": {
              IncludeAttributeName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Include attribute name" } },
              ExcludedAttributeKeys: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Excluded attribute keys" } },
              SourceTreeLanguage: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Language for values from a tree node attribute" } }
            }
          }
        }
      },
      "de-DE": {
        "datahub-plugin": {
          etl: {
            "variant-to-string": {
              IncludeAttributeName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Attributname einbeziehen" } },
              ExcludedAttributeKeys: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ausgeschlossene Attributschlüssel" } },
              SourceTreeLanguage: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sprache für Werte aus einem Baumstruktur-Attribut" } }
            }
          }
        }
      }
    }
  });
}
typeof s == "function" && s(d);
const U = /* @__PURE__ */ L(d, [["__scopeId", "data-v-49fd80b7"]]);
export {
  U as default
};
