import c from "../../date-picker/utils/applyFormatFromParts.js";
function p(a, n) {
  const t = a.replace(/\D/g, "");
  if (!t) return "";
  const e = n.reduce((g, l) => g + l.length, 0), i = " - ", s = t.slice(0, e), r = c(s, n);
  if (s.length < e || t.length <= e)
    return r;
  const u = t.slice(e), o = c(u, n);
  return o ? `${r}${i}${o}` : r;
}
export {
  p as default
};
//# sourceMappingURL=formatRangeInputAsTyping.js.map
