{"version":3,"file":"HighlightedText.C3ALUa8i.mjs","names":[],"sources":["https:/framerusercontent.com/modules/FuImxyfpGPhMCp0VaE9T/AEF5cnb3MC4nMCUDesji/HighlightedText.js"],"sourcesContent":["// Highlighted text component with gradient and visible noise background\n// Fix: Ensure noise pattern is visible above the gradient color\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * HighlightedText\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */function HighlightedText(props){const{text,highlight,textColor,font,highlightTextColor,style,gradientColor1=\"#FF62AB\",gradientColor2=\"#FD251B\"}=props;// Split text by highlight (first occurrence)\nconst highlightIndex=text.indexOf(highlight);let before=text;let after=\"\";let highlightPart=\"\";if(highlightIndex!==-1){before=text.slice(0,highlightIndex);highlightPart=text.slice(highlightIndex,highlightIndex+highlight.length);after=text.slice(highlightIndex+highlight.length);}// Noise pattern image\nconst noiseUrl=\"https://framerusercontent.com/images/apka50mMpVf4Iguqpl3FacLs24.png\";return /*#__PURE__*/_jsxs(\"div\",{style:{...style,width:\"100%\",color:textColor,background:\"transparent\",padding:0,fontFamily:font.fontFamily,fontSize:font.fontSize,fontWeight:font.fontWeight,lineHeight:font.lineHeight,letterSpacing:font.letterSpacing,fontStyle:font.fontStyle,textAlign:font.textAlign,wordBreak:\"break-word\",overflowWrap:\"break-word\",whiteSpace:\"pre-wrap\"},children:[before,highlightPart&&/*#__PURE__*/_jsx(\"span\",{style:{// Use two backgrounds: noise on top, gradient below\nbackgroundImage:`url(${noiseUrl}), linear-gradient(90deg, ${gradientColor1} 0%, ${gradientColor2} 100%)`,backgroundRepeat:\"repeat, no-repeat\",backgroundSize:\"auto 100%, 100% 100%\",backgroundBlendMode:\"overlay, normal\",color:highlightTextColor,borderRadius:0,boxDecorationBreak:\"clone\",WebkitBoxDecorationBreak:\"clone\",padding:\"0 4px\",margin:\"0 -2px\",display:\"inline\"},children:highlightPart}),after]});}addPropertyControls(HighlightedText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"As games evolve into social platforms, AI characters need to feel genuinely human in both their responsiveness and emotional depth. Cartesia's technology, with its ultra-low latency, natural voices, and precise emotional control, helps us create truly immersive worlds where AI characters feel alive and authentic.\",displayTextArea:true},highlight:{type:ControlType.String,title:\"Highlight\",defaultValue:\"Cartesia's technology, with its ultra-low latency, natural voices, and precise emotional control,\",displayTextArea:true},highlightTextColor:{type:ControlType.Color,title:\"Highlight Text\",defaultValue:\"#111\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#CCCCCC\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"48px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.1em\"}},gradientColor1:{type:ControlType.Color,title:\"From\",defaultValue:\"#FF62AB\"},gradientColor2:{type:ControlType.Color,title:\"To\",defaultValue:\"#FD251B\"}});export default HighlightedText;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HighlightedText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HighlightedText.map"],"mappings":"oKAOG,SAAS,EAAgB,EAAM,CAAC,GAAK,CAAC,OAAK,YAAU,YAAU,OAAK,qBAAmB,QAAM,iBAAe,UAAU,iBAAe,WAAW,EAC7I,EAAe,EAAK,QAAQ,EAAU,CAAK,EAAO,EAAS,EAAM,GAAO,EAAc,GACP,OADa,IAAiB,KAAI,EAAO,EAAK,MAAM,EAAE,EAAe,CAAC,EAAc,EAAK,MAAM,EAAe,EAAe,EAAU,OAAO,CAAC,EAAM,EAAK,MAAM,EAAe,EAAU,OAAO,EAC5K,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,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