{"version":3,"file":"MainStore.DB548G_o.mjs","names":["useState","useCallback"],"sources":["https:/framerusercontent.com/modules/wqaxhpCrqTSMPcsuveFJ/OvrAK5GukuXUY8k5T2OK/MainStore.js"],"sourcesContent":["import{useState,useCallback,useEffect}from\"react\";let globalStore={dealId:null,investmenttvalue:null,current_step_url:null};const listeners=new Set;function notifyListeners(){listeners.forEach(listener=>listener());}export function useGlobalStore(){const[,forceUpdate]=useState({});const setStore=useCallback(updates=>{globalStore={...globalStore,...updates};notifyListeners();},[]);useEffect(()=>{const listener=()=>forceUpdate({});listeners.add(listener);return()=>{listeners.delete(listener);};},[]);return[globalStore,setStore];}\nexport const __FramerMetadata__ = {\"exports\":{\"useGlobalStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MainStore.map"],"mappings":"kHAAoJ,SAAS,GAAiB,CAAC,EAAU,QAAQ,GAAU,GAAU,CAAC,CAAE,SAAgB,GAAgB,CAAC,GAAK,EAAE,GAAaA,EAAS,EAAE,CAAC,CAAO,EAASC,EAAY,GAAS,CAAC,EAAY,CAAC,GAAG,EAAY,GAAG,EAAQ,CAAC,GAAiB,EAAG,EAAE,CAAC,CAAyH,OAAxH,MAAc,CAAC,IAAM,MAAa,EAAY,EAAE,CAAC,CAAyB,OAAxB,EAAU,IAAI,EAAS,KAAW,CAAC,EAAU,OAAO,EAAS,GAAK,EAAE,CAAC,CAAO,CAAC,EAAY,EAAS,sBAAje,CAAI,EAAY,CAAC,OAAO,KAAK,iBAAiB,KAAK,iBAAiB,KAAK,CAAO,EAAU,IAAI"}