{"version":3,"file":"Gradient.HMJG64dk.mjs","names":[],"sources":["https:/framerusercontent.com/modules/bnKuVZdNhYEUHYOJ2Q4y/7uzG6YnYfNtPkjy4KWtQ/Gradient.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Framer Text com Quebra de Linha\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 40\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function FramerText(props){const{before,highlight,after,highlight2,beforeColor,highlightColors,afterColor,highlight2Color,font,tag=\"h1\",style}=props;// Gradiente para o Highlight\nlet highlightGradient=\"\";if(Array.isArray(highlightColors)&&highlightColors.length>1){highlightGradient=`linear-gradient(90deg, ${highlightColors.map((c,i)=>`${c} ${Math.round(i/(highlightColors.length-1)*100)}%`).join(\", \")})`;}// Função auxiliar para quebrar linhas\nconst splitText=text=>text?text.split(\"\\n\"):[];const beforeLines=splitText(before);const highlightLines=splitText(highlight);const afterLines=splitText(after);const highlight2Lines=splitText(highlight2);function renderLines(lines,styleObj){return lines.map((line,i)=>/*#__PURE__*/_jsxs(\"span\",{style:styleObj,children:[line,i<lines.length-1?/*#__PURE__*/_jsx(\"br\",{}):null]},i));}const Tag=tag;return /*#__PURE__*/_jsxs(Tag,{style:{...font,// CORREÇÃO AQUI: Mudamos de max-content para 100%\nwidth:\"100%\",minWidth:0,minHeight:0,display:\"block\",margin:0,// CORREÇÃO AQUI: Permite quebra de linha natural + manual\nwhiteSpace:\"pre-wrap\",wordWrap:\"break-word\",...style},children:[renderLines(beforeLines,{color:beforeColor}),\" \",renderLines(highlightLines,highlightGradient?{background:highlightGradient,WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",backgroundClip:\"text\",display:\"inline\"}:{color:highlightColors[0]}),\" \",renderLines(afterLines,{color:afterColor}),\" \",renderLines(highlight2Lines,{color:highlight2Color})]});}addPropertyControls(FramerText,{before:{type:ControlType.String,title:\"Before\",defaultValue:\"Before \",displayTextArea:true},highlight:{type:ControlType.String,title:\"Highlight\",defaultValue:\"Highlight\",displayTextArea:true},after:{type:ControlType.String,title:\"After\",defaultValue:\" After\",displayTextArea:true},highlight2:{type:ControlType.String,title:\"Highlight 2\",defaultValue:\"\",displayTextArea:true},beforeColor:{type:ControlType.Color,title:\"Before Color\",defaultValue:\"#000000\"},highlightColors:{type:ControlType.Array,title:\"Highlight Colors\",control:{type:ControlType.Color,defaultValue:\"#0099FF\"},maxCount:8,defaultValue:[\"#0099FF\",\"#FFBB00\"]},afterColor:{type:ControlType.Color,title:\"After Color\",defaultValue:\"#000000\"},highlight2Color:{type:ControlType.Color,title:\"Highlight 2 Color\",defaultValue:\"#FF5588\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1.2em\"}},tag:{type:ControlType.Enum,title:\"Tag\",options:[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"p\"],optionTitles:[\"H1\",\"H2\",\"H3\",\"H4\",\"H5\",\"H6\",\"Paragraph\"],defaultValue:\"h1\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"200\",\"framerIntrinsicHeight\":\"40\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Gradient.map"],"mappings":"mKAQG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,SAAO,YAAU,QAAM,aAAW,cAAY,kBAAgB,aAAW,kBAAgB,OAAK,MAAI,KAAK,SAAO,EAC7J,EAAkB,GAAM,MAAM,QAAQ,EAAgB,EAAE,EAAgB,OAAO,IAA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