{"version":3,"file":"AvoidLayoutJumping_Prod.KyZEPb1e.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","useRef"],"sources":["https:/framerusercontent.com/modules/shEq2TOdQgobMydgcYZn/IYLcODoo1osC9EURw7w9/BvyOYDKED.js","https:/framerusercontent.com/modules/h8ioHyt4BUxuvVCE1Q10/aTM6mEMGlM19JjX8exDe/AvoidLayoutJumping_Prod.js"],"sourcesContent":["// Generated by Framer (ee31e22)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const serializationHash=\"framer-1NkC4\";const variantClassNames={SGmNeATQX:\"framer-v-1xcu7rj\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,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 Variants=motion.create(React.Fragment);const getProps=({background,height,id,width,...props})=>{return{...props,Sqo65pNjk:background??props.Sqo65pNjk??\"var(--token-751ec9b5-dd64-4d43-bb37-7c60814982bb, rgb(100, 57, 255))\"};};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,Sqo65pNjk,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"SGmNeATQX\",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-1xcu7rj\",className,classNames),\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"SGmNeATQX\",ref:refBinding,style:{...style},children:/*#__PURE__*/_jsxs(motion.div,{className:\"framer-1ub0tqp\",layoutDependency:layoutDependency,layoutId:\"BlKwvKajn\",children:[/*#__PURE__*/_jsx(motion.div,{className:\"framer-scsywb\",\"data-framer-name\":\"V\",layoutDependency:layoutDependency,layoutId:\"iS1Y0vsDZ\",style:{backgroundColor:Sqo65pNjk,rotate:90}}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-1ifz3xf\",\"data-framer-name\":\"V\",layoutDependency:layoutDependency,layoutId:\"ZTaxuHDMu\",style:{backgroundColor:Sqo65pNjk,rotate:224}}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-17qfwch\",\"data-framer-name\":\"H\",layoutDependency:layoutDependency,layoutId:\"qLGIdYgOc\",style:{backgroundColor:Sqo65pNjk,rotate:180}})]})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-1NkC4.framer-mnr6bg, .framer-1NkC4 .framer-mnr6bg { display: block; }\",\".framer-1NkC4.framer-1xcu7rj { align-content: center; align-items: center; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; height: 17px; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 17px; }\",\".framer-1NkC4 .framer-1ub0tqp { bottom: -1px; flex: none; left: -1px; overflow: visible; position: absolute; right: 0px; top: 0px; z-index: 1; }\",\".framer-1NkC4 .framer-scsywb { flex: none; height: 11px; overflow: visible; position: absolute; right: 4px; top: -4px; width: 3px; z-index: 1; }\",\".framer-1NkC4 .framer-1ifz3xf { flex: none; height: 112%; left: calc(47.05882352941179% - 17.647058823529413% / 2); overflow: visible; position: absolute; top: calc(52.94117647058826% - 111.76470588235294% / 2); width: 18%; z-index: 1; }\",\".framer-1NkC4 .framer-17qfwch { flex: none; height: 65%; overflow: visible; position: absolute; right: 0px; top: 0px; width: 18%; z-index: 1; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-1NkC4.framer-1xcu7rj { gap: 0px; } .framer-1NkC4.framer-1xcu7rj > * { margin: 0px; margin-bottom: calc(10px / 2); margin-top: calc(10px / 2); } .framer-1NkC4.framer-1xcu7rj > :first-child { margin-top: 0px; } .framer-1NkC4.framer-1xcu7rj > :last-child { margin-bottom: 0px; } }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 17\n * @framerIntrinsicWidth 17\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"Sqo65pNjk\":\"background\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerBvyOYDKED=withCSS(Component,css,\"framer-1NkC4\");export default FramerBvyOYDKED;FramerBvyOYDKED.displayName=\"Plus icon\";FramerBvyOYDKED.defaultProps={height:17,width:17};addPropertyControls(FramerBvyOYDKED,{Sqo65pNjk:{defaultValue:'var(--token-751ec9b5-dd64-4d43-bb37-7c60814982bb, rgb(100, 57, 255)) /* {\"name\":\"Roxo\"} */',title:\"Background\",type:ControlType.Color}});addFonts(FramerBvyOYDKED,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerBvyOYDKED\",\"slots\":[],\"annotations\":{\"framerDisplayContentsDiv\":\"false\",\"framerComponentViewportWidth\":\"true\",\"framerColorSyntax\":\"true\",\"framerIntrinsicWidth\":\"17\",\"framerVariables\":\"{\\\"Sqo65pNjk\\\":\\\"background\\\"}\",\"framerIntrinsicHeight\":\"17\",\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BvyOYDKED.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":"6WACyD,IAA2H,IAAkE,IAA4B,CAAgC,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,CAA8L,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,KAAK,UAAU,EAAW,CAAC,CAAC,CAAC,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,WAAS,CAAC,EAAS,EAAS,EAAO,OAAOC,EAAe,CAAO,GAAU,CAAC,aAAW,SAAO,KAAG,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAY,EAAM,WAAW,uEAAuE,EAAS,GAAwB,EAAM,IAAe,EAAM,iBAAwB,EAAS,KAAK,IAAI,CAAC,EAAM,iBAAwB,EAAS,KAAK,IAAI,CAUlzC,EAAgB,EAVk0C,EAAiB,SAAS,EAAM,EAAI,CAAC,IAAM,EAAYC,EAAO,KAAK,CAAO,EAAW,GAAK,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