{"version":3,"file":"GradientWordText.4O8kYSMJ.mjs","names":["__esmMin","init_jsx_runtime","c","p","addPropertyControls","init_framer_DKtAEkcX","ControlType","GradientWordText","props","safeText","text","start","highlight","before","selected","after","baseStyle","style","align","startColor","middleColor","middleColorTwo","endColor","init_GradientWordText"],"sources":["https:/framerusercontent.com/modules/Rc1J6L74zsaXRcLXVMOf/mXMkjFrR4GXflgEDkPAg/GradientWordText.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function GradientWordText(props){const{text,highlight,startColor,middleColor,middleColorTwo,endColor,color,fontSize,fontWeight,align,style}=props;const safeText=text||\"\";const start=highlight?safeText.indexOf(highlight):-1;const before=start>=0?safeText.slice(0,start):safeText;const selected=start>=0?safeText.slice(start,start+highlight.length):\"\";const after=start>=0?safeText.slice(start+highlight.length):\"\";const baseStyle={...style,margin:0,color,fontFamily:\"Inter Display, Inter, sans-serif\",fontSize,fontWeight,letterSpacing:\"-0.045em\",lineHeight:1.05,textAlign:align};return /*#__PURE__*/_jsxs(\"div\",{style:baseStyle,children:[before,selected&&/*#__PURE__*/_jsx(\"span\",{style:{backgroundImage:`linear-gradient(105deg, ${startColor} 0%, ${middleColor} 35%, ${middleColorTwo} 68%, ${endColor} 100%)`,backgroundClip:\"text\",WebkitBackgroundClip:\"text\",color:\"transparent\"},children:selected}),after]});}GradientWordText.defaultProps={text:\"Get lifetime deal 🔥 now on 75% off on Black Friday offer\",highlight:\"75% off\",startColor:\"#FFB457\",middleColor:\"#FFD56A\",middleColorTwo:\"#FFF0A4\",endColor:\"#FFEE93\",color:\"#F4F4FF\",fontSize:48,fontWeight:600,align:\"center\"};addPropertyControls(GradientWordText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Get lifetime deal 🔥 now on 75% off on Black Friday offer\",displayTextArea:true},highlight:{type:ControlType.String,title:\"Gradient word\",defaultValue:\"75% off\"},startColor:{type:ControlType.Color,title:\"Start\",defaultValue:\"#FFB457\"},middleColor:{type:ControlType.Color,title:\"Middle 1\",defaultValue:\"#FFD56A\"},middleColorTwo:{type:ControlType.Color,title:\"Middle 2\",defaultValue:\"#FFF0A4\"},endColor:{type:ControlType.Color,title:\"End\",defaultValue:\"#FFEE93\"},color:{type:ControlType.Color,title:\"Text color\",defaultValue:\"#F4F4FF\"},fontSize:{type:ControlType.Number,title:\"Size\",defaultValue:48,min:12,max:160,step:1,unit:\"px\"},fontWeight:{type:ControlType.Number,title:\"Weight\",defaultValue:600,min:400,max:800,step:100},align:{type:ControlType.Enum,title:\"Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"center\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GradientWordText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GradientWordText.map"],"mappings":"A,oKAGG,SAAwBO,EAAiB,EAAM,CAAC,GAAK,CAAC,OAAK,YAAU,aAAW,cAAY,iBAAe,WAAS,QAAM,WAAS,aAAW,QAAM,SAAOC,EAAYC,EAASC,GAAM,GAASC,EAAMC,EAAUH,EAAS,QAAQG,CAAS,EAAE,GAASC,EAAOF,GAAO,EAAEF,EAAS,MAAM,EAAEE,CAAK,EAAEF,EAAeK,EAASH,GAAO,EAAEF,EAAS,MAAME,EAAMA,EAAMC,EAAU,MAAM,EAAE,GAASG,EAAMJ,GAAO,EAAEF,EAAS,MAAME,EAAMC,EAAU,MAAM,EAAE,GAASI,EAAU,CAAC,GAAGC,EAAM,OAAO,EAAE,QAAM,WAAW,mCAAmC,WAAS,aAAW,cAAc,WAAW,WAAW,KAAK,UAAUC,CAAK,EAAE,MAAoB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