{"version":3,"file":"js/chunk.f795654e9b57bc02.js","mappings":"iQAKkB,IAAIA,IAAJ,CAAgB,YAExBC,GAAG,WAAW,WACtBC,EAAAA,GAAAA,QAAgB,OAClB,IAMA,IA0BA,EA1BgD,SAACC,GAC/C,IAAMC,EAAMD,EAAMC,IAAIC,WAAW,QAC7BF,EAAMC,IACNE,OAAOC,SAASC,OAASL,EAAMC,IAEnC,OACE,SAAC,IAAO,CACNK,SACE,iBAAK,eAAS,WACZ,SAAC,IAAK,CAACC,aAAcN,KACrB,SAAC,KAAM,CAACO,GAAG,UAAU,sBAAqBP,EAAI,SAAC,UAKnDQ,MAAM,QACNC,QAAQ,QAAO,UAEf,iBAAKC,UAAU,mCAAkC,WAC/C,gBAAKC,IAAKC,KACV,iBAAMF,UAAU,mCAAkC,SAAC,WAI3D,C","sources":["webpack:///./src/components/ShareButton/index.tsx"],"sourcesContent":["import sharePlainNewSvg from '@/static/imgs/feed-shareNew.svg';\n\nimport { Button, Input, message, Popover } from 'antd';\nimport ClipboardJS from 'clipboard';\n\nconst clipboard = new ClipboardJS('#copyBtn');\n\nclipboard.on('success', () => {\n message.success('复制成功');\n});\n\ntype ShareButtonProps = {\n url: string;\n};\n\nconst ShareButton: React.FC<ShareButtonProps> = (props) => {\n const url = props.url.startsWith('http')\n ? props.url\n : window.location.origin + props.url;\n\n return (\n <Popover\n content={\n <div data-flex>\n <Input defaultValue={url} />\n <Button id=\"copyBtn\" data-clipboard-text={url}>\n 复制\n </Button>\n </div>\n }\n title=\"分享的链接\"\n trigger=\"click\"\n >\n <div className=\"flex items-center cursor-pointer\">\n <img src={sharePlainNewSvg} />\n <span className=\"text-13px text-hex-4E5969 ml-5px\">分享</span>\n </div>\n </Popover>\n );\n};\n\nexport default ShareButton;\n"],"names":["ClipboardJS","on","message","props","url","startsWith","window","location","origin","content","defaultValue","id","title","trigger","className","src","sharePlainNewSvg"],"sourceRoot":""}