{"version":3,"file":"DownloadButton_1.BYHSYWJP.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/gvAw0g7K0xhJa3IYrZtA/eAX3jw0RgKGy9xp8XjzA/DownloadButton_1.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion,useMotionValue,useSpring}from\"framer-motion\";import{useRef}from\"react\";/**\n * DOWNLOAD BUTTON — GLASSMORPHISM + MAGNETIC\n * Fully rounded pill, single-line, with magnetic cursor follow.\n * - Backdrop blur frosted glass + inner highlight\n * - Magnetic: button drifts toward cursor on hover, springs back on leave\n * - Arrow does a continuous gentle download-bounce on hover\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 180\n * @framerIntrinsicHeight 44\n */export default function DownloadButton(props){const{label,link,background,hoverBackground,borderColor,hoverBorderColor,textColor,hoverTextColor,glowColor,blurAmount,magneticStrength}=props;const ref=useRef(null);const x=useMotionValue(0);const y=useMotionValue(0);const springX=useSpring(x,{stiffness:220,damping:18,mass:.4});const springY=useSpring(y,{stiffness:220,damping:18,mass:.4});const handleMouseMove=e=>{if(!ref.current)return;const rect=ref.current.getBoundingClientRect();const centerX=rect.left+rect.width/2;const centerY=rect.top+rect.height/2;x.set((e.clientX-centerX)*magneticStrength);y.set((e.clientY-centerY)*magneticStrength);};const handleMouseLeave=()=>{x.set(0);y.set(0);};return /*#__PURE__*/_jsxs(motion.a,{ref:ref,href:link||\"#\",download:true,onMouseMove:handleMouseMove,onMouseLeave:handleMouseLeave,initial:\"rest\",whileHover:\"hover\",whileTap:{scale:.96},animate:\"rest\",variants:{rest:{backgroundColor:background,borderColor:borderColor,color:textColor,boxShadow:\"0px 0px 0px rgba(0,0,0,0), inset 0px 1px 0px rgba(255,255,255,0.08)\"},hover:{backgroundColor:hoverBackground,borderColor:hoverBorderColor,color:hoverTextColor,boxShadow:\"0px 10px 32px \"+glowColor+\", inset 0px 1px 0px rgba(255,255,255,0.2)\"}},transition:{type:\"spring\",stiffness:320,damping:22},style:{x:springX,y:springY,position:\"relative\",display:\"inline-flex\",alignItems:\"center\",gap:8,padding:\"11px 20px\",borderRadius:999,border:\"1px solid \"+borderColor,background:background,backdropFilter:\"blur(\"+blurAmount+\"px) saturate(180%)\",WebkitBackdropFilter:\"blur(\"+blurAmount+\"px) saturate(180%)\",fontFamily:\"Inter, sans-serif\",fontWeight:500,fontSize:14,color:textColor,textDecoration:\"none\",cursor:\"pointer\",userSelect:\"none\",width:\"fit-content\",whiteSpace:\"nowrap\",lineHeight:1},children:[/*#__PURE__*/_jsx(\"span\",{style:{position:\"relative\",zIndex:1},children:label}),/*#__PURE__*/_jsx(motion.span,{variants:{rest:{y:0},hover:{y:[0,3,0],transition:{duration:.7,repeat:Infinity,ease:\"easeInOut\"}}},style:{fontFamily:\"JetBrains Mono, monospace\",fontSize:14,display:\"inline-block\",position:\"relative\",zIndex:1,lineHeight:1},children:\"↓\"})]});}DownloadButton.defaultProps={label:\"Download PDF\",link:\"\",blurAmount:14,magneticStrength:.35};addPropertyControls(DownloadButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Download PDF\"},link:{type:ControlType.Link,title:\"File link\"},background:{type:ControlType.Color,title:\"Glass tint\",defaultValue:\"rgba(255, 255, 255, 0.06)\"},hoverBackground:{type:ControlType.Color,title:\"Hover tint\",defaultValue:\"rgba(255, 255, 255, 0.14)\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"rgba(255, 255, 255, 0.14)\"},hoverBorderColor:{type:ControlType.Color,title:\"Hover border\",defaultValue:\"rgba(255, 255, 255, 0.3)\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"rgba(255, 255, 255, 0.95)\"},hoverTextColor:{type:ControlType.Color,title:\"Hover text\",defaultValue:\"rgb(255, 255, 255)\"},glowColor:{type:ControlType.Color,title:\"Glow\",defaultValue:\"rgba(255, 59, 92, 0.32)\"},blurAmount:{type:ControlType.Number,title:\"Blur\",defaultValue:14,min:0,max:40,step:1,unit:\"px\"},magneticStrength:{type:ControlType.Number,title:\"Magnetic\",defaultValue:.35,min:0,max:1,step:.05}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DownloadButton\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"44\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerIntrinsicWidth\":\"180\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DownloadButton_1.map"],"mappings":"gPAWG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,aAAW,kBAAgB,cAAY,mBAAiB,YAAU,iBAAe,YAAU,aAAW,oBAAkB,EAAY,EAAIA,EAAO,IAAI,EAAQ,EAAE,EAAe,CAAC,EAAQ,EAAE,EAAe,CAAC,EAAQ,EAAQ,EAAU,EAAE,CAAC,UAAU,IAAI,QAAQ,GAAG,KAAK,EAAE,CAAC,EAAQ,EAAQ,EAAU,EAAE,CAAC,UAAU,IAAI,QAAQ,GAAG,KAAK,EAAE,CAAC,EAAsT,OAAoB,EAAM,EAAO,EAAE,CAAK,MAAI,KAAK,GAAM,IAAI,SAAS,GAAK,YAAvW,GAAG,CAAC,GAAG,CAAC,EAAI,QAAQ,OAAO,IAAM,EAAK,EAAI,QAAQ,sBAAsB,EAAQ,EAAQ,EAAK,KAAK,EAAK,MAAM,EAAQ,EAAQ,EAAK,IAAI,EAAK,OAAO,EAAE,EAAE,KAAK,EAAE,QAAQ,GAAS,CAAgB,EAAE,EAAE,KAAK,EAAE,QAAQ,GAAS,CAAgB,CAAE,EAAuJ,iBAA1H,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAE,EAAqI,QAAQ,OAAO,WAAW,QAAQ,SAAS,CAAC,MAAM,GAAG,EAAE,QAAQ,O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