{"version":3,"file":"AspectRatioImage.DXZEW62C.mjs","names":[],"sources":["https:/framerusercontent.com/modules/hqcmimd3MaJxC1GCJjtZ/Nq5C7qNEwpW7PZ27CtHl/AspectRatioImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * Responsive project image without a fixed-size loading placeholder. Framer's\n * responsive source set is passed straight to the browser so mobile viewports\n * do not fetch desktop-sized assets.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function AspectRatioImage(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"\"},objectFit=\"contain\",borderRadius=0,shadow=false,style}=props;const isStatic=useIsStaticRenderer();const fillsHeight=style?.height===\"100%\";// Framer asset URLs carry the original size; reserving it stops the\n// content below from jumping when a lazy image arrives (CLS).\nconst intrinsicWidth=Number(/[?&]width=(\\d+)/.exec(image?.src||\"\")?.[1]);const intrinsicHeight=Number(/[?&]height=(\\d+)/.exec(image?.src||\"\")?.[1]);const hasIntrinsicSize=intrinsicWidth>0&&intrinsicHeight>0;if(!image?.src){return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{...style,width:\"100%\",minHeight:1}});}return /*#__PURE__*/_jsx(\"img\",{src:image.src,srcSet:image.srcSet,// Framer prefixes this value with each breakpoint's media query\n// when it merges the page, so it must be a single length. A media\n// condition here produced an invalid list that resolved to 1200px\n// on phones (4K downloads).\nsizes:\"min(100vw, 1200px)\",alt:image.alt||\"\",width:hasIntrinsicSize?intrinsicWidth:undefined,height:hasIntrinsicSize?intrinsicHeight:undefined,loading:isStatic?\"eager\":\"lazy\",decoding:\"async\",draggable:false,style:{...style,display:\"block\",width:style?.width||\"100%\",height:fillsHeight?\"100%\":\"auto\",aspectRatio:!fillsHeight&&hasIntrinsicSize?`${intrinsicWidth} / ${intrinsicHeight}`:undefined,maxWidth:\"100%\",objectFit,borderRadius:String(borderRadius)+\"px\",boxShadow:shadow?\"0 4px 12px rgba(0, 0, 0, 0.1)\":\"none\"}});}addPropertyControls(AspectRatioImage,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},objectFit:{type:ControlType.Enum,title:\"Object Fit\",options:[\"contain\",\"cover\",\"fill\",\"none\",\"scale-down\"],optionTitles:[\"Contain\",\"Cover\",\"Fill\",\"None\",\"Scale Down\"],defaultValue:\"contain\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:0,min:0,max:50,step:1,unit:\"px\"},shadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AspectRatioImage\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AspectRatioImage.map"],"mappings":"+JAOG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,sEAAsE,IAAI,EAAE,EAAE,YAAU,UAAU,eAAa,EAAE,SAAO,GAAM,SAAO,EAAY,EAAS,EAAoB,EAAQ,EAAY,GAAO,SAAS,OAEhR,EAAe,OAAO,kBAAkB,KAAK,GAAO,KAAK,EAAE,CAAC,GAAG,EAAE,EAAQ,EAAgB,OAAO,mBAAmB,KAAK,GAAO,KAAK,EAAE,CAAC,GAAG,EAAE,EAAQ,EAAiB,EAAe,GAAG,EAAgB,EAAoH,OAA9G,GAAO,IAA2H,EAAK,MAAM,CAAC,IAAI,EAAM,IAAI,OAAO,EAAM,OAI5X,MAAM,qBAAqB,IAAI,EAAM,KAAK,GAAG,MAAM,EAAiB,EAAe,IAAA,GAAU,OAAO,EAAiB,EAAgB,IAAA,GAAU,QAAQ,EAA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