{"version":3,"file":"cO_padWkr.CPonIaGe.mjs","names":["useMemo","React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","Image","__esmMin","init_npm_react_18_3_1","ie","x","oe","pe","init_jsx_runtime","H","J","c","de","motion","LayoutGroup","MotionConfigContext","init_framer_motion_DhsWWWsN","addFonts","cx","getLoadingLazyAtYPosition","init_framer_DKgW_P28","useVariantState","ControlType","useComponentViewport","Image$1","useLocaleInfo","withCSS","addPropertyControls","GradientHeadline","props","highlightList","highlightWords","w","wordRegex","words","text","renderWords","word","i","result","str","lastIndex","highlightRegex","match","idx","gradientAngle","gradientFrom","gradientTo","font","Tag","tagOptions","tag","isFixedWidth","style","elementStyle","textColor","init_GradientHeadline_1","t","serializationHash","variantClassNames","transition1","toResponsiveImage","Transition","Variants","getProps","createLayoutDependency","FramercO_padWkr","init_cO_padWkr","value","config","transition","contextValue","image","variants","fallbackRef","refBinding","ref","defaultLayoutId","componentViewport","restProps","layoutDependency","scopingClassNames","layoutId","gestureHandlers","className","classNames","SotYPCqJB"],"sources":["https:/framerusercontent.com/modules/vLKD4XiYBchIErqrpzoL/TquL3YnWGlV5agFPUvCP/GradientHeadline_1.js","https:/framerusercontent.com/modules/MJ4NIRYRtmKJOXIciUhN/tDUPdd4wfPdjbKxkQrlK/cO_padWkr.js"],"sourcesContent":["// Headline component with gradient highlight for selected words, tag selection, full font controls, and reusable text via prop\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo,createElement}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const tagOptions=[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"p\"];/**\n * Headline with Gradient Highlight\n *\n * - Select tag (h1-h6, p)\n * - Full font controls\n * - Highlight single/multiple words with gradient\n * - Text is reusable via prop\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function GradientHeadline(props){const{text,tag,highlightWords,gradientFrom,gradientTo,gradientAngle,font,style,textColor}=props;// Parse highlightWords (comma-separated or array)\nconst highlightList=useMemo(()=>{if(!highlightWords)return[];if(Array.isArray(highlightWords))return highlightWords;return highlightWords.split(\",\").map(w=>w.trim()).filter(Boolean);},[highlightWords]);// Split text into words, preserving spaces\nconst wordRegex=/\\S+|\\s+/g;const words=useMemo(()=>{if(!text)return[];return text.match(wordRegex)||[];},[text]);// Render with highlights\nconst renderWords=()=>{if(!highlightList.length)return words.map((word,i)=>/*#__PURE__*/_jsx(\"span\",{children:word},i));// Join all words into a string, find all highlight substrings, and split accordingly\nlet result=[];let str=text;let lastIndex=0;// Build a regex to match any of the highlight phrases (escape special chars)\nconst highlightRegex=new RegExp(highlightList.map(w=>w.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")).join(\"|\"),\"gi\");let match;let idx=0;while((match=highlightRegex.exec(str))!==null){if(match.index>lastIndex){result.push(/*#__PURE__*/_jsx(\"span\",{children:str.slice(lastIndex,match.index)},idx++));}result.push(/*#__PURE__*/_jsx(\"span\",{style:{backgroundImage:`linear-gradient(${gradientAngle}deg, ${gradientFrom}, ${gradientTo})`,WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",backgroundClip:\"text\",color:undefined,fontWeight:font?.variant?.includes(\"Bold\")?\"bold\":undefined},children:match[0]},idx++));lastIndex=match.index+match[0].length;}if(lastIndex<str.length){result.push(/*#__PURE__*/_jsx(\"span\",{children:str.slice(lastIndex)},idx++));}return result;};const Tag=tagOptions.includes(tag)?tag:\"h1\";// Check if width is set to 100% (fill mode) or auto (fit content mode)\nconst isFixedWidth=style?.width===\"100%\";const elementStyle={...style,...font,margin:0,width:isFixedWidth?\"100%\":\"max-content\",minWidth:isFixedWidth?undefined:\"max-content\",display:isFixedWidth?\"block\":\"inline-block\",color:textColor};return /*#__PURE__*/createElement(Tag,{style:elementStyle},renderWords());}addPropertyControls(GradientHeadline,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"This is a gradient headline\",displayTextArea:true},tag:{type:ControlType.Enum,title:\"Tag\",options:tagOptions,optionTitles:tagOptions.map(t=>t.toUpperCase()),defaultValue:\"h1\"},highlightWords:{type:ControlType.String,title:\"Highlight Words\",placeholder:\"word1, word2\",defaultValue:\"gradient\",description:\"Comma-separated words to highlight\"},gradientFrom:{type:ControlType.Color,title:\"Gradient From\",defaultValue:\"#0099FF\"},gradientTo:{type:ControlType.Color,title:\"Gradient To\",defaultValue:\"#FF5588\"},gradientAngle:{type:ControlType.Number,title:\"Gradient Angle\",defaultValue:90,min:0,max:360,unit:\"deg\",step:1,displayStepper:true},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"}},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GradientHeadline\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GradientHeadline_1.map","// Generated by Framer (bab6da3)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,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-2e4iv\";const variantClassNames={cf8kiDuji:\"framer-v-103n53\"};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 toResponsiveImage=value=>{if(typeof value===\"object\"&&value!==null&&typeof value.src===\"string\"){return value;}return typeof value===\"string\"?{src:value}:undefined;};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,image,width,...props})=>{return{...props,SotYPCqJB:image??props.SotYPCqJB??{alt:\"Client image\",pixelHeight:37,pixelWidth:116,src:\"https://framerusercontent.com/images/YYV5QoPK9M9NhyUxptVvm0o7WFM.svg\"}};};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,SotYPCqJB,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"cf8kiDuji\",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-103n53\",className,classNames),\"data-framer-name\":\"Client Image\",layoutDependency:layoutDependency,layoutId:\"cf8kiDuji\",ref:refBinding,style:{...style},children:/*#__PURE__*/_jsx(Image,{background:{alt:\"\",fit:\"fit\",loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+(0+((componentViewport?.height||36)-0-((componentViewport?.height||36)-0)*1)/2)),pixelHeight:37,pixelWidth:116,sizes:`max(${componentViewport?.width||\"100vw\"}, 1px)`,...toResponsiveImage(SotYPCqJB),...{positionX:\"center\",positionY:\"center\"}},className:\"framer-bug826\",layoutDependency:layoutDependency,layoutId:\"TcPSuEkBx\"})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-2e4iv.framer-1gnx66p, .framer-2e4iv .framer-1gnx66p { display: block; }\",\".framer-2e4iv.framer-103n53 { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: 36px; justify-content: center; overflow: hidden; padding: 0px; position: relative; width: 114px; }\",\".framer-2e4iv .framer-bug826 { flex: 1 0 0px; height: 100%; overflow: hidden; position: relative; width: 1px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 36\n * @framerIntrinsicWidth 114\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"SotYPCqJB\":\"image\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramercO_padWkr=withCSS(Component,css,\"framer-2e4iv\");export default FramercO_padWkr;FramercO_padWkr.displayName=\"Client Image\";FramercO_padWkr.defaultProps={height:36,width:114};addPropertyControls(FramercO_padWkr,{SotYPCqJB:{__defaultAssetReference:\"data:framer/asset-reference,YYV5QoPK9M9NhyUxptVvm0o7WFM.svg?originalFilename=client-1.svg&preferredSize=auto\",__vekterDefault:{alt:\"Client image\",assetReference:\"data:framer/asset-reference,YYV5QoPK9M9NhyUxptVvm0o7WFM.svg?originalFilename=client-1.svg&preferredSize=auto\"},title:\"Image\",type:ControlType.ResponsiveImage}});addFonts(FramercO_padWkr,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramercO_padWkr\",\"slots\":[],\"annotations\":{\"framerVariables\":\"{\\\"SotYPCqJB\\\":\\\"image\\\"}\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicHeight\":\"36\",\"framerDisplayContentsDiv\":\"false\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicWidth\":\"114\",\"framerComponentViewportWidth\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerContractVersion\":\"1\",\"framerColorSyntax\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./cO_padWkr.map"],"mappings":"A,+UAWG,SAAwBkC,EAAiB,EAAM,CAAC,GAAK,CAAC,OAAK,MAAI,iBAAe,eAAa,aAAW,gBAAc,OAAK,QAAM,aAAWC,EACvIC,EAAcpC,MAAiBqC,EAA2B,MAAM,QAAQA,CAAc,EAASA,EAAsBA,EAAe,MAAM,GAAG,CAAC,CAAC,IAAI,GAAGC,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,EAA1H,CAAC,EAA6H,CAACD,CAAc,CAAC,EAClME,EAAU,WAAiBC,EAAMxC,MAAiByC,GAAqBA,EAAK,MAAMF,CAAS,GAAG,CAAC,EAAI,CAACE,CAAI,CAAC,EACzGC,MAAgB,CAAC,GAAG,CAACN,EAAc,OAAO,OAAOI,EAAM,KAAK,EAAK,IAAiB,gBAAK,OAAO,CAAC,SAASG,CAAI,EAAEC,CAAC,CAAC,EACtH,IAAIC,EAAO,CAAC,EAAMC,EAAIL,EAASM,EAAU,EACnCC,EAAe,IAAI,OAAOZ,EAAc,IAAI,GAAGE,EAAE,QAAQ,sBAAsB,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,IAAI,EAAMW,EAAUC,EAAI,EAAE,MAAO,EAAMF,E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