import { SPORTS_POOL_PATHS } from 'src/pages/dashboard/sportsPool/routes';

export const disableNavbarPath = (pathname: string) =>
  [
    /\/agent-workspace/,
    /\/courses\/[0-9]+\/lessons\/[0-9]+/,
    /\/courses\/[0-9]+\/sign/,
    /\/courses\/[0-9]+\/completion/,
    /\/sessions\/[0-9]+/,
    /\/paths\/[0-9]+\/completion/,
    /\/service-portal\/service-items/,
    /\/service-portal\/requests/,
    /\/feed\/[0-9]+\/insights/,
    /\/feed\/live-stream/,
    /\/feed\/pending-posts/,
    /\/feed\/pinned-posts/,
    /\/groups\/create/,
    /\/groups\/[0-9]+\/configuration/,
    /\/groups\/[0-9]+\/post\/[0-9]+\/insights/,
    /\/groups\/[0-9]+\/live-stream/,
    /\/groups\/[0-9]+\/pinned-posts/,
    /\/events\/new/,
    /\/events\/[0-9]+\/live-stream/,
    /\/communication\/create-post-draft/,
    /\/communication\/drafts\/[0-9]+/,
    /\/communication\/drafts\/[0-9]+\/edit/,
    /\/key-updates/,
    /\/feed\/[0-9]+\/share/,
    /\/groups\/[0-9]+\/post\/[0-9]+\/share/,
    /\/people-experience\/manager\/surveys\/[0-9]+\/results/,
    /\/people-experience\/surveys\/[0-9]+/,
    /\/time-tracking\/collaborators\/[0-9]+/,
    /\/documents\/pending\/files\/[0-9]+/,
    /\/documents\/[0-9]+\/files\/[0-9]+/,
    /\/service-portal\/approvals/,
    /\/employee-lifecycle\/onboardings\/[0-9]+\/steps(?!\/[0-9]+)/,
    /\/employee-lifecycle\/onboardings\/[0-9]+\/steps\/[0-9]+\/tasks(?!\/[0-9]+)/,
    /\/requests-banbajio\/loan/,
    /\/requests-banbajio\/advancePayment/,
    /\/requests-banbajio\/mortgageLibrary/,
    /\/employee-lifecycle\/onboardings\/[0-9]+\/steps(?:\/[0-9]+\/tasks(?:\/[0-9]+)?)?$/,
    /\/employee-lifecycle\/form\/[^/]+\/[^/]+(?:\/[^/]+)?(\/(?:results|success))?$/,
    /\/goals\/team\/[0-9]+/,
    /\/goals\/[0-9]+/,
    /\/goals\/new/,
    /\/shifts\/repository/,
    /\/performance\/[0-9]+/,
    /notifications-config/,
    /\/people-experience\/manager\/surveys\/[0-9]+\/results-experimental/,
    /^\/surveys\/[0-9]+/,
    new RegExp(
      `\\/${SPORTS_POOL_PATHS.ROOT}\\/${SPORTS_POOL_PATHS.COMPETITIONS}\\/[0-9]+`,
    ),
  ].some(rgx => pathname.match(rgx));
