import { defineComponent as b, mergeModels as f, useModel as _, onBeforeMount as A, createElementBlock as v, openBlock as r, createVNode as s, createBlock as V, createCommentVNode as x, unref as t } from "vue";
import { useI18n as y } from "vue-i18n";
import { storeToRefs as S } from "pinia";
import { c as E, b as I, h as L, l as T } from "./start-BYfL32Oe.mjs";
import "vue-router";
import "./header-Droxy2Kd.mjs";
import "./moment-h96o7c8I.mjs";
import { u as h } from "./dataTypes-nQ5Ht0CH.mjs";
const k = { class: "extension-config d-flex flex-wrap" }, m = /* @__PURE__ */ b({
  __name: "VariantToStringExtension",
  props: /* @__PURE__ */ f({
    attributeMap: {},
    destinationAttribute: {},
    sourceAttributes: {},
    etlAttributeSetMapId: {}
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(l) {
    const e = _(l, "modelValue"), { t: o } = y(), u = h(), { languages: c, isLanguagesLoading: g } = S(u);
    return A(u.fetchLanguages), (p, a) => {
      var i;
      return r(), v("div", k, [
        s(t(E), {
          modelValue: e.value.includeAttributeNames,
          "onUpdate:modelValue": a[0] || (a[0] = (n) => e.value.includeAttributeNames = n),
          label: t(o)("datahub-plugin.etl.variant-to-string.IncludeAttributeName")
        }, null, 8, ["modelValue", "label"]),
        s(t(I), {
          modelValue: e.value.excludedAttributeKeys,
          "onUpdate:modelValue": a[1] || (a[1] = (n) => e.value.excludedAttributeKeys = n),
          label: t(o)("datahub-plugin.etl.variant-to-string.ExcludedAttributeKeys"),
          "persistent-placeholder": ""
        }, null, 8, ["modelValue", "label"]),
        (i = p.destinationAttribute) != null && i.multilanguage ? x("", !0) : (r(), V(t(L), {
          key: 0,
          modelValue: e.value.sourceLanguageId,
          "onUpdate:modelValue": a[2] || (a[2] = (n) => e.value.sourceLanguageId = n),
          items: t(c),
          loading: t(g),
          label: t(o)("datahub-plugin.etl.variant-to-string.SourceTreeLanguage"),
          "item-title": "description",
          "item-value": "id",
          "persistent-placeholder": ""
        }, null, 8, ["modelValue", "items", "loading", "label"]))
      ]);
    };
  }
});
function d(l) {
  const e = l;
  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" } }
            }
          }
        }
      },
      "de-DE": {
        "datahub-plugin": {
          etl: {
            "variant-to-string": {
              IncludeAttributeName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Attributsnamen einfügen" } },
              ExcludedAttributeKeys: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Exkludiere Attributschlüssel" } },
              SourceTreeLanguage: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Relevante Sprache für Baumknoten-Titel" } }
            }
          }
        }
      }
    }
  });
}
typeof d == "function" && d(m);
const R = /* @__PURE__ */ T(m, [["__scopeId", "data-v-31adfc61"]]);
export {
  R as default
};
