{"version":3,"file":"index-BuPouDq6.js","sources":["../../../app/javascript/src/explore/elements/LazyImage/index.tsx"],"sourcesContent":["import React from 'react';\nimport cls from 'classnames';\nimport 'lazysizes';\nimport 'lazysizes/plugins/attrchange/ls.attrchange';\n\ninterface LazyImageProps {\n alt?: string;\n className?: string;\n src: string;\n srcset?: string;\n sizes?: string;\n width?: number;\n height?: number;\n}\n\nexport const LazyImage = ({\n alt,\n className,\n src,\n srcset,\n sizes,\n width,\n height,\n}: LazyImageProps ) => (\n <img\n alt={alt}\n className={cls( 'lazyload', className )}\n data-src={src}\n data-srcset={srcset}\n data-sizes={sizes}\n width={width}\n height={height}\n />\n);\n"],"names":["LazyImage","alt","className","src","srcset","sizes","width","height","React","cls"],"mappings":"4GAeO,MAAMA,EAAY,CAAC,CACxB,IAAAC,EACA,UAAAC,EACA,IAAAC,EACA,OAAAC,EACA,MAAAC,EACA,MAAAC,EACA,OAAAC,CACF,IACEC,EAAA,cAAC,MAAA,CACC,IAAAP,EACA,UAAWQ,EAAK,WAAYP,CAAU,EACtC,WAAUC,EACV,cAAaC,EACb,aAAYC,EACZ,MAAAC,EACA,OAAAC,CAAA,CACF"}