/home/techb158/balavpn.abdallabala.com/node_modules/next/dist/client
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/next/dist/client/form.js (5816B)
'use client';
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
const _jsxruntime = require("react/jsx-runtime");
const _react = require("react");
const _addbasepath = require("./add-base-path");
const _routercontextsharedruntime = require("../shared/lib/router-context.shared-runtime");
const _formshared = require("./form-shared");
const Form = /*#__PURE__*/ (0, _react.forwardRef)(function FormComponent(param, ref) {
let { replace, scroll, prefetch: prefetchProp, ...props } = param;
const router = (0, _react.useContext)(_routercontextsharedruntime.RouterContext);
const actionProp = props.action;
const isNavigatingForm = typeof actionProp === 'string';
// Validate `action`
if (process.env.NODE_ENV === 'development') {
if (isNavigatingForm) {
(0, _formshared.checkFormActionUrl)(actionProp, 'action');
}
}
// Validate `prefetch`
if (process.env.NODE_ENV === 'development') {
if (prefetchProp !== undefined) {
console.error('Passing `prefetch` to a