{"version":3,"file":"ImageScale.ByVOKMPd.mjs","names":[],"sources":["https:/framerusercontent.com/modules/S9e4chJDrgv5MazFlfsR/PnzOvJiVi7PuYolnDaG0/ImageScale.js"],"sourcesContent":["// Image component that scales up on hover with automatic height fitting option\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ImageScale(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},scale=1.1,transition,borderRadius=0,style}=props;const isAutoHeight=style?.height===\"100%\";return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",overflow:\"hidden\",borderRadius},children:/*#__PURE__*/_jsx(motion.img,{src:image.src,alt:image.alt||\"\",whileHover:{scale},transition:transition,style:{width:\"100%\",height:isAutoHeight?\"100%\":\"auto\",objectFit:isAutoHeight?\"cover\":\"contain\",display:\"block\"}})});}addPropertyControls(ImageScale,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},scale:{type:ControlType.Number,title:\"Scale\",defaultValue:1.1,min:1,max:2,step:.05},transition:{type:ControlType.Transition,title:\"Transition\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:0,min:0,max:100,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageScale\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageScale.map"],"mappings":"6MAIG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,sEAAsE,IAAI,mBAAmB,EAAE,QAAM,IAAI,aAAW,eAAa,EAAE,SAAO,EAAY,EAAa,GAAO,SAAS,OAAO,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,SAAS,WAAW,SAAS,SAAS,cAAY,EAAE,SAAsB,EAAK,EAAO,IAAI,CAAC,IAAI,EAAM,IAAI,IAAI,EAAM,KAAK,GAAG,WAAW,CAAC,OAAK,EAAa,aAAW,MAAM,CAAC,MAAM,OAAO,OAAO,EAAa,OAAO,OAAO,UAAU,EAAa,QAAQ,UAAU,QAAQ,OAAO,CAAC,CAAC,CAAC,CAAC,CAAE,iBAHthB,IAAoD,IAAkC,EAGic,EAAoB,EAAW,CAAC,MAAM,CAAC,KAAK,EAAY,gBAAgB,MAAM,OAAO,EAAE,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,IAAI,IAAI,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,WAAW,CAAC,KAAK,EAAY,WAAW,MAAM,YAAY,EAAE,aAAa,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,EAAE,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE,KAAK,IAAI,CAAC,CAAC"}