{"version":3,"file":"RotatingText.ByJwDoRl.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/UBq6EUTPa7QzAtxpIwtH/j6oMiTQMP8NpyKmqSeWX/RotatingText.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{motion,AnimatePresence}from\"framer-motion\";// 添加 AnimatePresence\nconst keywords=[\"APM\",\"MES\",\"SPC\",\"PLS\"];export function RotatingText(){const[index,setIndex]=useState(0);useEffect(()=>{const interval=setInterval(()=>{setIndex(prevIndex=>(prevIndex+1)%keywords.length);},3e3);return()=>clearInterval(interval);},[]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",overflow:\"hidden\",height:\"50px\"},children:/*#__PURE__*/_jsx(AnimatePresence,{mode:\"wait\",children:/*#__PURE__*/_jsx(motion.div,{initial:{y:\"100%\",opacity:0},animate:{y:\"0%\",opacity:1},exit:{y:\"-100%\",opacity:0},transition:{duration:.5},style:{position:\"absolute\",width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",fontSize:\"36px\",fontWeight:\"bold\",color:\"#333\"},children:keywords[index]},index)})});}\nexport const __FramerMetadata__ = {\"exports\":{\"RotatingText\":{\"type\":\"reactComponent\",\"name\":\"RotatingText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RotatingText.map"],"mappings":"wQACyC,SAAgB,GAAc,CAAC,GAAK,CAAC,EAAM,GAAUA,EAAS,EAAE,CAAkJ,OAAjJ,MAAc,CAAC,IAAM,EAAS,gBAAgB,CAAC,EAAS,IAAY,EAAU,GAAG,EAAS,OAAO,EAAG,IAAI,CAAC,UAAU,cAAc,EAAS,EAAG,EAAE,CAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,SAAS,SAAS,OAAO,OAAO,CAAC,SAAsB,EAAK,EAAgB,CAAC,KAAK,OAAO,SAAsB,EAAK,EAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,QAAQ,EAAE,CAAC,WAAW,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,SAAS,OAAO,WAAW,OAAO,MAAM,OAAO,CAAC,SAAS,EAAS,GAAO,CAAC,EAAM,CAAC,CAAC,CAAC,CAAC,oBAD5rB,IAAsC,IAAkD,CAC7H,EAAS,CAAC,MAAM,MAAM,MAAM,MAAM"}