{ "version": 3, "sources": ["../javascripts/components/tag/tag-list.tsx", "../javascripts/components/tag/tag-group.tsx", "../javascripts/components/tag/tag-item.tsx"], "sourcesContent": ["import React from 'react';\n\ninterface TagListProps {\n modifiers?: string;\n className?: string;\n children?: React.ReactNode;\n}\n\nconst TagList = ({ modifiers, className, children }: TagListProps) => {\n return (\n
\n
{children}
\n
\n );\n};\n\nexport default TagList;\n", "import React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { SrOnly } from '../../styled-components/components/SrOnly';\n\ninterface TagGroupProps {\n onRemove?: (e: React.MouseEvent) => void;\n children?: React.ReactNode;\n title: string;\n}\n\nconst TagGroup = ({ onRemove, children, title }: TagGroupProps) => {\n const { t } = useTranslation(['search']);\n\n return (\n
\n {onRemove && (\n \n \n {t('removeSpecificFilterGroup', { name: title, ns: 'search' })}\n \n )}\n {children}\n
\n );\n};\n\nexport default TagGroup;\n", "import React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { SrOnly } from '../../styled-components/components/SrOnly';\n\ninterface TagItemProps {\n title: string;\n isExcluded?: boolean;\n onClick?: (e: React.MouseEvent) => void;\n onRemove?: (e: React.MouseEvent) => void;\n}\n\nconst TagItem = ({ title, isExcluded, onClick, onRemove }: TagItemProps) => {\n const { t } = useTranslation(['search', 'validation']);\n\n let tagTitle = <>{title || t('valueMissing', { ns: 'validation' })};\n if (isExcluded) {\n tagTitle = (\n <>\n \n {title}\n \n );\n }\n\n return (\n
\n {onClick ? (\n \n {tagTitle}\n \n ) : (\n
{title}
\n )}\n\n {onRemove && (\n \n \n {t('removeSpecificFilter', { name: title, ns: 'search' })}\n \n )}\n
\n );\n};\n\nexport default TagItem;\n"], "mappings": "oJAAA,IAAAA,EAAkB,SAQZC,EAAU,CAAC,CAAE,UAAAC,EAAW,UAAAC,EAAW,SAAAC,CAAS,IAE9C,EAAAC,QAAA,cAAC,OAAI,cAAaH,EAAW,UAAWC,GACtC,EAAAE,QAAA,cAAC,OAAI,UAAU,iBAAiBD,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C,KAAK,SACL,UAAU,0BACV,QAASJ,EACT,MAAOC,EAAE,uBAAwB,CAAE,KAAMJ,EAAO,GAAI,QAAS,CAAC,GAE9D,EAAAO,QAAA,cAAC,KAAE,UAAU,uBAAuB,EACpC,EAAAA,QAAA,cAACC,EAAA,KAAQJ,EAAE,uBAAwB,CAAE,KAAMJ,EAAO,GAAI,QAAS,CAAC,CAAE,CACpE,CAEJ,CAEJ,EAEOS,EAAQV", "names": ["import_react", "TagList", "modifiers", "className", "children", "React", "tag_list_default", "import_react", "TagGroup", "onRemove", "children", "title", "t", "useTranslation", "React", "SrOnly", "tag_group_default", "import_react", "TagItem", "title", "isExcluded", "onClick", "onRemove", "t", "useTranslation", "tagTitle", "React", "SrOnly", "tag_item_default"] }