{"version":3,"file":"AvoidLayoutJumping_Prod.BIbxP4Sn.mjs","names":["useRef","__esmMin","init_npm_react_18_3_1","de","c","init_jsx_runtime","ce","addPropertyControls","fontStore","init_framer_B6PCHH0A","ControlType","RenderTarget","fonts","css","className","init_Vx8xzSblW","AvoidLayoutJumping","isCanvas","ref","rafId","vertical","direction","horizontal","parent","container","updateSize","rect","style","init_AvoidLayoutJumping_Prod"],"sources":["https:/framerusercontent.com/modules/dZvpIA94wygWzQLgcN1M/fbzmNVnCTD1qLfrrgjTR/Vx8xzSblW.js","https:/framerusercontent.com/modules/h8ioHyt4BUxuvVCE1Q10/aTM6mEMGlM19JjX8exDe/AvoidLayoutJumping_Prod.js"],"sourcesContent":["// Generated by Framer (eb3d845)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Ancizar Serif-300\",\"GF;Ancizar Serif-regular\",\"GF;Ancizar Serif-italic\",\"GF;Ancizar Serif-300italic\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Ancizar Serif\",source:\"google\",style:\"normal\",uiFamilyName:\"Ancizar Serif\",url:\"https://fonts.gstatic.com/s/ancizarserif/v8/PN_lRfmxrmD9dEi_Qbtf91W1xPPTOqu-ZIAJUN2H_fAVtYfaQ_ao.woff2\",weight:\"300\"},{cssFamilyName:\"Ancizar Serif\",source:\"google\",style:\"normal\",uiFamilyName:\"Ancizar Serif\",url:\"https://fonts.gstatic.com/s/ancizarserif/v8/PN_lRfmxrmD9dEi_Qbtf91W1xPPTOqu-ZIAJUN3Z_fAVtYfaQ_ao.woff2\",weight:\"400\"},{cssFamilyName:\"Ancizar Serif\",source:\"google\",style:\"italic\",uiFamilyName:\"Ancizar Serif\",url:\"https://fonts.gstatic.com/s/ancizarserif/v8/PN_nRfmxrmD9dEi_Qbtf91W17vrhxXPXDxqnV8gRvhhTv4b4Ruao7Y0.woff2\",weight:\"400\"},{cssFamilyName:\"Ancizar Serif\",source:\"google\",style:\"italic\",uiFamilyName:\"Ancizar Serif\",url:\"https://fonts.gstatic.com/s/ancizarserif/v8/PN_nRfmxrmD9dEi_Qbtf91W17vrhxXPXDxqnV8gRvkZTv4b4Ruao7Y0.woff2\",weight:\"300\"}]}];export const css=['.framer-WUDhL .framer-styles-preset-zvl9gn:not(.rich-text-wrapper), .framer-WUDhL .framer-styles-preset-zvl9gn.rich-text-wrapper h4 { --framer-font-family: \"Ancizar Serif\", \"Ancizar Serif Placeholder\", serif; --framer-font-family-bold: \"Ancizar Serif\", \"Ancizar Serif Placeholder\", serif; --framer-font-family-bold-italic: \"Ancizar Serif\", \"Ancizar Serif Placeholder\", serif; --framer-font-family-italic: \"Ancizar Serif\", \"Ancizar Serif Placeholder\", serif; --framer-font-open-type-features: normal; --framer-font-size: 23px; --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: 300; --framer-font-weight-bold: 400; --framer-font-weight-bold-italic: 400; --framer-font-weight-italic: 300; --framer-letter-spacing: -0.02em; --framer-line-height: 105%; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-b7414fe1-9732-476d-bfbc-24a58490d0a7, #1c1c1b); --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-WUDhL .framer-styles-preset-zvl9gn:not(.rich-text-wrapper), .framer-WUDhL .framer-styles-preset-zvl9gn.rich-text-wrapper h4 { --framer-font-family: \"Ancizar Serif\", \"Ancizar Serif Placeholder\", serif; --framer-font-family-bold: \"Ancizar Serif\", \"Ancizar Serif Placeholder\", serif; --framer-font-family-bold-italic: \"Ancizar Serif\", \"Ancizar Serif Placeholder\", serif; --framer-font-family-italic: \"Ancizar Serif\", \"Ancizar Serif Placeholder\", serif; --framer-font-open-type-features: normal; --framer-font-size: 21px; --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: 300; --framer-font-weight-bold: 400; --framer-font-weight-bold-italic: 400; --framer-font-weight-italic: 300; --framer-letter-spacing: -0.02em; --framer-line-height: 105%; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-b7414fe1-9732-476d-bfbc-24a58490d0a7, #1c1c1b); --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-WUDhL .framer-styles-preset-zvl9gn:not(.rich-text-wrapper), .framer-WUDhL .framer-styles-preset-zvl9gn.rich-text-wrapper h4 { --framer-font-family: \"Ancizar Serif\", \"Ancizar Serif Placeholder\", serif; --framer-font-family-bold: \"Ancizar Serif\", \"Ancizar Serif Placeholder\", serif; --framer-font-family-bold-italic: \"Ancizar Serif\", \"Ancizar Serif Placeholder\", serif; --framer-font-family-italic: \"Ancizar Serif\", \"Ancizar Serif Placeholder\", serif; --framer-font-open-type-features: normal; --framer-font-size: 19px; --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: 300; --framer-font-weight-bold: 400; --framer-font-weight-bold-italic: 400; --framer-font-weight-italic: 300; --framer-letter-spacing: -0.02em; --framer-line-height: 105%; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-b7414fe1-9732-476d-bfbc-24a58490d0a7, #1c1c1b); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }'];export const className=\"framer-WUDhL\";\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=./AvoidLayoutJum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