{"version":3,"file":"InfiniteLoop.xmWAwfLm.mjs","names":["React.useId","React.useRef","React.useState","React.useCallback","React.useLayoutEffect","React.useEffect","__esmMin","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","window","ie","le","_e","p","c","J","init_jsx_runtime","ce","de","RenderTarget","init_framer_DJ_0WPVq","reducedMotion","topOf","node","el","boxes","out","group","topIn","b","heightOf","last","scrollsItself","n","start","stop","oy","dy","posIn","itemAt","list","found","depth","hit","line","fold","off","H","withInfiniteLoop","makeLoop","Component","withInfiniteLoopFromTop","uid","canvas","box","orig","step","copies","setCopies","copiesRef","anchor","ro","pinned","lastPath","startOffset","remember","s","SAVE","toStart","want","o","newPage","path","capture","base","setRef","forwarded","useIso","measure","gap","h","view","loops","need","a","obs","g","release","timer","frame","focusUntil","onFocusIn","onScroll","st","wraps","rep","ready","onWheel","e","t","k","onKey","page","kids","props","repeat","key","before","after","i","css","init_InfiniteLoop"],"sources":["https:/framerusercontent.com/modules/GVamDSYXwSNbK3aKFZNr/YO8HogGY1fiXo573y4v2/InfiniteLoop.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{RenderTarget}from\"framer\";/**\n * Tilefolio Infinite Loop — put it on the frame that holds a list: withInfiniteLoop (Home's project cards: comes\n * back to where you left it) or withInfiniteLoopFromTop (a project's images: always starts at the first one).\n * When that frame has a fixed height and its list is taller (Home on desktop: the column is one screen high), the\n * frame scrolls on its own, without a scrollbar, and never ends: the list is repeated above and below and the\n * position wraps around unnoticed. Where the frame grows with its content (tablet, phone) nothing changes.\n * Set the frame's Overflow to Clip: the code itself turns scrolling on while it loops (so the canvas, where code does\n * not run, shows a clean column without a scrollbar).\n * While it loops, the mouse wheel anywhere on the page (e.g. over the side panel) and Page Up / Page Down / Space /\n * the arrow keys move the list too (not while a full-size image view is open). The repeats are marked\n * data-tf-copy: Fit Image and Image Counter leave them out of the full-size set and the count.\n * The repeats are hidden from screen readers and from Tab; only the real list is read and tabbed through, and the\n * item that has keyboard focus stays on screen (the loop does not wrap away from it).\n * Nothing depends on layer names or on how many projects there are; more, fewer or other cards keep working.\n */const SAVE=\"tf-loop:\";const useIso=typeof window!==\"undefined\"?React.useLayoutEffect:React.useEffect;function reducedMotion(){return typeof window!==\"undefined\"&&!!window.matchMedia&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;}// a group (the real list or a repeat) takes no box of its own (display: contents), so the frame's own layout and\n// gap space every item, inside a group and between repeats; a group is measured from its first to its last item\nfunction topOf(el,node){return node.offsetParent===el?node.offsetTop:node.offsetTop-el.offsetTop;}// the group's items that take space (not a <style>, not a hidden item); a box-less wrapper (display: contents, e.g.\n// the Cover Morph override around the project cover) is looked through to the items inside it\nfunction boxes(group){const out=[];for(const c of Array.from(group.children)){if(c.offsetParent!==null)out.push(c);else if(getComputedStyle(c).display===\"contents\")out.push(...boxes(c));}return out;}function topIn(el,group){const b=boxes(group);return b.length?topOf(el,b[0]):0;}function heightOf(el,group){const b=boxes(group);if(!b.length)return 0;const last=b[b.length-1];return topOf(el,last)+last.offsetHeight-topOf(el,b[0]);}// can this element (or one between it and the page) still scroll in that direction by itself?\nfunction scrollsItself(start,stop,dy){for(let n=start;n&&n!==document.body&&n!==stop;n=n.parentElement){const oy=getComputedStyle(n).overflowY;if((oy===\"auto\"||oy===\"scroll\")&&n.scrollHeight>n.clientHeight+1){if(dy>0&&n.scrollTop+n.clientHeight<n.scrollHeight-1)return true;if(dy<0&&n.scrollTop>0)return true;}}return false;}// an item's top in the frame's scroll space (items sit inside cards, so offsetTop alone is not enough)\nfunction posIn(el,node){return node.getBoundingClientRect().top-el.getBoundingClientRect().top+el.scrollTop;}// the innermost item of the real list at that line (the first one whose bottom is below it), a few levels deep\nfunction itemAt(el,group,line){let list=boxes(group);let found=null;for(let depth=0;depth<4&&list.length;depth++){const hit=list.find(c=>posIn(el,c)+c.offsetHeight>line)||null;if(!hit)break;found=hit;list=boxes(hit);}return found;}// an offset from the real list's top, folded into one turn of the loop (-H/2 … H/2)\nfunction fold(off,H){return off-Math.floor((off+H/2)/H)*H;}export function withInfiniteLoop(Component){return makeLoop(Component,true);}export function withInfiniteLoopFromTop(Component){return makeLoop(Component,false);}function makeLoop(Component,remember){return /*#__PURE__*/React.forwardRef(function InfiniteLoop(props,forwarded){const uid=\"tfloop\"+React.useId().replace(/[^a-zA-Z0-9]/g,\"\");const canvas=RenderTarget.current()===RenderTarget.canvas;const box=React.useRef(null);const orig=React.useRef(null);const step=React.useRef(0);const[copies,setCopies]=React.useState(0);const copiesRef=React.useRef(0);copiesRef.current=copies;// where the view is, measured from the real list's top: kept while images load and sizes change\nconst anchor=React.useRef(null);const ro=React.useRef(null);// Framer reuses a page for the next CMS item (→ on a project, a card from Home): the content is swapped in place,\n// collapses for a moment and the browser moves the scroll. So on every new address the loop starts again and\n// holds its start (through any resize while images load) until the visitor moves it (wheel, touch, click, key).\nconst pinned=React.useRef(true);const lastPath=React.useRef(\"\");const startOffset=el=>{// first visit: one gap above the first card, so it lines up with the other column's top\nlet off=-(parseFloat(getComputedStyle(el).rowGap)||0);if(remember){try{const s=sessionStorage.getItem(SAVE+location.pathname);if(s!==null&&s!==\"\")off=Number(s)||0;}catch(e){}}return off;};const toStart=(el,o)=>{const H=step.current;if(!H)return;const want=topIn(el,o)+fold(startOffset(el),H);if(Math.abs(want-el.scrollTop)>.5)el.scrollTop=want;};// a new address (also when Framer keeps this page and only swaps the CMS item): start again, pinned\nconst newPage=()=>{if(typeof window===\"undefined\")return false;const path=window.location.pathname;if(path===lastPath.current)return false;lastPath.current=path;pinned.current=true;anchor.current=null;return true;};const capture=(el,o)=>{const H=step.current;if(!H)return;const base=topIn(el,o);// the view's top, moved into the real list (a repeat shows the same thing one turn away)\nlet line=base+((el.scrollTop-base)%H+H)%H;let node=itemAt(el,o,line);// in the gap after the last item: hold on to the first item of the next turn instead\nif(!node){line-=H;node=itemAt(el,o,line);}anchor.current=node?{node,px:line-posIn(el,node)}:null;};const setRef=React.useCallback(node=>{box.current=node;if(typeof forwarded===\"function\")forwarded(node);else if(forwarded)forwarded.current=node;},[forwarded]);// loop only when the frame is shorter than its list; count the repeats needed on each side\nuseIso(()=>{if(canvas)return;const el=box.current;const o=orig.current;if(!el||!o)return;const measure=()=>{const gap=parseFloat(getComputedStyle(el).rowGap)||0;const h=heightOf(el,o);const view=el.clientHeight;const loops=h>0&&view>0&&h>view+1;const before=step.current;step.current=loops?h+gap:0;const need=loops?Math.ceil(view/(h+gap))+1:0;newPage();// sizes changed while it loops (images arriving, an item swapped): still at the start until the visitor\n// moves it; after that, stay on the same place of the real list\nconst a=anchor.current;if(loops&&need===copiesRef.current){if(pinned.current)toStart(el,o);else if(a&&a.node.isConnected&&o.contains(a.node)){const base=topIn(el,o);const want=base+fold(posIn(el,a.node)+a.px-base,step.current);if(Math.abs(want-el.scrollTop)>.5)el.scrollTop=want;}}setCopies(c=>c===need?c:need);};measure();const obs=typeof ResizeObserver!==\"undefined\"?new ResizeObserver(measure):null;ro.current=obs;if(obs){obs.observe(el);boxes(o).forEach(c=>obs.observe(c));}return()=>{if(obs)obs.disconnect();ro.current=null;};},[canvas]);// the repeats: out of the Tab order; then place the view on the real list (where it was left)\nuseIso(()=>{const el=box.current;const o=orig.current;if(!el||!o||!copies||!step.current)return;el.querySelectorAll(\"[data-tf-copy] a, [data-tf-copy] button, [data-tf-copy] input, [data-tf-copy] [tabindex]\").forEach(n=>n.setAttribute(\"tabindex\",\"-1\"));// a box-less group can drop out of the accessibility tree in some browsers with its aria-hidden: mark its items too\nel.querySelectorAll(\"[data-tf-copy] > *\").forEach(n=>n.setAttribute(\"aria-hidden\",\"true\"));// their items change size too (images arriving): watch the boxes, not box-less wrappers\nel.querySelectorAll(\":scope > [data-tf-copy]\").forEach(g=>boxes(g).forEach(n=>ro.current&&ro.current.observe(n)));const H=step.current;newPage();const a=anchor.current;if(!pinned.current&&a&&a.node.isConnected&&o.contains(a.node))el.scrollTop=topIn(el,o)+fold(posIn(el,a.node)+a.px-topIn(el,o),H);else toStart(el,o);capture(el,o);},[copies]);// after every render: a new address means a new page (Framer may keep this one and swap the CMS item)\nuseIso(()=>{if(canvas||!newPage())return;const el=box.current;const o=orig.current;if(el&&o&&copiesRef.current&&step.current)toStart(el,o);});// the visitor takes over: any wheel, touch, click or key releases the start\nReact.useEffect(()=>{if(canvas)return;const release=()=>{pinned.current=false;};window.addEventListener(\"wheel\",release,{passive:true});window.addEventListener(\"touchstart\",release,{passive:true});window.addEventListener(\"pointerdown\",release,{passive:true});window.addEventListener(\"keydown\",release);return()=>{window.removeEventListener(\"wheel\",release);window.removeEventListener(\"touchstart\",release);window.removeEventListener(\"pointerdown\",release);window.removeEventListener(\"keydown\",release);};},[canvas]);// wrap around, remember the place; wheel and keys from the rest of the page\nReact.useEffect(()=>{const el=box.current;const o=orig.current;if(!el||!o||!copies)return;let timer=0;let frame=0;// keyboard focus on an item of the real list: the browser scrolls it into view, and a wrap right after\n// would show its repeat instead and leave the focused item off screen. So no wrap for a moment after focus\n// arrives; the next wheel or key scroll wraps as usual.\nlet focusUntil=0;const onFocusIn=e=>{const t=e.target;if(t&&o.contains(t))focusUntil=Date.now()+500;};const onScroll=()=>{const H=step.current;if(!H)return;// not moved by the visitor (the browser after a content swap): back to the start\nif(pinned.current)return toStart(el,o);const base=topIn(el,o);const st=el.scrollTop;const wraps=st<base-H/2||st>=base+H/2;// wrap only once the repeats are as long as the real list (their images loaded too)\nconst rep=el.querySelector(\":scope > [data-tf-copy]\");const ready=!rep||Math.abs(heightOf(el,rep)+(parseFloat(getComputedStyle(el).rowGap)||0)-H)<2;if(wraps&&ready&&Date.now()>focusUntil)el.scrollTop=st<base-H/2?st+H:st-H;if(!frame)frame=window.requestAnimationFrame(()=>{frame=0;capture(el,o);});window.clearTimeout(timer);if(remember)timer=window.setTimeout(()=>{try{sessionStorage.setItem(SAVE+location.pathname,String(Math.round(el.scrollTop-topIn(el,o))));}catch(e){}},150);};const onWheel=e=>{if(e.defaultPrevented||e.ctrlKey||!e.deltaY)return;if(document.querySelector(\"[aria-modal=true]\"))return;// a full-size view is open over the page\nconst t=e.target;if(!t||el.contains(t)||scrollsItself(t,el,e.deltaY))return;const k=e.deltaMode===1?16:e.deltaMode===2?el.clientHeight:1;el.scrollTop+=e.deltaY*k;};const onKey=e=>{const a=document.activeElement;if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;if(a&&a!==document.body&&a!==document.documentElement)return;// a focused element scrolls its own way\nconst page=el.clientHeight*.85;const map={PageDown:page,PageUp:-page,\" \":e.shiftKey?-page:page,ArrowDown:60,ArrowUp:-60};const dy=map[e.key];if(!dy)return;e.preventDefault();el.scrollBy({top:dy,behavior:reducedMotion()?\"auto\":\"smooth\"});};el.addEventListener(\"scroll\",onScroll,{passive:true});el.addEventListener(\"focusin\",onFocusIn);window.addEventListener(\"wheel\",onWheel,{passive:true});window.addEventListener(\"keydown\",onKey);return()=>{window.clearTimeout(timer);if(frame)window.cancelAnimationFrame(frame);el.removeEventListener(\"scroll\",onScroll);el.removeEventListener(\"focusin\",onFocusIn);window.removeEventListener(\"wheel\",onWheel);window.removeEventListener(\"keydown\",onKey);};},[copies]);const kids=props.children;const repeat=key=>/*#__PURE__*/_jsx(\"div\",{\"data-tf-copy\":\"\",\"aria-hidden\":\"true\",style:{display:\"contents\"},children:kids},key);const before=[];const after=[];for(let i=copies;i>=1;i--)before.push(repeat(\"b\"+i));for(let i=1;i<=copies;i++)after.push(repeat(\"a\"+i));// no quotes in this text (it is rendered on the server too)\nconst css=\".\"+uid+\"{scrollbar-width:none;-ms-overflow-style:none}.\"+uid+\"::-webkit-scrollbar{display:none}\";return /*#__PURE__*/_jsxs(Component,{...props,ref:setRef,className:(props.className?props.className+\" \":\"\")+uid,style:{...props.style,overflowAnchor:\"none\",...copies?{overflowY:\"auto\",overflowX:\"hidden\"}:null},children:[/*#__PURE__*/_jsx(\"style\",{children:css}),before,/*#__PURE__*/_jsx(\"div\",{ref:orig,style:{display:\"contents\"},children:kids},\"list\"),after]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withInfiniteLoopFromTop\":{\"type\":\"reactHoc\",\"name\":\"withInfiniteLoopFromTop\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withInfiniteLoop\":{\"type\":\"reactHoc\",\"name\":\"withInfiniteLoop\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InfiniteLoop.map"],"mappings":"A,mOAcwG,SAASsB,GAAe,CAAC,OAAcZ,IAAS,QAAa,CAAC,CAACA,EAAO,YAAYA,EAAO,WAAW,kCAAkC,CAAC,CAAC,OAAQ,CAExP,SAASa,EAAM,EAAG,EAAK,CAAC,OAAOC,EAAK,eAAeC,EAAGD,EAAK,UAAUA,EAAK,UAAUC,EAAG,SAAU,CAEjG,SAASC,EAAM,EAAM,CAAC,IAAMC,EAAI,CAAC,EAAE,IAAI,IAAMZ,KAAK,MAAM,KAAKa,EAAM,QAAQ,EAAMb,EAAE,eAAe,KAAyB,iBAAiBA,CAAC,CAAC,CAAC,UAAU,YAAWY,EAAI,KAAK,GAAGD,EAAMX,CAAC,CAAC,EAAjFY,EAAI,KAAKZ,CAAC,EAA0E,OAAOY,CAAI,CAAC,SAASE,EAAM,EAAG,EAAM,CAAC,IAAMC,EAAEJ,EAAME,CAAK,EAAE,OAAOE,EAAE,OAAOP,EAAME,EAAGK,EAAE,EAAE,EAAE,CAAE,CAAC,SAASC,EAAS,EAAG,EAAM,CAAC,IAAMD,EAAEJ,EAAME,CAAK,EAAE,GAAG,CAACE,EAAE,OAAO,MAAO,GAAE,IAAME,EAAKF,EAAEA,EAAE,OAAO,GAAG,OAAOP,EAAME,EAAGO,CAAI,EAAEA,EAAK,aAAaT,EAAME,EAAGK,EAAE,EAAE,CAAE,CAC9a,SAASG,EAAc,EAAM,EAAK,EAAG,CAAC,IAAI,IAAIC,EAAEC,EAAMD,GAAGA,IAAI,SAAS,MAA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