{"version":3,"file":"AvoidLayoutJumping_Prod.CMdQ9gtW.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/6lm8pYonJD6eiDyPb6JY/h02ImuiE82wTYTR2sSTV/o7QhBLw0D.js","https:/framerusercontent.com/modules/h8ioHyt4BUxuvVCE1Q10/aTM6mEMGlM19JjX8exDe/AvoidLayoutJumping_Prod.js"],"sourcesContent":["// Generated by Framer (02004a2)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"FS;Nunito-semibold\",\"FS;Nunito-black\",\"FS;Nunito-black italic\",\"FS;Nunito-semibold italic\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Nunito\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Nunito\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/LX36A2EOUCLIDVM4XR3ZIWY6CX4DQYKE/YM36K55HS52MFB6AKX3BB366JCLDQFJF/MKTS7VJCH3IMUVTV3MN54KOVFE4Y43BD.woff2\",weight:\"600\"},{cssFamilyName:\"Nunito\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Nunito\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/MEHW73B2QOGW4XSMTMRZNTT456RGFGZR/NNG35T3CNIFFCM6HZDK3AGZYCYRADBUB/W5V7CAN3UXPRAAGP4NZQP6AVRBJRK74M.woff2\",weight:\"900\"},{cssFamilyName:\"Nunito\",source:\"fontshare\",style:\"italic\",uiFamilyName:\"Nunito\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/TRWFCBZCBPQZM5UVMJUHVOEKZQZ7KLLJ/B5PESYVOAZZYVDSLL6JEDUW7ACGS4RWS/JMCFS67KTH6KLI427VFPMDSLJB3WMR3A.woff2\",weight:\"900\"},{cssFamilyName:\"Nunito\",source:\"fontshare\",style:\"italic\",uiFamilyName:\"Nunito\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/O7HGVKWX7JR32YG6AHEKV2TIURTPCXBV/QMDNUSJVTGNJOGNZLNHRW4P62SHZNX7Y/3VCPBSCR4RRWG4A4M6ZMRM3SZAKCFBP7.woff2\",weight:\"600\"}]}];export const css=['.framer-DUXX7 .framer-styles-preset-1aepq4p:not(.rich-text-wrapper), .framer-DUXX7 .framer-styles-preset-1aepq4p.rich-text-wrapper p { --framer-font-family: \"Nunito\", \"Nunito Placeholder\", sans-serif; --framer-font-family-bold: \"Nunito\", sans-serif; --framer-font-family-bold-italic: \"Nunito\", sans-serif; --framer-font-family-italic: \"Nunito\", \"Nunito Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 18px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 600; --framer-font-weight-bold: 900; --framer-font-weight-bold-italic: 900; --framer-font-weight-italic: 600; --framer-letter-spacing: -0.02em; --framer-line-height: 1em; --framer-paragraph-spacing: 20px; --framer-text-alignment: left; --framer-text-color: var(--token-504e99c1-bd1c-481c-8765-1b2e6ab98f9a, #424242); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }','@media (max-width: 1199px) and (min-width: 810px) { .framer-DUXX7 .framer-styles-preset-1aepq4p:not(.rich-text-wrapper), .framer-DUXX7 .framer-styles-preset-1aepq4p.rich-text-wrapper p { --framer-font-family: \"Nunito\", \"Nunito Placeholder\", sans-serif; --framer-font-family-bold: \"Nunito\", sans-serif; --framer-font-family-bold-italic: \"Nunito\", sans-serif; --framer-font-family-italic: \"Nunito\", \"Nunito Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 14px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 600; --framer-font-weight-bold: 900; --framer-font-weight-bold-italic: 900; --framer-font-weight-italic: 600; --framer-letter-spacing: -0.02em; --framer-line-height: 1em; --framer-paragraph-spacing: 20px; --framer-text-alignment: left; --framer-text-color: var(--token-504e99c1-bd1c-481c-8765-1b2e6ab98f9a, #424242); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }','@media (max-width: 809px) and (min-width: 0px) { .framer-DUXX7 .framer-styles-preset-1aepq4p:not(.rich-text-wrapper), .framer-DUXX7 .framer-styles-preset-1aepq4p.rich-text-wrapper p { --framer-font-family: \"Nunito\", \"Nunito Placeholder\", sans-serif; --framer-font-family-bold: \"Nunito\", sans-serif; --framer-font-family-bold-italic: \"Nunito\", sans-serif; --framer-font-family-italic: \"Nunito\", \"Nunito Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 600; --framer-font-weight-bold: 900; --framer-font-weight-bold-italic: 900; --framer-font-weight-italic: 600; --framer-letter-spacing: -0.02em; --framer-line-height: 1em; --framer-paragraph-spacing: 20px; --framer-text-alignment: left; --framer-text-color: var(--token-504e99c1-bd1c-481c-8765-1b2e6ab98f9a, #424242); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }'];export const className=\"framer-DUXX7\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"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":"sNAC8B,GAAU,UAAU,CAAC,qBAAqB,kBAAkB,yBAAyB,4BAA4B,CAAC,CAAc,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,cAAc,SAAS,OAAO,YAAY,MAAM,SAAS,aAAa,SAAS,IAAI,yKAAyK,OAAO,MAAM,CAAC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