{"version":3,"file":"BRNResponsiveImage.wLoqAXGO.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","init_framer_BisrWwwE","ControlType","BRNResponsiveImage","asset","image","crop","position","params","width","height","sizeHint","altText","priority","style","natural","init_BRNResponsiveImage"],"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\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BRNResponsiveImage.map"],"mappings":"A,4JAIG,SAAwBM,EAAmB,CAAC,QAAM,WAAS,GAAM,UAAQ,GAAM,WAAS,gBAAgB,WAAS,QAAQ,UAAQ,SAAO,CAAC,IAAMC,EAAM,OAAOC,GAAQ,SAAS,CAAC,IAAIA,CAAK,EAAEA,EAAM,GAAG,CAACD,GAAO,IAAI,OAAO,KAAK,IAAME,EAAKC,IAAW,kBAAkBH,EAAM,WAAWA,EAAM,WAAW,GAAGA,EAAM,WAAW,MAAM,GAAGA,EAAM,WAAW,QAAQG,EAAeC,EAAO,IAAI,IAAIJ,EAAM,IAAI,+BAA+B,CAAC,CAAC,aAAmBK,EAAM,OAAOD,EAAO,IAAI,OAAO,CAAC,GAAG,IAAA,GAAgBE,EAAO,OAAOF,EAAO,IAAI,QAAQ,CAAC,GAAG,IAAA,GAAU,MAAoB,gBAAK,MAAM,CAAC,IAAIJ,EAAM,IAAI,OAAOA,EAAM,QAAQ,IAAA,GAAU,MAAMO,EAAe,QAAa,SAAO,IAAIC,GAASR,EAAM,KAAK,GAAG,QAAQS,EAAS,QAAQ,OAAO,cAAcA,EAAS,OAAO,MAAM,SAAS,QAAQ,MAAM,CAAC,QAAQ,QAAQ,MAAM,OAAO,UAAU,QAAQ,aAAa,UAAU,GAAGC,EAAM,OAAOC,EAAQ,OAAOD,GAAO,QAAQ,OAAO,eAAeR,EAAK,cAAc,MAAM,CAAC,CAAC,CAAE,C,sCAACN,EAAoBG,EAAmB,CAAC,MAAM,CAAC,KAAKD,EAAY,gBAAgB,MAAM,OAAO,EAAE,SAAS,CAAC,KAAKA,EAAY,QAAQ,MAAM,aAAa,aAAa,EAAK,EAAE,QAAQ,CAAC,KAAKA,EAAY,QAAQ,MAAM,iBAAiB,aAAa,EAAK,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,MAAM,OAAO,aAAa,eAAe,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,MAAM,gBAAgB,aAAa,OAAO,EAAE,QAAQ,CAAC,KAAKA,EAAY,OAAO,MAAM,WAAW,aAAa,EAAE,CAAC,CAAC,C"}