/opt/canhelp/apps/web/.next/cache/webpack/server-production
Edit: /opt/canhelp/apps/web/.next/cache/webpack/server-production/14.pack (635824B)
wpc webpack/lib/cache/PackFileCacheStrategyPackContentItems / ResolverCachePlugin|normal|default|alias=|false|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|fullySpecified=|true|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/opt/canhelp/apps/web|request=|/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx_ ResolverCachePlugin|normal|default|alias=[|server-only$=|next/dist/compiled/server-only/empty|client-only$=|next/dist/compiled/client-only/error|next/dist/compiled/server-only$=|next/dist/compiled/server-only/empty|next/dist/compiled/client-only$=|next/dist/compiled/client-only/error|/opt/canhelp/node_modules/next/head.js=|next/dist/client/components/noop-head|/opt/canhelp/node_modules/next/image.js=|next/dist/api/image|/opt/canhelp/node_modules/next/constants.js=|next/dist/api/constants|/opt/canhelp/node_modules/next/router.js=|next/dist/api/router|/opt/canhelp/node_modules/next/dynamic.js=|next/dist/api/app-dynamic|/opt/canhelp/node_modules/next/script.js=|next/dist/api/script|/opt/canhelp/node_modules/next/link.js=|next/dist/client/app-dir/link|/opt/canhelp/node_modules/next/form.js=|next/dist/client/app-dir/form|/opt/canhelp/node_modules/next/navigation.js=|next/dist/api/navigation.react-server|/opt/canhelp/node_modules/next/headers.js=|next/dist/api/headers|/opt/canhelp/node_modules/next/og.js=|next/dist/api/og|/opt/canhelp/node_modules/next/server.js=|next/dist/api/server|/opt/canhelp/node_modules/next/document.js=|next/dist/api/document|/opt/canhelp/node_modules/next/app.js=|next/dist/api/app|next=|/opt/canhelp/node_modules/next|]|dependencyType=|esm|path=|/opt/canhelp/apps/web|request=|/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx- Compilation/modules|javascript/auto|/opt/canhelp/node_modules/next/dist/build/webpack/loaders/next-flight-loader/index.js!/opt/canhelp/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[16].oneOf[4].use[0]!/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx|rscQ ResolverCachePlugin|normal|default|alias=[|server-only$=|next/dist/compiled/server-only/index|client-only$=|next/dist/compiled/client-only/index|next/dist/compiled/client-only$=|next/dist/compiled/client-only/index|next/dist/compiled/server-only=|next/dist/compiled/server-only/index|/opt/canhelp/node_modules/next/head.js=|next/dist/client/components/noop-head|/opt/canhelp/node_modules/next/image.js=|next/dist/api/image|/opt/canhelp/node_modules/next/constants.js=|next/dist/api/constants|/opt/canhelp/node_modules/next/router.js=|next/dist/api/router|/opt/canhelp/node_modules/next/dynamic.js=|next/dist/api/app-dynamic|/opt/canhelp/node_modules/next/script.js=|next/dist/api/script|/opt/canhelp/node_modules/next/link.js=|next/dist/client/app-dir/link|/opt/canhelp/node_modules/next/form.js=|next/dist/client/app-dir/form|/opt/canhelp/node_modules/next/navigation.js=|next/dist/api/navigation|/opt/canhelp/node_modules/next/headers.js=|next/dist/api/headers|/opt/canhelp/node_modules/next/og.js=|next/dist/api/og|/opt/canhelp/node_modules/next/server.js=|next/dist/api/server|/opt/canhelp/node_modules/next/document.js=|next/dist/api/document|/opt/canhelp/node_modules/next/app.js=|next/dist/api/app|next=|/opt/canhelp/node_modules/next|]|dependencyType=|esm|path=|/opt/canhelp/apps/web|request=|/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx5 Compilation/modules|javascript/auto|/opt/canhelp/node_modules/next/dist/build/webpack/loaders/next-flight-client-module-loader.js!/opt/canhelp/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[16].oneOf[7].use[1]!/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx|ssr= FlagDependencyExportsPlugin|javascript/auto|/opt/canhelp/node_modules/next/dist/build/webpack/loaders/next-flight-client-module-loader.js!/opt/canhelp/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[16].oneOf[7].use[1]!/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx|ssrL Compilation/codeGeneration|javascript/auto|/opt/canhelp/node_modules/next/dist/build/webpack/loaders/next-flight-client-module-loader.js!/opt/canhelp/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[16].oneOf[7].use[1]!/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx|ssr|webpack-runtimeCompilation/assets|chunk180MinifierWebpackPlugin|../app/(auth)/reset-password/page.jswebpack/lib/cache/ResolverCachePlugin`_ResolverCachePluginCacheMisscontextpathrequestqueryfragmentmoduledirectoryfileinternalfullySpecifieddescriptionFilePathdescriptionFileDatadescriptionFileRootrelativePath/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx0/opt/canhelp/apps/web/package.jsonnameversionprivatescriptsdependenciesdevDependenciesweb0.1.0devbuildstartlinttypechecknext dev --port 3000next buildnext startnext linttsc --noEmit @canhelp/shared@marsidev/react-turnstilebetter-authnanostoresnextreactreact-domsocket.io-clientzod*^1.5.0^1.2.7^1.2.0^15.1.6^19.0.0^4.8.1^3.24.1@types/node@types/react@types/react-domautoprefixerpostcsstailwindcsstypescript^22.10.7^19.0.6^19.0.3^10.4.20^8.5.1^3.4.17^5.7.3/opt/canhelp/apps/web./src/app/(auth)/reset-password/page.tsxwebpack/lib/FileSystemInfoSnapshot@ mZyB mZyB`/opt/canhelp/apps/web/src/app/(auth)/reset-password/opt/canhelp/apps/web/src/app/(auth)/opt/canhelp/apps/web/src/app/opt/canhelp/apps/web/src/opt/canhelp/apps/opt/canhelp/opt/safeTimetimestamphash! eyB eyBd659fc12c42d40f9! pZyB `ZyBa0f297e08c87a264 @ /opt/canhelp/apps/web/src/app/(auth)/reset-password/package.json/opt/canhelp/apps/web/src/app/(auth)/package.json/opt/canhelp/apps/web/src/app/package.json/opt/canhelp/apps/web/src/package.jsonissuerissuerLayercompilerrscserver @ zZyB @ `/opt/canhelp/apps/web/opt/canhelp/apps/web/src/app/(auth)/reset-password/package.json/opt/canhelp/apps/web/opt/canhelp/apps/web/src/app/(auth)/package.json/opt/canhelp/apps/web/opt/canhelp/apps/web/src/app/package.json/opt/canhelp/apps/web/opt/canhelp/apps/web/src/package.json/opt/canhelp/apps/web/opt/canhelp/apps/web/package.json/opt/canhelp/apps/web/opt/canhelp/apps/package.json/opt/canhelp/apps/web/opt/canhelp/package.json/opt/canhelp/apps/web/opt/package.json/opt/canhelp/apps/web/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx/opt/canhelp/apps/web/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx.js/opt/canhelp/apps/web/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx.mjs/opt/canhelp/apps/web/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx.tsx/opt/canhelp/apps/web/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx.ts/opt/canhelp/apps/web/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx.jsx/opt/canhelp/apps/web/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx.json/opt/canhelp/apps/web/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx.wasm webpack/lib/NormalModulewebpack/lib/util/registerExternalSerializerwebpack-sources/RawSourceD // This file is generated by the Webpack next-flight-loader.
import { registerClientReference } from "react-server-dom-webpack/server";
export default registerClientReference(
function() { throw new Error("Attempted to call the default export of \"/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component."); },
"/opt/canhelp/apps/web/src/app/(auth)/reset-password/page.tsx",
"default",
);
exportsTypenamespace
javascript/autoaliasmainFieldsconditionNames`$server-only$client-only$next/dist/compiled/server-only$next/dist/compiled/client-only$/opt/canhelp/node_modules/next/head.js/opt/canhelp/node_modules/next/image.js/opt/canhelp/node_modules/next/constants.js/opt/canhelp/node_modules/next/router.js/opt/canhelp/node_modules/next/dynamic.js/opt/canhelp/node_modules/next/script.js/opt/canhelp/node_modules/next/link.js/opt/canhelp/node_modules/next/form.js/opt/canhelp/node_modules/next/navigation.js/opt/canhelp/node_modules/next/headers.js/opt/canhelp/node_modules/next/og.js/opt/canhelp/node_modules/next/server.js/opt/canhelp/node_modules/next/document.js/opt/canhelp/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.tsmnext/dist/compiled/server-only/emptynext/dist/compiled/client-only/errornext/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/navigation.react-servernext/dist/api/headersnext/dist/api/ognext/dist/api/servernext/dist/api/documentnext/dist/api/appnext/dist/server/route-modules/app-page/vendored/rsc/reactnext/dist/server/route-modules/app-page/vendored/rsc/react-compiler-runtimenext/dist/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtimenext/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtimenext/dist/server/route-modules/app-page/vendored/rsc/react-domnext/dist/compiled/react-dom/clientnext/dist/compiled/react-dom/server.nodenext/dist/compiled/react-dom/server.browsernext/dist/build/webpack/alias/react-dom-server.jsnext/dist/compiled/react-dom/static.nodenext/dist/compiled/react-dom/static.browsernext/dist/compiled/react-dom/static.edgenext/dist/compiled/react-server-dom-webpack/client.nodenext/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-servernext/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-staticnext/dist/client/dev/noop-turbopack-hmr/opt/canhelp/node_modules/next$mainreact-server...`cacheableparsedfileDependenciescontextDependenciesmissingDependenciesbuildDependenciesvalueDependenciesjassetsassetsInfostrictexportsArgumenttopLevelDeclarationssnapshotwebpack/lib/util/LazySet/opt/canhelp/node_modules/next/dist/build/webpack/loaders/next-flight-loader/index.js/opt/canhelp/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js webpack/DefinePlugin_hash4028310f64d58917e2fb8c83typeactionIdsclientRefsclientEntryTypeisClientRefclientdefaultauto__webpack_exports__*default* 0ZyB Swebpack/lib/dependencies/HarmonyCompatibilityDependency
d webpack/lib/dependencies/ConstDependency`=@
`Jwebpack/lib/dependencies/HarmonyExportHeaderDependency A B A C
webpack/lib/dependencies/HarmonyImportSideEffectDependencyreact-server-dom-webpack/server
`Jwebpack/lib/dependencies/HarmonyExportExpressionDependency`
webpack/lib/dependencies/HarmonyImportSpecifierDependencyaregisterClientReferenceA
b&
VssrW ()*@ @ZyB
FjL /* __next_internal_client_entry_do_not_use__ default auto */ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { useState, useEffect, Suspense } from 'react';
import { useRouter, useSearchParams } from 'next/navigation';
import Link from 'next/link';
import { authClient } from '@/lib/auth';
import { useLocale } from '@/context/locale';
function ResetPasswordForm() {
const router = useRouter();
const searchParams = useSearchParams();
const { t } = useLocale();
const [loading, setLoading] = useState(false);
const [error, setError] = useState('');
const token = searchParams.get('token');
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && useEffect(()=>{
if (!token) {
setError(t('reset.error.invalid'));
}
}, [
token,
t
]);
async function handleSubmit(e) {
e.preventDefault();
setError('');
const form = new FormData(e.currentTarget);
const newPassword = form.get('password');
const confirm = form.get('confirm');
if (newPassword !== confirm) {
setError(t('reset.error.mismatch'));
return;
}
if (!token) {
setError(t('reset.error.invalid'));
return;
}
setLoading(true);
let result = null;
try {
result = await authClient.resetPassword({
newPassword,
token
});
} catch {
setError(t('reset.error.invalid'));
setLoading(false);
return;
}
if (result?.error) {
setError(result.error.message ?? t('reset.error.invalid'));
setLoading(false);
} else {
// Show success briefly then redirect
setError('');
setTimeout(()=>router.push('/login'), 2000);
}
}
return /*#__PURE__*/ _jsx("div", {
className: "min-h-screen flex items-center justify-center px-4",
children: /*#__PURE__*/ _jsxs("div", {
className: "w-full max-w-md",
children: [
/*#__PURE__*/ _jsxs("div", {
className: "text-center mb-8",
children: [
/*#__PURE__*/ _jsx("h1", {
className: "text-3xl font-bold text-white",
children: t('reset.title')
}),
/*#__PURE__*/ _jsx("p", {
className: "text-white/70 mt-2",
children: t('reset.subtitle')
})
]
}),
/*#__PURE__*/ _jsxs("form", {
onSubmit: handleSubmit,
className: "bg-white rounded-xl border border-gray-200 p-6 space-y-4",
children: [
error && /*#__PURE__*/ _jsxs("div", {
className: "bg-red-50 text-red-700 p-3 rounded-lg text-sm",
children: [
error,
!token && /*#__PURE__*/ _jsxs("span", {
children: [
' ',
/*#__PURE__*/ _jsx(Link, {
href: "/forgot-password",
className: "underline font-medium",
children: t('reset.back_to_login').replace('sign in', 'request new link')
})
]
})
]
}),
loading && !error && /*#__PURE__*/ _jsx("div", {
className: "bg-green-50 text-green-700 p-3 rounded-lg text-sm",
children: t('reset.success')
}),
/*#__PURE__*/ _jsxs("div", {
children: [
/*#__PURE__*/ _jsx("label", {
className: "block text-sm font-medium text-gray-700 mb-1",
children: t('reset.password')
}),
/*#__PURE__*/ _jsx("input", {
name: "password",
type: "password",
required: true,
minLength: 8,
autoComplete: "new-password",
disabled: !token || loading,
className: "w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-400 disabled:opacity-50"
})
]
}),
/*#__PURE__*/ _jsxs("div", {
children: [
/*#__PURE__*/ _jsx("label", {
className: "block text-sm font-medium text-gray-700 mb-1",
children: t('reset.confirm')
}),
/*#__PURE__*/ _jsx("input", {
name: "confirm",
type: "password",
required: true,
minLength: 8,
autoComplete: "new-password",
disabled: !token || loading,
className: "w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-400 disabled:opacity-50"
})
]
}),
/*#__PURE__*/ _jsx("button", {
type: "submit",
disabled: !token || loading,
className: "w-full bg-blue-600 text-white py-3 rounded-xl font-semibold hover:bg-blue-700 disabled:opacity-50",
children: loading ? t('reset.submitting') : t('reset.submit')
}),
/*#__PURE__*/ _jsx("p", {
className: "text-center text-sm text-gray-500",
children: /*#__PURE__*/ _jsx(Link, {
href: "/login",
className: "text-blue-600 hover:underline font-medium",
children: t('reset.back_to_login')
})
})
]
})
]
})
});
}
export default function ResetPasswordPage() {
return /*#__PURE__*/ _jsx(Suspense, {
fallback: /*#__PURE__*/ _jsx("div", {
className: "min-h-screen flex items-center justify-center",
children: /*#__PURE__*/ _jsx("p", {
children: "Loading..."
})
}),
children: /*#__PURE__*/ _jsx(ResetPasswordForm, {})
});
}
`
ksideEffectFreej
k$
lm
`$oprnext/dist/compiled/server-onlyrstuvwxyz{|}~next/dist/compiled/server-only/indexnext/dist/compiled/client-only/indexnext/dist/api/navigationnext/dist/server/route-modules/app-page/vendored/ssr/reactnext/dist/server/route-modules/app-page/vendored/ssr/react-compiler-runtimenext/dist/server/route-modules/app-page/vendored/ssr/react-jsx-dev-runtimenext/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtimenext/dist/server/route-modules/app-page/vendored/ssr/react-domnext/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-webpack-clientnext/dist/compiled/react-server-dom-webpack/server.nodenext/dist/compiled/react-server-dom-webpack/static.node
/opt/canhelp/node_modules/next/dist/build/webpack/loaders/next-flight-client-module-loader.jsafed3eef09a4b80d
ResetPasswordFormƑResetPasswordPage 0ZyB
d a=|
b=|`}@
`6A
`=A
`A 8
`(A9 f
`-A A
@ @ `(react/jsx-runtime
b=|
`6next/navigation
`=next/link
`@/lib/auth
`(@/context/locale
`-useRouterA
buseSearchParamsA
b (useLocaleA
b
useStateA
c"*AB J
c&useEffectA
c7@authClientresetPasswordA` x A` j
c''3jsx_jsxA
c99jsxs_jsxsA
c; ;%Ag l
c>>#A
cA&A*A
cE&E*A
cKK#A
cO/O4Aw |
cS8S=A
cV6V:SLinkA
#
4
cV;V?A
c_;_?A
cc&c+Af j
ce.e2Ai m
ci.i2A
ct&t+Ab f
cv.v2Ad h
cz.z2A
@ `&@ `*A
@ `&@ `*A! % ||
@ `4@ `8A& * 4~~
@ `9@ `=webpack/lib/dependencies/HarmonyExportSpecifierDependency@b#
@ @
A
ss
@ `@ `
Suspense
A
4BB
@ `@ `&
A
jj
@ ` @ `$
Aq u
ff
@ `$@ `(
A
bb
@ ` @ `$
webpack/lib/ModuleGraphRestoreProvidedDataprovidedcanMangleProvideterminalBindingexportsInfo
sourcesruntimeRequirementsdatajavascriptwebpack/lib/util/registerExternalSerializerwebpack-sources/CachedSource &