{"version":3,"file":"ScrollZoomFrame.HmsEBzf9.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/abTQ8PSxPWBPh9B8KMYK/OIV8z72uTznbzt3ec6nh/ScrollZoomFrame.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useRef,useEffect,useState}from\"react\";import{createPortal}from\"react-dom\";import{addPropertyControls,ControlType}from\"framer\";function resolveSrc(value){if(!value)return undefined;if(typeof value===\"string\")return value;if(typeof value===\"object\"&&typeof value.src===\"string\")return value.src;return undefined;}function resolveLink(value){if(!value)return undefined;if(typeof value===\"string\")return value;if(typeof value===\"object\"&&typeof value.href===\"string\")return value.href;return undefined;}function getVimeoId(url){const match=url.match(/vimeo\\.com\\/(?:video\\/)?(\\d+)/);return match?match[1]:null;}function getYouTubeId(url){const match=url.match(/(?:youtube\\.com\\/watch\\?v=|youtu\\.be\\/|youtube\\.com\\/embed\\/|youtube\\.com\\/shorts\\/)([\\w-]{11})/);return match?match[1]:null;}function formatTime(seconds){if(!isFinite(seconds)||seconds<0)seconds=0;const m=Math.floor(seconds/60);const s=Math.floor(seconds%60);return`${m}:${s.toString().padStart(2,\"0\")}`;}let vimeoScriptPromise=null;function loadVimeoScript(){if(window.Vimeo)return Promise.resolve();if(vimeoScriptPromise)return vimeoScriptPromise;vimeoScriptPromise=new Promise((resolve,reject)=>{const script=document.createElement(\"script\");script.src=\"https://player.vimeo.com/api/player.js\";script.onload=()=>resolve();script.onerror=()=>reject(new Error(\"Failed to load Vimeo player script\"));document.head.appendChild(script);});return vimeoScriptPromise;}let youtubeScriptPromise=null;function loadYouTubeScript(){if(window.YT&&window.YT.Player)return Promise.resolve();if(youtubeScriptPromise)return youtubeScriptPromise;youtubeScriptPromise=new Promise(resolve=>{const prevCallback=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{if(typeof prevCallback===\"function\")prevCallback();resolve();};if(!document.querySelector('script[src=\"https://www.youtube.com/iframe_api\"]')){const script=document.createElement(\"script\");script.src=\"https://www.youtube.com/iframe_api\";document.head.appendChild(script);}});return youtubeScriptPromise;}/**\n * ScrollZoomFrame\n * A rounded video card whose OUTER frame grows/shrinks slightly with\n * scroll. Clicking the button opens a full-screen modal (rendered via\n * a React portal directly into document.body). Three source types are\n * supported for modal playback, and all three use OUR custom controls\n * instead of the platform's own UI: (1) an uploaded file, played with\n * a plain <video> tag, (2) a Vimeo link driven via the Vimeo Player\n * SDK, and (3) a YouTube link driven via the YouTube IFrame Player\n * API — both platform players are created with their native controls\n * disabled (chrome-less) so only our play/pause, scrubber, and sound\n * toggle are visible. Vimeo respects the \"Muted\" property as-is\n * (Vimeo's SDK autoplays with sound reliably). YouTube always starts\n * muted regardless of that property, because browsers hard-block\n * unmuted autoplay through its iframe once you're outside the\n * synchronous click handler (unavoidable since the SDK loads\n * asynchronously) — otherwise it stays paused showing YouTube's own\n * title/share/branding overlay. On desktop the button follows the\n * cursor exactly while hovering.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ScrollZoomFrame(props){const{video,videoLink,poster,buttonImage,buttonSize,borderRadius,overlayOpacity,minScale,maxScale,loop,followStrength,muted:mutedProp}=props;const wrapperRef=useRef(null);const modalVideoRef=useRef(null);const vimeoContainerRef=useRef(null);const vimeoPlayerRef=useRef(null);// Outer box stays in the DOM and controls position/aspect-ratio.\n// YT.Player REPLACES whatever element you give it with its own\n// <iframe>, so we hand it a throwaway inner div and keep sizing\n// the resulting iframe from the stable outer box afterwards.\nconst youtubeOuterRef=useRef(null);const youtubeMountRef=useRef(null);const youtubePlayerRef=useRef(null);const youtubePollRef=useRef(null);const hideTimer=useRef(null);const[scale,setScale]=useState(minScale??.94);const[isOpen,setIsOpen]=useState(false);const[isPlaying,setIsPlaying]=useState(true);const[muted,setMuted]=useState(mutedProp??false);const[currentTime,setCurrentTime]=useState(0);const[duration,setDuration]=useState(0);const[buttonPos,setButtonPos]=useState(null);const[showControls,setShowControls]=useState(true);const isFinePointer=useRef(false);const[mounted,setMounted]=useState(false);useEffect(()=>{setMounted(true);isFinePointer.current=typeof window!==\"undefined\"&&window.matchMedia&&window.matchMedia(\"(pointer: fine)\").matches;},[]);useEffect(()=>{function onScroll(){if(!wrapperRef.current)return;const rect=wrapperRef.current.getBoundingClientRect();const viewportHeight=window.innerHeight;const start=viewportHeight;const end=0;const raw=(start-rect.top)/(start-end+rect.height);const progress=Math.min(1,Math.max(0,raw));const min=minScale??.94;const max=maxScale??1;setScale(min+(max-min)*progress);}onScroll();window.addEventListener(\"scroll\",onScroll,{passive:true});window.addEventListener(\"resize\",onScroll);return()=>{window.removeEventListener(\"scroll\",onScroll);window.removeEventListener(\"resize\",onScroll);};},[minScale,maxScale]);function wakeControls(){setShowControls(true);if(hideTimer.current)clearTimeout(hideTimer.current);hideTimer.current=setTimeout(()=>setShowControls(false),2200);}const videoSrc=resolveSrc(video);const linkUrl=resolveLink(videoLink);const vimeoId=!videoSrc&&linkUrl?getVimeoId(linkUrl):null;const youtubeId=!videoSrc&&linkUrl&&!vimeoId?getYouTubeId(linkUrl):null;const usingVimeo=!!vimeoId;const usingYouTube=!!youtubeId;// Native <video> playback (uploaded file)\nuseEffect(()=>{if(!isOpen||usingVimeo||usingYouTube)return;const prevOverflow=document.body.style.overflow;document.body.style.overflow=\"hidden\";const v=modalVideoRef.current;if(v){v.currentTime=0;v.muted=mutedProp??false;v.play().catch(()=>{});setIsPlaying(true);}wakeControls();function onTime(){if(v)setCurrentTime(v.currentTime);}function onLoaded(){if(v)setDuration(v.duration);}function onEnd(){setIsPlaying(false);}if(v){v.addEventListener(\"timeupdate\",onTime);v.addEventListener(\"loadedmetadata\",onLoaded);v.addEventListener(\"ended\",onEnd);}return()=>{document.body.style.overflow=prevOverflow;if(hideTimer.current)clearTimeout(hideTimer.current);if(v){v.removeEventListener(\"timeupdate\",onTime);v.removeEventListener(\"loadedmetadata\",onLoaded);v.removeEventListener(\"ended\",onEnd);}};},[isOpen,usingVimeo,usingYouTube]);// Vimeo SDK-driven playback (so it uses OUR controls, chrome hidden)\nuseEffect(()=>{if(!isOpen||!usingVimeo||!vimeoId)return;const prevOverflow=document.body.style.overflow;document.body.style.overflow=\"hidden\";wakeControls();let destroyed=false;let player=null;let pollId=null;function forceFillIframe(){const iframe=vimeoContainerRef.current?.querySelector(\"iframe\");if(!iframe)return false;iframe.style.position=\"absolute\";iframe.style.inset=\"0\";iframe.style.top=\"0\";iframe.style.left=\"0\";iframe.style.width=\"100%\";iframe.style.height=\"100%\";iframe.style.border=\"none\";return true;}const startMuted=mutedProp??false;setMuted(startMuted);loadVimeoScript().then(()=>{if(destroyed||!vimeoContainerRef.current)return;const Vimeo=window.Vimeo;player=new Vimeo.Player(vimeoContainerRef.current,{id:Number(vimeoId),autoplay:true,muted:startMuted,loop:loop??true,controls:false,responsive:false});vimeoPlayerRef.current=player;player.on(\"play\",()=>setIsPlaying(true));player.on(\"pause\",()=>setIsPlaying(false));player.on(\"timeupdate\",data=>setCurrentTime(data.seconds));player.on(\"ended\",()=>setIsPlaying(false));player.getDuration().then(d=>setDuration(d));let attempts=0;pollId=setInterval(()=>{forceFillIframe();attempts+=1;if(attempts>20&&pollId){clearInterval(pollId);pollId=null;}},100);player.ready().then(()=>{forceFillIframe();player.play().catch(()=>{});});}).catch(()=>{});return()=>{destroyed=true;document.body.style.overflow=prevOverflow;if(hideTimer.current)clearTimeout(hideTimer.current);if(pollId)clearInterval(pollId);if(player)player.destroy().catch(()=>{});vimeoPlayerRef.current=null;};},[isOpen,usingVimeo,vimeoId]);// YouTube IFrame API-driven playback (so it uses OUR controls, chrome hidden)\nuseEffect(()=>{if(!isOpen||!usingYouTube||!youtubeId)return;const prevOverflow=document.body.style.overflow;document.body.style.overflow=\"hidden\";wakeControls();let destroyed=false;let player=null;// The outer box is never touched by YT — safe to keep sizing the\n// iframe from it after YT swaps the inner mount div for its iframe.\nfunction forceFillIframe(){const iframe=youtubeOuterRef.current?.querySelector(\"iframe\");if(!iframe)return false;iframe.style.position=\"absolute\";iframe.style.inset=\"0\";iframe.style.top=\"0\";iframe.style.left=\"0\";iframe.style.width=\"100%\";iframe.style.height=\"100%\";iframe.style.border=\"none\";iframe.style.pointerEvents=\"none\"// clicks go to our overlay, not YouTube's chrome\n;return true;}loadYouTubeScript().then(()=>{if(destroyed||!youtubeMountRef.current)return;const YT=window.YT;player=new YT.Player(youtubeMountRef.current,{videoId:youtubeId,playerVars:{autoplay:1,mute:1,controls:0,disablekb:1,modestbranding:1,rel:0,fs:0,iv_load_policy:3,playsinline:1,loop:loop??true?1:0,playlist:youtubeId},events:{onReady:e=>{if(destroyed)return;forceFillIframe();e.target.setVolume(100);// YouTube's iframe specifically will not autoplay\n// with sound this way — always start muted here.\ne.target.mute();setMuted(true);setDuration(e.target.getDuration());e.target.playVideo();youtubePollRef.current=setInterval(()=>{if(!youtubePlayerRef.current)return;setCurrentTime(youtubePlayerRef.current.getCurrentTime());},250);},onStateChange:e=>{forceFillIframe();// 1 = playing, 2 = paused, 0 = ended\nif(e.data===1)setIsPlaying(true);else if(e.data===2||e.data===0)setIsPlaying(false);}}});youtubePlayerRef.current=player;});return()=>{destroyed=true;document.body.style.overflow=prevOverflow;if(hideTimer.current)clearTimeout(hideTimer.current);if(youtubePollRef.current)clearInterval(youtubePollRef.current);if(player&&player.destroy)player.destroy();youtubePlayerRef.current=null;};},[isOpen,usingYouTube,youtubeId]);function handleOpen(){setIsOpen(true);}function handleClose(){setIsOpen(false);if(modalVideoRef.current)modalVideoRef.current.pause();if(vimeoPlayerRef.current)vimeoPlayerRef.current.pause().catch(()=>{});if(youtubePlayerRef.current)youtubePlayerRef.current.pauseVideo();}function togglePlay(){if(usingVimeo&&vimeoPlayerRef.current){const p=vimeoPlayerRef.current;if(isPlaying)p.pause().catch(()=>{});else p.play().catch(()=>{});return;}if(usingYouTube&&youtubePlayerRef.current){const p=youtubePlayerRef.current;if(isPlaying)p.pauseVideo();else p.playVideo();return;}const v=modalVideoRef.current;if(!v)return;if(v.paused){v.play();setIsPlaying(true);}else{v.pause();setIsPlaying(false);}}function toggleMute(){const next=!muted;setMuted(next);if(usingVimeo&&vimeoPlayerRef.current){vimeoPlayerRef.current.setMuted(next).catch(()=>{});return;}if(usingYouTube&&youtubePlayerRef.current){if(next)youtubePlayerRef.current.mute();else youtubePlayerRef.current.unMute();return;}const v=modalVideoRef.current;if(v)v.muted=next;}function handleSeek(e){if(!duration)return;const rect=e.currentTarget.getBoundingClientRect();const ratio=Math.min(1,Math.max(0,(e.clientX-rect.left)/rect.width));const target=ratio*duration;if(usingVimeo&&vimeoPlayerRef.current){vimeoPlayerRef.current.setCurrentTime(target).catch(()=>{});setCurrentTime(target);return;}if(usingYouTube&&youtubePlayerRef.current){youtubePlayerRef.current.seekTo(target,true);setCurrentTime(target);return;}const v=modalVideoRef.current;if(!v)return;v.currentTime=target;setCurrentTime(target);}function handleMouseMove(e){if(!isFinePointer.current||!wrapperRef.current)return;const rect=wrapperRef.current.getBoundingClientRect();setButtonPos({x:e.clientX-rect.left,y:e.clientY-rect.top});}function handleMouseLeave(){setButtonPos(null);}const posterSrc=resolveSrc(poster);const buttonSrc=resolveSrc(buttonImage);const progress=duration?currentTime/duration:0;const strength=followStrength??1;const btnWidth=buttonSize??280;const buttonStyle=buttonPos?{position:\"absolute\",top:buttonPos.y,left:buttonPos.x,transform:`translate(-50%, -50%)`,transition:`transform 0.1s ease-out, top ${.25-strength*.15}s linear, left ${.25-strength*.15}s linear`,width:btnWidth,height:\"auto\",cursor:\"pointer\"}:{position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\",transition:\"top 0.3s ease-out, left 0.3s ease-out\",width:btnWidth,height:\"auto\",cursor:\"pointer\"};const modal=/*#__PURE__*/_jsxs(\"div\",{onMouseMove:wakeControls,style:{position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",backgroundColor:\"rgba(0,0,0,0.96)\",zIndex:2147483647,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:showControls?\"default\":\"none\"},children:[/*#__PURE__*/_jsx(\"button\",{onClick:handleClose,\"aria-label\":\"Close\",style:{position:\"absolute\",top:24,right:24,width:40,height:40,borderRadius:\"50%\",border:\"1px solid rgba(255,255,255,0.5)\",background:\"transparent\",color:\"#fff\",fontSize:18,cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",opacity:showControls?1:0,transition:\"opacity 0.3s ease\",pointerEvents:\"auto\"},children:\"\\xd7\"}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",flexDirection:\"column\",width:\"min(1100px, 90vw)\",maxHeight:\"80vh\"},children:[usingYouTube?/*#__PURE__*/_jsx(\"div\",{ref:youtubeOuterRef,onClick:togglePlay,style:{position:\"relative\",width:\"100%\",paddingTop:\"56.25%\",cursor:\"pointer\",overflow:\"hidden\",backgroundColor:\"#000\"},children:/*#__PURE__*/_jsx(\"div\",{ref:youtubeMountRef,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\"}})}):usingVimeo?/*#__PURE__*/_jsx(\"div\",{ref:vimeoContainerRef,onClick:togglePlay,style:{position:\"relative\",width:\"100%\",paddingTop:\"56.25%\",cursor:\"pointer\",overflow:\"hidden\",backgroundColor:\"#000\"}}):videoSrc&&/*#__PURE__*/_jsx(\"video\",{ref:modalVideoRef,src:videoSrc,loop:loop??true,playsInline:true,onClick:togglePlay,style:{width:\"100%\",maxHeight:\"80vh\",display:\"block\",cursor:\"pointer\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",alignItems:\"center\",gap:20,padding:\"16px 20px\",marginTop:4,opacity:showControls?1:0,transition:\"opacity 0.3s ease\",pointerEvents:showControls?\"auto\":\"none\"},children:[/*#__PURE__*/_jsx(\"div\",{onClick:togglePlay,style:{cursor:\"pointer\",color:\"#fff\",fontSize:16,width:20,textAlign:\"center\",fontFamily:\"monospace\"},children:isPlaying?\"❚❚\":\"▶\"}),/*#__PURE__*/_jsx(\"div\",{style:{color:\"#fff\",fontSize:13,minWidth:34},children:formatTime(currentTime)}),/*#__PURE__*/_jsxs(\"div\",{onClick:handleSeek,style:{position:\"relative\",flex:1,height:16,display:\"flex\",alignItems:\"center\",cursor:\"pointer\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:0,right:0,top:\"50%\",height:0,borderTop:\"1px dashed rgba(255,255,255,0.4)\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:0,width:`${progress*100}%`,top:\"50%\",height:0,borderTop:\"1px solid #fff\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:`${progress*100}%`,top:\"50%\",width:8,height:8,borderRadius:\"50%\",backgroundColor:\"#fff\",transform:\"translate(-50%, -50%)\"}})]}),/*#__PURE__*/_jsx(\"div\",{style:{color:\"#fff\",fontSize:13,minWidth:34},children:formatTime(duration)}),/*#__PURE__*/_jsx(\"div\",{onClick:toggleMute,style:{color:\"#fff\",fontSize:13,letterSpacing:1,cursor:\"pointer\",whiteSpace:\"nowrap\"},children:muted?\"SOUND OFF\":\"SOUND ON\"})]})]})]});return /*#__PURE__*/_jsxs(\"div\",{ref:wrapperRef,onMouseMove:handleMouseMove,onMouseLeave:handleMouseLeave,style:{position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",borderRadius:borderRadius??24,backgroundColor:\"#000\",transform:`scale(${scale})`,transformOrigin:\"center center\",willChange:\"transform\"},children:[posterSrc?/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,backgroundImage:`url(${posterSrc})`,backgroundSize:\"cover\",backgroundPosition:\"center\"}}):/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,backgroundColor:\"rgba(255,255,255,0.08)\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,backgroundColor:`rgba(0,0,0,${overlayOpacity??.3})`}}),buttonSrc&&/*#__PURE__*/_jsx(\"img\",{onClick:handleOpen,src:buttonSrc,alt:\"Watch full video\",style:buttonStyle})]}),isOpen&&mounted&&typeof document!==\"undefined\"?/*#__PURE__*/createPortal(modal,document.body):null]});}addPropertyControls(ScrollZoomFrame,{video:{type:ControlType.File,title:\"Video\",allowedFileTypes:[\"mp4\"]},videoLink:{type:ControlType.Link,title:\"Video Link (Vimeo/YouTube)\"},poster:{type:ControlType.ResponsiveImage,title:\"Poster\"},buttonImage:{type:ControlType.ResponsiveImage,title:\"Button Image\"},muted:{type:ControlType.Boolean,title:\"Start Muted\",defaultValue:false},buttonSize:{type:ControlType.Number,title:\"Button Size\",defaultValue:280,min:40,max:800},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:24,min:0,max:100},overlayOpacity:{type:ControlType.Number,title:\"Overlay\",defaultValue:.3,min:0,max:1,step:.05},minScale:{type:ControlType.Number,title:\"Min Scale\",defaultValue:.94,min:.5,max:1.5,step:.01},maxScale:{type:ControlType.Number,title:\"Max Scale\",defaultValue:1,min:.5,max:1.5,step:.01},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:true},followStrength:{type:ControlType.Number,title:\"Follow Speed\",defaultValue:1,min:.2,max:1,step:.05}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollZoomFrame\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollZoomFrame.map"],"mappings":"2NAA8L,SAAS,EAAW,EAAM,CAAK,KAAuB,IAAG,OAAO,GAAQ,SAAS,OAAO,EAAM,GAAG,OAAO,GAAQ,UAAU,OAAO,EAAM,KAAM,SAAS,OAAO,EA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