{"version":3,"file":"MainVideoComponent.CtR1MFS1.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/7NrgX5M2jdh10nFVU4eE/u9sZN96Gvkfh6luRgtNX/MainVideoComponent.js"],"sourcesContent":["// Video component with URL and poster placeholders, drop shadow, 10px radius, and alt text for poster\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * Video Component with URL and Poster Placeholders\n *\n * @framerIntrinsicWidth 480\n * @framerIntrinsicHeight 270\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function VideoComponent(props){const{mediaType,videoUrl,posterUrl,posterAlt,imageUrl,imageAlt,shadow,borderRadius,style}=props;// CMS variable support: if UseCMS is true, show curly braces as placeholder\nconst resolvedVideoUrl=videoUrl;const resolvedPosterUrl=posterUrl;const resolvedPosterAlt=posterAlt;const boxShadow=useMemo(()=>shadow?\"0 4px 24px rgba(0,0,0,0.12)\":\"none\",[shadow]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",borderRadius,overflow:\"hidden\",boxShadow,background:\"#000\",...style},children:mediaType===\"video\"?/*#__PURE__*/_jsx(\"video\",{src:resolvedVideoUrl,poster:resolvedPosterUrl,autoPlay:true,muted:true,loop:true,playsInline:true,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",borderRadius:0,display:\"block\",background:\"#000\"},\"aria-label\":resolvedPosterAlt,children:\"Your browser does not support the video tag.\"}):/*#__PURE__*/_jsx(\"img\",{src:imageUrl,alt:imageAlt,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",borderRadius:0,display:\"block\"}})});}addPropertyControls(VideoComponent,{mediaType:{type:ControlType.Enum,title:\"Media Type\",options:[\"video\",\"image\"],optionTitles:[\"Video\",\"Image\"],defaultValue:\"video\",displaySegmentedControl:true},videoUrl:{type:ControlType.String,title:\"Video URL\",defaultValue:\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",placeholder:\"Paste video URL…\",hidden:({mediaType})=>mediaType!==\"video\"},posterUrl:{type:ControlType.String,title:\"Poster URL\",defaultValue:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",placeholder:\"Paste poster image URL…\",hidden:({mediaType})=>mediaType!==\"video\"},posterAlt:{type:ControlType.String,title:\"Poster Alt Text\",defaultValue:\"Video poster image\",placeholder:\"Describe poster image…\",hidden:({mediaType})=>mediaType!==\"video\"},imageUrl:{type:ControlType.String,title:\"Image URL\",defaultValue:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",placeholder:\"Paste image URL…\",hidden:({mediaType})=>mediaType!==\"image\"},imageAlt:{type:ControlType.String,title:\"Image Alt Text\",defaultValue:\"Image description\",placeholder:\"Describe image…\",hidden:({mediaType})=>mediaType!==\"image\"},shadow:{type:ControlType.Boolean,title:\"Drop Shadow\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:10,min:0,max:40,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VideoComponent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"480\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"270\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MainVideoComponent.map"],"mappings":"qKASG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,YAAU,WAAS,YAAU,YAAU,WAAS,WAAS,SAAO,eAAa,SAAO,EACrI,EAAiB,EAAe,EAAkB,EAAgB,EAAkB,EAA4F,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,eA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