{"version":3,"file":"Testing_1.CSdWcsGg.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/IhImsV6KJqOtE6smMmlh/0XD2Q67EZfrRwcYv4OD1/Testing_1.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export default function PremiumGlowButton(props){// We use React state to track when the button is being hovered\nconst[isHovered,setIsHovered]=React.useState(false);// Determine the background style based on the selected mode\nlet buttonBackground=props.solidColor;if(props.fillMode===\"Gradient\"){buttonBackground=`linear-gradient(${props.gradientAngle}deg, ${props.gradientStart}, ${props.gradientEnd})`;}else if(props.fillMode===\"Glass\"){buttonBackground=props.glassColor;}// Determine the text styles and gradient logic\nconst textStyle={...props.font,whiteSpace:\"nowrap\",textTransform:props.textTransform,position:\"relative\",zIndex:2};if(props.textFillMode===\"Gradient\"){textStyle.backgroundImage=`linear-gradient(${props.textGradientAngle}deg, ${props.textGradientStart}, ${props.textGradientEnd})`;textStyle.WebkitBackgroundClip=\"text\";textStyle.WebkitTextFillColor=\"transparent\";textStyle.backgroundClip=\"text\";textStyle.color=\"transparent\";}else{textStyle.color=props.textSolidColor;}return /*#__PURE__*/_jsxs(motion.div,{// Trigger hover states for our custom logic\nonHoverStart:()=>setIsHovered(true),onHoverEnd:()=>setIsHovered(false),// Removed whileHover scale, kept the tap scale for tactile feedback\nwhileTap:{scale:.98},style:{position:\"relative\",padding:props.borderWidth,borderRadius:props.radius,overflow:\"hidden\",cursor:\"pointer\",width:\"100%\",height:\"100%\",boxSizing:\"border-box\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",// The resting border color\nbackground:props.defaultBorderColor,// The outer glow now only appears on hover\nboxShadow:props.showOuterGlow&&isHovered?`${props.glowOffsetX}px ${props.glowOffsetY}px ${props.glowBlur}px ${props.glowSpread}px ${props.outerGlowColor}`:\"none\",transition:\"box-shadow 0.4s ease\"},children:[/*#__PURE__*/_jsx(motion.div,{animate:{rotate:360,opacity:isHovered?1:0},transition:{rotate:{repeat:Infinity,duration:props.spinSpeed,ease:\"linear\"},opacity:{duration:.3,ease:\"easeInOut\"}},style:{position:\"absolute\",left:\"50%\",top:\"50%\",x:\"-50%\",y:\"-50%\",width:2e3,height:2e3,// Rebuilt gradient engine with secondary color and spread control\nbackground:`conic-gradient(from 0deg, ${props.glowSecondaryColor} 0%, ${props.glowColor} ${props.glowLength}%, ${props.glowSecondaryColor} ${props.glowLength*2}%, ${props.glowSecondaryColor} 100%)`,zIndex:0}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",zIndex:1,width:\"100%\",height:\"100%\",boxSizing:\"border-box\",justifyContent:\"center\",background:buttonBackground,backdropFilter:props.fillMode===\"Glass\"?`blur(${props.blurAmount}px)`:\"none\",WebkitBackdropFilter:props.fillMode===\"Glass\"?`blur(${props.blurAmount}px)`:\"none\",borderRadius:props.radius-props.borderWidth,padding:`${props.paddingY}px ${props.paddingX}px`,display:\"flex\",alignItems:\"center\"},children:/*#__PURE__*/_jsx(\"span\",{style:textStyle,children:props.text})})]});}// Default States\nPremiumGlowButton.defaultProps={text:\"Hover Me\",textTransform:\"none\",// Text Color Defaults\ntextFillMode:\"Solid\",textSolidColor:\"#FFFFFF\",textGradientStart:\"#FFFFFF\",textGradientEnd:\"#A0A0A0\",textGradientAngle:90,// NEW: Border Engine Defaults\ndefaultBorderColor:\"#333333\",glowColor:\"#00F0FF\",glowSecondaryColor:\"rgba(0, 0, 0, 0)\",glowLength:20,spinSpeed:3,// Fill Defaults\nfillMode:\"Solid\",solidColor:\"#0D0D0D\",gradientStart:\"#1A1A1A\",gradientEnd:\"#0D0D0D\",gradientAngle:180,glassColor:\"rgba(13, 13, 13, 0.4)\",blurAmount:24,// Advanced Outer Glow Defaults\nshowOuterGlow:true,outerGlowColor:\"rgba(0, 240, 255, 0.25)\",glowOffsetX:0,glowOffsetY:15,glowBlur:35,glowSpread:0,borderWidth:1.5,radius:100,paddingX:32,paddingY:16,// Native Font Defaults\nfont:{fontFamily:\"Inter, sans-serif\",fontSize:16,fontWeight:500,letterSpacing:0,lineHeight:\"1.5em\",textAlign:\"center\"}};// The UI Settings Panel\naddPropertyControls(PremiumGlowButton,{// --- TEXT SETTINGS ---\ntext:{type:ControlType.String,title:\"Text\"},font:{type:ControlType.Font,controls:\"extended\",title:\"Typography\"},textTransform:{type:ControlType.Enum,title:\"Transform\",options:[\"none\",\"uppercase\",\"lowercase\",\"capitalize\"],optionTitles:[\"None\",\"Uppercase\",\"Lowercase\",\"Capitalize\"]},textFillMode:{type:ControlType.Enum,title:\"Text Fill\",options:[\"Solid\",\"Gradient\"]},textSolidColor:{type:ControlType.Color,title:\"Color\",hidden:props=>props.textFillMode!==\"Solid\"},textGradientStart:{type:ControlType.Color,title:\"Start Color\",hidden:props=>props.textFillMode!==\"Gradient\"},textGradientEnd:{type:ControlType.Color,title:\"End Color\",hidden:props=>props.textFillMode!==\"Gradient\"},textGradientAngle:{type:ControlType.Number,title:\"Angle\",min:0,max:360,hidden:props=>props.textFillMode!==\"Gradient\"},// --- BUTTON FILL SETTINGS ---\nfillMode:{type:ControlType.Enum,title:\"Button Fill\",options:[\"Solid\",\"Gradient\",\"Glass\"]},solidColor:{type:ControlType.Color,title:\"Background\",hidden:props=>props.fillMode!==\"Solid\"},gradientStart:{type:ControlType.Color,title:\"Start Color\",hidden:props=>props.fillMode!==\"Gradient\"},gradientEnd:{type:ControlType.Color,title:\"End Color\",hidden:props=>props.fillMode!==\"Gradient\"},gradientAngle:{type:ControlType.Number,title:\"Angle\",min:0,max:360,hidden:props=>props.fillMode!==\"Gradient\"},glassColor:{type:ControlType.Color,title:\"Glass Tint\",hidden:props=>props.fillMode!==\"Glass\"},blurAmount:{type:ControlType.Number,title:\"Glass Blur\",min:0,max:100,hidden:props=>props.fillMode!==\"Glass\"},// --- BORDER ENGINE SETTINGS ---\ndefaultBorderColor:{type:ControlType.Color,title:\"Default Border\"},glowColor:{type:ControlType.Color,title:\"Glow Primary\"},glowSecondaryColor:{type:ControlType.Color,title:\"Glow Secondary\"},glowLength:{type:ControlType.Number,title:\"Glow Spread\",min:1,max:50,step:1},spinSpeed:{type:ControlType.Number,title:\"Spin Speed\",min:.5,max:10,step:.1},borderWidth:{type:ControlType.Number,title:\"Border Width\",min:1,max:10,step:.5},// --- OUTER GLOW SETTINGS ---\nshowOuterGlow:{type:ControlType.Boolean,title:\"Outer Glow\"},outerGlowColor:{type:ControlType.Color,title:\"Shadow Color\",hidden:props=>!props.showOuterGlow},glowOffsetX:{type:ControlType.Number,title:\"Offset X\",min:-50,max:50,hidden:props=>!props.showOuterGlow},glowOffsetY:{type:ControlType.Number,title:\"Offset Y\",min:-50,max:50,hidden:props=>!props.showOuterGlow},glowBlur:{type:ControlType.Number,title:\"Blur\",min:0,max:100,hidden:props=>!props.showOuterGlow},glowSpread:{type:ControlType.Number,title:\"Spread\",min:-50,max:50,hidden:props=>!props.showOuterGlow},// --- STRUCTURE ---\nradius:{type:ControlType.Number,title:\"Radius\",min:0,max:100},paddingX:{type:ControlType.Number,title:\"Pad X\",min:0,max:100},paddingY:{type:ControlType.Number,title:\"Pad Y\",min:0,max:100}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PremiumGlowButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Testing_1.map"],"mappings":"mOAA2K,SAAwB,EAAkB,EAAM,CAC3N,GAAK,CAAC,EAAU,GAAcA,EAAe,GAAM,CAC/C,EAAiB,EAAM,WAAc,EAAM,WAAW,WAAY,EAAiB,mBAAmB,EAAM,cAAc,OAAO,EAAM,cAAc,IAAI,EAAM,YAAY,GAAY,EAAM,WAAW,UAAS,EAAiB,EAAM,YAC5O,IAAM,EAAU,CAAC,GAAG,EAAM,KAAK,WAAW,SAAS,cAAc,EAAM,cAAc,SAAS,WA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