13830.js 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. "use strict";
  2. exports.id = 13830;
  3. exports.ids = [13830];
  4. exports.modules = {
  5. /***/ 13830:
  6. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  7. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  8. /* harmony export */ "C": () => (/* binding */ makeNotesUrl),
  9. /* harmony export */ "D4": () => (/* binding */ makeActivityDaysUrl),
  10. /* harmony export */ "DZ": () => (/* binding */ makeDeleteBookmarkUrl),
  11. /* harmony export */ "E4": () => (/* binding */ makePublishNoteUrl),
  12. /* harmony export */ "Ej": () => (/* binding */ makeGoogleLoginUrl),
  13. /* harmony export */ "Ev": () => (/* binding */ makeBookmarksUrl),
  14. /* harmony export */ "G_": () => (/* binding */ makeStreakUrl),
  15. /* harmony export */ "Gk": () => (/* binding */ makeGetLessonUrl),
  16. /* harmony export */ "I0": () => (/* binding */ makeEstimateReadingGoalUrl),
  17. /* harmony export */ "Ip": () => (/* binding */ makeDeleteCollectionUrl),
  18. /* harmony export */ "Ix": () => (/* binding */ makeGetBookmarkByCollectionId),
  19. /* harmony export */ "Pd": () => (/* binding */ makeDeleteCollectionBookmarkByIdUrl),
  20. /* harmony export */ "Q_": () => (/* binding */ makeLogoutUrl),
  21. /* harmony export */ "Qd": () => (/* binding */ makeRefreshTokenUrl),
  22. /* harmony export */ "Qf": () => (/* binding */ makeEnrollUserUrl),
  23. /* harmony export */ "R8": () => (/* binding */ makeCompleteAnnouncementUrl),
  24. /* harmony export */ "SH": () => (/* binding */ makeBookmarksRangeUrl),
  25. /* harmony export */ "Si": () => (/* binding */ makeSendMagicLinkUrl),
  26. /* harmony export */ "TX": () => (/* binding */ makeCourseFeedbackUrl),
  27. /* harmony export */ "Tb": () => (/* binding */ makeCollectionsUrl),
  28. /* harmony export */ "Tj": () => (/* binding */ makeReadingSessionsUrl),
  29. /* harmony export */ "V9": () => (/* binding */ makeGetUserCoursesCountUrl),
  30. /* harmony export */ "W_": () => (/* binding */ makeFilterActivityDaysUrl),
  31. /* harmony export */ "Wn": () => (/* binding */ makeBookmarkUrl),
  32. /* harmony export */ "Xk": () => (/* binding */ makeDeleteAccountUrl),
  33. /* harmony export */ "Y0": () => (/* binding */ makeGetNoteByIdUrl),
  34. /* harmony export */ "Z2": () => (/* binding */ makeAppleLoginUrl),
  35. /* harmony export */ "ZF": () => (/* binding */ makeFacebookLoginUrl),
  36. /* harmony export */ "an": () => (/* binding */ makeUserConsentsUrl),
  37. /* harmony export */ "bf": () => (/* binding */ makeUrl),
  38. /* harmony export */ "bi": () => (/* binding */ makeDeleteOrUpdateNoteUrl),
  39. /* harmony export */ "bo": () => (/* binding */ makeUserProfileUrl),
  40. /* harmony export */ "h6": () => (/* binding */ makeCountNotesWithinRangeUrl),
  41. /* harmony export */ "i5": () => (/* binding */ makeGetLessonUrlPrefix),
  42. /* harmony export */ "iX": () => (/* binding */ makeCompleteSignupUrl),
  43. /* harmony export */ "j$": () => (/* binding */ makeEstimateRangesReadingTimeUrl),
  44. /* harmony export */ "ky": () => (/* binding */ makeGoalUrl),
  45. /* harmony export */ "mL": () => (/* binding */ makeUserPreferencesUrl),
  46. /* harmony export */ "pI": () => (/* binding */ makeUserBulkPreferencesUrl),
  47. /* harmony export */ "qY": () => (/* binding */ makeGetNotesByVerseUrl),
  48. /* harmony export */ "qc": () => (/* binding */ makeVerificationCodeUrl),
  49. /* harmony export */ "r9": () => (/* binding */ makeGetCoursesUrl),
  50. /* harmony export */ "vK": () => (/* binding */ makeUpdateCollectionUrl),
  51. /* harmony export */ "vQ": () => (/* binding */ makeAllCollectionsItemsUrl),
  52. /* harmony export */ "vp": () => (/* binding */ makeGetCourseUrl),
  53. /* harmony export */ "wR": () => (/* binding */ makeSyncLocalDataUrl)
  54. /* harmony export */ });
  55. /* unused harmony exports makeUserFeatureFlagsUrl, makeAddCollectionUrl, makeGetNoteByAttachedEntityUrl, makeAddCollectionBookmarkUrl, makeDeleteCollectionBookmarkByKeyUrl, makePostReflectionViewsUrl, makeBookmarkCollectionsUrl, makeReadingGoalProgressUrl */
  56. /* harmony import */ var _qs_stringify__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(99921);
  57. /* harmony import */ var _utils_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(69663);
  58. const makeUrl = (url, parameters)=>{
  59. if (!parameters) {
  60. return (0,_utils_url__WEBPACK_IMPORTED_MODULE_1__/* .getAuthApiPath */ .vv)(url);
  61. }
  62. return (0,_utils_url__WEBPACK_IMPORTED_MODULE_1__/* .getAuthApiPath */ .vv)(`${url}${`?${(0,_qs_stringify__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(parameters)}`}`);
  63. };
  64. const makeUserProfileUrl = ()=>makeUrl("users/profile");
  65. const makeUserFeatureFlagsUrl = ()=>makeUrl("feature-flags");
  66. const makeUserConsentsUrl = ()=>makeUrl("consent/userConsents");
  67. const makeCompleteSignupUrl = ()=>makeUrl("users/completeSignup");
  68. const makeCompleteAnnouncementUrl = ()=>makeUrl("users/completeAnnouncement");
  69. const makeDeleteAccountUrl = ()=>makeUrl("users/deleteAccount");
  70. const makeSyncLocalDataUrl = ()=>makeUrl("users/syncLocalData");
  71. const makeVerificationCodeUrl = ()=>makeUrl("users/verificationCode");
  72. const makeSendMagicLinkUrl = (redirect)=>makeUrl("auth/magiclogin", redirect ? {
  73. redirect
  74. } : undefined);
  75. const makeGoogleLoginUrl = (redirect)=>makeUrl("auth/google", redirect ? {
  76. redirect
  77. } : undefined);
  78. const makeFacebookLoginUrl = (redirect)=>makeUrl("auth/facebook", redirect ? {
  79. redirect
  80. } : undefined);
  81. const makeAppleLoginUrl = (redirect)=>makeUrl("auth/apple", redirect ? {
  82. redirect
  83. } : undefined);
  84. const makeBookmarksUrl = (mushafId, limit)=>makeUrl("bookmarks", {
  85. mushafId,
  86. limit
  87. });
  88. const makeCollectionsUrl = (queryParams)=>makeUrl("collections", queryParams);
  89. const makeAddCollectionUrl = ()=>makeUrl("collections");
  90. const makeGetNotesByVerseUrl = (verseKey)=>makeUrl(`notes/by-verse/${verseKey}`);
  91. const makeGetNoteByIdUrl = (id)=>makeUrl(`notes/${id}`);
  92. const makeCountNotesWithinRangeUrl = (startVerseKey, endVerseKey)=>makeUrl(`notes/count-within-range`, {
  93. from: startVerseKey,
  94. to: endVerseKey
  95. });
  96. const makeNotesUrl = (params)=>makeUrl("notes", params);
  97. const makeGetNoteByAttachedEntityUrl = (queryParams)=>makeUrl(`notes`, queryParams);
  98. const makeDeleteOrUpdateNoteUrl = (id)=>makeUrl(`notes/${id}`);
  99. const makePublishNoteUrl = (id)=>makeUrl(`notes/${id}/publish`);
  100. const makeGetCoursesUrl = (params)=>makeUrl("courses", params);
  101. const makeGetCourseUrl = (courseSlugOrId)=>makeUrl(`courses/${courseSlugOrId}`);
  102. const makeGetLessonUrlPrefix = (courseSlugOrId)=>makeUrl(`courses/${courseSlugOrId}/lessons`);
  103. const makeGetLessonUrl = (courseSlugOrId, lessonSlugOrId)=>`${makeGetLessonUrlPrefix(courseSlugOrId)}/${lessonSlugOrId}`;
  104. const makeEnrollUserUrl = ()=>makeUrl("courses/enroll");
  105. const makeGetUserCoursesCountUrl = ()=>makeUrl("courses/count");
  106. const makeCourseFeedbackUrl = (courseId)=>makeUrl(`courses/${courseId}/feedback`);
  107. const makeUpdateCollectionUrl = (collectionId)=>makeUrl(`collections/${collectionId}`);
  108. const makeDeleteCollectionUrl = (collectionId)=>makeUrl(`collections/${collectionId}`);
  109. const makeAddCollectionBookmarkUrl = (collectionId)=>makeUrl(`collections/${collectionId}/bookmarks`);
  110. const makeDeleteCollectionBookmarkByIdUrl = (collectionId, bookmarkId)=>makeUrl(`collections/${collectionId}/bookmarks/${bookmarkId}`);
  111. const makeDeleteCollectionBookmarkByKeyUrl = (collectionId)=>makeUrl(`collections/${collectionId}/bookmarks`);
  112. const makePostReflectionViewsUrl = (postId)=>makeUrl(`posts/${postId}/views`);
  113. const makeBookmarkCollectionsUrl = (mushafId, key, type, verseNumber)=>makeUrl("bookmarks/collections", {
  114. mushafId,
  115. key,
  116. type,
  117. ...verseNumber && {
  118. verseNumber
  119. }
  120. });
  121. const makeGetBookmarkByCollectionId = (collectionId, queryParams)=>makeUrl(`collections/${collectionId}`, queryParams);
  122. const makeAllCollectionsItemsUrl = (queryParams)=>makeUrl(`collections/all`, queryParams);
  123. const makeDeleteBookmarkUrl = (bookmarkId)=>makeUrl(`bookmarks/${bookmarkId}`);
  124. const makeBookmarksRangeUrl = (mushafId, chapterNumber, verseNumber, perPage)=>makeUrl("bookmarks/ayahs-range", {
  125. mushafId,
  126. chapterNumber,
  127. verseNumber,
  128. perPage
  129. });
  130. const makeBookmarkUrl = (mushafId, key, type, verseNumber)=>makeUrl("bookmarks/bookmark", {
  131. mushafId,
  132. key,
  133. type,
  134. ...verseNumber && {
  135. verseNumber
  136. }
  137. });
  138. const makeReadingSessionsUrl = ()=>makeUrl("reading-sessions");
  139. const makeActivityDaysUrl = (params)=>makeUrl("activity-days", params);
  140. const makeFilterActivityDaysUrl = (params)=>makeUrl("activity-days/filter", params);
  141. const makeEstimateRangesReadingTimeUrl = (params)=>makeUrl("activity-days/estimate-reading-time", {
  142. ranges: params.ranges.join(",")
  143. });
  144. const makeGoalUrl = (params)=>makeUrl("goal", params);
  145. const makeEstimateReadingGoalUrl = (data)=>makeUrl("goal/estimate", data);
  146. const makeStreakUrl = (params)=>makeUrl("streak", params);
  147. const makeReadingGoalProgressUrl = (mushafId)=>makeUrl("goal/status", {
  148. mushafId
  149. });
  150. const makeUserPreferencesUrl = (mushafId)=>makeUrl("preferences", mushafId && {
  151. mushafId
  152. });
  153. const makeUserBulkPreferencesUrl = (mushafId)=>makeUrl("preferences/bulk", {
  154. mushafId
  155. });
  156. const makeLogoutUrl = ()=>makeUrl("auth/logout");
  157. const makeRefreshTokenUrl = ()=>makeUrl("tokens/refreshToken");
  158. /***/ })
  159. };
  160. ;
  161. //# sourceMappingURL=13830.js.map