{"version":3,"file":"HouseFigure.BCAMrebb.mjs","names":["useRef","useState","_Fragment","p","useState"],"sources":["https:/framerusercontent.com/modules/xBmwLxnLlUbYRl8ubl83/lbyuul0zPvvAkYztuyqM/Reveal.js","https:/framerusercontent.com/modules/SV3D5eLnhXYqu6QFCP11/ZnQWt6WrgJsUtn3ausxq/HouseFigure.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";/**\n * Reveal\n *\n * When a piece of a section should start its entrance (Henry 2026-09-15: \"they should all start on\n * scroll, not section by section\"). Each block that animates watches itself, so the lower half of a\n * tall section is still waiting when the reader scrolls to it, rather than having played out while it\n * was below the fold.\n *\n * A block counts as arrived once its top has come a share of the window up from the bottom edge (which\n * includes anything already scrolled past), or when the whole of it is already on screen. It is checked on load, on scroll and on resize as well as\n * by an IntersectionObserver, so a tab that loaded in the background still reveals what is on screen,\n * and nothing below the fold is ever revealed by a timer. It reveals once and stays.\n *\n * Not meant to be placed on the canvas on its own.\n *\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 100\n */export function useReveal(isStatic,share=.2){const ref=useRef(null);const[seen,setSeen]=useState(isStatic);useEffect(()=>{if(isStatic||seen||typeof window===\"undefined\")return;const el=ref.current;if(!el)return;const arrived=()=>{const r=el.getBoundingClientRect();const vh=window.innerHeight;// anything already scrolled past counts too, so a jump down the page never leaves a block unrevealed above\nreturn r.height>0&&(r.top<vh*(1-share)||r.top>=0&&r.bottom<=vh);};let io=null;const stop=()=>{if(io)io.disconnect();window.removeEventListener(\"scroll\",check);window.removeEventListener(\"resize\",check);};function check(){if(!arrived())return;setSeen(true);stop();}if(arrived()){setSeen(true);return;}if(typeof IntersectionObserver!==\"undefined\"){io=new IntersectionObserver(check,{threshold:[0,.1,.25,.5,.75,1]});io.observe(el);}window.addEventListener(\"scroll\",check,{passive:true});window.addEventListener(\"resize\",check);return stop;},[isStatic,seen,share]);return[ref,seen];}/** a block that reveals on its own arrival; its children get the flag */export default function Reveal({isStatic,share,style,children}){const[ref,seen]=useReveal(isStatic,share);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:style,children:children(seen)});}\nexport const __FramerMetadata__ = {\"exports\":{\"useReveal\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Reveal\",\"slots\":[\"children\"],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Reveal.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{useReveal}from\"https://framerusercontent.com/modules/xBmwLxnLlUbYRl8ubl83/lbyuul0zPvvAkYztuyqM/Reveal.js\";/**\n * House Figure - the standing rule for Aboreto figures over 20pt (Henry 2026-09-15): the currency sign\n * and the unit are set smaller than the number itself, so \"$275M\" reads as a figure with a unit rather\n * than one lumpy word. Below 20pt (Number/Small) the figure is set plain.\n *\n * Every section that prints a figure uses these: `Figure` for a plain value, `CountFigure` for one that\n * counts up from zero when it comes into view, and `Sign`/`Unit` inside a counter that animates the digits itself. They are spans in normal inline flow, so they sit on the\n * number's baseline and inherit its family, colour and size; the em sizes below are the rule.\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 60\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export const SIGN_EM=\"0.72em\"// the currency sign, relative to the number\n;export const UNIT_EM=\"0.62em\"// the unit that follows it: M, SF, B, %, +\n;export const FIGURE_MIN=20// the rule applies above this size; Number/Small is set plain\n;// Prata, the figure face Henry chose for the Experience board (2026-09-15) and Demonstrated Performance (2026-09-16).\n// No text style on the site uses it, so a section that sets figures in it calls usePrata() to request the face once\n// per document.\nexport const PRATA_FACE='\"Prata\", \"Cormorant Garamond\", Georgia, serif';const PRATA_HREF=\"https://fonts.googleapis.com/css2?family=Prata&display=swap\";export function usePrata(enabled=true){useEffect(()=>{if(!enabled||typeof document===\"undefined\")return;if(document.querySelector(`link[href=\"${PRATA_HREF}\"]`))return;const link=document.createElement(\"link\");link.rel=\"stylesheet\";link.href=PRATA_HREF;document.head.appendChild(link);},[enabled]);}const SIGN_STYLE={fontSize:SIGN_EM,marginRight:\"0.06em\"};const UNIT_STYLE={fontSize:UNIT_EM,letterSpacing:\"0.08em\",marginLeft:\"0.12em\"};/**\n * NUMERALS IN SERIF TEXT (house rule, Henry 2026-09-15; made shared 2026-09-20 when the tablet and phone layouts dropped it):\n * wherever Cormorant display text carries digits (an address, \"35 Dedicated Professionals\"), the digits are set in Times New\n * Roman a touch under the line's size, because Cormorant's own figures sit badly beside its capitals. Use this, never plain text.\n */export function Numerals({text=\"\"}){const parts=[];for(const ch of String(text)){const digit=ch>=\"0\"&&ch<=\"9\";const last=parts[parts.length-1];if(last&&last.digit===digit)last.s+=ch;else parts.push({s:ch,digit});}return /*#__PURE__*/_jsx(_Fragment,{children:parts.map((p,i)=>p.digit?/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:'\"Times New Roman\", Times, serif',fontSize:\"0.95em\",fontWeight:300,fontStyle:\"normal\"},children:p.s},i):/*#__PURE__*/_jsx(\"span\",{children:p.s},i))});}export function Sign({children}){if(!children)return null;return /*#__PURE__*/_jsx(\"span\",{style:SIGN_STYLE,children:children});}export function Unit({children}){if(!children)return null;return /*#__PURE__*/_jsx(\"span\",{style:UNIT_STYLE,children:typeof children===\"string\"?children.trim():children});}// \"$275M\" -> { sign: \"$\", digits: \"275\", unit: \"M\" }; anything without digits comes back whole\nexport function splitFigure(value){const m=String(value??\"\").match(/^([^0-9]*)([0-9][0-9.,]*)(.*)$/);if(!m)return{sign:\"\",digits:String(value??\"\"),unit:\"\"};return{sign:m[1],digits:m[2],unit:m[3].trim()};}/**\n * A figure set by the house rule. The caller styles the family, size and colour on the element around\n * it; `size` only decides whether the rule applies at all.\n */export default function Figure({value=\"\",size=48,style}){if(size<=FIGURE_MIN)return /*#__PURE__*/_jsx(\"span\",{style:style,children:value});const{sign,digits,unit}=splitFigure(value);return /*#__PURE__*/_jsxs(\"span\",{style:style,children:[/*#__PURE__*/_jsx(Sign,{children:sign}),digits,/*#__PURE__*/_jsx(Unit,{children:unit})]});}Figure.displayName=\"House Figure\";/**\n * A figure that counts up from zero to its value, keeping the value's own format (its commas and its decimal places)\n * and setting the sign and unit by the house rule throughout. Anything without a number in it is shown as it is. One\n * counter for every section, rather than a copy in each.\n *\n * SITE RULE (Henry 2026-09-16): a count starts when the FIGURE ITSELF arrives on screen, never when its section does, so\n * figures low in a tall section are still at zero when the reader gets to them. The figure watches itself (useReveal);\n * `play` is only an extra hold a section can add on top, such as a hero that sequences its entrance, and `delay` is\n * counted from the later of the two.\n */export function CountFigure({value=\"\",size=48,play=true,delay=0,duration=1.6,isStatic=false}){const[ref,arrived]=useReveal(isStatic);const go=play&&arrived;const{sign,digits,unit}=splitFigure(value);const target=parseFloat(digits.replace(/,/g,\"\"));const decimals=digits.includes(\".\")?digits.split(\".\")[1].length:0;const grouped=digits.includes(\",\");const[n,setN]=useState(isStatic||isNaN(target)?target:0);useEffect(()=>{if(isStatic||isNaN(target)||!go||typeof window===\"undefined\")return;let raf=0;const start=performance.now()+delay*1e3;const tick=now=>{const p=Math.min(1,Math.max(0,(now-start)/(duration*1e3)));// ease out, so the last digits settle rather than snap\nsetN(target*(1-Math.pow(1-p,3)));if(p<1)raf=requestAnimationFrame(tick);};raf=requestAnimationFrame(tick);return()=>cancelAnimationFrame(raf);},[go,isStatic,target,delay,duration]);// every return carries the ref: the span is what watches for the figure's own arrival\nif(isNaN(target))return /*#__PURE__*/_jsx(\"span\",{ref:ref,children:/*#__PURE__*/_jsx(Figure,{value:value,size:size})});const shown=grouped?Math.round(n).toLocaleString(\"en-US\"):n.toFixed(decimals);if(size<=FIGURE_MIN){return /*#__PURE__*/_jsxs(\"span\",{ref:ref,children:[sign,shown,unit]});}return /*#__PURE__*/_jsxs(\"span\",{ref:ref,children:[/*#__PURE__*/_jsx(Sign,{children:sign}),shown,/*#__PURE__*/_jsx(Unit,{children:unit})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"usePrata\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PRATA_FACE\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Sign\":{\"type\":\"reactComponent\",\"name\":\"Sign\",\"slots\":[\"children\"],\"annotations\":{\"framerContractVersion\":\"1\"}},\"splitFigure\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Unit\":{\"type\":\"reactComponent\",\"name\":\"Unit\",\"slots\":[\"children\"],\"annotations\":{\"framerContractVersion\":\"1\"}},\"SIGN_EM\":{\"type\":\"variable\",\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerIntrinsicHeight\":\"60\",\"framerIntrinsicWidth\":\"200\",\"framerContractVersion\":\"1\"}},\"Numerals\":{\"type\":\"reactComponent\",\"name\":\"Numerals\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"FIGURE_MIN\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Figure\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"CountFigure\":{\"type\":\"reactComponent\",\"name\":\"CountFigure\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"UNIT_EM\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HouseFigure.map"],"mappings":"4JAiBG,SAAgB,EAAU,EAAS,EAAM,GAAG,CAAC,IAAM,EAAIA,EAAO,IAAI,EAAO,CAAC,EAAK,GAASC,EAAS,CAAQ,EACqc,OADnc,MAAc,CAAC,GAAG,GAAU,GAAa,IAAS,OAAY,OAAO,IAAM,EAAG,EAAI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