{"version":3,"file":"withStackDepthColors.Cty4F2YX.mjs","names":["useRef","useMemo","__esmMin","pe","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","c","J","ce","de","isTransparent","value","backgroundColor","mergeRefs","refs","ref","resolveIconSvg","iconNode","getScrollableAncestors","ancestors","current","node","style","overflowY","overflow","getStickyTopPx","stickyElement","topValue","parsed","getStickyRoot","isDocumentScrollElement","doc","element","hasScrollableOverflow","isEffectiveStickyScrollport","findStickyElement","slotRoot","directChildren","el","child","allDescendants","overlapRatio","left","a","b","right","top","bottom","getPaintTarget","rootRect","cardRoot","rootArea","candidates","best","bestScore","rect","area","areaRatio","coverage","radius","nearFullSize","radiusScore","score","mergeTransitions","existing","reducedMotion","BG_TRANSITION_REDUCED","BG_TRANSITION","withStackDepthColors","localRef","frameRef","originalStylesRef","lastColorsRef","lastDepthKeyRef","iconStylesRef","idRef","dataAttributeProps","container","prefersReducedMotion","restorePainted","target","original","icon","svg","entry","ensureOriginalStored","update","directCards","cards","hasSticky","card","applyIconDepth","processTitles","markerNode","fallbackNode","title","svgElements","firstInFlowChild","labelRect","iconSize","transition","desiredColor","depth","ICON_ACTIVE","ICON_INACTIVE","strokeNodes","depthKey","DEPTH_COLORS","activeIndex","previousPinnedRect","i","stickyTop","stickyRect","stickyThreshold","isPinned","TOLERANCE","overlapsPrevious","depthValues","color","schedule","scrollParents","parent","resizeObserver","mutationObserver","Component","props","init_withStackDepthColors","init_jsx_runtime"],"sources":["https:/framerusercontent.com/modules/7U06cJKuncNZtjGXPNFZ/LScvC9iN0VQYSAfdsO7M/withStackDepthColors.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useMemo,useRef}from\"react\";const DEPTH_COLORS=[\"#FFFFFF\",\"#F7F7F7\",\"#F3F3F3\",\"#EFEFEF\"];const TOLERANCE=1;const BG_TRANSITION=\"background-color 320ms ease\";const BG_TRANSITION_REDUCED=\"background-color 0ms linear\";const ICON_ACTIVE=\"#2457FF\";const ICON_INACTIVE=\"#A5A5AA\";function isTransparent(backgroundColor){const value=backgroundColor.trim().toLowerCase();return value===\"transparent\"||value===\"rgba(0, 0, 0, 0)\"||value===\"rgba(0,0,0,0)\"||value===\"initial\"||value===\"inherit\";}function mergeRefs(...refs){return value=>{for(const ref of refs){if(!ref)continue;if(typeof ref===\"function\"){ref(value);}else{ref.current=value;}}};}function resolveIconSvg(iconNode){if(iconNode instanceof SVGSVGElement)return iconNode;return iconNode.querySelector(\"svg\");}function getScrollableAncestors(node){const ancestors=[];let current=node.parentElement;while(current){const style=window.getComputedStyle(current);const overflowY=style.overflowY;const overflow=style.overflow;const canScroll=/(auto|scroll|overlay)/.test(overflowY)||/(auto|scroll|overlay)/.test(overflow);if(canScroll)ancestors.push(current);current=current.parentElement;}return ancestors;}function getStickyTopPx(stickyElement){const style=window.getComputedStyle(stickyElement);if(style.position!==\"sticky\")return null;const topValue=style.top;if(!topValue||topValue===\"auto\")return null;const parsed=Number.parseFloat(topValue);return Number.isFinite(parsed)?parsed:null;}function getStickyRoot(stickyElement){const isDocumentScrollElement=element=>{const doc=element.ownerDocument;return element===doc.documentElement||element===doc.body||element===doc.scrollingElement;};const hasScrollableOverflow=value=>/(auto|scroll|overlay)/.test(value);const isEffectiveStickyScrollport=element=>{const style=window.getComputedStyle(element);const overflowY=style.overflowY;const overflow=style.overflow;const canScroll=hasScrollableOverflow(overflowY)||hasScrollableOverflow(overflow);if(canScroll){return element.scrollHeight>element.clientHeight+1;}const isHidden=/(hidden)/.test(overflowY)||/(hidden)/.test(overflow);if(isHidden){return element.scrollHeight>element.clientHeight+1;}return false;};let current=stickyElement.parentElement;while(current){if(isDocumentScrollElement(current))return null;if(isEffectiveStickyScrollport(current))return current;current=current.parentElement;}return null;}function findStickyElement(slotRoot){if(getStickyTopPx(slotRoot)!==null)return slotRoot;const directChildren=Array.from(slotRoot.children).filter(el=>el instanceof HTMLElement);for(const child of directChildren){if(getStickyTopPx(child)!==null)return child;}const allDescendants=Array.from(slotRoot.querySelectorAll(\"*\"));for(const node of allDescendants){if(getStickyTopPx(node)!==null)return node;}return null;}function overlapRatio(a,b){const left=Math.max(a.left,b.left);const right=Math.min(a.right,b.right);const top=Math.max(a.top,b.top);const bottom=Math.min(a.bottom,b.bottom);if(right<=left||bottom<=top)return 0;const overlapArea=(right-left)*(bottom-top);const minArea=Math.max(1,Math.min(a.width*a.height,b.width*b.height));return overlapArea/minArea;}function getPaintTarget(cardRoot){const rootRect=cardRoot.getBoundingClientRect();const rootArea=Math.max(1,rootRect.width*rootRect.height);const candidates=[cardRoot,...Array.from(cardRoot.querySelectorAll(\"*\"))];let best=cardRoot;let bestScore=-Infinity;for(const node of candidates){const style=window.getComputedStyle(node);if(isTransparent(style.backgroundColor))continue;const rect=node.getBoundingClientRect();const area=rect.width*rect.height;if(area<=0)continue;const areaRatio=area/rootArea;const coverage=overlapRatio(rect,rootRect);const radius=Number.parseFloat(style.borderTopLeftRadius||\"0\");const nearFullSize=areaRatio>=.65&&coverage>=.65;const radiusScore=Number.isFinite(radius)&&radius>0?.2:0;const fullSizeScore=nearFullSize?2:-1;const score=fullSizeScore+coverage+areaRatio+radiusScore;if(score>bestScore){bestScore=score;best=node;}}return best;}function mergeTransitions(existing,reducedMotion){const current=existing.trim();if(reducedMotion){if(!current||current===\"none\")return BG_TRANSITION_REDUCED;if(/background-color\\s+/i.test(current))return current;return`${current}, ${BG_TRANSITION_REDUCED}`;}if(!current||current===\"none\")return BG_TRANSITION;if(/background-color\\s+/i.test(current))return current;return`${current}, ${BG_TRANSITION}`;}export function withStackDepthColors(Component){return /*#__PURE__*/forwardRef(function WithStackDepthColors(props,ref){const localRef=useRef(null);const frameRef=useRef(null);const originalStylesRef=useRef(new Map);const lastColorsRef=useRef(new Map);const lastDepthKeyRef=useRef(\"\");const iconStylesRef=useRef(new Map);const idRef=useRef(\"\");if(!idRef.current){idRef.current=`stack-depth-colors-${Math.random().toString(36).slice(2,11)}`;}const dataAttributeProps=useMemo(()=>({\"data-stack-depth-colors-id\":idRef.current}),[]);useEffect(()=>{if(typeof window===\"undefined\")return;const container=localRef.current??document.querySelector(`[data-stack-depth-colors-id=\"${idRef.current}\"]`);if(!container)return;const prefersReducedMotion=window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;const restorePainted=()=>{for(const[target,original]of originalStylesRef.current){target.style.backgroundColor=original.prevBackground;target.style.transition=original.prevTransition;}originalStylesRef.current.clear();for(const[icon,original]of iconStylesRef.current){icon.style.color=original.color;icon.style.transition=original.transition;icon.style.top=original.top;icon.style.right=original.right;const svg=resolveIconSvg(icon);if(svg){svg.style.color=original.svgColor;svg.style.transition=original.svgTransition;svg.style.stroke=original.svgStroke;}for(const entry of original.svgElements){entry.el.style.color=entry.color;entry.el.style.stroke=entry.stroke;entry.el.style.transition=entry.transition;}}iconStylesRef.current.clear();lastColorsRef.current.clear();lastDepthKeyRef.current=\"\";};const ensureOriginalStored=target=>{if(originalStylesRef.current.has(target))return;originalStylesRef.current.set(target,{prevBackground:target.style.backgroundColor,prevTransition:target.style.transition});};const update=()=>{const directCards=Array.from(container.children).filter(el=>el instanceof HTMLElement);if(directCards.length===0)return;const cards=directCards.map(slotRoot=>{const stickyElement=findStickyElement(slotRoot);return{slotRoot,stickyElement,stickyTop:stickyElement?getStickyTopPx(stickyElement):null,stickyRoot:stickyElement?getStickyRoot(stickyElement):null,target:getPaintTarget(stickyElement??slotRoot)};});const hasSticky=cards.some(card=>card.stickyTop!==null&&card.stickyElement);const applyIconDepth=(slotRoot,depth)=>{const processTitles=[\"Share the Brief\",\"Scope & Direction\",\"Create & Refine\",\"Final Delivery\"];const markerNode=Array.from(slotRoot.children).find(child=>(child instanceof HTMLElement||child instanceof SVGSVGElement)&&child.getAttribute(\"data-framer-name\")===\"Process Step Icon\");const canUseFallback=processTitles.some(title=>(slotRoot.textContent||\"\").includes(title));const fallbackNode=canUseFallback?Array.from(slotRoot.children).find(child=>{if(!(child instanceof HTMLElement))return false;const style=window.getComputedStyle(child);return style.position===\"absolute\"&&Boolean(child.querySelector(\"svg\"));})??null:null;const iconNode=markerNode??fallbackNode;if(!iconNode)return;if(!iconStylesRef.current.has(iconNode)){const svg=resolveIconSvg(iconNode);const svgElements=svg?Array.from(svg.querySelectorAll(\"*\")).map(el=>({el,color:el.style.color,stroke:el.style.stroke,transition:el.style.transition})):[];iconStylesRef.current.set(iconNode,{color:iconNode.style.color,transition:iconNode.style.transition,top:iconNode.style.top,right:iconNode.style.right,svgColor:svg?.style.color??\"\",svgTransition:svg?.style.transition??\"\",svgStroke:svg?.style.stroke??\"\",svgElements});}const firstInFlowChild=Array.from(slotRoot.children).find(child=>{if(!(child instanceof HTMLElement)||child===iconNode)return false;const style=window.getComputedStyle(child);return style.display!==\"none\"&&style.position!==\"absolute\"&&style.position!==\"fixed\";});if(firstInFlowChild){const rootRect=slotRoot.getBoundingClientRect();const labelRect=firstInFlowChild.getBoundingClientRect();const iconSize=iconNode.getBoundingClientRect().width||26;const top=labelRect.top-rootRect.top+(labelRect.height-iconSize)/2;iconNode.style.top=`${top}px`;}const transition=prefersReducedMotion?\"color 0ms linear\":\"color 300ms ease\";const desiredColor=depth===0?ICON_ACTIVE:ICON_INACTIVE;iconNode.style.transition=transition;iconNode.style.color=desiredColor;const svg=resolveIconSvg(iconNode);if(svg){svg.style.color=desiredColor;svg.style.stroke=desiredColor;svg.style.transition=prefersReducedMotion?\"stroke 0ms linear, color 0ms linear\":\"stroke 300ms ease, color 300ms ease\";const strokeNodes=svg.querySelectorAll(\"*\");for(const node of strokeNodes){node.style.color=desiredColor;if(node.hasAttribute(\"stroke\")||/^(path|line|polyline|polygon|circle|ellipse|rect|g)$/i.test(node.tagName)){node.style.stroke=desiredColor;}node.style.transition=prefersReducedMotion?\"stroke 0ms linear, color 0ms linear\":\"stroke 300ms ease, color 300ms ease\";}}};if(!hasSticky){for(const card of cards)applyIconDepth(card.slotRoot,0);const depthKey=cards.map(()=>0).join(\"|\");if(lastDepthKeyRef.current===depthKey)return;lastDepthKeyRef.current=depthKey;for(const card of cards){const target=card.target;ensureOriginalStored(target);const desiredColor=DEPTH_COLORS[0];if(lastColorsRef.current.get(target)===desiredColor)continue;target.style.transition=mergeTransitions(target.style.transition,prefersReducedMotion);target.style.backgroundColor=desiredColor;lastColorsRef.current.set(target,desiredColor);}return;}let activeIndex=-1;let previousPinnedRect=null;for(let i=0;i<cards.length;i++){const card=cards[i];const stickyElement=card.stickyElement;const stickyTop=card.stickyTop;if(!stickyElement||stickyTop===null)continue;const stickyRect=stickyElement.getBoundingClientRect();const stickyRootTop=card.stickyRoot?card.stickyRoot.getBoundingClientRect().top:0;const stickyThreshold=stickyRootTop+stickyTop;const isPinned=stickyRect.top<=stickyThreshold+TOLERANCE;const overlapsPrevious=previousPinnedRect!==null&&stickyRect.top<previousPinnedRect.bottom-TOLERANCE&&stickyRect.bottom>previousPinnedRect.top+TOLERANCE;if(isPinned||overlapsPrevious)activeIndex=i;if(isPinned||overlapsPrevious)previousPinnedRect=stickyRect;}const depthValues=[];for(let i=0;i<cards.length;i++){let color=DEPTH_COLORS[0];let depth=0;if(activeIndex>=0&&i<activeIndex){depth=activeIndex-i;color=DEPTH_COLORS[Math.min(depth,DEPTH_COLORS.length-1)];}depthValues.push(depth);}for(let i=0;i<cards.length;i++){applyIconDepth(cards[i].slotRoot,depthValues[i]);}const depthKey=`${activeIndex}:${depthValues.join(\"|\")}`;if(lastDepthKeyRef.current===depthKey)return;lastDepthKeyRef.current=depthKey;for(let i=0;i<cards.length;i++){const depth=depthValues[i];const color=DEPTH_COLORS[Math.min(depth,DEPTH_COLORS.length-1)];const target=cards[i].target;ensureOriginalStored(target);if(lastColorsRef.current.get(target)===color)continue;target.style.transition=mergeTransitions(target.style.transition,prefersReducedMotion);target.style.backgroundColor=color;lastColorsRef.current.set(target,color);}};const schedule=()=>{if(frameRef.current!==null)return;frameRef.current=window.requestAnimationFrame(()=>{frameRef.current=null;update();});};const scrollParents=getScrollableAncestors(container);window.addEventListener(\"scroll\",schedule,{passive:true,capture:true});window.addEventListener(\"resize\",schedule,{passive:true});for(const parent of scrollParents){parent.addEventListener(\"scroll\",schedule,{passive:true,capture:true});}const resizeObserver=typeof ResizeObserver!==\"undefined\"?new ResizeObserver(()=>{schedule();}):null;resizeObserver?.observe(container);const mutationObserver=typeof MutationObserver!==\"undefined\"?new MutationObserver(()=>{schedule();}):null;mutationObserver?.observe(container,{childList:true,subtree:true});schedule();return()=>{window.removeEventListener(\"scroll\",schedule,true);window.removeEventListener(\"resize\",schedule);for(const parent of scrollParents){parent.removeEventListener(\"scroll\",schedule,true);}resizeObserver?.disconnect();mutationObserver?.disconnect();if(frameRef.current!==null){window.cancelAnimationFrame(frameRef.current);frameRef.current=null;}restorePainted();};},[]);return /*#__PURE__*/_jsx(Component,{ref:mergeRefs(ref,localRef),...props,...dataAttributeProps});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withStackDepthColors\":{\"type\":\"reactHoc\",\"name\":\"withStackDepthColors\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./withStackDepthColors.map"],"mappings":"A,gJAAuV,SAASW,EAAc,EAAgB,CAAC,IAAMC,EAAMC,EAAgB,KAAK,CAAC,CAAC,YAAY,EAAE,OAAOD,IAAQ,eAAeA,IAAQ,oBAAoBA,IAAQ,iBAAiBA,IAAQ,WAAWA,IAAQ,SAAU,CAAC,SAASE,EAAU,GAAGC,EAAK,CAAC,MAAO,IAAO,CAAC,IAAI,IAAMC,KAAOD,EAAUC,IAAgB,OAAOA,GAAM,WAAYA,EAAIJ,CAAK,EAAQ,EAAI,QAAQA,EAAQ,CAAE,CAAC,SAASK,EAAe,EAAS,CAAsD,OAAlDC,aAAoB,cAAqBA,EAAgBA,EAAS,cAAc,KAAK,CAAE,CAAC,SAASC,EAAuB,EAAK,CAAC,IAAMC,EAAU,CAAC,EAAMC,EAAQC,EAAK,cAAc,KAAMD,GAAQ,CAAC,IAAME,EAA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