{"version":3,"file":"HeaderClip.WeM7p0V0.mjs","names":["useRef","useState","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","navigator","window","_e","p","c","init_jsx_runtime","ce","de","init_framer_DxfB3JJo","addPropertyControls","useIsStaticRenderer","ControlType","wantsClear","edgeMask","f","px","mask","HeaderClip","props","isStatic","rootRef","videoRef","src","setSrc","clear","setClear","phase","setPhase","run","video","r","alive","giveUpArmed","timers","finish","fade","inView","el","box","allowed","connection","MOTION_OK","tryStart","GIVE_UP_MS","v","waited","NO_PRELOAD_MS","played","onVisible","arm","phone","phoneMax","see","clearVideo","clearPhoneVideo","phoneVideo","look","since","again","SETTLE_MS","t","watchdog","stall","ready","playing","seconds","ended","failed","waiting","STALL_MS","rootStyle","radius","edgeFade","showVideo","picture","main","className","attr","COVER_CSS","stillMarkup","still","firstStill","FIRST_CSS","phoneStill","phoneFirstStill","cover","FADE_MS","init_HeaderClip","value"],"sources":["https:/framerusercontent.com/modules/uJMYpiYlDCb4nNP8McQ8/lSK2GtfpFyem9DaYl3zg/HeaderClip.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * HeaderClip\n *\n * A small clip for a page's header band. It plays one pass when the page\n * opens and then rests on a still. Built for Music (Batch B build 4, 2026-10-13;\n * Justin's pick 3 of 2026-10-11: Todd's clip 13, headphones on, listens,\n * headphones off). Since 2026-10-14 (Justin's pick \"A. He stands in the band\")\n * the files are keyed onto the band's own green, so he stands in the band with\n * no box; Edge Fade softens the clip's sides and top into the band.\n *\n * What a visitor gets:\n * - The still is in the page as served. It is there from first paint, with\n *   scripts off, and for a visitor who asks for reduced motion. Those two never\n *   get a video element at all.\n * - Otherwise the clip is fetched once the page's code has run, plays one pass\n *   as soon as it can, and is taken away when it ends, which leaves the still.\n *   The clip must end on the still's own frame, so nothing jumps at the end.\n * - A clip that does not start on the still's frame (Batch D, 2026-10-19; Justin:\n *   \"Yes, fix the start\") sets First Still to its first frame. That frame is in\n *   the page as served too, and the page's own CSS shows it in place of the\n *   still, from first paint, to a visitor who will get the clip (motion allowed,\n *   scripts on), until the clip plays; then the still takes over as before. So\n *   nothing jumps at the start either. If the clip never plays (the give-up, a\n *   refused play, the tile off screen, save-data) the still takes over at once.\n *   With First Still empty (Music, whose clip starts and ends on its still)\n *   nothing changes.\n * - It plays only if the tile is on screen as the page opens and still on screen\n *   when the clip is ready, and once for each time the page is opened. A tab\n *   opened in the background waits until it is looked at.\n * - A page opened by the site's own links can appear before the window has been\n *   scrolled back to the top (Batch D part 4, 2026-10-20: Justin, \"Sometimes when\n *   I visit pages, the GIF doesn't start automatically, and I have to refresh\").\n *   So a tile that is not on screen yet is looked at again on every frame for a\n *   moment before it is given up; one that stays off screen (a return to a place\n *   further down the page) still fetches nothing.\n * - If it has not started playing 8 s after it could first have played, the\n *   video is taken away and the still stays. A pause mid-pass longer than\n *   2.5 s (a stalled download) fades back to the still as well.\n * - If the browser will not play it (low power mode, a blocked or stalled\n *   download), the still simply stays.\n * - A visitor whose browser asks sites to save data gets the still.\n *\n * It is decoration: aria-hidden, empty alt text, no controls, no sound, never\n * focusable, and closed to the pointer.\n *\n * How it is placed: absolutely positioned in the header's column, so it takes no\n * room and moves nothing. It fills its layer; the layer's size is set for each\n * breakpoint on the canvas. Keep every control equal on all breakpoints, so the\n * page holds one copy of it. Phones get the small files here, by window width.\n *\n * Files: cut as site-assets/header-clip/README.md describes (the sRGB colour tag\n * keeps the video and the still the same colour; no sound).\n *\n * Firefox (2026-11-04; Justin: \"on firefox the gifs are rendering with a different green\n * background that stands out against the banner\"): Firefox on a Mac draws any video about\n * 10 levels lighter than the page around it, whatever colour tag the file carries, so a\n * clip keyed onto the band's green shows there as a lighter box. Firefox Video and\n * Firefox Phone Video are the same clips with a see-through background (WebM with\n * alpha), so the band itself shows behind him. Firefox, and only Firefox, gets them in\n * place of Video and Phone Video; Chrome and Safari draw the MP4s in the page's colour\n * and keep them. While a see-through clip plays, the still under it is hidden (it would\n * show through); it is back for the fade at the end, where the last frame is the still.\n * Empty: Firefox gets the MP4s, as before.\n *\n * To take it out: delete the layer.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 174\n * @framerIntrinsicHeight 174\n * @framerDisableUnlink\n */const MOTION_OK=\"(prefers-reduced-motion: no-preference)\";// A browser that loads nothing until asked (an iPhone) has no picture data this\n// long after the video is put on the page: ask it to play instead of waiting.\nconst NO_PRELOAD_MS=600;// A tile not on screen as the page opens is looked at again for this long: the site's own\n// links show the new page first and scroll the window to the top a few frames later.\nconst SETTLE_MS=600;// Not playing this long after the tile could first have played: the video goes and the\n// still stays. \"Playing\" means the video's own \"playing\" event, not the call to play():\n// a browser asked to play before it has any data would otherwise start seconds later.\nconst GIVE_UP_MS=8e3;// Paused this long mid-pass waiting for data: fade back to the still.\nconst STALL_MS=2500;const FADE_MS=200;// Firefox's own engine (Gecko), on any platform: its user agent says \"Firefox/<version>\".\n// Firefox on an iPhone or iPad is Safari's engine and says \"FxiOS\" instead, so it keeps the\n// MP4, as Safari does.\nfunction wantsClear(){try{if(!/\\bFirefox\\/\\d/.test(navigator.userAgent))return false;return document.createElement(\"video\").canPlayType('video/webm; codecs=\"vp9\"')!==\"\";}catch{return false;}}const box={position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\"};const cover={...box,objectFit:\"cover\",display:\"block\"};// The same box as \"cover\", for the still's markup.\nconst COVER_CSS=\"position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;display:block\";// First Still: shown in place of the still, before any code runs, only to a visitor who\n// will get the clip, and only until the clip plays (\"still\" and \"armed\"). A browser that\n// does not know the scripting feature reads the rule as false and keeps the still.\nconst FIRST_CSS=\".jr-header-clip .jr-hc-first{display:none}\"+\"@media (prefers-reduced-motion:no-preference) and (scripting:enabled){\"+'.jr-header-clip[data-phase=\"still\"] .jr-hc-first,.jr-header-clip[data-phase=\"armed\"] .jr-hc-first{display:block}'+'.jr-header-clip[data-phase=\"still\"] .jr-hc-end,.jr-header-clip[data-phase=\"armed\"] .jr-hc-end{visibility:hidden}}';// Edge Fade: the sides and the top dissolve into whatever is behind the clip, over this\n// many pixels. The bottom is left hard, for a clip that stands on an edge. 0 is no mask.\nfunction edgeMask(px){const f=Math.max(0,Math.round(Number(px)||0));if(!f)return{};const mask=`linear-gradient(to right, transparent 0, #000 ${f}px, #000 calc(100% - ${f}px), transparent 100%), `+`linear-gradient(to bottom, transparent 0, #000 ${f}px)`;return{WebkitMaskImage:mask,maskImage:mask,WebkitMaskComposite:\"source-in\",maskComposite:\"intersect\"};}// A value made safe inside a double-quoted attribute.\nconst attr=value=>String(value).replace(/&/g,\"&amp;\").replace(/\"/g,\"&quot;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\");export default function HeaderClip(props){const{video=\"\",phoneVideo=\"\",clearVideo=\"\",clearPhoneVideo=\"\",still=null,phoneStill=null,firstStill=null,phoneFirstStill=null,phoneMax=767,radius=2,edgeFade=0}=props;const isStatic=useIsStaticRenderer();const rootRef=useRef(null);const videoRef=useRef(null);const[src,setSrc]=useState(\"\");// True while the video on the page is a see-through (Firefox) file.\nconst[clear,setClear]=useState(false);const[phase,setPhase]=useState(\"still\");const run=useRef({asked:false,started:false,over:false,ready:false,armedAt:0,tryStart:()=>{},finish:_fade=>{}});// One pass for each time the page is opened.\nuseEffect(()=>{if(isStatic)return;if(!video){setPhase(\"rest\");return;}const r=run.current;r.asked=false;r.started=false;r.over=false;r.ready=false;let alive=true;let giveUpArmed=false;const timers=[];// Back to the still. With fade, the video goes over 200 ms first.\nconst finish=fade=>{if(r.over)return;r.over=true;if(!alive)return;if(!fade){setPhase(\"rest\");setSrc(\"\");return;}setPhase(\"fade\");timers.push(window.setTimeout(()=>{if(!alive)return;setPhase(\"rest\");setSrc(\"\");},FADE_MS+60));};r.finish=finish;const inView=()=>{const el=rootRef.current;if(!el)return false;const box=el.getBoundingClientRect();return box.width>0&&box.bottom>0&&box.top<window.innerHeight;};let allowed=false;try{const connection=navigator.connection;allowed=window.matchMedia(MOTION_OK).matches&&!(connection&&connection.saveData);}catch{allowed=false;}// Not allowed: nothing is fetched and the still stays.\nif(!allowed){r.over=true;setPhase(\"rest\");return;}const tryStart=()=>{if(!alive||r.over||r.asked)return;if(document.visibilityState!==\"visible\")return;if(!giveUpArmed){giveUpArmed=true;timers.push(window.setTimeout(()=>{if(!r.started)finish(false);},GIVE_UP_MS));}const v=videoRef.current;if(!v)return;if(!r.ready){// Buffering: \"canplaythrough\" calls this again. Loading nothing: ask.\nif(v.readyState>1)return;const waited=performance.now()-r.armedAt;if(waited<NO_PRELOAD_MS){timers.push(window.setTimeout(tryStart,NO_PRELOAD_MS-waited+20));return;}}if(!inView()){finish(false);return;}r.asked=true;v.muted=true;try{const played=v.play();if(played&&typeof played.catch===\"function\")played.catch(()=>finish(false));}catch{finish(false);}};r.tryStart=tryStart;const onVisible=()=>{if(document.visibilityState!==\"visible\")return;const v=videoRef.current;if(r.asked&&!r.over&&v&&v.paused&&!v.ended){// Hidden mid-play: finish the one pass.\ntry{const played=v.play();if(played&&typeof played.catch===\"function\")played.catch(()=>finish(false));}catch{finish(false);}return;}tryStart();};const arm=()=>{const phone=window.matchMedia(`(max-width: ${phoneMax}px)`).matches;// Firefox: the see-through file for this width, if there is one.\nconst see=clearVideo&&wantsClear()?phone&&clearPhoneVideo?clearPhoneVideo:clearVideo:\"\";r.armedAt=performance.now();setClear(!!see);setSrc(see||(phone&&phoneVideo?phoneVideo:video));setPhase(\"armed\");document.addEventListener(\"visibilitychange\",onVisible);};// On screen as the page opens: arm now. Not yet: look again on every frame for\n// SETTLE_MS; still off screen then (a return to a place further down the page):\n// nothing is fetched and the still stays.\nlet look=0;if(inView()){arm();}else{const since=performance.now();const again=()=>{look=0;if(!alive)return;if(inView()){arm();return;}if(performance.now()-since<SETTLE_MS){look=window.requestAnimationFrame(again);return;}r.over=true;setPhase(\"rest\");};look=window.requestAnimationFrame(again);}return()=>{alive=false;if(look)window.cancelAnimationFrame(look);timers.forEach(t=>window.clearTimeout(t));document.removeEventListener(\"visibilitychange\",onVisible);};},[isStatic,video,phoneVideo,clearVideo,clearPhoneVideo,phoneMax]);// The video's own events, once it is on the page.\nuseEffect(()=>{const v=videoRef.current;if(!v||!src)return;const r=run.current;let watchdog=0;let stall=0;const ready=()=>{r.ready=true;r.tryStart();};const playing=()=>{if(r.over)return;r.started=true;window.clearTimeout(stall);stall=0;if(!watchdog){// If the end never arrives (a stalled download), settle on the still.\nconst seconds=v.duration&&isFinite(v.duration)?v.duration:5;watchdog=window.setTimeout(()=>r.finish(true),seconds*1e3+4e3);}setPhase(\"play\");};const ended=()=>r.finish(true);const failed=()=>r.finish(false);// Waiting for data mid-pass: if it has not moved on in STALL_MS, back to the still.\nconst waiting=()=>{if(r.over||!r.started||stall)return;stall=window.setTimeout(()=>r.finish(true),STALL_MS);};v.addEventListener(\"canplaythrough\",ready);v.addEventListener(\"playing\",playing);v.addEventListener(\"ended\",ended);v.addEventListener(\"error\",failed);v.addEventListener(\"waiting\",waiting);if(v.readyState>=4)ready();else r.tryStart();return()=>{window.clearTimeout(watchdog);window.clearTimeout(stall);v.removeEventListener(\"canplaythrough\",ready);v.removeEventListener(\"playing\",playing);v.removeEventListener(\"ended\",ended);v.removeEventListener(\"error\",failed);v.removeEventListener(\"waiting\",waiting);};},[src]);const rootStyle={...props.style,position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",borderRadius:radius,...edgeMask(edgeFade),pointerEvents:\"none\"};const showVideo=!isStatic&&!!src&&phase!==\"still\";const picture=(main,phone,className)=>main?.src?`<picture${className?` class=\"${className}\"`:\"\"}>`+(phone?.src?`<source media=\"(max-width: ${Number(phoneMax)||0}px)\" srcset=\"${attr(phone.src)}\">`:\"\")+`<img srcset=\"${attr(main.src)}\" alt=\"\" decoding=\"async\" draggable=\"false\" style=\"${COVER_CSS}\">`+\"</picture>\":\"\";// With a First Still: the rule, the still, then the first frame over it. Without one, the\n// markup is exactly what it was before First Still existed.\nconst withFirst=!!(still?.src&&firstStill?.src);const stillMarkup=withFirst?`<style>${FIRST_CSS}</style>`+picture(still,phoneStill,\"jr-hc-end\")+picture(firstStill,phoneFirstStill,\"jr-hc-first\"):picture(still,phoneStill,\"\");return /*#__PURE__*/_jsxs(\"div\",{ref:rootRef,className:\"jr-header-clip\",\"data-phase\":phase,\"aria-hidden\":\"true\",style:rootStyle,children:[stillMarkup?/*#__PURE__*/_jsx(\"div\",{style:clear&&phase===\"play\"?{...box,visibility:\"hidden\"}:box,dangerouslySetInnerHTML:{__html:stillMarkup}}):null,showVideo?/*#__PURE__*/_jsx(\"video\",{ref:videoRef,src:src,muted:true,playsInline:true,preload:\"auto\",tabIndex:-1,disablePictureInPicture:true,disableRemotePlayback:true,style:{...cover,opacity:phase===\"play\"?1:0,transition:phase===\"fade\"?`opacity ${FADE_MS}ms linear`:\"none\"}}):null]});}addPropertyControls(HeaderClip,{video:{type:ControlType.File,title:\"Video\",allowedFileTypes:[\"mp4\",\"webm\"],description:\"One pass of the clip, no sound. It must end on the Still's frame, and start on it or on the First Still's.\"},phoneVideo:{type:ControlType.File,title:\"Phone Video\",allowedFileTypes:[\"mp4\",\"webm\"],description:\"A smaller cut for phones. Empty uses Video.\"},clearVideo:{type:ControlType.File,title:\"Firefox Video\",allowedFileTypes:[\"webm\"],description:\"The same clip with a see-through background (WebM with alpha). Firefox gets it in place of Video: it draws video lighter than the page, so a keyed clip shows as a box there. Empty: Firefox gets Video.\"},clearPhoneVideo:{type:ControlType.File,title:\"Firefox Phone Video\",allowedFileTypes:[\"webm\"],description:\"The see-through cut for phones. Empty uses Firefox Video.\"},still:{type:ControlType.ResponsiveImage,title:\"Still\",description:\"The frame the clip ends on.\"},phoneStill:{type:ControlType.ResponsiveImage,title:\"Phone Still\"},firstStill:{type:ControlType.ResponsiveImage,title:\"First Still\",description:\"The clip's first frame, if it is not the Still. Shown until the clip plays.\"},phoneFirstStill:{type:ControlType.ResponsiveImage,title:\"Phone First Still\"},phoneMax:{type:ControlType.Number,title:\"Phone Max Width\",defaultValue:767,min:0,max:1279,step:1,unit:\"px\",displayStepper:true,description:\"Windows this wide or narrower get the phone files.\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:2,min:0,max:200,step:1,unit:\"px\"},edgeFade:{type:ControlType.Number,title:\"Edge Fade\",defaultValue:0,min:0,max:60,step:1,unit:\"px\",description:\"Fades the sides and top into the band. 0 is a hard edge.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HeaderClip\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HeaderClip.map"],"mappings":"A,4NAkFA,SAASiB,GAAY,CAAC,GAAG,CAA4D,MAAvD,gBAAgB,KAAKZ,EAAU,SAAS,EAAsB,SAAS,cAAc,OAAO,CAAC,CAAC,YAAY,0BAA0B,IAAI,GAAvF,EAA0F,MAAM,CAAC,MAAO,EAAM,CAAC,CAM9L,SAASa,EAAS,EAAG,CAAC,IAAMC,EAAE,KAAK,IAAI,EAAE,KAAK,MAAM,OAAOC,CAAE,GAAG,CAAC,CAAC,EAAE,GAAG,CAACD,EAAE,MAAM,CAAC,EAAE,IAAME,EAAK,iDAAiDF,EAAE,uBAAuBA,EAAE,yEAA4EA,EAAE,KAAK,MAAM,CAAC,gBAAgBE,EAAK,UAAUA,EAAK,oBAAoB,YAAY,cAAc,WAAW,CAAE,CAC5O,SAAwBC,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,GAAG,aAAW,GAAG,aAAW,GAAG,kBAAgB,GAAG,QAAM,KAAK,aAAW,KAAK,aAAW,KAAK,kBAAgB,KAAK,WAAS,IAAI,SAAO,EAAE,WAAS,GAAGC,EAAYC,EAAST,EAAoB,EAAQU,EAAQzB,EAAO,IA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