{"version":3,"file":"ShareButton.P9sOo7df.mjs","names":["useState","useCallback","useCallback"],"sources":["https:/framerusercontent.com/modules/vdoncduk6syPCNkbRoli/HhdrT4z3OZh5atbxRTek/CopyUrlButton.js","https:/framerusercontent.com/modules/OtVSc4QS859eBYBbIFO7/qtuTKRVMnLHWpHQUrdCo/ShareButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useCallback,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Copy URL Button\n * \n * A button that copies the current page's URL to the clipboard.\n * Shows a success message temporarily after copying.\n *\n * @framerIntrinsicWidth 120\n * @framerIntrinsicHeight 40\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function CopyUrlButton(props){const{backgroundColor=\"#000000\",textColor=\"#FFFFFF\",borderRadius=8,padding=12,borderColor=\"transparent\",borderWidth=0,iconSize=20}=props;const[copied,setCopied]=useState(false);const handleCopy=useCallback(async()=>{if(typeof window===\"undefined\")return;try{const url=window.location.href;await navigator.clipboard.writeText(url);startTransition(()=>setCopied(true));setTimeout(()=>{startTransition(()=>setCopied(false));},2e3);}catch(err){console.error(\"Failed to copy URL:\",err);}},[]);const buttonStyles={backgroundColor,color:textColor,borderRadius:`${borderRadius}px`,padding:`${padding}px`,border:`${borderWidth}px solid ${borderColor}`,cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:`${iconSize+padding*2}px`,height:`${iconSize+padding*2}px`,aspectRatio:\"1\",transition:\"opacity 0.2s ease, transform 0.1s ease\"};return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"inline-flex\"},children:[copied&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",bottom:\"100%\",left:\"50%\",transform:\"translateX(-50%)\",marginBottom:\"8px\",backgroundColor:\"#333\",color:\"#fff\",padding:\"6px 12px\",borderRadius:\"6px\",fontSize:\"12px\",fontWeight:500,whiteSpace:\"nowrap\",animation:\"fadeInOut 2s ease\",pointerEvents:\"none\",zIndex:1e3},children:[\"Copied!\",/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",top:\"100%\",left:\"50%\",transform:\"translateX(-50%)\",borderWidth:\"5px\",borderStyle:\"solid\",borderColor:\"#333 transparent transparent transparent\"}})]}),/*#__PURE__*/_jsxs(\"button\",{onClick:handleCopy,style:buttonStyles,onMouseEnter:e=>{e.currentTarget.style.opacity=\"0.8\";},onMouseLeave:e=>{e.currentTarget.style.opacity=\"1\";},onMouseDown:e=>{e.currentTarget.style.transform=\"scale(0.98)\";},onMouseUp:e=>{e.currentTarget.style.transform=\"scale(1)\";},\"aria-label\":\"Copy URL to clipboard\",children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    @keyframes fadeInOut {\n                        0% { opacity: 0; transform: translateX(-50%) translateY(4px); }\n                        10% { opacity: 1; transform: translateX(-50%) translateY(0); }\n                        90% { opacity: 1; transform: translateX(-50%) translateY(0); }\n                        100% { opacity: 0; transform: translateX(-50%) translateY(-4px); }\n                    }\n                `}),/*#__PURE__*/_jsxs(\"svg\",{width:iconSize,height:iconSize,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"9\",y:\"9\",width:\"13\",height:\"13\",rx:\"2\",ry:\"2\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"})]})]})]});}addPropertyControls(CopyUrlButton,{iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:20,min:8,max:48,unit:\"px\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"transparent\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:0,min:0,max:10,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:50,unit:\"px\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:12,min:4,max:40,unit:\"px\"}});CopyUrlButton.displayName=\"Copy URL Button\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CopyUrlButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"120\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"40\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CopyUrlButton.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useCallback}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Share Button\n *\n * A social sharing button for X, LinkedIn, and Reddit.\n * Clicking opens the platform's share dialog.\n *\n * @framerIntrinsicWidth 48\n * @framerIntrinsicHeight 48\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ShareButton(props){const{platform=\"x\",shareText=\"\",iconColor=\"#000000\",backgroundColor=\"#FFFFFF\",padding=12,borderWidth=1,borderColor=\"#E5E5E5\",borderRadius=8,iconSize=24,hoverScale=1.05}=props;const handleClick=useCallback(()=>{if(typeof window===\"undefined\")return;const encodedUrl=encodeURIComponent(window.location.href);const encodedText=encodeURIComponent(shareText);let shareLink=\"\";switch(platform){case\"x\":shareLink=`https://twitter.com/intent/tweet?url=${encodedUrl}&text=${encodedText}`;break;case\"linkedin\":shareLink=`https://www.linkedin.com/sharing/share-offsite/?url=${encodedUrl}`;break;case\"reddit\":shareLink=`https://www.reddit.com/submit?url=${encodedUrl}&title=${encodedText}`;break;}if(shareLink){window.open(shareLink,\"_blank\",\"noopener,noreferrer\");}},[platform,shareText]);const renderIcon=()=>{switch(platform){case\"x\":return /*#__PURE__*/_jsx(\"svg\",{width:iconSize,height:iconSize,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z\",fill:iconColor})});case\"linkedin\":return /*#__PURE__*/_jsx(\"svg\",{width:iconSize,height:iconSize,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z\",fill:iconColor})});case\"reddit\":return /*#__PURE__*/_jsx(\"svg\",{width:iconSize,height:iconSize,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.249.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z\",fill:iconColor})});default:return null;}};return /*#__PURE__*/_jsx(\"button\",{onClick:handleClick,style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:\"100%\",height:\"100%\",minWidth:\"max-content\",minHeight:\"max-content\",padding:`${padding}px`,backgroundColor,border:`${borderWidth}px solid ${borderColor}`,borderRadius:`${borderRadius}px`,cursor:\"pointer\",transition:\"opacity 0.2s ease, transform 0.1s ease\",outline:\"none\",boxSizing:\"border-box\"},onMouseEnter:e=>{e.currentTarget.style.opacity=\"0.8\";},onMouseLeave:e=>{e.currentTarget.style.opacity=\"1\";},onMouseDown:e=>{e.currentTarget.style.transform=\"scale(0.98)\";},onMouseUp:e=>{e.currentTarget.style.transform=\"scale(1)\";},\"aria-label\":`Share on ${platform}`,children:renderIcon()});}addPropertyControls(ShareButton,{platform:{type:ControlType.Enum,title:\"Platform\",options:[\"x\",\"linkedin\",\"reddit\"],optionTitles:[\"X (Twitter)\",\"LinkedIn\",\"Reddit\"],defaultValue:\"x\",displaySegmentedControl:true},shareText:{type:ControlType.String,title:\"Share Text\",placeholder:\"Check this out!\",defaultValue:\"\",displayTextArea:true},iconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#000000\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:12,min:0,max:32,step:1,unit:\"px\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:1,min:0,max:8,step:1,unit:\"px\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#E5E5E5\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:32,step:1,unit:\"px\"},iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:24,min:12,max:64,step:1,unit:\"px\"},hoverScale:{type:ControlType.Number,title:\"Hover Scale\",defaultValue:1.05,min:1,max:1.3,step:.01}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ShareButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"48\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"48\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ShareButton.map"],"mappings":"qNAWG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,kBAAgB,UAAU,YAAU,UAAU,eAAa,EAAE,UAAQ,GAAG,cAAY,cAAc,cAAY,EAAE,WAAS,IAAI,EAAW,CAAC,EAAO,GAAWA,EAAS,GAAM,CAAO,EAAWC,EAAY,SAAS,CAAI,GAAO,IAAS,OAAmB,GAAG,CAAC,IAAM,EAAI,EAAO,SAAS,KAAK,MAAM,EAA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