PageSourceSearch

https://app.asklettie.com/_next/static/chunks/4723.1aa5dc5381b5ff29.js

js asklettie.com collected 2026-10-02 19:02:43 UTC 13,189 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4723,7091],{7091:function(){},56034:function(e,t,r){"use strict";r.r(t),r.d(t,{ReactPdfTemplate:function(){return c}});var o=r(73809),a=r(21230),i=r(70772),n=r(45780);i.Font.register({family:"Inter",fonts:[{src:"https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf",fontWeight:400},{src:"https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuI6fMZg.ttf",fontWeight:500},{src:"https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuGKYMZg.ttf",fontWeight:600},{src:"https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuFuYMZg.ttf",fontWeight:700}]}),i.Font.register({family:"Lora",fonts:[{src:"https://fonts.gstatic.com/s/lora/v37/0QI6MX1D_JOuGQbT0gvTJPa787weuyJG.ttf",fontWeight:400},{src:"https://fonts.gstatic.com/s/lora/v37/0QI6MX1D_JOuGQbT0gvTJPa787wsuyJG.ttf",fontWeight:500},{src:"https://fonts.gstatic.com/s/lora/v37/0QI6MX1D_JOuGQbT0gvTJPa787zAvCJG.ttf",fontWeight:600},{src:"https://fonts.gstatic.com/s/lora/v37/0QI6MX1D_JOuGQbT0gvTJPa787z5vCJG.ttf",fontWeight:700}]});let s=i.StyleSheet.create({page:{padding:40,fontFamily:"Inter",fontSize:10,color:"#18181b",backgroundColor:"#ffffff"},header:{flexDirection:"row",justifyContent:"space-between",marginBottom:20},logo:{height:24,width:72,objectFit:"contain",marginBottom:12},title:{fontSize:22,fontWeight:700,fontFamily:"Lora",marginBottom:4,letterSpacing:-.5},subtitle:{fontSize:11,color:"#52525b",lineHeight:1.4},headerRight:{textAlign:"right"},label:{fontSize:8,color:"#a1a1aa",textTransform:"uppercase",letterSpacing:1,fontWeight:600,marginBottom:2},headerValue:{fontSize:12,fontWeight:500,color:"#18181b",marginBottom:10},reportId:{fontSize:9,fontWeight:500,color:"#71717a",fontFamily:"Courier"},propertyGrid:{flexDirection:"row",backgroundColor:"#fafafa",padding:14,borderRadius:8,marginBottom:16,borderWidth:1,borderColor:"#f4f4f5"},propertyColumn:{flex:1},propertyLabel:{fontSize:8,color:"#a1a1aa",textTransform:"uppercase",letterSpacing:1,fontWeight:700,marginBottom:4},propertyName:{fontSize:14,fontWeight:700,color:"#18181b",marginBottom:2},propertyAddress:{fontSize:11,color:"#52525b"},darkCard:{backgroundColor:"#0f172a",borderRadius:10,padding:20,marginBottom:16},darkCardHeader:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:12,paddingBottom:12,borderBottomWidth:1,borderBottomColor:"rgba(255,255,255,0.1)"},darkCardTitle:{fontSize:16,fontWeight:700,color:"#ffffff",marginBottom:2},darkCardSubtitle:{fontSize:8,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:1},badgeRow:{flexDirection:"row",gap:6},badge:{paddingVertical:4,paddingHorizontal:8,borderRadius:12,fontSize:8,fontWeight:600,color:"#ffffff"},darkCardBody:{fontSize:11,lineHeight:1.6,color:"rgba(255,255,255,0.9)"},aiSection:{marginTop:14,paddingTop:14,borderTopWidth:1,borderTopColor:"rgba(255,255,255,0.1)"},aiHeader:{flexDirection:"row",alignItems:"center",gap:6,marginBottom:6},aiBadge:{width:18,height:18,borderRadius:9,backgroundColor:"#22c55e",alignItems:"center",justifyContent:"center"},aiBadgeText:{fontSize:7,fontWeight:700,color:"#0f172a"},aiLabel:{fontSize:8,color:"#22c55e",textTransform:"uppercase",letterSpacing:1,fontWeight:600},aiText:{fontSize:10,lineHeight:1.5,color:"rgba(255,255,255,0.8)"},resolvedBadge:{marginTop:12,paddingVertical:3,paddingHorizontal:8,borderRadius:4,backgroundColor:"rgba(34,197,94,0.2)",alignSelf:"flex-start"},resolvedText:{fontSize:9,fontWeight:600,color:"#22c55e"},sectionTitle:{fontSize:9,fontWeight:700,textTransform:"uppercase",letterSpacing:1,color:"#a1a1aa",marginBottom:8},table:{marginBottom:16},tableHeader:{flexDirection:"row",backgroundColor:"#fafafa",borderRadius:4,marginBottom:2},tableHeaderCell:{fontSize:8,fontWeight:500,color:"#71717a",textTransform:"uppercase",letterSpacing:.5,padding:8},tableRow:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:"#f4f4f5"},tableCell:{fontSize:10,padding:8,color:"#18181b"},tableCellMuted:{fontSize:10,padding:8,color:"#52525b"},tableCellMono:{fontSize:10,padding:8,fontFamily:"Courier",textAlign:"right"},messageContainer:{marginBottom:16},message:{borderRadius:6,padding:10,marginBottom:4},messageTenant:{backgroundColor:"#fafafa",borderWidth:1,borderColor:"#f4f4f5"},messageBot:{backgroundColor:"#f0fdf4",borderWidth:1,borderColor:"#dcfce7"},messageHeader:{flexDirection:"row",justifyContent:"space-between",marginBottom:4},messageSender:{fontSize:8,fontWeight:700,textTransform:"uppercase",letterSpacing:.5},messageSenderTenant:{color:"#71717a"},messageSenderBot:{color:"#16a34a"},messageTime:{fontSize:8,color:"#a1a1aa"},messageText:{fontSize:10,lineHeight:1.5,color:"#3f3f46"},attachmentBadge:{marginTop:4,paddingVertical:3,paddingHorizontal:6,borderRadius:4,alignSelf:"flex-start",fontSize:8,fontWeight:500},attachmentTenant:{backgroundColor:"#e4e4e7",color:"#52525b"},attachmentBot:{backgroundColor:"#bbf7d0",color:"#166534"},workNote:{backgroundColor:"#fffbeb",borderRadius:6,padding:10,marginBottom:4,borderWidth:1,borderColor:"#fef3c7"},workNoteHeader:{flexDirection:"row",justifyContent:"space-between",marginBottom:4},workNoteMeta:{flexDirection:"row",alignItems:"center"},workNoteAuthor:{fontSize:9,fontWeight:600,color:"#92400e"},workNoteVisibility:{marginLeft:6,paddingVertical:2,paddingHorizontal:5,borderRadius:999,fontSize:7,fontWeight:700,textTransform:"uppercase",letterSpacing:.5},workNoteVisibilityPrivate:{backgroundColor:"#fef3c7",color:"#92400e"},workNoteVisibilityTenantVisible:{backgroundColor:"#dcfce7",color:"#166534"},workNoteTime:{fontSize:8,color:"#b45309"},workNoteText:{fontSize:10,lineHeight:1.5,color:"#78350f"},workNoteAttachments:{marginTop:6,paddingTop:6,borderTopWidth:1,borderTopColor:"#fde68a",flexDirection:"row",flexWrap:"wrap",gap:4},workNoteAttachment:{paddingVertical:2,paddingHorizontal:6,backgroundColor:"#fef3c7",borderRadius:4,fontSize:8,fontWeight:500,color:"#92400e"},footer:{marginTop:"auto",paddingTop:16,borderTopWidth:1,borderTopColor:"#f4f4f5",flexDirection:"row",justifyContent:"space-between"},footerText:{fontSize:9,color:"#71717a"},footerSubtext:{fontSize:8,color:"#a1a1aa",marginTop:2}});function l(e){return({New:"New",TenantTroubleshooting:"Tenant Troubleshooting",ReferredToLandlord:"Referred to Landlord",SolvedByTellie:"Solved by Lettie",ResolvedByLandlord:"Resolved by Landlord",Closed:"Closed"})[e]||e}
1function d(e){return new Date(e).toLocaleString("en-GB",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}function c(e){let{issue:t}=e,r="MANUAL"===t.source,c=new Date(new Date).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"});return(0,o.jsx)(i.Document,{children:(0,o.jsxs)(i.Page,{size:"A4",style:s.page,children:[(0,o.jsxs)(i.View,{style:s.header,children:[(0,o.jsxs)(i.View,{style:{maxWidth:320},children:[(0,o.jsx)(i.Image,{src:"https://lettie-env-staging-lettie.vercel.app/_next/image?url=%2FLettie-Light.png&w=384&q=75",style:s.logo}),(0,o.jsx)(i.Text,{style:s.title,children:"Maintenance Report"}),(0,o.jsx)(i.Text,{style:s.subtitle,children:r?"Manual report created by landlord/property manager.":"24/7 tenant triage via WhatsApp with AI-assisted resolution."})]}),(0,o.jsxs)(i.View,{style:s.headerRight,children:[(0,o.jsx)(i.Text,{style:s.label,children:"Date"}),(0,o.jsx)(i.Text,{style:s.headerValue,children:c}),(0,o.jsx)(i.Text,{style:s.label,children:"Report ID"}),(0,o.jsx)(i.Text,{style:s.reportId,children:(0,a.PQ)(t.reportNumber)})]})]}),(0,o.jsxs)(i.View,{style:s.propertyGrid,children:[(0,o.jsxs)(i.View,{style:s.propertyColumn,children:[(0,o.jsx)(i.Text,{style:s.propertyLabel,children:"Property"}),(0,o.jsx)(i.Text,{style:s.propertyName,children:t.property.name}),(0,o.jsxs)(i.Text,{style:s.propertyAddress,children:[t.property.address,t.property.postcode&&", ".concat(t.property.postcode)]})]}),(0,o.jsxs)(i.View,{style:s.propertyColumn,children:[(0,o.jsx)(i.Text,{style:s.propertyLabel,children:"Reported"}),(0,o.jsx)(i.Text,{style:s.propertyName,children:d(t.createdAt)}),t.tenantPhone&&(0,o.jsx)(i.Text,{style:s.propertyAddress,children:t.tenantPhone})]})]}),(0,o.jsxs)(i.View,{style:s.darkCard,wrap:!1,children:[(0,o.jsxs)(i.View,{style:s.darkCardHeader,children:[(0,o.jsxs)(i.View,{children:[(0,o.jsx)(i.Text,{style:s.darkCardTitle,children:r?t.title:"Issue Summary"}),(0,o.jsx)(i.Text,{style:s.darkCardSubtitle,children:r?"Manual Report":"AI-Generated Summary"})]}),(0,o.jsxs)(i.View,{style:s.badgeRow,children:[(0,o.jsx)(i.Text,{style:[s.badge,{backgroundColor:function(e){switch(e){case"New":return"#3b82f6";case"TenantTroubleshooting":return"#a855f7";case"ReferredToLandlord":return"#f97316";case"SolvedByTellie":case"ResolvedByLandlord":return"#22c55e";default:return"#6b7280"}}(t.status)}],children:l(t.status)}),(0,o.jsx)(i.Text,{style:[s.badge,{backgroundColor:function(e){switch(e){case"Emergency":return"#dc2626";case"High":return"#ea580c";case"Medium":return"#ca8a04";case"Low":return"#22c55e";default:return"#6b7280"}}(t.aiUrgency)}],children:t.aiUrgency})]})]}),(0,o.jsx)(i.Text,{style:s.darkCardBody,children:r?t.description||"No description provided":t.aiSummary||"No summary available"}),!r&&t.aiRecommendation&&(0,o.jsxs)(i.View,{style:s.aiSection,children:[(0,o.jsxs)(i.View,{style:s.aiHeader,children:[(0,o.jsx)(i.View,{style:s.aiBadge,children:(0,o.jsx)(i.Text,{style:s.aiBadgeText,children:"AI"})}),(0,o.jsx)(i.Text,{style:s.aiLabel,children:"Recommendation"})]}),(0,o.jsx)(i.Text,{style:s.aiText,children:t.aiRecommendation})]}),t.resolvedAt&&(0,o.jsx)(i.View,{style:s.resolvedBadge,children:(0,o.jsxs)(i.Text,{style:s.resolvedText,children:["✓ Resolved ",d(t.resolvedAt)]})})]}),(0,o.jsxs)(i.View,{style:s.table,wrap:!1,children:[(0,o.jsx)(i.Text,{style:s.sectionTitle,children:"Report Details"}),(0,o.jsxs)(i.View,{style:s.tableHeader,children:[(0,o.jsx)(i.Text,{style:[s.tableHeaderCell,{flex:1}],children:"Item"}),(0,o.jsx)(i.Text,{style:[s.tableHeaderCell,{flex:2}],children:"Details"}),(0,o.jsx)(i.Text,{style:[s.tableHeaderCell,{flex:1,textAlign:"right"}],children:"Value"})]}),[["Priority","Urgency level assigned",t.aiUrgency],["Status","Current issue status",l(t.status)],["Messages","Total conversation messages",String(t.messages.length)],["Work Notes","Internal notes added",String(t.workNotes.length)],["Attachments","Images & files attached",String(t.messages.filter(e=>e.imageUrl).length+t.workNotes.reduce((e,t)=>e+t.attachments.length,0))],["Source","How report was created",r?"Manual":"WhatsApp AI"]].map((e,t)=>{let[r,a,n]=e;return(0,o.jsxs)(i.View,{style:s.tableRow,children:[(0,o.jsx)(i.Text,{style:[s.tableCell,{flex:1,fontWeight:500}],children:r}),(0,o.jsx)(i.Text,{style:[s.tableCellMuted,{flex:2}],children:a}),(0,o.jsx)(i.Text,{style:[s.tableCellMono,{flex:1}],children:n})]},t)})]}),!r&&t.messages.length>0&&(0,o.jsxs)(i.View,{style:s.messageContainer,children:[(0,o.jsxs)(i.Text,{style:s.sectionTitle,children:["Conversation History (",t.messages.length," messages)"]}),t.messages.map(e=>{var t;return(0,o.jsxs)(i.View,{wrap:!1,style:[s.message,"tenant"===e.sender?s.messageTenant:s.messageBot],children:[(0,o.jsxs)(i.View,{style:s.messageHeader,children:[(0,o.jsx)(i.Text,{style:[s.messageSender,"tenant"===e.sender?s.messageSenderTenant:s.messageSenderBot],children:"tenant"===(t=e.sender)?"Tenant":"landlord"===t?"Landlord update":"Lettie AI"}),(0,o.jsx)(i.Text,{style:s.messageTime,children:d(e.createdAt)})]}),(0,o.jsx)(i.Text,{style:s.messageText,children:e.message}),e.imageUrl&&(0,o.jsx)(i.Text,{style:[s.attachmentBadge,"tenant"===e.sender?s.attachmentTenant:s.attachmentBot],children:(0,n.gz)(e.imageUrl)})]},e.id)})]}),t.workNotes.length>0&&(0,o.jsxs)(i.View,{style:{marginBottom:16},children:[(0,o.jsxs)(i.Text,{style:s.sectionTitle,children:["Work Notes (",t.workNotes.length," notes)"]}),t.workNotes.map(e=>(0,o.jsxs)(i.View,{style:s.workNote,wrap:!1,children:[(0,o.jsxs)(i.View,{style:s.workNoteHeader,children:[(0,o.jsxs)(i.View,{style:s.workNoteMeta,children:[(0,o.jsx)(i.Text,{style:s.workNoteAuthor,children:e.user.name||e.user.email||"Team Member"}),(0,o.jsx)(i.Text,{style:[s.workNoteVisibility,"PRIVATE"===e.visibility?s.workNoteVisibilityPrivate:s.workNoteVisibilityTenantVisible],children:"PRIVATE"===e.visibility?"Private":"Tenant visible"})]}),(0,o.jsx)(i.Text,{style:s.workNoteTime,children:d(e.createdAt)})]}),(0,o.jsx)(i.Text,{style:s.workNoteText,children:e.content}),e.attachments.length>0&&(0,o.jsx)(i.View,{style:s.workNoteAttachments,children:e.attachments.map(e=>{var t;return(0,o.jsxs)(i.Text,{style:s.workNoteAttachment,children:["\uD83D\uDCCE ",e.fileName," 
1(",(t=e.fileSize)<1024?t+" B":t<1048576?(t/1024).toFixed(1)+" KB":(t/1048576).toFixed(1)+" MB",")"]},e.id)})})]},e.id))]}),(0,o.jsxs)(i.View,{fixed:!0,style:s.footer,children:[(0,o.jsxs)(i.View,{children:[(0,o.jsx)(i.Text,{style:s.footerText,children:"Lettie — Automated Tenant Triage & Compliance"}),(0,o.jsx)(i.Text,{style:s.footerSubtext,children:"Report generated automatically. All data is securely stored."})]}),(0,o.jsx)(i.Text,{style:s.footerText,children:"www.asklettie.com"})]})]})})}}}]);

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.