{"version":3,"file":"ShareLink.COSEpgkb.mjs","names":[],"sources":["https:/framerusercontent.com/modules/A5gcEi4PhxZxF8maqrrL/y3WCTgysTkbZkiwQTWxu/ShareLink.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";const isBrowser=typeof window!==\"undefined\"// Check if window is defined\n;const pageTitle=isBrowser?document.title:\"\"// Get the current page title // Get the current page title\n;const titleCarrierGuide=\"Carrier Guide\";const urlCarrierGuide=\"https://portpro.io/carrierguide\";export function Twitter_Share(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onTap:()=>{var _window_location,_window;window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(`Check out this insightful blog post: ${pageTitle}. Read it here:`)}&url=${encodeURIComponent((_window=window)===null||_window===void 0?void 0:(_window_location=_window.location)===null||_window_location===void 0?void 0:_window_location.href)}`);}});};}export function Facebook_Share(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onTap:()=>{if(isBrowser){var _window_location,_window;window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent((_window=window)===null||_window===void 0?void 0:(_window_location=_window.location)===null||_window_location===void 0?void 0:_window_location.href)}&quote=${encodeURIComponent(`Check out this awesome site \"${pageTitle}\" on the Framer gallery. #madewithframer`)}`);}}});};}export function Facebook_ShareCarrierGuide(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onTap:()=>{if(isBrowser){window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(urlCarrierGuide)}&quote=${encodeURIComponent(`Check out this awesome site \"${titleCarrierGuide}\" on the Framer gallery. #madewithframer`)}`);}}});};}export function LinkedIn_Share(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onTap:()=>{if(isBrowser){var _window_location,_window;window.open(`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent((_window=window)===null||_window===void 0?void 0:(_window_location=_window.location)===null||_window_location===void 0?void 0:_window_location.href)}&title=${encodeURIComponent(pageTitle)}&source=framer.com`);}},style:{...props.style,cursor:\"pointer\"}});};}export function LinkedIn_ShareCarrier(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onTap:()=>{if(isBrowser){window.open(`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(urlCarrierGuide)}&title=${encodeURIComponent(titleCarrierGuide)}&source=framer.com`);}},style:{...props.style,cursor:\"pointer\"}});};}export function Whatsapp_Share(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onTap:()=>{if(isBrowser){var _window_location,_window;window.open(`https://api.whatsapp.com/send?text=${encodeURIComponent(`Check out this link: ${(_window=window)===null||_window===void 0?void 0:(_window_location=_window.location)===null||_window_location===void 0?void 0:_window_location.href}`)}`);}}});};}export function Email_Share(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onTap:()=>{if(isBrowser){var _window_location,_window;const subject=encodeURIComponent(\"Check out this link!\");const body=encodeURIComponent(`Hi,\n\nI wanted to share this link with you: ${(_window=window)===null||_window===void 0?void 0:(_window_location=_window.location)===null||_window_location===void 0?void 0:_window_location.href}`);window.open(`mailto:?subject=${subject}&body=${body}`);}}});};}export function Email_ShareCarrierGuide(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onTap:()=>{if(isBrowser){const subject=encodeURIComponent(\"Check out this link!\");const body=encodeURIComponent(`Hi,\n\nI wanted to share this link with you: ${urlCarrierGuide}`);window.open(`mailto:?subject=${subject}&body=${body}`);}}});};}export function Clipboard_Share(Component){return props=>{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\":{\"Clipboard_Share\":{\"type\":\"reactHoc\",\"name\":\"Clipboard_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Facebook_ShareCarrierGuide\":{\"type\":\"reactHoc\",\"name\":\"Facebook_ShareCarrierGuide\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Email_ShareCarrierGuide\":{\"type\":\"reactHoc\",\"name\":\"Email_ShareCarrierGuide\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Email_Share\":{\"type\":\"reactHoc\",\"name\":\"Email_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Whatsapp_Share\":{\"type\":\"reactHoc\",\"name\":\"Whatsapp_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LinkedIn_Share\":{\"type\":\"reactHoc\",\"name\":\"LinkedIn_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Twitter_Share\":{\"type\":\"reactHoc\",\"name\":\"Twitter_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Facebook_Share\":{\"type\":\"reactHoc\",\"name\":\"Facebook_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LinkedIn_ShareCarrier\":{\"type\":\"reactHoc\",\"name\":\"LinkedIn_ShareCarrier\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ShareLink.map"],"mappings":"kHAEiG,SAAgB,EAAc,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,UAAU,CAA8B,EAAO,KAAK,yCAAyC,mBAAmB,wCAAwC,EAAU,iBAAiB,CAAC,OAAO,mBAA4B,GAAkE,UAAoE,KAAK,GAAG,EAAG,CAAC,CAAI,SAAgB,EAAe,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,UAAU,CAAI,GAAwC,EAAO,KAAK,gDAAgD,mBAA4B,GAAkE,UAAoE,KAAK,CAAC,SAAS,mBAAmB,gCAAgC,EAAU,0CAA0C,GAAG,EAAI,CAAC,CAAI,SAAgB,EAA2B,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,UAAU,CAAI,GAAW,EAAO,KAAK,gDA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