@iblai/web-utils 1.11.8 → 1.11.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/dist/auth/index.esm.js.map +1 -1
  2. package/dist/auth/index.js.map +1 -1
  3. package/dist/auth/web-utils/src/__tests__/index.mobile.test.d.ts +7 -0
  4. package/dist/auth/web-utils/src/__tests__/index.web.test.d.ts +8 -0
  5. package/dist/auth/web-utils/src/constants/__tests__/chat.test.d.ts +1 -0
  6. package/dist/auth/web-utils/src/constants/chat.d.ts +8 -0
  7. package/dist/auth/web-utils/src/features/apple-restriction/__tests__/slice.test.d.ts +1 -0
  8. package/dist/auth/web-utils/src/features/apple-restriction/slice.d.ts +7 -0
  9. package/dist/auth/web-utils/src/features/chat/__tests__/slice.test.d.ts +1 -0
  10. package/dist/auth/web-utils/src/features/chat/slice.d.ts +164 -0
  11. package/dist/auth/web-utils/src/features/chat-input/__tests__/api-slice.test.d.ts +1 -0
  12. package/dist/auth/web-utils/src/features/chat-input/api-slice.d.ts +12 -0
  13. package/dist/auth/web-utils/src/features/csv/combine-csv.d.ts +35 -0
  14. package/dist/auth/web-utils/src/features/csv/index.d.ts +1 -0
  15. package/dist/auth/web-utils/src/features/files/__tests__/filesSlice.test.d.ts +1 -0
  16. package/dist/auth/web-utils/src/features/files/filesSlice.d.ts +23 -0
  17. package/dist/auth/web-utils/src/features/host-chat/__tests__/slice.test.d.ts +1 -0
  18. package/dist/auth/web-utils/src/features/host-chat/slice.d.ts +17 -0
  19. package/dist/auth/web-utils/src/features/index.d.ts +11 -0
  20. package/dist/auth/web-utils/src/features/monetization/__tests__/slice.test.d.ts +1 -0
  21. package/dist/auth/web-utils/src/features/monetization/slice.d.ts +16 -0
  22. package/dist/auth/web-utils/src/features/rbac/__tests__/rbac-slice.test.d.ts +1 -0
  23. package/dist/auth/web-utils/src/features/rbac/rbac-slice.d.ts +13 -0
  24. package/dist/auth/web-utils/src/features/subscription/__tests__/slice.test.d.ts +1 -0
  25. package/dist/auth/web-utils/src/features/subscription/constants.d.ts +12 -0
  26. package/dist/auth/web-utils/src/features/subscription/slice.d.ts +28 -0
  27. package/dist/auth/web-utils/src/features/top-banner/__tests__/slice.test.d.ts +1 -0
  28. package/dist/auth/web-utils/src/features/top-banner/slice.d.ts +24 -0
  29. package/dist/auth/web-utils/src/features/tracking/__tests__/time-tracker.test.d.ts +1 -0
  30. package/dist/auth/web-utils/src/features/tracking/examples.d.ts +4 -0
  31. package/dist/auth/web-utils/src/features/tracking/index.d.ts +6 -0
  32. package/dist/auth/web-utils/src/features/tracking/time-tracker.d.ts +29 -0
  33. package/dist/auth/web-utils/src/features/tracking/use-time-tracker-native.d.ts +14 -0
  34. package/dist/auth/web-utils/src/features/tracking/use-time-tracker.d.ts +14 -0
  35. package/dist/auth/web-utils/src/hoc/index.d.ts +2 -0
  36. package/dist/auth/web-utils/src/hoc/with-permissions.d.ts +44 -0
  37. package/dist/auth/web-utils/src/hooks/__tests__/use-accessing-public-route.test.d.ts +1 -0
  38. package/dist/auth/web-utils/src/hooks/__tests__/use-cached-session-id.test.d.ts +1 -0
  39. package/dist/auth/web-utils/src/hooks/__tests__/use-chat-file-upload.test.d.ts +1 -0
  40. package/dist/auth/web-utils/src/hooks/__tests__/use-embed-mode.test.d.ts +1 -0
  41. package/dist/auth/web-utils/src/hooks/__tests__/use-event-callback.test.d.ts +1 -0
  42. package/dist/auth/web-utils/src/hooks/__tests__/use-event-listener.test.d.ts +1 -0
  43. package/dist/auth/web-utils/src/hooks/__tests__/use-file-drag-drop.test.d.ts +1 -0
  44. package/dist/auth/web-utils/src/hooks/__tests__/use-local-storage.test.d.ts +1 -0
  45. package/dist/auth/web-utils/src/hooks/__tests__/use-mentor-settings.test.d.ts +1 -0
  46. package/dist/auth/web-utils/src/hooks/__tests__/use-model-file-upload-capabilities.test.d.ts +1 -0
  47. package/dist/auth/web-utils/src/hooks/__tests__/use-os.test.d.ts +1 -0
  48. package/dist/auth/web-utils/src/hooks/__tests__/use-responsive.test.d.ts +1 -0
  49. package/dist/auth/web-utils/src/hooks/__tests__/use-show-attachment.test.d.ts +1 -0
  50. package/dist/auth/web-utils/src/hooks/__tests__/use-show-free-trial-dialog.test.d.ts +1 -0
  51. package/dist/auth/web-utils/src/hooks/__tests__/use-show-voice-call.test.d.ts +1 -0
  52. package/dist/auth/web-utils/src/hooks/__tests__/use-show-voice-recorder.test.d.ts +1 -0
  53. package/dist/auth/web-utils/src/hooks/__tests__/use-timer.test.d.ts +1 -0
  54. package/dist/auth/web-utils/src/hooks/__tests__/use-tokens.test.d.ts +1 -0
  55. package/dist/auth/web-utils/src/hooks/__tests__/use-user-agreement.test.d.ts +1 -0
  56. package/dist/auth/web-utils/src/hooks/__tests__/use-user.test.d.ts +1 -0
  57. package/dist/auth/web-utils/src/hooks/__tests__/use-voice-chat.test.d.ts +1 -0
  58. package/dist/auth/web-utils/src/hooks/__tests__/use-welcome-message.test.d.ts +1 -0
  59. package/dist/auth/web-utils/src/hooks/chat/__tests__/chat-history.utils.test.d.ts +1 -0
  60. package/dist/auth/web-utils/src/hooks/chat/chat-history.utils.d.ts +10 -0
  61. package/dist/auth/web-utils/src/hooks/chat/ollama-client.d.ts +57 -0
  62. package/dist/auth/web-utils/src/hooks/chat/use-advanced-chat.d.ts +61 -0
  63. package/dist/auth/web-utils/src/hooks/chat/use-advanced-chat.test.d.ts +1 -0
  64. package/dist/auth/web-utils/src/hooks/chat/use-chat-history.d.ts +17 -0
  65. package/dist/auth/web-utils/src/hooks/chat/use-chat-v2.d.ts +146 -0
  66. package/dist/auth/web-utils/src/hooks/chat/use-chat-v2.test.d.ts +1 -0
  67. package/dist/auth/web-utils/src/hooks/chat/use-chat.d.ts +53 -0
  68. package/dist/auth/web-utils/src/hooks/chat/use-get-chat-details.d.ts +14 -0
  69. package/dist/auth/web-utils/src/hooks/chat/use-get-chat-details.test.d.ts +1 -0
  70. package/dist/auth/web-utils/src/hooks/chat/use-mentor-tools.d.ts +24 -0
  71. package/dist/auth/web-utils/src/hooks/chat/use-mentor-tools.test.d.ts +1 -0
  72. package/dist/auth/web-utils/src/hooks/index.d.ts +42 -0
  73. package/dist/auth/web-utils/src/hooks/profile/use-profile-image-upload.d.ts +13 -0
  74. package/dist/auth/web-utils/src/hooks/profile/use-user-profile-update.d.ts +28 -0
  75. package/dist/auth/web-utils/src/hooks/stripe/__tests__/use-stripe-upgrade.test.d.ts +1 -0
  76. package/dist/auth/web-utils/src/hooks/stripe/use-stripe-upgrade.d.ts +14 -0
  77. package/dist/auth/web-utils/src/hooks/subscription/class-subscription-flow.d.ts +70 -0
  78. package/dist/auth/web-utils/src/hooks/subscription/constants.d.ts +4 -0
  79. package/dist/auth/web-utils/src/hooks/subscription/use-subscription-handler.d.ts +11 -0
  80. package/dist/auth/web-utils/src/hooks/subscription-v2/__tests__/use-402-error-check.test.d.ts +1 -0
  81. package/dist/auth/web-utils/src/hooks/subscription-v2/class-subscription-flow.d.ts +78 -0
  82. package/dist/auth/web-utils/src/hooks/subscription-v2/constants.d.ts +56 -0
  83. package/dist/auth/web-utils/src/hooks/subscription-v2/use-402-error-check.d.ts +22 -0
  84. package/dist/auth/web-utils/src/hooks/subscription-v2/use-external-pricing-plan.d.ts +7 -0
  85. package/dist/auth/web-utils/src/hooks/subscription-v2/use-subscription-handler.d.ts +71 -0
  86. package/dist/auth/web-utils/src/hooks/tenant-metadata/__tests__/config-loader.test.d.ts +10 -0
  87. package/dist/auth/web-utils/src/hooks/tenant-metadata/__tests__/use-tenant-metadata.test.d.ts +1 -0
  88. package/dist/auth/web-utils/src/hooks/tenant-metadata/config-loader.d.ts +41 -0
  89. package/dist/auth/web-utils/src/hooks/tenant-metadata/constants.d.ts +9 -0
  90. package/dist/auth/web-utils/src/hooks/tenant-metadata/index.d.ts +5 -0
  91. package/dist/auth/web-utils/src/hooks/tenant-metadata/types.d.ts +9 -0
  92. package/dist/auth/web-utils/src/hooks/tenant-metadata/use-tenant-metadata.d.ts +29 -0
  93. package/dist/auth/web-utils/src/hooks/use-accessing-public-route.d.ts +1 -0
  94. package/dist/auth/web-utils/src/hooks/use-cached-session-id.d.ts +8 -0
  95. package/dist/auth/web-utils/src/hooks/use-chat-file-upload.d.ts +17 -0
  96. package/dist/auth/web-utils/src/hooks/use-day-js.d.ts +7 -0
  97. package/dist/auth/web-utils/src/hooks/use-embed-mode.d.ts +1 -0
  98. package/dist/auth/web-utils/src/hooks/use-event-callback.d.ts +2 -0
  99. package/dist/auth/web-utils/src/hooks/use-event-listener.d.ts +6 -0
  100. package/dist/auth/web-utils/src/hooks/use-file-drag-drop.d.ts +15 -0
  101. package/dist/auth/web-utils/src/hooks/use-isomorphic-layout-effect.d.ts +2 -0
  102. package/dist/auth/web-utils/src/hooks/use-local-storage.d.ts +13 -0
  103. package/dist/auth/web-utils/src/hooks/use-mentor-settings.d.ts +46 -0
  104. package/dist/auth/web-utils/src/hooks/use-model-file-upload-capabilities.d.ts +21 -0
  105. package/dist/auth/web-utils/src/hooks/use-os.d.ts +8 -0
  106. package/dist/auth/web-utils/src/hooks/use-responsive.d.ts +13 -0
  107. package/dist/auth/web-utils/src/hooks/use-show-attachment.d.ts +7 -0
  108. package/dist/auth/web-utils/src/hooks/use-show-free-trial-dialog.d.ts +31 -0
  109. package/dist/auth/web-utils/src/hooks/use-show-voice-call.d.ts +7 -0
  110. package/dist/auth/web-utils/src/hooks/use-show-voice-recorder.d.ts +7 -0
  111. package/dist/auth/web-utils/src/hooks/use-tenant-switch-sync.d.ts +13 -0
  112. package/dist/auth/web-utils/src/hooks/use-timer.d.ts +7 -0
  113. package/dist/auth/web-utils/src/hooks/use-tokens.d.ts +2 -0
  114. package/dist/auth/web-utils/src/hooks/use-user-agreement.d.ts +18 -0
  115. package/dist/auth/web-utils/src/hooks/use-user.d.ts +23 -0
  116. package/dist/auth/web-utils/src/hooks/use-voice-chat.d.ts +11 -0
  117. package/dist/auth/web-utils/src/hooks/use-welcome-message.d.ts +16 -0
  118. package/dist/auth/web-utils/src/index.d.ts +8 -0
  119. package/dist/auth/web-utils/src/index.mobile.d.ts +86 -0
  120. package/dist/auth/web-utils/src/index.web.d.ts +142 -0
  121. package/dist/auth/web-utils/src/providers/__tests__/auth-provider.test.d.ts +1 -0
  122. package/dist/auth/web-utils/src/providers/__tests__/mentor-provider.test.d.ts +1 -0
  123. package/dist/auth/web-utils/src/providers/__tests__/service-worker-provider.test.d.ts +1 -0
  124. package/dist/auth/web-utils/src/providers/__tests__/tenant-provider.test.d.ts +1 -0
  125. package/dist/auth/web-utils/src/providers/auth-provider.d.ts +129 -0
  126. package/dist/auth/web-utils/src/providers/index.d.ts +4 -0
  127. package/dist/auth/web-utils/src/providers/mentor-provider.d.ts +44 -0
  128. package/dist/auth/web-utils/src/providers/service-worker-provider.d.ts +21 -0
  129. package/dist/auth/web-utils/src/providers/tenant-provider.d.ts +77 -0
  130. package/dist/auth/web-utils/src/services/__tests__/event-bus.test.d.ts +1 -0
  131. package/dist/auth/web-utils/src/services/__tests__/file-upload.test.d.ts +1 -0
  132. package/dist/auth/web-utils/src/services/__tests__/register-sw.test.d.ts +1 -0
  133. package/dist/auth/web-utils/src/services/event-bus.d.ts +6 -0
  134. package/dist/auth/web-utils/src/services/file-upload.d.ts +60 -0
  135. package/dist/auth/web-utils/src/services/index.d.ts +3 -0
  136. package/dist/auth/web-utils/src/services/register-sw.d.ts +71 -0
  137. package/dist/auth/web-utils/src/types/chat.d.ts +1 -0
  138. package/dist/auth/web-utils/src/types/file-upload.d.ts +62 -0
  139. package/dist/auth/web-utils/src/types/index.d.ts +68 -0
  140. package/dist/auth/web-utils/src/types/subscription.d.ts +40 -0
  141. package/dist/auth/web-utils/src/utils/__tests__/auth.test.d.ts +1 -0
  142. package/dist/auth/web-utils/src/utils/__tests__/constants.test.d.ts +1 -0
  143. package/dist/auth/web-utils/src/utils/__tests__/helpers.test.d.ts +1 -0
  144. package/dist/auth/web-utils/src/utils/__tests__/platform.test.d.ts +1 -0
  145. package/dist/auth/web-utils/src/utils/__tests__/tauri-api-cache.test.d.ts +1 -0
  146. package/dist/auth/web-utils/src/utils/__tests__/tenant-switch.test.d.ts +1 -0
  147. package/dist/auth/web-utils/src/utils/constants.d.ts +69 -0
  148. package/dist/auth/web-utils/src/utils/data/__tests__/advanced-tab.test.d.ts +1 -0
  149. package/dist/auth/web-utils/src/utils/data/advanced-tab.d.ts +62 -0
  150. package/dist/auth/web-utils/src/utils/helpers.d.ts +33 -0
  151. package/dist/auth/web-utils/src/utils/index.d.ts +6 -0
  152. package/dist/auth/web-utils/src/utils/platform.d.ts +9 -0
  153. package/dist/auth/web-utils/src/utils/tauri-api-cache.d.ts +19 -0
  154. package/dist/index.esm.js +568 -262
  155. package/dist/index.esm.js.map +1 -1
  156. package/dist/index.js +581 -275
  157. package/dist/index.js.map +1 -1
  158. package/dist/package.json +1 -2
  159. package/dist/web-utils/src/hooks/chat/use-advanced-chat.d.ts +4 -4
  160. package/dist/web-utils/src/hooks/subscription-v2/use-subscription-handler.d.ts +3 -3
  161. package/dist/web-utils/src/hooks/tenant-metadata/use-tenant-metadata.d.ts +3 -3
  162. package/dist/web-utils/src/hooks/use-isomorphic-layout-effect.d.ts +2 -2
  163. package/dist/web-utils/src/hooks/use-mentor-settings.d.ts +21 -21
  164. package/dist/web-utils/src/hooks/use-user-agreement.d.ts +3 -6
  165. package/dist/web-utils/tsconfig.tsbuildinfo +1 -0
  166. package/package.json +1 -2
  167. package/dist/data-layer/src/config.d.ts +0 -8
  168. package/dist/data-layer/src/constants.d.ts +0 -31
  169. package/dist/data-layer/src/core/index.d.ts +0 -11
  170. package/dist/data-layer/src/features/analytics/api-slice.d.ts +0 -3756
  171. package/dist/data-layer/src/features/analytics/constants.d.ts +0 -133
  172. package/dist/data-layer/src/features/analytics/custom-api-slice.d.ts +0 -8
  173. package/dist/data-layer/src/features/analytics/types.d.ts +0 -696
  174. package/dist/data-layer/src/features/api-keys/api-slice.d.ts +0 -702
  175. package/dist/data-layer/src/features/apps/api-slice.d.ts +0 -720
  176. package/dist/data-layer/src/features/artifacts/api-slice.d.ts +0 -1798
  177. package/dist/data-layer/src/features/artifacts/constants.d.ts +0 -42
  178. package/dist/data-layer/src/features/artifacts/types.d.ts +0 -37
  179. package/dist/data-layer/src/features/audit-logs/api-slice.d.ts +0 -268
  180. package/dist/data-layer/src/features/audit-logs/constants.d.ts +0 -11
  181. package/dist/data-layer/src/features/audit-logs/types.d.ts +0 -32
  182. package/dist/data-layer/src/features/auth/api-slice.d.ts +0 -639
  183. package/dist/data-layer/src/features/auth/constants.d.ts +0 -20
  184. package/dist/data-layer/src/features/auth/types.d.ts +0 -33
  185. package/dist/data-layer/src/features/billing/api-slice.d.ts +0 -359
  186. package/dist/data-layer/src/features/billing/constants.d.ts +0 -16
  187. package/dist/data-layer/src/features/billing/custom-api-slice.d.ts +0 -634
  188. package/dist/data-layer/src/features/billing/types.d.ts +0 -36
  189. package/dist/data-layer/src/features/call-configurations/api-slice.d.ts +0 -855
  190. package/dist/data-layer/src/features/call-configurations/constants.d.ts +0 -16
  191. package/dist/data-layer/src/features/call-configurations/types.d.ts +0 -49
  192. package/dist/data-layer/src/features/career/api-slice.d.ts +0 -3080
  193. package/dist/data-layer/src/features/catalog/api-slice.d.ts +0 -10260
  194. package/dist/data-layer/src/features/chat/api-slice.d.ts +0 -1977
  195. package/dist/data-layer/src/features/chat/constants.d.ts +0 -8
  196. package/dist/data-layer/src/features/chat/custom-api-slice.d.ts +0 -272
  197. package/dist/data-layer/src/features/chat-files/api-slice.d.ts +0 -185
  198. package/dist/data-layer/src/features/chat-files/types.d.ts +0 -32
  199. package/dist/data-layer/src/features/chat-history/api-slice.d.ts +0 -1528
  200. package/dist/data-layer/src/features/chat-privacy/api-slice.d.ts +0 -1398
  201. package/dist/data-layer/src/features/chat-privacy/constants.d.ts +0 -13
  202. package/dist/data-layer/src/features/claw/api-slice.d.ts +0 -5471
  203. package/dist/data-layer/src/features/claw/constants.d.ts +0 -126
  204. package/dist/data-layer/src/features/claw/types.d.ts +0 -275
  205. package/dist/data-layer/src/features/constants.d.ts +0 -3
  206. package/dist/data-layer/src/features/core/api-slice.d.ts +0 -9045
  207. package/dist/data-layer/src/features/core/constants.d.ts +0 -51
  208. package/dist/data-layer/src/features/core/custom-api-slice.d.ts +0 -1766
  209. package/dist/data-layer/src/features/core/custom-public-image-asset-api-slice.d.ts +0 -373
  210. package/dist/data-layer/src/features/core/types.d.ts +0 -73
  211. package/dist/data-layer/src/features/course-metadata/api-slice.d.ts +0 -1728
  212. package/dist/data-layer/src/features/course-metadata/types.d.ts +0 -179
  213. package/dist/data-layer/src/features/courses/api-slice.d.ts +0 -664
  214. package/dist/data-layer/src/features/courses/types.d.ts +0 -26
  215. package/dist/data-layer/src/features/credentials/api-slice.d.ts +0 -6360
  216. package/dist/data-layer/src/features/credentials/constants.d.ts +0 -36
  217. package/dist/data-layer/src/features/credentials/custom-api-slice.d.ts +0 -1839
  218. package/dist/data-layer/src/features/credentials/types.d.ts +0 -39
  219. package/dist/data-layer/src/features/custom-domain/api-slice.d.ts +0 -602
  220. package/dist/data-layer/src/features/custom-domain/constants.d.ts +0 -20
  221. package/dist/data-layer/src/features/custom-domain/types.d.ts +0 -46
  222. package/dist/data-layer/src/features/datasets/api-slice.d.ts +0 -439
  223. package/dist/data-layer/src/features/disclaimers/api-slice.d.ts +0 -912
  224. package/dist/data-layer/src/features/disclaimers/constants.d.ts +0 -27
  225. package/dist/data-layer/src/features/disclaimers/types.d.ts +0 -67
  226. package/dist/data-layer/src/features/edx-proctoring/api-slice.d.ts +0 -590
  227. package/dist/data-layer/src/features/edx-proctoring/constants.d.ts +0 -15
  228. package/dist/data-layer/src/features/edx-proctoring/types.d.ts +0 -61
  229. package/dist/data-layer/src/features/edx-sso/api-slice.d.ts +0 -334
  230. package/dist/data-layer/src/features/edx-sso/types.d.ts +0 -10
  231. package/dist/data-layer/src/features/llms/api-slice.d.ts +0 -373
  232. package/dist/data-layer/src/features/mcp/api-slice.d.ts +0 -2613
  233. package/dist/data-layer/src/features/mcp/constants.d.ts +0 -57
  234. package/dist/data-layer/src/features/mcp/types.d.ts +0 -176
  235. package/dist/data-layer/src/features/memory/api-slice.d.ts +0 -3462
  236. package/dist/data-layer/src/features/memory/constants.d.ts +0 -80
  237. package/dist/data-layer/src/features/memory/types.d.ts +0 -190
  238. package/dist/data-layer/src/features/mentor/api-slice.d.ts +0 -7984
  239. package/dist/data-layer/src/features/mentor/constants.d.ts +0 -45
  240. package/dist/data-layer/src/features/mentor/custom-api-slice.d.ts +0 -957
  241. package/dist/data-layer/src/features/mentor/privacy.d.ts +0 -61
  242. package/dist/data-layer/src/features/mentor/types.d.ts +0 -83
  243. package/dist/data-layer/src/features/mentor-categories/api-slice.d.ts +0 -785
  244. package/dist/data-layer/src/features/moderation-logs/api-slice.d.ts +0 -705
  245. package/dist/data-layer/src/features/monetization/constants.d.ts +0 -76
  246. package/dist/data-layer/src/features/monetization/custom-api-slice.d.ts +0 -5178
  247. package/dist/data-layer/src/features/monetization/types.d.ts +0 -229
  248. package/dist/data-layer/src/features/notifications/api-slice.d.ts +0 -1728
  249. package/dist/data-layer/src/features/notifications/constants.d.ts +0 -26
  250. package/dist/data-layer/src/features/notifications/custom-api-slice.d.ts +0 -996
  251. package/dist/data-layer/src/features/notifications/types.d.ts +0 -69
  252. package/dist/data-layer/src/features/per-learner/api-slice.d.ts +0 -1329
  253. package/dist/data-layer/src/features/periodic-agents/api-slice.d.ts +0 -2347
  254. package/dist/data-layer/src/features/platform/api-slice.d.ts +0 -2553
  255. package/dist/data-layer/src/features/platform/constants.d.ts +0 -17
  256. package/dist/data-layer/src/features/platform/custom-api-slice.d.ts +0 -493
  257. package/dist/data-layer/src/features/platform/types.d.ts +0 -61
  258. package/dist/data-layer/src/features/projects/api-slice.d.ts +0 -2026
  259. package/dist/data-layer/src/features/projects/constants.d.ts +0 -51
  260. package/dist/data-layer/src/features/projects/types.d.ts +0 -79
  261. package/dist/data-layer/src/features/prompts/api-slice.d.ts +0 -2464
  262. package/dist/data-layer/src/features/reports/api-slice.d.ts +0 -789
  263. package/dist/data-layer/src/features/retirement/api-slice.d.ts +0 -165
  264. package/dist/data-layer/src/features/retirement/constants.d.ts +0 -7
  265. package/dist/data-layer/src/features/retirement/types.d.ts +0 -3
  266. package/dist/data-layer/src/features/search/ai-search-api-slice.d.ts +0 -1413
  267. package/dist/data-layer/src/features/search/api-slice.d.ts +0 -2017
  268. package/dist/data-layer/src/features/search/constants.d.ts +0 -41
  269. package/dist/data-layer/src/features/search/types.d.ts +0 -161
  270. package/dist/data-layer/src/features/sessions/api-slice.d.ts +0 -969
  271. package/dist/data-layer/src/features/sessions/constants.d.ts +0 -3
  272. package/dist/data-layer/src/features/sessions/url.d.ts +0 -9
  273. package/dist/data-layer/src/features/skills/api-slice.d.ts +0 -1389
  274. package/dist/data-layer/src/features/stripe/api-slice.d.ts +0 -803
  275. package/dist/data-layer/src/features/stripe/constants.d.ts +0 -19
  276. package/dist/data-layer/src/features/stripe/types.d.ts +0 -19
  277. package/dist/data-layer/src/features/tenant/api-slice.d.ts +0 -832
  278. package/dist/data-layer/src/features/tenant/constants.d.ts +0 -11
  279. package/dist/data-layer/src/features/tenant/types.d.ts +0 -19
  280. package/dist/data-layer/src/features/tenant-logo/api-slice.d.ts +0 -349
  281. package/dist/data-layer/src/features/tenant-logo/constants.d.ts +0 -24
  282. package/dist/data-layer/src/features/tools/api-slice.d.ts +0 -417
  283. package/dist/data-layer/src/features/training-documents/api-slice.d.ts +0 -1523
  284. package/dist/data-layer/src/features/user/api-slice.d.ts +0 -2128
  285. package/dist/data-layer/src/features/user/constants.d.ts +0 -47
  286. package/dist/data-layer/src/features/user/types.d.ts +0 -134
  287. package/dist/data-layer/src/features/user-invitations/api-slice.d.ts +0 -762
  288. package/dist/data-layer/src/features/utils.d.ts +0 -94
  289. package/dist/data-layer/src/features/watched-groups/api-slice.d.ts +0 -2481
  290. package/dist/data-layer/src/features/watched-groups/constants.d.ts +0 -66
  291. package/dist/data-layer/src/features/watched-groups/types.d.ts +0 -143
  292. package/dist/data-layer/src/features/workflows/api-slice.d.ts +0 -2454
  293. package/dist/data-layer/src/features/workflows/constants.d.ts +0 -57
  294. package/dist/data-layer/src/features/workflows/types.d.ts +0 -130
  295. package/dist/data-layer/src/index.d.ts +0 -121
  296. package/dist/data-layer/src/reducers/index.d.ts +0 -2
  297. package/dist/data-layer/src/reducers/mentor.d.ts +0 -2
  298. package/dist/data-layer/src/reducers/skills.d.ts +0 -2
  299. package/dist/data-layer/src/services/StorageService.d.ts +0 -5
  300. package/dist/data-layer/src/utils/index.d.ts +0 -6
package/dist/index.esm.js CHANGED
@@ -10387,7 +10387,7 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
10387
10387
  * Returns the mentor object if found, undefined otherwise
10388
10388
  */
10389
10389
  async function determineMentorToRedirectTo() {
10390
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
10390
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
10391
10391
  setIsLoading(true);
10392
10392
  try {
10393
10393
  // Get the user's recent mentors
@@ -10422,9 +10422,9 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
10422
10422
  console.log("[determineMentorToRedirectTo] starredMentors ", starredMentors);
10423
10423
  if (starredMentors && starredMentors.length > 0) {
10424
10424
  const starredMentor = starredMentors[0];
10425
- // @ts-expect-error - mentor is not part of the starred mentor object
10426
- if ((starredMentor === null || starredMentor === void 0 ? void 0 : starredMentor.unique_id) || (starredMentor === null || starredMentor === void 0 ? void 0 : starredMentor.mentor)) {
10427
- return starredMentor;
10425
+ const uniqueId = (_a = starredMentor === null || starredMentor === void 0 ? void 0 : starredMentor.unique_id) !== null && _a !== void 0 ? _a : starredMentor === null || starredMentor === void 0 ? void 0 : starredMentor.mentor;
10426
+ if (uniqueId) {
10427
+ return { ...starredMentor, unique_id: uniqueId };
10428
10428
  }
10429
10429
  }
10430
10430
  console.log("[determineMentorToRedirectTo] recentMentors ", recentMentors);
@@ -10441,12 +10441,12 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
10441
10441
  orderBy: "recently_accessed_at",
10442
10442
  });
10443
10443
  console.log("[determineMentorToRedirectTo] recentMentorsResult ", recentMentorsResult);
10444
- recentMentors = ((_a = recentMentorsResult.data) === null || _a === void 0 ? void 0 : _a.results) || [];
10444
+ recentMentors = ((_b = recentMentorsResult.data) === null || _b === void 0 ? void 0 : _b.results) || [];
10445
10445
  // Check if we found recent mentors for the tenant
10446
10446
  if (recentMentors.length > 0) {
10447
10447
  console.log("found recent mentor", JSON.stringify({
10448
- selectedMentorId: (_b = recentMentors[0]) === null || _b === void 0 ? void 0 : _b.unique_id,
10449
- mentorName: (_c = recentMentors[0]) === null || _c === void 0 ? void 0 : _c.name,
10448
+ selectedMentorId: (_c = recentMentors[0]) === null || _c === void 0 ? void 0 : _c.unique_id,
10449
+ mentorName: (_d = recentMentors[0]) === null || _d === void 0 ? void 0 : _d.name,
10450
10450
  tenantKey,
10451
10451
  }));
10452
10452
  return recentMentors[0];
@@ -10462,7 +10462,7 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
10462
10462
  limit: QUERY_LIMIT,
10463
10463
  orderBy: "recently_accessed_at",
10464
10464
  });
10465
- const featuredMentors = ((_d = featuredMentorsResult.data) === null || _d === void 0 ? void 0 : _d.results) || [];
10465
+ const featuredMentors = ((_e = featuredMentorsResult.data) === null || _e === void 0 ? void 0 : _e.results) || [];
10466
10466
  console.log("featured mentors fetched", {
10467
10467
  count: featuredMentors.length,
10468
10468
  mentorIds: featuredMentors.map((m) => m === null || m === void 0 ? void 0 : m.unique_id),
@@ -10506,8 +10506,8 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
10506
10506
  }
10507
10507
  // If no default mentor, select the first featured mentor
10508
10508
  console.log("found first featured mentor", {
10509
- mentorId: (_e = featuredMentors[0]) === null || _e === void 0 ? void 0 : _e.unique_id,
10510
- mentorName: (_f = featuredMentors[0]) === null || _f === void 0 ? void 0 : _f.name,
10509
+ mentorId: (_f = featuredMentors[0]) === null || _f === void 0 ? void 0 : _f.unique_id,
10510
+ mentorName: (_g = featuredMentors[0]) === null || _g === void 0 ? void 0 : _g.name,
10511
10511
  });
10512
10512
  return featuredMentors[0];
10513
10513
  }
@@ -10522,7 +10522,7 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
10522
10522
  limit: QUERY_LIMIT,
10523
10523
  orderBy: "recently_accessed_at",
10524
10524
  });
10525
- const nonFeaturedMentors = ((_g = nonFeaturedMentorsResult.data) === null || _g === void 0 ? void 0 : _g.results) || [];
10525
+ const nonFeaturedMentors = ((_h = nonFeaturedMentorsResult.data) === null || _h === void 0 ? void 0 : _h.results) || [];
10526
10526
  console.log("non-featured mentors fetched", {
10527
10527
  count: nonFeaturedMentors.length,
10528
10528
  mentorIds: nonFeaturedMentors.map((m) => m === null || m === void 0 ? void 0 : m.unique_id),
@@ -10530,8 +10530,8 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
10530
10530
  // Check if we found non-featured mentors
10531
10531
  if (nonFeaturedMentors.length > 0) {
10532
10532
  console.log("found first non-featured mentor", {
10533
- mentorId: (_h = nonFeaturedMentors[0]) === null || _h === void 0 ? void 0 : _h.unique_id,
10534
- mentorName: (_j = nonFeaturedMentors[0]) === null || _j === void 0 ? void 0 : _j.name,
10533
+ mentorId: (_j = nonFeaturedMentors[0]) === null || _j === void 0 ? void 0 : _j.unique_id,
10534
+ mentorName: (_k = nonFeaturedMentors[0]) === null || _k === void 0 ? void 0 : _k.name,
10535
10535
  });
10536
10536
  return nonFeaturedMentors[0];
10537
10537
  }
@@ -10552,7 +10552,7 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
10552
10552
  // @ts-expect-error - userId is passed but not in generated API types
10553
10553
  userId: username,
10554
10554
  });
10555
- const seededMentorsDetails = (_k = seedMentorsResult.data) === null || _k === void 0 ? void 0 : _k.detail;
10555
+ const seededMentorsDetails = (_l = seedMentorsResult.data) === null || _l === void 0 ? void 0 : _l.detail;
10556
10556
  console.log("mentor seeding completed", {
10557
10557
  success: !!seededMentorsDetails,
10558
10558
  details: seededMentorsDetails,
@@ -10566,15 +10566,15 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
10566
10566
  username,
10567
10567
  limit: QUERY_LIMIT,
10568
10568
  });
10569
- const featuredMentorsAfterSeed = ((_l = featuredMentorsAfterSeedResult.data) === null || _l === void 0 ? void 0 : _l.results) || [];
10569
+ const featuredMentorsAfterSeed = ((_m = featuredMentorsAfterSeedResult.data) === null || _m === void 0 ? void 0 : _m.results) || [];
10570
10570
  console.log("featured mentors after seeding", {
10571
10571
  count: featuredMentorsAfterSeed.length,
10572
10572
  mentorIds: featuredMentorsAfterSeed.map((m) => m === null || m === void 0 ? void 0 : m.unique_id),
10573
10573
  });
10574
10574
  if (featuredMentorsAfterSeed.length > 0) {
10575
10575
  console.log("found seeded mentor", {
10576
- mentorId: (_m = featuredMentorsAfterSeed[0]) === null || _m === void 0 ? void 0 : _m.unique_id,
10577
- mentorName: (_o = featuredMentorsAfterSeed[0]) === null || _o === void 0 ? void 0 : _o.name,
10576
+ mentorId: (_o = featuredMentorsAfterSeed[0]) === null || _o === void 0 ? void 0 : _o.unique_id,
10577
+ mentorName: (_p = featuredMentorsAfterSeed[0]) === null || _p === void 0 ? void 0 : _p.name,
10578
10578
  });
10579
10579
  return featuredMentorsAfterSeed[0];
10580
10580
  }
@@ -15825,6 +15825,9 @@ function requireDynamicRenderingUtils () {
15825
15825
  isHangingPromiseRejectionError: function() {
15826
15826
  return isHangingPromiseRejectionError;
15827
15827
  },
15828
+ makeDevtoolsIOAwarePromise: function() {
15829
+ return makeDevtoolsIOAwarePromise;
15830
+ },
15828
15831
  makeHangingPromise: function() {
15829
15832
  return makeHangingPromise;
15830
15833
  }
@@ -15837,17 +15840,17 @@ function requireDynamicRenderingUtils () {
15837
15840
  }
15838
15841
  const HANGING_PROMISE_REJECTION = 'HANGING_PROMISE_REJECTION';
15839
15842
  class HangingPromiseRejectionError extends Error {
15840
- constructor(expression){
15841
- super(`During prerendering, ${expression} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${expression} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context.`), this.expression = expression, this.digest = HANGING_PROMISE_REJECTION;
15843
+ constructor(route, expression){
15844
+ super(`During prerendering, ${expression} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${expression} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${route}".`), this.route = route, this.expression = expression, this.digest = HANGING_PROMISE_REJECTION;
15842
15845
  }
15843
15846
  }
15844
15847
  const abortListenersBySignal = new WeakMap();
15845
- function makeHangingPromise(signal, expression) {
15848
+ function makeHangingPromise(signal, route, expression) {
15846
15849
  if (signal.aborted) {
15847
- return Promise.reject(new HangingPromiseRejectionError(expression));
15850
+ return Promise.reject(new HangingPromiseRejectionError(route, expression));
15848
15851
  } else {
15849
15852
  const hangingPromise = new Promise((_, reject)=>{
15850
- const boundRejection = reject.bind(null, new HangingPromiseRejectionError(expression));
15853
+ const boundRejection = reject.bind(null, new HangingPromiseRejectionError(route, expression));
15851
15854
  let currentListeners = abortListenersBySignal.get(signal);
15852
15855
  if (currentListeners) {
15853
15856
  currentListeners.push(boundRejection);
@@ -15873,6 +15876,16 @@ function requireDynamicRenderingUtils () {
15873
15876
  }
15874
15877
  }
15875
15878
  function ignoreReject() {}
15879
+ function makeDevtoolsIOAwarePromise(underlying) {
15880
+ // in React DevTools if we resolve in a setTimeout we will observe
15881
+ // the promise resolution as something that can suspend a boundary or root.
15882
+ return new Promise((resolve)=>{
15883
+ // Must use setTimeout to be considered IO React DevTools. setImmediate will not work.
15884
+ setTimeout(()=>{
15885
+ resolve(underlying);
15886
+ }, 0);
15887
+ });
15888
+ }
15876
15889
 
15877
15890
 
15878
15891
  } (dynamicRenderingUtils));
@@ -16134,6 +16147,9 @@ function requireAppRouterHeaders () {
16134
16147
  FLIGHT_HEADERS: function() {
16135
16148
  return FLIGHT_HEADERS;
16136
16149
  },
16150
+ NEXT_ACTION_NOT_FOUND_HEADER: function() {
16151
+ return NEXT_ACTION_NOT_FOUND_HEADER;
16152
+ },
16137
16153
  NEXT_DID_POSTPONE_HEADER: function() {
16138
16154
  return NEXT_DID_POSTPONE_HEADER;
16139
16155
  },
@@ -16177,14 +16193,14 @@ function requireAppRouterHeaders () {
16177
16193
  return RSC_HEADER;
16178
16194
  }
16179
16195
  });
16180
- const RSC_HEADER = 'RSC';
16181
- const ACTION_HEADER = 'Next-Action';
16182
- const NEXT_ROUTER_STATE_TREE_HEADER = 'Next-Router-State-Tree';
16183
- const NEXT_ROUTER_PREFETCH_HEADER = 'Next-Router-Prefetch';
16184
- const NEXT_ROUTER_SEGMENT_PREFETCH_HEADER = 'Next-Router-Segment-Prefetch';
16185
- const NEXT_HMR_REFRESH_HEADER = 'Next-HMR-Refresh';
16196
+ const RSC_HEADER = 'rsc';
16197
+ const ACTION_HEADER = 'next-action';
16198
+ const NEXT_ROUTER_STATE_TREE_HEADER = 'next-router-state-tree';
16199
+ const NEXT_ROUTER_PREFETCH_HEADER = 'next-router-prefetch';
16200
+ const NEXT_ROUTER_SEGMENT_PREFETCH_HEADER = 'next-router-segment-prefetch';
16201
+ const NEXT_HMR_REFRESH_HEADER = 'next-hmr-refresh';
16186
16202
  const NEXT_HMR_REFRESH_HASH_COOKIE = '__next_hmr_refresh_hash__';
16187
- const NEXT_URL = 'Next-Url';
16203
+ const NEXT_URL = 'next-url';
16188
16204
  const RSC_CONTENT_TYPE_HEADER = 'text/x-component';
16189
16205
  const FLIGHT_HEADERS = [
16190
16206
  RSC_HEADER,
@@ -16199,6 +16215,7 @@ function requireAppRouterHeaders () {
16199
16215
  const NEXT_REWRITTEN_PATH_HEADER = 'x-nextjs-rewritten-path';
16200
16216
  const NEXT_REWRITTEN_QUERY_HEADER = 'x-nextjs-rewritten-query';
16201
16217
  const NEXT_IS_PRERENDER_HEADER = 'x-nextjs-prerender';
16218
+ const NEXT_ACTION_NOT_FOUND_HEADER = 'x-nextjs-action-not-found';
16202
16219
 
16203
16220
  if ((typeof exports$1.default === 'function' || (typeof exports$1.default === 'object' && exports$1.default !== null)) && typeof exports$1.default.__esModule === 'undefined') {
16204
16221
  Object.defineProperty(exports$1.default, '__esModule', { value: true });
@@ -16211,6 +16228,35 @@ function requireAppRouterHeaders () {
16211
16228
  return appRouterHeaders.exports;
16212
16229
  }
16213
16230
 
16231
+ var invariantError = {};
16232
+
16233
+ var hasRequiredInvariantError;
16234
+
16235
+ function requireInvariantError () {
16236
+ if (hasRequiredInvariantError) return invariantError;
16237
+ hasRequiredInvariantError = 1;
16238
+ (function (exports$1) {
16239
+ Object.defineProperty(exports$1, "__esModule", {
16240
+ value: true
16241
+ });
16242
+ Object.defineProperty(exports$1, "InvariantError", {
16243
+ enumerable: true,
16244
+ get: function() {
16245
+ return InvariantError;
16246
+ }
16247
+ });
16248
+ class InvariantError extends Error {
16249
+ constructor(message, options){
16250
+ super("Invariant: " + (message.endsWith('.') ? message : message + '.') + " This is a bug in Next.js.", options);
16251
+ this.name = 'InvariantError';
16252
+ }
16253
+ }
16254
+
16255
+
16256
+ } (invariantError));
16257
+ return invariantError;
16258
+ }
16259
+
16214
16260
  var hasRequiredWorkUnitAsyncStorage_external;
16215
16261
 
16216
16262
  function requireWorkUnitAsyncStorage_external () {
@@ -16227,12 +16273,12 @@ function requireWorkUnitAsyncStorage_external () {
16227
16273
  });
16228
16274
  }
16229
16275
  _export(exports$1, {
16276
+ getCacheSignal: function() {
16277
+ return getCacheSignal;
16278
+ },
16230
16279
  getDraftModeProviderForCacheScope: function() {
16231
16280
  return getDraftModeProviderForCacheScope;
16232
16281
  },
16233
- getExpectedRequestStore: function() {
16234
- return getExpectedRequestStore;
16235
- },
16236
16282
  getHmrRefreshHash: function() {
16237
16283
  return getHmrRefreshHash;
16238
16284
  },
@@ -16242,49 +16288,28 @@ function requireWorkUnitAsyncStorage_external () {
16242
16288
  getRenderResumeDataCache: function() {
16243
16289
  return getRenderResumeDataCache;
16244
16290
  },
16291
+ getRuntimeStagePromise: function() {
16292
+ return getRuntimeStagePromise;
16293
+ },
16294
+ getServerComponentsHmrCache: function() {
16295
+ return getServerComponentsHmrCache;
16296
+ },
16297
+ isHmrRefresh: function() {
16298
+ return isHmrRefresh;
16299
+ },
16245
16300
  throwForMissingRequestStore: function() {
16246
16301
  return throwForMissingRequestStore;
16247
16302
  },
16303
+ throwInvariantForMissingStore: function() {
16304
+ return throwInvariantForMissingStore;
16305
+ },
16248
16306
  workUnitAsyncStorage: function() {
16249
16307
  return _workunitasyncstorageinstance.workUnitAsyncStorageInstance;
16250
16308
  }
16251
16309
  });
16252
16310
  const _workunitasyncstorageinstance = requireWorkUnitAsyncStorageInstance();
16253
16311
  const _approuterheaders = requireAppRouterHeaders();
16254
- function getExpectedRequestStore(callingExpression) {
16255
- const workUnitStore = _workunitasyncstorageinstance.workUnitAsyncStorageInstance.getStore();
16256
- if (!workUnitStore) {
16257
- throwForMissingRequestStore(callingExpression);
16258
- }
16259
- switch(workUnitStore.type){
16260
- case 'request':
16261
- return workUnitStore;
16262
- case 'prerender':
16263
- case 'prerender-ppr':
16264
- case 'prerender-legacy':
16265
- // This should not happen because we should have checked it already.
16266
- throw Object.defineProperty(new Error(`\`${callingExpression}\` cannot be called inside a prerender. This is a bug in Next.js.`), "__NEXT_ERROR_CODE", {
16267
- value: "E401",
16268
- enumerable: false,
16269
- configurable: true
16270
- });
16271
- case 'cache':
16272
- throw Object.defineProperty(new Error(`\`${callingExpression}\` cannot be called inside "use cache". Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
16273
- value: "E37",
16274
- enumerable: false,
16275
- configurable: true
16276
- });
16277
- case 'unstable-cache':
16278
- throw Object.defineProperty(new Error(`\`${callingExpression}\` cannot be called inside unstable_cache. Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
16279
- value: "E69",
16280
- enumerable: false,
16281
- configurable: true
16282
- });
16283
- default:
16284
- const _exhaustiveCheck = workUnitStore;
16285
- return _exhaustiveCheck;
16286
- }
16287
- }
16312
+ const _invarianterror = requireInvariantError();
16288
16313
  function throwForMissingRequestStore(callingExpression) {
16289
16314
  throw Object.defineProperty(new Error(`\`${callingExpression}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
16290
16315
  value: "E251",
@@ -16292,43 +16317,143 @@ function requireWorkUnitAsyncStorage_external () {
16292
16317
  configurable: true
16293
16318
  });
16294
16319
  }
16320
+ function throwInvariantForMissingStore() {
16321
+ throw Object.defineProperty(new _invarianterror.InvariantError('Expected workUnitAsyncStorage to have a store.'), "__NEXT_ERROR_CODE", {
16322
+ value: "E696",
16323
+ enumerable: false,
16324
+ configurable: true
16325
+ });
16326
+ }
16295
16327
  function getPrerenderResumeDataCache(workUnitStore) {
16296
- if (workUnitStore.type === 'prerender' || workUnitStore.type === 'prerender-ppr') {
16297
- return workUnitStore.prerenderResumeDataCache;
16328
+ switch(workUnitStore.type){
16329
+ case 'prerender':
16330
+ case 'prerender-runtime':
16331
+ case 'prerender-ppr':
16332
+ return workUnitStore.prerenderResumeDataCache;
16333
+ case 'prerender-client':
16334
+ // TODO eliminate fetch caching in client scope and stop exposing this data
16335
+ // cache during SSR.
16336
+ return workUnitStore.prerenderResumeDataCache;
16337
+ case 'prerender-legacy':
16338
+ case 'request':
16339
+ case 'cache':
16340
+ case 'private-cache':
16341
+ case 'unstable-cache':
16342
+ return null;
16343
+ default:
16344
+ return workUnitStore;
16298
16345
  }
16299
- return null;
16300
16346
  }
16301
16347
  function getRenderResumeDataCache(workUnitStore) {
16302
- if (workUnitStore.type !== 'prerender-legacy' && workUnitStore.type !== 'cache' && workUnitStore.type !== 'unstable-cache') {
16303
- if (workUnitStore.type === 'request') {
16348
+ switch(workUnitStore.type){
16349
+ case 'request':
16304
16350
  return workUnitStore.renderResumeDataCache;
16305
- }
16306
- // We return the mutable resume data cache here as an immutable version of
16307
- // the cache as it can also be used for reading.
16308
- return workUnitStore.prerenderResumeDataCache;
16351
+ case 'prerender':
16352
+ case 'prerender-runtime':
16353
+ case 'prerender-client':
16354
+ if (workUnitStore.renderResumeDataCache) {
16355
+ // If we are in a prerender, we might have a render resume data cache
16356
+ // that is used to read from prefilled caches.
16357
+ return workUnitStore.renderResumeDataCache;
16358
+ }
16359
+ // fallthrough
16360
+ case 'prerender-ppr':
16361
+ // Otherwise we return the mutable resume data cache here as an immutable
16362
+ // version of the cache as it can also be used for reading.
16363
+ return workUnitStore.prerenderResumeDataCache;
16364
+ case 'cache':
16365
+ case 'private-cache':
16366
+ case 'unstable-cache':
16367
+ case 'prerender-legacy':
16368
+ return null;
16369
+ default:
16370
+ return workUnitStore;
16309
16371
  }
16310
- return null;
16311
16372
  }
16312
16373
  function getHmrRefreshHash(workStore, workUnitStore) {
16313
- var _workUnitStore_cookies_get;
16314
- if (!workStore.dev) {
16315
- return undefined;
16374
+ if (workStore.dev) {
16375
+ switch(workUnitStore.type){
16376
+ case 'cache':
16377
+ case 'private-cache':
16378
+ case 'prerender':
16379
+ case 'prerender-runtime':
16380
+ return workUnitStore.hmrRefreshHash;
16381
+ case 'request':
16382
+ var _workUnitStore_cookies_get;
16383
+ return (_workUnitStore_cookies_get = workUnitStore.cookies.get(_approuterheaders.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : _workUnitStore_cookies_get.value;
16384
+ }
16385
+ }
16386
+ return undefined;
16387
+ }
16388
+ function isHmrRefresh(workStore, workUnitStore) {
16389
+ if (workStore.dev) {
16390
+ switch(workUnitStore.type){
16391
+ case 'cache':
16392
+ case 'private-cache':
16393
+ case 'request':
16394
+ return workUnitStore.isHmrRefresh ?? false;
16395
+ }
16396
+ }
16397
+ return false;
16398
+ }
16399
+ function getServerComponentsHmrCache(workStore, workUnitStore) {
16400
+ if (workStore.dev) {
16401
+ switch(workUnitStore.type){
16402
+ case 'cache':
16403
+ case 'private-cache':
16404
+ case 'request':
16405
+ return workUnitStore.serverComponentsHmrCache;
16406
+ }
16316
16407
  }
16317
- return workUnitStore.type === 'cache' || workUnitStore.type === 'prerender' ? workUnitStore.hmrRefreshHash : workUnitStore.type === 'request' ? (_workUnitStore_cookies_get = workUnitStore.cookies.get(_approuterheaders.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : _workUnitStore_cookies_get.value : undefined;
16408
+ return undefined;
16318
16409
  }
16319
16410
  function getDraftModeProviderForCacheScope(workStore, workUnitStore) {
16320
16411
  if (workStore.isDraftMode) {
16321
16412
  switch(workUnitStore.type){
16322
16413
  case 'cache':
16414
+ case 'private-cache':
16323
16415
  case 'unstable-cache':
16416
+ case 'prerender-runtime':
16324
16417
  case 'request':
16325
16418
  return workUnitStore.draftMode;
16326
- default:
16327
- return undefined;
16328
16419
  }
16329
16420
  }
16330
16421
  return undefined;
16331
16422
  }
16423
+ function getCacheSignal(workUnitStore) {
16424
+ switch(workUnitStore.type){
16425
+ case 'prerender':
16426
+ case 'prerender-client':
16427
+ case 'prerender-runtime':
16428
+ return workUnitStore.cacheSignal;
16429
+ case 'prerender-ppr':
16430
+ case 'prerender-legacy':
16431
+ case 'request':
16432
+ case 'cache':
16433
+ case 'private-cache':
16434
+ case 'unstable-cache':
16435
+ return null;
16436
+ default:
16437
+ return workUnitStore;
16438
+ }
16439
+ }
16440
+ function getRuntimeStagePromise(workUnitStore) {
16441
+ switch(workUnitStore.type){
16442
+ case 'prerender-runtime':
16443
+ case 'private-cache':
16444
+ return workUnitStore.runtimeStagePromise;
16445
+ case 'prerender':
16446
+ case 'prerender-client':
16447
+ case 'prerender-ppr':
16448
+ case 'prerender-legacy':
16449
+ case 'request':
16450
+ case 'cache':
16451
+ case 'unstable-cache':
16452
+ return null;
16453
+ default:
16454
+ return workUnitStore;
16455
+ }
16456
+ }
16332
16457
 
16333
16458
 
16334
16459
  } (workUnitAsyncStorage_external));
@@ -16384,13 +16509,13 @@ function requireWorkAsyncStorage_external () {
16384
16509
  return workAsyncStorage_external;
16385
16510
  }
16386
16511
 
16387
- var metadataConstants = {};
16512
+ var boundaryConstants = {};
16388
16513
 
16389
- var hasRequiredMetadataConstants;
16514
+ var hasRequiredBoundaryConstants;
16390
16515
 
16391
- function requireMetadataConstants () {
16392
- if (hasRequiredMetadataConstants) return metadataConstants;
16393
- hasRequiredMetadataConstants = 1;
16516
+ function requireBoundaryConstants () {
16517
+ if (hasRequiredBoundaryConstants) return boundaryConstants;
16518
+ hasRequiredBoundaryConstants = 1;
16394
16519
  (function (exports$1) {
16395
16520
  Object.defineProperty(exports$1, "__esModule", {
16396
16521
  value: true
@@ -16408,6 +16533,9 @@ function requireMetadataConstants () {
16408
16533
  OUTLET_BOUNDARY_NAME: function() {
16409
16534
  return OUTLET_BOUNDARY_NAME;
16410
16535
  },
16536
+ ROOT_LAYOUT_BOUNDARY_NAME: function() {
16537
+ return ROOT_LAYOUT_BOUNDARY_NAME;
16538
+ },
16411
16539
  VIEWPORT_BOUNDARY_NAME: function() {
16412
16540
  return VIEWPORT_BOUNDARY_NAME;
16413
16541
  }
@@ -16415,10 +16543,11 @@ function requireMetadataConstants () {
16415
16543
  const METADATA_BOUNDARY_NAME = '__next_metadata_boundary__';
16416
16544
  const VIEWPORT_BOUNDARY_NAME = '__next_viewport_boundary__';
16417
16545
  const OUTLET_BOUNDARY_NAME = '__next_outlet_boundary__';
16546
+ const ROOT_LAYOUT_BOUNDARY_NAME = '__next_root_layout_boundary__';
16418
16547
 
16419
16548
 
16420
- } (metadataConstants));
16421
- return metadataConstants;
16549
+ } (boundaryConstants));
16550
+ return boundaryConstants;
16422
16551
  }
16423
16552
 
16424
16553
  var scheduler = {};
@@ -16531,6 +16660,9 @@ function requireDynamicRendering () {
16531
16660
  Postpone: function() {
16532
16661
  return Postpone;
16533
16662
  },
16663
+ PreludeState: function() {
16664
+ return PreludeState;
16665
+ },
16534
16666
  abortAndThrowOnSynchronousRequestDataAccess: function() {
16535
16667
  return abortAndThrowOnSynchronousRequestDataAccess;
16536
16668
  },
@@ -16555,8 +16687,11 @@ function requireDynamicRendering () {
16555
16687
  createHangingInputAbortSignal: function() {
16556
16688
  return createHangingInputAbortSignal;
16557
16689
  },
16558
- createPostponedAbortSignal: function() {
16559
- return createPostponedAbortSignal;
16690
+ createRenderInBrowserAbortSignal: function() {
16691
+ return createRenderInBrowserAbortSignal;
16692
+ },
16693
+ delayUntilRuntimeStage: function() {
16694
+ return delayUntilRuntimeStage;
16560
16695
  },
16561
16696
  formatDynamicAPIAccesses: function() {
16562
16697
  return formatDynamicAPIAccesses;
@@ -16570,6 +16705,9 @@ function requireDynamicRendering () {
16570
16705
  isPrerenderInterruptedError: function() {
16571
16706
  return isPrerenderInterruptedError;
16572
16707
  },
16708
+ logDisallowedDynamicError: function() {
16709
+ return logDisallowedDynamicError;
16710
+ },
16573
16711
  markCurrentScopeAsDynamic: function() {
16574
16712
  return markCurrentScopeAsDynamic;
16575
16713
  },
@@ -16588,9 +16726,6 @@ function requireDynamicRendering () {
16588
16726
  trackDynamicDataInDynamicRender: function() {
16589
16727
  return trackDynamicDataInDynamicRender;
16590
16728
  },
16591
- trackFallbackParamAccessed: function() {
16592
- return trackFallbackParamAccessed;
16593
- },
16594
16729
  trackSynchronousPlatformIOAccessInDev: function() {
16595
16730
  return trackSynchronousPlatformIOAccessInDev;
16596
16731
  },
@@ -16599,6 +16734,9 @@ function requireDynamicRendering () {
16599
16734
  },
16600
16735
  useDynamicRouteParams: function() {
16601
16736
  return useDynamicRouteParams;
16737
+ },
16738
+ warnOnSyncDynamicError: function() {
16739
+ return warnOnSyncDynamicError;
16602
16740
  }
16603
16741
  });
16604
16742
  const _react = /*#__PURE__*/ _interop_require_default(React__default);
@@ -16607,8 +16745,10 @@ function requireDynamicRendering () {
16607
16745
  const _workunitasyncstorageexternal = requireWorkUnitAsyncStorage_external();
16608
16746
  const _workasyncstorageexternal = requireWorkAsyncStorage_external();
16609
16747
  const _dynamicrenderingutils = requireDynamicRenderingUtils();
16610
- const _metadataconstants = requireMetadataConstants();
16748
+ const _boundaryconstants = requireBoundaryConstants();
16611
16749
  const _scheduler = requireScheduler();
16750
+ const _bailouttocsr = requireBailoutToCsr();
16751
+ const _invarianterror = requireInvariantError();
16612
16752
  function _interop_require_default(obj) {
16613
16753
  return obj && obj.__esModule ? obj : {
16614
16754
  default: obj
@@ -16619,16 +16759,15 @@ function requireDynamicRendering () {
16619
16759
  return {
16620
16760
  isDebugDynamicAccesses,
16621
16761
  dynamicAccesses: [],
16622
- syncDynamicExpression: undefined,
16623
16762
  syncDynamicErrorWithStack: null
16624
16763
  };
16625
16764
  }
16626
16765
  function createDynamicValidationState() {
16627
16766
  return {
16628
- hasSuspendedDynamic: false,
16767
+ hasSuspenseAboveBody: false,
16629
16768
  hasDynamicMetadata: false,
16630
16769
  hasDynamicViewport: false,
16631
- hasSyncDynamicErrors: false,
16770
+ hasAllowedDynamic: false,
16632
16771
  dynamicErrors: []
16633
16772
  };
16634
16773
  }
@@ -16638,11 +16777,17 @@ function requireDynamicRendering () {
16638
16777
  }
16639
16778
  function markCurrentScopeAsDynamic(store, workUnitStore, expression) {
16640
16779
  if (workUnitStore) {
16641
- if (workUnitStore.type === 'cache' || workUnitStore.type === 'unstable-cache') {
16642
- // inside cache scopes marking a scope as dynamic has no effect because the outer cache scope
16643
- // creates a cache boundary. This is subtly different from reading a dynamic data source which is
16644
- // forbidden inside a cache scope.
16645
- return;
16780
+ switch(workUnitStore.type){
16781
+ case 'cache':
16782
+ case 'unstable-cache':
16783
+ // Inside cache scopes, marking a scope as dynamic has no effect,
16784
+ // because the outer cache scope creates a cache boundary. This is
16785
+ // subtly different from reading a dynamic data source, which is
16786
+ // forbidden inside a cache scope.
16787
+ return;
16788
+ case 'private-cache':
16789
+ // A private cache scope is already dynamic by definition.
16790
+ return;
16646
16791
  }
16647
16792
  }
16648
16793
  // If we're forcing dynamic rendering or we're forcing static rendering, we
@@ -16657,29 +16802,29 @@ function requireDynamicRendering () {
16657
16802
  });
16658
16803
  }
16659
16804
  if (workUnitStore) {
16660
- if (workUnitStore.type === 'prerender-ppr') {
16661
- postponeWithTracking(store.route, expression, workUnitStore.dynamicTracking);
16662
- } else if (workUnitStore.type === 'prerender-legacy') {
16663
- workUnitStore.revalidate = 0;
16664
- // We aren't prerendering but we are generating a static page. We need to bail out of static generation
16665
- const err = Object.defineProperty(new _hooksservercontext.DynamicServerError(`Route ${store.route} couldn't be rendered statically because it used ${expression}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
16666
- value: "E550",
16667
- enumerable: false,
16668
- configurable: true
16669
- });
16670
- store.dynamicUsageDescription = expression;
16671
- store.dynamicUsageStack = err.stack;
16672
- throw err;
16673
- } else if (process.env.NODE_ENV === 'development' && workUnitStore && workUnitStore.type === 'request') {
16674
- workUnitStore.usedDynamic = true;
16805
+ switch(workUnitStore.type){
16806
+ case 'prerender-ppr':
16807
+ return postponeWithTracking(store.route, expression, workUnitStore.dynamicTracking);
16808
+ case 'prerender-legacy':
16809
+ workUnitStore.revalidate = 0;
16810
+ // We aren't prerendering, but we are generating a static page. We need
16811
+ // to bail out of static generation.
16812
+ const err = Object.defineProperty(new _hooksservercontext.DynamicServerError(`Route ${store.route} couldn't be rendered statically because it used ${expression}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
16813
+ value: "E550",
16814
+ enumerable: false,
16815
+ configurable: true
16816
+ });
16817
+ store.dynamicUsageDescription = expression;
16818
+ store.dynamicUsageStack = err.stack;
16819
+ throw err;
16820
+ case 'request':
16821
+ if (process.env.NODE_ENV !== 'production') {
16822
+ workUnitStore.usedDynamic = true;
16823
+ }
16824
+ break;
16675
16825
  }
16676
16826
  }
16677
16827
  }
16678
- function trackFallbackParamAccessed(store, expression) {
16679
- const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
16680
- if (!prerenderStore || prerenderStore.type !== 'prerender-ppr') return;
16681
- postponeWithTracking(store.route, expression, prerenderStore.dynamicTracking);
16682
- }
16683
16828
  function throwToInterruptStaticGeneration(expression, store, prerenderStore) {
16684
16829
  // We aren't prerendering but we are generating a static page. We need to bail out of static generation
16685
16830
  const err = Object.defineProperty(new _hooksservercontext.DynamicServerError(`Route ${store.route} couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
@@ -16692,25 +16837,31 @@ function requireDynamicRendering () {
16692
16837
  store.dynamicUsageStack = err.stack;
16693
16838
  throw err;
16694
16839
  }
16695
- function trackDynamicDataInDynamicRender(_store, workUnitStore) {
16696
- if (workUnitStore) {
16697
- if (workUnitStore.type === 'cache' || workUnitStore.type === 'unstable-cache') {
16698
- // inside cache scopes marking a scope as dynamic has no effect because the outer cache scope
16699
- // creates a cache boundary. This is subtly different from reading a dynamic data source which is
16840
+ function trackDynamicDataInDynamicRender(workUnitStore) {
16841
+ switch(workUnitStore.type){
16842
+ case 'cache':
16843
+ case 'unstable-cache':
16844
+ // Inside cache scopes, marking a scope as dynamic has no effect,
16845
+ // because the outer cache scope creates a cache boundary. This is
16846
+ // subtly different from reading a dynamic data source, which is
16700
16847
  // forbidden inside a cache scope.
16701
16848
  return;
16702
- }
16703
- if (workUnitStore.type === 'prerender' || workUnitStore.type === 'prerender-legacy') {
16704
- workUnitStore.revalidate = 0;
16705
- }
16706
- if (process.env.NODE_ENV === 'development' && workUnitStore.type === 'request') {
16707
- workUnitStore.usedDynamic = true;
16708
- }
16849
+ case 'private-cache':
16850
+ // A private cache scope is already dynamic by definition.
16851
+ return;
16852
+ case 'prerender':
16853
+ case 'prerender-runtime':
16854
+ case 'prerender-legacy':
16855
+ case 'prerender-ppr':
16856
+ case 'prerender-client':
16857
+ break;
16858
+ case 'request':
16859
+ if (process.env.NODE_ENV !== 'production') {
16860
+ workUnitStore.usedDynamic = true;
16861
+ }
16862
+ break;
16709
16863
  }
16710
16864
  }
16711
- // Despite it's name we don't actually abort unless we have a controller to call abort on
16712
- // There are times when we let a prerender run long to discover caches where we want the semantics
16713
- // of tracking dynamic access without terminating the prerender early
16714
16865
  function abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore) {
16715
16866
  const reason = `Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`;
16716
16867
  const error = createPrerenderInterruptedError(reason);
@@ -16727,13 +16878,16 @@ function requireDynamicRendering () {
16727
16878
  }
16728
16879
  function abortOnSynchronousPlatformIOAccess(route, expression, errorWithStack, prerenderStore) {
16729
16880
  const dynamicTracking = prerenderStore.dynamicTracking;
16881
+ abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
16882
+ // It is important that we set this tracking value after aborting. Aborts are executed
16883
+ // synchronously except for the case where you abort during render itself. By setting this
16884
+ // value late we can use it to determine if any of the aborted tasks are the task that
16885
+ // called the sync IO expression in the first place.
16730
16886
  if (dynamicTracking) {
16731
16887
  if (dynamicTracking.syncDynamicErrorWithStack === null) {
16732
- dynamicTracking.syncDynamicExpression = expression;
16733
16888
  dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
16734
16889
  }
16735
16890
  }
16736
- abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
16737
16891
  }
16738
16892
  function trackSynchronousPlatformIOAccessInDev(requestStore) {
16739
16893
  // We don't actually have a controller to abort but we do the semantic equivalent by
@@ -16748,22 +16902,27 @@ function requireDynamicRendering () {
16748
16902
  // since we need the throw semantics regardless of whether we abort it is easier to land
16749
16903
  // this way. See how this was handled with `abortOnSynchronousPlatformIOAccess` for a closer
16750
16904
  // to ideal implementation
16905
+ abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
16906
+ // It is important that we set this tracking value after aborting. Aborts are executed
16907
+ // synchronously except for the case where you abort during render itself. By setting this
16908
+ // value late we can use it to determine if any of the aborted tasks are the task that
16909
+ // called the sync IO expression in the first place.
16751
16910
  const dynamicTracking = prerenderStore.dynamicTracking;
16752
16911
  if (dynamicTracking) {
16753
16912
  if (dynamicTracking.syncDynamicErrorWithStack === null) {
16754
- dynamicTracking.syncDynamicExpression = expression;
16755
16913
  dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
16756
- if (prerenderStore.validating === true) {
16757
- // We always log Request Access in dev at the point of calling the function
16758
- // So we mark the dynamic validation as not requiring it to be printed
16759
- dynamicTracking.syncDynamicLogged = true;
16760
- }
16761
16914
  }
16762
16915
  }
16763
- abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
16764
16916
  }
16765
16917
  throw createPrerenderInterruptedError(`Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`);
16766
16918
  }
16919
+ function warnOnSyncDynamicError(dynamicTracking) {
16920
+ if (dynamicTracking.syncDynamicErrorWithStack) {
16921
+ // the server did something sync dynamic, likely
16922
+ // leading to an early termination of the prerender.
16923
+ console.error(dynamicTracking.syncDynamicErrorWithStack);
16924
+ }
16925
+ }
16767
16926
  const trackSynchronousRequestDataAccessInDev = trackSynchronousPlatformIOAccessInDev;
16768
16927
  function Postpone({ reason, route }) {
16769
16928
  const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
@@ -16856,35 +17015,57 @@ function requireDynamicRendering () {
16856
17015
  });
16857
17016
  }
16858
17017
  }
16859
- function createPostponedAbortSignal(reason) {
16860
- assertPostpone();
17018
+ function createRenderInBrowserAbortSignal() {
16861
17019
  const controller = new AbortController();
16862
- // We get our hands on a postpone instance by calling postpone and catching the throw
16863
- try {
16864
- _react.default.unstable_postpone(reason);
16865
- } catch (x) {
16866
- controller.abort(x);
16867
- }
17020
+ controller.abort(Object.defineProperty(new _bailouttocsr.BailoutToCSRError('Render in Browser'), "__NEXT_ERROR_CODE", {
17021
+ value: "E721",
17022
+ enumerable: false,
17023
+ configurable: true
17024
+ }));
16868
17025
  return controller.signal;
16869
17026
  }
16870
17027
  function createHangingInputAbortSignal(workUnitStore) {
16871
- const controller = new AbortController();
16872
- if (workUnitStore.cacheSignal) {
16873
- // If we have a cacheSignal it means we're in a prospective render. If the input
16874
- // we're waiting on is coming from another cache, we do want to wait for it so that
16875
- // we can resolve this cache entry too.
16876
- workUnitStore.cacheSignal.inputReady().then(()=>{
16877
- controller.abort();
16878
- });
16879
- } else {
16880
- // Otherwise we're in the final render and we should already have all our caches
16881
- // filled. We might still be waiting on some microtasks so we wait one tick before
16882
- // giving up. When we give up, we still want to render the content of this cache
16883
- // as deeply as we can so that we can suspend as deeply as possible in the tree
16884
- // or not at all if we don't end up waiting for the input.
16885
- (0, _scheduler.scheduleOnNextTick)(()=>controller.abort());
17028
+ switch(workUnitStore.type){
17029
+ case 'prerender':
17030
+ case 'prerender-runtime':
17031
+ const controller = new AbortController();
17032
+ if (workUnitStore.cacheSignal) {
17033
+ // If we have a cacheSignal it means we're in a prospective render. If
17034
+ // the input we're waiting on is coming from another cache, we do want
17035
+ // to wait for it so that we can resolve this cache entry too.
17036
+ workUnitStore.cacheSignal.inputReady().then(()=>{
17037
+ controller.abort();
17038
+ });
17039
+ } else {
17040
+ // Otherwise we're in the final render and we should already have all
17041
+ // our caches filled.
17042
+ // If the prerender uses stages, we have wait until the runtime stage,
17043
+ // at which point all runtime inputs will be resolved.
17044
+ // (otherwise, a runtime prerender might consider `cookies()` hanging
17045
+ // even though they'd resolve in the next task.)
17046
+ //
17047
+ // We might still be waiting on some microtasks so we
17048
+ // wait one tick before giving up. When we give up, we still want to
17049
+ // render the content of this cache as deeply as we can so that we can
17050
+ // suspend as deeply as possible in the tree or not at all if we don't
17051
+ // end up waiting for the input.
17052
+ const runtimeStagePromise = (0, _workunitasyncstorageexternal.getRuntimeStagePromise)(workUnitStore);
17053
+ if (runtimeStagePromise) {
17054
+ runtimeStagePromise.then(()=>(0, _scheduler.scheduleOnNextTick)(()=>controller.abort()));
17055
+ } else {
17056
+ (0, _scheduler.scheduleOnNextTick)(()=>controller.abort());
17057
+ }
17058
+ }
17059
+ return controller.signal;
17060
+ case 'prerender-client':
17061
+ case 'prerender-ppr':
17062
+ case 'prerender-legacy':
17063
+ case 'request':
17064
+ case 'cache':
17065
+ case 'private-cache':
17066
+ case 'unstable-cache':
17067
+ return undefined;
16886
17068
  }
16887
- return controller.signal;
16888
17069
  }
16889
17070
  function annotateDynamicAccess(expression, prerenderStore) {
16890
17071
  const dynamicTracking = prerenderStore.dynamicTracking;
@@ -16897,31 +17078,65 @@ function requireDynamicRendering () {
16897
17078
  }
16898
17079
  function useDynamicRouteParams(expression) {
16899
17080
  const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
16900
- if (workStore && workStore.isStaticGeneration && workStore.fallbackRouteParams && workStore.fallbackRouteParams.size > 0) {
16901
- // There are fallback route params, we should track these as dynamic
16902
- // accesses.
16903
- const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
16904
- if (workUnitStore) {
16905
- // We're prerendering with dynamicIO or PPR or both
16906
- if (workUnitStore.type === 'prerender') {
16907
- // We are in a prerender with dynamicIO semantics
16908
- // We are going to hang here and never resolve. This will cause the currently
16909
- // rendering component to effectively be a dynamic hole
16910
- _react.default.use((0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, expression));
16911
- } else if (workUnitStore.type === 'prerender-ppr') {
16912
- // We're prerendering with PPR
16913
- postponeWithTracking(workStore.route, expression, workUnitStore.dynamicTracking);
16914
- } else if (workUnitStore.type === 'prerender-legacy') {
16915
- throwToInterruptStaticGeneration(expression, workStore, workUnitStore);
16916
- }
17081
+ const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
17082
+ if (workStore && workUnitStore) {
17083
+ switch(workUnitStore.type){
17084
+ case 'prerender-client':
17085
+ case 'prerender':
17086
+ {
17087
+ const fallbackParams = workUnitStore.fallbackRouteParams;
17088
+ if (fallbackParams && fallbackParams.size > 0) {
17089
+ // We are in a prerender with cacheComponents semantics. We are going to
17090
+ // hang here and never resolve. This will cause the currently
17091
+ // rendering component to effectively be a dynamic hole.
17092
+ _react.default.use((0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, workStore.route, expression));
17093
+ }
17094
+ break;
17095
+ }
17096
+ case 'prerender-ppr':
17097
+ {
17098
+ const fallbackParams = workUnitStore.fallbackRouteParams;
17099
+ if (fallbackParams && fallbackParams.size > 0) {
17100
+ return postponeWithTracking(workStore.route, expression, workUnitStore.dynamicTracking);
17101
+ }
17102
+ break;
17103
+ }
17104
+ case 'prerender-runtime':
17105
+ throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called during a runtime prerender. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
17106
+ value: "E771",
17107
+ enumerable: false,
17108
+ configurable: true
17109
+ });
17110
+ case 'cache':
17111
+ case 'private-cache':
17112
+ throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called inside a cache scope. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
17113
+ value: "E745",
17114
+ enumerable: false,
17115
+ configurable: true
17116
+ });
16917
17117
  }
16918
17118
  }
16919
17119
  }
16920
17120
  const hasSuspenseRegex = /\n\s+at Suspense \(<anonymous>\)/;
16921
- const hasMetadataRegex = new RegExp(`\\n\\s+at ${_metadataconstants.METADATA_BOUNDARY_NAME}[\\n\\s]`);
16922
- const hasViewportRegex = new RegExp(`\\n\\s+at ${_metadataconstants.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`);
16923
- const hasOutletRegex = new RegExp(`\\n\\s+at ${_metadataconstants.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
16924
- function trackAllowedDynamicAccess(route, componentStack, dynamicValidation, serverDynamic, clientDynamic) {
17121
+ // Common implicit body tags that React will treat as body when placed directly in html
17122
+ const bodyAndImplicitTags = 'body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6';
17123
+ // Detects when RootLayoutBoundary (our framework marker component) appears
17124
+ // after Suspense in the component stack, indicating the root layout is wrapped
17125
+ // within a Suspense boundary. Ensures no body/html/implicit-body components are in between.
17126
+ //
17127
+ // Example matches:
17128
+ // at Suspense (<anonymous>)
17129
+ // at __next_root_layout_boundary__ (<anonymous>)
17130
+ //
17131
+ // Or with other components in between (but not body/html/implicit-body):
17132
+ // at Suspense (<anonymous>)
17133
+ // at SomeComponent (<anonymous>)
17134
+ // at __next_root_layout_boundary__ (<anonymous>)
17135
+ const hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex = new RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${bodyAndImplicitTags}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${_boundaryconstants.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`);
17136
+ const hasMetadataRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.METADATA_BOUNDARY_NAME}[\\n\\s]`);
17137
+ const hasViewportRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`);
17138
+ const hasOutletRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
17139
+ function trackAllowedDynamicAccess(workStore, componentStack, dynamicValidation, clientDynamic) {
16925
17140
  if (hasOutletRegex.test(componentStack)) {
16926
17141
  // We don't need to track that this is dynamic. It is only so when something else is also dynamic.
16927
17142
  return;
@@ -16931,92 +17146,112 @@ function requireDynamicRendering () {
16931
17146
  } else if (hasViewportRegex.test(componentStack)) {
16932
17147
  dynamicValidation.hasDynamicViewport = true;
16933
17148
  return;
17149
+ } else if (hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)) {
17150
+ // For Suspense within body, the prelude wouldn't be empty so it wouldn't violate the empty static shells rule.
17151
+ // But if you have Suspense above body, the prelude is empty but we allow that because having Suspense
17152
+ // is an explicit signal from the user that they acknowledge the empty shell and want dynamic rendering.
17153
+ dynamicValidation.hasAllowedDynamic = true;
17154
+ dynamicValidation.hasSuspenseAboveBody = true;
17155
+ return;
16934
17156
  } else if (hasSuspenseRegex.test(componentStack)) {
16935
- dynamicValidation.hasSuspendedDynamic = true;
17157
+ // this error had a Suspense boundary above it so we don't need to report it as a source
17158
+ // of disallowed
17159
+ dynamicValidation.hasAllowedDynamic = true;
16936
17160
  return;
16937
- } else if (serverDynamic.syncDynamicErrorWithStack || clientDynamic.syncDynamicErrorWithStack) {
16938
- dynamicValidation.hasSyncDynamicErrors = true;
17161
+ } else if (clientDynamic.syncDynamicErrorWithStack) {
17162
+ // This task was the task that called the sync error.
17163
+ dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);
16939
17164
  return;
16940
17165
  } else {
16941
- const message = `Route "${route}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`;
16942
- const error = createErrorWithComponentStack(message, componentStack);
17166
+ const message = `Route "${workStore.route}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`;
17167
+ const error = createErrorWithComponentOrOwnerStack(message, componentStack);
16943
17168
  dynamicValidation.dynamicErrors.push(error);
16944
17169
  return;
16945
17170
  }
16946
17171
  }
16947
- function createErrorWithComponentStack(message, componentStack) {
17172
+ /**
17173
+ * In dev mode, we prefer using the owner stack, otherwise the provided
17174
+ * component stack is used.
17175
+ */ function createErrorWithComponentOrOwnerStack(message, componentStack) {
17176
+ const ownerStack = process.env.NODE_ENV !== 'production' && _react.default.captureOwnerStack ? _react.default.captureOwnerStack() : null;
16948
17177
  const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
16949
17178
  value: "E394",
16950
17179
  enumerable: false,
16951
17180
  configurable: true
16952
17181
  });
16953
- error.stack = 'Error: ' + message + componentStack;
17182
+ error.stack = error.name + ': ' + message + (ownerStack ?? componentStack);
16954
17183
  return error;
16955
17184
  }
16956
- function throwIfDisallowedDynamic(route, dynamicValidation, serverDynamic, clientDynamic) {
16957
- let syncError;
16958
- let syncExpression;
16959
- let syncLogged;
16960
- if (serverDynamic.syncDynamicErrorWithStack) {
16961
- syncError = serverDynamic.syncDynamicErrorWithStack;
16962
- syncExpression = serverDynamic.syncDynamicExpression;
16963
- syncLogged = serverDynamic.syncDynamicLogged === true;
16964
- } else if (clientDynamic.syncDynamicErrorWithStack) {
16965
- syncError = clientDynamic.syncDynamicErrorWithStack;
16966
- syncExpression = clientDynamic.syncDynamicExpression;
16967
- syncLogged = clientDynamic.syncDynamicLogged === true;
16968
- } else {
16969
- syncError = null;
16970
- syncExpression = undefined;
16971
- syncLogged = false;
16972
- }
16973
- if (dynamicValidation.hasSyncDynamicErrors && syncError) {
16974
- if (!syncLogged) {
16975
- // In dev we already log errors about sync dynamic access. But during builds we need to ensure
16976
- // the offending sync error is logged before we exit the build
16977
- console.error(syncError);
17185
+ var PreludeState = /*#__PURE__*/ function(PreludeState) {
17186
+ PreludeState[PreludeState["Full"] = 0] = "Full";
17187
+ PreludeState[PreludeState["Empty"] = 1] = "Empty";
17188
+ PreludeState[PreludeState["Errored"] = 2] = "Errored";
17189
+ return PreludeState;
17190
+ }({});
17191
+ function logDisallowedDynamicError(workStore, error) {
17192
+ console.error(error);
17193
+ if (!workStore.dev) {
17194
+ if (workStore.hasReadableErrorStacks) {
17195
+ console.error(`To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running \`next dev\`, then open "${workStore.route}" in your browser to investigate the error.`);
17196
+ } else {
17197
+ console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
17198
+ - Start the app in development mode by running \`next dev\`, then open "${workStore.route}" in your browser to investigate the error.
17199
+ - Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`);
16978
17200
  }
16979
- // The actual error should have been logged when the sync access ocurred
16980
- throw new _staticgenerationbailout.StaticGenBailoutError();
16981
17201
  }
16982
- const dynamicErrors = dynamicValidation.dynamicErrors;
16983
- if (dynamicErrors.length) {
16984
- for(let i = 0; i < dynamicErrors.length; i++){
16985
- console.error(dynamicErrors[i]);
17202
+ }
17203
+ function throwIfDisallowedDynamic(workStore, prelude, dynamicValidation, serverDynamic) {
17204
+ if (prelude !== 0) {
17205
+ if (dynamicValidation.hasSuspenseAboveBody) {
17206
+ // This route has opted into allowing fully dynamic rendering
17207
+ // by including a Suspense boundary above the body. In this case
17208
+ // a lack of a shell is not considered disallowed so we simply return
17209
+ return;
16986
17210
  }
16987
- throw new _staticgenerationbailout.StaticGenBailoutError();
16988
- }
16989
- if (!dynamicValidation.hasSuspendedDynamic) {
16990
- if (dynamicValidation.hasDynamicMetadata) {
16991
- if (syncError) {
16992
- console.error(syncError);
16993
- throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route "${route}" has a \`generateMetadata\` that could not finish rendering before ${syncExpression} was used. Follow the instructions in the error for this expression to resolve.`), "__NEXT_ERROR_CODE", {
16994
- value: "E608",
16995
- enumerable: false,
16996
- configurable: true
16997
- });
16998
- }
16999
- throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route "${route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or external data (\`fetch(...)\`, etc...) but the rest of the route was static or only used cached data (\`"use cache"\`). If you expected this route to be prerenderable update your \`generateMetadata\` to not use Request data and only use cached external data. Otherwise, add \`await connection()\` somewhere within this route to indicate explicitly it should not be prerendered.`), "__NEXT_ERROR_CODE", {
17000
- value: "E534",
17001
- enumerable: false,
17002
- configurable: true
17003
- });
17004
- } else if (dynamicValidation.hasDynamicViewport) {
17005
- if (syncError) {
17006
- console.error(syncError);
17007
- throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route "${route}" has a \`generateViewport\` that could not finish rendering before ${syncExpression} was used. Follow the instructions in the error for this expression to resolve.`), "__NEXT_ERROR_CODE", {
17008
- value: "E573",
17009
- enumerable: false,
17010
- configurable: true
17011
- });
17211
+ if (serverDynamic.syncDynamicErrorWithStack) {
17212
+ // There is no shell and the server did something sync dynamic likely
17213
+ // leading to an early termination of the prerender before the shell
17214
+ // could be completed. We terminate the build/validating render.
17215
+ logDisallowedDynamicError(workStore, serverDynamic.syncDynamicErrorWithStack);
17216
+ throw new _staticgenerationbailout.StaticGenBailoutError();
17217
+ }
17218
+ // We didn't have any sync bailouts but there may be user code which
17219
+ // blocked the root. We would have captured these during the prerender
17220
+ // and can log them here and then terminate the build/validating render
17221
+ const dynamicErrors = dynamicValidation.dynamicErrors;
17222
+ if (dynamicErrors.length > 0) {
17223
+ for(let i = 0; i < dynamicErrors.length; i++){
17224
+ logDisallowedDynamicError(workStore, dynamicErrors[i]);
17012
17225
  }
17013
- throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route "${route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or external data (\`fetch(...)\`, etc...) but the rest of the route was static or only used cached data (\`"use cache"\`). If you expected this route to be prerenderable update your \`generateViewport\` to not use Request data and only use cached external data. Otherwise, add \`await connection()\` somewhere within this route to indicate explicitly it should not be prerendered.`), "__NEXT_ERROR_CODE", {
17014
- value: "E590",
17015
- enumerable: false,
17016
- configurable: true
17017
- });
17226
+ throw new _staticgenerationbailout.StaticGenBailoutError();
17227
+ }
17228
+ // If we got this far then the only other thing that could be blocking
17229
+ // the root is dynamic Viewport. If this is dynamic then
17230
+ // you need to opt into that by adding a Suspense boundary above the body
17231
+ // to indicate your are ok with fully dynamic rendering.
17232
+ if (dynamicValidation.hasDynamicViewport) {
17233
+ console.error(`Route "${workStore.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`);
17234
+ throw new _staticgenerationbailout.StaticGenBailoutError();
17235
+ }
17236
+ if (prelude === 1) {
17237
+ // If we ever get this far then we messed up the tracking of invalid dynamic.
17238
+ // We still adhere to the constraint that you must produce a shell but invite the
17239
+ // user to report this as a bug in Next.js.
17240
+ console.error(`Route "${workStore.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`);
17241
+ throw new _staticgenerationbailout.StaticGenBailoutError();
17018
17242
  }
17243
+ } else {
17244
+ if (dynamicValidation.hasAllowedDynamic === false && dynamicValidation.hasDynamicMetadata) {
17245
+ console.error(`Route "${workStore.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`);
17246
+ throw new _staticgenerationbailout.StaticGenBailoutError();
17247
+ }
17248
+ }
17249
+ }
17250
+ function delayUntilRuntimeStage(prerenderStore, result) {
17251
+ if (prerenderStore.runtimeStagePromise) {
17252
+ return prerenderStore.runtimeStagePromise.then(()=>result);
17019
17253
  }
17254
+ return result;
17020
17255
  }
17021
17256
 
17022
17257
 
@@ -17179,6 +17414,9 @@ function requireNavigation_reactServer () {
17179
17414
  unauthorized: function() {
17180
17415
  return _unauthorized.unauthorized;
17181
17416
  },
17417
+ unstable_isUnrecognizedActionError: function() {
17418
+ return unstable_isUnrecognizedActionError;
17419
+ },
17182
17420
  unstable_rethrow: function() {
17183
17421
  return _unstablerethrow.unstable_rethrow;
17184
17422
  }
@@ -17208,6 +17446,13 @@ function requireNavigation_reactServer () {
17208
17446
  throw new ReadonlyURLSearchParamsError();
17209
17447
  }
17210
17448
  }
17449
+ function unstable_isUnrecognizedActionError() {
17450
+ throw Object.defineProperty(new Error('`unstable_isUnrecognizedActionError` can only be used on the client.'), "__NEXT_ERROR_CODE", {
17451
+ value: "E776",
17452
+ enumerable: false,
17453
+ configurable: true
17454
+ });
17455
+ }
17211
17456
 
17212
17457
  if ((typeof exports$1.default === 'function' || (typeof exports$1.default === 'object' && exports$1.default !== null)) && typeof exports$1.default.__esModule === 'undefined') {
17213
17458
  Object.defineProperty(exports$1.default, '__esModule', { value: true });
@@ -17309,6 +17554,52 @@ function requireServerInsertedHtml_sharedRuntime () {
17309
17554
  return serverInsertedHtml_sharedRuntime;
17310
17555
  }
17311
17556
 
17557
+ var unrecognizedActionError = {exports: {}};
17558
+
17559
+ var hasRequiredUnrecognizedActionError;
17560
+
17561
+ function requireUnrecognizedActionError () {
17562
+ if (hasRequiredUnrecognizedActionError) return unrecognizedActionError.exports;
17563
+ hasRequiredUnrecognizedActionError = 1;
17564
+ (function (module, exports$1) {
17565
+ Object.defineProperty(exports$1, "__esModule", {
17566
+ value: true
17567
+ });
17568
+ function _export(target, all) {
17569
+ for(var name in all)Object.defineProperty(target, name, {
17570
+ enumerable: true,
17571
+ get: all[name]
17572
+ });
17573
+ }
17574
+ _export(exports$1, {
17575
+ UnrecognizedActionError: function() {
17576
+ return UnrecognizedActionError;
17577
+ },
17578
+ unstable_isUnrecognizedActionError: function() {
17579
+ return unstable_isUnrecognizedActionError;
17580
+ }
17581
+ });
17582
+ class UnrecognizedActionError extends Error {
17583
+ constructor(...args){
17584
+ super(...args);
17585
+ this.name = 'UnrecognizedActionError';
17586
+ }
17587
+ }
17588
+ function unstable_isUnrecognizedActionError(error) {
17589
+ return !!(error && typeof error === 'object' && error instanceof UnrecognizedActionError);
17590
+ }
17591
+
17592
+ if ((typeof exports$1.default === 'function' || (typeof exports$1.default === 'object' && exports$1.default !== null)) && typeof exports$1.default.__esModule === 'undefined') {
17593
+ Object.defineProperty(exports$1.default, '__esModule', { value: true });
17594
+ Object.assign(exports$1.default, exports$1);
17595
+ module.exports = exports$1.default;
17596
+ }
17597
+
17598
+
17599
+ } (unrecognizedActionError, unrecognizedActionError.exports));
17600
+ return unrecognizedActionError.exports;
17601
+ }
17602
+
17312
17603
  var bailoutToClientRendering = {exports: {}};
17313
17604
 
17314
17605
  var hasRequiredBailoutToClientRendering;
@@ -17328,14 +17619,25 @@ function requireBailoutToClientRendering () {
17328
17619
  });
17329
17620
  const _bailouttocsr = requireBailoutToCsr();
17330
17621
  const _workasyncstorageexternal = requireWorkAsyncStorage_external();
17622
+ const _workunitasyncstorageexternal = requireWorkUnitAsyncStorage_external();
17331
17623
  function bailoutToClientRendering(reason) {
17332
17624
  const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
17333
17625
  if (workStore == null ? void 0 : workStore.forceStatic) return;
17334
- if (workStore == null ? void 0 : workStore.isStaticGeneration) throw Object.defineProperty(new _bailouttocsr.BailoutToCSRError(reason), "__NEXT_ERROR_CODE", {
17335
- value: "E394",
17336
- enumerable: false,
17337
- configurable: true
17338
- });
17626
+ const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
17627
+ if (workUnitStore) {
17628
+ switch(workUnitStore.type){
17629
+ case 'prerender':
17630
+ case 'prerender-runtime':
17631
+ case 'prerender-client':
17632
+ case 'prerender-ppr':
17633
+ case 'prerender-legacy':
17634
+ throw Object.defineProperty(new _bailouttocsr.BailoutToCSRError(reason), "__NEXT_ERROR_CODE", {
17635
+ value: "E394",
17636
+ enumerable: false,
17637
+ configurable: true
17638
+ });
17639
+ }
17640
+ }
17339
17641
  }
17340
17642
 
17341
17643
  if ((typeof exports$1.default === 'function' || (typeof exports$1.default === 'object' && exports$1.default !== null)) && typeof exports$1.default.__esModule === 'undefined') {
@@ -17389,6 +17691,9 @@ function requireNavigation$1 () {
17389
17691
  unauthorized: function() {
17390
17692
  return _navigationreactserver.unauthorized;
17391
17693
  },
17694
+ unstable_isUnrecognizedActionError: function() {
17695
+ return _unrecognizedactionerror.unstable_isUnrecognizedActionError;
17696
+ },
17392
17697
  unstable_rethrow: function() {
17393
17698
  return _navigationreactserver.unstable_rethrow;
17394
17699
  },
@@ -17421,6 +17726,7 @@ function requireNavigation$1 () {
17421
17726
  const _segment = requireSegment();
17422
17727
  const _navigationreactserver = requireNavigation_reactServer();
17423
17728
  const _serverinsertedhtmlsharedruntime = requireServerInsertedHtml_sharedRuntime();
17729
+ const _unrecognizedactionerror = requireUnrecognizedActionError();
17424
17730
  const useDynamicRouteParams = typeof window === 'undefined' ? requireDynamicRendering().useDynamicRouteParams : undefined;
17425
17731
  function useSearchParams() {
17426
17732
  const searchParams = (0, _react.useContext)(_hooksclientcontextsharedruntime.SearchParamsContext);