{"version":3,"file":"ShimmerWaveTextComponent.BtlCBJ7e.mjs","names":["useId","useMemo"],"sources":["https:/framerusercontent.com/modules/yf20qvLsaZlVQ1YH6pFb/ZA4dghhncHTB8lvq4YlF/ShimmerWaveTextComponent.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useId,useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Shimmer Wave Text\n *\n * Per-character wave + color shimmer loop, matching the \"all-in-one\" hero treatment.\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function ShimmerWaveText(props){const{text=\"all-in-one\",baseColor=\"#867E7E\",shimmerColor=\"#6DFFFF\",duration=1.5,waveOffset=-3,font,style}=props;const rawId=useId().replace(/[^a-zA-Z0-9]/g,\"\");const waveName=`debutWave${rawId}`;const shimmerName=`debutShimmer${rawId}`;const letterClass=`debutWaveLetter${rawId}`;const chars=useMemo(()=>text.split(\"\"),[text]);const total=chars.length;return /*#__PURE__*/_jsxs(\"span\",{style:{position:\"relative\",display:\"inline-block\",...style,...font},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n        @keyframes ${waveName} {\n          0%, 100% { transform: translateY(0px); }\n          50% { transform: translateY(${waveOffset}px); }\n        }\n        @keyframes ${shimmerName} {\n          0%, 10%, 90%, 100% { color: ${baseColor}; }\n          50% { color: ${shimmerColor}; }\n        }\n        .${letterClass} {\n          display: inline-block;\n          white-space: pre;\n          color: ${baseColor};\n          animation:\n            ${waveName} ${duration}s ease-in-out infinite,\n            ${shimmerName} ${duration}s ease-in-out infinite;\n          will-change: transform, color;\n        }\n        @media (prefers-reduced-motion: reduce) {\n          .${letterClass} { animation: none; }\n        }\n      `}),chars.map((char,i)=>{const phase=total>0?(.5-i/total+1)%1:0;const delay=(-phase*duration).toFixed(3);return /*#__PURE__*/_jsx(\"span\",{className:letterClass,style:{animationDelay:`${delay}s, ${delay}s`},children:char===\" \"?\"\\xa0\":char},i);})]});}addPropertyControls(ShimmerWaveText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"all-in-one\"},font:{type:ControlType.Font,title:\"Typography\",controls:\"extended\",defaultFontType:\"sans-serif\",displayTextAlignment:true,displayFontSize:true,defaultValue:{textAlign:\"left\",fontSize:\"24px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.5em\"}},baseColor:{type:ControlType.Color,title:\"Base Color\",defaultValue:\"#867E7E\"},shimmerColor:{type:ControlType.Color,title:\"Shimmer Color\",defaultValue:\"#6DFFFF\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:1.5,min:.3,max:5,step:.1,unit:\"s\"},waveOffset:{type:ControlType.Number,title:\"Wave Offset\",defaultValue:-3,min:-20,max:20,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ShimmerWaveText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ShimmerWaveTextComponent.map"],"mappings":"mLAOG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,OAAK,aAAa,YAAU,UAAU,eAAa,UAAU,WAAS,IAAI,aAAW,GAAG,OAAK,SAAO,EAAY,EAAMA,EAAM,CAAC,CAAC,QAAQ,gBAAgB,EAAE,EAAQ,EAAS,YAAY,IAAc,EAAY,eAAe,IAAc,EAAY,kBAAkB,IAAc,EAAMC,MAAY,EAAK,MAAM,EAAE,EAAE,CAAC,CAAI,CAAC,EAAQ,EAAM,EAAM,OAAO,OAAoB,EAAM,OAAO,CAAC,MAAM,CAAC,SAAS,WAAW,QAAQ,eAAe,GAAG,EAAM,GAAG,CAAI,EAAE,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;qBACjhB,EAAS;;wCAEU,EAAW;;qBAE9B,EAAY;wCACO,EAAU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