import { defineComponent as p, mergeModels as b, useModel as g, createElementBlock as f, openBlock as y, Fragment as V, createVNode as o, unref as n, withCtx as r } from "vue";
import { useI18n as h } from "vue-i18n";
import { c as m, d as i, e as _ } from "./start-CE9SawgU.js";
import "pinia";
import "./header-Bn1EKnBE.js";
const c = /* @__PURE__ */ p({
  __name: "DatahubDataTypeIntegerValueConfiguration",
  props: /* @__PURE__ */ b({
    attribute: {},
    dataTypeInstance: {},
    remoteScopes: {},
    remoteLanguages: {},
    remoteAttributes: {},
    readonly: { type: Boolean }
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(u) {
    const e = g(u, "modelValue", {
      set: ({ max: t, min: l, ...a }) => ({
        max: Number(t),
        min: Number(l),
        ...a
      })
    }), { t: d } = h();
    return (t, l) => (y(), f(V, null, [
      o(n(m), null, {
        default: r(() => [
          o(n(i), {
            modelValue: e.value.min,
            "onUpdate:modelValue": l[0] || (l[0] = (a) => e.value.min = a),
            modelModifiers: { number: !0 },
            label: n(d)("datahub-plugin.integerValue.minLength"),
            type: "number",
            readonly: t.readonly,
            "persistent-placeholder": ""
          }, null, 8, ["modelValue", "label", "readonly"])
        ]),
        _: 1
      }),
      o(n(m), null, {
        default: r(() => [
          o(n(i), {
            modelValue: e.value.max,
            "onUpdate:modelValue": l[1] || (l[1] = (a) => e.value.max = a),
            modelModifiers: { number: !0 },
            label: n(d)("datahub-plugin.integerValue.maxLength"),
            type: "number",
            readonly: t.readonly,
            "persistent-placeholder": ""
          }, null, 8, ["modelValue", "label", "readonly"])
        ]),
        _: 1
      }),
      o(n(m), null, {
        default: r(() => [
          o(n(_), {
            modelValue: e.value.readOnly,
            "onUpdate:modelValue": l[2] || (l[2] = (a) => e.value.readOnly = a),
            label: t.$t("datahub-ui.dh-table.readOnly"),
            readonly: t.readonly
          }, null, 8, ["modelValue", "label", "readonly"])
        ]),
        _: 1
      })
    ], 64));
  }
});
function s(u) {
  const e = u;
  e.__i18n = e.__i18n || [], e.__i18n.push({
    locale: "",
    resource: {
      "en-US": {
        "datahub-plugin": {
          integerValue: {
            minLength: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Min. length" } },
            maxLength: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Max. length" } }
          }
        }
      },
      "de-DE": {
        "datahub-plugin": {
          integerValue: {
            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" } }
          }
        }
      }
    }
  });
}
typeof s == "function" && s(c);
export {
  c as default
};
