{"version":3,"file":"TextUnderlined.Do3SRdLb.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/avZwzrQIcbwaD32t4Iqg/ugqdwPofyWQhIfSNfG6x/TextUnderlined.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function CustomTitle({title,highlightText,textAlign,color,underlineImage,fontSize,underlineImagePosition}){const splittedTitle=title.split(highlightText)??[\"\",\"\"];let formattedText=title;if(highlightText&&splittedTitle.length>1){formattedText=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{children:splittedTitle[0]}),/*#__PURE__*/_jsxs(\"span\",{className:\"highlight-text\",style:{position:\"relative\",display:\"inline-block\"},children:[highlightText,/*#__PURE__*/_jsx(\"img\",{src:underlineImage,className:\"highlight-line\",style:{...highlightLineStyle,bottom:underlineImagePosition},alt:\"\"})]}),/*#__PURE__*/_jsx(\"span\",{children:splittedTitle[1]})]});}return /*#__PURE__*/_jsx(\"h1\",{className:\"custom-title\",style:{...h1Style,fontSize:fontSize,textAlign:textAlign,color:color},children:formattedText});}CustomTitle.defaultProps={title:\"Tous les outils pour construire une relation client intelligente.\",highlightText:\"intelligente.\",textAlign:\"center\",color:\"#000\",underlineImage:\"/mnt/data/Capture d’\\xe9cran 2024-08-08 \\xe0 16.50.33.png\",fontSize:\"55px\",underlineImagePosition:\"-40px\"};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:\"Color\"},underlineImage:{type:ControlType.Image,title:\"Underline Image\"},fontSize:{type:ControlType.String,title:\"Font Size\",defaultValue:\"55px\"},underlineImagePosition:{type:ControlType.String,title:\"Underline Image Position\",defaultValue:\"-40px\"}});const h1Style={fontFamily:\"Volkhov\",lineHeight:\"1.2\",margin:0,padding:0,position:\"relative\",paddingBottom:20};const highlightLineStyle={position:\"absolute\",width:\"100%\",height:\"auto\",left:0,zIndex:-1};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomTitle\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextUnderlined.map"],"mappings":"+OAAmI,SAAwB,EAAY,CAAC,QAAM,gBAAc,YAAU,QAAM,iBAAe,WAAS,yBAAuB,CAAC,CAAC,IAAM,EAAc,EAAM,MAAM,IAAgB,CAAC,GAAG,GAAG,CAAK,EAAc,EAAse,OAA7d,GAAe,EAAc,OAAO,IAAG,EAA2B,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,OAAO,CAAC,SAAS,EAAc,GAAG,EAAe,EAAM,OAAO,CAAC,UAAU,iBAAiB,MAAM,CAAC,SAAS,WAAW,QAAQ,eAAe,CAAC,SAAS,CAAC,EAA2B,EAAK,MAAM,CAAC,IAAI,EAAe,UAAU,iBAAiB,MAAM,CAAC,GAAG,EAAmB,OAAO,EAAuB,CAAC,IAAI,GAAG,EAAE,CAAC,EAAe,EAAK,OAAO,CAAC,SAAS,EAAc,GAAG,EAAE,CAAC,GAAuB,EAAK,KAAK,CAAC,UAAU,eAAe,MAAM,CAAC,GAAG,EAAiB,WAAmB,YAAgB,QAAM,CAAC,SAAS,EAAc,CAAG,6BAAY,aAAa,CAAC,MAAM,oEAAoE,cAAc,gBAAgB,UAAU,SAAS,MAAM,OAAO,eAAe,sDAA4D,SAAS,OAAO,uBAAuB,QAAQ,CAAC,EAAoB,EAAY,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,CAAC,cAAc,CAAC,KAAK,EAAY,OAAO,MAAM,iBAAiB,CAAC,UAAU,CAAC,KAAK,EAAY,KAAK,aAAa,SAA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