{
  "version": 3,
  "sources": ["ssg: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": "kFAA2C,IAAMA,EAAU,OAAOC,EAAS,IACpEC,EAAUF,EAAU,SAAS,MAAM,GACnCG,EAAkB,gBAAsBC,EAAgB,kCAAyC,SAASC,EAAcC,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,MAAM,IAAI,CAAC,IAAIE,EAAiBC,EAAQT,EAAO,KAAK,yCAAyC,mBAAmB,wCAAwCC,CAAS,iBAAiB,CAAC,QAAQ,oBAAoBQ,EAAQT,KAAU,MAAMS,IAAU,SAAeD,EAAiBC,EAAQ,YAAY,MAAMD,IAAmB,OAAtE,OAAoFA,EAAiB,IAAI,CAAC,EAAE,CAAE,CAAC,CAAC,CAAI,CAAQ,SAASE,EAAeL,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,MAAM,IAAI,CAA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AAC,GAAGE,EAAU,CAAC,IAAIC,EAAiBC,EAAQ,IAAMC,EAAQ,mBAAmB,sBAAsB,EAAQC,EAAK,mBAAmB;AAAA;AAAA,yCAEp1FF,EAAQG,KAAU,MAAMH,IAAU,SAAeD,EAAiBC,EAAQ,YAAY,MAAMD,IAAmB,OAAtE,OAAoFA,EAAiB,IAAI,EAAE,EAAEI,EAAO,KAAK,mBAAmBF,CAAO,SAASC,CAAI,EAAE,CAAE,CAAC,CAAC,CAAC,CAAI,CAAQ,SAASE,EAAwBT,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,MAAM,IAAI,CAAC,GAAGE,EAAU,CAAC,IAAMG,EAAQ,mBAAmB,sBAAsB,EAAQC,EAAK,mBAAmB;AAAA;AAAA,wCAErbG,CAAe,EAAE,EAAEF,EAAO,KAAK,mBAAmBF,CAAO,SAASC,CAAI,EAAE,CAAE,CAAC,CAAC,CAAC,CAAI,CAAQ,SAASI,EAAgBX,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,MAAM,IAAI,CAAC,IAAMW,EAAU,SAAS,cAAc,UAAU,EAAEA,EAAU,UAAUJ,EAAO,SAAS,KAAK,SAAS,KAAK,YAAYI,CAAS,EAAEA,EAAU,OAAO,EAAE,SAAS,YAAY,MAAM,EAAEA,EAAU,OAAO,EAAE,MAAM,0BAA0B,CAAE,CAAC,CAAC,CAAI",
  "names": ["isBrowser", "window", "pageTitle", "titleCarrierGuide", "urlCarrierGuide", "Twitter_Share", "Component", "props", "p", "_window_location", "_window", "Facebook_Share", "Facebook_ShareCarrierGuide", "LinkedIn_Share", "LinkedIn_ShareCarrier", "Email_Share", "Component", "props", "p", "isBrowser", "_window_location", "_window", "subject", "body", "window", "Email_ShareCarrierGuide", "urlCarrierGuide", "Clipboard_Share", "textField"]
}
