{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/CaJzj3cbEaGyofZeqURN/ZuOruIEDZFnEFihxfXjd/Linkdin_button.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export const showSection=Component=>{// const copyUrlWithHash = () => {\n//     const urlWithHash = window.location.href\n//     navigator.clipboard.writeText(urlWithHash)\n//     // LinkedIn share URL\n//     const linkedinShareUrl = `https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(\n//         urlWithHash\n//     )}`\n//     window.open(linkedinShareUrl, \"_blank\")\n// }\nconst copyUrlWithHash=()=>{const urlWithHash=window.location.href;navigator.clipboard.writeText(urlWithHash);// LinkedIn share URL\nconst encodedUrlWithHash=encodeURIComponent(urlWithHash);const linkedinShareUrl=`https://www.linkedin.com/shareArticle?mini=true&url=${encodedUrlWithHash}`;console.log(linkedinShareUrl);window.open(linkedinShareUrl,\"_blank\");// const [baseUrl, fragment] = urlWithHash.split(\"#\")\n// const encodedUrlWithFragment = `${encodeURIComponent(baseUrl)}%23${encodeURIComponent(fragment)}`\n// const linkedinShareUrl = `https://www.linkedin.com/shareArticle?mini=true&url=${encodedUrlWithFragment}`\n// window.open(linkedinShareUrl, \"_blank\")\n};const scrollToSection=hash=>{const section=document.getElementById(hash);if(section){section.scrollIntoView({behavior:\"smooth\"});}};return props=>{const handleClick=()=>{const hash=window.location.hash.replace(\"#\",\"\");if(hash){scrollToSection(hash)// Scroll to the section with the current hash\n;}copyUrlWithHash()// Copy the URL with the hash to the clipboard and open LinkedIn share dialog\n;};useEffect(()=>{const hash=window.location.hash.replace(\"#\",\"\");if(hash){scrollToSection(hash)// Scroll to the section on initial load based on the hash\n;}},[])// Empty dependency array means this effect runs only on mount\n;return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};};\nexport const __FramerMetadata__ = {\"exports\":{\"showSection\":{\"type\":\"reactHoc\",\"name\":\"showSection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Linkdin_button.map"],
  "mappings": "gGAA+E,IAAMA,EAAYC,GAAW,CAS5G,IAAMC,EAAgB,IAAI,CAAC,IAAMC,EAAYC,EAAO,SAAS,KAAKC,EAAU,UAAU,UAAUF,CAAW,EAClD,IAAMG,EAAiB,uDAAvD,mBAAmBH,CAAW,CAAkG,GAAG,QAAQ,IAAIG,CAAgB,EAAEF,EAAO,KAAKE,EAAiB,QAAQ,CAI/N,EAAQC,EAAgBC,GAAM,CAAC,IAAMC,EAAQ,SAAS,eAAeD,CAAI,EAAKC,GAASA,EAAQ,eAAe,CAAC,SAAS,QAAQ,CAAC,CAAG,EAAE,OAAOC,GAAO,CAAC,IAAMC,EAAY,IAAI,CAAC,IAAMH,EAAKJ,EAAO,SAAS,KAAK,QAAQ,IAAI,EAAE,EAAKI,GAAMD,EAAgBC,CAAI,EACvPN,EAAgB,CACjB,EAAE,OAAAU,EAAU,IAAI,CAAC,IAAMJ,EAAKJ,EAAO,SAAS,KAAK,QAAQ,IAAI,EAAE,EAAKI,GAAMD,EAAgBC,CAAI,CAC7F,EAAE,CAAC,CAAC,EACeK,EAAKZ,EAAU,CAAC,GAAGS,EAAM,QAAQC,CAAW,CAAC,CAAE,CAAE",
  "names": ["showSection", "Component", "copyUrlWithHash", "urlWithHash", "window", "navigator", "linkedinShareUrl", "scrollToSection", "hash", "section", "props", "handleClick", "ue", "p"]
}
