import { defineComponent as y, mergeModels as M, useModel as T, computed as s, createElementBlock as c, openBlock as V, Fragment as _, createVNode as i, unref as a, withCtx as l } from "vue";
import { useI18n as S } from "vue-i18n";
import { c as d, a as b, e as z } from "./start-CE9SawgU.js";
import "pinia";
import "./header-Bn1EKnBE.js";
const D = /* @__PURE__ */ y({
  __name: "DatahubDataTypeDateTimeValueConfiguration",
  props: /* @__PURE__ */ M({
    attribute: {},
    dataTypeInstance: {},
    remoteScopes: {},
    remoteLanguages: {},
    remoteAttributes: {},
    readonly: { type: Boolean }
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(r) {
    const t = T(r, "modelValue"), p = {
      none: "datahub-plugin.dateTime.dateFormatNone",
      short: "datahub-plugin.dateTime.dateFormatShort",
      medium: "datahub-plugin.dateTime.dateFormatMedium",
      long: "datahub-plugin.dateTime.dateFormatLong"
    }, g = {
      none: "datahub-plugin.dateTime.timeFormatNone",
      short: "datahub-plugin.dateTime.timeFormatShort",
      medium: "datahub-plugin.dateTime.timeFormatMedium"
    }, { t: n } = S(), u = (m) => Object.entries(m).map(([e, o]) => ({ value: e, title: n(o) })), h = s(() => u(p)), f = s(() => u(g));
    return (m, e) => (V(), c(_, null, [
      i(a(d), null, {
        default: l(() => [
          i(a(b), {
            modelValue: t.value.dateFormat,
            "onUpdate:modelValue": e[0] || (e[0] = (o) => t.value.dateFormat = o),
            items: h.value,
            label: a(n)("datahub-plugin.dateTime.dateFormat"),
            readonly: m.readonly
          }, null, 8, ["modelValue", "items", "label", "readonly"])
        ]),
        _: 1
      }),
      i(a(d), null, {
        default: l(() => [
          i(a(b), {
            modelValue: t.value.timeFormat,
            "onUpdate:modelValue": e[1] || (e[1] = (o) => t.value.timeFormat = o),
            items: f.value,
            label: a(n)("datahub-plugin.dateTime.timeFormat"),
            readonly: m.readonly
          }, null, 8, ["modelValue", "items", "label", "readonly"])
        ]),
        _: 1
      }),
      i(a(d), null, {
        default: l(() => [
          i(a(z), {
            modelValue: t.value.readOnly,
            "onUpdate:modelValue": e[2] || (e[2] = (o) => t.value.readOnly = o),
            label: m.$t("datahub-ui.dh-table.readOnly"),
            readonly: m.readonly
          }, null, 8, ["modelValue", "label", "readonly"])
        ]),
        _: 1
      })
    ], 64));
  }
});
function F(r) {
  const t = r;
  t.__i18n = t.__i18n || [], t.__i18n.push({
    locale: "",
    resource: {
      "en-US": {
        "datahub-plugin": {
          dateTime: {
            dateFormat: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Date format" } },
            timeFormat: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Time format" } },
            dateFormatNone: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Do not show date" } },
            dateFormatShort: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Short (e.g. 02/11/2024)" } },
            dateFormatMedium: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Medium (e.g. February 11, 2024)" } },
            dateFormatLong: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Long (e.g. Monday, February 11, 2024)" } },
            timeFormatNone: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Do not show time" } },
            timeFormatShort: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Short (e.g. 09:00 PM)" } },
            timeFormatMedium: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Medium (e.g. 09:00:00 PM)" } }
          }
        }
      },
      "de-DE": {
        "datahub-plugin": {
          dateTime: {
            dateFormat: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Datumsformat" } },
            timeFormat: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zeitformat" } },
            dateFormatNone: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Datum nicht anzeigen" } },
            dateFormatShort: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kurz (z.B. 02.11.2024)" } },
            dateFormatMedium: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Mittel (z.B. 11. Februar 2024)" } },
            dateFormatLong: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lang (z.B. Montag, 11. Februar 2024)" } },
            timeFormatNone: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Uhrzeit nicht anzeigen" } },
            timeFormatShort: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kurz (z.B. 21:00 Uhr)" } },
            timeFormatMedium: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Mittel (z.B. 21:00:00 Uhr)" } }
          }
        }
      }
    }
  });
}
typeof F == "function" && F(D);
export {
  D as default
};
