98 lines
3.0 KiB
JavaScript
98 lines
3.0 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: f40debd565774e77.35e561bbfd.js
|
|
* Module id: 910390
|
|
* 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 }),
|
|
Object.defineProperty(r, "HTTPAccessFallbackBoundary", {
|
|
enumerable: !0,
|
|
get: function () {
|
|
return l;
|
|
},
|
|
});
|
|
let n = e.r(744066),
|
|
a = e.r(462214),
|
|
o = n._(e.r(358379)),
|
|
i = e.r(823514),
|
|
s = e.r(681214);
|
|
e.r(467858);
|
|
let c = e.r(195436);
|
|
class u extends o.default.Component {
|
|
constructor(e) {
|
|
super(e),
|
|
(this.state = {
|
|
triggeredStatus: void 0,
|
|
previousPathname: e.pathname,
|
|
});
|
|
}
|
|
componentDidCatch() {}
|
|
static getDerivedStateFromError(e) {
|
|
if ((0, s.isHTTPAccessFallbackError)(e))
|
|
return { triggeredStatus: (0, s.getAccessFallbackHTTPStatus)(e) };
|
|
throw e;
|
|
}
|
|
static getDerivedStateFromProps(e, t) {
|
|
return e.pathname !== t.previousPathname && t.triggeredStatus
|
|
? { triggeredStatus: void 0, previousPathname: e.pathname }
|
|
: {
|
|
triggeredStatus: t.triggeredStatus,
|
|
previousPathname: e.pathname,
|
|
};
|
|
}
|
|
render() {
|
|
let {
|
|
notFound: e,
|
|
forbidden: t,
|
|
unauthorized: r,
|
|
children: n,
|
|
} = this.props,
|
|
{ triggeredStatus: o } = this.state,
|
|
i = {
|
|
[s.HTTPAccessErrorStatus.NOT_FOUND]: e,
|
|
[s.HTTPAccessErrorStatus.FORBIDDEN]: t,
|
|
[s.HTTPAccessErrorStatus.UNAUTHORIZED]: r,
|
|
};
|
|
if (o) {
|
|
let c = o === s.HTTPAccessErrorStatus.NOT_FOUND && e,
|
|
u = o === s.HTTPAccessErrorStatus.FORBIDDEN && t,
|
|
l = o === s.HTTPAccessErrorStatus.UNAUTHORIZED && r;
|
|
return c || u || l
|
|
? (0, a.jsxs)(a.Fragment, {
|
|
children: [
|
|
(0, a.jsx)("meta", { name: "robots", content: "noindex" }),
|
|
!1,
|
|
i[o],
|
|
],
|
|
})
|
|
: n;
|
|
}
|
|
return n;
|
|
}
|
|
}
|
|
function l({ notFound: e, forbidden: t, unauthorized: r, children: n }) {
|
|
let s = (0, i.useUntrackedPathname)(),
|
|
l = (0, o.useContext)(c.MissingSlotContext);
|
|
return e || t || r
|
|
? (0, a.jsx)(u, {
|
|
pathname: s,
|
|
notFound: e,
|
|
forbidden: t,
|
|
unauthorized: r,
|
|
missingSlots: l,
|
|
children: n,
|
|
})
|
|
: (0, a.jsx)(a.Fragment, { children: n });
|
|
}
|
|
("function" == typeof r.default ||
|
|
("object" == typeof r.default && null !== r.default)) &&
|
|
void 0 === r.default.__esModule &&
|
|
(Object.defineProperty(r.default, "__esModule", { value: !0 }),
|
|
Object.assign(r.default, r),
|
|
(t.exports = r.default));
|
|
};
|
|
|
|
export default moduleFactory;
|