{"version":3,"file":"SectionIndex.DeME7sdP.mjs","names":["useRef","useState","startTransition","__esmMin","te","init_npm_react_18_3_1","de","window","init_ssg_sandbox_shims","Ha","init_jsx_runtime","init_npm_react_dom_18_3_1","c","ce","_e","addPropertyControls","init_framer_DKgW_P28","useIsStaticRenderer","ControlType","themeColor","init_PanelSystem","needleFor","item","MATCH_BY_LABEL","autoLabel","layer","el","words","heading","readRibbon","svg","paths","legs","p","band","box","edge","finish","corner","first","container","top","topRadius","readCard","card","b","y","px","n","r","l","t","e","d","x","inset","topFlare","w","radius","FLARE_WIDTH","h","FLARE_HEIGHT","a","FLARE_REACH","reach","tallest","FLARE_GROW","textWidth","measureCanvas","text","size","SectionIndex","DEFAULT_ITEMS","tickColorRaw","activeTickColorRaw","cardBackgroundRaw","titleColorRaw","noteColorRaw","props","tickColor","activeTickColor","cardBackground","titleColor","noteColor","isStatic","configuredByLabel","items","resolvedItems","cfg","itemsKey","i","sectionsRef","rowsKeyRef","anchorRef","rows","setRows","active","setActive","fadeFrom","setFadeFrom","hovered","setHovered","wide","setWide","anchorRect","setAnchorRect","ribbon","setRibbon","ribbonFits","setRibbonFits","labelIndex","setLabelIndex","ribbonRef","ribbonFitsRef","navRef","panelRef","slideRef","labelRef","mirrorRef","mirrorSlideRef","growRef","laneTopRef","labelTopRef","positionRibbon","nav","vh","stripTop","stripEnd","RIBBON_PAD","siteNavBottom","panel","sheetTop","laneTop","mirror","fits","media","minViewport","onMedia","findBands","scope","found","node","rect","minSectionHeight","wraps","host","sectionEls","isSection","smallest","prev","unique","o","collect","bands","claimed","picked","needle","firstTop","fadeIndex","RIBBON_FADE_FROM","key","track","viewport","index","mostVisible","visible","measureAnchor","next","anchor","els","measureRibbon","sameRibbon","measureRaf","onScroll","onResize","settleTimers","ms","scrollToIndex","staticRows","allRows","showTop","ribbonMode","faded","leaveRail","staticActive","isRight","railOffset","anchorInset","leftOffset","fontSize","ribbonFontSize","ribbonName","row","tickEnd","longest","room","needed","GROW_LABEL_GAP","GROW_LABEL_PAD","growWidth","labelLeft","bottomRadius","flares","flareWidth","f","flareShape","at","smoothing","progress","rx","ry","direction","beta","arc","v","py","x1","y1","x2","y2","segment","p1x","p1y","p2x","p2y","py0","curves","from","to","handle","panelHeight","panelClip","bottom","shift","end","path","start","growTimeline","label","time","GROW_OPEN_MS","timing","GROW_EASE","outline","anims","setGrowOpen","g","open","clip","shape","opacity","target","curveSteps","offset","immediate","pointer","GROW_CLOSE_MS","enterRow","growLane","outer","slide","isActive","isHovered","tickWidth","falloff","rowSpacing","RIBBON_CURRENT_TICK","RIBBON_TICK","init_SectionIndex","acc","k"],"sources":["https:/framerusercontent.com/modules/APG46CrigqxHbLVKhFcF/Okfd32GrhobdLbHfdPwb/SectionIndex.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{themeColor}from\"https://framerusercontent.com/modules/xuHq55xcsIuroc51p47f/pFIIFCkBf6FoTCOyYxr6/PanelSystem.js\";import{useEffect,useRef,useState,startTransition}from\"react\";import{createPortal}from\"react-dom\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";// `match` is matched against each section's own heading, so hiding,\n// adding, or reordering sections can never shift the labels.\nconst DEFAULT_ITEMS=[{label:\"Design\",match:\"Design every email\",note:\"One editor for every email\"},{label:\"Engineering\",match:\"easy yes from engineering\",note:\"The API, SDKs, and webhooks\"},{label:\"Lifecycle\",match:\"lifecycle workflows\",note:\"Workflows for every stage\"},{label:\"Growth\",match:\"growth team\",note:\"The growth team’s lever\"},{label:\"Marketing\",match:\"marketing in sync\",note:\"Campaigns tied to product data\"},{label:\"Integrations\",match:\"tools you already use\",note:\"Works with your stack\"},{label:\"Deliverability\",match:\"protection for sender reputation\",note:\"Protect your sender reputation\"},{label:\"Testimonials\",match:\"why teams\",note:\"Why teams choose Loops\"},{label:\"Get started\",match:\"Start sending better\",note:\"Free to start\"}];const MATCH_BY_LABEL=DEFAULT_ITEMS.reduce((acc,item)=>({...acc,[item.label.toLowerCase()]:item.match}),{});// Framer keys array sub-controls off their title, so the stored field can\n// arrive as `match` or `headingMatch`; fall back to the known label map\n// before ever matching on the raw label.\nfunction needleFor(item){const raw=item.match||item.headingMatch||MATCH_BY_LABEL[(item.label||\"\").toLowerCase()]||item.label||\"\";return raw.toLowerCase();}// Title for a section no item claimed. The Framer layer name reads far\n// better than a chopped heading (\"Integrations\" beats \"Stay synced with\").\nfunction autoLabel(el,heading){const layer=(el.getAttribute(\"data-framer-name\")||\"\").replace(/\\(.*?\\)/g,\"\").replace(/\\bsections?\\b/gi,\"\").trim();if(layer&&layer.length<=22){return layer.charAt(0).toUpperCase()+layer.slice(1);}const words=heading.replace(/[.,:;!?]+$/,\"\").split(\" \").slice(0,3).join(\" \");return words.length>22?words.slice(0,21).trimEnd()+\"…\":words;}const RIBBON_PAD=24;const GROW_OPEN_MS=300;const GROW_CLOSE_MS=200;// Soft start, soft landing and no overshoot; the lane and its name share it.\nconst GROW_EASE=\"cubic-bezier(.25,.1,.25,1)\";const curveSteps=Array.from({length:49},(_,i)=>i/48);const GROW_LABEL_GAP=8;// Where the grown lane meets the lane above it (and the footer below), it\n// flares out on a long concave slope, scaled from the sheet's own corner.\nconst FLARE_WIDTH=1.15;const FLARE_HEIGHT=2.2;// The top flare runs on into the hero card's corner rather than levelling off\n// beside it: at most this much taller than usual (flatter beyond that), and\n// only while the card is within this many flare widths.\nconst FLARE_GROW=2.2;const FLARE_REACH=3.5;const GROW_LABEL_PAD=12;// On oxblood the ticks keep the original light grey in both themes (the tick\n// colour prop resolves to a dark grey in dark mode), and the original's\n// near-black current tick becomes white.\nconst RIBBON_TICK=\"#DAD9D6\";const RIBBON_CURRENT_TICK=\"#FFFFFF\";// From the customer stories section down, the ribbon ticks fade out, so they\n// are gone before the footer.\nconst RIBBON_FADE_FROM=\"teams stay\";function readRibbon(container){const svg=document.querySelector(\".laod-page-art > svg\");const paths=svg?Array.from(svg.querySelectorAll(\"path\")):[];const legs=paths.map(p=>(p.getAttribute(\"d\")||\"\").match(/A([\\d.]+) [\\d.]+ 0 0 0 (-?[\\d.]+) (-?[\\d.]+)V(-?[\\d.]+)/));if(!svg||legs.length<4||!legs[3])return null;const band=parseFloat(paths[3].getAttribute(\"stroke-width\")||\"0\")-.4;if(!(band>0))return null;const box=svg.getBoundingClientRect();const edge=box.left+parseFloat(legs[3][2])+band/2;const finish=document.querySelector(\"svg.laod-ribbon-finish\");const corner=Array.from(finish?.querySelectorAll(\"path\")||[]).map(p=>p.getAttribute(\"d\")||\"\").join(\" \").match(/A([\\d.]+) [\\d.]+ 0 0 1 (-?[\\d.]+) (-?[\\d.]+)V-200Z/);const first=document.querySelector(`[data-framer-name=\"${container}\"]`)?.children[0];const top=box.top+window.scrollY+parseFloat(legs[3][3]);// The lane's path is its centre line, so the sheet corner is half a lane tighter.\nconst topRadius=Math.max(0,parseFloat(legs[3][1])-band/2);return{left:edge-4*band,band,top,end:corner&&finish?finish.getBoundingClientRect().top+window.scrollY+parseFloat(corner[3]):box.top+window.scrollY+parseFloat(legs[3][4]),topRadius,bottomRadius:corner?parseFloat(corner[1]):0,color:window.getComputedStyle(paths[3]).stroke,margin:first?first.getBoundingClientRect().left-edge:0,...readCard(edge-2,top-topRadius-1),navBand:document.querySelector(\".laod-nav-band\")};}// Up to about 1700px wide the hero card overlaps the strip's turn. The grown lane\n// passes under it: the card's rounded box, relative to the panel's origin\n// (x, y in document space), is cut out of the panel.\nfunction readCard(x,y){const card=Array.from(document.querySelectorAll(\".laod-svg\")).find(el=>{const b=el.getBoundingClientRect();return b.top+window.scrollY<=y&&b.bottom+window.scrollY>y;});if(!card)return{clip:\"none\",cornerX:0,cornerY:0};const b=card.getBoundingClientRect();const px=n=>Math.round(n*2)/2;const r=px(parseFloat(window.getComputedStyle(card).borderBottomLeftRadius)*(b.width/card.offsetWidth||1));const[l,t,e,d]=[b.left-x,b.top+window.scrollY-y,b.right-x,b.bottom+window.scrollY-y].map(px);// The point halfway round the card's corner.\nconst inset=px(r*(1-Math.SQRT1_2));return{// Outer box clockwise, card counter-clockwise, so the card is a hole.\nclip:`path(\"M-9999 -9999H9999V99999H-9999Z M${l} ${t+r}V${d-r}A${r} ${r} 0 0 0 ${l+r} ${d}H${e-r}A${r} ${r} 0 0 0 ${e} ${d-r}V${t+r}A${r} ${r} 0 0 0 ${e-r} ${t}H${l+r}A${r} ${r} 0 0 0 ${l} ${t+r}Z\")`,cornerX:l+inset,cornerY:d-inset};}// The top flare's size, given the sheet corner's radius and the card corner's\n// offset (a across from the grown lane's edge, b down from its top). Through\n// that point it keeps the flare's proportions, or its height cap if that\n// would be taller: (1 - a/w)² + (1 - b/h)² = 1.\nfunction topFlare(radius,a,b){const w=radius*FLARE_WIDTH;const h=radius*FLARE_HEIGHT;if(!(a>0&&b>0&&a<w*FLARE_REACH))return{w,h};const c=b*FLARE_WIDTH/FLARE_HEIGHT;const reach=(a*a+c*c)/(a+c-Math.sqrt(2*a*c));if(reach<=w)return{w,h};const tallest=h*FLARE_GROW;if(reach*FLARE_HEIGHT/FLARE_WIDTH<=tallest)return{w:reach,h:reach*FLARE_HEIGHT/FLARE_WIDTH};return{w:a/(1-Math.sqrt(1-(1-b/tallest)**2)),h:tallest};}const sameRibbon=(a,b)=>a===b||!!a&&!!b&&a.color===b.color&&a.clip===b.clip&&a.navBand===b.navBand&&[\"left\",\"band\",\"top\",\"end\",\"margin\",\"topRadius\",\"bottomRadius\",\"cornerX\",\"cornerY\"].every(k=>Math.abs(a[k]-b[k])<.5);// \"Testimonials\", the longest name, sets in about 6.2 ems at 600; size the\n// type so it clears the strip, up to 12px.\nconst ribbonFontSize=band=>Math.round(Math.min(12,Math.max(10,(band*4-12)/6.2))*2)/2;let measureCanvas=null;function textWidth(text,size){if(typeof document===\"undefined\")return text.length*size*.6;if(!measureCanvas)measureCanvas=document.createElement(\"canvas\").getContext(\"2d\");if(!measureCanvas)return text.length*size*.6;measureCanvas.font=`600 ${size}px Inter`;return Math.ceil(measureCanvas.measureText(text).width);}/**\n * Page index rail. One tick per section, centered along the configured viewport edge,\n * or, on the homepage's Ribbon Frame, set into the strip's oxblood lane.\n * Sections are located by matching each item's `match` text against the\n * section headings rendered inside the container frame.\n *\n * @framerIntrinsicWidth 48\n * @framerIntrinsicHeight 120\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function SectionIndex(props){const{items=DEFAULT_ITEMS,showTop=true,container=\"Inner Content\",minSectionHeight=250,rowSpacing=12,anchor=\"left\",anchorInset=12,anchorGap=3,leftOffset=24,minViewport=1200,tickColor:tickColorRaw=\"var(--token-ee2fd5cb-f3a4-4f81-9d12-b11768d65182, #DAD9D6)\",activeTickColor:activeTickColorRaw=\"var(--token-c3a36b0c-4da1-403f-83a2-d5b8f9dcaed7, #111111)\",cardBackground:cardBackgroundRaw=\"var(--token-83f5fefd-8241-47f8-8f7c-5e6247fea9aa, #FFFFFF)\",titleColor:titleColorRaw=\"var(--token-c3a36b0c-4da1-403f-83a2-d5b8f9dcaed7, #111111)\",noteColor:noteColorRaw=\"var(--token-c2820726-15e0-47b6-8552-99c14deaa2e6, #63635e)\"}=props;const tickColor=themeColor(tickColorRaw);const activeTickColor=themeColor(activeTickColorRaw);const cardBackground=themeColor(cardBackgroundRaw);const titleColor=themeColor(titleColorRaw);const noteColor=themeColor(noteColorRaw);const isStatic=useIsStaticRenderer();// Framer hands back a fresh array each render; key on contents so the\n// scroll listeners are not torn down on every hover.\nconst configuredByLabel=new Map(items.map(item=>[(item.label||\"\").toLowerCase(),item]));// Instances hold a frozen snapshot of this array from before the\n// defaults had notes, so an empty stored note inherits the default.\nconst resolvedItems=[...DEFAULT_ITEMS.map(item=>{const cfg=configuredByLabel.get(item.label.toLowerCase());if(!cfg)return item;return cfg.note?cfg:{...cfg,note:item.note};}),...items.filter(item=>!MATCH_BY_LABEL[(item.label||\"\").toLowerCase()])];const itemsKey=resolvedItems.map(i=>`${i.label}|${i.match}|${i.note}`).join(\"~\");const sectionsRef=useRef([]);const rowsKeyRef=useRef(\"\");const anchorRef=useRef(null);const[rows,setRows]=useState([]);const[active,setActive]=useState(-1);const[fadeFrom,setFadeFrom]=useState(-1);const[hovered,setHovered]=useState(-1);const[wide,setWide]=useState(true);const[anchorRect,setAnchorRect]=useState(null);const[ribbon,setRibbon]=useState(null);const[ribbonFits,setRibbonFits]=useState(false);const[labelIndex,setLabelIndex]=useState(0);const ribbonRef=useRef(null);const ribbonFitsRef=useRef(false);const navRef=useRef(null);const panelRef=useRef(null);const slideRef=useRef(null);const labelRef=useRef(null);// The grown lane's twin inside the nav band, under its frost.\nconst mirrorRef=useRef(null);const mirrorSlideRef=useRef(null);const growRef=useRef(null);// The lane and its name move with translate, never top: top writes on every\n// scroll frame registered as layout shifts (CLS 0.36 at 1440).\nconst laneTopRef=useRef(0);const labelTopRef=useRef(0);// Ribbon mode positions itself on every scroll frame, so these writes go\n// straight to the DOM instead of through a render.\nfunction positionRibbon(){const nav=navRef.current;const r=ribbonRef.current;if(!nav)return;if(!r){nav.style.translate=\"\";nav.style.clipPath=\"\";return;}const vh=window.innerHeight;const stripTop=r.top-window.scrollY;const stripEnd=r.end-window.scrollY;const h=nav.offsetHeight;// Sticky on the sheet edge: centred while the strip fills the screen,\n// clear of both sheet corners.\nconst top=Math.round(Math.min(Math.max((vh-h)/2,stripTop+RIBBON_PAD),stripEnd-RIBBON_PAD-h));nav.style.translate=`0 ${top}px`;// The grown lane runs the sheet's full height; cut it at the fixed site nav's bottom edge\n// so it passes under the nav like the drawn lanes do.\nconst siteNavBottom=Math.max(0,...Array.from(document.querySelectorAll(\"nav\"),el=>el===nav?null:el.getBoundingClientRect()).filter(box=>box!==null&&box.height>0&&box.height<200&&Math.abs(box.top)<2).map(box=>box.bottom));nav.style.clipPath=siteNavBottom>0?`inset(${siteNavBottom-top}px -9999px -9999px -9999px)`:\"\";const panel=panelRef.current;if(panel){// The grown lane is the sheet's edge moved into the margin: it runs\n// the sheet's full height and keeps both of its rounded corners.\n// 1px past each end, into the lane above and the footer below, so\n// no sub-pixel seam opens where they meet.\nconst sheetTop=stripTop-r.topRadius;const laneTop=sheetTop-top-1;laneTopRef.current=laneTop;panel.style.translate=`0 ${laneTop}px`;// The name rides inside the lane; this holds it level with its tick.\nif(labelRef.current)labelRef.current.style.translate=`0 ${labelTopRef.current-laneTop}px`;panel.style.height=`${r.end-r.top+r.topRadius+r.bottomRadius+2}px`;// The band is fixed at the viewport origin, so the twin takes the panel's viewport position.\n// A 3D transform gives it its own layer: without one, WebKit leaves the frosted band\n// unrepainted while the lane opens.\nconst mirror=mirrorRef.current;if(mirror){mirror.style.transform=`translate3d(${r.left}px, ${sheetTop-1}px, 0)`;mirror.style.height=panel.style.height;}}const fits=stripEnd-stripTop>=h+2*RIBBON_PAD;if(fits!==ribbonFitsRef.current){ribbonFitsRef.current=fits;startTransition(()=>setRibbonFits(fits));}}useEffect(()=>{if(isStatic||typeof window===\"undefined\")return;const media=window.matchMedia(`(min-width: ${minViewport}px)`);const onMedia=()=>startTransition(()=>setWide(media.matches));onMedia();media.addEventListener(\"change\",onMedia);// Every banded section on the page, in page order. Deliberately free\n// of any document-height maths: inside Framer's preview frame the\n// document can measure as one viewport, which used to exclude every\n// section and leave no rail at all.\nconst findBands=()=>{const scope=container?document.querySelector(`[data-framer-name=\"${container}\"]`)||document.body:document.body;const found=[];scope.querySelectorAll(\"div, section, footer\").forEach(node=>{const el=node;const rect=el.getBoundingClientRect();if(rect.height<minSectionHeight)return;const heading=el.querySelector(\"h1, h2, h3\");const text=(heading?.textContent||\"\").replace(/\\s+/g,\" \").trim();if(!text)return;found.push({el,heading:text,top:rect.top+window.scrollY,height:rect.height});});const wraps=(a,b)=>a!==b&&a.el.contains(b.el);// A section is a direct child of the container. Anything else\n// carrying the same heading is either a wrapper around it or a\n// header block nested inside it, so the section always wins.\nconst host=container?document.querySelector(`[data-framer-name=\"${container}\"]`):null;const sectionEls=host?Array.from(host.children):[];const isSection=b=>sectionEls.includes(b.el);// Order matters. A layout wrapper always reports the first heading\n// it contains, so collapsing each heading to its smallest element\n// discards the wrappers and leaves the real section...\nconst smallest=new Map;for(const c of found){const prev=smallest.get(c.heading);if(!prev){smallest.set(c.heading,c);continue;}if(isSection(c)!==isSection(prev)){if(isSection(c))smallest.set(c.heading,c);continue;}if(c.height<prev.height)smallest.set(c.heading,c);}// ...and only then does dropping nested bands remove the demos\n// inside a section rather than the section itself.\nconst unique=Array.from(smallest.values());return unique.filter(c=>!unique.some(o=>wraps(o,c))).map(c=>({...c,isSection:isSection(c)})).sort((a,b)=>a.top-b.top);};const collect=()=>{const bands=findBands();if(bands.length===0)return;const claimed=new Set;const picked=[];for(const item of resolvedItems){const needle=needleFor(item);if(!needle)continue;const i=bands.findIndex((b,n)=>!claimed.has(n)&&b.heading.toLowerCase().includes(needle));if(i===-1)continue;claimed.add(i);picked.push({row:{label:item.label,note:item.note||bands[i].heading},band:bands[i]});}if(picked.length===0)return;// Any unclaimed section below the first tracked one also gets a\n// tick, so the index always covers the rest of the page. Bands\n// above it (the hero) stay untracked — that is the \"Top\" tick.\nconst firstTop=Math.min(...picked.map(p=>p.band.top));bands.forEach((b,i)=>{if(claimed.has(i)||b.top<=firstTop)return;if(b.isSection===false)return;picked.push({row:{label:autoLabel(b.el,b.heading),note:DEFAULT_ITEMS.find(item=>b.heading.toLowerCase().includes(item.match.toLowerCase()))?.note||b.heading},band:b});});picked.sort((a,b)=>a.band.top-b.band.top);sectionsRef.current=picked.map(p=>p.band.el);const fadeIndex=picked.findIndex(p=>p.band.heading.toLowerCase().includes(RIBBON_FADE_FROM));startTransition(()=>setFadeFrom(fadeIndex));const found=picked.map(p=>p.row);const key=found.map(r=>r.label+\"|\"+r.note).join(\"~\");if(key!==rowsKeyRef.current){rowsKeyRef.current=key;startTransition(()=>setRows(found));}};// The section filling most of the screen is the one being read, which\n// keeps the tick on it until the next section actually takes over.\nconst track=()=>{const stale=sectionsRef.current.length===0||!sectionsRef.current[0].isConnected;if(stale)collect();const viewport=window.innerHeight;let index=-1;let mostVisible=0;sectionsRef.current.forEach((el,i)=>{const rect=el.getBoundingClientRect();const visible=Math.min(rect.bottom,viewport)-Math.max(rect.top,0);// A section peeking in at the bottom of a tall window does not\n// count yet — otherwise the rail appears while the hero still\n// fills the screen.\nconst enoughToCount=Math.min(viewport*.25,rect.height*.6);if(visible>=enoughToCount&&visible>mostVisible){mostVisible=visible;index=i;}});startTransition(()=>setActive(index));};const measureAnchor=()=>{let next=null;if(anchor){const els=document.querySelectorAll(`[data-framer-name=\"${anchor}\"]`);for(const el of Array.from(els)){// Only the fixed nav qualifies — page content (book spines,\n// split layouts) reuses the same layer name.\nif(window.getComputedStyle(el).position!==\"fixed\")continue;const rect=el.getBoundingClientRect();if(rect.width>0&&rect.height>0){next={left:rect.left,right:window.innerWidth-rect.right};break;}}}const prev=anchorRef.current;const changed=prev===null||next===null?prev!==next:Math.abs(prev.left-next.left)>.5||Math.abs(prev.right-next.right)>.5;if(changed){anchorRef.current=next;startTransition(()=>setAnchorRect(next));}};const measureRibbon=()=>{const next=media.matches?readRibbon(container):null;if(!sameRibbon(next,ribbonRef.current)){ribbonRef.current=next;startTransition(()=>setRibbon(next));}positionRibbon();};// one measurement per frame, and none at all for horizontal\n// scrollers (the homepage demo strip fires capture-phase scroll\n// events every frame of its glide; a sideways scroll cannot move\n// section verticals, and per-event forced layout here thrashes\n// against the glide's scrollLeft writes)\nlet measureRaf=0;const onScroll=e=>{const t=e?.target;if(t&&t!==document&&t instanceof Element&&t.scrollHeight<=t.clientHeight)return;if(measureRaf)return;measureRaf=window.requestAnimationFrame(()=>{measureRaf=0;measureAnchor();track();measureRibbon();});};const onResize=()=>{sectionsRef.current=[];onScroll();};collect();onScroll();// Sections mount and animate in after hydration; re-read until settled.\nconst settleTimers=[300,1e3,2500].map(ms=>window.setTimeout(()=>{sectionsRef.current=[];onScroll();},ms));window.addEventListener(\"scroll\",onScroll,{passive:true});// Capture phase catches scrolling inside a nested container, which is\n// how the page behaves in Framer's preview frame.\ndocument.addEventListener(\"scroll\",onScroll,{passive:true,capture:true});window.addEventListener(\"resize\",onResize);return()=>{if(measureRaf)window.cancelAnimationFrame(measureRaf);settleTimers.forEach(t=>window.clearTimeout(t));media.removeEventListener(\"change\",onMedia);window.removeEventListener(\"scroll\",onScroll);document.removeEventListener(\"scroll\",onScroll,{capture:true});window.removeEventListener(\"resize\",onResize);};},[isStatic,container,minSectionHeight,itemsKey,minViewport,anchor]);function scrollToIndex(index){if(typeof window===\"undefined\")return;if(index<0){window.scrollTo({top:0,behavior:\"smooth\"});return;}const el=sectionsRef.current[index];if(!el)return;// scrollIntoView works whether the page scrolls the window or a\n// nested container; the margin keeps the heading clear of the sticky nav,\n// matching the linkable headings' offset.\nel.style.scrollMarginTop=\"100px\";el.scrollIntoView({behavior:\"smooth\",block:\"start\"});}const staticRows=isStatic?resolvedItems.map(i=>({label:i.label,note:i.note})):rows;const allRows=[];if(showTop)allRows.push({label:\"Back to the start\",note:\"\",index:-1});staticRows.forEach((r,i)=>allRows.push({label:r.label,note:r.note,index:i}));const ribbonMode=!isStatic&&wide&&ribbon!==null;// Place the rail after ribbon mode renders (and on row changes), and drop\n// the grow timeline when ribbon mode ends or the component unmounts.\nuseEffect(()=>{positionRibbon();const mirror=growRef.current?.mirror;if(mirror&&mirror.target!==mirrorSlideRef.current)mirror.target=mirrorSlideRef.current;},[ribbonMode,rows.length,ribbon?.navBand]);useEffect(()=>{if(!ribbonMode)return;return()=>{growRef.current?.anims.forEach(a=>a.cancel());growRef.current=null;};},[ribbonMode]);const visible=isStatic||wide&&active>=0&&(!ribbonMode||ribbonFits);const faded=ribbonMode&&fadeFrom>=0&&active>=fadeFrom;// The rail hides over the hero and at the footer. In ribbon mode only its\n// ticks fade; an open lane slides shut rather than fading with them.\nuseEffect(()=>{if(ribbonMode&&(!visible||faded)&&growRef.current?.open)leaveRail();},[ribbonMode,visible,faded]);const staticActive=isStatic?0:active;const isRight=anchor.toLowerCase()===\"right\";const railOffset=anchorRect?(isRight?anchorRect.right:anchorRect.left)+anchorInset:leftOffset;// Ribbon mode geometry, relative to the strip's outer edge: ticks sit in\n// the oxblood lane (the fourth), and the grown lane starts at the sheet\n// edge, just wide enough for the longest name beside the hovered tick.\n// Where the margin is tight the name tucks closer to the tick.\nconst band=ribbon?.band??0;const fontSize=ribbonFontSize(band);const ribbonName=row=>row.index<0?\"Top\":row.label;const tickEnd=3*band+Math.min(20,band);const longest=ribbonMode?Math.max(...allRows.map(row=>textWidth(ribbonName(row),fontSize))):0;const room=(ribbon?.margin??0)-4;const needed=tickEnd-4*band+GROW_LABEL_GAP+longest+GROW_LABEL_PAD;const growWidth=needed<=room?needed:room;const labelLeft=needed<=room?tickEnd+GROW_LABEL_GAP:Math.max(tickEnd+3,4*band+room-longest-4);const bottomRadius=ribbon?.bottomRadius??0;const flares=[{at:\"top\",...topFlare(ribbon?.topRadius??0,(ribbon?.cornerX??0)-growWidth-2,ribbon?.cornerY??0)},{at:\"bottom\",w:bottomRadius*FLARE_WIDTH,h:bottomRadius*FLARE_HEIGHT}].map(({at,w,h})=>({at,w:Math.round(w),h:Math.round(h)}));const flareWidth=Math.max(ribbon?.topRadius??0,bottomRadius,...flares.map(f=>f.w));function flareShape(at,w,h,progress){const radius=at===\"top\"?ribbon?.topRadius??0:bottomRadius;const smoothing=.85*Math.sin(Math.PI*progress)**2;const rx=radius+(w-radius)*progress;const ry=radius+(h-radius)*progress;const edge=2+growWidth*progress;const y=at===\"top\"?1-progress:Math.max(radius,h)+progress;const direction=at===\"top\"?1:-1;const r=1/(1+smoothing);const beta=Math.PI*smoothing/4;const arc=r*(Math.cos(beta)-Math.sin(beta));const c=r*Math.tan(beta/2)*Math.cos(beta);const d=c*Math.tan(beta);const b=(1-arc-c-d)/3;const a=2*b;const x=v=>Number((edge+rx*v).toFixed(4));const py=v=>Number((y+direction*ry*v).toFixed(4));const x1=1-a-b-c;const y1=d;const x2=x1-arc;const y2=y1+arc;const segment=(p1x,p1y,p2x,p2y,px,py0)=>[x(p1x),py(p1y),x(p2x),py(p2y),x(px),py(py0)];const curves=[segment(1-a,0,1-a-b,0,x1,y1)];for(let i=0;i<4;i++){const from=-Math.PI/2-beta-(Math.PI/2-2*beta)*i/4;const to=-Math.PI/2-beta-(Math.PI/2-2*beta)*(i+1)/4;const handle=4*Math.tan((to-from)/4)/3;curves.push(segment(r*(1+Math.cos(from)-handle*Math.sin(from)),r*(1+Math.sin(from)+handle*Math.cos(from)),r*(1+Math.cos(to)+handle*Math.sin(to)),r*(1+Math.sin(to)-handle*Math.cos(to)),r*(1+Math.cos(to)),r*(1+Math.sin(to))));}curves.push(segment(x2-d,y2+c,x2-d,y2+b+c,0,1));return{start:[x(1),Number(y.toFixed(4))],curves};}const panelHeight=ribbon?ribbon.end-ribbon.top+ribbon.topRadius+bottomRadius+2:0;function panelClip(progress){const top=flareShape(\"top\",flares[0].w,flares[0].h,progress);const bottom=flareShape(\"bottom\",flares[1].w,flares[1].h,progress);const shift=panelHeight-Math.max(bottomRadius,flares[1].h)-1;const end=bottom.curves[bottom.curves.length-1];let path=`M0 ${top.start[1]}H${top.start[0]}${top.curves.map(c=>`C${c.join(\" \")}`).join(\"\")}V${end[5]+shift}`;for(let i=bottom.curves.length-1;i>=0;i--){const c=bottom.curves[i];const start=i===0?bottom.start:bottom.curves[i-1].slice(4);path+=`C${c[2]} ${c[3]+shift} ${c[0]} ${c[1]+shift} ${start[0]} ${start[1]+shift}`;}return`path(\"${path}H0Z\")`;}// One painted outline keeps the turns and straight edge in the same frame.\nfunction growTimeline(){const panel=slideRef.current;const label=labelRef.current;if(!panel||!label)return null;const key=`${growWidth.toFixed(1)}|${panelHeight}|${ribbon?.topRadius}|${bottomRadius}|${flares.map(f=>`${f.w},${f.h}`).join(\"|\")}`;const prev=growRef.current;if(prev&&prev.key===key)return prev;const time=prev?.open?GROW_OPEN_MS:0;prev?.anims.forEach(a=>a.cancel());const timing={duration:GROW_OPEN_MS,easing:GROW_EASE,fill:\"both\"};const outline=[{clipPath:panelClip(0),visibility:\"hidden\",offset:0},{clipPath:panelClip(1),visibility:\"visible\",offset:1}];const mirror=new KeyframeEffect(mirrorSlideRef.current,outline,timing);// The label runs last; every outline before it shares the same keyframes and clock.\nconst anims=[panel.animate(outline,timing),new Animation(mirror,document.timeline),label.animate([{opacity:0},{opacity:1}],timing)];anims.forEach(a=>{a.pause();a.currentTime=time;});growRef.current={anims,key,open:prev?.open??false,mirror};return growRef.current;}function setGrowOpen(open,pointer=true){const g=growTimeline();const panel=slideRef.current;const label=labelRef.current;if(!g||!panel||!label||g.open===open)return;// Start from what is drawn now, so reversing mid-way doesn't jump.\nconst clip=getComputedStyle(panel).clipPath;const y=Number(clip.match(/M\\s*0\\s+(-?[\\d.]+(?:e[+-]?\\d+)?)/i)?.[1]??1);const shape=Math.max(0,Math.min(1,1-y));const opacity=Number(getComputedStyle(label).opacity);const target=open?1:0;g.open=open;const outline=curveSteps.map(offset=>({clipPath:offset===0?clip:panelClip(shape+(target-shape)*offset),visibility:(open?offset===0&&shape===0:offset===1)?\"hidden\":\"visible\",offset}));g.anims.forEach((a,i)=>a.effect.setKeyframes(i<g.anims.length-1?outline:[{opacity},{opacity:target}]));const immediate=!pointer||window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;g.anims.forEach(a=>{a.pause();a.currentTime=immediate?GROW_OPEN_MS:0;a.playbackRate=open?1:GROW_OPEN_MS/GROW_CLOSE_MS;if(!immediate)a.play();});}function enterRow(i,el,pointer=false){startTransition(()=>setHovered(i));if(!ribbonMode)return;if(labelRef.current){labelTopRef.current=el.offsetTop+el.offsetHeight/2;labelRef.current.style.translate=`0 ${labelTopRef.current-laneTopRef.current}px`;}setLabelIndex(i);setGrowOpen(true,pointer);}function leaveRail(pointer=true){startTransition(()=>setHovered(-1));if(ribbonMode)setGrowOpen(false,pointer);}// The grown lane, drawn once beside the rail and once as its twin in the nav band.\nconst growLane=(outer,slide,children)=>/*#__PURE__*/_jsx(\"span\",{ref:outer,\"aria-hidden\":\"true\",style:{position:\"absolute\",top:0,// The clip starts 2px inside the oxblood lane, so no sub-pixel\n    // seam shows between the lane and the grown lane.\n    left:4*band-2,width:growWidth+2+flareWidth,overflow:\"hidden\",clipPath:ribbon?.clip,pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"span\",{ref:slide,style:{position:\"absolute\",inset:0,background:ribbon?.color,pointerEvents:\"none\",clipPath:panelClip(0),visibility:\"hidden\"},children:children})});return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,position:\"relative\"},children:[/*#__PURE__*/_jsxs(\"nav\",{ref:navRef,\"aria-label\":\"Page sections\",style:{position:isStatic?\"relative\":\"fixed\",left:ribbonMode?ribbon.left:isStatic?0:isRight?\"auto\":railOffset,right:ribbonMode||isStatic?\"auto\":isRight?railOffset:\"auto\",// Ribbon mode is placed by positionRibbon (translate).\ntop:ribbonMode||isStatic?0:\"50%\",bottom:\"auto\",transform:ribbonMode||isStatic?\"none\":\"translateY(-50%)\",// Under page content at rest; lifts while hovered so the\n// card reads above the sections.\nzIndex:hovered>-1?40:0,display:\"flex\",flexDirection:\"column\",gap:0,opacity:visible||ribbonMode?1:0,pointerEvents:visible&&!faded?\"auto\":\"none\",transition:\"opacity 0.3s ease\"},onMouseLeave:()=>leaveRail(),children:[ribbonMode&&growLane(panelRef,slideRef,/*#__PURE__*/_jsx(\"span\",{ref:labelRef,style:{position:\"absolute\",top:0,left:labelLeft-4*band+2,transform:\"translateY(-50%)\",opacity:0,color:\"#FFFFFF\",fontFamily:\"'Inter', 'Inter Placeholder', sans-serif\",fontSize,fontWeight:600,letterSpacing:\"-0.01em\",lineHeight:1,whiteSpace:\"nowrap\"},children:ribbonName(allRows[labelIndex]??allRows[0])})),allRows.map((row,i)=>{const isActive=row.index===staticActive;const isHovered=hovered===i;let tickWidth=isActive?14:8;if(hovered>-1){const falloff=Math.max(0,1-Math.abs(i-hovered)/3);tickWidth=Math.max(tickWidth,Math.round(8+12*falloff));}return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",\"aria-label\":row.label,onClick:()=>scrollToIndex(row.index),onMouseEnter:e=>enterRow(i,e.currentTarget,true),onFocus:e=>enterRow(i,e.currentTarget),onBlur:()=>leaveRail(false),style:{position:\"relative\",display:\"flex\",alignItems:\"center\",justifyContent:isRight&&!ribbonMode?\"flex-end\":\"flex-start\",// In ribbon mode the hit area spans the whole strip, and the\n// grown lane while open, so the cursor can rest on the name.\nboxSizing:\"border-box\",width:ribbonMode?4*band+(hovered>-1?growWidth:8):48,padding:ribbonMode?`${rowSpacing/2}px 0 ${rowSpacing/2}px ${3*band}px`:`${rowSpacing/2}px 0`,margin:0,border:\"none\",background:\"transparent\",cursor:\"pointer\",opacity:ribbonMode&&(!visible||faded)?0:1,transition:\"opacity 0.3s ease\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{position:\"relative\",zIndex:1,display:\"block\",height:isActive||isHovered?3:2,borderRadius:2,width:ribbonMode?Math.min(tickWidth,band):tickWidth,background:ribbonMode?isActive||isHovered?RIBBON_CURRENT_TICK:RIBBON_TICK:isActive||isHovered?activeTickColor:tickColor,transition:\"width 0.2s ease, height 0.2s ease, background 0.2s ease\"}}),isHovered&&!ribbonMode&&/*#__PURE__*/_jsxs(\"span\",{style:{position:\"absolute\",left:isRight?\"auto\":48,right:isRight?48:\"auto\",top:\"50%\",transform:\"translateY(-50%)\",width:\"max-content\",maxWidth:260,padding:row.note?\"12px 14px\":\"8px 12px\",borderRadius:12,background:cardBackground,border:\"1px solid color-mix(in srgb, var(--token-b7dc8e9b-7e9f-4c62-8d94-c25234a077f5, rgb(0, 0, 0)) 6%, transparent)\",boxShadow:\"0 4px 16px rgba(0, 0, 0, 0.06)\",display:\"flex\",flexDirection:\"column\",gap:4,textAlign:\"left\",fontFamily:\"'Inter', 'Inter Placeholder', sans-serif\",fontSize:13,letterSpacing:\"-0.01em\",lineHeight:1.4,whiteSpace:\"normal\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:titleColor,fontWeight:600},children:row.label}),row.note&&/*#__PURE__*/_jsx(\"span\",{style:{color:noteColor,fontWeight:400},children:row.note})]})]},row.label+i);})]}),ribbonMode&&ribbon.navBand&&/*#__PURE__*/createPortal(growLane(mirrorRef,mirrorSlideRef),ribbon.navBand)]});}addPropertyControls(SectionIndex,{items:{type:ControlType.Array,title:\"Sections\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Section\"},match:{type:ControlType.String,title:\"Match\",defaultValue:\"\"},note:{type:ControlType.String,title:\"Note\",defaultValue:\"\",displayTextArea:true}}},defaultValue:DEFAULT_ITEMS,maxCount:14},showTop:{type:ControlType.Boolean,title:\"Top tick\",defaultValue:true},container:{type:ControlType.String,title:\"Scope\",defaultValue:\"Inner Content\"},minSectionHeight:{type:ControlType.Number,title:\"Min section\",defaultValue:250,min:100,max:600,unit:\"px\"},rowSpacing:{type:ControlType.Number,title:\"Row spacing\",defaultValue:12,min:2,max:40,unit:\"px\"},anchor:{type:ControlType.String,title:\"Anchor\",defaultValue:\"left\"},anchorInset:{type:ControlType.Number,title:\"Anchor inset\",defaultValue:12,min:0,max:48,unit:\"px\"},anchorGap:{type:ControlType.Number,title:\"Anchor gap\",defaultValue:3,min:0,max:96,unit:\"px\"},leftOffset:{type:ControlType.Number,title:\"Left\",defaultValue:24,min:8,max:64,unit:\"px\"},minViewport:{type:ControlType.Number,title:\"Min width\",defaultValue:1200,min:768,max:1600,unit:\"px\"},tickColor:{type:ControlType.Color,title:\"Tick\",defaultValue:\"#D9D9D9\"},activeTickColor:{type:ControlType.Color,title:\"Active tick\",defaultValue:\"#111111\"},cardBackground:{type:ControlType.Color,title:\"Card\",defaultValue:\"#FFFFFF\"},titleColor:{type:ControlType.Color,title:\"Title\",defaultValue:\"#111111\"},noteColor:{type:ControlType.Color,title:\"Note\",defaultValue:\"#999999\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SectionIndex\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"120\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"48\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SectionIndex.map"],"mappings":"A,+RAKA,SAASqB,EAAU,EAAK,CAAyG,OAA9FC,EAAK,OAAOA,EAAK,cAAcC,IAAgBD,EAAK,OAAO,GAAA,CAAI,YAAY,IAAIA,EAAK,OAAO,GAAA,CAAc,YAAY,CAAE,CAE1J,SAASE,GAAU,EAAG,EAAQ,CAAC,IAAMC,GAAOC,EAAG,aAAa,kBAAkB,GAAG,GAAA,CAAI,QAAQ,WAAW,EAAE,CAAC,CAAC,QAAQ,kBAAkB,EAAE,CAAC,CAAC,KAAK,EAAE,GAAGD,GAAOA,EAAM,QAAQ,GAAI,OAAOA,EAAM,OAAO,CAAC,CAAC,CAAC,YAAY,EAAEA,EAAM,MAAM,CAAC,EAAG,IAAME,EAAMC,EAAQ,QAAQ,aAAa,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,OAAOD,EAAM,OAAO,GAAGA,EAAM,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,IAAIA,CAAM,CAWxU,SAASE,GAAW,EAAU,CAAC,IAAMC,EAAI,SAAS,cAAc,sBAAsB,EAAQC,EAAMD,EAAI,MAAM,KAAKA,EAAI,iBAAiB,MAAM,CAAC,EAAE,CAAC,EAAQE,EAAKD,EAAM,IAAI,IAAIE,EAAE,aAAa,GAAG,GAAG,GAAA,CAAI,MAAM,yDAAyD,CAAC,EAAE,GAAG,CAACH,GAAKE,EAAK,OAAO,GAAG,CAACA,EAAK,GAAG,OAAO,KAAK,IAAME,EAAK,WAAWH,EAAM,EAAE,CAAC,aAAa,cAAc,GAAG,GAAG,EAAE,GAAG,GAAG,EAAEG,EAAK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