{"version":3,"file":"PostLocation-244xvayc.js","sources":["../../../frontend/src/Components/Maps/LocationLink.tsx","../../../frontend/src/Components/Posts/Shared/PostLocation/PostLocation.tsx"],"sourcesContent":["import { Link, Typography } from '@mui/material';\nimport React from 'react';\nimport { useIntl } from 'react-intl';\n\nexport default function LocationLink({ item }: any) {\n const intl = useIntl();\n const { lat, lng, label } = item;\n const text = !label ? intl.formatMessage({ id: 'POST_FORM.LOCALISATION_MARKER_PLACED' }) : label;\n return (\n \n \n {text}\n \n \n );\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Box } from '@mui/material';\nimport { styled } from '@mui/material/styles';\n\nimport { MapContainer, Marker, GeoJSON } from '../../../Maps';\n\nconst StyledMapContainer = styled(MapContainer)(({ theme }: any) => ({\n width: '100%',\n height: 260,\n borderRadius: theme.shape.borderRadius * 2,\n}));\n\nfunction PostLocation({ label, lat, lng, status, geojson }: any) {\n if (!label && !lat && !lng) {\n return null;\n }\n\n return (\n \n {lat && lng && (\n \n \n \n {geojson && }\n \n \n )}\n \n );\n}\n\nPostLocation.propTypes = {\n label: PropTypes.string,\n lat: PropTypes.string,\n lng: PropTypes.string,\n status: PropTypes.string,\n};\n\nexport default PostLocation;\n"],"names":["LocationLink","_ref","item","intl","useIntl","lat","lng","label","text","formatMessage","id","React","createElement","Link","href","concat","encodeURIComponent","target","rel","underline","title","Typography","variant","sx","whiteSpace","StyledMapContainer","styled","MapContainer","theme","width","height","borderRadius","shape","PostLocation","_ref2","status","geojson","Box","mb","center","Marker","position","join","GeoJSON","data","propTypes","PropTypes","string"],"mappings":"mJAIA,SAAwBA,EAAYC,EAAgB,CAAA,IAAbC,EAAID,EAAJC,KAC/BC,EAAOC,EAAQ,EACbC,EAAoBH,EAApBG,IAAKC,EAAeJ,EAAfI,IAAKC,EAAUL,EAAVK,MACZC,EAAQD,GAAQJ,EAAKM,cAAc,CAAEC,GAAI,sCAAwC,CAAA,EAErFC,OAAAA,EAAAC,cAACC,EAAI,CACHC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