{"version":3,"file":"TextUnderlined.Bl-RvopG.mjs","names":["React"],"sources":["https:/framerusercontent.com/modules/avZwzrQIcbwaD32t4Iqg/3NPkAt0uZFegogvyJcM5/TextUnderlined.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import React from\"react\";export default function CustomTitle({title,highlightText,textAlign,color,highlightColor,fontSize}){// Si le mot à mettre en valeur n'est pas défini, afficher le texte complet\nif(!highlightText||!title.includes(highlightText)){return /*#__PURE__*/_jsx(\"h1\",{style:{...h1Style,fontSize,textAlign,color},children:title});}// Découpe le texte en parties autour du mot à colorer\nconst parts=title.split(highlightText);return /*#__PURE__*/_jsx(\"h1\",{className:\"custom-title\",style:{...h1Style,fontSize,textAlign,color},children:parts.map((part,index)=>/*#__PURE__*/_jsxs(React.Fragment,{children:[part,index<parts.length-1&&/*#__PURE__*/_jsx(\"span\",{style:{color:highlightColor,display:\"inline\"},children:highlightText})]},index))});}CustomTitle.defaultProps={title:\"Intelligente, la nouvelle relation client.\",highlightText:\"Intelligente\",textAlign:\"center\",color:\"#FFFFFF\",highlightColor:\"#0D70DE\",fontSize:\"55px\"};addPropertyControls(CustomTitle,{title:{type:ControlType.String,title:\"Title\"},highlightText:{type:ControlType.String,title:\"Highlight Text\"},textAlign:{type:ControlType.Enum,defaultValue:\"center\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"]},color:{type:ControlType.Color,title:\"Text Color\"},highlightColor:{type:ControlType.Color,title:\"Highlight Color\",defaultValue:\"#0D70DE\"},fontSize:{type:ControlType.String,title:\"Font Size\",defaultValue:\"55px\"}});const h1Style={fontFamily:\"Bricolage Grotesque, sans-serif\",lineHeight:\"1.2\",margin:0,padding:0};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomTitle\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":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