{"version":3,"file":"RailOverride.DfCPOVYk.mjs","names":["React.forwardRef","useRef","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","c","J","init_jsx_runtime","ce","de","motion","cx","init_framer_DcGZRLrs","addPropertyControls","withCSS","ControlType","mask","SVG","getProps","Icon","init_HaRsYXyM7","rest","props","animated","stroke","restProps","className","UO5clYVeQ","style","withPinnedRailHome","ref","sec","q","n","sticky","track","pv","nx","bar","host","reduce","dist","stick","on","x","raf","nav","w","p","draw","r","sync","lay","W","pad","h","sr","hd","pg","top0","bot0","step","a","move","start","t","d","onPv","onNx","ro","t1","t2","Component","init_RailOverride"],"sources":["https:/framerusercontent.com/modules/kUdWB3WNWrJ5OJFzvbkt/uvEd8qo1MBBr8GtT5vlD/HaRsYXyM7.js","https:/framerusercontent.com/modules/1djwqgFjfGOw8ZbbyRYX/9kfENpSdqusHgs3eyMdZ/RailOverride.js"],"sourcesContent":["// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask='url(\\'data:image/svg+xml,<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 14 0 L 0 0\" fill=\"transparent\" height=\"1px\" id=\"clgh_hWer\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" stroke=\"var(--43q7um, rgb(0,0,0))\" transform=\"translate(5 12)\" width=\"14px\"/><path d=\"M 7 14 L 0 7 L 7 0\" fill=\"transparent\" height=\"14px\" id=\"UFl1uCQr0\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" stroke=\"var(--43q7um, rgb(0,0,0))\" transform=\"translate(5 5)\" width=\"7px\"/></svg>\\') alpha no-repeat center / auto var(--framer-icon-mask-mode, add), var(--framer-icon-mask, none)';const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(motion.div,{...rest,layoutId:layoutId,ref:ref}):/*#__PURE__*/_jsx(\"div\",{...rest,ref:ref});});const getProps=({height,id,stroke,width,...props})=>{return{...props,UO5clYVeQ:stroke??props.UO5clYVeQ??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,UO5clYVeQ,...restProps}=getProps(props);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-nHkCo\",className),layoutId:layoutId,ref:ref,style:{\"--43q7um\":UO5clYVeQ,...style}});});const css=[`.framer-nHkCo { -webkit-mask: ${mask}; aspect-ratio: 1; background-color: var(--43q7um); mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"UO5clYVeQ\":\"stroke\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Arrow Left\",\"color\":{\"type\":\"variable\",\"value\":\"43q7um\"},\"set\":{\"localId\":\"vectorSet/T8qKXkLfy\",\"id\":\"T8qKXkLfy\",\"moduleId\":\"fiHEoJwBMFnT6QLOcpPz\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-nHkCo\");Icon.displayName=\"Arrow Left\";export default Icon;addPropertyControls(Icon,{UO5clYVeQ:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Stroke\",type:ControlType.Color}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"true\",\"framerIntrinsicWidth\":\"24\",\"framerImmutableVariables\":\"true\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerVariables\":\"{\\\"UO5clYVeQ\\\":\\\"stroke\\\"}\",\"framerVector\":\"{\\\"name\\\":\\\"Arrow Left\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"43q7um\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/T8qKXkLfy\\\",\\\"id\\\":\\\"T8qKXkLfy\\\",\\\"moduleId\\\":\\\"fiHEoJwBMFnT6QLOcpPz\\\"}}\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"24\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";/**\n * Pinned rail: on wide screens the section pins and the cards slide sideways as you scroll\n * (same as the HTML site). On phones and tablets the track swipes.\n * Layers it uses inside the section: \"Rail Sticky\", \"Rail Track\", \"Rail Prev\", \"Rail Next\".\n */export function withPinnedRail(Component){return props=>{const ref=useRef(null);useEffect(()=>{const sec=ref.current||document.querySelector('[data-framer-name=\"Pinned Rail\"]');if(!sec||typeof window===\"undefined\")return;const q=n=>sec.querySelector(`[data-framer-name=\"${n}\"]`);const sticky=q(\"Rail Sticky\"),track=q(\"Rail Track\"),pv=q(\"Rail Prev\"),nx=q(\"Rail Next\"),bar=q(\"Rail Progress Fill\");if(!sticky||!track)return;const reduce=window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;const wide=window.matchMedia(\"(min-width: 1101px)\");let max=0,pinned=false,raf=0,x=0;const step=()=>{const c=track.firstElementChild;return c?c.getBoundingClientRect().width+16:400;};const nav=()=>{if(bar&&bar.parentElement){const host=track.parentElement;const w=Math.max(.15,host.clientWidth/(host.clientWidth+max));const p=max>0?x/max:0;bar.style.width=w*100+\"%\";bar.style.left=p*(1-w)*100+\"%\";}if(pv)pv.style.opacity=x<=4?\"0.35\":\"1\";if(nx)nx.style.opacity=x>=max-4?\"0.35\":\"1\";};const draw=()=>{raf=0;if(!pinned)return;const r=sec.getBoundingClientRect();const run=sec.offsetHeight-window.innerHeight;const y=Math.min(run,Math.max(0,-r.top));x=run>0?Math.round(y/run*max):0;track.style.transform=`translate3d(${-x}px,0,0)`;nav();};const sync=()=>{if(!raf)raf=requestAnimationFrame(draw);};const setup=()=>{pinned=wide.matches&&!reduce;track.style.transform=\"\";sec.style.height=\"\";sticky.style.position=\"\";sticky.style.top=\"\";sticky.style.height=\"\";track.parentElement&&(track.parentElement.style.overflowX=\"\");const host=track.parentElement;max=Math.max(0,track.scrollWidth-host.clientWidth);if(pinned){sec.style.height=window.innerHeight+max+\"px\";sticky.style.position=\"sticky\";sticky.style.top=\"0px\";sticky.style.height=\"100vh\";sync();}else{host.style.overflowX=\"auto\";host.style.scrollSnapType=\"x mandatory\";}nav();};const move=d=>{if(pinned){const run=sec.offsetHeight-window.innerHeight;window.scrollBy({top:d*step()*(run/(max||1)),behavior:\"smooth\"});}else{track.parentElement.scrollBy({left:d*step(),behavior:\"smooth\"});}};const onPv=()=>move(-1),onNx=()=>move(1);pv?.addEventListener(\"click\",onPv);nx?.addEventListener(\"click\",onNx);window.addEventListener(\"scroll\",sync,{passive:true});window.addEventListener(\"resize\",setup);const t=window.setTimeout(setup,300);setup();return()=>{pv?.removeEventListener(\"click\",onPv);nx?.removeEventListener(\"click\",onNx);window.removeEventListener(\"scroll\",sync);window.removeEventListener(\"resize\",setup);clearTimeout(t);if(raf)cancelAnimationFrame(raf);};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref});};}/**\n * Homepage rail, same rules as the HTML site: the cards line up with the 1440 container,\n * the section is (content height + slide distance) tall, and it pins so that the heading and\n * the cards are both on screen (88px left for the header), centred in the window.\n * Layers: \"Rail Sticky\", \"Rail Track\", \"Rail Prev\", \"Rail Next\", \"Rail Progress Fill\".\n */export function withPinnedRailHome(Component){return props=>{const ref=useRef(null);useEffect(()=>{const sec=ref.current;if(!sec||typeof window===\"undefined\")return;const q=n=>sec.querySelector(`[data-framer-name=\"${n}\"]`);const sticky=q(\"Rail Sticky\"),track=q(\"Rail Track\"),pv=q(\"Rail Prev\"),nx=q(\"Rail Next\"),bar=q(\"Rail Progress Fill\");if(!sticky||!track)return;const host=track.parentElement;const reduce=window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;let dist=0,stick=0,on=false,x=0,raf=0;const nav=()=>{if(bar){const w=Math.max(.15,host.clientWidth/(host.clientWidth+dist));const p=dist>0?x/dist:0;bar.style.width=w*100+\"%\";bar.style.left=p*(1-w)*100+\"%\";}if(pv)pv.style.opacity=x<=4?\"0.3\":\"1\";if(nx)nx.style.opacity=x>=dist-4?\"0.3\":\"1\";};const draw=()=>{raf=0;if(!on){x=host.scrollLeft;nav();return;}const r=sec.getBoundingClientRect();const p=dist>0?Math.min(1,Math.max(0,(stick-r.top)/dist)):0;x=Math.round(p*dist);track.style.transform=`translate3d(${-x}px,0,0)`;nav();};const sync=()=>{if(!raf)raf=requestAnimationFrame(draw);};const lay=()=>{const W=window.innerWidth;const pad=Math.max(W<810?24:64,(W-1440)/2);track.style.paddingLeft=pad+\"px\";track.style.paddingRight=pad+17+\"px\"// the HTML rail ends with a 1px spacer after a 16px gap\n;on=W>=900&&!reduce;track.style.transform=\"\";sec.style.height=\"\";sticky.style.position=\"\";sticky.style.top=\"\";host.style.overflowX=on?\"hidden\":\"auto\";host.style.scrollSnapType=on?\"\":\"x mandatory\";dist=Math.max(0,track.scrollWidth-host.clientWidth);if(on){const h=sticky.offsetHeight;const sr=sticky.getBoundingClientRect();const hd=sticky.querySelector(\"h2, h1\");const pg=bar&&bar.parentElement||host;const top0=hd?hd.getBoundingClientRect().top-sr.top:0;const bot0=pg.getBoundingClientRect().bottom-sr.top;stick=88+Math.max(0,(window.innerHeight-112-(bot0-top0))/2)-top0;sec.style.height=Math.ceil(h+dist)+\"px\";sticky.style.position=\"sticky\";sticky.style.top=stick+\"px\";}sync();};const step=()=>{const a=track.children;return a.length>1?a[1].offsetLeft-a[0].offsetLeft:host.clientWidth*.8;};const move=d=>{if(on){const start=sec.getBoundingClientRect().top+window.scrollY-stick;const p=window.scrollY-start;const t=Math.min(dist,Math.max(0,Math.round((p+d*step())/step())*step()));window.scrollTo({top:start+t,behavior:\"smooth\"});}else host.scrollBy({left:d*step(),behavior:\"smooth\"});};const onPv=()=>move(-1),onNx=()=>move(1);pv?.addEventListener(\"click\",onPv);nx?.addEventListener(\"click\",onNx);window.addEventListener(\"scroll\",sync,{passive:true});host.addEventListener(\"scroll\",sync,{passive:true});window.addEventListener(\"resize\",lay);const ro=\"ResizeObserver\"in window?new ResizeObserver(()=>requestAnimationFrame(lay)):null;ro?.observe(track);const t1=window.setTimeout(lay,300),t2=window.setTimeout(lay,1700);lay();return()=>{pv?.removeEventListener(\"click\",onPv);nx?.removeEventListener(\"click\",onNx);window.removeEventListener(\"scroll\",sync);host.removeEventListener(\"scroll\",sync);window.removeEventListener(\"resize\",lay);ro?.disconnect();clearTimeout(t1);clearTimeout(t2);if(raf)cancelAnimationFrame(raf);};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withPinnedRail\":{\"type\":\"reactHoc\",\"name\":\"withPinnedRail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPinnedRailHome\":{\"type\":\"reactHoc\",\"name\":\"withPinnedRailHome\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RailOverride.map"],"mappings":"A,qTACiL,EAAK,qrBAA6rB,EAAiB,iBAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAGsB,GAAMC,EAAM,OAAOC,EAAsB,gBAAKb,EAAO,IAAI,CAAC,GAAGW,EAAc,WAAa,KAAG,CAAC,EAAe,gBAAK,MAAM,CAAC,GAAGA,EAAS,KAAG,CAAC,CAAE,CAAC,EAAQ,GAAU,CAAC,SAAO,KAAG,SAAO,QAAM,GAAGC,MAAgB,CAAC,GAAGA,EAAM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