1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5635],{45635:(e,t,s)=>{s.r(t),s.d(t,{default:()=>v});var r=s(12115),i=s(66677),n=s(54110),u=s(9262),p=s(72430),l=s(28983),o=s(64482),a=s(42894),b=s(70560),c=s(75341),_=s(30070),d=s(31190),f=s(81022),h=s(36126),v=(0,r.memo)(e=>{let{comlink:t,refs:s,perspective:v}=e,m=(0,h.yKO)(),w=(0,h.pDY)(),g=(0,r.useMemo)(()=>new i.B,[]),E=(0,r.useMemo)(()=>g.asObservable().pipe((0,n.n)(e=>(0,u.z)(e.map(e=>{var t;let s={...e,_id:(0,h.T4)(e._id)},r="published"===v?p.t:m.observeForPreview(s,w.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,h.IMx)(e._id)},n=m.observeForPreview(i,w.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,h.IMx)(t._id),title:t.title,subtitle:t.subtitle,description:t.description,imageUrl:t.imageUrl}}))}))),(0,f.B)(0)),[m,g,w,v]),k=(0,r.useRef)([]);return(0,r.useEffect)(()=>{let e=E.subscribe(e=>{t.post("presentation/preview-snapshots",{snapshots:e}),k.current=e});return()=>{e.unsubscribe()}},[t,E]),(0,r.useEffect)(()=>t.on("visual-editing/preview-snapshots",()=>({snapshots:k.current})),[t]),(0,r.useEffect)(()=>{g.next(s)},[s,g]),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.