{"version":3,"file":"GradientShiftText.Bi9rV9YO.mjs","names":["__esmMin","p","c","init_jsx_runtime","init_framer_Duogf4LG","addPropertyControls","GradientShiftText","props","Tag","tag","fromString","colorList","list","colors","gradient","style","align","font","duration","text","init_GradientShiftText","ControlType"],"sources":["https:/framerusercontent.com/modules/ekb3ioizS78NDTUQBl66/imjkKA2Rip7HvD6Zmj5g/GradientShiftText.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Text filled with a gradient that slowly drifts back and forth.\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function GradientShiftText(props){const{text,font,colors,duration,colorList,align,tag,style}=props;const Tag=tag||\"div\";const fromString=(colorList||\"\").split(\",\").map(c=>c.trim()).filter(Boolean);const list=fromString.length>1?fromString:colors&&colors.length>1?colors:[\"#B8320F\",\"#E8461E\",\"#EF8532\",\"#F19F39\",\"#F5BC41\"];const stops=[...list,...list.slice(0,-1).reverse()];const gradient=\"linear-gradient(90deg, \"+stops.join(\", \")+\")\";return /*#__PURE__*/_jsxs(Tag,{style:{...style,width:\"100%\",textAlign:align||\"left\",textWrap:\"balance\",margin:0,padding:0,font:\"inherit\",letterSpacing:\"inherit\",color:\"inherit\"},children:[/*#__PURE__*/_jsx(\"style\",{children:\"@keyframes cvGradShift{0%{background-position:0% 50%}100%{background-position:100% 50%}}\"}),/*#__PURE__*/_jsx(\"span\",{style:{...font,display:\"inline\",margin:0,backgroundImage:gradient,backgroundSize:\"400% 100%\",WebkitBackgroundClip:\"text\",backgroundClip:\"text\",WebkitTextFillColor:\"transparent\",color:\"transparent\",animation:\"cvGradShift \"+duration+\"s ease-in-out infinite alternate\"},children:text})]});}GradientShiftText.defaultProps={text:\"We’re celebrating 10 years of God’s faithfulness.\",colors:[\"#B8320F\",\"#E8461E\",\"#EF8532\",\"#F19F39\",\"#F5BC41\"],duration:8};addPropertyControls(GradientShiftText,{text:{type:ControlType.String,displayTextArea:true,defaultValue:\"We’re celebrating 10 years of God’s faithfulness.\"},font:{type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:48,lineHeight:\"1.05em\",letterSpacing:\"-0.04em\"}},colorList:{type:ControlType.String,title:\"Colours\",placeholder:\"#B8320F, #E8461E, #F5BC41\"},align:{type:ControlType.Enum,title:\"Align\",options:[\"left\",\"center\",\"right\"],defaultValue:\"left\",displaySegmentedControl:true},tag:{type:ControlType.Enum,title:\"Tag\",options:[\"div\",\"h1\",\"h2\",\"h3\",\"p\"],defaultValue:\"div\"},duration:{type:ControlType.Number,min:2,max:30,step:1,unit:\"s\",defaultValue:8}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GradientShiftText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GradientShiftText.map"],"mappings":"A,8JAIG,SAAwBM,EAAkB,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,SAAO,WAAS,YAAU,QAAM,MAAI,SAAOC,EAAYC,EAAIC,GAAK,MAAYC,GAAYC,GAAW,GAAA,CAAI,MAAM,GAAG,CAAC,CAAC,IAAI,GAAGT,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,EAAQU,EAAKF,EAAW,OAAO,EAAEA,EAAWG,GAAQA,EAAO,OAAO,EAAEA,EAAO,CAAC,UAAU,UAAU,UAAU,UAAU,SAAS,EAA4DC,EAAS,0BAA0B,CAAhF,GAAGF,EAAK,GAAGA,EAAK,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAgD,CAAC,CAAC,KAAK,IAAI,EAAE,IAAI,MAAoB,gBAAMJ,EAAI,CAAC,MAAM,CAAC,GAAGO,EAAM,MAAM,OAAO,UAAUC,GAAO,OAAO,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