import { defineComponent as m, mergeModels as p, useModel as c, createElementBlock as f, openBlock as b, Fragment as y, createVNode as t, unref as a, withCtx as u } from "vue";
import { useI18n as V } from "vue-i18n";
import { a as i, b as _, c as g } from "./start-BYfL32Oe.mjs";
import "pinia";
import "vue-router";
import "./header-Droxy2Kd.mjs";
import "./moment-h96o7c8I.mjs";
const k = /* @__PURE__ */ m({
  __name: "DatahubDataTypeStockValueConfiguration",
  props: /* @__PURE__ */ p({
    attribute: {},
    dataTypeInstance: {},
    remoteScopes: {},
    remoteLanguages: {},
    remoteAttributes: {},
    readonly: { type: Boolean }
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(n) {
    const e = c(n, "modelValue", {
      set: ({ precision: l, ...o }) => ({
        precision: Number(l),
        ...o
      })
    }), { t: s } = V();
    return (l, o) => (b(), f(y, null, [
      t(a(i), null, {
        default: u(() => [
          t(a(_), {
            modelValue: e.value.precision,
            "onUpdate:modelValue": o[0] || (o[0] = (r) => e.value.precision = r),
            modelModifiers: { number: !0 },
            label: a(s)("datahub-plugin.stockValue.precision"),
            type: "number",
            readonly: l.readonly,
            "persistent-placeholder": ""
          }, null, 8, ["modelValue", "label", "readonly"])
        ]),
        _: 1
      }),
      t(a(i), null, {
        default: u(() => [
          t(a(g), {
            modelValue: e.value.readOnly,
            "onUpdate:modelValue": o[1] || (o[1] = (r) => e.value.readOnly = r),
            label: l.$t("datahub-ui.dh-table.readOnly"),
            readonly: l.readonly
          }, null, 8, ["modelValue", "label", "readonly"])
        ]),
        _: 1
      })
    ], 64));
  }
});
function d(n) {
  const e = n;
  e.__i18n = e.__i18n || [], e.__i18n.push({
    locale: "",
    resource: {
      "en-US": {
        "datahub-plugin": {
          stockValue: {
            precision: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Precision" } }
          }
        }
      },
      "de-DE": {
        "datahub-plugin": {
          stockValue: {
            precision: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Genauigkeit" } }
          }
        }
      }
    }
  });
}
typeof d == "function" && d(k);
export {
  k as default
};
