{"version":3,"file":"UPC.BUTFD7lu.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx","useRef"],"sources":["https:/framerusercontent.com/modules/bDspiTYkSVWzPJC8JOob/Y1UQDHq3dvMcJZGNBGDB/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":"mLACwR,SAAgB,GAAS,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAOxI,SAAgB,EAAY,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAQ,EAAM,CAAC,CAAC,yBAR7T,IAA+C,IAQ6G,CAP1L,EAAW,GAAmB,GAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,OAAO,SAAS,MAAM,QAAQ,CAAC,CAAC,CAAkB,EAAW,GAAmB,GAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,OAAO,SAAS,MAAM,QAAQ,CAAC,CAAC,CAA2E,EAAkB,GAO5V,GAPiY,EAAM,IAAM,CAAC,IAAM,EAAaC,EAAO,KAAK,CAAO,MAA2B,CAAC,IAAM,EAAU,EAAa,QAAQ,GAAG,CAAC,EAAU,OAAO,IAAI,EAAM,MAAM,KAAK,EAAU,SAAS,CACtkB,IAAI,IAAI,EAAE,EAAM,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,IAAM,EAAE,KAAK,MAAM,KAAK,QAAQ,EAAE,EAAE,GAAG,CAAC,CAAC,EAAM,GAAG,EAAM,IAAI,CAAC,EAAM,GAAG,EAAM,GAAG,CACjH,IAAI,EAAc,EAAM,MAAM,EAAE,EAAE,CAClC,EAAU,gBAAgB,GAAG,EAAc,CAC3C,EAAU,MAAM,QAAQ,GAEvB,OAF2B,MAAc,CAAC,GAAwB,EAChE,EAAE,CAAC,CACe,EAAK,EAAU,CAAC,IAAI,EAAa,GAAG,EAAM,CAAC,EACf,CAA2T,EAAY,YAAY"}