import { defineComponent as o, computed as a, ref as p, createBlock as u, openBlock as c, mergeProps as f } from "vue";
import i from "../../../../commons/components/DatePicker/index.vue.mjs";
import { upgradeDatePicker as m } from "../../../../commons/components/DatePicker/version.mjs";
const l = o({ name: "ShjDatePickerRange" }), d = /* @__PURE__ */ o({
  ...l,
  props: {
    option: {},
    sources: {},
    useEvents: {}
  },
  setup(s, { expose: t }) {
    const n = a(() => m(s.option)), r = p();
    return t({
      refresh: () => {
        var e;
        return (e = r.value) == null ? void 0 : e.refresh();
      },
      refreshView: () => {
        var e;
        return (e = r.value) == null ? void 0 : e.refreshView();
      },
      refreshData: () => {
        var e;
        return (e = r.value) == null ? void 0 : e.refreshData();
      }
    }), (e, h) => (c(), u(i, f({
      ref_key: "componentRef",
      ref: r,
      option: n.value,
      sources: e.sources,
      "use-events": e.useEvents
    }, e.$attrs), null, 16, ["option", "sources", "use-events"]));
  }
});
export {
  d as default
};
