{"version":3,"file":"Examples_3.f8c_ve7q.mjs","names":["addPropertyOverrides","enabledGestures","serializationHash","variantClassNames","transition1","Transition","React.useContext","React.useMemo","Variants","React.Fragment","getProps","createLayoutDependency","useRef","React.useId","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","React.useState"],"sources":["https:/framerusercontent.com/modules/o7g7SY6chRZt320cvzSs/lnYlhvWLcSHZvbUwCJQt/muXqvCtWJ.js","https:/framerusercontent.com/modules/GXnGTPzZfSO6Z7m5TWzg/pNNvpqHOBnPQ2sXX6BlA/sJ2j1647F.js","https:/framerusercontent.com/modules/rAcWwDHqN2dGzNWwZayO/7h8uTfxQI99pAp1BiK7c/Examples_3.js"],"sourcesContent":["// Generated by Framer (77d7dc9)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,cx,Link,SVG,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const enabledGestures={tx5H9_icO:{hover:true}};const serializationHash=\"framer-e5KxU\";const variantClassNames={tx5H9_icO:\"framer-v-1mrms20\"};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:\"tx5H9_icO\",enabledGestures,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(Link,{href:\"https://waitlist.naibor.ai/\",motionChild:true,nodeId:\"tx5H9_icO\",openInNewTab:true,scopeId:\"muXqvCtWJ\",children:/*#__PURE__*/_jsx(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-1mrms20\",className,classNames)} framer-7yg8da`,\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"tx5H9_icO\",ref:refBinding,style:{backgroundColor:\"rgb(106, 106, 106)\",borderBottomLeftRadius:156.77,borderBottomRightRadius:156.77,borderTopLeftRadius:156.77,borderTopRightRadius:156.77,...style},variants:{\"tx5H9_icO-hover\":{backgroundColor:\"rgb(0, 0, 0)\"}},...addPropertyOverrides({\"tx5H9_icO-hover\":{\"data-framer-name\":undefined}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-1o7hdun\",\"data-framer-name\":\"arrow-up\",layoutDependency:layoutDependency,layoutId:\"I224:1101;52:835\",children:/*#__PURE__*/_jsx(SVG,{className:\"framer-1qkyg7n\",\"data-framer-name\":\"Vector\",fill:\"rgba(0,0,0,1)\",intrinsicHeight:13,intrinsicWidth:12,layoutDependency:layoutDependency,layoutId:\"I224:1101;52:835;34:839\",svg:'<svg width=\"12\" height=\"13\" viewBox=\"-1 -1 12 13\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\\n<path d=\"M4.84072 10.3179L4.84072 0.51947M4.84072 0.51947L9.54395 5.2227M4.84072 0.51947L0.137493 5.2227\" stroke=\"white\" stroke-width=\"1.17581\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\\n</svg>\\n',withExternalLayout:true})})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-e5KxU.framer-7yg8da, .framer-e5KxU .framer-7yg8da { display: block; }\",\".framer-e5KxU.framer-1mrms20 { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: hidden; padding: 6.270967960357666px; position: relative; text-decoration: none; width: min-content; will-change: var(--framer-will-change-override, transform); }\",\".framer-e5KxU .framer-1o7hdun { flex: none; gap: 0px; height: 19px; overflow: hidden; position: relative; width: 19px; }\",\".framer-e5KxU .framer-1qkyg7n { flex: none; height: 14px; left: calc(52.63157894736844% - 13px / 2); position: absolute; top: calc(52.63157894736844% - 14px / 2); width: 13px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 31.5\n * @framerIntrinsicWidth 31.5\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"UgLdQ7wmG\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramermuXqvCtWJ=withCSS(Component,css,\"framer-e5KxU\");export default FramermuXqvCtWJ;FramermuXqvCtWJ.displayName=\"Button Group (Item)\";FramermuXqvCtWJ.defaultProps={height:31.5,width:31.5};addFonts(FramermuXqvCtWJ,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramermuXqvCtWJ\",\"slots\":[],\"annotations\":{\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"UgLdQ7wmG\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"31.5\",\"framerColorSyntax\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicWidth\":\"31.5\",\"framerComponentViewportWidth\":\"true\",\"framerImmutableVariables\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./muXqvCtWJ.map","// Generated by Framer (9d1d4bc)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,Link,RichText,SVG,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const enabledGestures={ErlWVVqCc:{hover:true}};const cycleOrder=[\"ErlWVVqCc\",\"ZcP7Hiub_\"];const serializationHash=\"framer-JEWE4\";const variantClassNames={ErlWVVqCc:\"framer-v-143guz8\",ZcP7Hiub_:\"framer-v-1ifniio\"};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 humanReadableVariantMap={\"Variant 1\":\"ErlWVVqCc\",\"Variant 2\":\"ZcP7Hiub_\"};const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"ErlWVVqCc\"};};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({cycleOrder,defaultVariant:\"ErlWVVqCc\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(gestureVariant===\"ErlWVVqCc-hover\")return false;if(baseVariant===\"ZcP7Hiub_\")return false;return true;};return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Link,{motionChild:true,nodeId:\"ErlWVVqCc\",openInNewTab:false,scopeId:\"sJ2j1647F\",...addPropertyOverrides({\"ErlWVVqCc-hover\":{href:undefined}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-143guz8\",className,classNames)} framer-hcda90`,\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"ErlWVVqCc\",ref:refBinding,style:{...style},...addPropertyOverrides({\"ErlWVVqCc-hover\":{\"data-framer-name\":undefined},ZcP7Hiub_:{\"data-framer-name\":\"Variant 2\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-dgfa4u\",layoutDependency:layoutDependency,layoutId:\"SSMYgt0jT\",style:{\"--border-bottom-width\":\"0px\",\"--border-color\":\"rgba(0, 0, 0, 0)\",\"--border-left-width\":\"0px\",\"--border-right-width\":\"0px\",\"--border-style\":\"solid\",\"--border-top-width\":\"0px\",backgroundColor:\"var(--token-edfda175-95d4-49db-9212-d69f5b2b0fbf, rgb(46, 138, 184))\",borderBottomLeftRadius:100,borderBottomRightRadius:100,borderTopLeftRadius:100,borderTopRightRadius:100},variants:{\"ErlWVVqCc-hover\":{\"--border-bottom-width\":\"1px\",\"--border-color\":\"var(--token-edfda175-95d4-49db-9212-d69f5b2b0fbf, rgb(46, 138, 184))\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backgroundColor:\"rgba(46, 138, 184, 0)\"}},...addPropertyOverrides({\"ErlWVVqCc-hover\":{\"data-border\":true}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsxs(motion.div,{className:\"framer-19e9qq8\",layoutDependency:layoutDependency,layoutId:\"Z_OEzwsn5\",children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7UG9wcGlucy1yZWd1bGFy\",\"--framer-font-family\":'\"Poppins\", \"Poppins Placeholder\", sans-serif',\"--framer-line-height\":\"16px\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Read article\"})}),className:\"framer-15ob9z6\",\"data-framer-name\":\"Read article\",fonts:[\"GF;Poppins-regular\"],layoutDependency:layoutDependency,layoutId:\"Dc2uFkmKf\",style:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\",\"--framer-paragraph-spacing\":\"0px\"},variants:{\"ErlWVVqCc-hover\":{\"--extracted-r6o4lv\":\"var(--token-edfda175-95d4-49db-9212-d69f5b2b0fbf, rgb(46, 138, 184))\"}},verticalAlignment:\"center\",withExternalLayout:true,...addPropertyOverrides({\"ErlWVVqCc-hover\":{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7UG9wcGlucy1yZWd1bGFy\",\"--framer-font-family\":'\"Poppins\", \"Poppins Placeholder\", sans-serif',\"--framer-line-height\":\"16px\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-edfda175-95d4-49db-9212-d69f5b2b0fbf, rgb(46, 138, 184)))\"},children:\"Read article\"})})},ZcP7Hiub_:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7UG9wcGlucy1yZWd1bGFy\",\"--framer-font-family\":'\"Poppins\", \"Poppins Placeholder\", sans-serif',\"--framer-font-size\":\"12px\",\"--framer-line-height\":\"12px\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Read article\"})})}},baseVariant,gestureVariant)}),isDisplayed()&&/*#__PURE__*/_jsx(SVG,{className:\"framer-eil4b6\",\"data-framer-name\":\"Union\",fill:\"rgba(0,0,0,1)\",intrinsicHeight:13,intrinsicWidth:8,layoutDependency:layoutDependency,layoutId:\"VtHiFT6OS\",svg:'<svg width=\"8\" height=\"13\" viewBox=\"0 0 8 13\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\\n<path d=\"M0.678489 1.15737C1.05842 0.770529 1.67451 0.770389 2.05435 1.15737L7.00141 6.1974L7.06798 6.27294C7.31718 6.58431 7.35312 7.01407 7.17515 7.35925C7.1455 7.41676 7.10949 7.47169 7.06798 7.52357L7.00141 7.59912L2.05435 12.6391C1.67446 13.0262 1.05841 13.0261 0.678489 12.6391C0.298577 12.2521 0.298577 11.6245 0.678489 11.2374L4.93761 6.89826L0.678489 2.55909C0.298577 2.17204 0.298576 1.54442 0.678489 1.15737Z\" fill=\"white\"/>\\n</svg>\\n',withExternalLayout:true})]})})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-JEWE4.framer-hcda90, .framer-JEWE4 .framer-hcda90 { display: block; }\",\".framer-JEWE4.framer-143guz8 { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; height: 60px; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; text-decoration: none; width: 171px; }\",\".framer-JEWE4 .framer-dgfa4u { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: 40px; justify-content: center; overflow: visible; padding: 20px; position: relative; width: 100%; }\",\".framer-JEWE4 .framer-19e9qq8 { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 90%; }\",\".framer-JEWE4 .framer-15ob9z6 { flex: none; height: auto; position: relative; white-space: pre-wrap; width: 100%; word-break: break-word; word-wrap: break-word; }\",\".framer-JEWE4 .framer-eil4b6 { flex: none; height: 13px; position: relative; width: 8px; }\",\".framer-JEWE4.framer-v-1ifniio.framer-143guz8 { cursor: unset; height: 35px; width: 100px; }\",\".framer-JEWE4.framer-v-1ifniio .framer-dgfa4u { height: 26px; padding: 10px 0px 10px 0px; width: 100px; }\",\".framer-JEWE4.framer-v-1ifniio .framer-19e9qq8 { width: 80px; }\",'.framer-JEWE4[data-border=\"true\"]::after, .framer-JEWE4 [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 60\n * @framerIntrinsicWidth 171\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"ZcP7Hiub_\":{\"layout\":[\"fixed\",\"fixed\"]},\"VQ_3228wQ\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramersJ2j1647F=withCSS(Component,css,\"framer-JEWE4\");export default FramersJ2j1647F;FramersJ2j1647F.displayName=\"Button_hover\";FramersJ2j1647F.defaultProps={height:60,width:171};addPropertyControls(FramersJ2j1647F,{variant:{options:[\"ErlWVVqCc\",\"ZcP7Hiub_\"],optionTitles:[\"Variant 1\",\"Variant 2\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramersJ2j1647F,[{explicitInter:true,fonts:[{cssFamilyName:\"Poppins\",source:\"google\",style:\"normal\",uiFamilyName:\"Poppins\",url:\"https://fonts.gstatic.com/s/poppins/v24/pxiEyp8kv8JHgFVrFJXUc1NECPY.woff2\",weight:\"400\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramersJ2j1647F\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"60\",\"framerComponentViewportWidth\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"ZcP7Hiub_\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"VQ_3228wQ\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerIntrinsicWidth\":\"171\",\"framerColorSyntax\":\"true\",\"framerContractVersion\":\"1\",\"framerAutoSizeImages\":\"true\",\"framerImmutableVariables\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./sJ2j1647F.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import*as React from\"react\";// Keeps \"Ask Naibor to\" fixed and animates the rest of the placeholder.\n// Pauses when the input is focused so user can type without interference.\nexport function withTypingPlaceholderPrefix(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const suffixes=[\"find a 3 bedroom home in Pasadena...\",\"check home prices in...\",\"find a home in Venice near nightlife...\",\"check the interest rates in...\",\"estimate my monthly mortgage payment...\",\"explain the difference between FHA and conventional loans...\"];const prefix=\"Ask Naibor to\";const[suffix,setSuffix]=React.useState(\"\");const[index,setIndex]=React.useState(0);const[isDeleting,setIsDeleting]=React.useState(false);const[isPaused,setIsPaused]=React.useState(false)// paused on focus\n;React.useEffect(()=>{if(isPaused)return;// stop animation while focused\nconst current=suffixes[index];const typingSpeed=isDeleting?40:90;const handleTyping=()=>{if(!isDeleting&&suffix.length<current.length){setSuffix(current.substring(0,suffix.length+1));}else if(isDeleting&&suffix.length>0){setSuffix(current.substring(0,suffix.length-1));}else if(!isDeleting&&suffix.length===current.length){// wait a bit before deleting\nsetTimeout(()=>setIsDeleting(true),1200);}else if(isDeleting&&suffix.length===0){setIsDeleting(false);setIndex(prev=>(prev+1)%suffixes.length);}};const timer=setTimeout(handleTyping,typingSpeed);return()=>clearTimeout(timer);},[suffix,isDeleting,index,isPaused]);// Merge user's onFocus/onBlur to preserve existing handlers\nconst handleFocus=e=>{setIsPaused(true);if(typeof props.onFocus===\"function\")props.onFocus(e);};const handleBlur=e=>{setIsPaused(false);if(typeof props.onBlur===\"function\")props.onBlur(e);};// If suffix is empty, show prefix alone. Add a small ellipsis to hint animation if you prefer.\nconst placeholderText=suffix?`${prefix} ${suffix}`:`${prefix}...`;return /*#__PURE__*/_jsx(Component,{ref:ref,...props,placeholder:placeholderText,onFocus:handleFocus,onBlur:handleBlur});});}export function withTypingPlaceholderMobile(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const suffixes=[\"Find a 3-bedroom home in Pasadena...\",\"What is an FHA loan?...\",\"How much does it cost to buy a home in...\",\"Find a home in Venice near nightlife...\",\"Is now a good time to buy a home?...\"];const prefix=\"\";const[suffix,setSuffix]=React.useState(\"\");const[index,setIndex]=React.useState(0);const[isDeleting,setIsDeleting]=React.useState(false);const[isPaused,setIsPaused]=React.useState(false)// paused on focus\n;React.useEffect(()=>{if(isPaused)return;// stop animation while focused\nconst current=suffixes[index];const typingSpeed=isDeleting?40:90;const handleTyping=()=>{if(!isDeleting&&suffix.length<current.length){setSuffix(current.substring(0,suffix.length+1));}else if(isDeleting&&suffix.length>0){setSuffix(current.substring(0,suffix.length-1));}else if(!isDeleting&&suffix.length===current.length){// wait a bit before deleting\nsetTimeout(()=>setIsDeleting(true),1200);}else if(isDeleting&&suffix.length===0){setIsDeleting(false);setIndex(prev=>(prev+1)%suffixes.length);}};const timer=setTimeout(handleTyping,typingSpeed);return()=>clearTimeout(timer);},[suffix,isDeleting,index,isPaused]);// Merge user's onFocus/onBlur to preserve existing handlers\nconst handleFocus=e=>{setIsPaused(true);if(typeof props.onFocus===\"function\")props.onFocus(e);};const handleBlur=e=>{setIsPaused(false);if(typeof props.onBlur===\"function\")props.onBlur(e);};// If suffix is empty, show prefix alone. Add a small ellipsis to hint animation if you prefer.\nconst placeholderText=suffix?`${prefix} ${suffix}`:`${prefix}...`;return /*#__PURE__*/_jsx(Component,{ref:ref,...props,placeholder:placeholderText,onFocus:handleFocus,onBlur:handleBlur});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withTypingPlaceholderPrefix\":{\"type\":\"reactHoc\",\"name\":\"withTypingPlaceholderPrefix\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTypingPlaceholderMobile\":{\"type\":\"reactHoc\",\"name\":\"withTypingPlaceholderMobile\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL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