{"version":3,"file":"HorizontalScroll.CMiBtMsg.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","SVG","useRef","useCallback"],"sources":["https:/framerusercontent.com/modules/BC0EULsQS2tQ8FNMhaHR/8CdR7DrYRboOP9eYA6pD/NGELQdOZT.js","https:/framerusercontent.com/modules/kW1P39OGobTTyXvSWCt8/DYHbpcRM9jO4jySlmpoZ/HorizontalScroll.js"],"sourcesContent":["// Generated by Framer (27b79d7)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,cx,SVG,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const serializationHash=\"framer-ZfdCO\";const variantClassNames={xduLIVfg2:\"framer-v-ht0ipf\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"xduLIVfg2\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-ht0ipf\",className,classNames),\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"xduLIVfg2\",ref:refBinding,style:{backgroundColor:\"var(--token-7f34d47a-36ea-4650-adc5-20ff51f18681, rgb(26, 26, 26))\",borderBottomLeftRadius:1e4,borderBottomRightRadius:1e4,borderTopLeftRadius:1e4,borderTopRightRadius:1e4,...style},children:/*#__PURE__*/_jsxs(motion.div,{className:\"framer-1g1b1h2\",layoutDependency:layoutDependency,layoutId:\"MIsi96yGG\",children:[/*#__PURE__*/_jsx(SVG,{className:\"framer-9x0poc\",layoutDependency:layoutDependency,layoutId:\"mPqPQYNDq\",requiresOverflowVisible:true,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 45 1\" overflow=\"visible\"><path d=\"M 0 0 L 45 0\" fill=\"transparent\" stroke-width=\"1.6\" stroke=\"rgb(255, 255, 255)\"></path></svg>',withExternalLayout:true}),/*#__PURE__*/_jsx(SVG,{className:\"framer-1wezs2d\",layoutDependency:layoutDependency,layoutId:\"MUYlgfTT5\",requiresOverflowVisible:true,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 7.452 15\" overflow=\"visible\"><path d=\"M 0 15 L 7.452 7.5 L 0 0\" fill=\"transparent\" stroke-width=\"1.6\" stroke=\"rgb(255, 255, 255)\"></path></svg>',withExternalLayout:true}),/*#__PURE__*/_jsx(SVG,{className:\"framer-10n9ied\",layoutDependency:layoutDependency,layoutId:\"cpguDK8h8\",requiresOverflowVisible:true,style:{rotate:-180},svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 7.452 15\" overflow=\"visible\"><path d=\"M 0 15 L 7.452 7.5 L 0 0\" fill=\"transparent\" stroke-width=\"1.6\" stroke=\"rgb(255, 255, 255)\"></path></svg>',withExternalLayout:true})]})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-ZfdCO.framer-1fqv689, .framer-ZfdCO .framer-1fqv689 { display: block; }\",\".framer-ZfdCO.framer-ht0ipf { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 8px 16px 8px 16px; position: relative; width: min-content; will-change: var(--framer-will-change-override, transform); }\",\".framer-ZfdCO .framer-1g1b1h2 { flex: none; height: 22px; overflow: visible; position: relative; width: 48px; }\",\".framer-ZfdCO .framer-9x0poc { height: 1px; left: 2px; position: absolute; top: 11px; width: 45px; }\",\".framer-ZfdCO .framer-1wezs2d { height: 15px; left: 40px; position: absolute; top: 4px; width: 8px; }\",\".framer-ZfdCO .framer-10n9ied { height: 15px; left: 2px; position: absolute; top: 4px; width: 8px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 38\n * @framerIntrinsicWidth 80\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerNGELQdOZT=withCSS(Component,css,\"framer-ZfdCO\");export default FramerNGELQdOZT;FramerNGELQdOZT.displayName=\"DRAG-INDICATOR\";FramerNGELQdOZT.defaultProps={height:38,width:80};addFonts(FramerNGELQdOZT,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerNGELQdOZT\",\"slots\":[],\"annotations\":{\"framerComponentViewportWidth\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerAutoSizeImages\":\"true\",\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"38\",\"framerColorSyntax\":\"true\",\"framerIntrinsicWidth\":\"80\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NGELQdOZT.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useRef,useCallback}from\"react\";export function withHorizontalDragScroll(Component){return function HorizontalDragScrollWrapper(props){const ref=useRef(null);const state=useRef({isDown:false,isDragging:false,pointerId:-1,startX:0,startY:0,scrollLeft:0,velocityX:0,lastX:0,lastTime:0,rafId:0});const onPointerDown=useCallback(e=>{const el=ref.current;if(!el)return;if(e.button!==0&&e.pointerType===\"mouse\")return;cancelAnimationFrame(state.current.rafId);const s=state.current;s.isDown=true;s.isDragging=false;s.pointerId=e.pointerId;s.startX=e.clientX;s.startY=e.clientY;s.scrollLeft=el.scrollLeft;s.velocityX=0;s.lastX=e.clientX;s.lastTime=Date.now();// Intentionally NOT capturing here — that's what stole the click.\n},[]);const onPointerMove=useCallback(e=>{const el=ref.current;if(!el||!state.current.isDown)return;const s=state.current;const dx=e.clientX-s.startX;const dy=e.clientY-s.startY;if(!s.isDragging&&Math.abs(dx)>8&&Math.abs(dx)>Math.abs(dy)){s.isDragging=true;try{el.setPointerCapture(s.pointerId);}catch(err){}el.style.cursor=\"grabbing\";}if(!s.isDragging)return;const now=Date.now();const dt=now-s.lastTime;if(dt>0)s.velocityX=(e.clientX-s.lastX)/dt;s.lastX=e.clientX;s.lastTime=now;el.scrollLeft=s.scrollLeft-dx;},[]);const endInteraction=useCallback(()=>{const el=ref.current;if(!el)return;const s=state.current;const wasDragging=s.isDragging;s.isDown=false;s.isDragging=false;el.style.cursor=\"grab\";if(s.pointerId!==-1){try{el.releasePointerCapture(s.pointerId);}catch(err){}s.pointerId=-1;}if(!wasDragging)return;let velocity=s.velocityX*16;const decay=.92;const momentum=()=>{if(!el||Math.abs(velocity)<.5)return;el.scrollLeft-=velocity;velocity*=decay;s.rafId=requestAnimationFrame(momentum);};momentum();},[]);return /*#__PURE__*/_jsxs(\"div\",{ref:ref,onPointerDown:onPointerDown,onPointerMove:onPointerMove,onPointerUp:endInteraction,onPointerCancel:endInteraction,style:{width:\"100%\",height:\"100%\",overflowX:\"auto\",overflowY:\"hidden\",cursor:\"grab\",scrollbarWidth:\"none\",WebkitOverflowScrolling:\"touch\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`.framer-drag-scroll::-webkit-scrollbar { display: none }`}),/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,minWidth:\"max-content\",height:\"100%\",flexWrap:\"nowrap\"}})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withHorizontalDragScroll\":{\"type\":\"reactHoc\",\"name\":\"withHorizontalDragScroll\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HorizontalScroll.map"],"mappings":"oWACyD,IAA+F,IAAkE,IAA4B,CAAgC,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,CAA8L,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAA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