{"version":3,"file":"Random.Q_soikUT.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/8C8vRHkWhdLnvlO1BWAV/XKVyDfl1swADIyGaFuFw/Random.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export const withShuffledAriaLabels=Component=>{const ShuffledComponent=props=>{const componentRef=useRef(null);const shuffleItems=()=>{const container=componentRef.current;const items=Array.from(container.querySelectorAll('[aria-label=\"project-item\"]'));// Shuffle the array for (let i = items.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)) ;[items[i], items[j]] = [items[j], items[i]] }\nreturn items;};const displayFirstTwoItems=items=>{items.forEach((item,index)=>{item.style.display=index<2?\"\":\"none\";});};useEffect(()=>{const shuffledItems=shuffleItems();},[])// Empty dependency array ensures this runs once after initial render\n;return /*#__PURE__*/_jsx(Component,{ref:componentRef,...props});};return ShuffledComponent;};\nexport const __FramerMetadata__ = {\"exports\":{\"withShuffledAriaLabels\":{\"type\":\"reactHoc\",\"name\":\"withShuffledAriaLabels\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Random.map"],"mappings":"4IAA2C,IAAoC,CAAa,EAAuB,GAAoC,GAAO,CAAC,IAAM,EAAaA,EAAO,KAAK,CAAO,MAAiB,CAAC,IAAM,EAAU,EAAa,QACpP,OADwQ,MAAM,KAAK,EAAU,iBAAiB,8BAA8B,CAAC,EAE5U,OADwH,MAAc,CAAqB,GAAc,EAAG,EAAE,CAAC,CAC3J,EAAK,EAAU,CAAC,IAAI,EAAa,GAAG,EAAM,CAAC"}