/home/techb158/balavpn.abdallabala.com/node_modules/next/dist/client
NameSizeModeActions
app-dir/-0777rm
compat/-0777rm
components/-0777rm
dev/-0777rm
legacy/-0777rm
lib/-0777rm
portal/-0777rm
react-client-callbacks/-0777rm
request/-0777rm
tracing/-0777rm
add-base-path.d.ts790666editdlrm
add-base-path.js10100666editdlrm
add-base-path.js.map9730666editdlrm
add-locale.d.ts1210666editdlrm
add-locale.js10520666editdlrm
add-locale.js.map9000666editdlrm
app-bootstrap.d.ts2850666editdlrm
app-bootstrap.js27710666editdlrm
app-bootstrap.js.map39670666editdlrm
app-build-id.d.ts1110666editdlrm
app-build-id.js17670666editdlrm
app-build-id.js.map14610666editdlrm
app-call-server.d.ts910666editdlrm
app-call-server.js11640666editdlrm
app-call-server.js.map10170666editdlrm
app-find-source-map-url.d.ts900666editdlrm
app-find-source-map-url.js16620666editdlrm
app-find-source-map-url.js.map20920666editdlrm
app-globals.d.ts450666editdlrm
app-globals.js7080666editdlrm
app-globals.js.map5910666editdlrm
app-index.d.ts6250666editdlrm
app-index.js114290666editdlrm
app-index.js.map170630666editdlrm
app-link-gc.d.ts400666editdlrm
app-link-gc.js45430666editdlrm
app-link-gc.js.map51630666editdlrm
app-next-dev.d.ts240666editdlrm
app-next-dev.js12140666editdlrm
app-next-dev.js.map11980666editdlrm
app-next-turbopack.d.ts110666editdlrm
app-next-turbopack.js12910666editdlrm
app-next-turbopack.js.map16590666editdlrm
app-next.d.ts240666editdlrm
app-next.js12840666editdlrm
app-next.js.map12490666editdlrm
app-webpack.d.ts110666editdlrm
app-webpack.js31740666editdlrm
app-webpack.js.map32030666editdlrm
assign-location.d.ts3630666editdlrm
assign-location.js12590666editdlrm
assign-location.js.map15490666editdlrm
detect-domain-locale.d.ts1410666editdlrm
detect-domain-locale.js9220666editdlrm
detect-domain-locale.js.map7220666editdlrm
flight-data-helpers.d.ts14910666editdlrm
flight-data-helpers.js54390666editdlrm
flight-data-helpers.js.map86650666editdlrm
form-shared.d.ts28860666editdlrm
form-shared.js71320666editdlrm
form-shared.js.map107620666editdlrm
form.d.ts4890666editdlrm
form.js58160666editdlrm
form.js.map82650666editdlrm
get-domain-locale.d.ts2200666editdlrm
get-domain-locale.js15610666editdlrm
get-domain-locale.js.map24570666editdlrm
has-base-path.d.ts600666editdlrm
has-base-path.js8070666editdlrm
has-base-path.js.map6050666editdlrm
head-manager.d.ts10410666editdlrm
head-manager.js49810666editdlrm
head-manager.js.map83420666editdlrm
image-component.d.ts13370666editdlrm
image-component.js139610666editdlrm
image-component.js.map213850666editdlrm
index.d.ts7730666editdlrm
index.js334400666editdlrm
index.js.map525760666editdlrm
link.d.ts50620666editdlrm
link.js194570666editdlrm
link.js.map343670666editdlrm
next-dev-turbopack.d.ts110666editdlrm
next-dev-turbopack.js19400666editdlrm
next-dev-turbopack.js.map30020666editdlrm
next-dev.d.ts200666editdlrm
next-dev.js12230666editdlrm
next-dev.js.map11940666editdlrm
next-turbopack.d.ts480666editdlrm
next-turbopack.js14600666editdlrm
next-turbopack.js.map23300666editdlrm
next.d.ts1350666editdlrm
next.js7870666editdlrm
next.js.map8600666editdlrm
normalize-locale-path.d.ts1440666editdlrm
normalize-locale-path.js8830666editdlrm
normalize-locale-path.js.map8830666editdlrm
normalize-trailing-slash.d.ts1900666editdlrm
normalize-trailing-slash.js14500666editdlrm
normalize-trailing-slash.js.map17230666editdlrm
page-bootstrap.d.ts1230666editdlrm
page-bootstrap.js74270666editdlrm
page-bootstrap.js.map89990666editdlrm
page-loader.d.ts13700666editdlrm
page-loader.js75950666editdlrm
page-loader.js.map121060666editdlrm
remove-base-path.d.ts620666editdlrm
remove-base-path.js10800666editdlrm
remove-base-path.js.map11450666editdlrm
remove-locale.d.ts770666editdlrm
remove-locale.js11480666editdlrm
remove-locale.js.map13080666editdlrm
request-idle-callback.d.ts2650666editdlrm
request-idle-callback.js14490666editdlrm
request-idle-callback.js.map14320666editdlrm
resolve-href.d.ts3960666editdlrm
resolve-href.js55060666editdlrm
resolve-href.js.map78990666editdlrm
route-announcer.d.ts1150666editdlrm
route-announcer.js33120666editdlrm
route-announcer.js.map35530666editdlrm
route-loader.d.ts17360666editdlrm
route-loader.js139680666editdlrm
route-loader.js.map230120666editdlrm
route-params.d.ts11130666editdlrm
route-params.js82580666editdlrm
route-params.js.map108840666editdlrm
router.d.ts10780666editdlrm
router.js67160666editdlrm
router.js.map88230666editdlrm
script.d.ts9230666editdlrm
script.js141820666editdlrm
script.js.map189230666editdlrm
set-attributes-from-props.d.ts860666editdlrm
set-attributes-from-props.js23670666editdlrm
set-attributes-from-props.js.map31210666editdlrm
trusted-types.d.ts5440666editdlrm
trusted-types.js15280666editdlrm
trusted-types.js.map19570666editdlrm
use-client-disallowed.d.ts530666editdlrm
use-client-disallowed.js10060666editdlrm
use-client-disallowed.js.map7530666editdlrm
use-intersection.d.ts4120666editdlrm
use-intersection.js38450666editdlrm
use-intersection.js.map66460666editdlrm
use-merged-ref.d.ts1390666editdlrm
use-merged-ref.js24020666editdlrm
use-merged-ref.js.map34960666editdlrm
web-vitals.d.ts1560666editdlrm
web-vitals.js11090666editdlrm
web-vitals.js.map10080666editdlrm
webpack.d.ts110666editdlrm
webpack.js22820666editdlrm
webpack.js.map25350666editdlrm
with-router.d.ts5050666editdlrm
with-router.js14580666editdlrm
with-router.js.map19210666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/next/dist/client/form.js.map (8265B)
{"version":3,"sources":["../../src/client/form.tsx"],"sourcesContent":["'use client'\n\nimport { type FormEvent, useContext, forwardRef } from 'react'\nimport { addBasePath } from './add-base-path'\nimport { RouterContext } from '../shared/lib/router-context.shared-runtime'\nimport type { NextRouter } from './router'\nimport {\n checkFormActionUrl,\n createFormSubmitDestinationUrl,\n DISALLOWED_FORM_PROPS,\n hasReactClientActionAttributes,\n hasUnsupportedSubmitterAttributes,\n type FormProps,\n} from './form-shared'\n\nexport type { FormProps }\n\nconst Form = forwardRef(function FormComponent(\n { replace, scroll, prefetch: prefetchProp, ...props },\n ref\n) {\n const router = useContext(RouterContext)\n\n const actionProp = props.action\n const isNavigatingForm = typeof actionProp === 'string'\n\n // Validate `action`\n if (process.env.NODE_ENV === 'development') {\n if (isNavigatingForm) {\n checkFormActionUrl(actionProp, 'action')\n }\n }\n\n // Validate `prefetch`\n if (process.env.NODE_ENV === 'development') {\n if (prefetchProp !== undefined) {\n console.error(\n 'Passing `prefetch` to a
has no effect in the pages directory.'\n )\n }\n }\n\n // Validate `scroll` and `replace`\n if (process.env.NODE_ENV === 'development') {\n if (!isNavigatingForm && (replace !== undefined || scroll !== undefined)) {\n console.error(\n 'Passing `replace` or `scroll` to a whose `action` is a function has no effect.\\n' +\n 'See the relevant docs to learn how to control this behavior for navigations triggered from actions:\\n' +\n ' `router.replace()` - https://nextjs.org/docs/pages/api-reference/functions/use-router#routerreplace\\n'\n )\n }\n }\n\n // Clean up any unsupported form props (and warn if present)\n for (const key of DISALLOWED_FORM_PROPS) {\n if (key in props) {\n if (process.env.NODE_ENV === 'development') {\n console.error(` does not support changing \\`${key}\\`.`)\n }\n delete (props as Record)[key]\n }\n }\n\n if (!isNavigatingForm) {\n return \n }\n\n const actionHref = addBasePath(actionProp)\n\n return (\n \n onFormSubmit(event, {\n router,\n actionHref,\n replace,\n scroll,\n onSubmit: props.onSubmit,\n })\n }\n />\n )\n})\n\nexport default Form\n\nfunction onFormSubmit(\n event: FormEvent,\n {\n actionHref,\n onSubmit,\n replace,\n scroll,\n router,\n }: {\n actionHref: string\n onSubmit: FormProps['onSubmit']\n replace: FormProps['replace']\n scroll: FormProps['scroll']\n router: NextRouter | null\n }\n) {\n if (typeof onSubmit === 'function') {\n onSubmit(event)\n\n // if the user called event.preventDefault(), do nothing.\n // (this matches what Link does for `onClick`)\n if (event.defaultPrevented) {\n return\n }\n }\n\n if (!router) {\n // Form was somehow used outside of the router (but not in app/, the implementation is forked!).\n // We can't perform a soft navigation, so let the native submit handling do its thing.\n return\n }\n\n const formElement = event.currentTarget\n const submitter = (event.nativeEvent as SubmitEvent).submitter\n\n let action = actionHref\n\n if (submitter) {\n // this is page-router-only, so we don't need to worry about false positives\n // from the attributes that react adds for server actions.\n if (hasUnsupportedSubmitterAttributes(submitter)) {\n return\n }\n\n // client actions have `formAction=\"javascript:...\"`. We obviously can't prefetch/navigate to that.\n if (hasReactClientActionAttributes(submitter)) {\n return\n }\n\n // If the submitter specified an alternate formAction,\n // use that URL instead -- this is what a native form would do.\n // NOTE: `submitter.formAction` is unreliable, because it will give us `location.href` if it *wasn't* set\n // NOTE: this should not have `basePath` added, because we can't add it before hydration\n const submitterFormAction = submitter.getAttribute('formAction')\n if (submitterFormAction !== null) {\n if (process.env.NODE_ENV === 'development') {\n checkFormActionUrl(submitterFormAction, 'formAction')\n }\n action = submitterFormAction\n }\n }\n\n const targetUrl = createFormSubmitDestinationUrl(action, formElement)\n\n // Finally, no more reasons for bailing out.\n event.preventDefault()\n\n const method = replace ? 'replace' : 'push'\n const targetHref = targetUrl.href // TODO: will pages router be happy about an absolute URL here?\n\n // TODO(form): Make this use a transition so that pending states work\n //\n // Unlike the app router, pages router doesn't use startTransition,\n // and can't easily be wrapped in one because of implementation details\n // (e.g. it doesn't use any react state)\n // But it's important to have this wrapped in a transition because\n // pending states from e.g. `useFormStatus` rely on that.\n // So this needs some follow up work.\n router[method](targetHref, undefined, { scroll })\n}\n"],"names":["Form","forwardRef","FormComponent","ref","replace","scroll","prefetch","prefetchProp","props","router","useContext","RouterContext","actionProp","action","isNavigatingForm","process","env","NODE_ENV","checkFormActionUrl","undefined","console","error","key","DISALLOWED_FORM_PROPS","form","actionHref","addBasePath","onSubmit","event","onFormSubmit","defaultPrevented","formElement","currentTarget","submitter","nativeEvent","hasUnsupportedSubmitterAttributes","hasReactClientActionAttributes","submitterFormAction","getAttribute","targetUrl","createFormSubmitDestinationUrl","preventDefault","method","targetHref","href"],"mappings":"AAAA;;;;;+BAuFA;;;eAAA;;;;uBArFuD;6BAC3B;4CACE;4BASvB;AAIP,MAAMA,qBAAOC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