{"version":3,"file":"Mycomponent.SW3uknM3.mjs","names":["React"],"sources":["https:/framerusercontent.com/modules/sqHYML0pZzPlh3zSN9u4/kWfZHgasRAS0Bat4w6KK/Mycomponent.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import React from\"react\";// Add FontAwesome CDN for free icons\nif(typeof window!==\"undefined\"&&!document.getElementById(\"fa-cdn\")){const link=document.createElement(\"link\");link.id=\"fa-cdn\";link.rel=\"stylesheet\";link.href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css\";document.head.appendChild(link);}/**\n * @framer-component\n */export default function SocialIconBlockV2(props){const{containerSize=64,backgroundColor=\"#FFFFFF\",iconColor=\"#0F0F0F\",strokeWidth=2,borderRadius=12,href=\"https://x.com/\",icon=\"X\",withShadow=true,hoverLift=true,openInNew=true,hoverColor=\"#E5E5E5\"}=props;const sizePx=containerSize;const iconPx=Math.round(containerSize*.5);const containerStyle={display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",width:sizePx,height:sizePx,backgroundColor,borderRadius:`${borderRadius}px`,cursor:\"pointer\",boxShadow:withShadow?\"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)\":\"none\",textDecoration:\"none\"};const hoverAnimation={scale:hoverLift?1.08:1,y:hoverLift?-3:0,boxShadow:withShadow?\"0 8px 16px rgba(0,0,0,0.12), 0 4px 6px rgba(0,0,0,0.08)\":\"none\"};// Inline SVGs for each icon\n// Replace with FontAwesome <i> tags for free icons\nconst icons={X:(size,color)=>/*#__PURE__*/_jsx(\"i\",{className:\"fab fa-x-twitter\",style:{fontSize:size,color},\"aria-label\":\"X (Twitter)\"}),Mail:(size,color)=>/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-envelope\",style:{fontSize:size,color},\"aria-label\":\"Mail\"}),Instagram:(size,color)=>/*#__PURE__*/_jsx(\"i\",{className:\"fab fa-instagram\",style:{fontSize:size,color},\"aria-label\":\"Instagram\"}),GitHub:(size,color)=>/*#__PURE__*/_jsx(\"i\",{className:\"fab fa-github\",style:{fontSize:size,color},\"aria-label\":\"GitHub\"}),Website:(size,color)=>/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-globe\",style:{fontSize:size,color},\"aria-label\":\"Website\"}),Telegram:(size,color)=>/*#__PURE__*/_jsx(\"i\",{className:\"fab fa-telegram\",style:{fontSize:size,color},\"aria-label\":\"Telegram\"}),LinkedIn:(size,color)=>/*#__PURE__*/_jsx(\"i\",{className:\"fab fa-linkedin\",style:{fontSize:size,color},\"aria-label\":\"LinkedIn\"}),Dribbble:(size,color)=>/*#__PURE__*/_jsx(\"i\",{className:\"fab fa-dribbble\",style:{fontSize:size,color},\"aria-label\":\"Dribbble\"}),Behance:(size,color)=>/*#__PURE__*/_jsx(\"i\",{className:\"fab fa-behance\",style:{fontSize:size,color},\"aria-label\":\"Behance\"}),Facebook:(size,color)=>/*#__PURE__*/_jsx(\"i\",{className:\"fab fa-facebook\",style:{fontSize:size,color},\"aria-label\":\"Facebook\"}),Link:(size,color)=>/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-link\",style:{fontSize:size,color},\"aria-label\":\"Link\"})};const[isHovered,setIsHovered]=React.useState(false);const renderIcon=()=>{const color=isHovered?props.iconHoverColor||iconColor:iconColor;if(icon in icons)return icons[icon](iconPx,color);return icons.Link(iconPx,color);};return /*#__PURE__*/_jsx(motion.a,{href:href,style:containerStyle,whileHover:hoverAnimation,whileTap:{scale:.95},transition:{type:\"spring\",stiffness:300,damping:20},target:openInNew?\"_blank\":undefined,rel:openInNew?\"noopener noreferrer\":undefined,\"aria-label\":icon,onMouseEnter:()=>setIsHovered(true),onMouseLeave:()=>setIsHovered(false),children:renderIcon()});}addPropertyControls(SocialIconBlockV2,{icon:{type:ControlType.Enum,title:\"Icon\",options:[\"X\",\"Mail\",\"Instagram\",\"GitHub\",\"Website\",\"Telegram\",\"LinkedIn\",\"Dribbble\",\"Behance\",\"Facebook\",\"Link\"],optionTitles:[\"X (Twitter)\",\"Mail\",\"Instagram\",\"GitHub\",\"Website\",\"Telegram\",\"LinkedIn\",\"Dribbble\",\"Behance\",\"Facebook\",\"Link\"],defaultValue:\"X\"},href:{type:ControlType.String,title:\"Link\",defaultValue:\"https://x.com/\"},openInNew:{type:ControlType.Boolean,title:\"Open in new tab\",defaultValue:true},containerSize:{type:ControlType.Number,title:\"Block Size\",min:32,max:128,defaultValue:64,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Corner Radius\",min:0,max:64,defaultValue:12,unit:\"px\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},iconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#0F0F0F\"},iconHoverColor:{type:ControlType.Color,title:\"Icon Hover Color\",defaultValue:\"#1da1f2\"},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",min:1,max:4,defaultValue:2},withShadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:true},hoverLift:{type:ControlType.Boolean,title:\"Hover Lift\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SocialIconBlockV2\",\"slots\":[],\"annotations\":{\"framer\":\"component\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Mycomponent.map"],"mappings":"yOAGG,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,gBAAc,GAAG,kBAAgB,UAAU,YAAU,UAAU,cAAY,EAAE,eAAa,GAAG,OAAK,iBAAiB,OAAK,IAAI,aAAW,GAAK,YAAU,GAAK,YAAU,GAAK,aAAW,WAAW,EAAY,EAAO,EAAoB,EAAO,KAAK,MAAM,EAAc,GAAG,CAAO,EAAe,CAAC,QAAQ,cAAc,WAAW,SAAS,eAAe,SAAS,MAAM,EAAO,OAAO,EAAO,kBAAgB,aA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