{"version":3,"file":"ButtonGroup.CGzIDUa2.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/mznuhPh2kLhlYvFwE82M/DwKD1GJlPt1fxXppuIw3/ButtonGroup.js"],"sourcesContent":["// Button Group component with entrance animations for an array of child components\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{motion,useInView}from\"framer-motion\";import{useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function BlurEntrance(props){const{items,direction,blurAmount,startOffsetX,startOffsetY,easing,duration,initialDelay,staggerDelay,buttonSpacing,style}=props;const containerRef=useRef(null);const isInView=useInView(containerRef,{once:true,amount:.3});// Show final state on canvas, animate in preview / live\nconst isCanvas=RenderTarget.current()===RenderTarget.canvas;const shouldAnimate=!isCanvas;// Parse easing \"0.4, 0, 0.2, 1\" → [0.4, 0, 0.2, 1]\nconst easingArray=easing.split(\",\").map(val=>Number(val.trim()));const[x1,y1,x2,y2]=easingArray;const cubicBezier=[Number.isFinite(x1)?x1:.4,Number.isFinite(y1)?y1:0,Number.isFinite(x2)?x2:.2,Number.isFinite(y2)?y2:1];const buttonVariants={hidden:{opacity:0,filter:`blur(${blurAmount}px)`,x:startOffsetX,y:startOffsetY},visible:{opacity:1,filter:\"blur(0px)\",x:0,y:0}};const commonMotionProps={variants:buttonVariants,initial:shouldAnimate?\"hidden\":\"visible\",animate:isInView?\"visible\":shouldAnimate?\"hidden\":\"visible\",transitionBase:{duration,ease:cubicBezier},style:{width:\"100%\"}};return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{display:\"flex\",flexDirection:direction===\"vertical\"?\"column\":\"row\",gap:buttonSpacing,width:\"max-content\",minWidth:5,minHeight:5,position:\"relative\",...style},children:(items&&items.length>0?items:[null]).map((item,index)=>/*#__PURE__*/_jsx(motion.div,{variants:commonMotionProps.variants,initial:commonMotionProps.initial,animate:commonMotionProps.animate,transition:{...commonMotionProps.transitionBase,delay:initialDelay+index*staggerDelay},style:commonMotionProps.style,children:item},index))});}addPropertyControls(BlurEntrance,{items:{type:ControlType.Array,title:\"Items\",control:{type:ControlType.ComponentInstance},defaultValue:[null]},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"vertical\",\"horizontal\"],optionTitles:[\"Vertical\",\"Horizontal\"],defaultValue:\"vertical\",displaySegmentedControl:true},blurAmount:{type:ControlType.Number,title:\"Blur Amount\",defaultValue:10,min:0,max:50,step:1,unit:\"px\"},startOffsetX:{type:ControlType.Number,title:\"Start Offset X\",defaultValue:0,min:-200,max:200,step:1,unit:\"px\"},startOffsetY:{type:ControlType.Number,title:\"Start Offset Y\",defaultValue:20,min:-200,max:200,step:1,unit:\"px\"},easing:{type:ControlType.String,title:\"Easing\",defaultValue:\"0.4, 0, 0.2, 1\",placeholder:\"0.4, 0, 0.2, 1\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:.6,min:.1,max:3,step:.1,unit:\"s\"},initialDelay:{type:ControlType.Number,title:\"Initial Delay\",defaultValue:.2,min:0,max:3,step:.1,unit:\"s\"},staggerDelay:{type:ControlType.Number,title:\"Stagger Delay\",defaultValue:.1,min:0,max:2,step:.05,unit:\"s\"},buttonSpacing:{type:ControlType.Number,title:\"Item Gap\",defaultValue:16,min:0,max:100,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BlurEntrance\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ButtonGroup.map"],"mappings":"yOAIG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,QAAM,YAAU,aAAW,eAAa,eAAa,SAAO,WAAS,eAAa,eAAa,gBAAc,SAAO,EAAY,EAAaA,EAAO,KAAK,CAAO,EAAS,EAAU,EAAa,CA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