{"version":3,"file":"AvoidLayoutJumping_Prod.CNdxD3tr.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","sharedStyle.className","sharedStyle1.className","className","Image1","RichText","sharedStyle.css","sharedStyle1.css","sharedStyle.fonts","sharedStyle1.fonts","useRef"],"sources":["https:/framerusercontent.com/modules/b9qYwCoofcqO896ZhFns/0Lt2yTertmYFGZCE2jbX/nnO0JxgGu.js","https:/framerusercontent.com/modules/h8ioHyt4BUxuvVCE1Q10/aTM6mEMGlM19JjX8exDe/AvoidLayoutJumping_Prod.js"],"sourcesContent":["// Generated by Framer (65a4904)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFontsFromSharedStyle,getLoadingLazyAtYPosition,Image as Image1,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 sharedStyle1 from\"https://framerusercontent.com/modules/1dderDNwsA5zyeKdO0ev/m9lX2VHhpjYQOKtMafup/Js99aGWjm.js\";import*as sharedStyle from\"https://framerusercontent.com/modules/HqKHSgmhaFQ7m6eMWfo0/fIE2GWjRQpdH3w8qQiXF/VjjjOgg75.js\";const cycleOrder=[\"IJHTEoftc\",\"FhqpQLC5k\"];const serializationHash=\"framer-nBcil\";const variantClassNames={FhqpQLC5k:\"framer-v-3jguyc\",IJHTEoftc:\"framer-v-18puj1h\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const RFjtWZksb=undefined;const kEBU9fMbX=undefined;const FJ5C3TzfJ=undefined;const bXgUJ79q_=undefined;const cZyyDtACp=undefined;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 isSet=value=>{if(Array.isArray(value))return value.length>0;return value!==undefined&&value!==null&&value!==\"\";};const prefix=(value,prefix)=>{if(typeof value===\"string\"&&typeof prefix===\"string\"){return prefix+value;}else if(typeof value===\"string\"){return value;}else if(typeof prefix===\"string\"){return prefix;}return\"\";};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 humanReadableVariantMap={\"1 line of text only\":\"FhqpQLC5k\",\"Default - 2 rows\":\"IJHTEoftc\"};const Variants=motion.create(React.Fragment);const getProps=({details,divider,height,id,image,name1,startingAtPrice,width,...props})=>{return{...props,bXgUJ79q_:details??props.bXgUJ79q_??\"2 Bed, 2 Bath, 1200 square feet\",cZyyDtACp:startingAtPrice??props.cZyyDtACp??\"$600,000\",FJ5C3TzfJ:divider??props.FJ5C3TzfJ??false,kEBU9fMbX:name1??props.kEBU9fMbX??\"Contemporary Jane’s Cottage\",RFjtWZksb:image??props.RFjtWZksb,variant:humanReadableVariantMap[props.variant]??props.variant??\"IJHTEoftc\"};};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,RFjtWZksb,kEBU9fMbX,bXgUJ79q_,cZyyDtACp,FJ5C3TzfJ,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"IJHTEoftc\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[sharedStyle.className,sharedStyle1.className];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"FhqpQLC5k\")return false;return true;};const visible=isSet(cZyyDtACp);const textContent=prefix(cZyyDtACp,\"Starting at \");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-18puj1h\",className,classNames),\"data-framer-name\":\"Default - 2 rows\",layoutDependency:layoutDependency,layoutId:\"IJHTEoftc\",ref:refBinding,style:{...style},...addPropertyOverrides({FhqpQLC5k:{\"data-framer-name\":\"1 line of text only\"}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(Image1,{background:{alt:\"\",fit:\"fill\",loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+0),sizes:componentViewport?.width||\"100vw\",...toResponsiveImage(RFjtWZksb)},className:\"framer-3adonf\",layoutDependency:layoutDependency,layoutId:\"HJAXV4_Ws\"}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-8cgscb\",\"data-framer-name\":\"Caption container\",layoutDependency:layoutDependency,layoutId:\"V5ej2jM7z\",children:/*#__PURE__*/_jsxs(motion.div,{className:\"framer-13rnv0t\",\"data-framer-name\":\"Content\",layoutDependency:layoutDependency,layoutId:\"sSQiLWD0t\",children:[/*#__PURE__*/_jsxs(motion.div,{className:\"framer-1sbxze1\",\"data-framer-name\":\"Caption\",layoutDependency:layoutDependency,layoutId:\"JLYSkC3_V\",children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-1ts1sma\",\"data-styles-preset\":\"VjjjOgg75\",children:\"Contemporary Jane’s Cottage\"})}),className:\"framer-110ipin\",\"data-framer-name\":\"Name\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"iVukHnuoz\",style:{\"--framer-paragraph-spacing\":\"0px\"},text:kEBU9fMbX,variants:{FhqpQLC5k:{\"--extracted-r6o4lv\":\"var(--token-f1d7b497-3d77-4476-bb2f-7590b66ee6ea, rgb(11, 41, 111))\"}},verticalAlignment:\"center\",withExternalLayout:true,...addPropertyOverrides({FhqpQLC5k:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NO0dyb3NhIFJlZ3VsYXI=\",\"--framer-font-family\":'\"Grosa Regular\", sans-serif',\"--framer-font-open-type-features\":\"'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on\",\"--framer-font-size\":\"18px\",\"--framer-letter-spacing\":\"-0.01em\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-f1d7b497-3d77-4476-bb2f-7590b66ee6ea, rgb(11, 41, 111)))\"},children:\"Contemporary Jane’s Cottage\"})}),fonts:[\"CUSTOM;Grosa Regular\"]}},baseVariant,gestureVariant)}),FJ5C3TzfJ!==false&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-1yttpln\",\"data-framer-name\":\"divider\",layoutDependency:layoutDependency,layoutId:\"W619Ky_wm\",style:{backgroundColor:\"var(--token-f1d7b497-3d77-4476-bb2f-7590b66ee6ea, rgb(11, 41, 111))\"}}),isDisplayed()&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-1tbotrl\",\"data-styles-preset\":\"Js99aGWjm\",children:/*#__PURE__*/_jsx(motion.strong,{children:\"2 Bed, 2 Bath, 1200 square feet\"})})}),className:\"framer-jwiey8\",\"data-framer-name\":\"Features\",fonts:[\"Inter\",\"Inter-Bold\"],layoutDependency:layoutDependency,layoutId:\"kIG9SHY8z\",style:{\"--framer-paragraph-spacing\":\"0px\"},text:bXgUJ79q_,verticalAlignment:\"center\",withExternalLayout:true})]}),isDisplayed()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-q350uf\",\"data-framer-name\":\"Starting at\",layoutDependency:layoutDependency,layoutId:\"QHxyBxQJW\",children:visible!==false&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-1ts1sma\",\"data-styles-preset\":\"VjjjOgg75\",style:{\"--framer-text-alignment\":\"center\"},children:\"Starting at \"})}),className:\"framer-134ji01\",\"data-framer-name\":\"Name\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"nZ7u_NBZi\",style:{\"--framer-paragraph-spacing\":\"0px\"},text:textContent,verticalAlignment:\"center\",withExternalLayout:true})})]})})]})})})});});const css=[\".framer-nBcil.framer-uoe6hy, .framer-nBcil .framer-uoe6hy { display: block; }\",\".framer-nBcil.framer-18puj1h { align-content: center; align-items: center; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 32px; height: 648px; justify-content: flex-start; overflow: visible; padding: 0px; position: relative; width: 972px; }\",\".framer-nBcil .framer-3adonf { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; z-index: 1; }\",\".framer-nBcil .framer-8cgscb { align-content: center; align-items: center; bottom: -1px; display: flex; flex: none; flex-direction: column; flex-wrap: nowrap; gap: 8px; height: 1px; justify-content: flex-start; left: 0px; overflow: visible; padding: 0px; position: absolute; right: 0px; }\",\".framer-nBcil .framer-13rnv0t { align-content: center; align-items: center; display: flex; flex: none; flex-direction: column; flex-wrap: nowrap; gap: 8px; height: min-content; justify-content: flex-start; overflow: visible; padding: 24px 0px 0px 0px; position: relative; width: 100%; z-index: 1; }\",\".framer-nBcil .framer-1sbxze1 { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: wrap; gap: 8px; height: min-content; justify-content: center; overflow: visible; padding: 0px 20px 0px 20px; position: relative; width: 100%; }\",\".framer-nBcil .framer-110ipin, .framer-nBcil .framer-jwiey8 { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\".framer-nBcil .framer-1yttpln { flex: none; height: 24px; overflow: hidden; position: relative; width: 1px; }\",\".framer-nBcil .framer-q350uf { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 8px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 100%; }\",\".framer-nBcil .framer-134ji01 { flex: 1 0 0px; height: auto; position: relative; white-space: pre-wrap; width: 1px; word-break: break-word; word-wrap: break-word; }\",\".framer-nBcil.framer-v-3jguyc .framer-1sbxze1 { flex-wrap: nowrap; }\",\".framer-nBcil.framer-v-3jguyc .framer-110ipin { flex: 1 0 0px; white-space: pre-wrap; width: 1px; word-break: break-word; word-wrap: break-word; }\",...sharedStyle.css,...sharedStyle1.css];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 648\n * @framerIntrinsicWidth 972\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"FhqpQLC5k\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"RFjtWZksb\":\"image\",\"kEBU9fMbX\":\"name1\",\"bXgUJ79q_\":\"details\",\"cZyyDtACp\":\"startingAtPrice\",\"FJ5C3TzfJ\":\"divider\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramernnO0JxgGu=withCSS(Component,css,\"framer-nBcil\");export default FramernnO0JxgGu;FramernnO0JxgGu.displayName=\"Slideshow/Slide\";FramernnO0JxgGu.defaultProps={height:648,width:972};addPropertyControls(FramernnO0JxgGu,{variant:{options:[\"IJHTEoftc\",\"FhqpQLC5k\"],optionTitles:[\"Default - 2 rows\",\"1 line of text only\"],title:\"Variant\",type:ControlType.Enum},RFjtWZksb:{title:\"Image\",type:ControlType.ResponsiveImage},kEBU9fMbX:{defaultValue:\"Contemporary Jane’s Cottage\",displayTextArea:false,title:\"Name\",type:ControlType.String},onkEBU9fMbXChange:{changes:\"kEBU9fMbX\",type:ControlType.ChangeHandler},bXgUJ79q_:{defaultValue:\"2 Bed, 2 Bath, 1200 square feet\",displayTextArea:false,title:\"Details\",type:ControlType.String},onbXgUJ79q_Change:{changes:\"bXgUJ79q_\",type:ControlType.ChangeHandler},cZyyDtACp:{defaultValue:\"$600,000\",displayTextArea:false,title:\"Starting at price\",type:ControlType.String},oncZyyDtACpChange:{changes:\"cZyyDtACp\",type:ControlType.ChangeHandler},FJ5C3TzfJ:{defaultValue:false,title:\"divider\",type:ControlType.Boolean},onFJ5C3TzfJChange:{changes:\"FJ5C3TzfJ\",type:ControlType.ChangeHandler}});addFonts(FramernnO0JxgGu,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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\"},{cssFamilyName:\"Grosa Regular\",source:\"custom\",style:\"normal\",uiFamilyName:\"Grosa\",url:\"https://framerusercontent.com/assets/fKAafrj411sNbTYkr0VK4rov7j0.woff\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/DpPBYI0sL4fYLgAkX8KXOPVt7c.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/4RAEQdEOrcnDkhHiiCbJOw92Lk.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/1K3W8DizY3v4emK8Mb08YHxTbs.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/tUSCtfYVM1I1IchuyCwz9gDdQ.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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/VgYFWiwsAC5OYxAycRXXvhze58.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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/syRNPWzAMIrcJ3wIlPIP43KjQs.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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/GIryZETIX4IFypco5pYZONKhJIo.woff2\",weight:\"700\"}]},...getFontsFromSharedStyle(sharedStyle.fonts),...getFontsFromSharedStyle(sharedStyle1.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramernnO0JxgGu\",\"slots\":[],\"annotations\":{\"framerImmutableVariables\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"FhqpQLC5k\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerVariables\":\"{\\\"RFjtWZksb\\\":\\\"image\\\",\\\"kEBU9fMbX\\\":\\\"name1\\\",\\\"bXgUJ79q_\\\":\\\"details\\\",\\\"cZyyDtACp\\\":\\\"startingAtPrice\\\",\\\"FJ5C3TzfJ\\\":\\\"divider\\\"}\",\"framerColorSyntax\":\"true\",\"framerIntrinsicWidth\":\"972\",\"framerDisplayContentsDiv\":\"false\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicHeight\":\"648\",\"framerComponentViewportWidth\":\"true\",\"framerContractVersion\":\"1\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./nnO0JxgGu.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":"mfAC+wB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,CAAC,EAAuF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,EAAQ,CAAC,EAAS,CAAc,2CAA74B,IAAsM,IAAkE,IAA4B,IAAoJ,IAAyH,EAAO,EAAW,CAAC,YAAY,WAAW,EAAQ,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,kBAAkB,EAAiU,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,QAAQ,EAAQ,EAAkB,GAAW,OAAO,GAAQ,UAAU,GAAc,OAAO,EAAM,KAAM,SAAiB,EAAc,OAAO,GAAQ,SAAS,CAAC,IAAI,CAAK,EAAE,IAAA,GAAkB,EAAM,GAAW,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