{"version":3,"file":"LinkedImage.Gy6uOE26.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","ControlType","init_framer_D6uXRwWs","LinkedImage","props","img","image","displayWidth","link","linkTitle","newTab","__FramerMetadata__","init_LinkedImage","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerContractVersion\"","\"framerIntrinsicHeight\"","\"framerIntrinsicWidth\"","\"framerSupportedLayoutHeight\"","\"framerSupportedLayoutWidth\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/PV63Bxx0ggjxJEfUxKmj/LBFtWvCiX46YTiq9W5vj/LinkedImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Linked Image\n *\n * An image wrapped in a link (e.g. an event \"Register now\" button), shown at a fixed\n * display width with its natural aspect ratio. For use inside CMS rich text.\n *\n * @framerIntrinsicWidth 174\n * @framerIntrinsicHeight 58\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function LinkedImage(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"\"},link=\"\",linkTitle=\"\",newTab=true,displayWidth=174}=props;const img=/*#__PURE__*/_jsx(\"img\",{src:image.src,srcSet:image.srcSet,alt:image.alt??\"\",width:displayWidth,style:{display:\"block\",width:displayWidth,maxWidth:\"100%\",height:\"auto\"}});return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",width:\"max-content\",maxWidth:\"100%\"},children:link?/*#__PURE__*/_jsx(\"a\",{href:link,...linkTitle?{title:linkTitle}:{},...newTab?{target:\"_blank\",rel:\"noopener\"}:{},style:{display:\"inline-block\",lineHeight:0},children:img}):img});}addPropertyControls(LinkedImage,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},link:{type:ControlType.Link,title:\"Link\"},linkTitle:{type:ControlType.String,title:\"Link Title\",defaultValue:\"\"},newTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:true},displayWidth:{type:ControlType.Number,title:\"Width\",defaultValue:174,min:20,max:1200,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LinkedImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"58\",\"framerIntrinsicWidth\":\"174\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LinkedImage.map"],"mappings":"A,4JAWG,SAAwBM,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,sEAAsE,IAAI,EAAE,EAAE,OAAK,GAAG,YAAU,GAAG,SAAO,GAAK,eAAa,KAAKC,EAAYC,EAAiB,gBAAK,MAAM,CAAC,IAAIC,EAAM,IAAI,OAAOA,EAAM,OAAO,IAAIA,EAAM,KAAK,GAAG,MAAMC,EAAa,MAAM,CAAC,QAAQ,QAAQ,MAAMA,EAAa,SAAS,OAAO,OAAO,MAAM,CAAC,CAAC,EAAE,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,GAAGH,EAAM,MAAM,SAAS,WAAW,MAAM,cAAc,SAAS,MAAM,EAAE,SAASI,EAAkB,gBAAK,IAAI,CAAC,KAAKA,EAAK,GAAGC,EAAU,CAAC,MAAMA,CAAS,EAAE,CAAC,EAAE,GAAGC,EAAO,CAAC,OAAO,SAAS,IAAI,UAAU,EAAE,CAAC,EAAE,MAAM,CAAC,QAAQ,eAAe,WAAW,CAAC,EAAE,SAASL,CAAG,CAAC,EAAEA,CAAG,CAAC,CAAE,C,4CAACL,EAAoBG,EAAY,CAAC,MAAM,CAAC,KAAKF,EAAY,gBAAgB,MAAM,OAAO,EAAE,KAAK,CAAC,KAAKA,EAAY,KAAK,MAAM,MAAM,EAAE,UAAU,CAAC,KAAKA,EAAY,OAAO,MA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