1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4711],{44711:function(e,n,t){t.r(n),t.d(n,{default:function(){return a}});var l=t(26705),r=t(20955),i=t(91641),u=t(69562);function o(e){let{channel:n,draft:t,published:l,livePreviewEnabled:i}=e,[u,o]=(0,r.useState)(t),[a,d]=(0,r.useState)(l);return(0,r.useEffect)(()=>{(null==u?void 0:u._rev)!==(null==t?void 0:t._rev)&&((0,r.startTransition)(()=>o(t)),t&&(null==n||n.send("overlays","presentation/refresh",{source:"mutation",livePreviewEnabled:i,document:s(t)}))),(null==a?void 0:a._rev)!==(null==l?void 0:l._rev)&&((0,r.startTransition)(()=>d(l)),l&&(null==n||n.send("overlays","presentation/refresh",{source:"mutation",livePreviewEnabled:i,document:s(l)})))},[n,t,i,null==u?void 0:u._rev,null==a?void 0:a._rev,l]),null}function s(e){let{_id:n,_type:t,_rev:l,slug:r}=e;return{_id:n,_type:t,_rev:l,slug:r}}var a=(0,r.memo)(function(e){let{channel:n,type:t,previewKitConnection:s,loadersConnection:a}=e,d=(0,r.useMemo)(()=>(0,i.vsM)(e.id),[e.id]),{draft:v,published:c,ready:_}=(0,u.iav)(d,t,"low");return _&&v||c?(0,l.jsx)(o,{channel:n,draft:v,livePreviewEnabled:"connected"===s||"connected"===a,published:c},d):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.