import { defineComponent as c, mergeModels as f, useModel as h, watch as w, createBlock as g, createCommentVNode as x, openBlock as E, unref as e, withCtx as o, createVNode as l, createElementVNode as m, toDisplayString as d, createTextVNode as U } from "vue";
import { g as V, a as u, b as r } from "./start-BYfL32Oe.mjs";
import { useI18n as _ } from "vue-i18n";
import "pinia";
import "vue-router";
import "./header-Droxy2Kd.mjs";
import "./moment-h96o7c8I.mjs";
const v = /* @__PURE__ */ c({
  __name: "HttpCallExtension",
  props: /* @__PURE__ */ f({
    attributeMap: {},
    destinationAttribute: {},
    sourceAttributes: {},
    etlAttributeSetMapId: {}
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(s) {
    const t = h(s, "modelValue"), { t: a } = _();
    return w(
      t,
      (p) => {
        p || (t.value = {});
      },
      { immediate: !0 }
    ), (p, n) => t.value ? (E(), g(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"),
              "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",
          cols: "12"
        }, {
          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"),
              "persistent-placeholder": ""
            }, null, 8, ["modelValue", "label"])
          ]),
          _: 1
        }),
        l(e(u), {
          md: "6",
          cols: "12"
        }, {
          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"),
              "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
    })) : x("", !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: "Data will be sent to this endpoint using POST with JSON-Payload. Value of port p0 will be in object key p0 and so on" } },
            HttpCallExpl2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "You can use ###Core1-Environment### as a placeholder. To make a flux endpoint example value for this field would be 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: "If basic authentication is required fill these fields')]]" } }
          }
        }
      },
      "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: "Daten werden an diesen Endpunkt gesendet, indem POST mit JSON-Payload verwendet wird. Der Wert von Port p0 wird im Objektschlüssel p0 sein und so weiter" } },
            HttpCallExpl2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sie können ###Core1-Umgebung### als Platzhalter verwenden. Um ein Flux-Endpunktbeispiel zu erstellen, wäre der Wert für dieses Feld 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: "Wenn eine Basisauthentifizierung genötigt wird, füllen Sie diese Felder aus')]]" } }
          }
        }
      }
    }
  });
}
typeof b == "function" && b(v);
export {
  v as default
};
