react-easy-wall 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_virtual/after-task-async-storage-instance.js +6 -0
- package/dist/cjs/_virtual/after-task-async-storage-instance.js.map +1 -0
- package/dist/cjs/_virtual/after-task-async-storage.external.js +6 -0
- package/dist/cjs/_virtual/after-task-async-storage.external.js.map +1 -0
- package/dist/cjs/_virtual/cookies.js +6 -0
- package/dist/cjs/_virtual/cookies.js.map +1 -0
- package/dist/cjs/_virtual/cookies2.js +6 -0
- package/dist/cjs/_virtual/cookies2.js.map +1 -0
- package/dist/cjs/_virtual/create-deduped-by-callsite-server-error-logger.js +6 -0
- package/dist/cjs/_virtual/create-deduped-by-callsite-server-error-logger.js.map +1 -0
- package/dist/cjs/_virtual/draft-mode.js +6 -0
- package/dist/cjs/_virtual/draft-mode.js.map +1 -0
- package/dist/cjs/_virtual/headers.js +8 -0
- package/dist/cjs/_virtual/headers.js.map +1 -0
- package/dist/cjs/_virtual/headers2.js +6 -0
- package/dist/cjs/_virtual/headers2.js.map +1 -0
- package/dist/cjs/_virtual/headers3.js +6 -0
- package/dist/cjs/_virtual/headers3.js.map +1 -0
- package/dist/cjs/_virtual/headers4.js +6 -0
- package/dist/cjs/_virtual/headers4.js.map +1 -0
- package/dist/cjs/_virtual/reflect.js +6 -0
- package/dist/cjs/_virtual/reflect.js.map +1 -0
- package/dist/cjs/_virtual/request-cookies.js +6 -0
- package/dist/cjs/_virtual/request-cookies.js.map +1 -0
- package/dist/cjs/_virtual/utils.js +6 -0
- package/dist/cjs/_virtual/utils.js.map +1 -0
- package/dist/cjs/components/session/SessionProvider.js +3 -12
- package/dist/cjs/components/session/SessionProvider.js.map +1 -1
- package/dist/cjs/components/session/session.server.actions.js +33 -0
- package/dist/cjs/components/session/session.server.actions.js.map +1 -0
- package/dist/cjs/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +343 -0
- package/dist/cjs/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js.map +1 -0
- package/dist/cjs/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +30 -0
- package/dist/cjs/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js.map +1 -0
- package/dist/cjs/node_modules/next/dist/server/app-render/after-task-async-storage.external.js +29 -0
- package/dist/cjs/node_modules/next/dist/server/app-render/after-task-async-storage.external.js.map +1 -0
- package/dist/cjs/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js +112 -0
- package/dist/cjs/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js.map +1 -0
- package/dist/cjs/node_modules/next/dist/server/request/cookies.js +415 -0
- package/dist/cjs/node_modules/next/dist/server/request/cookies.js.map +1 -0
- package/dist/cjs/node_modules/next/dist/server/request/draft-mode.js +293 -0
- package/dist/cjs/node_modules/next/dist/server/request/draft-mode.js.map +1 -0
- package/dist/cjs/node_modules/next/dist/server/request/headers.js +366 -0
- package/dist/cjs/node_modules/next/dist/server/request/headers.js.map +1 -0
- package/dist/cjs/node_modules/next/dist/server/request/utils.js +73 -0
- package/dist/cjs/node_modules/next/dist/server/request/utils.js.map +1 -0
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +204 -0
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/headers.js.map +1 -0
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +45 -0
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js.map +1 -0
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +218 -0
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js.map +1 -0
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/cookies.js +40 -0
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/cookies.js.map +1 -0
- package/dist/cjs/node_modules/next/headers.js +20 -0
- package/dist/cjs/node_modules/next/headers.js.map +1 -0
- package/dist/esm/_virtual/after-task-async-storage-instance.js +4 -0
- package/dist/esm/_virtual/after-task-async-storage-instance.js.map +1 -0
- package/dist/esm/_virtual/after-task-async-storage.external.js +4 -0
- package/dist/esm/_virtual/after-task-async-storage.external.js.map +1 -0
- package/dist/esm/_virtual/cookies.js +4 -0
- package/dist/esm/_virtual/cookies.js.map +1 -0
- package/dist/esm/_virtual/cookies2.js +4 -0
- package/dist/esm/_virtual/cookies2.js.map +1 -0
- package/dist/esm/_virtual/create-deduped-by-callsite-server-error-logger.js +4 -0
- package/dist/esm/_virtual/create-deduped-by-callsite-server-error-logger.js.map +1 -0
- package/dist/esm/_virtual/draft-mode.js +4 -0
- package/dist/esm/_virtual/draft-mode.js.map +1 -0
- package/dist/esm/_virtual/headers.js +6 -0
- package/dist/esm/_virtual/headers.js.map +1 -0
- package/dist/esm/_virtual/headers2.js +4 -0
- package/dist/esm/_virtual/headers2.js.map +1 -0
- package/dist/esm/_virtual/headers3.js +4 -0
- package/dist/esm/_virtual/headers3.js.map +1 -0
- package/dist/esm/_virtual/headers4.js +4 -0
- package/dist/esm/_virtual/headers4.js.map +1 -0
- package/dist/esm/_virtual/reflect.js +4 -0
- package/dist/esm/_virtual/reflect.js.map +1 -0
- package/dist/esm/_virtual/request-cookies.js +4 -0
- package/dist/esm/_virtual/request-cookies.js.map +1 -0
- package/dist/esm/_virtual/utils.js +4 -0
- package/dist/esm/_virtual/utils.js.map +1 -0
- package/dist/esm/components/session/SessionProvider.js +3 -12
- package/dist/esm/components/session/SessionProvider.js.map +1 -1
- package/dist/esm/components/session/session.server.actions.js +31 -0
- package/dist/esm/components/session/session.server.actions.js.map +1 -0
- package/dist/esm/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +341 -0
- package/dist/esm/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js.map +1 -0
- package/dist/esm/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +28 -0
- package/dist/esm/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js.map +1 -0
- package/dist/esm/node_modules/next/dist/server/app-render/after-task-async-storage.external.js +27 -0
- package/dist/esm/node_modules/next/dist/server/app-render/after-task-async-storage.external.js.map +1 -0
- package/dist/esm/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js +110 -0
- package/dist/esm/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js.map +1 -0
- package/dist/esm/node_modules/next/dist/server/request/cookies.js +413 -0
- package/dist/esm/node_modules/next/dist/server/request/cookies.js.map +1 -0
- package/dist/esm/node_modules/next/dist/server/request/draft-mode.js +291 -0
- package/dist/esm/node_modules/next/dist/server/request/draft-mode.js.map +1 -0
- package/dist/esm/node_modules/next/dist/server/request/headers.js +364 -0
- package/dist/esm/node_modules/next/dist/server/request/headers.js.map +1 -0
- package/dist/esm/node_modules/next/dist/server/request/utils.js +71 -0
- package/dist/esm/node_modules/next/dist/server/request/utils.js.map +1 -0
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +202 -0
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/headers.js.map +1 -0
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +43 -0
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js.map +1 -0
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +216 -0
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js.map +1 -0
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/cookies.js +38 -0
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/cookies.js.map +1 -0
- package/dist/esm/node_modules/next/headers.js +18 -0
- package/dist/esm/node_modules/next/headers.js.map +1 -0
- package/dist/esm/types/components/session/session.server.actions.d.ts +50 -0
- package/dist/esm/types/config/config.types.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cookies.js","sources":["../../../../../../../node_modules/next/dist/server/request/cookies.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"cookies\", {\n enumerable: true,\n get: function() {\n return cookies;\n }\n});\nconst _requestcookies = require(\"../web/spec-extension/adapters/request-cookies\");\nconst _cookies = require(\"../web/spec-extension/cookies\");\nconst _workasyncstorageexternal = require(\"../app-render/work-async-storage.external\");\nconst _workunitasyncstorageexternal = require(\"../app-render/work-unit-async-storage.external\");\nconst _dynamicrendering = require(\"../app-render/dynamic-rendering\");\nconst _staticgenerationbailout = require(\"../../client/components/static-generation-bailout\");\nconst _dynamicrenderingutils = require(\"../dynamic-rendering-utils\");\nconst _creatededupedbycallsiteservererrorlogger = require(\"../create-deduped-by-callsite-server-error-logger\");\nconst _utils = require(\"./utils\");\nconst _invarianterror = require(\"../../shared/lib/invariant-error\");\nconst _reflect = require(\"../web/spec-extension/adapters/reflect\");\nfunction cookies() {\n const callingExpression = 'cookies';\n const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();\n const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();\n if (workStore) {\n if (workUnitStore && workUnitStore.phase === 'after' && !(0, _utils.isRequestAPICallableInsideAfter)()) {\n throw Object.defineProperty(new Error(// TODO(after): clarify that this only applies to pages?\n `Route ${workStore.route} used \"cookies\" inside \"after(...)\". This is not supported. If you need this data inside an \"after\" callback, use \"cookies\" outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`), \"__NEXT_ERROR_CODE\", {\n value: \"E88\",\n enumerable: false,\n configurable: true\n });\n }\n if (workStore.forceStatic) {\n // When using forceStatic we override all other logic and always just return an empty\n // cookies object without tracking\n const underlyingCookies = createEmptyCookies();\n return makeUntrackedExoticCookies(underlyingCookies);\n }\n if (workStore.dynamicShouldError) {\n throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route ${workStore.route} with \\`dynamic = \"error\"\\` couldn't be rendered statically because it used \\`cookies\\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), \"__NEXT_ERROR_CODE\", {\n value: \"E549\",\n enumerable: false,\n configurable: true\n });\n }\n if (workUnitStore) {\n switch(workUnitStore.type){\n case 'cache':\n const error = Object.defineProperty(new Error(`Route ${workStore.route} used \"cookies\" inside \"use cache\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"cookies\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), \"__NEXT_ERROR_CODE\", {\n value: \"E398\",\n enumerable: false,\n configurable: true\n });\n Error.captureStackTrace(error, cookies);\n workStore.invalidDynamicUsageError ??= error;\n throw error;\n case 'unstable-cache':\n throw Object.defineProperty(new Error(`Route ${workStore.route} used \"cookies\" inside a function cached with \"unstable_cache(...)\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"cookies\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), \"__NEXT_ERROR_CODE\", {\n value: \"E157\",\n enumerable: false,\n configurable: true\n });\n case 'prerender':\n return makeHangingCookies(workStore, workUnitStore);\n case 'prerender-client':\n const exportName = '`cookies`';\n throw Object.defineProperty(new _invarianterror.InvariantError(`${exportName} must not be used within a client component. Next.js should be preventing ${exportName} from being included in client components statically, but did not in this case.`), \"__NEXT_ERROR_CODE\", {\n value: \"E693\",\n enumerable: false,\n configurable: true\n });\n case 'prerender-ppr':\n // We need track dynamic access here eagerly to keep continuity with\n // how cookies has worked in PPR without cacheComponents.\n return (0, _dynamicrendering.postponeWithTracking)(workStore.route, callingExpression, workUnitStore.dynamicTracking);\n case 'prerender-legacy':\n // We track dynamic access here so we don't need to wrap the cookies\n // in individual property access tracking.\n return (0, _dynamicrendering.throwToInterruptStaticGeneration)(callingExpression, workStore, workUnitStore);\n case 'prerender-runtime':\n return (0, _dynamicrendering.delayUntilRuntimeStage)(workUnitStore, makeUntrackedCookies(workUnitStore.cookies));\n case 'private-cache':\n if (process.env.__NEXT_CACHE_COMPONENTS) {\n return makeUntrackedCookies(workUnitStore.cookies);\n }\n return makeUntrackedExoticCookies(workUnitStore.cookies);\n case 'request':\n (0, _dynamicrendering.trackDynamicDataInDynamicRender)(workUnitStore);\n let underlyingCookies;\n if ((0, _requestcookies.areCookiesMutableInCurrentPhase)(workUnitStore)) {\n // We can't conditionally return different types here based on the context.\n // To avoid confusion, we always return the readonly type here.\n underlyingCookies = workUnitStore.userspaceMutableCookies;\n } else {\n underlyingCookies = workUnitStore.cookies;\n }\n if (process.env.NODE_ENV === 'development') {\n // Semantically we only need the dev tracking when running in `next dev`\n // but since you would never use next dev with production NODE_ENV we use this\n // as a proxy so we can statically exclude this code from production builds.\n if (process.env.__NEXT_CACHE_COMPONENTS) {\n return makeUntrackedCookiesWithDevWarnings(underlyingCookies, workStore == null ? void 0 : workStore.route);\n }\n return makeUntrackedExoticCookiesWithDevWarnings(underlyingCookies, workStore == null ? void 0 : workStore.route);\n } else {\n if (process.env.__NEXT_CACHE_COMPONENTS) {\n return makeUntrackedCookies(underlyingCookies);\n }\n return makeUntrackedExoticCookies(underlyingCookies);\n }\n default:\n workUnitStore;\n }\n }\n }\n // If we end up here, there was no work store or work unit store present.\n (0, _workunitasyncstorageexternal.throwForMissingRequestStore)(callingExpression);\n}\nfunction createEmptyCookies() {\n return _requestcookies.RequestCookiesAdapter.seal(new _cookies.RequestCookies(new Headers({})));\n}\nconst CachedCookies = new WeakMap();\nfunction makeHangingCookies(workStore, prerenderStore) {\n const cachedPromise = CachedCookies.get(prerenderStore);\n if (cachedPromise) {\n return cachedPromise;\n }\n const promise = (0, _dynamicrenderingutils.makeHangingPromise)(prerenderStore.renderSignal, workStore.route, '`cookies()`');\n CachedCookies.set(prerenderStore, promise);\n return promise;\n}\nfunction makeUntrackedCookies(underlyingCookies) {\n const cachedCookies = CachedCookies.get(underlyingCookies);\n if (cachedCookies) {\n return cachedCookies;\n }\n const promise = Promise.resolve(underlyingCookies);\n CachedCookies.set(underlyingCookies, promise);\n return promise;\n}\nfunction makeUntrackedExoticCookies(underlyingCookies) {\n const cachedCookies = CachedCookies.get(underlyingCookies);\n if (cachedCookies) {\n return cachedCookies;\n }\n const promise = Promise.resolve(underlyingCookies);\n CachedCookies.set(underlyingCookies, promise);\n Object.defineProperties(promise, {\n [Symbol.iterator]: {\n value: underlyingCookies[Symbol.iterator] ? underlyingCookies[Symbol.iterator].bind(underlyingCookies) : // We should remove this and unify our cookies types. We could just let this continue to throw lazily\n // but that's already a hard thing to debug so we may as well implement it consistently. The biggest problem with\n // implementing this in this way is the underlying cookie type is a ResponseCookie and not a RequestCookie and so it\n // has extra properties not available on RequestCookie instances.\n polyfilledResponseCookiesIterator.bind(underlyingCookies)\n },\n size: {\n get () {\n return underlyingCookies.size;\n }\n },\n get: {\n value: underlyingCookies.get.bind(underlyingCookies)\n },\n getAll: {\n value: underlyingCookies.getAll.bind(underlyingCookies)\n },\n has: {\n value: underlyingCookies.has.bind(underlyingCookies)\n },\n set: {\n value: underlyingCookies.set.bind(underlyingCookies)\n },\n delete: {\n value: underlyingCookies.delete.bind(underlyingCookies)\n },\n clear: {\n value: // @ts-expect-error clear is defined in RequestCookies implementation but not in the type\n typeof underlyingCookies.clear === 'function' ? underlyingCookies.clear.bind(underlyingCookies) : // We should remove this and unify our cookies types. We could just let this continue to throw lazily\n // but that's already a hard thing to debug so we may as well implement it consistently. The biggest problem with\n // implementing this in this way is the underlying cookie type is a ResponseCookie and not a RequestCookie and so it\n // has extra properties not available on RequestCookie instances.\n polyfilledResponseCookiesClear.bind(underlyingCookies, promise)\n },\n toString: {\n value: underlyingCookies.toString.bind(underlyingCookies)\n }\n });\n return promise;\n}\nfunction makeUntrackedExoticCookiesWithDevWarnings(underlyingCookies, route) {\n const cachedCookies = CachedCookies.get(underlyingCookies);\n if (cachedCookies) {\n return cachedCookies;\n }\n const promise = (0, _dynamicrenderingutils.makeDevtoolsIOAwarePromise)(underlyingCookies);\n CachedCookies.set(underlyingCookies, promise);\n Object.defineProperties(promise, {\n [Symbol.iterator]: {\n value: function() {\n const expression = '`...cookies()` or similar iteration';\n syncIODev(route, expression);\n return underlyingCookies[Symbol.iterator] ? underlyingCookies[Symbol.iterator].apply(underlyingCookies, arguments) : // We should remove this and unify our cookies types. We could just let this continue to throw lazily\n // but that's already a hard thing to debug so we may as well implement it consistently. The biggest problem with\n // implementing this in this way is the underlying cookie type is a ResponseCookie and not a RequestCookie and so it\n // has extra properties not available on RequestCookie instances.\n polyfilledResponseCookiesIterator.call(underlyingCookies);\n },\n writable: false\n },\n size: {\n get () {\n const expression = '`cookies().size`';\n syncIODev(route, expression);\n return underlyingCookies.size;\n }\n },\n get: {\n value: function get() {\n let expression;\n if (arguments.length === 0) {\n expression = '`cookies().get()`';\n } else {\n expression = `\\`cookies().get(${describeNameArg(arguments[0])})\\``;\n }\n syncIODev(route, expression);\n return underlyingCookies.get.apply(underlyingCookies, arguments);\n },\n writable: false\n },\n getAll: {\n value: function getAll() {\n let expression;\n if (arguments.length === 0) {\n expression = '`cookies().getAll()`';\n } else {\n expression = `\\`cookies().getAll(${describeNameArg(arguments[0])})\\``;\n }\n syncIODev(route, expression);\n return underlyingCookies.getAll.apply(underlyingCookies, arguments);\n },\n writable: false\n },\n has: {\n value: function get() {\n let expression;\n if (arguments.length === 0) {\n expression = '`cookies().has()`';\n } else {\n expression = `\\`cookies().has(${describeNameArg(arguments[0])})\\``;\n }\n syncIODev(route, expression);\n return underlyingCookies.has.apply(underlyingCookies, arguments);\n },\n writable: false\n },\n set: {\n value: function set() {\n let expression;\n if (arguments.length === 0) {\n expression = '`cookies().set()`';\n } else {\n const arg = arguments[0];\n if (arg) {\n expression = `\\`cookies().set(${describeNameArg(arg)}, ...)\\``;\n } else {\n expression = '`cookies().set(...)`';\n }\n }\n syncIODev(route, expression);\n return underlyingCookies.set.apply(underlyingCookies, arguments);\n },\n writable: false\n },\n delete: {\n value: function() {\n let expression;\n if (arguments.length === 0) {\n expression = '`cookies().delete()`';\n } else if (arguments.length === 1) {\n expression = `\\`cookies().delete(${describeNameArg(arguments[0])})\\``;\n } else {\n expression = `\\`cookies().delete(${describeNameArg(arguments[0])}, ...)\\``;\n }\n syncIODev(route, expression);\n return underlyingCookies.delete.apply(underlyingCookies, arguments);\n },\n writable: false\n },\n clear: {\n value: function clear() {\n const expression = '`cookies().clear()`';\n syncIODev(route, expression);\n // @ts-ignore clear is defined in RequestCookies implementation but not in the type\n return typeof underlyingCookies.clear === 'function' ? underlyingCookies.clear.apply(underlyingCookies, arguments) : // We should remove this and unify our cookies types. We could just let this continue to throw lazily\n // but that's already a hard thing to debug so we may as well implement it consistently. The biggest problem with\n // implementing this in this way is the underlying cookie type is a ResponseCookie and not a RequestCookie and so it\n // has extra properties not available on RequestCookie instances.\n polyfilledResponseCookiesClear.call(underlyingCookies, promise);\n },\n writable: false\n },\n toString: {\n value: function toString() {\n const expression = '`cookies().toString()` or implicit casting';\n syncIODev(route, expression);\n return underlyingCookies.toString.apply(underlyingCookies, arguments);\n },\n writable: false\n }\n });\n return promise;\n}\n// Similar to `makeUntrackedExoticCookiesWithDevWarnings`, but just logging the\n// sync access without actually defining the cookies properties on the promise.\nfunction makeUntrackedCookiesWithDevWarnings(underlyingCookies, route) {\n const cachedCookies = CachedCookies.get(underlyingCookies);\n if (cachedCookies) {\n return cachedCookies;\n }\n const promise = (0, _dynamicrenderingutils.makeDevtoolsIOAwarePromise)(underlyingCookies);\n const proxiedPromise = new Proxy(promise, {\n get (target, prop, receiver) {\n switch(prop){\n case Symbol.iterator:\n {\n warnForSyncAccess(route, '`...cookies()` or similar iteration');\n break;\n }\n case 'size':\n case 'get':\n case 'getAll':\n case 'has':\n case 'set':\n case 'delete':\n case 'clear':\n case 'toString':\n {\n warnForSyncAccess(route, `\\`cookies().${prop}\\``);\n break;\n }\n default:\n {\n // We only warn for well-defined properties of the cookies object.\n }\n }\n return _reflect.ReflectAdapter.get(target, prop, receiver);\n }\n });\n CachedCookies.set(underlyingCookies, proxiedPromise);\n return proxiedPromise;\n}\nfunction describeNameArg(arg) {\n return typeof arg === 'object' && arg !== null && typeof arg.name === 'string' ? `'${arg.name}'` : typeof arg === 'string' ? `'${arg}'` : '...';\n}\nfunction syncIODev(route, expression) {\n const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();\n if (workUnitStore) {\n switch(workUnitStore.type){\n case 'request':\n if (workUnitStore.prerenderPhase === true) {\n // When we're rendering dynamically in dev, we need to advance out of\n // the Prerender environment when we read Request data synchronously.\n (0, _dynamicrendering.trackSynchronousRequestDataAccessInDev)(workUnitStore);\n }\n break;\n case 'prerender':\n case 'prerender-client':\n case 'prerender-runtime':\n case 'prerender-ppr':\n case 'prerender-legacy':\n case 'cache':\n case 'private-cache':\n case 'unstable-cache':\n break;\n default:\n workUnitStore;\n }\n }\n // In all cases we warn normally\n warnForSyncAccess(route, expression);\n}\nconst warnForSyncAccess = (0, _creatededupedbycallsiteservererrorlogger.createDedupedByCallsiteServerErrorLoggerDev)(createCookiesAccessError);\nfunction createCookiesAccessError(route, expression) {\n const prefix = route ? `Route \"${route}\" ` : 'This route ';\n return Object.defineProperty(new Error(`${prefix}used ${expression}. ` + `\\`cookies()\\` should be awaited before using its value. ` + `Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`), \"__NEXT_ERROR_CODE\", {\n value: \"E223\",\n enumerable: false,\n configurable: true\n });\n}\nfunction polyfilledResponseCookiesIterator() {\n return this.getAll().map((c)=>[\n c.name,\n c\n ]).values();\n}\nfunction polyfilledResponseCookiesClear(returnable) {\n for (const cookie of this.getAll()){\n this.delete(cookie.name);\n }\n return returnable;\n}\n\n//# sourceMappingURL=cookies.js.map"],"names":["exports","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8","require$$9","require$$10"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,EAAA,MAAM,CAAC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CAAC,IAAI,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,wDAAwD,CAAC,GAAG,CAAC,8DAA8D,CAAC,CAAC,EAAE,mBAAmB,EAAE;UAC1N,KAAK,EAAE,MAAM;UACb,UAAU,EAAE,KAAK;AACzB,UAAQ,YAAY,EAAE;AACtB,OAAK,CAAC;AACN,EAAA;AACA,EAAA,SAAS,iCAAiC,GAAG;MACzC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG;cACtB,CAAC,CAAC,IAAI;cACN;WACH,CAAC,CAAC,MAAM,EAAE;AACnB,EAAA;EACA,SAAS,8BAA8B,CAAC,UAAU,EAAE;MAChD,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;AACvC,UAAQ,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;AAChC,MAAA;AACA,MAAI,OAAO,UAAU;AACrB,EAAA;;AAEA;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var draftMode = require('../../../../../_virtual/draft-mode.js');
|
|
4
|
+
var workUnitAsyncStorage_external = require('../app-render/work-unit-async-storage.external.js');
|
|
5
|
+
var workAsyncStorage_external = require('../app-render/work-async-storage.external.js');
|
|
6
|
+
var dynamicRendering = require('../app-render/dynamic-rendering.js');
|
|
7
|
+
var createDedupedByCallsiteServerErrorLogger = require('../create-deduped-by-callsite-server-error-logger.js');
|
|
8
|
+
var staticGenerationBailout = require('../../client/components/static-generation-bailout.js');
|
|
9
|
+
var hooksServerContext = require('../../client/components/hooks-server-context.js');
|
|
10
|
+
var invariantError = require('../../shared/lib/invariant-error.js');
|
|
11
|
+
var reflect = require('../web/spec-extension/adapters/reflect.js');
|
|
12
|
+
|
|
13
|
+
var hasRequiredDraftMode;
|
|
14
|
+
|
|
15
|
+
function requireDraftMode () {
|
|
16
|
+
if (hasRequiredDraftMode) return draftMode.__exports;
|
|
17
|
+
hasRequiredDraftMode = 1;
|
|
18
|
+
(function (exports$1) {
|
|
19
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports$1, "draftMode", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function() {
|
|
25
|
+
return draftMode;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const _workunitasyncstorageexternal = workUnitAsyncStorage_external.__require();
|
|
29
|
+
const _workasyncstorageexternal = workAsyncStorage_external.__require();
|
|
30
|
+
const _dynamicrendering = dynamicRendering.__require();
|
|
31
|
+
const _creatededupedbycallsiteservererrorlogger = createDedupedByCallsiteServerErrorLogger.__require();
|
|
32
|
+
const _staticgenerationbailout = staticGenerationBailout.__require();
|
|
33
|
+
const _hooksservercontext = hooksServerContext.__require();
|
|
34
|
+
const _invarianterror = invariantError.__require();
|
|
35
|
+
const _reflect = reflect.__require();
|
|
36
|
+
function draftMode() {
|
|
37
|
+
const callingExpression = 'draftMode';
|
|
38
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
39
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
40
|
+
if (!workStore || !workUnitStore) {
|
|
41
|
+
(0, _workunitasyncstorageexternal.throwForMissingRequestStore)(callingExpression);
|
|
42
|
+
}
|
|
43
|
+
switch(workUnitStore.type){
|
|
44
|
+
case 'prerender-runtime':
|
|
45
|
+
// TODO(runtime-ppr): does it make sense to delay this? normally it's always microtasky
|
|
46
|
+
return (0, _dynamicrendering.delayUntilRuntimeStage)(workUnitStore, createOrGetCachedDraftMode(workUnitStore.draftMode, workStore));
|
|
47
|
+
case 'request':
|
|
48
|
+
return createOrGetCachedDraftMode(workUnitStore.draftMode, workStore);
|
|
49
|
+
case 'cache':
|
|
50
|
+
case 'private-cache':
|
|
51
|
+
case 'unstable-cache':
|
|
52
|
+
// Inside of `"use cache"` or `unstable_cache`, draft mode is available if
|
|
53
|
+
// the outmost work unit store is a request store (or a runtime prerender),
|
|
54
|
+
// and if draft mode is enabled.
|
|
55
|
+
const draftModeProvider = (0, _workunitasyncstorageexternal.getDraftModeProviderForCacheScope)(workStore, workUnitStore);
|
|
56
|
+
if (draftModeProvider) {
|
|
57
|
+
return createOrGetCachedDraftMode(draftModeProvider, workStore);
|
|
58
|
+
}
|
|
59
|
+
// Otherwise, we fall through to providing an empty draft mode.
|
|
60
|
+
// eslint-disable-next-line no-fallthrough
|
|
61
|
+
case 'prerender':
|
|
62
|
+
case 'prerender-client':
|
|
63
|
+
case 'prerender-ppr':
|
|
64
|
+
case 'prerender-legacy':
|
|
65
|
+
// Return empty draft mode
|
|
66
|
+
return createOrGetCachedDraftMode(null, workStore);
|
|
67
|
+
default:
|
|
68
|
+
return workUnitStore;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function createOrGetCachedDraftMode(draftModeProvider, workStore) {
|
|
72
|
+
const cacheKey = draftModeProvider ?? NullDraftMode;
|
|
73
|
+
const cachedDraftMode = CachedDraftModes.get(cacheKey);
|
|
74
|
+
if (cachedDraftMode) {
|
|
75
|
+
return cachedDraftMode;
|
|
76
|
+
}
|
|
77
|
+
let promise;
|
|
78
|
+
if (process.env.NODE_ENV === 'development' && !(workStore == null ? void 0 : workStore.isPrefetchRequest)) {
|
|
79
|
+
const route = workStore == null ? void 0 : workStore.route;
|
|
80
|
+
if (process.env.__NEXT_CACHE_COMPONENTS) {
|
|
81
|
+
return createDraftModeWithDevWarnings(draftModeProvider, route);
|
|
82
|
+
}
|
|
83
|
+
promise = createExoticDraftModeWithDevWarnings(draftModeProvider, route);
|
|
84
|
+
} else {
|
|
85
|
+
if (process.env.__NEXT_CACHE_COMPONENTS) {
|
|
86
|
+
return Promise.resolve(new DraftMode(draftModeProvider));
|
|
87
|
+
}
|
|
88
|
+
promise = createExoticDraftMode(draftModeProvider);
|
|
89
|
+
}
|
|
90
|
+
CachedDraftModes.set(cacheKey, promise);
|
|
91
|
+
return promise;
|
|
92
|
+
}
|
|
93
|
+
const NullDraftMode = {};
|
|
94
|
+
const CachedDraftModes = new WeakMap();
|
|
95
|
+
function createExoticDraftMode(underlyingProvider) {
|
|
96
|
+
const instance = new DraftMode(underlyingProvider);
|
|
97
|
+
const promise = Promise.resolve(instance);
|
|
98
|
+
Object.defineProperty(promise, 'isEnabled', {
|
|
99
|
+
get () {
|
|
100
|
+
return instance.isEnabled;
|
|
101
|
+
},
|
|
102
|
+
enumerable: true,
|
|
103
|
+
configurable: true
|
|
104
|
+
});
|
|
105
|
+
promise.enable = instance.enable.bind(instance);
|
|
106
|
+
promise.disable = instance.disable.bind(instance);
|
|
107
|
+
return promise;
|
|
108
|
+
}
|
|
109
|
+
function createExoticDraftModeWithDevWarnings(underlyingProvider, route) {
|
|
110
|
+
const instance = new DraftMode(underlyingProvider);
|
|
111
|
+
const promise = Promise.resolve(instance);
|
|
112
|
+
Object.defineProperty(promise, 'isEnabled', {
|
|
113
|
+
get () {
|
|
114
|
+
const expression = '`draftMode().isEnabled`';
|
|
115
|
+
syncIODev(route, expression);
|
|
116
|
+
return instance.isEnabled;
|
|
117
|
+
},
|
|
118
|
+
enumerable: true,
|
|
119
|
+
configurable: true
|
|
120
|
+
});
|
|
121
|
+
Object.defineProperty(promise, 'enable', {
|
|
122
|
+
value: function get() {
|
|
123
|
+
const expression = '`draftMode().enable()`';
|
|
124
|
+
syncIODev(route, expression);
|
|
125
|
+
return instance.enable.apply(instance, arguments);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
Object.defineProperty(promise, 'disable', {
|
|
129
|
+
value: function get() {
|
|
130
|
+
const expression = '`draftMode().disable()`';
|
|
131
|
+
syncIODev(route, expression);
|
|
132
|
+
return instance.disable.apply(instance, arguments);
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
return promise;
|
|
136
|
+
}
|
|
137
|
+
// Similar to `createExoticDraftModeWithDevWarnings`, but just logging the sync
|
|
138
|
+
// access without actually defining the draftMode properties on the promise.
|
|
139
|
+
function createDraftModeWithDevWarnings(underlyingProvider, route) {
|
|
140
|
+
const instance = new DraftMode(underlyingProvider);
|
|
141
|
+
const promise = Promise.resolve(instance);
|
|
142
|
+
const proxiedPromise = new Proxy(promise, {
|
|
143
|
+
get (target, prop, receiver) {
|
|
144
|
+
switch(prop){
|
|
145
|
+
case 'isEnabled':
|
|
146
|
+
warnForSyncAccess(route, `\`draftMode().${prop}\``);
|
|
147
|
+
break;
|
|
148
|
+
case 'enable':
|
|
149
|
+
case 'disable':
|
|
150
|
+
{
|
|
151
|
+
warnForSyncAccess(route, `\`draftMode().${prop}()\``);
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return _reflect.ReflectAdapter.get(target, prop, receiver);
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
return proxiedPromise;
|
|
159
|
+
}
|
|
160
|
+
class DraftMode {
|
|
161
|
+
constructor(provider){
|
|
162
|
+
this._provider = provider;
|
|
163
|
+
}
|
|
164
|
+
get isEnabled() {
|
|
165
|
+
if (this._provider !== null) {
|
|
166
|
+
return this._provider.isEnabled;
|
|
167
|
+
}
|
|
168
|
+
return false;
|
|
169
|
+
}
|
|
170
|
+
enable() {
|
|
171
|
+
// We have a store we want to track dynamic data access to ensure we
|
|
172
|
+
// don't statically generate routes that manipulate draft mode.
|
|
173
|
+
trackDynamicDraftMode('draftMode().enable()', this.enable);
|
|
174
|
+
if (this._provider !== null) {
|
|
175
|
+
this._provider.enable();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
disable() {
|
|
179
|
+
trackDynamicDraftMode('draftMode().disable()', this.disable);
|
|
180
|
+
if (this._provider !== null) {
|
|
181
|
+
this._provider.disable();
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
function syncIODev(route, expression) {
|
|
186
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
187
|
+
if (workUnitStore) {
|
|
188
|
+
switch(workUnitStore.type){
|
|
189
|
+
case 'request':
|
|
190
|
+
if (workUnitStore.prerenderPhase === true) {
|
|
191
|
+
// When we're rendering dynamically in dev, we need to advance out of
|
|
192
|
+
// the Prerender environment when we read Request data synchronously.
|
|
193
|
+
(0, _dynamicrendering.trackSynchronousRequestDataAccessInDev)(workUnitStore);
|
|
194
|
+
}
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
// In all cases we warn normally
|
|
199
|
+
warnForSyncAccess(route, expression);
|
|
200
|
+
}
|
|
201
|
+
const warnForSyncAccess = (0, _creatededupedbycallsiteservererrorlogger.createDedupedByCallsiteServerErrorLoggerDev)(createDraftModeAccessError);
|
|
202
|
+
function createDraftModeAccessError(route, expression) {
|
|
203
|
+
const prefix = route ? `Route "${route}" ` : 'This route ';
|
|
204
|
+
return Object.defineProperty(new Error(`${prefix}used ${expression}. ` + `\`draftMode()\` should be awaited before using its value. ` + `Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`), "__NEXT_ERROR_CODE", {
|
|
205
|
+
value: "E377",
|
|
206
|
+
enumerable: false,
|
|
207
|
+
configurable: true
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
function trackDynamicDraftMode(expression, constructorOpt) {
|
|
211
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
212
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
213
|
+
if (workStore) {
|
|
214
|
+
// We have a store we want to track dynamic data access to ensure we
|
|
215
|
+
// don't statically generate routes that manipulate draft mode.
|
|
216
|
+
if ((workUnitStore == null ? void 0 : workUnitStore.phase) === 'after') {
|
|
217
|
+
throw Object.defineProperty(new Error(`Route ${workStore.route} used "${expression}" inside \`after\`. The enabled status of draftMode can be read inside \`after\` but you cannot enable or disable draftMode. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`), "__NEXT_ERROR_CODE", {
|
|
218
|
+
value: "E348",
|
|
219
|
+
enumerable: false,
|
|
220
|
+
configurable: true
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
if (workStore.dynamicShouldError) {
|
|
224
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route ${workStore.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
225
|
+
value: "E553",
|
|
226
|
+
enumerable: false,
|
|
227
|
+
configurable: true
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
if (workUnitStore) {
|
|
231
|
+
switch(workUnitStore.type){
|
|
232
|
+
case 'cache':
|
|
233
|
+
case 'private-cache':
|
|
234
|
+
{
|
|
235
|
+
const error = Object.defineProperty(new Error(`Route ${workStore.route} used "${expression}" inside "use cache". The enabled status of draftMode can be read in caches but you must not enable or disable draftMode inside a cache. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
236
|
+
value: "E246",
|
|
237
|
+
enumerable: false,
|
|
238
|
+
configurable: true
|
|
239
|
+
});
|
|
240
|
+
Error.captureStackTrace(error, constructorOpt);
|
|
241
|
+
workStore.invalidDynamicUsageError ??= error;
|
|
242
|
+
throw error;
|
|
243
|
+
}
|
|
244
|
+
case 'unstable-cache':
|
|
245
|
+
throw Object.defineProperty(new Error(`Route ${workStore.route} used "${expression}" inside a function cached with "unstable_cache(...)". The enabled status of draftMode can be read in caches but you must not enable or disable draftMode inside a cache. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
246
|
+
value: "E259",
|
|
247
|
+
enumerable: false,
|
|
248
|
+
configurable: true
|
|
249
|
+
});
|
|
250
|
+
case 'prerender':
|
|
251
|
+
case 'prerender-runtime':
|
|
252
|
+
{
|
|
253
|
+
const error = Object.defineProperty(new Error(`Route ${workStore.route} used ${expression} without first calling \`await connection()\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers`), "__NEXT_ERROR_CODE", {
|
|
254
|
+
value: "E126",
|
|
255
|
+
enumerable: false,
|
|
256
|
+
configurable: true
|
|
257
|
+
});
|
|
258
|
+
return (0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(workStore.route, expression, error, workUnitStore);
|
|
259
|
+
}
|
|
260
|
+
case 'prerender-client':
|
|
261
|
+
const exportName = '`draftMode`';
|
|
262
|
+
throw Object.defineProperty(new _invarianterror.InvariantError(`${exportName} must not be used within a client component. Next.js should be preventing ${exportName} from being included in client components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
263
|
+
value: "E693",
|
|
264
|
+
enumerable: false,
|
|
265
|
+
configurable: true
|
|
266
|
+
});
|
|
267
|
+
case 'prerender-ppr':
|
|
268
|
+
return (0, _dynamicrendering.postponeWithTracking)(workStore.route, expression, workUnitStore.dynamicTracking);
|
|
269
|
+
case 'prerender-legacy':
|
|
270
|
+
workUnitStore.revalidate = 0;
|
|
271
|
+
const err = Object.defineProperty(new _hooksservercontext.DynamicServerError(`Route ${workStore.route} couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
272
|
+
value: "E558",
|
|
273
|
+
enumerable: false,
|
|
274
|
+
configurable: true
|
|
275
|
+
});
|
|
276
|
+
workStore.dynamicUsageDescription = expression;
|
|
277
|
+
workStore.dynamicUsageStack = err.stack;
|
|
278
|
+
throw err;
|
|
279
|
+
case 'request':
|
|
280
|
+
(0, _dynamicrendering.trackDynamicDataInDynamicRender)(workUnitStore);
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
} (draftMode.__exports));
|
|
289
|
+
return draftMode.__exports;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
exports.__require = requireDraftMode;
|
|
293
|
+
//# sourceMappingURL=draft-mode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draft-mode.js","sources":["../../../../../../../node_modules/next/dist/server/request/draft-mode.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"draftMode\", {\n enumerable: true,\n get: function() {\n return draftMode;\n }\n});\nconst _workunitasyncstorageexternal = require(\"../app-render/work-unit-async-storage.external\");\nconst _workasyncstorageexternal = require(\"../app-render/work-async-storage.external\");\nconst _dynamicrendering = require(\"../app-render/dynamic-rendering\");\nconst _creatededupedbycallsiteservererrorlogger = require(\"../create-deduped-by-callsite-server-error-logger\");\nconst _staticgenerationbailout = require(\"../../client/components/static-generation-bailout\");\nconst _hooksservercontext = require(\"../../client/components/hooks-server-context\");\nconst _invarianterror = require(\"../../shared/lib/invariant-error\");\nconst _reflect = require(\"../web/spec-extension/adapters/reflect\");\nfunction draftMode() {\n const callingExpression = 'draftMode';\n const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();\n const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();\n if (!workStore || !workUnitStore) {\n (0, _workunitasyncstorageexternal.throwForMissingRequestStore)(callingExpression);\n }\n switch(workUnitStore.type){\n case 'prerender-runtime':\n // TODO(runtime-ppr): does it make sense to delay this? normally it's always microtasky\n return (0, _dynamicrendering.delayUntilRuntimeStage)(workUnitStore, createOrGetCachedDraftMode(workUnitStore.draftMode, workStore));\n case 'request':\n return createOrGetCachedDraftMode(workUnitStore.draftMode, workStore);\n case 'cache':\n case 'private-cache':\n case 'unstable-cache':\n // Inside of `\"use cache\"` or `unstable_cache`, draft mode is available if\n // the outmost work unit store is a request store (or a runtime prerender),\n // and if draft mode is enabled.\n const draftModeProvider = (0, _workunitasyncstorageexternal.getDraftModeProviderForCacheScope)(workStore, workUnitStore);\n if (draftModeProvider) {\n return createOrGetCachedDraftMode(draftModeProvider, workStore);\n }\n // Otherwise, we fall through to providing an empty draft mode.\n // eslint-disable-next-line no-fallthrough\n case 'prerender':\n case 'prerender-client':\n case 'prerender-ppr':\n case 'prerender-legacy':\n // Return empty draft mode\n return createOrGetCachedDraftMode(null, workStore);\n default:\n return workUnitStore;\n }\n}\nfunction createOrGetCachedDraftMode(draftModeProvider, workStore) {\n const cacheKey = draftModeProvider ?? NullDraftMode;\n const cachedDraftMode = CachedDraftModes.get(cacheKey);\n if (cachedDraftMode) {\n return cachedDraftMode;\n }\n let promise;\n if (process.env.NODE_ENV === 'development' && !(workStore == null ? void 0 : workStore.isPrefetchRequest)) {\n const route = workStore == null ? void 0 : workStore.route;\n if (process.env.__NEXT_CACHE_COMPONENTS) {\n return createDraftModeWithDevWarnings(draftModeProvider, route);\n }\n promise = createExoticDraftModeWithDevWarnings(draftModeProvider, route);\n } else {\n if (process.env.__NEXT_CACHE_COMPONENTS) {\n return Promise.resolve(new DraftMode(draftModeProvider));\n }\n promise = createExoticDraftMode(draftModeProvider);\n }\n CachedDraftModes.set(cacheKey, promise);\n return promise;\n}\nconst NullDraftMode = {};\nconst CachedDraftModes = new WeakMap();\nfunction createExoticDraftMode(underlyingProvider) {\n const instance = new DraftMode(underlyingProvider);\n const promise = Promise.resolve(instance);\n Object.defineProperty(promise, 'isEnabled', {\n get () {\n return instance.isEnabled;\n },\n enumerable: true,\n configurable: true\n });\n promise.enable = instance.enable.bind(instance);\n promise.disable = instance.disable.bind(instance);\n return promise;\n}\nfunction createExoticDraftModeWithDevWarnings(underlyingProvider, route) {\n const instance = new DraftMode(underlyingProvider);\n const promise = Promise.resolve(instance);\n Object.defineProperty(promise, 'isEnabled', {\n get () {\n const expression = '`draftMode().isEnabled`';\n syncIODev(route, expression);\n return instance.isEnabled;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(promise, 'enable', {\n value: function get() {\n const expression = '`draftMode().enable()`';\n syncIODev(route, expression);\n return instance.enable.apply(instance, arguments);\n }\n });\n Object.defineProperty(promise, 'disable', {\n value: function get() {\n const expression = '`draftMode().disable()`';\n syncIODev(route, expression);\n return instance.disable.apply(instance, arguments);\n }\n });\n return promise;\n}\n// Similar to `createExoticDraftModeWithDevWarnings`, but just logging the sync\n// access without actually defining the draftMode properties on the promise.\nfunction createDraftModeWithDevWarnings(underlyingProvider, route) {\n const instance = new DraftMode(underlyingProvider);\n const promise = Promise.resolve(instance);\n const proxiedPromise = new Proxy(promise, {\n get (target, prop, receiver) {\n switch(prop){\n case 'isEnabled':\n warnForSyncAccess(route, `\\`draftMode().${prop}\\``);\n break;\n case 'enable':\n case 'disable':\n {\n warnForSyncAccess(route, `\\`draftMode().${prop}()\\``);\n break;\n }\n default:\n {\n // We only warn for well-defined properties of the draftMode object.\n }\n }\n return _reflect.ReflectAdapter.get(target, prop, receiver);\n }\n });\n return proxiedPromise;\n}\nclass DraftMode {\n constructor(provider){\n this._provider = provider;\n }\n get isEnabled() {\n if (this._provider !== null) {\n return this._provider.isEnabled;\n }\n return false;\n }\n enable() {\n // We have a store we want to track dynamic data access to ensure we\n // don't statically generate routes that manipulate draft mode.\n trackDynamicDraftMode('draftMode().enable()', this.enable);\n if (this._provider !== null) {\n this._provider.enable();\n }\n }\n disable() {\n trackDynamicDraftMode('draftMode().disable()', this.disable);\n if (this._provider !== null) {\n this._provider.disable();\n }\n }\n}\nfunction syncIODev(route, expression) {\n const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();\n if (workUnitStore) {\n switch(workUnitStore.type){\n case 'request':\n if (workUnitStore.prerenderPhase === true) {\n // When we're rendering dynamically in dev, we need to advance out of\n // the Prerender environment when we read Request data synchronously.\n (0, _dynamicrendering.trackSynchronousRequestDataAccessInDev)(workUnitStore);\n }\n break;\n case 'prerender':\n case 'prerender-client':\n case 'prerender-runtime':\n case 'prerender-ppr':\n case 'prerender-legacy':\n case 'cache':\n case 'private-cache':\n case 'unstable-cache':\n break;\n default:\n workUnitStore;\n }\n }\n // In all cases we warn normally\n warnForSyncAccess(route, expression);\n}\nconst warnForSyncAccess = (0, _creatededupedbycallsiteservererrorlogger.createDedupedByCallsiteServerErrorLoggerDev)(createDraftModeAccessError);\nfunction createDraftModeAccessError(route, expression) {\n const prefix = route ? `Route \"${route}\" ` : 'This route ';\n return Object.defineProperty(new Error(`${prefix}used ${expression}. ` + `\\`draftMode()\\` should be awaited before using its value. ` + `Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`), \"__NEXT_ERROR_CODE\", {\n value: \"E377\",\n enumerable: false,\n configurable: true\n });\n}\nfunction trackDynamicDraftMode(expression, constructorOpt) {\n const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();\n const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();\n if (workStore) {\n // We have a store we want to track dynamic data access to ensure we\n // don't statically generate routes that manipulate draft mode.\n if ((workUnitStore == null ? void 0 : workUnitStore.phase) === 'after') {\n throw Object.defineProperty(new Error(`Route ${workStore.route} used \"${expression}\" inside \\`after\\`. The enabled status of draftMode can be read inside \\`after\\` but you cannot enable or disable draftMode. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`), \"__NEXT_ERROR_CODE\", {\n value: \"E348\",\n enumerable: false,\n configurable: true\n });\n }\n if (workStore.dynamicShouldError) {\n throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route ${workStore.route} with \\`dynamic = \"error\"\\` couldn't be rendered statically because it used \\`${expression}\\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), \"__NEXT_ERROR_CODE\", {\n value: \"E553\",\n enumerable: false,\n configurable: true\n });\n }\n if (workUnitStore) {\n switch(workUnitStore.type){\n case 'cache':\n case 'private-cache':\n {\n const error = Object.defineProperty(new Error(`Route ${workStore.route} used \"${expression}\" inside \"use cache\". The enabled status of draftMode can be read in caches but you must not enable or disable draftMode inside a cache. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), \"__NEXT_ERROR_CODE\", {\n value: \"E246\",\n enumerable: false,\n configurable: true\n });\n Error.captureStackTrace(error, constructorOpt);\n workStore.invalidDynamicUsageError ??= error;\n throw error;\n }\n case 'unstable-cache':\n throw Object.defineProperty(new Error(`Route ${workStore.route} used \"${expression}\" inside a function cached with \"unstable_cache(...)\". The enabled status of draftMode can be read in caches but you must not enable or disable draftMode inside a cache. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), \"__NEXT_ERROR_CODE\", {\n value: \"E259\",\n enumerable: false,\n configurable: true\n });\n case 'prerender':\n case 'prerender-runtime':\n {\n const error = Object.defineProperty(new Error(`Route ${workStore.route} used ${expression} without first calling \\`await connection()\\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers`), \"__NEXT_ERROR_CODE\", {\n value: \"E126\",\n enumerable: false,\n configurable: true\n });\n return (0, _dynamicrendering.abortAndThrowOnSynchronousRequestDataAccess)(workStore.route, expression, error, workUnitStore);\n }\n case 'prerender-client':\n const exportName = '`draftMode`';\n throw Object.defineProperty(new _invarianterror.InvariantError(`${exportName} must not be used within a client component. Next.js should be preventing ${exportName} from being included in client components statically, but did not in this case.`), \"__NEXT_ERROR_CODE\", {\n value: \"E693\",\n enumerable: false,\n configurable: true\n });\n case 'prerender-ppr':\n return (0, _dynamicrendering.postponeWithTracking)(workStore.route, expression, workUnitStore.dynamicTracking);\n case 'prerender-legacy':\n workUnitStore.revalidate = 0;\n const err = Object.defineProperty(new _hooksservercontext.DynamicServerError(`Route ${workStore.route} couldn't be rendered statically because it used \\`${expression}\\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), \"__NEXT_ERROR_CODE\", {\n value: \"E558\",\n enumerable: false,\n configurable: true\n });\n workStore.dynamicUsageDescription = expression;\n workStore.dynamicUsageStack = err.stack;\n throw err;\n case 'request':\n (0, _dynamicrendering.trackDynamicDataInDynamicRender)(workUnitStore);\n break;\n default:\n workUnitStore;\n }\n }\n }\n}\n\n//# sourceMappingURL=draft-mode.js.map"],"names":["exports","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7"],"mappings":";;;;;;;;;;;;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AACF,EAAA,MAAM,CAAC,cAAc,CAACA,SAAO,EAAE,WAAW,EAAE;MACxC,UAAU,EAAE,IAAI;MAChB,GAAG,EAAE,WAAW;AACpB,UAAQ,OAAO,SAAS;AACxB,MAAA;AACA,GAAC,CAAC;EACF,MAAM,6BAA6B,GAAGC,uCAAA,EAAyD;EAC/F,MAAM,yBAAyB,GAAGC,mCAAA,EAAoD;EACtF,MAAM,iBAAiB,GAAGC,0BAAA,EAA0C;EACpE,MAAM,yCAAyC,GAAGC,kDAAA,EAA4D;EAC9G,MAAM,wBAAwB,GAAGC,iCAAA,EAA4D;EAC7F,MAAM,mBAAmB,GAAGC,4BAAA,EAAuD;EACnF,MAAM,eAAe,GAAGC,wBAAA,EAA2C;EACnE,MAAM,QAAQ,GAAGC,iBAAA,EAAiD;AAClE,EAAA,SAAS,SAAS,GAAG;MACjB,MAAM,iBAAiB,GAAG,WAAW;MACrC,MAAM,SAAS,GAAG,yBAAyB,CAAC,gBAAgB,CAAC,QAAQ,EAAE;MACvE,MAAM,aAAa,GAAG,6BAA6B,CAAC,oBAAoB,CAAC,QAAQ,EAAE;AACvF,MAAI,IAAI,CAAC,SAAS,IAAI,CAAC,aAAa,EAAE;UAC9B,IAAI,6BAA6B,CAAC,2BAA2B,EAAE,iBAAiB,CAAC;AACzF,MAAA;MACI,OAAO,aAAa,CAAC,IAAI;AAC7B,UAAQ,KAAK,mBAAmB;AAChC;AACA,cAAY,OAAO,IAAI,iBAAiB,CAAC,sBAAsB,EAAE,aAAa,EAAE,0BAA0B,CAAC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