{"version":3,"file":"TextMotion.DAGYfxtd.mjs","names":["useSyncExternalStore","useRef","useMemo","Children","useState","Fragment","useLayoutEffect","useEffect","__esmMin","le","j","x","init_ssg_sandbox_shims","pe","me","init_npm_react_18_3_1","_e","de","init_jsx_runtime","K","J","c","p","ce","window","init_framer_DxfB3JJo","useIsStaticRenderer","prefersReducedMotion","isBrowser","subscribeReducedMotion","mq","onChange","useReducedMotion","useIsHydrating","subscribeNothing","assignRef","ref","value","useForkRef","own","outerRef","outer","box","simpleText","depth","node","kids","k","sourceText","props","onFirstLoadedPage","nav","key","u","isOnScreen","b","el","vw","vh","parseCount","text","hits","NUMBER","raw","at","prefix","suffix","dot","decimals","grouped","formatCount","s","v","spec","parts","countNodes","COUNT_WRAP","COUNT_SR","COUNT_GHOST","COUNT_LIVE","shown","withCountUp","CountUp","isStatic","hydrating","reduced","fork","source","setShown","useIsoLayoutEffect","Component","splitWords","out","tintFor","m","color","r","g","a","rgb","share","UNREAD_SHARE_ON_DARK","UNREAD_SHARE","startInkFill","colourHost","mix","ink","unread","w","words","raf","near","smooth","last","written","paint","cursor","clamp01","FILL_START","y","i","target","doc","frame","dt","now","kick","snap","remeasure","ro","fonts","io","entries","withInkFill","InkFill","bornHydrating","pieces","wordCount","enabled","armed","setArmed","failed","setFailed","wordRefs","n","index","init_TextMotion"],"sources":["https:/framerusercontent.com/modules/IygkdAtQH2qcyqEbhkPi/obCw0spWRFnCaoDe2HHg/TextMotion.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{Children,Fragment,forwardRef,isValidElement,useEffect,useLayoutEffect,useMemo,useRef,useState,useSyncExternalStore}from\"react\";import{useIsStaticRenderer}from\"framer\";// Text Motion overrides (9 Oct 2026, Chay's review: \"stats should be increasing number wise\" + \"quotes type in the\n// same style as the homepage\"). Both wrap a canvas RichText and only change the `text` it renders, so the node keeps\n// its canvas styling and stays editable. Nothing here moves or removes DOM nodes React owns.\n//\n// withCountUp: a stat numeral (\"89%\", \"17 days\", \"$1bn\", \"CHF 240M\", \"20.9%\") counts from 0 to its value once, when\n//   it is fully in view: quartic ease-out, 1.6 s. Prefix/suffix/decimals/thousands commas are kept; text with no\n//   number (or more than one) stays static. While counting, the final value sits invisibly underneath so the box keeps\n//   its final width (no jitter, nothing next to it moves) and screen readers get the final value. Digits stay\n//   proportional so the last frame and the final text are identical (tabular figures jump at the end).\n// withInkFill: quote text sits in a 20% tint of its own colour and fills word by word in reading order as it moves\n//   from 75% to 35% of the viewport (Home ScrollQuote's mapping and smoothing). Dark variants fill white on ink.\n//\n// Both: server HTML, the canvas and static renders, `prefers-reduced-motion: reduce` and any error render the text\n// exactly as before. Anything already on screen when the page hydrates is left alone (no final-value-then-0 flash);\n// a quote that was on screen at load starts filling once it has been scrolled out of view.\nconst isBrowser=typeof window!==\"undefined\"&&typeof document!==\"undefined\";const useIsoLayoutEffect=isBrowser?useLayoutEffect:useEffect;const clamp01=v=>v<0?0:v>1?1:v;function prefersReducedMotion(){try{return isBrowser&&typeof window.matchMedia===\"function\"&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;}catch{return false;}}function subscribeReducedMotion(onChange){if(!isBrowser||typeof window.matchMedia!==\"function\")return()=>{};const mq=window.matchMedia(\"(prefers-reduced-motion: reduce)\");mq.addEventListener?.(\"change\",onChange);return()=>mq.removeEventListener?.(\"change\",onChange);}/** Follows the OS \"reduce motion\" setting; false on the server and while hydrating. */function useReducedMotion(){return useSyncExternalStore(subscribeReducedMotion,prefersReducedMotion,()=>false);}const subscribeNothing=()=>()=>{};/** True while rendering on the server or hydrating server HTML, false for client-only renders (in-site navigation). */function useIsHydrating(){return useSyncExternalStore(subscribeNothing,()=>false,()=>true);}function assignRef(ref,value){if(typeof ref===\"function\")ref(value);else if(ref&&typeof ref===\"object\")ref.current=value;}/** One object ref for the RichText (it reads `.current` itself) that also feeds the ref Framer hands the override. */function useForkRef(outer){const own=useRef(null);const outerRef=useRef(outer);outerRef.current=outer;const fork=useMemo(()=>{const box={};Object.defineProperty(box,\"current\",{enumerable:true,get:()=>own.current,set:value=>{own.current=value;assignRef(outerRef.current,value);}});return box;},[]);return[own,fork];}/** Plain text of a RichText whose content is one simple run (one element per level, one string at the bottom). */function simpleText(node,depth=0){if(depth>10)return null;if(typeof node===\"string\")return node;if(typeof node===\"number\")return String(node);if(Array.isArray(node)){const kids=node.filter(k=>k!==null&&k!==undefined&&k!==false&&k!==true&&k!==\"\");return kids.length===1?simpleText(kids[0],depth+1):null;}if(/*#__PURE__*/isValidElement(node)){const kids=Children.toArray(node.props.children);return kids.length===1?simpleText(kids[0],depth+1):null;}return null;}/**\n * The text a canvas RichText shows: the bound `text` (variable / CMS / component prop) or, for literal text, the single\n * run inside `children`. Null when the content is anything richer (several runs, links, HTML from a CMS field).\n */function sourceText(props){if(typeof props.text===\"string\")return props.text;if(props.text!==undefined&&props.text!==null)return null;if(typeof props.children===\"string\")return null;return simpleText(props.children);}/**\n * True while the visitor is still on the page the browser originally loaded (server HTML was painted). False after an\n * in-site (client-side) navigation, where nothing was painted before our first render. Unknown counts as true (safe).\n */function onFirstLoadedPage(){try{const nav=performance.getEntriesByType(\"navigation\")[0];if(!nav||!nav.name)return true;const key=u=>{const x=new URL(u,window.location.href);return x.origin+(x.pathname.replace(/\\/+$/,\"\")||\"/\")+x.search;};return key(nav.name)===key(window.location.href);}catch{return true;}}function isOnScreen(el){const b=el.getBoundingClientRect();if(b.width===0&&b.height===0)return false;const vw=window.innerWidth||document.documentElement.clientWidth||0;const vh=window.innerHeight||document.documentElement.clientHeight||0;return b.bottom>0&&b.top<vh&&b.right>0&&b.left<vw;}// 18 Nov (Chay, pre-handover): count-up off site-wide. Mid-count frames showed wrong figures (\"$262m\", \"20.7%\",\n// \"96%\") as the ease-out tail lingered. Stats now render their real value at once. Set true to bring it back.\nconst COUNT_UP_ON=false;const NUMBER=/\\d{1,3}(?:,\\d{3})+(?:\\.\\d+)?|\\d+(?:\\.\\d+)?/g;const COUNT_MS=1600;/** \"CHF 240M\" -> { prefix \"CHF \", value 240, suffix \"M\" }. Null for text with no number or several numbers. */function parseCount(text){if(!text||text.length>40)return null;const hits=text.match(NUMBER);if(!hits||hits.length!==1)return null;const raw=hits[0];const at=text.indexOf(raw);const prefix=text.slice(0,at);const suffix=text.slice(at+raw.length);const value=Number(raw.replace(/,/g,\"\"));if(!Number.isFinite(value)||value<=0)return null;const dot=raw.indexOf(\".\");const decimals=dot<0?0:raw.length-dot-1;const grouped=raw.indexOf(\",\")>=0;// A bare year (\"2013\", \"Since 2019\") is a date, not a quantity.\nconst year=!grouped&&decimals===0&&raw.length===4&&value>=1900&&value<=2099;if(year&&!/[%+×$£€¥]|\\d\\s*[xXkKmM]|bn|days?|years?|months?|weeks?|hours?/.test(prefix+raw+suffix))return null;return{text,prefix,suffix,value,decimals,grouped};}function formatCount(spec,v){let s=v.toFixed(spec.decimals);if(spec.grouped){const parts=s.split(\".\");parts[0]=parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\");s=parts.join(\".\");}return spec.prefix+s+spec.suffix;}const easeOutQuart=t=>1-Math.pow(1-t,4);// While counting: [screen-reader copy of the final value][invisible final value, sets the width][live number on top].\nconst COUNT_WRAP={position:\"relative\",display:\"inline-block\"};const COUNT_SR={position:\"absolute\",width:1,height:1,margin:-1,padding:0,border:0,overflow:\"hidden\",clip:\"rect(0 0 0 0)\",clipPath:\"inset(50%)\",whiteSpace:\"nowrap\"};const COUNT_GHOST={visibility:\"hidden\",userSelect:\"none\"};const COUNT_LIVE={position:\"absolute\",left:0,right:0,top:0,whiteSpace:\"pre\",textAlign:\"inherit\",userSelect:\"none\"};function countNodes(spec,shown){return /*#__PURE__*/_jsxs(\"span\",{style:COUNT_WRAP,\"data-count-up\":\"\",children:[/*#__PURE__*/_jsx(\"span\",{style:COUNT_SR,children:spec.text}),/*#__PURE__*/_jsx(\"span\",{style:COUNT_GHOST,\"aria-hidden\":\"true\",children:spec.text}),/*#__PURE__*/_jsx(\"span\",{style:COUNT_LIVE,\"aria-hidden\":\"true\",children:shown})]});}/**\n * Count Up: the stat counts from 0 to its value when it scrolls fully into view (once).\n * @framerDisableUnlink\n */export function withCountUp(Component){const CountUp=/*#__PURE__*/forwardRef(function CountUp(props,ref){const isStatic=useIsStaticRenderer();const hydrating=useIsHydrating();const bornHydrating=useRef(hydrating).current;const reduced=useReducedMotion();const[own,fork]=useForkRef(ref);const source=sourceText(props);const spec=useMemo(()=>parseCount(source),[source]);// null = the plain final text (server, static, reduced motion, done); a number = the value on show.\nconst[shown,setShown]=useState(null);useIsoLayoutEffect(()=>{setShown(null);if(!COUNT_UP_ON||isStatic||reduced||!spec||!isBrowser||prefersReducedMotion())return;if(typeof IntersectionObserver===\"undefined\"||typeof requestAnimationFrame===\"undefined\")return;const el=own.current;if(!el)return;let raf=0;let io=null;let started=false;try{const b=el.getBoundingClientRect();const laidOut=b.width>0||b.height>0;// Not laid out (hidden breakpoint), already scrolled past, or painted on screen by the server: leave it.\nconst painted=bornHydrating||onFirstLoadedPage();if(!laidOut||b.bottom<=0||painted&&isOnScreen(el))return;setShown(0);const run=()=>{if(started)return;started=true;io?.disconnect();io=null;const t0=performance.now();const tick=now=>{const t=(now-t0)/COUNT_MS;if(t>=1){raf=0;setShown(null);return;}setShown(spec.value*easeOutQuart(clamp01(t)));raf=requestAnimationFrame(tick);};raf=requestAnimationFrame(tick);};io=new IntersectionObserver(entries=>{for(const e of entries)if(e.isIntersecting&&e.intersectionRatio>=.75)run();},{threshold:[0,.5,.75,.9,1]});io.observe(el);}catch{setShown(null);}return()=>{if(raf)cancelAnimationFrame(raf);io?.disconnect();};},[isStatic,reduced,spec]);if(shown===null||!spec)return /*#__PURE__*/_jsx(Component,{...props,ref:fork});let text;try{text=countNodes(spec,formatCount(spec,shown));}catch{return /*#__PURE__*/_jsx(Component,{...props,ref:fork});}return /*#__PURE__*/_jsx(Component,{...props,ref:fork,text:text});});CountUp.displayName=\"withCountUp\";return CountUp;}// ---------------------------------------------------------------------------------------------------------------\n// Ink fill (the Home quote's scroll fill, for canvas quote text)\n// ---------------------------------------------------------------------------------------------------------------\n// Same mapping and smoothing as ScrollQuote (fifpEUQ): the fill starts when the text's top is at 75% of the viewport\n// height and the last word is inked when it reaches 35%.\nconst FILL_START=.75;const FILL_END=.35;const UNREAD_SHARE=.2;// 18 Nov: on dark sections (light ink) unread words start at 40%, so they pass 3:1 for large text on ink (#160602):\n// at 20% they measured 1.7:1 (Lighthouse colour-contrast, Talent CRM quote).\nconst UNREAD_SHARE_ON_DARK=.4;/** Words and the exact whitespace between them (kept as-is so line breaks and spacing don't change). */function splitWords(text){const out=[];for(const s of text.split(/(\\s+)/))if(s)out.push({word:!/^\\s+$/.test(s),s});return out;}/** Ink colour + its 20% tint, from a computed CSS colour. */function tintFor(color){// Browsers report sRGB colours as \"rgb(r, g, b)\" / \"rgba(r, g, b, a)\"; anything else is mixed with transparent.\nconst m=color.match(/^rgba?\\(\\s*([\\d.]+)[\\s,]+([\\d.]+)[\\s,]+([\\d.]+)(?:[\\s,/]+([\\d.]+%?))?\\s*\\)$/i);if(m){const[r,g,b]=[m[1],m[2],m[3]].map(x=>Math.round(parseFloat(x)));const a=m[4]===undefined?1:m[4].endsWith(\"%\")?parseFloat(m[4])/100:parseFloat(m[4]);if([r,g,b,a].every(x=>Number.isFinite(x))){const rgb=`${r}, ${g}, ${b}`;const share=.2126*r+.7152*g+.0722*b>160?UNREAD_SHARE_ON_DARK:UNREAD_SHARE;return{ink:`rgba(${rgb}, ${a})`,unread:`rgba(${rgb}, ${+(a*share).toFixed(4)})`};}}return{ink:color,unread:`color-mix(in srgb, ${color} ${UNREAD_SHARE*100}%, transparent)`};}/**\n * Scroll-scrubbed fill of `words` by the position of `box` (ScrollQuote's loop). Returns a cleanup function.\n * Each word's colour mixes the ink and its tint by --f (0..1).\n */function startInkFill(box,words,colourHost){const{ink,unread}=tintFor(getComputedStyle(colourHost).color);const mix=`color-mix(in srgb, ${ink} calc(var(--f, 1) * 100%), ${unread})`;for(const w of words)w.style.color=mix;let raf=0;let near=true;let smooth=NaN;let last=0;const written=new Map;const paint=y=>{const r=FILL_START===FILL_END?y<=FILL_END?1:0:clamp01((FILL_START-y)/(FILL_START-FILL_END));const cursor=r*words.length;for(let i=0;i<words.length;i++){const w=words[i];const key=clamp01(cursor-i).toFixed(3);if(written.get(w)===key)continue;written.set(w,key);w.style.setProperty(\"--f\",key);}};const target=()=>{const r=box.getBoundingClientRect();const vh=window.innerHeight||1;const doc=document.documentElement;// At the very bottom of the page the text cannot travel any further: treat it as read.\nif(window.scrollY>=doc.scrollHeight-vh-2&&r.bottom<vh)return-1;return r.top/vh;};const frame=now=>{raf=0;const y=target();const dt=last?Math.min(64,now-last):16.7;last=now;if(Number.isNaN(smooth))smooth=y;else smooth+=(y-smooth)*(1-Math.pow(1-.2,dt/16.7));if(Math.abs(y-smooth)<5e-4)smooth=y;paint(smooth);if(smooth!==y&&near)raf=requestAnimationFrame(frame);else last=0;};const kick=()=>{if(!raf&&near)raf=requestAnimationFrame(frame);};const snap=()=>{smooth=target();paint(smooth);};const remeasure=()=>{written.clear();snap();};snap()// runs before the browser paints, so the full-ink text never shows once armed\n;window.addEventListener(\"scroll\",kick,{passive:true});window.addEventListener(\"resize\",kick,{passive:true});const ro=typeof ResizeObserver!==\"undefined\"?new ResizeObserver(remeasure):null;ro?.observe(box);const fonts=document.fonts;fonts?.ready.then(remeasure).catch(()=>{});fonts?.addEventListener?.(\"loadingdone\",remeasure);const io=typeof IntersectionObserver!==\"undefined\"?new IntersectionObserver(entries=>{near=entries.some(e=>e.isIntersecting);if(near)kick();else{if(raf)cancelAnimationFrame(raf);raf=0;last=0;snap();}},{rootMargin:\"30% 0px 30% 0px\"}):null;io?.observe(box);return()=>{if(raf)cancelAnimationFrame(raf);window.removeEventListener(\"scroll\",kick);window.removeEventListener(\"resize\",kick);ro?.disconnect();io?.disconnect();fonts?.removeEventListener?.(\"loadingdone\",remeasure);for(const w of words){w.style.removeProperty(\"--f\");w.style.removeProperty(\"color\");}};}/**\n * Ink Fill: quote text sits in a 20% tint and ink fills it word by word as it scrolls up the page (like Home's quote).\n * @framerDisableUnlink\n */export function withInkFill(Component){const InkFill=/*#__PURE__*/forwardRef(function InkFill(props,ref){const isStatic=useIsStaticRenderer();const hydrating=useIsHydrating();const bornHydrating=useRef(hydrating).current;const reduced=useReducedMotion();const[own,fork]=useForkRef(ref);const source=sourceText(props);const pieces=useMemo(()=>source?splitWords(source):null,[source]);const wordCount=pieces?pieces.filter(p=>p.word).length:0;const enabled=!isStatic&&!reduced&&wordCount>1;const[armed,setArmed]=useState(false)// false = untouched text (server, hydration, static, fallback)\n;const[failed,setFailed]=useState(false);const wordRefs=useRef([]);// 1) Decide when to swap the plain text for word spans.\nuseIsoLayoutEffect(()=>{if(!enabled||failed||!isBrowser||prefersReducedMotion()){setArmed(false);return;}const el=own.current;if(!el)return;try{if((bornHydrating||onFirstLoadedPage())&&isOnScreen(el)&&typeof IntersectionObserver!==\"undefined\"){// The server already painted this in full ink: start once it has been scrolled out of view.\nconst io=new IntersectionObserver(entries=>{if(entries.every(e=>!e.isIntersecting)){io.disconnect();setArmed(true);}});io.observe(el);return()=>io.disconnect();}setArmed(true);}catch{setFailed(true);}},[enabled,failed]);// 2) Once the spans are in the DOM, drive the fill (same frame, before paint).\nuseIsoLayoutEffect(()=>{if(!armed||!pieces)return;const box=own.current;const words=wordRefs.current.slice(0,wordCount).filter(w=>!!w);if(!box||words.length!==wordCount||!words[0].parentElement){setFailed(true);return;}try{return startInkFill(box,words,words[0].parentElement);}catch{for(const w of words){w.style.removeProperty(\"--f\");w.style.removeProperty(\"color\");}setFailed(true);}},[armed,pieces,wordCount]);if(!armed||failed||!pieces)return /*#__PURE__*/_jsx(Component,{...props,ref:fork});let text;try{let n=0;text=pieces.map((p,i)=>{if(!p.word)return /*#__PURE__*/_jsx(Fragment,{children:p.s},i);const index=n++;return /*#__PURE__*/_jsx(\"span\",{ref:el=>{wordRefs.current[index]=el;},children:p.s},i);});}catch{return /*#__PURE__*/_jsx(Component,{...props,ref:fork});}return /*#__PURE__*/_jsx(Component,{...props,ref:fork,text:text});});InkFill.displayName=\"withInkFill\";return InkFill;}\nexport const __FramerMetadata__ = {\"exports\":{\"withCountUp\":{\"type\":\"reactHoc\",\"name\":\"withCountUp\",\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"withInkFill\":{\"type\":\"reactHoc\",\"name\":\"withInkFill\",\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextMotion.map"],"mappings":"A,wPAeuK,SAAS2B,GAAsB,CAAC,GAAG,CAAC,OAAOC,GAAW,OAAOJ,EAAO,YAAa,YAAYA,EAAO,WAAW,kCAAkC,CAAC,CAAC,OAAQ,MAAM,CAAC,MAAO,EAAM,CAAC,CAAC,SAASK,EAAuB,EAAS,CAAC,GAAG,CAACD,GAAW,OAAOJ,EAAO,YAAa,WAAW,UAAU,CAAC,EAAE,IAAMM,EAAGN,EAAO,WAAW,kCAAkC,EAA2C,OAAzCM,EAAG,mBAAmB,SAASC,CAAQ,MAAYD,EAAG,sBAAsB,SAASC,CAAQ,CAAE,CAAwF,SAASC,GAAkB,CAAC,OAAOhC,EAAqB6B,EAAuBF,MAAyB,EAAK,CAAE,CAA0J,SAASM,GAAgB,CAAC,OAAOjC,EAAqBkC,MAAqB,OAAU,EAAI,CAAE,CAAC,SAASC,EAAU,EAAI,EAAM,CAAI,OAAOC,GAAM,WAAWA,EAAIC,CAAK,EAAUD,GAAK,OAAOA,GAAM,WAAS,EAAI,QAAQC,EAAM,CAAuH,SAASC,EAAW,EAAM,CAAC,IAAMC,EAAItC,EAAO,IAAI,EAAQuC,EAASvC,EAAOwC,CAAK,EAA4N,MAA1N,GAAS,QAAQA,EAA+M,CAACF,EAA/LrC,MAAY,CAAC,IAAMwC,EAAI,CAAC,EAA+I,OAA7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