{"version":3,"file":"RedactionSweep.DM3evyr4.mjs","names":["useRef","__esmMin","c","J","init_jsx_runtime","ce","init_npm_react_18_3_1","de","addFonts","fontsAdded","css","CYCLE","f","ASSET","FACES","el","shuffle","b","a","i","j","t","runEyebrowEcho","root","leaves","walker","letters","undo","label","host","leaf","slots","slot","ghost","live","ch","n","steps","pool","ACCENTS","s","timers","show","face","family","color","play","stagger","STAGGER_MS","SPREAD_MS","start","l","SWAP_MS","io","entries","loads","r","fn","withRedactionSweep","own","setRef","ref","Component","props","init_RedactionSweep"],"sources":["https:/framerusercontent.com/modules/ot29fcl9PFiYQyFkNZWt/SwjklpjpZRP9FZ2X98sW/RedactionSweep.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef}from\"react\";// Eyebrow echo (2026-10-31, replaces the Redaction sweep; the export keeps its old name so every eyebrow on the\n// site picks this up without being re-wired). When an eyebrow reaches the middle of the screen its letters cycle\n// through the logo intro's typefaces, some in the accent colours, then settle in the eyebrow's own canvas font\n// (Aeonik). Faces are only ones FinArt holds web licences for, or SIL OFL. They are A-Z/a-z/0-9 subsets hosted as\n// Framer assets and load when the first eyebrow mounts. Each letter sits in a slot sized by a hidden copy in the\n// final font, so the word never changes width while it cycles.\nconst ASSET=\"https://framerusercontent.com/assets/\";const FACES={Financier:\"pkenzOY85gaEXfjSIH0BzDUGQQ.woff2\",Alpina:\"86vldkszch1eGBDGeFYPjt5SuQU.woff2\",\"Obviously Wide\":\"wtU3xQfWdaxGINdzXeDmULg.woff2\",Obviously:\"rAAgeME36YBNdxYLE4Gk6Vt6I.woff2\",Enkel:\"cP5PMzpOFYjf6XXjGcAv8UCSNA0.woff2\",Redaction:\"ppPqguQWsw1BI3vA7nU7gJ51Klk.woff2\",\"Redaction 50\":\"43Lj7nj9VMiQJCV4Sltxu0elvRE.woff2\",\"BDO Grotesk\":\"gFScvQG8LrHeOQdduUMEQlgDF8.woff2\",\"Faculty Glyphic\":\"1noAhoTO62cTzANkKW8R9mNlk.woff2\",Oswald:\"xlDQORB5is0iycS2B5AmtIb1Lfo.woff2\",\"Dancing Script\":\"VY1WAvFCWdUDqYxlWXGxwSuxUS4.woff2\",\"Reddit Sans\":\"4EsQKf7r6t8fP3hPew6pW0od94.woff2\",Pacifico:\"FsZIhyTEGTPG35prjpZt02yRqI.woff2\"};const CYCLE=Object.keys(FACES);const ACCENTS=[\"#E2482C\",\"#D9894F\",\"#8EA1E3\",\"#6e5b87\"];const SWAP_MS=150// each face holds this long (the logo intro's pace)\n;const STAGGER_MS=120// between letters starting\n;const SPREAD_MS=1400// long eyebrows compress the stagger so the whole word starts within this\n;const family=face=>`\"FAE ${face}\"`;let fontsAdded=false;function addFonts(){if(fontsAdded)return;fontsAdded=true;const css=CYCLE.map(f=>`@font-face{font-family:\"FAE ${f}\";src:url(${ASSET}${FACES[f]}) format(\"woff2\");font-display:block}`).join(\"\");const el=document.createElement(\"style\");el.dataset.eyebrowEcho=\"\";el.textContent=css;document.head.appendChild(el);}function shuffle(a){const b=a.slice();for(let i=b.length-1;i>0;i--){const j=Math.floor(Math.random()*(i+1));const t=b[i];b[i]=b[j];b[j]=t;}return b;}// The echo itself, for code components whose eyebrow lives in their own markup (the pricing page). Returns its cleanup.\nexport function runEyebrowEcho(root){if(!root||typeof IntersectionObserver===\"undefined\")return()=>{};if(matchMedia(\"(prefers-reduced-motion: reduce)\").matches)return()=>{};addFonts();const leaves=[];const walker=document.createTreeWalker(root,NodeFilter.SHOW_TEXT);while(walker.nextNode())if(walker.currentNode.nodeValue?.trim())leaves.push(walker.currentNode);if(!leaves.length)return()=>{};const letters=[];const undo=[];const label=(root.textContent||\"\").replace(/\\s+/g,\" \").trim();leaves.forEach(leaf=>{const host=leaf.parentElement;const slots=[...leaf.nodeValue||\"\"].map(ch=>{const slot=document.createElement(\"span\"),ghost=document.createElement(\"span\"),live=document.createElement(\"span\");slot.style.cssText=\"position:relative;display:inline-block;white-space:pre\";ghost.style.cssText=\"white-space:pre;font-style:normal\";// the cycling letter floats over its slot, so a taller or wider face never moves the page\nlive.style.cssText=\"position:absolute;left:50%;top:0;transform:translateX(-50%);white-space:pre;font-style:normal;line-height:inherit;pointer-events:none\";ghost.style.visibility=live.style.visibility=\"hidden\";ghost.textContent=live.textContent=ch;slot.append(ghost,live);// 2 to 4 cycle faces, never the same twice in a row; about half in an accent colour. Glyphs the\n// subsets don't carry (like ™) skip the cycle so they never flash in a fallback font.\nconst n=/[^\\x20-\\x7E’]/.test(ch)?0:2+Math.floor(Math.random()*3),steps=[];let pool=[];while(steps.length<n){if(!pool.length)pool=shuffle(CYCLE);const f=pool.shift();if(steps.length&&steps[steps.length-1].face===f)continue;steps.push({face:f,color:Math.random()<.5?ACCENTS[Math.floor(Math.random()*ACCENTS.length)]:\"\"});}letters.push({live,steps});return slot;});slots.forEach(s=>host.insertBefore(s,leaf));host.removeChild(leaf);undo.push(()=>{host.insertBefore(leaf,slots[0]);slots.forEach(s=>s.remove());});});root.setAttribute(\"aria-label\",label);const timers=[];// A null face is the eyebrow's own font, which is where every letter lands\nconst show=(l,face,color)=>{l.live.style.visibility=\"visible\";l.live.style.fontFamily=face?family(face):\"\";l.live.style.color=color;};const play=()=>{const stagger=Math.min(STAGGER_MS,SPREAD_MS/Math.max(1,letters.length));letters.forEach((l,i)=>{const start=i*stagger;l.steps.forEach((s,j)=>timers.push(setTimeout(()=>show(l,s.face,s.color),start+j*SWAP_MS)));timers.push(setTimeout(()=>show(l,null,\"\"),start+l.steps.length*SWAP_MS));});};// Fires once the eyebrow is in the top half of the viewport, i.e. it has reached the middle. The faces\n// are tiny and usually loaded by then; a short cap keeps a slow load from holding the eyebrow back.\nconst io=new IntersectionObserver(entries=>{if(!entries[0].isIntersecting)return;io.disconnect();const loads=CYCLE.map(f=>document.fonts?.load(`16px ${family(f)}`).catch(()=>null));Promise.race([Promise.all(loads),new Promise(r=>setTimeout(r,600))]).then(play);},{rootMargin:\"0px 0px -50% 0px\",threshold:0});io.observe(root);return()=>{io.disconnect();timers.forEach(clearTimeout);undo.forEach(fn=>fn());root.removeAttribute(\"aria-label\");};}export function withRedactionSweep(Component){return /*#__PURE__*/forwardRef(function EyebrowEcho(props,ref){const own=useRef(null);const setRef=el=>{own.current=el;if(typeof ref===\"function\")ref(el);else if(ref)ref.current=el;};useEffect(()=>runEyebrowEcho(own.current),[]);return /*#__PURE__*/_jsx(Component,{...props,ref:setRef});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withRedactionSweep\":{\"type\":\"reactHoc\",\"name\":\"withRedactionSweep\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"runEyebrowEcho\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RedactionSweep.map"],"mappings":"A,gIASyD,SAASQ,GAAU,CAAC,GAAGC,EAAW,OAAO,EAAW,GAAK,IAAMC,EAAIC,EAAM,IAAI,GAAG,+BAA+BC,EAAE,YAAYC,IAAQC,EAAMF,GAAG,sCAAsC,CAAC,CAAC,KAAK,EAAE,EAAQG,EAAG,SAAS,cAAc,OAAO,EAAE,EAAG,QAAQ,YAAY,GAAG,EAAG,YAAYL,EAAI,SAAS,KAAK,YAAYK,CAAE,CAAE,CAAC,SAASC,EAAQ,EAAE,CAAC,IAAMC,EAAEC,EAAE,MAAM,EAAE,IAAI,IAAIC,EAAEF,EAAE,OAAO,EAAEE,EAAE,EAAE,IAAI,CAAC,IAAMC,EAAE,KAAK,MAAM,KAAK,OAAO,GAAGD,EAAE,EAAE,EAAQE,EAAEJ,EAAEE,GAAG,EAAEA,GAAGF,EAAEG,GAAG,EAAEA,GAAGC,CAAE,CAAC,OAAOJ,CAAE,CACjgB,SAAgBK,EAAe,EAAK,CAAkE,GAA9D,CAACC,GAAM,OAAO,qBAAuB,KAA4B,WAAW,kCAAkC,CAAC,CAAC,QAAQ,UAAU,CAAC,EAAEf,EAAS,EAAE,IAAMgB,EAAO,CAAC,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