{"version":3,"file":"CardStackReveal.dtkjcrZz.mjs","names":["useRef","useCallback","useState","useMemo","useState","useRef","Fragment","__esmMin","ne","ee","init_npm_react_18_3_1","x","pe","window","ce","c","_e","de","init_ssg_sandbox_shims","useInView","init_framer_motion_DhsWWWsN","isMotionValue","useIsStaticRenderer","addPropertyControls","RenderTarget","init_framer_DKWANagr","ControlType","useIsInCurrentNavigationTarget","useOnEnter","useOnExit","useRadius","useIsBrowserSafari","borderRadiusControl","useIsOnCanvas","defaultEvents","useRenderTarget","init_OIjZRBmWDcIE2B6qgG1j","getProps","rest","props","Video","newProps","VideoMemo","usePlaybackControls","isInCurrentNavigationTarget","requestingPlay","isPlayingRef","setProgress","videoRef","newProgress","rawProgress","isAlreadySet","video","useAutoplayBehavior","initialPlayingProp","playingProp","hasPlayingPropChanged","setHasPlayingPropChanged","behavesAsGif","muted","loop","playsinline","controls","autoplay","capitalizeFirstLetter","value","titleCase","ObjectFitType","SrcType","defaultVideo","objectFitOptions","init_Video","init_jsx_runtime","\"Fill\"","\"Contain\"","\"Cover\"","\"None\"","\"ScaleDown\"","\"Video\"","\"Url\"","startTimeProp","isSafari","wasPausedOnLeave","wasEndedOnLeave","isOnCanvas","renderTarget","isStaticRenderer","borderRadius","autoplayBehavior","isInViewport","isCloseToViewport","startTime","play","pause","poster","posterEnabled","isMountedAndReadyForProgressChanges","rawProgressValue","progress","srcFile","srcUrl","src","srcType","volume","onSeeked","onPause","onPlay","onEnd","isPlaying","onClick","parseVerticalPadding","values","padding","token","CardStack","appearance","typography","depth","hoverEnabled","hover","durationMs","duration","staggerDelayMs","staggerDelay","revealOnHover","reveal","revealOnClick","autoPlay","autoPlayInterval","autoPlaySpeed","hovered","setHovered","rotation","setRotation","wrap","setWrap","snapIndex","setSnapIndex","tabVisible","setTabVisible","isStatic","rotationRef","timeoutsRef","rafRef","count","cards","paddingTop","paddingBottom","cardHeight","avatarSize","peek","overlapPercent","autoPlaySpeedMs","collapsedHeight","expandedHeight","expandedGap","containerHeight","handleVisibilityChange","id","current","frontIndex","raf1","raf2","settleTimeout","raf3","raf4","timeoutId","rafId","renderCard","frontDepth","vSlot","top","depthPx","depthOffset","scale","scaleFalloff","blur","blurAmount","opacity","opacityOverride","opacityFalloff","zIndex","cardBackground","cardRadius","shadow","transitionDurationMs","transitionDelayMs","card","DEFAULT_AVATARS","cardIndex","avatarRatio","avatarRadius","titleFont","titleColor","subtitleFont","subtitleColor","reactKey","style","event","slot","index","isAutoPlayTick","enterVSlot","WRAP_NUDGE","isSnapping","init_CardStackReveal"],"sources":["https:/framerusercontent.com/modules/lRDHiNWNVWmE0lqtoVHP/I6H5ZhUPA8PwvfVPIGXQ/Video.js","https:/framerusercontent.com/modules/CqH3AQQysx3dObDmRyOM/U7XUrQsZuE55szOajFUJ/CardStackReveal.js"],"sourcesContent":["// ⚠️⚠️⚠️⚠️⚠️\n// Edit these files in https://github.com/framer/FramerCodeComponents\n// ⚠️⚠️⚠️⚠️⚠️\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsInCurrentNavigationTarget,RenderTarget}from\"framer\";import{isMotionValue,useInView}from\"framer-motion\";import{borderRadiusControl,defaultEvents,useIsBrowserSafari,useIsOnCanvas,useOnEnter,useOnExit,useRadius,useRenderTarget}from\"https://framerusercontent.com/modules/G4IfyjvwmaeSBpdb4TWu/OIjZRBmWDcIE2B6qgG1j/index.js\";// https://framer.com/m/framer/default-utils.js@^0.45.0\nimport{memo,useCallback,useEffect,useMemo,useRef,useState}from\"react\";var ObjectFitType;(function(ObjectFitType){ObjectFitType[\"Fill\"]=\"fill\";ObjectFitType[\"Contain\"]=\"contain\";ObjectFitType[\"Cover\"]=\"cover\";ObjectFitType[\"None\"]=\"none\";ObjectFitType[\"ScaleDown\"]=\"scale-down\";})(ObjectFitType||(ObjectFitType={}));var SrcType;(function(SrcType){SrcType[\"Video\"]=\"Upload\";SrcType[\"Url\"]=\"URL\";})(SrcType||(SrcType={}));const defaultVideo=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\";// Reduce renders\nfunction getProps(props){const{width,height,topLeft,topRight,bottomRight,bottomLeft,id,children,...rest}=props;return rest;}/**\n * VIDEO\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 112\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n *\n * @framerComponentPresetProps borderRadius, backgroundColor\n */export function Video(props){const newProps=getProps(props);return /*#__PURE__*/_jsx(VideoMemo,{...newProps});}function usePlaybackControls(videoRef){const isInCurrentNavigationTarget=useIsInCurrentNavigationTarget();const requestingPlay=useRef(false);const isPlayingRef=useRef(false);const setProgress=useCallback(rawProgress=>{if(!videoRef.current)return;const newProgress=(rawProgress===1?.999:rawProgress)*videoRef.current.duration;const isAlreadySet=Math.abs(videoRef.current.currentTime-newProgress)<.1;if(videoRef.current.duration>0&&!isAlreadySet){videoRef.current.currentTime=newProgress;}},[]);const play=useCallback(()=>{const video=videoRef.current;if(!video)return;video.preload=\"auto\"// makes sure browsers don't throttle: https://html.spec.whatwg.org/multipage/media.html#:~:text=When%20the%20media%20resource%20is%20playing%2C%20hints%20to%20the%20user%20agent%20that%20bandwidth%20is%20to%20be%20considered%20scarce%2C%20e.g.%20suggesting%20throttling%20the%20download%20so%20that%20the%20media%20data%20is%20obtained%20at%20the%20slowest%20possible%20rate%20that%20still%20maintains%20consistent%20playback.\n;const isPlaying=video.currentTime>0&&video.onplaying&&!video.paused&&!video.ended&&video.readyState>=video.HAVE_CURRENT_DATA;if(!isPlaying&&video&&!requestingPlay.current&&isInCurrentNavigationTarget){requestingPlay.current=true;isPlayingRef.current=true;video.play().catch(e=>{})// It's likely fine, swallow error\n.finally(()=>requestingPlay.current=false);}},[]);const pause=useCallback(()=>{if(!videoRef.current||requestingPlay.current)return;videoRef.current.pause();isPlayingRef.current=false;},[]);return{play,pause,setProgress,isPlaying:isPlayingRef};}function useAutoplayBehavior({playingProp,muted,loop,playsinline,controls}){const[initialPlayingProp]=useState(playingProp);const[hasPlayingPropChanged,setHasPlayingPropChanged]=useState(false);if(playingProp!==initialPlayingProp&&!hasPlayingPropChanged){setHasPlayingPropChanged(true);}const behavesAsGif=// passing `playing === true` on mount indicates that the video should\n// autoplay, like a GIF\ninitialPlayingProp&&muted&&loop&&playsinline&&!controls&&// Some users of the <Video> component use it by wrapping it with\n// another smart component and adding their own controls on top. (The\n// controls use transitions to control the video: e.g., when clicking\n// the play button, the smart component will transition to a state with\n// <Video playing={true} />.) In this case, we don't want the video to\n// behave as a gif, as it will be weird if the video suddenly started\n// acting as such (and auto-pausing when leaving the viewport) as soon\n// as the site visitor mutes it and clicks “Play”.\n!hasPlayingPropChanged;let autoplay;if(behavesAsGif)autoplay=\"on-viewport\";else if(initialPlayingProp)autoplay=\"on-mount\";else autoplay=\"no-autoplay\";return autoplay;}const VideoMemo=/*#__PURE__*/memo(function VideoInner(props){const{// default props\nsrcType=\"URL\",srcUrl,srcFile=\"\",posterEnabled=false,controls=false,playing=true,loop=true,muted=true,playsinline=true,restartOnEnter=false,objectFit=\"cover\",backgroundColor=\"rgba(0,0,0,0)\",radius=0,volume=25,startTime:startTimeProp=0,poster,playing:playingProp,progress,onSeeked,onPause,onPlay,onEnd,onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp}=props;const videoRef=useRef();const isSafari=useIsBrowserSafari();const wasPausedOnLeave=useRef(null);const wasEndedOnLeave=useRef(null);const isOnCanvas=useIsOnCanvas();const renderTarget=useRenderTarget();const isStaticRenderer=isOnCanvas||renderTarget===RenderTarget.export;const borderRadius=useRadius(props);// Hard-coding `autoplayBehavior` and `isInViewport` when on canvas as a\n// tiny perf optimization. isStaticRenderer won’t change through the lifecycle of\n// the component, so using these hooks conditionally should be safe\nconst autoplayBehavior=isStaticRenderer?\"no-autoplay\":useAutoplayBehavior({playingProp,muted,loop,playsinline,controls});const isInViewport=isStaticRenderer?true:useInView(videoRef);const isCloseToViewport=isStaticRenderer?false:useInView(videoRef,{margin:\"10%\",once:true});// Video elements behave oddly at 100% duration\nconst startTime=startTimeProp===100?99.9:startTimeProp;const{play,pause,setProgress,isPlaying}=usePlaybackControls(videoRef);// Pause/play via props\nuseEffect(()=>{if(isStaticRenderer)return;if(autoplayBehavior===\"on-viewport\")return;if(playingProp)play();else pause();},[autoplayBehavior,playingProp]);// Pause/play via viewport\nuseEffect(()=>{if(isStaticRenderer)return;// this also explicitly retries playing for videos that play on-mount, which could fail if they're not muted for example\nif(isInViewport&&playingProp&&autoplayBehavior!==\"no-autoplay\")play();if(autoplayBehavior!==\"on-viewport\")return;pause();},[autoplayBehavior,isInViewport,playingProp]);useEffect(()=>{if(!isOnCanvas||poster||posterEnabled||startTime||!videoRef.current)return;// forces a poster to show up when the video is in an iframe; this is needed when `poster` changes\nvideoRef.current.currentTime=.01;},[posterEnabled,poster,startTime]);/**\n     * The Video component has some effects that sync the video element with props\n     * like `startTime`, `progress`, etc. React calls these effects whenever these\n     * props change. However, it also calls them on the first mount, and this is\n     * troublesome – if we’re doing SSR, and the user changed the video state before\n     * the video was hydrated, the initial `useEffect` call will reset the video\n     * state. To avoid this, we use this flag.\n     */const isMountedAndReadyForProgressChanges=useRef(false);// Allow scrubbling via progress prop\n// 1) Handle cases when the progress prop itself changes\nuseEffect(()=>{if(!isMountedAndReadyForProgressChanges.current){isMountedAndReadyForProgressChanges.current=true;return;}const rawProgressValue=isMotionValue(progress)?progress.get():(progress??0)*.01;setProgress(// When the progress value exists (e.g. <Video startTime={10}\n// progress={50} />), we respect the `progress` value over\n// `startTime`, even if `startTime` changes. That’s because\n// `startTime` == start == changing it shouldn’t affect the current\n// progress\n(rawProgressValue??0)||// Then why fall back to `startTime` when `progress` doesn’t exist,\n// you might ask? Now, that’s for\n// - canvas UX: we want the video progress to change when the user\n//   is scrobbling the “Start Time” in component settings.\n// - backwards compatibility: maybe some users *are* scrobbling\n//   using `startTime` instead of `progress`? We don’t know, and it\n//   always supported it, so let’s not break it\n(startTime??0)/100);},[startTime,srcFile,srcUrl,progress]);// 2) Handle cases when the motion value inside the progress prop changes\nuseEffect(()=>{if(!isMotionValue(progress))return;return progress.on(\"change\",value=>setProgress(value));},[progress]);// (Prototyping) Checking if we need to play on navigation enter\nuseOnEnter(()=>{if(wasPausedOnLeave.current===null)return;if(videoRef.current){// if (restartOnEnter) setProgress(0)\nif(!wasEndedOnLeave&&loop||!wasPausedOnLeave.current)play();}});// (Prototyping) Pausing & saving playing state on navigation exit\nuseOnExit(()=>{if(videoRef.current){wasEndedOnLeave.current=videoRef.current.ended;wasPausedOnLeave.current=videoRef.current.paused;pause();}});const src=useMemo(()=>{let fragment=\"\";// if (\n//     startTime > 0 &&\n//     videoRef.current &&\n//     !isNaN(videoRef.current.duration) &&\n//     !isStaticRenderer\n// ) {\n//     console.log(startTime, videoRef.current.duration)\n//     fragment = `#t=${startTime * videoRef.current.duration}`\n// }\nif(srcType===\"URL\")return srcUrl+fragment;if(srcType===\"Upload\")return srcFile+fragment;},[srcType,srcFile,srcUrl,startTime]);// Autoplay via JS to work in Safari\nuseEffect(()=>{if(isSafari&&videoRef.current&&autoplayBehavior===\"on-mount\"){setTimeout(()=>play(),50);}},[]);// Volume Control\nuseEffect(()=>{if(videoRef.current&&!muted)videoRef.current.volume=(volume??0)/100;},[volume]);// When video is ready, set start-time, then autoplay if needed\nconst handleReady=()=>{const video=videoRef.current;if(!video)return;if(video.currentTime<.3&&startTime>0)setProgress((startTime??0)*.01);if(// when the component updates (e.g. only srcFile/url changes), and the video was already playing, keep playing\nisPlaying.current||autoplayBehavior===\"on-mount\"||playingProp&&autoplayBehavior===\"on-viewport\"&&isInViewport)play();};return /*#__PURE__*/_jsx(\"video\",{onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp,src:src,loop:loop,ref:videoRef,onSeeked:e=>onSeeked?.(e),onPause:e=>onPause?.(e),onPlay:e=>onPlay?.(e),onEnded:e=>onEnd?.(e),autoPlay:isPlaying.current||autoplayBehavior===\"on-mount\"||playingProp&&autoplayBehavior===\"on-viewport\"&&isInViewport,preload:isPlaying.current?\"auto\":isStaticRenderer&&!poster?\"metadata\":autoplayBehavior!==\"on-mount\"&&!isCloseToViewport?\"none\":// `autoplay` overrides this too\n\"metadata\",poster:posterEnabled&&!srcFile&&srcUrl===defaultVideo?\"https://framerusercontent.com/images/5ILRvlYXf72kHSVHqpa3snGzjU.jpg\":posterEnabled&&poster?poster:undefined,onLoadedData:handleReady,controls:controls,muted:isStaticRenderer?true:muted,playsInline:playsinline,style:{cursor:!!onClick?\"pointer\":\"auto\",width:\"100%\",height:\"100%\",borderRadius,display:\"block\",objectFit:objectFit,backgroundColor:backgroundColor,objectPosition:\"50% 50%\"}});});Video.displayName=\"Video\";function capitalizeFirstLetter(value){return value.charAt(0).toUpperCase()+value.slice(1);}export function titleCase(value){const groups=value.match(/[A-Z]{2,}|[A-Z][a-z]+|[a-z]+|[A-Z]|\\d+/gu)||[];return groups.map(capitalizeFirstLetter).join(\" \");}const objectFitOptions=[\"cover\",\"fill\",\"contain\",\"scale-down\",\"none\"];addPropertyControls(Video,{srcType:{type:ControlType.Enum,displaySegmentedControl:true,title:\"Source\",options:[\"URL\",\"Upload\"]},srcUrl:{type:ControlType.String,title:\"URL\",defaultValue:\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",hidden(props){return props.srcType===\"Upload\";}},srcFile:{type:ControlType.File,title:\"File\",allowedFileTypes:[\"mp4\",\"webm\"],hidden(props){return props.srcType===\"URL\";}},...borderRadiusControl,loop:{type:ControlType.Boolean,title:\"Loop\",enabledTitle:\"Yes\",disabledTitle:\"No\"},posterEnabled:{type:ControlType.Boolean,title:\"Poster\",enabledTitle:\"Yes\",disabledTitle:\"No\",hiddenWhenUnset:true,defaultValue:true},poster:{type:ControlType.Image,title:\"Image\",hidden:({posterEnabled})=>!posterEnabled,description:\"We recommend adding a poster. [Learn more](https://www.framer.com/help/articles/how-are-videos-optimized-in-framer/).\"},controls:{type:ControlType.Boolean,title:\"Controls\",enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:false,hiddenWhenUnset:true},muted:{type:ControlType.Boolean,title:\"Muted\",enabledTitle:\"Yes\",disabledTitle:\"No\",hiddenWhenUnset:true},objectFit:{type:ControlType.Enum,title:\"Fit\",options:objectFitOptions,optionTitles:objectFitOptions.map(titleCase),hiddenWhenUnset:true},playing:{type:ControlType.Boolean,title:\"Playing\",enabledTitle:\"Yes\",disabledTitle:\"No\",hiddenWhenUnset:true},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(0,0,0,0)\"},startTime:{title:\"Start Time\",type:ControlType.Number,min:0,max:100,step:.1,unit:\"%\",hiddenWhenUnset:true},// restartOnEnter: {\n//     type: ControlType.Boolean,\n//     title: \"On ReEnter\",\n//     enabledTitle: \"Restart\",\n//     disabledTitle: \"Resume\",\n// },\nvolume:{type:ControlType.Number,max:100,min:0,unit:\"%\",hidden:({muted})=>muted,defaultValue:25,hiddenWhenUnset:true},onEnd:{type:ControlType.EventHandler},onSeeked:{type:ControlType.EventHandler},onPause:{type:ControlType.EventHandler},onPlay:{type:ControlType.EventHandler},...defaultEvents});\nexport const __FramerMetadata__ = {\"exports\":{\"VideoProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"titleCase\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Video\":{\"type\":\"reactComponent\",\"name\":\"Video\",\"slots\":[],\"annotations\":{\"framerComponentPresetProps\":\"borderRadius, backgroundColor\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"112\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Video.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{Fragment,useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";const WRAP_NUDGE=.35;function parseVerticalPadding(padding){const values=padding.split(/\\s+/).map(token=>parseFloat(token)).filter(value=>!Number.isNaN(value));if(values.length===0)return{top:16,bottom:16};if(values.length===1)return{top:values[0],bottom:values[0]};if(values.length===2)return{top:values[0],bottom:values[0]};return{top:values[0],bottom:values[2]??values[0]};}const DEFAULT_AVATARS=[\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\"];/**\n * Card Stack Reveal\n *\n * A deck of profile cards that fans out into a list on hover.\n *\n * @framerIntrinsicWidth 420\n * @framerIntrinsicHeight 260\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function CardStack(props){const{cards,appearance,typography,depth,hover,autoplay,style}=props;const{cardBackground,shadow,cardRadius=\"10px\",padding=\"16px\",avatarSize,avatarRadius=\"8px\",avatarRatio=1,overlapPercent}=appearance;const{titleFont,titleColor,subtitleFont,subtitleColor}=typography;const{perspective,depthOffset,scaleFalloff,blurAmount,opacityFalloff}=depth;const{enabled:hoverEnabled,reveal=\"hover\",expandedGap,duration=.5,staggerDelay=.05}=hover;const durationMs=duration*1e3;const staggerDelayMs=staggerDelay*1e3;const revealOnHover=hoverEnabled&&reveal===\"hover\";const revealOnClick=hoverEnabled&&reveal===\"click\";const{enabled:autoPlay,interval:autoPlayInterval,speed:autoPlaySpeed=.5}=autoplay;const[hovered,setHovered]=useState(false);const[rotation,setRotation]=useState(0);const[wrap,setWrap]=useState(null);const[snapIndex,setSnapIndex]=useState(null);const[tabVisible,setTabVisible]=useState(typeof document===\"undefined\"?true:!document.hidden);const isStatic=useIsStaticRenderer();const rotationRef=useRef(rotation);const timeoutsRef=useRef([]);const rafRef=useRef([]);const count=cards.length;const{top:paddingTop,bottom:paddingBottom}=parseVerticalPadding(padding);const cardHeight=avatarSize+paddingTop+paddingBottom;const peek=Math.max(cardHeight*(1-overlapPercent/100),12);const autoPlaySpeedMs=Math.max(autoPlaySpeed*1e3,50);const collapsedHeight=(count-1)*peek+cardHeight;const expandedHeight=count*cardHeight+(count-1)*expandedGap;const containerHeight=hovered?expandedHeight:collapsedHeight;useEffect(()=>{rotationRef.current=rotation;},[rotation]);useEffect(()=>{if(typeof document===\"undefined\")return;const handleVisibilityChange=()=>setTabVisible(!document.hidden);document.addEventListener(\"visibilitychange\",handleVisibilityChange);return()=>document.removeEventListener(\"visibilitychange\",handleVisibilityChange);},[]);useEffect(()=>{if(isStatic||!autoPlay||hovered||!tabVisible||count<2)return;const id=window.setInterval(()=>{const current=rotationRef.current;const frontIndex=((count-1-current)%count+count)%count;// The departing card (fading out beyond the front) and the\n// arriving ghost (fading in just behind the back) both start\n// at the same moment. The ghost mounts invisible first so it\n// has a starting frame to transition from, then flips to its\n// real target on the next paint.\nsetWrap({index:frontIndex,entering:false});setRotation(value=>(value+1)%count);const raf1=window.requestAnimationFrame(()=>{const raf2=window.requestAnimationFrame(()=>{setWrap({index:frontIndex,entering:true});// Once the ghost has fully faded in, hand off to the\n// permanent element with an instant (0ms) snap to the\n// exact same spot, in the same commit the ghost is\n// removed — no transition plays, so there's nothing to\n// pop or flash.\nconst settleTimeout=window.setTimeout(()=>{setSnapIndex(frontIndex);setWrap(null);const raf3=window.requestAnimationFrame(()=>{const raf4=window.requestAnimationFrame(()=>{setSnapIndex(null);});rafRef.current.push(raf4);});rafRef.current.push(raf3);},autoPlaySpeedMs);timeoutsRef.current.push(settleTimeout);});rafRef.current.push(raf2);});rafRef.current.push(raf1);},Math.max(autoPlayInterval,.2)*1e3);return()=>{window.clearInterval(id);timeoutsRef.current.forEach(timeoutId=>window.clearTimeout(timeoutId));timeoutsRef.current=[];rafRef.current.forEach(rafId=>window.cancelAnimationFrame(rafId));rafRef.current=[];setWrap(null);setSnapIndex(null);};},[isStatic,autoPlay,autoPlayInterval,hovered,tabVisible,count,autoPlaySpeedMs]);const renderCard=(reactKey,cardIndex,card,vSlot,opacityOverride,transitionDurationMs,transitionDelayMs)=>{const frontDepth=count-1-vSlot;const top=hovered?vSlot*(cardHeight+expandedGap):vSlot*peek;const depthPx=hovered?0:-frontDepth*depthOffset;const scale=1-frontDepth*scaleFalloff;const blur=hovered?0:Math.max(frontDepth*blurAmount,0);const opacity=opacityOverride??(hovered?1:Math.max(.35,1-frontDepth*opacityFalloff));const zIndex=vSlot+1;return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",top:0,left:0,right:0,height:\"auto\",display:\"flex\",alignItems:\"center\",gap:16,boxSizing:\"border-box\",padding,background:cardBackground,borderRadius:cardRadius,boxShadow:shadow,zIndex,cursor:hoverEnabled?\"pointer\":undefined,transform:`translateY(${top}px) translateZ(${depthPx}px)`,scale,filter:`blur(${blur}px)`,opacity,transitionProperty:\"transform, filter, opacity, scale\",transitionDuration:`${transitionDurationMs}ms`,transitionTimingFunction:\"ease\",transitionDelay:`${transitionDelayMs}ms`,willChange:\"transform, filter, opacity, scale\"},children:[/*#__PURE__*/_jsx(\"img\",{src:card.image?.src??DEFAULT_AVATARS[cardIndex%DEFAULT_AVATARS.length],srcSet:card.image?.srcSet,alt:card.image?.alt??card.title,style:{width:avatarSize*avatarRatio,height:avatarSize,minWidth:avatarSize*avatarRatio,borderRadius:avatarRadius,objectFit:\"cover\",display:\"block\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:4,minWidth:0},children:[/*#__PURE__*/_jsx(\"span\",{style:{...titleFont,color:titleColor,whiteSpace:\"nowrap\",overflow:\"hidden\",textOverflow:\"ellipsis\"},children:card.title}),/*#__PURE__*/_jsx(\"span\",{style:{...subtitleFont,color:subtitleColor,whiteSpace:\"nowrap\",overflow:\"hidden\",textOverflow:\"ellipsis\"},children:card.subtitle})]})]},reactKey);};return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:containerHeight,perspective,transformStyle:\"preserve-3d\",transition:`height ${durationMs}ms ease`,cursor:hoverEnabled?\"pointer\":undefined,outlineOffset:4},role:\"button\",\"aria-expanded\":hoverEnabled?hovered:undefined,\"aria-label\":hovered?\"Collapse card list\":\"Expand card list\",tabIndex:hoverEnabled?0:undefined,onMouseEnter:()=>revealOnHover&&setHovered(true),onMouseLeave:()=>revealOnHover&&setHovered(false),onClick:()=>revealOnClick&&setHovered(value=>!value),onBlur:()=>revealOnHover&&setHovered(false),onKeyDown:event=>{if(!hoverEnabled)return;if(event.key===\"Enter\"||event.key===\" \"){event.preventDefault();setHovered(value=>!value);}},children:cards.map((card,index)=>{const slot=(index+rotation)%count;const isAutoPlayTick=!hovered&&wrap!==null;const isWrapping=isAutoPlayTick&&wrap.index===index;if(isWrapping&&wrap){// The departing card keeps animating on its existing\n// element (no remount), while a separate ghost fades in\n// just behind the back at the exact same time.\nconst enterVSlot=wrap.entering?0:-WRAP_NUDGE;return /*#__PURE__*/_jsxs(Fragment,{children:[renderCard(index,index,card,count-1+WRAP_NUDGE,0,autoPlaySpeedMs,0),renderCard(`${index}-ghost`,index,card,enterVSlot,wrap.entering?null:0,wrap.entering?autoPlaySpeedMs:0,0)]},index);}const isSnapping=index===snapIndex;const transitionDurationMs=isSnapping?0:isAutoPlayTick?autoPlaySpeedMs:durationMs;const transitionDelayMs=isSnapping||isAutoPlayTick?0:slot*staggerDelayMs;return /*#__PURE__*/_jsx(Fragment,{children:renderCard(index,index,card,slot,null,transitionDurationMs,transitionDelayMs)},index);})});}addPropertyControls(CardStack,{cards:{type:ControlType.Array,title:\"Cards\",control:{type:ControlType.Object,controls:{image:{type:ControlType.ResponsiveImage,title:\"Image\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Title\"},subtitle:{type:ControlType.String,title:\"Subtitle\",defaultValue:\"Subtitle\"}}},maxCount:8,defaultValue:[{title:\"Denny Davis\",subtitle:\"Chicago, IL\"},{title:\"Elira Eloise\",subtitle:\"Oakland, CA\"},{title:\"Fabio Franklin\",subtitle:\"Jacksonville, FL\"},{title:\"Gillian Gardner\",subtitle:\"New York City, NY\"}]},appearance:{type:ControlType.Object,title:\"Appearance\",icon:\"color\",controls:{cardBackground:{type:ControlType.Color,title:\"Fill\",defaultValue:\"#FFFFFF\"},shadow:{type:ControlType.BoxShadow,title:\"Shadow\",defaultValue:\"0px 2px 8px 0px rgba(0, 0, 0, 0.12)\"},cardRadius:{type:ControlType.BorderRadius,title:\"Radius\",defaultValue:\"10px\"},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"16px\"},avatarSize:{type:ControlType.Number,title:\"Avatar\",defaultValue:64,min:24,max:160},avatarRadius:{type:ControlType.BorderRadius,title:\"Radius\",defaultValue:\"8px\"},avatarRatio:{type:ControlType.Number,title:\"Ratio\",description:\"Width-to-height ratio of the avatar image.\",defaultValue:1,min:.2,max:3,step:.05},overlapPercent:{type:ControlType.Number,title:\"Overlap\",description:\"How much of each stacked card's height is hidden behind the one in front.\",defaultValue:40,min:0,max:90,unit:\"%\"}},defaultValue:{cardBackground:\"#FFFFFF\",shadow:\"0px 2px 8px 0px rgba(0, 0, 0, 0.12)\",cardRadius:\"10px\",padding:\"16px\",avatarSize:64,avatarRadius:\"8px\",avatarRatio:1,overlapPercent:40}},typography:{type:ControlType.Object,title:\"Typography\",controls:{titleFont:{type:ControlType.Font,title:\"Title\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.1em\"}},titleColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#111111\"},subtitleFont:{type:ControlType.Font,title:\"Subtitle\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},subtitleColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"rgba(0, 0, 0, 0.6)\"}},defaultValue:{titleFont:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.1em\"},titleColor:\"#111111\",subtitleFont:{fontSize:\"14px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"},subtitleColor:\"rgba(0, 0, 0, 0.6)\"}},depth:{type:ControlType.Object,title:\"Depth\",icon:\"effect\",controls:{perspective:{type:ControlType.Number,title:\"Perspective\",defaultValue:500,min:100,max:2e3},depthOffset:{type:ControlType.Number,title:\"Depth Offset\",description:\"How far back each card sits, in pixels per step.\",defaultValue:45,min:0,max:150},scaleFalloff:{type:ControlType.Number,title:\"Scale Falloff\",defaultValue:.02,min:0,max:.2,step:.005},blurAmount:{type:ControlType.Number,title:\"Blur Step\",defaultValue:1.5,min:0,max:10,step:.1,unit:\"px\"},opacityFalloff:{type:ControlType.Number,title:\"Opacity Step\",defaultValue:.12,min:0,max:.5,step:.01}},defaultValue:{perspective:500,depthOffset:45,scaleFalloff:.02,blurAmount:1.5,opacityFalloff:.12}},hover:{type:ControlType.Object,title:\"Expand\",icon:\"interaction\",controls:{enabled:{type:ControlType.Boolean,title:\"Expand\",defaultValue:true},reveal:{type:ControlType.Enum,title:\"Reveal\",description:\"Hover: opens on mouse-over, closes on mouse-out. Click: toggles open/closed on click, tap, or keyboard.\",options:[\"hover\",\"click\"],optionTitles:[\"Hover\",\"Click\"],defaultValue:\"hover\",displaySegmentedControl:true,hidden:props=>!props.enabled},expandedGap:{type:ControlType.Number,title:\"Gap\",defaultValue:10,min:0,max:80,hidden:props=>!props.enabled},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:.5,min:.1,max:1.5,step:.05,unit:\"s\",hidden:props=>!props.enabled},staggerDelay:{type:ControlType.Number,title:\"Stagger\",defaultValue:.05,min:0,max:.2,step:.01,unit:\"s\",hidden:props=>!props.enabled}},defaultValue:{enabled:true,reveal:\"hover\",expandedGap:10,duration:.5,staggerDelay:.05}},autoplay:{type:ControlType.Object,title:\"Auto Play\",icon:\"interaction\",controls:{enabled:{type:ControlType.Boolean,title:\"Auto Play\",description:\"Automatically cycles the stack, advancing one card at a time. Pauses while hovered.\",defaultValue:true},interval:{type:ControlType.Number,title:\"Interval\",defaultValue:3,min:.5,max:15,step:.5,unit:\"s\",hidden:props=>!props.enabled},speed:{type:ControlType.Number,title:\"Speed\",description:\"How long each card takes to advance forward and back.\",defaultValue:.5,min:.1,max:2,step:.05,unit:\"s\",hidden:props=>!props.enabled}},defaultValue:{enabled:true,interval:3,speed:.5}}});CardStack.displayName=\"Card Stack Reveal\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CardStack\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"260\",\"framerIntrinsicWidth\":\"420\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CardStackReveal.map"],"mappings":"A,waAKA,SAASqC,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,SAAO,UAAQ,WAAS,cAAY,aAAW,KAAG,WAAS,GAAGC,GAAMC,EAAM,OAAOD,CAAK,CAUxH,SAAgBE,EAAM,EAAM,CAAC,IAAMC,EAASJ,EAASE,CAAK,EAAE,MAAoB,gBAAKG,EAAU,CAAC,GAAGD,CAAQ,CAAC,CAAE,CAAC,SAASE,EAAoB,EAAS,CAAC,IAAMC,EAA4BjB,EAA+B,EAAQkB,EAAe7C,EAAO,EAAK,EAAQ8C,EAAa9C,EAAO,EAAK,EAAQ+C,EAAY9C,EAAY,GAAa,CAAC,GAAG,CAAC+C,EAAS,Q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