/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-shared.js (7132B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { DISALLOWED_FORM_PROPS: null, checkFormActionUrl: null, createFormSubmitDestinationUrl: null, hasReactClientActionAttributes: null, hasUnsupportedSubmitterAttributes: null, isSupportedFormEncType: null, isSupportedFormMethod: null, isSupportedFormTarget: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { DISALLOWED_FORM_PROPS: function() { return DISALLOWED_FORM_PROPS; }, checkFormActionUrl: function() { return checkFormActionUrl; }, createFormSubmitDestinationUrl: function() { return createFormSubmitDestinationUrl; }, hasReactClientActionAttributes: function() { return hasReactClientActionAttributes; }, hasUnsupportedSubmitterAttributes: function() { return hasUnsupportedSubmitterAttributes; }, isSupportedFormEncType: function() { return isSupportedFormEncType; }, isSupportedFormMethod: function() { return isSupportedFormMethod; }, isSupportedFormTarget: function() { return isSupportedFormTarget; } }); const DISALLOWED_FORM_PROPS = [ 'method', 'encType', 'target' ]; function createFormSubmitDestinationUrl(action, formElement) { let targetUrl; try { // NOTE: It might be more correct to resolve URLs relative to `document.baseURI`, // but we already do it relative to `location.href` elsewhere: // (see e.g. https://github.com/vercel/next.js/blob/bb0e6722f87ceb2d43015f5b8a413d0072f2badf/packages/next/src/client/components/app-router.tsx#L146) // so it's better to stay consistent. const base = window.location.href; targetUrl = new URL(action, base); } catch (err) { throw Object.defineProperty(new Error('Cannot parse form action "' + action + '" as a URL', { cause: err }), "__NEXT_ERROR_CODE", { value: "E152", enumerable: false, configurable: true }); } if (targetUrl.searchParams.size) { // url-encoded HTML forms *overwrite* any search params in the `action` url: // // "Let `query` be the result of running the application/x-www-form-urlencoded serializer [...]" // "Set parsed action's query component to `query`." // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#submit-mutate-action // // We need to match that. // (note that all other parts of the URL, like `hash`, are preserved) targetUrl.search = ''; } const formData = new FormData(formElement); for (let [name, value] of formData){ if (typeof value !== 'string') { // For file inputs, the native browser behavior is to use the filename as the value instead: // // "If entry's value is a File object, then let value be entry's value's name. Otherwise, let value be entry's value." // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#converting-an-entry-list-to-a-list-of-name-value-pairs // if (process.env.NODE_ENV === 'development') { console.warn("
only supports file inputs if `action` is a function. File inputs cannot be used if `action` is a string, " + "because files cannot be encoded as search params."); } value = value.name; } targetUrl.searchParams.append(name, value); } return targetUrl; } function checkFormActionUrl(action, source) { const aPropName = source === 'action' ? "an `action`" : "a `formAction`"; let testUrl; try { testUrl = new URL(action, 'http://n'); } catch (err) { console.error(" received " + aPropName + ' that cannot be parsed as a URL: "' + action + '".'); return; } // url-encoded HTML forms ignore any queryparams in the `action` url. We need to match that. if (testUrl.searchParams.size) { console.warn(" received " + aPropName + ' that contains search params: "' + action + '". This is not supported, and they will be ignored. ' + 'If you need to pass in additional search params, use an `` instead.'); } } const isSupportedFormEncType = (value)=>value === 'application/x-www-form-urlencoded'; const isSupportedFormMethod = (value)=>value === 'get'; const isSupportedFormTarget = (value)=>value === '_self'; function hasUnsupportedSubmitterAttributes(submitter) { // A submitter can override `encType` for the form. const formEncType = submitter.getAttribute('formEncType'); if (formEncType !== null && !isSupportedFormEncType(formEncType)) { if (process.env.NODE_ENV === 'development') { console.error("'s `encType` was set to an unsupported value via `formEncType=\"" + formEncType + '"`. ' + "This will disable 's navigation functionality. If you need this, use a native element instead."); } return true; } // A submitter can override `method` for the form. const formMethod = submitter.getAttribute('formMethod'); if (formMethod !== null && !isSupportedFormMethod(formMethod)) { if (process.env.NODE_ENV === 'development') { console.error("'s `method` was set to an unsupported value via `formMethod=\"" + formMethod + '"`. ' + "This will disable 's navigation functionality. If you need this, use a native element instead."); } return true; } // A submitter can override `target` for the form. const formTarget = submitter.getAttribute('formTarget'); if (formTarget !== null && !isSupportedFormTarget(formTarget)) { if (process.env.NODE_ENV === 'development') { console.error("'s `target` was set to an unsupported value via `formTarget=\"" + formTarget + '"`. ' + "This will disable 's navigation functionality. If you need this, use a native element instead."); } return true; } return false; } function hasReactClientActionAttributes(submitter) { // CSR: https://github.com/facebook/react/blob/942eb80381b96f8410eab1bef1c539bed1ab0eb1/packages/react-dom-bindings/src/client/ReactDOMComponent.js#L482-L487 // SSR: https://github.com/facebook/react/blob/942eb80381b96f8410eab1bef1c539bed1ab0eb1/packages/react-dom-bindings/src/client/ReactDOMComponent.js#L2401 const action = submitter.getAttribute('formAction'); return action && /\s*javascript:/i.test(action); } if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') { Object.defineProperty(exports.default, '__esModule', { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=form-shared.js.map