{"version":3,"file":"Share_Facebook_Code.Cp2hUe3s.mjs","names":[],"sources":["https:/framerusercontent.com/modules/g6glGLKk1n6ZDcHTSrL3/OvAdqzLxD004yhSz6SqL/Share_Facebook_Code.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function Twitter_Share(Component){return props=>{const[pageTitle,setPageTitle]=useState(\"\");useEffect(()=>{setPageTitle(document.title) // This will run only on the client side\n;},[]);return /*#__PURE__*/ _jsx(Component,{...props,onTap:()=>{var ref;window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(`Check out this insightful article from: ${pageTitle}. Read it here:`)}&url=${encodeURIComponent(window===null||window===void 0?void 0:(ref=window.location)===null||ref===void 0?void 0:ref.href)}`);}});};}export function Facebook_Share(Component){return props=>{const[pageTitle,setPageTitle]=useState(\"\");useEffect(()=>{setPageTitle(document.title) // This will run only on the client side\n;},[]);return /*#__PURE__*/ _jsx(Component,{...props,onTap:()=>{var ref;window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(window===null||window===void 0?void 0:(ref=window.location)===null||ref===void 0?void 0:ref.href)}&quote=${encodeURIComponent(`Check out this awesome site \"${pageTitle}\" on the Framer gallery. #madewithframer`)}`);}});};}export function LinkedIn_Share(Component){return props=>{const[pageTitle,setPageTitle]=useState(\"\");useEffect(()=>{setPageTitle(document.title) // This will run only on the client side\n;},[]);return /*#__PURE__*/ _jsx(Component,{...props,onTap:()=>{var ref;window.open(`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(window===null||window===void 0?void 0:(ref=window.location)===null||ref===void 0?void 0:ref.href)}&title=${encodeURIComponent(pageTitle)}&source=framer.com`);},style:{...props.style,cursor:\"pointer\"}});};}export function Whatsapp_Share(Component){return props=>{const[pageTitle,setPageTitle]=useState(\"\");useEffect(()=>{setPageTitle(document.title) // This will run only on the client side\n;},[]);return /*#__PURE__*/ _jsx(Component,{...props,onTap:()=>{var ref;window.open(`https://api.whatsapp.com/send?text=${encodeURIComponent(`Check out this link: ${window===null||window===void 0?void 0:(ref=window.location)===null||ref===void 0?void 0:ref.href}`)}`);}});};}export function Email_Share(Component){return props=>{const[pageTitle,setPageTitle]=useState(\"\");useEffect(()=>{setPageTitle(document.title) // This will run only on the client side\n;},[]);return /*#__PURE__*/ _jsx(Component,{...props,onTap:()=>{var ref;const subject=encodeURIComponent(\"Check out this link!\");const body=encodeURIComponent(`Hi,\n\nI wanted to share this link with you: ${window===null||window===void 0?void 0:(ref=window.location)===null||ref===void 0?void 0:ref.href}`);window.open(`mailto:?subject=${subject}&body=${body}`);}});};}export function Clipboard_Share(Component){return props=>{const[pageTitle,setPageTitle]=useState(\"\");useEffect(()=>{setPageTitle(document.title) // This will run only on the client side\n;},[]);return /*#__PURE__*/ _jsx(Component,{...props,onTap:()=>{const textField=document.createElement(\"textarea\");textField.innerText=window.location.href;document.body.appendChild(textField);textField.select();document.execCommand(\"copy\");textField.remove();alert(\"URL copied to clipboard!\");}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"Twitter_Share\":{\"type\":\"reactHoc\",\"name\":\"Twitter_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LinkedIn_Share\":{\"type\":\"reactHoc\",\"name\":\"LinkedIn_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Whatsapp_Share\":{\"type\":\"reactHoc\",\"name\":\"Whatsapp_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Email_Share\":{\"type\":\"reactHoc\",\"name\":\"Email_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Facebook_Share\":{\"type\":\"reactHoc\",\"name\":\"Facebook_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Clipboard_Share\":{\"type\":\"reactHoc\",\"name\":\"Clipboard_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Share_Facebook_Code.map"],"mappings":"2MAAiF,SAA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