{"version":3,"file":"oOPBe6dv7.D-RSApUW.mjs","names":["__esmMin","init_ssg_sandbox_shims","window","navigator","init_jsx_runtime","c","init_framer_D6uXRwWs","fontStore","addPropertyControls","ControlType","SocialShareCustomIcon","props","containerStyle","borderRadius","isMixedRadius","topLeftRadius","topRightRadius","bottomRightRadius","bottomLeftRadius","radius","padding","isMixedPadding","topLeftPadding","topRightPadding","bottomRightPadding","bottomLeftPadding","paddingStyle","style","borderWidth","borderColor","handleClick","url","shareUrl","service","err","finalIcon","uploadedIcon","iconSize","init_SocialShareCustomIcon","fonts","css","className","init_oOPBe6dv7"],"sources":["https:/framerusercontent.com/modules/doG24ZWUNggr6cp1j2Aj/NAufKqaQcb1RZgKybHUQ/SocialShareCustomIcon.js","https:/framerusercontent.com/modules/9x9QHKrIIXQPjcB727xS/UdkS3Eg7hyIJk0nN6GOB/oOPBe6dv7.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// If you're reading this then you shouldn't be.\n// © Luca Da Corte, clicks.supply, All Rights Reserved.\n/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n *\n * @framerDisableUnlink\n */export default function SocialShareCustomIcon(props){const{containerStyle,paddingStyle,topLeftPadding,topRightPadding,bottomRightPadding,bottomLeftPadding,isMixedPadding=false,service,backgroundColor,uploadedIcon,iconSize}=props;const{borderWidth,borderColor,radius,isMixedRadius,topLeftRadius,topRightRadius,bottomRightRadius,bottomLeftRadius}=containerStyle;const borderRadius=isMixedRadius?`${topLeftRadius}px ${topRightRadius}px ${bottomRightRadius}px ${bottomLeftRadius}px`:`${radius}px`;const padding=isMixedPadding?`${topLeftPadding}px ${topRightPadding}px ${bottomRightPadding}px ${bottomLeftPadding}px`:`${paddingStyle}px`;const style={width:\"auto\",height:\"auto\",border:`${borderWidth}px solid ${borderColor}`,padding,borderRadius,backgroundColor,cursor:\"pointer\",transition:\"opacity 0.3s\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"};const handleClick=()=>{const url=window.location.href;let shareUrl=\"\";switch(service){case\"Twitter\":case\"X (Twitter)\":shareUrl=`https://twitter.com/intent/tweet?url=${encodeURIComponent(url)}`;break;case\"LinkedIn\":shareUrl=`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(url)}`;break;case\"Facebook\":shareUrl=`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(url)}`;break;case\"WhatsApp\":shareUrl=`https://wa.me/?text=${encodeURIComponent(url)}`;break;case\"Reddit\":shareUrl=`https://www.reddit.com/submit?url=${encodeURIComponent(url)}`;break;case\"Pinterest\":shareUrl=`https://pinterest.com/pin/create/button/?url=${encodeURIComponent(url)}`;break;case\"Telegram\":shareUrl=`https://t.me/share/url?url=${encodeURIComponent(url)}`;break;case\"Email\":shareUrl=`mailto:?body=${encodeURIComponent(url)}`;break;case\"Copy To Clipboard\":navigator.clipboard.writeText(url).then(()=>{alert(\"URL copied to clipboard\");}).catch(err=>{console.error(\"Could not copy text: \",err);});return;default:shareUrl=`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(url)}`;}window.open(shareUrl,\"_blank\");};const finalIcon=uploadedIcon?.src?uploadedIcon:{src:\"https://framerusercontent.com/images/AKiKExb2zMNepi3mCDBIpmsCYY.svg\",alt:\"Default share icon\"};return /*#__PURE__*/_jsx(\"div\",{style:style,onClick:handleClick,onMouseEnter:e=>e.currentTarget.style.opacity=\"0.8\",onMouseLeave:e=>e.currentTarget.style.opacity=\"1\",children:/*#__PURE__*/_jsx(\"img\",{src:finalIcon.src,alt:finalIcon.alt,srcSet:finalIcon.srcSet,style:{width:iconSize,height:iconSize,objectFit:\"contain\"}})});}SocialShareCustomIcon.defaultProps={service:\"Facebook\",backgroundColor:\"#333\",containerStyle:{borderWidth:1,borderColor:\"#333\"},uuploadedIcon:{src:\"https://framerusercontent.com/images/AKiKExb2zMNepi3mCDBIpmsCYY.svg\",alt:\"Default share icon\"},iconSize:24};// Property Controls\naddPropertyControls(SocialShareCustomIcon,{service:{type:ControlType.Enum,title:\"Service\",options:[\"Facebook\",\"Twitter\",\"LinkedIn\",\"WhatsApp\",\"Email\",\"Copy to clipboard\",\"Reddit\",\"Pinterest\",\"Telegram\"]},uploadedIcon:{type:ControlType.ResponsiveImage,title:\"Custom Icon\"},iconSize:{type:ControlType.Number,title:\"Icon Size\",min:8,max:100,step:1},backgroundColor:{title:\"Background Color\",type:ControlType.Color,defaultValue:\"#333\"},containerStyle:{type:ControlType.Object,title:\"Border\",controls:{borderWidth:{title:\"Border Width\",type:ControlType.Number,defaultValue:1,min:0,max:20,unit:\"px\"},borderColor:{title:\"Border Color\",type:ControlType.Color,defaultValue:\"#000000\"},radius:{type:ControlType.FusedNumber,title:\"Border Radius\",defaultValue:8,toggleKey:\"isMixedRadius\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"topLeftRadius\",\"topRightRadius\",\"bottomRightRadius\",\"bottomLeftRadius\"],valueLabels:[\"TR\",\"BR\",\"BL\",\"TL\"],min:0}}},paddingStyle:{type:ControlType.FusedNumber,title:\"Padding\",defaultValue:16,toggleKey:\"isMixedPadding\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"topLeftPadding\",\"topRightPadding\",\"bottomRightPadding\",\"bottomLeftPadding\"],valueLabels:[\"TR\",\"BR\",\"BL\",\"TL\"],min:0,description:\"[clicks.supply](https://clicks.supply/) is a collection of premium Framer templates, clonables, and tutorials to help you build better Framer websites.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SocialShareCustomIcon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SocialShareCustomIcon.map","// Generated by Framer (27dd866)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"FS;Montserrat-medium\",\"FS;Montserrat-bold\",\"FS;Montserrat-bold italic\",\"FS;Montserrat-medium italic\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Montserrat\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Montserrat\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/G3U4AIP7I5YYMBY4PZ5BNYEWWVH7G7QB/WED2HATCWTE6B4XVIFFTI3EALCE4D6PD/GDZ4LVIJF6WODYKVZK6E2737DCDQPEMZ.woff2\",weight:\"500\"},{cssFamilyName:\"Montserrat\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Montserrat\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/KDZE2GHZ4MXZP7RVHASNN75AFABT2ZB2/G33WYZOWF5RLCYVGCMU5BFGBXH4DMKUK/SHZ3SDA4YUDBQPNRSIGO7XNSCQQUBDYR.woff2\",weight:\"700\"},{cssFamilyName:\"Montserrat\",source:\"fontshare\",style:\"italic\",uiFamilyName:\"Montserrat\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/WVRVHC26IF7VQKSULH6U5DSAGCYOIAQ7/CPARYH2DVA55XB4ZSTA7WTMPVZAVMNA5/BOBO2BRVXZQHPXSPDS5WN3IZQ5SL56OZ.woff2\",weight:\"700\"},{cssFamilyName:\"Montserrat\",source:\"fontshare\",style:\"italic\",uiFamilyName:\"Montserrat\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/WPZYV4DKXXGBZ3ZQTWYRVOQPYBIT2AN7/QRQ5OKEEZRQ525K55RLKSI4H3LRN5OP7/YJ3ABP6H4VTWOW6FDQ3W5ZIIGLTU346F.woff2\",weight:\"500\"}]}];export const css=['.framer-ohtvx .framer-styles-preset-1bzh7sp:not(.rich-text-wrapper), .framer-ohtvx .framer-styles-preset-1bzh7sp.rich-text-wrapper h6 { --framer-font-family: \"Montserrat\", \"Montserrat Placeholder\", sans-serif; --framer-font-family-bold: \"Montserrat\", \"Montserrat Placeholder\", sans-serif; --framer-font-family-bold-italic: \"Montserrat\", \"Montserrat Placeholder\", sans-serif; --framer-font-family-italic: \"Montserrat\", \"Montserrat Placeholder\", sans-serif; --framer-font-open-type-features: \\'blwf\\' on, \\'cv09\\' on, \\'cv03\\' on, \\'cv04\\' on, \\'cv11\\' on; --framer-font-size: 34px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 500; --framer-letter-spacing: -0.02em; --framer-line-height: 1.4em; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-37865eff-864f-4eec-9b25-ce7e85913441, #a0d083); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }'];export const className=\"framer-ohtvx\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,wLAOG,SAAwBU,EAAsB,EAAM,CAAC,GAAK,CAAC,iBAAe,eAAa,iBAAe,kBAAgB,qBAAmB,oBAAkB,iBAAe,GAAM,UAAQ,kBAAgB,eAAa,YAAUC,EAAW,CAAC,cAAY,cAAY,SAAO,gBAAc,gBAAc,iBAAe,oBAAkB,oBAAkBC,EAAqBC,EAAaC,EAAc,GAAGC,EAAc,KAAKC,EAAe,KAAKC,EAAkB,KAAKC,EAAiB,IAAI,GAAGC,EAAO,IAAUC,EAAQC,EAAe,GAAGC,EAAe,KAAKC,EAAgB,KAAKC,EAAmB,KAAKC,EAAkB,IAAI,GAAGC,EAAa,IAAUC,EAAM,CAAC,MAAM,OAAO,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