{"version":3,"file":"ForceRandomClick.DokD6htR.mjs","names":["useState","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/gvDTTDLUK5jW05fWSuOY/vAEJ7MyaEOuKNpysXQHV/ForceRandomClick.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState}from\"react\";export function ForceResetOnClick(){// Keeps a counter state that increments on click\nconst[clickCount,setClickCount]=useState(0);return{// This 'key' forces the child marketplace component to re-initialize completely\nkey:`random-key-${clickCount}`,onTap(){setClickCount(prev=>prev+1);}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withForceResetOnClick(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ForceResetOnClick(props)});};}withForceResetOnClick.displayName=\"ForceResetOnClick\";\nexport const __FramerMetadata__ = {\"exports\":{\"ForceResetOnClick\":{\"type\":\"override\",\"name\":\"ForceResetOnClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withForceResetOnClick\":{\"type\":\"reactHoc\",\"name\":\"withForceResetOnClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ForceRandomClick.map"],"mappings":"0KAAuE,SAAgB,GAAmB,CAC1G,GAAK,CAAC,EAAW,GAAeA,EAAS,CAAC,EAAE,MAAM,CAClD,IAAI,cAAc,IAAa,OAAO,CAAC,EAAc,GAAM,EAAK,CAAC,CAAE,CAAC,CAAE,CAAoJ,SAAgB,EAAsB,EAAE,CAAC,MAAO,KAAQ,EAA+BC,CAAuC,EAASC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAkB,CAAK,CAAC,CAAC,EAAI,iBAFxW,IAA4B,IAEmJ,EAA0L,EAAsB,YAAY"}