{"version":3,"file":"GalleryProjectEntry.DPZ_yv61.mjs","names":["React.useRef","__esmMin","le","init_npm_react_18_3_1","c","init_jsx_runtime","de","init_framer_BWFVvmND","RenderTarget","IsolatedEntryReset","root","doc","win","stopped","timers","frame","previous","reset","parent","overflow","stop","timer","events","event","started","settle","delay","style","PostersEntryReset","props","SketchingEntryReset","init_GalleryProjectEntry"],"sources":["https:/framerusercontent.com/modules/oKxe0yiU3VViWyfspNTf/IsSEgT3geSA8pXIDrTXK/GalleryProjectEntry.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{RenderTarget}from\"framer\";/** @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed */function IsolatedEntryReset({style}){const root=React.useRef(null);React.useLayoutEffect(()=>{if(RenderTarget.current()===RenderTarget.canvas)return;const doc=root.current?.ownerDocument;const win=doc?.defaultView;if(!doc||!win)return;let stopped=false;const timers=[];let frame=0;const previous=win.history.scrollRestoration;win.history.scrollRestoration=\"manual\";const reset=()=>{if(stopped)return;let parent=root.current?.parentElement;while(parent){const overflow=win.getComputedStyle(parent).overflowY;if(/(auto|scroll|overlay)/.test(overflow)&&parent.scrollHeight>parent.clientHeight){parent.scrollTo({top:0,left:0,behavior:\"instant\"});}parent=parent.parentElement;}doc.scrollingElement?.scrollTo({top:0,left:0,behavior:\"instant\"});win.scrollTo({top:0,left:0,behavior:\"instant\"});};const stop=()=>{stopped=true;timers.forEach(timer=>win.clearTimeout(timer));win.cancelAnimationFrame(frame);};const events=[\"wheel\",\"touchstart\",\"pointerdown\",\"keydown\"];events.forEach(event=>win.addEventListener(event,stop,{capture:true,passive:true}));reset();const started=win.performance.now();const settle=()=>{if(stopped)return;reset();if(win.performance.now()-started<2e3)frame=win.requestAnimationFrame(settle);};frame=win.requestAnimationFrame(settle);[100,350,750].forEach(delay=>timers.push(win.setTimeout(reset,delay)));return()=>{stop();win.history.scrollRestoration=previous;events.forEach(event=>win.removeEventListener(event,stop,true));};},[]);return /*#__PURE__*/_jsx(\"div\",{ref:root,\"aria-hidden\":\"true\",style:{...style,pointerEvents:\"none\",opacity:0}});}/** @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed */export function PostersEntryReset(props){return /*#__PURE__*/_jsx(IsolatedEntryReset,{...props});}/** @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed */export function SketchingEntryReset(props){return /*#__PURE__*/_jsx(IsolatedEntryReset,{...props});}\nexport const __FramerMetadata__ = {\"exports\":{\"SketchingEntryReset\":{\"type\":\"reactComponent\",\"name\":\"SketchingEntryReset\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"PostersEntryReset\":{\"type\":\"reactComponent\",\"name\":\"PostersEntryReset\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GalleryProjectEntry.map"],"mappings":"A,2KACwC,SAASS,EAAmB,CAAC,SAAO,CAAC,IAAMC,EAAKV,EAAa,IAAI,EAAw2C,OAAt2CE,MAA0B,CAAC,GAAGM,EAAa,QAAQ,IAAIA,EAAa,OAAO,OAAO,IAAMG,EAAID,EAAK,SAAS,cAAoBE,EAAID,GAAK,YAAY,GAAG,CAACA,GAAK,CAACC,EAAI,OAAO,IAAIC,EAAQ,GAAYC,EAAO,CAAC,EAAMC,EAAM,EAAQC,EAASJ,EAAI,QAAQ,kBAAkB,EAAI,QAAQ,kBAAkB,SAAS,IAAMK,MAAU,CAAC,GAAGJ,EAAQ,OAAO,IAAIK,EAAOR,EAAK,SAAS,cAAc,KAAMQ,GAAO,CAAC,IAAMC,EAASP,EAAI,iBAAiBM,CAAM,CAAC,CAAC,UAAa,wBAAwB,KAAKC,CAAQ,GAAGD,EAAO,aAAaA,EAA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