{"version":3,"file":"VimeoVideo.9ENPDF_I.mjs","names":["React.useRef","React.useState","React.useEffect","_jsxs","_jsx","_Fragment","__esmMin","navigator","init_npm_react_18_3_1","window","_e","de","l","p","init_jsx_runtime","ce","init_ssg_sandbox_shims","addPropertyControls","init_framer_BWzg2IRg","RenderTarget","ControlType","parseVimeo","url","m","h","VimeoVideo","props","controls","playing","muted","volume","loop","style","poster","start","end","trimmed","posterObj","posterSrc","posterPos","hold","parsed","videoId","hash","box","frame","size","setSize","ready","setReady","shown","setShown","onCanvas","soundButton","userSound","setUserSound","effMuted","preloadList","preloadKey","preloaded","t","src","im","ss","live","mutedSent","el","ro","post","method","value","w","restart","s","onMsg","d","trim","vol","first","ua","trySound","waiting","again","e","EVTS","ev","t1","onTap","next","ratio","q","SoundToggle","on","inset","onToggle","stop","init_VimeoVideo"],"sources":["https:/framerusercontent.com/modules/642MxB1E8yWdoKUDxaDO/qjWtgu7UiP26A7SyeKku/VimeoVideo.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";export function parseVimeo(url){const m=/vimeo\\.com\\/(?:.*\\/)?(\\d{6,})(?:\\/([0-9a-f]{6,}))?/i.exec(url||\"\");if(!m)return null;const h=/[?&]h=([0-9a-f]+)/i.exec(url||\"\");return{id:m[1],hash:m[2]||(h?h[1]:\"\")};}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function VimeoVideo(props){const{url=\"\",controls=false,playing=true,muted=true,volume=25,loop=true,style,poster}=props;const start=Math.max(0,Number(props.start)||0);const end=Math.max(0,Number(props.end)||0);const trimmed=start>0||end>0;const posterObj=poster&&typeof poster===\"object\"?poster:null;const posterSrc=typeof poster===\"string\"?poster:posterObj&&posterObj.src||\"\";const posterPos=posterObj?(posterObj.positionX||\"50%\")+\" \"+(posterObj.positionY||\"50%\"):\"50% 50%\";// Keep the player invisible until it shows a real frame: with \"Start at\" set (so skipped frames\n// never flash) or with a poster (so the poster stays up until the video plays).\nconst hold=start>0||!!posterSrc;const parsed=parseVimeo(url);const videoId=parsed?parsed.id:props.videoId||\"1234192013\";const hash=parsed?parsed.hash:props.hash||\"\";const box=React.useRef(null);const frame=React.useRef(null);const[size,setSize]=React.useState({w:0,h:0});const[ready,setReady]=React.useState(false);const[shown,setShown]=React.useState(!hold);const onCanvas=RenderTarget.current()===RenderTarget.canvas;// 18 Nov: \"Sound button\" (background mode only) shows a speaker button; the visitor's choice\n// overrides \"Muted\", and sound comes on at full volume.\nconst soundButton=!!props.soundButton&&!controls;const[userSound,setUserSound]=React.useState(false);const effMuted=soundButton?!userSound:muted;// Fetch the \"Preload\" stills once the page has settled, with the same srcset/sizes as the\n// poster so the browser caches exactly the file a poster will ask for later.\nconst preloadList=Array.isArray(props.preload)?props.preload:[];const preloadKey=preloadList.map(p=>typeof p===\"string\"?p:p&&p.src||\"\").join(\"|\");const preloaded=React.useRef([]);React.useEffect(()=>{if(onCanvas||!preloadKey||typeof window===\"undefined\")return;const t=window.setTimeout(()=>{for(const p of preloadList){const src=typeof p===\"string\"?p:p&&p.src||\"\";if(!src)continue;const im=new Image;im.decoding=\"async\";im.fetchPriority=\"low\";const ss=p&&typeof p===\"object\"?p.srcSet:\"\";if(ss){im.sizes=\"100vw\";im.srcset=ss;}im.src=src;preloaded.current.push(im);}},600);return()=>window.clearTimeout(t);},[preloadKey]);const live=React.useRef({start,end,loop,playing,seeking:false,shown:!hold,wantSound:false,muted:true,mutedAt:0,vol:1});// Last muted state sent to the player (null until the first sync after it loads).\nconst mutedSent=React.useRef(null);live.current.start=start;live.current.end=end;live.current.loop=loop;live.current.playing=playing;React.useEffect(()=>{const el=box.current;if(!el||typeof ResizeObserver===\"undefined\")return;const ro=new ResizeObserver(()=>setSize({w:el.clientWidth,h:el.clientHeight}));ro.observe(el);setSize({w:el.clientWidth,h:el.clientHeight});return()=>ro.disconnect();},[]);const post=(method,value)=>{const w=frame.current?.contentWindow;if(!w)return;w.postMessage(JSON.stringify(value===undefined?{method}:{method,value}),\"https://player.vimeo.com\");};// Jump back to \"Start at\" (debounced so a burst of timeupdates sends one seek).\nconst restart=()=>{const s=live.current;if(s.seeking)return;s.seeking=true;post(\"setCurrentTime\",s.start);if(s.playing)post(\"play\");window.setTimeout(()=>s.seeking=false,700);};React.useEffect(()=>{const onMsg=e=>{if(e.origin!==\"https://player.vimeo.com\"||e.source!==frame.current?.contentWindow)return;let d=e.data;try{if(typeof d===\"string\")d=JSON.parse(d);}catch(err){return;}if(!d)return;// Reply to the check made after an unmute: if the phone paused the video instead of\n// turning sound on, keep it playing muted (the next tap turns sound on).\nif(d.method===\"getPaused\"){if(d.value===true&&live.current.playing&&live.current.wantSound){post(\"setMuted\",true);post(\"play\");}return;}if(d.event===\"ready\"){setReady(true);const s=live.current;// The embed's postMessage API reports progress as \"playProgress\" / \"finish\";\n// newer players use \"timeupdate\" / \"ended\". Listen for both.\npost(\"addEventListener\",\"playProgress\");post(\"addEventListener\",\"finish\");post(\"addEventListener\",\"timeupdate\");post(\"addEventListener\",\"ended\");if(s.start>0)post(\"setCurrentTime\",s.start);return;}const s=live.current;const trim=s.start>0||s.end>0;if(!trim&&s.shown)return;if((d.event===\"playProgress\"||d.event===\"timeupdate\")&&d.data){const t=Number(d.data.seconds)||0;if(trim&&s.end>s.start&&t>=s.end){if(s.loop)restart();else post(\"pause\");}else if(trim&&s.start>0&&t<s.start-.4){restart();}else if(!s.shown){s.shown=true;setShown(true);}}else if((d.event===\"finish\"||d.event===\"ended\")&&s.loop&&trim){restart();}};window.addEventListener(\"message\",onMsg);return()=>window.removeEventListener(\"message\",onMsg);},[]);React.useEffect(()=>{setReady(false);mutedSent.current=null;live.current.shown=!hold;setShown(!hold);setUserSound(false);},[videoId,hash,controls,start]);React.useEffect(()=>{if(!ready)return;const vol=soundButton&&userSound?1:Math.max(0,Math.min(1,volume/100));// 18 Nov: phones ignore setVolume (volume is hardware only), so sound has to be switched\n// with setMuted. Not sent as an unmute on first load: without a tap iOS pauses the video.\nconst first=mutedSent.current===null;// 19 Nov: \"Muted\" off on first load means sound on by default. Browsers only allow sound once the\n// visitor has interacted with the page, so send the unmute now if they already have (e.g. they\n// clicked a link to get here); otherwise the video plays muted and the first tap turns sound on.\nconst ua=typeof navigator!==\"undefined\"?navigator.userActivation:null;const trySound=first&&!effMuted&&!controls&&!!(ua&&ua.hasBeenActive);if(soundButton||effMuted||!first||trySound)post(\"setMuted\",effMuted);if(!first&&mutedSent.current!==effMuted)live.current.mutedAt=Date.now();mutedSent.current=effMuted;live.current.muted=effMuted;live.current.vol=vol;live.current.wantSound=!effMuted&&!controls;if(!effMuted)post(\"setVolume\",vol);post(playing?\"play\":\"pause\");if(effMuted||controls||typeof document===\"undefined\")return;// Still waiting for a first tap: keep listening until it comes (no pause check, no timeout).\nconst waiting=first&&!trySound;// Sound was just turned on. If the phone refused it (no tap reached the player), the\n// next tap anywhere sends it again, and a paused video is restarted muted meanwhile.\nconst again=e=>{const t=e.target;if(t&&t.closest&&t.closest('[aria-label*=\"ute video\"]'))return;post(\"setMuted\",false);post(\"setVolume\",vol);if(live.current.playing)post(\"play\");// If the browser refused (e.g. the touch was a scroll) and paused the video, the reply restarts it muted.\nwindow.setTimeout(()=>post(\"getPaused\"),800);};// 19 Nov: phones only fire \"click\" on tappable elements, so a tap on the video or page never\n// reached this. Listen for touch, pointer and key events too, and keep listening while sound is wanted.\nconst EVTS=[\"click\",\"touchend\",\"pointerup\",\"keydown\"];EVTS.forEach(ev=>document.addEventListener(ev,again,true));const t1=waiting?0:window.setTimeout(()=>post(\"getPaused\"),800);const t2=0;return()=>{window.clearTimeout(t1);window.clearTimeout(t2);EVTS.forEach(ev=>document.removeEventListener(ev,again,true));};},[ready,playing,effMuted,volume,soundButton]);// 18 Nov: a page button labelled \"Mute or unmute video\" drives \"Muted\" through a variable, and\n// that change reaches this component a moment after the tap. Phones only allow sound when the\n// command is sent during the tap itself, so send it straight from the click.\nReact.useEffect(()=>{if(controls||onCanvas||typeof document===\"undefined\")return;const onTap=e=>{const t=e.target;if(!t||!t.closest||!t.closest('[aria-label=\"Mute or unmute video\"]'))return;const el=box.current;const s=live.current;if(!el||!el.getClientRects().length||!s.playing)return;const next=Date.now()-s.mutedAt<400?s.muted:!s.muted;post(\"setMuted\",next);if(!next){post(\"setVolume\",s.vol||1);post(\"play\");}};document.addEventListener(\"click\",onTap,true);return()=>document.removeEventListener(\"click\",onTap,true);},[controls,onCanvas]);// Background mode cover-fits a 16:9 player; player mode fills the frame (Vimeo letterboxes).\nconst ratio=16/9;let w=size.w;let h=size.w/ratio;if(h<size.h){h=size.h;w=size.h*ratio;}const q=new URLSearchParams({autoplay:playing?\"1\":\"0\",muted:controls&&!muted?\"0\":\"1\",// With a trim, the component loops itself so the clip never shows its first frames again.\nloop:loop&&!trimmed?\"1\":\"0\",controls:controls?\"1\":\"0\",autopause:\"0\",playsinline:\"1\",title:\"0\",byline:\"0\",portrait:\"0\",dnt:\"1\",api:\"1\"});if(hash)q.set(\"h\",hash);// No \"#t=\" fragment: with autoplay it can stall the player; \"Start at\" is applied by seeking on ready.\nconst src=\"https://player.vimeo.com/video/\"+videoId+\"?\"+q.toString();return /*#__PURE__*/_jsxs(\"div\",{ref:box,style:{position:\"relative\",overflow:\"hidden\",width:\"100%\",height:\"100%\",background:\"#000\",...style},children:[posterSrc?/*#__PURE__*/_jsx(\"img\",{alt:\"\",\"aria-hidden\":\"true\",src:posterSrc,srcSet:posterObj&&posterObj.srcSet||undefined,sizes:\"100vw\",decoding:\"async\",draggable:false,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:controls?\"contain\":\"cover\",objectPosition:posterPos,pointerEvents:\"none\"}}):null,onCanvas?posterSrc?null:/*#__PURE__*/_jsx(\"img\",{alt:\"\",src:\"https://vumbnail.com/\"+videoId+\".jpg\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:controls?\"contain\":\"cover\"}}):size.w>0?/*#__PURE__*/_jsx(\"iframe\",{ref:frame,src:src,title:\"Video\",allow:\"autoplay; fullscreen; picture-in-picture; encrypted-media\",allowFullScreen:controls,tabIndex:controls?undefined:-1,onLoad:()=>post(\"addEventListener\",\"ready\"),style:controls?{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",border:0}:{position:\"absolute\",left:\"50%\",top:\"50%\",width:w,height:h,transform:\"translate(-50%, -50%)\",border:0,pointerEvents:\"none\",opacity:shown?1:0,transition:\"opacity 0.4s ease\"}},src):null,soundButton?/*#__PURE__*/_jsx(SoundToggle,{on:userSound,inset:size.w>0&&size.w<480?12:16,onToggle:()=>{const next=!userSound;post(\"setMuted\",!next);if(next){post(\"setVolume\",1);post(\"play\");}setUserSound(next);}}):null]});}// Same white round speaker button as the homepage story videos (StoryVideoStack).\nfunction SoundToggle({on,inset,onToggle}){const stop=e=>e.stopPropagation();return /*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-label\":on?\"Mute video\":\"Unmute video\",\"aria-pressed\":on,title:on?\"Mute\":\"Unmute\",onPointerDown:stop,onMouseDown:stop,onTouchStart:stop,onKeyDown:stop,onClick:e=>{e.preventDefault();e.stopPropagation();onToggle();},style:{position:\"absolute\",left:inset,bottom:inset,zIndex:5,width:40,height:40,margin:0,padding:0,border:0,borderRadius:999,display:\"grid\",placeItems:\"center\",background:\"#FFFFFF\",color:\"#4A193D\",cursor:\"pointer\",boxShadow:\"0 6px 18px -8px rgba(24, 19, 25, 0.45)\",WebkitTapHighlightColor:\"transparent\"},children:/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 24 24\",width:18,height:18,fill:\"none\",stroke:\"currentColor\",strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",style:{display:\"block\"},children:[/*#__PURE__*/_jsx(\"path\",{d:\"M11 5 6 9H3v6h3l5 4z\",fill:\"currentColor\"}),!on?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M15.5 8.5a5 5 0 0 1 0 7\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M18.5 5.5a9 9 0 0 1 0 13\"})]}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"m16 9.5 5 5\"}),/*#__PURE__*/_jsx(\"path\",{d:\"m21 9.5-5 5\"})]})]})});}addPropertyControls(VimeoVideo,{url:{type:ControlType.String,title:\"Vimeo URL\",defaultValue:\"\",placeholder:\"https://vimeo.com/…\"},videoId:{type:ControlType.String,title:\"Vimeo ID\",defaultValue:\"1234192013\",hidden:p=>!!parseVimeo(p.url)},hash:{type:ControlType.String,title:\"Private hash\",defaultValue:\"\",hidden:p=>!!parseVimeo(p.url)},controls:{type:ControlType.Boolean,title:\"Controls\",defaultValue:false},playing:{type:ControlType.Boolean,title:\"Playing\",defaultValue:true},muted:{type:ControlType.Boolean,title:\"Muted\",defaultValue:true},soundButton:{type:ControlType.Boolean,title:\"Sound button\",defaultValue:false,hidden:p=>!!p.controls,description:\"Shows a speaker button so visitors can turn the sound on and off.\"},volume:{type:ControlType.Number,title:\"Volume\",defaultValue:25,min:0,max:100,step:1},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:true},start:{type:ControlType.Number,title:\"Start at\",defaultValue:0,min:0,max:3600,step:.1,unit:\"s\",description:\"Skip the first seconds (e.g. a logo intro). 0 = off.\"},poster:{type:ControlType.ResponsiveImage,title:\"Poster\",description:\"Still shown until the video plays (no black flash). Use the Start at frame.\"},preload:{type:ControlType.Array,title:\"Preload\",control:{type:ControlType.ResponsiveImage},description:\"Other stills to fetch in the background (e.g. the other hero tabs' posters).\"},end:{type:ControlType.Number,title:\"End at\",defaultValue:0,min:0,max:3600,step:.1,unit:\"s\",description:\"Stop or loop back before this second (e.g. an end card). 0 = off.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"parseVimeo\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"VimeoVideo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VimeoVideo.map"],"mappings":"A,mOAA4K,SAAgBqB,EAAWC,EAAI,CAAC,IAAMC,EAAE,sDAAsD,KAAKD,GAAK,EAAE,EAAE,GAAG,CAACC,EAAE,OAAO,KAAK,IAAMC,EAAE,qBAAqB,KAAKF,GAAK,EAAE,EAAE,MAAM,CAAC,GAAGC,EAAE,GAAG,KAAKA,EAAE,KAAKC,EAAEA,EAAE,GAAG,GAAG,CAAE,CAGzX,SAAwBC,EAAWC,EAAM,CAAC,GAAK,CAACJ,MAAI,GAAGK,WAAS,GAAMC,UAAQ,GAAKC,QAAM,GAAKC,SAAO,GAAGC,OAAK,GAAKC,QAAMC,UAAQP,EAAYQ,EAAM,KAAK,IAAI,EAAE,OAAOR,EAAM,KAAK,GAAG,CAAC,EAAQS,EAAI,KAAK,IAAI,EAAE,OAAOT,EAAM,GAAG,GAAG,CAAC,EAAQU,EAAQF,EAAM,GAAGC,EAAI,EAAQE,EAAUJ,GAAQ,OAAOA,GAAS,SAASA,EAAO,KAAWK,EAAU,OAAOL,GAAS,SAASA,EAAOI,GAAWA,EAAU,KAAK,GAASE,EAAUF,GAAWA,EAAU,WAAW,OAAO,KAAKA,EAAU,WAAW,OAAO,UAE5dG,EAAKN,EAAM,GAAG,CAAC,CAACI,EAAgBG,EAAOpB,EAAWC,CAAG,EAAQoB,EAAQD,EAAOA,EAAO,GAAGf,EAAM,SAAS,aAAmBiB,EAAKF,EAAOA,EAAO,KAAKf,EAAM,MAAM,GAASkB,EAAI5C,EAAa,IAAI,EAAQ6C,EAAM7C,EAAa,IAAI,EAAO,CAAC8C,EAAKC,GAAS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