import { defineComponent as n, computed as d, openBlock as t, 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 C, as as D, a9 as y } from "./index-1e3e8095.js";
import "@vueuse/core";
import "lodash-es";
import "axios";
import "vue-i18n";
const K = `.kapix-date-picker{width:100%;height:100%;min-width:0;min-height:0}
`, U = /* @__PURE__ */ n({
  __name: "KapixDatePicker",
  props: g([Date, String]),
  emits: ["update:modelValue"],
  setup(p, { emit: i }) {
    C("KapixDatePicker", K);
    const a = p, l = i, o = d({
      get() {
        return D(y(a));
      },
      set(e) {
        var r;
        l("update:modelValue", e), (r = a.onValueChanged) == null || r.call(a, e);
      }
    });
    return (e, r) => e.editable ? (t(), m(V, {
      key: 0,
      modelValue: u(o),
      "onUpdate:modelValue": r[0] || (r[0] = (s) => k(o) ? o.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-picker"])
    }, null, 8, ["modelValue", "placeholder", "markers", "marker-date-prop", "marker-color", "class"])) : (t(), m(P, f(h({ key: 1 }, a)), null, 16));
  }
});
export {
  U as default
};
