{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/4OrW3L5bbjWdwvvvpJXn/akIOHQcxciMXB4IBKLXu/ShareButton.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import{IconContext}from\"react-icons\";import{FaLinkedin,FaFacebook}from\"react-icons/fa\";const onHoverStyle={scale:1.05,cursor:\"pointer\"};const spring={type:\"spring\",stiffness:500,damping:30};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */ export default function ShareButton(props){// Config Properties\nconst{socialMedia,shareText,iconProperties,backgroundType}=props;// Single Properpties\nconst{title,tint,style,font,borderWidth,borderColor,shareCurrentUrl,urlToShare,backgroundImage,linear}=props;// Multi properties\nconst{radius,topLeftRadius,topRightRadius,bottomRightRadius,bottomLeftRadius,isMixedRadius=false}=props;const{stylePadding,topPadding,rightPadding,bottomPadding,leftPadding,isMixedPadding=false}=props;const borderRadius=isMixedRadius?`${topLeftRadius}px ${topRightRadius}px ${bottomRightRadius}px ${bottomLeftRadius}px`:`${radius}px`;const padding=isMixedPadding?`${topPadding}px ${rightPadding}px ${bottomPadding}px ${leftPadding}px`:`${stylePadding}px`;let background;if(backgroundType==\"Solid\"){background=tint;}else if(backgroundType==\"Image\"){background=`url(${backgroundImage})`;}else if(backgroundType==\"Linear\"){const{degree,toColor,fromColor,opacityTo,opacityFrom}=linear;const gradient=`${degree}deg, ${toColor} ${opacityTo}%, ${fromColor} ${opacityFrom}%`;background=`linear-gradient(${gradient})`;}const shareOnTwitter=urlToShare=>{const shareUrl=urlToShare?urlToShare:window.location.href;const shareLink=encodeURI(shareText+shareUrl);const shareWindow=window.open(`https://twitter.com/intent/tweet?text=${shareLink}`,\"_blank\",\"height=700,width=700,left=0,top=0,resizable=yes,scrollbars=yes,status=yes\");shareWindow.blur();window.focus();};const shareOnFacebook=urlToShare=>{const shareUrl=urlToShare?urlToShare:window.location.href;window.open(`https://www.facebook.com/sharer/sharer.php?u=${shareUrl}`,\"_blank\",\"height=400,width=400,left=100,top=100,resizable=yes,scrollbars=yes,status=yes\");};const shareOnLinkedIn=urlToShare=>{const shareUrl=urlToShare?urlToShare:window.location.href;window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${shareUrl}`,\"_blank\",\"height=400,width=400,left=100,top=100,resizable=yes,scrollbars=yes,status=yes\");};let Icon;if(socialMedia==\"Twitter\"){Icon=/*#__PURE__*/ _jsx(\"svg\",{viewBox:\"0 0 1200 1227\",height:iconProperties.size,fill:\"none\",children:/*#__PURE__*/ _jsx(\"path\",{fill:iconProperties.color,fontSize:iconProperties.size,d:\"M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z\"})});}else if(socialMedia==\"LinkedIn\"){Icon=/*#__PURE__*/ _jsx(FaLinkedin,{sx:{color:iconProperties.color,fontSize:iconProperties.size}});}else if(socialMedia==\"Facebook\"){Icon=/*#__PURE__*/ _jsx(FaFacebook,{sx:{color:iconProperties.color,fontSize:iconProperties.size}});}return /*#__PURE__*/ _jsx(motion.div,{style:{...style,...containerStyle},onClick:()=>{if(!shareCurrentUrl){if(socialMedia==\"Twitter\"){shareOnTwitter(urlToShare);}else if(socialMedia==\"LinkedIn\"){shareOnLinkedIn(urlToShare);}else if(socialMedia==\"Facebook\"){shareOnFacebook(urlToShare);}}else{if(socialMedia==\"Twitter\"){shareOnTwitter(null);}else if(socialMedia==\"LinkedIn\"){shareOnLinkedIn(null);}else if(socialMedia==\"Facebook\"){shareOnFacebook(null);}}},children:/*#__PURE__*/ _jsxs(motion.div,{style:{borderRadius,padding,background,fontSize:font.size,fontWeight:font.weight,color:font.color,fontFamily:`'${font.fontFace}'`,overflow:\"visible\",borderWidth:borderWidth,borderStyle:\"solid\",borderColor:borderColor,display:\"flex\",alignItems:\"center\",gap:iconProperties.gap},whileHover:onHoverStyle,transition:{type:\"spring\",stiffness:500,damping:30},children:[/*#__PURE__*/ _jsx(IconContext.Provider,{value:{color:iconProperties.color,size:iconProperties.size},children:Icon}),title]})});};addPropertyControls(ShareButton,{shareCurrentUrl:{type:ControlType.Boolean,defaultValue:true},urlToShare:{type:ControlType.String,defaultValue:\"https://framer.com\",hidden(props){return props.shareCurrentUrl!=false;}},socialMedia:{type:ControlType.Enum,options:[\"Twitter\",\"Facebook\",\"LinkedIn\"]},shareText:{type:ControlType.String,defaultValue:\"Share on Twitter: \",description:\"Additional text is only available for Twitter sharing.\",hidden(props){return props.socialMedia!=\"Twitter\";}},iconProperties:{type:ControlType.Object,controls:{color:{type:ControlType.Color,defaultValue:\"#fff\"},size:{type:ControlType.Number,defaultValue:20},gap:{type:ControlType.Number,defaultValue:10}}},title:{title:\"Label\",type:ControlType.String,defaultValue:\"Share on X\"},backgroundType:{type:ControlType.Enum,options:[\"Solid\",\"Linear\",\"Image\"],defaultValue:\"Solid\"},backgroundImage:{type:ControlType.Image,hidden(props){return props.backgroundType!=\"Image\";}},linear:{type:ControlType.Object,controls:{toColor:{type:ControlType.Color,defaultValue:\"#242424\"},opacityTo:{type:ControlType.Number,defaultValue:0},fromColor:{type:ControlType.Color,defaultValue:\"#323232\"},opacityFrom:{type:ControlType.Number,defaultValue:100},degree:{type:ControlType.Number,defaultValue:90,max:360}},hidden(props){return props.backgroundType!=\"Linear\";}},tint:{title:\"Background Color\",type:ControlType.Color,defaultValue:\"#131415\",hidden(props){return props.backgroundType!=\"Solid\";}},font:{type:ControlType.Object,controls:{fontFace:{type:ControlType.String,defaultValue:\"Inter\"},size:{type:ControlType.Number,defaultValue:16},color:{type:ControlType.Color,defaultValue:\"#fff\"},weight:{type:ControlType.Enum,defaultValue:\"bold\",options:[\"normal\",\"bold\",\"bolder\",\"lighter\"]}}},radius:{type:ControlType.FusedNumber,title:\"Radius\",defaultValue:4,toggleKey:\"isMixedRadius\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"topLeftRadius\",\"topRightRadius\",\"bottomRightRadius\",\"bottomLeftRadius\",],valueLabels:[\"TL\",\"TR\",\"BR\",\"BL\"],min:0},borderWidth:{type:ControlType.Number,defaultValue:1},borderColor:{type:ControlType.Color,defaultValue:\"#222426\"},stylePadding:{type:ControlType.FusedNumber,title:\"Padding\",defaultValue:16,toggleKey:\"isMixedPadding\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"topPadding\",\"rightPadding\",\"bottomPadding\",\"leftPadding\",],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0}});const containerStyle={display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"visible\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ShareButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ShareButton.map"],
  "mappings": "uMAAsO,IAAMA,EAAa,CAAC,MAAM,KAAK,OAAO,SAAS,EAGlQ,SAARC,EAA6BC,EAAM,CAC9C,GAAK,CAAC,YAAAC,EAAY,UAAAC,EAAU,eAAAC,EAAe,eAAAC,CAAc,EAAEJ,EACtD,CAAC,MAAAK,EAAM,KAAAC,EAAK,MAAAC,EAAM,KAAAC,EAAK,YAAAC,EAAY,YAAAC,EAAY,gBAAAC,EAAgB,WAAAC,EAAW,gBAAAC,EAAgB,OAAAC,CAAM,EAAEd,EAClG,CAAC,OAAAe,EAAO,cAAAC,EAAc,eAAAC,EAAe,kBAAAC,EAAkB,iBAAAC,EAAiB,cAAAC,EAAc,EAAK,EAAEpB,EAAW,CAAC,aAAAqB,EAAa,WAAAC,EAAW,aAAAC,EAAa,cAAAC,EAAc,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,CAAC,KAAKA,EAAY,OAAO,aAAa,EAAE,EAAE,MAAM,CAAC,KAAKA,EAAY,MAAM,aAAa,MAAM,EAAE,OAAO,CAAC,KAAKA,EAAY,KAAK,aAAa,OAAO,QAAQ,CAAC,SAAS,OAAO,SAAS,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,KAAKA,EAAY,YAAY,MAAM,SAAS,aAAa,EAAE,UAAU,gBAAgB,aAAa,CAAC,MAAM,YAAY,EAAE,UAAU,CAAC,gBAAgB,iBAAiB,oBAAoB,kBAAmB,EAAE,YAAY,CAAC,KAAK,KAAK,KAAK,IAAI,EAAE,IAAI,CAAC,EAAE,YAAY,CAAC,KAAKA,EAAY,OAAO,aAAa,CAAC,EAAE,YAAY,CAAC,KAAKA,EAAY,MAAM,aAAa,SAAS,EAAE,aAAa,CAAC,KAAKA,EAAY,YAAY,MAAM,UAAU,aAAa,GAAG,UAAU,iBAAiB,aAAa,CAAC,MAAM,YAAY,EAAE,UAAU,CAAC,aAAa,eAAe,gBAAgB,aAAc,EAAE,YAAY,CAAC,IAAI,IAAI,IAAI,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAML,EAAe,CAAC,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,SAAS,SAAS",
  "names": ["onHoverStyle", "ShareButton", "props", "socialMedia", "shareText", "iconProperties", "backgroundType", "title", "tint", "style", "font", "borderWidth", "borderColor", "shareCurrentUrl", "urlToShare", "backgroundImage", "linear", "radius", "topLeftRadius", "topRightRadius", "bottomRightRadius", "bottomLeftRadius", "isMixedRadius", "stylePadding", "topPadding", "rightPadding", "bottomPadding", "leftPadding", "isMixedPadding", "borderRadius", "padding", "background", "degree", "toColor", "fromColor", "opacityTo", "opacityFrom", "shareOnTwitter", "shareUrl", "window", "shareLink", "shareOnFacebook", "shareOnLinkedIn", "Icon", "p", "FaLinkedin", "FaFacebook", "motion", "containerStyle", "u", "onHoverStyle", "e", "addPropertyControls", "ControlType"]
}
