import { defineComponent as p, mergeModels as b, useModel as g, createElementBlock as f, openBlock as y, Fragment as V, createVNode as o, unref as a, withCtx as r } from "vue";
import { useI18n as h } from "vue-i18n";
import { a as m, b as d, c as _ } from "./start-BYfL32Oe.mjs";
import "pinia";
import "vue-router";
import "./header-Droxy2Kd.mjs";
import "./moment-h96o7c8I.mjs";
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, ...n }) => ({
        max: Number(t),
        min: Number(l),
        ...n
      })
    }), { t: i } = h();
    return (t, l) => (y(), f(V, null, [
      o(a(m), null, {
        default: r(() => [
          o(a(d), {
            modelValue: e.value.min,
            "onUpdate:modelValue": l[0] || (l[0] = (n) => e.value.min = n),
            modelModifiers: { number: !0 },
            label: a(i)("datahub-plugin.integerValue.minLength"),
            type: "number",
            readonly: t.readonly,
            "persistent-placeholder": ""
          }, null, 8, ["modelValue", "label", "readonly"])
        ]),
        _: 1
      }),
      o(a(m), null, {
        default: r(() => [
          o(a(d), {
            modelValue: e.value.max,
            "onUpdate:modelValue": l[1] || (l[1] = (n) => e.value.max = n),
            modelModifiers: { number: !0 },
            label: a(i)("datahub-plugin.integerValue.maxLength"),
            type: "number",
            readonly: t.readonly,
            "persistent-placeholder": ""
          }, null, 8, ["modelValue", "label", "readonly"])
        ]),
        _: 1
      }),
      o(a(m), null, {
        default: r(() => [
          o(a(_), {
            modelValue: e.value.readOnly,
            "onUpdate:modelValue": l[2] || (l[2] = (n) => e.value.readOnly = n),
            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 length" } },
            maxLength: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Max length" } }
          }
        }
      }
    }
  });
}
typeof s == "function" && s(c);
export {
  c as default
};
