{"version":3,"file":"Share_Facebook_Code.CQiRermY.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,SAA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