import { defineComponent as n, computed as d, openBlock as o, createBlock as m, unref as u, isRef as k, normalizeClass as c, normalizeProps as f, mergeProps as h } from "vue";
import { _ as P } from "./constants-bafaca2a.js";
import { K as V } from "./KapixDatetimePicker-b8d712bb.js";
import { a6 as g, a7 as y, as as C, a9 as D } from "./index-1e3e8095.js";
import "@vueuse/core";
import "lodash-es";
import "axios";
import "vue-i18n";
const K = `.kapix-date-time-picker{width:100%;height:100%;min-width:0;min-height:0}
`, R = /* @__PURE__ */ n({
  __name: "KapixDateTimePickerInput",
  props: g([Date, String]),
  emits: ["update:modelValue"],
  setup(i, { emit: p }) {
    y("KapixDateTimePickerInput", K);
    const a = i, l = p, t = d({
      get() {
        return C(D(a));
      },
      set(e) {
        var r;
        l("update:modelValue", e), (r = a.onValueChanged) == null || r.call(a, e);
      }
    });
    return (e, r) => e.editable ? (o(), m(V, {
      key: 0,
      modelValue: u(t),
      "onUpdate:modelValue": r[0] || (r[0] = (s) => k(t) ? t.value = s : null),
      placeholder: e.options.placeholder,
      markers: e.options.markers,
      "marker-date-prop": e.options.markerDateProp,
      "marker-color": e.options.markerColor,
      class: c([e.templateClass, "kapix-date-time-picker"]),
      type: "datetime"
    }, null, 8, ["modelValue", "placeholder", "markers", "marker-date-prop", "marker-color", "class"])) : (o(), m(P, f(h({ key: 1 }, a)), null, 16));
  }
});
export {
  R as default
};
