{"version":3,"file":"BitsFunButton.JipleP9a.mjs","names":[],"sources":["https:/framerusercontent.com/modules/guN7MGogY1emzxSA5BoJ/J2bOri3xAKskpQbKemqJ/BitsFunButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export default function BitsFunButton(props){const{text,link,newTab,textColor,buttonColor,shadowColor}=props;return /*#__PURE__*/_jsxs(motion.a,{href:link,target:newTab?\"_blank\":\"_self\",custom:shadowColor,variants:buttonVariants,initial:\"idle\",animate:\"idle\",whileHover:\"hover\",whileTap:\"tap\",style:{...containerStyle,backgroundColor:buttonColor,color:textColor},children:[/*#__PURE__*/_jsx(motion.div,{variants:shineVariants,style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",background:\"linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.4) 50%, transparent 80%)\",zIndex:1,skewX:-20}}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"relative\",zIndex:2},children:text})]});}// --- Animations ---\nconst buttonVariants={idle:shadowColor=>({scale:1,// This array creates the breathing pulse loop\n    boxShadow:[`0 0 0 0px ${shadowColor}`,`0 0 0 10px rgba(0,0,0,0)`],transition:{scale:{duration:.3},boxShadow:{duration:2.5,repeat:Infinity,ease:\"easeOut\"}}}),hover:shadowColor=>({scale:1.05,// On hover, we make the glow solid and static\n    boxShadow:`0 0 20px 0px ${shadowColor}`,transition:{type:\"spring\",stiffness:400,damping:10}}),tap:{scale:.95}};const shineVariants={idle:{x:\"-150%\"},hover:{x:\"150%\",transition:{duration:.6,ease:\"easeInOut\"}}};// --- Styles ---\nconst containerStyle={position:\"relative\",padding:\"16px 32px\",fontSize:\"16px\",fontWeight:600,fontFamily:\"Inter, sans-serif\",textDecoration:\"none\",border:\"none\",borderRadius:\"50px\",cursor:\"pointer\",overflow:\"hidden\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\"};// --- Framer Controls ---\naddPropertyControls(BitsFunButton,{text:{type:ControlType.String,title:\"Label\",defaultValue:\"Start a free trial\"},link:{type:ControlType.Link,title:\"Link\",defaultValue:\"#\"},newTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:false},buttonColor:{type:ControlType.Color,title:\"Bg Color\",defaultValue:\"#312D25\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},shadowColor:{type:ControlType.Color,title:\"Glow Color\",defaultValue:\"rgba(100, 100, 100, 0.5)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BitsFunButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BitsFunButton.map"],"mappings":"oNAA+I,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,SAAO,YAAU,cAAY,eAAa,EAAM,OAAoB,EAAM,EAAO,EAAE,CAAC,KAAK,EAAK,OAAO,EAAO,SAAS,QAAQ,OAAO,EAAY,SAAS,EAAe,QAAQ,OAAO,QAAQ,OAAO,WAAW,QAAQ,SAAS,MAAM,MAAM,CAAC,GAAG,EAAe,gBAAgB,EAAY,MAAM,EAAU,CAAC,SAAS,CAAc,EAAK,EAAO,IAAI,CAAC,SAAS,EAAc,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,OAAO,OAAO,OAAO,WAAW,uFAAuF,OAAO,EAAE,MAAM,IAAI,CAAC,CAAC,CAAc,EAAK,OAAO,CAAC,MAAM,CAAC,SAAS,WAAW,OAAO,EAAE,CAAC,SAAS,EAAK,CAAC,CAAC,CAAC,CAAC,wBAA5wB,IAAkC,IAAoD,CACzI,EAAe,CAAC,KAAK,IAAc,CAAC,MAAM,EAC5C,UAAU,CAAC,aAAa,IAAc,2BAA2B,CAAC,WAAW,CAAC,MAAM,CAAC,SAAS,GAAG,CAAC,UAAU,CAAC,SA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