{"version":3,"file":"DynamicImage.B9iEL2lF.mjs","names":[],"sources":["https:/framerusercontent.com/modules/4wvODOKCcxUZw73LMsZA/manZjjJno6fr64JLf9pN/DynamicImage.js"],"sourcesContent":["// Image component that displays images dynamically from URL\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function DynamicImage(props){const{imageUrl={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Dynamic image\"},altText=\"Dynamic image\",objectFit=\"cover\",borderRadius=0,shadow=false,style}=props;// Extract the actual URL from ResponsiveImage object or use string directly\nconst imageSrc=typeof imageUrl===\"string\"?imageUrl:imageUrl?.src;const imageSrcSet=typeof imageUrl===\"object\"?imageUrl?.srcSet:undefined;const imageAlt=typeof imageUrl===\"object\"?imageUrl?.alt||altText:altText;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\",borderRadius:`${borderRadius}px`,boxShadow:shadow?\"0 4px 10px rgba(0,0,0,0.08)\":\"none\",...style},children:imageSrc&&/*#__PURE__*/_jsx(\"img\",{src:imageSrc,srcSet:imageSrcSet,alt:imageAlt,style:{width:\"100%\",height:\"100%\",objectFit:objectFit,display:\"block\"}})});}addPropertyControls(DynamicImage,{imageUrl:{type:ControlType.String,title:\"Image URL\",defaultValue:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",placeholder:\"Enter image URL or bind to CMS field...\"},altText:{type:ControlType.String,title:\"Alt Text\",defaultValue:\"Dynamic image\",placeholder:\"Describe the image...\"},objectFit:{type:ControlType.Enum,title:\"Object Fit\",options:[\"contain\",\"cover\",\"fill\",\"none\",\"scale-down\"],optionTitles:[\"Contain\",\"Cover\",\"Fill\",\"None\",\"Scale Down\"],defaultValue:\"cover\",displaySegmentedControl:false},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:0,min:0,max:100,step:1,unit:\"px\"},shadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DynamicImage\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DynamicImage.map"],"mappings":"uJAIG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,WAAS,CAAC,IAAI,sEAAsE,IAAI,gBAAgB,CAAC,UAAQ,gBAAgB,YAAU,QAAQ,eAAa,EAAE,SAAO,GAAM,SAAO,EACrO,EAAS,OAAO,GAAW,SAAS,EAAS,GAAU,IAAU,EAAY,OAAO,GAAW,SAAS,GAAU,OAAO,IAAA,GAAgB,EAAS,OAAO,GAAW,UAAS,GAAU,KAAa,EAAQ,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,SAAS,SAAS,aAAa,GAAG,EAAa,IAAI,UAAU,EAAO,8BAA8B,OAAO,GAAG,EAAM,CAAC,SAAS,GAAuB,EAAK,MAAM,CAAC,IAAI,EAAS,OAAO,EAAY,IAAI,EAAS,MAAM,CAAC,MAAM,OAAO,OAAO,OAAiB,YAAU,QAAQ,QAAQ,CAAC,CAAC,CAAC,CAAC,kBAJnhB,IAAoD,CAIie,EAAoB,EAAa,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,sEAAsE,YAAY,0CAA0C,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,aAAa,gBAAgB,YAAY,wBAAwB,CAAC,UAAU,CAAC,KAAK,EAAY,KAAK,MAAM,aAAa,QAAQ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