{"version":3,"file":"Marginalia.CId-AgwE.mjs","names":["useRef","p","useState","__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","_e","de","p","ce","window","addPropertyControls","init_framer_CDGohruR","useIsStaticRenderer","ControlType","Marginalia","props","isStatic","ref","p$1","setP","list","notes","s","raf","upd","el","r","ih","old","on","iv","safety","mono","title","ink","i","rubric","n","init_Marginalia","init_jsx_runtime"],"sources":["https:/framerusercontent.com/modules/U3S9KKxtAbl2sMWF4xRV/oAeZJG4BAkPGozBMFNNe/Marginalia.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 * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 220\n * @framerIntrinsicHeight 1200\n */export default function Marginalia(props){const{notes=\"The bell founders’ guild met at the sign of the Three Bells until 1911. | Bronze for bells is 77 parts copper to 23 of tin; more tin rings brighter and cracks sooner. | The foundry’s last apprentice now teaches at a college in Sheffield.\",title=\"In the margin\",ink=\"#17130E\",rubric=\"#C4351E\"}=props;const isStatic=useIsStaticRenderer();const ref=useRef(null);const[p,setP]=useState(isStatic?1:0);const list=notes.split(\"|\").map(s=>s.trim()).filter(Boolean);useEffect(()=>{if(typeof window===\"undefined\"||isStatic)return;if(window.matchMedia&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches){setP(1);return;}let raf=0;const upd=()=>{const el=ref.current;if(!el)return;const r=el.getBoundingClientRect();const ih=window.innerHeight||900;setP(old=>Math.max(old,Math.max(0,Math.min(1,(ih*.6-r.top)/Math.max(1,r.height*.6)))));};const on=()=>{cancelAnimationFrame(raf);raf=requestAnimationFrame(upd);};window.addEventListener(\"scroll\",on,{passive:true});const iv=setInterval(upd,250);const safety=setTimeout(()=>setP(1),15e3);upd();return()=>{window.removeEventListener(\"scroll\",on);clearInterval(iv);clearTimeout(safety);cancelAnimationFrame(raf);};},[isStatic]);const sans=\"Geist, Inter, system-ui, sans-serif\";const mono=\"'Geist Mono', ui-monospace, monospace\";return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{...props.style,position:\"relative\",width:\"100%\",height:\"100%\"},children:/*#__PURE__*/_jsxs(\"aside\",{\"aria-label\":title,style:{position:\"sticky\",top:120,display:\"flex\",flexDirection:\"column\",gap:22},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:mono,fontSize:10.5,letterSpacing:\"0.08em\",textTransform:\"uppercase\",opacity:.6,paddingBottom:10,borderBottom:`1px solid ${ink}33`},children:title}),list.map((n,i)=>{const on=isStatic||p>=i/Math.max(1,list.length)*.8;return /*#__PURE__*/_jsxs(\"p\",{style:{margin:0,fontFamily:sans,fontStyle:\"italic\",fontSize:13.5,lineHeight:1.5,letterSpacing:\"-0.005em\",color:ink,opacity:on?.8:.12,transform:on?\"none\":\"translateY(8px)\",transition:\"opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1)\"},children:[/*#__PURE__*/_jsxs(\"span\",{style:{fontStyle:\"normal\",fontFamily:mono,fontSize:10,color:rubric,marginRight:6},children:[\"\\xb6 \",String(i+1).padStart(2,\"0\")]}),n]},i);})]})});}addPropertyControls(Marginalia,{notes:{type:ControlType.String,title:\"Notes\",displayTextArea:true,defaultValue:\"The bell founders’ guild met at the sign of the Three Bells until 1911. | Bronze for bells is 77 parts copper to 23 of tin; more tin rings brighter and cracks sooner. | The foundry’s last apprentice now teaches at a college in Sheffield.\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"In the margin\"},ink:{type:ControlType.Color,title:\"Ink\",defaultValue:\"#17130E\"},rubric:{type:ControlType.Color,title:\"Rubric\",defaultValue:\"#C4351E\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Marginalia\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"220\",\"framerIntrinsicHeight\":\"1200\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Marginalia.map"],"mappings":"A,2MAKG,SAAwBe,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,gPAAgP,QAAM,gBAAgB,MAAI,UAAU,SAAO,WAAWC,EAAYC,EAASJ,EAAoB,EAAQK,EAAIlB,EAAO,IAAI,EAAO,CAACC,EAAEmB,GAAMlB,EAAS,IAAY,EAAQmB,EAAKC,EAAM,MAAM,GAAG,CAAC,CAAC,IAAI,GAAGC,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,EAAEd,MAAc,CAAC,GAAUC,IAAS,QAAaO,EAAS,OAAO,GAAGP,EAAO,YAAYA,EAAO,WAAW,kCAAkC,CAAC,CAAC,QAAQ,CAACU,EAAK,CAAC,EAAE,MAAO,CAAC,IAAII,EAAI,EAAQC,MAAQ,CAAC,IAAMC,EAAGR,EAAI,QAAQ,GAAG,CAACQ,EAAG,OAAO,IAAMC,EAAED,EAAG,sBAAsB,EAAQE,EAAGlB,EAAO,aAAa,IAAIU,EAAK,GAAK,KAAK,IAAIS,EAAI,KAAK,IAAI,EAAE,KAAK,IAAI,GAAGD,EAAG,GAAGD,EAAE,KAAK,KAAK,IAAI,EAAEA,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAE,EAAQG,MAAO,CAAC,qBAAqBN,CAAG,EAAE,EAAI,sBAAsBC,CAAG,CAAE,EAAEf,EAAO,iBAAiB,SAASoB,EAAG,CAAC,QAAQ,EAAI,CAAC,EAAE,IAAMC,EAAG,YAAYN,EAAI,GAAG,EAAQO,EAAO,eAAeZ,EAAK,CAAC,EAAE,IAAI,EAAQ,OAANK,EAAI,MAAY,CAACf,EAAO,oBAAoB,SAASoB,CAAE,EAAE,cAAcC,CAAE,EAAE,aAAaC,C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