{"version":3,"file":"TextLoop_1.CeALkqBx.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/EmugMubeMrVwuMUAE9RC/RJpYblPOsJmEveNSaVOp/wNHD4m6OF.js","https:/framerusercontent.com/modules/riwpLNwLogOhphnqVkil/vkS25mXdYwkrydP19zJf/TextLoop_1.js"],"sourcesContent":["// Generated by Framer (3256e0c)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;IBM Plex Mono-500\",\"GF;IBM Plex Mono-700\",\"GF;IBM Plex Mono-700italic\",\"GF;IBM Plex Mono-500italic\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"IBM Plex Mono\",source:\"google\",style:\"normal\",uiFamilyName:\"IBM Plex Mono\",url:\"https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3twJ8lJPg-IUDNg.woff2\",weight:\"500\"},{cssFamilyName:\"IBM Plex Mono\",source:\"google\",style:\"normal\",uiFamilyName:\"IBM Plex Mono\",url:\"https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3pQP8lJPg-IUDNg.woff2\",weight:\"700\"},{cssFamilyName:\"IBM Plex Mono\",source:\"google\",style:\"italic\",uiFamilyName:\"IBM Plex Mono\",url:\"https://fonts.gstatic.com/s/ibmplexmono/v20/-F6sfjptAgt5VM-kVkqdyU8n1ioSblJFgsARHNh4zg.woff2\",weight:\"700\"},{cssFamilyName:\"IBM Plex Mono\",source:\"google\",style:\"italic\",uiFamilyName:\"IBM Plex Mono\",url:\"https://fonts.gstatic.com/s/ibmplexmono/v20/-F6sfjptAgt5VM-kVkqdyU8n1ioSJlRFgsARHNh4zg.woff2\",weight:\"500\"}]}];export const css=['.framer-ZEmmh .framer-styles-preset-1aehtxv:not(.rich-text-wrapper), .framer-ZEmmh .framer-styles-preset-1aehtxv.rich-text-wrapper p { --framer-font-family: \"IBM Plex Mono\", monospace; --framer-font-family-bold: \"IBM Plex Mono\", monospace; --framer-font-family-bold-italic: \"IBM Plex Mono\", monospace; --framer-font-family-italic: \"IBM Plex Mono\", monospace; --framer-font-open-type-features: normal; --framer-font-size: 14px; --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: 0px; --framer-line-height: 150%; --framer-paragraph-spacing: 20px; --framer-text-alignment: right; --framer-text-color: var(--token-20aea419-0f25-46e7-b5e7-98d94eb0397b, #6c6a61); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: uppercase; }'];export const className=\"framer-ZEmmh\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Endlessly looping text cycle component using canvas layers as input\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";/**\n * Endlessly looping text cycle component that cycles through canvas layers\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 60\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function TextLoop(props){const{textLayers=[],duration=2e3,animationType=\"fade\",pauseOnHover=false,backgroundColor=\"transparent\",blur=0,style}=props;const[currentIndex,setCurrentIndex]=useState(0);const[isPaused,setIsPaused]=useState(false);const[isLoading,setIsLoading]=useState(true);const isStatic=useIsStaticRenderer();// Loading state with 500ms delay\nuseEffect(()=>{if(isStatic){setIsLoading(false);return;}const loadingTimeout=setTimeout(()=>{startTransition(()=>setIsLoading(false));},500);return()=>clearTimeout(loadingTimeout);},[isStatic]);// Cycle through text layers\nuseEffect(()=>{if(isStatic||textLayers.length<=1||isPaused)return;const interval=setInterval(()=>{startTransition(()=>{setCurrentIndex(prev=>(prev+1)%textLayers.length);});},duration);return()=>clearInterval(interval);},[duration,textLayers.length,isPaused,isStatic]);const handleMouseEnter=()=>{if(pauseOnHover){startTransition(()=>setIsPaused(true));}};const handleMouseLeave=()=>{if(pauseOnHover){startTransition(()=>setIsPaused(false));}};// Animation variants\nconst getAnimationVariants=()=>{switch(animationType){case\"slideUp\":return{initial:{y:20,opacity:0,filter:`blur(${blur}px)`},animate:{y:0,opacity:1,filter:\"blur(0px)\"},exit:{y:-20,opacity:0,filter:`blur(${blur}px)`}};case\"slideDown\":return{initial:{y:-20,opacity:0,filter:`blur(${blur}px)`},animate:{y:0,opacity:1,filter:\"blur(0px)\"},exit:{y:20,opacity:0,filter:`blur(${blur}px)`}};case\"slideLeft\":return{initial:{x:20,opacity:0,filter:`blur(${blur}px)`},animate:{x:0,opacity:1,filter:\"blur(0px)\"},exit:{x:-20,opacity:0,filter:`blur(${blur}px)`}};case\"slideRight\":return{initial:{x:-20,opacity:0,filter:`blur(${blur}px)`},animate:{x:0,opacity:1,filter:\"blur(0px)\"},exit:{x:20,opacity:0,filter:`blur(${blur}px)`}};case\"zoom\":return{initial:{scale:.5,opacity:0,filter:`blur(${blur}px)`},animate:{scale:1,opacity:1,filter:\"blur(0px)\"},exit:{scale:1.5,opacity:0,filter:`blur(${blur}px)`}};case\"zoomReverse\":return{initial:{scale:1.5,opacity:0,filter:`blur(${blur}px)`},animate:{scale:1,opacity:1,filter:\"blur(0px)\"},exit:{scale:.5,opacity:0,filter:`blur(${blur}px)`}};case\"rotate\":return{initial:{rotate:-180,opacity:0,scale:.8,filter:`blur(${blur}px)`},animate:{rotate:0,opacity:1,scale:1,filter:\"blur(0px)\"},exit:{rotate:180,opacity:0,scale:.8,filter:`blur(${blur}px)`}};case\"bounce\":return{initial:{y:-50,opacity:0,scale:.8,filter:`blur(${blur}px)`},animate:{y:0,opacity:1,scale:1,filter:\"blur(0px)\"},exit:{y:50,opacity:0,scale:.8,filter:`blur(${blur}px)`}};default:return{initial:{opacity:0,filter:`blur(${blur}px)`},animate:{opacity:1,filter:\"blur(0px)\"},exit:{opacity:0,filter:`blur(${blur}px)`}};}};const variants=getAnimationVariants();// Get transition settings based on animation type\nconst getTransitionSettings=()=>{switch(animationType){case\"bounce\":return{duration:.5,ease:[.68,-.55,.265,1.55]};case\"rotate\":return{duration:.4,ease:[.43,.13,.23,.96]};case\"zoom\":case\"zoomReverse\":return{duration:.35,ease:[.25,.46,.45,.94]};default:return{duration:.3,ease:\"easeInOut\"};}};const transitionSettings=getTransitionSettings();// Show static preview if no layers or in static renderer\nif(isStatic||textLayers.length===0){return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor,overflow:\"hidden\"},children:textLayers.length>0?textLayers[0]:/*#__PURE__*/_jsx(\"div\",{style:{color:\"#999\",fontSize:\"14px\",textAlign:\"center\",padding:\"20px\"},children:\"Add text layers to cycle through\"})});}// Show loading state\nif(isLoading){return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(motion.div,{initial:{opacity:1},style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:textLayers[0]})});}return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor,overflow:\"hidden\"},onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,children:/*#__PURE__*/_jsx(AnimatePresence,{mode:\"wait\",children:/*#__PURE__*/_jsx(motion.div,{initial:variants.initial,animate:variants.animate,exit:variants.exit,transition:transitionSettings,style:{position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:textLayers[currentIndex]},currentIndex)})});}addPropertyControls(TextLoop,{textLayers:{type:ControlType.Array,title:\"Text Layers\",control:{type:ControlType.ComponentInstance},maxCount:10},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:2e3,min:500,max:1e4,step:100,unit:\"ms\"},animationType:{type:ControlType.Enum,title:\"Animation\",options:[\"fade\",\"slideUp\",\"slideDown\",\"slideLeft\",\"slideRight\",\"zoom\",\"zoomReverse\",\"rotate\",\"bounce\"],optionTitles:[\"Fade\",\"Slide Up\",\"Slide Down\",\"Slide Left\",\"Slide Right\",\"Zoom\",\"Zoom Reverse\",\"Rotate\",\"Bounce\"],defaultValue:\"fade\",displaySegmentedControl:false},blur:{type:ControlType.Number,title:\"Blur\",defaultValue:0,min:0,max:20,step:.5,unit:\"px\"},pauseOnHover:{type:ControlType.Boolean,title:\"Pause on Hover\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"transparent\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextLoop\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"60\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextLoop_1.map"],"mappings":"sRAC8B,GAAU,UAAU,CAAC,uBAAuB,uBAAuB,6BAA6B,6BAA6B,CAAC,CAAc,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,cAAc,gBAAgB,OAAO,SAAS,MAAM,SA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