'use client'; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return Form; } }); const _jsxruntime = require("react/jsx-runtime"); const _react = require("react"); const _addbasepath = require("./add-base-path"); const _useintersection = require("./use-intersection"); const _usemergedref = require("./use-merged-ref"); const _approutercontextsharedruntime = require("../shared/lib/app-router-context.shared-runtime"); const _routerreducertypes = require("./components/router-reducer/router-reducer-types"); const _routercontextsharedruntime = require("../shared/lib/router-context.shared-runtime"); const DISALLOWED_FORM_PROPS = [ 'method', 'encType', 'target' ]; function Form(param) { let { replace, scroll, prefetch: prefetchProp, ref: externalRef, ...props } = param; const router = useAppOrPagesRouter(); const actionProp = props.action; const isNavigatingForm = typeof actionProp === 'string'; // Validate `action` if (process.env.NODE_ENV === 'development') { if (isNavigatingForm) { checkActionUrl(actionProp, 'action'); } } // Validate `prefetch` if (process.env.NODE_ENV === 'development') { if (!(prefetchProp === undefined || prefetchProp === false || prefetchProp === null)) { console.error('The `prefetch` prop of