{"version":3,"file":"AvoidLayoutJumping_Prod.qM-1SHv6.mjs","names":["useRef","__esmMin","init_npm_react_18_3_1","ce","c","init_jsx_runtime","de","RenderTarget","fontStore","addPropertyControls","init_framer_CaDWdxiz","ControlType","fonts","css","className","init_ilUlJnLkH","AvoidLayoutJumping","isCanvas","ref","rafId","vertical","direction","horizontal","parent","container","updateSize","rect","style","init_AvoidLayoutJumping_Prod"],"sources":["https:/framerusercontent.com/modules/pasZFJRrG2DRBRmjqpOU/WaS0VVF8nE4LXGfB9yTC/ilUlJnLkH.js","https:/framerusercontent.com/modules/h8ioHyt4BUxuvVCE1Q10/aTM6mEMGlM19JjX8exDe/AvoidLayoutJumping_Prod.js"],"sourcesContent":["// Generated by Framer (eea9f0c)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Antonio-regular\",\"GF;Antonio-700\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Antonio\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/antonio/v21/gNMbW3NwSYq_9WD34ngK5F8vR8T0PVxx8RtNY2DwSXlM.woff2\",weight:\"400\"},{family:\"Antonio\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/antonio/v21/gNMbW3NwSYq_9WD34ngK5F8vR8T0PVyW9htNY2DwSXlM.woff2\",weight:\"700\"}]}];export const css=['.framer-vamxU .framer-styles-preset-usoyrg:not(.rich-text-wrapper), .framer-vamxU .framer-styles-preset-usoyrg.rich-text-wrapper h4 { --framer-font-family: \"Antonio\", \"Antonio Placeholder\", sans-serif; --framer-font-family-bold: \"Antonio\", \"Antonio Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 26px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-letter-spacing: 0em; --framer-line-height: 1.3em; --framer-paragraph-spacing: 40px; --framer-text-alignment: left; --framer-text-color: var(--token-a9f688eb-778b-4a71-929e-ebf8a014b4cf, #303030); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: uppercase; }','@media (max-width: 1199px) and (min-width: 810px) { .framer-vamxU .framer-styles-preset-usoyrg:not(.rich-text-wrapper), .framer-vamxU .framer-styles-preset-usoyrg.rich-text-wrapper h4 { --framer-font-family: \"Antonio\", \"Antonio Placeholder\", sans-serif; --framer-font-family-bold: \"Antonio\", \"Antonio Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 20px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-letter-spacing: 0em; --framer-line-height: 1.3em; --framer-paragraph-spacing: 40px; --framer-text-alignment: left; --framer-text-color: var(--token-a9f688eb-778b-4a71-929e-ebf8a014b4cf, #303030); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: uppercase; } }','@media (max-width: 809px) and (min-width: 0px) { .framer-vamxU .framer-styles-preset-usoyrg:not(.rich-text-wrapper), .framer-vamxU .framer-styles-preset-usoyrg.rich-text-wrapper h4 { --framer-font-family: \"Antonio\", \"Antonio Placeholder\", sans-serif; --framer-font-family-bold: \"Antonio\", \"Antonio Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 20px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-letter-spacing: 0em; --framer-line-height: 1.3em; --framer-paragraph-spacing: 40px; --framer-text-alignment: left; --framer-text-color: var(--token-a9f688eb-778b-4a71-929e-ebf8a014b4cf, #303030); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: uppercase; } }'];export const className=\"framer-vamxU\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__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\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