{"version":3,"file":"BlogSocialUtilities.CvDaWDAM.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/Pv6qnGv1Ywny7jtKbkoH/JSGcXHpvRTlCfcMvp4sT/BlogSocialUtilities.js"],"sourcesContent":["// Get Started: https://www.framer.com/developers\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";import{useState}from\"react\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function BlogSocialUtilities(props){const{blogTitle,customUrl}=props;const[copied,setCopied]=useState(false);// Get current page URL or use custom URL\nconst currentUrl=customUrl||(typeof window!==\"undefined\"?window.location.href:\"\");const handleCopyLink=async()=>{try{await navigator.clipboard.writeText(currentUrl);setCopied(true);setTimeout(()=>setCopied(false),2e3);}catch(err){console.error(\"Failed to copy: \",err);}};const shareUrls={twitter:`https://twitter.com/intent/tweet?url=${encodeURIComponent(currentUrl)}&text=${encodeURIComponent(blogTitle)}`,linkedin:`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(currentUrl)}`,facebook:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(currentUrl)}`};const openShareWindow=url=>{window.open(url,\"_blank\",\"width=600,height=400\");};return /*#__PURE__*/_jsxs(motion.div,{style:{display:\"flex\",alignItems:\"center\",gap:\"12px\",fontFamily:'-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif'},children:[/*#__PURE__*/_jsxs(motion.button,{onClick:handleCopyLink,whileHover:{scale:1.02},whileTap:{scale:.98},style:{display:\"flex\",alignItems:\"center\",gap:\"8px\",padding:\"8px 16px\",backgroundColor:\"white\",border:\"1px solid rgba(145, 145, 145, 0.3)\",borderRadius:\"12px\",fontSize:\"14px\",fontWeight:\"500\",color:\"#101828\",cursor:\"pointer\",outline:\"none\"},children:[/*#__PURE__*/_jsx(\"svg\",{width:\"21\",height:\"20\",viewBox:\"0 0 21 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M4.6665 12.5C3.88993 12.5 3.50165 12.5 3.19536 12.3732C2.78698 12.204 2.46253 11.8795 2.29337 11.4712C2.1665 11.1649 2.1665 10.7766 2.1665 10V4.33335C2.1665 3.39993 2.1665 2.93322 2.34816 2.5767C2.50795 2.2631 2.76292 2.00813 3.07652 1.84834C3.43304 1.66669 3.89975 1.66669 4.83317 1.66669H10.4998C11.2764 1.66669 11.6647 1.66669 11.971 1.79355C12.3794 1.96271 12.7038 2.28717 12.873 2.69555C12.9998 3.00183 12.9998 3.39012 12.9998 4.16669M10.6665 18.3334H16.1665C17.0999 18.3334 17.5666 18.3334 17.9232 18.1517C18.2368 17.9919 18.4917 17.7369 18.6515 17.4233C18.8332 17.0668 18.8332 16.6001 18.8332 15.6667V10.1667C18.8332 9.23327 18.8332 8.76656 18.6515 8.41004C18.4917 8.09643 18.2368 7.84147 17.9232 7.68168C17.5666 7.50002 17.0999 7.50002 16.1665 7.50002H10.6665C9.73308 7.50002 9.26637 7.50002 8.90985 7.68168C8.59625 7.84147 8.34128 8.09643 8.18149 8.41004C7.99984 8.76656 7.99984 9.23327 7.99984 10.1667V15.6667C7.99984 16.6001 7.99984 17.0668 8.18149 17.4233C8.34128 17.7369 8.59625 17.9919 8.90985 18.1517C9.26637 18.3334 9.73308 18.3334 10.6665 18.3334Z\",stroke:\"#101828\",\"stroke-width\":\"1.66667\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"})}),copied?\"Copied!\":\"Copy link\"]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:\"12px\"},children:[/*#__PURE__*/_jsx(motion.button,{onClick:()=>openShareWindow(shareUrls.twitter),whileHover:{scale:1.05},whileTap:{scale:.95},style:{width:\"40px\",height:\"40px\",backgroundColor:\"white\",border:\"1px solid rgba(145, 145, 145, 0.3)\",borderRadius:\"12px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",outline:\"none\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M6.66683 1.66656H0.833496L7.71683 10.8449L1.2085 18.3332H3.41683L8.74016 12.2091L13.3335 18.3332H19.1668L11.9935 8.76823L18.1668 1.66656H15.9585L10.9702 7.4049L6.66683 1.66656ZM14.1668 16.6666L4.16683 3.33323H5.8335L15.8335 16.6666H14.1668Z\",fill:\"#101828\"})})}),/*#__PURE__*/_jsx(motion.button,{onClick:()=>openShareWindow(shareUrls.linkedin),whileHover:{scale:1.05},whileTap:{scale:.95},style:{width:\"40px\",height:\"40px\",backgroundColor:\"white\",border:\"1px solid rgba(145, 145, 145, 0.3)\",borderRadius:\"12px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",outline:\"none\"},children:/*#__PURE__*/_jsxs(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"g\",{\"clip-path\":\"url(#clip0_16275_4256)\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M19.5785 19.5834L19.5833 19.5826V12.541C19.5833 9.09616 18.8417 6.44256 14.8145 6.44256C12.8785 6.44256 11.5793 7.50496 11.0489 8.51216H10.9929V6.76416H7.1745V19.5826H11.1505V13.2354C11.1505 11.5642 11.4673 9.94816 13.5369 9.94816C15.5761 9.94816 15.6065 11.8554 15.6065 13.3426V19.5834H19.5785ZM0.700101 6.76496H4.6809V19.5834H0.700101V6.76496ZM2.6889 0.383362C1.4161 0.383362 0.383301 1.41616 0.383301 2.68896C0.383301 3.96176 1.4161 5.01616 2.6889 5.01616C3.9617 5.01616 4.9945 3.96176 4.9945 2.68896C4.99408 2.07761 4.75103 1.49142 4.31874 1.05912C3.88645 0.626832 3.30025 0.383786 2.6889 0.383362Z\",fill:\"#101828\"})}),/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsx(\"clipPath\",{id:\"clip0_16275_4256\",children:/*#__PURE__*/_jsx(\"rect\",{width:\"20\",height:\"20\",fill:\"white\"})})})]})})]})]});}addPropertyControls(BlogSocialUtilities,{blogTitle:{title:\"Blog Title\",type:ControlType.String,defaultValue:\"Check out this amazing blog post!\",description:\"Title to share with the blog post\"},customUrl:{title:\"Custom URL\",type:ControlType.String,defaultValue:\"\",description:\"Optional custom URL to share (leave empty to use current page)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BlogSocialUtilities\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BlogSocialUtilities.map"],"mappings":"uPAIG,SAAwB,EAAoB,EAAM,CAAC,GAAK,CAAC,YAAU,aAAW,EAAW,CAAC,EAAO,GAAWA,EAAS,GAAM,CACxH,EAAW,IAAmB,IAAS,OAAiC,GAArB,EAAO,SAAS,MAAe,EAAe,SAAS,CAAC,GAAG,CAAC,MAAM,EAAU,UAAU,UAAU,EAAW,CAAC,EAAU,GAAK,CAAC,eAAe,EAAU,GAAM,CAAC,IAAI,OAAQ,EAAI,CAAC,QAAQ,MAAM,mBAAmB,EAAI,GAAU,EAAU,CAAC,QAAQ,wCAAwC,mBAAmB,EAAW,CAAC,QAAQ,mBAAmB,EAAU,GAAG,SAAS,uDAAuD,mBAAmB,EAAW,GAAG,SAAS,gDAAgD,mBAAmB,EAAW,GAAG,CAAO,EAAgB,GAAK,CAAC,EAAO,KAAK,EAAI,SAAS,uBAAuB,EAAG,OAAoB,EAAM,EAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,OAAO,WAAW,SAAS,IAAI,OAAO,WAAW,oEAAoE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