{"version":3,"file":"BRNResponsiveImage.BoHAK4MC.mjs","names":[],"sources":["https:/framerusercontent.com/modules/FEc161lRd8T7olWkOGzJ/gkMOAtZC0eF7hq4oImmf/BRNResponsiveImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Preserves the original photograph, responsive asset variants and crop.\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function BRNResponsiveImage({image,priority=false,natural=false,position=\"center center\",sizeHint=\"100vw\",altText,style}){const asset=typeof image===\"string\"?{src:image}:image;if(!asset?.src)return null;const crop=position===\"center center\"&&(asset.positionX||asset.positionY)?`${asset.positionX||\"50%\"} ${asset.positionY||\"50%\"}`:position;const params=new URL(asset.src,\"https://framerusercontent.com\").searchParams;const width=Number(params.get(\"width\"))||undefined;const height=Number(params.get(\"height\"))||undefined;return /*#__PURE__*/_jsx(\"img\",{src:asset.src,srcSet:asset.srcSet||undefined,sizes:sizeHint,width:width,height:height,alt:altText||asset.alt||\"\",loading:priority?\"eager\":\"lazy\",fetchPriority:priority?\"high\":\"low\",decoding:\"async\",style:{display:\"block\",width:\"100%\",objectFit:\"cover\",borderRadius:\"inherit\",...style,height:natural?\"auto\":style?.height||\"100%\",objectPosition:crop,pointerEvents:\"none\"}});}addPropertyControls(BRNResponsiveImage,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},priority:{type:ControlType.Boolean,title:\"Load First\",defaultValue:false},natural:{type:ControlType.Boolean,title:\"Natural Height\",defaultValue:false},position:{type:ControlType.String,title:\"Crop\",defaultValue:\"center center\"},sizeHint:{type:ControlType.String,title:\"Display Width\",defaultValue:\"100vw\"},altText:{type:ControlType.String,title:\"Alt Text\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BRNResponsiveImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"fram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