import { defineComponent as m, ref as d, computed as u, createElementBlock as g, openBlock as p, createVNode as f, createBlock as b, unref as i } from "vue";
import { useI18n as C } from "vue-i18n";
import { j as _ } from "./start-BYfL32Oe.mjs";
import "pinia";
import "vue-router";
import "./header-Droxy2Kd.mjs";
import "./moment-h96o7c8I.mjs";
import "./SettingInput-BF07m4Qz.mjs";
import "./SettingGroupedInputs-CIofWXlX.mjs";
import "./SettingMultiBuilder-AYONCxGQ.mjs";
import "./SettingMultiValue-7YwrHyZR.mjs";
import "./SettingsElement-C1Y9C_Fw.mjs";
import v from "./SettingSettings-BzUhwuZb.mjs";
const A = /* @__PURE__ */ m({
  __name: "GDMSettingConnectionSettings",
  props: {
    baseApi: {},
    connectionTypeClassName: {},
    namespace: { default: "Actindo\\Modules\\Actindo\\GlobalDriverManagement" }
  },
  setup(t) {
    const n = t, { t: l } = C(), o = d(), a = u(
      () => {
        var e;
        return `${n.connectionTypeClassName}-${((e = o.value) == null ? void 0 : e.id) || ""}`;
      }
    );
    return (e, s) => (p(), g("div", null, [
      f(i(_), {
        data: `${e.baseApi}listConnections`,
        label: i(l)("gdm-plugin.gdm-connection-setting.selectConnection"),
        "item-title": "name",
        "item-value": "id",
        class: "pb-3",
        "menu-width": "800px",
        "prepend-text": "",
        search: "",
        "page-size": "",
        onChange: s[0] || (s[0] = (r) => o.value = r)
      }, null, 8, ["data", "label"]),
      (p(), b(i(v), {
        key: a.value,
        namespace: e.namespace,
        "hierarchy-key": "gdm_logger_connection",
        identifier: a.value,
        "save-endpoint": `${e.baseApi}setDataForConnection`,
        "fields-endpoint": `${e.baseApi}getFields`,
        "get-data-endpoint": `${e.baseApi}getAllDataForHierarchy`,
        autoload: ""
      }, null, 8, ["namespace", "identifier", "save-endpoint", "fields-endpoint", "get-data-endpoint"]))
    ]));
  }
});
function c(t) {
  const n = t;
  n.__i18n = n.__i18n || [], n.__i18n.push({
    locale: "",
    resource: {
      "en-US": {
        "gdm-plugin": {
          "gdm-connection-setting": {
            selectConnection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Select Connection" } }
          }
        }
      },
      "de-DE": {
        "gdm-plugin": {
          "gdm-connection-setting": {
            selectConnection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Verbindung auswählen" } }
          }
        }
      }
    }
  });
}
typeof c == "function" && c(A);
export {
  A as default
};
