{"version":3,"file":"LogoCarousel.DaHsbGe1.mjs","names":["useState","useRef","startTransition"],"sources":["https:/framerusercontent.com/modules/pX7PHnEHtxIzL2tNR9vW/6CA2grrU3pSjeC5mbZJG/PDoVxFHq4.js","https:/framerusercontent.com/modules/ZPTMWjVlzlcH1j5GhFCr/yLeKm3qvvEt2L2MsIjfR/LogoCarousel.js"],"sourcesContent":["// Generated by Framer (f4ba5e0)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Figtree-500\",\"GF;Figtree-700\",\"GF;Figtree-700italic\",\"GF;Figtree-500italic\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Figtree\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/figtree/v7/_Xmz-HUzqDCFdgfMsYiV_F7wfS-Bs_dNQF5bwkEU4HTy.woff2\",weight:\"500\"},{family:\"Figtree\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/figtree/v7/_Xmz-HUzqDCFdgfMsYiV_F7wfS-Bs_eYR15bwkEU4HTy.woff2\",weight:\"700\"},{family:\"Figtree\",source:\"google\",style:\"italic\",url:\"https://fonts.gstatic.com/s/figtree/v7/_Xm9-HUzqDCFdgfMm4GnA4aZFrUvtOK3A1EayEA25WTybO8.woff2\",weight:\"700\"},{family:\"Figtree\",source:\"google\",style:\"italic\",url:\"https://fonts.gstatic.com/s/figtree/v7/_Xm9-HUzqDCFdgfMm4GnA4aZFrUvtOK3A4QdyEA25WTybO8.woff2\",weight:\"500\"}]}];export const css=['.framer-oFeWm .framer-styles-preset-1kdv3c8:not(.rich-text-wrapper), .framer-oFeWm .framer-styles-preset-1kdv3c8.rich-text-wrapper p { --framer-font-family: \"Figtree\", \"Figtree Placeholder\", sans-serif; --framer-font-family-bold: \"Figtree\", \"Figtree Placeholder\", sans-serif; --framer-font-family-bold-italic: \"Figtree\", \"Figtree Placeholder\", sans-serif; --framer-font-family-italic: \"Figtree\", \"Figtree Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 12px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 500; --framer-letter-spacing: -0.04em; --framer-line-height: 1em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-55fce8bf-ab86-42dc-8b77-6335cf9cf588, #ffffff); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }'];export const className=\"framer-oFeWm\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Composant avec des logos d'entreprises qui défilent horizontalement\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useAnimationFrame}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function LogoCarousel(props){const{logos=[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Logo 1\"},name:\"Company 1\"},{image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Logo 2\"},name:\"Company 2\"},{image:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Logo 3\"},name:\"Company 3\"},{image:{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Logo 4\"},name:\"Company 4\"},{image:{src:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\",alt:\"Logo 5\"},name:\"Company 5\"}],speed=1,gap=40,logoHeight=60,backgroundColor=\"#FFFFFF\",pauseOnHover=true,direction=\"left\",grayscale=false}=props;const[offset,setOffset]=useState(0);const[isPaused,setIsPaused]=useState(false);const containerRef=useRef(null);const isStatic=useIsStaticRenderer();const directionMultiplier=direction===\"left\"?-1:1;useAnimationFrame((time,delta)=>{if(isStatic||isPaused)return;startTransition(()=>{setOffset(prev=>prev+delta*speed*directionMultiplier/10);});});const duplicatedLogos=[...logos,...logos,...logos];return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",height:\"100%\",backgroundColor,overflow:\"hidden\",position:\"relative\",display:\"flex\",alignItems:\"center\",maskImage:\"linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%)\",WebkitMaskImage:\"linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%)\"},onMouseEnter:()=>pauseOnHover&&startTransition(()=>setIsPaused(true)),onMouseLeave:()=>pauseOnHover&&startTransition(()=>setIsPaused(false)),children:/*#__PURE__*/_jsx(motion.div,{style:{display:\"flex\",gap:`${gap}px`,alignItems:\"center\",x:offset},children:duplicatedLogos.map((logo,index)=>{const imageSrc=logo.image?.src||\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\";const imageAlt=logo.image?.alt||logo.name||\"Logo\";return /*#__PURE__*/_jsx(\"div\",{style:{height:`${logoHeight}px`,minWidth:`${logoHeight*1.5}px`,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0},children:/*#__PURE__*/_jsx(\"img\",{src:imageSrc,alt:imageAlt,style:{height:\"100%\",width:\"auto\",objectFit:\"contain\",filter:grayscale?\"grayscale(100%)\":\"none\"}})},index);})})});}addPropertyControls(LogoCarousel,{logos:{type:ControlType.Array,title:\"Logos\",control:{type:ControlType.Object,controls:{image:{type:ControlType.ResponsiveImage,title:\"Image\"},name:{type:ControlType.String,title:\"Nom\",defaultValue:\"Company\"}}},defaultValue:[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Logo 1\"},name:\"Company 1\"},{image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Logo 2\"},name:\"Company 2\"},{image:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Logo 3\"},name:\"Company 3\"},{image:{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Logo 4\"},name:\"Company 4\"},{image:{src:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\",alt:\"Logo 5\"},name:\"Company 5\"}]},grayscale:{type:ControlType.Boolean,title:\"Noir et Blanc\",defaultValue:false,enabledTitle:\"Oui\",disabledTitle:\"Non\"},speed:{type:ControlType.Number,title:\"Vitesse\",defaultValue:1,min:.1,max:5,step:.1},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"left\",\"right\"],optionTitles:[\"Gauche\",\"Droite\"],defaultValue:\"left\",displaySegmentedControl:true},gap:{type:ControlType.Number,title:\"Espacement\",defaultValue:40,min:10,max:100,step:5,unit:\"px\"},logoHeight:{type:ControlType.Number,title:\"Hauteur Logo\",defaultValue:60,min:30,max:150,step:5,unit:\"px\"},backgroundColor:{type:ControlType.Color,title:\"Fond\",defaultValue:\"#FFFFFF\"},pauseOnHover:{type:ControlType.Boolean,title:\"Pause au survol\",defaultValue:true,enabledTitle:\"Oui\",disabledTitle:\"Non\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LogoCarousel\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./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