import{a as e,i as t,n,r,t as i}from"./_brand-C2V3ysl0.js";var a=`#f6f7f9`,o=`#0a0a0a`,s=`#5a6068`,c=`#e3e6eb`,l=`#dde1e7`,u={markStroke:o,wordmarkFg:o};function d(e,t){return{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,gap:`4px`},children:[{type:`span`,props:{style:{fontSize:`34px`,fontWeight:800,color:o,fontFamily:`JetBrains Mono`},children:e}},{type:`span`,props:{style:{fontSize:`14px`,color:s,textTransform:`uppercase`,letterSpacing:`0.16em`,fontWeight:600},children:t}}]}}}function f(e){let t=e.reduce((e,t)=>e+t.value,0)||1;return{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,gap:`8px`},children:[{type:`div`,props:{style:{display:`flex`,width:`100%`,height:`10px`,borderRadius:`5px`,backgroundColor:l,overflow:`hidden`},children:e.map(e=>({type:`div`,props:{style:{display:`flex`,width:`${e.value/t*100}%`,height:`100%`,backgroundColor:e.color}}}))}},{type:`div`,props:{style:{display:`flex`,justifyContent:`space-between`,fontSize:`12px`,color:s,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.14em`},children:e.map(e=>({type:`span`,props:{style:{display:`flex`},children:`${e.label} · ${e.value}`}}))}}]}}}function p(l){let p=[t(l.sessionDate),l.durationLabel].filter(Boolean).join(` · `),m=l.costDollars??`$—`,h=typeof l.cachedTokens==`number`&&l.cachedTokens>=1e5?`+ ${e(l.cachedTokens)} cached`:null,g=[n(u,`session receipt`),{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,gap:`8px`},children:[{type:`div`,props:{style:{fontSize:`40px`,fontWeight:700,color:o,lineHeight:1.15,wordBreak:`break-word`},children:l.sessionTitle}},{type:`div`,props:{style:{fontSize:`18px`,color:s},children:p}}]}},{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,alignItems:`flex-start`,padding:`8px 0`},children:[{type:`span`,props:{style:{fontSize:`14px`,color:s,textTransform:`uppercase`,letterSpacing:`0.24em`,fontWeight:700},children:`session cost`}},{type:`span`,props:{style:{fontSize:`180px`,fontWeight:800,color:o,fontFamily:`JetBrains Mono`,lineHeight:1,letterSpacing:`-0.04em`},children:m}}]}},{type:`div`,props:{style:{display:`flex`,width:`100%`,height:`1px`,backgroundColor:c}}},{type:`div`,props:{style:{display:`flex`,justifyContent:`space-between`,gap:`24px`},children:[d(String(l.messageCount),`msgs`),d(String(l.filesReferenced),`files`),d(String(l.toolCallCount),`tools`),d(l.model??`—`,`model`)]}},f([{value:l.messageCount,color:i,label:`msgs`},{value:l.filesReferenced,color:`#0a0a0a`,label:`files`},{value:l.toolCallCount,color:`#5a6068`,label:`tools`}])];return h&&g.push({type:`div`,props:{style:{fontSize:`14px`,color:s,fontFamily:`JetBrains Mono`,opacity:.85},children:h}}),l.verdict&&g.push({type:`div`,props:{style:{display:`flex`,fontSize:`22px`,fontStyle:`italic`,color:o,borderLeft:`3px solid ${i}`,paddingLeft:`20px`,marginTop:`8px`},children:`"${l.verdict}"`}}),g.push({type:`div`,props:{style:{display:`flex`,flex:1}}}),g.push(r(u)),{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,width:`100%`,height:`100%`,backgroundColor:a,padding:`64px 72px`,fontFamily:`Inter`,gap:`24px`},children:g}}}export{p as render};