{"version":3,"file":"AvoidLayoutJumping_Prod.-66YNfh8.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/mO96gLw68p4XJGNdloAb/HBcx99tccAhtJl4orWLp/Ofngr02Kb.js","https:/framerusercontent.com/modules/h8ioHyt4BUxuvVCE1Q10/aTM6mEMGlM19JjX8exDe/AvoidLayoutJumping_Prod.js"],"sourcesContent":["// Generated by Framer (3256e0c)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const gMUcxyU3F=undefined;const mask='url(\\'data:image/svg+xml,<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 16.773 0.227 C 16.628 0.082 16.432 0 16.227 0 C 16.022 0 15.825 0.082 15.68 0.227 L 8.5 7.408 L 1.32 0.227 C 1.018 -0.075 0.528 -0.075 0.226 0.227 C -0.075 0.529 -0.075 1.018 0.226 1.32 L 7.953 9.047 C 8.098 9.192 8.295 9.273 8.5 9.273 C 8.705 9.273 8.902 9.192 9.047 9.047 L 16.773 1.32 C 16.918 1.175 17 0.978 17 0.773 C 17 0.568 16.918 0.372 16.773 0.227 Z\" fill=\"var(--2ybfxy, rgb(0,0,0))\" height=\"9.273377021568052px\" id=\"uZ5sqGgi1\" transform=\"translate(3.5 7.5)\" width=\"17px\"/></svg>\\') alpha no-repeat center / auto var(--framer-icon-mask-mode, add), var(--framer-icon-mask, none)';const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(motion.div,{...rest,layoutId:layoutId,ref:ref}):/*#__PURE__*/_jsx(\"div\",{...rest,ref:ref});});const getProps=({colour,height,id,width,...props})=>{return{...props,gMUcxyU3F:colour??props.gMUcxyU3F??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,gMUcxyU3F,...restProps}=getProps(props);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-Qi5MK\",className),layoutId:layoutId,ref:ref,style:{\"--2ybfxy\":gMUcxyU3F,...style}});});const css=[`.framer-Qi5MK { -webkit-mask: ${mask}; aspect-ratio: 1; background-color: var(--2ybfxy); mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"gMUcxyU3F\":\"colour\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Caretdown\",\"color\":{\"type\":\"variable\",\"value\":\"2ybfxy\"},\"set\":{\"localId\":\"vectorSet/xKNFhd8gh\",\"id\":\"xKNFhd8gh\",\"moduleId\":\"Q5LUb2ItXt762VzQMRm5\"}}\n */const Icon=withCSS(Component,css,\"framer-Qi5MK\");Icon.displayName=\"Caretdown\";export default Icon;addPropertyControls(Icon,{gMUcxyU3F:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Colour\",type:ControlType.Color}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerImmutableVariables\":\"true\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerVector\":\"{\\\"name\\\":\\\"Caretdown\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"2ybfxy\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/xKNFhd8gh\\\",\\\"id\\\":\\\"xKNFhd8gh\\\",\\\"moduleId\\\":\\\"Q5LUb2ItXt762VzQMRm5\\\"}}\",\"framerIntrinsicWidth\":\"24\",\"framerIntrinsicHeight\":\"24\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerVariables\":\"{\\\"gMUcxyU3F\\\":\\\"colour\\\"}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","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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