Rocky_Mountain_Vending/.pnpm-store/v10/files/06/dfc5e901d8c22364e4092cc55f2c0950de2c295d947514fcdfc69ff49f3b44f0b6213948550135822228618577314678546733418dee2e1b4f14d5ea8059c3
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

50 lines
No EOL
1.8 KiB
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
getIsPossibleServerAction: null,
getServerActionRequestMetadata: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
getIsPossibleServerAction: function() {
return getIsPossibleServerAction;
},
getServerActionRequestMetadata: function() {
return getServerActionRequestMetadata;
}
});
const _approuterheaders = require("../../client/components/app-router-headers");
function getServerActionRequestMetadata(req) {
let actionId;
let contentType;
if (req.headers instanceof Headers) {
actionId = req.headers.get(_approuterheaders.ACTION_HEADER) ?? null;
contentType = req.headers.get('content-type');
} else {
actionId = req.headers[_approuterheaders.ACTION_HEADER] ?? null;
contentType = req.headers['content-type'] ?? null;
}
const isURLEncodedAction = Boolean(req.method === 'POST' && contentType === 'application/x-www-form-urlencoded');
const isMultipartAction = Boolean(req.method === 'POST' && (contentType == null ? void 0 : contentType.startsWith('multipart/form-data')));
const isFetchAction = Boolean(actionId !== undefined && typeof actionId === 'string' && req.method === 'POST');
const isPossibleServerAction = Boolean(isFetchAction || isURLEncodedAction || isMultipartAction);
return {
actionId,
isURLEncodedAction,
isMultipartAction,
isFetchAction,
isPossibleServerAction
};
}
function getIsPossibleServerAction(req) {
return getServerActionRequestMetadata(req).isPossibleServerAction;
}
//# sourceMappingURL=server-action-request-meta.js.map