{"version":3,"file":"Carousel_Custom.DvBx1uPy.mjs","names":["useRef","useState","Children","_Fragment"],"sources":["https:/framerusercontent.com/modules/vYpLi8OYldHJ8LHItaV1/N2vrdrjNrEJgmaB7JZed/Carousel_Custom.js"],"sourcesContent":["// DraggableCarousel.tsx — Framer Code Component\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion,useMotionValue,useAnimation}from\"framer-motion\";import{useRef,useState,useEffect,Children,isValidElement,cloneElement}from\"react\";const MASK_LEFT=\"linear-gradient(to right, rgb(0,0,0) 0%, rgb(0,0,0) 7.5%, rgb(0,0,0) 92.5%, rgba(0,0,0,0) 100%)\";const MASK_MIDDLE=\"linear-gradient(to right, rgba(0,0,0,0) 0%, rgb(0,0,0) 7.5%, rgb(0,0,0) 92.5%, rgba(0,0,0,0) 100%)\";const MASK_RIGHT=\"linear-gradient(to right, rgba(0,0,0,0) 0%, rgb(0,0,0) 7.5%, rgb(0,0,0) 92.5%, rgb(0,0,0) 100%)\";const MASK_NONE=\"none\";/**\n * Height \"auto\" lets you set the component to Fit in Framer, so it grows\n * with the tallest card instead of clipping it.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function DraggableCarousel({gap=25,sidePadding=40,isMobile=false,showArrows=true,arrowMode=\"step\",snapAlign=\"start\",clipOverflow=true,edgeMask=true,cardWidth=375,maxCardHeight=0,maxCardWidth=520,arrowColor=\"#ffffff\",arrowBg=\"rgba(255,255,255,0.15)\",children}){const containerRef=useRef(null);const trackRef=useRef(null);const nativeScrollRef=useRef(null);const x=useMotionValue(0);const controls=useAnimation();// Refs so measure / listeners never read stale values\nconst indexRef=useRef(0);const maxDragRef=useRef(0);const[maxDrag,setMaxDrag]=useState(0);const[atStart,setAtStart]=useState(true);const[atEnd,setAtEnd]=useState(true);const[mask,setMask]=useState(MASK_NONE);// Width every card is widened to when needed (null = use Card width)\nconst[widened,setWidened]=useState(null);const slotWidth=widened??cardWidth;const cards=Children.toArray(children);const count=cards.length;// Only overflowing content needs arrows\nconst overflows=maxDrag>1;const displayArrows=showArrows&&!isMobile&&overflows;const getMask=(scrolled,max)=>{// A mask also clips anything outside the box, so no clipping = no mask\nif(!clipOverflow||!edgeMask||max<=1)return MASK_NONE;if(scrolled<=1)return MASK_LEFT;if(scrolled>=max-1)return MASK_RIGHT;return MASK_MIDDLE;};const updateEdges=(latestX,max)=>{const scrolled=-latestX;setMask(getMask(scrolled,max));setAtStart(scrolled<=1);setAtEnd(scrolled>=max-1);};const getSnapX=(index,containerW,max)=>{if(!trackRef.current)return 0;const child=trackRef.current.children[index];if(!child)return 0;const cardLeft=child.offsetLeft;const cardW=child.offsetWidth;// \"start\" lines the card up with the left edge, so each step moves\n// exactly one card; \"center\" centres it in the container.\nconst offset=snapAlign===\"center\"?containerW/2-cardW/2:0;const raw=-(cardLeft-offset);return Math.min(0,Math.max(-max,raw));};// ── Width-first fitting ───────────────────────────────────────────────────\n// If any card is taller than maxCardHeight at its own width, widen all\n// cards equally (binary search) until the tallest fits, up to maxCardWidth\n// or the available space, whichever is smaller.\nconst fitWidths=()=>{const t=trackRef.current;const base=Math.max(1,cardWidth);if(!t||maxCardHeight<=0){setWidened(null);return;}let available=0;if(isMobile&&nativeScrollRef.current){available=nativeScrollRef.current.clientWidth-sidePadding*2;}else if(!isMobile&&containerRef.current){available=containerRef.current.offsetWidth;}const limit=available>0?Math.min(maxCardWidth,available):maxCardWidth;const ceiling=Math.max(base,limit);// Only our own wrapper divs are resized; the cards fill them.\nconst wrappers=Array.from(t.children);if(!wrappers.length)return;const prevWidths=wrappers.map(w=>w.style.width);const prevAlign=t.style.alignItems;t.style.alignItems=\"flex-start\"// natural heights, not stretched\n;const tallestAt=w=>{wrappers.forEach(el=>el.style.width=`${w}px`);return Math.max(...wrappers.map(el=>el.offsetHeight));};let result=base;const baseH=tallestAt(base);if(baseH>maxCardHeight){if(tallestAt(ceiling)>maxCardHeight){result=ceiling// can't fully fit; go as wide as allowed\n;}else{let lo=base;let hi=ceiling;while(hi-lo>4){const mid=(lo+hi)/2;if(tallestAt(mid)>maxCardHeight)lo=mid;else hi=mid;}result=Math.ceil(hi);}}if(!Number.isFinite(result)||result<base)result=base;// Restore, then let React apply the final width\nwrappers.forEach((el,i)=>el.style.width=prevWidths[i]);t.style.alignItems=prevAlign;setWidened(result>base?result:null);};useEffect(()=>{fitWidths();const id=setTimeout(fitWidths,60);document.fonts?.ready?.then(()=>fitWidths());// Re-fit when the available width changes (ignore height-only changes)\nconst target=isMobile?nativeScrollRef.current:containerRef.current;let lastW=target?.offsetWidth??0;const ro=new ResizeObserver(()=>{const w=target?.offsetWidth??0;if(w!==lastW){lastW=w;fitWidths();}});if(target)ro.observe(target);return()=>{clearTimeout(id);ro.disconnect();};},[children,count,cardWidth,maxCardHeight,maxCardWidth,isMobile,sidePadding]);// ── Desktop measure ───────────────────────────────────────────────────────\nuseEffect(()=>{if(isMobile)return;const measure=()=>{const c=containerRef.current;const t=trackRef.current;if(!c||!t)return;const containerW=c.offsetWidth;const max=Math.max(0,t.scrollWidth-containerW);maxDragRef.current=max;setMaxDrag(max);// Keep the current card in place on resize instead of resetting\nif(indexRef.current>count-1)indexRef.current=0;const target=getSnapX(indexRef.current,containerW,max);controls.stop();x.set(target);updateEdges(target,max);};measure();const id=setTimeout(measure,50);const ro=new ResizeObserver(measure);if(containerRef.current)ro.observe(containerRef.current);if(trackRef.current)ro.observe(trackRef.current);return()=>{clearTimeout(id);ro.disconnect();};},[count,gap,sidePadding,children,isMobile,edgeMask,clipOverflow,slotWidth,snapAlign]);useEffect(()=>{if(isMobile)return;return x.on(\"change\",latest=>updateEdges(latest,maxDragRef.current));},[x,edgeMask,clipOverflow,isMobile]);// ── Mobile native scroll mask ─────────────────────────────────────────────\nuseEffect(()=>{if(!isMobile||!nativeScrollRef.current)return;const el=nativeScrollRef.current;const onScroll=()=>{const max=el.scrollWidth-el.clientWidth;setMask(getMask(el.scrollLeft,max));};el.addEventListener(\"scroll\",onScroll,{passive:true});const ro=new ResizeObserver(onScroll);ro.observe(el);onScroll();return()=>{el.removeEventListener(\"scroll\",onScroll);ro.disconnect();};},[isMobile,edgeMask,clipOverflow,children,slotWidth]);const snapToIndex=index=>{if(!containerRef.current)return;const clamped=Math.max(0,Math.min(index,count-1));const target=getSnapX(clamped,containerRef.current.offsetWidth,maxDragRef.current);indexRef.current=clamped;controls.start({x:target,transition:{type:\"spring\",stiffness:300,damping:35}});};// Skip indices that land on the same position (cards near the ends are\n// clamped), so every click visibly moves the track.\nconst step=dir=>{if(!containerRef.current)return;const w=containerRef.current.offsetWidth;const max=maxDragRef.current;const current=x.get();let i=indexRef.current+dir;while(i>=0&&i<count&&Math.abs(getSnapX(i,w,max)-current)<1){i+=dir;}snapToIndex(i);};const handlePrev=()=>arrowMode===\"jump\"?snapToIndex(0):step(-1);const handleNext=()=>arrowMode===\"jump\"?snapToIndex(count-1):step(1);// Cards fill their wrapper's width and stretch to the tallest card.\nconst renderCard=card=>{if(!/*#__PURE__*/isValidElement(card))return card;const el=card;return /*#__PURE__*/cloneElement(el,{style:{...el.props.style||{},width:\"100%\",height:\"auto\",flex:\"1 1 auto\"}});};const cardWrapperStyle={flexShrink:0,display:\"flex\",flexDirection:\"column\",width:slotWidth};const ArrowButton=({onClick,disabled,direction})=>{const isJump=arrowMode===\"jump\";const label=direction===\"left\"?isJump?\"Go to first card\":\"Previous card\":isJump?\"Go to last card\":\"Next card\";return /*#__PURE__*/_jsx(\"button\",{onClick:onClick,disabled:disabled,\"aria-label\":label,style:{width:40,height:40,borderRadius:\"50%\",border:\"none\",background:arrowBg,cursor:disabled?\"default\":\"pointer\",opacity:disabled?.3:1,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",transition:\"opacity 0.2s, transform 0.15s\",flexShrink:0},onMouseEnter:e=>{if(!disabled)e.currentTarget.style.transform=\"scale(1.08)\";},onMouseLeave:e=>{e.currentTarget.style.transform=\"scale(1)\";},children:/*#__PURE__*/_jsx(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:arrowColor,strokeWidth:\"2.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:direction===\"left\"?isJump?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"polyline\",{points:\"11 18 5 12 11 6\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"19 18 13 12 19 6\"})]}):/*#__PURE__*/_jsx(\"polyline\",{points:\"15 18 9 12 15 6\"}):isJump?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"polyline\",{points:\"13 18 19 12 13 6\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"5 18 11 12 5 6\"})]}):/*#__PURE__*/_jsx(\"polyline\",{points:\"9 18 15 12 9 6\"})})});};const maskStyle={maskImage:mask,WebkitMaskImage:mask,transition:\"mask-image 0.3s ease, -webkit-mask-image 0.3s ease\"};// ── MOBILE: native scroll ─────────────────────────────────────────────────\n// Note: a native horizontal scroller always clips sideways, so Clip\n// overflow only removes the edge fade on mobile.\nif(isMobile){return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",width:\"100%\",height:\"100%\",...maskStyle},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .dc-mobile-scroll::-webkit-scrollbar { height: 3px; }\n                    .dc-mobile-scroll::-webkit-scrollbar-track { background: transparent; }\n                    .dc-mobile-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.25); border-radius: 99px; }\n                `}),/*#__PURE__*/_jsx(\"div\",{ref:nativeScrollRef,className:\"dc-mobile-scroll\",style:{width:\"100%\",flex:\"1 1 auto\",overflowX:\"auto\",overflowY:\"hidden\",scrollSnapType:\"x mandatory\",WebkitOverflowScrolling:\"touch\",scrollbarWidth:\"thin\",scrollbarColor:\"rgba(0,0,0,0.25) transparent\",paddingLeft:sidePadding,paddingRight:sidePadding,paddingBottom:8,boxSizing:\"border-box\"},children:/*#__PURE__*/_jsx(\"div\",{ref:trackRef,style:{display:\"flex\",flexDirection:\"row\",alignItems:\"stretch\",gap,width:\"max-content\",height:\"100%\"},children:cards.map((card,i)=>/*#__PURE__*/_jsx(\"div\",{style:{...cardWrapperStyle,scrollSnapAlign:\"center\",scrollSnapStop:\"always\"},children:renderCard(card)},i))})})]});}// ── DESKTOP ───────────────────────────────────────────────────────────────\nreturn /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:24,width:\"100%\",height:\"100%\",overflow:\"visible\"},children:[/*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",flex:\"1 1 auto\",overflow:clipOverflow&&(edgeMask||overflows)?\"hidden\":\"visible\",...maskStyle},children:/*#__PURE__*/_jsx(motion.div,{ref:trackRef,animate:controls,style:{x,display:\"flex\",flexDirection:\"row\",alignItems:\"stretch\",gap,width:\"max-content\",height:\"100%\"},children:cards.map((card,i)=>/*#__PURE__*/_jsx(\"div\",{style:cardWrapperStyle,children:renderCard(card)},i))})}),displayArrows&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:12,justifyContent:\"center\",alignItems:\"center\",flexShrink:0},children:[/*#__PURE__*/_jsx(ArrowButton,{direction:\"left\",onClick:handlePrev,disabled:atStart}),/*#__PURE__*/_jsx(ArrowButton,{direction:\"right\",onClick:handleNext,disabled:atEnd})]})]});}addPropertyControls(DraggableCarousel,{gap:{type:ControlType.Number,title:\"Card gap\",defaultValue:25,min:0,max:80,step:1,displayStepper:true},sidePadding:{type:ControlType.Number,title:\"Side padding\",defaultValue:40,min:0,max:120,step:4,displayStepper:true},isMobile:{type:ControlType.Boolean,title:\"Mobile mode\",defaultValue:false},showArrows:{type:ControlType.Boolean,title:\"Show arrows\",defaultValue:true},arrowMode:{type:ControlType.Enum,title:\"Arrow mode\",options:[\"step\",\"jump\"],optionTitles:[\"Step (one at a time)\",\"Jump (first / last)\"],defaultValue:\"step\"},snapAlign:{type:ControlType.Enum,title:\"Snap align\",options:[\"start\",\"center\"],optionTitles:[\"Left edge\",\"Centre\"],defaultValue:\"start\",displaySegmentedControl:true,hidden:props=>props.arrowMode===\"jump\"},clipOverflow:{type:ControlType.Boolean,title:\"Clip overflow\",description:\"Off = cards stay visible outside the component on both sides.\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},edgeMask:{type:ControlType.Boolean,title:\"Edge mask\",defaultValue:true,hidden:props=>props.clipOverflow===false},cardWidth:{type:ControlType.Number,title:\"Card width\",defaultValue:375,min:100,max:1200,step:5,unit:\"px\"},maxCardHeight:{type:ControlType.Number,title:\"Max card height\",description:\"0 = off. Cards widen before they grow past this.\",defaultValue:0,min:0,max:1200,step:10,unit:\"px\"},maxCardWidth:{type:ControlType.Number,title:\"Max card width\",defaultValue:520,min:200,max:1200,step:10,unit:\"px\",hidden:props=>props.maxCardHeight===0},arrowColor:{type:ControlType.Color,title:\"Arrow colour\",defaultValue:\"#ffffff\"},arrowBg:{type:ControlType.Color,title:\"Arrow bg\",defaultValue:\"rgba(255,255,255,0.15)\"},children:{type:ControlType.Array,title:\"Cards\",control:{type:ControlType.ComponentInstance}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DraggableCarousel\",\"slots\":[\"children\"],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Carousel_Custom.map"],"mappings":"4RAOG,SAAwB,EAAkB,CAAC,MAAI,GAAG,cAAY,GAAG,WAAS,GAAM,aAAW,GAAK,YAAU,OAAO,YAAU,QAAQ,eAAa,GAAK,WAAS,GAAK,YAAU,IAAI,gBAAc,EAAE,eAAa,IAAI,cAAW,UAAU,WAAQ,yBAAyB,YAAU,CAAC,IAAM,EAAaA,EAAO,IAAI,EAAQ,E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