@semiont/frontend 0.4.3 → 0.4.5

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 (380) hide show
  1. package/package.json +1 -1
  2. package/standalone/apps/frontend/.next/BUILD_ID +1 -1
  3. package/standalone/apps/frontend/.next/app-path-routes-manifest.json +4 -5
  4. package/standalone/apps/frontend/.next/build-manifest.json +7 -7
  5. package/standalone/apps/frontend/.next/prerender-manifest.json +3 -3
  6. package/standalone/apps/frontend/.next/react-loadable-manifest.json +89 -93
  7. package/standalone/apps/frontend/.next/routes-manifest.json +0 -8
  8. package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js +13 -19
  9. package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js.nft.json +1 -1
  10. package/standalone/apps/frontend/.next/server/app/[locale]/about/page_client-reference-manifest.js +1 -1
  11. package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js +1913 -2012
  12. package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js.nft.json +1 -1
  13. package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page_client-reference-manifest.js +1 -1
  14. package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page.js +544 -544
  15. package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page.js.nft.json +1 -1
  16. package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page_client-reference-manifest.js +1 -1
  17. package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js +10 -117
  18. package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js.nft.json +1 -1
  19. package/standalone/apps/frontend/.next/server/app/[locale]/admin/page_client-reference-manifest.js +1 -1
  20. package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js +257 -257
  21. package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js.nft.json +1 -1
  22. package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page_client-reference-manifest.js +1 -1
  23. package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js +125 -224
  24. package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js.nft.json +1 -1
  25. package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page_client-reference-manifest.js +1 -1
  26. package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js +190 -190
  27. package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js.nft.json +1 -1
  28. package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page_client-reference-manifest.js +1 -1
  29. package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js +14 -122
  30. package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js.nft.json +1 -1
  31. package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route_client-reference-manifest.js +1 -1
  32. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js +59 -70
  33. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js.nft.json +1 -1
  34. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page_client-reference-manifest.js +1 -1
  35. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js +247 -251
  36. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js.nft.json +1 -1
  37. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page_client-reference-manifest.js +1 -1
  38. package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js +109 -106
  39. package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js.nft.json +1 -1
  40. package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page_client-reference-manifest.js +1 -1
  41. package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js +754 -257
  42. package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js.nft.json +1 -1
  43. package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page_client-reference-manifest.js +1 -1
  44. package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js +898 -401
  45. package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js.nft.json +1 -1
  46. package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page_client-reference-manifest.js +1 -1
  47. package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js +1147 -658
  48. package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js.nft.json +1 -1
  49. package/standalone/apps/frontend/.next/server/app/[locale]/know/page_client-reference-manifest.js +1 -1
  50. package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js +537 -40
  51. package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js.nft.json +1 -1
  52. package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page_client-reference-manifest.js +1 -1
  53. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js +1862 -1961
  54. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js.nft.json +1 -1
  55. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page_client-reference-manifest.js +1 -1
  56. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page.js +1124 -1223
  57. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page.js.nft.json +1 -1
  58. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page_client-reference-manifest.js +1 -1
  59. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js +361 -468
  60. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js.nft.json +1 -1
  61. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page_client-reference-manifest.js +1 -1
  62. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js +1878 -1977
  63. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js.nft.json +1 -1
  64. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page_client-reference-manifest.js +1 -1
  65. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js +331 -430
  66. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js.nft.json +1 -1
  67. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page_client-reference-manifest.js +1 -1
  68. package/standalone/apps/frontend/.next/server/app/[locale]/page.js +18 -21
  69. package/standalone/apps/frontend/.next/server/app/[locale]/page.js.nft.json +1 -1
  70. package/standalone/apps/frontend/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  71. package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js +794 -794
  72. package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js.nft.json +1 -1
  73. package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page_client-reference-manifest.js +1 -1
  74. package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js +354 -354
  75. package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js.nft.json +1 -1
  76. package/standalone/apps/frontend/.next/server/app/[locale]/terms/page_client-reference-manifest.js +1 -1
  77. package/standalone/apps/frontend/.next/server/app/_global-error/page.js +169 -169
  78. package/standalone/apps/frontend/.next/server/app/_global-error/page.js.nft.json +1 -1
  79. package/standalone/apps/frontend/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  80. package/standalone/apps/frontend/.next/server/app/_global-error.html +1 -1
  81. package/standalone/apps/frontend/.next/server/app/_global-error.rsc +7 -7
  82. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
  83. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +2 -2
  84. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_global-error.segment.rsc +2 -2
  85. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
  86. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
  87. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  88. package/standalone/apps/frontend/.next/server/app/_not-found/page.js +98 -98
  89. package/standalone/apps/frontend/.next/server/app/_not-found/page.js.nft.json +1 -1
  90. package/standalone/apps/frontend/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  91. package/standalone/apps/frontend/.next/server/app/_not-found.html +1 -1
  92. package/standalone/apps/frontend/.next/server/app/_not-found.rsc +7 -7
  93. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_full.segment.rsc +7 -7
  94. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_head.segment.rsc +3 -3
  95. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
  96. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  97. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_not-found.segment.rsc +2 -2
  98. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  99. package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js +24 -180
  100. package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js.nft.json +1 -1
  101. package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route_client-reference-manifest.js +1 -1
  102. package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js +39 -177
  103. package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js.nft.json +1 -1
  104. package/standalone/apps/frontend/.next/server/app/api/cookies/export/route_client-reference-manifest.js +1 -1
  105. package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js +35 -217
  106. package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js.nft.json +1 -1
  107. package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route_client-reference-manifest.js +1 -1
  108. package/standalone/apps/frontend/.next/server/app-paths-manifest.json +4 -5
  109. package/standalone/apps/frontend/.next/server/chunks/{2967.js → 1175.js} +16 -14
  110. package/standalone/apps/frontend/.next/server/chunks/{8477.js → 1424.js} +16 -14
  111. package/standalone/apps/frontend/.next/server/chunks/{4653.js → 1461.js} +16 -14
  112. package/standalone/apps/frontend/.next/server/chunks/{5866.js → 1515.js} +9015 -219
  113. package/standalone/apps/frontend/.next/server/chunks/1974.js +1 -1
  114. package/standalone/apps/frontend/.next/server/chunks/2245.js +1 -1
  115. package/standalone/apps/frontend/.next/server/chunks/2686.js +1 -1
  116. package/standalone/apps/frontend/.next/server/chunks/{8605.js → 2789.js} +16 -14
  117. package/standalone/apps/frontend/.next/server/chunks/2961.js +1 -1
  118. package/standalone/apps/frontend/.next/server/chunks/2978.js +1 -1
  119. package/standalone/apps/frontend/.next/server/chunks/{2403.js → 3048.js} +16 -14
  120. package/standalone/apps/frontend/.next/server/chunks/3266.js +1 -1
  121. package/standalone/apps/frontend/.next/server/chunks/{5081.js → 3317.js} +16 -14
  122. package/standalone/apps/frontend/.next/server/chunks/3451.js +1 -1
  123. package/standalone/apps/frontend/.next/server/chunks/{2745.js → 3465.js} +16 -14
  124. package/standalone/apps/frontend/.next/server/chunks/3533.js +1 -1
  125. package/standalone/apps/frontend/.next/server/chunks/355.js +2 -2
  126. package/standalone/apps/frontend/.next/server/chunks/{615.js → 3693.js} +16 -14
  127. package/standalone/apps/frontend/.next/server/chunks/{6215.js → 3839.js} +16 -14
  128. package/standalone/apps/frontend/.next/server/chunks/{8880.js → 387.js} +16 -14
  129. package/standalone/apps/frontend/.next/server/chunks/{7492.js → 3883.js} +16 -14
  130. package/standalone/apps/frontend/.next/server/chunks/{1481.js → 395.js} +16 -14
  131. package/standalone/apps/frontend/.next/server/chunks/{7817.js → 4131.js} +16 -14
  132. package/standalone/apps/frontend/.next/server/chunks/{3618.js → 431.js} +16 -14
  133. package/standalone/apps/frontend/.next/server/chunks/4378.js +1 -1
  134. package/standalone/apps/frontend/.next/server/chunks/4546.js +1 -1
  135. package/standalone/apps/frontend/.next/server/chunks/4622.js +1 -1
  136. package/standalone/apps/frontend/.next/server/chunks/4654.js +1 -1
  137. package/standalone/apps/frontend/.next/server/chunks/4750.js +1 -1
  138. package/standalone/apps/frontend/.next/server/chunks/4771.js +1 -1
  139. package/standalone/apps/frontend/.next/server/chunks/4962.js +1 -1
  140. package/standalone/apps/frontend/.next/server/chunks/4968.js +1 -1
  141. package/standalone/apps/frontend/.next/server/chunks/4997.js +1 -1
  142. package/standalone/apps/frontend/.next/server/chunks/501.js +1 -1
  143. package/standalone/apps/frontend/.next/server/chunks/{891.js → 5165.js} +16 -14
  144. package/standalone/apps/frontend/.next/server/chunks/5245.js +1 -1
  145. package/standalone/apps/frontend/.next/server/chunks/5248.js +1 -1
  146. package/standalone/apps/frontend/.next/server/chunks/5343.js +1 -1
  147. package/standalone/apps/frontend/.next/server/chunks/{7800.js → 5347.js} +16 -14
  148. package/standalone/apps/frontend/.next/server/chunks/535.js +1 -1
  149. package/standalone/apps/frontend/.next/server/chunks/5493.js +1 -1
  150. package/standalone/apps/frontend/.next/server/chunks/5636.js +1 -1
  151. package/standalone/apps/frontend/.next/server/chunks/5660.js +1 -1
  152. package/standalone/apps/frontend/.next/server/chunks/5956.js +1 -1
  153. package/standalone/apps/frontend/.next/server/chunks/6135.js +1 -1
  154. package/standalone/apps/frontend/.next/server/chunks/{2183.js → 6224.js} +16 -14
  155. package/standalone/apps/frontend/.next/server/chunks/6315.js +1 -1
  156. package/standalone/apps/frontend/.next/server/chunks/6324.js +1 -1
  157. package/standalone/apps/frontend/.next/server/chunks/{7873.js → 6380.js} +99 -2
  158. package/standalone/apps/frontend/.next/server/chunks/{3231.js → 6426.js} +16 -14
  159. package/standalone/apps/frontend/.next/server/chunks/{3394.js → 6494.js} +16 -14
  160. package/standalone/apps/frontend/.next/server/chunks/{5560.js → 6595.js} +16 -14
  161. package/standalone/apps/frontend/.next/server/chunks/{710.js → 6659.js} +16 -14
  162. package/standalone/apps/frontend/.next/server/chunks/6791.js +1 -1
  163. package/standalone/apps/frontend/.next/server/chunks/6806.js +1 -1
  164. package/standalone/apps/frontend/.next/server/chunks/6832.js +1 -1
  165. package/standalone/apps/frontend/.next/server/chunks/6937.js +2 -2
  166. package/standalone/apps/frontend/.next/server/chunks/695.js +1 -1
  167. package/standalone/apps/frontend/.next/server/chunks/6961.js +1 -1
  168. package/standalone/apps/frontend/.next/server/chunks/7012.js +1 -1
  169. package/standalone/apps/frontend/.next/server/chunks/7020.js +1 -1
  170. package/standalone/apps/frontend/.next/server/chunks/7041.js +1 -1
  171. package/standalone/apps/frontend/.next/server/chunks/7100.js +1 -1
  172. package/standalone/apps/frontend/.next/server/chunks/7143.js +1 -1
  173. package/standalone/apps/frontend/.next/server/chunks/7318.js +1 -1
  174. package/standalone/apps/frontend/.next/server/chunks/736.js +1 -1
  175. package/standalone/apps/frontend/.next/server/chunks/7368.js +1 -1
  176. package/standalone/apps/frontend/.next/server/chunks/7374.js +1 -1
  177. package/standalone/apps/frontend/.next/server/chunks/7465.js +1 -1
  178. package/standalone/apps/frontend/.next/server/chunks/7466.js +1 -1
  179. package/standalone/apps/frontend/.next/server/chunks/7552.js +1 -1
  180. package/standalone/apps/frontend/.next/server/chunks/7571.js +1 -1
  181. package/standalone/apps/frontend/.next/server/chunks/766.js +1196 -0
  182. package/standalone/apps/frontend/.next/server/chunks/{6975.js → 7747.js} +16 -14
  183. package/standalone/apps/frontend/.next/server/chunks/{2361.js → 7791.js} +16 -14
  184. package/standalone/apps/frontend/.next/server/chunks/7839.js +1 -1
  185. package/standalone/apps/frontend/.next/server/chunks/{9356.js → 796.js} +16 -14
  186. package/standalone/apps/frontend/.next/server/chunks/8012.js +1 -1
  187. package/standalone/apps/frontend/.next/server/chunks/{8569.js → 8103.js} +2 -395
  188. package/standalone/apps/frontend/.next/server/chunks/8255.js +71008 -1605
  189. package/standalone/apps/frontend/.next/server/chunks/857.js +1 -1
  190. package/standalone/apps/frontend/.next/server/chunks/8599.js +1 -1
  191. package/standalone/apps/frontend/.next/server/chunks/{9318.js → 868.js} +16 -14
  192. package/standalone/apps/frontend/.next/server/chunks/{8394.js → 8712.js} +47 -146
  193. package/standalone/apps/frontend/.next/server/chunks/8829.js +1 -1
  194. package/standalone/apps/frontend/.next/server/chunks/{730.js → 8835.js} +74 -299
  195. package/standalone/apps/frontend/.next/server/chunks/8930.js +1 -1
  196. package/standalone/apps/frontend/.next/server/chunks/9059.js +1 -1
  197. package/standalone/apps/frontend/.next/server/chunks/9080.js +1 -1
  198. package/standalone/apps/frontend/.next/server/chunks/{3824.js → 927.js} +24 -24
  199. package/standalone/apps/frontend/.next/server/chunks/{9261.js → 9297.js} +16 -14
  200. package/standalone/apps/frontend/.next/server/chunks/9378.js +1 -1
  201. package/standalone/apps/frontend/.next/server/chunks/9552.js +1 -1
  202. package/standalone/apps/frontend/.next/server/chunks/{342.js → 9711.js} +16 -14
  203. package/standalone/apps/frontend/.next/server/chunks/{7842.js → 9911.js} +16 -14
  204. package/standalone/apps/frontend/.next/server/chunks/9927.js +393 -0
  205. package/standalone/apps/frontend/.next/server/middleware-build-manifest.js +1 -1
  206. package/standalone/apps/frontend/.next/server/middleware-react-loadable-manifest.js +1 -1
  207. package/standalone/apps/frontend/.next/server/middleware.js +792 -7147
  208. package/standalone/apps/frontend/.next/server/pages/404.html +1 -1
  209. package/standalone/apps/frontend/.next/server/pages/500.html +1 -1
  210. package/standalone/apps/frontend/.next/server/server-reference-manifest.json +1 -1
  211. package/standalone/apps/frontend/.next/server/webpack-runtime.js +1 -1
  212. package/standalone/apps/frontend/.next/static/{7fwzlNjbcq2vtnM6QhHnm → 5dXfbPlvt4Js0PhZwYimS}/_buildManifest.js +1 -1
  213. package/standalone/apps/frontend/.next/static/chunks/1581.d346066f42ea32d9.js +1 -0
  214. package/standalone/apps/frontend/.next/static/chunks/21.80f630720ce5d399.js +1 -0
  215. package/standalone/apps/frontend/.next/static/chunks/2313.5a58bc49f794dfde.js +1 -0
  216. package/standalone/apps/frontend/.next/static/chunks/2770.a1153fa286f807ca.js +1 -0
  217. package/standalone/apps/frontend/.next/static/chunks/285.4bd38bfe3c47a475.js +1 -0
  218. package/standalone/apps/frontend/.next/static/chunks/317.7f0ece1099484cf9.js +1 -0
  219. package/standalone/apps/frontend/.next/static/chunks/3885.d9113939596bf3b8.js +1 -0
  220. package/standalone/apps/frontend/.next/static/chunks/389.7b458ffc7d516ddd.js +1 -0
  221. package/standalone/apps/frontend/.next/static/chunks/3990.c48a657c9ea9a44b.js +1 -0
  222. package/standalone/apps/frontend/.next/static/chunks/4051.c3994d6f4abcd0e0.js +1 -0
  223. package/standalone/apps/frontend/.next/static/chunks/4068.78ea607d67bd65a0.js +1 -0
  224. package/standalone/apps/frontend/.next/static/chunks/4081.46ad40b822c6916b.js +1 -0
  225. package/standalone/apps/frontend/.next/static/chunks/4543.9278b6d01ee036e1.js +1 -0
  226. package/standalone/apps/frontend/.next/static/chunks/4601.d0fc1677704c70b4.js +1 -0
  227. package/standalone/apps/frontend/.next/static/chunks/4697.bc616cfc8e811e73.js +1 -0
  228. package/standalone/apps/frontend/.next/static/chunks/4775.71ae21f85cb5e145.js +1 -0
  229. package/standalone/apps/frontend/.next/static/chunks/4803.45597c5e81cd3c13.js +1 -0
  230. package/standalone/apps/frontend/.next/static/chunks/5334.1744c780cc556f06.js +1 -0
  231. package/standalone/apps/frontend/.next/static/chunks/5477.2d0f1564203fb566.js +1 -0
  232. package/standalone/apps/frontend/.next/static/chunks/5910.100100966869410e.js +1 -0
  233. package/standalone/apps/frontend/.next/static/chunks/6760.026c5949f3586091.js +1 -0
  234. package/standalone/apps/frontend/.next/static/chunks/6833.dca4879e8a220b69.js +1 -0
  235. package/standalone/apps/frontend/.next/static/chunks/6871.ac58d649278c1506.js +1 -0
  236. package/standalone/apps/frontend/.next/static/chunks/694.43f1b5ec2406a34d.js +1 -0
  237. package/standalone/apps/frontend/.next/static/chunks/6955.f7c9ff28ee7a7499.js +1 -0
  238. package/standalone/apps/frontend/.next/static/chunks/7249.2e31fa450a01a1df.js +1 -0
  239. package/standalone/apps/frontend/.next/static/chunks/7869.675d538426cfcbe9.js +1 -0
  240. package/standalone/apps/frontend/.next/static/chunks/8109.a87a8b9713f2b52e.js +1 -0
  241. package/standalone/apps/frontend/.next/static/chunks/8627.7bb9aaab1ac2f553.js +1 -0
  242. package/standalone/apps/frontend/.next/static/chunks/8637.8d938ed221c34fef.js +1 -0
  243. package/standalone/apps/frontend/.next/static/chunks/87c73c54-6dc57a387011e0eb.js +1 -0
  244. package/standalone/apps/frontend/.next/static/chunks/891cff7f-b4b276af3a3ec6c2.js +1 -0
  245. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/about/page-8c95ed651c95e81d.js +1 -0
  246. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/devops/page-07c243823806d9cd.js +1 -0
  247. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/exchange/page-c4ae2acead0589a5.js +1 -0
  248. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/layout-321849d614eeeb37.js +1 -0
  249. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/page-d354c931ccf79f83.js +1 -0
  250. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/security/page-fc375342b3cfc441.js +1 -0
  251. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/users/page-e7b49e8716c71d4c.js +1 -0
  252. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/error/page-84bb543b60f14a75.js +1 -0
  253. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/mcp-setup/route-a94925dc93ffbc79.js +1 -0
  254. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/signin/page-7f3c48236f101729.js +1 -0
  255. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/signup/page-c9f2dcf33b613491.js +1 -0
  256. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/welcome/page-829aa2aa53d10c09.js +1 -0
  257. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/compose/page-de72d045de6a35c6.js +1 -0
  258. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/discover/page-c3a797806c29fb1d.js +1 -0
  259. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/layout-d6130394cfcdf0b3.js +1 -0
  260. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/page-1c71e6c5852e4fd1.js +1 -0
  261. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/resource/[id]/page-28cd0a52dc5eb7f7.js +1 -0
  262. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/layout-892c0aed3b6305e6.js +1 -0
  263. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/entity-tags/page-2570acd78d5ba365.js +1 -0
  264. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/layout-ed8fba196193bb78.js +1 -0
  265. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/linked-data/page-121dae57df4247e6.js +1 -0
  266. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/page-4977a31fd59bad74.js +1 -0
  267. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/recent/page-f8157849c4259b2d.js +1 -0
  268. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/tag-schemas/{page-35187d6da8884290.js → page-8d93cbbc2103ce33.js} +1 -1
  269. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/not-found-4a7239a613e6318d.js +1 -0
  270. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/page-5401abd4b8b5a660.js +1 -0
  271. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/privacy/page-c8debdc896fbfb18.js +1 -0
  272. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/terms/page-5352a1dd1485f780.js +1 -0
  273. package/standalone/apps/frontend/.next/static/chunks/app/_global-error/page-654d20a65a117618.js +1 -0
  274. package/standalone/apps/frontend/.next/static/chunks/app/_not-found/page-4b6ea20c964f88d7.js +1 -0
  275. package/standalone/apps/frontend/.next/static/chunks/app/api/cookies/consent/route-c9e8d6dd4d9f06a4.js +1 -0
  276. package/standalone/apps/frontend/.next/static/chunks/app/api/cookies/export/route-a4ab2ad0938d4aa9.js +1 -0
  277. package/standalone/apps/frontend/.next/static/chunks/app/api/resources/[id]/route-197cf90408a76c83.js +1 -0
  278. package/standalone/apps/frontend/.next/static/chunks/app/error-9aba7afd30c62d53.js +1 -0
  279. package/standalone/apps/frontend/.next/static/chunks/app/global-error-eda57df3f34f3fea.js +1 -0
  280. package/standalone/apps/frontend/.next/static/chunks/app/layout-0449f9303123dcff.js +1 -0
  281. package/standalone/apps/frontend/.next/static/chunks/app/not-found-c9bc183da50381ee.js +1 -0
  282. package/standalone/apps/frontend/.next/static/chunks/common-39e39b31d7e98d78.js +63 -0
  283. package/standalone/apps/frontend/.next/static/chunks/framework-7bb6ccfe56e756bc.js +1 -0
  284. package/standalone/apps/frontend/.next/static/chunks/main-app-c035ceb9711489b6.js +1 -0
  285. package/standalone/apps/frontend/.next/static/chunks/{main-7bae9c8a170f1f27.js → main-d9a52d294ecf5b0a.js} +1 -1
  286. package/standalone/apps/frontend/.next/static/chunks/next/dist/client/components/builtin/app-error-c9c4d6e710ccaf49.js +1 -0
  287. package/standalone/apps/frontend/.next/static/chunks/next/dist/client/components/builtin/forbidden-e477fd7b191df4de.js +1 -0
  288. package/standalone/apps/frontend/.next/static/chunks/next/dist/client/components/builtin/unauthorized-9f5fef6300d812a3.js +1 -0
  289. package/standalone/apps/frontend/.next/static/chunks/vendors-f8fa4fd7e9983288.js +40 -0
  290. package/standalone/apps/frontend/.next/static/chunks/webpack-89d7a897970cded3.js +1 -0
  291. package/standalone/apps/frontend/.next/static/css/4d11af642686d027.css +1 -0
  292. package/standalone/apps/frontend/package.json +6 -8
  293. package/standalone/package.json +1 -1
  294. package/standalone/packages/core/package.json +1 -1
  295. package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js +0 -659
  296. package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +0 -1
  297. package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route_client-reference-manifest.js +0 -1
  298. package/standalone/apps/frontend/.next/server/chunks/5015.js +0 -641
  299. package/standalone/apps/frontend/.next/server/chunks/5056.js +0 -23345
  300. package/standalone/apps/frontend/.next/server/chunks/5440.js +0 -69207
  301. package/standalone/apps/frontend/.next/server/chunks/7420.js +0 -10476
  302. package/standalone/apps/frontend/.next/static/chunks/1747.e63875a6fa49821c.js +0 -1
  303. package/standalone/apps/frontend/.next/static/chunks/1863.d3205f88d6edfe5f.js +0 -1
  304. package/standalone/apps/frontend/.next/static/chunks/2279.abf3c939f7bd44fa.js +0 -1
  305. package/standalone/apps/frontend/.next/static/chunks/2357.a75f04194a4dfd58.js +0 -1
  306. package/standalone/apps/frontend/.next/static/chunks/2663.20812ce79d05999b.js +0 -1
  307. package/standalone/apps/frontend/.next/static/chunks/2801.0ea7bf330ba9283a.js +0 -1
  308. package/standalone/apps/frontend/.next/static/chunks/3907.43a5d26ea19eac0c.js +0 -1
  309. package/standalone/apps/frontend/.next/static/chunks/4296.62618cb57ac26cb0.js +0 -1
  310. package/standalone/apps/frontend/.next/static/chunks/432.8cb455bfe72957a9.js +0 -1
  311. package/standalone/apps/frontend/.next/static/chunks/4745.e6ed60e3b3140203.js +0 -1
  312. package/standalone/apps/frontend/.next/static/chunks/5191.072e0f2a85d349d5.js +0 -1
  313. package/standalone/apps/frontend/.next/static/chunks/5405.85f0cc701aa7d13d.js +0 -1
  314. package/standalone/apps/frontend/.next/static/chunks/5499.e81f8af2544428b2.js +0 -1
  315. package/standalone/apps/frontend/.next/static/chunks/5600.5db5f94f2f65b3cf.js +0 -1
  316. package/standalone/apps/frontend/.next/static/chunks/5720.a73a00d3a3245d5d.js +0 -1
  317. package/standalone/apps/frontend/.next/static/chunks/5793.72f6a2d00649a22a.js +0 -1
  318. package/standalone/apps/frontend/.next/static/chunks/5802.5c30cb4e5490f7a0.js +0 -1
  319. package/standalone/apps/frontend/.next/static/chunks/5933.7a7ad21b052c1a48.js +0 -1
  320. package/standalone/apps/frontend/.next/static/chunks/6269.28ce5b518eff97d7.js +0 -1
  321. package/standalone/apps/frontend/.next/static/chunks/6711.0fbc582d204de7d6.js +0 -1
  322. package/standalone/apps/frontend/.next/static/chunks/7135.d5eb1e6536643fd0.js +0 -1
  323. package/standalone/apps/frontend/.next/static/chunks/7249.90de9d0b8e58d1fd.js +0 -1
  324. package/standalone/apps/frontend/.next/static/chunks/7328.6a2e068d20ee8128.js +0 -1
  325. package/standalone/apps/frontend/.next/static/chunks/7639.07c6b887aa816091.js +0 -1
  326. package/standalone/apps/frontend/.next/static/chunks/7958.fce4e54333f1b4e6.js +0 -1
  327. package/standalone/apps/frontend/.next/static/chunks/8578.c747cd35e98791c9.js +0 -1
  328. package/standalone/apps/frontend/.next/static/chunks/87c73c54-e11922cda838f8cc.js +0 -1
  329. package/standalone/apps/frontend/.next/static/chunks/891cff7f-d7677a8f46c597cc.js +0 -1
  330. package/standalone/apps/frontend/.next/static/chunks/8986.956226a604299681.js +0 -1
  331. package/standalone/apps/frontend/.next/static/chunks/9062.0c17877ace2d6057.js +0 -1
  332. package/standalone/apps/frontend/.next/static/chunks/9201.d94f3c0561593ebd.js +0 -1
  333. package/standalone/apps/frontend/.next/static/chunks/9298.19eee3b7bf0cc24f.js +0 -1
  334. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/about/page-36a8caa614bb409b.js +0 -1
  335. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/devops/page-1ca7ed50ccf09110.js +0 -1
  336. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/exchange/page-88da3ee9c5f3e55c.js +0 -1
  337. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/layout-956ba0ffa1199bff.js +0 -1
  338. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/page-08a07c949ef237ab.js +0 -1
  339. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/security/page-c0c358dc5a31b239.js +0 -1
  340. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/users/page-242c5ca40d8cfdad.js +0 -1
  341. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/error/page-2a3580ff60f5cf8a.js +0 -1
  342. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/mcp-setup/route-3d9d880043f60fda.js +0 -1
  343. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/signin/page-3103f17b15f4a29f.js +0 -1
  344. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/signup/page-f4ee887c37f6c7a1.js +0 -1
  345. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/welcome/page-17b751308fcc346c.js +0 -1
  346. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/compose/page-d377d7773b34d2b6.js +0 -1
  347. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/discover/page-7546934ec25d0e54.js +0 -1
  348. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/layout-8da5f1382c82517a.js +0 -1
  349. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/page-2b5d147fc5b43912.js +0 -1
  350. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/resource/[id]/page-880c1814b7e76270.js +0 -1
  351. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/layout-b1a244782c4e0bd5.js +0 -1
  352. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/entity-tags/page-27daa3fe9c00977c.js +0 -1
  353. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/layout-b60605082e447f42.js +0 -1
  354. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/linked-data/page-aa3d5c362260d076.js +0 -1
  355. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/page-4204b564011168b0.js +0 -1
  356. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/recent/page-b1695fc503599d6f.js +0 -1
  357. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/not-found-543e4c2e7b362566.js +0 -1
  358. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/page-1fb566c126836253.js +0 -1
  359. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/privacy/page-61b871e076d3b1e1.js +0 -1
  360. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/terms/page-95ce3054883c38ba.js +0 -1
  361. package/standalone/apps/frontend/.next/static/chunks/app/_global-error/page-79e9db846cb5b1b0.js +0 -1
  362. package/standalone/apps/frontend/.next/static/chunks/app/_not-found/page-919e7c64c5003035.js +0 -1
  363. package/standalone/apps/frontend/.next/static/chunks/app/api/auth/[...nextauth]/route-a0e1a9709b37316f.js +0 -1
  364. package/standalone/apps/frontend/.next/static/chunks/app/api/cookies/consent/route-7fe48e1a8a111543.js +0 -1
  365. package/standalone/apps/frontend/.next/static/chunks/app/api/cookies/export/route-32b06db0feb2e923.js +0 -1
  366. package/standalone/apps/frontend/.next/static/chunks/app/api/resources/[id]/route-d30a52945e1daab7.js +0 -1
  367. package/standalone/apps/frontend/.next/static/chunks/app/error-b7b996fcd4c281e1.js +0 -1
  368. package/standalone/apps/frontend/.next/static/chunks/app/global-error-9a4752b9d60178d7.js +0 -1
  369. package/standalone/apps/frontend/.next/static/chunks/app/layout-9c385c22b6e7c3bc.js +0 -1
  370. package/standalone/apps/frontend/.next/static/chunks/app/not-found-6c69bcb3b64a5d23.js +0 -1
  371. package/standalone/apps/frontend/.next/static/chunks/common-755716aba1c6723a.js +0 -63
  372. package/standalone/apps/frontend/.next/static/chunks/framework-b879567b90d34fb5.js +0 -1
  373. package/standalone/apps/frontend/.next/static/chunks/main-app-094b6e4e5016338b.js +0 -1
  374. package/standalone/apps/frontend/.next/static/chunks/next/dist/client/components/builtin/app-error-bc9b50e65cc512f7.js +0 -1
  375. package/standalone/apps/frontend/.next/static/chunks/next/dist/client/components/builtin/forbidden-02b63044bb72788d.js +0 -1
  376. package/standalone/apps/frontend/.next/static/chunks/next/dist/client/components/builtin/unauthorized-8922e7db57470d2a.js +0 -1
  377. package/standalone/apps/frontend/.next/static/chunks/vendors-63213253c18580f4.js +0 -40
  378. package/standalone/apps/frontend/.next/static/chunks/webpack-5c05c98a53141f15.js +0 -1
  379. package/standalone/apps/frontend/.next/static/css/05925ad6b995db98.css +0 -1
  380. /package/standalone/apps/frontend/.next/static/{7fwzlNjbcq2vtnM6QhHnm → 5dXfbPlvt4Js0PhZwYimS}/_ssgManifest.js +0 -0
@@ -41,1992 +41,1954 @@ function() { throw new Error("Attempted to call the default export of \"/home/ru
41
41
 
42
42
  /***/ }),
43
43
 
44
- /***/ 10597:
45
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
44
+ /***/ 10846:
45
+ /***/ ((module) => {
46
46
 
47
47
  "use strict";
48
- __webpack_require__.r(__webpack_exports__);
49
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
50
- /* harmony export */ __next_app__: () => (/* binding */ __next_app__),
51
- /* harmony export */ handler: () => (/* binding */ handler),
52
- /* harmony export */ routeModule: () => (/* binding */ routeModule)
53
- /* harmony export */ });
54
- /* harmony import */ var next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80666);
55
- /* harmony import */ var next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__);
56
- /* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51421);
57
- /* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4675);
58
- /* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29796);
59
- /* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__);
60
- /* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(54046);
61
- /* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__);
62
- /* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74928);
63
- /* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__);
64
- /* harmony import */ var next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19727);
65
- /* harmony import */ var next_dist_server_app_render_strip_flight_headers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24268);
66
- /* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(60402);
67
- /* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__);
68
- /* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(22040);
69
- /* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__);
70
- /* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27186);
71
- /* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__);
72
- /* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(49228);
73
- /* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__);
74
- /* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(97485);
75
- /* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__);
76
- /* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(261);
77
- /* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__);
78
- /* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(80885);
79
- /* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__);
80
- /* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7162);
81
- /* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__);
82
- /* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(26713);
83
- /* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__);
84
- /* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(70972);
85
- /* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__);
86
- /* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(57341);
87
- /* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__);
88
- /* harmony import */ var next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(95105);
89
- /* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(38038);
90
- /* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__);
91
- /* harmony import */ var next_dist_server_stream_utils_encoded_tags__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(29898);
92
- /* harmony import */ var next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(62918);
93
- /* harmony import */ var next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__);
94
- /* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(98798);
95
- /* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__);
96
- /* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(86439);
97
- /* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__);
98
- /* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(77068);
99
- /* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__);
100
- /* harmony import */ var next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(31214);
101
- /* harmony import */ var next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__);
102
- /* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(35402);
103
- /* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__);
104
- /* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(29059);
105
- /* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__);
106
- /* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(70722);
107
- /* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__);
108
- /* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(31182);
109
- /* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__);
110
- /* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(43954);
111
- /* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__);
112
- /* harmony import */ var next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(17891);
113
- /* harmony import */ var next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__);
114
- /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
115
- /* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__) if(["default","__next_app__","routeModule","handler"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__[__WEBPACK_IMPORT_KEY__]
116
- /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
117
- const module0 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 95235));
118
- const module1 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 25195));
119
- const module2 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
120
- const module3 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 72353));
121
- const module4 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 4253, 23));
122
- const module5 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 49184, 23));
123
- const module6 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 57149));
124
- const module7 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
125
- const module8 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 28310));
126
- const module9 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 59406));
127
- const module10 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
128
- const module11 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
129
- const page12 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 9839));
48
+ module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
130
49
 
50
+ /***/ }),
131
51
 
52
+ /***/ 17891:
53
+ /***/ ((module) => {
132
54
 
55
+ "use strict";
56
+ module.exports = require("next/dist/shared/lib/router/utils/get-segment-param");
133
57
 
58
+ /***/ }),
134
59
 
60
+ /***/ 19121:
61
+ /***/ ((module) => {
135
62
 
63
+ "use strict";
64
+ module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
136
65
 
66
+ /***/ }),
137
67
 
68
+ /***/ 19771:
69
+ /***/ ((module) => {
138
70
 
71
+ "use strict";
72
+ module.exports = require("process");
139
73
 
74
+ /***/ }),
140
75
 
76
+ /***/ 20400:
77
+ /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
141
78
 
79
+ Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 33898));
142
80
 
143
81
 
82
+ /***/ }),
144
83
 
84
+ /***/ 21444:
85
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
145
86
 
87
+ "use strict";
88
+ // ESM COMPAT FLAG
89
+ __webpack_require__.r(__webpack_exports__);
146
90
 
91
+ // EXPORTS
92
+ __webpack_require__.d(__webpack_exports__, {
93
+ "default": () => (/* binding */ RecentDocumentsPageWrapper)
94
+ });
147
95
 
96
+ // EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js
97
+ var react_jsx_runtime = __webpack_require__(92692);
98
+ // EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js
99
+ var react = __webpack_require__(71277);
100
+ // EXTERNAL MODULE: ../../node_modules/next-intl/dist/esm/production/react-client/index.js
101
+ var react_client = __webpack_require__(56305);
102
+ // EXTERNAL MODULE: __barrel_optimize__?names=Toolbar!=!../../packages/react-ui/dist/index.mjs
103
+ var dist = __webpack_require__(36297);
104
+ // EXTERNAL MODULE: ./src/components/toolbar/ToolbarPanels.tsx + 4 modules
105
+ var ToolbarPanels = __webpack_require__(76238);
106
+ // EXTERNAL MODULE: __barrel_optimize__?names=useEventSubscriptions,useLineNumbers,usePanelBrowse,useTheme!=!../../packages/react-ui/dist/index.mjs
107
+ var react_ui_dist = __webpack_require__(56677);
108
+ // EXTERNAL MODULE: ../../packages/react-ui/dist/index.mjs + 26 modules
109
+ var packages_react_ui_dist = __webpack_require__(41513);
110
+ ;// __barrel_optimize__?names=RecentDocumentsPage!=!../../packages/react-ui/dist/index.mjs
148
111
 
149
112
 
113
+ ;// ./src/app/[locale]/moderate/recent/page.tsx
114
+ /* __next_internal_client_entry_do_not_use__ default auto */
150
115
 
151
116
 
152
117
 
153
118
 
154
119
 
155
120
 
121
+ // Authentication is handled by middleware (proxy.ts)
122
+ // Only authenticated moderators/admins can reach this page
123
+ function RecentDocumentsPageWrapper() {
124
+ const t = (0,react_client/* useTranslations */.c)('ModerateRecent');
125
+ // Toolbar and settings state
126
+ const { activePanel } = (0,react_ui_dist/* usePanelBrowse */.ySJ)();
127
+ const { theme, setTheme } = (0,react_ui_dist/* useTheme */.DPo)();
128
+ const { showLineNumbers, toggleLineNumbers } = (0,react_ui_dist/* useLineNumbers */.cvF)();
129
+ const handleThemeChanged = (0,react.useCallback)(({ theme })=>{
130
+ setTheme(theme);
131
+ }, [
132
+ setTheme
133
+ ]);
134
+ const handleLineNumbersToggled = (0,react.useCallback)(()=>{
135
+ toggleLineNumbers();
136
+ }, [
137
+ toggleLineNumbers
138
+ ]);
139
+ (0,react_ui_dist/* useEventSubscriptions */.C$z)({
140
+ 'settings:theme-changed': handleThemeChanged,
141
+ 'settings:line-numbers-toggled': handleLineNumbersToggled
142
+ });
143
+ return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(packages_react_ui_dist.RecentDocumentsPage, {
144
+ hasDocuments: false,
145
+ isLoading: false,
146
+ theme: theme,
147
+ showLineNumbers: showLineNumbers,
148
+ activePanel: activePanel,
149
+ translations: {
150
+ pageTitle: t('pageTitle'),
151
+ pageDescription: t('pageDescription'),
152
+ sectionTitle: t('sectionTitle'),
153
+ sectionDescription: t('sectionDescription'),
154
+ noDocuments: t('noDocuments'),
155
+ activityWillAppear: t('activityWillAppear'),
156
+ loading: t('loading')
157
+ },
158
+ ToolbarPanels: ToolbarPanels/* ToolbarPanels */.t,
159
+ Toolbar: dist/* Toolbar */.M7E
160
+ });
161
+ }
156
162
 
157
- // We inject the tree and pages here so that we can use them in the route
158
- // module.
159
- const tree = {
160
- children: [
161
- '',
162
- {
163
- children: [
164
- '[locale]',
165
- {
166
- children: [
167
- 'moderate',
168
- {
169
- children: [
170
- 'recent',
171
- {
172
- children: ['__PAGE__', {}, {
173
- page: [page12, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/moderate/recent/page.tsx"],
174
-
175
- }]
176
- },
177
- {
178
- 'global-error': [module11, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
179
-
180
- },
181
- []
182
- ]
183
- },
184
- {
185
- 'layout': [module9, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/moderate/layout.tsx"],
186
- 'global-error': [module10, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
187
-
188
- },
189
- []
190
- ]
191
- },
192
- {
193
- 'layout': [module6, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/layout.tsx"],
194
- 'global-error': [module7, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
195
- 'not-found': [module8, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/not-found.tsx"],
196
-
197
- },
198
- ["_not-found","_global-error","api"]
199
- ]
200
- },
201
- {
202
- 'layout': [module0, "/home/runner/work/semiont/semiont/apps/frontend/src/app/layout.tsx"],
203
- 'error': [module1, "/home/runner/work/semiont/semiont/apps/frontend/src/app/error.tsx"],
204
- 'global-error': [module2, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
205
- 'not-found': [module3, "/home/runner/work/semiont/semiont/apps/frontend/src/app/not-found.tsx"],
206
- 'forbidden': [module4, "next/dist/client/components/builtin/forbidden.js"],
207
- 'unauthorized': [module5, "next/dist/client/components/builtin/unauthorized.js"],
208
-
209
- },
210
- []
211
- ]
212
- }.children;
213
- const __next_app_require__ = __webpack_require__
214
- const __next_app_load_chunk__ = () => Promise.resolve()
215
- const __next_app__ = {
216
- require: __next_app_require__,
217
- loadChunk: __next_app_load_chunk__
218
- };
219
163
 
164
+ /***/ }),
220
165
 
166
+ /***/ 25197:
167
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
221
168
 
169
+ "use strict";
170
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
171
+ /* harmony export */ C$z: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.useEventSubscriptions),
172
+ /* harmony export */ TbX: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.SimpleNavigation)
173
+ /* harmony export */ });
174
+ /* harmony import */ var _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41513);
222
175
 
223
176
 
224
177
 
178
+ /***/ }),
225
179
 
226
- // Create and export the route module that will be consumed.
227
- const routeModule = new next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppPageRouteModule({
228
- definition: {
229
- kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_PAGE,
230
- page: "/[locale]/moderate/recent/page",
231
- pathname: "/[locale]/moderate/recent",
232
- // The following aren't used in production.
233
- bundlePath: '',
234
- filename: '',
235
- appPaths: []
236
- },
237
- userland: {
238
- loaderTree: tree
239
- },
240
- distDir: ".next" || 0,
241
- relativeProjectDir: false || ''
180
+ /***/ 25888:
181
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
182
+
183
+ "use strict";
184
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
185
+ /* harmony export */ Ef3: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.LeftSidebar),
186
+ /* harmony export */ ffs: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.AuthTokenProvider),
187
+ /* harmony export */ pqI: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.ApiClientProvider),
188
+ /* harmony export */ wi6: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.Footer)
189
+ /* harmony export */ });
190
+ /* harmony import */ var _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41513);
191
+
192
+
193
+
194
+ /***/ }),
195
+
196
+ /***/ 26713:
197
+ /***/ ((module) => {
198
+
199
+ "use strict";
200
+ module.exports = require("next/dist/shared/lib/router/utils/is-bot");
201
+
202
+ /***/ }),
203
+
204
+ /***/ 28354:
205
+ /***/ ((module) => {
206
+
207
+ "use strict";
208
+ module.exports = require("util");
209
+
210
+ /***/ }),
211
+
212
+ /***/ 29294:
213
+ /***/ ((module) => {
214
+
215
+ "use strict";
216
+ module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
217
+
218
+ /***/ }),
219
+
220
+ /***/ 32037:
221
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
222
+
223
+ "use strict";
224
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
225
+ /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
226
+ /* harmony export */ });
227
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71277);
228
+
229
+ function ArrowsRightLeftIcon({ title, titleId, ...props }, svgRef) {
230
+ return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", Object.assign({
231
+ xmlns: "http://www.w3.org/2000/svg",
232
+ fill: "none",
233
+ viewBox: "0 0 24 24",
234
+ strokeWidth: 1.5,
235
+ stroke: "currentColor",
236
+ "aria-hidden": "true",
237
+ "data-slot": "icon",
238
+ ref: svgRef,
239
+ "aria-labelledby": titleId
240
+ }, props), title ? /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("title", {
241
+ id: titleId
242
+ }, title) : null, /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
243
+ strokeLinecap: "round",
244
+ strokeLinejoin: "round",
245
+ d: "M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"
246
+ }));
247
+ }
248
+ const ForwardRef = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(ArrowsRightLeftIcon);
249
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ForwardRef);
250
+
251
+
252
+ /***/ }),
253
+
254
+ /***/ 33873:
255
+ /***/ ((module) => {
256
+
257
+ "use strict";
258
+ module.exports = require("path");
259
+
260
+ /***/ }),
261
+
262
+ /***/ 33898:
263
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
264
+
265
+ "use strict";
266
+ // ESM COMPAT FLAG
267
+ __webpack_require__.r(__webpack_exports__);
268
+
269
+ // EXPORTS
270
+ __webpack_require__.d(__webpack_exports__, {
271
+ "default": () => (/* binding */ ModerateLayout)
242
272
  });
243
- function buildDynamicSegmentPlaceholder(param) {
244
- const { repeat, optional } = (0,next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__.getParamProperties)(param.paramType);
245
- if (optional) {
246
- return `[[...${param.paramName}]]`;
247
- }
248
- if (repeat) {
249
- return `[...${param.paramName}]`;
250
- }
251
- return `[${param.paramName}]`;
273
+
274
+ // EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js
275
+ var react_jsx_runtime = __webpack_require__(92692);
276
+ // EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js
277
+ var react = __webpack_require__(71277);
278
+ // EXTERNAL MODULE: ../../node_modules/next-intl/dist/esm/production/react-client/index.js
279
+ var react_client = __webpack_require__(56305);
280
+ // EXTERNAL MODULE: __barrel_optimize__?names=ApiClientProvider,AuthTokenProvider,Footer,LeftSidebar!=!../../packages/react-ui/dist/index.mjs
281
+ var dist = __webpack_require__(25888);
282
+ // EXTERNAL MODULE: ./src/i18n/routing.ts
283
+ var routing = __webpack_require__(99704);
284
+ // EXTERNAL MODULE: __barrel_optimize__?names=SimpleNavigation,useEventSubscriptions!=!../../packages/react-ui/dist/index.mjs
285
+ var react_ui_dist = __webpack_require__(25197);
286
+ ;// ../../node_modules/@heroicons/react/24/outline/esm/ClockIcon.js
287
+
288
+ function ClockIcon({ title, titleId, ...props }, svgRef) {
289
+ return /*#__PURE__*/ react.createElement("svg", Object.assign({
290
+ xmlns: "http://www.w3.org/2000/svg",
291
+ fill: "none",
292
+ viewBox: "0 0 24 24",
293
+ strokeWidth: 1.5,
294
+ stroke: "currentColor",
295
+ "aria-hidden": "true",
296
+ "data-slot": "icon",
297
+ ref: svgRef,
298
+ "aria-labelledby": titleId
299
+ }, props), title ? /*#__PURE__*/ react.createElement("title", {
300
+ id: titleId
301
+ }, title) : null, /*#__PURE__*/ react.createElement("path", {
302
+ strokeLinecap: "round",
303
+ strokeLinejoin: "round",
304
+ d: "M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
305
+ }));
252
306
  }
253
- /**
254
- * Builds the cache key for the most complete prerenderable shell we can derive
255
- * from the shell that matched this request. Only params that can still be
256
- * filled by `generateStaticParams` are substituted; fully dynamic params stay
257
- * as placeholders so a request like `/c/foo` can complete `/[one]/[two]` into
258
- * `/c/[two]` rather than `/c/foo`.
259
- */ function buildCompletedShellCacheKey(fallbackPathname, remainingPrerenderableParams, params) {
260
- const prerenderableParamsByName = new Map(remainingPrerenderableParams.map((param)=>[
261
- param.paramName,
262
- param
263
- ]));
264
- return fallbackPathname.split('/').map((segment)=>{
265
- const segmentParam = (0,next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__.getSegmentParam)(segment);
266
- if (!segmentParam) {
267
- return segment;
268
- }
269
- const remainingParam = prerenderableParamsByName.get(segmentParam.paramName);
270
- if (!remainingParam) {
271
- return segment;
272
- }
273
- const value = params == null ? void 0 : params[remainingParam.paramName];
274
- if (!value) {
275
- return segment;
276
- }
277
- const encodedValue = Array.isArray(value) ? value.map((item)=>encodeURIComponent(item)).join('/') : encodeURIComponent(value);
278
- return segment.replace(buildDynamicSegmentPlaceholder(remainingParam), encodedValue);
279
- }).join('/') || '/';
307
+ const ForwardRef = /*#__PURE__*/ react.forwardRef(ClockIcon);
308
+ /* harmony default export */ const esm_ClockIcon = (ForwardRef);
309
+
310
+ ;// ../../node_modules/@heroicons/react/24/outline/esm/TagIcon.js
311
+
312
+ function TagIcon({ title, titleId, ...props }, svgRef) {
313
+ return /*#__PURE__*/ react.createElement("svg", Object.assign({
314
+ xmlns: "http://www.w3.org/2000/svg",
315
+ fill: "none",
316
+ viewBox: "0 0 24 24",
317
+ strokeWidth: 1.5,
318
+ stroke: "currentColor",
319
+ "aria-hidden": "true",
320
+ "data-slot": "icon",
321
+ ref: svgRef,
322
+ "aria-labelledby": titleId
323
+ }, props), title ? /*#__PURE__*/ react.createElement("title", {
324
+ id: titleId
325
+ }, title) : null, /*#__PURE__*/ react.createElement("path", {
326
+ strokeLinecap: "round",
327
+ strokeLinejoin: "round",
328
+ d: "M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 0 0 5.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 0 0 9.568 3Z"
329
+ }), /*#__PURE__*/ react.createElement("path", {
330
+ strokeLinecap: "round",
331
+ strokeLinejoin: "round",
332
+ d: "M6 6h.008v.008H6V6Z"
333
+ }));
280
334
  }
281
- async function handler(req, res, ctx) {
282
- var _this, _prerenderManifest_routes_resolvedPathname, _prerenderInfo_fallbackRootParams, _prerenderInfo_fallbackRouteParams;
283
- if (ctx.requestMeta) {
284
- (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.setRequestMeta)(req, ctx.requestMeta);
285
- }
286
- if (routeModule.isDev) {
287
- (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
288
- }
289
- const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'minimalMode'));
290
- let srcPage = "/[locale]/moderate/recent/page";
291
- // turbopack doesn't normalize `/index` in the page name
292
- // so we need to to process dynamic routes properly
293
- // TODO: fix turbopack providing differing value from webpack
294
- if (false) {} else if (srcPage === '/index') {
295
- // we always normalize /index specifically
296
- srcPage = '/';
297
- }
298
- const multiZoneDraftMode = false;
299
- const prepareResult = await routeModule.prepare(req, res, {
300
- srcPage,
301
- multiZoneDraftMode
302
- });
303
- if (!prepareResult) {
304
- res.statusCode = 400;
305
- res.end('Bad Request');
306
- ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
307
- return null;
308
- }
309
- const { buildId, query, params, pageIsDynamic, buildManifest, nextFontManifest, reactLoadableManifest, serverActionsManifest, clientReferenceManifest, subresourceIntegrityManifest, prerenderManifest, isDraftMode, resolvedPathname, revalidateOnlyGenerated, routerServerContext, nextConfig, parsedUrl, interceptionRoutePatterns, deploymentId, clientAssetToken } = prepareResult;
310
- const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__.normalizeAppPath)(srcPage);
311
- let { isOnDemandRevalidate } = prepareResult;
312
- // We use the resolvedPathname instead of the parsedUrl.pathname because it
313
- // is not rewritten as resolvedPathname is. This will ensure that the correct
314
- // prerender info is used instead of using the original pathname as the
315
- // source. If however PPR is enabled and cacheComponents is disabled, we
316
- // treat the pathname as dynamic. Currently, there's a bug in the PPR
317
- // implementation that incorrectly leaves %%drp placeholders in the output of
318
- // parallel routes. This is addressed with cacheComponents.
319
- const prerenderMatch = nextConfig.experimental.ppr && !nextConfig.cacheComponents && (0,next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__.isInterceptionRouteAppPath)(resolvedPathname) ? null : routeModule.match(resolvedPathname, prerenderManifest);
320
- const prerenderInfo = (prerenderMatch == null ? void 0 : prerenderMatch.route) ?? null;
321
- const isPrerendered = !!prerenderManifest.routes[resolvedPathname];
322
- const userAgent = req.headers['user-agent'] || '';
323
- const botType = (0,next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__.getBotType)(userAgent);
324
- const isHtmlBot = (0,next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__.isHtmlBotRequest)(req);
325
- /**
326
- * If true, this indicates that the request being made is for an app
327
- * prefetch request.
328
- */ const isPrefetchRSCRequest = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'isPrefetchRSCRequest') ?? req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_ROUTER_PREFETCH_HEADER] === '1' // exclude runtime prefetches, which use '2'
329
- ;
330
- // NOTE: Don't delete headers[RSC] yet, it still needs to be used in renderToHTML later
331
- const isRSCRequest = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'isRSCRequest') ?? Boolean(req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_HEADER]);
332
- const isPossibleServerAction = (0,next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__.getIsPossibleServerAction)(req);
333
- /**
334
- * If the route being rendered is an app page, and the ppr feature has been
335
- * enabled, then the given route _could_ support PPR.
336
- */ const couldSupportPPR = (0,next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__.checkIsAppPPREnabled)(nextConfig.experimental.ppr);
337
- // Stash postponed state for server actions when in minimal mode.
338
- // We extract it here so the RDC is available for the re-render after the action completes.
339
- const resumeStateLengthHeader = req.headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_RESUME_STATE_LENGTH_HEADER];
340
- if (!(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'postponed') && isMinimalMode && couldSupportPPR && isPossibleServerAction && resumeStateLengthHeader && typeof resumeStateLengthHeader === 'string') {
341
- const stateLength = parseInt(resumeStateLengthHeader, 10);
342
- const { maxPostponedStateSize, maxPostponedStateSizeBytes } = (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize);
343
- if (!isNaN(stateLength) && stateLength > 0) {
344
- var _nextConfig_experimental_serverActions;
345
- if (stateLength > maxPostponedStateSizeBytes) {
346
- res.statusCode = 413;
347
- res.end((0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getPostponedStateExceededErrorMessage)(maxPostponedStateSize));
348
- ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
349
- return null;
350
- }
351
- // Calculate max total body size to prevent buffering excessively large
352
- // payloads before the action handler checks. We use stateLength (not
353
- // maxPostponedStateSizeBytes) so the postponed state doesn't eat into
354
- // the action body budget - it's already validated above.
355
- const defaultActionBodySizeLimit = '1 MB';
356
- const actionBodySizeLimit = ((_nextConfig_experimental_serverActions = nextConfig.experimental.serverActions) == null ? void 0 : _nextConfig_experimental_serverActions.bodySizeLimit) ?? defaultActionBodySizeLimit;
357
- const actionBodySizeLimitBytes = actionBodySizeLimit !== defaultActionBodySizeLimit ? (__webpack_require__(32683).parse)(actionBodySizeLimit) : 1024 * 1024 // 1 MB
358
- ;
359
- const maxTotalBodySize = stateLength + actionBodySizeLimitBytes;
360
- const fullBody = await (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.readBodyWithSizeLimit)(req, maxTotalBodySize);
361
- if (fullBody === null) {
362
- res.statusCode = 413;
363
- res.end(`Request body exceeded limit. ` + `To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit`);
364
- ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
365
- return null;
366
- }
367
- if (fullBody.length >= stateLength) {
368
- // Extract postponed state from the beginning
369
- const postponedState = fullBody.subarray(0, stateLength).toString('utf8');
370
- (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'postponed', postponedState);
371
- // Store the remaining action body for the action handler
372
- const actionBody = fullBody.subarray(stateLength);
373
- (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'actionBody', actionBody);
374
- } else {
375
- throw Object.defineProperty(new Error(`invariant: expected ${stateLength} bytes of postponed state but only received ${fullBody.length} bytes`), "__NEXT_ERROR_CODE", {
376
- value: "E979",
377
- enumerable: false,
378
- configurable: true
379
- });
380
- }
381
- }
382
- }
383
- if (!(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'postponed') && couldSupportPPR && req.headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_RESUME_HEADER] === '1' && req.method === 'POST') {
384
- const { maxPostponedStateSize, maxPostponedStateSizeBytes } = (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize);
385
- // Decode the postponed state from the request body, it will come as
386
- // an array of buffers, so collect them and then concat them to form
387
- // the string.
388
- const body = await (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.readBodyWithSizeLimit)(req, maxPostponedStateSizeBytes);
389
- if (body === null) {
390
- res.statusCode = 413;
391
- res.end((0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getPostponedStateExceededErrorMessage)(maxPostponedStateSize));
392
- ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
393
- return null;
394
- }
395
- const postponed = body.toString('utf8');
396
- (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'postponed', postponed);
397
- }
398
- // When enabled, this will allow the use of the `?__nextppronly` query to
399
- // enable debugging of the static shell.
400
- const hasDebugStaticShellQuery = false && 0;
401
- // When enabled, this will allow the use of the `?__nextppronly` query
402
- // to enable debugging of the fallback shell.
403
- const hasDebugFallbackShellQuery = hasDebugStaticShellQuery && query.__nextppronly === 'fallback';
404
- // Whether the testing API is exposed (dev mode or explicit flag)
405
- const exposeTestingApi = routeModule.isDev === true || nextConfig.experimental.exposeTestingApiInProductionBuild === true;
406
- // Enable the Instant Navigation Testing API. Renders only the prefetched
407
- // portion of the page, excluding dynamic content. This allows tests to
408
- // assert on the prefetched UI state deterministically.
409
- // - Header: Used for client-side navigations where we can set request headers
410
- // - Cookie: Used for MPA navigations (page reload, full page load) where we
411
- // can't set request headers. Only applies to document requests (no RSC
412
- // header) - RSC requests should proceed normally even during a locked scope,
413
- // with blocking happening on the client side.
414
- const isInstantNavigationTest = exposeTestingApi && (req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_INSTANT_PREFETCH_HEADER] === '1' || req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_HEADER] === undefined && typeof req.headers.cookie === 'string' && req.headers.cookie.includes(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_INSTANT_TEST_COOKIE + '='));
415
- // This page supports PPR if it is marked as being `PARTIALLY_STATIC` in the
416
- // prerender manifest and this is an app page.
417
- const isRoutePPREnabled = // When the instant navigation testing API is active, enable the PPR
418
- // prerender path even without Cache Components. In dev mode without CC,
419
- // static pages need this path to produce buffered segment data (the
420
- // legacy prerender path hangs in dev mode).
421
- (couldSupportPPR || isInstantNavigationTest) && (((_this = prerenderManifest.routes[normalizedSrcPage] ?? prerenderManifest.dynamicRoutes[normalizedSrcPage]) == null ? void 0 : _this.renderingMode) === 'PARTIALLY_STATIC' || // Ideally we'd want to check the appConfig to see if this page has PPR
422
- // enabled or not, but that would require plumbing the appConfig through
423
- // to the server during development. We assume that the page supports it
424
- // but only during development or when the testing API is exposed.
425
- (hasDebugStaticShellQuery || isInstantNavigationTest) && (exposeTestingApi || (routerServerContext == null ? void 0 : routerServerContext.experimentalTestProxy) === true));
426
- const isDebugStaticShell = (hasDebugStaticShellQuery || isInstantNavigationTest) && isRoutePPREnabled;
427
- // We should enable debugging dynamic accesses when the static shell
428
- // debugging has been enabled and we're also in development mode.
429
- const isDebugDynamicAccesses = isDebugStaticShell && routeModule.isDev === true;
430
- const isDebugFallbackShell = hasDebugFallbackShellQuery && isRoutePPREnabled;
431
- // If we're in minimal mode, then try to get the postponed information from
432
- // the request metadata. If available, use it for resuming the postponed
433
- // render.
434
- const minimalPostponed = isRoutePPREnabled ? (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'postponed') : undefined;
435
- // If PPR is enabled, and this is a RSC request (but not a prefetch), then
436
- // we can use this fact to only generate the flight data for the request
437
- // because we can't cache the HTML (as it's also dynamic).
438
- const staticPrefetchDataRoute = (_prerenderManifest_routes_resolvedPathname = prerenderManifest.routes[resolvedPathname]) == null ? void 0 : _prerenderManifest_routes_resolvedPathname.prefetchDataRoute;
439
- let isDynamicRSCRequest = isRoutePPREnabled && isRSCRequest && !isPrefetchRSCRequest && // If generated at build time, treat the RSC request as static
440
- // so we can serve the prebuilt .rsc without a dynamic render.
441
- // Only do this for routes that have a concrete prefetchDataRoute.
442
- !staticPrefetchDataRoute;
443
- // During a PPR revalidation, the RSC request is not dynamic if we do not have the postponed data.
444
- // We only attach the postponed data during a resume. If there's no postponed data, then it must be a revalidation.
445
- // This is to ensure that we don't bypass the cache during a revalidation.
446
- if (isMinimalMode) {
447
- isDynamicRSCRequest = isDynamicRSCRequest && !!minimalPostponed;
448
- }
449
- // Need to read this before it's stripped by stripFlightHeaders. We don't
450
- // need to transfer it to the request meta because it's only read
451
- // within this function; the static segment data should have already been
452
- // generated, so we will always either return a static response or a 404.
453
- const segmentPrefetchHeader = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'segmentPrefetchRSCRequest');
454
- // TODO: investigate existing bug with shouldServeStreamingMetadata always
455
- // being true for a revalidate due to modifying the base-server this.renderOpts
456
- // when fixing this to correct logic it causes hydration issue since we set
457
- // serveStreamingMetadata to true during export
458
- const serveStreamingMetadata = botType && isRoutePPREnabled ? false : !userAgent ? true : (0,next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__.shouldServeStreamingMetadata)(userAgent, nextConfig.htmlLimitedBots);
459
- const isSSG = Boolean((prerenderInfo || isPrerendered || prerenderManifest.routes[normalizedSrcPage]) && // If this is a bot request and PPR is enabled, then we don't want
460
- // to serve a static response. This applies to both DOM bots (like Googlebot)
461
- // and HTML-limited bots.
462
- !(botType && isRoutePPREnabled));
463
- // When a page supports cacheComponents, we can support RDC for Navigations
464
- const supportsRDCForNavigations = isRoutePPREnabled && nextConfig.cacheComponents === true;
465
- // In development, we always want to generate dynamic HTML.
466
- const supportsDynamicResponse = // If we're in development, we always support dynamic HTML, unless it's
467
- // a data request, in which case we only produce static HTML.
468
- routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports
469
- // dynamic HTML.
470
- !isSSG || // If this request has provided postponed data, it supports dynamic
471
- // HTML.
472
- typeof minimalPostponed === 'string' || // If this handler supports onCacheEntryV2, then we can only support
473
- // dynamic responses if it's a dynamic RSC request and not in minimal mode. If it
474
- // doesn't support it we must fallback to the default behavior.
475
- (supportsRDCForNavigations && (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntryV2') ? // which will generate the RDC for the route. When resuming a Dynamic
476
- // RSC request, we'll pass the minimal postponed data to the render
477
- // which will trigger the `supportsDynamicResponse` to be true.
478
- isDynamicRSCRequest && !isMinimalMode : isDynamicRSCRequest);
479
- // When bots request PPR page, perform the full dynamic rendering.
480
- // This applies to both DOM bots (like Googlebot) and HTML-limited bots.
481
- const shouldWaitOnAllReady = Boolean(botType) && isRoutePPREnabled;
482
- const remainingPrerenderableParams = (prerenderInfo == null ? void 0 : prerenderInfo.remainingPrerenderableParams) ?? [];
483
- const hasUnresolvedRootFallbackParams = (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === null && (((_prerenderInfo_fallbackRootParams = prerenderInfo.fallbackRootParams) == null ? void 0 : _prerenderInfo_fallbackRootParams.length) ?? 0) > 0;
484
- let ssgCacheKey = null;
485
- if (!isDraftMode && isSSG && !supportsDynamicResponse && !isPossibleServerAction && !minimalPostponed && !isDynamicRSCRequest) {
486
- // For normal SSG routes we cache by the fully resolved pathname. For
487
- // partial fallbacks we instead derive the cache key from the shell
488
- // that matched this request so `/prefix/[one]/[two]` can specialize into
489
- // `/prefix/c/[two]` without promoting all the way to `/prefix/c/foo`.
490
- const fallbackPathname = prerenderMatch ? typeof (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === 'string' ? prerenderInfo.fallback : prerenderMatch.source : null;
491
- if (nextConfig.experimental.partialFallbacks === true && fallbackPathname && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) && !hasUnresolvedRootFallbackParams) {
492
- if (remainingPrerenderableParams.length > 0) {
493
- const completedShellCacheKey = buildCompletedShellCacheKey(fallbackPathname, remainingPrerenderableParams, params);
494
- // If applying the current request params doesn't make the shell any
495
- // more complete, then this shell is already at its most complete
496
- // form and should remain shared rather than creating a new cache entry.
497
- ssgCacheKey = completedShellCacheKey !== fallbackPathname ? completedShellCacheKey : null;
498
- }
499
- } else {
500
- ssgCacheKey = resolvedPathname;
335
+ const TagIcon_ForwardRef = /*#__PURE__*/ react.forwardRef(TagIcon);
336
+ /* harmony default export */ const esm_TagIcon = (TagIcon_ForwardRef);
337
+
338
+ ;// ../../node_modules/@heroicons/react/24/outline/esm/BookOpenIcon.js
339
+
340
+ function BookOpenIcon({ title, titleId, ...props }, svgRef) {
341
+ return /*#__PURE__*/ react.createElement("svg", Object.assign({
342
+ xmlns: "http://www.w3.org/2000/svg",
343
+ fill: "none",
344
+ viewBox: "0 0 24 24",
345
+ strokeWidth: 1.5,
346
+ stroke: "currentColor",
347
+ "aria-hidden": "true",
348
+ "data-slot": "icon",
349
+ ref: svgRef,
350
+ "aria-labelledby": titleId
351
+ }, props), title ? /*#__PURE__*/ react.createElement("title", {
352
+ id: titleId
353
+ }, title) : null, /*#__PURE__*/ react.createElement("path", {
354
+ strokeLinecap: "round",
355
+ strokeLinejoin: "round",
356
+ d: "M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"
357
+ }));
358
+ }
359
+ const BookOpenIcon_ForwardRef = /*#__PURE__*/ react.forwardRef(BookOpenIcon);
360
+ /* harmony default export */ const esm_BookOpenIcon = (BookOpenIcon_ForwardRef);
361
+
362
+ // EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/ArrowsRightLeftIcon.js
363
+ var ArrowsRightLeftIcon = __webpack_require__(32037);
364
+ // EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/ChevronLeftIcon.js
365
+ var ChevronLeftIcon = __webpack_require__(71062);
366
+ // EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/Bars3Icon.js
367
+ var Bars3Icon = __webpack_require__(67255);
368
+ ;// ./src/components/moderation/ModerationNavigation.tsx
369
+ /* __next_internal_client_entry_do_not_use__ ModerationNavigation auto */
370
+
371
+
372
+
373
+
374
+
375
+
376
+ function ModerationNavigation({ isCollapsed, toggleCollapsed, navigationMenu }) {
377
+ const t = (0,react_client/* useTranslations */.c)('Moderation');
378
+ const tSidebar = (0,react_client/* useTranslations */.c)('Sidebar');
379
+ const pathname = (0,routing/* usePathname */.a8)();
380
+ // Handle sidebar toggle events
381
+ const handleSidebarToggle = (0,react.useCallback)(()=>{
382
+ toggleCollapsed();
383
+ }, [
384
+ toggleCollapsed
385
+ ]);
386
+ // Subscribe to sidebar toggle events
387
+ (0,react_ui_dist/* useEventSubscriptions */.C$z)({
388
+ 'browse:sidebar-toggle': handleSidebarToggle
389
+ });
390
+ const navigation = [
391
+ {
392
+ name: t('recentResources'),
393
+ href: '/moderate/recent',
394
+ icon: esm_ClockIcon,
395
+ description: t('recentResourcesDescription')
396
+ },
397
+ {
398
+ name: t('entityTags'),
399
+ href: '/moderate/entity-tags',
400
+ icon: esm_TagIcon,
401
+ description: t('entityTagsDescription')
402
+ },
403
+ {
404
+ name: t('tagSchemas'),
405
+ href: '/moderate/tag-schemas',
406
+ icon: esm_BookOpenIcon,
407
+ description: t('tagSchemasDescription')
408
+ },
409
+ {
410
+ name: t('linkedData'),
411
+ href: '/moderate/linked-data',
412
+ icon: ArrowsRightLeftIcon/* default */.A,
413
+ description: t('linkedDataDescription')
501
414
  }
502
- }
503
- // the staticPathKey differs from ssgCacheKey since
504
- // ssgCacheKey is null in dev since we're always in "dynamic"
505
- // mode in dev to bypass the cache. It can also be null for partial
506
- // fallback shells that should remain shared and must not create a
507
- // param-specific ISR entry, but we still need to honor fallback handling.
508
- let staticPathKey = ssgCacheKey;
509
- if (!staticPathKey && (routeModule.isDev || isSSG && pageIsDynamic && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams))) {
510
- staticPathKey = resolvedPathname;
511
- }
512
- // If this is a request for an app path that should be statically generated
513
- // and we aren't in the edge runtime, strip the flight headers so it will
514
- // generate the static response.
515
- if (!routeModule.isDev && !isDraftMode && isSSG && isRSCRequest && !isDynamicRSCRequest) {
516
- (0,next_dist_server_app_render_strip_flight_headers__WEBPACK_IMPORTED_MODULE_7__/* .stripFlightHeaders */ .d)(req.headers);
517
- }
518
- const ComponentMod = {
519
- ...next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__,
520
- tree,
521
- handler,
522
- routeModule,
523
- __next_app__
524
- };
525
- // Before rendering (which initializes component tree modules), we have to
526
- // set the reference manifests to our global store so Server Action's
527
- // encryption util can access to them at the top level of the page module.
528
- if (serverActionsManifest && clientReferenceManifest) {
529
- (0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__.setManifestsSingleton)({
530
- page: srcPage,
531
- clientReferenceManifest,
532
- serverActionsManifest
533
- });
534
- }
535
- const method = req.method || 'GET';
536
- const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__.getTracer)();
537
- const activeSpan = tracer.getActiveScopeSpan();
538
- const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
539
- const remainingFallbackRouteParams = nextConfig.experimental.partialFallbacks === true && remainingPrerenderableParams.length > 0 ? (prerenderInfo == null ? void 0 : (_prerenderInfo_fallbackRouteParams = prerenderInfo.fallbackRouteParams) == null ? void 0 : _prerenderInfo_fallbackRouteParams.filter((param)=>!remainingPrerenderableParams.some((prerenderableParam)=>prerenderableParam.paramName === param.paramName))) ?? [] : [];
540
- const render404 = async ()=>{
541
- // TODO: should route-module itself handle rendering the 404
542
- if (routerServerContext == null ? void 0 : routerServerContext.render404) {
543
- await routerServerContext.render404(req, res, parsedUrl, false);
544
- } else {
545
- res.end('This page could not be found');
546
- }
547
- return null;
548
- };
549
- try {
550
- const varyHeader = routeModule.getVaryHeader(resolvedPathname, interceptionRoutePatterns);
551
- res.setHeader('Vary', varyHeader);
552
- let parentSpan;
553
- const invokeRouteModule = async (span, context)=>{
554
- const nextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__.NodeNextRequest(req);
555
- const nextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__.NodeNextResponse(res);
556
- return routeModule.render(nextReq, nextRes, context).finally(()=>{
557
- if (!span) return;
558
- span.setAttributes({
559
- 'http.status_code': res.statusCode,
560
- 'next.rsc': false
561
- });
562
- const rootSpanAttributes = tracer.getRootSpanAttributes();
563
- // We were unable to get attributes, probably OTEL is not enabled
564
- if (!rootSpanAttributes) {
565
- return;
566
- }
567
- if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__.BaseServerSpan.handleRequest) {
568
- console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
569
- return;
570
- }
571
- const route = rootSpanAttributes.get('next.route');
572
- if (route) {
573
- const name = `${method} ${route}`;
574
- span.setAttributes({
575
- 'next.route': route,
576
- 'http.route': route,
577
- 'next.span_name': name
578
- });
579
- span.updateName(name);
580
- // Propagate http.route to the parent span if one exists (e.g.
581
- // a platform-created HTTP span in adapter deployments).
582
- if (parentSpan && parentSpan !== span) {
583
- parentSpan.setAttribute('http.route', route);
584
- parentSpan.updateName(name);
585
- }
586
- } else {
587
- span.updateName(`${method} ${srcPage}`);
588
- }
589
- });
590
- };
591
- const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);
592
- incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
593
- globalThis.__incrementalCache = incrementalCache;
594
- const doRender = async ({ span, postponed, fallbackRouteParams, forceStaticRender })=>{
595
- const context = {
596
- query,
597
- params,
598
- page: normalizedSrcPage,
599
- sharedContext: {
600
- buildId,
601
- deploymentId,
602
- clientAssetToken
603
- },
604
- serverComponentsHmrCache: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'serverComponentsHmrCache'),
605
- fallbackRouteParams,
606
- renderOpts: {
607
- App: ()=>null,
608
- Document: ()=>null,
609
- pageConfig: {},
610
- ComponentMod,
611
- Component: (0,next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_6__/* .interopDefault */ .T)(ComponentMod),
612
- params,
613
- routeModule,
614
- page: srcPage,
615
- postponed,
616
- shouldWaitOnAllReady,
617
- serveStreamingMetadata,
618
- supportsDynamicResponse: typeof postponed === 'string' || supportsDynamicResponse,
619
- buildManifest,
620
- nextFontManifest,
621
- reactLoadableManifest,
622
- subresourceIntegrityManifest,
623
- setCacheStatus: routerServerContext == null ? void 0 : routerServerContext.setCacheStatus,
624
- setIsrStatus: routerServerContext == null ? void 0 : routerServerContext.setIsrStatus,
625
- setReactDebugChannel: routerServerContext == null ? void 0 : routerServerContext.setReactDebugChannel,
626
- sendErrorsToBrowser: routerServerContext == null ? void 0 : routerServerContext.sendErrorsToBrowser,
627
- dir: true ? (__webpack_require__(33873).join)(/* turbopackIgnore: true */ process.cwd(), routeModule.relativeProjectDir) : 0,
628
- isDraftMode,
629
- botType,
630
- isOnDemandRevalidate,
631
- isPossibleServerAction,
632
- assetPrefix: nextConfig.assetPrefix,
633
- nextConfigOutput: nextConfig.output,
634
- crossOrigin: nextConfig.crossOrigin,
635
- trailingSlash: nextConfig.trailingSlash,
636
- images: nextConfig.images,
637
- previewProps: prerenderManifest.preview,
638
- enableTainting: nextConfig.experimental.taint,
639
- htmlLimitedBots: nextConfig.htmlLimitedBots,
640
- reactMaxHeadersLength: nextConfig.reactMaxHeadersLength,
641
- multiZoneDraftMode,
642
- incrementalCache,
643
- cacheLifeProfiles: nextConfig.cacheLife,
644
- basePath: nextConfig.basePath,
645
- serverActions: nextConfig.experimental.serverActions,
646
- logServerFunctions: typeof nextConfig.logging === 'object' && Boolean(nextConfig.logging.serverFunctions),
647
- ...isDebugStaticShell || isDebugDynamicAccesses || isDebugFallbackShell ? {
648
- isBuildTimePrerendering: true,
649
- supportsDynamicResponse: false,
650
- isStaticGeneration: true,
651
- isDebugDynamicAccesses: isDebugDynamicAccesses
652
- } : {},
653
- cacheComponents: Boolean(nextConfig.cacheComponents),
654
- experimental: {
655
- isRoutePPREnabled,
656
- expireTime: nextConfig.expireTime,
657
- staleTimes: nextConfig.experimental.staleTimes,
658
- dynamicOnHover: Boolean(nextConfig.experimental.dynamicOnHover),
659
- optimisticRouting: Boolean(nextConfig.experimental.optimisticRouting),
660
- inlineCss: Boolean(nextConfig.experimental.inlineCss),
661
- prefetchInlining: nextConfig.experimental.prefetchInlining ?? false,
662
- authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
663
- cachedNavigations: Boolean(nextConfig.experimental.cachedNavigations),
664
- clientTraceMetadata: nextConfig.experimental.clientTraceMetadata || [],
665
- clientParamParsingOrigins: nextConfig.experimental.clientParamParsingOrigins,
666
- maxPostponedStateSizeBytes: (0,next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__.parseMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize)
667
- },
668
- waitUntil: ctx.waitUntil,
669
- onClose: (cb)=>{
670
- res.on('close', cb);
671
- },
672
- onAfterTaskError: ()=>{},
673
- onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext),
674
- err: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'invokeError')
675
- }
676
- };
677
- // When we're revalidating in the background, we should not allow dynamic
678
- // responses.
679
- if (forceStaticRender) {
680
- context.renderOpts.supportsDynamicResponse = false;
681
- }
682
- const result = await invokeRouteModule(span, context);
683
- const { metadata } = result;
684
- const { cacheControl, headers = {}, // Add any fetch tags that were on the page to the response headers.
685
- fetchTags: cacheTags, fetchMetrics } = metadata;
686
- if (cacheTags) {
687
- headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
688
- }
689
- // Pull any fetch metrics from the render onto the request.
690
- ;
691
- req.fetchMetrics = fetchMetrics;
692
- // we don't throw static to dynamic errors in dev as isSSG
693
- // is a best guess in dev since we don't have the prerender pass
694
- // to know whether the path is actually static or not
695
- if (isSSG && (cacheControl == null ? void 0 : cacheControl.revalidate) === 0 && !routeModule.isDev && !isRoutePPREnabled) {
696
- const staticBailoutInfo = metadata.staticBailoutInfo;
697
- const err = Object.defineProperty(new Error(`Page changed from static to dynamic at runtime ${resolvedPathname}${(staticBailoutInfo == null ? void 0 : staticBailoutInfo.description) ? `, reason: ${staticBailoutInfo.description}` : ``}` + `\nsee more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`), "__NEXT_ERROR_CODE", {
698
- value: "E132",
699
- enumerable: false,
700
- configurable: true
701
- });
702
- if (staticBailoutInfo == null ? void 0 : staticBailoutInfo.stack) {
703
- const stack = staticBailoutInfo.stack;
704
- err.stack = err.message + stack.substring(stack.indexOf('\n'));
705
- }
706
- throw err;
707
- }
708
- return {
709
- value: {
710
- kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE,
711
- html: result,
712
- headers,
713
- rscData: metadata.flightData,
714
- postponed: metadata.postponed,
715
- status: metadata.statusCode,
716
- segmentData: metadata.segmentData
717
- },
718
- cacheControl
719
- };
720
- };
721
- const responseGenerator = async ({ hasResolved, previousCacheEntry: previousIncrementalCacheEntry, isRevalidating, span, forceStaticRender = false })=>{
722
- const isProduction = routeModule.isDev === false;
723
- const didRespond = hasResolved || res.writableEnded;
724
- // skip on-demand revalidate if cache is not present and
725
- // revalidate-if-generated is set
726
- if (isOnDemandRevalidate && revalidateOnlyGenerated && !previousIncrementalCacheEntry && !isMinimalMode) {
727
- if (routerServerContext == null ? void 0 : routerServerContext.render404) {
728
- await routerServerContext.render404(req, res);
729
- } else {
730
- res.statusCode = 404;
731
- res.end('This page could not be found');
732
- }
733
- return null;
734
- }
735
- let fallbackMode;
736
- if (prerenderInfo) {
737
- fallbackMode = (0,next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.parseFallbackField)(prerenderInfo.fallback);
738
- }
739
- if (nextConfig.experimental.partialFallbacks === true && (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === null && !hasUnresolvedRootFallbackParams && remainingPrerenderableParams.length > 0) {
740
- // Generic source shells without unresolved root params don't have a
741
- // concrete fallback file of their own, so they're marked as blocking.
742
- // When we can complete the shell into a more specific
743
- // prerendered shell for this request, treat it like a prerender
744
- // fallback so we can serve that shell instead of blocking on the full
745
- // route. Root-param shells stay blocking, since unknown root branches
746
- // should not inherit a shell from another generated branch.
747
- fallbackMode = next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.PRERENDER;
748
- }
749
- // When serving a HTML bot request, we want to serve a blocking render and
750
- // not the prerendered page. This ensures that the correct content is served
751
- // to the bot in the head.
752
- if (fallbackMode === next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.PRERENDER && (0,next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__.isBot)(userAgent)) {
753
- if (!isRoutePPREnabled || isHtmlBot) {
754
- fallbackMode = next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.BLOCKING_STATIC_RENDER;
755
- }
756
- }
757
- if ((previousIncrementalCacheEntry == null ? void 0 : previousIncrementalCacheEntry.isStale) === -1) {
758
- isOnDemandRevalidate = true;
759
- }
760
- // TODO: adapt for PPR
761
- // only allow on-demand revalidate for fallback: true/blocking
762
- // or for prerendered fallback: false paths
763
- if (isOnDemandRevalidate && (fallbackMode !== next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.NOT_FOUND || previousIncrementalCacheEntry)) {
764
- fallbackMode = next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.BLOCKING_STATIC_RENDER;
765
- }
766
- if (!isMinimalMode && fallbackMode !== next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.BLOCKING_STATIC_RENDER && staticPathKey && !didRespond && !isDraftMode && pageIsDynamic && (isProduction || !isPrerendered)) {
767
- // if the page has dynamicParams: false and this pathname wasn't
768
- // prerendered trigger the no fallback handling
769
- if (// In development, fall through to render to handle missing
770
- // getStaticPaths.
771
- (isProduction || prerenderInfo) && // When fallback isn't present, abort this render so we 404
772
- fallbackMode === next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.NOT_FOUND) {
773
- if (nextConfig.adapterPath) {
774
- return await render404();
775
- }
776
- throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__.NoFallbackError();
777
- }
778
- // When cacheComponents is enabled, we can use the fallback
779
- // response if the request is not a dynamic RSC request because the
780
- // RSC data when this feature flag is enabled does not contain any
781
- // param references. Without this feature flag enabled, the RSC data
782
- // contains param references, and therefore we can't use the fallback.
783
- if (isRoutePPREnabled && (nextConfig.cacheComponents ? !isDynamicRSCRequest : !isRSCRequest)) {
784
- const cacheKey = isProduction && typeof (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === 'string' ? prerenderInfo.fallback : normalizedSrcPage;
785
- const fallbackRouteParams = // In production or when debugging the static shell (e.g. instant
786
- // navigation testing), use the prerender manifest's fallback
787
- // route params which correctly identifies which params are
788
- // unknown. Note: in dev, this block is only entered for
789
- // non-prerendered URLs (guarded by the outer condition).
790
- (isProduction || isDebugStaticShell) && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams) : // fallback (simulating the worst-case shell).
791
- isDebugFallbackShell ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.getFallbackRouteParams)(normalizedSrcPage, routeModule) : null;
792
- // When rendering a debug static shell, override the fallback
793
- // params on the request so that the staged rendering correctly
794
- // defers params that are not statically known.
795
- if (isDebugStaticShell && fallbackRouteParams) {
796
- (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'fallbackParams', fallbackRouteParams);
797
- }
798
- // We use the response cache here to handle the revalidation and
799
- // management of the fallback shell.
800
- const fallbackResponse = await routeModule.handleResponse({
801
- cacheKey,
802
- req,
803
- nextConfig,
804
- routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_PAGE,
805
- isFallback: true,
806
- prerenderManifest,
807
- isRoutePPREnabled,
808
- responseGenerator: async ()=>doRender({
809
- span,
810
- // We pass `undefined` as rendering a fallback isn't resumed
811
- // here.
812
- postponed: undefined,
813
- // Always serve the shell that matched this request
814
- // immediately. If there are still prerenderable params left,
815
- // the background path below will complete the shell into a
816
- // more specific cache entry for later requests.
817
- fallbackRouteParams,
818
- forceStaticRender: true
819
- }),
820
- waitUntil: ctx.waitUntil,
821
- isMinimalMode
822
- });
823
- // If the fallback response was set to null, then we should return null.
824
- if (fallbackResponse === null) return null;
825
- // Otherwise, if we did get a fallback response, we should return it.
826
- if (fallbackResponse) {
827
- if (!isMinimalMode && isRoutePPREnabled && // Match the build-time contract: only fallback shells that can
828
- // still be completed with prerenderable params should upgrade.
829
- remainingPrerenderableParams.length > 0 && nextConfig.experimental.partialFallbacks === true && ssgCacheKey && incrementalCache && !isOnDemandRevalidate && !isDebugFallbackShell && // The testing API relies on deterministic shell behavior, so
830
- // don't upgrade fallback shells in the background when it's
831
- // exposed.
832
- !exposeTestingApi && // Instant Navigation Testing API requests intentionally keep
833
- // the route in shell mode; don't upgrade these in background.
834
- !isInstantNavigationTest && // Avoid background revalidate during prefetches; this can trigger
835
- // static prerender errors that surface as 500s for the prefetch
836
- // request itself.
837
- !isPrefetchRSCRequest) {
838
- (0,next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__.scheduleOnNextTick)(async ()=>{
839
- const responseCache = routeModule.getResponseCache(req);
840
- try {
841
- // Only the params that were just specialized should be
842
- // removed from the fallback render. Any remaining fallback
843
- // params stay deferred so the revalidated result is a more
844
- // specific shell (e.g. `/prefix/c/[two]`), not a fully
845
- // concrete route (`/prefix/c/foo`).
846
- await responseCache.revalidate(ssgCacheKey, incrementalCache, isRoutePPREnabled, false, (c)=>{
847
- return doRender({
848
- span: c.span,
849
- postponed: undefined,
850
- fallbackRouteParams: remainingFallbackRouteParams.length > 0 ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(remainingFallbackRouteParams) : null,
851
- forceStaticRender: true
852
- });
853
- }, // We don't have a prior entry for this param-specific shell.
854
- null, hasResolved, ctx.waitUntil);
855
- } catch (err) {
856
- console.error('Error revalidating the page in the background', err);
857
- }
858
- });
859
- }
860
- // Remove the cache control from the response to prevent it from being
861
- // used in the surrounding cache.
862
- delete fallbackResponse.cacheControl;
863
- return fallbackResponse;
864
- }
865
- }
866
- }
867
- // Only requests that aren't revalidating can be resumed. If we have the
868
- // minimal postponed data, then we should resume the render with it.
869
- let postponed = !isOnDemandRevalidate && !isRevalidating && minimalPostponed ? minimalPostponed : undefined;
870
- // If this is a dynamic RSC request or a server action request, we should
871
- // use the postponed data from the static render (if available). This
872
- // ensures that we can utilize the resume data cache (RDC) from the static
873
- // render to ensure that the data is consistent between the static and
874
- // dynamic renders (for navigations) or when re-rendering after a server
875
- // action.
876
- if (// Only enable RDC for Navigations if the feature is enabled.
877
- supportsRDCForNavigations && "nodejs" !== 'edge' && !isMinimalMode && incrementalCache && // Include both dynamic RSC requests (navigations) and server actions
878
- (isDynamicRSCRequest || isPossibleServerAction) && // We don't typically trigger an on-demand revalidation for dynamic RSC
879
- // requests, as we're typically revalidating the page in the background
880
- // instead. However, if the cache entry is stale, we should trigger a
881
- // background revalidation on dynamic RSC requests. This prevents us
882
- // from entering an infinite loop of revalidations.
883
- !forceStaticRender) {
884
- const incrementalCacheEntry = await incrementalCache.get(resolvedPathname, {
885
- kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.IncrementalCacheKind.APP_PAGE,
886
- isRoutePPREnabled: true,
887
- isFallback: false
888
- });
889
- // If the cache entry is found, we should use the postponed data from
890
- // the cache.
891
- if (incrementalCacheEntry && incrementalCacheEntry.value && incrementalCacheEntry.value.kind === next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE) {
892
- // CRITICAL: we're assigning the postponed data from the cache entry
893
- // here as we're using the RDC to resume the render.
894
- postponed = incrementalCacheEntry.value.postponed;
895
- // If the cache entry is stale, we should trigger a background
896
- // revalidation so that subsequent requests will get a fresh response.
897
- if (incrementalCacheEntry && // We want to trigger this flow if the cache entry is stale and if
898
- // the requested revalidation flow is either foreground or
899
- // background.
900
- (incrementalCacheEntry.isStale === -1 || incrementalCacheEntry.isStale === true)) {
901
- // We want to schedule this on the next tick to ensure that the
902
- // render is not blocked on it.
903
- (0,next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__.scheduleOnNextTick)(async ()=>{
904
- const responseCache = routeModule.getResponseCache(req);
905
- try {
906
- await responseCache.revalidate(resolvedPathname, incrementalCache, isRoutePPREnabled, false, (c)=>responseGenerator({
907
- ...c,
908
- // CRITICAL: we need to set this to true as we're
909
- // revalidating in the background and typically this dynamic
910
- // RSC request is not treated as static.
911
- forceStaticRender: true
912
- }), // CRITICAL: we need to pass null here because passing the
913
- // previous cache entry here (which is stale) will switch on
914
- // isOnDemandRevalidate and break the prerendering.
915
- null, hasResolved, ctx.waitUntil);
916
- } catch (err) {
917
- console.error('Error revalidating the page in the background', err);
918
- }
919
- });
920
- }
921
- }
922
- }
923
- // When we're in minimal mode, if we're trying to debug the static shell,
924
- // we should just return nothing instead of resuming the dynamic render.
925
- if ((isDebugStaticShell || isDebugDynamicAccesses) && typeof postponed !== 'undefined') {
926
- return {
927
- cacheControl: {
928
- revalidate: 1,
929
- expire: undefined
930
- },
931
- value: {
932
- kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.PAGES,
933
- html: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].EMPTY,
934
- pageData: {},
935
- headers: undefined,
936
- status: undefined
937
- }
938
- };
939
- }
940
- const fallbackRouteParams = // In production or when debugging the static shell for a
941
- // non-prerendered URL, use the prerender manifest's fallback route
942
- // params which correctly identifies which params are unknown.
943
- (isProduction && (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'renderFallbackShell') || isDebugStaticShell && !isPrerendered) && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams) : isDebugFallbackShell ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.getFallbackRouteParams)(normalizedSrcPage, routeModule) : null;
944
- // For staged dynamic rendering (Cached Navigations) and debug static
945
- // shell rendering, pass the fallback params via request meta so the
946
- // RequestStore knows which params to defer. We don't pass them as
947
- // fallbackRouteParams because that would replace actual param values
948
- // with opaque placeholders during segment resolution.
949
- if ((isProduction || isDebugStaticShell) && nextConfig.cacheComponents && !isPrerendered && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams)) {
950
- const fallbackParams = (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams);
951
- if (fallbackParams) {
952
- (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'fallbackParams', fallbackParams);
953
- }
954
- }
955
- // Perform the render.
956
- return doRender({
957
- span,
958
- postponed,
959
- fallbackRouteParams,
960
- forceStaticRender
961
- });
962
- };
963
- const handleResponse = async (span)=>{
964
- var _cacheEntry_value, _cachedData_headers;
965
- const cacheEntry = await routeModule.handleResponse({
966
- cacheKey: ssgCacheKey,
967
- responseGenerator: (c)=>responseGenerator({
968
- span,
969
- ...c
970
- }),
971
- routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_PAGE,
972
- isOnDemandRevalidate,
973
- isRoutePPREnabled,
974
- req,
975
- nextConfig,
976
- prerenderManifest,
977
- waitUntil: ctx.waitUntil,
978
- isMinimalMode
979
- });
980
- if (isDraftMode) {
981
- res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
982
- }
983
- // In dev, we should not cache pages for any reason.
984
- if (routeModule.isDev) {
985
- res.setHeader('Cache-Control', 'no-cache, must-revalidate');
986
- }
987
- if (!cacheEntry) {
988
- if (ssgCacheKey) {
989
- // A cache entry might not be generated if a response is written
990
- // in `getInitialProps` or `getServerSideProps`, but those shouldn't
991
- // have a cache key. If we do have a cache key but we don't end up
992
- // with a cache entry, then either Next.js or the application has a
993
- // bug that needs fixing.
994
- throw Object.defineProperty(new Error('invariant: cache entry required but not generated'), "__NEXT_ERROR_CODE", {
995
- value: "E62",
996
- enumerable: false,
997
- configurable: true
998
- });
999
- }
1000
- return null;
1001
- }
1002
- if (((_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE) {
1003
- var _cacheEntry_value1;
1004
- throw Object.defineProperty(new Error(`Invariant app-page handler received invalid cache entry ${(_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), "__NEXT_ERROR_CODE", {
1005
- value: "E707",
1006
- enumerable: false,
1007
- configurable: true
1008
- });
1009
- }
1010
- const didPostpone = typeof cacheEntry.value.postponed === 'string';
1011
- // Set the build ID header for RSC navigation requests when deploymentId is configured. This
1012
- // corresponds with maybeAppendBuildIdToRSCPayload in app-render.tsx which omits the build ID
1013
- // from the RSC payload when deploymentId is set (relying on this header instead). Server
1014
- // actions are excluded here because action redirect responses get the deployment ID header
1015
- // from the pre-fetched redirect target (via createRedirectRenderResult in action-handler.ts
1016
- // which copies headers from the internal RSC fetch).
1017
- // For static prerenders served from CDN, routes-manifest.json adds a header.
1018
- if (isRSCRequest && !isPossibleServerAction && deploymentId) {
1019
- res.setHeader(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_NAV_DEPLOYMENT_ID_HEADER, deploymentId);
1020
- }
1021
- if (isSSG && // We don't want to send a cache header for requests that contain dynamic
1022
- // data. If this is a Dynamic RSC request or wasn't a Prefetch RSC
1023
- // request, then we should set the cache header.
1024
- !isDynamicRSCRequest && (!didPostpone || isPrefetchRSCRequest)) {
1025
- if (!isMinimalMode) {
1026
- // set x-nextjs-cache header to match the header
1027
- // we set for the image-optimizer
1028
- res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
1029
- }
1030
- // Set a header used by the client router to signal the response is static
1031
- // and should respect the `static` cache staleTime value.
1032
- res.setHeader(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_IS_PRERENDER_HEADER, '1');
1033
- }
1034
- const { value: cachedData } = cacheEntry;
1035
- // Coerce the cache control parameter from the render.
1036
- let cacheControl;
1037
- // If this is a resume request in minimal mode it is streamed with dynamic
1038
- // content and should not be cached.
1039
- if (minimalPostponed) {
1040
- cacheControl = {
1041
- revalidate: 0,
1042
- expire: undefined
1043
- };
1044
- } else if (isDynamicRSCRequest) {
1045
- cacheControl = {
1046
- revalidate: 0,
1047
- expire: undefined
1048
- };
1049
- } else if (!routeModule.isDev) {
1050
- // If this is a preview mode request, we shouldn't cache it
1051
- if (isDraftMode) {
1052
- cacheControl = {
1053
- revalidate: 0,
1054
- expire: undefined
1055
- };
1056
- } else if (!isSSG) {
1057
- if (!res.getHeader('Cache-Control')) {
1058
- cacheControl = {
1059
- revalidate: 0,
1060
- expire: undefined
1061
- };
1062
- }
1063
- } else if (cacheEntry.cacheControl) {
1064
- // If the cache entry has a cache control with a revalidate value that's
1065
- // a number, use it.
1066
- if (typeof cacheEntry.cacheControl.revalidate === 'number') {
1067
- var _cacheEntry_cacheControl;
1068
- if (cacheEntry.cacheControl.revalidate < 1) {
1069
- throw Object.defineProperty(new Error(`Invalid revalidate configuration provided: ${cacheEntry.cacheControl.revalidate} < 1`), "__NEXT_ERROR_CODE", {
1070
- value: "E22",
1071
- enumerable: false,
1072
- configurable: true
1073
- });
1074
- }
1075
- cacheControl = {
1076
- revalidate: cacheEntry.cacheControl.revalidate,
1077
- expire: ((_cacheEntry_cacheControl = cacheEntry.cacheControl) == null ? void 0 : _cacheEntry_cacheControl.expire) ?? nextConfig.expireTime
1078
- };
1079
- } else {
1080
- cacheControl = {
1081
- revalidate: next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.CACHE_ONE_YEAR_SECONDS,
1082
- expire: undefined
1083
- };
1084
- }
1085
- }
1086
- }
1087
- cacheEntry.cacheControl = cacheControl;
1088
- if (typeof segmentPrefetchHeader === 'string' && (cachedData == null ? void 0 : cachedData.kind) === next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE && cachedData.segmentData) {
1089
- var _cachedData_headers1;
1090
- // This is a prefetch request issued by the client Segment Cache. These
1091
- // should never reach the application layer (lambda). We should either
1092
- // respond from the cache (HIT) or respond with 204 No Content (MISS).
1093
- // Set a header to indicate that PPR is enabled for this route. This
1094
- // lets the client distinguish between a regular cache miss and a cache
1095
- // miss due to PPR being disabled. In other contexts this header is used
1096
- // to indicate that the response contains dynamic data, but here we're
1097
- // only using it to indicate that the feature is enabled — the segment
1098
- // response itself contains whether the data is dynamic.
1099
- res.setHeader(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_DID_POSTPONE_HEADER, '2');
1100
- // Add the cache tags header to the response if it exists and we're in
1101
- // minimal mode while rendering a static page.
1102
- const tags = (_cachedData_headers1 = cachedData.headers) == null ? void 0 : _cachedData_headers1[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER];
1103
- if (isMinimalMode && isSSG && tags && typeof tags === 'string') {
1104
- res.setHeader(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER, tags);
1105
- }
1106
- const matchedSegment = cachedData.segmentData.get(segmentPrefetchHeader);
1107
- if (matchedSegment !== undefined) {
1108
- // Cache hit
1109
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1110
- req,
1111
- res,
1112
- generateEtags: nextConfig.generateEtags,
1113
- poweredByHeader: nextConfig.poweredByHeader,
1114
- result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].fromStatic(matchedSegment, next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_CONTENT_TYPE_HEADER),
1115
- cacheControl: cacheEntry.cacheControl
1116
- });
1117
- }
1118
- // Cache miss. Either a cache entry for this route has not been generated
1119
- // (which technically should not be possible when PPR is enabled, because
1120
- // at a minimum there should always be a fallback entry) or there's no
1121
- // match for the requested segment. Respond with a 204 No Content. We
1122
- // don't bother to respond with 404, because these requests are only
1123
- // issued as part of a prefetch.
1124
- res.statusCode = 204;
1125
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1126
- req,
1127
- res,
1128
- generateEtags: nextConfig.generateEtags,
1129
- poweredByHeader: nextConfig.poweredByHeader,
1130
- result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].EMPTY,
1131
- cacheControl: cacheEntry.cacheControl
1132
- });
1133
- }
1134
- // If there's a callback for `onCacheEntry`, call it with the cache entry
1135
- // and the revalidate options. If we support RDC for Navigations, we
1136
- // prefer the `onCacheEntryV2` callback. Once RDC for Navigations is the
1137
- // default, we can remove the fallback to `onCacheEntry` as
1138
- // `onCacheEntryV2` is now fully supported.
1139
- const onCacheEntry = supportsRDCForNavigations ? (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntryV2') ?? (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntry') : (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntry');
1140
- if (onCacheEntry) {
1141
- const finished = await onCacheEntry(cacheEntry, {
1142
- url: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'initURL') ?? req.url
1143
- });
1144
- if (finished) return null;
1145
- }
1146
- if (cachedData.headers) {
1147
- const headers = {
1148
- ...cachedData.headers
1149
- };
1150
- if (!isMinimalMode || !isSSG) {
1151
- delete headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER];
1152
- }
1153
- for (let [key, value] of Object.entries(headers)){
1154
- if (typeof value === 'undefined') continue;
1155
- if (Array.isArray(value)) {
1156
- for (const v of value){
1157
- res.appendHeader(key, v);
1158
- }
1159
- } else if (typeof value === 'number') {
1160
- value = value.toString();
1161
- res.appendHeader(key, value);
1162
- } else {
1163
- res.appendHeader(key, value);
1164
- }
1165
- }
1166
- }
1167
- // Add the cache tags header to the response if it exists and we're in
1168
- // minimal mode while rendering a static page.
1169
- const tags = (_cachedData_headers = cachedData.headers) == null ? void 0 : _cachedData_headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER];
1170
- if (isMinimalMode && isSSG && tags && typeof tags === 'string') {
1171
- res.setHeader(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER, tags);
1172
- }
1173
- // If the request is a data request, then we shouldn't set the status code
1174
- // from the response because it should always be 200. This should be gated
1175
- // behind the experimental PPR flag.
1176
- if (cachedData.status && (!isRSCRequest || !isRoutePPREnabled)) {
1177
- res.statusCode = cachedData.status;
1178
- }
1179
- // Redirect information is encoded in RSC payload, so we don't need to use redirect status codes
1180
- if (!isMinimalMode && cachedData.status && next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__.RedirectStatusCode[cachedData.status] && isRSCRequest) {
1181
- res.statusCode = 200;
1182
- }
1183
- // Mark that the request did postpone.
1184
- if (didPostpone && !isDynamicRSCRequest) {
1185
- res.setHeader(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_DID_POSTPONE_HEADER, '1');
1186
- }
1187
- // we don't go through this block when preview mode is true
1188
- // as preview mode is a dynamic request (bypasses cache) and doesn't
1189
- // generate both HTML and payloads in the same request so continue to just
1190
- // return the generated payload
1191
- if (isRSCRequest && !isDraftMode) {
1192
- // If this is a dynamic RSC request, then stream the response.
1193
- if (typeof cachedData.rscData === 'undefined') {
1194
- // If the response is not an RSC response, then we can't serve it.
1195
- if (cachedData.html.contentType !== next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_CONTENT_TYPE_HEADER) {
1196
- if (nextConfig.cacheComponents) {
1197
- res.statusCode = 404;
1198
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1199
- req,
1200
- res,
1201
- generateEtags: nextConfig.generateEtags,
1202
- poweredByHeader: nextConfig.poweredByHeader,
1203
- result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].EMPTY,
1204
- cacheControl: cacheEntry.cacheControl
1205
- });
1206
- } else {
1207
- // Otherwise this case is not expected.
1208
- throw Object.defineProperty(new next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__.InvariantError(`Expected RSC response, got ${cachedData.html.contentType}`), "__NEXT_ERROR_CODE", {
1209
- value: "E789",
1210
- enumerable: false,
1211
- configurable: true
1212
- });
415
+ ];
416
+ return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react_ui_dist/* SimpleNavigation */.TbX, {
417
+ title: t('title'),
418
+ items: navigation,
419
+ currentPath: pathname,
420
+ LinkComponent: routing/* Link */.N_,
421
+ ...navigationMenu && {
422
+ dropdownContent: navigationMenu
423
+ },
424
+ isCollapsed: isCollapsed,
425
+ icons: {
426
+ chevronLeft: ChevronLeftIcon/* default */.A,
427
+ bars: Bars3Icon/* default */.A
428
+ },
429
+ collapseSidebarLabel: tSidebar('collapseSidebar'),
430
+ expandSidebarLabel: tSidebar('expandSidebar')
431
+ });
432
+ }
433
+
434
+ // EXTERNAL MODULE: ./src/components/CookiePreferences.tsx
435
+ var CookiePreferences = __webpack_require__(80386);
436
+ // EXTERNAL MODULE: ./src/contexts/KeyboardShortcutsContext.tsx + 3 modules
437
+ var KeyboardShortcutsContext = __webpack_require__(40953);
438
+ // EXTERNAL MODULE: ./src/lib/routing.ts
439
+ var lib_routing = __webpack_require__(46391);
440
+ // EXTERNAL MODULE: ./src/hooks/useAuth.ts
441
+ var useAuth = __webpack_require__(65159);
442
+ // EXTERNAL MODULE: ./src/lib/env.ts
443
+ var env = __webpack_require__(23318);
444
+ ;// ./src/app/[locale]/moderate/layout.tsx
445
+ /* __next_internal_client_entry_do_not_use__ default auto */
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+ // Note: Authentication is handled by middleware.ts for all moderate routes
456
+ // This ensures centralized security and returns 404 for unauthorized users
457
+ function ModerateLayout({ children }) {
458
+ const t = (0,react_client/* useTranslations */.c)('Footer');
459
+ const tNav = (0,react_client/* useTranslations */.c)('Navigation');
460
+ const tHome = (0,react_client/* useTranslations */.c)('Home');
461
+ const keyboardContext = (0,react.useContext)(KeyboardShortcutsContext/* KeyboardShortcutsContext */.GZ);
462
+ const { isAuthenticated, isAdmin, isModerator, token: authToken } = (0,useAuth/* useAuth */.As)();
463
+ // Middleware has already verified moderator/admin access
464
+ return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist/* AuthTokenProvider */.ffs, {
465
+ token: authToken,
466
+ children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist/* ApiClientProvider */.pqI, {
467
+ baseUrl: env/* NEXT_PUBLIC_BACKEND_URL */.xg,
468
+ children: /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
469
+ className: "min-h-screen bg-gray-50 dark:bg-gray-900 flex flex-col",
470
+ children: [
471
+ /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
472
+ className: "flex flex-1",
473
+ children: [
474
+ /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist/* LeftSidebar */.Ef3, {
475
+ Link: lib_routing/* Link */.N,
476
+ routes: lib_routing/* routes */.J,
477
+ t: tNav,
478
+ tHome: tHome,
479
+ brandingLink: "/",
480
+ collapsible: true,
481
+ storageKey: "moderation-sidebar-collapsed",
482
+ isAuthenticated: isAuthenticated,
483
+ isAdmin: isAdmin,
484
+ isModerator: isModerator,
485
+ children: (isCollapsed, toggleCollapsed, navigationMenu)=>/*#__PURE__*/ (0,react_jsx_runtime.jsx)(ModerationNavigation, {
486
+ isCollapsed: isCollapsed,
487
+ toggleCollapsed: toggleCollapsed,
488
+ navigationMenu: navigationMenu
489
+ })
490
+ }),
491
+ /*#__PURE__*/ (0,react_jsx_runtime.jsx)("main", {
492
+ className: "flex-1 p-6 flex flex-col",
493
+ children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
494
+ className: "max-w-7xl mx-auto flex-1 flex flex-col w-full",
495
+ children: children
496
+ })
497
+ })
498
+ ]
499
+ }),
500
+ /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist/* Footer */.wi6, {
501
+ Link: lib_routing/* Link */.N,
502
+ routes: lib_routing/* routes */.J,
503
+ t: t,
504
+ CookiePreferences: CookiePreferences/* CookiePreferences */.f,
505
+ ...keyboardContext?.openKeyboardHelp && {
506
+ onOpenKeyboardHelp: keyboardContext.openKeyboardHelp
1213
507
  }
1214
- }
1215
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1216
- req,
1217
- res,
1218
- generateEtags: nextConfig.generateEtags,
1219
- poweredByHeader: nextConfig.poweredByHeader,
1220
- result: cachedData.html,
1221
- cacheControl: cacheEntry.cacheControl
1222
- });
1223
- }
1224
- // As this isn't a prefetch request, we should serve the static flight
1225
- // data.
1226
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1227
- req,
1228
- res,
1229
- generateEtags: nextConfig.generateEtags,
1230
- poweredByHeader: nextConfig.poweredByHeader,
1231
- result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].fromStatic(cachedData.rscData, next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_CONTENT_TYPE_HEADER),
1232
- cacheControl: cacheEntry.cacheControl
1233
- });
1234
- }
1235
- // This is a request for HTML data.
1236
- const body = cachedData.html;
1237
- // Instant Navigation Testing API: serve the static shell with an
1238
- // injected script that sets self.__next_instant_test and kicks off a
1239
- // static RSC fetch for hydration. The transform stream also appends
1240
- // closing </body></html> tags so the browser can parse the full document.
1241
- // In dev mode, also inject self.__next_r so the HMR WebSocket and
1242
- // debug channel can initialize.
1243
- if (isInstantNavigationTest && isDebugStaticShell) {
1244
- const instantTestRequestId = routeModule.isDev === true ? crypto.randomUUID() : null;
1245
- body.pipeThrough((0,next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__.createInstantTestScriptInsertionTransformStream)(instantTestRequestId));
1246
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1247
- req,
1248
- res,
1249
- generateEtags: nextConfig.generateEtags,
1250
- poweredByHeader: nextConfig.poweredByHeader,
1251
- result: body,
1252
- cacheControl: {
1253
- revalidate: 0,
1254
- expire: undefined
1255
- }
1256
- });
1257
- }
1258
- // If there's no postponed state, we should just serve the HTML. This
1259
- // should also be the case for a resume request because it's completed
1260
- // as a server render (rather than a static render).
1261
- if (!didPostpone || isMinimalMode || isRSCRequest) {
1262
- // If we're in test mode, we should add a sentinel chunk to the response
1263
- // that's between the static and dynamic parts so we can compare the
1264
- // chunks and add assertions.
1265
- if (false) {}
1266
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1267
- req,
1268
- res,
1269
- generateEtags: nextConfig.generateEtags,
1270
- poweredByHeader: nextConfig.poweredByHeader,
1271
- result: body,
1272
- cacheControl: cacheEntry.cacheControl
1273
- });
508
+ })
509
+ ]
510
+ })
511
+ })
512
+ });
513
+ }
514
+
515
+
516
+ /***/ }),
517
+
518
+ /***/ 34901:
519
+ /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
520
+
521
+ Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 9839));
522
+
523
+
524
+ /***/ }),
525
+
526
+ /***/ 36297:
527
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
528
+
529
+ "use strict";
530
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
531
+ /* harmony export */ M7E: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.Toolbar)
532
+ /* harmony export */ });
533
+ /* harmony import */ var _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41513);
534
+
535
+
536
+
537
+ /***/ }),
538
+
539
+ /***/ 41025:
540
+ /***/ ((module) => {
541
+
542
+ "use strict";
543
+ module.exports = require("next/dist/server/app-render/dynamic-access-async-storage.external.js");
544
+
545
+ /***/ }),
546
+
547
+ /***/ 43887:
548
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
549
+
550
+ "use strict";
551
+ __webpack_require__.r(__webpack_exports__);
552
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
553
+ /* harmony export */ __next_app__: () => (/* binding */ __next_app__),
554
+ /* harmony export */ handler: () => (/* binding */ handler),
555
+ /* harmony export */ routeModule: () => (/* binding */ routeModule)
556
+ /* harmony export */ });
557
+ /* harmony import */ var next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80666);
558
+ /* harmony import */ var next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__);
559
+ /* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51421);
560
+ /* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4675);
561
+ /* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29796);
562
+ /* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__);
563
+ /* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(54046);
564
+ /* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__);
565
+ /* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74928);
566
+ /* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__);
567
+ /* harmony import */ var next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19727);
568
+ /* harmony import */ var next_dist_server_app_render_strip_flight_headers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24268);
569
+ /* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(60402);
570
+ /* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__);
571
+ /* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(22040);
572
+ /* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__);
573
+ /* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27186);
574
+ /* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__);
575
+ /* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(49228);
576
+ /* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__);
577
+ /* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(97485);
578
+ /* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__);
579
+ /* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(261);
580
+ /* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__);
581
+ /* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(80885);
582
+ /* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__);
583
+ /* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7162);
584
+ /* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__);
585
+ /* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(26713);
586
+ /* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__);
587
+ /* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(70972);
588
+ /* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__);
589
+ /* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(57341);
590
+ /* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__);
591
+ /* harmony import */ var next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(95105);
592
+ /* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(38038);
593
+ /* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__);
594
+ /* harmony import */ var next_dist_server_stream_utils_encoded_tags__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(29898);
595
+ /* harmony import */ var next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(62918);
596
+ /* harmony import */ var next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__);
597
+ /* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(98798);
598
+ /* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__);
599
+ /* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(86439);
600
+ /* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__);
601
+ /* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(77068);
602
+ /* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__);
603
+ /* harmony import */ var next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(31214);
604
+ /* harmony import */ var next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__);
605
+ /* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(35402);
606
+ /* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__);
607
+ /* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(29059);
608
+ /* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__);
609
+ /* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(70722);
610
+ /* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__);
611
+ /* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(31182);
612
+ /* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__);
613
+ /* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(43954);
614
+ /* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__);
615
+ /* harmony import */ var next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(17891);
616
+ /* harmony import */ var next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__);
617
+ /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
618
+ /* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__) if(["default","__next_app__","routeModule","handler"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__[__WEBPACK_IMPORT_KEY__]
619
+ /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
620
+ const module0 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 95235));
621
+ const module1 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 25195));
622
+ const module2 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
623
+ const module3 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 72353));
624
+ const module4 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 4253, 23));
625
+ const module5 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 49184, 23));
626
+ const module6 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 57149));
627
+ const module7 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
628
+ const module8 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 28310));
629
+ const module9 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 59406));
630
+ const module10 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
631
+ const module11 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
632
+ const page12 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 9839));
633
+
634
+
635
+
636
+
637
+
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+
646
+
647
+
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+ // We inject the tree and pages here so that we can use them in the route
661
+ // module.
662
+ const tree = {
663
+ children: [
664
+ '',
665
+ {
666
+ children: [
667
+ '[locale]',
668
+ {
669
+ children: [
670
+ 'moderate',
671
+ {
672
+ children: [
673
+ 'recent',
674
+ {
675
+ children: ['__PAGE__', {}, {
676
+ page: [page12, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/moderate/recent/page.tsx"],
677
+
678
+ }]
679
+ },
680
+ {
681
+ 'global-error': [module11, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
682
+
683
+ },
684
+ []
685
+ ]
686
+ },
687
+ {
688
+ 'layout': [module9, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/moderate/layout.tsx"],
689
+ 'global-error': [module10, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
690
+
691
+ },
692
+ []
693
+ ]
694
+ },
695
+ {
696
+ 'layout': [module6, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/layout.tsx"],
697
+ 'global-error': [module7, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
698
+ 'not-found': [module8, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/not-found.tsx"],
699
+
700
+ },
701
+ ["_not-found","_global-error","api"]
702
+ ]
703
+ },
704
+ {
705
+ 'layout': [module0, "/home/runner/work/semiont/semiont/apps/frontend/src/app/layout.tsx"],
706
+ 'error': [module1, "/home/runner/work/semiont/semiont/apps/frontend/src/app/error.tsx"],
707
+ 'global-error': [module2, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
708
+ 'not-found': [module3, "/home/runner/work/semiont/semiont/apps/frontend/src/app/not-found.tsx"],
709
+ 'forbidden': [module4, "next/dist/client/components/builtin/forbidden.js"],
710
+ 'unauthorized': [module5, "next/dist/client/components/builtin/unauthorized.js"],
711
+
712
+ },
713
+ []
714
+ ]
715
+ }.children;
716
+ const __next_app_require__ = __webpack_require__
717
+ const __next_app_load_chunk__ = () => Promise.resolve()
718
+ const __next_app__ = {
719
+ require: __next_app_require__,
720
+ loadChunk: __next_app_load_chunk__
721
+ };
722
+
723
+
724
+
725
+
726
+
727
+
728
+
729
+ // Create and export the route module that will be consumed.
730
+ const routeModule = new next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppPageRouteModule({
731
+ definition: {
732
+ kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_PAGE,
733
+ page: "/[locale]/moderate/recent/page",
734
+ pathname: "/[locale]/moderate/recent",
735
+ // The following aren't used in production.
736
+ bundlePath: '',
737
+ filename: '',
738
+ appPaths: []
739
+ },
740
+ userland: {
741
+ loaderTree: tree
742
+ },
743
+ distDir: ".next" || 0,
744
+ relativeProjectDir: false || ''
745
+ });
746
+ function buildDynamicSegmentPlaceholder(param) {
747
+ const { repeat, optional } = (0,next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__.getParamProperties)(param.paramType);
748
+ if (optional) {
749
+ return `[[...${param.paramName}]]`;
750
+ }
751
+ if (repeat) {
752
+ return `[...${param.paramName}]`;
753
+ }
754
+ return `[${param.paramName}]`;
755
+ }
756
+ /**
757
+ * Builds the cache key for the most complete prerenderable shell we can derive
758
+ * from the shell that matched this request. Only params that can still be
759
+ * filled by `generateStaticParams` are substituted; fully dynamic params stay
760
+ * as placeholders so a request like `/c/foo` can complete `/[one]/[two]` into
761
+ * `/c/[two]` rather than `/c/foo`.
762
+ */ function buildCompletedShellCacheKey(fallbackPathname, remainingPrerenderableParams, params) {
763
+ const prerenderableParamsByName = new Map(remainingPrerenderableParams.map((param)=>[
764
+ param.paramName,
765
+ param
766
+ ]));
767
+ return fallbackPathname.split('/').map((segment)=>{
768
+ const segmentParam = (0,next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__.getSegmentParam)(segment);
769
+ if (!segmentParam) {
770
+ return segment;
771
+ }
772
+ const remainingParam = prerenderableParamsByName.get(segmentParam.paramName);
773
+ if (!remainingParam) {
774
+ return segment;
775
+ }
776
+ const value = params == null ? void 0 : params[remainingParam.paramName];
777
+ if (!value) {
778
+ return segment;
779
+ }
780
+ const encodedValue = Array.isArray(value) ? value.map((item)=>encodeURIComponent(item)).join('/') : encodeURIComponent(value);
781
+ return segment.replace(buildDynamicSegmentPlaceholder(remainingParam), encodedValue);
782
+ }).join('/') || '/';
783
+ }
784
+ async function handler(req, res, ctx) {
785
+ var _this, _prerenderManifest_routes_resolvedPathname, _prerenderInfo_fallbackRootParams, _prerenderInfo_fallbackRouteParams;
786
+ if (ctx.requestMeta) {
787
+ (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.setRequestMeta)(req, ctx.requestMeta);
788
+ }
789
+ if (routeModule.isDev) {
790
+ (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
791
+ }
792
+ const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'minimalMode'));
793
+ let srcPage = "/[locale]/moderate/recent/page";
794
+ // turbopack doesn't normalize `/index` in the page name
795
+ // so we need to to process dynamic routes properly
796
+ // TODO: fix turbopack providing differing value from webpack
797
+ if (false) {} else if (srcPage === '/index') {
798
+ // we always normalize /index specifically
799
+ srcPage = '/';
800
+ }
801
+ const multiZoneDraftMode = false;
802
+ const prepareResult = await routeModule.prepare(req, res, {
803
+ srcPage,
804
+ multiZoneDraftMode
805
+ });
806
+ if (!prepareResult) {
807
+ res.statusCode = 400;
808
+ res.end('Bad Request');
809
+ ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
810
+ return null;
811
+ }
812
+ const { buildId, query, params, pageIsDynamic, buildManifest, nextFontManifest, reactLoadableManifest, serverActionsManifest, clientReferenceManifest, subresourceIntegrityManifest, prerenderManifest, isDraftMode, resolvedPathname, revalidateOnlyGenerated, routerServerContext, nextConfig, parsedUrl, interceptionRoutePatterns, deploymentId, clientAssetToken } = prepareResult;
813
+ const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__.normalizeAppPath)(srcPage);
814
+ let { isOnDemandRevalidate } = prepareResult;
815
+ // We use the resolvedPathname instead of the parsedUrl.pathname because it
816
+ // is not rewritten as resolvedPathname is. This will ensure that the correct
817
+ // prerender info is used instead of using the original pathname as the
818
+ // source. If however PPR is enabled and cacheComponents is disabled, we
819
+ // treat the pathname as dynamic. Currently, there's a bug in the PPR
820
+ // implementation that incorrectly leaves %%drp placeholders in the output of
821
+ // parallel routes. This is addressed with cacheComponents.
822
+ const prerenderMatch = nextConfig.experimental.ppr && !nextConfig.cacheComponents && (0,next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__.isInterceptionRouteAppPath)(resolvedPathname) ? null : routeModule.match(resolvedPathname, prerenderManifest);
823
+ const prerenderInfo = (prerenderMatch == null ? void 0 : prerenderMatch.route) ?? null;
824
+ const isPrerendered = !!prerenderManifest.routes[resolvedPathname];
825
+ const userAgent = req.headers['user-agent'] || '';
826
+ const botType = (0,next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__.getBotType)(userAgent);
827
+ const isHtmlBot = (0,next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__.isHtmlBotRequest)(req);
828
+ /**
829
+ * If true, this indicates that the request being made is for an app
830
+ * prefetch request.
831
+ */ const isPrefetchRSCRequest = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'isPrefetchRSCRequest') ?? req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_ROUTER_PREFETCH_HEADER] === '1' // exclude runtime prefetches, which use '2'
832
+ ;
833
+ // NOTE: Don't delete headers[RSC] yet, it still needs to be used in renderToHTML later
834
+ const isRSCRequest = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'isRSCRequest') ?? Boolean(req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_HEADER]);
835
+ const isPossibleServerAction = (0,next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__.getIsPossibleServerAction)(req);
836
+ /**
837
+ * If the route being rendered is an app page, and the ppr feature has been
838
+ * enabled, then the given route _could_ support PPR.
839
+ */ const couldSupportPPR = (0,next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__.checkIsAppPPREnabled)(nextConfig.experimental.ppr);
840
+ // Stash postponed state for server actions when in minimal mode.
841
+ // We extract it here so the RDC is available for the re-render after the action completes.
842
+ const resumeStateLengthHeader = req.headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_RESUME_STATE_LENGTH_HEADER];
843
+ if (!(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'postponed') && isMinimalMode && couldSupportPPR && isPossibleServerAction && resumeStateLengthHeader && typeof resumeStateLengthHeader === 'string') {
844
+ const stateLength = parseInt(resumeStateLengthHeader, 10);
845
+ const { maxPostponedStateSize, maxPostponedStateSizeBytes } = (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize);
846
+ if (!isNaN(stateLength) && stateLength > 0) {
847
+ var _nextConfig_experimental_serverActions;
848
+ if (stateLength > maxPostponedStateSizeBytes) {
849
+ res.statusCode = 413;
850
+ res.end((0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getPostponedStateExceededErrorMessage)(maxPostponedStateSize));
851
+ ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
852
+ return null;
1274
853
  }
1275
- // If we're debugging the static shell or the dynamic API accesses, we
1276
- // should just serve the HTML without resuming the render. The returned
1277
- // HTML will be the static shell so all the Dynamic API's will be used
1278
- // during static generation.
1279
- if (isDebugStaticShell || isDebugDynamicAccesses) {
1280
- // Since we're not resuming the render, we need to at least add the
1281
- // closing body and html tags to create valid HTML.
1282
- body.push(new ReadableStream({
1283
- start (controller) {
1284
- controller.enqueue(next_dist_server_stream_utils_encoded_tags__WEBPACK_IMPORTED_MODULE_21__.ENCODED_TAGS.CLOSED.BODY_AND_HTML);
1285
- controller.close();
1286
- }
1287
- }));
1288
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1289
- req,
1290
- res,
1291
- generateEtags: nextConfig.generateEtags,
1292
- poweredByHeader: nextConfig.poweredByHeader,
1293
- result: body,
1294
- cacheControl: {
1295
- revalidate: 0,
1296
- expire: undefined
1297
- }
1298
- });
854
+ // Calculate max total body size to prevent buffering excessively large
855
+ // payloads before the action handler checks. We use stateLength (not
856
+ // maxPostponedStateSizeBytes) so the postponed state doesn't eat into
857
+ // the action body budget - it's already validated above.
858
+ const defaultActionBodySizeLimit = '1 MB';
859
+ const actionBodySizeLimit = ((_nextConfig_experimental_serverActions = nextConfig.experimental.serverActions) == null ? void 0 : _nextConfig_experimental_serverActions.bodySizeLimit) ?? defaultActionBodySizeLimit;
860
+ const actionBodySizeLimitBytes = actionBodySizeLimit !== defaultActionBodySizeLimit ? (__webpack_require__(32683).parse)(actionBodySizeLimit) : 1024 * 1024 // 1 MB
861
+ ;
862
+ const maxTotalBodySize = stateLength + actionBodySizeLimitBytes;
863
+ const fullBody = await (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.readBodyWithSizeLimit)(req, maxTotalBodySize);
864
+ if (fullBody === null) {
865
+ res.statusCode = 413;
866
+ res.end(`Request body exceeded limit. ` + `To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit`);
867
+ ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
868
+ return null;
1299
869
  }
1300
- // If we're in test mode, we should add a sentinel chunk to the response
1301
- // that's between the static and dynamic parts so we can compare the
1302
- // chunks and add assertions.
1303
- if (false) {}
1304
- // This request has postponed, so let's create a new transformer that the
1305
- // dynamic data can pipe to that will attach the dynamic data to the end
1306
- // of the response.
1307
- const transformer = new TransformStream();
1308
- body.push(transformer.readable);
1309
- // Perform the render again, but this time, provide the postponed state.
1310
- // We don't await because we want the result to start streaming now, and
1311
- // we've already chained the transformer's readable to the render result.
1312
- doRender({
1313
- span,
1314
- postponed: cachedData.postponed,
1315
- // This is a resume render, not a fallback render, so we don't need to
1316
- // set this.
1317
- fallbackRouteParams: null,
1318
- forceStaticRender: false
1319
- }).then(async (result)=>{
1320
- var _result_value;
1321
- if (!result) {
1322
- throw Object.defineProperty(new Error('Invariant: expected a result to be returned'), "__NEXT_ERROR_CODE", {
1323
- value: "E463",
1324
- enumerable: false,
1325
- configurable: true
1326
- });
1327
- }
1328
- if (((_result_value = result.value) == null ? void 0 : _result_value.kind) !== next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE) {
1329
- var _result_value1;
1330
- throw Object.defineProperty(new Error(`Invariant: expected a page response, got ${(_result_value1 = result.value) == null ? void 0 : _result_value1.kind}`), "__NEXT_ERROR_CODE", {
1331
- value: "E305",
1332
- enumerable: false,
1333
- configurable: true
1334
- });
1335
- }
1336
- // Pipe the resume result to the transformer.
1337
- await result.value.html.pipeTo(transformer.writable);
1338
- }).catch((err)=>{
1339
- // An error occurred during piping or preparing the render, abort
1340
- // the transformers writer so we can terminate the stream.
1341
- transformer.writable.abort(err).catch((e)=>{
1342
- console.error("couldn't abort transformer", e);
870
+ if (fullBody.length >= stateLength) {
871
+ // Extract postponed state from the beginning
872
+ const postponedState = fullBody.subarray(0, stateLength).toString('utf8');
873
+ (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'postponed', postponedState);
874
+ // Store the remaining action body for the action handler
875
+ const actionBody = fullBody.subarray(stateLength);
876
+ (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'actionBody', actionBody);
877
+ } else {
878
+ throw Object.defineProperty(new Error(`invariant: expected ${stateLength} bytes of postponed state but only received ${fullBody.length} bytes`), "__NEXT_ERROR_CODE", {
879
+ value: "E979",
880
+ enumerable: false,
881
+ configurable: true
1343
882
  });
1344
- });
1345
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1346
- req,
1347
- res,
1348
- generateEtags: nextConfig.generateEtags,
1349
- poweredByHeader: nextConfig.poweredByHeader,
1350
- result: body,
1351
- // We don't want to cache the response if it has postponed data because
1352
- // the response being sent to the client it's dynamic parts are streamed
1353
- // to the client on the same request.
1354
- cacheControl: {
1355
- revalidate: 0,
1356
- expire: undefined
1357
- }
1358
- });
1359
- };
1360
- // TODO: activeSpan code path is for when wrapped by
1361
- // next-server can be removed when this is no longer used
1362
- if (isWrappedByNextServer && activeSpan) {
1363
- await handleResponse(activeSpan);
1364
- } else {
1365
- parentSpan = tracer.getActiveScopeSpan();
1366
- return await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__.BaseServerSpan.handleRequest, {
1367
- spanName: `${method} ${srcPage}`,
1368
- kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__.SpanKind.SERVER,
1369
- attributes: {
1370
- 'http.method': method,
1371
- 'http.target': req.url
1372
- }
1373
- }, handleResponse), undefined, !isWrappedByNextServer);
883
+ }
1374
884
  }
1375
- } catch (err) {
1376
- if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__.NoFallbackError)) {
1377
- const silenceLog = false;
1378
- await routeModule.onRequestError(req, err, {
1379
- routerKind: 'App Router',
1380
- routePath: srcPage,
1381
- routeType: 'render',
1382
- revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_2__/* .getRevalidateReason */ .c)({
1383
- isStaticGeneration: isSSG,
1384
- isOnDemandRevalidate
1385
- })
1386
- }, silenceLog, routerServerContext);
885
+ }
886
+ if (!(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'postponed') && couldSupportPPR && req.headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_RESUME_HEADER] === '1' && req.method === 'POST') {
887
+ const { maxPostponedStateSize, maxPostponedStateSizeBytes } = (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize);
888
+ // Decode the postponed state from the request body, it will come as
889
+ // an array of buffers, so collect them and then concat them to form
890
+ // the string.
891
+ const body = await (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.readBodyWithSizeLimit)(req, maxPostponedStateSizeBytes);
892
+ if (body === null) {
893
+ res.statusCode = 413;
894
+ res.end((0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getPostponedStateExceededErrorMessage)(maxPostponedStateSize));
895
+ ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
896
+ return null;
897
+ }
898
+ const postponed = body.toString('utf8');
899
+ (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'postponed', postponed);
900
+ }
901
+ // When enabled, this will allow the use of the `?__nextppronly` query to
902
+ // enable debugging of the static shell.
903
+ const hasDebugStaticShellQuery = false && 0;
904
+ // When enabled, this will allow the use of the `?__nextppronly` query
905
+ // to enable debugging of the fallback shell.
906
+ const hasDebugFallbackShellQuery = hasDebugStaticShellQuery && query.__nextppronly === 'fallback';
907
+ // Whether the testing API is exposed (dev mode or explicit flag)
908
+ const exposeTestingApi = routeModule.isDev === true || nextConfig.experimental.exposeTestingApiInProductionBuild === true;
909
+ // Enable the Instant Navigation Testing API. Renders only the prefetched
910
+ // portion of the page, excluding dynamic content. This allows tests to
911
+ // assert on the prefetched UI state deterministically.
912
+ // - Header: Used for client-side navigations where we can set request headers
913
+ // - Cookie: Used for MPA navigations (page reload, full page load) where we
914
+ // can't set request headers. Only applies to document requests (no RSC
915
+ // header) - RSC requests should proceed normally even during a locked scope,
916
+ // with blocking happening on the client side.
917
+ const isInstantNavigationTest = exposeTestingApi && (req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_INSTANT_PREFETCH_HEADER] === '1' || req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_HEADER] === undefined && typeof req.headers.cookie === 'string' && req.headers.cookie.includes(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_INSTANT_TEST_COOKIE + '='));
918
+ // This page supports PPR if it is marked as being `PARTIALLY_STATIC` in the
919
+ // prerender manifest and this is an app page.
920
+ const isRoutePPREnabled = // When the instant navigation testing API is active, enable the PPR
921
+ // prerender path even without Cache Components. In dev mode without CC,
922
+ // static pages need this path to produce buffered segment data (the
923
+ // legacy prerender path hangs in dev mode).
924
+ (couldSupportPPR || isInstantNavigationTest) && (((_this = prerenderManifest.routes[normalizedSrcPage] ?? prerenderManifest.dynamicRoutes[normalizedSrcPage]) == null ? void 0 : _this.renderingMode) === 'PARTIALLY_STATIC' || // Ideally we'd want to check the appConfig to see if this page has PPR
925
+ // enabled or not, but that would require plumbing the appConfig through
926
+ // to the server during development. We assume that the page supports it
927
+ // but only during development or when the testing API is exposed.
928
+ (hasDebugStaticShellQuery || isInstantNavigationTest) && (exposeTestingApi || (routerServerContext == null ? void 0 : routerServerContext.experimentalTestProxy) === true));
929
+ const isDebugStaticShell = (hasDebugStaticShellQuery || isInstantNavigationTest) && isRoutePPREnabled;
930
+ // We should enable debugging dynamic accesses when the static shell
931
+ // debugging has been enabled and we're also in development mode.
932
+ const isDebugDynamicAccesses = isDebugStaticShell && routeModule.isDev === true;
933
+ const isDebugFallbackShell = hasDebugFallbackShellQuery && isRoutePPREnabled;
934
+ // If we're in minimal mode, then try to get the postponed information from
935
+ // the request metadata. If available, use it for resuming the postponed
936
+ // render.
937
+ const minimalPostponed = isRoutePPREnabled ? (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'postponed') : undefined;
938
+ // If PPR is enabled, and this is a RSC request (but not a prefetch), then
939
+ // we can use this fact to only generate the flight data for the request
940
+ // because we can't cache the HTML (as it's also dynamic).
941
+ const staticPrefetchDataRoute = (_prerenderManifest_routes_resolvedPathname = prerenderManifest.routes[resolvedPathname]) == null ? void 0 : _prerenderManifest_routes_resolvedPathname.prefetchDataRoute;
942
+ let isDynamicRSCRequest = isRoutePPREnabled && isRSCRequest && !isPrefetchRSCRequest && // If generated at build time, treat the RSC request as static
943
+ // so we can serve the prebuilt .rsc without a dynamic render.
944
+ // Only do this for routes that have a concrete prefetchDataRoute.
945
+ !staticPrefetchDataRoute;
946
+ // During a PPR revalidation, the RSC request is not dynamic if we do not have the postponed data.
947
+ // We only attach the postponed data during a resume. If there's no postponed data, then it must be a revalidation.
948
+ // This is to ensure that we don't bypass the cache during a revalidation.
949
+ if (isMinimalMode) {
950
+ isDynamicRSCRequest = isDynamicRSCRequest && !!minimalPostponed;
951
+ }
952
+ // Need to read this before it's stripped by stripFlightHeaders. We don't
953
+ // need to transfer it to the request meta because it's only read
954
+ // within this function; the static segment data should have already been
955
+ // generated, so we will always either return a static response or a 404.
956
+ const segmentPrefetchHeader = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'segmentPrefetchRSCRequest');
957
+ // TODO: investigate existing bug with shouldServeStreamingMetadata always
958
+ // being true for a revalidate due to modifying the base-server this.renderOpts
959
+ // when fixing this to correct logic it causes hydration issue since we set
960
+ // serveStreamingMetadata to true during export
961
+ const serveStreamingMetadata = botType && isRoutePPREnabled ? false : !userAgent ? true : (0,next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__.shouldServeStreamingMetadata)(userAgent, nextConfig.htmlLimitedBots);
962
+ const isSSG = Boolean((prerenderInfo || isPrerendered || prerenderManifest.routes[normalizedSrcPage]) && // If this is a bot request and PPR is enabled, then we don't want
963
+ // to serve a static response. This applies to both DOM bots (like Googlebot)
964
+ // and HTML-limited bots.
965
+ !(botType && isRoutePPREnabled));
966
+ // When a page supports cacheComponents, we can support RDC for Navigations
967
+ const supportsRDCForNavigations = isRoutePPREnabled && nextConfig.cacheComponents === true;
968
+ // In development, we always want to generate dynamic HTML.
969
+ const supportsDynamicResponse = // If we're in development, we always support dynamic HTML, unless it's
970
+ // a data request, in which case we only produce static HTML.
971
+ routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports
972
+ // dynamic HTML.
973
+ !isSSG || // If this request has provided postponed data, it supports dynamic
974
+ // HTML.
975
+ typeof minimalPostponed === 'string' || // If this handler supports onCacheEntryV2, then we can only support
976
+ // dynamic responses if it's a dynamic RSC request and not in minimal mode. If it
977
+ // doesn't support it we must fallback to the default behavior.
978
+ (supportsRDCForNavigations && (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntryV2') ? // which will generate the RDC for the route. When resuming a Dynamic
979
+ // RSC request, we'll pass the minimal postponed data to the render
980
+ // which will trigger the `supportsDynamicResponse` to be true.
981
+ isDynamicRSCRequest && !isMinimalMode : isDynamicRSCRequest);
982
+ // When bots request PPR page, perform the full dynamic rendering.
983
+ // This applies to both DOM bots (like Googlebot) and HTML-limited bots.
984
+ const shouldWaitOnAllReady = Boolean(botType) && isRoutePPREnabled;
985
+ const remainingPrerenderableParams = (prerenderInfo == null ? void 0 : prerenderInfo.remainingPrerenderableParams) ?? [];
986
+ const hasUnresolvedRootFallbackParams = (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === null && (((_prerenderInfo_fallbackRootParams = prerenderInfo.fallbackRootParams) == null ? void 0 : _prerenderInfo_fallbackRootParams.length) ?? 0) > 0;
987
+ let ssgCacheKey = null;
988
+ if (!isDraftMode && isSSG && !supportsDynamicResponse && !isPossibleServerAction && !minimalPostponed && !isDynamicRSCRequest) {
989
+ // For normal SSG routes we cache by the fully resolved pathname. For
990
+ // partial fallbacks we instead derive the cache key from the shell
991
+ // that matched this request so `/prefix/[one]/[two]` can specialize into
992
+ // `/prefix/c/[two]` without promoting all the way to `/prefix/c/foo`.
993
+ const fallbackPathname = prerenderMatch ? typeof (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === 'string' ? prerenderInfo.fallback : prerenderMatch.source : null;
994
+ if (nextConfig.experimental.partialFallbacks === true && fallbackPathname && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) && !hasUnresolvedRootFallbackParams) {
995
+ if (remainingPrerenderableParams.length > 0) {
996
+ const completedShellCacheKey = buildCompletedShellCacheKey(fallbackPathname, remainingPrerenderableParams, params);
997
+ // If applying the current request params doesn't make the shell any
998
+ // more complete, then this shell is already at its most complete
999
+ // form and should remain shared rather than creating a new cache entry.
1000
+ ssgCacheKey = completedShellCacheKey !== fallbackPathname ? completedShellCacheKey : null;
1001
+ }
1002
+ } else {
1003
+ ssgCacheKey = resolvedPathname;
1387
1004
  }
1388
- // rethrow so that we can handle serving error page
1389
- throw err;
1390
1005
  }
1391
- }
1392
- // TODO: omit this from production builds, only test builds should include it
1393
- /**
1394
- * Creates a readable stream that emits a PPR boundary sentinel.
1395
- *
1396
- * @returns A readable stream that emits a PPR boundary sentinel.
1397
- */ function createPPRBoundarySentinel() {
1398
- return new ReadableStream({
1399
- start (controller) {
1400
- controller.enqueue(new TextEncoder().encode('<!-- PPR_BOUNDARY_SENTINEL -->'));
1401
- controller.close();
1402
- }
1403
- });
1404
- }
1405
-
1406
- //# sourceMappingURL=app-page.js.map
1407
-
1408
-
1409
- /***/ }),
1410
-
1411
- /***/ 10846:
1412
- /***/ ((module) => {
1413
-
1414
- "use strict";
1415
- module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
1416
-
1417
- /***/ }),
1418
-
1419
- /***/ 17891:
1420
- /***/ ((module) => {
1421
-
1422
- "use strict";
1423
- module.exports = require("next/dist/shared/lib/router/utils/get-segment-param");
1424
-
1425
- /***/ }),
1426
-
1427
- /***/ 19121:
1428
- /***/ ((module) => {
1429
-
1430
- "use strict";
1431
- module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
1432
-
1433
- /***/ }),
1434
-
1435
- /***/ 19771:
1436
- /***/ ((module) => {
1437
-
1438
- "use strict";
1439
- module.exports = require("process");
1440
-
1441
- /***/ }),
1442
-
1443
- /***/ 20400:
1444
- /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
1445
-
1446
- Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 33898));
1447
-
1448
-
1449
- /***/ }),
1450
-
1451
- /***/ 21444:
1452
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1453
-
1454
- "use strict";
1455
- // ESM COMPAT FLAG
1456
- __webpack_require__.r(__webpack_exports__);
1457
-
1458
- // EXPORTS
1459
- __webpack_require__.d(__webpack_exports__, {
1460
- "default": () => (/* binding */ RecentDocumentsPageWrapper)
1461
- });
1462
-
1463
- // EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js
1464
- var react_jsx_runtime = __webpack_require__(92692);
1465
- // EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js
1466
- var react = __webpack_require__(71277);
1467
- // EXTERNAL MODULE: ../../node_modules/next-intl/dist/esm/production/react-client/index.js
1468
- var react_client = __webpack_require__(56305);
1469
- // EXTERNAL MODULE: __barrel_optimize__?names=Toolbar!=!../../packages/react-ui/dist/index.mjs
1470
- var dist = __webpack_require__(36297);
1471
- // EXTERNAL MODULE: ./src/components/toolbar/ToolbarPanels.tsx + 4 modules
1472
- var ToolbarPanels = __webpack_require__(50436);
1473
- // EXTERNAL MODULE: __barrel_optimize__?names=useEventSubscriptions,useLineNumbers,usePanelBrowse,useTheme!=!../../packages/react-ui/dist/index.mjs
1474
- var react_ui_dist = __webpack_require__(56677);
1475
- // EXTERNAL MODULE: ../../packages/react-ui/dist/index.mjs + 26 modules
1476
- var packages_react_ui_dist = __webpack_require__(69792);
1477
- ;// __barrel_optimize__?names=RecentDocumentsPage!=!../../packages/react-ui/dist/index.mjs
1478
-
1479
-
1480
- ;// ./src/app/[locale]/moderate/recent/page.tsx
1481
- /* __next_internal_client_entry_do_not_use__ default auto */
1482
-
1483
-
1484
-
1485
-
1486
-
1487
-
1488
- // Authentication is handled by middleware (proxy.ts)
1489
- // Only authenticated moderators/admins can reach this page
1490
- function RecentDocumentsPageWrapper() {
1491
- const t = (0,react_client/* useTranslations */.c)('ModerateRecent');
1492
- // Toolbar and settings state
1493
- const { activePanel } = (0,react_ui_dist/* usePanelBrowse */.ySJ)();
1494
- const { theme, setTheme } = (0,react_ui_dist/* useTheme */.DPo)();
1495
- const { showLineNumbers, toggleLineNumbers } = (0,react_ui_dist/* useLineNumbers */.cvF)();
1496
- const handleThemeChanged = (0,react.useCallback)(({ theme })=>{
1497
- setTheme(theme);
1498
- }, [
1499
- setTheme
1500
- ]);
1501
- const handleLineNumbersToggled = (0,react.useCallback)(()=>{
1502
- toggleLineNumbers();
1503
- }, [
1504
- toggleLineNumbers
1505
- ]);
1506
- (0,react_ui_dist/* useEventSubscriptions */.C$z)({
1507
- 'settings:theme-changed': handleThemeChanged,
1508
- 'settings:line-numbers-toggled': handleLineNumbersToggled
1509
- });
1510
- return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(packages_react_ui_dist.RecentDocumentsPage, {
1511
- hasDocuments: false,
1512
- isLoading: false,
1513
- theme: theme,
1514
- showLineNumbers: showLineNumbers,
1515
- activePanel: activePanel,
1516
- translations: {
1517
- pageTitle: t('pageTitle'),
1518
- pageDescription: t('pageDescription'),
1519
- sectionTitle: t('sectionTitle'),
1520
- sectionDescription: t('sectionDescription'),
1521
- noDocuments: t('noDocuments'),
1522
- activityWillAppear: t('activityWillAppear'),
1523
- loading: t('loading')
1524
- },
1525
- ToolbarPanels: ToolbarPanels/* ToolbarPanels */.t,
1526
- Toolbar: dist/* Toolbar */.M7E
1527
- });
1528
- }
1529
-
1530
-
1531
- /***/ }),
1532
-
1533
- /***/ 25197:
1534
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1535
-
1536
- "use strict";
1537
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1538
- /* harmony export */ C$z: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.useEventSubscriptions),
1539
- /* harmony export */ TbX: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.SimpleNavigation)
1540
- /* harmony export */ });
1541
- /* harmony import */ var _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69792);
1542
-
1543
-
1544
-
1545
- /***/ }),
1546
-
1547
- /***/ 25888:
1548
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1549
-
1550
- "use strict";
1551
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1552
- /* harmony export */ Ef3: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.LeftSidebar),
1553
- /* harmony export */ ffs: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.AuthTokenProvider),
1554
- /* harmony export */ pqI: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.ApiClientProvider),
1555
- /* harmony export */ wi6: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.Footer)
1556
- /* harmony export */ });
1557
- /* harmony import */ var _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69792);
1558
-
1559
-
1560
-
1561
- /***/ }),
1562
-
1563
- /***/ 26713:
1564
- /***/ ((module) => {
1565
-
1566
- "use strict";
1567
- module.exports = require("next/dist/shared/lib/router/utils/is-bot");
1568
-
1569
- /***/ }),
1570
-
1571
- /***/ 28354:
1572
- /***/ ((module) => {
1573
-
1574
- "use strict";
1575
- module.exports = require("util");
1576
-
1577
- /***/ }),
1578
-
1579
- /***/ 29294:
1580
- /***/ ((module) => {
1581
-
1582
- "use strict";
1583
- module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
1584
-
1585
- /***/ }),
1586
-
1587
- /***/ 31039:
1588
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1589
-
1590
- "use strict";
1591
-
1592
- // EXPORTS
1593
- __webpack_require__.d(__webpack_exports__, {
1594
- As: () => (/* binding */ useAuth)
1595
- });
1596
-
1597
- // UNUSED EXPORTS: usePermissions, useUserPreferences
1598
-
1599
- // EXTERNAL MODULE: ../../node_modules/next-auth/react/index.js
1600
- var react = __webpack_require__(62341);
1601
- // EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js
1602
- var ssr_react = __webpack_require__(71277);
1603
- // EXTERNAL MODULE: ../../packages/api-client/dist/index.js
1604
- var dist = __webpack_require__(88887);
1605
- ;// __barrel_optimize__?names=JWTTokenSchema,validateData!=!../../packages/api-client/dist/index.js
1606
-
1607
-
1608
- ;// ./src/hooks/useAuth.ts
1609
- /* __next_internal_client_entry_do_not_use__ useAuth,useUserPreferences,usePermissions auto */
1610
-
1611
-
1612
- /**
1613
- * Enhanced authentication hook with validation and user information
1614
- */ function useAuth() {
1615
- const { data: session, status } = (0,react.useSession)();
1616
- const authInfo = (0,ssr_react.useMemo)(()=>{
1617
- const isLoading = status === 'loading';
1618
- const isAuthenticated = !!session?.user;
1619
- // Validate backend token if present
1620
- const hasValidBackendToken = session?.backendToken ? (0,dist/* validateData */.lv)(dist/* JWTTokenSchema */.k3, session.backendToken).success : false;
1621
- return {
1622
- // Session data
1623
- session,
1624
- user: session?.user,
1625
- backendUser: session?.backendUser,
1626
- // Status flags
1627
- isLoading,
1628
- isAuthenticated,
1629
- hasValidBackendToken,
1630
- // Computed properties
1631
- userDomain: session?.backendUser?.domain || session?.user?.email?.split('@')[1],
1632
- displayName: session?.user?.name || session?.user?.email?.split('@')[0] || 'User',
1633
- avatarUrl: session?.user?.image,
1634
- isAdmin: session?.backendUser?.isAdmin || false,
1635
- isModerator: session?.backendUser?.isModerator || false,
1636
- // Combined auth status
1637
- isFullyAuthenticated: isAuthenticated && hasValidBackendToken
1638
- };
1639
- }, [
1640
- session,
1641
- status
1642
- ]);
1643
- return authInfo;
1644
- }
1645
- /**
1646
- * Hook for getting user preferences and settings
1647
- */ function useUserPreferences() {
1648
- const { session } = useAuth();
1649
- return useMemo(()=>{
1650
- // In the future, this could fetch user preferences from backend
1651
- // For now, return defaults
1652
- return {
1653
- theme: 'system',
1654
- language: 'en',
1655
- timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
1656
- emailNotifications: true
1657
- };
1658
- }, [
1659
- session
1660
- ]);
1661
- }
1662
- /**
1663
- * Hook for checking user permissions (future expansion)
1664
- */ function usePermissions() {
1665
- const { backendUser, isFullyAuthenticated } = useAuth();
1666
- return useMemo(()=>{
1667
- if (!isFullyAuthenticated || !backendUser) {
1668
- return {
1669
- canRead: false,
1670
- canWrite: false,
1671
- canAdmin: false,
1672
- canManageUsers: false
1673
- };
1006
+ // the staticPathKey differs from ssgCacheKey since
1007
+ // ssgCacheKey is null in dev since we're always in "dynamic"
1008
+ // mode in dev to bypass the cache. It can also be null for partial
1009
+ // fallback shells that should remain shared and must not create a
1010
+ // param-specific ISR entry, but we still need to honor fallback handling.
1011
+ let staticPathKey = ssgCacheKey;
1012
+ if (!staticPathKey && (routeModule.isDev || isSSG && pageIsDynamic && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams))) {
1013
+ staticPathKey = resolvedPathname;
1014
+ }
1015
+ // If this is a request for an app path that should be statically generated
1016
+ // and we aren't in the edge runtime, strip the flight headers so it will
1017
+ // generate the static response.
1018
+ if (!routeModule.isDev && !isDraftMode && isSSG && isRSCRequest && !isDynamicRSCRequest) {
1019
+ (0,next_dist_server_app_render_strip_flight_headers__WEBPACK_IMPORTED_MODULE_7__/* .stripFlightHeaders */ .d)(req.headers);
1020
+ }
1021
+ const ComponentMod = {
1022
+ ...next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__,
1023
+ tree,
1024
+ handler,
1025
+ routeModule,
1026
+ __next_app__
1027
+ };
1028
+ // Before rendering (which initializes component tree modules), we have to
1029
+ // set the reference manifests to our global store so Server Action's
1030
+ // encryption util can access to them at the top level of the page module.
1031
+ if (serverActionsManifest && clientReferenceManifest) {
1032
+ (0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__.setManifestsSingleton)({
1033
+ page: srcPage,
1034
+ clientReferenceManifest,
1035
+ serverActionsManifest
1036
+ });
1037
+ }
1038
+ const method = req.method || 'GET';
1039
+ const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__.getTracer)();
1040
+ const activeSpan = tracer.getActiveScopeSpan();
1041
+ const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
1042
+ const remainingFallbackRouteParams = nextConfig.experimental.partialFallbacks === true && remainingPrerenderableParams.length > 0 ? (prerenderInfo == null ? void 0 : (_prerenderInfo_fallbackRouteParams = prerenderInfo.fallbackRouteParams) == null ? void 0 : _prerenderInfo_fallbackRouteParams.filter((param)=>!remainingPrerenderableParams.some((prerenderableParam)=>prerenderableParam.paramName === param.paramName))) ?? [] : [];
1043
+ const render404 = async ()=>{
1044
+ // TODO: should route-module itself handle rendering the 404
1045
+ if (routerServerContext == null ? void 0 : routerServerContext.render404) {
1046
+ await routerServerContext.render404(req, res, parsedUrl, false);
1047
+ } else {
1048
+ res.end('This page could not be found');
1674
1049
  }
1675
- // Basic permissions - in the future this would come from backend
1676
- return {
1677
- canRead: true,
1678
- canWrite: true,
1679
- canAdmin: false,
1680
- canManageUsers: false
1050
+ return null;
1051
+ };
1052
+ try {
1053
+ const varyHeader = routeModule.getVaryHeader(resolvedPathname, interceptionRoutePatterns);
1054
+ res.setHeader('Vary', varyHeader);
1055
+ let parentSpan;
1056
+ const invokeRouteModule = async (span, context)=>{
1057
+ const nextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__.NodeNextRequest(req);
1058
+ const nextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__.NodeNextResponse(res);
1059
+ return routeModule.render(nextReq, nextRes, context).finally(()=>{
1060
+ if (!span) return;
1061
+ span.setAttributes({
1062
+ 'http.status_code': res.statusCode,
1063
+ 'next.rsc': false
1064
+ });
1065
+ const rootSpanAttributes = tracer.getRootSpanAttributes();
1066
+ // We were unable to get attributes, probably OTEL is not enabled
1067
+ if (!rootSpanAttributes) {
1068
+ return;
1069
+ }
1070
+ if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__.BaseServerSpan.handleRequest) {
1071
+ console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
1072
+ return;
1073
+ }
1074
+ const route = rootSpanAttributes.get('next.route');
1075
+ if (route) {
1076
+ const name = `${method} ${route}`;
1077
+ span.setAttributes({
1078
+ 'next.route': route,
1079
+ 'http.route': route,
1080
+ 'next.span_name': name
1081
+ });
1082
+ span.updateName(name);
1083
+ // Propagate http.route to the parent span if one exists (e.g.
1084
+ // a platform-created HTTP span in adapter deployments).
1085
+ if (parentSpan && parentSpan !== span) {
1086
+ parentSpan.setAttribute('http.route', route);
1087
+ parentSpan.updateName(name);
1088
+ }
1089
+ } else {
1090
+ span.updateName(`${method} ${srcPage}`);
1091
+ }
1092
+ });
1681
1093
  };
1682
- }, [
1683
- backendUser,
1684
- isFullyAuthenticated
1685
- ]);
1686
- }
1687
-
1688
-
1689
- /***/ }),
1690
-
1691
- /***/ 32037:
1692
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1693
-
1694
- "use strict";
1695
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1696
- /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
1697
- /* harmony export */ });
1698
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71277);
1699
-
1700
- function ArrowsRightLeftIcon({ title, titleId, ...props }, svgRef) {
1701
- return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", Object.assign({
1702
- xmlns: "http://www.w3.org/2000/svg",
1703
- fill: "none",
1704
- viewBox: "0 0 24 24",
1705
- strokeWidth: 1.5,
1706
- stroke: "currentColor",
1707
- "aria-hidden": "true",
1708
- "data-slot": "icon",
1709
- ref: svgRef,
1710
- "aria-labelledby": titleId
1711
- }, props), title ? /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("title", {
1712
- id: titleId
1713
- }, title) : null, /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
1714
- strokeLinecap: "round",
1715
- strokeLinejoin: "round",
1716
- d: "M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"
1717
- }));
1718
- }
1719
- const ForwardRef = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(ArrowsRightLeftIcon);
1720
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ForwardRef);
1721
-
1722
-
1723
- /***/ }),
1724
-
1725
- /***/ 33873:
1726
- /***/ ((module) => {
1727
-
1728
- "use strict";
1729
- module.exports = require("path");
1730
-
1731
- /***/ }),
1732
-
1733
- /***/ 33898:
1734
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1735
-
1736
- "use strict";
1737
- // ESM COMPAT FLAG
1738
- __webpack_require__.r(__webpack_exports__);
1739
-
1740
- // EXPORTS
1741
- __webpack_require__.d(__webpack_exports__, {
1742
- "default": () => (/* binding */ ModerateLayout)
1743
- });
1744
-
1745
- // EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js
1746
- var react_jsx_runtime = __webpack_require__(92692);
1747
- // EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js
1748
- var react = __webpack_require__(71277);
1749
- // EXTERNAL MODULE: ../../node_modules/next-intl/dist/esm/production/react-client/index.js
1750
- var react_client = __webpack_require__(56305);
1751
- // EXTERNAL MODULE: ../../node_modules/next-auth/react/index.js
1752
- var next_auth_react = __webpack_require__(62341);
1753
- // EXTERNAL MODULE: __barrel_optimize__?names=ApiClientProvider,AuthTokenProvider,Footer,LeftSidebar!=!../../packages/react-ui/dist/index.mjs
1754
- var dist = __webpack_require__(25888);
1755
- // EXTERNAL MODULE: ./src/i18n/routing.ts
1756
- var routing = __webpack_require__(99704);
1757
- // EXTERNAL MODULE: __barrel_optimize__?names=SimpleNavigation,useEventSubscriptions!=!../../packages/react-ui/dist/index.mjs
1758
- var react_ui_dist = __webpack_require__(25197);
1759
- ;// ../../node_modules/@heroicons/react/24/outline/esm/ClockIcon.js
1760
-
1761
- function ClockIcon({ title, titleId, ...props }, svgRef) {
1762
- return /*#__PURE__*/ react.createElement("svg", Object.assign({
1763
- xmlns: "http://www.w3.org/2000/svg",
1764
- fill: "none",
1765
- viewBox: "0 0 24 24",
1766
- strokeWidth: 1.5,
1767
- stroke: "currentColor",
1768
- "aria-hidden": "true",
1769
- "data-slot": "icon",
1770
- ref: svgRef,
1771
- "aria-labelledby": titleId
1772
- }, props), title ? /*#__PURE__*/ react.createElement("title", {
1773
- id: titleId
1774
- }, title) : null, /*#__PURE__*/ react.createElement("path", {
1775
- strokeLinecap: "round",
1776
- strokeLinejoin: "round",
1777
- d: "M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
1778
- }));
1779
- }
1780
- const ForwardRef = /*#__PURE__*/ react.forwardRef(ClockIcon);
1781
- /* harmony default export */ const esm_ClockIcon = (ForwardRef);
1782
-
1783
- ;// ../../node_modules/@heroicons/react/24/outline/esm/TagIcon.js
1784
-
1785
- function TagIcon({ title, titleId, ...props }, svgRef) {
1786
- return /*#__PURE__*/ react.createElement("svg", Object.assign({
1787
- xmlns: "http://www.w3.org/2000/svg",
1788
- fill: "none",
1789
- viewBox: "0 0 24 24",
1790
- strokeWidth: 1.5,
1791
- stroke: "currentColor",
1792
- "aria-hidden": "true",
1793
- "data-slot": "icon",
1794
- ref: svgRef,
1795
- "aria-labelledby": titleId
1796
- }, props), title ? /*#__PURE__*/ react.createElement("title", {
1797
- id: titleId
1798
- }, title) : null, /*#__PURE__*/ react.createElement("path", {
1799
- strokeLinecap: "round",
1800
- strokeLinejoin: "round",
1801
- d: "M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 0 0 5.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 0 0 9.568 3Z"
1802
- }), /*#__PURE__*/ react.createElement("path", {
1803
- strokeLinecap: "round",
1804
- strokeLinejoin: "round",
1805
- d: "M6 6h.008v.008H6V6Z"
1806
- }));
1807
- }
1808
- const TagIcon_ForwardRef = /*#__PURE__*/ react.forwardRef(TagIcon);
1809
- /* harmony default export */ const esm_TagIcon = (TagIcon_ForwardRef);
1810
-
1811
- ;// ../../node_modules/@heroicons/react/24/outline/esm/BookOpenIcon.js
1812
-
1813
- function BookOpenIcon({ title, titleId, ...props }, svgRef) {
1814
- return /*#__PURE__*/ react.createElement("svg", Object.assign({
1815
- xmlns: "http://www.w3.org/2000/svg",
1816
- fill: "none",
1817
- viewBox: "0 0 24 24",
1818
- strokeWidth: 1.5,
1819
- stroke: "currentColor",
1820
- "aria-hidden": "true",
1821
- "data-slot": "icon",
1822
- ref: svgRef,
1823
- "aria-labelledby": titleId
1824
- }, props), title ? /*#__PURE__*/ react.createElement("title", {
1825
- id: titleId
1826
- }, title) : null, /*#__PURE__*/ react.createElement("path", {
1827
- strokeLinecap: "round",
1828
- strokeLinejoin: "round",
1829
- d: "M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"
1830
- }));
1831
- }
1832
- const BookOpenIcon_ForwardRef = /*#__PURE__*/ react.forwardRef(BookOpenIcon);
1833
- /* harmony default export */ const esm_BookOpenIcon = (BookOpenIcon_ForwardRef);
1834
-
1835
- // EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/ArrowsRightLeftIcon.js
1836
- var ArrowsRightLeftIcon = __webpack_require__(32037);
1837
- // EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/ChevronLeftIcon.js
1838
- var ChevronLeftIcon = __webpack_require__(71062);
1839
- // EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/Bars3Icon.js
1840
- var Bars3Icon = __webpack_require__(67255);
1841
- ;// ./src/components/moderation/ModerationNavigation.tsx
1842
- /* __next_internal_client_entry_do_not_use__ ModerationNavigation auto */
1843
-
1844
-
1845
-
1846
-
1847
-
1848
-
1849
- function ModerationNavigation({ isCollapsed, toggleCollapsed, navigationMenu }) {
1850
- const t = (0,react_client/* useTranslations */.c)('Moderation');
1851
- const tSidebar = (0,react_client/* useTranslations */.c)('Sidebar');
1852
- const pathname = (0,routing/* usePathname */.a8)();
1853
- // Handle sidebar toggle events
1854
- const handleSidebarToggle = (0,react.useCallback)(()=>{
1855
- toggleCollapsed();
1856
- }, [
1857
- toggleCollapsed
1858
- ]);
1859
- // Subscribe to sidebar toggle events
1860
- (0,react_ui_dist/* useEventSubscriptions */.C$z)({
1861
- 'browse:sidebar-toggle': handleSidebarToggle
1862
- });
1863
- const navigation = [
1864
- {
1865
- name: t('recentResources'),
1866
- href: '/moderate/recent',
1867
- icon: esm_ClockIcon,
1868
- description: t('recentResourcesDescription')
1869
- },
1870
- {
1871
- name: t('entityTags'),
1872
- href: '/moderate/entity-tags',
1873
- icon: esm_TagIcon,
1874
- description: t('entityTagsDescription')
1875
- },
1876
- {
1877
- name: t('tagSchemas'),
1878
- href: '/moderate/tag-schemas',
1879
- icon: esm_BookOpenIcon,
1880
- description: t('tagSchemasDescription')
1881
- },
1882
- {
1883
- name: t('linkedData'),
1884
- href: '/moderate/linked-data',
1885
- icon: ArrowsRightLeftIcon/* default */.A,
1886
- description: t('linkedDataDescription')
1094
+ const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);
1095
+ incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
1096
+ globalThis.__incrementalCache = incrementalCache;
1097
+ const doRender = async ({ span, postponed, fallbackRouteParams, forceStaticRender })=>{
1098
+ const context = {
1099
+ query,
1100
+ params,
1101
+ page: normalizedSrcPage,
1102
+ sharedContext: {
1103
+ buildId,
1104
+ deploymentId,
1105
+ clientAssetToken
1106
+ },
1107
+ serverComponentsHmrCache: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'serverComponentsHmrCache'),
1108
+ fallbackRouteParams,
1109
+ renderOpts: {
1110
+ App: ()=>null,
1111
+ Document: ()=>null,
1112
+ pageConfig: {},
1113
+ ComponentMod,
1114
+ Component: (0,next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_6__/* .interopDefault */ .T)(ComponentMod),
1115
+ params,
1116
+ routeModule,
1117
+ page: srcPage,
1118
+ postponed,
1119
+ shouldWaitOnAllReady,
1120
+ serveStreamingMetadata,
1121
+ supportsDynamicResponse: typeof postponed === 'string' || supportsDynamicResponse,
1122
+ buildManifest,
1123
+ nextFontManifest,
1124
+ reactLoadableManifest,
1125
+ subresourceIntegrityManifest,
1126
+ setCacheStatus: routerServerContext == null ? void 0 : routerServerContext.setCacheStatus,
1127
+ setIsrStatus: routerServerContext == null ? void 0 : routerServerContext.setIsrStatus,
1128
+ setReactDebugChannel: routerServerContext == null ? void 0 : routerServerContext.setReactDebugChannel,
1129
+ sendErrorsToBrowser: routerServerContext == null ? void 0 : routerServerContext.sendErrorsToBrowser,
1130
+ dir: true ? (__webpack_require__(33873).join)(/* turbopackIgnore: true */ process.cwd(), routeModule.relativeProjectDir) : 0,
1131
+ isDraftMode,
1132
+ botType,
1133
+ isOnDemandRevalidate,
1134
+ isPossibleServerAction,
1135
+ assetPrefix: nextConfig.assetPrefix,
1136
+ nextConfigOutput: nextConfig.output,
1137
+ crossOrigin: nextConfig.crossOrigin,
1138
+ trailingSlash: nextConfig.trailingSlash,
1139
+ images: nextConfig.images,
1140
+ previewProps: prerenderManifest.preview,
1141
+ enableTainting: nextConfig.experimental.taint,
1142
+ htmlLimitedBots: nextConfig.htmlLimitedBots,
1143
+ reactMaxHeadersLength: nextConfig.reactMaxHeadersLength,
1144
+ multiZoneDraftMode,
1145
+ incrementalCache,
1146
+ cacheLifeProfiles: nextConfig.cacheLife,
1147
+ basePath: nextConfig.basePath,
1148
+ serverActions: nextConfig.experimental.serverActions,
1149
+ logServerFunctions: typeof nextConfig.logging === 'object' && Boolean(nextConfig.logging.serverFunctions),
1150
+ ...isDebugStaticShell || isDebugDynamicAccesses || isDebugFallbackShell ? {
1151
+ isBuildTimePrerendering: true,
1152
+ supportsDynamicResponse: false,
1153
+ isStaticGeneration: true,
1154
+ isDebugDynamicAccesses: isDebugDynamicAccesses
1155
+ } : {},
1156
+ cacheComponents: Boolean(nextConfig.cacheComponents),
1157
+ experimental: {
1158
+ isRoutePPREnabled,
1159
+ expireTime: nextConfig.expireTime,
1160
+ staleTimes: nextConfig.experimental.staleTimes,
1161
+ dynamicOnHover: Boolean(nextConfig.experimental.dynamicOnHover),
1162
+ optimisticRouting: Boolean(nextConfig.experimental.optimisticRouting),
1163
+ inlineCss: Boolean(nextConfig.experimental.inlineCss),
1164
+ prefetchInlining: nextConfig.experimental.prefetchInlining ?? false,
1165
+ authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
1166
+ cachedNavigations: Boolean(nextConfig.experimental.cachedNavigations),
1167
+ clientTraceMetadata: nextConfig.experimental.clientTraceMetadata || [],
1168
+ clientParamParsingOrigins: nextConfig.experimental.clientParamParsingOrigins,
1169
+ maxPostponedStateSizeBytes: (0,next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__.parseMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize)
1170
+ },
1171
+ waitUntil: ctx.waitUntil,
1172
+ onClose: (cb)=>{
1173
+ res.on('close', cb);
1174
+ },
1175
+ onAfterTaskError: ()=>{},
1176
+ onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext),
1177
+ err: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'invokeError')
1178
+ }
1179
+ };
1180
+ // When we're revalidating in the background, we should not allow dynamic
1181
+ // responses.
1182
+ if (forceStaticRender) {
1183
+ context.renderOpts.supportsDynamicResponse = false;
1184
+ }
1185
+ const result = await invokeRouteModule(span, context);
1186
+ const { metadata } = result;
1187
+ const { cacheControl, headers = {}, // Add any fetch tags that were on the page to the response headers.
1188
+ fetchTags: cacheTags, fetchMetrics } = metadata;
1189
+ if (cacheTags) {
1190
+ headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
1191
+ }
1192
+ // Pull any fetch metrics from the render onto the request.
1193
+ ;
1194
+ req.fetchMetrics = fetchMetrics;
1195
+ // we don't throw static to dynamic errors in dev as isSSG
1196
+ // is a best guess in dev since we don't have the prerender pass
1197
+ // to know whether the path is actually static or not
1198
+ if (isSSG && (cacheControl == null ? void 0 : cacheControl.revalidate) === 0 && !routeModule.isDev && !isRoutePPREnabled) {
1199
+ const staticBailoutInfo = metadata.staticBailoutInfo;
1200
+ const err = Object.defineProperty(new Error(`Page changed from static to dynamic at runtime ${resolvedPathname}${(staticBailoutInfo == null ? void 0 : staticBailoutInfo.description) ? `, reason: ${staticBailoutInfo.description}` : ``}` + `\nsee more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`), "__NEXT_ERROR_CODE", {
1201
+ value: "E132",
1202
+ enumerable: false,
1203
+ configurable: true
1204
+ });
1205
+ if (staticBailoutInfo == null ? void 0 : staticBailoutInfo.stack) {
1206
+ const stack = staticBailoutInfo.stack;
1207
+ err.stack = err.message + stack.substring(stack.indexOf('\n'));
1208
+ }
1209
+ throw err;
1210
+ }
1211
+ return {
1212
+ value: {
1213
+ kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE,
1214
+ html: result,
1215
+ headers,
1216
+ rscData: metadata.flightData,
1217
+ postponed: metadata.postponed,
1218
+ status: metadata.statusCode,
1219
+ segmentData: metadata.segmentData
1220
+ },
1221
+ cacheControl
1222
+ };
1223
+ };
1224
+ const responseGenerator = async ({ hasResolved, previousCacheEntry: previousIncrementalCacheEntry, isRevalidating, span, forceStaticRender = false })=>{
1225
+ const isProduction = routeModule.isDev === false;
1226
+ const didRespond = hasResolved || res.writableEnded;
1227
+ // skip on-demand revalidate if cache is not present and
1228
+ // revalidate-if-generated is set
1229
+ if (isOnDemandRevalidate && revalidateOnlyGenerated && !previousIncrementalCacheEntry && !isMinimalMode) {
1230
+ if (routerServerContext == null ? void 0 : routerServerContext.render404) {
1231
+ await routerServerContext.render404(req, res);
1232
+ } else {
1233
+ res.statusCode = 404;
1234
+ res.end('This page could not be found');
1235
+ }
1236
+ return null;
1237
+ }
1238
+ let fallbackMode;
1239
+ if (prerenderInfo) {
1240
+ fallbackMode = (0,next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.parseFallbackField)(prerenderInfo.fallback);
1241
+ }
1242
+ if (nextConfig.experimental.partialFallbacks === true && (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === null && !hasUnresolvedRootFallbackParams && remainingPrerenderableParams.length > 0) {
1243
+ // Generic source shells without unresolved root params don't have a
1244
+ // concrete fallback file of their own, so they're marked as blocking.
1245
+ // When we can complete the shell into a more specific
1246
+ // prerendered shell for this request, treat it like a prerender
1247
+ // fallback so we can serve that shell instead of blocking on the full
1248
+ // route. Root-param shells stay blocking, since unknown root branches
1249
+ // should not inherit a shell from another generated branch.
1250
+ fallbackMode = next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.PRERENDER;
1251
+ }
1252
+ // When serving a HTML bot request, we want to serve a blocking render and
1253
+ // not the prerendered page. This ensures that the correct content is served
1254
+ // to the bot in the head.
1255
+ if (fallbackMode === next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.PRERENDER && (0,next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__.isBot)(userAgent)) {
1256
+ if (!isRoutePPREnabled || isHtmlBot) {
1257
+ fallbackMode = next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.BLOCKING_STATIC_RENDER;
1258
+ }
1259
+ }
1260
+ if ((previousIncrementalCacheEntry == null ? void 0 : previousIncrementalCacheEntry.isStale) === -1) {
1261
+ isOnDemandRevalidate = true;
1262
+ }
1263
+ // TODO: adapt for PPR
1264
+ // only allow on-demand revalidate for fallback: true/blocking
1265
+ // or for prerendered fallback: false paths
1266
+ if (isOnDemandRevalidate && (fallbackMode !== next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.NOT_FOUND || previousIncrementalCacheEntry)) {
1267
+ fallbackMode = next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.BLOCKING_STATIC_RENDER;
1268
+ }
1269
+ if (!isMinimalMode && fallbackMode !== next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.BLOCKING_STATIC_RENDER && staticPathKey && !didRespond && !isDraftMode && pageIsDynamic && (isProduction || !isPrerendered)) {
1270
+ // if the page has dynamicParams: false and this pathname wasn't
1271
+ // prerendered trigger the no fallback handling
1272
+ if (// In development, fall through to render to handle missing
1273
+ // getStaticPaths.
1274
+ (isProduction || prerenderInfo) && // When fallback isn't present, abort this render so we 404
1275
+ fallbackMode === next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.NOT_FOUND) {
1276
+ if (nextConfig.adapterPath) {
1277
+ return await render404();
1278
+ }
1279
+ throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__.NoFallbackError();
1280
+ }
1281
+ // When cacheComponents is enabled, we can use the fallback
1282
+ // response if the request is not a dynamic RSC request because the
1283
+ // RSC data when this feature flag is enabled does not contain any
1284
+ // param references. Without this feature flag enabled, the RSC data
1285
+ // contains param references, and therefore we can't use the fallback.
1286
+ if (isRoutePPREnabled && (nextConfig.cacheComponents ? !isDynamicRSCRequest : !isRSCRequest)) {
1287
+ const cacheKey = isProduction && typeof (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === 'string' ? prerenderInfo.fallback : normalizedSrcPage;
1288
+ const fallbackRouteParams = // In production or when debugging the static shell (e.g. instant
1289
+ // navigation testing), use the prerender manifest's fallback
1290
+ // route params which correctly identifies which params are
1291
+ // unknown. Note: in dev, this block is only entered for
1292
+ // non-prerendered URLs (guarded by the outer condition).
1293
+ (isProduction || isDebugStaticShell) && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams) : // fallback (simulating the worst-case shell).
1294
+ isDebugFallbackShell ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.getFallbackRouteParams)(normalizedSrcPage, routeModule) : null;
1295
+ // When rendering a debug static shell, override the fallback
1296
+ // params on the request so that the staged rendering correctly
1297
+ // defers params that are not statically known.
1298
+ if (isDebugStaticShell && fallbackRouteParams) {
1299
+ (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'fallbackParams', fallbackRouteParams);
1300
+ }
1301
+ // We use the response cache here to handle the revalidation and
1302
+ // management of the fallback shell.
1303
+ const fallbackResponse = await routeModule.handleResponse({
1304
+ cacheKey,
1305
+ req,
1306
+ nextConfig,
1307
+ routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_PAGE,
1308
+ isFallback: true,
1309
+ prerenderManifest,
1310
+ isRoutePPREnabled,
1311
+ responseGenerator: async ()=>doRender({
1312
+ span,
1313
+ // We pass `undefined` as rendering a fallback isn't resumed
1314
+ // here.
1315
+ postponed: undefined,
1316
+ // Always serve the shell that matched this request
1317
+ // immediately. If there are still prerenderable params left,
1318
+ // the background path below will complete the shell into a
1319
+ // more specific cache entry for later requests.
1320
+ fallbackRouteParams,
1321
+ forceStaticRender: true
1322
+ }),
1323
+ waitUntil: ctx.waitUntil,
1324
+ isMinimalMode
1325
+ });
1326
+ // If the fallback response was set to null, then we should return null.
1327
+ if (fallbackResponse === null) return null;
1328
+ // Otherwise, if we did get a fallback response, we should return it.
1329
+ if (fallbackResponse) {
1330
+ if (!isMinimalMode && isRoutePPREnabled && // Match the build-time contract: only fallback shells that can
1331
+ // still be completed with prerenderable params should upgrade.
1332
+ remainingPrerenderableParams.length > 0 && nextConfig.experimental.partialFallbacks === true && ssgCacheKey && incrementalCache && !isOnDemandRevalidate && !isDebugFallbackShell && // The testing API relies on deterministic shell behavior, so
1333
+ // don't upgrade fallback shells in the background when it's
1334
+ // exposed.
1335
+ !exposeTestingApi && // Instant Navigation Testing API requests intentionally keep
1336
+ // the route in shell mode; don't upgrade these in background.
1337
+ !isInstantNavigationTest && // Avoid background revalidate during prefetches; this can trigger
1338
+ // static prerender errors that surface as 500s for the prefetch
1339
+ // request itself.
1340
+ !isPrefetchRSCRequest) {
1341
+ (0,next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__.scheduleOnNextTick)(async ()=>{
1342
+ const responseCache = routeModule.getResponseCache(req);
1343
+ try {
1344
+ // Only the params that were just specialized should be
1345
+ // removed from the fallback render. Any remaining fallback
1346
+ // params stay deferred so the revalidated result is a more
1347
+ // specific shell (e.g. `/prefix/c/[two]`), not a fully
1348
+ // concrete route (`/prefix/c/foo`).
1349
+ await responseCache.revalidate(ssgCacheKey, incrementalCache, isRoutePPREnabled, false, (c)=>{
1350
+ return doRender({
1351
+ span: c.span,
1352
+ postponed: undefined,
1353
+ fallbackRouteParams: remainingFallbackRouteParams.length > 0 ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(remainingFallbackRouteParams) : null,
1354
+ forceStaticRender: true
1355
+ });
1356
+ }, // We don't have a prior entry for this param-specific shell.
1357
+ null, hasResolved, ctx.waitUntil);
1358
+ } catch (err) {
1359
+ console.error('Error revalidating the page in the background', err);
1360
+ }
1361
+ });
1362
+ }
1363
+ // Remove the cache control from the response to prevent it from being
1364
+ // used in the surrounding cache.
1365
+ delete fallbackResponse.cacheControl;
1366
+ return fallbackResponse;
1367
+ }
1368
+ }
1369
+ }
1370
+ // Only requests that aren't revalidating can be resumed. If we have the
1371
+ // minimal postponed data, then we should resume the render with it.
1372
+ let postponed = !isOnDemandRevalidate && !isRevalidating && minimalPostponed ? minimalPostponed : undefined;
1373
+ // If this is a dynamic RSC request or a server action request, we should
1374
+ // use the postponed data from the static render (if available). This
1375
+ // ensures that we can utilize the resume data cache (RDC) from the static
1376
+ // render to ensure that the data is consistent between the static and
1377
+ // dynamic renders (for navigations) or when re-rendering after a server
1378
+ // action.
1379
+ if (// Only enable RDC for Navigations if the feature is enabled.
1380
+ supportsRDCForNavigations && "nodejs" !== 'edge' && !isMinimalMode && incrementalCache && // Include both dynamic RSC requests (navigations) and server actions
1381
+ (isDynamicRSCRequest || isPossibleServerAction) && // We don't typically trigger an on-demand revalidation for dynamic RSC
1382
+ // requests, as we're typically revalidating the page in the background
1383
+ // instead. However, if the cache entry is stale, we should trigger a
1384
+ // background revalidation on dynamic RSC requests. This prevents us
1385
+ // from entering an infinite loop of revalidations.
1386
+ !forceStaticRender) {
1387
+ const incrementalCacheEntry = await incrementalCache.get(resolvedPathname, {
1388
+ kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.IncrementalCacheKind.APP_PAGE,
1389
+ isRoutePPREnabled: true,
1390
+ isFallback: false
1391
+ });
1392
+ // If the cache entry is found, we should use the postponed data from
1393
+ // the cache.
1394
+ if (incrementalCacheEntry && incrementalCacheEntry.value && incrementalCacheEntry.value.kind === next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE) {
1395
+ // CRITICAL: we're assigning the postponed data from the cache entry
1396
+ // here as we're using the RDC to resume the render.
1397
+ postponed = incrementalCacheEntry.value.postponed;
1398
+ // If the cache entry is stale, we should trigger a background
1399
+ // revalidation so that subsequent requests will get a fresh response.
1400
+ if (incrementalCacheEntry && // We want to trigger this flow if the cache entry is stale and if
1401
+ // the requested revalidation flow is either foreground or
1402
+ // background.
1403
+ (incrementalCacheEntry.isStale === -1 || incrementalCacheEntry.isStale === true)) {
1404
+ // We want to schedule this on the next tick to ensure that the
1405
+ // render is not blocked on it.
1406
+ (0,next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__.scheduleOnNextTick)(async ()=>{
1407
+ const responseCache = routeModule.getResponseCache(req);
1408
+ try {
1409
+ await responseCache.revalidate(resolvedPathname, incrementalCache, isRoutePPREnabled, false, (c)=>responseGenerator({
1410
+ ...c,
1411
+ // CRITICAL: we need to set this to true as we're
1412
+ // revalidating in the background and typically this dynamic
1413
+ // RSC request is not treated as static.
1414
+ forceStaticRender: true
1415
+ }), // CRITICAL: we need to pass null here because passing the
1416
+ // previous cache entry here (which is stale) will switch on
1417
+ // isOnDemandRevalidate and break the prerendering.
1418
+ null, hasResolved, ctx.waitUntil);
1419
+ } catch (err) {
1420
+ console.error('Error revalidating the page in the background', err);
1421
+ }
1422
+ });
1423
+ }
1424
+ }
1425
+ }
1426
+ // When we're in minimal mode, if we're trying to debug the static shell,
1427
+ // we should just return nothing instead of resuming the dynamic render.
1428
+ if ((isDebugStaticShell || isDebugDynamicAccesses) && typeof postponed !== 'undefined') {
1429
+ return {
1430
+ cacheControl: {
1431
+ revalidate: 1,
1432
+ expire: undefined
1433
+ },
1434
+ value: {
1435
+ kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.PAGES,
1436
+ html: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].EMPTY,
1437
+ pageData: {},
1438
+ headers: undefined,
1439
+ status: undefined
1440
+ }
1441
+ };
1442
+ }
1443
+ const fallbackRouteParams = // In production or when debugging the static shell for a
1444
+ // non-prerendered URL, use the prerender manifest's fallback route
1445
+ // params which correctly identifies which params are unknown.
1446
+ (isProduction && (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'renderFallbackShell') || isDebugStaticShell && !isPrerendered) && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams) : isDebugFallbackShell ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.getFallbackRouteParams)(normalizedSrcPage, routeModule) : null;
1447
+ // For staged dynamic rendering (Cached Navigations) and debug static
1448
+ // shell rendering, pass the fallback params via request meta so the
1449
+ // RequestStore knows which params to defer. We don't pass them as
1450
+ // fallbackRouteParams because that would replace actual param values
1451
+ // with opaque placeholders during segment resolution.
1452
+ if ((isProduction || isDebugStaticShell) && nextConfig.cacheComponents && !isPrerendered && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams)) {
1453
+ const fallbackParams = (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams);
1454
+ if (fallbackParams) {
1455
+ (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'fallbackParams', fallbackParams);
1456
+ }
1457
+ }
1458
+ // Perform the render.
1459
+ return doRender({
1460
+ span,
1461
+ postponed,
1462
+ fallbackRouteParams,
1463
+ forceStaticRender
1464
+ });
1465
+ };
1466
+ const handleResponse = async (span)=>{
1467
+ var _cacheEntry_value, _cachedData_headers;
1468
+ const cacheEntry = await routeModule.handleResponse({
1469
+ cacheKey: ssgCacheKey,
1470
+ responseGenerator: (c)=>responseGenerator({
1471
+ span,
1472
+ ...c
1473
+ }),
1474
+ routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_PAGE,
1475
+ isOnDemandRevalidate,
1476
+ isRoutePPREnabled,
1477
+ req,
1478
+ nextConfig,
1479
+ prerenderManifest,
1480
+ waitUntil: ctx.waitUntil,
1481
+ isMinimalMode
1482
+ });
1483
+ if (isDraftMode) {
1484
+ res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
1485
+ }
1486
+ // In dev, we should not cache pages for any reason.
1487
+ if (routeModule.isDev) {
1488
+ res.setHeader('Cache-Control', 'no-cache, must-revalidate');
1489
+ }
1490
+ if (!cacheEntry) {
1491
+ if (ssgCacheKey) {
1492
+ // A cache entry might not be generated if a response is written
1493
+ // in `getInitialProps` or `getServerSideProps`, but those shouldn't
1494
+ // have a cache key. If we do have a cache key but we don't end up
1495
+ // with a cache entry, then either Next.js or the application has a
1496
+ // bug that needs fixing.
1497
+ throw Object.defineProperty(new Error('invariant: cache entry required but not generated'), "__NEXT_ERROR_CODE", {
1498
+ value: "E62",
1499
+ enumerable: false,
1500
+ configurable: true
1501
+ });
1502
+ }
1503
+ return null;
1504
+ }
1505
+ if (((_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE) {
1506
+ var _cacheEntry_value1;
1507
+ throw Object.defineProperty(new Error(`Invariant app-page handler received invalid cache entry ${(_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), "__NEXT_ERROR_CODE", {
1508
+ value: "E707",
1509
+ enumerable: false,
1510
+ configurable: true
1511
+ });
1512
+ }
1513
+ const didPostpone = typeof cacheEntry.value.postponed === 'string';
1514
+ // Set the build ID header for RSC navigation requests when deploymentId is configured. This
1515
+ // corresponds with maybeAppendBuildIdToRSCPayload in app-render.tsx which omits the build ID
1516
+ // from the RSC payload when deploymentId is set (relying on this header instead). Server
1517
+ // actions are excluded here because action redirect responses get the deployment ID header
1518
+ // from the pre-fetched redirect target (via createRedirectRenderResult in action-handler.ts
1519
+ // which copies headers from the internal RSC fetch).
1520
+ // For static prerenders served from CDN, routes-manifest.json adds a header.
1521
+ if (isRSCRequest && !isPossibleServerAction && deploymentId) {
1522
+ res.setHeader(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_NAV_DEPLOYMENT_ID_HEADER, deploymentId);
1523
+ }
1524
+ if (isSSG && // We don't want to send a cache header for requests that contain dynamic
1525
+ // data. If this is a Dynamic RSC request or wasn't a Prefetch RSC
1526
+ // request, then we should set the cache header.
1527
+ !isDynamicRSCRequest && (!didPostpone || isPrefetchRSCRequest)) {
1528
+ if (!isMinimalMode) {
1529
+ // set x-nextjs-cache header to match the header
1530
+ // we set for the image-optimizer
1531
+ res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
1532
+ }
1533
+ // Set a header used by the client router to signal the response is static
1534
+ // and should respect the `static` cache staleTime value.
1535
+ res.setHeader(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_IS_PRERENDER_HEADER, '1');
1536
+ }
1537
+ const { value: cachedData } = cacheEntry;
1538
+ // Coerce the cache control parameter from the render.
1539
+ let cacheControl;
1540
+ // If this is a resume request in minimal mode it is streamed with dynamic
1541
+ // content and should not be cached.
1542
+ if (minimalPostponed) {
1543
+ cacheControl = {
1544
+ revalidate: 0,
1545
+ expire: undefined
1546
+ };
1547
+ } else if (isDynamicRSCRequest) {
1548
+ cacheControl = {
1549
+ revalidate: 0,
1550
+ expire: undefined
1551
+ };
1552
+ } else if (!routeModule.isDev) {
1553
+ // If this is a preview mode request, we shouldn't cache it
1554
+ if (isDraftMode) {
1555
+ cacheControl = {
1556
+ revalidate: 0,
1557
+ expire: undefined
1558
+ };
1559
+ } else if (!isSSG) {
1560
+ if (!res.getHeader('Cache-Control')) {
1561
+ cacheControl = {
1562
+ revalidate: 0,
1563
+ expire: undefined
1564
+ };
1565
+ }
1566
+ } else if (cacheEntry.cacheControl) {
1567
+ // If the cache entry has a cache control with a revalidate value that's
1568
+ // a number, use it.
1569
+ if (typeof cacheEntry.cacheControl.revalidate === 'number') {
1570
+ var _cacheEntry_cacheControl;
1571
+ if (cacheEntry.cacheControl.revalidate < 1) {
1572
+ throw Object.defineProperty(new Error(`Invalid revalidate configuration provided: ${cacheEntry.cacheControl.revalidate} < 1`), "__NEXT_ERROR_CODE", {
1573
+ value: "E22",
1574
+ enumerable: false,
1575
+ configurable: true
1576
+ });
1577
+ }
1578
+ cacheControl = {
1579
+ revalidate: cacheEntry.cacheControl.revalidate,
1580
+ expire: ((_cacheEntry_cacheControl = cacheEntry.cacheControl) == null ? void 0 : _cacheEntry_cacheControl.expire) ?? nextConfig.expireTime
1581
+ };
1582
+ } else {
1583
+ cacheControl = {
1584
+ revalidate: next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.CACHE_ONE_YEAR_SECONDS,
1585
+ expire: undefined
1586
+ };
1587
+ }
1588
+ }
1589
+ }
1590
+ cacheEntry.cacheControl = cacheControl;
1591
+ if (typeof segmentPrefetchHeader === 'string' && (cachedData == null ? void 0 : cachedData.kind) === next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE && cachedData.segmentData) {
1592
+ var _cachedData_headers1;
1593
+ // This is a prefetch request issued by the client Segment Cache. These
1594
+ // should never reach the application layer (lambda). We should either
1595
+ // respond from the cache (HIT) or respond with 204 No Content (MISS).
1596
+ // Set a header to indicate that PPR is enabled for this route. This
1597
+ // lets the client distinguish between a regular cache miss and a cache
1598
+ // miss due to PPR being disabled. In other contexts this header is used
1599
+ // to indicate that the response contains dynamic data, but here we're
1600
+ // only using it to indicate that the feature is enabled — the segment
1601
+ // response itself contains whether the data is dynamic.
1602
+ res.setHeader(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_DID_POSTPONE_HEADER, '2');
1603
+ // Add the cache tags header to the response if it exists and we're in
1604
+ // minimal mode while rendering a static page.
1605
+ const tags = (_cachedData_headers1 = cachedData.headers) == null ? void 0 : _cachedData_headers1[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER];
1606
+ if (isMinimalMode && isSSG && tags && typeof tags === 'string') {
1607
+ res.setHeader(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER, tags);
1608
+ }
1609
+ const matchedSegment = cachedData.segmentData.get(segmentPrefetchHeader);
1610
+ if (matchedSegment !== undefined) {
1611
+ // Cache hit
1612
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1613
+ req,
1614
+ res,
1615
+ generateEtags: nextConfig.generateEtags,
1616
+ poweredByHeader: nextConfig.poweredByHeader,
1617
+ result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].fromStatic(matchedSegment, next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_CONTENT_TYPE_HEADER),
1618
+ cacheControl: cacheEntry.cacheControl
1619
+ });
1620
+ }
1621
+ // Cache miss. Either a cache entry for this route has not been generated
1622
+ // (which technically should not be possible when PPR is enabled, because
1623
+ // at a minimum there should always be a fallback entry) or there's no
1624
+ // match for the requested segment. Respond with a 204 No Content. We
1625
+ // don't bother to respond with 404, because these requests are only
1626
+ // issued as part of a prefetch.
1627
+ res.statusCode = 204;
1628
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1629
+ req,
1630
+ res,
1631
+ generateEtags: nextConfig.generateEtags,
1632
+ poweredByHeader: nextConfig.poweredByHeader,
1633
+ result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].EMPTY,
1634
+ cacheControl: cacheEntry.cacheControl
1635
+ });
1636
+ }
1637
+ // If there's a callback for `onCacheEntry`, call it with the cache entry
1638
+ // and the revalidate options. If we support RDC for Navigations, we
1639
+ // prefer the `onCacheEntryV2` callback. Once RDC for Navigations is the
1640
+ // default, we can remove the fallback to `onCacheEntry` as
1641
+ // `onCacheEntryV2` is now fully supported.
1642
+ const onCacheEntry = supportsRDCForNavigations ? (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntryV2') ?? (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntry') : (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntry');
1643
+ if (onCacheEntry) {
1644
+ const finished = await onCacheEntry(cacheEntry, {
1645
+ url: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'initURL') ?? req.url
1646
+ });
1647
+ if (finished) return null;
1648
+ }
1649
+ if (cachedData.headers) {
1650
+ const headers = {
1651
+ ...cachedData.headers
1652
+ };
1653
+ if (!isMinimalMode || !isSSG) {
1654
+ delete headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER];
1655
+ }
1656
+ for (let [key, value] of Object.entries(headers)){
1657
+ if (typeof value === 'undefined') continue;
1658
+ if (Array.isArray(value)) {
1659
+ for (const v of value){
1660
+ res.appendHeader(key, v);
1661
+ }
1662
+ } else if (typeof value === 'number') {
1663
+ value = value.toString();
1664
+ res.appendHeader(key, value);
1665
+ } else {
1666
+ res.appendHeader(key, value);
1667
+ }
1668
+ }
1669
+ }
1670
+ // Add the cache tags header to the response if it exists and we're in
1671
+ // minimal mode while rendering a static page.
1672
+ const tags = (_cachedData_headers = cachedData.headers) == null ? void 0 : _cachedData_headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER];
1673
+ if (isMinimalMode && isSSG && tags && typeof tags === 'string') {
1674
+ res.setHeader(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER, tags);
1675
+ }
1676
+ // If the request is a data request, then we shouldn't set the status code
1677
+ // from the response because it should always be 200. This should be gated
1678
+ // behind the experimental PPR flag.
1679
+ if (cachedData.status && (!isRSCRequest || !isRoutePPREnabled)) {
1680
+ res.statusCode = cachedData.status;
1681
+ }
1682
+ // Redirect information is encoded in RSC payload, so we don't need to use redirect status codes
1683
+ if (!isMinimalMode && cachedData.status && next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__.RedirectStatusCode[cachedData.status] && isRSCRequest) {
1684
+ res.statusCode = 200;
1685
+ }
1686
+ // Mark that the request did postpone.
1687
+ if (didPostpone && !isDynamicRSCRequest) {
1688
+ res.setHeader(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_DID_POSTPONE_HEADER, '1');
1689
+ }
1690
+ // we don't go through this block when preview mode is true
1691
+ // as preview mode is a dynamic request (bypasses cache) and doesn't
1692
+ // generate both HTML and payloads in the same request so continue to just
1693
+ // return the generated payload
1694
+ if (isRSCRequest && !isDraftMode) {
1695
+ // If this is a dynamic RSC request, then stream the response.
1696
+ if (typeof cachedData.rscData === 'undefined') {
1697
+ // If the response is not an RSC response, then we can't serve it.
1698
+ if (cachedData.html.contentType !== next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_CONTENT_TYPE_HEADER) {
1699
+ if (nextConfig.cacheComponents) {
1700
+ res.statusCode = 404;
1701
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1702
+ req,
1703
+ res,
1704
+ generateEtags: nextConfig.generateEtags,
1705
+ poweredByHeader: nextConfig.poweredByHeader,
1706
+ result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].EMPTY,
1707
+ cacheControl: cacheEntry.cacheControl
1708
+ });
1709
+ } else {
1710
+ // Otherwise this case is not expected.
1711
+ throw Object.defineProperty(new next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__.InvariantError(`Expected RSC response, got ${cachedData.html.contentType}`), "__NEXT_ERROR_CODE", {
1712
+ value: "E789",
1713
+ enumerable: false,
1714
+ configurable: true
1715
+ });
1716
+ }
1717
+ }
1718
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1719
+ req,
1720
+ res,
1721
+ generateEtags: nextConfig.generateEtags,
1722
+ poweredByHeader: nextConfig.poweredByHeader,
1723
+ result: cachedData.html,
1724
+ cacheControl: cacheEntry.cacheControl
1725
+ });
1726
+ }
1727
+ // As this isn't a prefetch request, we should serve the static flight
1728
+ // data.
1729
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1730
+ req,
1731
+ res,
1732
+ generateEtags: nextConfig.generateEtags,
1733
+ poweredByHeader: nextConfig.poweredByHeader,
1734
+ result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].fromStatic(cachedData.rscData, next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_CONTENT_TYPE_HEADER),
1735
+ cacheControl: cacheEntry.cacheControl
1736
+ });
1737
+ }
1738
+ // This is a request for HTML data.
1739
+ const body = cachedData.html;
1740
+ // Instant Navigation Testing API: serve the static shell with an
1741
+ // injected script that sets self.__next_instant_test and kicks off a
1742
+ // static RSC fetch for hydration. The transform stream also appends
1743
+ // closing </body></html> tags so the browser can parse the full document.
1744
+ // In dev mode, also inject self.__next_r so the HMR WebSocket and
1745
+ // debug channel can initialize.
1746
+ if (isInstantNavigationTest && isDebugStaticShell) {
1747
+ const instantTestRequestId = routeModule.isDev === true ? crypto.randomUUID() : null;
1748
+ body.pipeThrough((0,next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__.createInstantTestScriptInsertionTransformStream)(instantTestRequestId));
1749
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1750
+ req,
1751
+ res,
1752
+ generateEtags: nextConfig.generateEtags,
1753
+ poweredByHeader: nextConfig.poweredByHeader,
1754
+ result: body,
1755
+ cacheControl: {
1756
+ revalidate: 0,
1757
+ expire: undefined
1758
+ }
1759
+ });
1760
+ }
1761
+ // If there's no postponed state, we should just serve the HTML. This
1762
+ // should also be the case for a resume request because it's completed
1763
+ // as a server render (rather than a static render).
1764
+ if (!didPostpone || isMinimalMode || isRSCRequest) {
1765
+ // If we're in test mode, we should add a sentinel chunk to the response
1766
+ // that's between the static and dynamic parts so we can compare the
1767
+ // chunks and add assertions.
1768
+ if (false) {}
1769
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1770
+ req,
1771
+ res,
1772
+ generateEtags: nextConfig.generateEtags,
1773
+ poweredByHeader: nextConfig.poweredByHeader,
1774
+ result: body,
1775
+ cacheControl: cacheEntry.cacheControl
1776
+ });
1777
+ }
1778
+ // If we're debugging the static shell or the dynamic API accesses, we
1779
+ // should just serve the HTML without resuming the render. The returned
1780
+ // HTML will be the static shell so all the Dynamic API's will be used
1781
+ // during static generation.
1782
+ if (isDebugStaticShell || isDebugDynamicAccesses) {
1783
+ // Since we're not resuming the render, we need to at least add the
1784
+ // closing body and html tags to create valid HTML.
1785
+ body.push(new ReadableStream({
1786
+ start (controller) {
1787
+ controller.enqueue(next_dist_server_stream_utils_encoded_tags__WEBPACK_IMPORTED_MODULE_21__.ENCODED_TAGS.CLOSED.BODY_AND_HTML);
1788
+ controller.close();
1789
+ }
1790
+ }));
1791
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1792
+ req,
1793
+ res,
1794
+ generateEtags: nextConfig.generateEtags,
1795
+ poweredByHeader: nextConfig.poweredByHeader,
1796
+ result: body,
1797
+ cacheControl: {
1798
+ revalidate: 0,
1799
+ expire: undefined
1800
+ }
1801
+ });
1802
+ }
1803
+ // If we're in test mode, we should add a sentinel chunk to the response
1804
+ // that's between the static and dynamic parts so we can compare the
1805
+ // chunks and add assertions.
1806
+ if (false) {}
1807
+ // This request has postponed, so let's create a new transformer that the
1808
+ // dynamic data can pipe to that will attach the dynamic data to the end
1809
+ // of the response.
1810
+ const transformer = new TransformStream();
1811
+ body.push(transformer.readable);
1812
+ // Perform the render again, but this time, provide the postponed state.
1813
+ // We don't await because we want the result to start streaming now, and
1814
+ // we've already chained the transformer's readable to the render result.
1815
+ doRender({
1816
+ span,
1817
+ postponed: cachedData.postponed,
1818
+ // This is a resume render, not a fallback render, so we don't need to
1819
+ // set this.
1820
+ fallbackRouteParams: null,
1821
+ forceStaticRender: false
1822
+ }).then(async (result)=>{
1823
+ var _result_value;
1824
+ if (!result) {
1825
+ throw Object.defineProperty(new Error('Invariant: expected a result to be returned'), "__NEXT_ERROR_CODE", {
1826
+ value: "E463",
1827
+ enumerable: false,
1828
+ configurable: true
1829
+ });
1830
+ }
1831
+ if (((_result_value = result.value) == null ? void 0 : _result_value.kind) !== next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE) {
1832
+ var _result_value1;
1833
+ throw Object.defineProperty(new Error(`Invariant: expected a page response, got ${(_result_value1 = result.value) == null ? void 0 : _result_value1.kind}`), "__NEXT_ERROR_CODE", {
1834
+ value: "E305",
1835
+ enumerable: false,
1836
+ configurable: true
1837
+ });
1838
+ }
1839
+ // Pipe the resume result to the transformer.
1840
+ await result.value.html.pipeTo(transformer.writable);
1841
+ }).catch((err)=>{
1842
+ // An error occurred during piping or preparing the render, abort
1843
+ // the transformers writer so we can terminate the stream.
1844
+ transformer.writable.abort(err).catch((e)=>{
1845
+ console.error("couldn't abort transformer", e);
1846
+ });
1847
+ });
1848
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1849
+ req,
1850
+ res,
1851
+ generateEtags: nextConfig.generateEtags,
1852
+ poweredByHeader: nextConfig.poweredByHeader,
1853
+ result: body,
1854
+ // We don't want to cache the response if it has postponed data because
1855
+ // the response being sent to the client it's dynamic parts are streamed
1856
+ // to the client on the same request.
1857
+ cacheControl: {
1858
+ revalidate: 0,
1859
+ expire: undefined
1860
+ }
1861
+ });
1862
+ };
1863
+ // TODO: activeSpan code path is for when wrapped by
1864
+ // next-server can be removed when this is no longer used
1865
+ if (isWrappedByNextServer && activeSpan) {
1866
+ await handleResponse(activeSpan);
1867
+ } else {
1868
+ parentSpan = tracer.getActiveScopeSpan();
1869
+ return await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__.BaseServerSpan.handleRequest, {
1870
+ spanName: `${method} ${srcPage}`,
1871
+ kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__.SpanKind.SERVER,
1872
+ attributes: {
1873
+ 'http.method': method,
1874
+ 'http.target': req.url
1875
+ }
1876
+ }, handleResponse), undefined, !isWrappedByNextServer);
1877
+ }
1878
+ } catch (err) {
1879
+ if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__.NoFallbackError)) {
1880
+ const silenceLog = false;
1881
+ await routeModule.onRequestError(req, err, {
1882
+ routerKind: 'App Router',
1883
+ routePath: srcPage,
1884
+ routeType: 'render',
1885
+ revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_2__/* .getRevalidateReason */ .c)({
1886
+ isStaticGeneration: isSSG,
1887
+ isOnDemandRevalidate
1888
+ })
1889
+ }, silenceLog, routerServerContext);
1890
+ }
1891
+ // rethrow so that we can handle serving error page
1892
+ throw err;
1893
+ }
1894
+ }
1895
+ // TODO: omit this from production builds, only test builds should include it
1896
+ /**
1897
+ * Creates a readable stream that emits a PPR boundary sentinel.
1898
+ *
1899
+ * @returns A readable stream that emits a PPR boundary sentinel.
1900
+ */ function createPPRBoundarySentinel() {
1901
+ return new ReadableStream({
1902
+ start (controller) {
1903
+ controller.enqueue(new TextEncoder().encode('<!-- PPR_BOUNDARY_SENTINEL -->'));
1904
+ controller.close();
1887
1905
  }
1888
- ];
1889
- return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react_ui_dist/* SimpleNavigation */.TbX, {
1890
- title: t('title'),
1891
- items: navigation,
1892
- currentPath: pathname,
1893
- LinkComponent: routing/* Link */.N_,
1894
- ...navigationMenu && {
1895
- dropdownContent: navigationMenu
1896
- },
1897
- isCollapsed: isCollapsed,
1898
- icons: {
1899
- chevronLeft: ChevronLeftIcon/* default */.A,
1900
- bars: Bars3Icon/* default */.A
1901
- },
1902
- collapseSidebarLabel: tSidebar('collapseSidebar'),
1903
- expandSidebarLabel: tSidebar('expandSidebar')
1904
1906
  });
1905
1907
  }
1906
1908
 
1907
- // EXTERNAL MODULE: ./src/components/CookiePreferences.tsx
1908
- var CookiePreferences = __webpack_require__(80386);
1909
- // EXTERNAL MODULE: ./src/contexts/KeyboardShortcutsContext.tsx + 3 modules
1910
- var KeyboardShortcutsContext = __webpack_require__(40953);
1911
- // EXTERNAL MODULE: ./src/lib/routing.ts
1912
- var lib_routing = __webpack_require__(46391);
1913
- // EXTERNAL MODULE: ./src/hooks/useAuth.ts + 1 modules
1914
- var useAuth = __webpack_require__(31039);
1915
- ;// ./src/app/[locale]/moderate/layout.tsx
1916
- /* __next_internal_client_entry_do_not_use__ default auto */
1917
-
1918
-
1919
-
1909
+ //# sourceMappingURL=app-page.js.map
1920
1910
 
1921
1911
 
1912
+ /***/ }),
1922
1913
 
1914
+ /***/ 43954:
1915
+ /***/ ((module) => {
1923
1916
 
1917
+ "use strict";
1918
+ module.exports = require("next/dist/shared/lib/router/utils/interception-routes");
1924
1919
 
1920
+ /***/ }),
1925
1921
 
1926
- // Note: Authentication is handled by middleware.ts for all moderate routes
1927
- // This ensures centralized security and returns 404 for unauthorized users
1928
- function ModerateLayout({ children }) {
1929
- const t = (0,react_client/* useTranslations */.c)('Footer');
1930
- const tNav = (0,react_client/* useTranslations */.c)('Navigation');
1931
- const tHome = (0,react_client/* useTranslations */.c)('Home');
1932
- const keyboardContext = (0,react.useContext)(KeyboardShortcutsContext/* KeyboardShortcutsContext */.GZ);
1933
- const { isAuthenticated, isAdmin, isModerator } = (0,useAuth/* useAuth */.As)();
1934
- const { data: session } = (0,next_auth_react.useSession)();
1935
- // Extract auth token from session
1936
- const authToken = session?.backendToken || null;
1937
- // Middleware has already verified moderator/admin access
1938
- return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist/* AuthTokenProvider */.ffs, {
1939
- token: authToken,
1940
- children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist/* ApiClientProvider */.pqI, {
1941
- baseUrl: "",
1942
- children: /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
1943
- className: "min-h-screen bg-gray-50 dark:bg-gray-900 flex flex-col",
1944
- children: [
1945
- /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
1946
- className: "flex flex-1",
1947
- children: [
1948
- /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist/* LeftSidebar */.Ef3, {
1949
- Link: lib_routing/* Link */.N,
1950
- routes: lib_routing/* routes */.J,
1951
- t: tNav,
1952
- tHome: tHome,
1953
- brandingLink: "/",
1954
- collapsible: true,
1955
- storageKey: "moderation-sidebar-collapsed",
1956
- isAuthenticated: isAuthenticated,
1957
- isAdmin: isAdmin,
1958
- isModerator: isModerator,
1959
- children: (isCollapsed, toggleCollapsed, navigationMenu)=>/*#__PURE__*/ (0,react_jsx_runtime.jsx)(ModerationNavigation, {
1960
- isCollapsed: isCollapsed,
1961
- toggleCollapsed: toggleCollapsed,
1962
- navigationMenu: navigationMenu
1963
- })
1964
- }),
1965
- /*#__PURE__*/ (0,react_jsx_runtime.jsx)("main", {
1966
- className: "flex-1 p-6 flex flex-col",
1967
- children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
1968
- className: "max-w-7xl mx-auto flex-1 flex flex-col w-full",
1969
- children: children
1970
- })
1971
- })
1972
- ]
1973
- }),
1974
- /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist/* Footer */.wi6, {
1975
- Link: lib_routing/* Link */.N,
1976
- routes: lib_routing/* routes */.J,
1977
- t: t,
1978
- CookiePreferences: CookiePreferences/* CookiePreferences */.f,
1979
- ...keyboardContext?.openKeyboardHelp && {
1980
- onOpenKeyboardHelp: keyboardContext.openKeyboardHelp
1981
- }
1982
- })
1983
- ]
1984
- })
1985
- })
1986
- });
1987
- }
1922
+ /***/ 55511:
1923
+ /***/ ((module) => {
1988
1924
 
1925
+ "use strict";
1926
+ module.exports = require("crypto");
1989
1927
 
1990
1928
  /***/ }),
1991
1929
 
1992
- /***/ 34901:
1993
- /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
1930
+ /***/ 56677:
1931
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1932
+
1933
+ "use strict";
1934
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1935
+ /* harmony export */ C$z: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.useEventSubscriptions),
1936
+ /* harmony export */ DPo: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.useTheme),
1937
+ /* harmony export */ cvF: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.useLineNumbers),
1938
+ /* harmony export */ ySJ: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.usePanelBrowse)
1939
+ /* harmony export */ });
1940
+ /* harmony import */ var _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41513);
1994
1941
 
1995
- Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 9839));
1996
1942
 
1997
1943
 
1998
1944
  /***/ }),
1999
1945
 
2000
- /***/ 36297:
1946
+ /***/ 59406:
2001
1947
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2002
1948
 
2003
1949
  "use strict";
1950
+ __webpack_require__.r(__webpack_exports__);
2004
1951
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2005
- /* harmony export */ M7E: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.Toolbar)
1952
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
2006
1953
  /* harmony export */ });
2007
- /* harmony import */ var _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69792);
1954
+ /* harmony import */ var react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(30274);
1955
+ /* harmony import */ var react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0__);
1956
+ // This file is generated by the Webpack next-flight-loader.
1957
+
1958
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0__.registerClientReference)(
1959
+ function() { throw new Error("Attempted to call the default export of \"/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/moderate/layout.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component."); },
1960
+ "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/moderate/layout.tsx",
1961
+ "default",
1962
+ ));
1963
+
1964
+
1965
+ /***/ }),
2008
1966
 
1967
+ /***/ 62256:
1968
+ /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
1969
+
1970
+ Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 59406));
2009
1971
 
2010
1972
 
2011
1973
  /***/ }),
2012
1974
 
2013
- /***/ 41025:
1975
+ /***/ 63033:
2014
1976
  /***/ ((module) => {
2015
1977
 
2016
1978
  "use strict";
2017
- module.exports = require("next/dist/server/app-render/dynamic-access-async-storage.external.js");
1979
+ module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
2018
1980
 
2019
1981
  /***/ }),
2020
1982
 
2021
- /***/ 43954:
1983
+ /***/ 70722:
2022
1984
  /***/ ((module) => {
2023
1985
 
2024
1986
  "use strict";
2025
- module.exports = require("next/dist/shared/lib/router/utils/interception-routes");
1987
+ module.exports = require("next/dist/shared/lib/invariant-error");
2026
1988
 
2027
1989
  /***/ }),
2028
1990
 
2029
- /***/ 50436:
1991
+ /***/ 76238:
2030
1992
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2031
1993
 
2032
1994
  "use strict";
@@ -2041,21 +2003,23 @@ var react_jsx_runtime = __webpack_require__(92692);
2041
2003
  // EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js
2042
2004
  var react = __webpack_require__(71277);
2043
2005
  // EXTERNAL MODULE: ../../packages/react-ui/dist/index.mjs + 26 modules
2044
- var dist = __webpack_require__(69792);
2006
+ var dist = __webpack_require__(41513);
2045
2007
  ;// __barrel_optimize__?names=ResizeHandle,SettingsPanel,useEventSubscriptions,usePanelWidth!=!../../packages/react-ui/dist/index.mjs
2046
2008
 
2047
2009
 
2048
- // EXTERNAL MODULE: ../../node_modules/next-auth/react/index.js
2049
- var next_auth_react = __webpack_require__(62341);
2050
2010
  // EXTERNAL MODULE: ../../node_modules/next/dist/api/image.js
2051
2011
  var api_image = __webpack_require__(93523);
2052
2012
  // EXTERNAL MODULE: ../../node_modules/next-intl/dist/esm/production/react-client/index.js
2053
2013
  var react_client = __webpack_require__(56305);
2054
- ;// __barrel_optimize__?names=formatTime,sanitizeImageURL,useSessionExpiry!=!../../packages/react-ui/dist/index.mjs
2014
+ ;// __barrel_optimize__?names=formatTime,sanitizeImageURL,useApiClient,useSessionExpiry!=!../../packages/react-ui/dist/index.mjs
2055
2015
 
2056
2016
 
2057
- // EXTERNAL MODULE: ./src/hooks/useAuth.ts + 1 modules
2058
- var useAuth = __webpack_require__(31039);
2017
+ // EXTERNAL MODULE: ./src/hooks/useAuth.ts
2018
+ var useAuth = __webpack_require__(65159);
2019
+ // EXTERNAL MODULE: ./src/contexts/AuthContext.tsx
2020
+ var AuthContext = __webpack_require__(73769);
2021
+ // EXTERNAL MODULE: ./src/i18n/routing.ts
2022
+ var routing = __webpack_require__(99704);
2059
2023
  ;// ./src/components/UserPanel.tsx
2060
2024
  /* __next_internal_client_entry_do_not_use__ UserPanel auto */
2061
2025
 
@@ -2064,11 +2028,15 @@ var useAuth = __webpack_require__(31039);
2064
2028
 
2065
2029
 
2066
2030
 
2031
+
2067
2032
  // Fallback avatar when image fails to load or is invalid
2068
2033
  const FALLBACK_AVATAR = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iMTYiIGZpbGw9IiM2QjcyODAiLz4KPHBhdGggZD0iTTE2IDE2QzE4LjIwOTEgMTYgMjAgMTQuMjA5MSAyMCAxMkMyMCA5Ljc5MDg2IDE4LjIwOTEgOCAxNiA4QzEzLjc5MDkgOCAxMiA5Ljc5MDg2IDEyIDEyQzEyIDE0LjIwOTEgMTMuNzkwOSAxNiAxNiAxNloiIGZpbGw9IiNFNUU3RUIiLz4KPHBhdGggZD0iTTI0IDI1QzI0IDIxLjY4NjMgMjAuNDE4MyAxOSAxNiAxOUMxMS41ODE3IDE5IDggMjEuNjg2MyA4IDI1IiBzdHJva2U9IiNFNUU3RUIiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPg==';
2069
2034
  function UserPanel() {
2070
2035
  const t = (0,react_client/* useTranslations */.c)('UserPanel');
2071
2036
  const { displayName, avatarUrl, userDomain, isAdmin, isModerator } = (0,useAuth/* useAuth */.As)();
2037
+ const { clearSession } = (0,AuthContext/* useAuthContext */.Z)();
2038
+ const apiClient = (0,dist.useApiClient)();
2039
+ const router = (0,routing/* useRouter */.rd)();
2072
2040
  const [imageError, setImageError] = (0,react.useState)(false);
2073
2041
  const { timeRemaining } = (0,dist.useSessionExpiry)();
2074
2042
  const sessionTimeFormatted = (0,dist.formatTime)(timeRemaining) ?? 'Unknown';
@@ -2085,9 +2053,13 @@ function UserPanel() {
2085
2053
  return sanitized;
2086
2054
  })();
2087
2055
  const handleSignOut = async ()=>{
2088
- await (0,next_auth_react.signOut)({
2089
- callbackUrl: '/'
2090
- });
2056
+ try {
2057
+ await apiClient.logout();
2058
+ } catch {
2059
+ // best-effort — cookie already cleared server-side
2060
+ }
2061
+ clearSession();
2062
+ router.push('/');
2091
2063
  };
2092
2064
  return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
2093
2065
  className: "semiont-user-panel",
@@ -2193,8 +2165,6 @@ function UserPanel() {
2193
2165
 
2194
2166
  // EXTERNAL MODULE: ../../node_modules/use-intl/dist/esm/production/react.js + 18 modules
2195
2167
  var production_react = __webpack_require__(23211);
2196
- // EXTERNAL MODULE: ./src/i18n/routing.ts
2197
- var routing = __webpack_require__(99704);
2198
2168
  ;// __barrel_optimize__?names=COMMON_PANELS!=!../../packages/react-ui/dist/index.mjs
2199
2169
 
2200
2170
 
@@ -2300,75 +2270,6 @@ var routing = __webpack_require__(99704);
2300
2270
  }
2301
2271
 
2302
2272
 
2303
- /***/ }),
2304
-
2305
- /***/ 55511:
2306
- /***/ ((module) => {
2307
-
2308
- "use strict";
2309
- module.exports = require("crypto");
2310
-
2311
- /***/ }),
2312
-
2313
- /***/ 56677:
2314
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2315
-
2316
- "use strict";
2317
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2318
- /* harmony export */ C$z: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.useEventSubscriptions),
2319
- /* harmony export */ DPo: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.useTheme),
2320
- /* harmony export */ cvF: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.useLineNumbers),
2321
- /* harmony export */ ySJ: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.usePanelBrowse)
2322
- /* harmony export */ });
2323
- /* harmony import */ var _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69792);
2324
-
2325
-
2326
-
2327
- /***/ }),
2328
-
2329
- /***/ 59406:
2330
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2331
-
2332
- "use strict";
2333
- __webpack_require__.r(__webpack_exports__);
2334
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2335
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
2336
- /* harmony export */ });
2337
- /* harmony import */ var react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(30274);
2338
- /* harmony import */ var react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0__);
2339
- // This file is generated by the Webpack next-flight-loader.
2340
-
2341
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0__.registerClientReference)(
2342
- function() { throw new Error("Attempted to call the default export of \"/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/moderate/layout.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component."); },
2343
- "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/moderate/layout.tsx",
2344
- "default",
2345
- ));
2346
-
2347
-
2348
- /***/ }),
2349
-
2350
- /***/ 62256:
2351
- /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
2352
-
2353
- Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 59406));
2354
-
2355
-
2356
- /***/ }),
2357
-
2358
- /***/ 63033:
2359
- /***/ ((module) => {
2360
-
2361
- "use strict";
2362
- module.exports = require("next/dist/server/app-render/work-unit-async-storage.external.js");
2363
-
2364
- /***/ }),
2365
-
2366
- /***/ 70722:
2367
- /***/ ((module) => {
2368
-
2369
- "use strict";
2370
- module.exports = require("next/dist/shared/lib/invariant-error");
2371
-
2372
2273
  /***/ }),
2373
2274
 
2374
2275
  /***/ 76757:
@@ -2410,7 +2311,7 @@ module.exports = require("next/dist/shared/lib/no-fallback-error.external");
2410
2311
  var __webpack_require__ = require("../../../../webpack-runtime.js");
2411
2312
  __webpack_require__.C(exports);
2412
2313
  var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
2413
- var __webpack_exports__ = __webpack_require__.X(0, [8569,5866,9927,7420,2617,5440,8255,9988], () => (__webpack_exec__(10597)));
2314
+ var __webpack_exports__ = __webpack_require__.X(0, [8103,9927,1515,2617,8255,9988], () => (__webpack_exec__(43887)));
2414
2315
  module.exports = __webpack_exports__;
2415
2316
 
2416
2317
  })();