{"version":3,"file":"HorizontalScroll.BZIvjmUL.mjs","names":["React.useRef","React.useCallback","__esmMin","le","init_ssg_sandbox_shims","init_npm_react_18_3_1","ce","init_jsx_runtime","ne","de","window","init_framer_BL70qLPA","ControlType","addPropertyControls","clamp","max","min","value","softEdgeProgress","p","progress","e","edgeFraction","hermite","t","getPageTop","element","getElementWidth","safeFallback","fallback","isControllerNode","node","findStickyAncestor","findScrollSection","sticky","resolveTrack","controller","branches","child","controllerBranch","siblingCount","getTrackContentWidth","children","track","style","paddingLeft","paddingRight","farthestRight","maxRight","getMaxDistance","viewportWidth","contentWidth","clearTranslate","originalTransform","applyTranslate","x","getUniqueElements","elements","HorizontalScrollController","props","controllerRef","domRef","rafMeasureRef","rafScrollRef","timeoutRef","bootstrapTimeoutsRef","resizeObserverRef","mutationObserverRef","observedNodesRef","imageCleanupRef","originalInlineTransformRef","metricsRef","RESET_METRICS","authoredSectionHeightRef","lastAppliedXRef","measureRef","resetMetrics","cleanupImages","cleanup","setTrackRef","previousTrack","nextTrack","applyX","syncPosition","enabled","metrics","latest","range","edgeSoftnessPx","scheduleMeasure","refreshObservers","resizeObserver","mutationObserver","nodesToObserve","context","unchanged","index","imageRoot","img","onImageSettled","controllerLayer","section","previousSection","stickyStyle","stickyTop","topOffset","stickyHeight","safeScrollFactor","scrollFactor","maxDistance","storedHeight","AUTHORED_HEIGHT_DATASET_KEY","authoredHeight","requiredSectionHeight","startOffset","endOffset","autoSectionHeight","nextHeight","currentHeight","sectionHeight","availableScrollRange","effectiveMaxDistance","start","end","onScroll","onResize","onLoad","onPageShow","onVisibilityChange","delay","id","init_HorizontalScroll"],"sources":["https:/framerusercontent.com/modules/4AI8FL9q4E6O2cfJhztd/fBHxWucGPtcShfkw6VMG/HorizontalScroll.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Stored on the Framer section so Auto Height can extend the section without\n// losing the original authored height as the baseline.\nconst AUTHORED_HEIGHT_DATASET_KEY=\"hscAuthoredHeight\";const RESET_METRICS={start:0,end:1,maxDistance:0,ready:false};function clamp(value,min,max){return Math.min(max,Math.max(min,value));}function softEdgeProgress(progress,edgeFraction){// Optional easing at the first and last part of the scroll range. The middle\n// stays linear so the cards keep a predictable scroll speed.\nconst p=clamp(progress,0,1);const e=clamp(edgeFraction,0,.49);if(e===0)return p;const hermite=t=>-t*t*t+2*t*t;if(p<e){const t=p/e;return e*hermite(t);}if(p>1-e){const t=(1-p)/e;return 1-e*hermite(t);}return p;}function getPageTop(element){return window.scrollY+element.getBoundingClientRect().top;}function getElementWidth(element,fallback){const safeFallback=fallback??(typeof window!==\"undefined\"?window.innerWidth:1);if(!element)return Math.max(1,safeFallback||1);return Math.max(1,Math.ceil(element.getBoundingClientRect().width||element.clientWidth||element.offsetWidth||safeFallback));}function isControllerNode(node){// Framer wraps code components in extra layers. Marking both the controller\n// and its wrapper lets measurement ignore them as non-content nodes.\nreturn node instanceof HTMLElement&&node.dataset.hscController===\"true\";}function findStickyAncestor(element){// The sticky ancestor defines the visible viewport for the horizontal track.\nlet node=element?.parentElement??null;while(node){if(window.getComputedStyle(node).position===\"sticky\"){return node;}node=node.parentElement;}return null;}function findScrollSection(sticky){// The parent of the sticky layer is the vertical scroll section whose height\n// controls how long the horizontal animation can run.\nreturn sticky?.parentElement??null;}function resolveTrack(controller){// Walk upward from the hidden controller until we find the first parent that\n// contains both the controller branch and at least one real content sibling.\n// That parent is the shared Canvas/Stack that should move horizontally.\nlet node=controller?.parentElement??null;while(node){const branches=Array.from(node.children).filter(child=>child instanceof HTMLElement);const controllerBranch=branches.find(child=>{return child===controller||child.contains(controller);});const siblingCount=branches.filter(child=>{if(child===controllerBranch)return false;return!isControllerNode(child);}).length;if(controllerBranch&&siblingCount>0){return node;}node=node.parentElement;}return controller?.parentElement??null;}function getTrackContentWidth(track){// Framer layers can report a scrollWidth that misses absolutely positioned\n// or padded child content, so calculate the farthest child edge as a backup.\nconst children=Array.from(track.children).filter(node=>node instanceof HTMLElement&&!isControllerNode(node));const fallback=Math.ceil(track.scrollWidth||track.offsetWidth||0);if(children.length===0){return fallback;}const style=window.getComputedStyle(track);const paddingLeft=parseFloat(style.paddingLeft||\"0\")||0;const paddingRight=parseFloat(style.paddingRight||\"0\")||0;const farthestRight=children.reduce((maxRight,child)=>{return Math.max(maxRight,child.offsetLeft+child.offsetWidth);},0);return Math.max(fallback,Math.ceil(paddingLeft+farthestRight+paddingRight));}function getMaxDistance(track,sticky){// Horizontal travel is the content width minus the visible track viewport.\n// A value of 0 means there is nothing to scroll horizontally.\nconst viewportWidth=Math.max(1,Math.ceil(track.getBoundingClientRect().width||track.clientWidth||track.offsetWidth||getElementWidth(sticky||track.parentElement||track)));const contentWidth=getTrackContentWidth(track);return Math.max(0,contentWidth-viewportWidth);}function clearTranslate(track,originalTransform){// Restore the track when the component unmounts or points at a new track so\n// Framer is not left with an inline transform from this controller.\nif(!track)return;const style=track.style;if(\"translate\"in style){style.translate=\"\";}else{track.style.transform=originalTransform;}track.style.removeProperty(\"will-change\");}function applyTranslate(track,x,originalTransform){// Prefer CSS translate because it composes cleanly with existing transforms.\n// Fall back to transform for browsers that do not expose style.translate.\nconst style=track.style;if(\"translate\"in style){style.translate=`${x}px 0px`;}else{track.style.transform=`translate3d(${x}px, 0, 0)${originalTransform?` ${originalTransform}`:\"\"}`;}track.style.willChange=\"transform\";}function getUniqueElements(elements){return Array.from(new Set(elements.filter(Boolean)));}/**\n * Place this component inside the same Canvas/Stack as your horizontal cards.\n *\n * Recommended Framer structure:\n *\n * Section\n * └── Sticky\n *     └── Canvas / Stack\n *         ├── HorizontalScrollController\n *         ├── Your content\n *         ├── Your content\n *         └── Your content\n *\n * The component moves the shared Canvas / Stack as one track.\n *//**\n * @framerDisableUnlink\n */export function HorizontalScrollController(props){const{enabled,autoSectionHeight,scrollFactor,topOffset,startOffset,endOffset,edgeSoftnessPx}=props;const controllerRef=React.useRef(null);// Cached DOM references from the last measurement. Keeping them in refs\n// avoids React state updates during scroll, which keeps the effect cheap.\nconst domRef=React.useRef({controller:null,controllerLayer:null,track:null,sticky:null,section:null});const rafMeasureRef=React.useRef(null);const rafScrollRef=React.useRef(null);const timeoutRef=React.useRef(null);const bootstrapTimeoutsRef=React.useRef([]);const resizeObserverRef=React.useRef(null);const mutationObserverRef=React.useRef(null);const observedNodesRef=React.useRef([]);const imageCleanupRef=React.useRef([]);// Preserve any inline transform Framer or the designer already put on the\n// track so our horizontal movement can be removed without damaging it.\nconst originalInlineTransformRef=React.useRef(\"\");const metricsRef=React.useRef(RESET_METRICS);const authoredSectionHeightRef=React.useRef(null);const lastAppliedXRef=React.useRef(null);// Observers and event listeners call this mutable function so they always\n// run the newest measurement logic without being recreated on every render.\nconst measureRef=React.useRef(()=>undefined);const resetMetrics=React.useCallback(()=>{metricsRef.current=RESET_METRICS;},[]);const cleanupImages=React.useCallback(()=>{imageCleanupRef.current.forEach(cleanup=>cleanup());imageCleanupRef.current=[];},[]);const setTrackRef=React.useCallback(nextTrack=>{// If Framer re-parents the component or the track changes, clear the old\n// track before measuring/applying transforms on the new one.\nconst previousTrack=domRef.current.track;if(previousTrack===nextTrack)return;clearTranslate(previousTrack,originalInlineTransformRef.current);domRef.current.track=nextTrack;lastAppliedXRef.current=null;originalInlineTransformRef.current=nextTrack?.style.transform||\"\";},[]);const applyX=React.useCallback(x=>{// Avoid writing the same transform repeatedly on every scroll event.\nconst track=domRef.current.track;if(!track)return;if(lastAppliedXRef.current!=null&&Math.abs(lastAppliedXRef.current-x)<.1){return;}applyTranslate(track,x,originalInlineTransformRef.current);lastAppliedXRef.current=x;},[]);const syncPosition=React.useCallback(()=>{// Convert the current vertical scrollY into horizontal movement.\n// Measurement decides the scroll range; this function only applies it.\nif(typeof window===\"undefined\")return;if(!enabled){applyX(0);return;}const metrics=metricsRef.current;if(!metrics.ready){applyX(0);return;}const latest=window.scrollY;const range=Math.max(1,metrics.end-metrics.start);const rawProgress=(latest-metrics.start)/range;const edgeFraction=edgeSoftnessPx>0?Math.min(.49,edgeSoftnessPx/range):0;const progress=softEdgeProgress(rawProgress,edgeFraction);applyX(-metrics.maxDistance*progress);},[applyX,edgeSoftnessPx,enabled]);const scheduleMeasure=React.useCallback(()=>{// Coalesce layout reads after Framer/image/font changes. The timeout is\n// a second pass for late layout updates that miss the first animation frame.\nif(typeof window===\"undefined\")return;if(rafMeasureRef.current!=null){cancelAnimationFrame(rafMeasureRef.current);}if(timeoutRef.current!=null){window.clearTimeout(timeoutRef.current);}rafMeasureRef.current=requestAnimationFrame(()=>{measureRef.current();});timeoutRef.current=window.setTimeout(()=>{measureRef.current();},140);},[]);const refreshObservers=React.useCallback(context=>{// Watch only the current moving parts. If Framer changes layer size,\n// child count, attributes, or image loading state, re-measure.\nconst resizeObserver=resizeObserverRef.current||new ResizeObserver(()=>{scheduleMeasure();});const mutationObserver=mutationObserverRef.current||new MutationObserver(()=>{scheduleMeasure();});resizeObserverRef.current=resizeObserver;mutationObserverRef.current=mutationObserver;const nodesToObserve=getUniqueElements([context.controllerLayer,context.track,context.sticky,context.section]);const unchanged=observedNodesRef.current.length===nodesToObserve.length&&observedNodesRef.current.every((node,index)=>{return node===nodesToObserve[index];});cleanupImages();if(!unchanged){// Reconnect observers only when the actual DOM targets changed.\nresizeObserver.disconnect();mutationObserver.disconnect();nodesToObserve.forEach(node=>resizeObserver.observe(node));if(context.track){mutationObserver.observe(context.track,{childList:true,subtree:true,attributes:true});}if(context.section&&context.section!==context.track){mutationObserver.observe(context.section,{childList:true,subtree:true,attributes:true});}}const imageRoot=context.section||context.track;if(imageRoot){// Images often report width/height after first render. Measuring\n// again after load keeps the horizontal distance accurate.\nimageRoot.querySelectorAll(\"img\").forEach(img=>{if(!(img instanceof HTMLImageElement)||img.complete)return;const onImageSettled=()=>scheduleMeasure();img.addEventListener(\"load\",onImageSettled);img.addEventListener(\"error\",onImageSettled);imageCleanupRef.current.push(()=>{img.removeEventListener(\"load\",onImageSettled);img.removeEventListener(\"error\",onImageSettled);});});}if(!unchanged){observedNodesRef.current=nodesToObserve;}},[cleanupImages,scheduleMeasure]);measureRef.current=()=>{// Main layout pass:\n// 1. find the Framer track/sticky/section around this hidden controller\n// 2. calculate content width and required vertical section height\n// 3. store scroll start/end metrics used by syncPosition()\nif(typeof window===\"undefined\")return;const controller=controllerRef.current;const controllerLayer=controller?.parentElement??null;const track=resolveTrack(controller);const sticky=findStickyAncestor(track);const section=findScrollSection(sticky);const previousSection=domRef.current.section;domRef.current.controller=controller;domRef.current.controllerLayer=controllerLayer;setTrackRef(track);domRef.current.sticky=sticky;domRef.current.section=section;if(section!==previousSection){// A new section means a new authored height baseline.\nauthoredSectionHeightRef.current=null;}// Mark the hidden controller and its Framer wrapper so they are excluded\n// from content width calculations.\nif(controller)controller.dataset.hscController=\"true\";if(controllerLayer)controllerLayer.dataset.hscController=\"true\";if(!track||!sticky||!section){// The component is not in the expected Framer structure yet.\nresetMetrics();applyX(0);refreshObservers(domRef.current);return;}refreshObservers(domRef.current);const stickyStyle=window.getComputedStyle(sticky);const stickyTop=parseFloat(stickyStyle.top||\"0\")||topOffset;const stickyHeight=Math.max(1,Math.round(sticky.getBoundingClientRect().height||sticky.offsetHeight||0));const safeScrollFactor=Math.max(scrollFactor,.01);const maxDistance=getMaxDistance(track,sticky);if(authoredSectionHeightRef.current==null){// Capture the original section height once, then grow from there.\nconst storedHeight=Number(section.dataset[AUTHORED_HEIGHT_DATASET_KEY]);const authoredHeight=Number.isFinite(storedHeight)&&storedHeight>0?storedHeight:Math.round(section.offsetHeight);authoredSectionHeightRef.current=authoredHeight;section.dataset[AUTHORED_HEIGHT_DATASET_KEY]=String(authoredHeight);}const requiredSectionHeight=Math.ceil(stickyHeight+startOffset+endOffset+maxDistance*safeScrollFactor);if(autoSectionHeight&&requiredSectionHeight>0){// Auto Height makes the vertical section long enough for the full\n// horizontal travel while respecting the designer's original height.\nconst authoredHeight=authoredSectionHeightRef.current||0;const nextHeight=Math.max(authoredHeight,requiredSectionHeight);const currentHeight=Math.round(section.offsetHeight);if(Math.abs(currentHeight-nextHeight)>1){section.style.height=`${nextHeight}px`;}}const sectionHeight=Math.max(Math.round(section.offsetHeight),autoSectionHeight?requiredSectionHeight:0);const availableScrollRange=Math.max(0,sectionHeight-stickyHeight-startOffset-endOffset);// Do not translate farther than the section's available vertical scroll\n// can represent. This prevents overshooting in short sections.\nconst effectiveMaxDistance=Math.min(maxDistance,availableScrollRange/safeScrollFactor);const sectionTop=getPageTop(section);const start=sectionTop-stickyTop+startOffset;const end=start+effectiveMaxDistance*safeScrollFactor;const ready=enabled&&stickyHeight>0&&effectiveMaxDistance>0&&end>start;if(!ready){// No horizontal overflow or invalid layout, so keep the track reset.\nresetMetrics();applyX(0);return;}metricsRef.current={start,end,maxDistance:effectiveMaxDistance,ready:true};syncPosition();};React.useLayoutEffect(()=>{// Measure before paint when possible so the initial position is correct.\nmeasureRef.current();scheduleMeasure();},[scheduleMeasure]);React.useEffect(()=>{if(typeof window===\"undefined\")return;const onScroll=()=>{// Scroll can fire very often; limit DOM writes to one per frame.\nif(rafScrollRef.current!=null)return;rafScrollRef.current=requestAnimationFrame(()=>{rafScrollRef.current=null;syncPosition();});};const onResize=()=>scheduleMeasure();const onLoad=()=>scheduleMeasure();const onPageShow=()=>scheduleMeasure();const onVisibilityChange=()=>{if(!document.hidden)scheduleMeasure();};window.addEventListener(\"scroll\",onScroll,{passive:true});window.addEventListener(\"resize\",onResize);window.addEventListener(\"load\",onLoad);window.addEventListener(\"pageshow\",onPageShow);window.addEventListener(\"orientationchange\",onResize);document.addEventListener(\"visibilitychange\",onVisibilityChange);window.visualViewport?.addEventListener(\"resize\",onResize);if(document.fonts?.ready){// Web fonts can change card widths after initial layout.\ndocument.fonts.ready.then(()=>{scheduleMeasure();});}bootstrapTimeoutsRef.current=[40,120,240,500,900,1400].map(// Framer can finish layer/layout work over several ticks. These\n// bootstrap passes make initial sizing more reliable in preview/live.\ndelay=>window.setTimeout(()=>{scheduleMeasure();},delay));scheduleMeasure();syncPosition();return()=>{// Remove scheduled work, observers, listeners, image callbacks, and\n// inline movement so the project returns to its authored state.\nif(rafMeasureRef.current!=null){cancelAnimationFrame(rafMeasureRef.current);}if(rafScrollRef.current!=null){cancelAnimationFrame(rafScrollRef.current);}if(timeoutRef.current!=null){window.clearTimeout(timeoutRef.current);}bootstrapTimeoutsRef.current.forEach(id=>window.clearTimeout(id));bootstrapTimeoutsRef.current=[];window.removeEventListener(\"scroll\",onScroll);window.removeEventListener(\"resize\",onResize);window.removeEventListener(\"load\",onLoad);window.removeEventListener(\"pageshow\",onPageShow);window.removeEventListener(\"orientationchange\",onResize);document.removeEventListener(\"visibilitychange\",onVisibilityChange);window.visualViewport?.removeEventListener(\"resize\",onResize);resizeObserverRef.current?.disconnect();mutationObserverRef.current?.disconnect();observedNodesRef.current=[];cleanupImages();clearTranslate(domRef.current.track,originalInlineTransformRef.current);};},[cleanupImages,scheduleMeasure,syncPosition]);return /*#__PURE__*/_jsx(\"div\",{ref:controllerRef,\"data-hsc-controller\":\"true\",style:{// Invisible anchor only. The surrounding Framer Canvas/Stack is\n// the element that moves; this div should never affect layout.\nwidth:0,height:0,minWidth:0,minHeight:0,flex:\"0 0 auto\",overflow:\"hidden\",pointerEvents:\"none\",opacity:0,outline:\"none\"}});}HorizontalScrollController.defaultProps={enabled:true,showAdvanced:false,autoSectionHeight:true,scrollFactor:2,topOffset:0,startOffset:0,endOffset:0,edgeSoftnessPx:200};HorizontalScrollController.displayName=\"Horizontal Scroll\";addPropertyControls(HorizontalScrollController,{enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:true},showAdvanced:{type:ControlType.Boolean,title:\"Advanced\",defaultValue:false},autoSectionHeight:{type:ControlType.Boolean,title:\"Auto Height\",defaultValue:true,description:\"Auto-extends the section height.\",hidden:props=>!props.showAdvanced},topOffset:{type:ControlType.Number,title:\"Top (px)\",min:0,max:300,step:1,defaultValue:0,description:\"Sticky top offset in pixels.\",hidden:props=>!props.showAdvanced},startOffset:{type:ControlType.Number,title:\"Start (px)\",min:-400,max:400,step:1,defaultValue:0,description:\"Start offset in pixels. Positive = later.\",hidden:props=>!props.showAdvanced},endOffset:{type:ControlType.Number,title:\"End (px)\",min:-400,max:400,step:1,defaultValue:0,description:\"End offset in pixels. Positive = earlier.\",hidden:props=>!props.showAdvanced},edgeSoftnessPx:{type:ControlType.Number,title:\"Edge (px)\",min:0,max:400,step:10,defaultValue:200,description:\"Softens the start and end in pixels.\",hidden:props=>!props.showAdvanced},scrollFactor:{type:ControlType.Number,title:\"Speed\",min:1.5,max:4,step:.25,defaultValue:2,description:\"Higher = slower and longer. Lower = faster and shorter. Component by [BENNI TRAN](https://www.bennitran.com/)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"HorizontalScrollController\":{\"type\":\"reactComponent\",\"name\":\"HorizontalScrollController\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HorizontalScroll.map"],"mappings":"A,wMAEoH,SAASc,EAAM,EAAM,EAAI,EAAI,CAAC,OAAO,KAAK,IAAIC,EAAI,KAAK,IAAIC,EAAIC,CAAK,CAAC,CAAE,CAAC,SAASC,EAAiB,EAAS,EAAa,CAE5O,IAAMC,EAAEL,EAAMM,EAAS,EAAE,CAAC,EAAQC,EAAEP,EAAMQ,EAAa,EAAE,GAAG,EAAE,GAAGD,IAAI,EAAE,OAAOF,EAAE,IAAMI,EAAQ,GAAG,CAACC,EAAEA,EAAEA,EAAE,EAAEA,EAAEA,EAA4F,OAAvFL,EAAEE,EAAsBA,EAAEE,EAAbJ,EAAEE,CAAoB,EAAMF,EAAE,EAAEE,EAA0B,EAAEA,EAAEE,GAAlB,EAAEJ,GAAGE,CAAsB,EAAUF,CAAE,CAAC,SAASM,EAAW,EAAQ,CAAC,OAAOf,EAAO,QAAQgB,EAAQ,sBAAsB,CAAC,CAAC,GAAI,CA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