1(globalThis.webpackChunkPlesk||=[]).push([["components/pages/SummaryReportSchedulesPage"],{1609(e,t,n){"use strict";n.r(t),n.d(t,{SORT_ASC:()=>l,SORT_DESC:()=>u,default:()=>S});var a=n(341),i=n(782),o=n.n(i),r=n(342);const s=n(95).Locale.getSection("components.list"),l="ASC",u="DESC",d="all",c={set(e,t){localStorage.setItem(e,JSON.stringify(t))},get(e){const t=localStorage.getItem(e);return JSON.parse(t)}},m=e=>`list-sort_${e}`,p=e=>`list-page_${e}`,f=({id:e,data:t,columns:n,itemsPerPage:i=25,itemsPerPageOptions:o=[10,25,100,d],sortColumn:u,sortDirection:f=l,searchField:S,locale:y={},emptyView:h,emptyFilteredView:v,toolbar:g,selection:k=[],onSelectionChange:b,searchBarInputProps:R,rowKey:x="key",useStorage:j=!0,...P})=>{const{sortColumn:w,sortDirection:T,setSortState:D}=((e,{sortColumn:t,sortDirection:n})=>{const[{sortColumn:i,sortDirection:o},r]=(0,a.useState)({sortColumn:c.get(m(e))?.sortColumn??t,sortDirection:c.get(m(e))?.sortDirection??n});return{sortColumn:i,sortDirection:o,setSortState:t=>{r(e=>({...e,...t})),c.set(m(e),{...c.get(m(e)),...t})}}})(e,{sortColumn:u??n.find(({sortable:e})=>e)?.key,sortDirection:f}),{page:N,itemsPerPage:E,searchPattern:C,setPageState:F}=((e,{itemsPerPage:t},n=!0)=>{const i=n?{page:c.get(p(e))?.page,itemsPerPage:c.get(p(e))?.itemsPerPage,searchPattern:c.get(p(e))?.searchPattern}:{},[{page:o,itemsPerPage:r,searchPattern:s},l]=(0,a.useState)({page:i.page??1,itemsPerPage:i.itemsPerPage??t,searchPattern:i.searchPattern??""});return{page:o,itemsPerPage:r,searchPattern:s,setPageState:t=>{l(e=>({...e,...t})),n&&c.set(p(e),{...c.get(p(e)),...t})}}})(e,{itemsPerPage:o.includes(i)?i:o[0]},j),I=(0,a.useMemo)(()=>C?v??(0,a.jsx)(r.ListEmptyView,{reason:"filtered","data-testid":"list-empty-view-filtered"}):h??(0,a.jsx)(r.ListEmptyView,{}),[C,h,v]),V=(0,a.useMemo)(()=>n.map(({sortDataField:e,...t})=>t),[n]),O=(0,a.useMemo)(()=>S&&C?t.filter(e=>(Array.isArray(S)?S:[S]).some(t=>e[t]&&String(e[t]).toLowerCase().includes(C.toLowerCase()))):t,[t,C,S]),L=(0,a.useMemo)(()=>{if(!w)return O;const e=n.find(({key:e})=>e===w)?.sortDataField??w,t=n.find(({key:e})=>e===w)?.sort??((t,n)=>t[e]<n[e]?-1:t[e]>n[e]?1:0);return[...O].sort((e,n)=>l===T?t(e,n):t(n,e))},[O,w,T,n]),A=(0,a.useMemo)(()=>{if(E===d)return L;const e=E*(N-1),t=e+E;return L.slice(e,t)},[N,L,E]),M=(0,a.useCallback)(e=>{F({searchPattern:e}),e!==C&&F({page:1})},[C]),q=(0,a.useCallback)(e=>{F({itemsPerPage:e});(e===d?1:Math.ceil(O.length/e))<N&&F({page:1})},[O.length,N]);return(0,a.useEffect)(()=>{if("function"==typeof b&&k.length){const e=O.map(e=>{return t=e,"function"==typeof(n=x)?n(t):t[n];var t,n}).filter(e=>k.includes(e));b(e)}},[O]),(0,a.jsx)(r.List,{pagination:(0,a.jsx)(r.Pagination,{current:N,total:E===d?1:Math.ceil(O.length/E),onSelect:e=>F({page:e}),itemsPerPage:E,itemsPerPageOptions:o,onItemsPerPageChange:q}),toolbar:(g||S)&&(0,a.jsxs)(r.Toolbar,{children:[g,S&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.ToolbarExpander,{}),(0,a.jsx)(r.ToolbarGroup,{title:"",children:(0,a.jsx)(r.SearchBar,{inputProps:{placeholder:s.lmsg("searchPlaceholder"),"data-testid":"list-searchbar",value:C,...R??{}},onTyping:M})})]})]}),totalRows:O.length,sortColumn:w,sortDirection:T,onSortChange:D,columns:V,data:A,filtered:!!C,locale:{totalRows:({totalRows:e})=>s.formatMessage("recordsTotal",{total:e}),...y},emptyView:I,onSelectionChange:b,selection:k,rowKey:x,...P})};f.propTypes={id:o().string.isRequired,data:o().array.isRequired,columns:o().array.isRequired,itemsPerPage:o().number,itemsPerPageOptions:o().array,sortColumn:o().string,sortDirection:o().string,searchField:o().oneOfType([o().string,o().arrayOf(o().string.isRequired)]),locale:o().object,emptyView:o().node,emptyFilteredView:o().node,toolbar:o().node,onSelectionChange:o().func,selection:o().array,rowKey:o().oneOfType([o().string,o().func]),searchBarInputProps:o().object,useStorage:o().bool};const S=f},1604(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>r});var a=n(341),i=n(772),o=n(342);const r=({onClose:e,isOpen:t=!0,closeOnFormSuccess:n=!0,closeUrl:r="..",form:s,...l})=>{const u=(0,i.useNavigate)(),[d,c]=(0,a.useState)(t),m=(0,a.useRef)(null),p=(0,a.useCallback)((...t)=>{const n=e??(()=>u(r,{preventScrollReset:!0}));c(!1),m.current=setTimeout(()=>{n(...t),m.current=null},300)},[r,u,e]);(0,a.useEffect)(()=>()=>{m.current&&clearTimeout(m.current)},[]),(0,a.useEffect)(()=>{t?m.current&&clearTimeout(m.current):c(t)},[t]);const f=(0,a.useMemo)(()=>
1{if(s&&n){if((0,a.isValidElement)(s))return(0,a.cloneElement)(s,{onSuccess:(...e)=>{s.props.onSuccess?.(...e),p()}});if("object"==typeof s)return{...s,onSuccess:(...e)=>{s.onSuccess?.(...e),p()}}}return s},[n,p,s]);return(0,a.jsx)(o.Drawer,{...l,form:f,onClose:p,isOpen:d})}},2984(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>c});var a=n(782),i=n(342),o=n(95),r=n(341),s=n(798);const l=o.Locale.getTranslate("components.forms.SummaryReport.Schedule"),u=o.Locale.getSection("components.forms.SummaryReport.Schedule"),d=({viewer:{client:{email:e}},summaryReportSchedule:{__typename:t,period:n,email:a,...o}={},...d})=>{const[c,m]=(0,r.useState)({...o,enable:!!n,period:n??"day",email:a??e}),[p,f]=(0,r.useState)({}),S=(0,r.useCallback)((e,t)=>{m(n=>(0,i.setIn)(n,e,t))},[]);return(0,r.jsxs)(s.default,{onFieldChange:S,onSubmit:({enable:t,period:n,email:a,...i})=>{if(f({}),a)return{period:t?n:null,email:a===e?null:a,...i};f({email:{isEmpty:(0,r.jsx)(l,{content:"isEmpty"})}})},values:c,applyButton:!1,errors:p,...d,children:[(0,r.jsx)(i.FormFieldCheckbox,{name:"enable",label:(0,r.jsx)(l,{content:"enable"})}),(0,i.getIn)(c,"enable")&&(0,r.jsxs)(i.FormFieldSelect,{name:"period",label:(0,r.jsx)(l,{content:"period"}),children:[(0,r.jsx)("option",{value:"day",children:u.lmsg("daily")}),(0,r.jsx)("option",{value:"week",children:u.lmsg("weekly")}),(0,r.jsx)("option",{value:"month",children:u.lmsg("monthly")})]}),(0,r.jsx)(i.FormFieldText,{name:"email",label:(0,r.jsx)(l,{content:"email"}),required:!0,size:"lg"})]})};d.propTypes={viewer:a.PropTypes.object.isRequired,summaryReportSchedule:a.PropTypes.object};const c=d},2981(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>h});var a=n(782),i=n(628),o=n(342),r=n(95),s=n(1609),l=n(341),u=n(797),d=n(897),c=n(718);const m=r.Locale.getTranslate("admin.components.lists.summaryreportschedules"),p=r.Locale.getSection("admin.components.lists.summaryreportschedules"),f=r.Locale.getTranslate("components.buttons"),S={day:86400,week:604800,month:16934400},y=({schedules:e,clientEmail:t,onRemove:n})=>{const a=(0,l.useMemo)(()=>e.map(({period:e,lastSentDate:n,email:a,...i})=>({period:p.lmsg(e||"disabled"),periodInt:S[e]??Number.MAX_SAFE_INTEGER,lastSentDate:n??"â",email:a??t,...i})),[e,t]),[r,y]=(0,l.useState)([]),[h,v]=(0,l.useState)([]),g=(0,l.useMemo)(()=>a.filter(({id:e})=>r.includes(e)),[a,r]);return(0,l.jsx)(s.default,{id:"summary-report-schedules",toolbar:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.ToolbarGroup,{title:p.lmsg("groupAdd"),children:(0,l.jsx)(o.Button,{id:"addSchedule",intent:"primary",icon:"plus",tooltip:p.lmsg("buttonAddHint"),tooltipAsLabel:!0,component:u.default,to:"add"})}),(0,l.jsx)(o.ToolbarGroup,{title:p.lmsg("groupRemove"),children:(0,l.jsx)(o.ListOperation,{critical:!0,noSelectionText:(0,l.jsx)(m,{content:"removeEmptySelection"}),confirmationText:p.formatMessage("removeConfirmation",{count:g.length}),actionButtonText:(0,l.jsx)(f,{content:"yesRemove"}),cancelButtonText:(0,l.jsx)(f,{content:"cancel"}),children:(0,l.jsx)(o.Button,{"data-id":"remove",onClick:async()=>{v(r);try{const{data:{deleteSummaryReportSchedule:{ids:e}}}=await n({variables:{input:{ids:r}}});e.length>0&&(0,c.addToast)({intent:"success",message:(0,l.jsx)(m,{content:"removeSuccess"})})}catch(e){(i.CombinedGraphQLErrors.is(e)?e.errors:[]).forEach(({message:e,debugMessage:t})=>{(0,c.addToast)({intent:"danger",message:t||e})})}finally{y([]),v([])}},tooltip:(0,l.jsx)(m,{content:"buttonRemoveHint"}),children:(0,l.jsx)(m,{content:"buttonRemove"})})})})]}),columns:[{key:"status",title:(0,l.jsx)(m,{content:"status"}),sortable:!0,sortDataField:"isEnabled",width:"1%",render:({isEnabled:e})=>(0,l.jsx)(o.Tooltip,{title:(0,l.jsx)(m,{content:e?"on":"off"}),children:(0,l.jsx)(o.Status,{intent:e?"success":"inactive"})})},{key:"period",title:(0,l.jsx)(m,{content:"period"}),type:"title",sortable:!0,sortDataField:"periodInt",render:({period:e,id:t})=>(0,l.jsx)(u.default,{to:`${(0,d.getId)(t)}/edit`,children:e})},{key:"lastSentDate",title:(0,l.jsx)(m,{content:"lastSentDate"}),sortable:!0},{key:"email",title:(0,l.jsx)(m,{content:"email"}),sortable:!0}],data:a,rowKey:"id",sortColumn:"period",searchField:"period",emptyView:(0,l.jsx)(o.ListEmptyView,{actions:(0,l.jsx)(o.Button,{id:"addSchedule",intent:"primary",tooltip:(0,l.jsx)(m,{content:"buttonAddHint"}),component:u.default,to:"add",children:(0,l.jsx)(m,{content:"buttonAdd"})})}),selection:r,onSelectionChange:e=>y(e),loadingRows:h})};y.propTypes={schedules:a.PropTypes.arrayOf(a.PropTypes.object).isRequired,clientEmail:a.PropTypes.string.isRequired,onRemove:a.PropTypes.func.isRequired};const h=y},2983(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>h});var a=n(95),i=n(1604),o=n(2984),r=n(811),s=n(718),l=n(782),u=n.n(l),d=n(2985),c=n.n(d),m=n(1357),p=n.n(m),f=n(341);const S=a.Locale.getTranslate("components.pages.SummaryReport.Schedule.Add"),y=({summaryReportLayout:{name:e,id:t},...n})=>{const[a]=(0,r.useMutation)(c(),{refetchQueries:[p()],onCompleted(e,{variables:{input:{name:t}}}){(0,s.addToast)({intent:"success",message:(0,f.jsx)(S,{content:"success",params:{name:(0,f.jsx)("b",{children:t})}})})},awaitRefetchQueries:!0});return(0,f.jsx)(i.default,{isOpen:!0,"data-type":"summary-report-schedule-add-drawer",title:(0,f.jsx)(S,{content:"title",params:{name:e}}),size:"sm",form:(0,f.jsx)(o.default,{mutation:({variables:e})=>a({variables:{layoutId:t,...e}}),...n})})};y.propTypes={summaryReportLayout:u().object.isRequired};const h=y},2982(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a.default});var a=n(2983)},2987(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>h});var a=n(95),i=n(1604),o=n(2984),r=n(811),s=n(718),l=n(782),u=n.n(l),d=n(2988),c=n.n(d),m=n(1357),p=n.n(m),f=n(341);const S=a.Locale.getTranslate("components.pages.SummaryReport.Schedule.Properties"),y=({summaryReportLayout:{name:e},...t})=>{const[n]=(0,r.useMutation)(c(),{refetchQueries:[p()],onCompleted(){(0,s.addToast)({intent:"success",message:(0,f.jsx)(S,{content:"success"})})},awaitRefetchQueries:!0});return(0,f.jsx)(i.default,{isOpen:!0,"data-type":"summary-report-schedule-edit-drawer",title:(0,f.jsx)(S,{content:"title",params:{name:e}}),size:"sm",form:(0,f.jsx)(o.default,{mutation:({variables:{input:{id:e,...t}}})=>n({variables:{id:e,input:t}}),...t})})};y.propTypes={summaryReportLayout:u().object.isRequired};const h=y},2986(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a.default});var a=n(2987)},2979(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>S});var a=n(811),i=n(785),o=n(1357),r=n.n(o),s=n(2980),l=n.n(s),u=n(2981
1),d=n(772),c=n(782),m=n.n(c),p=n(341);const f=({params:{layoutId:e}})=>{const{data:{viewer:{client:{email:t}},summaryReportLayout:{schedules:n}}}=(0,i.useQuery)(r(),{variables:{id:btoa(`SummaryReportLayout:${e}`)}}),[o]=(0,a.useMutation)(l(),{refetchQueries:[r()],awaitRefetchQueries:!0});return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u.default,{schedules:n,clientEmail:t,onRemove:o}),(0,p.jsx)(d.Outlet,{})]})};f.propTypes={params:m().shape({layoutId:m().string.isRequired}).isRequired};const S=f},2978(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a.default});var a=n(2979)},2985(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddSummaryReportSchedule"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"layoutId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SummaryReportScheduleInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateSummaryReportSchedule"},arguments:[{kind:"Argument",name:{kind:"Name",value:"layoutId"},value:{kind:"Variable",name:{kind:"Name",value:"layoutId"}}},{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"summaryReportSchedule"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}],loc:{start:0,end:234}};t.loc.source={body:"mutation AddSummaryReportSchedule(\n $layoutId: ID!,\n $input: SummaryReportScheduleInput!\n) {\n updateSummaryReportSchedule(layoutId: $layoutId, input: $input) {\n summaryReportSchedule {\n id\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&t.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){n(e,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){n(e,t)}),e.definitions&&e.definitions.forEach(function(e){n(e,t)})}var a={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var a=e.definitions[n];if(a.name&&a.name.value==t)return a}}t.definitions.forEach(function(e){if(e.name){var t=new Set;n(e,t),a[e.name.value]=t}}),e.exports=t,e.exports.AddSummaryReportSchedule=function(e,t){var n={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=a[t]||new Set,r=new Set,s=new Set;for(o.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){s.add(e)}))})}return r.forEach(function(t){var a=i(e,t);a&&n.definitions.push(a)}),n}(t,"AddSummaryReportSchedule")},2980(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteSummaryReportSchedule"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteSummaryReportScheduleInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteSummaryReportSchedule"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ids"}}]}}]}}],loc:{start:0,end:151}};t.loc.source={body:"mutation DeleteSummaryReportSchedule($input: DeleteSummaryReportScheduleInput!) {\n deleteSummaryReportSchedule(input: $input) {\n ids\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&t.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){n(e,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){n(e,t)}),e.definitions&&e.definitions.forEach(function(e){n(e,t)})}var a={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var a=e.definitions[n];if(a.name&&a.name.value==t)return a}}t.definitions.forEach(function(e){if(e.name){var t=new Set;n(e,t),a[e.name.value]=t}}),e.exports=t,e.exports.DeleteSummaryReportSchedule=function(e,t){var n={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=a[t]||new Set,r=new Set,s=new Set;
1for(o.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){s.add(e)}))})}return r.forEach(function(t){var a=i(e,t);a&&n.definitions.push(a)}),n}(t,"DeleteSummaryReportSchedule")},2988(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateSummaryReportSchedule"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SummaryReportScheduleInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateSummaryReportSchedule"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"summaryReportSchedule"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}],loc:{start:0,end:220}};t.loc.source={body:"mutation UpdateSummaryReportSchedule(\n $id: ID!,\n $input: SummaryReportScheduleInput!,\n) {\n updateSummaryReportSchedule(id: $id, input: $input) {\n summaryReportSchedule {\n id\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&t.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){n(e,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){n(e,t)}),e.definitions&&e.definitions.forEach(function(e){n(e,t)})}var a={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var a=e.definitions[n];if(a.name&&a.name.value==t)return a}}t.definitions.forEach(function(e){if(e.name){var t=new Set;n(e,t),a[e.name.value]=t}}),e.exports=t,e.exports.UpdateSummaryReportSchedule=function(e,t){var n={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=a[t]||new Set,r=new Set,s=new Set;for(o.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){s.add(e)}))})}return r.forEach(function(t){var a=i(e,t);a&&n.definitions.push(a)}),n}(t,"UpdateSummaryReportSchedule")}}]); 2//# sourceMappingURL=SummaryReportSchedulesPage.js.map?d929192a29af8c6077e3
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.