{"version":3,"file":"RandomShuffle.2Iyy4CQj.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/jAYBaSWdvRobE9iyVkmq/CQF3wbearz80QYvBHOAv/RandomShuffle.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export const withShuffledItems=Component=>{const ShuffledComponent=props=>{const componentRef=useRef(null);const shuffleAndDisplayItems=()=>{const container=componentRef.current;if(!container)return;let items=Array.from(container.children);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]];}items.forEach(item=>{container.appendChild(item);});};useEffect(()=>{shuffleAndDisplayItems();},[]);return /*#__PURE__*/_jsx(Component,{ref:componentRef,...props});};return ShuffledComponent;};\nexport const __FramerMetadata__ = {\"exports\":{\"withShuffledItems\":{\"type\":\"reactHoc\",\"name\":\"withShuffledItems\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RandomShuffle.map"],"mappings":"2IAA0C,IAAoC,EAAc,EAAkB,GAAoC,GAAO,CAAC,IAAM,EAAaA,EAAO,IAAI,EAAQ,MAA2B,CAAC,IAAM,EAAU,EAAa,QAAQ,GAAG,CAAC,EAAU,OAAO,IAAI,EAAM,MAAM,KAAK,EAAU,QAAQ,EAAE,IAAI,IAAI,EAAE,EAAM,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,IAAM,EAAE,KAAK,MAAM,KAAK,OAAO,GAAG,EAAE,EAAE,EAAE,CAAC,EAAM,GAAG,EAAM,IAAI,CAAC,EAAM,GAAG,EAAM,EAAE,CAAE,CAAC,EAAM,QAAQ,GAAM,CAAC,EAAU,YAAY,CAAI,CAAE,CAAC,CAAE,EAAgD,OAA9C,MAAc,CAAC,EAAuB,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAU,CAAC,IAAI,EAAa,GAAG,CAAK,CAAC,CAAE"}