import { defineComponent as c, mergeModels as h, useModel as f, watch as w, createBlock as x, createCommentVNode as E, openBlock as g, unref as e, withCtx as o, createVNode as l, createElementVNode as m, toDisplayString as d, createTextVNode as U } from "vue";
import { i as v, c as u, d as r } from "./start-CE9SawgU.js";
import { useI18n as V } from "vue-i18n";
import "pinia";
import "./header-Bn1EKnBE.js";
const _ = /* @__PURE__ */ c({
  __name: "HttpCallExtension",
  props: /* @__PURE__ */ h({
    attributeMap: {},
    destinationAttribute: {},
    sourceAttributes: {},
    etlAttributeSetMapId: {}
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(s) {
    const t = f(s, "modelValue"), { t: a } = V();
    return w(
      t,
      (p) => {
        p || (t.value = {});
      },
      { immediate: !0 }
    ), (p, n) => t.value ? (g(), x(e(v), {
      key: 0,
      dense: ""
    }, {
      default: o(() => [
        l(e(u), null, {
          default: o(() => [
            l(e(r), {
              modelValue: t.value.url,
              "onUpdate:modelValue": n[0] || (n[0] = (i) => t.value.url = i),
              label: e(a)("datahub-plugin.etl-http-call.URL"),
              "max-width": "567",
              "persistent-placeholder": ""
            }, null, 8, ["modelValue", "label"]),
            m("p", null, d(e(a)("datahub-plugin.etl-http-call.HttpCallExpl")), 1),
            m("p", null, d(e(a)("datahub-plugin.etl-http-call.HttpCallExpl2")), 1)
          ]),
          _: 1
        }),
        l(e(u), { md: "6" }, {
          default: o(() => [
            l(e(r), {
              modelValue: t.value.username,
              "onUpdate:modelValue": n[1] || (n[1] = (i) => t.value.username = i),
              label: e(a)("datahub-plugin.etl-http-call.Username"),
              "max-width": "567",
              "persistent-placeholder": ""
            }, null, 8, ["modelValue", "label"])
          ]),
          _: 1
        }),
        l(e(u), { md: "6" }, {
          default: o(() => [
            l(e(r), {
              modelValue: t.value.password,
              "onUpdate:modelValue": n[2] || (n[2] = (i) => t.value.password = i),
              label: e(a)("datahub-plugin.etl-http-call.Password"),
              "max-width": "567",
              "persistent-placeholder": ""
            }, null, 8, ["modelValue", "label"])
          ]),
          _: 1
        }),
        l(e(u), null, {
          default: o(() => [
            U(d(e(a)("datahub-plugin.etl-http-call.AuthExpl")), 1)
          ]),
          _: 1
        })
      ]),
      _: 1
    })) : E("", !0);
  }
});
function b(s) {
  const t = s;
  t.__i18n = t.__i18n || [], t.__i18n.push({
    locale: "",
    resource: {
      "en-US": {
        "datahub-plugin": {
          "etl-http-call": {
            URL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "URL" } },
            HttpCallExpl: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "The data will be sent to the indicated endpoint using POST with JSON-Payload. The value of port p0 will be assigned to object key p0 and so on" } },
            HttpCallExpl2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "You can use ###Core1-Environment### as a placeholder. For example, a Flux endpoint might look like: https://###Core1-Environment###/Actindo.Modules.Actindo.ActindoFlux.IN/[YOUR FLUX NODE]" } },
            Username: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Username" } },
            Password: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Password" } },
            AuthExpl: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Fill these fields if basic authentication is required." } }
          }
        }
      },
      "de-DE": {
        "datahub-plugin": {
          "etl-http-call": {
            URL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "URL" } },
            HttpCallExpl: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Die Daten werden an den angegebenen Endpunkt gesendet, indem POST mit JSON-Payload verwendet wird. Der Wert von Port p0 wird dem Objektschlüssel p0 zugewiesen usw." } },
            HttpCallExpl2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sie können ###Core1-Environment### als Platzhalter verwenden. Ein Flux-Endpunkt könnte zum Beispiel so aussehen: https://###Core1-Environment###/Actindo.Modules.Actindo.ActindoFlux.IN/[YOUR FLUX NODE]" } },
            Username: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Benutzername" } },
            Password: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Passwort" } },
            AuthExpl: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Füllen Sie diese Felder aus, wenn eine Basisauthentifizierung benötigt wird." } }
          }
        }
      }
    }
  });
}
typeof b == "function" && b(_);
export {
  _ as default
};
