123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- "use strict";
- (() => {
- var exports = {};
- exports.id = 30660;
- exports.ids = [30660];
- exports.modules = {
- /***/ 56414:
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
- /* harmony export */ "default": () => (/* binding */ pageWrapperTemplate),
- /* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps),
- /* harmony export */ "getStaticProps": () => (/* binding */ getStaticProps)
- /* harmony export */ });
- /* harmony import */ var _sentry_server_config_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96270);
- /* harmony import */ var _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58097);
- /* harmony import */ var _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20997);
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var next_document__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21927);
- /* harmony import */ var _utils_locale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24709);
- const DEFAULT_LOCALE = "en";
- class MyDocument extends next_document__WEBPACK_IMPORTED_MODULE_3__["default"] {
- static async getInitialProps(ctx) {
- const initialProps = await next_document__WEBPACK_IMPORTED_MODULE_3__["default"].getInitialProps(ctx);
- return {
- ...initialProps,
- locale: ctx?.locale || DEFAULT_LOCALE
- };
- }
- render = ()=>/*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(next_document__WEBPACK_IMPORTED_MODULE_3__.Html, {
- dir: (0,_utils_locale__WEBPACK_IMPORTED_MODULE_4__/* .getDir */ .XP)(this.props.locale),
- lang: this.props.locale,
- children: [
- /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(next_document__WEBPACK_IMPORTED_MODULE_3__.Head, {}),
- /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("body", {
- children: [
- /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(next_document__WEBPACK_IMPORTED_MODULE_3__.Main, {}),
- /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(next_document__WEBPACK_IMPORTED_MODULE_3__.NextScript, {})
- ]
- })
- ]
- });
- }
- var serverComponentModule = /*#__PURE__*/Object.freeze({
- __proto__: null,
- 'default': MyDocument
- });
- /*
- * This file is a template for the code which will be substituted when our webpack loader handles non-API files in the
- * `pages/` directory.
- *
- * We use `__SENTRY_WRAPPING_TARGET_FILE__.cjs` as a placeholder for the path to the file being wrapped. Because it's not a real package,
- * this causes both TS and ESLint to complain, hence the pragma comments below.
- */
- const userPageModule = serverComponentModule ;
- const pageComponent = userPageModule ? userPageModule.default : undefined;
- const origGetInitialProps = pageComponent ? pageComponent.getInitialProps : undefined;
- const origGetStaticProps = userPageModule ? userPageModule.getStaticProps : undefined;
- const origGetServerSideProps = userPageModule ? userPageModule.getServerSideProps : undefined;
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- const getInitialPropsWrappers = {
- '/_app': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapAppGetInitialPropsWithSentry,
- '/_document': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapDocumentGetInitialPropsWithSentry,
- '/_error': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapErrorGetInitialPropsWithSentry,
- };
- const getInitialPropsWrapper = getInitialPropsWrappers['/_document'] || _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetInitialPropsWithSentry;
- if (pageComponent && typeof origGetInitialProps === 'function') {
- pageComponent.getInitialProps = getInitialPropsWrapper(origGetInitialProps) ;
- }
- const getStaticProps =
- typeof origGetStaticProps === 'function'
- ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetStaticPropsWithSentry(origGetStaticProps, '/_document')
- : undefined;
- const getServerSideProps =
- typeof origGetServerSideProps === 'function'
- ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetServerSidePropsWithSentry(origGetServerSideProps, '/_document')
- : undefined;
- const pageWrapperTemplate = pageComponent ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapPageComponentWithSentry(pageComponent ) : pageComponent;
- /***/ }),
- /***/ 58097:
- /***/ ((module) => {
- module.exports = require("@sentry/nextjs");
- /***/ }),
- /***/ 12372:
- /***/ ((module) => {
- module.exports = require("lodash/findKey");
- /***/ }),
- /***/ 94140:
- /***/ ((module) => {
- module.exports = require("next/dist/server/get-page-files.js");
- /***/ }),
- /***/ 89716:
- /***/ ((module) => {
- module.exports = require("next/dist/server/htmlescape.js");
- /***/ }),
- /***/ 76368:
- /***/ ((module) => {
- module.exports = require("next/dist/server/utils.js");
- /***/ }),
- /***/ 56724:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/constants.js");
- /***/ }),
- /***/ 18743:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/html-context.js");
- /***/ }),
- /***/ 78524:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/is-plain-object.js");
- /***/ }),
- /***/ 16689:
- /***/ ((module) => {
- module.exports = require("react");
- /***/ }),
- /***/ 20997:
- /***/ ((module) => {
- module.exports = require("react/jsx-runtime");
- /***/ })
- };
- ;
- // load runtime
- var __webpack_require__ = require("../webpack-runtime.js");
- __webpack_require__.C(exports);
- var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
- var __webpack_exports__ = __webpack_require__.X(0, [11497,21927,96270,24709], () => (__webpack_exec__(56414)));
- module.exports = __webpack_exports__;
- })();
- //# sourceMappingURL=_document.js.map
|