import { formatDate as r } from "./index-format-utils.js";
import n from "./index-moment.js";
const i = (e) => {
  switch (typeof e) {
    case "undefined":
      return;
    case "object":
      if (e === null)
        return;
      if (n.isMoment(e))
        return r(e, !1);
      throw new Error("Object detected");
    case "boolean":
      return `${e}`;
    case "number":
      return `${e}`;
    case "string":
      return e;
    case "function":
      return;
    case "symbol":
      return;
    case "bigint":
      return `${e}`;
  }
};
export {
  i as datePickerValueParser
};
