{"version":3,"file":"AvoidLayoutJumping_Prod.VRCEQDeJ.mjs","names":["serializationHash","variantClassNames","transition1","Transition","React.useContext","React.useMemo","Variants","React.Fragment","getProps","createLayoutDependency","useRef","React.useId","Badge2","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","Image","useRef"],"sources":["https:/framerusercontent.com/modules/DbJOPXfoH8a2nHsffH17/uwP69EI8DuYqtswycbA9/A8_V0vmfW.js","https:/framerusercontent.com/modules/aHVvbU7X3xKYpmz7DZzO/mwiSx1EBR29ER06BNv6X/gHxVGxN2Z.js","https:/framerusercontent.com/modules/h8ioHyt4BUxuvVCE1Q10/aTM6mEMGlM19JjX8exDe/AvoidLayoutJumping_Prod.js"],"sourcesContent":["// Generated by Framer (84a2f33)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"Nbs5Se9eY\",\"YWHk3u5gE\",\"pJgvbTGsP\"];const serializationHash=\"framer-TNS7x\";const variantClassNames={Nbs5Se9eY:\"framer-v-125coh3\",pJgvbTGsP:\"framer-v-1fbbz77\",YWHk3u5gE:\"framer-v-z1flz7\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={damping:50,delay:0,mass:1,stiffness:400,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={Blue:\"Nbs5Se9eY\",Lime:\"YWHk3u5gE\",Neutral:\"pJgvbTGsP\"};const getProps=({height,id,label,width,...props})=>{return{...props,tlRLf4OCV:label??props.tlRLf4OCV??\"Badge\",variant:humanReadableVariantMap[props.variant]??props.variant??\"Nbs5Se9eY\"};};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,tlRLf4OCV,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"Nbs5Se9eY\",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-125coh3\",className,classNames),\"data-framer-name\":\"Blue\",layoutDependency:layoutDependency,layoutId:\"Nbs5Se9eY\",ref:refBinding,style:{backgroundColor:\"var(--token-f2d6a74f-15c4-4774-899e-fb33b6095a79, rgb(0, 122, 255))\",borderBottomLeftRadius:50,borderBottomRightRadius:50,borderTopLeftRadius:50,borderTopRightRadius:50,...style},variants:{pJgvbTGsP:{backgroundColor:\"var(--token-8fac186d-9834-4703-b7ab-406f25e338df, rgb(245, 245, 245))\"},YWHk3u5gE:{backgroundColor:\"var(--token-455b0db2-33c4-41dd-ae3b-21c741a1e593, rgb(187, 244, 81))\"}},...addPropertyOverrides({pJgvbTGsP:{\"data-framer-name\":\"Neutral\"},YWHk3u5gE:{\"data-framer-name\":\"Lime\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"RlM7TWFucm9wZS1yZWd1bGFy\",\"--framer-font-family\":'\"Manrope\", \"Manrope Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-letter-spacing\":\"-0.01em\",\"--framer-line-height\":\"20px\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-63b0739b-1a80-4482-abce-eb307b7c9d34, rgb(255, 255, 255)))\"},children:\"Badge\"})}),className:\"framer-8rkhu\",fonts:[\"FS;Manrope-regular\"],layoutDependency:layoutDependency,layoutId:\"H6OFyK_n6\",style:{\"--extracted-r6o4lv\":\"var(--token-63b0739b-1a80-4482-abce-eb307b7c9d34, rgb(255, 255, 255))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:tlRLf4OCV,variants:{pJgvbTGsP:{\"--extracted-r6o4lv\":\"var(--token-71403775-bd61-4b8b-ac79-c4ede590a13a, rgb(24, 24, 24))\"},YWHk3u5gE:{\"--extracted-r6o4lv\":\"var(--token-71403775-bd61-4b8b-ac79-c4ede590a13a, rgb(24, 24, 24))\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({pJgvbTGsP:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"RlM7TWFucm9wZS1yZWd1bGFy\",\"--framer-font-family\":'\"Manrope\", \"Manrope Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-letter-spacing\":\"-0.01em\",\"--framer-line-height\":\"20px\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-71403775-bd61-4b8b-ac79-c4ede590a13a, rgb(24, 24, 24)))\"},children:\"Badge\"})})},YWHk3u5gE:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"RlM7TWFucm9wZS1yZWd1bGFy\",\"--framer-font-family\":'\"Manrope\", \"Manrope Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-letter-spacing\":\"-0.01em\",\"--framer-line-height\":\"20px\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-71403775-bd61-4b8b-ac79-c4ede590a13a, rgb(24, 24, 24)))\"},children:\"Badge\"})})}},baseVariant,gestureVariant)})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-TNS7x.framer-32g615, .framer-TNS7x .framer-32g615 { display: block; }\",\".framer-TNS7x.framer-125coh3 { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: hidden; padding: 4px 12px 4px 12px; position: relative; width: min-content; will-change: var(--framer-will-change-override, transform); }\",\".framer-TNS7x .framer-8rkhu { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 28\n * @framerIntrinsicWidth 64\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"YWHk3u5gE\":{\"layout\":[\"auto\",\"auto\"]},\"pJgvbTGsP\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"tlRLf4OCV\":\"label\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerA8_V0vmfW=withCSS(Component,css,\"framer-TNS7x\");export default FramerA8_V0vmfW;FramerA8_V0vmfW.displayName=\"Badge 2\";FramerA8_V0vmfW.defaultProps={height:28,width:64};addPropertyControls(FramerA8_V0vmfW,{variant:{options:[\"Nbs5Se9eY\",\"YWHk3u5gE\",\"pJgvbTGsP\"],optionTitles:[\"Blue\",\"Lime\",\"Neutral\"],title:\"Variant\",type:ControlType.Enum},tlRLf4OCV:{defaultValue:\"Badge\",displayTextArea:false,title:\"Label\",type:ControlType.String}});addFonts(FramerA8_V0vmfW,[{explicitInter:true,fonts:[{family:\"Manrope\",source:\"fontshare\",style:\"normal\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/2TYFCBHUANEXS6QGR5EQDUNAFH6LSWM3/AYNOU3VEA4LRTDNKJQUFNVNUTYSGOUOP/UXO4O7K2G3HI3D2VKD7UXVJVJD26P4BQ.woff2\",weight:\"400\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerA8_V0vmfW\",\"slots\":[],\"annotations\":{\"framerDisplayContentsDiv\":\"false\",\"framerContractVersion\":\"1\",\"framerVariables\":\"{\\\"tlRLf4OCV\\\":\\\"label\\\"}\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"YWHk3u5gE\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"pJgvbTGsP\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicWidth\":\"64\",\"framerIntrinsicHeight\":\"28\",\"framerImmutableVariables\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerColorSyntax\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./A8_V0vmfW.map","// Generated by Framer (19407dd)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,getLoadingLazyAtYPosition,Image,RichText,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import Badge2 from\"https://framerusercontent.com/modules/DbJOPXfoH8a2nHsffH17/uwP69EI8DuYqtswycbA9/A8_V0vmfW.js\";const Badge2Fonts=getFonts(Badge2);const serializationHash=\"framer-5Rx3G\";const variantClassNames={H9zpxi6XS:\"framer-v-7n851t\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const JKETe5YaG=undefined;const rykRFJE4W=undefined;const AokLljrNx=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 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,name1,position,width,...props})=>{return{...props,AokLljrNx:name1??props.AokLljrNx??\"Full name\",JKETe5YaG:image??props.JKETe5YaG,rykRFJE4W:position??props.rykRFJE4W??\"Ielts\"};};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,AokLljrNx,JKETe5YaG,rykRFJE4W,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"H9zpxi6XS\",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__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-7n851t\",className,classNames),\"data-framer-name\":\"Default\",layoutDependency:layoutDependency,layoutId:\"H9zpxi6XS\",ref:refBinding,style:{backgroundColor:\"var(--token-8fac186d-9834-4703-b7ab-406f25e338df, rgb(245, 245, 245))\",borderBottomLeftRadius:24,borderBottomRightRadius:24,borderTopLeftRadius:24,borderTopRightRadius:24,...style},children:[/*#__PURE__*/_jsx(motion.div,{className:\"framer-15bct4d\",\"data-framer-name\":\"Image\",layoutDependency:layoutDependency,layoutId:\"mMNv_WuEu\",style:{borderBottomLeftRadius:16,borderBottomRightRadius:16,borderTopLeftRadius:16,borderTopRightRadius:16},children:/*#__PURE__*/_jsx(Image,{background:{alt:\"\",fit:\"fill\",loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+8+(((componentViewport?.height||548)-16-508)/2+0+0)+0+0),sizes:`calc(${componentViewport?.width||\"100vw\"} - 16px)`,...toResponsiveImage(JKETe5YaG)},className:\"framer-gznaga\",layoutDependency:layoutDependency,layoutId:\"mSyRUWIqn\",style:{borderBottomLeftRadius:16,borderBottomRightRadius:16,borderTopLeftRadius:16,borderTopRightRadius:16}})}),/*#__PURE__*/_jsxs(motion.div,{className:\"framer-5e2ytm\",\"data-framer-name\":\"Content\",layoutDependency:layoutDependency,layoutId:\"ZNn55r2j4\",style:{backgroundColor:\"var(--token-9d4bafbf-a670-4557-8e57-8e9c05b71eef, rgba(0, 0, 0, 0.05))\",borderBottomLeftRadius:16,borderBottomRightRadius:16,borderTopLeftRadius:16,borderTopRightRadius:16},children:[/*#__PURE__*/_jsx(ComponentViewportProvider,{height:28,y:(componentViewport?.y||0)+8+(((componentViewport?.height||548)-16-508)/2+400+8)+16+0,children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-11v5ad3-container\",layoutDependency:layoutDependency,layoutId:\"c5Zj_cyAf-container\",nodeId:\"c5Zj_cyAf\",rendersWithMotion:true,scopeId:\"gHxVGxN2Z\",children:/*#__PURE__*/_jsx(Badge2,{height:\"100%\",id:\"c5Zj_cyAf\",layoutId:\"c5Zj_cyAf\",tlRLf4OCV:rykRFJE4W,variant:\"pJgvbTGsP\",width:\"100%\"})})}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.h5,{style:{\"--font-selector\":\"RlM7TWFucm9wZS1zZW1pYm9sZA==\",\"--framer-font-family\":'\"Manrope\", \"Manrope Placeholder\", sans-serif',\"--framer-font-size\":\"24px\",\"--framer-font-weight\":\"600\",\"--framer-letter-spacing\":\"-0.02em\",\"--framer-line-height\":\"32px\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-1lwpl3i, var(--token-71403775-bd61-4b8b-ac79-c4ede590a13a, rgb(24, 24, 24)))\"},children:\"Full name\"})}),className:\"framer-19znlz1\",fonts:[\"FS;Manrope-semibold\"],layoutDependency:layoutDependency,layoutId:\"zMZ4MTFny\",style:{\"--extracted-1lwpl3i\":\"var(--token-71403775-bd61-4b8b-ac79-c4ede590a13a, rgb(24, 24, 24))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:AokLljrNx,verticalAlignment:\"top\",withExternalLayout:true})]})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-5Rx3G.framer-7f4w1b, .framer-5Rx3G .framer-7f4w1b { display: block; }\",\".framer-5Rx3G.framer-7n851t { align-content: center; align-items: center; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 8px; height: min-content; justify-content: center; overflow: hidden; padding: 8px; position: relative; width: 440px; will-change: var(--framer-will-change-override, transform); }\",\".framer-5Rx3G .framer-15bct4d { align-content: center; align-items: center; display: flex; flex: none; flex-direction: column; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: hidden; padding: 0px; position: relative; width: 100%; will-change: var(--framer-will-change-override, transform); }\",\".framer-5Rx3G .framer-gznaga { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 424px); overflow: hidden; position: relative; width: 100%; will-change: var(--framer-will-change-override, transform); }\",\".framer-5Rx3G .framer-5e2ytm { align-content: center; align-items: center; display: flex; flex: none; flex-direction: column; flex-wrap: nowrap; gap: 8px; height: min-content; justify-content: center; overflow: hidden; padding: 16px; position: relative; width: 100%; will-change: var(--framer-will-change-override, transform); }\",\".framer-5Rx3G .framer-11v5ad3-container { flex: none; height: auto; position: relative; width: auto; }\",\".framer-5Rx3G .framer-19znlz1 { flex: none; height: auto; position: relative; white-space: pre-wrap; width: 100%; word-break: break-word; word-wrap: break-word; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 548\n * @framerIntrinsicWidth 440\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"AokLljrNx\":\"name1\",\"JKETe5YaG\":\"image\",\"rykRFJE4W\":\"position\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramergHxVGxN2Z=withCSS(Component,css,\"framer-5Rx3G\");export default FramergHxVGxN2Z;FramergHxVGxN2Z.displayName=\"Teacher card\";FramergHxVGxN2Z.defaultProps={height:548,width:440};addPropertyControls(FramergHxVGxN2Z,{AokLljrNx:{defaultValue:\"Full name\",displayTextArea:false,title:\"Name\",type:ControlType.String},JKETe5YaG:{title:\"Image\",type:ControlType.ResponsiveImage},rykRFJE4W:{defaultValue:\"Ielts\",displayTextArea:false,title:\"Position\",type:ControlType.String}});addFonts(FramergHxVGxN2Z,[{explicitInter:true,fonts:[{cssFamilyName:\"Manrope\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Manrope\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/6U2SGH566NSNERG6RGEV3DSNEK7DL2RF/JRDYRKMSAW2H35IWEQIPL67HAJQ35MG5/JNU3GNMUBPWW6V6JTED3S27XL5HN7NM5.woff2\",weight:\"600\"}]},...Badge2Fonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramergHxVGxN2Z\",\"slots\":[],\"annotations\":{\"framerAutoSizeImages\":\"true\",\"framerContractVersion\":\"1\",\"framerDisplayContentsDiv\":\"false\",\"framerColorSyntax\":\"true\",\"framerIntrinsicWidth\":\"440\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicHeight\":\"548\",\"framerVariables\":\"{\\\"AokLljrNx\\\":\\\"name1\\\",\\\"JKETe5YaG\\\":\\\"image\\\",\\\"rykRFJE4W\\\":\\\"position\\\"}\",\"framerComponentViewportWidth\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./gHxVGxN2Z.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":"sXACqf,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,0CAAlnB,IAAoI,IAAkE,IAA4B,CAAgC,EAAW,CAAC,YAAY,YAAY,YAAY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