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EAAA,UACAC,EAAA,UACAC,EAAA,UACAC,EAAA,UACAzN,EAAA,UACAC,EAAA,UACAC,EAAA,UACAE,GAAA,UACAsN,GAAA,6DACAC,GAAA,kDACAC,GAAA,OACAC,GAAA,OACAC,GAAA,UACAC,GAAA,UACAC,GAAA,UACAC,GAAA,UACAC,GAAA,UACAC,GAAA,OACAC,GAAA,UACAC,GAAA,UACAC,GAAA,UACAC,GAAA,UACAC,GAAA,UACAC,GAAA,uBACAC,GAAA,OACAC,GAAA,cACAC,GAAA,YACApP,GAAA,MACAqP,GAAA,MACAC,GAAA,MACAC,GAAA,OACAC,GAAA,MACAC,GAAA,MACAC,GAAA,IACAC,GAAA,KACAC,GAAA,KACAC,GAAA,KACAC,GAAA,KACAC,GAAA,KACAC,GAAA,KACP,MAAAzN,GAAA,m2DC5EA0N,EAAA,GAEAA,EAAAC,kBAA4BC,IAC5BF,EAAAG,cAAwBC,IACxBJ,EAAAK,OAAiBC,IAAArF,KAAa,aAC9B+E,EAAAO,OAAiBC,IACjBR,EAAAS,mBAA6BC,IAEhBC,IAAIC,EAAAC,GAAOb,GAKjB,MAAA1N,EAAesO,EAAAC,IAAWD,EAAAC,GAAOC,OAAUF,EAAAC,GAAOC,YAAA5J,o2DCbzD8I,EAAA,GAEAA,EAAAC,kBAA4BC,IAC5BF,EAAAG,cAAwBC,IACxBJ,EAAAK,OAAiBC,IAAArF,KAAa,aAC9B+E,EAAAO,OAAiBC,IACjBR,EAAAS,mBAA6BC,IAEhBC,IAAII,EAAAF,GAAOb,GAKjB,MAAA1N,EAAeyO,EAAAF,IAAWE,EAAAF,GAAOC,OAAUC,EAAAF,GAAOC,YAAA5J","sources":["webpack:///home/runner/work/actionpopulaire.fr/actionpopulaire.fr/agir/front/components/theme/ThemeProvider.js","webpack:///home/runner/work/actionpopulaire.fr/actionpopulaire.fr/agir/lib/components/utils/hooks.js","webpack:///home/runner/work/actionpopulaire.fr/actionpopulaire.fr/agir/lib/components/utils/logger.js","webpack:///home/runner/work/actionpopulaire.fr/actionpopulaire.fr/agir/front/components/genericComponents/_variables-dark.scss","webpack:///home/runner/work/actionpopulaire.fr/actionpopulaire.fr/agir/front/components/genericComponents/_variables-light.scss","webpack://Agir/./front/components/genericComponents/_variables-dark.scss?f339","webpack://Agir/./front/components/genericComponents/_variables-light.scss?fef0"],"sourcesContent":["import PropTypes from \"prop-types\";\nimport React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { createGlobalState } from \"react-use\";\nimport {\n  StyleSheetManager,\n  ThemeProvider as SCThemeProvider,\n  createGlobalStyle,\n} from \"styled-components\";\n\nimport { useLocalStorage } from \"@agir/lib/utils/hooks\";\n\nimport \"rsuite/DateRangePicker/styles/index.css\";\nimport * as LIGHT_STYLE from \"@agir/front/genericComponents/_variables-light.scss\";\nimport * as DARK_STYLE from \"@agir/front/genericComponents/_variables-dark.scss\";\n\nconst STYLESHEETMANAGER_DEFAULT_PROPS = {\n  enableVendorPrefixes: process.env.ENABLE_VENDOR_PREFIXES,\n};\n\nconst GlobalStyle = createGlobalStyle`\n  :root {\n    --safe-area-max-inset-bottom: env(safe-area-max-inset-bottom, 40px);\n    --bottom-bar-height: 72px;\n    --top-bar-height: 72px;\n\n      @media (max-width: ${(props) => props.theme.collapse}px) {\n          --top-bar-height: 54px;\n      }\n\n      --rs-primary-100: ${(props) => props.theme.primary500};\n      --rs-primary-500: ${(props) => props.theme.primary500};\n      --rs-primary-600: ${(props) => props.theme.primary600};\n      --rs-primary-700: ${(props) => props.theme.primary500};\n      --rs-primary-800: ${(props) => props.theme.primary600};\n      --rs-border-primary: ${(props) => props.theme.primary150}60;\n      --rs-bg-overlay: ${(props) => props.theme.background0};\n      \n      --rs-gray-800: ${(props) => props.theme.text1000};\n      --rs-gray-200: ${(props) => props.theme.text200};\n\n      --rs-calendar-range-bg: ${(props) => props.theme.primary100};\n\n      --rs-input-bg: ${(props) => props.theme.background0};\n  }\n\n  body {\n    padding-bottom: calc(var(--bottom-bar-height) + var(--safe-area-max-inset-bottom));\n    background-color: ${(props) => props.theme.background0};\n    color: ${(props) => props.theme.textColor};\n  }\n\n  a {\n    color: ${(props) => props.theme.linkColor};\n  }\n\n  a:hover,\n  a:focus {\n    color: ${(props) => props.theme.linkHoverColor};\n  }\n\n\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6 {\n    color: ${(props) => props.theme.textColor};\n  }\n\n  hr {\n    border-top-color: ${(props) => props.theme.text50};\n  }\n\n  mark {\n    color: ${(props) => props.theme.textColor};\n    background-color: ${(props) => props.theme.markColor};\n  }\n\n  input,\n  select,\n  textarea {\n    color: ${(props) => props.theme.textColor};\n    background-color: ${(props) => props.theme.background0};\n  }\n\n  button {\n    color: ${(props) => props.theme.textColor};\n    background-color: ${(props) => props.theme.background100};\n  }\n`;\n\nexport const getTheme = (colorScheme) =>\n  colorScheme === \"dark\" ? DARK_STYLE : LIGHT_STYLE;\n\nconst useGlobalSystemColorScheme = createGlobalState();\nconst useSystemColorScheme = () => {\n  const [systemColorScheme, setSystemColorScheme] =\n    useGlobalSystemColorScheme();\n\n  const updateSystemColorScheme = useCallback(() => {\n    const mode =\n      window.matchMedia &&\n      window.matchMedia(\"(prefers-color-scheme: dark)\").matches\n        ? \"dark\"\n        : \"light\";\n\n    if (mode !== systemColorScheme) {\n      setSystemColorScheme(mode);\n    }\n  }, []);\n\n  useEffect(() => {\n    window\n      .matchMedia(\"(prefers-color-scheme: dark)\")\n      .addEventListener(\"change\", updateSystemColorScheme);\n\n    updateSystemColorScheme();\n\n    return () =>\n      window\n        .matchMedia(\"(prefers-color-scheme: dark)\")\n        .removeEventListener(\"change\", updateSystemColorScheme);\n  }, [updateSystemColorScheme]);\n\n  return systemColorScheme;\n};\n\nexport const useGlobalColorScheme = createGlobalState();\nexport const useColorScheme = () => {\n  const systemColorScheme = useSystemColorScheme();\n  const [colorSchemeChoice, setColorSchemeChoice] = useLocalStorage(\n    \"AP__colorScheme\",\n    \"auto\",\n  );\n  const [globalColorScheme, setGlobalColorScheme] =\n    useGlobalColorScheme(colorSchemeChoice);\n\n  useEffect(() => {\n    if (colorSchemeChoice !== \"light\" && colorSchemeChoice !== \"dark\") {\n      setColorSchemeChoice(\"auto\");\n    }\n    setGlobalColorScheme(\n      colorSchemeChoice === \"auto\" ? systemColorScheme : colorSchemeChoice,\n    );\n  }, [colorSchemeChoice, setColorSchemeChoice, systemColorScheme]);\n\n  return [globalColorScheme, setColorSchemeChoice, colorSchemeChoice];\n};\n\nconst ThemeProvider = (props) => {\n  const { children, styleSheetManagerProps = {}, theme, ...rest } = props;\n\n  const [colorScheme] = useColorScheme();\n\n  const currentTheme = useMemo(() => {\n    const defaultTheme = getTheme(colorScheme);\n    if (!theme) {\n      return defaultTheme;\n    }\n    const customTheme = theme[colorScheme] || theme;\n    return { ...customTheme, default: defaultTheme };\n  }, [colorScheme, theme]);\n\n  useEffect(() => {\n    if (!colorScheme) {\n      return;\n    }\n    document.documentElement.classList.forEach(\n      (c) =>\n        c.startsWith(\"AP_mode__\") &&\n        document.documentElement.classList.remove(c),\n    );\n    document.documentElement.classList.add(`AP_mode__${colorScheme}`);\n  }, [colorScheme]);\n\n  return (\n    <StyleSheetManager\n      {...STYLESHEETMANAGER_DEFAULT_PROPS}\n      {...styleSheetManagerProps}\n    >\n      <SCThemeProvider theme={currentTheme} {...rest}>\n        <GlobalStyle />\n        {children}\n      </SCThemeProvider>\n    </StyleSheetManager>\n  );\n};\n\nThemeProvider.propTypes = {\n  children: PropTypes.node,\n  styleSheetManagerProps: PropTypes.object,\n};\n\nexport default ThemeProvider;\n","import { disableBodyScroll, clearAllBodyScrollLocks } from \"body-scroll-lock\";\nimport throttle from \"lodash/throttle\";\nimport debounce from \"lodash/debounce\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useIntersection, useUpdateEffect } from \"react-use\";\nimport ResizeObserver from \"resize-observer-polyfill\";\n\nimport logger from \"@agir/lib/utils/logger\";\n\nconst log = logger(__filename);\n\nexport const usePrevious = (value) => {\n  const ref = useRef(null);\n  useEffect(() => {\n    ref.current = value;\n  }, [value]);\n\n  return ref.current;\n};\n\n/**\n * Crée une version throttled de la fonction limite\n * Même si la fonction change, le throttling reste appliqué de\n * la même façon.\n *\n * Attention : changer la limite resette le throttling.\n *\n * @param {Function} func la fonction à throttler\n * @param {number} wait le nombre de millisecondes pour lesquelles throttler la fonction\n */\nexport const useThrottle = (func, wait) => {\n  const ref = useRef(null);\n  ref.current = func;\n\n  /* exhaustive-deps n'arrive pas à identifier automatiquement les dépendances\n     à cause de l'utilisation de la fonction externe throttle. On pourrait utiliser\n     useMemo à la place mais l'objectif poursuivi serait moins clair. */\n\n  // eslint-disable-next-line react-hooks/exhaustive-deps\n  return useCallback(\n    throttle((...args) => ref.current(...args), wait, {\n      leading: true,\n      trailing: true,\n    }),\n    [wait],\n  );\n};\n\n/**\n * Crée une version debounced de la fonction limite\n * Même si la fonction change, le debounced reste appliqué de\n * la même façon.\n *\n * Attention : changer la limite resette le debounce.\n *\n * @param {Function} func la fonction à debouncer\n * @param {number} wait le nombre de millisecondes pour lesquelles debouncer la fonction\n * @param {Array} deps éventuels paramètres supplémentaires dont le changement déclenche le \"reset\" du debounce.\n */\nexport const useDebounce = (func, wait, deps = []) => {\n  const ref = useRef(null);\n  ref.current = func;\n\n  /* L'utilisation d'une fonction arrow pour appeler ref.current, plutôt\n  que d'utiliser ref.current directe est délibérée ! Elle permet de s'assurer\n  que c'est la valeur actuelle de la référence qui est utilisée à chaque fois\n  que la fonction debounce s'active, alors qu'en indiquant directement ref.current,\n  ç'aurait été la version au moment de la production du callback qui aurait été\n  utilisée.\n\n  exhaustive-deps n'arrive pas à identifier les dépendances et est désactivé ici. */\n  // eslint-disable-next-line react-hooks/exhaustive-deps\n  return useCallback(\n    debounce((...args) => ref.current(...args), wait, {\n      leading: false,\n      trailing: true,\n    }),\n    [wait, ...deps],\n  );\n};\n\n/**\n * Permet de mettre en place l'exécution d'un callback tous les `delay` secondes\n *\n * @param {Function} callback le callback à appeler régulièrement\n * @param {number} delay le nombre de millisecondes d'attente entre deux invocation du callback\n *\n * En cas de changement du delay, l'intervalle actuel est supprimé et un nouvel intervalle est créé.\n * Par exemple, si on était à 10 ms de la prochaine exécution, même si on réduit la longueur de l'intervalle\n * de 1000 à 500, la prochaine exécution aura lieu dans 500 ms (et non dans 10).\n */\nexport const useInterval = function useInterval(callback, delay) {\n  const savedCallback = useRef();\n\n  // Remember the latest callback.\n  useEffect(() => {\n    savedCallback.current = callback;\n  }, [callback]);\n\n  // Set up the interval.\n  useEffect(() => {\n    function tick() {\n      savedCallback.current();\n    }\n\n    if (delay !== null) {\n      let id = setInterval(tick, delay);\n      return () => clearInterval(id);\n    }\n  }, [delay]);\n};\n\nexport const useDisableBodyScroll = (isActive, shouldDisable) => {\n  const targetRef = useRef(null);\n\n  useEffect(() => {\n    if (isActive && targetRef.current) {\n      shouldDisable\n        ? disableBodyScroll(targetRef.current, {\n            allowTouchMove: () => true,\n          })\n        : clearAllBodyScrollLocks();\n    }\n    return () => {\n      clearAllBodyScrollLocks();\n    };\n  }, [shouldDisable, isActive]);\n\n  return targetRef;\n};\n\nexport function useMeasure() {\n  const ref = useRef();\n  const [bounds, set] = useState({ left: 0, top: 0, width: 0, height: 0 });\n\n  const [resizeObserver] = useState(\n    () => new ResizeObserver(([entry]) => set(entry.contentRect)),\n  );\n\n  useEffect(() => {\n    if (!resizeObserver) {\n      return;\n    }\n    if (ref.current) {\n      resizeObserver.observe(ref.current);\n    }\n    return () => resizeObserver.disconnect();\n  }, [resizeObserver]);\n\n  return [{ ref }, bounds];\n}\n\nexport const useLocalStorage = (key, initialValue) => {\n\n  const getCurrentValue = useCallback(() => {\n    const item = window.localStorage.getItem(key);\n    return item ? JSON.parse(item) : initialValue;\n  }, [key])\n\n  const [storedValue, setStoredValue] = useState(() => {\n    try {\n      return getCurrentValue()\n    } catch (error) {\n      log.debug(error);\n      return initialValue;\n    }\n  });\n\n  const refresh = useCallback(() => {\n    setStoredValue(getCurrentValue())\n  }, [key]);\n\n  const update = useCallback((value) => {\n    try {\n      setStoredValue(value);\n      window.localStorage.setItem(key, JSON.stringify(value));\n    } catch (error) {\n      log.debug(error);\n    }\n  }, []);\n\n  const remove = useCallback(() => {\n    try {\n      setStoredValue(undefined);\n      window.localStorage.clearItem(key);\n    } catch (error) {\n      log.debug(error);\n    }\n  }, []);\n\n  return [storedValue, update, remove, refresh];\n};\n\n/**\n * Custom hook to implement an infinite scroll via an IntersectionObserver\n * @param  {function}  loadMore      a function to load more items or a falsy value to stop the infinite scroll\n * @param  {Boolean} isLoadingMore a boolean indicating if more items are being loaded\n * @return {function}                a React ref to use on the last item node of a list - once the node is on screen the loadMore function will\n *                                   be called unless isLoadingMore is true\n */\nexport const useInfiniteScroll = (loadMore, isLoadingMore) => {\n  const intersectionRef = useRef(null);\n  const intersection = useIntersection(intersectionRef, {\n    root: null,\n    rootMargin: \"0px\",\n    threshold: 1,\n  });\n\n  useEffect(() => {\n    !isLoadingMore && loadMore && intersection?.isIntersecting && loadMore();\n  }, [intersection, isLoadingMore, loadMore]);\n\n  return intersectionRef;\n};\n\n/**\n * Custom React hook to preload an image file and use its loading state\n * @param  {string} src  The image file URL\n * @return {boolean}     Whether the image file has been downloaded yet or not\n */\nexport const useImageLoad = (src) => {\n  const [isLoaded, setIsLoaded] = useState(false);\n\n  useEffect(() => {\n    setIsLoaded(false);\n    const onReady = () => {\n      setIsLoaded(true);\n    };\n    const placeholder = new Image();\n    placeholder.addEventListener(\"load\", onReady);\n    placeholder.addEventListener(\"error\", onReady);\n    placeholder.src = src;\n\n    return () => {\n      placeholder.removeEventListener(\"load\", onReady);\n      placeholder.removeEventListener(\"error\", onReady);\n    };\n  }, [src]);\n\n  return isLoaded;\n};\n\nexport const getFocusableElements = (parent) => {\n  if (!parent) {\n    return [];\n  }\n  return [\n    ...parent.querySelectorAll(\n      'a[href], button, textarea, input[type=\"text\"], input[type=\"radio\"], input[type=\"checkbox\"], select',\n    ),\n  ].filter(\n    (elem) =>\n      !elem.disabled &&\n      !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length),\n  );\n};\n\nexport const useFocusTrap = (isTrapped) => {\n  const targetElementRef = useRef(null);\n  const handleTabKey = useCallback((e) => {\n    if (!targetElementRef.current) {\n      return;\n    }\n    const focusableModalElements = getFocusableElements(\n      targetElementRef.current,\n    );\n    const firstElement = focusableModalElements[0];\n    const lastElement =\n      focusableModalElements[focusableModalElements.length - 1];\n    if (!e.shiftKey && document.activeElement === lastElement) {\n      firstElement.focus();\n      e.preventDefault();\n    }\n    if (e.shiftKey && document.activeElement === firstElement) {\n      lastElement.focus();\n      e.preventDefault();\n    }\n  }, []);\n\n  const keyListenersMap = useMemo(\n    () => new Map([[9, handleTabKey]]),\n    [handleTabKey],\n  );\n\n  useEffect(() => {\n    const keyListener = (e) => {\n      const listener = keyListenersMap.get(e.keyCode);\n      return listener && listener(e);\n    };\n    if (isTrapped && targetElementRef.current) {\n      document.addEventListener(\"keydown\", keyListener);\n      const firstElement = getFocusableElements(targetElementRef.current)[0];\n      firstElement ? firstElement.focus() : targetElementRef.current.focus();\n    }\n\n    return () => document.removeEventListener(\"keydown\", keyListener);\n  }, [isTrapped, keyListenersMap]);\n\n  return targetElementRef;\n};\n\nexport const useResizeObserver = (ref, callback) => {\n  const [width, setWidth] = useState();\n  const [height, setHeight] = useState();\n\n  const handleResize = useCallback(\n    (entries) => {\n      if (!Array.isArray(entries)) {\n        return;\n      }\n\n      const entry = entries[0];\n      const width = entry.contentRect.width;\n      const height = entry.contentRect.height;\n\n      setWidth(width);\n      setHeight(height);\n\n      if (callback) {\n        callback(entry.contentRect);\n      }\n    },\n    [callback],\n  );\n\n  useEffect(() => {\n    if (!ref.current) {\n      return;\n    }\n\n    let ROEntries = [];\n    let RO = new ResizeObserver((entries) => {\n      ROEntries = entries;\n      window.requestAnimationFrame(() => handleResize(entries));\n    });\n    ref.current && RO.observe(ref.current);\n\n    return () => {\n      ROEntries.forEach((entry) => entry.target.remove());\n      RO.disconnect();\n    };\n  }, [ref, handleResize]);\n\n  return { width, height };\n};\n","import debug from \"debug\";\n\nconst generateLogger = (filename) => ({\n  debug: debug(`agir:${filename.replace(\"/\", \":\").replace(\".js\", \"\")}`),\n  warn: console.warn.bind(console),\n  info: console.info.bind(console),\n  error: console.error.bind(console),\n});\n\nexport default generateLogger;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, ``, \"\",{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"sourceRoot\":\"\"}]);\n// Exports\nexport var background0 = `#111112`;\nexport var background25 = `#2d2d2d`;\nexport var background50 = `#4a4a4a`;\nexport var background75 = `#4c4b52`;\nexport var background100 = `#707070`;\nexport var background200 = `#959595`;\nexport var backgroun500 = `#dfdfdf`;\nexport var background700 = `#eaeaea`;\nexport var text1000 = `#fdfdfd`;\nexport var text700 = `#eaeaea`;\nexport var text500 = `#dfdfdf`;\nexport var text200 = `#959595`;\nexport var text100 = `#707070`;\nexport var text50 = `#4a4a4a`;\nexport var text25 = `#2d2d2d`;\nexport var primary500 = `#d2b9ff`;\nexport var primary600 = `#ab8cff`;\nexport var primary150 = `#3a11aa`;\nexport var primary100 = `#2c0d80`;\nexport var primary50 = `#1d0955`;\nexport var secondary600 = `#a39f1a`;\nexport var secondary500 = `#7b7714`;\nexport var secondary100 = `#313008`;\nexport var success500 = `#3db37b`;\nexport var success200 = `#b4ffdb`;\nexport var success100 = `#0b5230`;\nexport var error500 = `#f07c8e`;\nexport var error100 = `#751d2b`;\nexport var vermillon = `#ff5e35`;\nexport var LFIprimary600 = `#d198f6`;\nexport var LFIprimary500 = `#c763ff`;\nexport var LFIprimary150 = `#763f9e`;\nexport var LFIprimary100 = `#542b7d`;\nexport var LFIsecondary600 = `#ffbba8`;\nexport var LFIsecondary500 = `#f91616`;\nexport var LFIsecondary150 = `#794747`;\nexport var LFIsecondary100 = `#600`;\nexport var soutienPrimary = `#ab8cff`;\nexport var soutienSecondary = `#d1271c`;\nexport var soutienLight = `#e5cbff`;\nexport var referralPink = `#f831a0`;\nexport var materielBlue = `#38a5f4`;\nexport var votingProxyOrange = `#ea610b`;\nexport var PULBleu = `#3f2682`;\nexport var textColor = `#fdfdfd`;\nexport var linkColor = `#d2b9ff`;\nexport var linkHoverColor = `#ab8cff`;\nexport var markColor = `#7b7714`;\nexport var elaborateShadow = `0px 0px 3px rgba(0,35,44,.1),0px 2px 0px rgba(0,35,44,.08)`;\nexport var cardShadow = `0px 0px 1px 0px #959595,0px 1px 1px 0px #707070`;\nexport var mapFilter = `invert(90%) hue-rotate(180deg) brightness(1.5)`;\nexport var white = `#fff`;\nexport var black = `#000a2c`;\nexport var facebook = `#1778f2`;\nexport var facebookLight = `#bbdbff`;\nexport var twitter = `#1da1f2`;\nexport var whatsapp = `#24cc63`;\nexport var telegram = `#08c`;\nexport var nupesBlue = `#502582`;\nexport var nupesRed = `#f53b3b`;\nexport var nupesPink = `#f831a0`;\nexport var nupesGreen = `#34ad6c`;\nexport var nupesYellow = `#ffec00`;\nexport var fontFamilyBase = `\"Poppins\",sans-serif`;\nexport var fontSizeBase = `16px`;\nexport var lineHeightBase = `1.428571429`;\nexport var linkHoverDecoration = `underline`;\nexport var collapse = `992`;\nexport var collapseSmallMobile = `360`;\nexport var collapseMobile = `992`;\nexport var collapseTablet = `1282`;\nexport var softBorderRadius = `4px`;\nexport var borderRadius = `8px`;\nexport var zindexMainContent = `2`;\nexport var zindexTopBar = `10`;\nexport var zindexBottomBar = `10`;\nexport var zindexNavigationCounter = `10`;\nexport var zindexModal = `20`;\nexport var zindexPanel = `20`;\nexport var zindexFeedbackButton = `15`;\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, ``, \"\",{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"sourceRoot\":\"\"}]);\n// Exports\nexport var background0 = `#fff`;\nexport var background25 = `#f9f9f9`;\nexport var background50 = `#eee`;\nexport var background75 = `#f5f5f5`;\nexport var background100 = `#dfdfdf`;\nexport var background200 = `#c4c4c4`;\nexport var backgroun500 = `#777`;\nexport var background700 = `#4f4f4f`;\nexport var text1000 = `#000a2c`;\nexport var text700 = `#4f4f4f`;\nexport var text500 = `#777`;\nexport var text200 = `#c4c4c4`;\nexport var text100 = `#dfdfdf`;\nexport var text50 = `#eee`;\nexport var text25 = `#fafafa`;\nexport var primary500 = `#571aff`;\nexport var primary600 = `#4d26b9`;\nexport var primary150 = `#cbbfec`;\nexport var primary100 = `#e9e1ff`;\nexport var primary50 = `#f6f2fc`;\nexport var secondary600 = `#f5e30f`;\nexport var secondary500 = `#f4ed0f`;\nexport var secondary100 = `#fcfbd9`;\nexport var success500 = `#16a460`;\nexport var success200 = `#b4ffdb`;\nexport var success100 = `#d9ffed`;\nexport var error500 = `#e93a55`;\nexport var error100 = `#fdecee`;\nexport var vermillon = `#ff5e35`;\nexport var LFIprimary600 = `#200054`;\nexport var LFIprimary500 = `#7b13d6`;\nexport var LFIprimary150 = `#fdbcff`;\nexport var LFIprimary100 = `#fdbcff`;\nexport var LFIsecondary600 = `#d31529`;\nexport var LFIsecondary500 = `#f91616`;\nexport var LFIsecondary150 = `#efa79c`;\nexport var LFIsecondary100 = `#ffe5dd`;\nexport var soutienPrimary = `#4c0297`;\nexport var soutienSecondary = `#d1271c`;\nexport var soutienLight = `#e5cbff`;\nexport var referralPink = `#f831a0`;\nexport var materielBlue = `#38a5f4`;\nexport var votingProxyOrange = `#ea610b`;\nexport var PULBleu = `#3f2682`;\nexport var textColor = `#000a2c`;\nexport var linkColor = `#571aff`;\nexport var linkHoverColor = `#4d26b9`;\nexport var markColor = `#f6f2fc`;\nexport var elaborateShadow = `0px 0px 3px rgba(0,35,44,.1),0px 2px 0px rgba(0,35,44,.08)`;\nexport var cardShadow = `0px 0px 1px 0px #c4c4c4,0px 1px 1px 0px #dfdfdf`;\nexport var mapFilter = `none`;\nexport var white = `#fff`;\nexport var black = `#000a2c`;\nexport var facebook = `#1778f2`;\nexport var facebookLight = `#bbdbff`;\nexport var twitter = `#1da1f2`;\nexport var whatsapp = `#24cc63`;\nexport var telegram = `#08c`;\nexport var nupesBlue = `#502582`;\nexport var nupesRed = `#f53b3b`;\nexport var nupesPink = `#f831a0`;\nexport var nupesGreen = `#34ad6c`;\nexport var nupesYellow = `#ffec00`;\nexport var fontFamilyBase = `\"Poppins\",sans-serif`;\nexport var fontSizeBase = `16px`;\nexport var lineHeightBase = `1.428571429`;\nexport var linkHoverDecoration = `underline`;\nexport var collapse = `992`;\nexport var collapseSmallMobile = `360`;\nexport var collapseMobile = `992`;\nexport var collapseTablet = `1282`;\nexport var softBorderRadius = `4px`;\nexport var borderRadius = `8px`;\nexport var zindexMainContent = `2`;\nexport var zindexTopBar = `10`;\nexport var zindexBottomBar = `10`;\nexport var zindexNavigationCounter = `10`;\nexport var zindexModal = `20`;\nexport var zindexPanel = `20`;\nexport var zindexFeedbackButton = `15`;\nexport default ___CSS_LOADER_EXPORT___;\n","\n      import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n      import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n      import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n      import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n      import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n      import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n      import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../../../node_modules/sass-loader/dist/cjs.js!./_variables-dark.scss\";\n      \n      \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../../../node_modules/sass-loader/dist/cjs.js!./_variables-dark.scss\";\n       export default content && content.locals ? content.locals : undefined;\n","\n      import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n      import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n      import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n      import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n      import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n      import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n      import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../../../node_modules/sass-loader/dist/cjs.js!./_variables-light.scss\";\n      \n      \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../../../node_modules/sass-loader/dist/cjs.js!./_variables-light.scss\";\n       export default content && content.locals ? content.locals : undefined;\n"],"names":["STYLESHEETMANAGER_DEFAULT_PROPS","enableVendorPrefixes","process","GlobalStyle","createGlobalStyle","props","theme","collapse","primary500","primary600","primary150","background0","text1000","text200","primary100","textColor","linkColor","linkHoverColor","text50","markColor","background100","getTheme","colorScheme","DARK_STYLE","LIGHT_STYLE","useGlobalSystemColorScheme","createGlobalState","useGlobalColorScheme","useColorScheme","systemColorScheme","useSystemColorScheme","setSystemColorScheme","updateSystemColorScheme","useCallback","mode","window","matchMedia","matches","useEffect","addEventListener","removeEventListener","colorSchemeChoice","setColorSchemeChoice","useLocalStorage","globalColorScheme","setGlobalColorScheme","__WEBPACK_DEFAULT_EXPORT__","children","styleSheetManagerProps","rest","_objectWithoutProperties","_excluded","currentTheme","useMemo","defaultTheme","_objectSpread","default","document","documentElement","classList","forEach","c","startsWith","remove","add","React","StyleSheetManager","_extends","SCThemeProvider","log","logger","usePrevious","value","ref","useRef","current","useThrottle","func","wait","throttle","args","leading","trailing","useDebounce","deps","debounce","useDisableBodyScroll","isActive","shouldDisable","targetRef","disableBodyScroll","allowTouchMove","clearAllBodyScrollLocks","useMeasure","bounds","set","useState","left","top","width","height","resizeObserver","ResizeObserver","entry","contentRect","observe","disconnect","key","initialValue","getCurrentValue","item","localStorage","getItem","JSON","parse","storedValue","setStoredValue","error","debug","refresh","setItem","stringify","undefined","clearItem","useInfiniteScroll","loadMore","isLoadingMore","intersectionRef","intersection","useIntersection","root","rootMargin","threshold","isIntersecting","useImageLoad","src","isLoaded","setIsLoaded","onReady","placeholder","Image","getFocusableElements","parent","querySelectorAll","filter","elem","disabled","offsetWidth","offsetHeight","getClientRects","length","useFocusTrap","isTrapped","targetElementRef","handleTabKey","e","focusableModalElements","firstElement","lastElement","shiftKey","activeElement","focus","preventDefault","keyListenersMap","Map","keyListener","listener","get","keyCode","useResizeObserver","callback","setWidth","setHeight","handleResize","entries","Array","isArray","ROEntries","RO","requestAnimationFrame","target","filename","replace","warn","console","bind","info","___CSS_LOADER_EXPORT___","_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default","_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default","push","module","id","version","sources","names","mappings","sourceRoot","background25","background50","background75","background200","backgroun500","background700","text700","text500","text100","text25","primary50","secondary600","secondary500","secondary100","success500","success200","success100","error500","error100","vermillon","LFIprimary600","LFIprimary500","LFIprimary150","LFIprimary100","LFIsecondary600","LFIsecondary500","LFIsecondary150","LFIsecondary100","soutienPrimary","soutienSecondary","soutienLight","referralPink","materielBlue","votingProxyOrange","PULBleu","elaborateShadow","cardShadow","mapFilter","white","black","facebook","facebookLight","twitter","whatsapp","telegram","nupesBlue","nupesRed","nupesPink","nupesGreen","nupesYellow","fontFamilyBase","fontSizeBase","lineHeightBase","linkHoverDecoration","collapseSmallMobile","collapseMobile","collapseTablet","softBorderRadius","borderRadius","zindexMainContent","zindexTopBar","zindexBottomBar","zindexNavigationCounter","zindexModal","zindexPanel","zindexFeedbackButton","options","styleTagTransform","_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default","setAttributes","_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default","insert","_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default","domAPI","_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default","insertStyleElement","_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default","_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_sass_loader_dist_cjs_js_variables_dark_scss__WEBPACK_IMPORTED_MODULE_6__","Ay","locals","_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_sass_loader_dist_cjs_js_variables_light_scss__WEBPACK_IMPORTED_MODULE_6__"],"sourceRoot":""}