{"version":3,"file":"LogoSlider.rNvCUNMr.mjs","names":["useState","useEffect","startTransition","_jsx","_jsxs","__esmMin","init_npm_react_18_3_1","te","ce","p","c","init_jsx_runtime","_e","useIsStaticRenderer","addPropertyControls","ControlType","init_framer_ChujFWHC","motion","init_framer_motion_1EwlFBEG","LogoSlider","props","logos","playAnimation","animationDuration","staggerDelay","initialDelay","borderWidth","borderColor","borderStyle","borderTop","borderRight","borderBottom","borderLeft","borderRadius","padding","backgroundColor","logoScale","logoOpacity","style","isStatic","currentIndex","setCurrentIndex","cycleCount","setCycleCount","isFirstRender","setIsFirstRender","totalDuration","timeout","interval","prev","nextIndex","borderStyles","init_LogoSlider"],"sources":["https:/framerusercontent.com/modules/abDUC9JOhAiGLsXdRkl1/rpLyYYWlaOL7E11MyOkP/LogoSlider.js"],"sourcesContent":["// Logo slider with vertical carousel animation where logos move up in sequence and loop seamlessly\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function LogoSlider(props){const{logos=[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Logo 1\"}},{image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Logo 2\"}},{image:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Logo 3\"}}],playAnimation=true,animationDuration=2,staggerDelay=.5,initialDelay=0,borderWidth=1,borderColor=\"#CCCCCC\",borderStyle=\"solid\",borderTop=true,borderRight=true,borderBottom=true,borderLeft=true,borderRadius=8,padding=20,backgroundColor=\"#FFFFFF\",logoScale=1,logoOpacity=1,style}=props;const isStatic=useIsStaticRenderer();const[currentIndex,setCurrentIndex]=useState(0);const[cycleCount,setCycleCount]=useState(0);const[isFirstRender,setIsFirstRender]=useState(true);useEffect(()=>{if(isStatic||logos.length===0||!playAnimation)return;const totalDuration=(animationDuration+staggerDelay)*1e3;const timeout=setTimeout(()=>{startTransition(()=>{setIsFirstRender(false);});const interval=setInterval(()=>{startTransition(()=>{setCurrentIndex(prev=>(prev+1)%logos.length);setCycleCount(prev=>prev+1);});},totalDuration);return()=>clearInterval(interval);},initialDelay*1e3);return()=>clearTimeout(timeout);},[isStatic,logos.length,animationDuration,staggerDelay,initialDelay,playAnimation]);if(logos.length===0){return /*#__PURE__*/_jsx(\"div\",{style:{...style,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:\"100%\",height:\"100%\",backgroundColor,border:`${borderWidth}px ${borderStyle} ${borderColor}`,borderRadius,padding},children:/*#__PURE__*/_jsx(\"span\",{style:{color:\"#CCCCCC\",fontSize:14},children:\"Add logos\"})});}const nextIndex=(currentIndex+1)%logos.length;const borderStyles={borderTopWidth:borderTop?borderWidth:0,borderRightWidth:borderRight?borderWidth:0,borderBottomWidth:borderBottom?borderWidth:0,borderLeftWidth:borderLeft?borderWidth:0,borderStyle,borderColor};return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",backgroundColor,...borderStyles,borderRadius,boxSizing:\"border-box\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",borderRadius:borderRadius>0?borderRadius-borderWidth:0},children:[/*#__PURE__*/_jsx(motion.div,{initial:{y:0},animate:isFirstRender?{y:0}:{y:\"-100%\"},transition:{duration:animationDuration,ease:\"easeInOut\"},style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor,padding,boxSizing:\"border-box\"},children:/*#__PURE__*/_jsx(motion.img,{src:logos[currentIndex].image.src,alt:logos[currentIndex].image.alt,initial:{filter:\"blur(0px)\"},animate:isFirstRender?{filter:\"blur(0px)\"}:{filter:[\"blur(0px)\",\"blur(8px)\",\"blur(0px)\"]},transition:{duration:animationDuration,ease:\"easeInOut\"},style:{maxWidth:\"100%\",maxHeight:\"100%\",objectFit:\"contain\",transform:`scale(${logoScale})`,opacity:logoOpacity}})},`current-${currentIndex}-${cycleCount}`),/*#__PURE__*/_jsx(motion.div,{initial:{y:\"100%\"},animate:isFirstRender?{y:\"100%\"}:{y:\"0%\"},transition:{duration:animationDuration,ease:\"easeInOut\"},style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor,padding,boxSizing:\"border-box\"},children:/*#__PURE__*/_jsx(motion.img,{src:logos[nextIndex].image.src,alt:logos[nextIndex].image.alt,initial:{filter:\"blur(0px)\"},animate:isFirstRender?{filter:\"blur(0px)\"}:{filter:[\"blur(0px)\",\"blur(8px)\",\"blur(0px)\"]},transition:{duration:animationDuration,ease:\"easeInOut\"},style:{maxWidth:\"100%\",maxHeight:\"100%\",objectFit:\"contain\",transform:`scale(${logoScale})`,opacity:logoOpacity}})},`next-${nextIndex}-${cycleCount}`)]})});}addPropertyControls(LogoSlider,{logos:{type:ControlType.Array,title:\"Logos\",control:{type:ControlType.Object,controls:{image:{type:ControlType.ResponsiveImage,title:\"Logo Image\"}}},defaultValue:[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Logo 1\"}},{image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Logo 2\"}},{image:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Logo 3\"}}]},playAnimation:{type:ControlType.Boolean,title:\"Play Animation\",defaultValue:true,enabledTitle:\"Play\",disabledTitle:\"Pause\"},animationDuration:{type:ControlType.Number,title:\"Duration\",defaultValue:2,min:.1,max:10,step:.1,unit:\"s\"},staggerDelay:{type:ControlType.Number,title:\"Stagger Delay\",defaultValue:.5,min:0,max:5,step:.1,unit:\"s\"},initialDelay:{type:ControlType.Number,title:\"Initial Delay\",defaultValue:0,min:0,max:10,step:.1,unit:\"s\"},logoScale:{type:ControlType.Number,title:\"Logo Scale\",defaultValue:1,min:.1,max:2,step:.1},logoOpacity:{type:ControlType.Number,title:\"Logo Opacity\",defaultValue:1,min:0,max:1,step:.01},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:1,min:0,max:20,step:1,unit:\"px\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#CCCCCC\"},borderStyle:{type:ControlType.Enum,title:\"Border Style\",options:[\"solid\",\"dashed\",\"dotted\",\"double\"],optionTitles:[\"Solid\",\"Dashed\",\"Dotted\",\"Double\"],defaultValue:\"solid\",displaySegmentedControl:false},borderTop:{type:ControlType.Boolean,title:\"Border Top\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},borderRight:{type:ControlType.Boolean,title:\"Border Right\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},borderBottom:{type:ControlType.Boolean,title:\"Border Bottom\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},borderLeft:{type:ControlType.Boolean,title:\"Border Left\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:50,step:1,unit:\"px\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:20,min:0,max:100,step:1,unit:\"px\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LogoSlider\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//#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