{"version":3,"file":"MediaCard.DlLCMF83.mjs","names":[],"sources":["https:/framerusercontent.com/modules/6nfmQ7T4iQ4QRldKusWk/Vhp1FIOByH2Jejm7Yw3H/MediaCard.js"],"sourcesContent":["// Component with link capabilities, image/video upload, hover expansion effect, and image cropping\n// Width: 471px, Height: 440px\n// Content expands on hover but stays within frame bounds\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerIntrinsicWidth 471\n * @framerIntrinsicHeight 440\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function MediaCard(props){const{link,mediaType=\"image\",imageFile=\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",videoFile=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",backgroundColor=\"#000000\",overlayColor=\"#000000\",overlayOpacity=0,expandScale=1.05,positionX=50,positionY=50,zoom=1}=props;const mediaSource=mediaType===\"image\"?imageFile:videoFile;const content=/*#__PURE__*/_jsxs(motion.div,{style:{width:\"100%\",height:\"100%\",position:\"relative\"},whileHover:{scale:expandScale},transition:{duration:.3,ease:\"easeOut\"},children:[mediaType===\"image\"?/*#__PURE__*/_jsx(\"img\",{src:mediaSource,alt:\"Media content\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",objectPosition:`${positionX}% ${positionY}%`,transform:`scale(${zoom})`}}):/*#__PURE__*/_jsx(\"video\",{src:mediaSource,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",objectPosition:`${positionX}% ${positionY}%`,transform:`scale(${zoom})`},autoPlay:true,loop:true,muted:true,playsInline:true}),overlayOpacity>0&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",backgroundColor:overlayColor,opacity:overlayOpacity,pointerEvents:\"none\"}})]});const containerStyle={width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\",backgroundColor,borderRadius:8,cursor:link?\"pointer\":\"default\",display:\"block\",textDecoration:\"none\"};if(link){return /*#__PURE__*/_jsx(\"a\",{href:link,style:containerStyle,children:content});}return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:content});}addPropertyControls(MediaCard,{link:{type:ControlType.Link,title:\"Link\"},mediaType:{type:ControlType.Enum,title:\"Media Type\",options:[\"image\",\"video\"],optionTitles:[\"Image\",\"Video\"],defaultValue:\"image\",displaySegmentedControl:true},imageFile:{type:ControlType.File,title:\"Image\",allowedFileTypes:[\"jpg\",\"jpeg\",\"png\",\"gif\",\"webp\",\"svg\"],hidden:({mediaType})=>mediaType!==\"image\"},videoFile:{type:ControlType.File,title:\"Video\",allowedFileTypes:[\"mp4\",\"webm\",\"mov\"],hidden:({mediaType})=>mediaType!==\"video\"},positionX:{type:ControlType.Number,title:\"Position X\",defaultValue:50,min:0,max:100,step:1,unit:\"%\"},positionY:{type:ControlType.Number,title:\"Position Y\",defaultValue:50,min:0,max:100,step:1,unit:\"%\"},zoom:{type:ControlType.Number,title:\"Zoom\",defaultValue:1,min:.5,max:3,step:.1},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},overlayColor:{type:ControlType.Color,title:\"Overlay Color\",defaultValue:\"#000000\"},overlayOpacity:{type:ControlType.Number,title:\"Overlay Opacity\",defaultValue:0,min:0,max:1,step:.1},expandScale:{type:ControlType.Number,title:\"Hover Scale\",defaultValue:1.05,min:1,max:1.2,step:.01}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MediaCard\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"471\",\"framerIntrinsicHeight\":\"440\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MediaCard.map"],"mappings":"oNASG,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