{"version":3,"file":"EmojiIcon-C_qA0K-5.js","sources":["../../../frontend/src/Utils/Types/VoteTypes.ts","../../../frontend/src/Components/DesignSystem/CounterButton/EmojiIcon.tsx"],"sourcesContent":["const VotesTypes = {\n SUPPORT: 'support',\n NOT_SUPPORT: 'not_support',\n BUDGET: 'budget',\n};\n\nexport default VotesTypes;\n","import React from 'react';\nimport { useIntl } from 'react-intl';\nimport PropTypes from 'prop-types';\n\nimport VotesTypes from '../../../Utils/Types/VoteTypes';\n\nfunction EmojiIcon({ reaction, size = 24 }: any) {\n const intl = useIntl();\n const reactions = {\n comment: {\n icon: '💬',\n ariaLabel: `${intl.formatMessage({ id: 'POSTS.INDICATORS.COMMENTS' })} emoji`,\n },\n [VotesTypes.BUDGET]: {\n icon: '🛒',\n ariaLabel: `${intl.formatMessage({ id: 'BUTTONS.VOTE.BUDGET' })} emoji`,\n },\n [VotesTypes.SUPPORT]: {\n icon: '😍',\n ariaLabel: `${intl.formatMessage({ id: 'BUTTONS.VOTE.SUPPORT' })} emoji`,\n },\n [VotesTypes.NOT_SUPPORT]: {\n icon: '🙁',\n ariaLabel: `${intl.formatMessage({ id: 'BUTTONS.VOTE.NOT_SUPPORT' })} emoji`,\n },\n };\n\n const selectedReaction = reactions[reaction];\n\n return (\n \n {selectedReaction.icon}\n \n );\n}\n\nEmojiIcon.propTypes = {\n reaction: PropTypes.oneOf([...Object.values(VotesTypes), 'comment']).isRequired,\n size: PropTypes.number,\n};\n\nexport default EmojiIcon;\n"],"names":["VotesTypes","SUPPORT","NOT_SUPPORT","BUDGET","EmojiIcon","_ref","reaction","_ref$size","size","intl","useIntl","reactions","_defineProperty","comment","icon","ariaLabel","concat","formatMessage","id","selectedReaction","React","createElement","role","style","fontSize","marginTop","propTypes","PropTypes","oneOf","_toConsumableArray","Object","values","isRequired","number"],"mappings":"6DAAA,IAAMA,EAAa,CACjBC,QAAS,UACTC,YAAa,cACbC,OAAQ,QACV;ghCCEA,SAASC,EAASC,EAA+B,CAA5BC,IAAAA,EAAQD,EAARC,SAAQC,EAAAF,EAAEG,KAAAA,EAAID,IAAG,OAAA,GAAEA,EAChCE,EAAOC,EAAQ,EACfC,EAASC,EAAAA,EAAAA,EAAA,CACbC,QAAS,CACPC,KAAM,KACNC,aAASC,OAAKP,EAAKQ,cAAc,CAAEC,GAAI,2BAA6B,CAAA,EAAC,QAAA,CAAA,CACvE,EACClB,EAAWG,OAAS,CACnBW,KAAM,KACNC,aAASC,OAAKP,EAAKQ,cAAc,CAAEC,GAAI,qBAAuB,CAAA,EAAC,QAAA,CAAA,CAChE,EACAlB,EAAWC,QAAU,CACpBa,KAAM,KACNC,aAASC,OAAKP,EAAKQ,cAAc,CAAEC,GAAI,sBAAwB,CAAA,EAAC,QAAA,CAAA,CACjE,EACAlB,EAAWE,YAAc,CACxBY,KAAM,KACNC,aAASC,OAAKP,EAAKQ,cAAc,CAAEC,GAAI,0BAA4B,CAAA,EAAC,QAAA,CAAA,CACrE,EAGGC,EAAmBR,EAAUL,CAAQ,EAGzCc,OAAAA,EAAAC,cAAA,MAAA,CACEC,KAAK,MACL,aAAYH,GAAAA,KAAAA,OAAAA,EAAkBJ,UAC9BQ,MAAO,CAAEC,SAAUhB,EAAMiB,UAAW,EAAA,CAAG,EAEtCN,EAAiBL,IACf,CAET,CAEAV,EAAUsB,UAAY,CACpBpB,SAAUqB,EAAUC,SAAKZ,OAAAa,EAAKC,OAAOC,OAAO/B,CAAU,CAAC,EAAA,CAAE,SAAS,CAAC,CAAA,EAAEgC,WACrExB,KAAMmB,EAAUM,MAClB"}