52 lines
2.0 KiB
JavaScript
52 lines
2.0 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: f40debd565774e77.35e561bbfd.js
|
|
* Module id: 38329
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e, t, r) => {
|
|
"use strict";
|
|
Object.defineProperty(r, "__esModule", { value: !0 });
|
|
var n = {
|
|
isRequestAPICallableInsideAfter: function () {
|
|
return u;
|
|
},
|
|
throwForSearchParamsAccessInUseCache: function () {
|
|
return c;
|
|
},
|
|
throwWithStaticGenerationBailoutErrorWithDynamicError: function () {
|
|
return s;
|
|
},
|
|
};
|
|
for (var a in n) Object.defineProperty(r, a, { enumerable: !0, get: n[a] });
|
|
let o = e.r(79749),
|
|
i = e.r(146931);
|
|
function s(e, t) {
|
|
throw Object.defineProperty(
|
|
new o.StaticGenBailoutError(
|
|
`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`,
|
|
),
|
|
"__NEXT_ERROR_CODE",
|
|
{ value: "E543", enumerable: !1, configurable: !0 },
|
|
);
|
|
}
|
|
function c(e, t) {
|
|
let r = Object.defineProperty(
|
|
Error(
|
|
`Route ${e.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`,
|
|
),
|
|
"__NEXT_ERROR_CODE",
|
|
{ value: "E842", enumerable: !1, configurable: !0 },
|
|
);
|
|
throw (
|
|
(Error.captureStackTrace(r, t), (e.invalidDynamicUsageError ??= r), r)
|
|
);
|
|
}
|
|
function u() {
|
|
let e = i.afterTaskAsyncStorage.getStore();
|
|
return (null == e ? void 0 : e.rootTaskSpawnPhase) === "action";
|
|
}
|
|
};
|
|
|
|
export default moduleFactory;
|