{"version":3,"file":"EventPosterImage.BeigGEvT.mjs","names":["React.useMemo","__esmMin","pe","c","J","init_jsx_runtime","init_npm_react_18_3_1","addPropertyControls","init_framer_Duogf4LG","ControlType","withContainBackgroundImage","Component","props","EventPosterImage","resolvedImage","dynamicImage","imageUrl","image","hasImage","init_EventPosterImage"],"sources":["https:/framerusercontent.com/modules/Z7Df1LiiLXgiR5Bxu9if/R6PHzZyZJA0SiogWJCRx/EventPosterImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function withContainBackgroundImage(Component){return /*#__PURE__*/React.forwardRef(function WithContainBackgroundImage(props,ref){return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style,backgroundSize:\"contain\",backgroundPosition:\"center\",backgroundRepeat:\"no-repeat\",backgroundColor:\"#000000\"}});});}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function EventPosterImage(props){const{image=\"\",imageUrl=\"\",alt=\"\"}=props;const resolvedImage=React.useMemo(()=>{const dynamicImage=imageUrl.trim();if(dynamicImage.length>0)return dynamicImage;return image;},[imageUrl,image]);const hasImage=React.useMemo(()=>resolvedImage.trim().length>0,[resolvedImage]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",backgroundColor:\"#000000\",overflow:\"hidden\",display:\"grid\",placeItems:\"center\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",maxWidth:\"100%\",maxHeight:\"100%\",aspectRatio:\"4 / 5\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor:\"#000000\"},children:hasImage?/*#__PURE__*/_jsx(\"img\",{src:resolvedImage,alt:alt,style:{width:\"auto\",height:\"auto\",maxWidth:\"100%\",maxHeight:\"100%\",display:\"block\"}}):/*#__PURE__*/_jsx(\"div\",{role:\"status\",\"aria-live\":\"polite\",style:{color:\"#FFFFFF\",fontSize:12,letterSpacing:\"0.04em\",textTransform:\"uppercase\",opacity:.72,textAlign:\"center\",padding:\"8px\"},children:\"No poster image\"})})});}addPropertyControls(EventPosterImage,{image:{type:ControlType.Image,title:\"Image\"},imageUrl:{type:ControlType.String,title:\"Image URL\",defaultValue:\"\",placeholder:\"https://...\"},alt:{type:ControlType.String,title:\"Alt\",defaultValue:\"\",placeholder:\"Event poster\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"withContainBackgroundImage\":{\"type\":\"reactHoc\",\"name\":\"withContainBackgroundImage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"EventPosterImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EventPosterImage.map"],"mappings":"A,iLAA2H,SAAgBU,EAA2B,EAAU,CAAC,MAAoB,gBAAiB,SAAoC,EAAM,EAAI,CAAC,MAAoB,gBAAKC,EAAU,CAAK,MAAI,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,eAAe,UAAU,mBAAmB,SAAS,iBAAiB,YAAY,gBAAgB,SAAS,CAAC,CAAC,CAAE,CAAC,CAAE,CAG/b,SAAwBC,EAAiB,EAAM,CAAC,GAAK,CAAC,QAAM,GAAG,WAAS,GAAG,MAAI,IAAID,EAAYE,EAAcd,MAAkB,CAAC,IAAMe,EAAaC,EAAS,KAAK,EAA+C,OAA1CD,EAAa,OAAO,EAASA,EAAoBE,CAAM,EAAE,CAACD,EAASC,CAAK,CAAC,EAAQC,EAASlB,MAAkBc,EAAc,KAAK,CAAC,CAAC,OAAO,EAAE,CAACA,CAAa,CAAC,EAAE,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,g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