1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7506],{77506:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c});var n=r(12115),s=r(19749),u=r(95155),o=r(23106);function a(e){let t=(0,s.c)(18),{comlink:r,draft:u,published:o,livePreviewEnabled:a,version:c}=e,[_,v]=(0,n.useState)(u),[l,f]=(0,n.useState)(o),[d,p]=(0,n.useState)(c),m;t[0]!==r||t[1]!==u||t[2]!==a||t[3]!==_?._rev||t[4]!==l?._rev||t[5]!==d?._rev||t[6]!==o||t[7]!==c?(m=()=>{d?._rev!==c?._rev&&((0,n.startTransition)(()=>p(c)),c&&r?.post("presentation/refresh",{source:"mutation",livePreviewEnabled:a,document:i(c)})),_?._rev!==u?._rev&&((0,n.startTransition)(()=>v(u)),u&&r?.post("presentation/refresh",{source:"mutation",livePreviewEnabled:a,document:i(u)})),l?._rev!==o?._rev&&((0,n.startTransition)(()=>f(o)),o&&r?.post("presentation/refresh",{source:"mutation",livePreviewEnabled:a,document:i(o)}))},t[0]=r,t[1]=u,t[2]=a,t[3]=_?._rev,t[4]=l?._rev,t[5]=d?._rev,t[6]=o,t[7]=c,t[8]=m):m=t[8];let h=_?._rev,k=l?._rev,w=d?._rev,E;return t[9]!==r||t[10]!==u||t[11]!==a||t[12]!==o||t[13]!==h||t[14]!==k||t[15]!==w||t[16]!==c?(E=[r,u,a,h,k,o,w,c],t[9]=r,t[10]=u,t[11]=a,t[12]=o,t[13]=h,t[14]=k,t[15]=w,t[16]=c,t[17]=E):E=t[17],(0,n.useEffect)(m,E),null}function i(e){let{_id:t,_type:r,_rev:n,slug:s}=e;return{_id:t,_type:r,_rev:n,slug:s}}var c=(0,n.memo)(function(e){let t=(0,s.c)(9),{comlink:r,type:n,previewKitConnection:i,loadersConnection:c}=e,_;t[0]===e.id?_=t[1]:(_=(0,o.IMx)(e.id),t[0]=e.id,t[1]=_);let v=_,{selectedReleaseId:l}=(0,o.QO2)(),{draft:f,published:d,ready:p,version:m}=(0,o.zX2)(v,n,"low",l),h="connected"===i||"connected"===c;if(p&&f||d){let e;return t[2]!==r||t[3]!==f||t[4]!==v||t[5]!==h||t[6]!==d||t[7]!==m?(e=(0,u.jsx)(a,{comlink:r,draft:f,livePreviewEnabled:h,published:d,version:m},v),t[2]=r,t[3]=f,t[4]=v,t[5]=h,t[6]=d,t[7]=m,t[8]=e):e=t[8],e}return 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.