{"version":3,"file":"AvoidLayoutJumping_Prod.BWxF68OA.mjs","names":["useRef","__esmMin","c","init_jsx_runtime","ce","init_npm_react_18_3_1","de","addPropertyControls","RenderTarget","init_framer_DcxuU94H","fontStore","ControlType","fonts","css","className","init_Zn2dR096B","AvoidLayoutJumping","isCanvas","ref","rafId","vertical","direction","horizontal","parent","container","updateSize","rect","style","init_AvoidLayoutJumping_Prod"],"sources":["https:/framerusercontent.com/modules/n0V6j8VbJU6QALPl6Cpx/0zbttpp4AXv6P8rGTA9P/Zn2dR096B.js","https:/framerusercontent.com/modules/h8ioHyt4BUxuvVCE1Q10/aTM6mEMGlM19JjX8exDe/AvoidLayoutJumping_Prod.js"],"sourcesContent":["// Generated by Framer (f2f96df)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"CUSTOMV2;Epilogue Regular\",\"CUSTOMV2;Epilogue Bold\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Epilogue Regular\",source:\"custom\",style:\"normal\",uiFamilyName:\"Epilogue\",url:\"https://framerusercontent.com/assets/bYdVDS5l6UdWDDnmANdNPvodk.woff2\",weight:\"400\"},{cssFamilyName:\"Epilogue Bold\",source:\"custom\",style:\"normal\",uiFamilyName:\"Epilogue\",url:\"https://framerusercontent.com/assets/woSHPLUndlcd02sW251G0kSQyjk.woff2\",weight:\"700\"}]}];export const css=[\".framer-2oT5s .framer-styles-preset-1argfjp:not(.rich-text-wrapper), .framer-2oT5s .framer-styles-preset-1argfjp.rich-text-wrapper p { --framer-font-family: \\\"Epilogue Regular\\\", \\\"Epilogue Regular Placeholder\\\", sans-serif; --framer-font-family-bold: \\\"Epilogue Bold\\\", \\\"Epilogue Bold Placeholder\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv03' on, 'cv04' on, 'cv09' on, 'cv11' on; --framer-font-size: 12px; --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: -0.02em; --framer-line-height: 1.4em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-f48f2086-f4c8-4dc8-8f94-8ae3f1f002a0, #044853); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }\"];export const className=\"framer-2oT5s\";\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\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AvoidLayoutJumping_Prod.map"],"mappings":"A,4OAC8BU,EAAU,UAAU,CAAC,4BAA4B,wBAAwB,CAAC,EAAe,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,cAAc,mBAAmB,OAAO,SAAS,MAAM,SAAS,aAAa,WAAW,IAAI,uEAAuE,OAAO,KAAK,EAAE,CAAC,cAAc,gBAAgB,OAAO,SAAS,MAAM,SAAS,aAAa,WAAW,IAAI,yEAAyE,OAAO,KAAK,CAAC,CAAC,CAAC,EAAe,EAAI,CAAC,m6BAA26B,EAAe,EAAU,c,OCIl9C,SAAwBM,EAAmB,CAAC,YAAU,SAAO,CAAC,IAAMC,EAAST,EAAa,QAAQ,IAAIA,EAAa,OAAaU,EAAIlB,EAAO,IAAI,EAAQmB,EAAMnB,EAAO,EAAQoB,EAASC,IAAY,YAAYA,IAAY,OAAaC,EAAWD,IAAY,cAAcA,IAAY,OACvD,OAD8DjB,MAAc,CAAC,GAAGa,EAAS,OAAO,IAAMM,EAAOL,EAAI,SAAS,eAAe,cAAc,GAAG,CAACK,EAAO,OAAO,IAAMC,EAAUD,EAAO,cAAc,GAAG,CAACC,EAAU,OAAO,IAAMC,MAAe,CAAC,IAAMC,EAAKH,EAAO,sBAAsB,EAAKD,IAAY,EAAU,MAAM,MAAM,GAAGI,EAAK,MAAM,KAAQN,IAAU,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