{"version":3,"file":"VideoPlayer_2.BXPjbNFl.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/3z1DjXzT0mTYwwHoKRxe/vKPKWfyE5MJmMW6wtHMQ/VideoPlayer_2.js"],"sourcesContent":["// Video component with Cloudinary embed support and player controls\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function VideoPlayer(props){const{videoUrl=\"https://player.cloudinary.com/embed/?cloud_name=dvre9ske8&public_id=n5igbrdqscg3iymm05x3&profile=cld-default\",playerVisible=true,muted=false,autoplay=false,loop=false,coverFill=false}=props;// Memoize the URL processing to prevent re-computation on every render\nconst processedVideoUrl=useMemo(()=>{if(!videoUrl||typeof videoUrl!==\"string\"){return\"https://player.cloudinary.com/embed/?cloud_name=dvre9ske8&public_id=n5igbrdqscg3iymm05x3&profile=cld-default\";}// Simple parameter addition without complex URL parsing\nconst separator=videoUrl.includes(\"?\")?\"&\":\"?\";const params=[];if(playerVisible!==undefined){params.push(`controls=${playerVisible}`);}if(muted!==undefined){params.push(`muted=${muted}`);}if(autoplay!==undefined){params.push(`autoplay=${autoplay}`);}if(loop!==undefined){params.push(`loop=${loop}`);}return params.length>0?`${videoUrl}${separator}${params.join(\"&\")}`:videoUrl;},[videoUrl,playerVisible,muted,autoplay,loop]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\",backgroundColor:\"#000000\",...props.style},children:/*#__PURE__*/_jsx(\"iframe\",{src:processedVideoUrl,width:\"100%\",height:\"100%\",style:{border:\"none\",width:\"100%\",height:\"100%\",objectFit:coverFill?\"cover\":\"contain\"},allow:\"autoplay; fullscreen; encrypted-media; picture-in-picture\",allowFullScreen:true,title:\"Video Player\"})});}addPropertyControls(VideoPlayer,{videoUrl:{type:ControlType.String,title:\"Video URL\",defaultValue:\"https://player.cloudinary.com/embed/?cloud_name=dvre9ske8&public_id=n5igbrdqscg3iymm05x3&profile=cld-default\",placeholder:\"Enter video embed URL...\"},playerVisible:{type:ControlType.Boolean,title:\"Show Controls\",defaultValue:true,enabledTitle:\"Visible\",disabledTitle:\"Hidden\"},muted:{type:ControlType.Boolean,title:\"Muted\",defaultValue:false,enabledTitle:\"Muted\",disabledTitle:\"Unmuted\"},autoplay:{type:ControlType.Boolean,title:\"Autoplay\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},coverFill:{type:ControlType.Boolean,title:\"Cover Fill\",defaultValue:false,enabledTitle:\"Cover\",disabledTitle:\"Contain\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VideoPlayer\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VideoPlayer_2.map"],"mappings":"0KAIG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,WAAS,+GAA+G,gBAAc,GAAK,QAAM,GAAM,WAAS,GAAM,OAAK,GAAM,YAAU,IAAO,EAChP,EAAkBA,MAAY,CAAC,GAAG,CAAC,GAAU,OAAO,GAAW,SAAU,MAAM,+GACrF,IAAM,EAAU,EAAS,SAAS,IAAI,CAAC,IAAI,IAAU,EAAO,EAAE,CAA8O,OAA1O,IAAgB,IAAA,IAAW,EAAO,KAAK,YAAY,IAAgB,CAAK,IAAQ,IAAA,IAAW,EAAO,KAAK,SAAS,IAAQ,CAAK,IAAW,IAAA,IAAW,EAAO,KAAK,YAAY,IAAW,CAAK,IAAO,IAAA,IAAW,EAAO,KAAK,QAAQ,IAAO,CAAS,EAAO,OAAO,EAAE,GAAG,IAAW,IAAY,EAAO,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