{"version":3,"file":"LogoTicker.rYViPIco.mjs","names":["useRef","useState","startTransition"],"sources":["https:/framerusercontent.com/modules/wVcV5bClDOX4TNcn9FuM/LuR1Ky11aIpg9WPXjy2z/LogoTicker.js"],"sourcesContent":["// Logo ticker sliding from left to right with smooth infinite animation\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import{useRef,useState,startTransition}from\"react\";/**\n * Logo Ticker\n * \n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function LogoTicker(props){const{logos=[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Company 1\"},name:\"Company 1\"},{image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Company 2\"},name:\"Company 2\"},{image:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Company 3\"},name:\"Company 3\"},{image:{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Company 4\"},name:\"Company 4\"},{image:{src:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\",alt:\"Company 5\"},name:\"Company 5\"}],speed=30,logoHeight=60,gap=60,backgroundColor=\"#FFFFFF\",pauseOnHover=true,direction=\"leftToRight\"}=props;const containerRef=useRef(null);const[isPaused,setIsPaused]=useState(false);// Triple the logos to ensure seamless infinite scroll\nconst duplicatedLogos=[...logos,...logos,...logos];return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",backgroundColor,overflow:\"hidden\",position:\"relative\",display:\"flex\",alignItems:\"center\"},onMouseEnter:()=>pauseOnHover&&startTransition(()=>setIsPaused(true)),onMouseLeave:()=>pauseOnHover&&startTransition(()=>setIsPaused(false)),children:/*#__PURE__*/_jsx(motion.div,{ref:containerRef,style:{display:\"flex\",gap:`${gap}px`,alignItems:\"center\",willChange:\"transform\"},animate:{x:isPaused?undefined:direction===\"leftToRight\"?[0,-100/3+\"%\"]:[-100/3+\"%\",0]},transition:{x:{repeat:Infinity,repeatType:\"loop\",duration:speed,ease:\"linear\"}},children:duplicatedLogos.map((logo,index)=>{const logoImage=logo.image||{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Default Logo\"};return /*#__PURE__*/_jsx(\"div\",{style:{height:`${logoHeight}px`,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0},children:/*#__PURE__*/_jsx(\"img\",{src:logoImage.src,alt:logoImage.alt||logo.name,style:{height:\"100%\",width:\"auto\",objectFit:\"contain\",transition:\"all 0.3s ease\"},onMouseEnter:e=>{e.currentTarget.style.opacity=\"0.7\";},onMouseLeave:e=>{e.currentTarget.style.opacity=\"1\";}})},index);})})});}addPropertyControls(LogoTicker,{logos:{type:ControlType.Array,title:\"Logos\",control:{type:ControlType.Object,controls:{image:{type:ControlType.ResponsiveImage,title:\"Logo Image\"},name:{type:ControlType.String,title:\"Company Name\",defaultValue:\"Company\"}}},defaultValue:[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Company 1\"},name:\"Company 1\"},{image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Company 2\"},name:\"Company 2\"},{image:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Company 3\"},name:\"Company 3\"},{image:{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Company 4\"},name:\"Company 4\"},{image:{src:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\",alt:\"Company 5\"},name:\"Company 5\"}]},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"leftToRight\",\"rightToLeft\"],optionTitles:[\"Left to Right\",\"Right to Left\"],defaultValue:\"leftToRight\",displaySegmentedControl:true},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:30,min:5,max:100,step:1,unit:\"s\"},logoHeight:{type:ControlType.Number,title:\"Logo Height\",defaultValue:60,min:20,max:200,step:5,unit:\"px\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:60,min:20,max:200,step:5,unit:\"px\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},pauseOnHover:{type:ControlType.Boolean,title:\"Pause on Hover\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LogoTicker\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LogoTicker.map"],"mappings":"oOAMG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,CAAC,MAAM,CAAC,IAAI,sEAAsE,IAAI,YAAY,CAAC,KAAK,YAAY,CAAC,CAAC,MAAM,CAAC,IAAI,oEAAoE,IAAI,YAAY,CAAC,KAAK,YAAY,CAAC,CAAC,MAAM,CAAC,IAAI,uEAAuE,IAAI,YAAY,CAAC,KAAK,YAAY,CAAC,CAAC,MAAM,CAAC,IAAI,oEAAoE,IAAI,YAAY,CAAC,KAAK,YAAY,CAAC,CAAC,MAAM,CAAC,IAAI,sEAAsE,IAAI,YAAY,CAAC,KAAK,YAAY,CAAC,CAAC,QAAM,GAAG,aAAW,GAAG,MAAI,GAAG,kBAAgB,UAAU,eAAa,GAAK,YAAU,eAAe,EAAY,EAAaA,EAAO,KAAK,CAAM,CAAC,EAAS,GAAaC,EAAS,GAAM,CAC/yB,EAAgB,CAAC,GAAG,EAAM,GAAG,EAAM,GAAG,EA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