<commit_before>import { lazy } from "@agir/front/app/utils";
import {
  RouteConfig,
  routeConfig as globalRouteConfig,
} from "@agir/front/app/routes.config";

import illustrationManage from "@agir/front/genericComponents/images/group_members.svg";
import illustrationGeneral from "@agir/front/genericComponents/images/group_general.svg";
import illustrationVisio from "@agir/front/genericComponents/images/video-conference.svg";

const EventSettingsGeneral = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingsgeneral" */ "@agir/events/EventSettings/EventGeneral"
  )
);
const EventSettingsParticipants = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingsparticipants" */ "@agir/events/EventSettings/EventParticipants"
  )
);
const EventSettingsOrganization = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingsorganization" */ "@agir/events/EventSettings/EventOrganization"
  )
);
const EventSettingsVisio = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingsvisio" */ "@agir/events/EventSettings/EventVisio"
  )
);
const EventSettingsContact = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingscontact" */ "@agir/events/EventSettings/EventContact"
  )
);
const EventSettingsLocation = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingslocation" */ "@agir/events/EventSettings/EventLocation"
  )
);
const EventSettingsFeedback = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingsfeedback" */ "@agir/events/EventSettings/EventFeedback"
  )
);
const EventSettingsCancelation = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingscancelation" */ "@agir/events/EventSettings/EventCancelation"
  )
);
const EventSettingsDocuments = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingsdocuments" */ "@agir/events/EventSettings/EventDocuments"
  )
);

export const menuRoute = {
  id: "menu",
  path: "gestion/",
  exact: false,
  label: "Paramètres de l'événement",
};

export const routeConfig = {
  general: {
    id: "general",
    path: "general/",
    exact: true,
    label: "Général",
    icon: "file",
    illustration: illustrationGeneral,
    Component: EventSettingsGeneral,
    isActive: true,
    menuGroup: 1,
  },
  participants: {
    id: "participants",
    path: "participants/",
    exact: true,
    label: "Participant·es",
    icon: "users",
    Component: EventSettingsParticipants,
    isActive: true,
    menuGroup: 1,
  },
  organisation: {
    id: "organisation",
    path: "organisation/",
    exact: true,
    label: "Organisation",
    icon: "settings",
    illustration: illustrationManage,
    Component: EventSettingsOrganization,
    isActive: true,
    menuGroup: 1,
  },
  documents: {
    id: "documents",
    path: "documents/",
    exact: true,
    label: "Documents",
    icon: "file-text",
    Component: EventSettingsDocuments,
    isActive: true,
    // isActive: (event) => event.hasProject,
    menuGroup: 1,
  },
  videoConference: {
    id: "videoConference",
    path: "video-conference/",
    exact: true,
    label: "Vidéo-conférence",
    icon: "video",
    illustration: illustrationVisio,
    Component: EventSettingsVisio,
    isActive: true,
    menuGroup: 2,
  },
  contact: {
    id: "contact",
    path: "contact/",
    exact: true,
    label: "Contact",
    icon: "mail",
    Component: EventSettingsContact,
    isActive: true,
    menuGroup: 2,
  },
  localisation: {
    id: "localisation",
    path: "localisation/",<commit_msg>chore: hide event document templates from settings for event without project<commit_after>import { lazy } from "@agir/front/app/utils";
import {
  RouteConfig,
  routeConfig as globalRouteConfig,
} from "@agir/front/app/routes.config";

import illustrationManage from "@agir/front/genericComponents/images/group_members.svg";
import illustrationGeneral from "@agir/front/genericComponents/images/group_general.svg";
import illustrationVisio from "@agir/front/genericComponents/images/video-conference.svg";

const EventSettingsGeneral = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingsgeneral" */ "@agir/events/EventSettings/EventGeneral"
  )
);
const EventSettingsParticipants = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingsparticipants" */ "@agir/events/EventSettings/EventParticipants"
  )
);
const EventSettingsOrganization = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingsorganization" */ "@agir/events/EventSettings/EventOrganization"
  )
);
const EventSettingsVisio = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingsvisio" */ "@agir/events/EventSettings/EventVisio"
  )
);
const EventSettingsContact = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingscontact" */ "@agir/events/EventSettings/EventContact"
  )
);
const EventSettingsLocation = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingslocation" */ "@agir/events/EventSettings/EventLocation"
  )
);
const EventSettingsFeedback = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingsfeedback" */ "@agir/events/EventSettings/EventFeedback"
  )
);
const EventSettingsCancelation = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingscancelation" */ "@agir/events/EventSettings/EventCancelation"
  )
);
const EventSettingsDocuments = lazy(() =>
  import(
    /* webpackChunkName: "r-eventsettingsdocuments" */ "@agir/events/EventSettings/EventDocuments"
  )
);

export const menuRoute = {
  id: "menu",
  path: "gestion/",
  exact: false,
  label: "Paramètres de l'événement",
};

export const routeConfig = {
  general: {
    id: "general",
    path: "general/",
    exact: true,
    label: "Général",
    icon: "file",
    illustration: illustrationGeneral,
    Component: EventSettingsGeneral,
    isActive: true,
    menuGroup: 1,
  },
  participants: {
    id: "participants",
    path: "participants/",
    exact: true,
    label: "Participant·es",
    icon: "users",
    Component: EventSettingsParticipants,
    isActive: true,
    menuGroup: 1,
  },
  organisation: {
    id: "organisation",
    path: "organisation/",
    exact: true,
    label: "Organisation",
    icon: "settings",
    illustration: illustrationManage,
    Component: EventSettingsOrganization,
    isActive: true,
    menuGroup: 1,
  },
  documents: {
    id: "documents",
    path: "documents/",
    exact: true,
    label: "Documents",
    icon: "file-text",
    Component: EventSettingsDocuments,
    isActive: (event) => event.hasProject,
    menuGroup: 1,
  },
  videoConference: {
    id: "videoConference",
    path: "video-conference/",
    exact: true,
    label: "Vidéo-conférence",
    icon: "video",
    illustration: illustrationVisio,
    Component: EventSettingsVisio,
    isActive: true,
    menuGroup: 2,
  },
  contact: {
    id: "contact",
    path: "contact/",
    exact: true,
    label: "Contact",
    icon: "mail",
    Component: EventSettingsContact,
    isActive: true,
    menuGroup: 2,
  },
  localisation: {
    id: "localisation",
    path: "localisation/",
{'fraction_non_alphanumeric': 0.14035337703049303, 'fraction_numerical': 0.0017098888572242804, 'mean_word_length': 3.894700139470014, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5446447', 'n_tokens_mistral': 2241, 'n_tokens_neox': 2188, 'n_words': 443}