import { defineComponent as m, mergeModels as d, useModel as s, createElementBlock as c, openBlock as g, createVNode as r, unref as l } from "vue";
import { useI18n as b } from "vue-i18n";
import { d as o, o as f } from "./start-CE9SawgU.js";
import "pinia";
import "./header-Bn1EKnBE.js";
const _ = { class: "extension-config d-flex flex-wrap" }, p = /* @__PURE__ */ m({
  __name: "PregReplaceExtension",
  props: /* @__PURE__ */ d({
    attributeMap: {},
    destinationAttribute: {},
    sourceAttributes: {},
    etlAttributeSetMapId: {}
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(n) {
    const e = s(n, "modelValue"), { t: u } = b();
    return (x, t) => (g(), c("div", _, [
      r(l(o), {
        modelValue: e.value.pattern,
        "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.pattern = a),
        label: l(u)("datahub-plugin.etl.preg-replace.pattern"),
        "max-width": "567"
      }, null, 8, ["modelValue", "label"]),
      r(l(o), {
        modelValue: e.value.replacement,
        "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.replacement = a),
        label: l(u)("datahub-plugin.etl.preg-replace.replacement"),
        "max-width": "567"
      }, null, 8, ["modelValue", "label"]),
      r(l(o), {
        modelValue: e.value.limitOutputString,
        "onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.limitOutputString = a),
        label: l(u)("datahub-plugin.etl.preg-replace.limitOutputString"),
        "max-width": "567",
        type: "number"
      }, null, 8, ["modelValue", "label"])
    ]));
  }
});
function i(n) {
  const e = n;
  e.__i18n = e.__i18n || [], e.__i18n.push({
    locale: "",
    resource: {
      "en-US": {
        "datahub-plugin": {
          etl: {
            "preg-replace": {
              pattern: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pattern (Regex)" } },
              replacement: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Replacement" } },
              limitOutputString: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Max. length of output string" } }
            }
          }
        }
      },
      "de-DE": {
        "datahub-plugin": {
          etl: {
            "preg-replace": {
              pattern: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Muster (Regulärer Ausdruck)" } },
              replacement: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ersetzung" } },
              limitOutputString: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Max. Länge der Ausgabe-Zeichenkette" } }
            }
          }
        }
      }
    }
  });
}
typeof i == "function" && i(p);
const k = /* @__PURE__ */ f(p, [["__scopeId", "data-v-266cbea8"]]);
export {
  k as default
};
