{"version":3,"file":"VideoPlayer.CD-blI8t.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/DmwgNLwYK4Sh7brvGSmb/RisKf344FDYTjRauPcaE/VideoPlayer.js"],"sourcesContent":["// Video player component with customizable border radius, loop control, and file upload\n// Optimized for performance with lazy loading and proper video handling\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useRef,useEffect}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function VideoPlayer(props){const{videoFile=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",loop=true,muted=true,borderRadius=\"8px\",objectFit=\"cover\",preload=\"auto\",style}=props;const videoRef=useRef(null);useEffect(()=>{if(videoRef.current){videoRef.current.play().catch(()=>{// Silently handle autoplay prevention\n});}},[videoFile]);return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",borderRadius,backgroundColor:\"#000\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                video::-webkit-media-controls {\n                    display: none !important;\n                }\n                video::-webkit-media-controls-enclosure {\n                    display: none !important;\n                }\n                video::-webkit-media-controls-panel {\n                    display: none !important;\n                }\n                video::-webkit-media-controls-play-button {\n                    display: none !important;\n                }\n                video::-webkit-media-controls-start-playback-button {\n                    display: none !important;\n                }\n            `}),/*#__PURE__*/_jsx(\"video\",{ref:videoRef,src:videoFile,loop:loop,autoPlay:true,muted:muted,controls:false,preload:preload,playsInline:true,disablePictureInPicture:true,disableRemotePlayback:true,\"x-webkit-airplay\":\"deny\",\"webkit-playsinline\":\"true\",style:{width:\"100%\",height:\"100%\",objectFit,borderRadius,WebkitUserSelect:\"none\",userSelect:\"none\",pointerEvents:\"none\",WebkitTapHighlightColor:\"transparent\"}})]});}addPropertyControls(VideoPlayer,{videoFile:{type:ControlType.File,title:\"Video\",allowedFileTypes:[\"mp4\",\"webm\",\"mov\"]},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:true,enabledTitle:\"S\\xed\",disabledTitle:\"No\"},muted:{type:ControlType.Boolean,title:\"Silenciado\",defaultValue:true,enabledTitle:\"S\\xed\",disabledTitle:\"No\"},preload:{type:ControlType.Enum,title:\"Precarga\",options:[\"none\",\"metadata\",\"auto\"],optionTitles:[\"Ninguna\",\"Metadatos\",\"Autom\\xe1tica\"],defaultValue:\"auto\",displaySegmentedControl:true},borderRadius:{type:ControlType.BorderRadius,title:\"Radio\",defaultValue:\"8px\"},objectFit:{type:ControlType.Enum,title:\"Ajuste\",options:[\"contain\",\"cover\",\"fill\"],optionTitles:[\"Contener\",\"Cubrir\",\"Llenar\"],defaultValue:\"cover\",displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VideoPlayer\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VideoPlayer.map"],"mappings":"mLAKG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,YAAU,uEAAuE,OAAK,GAAK,QAAM,GAAK,eAAa,MAAM,YAAU,QAAQ,UAAQ,OAAO,SAAO,EAAY,EAASA,EAAO,KAAK,CACnO,OADoO,MAAc,CAAI,EAAS,SAAS,EAAS,QAAQ,MAAM,CAAC,UAAU,GAC3T,EAAI,CAAC,EAAU,CAAC,CAAqB,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,eAAa,gBAAgB,OAAO,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;;;;;;;;;;;;;;;cAgB1M,CAAC,CAAc,EAAK,QAAQ,CAAC,IAAI,EAAS,IAAI,EAAe,OAAK,S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