import { defineComponent as b, mergeModels as g, useModel as v, computed as V, onBeforeMount as M, createElementBlock as T, openBlock as u, createVNode as r, createBlock as _, createCommentVNode as h, unref as e } from "vue";
import { useI18n as x } from "vue-i18n";
import { storeToRefs as y } from "pinia";
import { c as k, h as i, l as B } from "./start-BYfL32Oe.mjs";
import "vue-router";
import "./header-Droxy2Kd.mjs";
import "./moment-h96o7c8I.mjs";
import { u as I } from "./dataTypes-nQ5Ht0CH.mjs";
import { b as s } from "./number-to-tree.json_vue_type_i18n_index_0_src_true_lang-D7dGzgkq.mjs";
const E = { class: "extension-config d-flex flex-wrap" }, m = /* @__PURE__ */ b({
  __name: "TreeToTreeExtension",
  props: /* @__PURE__ */ g({
    attributeMap: {},
    destinationAttribute: {},
    sourceAttributes: {},
    etlAttributeSetMapId: {}
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(d) {
    const t = v(d, "modelValue"), { t: o } = x(), n = I(), { languages: p, isLanguagesLoading: c } = y(n), f = V(() => [
      {
        value: "key",
        title: o("datahub-plugin.etl.number-to-tree.Key")
      },
      {
        value: "title",
        title: o("datahub-plugin.etl.number-to-tree.Title")
      }
    ]);
    return M(n.fetchLanguages), (L, l) => (u(), T("div", E, [
      r(e(k), {
        modelValue: t.value.create,
        "onUpdate:modelValue": l[0] || (l[0] = (a) => t.value.create = a),
        label: e(o)("datahub-plugin.etl.number-to-tree.CreateNodeIfNotExisting")
      }, null, 8, ["modelValue", "label"]),
      r(e(i), {
        modelValue: t.value.matchMode,
        "onUpdate:modelValue": l[1] || (l[1] = (a) => t.value.matchMode = a),
        items: f.value,
        label: e(o)("datahub-plugin.etl.number-to-tree.MatchBy"),
        "persistent-placeholder": ""
      }, null, 8, ["modelValue", "items", "label"]),
      t.value.matchMode === "title" ? (u(), _(e(i), {
        key: 0,
        modelValue: t.value.language,
        "onUpdate:modelValue": l[2] || (l[2] = (a) => t.value.language = a),
        items: e(p),
        loading: e(c),
        label: e(o)("datahub-plugin.etl.number-to-tree.RelevantLocale"),
        "item-title": "description",
        "item-value": "key",
        "persistent-placeholder": ""
      }, null, 8, ["modelValue", "items", "loading", "label"])) : h("", !0)
    ]));
  }
});
typeof s == "function" && s(m);
const K = /* @__PURE__ */ B(m, [["__scopeId", "data-v-c0c22459"]]);
export {
  K as default
};
