import { RANGE_SEPARATOR as a } from "../constants/index.js";
import p from "../../../utils/parseDate.js";
function g(t, r) {
  var o, s;
  if (!t || t === "")
    return { parsedFromDate: null, parsedToDate: null };
  const e = t.split(a), n = ((o = e[0]) == null ? void 0 : o.trim()) || "", l = ((s = e[1]) == null ? void 0 : s.trim()) || "";
  return {
    parsedFromDate: n.length === r.length ? p(n, r) : null,
    parsedToDate: l.length === r.length ? p(l, r) : null
  };
}
export {
  g as default
};
//# sourceMappingURL=parseRangeInput.js.map
