{"version":3,"file":"LazyLoadingImage.DBACZbdI.mjs","names":[],"sources":["https:/framerusercontent.com/modules/8p1JzpWfR9D0xcvGHFNL/5Amtj93lz2FMFIPdQSSV/LazyLoadingImage.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 300\n */export default function LazyLoadingImage(props){const{image,objectFit=\"cover\",objectPosition=\"center\",alt=\"\",radius=0,children,style}=props;return /*#__PURE__*/_jsxs(motion.div,{style:{...style,width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\",borderRadius:radius},children:[image?.src&&/*#__PURE__*/_jsx(\"img\",{src:image.src,srcSet:image.srcSet,alt:alt||image.alt||\"\",loading:\"lazy\",style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",objectFit,objectPosition,zIndex:0,borderRadius:radius}}),children&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",zIndex:1,width:\"100%\",height:\"100%\",borderRadius:radius},children:children})]});}// Default props for better UX\nLazyLoadingImage.defaultProps={objectFit:\"cover\",objectPosition:\"center\",alt:\"\",radius:0};// Property Controls\naddPropertyControls(LazyLoadingImage,{image:{type:ControlType.ResponsiveImage,title:\"Image\",description:\"Lazy loading image\"},objectFit:{type:ControlType.Enum,title:\"Object Fit\",options:[\"cover\",\"contain\",\"fill\",\"scale-down\",\"none\"],optionTitles:[\"Cover\",\"Contain\",\"Fill\",\"Scale Down\",\"None\"],defaultValue:\"cover\"},objectPosition:{type:ControlType.Enum,title:\"Object Position\",options:[\"center\",\"top\",\"bottom\",\"left\",\"right\",\"top left\",\"top right\",\"bottom left\",\"bottom right\"],optionTitles:[\"Center\",\"Top\",\"Bottom\",\"Left\",\"Right\",\"Top Left\",\"Top Right\",\"Bottom Left\",\"Bottom Right\"],defaultValue:\"center\"},radius:{type:ControlType.Number,title:\"Border Radius\",description:\"Rounded corners for the image\",min:0,max:100,step:1,unit:\"px\",defaultValue:0,displayStepper:true},alt:{type:ControlType.String,title:\"Alt Text\",description:\"Alternative text for accessibility\",placeholder:\"Describe the image...\"},children:{type:ControlType.ComponentInstance,title:\"Content\",description:\"Content to display over the image\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LazyLoadingImage\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicWidth\":\"400\",\"framerIntrinsicHeight\":\"300\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LazyLoadingImage.map"],"mappings":"oNAMG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,QAAM,YAAU,QAAQ,iBAAe,SAAS,MAAI,GAAG,SAAO,EAAE,WAAS,SAAO,EAAM,OAAoB,EAAM,EAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,SAAS,SAAS,aAAa,EAAO,CAAC,SAAS,CAAC,GAAO,KAAkB,EAAK,MAAM,CAAC,IAAI,EAAM,IAAI,OAAO,EAAM,OAAO,IAAI,GAAK,EAAM,KAAK,GAAG,QAAQ,OAAO,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,OAAO,OAAO,OAAO,YAAU,iBAAe,OAAO,EAAE,aAAa,EAAO,CAAC,CAAC,CAAC,GAAuB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,OAAO,EAAE,MAAM,OAAO,OAAO,OAAO,aAAa,EAAO,CAAU,WAAS,CAAC,CAAC,CAAC,CAAC,kBANlmB,IAAkC,IAAoD,CAO/I,EAAiB,aAAa,CAAC,UAAU,QAAQ,eAAe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