{"version":3,"file":"AvoidLayoutJumping_Prod.IfqYop2S.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","RichText","useRef"],"sources":["https:/framerusercontent.com/modules/jhinIGPVcq8dDUTyd1Sc/541B0aY8CbDczeaRgr9w/GdinZGq9S.js","https:/framerusercontent.com/modules/h8ioHyt4BUxuvVCE1Q10/aTM6mEMGlM19JjX8exDe/AvoidLayoutJumping_Prod.js"],"sourcesContent":["// Generated by Framer (f0648f9)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"nP0DOkMoc\",\"pzgINlOnp\",\"hOV4ZP5lN\"];const serializationHash=\"framer-mClKh\";const variantClassNames={hOV4ZP5lN:\"framer-v-njhjco\",nP0DOkMoc:\"framer-v-1j2f0n3\",pzgINlOnp:\"framer-v-3n09s5\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const tlRLf4OCV=undefined;const transition1={damping:50,delay:0,mass:1,stiffness:400,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={Blue:\"nP0DOkMoc\",Lime:\"pzgINlOnp\",Neutral:\"hOV4ZP5lN\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,label,width,...props})=>{return{...props,tlRLf4OCV:label??props.tlRLf4OCV??\"Badge\",variant:humanReadableVariantMap[props.variant]??props.variant??\"nP0DOkMoc\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,tlRLf4OCV,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"nP0DOkMoc\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1j2f0n3\",className,classNames),\"data-framer-name\":\"Blue\",layoutDependency:layoutDependency,layoutId:\"nP0DOkMoc\",ref:refBinding,style:{backgroundColor:\"var(--token-f2d6a74f-15c4-4774-899e-fb33b6095a79, rgb(0, 122, 255))\",borderBottomLeftRadius:50,borderBottomRightRadius:50,borderTopLeftRadius:50,borderTopRightRadius:50,...style},variants:{hOV4ZP5lN:{backgroundColor:\"var(--token-8fac186d-9834-4703-b7ab-406f25e338df, rgb(245, 245, 245))\"},pzgINlOnp:{backgroundColor:\"var(--token-455b0db2-33c4-41dd-ae3b-21c741a1e593, rgb(187, 244, 81))\"}},...addPropertyOverrides({hOV4ZP5lN:{\"data-framer-name\":\"Neutral\"},pzgINlOnp:{\"data-framer-name\":\"Lime\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"Qkk7QWlsZXJvbi9SZWd1bGFyL3Yw\",\"--framer-font-family\":'\"Aileron\", \"Aileron Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-letter-spacing\":\"-0.01em\",\"--framer-line-height\":\"20px\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-63b0739b-1a80-4482-abce-eb307b7c9d34, rgb(255, 255, 255)))\"},children:\"Badge\"})}),className:\"framer-hc21k8\",fonts:[\"BI;Aileron/Regular/v0\"],layoutDependency:layoutDependency,layoutId:\"fhzZMCyad\",style:{\"--extracted-r6o4lv\":\"var(--token-63b0739b-1a80-4482-abce-eb307b7c9d34, rgb(255, 255, 255))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:tlRLf4OCV,variants:{hOV4ZP5lN:{\"--extracted-r6o4lv\":\"var(--token-71403775-bd61-4b8b-ac79-c4ede590a13a, rgb(24, 24, 24))\"},pzgINlOnp:{\"--extracted-r6o4lv\":\"var(--token-71403775-bd61-4b8b-ac79-c4ede590a13a, rgb(24, 24, 24))\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({hOV4ZP5lN:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"Qkk7QWlsZXJvbi9SZWd1bGFyL3Yw\",\"--framer-font-family\":'\"Aileron\", \"Aileron Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-letter-spacing\":\"-0.01em\",\"--framer-line-height\":\"20px\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-71403775-bd61-4b8b-ac79-c4ede590a13a, rgb(24, 24, 24)))\"},children:\"Badge\"})})},pzgINlOnp:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"Qkk7QWlsZXJvbi9SZWd1bGFyL3Yw\",\"--framer-font-family\":'\"Aileron\", \"Aileron Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-letter-spacing\":\"-0.01em\",\"--framer-line-height\":\"20px\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-71403775-bd61-4b8b-ac79-c4ede590a13a, rgb(24, 24, 24)))\"},children:\"Badge\"})})}},baseVariant,gestureVariant)})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-mClKh.framer-a9vq0u, .framer-mClKh .framer-a9vq0u { display: block; }\",\".framer-mClKh.framer-1j2f0n3 { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: hidden; padding: 4px 12px 4px 12px; position: relative; width: min-content; will-change: var(--framer-will-change-override, transform); }\",\".framer-mClKh .framer-hc21k8 { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 28\n * @framerIntrinsicWidth 64.5\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"pzgINlOnp\":{\"layout\":[\"auto\",\"auto\"]},\"hOV4ZP5lN\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"tlRLf4OCV\":\"label\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerGdinZGq9S=withCSS(Component,css,\"framer-mClKh\");export default FramerGdinZGq9S;FramerGdinZGq9S.displayName=\"Badge 3\";FramerGdinZGq9S.defaultProps={height:28,width:64.5};addPropertyControls(FramerGdinZGq9S,{variant:{options:[\"nP0DOkMoc\",\"pzgINlOnp\",\"hOV4ZP5lN\"],optionTitles:[\"Blue\",\"Lime\",\"Neutral\"],title:\"Variant\",type:ControlType.Enum},tlRLf4OCV:{defaultValue:\"Badge\",displayTextArea:false,title:\"Label\",type:ControlType.String}});addFonts(FramerGdinZGq9S,[{explicitInter:true,fonts:[{cssFamilyName:\"Aileron\",source:\"builtIn\",style:\"normal\",uiFamilyName:\"Aileron\",url:\"https://framerusercontent.com/assets/LnlFZ5ZUXRaYAm8jDpvZSmzclA.woff2\",weight:\"400\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerGdinZGq9S\",\"slots\":[],\"annotations\":{\"framerDisplayContentsDiv\":\"false\",\"framerVariables\":\"{\\\"tlRLf4OCV\\\":\\\"label\\\"}\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicWidth\":\"64.5\",\"framerAutoSizeImages\":\"true\",\"framerColorSyntax\":\"true\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicHeight\":\"28\",\"framerContractVersion\":\"1\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"pzgINlOnp\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"hOV4ZP5lN\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GdinZGq9S.map","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":"+UACof,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,yCAAjnB,IAAoI,IAAkE,IAA4B,CAAgC,EAAW,CAAC,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,kBAAkB,CAAwN,EAAY,CA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