1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9304,4369],{96424:function(){},75381:function(){},86413:function(e,t,l){"use strict";l.r(t),l.d(t,{TimeReportPdf:function(){return f}});var r=l(57437),o=l(47779),i=l(73538);let a={reportTitle:"Time report",generatedAt:"Generated on",totalRecorded:"Total tracked time",tasksTracked:"Tasks with time",filterLabel:"Filter",byTask:"By task",task:"Task",users:"Users",duration:"Duration",empty:"No time tracked yet.",total:"Total",page:"Page",pageOf:"of"},n="lch(10% 0 282/1)",s="#6b7280",c="#969696",d="#e5e7eb",m="#f9f9f9",x=i.StyleSheet.create({page:{paddingTop:48,paddingBottom:48,paddingHorizontal:48,fontSize:11,color:n,fontFamily:"Helvetica"},header:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end",marginBottom:28,paddingBottom:16,borderBottom:"1pt solid ".concat(d)},brand:{fontSize:10,color:c,textTransform:"uppercase",letterSpacing:1.2,marginBottom:6},title:{fontSize:22,color:n,fontFamily:"Helvetica-Bold"},metaRight:{fontSize:10,color:s,textAlign:"right"},metaRightLabel:{textTransform:"uppercase",letterSpacing:1.2,fontSize:8,marginBottom:4},summaryRow:{flexDirection:"row",gap:12,marginBottom:28},summaryCard:{flex:1,padding:14,backgroundColor:m,border:"1pt solid ".concat(d),borderRadius:8},summaryLabel:{fontSize:9,color:s,textTransform:"uppercase",letterSpacing:.8,marginBottom:6},summaryValue:{fontSize:18,color:n,fontFamily:"Helvetica-Bold"},sectionTitle:{fontSize:12,fontFamily:"Helvetica-Bold",color:n,marginBottom:10},tableHeader:{flexDirection:"row",paddingBottom:8,borderBottom:"1pt solid ".concat(d),marginBottom:4},tableHeaderCell:{fontSize:9,color:s,textTransform:"uppercase",letterSpacing:.8},row:{flexDirection:"row",paddingVertical:9,borderBottom:"0.5pt solid ".concat(d)},rowLast:{borderBottom:0},cellTask:{flex:1,paddingRight:12,fontSize:11,color:n},cellUsers:{width:140,paddingRight:12,fontSize:9,color:s},cellDuration:{width:90,textAlign:"right",fontSize:11,color:n,fontFamily:"Helvetica-Bold"},filterSummary:{fontSize:9,color:s,marginBottom:16,paddingHorizontal:12,paddingVertical:8,backgroundColor:m,borderRadius:6},totalRow:{flexDirection:"row",paddingVertical:12,marginTop:8,borderTop:"1pt solid ".concat(d)},totalLabel:{flex:1,fontSize:11,color:s,textTransform:"uppercase",letterSpacing:.8},totalValue:{width:90,textAlign:"right",fontSize:13,fontFamily:"Helvetica-Bold",color:n},empty:{paddingVertical:32,textAlign:"center",color:c,fontSize:11},footer:{position:"absolute",bottom:24,left:48,right:48,flexDirection:"row",justifyContent:"space-between",fontSize:8,color:c},pageNumber:{fontSize:8,color:c}});function f(e){let{data:t}=e,{projectName:l,generatedAt:n,totalSeconds:s,tasksTracked:c,filterSummary:d,rows:m,labels:f,locale:h}=t,g={...a,...null!=f?f:{}};return(0,r.jsx)(i.Document,{children:(0,r.jsxs)(i.Page,{size:"A4",style:x.page,children:[(0,r.jsxs)(i.View,{style:x.header,children:[(0,r.jsxs)(i.View,{children:[(0,r.jsx)(i.Text,{style:x.brand,children:g.reportTitle}),(0,r.jsx)(i.Text,{style:x.title,children:l})]}),(0,r.jsxs)(i.View,{children:[(0,r.jsx)(i.Text,{style:x.metaRightLabel,children:g.generatedAt}),(0,r.jsx)(i.Text,{style:x.metaRight,children:n.toLocaleDateString(h?({en:"en-US",de:"de-DE",es:"es-ES",fr:"fr-FR",it:"it-IT",pt:"pt-BR",nl:"nl-NL",pl:"pl-PL",ru:"ru-RU",ja:"ja-JP",zh:"zh-CN",ko:"ko-KR"})[h]||h:"en-US",{day:"2-digit",month:"2-digit",year:"numeric"})})]})]}),(0,r.jsxs)(i.View,{style:x.summaryRow,children:[(0,r.jsxs)(i.View,{style:x.summaryCard,children:[(0,r.jsx)(i.Text,{style:x.summaryLabel,children:g.totalRecorded}),(0,r.jsx)(i.Text,{style:x.summaryValue,children:(0,o.u)(s,g.hourUnit)})]}),(0,r.jsxs)(i.View,{style:x.summaryCard,children:[(0,r.jsx)(i.Text,{style:x.summaryLabel,children:g.tasksTracked}),(0,r.jsx)(i.Text,{style:x.summaryValue,children:c})]})]}),d&&(0,r.jsxs)(i.Text,{style:x.filterSummary,children:[g.filterLabel,": ",d]}),(0,r.jsx)(i.Text,{style:x.sectionTitle,children:g.byTask}),(0,r.jsxs)(i.View,{style:x.tableHeader,children:[(0,r.jsx)(i.Text,{style:[x.tableHeaderCell,{flex:1}],children:g.task}),(0,r.jsx)(i.Text,{style:[x.tableHeaderCell,{width:140}],children:g.users}),(0,r.jsx)(i.Text,{style:[x.tableHeaderCell,{width:90,textAlign:"right"}],children:g.duration})]}),0===m.length?(0,r.jsx)(i.Text,{style:x.empty,children:g.empty}):m.map((e,t)=>(0,r.jsxs)(i.View,{style:[x.row,t===m.length-1?x.rowLast:{}],children:[(0,r.jsx)(i.Text,{style:x.cellTask,children:e.title}),(0,r.jsx)(i.Text,{style:x.cellUsers,children:e.users&&e.users.length>0?e.users.join(", "):"â"}),(0,r.jsx)(i.Text,{style:x.cellDuration,children:(0,o.u)(e.seconds,g.hourUnit)})]},t)),m.length>0&&(0,r.jsxs)(i.View,{style:x.totalRow,children:[(0,r.jsx)(i.Text,{style:x.totalLabel,children:g.total}),(0,r.jsx)(i.Text,{style:x.totalValue,children:(0,o.u)(s,g.hourUnit)})]}),(0,r.jsxs)(i.View,{style:x.footer,fixed:!0,children:[(0,r.jsx)(i.Text,{children:l}),(0,r.jsx)(i.Text,{render:e=>{let{pageNumber:t,totalPages:l}=e;return"".concat(g.page," ").concat(t," ").concat(g.pageOf," ").concat(l)}})]})]})})}}}]);
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.