{"version":3,"file":"VideoPlayer.C7Smsigm.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/DmwgNLwYK4Sh7brvGSmb/KnnWSO1LQKOgPMgGkPEE/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\",objectPositionX=50,objectPositionY=50,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\",border:\"none\",outline:\"none\"},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,objectPosition:`${objectPositionX}% ${objectPositionY}%`,borderRadius,WebkitUserSelect:\"none\",userSelect:\"none\",pointerEvents:\"none\",WebkitTapHighlightColor:\"transparent\",border:\"none\",outline:\"none\"}})]});}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:\"fill\",displaySegmentedControl:true},objectPositionX:{type:ControlType.Number,title:\"Posici\\xf3n X\",defaultValue:50,min:0,max:100,step:1,unit:\"%\",displayStepper:false},objectPositionY:{type:ControlType.Number,title:\"Posici\\xf3n Y\",defaultValue:50,min:0,max:100,step:1,unit:\"%\",displayStepper:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VideoPlayer\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VideoPlayer.map"],"mappings":"wLAKG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,YAAU,uEAAuE,OAAK,GAAK,QAAM,GAAK,eAAa,MAAM,YAAU,QAAQ,kBAAgB,GAAG,kBAAgB,GAAG,UAAQ,OAAO,SAAO,EAAY,EAASA,EAAO,IAAI,EACxQ,OAD0Q,MAAc,CAAI,EAAS,SAAS,EAAS,QAAQ,K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