{"version":3,"file":"UPC.Cf3Z2dDK.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/YXqT3v7aJ6gkwzbnxyBX/C96k3jS636Tb2MxUAEBS/UPC.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,forwardRef}from\"react\";// Higher-order component that ensures 100vh sizing for the component\nexport const with100svh=Component=>{return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{height:\"100svh\",width:\"100vw\"}});};};export const with100dvh=Component=>{return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{height:\"100dvh\",width:\"100vw\"}});};};export function TextBox(){return{style:{columnCount:2}};}export const withShuffledItems=Component=>{const ShuffledComponent=(props,ref)=>{const componentRef=useRef(null);const shuffleAndDisplayItems=()=>{const container=componentRef.current;if(!container)return;let items=Array.from(container.children);// Shuffle the array\nfor(let i=items.length-1;i>0;i--){const j=Math.floor(Math.random()*(i+1));[items[i],items[j]]=[items[j],items[i]];}// Get the first 3 shuffled items\nlet selectedItems=items.slice(0,3);// Clear the container and append the selected 3 items\ncontainer.replaceChildren(...selectedItems);// Show the container now that it's trimmed to 3 items\ncontainer.style.opacity=1;};useEffect(()=>{shuffleAndDisplayItems()// Shuffle and display items on component mount\n;},[])// Empty dependency array ensures this runs once after the initial render\n;return /*#__PURE__*/_jsx(Component,{ref:componentRef,...props});};// Wrap the component with forwardRef to handle refs properly\nreturn /*#__PURE__*/forwardRef(ShuffledComponent);};import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withTextBox(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...TextBox(props)});};}withTextBox.displayName=\"TextBox\";\nexport const __FramerMetadata__ = {\"exports\":{\"withTextBox\":{\"type\":\"reactHoc\",\"name\":\"withTextBox\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TextBox\":{\"type\":\"override\",\"name\":\"TextBox\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"with100dvh\":{\"type\":\"reactHoc\",\"name\":\"with100dvh\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"with100svh\":{\"type\":\"reactHoc\",\"name\":\"with100svh\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withShuffledItems\":{\"type\":\"reactHoc\",\"name\":\"withShuffledItems\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UPC.map"],"mappings":"oKACwR,SAAgB,GAAS,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAE,CAOzI,SAAgB,EAAY,EAAE,CAAC,MAAO,KAAQ,EAA+BA,CAAuC,EAASC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAQ,CAAK,CAAC,CAAC,EAAI,mBARjU,IAA+C,IAQ6G,EAP7C,EAAW,GAAmB,GAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,OAAO,SAAS,MAAM,OAAO,CAAC,CAAC,EAO0F,EAAY,YAAY"}