1import{f as s,j as e,B as l,$ as y,am as xe,n as ee,h as le,M as Te,e as L,b9 as Pe,ba as we,i as X,ak as ie,bb as De,T as oe,aQ as je,G as P,s as Ie,t as ze,I as ce,af as ge,b2 as Me,bc as Ae,C as Le,b7 as Fe,aj as Be,bd as Ne,be as Oe,bf as _e,bg as fe,bh as me,aR as $e,bi as Ge,bj as Re,bk as We,bl as He,bm as Ue,aq as de,k as Xe,J as se,bn as Ye,p as qe,a$ as Je,Y as Qe,a_ as Ke,A as Ve,b0 as Ze,a5 as et,a1 as tt,b3 as st,aJ as at}from"./mui-DY5Gl7oU.js";import{b as Ce,g as Z,a as ye,c as lt}from"./index-CdMfwr03.js";import{s as nt}from"./searchConcepts-8XXVdUuB.js";import{G as it}from"./GET_CUSTOMER_SETTINGS-GHgG3cx9.js";import{C as rt}from"./CLEAR_ENTITY_CACHE-Cx4m70Rk.js";import{D as ot}from"./DatasetPicker-UQuKL93J.js";import{E as ct,D as dt,C as be}from"./CMConceptModal-RQgQ2uwn.js";import{u as ne,b as ut}from"./apollo-CyXUVKo4.js";import"./vendors-g49t3g-N.js";import"./react-BUsGL8WM.js";import"./main-DTeIB9jz.js";import"./AliasInput-CfQAWUFz.js";import"./omit-9l3jDvWE.js";import"./GET_CONCEPT_AUTHORITY_PROFILE-ihuxrA_T.js";const pt=[{value:"all",label:"All types"},{value:"person",label:"Person"},{value:"place",label:"Place"},{value:"organisation",label:"Organization"},{value:"event",label:"Event"},{value:"object",label:"Object"}],ht=r=>{const{isSuperAdmin:f}=r,{entityFilter:m,setEntityFilter:x,excludeDrafts:S,setExcludeDrafts:b,extendSearch:p,setExtendSearch:j}=s.useContext(Ce),C=o=>{x(o.target.value)},z=o=>{j(o.target.checked)},F=o=>{b(o.target.checked)},E=()=>{j(!1),b(!1),x("all")};return e.jsxs(l,{sx:{display:"flex",flexDirection:"column",py:1,px:2,gap:2},children:[e.jsxs(l,{sx:{display:"flex",flexDirection:"column"},children:[e.jsx(y,{arrow:!0,disableInteractive:!0,title:f?"Always enabled for super admins":"",enterDelay:500,children:e.jsx(xe,{disabled:f,control:e.jsx(ee,{checked:p||f,onChange:z}),label:"Extend search",slotProps:{typography:{fontWeight:700}},sx:{my:0}})}),e.jsx(xe,{control:e.jsx(ee,{checked:S,onChange:F}),label:"Exclude drafts",slotProps:{typography:{fontWeight:700}},sx:{my:0}})]}),e.jsx(le,{id:"concept-filter-select",autoComplete:"off",select:!0,size:"small",label:"Filter entity types",value:m,onChange:C,InputProps:{sx:{fontWeight:700}},SelectProps:{MenuProps:{MenuListProps:{dense:!0,disablePadding:!0}}},sx:{width:200,backgroundColor:"#fff"},children:pt.map(o=>e.jsx(Te,{value:o.value,children:e.jsxs(l,{component:"span",sx:{display:"flex",alignItems:"center",gap:1},children:[Z(o.value,"small"),e.jsx("b",{children:o.label})]})},o.value))}),e.jsx(L,{size:"small",variant:"contained",onClick:E,children:"Default"})]})},xt=({concepts:r,onRemove:f,onClear:m,...x})=>{const{superAdminMode:S,isExtendedAdmin:b,setShowSnackbar:p,setSnackbarMessage:j,setSnackbarError:C}=s.useContext(ye),[z]=ne(ct),[F]=ne(dt),[E,o]=s.useState(!1),[w,T]=s.useState(!1),[d,M]=s.useState({pubStatus:!1,ignoreStatus:!1}),[i,D]=s.useState({pubStatus:!r.some(a=>a.pubStatus===!1),ignoreStatus:!r.some(a=>a.ignore===!1)}),c=()=>{p(!1),o(!0);const a=r.map(n=>{let g={superAdmin:S,extendedAdmin:b,uuid:n.uuid,title:n.title,type:n.type,shortDescription:n.shortDescription,global:n.global,language:n.language};return d.pubStatus&&(g.pubStatus=i.pubStatus,n.pubStatus=i.pubStatus),d.ignoreStatus&&(g.ignore=i.ignoreStatus,n.ignore=i.ignoreStatus),z({variables:g})});Promise.all(a).then(n=>{j("Successfully edited concepts."),C(!1),p(!0),x.onClose()}).catch(n=>{j(n.message),C(!0),p(!0)}).finally(()=>o(!1))},v=()=>{p(!1),o(!0);const a=r.map(n=>{let g={superAdmin:S,extendedAdmin:b,uuid:n.uuid,title:n.title,type:n.type,shortDescription:n.shortDescription,global:n.global,language:n.language};return F({variables:g})});Promise.all(a).then(n=>{p(!0),C(!1),j("Successfully deleted concepts"),r.forEach(B=>f&&f(B)),x.onClose();let g=document.getElementById("conceptSearchInput");setTimeout(()=>{g&&g.dispatchEvent(new Event("input",{bubbles:!0}))},250)}).catch(()=>{p(!0),C(!0),j("Failed to delete concepts")}).finally(()=>{o(!1)})};return e.jsxs(Pe,{fullWidth:!0,maxWidth:"md",...x,children:[e.jsxs(we,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Edit concepts",e.jsx(X,{"aria-label":"Close",onClick:()=>x.onClose(),size:"small",children:e.jsx(ie,{})})]}),e.jsxs(De,{sx:{py:0},children:[e.jsxs(oe,{sx:{pb:1,gap:.5,display:"flex",alignItems:"center"},children:[r.length," selected",e.jsx(X,{size:"small",color:"secondary","aria-label":"Clear selection",onClick:()=>{m&&m(),x.onClose()},children:e.jsx(je,{})})]}),e.jsxs(P,{container:!0,children:[e.jsx(P,{size:6,children:e.jsx(Ie,{sx:{overflowX:"hidden",overflowY:"auto",height:"400px",maxHeight:"400px",borderRight:"1px solid rgba(0,0,0,0.125)"},children:r.map(a=>e.jsxs(ze,{sx:{py:.5,px:0,alignItems:"center",gap:1,pr:.5},children:[Z(a.type),e.jsx(y,{title:`${a.title}${a.shortDescription&&" - "+a.shortDescription}`,placement:"bottom-start",children:e.jsxs(oe,{sx:{overflow:"hidden",
1whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%"},children:[e.jsx("span",{style:{fontWeight:700},children:a.title}),a.shortDescription&&e.jsxs("span",{children:[" - ",a.shortDescription]})]})}),f&&e.jsx(y,{title:`Deselect ${a.title}`,placement:"bottom",children:e.jsx(X,{size:"small",onClick:()=>{f(a)},children:e.jsx(ie,{})})})]},a.uuid))})}),e.jsxs(P,{size:6,sx:{px:2,py:1},children:[e.jsxs(l,{sx:{display:"flex",gap:2,pb:2},children:[e.jsx(ee,{checked:d.pubStatus,onClick:a=>{a.stopPropagation()},onChange:a=>{a.target.checked?M({...d,pubStatus:!0}):M({...d,pubStatus:!1})},sx:{p:0}}),e.jsx(le,{disabled:!d.pubStatus,autoComplete:"off",label:"Publication status",InputLabelProps:{shrink:!0},variant:"outlined",size:"small",value:i.pubStatus?"On":"Off",fullWidth:!0,InputProps:{endAdornment:e.jsx(ce,{position:"end",children:e.jsx(y,{title:i.pubStatus?"Toggle off":"Toggle on",placement:"top",children:e.jsx(ge,{edge:"end",disabled:!d.pubStatus,checked:i.pubStatus,onChange:()=>{D({...i,pubStatus:!i.pubStatus})}})})})}})]}),e.jsxs(l,{sx:{display:"flex",gap:2,pb:2},children:[e.jsx(ee,{checked:d.ignoreStatus,onClick:a=>{a.stopPropagation()},onChange:a=>{a.target.checked?M({...d,ignoreStatus:!0}):M({...d,ignoreStatus:!1})},sx:{p:0}}),e.jsx(le,{disabled:!d.ignoreStatus,autoComplete:"off",label:"Ignore in autotagging",InputLabelProps:{shrink:!0},variant:"outlined",size:"small",value:i.ignoreStatus?"On":"Off",fullWidth:!0,InputProps:{endAdornment:e.jsx(ce,{position:"end",children:e.jsx(y,{title:i.ignoreStatus?"Toggle off":"Toggle on",placement:"top",children:e.jsx(ge,{edge:"end",disabled:!d.ignoreStatus,checked:i.ignoreStatus,onChange:()=>{D({...i,ignoreStatus:!i.ignoreStatus})}})})})}})]})]})]})]}),e.jsxs(l,{sx:{p:2,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsxs(l,{sx:{display:"flex",gap:2},children:[e.jsxs(L,{disabled:w,variant:"outlined",color:"secondary",onClick:()=>{T(!0)},sx:{gap:1},children:[e.jsx(Me,{}),"Delete selected (",r.length,")"]}),w&&e.jsxs(L,{disabled:E,variant:"contained",color:"secondary",onClick:v,sx:{gap:1},children:[e.jsx(Ae,{}),"Confirm"]})]}),e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:2},children:[E&&e.jsx(Le,{size:"1.5em"}),e.jsxs(L,{disabled:E,variant:"contained",color:"secondary",onClick:x.onClose,sx:{gap:1},children:[e.jsx(ie,{})," Close"]}),e.jsxs(L,{disabled:E,variant:"contained",color:"primary",onClick:c,sx:{gap:1},children:[e.jsx(Fe,{})," Save changes"]})]})]})]})},gt=qe({paginationLabel:{marginBottom:0}}),ae=Je(()=>Qe({badge:{minWidth:"16px",height:"12px",right:"-4px",top:"14px",padding:0,margin:0,border:"none",color:"#000",fontSize:9,fontWeight:700,backgroundColor:"#fff"}}))(de),U=r=>/\d/.test(r),re=({list:r,listLabel:f,listType:m})=>{const x=gt(),[S,b]=s.useState(0),[p,j]=s.useState(50),[C,z]=s.useState(null),[F,E]=s.useState(!1),[o,w]=s.useState(!1),T=[{id:"title",label:f,type:m}],[d,M]=s.useState([]),[i,D]=s.useState(!1),[c,v]=s.useState([]),[a,n]=s.useState(!1),[g,B]=s.useState(!1),Y=(t,A)=>{b(A)},te=t=>{j(+t.target.value),b(0)};s.useEffect(()=>{b(0),M(r)},[r]),s.useEffect(()=>{c.length<1&&n(!1)},[c]);const N=s.useRef(0);return e.jsxs(l,{sx:{height:"100%"},children:[e.jsx(be,{show:F,onHide:()=>E(!1),concept:C}),e.jsx(be,{show:o,onHide:()=>w(!1),concept:C,createConcept:!0}),e.jsxs(Be,{sx:{display:"block",overflowX:"hidden"},children:[e.jsx(Ne,{children:e.jsxs(Oe,{size:"small",stickyHeader:!0,"aria-label":"sticky table",sx:{display:"flex",flexDirection:"column",width:"100%"},children:[e.jsx(_e,{children:e.jsx(fe,{sx:{display:"block",width:"100%"},children:T.map((t,A)=>e.jsx(me,{sx:{display:"block",width:"100%"},children:e.jsxs(l,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:1},children:[Z(t.type,"medium"),e.jsx(oe,{sx:{fontWeight:700},children:t.label})]}),e.jsxs(l,{sx:{display:"flex",gap:.5},children:[i&&c.length>0&&e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:1},children:[a&&e.jsx(xt,{open:a,concepts:c,onClose:()=>{n(!1)},onRemove:q=>{v(c.filter(O=>O.uuid!==q.uuid))},onClear:()=>{v([]),n(!1)}}),e.jsxs($e,{variant:"contained",size:"small",sx:{overflow:"hidden"},children:[e.jsx(y,{arrow:!0,title:"Edit selected",placement:"bottom",children:e.jsxs(L,{onClick:()=>{n(!0)}
1,sx:{gap:.5},children:[c.length," selected",e.jsx(Ge,{fontSize:"small"})]})}),e.jsx(y,{arrow:!0,title:"Clear selected",placement:"bottom",children:e.jsx(L,{color:"secondary",onClick:()=>{v([]),n(!1),D(!1)},children:e.jsx(je,{fontSize:"small"})})})]})]}),e.jsx(y,{arrow:!0,title:i?"Disable bulk edit":"Enable bulk edit",placement:"bottom",children:e.jsx(Re,{size:"small",value:i,selected:i,onChange:()=>{D(!i)},sx:{border:"none"},children:e.jsx(We,{})})}),e.jsx(y,{arrow:!0,title:"Create new concept",placement:"bottom",children:e.jsx(X,{className:"float-right",size:"small","aria-label":"Create new concept",onClick:()=>{z({uuid:"",title:"",type:t.type==="entity"?"person":t.type,pubStatus:!0,ignore:!1,shortDescription:"",longDescription:"",aliases:[],broader:"",author:""}),w(!0)},children:e.jsx(He,{})})})]})]})},A))})}),e.jsx(Ue,{sx:{overflowX:"hidden",overflowY:"auto",minHeight:"33.3vh",height:`${lt()-252}px`},children:d.slice(S*p,S*p+p).map((t,A)=>e.jsx(fe,{hover:!((t.type.includes("category")||t.type.includes("topic"))&&!U(t.source)),sx:{display:"block",width:"100%",opacity:t.hidden?"inherit":(t.type==="category"||t.type==="topic")&&!U(t.source)?"0.6":"inherit"},onClick:()=>{if(z(t),(t.type==="category"||t.type==="topic")&&!U(t.source)){w(!0);return}E(!0)},children:T.map((q,O)=>{var _,R;const J=t[q.id];return e.jsx(s.Fragment,{children:e.jsx(me,{className:"interactive-cell",sx:{display:"block",width:"100%",px:1.5},onMouseDown:h=>{h.button===0&&(N.current=++N.current)},onMouseUp:h=>{N.current=0},onMouseEnter:h=>{i&&N.current>0&&(g?!c.some(I=>I.uuid===t.uuid)&&v([...c,t]):v(c.filter(I=>I.uuid!==t.uuid)))},children:(t.hidden||!U(t.source))&&(t.type==="topic"||t.type==="category")?e.jsx(y,{arrow:!0,followCursor:!0,title:t.hidden?"Hidden concept":"Click to create and enable this concept",placement:"bottom",children:e.jsx(l,{sx:{display:"block",width:"100%",padding:"0 0.2em"},children:e.jsxs(l,{display:"flex",children:[e.jsx(l,{flexGrow:0,children:Z(t.type)}),e.jsxs(l,{flexGrow:1,sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",margin:"0 0.6em"},children:[e.jsx(l,{component:"span",fontWeight:"bold",children:J}),t.shortDescription?e.jsx(l,{component:"span",className:"font-weight-lighter",children:` â ${t.shortDescription}`}):null]}),t.hidden?e.jsx(de,{children:e.jsx(Xe,{fontSize:"small"})}):t.global!==void 0&&t.global?e.jsx(l,{flexGrow:0,sx:{mr:.5},children:e.jsx(ae,{badgeContent:(_=t.language)==null?void 0:_.toUpperCase(),children:e.jsx(se,{fontSize:"small"})})}):U(t.source)?null:e.jsx(l,{flexGrow:0,sx:{mr:2},children:e.jsx(ae,{badgeContent:(t.source||"iMatrics").toUpperCase(),children:e.jsx(se,{fontSize:"small"})})})]})})}):e.jsx(l,{sx:{display:"block",width:"100%",padding:"0 0.2em"},children:e.jsxs(l,{sx:{display:"flex",flexGrow:0,alignItems:"center"},children:[e.jsx(l,{children:i?e.jsx(ee,{size:"small",checked:c.some(h=>h.uuid===t.uuid),onClick:h=>{h.stopPropagation()},onMouseDown:h=>{h.button===0&&(c.some(I=>I.uuid===t.uuid)?(v(c.filter(I=>I.uuid!==t.uuid)),B(!1)):(v([...c,t]),B(!0)))},sx:{p:0}}):Z(t.type)}),e.jsxs(l,{flexGrow:1,sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",margin:"0 0.6em"},children:[e.jsx(l,{component:"span",sx:{fontWeight:700},children:J}),t.shortDescription?e.jsx(l,{component:"span",className:"font-weight-lighter",children:` â ${t.shortDescription}`}):null]}),t.global!==void 0&&t.global?e.jsx(l,{sx:{flexGrow:0,mr:.5},children:e.jsx(ae,{badgeContent:(R=t.language)==null?void 0:R.toUpperCase(),children:e.jsx(se,{fontSize:"small"})})}):U(t.source)?null:e.jsx(l,{sx:{flexGrow:0,mr:1.5},children:e.jsx(ae,{badgeContent:(t.source||"iMatrics").toUpperCase(),children:e.jsx(se,{fontSize:"small"})})})]})})})},O)})},`${t.uuid}-${t.language}-${t.global?"global":"customer"}-${A}`))})]})}),e.jsx(Ye,{component:"div",rowsPerPageOptions:[25,50,100],count:d.length,rowsPerPage:p,page:S,onPageChange:Y,onRowsPerPageChange:te,labelRowsPerPage:"",sx:{width:"100%",overflowX:"hidden",borderTop:"1px solid rgba(0, 0, 0, 0.125)"},classes:{displayedRows:x.paginationLabel,selectLabel:x.paginationLabel}})]})]})},It=()=>{const{superAdminMode:r,isExtendedAdmin:f,activeEndpoint:m,setShowSnackbar:x,setSnackbarMessage:S,setSnackbarError:b}=s.useContext(ye),{entityFilter:p,excludeDrafts:j,extendSearch:C,activeFilterCount:z,setKeepChanges:F}=s.useContext(Ce),[E,{loading:o}]=ne(nt),[w,{data:T}]=ut(it,{fetchPolicy:"no-cache"}),[d,{loading:M}]=ne(rt),i=s.useRef(!0);let D="";const c=s.useRef(void 0),[v,a]=s.useState([]),[n,g]=s.useState([]),[B,Y]=s.useState([]),[te,N]=s.useState(""),[t,A]=s.useState(null),q=!!t,[O,J]=s.useState([]),[_,R]=s.useState({show:!1,message:""}),h=s.useMemo(()=>
1{if(m)return m.settingsName??m.settings_name},[m]),I=s.useMemo(()=>{var W,H;if(!(T!=null&&T.getCustomerSettings)||!h)return!1;let u=[];try{u=JSON.parse(T.getCustomerSettings)}catch{return!1}if(!Array.isArray(u))return!1;const k=u.find(K=>String(K.settings_name)===String(h));if(!k)return!1;const G=(W=k==null?void 0:k.deploy_environment_variables)==null?void 0:W.ENABLE_ENTITY_CACHE,Q=(H=k==null?void 0:k.local_environment_variables)==null?void 0:H.ENABLE_ENTITY_CACHE;return!!(G??Q)},[T,h]),ue=u=>{u.forEach(k=>{clearTimeout(k)})};s.useEffect(()=>{h&&w({variables:{settingNames:[h]}})},[w,h]);const Se=()=>{d().then(()=>{x(!0),S("Entity cache cleared"),b(!1)}).catch(u=>{x(!0),S(u.message||"Failed to clear entity cache"),b(!0)})},Ee=u=>{A(u.currentTarget)},ve=()=>{A(null)};s.useEffect(()=>{const u=document.getElementById("conceptSearchInput");u&&u.dispatchEvent(new Event("input",{bubbles:!0}))},[m,r,j,C]),s.useEffect(()=>{_.show&&(c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{R({show:!1,message:""})},4e3))},[_]),s.useEffect(()=>{i.current=!1,F({title:!1,type:!1,gender:!1,shortDescription:!1,longDescription:!1,aliases:!1})},[]);const ke=e.jsx(le,{autoFocus:!0,autoComplete:"off",id:"conceptSearchInput",value:te,type:"text",label:e.jsxs("span",{children:[e.jsx(Ze,{sx:{mr:.5}}),"Search concepts"]}),InputLabelProps:{shrink:!0},variant:"outlined",size:"small",helperText:_.show&&e.jsx(Ve,{component:"span",severity:"error",sx:{position:"absolute"},children:_.message}),FormHelperTextProps:{sx:{position:"absolute",bottom:0,zIndex:3}},InputProps:{endAdornment:te?e.jsx(ce,{position:"end",children:e.jsx(X,{size:"small",edge:"end","aria-label":"Clear search",onClick:()=>{ue(O),N(""),a([]),g([]),Y([]),$("#conceptSearchInput")&&$("#conceptSearchInput").focus()},children:e.jsx(Ke,{})})}):null},onInput:u=>{ue(O),D=u.target.value,N(u.target.value),R({show:!1,message:""});const k=setTimeout(()=>{J([]),D?E({variables:{title:D,type:"all",draft:!j,extendSearch:C,size:200,superAdmin:r,extendedAdmin:f}}).then(G=>{var K,pe,he;let Q=[],W=[],H=[];(he=(pe=(K=G==null?void 0:G.data)==null?void 0:K.searchConcepts)==null?void 0:pe.result)==null||he.forEach(V=>{V.type.includes("category")?Q=[...Q,V]:V.type.includes("topic")?W=[...W,V]:H=[...H,V]}),a(Q),g(W),Y(H)}).catch(G=>{R({show:!0,message:G.message})}):(a([]),g([]),Y([]))},500);J([...O,k])},sx:{width:"33%",zIndex:1}});return e.jsxs(l,{children:[e.jsxs(P,{container:!0,sx:{backgroundColor:"rgba(255,255,255,0.9)",borderBottom:"1px solid rgba(0,0,0,0.125)",zIndex:1},children:[e.jsxs(P,{size:12,sx:{display:"flex",alignItems:"center",px:1,py:1.5,gap:1},children:[ke,e.jsx(y,{arrow:!0,title:"Open search options",enterDelay:500,children:e.jsx(X,{color:"primary","aria-label":"Open search options",onClick:Ee,children:e.jsx(de,{badgeContent:z,color:"success",slotProps:{badge:{style:{fontWeight:700}}},children:e.jsx(et,{})})})}),e.jsx(tt,{anchorEl:t,open:q,onClose:ve,MenuListProps:{"aria-labelledby":"basic-button"},children:e.jsx(ht,{isSuperAdmin:r})}),e.jsxs(l,{sx:{display:"flex",justifyContent:"flex-end",flex:1,gap:1,alignItems:"center"},children:[I&&e.jsx(y,{title:"Clear entity cache",arrow:!0,children:e.jsx("span",{children:e.jsxs(L,{size:"small",variant:"outlined",onClick:Se,disabled:M,sx:{gap:.5},children:[e.jsx(st,{}),"Clear entity cache"]})})}),e.jsx(ot,{})]})]}),e.jsx(P,{})]}),e.jsx(at,{sx:{visibility:o?"visible":"hidden"}}),e.jsxs(P,{container:!0,sx:{display:"flex",width:"100%",flex:1,py:1,px:2},children:[e.jsx(P,{size:{xs:12,md:4},children:e.jsx(re,{list:v,listLabel:"Categories",listType:"category"})}),e.jsx(P,{size:{xs:12,md:4},children:e.jsx(re,{list:n,listLabel:"Topics",listType:"topic"})}),e.jsx(P,{size:{xs:12,md:4},children:e.jsx(re,{list:p==="all"?B:B.filter(u=>u.type===p),listLabel:"Entities",listType:"entity"})})]})]})};export{It as default}; 2//# sourceMappingURL=ConceptManagement-BA0J8vcD.js.map
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.