{"version":3,"file":"String5.CP_5e1ck.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,KAAK,CAAO,EAAS,GAAc,CAAC,MAAoB,CAAC,EAAM,QAAQ,IAAI,MAAM,2DAA2D,EAAG,EAAE,CAAC,CAAC,IAAM,MAAqB,CAAI,EAAM,UAAS,EAAM,QAAQ,YAAY,EAAE,EAAM,QAAQ,MAAM,CAAI,YAAY,GAAU,EAAU,QAAQ,GAAG,EAAE,EAAS,MAAM,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,gBAAgB,CAAC,UAAU,UAAU,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,SAAS,GAAG,KAAK,UAAU,CAAC,gBAAgB,CAAC,SAAS,IAAI,KAAK,YAAY,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAG,OAAoB,EAAK,EAAO,IAAI,CAAC,aAAa,EAAiB,aAAa,EAAiB,QAAQ,EAAS,QAAQ,CAAC,gBAAgB,UAAU,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,aAAa,OAAO,OAAO,QAAQ,CAAC,CAAC,sBAAv0B,IAA4B,IAA+C"}