profile.js 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365
  1. (() => {
  2. var exports = {};
  3. exports.id = 50277;
  4. exports.ids = [50277,64820];
  5. exports.modules = {
  6. /***/ 79918:
  7. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  8. "use strict";
  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 classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(59003);
  22. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  23. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71853);
  24. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_4__);
  25. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(60866);
  26. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_5__);
  27. /* harmony import */ var _index_module_scss__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(23848);
  28. /* harmony import */ var _index_module_scss__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_index_module_scss__WEBPACK_IMPORTED_MODULE_24__);
  29. /* harmony import */ var _profile_module_scss__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(27489);
  30. /* harmony import */ var _profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_profile_module_scss__WEBPACK_IMPORTED_MODULE_23__);
  31. /* harmony import */ var _components_Auth_withAuth__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1223);
  32. /* harmony import */ var _components_NextSeoWrapper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(25869);
  33. /* harmony import */ var _components_Profile_DeleteAccountButton__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(90031);
  34. /* harmony import */ var _components_Verses_BookmarksAndCollectionsSection__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(14183);
  35. /* harmony import */ var _components_Verses_RecentReadingSessions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(44533);
  36. /* harmony import */ var _dls_Button_Button__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(50497);
  37. /* harmony import */ var _dls_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(77048);
  38. /* harmony import */ var _hooks_auth_useCurrentUser__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(35244);
  39. /* harmony import */ var _utils_auth_api__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(37883);
  40. /* harmony import */ var _utils_auth_constants__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(43860);
  41. /* harmony import */ var _utils_auth_login__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(22197);
  42. /* harmony import */ var _utils_auth_userDataSync__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(50823);
  43. /* harmony import */ var _utils_chapter__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(95892);
  44. /* harmony import */ var _utils_eventLogger__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(55943);
  45. /* harmony import */ var _utils_locale__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(24709);
  46. /* harmony import */ var _utils_navigation__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(57933);
  47. /* harmony import */ var src_pages_error__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(36049);
  48. var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_components_Auth_withAuth__WEBPACK_IMPORTED_MODULE_6__, _components_Profile_DeleteAccountButton__WEBPACK_IMPORTED_MODULE_8__, _components_Verses_BookmarksAndCollectionsSection__WEBPACK_IMPORTED_MODULE_9__, _components_Verses_RecentReadingSessions__WEBPACK_IMPORTED_MODULE_10__, _dls_Button_Button__WEBPACK_IMPORTED_MODULE_11__, _hooks_auth_useCurrentUser__WEBPACK_IMPORTED_MODULE_13__, _utils_auth_login__WEBPACK_IMPORTED_MODULE_16__, _utils_auth_userDataSync__WEBPACK_IMPORTED_MODULE_17__, _utils_eventLogger__WEBPACK_IMPORTED_MODULE_19__, _utils_navigation__WEBPACK_IMPORTED_MODULE_21__, src_pages_error__WEBPACK_IMPORTED_MODULE_22__]);
  49. ([_components_Auth_withAuth__WEBPACK_IMPORTED_MODULE_6__, _components_Profile_DeleteAccountButton__WEBPACK_IMPORTED_MODULE_8__, _components_Verses_BookmarksAndCollectionsSection__WEBPACK_IMPORTED_MODULE_9__, _components_Verses_RecentReadingSessions__WEBPACK_IMPORTED_MODULE_10__, _dls_Button_Button__WEBPACK_IMPORTED_MODULE_11__, _hooks_auth_useCurrentUser__WEBPACK_IMPORTED_MODULE_13__, _utils_auth_login__WEBPACK_IMPORTED_MODULE_16__, _utils_auth_userDataSync__WEBPACK_IMPORTED_MODULE_17__, _utils_eventLogger__WEBPACK_IMPORTED_MODULE_19__, _utils_navigation__WEBPACK_IMPORTED_MODULE_21__, src_pages_error__WEBPACK_IMPORTED_MODULE_22__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
  50. const nameSample = "Mohammad Ali";
  51. const emailSample = "mohammadali@quran.com";
  52. const ProfilePage = ()=>{
  53. const { t , lang } = next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_5___default()();
  54. const router = (0,next_router__WEBPACK_IMPORTED_MODULE_4__.useRouter)();
  55. const { user , isLoading , error } = (0,_hooks_auth_useCurrentUser__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)();
  56. const onLogoutClicked = async ()=>{
  57. if (!(0,_utils_auth_login__WEBPACK_IMPORTED_MODULE_16__/* .isLoggedIn */ .jl)()) {
  58. return;
  59. }
  60. (0,_utils_eventLogger__WEBPACK_IMPORTED_MODULE_19__/* .logButtonClick */ .MY)("profile_logout");
  61. await (0,_utils_auth_api__WEBPACK_IMPORTED_MODULE_14__/* .logoutUser */ .TX)();
  62. (0,_utils_auth_userDataSync__WEBPACK_IMPORTED_MODULE_17__/* .removeLastSyncAt */ .Tk)();
  63. router.push((0,_utils_navigation__WEBPACK_IMPORTED_MODULE_21__/* .getLoginNavigationUrl */ .gk)());
  64. router.reload();
  65. };
  66. if (error) {
  67. return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(src_pages_error__WEBPACK_IMPORTED_MODULE_22__["default"], {
  68. statusCode: 500
  69. });
  70. }
  71. const { email , firstName , lastName , photoUrl } = user;
  72. const profileSkeletonInfoSkeleton = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
  73. className: classnames__WEBPACK_IMPORTED_MODULE_3___default()((_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().profileInfoContainer), (_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().skeletonContainer)),
  74. children: [
  75. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_dls_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
  76. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("h2", {
  77. className: (_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().name),
  78. children: nameSample
  79. })
  80. }),
  81. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_dls_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
  82. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
  83. className: (_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().email),
  84. children: emailSample
  85. })
  86. })
  87. ]
  88. });
  89. const profileInfo = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
  90. className: (_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().profileInfoContainer),
  91. children: [
  92. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("h2", {
  93. className: (_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().name),
  94. children: `${firstName} ${lastName}`
  95. }),
  96. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
  97. className: (_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().email),
  98. children: email
  99. })
  100. ]
  101. });
  102. return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment, {
  103. children: [
  104. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_NextSeoWrapper__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
  105. title: t("common:profile"),
  106. url: (0,_utils_navigation__WEBPACK_IMPORTED_MODULE_21__/* .getCanonicalUrl */ .Z2)(lang, (0,_utils_navigation__WEBPACK_IMPORTED_MODULE_21__/* .getProfileNavigationUrl */ .kJ)()),
  107. languageAlternates: (0,_utils_locale__WEBPACK_IMPORTED_MODULE_20__/* .getLanguageAlternates */ .qc)((0,_utils_navigation__WEBPACK_IMPORTED_MODULE_21__/* .getProfileNavigationUrl */ .kJ)()),
  108. nofollow: true,
  109. noindex: true
  110. }),
  111. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
  112. className: (_index_module_scss__WEBPACK_IMPORTED_MODULE_24___default().pageContainer),
  113. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
  114. className: (_index_module_scss__WEBPACK_IMPORTED_MODULE_24___default().flow),
  115. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
  116. className: (_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().container),
  117. children: [
  118. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
  119. className: classnames__WEBPACK_IMPORTED_MODULE_3___default()((_index_module_scss__WEBPACK_IMPORTED_MODULE_24___default().flowItem)),
  120. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
  121. className: (_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().profileContainer),
  122. children: [
  123. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
  124. className: (_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().profilePicture),
  125. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("img", {
  126. className: (_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().profilePicture),
  127. alt: "avatar",
  128. src: photoUrl || _utils_auth_constants__WEBPACK_IMPORTED_MODULE_15__/* .DEFAULT_PHOTO_URL */ .zU
  129. })
  130. }),
  131. isLoading ? profileSkeletonInfoSkeleton : profileInfo
  132. ]
  133. })
  134. }),
  135. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
  136. className: classnames__WEBPACK_IMPORTED_MODULE_3___default()((_index_module_scss__WEBPACK_IMPORTED_MODULE_24___default().flowItem), (_index_module_scss__WEBPACK_IMPORTED_MODULE_24___default().fullWidth), (_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().recentReadingContainer)),
  137. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_Verses_RecentReadingSessions__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {})
  138. }),
  139. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
  140. className: classnames__WEBPACK_IMPORTED_MODULE_3___default()((_index_module_scss__WEBPACK_IMPORTED_MODULE_24___default().flowItem), (_index_module_scss__WEBPACK_IMPORTED_MODULE_24___default().fullWidth), (_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().bookmarksAndCollectionsContainer)),
  141. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_Verses_BookmarksAndCollectionsSection__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
  142. isHomepage: false
  143. })
  144. }),
  145. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
  146. className: classnames__WEBPACK_IMPORTED_MODULE_3___default()((_index_module_scss__WEBPACK_IMPORTED_MODULE_24___default().flowItem), (_index_module_scss__WEBPACK_IMPORTED_MODULE_24___default().fullWidth), (_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().actionsContainer)),
  147. children: [
  148. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
  149. className: (_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().action),
  150. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_Profile_DeleteAccountButton__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
  151. isDisabled: isLoading
  152. })
  153. }),
  154. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
  155. className: (_profile_module_scss__WEBPACK_IMPORTED_MODULE_23___default().action),
  156. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_dls_Button_Button__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP, {
  157. isDisabled: isLoading,
  158. onClick: onLogoutClicked,
  159. children: t("common:logout")
  160. })
  161. })
  162. ]
  163. })
  164. ]
  165. })
  166. })
  167. })
  168. ]
  169. });
  170. };
  171. const getStaticProps$1 = async ({ locale })=>{
  172. const allChaptersData = await (0,_utils_chapter__WEBPACK_IMPORTED_MODULE_18__/* .getAllChaptersData */ .T4)(locale);
  173. return {
  174. props: {
  175. chaptersData: allChaptersData
  176. }
  177. };
  178. };
  179. var __SENTRY_WRAPPING_TARGET_FILE__ = (0,_components_Auth_withAuth__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(ProfilePage);
  180. var serverComponentModule = /*#__PURE__*/Object.freeze({
  181. __proto__: null,
  182. getStaticProps: getStaticProps$1,
  183. 'default': __SENTRY_WRAPPING_TARGET_FILE__
  184. });
  185. /*
  186. * This file is a template for the code which will be substituted when our webpack loader handles non-API files in the
  187. * `pages/` directory.
  188. *
  189. * 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,
  190. * this causes both TS and ESLint to complain, hence the pragma comments below.
  191. */
  192. const userPageModule = serverComponentModule ;
  193. const pageComponent = userPageModule ? userPageModule.default : undefined;
  194. const origGetInitialProps = pageComponent ? pageComponent.getInitialProps : undefined;
  195. const origGetStaticProps = userPageModule ? userPageModule.getStaticProps : undefined;
  196. const origGetServerSideProps = userPageModule ? userPageModule.getServerSideProps : undefined;
  197. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  198. const getInitialPropsWrappers = {
  199. '/_app': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapAppGetInitialPropsWithSentry,
  200. '/_document': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapDocumentGetInitialPropsWithSentry,
  201. '/_error': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapErrorGetInitialPropsWithSentry,
  202. };
  203. const getInitialPropsWrapper = getInitialPropsWrappers['/profile'] || _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetInitialPropsWithSentry;
  204. if (pageComponent && typeof origGetInitialProps === 'function') {
  205. pageComponent.getInitialProps = getInitialPropsWrapper(origGetInitialProps) ;
  206. }
  207. const getStaticProps =
  208. typeof origGetStaticProps === 'function'
  209. ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetStaticPropsWithSentry(origGetStaticProps, '/profile')
  210. : undefined;
  211. const getServerSideProps =
  212. typeof origGetServerSideProps === 'function'
  213. ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetServerSidePropsWithSentry(origGetServerSideProps, '/profile')
  214. : undefined;
  215. const pageWrapperTemplate = pageComponent ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapPageComponentWithSentry(pageComponent ) : pageComponent;
  216. __webpack_async_result__();
  217. } catch(e) { __webpack_async_result__(e); } });
  218. /***/ }),
  219. /***/ 53518:
  220. /***/ ((module) => {
  221. // Exports
  222. module.exports = {
  223. "inputContainer": "DeleteAccountButton_inputContainer__XvfB_",
  224. "deleteButton": "DeleteAccountButton_deleteButton__N7Ex2",
  225. "confirmationText": "DeleteAccountButton_confirmationText__48miH",
  226. "instructionText": "DeleteAccountButton_instructionText__iVIlR"
  227. };
  228. /***/ }),
  229. /***/ 83388:
  230. /***/ ((module) => {
  231. // Exports
  232. module.exports = {
  233. "sessionsContainer": "RecentReadingSessions_sessionsContainer__mC450",
  234. "sessionsHeader": "RecentReadingSessions_sessionsHeader__lbyVl",
  235. "verseLinksContainer": "RecentReadingSessions_verseLinksContainer__18irS",
  236. "verseLink": "RecentReadingSessions_verseLink__Ky4p8",
  237. "button": "RecentReadingSessions_button__0mjNR"
  238. };
  239. /***/ }),
  240. /***/ 28935:
  241. /***/ ((module) => {
  242. // Exports
  243. module.exports = {
  244. "skeletonItem": "RecentReadingSessionsSkeleton_skeletonItem__73ehH"
  245. };
  246. /***/ }),
  247. /***/ 48597:
  248. /***/ ((module) => {
  249. // Exports
  250. module.exports = {
  251. "container": "SurahPreviewBlock_container__ME6vO",
  252. "header": "SurahPreviewBlock_header__Jg3cj",
  253. "surahIcon": "SurahPreviewBlock_surahIcon__IFm5J",
  254. "surahNumber": "SurahPreviewBlock_surahNumber__MEa5C",
  255. "translatedSurahName": "SurahPreviewBlock_translatedSurahName__ZZkwX",
  256. "surahName": "SurahPreviewBlock_surahName__MNieK",
  257. "description": "SurahPreviewBlock_description__bfpmJ"
  258. };
  259. /***/ }),
  260. /***/ 27489:
  261. /***/ ((module) => {
  262. // Exports
  263. module.exports = {
  264. "container": "profile_container__oyMiM",
  265. "profileContainer": "profile_profileContainer__F0pv4",
  266. "profilePicture": "profile_profilePicture__6x3ow",
  267. "profileInfoContainer": "profile_profileInfoContainer__Z9KlM",
  268. "skeletonContainer": "profile_skeletonContainer__gJPEf",
  269. "name": "profile_name__4_ocA",
  270. "email": "profile_email___dBtF",
  271. "actionsContainer": "profile_actionsContainer__Cjx1s",
  272. "action": "profile_action__OFH1d",
  273. "recentReadingContainer": "profile_recentReadingContainer__jsh_S",
  274. "bookmarksAndCollectionsContainer": "profile_bookmarksAndCollectionsContainer__YZ3c9",
  275. "collectionListContainer": "profile_collectionListContainer__p8_hb"
  276. };
  277. /***/ }),
  278. /***/ 90031:
  279. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  280. "use strict";
  281. __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
  282. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  283. /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
  284. /* harmony export */ });
  285. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20997);
  286. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
  287. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16689);
  288. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  289. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71853);
  290. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_2__);
  291. /* harmony import */ var next_translate_Trans__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74137);
  292. /* harmony import */ var next_translate_Trans__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_translate_Trans__WEBPACK_IMPORTED_MODULE_3__);
  293. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(60866);
  294. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4__);
  295. /* harmony import */ var _dls_Button_Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50497);
  296. /* harmony import */ var _dls_Forms_Input__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91308);
  297. /* harmony import */ var _dls_Modal_Modal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(21948);
  298. /* harmony import */ var _DeleteAccountButton_module_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(53518);
  299. /* harmony import */ var _DeleteAccountButton_module_scss__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_DeleteAccountButton_module_scss__WEBPACK_IMPORTED_MODULE_11__);
  300. /* harmony import */ var _utils_auth_api__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(37883);
  301. /* harmony import */ var _utils_auth_userDataSync__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(50823);
  302. /* harmony import */ var _utils_eventLogger__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(55943);
  303. var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_dls_Button_Button__WEBPACK_IMPORTED_MODULE_5__, _dls_Forms_Input__WEBPACK_IMPORTED_MODULE_6__, _dls_Modal_Modal__WEBPACK_IMPORTED_MODULE_7__, _utils_auth_userDataSync__WEBPACK_IMPORTED_MODULE_9__, _utils_eventLogger__WEBPACK_IMPORTED_MODULE_10__]);
  304. ([_dls_Button_Button__WEBPACK_IMPORTED_MODULE_5__, _dls_Forms_Input__WEBPACK_IMPORTED_MODULE_6__, _dls_Modal_Modal__WEBPACK_IMPORTED_MODULE_7__, _utils_auth_userDataSync__WEBPACK_IMPORTED_MODULE_9__, _utils_eventLogger__WEBPACK_IMPORTED_MODULE_10__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
  305. const DeleteAccountButton = ({ isDisabled })=>{
  306. const { t } = next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4___default()("profile");
  307. const { 0: isModalVisible , 1: setIsModalVisible } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);
  308. const { 0: confirmationText , 1: setConfirmationText } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)("");
  309. const closeModal = ()=>{
  310. setConfirmationText("");
  311. setIsModalVisible(false);
  312. };
  313. const onDeleteConfirmed = async ()=>{
  314. (0,_utils_eventLogger__WEBPACK_IMPORTED_MODULE_10__/* .logButtonClick */ .MY)("profile_confirm_delete_account");
  315. closeModal();
  316. await (0,_utils_auth_api__WEBPACK_IMPORTED_MODULE_8__/* .deleteAccount */ .tm)();
  317. (0,_utils_auth_userDataSync__WEBPACK_IMPORTED_MODULE_9__/* .removeLastSyncAt */ .Tk)();
  318. next_router__WEBPACK_IMPORTED_MODULE_2___default().push("/");
  319. };
  320. const onDeleteAccountClicked = ()=>{
  321. (0,_utils_eventLogger__WEBPACK_IMPORTED_MODULE_10__/* .logButtonClick */ .MY)("profile_delete_account");
  322. setIsModalVisible(true);
  323. };
  324. const CONFIRMATION_TEXT = t("delete-confirmation.confirmation-text");
  325. const canDeleteAccount = confirmationText.toLowerCase() === CONFIRMATION_TEXT.toLowerCase();
  326. return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
  327. children: [
  328. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Button_Button__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .ZP, {
  329. type: _dls_Button_Button__WEBPACK_IMPORTED_MODULE_5__/* .ButtonType.Error */ .L$.Error,
  330. variant: _dls_Button_Button__WEBPACK_IMPORTED_MODULE_5__/* .ButtonVariant.Ghost */ .Wu.Ghost,
  331. onClick: onDeleteAccountClicked,
  332. isDisabled: isDisabled,
  333. children: t("delete-account")
  334. }),
  335. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Modal_Modal__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
  336. isOpen: isModalVisible,
  337. onClickOutside: closeModal,
  338. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_dls_Modal_Modal__WEBPACK_IMPORTED_MODULE_7__/* ["default"].Body */ .Z.Body, {
  339. children: [
  340. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_dls_Modal_Modal__WEBPACK_IMPORTED_MODULE_7__/* ["default"].Header */ .Z.Header, {
  341. children: [
  342. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Modal_Modal__WEBPACK_IMPORTED_MODULE_7__/* ["default"].Title */ .Z.Title, {
  343. children: t("delete-confirmation.title")
  344. }),
  345. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Modal_Modal__WEBPACK_IMPORTED_MODULE_7__/* ["default"].Subtitle */ .Z.Subtitle, {
  346. children: t("delete-confirmation.subtitle")
  347. }),
  348. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", {
  349. className: (_DeleteAccountButton_module_scss__WEBPACK_IMPORTED_MODULE_11___default().instructionText),
  350. children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_translate_Trans__WEBPACK_IMPORTED_MODULE_3___default()), {
  351. i18nKey: "profile:delete-confirmation.instruction-text",
  352. values: {
  353. text: CONFIRMATION_TEXT
  354. },
  355. components: {
  356. strong: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("strong", {
  357. className: (_DeleteAccountButton_module_scss__WEBPACK_IMPORTED_MODULE_11___default().confirmationText)
  358. })
  359. }
  360. })
  361. }),
  362. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Forms_Input__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP, {
  363. id: "delete-account-confirmation",
  364. value: confirmationText,
  365. onChange: setConfirmationText,
  366. fixedWidth: false,
  367. containerClassName: (_DeleteAccountButton_module_scss__WEBPACK_IMPORTED_MODULE_11___default().inputContainer)
  368. })
  369. ]
  370. }),
  371. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Modal_Modal__WEBPACK_IMPORTED_MODULE_7__/* ["default"].Footer */ .Z.Footer, {
  372. children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Button_Button__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .ZP, {
  373. type: _dls_Button_Button__WEBPACK_IMPORTED_MODULE_5__/* .ButtonType.Error */ .L$.Error,
  374. variant: _dls_Button_Button__WEBPACK_IMPORTED_MODULE_5__/* .ButtonVariant.Outlined */ .Wu.Outlined,
  375. className: (_DeleteAccountButton_module_scss__WEBPACK_IMPORTED_MODULE_11___default().deleteButton),
  376. onClick: onDeleteConfirmed,
  377. isDisabled: !canDeleteAccount,
  378. children: t("delete-confirmation.action-text")
  379. })
  380. })
  381. ]
  382. })
  383. })
  384. ]
  385. });
  386. };
  387. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DeleteAccountButton);
  388. __webpack_async_result__();
  389. } catch(e) { __webpack_async_result__(e); } });
  390. /***/ }),
  391. /***/ 44533:
  392. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  393. "use strict";
  394. __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
  395. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  396. /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
  397. /* harmony export */ });
  398. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20997);
  399. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
  400. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16689);
  401. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  402. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(60866);
  403. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_2__);
  404. /* harmony import */ var _dls_Link_Link__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61239);
  405. /* harmony import */ var _RecentReadingSessions_module_scss__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(83388);
  406. /* harmony import */ var _RecentReadingSessions_module_scss__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_RecentReadingSessions_module_scss__WEBPACK_IMPORTED_MODULE_13__);
  407. /* harmony import */ var _RecentReadingSessionsSkeleton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82365);
  408. /* harmony import */ var _dls_SurahPreview_SurahPreview__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95459);
  409. /* harmony import */ var _hooks_auth_useGetRecentlyReadVerseKeys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(37865);
  410. /* harmony import */ var _utils_chapter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(95892);
  411. /* harmony import */ var _utils_eventLogger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(55943);
  412. /* harmony import */ var _utils_locale__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(24709);
  413. /* harmony import */ var _utils_navigation__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(57933);
  414. /* harmony import */ var _utils_verse__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(44519);
  415. /* harmony import */ var src_contexts_DataContext__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(70813);
  416. var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_hooks_auth_useGetRecentlyReadVerseKeys__WEBPACK_IMPORTED_MODULE_6__, _utils_eventLogger__WEBPACK_IMPORTED_MODULE_8__, _utils_navigation__WEBPACK_IMPORTED_MODULE_10__]);
  417. ([_hooks_auth_useGetRecentlyReadVerseKeys__WEBPACK_IMPORTED_MODULE_6__, _utils_eventLogger__WEBPACK_IMPORTED_MODULE_8__, _utils_navigation__WEBPACK_IMPORTED_MODULE_10__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
  418. const RecentReadingSessions = ()=>{
  419. const { t , lang } = next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_2___default()("home");
  420. const chaptersData = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(src_contexts_DataContext__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z);
  421. const { recentlyReadVerseKeys , isLoading } = (0,_hooks_auth_useGetRecentlyReadVerseKeys__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)();
  422. const onRecentReadingSessionClicked = ()=>{
  423. (0,_utils_eventLogger__WEBPACK_IMPORTED_MODULE_8__/* .logButtonClick */ .MY)("recently_read_card");
  424. };
  425. if (isLoading) {
  426. return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
  427. className: (_RecentReadingSessions_module_scss__WEBPACK_IMPORTED_MODULE_13___default().sessionsContainer),
  428. id: "reading-sessions",
  429. children: [
  430. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", {
  431. className: (_RecentReadingSessions_module_scss__WEBPACK_IMPORTED_MODULE_13___default().sessionsHeader),
  432. children: t("recently-read")
  433. }),
  434. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
  435. className: (_RecentReadingSessions_module_scss__WEBPACK_IMPORTED_MODULE_13___default().verseLinksContainer),
  436. children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_RecentReadingSessionsSkeleton__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {})
  437. })
  438. ]
  439. });
  440. }
  441. if (recentlyReadVerseKeys.length === 0) return null;
  442. return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
  443. className: (_RecentReadingSessions_module_scss__WEBPACK_IMPORTED_MODULE_13___default().sessionsContainer),
  444. id: "reading-sessions",
  445. children: [
  446. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", {
  447. className: (_RecentReadingSessions_module_scss__WEBPACK_IMPORTED_MODULE_13___default().sessionsHeader),
  448. children: t("recently-read")
  449. }),
  450. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
  451. className: (_RecentReadingSessions_module_scss__WEBPACK_IMPORTED_MODULE_13___default().verseLinksContainer),
  452. children: recentlyReadVerseKeys.map((verseKey)=>{
  453. const [chapterId, verseNumber] = (0,_utils_verse__WEBPACK_IMPORTED_MODULE_11__/* .getVerseAndChapterNumbersFromKey */ .bV)(verseKey);
  454. const surah = (0,_utils_chapter__WEBPACK_IMPORTED_MODULE_7__/* .getChapterData */ .dy)(chaptersData, chapterId);
  455. return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
  456. className: (_RecentReadingSessions_module_scss__WEBPACK_IMPORTED_MODULE_13___default().verseLink),
  457. children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Link_Link__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
  458. href: (0,_utils_navigation__WEBPACK_IMPORTED_MODULE_10__/* .getChapterWithStartingVerseUrl */ .P6)(verseKey),
  459. onClick: onRecentReadingSessionClicked,
  460. children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_SurahPreview_SurahPreview__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
  461. display: _dls_SurahPreview_SurahPreview__WEBPACK_IMPORTED_MODULE_5__/* .SurahPreviewDisplay.Block */ .$.Block,
  462. chapterId: Number(chapterId),
  463. surahNumber: Number(chapterId),
  464. translatedSurahName: surah.translatedName,
  465. surahName: surah.transliteratedName,
  466. description: `${t("common:ayah")} ${(0,_utils_locale__WEBPACK_IMPORTED_MODULE_9__/* .toLocalizedNumber */ .rQ)(Number(verseNumber), lang)}`
  467. })
  468. })
  469. }, verseKey);
  470. })
  471. })
  472. ]
  473. });
  474. };
  475. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RecentReadingSessions);
  476. __webpack_async_result__();
  477. } catch(e) { __webpack_async_result__(e); } });
  478. /***/ }),
  479. /***/ 82365:
  480. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  481. "use strict";
  482. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  483. /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
  484. /* harmony export */ });
  485. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20997);
  486. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
  487. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16689);
  488. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  489. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(59003);
  490. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  491. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60866);
  492. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3__);
  493. /* harmony import */ var _RecentReadingSessions_module_scss__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83388);
  494. /* harmony import */ var _RecentReadingSessions_module_scss__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_RecentReadingSessions_module_scss__WEBPACK_IMPORTED_MODULE_10__);
  495. /* harmony import */ var _RecentReadingSessionsSkeleton_module_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(28935);
  496. /* harmony import */ var _RecentReadingSessionsSkeleton_module_scss__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_RecentReadingSessionsSkeleton_module_scss__WEBPACK_IMPORTED_MODULE_11__);
  497. /* harmony import */ var _components_chapters_ChapterIcon_ChapterIconContainer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(92799);
  498. /* harmony import */ var _contexts_DataContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70813);
  499. /* harmony import */ var _dls_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77048);
  500. /* harmony import */ var _dls_SurahPreview_SurahPreviewBlock_module_scss__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(48597);
  501. /* harmony import */ var _dls_SurahPreview_SurahPreviewBlock_module_scss__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_dls_SurahPreview_SurahPreviewBlock_module_scss__WEBPACK_IMPORTED_MODULE_12__);
  502. /* harmony import */ var _utils_chapter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(95892);
  503. /* harmony import */ var _utils_locale__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(24709);
  504. /* harmony import */ var _utils_verse__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(44519);
  505. const VERSE_KEY = "19:1";
  506. const RECENT_READING_SESSIONS_COUNT = 10;
  507. const recentReadingSessionsArr = Array(RECENT_READING_SESSIONS_COUNT).fill(null);
  508. const RecentReadingSessionsSkeleton = ()=>{
  509. const { t , lang } = next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_3___default()("home");
  510. const chaptersData = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_contexts_DataContext__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z);
  511. const [chapterId, verseNumber] = (0,_utils_verse__WEBPACK_IMPORTED_MODULE_9__/* .getVerseAndChapterNumbersFromKey */ .bV)(VERSE_KEY);
  512. const surah = (0,_utils_chapter__WEBPACK_IMPORTED_MODULE_7__/* .getChapterData */ .dy)(chaptersData, chapterId);
  513. const isMinimalLayout = (0,_utils_locale__WEBPACK_IMPORTED_MODULE_8__/* .shouldUseMinimalLayout */ .uP)(lang);
  514. const localizedSurahNumber = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(()=>{
  515. return (0,_utils_locale__WEBPACK_IMPORTED_MODULE_8__/* .toLocalizedNumber */ .rQ)(Number(chapterId), lang);
  516. }, [
  517. lang,
  518. chapterId
  519. ]);
  520. return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
  521. children: recentReadingSessionsArr.map((k, i)=>/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
  522. className: classnames__WEBPACK_IMPORTED_MODULE_2___default()((_RecentReadingSessions_module_scss__WEBPACK_IMPORTED_MODULE_10___default().verseLink), (_RecentReadingSessionsSkeleton_module_scss__WEBPACK_IMPORTED_MODULE_11___default().skeletonItem)),
  523. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
  524. className: (_dls_SurahPreview_SurahPreviewBlock_module_scss__WEBPACK_IMPORTED_MODULE_12___default().container),
  525. children: [
  526. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
  527. className: (_dls_SurahPreview_SurahPreviewBlock_module_scss__WEBPACK_IMPORTED_MODULE_12___default().header),
  528. children: [
  529. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
  530. children: [
  531. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
  532. isActive: true,
  533. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
  534. className: (_dls_SurahPreview_SurahPreviewBlock_module_scss__WEBPACK_IMPORTED_MODULE_12___default().translatedSurahName),
  535. children: [
  536. isMinimalLayout && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
  537. children: [
  538. t("common:surah"),
  539. " "
  540. ]
  541. }),
  542. surah.translatedName
  543. ]
  544. })
  545. }),
  546. !isMinimalLayout && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
  547. isActive: true,
  548. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
  549. className: (_dls_SurahPreview_SurahPreviewBlock_module_scss__WEBPACK_IMPORTED_MODULE_12___default().surahName),
  550. children: [
  551. t("common:surah"),
  552. " ",
  553. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("br", {}),
  554. surah.transliteratedName
  555. ]
  556. })
  557. })
  558. ]
  559. }),
  560. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
  561. className: (_dls_SurahPreview_SurahPreviewBlock_module_scss__WEBPACK_IMPORTED_MODULE_12___default().surahNumber),
  562. children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
  563. isActive: true,
  564. children: localizedSurahNumber
  565. })
  566. })
  567. ]
  568. }),
  569. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_dls_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
  570. isActive: true,
  571. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
  572. className: (_dls_SurahPreview_SurahPreviewBlock_module_scss__WEBPACK_IMPORTED_MODULE_12___default().surahIcon),
  573. children: [
  574. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_chapters_ChapterIcon_ChapterIconContainer__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
  575. chapterId: chapterId.toString(),
  576. hasSurahPrefix: false,
  577. size: _components_chapters_ChapterIcon_ChapterIconContainer__WEBPACK_IMPORTED_MODULE_4__/* .ChapterIconsSize.Large */ ._.Large
  578. }),
  579. /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
  580. className: (_dls_SurahPreview_SurahPreviewBlock_module_scss__WEBPACK_IMPORTED_MODULE_12___default().description),
  581. children: `${t("common:ayah")} ${(0,_utils_locale__WEBPACK_IMPORTED_MODULE_8__/* .toLocalizedNumber */ .rQ)(Number(verseNumber), lang)}`
  582. })
  583. ]
  584. })
  585. })
  586. ]
  587. })
  588. }, `skeleton_${i}`))
  589. });
  590. };
  591. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RecentReadingSessionsSkeleton);
  592. /***/ }),
  593. /***/ 95459:
  594. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  595. "use strict";
  596. // EXPORTS
  597. __webpack_require__.d(__webpack_exports__, {
  598. "$": () => (/* binding */ SurahPreviewDisplay),
  599. "Z": () => (/* binding */ SurahPreview_SurahPreview)
  600. });
  601. // EXTERNAL MODULE: external "react/jsx-runtime"
  602. var jsx_runtime_ = __webpack_require__(20997);
  603. // EXTERNAL MODULE: external "react"
  604. var external_react_ = __webpack_require__(16689);
  605. // EXTERNAL MODULE: external "next-translate/useTranslation"
  606. var useTranslation_ = __webpack_require__(60866);
  607. var useTranslation_default = /*#__PURE__*/__webpack_require__.n(useTranslation_);
  608. // EXTERNAL MODULE: ./src/components/dls/SurahPreview/SurahPreviewBlock.module.scss
  609. var SurahPreviewBlock_module = __webpack_require__(48597);
  610. var SurahPreviewBlock_module_default = /*#__PURE__*/__webpack_require__.n(SurahPreviewBlock_module);
  611. // EXTERNAL MODULE: ./src/components/chapters/ChapterIcon/ChapterIconContainer.tsx + 1 modules
  612. var ChapterIconContainer = __webpack_require__(92799);
  613. // EXTERNAL MODULE: ./src/utils/locale.ts
  614. var locale = __webpack_require__(24709);
  615. ;// CONCATENATED MODULE: ./src/components/dls/SurahPreview/SurahPreviewBlock.tsx
  616. const SurahPreviewBlock = ({ chapterId , surahName , surahNumber , translatedSurahName , description })=>{
  617. const { t , lang } = useTranslation_default()("common");
  618. const isMinimalLayout = (0,locale/* shouldUseMinimalLayout */.uP)(lang);
  619. const localizedSurahNumber = (0,external_react_.useMemo)(()=>{
  620. return (0,locale/* toLocalizedNumber */.rQ)(surahNumber, lang);
  621. }, [
  622. lang,
  623. surahNumber
  624. ]);
  625. return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", {
  626. className: (SurahPreviewBlock_module_default()).container,
  627. children: [
  628. /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", {
  629. className: (SurahPreviewBlock_module_default()).header,
  630. children: [
  631. /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", {
  632. children: [
  633. /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", {
  634. className: (SurahPreviewBlock_module_default()).translatedSurahName,
  635. children: [
  636. isMinimalLayout && /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
  637. children: [
  638. t("surah"),
  639. " "
  640. ]
  641. }),
  642. translatedSurahName
  643. ]
  644. }),
  645. !isMinimalLayout && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", {
  646. className: (SurahPreviewBlock_module_default()).surahName,
  647. children: [
  648. t("surah"),
  649. " ",
  650. /*#__PURE__*/ jsx_runtime_.jsx("br", {}),
  651. surahName
  652. ]
  653. })
  654. ]
  655. }),
  656. /*#__PURE__*/ jsx_runtime_.jsx("div", {
  657. className: (SurahPreviewBlock_module_default()).surahNumber,
  658. children: localizedSurahNumber
  659. })
  660. ]
  661. }),
  662. /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", {
  663. className: (SurahPreviewBlock_module_default()).surahIcon,
  664. children: [
  665. /*#__PURE__*/ jsx_runtime_.jsx(ChapterIconContainer/* default */.Z, {
  666. chapterId: chapterId.toString(),
  667. hasSurahPrefix: false,
  668. size: ChapterIconContainer/* ChapterIconsSize.Large */._.Large
  669. }),
  670. description && /*#__PURE__*/ jsx_runtime_.jsx("div", {
  671. className: (SurahPreviewBlock_module_default()).description,
  672. children: description
  673. })
  674. ]
  675. })
  676. ]
  677. });
  678. };
  679. /* harmony default export */ const SurahPreview_SurahPreviewBlock = (SurahPreviewBlock);
  680. // EXTERNAL MODULE: ./src/components/dls/SurahPreview/SurahPreviewRow.tsx
  681. var SurahPreviewRow = __webpack_require__(53198);
  682. ;// CONCATENATED MODULE: ./src/components/dls/SurahPreview/SurahPreview.tsx
  683. var SurahPreviewDisplay;
  684. (function(SurahPreviewDisplay) {
  685. SurahPreviewDisplay["Block"] = "block";
  686. SurahPreviewDisplay["Row"] = "row";
  687. })(SurahPreviewDisplay || (SurahPreviewDisplay = {}));
  688. const SurahPreview = ({ chapterId , surahName , surahNumber , translatedSurahName , description , display =SurahPreviewDisplay.Block })=>{
  689. if (display === SurahPreviewDisplay.Block) {
  690. return /*#__PURE__*/ jsx_runtime_.jsx(SurahPreview_SurahPreviewBlock, {
  691. chapterId: chapterId,
  692. surahName: surahName,
  693. surahNumber: surahNumber,
  694. translatedSurahName: translatedSurahName,
  695. description: description
  696. });
  697. }
  698. if (display === SurahPreviewDisplay.Row) {
  699. return /*#__PURE__*/ jsx_runtime_.jsx(SurahPreviewRow/* default */.Z, {
  700. chapterId: chapterId,
  701. surahName: surahName,
  702. surahNumber: surahNumber,
  703. translatedSurahName: translatedSurahName,
  704. description: description
  705. });
  706. }
  707. throw new Error("display must be either block or row");
  708. };
  709. /* harmony default export */ const SurahPreview_SurahPreview = (SurahPreview);
  710. /***/ }),
  711. /***/ 35244:
  712. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  713. "use strict";
  714. __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
  715. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  716. /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
  717. /* harmony export */ });
  718. /* harmony import */ var swr__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15941);
  719. /* harmony import */ var _utils_auth_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37883);
  720. /* harmony import */ var _utils_auth_apiPaths__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13830);
  721. /* harmony import */ var _utils_auth_login__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22197);
  722. var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([swr__WEBPACK_IMPORTED_MODULE_0__, _utils_auth_login__WEBPACK_IMPORTED_MODULE_3__]);
  723. ([swr__WEBPACK_IMPORTED_MODULE_0__, _utils_auth_login__WEBPACK_IMPORTED_MODULE_3__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
  724. const useCurrentUser = ()=>{
  725. const { data: userData , isValidating , error , } = (0,swr__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_utils_auth_login__WEBPACK_IMPORTED_MODULE_3__/* .isLoggedIn */ .jl)() ? (0,_utils_auth_apiPaths__WEBPACK_IMPORTED_MODULE_2__/* .makeUserProfileUrl */ .bo)() : null, _utils_auth_api__WEBPACK_IMPORTED_MODULE_1__/* .getUserProfile */ .et);
  726. return {
  727. user: userData || {},
  728. isLoading: isValidating && !userData,
  729. error
  730. };
  731. };
  732. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useCurrentUser);
  733. __webpack_async_result__();
  734. } catch(e) { __webpack_async_result__(e); } });
  735. /***/ }),
  736. /***/ 50823:
  737. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  738. "use strict";
  739. __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
  740. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  741. /* harmony export */ "Tk": () => (/* binding */ removeLastSyncAt),
  742. /* harmony export */ "Uz": () => (/* binding */ getLastSyncAt),
  743. /* harmony export */ "b4": () => (/* binding */ setLastSyncAt)
  744. /* harmony export */ });
  745. /* harmony import */ var js_cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69915);
  746. /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(43860);
  747. var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([js_cookie__WEBPACK_IMPORTED_MODULE_0__]);
  748. js_cookie__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
  749. const getLastSyncAt = ()=>{
  750. const value = js_cookie__WEBPACK_IMPORTED_MODULE_0__["default"].get(_constants__WEBPACK_IMPORTED_MODULE_1__/* .USER_DATA_SYNC_COOKIE_NAME */ ._0);
  751. if (!value) {
  752. return null;
  753. }
  754. const dateValue = new Date(value);
  755. return !Number.isNaN(dateValue.getTime()) ? dateValue : null;
  756. };
  757. const removeLastSyncAt = ()=>js_cookie__WEBPACK_IMPORTED_MODULE_0__["default"].remove(_constants__WEBPACK_IMPORTED_MODULE_1__/* .USER_DATA_SYNC_COOKIE_NAME */ ._0);
  758. const setLastSyncAt = (lastSyncAt)=>js_cookie__WEBPACK_IMPORTED_MODULE_0__["default"].set(_constants__WEBPACK_IMPORTED_MODULE_1__/* .USER_DATA_SYNC_COOKIE_NAME */ ._0, lastSyncAt.toString());
  759. __webpack_async_result__();
  760. } catch(e) { __webpack_async_result__(e); } });
  761. /***/ }),
  762. /***/ 75184:
  763. /***/ ((module) => {
  764. "use strict";
  765. module.exports = require("@reduxjs/toolkit");
  766. /***/ }),
  767. /***/ 58097:
  768. /***/ ((module) => {
  769. "use strict";
  770. module.exports = require("@sentry/nextjs");
  771. /***/ }),
  772. /***/ 59003:
  773. /***/ ((module) => {
  774. "use strict";
  775. module.exports = require("classnames");
  776. /***/ }),
  777. /***/ 59606:
  778. /***/ ((module) => {
  779. "use strict";
  780. module.exports = require("humps");
  781. /***/ }),
  782. /***/ 12372:
  783. /***/ ((module) => {
  784. "use strict";
  785. module.exports = require("lodash/findKey");
  786. /***/ }),
  787. /***/ 98492:
  788. /***/ ((module) => {
  789. "use strict";
  790. module.exports = require("lodash/groupBy");
  791. /***/ }),
  792. /***/ 35526:
  793. /***/ ((module) => {
  794. "use strict";
  795. module.exports = require("lodash/random");
  796. /***/ }),
  797. /***/ 64042:
  798. /***/ ((module) => {
  799. "use strict";
  800. module.exports = require("lodash/range");
  801. /***/ }),
  802. /***/ 16641:
  803. /***/ ((module) => {
  804. "use strict";
  805. module.exports = require("next-seo");
  806. /***/ }),
  807. /***/ 74137:
  808. /***/ ((module) => {
  809. "use strict";
  810. module.exports = require("next-translate/Trans");
  811. /***/ }),
  812. /***/ 60866:
  813. /***/ ((module) => {
  814. "use strict";
  815. module.exports = require("next-translate/useTranslation");
  816. /***/ }),
  817. /***/ 3280:
  818. /***/ ((module) => {
  819. "use strict";
  820. module.exports = require("next/dist/shared/lib/app-router-context.js");
  821. /***/ }),
  822. /***/ 92796:
  823. /***/ ((module) => {
  824. "use strict";
  825. module.exports = require("next/dist/shared/lib/head-manager-context.js");
  826. /***/ }),
  827. /***/ 3539:
  828. /***/ ((module) => {
  829. "use strict";
  830. module.exports = require("next/dist/shared/lib/i18n/detect-domain-locale.js");
  831. /***/ }),
  832. /***/ 34014:
  833. /***/ ((module) => {
  834. "use strict";
  835. module.exports = require("next/dist/shared/lib/i18n/normalize-locale-path.js");
  836. /***/ }),
  837. /***/ 78524:
  838. /***/ ((module) => {
  839. "use strict";
  840. module.exports = require("next/dist/shared/lib/is-plain-object.js");
  841. /***/ }),
  842. /***/ 78020:
  843. /***/ ((module) => {
  844. "use strict";
  845. module.exports = require("next/dist/shared/lib/mitt.js");
  846. /***/ }),
  847. /***/ 64406:
  848. /***/ ((module) => {
  849. "use strict";
  850. module.exports = require("next/dist/shared/lib/page-path/denormalize-page-path.js");
  851. /***/ }),
  852. /***/ 24964:
  853. /***/ ((module) => {
  854. "use strict";
  855. module.exports = require("next/dist/shared/lib/router-context.js");
  856. /***/ }),
  857. /***/ 93431:
  858. /***/ ((module) => {
  859. "use strict";
  860. module.exports = require("next/dist/shared/lib/router/utils/add-locale.js");
  861. /***/ }),
  862. /***/ 11751:
  863. /***/ ((module) => {
  864. "use strict";
  865. module.exports = require("next/dist/shared/lib/router/utils/add-path-prefix.js");
  866. /***/ }),
  867. /***/ 46220:
  868. /***/ ((module) => {
  869. "use strict";
  870. module.exports = require("next/dist/shared/lib/router/utils/compare-states.js");
  871. /***/ }),
  872. /***/ 10299:
  873. /***/ ((module) => {
  874. "use strict";
  875. module.exports = require("next/dist/shared/lib/router/utils/format-next-pathname-info.js");
  876. /***/ }),
  877. /***/ 23938:
  878. /***/ ((module) => {
  879. "use strict";
  880. module.exports = require("next/dist/shared/lib/router/utils/format-url.js");
  881. /***/ }),
  882. /***/ 29565:
  883. /***/ ((module) => {
  884. "use strict";
  885. module.exports = require("next/dist/shared/lib/router/utils/get-asset-path-from-route.js");
  886. /***/ }),
  887. /***/ 35789:
  888. /***/ ((module) => {
  889. "use strict";
  890. module.exports = require("next/dist/shared/lib/router/utils/get-next-pathname-info.js");
  891. /***/ }),
  892. /***/ 1897:
  893. /***/ ((module) => {
  894. "use strict";
  895. module.exports = require("next/dist/shared/lib/router/utils/is-bot.js");
  896. /***/ }),
  897. /***/ 1428:
  898. /***/ ((module) => {
  899. "use strict";
  900. module.exports = require("next/dist/shared/lib/router/utils/is-dynamic.js");
  901. /***/ }),
  902. /***/ 28854:
  903. /***/ ((module) => {
  904. "use strict";
  905. module.exports = require("next/dist/shared/lib/router/utils/parse-path.js");
  906. /***/ }),
  907. /***/ 91292:
  908. /***/ ((module) => {
  909. "use strict";
  910. module.exports = require("next/dist/shared/lib/router/utils/parse-relative-url.js");
  911. /***/ }),
  912. /***/ 34567:
  913. /***/ ((module) => {
  914. "use strict";
  915. module.exports = require("next/dist/shared/lib/router/utils/path-has-prefix.js");
  916. /***/ }),
  917. /***/ 80979:
  918. /***/ ((module) => {
  919. "use strict";
  920. module.exports = require("next/dist/shared/lib/router/utils/querystring.js");
  921. /***/ }),
  922. /***/ 93297:
  923. /***/ ((module) => {
  924. "use strict";
  925. module.exports = require("next/dist/shared/lib/router/utils/remove-trailing-slash.js");
  926. /***/ }),
  927. /***/ 36052:
  928. /***/ ((module) => {
  929. "use strict";
  930. module.exports = require("next/dist/shared/lib/router/utils/resolve-rewrites.js");
  931. /***/ }),
  932. /***/ 84226:
  933. /***/ ((module) => {
  934. "use strict";
  935. module.exports = require("next/dist/shared/lib/router/utils/route-matcher.js");
  936. /***/ }),
  937. /***/ 95052:
  938. /***/ ((module) => {
  939. "use strict";
  940. module.exports = require("next/dist/shared/lib/router/utils/route-regex.js");
  941. /***/ }),
  942. /***/ 59232:
  943. /***/ ((module) => {
  944. "use strict";
  945. module.exports = require("next/dist/shared/lib/utils.js");
  946. /***/ }),
  947. /***/ 71853:
  948. /***/ ((module) => {
  949. "use strict";
  950. module.exports = require("next/router");
  951. /***/ }),
  952. /***/ 16689:
  953. /***/ ((module) => {
  954. "use strict";
  955. module.exports = require("react");
  956. /***/ }),
  957. /***/ 6022:
  958. /***/ ((module) => {
  959. "use strict";
  960. module.exports = require("react-redux");
  961. /***/ }),
  962. /***/ 20997:
  963. /***/ ((module) => {
  964. "use strict";
  965. module.exports = require("react/jsx-runtime");
  966. /***/ }),
  967. /***/ 52648:
  968. /***/ ((module) => {
  969. "use strict";
  970. module.exports = require("refresh-fetch");
  971. /***/ }),
  972. /***/ 11601:
  973. /***/ ((module) => {
  974. "use strict";
  975. module.exports = import("@radix-ui/react-checkbox");;
  976. /***/ }),
  977. /***/ 77715:
  978. /***/ ((module) => {
  979. "use strict";
  980. module.exports = import("@radix-ui/react-dialog");;
  981. /***/ }),
  982. /***/ 31481:
  983. /***/ ((module) => {
  984. "use strict";
  985. module.exports = import("@radix-ui/react-dropdown-menu");;
  986. /***/ }),
  987. /***/ 4086:
  988. /***/ ((module) => {
  989. "use strict";
  990. module.exports = import("@radix-ui/react-radio-group");;
  991. /***/ }),
  992. /***/ 66704:
  993. /***/ ((module) => {
  994. "use strict";
  995. module.exports = import("@radix-ui/react-tooltip");;
  996. /***/ }),
  997. /***/ 28560:
  998. /***/ ((module) => {
  999. "use strict";
  1000. module.exports = import("@radix-ui/react-visually-hidden");;
  1001. /***/ }),
  1002. /***/ 88813:
  1003. /***/ ((module) => {
  1004. "use strict";
  1005. module.exports = import("firebase/compat/analytics");;
  1006. /***/ }),
  1007. /***/ 33773:
  1008. /***/ ((module) => {
  1009. "use strict";
  1010. module.exports = import("firebase/compat/app");;
  1011. /***/ }),
  1012. /***/ 69915:
  1013. /***/ ((module) => {
  1014. "use strict";
  1015. module.exports = import("js-cookie");;
  1016. /***/ }),
  1017. /***/ 45641:
  1018. /***/ ((module) => {
  1019. "use strict";
  1020. module.exports = import("react-hook-form");;
  1021. /***/ }),
  1022. /***/ 3590:
  1023. /***/ ((module) => {
  1024. "use strict";
  1025. module.exports = import("react-toastify");;
  1026. /***/ }),
  1027. /***/ 15941:
  1028. /***/ ((module) => {
  1029. "use strict";
  1030. module.exports = import("swr");;
  1031. /***/ }),
  1032. /***/ 79847:
  1033. /***/ ((module) => {
  1034. "use strict";
  1035. module.exports = import("swr/immutable");;
  1036. /***/ }),
  1037. /***/ 63477:
  1038. /***/ ((module) => {
  1039. "use strict";
  1040. module.exports = require("querystring");
  1041. /***/ })
  1042. };
  1043. ;
  1044. // load runtime
  1045. var __webpack_require__ = require("../webpack-runtime.js");
  1046. __webpack_require__.C(exports);
  1047. var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
  1048. var __webpack_exports__ = __webpack_require__.X(0, [11497,79165,96270,24709,57933,61239,25869,50497,76410,79717,13830,37883,22197,36049,85949,62093,91308,99163,42752,37013,67972,1223,47658,4461,92799,88859], () => (__webpack_exec__(79918)));
  1049. module.exports = __webpack_exports__;
  1050. })();
  1051. //# sourceMappingURL=profile.js.map