1import{r as c,j as e,g as $,a7 as M,cm as T,L as l,m as S,ce as k,bC as L,b0 as R,cc as U}from"./vendor-DCKdIk_f.js";import{a as W}from"./useBlogPosts-CrGM6u67.js";import{a as P,u as D,S as n,B as h,A as _,d as p,e as x,c as g}from"./index-BDzfgULb.js";import{J as j,e as E,c as z}from"./seoStructuredData-B4gR-SSf.js";import{S as H}from"./Separator-WZ9KgzJy.js";const J="_nav_18sy5_2",G="_list_18sy5_6",O="_item_18sy5_16",V="_link_18sy5_21",Y="_page_18sy5_44",q="_separator_18sy5_54",i={nav:J,list:G,item:O,link:V,page:Y,separator:q},N=c.forwardRef(({className:s,...r},o)=>e.jsx("nav",{ref:o,"aria-label":"breadcrumb",className:`${i.nav} ${s||""}`,...r}));N.displayName="Breadcrumb";const v=c.forwardRef(({className:s,...r},o)=>e.jsx("ol",{ref:o,className:`${i.list} ${s||""}`,...r}));v.displayName="BreadcrumbList";const m=c.forwardRef(({className:s,...r},o)=>e.jsx("li",{ref:o,className:`${i.item} ${s||""}`,...r}));m.displayName="BreadcrumbItem";const b=c.forwardRef(({asChild:s,className:r,...o},a)=>{const d=s?$:"a";return e.jsx(d,{ref:a,className:`${i.link} ${r||""}`,...o})});b.displayName="BreadcrumbLink";const y=c.forwardRef(({className:s,...r},o)=>e.jsx("span",{ref:o,role:"link","aria-disabled":"true","aria-current":"page",className:`${i.page} ${s||""}`,...r}));y.displayName="BreadcrumbPage";const F=({className:s,...r})=>e.jsx("li",{role:"presentation","aria-hidden":"true",className:`${i.separator} ${s||""}`,...r,children:e.jsx(M,{size:14})});F.displayName="BreadcrumbSeparator";const K="_container_1e9e1_2",Q="_article_1e9e1_9",X="_header_1e9e1_16",Z="_headerContent_1e9e1_25",ee="_breadcrumb_1e9e1_33",ae="_title_1e9e1_37",te="_excerpt_1e9e1_46",re="_metaRow_1e9e1_53",se="_authorWrapper_1e9e1_64",oe="_authorMeta_1e9e1_71",ne="_authorAvatar_1e9e1_83",ce="_authorText_1e9e1_88",ie="_authorName_1e9e1_93",le="_authorMemberId_1e9e1_98",de="_statsMeta_1e9e1_104",he="_statItem_1e9e1_112",me="_coverWrapper_1e9e1_118",ue="_coverImage_1e9e1_127",_e="_contentWrapper_1e9e1_147",pe="_content_1e9e1_147",xe="_tagsContainer_1e9e1_256",ge="_tagBadge_1e9e1_263",je="_separator_1e9e1_268",Ne="_authorFooterTitle_1e9e1_272",ve="_authorFooterCard_1e9e1_278",be="_authorFooterAvatar_1e9e1_288",ye="_authorFooterDetails_1e9e1_293",Fe="_authorFooterName_1e9e1_300",Ie="_authorFooterId_1e9e1_306",Be="_authorFooterActions_1e9e1_311",Ae="_errorState_1e9e1_315",t={container:K,article:Q,header:X,headerContent:Z,breadcrumb:ee,title:ae,excerpt:te,metaRow:re,authorWrapper:se,authorMeta:oe,authorAvatar:ne,authorText:ce,authorName:ie,authorMemberId:le,statsMeta:de,statItem:he,coverWrapper:me,coverImage:ue,contentWrapper:_e,content:pe,tagsContainer:xe,tagBadge:ge,separator:je,authorFooterTitle:Ne,authorFooterCard:ve,authorFooterAvatar:be,authorFooterDetails:ye,authorFooterName:Fe,authorFooterId:Ie,authorFooterActions:Be,errorState:Ae},fe={startups:"Startups & Founding",fundraising:"Fundraising",scaling:"Scaling & Growth",product:"Product & Tech",hiring:"Hiring & Talent",marketing:"Marketing",technology:"Technology",mentorship:"Mentorship",ecosystem:"Ecosystem",personal_growth:"Personal Growth",msme:"MSME",other:"Other"};function Se(){const{slug:s}=T(),r=P(),{authState:o}=D(),{data:a,isLoading:d,error:I}=W(s||""),B=a&&o.type==="authenticated"&&(o.user.role==="admin"||o.user.id===a.authorUserId),A=c.useMemo(()=>new Intl.DateTimeFormat("en-IN",{year:"numeric",month:"long",day:"numeric"}),[]);if(d)return e.jsx("div",{className:t.container,children:e.jsxs("div",{className:t.contentWrapper,children:[e.jsx(n,{style:{height:"40px",width:"70%",marginBottom:"1rem"}}),e.jsx(n,{style:{height:"20px",width:"40%",marginBottom:"2rem"}}),e.jsx(n,{style:{height:"400px",width:"100%",marginBottom:"2rem"}}),e.jsx(n,{style:{height:"20px",width:"100%",marginBottom:"0.5rem"}}),e.jsx(n,{style:{height:"20px",width:"100%",marginBottom:"0.5rem"}}),e.jsx(n,{style:{height:"20px",width:"80%"}})]})});if(I||!a)return e.jsx("div",{className:t.container,children:e.jsxs("div",{className:t.errorState,children:[e.jsx("h1",{children:"Post Not Found"}),e.jsx("p",{children:"The article you're looking for doesn't exist or has been removed."}),e.jsx(h,{asChild:!0,children:e.jsx(l,{to:"/blog",children:"Return to Blog"})})]})});const f=A.format(new Date(a.publishedAt||a.createdAt)),u=Array.isArray(a.tags)?a.tags:[];return e.jsxs("div",{className:t.container,children:[e.jsxs(S,{children:[e.jsx("title",{children:a.seoTitle||`${a.title} - ${r.name} Blog`}),e.jsx("meta",{name:"description",content:a.seoDescription||a.excerpt||"An article from the ecosystem."}),a.coverImageUrl&&e.jsx("meta",{property:"og:image",content:a.coverImageUrl})]}),e.jsx(j,{data:E({headline:a.title,datePublished:a.publishedAt||a.createdAt,author:{name:a.author.displayName,url:`${r.url}/u/${a.author.slug}`},image:a.coverImageUrl||void 0,publisher:{name:r.name,logo:r.logoUrl}})}),e.jsx(j,{data:z([{name:"Home",url:r.url},{name:"Blog",url:`${r.url}/blog`},{name:a.title,url:`${r.url}/blog/${a.slug}`}
1])}),e.jsxs("article",{className:t.article,children:[e.jsx("header",{className:t.header,children:e.jsxs("div",{className:t.headerContent,children:[e.jsx(N,{className:t.breadcrumb,children:e.jsxs(v,{children:[e.jsx(m,{children:e.jsx(b,{asChild:!0,children:e.jsx(l,{to:"/blog",children:"Blog"})})}),e.jsx(F,{}),e.jsx(m,{children:e.jsx(y,{children:fe[a.category]||a.category})})]})}),e.jsx("h1",{className:t.title,children:a.title}),a.excerpt&&e.jsx("p",{className:t.excerpt,children:a.excerpt}),e.jsxs("div",{className:t.metaRow,children:[e.jsxs("div",{className:t.authorWrapper,children:[e.jsxs(l,{to:`/u/${a.author.slug}`,className:t.authorMeta,children:[e.jsxs(_,{className:t.authorAvatar,children:[a.author.avatarUrl&&e.jsx(p,{src:a.author.avatarUrl,alt:a.author.displayName}),e.jsx(x,{children:a.author.displayName.slice(0,2).toUpperCase()})]}),e.jsxs("div",{className:t.authorText,children:[e.jsx("span",{className:t.authorName,children:a.author.displayName}),a.author.memberId&&e.jsx("span",{className:t.authorMemberId,children:a.author.memberId})]})]}),B&&e.jsx(h,{asChild:!0,variant:"outline",size:"sm",children:e.jsxs(l,{to:`/blog/write?postId=${a.id}`,children:[e.jsx(k,{size:14})," Edit Post"]})})]}),e.jsxs("div",{className:t.statsMeta,children:[e.jsxs("span",{className:t.statItem,children:[e.jsx(L,{size:16}),f]}),e.jsxs("span",{className:t.statItem,children:[e.jsx(R,{size:16}),a.readingTimeMinutes||5," min read"]}),e.jsxs("span",{className:t.statItem,children:[e.jsx(U,{size:16}),a.viewCount," views"]})]})]})]})}),a.coverImageUrl&&e.jsx("figure",{className:t.coverWrapper,children:e.jsx("img",{src:a.coverImageUrl,alt:a.title,className:t.coverImage})}),e.jsxs("div",{className:t.contentWrapper,children:[e.jsx("div",{className:t.content,dangerouslySetInnerHTML:{__html:a.content}}),u.length>0&&e.jsx("div",{className:t.tagsContainer,children:u.map((C,w)=>e.jsxs(g,{variant:"secondary",className:t.tagBadge,children:["#",C]},w))}),e.jsx(H,{className:t.separator}),e.jsxs("section",{className:t.authorFooter,children:[e.jsx("h3",{className:t.authorFooterTitle,children:"About the Author"}),e.jsxs("div",{className:t.authorFooterCard,children:[e.jsxs(_,{className:t.authorFooterAvatar,children:[a.author.avatarUrl&&e.jsx(p,{src:a.author.avatarUrl,alt:a.author.displayName}),e.jsx(x,{children:a.author.displayName.slice(0,2).toUpperCase()})]}),e.jsxs("div",{className:t.authorFooterDetails,children:[e.jsx("h4",{className:t.authorFooterName,children:a.author.displayName}),a.author.memberId&&e.jsx(g,{variant:"outline",className:t.authorFooterId,children:a.author.memberId}),e.jsx("div",{className:t.authorFooterActions,children:e.jsx(h,{asChild:!0,variant:"outline",size:"sm",children:e.jsx(l,{to:`/u/${a.author.slug}`,children:"View Profile"})})})]})]})]})]})]})]})}export{Se as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.