{"version":3,"file":"TextStackSoftReveal.Css1I2Bg.mjs","names":["React.useRef","React.useCallback","__esmMin","ne","init_npm_react_18_3_1","de","window","init_jsx_runtime","J","ce","init_ssg_sandbox_shims","init_framer_DKgW_P28","useIsStaticRenderer","withTextStackSoftReveal","staticRender","elementRef","setRef","node","forwarded","root","children","el","st","targets","animations","animation","index","fired","play","a","observer","entry","rest","props","Component","style","init_TextStackSoftReveal"],"sources":["https:/framerusercontent.com/modules/8jAmyxMhNtrvzlxvW8nu/IjVeKafcQ8oIYmFhDiPl/TextStackSoftReveal.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{forwardRef}from\"react\";import{useIsStaticRenderer}from\"framer\";/** SAUR V5 / CMS-safe soft reveal for a complete Framer stack of text elements.\n * Animate immediate visible children in source order. Does not edit CMS text bindings.\n * Applies to RichText nodes and button descendants without rebuilding the stack.\n * With fewer than two direct elements, falls back to animating the host.\n */export function withTextStackSoftReveal(Component){return /*#__PURE__*/forwardRef(function TextStackSoftReveal(props,forwarded){const staticRender=useIsStaticRenderer();const elementRef=React.useRef(null);const setRef=React.useCallback(node=>{elementRef.current=node;if(typeof forwarded===\"function\")forwarded(node);else if(forwarded&&typeof forwarded===\"object\")forwarded.current=node;},[forwarded]);React.useEffect(()=>{const root=elementRef.current;if(!root||staticRender||typeof window===\"undefined\")return;if(window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches)return;const children=Array.from(root.children).filter(el=>{if(!(el instanceof HTMLElement))return false;const st=window.getComputedStyle(el);return st.display!==\"none\"&&st.visibility!==\"hidden\";});const targets=children.length>=2?children:[root];if(!targets[0]?.animate)return;const animations=targets.map((el,index)=>{const animation=el.animate([{opacity:0,translate:\"0 27px\",filter:\"blur(7px)\"},{opacity:1,translate:\"0 0px\",filter:\"blur(0px)\"}],{duration:780,delay:Math.min(index,8)*125,fill:\"both\",easing:\"cubic-bezier(.22,1,.36,1)\"});animation.pause();animation.currentTime=0;return animation;});let fired=false;const play=()=>{if(fired)return;fired=true;animations.forEach(a=>a.play());};if(!(\"IntersectionObserver\"in window)){play();return()=>animations.forEach(a=>a.cancel());}const observer=new IntersectionObserver(([entry])=>{if(entry.isIntersecting){observer.disconnect();play();}},{threshold:.12});observer.observe(root);return()=>{observer.disconnect();animations.forEach(a=>a.cancel());};},[staticRender]);const{style,...rest}=props;return /*#__PURE__*/_jsx(Component,{...rest,ref:setRef,style:{...style}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withTextStackSoftReveal\":{\"type\":\"reactHoc\",\"name\":\"withTextStackSoftReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextStackSoftReveal.map"],"mappings":"A,kMAIG,SAAgBa,EAAwB,EAAU,CAAC,MAAoB,gBAAW,SAA6B,EAAM,EAAU,CAAC,IAAMC,EAAaF,EAAoB,EAAQG,EAAWf,EAAa,IAAI,EAAQgB,EAAOf,EAAkB,GAAM,CAAC,EAAW,QAAQgB,EAAQ,OAAOC,GAAY,WAAWA,EAAUD,CAAI,EAAUC,GAAW,OAAOA,GAAY,WAAS,EAAU,QAAQD,EAAK,EAAE,CAACC,CAAS,CAAC,EAAET,MAAoB,CAAC,IAAMU,EAAKJ,EAAW,QAAmE,GAAxD,CAACI,GAAML,GAAqBR,IAAS,QAAsBA,EAAO,WAAW,kCAAkC,CAAC,CAAC,QAAQ,OAAO,IAAMc,EAAS,MAAM,KAAKD,EAAK,QAAQ,CAAC,CAAC,OAAO,GAAI,CAAC,GAAG,EAAEE,aAAc,aAAa,MAAO,GAAM,IAAMC,EAAGhB,EAAO,iBAAiBe,CAAE,EAAE,OAAOC,EAAG,UAAU,QAAQA,EAAG,aAAa,QAAS,CAAC,EAAQC,EAAQH,EAAS,QAAQ,EAAEA,EAAS,CAACD,CAAI,EAAE,GAAG,CAACI,EAAQ,EAAE,EAAE,QAAQ,OAAO,IAAMC,EAAWD,EAAQ,KAAK,EAAG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