import { defineComponent as b, mergeModels as f, useModel as y, createElementBlock as V, openBlock as h, Fragment as c, createVNode as o, unref as n, withCtx as r } from "vue";
import { useI18n as v } from "vue-i18n";
import { a as i, b as s, c as L } from "./start-BYfL32Oe.mjs";
import "pinia";
import "vue-router";
import "./header-Droxy2Kd.mjs";
import "./moment-h96o7c8I.mjs";
import { _ as M } from "./DatahubBadWordFilter-CBFumEik.mjs";
const U = /* @__PURE__ */ b({
  __name: "DatahubDataTypeStringValueConfiguration",
  props: /* @__PURE__ */ f({
    attribute: {},
    dataTypeInstance: {},
    remoteScopes: {},
    remoteLanguages: {},
    remoteAttributes: {},
    readonly: { type: Boolean }
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(d) {
    const e = y(d, "modelValue", {
      set: ({ max: l, min: a, ...u }) => ({
        max: Number(l),
        min: Number(a),
        ...u
      })
    }), { t: m } = v();
    return (l, a) => {
      var u, g;
      return h(), V(c, null, [
        o(n(i), null, {
          default: r(() => [
            o(n(s), {
              modelValue: e.value.min,
              "onUpdate:modelValue": a[0] || (a[0] = (t) => e.value.min = t),
              modelModifiers: { number: !0 },
              label: n(m)("datahub-plugin.stringValue.minLength"),
              type: "number",
              readonly: l.readonly,
              "persistent-placeholder": ""
            }, null, 8, ["modelValue", "label", "readonly"])
          ]),
          _: 1
        }),
        o(n(i), null, {
          default: r(() => [
            o(n(s), {
              modelValue: e.value.max,
              "onUpdate:modelValue": a[1] || (a[1] = (t) => e.value.max = t),
              modelModifiers: { number: !0 },
              label: n(m)("datahub-plugin.stringValue.maxLength"),
              type: "number",
              readonly: l.readonly,
              "persistent-placeholder": ""
            }, null, 8, ["modelValue", "label", "readonly"])
          ]),
          _: 1
        }),
        o(n(i), null, {
          default: r(() => [
            o(n(s), {
              modelValue: e.value.regex,
              "onUpdate:modelValue": a[2] || (a[2] = (t) => e.value.regex = t),
              label: n(m)("datahub-plugin.stringValue.regex"),
              readonly: l.readonly,
              "persistent-placeholder": ""
            }, null, 8, ["modelValue", "label", "readonly"])
          ]),
          _: 1
        }),
        o(n(i), null, {
          default: r(() => [
            o(n(L), {
              modelValue: e.value.readOnly,
              "onUpdate:modelValue": a[3] || (a[3] = (t) => e.value.readOnly = t),
              label: l.$t("datahub-ui.dh-table.readOnly"),
              readonly: l.readonly
            }, null, 8, ["modelValue", "label", "readonly"])
          ]),
          _: 1
        }),
        o(M, {
          modelValue: e.value.badwords,
          "onUpdate:modelValue": a[4] || (a[4] = (t) => e.value.badwords = t),
          scopable: ((u = l.attribute) == null ? void 0 : u.scopable) ?? l.dataTypeInstance.scopable,
          "remote-scopes": l.remoteScopes,
          "multi-language": ((g = l.attribute) == null ? void 0 : g.multilanguage) ?? l.dataTypeInstance.multilanguage,
          "remote-languages": l.remoteLanguages,
          readonly: l.readonly
        }, null, 8, ["modelValue", "scopable", "remote-scopes", "multi-language", "remote-languages", "readonly"])
      ], 64);
    };
  }
});
function p(d) {
  const e = d;
  e.__i18n = e.__i18n || [], e.__i18n.push({
    locale: "",
    resource: {
      "en-US": {
        "datahub-plugin": {
          stringValue: {
            configurationHeading: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Configuration" } },
            precision: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Precision" } },
            minLength: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Min length" } },
            maxLength: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Max length" } },
            regex: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Regex" } }
          }
        }
      },
      "de-DE": {
        "datahub-plugin": {
          stringValue: {
            configurationHeading: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Konfiguration" } },
            precision: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Präzision" } },
            minLength: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Min Länge" } },
            maxLength: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Max Länge" } },
            regex: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Regulärer Ausdruck" } }
          }
        }
      }
    }
  });
}
typeof p == "function" && p(U);
export {
  U as default
};
