/home/techb158/balavpn.abdallabala.com/.next/cache/webpack/client-production
NameSizeModeActions
0.pack151902800666editdlrm
1.pack10575480666editdlrm
2.pack101655780666editdlrm
3.pack27605650666editdlrm
4.pack39280666editdlrm
5.pack534490666editdlrm
6.pack39280666editdlrm
7.pack39280666editdlrm
8.pack39280666editdlrm
9.pack222120666editdlrm
10.pack2434950666editdlrm
11.pack39280666editdlrm
12.pack39280666editdlrm
13.pack39280666editdlrm
14.pack27941130666editdlrm
15.pack404710666editdlrm
16.pack405510666editdlrm
17.pack4487160666editdlrm
index.pack38735700666editdlrm
index.pack.old38730950666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/.next/cache/webpack/client-production/5.pack (53449B)
wpcwebpack/lib/cache/PackFileCacheStrategyPackContentItems ` Compilation/modules|javascript/auto|C:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\build\webpack\loaders\next-flight-client-module-loader.js!C:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js??ruleSet[1].rules[16].oneOf[6].use[1]!C:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\src\app\login\page.jsx|app-pages-browserCompilation/modules|javascript/auto|C:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\build\webpack\loaders\next-flight-client-module-loader.js!C:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js??ruleSet[1].rules[16].oneOf[6].use[1]!C:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\src\app\signup\page.jsx|app-pages-browserFlagDependencyExportsPlugin|javascript/auto|C:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\build\webpack\loaders\next-flight-client-module-loader.js!C:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js??ruleSet[1].rules[16].oneOf[6].use[1]!C:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\src\app\login\page.jsx|app-pages-browserFlagDependencyExportsPlugin|javascript/auto|C:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\build\webpack\loaders\next-flight-client-module-loader.js!C:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js??ruleSet[1].rules[16].oneOf[6].use[1]!C:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\src\app\signup\page.jsx|app-pages-browserMinifierWebpackPlugin|static/chunks/app/login/page-92ff86948d98c9ae.jsMinifierWebpackPlugin|static/chunks/app/signup/page-3b97361eaf43a461.jsMinifierWebpackPlugin|static/9LLIAw9jUzdCrS2s6PGiX/_ssgManifest.jsMinifierWebpackPlugin|static/9LLIAw9jUzdCrS2s6PGiX/_buildManifest.jsRealContentHashPlugin|analyse|static/chunks/app/login/page-92ff86948d98c9ae.jsRealContentHashPlugin|analyse|static/chunks/app/signup/page-3b97361eaf43a461.jsRealContentHashPlugin|analyse|static/9LLIAw9jUzdCrS2s6PGiX/_ssgManifest.jsRealContentHashPlugin|analyse|static/9LLIAw9jUzdCrS2s6PGiX/_buildManifest.jsRealContentHashPlugin|generate|static/9LLIAw9jUzdCrS2s6PGiX/_buildManifest.jswebpack/lib/NormalModulewebpack/lib/util/registerExternalSerializerwebpack-sources/RawSource5/* __next_internal_client_entry_do_not_use__ default auto */ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; import { useState, useEffect } from "react"; import { useRouter } from "next/navigation"; const DEMO_CREDENTIALS = [ { role: "Platform Owner", email: "owner@cosmic.local", password: "cosmic123" }, { role: "Admin", email: "admin@cosmic.local", password: "admin123" }, { role: "Project Manager", email: "pm@cosmic.local", password: "pm123" }, { role: "Risk Owner", email: "risk-owner@cosmic.local", password: "risk123" }, { role: "Viewer", email: "viewer@cosmic.local", password: "view123" } ]; export default function LoginPage() { const router = useRouter(); const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const [error, setError] = useState(""); const [loading, setLoading] = useState(false); const [ssoEnabled, setSsoEnabled] = useState(false); const [showDemo, setShowDemo] = useState(false); useEffect(()=>{ fetch("/api/auth/sso").then((res)=>{ if (res.status !== 501) setSsoEnabled(true); }).catch(()=>{}); }, []); async function handleSubmit(event) { event.preventDefault(); setError(""); setLoading(true); try { const res = await fetch("/api/auth/login", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ email, password }) }); if (!res.ok) { const data = await res.json(); throw new Error(data.error || "Login failed"); } router.push("/dashboard"); } catch (err) { setError(err.message); setLoading(false); } } function fillDemo(email, password) { setEmail(email); setPassword(password); } return /*#__PURE__*/ _jsx("main", { className: "shell", style: { display: "flex", alignItems: "center", justifyContent: "center", minHeight: "100vh" }, children: /*#__PURE__*/ _jsxs("div", { className: "panel", style: { maxWidth: 420, width: "100%", padding: 32 }, children: [ /*#__PURE__*/ _jsx("div", { className: "brand", style: { fontSize: 24, marginBottom: 24, textAlign: "center" }, children: "COSMIC AI-Risk SaaS" }), /*#__PURE__*/ _jsx("h2", { style: { marginBottom: 8 }, children: "Sign in" }), /*#__PURE__*/ _jsx("p", { className: "muted", style: { marginBottom: 24 }, children: "Enter your credentials to access the dashboard" }), error && /*#__PURE__*/ _jsx("div", { style: { background: "var(--blocked-soft)", color: "var(--blocked)", padding: "8px 12px", borderRadius: 8, marginBottom: 16, fontSize: 14 }, children: error }), /*#__PURE__*/ _jsxs("form", { onSubmit: handleSubmit, children: [ /*#__PURE__*/ _jsxs("div", { style: { marginBottom: 16 }, children: [ /*#__PURE__*/ _jsx("label", { style: { display: "block", marginBottom: 4, fontSize: 14, fontWeight: 600 }, children: "Email" }), /*#__PURE__*/ _jsx("input", { type: "email", value: email, onChange: (e)=>setEmail(e.target.value), required: true, style: { width: "100%", padding: "10px 12px", borderRadius: 8, border: "1px solid var(--line)", fontSize: 16, boxSizing: "border-box" } }) ] }), /*#__PURE__*/ _jsxs("div", { style: { marginBottom: 24 }, children: [ /*#__PURE__*/ _jsx("label", { style: { display: "block", marginBottom: 4, fontSize: 14, fontWeight: 600 }, children: "Password" }), /*#__PURE__*/ _jsx("input", { type: "password", value: password, onChange: (e)=>setPassword(e.target.value), required: true, style: { width: "100%", padding: "10px 12px", borderRadius: 8, border: "1px solid var(--line)", fontSize: 16, boxSizing: "border-box" } }) ] }), /*#__PURE__*/ _jsx("button", { type: "submit", className: "button primary", style: { width: "100%", padding: "12px 24px", fontSize: 16 }, disabled: loading, children: loading ? "Signing in..." : "Sign in" }) ] }), ssoEnabled && /*#__PURE__*/ _jsxs(_Fragment, { children: [ /*#__PURE__*/ _jsxs("div", { style: { display: "flex", alignItems: "center", gap: 12, margin: "16px 0" }, children: [ /*#__PURE__*/ _jsx("hr", { style: { flex: 1, border: "none", borderTop: "1px solid var(--line)" } }), /*#__PURE__*/ _jsx("span", { className: "muted", style: { fontSize: 12 }, children: "OR" }), /*#__PURE__*/ _jsx("hr", { style: { flex: 1, border: "none", borderTop: "1px solid var(--line)" } }) ] }), /*#__PURE__*/ _jsx("a", { href: "/api/auth/sso", className: "button secondary", style: { width: "100%", padding: "12px 24px", fontSize: 16, textAlign: "center" }, children: "Sign in with SSO" }) ] }), /*#__PURE__*/ _jsxs("div", { style: { marginTop: 16 }, children: [ /*#__PURE__*/ _jsx("button", { onClick: ()=>setShowDemo(!showDemo), style: { background: "none", border: "none", color: "var(--green)", cursor: "pointer", fontSize: 14, width: "100%", textAlign: "center" }, children: showDemo ? "Hide demo credentials" : "Show demo credentials" }), showDemo && /*#__PURE__*/ _jsxs("div", { style: { marginTop: 12, fontSize: 13, background: "var(--bg-soft)", borderRadius: 8, padding: 12 }, children: [ /*#__PURE__*/ _jsx("p", { className: "muted", style: { marginBottom: 8 }, children: "Click a row to auto-fill:" }), DEMO_CREDENTIALS.map((d)=>/*#__PURE__*/ _jsxs("div", { onClick: ()=>fillDemo(d.email, d.password), style: { cursor: "pointer", padding: "6px 8px", borderRadius: 6, display: "flex", justifyContent: "space-between", alignItems: "center" }, onMouseEnter: (e)=>e.currentTarget.style.background = "var(--line)", onMouseLeave: (e)=>e.currentTarget.style.background = "transparent", children: [ /*#__PURE__*/ _jsx("span", { style: { fontWeight: 600 }, children: d.role }), /*#__PURE__*/ _jsx("span", { className: "muted", style: { fontSize: 12 }, children: d.email }) ] }, d.email)) ] }) ] }), /*#__PURE__*/ _jsx("p", { style: { marginTop: 16, textAlign: "center", fontSize: 14 }, children: /*#__PURE__*/ _jsx("a", { href: "/signup", style: { color: "var(--green)" }, children: "Create an account" }) }) ] }) }); } exportsTypenamespace javascript/autoapp-pages-browserC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\src\app\loginaliasfullySpecifiedmainFieldsfallback`$server-only$client-only$next/dist/compiled/client-only$next/dist/compiled/server-onlyC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\head.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\image.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\constants.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\router.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dynamic.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\script.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\link.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\form.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\navigation.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\headers.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\og.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\server.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\document.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\app.jsreact$react/compiler-runtime$react/jsx-dev-runtime$react/jsx-runtime$react-dom$react-dom/client$react-dom/server$react-dom/server.browser$react-dom/server.edge$react-dom/static$react-dom/static.browser$react-dom/static.edge$react-server-dom-webpack/client$react-server-dom-webpack/server$react-server-dom-webpack/server.node$react-server-dom-webpack/static$@vercel/turbopack-ecmascript-runtime/browser/dev/hmr-client/hmr-client.tsnextnext/dist/compiled/server-only/indexnext/dist/compiled/client-only/indexnext/dist/client/components/noop-headnext/dist/api/imagenext/dist/api/constantsnext/dist/api/routernext/dist/api/app-dynamicnext/dist/api/scriptnext/dist/client/app-dir/linknext/dist/client/app-dir/formnext/dist/api/navigationnext/dist/api/headersnext/dist/api/ognext/dist/api/servernext/dist/api/documentnext/dist/api/appnext/dist/compiled/reactnext/dist/compiled/react/compiler-runtimenext/dist/compiled/react/jsx-dev-runtimenext/dist/compiled/react/jsx-runtimenext/dist/compiled/react-domnext/dist/compiled/react-dom/clientnext/dist/compiled/react-dom/server.browsernext/dist/build/webpack/alias/react-dom-server.jsnext/dist/compiled/react-dom/static.browsernext/dist/compiled/react-dom/static.edgenext/dist/compiled/react-server-dom-webpack/client.browsernext/dist/compiled/react-server-dom-webpack/server.browsernext/dist/compiled/react-server-dom-webpack/server.nodenext/dist/compiled/react-server-dom-webpack/static.browsernext/dist/client/dev/noop-turbopack-hmrC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next browsermodulemain`assertbufferconstantscryptodomainhttphttpsospathpunycodeprocessquerystringstreamstring_decodersystimersttyutilvmzlibeventssetImmediateC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\assert\assert.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\buffer\index.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\constants-browserify\constants.jsonC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\crypto-browserify\index.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\domain-browser\index.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\stream-http\index.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\https-browserify\index.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\os-browserify\browser.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\path-browserify\index.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\punycode\punycode.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\build\polyfills\process.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\querystring-es3\index.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\stream-browserify\index.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\string_decoder\string_decoder.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\util\util.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\timers-browserify\main.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\tty-browserify\index.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\vm-browserify\index.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\browserify-zlib\index.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\events\events.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\compiled\setimmediate\setImmediate.js~`cacheableparsedfileDependenciescontextDependenciesmissingDependenciesbuildDependenciesvalueDependencieshashassetsassetsInforscstrictexportsArgumenttopLevelDeclarationssnapshot webpack/lib/util/LazySetC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\build\webpack\loaders\next-flight-client-module-loader.jsC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\node_modules\next\dist\build\webpack\loaders\next-swc-loader.jswebpack/DefinePlugin_hashff9a23f26e373543891829e2typeactionIdsisClientRefclient  __webpack_exports__DEMO_CREDENTIALS*default*LoginPagewebpack/lib/FileSystemInfoSnapshot ԃyBC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\src\app\login\page.jsxsafeTimetimestamp!CσyBBσyB99d643ae16073dbdwebpack/lib/dependencies/HarmonyCompatibilityDependency dwebpack/lib/dependencies/ConstDependency`=@ a=@A `,A `,webpack/lib/dependencies/HarmonyExportHeaderDependencyA05A!5 a@G`*webpack/lib/dependencies/HarmonyImportSideEffectDependencyreact/jsx-runtime a=@react `,next/navigation `,webpack/lib/dependencies/HarmonyExportSpecifierDependency`default a@Gwebpack/lib/dependencies/HarmonyImportSpecifierDependency useRouter AZc   c   useState A   c!!&  A   c"$",  A   c##&  A   c$"$*  ALT   c%(%0  A   c&$&, useEffect A   c''  jsx_jsx A   cII jsxs_jsxs A    cQ Q%  Ao s    cYY"  A    cbb"  A~    chh"  A    co'o+  ABG   czz#  A   c}&}+  A   @`.@`2  Ako   @`.@`2  A   @`&@`+  A~   @`.@`2  ANR   @`.@`2  A   @`&@`*  A   @`,@`1 Fragment_Fragment A 4 @`2@`;  A!&   @`&@`+  A   @`.@`2  A    @`.@`2  AF"J"   @`.@`2  A##  {{ @`&@`*  A%&  ww @`@`#  A&&  ss @`&@`*  AS)X)  {oo @`2@`7  A**  wkk @`.@`2  Az,,  sgg @`H@`M  A0 0  occ @#`:@#`>  Ar1v1  k__ @)`:@)`>  A33  g[[ @6`@6`"  A44  cWW @<`,@<`0   N"/* __next_internal_client_entry_do_not_use__ default auto */ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { useState } from "react"; import { useRouter } from "next/navigation"; export default function SignupPage() { const router = useRouter(); const [email, setEmail] = useState(""); const [displayName, setDisplayName] = useState(""); const [password, setPassword] = useState(""); const [error, setError] = useState(""); const [loading, setLoading] = useState(false); async function handleSubmit(event) { event.preventDefault(); setError(""); setLoading(true); try { const res = await fetch("/api/auth/signup", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ email, displayName, password }) }); if (!res.ok) { const data = await res.json(); throw new Error(data.error || "Signup failed"); } router.push("/dashboard"); } catch (err) { setError(err.message); setLoading(false); } } return /*#__PURE__*/ _jsx("main", { className: "shell", style: { display: "flex", alignItems: "center", justifyContent: "center", minHeight: "100vh" }, children: /*#__PURE__*/ _jsxs("div", { className: "panel", style: { maxWidth: 420, width: "100%", padding: 32 }, children: [ /*#__PURE__*/ _jsx("div", { className: "brand", style: { fontSize: 24, marginBottom: 24, textAlign: "center" }, children: "COSMIC AI-Risk SaaS" }), /*#__PURE__*/ _jsx("h2", { style: { marginBottom: 8 }, children: "Create account" }), /*#__PURE__*/ _jsx("p", { className: "muted", style: { marginBottom: 24 }, children: "Sign up for a new workspace" }), error && /*#__PURE__*/ _jsx("div", { style: { background: "var(--blocked-soft)", color: "var(--blocked)", padding: "8px 12px", borderRadius: 8, marginBottom: 16, fontSize: 14 }, children: error }), /*#__PURE__*/ _jsxs("form", { onSubmit: handleSubmit, children: [ /*#__PURE__*/ _jsxs("div", { style: { marginBottom: 16 }, children: [ /*#__PURE__*/ _jsx("label", { style: { display: "block", marginBottom: 4, fontSize: 14, fontWeight: 600 }, children: "Email" }), /*#__PURE__*/ _jsx("input", { type: "email", value: email, onChange: (e)=>setEmail(e.target.value), required: true, style: { width: "100%", padding: "10px 12px", borderRadius: 8, border: "1px solid var(--line)", fontSize: 16, boxSizing: "border-box" } }) ] }), /*#__PURE__*/ _jsxs("div", { style: { marginBottom: 16 }, children: [ /*#__PURE__*/ _jsx("label", { style: { display: "block", marginBottom: 4, fontSize: 14, fontWeight: 600 }, children: "Display name" }), /*#__PURE__*/ _jsx("input", { type: "text", value: displayName, onChange: (e)=>setDisplayName(e.target.value), style: { width: "100%", padding: "10px 12px", borderRadius: 8, border: "1px solid var(--line)", fontSize: 16, boxSizing: "border-box" } }) ] }), /*#__PURE__*/ _jsxs("div", { style: { marginBottom: 24 }, children: [ /*#__PURE__*/ _jsx("label", { style: { display: "block", marginBottom: 4, fontSize: 14, fontWeight: 600 }, children: "Password" }), /*#__PURE__*/ _jsx("input", { type: "password", value: password, onChange: (e)=>setPassword(e.target.value), required: true, minLength: 8, style: { width: "100%", padding: "10px 12px", borderRadius: 8, border: "1px solid var(--line)", fontSize: 16, boxSizing: "border-box" } }) ] }), /*#__PURE__*/ _jsx("button", { type: "submit", className: "button primary", style: { width: "100%", padding: "12px 24px", fontSize: 16 }, disabled: loading, children: loading ? "Creating account..." : "Create account" }) ] }), /*#__PURE__*/ _jsx("p", { style: { marginTop: 16, textAlign: "center", fontSize: 14 }, children: /*#__PURE__*/ _jsx("a", { href: "/login", style: { color: "var(--green)" }, children: "Already have an account?" }) }) ] }) }); } `  sideEffectFree  C:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\src\app\signup %  &'()3f5d9e0e83f24aa7 -.  /1SignupPage ԃyBC:\Users\abd_b\OneDrive\Desktop\COSMIC AI-Risk Dashboard\Step 12 is complete Final QA, Demo Readiness, and Submission Freeze\application\saas-app\src\app\signup\page.jsx 4!уyBуyB0c19d321999f31de  d a=| b=| `}@ `! A `, AM" AM" @ `55 b=|66 `!77 `,8 @ 98 A  411 b :9 A19  ++ b& 65 Aiq  '' b*2 21 A  ## b$, .- A   b & *) A   b" * DE A37   c%% FG A#   c- -% <= A     c55" 89 AMQ     c>>" 45 A     cDD" 01 A #    cK'K+ 23 A    cVV# ./ AJ O    cY&Y+ $% A$ (    c^.^2  ! A   cg.g2 "# A*/   cw&w+  A   c|.|2  A   @`.@`2  A   @`&@`+    A   @`.@`2   A   @`.@`2  A    @`&@`*  A= A    @`@`"  A"!&!   @`,@`0 webpack/lib/ModuleGraphRestoreProvidedData   nameprovidedcanMangleProvideterminalBindingexportsInfo     source (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{63:(e,t,r)=>{"use strict";var s=r(7260);r.o(s,"useRouter")&&r.d(t,{useRouter:function(){return s.useRouter}}),r.o(s,"useSearchParams")&&r.d(t,{useSearchParams:function(){return s.useSearchParams}})},2475:(e,t,r)=>{Promise.resolve().then(r.bind(r,9107))},9107:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var s=r(5155),i=r(2115),n=r(63);let a=[{role:"Platform Owner",email:"owner@cosmic.local",password:"cosmic123"},{role:"Admin",email:"admin@cosmic.local",password:"admin123"},{role:"Project Manager",email:"pm@cosmic.local",password:"pm123"},{role:"Risk Owner",email:"risk-owner@cosmic.local",password:"risk123"},{role:"Viewer",email:"viewer@cosmic.local",password:"view123"}];function o(){let e=(0,n.useRouter)(),[t,r]=(0,i.useState)(""),[o,l]=(0,i.useState)(""),[d,c]=(0,i.useState)(""),[u,m]=(0,i.useState)(!1),[p,h]=(0,i.useState)(!1),[g,x]=(0,i.useState)(!1);async function y(r){r.preventDefault(),c(""),m(!0);try{let r=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,password:o})});if(!r.ok){let e=await r.json();throw Error(e.error||"Login failed")}e.push("/dashboard")}catch(e){c(e.message),m(!1)}}return(0,i.useEffect)(()=>{fetch("/api/auth/sso").then(e=>{501!==e.status&&h(!0)}).catch(()=>{})},[]),(0,s.jsx)("main",{className:"shell",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh"},children:(0,s.jsxs)("div",{className:"panel",style:{maxWidth:420,width:"100%",padding:32},children:[(0,s.jsx)("div",{className:"brand",style:{fontSize:24,marginBottom:24,textAlign:"center"},children:"COSMIC AI-Risk SaaS"}),(0,s.jsx)("h2",{style:{marginBottom:8},children:"Sign in"}),(0,s.jsx)("p",{className:"muted",style:{marginBottom:24},children:"Enter your credentials to access the dashboard"}),d&&(0,s.jsx)("div",{style:{background:"var(--blocked-soft)",color:"var(--blocked)",padding:"8px 12px",borderRadius:8,marginBottom:16,fontSize:14},children:d}),(0,s.jsxs)("form",{onSubmit:y,children:[(0,s.jsxs)("div",{style:{marginBottom:16},children:[(0,s.jsx)("label",{style:{display:"block",marginBottom:4,fontSize:14,fontWeight:600},children:"Email"}),(0,s.jsx)("input",{type:"email",value:t,onChange:e=>r(e.target.value),required:!0,style:{width:"100%",padding:"10px 12px",borderRadius:8,border:"1px solid var(--line)",fontSize:16,boxSizing:"border-box"}})]}),(0,s.jsxs)("div",{style:{marginBottom:24},children:[(0,s.jsx)("label",{style:{display:"block",marginBottom:4,fontSize:14,fontWeight:600},children:"Password"}),(0,s.jsx)("input",{type:"password",value:o,onChange:e=>l(e.target.value),required:!0,style:{width:"100%",padding:"10px 12px",borderRadius:8,border:"1px solid var(--line)",fontSize:16,boxSizing:"border-box"}})]}),(0,s.jsx)("button",{type:"submit",className:"button primary",style:{width:"100%",padding:"12px 24px",fontSize:16},disabled:u,children:u?"Signing in...":"Sign in"})]}),p&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,margin:"16px 0"},children:[(0,s.jsx)("hr",{style:{flex:1,border:"none",borderTop:"1px solid var(--line)"}}),(0,s.jsx)("span",{className:"muted",style:{fontSize:12},children:"OR"}),(0,s.jsx)("hr",{style:{flex:1,border:"none",borderTop:"1px solid var(--line)"}})]}),(0,s.jsx)("a",{href:"/api/auth/sso",className:"button secondary",style:{width:"100%",padding:"12px 24px",fontSize:16,textAlign:"center"},children:"Sign in with SSO"})]}),(0,s.jsxs)("div",{style:{marginTop:16},children:[(0,s.jsx)("button",{onClick:()=>x(!g),style:{background:"none",border:"none",color:"var(--green)",cursor:"pointer",fontSize:14,width:"100%",textAlign:"center"},children:g?"Hide demo credentials":"Show demo credentials"}),g&&(0,s.jsxs)("div",{style:{marginTop:12,fontSize:13,background:"var(--bg-soft)",borderRadius:8,padding:12},children:[(0,s.jsx)("p",{className:"muted",style:{marginBottom:8},children:"Click a row to auto-fill:"}),a.map(e=>(0,s.jsxs)("div",{onClick:()=>{var t,s;return t=e.email,s=e.password,void(r(t),l(s))},style:{cursor:"pointer",padding:"6px 8px",borderRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center"},onMouseEnter:e=>e.currentTarget.style.background="var(--line)",onMouseLeave:e=>e.currentTarget.style.background="transparent",children:[(0,s.jsx)("span",{style:{fontWeight:600},children:e.role}),(0,s.jsx)("span",{className:"muted",style:{fontSize:12},children:e.email})]},e.email))]})]}),(0,s.jsx)("p",{style:{marginTop:16,textAlign:"center",fontSize:14},children:(0,s.jsx)("a",{href:"/signup",style:{color:"var(--green)"},children:"Create an account"})})]})})}}},e=>{e.O(0,[8441,1255,7358],()=>e(e.s=2475)),_N_E=e.O()}]);   @ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[879],{63:(e,t,i)=>{"use strict";var a=i(7260);i.o(a,"useRouter")&&i.d(t,{useRouter:function(){return a.useRouter}}),i.o(a,"useSearchParams")&&i.d(t,{useSearchParams:function(){return a.useSearchParams}})},774:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});var a=i(5155),r=i(2115),n=i(63);function s(){let e=(0,n.useRouter)(),[t,i]=(0,r.useState)(""),[s,o]=(0,r.useState)(""),[l,d]=(0,r.useState)(""),[u,c]=(0,r.useState)(""),[h,p]=(0,r.useState)(!1);async function m(i){i.preventDefault(),c(""),p(!0);try{let i=await fetch("/api/auth/signup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,displayName:s,password:l})});if(!i.ok){let e=await i.json();throw Error(e.error||"Signup failed")}e.push("/dashboard")}catch(e){c(e.message),p(!1)}}return(0,a.jsx)("main",{className:"shell",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh"},children:(0,a.jsxs)("div",{className:"panel",style:{maxWidth:420,width:"100%",padding:32},children:[(0,a.jsx)("div",{className:"brand",style:{fontSize:24,marginBottom:24,textAlign:"center"},children:"COSMIC AI-Risk SaaS"}),(0,a.jsx)("h2",{style:{marginBottom:8},children:"Create account"}),(0,a.jsx)("p",{className:"muted",style:{marginBottom:24},children:"Sign up for a new workspace"}),u&&(0,a.jsx)("div",{style:{background:"var(--blocked-soft)",color:"var(--blocked)",padding:"8px 12px",borderRadius:8,marginBottom:16,fontSize:14},children:u}),(0,a.jsxs)("form",{onSubmit:m,children:[(0,a.jsxs)("div",{style:{marginBottom:16},children:[(0,a.jsx)("label",{style:{display:"block",marginBottom:4,fontSize:14,fontWeight:600},children:"Email"}),(0,a.jsx)("input",{type:"email",value:t,onChange:e=>i(e.target.value),required:!0,style:{width:"100%",padding:"10px 12px",borderRadius:8,border:"1px solid var(--line)",fontSize:16,boxSizing:"border-box"}})]}),(0,a.jsxs)("div",{style:{marginBottom:16},children:[(0,a.jsx)("label",{style:{display:"block",marginBottom:4,fontSize:14,fontWeight:600},children:"Display name"}),(0,a.jsx)("input",{type:"text",value:s,onChange:e=>o(e.target.value),style:{width:"100%",padding:"10px 12px",borderRadius:8,border:"1px solid var(--line)",fontSize:16,boxSizing:"border-box"}})]}),(0,a.jsxs)("div",{style:{marginBottom:24},children:[(0,a.jsx)("label",{style:{display:"block",marginBottom:4,fontSize:14,fontWeight:600},children:"Password"}),(0,a.jsx)("input",{type:"password",value:l,onChange:e=>d(e.target.value),required:!0,minLength:8,style:{width:"100%",padding:"10px 12px",borderRadius:8,border:"1px solid var(--line)",fontSize:16,boxSizing:"border-box"}})]}),(0,a.jsx)("button",{type:"submit",className:"button primary",style:{width:"100%",padding:"12px 24px",fontSize:16},disabled:h,children:h?"Creating account...":"Create account"})]}),(0,a.jsx)("p",{style:{marginTop:16,textAlign:"center",fontSize:14},children:(0,a.jsx)("a",{href:"/login",style:{color:"var(--green)"},children:"Already have an account?"})})]})})}},7880:(e,t,i)=>{Promise.resolve().then(i.bind(i,774))}},e=>{e.O(0,[8441,1255,7358],()=>e(e.s=7880)),_N_E=e.O()}]);   Mself.__SSG_MANIFEST=new Set,self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB();   Zself.__BUILD_MANIFEST=function(e,r,t,_){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:24,errorRate:1e-4,numBits:461,numHashes:14,bitArray:[1,0,1,e,e,e,e,e,0,e,r,r,e,e,r,e,r,e,e,r,e,r,e,r,e,e,r,r,r,e,e,r,r,r,e,r,r,e,r,r,e,r,r,e,e,r,r,r,r,e,e,e,r,e,r,r,e,e,e,e,e,r,e,r,e,r,e,e,r,r,e,r,e,e,e,r,r,e,e,r,r,e,e,e,r,r,e,e,e,e,e,r,r,r,r,r,e,e,e,r,e,e,r,r,e,e,e,e,r,r,r,e,e,r,e,e,r,r,e,e,r,r,r,e,r,r,r,r,r,r,e,r,e,r,r,e,r,e,e,r,e,r,e,e,r,r,e,r,r,e,r,e,e,e,r,r,r,e,e,e,r,e,e,r,r,r,r,e,e,e,r,e,r,e,e,e,e,e,e,e,e,e,r,e,r,e,e,e,r,r,r,e,r,r,e,e,r,e,r,r,r,e,e,e,e,e,r,e,e,e,r,e,r,e,e,e,e,e,e,r,r,e,e,r,r,e,e,e,r,e,r,r,e,r,r,e,r,e,e,e,r,e,e,e,r,r,e,e,r,e,r,r,e,e,r,e,e,e,r,e,e,r,r,e,r,e,r,r,e,r,e,r,e,e,e,e,r,e,e,r,e,e,r,r,e,e,e,e,e,e,r,r,e,e,e,e,e,r,e,e,r,e,e,e,e,r,e,r,r,e,e,e,r,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,r,r,r,e,e,r,e,e,r,r,r,r,e,r,e,r,r,r,r,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,e,e,e,r,r,r,r,r,r,r,e,e,e,r,r,e,r,e,e,r,e,r,e,e,r,r,r,r,r,e,r,e,r,r,e,r,r,r,e,r,e,r,e,e,e,e,r,e,r,e,e,e,e,r,r,r,e,r,e,r,e,e,e,r,r,e,e,r,e,r,r,r,e,r,r,r,e,r,r,r,r,r,r,e,r,e,r,e,e,r,e,e,r,e,e,r,e,e,e]},__routerFilterDynamic:{numItems:7,errorRate:1e-4,numBits:135,numHashes:14,bitArray:[r,e,e,e,e,e,e,r,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,r,r,r,e,e,r,e,r,e,r,e,e,e,e,r,r,e,e,r,r,e,e,e,r,r,r,r,e,e,r,e,e,r,r,r,e,e,e,e,r,r,r,r,r,r,r,r,r,e,e,e,e,e,r,r,r,e,e,r,r,r,e,e,e,r,r,e,r,e,e,r,e,e,r,r,e,r,e,e,e,r,r,e,e,e,r,r,r,r,e,r,r,e,e,r,r,r,r,e,r,r,r,r,e,r,e,e,r,e,r,r]},"/_error":["static/chunks/pages/_error-adab2008ace8b58f.js"],sortedPages:["/_app","/_error"]}}(1,0,1e-4,14),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();            adab2008ace8b58f  Zself.__BUILD_MANIFEST=function(e,r,t,_){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:24,errorRate:1e-4,numBits:461,numHashes:14,bitArray:[1,0,1,e,e,e,e,e,0,e,r,r,e,e,r,e,r,e,e,r,e,r,e,r,e,e,r,r,r,e,e,r,r,r,e,r,r,e,r,r,e,r,r,e,e,r,r,r,r,e,e,e,r,e,r,r,e,e,e,e,e,r,e,r,e,r,e,e,r,r,e,r,e,e,e,r,r,e,e,r,r,e,e,e,r,r,e,e,e,e,e,r,r,r,r,r,e,e,e,r,e,e,r,r,e,e,e,e,r,r,r,e,e,r,e,e,r,r,e,e,r,r,r,e,r,r,r,r,r,r,e,r,e,r,r,e,r,e,e,r,e,r,e,e,r,r,e,r,r,e,r,e,e,e,r,r,r,e,e,e,r,e,e,r,r,r,r,e,e,e,r,e,r,e,e,e,e,e,e,e,e,e,r,e,r,e,e,e,r,r,r,e,r,r,e,e,r,e,r,r,r,e,e,e,e,e,r,e,e,e,r,e,r,e,e,e,e,e,e,r,r,e,e,r,r,e,e,e,r,e,r,r,e,r,r,e,r,e,e,e,r,e,e,e,r,r,e,e,r,e,r,r,e,e,r,e,e,e,r,e,e,r,r,e,r,e,r,r,e,r,e,r,e,e,e,e,r,e,e,r,e,e,r,r,e,e,e,e,e,e,r,r,e,e,e,e,e,r,e,e,r,e,e,e,e,r,e,r,r,e,e,e,r,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,r,r,r,e,e,r,e,e,r,r,r,r,e,r,e,r,r,r,r,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,e,e,e,r,r,r,r,r,r,r,e,e,e,r,r,e,r,e,e,r,e,r,e,e,r,r,r,r,r,e,r,e,r,r,e,r,r,r,e,r,e,r,e,e,e,e,r,e,r,e,e,e,e,r,r,r,e,r,e,r,e,e,e,r,r,e,e,r,e,r,r,r,e,r,r,r,e,r,r,r,r,r,r,e,r,e,r,e,e,r,e,e,r,e,e,r,e,e,e]},__routerFilterDynamic:{numItems:7,errorRate:1e-4,numBits:135,numHashes:14,bitArray:[r,e,e,e,e,e,e,r,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,r,r,r,e,e,r,e,r,e,r,e,e,e,e,r,r,e,e,r,r,e,e,e,r,r,r,r,e,e,r,e,e,r,r,r,e,e,e,e,r,r,r,r,r,r,r,r,r,e,e,e,e,e,r,r,r,e,e,r,r,r,e,e,e,r,r,e,r,e,e,r,e,e,r,r,e,r,e,e,e,r,r,e,e,e,r,r,r,r,e,r,r,e,e,r,r,r,r,e,r,r,r,r,e,r,e,e,r,e,r,r]},"/_error":["static/chunks/pages/_error-e4ba546eb376bdf4.js"],sortedPages:["/_app","/_error"]}}(1,0,1e-4,14),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();