{"version":3,"file":"ImageWithAltText.BUZIKdSW.mjs","names":[],"sources":["https:/framerusercontent.com/modules/CR4guHVlIClU0CpyeppD/Z0sorsTtwVQsPYTxeEHj/ImageWithAltText.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{ControlType}from\"framer\";// The Code Component\nexport function ImageWithAltText({image,altText,verticalAlign,horizontalAlign}){// Convert align options to valid flex values\nconst verticalMap={top:\"flex-start\",center:\"center\",bottom:\"flex-end\"};const horizontalMap={left:\"flex-start\",center:\"center\",right:\"flex-end\"};return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",overflow:\"hidden\",display:\"flex\",justifyContent:horizontalMap[horizontalAlign],alignItems:verticalMap[verticalAlign]},children:/*#__PURE__*/_jsx(\"img\",{src:image,alt:altText||\"No alt text available\",style:{objectFit:\"cover\",objectPosition:`${horizontalAlign} ${verticalAlign}`,width:\"100%\",height:\"100%\"}})});}// Add Property Controls\nImageWithAltText.propertyControls={image:{type:ControlType.Image,title:\"Image\"},altText:{type:ControlType.String,title:\"Alt Text\"},verticalAlign:{type:ControlType.Enum,title:\"Vertical Align\",options:[\"top\",\"center\",\"bottom\"],optionTitles:[\"Top\",\"Center\",\"Bottom\"],defaultValue:\"center\"},horizontalAlign:{type:ControlType.Enum,title:\"Horizontal Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"center\"}};\nexport const __FramerMetadata__ = {\"exports\":{\"ImageWithAltText\":{\"type\":\"reactComponent\",\"name\":\"ImageWithAltText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageWithAltText.map"],"mappings":"qJACA,SAAgB,EAAiB,CAAC,QAAM,UAAQ,gBAAc,mBAAiB,CACiE,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,QAAQ,OAAO,eAAxJ,CAAC,KAAK,aAAa,OAAO,SAAS,MAAM,WAAW,CAAiI,GAAiB,WAA/Q,CAAC,IAAI,aAAa,OAAO,SAAS,OAAO,WAAW,CAAkP,GAAe,CAAC,SAAsB,EAAK,MAAM,CAAC,IAAI,EAAM,IAAI,GAAS,wBAAwB,MAAM,CAAC,UAAU,QAAQ,eAAe,GAAG,EAAgB,GAAG,IAAgB,MAAM,OAAO,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,kBAF3d,IAAgC,CAG3E,EAAiB,iBAAiB,CAAC,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,CAAC,cAAc,CAAC,KAAK,EAAY,KAAK,MAAM,iBAAiB,QAAQ,CAAC,MAAM,SAAS,SAAS,CAAC,aAAa,CAAC,MAAM,SAAS,SAAS,CAAC,aAAa,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAY,KAAK,MAAM,mBAAmB,QAAQ,CAAC,OAAO,SAAS,QAAQ,CAAC,aAAa,CAAC,OAAO,SAAS,QAAQ,CAAC,aAAa,SAAS,CAAC"}