{"version":3,"file":"YouTubeEmbed.CD78bevH.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/b1LmQ8nISRV2aeNdcX8T/PoWtjpCCqev1msdejjr8/YouTubeEmbed.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useState}from\"react\";/**\n * YouTube Embed\n *\n * Click-to-play 16:9 embed. Nothing loads from YouTube until the viewer\n * presses play, so the page carries no third-party cookies or player weight\n * on first paint. Uses youtube-nocookie.\n *\n * @framerIntrinsicWidth 960\n * @framerIntrinsicHeight 540\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function YouTubeEmbed(props){const{videoId=\"ZuRK8uwyR8A\",title=\"ReCo LIVE 2025 recap film\",radius=20,poster=\"\"}=props;const[playing,setPlaying]=useState(false);const isCanvas=RenderTarget.current()===RenderTarget.canvas;const id=String(videoId).trim();const thumb=poster||`https://i.ytimg.com/vi/${id}/maxresdefault.jpg`;const shell={...props.style,position:\"relative\",width:\"100%\",aspectRatio:\"16 / 9\",borderRadius:radius,overflow:\"hidden\",background:\"#000\"};if(playing&&!isCanvas){return /*#__PURE__*/_jsx(\"div\",{style:shell,children:/*#__PURE__*/_jsx(\"iframe\",{src:`https://www.youtube-nocookie.com/embed/${id}?autoplay=1&rel=0`,title:title,allow:\"accelerometer; autoplay; clipboard-write; encrypted-media; picture-in-picture\",allowFullScreen:true,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",border:0}})});}return /*#__PURE__*/_jsxs(\"div\",{style:shell,children:[/*#__PURE__*/_jsx(\"img\",{src:thumb,alt:title,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\"}}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setPlaying(true),\"aria-label\":`Play: ${title}`,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background:\"rgba(2,1,0,0.28)\",border:\"none\",cursor:\"pointer\"},children:/*#__PURE__*/_jsx(\"span\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:84,height:84,borderRadius:100,background:\"#C6F24E\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"30\",height:\"34\",viewBox:\"0 0 30 34\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M29 17 0 34V0z\",fill:\"#020100\"})})})})]});}addPropertyControls(YouTubeEmbed,{videoId:{type:ControlType.String,title:\"Video ID\",defaultValue:\"ZuRK8uwyR8A\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"ReCo LIVE 2025 recap film\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:20,min:0,max:60,unit:\"px\"},poster:{type:ControlType.String,title:\"Poster URL\",description:\"Optional. Defaults to the YouTube thumbnail.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"YouTubeEmbed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"540\",\"framerIntrinsicWidth\":\"960\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./YouTubeEmbed.map"],"mappings":"wLAWG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,UAAQ,cAAc,QAAM,4BAA4B,SAAO,GAAG,SAAO,IAAI,EAAW,CAAC,EAAQ,GAAYA,EAAS,EAAK,EAAQ,EAAS,EAAa,QAAQ,IAAI,EAAa,OAAa,EAAG,OAAO,CAAO,CAAC,CAAC,KAAK,EAAQ,EAAM,GAAQ,0BAA0B,EAAG,oBAA0B,EAAM,CAAC,GAAG,EAAM,MAAM,SAAS,WAAW,MAAM,OAAO,YAAY,SAAS,aAAa,EAAO,SAAS,SAAS,WAAW,MAAM,EAAkX,OAA7W,G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