{"version":3,"file":"ShareButtons.DvO2bsBk.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/dJ2Q9cwizqH1duq0pniC/JydOxEz1rnmuo6nAgfes/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\"}},\"shareCur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