{ "version": 3, "sources": ["../../../../../../internal/esbuild/entrypoints/modern/classic/my-last-project.ts", "sentry-debug-id-stub:_sentry-debug-id-injection-stub?sentry-module-id=b17492d6-0833-4545-a527-b5aa93fcf37c", "../../../../../../internal/esbuild/entrypoints/modern/classic/my-last-project.ts", "../../src/modern/features/my-last-project/index.js"], "sourcesContent": ["\n import \"_sentry-debug-id-injection-stub\";\n import * as OriginalModule from \"./internal/esbuild/entrypoints/modern/classic/my-last-project.ts\";\n export default OriginalModule.default;\n export * from \"./internal/esbuild/entrypoints/modern/classic/my-last-project.ts\";", ";{try{(function(){var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"be412e97-e290-4e71-8937-483faabcbe3d\",e._sentryDebugIdIdentifier=\"sentry-dbid-be412e97-e290-4e71-8937-483faabcbe3d\");})();}catch(e){}};", "import '../../../../../src/ulule/static/site/src/modern/features/init/index.js'\nimport '../../../../../src/ulule/static/site/src/modern/features/password-indicator/index.js'\nimport '../../../../../src/ulule/static/site/src/modern/features/my-last-project/index.js'\n", "import { loadUser } from '$redux/actions/user'\n\nconst searchProject = () => {\n window.removeEventListener('js:location:loaded', searchProject)\n\n const { urls, user } = UFE\n\n if (!user.is_authenticated) {\n const next = encodeURIComponent(window.location.href)\n const url = `${urls.signin}?next=${next}`\n\n return (window.location = url)\n }\n\n loadUser('projects')\n .promise()\n .then(response => {\n const projects = response.projects || []\n const project = projects.find(project => project.state !== 'refused')\n const next = project\n ? `${window.location.origin}/projects/${project.id}/discussion${window.location.search}`\n : `${window.location.origin}/projects/create${window.location.search}`\n\n window.location = next\n })\n}\n\n// we wait for translations to be loaded\nwindow.addEventListener('js:location:loaded', searchProject)\n"], "mappings": "iyBAAAA,IAAAC,ICAAC,IAAAC,IAAE,GAAG,EAAE,UAAU,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,CAAC,EAAEC,EAAG,IAAI,EAAE,QAAO,MAAMA,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,EAAE,gBAAgBA,CAAC,EAAE,uCAAuC,EAAE,yBAAyB,mDAAoD,GAAG,CAAE,MAAS,CAAC,CCAnYC,IAAAC,ICAAC,IAAAC,IAEA,IAAMC,EAAgB,IAAM,CAC1B,OAAO,oBAAoB,qBAAsBA,CAAa,EAE9D,GAAM,CAAE,KAAAC,EAAM,KAAAC,CAAK,EAAI,IAEvB,GAAI,CAACA,EAAK,iBAAkB,CAC1B,IAAMC,EAAO,mBAAmB,OAAO,SAAS,IAAI,EAC9CC,EAAM,GAAGH,EAAK,MAAM,SAASE,CAAI,GAEvC,OAAQ,OAAO,SAAWC,CAC5B,CAEAC,EAAS,UAAU,EAChB,QAAQ,EACR,KAAKC,GAAY,CAEhB,IAAMC,GADWD,EAAS,UAAY,CAAC,GACd,KAAKC,GAAWA,EAAQ,QAAU,SAAS,EAC9DJ,EAAOI,EACT,GAAG,OAAO,SAAS,MAAM,aAAaA,EAAQ,EAAE,cAAc,OAAO,SAAS,MAAM,GACpF,GAAG,OAAO,SAAS,MAAM,mBAAmB,OAAO,SAAS,MAAM,GAEtE,OAAO,SAAWJ,CACpB,CAAC,CACL,EAGA,OAAO,iBAAiB,qBAAsBH,CAAa,EHzB7C,IAAOQ,EAAuB", "names": ["init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "n", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "searchProject", "urls", "user", "next", "url", "loadUser", "response", "project", "my_last_project_default"] }