{"version":3,"file":"Shuffle.cMySyK2P.mjs","names":["Children","useMemo","useState","useRef","_Fragment","__esmMin","pe","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","le","init_npm_react_dom_18_3_1","l","_e","Ha","p","c","J","init_jsx_runtime","ce","j","de","init_framer_motion_DhsWWWsN","useReducedMotion","RenderTarget","init_framer_CKT6jEEQ","useQueryData","shuffleArray","i","array","extractQueryItems","collectionData","readFieldValue","item","sources","source","key","keys","toBoolean","value","normalizeSlugFromPath","parts","pathname","rawSlug","isPresentAtHome","directBoolean","labels","entry","readItemSlug","slug","readItemTitle","title","AdjacentWork","findCollection","node","depth","children","child","found","collection","props","query","WorkProjectDock","ref","Component","expandedQuery","field","items","canvas","page","setPage","root","active","setActive","footerEngaged","setFooterEngaged","reduceDockMotion","activeCard","projectCount","setProjectCount","resize","width","read","locked","old","timer","eligible","all","other","index","eligibleKey","selected","slugs","signature","measure","nav","track","gap","size","observer","cards","weights","total","sum","weight","card","content","update","n","navBottom","top","currentY","naturalBottom","previousTranslate","previousTransition","resizeObserver","activate","event","nearest","distance","bounds","delta","originalProps","forwardedRef","dockStyles","projectLockCursorStyles","ProjectLockCursor","renderItems","pointer","setPointer","last","target","move","out","clear","scroll","point","init_Shuffle"],"sources":["https:/framerusercontent.com/modules/M40u1ieC3pDn0LyNdPOn/7ffbJqOqNTkjFfw3Xt3l/Shuffle.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{createPortal}from\"react-dom\";import{useReducedMotion}from\"framer-motion\";import{useState,useEffect,useLayoutEffect,useMemo,startTransition,Children,forwardRef,useRef,useCallback}from\"react\";// @ts-ignore\nimport{useQueryData,RenderTarget}from\"framer\";function shuffleArray(array){for(let i=array.length-1;i>0;i--){const j=Math.floor(Math.random()*(i+1));[array[i],array[j]]=[array[j],array[i]];}return array;}function extractQueryItems(collectionData){if(!collectionData)return[];if(Array.isArray(collectionData))return collectionData;if(Array.isArray(collectionData?.items))return collectionData.items;if(Array.isArray(collectionData?.data))return collectionData.data;return[];}function readFieldValue(item,keys){if(!item)return undefined;const sources=[item,item?.fields,item?.fieldData,item?.data];for(const source of sources){if(!source)continue;for(const key of keys){if(source[key]!==undefined)return source[key];}}return undefined;}function toBoolean(value){if(typeof value===\"boolean\")return value;if(typeof value===\"string\")return value.trim().toLowerCase()===\"true\";return Boolean(value);}function hashString(value){let hash=0;for(let i=0;i<value.length;i++){hash=(hash<<5)-hash+value.charCodeAt(i);hash|=0;}return Math.abs(hash);}function normalizeSlugFromPath(pathname){const safePath=(pathname||\"\").split(\"?\")[0].split(\"#\")[0];const parts=safePath.split(\"/\").filter(Boolean);const rawSlug=parts.length>0?parts[parts.length-1]:\"\";try{return decodeURIComponent(rawSlug);}catch(_error){return rawSlug;}}function isPresentAtHome(item){const directBoolean=readFieldValue(item,[\"MH7EllWrG\",\"$control__present_at_home\",\"presentAtHome\",\"present_at_home\",\"isPresentAtHome\"]);if(directBoolean!==undefined)return toBoolean(directBoolean);const labels=readFieldValue(item,[\"category\",\"categories\",\"tag\",\"tags\",\"type\",\"projectType\"]);if(Array.isArray(labels)){return labels.some(entry=>String(entry).toLowerCase().includes(\"present at home\"));}if(typeof labels===\"string\"){return labels.toLowerCase().includes(\"present at home\");}return false;}function readItemSlug(item){const slug=readFieldValue(item,[\"TNKGhpdHo\",\"$control__slug\",\"slug\",\"Slug\",\"path\",\"Path\"]);return slug?String(slug):\"\";}function readItemTitle(item){const title=readFieldValue(item,[\"dH5PZF9U9\",\"$control__title\",\"title\",\"Title\",\"name\",\"Name\"]);return title?String(title):\"\";}// Shuffle the children of a stack or grid layout\nexport function Shuffle(Component){return props=>{const{children,...otherProps}=props;const childrenArray=Children.toArray(children);const[shuffledChildren,setShuffledChildren]=useState([]);useEffect(()=>{setShuffledChildren(shuffleArray(childrenArray));},[]);return /*#__PURE__*/_jsx(Component,{...otherProps,children:shuffledChildren});};}// Shuffle the children of a CMS Collection List\nexport function ShuffleCMSCollectionList(Component){return props=>{const query=props.children?.props?.query;const queryData=query?.from?.data;const collectionData=queryData?.read?queryData.read():queryData;const[currentSlug,setCurrentSlug]=useState(\"\");useEffect(()=>{if(typeof window===\"undefined\")return;const readSlug=()=>normalizeSlugFromPath(window.location.pathname);let latestSlug=readSlug();startTransition(()=>setCurrentSlug(latestSlug));const intervalId=window.setInterval(()=>{const nextSlug=readSlug();if(nextSlug!==latestSlug){latestSlug=nextSlug;startTransition(()=>setCurrentSlug(nextSlug));}},300);return()=>window.clearInterval(intervalId);},[]);if(!query){return /*#__PURE__*/_jsx(Component,{...props});}const shuffledData=useMemo(()=>{const items=extractQueryItems(collectionData);if(items.length===0)return collectionData??[];const currentItem=currentSlug&&items.length>0?items.find(item=>readItemSlug(item)===currentSlug):undefined;const currentTitle=readItemTitle(currentItem);const filteredPresentAtHome=items.filter(item=>isPresentAtHome(item));const withoutCurrent=filteredPresentAtHome.filter(item=>{if(!currentSlug)return true;const itemSlug=readItemSlug(item);const itemTitle=readItemTitle(item);if(itemSlug===currentSlug)return false;if(currentTitle&&itemTitle&&itemTitle===currentTitle)return false;return true;});const seedSource=currentSlug||\"initial\";const stableSort=list=>[...list].sort((a,b)=>{const aSlug=readItemSlug(a);const bSlug=readItemSlug(b);const aScore=hashString(`${seedSource}:${aSlug}`);const bScore=hashString(`${seedSource}:${bSlug}`);return aScore-bScore;});const selected=stableSort(withoutCurrent).slice(0,2);if(selected.length<2){const alreadySelected=new Set(selected.map(item=>readItemSlug(item)));const fallbackPool=items.filter(item=>{const slug=readItemSlug(item);const title=readItemTitle(item);if(currentSlug&&slug===currentSlug)return false;if(currentTitle&&title&&title===currentTitle)return false;return!alreadySelected.has(slug);});const fallbackItems=stableSort(fallbackPool).slice(0,2-selected.length);return[...selected,...fallbackItems];}return selected;},[collectionData,currentSlug]);return /*#__PURE__*/_jsx(Component,{...props,children:props.children?.props?.children(useQueryData({...query,limit:2,from:{...query?.from,data:shuffledData}}))});};}function readCurrentPathname(){if(typeof window===\"undefined\")return\"\";return window.location.pathname||\"\";}function normalizePathname(pathname){const normalized=normalizeSlugFromPath(pathname);return normalized?`/work/${normalized}`:\"\";}function normalizeWorkPathFromHref(href){if(!href)return\"\";const base=typeof window!==\"undefined\"&&window.location?.origin?window.location.origin:\"https://framer.com\";try{const parsed=new URL(href,base);const cleanPath=parsed.pathname.replace(/\\/+$/,\"\");const parts=cleanPath.split(\"/\").filter(Boolean);if(parts.length>=2&&parts[0].toLowerCase()===\"work\"){const slug=decodeURIComponent(parts[1]||\"\");return slug?`/work/${slug}`:\"\";}return\"\";}catch(_error){return\"\";}}function buildPairKey(a,b){const first=a<=b?a:b;const second=a<=b?b:a;return`${first}||${second}`;}function readSessionValue(key){if(typeof window===\"undefined\")return\"\";try{return window.sessionStorage.getItem(key)||\"\";}catch(_error){return\"\";}}function writeSessionValue(key,value){if(typeof window===\"undefined\")return;try{window.sessionStorage.setItem(key,value);}catch(_error){}}const WORK_RECOMMENDATIONS_BAG_KEY=\"work-recommendations:work-bag:v1\";const WORK_RECOMMENDATIONS_LAST_GLOBAL_KEY=\"work-recommendations:last-global\";function uniqueStrings(values){const out=[];const seen=new Set;for(const value of values){if(typeof value!==\"string\"||!value)continue;if(seen.has(value))continue;seen.add(value);out.push(value);}return out;}function randomizeArray(values){return shuffleArray([...values]);}function chooseTwoPaths(paths,blockedKeys){if(paths.length<2)return null;const allPairs=[];for(let i=0;i<paths.length;i++){for(let j=i+1;j<paths.length;j++){allPairs.push([paths[i],paths[j]]);}}const candidates=allPairs.filter(([a,b])=>!blockedKeys.has(buildPairKey(a,b)));const source=candidates.length>0?candidates:allPairs;const randomPair=source[Math.floor(Math.random()*source.length)];if(!randomPair)return null;return randomPair;}function hasKnownQueryShape(payload){return Array.isArray(payload)||Array.isArray(payload?.items)||Array.isArray(payload?.data);}function replaceQueryItemsShape(payload,selectedItems){if(Array.isArray(payload))return selectedItems;if(payload&&Array.isArray(payload.items)){return{...payload,items:selectedItems};}if(payload&&Array.isArray(payload.data)){return{...payload,data:selectedItems};}return null;}function pickRandomPairFromSlugs(available,previousPairKey){if(available.length<2)return null;const allPairs=[];for(let i=0;i<available.length;i++){for(let j=i+1;j<available.length;j++){allPairs.push([available[i],available[j]]);}}if(allPairs.length===0)return null;const nonRepeating=previousPairKey?allPairs.filter(([a,b])=>buildPairKey(a,b)!==previousPairKey):allPairs;const source=nonRepeating.length>0?nonRepeating:allPairs;const picked=source[Math.floor(Math.random()*source.length)];return picked||null;}// User request: add a dedicated override for native Work CMS list navigation to show exactly 2 random cards excluding current slug, vary across reloads/navigation, avoid repeating the same unordered pair when possible, and keep native canvas structure/styling.\nexport function WorkCMSRandomPairList(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(WorkCMSRandomPairListInner,{Component:Component,props:props,forwardedRef:ref});});}function WorkCMSRandomPairListInner({Component,props,forwardedRef}){const localRef=useRef(null);const originalDisplayMapRef=useRef(new Map);const latestSelectionRef=useRef({signature:\"\",paths:[]});const[ready,setReady]=useState(false);const isCanvas=useMemo(()=>RenderTarget.current()===RenderTarget.canvas,[]);const setMergedRef=useCallback(node=>{localRef.current=node;if(typeof forwardedRef===\"function\"){forwardedRef(node);return;}if(forwardedRef&&typeof forwardedRef===\"object\"){forwardedRef.current=node;}},[forwardedRef]);useLayoutEffect(()=>{if(typeof window===\"undefined\")return;const root=localRef.current;if(!root)return;const restoreAll=()=>{originalDisplayMapRef.current.forEach((display,element)=>{if(!element.isConnected)return;if(display){element.style.display=display;}else{element.style.removeProperty(\"display\");}});originalDisplayMapRef.current.clear();};const chooseCardElement=anchor=>{const parent=anchor.parentElement;if(!parent||parent===root)return anchor;if(parent.parentElement!==root)return anchor;const anchoredCards=parent.querySelectorAll('a[href*=\"/work/\"]').length;return anchoredCards<=1?parent:anchor;};const applySelection=()=>{const currentPath=normalizePathname(readCurrentPathname());const anchors=Array.from(root.querySelectorAll(\"a[href]\"));const cardEntries=[];const uniquePathOrder=[];const seenPath=new Set;for(const anchor of anchors){const hrefPath=normalizeWorkPathFromHref(anchor.getAttribute(\"href\")||\"\");if(!hrefPath)continue;cardEntries.push({path:hrefPath,element:chooseCardElement(anchor)});if(!seenPath.has(hrefPath)){seenPath.add(hrefPath);uniquePathOrder.push(hrefPath);}}const eligiblePaths=uniquePathOrder.filter(path=>path!==currentPath);const signature=`${currentPath}|${eligiblePaths.slice().sort().join(\"|\")}`;const latest=latestSelectionRef.current;let chosenPaths=latest.signature===signature?latest.paths:[];if(chosenPaths.length===0||latest.signature!==signature){if(eligiblePaths.length<=2){chosenPaths=eligiblePaths.slice(0,2);}else if(isCanvas){chosenPaths=eligiblePaths.slice(0,2);}else{const globalKey=readSessionValue(\"work-cms-random-pair:last-global\");const pathKey=readSessionValue(`work-cms-random-pair:last-path:${currentPath||\"root\"}`);const blockedKeys=new Set([globalKey,pathKey].filter(Boolean));const pair=chooseTwoPaths(eligiblePaths,blockedKeys);chosenPaths=pair?[pair[0],pair[1]]:eligiblePaths.slice(0,2);if(chosenPaths.length===2){const chosenKey=buildPairKey(chosenPaths[0],chosenPaths[1]);writeSessionValue(\"work-cms-random-pair:last-global\",chosenKey);writeSessionValue(`work-cms-random-pair:last-path:${currentPath||\"root\"}`,chosenKey);}}latestSelectionRef.current={signature,paths:chosenPaths};}const chosenSet=new Set(chosenPaths);const shownForPath=new Set;cardEntries.forEach(({element,path})=>{if(!originalDisplayMapRef.current.has(element)){originalDisplayMapRef.current.set(element,element.style.display||\"\");}const shouldShow=chosenSet.has(path)&&!shownForPath.has(path);if(shouldShow){shownForPath.add(path);const originalDisplay=originalDisplayMapRef.current.get(element)||\"\";if(originalDisplay){element.style.display=originalDisplay;}else{element.style.removeProperty(\"display\");}}else{element.style.display=\"none\";}});startTransition(()=>setReady(true));};applySelection();const observer=new MutationObserver(mutations=>{for(const mutation of mutations){if(mutation.type===\"childList\"){applySelection();return;}if(mutation.type===\"attributes\"&&mutation.attributeName===\"href\"){applySelection();return;}}});observer.observe(root,{childList:true,subtree:true,attributes:true,attributeFilter:[\"href\"]});let lastPath=readCurrentPathname();const intervalId=window.setInterval(()=>{const nextPath=readCurrentPathname();if(nextPath!==lastPath){lastPath=nextPath;applySelection();}},150);return()=>{window.clearInterval(intervalId);observer.disconnect();restoreAll();};},[isCanvas]);const mergedStyle=useMemo(()=>({...props.style||{},visibility:isCanvas||ready?props.style?.visibility:\"hidden\"}),[isCanvas,props.style,ready]);return /*#__PURE__*/_jsx(Component,{...props,ref:setMergedRef,style:mergedStyle});}export function WorkRecommendations(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const query=props?.children?.props?.query;const renderFn=props?.children?.props?.children;const isCanvas=RenderTarget.current()===RenderTarget.canvas;if(isCanvas||!query||typeof renderFn!==\"function\"){return /*#__PURE__*/_jsx(Component,{...props,ref:ref});}return /*#__PURE__*/_jsx(WorkRecommendationsRuntime,{Component:Component,props:props,forwardedRef:ref,query:query,renderFn:renderFn});});}function WorkRecommendationsRuntime({Component,props,forwardedRef,query,renderFn}){const stableQuery=useMemo(()=>({...query,limit:undefined,offset:undefined}),[query]);const allFilteredResult=useQueryData(stableQuery);const[currentPathname,setCurrentPathname]=useState(\"\");const[pathnameReady,setPathnameReady]=useState(false);const[selectedState,setSelectedState]=useState({signature:\"\",slugs:null});const lastComputedSignatureRef=useRef(\"\");useEffect(()=>{if(typeof window===\"undefined\")return;const readPath=()=>window.location.pathname||\"\";let lastPath=readPath();if(lastPath){startTransition(()=>{setCurrentPathname(lastPath);setPathnameReady(true);});}const intervalId=window.setInterval(()=>{const nextPath=readPath();if(nextPath!==lastPath){lastPath=nextPath;startTransition(()=>{setCurrentPathname(nextPath);if(nextPath)setPathnameReady(true);});}},200);return()=>window.clearInterval(intervalId);},[]);const selectionContext=useMemo(()=>{if(!hasKnownQueryShape(allFilteredResult)){return{canRender:false,payloadShape:null,signature:\"\",currentSlug:\"\",eligibleSlugs:[],allPoolSlugs:[],bySlug:new Map};}const allItems=extractQueryItems(allFilteredResult);const currentSlug=normalizeSlugFromPath(currentPathname);const currentPath=normalizePathname(currentPathname);const bySlug=new Map;const allPoolSlugs=[];for(const item of allItems){const slug=readItemSlug(item);if(!slug)continue;if(!allPoolSlugs.includes(slug))allPoolSlugs.push(slug);if(!bySlug.has(slug))bySlug.set(slug,item);}const eligibleSlugs=allPoolSlugs.filter(slug=>{if(currentSlug&&slug===currentSlug)return false;if(currentPath&&normalizeWorkPathFromHref(`/work/${slug}`)===currentPath){return false;}return true;});return{canRender:true,payloadShape:allFilteredResult,signature:`${currentSlug}|${eligibleSlugs.slice().sort().join(\"|\")}`,currentSlug,eligibleSlugs,allPoolSlugs,bySlug};},[allFilteredResult,currentPathname]);useEffect(()=>{if(!pathnameReady)return;if(!selectionContext.canRender){startTransition(()=>setSelectedState({signature:selectionContext.signature,slugs:[]}));return;}if(lastComputedSignatureRef.current===selectionContext.signature)return;lastComputedSignatureRef.current=selectionContext.signature;if(typeof window===\"undefined\")return;const pathKey=`work-recommendations:last-path:${selectionContext.currentSlug||\"root\"}`;const rawBag=readSessionValue(WORK_RECOMMENDATIONS_BAG_KEY);let order=[];let knownSeen=[];let deferredCurrent=[];try{const parsed=rawBag?JSON.parse(rawBag):null;order=uniqueStrings(Array.isArray(parsed?.order)?parsed.order:[]);knownSeen=uniqueStrings(Array.isArray(parsed?.knownSeen)?parsed.knownSeen:[]);deferredCurrent=uniqueStrings(Array.isArray(parsed?.deferredCurrent)?parsed.deferredCurrent:[]);}catch(_error){}const previousKnownSeen=new Set(knownSeen);const poolSet=new Set(selectionContext.allPoolSlugs);const preservedCurrentSlug=selectionContext.currentSlug;knownSeen=uniqueStrings([...knownSeen.filter(slug=>poolSet.has(slug)||preservedCurrentSlug&&slug===preservedCurrentSlug),...selectionContext.allPoolSlugs]);order=uniqueStrings(order.filter(slug=>poolSet.has(slug)||preservedCurrentSlug&&slug===preservedCurrentSlug));deferredCurrent=uniqueStrings(deferredCurrent.filter(slug=>poolSet.has(slug)||preservedCurrentSlug&&slug===preservedCurrentSlug));if(selectionContext.currentSlug&&poolSet.has(selectionContext.currentSlug)&&!deferredCurrent.includes(selectionContext.currentSlug)){deferredCurrent.push(selectionContext.currentSlug);}const eligibleSet=new Set(selectionContext.eligibleSlugs);const restoredDeferred=deferredCurrent.filter(slug=>slug!==selectionContext.currentSlug&&eligibleSet.has(slug)&&!order.includes(slug));if(restoredDeferred.length>0){order=[...order,...restoredDeferred];deferredCurrent=deferredCurrent.filter(slug=>!restoredDeferred.includes(slug));}const newlyEligible=selectionContext.eligibleSlugs.filter(slug=>!previousKnownSeen.has(slug)&&!order.includes(slug));if(newlyEligible.length>0){order=[...order,...randomizeArray(newlyEligible)];}const missingEligible=selectionContext.eligibleSlugs.filter(slug=>!order.includes(slug)&&!deferredCurrent.includes(slug));if(order.filter(slug=>eligibleSet.has(slug)).length===0&&missingEligible.length>0){order=[...order,...randomizeArray(missingEligible)];}const previousGlobalPair=readSessionValue(WORK_RECOMMENDATIONS_LAST_GLOBAL_KEY);const previousPathPair=readSessionValue(pathKey);const blocked=new Set([previousGlobalPair,previousPathPair].filter(Boolean));const chooseFromOrder=source=>{const chosen=[];const remaining=[];let first=\"\";for(const slug of source){if(!eligibleSet.has(slug)){remaining.push(slug);continue;}if(slug===selectionContext.currentSlug){if(!deferredCurrent.includes(slug))deferredCurrent.push(slug);continue;}first=slug;break;}if(!first){return{chosen,remaining:source.slice()};}chosen.push(first);let second=\"\";for(const slug of source){if(slug===first)continue;if(!eligibleSet.has(slug)||slug===selectionContext.currentSlug)continue;const key=buildPairKey(first,slug);if(blocked.has(key))continue;second=slug;break;}if(!second){for(const slug of source){if(slug===first)continue;if(!eligibleSet.has(slug)||slug===selectionContext.currentSlug)continue;second=slug;break;}}if(second&&second!==first)chosen.push(second);const consumed=new Set(chosen);for(const slug of source){if(consumed.has(slug))continue;remaining.push(slug);}return{chosen,remaining:uniqueStrings(remaining)};};let picked=chooseFromOrder(order);if(picked.chosen.length===0&&selectionContext.eligibleSlugs.length>0){order=[...order,...randomizeArray(selectionContext.eligibleSlugs)];picked=chooseFromOrder(order);}else if(picked.chosen.length===1){const first=picked.chosen[0];const refillCandidates=randomizeArray(selectionContext.eligibleSlugs.filter(slug=>slug!==first&&slug!==selectionContext.currentSlug&&!picked.remaining.includes(slug)));if(refillCandidates.length>0){const nonBlocked=refillCandidates.filter(slug=>!blocked.has(buildPairKey(first,slug)));const second=(nonBlocked.length>0?nonBlocked[0]:refillCandidates[0])||\"\";if(second){picked={chosen:[first,second],remaining:uniqueStrings([...picked.remaining,...refillCandidates.filter(slug=>slug!==second),...deferredCurrent])};}}}const chosenKey=picked.chosen.length===2?buildPairKey(picked.chosen[0],picked.chosen[1]):\"\";writeSessionValue(WORK_RECOMMENDATIONS_BAG_KEY,JSON.stringify({order:picked.remaining,knownSeen,deferredCurrent:uniqueStrings(deferredCurrent)}));if(chosenKey){writeSessionValue(WORK_RECOMMENDATIONS_LAST_GLOBAL_KEY,chosenKey);writeSessionValue(pathKey,chosenKey);}startTransition(()=>setSelectedState({signature:selectionContext.signature,slugs:picked.chosen}));},[pathnameReady,selectionContext.canRender,selectionContext.signature]);if(!selectionContext.canRender){return /*#__PURE__*/_jsx(Component,{...props,ref:forwardedRef});}const safeSelectedSlugs=selectedState.signature===selectionContext.signature?selectedState.slugs:null;const selectedItems=safeSelectedSlugs&&selectionContext.bySlug?safeSelectedSlugs.map(slug=>selectionContext.bySlug.get(slug)).filter(item=>Boolean(item)):[];const resultForRender=replaceQueryItemsShape(selectionContext.payloadShape,selectedItems);if(!resultForRender){return /*#__PURE__*/_jsx(Component,{...props,ref:forwardedRef});}if(typeof window===\"undefined\"||!safeSelectedSlugs){const emptyResult=replaceQueryItemsShape(selectionContext.payloadShape,[]);return /*#__PURE__*/_jsx(Component,{...props,ref:forwardedRef,children:emptyResult?renderFn(emptyResult):null});}return /*#__PURE__*/_jsx(Component,{...props,ref:forwardedRef,children:renderFn(resultForRender)});}// Shared work-page dock. Uses home-page CMS thumbnails and never includes this project.\nexport function AdjacentWork(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const findCollection=(node,depth=0)=>{if(!node||depth>8)return null;if(node.props?.query&&typeof node.props.children===\"function\")return node;const children=Array.isArray(node)?node:node.props?.children;if(typeof children===\"function\")return null;for(const child of Children.toArray(children)){const found=findCollection(child,depth+1);if(found)return found;}return null;};const collection=findCollection(props.children);const query=collection?.props?.query;return query?/*#__PURE__*/_jsx(WorkProjectDock,{originalProps:props,forwardedRef:ref,query:query,renderItems:collection.props.children}):/*#__PURE__*/_jsx(Component,{...props,ref:ref});});}function WorkProjectDock({originalProps,forwardedRef,query,renderItems}){const expandedQuery=useMemo(()=>({...query,limit:undefined,offset:undefined,select:[...(query.select||[]).filter(field=>![\"MH7EllWrG\",\"TNKGhpdHo\",\"dH5PZF9U9\",\"f4XMcLDap\"].includes(field.name)),...[\"MH7EllWrG\",\"TNKGhpdHo\",\"dH5PZF9U9\",\"f4XMcLDap\"].map(name=>({collection:query.from.alias,name,type:\"Identifier\"}))]}),[query]);const items=extractQueryItems(useQueryData(expandedQuery));const canvas=RenderTarget.current()===RenderTarget.canvas;const[page,setPage]=useState({slug:\"\",title:\"\",seed:\"\",locked:true});const root=useRef(null);const[active,setActive]=useState(-1);const[footerEngaged,setFooterEngaged]=useState(false);const reduceDockMotion=useReducedMotion();const activeCard=reduceDockMotion?-1:active;const[projectCount,setProjectCount]=useState(5);useEffect(()=>{// Homepage columns: 6 / 5 / 4 / 3 / 2, plus two footer projects.\nconst resize=()=>{const width=window.innerWidth;setProjectCount(width>=1956?8:width>=1728?7:width>=1200?6:width>=810?5:4);setActive(-1);};resize();window.addEventListener(\"resize\",resize);return()=>window.removeEventListener(\"resize\",resize);},[]);useEffect(()=>{const read=()=>{const slug=normalizeSlugFromPath(window.location.pathname);const title=(document.querySelector(\"h1\")?.textContent||document.title.split(\" — \")[0]).trim();const locked=!!document.querySelector('[data-work-media] [data-framer-name=\"Locked (Content)\"]');setPage(old=>old.slug===slug&&old.title===title&&old.locked===locked?old:{slug,title,locked,seed:Math.random().toString(36).slice(2)});};read();const timer=window.setInterval(read,300);return()=>window.clearInterval(timer);},[]);const eligible=items.filter(item=>isPresentAtHome(item)&&readItemSlug(item)!==page.slug&&(!page.title||readItemTitle(item).trim()!==page.title)).filter((item,index,all)=>all.findIndex(other=>readItemSlug(other)===readItemSlug(item))===index);const eligibleKey=eligible.map(readItemSlug).join(\"|\");const randomOrder=useMemo(()=>{const slugs=eligible.map(readItemSlug);return canvas?slugs:shuffleArray(slugs);},[eligibleKey,page.seed,canvas]);const selected=randomOrder.slice(0,projectCount).map(slug=>eligible.find(item=>readItemSlug(item)===slug)).filter(Boolean);const signature=selected.map(readItemSlug).join(\"|\");useLayoutEffect(()=>{const node=root.current;if(!node)return;const measure=()=>{const nav=node.querySelector(\"nav\");const track=node.querySelector(\".work-dock-track\");if(!nav||!track)return;const gap=parseFloat(getComputedStyle(track).columnGap)||0;const size=(node.clientWidth-(selected.length-1)*gap)/selected.length;node.style.setProperty(\"--dock-recess\",nav.clientHeight-size+\"px\");};measure();const observer=new ResizeObserver(measure);observer.observe(node);return()=>observer.disconnect();},[signature]);useLayoutEffect(()=>{const cards=Array.from(root.current?.querySelectorAll('[data-framer-name=\"Project\"]')||[]);const weights=cards.map((_,index)=>index===activeCard?1.05:activeCard>=0&&Math.abs(index-activeCard)===1?1.015:1);const total=weights.reduce((sum,weight)=>sum+weight,0)||1;cards.forEach((card,index)=>{card.setAttribute(\"aria-label\",readItemTitle(selected[index]));card.setAttribute(\"title\",readItemTitle(selected[index]));// Redistribute actual square widths, preserving both row endpoints.\ncard.style.setProperty(\"--dock-share\",String(weights[index]*cards.length/total));card.style.setProperty(\"--dock-lift\",index===activeCard?\"-12px\":activeCard>=0&&Math.abs(index-activeCard)===1?\"-6px\":\"0px\");card.style.zIndex=index===activeCard?\"3\":\"1\";});},[signature,activeCard]);useLayoutEffect(()=>{const node=root.current;const content=node?.parentElement?.parentElement?.previousElementSibling;if(!node||!content)return;const update=()=>{const nav=node.querySelector(\"nav\");const track=node.querySelector(\".work-dock-track\");if(!nav||!track)return;const n=selected.length;const gap=parseFloat(getComputedStyle(track).columnGap)||0;const size=(node.clientWidth-(n-1)*gap)/n;const navBottom=nav.getBoundingClientRect().bottom;const top=footerEngaged&&!reduceDockMotion?navBottom-12-size*(1.05*n/(n+.05+(n>2?.015:0))):navBottom-size;const currentY=parseFloat(getComputedStyle(content).translate.split(\" \")[1])||0;const naturalBottom=content.getBoundingClientRect().bottom-currentY;content.style.transition=window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches?\"none\":\"translate 260ms cubic-bezier(.2,.75,.2,1)\";content.style.translate=\"0 \"+(top-20-naturalBottom)+\"px\";};const previousTranslate=content.style.translate;const previousTransition=content.style.transition;update();const resizeObserver=new ResizeObserver(update);resizeObserver.observe(node);resizeObserver.observe(content);window.addEventListener(\"resize\",update);return()=>{resizeObserver.disconnect();window.removeEventListener(\"resize\",update);content.style.translate=previousTranslate;content.style.transition=previousTransition;};},[signature,footerEngaged,reduceDockMotion]);const activate=event=>{if(event.pointerType===\"touch\"||reduceDockMotion)return;const card=event.target.closest?.('[data-framer-name=\"Project\"]');const cards=Array.from(root.current?.querySelectorAll('[data-framer-name=\"Project\"]')||[]);if(card){setActive(cards.indexOf(card));return;}if(typeof event.clientX===\"number\"){let nearest=-1,distance=Infinity;cards.forEach((node,index)=>{const bounds=node.getBoundingClientRect();const delta=Math.abs(event.clientX-(bounds.left+bounds.width/2));if(delta<distance&&delta<bounds.width*.65){nearest=index;distance=delta;}});setActive(nearest);}};if(!canvas&&!page.seed)return /*#__PURE__*/_jsx(\"div\",{style:{...originalProps.style,width:\"100%\",height:200}});if(!selected.length)return null;return /*#__PURE__*/_jsxs(\"div\",{ref:node=>{root.current=node;if(typeof forwardedRef===\"function\")forwardedRef(node);else if(forwardedRef)forwardedRef.current=node;},\"data-work-project-dock\":\"\",style:{\"--dock-count\":selected.length,...originalProps.style,display:\"block\",width:\"100%\",height:\"auto\",minWidth:0},children:[/*#__PURE__*/_jsx(\"style\",{children:dockStyles+projectLockCursorStyles(items)}),/*#__PURE__*/_jsx(ProjectLockCursor,{}),/*#__PURE__*/_jsx(\"nav\",{className:\"work-dock-window\",\"aria-label\":\"Explore more projects\",onPointerEnter:event=>{if(event.pointerType!==\"touch\")setFooterEngaged(true);},onPointerMove:activate,onPointerLeave:()=>{setActive(-1);setFooterEngaged(false);},onFocusCapture:event=>{setFooterEngaged(true);activate(event);},onBlurCapture:event=>{if(!event.currentTarget.contains(event.relatedTarget)){setActive(-1);setFooterEngaged(false);}},children:/*#__PURE__*/_jsx(\"div\",{className:\"work-dock-track\",children:renderItems(selected)})})]});}const dockStyles=`\n[data-work-project-dock] { container-type:inline-size; --dock-gap:10px; --dock-size:calc((100cqw - (var(--dock-count,8) - 1) * var(--dock-gap)) / var(--dock-count,8)); }\n[data-work-project-dock] { margin-top:calc(20px - var(--dock-recess,0px)); padding-bottom:20px; }\ndiv:has(> div > [data-work-project-dock]) { padding:0!important; }\ndiv:has(> [data-work-project-dock]), div:has(> div > [data-work-project-dock]) { overflow:visible!important; }\n[data-work-project-dock] .work-dock-window { width:100%; height:calc(var(--dock-size) * 1.05 + 12px); overflow:hidden; scrollbar-width:none; overscroll-behavior-x:contain; }\n[data-work-project-dock] .work-dock-window::-webkit-scrollbar { display:none; }\n[data-work-project-dock] .work-dock-track { display:flex; flex-flow:row nowrap; align-items:flex-end; justify-content:flex-start; gap:var(--dock-gap); min-width:100%; width:calc(var(--dock-size) * var(--dock-count,8) + (var(--dock-count,8) - 1) * var(--dock-gap)); height:100%; box-sizing:border-box; padding:0; }\n[data-work-project-dock] [data-framer-name=\"Project\"] { --dock-card-size:calc(var(--dock-size) * var(--dock-share,1)); width:var(--dock-card-size)!important; height:var(--dock-card-size)!important; min-width:0!important; max-width:none!important; flex:0 0 auto!important; padding:0!important; margin:0!important; gap:0!important; display:block!important; position:relative!important; border-radius:16px!important; background:#f7f7f7!important; overflow:hidden!important; cursor:pointer; transform:translateY(var(--dock-lift,0px))!important; transition:width 260ms cubic-bezier(.2,.75,.2,1),height 260ms cubic-bezier(.2,.75,.2,1),transform 260ms cubic-bezier(.2,.75,.2,1)!important; }\n[data-work-project-dock] [data-framer-name=\"Photo\"] { position:absolute!important; inset:0!important; width:100%!important; height:100%!important; border-radius:inherit!important; margin:0!important; }\n[data-work-project-dock] [data-framer-name=\"Photo\"] img { width:100%!important; height:100%!important; object-fit:cover!important; }\n[data-work-project-dock] [data-framer-name=\"Title and Subtext\"] { display:none!important; }\n[data-work-project-dock] [data-framer-name=\"Project\"]:focus-visible { --dock-lift:-12px!important; outline:2px solid #555; outline-offset:-3px; }\n@media(max-width:809px) { [data-work-project-dock] { --dock-gap:8px; margin-top:calc(20px - var(--dock-recess,0px)); } [data-work-project-dock] [data-framer-name=\"Project\"] { border-radius:10px!important; } }\n@media(hover:none) { [data-work-project-dock] [data-framer-name=\"Project\"] { --dock-lift:0px!important; --dock-share:1!important; } }\n@media(prefers-reduced-motion:reduce) { [data-work-project-dock] [data-framer-name=\"Project\"] { transition:none!important; --dock-lift:0px!important; --dock-share:1!important; } }\n`;// CMS Status: Locked = KsoUCkOy8, Finished = Kh_dUfz2W.\nfunction projectLockCursorStyles(items){return items.filter(item=>String(item.f4XMcLDap??item.fields?.f4XMcLDap??\"\")===\"KsoUCkOy8\").map(item=>{const slug=item.TNKGhpdHo??item.fields?.TNKGhpdHo;if(!slug)return\"\";const card=`a:is([data-framer-name=\"Project Cards\"],[data-framer-name=\"Project\"]):is([href$=${JSON.stringify(\"/\"+slug)}],[href*=${JSON.stringify(\"/\"+slug+\"?\")}],[href*=${JSON.stringify(\"/\"+slug+\"#\")}])`;return`${card} { --ek-project-locked:1; } @media (any-hover:hover) { ${card}, ${card} * { cursor:none!important; } }`;}).join(\"\\n\");}// One visible cursor: replace Framer's eyes while over CMS-locked work.\nexport function ProjectLockCursor(){const[pointer,setPointer]=useState(null);const last=useRef(null);useEffect(()=>{if(RenderTarget.current()===RenderTarget.canvas)return;const update=(target,x,y)=>{const card=target instanceof Element?target.closest('a[data-framer-name=\"Project Cards\"],a[data-framer-name=\"Project\"]'):null;const locked=card&&getComputedStyle(card).getPropertyValue(\"--ek-project-locked\").trim()===\"1\";setPointer(locked?{x,y}:null);};const move=event=>{if(event.pointerType===\"touch\"){setPointer(null);return;}last.current={x:event.clientX,y:event.clientY};update(event.target,event.clientX,event.clientY);};const out=event=>update(event.relatedTarget,event.clientX,event.clientY);const clear=()=>{last.current=null;setPointer(null);};const scroll=()=>{const point=last.current;if(point)update(document.elementFromPoint(point.x,point.y),point.x,point.y);};document.addEventListener(\"pointermove\",move,{passive:true});document.addEventListener(\"pointerover\",move,{passive:true});document.addEventListener(\"pointerout\",out,{passive:true});document.addEventListener(\"scroll\",scroll,{passive:true,capture:true});window.addEventListener(\"blur\",clear);return()=>{document.removeEventListener(\"pointermove\",move);document.removeEventListener(\"pointerover\",move);document.removeEventListener(\"pointerout\",out);document.removeEventListener(\"scroll\",scroll,true);window.removeEventListener(\"blur\",clear);};},[]);if(!pointer||typeof document===\"undefined\")return null;return /*#__PURE__*/createPortal(/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`.framer-TiOOt { visibility:hidden!important; }`}),/*#__PURE__*/_jsx(\"div\",{\"data-ek-lock-cursor\":\"\",\"aria-hidden\":\"true\",style:{position:\"fixed\",left:pointer.x,top:pointer.y,transform:\"translate(-50%,-50%)\",width:30,height:30,display:\"grid\",placeItems:\"center\",fontFamily:'\"Apple Color Emoji\", \"Segoe UI Emoji\", \"Noto Color Emoji\", sans-serif',fontSize:26,lineHeight:1,pointerEvents:\"none\",userSelect:\"none\",zIndex:2147483647},children:\"🔒\"})]}),document.body);}\nexport const __FramerMetadata__ = {\"exports\":{\"AdjacentWork\":{\"type\":\"reactHoc\",\"name\":\"AdjacentWork\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"WorkCMSRandomPairList\":{\"type\":\"reactHoc\",\"name\":\"WorkCMSRandomPairList\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Shuffle\":{\"type\":\"reactHoc\",\"name\":\"Shuffle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"WorkRecommendations\":{\"type\":\"reactHoc\",\"name\":\"WorkRecommendations\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ShuffleCMSCollectionList\":{\"type\":\"reactHoc\",\"name\":\"ShuffleCMSCollectionList\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ProjectLockCursor\":{\"type\":\"reactComponent\",\"name\":\"ProjectLockCursor\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Shuffle.map"],"mappings":"A,iTAC8C,SAAS2B,EAAa,EAAM,CAAC,IAAI,IAAIC,EAAEC,EAAM,OAAO,EAAED,EAAE,EAAE,IAAI,CAAC,IAAMR,EAAE,KAAK,MAAM,KAAK,OAAO,GAAGQ,EAAE,EAAE,EAAE,CAACC,EAAMD,GAAGC,EAAMT,IAAI,CAACS,EAAMT,GAAGS,EAAMD,EAAE,CAAE,CAAC,OAAOC,CAAM,CAAC,SAASC,EAAkB,EAAe,CAA0N,OAArNC,EAA2B,MAAM,QAAQA,CAAc,EAASA,EAAkB,MAAM,QAAQA,GAAgB,KAAK,EAASA,EAAe,MAAS,MAAM,QAAQA,GAAgB,IAAI,EAASA,EAAe,KAAW,CAAC,EAAvM,CAAC,CAAwM,CAAC,SAASC,EAAe,EAAK,EAAK,CAAC,GAAG,CAACC,EAAK,OAAiB,IAAMC,EAAQ,CAACD,EAAKA,GAAM,OAAOA,GAAM,UAAUA,GAAM,IAAI,EAAE,IAAI,IAAME,KAAUD,EAAS,GAAIC,EAAgB,KAAI,IAAMC,KAAOC,EAAM,GAAGF,EAAOC,KAAO,IAAA,GAAU,OAAOD,EAAOC,EAAA,CAAwB,CAAC,SAASE,EAAU,EAAM,CAAgH,OAA5G,OAAOC,GAAQ,UAAiBA,EAAS,OAA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