PageSourceSearch

https://meets-service.vercel.app/_next/static/chunks/pages/dashboard/magazzino/prodotti-f004276d33ac5004.js

js meets-service.vercel.app collected 2026-10-03 07:20:39 UTC 17,263 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7501],{14230:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/magazzino/prodotti",function(){return a(77592)}])},43800:function(e,t,a){"use strict";var i=a(90948),n=a(87357);let r=(0,i.ZP)(n.Z)(e=>{let{theme:t}=e;return{"&.dropzone, & .dropzone":{minHeight:300,display:"flex",flexWrap:"wrap",cursor:"pointer",position:"relative",alignItems:"center",justifyContent:"center",padding:t.spacing(4),borderRadius:t.shape.borderRadius,border:"2px dashed ".concat(t.palette.divider),[t.breakpoints.down("xs")]:{textAlign:"center"},"&:focus":{outline:"none"},"& + .MuiList-root":{padding:0,marginTop:t.spacing(6.25),"& .MuiListItem-root":{display:"flex",justifyContent:"space-between",borderRadius:t.shape.borderRadius,padding:t.spacing(2.5,2.4,2.5,6),border:"1px solid ".concat("light"===t.palette.mode?"rgba(93, 89, 98, 0.14)":"rgba(247, 244, 254, 0.14)"),"& .file-details":{display:"flex",alignItems:"center"},"& .file-preview":{display:"flex",marginRight:t.spacing(3.75),"& svg":{fontSize:"2rem"}},"& img":{width:38,height:38,padding:t.spacing(.75),borderRadius:t.shape.borderRadius,border:"1px solid ".concat("light"===t.palette.mode?"rgba(93, 89, 98, 0.14)":"rgba(247, 244, 254, 0.14)")},"& .file-name":{fontWeight:600},"& + .MuiListItem-root":{marginTop:t.spacing(3.5)}},"& + .buttons":{display:"flex",justifyContent:"flex-end",marginTop:t.spacing(6.25),"& > :first-of-type":{marginRight:t.spacing(3.5)}}},"& img.single-file-image":{objectFit:"cover",position:"absolute",width:"calc(100% - 1rem)",height:"calc(100% - 1rem)",borderRadius:t.shape.borderRadius}}}});t.Z=r},77592:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return J},default:function(){return Y}});var i=a(85893),n=a(67294),r=a(41664),o=a.n(r),l=a(90948),s=a(87357),c=a(66242),d=a(38333),u=a(86886),m=a(67720),p=a(18972),h=a(93946),x=a(15861),g=a(78445),f=a(44267),j=a(42176),Z=a(19001),v=a(50130),b=a(44153),y=a(63730),_=a(9473),C=a(60155),P=a(50613),z=a(56456),w=a(97568),S=a(9405),k=a(39543),W=a(61627),N=a(11057),q=a(50657),I=a(37645),R=a(6514),T=a(31425),F=a(58951),O=a(87109),E=a(86501),M=a(47735),D=a(43800),A=a(93955),H=a(25569);let L=e=>{var t;let{prodotto:a,fornitori:r,aliquote:o,setProdottiListType:l,categories:s}=e,[c,d]=(0,n.useState)(!1),[h,x]=(0,n.useState)([]),[g,f]=(0,n.useState)([]),[j,Z]=(0,n.useState)({...a}),v=(e,t)=>
1{if("aliquota_iva"===e){let e=o.find(e=>e._id===t);Z({...j,aliquota_iva:e})}else Z({...j,[e]:t})},b=(e,t)=>{let a=[{name:"product_code",to:e.product_code},{name:"aliquota_iva",to:e.aliquota_iva._id},{name:"sconto",to:e.sconto},{name:"unite_of_measure_acquisti",to:e.unite_of_measure_acquisti},{name:"unite_of_measure_vendite",to:e.unite_of_measure_vendite},{name:"fornitore",to:e.fornitore},{name:"price",to:e.price},{name:"production_cost",to:e.production_cost},{name:"name",to:e.name},{name:"category",to:e.categoriaId},{name:"type",to:e.type},{name:"active",to:e.active},{name:"discount_price",to:j.discount_price},{name:"bar_code_ean13",to:j.bar_code_ean13},{name:"description",to:j.description},{name:"image",to:t}];return{id:e.id,fields:a}},y=async()=>{try{let e=a.image,t=g[0];if(t){let i=a.name.replaceAll(" ","-")+"."+t.name.split(".").pop(),n=encodeURIComponent(i),r=encodeURIComponent(t.type),{url:o,fields:l}=await (0,A.H)({fileName:n,fileType:r,initialEndpoint:"images/products/"}),s=new FormData;for(let[e,a]of Object.entries({...l,file:t}))"string"==typeof a?s.append(e,a):a instanceof Blob&&s.append(e,a,i);let c=await fetch(o,{method:"POST",body:s});c.ok&&(e=i)}let i=b(j,e);await (0,M.q)(i).then(async e=>{C(),E.ZP.success("Modifica effettuata con successo"),l()})}catch(e){E.ZP.error("La modifica non \xe8 andata a buon fine. Controlla che i campi siano compilati correttamente e che non esiste gi\xe0 un prodotto con il codice prodotto inserito.")}},_=()=>d(!0),C=()=>{Z(a),d(!1),f([])},P=async e=>{f(e)};return(0,n.useEffect)(()=>{a&&a.image&&c&&g.length<1&&fetch(a.image+"?"+new Date().getTime(),{method:"GET",headers:{"Cache-Control":"no-cache"}}).then(e=>e.blob()).then(e=>{let t=new File([e],e.name,{type:e.type||"image/jpeg"});f([t,...g])})},[a,c]),(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(N.Z,{onClick:_,children:"Modifica"}),(0,i.jsxs)(q.Z,{open:c,onClose:C,"aria-labelledby":"form-dialog-title",children:[(0,i.jsxs)(I.Z,{id:"form-dialog-title",children:["Modifica Prodotto ",null==a?void 0:a.name," "]}),(0,i.jsxs)(R.Z,{children:[(0,i.jsx)(F.Z,{sx:{mb:3},children:"Modifica le informazioni del prodotto "}),(0,i.jsxs)(u.ZP,{container:!0,spacing:5,children:[(0,i.jsx)(n.Fragment,{children:(0,i.jsx)(u.ZP,{item:!0,xs:12,sm:12,children:(0,i.jsx)(D.Z,{children:(0,i.jsx)(u.ZP,{container:!0,spacing:6,className:"match-height",children:(0,i.jsx)(u.ZP,{item:!0,xs:12,children:(0,i.jsx)(H.Z,{handleUpload:P,files:g})})})})})},"drop-zone-prodotto-image"),(0,i.jsx)(u.ZP,{item:!0,xs:12,sm:6,children:(0,i.jsx)(z.Z,{fullWidth:!0,label:"Codice prodotto",value:j.product_code,placeholder:"PROD0",onChange:e=>v("product_code",e.target.value)})}),(0,i.jsx)(u.ZP,{item:!0,xs:12,sm:6,children:(0,i.jsx)(z.Z,{fullWidth:!0,label:"Nome prodotto",value:j.name,placeholder:"Nome del prodotto",onChange:e=>v("name",e.target.value)})}),(0,i.jsx)(u.ZP,{item:!0,xs:12,sm:6,children:(0,i.jsx)(z.Z,{select:!0,fullWidth:!0,label:"Categoria",value:j.categoriaId,onChange:e=>v("category",e.target.value),children:s.map(e=>(0,i.jsx)(p.Z,{value:e.categoriaId.toString(),children:e.name},e.categoriaId.toString()))})}),(0,i.jsx)(u.ZP,{item:!0,xs:12,sm:6,children:(0,i.jsxs)(z.Z,{select:!0,fullWidth:!0,label:"Tipologia prodotto",value:j.type,onChange:e=>v("type",e.target.value),children:[(0,i.jsx)(p.Z,{value:"Merce",children:"Merce"}),(0,i.jsx)(p.Z,{value:"Servizio",children:"Servizio"}),(0,i.jsx)(p.Z,{value:"Composizione",children:"Composizione"})]})}),(0,i.jsx)(u.ZP,{item:!0,xs:12,sm:6,children:(0,i.jsxs)(z.Z,{select:!0,fullWidth:!0,label:"Unita di misura vendite",value:j.unite_of_measure_vendite,onChange:e=>v("unite_of_measure_vendite",e.target.value),children:[(0,i.jsx)(p.Z,{value:"KG - Chilogrammo",children:"KG - Chilogrammo"}),(0,i.jsx)(p.Z,{value:"H - Ora",children:"H - Ora"}),(0,i.jsx)(p.Z,{value:"PZ - Pezzo",children:"PZ- Prezzo"})]})}),(0,i.jsx)(u.ZP,{item:!0,xs:12,sm:6,children:(0,i.jsxs)(z.Z,{select:!0,fullWidth:!0,label:"Unita di misura acquisti",value:j.unite_of_measure_acquisti,onChange:e=>v("unite_of_measure_acquisti",e.target.value),children:[(0,i.jsx)(p.Z,{value:"KG - Chilogrammo",children:"KG - Chilogrammo"}),(0,i.jsx)(p.Z,{value:"H - Ora",children:"H - Ora"}),(0,i.jsx)(p.Z,{value:"PZ - Pezzo",children:"PZ- Prezzo"})]})})]}),(0,i.jsx)(m.Z,{sx:{my:5}}),(0,i.jsxs)(u.ZP,{container:!0,spacing:5,children:[(0,i.jsx)(u.ZP,{item:!0,xs:12,sm:6,children:(0,i.jsx)(z.Z,{select:!0,fullWidth:!0,label:"Aliquota IVA",value:"object"==typeof j.aliquota_iva&&"_id"in j.aliquota_iva?null===(t=j.aliquota_iva)||void 0===t?void 0:t._id:" ",onCh
1ange:e=>v("aliquota_iva",e.target.value),children:null==o?void 0:o.map(e=>(0,i.jsx)(p.Z,{value:e._id,children:e.name},e._id))})}),(0,i.jsx)(u.ZP,{item:!0,xs:12,sm:4,children:(0,i.jsx)(z.Z,{value:null==j?void 0:j.sconto,type:"number",label:"Sconto",placeholder:"",onChange:e=>v("sconto",e.target.value)})}),(0,i.jsx)(u.ZP,{item:!0,xs:12,sm:4,children:(0,i.jsx)(z.Z,{type:"number",label:"Prezzo",onChange:e=>v("price",e.target.value),placeholder:"",InputProps:{inputProps:{step:.01},startAdornment:(0,i.jsx)(O.Z,{position:"start",children:"€"})},value:j.price})}),(0,i.jsx)(u.ZP,{item:!0,xs:12,sm:4,children:(0,i.jsx)(z.Z,{type:"number",label:"Costo di produzione",placeholder:"",onChange:e=>v("production_cost",e.target.value),InputProps:{inputProps:{step:.01},startAdornment:(0,i.jsx)(O.Z,{position:"start",children:"€"})},value:j.production_cost})})]})]}),(0,i.jsxs)(T.Z,{className:"dialog-actions-dense",children:[(0,i.jsx)(N.Z,{onClick:C,children:"Annulla"}),(0,i.jsx)(N.Z,{onClick:y,children:"Salva"})]})]})]})};var U=a(92678),G=a(81343),K=a(71862);let V=()=>(0,i.jsx)(j.D,{sx:{my:"10px !important",p:"0px ",gap:"15px"},children:(0,i.jsx)(Z.n,{})}),Q=(0,l.ZP)(o())(e=>{let{theme:t}=e;return{textDecoration:"none",fontSize:t.typography.body1.fontSize,color:"".concat(t.palette.primary.main," !important")}}),B=e=>e.image?(0,i.jsx)(C.Z,{variant:"square",src:e.image+"?"+new Date().getTime(),sx:{mr:3,width:"40",height:"40",borderRadius:"50%"}}):(0,i.jsx)(C.Z,{variant:"square",skin:"light",sx:{mr:2.5,width:40,height:40,fontWeight:500,fontSize:e=>e.typography.body1.fontSize}}),X=e=>{let{}=e,t=(0,_.I0)(),a=(0,_.v9)(e=>e.products),[r,o]=(0,n.useState)(""),[l,j]=(0,n.useState)(""),[Z,C]=(0,n.useState)(""),[N,q]=(0,n.useState)(""),[I,R]=(0,n.useState)(""),[T,F]=(0,n.useState)(""),[O,E]=(0,n.useState)(""),[M,D]=(0,n.useState)(!1),[A,H]=(0,n.useState)({page:0,pageSize:10}
1),[X,J]=(0,n.useState)([]),[Y,$]=(0,n.useState)([]),[ee,et]=(0,n.useState)([]),[ea,ei]=(0,n.useState)([]),en=e=>{let{id:t,prodotto:a,aliquote:o,fornitori:s}=e,c=(0,_.I0)(),[u,m]=(0,n.useState)(null),x=e=>{m(e.currentTarget)},g=()=>{m(null)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.Z,{size:"small",onClick:x,children:(0,i.jsx)(y.Z,{icon:"tabler:dots-vertical"})}),(0,i.jsx)(d.Z,{keepMounted:!0,anchorEl:u,open:!!u,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:{minWidth:"8rem"}},children:(0,i.jsxs)(p.Z,{onClick:g,sx:{"& svg":{mr:2}},children:[(0,i.jsx)(y.Z,{icon:"tabler:edit",fontSize:20}),(0,i.jsx)(L,{setProdottiListType:()=>c((0,w.rQ)({category:N,status:Z,q:r,aliquota:O,fornitore:I,cantiere:T,price:l})),prodotto:a,aliquote:o,fornitori:s,categories:ee})]})})]})},er=(0,n.useCallback)(e=>{o(e)},[]),eo=(0,n.useCallback)(e=>{j(e)},[]),el=(0,n.useCallback)(e=>{q(e.target.value)},[]),es=(0,n.useCallback)(e=>{C(e.target.value)},[]),ec=(0,n.useCallback)(e=>{R(e.target.value)},[]),ed=(0,n.useCallback)(e=>{F(e.target.value)},[]),eu=()=>D(!M);return(0,n.useEffect)(()=>{t((0,w.rQ)({category:N,status:Z,q:r,aliquota:O,fornitore:I,cantiere:T,price:l}))},[t,N,Z,r,O,T,l,I]),(0,n.useEffect)(()=>{(async function(){try{let e=await (0,W.I)(),t=await (0,K.u)(),a=await (0,G.C)(),i=await (0,S.p)();J(e),$(t),et(a),ei(i)}catch(e){console.error(e)}})()},[]),(0,i.jsxs)(u.ZP,{container:!0,spacing:6.5,children:[(0,i.jsx)(u.ZP,{item:!0,xs:12,children:(0,i.jsx)(U.Z,{data:a.data})}),(0,i.jsx)(u.ZP,{item:!0,xs:12,children:(0,i.jsxs)(c.Z,{children:[(0,i.jsx)(g.Z,{title:"Filtri di ricerca"}),(0,i.jsx)(f.Z,{children:(0,i.jsxs)(u.ZP,{container:!0,spacing:6,children:[(0,i.jsx)(u.ZP,{item:!0,sm:3,xs:12,children:(0,i.jsxs)(z.Z,{select:!0,fullWidth:!0,label:"Seleziona Fornitore",defaultValue:"Seleziona Fornitore",SelectProps:{value:I,displayEmpty:!0,onChange:e=>ec(e)},children:[(0,i.jsx)(p.Z,{value:"",children:"Nessuna selezione"}),X.map(e=>(0,i.jsx)(p.Z,{value:e.name,children:e.name},"fornitore-"+e._id))]})}),(0,i.jsx)(u.ZP,{item:!0,sm:3,xs:12,children:(0,i.jsxs)(z.Z,{select:!0,fullWidth:!0,label:"Seleziona Cliente",defaultValue:"Seleziona Cliente",SelectProps:{value:T,displayEmpty:!0,onChange:e=>ed(e)},children:[(0,i.jsx)(p.Z,{value:"",children:"Nessuna selezione"}),Y.map(e=>(0,i.jsx)(p.Z,{value:e.name,children:e.name},"cantiere-"+e._id))]})}),(0,i.jsx)(u.ZP,{item:!0,sm:3,xs:12,children:(0,i.jsxs)(z.Z,{select:!0,fullWidth:!0,label:"Categoria",defaultValue:"Seleziona Categoria",SelectProps:{value:N,displayEmpty:!0,onChange:e=>el(e)},children:[(0,i.jsx)(p.Z,{value:"",children:"Nessuna selezione"}),ee.map(e=>(0,i.jsx)(p.Z,{value:e.name,children:e.name},e._id))]})}),(0,i.jsx)(u.ZP,{item:!0,sm:3,xs:12,children:(0,i.jsxs)(z.Z,{select:!0,fullWidth:!0,label:"Stato",defaultValue:"Seleziona Stato",SelectProps:{value:Z,displayEmpty:!0,onChange:e=>es(e)},children:[(0,i.jsx)(p.Z,{value:"",children:"Nessuna selezione"}),(0,i.jsx)(p.Z,{value:"active",children:"Attivo"}),(0,i.jsx)(p.Z,{value:"notActive",children:"Non attivo"})]})})]})}),(0,i.jsx)(m.Z,{sx:{m:"0 !important"}}),(0,i.jsx)(k.Z,{value:r,price:l,handleFilter:er,handleFilterPrice:eo,toggle:eu}),(0,i.jsx)(v._,{localeText:b.K.components.MuiDataGrid.defaultProps.localeText,autoHeight:!0,rowHeight:62,rows:a.data,columns:[{field:"prodotto_id",maxWidth:60,headerName:"ID",renderCell:e=>{let{row:t}=e;return(0,i.jsx)(x.Z,{component:Q,target:"_blank",href:"/dashboard/magazzino/prodotti/".concat(t.id),children:"".concat(t.prodotto_id)})}},{minWidth:200,field:"name",headerName:"Prodotto",renderCell:e=>{let{row:t}=e;return(0,i.jsxs)(i.Fragment,{children:[" ",(0,i.jsxs)(s.Z,{sx:{display:"flex",alignItems:"center"},children:[B(t),(0,i.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,i.jsx)(x.Z,{component:Q,target:"_blank",href:"/dashboard/magazzino/prodotti/"+t.id,sx:{fontWeight:500,textDecoration:"none",color:"text.secondary","&:hover":{color:"primary.main"}},children:t.name}),(0,i.jsx)(x.Z,{noWrap:!0,variant:"caption",children:t.product_code})]})]})]})}},{field:"category",minWidth:150,headerName:"Categoria",renderCell:e=>{var t;let{row:a}=e;return(0,i.jsxs)(s.Z,{sx:{display:"flex",alignItems:"center"},children:[void 0!==a.category&&(0,i.jsx)("img",{style:{marginRight:"10px"},width:50,height:50,alt:"image-uploaded",className:"single-file-image",src:"object"==typeof a.category?null===(t=a.category)||void 0===t?void 0:t.image:"product.png"}),(0,i.jsx)(P.Z,{rounded:!0,skin:"light",size:"small",label:"object"==typeof a.category?a.category.name:"",color:"object"==typeof a.category?a.category.color:"secondary",sx:{textTransform:"capitalize"}})]})}},{minWidth:50,field:"price",headerName:"Prezzo",renderCell:e=>{let{row:t}=e,{price:a}=t;return(0,i.jsx)(x.Z,{noWrap:!0,sx:{color:"text.secondary"},children:a})}},{minWidth:80,field:"quantity",headerName:"Qt.",renderCell:e=>{let{row:t}=e,{quantity:a}=t;return(0,i.jsx)(x.Z,{noWrap:!0,sx:{color:"text.secondary"},children:a})}},{flex:.01,minWidth:200,field:"fornitore",headerName:"Fornitore",renderCell:e=>{let{row:t}=e,{fornitore:a}=t;if(a&&"object"==typeof a&&"name"in a)return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(x.Z,{target:"_blank",sx:{color:"text.secondary"},component:Q,href:"/dashboard/fornitori/"+a._id,noWrap:!0,children:a.name})})}},{flex:.01,minWidth:200,field:"cantiere",headerName:"Cliente",renderCell:e=>{let{row:t}=e,{cantiere:a}=t;if(a&&"object"==typeof a&&"name"in a)return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(x.Z,{target:"_blank",sx:{color:"text.secondary"},component:Q,href:"/dashboard/clienti/"+a._id,noWrap:!0,children:a.name})})}},{flex:.01,minWidth:100,field:"active",headerName:"STOCK",renderCell:e=>{let{row:t}=e,{active:a}=t;return(0,i.jsxs)(i.Fragment,{children:[" ",!0===a?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(P.Z,{rounded:!0,skin:"dark",size:"small",label:a,color:"success",sx:{textTransform:"capitalize"}})}):(0,i.jsx)(P.Z,{rounded:!0,skin:"dark",size:"small",label:a,color:"warning",sx:{textTransform:"capitalize"}})]})}},{flex:.01,minWidth:50,sortable:!1,field:"actions",headerName:"",renderCell:e=>{let{row:t}=e;return(0,i.jsx)(en,{id:null==t?void 0:t.id.toString(),prodotto:t,fornitori:X,aliquote:ea})}}],disableRowSelectionOnClick:!0,pageSizeOptions:[10,25,50],paginationModel:A,onPaginationModelChange:H,getRowId:e=>e.id,getRowHeight:()=>"auto",slots:{toolbar:V},slotProps:{baseButton:{size:"medium",variant:"outlined"}}}),(0,i.jsx)(m.Z,{sx:{m:"0 !important"}})]})})]})};X.acl={action:"read",subject:"magazzino"};var J=!0,Y=X},9405:function(e,t,a){"use strict";a.d(t,{p:function(){return n}});var i=a(6154);async function n(){let e=await i.Z.get("https://www.portale-meatsservicesrl.com/api/aliquote",{withCredentials:!0}),t=await e.data;return t}},71862:function(e,t,a){"use strict";a.d(t,{u:function(){return n}});var i=a(6154);async function n(){let e=await i.Z.get("https://www.portale-meatsservicesrl.com/api/cantieri",{withCredentials:!0}),t=await e.data;return t}},93955:function(e,t,a){"use strict";a.d(t,{H:function(){return n}});var i=a(6154);async function n(e){let t=await i.Z.post("https://www.portale-meatsservicesrl.com/api/images/generatePresignedPost",e,{withCredentials:!0}),a=await t.data;return a}},25569:function(e,t,a){"use strict";var i=a(85893),n=a(87357),r=a(15861),o=a(63730),l=a(8523);let s=e=>{let{handleUpload:t,files:a}=e,{getRootProps:s,getInputProps:c}=(0,l.uI)({multiple:!1,accept:{"image/*":[".png",".jpg",".jpeg",".gif",".pdf",".xlsx",".xlsm",".xls"]},onDrop:e=>{t(e.map(e=>Object.assign(e)))}}),d=a.map(e=>(0,i.jsx)("img",{alt:e.name,className:"single-file-image",src:URL.createObjectURL(e)},e.name));return(0,i.jsxs)(n.Z,{...s({className:"dropzone"}),sx:(a.length,{}),children:[(0,i.jsx)("input",{...c()}),a.length?d:(0,i.jsxs)(n.Z,{sx:{display:"flex",textAlign:"center",alignItems:"center",flexDirection:"column"},children:[(0,i.jsx)(n.Z,{sx:{mb:8.75,width:48,height:48,display:"flex",borderRadius:1,alignItems:"center",justifyContent:"center",backgroundColor:e=>"rgba(".concat(e.palette.customColors.main,", 0.08)")},children:(0,i.jsx)(o.Z,{icon:"tabler:upload",fontSize:"1.75rem"})}),(0,i.jsx)(r.Z,{variant:"h4",sx:{mb:2.5},children:"Trascina qui il file o clicca per caricarlo."})]})]})};t.Z=s}},function(e){e.O(0,[9230,130,6457,8523,5499,6442,9774,2888,179],function(){return e(e.s=14230)}),_N_E=e.O()}]);

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.