{"version":3,"file":"Share_Facebook_Code.CYZcmMyE.mjs","names":["useState"],"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,S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