/
opt
/
canhelp
/
node_modules
/
next
/
dist
/
client
/
/opt/canhelp/node_modules/next/dist/client
mkdir
upload
Name
Size
Mode
Actions
app-dir/
-
0755
rm
compat/
-
0755
rm
components/
-
0755
rm
dev/
-
0755
rm
legacy/
-
0755
rm
lib/
-
0755
rm
portal/
-
0755
rm
react-client-callbacks/
-
0755
rm
request/
-
0755
rm
tracing/
-
0755
rm
add-base-path.d.ts
79
0644
edit
dl
rm
add-base-path.js
1010
0644
edit
dl
rm
add-base-path.js.map
973
0644
edit
dl
rm
add-locale.d.ts
121
0644
edit
dl
rm
add-locale.js
1052
0644
edit
dl
rm
add-locale.js.map
900
0644
edit
dl
rm
app-bootstrap.d.ts
285
0644
edit
dl
rm
app-bootstrap.js
2771
0644
edit
dl
rm
app-bootstrap.js.map
3967
0644
edit
dl
rm
app-build-id.d.ts
111
0644
edit
dl
rm
app-build-id.js
1767
0644
edit
dl
rm
app-build-id.js.map
1461
0644
edit
dl
rm
app-call-server.d.ts
91
0644
edit
dl
rm
app-call-server.js
1164
0644
edit
dl
rm
app-call-server.js.map
1017
0644
edit
dl
rm
app-find-source-map-url.d.ts
90
0644
edit
dl
rm
app-find-source-map-url.js
1662
0644
edit
dl
rm
app-find-source-map-url.js.map
2092
0644
edit
dl
rm
app-globals.d.ts
45
0644
edit
dl
rm
app-globals.js
708
0644
edit
dl
rm
app-globals.js.map
591
0644
edit
dl
rm
app-index.d.ts
625
0644
edit
dl
rm
app-index.js
11429
0644
edit
dl
rm
app-index.js.map
17063
0644
edit
dl
rm
app-link-gc.d.ts
40
0644
edit
dl
rm
app-link-gc.js
4543
0644
edit
dl
rm
app-link-gc.js.map
5163
0644
edit
dl
rm
app-next-dev.d.ts
24
0644
edit
dl
rm
app-next-dev.js
1214
0644
edit
dl
rm
app-next-dev.js.map
1198
0644
edit
dl
rm
app-next-turbopack.d.ts
11
0644
edit
dl
rm
app-next-turbopack.js
1291
0644
edit
dl
rm
app-next-turbopack.js.map
1659
0644
edit
dl
rm
app-next.d.ts
24
0644
edit
dl
rm
app-next.js
1284
0644
edit
dl
rm
app-next.js.map
1249
0644
edit
dl
rm
app-webpack.d.ts
11
0644
edit
dl
rm
app-webpack.js
3174
0644
edit
dl
rm
app-webpack.js.map
3203
0644
edit
dl
rm
assign-location.d.ts
363
0644
edit
dl
rm
assign-location.js
1259
0644
edit
dl
rm
assign-location.js.map
1549
0644
edit
dl
rm
detect-domain-locale.d.ts
141
0644
edit
dl
rm
detect-domain-locale.js
922
0644
edit
dl
rm
detect-domain-locale.js.map
722
0644
edit
dl
rm
flight-data-helpers.d.ts
1491
0644
edit
dl
rm
flight-data-helpers.js
5439
0644
edit
dl
rm
flight-data-helpers.js.map
8665
0644
edit
dl
rm
form-shared.d.ts
2886
0644
edit
dl
rm
form-shared.js
7132
0644
edit
dl
rm
form-shared.js.map
10762
0644
edit
dl
rm
form.d.ts
489
0644
edit
dl
rm
form.js
5816
0644
edit
dl
rm
form.js.map
8265
0644
edit
dl
rm
get-domain-locale.d.ts
220
0644
edit
dl
rm
get-domain-locale.js
1561
0644
edit
dl
rm
get-domain-locale.js.map
2457
0644
edit
dl
rm
has-base-path.d.ts
60
0644
edit
dl
rm
has-base-path.js
807
0644
edit
dl
rm
has-base-path.js.map
605
0644
edit
dl
rm
head-manager.d.ts
1041
0644
edit
dl
rm
head-manager.js
4981
0644
edit
dl
rm
head-manager.js.map
8342
0644
edit
dl
rm
image-component.d.ts
1337
0644
edit
dl
rm
image-component.js
13961
0644
edit
dl
rm
image-component.js.map
21385
0644
edit
dl
rm
index.d.ts
773
0644
edit
dl
rm
index.js
33440
0644
edit
dl
rm
index.js.map
52576
0644
edit
dl
rm
link.d.ts
5062
0644
edit
dl
rm
link.js
19457
0644
edit
dl
rm
link.js.map
34367
0644
edit
dl
rm
next-dev-turbopack.d.ts
11
0644
edit
dl
rm
next-dev-turbopack.js
1940
0644
edit
dl
rm
next-dev-turbopack.js.map
3002
0644
edit
dl
rm
next-dev.d.ts
20
0644
edit
dl
rm
next-dev.js
1223
0644
edit
dl
rm
next-dev.js.map
1194
0644
edit
dl
rm
next-turbopack.d.ts
48
0644
edit
dl
rm
next-turbopack.js
1460
0644
edit
dl
rm
next-turbopack.js.map
2330
0644
edit
dl
rm
next.d.ts
135
0644
edit
dl
rm
next.js
787
0644
edit
dl
rm
next.js.map
860
0644
edit
dl
rm
normalize-locale-path.d.ts
144
0644
edit
dl
rm
normalize-locale-path.js
883
0644
edit
dl
rm
normalize-locale-path.js.map
883
0644
edit
dl
rm
normalize-trailing-slash.d.ts
190
0644
edit
dl
rm
normalize-trailing-slash.js
1450
0644
edit
dl
rm
normalize-trailing-slash.js.map
1723
0644
edit
dl
rm
page-bootstrap.d.ts
123
0644
edit
dl
rm
page-bootstrap.js
7427
0644
edit
dl
rm
page-bootstrap.js.map
8999
0644
edit
dl
rm
page-loader.d.ts
1370
0644
edit
dl
rm
page-loader.js
7595
0644
edit
dl
rm
page-loader.js.map
12106
0644
edit
dl
rm
remove-base-path.d.ts
62
0644
edit
dl
rm
remove-base-path.js
1080
0644
edit
dl
rm
remove-base-path.js.map
1145
0644
edit
dl
rm
remove-locale.d.ts
77
0644
edit
dl
rm
remove-locale.js
1148
0644
edit
dl
rm
remove-locale.js.map
1308
0644
edit
dl
rm
request-idle-callback.d.ts
265
0644
edit
dl
rm
request-idle-callback.js
1449
0644
edit
dl
rm
request-idle-callback.js.map
1432
0644
edit
dl
rm
resolve-href.d.ts
396
0644
edit
dl
rm
resolve-href.js
5506
0644
edit
dl
rm
resolve-href.js.map
7899
0644
edit
dl
rm
route-announcer.d.ts
115
0644
edit
dl
rm
route-announcer.js
3312
0644
edit
dl
rm
route-announcer.js.map
3553
0644
edit
dl
rm
route-loader.d.ts
1736
0644
edit
dl
rm
route-loader.js
13968
0644
edit
dl
rm
route-loader.js.map
23012
0644
edit
dl
rm
route-params.d.ts
1113
0644
edit
dl
rm
route-params.js
8258
0644
edit
dl
rm
route-params.js.map
10884
0644
edit
dl
rm
router.d.ts
1078
0644
edit
dl
rm
router.js
6716
0644
edit
dl
rm
router.js.map
8823
0644
edit
dl
rm
script.d.ts
923
0644
edit
dl
rm
script.js
14047
0644
edit
dl
rm
script.js.map
18782
0644
edit
dl
rm
set-attributes-from-props.d.ts
86
0644
edit
dl
rm
set-attributes-from-props.js
2367
0644
edit
dl
rm
set-attributes-from-props.js.map
3121
0644
edit
dl
rm
trusted-types.d.ts
544
0644
edit
dl
rm
trusted-types.js
1528
0644
edit
dl
rm
trusted-types.js.map
1957
0644
edit
dl
rm
use-client-disallowed.d.ts
53
0644
edit
dl
rm
use-client-disallowed.js
1006
0644
edit
dl
rm
use-client-disallowed.js.map
753
0644
edit
dl
rm
use-intersection.d.ts
412
0644
edit
dl
rm
use-intersection.js
3845
0644
edit
dl
rm
use-intersection.js.map
6646
0644
edit
dl
rm
use-merged-ref.d.ts
139
0644
edit
dl
rm
use-merged-ref.js
2402
0644
edit
dl
rm
use-merged-ref.js.map
3496
0644
edit
dl
rm
web-vitals.d.ts
156
0644
edit
dl
rm
web-vitals.js
1109
0644
edit
dl
rm
web-vitals.js.map
1008
0644
edit
dl
rm
webpack.d.ts
11
0644
edit
dl
rm
webpack.js
2282
0644
edit
dl
rm
webpack.js.map
2535
0644
edit
dl
rm
with-router.d.ts
505
0644
edit
dl
rm
with-router.js
1458
0644
edit
dl
rm
with-router.js.map
1921
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/next/dist/client/form-shared.js.map
(10762B)
{"version":3,"sources":["../../src/client/form-shared.tsx"],"sourcesContent":["import type { HTMLProps } from 'react'\n\nexport const DISALLOWED_FORM_PROPS = ['method', 'encType', 'target'] as const\n\ntype HTMLFormProps = HTMLProps<HTMLFormElement>\ntype DisallowedFormProps = (typeof DISALLOWED_FORM_PROPS)[number]\n\ntype InternalFormProps = {\n /**\n * `action` can be either a `string` or a function.\n * - If `action` is a string, it will be interpreted as a path or URL to navigate to when the form is submitted.\n * The path will be prefetched when the form becomes visible.\n * - If `action` is a function, it will be called when the form is submitted. See the [React docs](https://react.dev/reference/react-dom/components/form#props) for more.\n */\n action: NonNullable<HTMLFormProps['action']>\n /**\n * Controls how the route specified by `action` is prefetched.\n * Any `<Form />` that is in the viewport (initially or through scroll) will be prefetched.\n * Prefetch can be disabled by passing `prefetch={false}`. Prefetching is only enabled in production.\n *\n * Options:\n * - \"auto\", null, undefined (default): For statically generated pages, this will prefetch the full React Server Component data. For dynamic pages, this will prefetch up to the nearest route segment with a [`loading.js`](https://nextjs.org/docs/app/api-reference/file-conventions/loading) file. If there is no loading file, it will not fetch the full tree to avoid fetching too much data.\n * - `false`: This will not prefetch any data.\n *\n * In pages dir, prefetching is not supported, and passing this prop will emit a warning.\n *\n * @defaultValue `null`\n */\n prefetch?: false | null\n /**\n * Whether submitting the form should replace the current `history` state instead of adding a new url into the stack.\n * Only valid if `action` is a string.\n *\n * @defaultValue `false`\n */\n replace?: boolean\n /**\n * Override the default scroll behavior when navigating.\n * Only valid if `action` is a string.\n *\n * @defaultValue `true`\n */\n scroll?: boolean\n} & Omit<HTMLFormProps, 'action' | DisallowedFormProps>\n\n// `RouteInferType` is a stub here to avoid breaking `typedRoutes` when the type\n// isn't generated yet. It will be replaced when type generation runs.\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type FormProps<RouteInferType = any> = InternalFormProps\n\nexport function createFormSubmitDestinationUrl(\n action: string,\n formElement: HTMLFormElement\n) {\n let targetUrl: URL\n try {\n // NOTE: It might be more correct to resolve URLs relative to `document.baseURI`,\n // but we already do it relative to `location.href` elsewhere:\n // (see e.g. https://github.com/vercel/next.js/blob/bb0e6722f87ceb2d43015f5b8a413d0072f2badf/packages/next/src/client/components/app-router.tsx#L146)\n // so it's better to stay consistent.\n const base = window.location.href\n targetUrl = new URL(action, base)\n } catch (err) {\n throw new Error(`Cannot parse form action \"${action}\" as a URL`, {\n cause: err,\n })\n }\n if (targetUrl.searchParams.size) {\n // url-encoded HTML forms *overwrite* any search params in the `action` url:\n //\n // \"Let `query` be the result of running the application/x-www-form-urlencoded serializer [...]\"\n // \"Set parsed action's query component to `query`.\"\n // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#submit-mutate-action\n //\n // We need to match that.\n // (note that all other parts of the URL, like `hash`, are preserved)\n targetUrl.search = ''\n }\n\n const formData = new FormData(formElement)\n\n for (let [name, value] of formData) {\n if (typeof value !== 'string') {\n // For file inputs, the native browser behavior is to use the filename as the value instead:\n //\n // \"If entry's value is a File object, then let value be entry's value's name. Otherwise, let value be entry's value.\"\n // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#converting-an-entry-list-to-a-list-of-name-value-pairs\n //\n if (process.env.NODE_ENV === 'development') {\n console.warn(\n `<Form> only supports file inputs if \\`action\\` is a function. File inputs cannot be used if \\`action\\` is a string, ` +\n `because files cannot be encoded as search params.`\n )\n }\n value = value.name\n }\n\n targetUrl.searchParams.append(name, value)\n }\n return targetUrl\n}\n\nexport function checkFormActionUrl(\n action: string,\n source: 'action' | 'formAction'\n) {\n const aPropName = source === 'action' ? `an \\`action\\`` : `a \\`formAction\\``\n\n let testUrl: URL\n try {\n testUrl = new URL(action, 'http://n')\n } catch (err) {\n console.error(\n `<Form> received ${aPropName} that cannot be parsed as a URL: \"${action}\".`\n )\n return\n }\n\n // url-encoded HTML forms ignore any queryparams in the `action` url. We need to match that.\n if (testUrl.searchParams.size) {\n console.warn(\n `<Form> received ${aPropName} that contains search params: \"${action}\". This is not supported, and they will be ignored. ` +\n `If you need to pass in additional search params, use an \\`<input type=\"hidden\" />\\` instead.`\n )\n }\n}\n\nexport const isSupportedFormEncType = (value: string) =>\n value === 'application/x-www-form-urlencoded'\nexport const isSupportedFormMethod = (value: string) => value === 'get'\nexport const isSupportedFormTarget = (value: string) => value === '_self'\n\nexport function hasUnsupportedSubmitterAttributes(\n submitter: HTMLElement\n): boolean {\n // A submitter can override `encType` for the form.\n const formEncType = submitter.getAttribute('formEncType')\n if (formEncType !== null && !isSupportedFormEncType(formEncType)) {\n if (process.env.NODE_ENV === 'development') {\n console.error(\n `<Form>'s \\`encType\\` was set to an unsupported value via \\`formEncType=\"${formEncType}\"\\`. ` +\n `This will disable <Form>'s navigation functionality. If you need this, use a native <form> element instead.`\n )\n }\n return true\n }\n\n // A submitter can override `method` for the form.\n const formMethod = submitter.getAttribute('formMethod')\n if (formMethod !== null && !isSupportedFormMethod(formMethod)) {\n if (process.env.NODE_ENV === 'development') {\n console.error(\n `<Form>'s \\`method\\` was set to an unsupported value via \\`formMethod=\"${formMethod}\"\\`. ` +\n `This will disable <Form>'s navigation functionality. If you need this, use a native <form> element instead.`\n )\n }\n return true\n }\n\n // A submitter can override `target` for the form.\n const formTarget = submitter.getAttribute('formTarget')\n if (formTarget !== null && !isSupportedFormTarget(formTarget)) {\n if (process.env.NODE_ENV === 'development') {\n console.error(\n `<Form>'s \\`target\\` was set to an unsupported value via \\`formTarget=\"${formTarget}\"\\`. ` +\n `This will disable <Form>'s navigation functionality. If you need this, use a native <form> element instead.`\n )\n }\n return true\n }\n\n return false\n}\n\nexport function hasReactClientActionAttributes(submitter: HTMLElement) {\n // CSR: https://github.com/facebook/react/blob/942eb80381b96f8410eab1bef1c539bed1ab0eb1/packages/react-dom-bindings/src/client/ReactDOMComponent.js#L482-L487\n // SSR: https://github.com/facebook/react/blob/942eb80381b96f8410eab1bef1c539bed1ab0eb1/packages/react-dom-bindings/src/client/ReactDOMComponent.js#L2401\n const action = submitter.getAttribute('formAction')\n return action && /\\s*javascript:/i.test(action)\n}\n"],"names":["DISALLOWED_FORM_PROPS","checkFormActionUrl","createFormSubmitDestinationUrl","hasReactClientActionAttributes","hasUnsupportedSubmitterAttributes","isSupportedFormEncType","isSupportedFormMethod","isSupportedFormTarget","action","formElement","targetUrl","base","window","location","href","URL","err","Error","cause","searchParams","size","search","formData","FormData","name","value","process","env","NODE_ENV","console","warn","append","source","aPropName","testUrl","error","submitter","formEncType","getAttribute","formMethod","formTarget","test"],"mappings":";;;;;;;;;;;;;;;;;;;;;IAEaA,qBA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