{"version":3,"file":"HighlightText.CniEhrUG.mjs","names":["_jsxs","_jsx","__esmMin","p","c","init_jsx_runtime","addPropertyControls","init_framer_ChujFWHC","HighlightText","props","text","highlight","color","highlightColor","highlightBackground","fontFamily","fontSize","fontWeight","highlightWeight","lineHeight","letterSpacing","style","i","before","mid","after","init_HighlightText","ControlType"],"sources":["https:/framerusercontent.com/modules/94I76wQ3YdB55X1qoc16/99o6tAkrJjRXlXw8PsVO/HighlightText.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// @framerSupportedLayoutWidth any-prefer-fixed\n// @framerSupportedLayoutHeight auto\nexport default function HighlightText(props){const{text=\"We finally trust the numbers we send the board.\",highlight=\"trust the numbers\",color=\"#3B1F3A\",highlightColor=\"#D9531C\",highlightBackground=\"#FFE6D8\",fontFamily=\"Newsreader\",fontSize=21,fontWeight=300,highlightWeight=400,lineHeight=1.4,letterSpacing=-.005,style}=props;const i=highlight?text.toLowerCase().indexOf(highlight.toLowerCase()):-1;const before=i>=0?text.slice(0,i):text;const mid=i>=0?text.slice(i,i+highlight.length):\"\";const after=i>=0?text.slice(i+highlight.length):\"\";return /*#__PURE__*/_jsxs(\"p\",{style:{...style,margin:0,width:\"100%\",fontFamily:`\"${fontFamily}\", serif`,fontSize,fontWeight,lineHeight,letterSpacing:`${letterSpacing}em`,color},children:[before,mid&&/*#__PURE__*/_jsx(\"span\",{style:{color:highlightColor,background:highlightBackground,fontWeight:highlightWeight,borderRadius:8,padding:\"1px 8px\",boxDecorationBreak:\"clone\",WebkitBoxDecorationBreak:\"clone\"},children:mid}),after]});}HighlightText.displayName=\"Highlight Text\";addPropertyControls(HighlightText,{text:{type:ControlType.String,title:\"Text\",displayTextArea:true,defaultValue:\"We finally trust the numbers we send the board.\"},highlight:{type:ControlType.String,title:\"Highlight\",defaultValue:\"trust the numbers\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#3B1F3A\"},highlightColor:{type:ControlType.Color,title:\"Chip text\",defaultValue:\"#D9531C\"},highlightBackground:{type:ControlType.Color,title:\"Chip fill\",defaultValue:\"#FFE6D8\"},fontFamily:{type:ControlType.String,title:\"Font\",defaultValue:\"Newsreader\"},fontSize:{type:ControlType.Number,title:\"Size\",defaultValue:21,min:10,max:80,unit:\"px\"},fontWeight:{type:ControlType.Number,title:\"Weight\",defaultValue:300,min:100,max:900,step:100},highlightWeight:{type:ControlType.Number,title:\"Chip weight\",defaultValue:400,min:100,max:900,step:100},lineHeight:{type:ControlType.Number,title:\"Line height\",defaultValue:1.4,min:.8,max:2,step:.05},letterSpacing:{type:ControlType.Number,title:\"Tracking\",defaultValue:-.005,min:-.1,max:.2,step:.005,unit:\"em\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HighlightText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"\",\"framerSupportedLayoutHeight\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HighlightText.map"],"mappings":"A,8JAEA,SAAwBQ,EAAcC,EAAM,CAAC,GAAK,CAACC,OAAK,kDAAkDC,YAAU,oBAAoBC,QAAM,UAAUC,iBAAe,UAAUC,sBAAoB,UAAUC,aAAW,aAAaC,WAAS,GAAGC,aAAW,IAAIC,kBAAgB,IAAIC,aAAW,IAAIC,gBAAc,MAAMC,SAAOZ,EAAYa,EAAEX,EAAUD,EAAK,YAAY,CAAC,CAAC,QAAQC,EAAU,YAAY,CAAC,EAAE,GAASY,EAAOD,GAAG,EAAEZ,EAAK,MAAM,EAAEY,CAAC,EAAEZ,EAAWc,EAAIF,GAAG,EAAEZ,EAAK,MAAMY,EAAEA,EAAEX,EAAU,MAAM,EAAE,GAASc,EAAMH,GAAG,EAAEZ,EAAK,MAAMY,EAAEX,EAAU,MAAM,EAAE,GAAG,MAAoBX,gBAAM,IAAI,CAAC,MAAM,CA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