import { V as ValidateFieldEnum } from "./types-B9VC9FeZ.js";
import { R as ROUTES } from "./index-DfebxkL9.js";
const getNameFromDottedString = (value) => {
  const splitArray = (value == null ? void 0 : value.split(/\.(?=[^.]+$)/)) || [];
  const fieldName = splitArray[splitArray.length - 1];
  return fieldName === "Email" ? ValidateFieldEnum.Email : fieldName === "Phone" ? ValidateFieldEnum.Phone : ValidateFieldEnum.Login;
};
const copyToClipboard = (value) => {
  const dummy = document.createElement("textarea");
  document.body.appendChild(dummy);
  dummy.value = value || "";
  dummy.select();
  document.execCommand("copy");
  document.body.removeChild(dummy);
};
const getUserEditRoutes = () => {
  const {
    fullPath,
    pages
  } = ROUTES.profile;
  return Object.values(pages).map((value) => {
    const path = `${fullPath}/${value ? `${value}` : ""}`;
    return {
      path,
      chunk: value
    };
  });
};
export {
  getNameFromDottedString as a,
  copyToClipboard as c,
  getUserEditRoutes as g
};
//# sourceMappingURL=utils-D5kCyTRM.js.map
