1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[313],{10313:(e,t,s)=>{s.r(t),s.d(t,{default:()=>v});var r=s(71464),i=s(38877),n=s(21028),u=s(67924),p=s(4948),l=s(77841),o=s(11356),a=s(88920),b=s(19066),c=s(22871),_=s(6340),d=s(32496),f=s(60732),h=s(64379),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.