{"version":3,"file":"Glass_Button.yPTJ9_9w.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/XG5lGx8deIgSepztfaU0/saQmrqT6o6Zsir5o3s6q/Glass_Button.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function GlassButton(props){const[isHovering,setIsHovering]=React.useState(false);const gradientBase=`linear-gradient(135deg,\n        rgba(255,255,255,0.4) 0%,\n        rgba(255,255,255,0) 41%,\n        rgba(255,255,255,0) 57%,\n        rgba(255,255,255,0.1) 100%)`;const gradientHover=`linear-gradient(135deg,\n        rgba(255,255,255,0.6) 0%,\n        rgba(255,255,255,0.15) 41%,\n        rgba(255,255,255,0.15) 57%,\n        rgba(255,255,255,0.2) 100%)`;const handleClick=()=>{if(props.link){window.open(props.link,\"_blank\");}};return /*#__PURE__*/_jsxs(\"div\",{onClick:handleClick,onMouseEnter:()=>setIsHovering(true),onMouseLeave:()=>setIsHovering(false),style:{position:\"relative\",padding:\"1px\",borderRadius:\"999px\",backgroundImage:gradientBase,backgroundSize:\"100% 100%\",backgroundRepeat:\"no-repeat\",boxShadow:props.shadow?\"0px 14px 44px rgba(0, 0, 0, 0.25)\":\"none\",cursor:\"pointer\",display:\"inline-block\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",borderRadius:\"999px\",backgroundImage:gradientHover,backgroundSize:\"100% 100%\",backgroundRepeat:\"no-repeat\",opacity:isHovering?1:0,transition:`opacity ${props.hoverTransitionSpeed}ms ease-in-out`,pointerEvents:\"none\",zIndex:1}}),/*#__PURE__*/_jsx(\"div\",{style:{padding:\"12px 24px\",borderRadius:\"999px\",backgroundColor:\"rgba(20, 20, 20, 0.25)\",backdropFilter:\"blur(16px)\",WebkitBackdropFilter:\"blur(16px)\",color:\"#ffffff\",fontSize:props.fontSize,fontWeight:props.fontWeight,fontFamily:\"Inter, sans-serif\",textAlign:props.textAlign,lineHeight:1.2,whiteSpace:\"nowrap\",transition:\"background 0.3s ease, color 0.3s ease\",position:\"relative\",zIndex:2},children:props.label})]});}addPropertyControls(GlassButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Click Me\"},link:{type:ControlType.String,title:\"Link (optional)\",defaultValue:\"\"},shadow:{type:ControlType.Boolean,title:\"Drop Shadow\",defaultValue:true},hoverTransitionSpeed:{type:ControlType.Number,title:\"Hover Transition (ms)\",min:100,max:2e3,defaultValue:300,step:50},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:16,min:10,max:48,step:1,unit:\"px\"},fontWeight:{type:ControlType.Enum,title:\"Font Weight\",options:[\"300\",\"400\",\"500\",\"600\",\"700\"],optionTitles:[\"Light\",\"Normal\",\"Medium\",\"Semi-Bold\",\"Bold\"],defaultValue:\"500\"},textAlign:{type:ControlType.Enum,title:\"Text Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"center\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"GlassButton\":{\"type\":\"reactComponent\",\"name\":\"GlassButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Glass_Button.map"],"mappings":"iTAAyI,SAAgB,EAAY,EAAM,CAAC,GAAK,CAAC,EAAW,GAAeA,EAAe,GAAM,CAQlH,OAAoB,EAAM,MAAM,CAAC,YAArF,CAAI,EAAM,MAAM,EAAO,KAAK,EAAM,KAAK,SAAS,EAAyD,iBAAiB,EAAc,GAAK,CAAC,iBAAiB,EAAc,GAAM,CAAC,MAAM,CAAC,SAAS,WAAW,QAAQ,MAAM,aAAa,QAAQ,gBAAgB;;;;qCAAa,eAAe,YAAY,iBAAiB,YAAY,UAAU,EAAM,OAAO,oCAAoC,OAAO,OAAO,UAAU,QAAQ,eAAe,SAAS,SAAS,CAAC,SA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