{"version":3,"file":"AvoidLayoutJumping_Prod.CSXttyVm.mjs","names":["useMemo","useRef","React","EachCharacter","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","sharedStyle.className","className","Image","sharedStyle.css","sharedStyle.fonts","useRef"],"sources":["https:/framerusercontent.com/modules/uRiLukd4hmGkFbVjI31G/JFtOs7F9vI31L8BoQ6oL/RevealText.js","https:/framerusercontent.com/modules/4JTgPJB9dM2To7s5b4bJ/QEHgtk4dCK4jvkfYWM60/mUs1SrLvW.js","https:/framerusercontent.com/modules/h8ioHyt4BUxuvVCE1Q10/aTM6mEMGlM19JjX8exDe/AvoidLayoutJumping_Prod.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion,useScroll,useTransform,useReducedMotion}from\"framer-motion\";import React,{useMemo,useRef,useEffect}from\"react\";function useGoogleFont(fontFamily){useEffect(()=>{if(!fontFamily)return;const id=`font-${fontFamily.replace(/\\s+/g,\"-\")}`;if(document.getElementById(id))return;const link=document.createElement(\"link\");link.id=id;link.rel=\"stylesheet\";const familyParam=fontFamily.trim().replace(/\\s+/g,\"+\");link.href=`https://fonts.googleapis.com/css2?family=${familyParam}:wght@400;500;700&display=swap`;document.head.appendChild(link);},[fontFamily]);}const srOnlyStyle={position:\"absolute\",width:\"1px\",height:\"1px\",padding:0,margin:\"-1px\",overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",whiteSpace:\"nowrap\",border:0};const EachCharacter=/*#__PURE__*/React.memo(function EachCharacter({char,start,end,progress,transition,fromColor,toColor}){const color=useTransform(progress,[start,end],[fromColor,toColor]);return /*#__PURE__*/_jsx(motion.span,{style:{color,willChange:\"color\"},transition:transition,\"aria-hidden\":true,children:char});});export default function RevealText(props){const{text=\"Hello Text\",uppercase=false,fontFamily=\"Urbanist\",fontSize=48,fontWeight=\"400\",lineHeight=120,letterSpacing=-3,paragraphAlign=\"center\",fromColor=\"#666666\",toColor=\"#FFFFFF\",easing=\"easeInOut\",offsetStart=\"start 0.75\",offsetEnd=\"start 0.15\"}=props;useGoogleFont(fontFamily);const resolvedText=text||\"\";const words=useMemo(()=>resolvedText.split(/\\s+/).filter(Boolean),[resolvedText]);const totalWords=words.length||1;const reduceMotion=useReducedMotion();const ref=useRef(null);const{scrollYProgress}=useScroll({target:ref,offset:[offsetStart,offsetEnd]});const transition=useMemo(()=>({duration:reduceMotion?0:.3,ease:easing}),[easing,reduceMotion]);const unitlessLineHeight=Math.max(.5,Number(lineHeight)/100||1.2);const textAlign=paragraphAlign===\"flex-start\"?\"left\":paragraphAlign===\"flex-end\"?\"right\":paragraphAlign;return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\"},children:[/*#__PURE__*/_jsx(\"p\",{ref:ref,style:{fontFamily:`${fontFamily}, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif`,fontSize,fontWeight,color:fromColor,display:\"block\",lineHeight:unitlessLineHeight,letterSpacing:`${letterSpacing}px`,textAlign,margin:0,textTransform:uppercase?\"uppercase\":\"none\",WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\"},children:words.map((word,wIdx)=>{const starting=wIdx/totalWords;const ending=(wIdx+1)/totalWords;const characters=[...word];const length=characters.length||1;const amount=Math.max(ending-starting,1e-4);const step=amount/length;return /*#__PURE__*/_jsxs(React.Fragment,{children:[characters.map((ch,i)=>/*#__PURE__*/_jsx(EachCharacter,{char:ch,start:starting+step*i,end:starting+step*(i+1),progress:scrollYProgress,transition:transition,fromColor:fromColor,toColor:toColor},i)),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,children:\" \"})]},`${word}-${wIdx}`);})}),/*#__PURE__*/_jsx(\"span\",{style:srOnlyStyle,\"aria-hidden\":false,children:resolvedText})]});}addPropertyControls(RevealText,{text:{title:\"Text\",type:ControlType.String,defaultValue:\"Hello Text\"},uppercase:{title:\"Uppercase\",type:ControlType.Boolean,defaultValue:false,enabledTitle:\"ON\",disabledTitle:\"OFF\"},fontFamily:{title:\"Font Family\",type:ControlType.String,defaultValue:\"Urbanist\"},fontSize:{title:\"Font Size\",type:ControlType.Number,defaultValue:48,min:10,max:200},fontWeight:{title:\"Font Weight\",type:ControlType.Enum,options:[\"400\",\"500\",\"700\"],optionTitles:[\"Regular\",\"Medium\",\"Bold\"],defaultValue:\"400\"},lineHeight:{title:\"Line Height (%)\",type:ControlType.Number,defaultValue:120,min:80,max:200},letterSpacing:{title:\"Letter Spacing (px)\",type:ControlType.Number,defaultValue:-3,min:-10,max:10,step:.5},paragraphAlign:{title:\"Align\",type:ControlType.Enum,options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"center\"},fromColor:{title:\"From Color\",type:ControlType.Color,defaultValue:\"#666666\"},toColor:{title:\"To Color\",type:ControlType.Color,defaultValue:\"#FFFFFF\"},easing:{title:\"Easing\",type:ControlType.Enum,options:[\"easeInOut\",\"easeIn\",\"easeOut\",\"linear\"],optionTitles:[\"Ease In Out\",\"Ease In\",\"Ease Out\",\"Linear\"],defaultValue:\"easeInOut\"},offsetStart:{title:\"Offset Start\",type:ControlType.String,defaultValue:\"start 0.75\"},offsetEnd:{title:\"Offset End\",type:ControlType.String,defaultValue:\"start 0.15\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RevealText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RevealText.map","// Generated by Framer (26c37fd)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFontsFromSharedStyle,getLoadingLazyAtYPosition,Image,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import*as sharedStyle from\"https://framerusercontent.com/modules/pCMGBJIV2otVY9e8uJka/6JTtycp2bHA5NC3STXGE/U9wKwFXF8.js\";const cycleOrder=[\"J7lsT6aA7\",\"vlPxSR2zz\"];const serializationHash=\"framer-XAvhu\";const variantClassNames={J7lsT6aA7:\"framer-v-r6wvyg\",vlPxSR2zz:\"framer-v-2yeyye\"};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 humanReadableVariantMap={Default:\"J7lsT6aA7\",Reversed:\"vlPxSR2zz\"};const getProps=({descriptionColor,height,id,image,name1,nameColor,position,showImage,width,...props})=>{return{...props,f85c0BPWj:descriptionColor??props.f85c0BPWj??\"rgba(245, 245, 245, 0.6)\",iHL0uhFjH:nameColor??props.iHL0uhFjH??\"var(--token-1a5eda4c-ae96-475d-8e4d-5584faa462c0, rgb(245, 245, 245))\",IKxZ6E5ea:position??props.IKxZ6E5ea??\"Position\",MdyF08w6O:showImage??props.MdyF08w6O??true,NUEnPRCbr:name1??props.NUEnPRCbr??\"Jessica Burns\",qBrna3Cf6:image??props.qBrna3Cf6??{alt:\"\",pixelHeight:63,pixelWidth:63,src:\"https://framerusercontent.com/images/rPovAy2J6Q4sllGf3hH7aT3fCk.jpg?width=63&height=63\"},variant:humanReadableVariantMap[props.variant]??props.variant??\"J7lsT6aA7\"};};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,qBrna3Cf6,NUEnPRCbr,iHL0uhFjH,IKxZ6E5ea,f85c0BPWj,MdyF08w6O,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"J7lsT6aA7\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[sharedStyle.className];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__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-r6wvyg\",className,classNames),\"data-framer-name\":\"Default\",layoutDependency:layoutDependency,layoutId:\"J7lsT6aA7\",ref:refBinding,style:{...style},...addPropertyOverrides({vlPxSR2zz:{\"data-framer-name\":\"Reversed\"}},baseVariant,gestureVariant),children:[MdyF08w6O&&/*#__PURE__*/_jsx(Image,{background:{alt:\"\",fit:\"stretch\",loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+(0+((componentViewport?.height||42)-0-42)/2)),pixelHeight:63,pixelWidth:63,sizes:\"42px\",...toResponsiveImage(qBrna3Cf6),...{positionX:\"center\",positionY:\"center\"}},className:\"framer-1jk5fnw\",\"data-framer-name\":\"image\",layoutDependency:layoutDependency,layoutId:\"vSb5unK3x\",style:{borderBottomLeftRadius:50,borderBottomRightRadius:50,borderTopLeftRadius:50,borderTopRightRadius:50}}),/*#__PURE__*/_jsxs(motion.div,{className:\"framer-1alh6ha\",\"data-framer-name\":\"Contact Info Text\",layoutDependency:layoutDependency,layoutId:\"BU4FZvb66\",children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-oull8h\",\"data-styles-preset\":\"U9wKwFXF8\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-iHL0uhFjH-mUs1SrLvW))\"},children:\"Jessica Burns\"})}),className:\"framer-1qoy2li\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"MuWHkCxxS\",style:{\"--extracted-r6o4lv\":\"var(--variable-reference-iHL0uhFjH-mUs1SrLvW)\",\"--framer-paragraph-spacing\":\"0px\",\"--variable-reference-iHL0uhFjH-mUs1SrLvW\":iHL0uhFjH},text:NUEnPRCbr,verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({vlPxSR2zz:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-oull8h\",\"data-styles-preset\":\"U9wKwFXF8\",style:{\"--framer-text-alignment\":\"right\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-iHL0uhFjH-mUs1SrLvW))\"},children:\"Jessica Burns\"})})}},baseVariant,gestureVariant)}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-oull8h\",\"data-styles-preset\":\"U9wKwFXF8\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-f85c0BPWj-mUs1SrLvW))\"},children:\"Position\"})}),className:\"framer-rld97c\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"apJ9diR9T\",style:{\"--extracted-r6o4lv\":\"var(--variable-reference-f85c0BPWj-mUs1SrLvW)\",\"--framer-paragraph-spacing\":\"0px\",\"--variable-reference-f85c0BPWj-mUs1SrLvW\":f85c0BPWj},text:IKxZ6E5ea,verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({vlPxSR2zz:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-oull8h\",\"data-styles-preset\":\"U9wKwFXF8\",style:{\"--framer-text-alignment\":\"right\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-f85c0BPWj-mUs1SrLvW))\"},children:\"Position\"})})}},baseVariant,gestureVariant)})]})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-XAvhu.framer-ta1tqb, .framer-XAvhu .framer-ta1tqb { display: block; }\",\".framer-XAvhu.framer-r6wvyg { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 14px; height: min-content; justify-content: flex-start; overflow: visible; padding: 0px; position: relative; width: min-content; }\",\".framer-XAvhu .framer-1jk5fnw { flex: none; height: 42px; position: relative; width: 42px; }\",\".framer-XAvhu .framer-1alh6ha { align-content: flex-start; align-items: flex-start; display: flex; flex: none; flex-direction: column; flex-wrap: nowrap; gap: 3px; height: min-content; justify-content: flex-start; overflow: visible; padding: 0px; position: relative; width: min-content; }\",\".framer-XAvhu .framer-1qoy2li, .framer-XAvhu .framer-rld97c { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\".framer-XAvhu.framer-v-2yeyye.framer-r6wvyg { justify-content: flex-end; }\",\".framer-XAvhu.framer-v-2yeyye .framer-1jk5fnw { order: 1; }\",\".framer-XAvhu.framer-v-2yeyye .framer-1alh6ha { align-content: flex-end; align-items: flex-end; order: 0; }\",...sharedStyle.css];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 42\n * @framerIntrinsicWidth 151\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"vlPxSR2zz\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"qBrna3Cf6\":\"image\",\"NUEnPRCbr\":\"name1\",\"iHL0uhFjH\":\"nameColor\",\"IKxZ6E5ea\":\"position\",\"f85c0BPWj\":\"descriptionColor\",\"MdyF08w6O\":\"showImage\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramermUs1SrLvW=withCSS(Component,css,\"framer-XAvhu\");export default FramermUs1SrLvW;FramermUs1SrLvW.displayName=\"Author\";FramermUs1SrLvW.defaultProps={height:42,width:151};addPropertyControls(FramermUs1SrLvW,{variant:{options:[\"J7lsT6aA7\",\"vlPxSR2zz\"],optionTitles:[\"Default\",\"Reversed\"],title:\"Variant\",type:ControlType.Enum},qBrna3Cf6:{__defaultAssetReference:\"data:framer/asset-reference,rPovAy2J6Q4sllGf3hH7aT3fCk.jpg?originalFilename=image.jpg&preferredSize=auto&width=63&height=63\",__vekterDefault:{alt:\"\",assetReference:\"data:framer/asset-reference,rPovAy2J6Q4sllGf3hH7aT3fCk.jpg?originalFilename=image.jpg&preferredSize=auto&width=63&height=63\"},title:\"Image\",type:ControlType.ResponsiveImage},NUEnPRCbr:{defaultValue:\"Jessica Burns\",displayTextArea:false,title:\"Name\",type:ControlType.String},iHL0uhFjH:{defaultValue:'var(--token-1a5eda4c-ae96-475d-8e4d-5584faa462c0, rgb(245, 245, 245)) /* {\"name\":\"White\"} */',title:\"Name color\",type:ControlType.Color},IKxZ6E5ea:{defaultValue:\"Position\",displayTextArea:false,title:\"Position\",type:ControlType.String},f85c0BPWj:{defaultValue:\"rgba(245, 245, 245, 0.6)\",title:\"Description color\",type:ControlType.Color},MdyF08w6O:{defaultValue:true,title:\"Show image\",type:ControlType.Boolean}});addFonts(FramermUs1SrLvW,[{explicitInter:true,fonts:[{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"}]},...getFontsFromSharedStyle(sharedStyle.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramermUs1SrLvW\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"151\",\"framerDisplayContentsDiv\":\"false\",\"framerImmutableVariables\":\"true\",\"framerColorSyntax\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicHeight\":\"42\",\"framerVariables\":\"{\\\"qBrna3Cf6\\\":\\\"image\\\",\\\"NUEnPRCbr\\\":\\\"name1\\\",\\\"iHL0uhFjH\\\":\\\"nameColor\\\",\\\"IKxZ6E5ea\\\":\\\"position\\\",\\\"f85c0BPWj\\\":\\\"descriptionColor\\\",\\\"MdyF08w6O\\\":\\\"showImage\\\"}\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"vlPxSR2zz\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerComponentViewportWidth\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./mUs1SrLvW.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useRef}from\"react\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n *\n * @framerDisableUnlink\n */export default function AvoidLayoutJumping({direction,style}){const isCanvas=RenderTarget.current()===RenderTarget.canvas;const ref=useRef(null);const rafId=useRef();const vertical=direction===\"vertical\"||direction===\"both\";const horizontal=direction===\"horizontal\"||direction===\"both\";useEffect(()=>{if(isCanvas)return;const parent=ref.current?.parentElement?.parentElement;if(!parent)return;const container=parent.parentElement;if(!container)return;const updateSize=()=>{const rect=parent.getBoundingClientRect();if(horizontal){container.style.width=`${rect.width}px`;}if(vertical){container.style.height=`${rect.height}px`;}rafId.current=requestAnimationFrame(updateSize);};// Start the RAF loop\nrafId.current=requestAnimationFrame(updateSize);return()=>{if(rafId.current){cancelAnimationFrame(rafId.current);}if(container){if(horizontal){container.style.width=\"\";}if(vertical){container.style.height=\"\";}}};},[direction]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{...style}});}AvoidLayoutJumping.displayName=\"Layout Jump Preventer\";addPropertyControls(AvoidLayoutJumping,{direction:{type:ControlType.Enum,defaultValue:\"vertical\",options:[\"vertical\",\"horizontal\",\"both\"],optionTitles:[\"Vertical\",\"Horizontal\",\"Both\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\",// @ts-ignore\noptionIcons:[\"direction-vertical\",\"direction-horizontal\",\"direction-all\"],description:\"More components at [Framer University](https://frameruni.link/cc).\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AvoidLayoutJumping\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AvoidLayoutJumping_Prod.map"],"mappings":"iyBAA0O,SAAS,EAAc,EAAW,CAAC,MAAc,CAAC,GAAG,CAAC,EAAW,OAAO,IAAM,EAAG,QAAQ,EAAW,QAAQ,OAAO,IAAI,GAAG,GAAG,SAAS,eAAe,EAAG,CAAC,OAAO,IAAM,EAAK,SAAS,cAAc,OAAO,CAAC,EAAK,GAAG,EAAG,EAAK,IAAI,aAAqE,EAAK,KAAK,4CAAhD,EAAW,MAAM,CAAC,QAAQ,OAAO,IAAI,CAAmE,gCAAgC,SAAS,KAAK,YAAY,EAAK,EAAG,CAAC,EAAW,CAAC,CAAme,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,OAAK,aAAa,YAAU,GAAM,aAAW,WAAW,WAAS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