{"version":3,"file":"APIConfig.UCcjbPPr.mjs","names":["useRef"],"sources":["https:/framer.com/m/framer/store.js","https:/framerusercontent.com/modules/pTnDqFerENOwGwJIQOUA/Exz0HEWkR0PuiB7WdaR4/AuthStore.js","https:/framer.com/m/AuthStore-2sC0c8.js@Exz0HEWkR0PuiB7WdaR4","https:/framerusercontent.com/modules/QlJYtTxZ5mZdbtqe2YIq/pM4fKiiTvEKHHFpmsjOq/RequireLogin.js","https:/framerusercontent.com/modules/hDgZ6ToHxJMBESC7BKJe/90opd9IN9NMi7s0Fd2Hl/APIConfig.js"],"sourcesContent":["/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","import{createStore}from\"https://framer.com/m/framer/store.js\";export const useAuthStore=createStore({logged:null,user:null,status:null,lastCheck:0,activePopupId:null});\nexport const __FramerMetadata__ = {\"exports\":{\"useAuthStore\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AuthStore.map","/*\n * AuthStore\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/pTnDqFerENOwGwJIQOUA/Exz0HEWkR0PuiB7WdaR4/AuthStore.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef}from\"react\";import{useAuthStore}from\"https://framer.com/m/AuthStore-2sC0c8.js@Exz0HEWkR0PuiB7WdaR4\";export function RequireLoginForDownload(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[auth,setState]=useAuthStore();const authRef=useRef(auth);// tiene authRef sempre aggiornato\nuseEffect(()=>{authRef.current=auth;},[auth]);const onClick=e=>{e.preventDefault();e.stopPropagation();if(authRef.current.logged!==true){setState({activePopupId:\"login\"});return;}setState({activePopupId:\"alreadySubscribed\"});};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:onClick});});}\nexport const __FramerMetadata__ = {\"exports\":{\"RequireLoginForDownload\":{\"type\":\"reactHoc\",\"name\":\"RequireLoginForDownload\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RequireLogin.map","// !!! IMPORTANTE !!! CAMBIARE ANCHE IN SETTINGS --> REQUIRED LOGIN !!!\nexport const BASE_URL=\"https://api-dev.nextsim.racing\"//https://api.nextsim.racing or https://api-dev.nextsim.racing\n;export const API={downloadInstaller:BASE_URL+\"/download/installer\",accountStatus:BASE_URL+\"/web/account/status\",webMe:BASE_URL+\"/web/me\",logout:BASE_URL+\"/web/logout\",createCheckoutSession:BASE_URL+\"/create-checkout-session\",customerPortal:BASE_URL+\"/create-customer-portal-session\",discordAuthStart:BASE_URL+\"/auth/discord/start?type=web\"};\nexport const __FramerMetadata__ = {\"exports\":{\"BASE_URL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"API\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./APIConfig.map"],"mappings":"0NCA8D,CAAa,EAAa,EAAY,CAAC,OAAO,KAAK,KAAK,KAAK,OAAO,KAAK,UAAU,EAAE,cAAc,KAAK,CAAC,qBEAW,SAAgB,EAAwB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAK,GAAU,GAAc,CAAO,EAAQA,EAAO,EAAK,CAChV,MAAc,CAAC,EAAQ,QAAQ,GAAO,CAAC,EAAK,CAAC,CAAC,IAAM,EAAQ,GAAG,CAAwC,GAAvC,EAAE,gBAAgB,CAAC,EAAE,iBAAiB,CAAI,EAAQ,QAAQ,SAAS,GAAK,CAAC,EAAS,CAAC,cAAc,QAAQ,CAAC,CAAC,OAAQ,EAAS,CAAC,cAAc,oBAAoB,CAAC,EAAG,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAc,UAAQ,CAAC,EAAG,kBADjQ,IAA+C,IAAwF,kBCCrK,EAAS,iCACR,EAAI,CAAC,kBAAkB,EAAS,sBAAsB,cAAc,EAAS,sBAAsB,MAAM,EAAS,UAAU,OAAO,EAAS,cAAc,sBAAsB,EAAS,2BAA2B,eAAe,EAAS,kCAAkC,iBAAiB,EAAS,+BAA+B"}