1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6777],{66777:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});var r=s(2044),i=s(8281),n=s(46946),u=s(62954),p=s(57658),l=s(70283),o=s(58462),a=s(10322),b=s(36892),c=s(25321),_=s(68074),d=s(40090),f=s(9274),h=s(48720),v=s(91207),m=(0,r.memo)(e=>{let{comlink:t,refs:s,perspective:m}=e,w=(0,h.yKO)(),g=(0,h.I07)(),E=(0,r.useMemo)(()=>new i.B,[]),k=(0,r.useMemo)(()=>E.asObservable().pipe((0,n.n)(e=>(0,u.z)(e.map(e=>{var t;let s={...e,_id:(0,v.T4)(e._id)},r="published"===m?p.t:w.observeForPreview(s,g.get(s._type)).pipe((0,l.u)(),(t=e=>null===e.snapshot,(0,o.N)(function(e,s){var r=!1,i=0;e.subscribe((0,a._)(s,function(e){return(r||(r=!t(e,i++)))&&s.next(e)}))}))),i={...e,_id:(0,v.IM)(e._id)},n=w.observeForPreview(i,g.get(i._type));return(0,b.h)(n.pipe((0,c.Q)(r)),r).pipe((0,_.p)(e=>!!e.snapshot),(0,d.T)(e=>{let t=e.snapshot;return{_id:(0,v.IM)(t._id),title:t.title,subtitle:t.subtitle,description:t.description,imageUrl:t.imageUrl}}))}))),(0,f.B)(0)),[w,E,g,m]),M=(0,r.useRef)([]);return(0,r.useEffect)(()=>{let e=k.subscribe(e=>{t.post("presentation/preview-snapshots",{snapshots:e}),M.current=e});return()=>{e.unsubscribe()}},[t,k]),(0,r.useEffect)(()=>t.on("visual-editing/preview-snapshots",()=>({snapshots:M.current})),[t]),(0,r.useEffect)(()=>{E.next(s)},[s,E]),null})}}]);
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.