{"version":3,"file":"String5.DAf0W5Ds.mjs","names":["React.useRef"],"sources":["https:/framerusercontent.com/modules/gIINOMEkAV5JlCSTobhi/xKgdBGEF0OzEF8tI6JVG/String5.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{motion,useAnimation}from\"framer-motion\";export function StringResonator(){const audio=React.useRef(null);const controls=useAnimation();React.useEffect(()=>{audio.current=new Audio(\"https://remarkable-gecko-8f6b13.netlify.app/sounds/5.mp3\");},[]);const handleHoverStart=()=>{if(audio.current){audio.current.currentTime=0;audio.current.play();if(\"vibrate\"in navigator)navigator.vibrate(50);}controls.start({y:[0,-2,2,-1,1,0],backgroundColor:[\"#f5f5f5\",\"#cbed66\",\"#f5f5f5\"],transition:{y:{duration:.5,ease:\"easeOut\"},backgroundColor:{duration:1.2,ease:\"easeInOut\",times:[0,.05,1]}}});};return /*#__PURE__*/_jsx(motion.div,{onHoverStart:handleHoverStart,onTouchStart:handleHoverStart,animate:controls,initial:{backgroundColor:\"#f5f5f5\"},style:{width:\"100%\",height:\"10px\",borderRadius:\"10px\",margin:\"5px 0\"}});}\nexport const __FramerMetadata__ = {\"exports\":{\"StringResonator\":{\"type\":\"reactComponent\",\"name\":\"StringResonator\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./String5.map"],"mappings":"+LAAsH,SAAgB,GAAiB,CAAC,IAAM,EAAMA,EAAa,IAAI,EAAQ,EAAS,EAAa,EAAE,MAAoB,CAAC,EAAM,QAAQ,IAAI,MAAM,0DAA0D,CAAE,EAAE,CAAC,CAAC,EAAE,IAAM,MAAqB,CAAI,EAAM,UAAS,EAAM,QAAQ,YAAY,EAAE,EAAM,QAAQ,KAAK,EAAK,YAAY,GAAU,EAAU,QAAQ,EAAE,GAAG,EAAS,MAAM,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,gBAAgB,CAAC,UAAU,UAAU,SAAS,EAAE,WAAW,CAAC,EAAE,CAAC,SAAS,GAAG,KAAK,SAAS,EAAE,gBAAgB,CAAC,SAAS,IAAI,KAAK,YAAY,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,EAAE,OAAoB,EAAK,EAAO,IAAI,CAAC,aAAa,EAAiB,aAAa,EAAiB,QAAQ,EAAS,QAAQ,CAAC,gBAAgB,SAAS,EAAE,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,aAAa,OAAO,OAAO,OAAO,CAAC,CAAC,CAAE,qBAAz0B,IAA4B,IAA+C"}