Spaces:
Running
Running
ling-open-studio / node_modules /next /dist /client /components /dev-root-http-access-fallback-boundary.js
| 'use client'; | |
| ; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| 0 && (module.exports = { | |
| DevRootHTTPAccessFallbackBoundary: null, | |
| bailOnRootNotFound: null | |
| }); | |
| function _export(target, all) { | |
| for(var name in all)Object.defineProperty(target, name, { | |
| enumerable: true, | |
| get: all[name] | |
| }); | |
| } | |
| _export(exports, { | |
| DevRootHTTPAccessFallbackBoundary: function() { | |
| return DevRootHTTPAccessFallbackBoundary; | |
| }, | |
| bailOnRootNotFound: function() { | |
| return bailOnRootNotFound; | |
| } | |
| }); | |
| const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); | |
| const _jsxruntime = require("react/jsx-runtime"); | |
| const _react = /*#__PURE__*/ _interop_require_default._(require("react")); | |
| const _errorboundary = require("./http-access-fallback/error-boundary"); | |
| function bailOnRootNotFound() { | |
| throw Object.defineProperty(new Error('notFound() is not allowed to use in root layout'), "__NEXT_ERROR_CODE", { | |
| value: "E192", | |
| enumerable: false, | |
| configurable: true | |
| }); | |
| } | |
| function NotAllowedRootHTTPFallbackError() { | |
| bailOnRootNotFound(); | |
| return null; | |
| } | |
| function DevRootHTTPAccessFallbackBoundary({ children }) { | |
| return /*#__PURE__*/ (0, _jsxruntime.jsx)(_errorboundary.HTTPAccessFallbackBoundary, { | |
| notFound: /*#__PURE__*/ (0, _jsxruntime.jsx)(NotAllowedRootHTTPFallbackError, {}), | |
| children: children | |
| }); | |
| } | |
| if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') { | |
| Object.defineProperty(exports.default, '__esModule', { value: true }); | |
| Object.assign(exports.default, exports); | |
| module.exports = exports.default; | |
| } | |
| //# sourceMappingURL=dev-root-http-access-fallback-boundary.js.map |