{"version":3,"file":"AvoidLayoutJumping_Prod.bfSkoKNX.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/hA6Hli0HGeHH4cDHH9Hs/Vp77opQ5MEo7HgRNvRxD/kRU03Sh9O.js","https:/framerusercontent.com/modules/h8ioHyt4BUxuvVCE1Q10/aTM6mEMGlM19JjX8exDe/AvoidLayoutJumping_Prod.js"],"sourcesContent":["// Generated by Framer (a72a541)\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 D6hPxrcdg=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\"><g d=\"M 0 10 L 24 10 L 24 14 L 0 14 Z M 14 0 L 14 24 L 10 24 L 10 0 Z\" fill=\"transparent\" height=\"24px\" id=\"Q9Yv4kOvO\" width=\"24px\"><path d=\"M 0 0 L 24 0 L 24 4 L 0 4 Z\" fill=\"var(--15oqnd3, rgb(0, 255, 0))\" height=\"4px\" id=\"ZoV6EI9tv\" transform=\"translate(0 10)\" width=\"24px\"/><path d=\"M 4 0 L 4 24 L 0 24 L 0 0 Z\" fill=\"var(--15oqnd3, rgb(0, 255, 0))\" height=\"24px\" id=\"z_B0_VK9N\" transform=\"translate(10 0)\" width=\"4px\"/></g></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=({fill,height,id,width,...props})=>{return{...props,D6hPxrcdg:fill??props.D6hPxrcdg??\"rgb(0, 255, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,D6hPxrcdg,...restProps}=getProps(props);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-8bFil\",className),layoutId:layoutId,ref:ref,style:{\"--15oqnd3\":D6hPxrcdg,...style}});});const css=[`.framer-8bFil { -webkit-mask: ${mask}; aspect-ratio: 1; background-color: var(--15oqnd3); 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 {\"D6hPxrcdg\":\"fill\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"realPlus\",\"color\":{\"type\":\"variable\",\"value\":\"15oqnd3\"},\"set\":{\"localId\":\"vectorSet/V_dfNNoba\",\"id\":\"V_dfNNoba\",\"moduleId\":\"FlQzmVvWVlTHE1GbnD2b\"}}\n */const Icon=withCSS(Component,css,\"framer-8bFil\");Icon.displayName=\"realPlus\";export default Icon;addPropertyControls(Icon,{D6hPxrcdg:{defaultValue:\"rgb(0, 255, 0)\",hidden:false,title:\"Fill\",type:ControlType.Color}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerVector\":\"{\\\"name\\\":\\\"realPlus\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"15oqnd3\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/V_dfNNoba\\\",\\\"id\\\":\\\"V_dfNNoba\\\",\\\"moduleId\\\":\\\"FlQzmVvWVlTHE1GbnD2b\\\"}}\",\"framerImmutableVariables\":\"true\",\"framerVariables\":\"{\\\"D6hPxrcdg\\\":\\\"fill\\\"}\",\"framerIntrinsicHeight\":\"24\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"24\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__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\"}}}\n//# sourceMappingURL=./Avoid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