import s from "./index-moment.js";
const c = (t, o = !1) => {
  if (typeof t != "string")
    throw new Error("Argument must be a string");
  if (t.trim() === "")
    return "";
  const r = t.split(" ")[1];
  let e = m(!1);
  r && (r.toLowerCase() === "am" || r.toLowerCase() === "pm") && (e = m(!0));
  const f = m(o);
  return s(t, e).format(f);
}, m = (t = !1) => t ? "hh:mm A" : "HH:mm", p = (t, o) => i(t, o), i = (t, o = !1, n) => {
  const r = "MM/DD/yyyy ";
  if (s.isMoment(t))
    return t.format(r);
  if (typeof t != "string")
    throw new Error("Argument must be a string");
  return t.trim() === "" ? "" : s(t).format(r);
};
export {
  p as formatDate,
  i as formatDateAndTime,
  c as formatHours,
  m as getHourFormat
};
