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C3BvE,OACAoE,UACAT,QACAI,gBACAM,iBAEA,MAAOlN,EAAOqN,IAAYC,EAAAA,EAAAA,UAASL,GAEnC,OACExL,EAAAA,cAAAA,EAAAA,SAAA,KACEA,EAAAA,cAAA,SAAO8F,KAAK,SAASsB,KAAMA,EAAM7I,MAAO4M,EAAc5M,KACtDyB,EAAAA,cAAC+K,GAAK7K,EAAAA,EAAAA,GAAA,CAAC3B,MAAOA,EAAOc,SAAUuM,GAAcH,MAetCC,EAAuBA,CAACI,EAAWC,KAC9CA,GACEC,EAAAA,OAAgBhM,EAAAA,cAACA,EAAAA,WAAgB,KAAE8L,GAA+BC,IAGzD7E,EAAYA,IAAI+E,KAC3B,MAAMC,EAAeD,EAAKpN,OAAOC,SACjC,OAAKoN,EAAa7E,OACU,IAAxB6E,EAAa7E,OAAqB6E,EAAa,GAC3CC,IACN,IAAK,MAAMtG,KAAOqG,EACG,mBAARrG,EACTA,EAAIsG,GACKtG,IACTA,EAAIe,QAAUuF,IAPa,MAatBC,EAAchN,GACzBV,OAAO2N,QAAQjN,GACZP,OAAO,EAAEyN,MAAOC,EAAAA,EAAAA,GAAYD,IAC5BE,OAAO,CAACC,GAAIH,EAAGI,KAAElJ,EAAAA,EAAA,GAAWiJ,GAAC,IAAEH,EAAGI,IAAM,CAAC","sources":["webpack:///home/runner/work/actionpopulaire.fr/actionpopulaire.fr/agir/front/components/formComponents/CountryField.js","webpack:///home/runner/work/actionpopulaire.fr/actionpopulaire.fr/agir/front/components/formComponents/SelectField.js","webpack:///home/runner/work/actionpopulaire.fr/actionpopulaire.fr/agir/front/components/formComponents/TextField.js","webpack:///home/runner/work/actionpopulaire.fr/actionpopulaire.fr/agir/front/components/genericComponents/FaIcon.js","webpack:///home/runner/work/actionpopulaire.fr/actionpopulaire.fr/agir/lib/components/utils/fontawesome.js","webpack:///home/runner/work/actionpopulaire.fr/actionpopulaire.fr/agir/lib/components/utils/react.js"],"sourcesContent":["import countries from \"localized-countries/data/fr\";\n\nimport PropTypes from \"prop-types\";\nimport React, { useCallback, useMemo } from \"react\";\n\nimport SelectField from \"@agir/front/formComponents/SelectField\";\n\nconst FIRST_COUNTRY_CODES = [\"FR\", \"PT\", \"DZ\", \"MA\", \"TR\", \"IT\", \"GB\", \"ES\"];\n\nconst FIRST_COUNTRIES = FIRST_COUNTRY_CODES.map((countryCode) => ({\n  value: countryCode,\n  label: countries[countryCode],\n}));\n\nconst OTHER_COUNTRIES = Object.keys(countries)\n  .map((countryCode) => {\n    if (!FIRST_COUNTRY_CODES.includes(countryCode)) {\n      return {\n        value: countryCode,\n        label: countries[countryCode],\n      };\n    }\n  })\n  .filter(Boolean)\n  .sort(({ label: label1 }, { label: label2 }) => label1.localeCompare(label2));\n\nexport const COUNTRIES = [...FIRST_COUNTRIES, ...OTHER_COUNTRIES];\n\nconst CountryField = (props) => {\n  const { onChange, value, ...rest } = props;\n\n  const handleChange = useCallback(\n    (country) => {\n      onChange && onChange(country && country.value);\n    },\n    [onChange],\n  );\n\n  const selectedCountry = useMemo(() => {\n    return value && COUNTRIES.find((c) => c.value === value);\n  }, [value]);\n\n  return (\n    <SelectField\n      {...rest}\n      isSearchable\n      autoComplete=\"country-name\"\n      value={selectedCountry}\n      options={COUNTRIES}\n      onChange={handleChange}\n    />\n  );\n};\nCountryField.propTypes = {\n  onChange: PropTypes.func,\n  value: PropTypes.oneOf([\"\", ...Object.keys(countries)]),\n};\nexport default CountryField;\n","import PropTypes from \"prop-types\";\nimport React, { useCallback } from \"react\";\nimport Select, { components, createFilter } from \"react-select\";\nimport styled, { keyframes, useTheme, css } from \"styled-components\";\n\nimport { useResponsiveMemo } from \"@agir/front/genericComponents/grid\";\n\nconst customFilterOptions = (candidate, input) =>\n  candidate.data.fixed || createFilter()(candidate, input);\n\nconst slideIn = keyframes`\n  from {\n    opacity: 0;\n    transform: translateY(100%);\n  }\n  to {\n    opacity: 1;\n    transform: translateY(0);\n  }\n`;\n\nconst StyledLabel = styled.span``;\nconst StyledHelpText = styled.span``;\nconst StyledError = styled.span``;\nconst StyledMenuList = styled.div``;\n\nconst BackgroundOpacity = styled.div`\n  @media (max-width: ${(props) => props.theme.collapse}px) {\n    z-index: -1;\n    height: 100vh;\n    width: 100vw;\n    position: fixed;\n    top: 0;\n    left: 0;\n    background-color: black;\n  }\n`;\n\nconst CustomMenu = (props) => (\n  <components.Menu {...props}>\n    {props.children}\n    <BackgroundOpacity />\n  </components.Menu>\n);\n\nconst StyledField = styled.label`\n  display: flex;\n  ${({ $asRow }) =>\n    $asRow ? `align-items: center;` : `flex-flow: column nowrap;`};\n  gap: 0.5rem;\n  font-size: 1rem;\n  font-weight: 400;\n  line-height: 1;\n  margin-bottom: 0;\n\n  ${StyledLabel} {\n    font-weight: 600;\n    min-width: 70px;\n  }\n\n  & > div {\n    width: 100%;\n  }\n\n  ${StyledHelpText} {\n    line-height: 1.5;\n    ${({ theme, $variant }) => {\n      if ($variant === \"lfi\") {\n        return css`\n          color: ${theme.text500};\n        `;\n      }\n    }}\n  }\n\n  .select__indicator-separator {\n    display: none;\n  }\n  .select__dropdown-indicator {\n    color: ${({ $invalid, theme }) =>\n      $invalid ? theme.error500 : theme.text100};\n  }\n\n  .select__control {\n    border-radius: ${({ theme, $variant }) =>\n      $variant === \"lfi\" ? 0 : theme.softBorderRadius};\n    border: 1px solid;\n    max-width: 100%;\n    min-height: 2.5rem;\n    line-height: 1.5;\n    font-size: ${({ $small }) => ($small ? \"0.875rem\" : \"1rem\")};\n    font-weight: ${({ $small }) => ($small ? \"600\" : \"auto\")};\n    background-color: ${(props) => props.theme.background0};\n    color: ${(props) => props.theme.text1000};\n\n    &,\n    &:hover,\n    &:focus,\n    &.select__control--is-focused {\n      outline: none;\n      box-shadow: none;\n      border-color: ${({ $invalid, theme }) =>\n        $invalid ? theme.error500 : theme.text100};\n    }\n\n    &:focus,\n    &.select__control--is-focused {\n      border-color: ${({ $invalid, theme }) =>\n        $invalid ? theme.error500 : theme.text500};\n    }\n\n    &.select__control--is-disabled {\n      background-color: ${(props) => props.theme.text100};\n    }\n\n    .select__input-container,\n    .select__single-value {\n      color: ${(props) => props.theme.text1000};\n    }\n\n    & .select__placeholder {\n      white-space: nowrap;\n      text-overflow: ellipsis;\n      overflow: hidden;\n    }\n  }\n\n  .select__menu {\n    background-color: ${(props) => props.theme.background0};\n    color: ${(props) => props.theme.text1000};\n    border: 1px solid ${(props) => props.theme.text100};\n    box-shadow: 0px 3px 2px rgba(0, 35, 44, 0.05);\n    margin-top: 0;\n    border-radius: 0;\n    padding: 0;\n\n    @media (max-width: ${(props) => props.theme.collapse}px) {\n      position: fixed;\n      bottom: 0;\n      top: unset;\n      left: 0;\n      right: 0;\n      width: 100%;\n      margin: 0;\n      max-height: 40vh;\n      border-radius: ${(props) => props.theme.borderRadius}\n        ${(props) => props.theme.borderRadius} 0 0;\n      overflow-x: hidden;\n      overflow-y: auto;\n      animation: ${slideIn} 200ms ease-out;\n    }\n  }\n\n  ${BackgroundOpacity} {\n    @media (max-width: ${(props) => props.theme.collapse}px) {\n      display: block;\n      opacity: ${(props) => (props.$searchable ? 0.15 : 0.5)};\n    }\n  }\n\n  .select__menu-list {\n    @media (max-width: ${(props) => props.theme.collapse}px) {\n      padding-bottom: 60px;\n      max-height: 100%;\n    }\n\n    @media (max-width: ${(props) => props.theme.collapse}px) {\n      padding-top: 10px;\n      background-color: ${(props) => props.theme.background0};\n    }\n\n    footer {\n      position: absolute;\n      bottom: 0;\n      width: 100%;\n      display: none;\n\n      @media (max-width: ${(props) => props.theme.collapse}px) {\n        display: block;\n        z-index: 1;\n        box-shadow: -10px -10px 15px ${(props) => props.theme.background0};\n      }\n\n      &::before {\n        content: \"\";\n        display: block;\n        width: 80%;\n        height: 1px;\n        margin: 0 auto;\n        background-color: ${(props) => props.theme.text200};\n      }\n\n      button {\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        background-color: ${(props) => props.theme.background0};\n        box-shadow: none;\n        border: none;\n        height: 54px;\n        font-size: inherit;\n        width: 100%;\n        cursor: pointer;\n      }\n    }\n  }\n\n  .select__option {\n    padding: 10px 1rem;\n    display: flex;\n    align-items: center;\n    line-height: 1.2;\n    cursor: pointer;\n\n    ${(props) =>\n      props.$noWrapOptions\n        ? `\n        display: block;\n        max-width: 100%;\n        white-space: nowrap;\n        overflow: hidden;\n        text-overflow: ellipsis;\n    `\n        : \"\"}\n\n    &.select__option--is-selected {\n      background-color: transparent;\n      color: ${(props) => props.theme.primary500};\n    }\n\n    &.select__option--is-focused {\n      color: ${(props) => props.theme.background0};\n      background-color: ${(props) => props.theme.primary500};\n    }\n  }\n\n  .select__multi-value {\n    color: ${(props) => props.theme.background0};\n    background-color: ${(props) => props.theme.primary500};\n\n    .select__multi-value__label {\n      color: inherit;\n      font-weight: 600;\n    }\n\n    .select__multi-value__remove {\n      cursor: pointer;\n\n      &:hover,\n      &:focus {\n        color: ${(props) => props.theme.background0};\n        background-color: ${(props) => props.theme.primary600};\n      }\n    }\n  }\n\n  ${StyledError} {\n    line-height: 1.3;\n    display: ${({ $invalid }) => ($invalid ? \"flex\" : \"none\")};\n    color: ${(props) => props.theme.error500};\n  }\n`;\n\nconst SelectMenuList = (props) => {\n  const {\n    setValue,\n    selectProps: { value },\n  } = props;\n\n  const handleClick = useCallback(() => {\n    setValue(value || null);\n  }, [setValue, value]);\n\n  return (\n    <StyledMenuList>\n      <components.MenuList {...props} />\n      <footer>\n        <button type=\"button\" onClick={handleClick}>\n          Fermer\n        </button>\n      </footer>\n    </StyledMenuList>\n  );\n};\nSelectMenuList.propTypes = {\n  setValue: PropTypes.func,\n  selectProps: PropTypes.shape({\n    value: PropTypes.any,\n  }),\n};\n\nconst SelectField = (props) => {\n  const {\n    id,\n    onChange,\n    value = \"\",\n    error,\n    label,\n    helpText,\n    options,\n    isSearchable,\n    small,\n    noWrapOptions,\n    variant,\n    style,\n    asRow,\n    ...rest\n  } = props;\n\n  const theme = useTheme();\n\n  const selectFieldTheme = useCallback(\n    (t) => ({\n      ...t,\n      colors: {\n        ...t.colors,\n        primary: theme.primary500,\n        primary25: theme.text100,\n      },\n    }),\n    [theme],\n  );\n\n  const maxMenuHeight = useResponsiveMemo(isSearchable ? 124 : 238, 238);\n\n  return (\n    <StyledField\n      htmlFor={id}\n      $valid={!error}\n      $invalid={!!error}\n      $empty={!!value}\n      $searchable={!!isSearchable}\n      $small={small}\n      $noWrapOptions={noWrapOptions}\n      $variant={variant}\n      $asRow={asRow}\n      style={style}\n    >\n      {label && <StyledLabel>{label}</StyledLabel>}\n      {helpText && <StyledHelpText>{helpText}</StyledHelpText>}\n      <Select\n        {...rest}\n        noOptionsMessage={() => \"Aucune option disponible\"}\n        maxMenuHeight={maxMenuHeight}\n        classNamePrefix=\"select\"\n        isDisabled={!!rest.disabled}\n        isSearchable={!!isSearchable}\n        inputId={id}\n        options={options}\n        onChange={onChange}\n        value={value}\n        theme={selectFieldTheme}\n        captureMenuScroll={false}\n        menuShouldScrollIntoView={false}\n        components={{\n          Menu: CustomMenu,\n        }}\n        filterOption={customFilterOptions}\n      />\n      <StyledError>{error}</StyledError>\n    </StyledField>\n  );\n};\n\nSelectField.propTypes = {\n  value: PropTypes.any,\n  onChange: PropTypes.func,\n  options: PropTypes.arrayOf(PropTypes.object),\n  id: PropTypes.string,\n  label: PropTypes.node,\n  helpText: PropTypes.node,\n  error: PropTypes.node,\n  isSearchable: PropTypes.bool,\n  small: PropTypes.bool,\n  noWrapOptions: PropTypes.bool,\n};\n\nexport default SelectField;\n","import PropTypes from \"prop-types\";\nimport React, { forwardRef, useCallback, useLayoutEffect, useRef } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { mergeRefs } from \"@agir/lib/utils/react\";\n\nimport FeatherIcon from \"@agir/front/genericComponents/FeatherIcon\";\nimport FaIcon from \"../genericComponents/FaIcon\";\n\nconst StyledLabel = styled.span``;\nconst StyledHelpText = styled.span``;\nconst StyledIcon = styled(FaIcon)``;\nconst StyledInput = styled.input``;\nconst StyledTextArea = styled.textarea``;\nconst StyledErrorIcon = styled.span``;\nconst StyledCounter = styled.span`\n  color: ${({ $invalid, theme }) => ($invalid ? theme.error500 : \"inherit\")};\n`;\nconst StyledError = styled.span``;\n\nexport const FieldRequiredLabelMixin = css`\n  ${({ $required, theme }) => {\n    if ($required) {\n      return css`\n        &::after {\n          color: ${theme.LFIsecondary500};\n          content: \"*\";\n        }\n      `;\n    }\n  }}\n`;\n\nexport const StyledField = styled.label`\n  display: grid;\n  grid-template-columns: 1fr auto;\n  grid-template-rows: auto auto auto auto;\n  grid-gap: 4px 0.75rem;\n  align-items: stretch;\n  font-size: ${({ $small }) => ($small ? \"0.875rem\" : \"1rem\")};\n  font-weight: 400;\n  line-height: 1;\n  margin-bottom: 0;\n\n  ${StyledLabel} {\n    grid-row: 1;\n    grid-column: 1/3;\n    font-weight: 600;\n\n    ${FieldRequiredLabelMixin}\n  }\n  ${StyledHelpText} {\n    grid-row: 2;\n    grid-column: 1/3;\n    line-height: 1.5;\n  }\n\n  ${StyledIcon} {\n    grid-row: 3;\n    grid-column: ${({ $iconRight }) => ($iconRight ? \"2\" : \"1/1\")};\n    width: 3rem;\n    font-size: ${({ $large }) => ($large ? \"2rem\" : \"1rem\")};\n    justify-content: center;\n    color: ${({ $invalid, theme }) =>\n      $invalid ? theme.error500 : theme.text500};\n    z-index: 2;\n  }\n\n  ${StyledInput}, ${StyledTextArea} {\n    grid-row: 3;\n    grid-column: 1/3;\n    border-radius: ${({ theme, $variant }) =>\n      $variant === \"lfi\" ? 0 : theme.softBorderRadius};\n    border: 1px solid;\n    border-color: ${({ $invalid, theme }) =>\n      $invalid ? theme.error500 : theme.text100};\n    max-width: 100%;\n    padding: 0.5rem;\n    padding-left: ${({ $icon, $iconRight, $large }) =>\n      $icon ? ($iconRight ? \"1rem\" : \"3rem\") : $large ? \"0.75rem\" : \"0.5rem\"};\n    padding-right: ${({ $invalid, $iconRight }) =>\n      $invalid && !$iconRight ? \"3rem\" : $iconRight ? \"2.1rem\" : \"0.5rem\"};\n    background-color: ${({ $dark, theme }) =>\n      $dark ? theme.text50 : \"transparent\"};\n    -moz-appearance: textfield;\n\n    &::placeholder {\n      color: ${({ $dark, theme }) => ($dark ? theme.text700 : theme.text500)};\n    }\n\n    &::-webkit-outer-spin-button,\n    &::-webkit-inner-spin-button {\n      -webkit-appearance: none;\n      margin: 0;\n    }\n\n    &:focus {\n      outline: none;\n      border-color: ${({ $invalid, $dark, theme }) =>\n        $invalid ? theme.error500 : $dark ? theme.text200 : theme.text500};\n    }\n  }\n  ${StyledInput} {\n    height: ${({ $large }) => ($large ? \"auto\" : \"2.5rem\")};\n    font-size: ${({ $small, $large }) =>\n      $small ? \"0.875rem\" : $large ? \"2.5rem\" : \"1rem\"};\n    font-weight: ${({ $large }) => ($large ? \"400\" : \"inherit\")};\n  }\n  ${StyledTextArea} {\n    resize: none;\n    line-height: 1.5;\n  }\n  ${StyledErrorIcon} {\n    display: ${({ $invalid, $iconRight }) =>\n      $invalid && !$iconRight ? \"flex\" : \"none\"};\n    grid-row: 3;\n    grid-column: 2/3;\n    align-items: ${({ $large }) => ($large ? \"center\" : \"start\")};\n    justify-content: flex-end;\n    padding: 0.5rem;\n    color: ${(props) => props.theme.error500};\n  }\n  ${StyledError} {\n    display: ${({ $invalid }) => ($invalid ? \"flex\" : \"none\")};\n    grid-row: 4;\n    grid-column: ${({ $hasCounter }) => ($hasCounter ? \"1/2\" : \"1/3\")};\n    color: ${(props) => props.theme.error500};\n    line-height: 1.3;\n  }\n  ${StyledCounter} {\n    grid-row: 4;\n    grid-column: 2/3;\n    text-align: right;\n    line-height: 1.5;\n    font-size: 0.875em;\n  }\n`;\n\nconst TextField = forwardRef((props, ref) => {\n  const {\n    id,\n    type,\n    onChange,\n    value = \"\",\n    error,\n    label,\n    helpText,\n    maxLength,\n    textArea,\n    rows,\n    hasCounter,\n    autoComplete,\n    small,\n    large,\n    dark,\n    icon,\n    iconRight,\n    required,\n    className,\n    variant,\n    ...rest\n  } = props;\n\n  const textAreaRef = useRef(null);\n  useLayoutEffect(() => {\n    const textArea = textAreaRef.current;\n    if (value && textArea) {\n      textArea.style.height = textArea.scrollHeight + 4 + \"px\";\n    }\n    return () => {\n      if (textArea) {\n        textArea.style.height = \"inherit\";\n      }\n    };\n  }, [value]);\n\n  const _onChange = useCallback(\n    (e) => {\n      try {\n        onChange(e);\n      } catch (e) {\n        console.error(e);\n        throw e;\n      }\n    },\n    [onChange],\n  );\n\n  return (\n    <StyledField\n      className={className}\n      htmlFor={id}\n      $valid={!error}\n      $invalid={!!error}\n      $empty={!!value}\n      $hasCounter={!!maxLength && !!hasCounter}\n      $small={!!small}\n      $large={!textArea && !!large}\n      $dark={!!dark}\n      $icon={!!icon}\n      $iconRight={!!iconRight}\n      $required={!!required}\n      $variant={variant}\n    >\n      {label && <StyledLabel>{label}</StyledLabel>}\n      {helpText && <StyledHelpText>{helpText}</StyledHelpText>}\n      {icon && <StyledIcon icon={icon} />}\n      {textArea ? (\n        <StyledTextArea\n          {...rest}\n          ref={mergeRefs(ref, textAreaRef)}\n          id={id}\n          type={type}\n          onChange={_onChange}\n          value={value}\n          rows={rows || 1}\n        />\n      ) : (\n        <StyledInput\n          {...rest}\n          ref={ref}\n          id={id}\n          type={type}\n          onChange={_onChange}\n          value={value}\n          autoComplete={autoComplete}\n        />\n      )}\n      <StyledErrorIcon>\n        <FeatherIcon name=\"alert-circle\" />\n      </StyledErrorIcon>\n      <StyledError>{error}</StyledError>\n      {hasCounter && typeof maxLength === \"number\" ? (\n        <StyledCounter $invalid={!!error || value.length > maxLength}>\n          {value.length}/{maxLength}\n        </StyledCounter>\n      ) : null}\n    </StyledField>\n  );\n});\n\nTextField.propTypes = {\n  value: PropTypes.any,\n  onChange: PropTypes.func,\n  type: PropTypes.oneOf([\"text\", \"email\", \"password\", \"number\"]),\n  id: PropTypes.string,\n  label: PropTypes.node,\n  helpText: PropTypes.node,\n  error: PropTypes.oneOfType([\n    PropTypes.string,\n    PropTypes.array,\n    PropTypes.bool,\n  ]),\n  maxLength: PropTypes.number,\n  textArea: PropTypes.bool,\n  rows: PropTypes.number,\n  hasCounter: PropTypes.bool,\n  autoComplete: PropTypes.string,\n  small: PropTypes.bool,\n  large: PropTypes.bool,\n  dark: PropTypes.bool,\n  icon: PropTypes.string,\n  className: PropTypes.string,\n};\n\nTextField.defaultProps = {\n  type: \"text\",\n  textArea: false,\n  hasCounter: true,\n  autoComplete: \"on\",\n  small: false,\n  large: false,\n};\n\nTextField.displayName = \"TextField\";\n\nexport default TextField;\n","/* eslint-disable react/prop-types */\n/* eslint-disable react/display-name */\nimport React from \"react\";\nimport styled, { useTheme } from \"styled-components\";\n\nimport fontawesome from \"@agir/lib/utils/fontawesome\";\n\nconst iconProps = [\"icon\", \"color\", \"size\"];\n\nconst StyledIcon = styled.i.withConfig({\n  shouldForwardProp: (prop) => !iconProps.includes(prop),\n})`\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  margin: 0;\n  padding: 0;\n  line-height: inherit;\n  text-decoration: none;\n  color: ${(props) => props.color || \"currentColor\"};\n  font-size: ${(props) => {\n    if (!props.size) {\n      return \"1em\";\n    }\n    if (typeof props.size !== \"number\") {\n      return props.size;\n    }\n    return props.size + \"px\";\n  }};\n`;\n\nconst FaIcon =\n  (defaultIcon) =>\n  ({ icon, className, color, ...props }) => {\n    const iconConfig = fontawesome(icon || defaultIcon, true);\n    const theme = useTheme();\n\n    return (\n      <StyledIcon\n        {...props}\n        color={theme[color] || color}\n        className={`${className} ${iconConfig?.className}`.trim()}\n      />\n    );\n  };\n\nexport const FaBullhorn = FaIcon(\"bullhorn\");\nexport const FaCalendar = FaIcon(\"calendar\");\nexport const FaComment = FaIcon(\"comment\");\nexport const FaComments = FaIcon(\"comments\");\nexport const FaExclamation = FaIcon(\"exclamation\");\nexport const FaFacebook = FaIcon(\"facebook-official\");\nexport const FaInstagram = FaIcon(\"instagram\");\nexport const FaLock = FaIcon(\"lock\");\nexport const FaTelegram = FaIcon(\"telegram\");\nexport const FaTwitter = FaIcon(\"twitter\");\nexport const FaUsers = FaIcon(\"users\");\nexport const FaWhatsapp = FaIcon(\"whatsapp\");\nexport const FaYoutube = FaIcon(\"youtube-play\");\nexport const FaMicrophone = FaIcon(\"microphone\");\n\nexport default FaIcon();\n","const BINDINGS = {};\n\nconst prefixClassName = (className) => {\n  if (!className || typeof className !== \"string\") {\n    return \"fa\";\n  }\n  className = className.toLowerCase().trim();\n  if (/^fa-/.test(className)) {\n    return className;\n  }\n  return `fa-${className}`;\n};\n\nconst fontawesome = (icon, asObject = false) => {\n  if (!icon || typeof icon !== \"string\") {\n    return null;\n  }\n\n  if (!BINDINGS[icon]) {\n    const [iconName, iconStyle = \"\"] = icon.toLowerCase().split(\":\");\n    const span = document.createElement(\"span\");\n\n    span.className = [\n      iconName.includes(\"fak\") && \"fak\",\n      prefixClassName(iconStyle),\n      prefixClassName(iconName),\n    ].join(\" \");\n    document.body.appendChild(span);\n    const spanStyle = window.getComputedStyle(span);\n    const beforeStyle = window.getComputedStyle(span, \":before\");\n    const content =\n      beforeStyle?.content &&\n      !beforeStyle.content.includes(\"none\") &&\n      beforeStyle.content.replace(new RegExp('\"', \"g\"), \"\");\n    BINDINGS[icon] = {\n      fontFamily: spanStyle.fontFamily,\n      fontWeight: spanStyle.fontWeight.replace(new RegExp('\"', \"g\"), \"\"),\n      text: content || \"\",\n      className: span.className,\n    };\n    document.body.removeChild(span);\n  }\n\n  return asObject ? BINDINGS[icon] : BINDINGS[icon].text;\n};\n\nexport default fontawesome;\n","import isPropValid from \"@emotion/is-prop-valid\";\nimport ReactDOM from \"react-dom\";\nimport React, { useState } from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst defaultGetInitial = (field) => field.value || null;\nconst defaultGetProps = () => ({});\nconst defaultGetValue = (value) =>\n  value ? (typeof value === \"string\" ? value : value.value) : \"\";\n\n// Permet d'afficher un champ controlé Field à l'emplacement défini par selector\n// avec gestion automatique de l'état. Une valeur initiale peut etre défini en\n// passant une fonction `getInitial'. D'autres propriétés peuvent etre ajoutées\n// avec une fonction`getProps'.\nexport function getStatefulRenderer(\n  Field,\n  selector,\n  {\n    getInitial = defaultGetInitial,\n    getProps = defaultGetProps,\n    valueToString = defaultGetValue,\n  },\n) {\n  return () => {\n    const fieldsToReplace = document.querySelectorAll(selector);\n\n    for (let field of fieldsToReplace) {\n      const insertingNode = field.parentNode;\n      const props = {\n        initial: getInitial(field),\n        name: field.name,\n        fieldProps: getProps(field),\n      };\n      insertingNode.removeChild(field);\n      renderReactComponent(\n        <RootComponent\n          Field={Field}\n          valueToString={valueToString}\n          {...props}\n        />,\n        insertingNode,\n      );\n    }\n  };\n}\n\n// Transforme n'importe quel champ controlé en un composant\n// qui gère son état lui-meme\nexport const RootComponent = ({\n  name,\n  initial,\n  Field,\n  valueToString,\n  fieldProps,\n}) => {\n  const [value, setValue] = useState(initial);\n\n  return (\n    <>\n      <input type=\"hidden\" name={name} value={valueToString(value)} />\n      <Field value={value} onChange={setValue} {...fieldProps} />\n    </>\n  );\n};\nRootComponent.propTypes = {\n  name: PropTypes.string,\n  initial: PropTypes.shape({\n    label: PropTypes.string,\n    value: PropTypes.string,\n  }),\n  Field: PropTypes.elementType,\n  valueToString: PropTypes.func,\n  fieldProps: PropTypes.object,\n};\n\nexport const renderReactComponent = (component, node) => {\n  node &&\n    ReactDOM.render(<React.StrictMode>{component}</React.StrictMode>, node);\n};\n\nexport const mergeRefs = (...refs) => {\n  const filteredRefs = refs.filter(Boolean);\n  if (!filteredRefs.length) return null;\n  if (filteredRefs.length === 0) return filteredRefs[0];\n  return (inst) => {\n    for (const ref of filteredRefs) {\n      if (typeof ref === \"function\") {\n        ref(inst);\n      } else if (ref) {\n        ref.current = inst;\n      }\n    }\n  };\n};\n\nexport const validProps = (props) =>\n  Object.entries(props)\n    .filter(([k]) => isPropValid(k))\n    .reduce((o, [k, v]) => ({ ...o, k: v }), {});\n"],"names":["FIRST_COUNTRY_CODES","COUNTRIES","map","countryCode","value","label","countries","Object","keys","includes","filter","Boolean","sort","label1","label2","localeCompare","__WEBPACK_DEFAULT_EXPORT__","props","onChange","rest","_objectWithoutProperties","_excluded","handleChange","useCallback","country","selectedCountry","useMemo","find","c","React","SelectField","_extends","isSearchable","autoComplete","options","customFilterOptions","candidate","input","data","fixed","createFilter","slideIn","keyframes","StyledLabel","styled","span","StyledHelpText","StyledError","BackgroundOpacity","div","theme","collapse","CustomMenu","components","Menu","children","StyledField","$asRow","$variant","css","text500","$invalid","error500","text100","softBorderRadius","$small","background0","text1000","borderRadius","$searchable","text200","$noWrapOptions","primary500","primary600","id","error","helpText","small","noWrapOptions","variant","style","asRow","useTheme","selectFieldTheme","t","_objectSpread","colors","primary","primary25","maxMenuHeight","useResponsiveMemo","htmlFor","$valid","$empty","Select","noOptionsMessage","classNamePrefix","isDisabled","disabled","inputId","captureMenuScroll","menuShouldScrollIntoView","filterOption","StyledIcon","FaIcon","StyledInput","StyledTextArea","textarea","StyledErrorIcon","StyledCounter","FieldRequiredLabelMixin","$required","LFIsecondary500","$iconRight","$large","$icon","$dark","text50","text700","$hasCounter","TextField","forwardRef","ref","type","maxLength","textArea","rows","hasCounter","large","dark","icon","iconRight","required","className","textAreaRef","useRef","useLayoutEffect","current","height","scrollHeight","_onChange","e","console","mergeRefs","FeatherIcon","name","length","defaultProps","displayName","iconProps","i","withConfig","shouldForwardProp","prop","color","size","defaultIcon","_ref","iconConfig","fontawesome","trim","FaBullhorn","FaCalendar","FaComment","FaComments","FaExclamation","FaFacebook","FaInstagram","FaLock","FaTelegram","FaTwitter","FaUsers","FaWhatsapp","FaYoutube","FaMicrophone","BINDINGS","prefixClassName","toLowerCase","test","asObject","iconName","iconStyle","split","document","createElement","join","body","appendChild","spanStyle","window","getComputedStyle","beforeStyle","content","replace","RegExp","fontFamily","fontWeight","text","removeChild","defaultGetInitial","field","defaultGetProps","defaultGetValue","getStatefulRenderer","Field","selector","getInitial","getProps","valueToString","fieldsToReplace","querySelectorAll","insertingNode","parentNode","initial","fieldProps","renderReactComponent","RootComponent","setValue","useState","component","node","ReactDOM","refs","filteredRefs","inst","validProps","entries","k","isPropValid","reduce","o","v"],"sourceRoot":""}