{"version":3,"file":"SectionIndex.BAcgiUXf.mjs","names":["useRef","useState","startTransition","useEffect","_jsx","_jsxs","_Fragment","__esmMin","te","init_npm_react_18_3_1","de","window","init_ssg_sandbox_shims","init_jsx_runtime","l","p","ce","_e","addPropertyControls","init_framer_ChujFWHC","useIsStaticRenderer","ControlType","themeColor","init_PanelSystem","needleFor","item","MATCH_BY_LABEL","autoLabel","el","heading","layer","words","readRibbon","container","svg","paths","legs","band","box","edge","finish","corner","first","top","topRadius","readCard","x","y","card","b","px","n","r","t","e","d","inset","topFlare","radius","a","w","FLARE_WIDTH","h","FLARE_HEIGHT","FLARE_REACH","c","reach","tallest","FLARE_GROW","textWidth","text","size","measureCanvas","SectionIndex","props","items","DEFAULT_ITEMS","showTop","minSectionHeight","rowSpacing","anchor","anchorInset","anchorGap","leftOffset","minViewport","tickColorRaw","activeTickColorRaw","cardBackgroundRaw","titleColorRaw","noteColorRaw","tickColor","activeTickColor","cardBackground","titleColor","noteColor","isStatic","configuredByLabel","resolvedItems","cfg","itemsKey","i","sectionsRef","rowsKeyRef","anchorRef","rows","setRows","active","setActive","hovered","setHovered","wide","setWide","anchorRect","setAnchorRect","ribbon","setRibbon","ribbonFits","setRibbonFits","labelIndex","setLabelIndex","ribbonRef","ribbonFitsRef","navRef","panelRef","slideRef","labelRef","growRef","positionRibbon","nav","vh","stripTop","stripEnd","RIBBON_PAD","panel","laneTop","fits","media","onMedia","findBands","scope","found","node","rect","wraps","host","sectionEls","isSection","smallest","prev","unique","o","collect","bands","claimed","picked","needle","firstTop","key","track","viewport","index","mostVisible","visible","measureAnchor","next","els","measureRibbon","sameRibbon","measureRaf","onScroll","onResize","settleTimers","ms","scrollToIndex","staticRows","allRows","ribbonMode","leaveRail","staticActive","isRight","railOffset","fontSize","ribbonFontSize","ribbonName","row","tickEnd","longest","room","needed","GROW_LABEL_GAP","GROW_LABEL_PAD","growWidth","labelLeft","bottomRadius","flares","at","flareWidth","f","flareShape","progress","smoothing","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","anims","setGrowOpen","open","pointer","g","clip","shape","opacity","target","outlineEffect","labelEffect","curveSteps","offset","immediate","GROW_CLOSE_MS","enterRow","isActive","isHovered","tickWidth","falloff","RIBBON_CURRENT_TICK","RIBBON_TICK","init_SectionIndex","acc","_","k"],"sources":["https:/framerusercontent.com/modules/APG46CrigqxHbLVKhFcF/qxh9pXBT9TE1R14zr1GV/SectionIndex.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{themeColor}from\"https://framerusercontent.com/modules/xuHq55xcsIuroc51p47f/pFIIFCkBf6FoTCOyYxr6/PanelSystem.js\";import{useEffect,useRef,useState,startTransition}from\"react\";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\";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)};}// 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&&[\"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[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);const growRef=useRef(null);// 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=\"\";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`;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;panel.style.top=`${laneTop}px`;// The name rides inside the lane; this holds it level with its tick.\nif(labelRef.current)labelRef.current.style.translate=`0 ${-laneTop}px`;panel.style.height=`${r.end-r.top+r.topRadius+r.bottomRadius+2}px`;}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 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 nav.\nel.style.scrollMarginTop=\"80px\";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();},[ribbonMode,rows.length]);useEffect(()=>{if(!ribbonMode)return;return()=>{growRef.current?.anims.forEach(a=>a.cancel());growRef.current=null;};},[ribbonMode]);const visible=isStatic||wide&&active>=0&&(!ribbonMode||ribbonFits);// 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&&growRef.current?.open)leaveRail();},[ribbonMode,visible]);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 anims=[panel.animate([{clipPath:panelClip(0),visibility:\"hidden\",offset:0},{clipPath:panelClip(1),visibility:\"visible\",offset:1}],timing),label.animate([{opacity:0},{opacity:1}],timing)];anims.forEach(a=>{a.pause();a.currentTime=time;});growRef.current={anims,key,open:prev?.open??false};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;const outlineEffect=g.anims[0].effect;const labelEffect=g.anims[1].effect;g.open=open;outlineEffect.setKeyframes(curveSteps.map(offset=>({clipPath:offset===0?clip:panelClip(shape+(target-shape)*offset),visibility:(open?offset===0&&shape===0:offset===1)?\"hidden\":\"visible\",offset})));labelEffect.setKeyframes([{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){labelRef.current.style.top=`${el.offsetTop+el.offsetHeight/2}px`;}setLabelIndex(i);setGrowOpen(true,pointer);}function leaveRail(pointer=true){startTransition(()=>setHovered(-1));if(ribbonMode)setGrowOpen(false,pointer);}return /*#__PURE__*/_jsx(\"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?\"auto\":\"none\",transition:\"opacity 0.3s ease\"},onMouseLeave:()=>leaveRail(),children:[ribbonMode&&/*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(\"span\",{ref:panelRef,\"aria-hidden\":\"true\",style:{position:\"absolute\",// The clip starts 2px inside the oxblood lane, so no sub-pixel\n// seam shows between the lane and the grown lane.\nleft:4*band-2,width:growWidth+2+flareWidth,overflow:\"hidden\",clipPath:ribbon.clip,pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"span\",{ref:slideRef,style:{position:\"absolute\",inset:0,background:ribbon.color,clipPath:panelClip(0),visibility:\"hidden\"},children:/*#__PURE__*/_jsx(\"span\",{ref:labelRef,style:{position:\"absolute\",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?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);})]})});}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\":{\"framerIntrinsicWidth\":\"48\",\"framerIntrinsicHeight\":\"120\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,6RAKA,SAASwB,EAAUC,EAAK,CA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