import type { Setting } from '../../../app/frontend/src/javascript/models/setting';
import { admins } from './users';
import { sample as _sample } from 'lodash';
import type { HistoryValue } from '../../../app/frontend/src/javascript/models/history-value';

export const settings: Array<Setting> = [
  {
    name: 'about_body',
    value: '<p>Le Fablab<a href="http://www.fab-manager"> <b>de EXAMPLE</b></a> est un atelier de fabrication partagé.</p>',
    last_update: '2022-03-23T18:01:23+0100',
    localized: 'Le corps de la page "À propos"'
  },
  {
    name: 'about_title',
    value: 'Imaginer, Fabriquer, Partager<br>au FabLab de EXAMPLE',
    last_update: '2018-12-31T11:37:10+0100',
    localized: 'Le titre de la page "À propos"'
  },
  {
    name: 'about_contacts',
    value: "<h3>Responsable de l'atelier</h3><p>Jean Dupont<br><a href=\"mailto:jean.dupont@example.com\">jean.dupont@example.com</a></p>",
    last_update: '2021-11-25T11:34:39+0100',
    localized: 'Les contacts sur la page "À propos"'
  },
  {
    name: 'twitter_name',
    value: 'Example',
    last_update: '2020-05-12T13:16:17+0200',
    localized: 'Nom du flux Twitter'
  },
  {
    name: 'machine_explications_alert',
    value: "<p>Tout achat d'heure machine est définitif. Néanmoins au plus tard 24h avant le créneau fixé, vous pouvez en modifier la date et l'horaire en fonction du calendrier proposé. Passé ce délai, aucun changement ne pourra être effectué.</p>",
    last_update: '2018-12-31T11:37:10+0100',
    localized: "L'explication sur la page de réservation d'une machine"
  },
  {
    name: 'training_explications_alert',
    value: '<p>Toute réservation de formation est définitive. Néanmoins au plus tard 24h avant le créneau fixé, vous pouvez en modifier la date en fonction du calendrier proposé. Passé ce délai, aucun changement ne pourra être effectué.</p>',
    last_update: '2020-10-23T15:19:06+0200',
    localized: "L'explication sur la page de réservation d'une formation"
  },
  {
    name: 'subscription_explications_alert',
    value: '<p><b>Règle sur la date de début des abonnements</b></p><p><span style="font-size: 1.6rem;">Les abonnements débutent à la date de la première réservation (formation/prise en mains, &nbsp;machines).</span></p><p></p>',
    last_update: '2018-12-31T11:37:10+0100',
    localized: "L'explication sur la page de souscription à un abonnement"
  },
  {
    name: 'invoice_logo',
    value: '[encoded data, 31892 characters]',
    last_update: '2019-04-17T16:01:02+0200',
    localized: 'Logo des factures'
  },
  {
    name: 'invoice_reference',
    value: 'YYMMmmmX[/VL]R[/A]S[/E]',
    last_update: '2021-03-08T09:35:49+0100',
    localized: 'Référence de la facture'
  },
  {
    name: 'invoice_code-active',
    value: 'true',
    last_update: '2018-12-31T11:37:10+0100',
    localized: 'Activation du code des factures'
  },
  {
    name: 'invoice_code-value',
    value: 'EXAMPLE',
    last_update: '2018-12-31T11:37:10+0100',
    localized: 'Code des factures'
  },
  {
    name: 'invoice_order-nb',
    value: 'nnnnnn-MM-YY',
    last_update: '2018-12-31T11:37:10+0100',
    localized: 'Numéro de commande de la facture'
  },
  {
    name: 'invoice_VAT-active',
    value: 'true',
    last_update: '2018-12-31T11:37:10+0100',
    localized: 'Activation de la TVA'
  },
  {
    name: 'invoice_VAT-rate',
    value: '20',
    last_update: '2018-12-31T11:37:10+0100',
    localized: 'Taux de TVA'
  },
  {
    name: 'invoice_text',
    value: 'TVA FR67 123 456 789',
    last_update: '2018-12-31T11:37:10+0100',
    localized: 'Texte des factures'
  },
  {
    name: 'invoice_legals',
    value: 'EXAMPLE LAB<br>2 rue des examples<br>38000 GRENOBLE France<br>Tél. : +33 2 34 56 78 91<br>',
    last_update: '2021-10-21T10:28:38+0200',
    localized: 'Mentions légales des factures'
  },
  {
    name: 'booking_window_start',
    value: '1970-01-01T09:00:00.000Z',
    last_update: '2021-12-17T17:55:56+0100',
    localized: "Heure d'ouverture"
  },
  {
    name: 'booking_window_end',
    value: '1970-01-01T19:30:59.000Z',
    last_update: '2021-12-17T17:55:53+0100',
    localized: 'Heure de fermeture'
  },
  {
    name: 'booking_move_enable',
    value: 'true',
    last_update: '2018-12-31T11:37:10+0100',
    localized: 'Activation du déplacement des réservations'
  },
  {
    name: 'booking_move_delay',
    value: '24',
    last_update: '2020-10-20T13:49:00+0200',
    localized: 'Délai préventif avant tout déplacement de réservation'
  },
  {
    name: 'booking_cancel_enable',
    value: 'true',
    last_update: '2018-12-31T11:37:10+0100',
    localized: "Activation de l'annulation des réservations"
  },
  {
    name: 'booking_cancel_delay',
    value: '48',
    last_update: '2019-09-10T14:35:41+0200',
    localized: 'Délai préventif avant toute annulation de réservation'
  },
  {
    name: 'main_color',
    value: '#c11212',
    last_update: '2022-11-22T17:26:07+0100',
    localized: 'La couleur principale'
  },
  {
    name: 'secondary_color',
    value: '#b6b21b',
    last_update: '2018-12-31T11:37:10+0100',
    localized: 'La couleur secondaire'
  },
  {
    name: 'training_information_message',
    value: "<p>Avant de réserver une formation, nous vous conseillons de consulter nos offres d'abonnement qui proposent des conditions avantageuses sur le prix des heures machines.</p>",
    last_update: '2018-12-31T11:37:10+0100',
    localized: "L'information sur la page de réservation d'une formation"
  },
  {
    name: 'fablab_name',
    value: 'EXAMPLE LAB',
    last_update: '2019-01-24T16:32:50+0100',
    localized: 'Nom du FabLab'
  },
  {
    name: 'name_genre',
    value: 'male',
    last_update: '2018-12-31T11:37:10+0100',
    localized: 'Accord du titre'
  },
  {
    name: 'home_blogpost',
    value: '<p>Welcome</p>',
    last_update: '2022-06-29T11:12:52+0200',
    localized: "La brève de La page d'accueil"
  },
  {
    name: 'reminder_delay',
    value: '48',
    last_update: '2018-12-31T11:37:10+0100',
    localized: 'Délai avant envoi de la notification de rappel'
  },
  {
    name: 'reminder_enable',
    value: 'true',
    last_update: '2018-12-31T11:37:10+0100',
    localized: 'Activation du rappel des réservations'
  },
  {
    name: 'visibility_yearly',
    value: '2',
    last_update: '2019-02-19T19:01:54+0100',
    localized: 'La visibilité maximale pour les abonnées annuels'
  },
  {
    name: 'visibility_others',
    value: '2',
    last_update: '2019-02-19T19:01:53+0100',
    localized: 'La visibilité maximale pour les autres membres'
  },
  {
    name: 'display_name_enable',
    value: 'false',
    last_update: '2020-05-14T10:09:57+0200',
    localized: 'Afficher les noms dans le calendrier'
  },
  {
    name: 'machines_sort_by',
    value: 'default',
    last_update: '2020-02-20T17:22:05+0100',
    localized: "Ordre d'affichage des machines"
  },
  {
    name: 'privacy_body',
    value: '<p>La présente politique de confidentialité définit et vous informe de la manière dont EXAMPLE utilise et protège les\n  informations que vous nous transmettez, le cas échéant, lorsque vous utilisez le présent site accessible à partir de l’URL suivante ...</p>',
    last_update: '2019-06-21T15:22:41+0200',
    localized: 'Politique de confidentialité'
  },
  {
    name: 'privacy_draft',
    value: '<p>La présente politique de confidentialité définit et vous informe de la manière dont EXAMPLE utilise et protège les\n  informations que vous nous transmettez, le cas échéant, lorsque vous utilisez le présent site accessible à partir de l’URL suivante...</p>',
    last_update: '2019-06-21T11:34:21+0200',
    localized: 'Brouillon de la politique de confidentialité'
  },
  {
    name: 'privacy_dpo',
    value: '<p>Germain Durand<br>germain.durand@example.com</p>',
    last_update: '2019-06-21T11:37:27+0200',
    localized: "L'adresse du délégué à La protection des données"
  },
  {
    name: 'fab_analytics',
    value: 'true',
    last_update: '2020-03-09T16:46:46+0100',
    localized: 'Fab Analytics'
  },
  {
    name: 'link_name',
    value: 'A propos de EXAMPLE LAB',
    last_update: '2020-03-09T16:46:51+0100',
    localized: 'Titre du lien vers la page "À propos"'
  },
  {
    name: 'home_content',
    value: '<div>\n  <div class="m-sm">\n    <div id="news">Brève</div>\n  </div>\n  <div class="row wrapper">\n    <div class="col-lg-8">\n      <div id="projects">Derniers projets</div>\n    </div>\n    <div class="col-lg-4 m-t-lg">\n      <div id="twitter">Dernier tweet</div>\n      <div id="members">Derniers membres</div>\n    </div>\n  </div>\n  <div class="row wrapper m-t-sm">\n    <div class="col-lg-12">\n      <div id="events">Prochains événements</div>\n    </div>\n  </div>\n</div>\n',
    last_update: '2020-03-09T16:46:52+0100',
    localized: "La page d'accueil"
  },
  {
    name: 'hub_last_version',
    value: '{"security":false,"up_to_date":true}',
    last_update: '2022-06-30T09:21:26+0200',
    localized: 'Dernière version de Fab-Manager'
  },
  {
    name: 'hub_public_key',
    value: '-----BEGIN PUBLIC KEY-----\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n-----END PUBLIC KEY-----\n',
    last_update: '2020-03-09T16:47:41+0100',
    localized: "Clé publique de l'instance"
  },
  {
    name: 'uuid',
    value: 'fakefake-fake-fake-fake-fakefakefake',
    last_update: '2020-04-15T08:41:39+0200',
    localized: "Identifiant d'instance"
  },
  {
    name: 'origin',
    value: 'https://www.example.com',
    last_update: '2022-11-21T15:20:51+0100',
    localized: 'URL de l’instance'
  },
  {
    name: 'tracking_id',
    value: 'G-XXXXXXXXXX',
    last_update: '2021-06-21T11:16:56+0200',
    localized: 'ID de suivi'
  },
  {
    name: 'slot_duration',
    value: '60',
    last_update: '2020-07-21T10:46:58+0200',
    localized: 'Durée par défaut des créneaux de réservation'
  },
  {
    name: 'spaces_module',
    value: 'true',
    last_update: '2022-11-22T15:17:26+0100',
    localized: 'Module espace'
  },
  {
    name: 'plans_module',
    value: 'true',
    last_update: '2020-07-21T10:46:58+0200',
    localized: 'Module abonnements'
  },
  {
    name: 'twitter_analytics',
    value: '',
    last_update: '2020-07-21T10:46:58+0200',
    localized: 'Compte Twitter analytics'
  },
  {
    name: 'email_from',
    value: 'noreply@example.com',
    last_update: '2020-07-21T10:46:58+0200',
    localized: "Adresse de l'expéditeur"
  },
  {
    name: 'disqus_shortname',
    value: 'example',
    last_update: '2020-07-21T10:46:58+0200',
    localized: 'Nom court Disqus'
  },
  {
    name: 'allowed_cad_extensions',
    value: '3dm 3dmf ai cad doc docx dwg dxf eps fcad iges igs ino latex math obj pdf png ps scad skp sldasm slddrt slddrw sldprt step stl svg tex fcstd',
    last_update: '2022-01-21T12:43:40+0100',
    localized: 'Extensions de fichiers CAO autorisées'
  },
  {
    name: 'allowed_cad_mime_types',
    value: 'application/acad application/dwg application/dxf application/iges application/illustrator application/octet-stream application/pdf application/postscript application/scad application/sla application/step application/vnd-koan application/vnd.koan application/vnd.openxmlformats-officedocument.wordprocessingml.document application/vnd.sketchup.skp application/x-koan application/x-latex application/x-tex image/png image/svg+xml image/x-eps koan/x-skm model/iges text/plain text/x-arduino x-world/x-3dmf',
    last_update: '2022-01-21T12:45:26+0100',
    localized: 'Types MIME de fichiers CAO autorisés'
  },
  {
    name: 'openlab_app_id',
    value: '123456879',
    last_update: '2020-07-21T10:46:59+0200',
    localized: 'Identifiant OpenLab'
  },
  {
    name: 'openlab_app_secret',
    value: 'XXXXXXXXXXX',
    last_update: '2020-07-21T10:46:59+0200',
    localized: 'Secret OpenLab'
  },
  {
    name: 'online_payment_module',
    value: 'true',
    last_update: '2020-07-21T10:46:59+0200',
    localized: 'Module de paiement en ligne'
  },
  {
    name: 'stripe_public_key',
    value: 'pk_test_123456879132456879123456',
    last_update: '2022-11-21T16:02:19+0100',
    localized: 'Clé publique Stripe'
  },
  {
    name: 'stripe_secret_key',
    value: 'sk_test_XXXXXXXXXXXXXXXXXXXXXXXX',
    last_update: '2022-11-21T16:02:19+0100',
    localized: 'Clé secrète Stripe'
  },
  {
    name: 'stripe_currency',
    value: 'eur',
    last_update: '2020-07-21T10:46:59+0200',
    localized: 'Devise Stripe'
  },
  {
    name: 'invoice_prefix',
    value: 'Example-FabLab-facture',
    last_update: '2020-07-21T10:46:59+0200',
    localized: 'Préfixe des fichiers de factures'
  },
  {
    name: 'invoicing_module',
    value: 'true',
    last_update: '2020-07-21T10:47:14+0200',
    localized: 'Module facturation'
  },
  {
    name: 'feature_tour_display',
    value: 'once',
    last_update: '2020-07-21T10:47:14+0200',
    localized: "Mode d'affichage des visites guidées"
  },
  {
    name: 'confirmation_required',
    value: 'false',
    last_update: '2020-07-21T10:47:14+0200',
    localized: 'Confirmation requise'
  },
  {
    name: 'wallet_module',
    value: 'true',
    last_update: '2020-07-21T10:47:14+0200',
    localized: 'Module porte-monnaie'
  },
  {
    name: 'statistics_module',
    value: 'true',
    last_update: '2021-05-11T17:35:47+0200',
    localized: 'Module de statistiques'
  },
  {
    name: 'phone_required',
    value: null,
    last_update: '2022-11-28T16:01:00+0200',
    localized: 'Téléphone requis ?'
  },
  {
    name: 'book_overlapping_slots',
    value: 'true',
    last_update: '2021-11-17T11:46:54+0100',
    localized: 'Réservation de créneaux simultanés'
  },
  {
    name: 'events_in_calendar',
    value: 'true',
    last_update: '2020-08-31T16:01:41+0200',
    localized: "Afficher les événements dans l'agenda"
  },
  {
    name: 'openlab_default',
    value: 'true',
    last_update: '2020-09-29T12:56:00+0200',
    localized: 'Vue par défaut de la galerie de projets'
  },
  {
    name: 'upcoming_events_shown',
    value: '2h_before_end',
    last_update: '2021-04-13T16:42:17+0200',
    localized: 'Afficher la limite pour les événements à venir'
  },
  {
    name: 'payment_schedule_prefix',
    value: 'Example_paymentSchedule',
    last_update: '2021-03-08T09:36:04+0100',
    localized: "Préfixe des fichiers d'échéanciers de paiements"
  },
  {
    name: 'trainings_module',
    value: 'true',
    last_update: '2021-03-24T12:19:34+0100',
    localized: 'Module formations'
  },
  {
    name: 'payment_gateway',
    value: 'stripe',
    last_update: '2022-11-21T16:02:19+0100',
    localized: 'Passerelle de paiement'
  },
  {
    name: 'public_agenda_module',
    value: 'true',
    last_update: '2021-06-28T11:53:27+0200',
    localized: "Module d'agenda public"
  },
  {
    name: 'renew_pack_threshold',
    value: '0.2',
    last_update: '2021-10-14T10:17:11+0200',
    localized: 'Seuil de renouvellement des packs'
  },
  {
    name: 'pack_only_for_subscription',
    value: 'true',
    last_update: '2021-10-14T10:17:11+0200',
    localized: 'Restreindre les packs pour les abonnés'
  },
  {
    name: 'overlapping_categories',
    value: 'training_reservations',
    last_update: '2021-10-29T13:59:41+0200',
    localized: 'Catégories pour la prévention du chevauchement des réservations'
  },
  {
    name: 'public_registrations',
    value: 'true',
    last_update: '2022-01-18T13:20:42+0100',
    localized: 'Inscriptions publiques'
  },
  {
    name: 'extended_prices_in_same_day',
    value: 'false',
    last_update: '2022-01-18T13:20:42+0100',
    localized: 'Prix étendus le même jour'
  },
  {
    name: 'user_validation_required',
    value: 'false',
    last_update: '2022-05-24T09:24:56+0200',
    localized: 'translation missing: fr.settings.user_validation_required'
  },
  {
    name: 'user_validation_required_list',
    value: '',
    last_update: '2022-05-24T09:24:56+0200',
    localized: 'translation missing: fr.settings.user_validation_required_list'
  },
  {
    name: 'machines_module',
    value: 'true',
    last_update: '2022-05-24T09:24:56+0200',
    localized: 'Module machines'
  },
  {
    name: 'user_change_group',
    value: 'true',
    last_update: '2022-05-24T09:24:56+0200',
    localized: 'Permettre aux utilisateurs de changer leur groupe'
  },
  {
    name: 'address_required',
    value: null,
    last_update: '2022-11-28T16:01:00+0200',
    localized: 'Adresse requise'
  },
  {
    name: 'show_username_in_admin_list',
    value: 'false',
    last_update: '2022-11-21T15:20:03+0100',
    localized: "Afficher le nom d'utilisateur dans la liste des membres de l'administrateur"
  },
  {
    name: 'store_module',
    value: 'true',
    last_update: '2022-11-21T15:28:45+0100',
    localized: 'Module boutique'
  },
  {
    name: 'store_hidden',
    value: 'false',
    last_update: '2022-11-21T15:20:03+0100',
    localized: 'Boutique masquée au public'
  },
  {
    name: 'advanced_accounting',
    value: 'true',
    last_update: '2022-11-22T17:27:20+0100',
    localized: 'translation missing: fr.settings.advanced_accounting'
  },
  {
    name: 'accounting_VAT_code',
    value: '4457',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Code TVA'
  },
  {
    name: 'accounting_sales_journal_code',
    value: '22A',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Code journal des ventes'
  },
  {
    name: 'accounting_payment_card_code',
    value: '5801',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Code clients par carte'
  },
  {
    name: 'accounting_payment_card_label',
    value: 'Clients par carte',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Libellé clients par carte'
  },
  {
    name: 'accounting_payment_wallet_code',
    value: '5802',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Code clients par porte-monnaie'
  },
  {
    name: 'accounting_payment_wallet_label',
    value: 'Client par porte-monnaie',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Libellé clients par porte-monnaie'
  },
  {
    name: 'accounting_payment_other_code',
    value: '5803',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Code clients autre moyen'
  },
  {
    name: 'accounting_payment_other_label',
    value: 'Clients autres moyens de paiement',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Libellé clients autre moyen'
  },
  {
    name: 'accounting_wallet_code',
    value: '419100',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Code porte-monnaie'
  },
  {
    name: 'accounting_wallet_label',
    value: 'Wallet credit',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Libellé porte-monnaie'
  },
  {
    name: 'accounting_VAT_label',
    value: 'VAT',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Libellé TVA'
  },
  {
    name: 'accounting_subscription_code',
    value: '7061',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Code abonnements'
  },
  {
    name: 'accounting_subscription_label',
    value: 'Subscriptions',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Libellé abonnements'
  },
  {
    name: 'accounting_Machine_code',
    value: '7065',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Code machines'
  },
  {
    name: 'accounting_Machine_label',
    value: 'Machine reservation',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Libellé machines'
  },
  {
    name: 'accounting_Training_code',
    value: '7062',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Code formations'
  },
  {
    name: 'accounting_Training_label',
    value: 'Training reservation',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Libellé formations'
  },
  {
    name: 'accounting_Event_code',
    value: '7063',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Code évènements'
  },
  {
    name: 'accounting_Event_label',
    value: 'Event reservation',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Libellé évènements'
  },
  {
    name: 'accounting_Space_code',
    value: '7064',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Code espaces'
  },
  {
    name: 'accounting_Space_label',
    value: 'Space reservation',
    last_update: '2022-11-22T17:27:19+0100',
    localized: 'Libellé espaces'
  },
  {
    name: 'accounting_Pack_code',
    value: '7066',
    last_update: '2022-11-22T17:27:19+0100',
    localized: "Code packs d'heures prépayées"
  },
  {
    name: 'accounting_Pack_label',
    value: 'Prepaid pack',
    last_update: '2022-11-22T17:27:20+0100',
    localized: "Libellé packs d'heures prépayées"
  },
  {
    name: 'accounting_Product_code',
    value: '7071',
    last_update: '2022-11-22T17:27:20+0100',
    localized: 'Code des produits de la boutique'
  },
  {
    name: 'accounting_Product_label',
    value: 'Shop order',
    last_update: '2022-11-22T17:27:20+0100',
    localized: 'Libellé des produits de la boutique'
  },
  {
    name: 'accounting_Error_code',
    value: '',
    last_update: '2022-11-22T17:27:20+0100',
    localized: 'Code erreurs'
  },
  {
    name: 'accounting_Error_label',
    value: '',
    last_update: '2022-11-22T17:27:20+0100',
    localized: 'Libellé erreurs'
  },
  {
    name: 'accounting_payment_card_journal_code',
    value: 'CB01',
    last_update: '2022-11-22T17:27:20+0100',
    localized: 'Libellé erreurs'
  },
  {
    name: 'accounting_payment_wallet_journal_code',
    value: 'W001',
    last_update: '2022-11-22T17:27:20+0100',
    localized: 'Libellé erreurs'
  },
  {
    name: 'accounting_payment_other_journal_code',
    value: 'CA01',
    last_update: '2022-11-22T17:27:20+0100',
    localized: 'Libellé erreurs'
  },
  {
    name: 'accounting_wallet_journal_code',
    value: 'W002',
    last_update: '2022-11-22T17:27:20+0100',
    localized: 'Libellé erreurs'
  },
  {
    name: 'accounting_VAT_journal_code',
    value: 'TVA1',
    last_update: '2022-11-22T17:27:20+0100',
    localized: 'Libellé erreurs'
  },
  {
    name: 'external_id',
    value: 'true',
    last_update: '2022-12-20T16:02:01+0100',
    localized: 'identifiant externe'
  },
  {
    name: 'prevent_invoices_zero',
    value: 'false',
    last_update: '2022-12-22T14:45:07+0100',
    localized: 'éviter la génération de factures à 0'
  },
  {
    name: 'machine_reservation_deadline',
    value: '0',
    last_update: '2023-03-01T16:28:23-0300',
    localized: 'Machine prior period (minutes)'
  },
  {
    name: 'training_reservation_deadline',
    value: '0',
    last_update: '2023-03-01T16:28:23-0300',
    localized: 'Training prior period (minutes)'
  },
  {
    name: 'event_reservation_deadline',
    value: '0',
    last_update: '2023-03-01T16:28:23-0300',
    localized: 'Event prior period (minutes)'
  },
  {
    name: 'space_reservation_deadline',
    value: '0',
    last_update: '2023-03-01T16:28:23-0300',
    localized: 'Space prior period (minutes)'
  },
  {
    name: 'invoice_VAT-name',
    value: 'TVA',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Nom de la TVA'
  },
  {
    name: 'machines_banner_active',
    value: 'true',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Custom banner is active'
  },
  {
    name: 'machines_banner_text',
    value: 'Test for machines Banner Content',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Text of the custom banner'
  },
  {
    name: 'machines_banner_cta_active',
    value: 'true',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Custom banner has a button'
  },
  {
    name: 'machines_banner_cta_label',
    value: 'Test for machines Banner Button',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Label'
  },
  {
    name: 'machines_banner_cta_url',
    value: 'https://www.sleede.com/',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Url'
  },
  {
    name: 'trainings_banner_active',
    value: 'true',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Custom banner is active'
  },
  {
    name: 'trainings_banner_text',
    value: 'Test for Banner Content in Trainings',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Text of the custom banner'
  },
  {
    name: 'trainings_banner_cta_active',
    value: 'true',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Custom banner has a button'
  },
  {
    name: 'trainings_banner_cta_label',
    value: 'Test for Banner Button in Trainings',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Label'
  },
  {
    name: 'trainings_banner_cta_url',
    value: 'https://www.sleede.com/',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Url'
  },
  {
    name: 'projects_list_member_filter_presence',
    value: 'false',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Projects list member filter presence'
  },
  {
    name: 'projects_list_date_filters_presence',
    value: 'false',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Projects list date filters presence'
  },
  {
    name: 'project_categories_filter_placeholder',
    value: 'Toutes les catégories',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Placeholder for categories filter in project gallery'
  },
  {
    name: 'project_categories_wording',
    value: 'Catégories',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Project categories overridden name'
  },
  {
    name: 'reservation_context_feature',
    value: 'false',
    last_update: '2022-12-23T14:39:12+0100',
    localized: 'Reservation context feature'
  },
  {
    name: 'family_account',
    value: 'false',
    last_update: '2023-03-31T14:39:12+0100',
    localized: 'Family account'
  }
];

export const buildHistoryItem = (setting: Setting): HistoryValue => {
  const user = _sample(admins);
  return {
    id: Math.ceil(Math.random() * 1000),
    value: setting.value,
    user: {
      id: user.id,
      name: user.name
    },
    created_at: setting.last_update
  };
};
