{"version":3,"file":"InViewYouTubePlayer.DQUzlul8.mjs","names":["useRef","useState","useMemo","useCallback","startTransition","__esmMin","pe","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","te","window","_e","p","c","init_jsx_runtime","ce","de","useInView","init_framer_motion_DhsWWWsN","addPropertyControls","init_framer_BisrWwwE","useIsStaticRenderer","ControlType","extractYouTubeVideoId","trimmed","url","shortMatch","embedMatch","watchMatch","InViewYouTubePlayer","props","style","isStatic","containerRef","iframeRef","inView","near","iframeLoaded","setIframeLoaded","muted","setMuted","initiallyMuted","embedMutedOnLoad","setEmbedMutedOnLoad","hasStarted","setHasStarted","coverRequested","setCoverRequested","coverPlaying","setCoverPlaying","posterIndex","setPosterIndex","unmuteReplayTimeoutRef","videoId","videoUrl","shouldPlay","coverImage","autoplayInView","shouldLoadEmbed","posterCandidates","posterMinWidths","posterUrl","cancelled","tryPosterAtIndex","index","img","minWidth","embedSrc","origin","loopParams","loop","postToPlayer","receive","event","data","subscribe","target","timer","isIOS","ua","platform","touchPoints","onToggleMute","nextMuted","onPosterError","value","showPoster","showAudioControl","controlLabel","labelFont","init_InViewYouTubePlayer"],"sources":["https:/framerusercontent.com/modules/1c15aOMPWvyojJrAeZr5/fkAfUfjOnWWZbXxWRBox/InViewYouTubePlayer.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useCallback,useEffect,useMemo,useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useInView}from\"framer-motion\";function extractYouTubeVideoId(url){const trimmed=(url||\"\").trim();if(!trimmed)return\"\";const shortMatch=trimmed.match(/youtu\\.be\\/([a-zA-Z0-9_-]{11})/);if(shortMatch?.[1])return shortMatch[1];const embedMatch=trimmed.match(/youtube\\.com\\/embed\\/([a-zA-Z0-9_-]{11})/);if(embedMatch?.[1])return embedMatch[1];const watchMatch=trimmed.match(/[?&]v=([a-zA-Z0-9_-]{11})/);if(watchMatch?.[1])return watchMatch[1];return\"\";}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function InViewYouTubePlayer(props){const{videoUrl,coverImage,autoplayInView,loop,initiallyMuted,showAudioControl,controlLabel,labelFont}=props;const style=props.style||{};const isStatic=useIsStaticRenderer();const containerRef=useRef(null);const iframeRef=useRef(null);const inView=useInView(containerRef,{amount:.6});// Probe YouTube's thumbnail sizes only once the player is near, not on page load.\nconst near=useInView(containerRef,{once:true,margin:\"1000px 0px\"});const[iframeLoaded,setIframeLoaded]=useState(false);const[muted,setMuted]=useState(initiallyMuted);const[embedMutedOnLoad,setEmbedMutedOnLoad]=useState(initiallyMuted);const[hasStarted,setHasStarted]=useState(false);const[coverRequested,setCoverRequested]=useState(false);const[coverPlaying,setCoverPlaying]=useState(false);const[posterIndex,setPosterIndex]=useState(0);const unmuteReplayTimeoutRef=useRef(null);useEffect(()=>{startTransition(()=>setMuted(initiallyMuted));},[initiallyMuted]);const videoId=useMemo(()=>extractYouTubeVideoId(videoUrl),[videoUrl]);const shouldPlay=useMemo(()=>{if(isStatic||!videoId)return false;return coverImage?autoplayInView?inView:coverRequested:autoplayInView?inView:true;},[autoplayInView,inView,isStatic,videoId,coverImage,coverRequested]);const shouldLoadEmbed=!isStatic&&Boolean(videoId)&&(inView||coverRequested)&&(!coverImage||autoplayInView||coverRequested);useEffect(()=>{if(!shouldLoadEmbed){setCoverPlaying(false);setIframeLoaded(false);setHasStarted(false);}},[shouldLoadEmbed]);const posterCandidates=useMemo(()=>{if(!videoId)return[];return[`https://img.youtube.com/vi/${videoId}/maxresdefault.jpg`,`https://img.youtube.com/vi/${videoId}/sddefault.jpg`,`https://img.youtube.com/vi/${videoId}/hqdefault.jpg`,`https://img.youtube.com/vi/${videoId}/mqdefault.jpg`,`https://img.youtube.com/vi/${videoId}/default.jpg`];},[videoId]);const posterMinWidths=useMemo(()=>[1280,640,480,320,120],[]);const posterUrl=useMemo(()=>{return(typeof coverImage===\"string\"?coverImage:coverImage?.src)||posterCandidates[posterIndex]||\"\";},[posterCandidates,posterIndex,coverImage]);useEffect(()=>{if(coverImage||!videoId||posterCandidates.length===0||!near)return;if(typeof window===\"undefined\"){startTransition(()=>setPosterIndex(0));return;}let cancelled=false;const tryPosterAtIndex=index=>{if(cancelled||index>=posterCandidates.length)return;const img=new window.Image;img.decoding=\"async\";img.onload=()=>{if(cancelled)return;const minWidth=posterMinWidths[index]??120;const isReliableSize=img.naturalWidth>=minWidth;// YouTube can return a tiny placeholder (often 120x90) for\n// unavailable high-res thumbnails while still returning 200.\nif(isReliableSize){startTransition(()=>setPosterIndex(index));}else{tryPosterAtIndex(index+1);}};img.onerror=()=>{if(cancelled)return;tryPosterAtIndex(index+1);};img.src=posterCandidates[index];};tryPosterAtIndex(0);return()=>{cancelled=true;};},[posterCandidates,posterMinWidths,videoId,near,coverImage]);const embedSrc=useMemo(()=>{if(!videoId)return\"\";const origin=typeof window!==\"undefined\"?`&origin=${encodeURIComponent(window.location.origin)}`:\"\";const loopParams=loop?`&loop=1&playlist=${videoId}`:\"&loop=0\";const autoplayParam=shouldPlay?\"&autoplay=1\":\"&autoplay=0\";const muteParam=embedMutedOnLoad?\"&mute=1\":\"&mute=0\";// youtube-nocookie.com is YouTube's privacy-enhanced embed: same player and JS API, but it doesn't set\n// YouTube's tracking cookies (YSC, VISITOR_INFO1_LIVE…) on visitors' browsers, which Chrome flags as\n// third-party cookies. Commands still work: postToPlayer posts to \"*\".\nreturn`https://www.youtube-nocookie.com/embed/${videoId}?enablejsapi=1&playsinline=1&rel=0&modestbranding=1&controls=1&fs=1${autoplayParam}${loopParams}${muteParam}${origin}`;},[embedMutedOnLoad,loop,shouldPlay,videoId]);const postToPlayer=useCallback(func=>{if(typeof window!==\"undefined\"&&iframeRef.current?.contentWindow){iframeRef.current.contentWindow.postMessage(JSON.stringify({event:\"command\",func,args:[]}),\"*\");}},[]);useEffect(()=>{if(!coverImage||!shouldLoadEmbed)return;const receive=event=>{if(event.source!==iframeRef.current?.contentWindow)return;if(![\"https://www.youtube.com\",\"https://www.youtube-nocookie.com\"].includes(event.origin))return;let data;try{data=typeof event.data===\"string\"?JSON.parse(event.data):event.data;}catch{return;}if(data?.event===\"onStateChange\"&&data.info===1||data?.info?.playerState===1)setCoverPlaying(true);};window.addEventListener(\"message\",receive);const subscribe=()=>{const target=iframeRef.current?.contentWindow;target?.postMessage(JSON.stringify({event:\"listening\",id:\"custom-cover\"}),\"*\");target?.postMessage(JSON.stringify({event:\"command\",func:\"addEventListener\",args:[\"onStateChange\"]}),\"*\");if(shouldPlay)postToPlayer(\"playVideo\");};subscribe();const timer=window.setInterval(subscribe,500);return()=>{window.removeEventListener(\"message\",receive);window.clearInterval(timer);};},[coverImage,shouldLoadEmbed,shouldPlay,postToPlayer]);const isIOS=useMemo(()=>{if(typeof window===\"undefined\")return false;const ua=window.navigator.userAgent||\"\";const platform=window.navigator.platform||\"\";const touchPoints=window.navigator.maxTouchPoints||0;return/iPad|iPhone|iPod/.test(ua)||platform===\"MacIntel\"&&touchPoints>1;},[]);useEffect(()=>{if(!iframeLoaded||!videoId)return;if(shouldPlay){postToPlayer(\"playVideo\");startTransition(()=>setHasStarted(true));}else{postToPlayer(\"pauseVideo\");}},[iframeLoaded,postToPlayer,shouldPlay,videoId]);useEffect(()=>{if(!iframeLoaded||!videoId)return;postToPlayer(muted?\"mute\":\"unMute\");},[iframeLoaded,muted,postToPlayer,videoId]);useEffect(()=>{return()=>{if(typeof window!==\"undefined\"&&unmuteReplayTimeoutRef.current!==null){window.clearTimeout(unmuteReplayTimeoutRef.current);}};},[]);useEffect(()=>{startTransition(()=>setEmbedMutedOnLoad(initiallyMuted));startTransition(()=>setPosterIndex(0));startTransition(()=>setIframeLoaded(false));startTransition(()=>setHasStarted(false));setCoverRequested(false);setCoverPlaying(false);},[initiallyMuted,videoId,coverImage]);const onToggleMute=useCallback(()=>{const nextMuted=!muted;if(!nextMuted){if(typeof window!==\"undefined\"&&unmuteReplayTimeoutRef.current!==null){window.clearTimeout(unmuteReplayTimeoutRef.current);unmuteReplayTimeoutRef.current=null;}// User-gesture-safe sequence: ask for audio first, then force play.\n// iOS Safari may pause autoplaying media when audio is enabled.\npostToPlayer(\"unMute\");postToPlayer(\"playVideo\");startTransition(()=>setHasStarted(true));if(isIOS&&typeof window!==\"undefined\"){unmuteReplayTimeoutRef.current=window.setTimeout(()=>{postToPlayer(\"unMute\");postToPlayer(\"playVideo\");},120);}}else{postToPlayer(\"mute\");}startTransition(()=>setMuted(nextMuted));},[isIOS,muted,postToPlayer]);const onPosterError=useCallback(()=>{startTransition(()=>setPosterIndex(value=>{if(value>=posterCandidates.length-1)return value;return value+1;}));},[posterCandidates.length]);if(!videoId){return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",aspectRatio:\"16 / 9\",background:\"transparent\",color:\"#000000\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\",padding:12,...style},children:\"Enter a valid YouTube URL\"});}const showPoster=(coverImage?!shouldLoadEmbed||!coverPlaying:!shouldLoadEmbed||!iframeLoaded&&!hasStarted)&&Boolean(posterUrl);return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",aspectRatio:\"16 / 9\",overflow:\"hidden\",borderRadius:\"inherit\",background:\"transparent\",...style},children:[shouldLoadEmbed&&/*#__PURE__*/_jsx(\"iframe\",{ref:iframeRef,src:embedSrc,title:\"YouTube video player\",allow:\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\",allowFullScreen:true,onLoad:()=>startTransition(()=>setIframeLoaded(true)),style:{width:\"100%\",height:\"100%\",border:\"0\",display:\"block\",background:\"transparent\",pointerEvents:\"auto\"}}),showPoster&&/*#__PURE__*/_jsx(\"img\",{src:posterUrl,loading:\"lazy\",decoding:\"async\",alt:\"\",\"aria-hidden\":\"true\",onError:onPosterError,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",pointerEvents:\"none\"}}),coverImage&&showPoster&&!isStatic&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-label\":\"Play video\",onClick:()=>{setCoverRequested(true);postToPlayer(\"playVideo\");},style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",border:0,padding:0,background:\"transparent\",cursor:\"pointer\",display:\"flex\",alignItems:\"flex-end\",justifyContent:\"flex-start\"},children:/*#__PURE__*/_jsx(\"span\",{style:{margin:24,padding:\"14px 22px\",borderRadius:999,background:\"rgba(0,0,0,0.7)\",color:\"#fff\",fontFamily:\"Inter, sans-serif\",fontSize:14,fontWeight:600},children:coverRequested?\"Starting video…\":\"Play video\"})}),showAudioControl&&!showPoster&&/*#__PURE__*/_jsxs(\"button\",{type:\"button\",onClick:onToggleMute,\"aria-label\":muted?`${controlLabel}: muted`:`${controlLabel}: sound on`,\"aria-pressed\":!muted,style:{position:\"absolute\",right:10,bottom:10,display:\"inline-flex\",alignItems:\"center\",gap:6,border:\"none\",borderRadius:999,background:\"rgba(0, 0, 0, 0.58)\",color:\"#FFFFFF\",padding:\"7px 10px\",cursor:\"pointer\",backdropFilter:\"blur(4px)\",WebkitBackdropFilter:\"blur(4px)\",zIndex:2},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:muted?\"🔇\":\"🔊\"}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:labelFont.fontSize,lineHeight:labelFont.lineHeight,letterSpacing:labelFont.letterSpacing,fontWeight:labelFont.fontWeight,fontStyle:labelFont.fontStyle,fontFamily:labelFont.fontFamily,minWidth:\"max-content\"},children:controlLabel})]})]});}addPropertyControls(InViewYouTubePlayer,{coverImage:{type:ControlType.Image,title:\"Cover Image\"},videoUrl:{type:ControlType.String,title:\"YouTube URL\",defaultValue:\"https://www.youtube.com/watch?v=dQw4w9WgXcQ\",placeholder:\"https://www.youtube.com/watch?v=...\"},autoplayInView:{type:ControlType.Boolean,title:\"In-View Auto\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},initiallyMuted:{type:ControlType.Boolean,title:\"Start Muted\",defaultValue:true,enabledTitle:\"Muted\",disabledTitle:\"Sound On\"},showAudioControl:{type:ControlType.Boolean,title:\"Show Control\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},controlLabel:{type:ControlType.String,title:\"Control Label\",defaultValue:\"Sound\"},labelFont:{type:ControlType.Font,title:\"Label Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"12px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"InViewYouTubePlayer\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InViewYouTubePlayer.map"],"mappings":"A,2RAAuP,SAASwB,EAAsB,EAAI,CAAC,IAAMC,GAASC,GAAK,GAAA,CAAI,KAAK,EAAE,GAAG,CAACD,EAAQ,MAAM,GAAG,IAAME,EAAWF,EAAQ,MAAM,gCAAgC,EAAE,GAAGE,IAAa,GAAG,OAAOA,EAAW,GAAG,IAAMC,EAAWH,EAAQ,MAAM,0CAA0C,EAAE,GAAGG,IAAa,GAAG,OAAOA,EAAW,GAAG,IAAMC,EAAWJ,EAAQ,MAAM,2BAA2B,EAA0C,OAArCI,IAAa,GAAUA,EAAW,GAAS,EAAG,CAGrpB,SAAwBC,EAAoB,EAAM,CAAC,GAAK,CAAC,WAAS,aAAW,iBAAe,OAAK,iBAAe,mBAAiB,eAAa,aAAWC,EAAYC,EAAMD,EAAM,OAAO,CAAC,E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