my-learning-plans.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. "use strict";
  2. (() => {
  3. var exports = {};
  4. exports.id = 99694;
  5. exports.ids = [99694,64820];
  6. exports.modules = {
  7. /***/ 38844:
  8. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  9. __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
  10. __webpack_require__.r(__webpack_exports__);
  11. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  12. /* harmony export */ "default": () => (/* binding */ pageWrapperTemplate),
  13. /* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps),
  14. /* harmony export */ "getStaticProps": () => (/* binding */ getStaticProps)
  15. /* harmony export */ });
  16. /* harmony import */ var _sentry_server_config_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96270);
  17. /* harmony import */ var _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58097);
  18. /* harmony import */ var _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__);
  19. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20997);
  20. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
  21. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60866);
  22. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3__);
  23. /* harmony import */ var _components_Auth_withAuth__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1223);
  24. /* harmony import */ var _components_Course_CoursesPageLayout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(46122);
  25. /* harmony import */ var _components_NextSeoWrapper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(25869);
  26. /* harmony import */ var _utils_chapter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(95892);
  27. /* harmony import */ var _utils_locale__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(24709);
  28. /* harmony import */ var _utils_navigation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(57933);
  29. var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_components_Auth_withAuth__WEBPACK_IMPORTED_MODULE_4__, _components_Course_CoursesPageLayout__WEBPACK_IMPORTED_MODULE_5__, _utils_navigation__WEBPACK_IMPORTED_MODULE_9__]);
  30. ([_components_Auth_withAuth__WEBPACK_IMPORTED_MODULE_4__, _components_Course_CoursesPageLayout__WEBPACK_IMPORTED_MODULE_5__, _utils_navigation__WEBPACK_IMPORTED_MODULE_9__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
  31. const MyLearningPlanPage = ()=>{
  32. const { t , lang } = next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3___default()("learn");
  33. return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment, {
  34. children: [
  35. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_NextSeoWrapper__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
  36. title: t("common:my-learning-plans"),
  37. url: (0,_utils_navigation__WEBPACK_IMPORTED_MODULE_9__/* .getCanonicalUrl */ .Z2)(lang, (0,_utils_navigation__WEBPACK_IMPORTED_MODULE_9__/* .getMyCoursesNavigationUrl */ .L$)()),
  38. languageAlternates: (0,_utils_locale__WEBPACK_IMPORTED_MODULE_8__/* .getLanguageAlternates */ .qc)((0,_utils_navigation__WEBPACK_IMPORTED_MODULE_9__/* .getMyCoursesNavigationUrl */ .L$)()),
  39. nofollow: true,
  40. noindex: true
  41. }),
  42. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_Course_CoursesPageLayout__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
  43. isMyCourses: true
  44. })
  45. ]
  46. });
  47. };
  48. const getStaticProps$1 = async ({ locale })=>{
  49. const allChaptersData = await (0,_utils_chapter__WEBPACK_IMPORTED_MODULE_7__/* .getAllChaptersData */ .T4)(locale);
  50. return {
  51. props: {
  52. chaptersData: allChaptersData
  53. }
  54. };
  55. };
  56. var __SENTRY_WRAPPING_TARGET_FILE__ = (0,_components_Auth_withAuth__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(MyLearningPlanPage);
  57. var serverComponentModule = /*#__PURE__*/Object.freeze({
  58. __proto__: null,
  59. getStaticProps: getStaticProps$1,
  60. 'default': __SENTRY_WRAPPING_TARGET_FILE__
  61. });
  62. /*
  63. * This file is a template for the code which will be substituted when our webpack loader handles non-API files in the
  64. * `pages/` directory.
  65. *
  66. * 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,
  67. * this causes both TS and ESLint to complain, hence the pragma comments below.
  68. */
  69. const userPageModule = serverComponentModule ;
  70. const pageComponent = userPageModule ? userPageModule.default : undefined;
  71. const origGetInitialProps = pageComponent ? pageComponent.getInitialProps : undefined;
  72. const origGetStaticProps = userPageModule ? userPageModule.getStaticProps : undefined;
  73. const origGetServerSideProps = userPageModule ? userPageModule.getServerSideProps : undefined;
  74. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  75. const getInitialPropsWrappers = {
  76. '/_app': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapAppGetInitialPropsWithSentry,
  77. '/_document': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapDocumentGetInitialPropsWithSentry,
  78. '/_error': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapErrorGetInitialPropsWithSentry,
  79. };
  80. const getInitialPropsWrapper = getInitialPropsWrappers['/my-learning-plans'] || _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetInitialPropsWithSentry;
  81. if (pageComponent && typeof origGetInitialProps === 'function') {
  82. pageComponent.getInitialProps = getInitialPropsWrapper(origGetInitialProps) ;
  83. }
  84. const getStaticProps =
  85. typeof origGetStaticProps === 'function'
  86. ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetStaticPropsWithSentry(origGetStaticProps, '/my-learning-plans')
  87. : undefined;
  88. const getServerSideProps =
  89. typeof origGetServerSideProps === 'function'
  90. ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetServerSidePropsWithSentry(origGetServerSideProps, '/my-learning-plans')
  91. : undefined;
  92. const pageWrapperTemplate = pageComponent ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapPageComponentWithSentry(pageComponent ) : pageComponent;
  93. __webpack_async_result__();
  94. } catch(e) { __webpack_async_result__(e); } });
  95. /***/ }),
  96. /***/ 75184:
  97. /***/ ((module) => {
  98. module.exports = require("@reduxjs/toolkit");
  99. /***/ }),
  100. /***/ 58097:
  101. /***/ ((module) => {
  102. module.exports = require("@sentry/nextjs");
  103. /***/ }),
  104. /***/ 59003:
  105. /***/ ((module) => {
  106. module.exports = require("classnames");
  107. /***/ }),
  108. /***/ 59606:
  109. /***/ ((module) => {
  110. module.exports = require("humps");
  111. /***/ }),
  112. /***/ 12372:
  113. /***/ ((module) => {
  114. module.exports = require("lodash/findKey");
  115. /***/ }),
  116. /***/ 98492:
  117. /***/ ((module) => {
  118. module.exports = require("lodash/groupBy");
  119. /***/ }),
  120. /***/ 35526:
  121. /***/ ((module) => {
  122. module.exports = require("lodash/random");
  123. /***/ }),
  124. /***/ 64042:
  125. /***/ ((module) => {
  126. module.exports = require("lodash/range");
  127. /***/ }),
  128. /***/ 16641:
  129. /***/ ((module) => {
  130. module.exports = require("next-seo");
  131. /***/ }),
  132. /***/ 74137:
  133. /***/ ((module) => {
  134. module.exports = require("next-translate/Trans");
  135. /***/ }),
  136. /***/ 60866:
  137. /***/ ((module) => {
  138. module.exports = require("next-translate/useTranslation");
  139. /***/ }),
  140. /***/ 3280:
  141. /***/ ((module) => {
  142. module.exports = require("next/dist/shared/lib/app-router-context.js");
  143. /***/ }),
  144. /***/ 92796:
  145. /***/ ((module) => {
  146. module.exports = require("next/dist/shared/lib/head-manager-context.js");
  147. /***/ }),
  148. /***/ 94957:
  149. /***/ ((module) => {
  150. module.exports = require("next/dist/shared/lib/head.js");
  151. /***/ }),
  152. /***/ 3539:
  153. /***/ ((module) => {
  154. module.exports = require("next/dist/shared/lib/i18n/detect-domain-locale.js");
  155. /***/ }),
  156. /***/ 34014:
  157. /***/ ((module) => {
  158. module.exports = require("next/dist/shared/lib/i18n/normalize-locale-path.js");
  159. /***/ }),
  160. /***/ 50744:
  161. /***/ ((module) => {
  162. module.exports = require("next/dist/shared/lib/image-config-context.js");
  163. /***/ }),
  164. /***/ 35843:
  165. /***/ ((module) => {
  166. module.exports = require("next/dist/shared/lib/image-config.js");
  167. /***/ }),
  168. /***/ 78524:
  169. /***/ ((module) => {
  170. module.exports = require("next/dist/shared/lib/is-plain-object.js");
  171. /***/ }),
  172. /***/ 78020:
  173. /***/ ((module) => {
  174. module.exports = require("next/dist/shared/lib/mitt.js");
  175. /***/ }),
  176. /***/ 64406:
  177. /***/ ((module) => {
  178. module.exports = require("next/dist/shared/lib/page-path/denormalize-page-path.js");
  179. /***/ }),
  180. /***/ 24964:
  181. /***/ ((module) => {
  182. module.exports = require("next/dist/shared/lib/router-context.js");
  183. /***/ }),
  184. /***/ 93431:
  185. /***/ ((module) => {
  186. module.exports = require("next/dist/shared/lib/router/utils/add-locale.js");
  187. /***/ }),
  188. /***/ 11751:
  189. /***/ ((module) => {
  190. module.exports = require("next/dist/shared/lib/router/utils/add-path-prefix.js");
  191. /***/ }),
  192. /***/ 46220:
  193. /***/ ((module) => {
  194. module.exports = require("next/dist/shared/lib/router/utils/compare-states.js");
  195. /***/ }),
  196. /***/ 10299:
  197. /***/ ((module) => {
  198. module.exports = require("next/dist/shared/lib/router/utils/format-next-pathname-info.js");
  199. /***/ }),
  200. /***/ 23938:
  201. /***/ ((module) => {
  202. module.exports = require("next/dist/shared/lib/router/utils/format-url.js");
  203. /***/ }),
  204. /***/ 29565:
  205. /***/ ((module) => {
  206. module.exports = require("next/dist/shared/lib/router/utils/get-asset-path-from-route.js");
  207. /***/ }),
  208. /***/ 35789:
  209. /***/ ((module) => {
  210. module.exports = require("next/dist/shared/lib/router/utils/get-next-pathname-info.js");
  211. /***/ }),
  212. /***/ 1897:
  213. /***/ ((module) => {
  214. module.exports = require("next/dist/shared/lib/router/utils/is-bot.js");
  215. /***/ }),
  216. /***/ 1428:
  217. /***/ ((module) => {
  218. module.exports = require("next/dist/shared/lib/router/utils/is-dynamic.js");
  219. /***/ }),
  220. /***/ 28854:
  221. /***/ ((module) => {
  222. module.exports = require("next/dist/shared/lib/router/utils/parse-path.js");
  223. /***/ }),
  224. /***/ 91292:
  225. /***/ ((module) => {
  226. module.exports = require("next/dist/shared/lib/router/utils/parse-relative-url.js");
  227. /***/ }),
  228. /***/ 34567:
  229. /***/ ((module) => {
  230. module.exports = require("next/dist/shared/lib/router/utils/path-has-prefix.js");
  231. /***/ }),
  232. /***/ 80979:
  233. /***/ ((module) => {
  234. module.exports = require("next/dist/shared/lib/router/utils/querystring.js");
  235. /***/ }),
  236. /***/ 93297:
  237. /***/ ((module) => {
  238. module.exports = require("next/dist/shared/lib/router/utils/remove-trailing-slash.js");
  239. /***/ }),
  240. /***/ 36052:
  241. /***/ ((module) => {
  242. module.exports = require("next/dist/shared/lib/router/utils/resolve-rewrites.js");
  243. /***/ }),
  244. /***/ 84226:
  245. /***/ ((module) => {
  246. module.exports = require("next/dist/shared/lib/router/utils/route-matcher.js");
  247. /***/ }),
  248. /***/ 95052:
  249. /***/ ((module) => {
  250. module.exports = require("next/dist/shared/lib/router/utils/route-regex.js");
  251. /***/ }),
  252. /***/ 59232:
  253. /***/ ((module) => {
  254. module.exports = require("next/dist/shared/lib/utils.js");
  255. /***/ }),
  256. /***/ 71853:
  257. /***/ ((module) => {
  258. module.exports = require("next/router");
  259. /***/ }),
  260. /***/ 16689:
  261. /***/ ((module) => {
  262. module.exports = require("react");
  263. /***/ }),
  264. /***/ 20997:
  265. /***/ ((module) => {
  266. module.exports = require("react/jsx-runtime");
  267. /***/ }),
  268. /***/ 52648:
  269. /***/ ((module) => {
  270. module.exports = require("refresh-fetch");
  271. /***/ }),
  272. /***/ 66704:
  273. /***/ ((module) => {
  274. module.exports = import("@radix-ui/react-tooltip");;
  275. /***/ }),
  276. /***/ 88813:
  277. /***/ ((module) => {
  278. module.exports = import("firebase/compat/analytics");;
  279. /***/ }),
  280. /***/ 33773:
  281. /***/ ((module) => {
  282. module.exports = import("firebase/compat/app");;
  283. /***/ }),
  284. /***/ 69915:
  285. /***/ ((module) => {
  286. module.exports = import("js-cookie");;
  287. /***/ }),
  288. /***/ 79847:
  289. /***/ ((module) => {
  290. module.exports = import("swr/immutable");;
  291. /***/ }),
  292. /***/ 63477:
  293. /***/ ((module) => {
  294. module.exports = require("querystring");
  295. /***/ })
  296. };
  297. ;
  298. // load runtime
  299. var __webpack_require__ = require("../webpack-runtime.js");
  300. __webpack_require__.C(exports);
  301. var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
  302. var __webpack_exports__ = __webpack_require__.X(0, [11497,79165,7477,96270,24709,57933,61239,25869,50497,76410,13830,37883,22197,12951,1223,21550,46122], () => (__webpack_exec__(38844)));
  303. module.exports = __webpack_exports__;
  304. })();
  305. //# sourceMappingURL=my-learning-plans.js.map