import { defineComponent as r, mergeModels as d, useModel as m, createBlock as u, openBlock as p, unref as s } from "vue";
import { b as f } from "./start-BYfL32Oe.mjs";
import "vue-i18n";
import "pinia";
import "vue-router";
import "./header-Droxy2Kd.mjs";
import "./moment-h96o7c8I.mjs";
const k = /* @__PURE__ */ r({
  __name: "DatahubDataTypeStockValueEditor",
  props: /* @__PURE__ */ d({
    modelValue: {},
    readOnly: { type: Boolean },
    attribute: {},
    massEditing: { type: Boolean },
    label: {},
    fieldName: {},
    dataTypeInstance: {},
    loading: { type: Boolean }
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: /* @__PURE__ */ d(["validated", "update:model-value"], ["update:modelValue"]),
  setup(n) {
    const a = m(n, "modelValue");
    return (e, l) => {
      var o, t;
      return p(), u(s(f), {
        modelValue: a.value,
        "onUpdate:modelValue": l[0] || (l[0] = (i) => a.value = i),
        readonly: ((t = (o = e.attribute) == null ? void 0 : o.configuration) == null ? void 0 : t.readOnly) || e.readOnly,
        loading: e.loading,
        label: e.massEditing ? void 0 : e.label,
        "persistent-placeholder": ""
      }, null, 8, ["modelValue", "readonly", "loading", "label"]);
    };
  }
});
export {
  k as default
};
