{"version":3,"file":"DraggableCarousel.oLMtxpX0.mjs","names":["React.useCallback","React"],"sources":["https:/framerusercontent.com/modules/MNyJTx2jZ2r7AdJBIbu9/6LkdcT23usCtVUw2cYgX/DraggableCarousel.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const{useRef,useEffect,useState}=React;const clamp=(num,min,max)=>Math.min(Math.max(num,min),max);/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n *\n * DraggableCarousel — Infinite draggable carousel with performant Canvas mode.\n */export default function DraggableCarousel(props){const outerRef=useRef(null);const measureRef=useRef(null);// --- Animation & state\nconst[offset,setOffset]=useState(props.autoplay?0:props.initialOffset||0);const[wrapperW,setWrapperW]=useState(0);const[slideSetW,setSlideSetW]=useState(0);const[isHover,setIsHover]=useState(false);const[isDragging,setIsDragging]=useState(false);// --- Refs for tracking drag/momentum state\nconst dragging=useRef(false);const lastCoord=useRef(null);const lastFrameCoord=useRef(null);const velocity=useRef(0);const lastFrameTime=useRef(null);const momentumRaf=useRef(null);const autoplayRaf=useRef(null);const isHorizontal=props.scrollDirection===\"horizontal\";const direction=isHorizontal?props.autoplayHorizontalDirection:props.autoplayVerticalDirection;const measureKey=isHorizontal?\"offsetWidth\":\"offsetHeight\";const clientCoord=isHorizontal?\"clientX\":\"clientY\";const isDesign=RenderTarget.current()===RenderTarget.canvas;// Extract sizing options\nconst{widthType,heightType,containerPadding}=props.sizingOptions||{};// --- Resize/measure slides with correct spacing calculation\nuseEffect(()=>{if(isDesign)return;const resize=()=>{if(!outerRef.current||!measureRef.current)return;const wrapperSize=outerRef.current[measureKey];const slideElements=Array.from(measureRef.current.children);if(slideElements.length===0)return;// Individual slide width\nconst singleSlideWidth=slideElements[0][measureKey];const gap=props.spacing||0;const slidesCount=slideElements.length;// CORRECT FIX: Single set width only (not multiplied by 3)\nconst totalSlideSetWidth=slidesCount*singleSlideWidth+slidesCount*gap;setWrapperW(wrapperSize);setSlideSetW(totalSlideSetWidth);};setTimeout(resize,60);window.addEventListener(\"resize\",resize);return()=>window.removeEventListener(\"resize\",resize);},[props.items,props.spacing,props.scrollDirection,isDesign,measureKey,widthType,heightType]);// --- Set offset to initialOffset ONLY when autoplay is OFF\nuseEffect(()=>{if(!props.autoplay&&!isDesign)setOffset(props.initialOffset||0);},[props.initialOffset,props.items,props.spacing,props.scrollDirection,props.autoplay,isDesign]);// --- Reset offset to 0 when autoplay is enabled\nuseEffect(()=>{if(props.autoplay&&!isDesign)setOffset(0);},[props.autoplay,isDesign]);// Clamp and wrap offset for infinite scroll (used for drag/momentum only)\nconst wrapOffset=React.useCallback(val=>{if(slideSetW===0)return 0;const totalSet=slideSetW;return(val%totalSet+totalSet)%totalSet;},[slideSetW]);// Smooth autoplay offset update with proper bidirectional wrapping\nconst updateAutoplayOffset=React.useCallback((currentOffset,increment)=>{if(slideSetW===0)return 0;const nextOffset=currentOffset+increment;// Handle forward direction (right-to-left, down-to-up)\nif(nextOffset>=slideSetW){return 0// Reset to start for seamless infinite loop\n;}else if(nextOffset<0){return slideSetW+nextOffset// Smoothly wrap to end minus the overflow\n;}return nextOffset;},[slideSetW]);// --- Momentum effect on drag release\nconst runMomentum=()=>{if(Math.abs(velocity.current)<.15){momentumRaf.current=null;velocity.current=0;return;}setOffset(curr=>wrapOffset(curr+velocity.current));velocity.current*=props.momentumFriction;momentumRaf.current=requestAnimationFrame(runMomentum);};// --- Pointer/touch drag logic, with velocity calculation\nconst onPointerDown=coord=>{if(isDesign)return;// No interaction in Canvas\nif(momentumRaf.current)cancelAnimationFrame(momentumRaf.current);dragging.current=true;setIsDragging(true);lastCoord.current=coord;lastFrameCoord.current=coord;lastFrameTime.current=performance.now();velocity.current=0;if(outerRef.current)outerRef.current.style.cursor=\"grabbing\";};const onPointerMove=coord=>{if(isDesign)return;if(!dragging.current||lastCoord.current===null)return;const now=performance.now();const dt=now-(lastFrameTime.current??now);let delta=lastFrameCoord.current!==null?lastFrameCoord.current-coord:0;setOffset(curr=>wrapOffset(curr+delta));if(dt>0){const currVel=delta/dt*props.dragSensitivity;velocity.current=velocity.current*.7+currVel*.3;}lastCoord.current=coord;lastFrameCoord.current=coord;lastFrameTime.current=now;};const onPointerUp=()=>{if(isDesign)return;dragging.current=false;setIsDragging(false);lastCoord.current=null;if(outerRef.current)outerRef.current.style.cursor=\"grab\";if(Math.abs(velocity.current)>.1){momentumRaf.current=requestAnimationFrame(runMomentum);}};// --- Mouse/touch event setup/cleanup\nuseEffect(()=>{if(isDesign)return;const el=outerRef.current;if(!el)return;const handleMouseDown=e=>onPointerDown(e[clientCoord]);const handleMouseMove=e=>onPointerMove(e[clientCoord]);// Proper touch event handling with conditional mobile drag support\nconst handleTouchStart=e=>{if(!props.enableMobileDrag)return;// Skip if mobile drag is disabled\ne.preventDefault()// Prevent scrolling on mobile\n;onPointerDown(e.touches[0][clientCoord]);};const handleTouchMove=e=>{if(!props.enableMobileDrag)return;// Skip if mobile drag is disabled\ne.preventDefault()// Prevent scrolling on mobile\n;onPointerMove(e.touches[0][clientCoord]);};const handleTouchEnd=e=>{if(!props.enableMobileDrag)return;// Skip if mobile drag is disabled\ne.preventDefault()// Prevent default touch behavior\n;onPointerUp();};el.addEventListener(\"mousedown\",handleMouseDown);window.addEventListener(\"mousemove\",handleMouseMove);window.addEventListener(\"mouseup\",onPointerUp);// Use passive: false to allow preventDefault on touch events (only if mobile drag enabled)\nif(props.enableMobileDrag){el.addEventListener(\"touchstart\",handleTouchStart,{passive:false});el.addEventListener(\"touchmove\",handleTouchMove,{passive:false});el.addEventListener(\"touchend\",handleTouchEnd,{passive:false});}el.addEventListener(\"mouseenter\",()=>setIsHover(true));el.addEventListener(\"mouseleave\",()=>setIsHover(false));return()=>{el.removeEventListener(\"mousedown\",handleMouseDown);window.removeEventListener(\"mousemove\",handleMouseMove);window.removeEventListener(\"mouseup\",onPointerUp);if(props.enableMobileDrag){el.removeEventListener(\"touchstart\",handleTouchStart);el.removeEventListener(\"touchmove\",handleTouchMove);el.removeEventListener(\"touchend\",handleTouchEnd);}el.removeEventListener(\"mouseenter\",()=>setIsHover(true));el.removeEventListener(\"mouseleave\",()=>setIsHover(false));if(momentumRaf.current)cancelAnimationFrame(momentumRaf.current);};},[slideSetW,clientCoord,wrapOffset,isDesign,props.enableMobileDrag]);// --- Wheel scrolling support\nuseEffect(()=>{if(!props.scrollOnWheel||isDesign)return;const el=outerRef.current;if(!el)return;const wheel=e=>{if(isHorizontal&&Math.abs(e.deltaX)<Math.abs(e.deltaY)&&e.deltaY!==0)return;let delta=isHorizontal?e.deltaY||e.deltaX:e.deltaX||e.deltaY;setOffset(curr=>wrapOffset(curr+delta));};el.addEventListener(\"wheel\",wheel,{passive:false});return()=>el.removeEventListener(\"wheel\",wheel);},[props.scrollOnWheel,slideSetW,isHorizontal,wrapOffset,isDesign]);// --- Smooth autoplay with proper bidirectional support\nuseEffect(()=>{if(!props.autoplay||isDesign)return;if(isDragging)return;// Calculate direction multiplier (-1 for reverse direction)\nlet dir=1;if(isHorizontal&&direction===\"left\"||!isHorizontal&&direction===\"up\")dir=-1;let hoverMultiplier=isHover?props.hoverSpeedMultiplier:1;let baseSpeed=slideSetW/2e3;let speedPerMs=baseSpeed*(props.autoplaySpeedPercent/100)*dir*hoverMultiplier;let prevTime=performance.now();const step=()=>{const now=performance.now();const dt=now-prevTime;prevTime=now;// Use the FIXED smooth autoplay offset update that handles both directions\nsetOffset(curr=>updateAutoplayOffset(curr,dt*speedPerMs));autoplayRaf.current=requestAnimationFrame(step);};autoplayRaf.current=requestAnimationFrame(step);return()=>{if(autoplayRaf.current)cancelAnimationFrame(autoplayRaf.current);};},[props.autoplay,props.autoplaySpeedPercent,props.hoverSpeedMultiplier,direction,isHover,isDragging,slideSetW,updateAutoplayOffset,isHorizontal,isDesign]);// Fallback slide render (when no slides connected)\nconst renderSlides=()=>{if(!props.items?.length){return Array.from({length:4}).map((_,idx)=>/*#__PURE__*/_jsxs(\"div\",{style:{width:120,height:80,background:\"#ececec\",borderRadius:7,color:\"#888\",fontSize:15,display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:[\"Placeholder \",idx+1]},idx));}return props.items;};// Render enough slide sets to fill, for infinite effect\nconst slideSets=()=>{if(!wrapperW||!slideSetW)return 3;return Math.max(3,Math.ceil(wrapperW*2/slideSetW)+1);};const placeholders=!props.items?.length;// --- Ticker-style mask fade, optional\nconst{fadeClipping={}}=props;const{enabled=false,fadeWidth=22,fadeAlpha=.15,fadeInset=0}=fadeClipping;const fadeDirection=isHorizontal?\"to right\":\"to bottom\";const fadeWidthStart=fadeWidth/2;const fadeWidthEnd=100-fadeWidth/2;const fadeInsetStart=clamp(fadeInset,0,fadeWidthStart);const fadeInsetEnd=100-fadeInset;const fadeMask=enabled?`linear-gradient(${fadeDirection}, rgba(0, 0, 0, ${fadeAlpha}) ${fadeInsetStart}%, rgba(0,0,0,1) ${fadeWidthStart}%, rgba(0,0,0,1) ${fadeWidthEnd}%, rgba(0,0,0,${fadeAlpha}) ${fadeInsetEnd}%)`:undefined;// Calculate slide size based on sizing options\nconst getSlideSize=child=>{// If sizing options are disabled, use defaults\nif(!props.enableSizing){return{width:child.props?.width,height:child.props?.height,minWidth:undefined,minHeight:undefined};}// Otherwise use the configured sizing options\nreturn{width:widthType?child.props?.width:\"100%\",height:heightType?child.props?.height:\"100%\",minWidth:widthType?undefined:0,minHeight:heightType?undefined:0};};// Clone children with sizing options applied\nconst cloneSlideWithSize=(child,key)=>{if(!child)return null;const size=getSlideSize(child);// Smart padding: horizontal = top/bottom, vertical = left/right\n// Only apply if sizing is enabled\nconst paddingStyle=props.enableSizing&&containerPadding?isHorizontal?`${containerPadding}px 0px`// top-bottom for horizontal\n:`0px ${containerPadding}px`// left-right for vertical\n:undefined;return /*#__PURE__*/_jsx(\"div\",{style:{...size,flexShrink:0,display:\"flex\",padding:paddingStyle},children:/*#__PURE__*/React.cloneElement(child,{style:{...child.props?.style,width:size.width,height:size.height,minWidth:size.minWidth,minHeight:size.minHeight}})},key);};// --- Render: Canvas vs Preview/Export\nreturn /*#__PURE__*/_jsxs(\"div\",{ref:outerRef,style:{width:\"100%\",height:\"100%\",overflow:\"hidden\",cursor:isDesign?\"default\":\"grab\",userSelect:\"none\",position:\"relative\",WebkitMaskImage:fadeMask,maskImage:fadeMask,// Add touch-action conditionally based on mobile drag setting\ntouchAction:props.enableMobileDrag?\"none\":\"auto\"},children:[!isDesign&&/*#__PURE__*/_jsx(\"div\",{ref:measureRef,style:{position:\"absolute\",visibility:\"hidden\",display:\"flex\",flexDirection:isHorizontal?\"row\":\"column\",gap:props.spacing},children:renderSlides().map((el,i)=>cloneSlideWithSize(el,`measure-${i}`))}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:isHorizontal?\"row\":\"column\",alignItems:props.alignment||\"center\",transform:isDesign?props.autoplay?isHorizontal?`translateX(0px)`:`translateY(0px)`:props.initialOffset?isHorizontal?`translateX(${-props.initialOffset}px)`:`translateY(${-props.initialOffset}px)`:undefined:isHorizontal?`translateX(${-offset}px)`:`translateY(${-offset}px)`,gap:props.spacing,height:\"100%\",width:\"100%\"},children:placeholders?renderSlides():isDesign?renderSlides().map((el,i)=>cloneSlideWithSize(el,`canvas-${i}`)):Array.from({length:slideSets()}).map((_,setIdx)=>/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:isHorizontal?\"row\":\"column\",gap:props.spacing,pointerEvents:\"none\",// ADD THIS LINE - inherit parent height/width\n    height:isHorizontal?\"100%\":undefined,width:!isHorizontal?\"100%\":undefined},children:renderSlides().map((el,i)=>cloneSlideWithSize(el,`slide-${setIdx}-${i}`))},`set-${setIdx}`))})]});}// Set display name\nDraggableCarousel.displayName=\"Draggable Carousel\";// --- Default props\nDraggableCarousel.defaultProps={spacing:20,initialOffset:0,scrollDirection:\"horizontal\",scrollOnWheel:true,momentumFriction:.9,dragSensitivity:30,enableMobileDrag:true,autoplay:false,autoplaySpeedPercent:5,hoverSpeedMultiplier:.8,autoplayHorizontalDirection:\"right\",autoplayVerticalDirection:\"down\",alignment:\"center\",enableSizing:false,sizingOptions:{widthType:true,heightType:true,containerPadding:0},fadeClipping:{enabled:false,fadeWidth:22,fadeAlpha:.15,fadeInset:0}};// --- Property controls\naddPropertyControls(DraggableCarousel,{items:{type:ControlType.Array,title:\"Slides\",control:{type:ControlType.ComponentInstance},description:\"Connect components/frames as slides.\"},scrollDirection:{type:ControlType.Enum,title:\"Scroll Direction\",options:[\"horizontal\",\"vertical\"],optionTitles:[\"horizontal\",\"vertical\"],defaultValue:\"horizontal\",displaySegmentedControl:true,description:\"Choose the axis for infinite scrolling\"},spacing:{type:ControlType.Number,title:\"Spacing\",min:0,max:100,defaultValue:20,unit:\"px\",description:\"Space between each slide\"},initialOffset:{type:ControlType.Number,title:\"Initial Offset\",min:0,max:1e3,defaultValue:0,unit:\"px\",description:\"How far to offset the scroll at start (in px). Tip: Set to half card width to center the first card.\",hidden(props){return props.autoplay;}},alignment:{type:ControlType.Enum,title:\"Align\",options:[\"flex-start\",\"center\",\"flex-end\"],optionTitles:[\"Start\",\"Center\",\"End\"],defaultValue:\"center\",displaySegmentedControl:false,description:\"Align slides vertically (Top/Center/Bottom) for horizontal; horizontally (Left/Center/Right) for vertical.\"},enableSizing:{type:ControlType.Boolean,title:\"Sizing Options\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Enable to stretch cards to the height or width of the container.\"},sizingOptions:{type:ControlType.Object,title:\"Sizing\",controls:{widthType:{type:ControlType.Boolean,title:\"Width\",enabledTitle:\"Auto\",disabledTitle:\"Stretch\",defaultValue:true},heightType:{type:ControlType.Boolean,title:\"Height\",enabledTitle:\"Auto\",disabledTitle:\"Stretch\",defaultValue:true},containerPadding:{type:ControlType.Number,title:\"Padding\",min:0,max:100,defaultValue:0,unit:\"px\",displayStepper:false}},description:\"Auto preserves original size, Stretch fills container. Padding adds inner spacing.\",hidden(props){return!props.enableSizing;}},scrollOnWheel:{type:ControlType.Boolean,title:\"Scroll with Wheel\",defaultValue:true,enabledTitle:\"Enable\",disabledTitle:\"Disable\",description:\"Allow scrolling via mouse wheel/trackpad\"},momentumFriction:{type:ControlType.Number,title:\"Momentum Friction\",min:.8,max:.99,step:.01,defaultValue:.9,description:\"Adjust inertia (lower is more glide, higher is snappier)\"},dragSensitivity:{type:ControlType.Number,title:\"Drag Sensitivity\",min:5,max:50,step:1,defaultValue:30,description:\"Adjust the speed and feel of drag\"},enableMobileDrag:{type:ControlType.Boolean,title:\"Mobile Drag\",defaultValue:true,enabledTitle:\"Enable\",disabledTitle:\"Disable\",description:\"Enable or disable drag functionality on mobile devices.\"},autoplay:{type:ControlType.Boolean,title:\"Autoplay\",defaultValue:false,description:\"Automatically scroll the carousel\"},autoplaySpeedPercent:{type:ControlType.Number,title:\"Speed\",min:1,max:500,step:5,defaultValue:5,unit:\"%\",description:\"Controls overall scroll speed (percent)\",hidden(props){return!props.autoplay;}},hoverSpeedMultiplier:{type:ControlType.Number,title:\"Hover\",min:0,max:1,step:.05,defaultValue:.8,displayStepper:true,description:\"Slows down the speed while you are hovering (0x = pause, 1x = full speed)\",hidden(props){return!props.autoplay;}},autoplayHorizontalDirection:{type:ControlType.Enum,title:\"Direction\",options:[\"left\",\"right\"],optionTitles:[\"←\",\"→\"],defaultValue:\"right\",displaySegmentedControl:true,segmentedControlDirection:\"horizontal\",description:\"Scroll direction for autoplay (horizontal)\",hidden(props){return!props.autoplay||props.scrollDirection!==\"horizontal\";}},autoplayVerticalDirection:{type:ControlType.Enum,title:\"Direction\",options:[\"up\",\"down\"],optionTitles:[\"↑\",\"↓\"],defaultValue:\"down\",displaySegmentedControl:true,segmentedControlDirection:\"horizontal\",description:\"Scroll direction for autoplay (vertical)\",hidden(props){return!props.autoplay||props.scrollDirection!==\"vertical\";}},fadeClipping:{type:ControlType.Object,title:\"Clipping Fade\",controls:{enabled:{type:ControlType.Boolean,title:\"Enable\",defaultValue:false},fadeWidth:{type:ControlType.Number,title:\"Width\",defaultValue:22,min:0,max:100,unit:\"%\"},fadeAlpha:{type:ControlType.Number,title:\"Opacity\",defaultValue:.15,min:0,max:1,step:.05},fadeInset:{type:ControlType.Number,title:\"Inset\",defaultValue:0,min:0,max:100,unit:\"%\"}},description:\"Edge fade clipping.\\n\\nNote: If your cards have shadows, enable this only if the card's width (for vertical direction) or height (for horizontal direction) is set to a fixed value, and ensure there's enough inner spacing so shadows don't get clipped by the fade. \\n\\nMade with ❤️ by [Soyeb](https://framer.link/MBYIDPK)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DraggableCarousel\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DraggableCarousel.map"],"mappings":"oNAMG,SAAwB,EAAkB,EAAM,CAAC,IAAM,EAAS,EAAO,IAAI,EAAQ,EAAW,EAAO,IAAI,EACvG,CAAC,EAAO,GAAW,EAAS,EAAM,SAAS,EAAE,EAAM,eAAe,CAAC,EAAO,CAAC,EAAS,GAAa,EAAS,CAAC,EAAO,CAAC,EAAU,GAAc,EAAS,CAAC,EAAO,CAAC,EAAQ,GAAY,EAAS,EAAK,EAAO,CAAC,EAAW,GAAe,EAAS,EAAK,EAC9O,EAAS,EAAO,EAAK,EAAQ,EAAU,EAAO,IAAI,EAAQ,EAAe,EAAO,IAAI,EAAQ,EAAS,EAAO,CAAC,EAAQ,EAAc,EAAO,IAAI,EAAQ,EAAY,EAAO,IAAI,EAAQ,EAAY,EAAO,IAAI,EAAQ,EAAa,EAAM,kBAAkB,aAAmB,EAAU,EAAa,EAAM,4BAA4B,EAAM,0BAAgC,EAAW,EAAa,cAAc,eAAqB,EAAY,EAAa,UAAU,UAAgB,EAAS,E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