1import{u as ie,r as h,j as e}from"./vendor-react-zwv87yMD.js";import{u as ae,a as g,b as L}from"./vendor-query-DYq8g7OI.js";import{T as ne,a as le,b as j,c as v}from"./tabs-Dd8Qm6LV.js";import{B as r}from"./button-DlBDuKbo.js";import{B as q}from"./badge-QivbhJml.js";import{D as re,a as de,b as ce,c as oe,d as me}from"./dialog-CCoQRIQ_.js";import{A as xe,a as ue,b as he,c as pe,d as ge,e as je,f as ve,g as fe}from"./alert-dialog-P2RRIvov.js";import{c as be}from"./contacts-DebKsgyA.js";import{a as Ne}from"./phoneUtils-CLDOdnrv.js";import{C as ye}from"./ContactFormDialog-B0MqWVGg.js";import{c as y}from"./customer-pricing-BilO6PTR.js";import{s as De}from"./service-contracts-Dz44IfS6.js";import{a as we}from"./appointments-Dx2i2tVF.js";import{A as Ie}from"./AppointmentStatusBadge-DYmwvXH1.js";import{m as Ce}from"./menu-items-B9YVhy5i.js";import{u as Ae}from"./authStore-Bv6p2Ne2.js";import{u as Pe}from"./useOrgTimezone-C1UagyKl.js";import{e as Fe}from"./timezoneFormatters-Lg56xFv0.js";import{e as Se,c as Te,L as ke}from"./vendor-router-DimZLiZb.js";import"./vendor-charts-CtrTLS4K.js";import"./vendor-i18n-BdYkS11p.js";import"./vendor-ui-CfDMlrKu.js";import"./vendor-pdf-DQuePnfN.js";import"./vendor-state-ByI9XJey.js";import"./vendor-editor-C_dhmuey.js";import"./utils-BXSzAfFa.js";import"./vendor-icons-bLSWzydc.js";import"./api-client-wl3SCNAO.js";import"./i18n-CwjSIy0a.js";import"./employeeAuthStore-lYSKMuhw.js";function ct(){var R,B;const{t:s}=ie("contacts"),{id:l}=Se(),c=Te(),f=ae(),{permissions:Q,currentOrganizationId:d}=Ae(),u=Pe(),D=Q.includes("MANAGE_CUSTOMER_PRICING"),[E,Z]=h.useState("overview"),[_,U]=h.useState(!1),[Y,w]=h.useState(!1),[m,I]=h.useState(null),[C,A]=h.useState(null),[n,x]=h.useState({menuItemId:"",price:0,notes:""}),{data:i,isLoading:G}=g({queryKey:["contact",d,l],queryFn:()=>be.getOne(l),enabled:!!l}),{data:b=[],isLoading:H}=g({queryKey:["service-contracts",d,"contact",l],queryFn:()=>De.getAll({contactId:l}),enabled:!!l,staleTime:300*1e3}),{data:N=[],isLoading:W}=g({queryKey:["customer-pricing",d,l],queryFn:()=>y.getByContact(l),enabled:!!l}),{data:P=[]}=g({queryKey:["menuItems",d,{includeInactive:!1}],queryFn:()=>Ce.getAll(),staleTime:300*1e3}),{data:$=[]}=g({queryKey:["appointments",d,{contactId:l}],queryFn:()=>we.getAll({contactId:l}),enabled:!!l&&!!d&&E==="appointments"}),F=L({mutationFn:y.create,onSuccess:()=>{f.invalidateQueries({queryKey:["customer-pricing",d,l]}),T()}}),S=L({mutationFn:({pricingId:t,data:a})=>y.update(t,a),onSuccess:()=>{f.invalidateQueries({queryKey:["customer-pricing",d,l]}),T()}}),J=L({mutationFn:y.delete,onSuccess:()=>{f.invalidateQueries({queryKey:["customer-pricing",d,l]}),A(null)}}),z=t=>{var a,o;t?(I(t),x({menuItemId:t.menuItemId,price:Number(t.price),effectiveFrom:((a=t.effectiveFrom)==null?void 0:a.split("T")[0])||"",effectiveUntil:((o=t.effectiveUntil)==null?void 0:o.split("T")[0])||"",notes:t.notes||""})):(I(null),x({menuItemId:"",price:0,notes:""})),w(!0)},T=()=>{w(!1),I(null),x({menuItemId:"",price:0,notes:""})},X=t=>{t.preventDefault(),m?S.mutate({pricingId:m.id,data:{price:n.price,effectiveFrom:n.effectiveFrom||null,effectiveUntil:n.effectiveUntil||null,notes:n.notes||null}}):F.mutate({contactId:l,menuItemId:n.menuItemId,price:n.price,effectiveFrom:n.effectiveFrom||void 0,effectiveUntil:n.effectiveUntil||void 0,notes:n.notes||void 0})},ee=()=>{C&&J.mutate(C)},te=t=>{const a=P.find(o=>o.id===t);x({...n,menuItemId:t,price:a?Number(a.price):0})},k=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(t);return G?e.jsx("div",{className:"py-8 text-center text-muted-foreground",children:s("detail.loading.contact")}):i?e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center gap-3 mb-2",children:e.jsxs(ke,{to:"/dashboard/contacts",className:"text-muted-foreground hover:text-foreground",children:["â ",s("detail.contactsLink")]})}),e.jsx("h2",{className:"text-3xl font-bold",children:i.name}),e.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[i.company&&e.jsx("span",{className:"text-muted-foreground",children:i.company}),i.type&&e.jsx(q,{variant:"outline",className:i.type==="customer"?"border-blue-500 text-blue-600":"border-orange-500 text-orange-600",children:i.type==="customer"?s("detail.type.customer"):s("detail.type.vend
1or")})]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(r,{variant:"outline",onClick:()=>U(!0),children:s("detail.actions.edit")}),i.type==="customer"&&e.jsx(r,{variant:"outline",onClick:()=>c(`/dashboard/invoices/new?type=RECEIVABLE&contactId=${i.id}`),children:s("detail.actions.createInvoice")}),i.type==="vendor"&&e.jsx(r,{variant:"outline",onClick:()=>c(`/dashboard/invoices/new?type=PAYABLE&contactId=${i.id}`),children:s("detail.actions.createBill")})]})]}),e.jsxs(ne,{value:E,onValueChange:Z,children:[e.jsxs(le,{children:[e.jsx(j,{value:"overview",children:s("detail.tabs.overview")}),i.type==="customer"&&e.jsx(j,{value:"pricing",children:s("detail.tabs.pricing",{n:N.length})}),e.jsx(j,{value:"contracts",children:b.length>0?s("detail.tabs.contractsCount",{n:b.length}):s("detail.tabs.contracts")}),e.jsx(j,{value:"invoices",children:((R=i.invoices)==null?void 0:R.length)>0?s("detail.tabs.invoicesCount",{n:i.invoices.length}):s("detail.tabs.invoices")}),e.jsx(j,{value:"appointments",children:s("detail.tabs.appointments")})]}),e.jsx(v,{value:"overview",className:"mt-4",children:e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"border rounded-lg p-4 bg-card",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("detail.overview.contactInfo")}),e.jsxs("dl",{className:"space-y-3",children:[i.email&&e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm text-muted-foreground",children:s("detail.overview.email")}),e.jsx("dd",{children:e.jsx("a",{href:`mailto:${i.email}`,className:"text-primary hover:underline",children:i.email})})]}),i.phone&&e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm text-muted-foreground",children:s("detail.overview.phone")}),e.jsx("dd",{children:e.jsx("a",{href:`tel:${i.phone}`,className:"text-primary hover:underline",children:Ne(i.phone)})})]}),i.website&&e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm text-muted-foreground",children:s("detail.overview.website")}),e.jsx("dd",{children:e.jsx("a",{href:i.website.startsWith("http")?i.website:`https://${i.website}`,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:i.website})})]})]})]}),e.jsxs("div",{className:"border rounded-lg p-4 bg-card",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("detail.overview.address")}),i.address||i.city||i.state?e.jsxs("address",{className:"not-italic text-sm",children:[i.address&&e.jsx("div",{children:i.address}),(i.city||i.state||i.zipCode)&&e.jsxs("div",{children:[i.city,i.city&&i.state&&", ",i.state," ",i.zipCode]}),i.country&&i.country!=="US"&&e.jsx("div",{children:i.country})]}):e.jsx("p",{className:"text-muted-foreground text-sm",children:s("detail.overview.noAddress")})]}),i.notes&&e.jsxs("div",{className:"border rounded-lg p-4 bg-card md:col-span-2",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("detail.overview.notes")}),e.jsx("p",{className:"text-sm whitespace-pre-wrap",children:i.notes})]})]})}),i.type==="customer"&&e.jsx(v,{value:"pricing",className:"mt-4",children:e.jsxs("div",{className:"border rounded-lg bg-card",children:[e.jsxs("div",{className:"p-4 border-b flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold",children:s("detail.pricing.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("detail.pricing.subtitle")})]}),D&&e.jsx(r,{onClick:()=>z(),children:s("detail.pricing.addRule")})]}),W?e.jsx("div",{className:"p-8 text-center text-muted-foreground",children:s("detail.pricing.loading")}):N.length===0?e.jsx("div",{className:"p-8 text-center text-muted-foreground",children:s("detail.pricing.empty")}):e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"border-b bg-muted/30",children:e.jsxs("tr",{className:"text-left",children:[e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.pricing.col.item")}),e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.pricing.col.standardPrice")}),e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.pricing.col.customPrice")}),e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.pricing.col.effectivePeriod")}),e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.pricing.col.notes")}),D&&e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.pricing.col.actions")})]})}),e.jsx("tbody",{children:N.map(t=>{var K,M,V;const a=P.find(se=>se.id===t.menuItemId),o=a?Number(a.price):0,O=Number(t.price),p=o>0?(o-O)/o*100:0;return e.jsxs("tr",{className:"border-b hover:bg-accent/50",children:[e.jsxs("td",{className:"px-4 py-3",children:[e.jsx("div",{className:"font-medium",children:((K=t.menuItem)==null?void 0:K.englishName)||(a==null?void 0:a.englishName)||s("detail.pricing.unknownItem")}),(((M=t.menuItem)==null?void 0:M.chineseName)||(a==null?void 0:a.chineseName))&&e.jsx("div",{className:"text-sm text-muted-foreground",children:((V=t.menuItem)==null?void 0:V.chineseName)||(a==null?void 0:a.chineseName)})]}),e.jsx("td",{className:"px-4 py-3 text-muted-foreground",children:k(o)}),e.jsxs("td",{className:"px-4 py-3",children:[e.jsx("div",{className:"font-medium",children:k(O)}),p!==0&&e.jsx("div",{className:`text-sm ${p>0?"text-green-600":"text-red-600"}`,children:p>0?`-${p.toFixed(0)}%`:`+${Math.abs(p).toFixed(0)}%`})]}),e.jsx("td",{className:"px-4 py-3 text-sm",children:t.effectiveFrom||t.effectiveUntil?e.jsxs(e.Fragment,{children:[t.effectiveFrom&&e.jsx("span",{children:s("detail.pricing.from",{date:new Date(t.effectiveFrom).toLocaleDateString(void 0,{timeZone:u})})}),t.effectiveFrom&&t.effectiveUntil&&" - ",t.effectiveUntil&&e.jsx("span",{children:s("detail.pricing.until",{date:new Date(t.effectiveUntil).toLocaleDateString(void 0,{timeZone:u})})})]}):e.jsx("span",{className:"text-muted-foreground",children:s("detail.pricing.alwaysActive")}
1)}),e.jsx("td",{className:"px-4 py-3 text-sm",children:t.notes||e.jsx("span",{className:"text-muted-foreground",children:"-"})}),D&&e.jsx("td",{className:"px-4 py-3",children:e.jsxs("div",{className:"flex gap-2",children:[e.jsx(r,{variant:"outline",size:"sm",onClick:()=>z(t),children:s("detail.actions.edit")}),e.jsx(r,{variant:"outline",size:"sm",className:"text-destructive border-destructive hover:bg-destructive/10",onClick:()=>A(t.id),children:s("detail.actions.delete")})]})})]},t.id)})})]})]})}),e.jsx(v,{value:"contracts",className:"mt-4",children:e.jsxs("div",{className:"border rounded-lg bg-card",children:[e.jsxs("div",{className:"p-4 border-b flex justify-between items-center",children:[e.jsx("h3",{className:"font-semibold",children:s("detail.contracts.title")}),e.jsx(r,{variant:"outline",size:"sm",onClick:()=>c(`/dashboard/service-contracts/new?contactId=${i.id}`),children:s("detail.contracts.newContract")})]}),H?e.jsx("div",{className:"p-8 text-center text-muted-foreground",children:s("detail.contracts.loading")}):b.length===0?e.jsx("div",{className:"p-8 text-center text-muted-foreground",children:s("detail.contracts.empty")}):e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"border-b bg-muted/30",children:e.jsxs("tr",{className:"text-left",children:[e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.contracts.col.name")}),e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.contracts.col.status")}),e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.contracts.col.frequency")}),e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.contracts.col.startDate")}),e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.contracts.col.endDate")})]})}),e.jsx("tbody",{children:b.map(t=>e.jsxs("tr",{className:"border-b hover:bg-accent/50 cursor-pointer",onClick:()=>c(`/dashboard/service-contracts/${t.id}`),children:[e.jsx("td",{className:"px-4 py-3 font-medium",children:t.name}),e.jsx("td",{className:"px-4 py-3",children:e.jsx(q,{variant:"outline",className:t.status==="ACTIVE"?"border-green-500 text-green-600":t.status==="PAUSED"?"border-yellow-500 text-yellow-600":t.status==="DRAFT"?"border-gray-400 text-gray-500":"border-red-500 text-red-600",children:t.status})}),e.jsx("td",{className:"px-4 py-3 text-sm capitalize",children:t.billingFrequency.toLowerCase()}),e.jsx("td",{className:"px-4 py-3 text-sm",children:new Date(t.startDate).toLocaleDateString(void 0,{timeZone:u})}),e.jsx("td",{className:"px-4 py-3 text-sm",children:t.endDate?new Date(t.endDate).toLocaleDateString(void 0,{timeZone:u}):"â"})]},t.id))})]})]})}),e.jsx(v,{value:"invoices",className:"mt-4",children:e.jsxs("div",{className:"border rounded-lg bg-card",children:[e.jsxs("div",{className:"p-4 border-b flex justify-between items-center",children:[e.jsx("h3",{className:"font-semibold",children:s("detail.invoices.title")}),e.jsx(r,{variant:"outline",size:"sm",onClick:()=>c(`/dashboard/invoices/new?type=${i.type==="customer"?"RECEIVABLE":"PAYABLE"}&contactId=${i.id}`),children:s("detail.invoices.newInvoice")})]}),!i.invoices||i.invoices.length===0?e.jsx("div",{className:"p-8 text-center text-muted-foreground",children:s("detail.invoices.empty")}):e.jsxs(e.Fragment,{children:[e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"border-b bg-muted/30",children:e.jsxs("tr",{className:"text-left",children:[e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.invoices.col.number")}),e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.invoices.col.status")}),e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.invoices.col.amount")}),e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.invoices.col.issueDate")}),e.jsx("th",{className:"px-4 py-3 font-medium",children:s("detail.invoices.col.dueDate")})]})}),e.jsx("tbody",{children:i.invoices.map(t=>e.jsxs("tr",{className:"border-b hover:bg-accent/50 cursor-pointer",onClick:()=>c(`/dashboard/invoices/${t.id}`),children:[e.jsx("td",{className:"px-4 py-3 font-medium",children:t.invoiceNumber}),e.jsx("td",{className:"px-4 py-3",children:e.jsx(q,{variant:"outline",className:t.
1status==="PAID"?"border-green-500 text-green-600":t.status==="SENT"||t.status==="VIEWED"?"border-blue-500 text-blue-600":t.status==="VOID"?"border-red-500 text-red-600":t.status==="DRAFT"?"border-gray-400 text-gray-500":t.status==="PARTIALLY_PAID"?"border-yellow-500 text-yellow-600":t.status==="DISPUTED"?"border-orange-500 text-orange-600":new Date(t.dueDate)<new Date?"border-red-500 text-red-600":"border-gray-400 text-gray-500",children:t.status==="VOID"?s("detail.invoices.voided"):t.status.replace("_"," ")})}),e.jsxs("td",{className:"px-4 py-3 text-sm",children:["$",(t.total/100).toFixed(2)]}),e.jsx("td",{className:"px-4 py-3 text-sm",children:new Date(t.issueDate).toLocaleDateString(void 0,{timeZone:u})}),e.jsx("td",{className:"px-4 py-3 text-sm",children:new Date(t.dueDate).toLocaleDateString(void 0,{timeZone:u})})]},t.id))})]}),i.invoices.length>=10&&e.jsx("div",{className:"p-3 border-t text-center",children:e.jsx(r,{variant:"link",size:"sm",onClick:()=>c(`/dashboard/invoices?contactId=${i.id}`),children:s("detail.invoices.viewAll")})})]})]})}),e.jsx(v,{value:"appointments",className:"mt-4",children:e.jsx("div",{className:"border rounded-lg bg-card",children:$.length===0?e.jsx("p",{className:"p-6 text-center text-gray-500",children:s("detail.appointments.empty")}):e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b text-left text-sm text-gray-500",children:[e.jsx("th",{className:"px-4 py-3",children:s("detail.appointments.col.date")}),e.jsx("th",{className:"px-4 py-3",children:s("detail.appointments.col.service")}),e.jsx("th",{className:"px-4 py-3",children:s("detail.appointments.col.status")})]})}),e.jsx("tbody",{children:$.map(t=>{var a;return e.jsxs("tr",{className:"border-b cursor-pointer hover:bg-gray-50",onClick:()=>c(`/dashboard/appointments/${t.id}`),children:[e.jsx("td",{className:"px-4 py-3 text-sm",children:Fe(t.scheduledStart,u)}),e.jsx("td",{className:"px-4 py-3 text-sm",children:((a=t.serviceType)==null?void 0:a.name)||t.title||s("detail.appointments.fallback")}),e.jsx("td",{className:"px-4 py-3",children:e.jsx(Ie,{status:t.status})})]},t.id)})})]})})})]}),e.jsx(re,{open:Y,onOpenChange:w,children:e.jsxs(de,{children:[e.jsx(ce,{children:e.jsx(oe,{children:s(m?"detail.dialog.editTitle":"detail.dialog.addTitle")})}),e.jsxs("form",{onSubmit:X,className:"space-y-4",children:[!m&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:s("detail.dialog.itemRequired")}),e.jsxs("select",{value:n.menuItemId,onChange:t=>te(t.target.value),className:"w-full px-3 py-2 border rounded-md",required:!0,children:[e.jsx("option",{value:"",children:s("detail.dialog.selectItem")}),P.filter(t=>!N.some(a=>a.menuItemId===t.id)).map(t=>e.jsxs("option",{value:t.id,children:[t.englishName," - ",k(Number(t.price))]},t.id))]})]}),m&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:s("detail.dialog.item")}),e.jsx("div",{className:"px-3 py-2 border rounded-md bg-muted/50",children:((B=m.menuItem)==null?void 0:B.englishName)||s("detail.pricing.unknownItem")})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:s("detail.dialog.customPriceRequired")}),e.jsx("input",{type:"number",step:"0.01",min:"0",value:n.price,onChange:t=>x({...n,price:parseFloat(t.target.value)||0}),className:"w-full px-3 py-2 border rounded-md",required:!0})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:s("detail.dialog.effectiveFrom")}),e.jsx("input",{type:"date",value:n.effectiveFrom||"",onChange:t=>x({...n,effectiveFrom:t.target.value}),className:"w-full px-3 py-2 border rounded-md"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:s("detail.dialog.effectiveUntil")}),e.jsx("input",{type:"date",value:n.effectiveUntil||"",onChange:t=>x({...n,effectiveUntil:t.target.value}),className:"w-full px-3 py-2 border rounded-md"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:s("detail.dialog.notes")}),e.jsx("textarea",{value:n.notes||"",onChange:t=>x({...n,notes:t.target.value}),className:"w-full px-3 py-2 border rounded-md",rows:2,placeholder:s("detail.dialog.notesPlaceholder")})]}),e.jsxs(me,{children:[e.jsx(r,{type:"button",variant:"outline",onClick:T,children:s("detail.actions.cancel")}),e.jsx(r,{type:"submit",disabled:!m&&!n.menuItemId||F.isPending||S.isPending,children:F.isPending||S.isPending?s("detail.dialog.saving"):s(m?"detail.dialog.update":"detail.dialog.create")})]})]})]})}),e.jsx(ye,{open:_,onOpenChange:U,editingContact:i,onSuccess:()=>{f.invalidateQueries({queryKey:["contact",d,l]})}}),e.jsx(xe,{open:!!C,onOpenChange:()=>A(null),children:e.jsxs(ue,{children:[e.jsxs(he,{children:[e.jsx(pe,{children:s("detail.deleteDialog.title")}),e.jsx(ge,{children:s("detail.deleteDialog.description")})]}),e.jsxs(je,{children:[e.jsx(ve,{children:s("detail.actions.cancel")}),e.jsx(fe,{onClick:ee,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("detail.actions.delete")})]})]})})]}):e.jsxs("div",{className:"py-12 text-center",children:[e.jsx("p",{className:"text-muted-foreground mb-4",children:s("detail.notFound")}),e.jsx(r,{onClick:()=>c("/dashboard/contacts"),children:s("detail.backToContacts")}
1)]})}export{ct 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.