{"version":3,"file":"ShareButtons.CM8HXJBS.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/8LiXfppF5gxbM0y0r0ra/m95QY0uAfDrH02b1YcUR/ShareButtons.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// Created by FramerOverrides.com\nexport function CopyLinkOnClick(){return{onClick:async()=>{const link=window.location.href// Get the current URL\n;try{await navigator.clipboard.writeText(link);console.log(\"Link copied to clipboard:\",link);}catch(err){console.error(\"Failed to copy link to clipboard:\",err);}}};}export function shareCurrentPageOnTwitter(){const handleClick=async()=>{const currentURL=window.location.href// Get the current URL\n;const twitterURL=`https://twitter.com/intent/tweet?url=${encodeURIComponent(currentURL)}`;try{await navigator.clipboard.writeText(currentURL)// Copy the link to the clipboard\n;console.log(\"Link copied to clipboard:\",currentURL);}catch(err){console.error(\"Failed to copy link to clipboard:\",err);}window.open(twitterURL,\"_blank\",\"width=600,height=400\")// Open the Twitter share link\n;};return{onClick:handleClick};}export function shareCurrentPageOnLinkedIn(){const handleClick=e=>{e.preventDefault()// Prevent default behavior if used on a link\n;const currentURL=window.location.href// Get the current page URL\n;const linkedinURL=`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(currentURL)}`;window.open(linkedinURL,\"_blank\",\"width=600,height=400\")// Open LinkedIn share in a new window\n;};return{onClick:handleClick};}export function shareCurrentPageOnFacebook(){return{onClick:()=>{const currentURL=window.location.href// Get the current page URL\n;const fbShareUrl=`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(currentURL)}`;window.open(fbShareUrl,\"facebook-share-dialog\",\"width=800,height=600\")// Open Facebook share dialog with custom dimensions\n;}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withCopyLinkOnClick(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...CopyLinkOnClick(props)});};}withCopyLinkOnClick.displayName=\"CopyLinkOnClick\";export function withshareCurrentPageOnTwitter(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...shareCurrentPageOnTwitter(props)});};}withshareCurrentPageOnTwitter.displayName=\"shareCurrentPageOnTwitter\";export function withshareCurrentPageOnLinkedIn(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...shareCurrentPageOnLinkedIn(props)});};}withshareCurrentPageOnLinkedIn.displayName=\"shareCurrentPageOnLinkedIn\";export function withshareCurrentPageOnFacebook(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...shareCurrentPageOnFacebook(props)});};}withshareCurrentPageOnFacebook.displayName=\"shareCurrentPageOnFacebook\";\nexport const __FramerMetadata__ = {\"exports\":{\"withCopyLinkOnClick\":{\"type\":\"reactHoc\",\"name\":\"withCopyLinkOnClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withshareCurrentPageOnFacebook\":{\"type\":\"reactHoc\",\"name\":\"withshareCurrentPageOnFacebook\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CopyLinkOnClick\":{\"type\":\"override\",\"name\":\"CopyLinkOnClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withshareCurrentPageOnTwitter\":{\"type\":\"reactHoc\",\"name\":\"withshareCurrentPageOnTwitter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"shareCurrentPageOnFacebook\":{\"type\":\"override\",\"name\":\"shareCurrentPageOnFacebook\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withshareCurrentPageOnLinkedIn\":{\"type\":\"reactHoc\",\"name\":\"withshareCurrentPageOnLinkedIn\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"shareCurrentPageOnTwitter\":{\"type\":\"override\",\"name\":\"shareCurrentPageOnTwitter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"shareCurrentPageOnLinkedIn\":{\"type\":\"override\",\"name\":\"shareCurrentPageOnLinkedIn\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ShareButtons.map"],"mappings":"mLACA,SAAgB,GAAiB,CAAC,MAAM,CAAC,QAAQ,SAAS,CAAC,IAAM,EAAK,EAAO,SAAS,KACrF,GAAG,CAAC,MAAM,EAAU,UAAU,UAAU,CAAI,EAAE,QAAQ,IAAI,4BAA4B,CAAI,CAAE,OAAO,EAAI,CAAC,QAAQ,MAAM,oCAAoC,CAAG,CAAE,CAAC,CAAC,CAAE,CAAC,SAAgB,GAA2B,CAG7M,MAAM,CAAC,QAAQ,SAH0N,CAAC,IAAM,EAAW,EAAO,SAAS,KACvQ,EAAW,wCAAwC,mBAAmB,CAAU,IAAI,GAAG,CAAC,MAAM,EAAU,UAAU,UAAU,CAAU,EAC5I,QAAQ,IAAI,4BAA4B,CAAU,CAAE,OAAO,EAAI,CAAC,QAAQ,MAAM,oCAAoC,CAAG,CAAE,CAAC,EAAO,KAAK,EAAW,SAAS,sBAAsB,CAC9K,CAA4B,CAAE,CAAC,SAAgB,GAA4B,CAGzE,MAAM,CAAC,QAHqF,GAAG,CAAC,EAAE,eAAe,EACnH,IAAM,EAAW,EAAO,SAAS,KAC3B,EAAY,uDAAuD,mBAAmB,CAAU,IAAI,EAAO,KAAK,EAAY,SAAS,sBAAsB,CACjK,CAA4B,CAAE,CAAC,SAAgB,GAA4B,CAAC,MAAM,CAAC,YAAY,CAAC,IAAM,EAAW,EAAO,SAAS,KAC3H,EAAW,gDAAgD,mBAAmB,CAAU,IAAI,EAAO,KAAK,EAAW,wBAAwB,sBAAsB,CACvK,CAAC,CAAE,CAAoJ,SAAgB,EAAoB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,CAAuC,EAASC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAgB,CAAK,CAAC,CAAC,EAAI,CAAmD,SA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