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LK,EAAE,kH,uCCwCR,IA9C2B,EAAGV,eAC5B,gBAAC,OACCE,MAAM,MACNC,OAAO,MACPC,QAAQ,cACRC,KAAK,OACLJ,MAAM,6BACND,aAEA,gBAAC,QACCU,EAAE,8cACFL,KAAK,iBAEP,gBAAC,QACCK,EAAE,ucACFL,KAAK,iBAEP,gBAAC,QACCK,EAAE,8GACFL,KAAK,iBAEP,gBAAC,QACCC,SAAS,UACTyB,SAAS,UACTrB,EAAE,04BACFL,KAAK,iBAEP,gBAAC,QACCC,SAAS,UACTyB,SAAS,UACTrB,EAAE,knCACFL,KAAK,iBAEP,gBAAC,QACCK,EAAE,24BACFL,KAAK,iBAEP,gBAAC,QACCC,SAAS,UACTyB,SAAS,UACTrB,EAAE,upBACFL,KAAK,iB","sources":["webpack://realm_app/./app/javascript/components/DefaultAvatar.module.scss?6027","webpack://realm_app/./app/javascript/svgs/property-plan/waves-2.tsx","webpack://realm_app/./app/javascript/components/DefaultAvatar.tsx","webpack://realm_app/./app/javascript/components/PropertyAvatar.tsx","webpack://realm_app/./app/javascript/svgs/bath.tsx","webpack://realm_app/./app/javascript/svgs/bed.tsx","webpack://realm_app/./app/javascript/svgs/blank-photo.tsx","webpack://realm_app/./app/javascript/svgs/close.tsx","webpack://realm_app/./app/javascript/svgs/logo.tsx"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"defaultAvatar\":\"KHHBBwzhxbhbU_zUM1Pj\",\"background\":\"G6wK9UHtzHwoBYZV7NwH\",\"icon\":\"hTOa0BPuTTjtXUkKPcLD\"};","import React, { FC } from 'react'\n\ninterface Props {\n className?: string\n}\n\nconst Svg: FC = ({ className }) => (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n)\n\nexport default Svg\n","import React, { FC } from 'react'\nimport styles from './DefaultAvatar.module.scss'\n\nimport Waves from 'svgs/property-plan/waves-2'\nimport BlankPhoto from 'svgs/blank-photo'\n\nimport cx from 'classnames'\n\ninterface DefaultAvatarProps {\n className?: string\n}\n\nexport const DefaultAvatar: FC = ({ className }) => (\n
\n \n \n
\n)\n\nexport default DefaultAvatar\n","import React, { FC, ReactNode, useMemo } from 'react'\n\nimport ImageWithBackup from 'components/ImageWithBackup'\nimport { Photo, PropertyHead } from 'recoil/properties'\nimport { formatPropertyAddress, formatPublicPropertyAddress } from 'utils/formatting'\nimport StreetViewImage from 'components/StreetViewImage'\nimport { getPropertyMapUrl } from 'utils/property'\nimport DefaultAvatar from 'components/DefaultAvatar'\n\ninterface GenericPropertyAvatarProps {\n streetViewLocation: string\n mapboxUrl?: string\n width: number\n height: number\n className?: string\n userPhoto?: Photo\n customDefault?: ReactNode\n}\n\nconst GenericPropertyAvatar: FC = ({\n streetViewLocation,\n userPhoto,\n mapboxUrl,\n width,\n height,\n className,\n customDefault,\n}) => {\n const backup = useMemo(() => {\n if (mapboxUrl) {\n return (\n } />\n )\n } else if (customDefault) {\n return customDefault\n } else {\n return \n }\n }, [mapboxUrl, customDefault, className])\n\n if (userPhoto) {\n return {userPhoto.name}\n } else {\n return (\n \n )\n }\n}\n\nexport interface PropertyAvatarProps {\n property: PropertyHead\n mapbox?: boolean\n customDefault?: ReactNode\n width: number\n height: number\n className?: string\n}\n\nexport const PropertyAvatar: FC = ({\n property,\n width,\n height,\n className,\n customDefault,\n mapbox = false,\n}) => {\n const mapboxUrl = mapbox ? getPropertyMapUrl(property, width, height) : undefined\n const streetViewLocation = encodeURIComponent(formatPropertyAddress(property))\n\n return (\n \n )\n}\n\nexport interface PublicPropertyAvatarProps {\n publicProperty: AttomTaxAssessor\n mapbox?: boolean\n customDefault?: ReactNode\n width: number\n height: number\n className?: string\n}\n\nexport const PublicPropertyAvatar: FC = ({\n publicProperty,\n width,\n height,\n className,\n customDefault,\n}) => {\n const streetViewLocation = encodeURIComponent(formatPublicPropertyAddress(publicProperty))\n\n return (\n \n )\n}\n","import React, { FC } from 'react'\n\ninterface BathProps {\n className?: string\n}\n\nconst Bath: FC = ({ className }) => (\n \n \n \n \n)\n\nexport default Bath\n","import React, { FC } from 'react'\n\ninterface BedProps {\n className?: string\n}\n\nconst Bed: FC = ({ className }) => (\n \n \n \n)\n\nexport default Bed\n","import React, { FC } from 'react'\n\ninterface Props {\n className?: string\n}\n\nconst BlankPhoto: FC = ({ className }) => (\n \n \n \n \n)\n\nexport default BlankPhoto\n","import cx from 'classnames'\nimport React, { FC } from 'react'\n\ninterface CloseProps {\n className?: string\n}\n\nconst Close: FC = ({ className }) => (\n \n \n \n \n)\n\nexport default Close\n","import React, { FC } from 'react'\n\ninterface InfoProps {\n className?: string\n}\n\nconst Svg: FC = ({ className }) => (\n \n \n \n \n \n \n \n \n \n)\n\nexport default Svg\n"],"names":["className","xmlns","width","height","viewBox","fill","fillRule","strokeWidth","stroke","transform","d","GenericPropertyAvatar","streetViewLocation","userPhoto","mapboxUrl","customDefault","backup","useMemo","primary","src","url","alt","name","location","PropertyAvatar","property","mapbox","encodeURIComponent","avatar","PublicPropertyAvatar","publicProperty","clipRule"],"sourceRoot":""}