{"version":3,"file":"post-7nIbfDCn.js","sources":["../../../src/components/posts/PostRenderer.tsx","../../../src/components/posts/PostTitleBlock.tsx","../../../src/pages/post/PostRoot.tsx","../../../src/pages/post/index.tsx"],"sourcesContent":["import { HubPostData } from '@/types.js';\nimport { RichTextRenderer } from '../richText/RichTextRenderer.jsx';\n\nexport interface PostRendererProps {\n\tbody: HubPostData['body'];\n}\n\nexport function PostRenderer({ body }: PostRendererProps) {\n\treturn ;\n}\n","import { HubNotebookSummaryData, HubPostData } from '@/types.js';\nimport { Avatar, Box, Button, H1 } from '@a-type/ui';\n\nexport interface PostTitleBlockProps {\n\tpost: HubPostData;\n\tnotebook: HubNotebookSummaryData;\n}\n\nexport function PostTitleBlock({ post, notebook }: PostTitleBlockProps) {\n\treturn (\n\t\t\n\t\t\t{post.coverImageUrl && (\n\t\t\t\t\n\t\t\t)}\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t

{post.title}

\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\tPublished{' '}\n\t\t\t\t\t\t{new Date(post.updatedAt ?? post.createdAt).toDateString()}\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\tBy{' '}\n\t\t\t\t\t\t{post.authorAvatarUrl ?\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t:\tnull}{' '}\n\t\t\t\t\t\t{post.authorName}\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n}\n","import { PostRenderer } from '@/components/posts/PostRenderer.jsx';\nimport { PostTitleBlock } from '@/components/posts/PostTitleBlock.jsx';\nimport { Box } from '@a-type/ui';\nimport { HubNotebookSummaryData, HubPostData } from '../../types.js';\n\nexport interface PostRootProps {\n\tpost: HubPostData;\n\tnotebook: HubNotebookSummaryData;\n}\n\nexport function PostRoot({ post, notebook }: PostRootProps) {\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t);\n}\n","import ReactDOM from 'react-dom/client';\nimport 'virtual:uno.css';\nimport { PostRoot } from './PostRoot.js';\n\n// @ts-expect-error - This is injected by the server\nconst snapshot = window.__SNAPSHOT__;\n\nReactDOM.hydrateRoot(\n\tdocument.getElementById('root')!,\n\t,\n);\n"],"names":["PostRenderer","body","jsx","RichTextRenderer","PostTitleBlock","post","notebook","jsxs","Box","Button","H1","Avatar","PostRoot","snapshot","ReactDOM"],"mappings":"6FAOgB,SAAAA,EAAa,CAAE,KAAAC,GAA2B,CAClD,OAAAC,EAAA,IAACC,EAAiB,CAAA,QAASF,CAAM,CAAA,CACzC,CCDO,SAASG,EAAe,CAAE,KAAAC,EAAM,SAAAC,GAAiC,CAEtE,OAAAC,EAAA,KAACC,EAAA,CACA,EAAC,GACD,EAAE,MACF,UAAU,0EACV,QAAQ,UACR,MAAM,QACN,UAAS,GAER,SAAA,CAAAH,EAAK,eACLH,EAAA,IAAC,MAAA,CACA,IAAKG,EAAK,cACV,UAAU,6CAAA,CACX,EAEDH,EAAAA,IAACM,GAAI,EAAE,MAAM,IAAG,GAAC,MAAM,SAAS,QAAO,GACtC,SAAAN,EAAA,IAACO,GAAO,QAAO,GAAC,MAAM,QAAQ,UAAU,yBACvC,SAACF,EAAA,KAAA,IAAA,CAAE,KAAMD,EAAS,IAChB,SAAA,CAAAA,EAAS,SACTJ,EAAA,IAAC,MAAA,CACA,IAAKI,EAAS,QACd,UAAU,yCAAA,CACX,EAEAJ,EAAA,IAAA,KAAA,CAAG,UAAU,cAAe,WAAS,IAAK,CAAA,CAAA,CAC5C,CAAA,CACD,CAAA,EACD,SACCM,EAAI,CAAA,IAAG,GAAC,EAAE,MAAM,MAAM,QACtB,SAAA,CAACN,EAAA,IAAAM,EAAA,CAAI,QAAO,GAAC,EAAC,GACb,SAACN,EAAAA,IAAAQ,EAAA,CAAI,SAAKL,EAAA,KAAA,CAAM,CACjB,CAAA,EACAE,EAAAA,KAACC,EAAI,CAAA,QAAO,GAAC,EAAC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