"use strict";exports.id=77,exports.ids=[77],exports.modules={23077:(e,r,t)=>{t.r(r),t.d(r,{default:()=>p});var o=t(84868),s=t(26248);let a=(0,s.createServerReference)("7f05b5846e3a9a02f82cb08dd5b23e37f928c08bc6",s.callServer,void 0,s.findSourceMapURL,"setPerspectiveCookie");var c=t(10437),l=t(79334),n=t(58009),i=t(86110),d=t(88432);function p(e){let{draftModeEnabled:r,draftModePerspective:t}=e,s=(0,l.useRouter)(),p=(0,i.J)((e,o)=>{r&&e!==t&&a(e).then(()=>{o.aborted||s.refresh()}).catch(e=>console.error("Failed to set the preview perspective cookie",e))});return(0,n.useEffect)(()=>{let e;let r=(0,o.RM)({name:"loaders",connectTo:"presentation"},(0,o.Uc)().provide({actors:(0,c.jF)()}));r.on("loader/perspective",r=>{e?.abort(),e=new AbortController,p(r.perspective,e.signal)});let t=r.start();return(0,d.El)(r),()=>{t()}},[]),null}p.displayName="PresentationComlink"}};