{"version":3,"file":"shared-lib.CFKAJ__P.mjs","names":["React","useRef","e","cardWithGap","metadata","siteMetadata","metadataVersion","__FramerMetadata__","metadata","siteMetadata"],"sources":["https:/framerusercontent.com/modules/dfgcFobomWhAYLceO3it/rp3DKzMzpccWFDKF4vQa/ImageCarousel.js","https:/framerusercontent.com/modules/dtvdxVmvspHwwmztgdm2/kMW7qnxaKw22MnW6GY0K/siteMetadata.js","https:/framerusercontent.com/modules/1Uw9CFOXo2EM2JvpgEDn/qdlcowD0O4GBHCi4FYK9/augiA20Il.js","https:/framerusercontent.com/modules/Qy26QofEi4lL8JdvjcY5/J0hFsNbtUGWrYULUXitM/UMAdnF15p.js"],"sourcesContent":["// Section with 7 1:1 cards in a horizontally sliding carousel with smooth endless auto-slide using Framer Motion\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion,useMotionValue,animate}from\"framer-motion\";const images=[{src:\"https://framerusercontent.com/images/EhybRtowM7xozhyqG7sqgS9OAA.png\",alt:\"Gradient 1 - Blue\"},{src:\"https://framerusercontent.com/images/ugXHYy9pkHmz5qE8IhZipP3IEs.png\",alt:\"Gradient 2 - Purple\"},{src:\"https://framerusercontent.com/images/LI7vWbHP2IfQVr6pb39HFC80U.png\",alt:\"Gradient 3 - Orange\"},{src:\"https://framerusercontent.com/images/upmmUwKPSiKWHEH3KsTCffjLXkg.png\",alt:\"Gradient 4 - Yellow\"},{src:\"https://framerusercontent.com/images/uWG3TfwNea1XyYUdesU8UrR6n6o.png\",alt:\"Gradient 5 - Green\"},{src:\"https://framerusercontent.com/images/n7opnCOJHIJC3pgiqkeo1r7G0hM.png\",alt:\"Card 6\"},{src:\"https://framerusercontent.com/images/PR1PR4inkiZCKYCdLdG7qQKb1A.png\",alt:\"Card 7\"}];function clamp(val,min,max){return Math.max(min,Math.min(max,val));}/**\n * Section with 7 1:1 cards in a horizontally sliding carousel with smooth endless auto-slide using Framer Motion\n *\n * @framerIntrinsicWidth 700\n * @framerIntrinsicHeight 300\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */import React from\"react\";function LazyImageCard({img,cardSize,index,totalCards}){const[isVisible,setIsVisible]=React.useState(false);const ref=React.useRef(null);React.useEffect(()=>{if(!ref.current)return;let observer=new window.IntersectionObserver(([entry])=>{if(entry.isIntersecting){setIsVisible(true);observer.disconnect();}},{rootMargin:\"200px\"});observer.observe(ref.current);return()=>observer.disconnect();},[]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:cardSize,height:cardSize,borderRadius:12,background:\"#f5f5f5\",overflow:\"hidden\",boxShadow:\"0 2px 8px rgba(0,0,0,0.06)\",flex:\"0 0 auto\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},\"aria-label\":`Card ${index%totalCards+1}`,children:isVisible?/*#__PURE__*/_jsx(\"img\",{src:img.src,alt:img.alt,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",borderRadius:12,userSelect:\"none\",pointerEvents:\"none\",display:\"block\"},draggable:false}):/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",background:\"#e0e0e0\"}})});}export default function ImageCarousel(props){const{cardSize=220,gap=24,background=\"#fff\",borderRadius=16,shadow=true,style}=props;const containerRef=useRef(null);const x=useMotionValue(0);const totalCards=images.length;const visibleWidth=style?.width===\"100%\"?700:style?.width||700;const cardWithGap=cardSize+gap;// Duplicate images for seamless infinite loop\nconst loopImages=[...images,...images,...images];const totalLoopCards=loopImages.length;const totalWidth=totalLoopCards*cardWithGap-gap;const minX=visibleWidth-totalWidth;const resetThreshold=-(cardWithGap*images.length);// Auto-slide endlessly, pause/slow on hover\nconst speedRef=useRef(60);const hoverRef=useRef(false);useEffect(()=>{let frameId;let last=performance.now();function loop(now){const dt=(now-last)/1e3;last=now;// Smoothly slow down if hovered\nif(hoverRef.current&&speedRef.current>0){speedRef.current=Math.max(0,speedRef.current-dt*120);}else if(!hoverRef.current&&speedRef.current<60){speedRef.current=Math.min(60,speedRef.current+dt*120);}let next=x.get()-dt*speedRef.current;// Infinite seamless loop\nif(next<=resetThreshold){next+=cardWithGap*images.length;}if(next>0){next-=cardWithGap*images.length;}x.set(next);frameId=requestAnimationFrame(loop);}frameId=requestAnimationFrame(loop);return()=>cancelAnimationFrame(frameId);},[resetThreshold,cardWithGap,images.length,x]);// On hover, stop sliding, but if cursor moves, slowly restart\nlet lastMouseX=useRef(null);let mouseMoveTimeout=useRef(null);function handleMouseEnter(e){hoverRef.current=true;lastMouseX.current=e.clientX;if(mouseMoveTimeout.current)clearTimeout(mouseMoveTimeout.current);}function handleMouseLeave(e){hoverRef.current=false;lastMouseX.current=null;if(mouseMoveTimeout.current)clearTimeout(mouseMoveTimeout.current);}function handleMouseMove(e){// On hover, do nothing on mouse move\nreturn;}// Snap to card on drag end\nfunction handleDragEnd(event,info){const raw=x.get();const cardWithGap=cardSize+gap;let idx=Math.round(-raw/cardWithGap);idx=clamp(idx,0,totalCards-1);const target=-idx*cardWithGap;animate(x,clamp(target,minX,0),{type:\"spring\",bounce:.3,duration:.5});}return /*#__PURE__*/_jsx(\"section\",{style:{...style,width:\"100%\",height:\"100%\",background,borderRadius,overflow:\"hidden\",boxShadow:shadow?\"0 4px 24px rgba(0,0,0,0.08)\":\"none\",position:\"relative\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},ref:containerRef,children:/*#__PURE__*/_jsx(motion.div,{style:{display:\"flex\",flexDirection:\"row\",gap,cursor:\"grab\",x,touchAction:\"pan-y\"},drag:\"x\",dragConstraints:{left:minX,right:0},dragElastic:.18,onDragEnd:handleDragEnd,tabIndex:-1,\"aria-label\":\"Image carousel\",onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,onMouseMove:handleMouseMove,children:loopImages.map((img,i)=>/*#__PURE__*/_jsx(LazyImageCard,{img:img,cardSize:cardSize,index:i,totalCards:totalCards},i))})});}addPropertyControls(ImageCarousel,{cardSize:{type:ControlType.Number,title:\"Card Size\",defaultValue:320,min:100,max:600,step:1,unit:\"px\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:24,min:0,max:64,step:1,unit:\"px\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#fff\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:16,min:0,max:48,step:1,unit:\"px\"},shadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageCarousel\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageCarousel.map","// Generated by Framer (dc3a148)\nexport default function metadata(params,activeLocale){return{description:\"Zane — designer — ux ui, product, graphic\",favicon:\"https://framerusercontent.com/assets/Uwj18ABAXGO6JooNUesNMzeKb9E.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/4qqCCTbyj3PwlubcmmmAUB5OVeU.png\",title:\"zeebra.design\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (ea22747)\nimport siteMetadata from\"#framer/local/siteMetadata/siteMetadata/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"72rtr7\",mediaQuery:\"(min-width: 1512px)\"},{hash:\"wo0c95\",mediaQuery:\"(min-width: 1200px) and (max-width: 1511.98px)\"},{hash:\"1ljmvxb\",mediaQuery:\"(min-width: 900px) and (max-width: 1199.98px)\"},{hash:\"1hs1j4\",mediaQuery:\"(min-width: 810px) and (max-width: 899.98px)\"},{hash:\"djwhna\",mediaQuery:\"(max-width: 809.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-bCIFj\",title:siteMetadata(params,activeLocale).title||\"Home\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (5b26096)\nimport siteMetadata from\"https://framerusercontent.com/modules/dtvdxVmvspHwwmztgdm2/kMW7qnxaKw22MnW6GY0K/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"1edl7u7\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-XbIFG\",title:siteMetadata(params,activeLocale).title||\"Page\",viewport:\"width=1200\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"qQAC03B,SAAS,EAAM,EAAI,EAAI,EAAI,CAAC,OAAO,KAAK,IAAI,EAAI,KAAK,IAAI,EAAI,EAAI,CAAC,CAQh6B,SAAS,EAAc,CAAC,MAAI,WAAS,QAAM,cAAY,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAM,SAAS,GAAM,CAAO,EAAIA,EAAM,OAAO,KAAK,CAAqQ,OAApQ,EAAM,cAAc,CAAC,GAAG,CAAC,EAAI,QAAQ,OAAO,IAAI,EAAS,IAAI,EAAO,sBAAsB,CAAC,KAAS,CAAI,EAAM,iBAAgB,EAAa,GAAK,CAAC,EAAS,YAAY,GAAI,CAAC,WAAW,QAAQ,CAAC,CAA+B,OAA9B,EAAS,QAAQ,EA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