{"version":3,"file":"TextWithHighlight.DFz8DA4I.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","Image"],"sources":["https:/framerusercontent.com/modules/zX7H4IDxUhpHKhxY7yIn/eDoQZGzM6yRUcWvWHOcs/r0hpjfQXo.js","https:/framerusercontent.com/modules/HtLiJaWXrdYLlZ3WUQ8U/InGDjt3CrhvhZYc6hb1H/TextWithHighlight.js"],"sourcesContent":["// Generated by Framer (f8e3bf6)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,cx,getLoadingLazyAtYPosition,Image,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const serializationHash=\"framer-1bPx7\";const variantClassNames={vkueXjxfk:\"framer-v-3sgnrr\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"vkueXjxfk\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-3sgnrr\",className,classNames),\"data-framer-name\":\"desktop\",layoutDependency:layoutDependency,layoutId:\"vkueXjxfk\",ref:refBinding,style:{background:\"linear-gradient(46deg, rgb(67, 209, 0) 0%, rgb(156, 247, 19) 100%)\",borderBottomLeftRadius:8,borderBottomRightRadius:8,borderTopLeftRadius:8,borderTopRightRadius:8,...style},children:/*#__PURE__*/_jsx(Image,{background:{alt:\"\",fit:\"fill\",loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+(4+((componentViewport?.height||40)-8-((componentViewport?.height||40)-8)*1)/2)),pixelHeight:32,pixelWidth:32,src:\"https://framerusercontent.com/images/rH0SSXVqJwQeAwNxelBDNuxBcu0.svg\"},className:\"framer-1uywydu\",layoutDependency:layoutDependency,layoutId:\"e4Vs4CG8w\"})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-1bPx7.framer-1o0awde, .framer-1bPx7 .framer-1o0awde { display: block; }\",\".framer-1bPx7.framer-3sgnrr { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: 40px; justify-content: center; overflow: hidden; padding: 4px; position: relative; width: 40px; will-change: var(--framer-will-change-override, transform); }\",\".framer-1bPx7 .framer-1uywydu { flex: 1 0 0px; height: 100%; overflow: hidden; position: relative; width: 1px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 40\n * @framerIntrinsicWidth 40\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const Framerr0hpjfQXo=withCSS(Component,css,\"framer-1bPx7\");export default Framerr0hpjfQXo;Framerr0hpjfQXo.displayName=\"audience icon\";Framerr0hpjfQXo.defaultProps={height:40,width:40};addFonts(Framerr0hpjfQXo,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Framerr0hpjfQXo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicHeight\":\"40\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicWidth\":\"40\",\"framerComponentViewportWidth\":\"true\",\"framerColorSyntax\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./r0hpjfQXo.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function HighlightedParagraph(props){// Split text by { } to detect highlighted parts\nconst parts=props.text.split(/(\\{.*?\\})/g);return /*#__PURE__*/_jsx(\"p\",{style:{...props.style,fontFamily:props.font.fontFamily,fontWeight:props.font.fontWeight,fontSize:props.font.fontSize,lineHeight:props.font.lineHeight,letterSpacing:props.font.letterSpacing,color:props.fontColor,textAlign:props.textAlign,margin:0},children:parts.map((part,index)=>{if(part.startsWith(\"{\")&&part.endsWith(\"}\")){return /*#__PURE__*/_jsx(\"span\",{style:{backgroundColor:props.highlightColor,padding:\"0.2em\",borderRadius:\"0.2em\"},children:part.slice(1,-1)},index);}return /*#__PURE__*/_jsx(\"span\",{children:part},index);})});}HighlightedParagraph.displayName=\"Highlighted Paragraph\";addPropertyControls(HighlightedParagraph,{text:{type:ControlType.String,defaultValue:\"This is a paragraph with a {highlighted part}. You can also have multiple {highlighted words}.\",displayTextArea:true},highlightColor:{type:ControlType.Color,defaultValue:\"#E0FFA6\"},fontColor:{type:ControlType.Color,defaultValue:\"#000\"},font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:16,lineHeight:1.6}},textAlign:{type:ControlType.Enum,defaultValue:\"left\",options:[\"left\",\"center\",\"right\",\"justify\"],optionTitles:[\"Left\",\"Center\",\"Right\",\"Justify\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HighlightedParagraph\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextWithHighlight.map"],"mappings":"wWAC2C,IAA2H,IAAkE,IAA4B,CAAgC,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,CAA8L,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,KAAK,UAAU,EAAW,CAAC,CAAC,CAAC,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,WAAS,CAAC,EAAS,EAAS,EAAO,OAAOC,EAAe,CAAO,GAAU,CAAC,SAAO,KAAG,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,EAAS,GAAwB,EAAM,IAAe,EAAM,iB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