{"version":3,"file":"HoverImage_4.Dc8wFQLP.mjs","names":["__esmMin","c","init_jsx_runtime","motion","init_framer_motion_DhsWWWsN","init_framer_D6uXRwWs","addPropertyControls","ControlType","HoverImage","props","url","src","image","radius","style","lift","zoom","init_HoverImage_4"],"sources":["https:/framerusercontent.com/modules/YsUI0ochkj6ffYrcio2n/6SbJR7plyrfL2G4G0ejW/HoverImage_4.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function HoverImage(props){const{src,image,radius=12,zoom=1.05,lift=6,style}=props;const url=src&&src.length>0?src:typeof image===\"string\"?image:image?.src;return /*#__PURE__*/_jsx(motion.div,{style:{width:\"100%\",height:\"auto\",borderRadius:radius,overflow:\"hidden\",position:\"relative\",cursor:\"pointer\",lineHeight:0,...style},initial:\"rest\",animate:\"rest\",whileHover:\"hover\",variants:{rest:{y:0,boxShadow:\"0 4px 14px rgba(31,58,45,0.06)\"},hover:{y:-lift,boxShadow:\"0 22px 48px rgba(31,58,45,0.20)\"}},transition:{type:\"spring\",stiffness:280,damping:22},children:/*#__PURE__*/_jsx(motion.img,{src:url,alt:\"\",draggable:false,style:{width:\"100%\",height:\"auto\",display:\"block\"},variants:{rest:{scale:1},hover:{scale:zoom}},transition:{type:\"spring\",stiffness:240,damping:26}})});}addPropertyControls(HoverImage,{src:{type:ControlType.String,title:\"Image URL\",defaultValue:\"\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:12,min:0,max:64,unit:\"px\"},zoom:{type:ControlType.Number,title:\"Zoom\",defaultValue:1.05,min:1,max:1.3,step:.01},lift:{type:ControlType.Number,title:\"Lift\",defaultValue:6,min:0,max:24,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HoverImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HoverImage_4.map"],"mappings":"A,6MAGG,SAAwBQ,EAAW,EAAM,CAAC,GAAK,CAAC,MAAI,QAAM,SAAO,GAAG,OAAK,KAAK,OAAK,EAAE,SAAOC,EAAYC,EAAIC,GAAKA,EAAI,OAAO,EAAEA,EAAI,OAAOC,GAAQ,SAASA,EAAMA,GAAO,IAAI,MAAoB,gBAAKT,EAAO,IAAI,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,aAAaU,EAAO,SAAS,SAAS,SAAS,WAAW,OAAO,UAAU,WAAW,EAAE,GAAGC,CAAK,EAAE,QAAQ,OAAO,QAAQ,OAAO,WAAW,QAAQ,SAAS,CAAC,KAAK,CAAC,EAAE,EAAE,UAAU,gCAAgC,EAAE,MAAM,CAAC,EAAE,CAACC,EAAK,UAAU,iCAAiC,CAAC,EAAE,WAAW,CAAC,KAAK,SAAS,UAAU,IAAI,QAAQ,EAAE,EAAE,SAAsB,gBAAKZ,EAAO,IAAI,CAAC,IAAIO,EAAI,IAAI,GAAG,UAAU,GAAM,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAMM,CAAI,CAAC,EAAE,WAAW,CAAC,KAAK,SAAS,UAAU,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,CAAE,C,0CAACV,EAAoBE,EAAW,CAAC,IAAI,CAAC,KAAKD,EAAY,OAAO,MAAM,YAAY,aAAa,EAAE,EAAE,MAAM,CAAC,KAAKA,EAAY,gBAAgB,MAAM,OAAO,EAAE,OAAO,CAAC,KAAKA,EAAY,OAAO,MAAM,SAAS,aAAa,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,IAAI,EAAE,KAAK,CAAC,KAAKA,EAAY,OAAO,MAAM,OAAO,aAAa,KAAK,IAAI,EAAE,IAAI,IAAI,KAAK,GAAG,EAAE,KAAK,CAAC,KAAKA,EAAY,OAAO,MAAM,OAAO,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,IAAI,CAAC,CAAC,C"}