{"version":3,"file":"wavetextanimation_2.ynyfUO2G.mjs","names":[],"sources":["https:/framerusercontent.com/modules/HAgHtDvrQn0bZ8g6P9Aw/cwq4VDFpqXSHVsVgxM5K/wavetextanimation_2.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";let styleInjected=false;function ensureStyles(){if(typeof document===\"undefined\"||styleInjected)return;const el=document.createElement(\"style\");el.textContent=`\n    .notranslate, [translate=\"no\"] { display: inline !important; visibility: visible !important; opacity: 1 !important; }\n    .notranslate *, [translate=\"no\"] * { visibility: visible !important; opacity: 1 !important; }\n    .notranslate font, [translate=\"no\"] font { display: inline !important; visibility: visible !important; opacity: 1 !important; }\n    .notranslate > font:not([class]):not([translate]), [translate=\"no\"] > font:not([class]):not([translate]) { display: none !important; }\n  `;document.head.appendChild(el);styleInjected=true;}/**\n * WAVE TEXT COMPONENT\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 100\n */export default function WaveText(props){const{text,amplitude,speed,stagger,typography}=props;React.useEffect(()=>{ensureStyles();},[]);const{font,textAlign,color}=typography;const letters=Array.from(String(text??\"\"));const alignMap={left:\"flex-start\",center:\"center\",right:\"flex-end\"};return /*#__PURE__*/_jsx(\"div\",{translate:\"no\",className:\"notranslate\",style:{display:\"flex\",justifyContent:alignMap[textAlign]||\"center\",alignItems:\"center\",overflow:\"hidden\",paddingTop:amplitude+10,width:\"100%\",// Applies the selected Framer font\n...font,color},children:letters.map((letter,index)=>/*#__PURE__*/_jsx(motion.span,{style:{display:\"inline-block\",whiteSpace:\"pre\"},animate:{y:[0,-amplitude,0]},transition:{duration:speed,repeat:Infinity,ease:\"easeInOut\",delay:index*stagger},children:letter},index))});}addPropertyControls(WaveText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"WAVE\",displayTextArea:true},typography:{type:ControlType.Object,title:\"Typography\",controls:{font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:64,variant:\"Bold\",letterSpacing:0,lineHeight:\"1.2em\"}},textAlign:{type:ControlType.Enum,title:\"Align\",defaultValue:\"center\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#333333\"}}},amplitude:{type:ControlType.Number,title:\"Height\",defaultValue:20,min:0,max:100},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:2,min:.1,max:10,step:.1,unit:\"s\"},stagger:{type:ControlType.Number,title:\"Delay\",defaultValue:.2,min:0,max:1,step:.05}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WaveText\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"200\",\"framerIntrinsicHeight\":\"100\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./wavetextanimation_2.map"],"mappings":"2NAAqL,SAAS,GAAc,CAAC,GAAG,OAAO,SAAW,KAAa,EAAc,OAAO,IAAM,EAAG,SAAS,cAAc,OAAO,EAAE,EAAG,YAAY;;;;;IAKxT,SAAS,KAAK,YAAY,CAAE,EAAE,EAAc,EAAK,CAKlD,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,OAAK,YAAU,QAAM,UAAQ,cAAY,EAAM,MAAoB,CAAC,EAAa,CAAE,EAAE,CAAC,CAAC,EAAE,GAAK,CAAC,OAAK,YAAU,SAAO,EAAiB,EAAQ,MAAM,KAAK,OAAO,GAAM,EAAE,CAAC,EAAsE,OAAoB,EAAK,MAAM,CAAC,UAAU,KAAK,UAAU,cAAc,MAAM,CAAC,QAAQ,OAAO,eAAe,CAAhK,KAAK,aAAa,OAAO,SAAS,MAAM,UAA+H,EAAE,IAAY,SAAS,WAAW,SAAS,SAAS,SAAS,WAAW,EAAU,GAAG,MAAM,OAC9e,GAAG,E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