@exulu/frontend 1.9.0 → 1.11.0

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 (185) hide show
  1. package/dist/.next/BUILD_ID +1 -1
  2. package/dist/.next/app-build-manifest.json +191 -188
  3. package/dist/.next/app-path-routes-manifest.json +1 -1
  4. package/dist/.next/build-manifest.json +2 -2
  5. package/dist/.next/prerender-manifest.json +1 -1
  6. package/dist/.next/server/app/(application)/agents/edit/[id]/page_client-reference-manifest.js +1 -1
  7. package/dist/.next/server/app/(application)/agents/page_client-reference-manifest.js +1 -1
  8. package/dist/.next/server/app/(application)/chat/[agent]/[session]/page.js +7 -7
  9. package/dist/.next/server/app/(application)/chat/[agent]/[session]/page_client-reference-manifest.js +1 -1
  10. package/dist/.next/server/app/(application)/chat/[agent]/page_client-reference-manifest.js +1 -1
  11. package/dist/.next/server/app/(application)/chat/page_client-reference-manifest.js +1 -1
  12. package/dist/.next/server/app/(application)/configuration/page_client-reference-manifest.js +1 -1
  13. package/dist/.next/server/app/(application)/dashboard/page_client-reference-manifest.js +1 -1
  14. package/dist/.next/server/app/(application)/data/[[...query]]/page.js +3 -3
  15. package/dist/.next/server/app/(application)/data/[[...query]]/page_client-reference-manifest.js +1 -1
  16. package/dist/.next/server/app/(application)/evals/[id]/page.js +1 -1
  17. package/dist/.next/server/app/(application)/evals/[id]/page.js.nft.json +1 -1
  18. package/dist/.next/server/app/(application)/evals/[id]/page_client-reference-manifest.js +1 -1
  19. package/dist/.next/server/app/(application)/evals/cases/page.js +1 -1
  20. package/dist/.next/server/app/(application)/evals/cases/page.js.nft.json +1 -1
  21. package/dist/.next/server/app/(application)/evals/cases/page_client-reference-manifest.js +1 -1
  22. package/dist/.next/server/app/(application)/evals/page_client-reference-manifest.js +1 -1
  23. package/dist/.next/server/app/(application)/explorer/page_client-reference-manifest.js +1 -1
  24. package/dist/.next/server/app/(application)/keys/page_client-reference-manifest.js +1 -1
  25. package/dist/.next/server/app/(application)/page_client-reference-manifest.js +1 -1
  26. package/dist/.next/server/app/(application)/projects/[project]/page.js +1 -1
  27. package/dist/.next/server/app/(application)/projects/[project]/page_client-reference-manifest.js +1 -1
  28. package/dist/.next/server/app/(application)/projects/page_client-reference-manifest.js +1 -1
  29. package/dist/.next/server/app/(application)/prompts/page_client-reference-manifest.js +1 -1
  30. package/dist/.next/server/app/(application)/roles/page_client-reference-manifest.js +1 -1
  31. package/dist/.next/server/app/(application)/token/page_client-reference-manifest.js +1 -1
  32. package/dist/.next/server/app/(application)/users/page_client-reference-manifest.js +1 -1
  33. package/dist/.next/server/app/(application)/variables/create/page_client-reference-manifest.js +1 -1
  34. package/dist/.next/server/app/(application)/variables/edit/[variable_id]/page_client-reference-manifest.js +1 -1
  35. package/dist/.next/server/app/(application)/variables/page_client-reference-manifest.js +1 -1
  36. package/dist/.next/server/app/(application)/variables/usage/[variable_id]/page_client-reference-manifest.js +1 -1
  37. package/dist/.next/server/app/(application)/workflows/page_client-reference-manifest.js +1 -1
  38. package/dist/.next/server/app/(authentication)/login/page_client-reference-manifest.js +1 -1
  39. package/dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  40. package/dist/.next/server/app/_not-found.html +1 -1
  41. package/dist/.next/server/app/_not-found.rsc +1 -1
  42. package/dist/.next/server/app-paths-manifest.json +7 -7
  43. package/dist/.next/server/chunks/2270.js +154 -130
  44. package/dist/.next/server/chunks/{5084.js → 2587.js} +1 -1
  45. package/dist/.next/server/chunks/3503.js +1 -1
  46. package/dist/.next/server/chunks/5485.js +1 -1
  47. package/dist/.next/server/chunks/5974.js +1 -1
  48. package/dist/.next/server/chunks/7944.js +1 -1
  49. package/dist/.next/server/chunks/8286.js +1 -1
  50. package/dist/.next/server/middleware-manifest.json +5 -5
  51. package/dist/.next/server/pages/404.html +1 -1
  52. package/dist/.next/server/pages/500.html +1 -1
  53. package/dist/.next/server/server-reference-manifest.json +1 -1
  54. package/dist/.next/static/chunks/1707-06e693c4a709c147.js +2 -0
  55. package/dist/.next/static/chunks/1707-06e693c4a709c147.js.map +1 -0
  56. package/dist/.next/static/chunks/{1957-cf44b1d31a9c7d5c.js → 1957-34f17de1e14e45de.js} +1 -1
  57. package/dist/.next/static/chunks/{1957-cf44b1d31a9c7d5c.js.map → 1957-34f17de1e14e45de.js.map} +1 -1
  58. package/dist/.next/static/chunks/{2293-48a95904b834eccc.js → 2293-592e22dde70d632b.js} +1 -1
  59. package/dist/.next/static/chunks/{2293-48a95904b834eccc.js.map → 2293-592e22dde70d632b.js.map} +1 -1
  60. package/dist/.next/static/chunks/2534-3dd7a9fabfbdb9d8.js +2 -0
  61. package/dist/.next/static/chunks/2534-3dd7a9fabfbdb9d8.js.map +1 -0
  62. package/dist/.next/static/chunks/2823-324b1cd8f15ff9c5.js +2 -0
  63. package/dist/.next/static/chunks/2823-324b1cd8f15ff9c5.js.map +1 -0
  64. package/dist/.next/static/chunks/3246-1812de142455a0ac.js +2 -0
  65. package/dist/.next/static/chunks/3246-1812de142455a0ac.js.map +1 -0
  66. package/dist/.next/static/chunks/3750-d0ae5d73288be8de.js +2 -0
  67. package/dist/.next/static/chunks/3750-d0ae5d73288be8de.js.map +1 -0
  68. package/dist/.next/static/chunks/{3832-417a5eeee712a793.js → 3832-0b8edbcc671f4cc0.js} +2 -2
  69. package/dist/.next/static/chunks/3832-0b8edbcc671f4cc0.js.map +1 -0
  70. package/dist/.next/static/chunks/{4386-45b79e656a244d8a.js → 4386-21ac377a719ebdfa.js} +1 -1
  71. package/dist/.next/static/chunks/{4386-45b79e656a244d8a.js.map → 4386-21ac377a719ebdfa.js.map} +1 -1
  72. package/dist/.next/static/chunks/4612-da512770f949561a.js +2 -0
  73. package/dist/.next/static/chunks/4612-da512770f949561a.js.map +1 -0
  74. package/dist/.next/static/chunks/{5825-efd4db1da512bd7f.js → 4760-d5ceb992b68e35ca.js} +2 -2
  75. package/dist/.next/static/chunks/4760-d5ceb992b68e35ca.js.map +1 -0
  76. package/dist/.next/static/chunks/{6367-59655a85d75e19be.js → 6367-aa5020cbea5354e2.js} +1 -1
  77. package/dist/.next/static/chunks/{6367-59655a85d75e19be.js.map → 6367-aa5020cbea5354e2.js.map} +1 -1
  78. package/dist/.next/static/chunks/6373-3eee0b6c8b8fd459.js +2 -0
  79. package/dist/.next/static/chunks/6373-3eee0b6c8b8fd459.js.map +1 -0
  80. package/dist/.next/static/chunks/{8030-9c926ea4dfd3a54e.js → 8030-5d38a3f1a4ad44cb.js} +1 -1
  81. package/dist/.next/static/chunks/{8030-9c926ea4dfd3a54e.js.map → 8030-5d38a3f1a4ad44cb.js.map} +1 -1
  82. package/dist/.next/static/chunks/{8293-0e69d89d2dac7111.js → 8293-ba5cd36594e6fde1.js} +3 -3
  83. package/dist/.next/static/chunks/8293-ba5cd36594e6fde1.js.map +1 -0
  84. package/dist/.next/static/chunks/9105-143f12397a76a332.js +2 -0
  85. package/dist/.next/static/chunks/9105-143f12397a76a332.js.map +1 -0
  86. package/dist/.next/static/chunks/9877-378934ae38c6760c.js +2 -0
  87. package/dist/.next/static/chunks/9877-378934ae38c6760c.js.map +1 -0
  88. package/dist/.next/static/chunks/{9953-95900a236271a222.js → 9953-02d5b52553a5c573.js} +2 -2
  89. package/dist/.next/static/chunks/{9953-95900a236271a222.js.map → 9953-02d5b52553a5c573.js.map} +1 -1
  90. package/dist/.next/static/chunks/app/(application)/agents/edit/[id]/{page-e4a4693953329671.js → page-37918149a8e909b0.js} +2 -2
  91. package/dist/.next/static/chunks/app/(application)/agents/edit/[id]/{page-e4a4693953329671.js.map → page-37918149a8e909b0.js.map} +1 -1
  92. package/dist/.next/static/chunks/app/(application)/agents/{page-b77c21a993c55901.js → page-9cff3b35b042d46a.js} +1 -1
  93. package/dist/.next/static/chunks/app/(application)/agents/{page-b77c21a993c55901.js.map → page-9cff3b35b042d46a.js.map} +1 -1
  94. package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-53a99d8df53380c7.js +2 -0
  95. package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-53a99d8df53380c7.js.map +1 -0
  96. package/dist/.next/static/chunks/app/(application)/chat/{layout-093baa26f89338bc.js → layout-ba702af6bb56baa2.js} +1 -1
  97. package/dist/.next/static/chunks/app/(application)/chat/{layout-093baa26f89338bc.js.map → layout-ba702af6bb56baa2.js.map} +1 -1
  98. package/dist/.next/static/chunks/app/(application)/chat/{page-8a1fcfb68cf9c8c0.js → page-8b00a98d285829b1.js} +1 -1
  99. package/dist/.next/static/chunks/app/(application)/chat/{page-8a1fcfb68cf9c8c0.js.map → page-8b00a98d285829b1.js.map} +1 -1
  100. package/dist/.next/static/chunks/app/(application)/configuration/{page-f315ede6d66922e6.js → page-1e978e117d5086a1.js} +1 -1
  101. package/dist/.next/static/chunks/app/(application)/configuration/{page-f315ede6d66922e6.js.map → page-1e978e117d5086a1.js.map} +1 -1
  102. package/dist/.next/static/chunks/app/(application)/dashboard/{page-4a1956febf5235b6.js → page-c54b4bc8d0ac4ac8.js} +1 -1
  103. package/dist/.next/static/chunks/app/(application)/dashboard/{page-4a1956febf5235b6.js.map → page-c54b4bc8d0ac4ac8.js.map} +1 -1
  104. package/dist/.next/static/chunks/app/(application)/data/[[...query]]/layout-dfdb5c1cdc7ddefc.js +2 -0
  105. package/dist/.next/static/chunks/app/(application)/data/[[...query]]/layout-dfdb5c1cdc7ddefc.js.map +1 -0
  106. package/dist/.next/static/chunks/app/(application)/data/[[...query]]/page-faaee5fe82b45966.js +2 -0
  107. package/dist/.next/static/chunks/app/(application)/data/[[...query]]/page-faaee5fe82b45966.js.map +1 -0
  108. package/dist/.next/static/chunks/app/(application)/evals/[id]/{page-a7728cf9b0524489.js → page-c956d9892676aa4f.js} +2 -2
  109. package/dist/.next/static/chunks/app/(application)/evals/[id]/page-c956d9892676aa4f.js.map +1 -0
  110. package/dist/.next/static/chunks/app/(application)/evals/cases/page-6b4dde82376e9aac.js +2 -0
  111. package/dist/.next/static/chunks/app/(application)/evals/cases/page-6b4dde82376e9aac.js.map +1 -0
  112. package/dist/.next/static/chunks/app/(application)/evals/{page-8b38d8d29f275704.js → page-944bfc4f0a001e4c.js} +1 -1
  113. package/dist/.next/static/chunks/app/(application)/evals/page-944bfc4f0a001e4c.js.map +1 -0
  114. package/dist/.next/static/chunks/app/(application)/explorer/page-07d67145bb176711.js +2 -0
  115. package/dist/.next/static/chunks/app/(application)/explorer/page-07d67145bb176711.js.map +1 -0
  116. package/dist/.next/static/chunks/app/(application)/keys/{page-afe59c91cc347208.js → page-6c0cd9ef20cd1461.js} +2 -2
  117. package/dist/.next/static/chunks/app/(application)/keys/{page-afe59c91cc347208.js.map → page-6c0cd9ef20cd1461.js.map} +1 -1
  118. package/dist/.next/static/chunks/app/(application)/projects/[project]/{page-f04fd5291a1ef7b1.js → page-5e2be54e76b8509c.js} +2 -2
  119. package/dist/.next/static/chunks/app/(application)/projects/[project]/{page-f04fd5291a1ef7b1.js.map → page-5e2be54e76b8509c.js.map} +1 -1
  120. package/dist/.next/static/chunks/app/(application)/projects/{layout-a8e1830ef3faafb9.js → layout-f2e0f42a08c96bb8.js} +1 -1
  121. package/dist/.next/static/chunks/app/(application)/projects/{layout-a8e1830ef3faafb9.js.map → layout-f2e0f42a08c96bb8.js.map} +1 -1
  122. package/dist/.next/static/chunks/app/(application)/prompts/{page-2c500e9898447506.js → page-2c03bbe32800acc3.js} +2 -2
  123. package/dist/.next/static/chunks/app/(application)/prompts/{page-2c500e9898447506.js.map → page-2c03bbe32800acc3.js.map} +1 -1
  124. package/dist/.next/static/chunks/app/(application)/roles/{page-873911198c17d9a7.js → page-b977b5c658004717.js} +1 -1
  125. package/dist/.next/static/chunks/app/(application)/roles/{page-873911198c17d9a7.js.map → page-b977b5c658004717.js.map} +1 -1
  126. package/dist/.next/static/chunks/app/(application)/token/{page-3f74f711f3d04fce.js → page-08596ece49a811b9.js} +2 -2
  127. package/dist/.next/static/chunks/app/(application)/token/page-08596ece49a811b9.js.map +1 -0
  128. package/dist/.next/static/chunks/app/(application)/users/{page-0d7f0d7e80cd1436.js → page-49212081be40aeca.js} +2 -2
  129. package/dist/.next/static/chunks/app/(application)/users/{page-0d7f0d7e80cd1436.js.map → page-49212081be40aeca.js.map} +1 -1
  130. package/dist/.next/static/chunks/app/(application)/variables/create/{page-8ebf4e3d4d17443b.js → page-9ce762918374f616.js} +1 -1
  131. package/dist/.next/static/chunks/app/(application)/variables/create/{page-8ebf4e3d4d17443b.js.map → page-9ce762918374f616.js.map} +1 -1
  132. package/dist/.next/static/chunks/app/(application)/variables/edit/[variable_id]/{page-006145e82e054e72.js → page-0e2b7038546d9f7a.js} +1 -1
  133. package/dist/.next/static/chunks/app/(application)/variables/edit/[variable_id]/{page-006145e82e054e72.js.map → page-0e2b7038546d9f7a.js.map} +1 -1
  134. package/dist/.next/static/chunks/app/(application)/variables/{page-51a8aeece444d388.js → page-141d5d3f735454fe.js} +1 -1
  135. package/dist/.next/static/chunks/app/(application)/variables/{page-51a8aeece444d388.js.map → page-141d5d3f735454fe.js.map} +1 -1
  136. package/dist/.next/static/chunks/app/(application)/variables/usage/[variable_id]/{page-8f5cfc9565fd919a.js → page-fb1bb3ea6f7cae47.js} +1 -1
  137. package/dist/.next/static/chunks/app/(application)/variables/usage/[variable_id]/{page-8f5cfc9565fd919a.js.map → page-fb1bb3ea6f7cae47.js.map} +1 -1
  138. package/dist/.next/static/chunks/app/(application)/workflows/{page-e38f9456120dab69.js → page-2b839fdbc55c297b.js} +2 -2
  139. package/dist/.next/static/chunks/app/(application)/workflows/page-2b839fdbc55c297b.js.map +1 -0
  140. package/dist/.next/static/chunks/ba12c10f-85ed008ce7746dbe.js +2 -0
  141. package/dist/.next/static/chunks/ba12c10f-85ed008ce7746dbe.js.map +1 -0
  142. package/dist/.next/static/css/0f539b50cca35462.css +4 -0
  143. package/dist/.next/static/css/0f539b50cca35462.css.map +1 -0
  144. package/dist/.next/static/css/e3f2a16ab7676b05.css.map +1 -1
  145. package/dist/package.json +1 -1
  146. package/package.json +1 -1
  147. package/dist/.next/static/chunks/1685-939396dad2f8f1e0.js +0 -2
  148. package/dist/.next/static/chunks/1685-939396dad2f8f1e0.js.map +0 -1
  149. package/dist/.next/static/chunks/3171-6996819b8863d41f.js +0 -2
  150. package/dist/.next/static/chunks/3171-6996819b8863d41f.js.map +0 -1
  151. package/dist/.next/static/chunks/3750-f45c59ef1cc79417.js +0 -2
  152. package/dist/.next/static/chunks/3750-f45c59ef1cc79417.js.map +0 -1
  153. package/dist/.next/static/chunks/3832-417a5eeee712a793.js.map +0 -1
  154. package/dist/.next/static/chunks/4419-b9be79d8cd46a97d.js +0 -2
  155. package/dist/.next/static/chunks/4419-b9be79d8cd46a97d.js.map +0 -1
  156. package/dist/.next/static/chunks/5110-098aa924c3108fa4.js +0 -2
  157. package/dist/.next/static/chunks/5110-098aa924c3108fa4.js.map +0 -1
  158. package/dist/.next/static/chunks/572-2940a399da1e3a3b.js +0 -2
  159. package/dist/.next/static/chunks/572-2940a399da1e3a3b.js.map +0 -1
  160. package/dist/.next/static/chunks/5825-efd4db1da512bd7f.js.map +0 -1
  161. package/dist/.next/static/chunks/6373-601400fab8a3bb55.js +0 -2
  162. package/dist/.next/static/chunks/6373-601400fab8a3bb55.js.map +0 -1
  163. package/dist/.next/static/chunks/8293-0e69d89d2dac7111.js.map +0 -1
  164. package/dist/.next/static/chunks/9105-dfbce1bad8e3e8dd.js +0 -2
  165. package/dist/.next/static/chunks/9105-dfbce1bad8e3e8dd.js.map +0 -1
  166. package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-7edb1c7c850f982c.js +0 -2
  167. package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-7edb1c7c850f982c.js.map +0 -1
  168. package/dist/.next/static/chunks/app/(application)/data/[[...query]]/layout-2d47be0ee80dd89d.js +0 -2
  169. package/dist/.next/static/chunks/app/(application)/data/[[...query]]/layout-2d47be0ee80dd89d.js.map +0 -1
  170. package/dist/.next/static/chunks/app/(application)/data/[[...query]]/page-8d2b3995cacfd832.js +0 -2
  171. package/dist/.next/static/chunks/app/(application)/data/[[...query]]/page-8d2b3995cacfd832.js.map +0 -1
  172. package/dist/.next/static/chunks/app/(application)/evals/[id]/page-a7728cf9b0524489.js.map +0 -1
  173. package/dist/.next/static/chunks/app/(application)/evals/cases/page-827f50c6d1f150d0.js +0 -2
  174. package/dist/.next/static/chunks/app/(application)/evals/cases/page-827f50c6d1f150d0.js.map +0 -1
  175. package/dist/.next/static/chunks/app/(application)/evals/page-8b38d8d29f275704.js.map +0 -1
  176. package/dist/.next/static/chunks/app/(application)/explorer/page-1d676c9dfe3ed58b.js +0 -2
  177. package/dist/.next/static/chunks/app/(application)/explorer/page-1d676c9dfe3ed58b.js.map +0 -1
  178. package/dist/.next/static/chunks/app/(application)/token/page-3f74f711f3d04fce.js.map +0 -1
  179. package/dist/.next/static/chunks/app/(application)/workflows/page-e38f9456120dab69.js.map +0 -1
  180. package/dist/.next/static/chunks/ba12c10f-aaafcb074f608624.js +0 -2
  181. package/dist/.next/static/chunks/ba12c10f-aaafcb074f608624.js.map +0 -1
  182. package/dist/.next/static/css/6f8c5212af8ef284.css +0 -4
  183. package/dist/.next/static/css/6f8c5212af8ef284.css.map +0 -1
  184. /package/dist/.next/static/{ls-syPkq9-MWp-VWWDEZJ → exslB-IPXi_veOKFA4L1Z}/_buildManifest.js +0 -0
  185. /package/dist/.next/static/{ls-syPkq9-MWp-VWWDEZJ → exslB-IPXi_veOKFA4L1Z}/_ssgManifest.js +0 -0
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9105],{8864:function(e,s,a){a.d(s,{R:function(){return R}});var t=a(57437),l=a(2265),n=a(7211),i=a(12199),r=a(27689),d=a(62869),c=a(66070),o=a(19060),u=a(73578),x=a(12339),m=a(37099),h=a(35974),j=a(15863),f=a(33276),p=a(89227),v=a(93609),g=a(18930),b=a(52636),N=a(92451),y=a(10407),w=a(77992),C=a(27107),k=a(68656),P=a(20653);function R(e){var s,a,R,S,z,Z,T,q,D,O,A,M,I;let{queueName:J,nameGenerator:L,retryJob:Q}=e,{toast:_}=(0,w.pm)(),[F,Y]=(0,l.useState)(!1),[$,H]=(0,l.useState)(!1),[E,V]=(0,l.useState)(!1),[W,U]=(0,l.useState)([]),[G,B]=(0,l.useState)(null),[X,K]=(0,l.useState)("completed"),[ee,es]=(0,l.useState)(1),[ea,et]=(0,l.useState)(200),[el,en]=(0,l.useState)(new Set),{data:ei,loading:er,refetch:ed}=(0,n.aM)(r.k9,{variables:{queue:J},pollInterval:5e3}),{data:ec,loading:eo,refetch:eu,networkStatus:ex}=(0,n.aM)(r.Jq,{variables:{queue:J,statusses:X,page:ee,limit:ea},pollInterval:5e3}),[em,{loading:eh}]=(0,i.D)(r.Wr,{onError:e=>{_({title:"Failed to delete job",description:e.message,variant:"destructive"})}}),[ej,{loading:ef}]=(0,i.D)(r.fc,{onCompleted:()=>{_({title:"Queue paused",description:"The ".concat(J," queue has been paused.")}),ed(),Y(!1)},onError:e=>{_({title:"Failed to pause queue",description:e.message,variant:"destructive"})}}),[ep,{loading:ev}]=(0,i.D)(r.iC,{onCompleted:()=>{_({title:"Queue resumed",description:"The ".concat(J," queue has been resumed.")}),ed(),V(!1)},onError:e=>{_({title:"Failed to resume queue",description:e.message,variant:"destructive"})}}),[eg,{loading:eb}]=(0,i.D)(r.QW,{onCompleted:()=>{_({title:"Queue drained",description:"All waiting and delayed jobs have been removed from the queue."}),ed(),eu(),H(!1)},onError:e=>{_({title:"Failed to drain queue",description:e.message,variant:"destructive"})}}),eN=e=>{U([e])},ey=e=>{B(e)},ew=e=>{let s=new Set(el);s.has(e)?s.delete(e):s.add(e),en(s)},eC=async()=>{if(W.filter(e=>!e.id).length>0){_({title:"Failed to delete jobs",description:"Some jobs have no ID.",variant:"destructive"});return}try{await Promise.all(W.map(e=>em({variables:{queue:J,id:e.id}}))),_({title:1===W.length?"Job deleted":"Jobs deleted",description:"Successfully deleted ".concat(W.length," job").concat(1===W.length?"":"s",".")}),eu(),ed(),U([]),en(new Set)}catch(e){}},ek=null==ei?void 0:ei.queue,eP=(null==ec?void 0:ec.jobs)||{items:[],pageInfo:{pageCount:0,itemCount:0,currentPage:1,hasPreviousPage:!1,hasNextPage:!1}};return er&&eo?(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsx)(c.Zb,{children:(0,t.jsx)(c.aY,{className:"pt-6",children:(0,t.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,t.jsx)(j.Z,{className:"h-6 w-6 animate-spin"})})})})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(c.Zb,{children:[(0,t.jsx)(c.Ol,{children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{className:"flex items-center gap-3",children:(0,t.jsxs)("div",{children:[(0,t.jsxs)(c.ll,{children:["Queue: ",J]}),(0,t.jsxs)(c.SZ,{children:["Manage the ",J," job queue and view all jobs."]})]})}),ek&&(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)(d.z,{variant:"outline",size:"sm",onClick:()=>(null==ek?void 0:ek.isPaused)?V(!0):Y(!0),disabled:ef||ev,children:[(null==ek?void 0:ek.isPaused)?(0,t.jsx)(f.Z,{className:"mr-2 h-4 w-4"}):(0,t.jsx)(p.Z,{className:"mr-2 h-4 w-4"}),(null==ek?void 0:ek.isPaused)?"Resume queue":"Pause queue"]}),(0,t.jsxs)(d.z,{variant:"outline",size:"sm",onClick:()=>H(!0),disabled:eb,children:[(0,t.jsx)(v.Z,{className:"mr-2 h-4 w-4"}),"Drain queue"]})]})]})}),(0,t.jsxs)(c.aY,{className:"space-y-6",children:[ek&&(0,t.jsxs)("div",{className:"flex items-center gap-8 p-4 bg-muted/50 rounded-lg",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:"Status:"}),(0,t.jsx)("div",{children:ek.isPaused?(0,t.jsx)(h.C,{variant:"outline",className:"bg-gray-100 text-gray-800",children:"Paused"}):ek.isMaxed?(0,t.jsx)(h.C,{variant:"outline",className:"bg-red-100 text-red-800",children:"Maxed"}):(0,t.jsx)(h.C,{variant:"outline",className:"bg-green-100 text-green-800",children:"Active"})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:"Concurrency:"}),(0,t.jsxs)("div",{className:"font-semibold",children:["Per queue global concurrency: ",(null===(s=ek.concurrency)||void 0===s?void 0:s.queue)||"None","Per worker concurrency: ",(null===(a=ek.concurrency)||void 0===a?void 0:a.worker)||"None",". Timeout: ",ek.timeoutInSeconds||"None"," seconds."]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:"Rate Limit:"}),(0,t.jsx)("div",{className:"font-semibold",children:ek.ratelimit||"None"})]}),(0,t.jsx)(x.mQ,{value:X,onValueChange:e=>K(e),className:"w-auto",children:(0,t.jsxs)(x.dr,{children:[(0,t.jsxs)(x.SP,{value:"active",className:"gap-1.5",children:[(0,t.jsx)("span",{children:"Active"}),(0,t.jsx)(h.C,{variant:"secondary",className:"ml-1 bg-blue-100 text-blue-600 border-blue-200",children:(null===(R=ek.jobs)||void 0===R?void 0:R.active)||0})]}),(0,t.jsxs)(x.SP,{value:"waiting",className:"gap-1.5",children:[(0,t.jsx)("span",{children:"Waiting"}),(0,t.jsx)(h.C,{variant:"secondary",className:"ml-1 bg-yellow-100 text-yellow-600 border-yellow-200",children:(null===(S=ek.jobs)||void 0===S?void 0:S.waiting)||0})]}),(0,t.jsxs)(x.SP,{value:"failed",className:"gap-1.5",children:[(0,t.jsx)("span",{children:"Failed"}),(0,t.jsx)(h.C,{variant:"secondary",className:"ml-1 bg-red-100 text-red-600 border-red-200",children:(null===(z=ek.jobs)||void 0===z?void 0:z.failed)||0})]}),(0,t.jsxs)(x.SP,{value:"stuck",className:"gap-1.5",children:[(0,t.jsx)("span",{children:"Stuck"}),(0,t.jsx)(h.C,{variant:"secondary",className:"ml-1 bg-red-100 text-red-600 border-red-200",children:(null===(Z=ek.jobs)||void 0===Z?void 0:Z.stuck)||0})]}),(0,t.jsxs)(x.SP,{value:"completed",className:"gap-1.5",children:[(0,t.jsx)("span",{children:"Completed"}),(0,t.jsx)(h.C,{variant:"secondary",className:"ml-1 bg-green-100 text-green-600 border-green-200",children:(null===(T=ek.jobs)||void 0===T?void 0:T.completed)||0})]})]})})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-sm font-semibold",children:"Queue Jobs"}),(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:["All jobs currently in the ",J," queue"]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[el.size>0&&(0,t.jsxs)(d.z,{variant:"destructive",size:"sm",onClick:()=>{U(eP.items.filter(e=>el.has(e.id)))},disabled:eh,children:[(0,t.jsx)(g.Z,{className:"mr-2 h-4 w-4"}),"Delete ",el.size," job",1===el.size?"":"s"]}),(0,t.jsxs)(h.C,{variant:"outline",children:["Auto Refresh: ",(0,t.jsx)(j.Z,{className:"h-4 w-4 animate-spin text-muted-foreground ml-1"})]})]})]}),(0,t.jsxs)("div",{className:"border rounded-lg",children:[eo?(0,t.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,t.jsx)(j.Z,{className:"h-6 w-6 animate-spin"})}):(null===(q=eP.items)||void 0===q?void 0:q.length)===0?(0,t.jsx)("div",{className:"text-center pt-8 text-muted-foreground",children:"No jobs in queue"}):(0,t.jsxs)(u.iA,{children:[(0,t.jsx)(u.xD,{children:(0,t.jsxs)(u.SC,{children:[(0,t.jsx)(u.ss,{className:"w-12",children:(0,t.jsx)(o.X,{checked:eP.items.filter(e=>"active"!==e.state).length>0&&el.size===eP.items.filter(e=>"active"!==e.state).length,onCheckedChange:()=>{let e=eP.items.filter(e=>"active"!==e.state);el.size===e.length&&e.length>0?en(new Set):en(new Set(e.map(e=>e.id)))},"aria-label":"Select all jobs"})}),(0,t.jsx)(u.ss,{children:"Name"}),(0,t.jsx)(u.ss,{children:"ID"}),(0,t.jsx)(u.ss,{children:"Attempts Made"}),(0,t.jsx)(u.ss,{children:"Created"}),(0,t.jsx)(u.ss,{children:"Processed On"}),(0,t.jsx)(u.ss,{children:"Finished On"}),(0,t.jsx)(u.ss,{children:"Inputs"}),(0,t.jsx)(u.ss,{children:"Outputs"}),(0,t.jsx)(u.ss,{className:"text-right",children:"Actions"})]})}),(0,t.jsx)(u.RM,{children:null===(D=eP.items)||void 0===D?void 0:D.map((e,s)=>(0,t.jsxs)(u.SC,{children:[(0,t.jsx)(u.pj,{children:(0,t.jsx)(o.X,{checked:el.has(e.id),onCheckedChange:()=>ew(e.id),disabled:"active"===e.state,"aria-label":"Select job ".concat(L(e))})}),(0,t.jsx)(u.pj,{className:"font-medium max-w-[200px] truncate",children:L(e)}),(0,t.jsx)(u.pj,{children:e.id}),(0,t.jsx)(u.pj,{children:e.attemptsMade}),(0,t.jsx)(u.pj,{children:e.timestamp?(0,C.WU)(new Date(e.timestamp),"MMM d, yyyy HH:mm:ss"):"N/A"}),(0,t.jsx)(u.pj,{children:e.processedOn?(0,C.WU)(new Date(e.processedOn),"MMM d, yyyy HH:mm:ss"):"N/A"}),(0,t.jsx)(u.pj,{children:e.finishedOn?(0,C.WU)(new Date(e.finishedOn),"MMM d, yyyy HH:mm:ss"):"N/A"}),(0,t.jsx)(u.pj,{children:e.data?(0,t.jsx)("div",{className:"text-xs max-w-[120px] truncate",children:(0,t.jsx)(k.J,{text:JSON.stringify(e.data)})}):null}),(0,t.jsx)(u.pj,{children:e.failedReason?(0,t.jsx)("div",{className:"text-xs text-red-600 max-w-[120px] truncate",children:(0,t.jsx)(k.J,{text:"Error: "+e.failedReason})}):(0,t.jsx)("div",{className:"text-xs text-muted-foreground max-w-[120px] truncate",children:(0,t.jsx)(k.J,{text:JSON.stringify(e.returnvalue)})})}),(0,t.jsxs)(u.pj,{className:"text-right",children:["active"!==e.state&&(0,t.jsx)(d.z,{variant:"ghost",size:"sm",onClick:()=>eN(e),disabled:eh,children:(0,t.jsx)(g.Z,{className:"h-4 w-4 text-red-600"})}),"failed"===e.state&&(0,t.jsxs)(d.z,{variant:"ghost",size:"sm",onClick:()=>ey(e),children:[(0,t.jsx)(b.Z,{className:"h-4 w-4 text-blue-600"}),"Retry"]})]})]},s))})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between px-2 pb-2",children:[(0,t.jsxs)("div",{className:"flex-1 text-sm text-muted-foreground",children:["(",(null==eP?void 0:null===(O=eP.pageInfo)||void 0===O?void 0:O.itemCount)||0," total"," ","items)."]}),(0,t.jsx)("div",{className:"flex items-center space-x-6 lg:space-x-8",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsxs)(d.z,{variant:"outline",className:"hidden size-8 p-0 lg:flex",onClick:()=>{es(1),eu()},disabled:!(null==eP?void 0:null===(A=eP.pageInfo)||void 0===A?void 0:A.hasPreviousPage),children:[(0,t.jsx)("span",{className:"sr-only",children:"Go to first page"}),(0,t.jsx)(P.kRt,{className:"size-4"})]}),(0,t.jsxs)(d.z,{variant:"outline",className:"size-8 p-0",onClick:()=>{var e,s,a;console.log("itemsData.data?.pageInfo.hasPreviousPage",null==eP?void 0:null===(e=eP.pageInfo)||void 0===e?void 0:e.hasPreviousPage),es((null==eP?void 0:null===(s=eP.pageInfo)||void 0===s?void 0:s.hasPreviousPage)?(null==eP?void 0:null===(a=eP.pageInfo)||void 0===a?void 0:a.currentPage)-1:1),eu()},disabled:!(null==eP?void 0:null===(M=eP.pageInfo)||void 0===M?void 0:M.hasPreviousPage),children:[(0,t.jsx)("span",{className:"sr-only",children:"Go to previous page"}),(0,t.jsx)(N.Z,{className:"size-4"})]}),(0,t.jsxs)(d.z,{variant:"outline",className:"size-8 p-0",onClick:()=>{var e,s;es((null==eP?void 0:null===(e=eP.pageInfo)||void 0===e?void 0:e.hasNextPage)?(null==eP?void 0:null===(s=eP.pageInfo)||void 0===s?void 0:s.currentPage)+1:1),eu()},disabled:!(null==eP?void 0:eP.pageInfo.hasNextPage),children:[(0,t.jsx)("span",{className:"sr-only",children:"Go to next page"}),(0,t.jsx)(y.Z,{className:"size-4"})]})]})})]})]})]})]})]}),(0,t.jsx)(m.aR,{open:W.length>0,onOpenChange:e=>!e&&U([]),children:(0,t.jsxs)(m._T,{children:[(0,t.jsxs)(m.fY,{children:[(0,t.jsx)(m.f$,{children:1===W.length?"Delete Job?":"Delete ".concat(W.length," Jobs?")}),(0,t.jsx)(m.yT,{children:1===W.length?'Are you sure you want to delete the job "'.concat(null===(I=W[0])||void 0===I?void 0:I.name,'"? This action cannot be undone.'):"Are you sure you want to delete ".concat(W.length," jobs? This action cannot be undone.")})]}),(0,t.jsxs)(m.xo,{children:[(0,t.jsx)(m.le,{children:"Cancel"}),(0,t.jsxs)(m.OL,{onClick:eC,disabled:eh,children:[eh&&(0,t.jsx)(j.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Delete"]})]})]})}),(0,t.jsx)(m.aR,{open:!!G,onOpenChange:e=>!e&&B(null),children:(0,t.jsxs)(m._T,{children:[(0,t.jsxs)(m.fY,{children:[(0,t.jsx)(m.f$,{children:"Retry Job?"}),(0,t.jsxs)(m.yT,{children:['Are you sure you want to retry the job "',null==G?void 0:G.name,'"? This will schedule a new job with the same data.']})]}),(0,t.jsxs)(m.xo,{children:[(0,t.jsx)(m.le,{children:"Cancel"}),(0,t.jsx)(m.OL,{onClick:()=>{G&&Q(G)},disabled:eh,children:"Retry"})]})]})}),(0,t.jsx)(m.aR,{open:F,onOpenChange:Y,children:(0,t.jsxs)(m._T,{children:[(0,t.jsxs)(m.fY,{children:[(0,t.jsx)(m.f$,{children:"Pause Queue?"}),(0,t.jsxs)(m.yT,{children:["Are you sure you want to pause the ",J," queue? No jobs will be processed until the queue is resumed."]})]}),(0,t.jsxs)(m.xo,{children:[(0,t.jsx)(m.le,{children:"Cancel"}),(0,t.jsxs)(m.OL,{onClick:()=>{ej({variables:{queue:J}})},disabled:ef,children:[ef&&(0,t.jsx)(j.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Pause Queue"]})]})]})}),(0,t.jsx)(m.aR,{open:E,onOpenChange:V,children:(0,t.jsxs)(m._T,{children:[(0,t.jsxs)(m.fY,{children:[(0,t.jsx)(m.f$,{children:"Resume Queue?"}),(0,t.jsxs)(m.yT,{children:["Are you sure you want to resume the ",J," queue?."]})]}),(0,t.jsxs)(m.xo,{children:[(0,t.jsx)(m.le,{children:"Cancel"}),(0,t.jsxs)(m.OL,{onClick:()=>{ep({variables:{queue:J}})},disabled:ev,children:[ev&&(0,t.jsx)(j.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Resume Queue"]})]})]})}),(0,t.jsx)(m.aR,{open:$,onOpenChange:H,children:(0,t.jsxs)(m._T,{children:[(0,t.jsxs)(m.fY,{children:[(0,t.jsx)(m.f$,{children:"Drain Queue?"}),(0,t.jsxs)(m.yT,{children:["Are you sure you want to drain the ",J," queue? This will remove all jobs that are waiting or delayed, but not active, waiting-children, completed or failed. This action cannot be undone."]})]}),(0,t.jsxs)(m.xo,{children:[(0,t.jsx)(m.le,{children:"Cancel"}),(0,t.jsxs)(m.OL,{onClick:()=>{eg({variables:{queue:J}})},disabled:eb,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:[eb&&(0,t.jsx)(j.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Drain Queue"]})]})]})})]})}},62910:function(e,s,a){a.d(s,{G:function(){return j}});var t=a(57437),l=a(29406),n=a(10842),i=a(38436),r=a(2265),d=a(42571),c=a(71558),o=a(69797),u=a(49712),x=a(26110),m=a(77992),h=a(94508);function j(e){let{className:s=null,code:a,language:c,slice:o=200}=e,{toast:j}=(0,m.pm)(),[f,p]=(0,r.useState)(null),v=async(e,s)=>{"string"!=typeof e&&(e=JSON.stringify(e,null,2)),p(await i.ZP.format(e,{parser:s,plugins:[l.Z,n.ZP]}))};return(0,r.useEffect)(()=>{"json"===c?v(a,"json"):"javascript"===c||"js"===c?v(a,"babel"):p(a)},[a,c]),(0,t.jsxs)(x.Vq,{children:[(0,t.jsx)(x.hg,{asChild:!0,children:(null==f?void 0:f.length)&&(0,t.jsx)(d.Z,{className:(0,h.cn)("cursor-pointer",s),showLineNumbers:!0,wrapLines:!0,lineProps:{style:{wordBreak:"break-all",whiteSpace:"pre-wrap"}},language:c||"plaintext",style:u.Z,children:"".concat(null==f?void 0:f.slice(0,o||200)," ").concat((null==f?void 0:f.length)>(o||200)?"...":"")})}),(0,t.jsx)(x.cZ,{className:"sm:max-w-[800px] overflow-hidden max-h-[500px] overflow-y-scroll",children:(0,t.jsxs)(x.fK,{children:[(0,t.jsx)(x.$N,{children:"Code"}),(0,t.jsx)("div",{className:"cursor-copy",onClick:async()=>{await navigator.clipboard.writeText(null!=f?f:""),j({title:"Copied to clipboard"})},children:(0,t.jsx)(d.Z,{className:(0,h.cn)(s),showLineNumbers:!0,wrapLines:!0,lineProps:{style:{wordBreak:"break-all",whiteSpace:"pre-wrap"}},language:c||"plaintext",style:u.Z,children:null!=f?f:""})})]})})]})}d.Z.registerLanguage("json",o.Z),d.Z.registerLanguage("javascript",c.Z)},37099:function(e,s,a){a.d(s,{OL:function(){return f},_T:function(){return u},aR:function(){return d},f$:function(){return h},fY:function(){return x},le:function(){return p},xo:function(){return m},yT:function(){return j}});var t=a(57437),l=a(23619),n=a(2265),i=a(62869),r=a(94508);let d=l.fC;l.xz;let c=l.h_,o=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(l.aV,{className:(0,r.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...n,ref:s})});o.displayName=l.aV.displayName;let u=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsxs)(c,{children:[(0,t.jsx)(o,{}),(0,t.jsx)(l.VY,{ref:s,className:(0,r.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...n})]})});u.displayName=l.VY.displayName;let x=e=>{let{className:s,...a}=e;return(0,t.jsx)("div",{className:(0,r.cn)("flex flex-col space-y-2 text-center sm:text-left",s),...a})};x.displayName="AlertDialogHeader";let m=e=>{let{className:s,...a}=e;return(0,t.jsx)("div",{className:(0,r.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...a})};m.displayName="AlertDialogFooter";let h=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(l.Dx,{ref:s,className:(0,r.cn)("text-lg font-semibold",a),...n})});h.displayName=l.Dx.displayName;let j=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(l.dk,{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",a),...n})});j.displayName=l.dk.displayName;let f=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(l.aU,{ref:s,className:(0,r.cn)((0,i.d)(),a),...n})});f.displayName=l.aU.displayName;let p=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(l.$j,{ref:s,className:(0,r.cn)((0,i.d)({variant:"outline"}),"mt-2 sm:mt-0",a),...n})});p.displayName=l.$j.displayName},19060:function(e,s,a){a.d(s,{X:function(){return d}});var t=a(57437),l=a(9270),n=a(30401),i=a(2265),r=a(94508);let d=i.forwardRef((e,s)=>{let{className:a,...i}=e;return(0,t.jsx)(l.fC,{ref:s,className:(0,r.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",a),...i,children:(0,t.jsx)(l.z$,{className:(0,r.cn)("flex items-center justify-center text-current"),children:(0,t.jsx)(n.Z,{className:"size-4"})})})});d.displayName=l.fC.displayName},73578:function(e,s,a){a.d(s,{RM:function(){return d},Rn:function(){return x},SC:function(){return c},iA:function(){return i},pj:function(){return u},ss:function(){return o},xD:function(){return r}});var t=a(57437),l=a(2265),n=a(94508);let i=l.forwardRef((e,s)=>{let{className:a,...l}=e;return(0,t.jsx)("div",{className:"relative w-full overflow-auto",children:(0,t.jsx)("table",{ref:s,className:(0,n.cn)("w-full caption-bottom text-sm",a),...l})})});i.displayName="Table";let r=l.forwardRef((e,s)=>{let{className:a,...l}=e;return(0,t.jsx)("thead",{ref:s,className:(0,n.cn)("[&_tr]:border-b",a),...l})});r.displayName="TableHeader";let d=l.forwardRef((e,s)=>{let{className:a,...l}=e;return(0,t.jsx)("tbody",{ref:s,className:(0,n.cn)("[&_tr:last-child]:border-0",a),...l})});d.displayName="TableBody",l.forwardRef((e,s)=>{let{className:a,...l}=e;return(0,t.jsx)("tfoot",{ref:s,className:(0,n.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...l})}).displayName="TableFooter";let c=l.forwardRef((e,s)=>{let{className:a,...l}=e;return(0,t.jsx)("tr",{ref:s,className:(0,n.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...l})});c.displayName="TableRow";let o=l.forwardRef((e,s)=>{let{className:a,...l}=e;return(0,t.jsx)("th",{ref:s,className:(0,n.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&:has([role=checkbox])]:w-[40px]",a),...l})});o.displayName="TableHead";let u=l.forwardRef((e,s)=>{let{className:a,...l}=e;return(0,t.jsx)("td",{ref:s,className:(0,n.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0 [&:has([role=checkbox])]:w-[40px]",a),...l})});u.displayName="TableCell";let x=l.forwardRef((e,s)=>{let{className:a,...l}=e;return(0,t.jsx)("caption",{ref:s,className:(0,n.cn)("mt-4 text-sm text-muted-foreground",a),...l})});x.displayName="TableCaption"}}]);
2
+ //# sourceMappingURL=9105-143f12397a76a332.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static/chunks/9105-143f12397a76a332.js","mappings":"4YA0CO,SAASA,EAAgBC,CAA4D,MAmSdC,EACnCA,EAapBA,EAMAA,EAMAA,EAMAA,EAMAA,EAqCLC,EA+BGA,EAgFDA,EAWaA,EAgBAA,EAiC6BC,KAzhB9B,CAAEC,UAAAA,CAAS,CAAEC,cAAAA,CAAa,CAAEC,SAAAA,CAAQ,CAAwB,CAA5DN,EACxB,CAAEO,MAAAA,CAAK,CAAE,CAAGC,CAAAA,EAAAA,EAAAA,EAAAA,IACZ,CAACC,EAAiBC,EAAmB,CAAGC,CAAAA,EAAAA,EAAAA,QAAAA,EAAS,IACjD,CAACC,EAAiBC,EAAmB,CAAGF,CAAAA,EAAAA,EAAAA,QAAAA,EAAS,IACjD,CAACG,EAAkBC,EAAoB,CAAGJ,CAAAA,EAAAA,EAAAA,QAAAA,EAAS,IACnD,CAACR,EAAca,EAAgB,CAAGL,CAAAA,EAAAA,EAAAA,QAAAA,EAAqB,EAAE,EACzD,CAACM,EAAYC,EAAc,CAAGP,CAAAA,EAAAA,EAAAA,QAAAA,EAA0B,MACxD,CAACQ,EAAQC,EAAU,CAAGT,CAAAA,EAAAA,EAAAA,QAAAA,EAAoB,aAC1C,CAACU,GAAMC,GAAQ,CAAGX,CAAAA,EAAAA,EAAAA,QAAAA,EAAS,GAC3B,CAACY,GAAOC,GAAS,CAAGb,CAAAA,EAAAA,EAAAA,QAAAA,EAAS,K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,QAAzB,CAAEpH,UAAAA,CAAS,CAAE,GAAGqH,EAAO,CAAAlN,QACxB,GAAA0F,EAAAC,GAAA,EAACmI,KAAAA,CACCb,IAAKA,EACLpH,UAAW+F,CAAAA,EAAAA,EAAAA,EAAAA,EACT,mFACA/F,GAED,GAAGqH,CAAK,IAGbpE,CAAAA,EAAUqE,WAAW,CAAG,YAExB,IAAMY,EAAef,EAAAA,UAAgB,CAGnC,CAAAhN,EAA0BiN,QAAzB,CAAEpH,UAAAA,CAAS,CAAE,GAAGqH,EAAO,CAAAlN,QACxB,GAAA0F,EAAAC,GAAA,EAACqI,UAAAA,CACCf,IAAKA,EACLpH,UAAW+F,CAAAA,EAAAA,EAAAA,EAAAA,EAAG,qCAAsC/F,GACnD,GAAGqH,CAAK,IAGba,CAAAA,EAAaZ,WAAW,CAAG","sources":["webpack://_N_E/./app/(application)/evals/[id]/runs/components/queue-management.tsx","webpack://_N_E/./components/custom/code-preview.tsx","webpack://_N_E/./components/ui/alert-dialog.tsx","webpack://_N_E/./components/ui/checkbox.tsx","webpack://_N_E/./components/ui/table.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { useQuery, useMutation, NetworkStatus } from \"@apollo/client\";\nimport { GET_QUEUE, GET_JOBS, DELETE_JOB, PAUSE_QUEUE, DRAIN_QUEUE, RESUME_QUEUE } from \"@/queries/queries\";\nimport { QueueJob } from \"@/types/models/job\";\nimport { Button } from \"@/components/ui/button\";\nimport { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"@/components/ui/card\";\nimport { Checkbox } from \"@/components/ui/checkbox\";\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from \"@/components/ui/table\";\nimport { Tabs, TabsList, TabsTrigger } from \"@/components/ui/tabs\";\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n} from \"@/components/ui/alert-dialog\";\nimport { Badge } from \"@/components/ui/badge\";\nimport { Loader2, Trash2, Pause, Droplet, Play, RefreshCcw, ChevronLeftIcon, ChevronRightIcon } from \"lucide-react\";\nimport { useToast } from \"@/components/ui/use-toast\";\nimport { format } from \"date-fns\";\nimport { TextPreview } from \"@/components/custom/text-preview\";\nimport { DoubleArrowLeftIcon } from \"@radix-ui/react-icons\";\nimport { JobStatus } from \"@/types/models/job-result\";\n\ninterface QueueManagementProps {\n queueName: string;\n nameGenerator: (job: QueueJob) => string;\n retryJob: (job: QueueJob) => void;\n}\n\nexport function QueueManagement({ queueName, nameGenerator, retryJob }: QueueManagementProps) {\n const { toast } = useToast();\n const [pauseDialogOpen, setPauseDialogOpen] = useState(false);\n const [drainDialogOpen, setDrainDialogOpen] = useState(false);\n const [resumeDialogOpen, setResumeDialogOpen] = useState(false);\n const [jobsToDelete, setJobsToDelete] = useState<QueueJob[]>([]);\n const [jobToRetry, setJobToRetry] = useState<QueueJob | null>(null);\n const [status, setStatus] = useState<JobStatus>(\"completed\");\n const [page, setPage] = useState(1);\n const [limit, setLimit] = useState(200);\n const [selectedJobs, setSelectedJobs] = useState<Set<string>>(new Set());\n\n const { data: queueData, loading: loadingQueue, refetch: refetchQueue } = useQuery(GET_QUEUE, {\n variables: { queue: queueName },\n pollInterval: 5000, // Poll every 5 seconds\n });\n\n const { data: jobsData, loading: loadingJobs, refetch: refetchJobs, networkStatus: jobsNetworkStatus } = useQuery(GET_JOBS, {\n variables: {\n queue: queueName,\n statusses: status,\n page: page,\n limit: limit\n },\n pollInterval: 5000, // Poll every 5 seconds\n });\n\n const [deleteJob, { loading: deletingJob }] = useMutation(DELETE_JOB, {\n onError: (error) => {\n toast({\n title: \"Failed to delete job\",\n description: error.message,\n variant: \"destructive\",\n });\n },\n });\n\n const [pauseQueue, { loading: pausingQueue }] = useMutation(PAUSE_QUEUE, {\n onCompleted: () => {\n toast({\n title: \"Queue paused\",\n description: `The ${queueName} queue has been paused.`,\n });\n refetchQueue();\n setPauseDialogOpen(false);\n },\n onError: (error) => {\n toast({\n title: \"Failed to pause queue\",\n description: error.message,\n variant: \"destructive\",\n });\n },\n });\n\n const [resumeQueue, { loading: resumingQueue }] = useMutation(RESUME_QUEUE, {\n onCompleted: () => {\n toast({\n title: \"Queue resumed\",\n description: `The ${queueName} queue has been resumed.`,\n });\n refetchQueue();\n setResumeDialogOpen(false);\n },\n onError: (error) => {\n toast({\n title: \"Failed to resume queue\",\n description: error.message,\n variant: \"destructive\",\n });\n },\n });\n\n const [drainQueue, { loading: drainingQueue }] = useMutation(DRAIN_QUEUE, {\n onCompleted: () => {\n toast({\n title: \"Queue drained\",\n description: \"All waiting and delayed jobs have been removed from the queue.\",\n });\n refetchQueue();\n refetchJobs();\n setDrainDialogOpen(false);\n },\n onError: (error) => {\n toast({\n title: \"Failed to drain queue\",\n description: error.message,\n variant: \"destructive\",\n });\n },\n });\n\n const handleDeleteJob = (job: QueueJob) => {\n setJobsToDelete([job]);\n };\n\n const handleBulkDelete = () => {\n const jobsToDeleteArray = jobs.items.filter(job => selectedJobs.has(job.id));\n setJobsToDelete(jobsToDeleteArray);\n };\n\n const handleRetryJob = (job: QueueJob) => {\n setJobToRetry(job);\n };\n\n const toggleJobSelection = (jobId: string) => {\n const newSelection = new Set(selectedJobs);\n if (newSelection.has(jobId)) {\n newSelection.delete(jobId);\n } else {\n newSelection.add(jobId);\n }\n setSelectedJobs(newSelection);\n };\n\n const toggleAllJobs = () => {\n // Filter out active jobs since they can't be deleted\n const selectableJobs = jobs.items.filter(job => job.state !== \"active\");\n if (selectedJobs.size === selectableJobs.length && selectableJobs.length > 0) {\n setSelectedJobs(new Set());\n } else {\n setSelectedJobs(new Set(selectableJobs.map(job => job.id)));\n }\n };\n\n const confirmDeleteJobs = async () => {\n const jobsWithoutId = jobsToDelete.filter(job => !job.id);\n if (jobsWithoutId.length > 0) {\n toast({\n title: \"Failed to delete jobs\",\n description: \"Some jobs have no ID.\",\n variant: \"destructive\",\n });\n return;\n }\n\n try {\n // Delete all jobs in parallel\n await Promise.all(\n jobsToDelete.map(job =>\n deleteJob({\n variables: {\n queue: queueName,\n id: job.id,\n },\n })\n )\n );\n\n toast({\n title: jobsToDelete.length === 1 ? \"Job deleted\" : \"Jobs deleted\",\n description: `Successfully deleted ${jobsToDelete.length} job${jobsToDelete.length === 1 ? '' : 's'}.`,\n });\n\n refetchJobs();\n refetchQueue();\n setJobsToDelete([]);\n setSelectedJobs(new Set());\n } catch (error) {\n // Error toast already handled by mutation onError\n }\n };\n\n const handlePauseQueue = () => {\n pauseQueue({\n variables: { queue: queueName },\n });\n };\n\n const handleResumeQueue = () => {\n resumeQueue({\n variables: { queue: queueName },\n });\n };\n\n const handleDrainQueue = () => {\n drainQueue({\n variables: { queue: queueName },\n });\n };\n\n const queue = queueData?.queue;\n const jobs: {\n items: QueueJob[],\n pageInfo: {\n pageCount: number,\n itemCount: number,\n currentPage: number,\n hasPreviousPage: boolean,\n hasNextPage: boolean,\n }\n } = jobsData?.jobs || {\n items: [],\n pageInfo: {\n pageCount: 0,\n itemCount: 0,\n currentPage: 1,\n hasPreviousPage: false,\n hasNextPage: false,\n }\n };\n\n const getStatusBadge = (state: string) => {\n const statusColors: Record<string, string> = {\n active: \"bg-blue-100 text-blue-800 border-blue-200\",\n waiting: \"bg-yellow-100 text-yellow-800 border-yellow-200\",\n completed: \"bg-green-100 text-green-800 border-green-200\",\n failed: \"bg-red-100 text-red-800 border-red-200\",\n delayed: \"bg-orange-100 text-orange-800 border-orange-200\",\n paused: \"bg-gray-100 text-gray-800 border-gray-200\",\n };\n\n return (\n <Badge variant=\"outline\" className={statusColors[state] || \"bg-gray-100 text-gray-800\"}>\n {state}\n </Badge>\n );\n };\n\n if (loadingQueue && loadingJobs) {\n return (\n <div className=\"space-y-4\">\n <Card>\n <CardContent className=\"pt-6\">\n <div className=\"flex items-center justify-center py-8\">\n <Loader2 className=\"h-6 w-6 animate-spin\" />\n </div>\n </CardContent>\n </Card>\n </div>\n );\n }\n\n return (\n <>\n <Card>\n <CardHeader>\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center gap-3\">\n <div>\n <CardTitle>Queue: {queueName}</CardTitle>\n <CardDescription>Manage the {queueName} job queue and view all jobs.</CardDescription>\n </div>\n </div>\n {queue && <div className=\"flex gap-2\">\n <Button\n variant=\"outline\"\n size=\"sm\"\n onClick={() => queue?.isPaused ? setResumeDialogOpen(true) : setPauseDialogOpen(true)}\n disabled={pausingQueue || resumingQueue}\n >\n {queue?.isPaused ? <Play className=\"mr-2 h-4 w-4\" /> : <Pause className=\"mr-2 h-4 w-4\" />}\n {queue?.isPaused ? \"Resume queue\" : \"Pause queue\"}\n </Button>\n\n <Button\n variant=\"outline\"\n size=\"sm\"\n onClick={() => setDrainDialogOpen(true)}\n disabled={drainingQueue}\n >\n <Droplet className=\"mr-2 h-4 w-4\" />\n Drain queue\n </Button>\n </div>}\n </div>\n </CardHeader>\n <CardContent className=\"space-y-6\">\n {/* Queue Stats - Compact Layout */}\n {queue && (\n <div className=\"flex items-center gap-8 p-4 bg-muted/50 rounded-lg\">\n <div className=\"flex items-center gap-2\">\n <div className=\"text-sm text-muted-foreground\">Status:</div>\n <div>\n {queue.isPaused ? (\n <Badge variant=\"outline\" className=\"bg-gray-100 text-gray-800\">\n Paused\n </Badge>\n ) : queue.isMaxed ? (\n <Badge variant=\"outline\" className=\"bg-red-100 text-red-800\">\n Maxed\n </Badge>\n ) : (\n <Badge variant=\"outline\" className=\"bg-green-100 text-green-800\">\n Active\n </Badge>\n )}\n </div>\n </div>\n <div className=\"flex items-center gap-2\">\n <div className=\"text-sm text-muted-foreground\">Concurrency:</div>\n <div className=\"font-semibold\">Per queue global concurrency: {queue.concurrency?.queue || \"None\"}\n Per worker concurrency: {queue.concurrency?.worker || \"None\"}.\n Timeout: {queue.timeoutInSeconds || \"None\"} seconds.\n </div>\n </div>\n <div className=\"flex items-center gap-2\">\n <div className=\"text-sm text-muted-foreground\">Rate Limit:</div>\n <div className=\"font-semibold\">{queue.ratelimit || \"None\"}</div>\n </div>\n <Tabs value={status} onValueChange={(value) => setStatus(value as JobStatus)} className=\"w-auto\">\n <TabsList>\n <TabsTrigger value=\"active\" className=\"gap-1.5\">\n <span>Active</span>\n <Badge variant=\"secondary\" className=\"ml-1 bg-blue-100 text-blue-600 border-blue-200\">\n {queue.jobs?.active || 0}\n </Badge>\n </TabsTrigger>\n <TabsTrigger value=\"waiting\" className=\"gap-1.5\">\n <span>Waiting</span>\n <Badge variant=\"secondary\" className=\"ml-1 bg-yellow-100 text-yellow-600 border-yellow-200\">\n {queue.jobs?.waiting || 0}\n </Badge>\n </TabsTrigger>\n <TabsTrigger value=\"failed\" className=\"gap-1.5\">\n <span>Failed</span>\n <Badge variant=\"secondary\" className=\"ml-1 bg-red-100 text-red-600 border-red-200\">\n {queue.jobs?.failed || 0}\n </Badge>\n </TabsTrigger>\n <TabsTrigger value=\"stuck\" className=\"gap-1.5\">\n <span>Stuck</span>\n <Badge variant=\"secondary\" className=\"ml-1 bg-red-100 text-red-600 border-red-200\">\n {queue.jobs?.stuck || 0}\n </Badge>\n </TabsTrigger>\n <TabsTrigger value=\"completed\" className=\"gap-1.5\">\n <span>Completed</span>\n <Badge variant=\"secondary\" className=\"ml-1 bg-green-100 text-green-600 border-green-200\">\n {queue.jobs?.completed || 0}\n </Badge>\n </TabsTrigger>\n </TabsList>\n </Tabs>\n </div>\n )}\n\n {/* Jobs Table */}\n <div>\n <div className=\"mb-3 flex items-center justify-between gap-2\">\n <div>\n <h3 className=\"text-sm font-semibold\">Queue Jobs</h3>\n <p className=\"text-xs text-muted-foreground\">All jobs currently in the {queueName} queue</p>\n </div>\n <div className=\"flex items-center gap-2\">\n {selectedJobs.size > 0 && (\n <Button\n variant=\"destructive\"\n size=\"sm\"\n onClick={handleBulkDelete}\n disabled={deletingJob}\n >\n <Trash2 className=\"mr-2 h-4 w-4\" />\n Delete {selectedJobs.size} job{selectedJobs.size === 1 ? '' : 's'}\n </Button>\n )}\n <Badge variant=\"outline\">\n Auto Refresh: <Loader2 className=\"h-4 w-4 animate-spin text-muted-foreground ml-1\" />\n </Badge>\n </div>\n </div>\n <div className=\"border rounded-lg\">\n {loadingJobs ? (\n <div className=\"flex items-center justify-center py-8\">\n <Loader2 className=\"h-6 w-6 animate-spin\" />\n </div>\n ) : jobs.items?.length === 0 ? (\n <div className=\"text-center pt-8 text-muted-foreground\">\n No jobs in queue\n </div>\n ) : (\n <Table>\n <TableHeader>\n <TableRow>\n <TableHead className=\"w-12\">\n <Checkbox\n checked={\n jobs.items.filter(job => job.state !== \"active\").length > 0 &&\n selectedJobs.size === jobs.items.filter(job => job.state !== \"active\").length\n }\n onCheckedChange={toggleAllJobs}\n aria-label=\"Select all jobs\"\n />\n </TableHead>\n <TableHead>Name</TableHead>\n <TableHead>ID</TableHead>\n {/* <TableHead>State</TableHead> */}\n <TableHead>Attempts Made</TableHead>\n <TableHead>Created</TableHead>\n <TableHead>Processed On</TableHead>\n <TableHead>Finished On</TableHead>\n <TableHead>Inputs</TableHead>\n <TableHead>Outputs</TableHead>\n <TableHead className=\"text-right\">Actions</TableHead>\n </TableRow>\n </TableHeader>\n <TableBody>\n {jobs.items?.map((job, index) => (\n <TableRow key={index}>\n <TableCell>\n <Checkbox\n checked={selectedJobs.has(job.id)}\n onCheckedChange={() => toggleJobSelection(job.id)}\n disabled={job.state === \"active\"}\n aria-label={`Select job ${nameGenerator(job)}`}\n />\n </TableCell>\n <TableCell className=\"font-medium max-w-[200px] truncate\">\n {nameGenerator(job)}\n </TableCell>\n <TableCell>{job.id}</TableCell>\n {/* <TableCell>{getStatusBadge(job.state)}</TableCell> */}\n <TableCell>\n {job.attemptsMade}\n </TableCell>\n <TableCell>\n {job.timestamp ? format(new Date(job.timestamp), \"MMM d, yyyy HH:mm:ss\") : \"N/A\"}\n </TableCell>\n <TableCell>\n {job.processedOn ? format(new Date(job.processedOn), \"MMM d, yyyy HH:mm:ss\") : \"N/A\"}\n </TableCell>\n <TableCell>\n {job.finishedOn ? format(new Date(job.finishedOn), \"MMM d, yyyy HH:mm:ss\") : \"N/A\"}\n </TableCell>\n <TableCell>\n {job.data ? (\n <div className=\"text-xs max-w-[120px] truncate\">\n <TextPreview\n text={JSON.stringify(job.data)}\n />\n </div>\n ) : null}\n </TableCell>\n <TableCell>\n {job.failedReason ? (\n <div className=\"text-xs text-red-600 max-w-[120px] truncate\">\n <TextPreview\n text={\"Error: \" + job.failedReason}\n />\n </div>\n ) : (\n <div className=\"text-xs text-muted-foreground max-w-[120px] truncate\">\n <TextPreview\n text={JSON.stringify(job.returnvalue)}\n />\n </div>\n )}\n </TableCell>\n <TableCell className=\"text-right\">\n {job.state !== \"active\" && (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={() => handleDeleteJob(job)}\n disabled={deletingJob}\n >\n <Trash2 className=\"h-4 w-4 text-red-600\" />\n </Button>\n )}\n {job.state === \"failed\" && (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={() => handleRetryJob(job)}>\n <RefreshCcw className=\"h-4 w-4 text-blue-600\" />\n Retry\n </Button>\n )}\n </TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n )}\n\n <div className=\"flex items-center justify-between px-2 pb-2\">\n <div className=\"flex-1 text-sm text-muted-foreground\">\n ({jobs?.pageInfo?.itemCount || 0} total{\" \"}items).\n </div>\n <div className=\"flex items-center space-x-6 lg:space-x-8\">\n <div className=\"flex items-center space-x-2\">\n <Button\n variant=\"outline\"\n className=\"hidden size-8 p-0 lg:flex\"\n onClick={() => {\n setPage(1);\n refetchJobs();\n }}\n disabled={!jobs?.pageInfo?.hasPreviousPage}\n >\n <span className=\"sr-only\">Go to first page</span>\n <DoubleArrowLeftIcon className=\"size-4\" />\n </Button>\n <Button\n variant=\"outline\"\n className=\"size-8 p-0\"\n onClick={() => {\n console.log(\n \"itemsData.data?.pageInfo.hasPreviousPage\",\n jobs?.pageInfo?.hasPreviousPage,\n );\n setPage(jobs?.pageInfo?.hasPreviousPage ? jobs?.pageInfo?.currentPage - 1 : 1);\n refetchJobs();\n }}\n disabled={!jobs?.pageInfo?.hasPreviousPage}\n >\n <span className=\"sr-only\">Go to previous page</span>\n <ChevronLeftIcon className=\"size-4\" />\n </Button>\n <Button\n variant=\"outline\"\n className=\"size-8 p-0\"\n onClick={() => {\n setPage(jobs?.pageInfo?.hasNextPage ? jobs?.pageInfo?.currentPage + 1 : 1);\n refetchJobs();\n }}\n disabled={!jobs?.pageInfo.hasNextPage}>\n <span className=\"sr-only\">Go to next page</span>\n <ChevronRightIcon className=\"size-4\" />\n </Button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </CardContent>\n </Card>\n\n {/* Delete Job(s) Confirmation Dialog */}\n <AlertDialog open={jobsToDelete.length > 0} onOpenChange={(open) => !open && setJobsToDelete([])}>\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>\n {jobsToDelete.length === 1 ? \"Delete Job?\" : `Delete ${jobsToDelete.length} Jobs?`}\n </AlertDialogTitle>\n <AlertDialogDescription>\n {jobsToDelete.length === 1\n ? `Are you sure you want to delete the job \"${jobsToDelete[0]?.name}\"? This action cannot be undone.`\n : `Are you sure you want to delete ${jobsToDelete.length} jobs? This action cannot be undone.`\n }\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>Cancel</AlertDialogCancel>\n <AlertDialogAction onClick={confirmDeleteJobs} disabled={deletingJob}>\n {deletingJob && <Loader2 className=\"mr-2 h-4 w-4 animate-spin\" />}\n Delete\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n\n {/* Delete Job Confirmation Dialog */}\n <AlertDialog open={!!jobToRetry} onOpenChange={(open) => !open && setJobToRetry(null)}>\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>Retry Job?</AlertDialogTitle>\n <AlertDialogDescription>\n Are you sure you want to retry the job \"{jobToRetry?.name}\"? This will schedule a new job with the same data.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>Cancel</AlertDialogCancel>\n <AlertDialogAction onClick={() => {\n if (!jobToRetry) {\n return;\n }\n retryJob(jobToRetry);\n }} disabled={deletingJob}>\n Retry\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n\n {/* Pause Queue Confirmation Dialog */}\n <AlertDialog open={pauseDialogOpen} onOpenChange={setPauseDialogOpen}>\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>Pause Queue?</AlertDialogTitle>\n <AlertDialogDescription>\n Are you sure you want to pause the {queueName} queue? No jobs will be processed until the queue is resumed.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>Cancel</AlertDialogCancel>\n <AlertDialogAction onClick={handlePauseQueue} disabled={pausingQueue}>\n {pausingQueue && <Loader2 className=\"mr-2 h-4 w-4 animate-spin\" />}\n Pause Queue\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n\n {/* Resume Queue Confirmation Dialog */}\n <AlertDialog open={resumeDialogOpen} onOpenChange={setResumeDialogOpen}>\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>Resume Queue?</AlertDialogTitle>\n <AlertDialogDescription>\n Are you sure you want to resume the {queueName} queue?.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>Cancel</AlertDialogCancel>\n <AlertDialogAction onClick={handleResumeQueue} disabled={resumingQueue}>\n {resumingQueue && <Loader2 className=\"mr-2 h-4 w-4 animate-spin\" />}\n Resume Queue\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n\n {/* Drain Queue Confirmation Dialog */}\n <AlertDialog open={drainDialogOpen} onOpenChange={setDrainDialogOpen}>\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>Drain Queue?</AlertDialogTitle>\n <AlertDialogDescription>\n Are you sure you want to drain the {queueName} queue? This will remove all jobs that are waiting or delayed, but not active, waiting-children, completed or failed. This action cannot be undone.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>Cancel</AlertDialogCancel>\n <AlertDialogAction\n onClick={handleDrainQueue}\n disabled={drainingQueue}\n className=\"bg-destructive text-destructive-foreground hover:bg-destructive/90\"\n >\n {drainingQueue && <Loader2 className=\"mr-2 h-4 w-4 animate-spin\" />}\n Drain Queue\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n </>\n );\n}\n","import babel from \"prettier/plugins/babel\";\nimport estree from \"prettier/plugins/estree\";\nimport prettier from \"prettier/standalone\";\nimport * as React from \"react\";\nimport { useEffect, useState } from \"react\";\nimport { Light as SyntaxHighlighter } from \"react-syntax-highlighter\";\nimport javascript from \"react-syntax-highlighter/dist/esm/languages/hljs/javascript\";\nimport json from \"react-syntax-highlighter/dist/esm/languages/hljs/json\";\nimport {\n a11yDark,\n dracula,\n} from \"react-syntax-highlighter/dist/esm/styles/prism\";\nimport {\n Dialog,\n DialogContent,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/components/ui/dialog\";\nimport { useToast } from \"@/components/ui/use-toast\";\nimport { cn } from \"@/lib/utils\";\n\nSyntaxHighlighter.registerLanguage(\"json\", json);\nSyntaxHighlighter.registerLanguage(\"javascript\", javascript);\n\nexport function CodePreview({\n className = null,\n code: inputCode,\n language,\n slice = 200,\n }: {\n className?: string | null;\n code: string;\n language?: string;\n slice?: number | null;\n}) {\n const { toast } = useToast();\n const [code, setCode] = useState<string | null>(null);\n\n const format = async (code, language) => {\n if (typeof code !== \"string\") {\n code = JSON.stringify(code, null, 2);\n }\n const formattedCode = await prettier.format(code, {\n parser: language,\n plugins: [babel, estree],\n });\n setCode(formattedCode);\n };\n\n useEffect(() => {\n if (language === \"json\") {\n format(inputCode, \"json\");\n } else if (language === \"javascript\" || language === \"js\") {\n format(inputCode, \"babel\");\n } else {\n setCode(inputCode);\n }\n }, [inputCode, language]);\n\n return (\n <Dialog>\n <DialogTrigger asChild>\n {code?.length && (\n <SyntaxHighlighter\n className={cn(\"cursor-pointer\", className)}\n showLineNumbers={true}\n wrapLines={true}\n lineProps={{\n style: { wordBreak: \"break-all\", whiteSpace: \"pre-wrap\" },\n }}\n language={language ? language : \"plaintext\"}\n style={dracula}\n >\n {`${code?.slice(0, slice || 200)} ${code?.length > (slice || 200) ? \"...\" : \"\"}`}\n </SyntaxHighlighter>\n )}\n </DialogTrigger>\n <DialogContent className=\"sm:max-w-[800px] overflow-hidden max-h-[500px] overflow-y-scroll\">\n <DialogHeader>\n <DialogTitle>Code</DialogTitle>\n <div\n className=\"cursor-copy\"\n onClick={async () => {\n await navigator.clipboard.writeText(code ?? \"\");\n toast({ title: \"Copied to clipboard\" });\n }}\n >\n <SyntaxHighlighter\n className={cn(className)}\n showLineNumbers={true}\n wrapLines={true}\n lineProps={{\n style: { wordBreak: \"break-all\", whiteSpace: \"pre-wrap\" },\n }}\n language={language ? language : \"plaintext\"}\n style={dracula}\n >\n {code ?? \"\"}\n </SyntaxHighlighter>\n </div>\n </DialogHeader>\n </DialogContent>\n </Dialog>\n );\n}\n","\"use client\";\n\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport * as React from \"react\";\n\nimport { buttonVariants } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\nconst AlertDialog = AlertDialogPrimitive.Root;\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\n\nconst AlertDialogOverlay = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Overlay\n className={cn(\n \"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;\n\nconst AlertDialogContent = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <AlertDialogPortal>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg\",\n className,\n )}\n {...props}\n />\n </AlertDialogPortal>\n));\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\nconst AlertDialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col space-y-2 text-center sm:text-left\",\n className,\n )}\n {...props}\n />\n);\nAlertDialogHeader.displayName = \"AlertDialogHeader\";\n\nconst AlertDialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n className,\n )}\n {...props}\n />\n);\nAlertDialogFooter.displayName = \"AlertDialogFooter\";\n\nconst AlertDialogTitle = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold\", className)}\n {...props}\n />\n));\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\nconst AlertDialogDescription = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nAlertDialogDescription.displayName =\n AlertDialogPrimitive.Description.displayName;\n\nconst AlertDialogAction = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Action>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action\n ref={ref}\n className={cn(buttonVariants(), className)}\n {...props}\n />\n));\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\nconst AlertDialogCancel = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={cn(\n buttonVariants({ variant: \"outline\" }),\n \"mt-2 sm:mt-0\",\n className,\n )}\n {...props}\n />\n));\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\nexport {\n AlertDialog,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n};\n","\"use client\";\n\nimport * as CheckboxPrimitive from \"@radix-ui/react-checkbox\";\nimport { Check } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n \"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground\",\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n className={cn(\"flex items-center justify-center text-current\")}\n >\n <Check className=\"size-4\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n));\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport { Checkbox };\n","import * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst Table = React.forwardRef<\n HTMLTableElement,\n React.HTMLAttributes<HTMLTableElement>\n>(({ className, ...props }, ref) => (\n <div className=\"relative w-full overflow-auto\">\n <table\n ref={ref}\n className={cn(\"w-full caption-bottom text-sm\", className)}\n {...props}\n />\n </div>\n));\nTable.displayName = \"Table\";\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead ref={ref} className={cn(\"[&_tr]:border-b\", className)} {...props} />\n));\nTableHeader.displayName = \"TableHeader\";\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn(\"[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n));\nTableBody.displayName = \"TableBody\";\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn(\n \"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0\",\n className,\n )}\n {...props}\n />\n));\nTableFooter.displayName = \"TableFooter\";\n\nconst TableRow = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n \"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted\",\n className,\n )}\n {...props}\n />\n));\nTableRow.displayName = \"TableRow\";\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\n \"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&:has([role=checkbox])]:w-[40px]\",\n className,\n )}\n {...props}\n />\n));\nTableHead.displayName = \"TableHead\";\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n \"p-4 align-middle [&:has([role=checkbox])]:pr-0 [&:has([role=checkbox])]:w-[40px]\",\n className,\n )}\n {...props}\n />\n));\nTableCell.displayName = \"TableCell\";\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption\n ref={ref}\n className={cn(\"mt-4 text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nTableCaption.displayName = \"TableCaption\";\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n};\n"],"names":["QueueManagement","param","queue","jobs","jobsToDelete","queueName","nameGenerator","retryJob","toast","useToast","pauseDialogOpen","setPauseDialogOpen","useState","drainDialogOpen","setDrainDialogOpen","resumeDialogOpen","setResumeDialogOpen","setJobsToDelete","jobToRetry","setJobToRetry","status","setStatus","page","setPage","limit","setLimit","selectedJobs","setSelectedJobs","Set","data","queueData","loading","loadingQueue","refetch","refetchQueue","useQuery","GET_QUEUE","variables","pollInterval","jobsData","loadingJobs","refetchJobs","networkStatus","jobsNetworkStatus","GET_JOBS","statusses","deleteJob","deletingJob","useMutation","DELETE_JOB","onError","title","description","error","message","variant","pauseQueue","pausingQueue","PAUSE_QUEUE","onCompleted","concat","resumeQueue","resumingQueue","RESUME_QUEUE","drainQueue","drainingQueue","DRAIN_QUEUE","handleDeleteJob","job","handleRetryJob","toggleJobSelection","newSelection","has","jobId","delete","add","confirmDeleteJobs","jobsWithoutId","filter","id","length","Promise","all","map","items","pageInfo","pageCount","itemCount","currentPage","hasPreviousPage","hasNextPage","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","div","className","Card","CardContent","Loader2","jsxs","Fragment","CardHeader","CardTitle","CardDescription","Button","size","onClick","isPaused","disabled","Play","Pause","Droplet","Badge","isMaxed","concurrency","worker","timeoutInSeconds","ratelimit","Tabs","value","onValueChange","TabsList","TabsTrigger","span","active","waiting","failed","stuck","completed","h3","p","Trash2","Table","TableHeader","TableRow","TableHead","Checkbox","checked","state","onCheckedChange","selectableJobs","aria-label","TableBody","index","TableCell","attemptsMade","timestamp","format","Date","processedOn","finishedOn","TextPreview","text","JSON","stringify","failedReason","returnvalue","RefreshCcw","DoubleArrowLeftIcon","console","log","ChevronLeftIcon","ChevronRightIcon","AlertDialog","open","onOpenChange","AlertDialogContent","AlertDialogHeader","AlertDialogTitle","AlertDialogDescription","name","AlertDialogFooter","AlertDialogCancel","AlertDialogAction","CodePreview","code","inputCode","language","slice","setCode","prettier","parser","plugins","babel","estree","useEffect","Dialog","DialogTrigger","asChild","SyntaxHighlighter","cn","showLineNumbers","wrapLines","lineProps","style","wordBreak","whiteSpace","dracula","DialogContent","DialogHeader","DialogTitle","navigator","clipboard","writeText","registerLanguage","json","javascript","AlertDialogPrimitive","AlertDialogPortal","AlertDialogOverlay","React","ref","props","displayName","buttonVariants","CheckboxPrimitive","Check","table","thead","tbody","TableFooter","tfoot","tr","th","td","TableCaption","caption"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9877],{15863:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},1119:function(e,t,n){n.d(t,{Z:function(){return r}});function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}},27312:function(e,t,n){n.d(t,{VY:function(){return B},fC:function(){return K},h_:function(){return z},xz:function(){return U}});var r=n(2265),o=n(6741),l=n(98575),u=n(73966),a=n(22308),i=n(86097),c=n(99103),s=n(99255),d=n(49289),f=n(83832),v=n(71599),p=n(66840),m=n(37053),h=n(80886),g=n(5478),E=n(60703),b=n(57437),y="Popover",[w,C]=(0,u.b)(y,[d.D7]),R=(0,d.D7)(),[P,S]=w(y),k=e=>{let{__scopePopover:t,children:n,open:o,defaultOpen:l,onOpenChange:u,modal:a=!1}=e,i=R(t),c=r.useRef(null),[f,v]=r.useState(!1),[p,m]=(0,h.T)({prop:o,defaultProp:null!=l&&l,onChange:u,caller:y});return(0,b.jsx)(d.fC,{...i,children:(0,b.jsx)(P,{scope:t,contentId:(0,s.M)(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:f,onCustomAnchorAdd:r.useCallback(()=>v(!0),[]),onCustomAnchorRemove:r.useCallback(()=>v(!1),[]),modal:a,children:n})})};k.displayName=y;var x="PopoverAnchor";r.forwardRef((e,t)=>{let{__scopePopover:n,...o}=e,l=S(x,n),u=R(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=l;return r.useEffect(()=>(a(),()=>i()),[a,i]),(0,b.jsx)(d.ee,{...u,...o,ref:t})}).displayName=x;var O="PopoverTrigger",D=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,u=S(O,n),a=R(n),i=(0,l.e)(t,u.triggerRef),c=(0,b.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":W(u.open),...r,ref:i,onClick:(0,o.M)(e.onClick,u.onOpenToggle)});return u.hasCustomAnchor?c:(0,b.jsx)(d.ee,{asChild:!0,...a,children:c})});D.displayName=O;var N="PopoverPortal",[A,M]=w(N,{forceMount:void 0}),L=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,l=S(N,t);return(0,b.jsx)(A,{scope:t,forceMount:n,children:(0,b.jsx)(v.z,{present:n||l.open,children:(0,b.jsx)(f.h,{asChild:!0,container:o,children:r})})})};L.displayName=N;var I="PopoverContent",F=r.forwardRef((e,t)=>{let n=M(I,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,l=S(I,e.__scopePopover);return(0,b.jsx)(v.z,{present:r||l.open,children:l.modal?(0,b.jsx)(T,{...o,ref:t}):(0,b.jsx)(j,{...o,ref:t})})});F.displayName=I;var _=(0,m.Z8)("PopoverContent.RemoveScroll"),T=r.forwardRef((e,t)=>{let n=S(I,e.__scopePopover),u=r.useRef(null),a=(0,l.e)(t,u),i=r.useRef(!1);return r.useEffect(()=>{let e=u.current;if(e)return(0,g.Ry)(e)},[]),(0,b.jsx)(E.Z,{as:_,allowPinchZoom:!0,children:(0,b.jsx)(Z,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),i.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),j=r.forwardRef((e,t)=>{let n=S(I,e.__scopePopover),o=r.useRef(!1),l=r.useRef(!1);return(0,b.jsx)(Z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,u;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(u=n.triggerRef.current)||void 0===u||u.focus(),t.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:t=>{var r,u;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(l.current=!0));let a=t.target;(null===(u=n.triggerRef.current)||void 0===u?void 0:u.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),Z=r.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:l,disableOutsidePointerEvents:u,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:v,onInteractOutside:p,...m}=e,h=S(I,n),g=R(n);return(0,i.EW)(),(0,b.jsx)(c.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:l,children:(0,b.jsx)(a.XB,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:p,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:v,onDismiss:()=>h.onOpenChange(!1),children:(0,b.jsx)(d.VY,{"data-state":W(h.open),role:"dialog",id:h.contentId,...g,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),$="PopoverClose";function W(e){return e?"open":"closed"}r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,l=S($,n);return(0,b.jsx)(p.WV.button,{type:"button",...r,ref:t,onClick:(0,o.M)(e.onClick,()=>l.onOpenChange(!1))})}).displayName=$,r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=R(n);return(0,b.jsx)(d.Eh,{...o,...r,ref:t})}).displayName="PopoverArrow";var K=k,U=D,z=L,B=F},83918:function(e,t,n){let r,o;n.d(t,{mY:function(){return e8}});var l=/[\\\/_+.#"@\[\(\{&]/,u=/[\\\/_+.#"@\[\(\{&]/g,a=/[\s-]/,i=/[\s-]/g;function c(e){return e.toLowerCase().replace(i," ")}var s=n(1119),d=n(2265),f=n.t(d,2);function v(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function p(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function m(...e){return(0,d.useCallback)(p(...e),e)}let h=(null==globalThis?void 0:globalThis.document)?d.useLayoutEffect:()=>{},g=f["useId".toString()]||(()=>void 0),E=0;function b(e){let[t,n]=d.useState(g());return h(()=>{e||n(e=>null!=e?e:String(E++))},[e]),e||(t?`radix-${t}`:"")}function y(e){let t=(0,d.useRef)(e);return(0,d.useEffect)(()=>{t.current=e}),(0,d.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}var w=n(54887);let C=(0,d.forwardRef)((e,t)=>{let{children:n,...r}=e,o=d.Children.toArray(n),l=o.find(S);if(l){let e=l.props.children,n=o.map(t=>t!==l?t:d.Children.count(e)>1?d.Children.only(null):(0,d.isValidElement)(e)?e.props.children:null);return(0,d.createElement)(R,(0,s.Z)({},r,{ref:t}),(0,d.isValidElement)(e)?(0,d.cloneElement)(e,void 0,n):null)}return(0,d.createElement)(R,(0,s.Z)({},r,{ref:t}),n)});C.displayName="Slot";let R=(0,d.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,d.isValidElement)(n)?(0,d.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?n[r]=(...e)=>{null==l||l(...e),null==o||o(...e)}:"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:p(t,n.ref)}):d.Children.count(n)>1?d.Children.only(null):null});R.displayName="SlotClone";let P=({children:e})=>(0,d.createElement)(d.Fragment,null,e);function S(e){return(0,d.isValidElement)(e)&&e.type===P}let k=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,d.forwardRef)((e,n)=>{let{asChild:r,...o}=e,l=r?C:t;return(0,d.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,d.createElement)(l,(0,s.Z)({},o,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),x="dismissableLayer.update",O=(0,d.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),D=(0,d.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:a,onDismiss:i,...c}=e,f=(0,d.useContext)(O),[p,h]=(0,d.useState)(null),[,g]=(0,d.useState)({}),E=m(t,e=>h(e)),b=Array.from(f.layers),[w]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),C=b.indexOf(w),R=p?b.indexOf(p):-1,P=f.layersWithOutsidePointerEventsDisabled.size>0,S=R>=C,D=function(e){let t=y(e),n=(0,d.useRef)(!1),r=(0,d.useRef)(()=>{});return(0,d.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function o(){A("dismissableLayer.pointerDownOutside",t,n,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=o,document.addEventListener("click",r.current,{once:!0})):o()}n.current=!1},o=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,n=[...f.branches].some(e=>e.contains(t));!S||n||(null==l||l(e),null==a||a(e),e.defaultPrevented||null==i||i())}),M=function(e){let t=y(e),n=(0,d.useRef)(!1);return(0,d.useEffect)(()=>{let e=e=>{e.target&&!n.current&&A("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;[...f.branches].some(e=>e.contains(t))||(null==u||u(e),null==a||a(e),e.defaultPrevented||null==i||i())});return!function(e){let t=y(e);(0,d.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{R!==f.layers.size-1||(null==o||o(e),!e.defaultPrevented&&i&&(e.preventDefault(),i()))}),(0,d.useEffect)(()=>{if(p)return n&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),N(),()=>{n&&1===f.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[p,n,f]),(0,d.useEffect)(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),N())},[p,f]),(0,d.useEffect)(()=>{let e=()=>g({});return document.addEventListener(x,e),()=>document.removeEventListener(x,e)},[]),(0,d.createElement)(k.div,(0,s.Z)({},c,{ref:E,style:{pointerEvents:P?S?"auto":"none":void 0,...e.style},onFocusCapture:v(e.onFocusCapture,M.onFocusCapture),onBlurCapture:v(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:v(e.onPointerDownCapture,D.onPointerDownCapture)}))});function N(){let e=new CustomEvent(x);document.dispatchEvent(e)}function A(e,t,n,{discrete:r}){let o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&o.addEventListener(e,t,{once:!0}),r)?o&&(0,w.flushSync)(()=>o.dispatchEvent(l)):o.dispatchEvent(l)}let M="focusScope.autoFocusOnMount",L="focusScope.autoFocusOnUnmount",I={bubbles:!1,cancelable:!0},F=(0,d.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...u}=e,[a,i]=(0,d.useState)(null),c=y(o),f=y(l),v=(0,d.useRef)(null),p=m(t,e=>i(e)),h=(0,d.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,d.useEffect)(()=>{if(r){function e(e){if(h.paused||!a)return;let t=e.target;a.contains(t)?v.current=t:j(v.current,{select:!0})}function t(e){h.paused||!a||a.contains(e.relatedTarget)||j(v.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,a,h.paused]),(0,d.useEffect)(()=>{if(a){Z.add(h);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(M,I);a.addEventListener(M,c),a.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(j(r,{select:t}),document.activeElement!==n)return}(_(a).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&j(a))}return()=>{a.removeEventListener(M,c),setTimeout(()=>{let t=new CustomEvent(L,I);a.addEventListener(L,f),a.dispatchEvent(t),t.defaultPrevented||j(null!=e?e:document.body,{select:!0}),a.removeEventListener(L,f),Z.remove(h)},0)}}},[a,c,f,h]);let g=(0,d.useCallback)(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,l]=function(e){let t=_(e);return[T(t,e),T(t.reverse(),e)]}(t);r&&l?e.shiftKey||o!==l?e.shiftKey&&o===r&&(e.preventDefault(),n&&j(l,{select:!0})):(e.preventDefault(),n&&j(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,d.createElement)(k.div,(0,s.Z)({tabIndex:-1},u,{ref:p,onKeyDown:g}))});function _(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function T(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function j(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let Z=(o=[],{add(e){let t=o[0];e!==t&&(null==t||t.pause()),(o=$(o,e)).unshift(e)},remove(e){var t;null===(t=(o=$(o,e))[0])||void 0===t||t.resume()}});function $(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}let W=(0,d.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...o}=e;return r?w.createPortal((0,d.createElement)(k.div,(0,s.Z)({},o,{ref:t})),r):null}),K=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,o]=(0,d.useState)(),l=(0,d.useRef)({}),u=(0,d.useRef)(e),a=(0,d.useRef)("none"),[i,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,d.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,d.useEffect)(()=>{let e=U(l.current);a.current="mounted"===i?e:"none"},[i]),h(()=>{let t=l.current,n=u.current;if(n!==e){let r=a.current,o=U(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),u.current=e}},[e,c]),h(()=>{if(r){let e=e=>{let t=U(l.current).includes(e.animationName);e.target===r&&t&&(0,w.flushSync)(()=>c("ANIMATION_END"))},t=e=>{e.target===r&&(a.current=U(l.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:(0,d.useCallback)(e=>{e&&(l.current=getComputedStyle(e)),o(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):d.Children.only(n),l=m(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,d.cloneElement)(o,{ref:l}):null};function U(e){return(null==e?void 0:e.animationName)||"none"}K.displayName="Presence";let z=0;function B(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var V=n(5853),Y=n(85770),q=n(17325),X=(0,n(31412)._)(),H=function(){},G=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:H,onWheelCapture:H,onTouchMoveCapture:H}),o=r[0],l=r[1],u=e.forwardProps,a=e.children,i=e.className,c=e.removeScrollBar,s=e.enabled,f=e.shards,v=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,E=(0,V._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=(0,q.q)([n,t]),y=(0,V.pi)((0,V.pi)({},E),o);return d.createElement(d.Fragment,null,s&&d.createElement(v,{sideCar:X,removeScrollBar:c,shards:f,noIsolation:p,inert:m,setCallbacks:l,allowPinchZoom:!!h,lockRef:n}),u?d.cloneElement(d.Children.only(a),(0,V.pi)((0,V.pi)({},y),{ref:b})):d.createElement(void 0===g?"div":g,(0,V.pi)({},y,{className:i,ref:b}),a))});G.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},G.classNames={fullWidth:Y.zi,zeroRight:Y.pF};var J=n(49085),Q=n(5517),ee=n(18704),et=!1;if("undefined"!=typeof window)try{var en=Object.defineProperty({},"passive",{get:function(){return et=!0,!0}});window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch(e){et=!1}var er=!!et&&{passive:!1},eo=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},el=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},eu=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),ea(e,n)){var r=ei(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ea=function(e,t){return"v"===e?eo(t):el(t)},ei=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ec=function(e,t,n,r,o){var l,u=(l=window.getComputedStyle(t).direction,"h"===e&&"rtl"===l?-1:1),a=u*r,i=n.target,c=t.contains(i),s=!1,d=a>0,f=0,v=0;do{var p=ei(e,i),m=p[0],h=p[1]-p[2]-u*m;(m||h)&&ea(e,i)&&(f+=h,v+=m),i=i.parentNode}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return d&&(o&&0===f||!o&&a>f)?s=!0:!d&&(o&&0===v||!o&&-a>v)&&(s=!0),s},es=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ed=function(e){return[e.deltaX,e.deltaY]},ef=function(e){return e&&"current"in e?e.current:e},ev=0,ep=[],em=(0,J.L)(X,function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(ev++)[0],l=d.useState(function(){return(0,ee.Ws)()})[0],u=d.useRef(e);d.useEffect(function(){u.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,V.ev)([e.lockRef.current],(e.shards||[]).map(ef),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!u.current.allowPinchZoom;var o,l=es(e),a=n.current,i="deltaX"in e?e.deltaX:a[0]-l[0],c="deltaY"in e?e.deltaY:a[1]-l[1],s=e.target,d=Math.abs(i)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=eu(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=eu(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(i||c)&&(r.current=o),!o)return!0;var v=r.current||o;return ec(v,t,e,"h"===v?i:c,!0)},[]),i=d.useCallback(function(e){if(ep.length&&ep[ep.length-1]===l){var n="deltaY"in e?ed(e):es(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.preventDefault();return}if(!r){var o=(u.current.shards||[]).map(ef).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?a(e,o[0]):!u.current.noIsolation)&&e.preventDefault()}}},[]),c=d.useCallback(function(e,n,r,o){var l={name:e,delta:n,target:r,should:o};t.current.push(l),setTimeout(function(){t.current=t.current.filter(function(e){return e!==l})},1)},[]),s=d.useCallback(function(e){n.current=es(e),r.current=void 0},[]),f=d.useCallback(function(t){c(t.type,ed(t),t.target,a(t,e.lockRef.current))},[]),v=d.useCallback(function(t){c(t.type,es(t),t.target,a(t,e.lockRef.current))},[]);d.useEffect(function(){return ep.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",i,er),document.addEventListener("touchmove",i,er),document.addEventListener("touchstart",s,er),function(){ep=ep.filter(function(e){return e!==l}),document.removeEventListener("wheel",i,er),document.removeEventListener("touchmove",i,er),document.removeEventListener("touchstart",s,er)}},[]);var p=e.removeScrollBar,m=e.inert;return d.createElement(d.Fragment,null,m?d.createElement(l,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?d.createElement(Q.jp,{gapMode:"margin"}):null)}),eh=d.forwardRef(function(e,t){return d.createElement(G,(0,V.pi)({},e,{ref:t,sideCar:em}))});eh.classNames=G.classNames;var eg=n(5478);let eE="Dialog",[eb,ey]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,d.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,d.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=(0,d.createContext)(r),l=n.length;function u(t){let{scope:n,children:r,...u}=t,a=(null==n?void 0:n[e][l])||o,i=(0,d.useMemo)(()=>u,Object.values(u));return(0,d.createElement)(a.Provider,{value:i},r)}return n=[...n,r],u.displayName=t+"Provider",[u,function(n,u){let a=(null==u?void 0:u[e][l])||o,i=(0,d.useContext)(a);if(i)return i;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return(0,d.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(eE),[ew,eC]=eb(eE),eR="DialogPortal",[eP,eS]=eb(eR,{forceMount:void 0}),ek="DialogOverlay",ex=(0,d.forwardRef)((e,t)=>{let n=eS(ek,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=eC(ek,e.__scopeDialog);return l.modal?(0,d.createElement)(K,{present:r||l.open},(0,d.createElement)(eO,(0,s.Z)({},o,{ref:t}))):null}),eO=(0,d.forwardRef)((e,t)=>{let{__scopeDialog:n,...r}=e,o=eC(ek,n);return(0,d.createElement)(eh,{as:C,allowPinchZoom:!0,shards:[o.contentRef]},(0,d.createElement)(k.div,(0,s.Z)({"data-state":eI(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),eD="DialogContent",eN=(0,d.forwardRef)((e,t)=>{let n=eS(eD,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=eC(eD,e.__scopeDialog);return(0,d.createElement)(K,{present:r||l.open},l.modal?(0,d.createElement)(eA,(0,s.Z)({},o,{ref:t})):(0,d.createElement)(eM,(0,s.Z)({},o,{ref:t})))}),eA=(0,d.forwardRef)((e,t)=>{let n=eC(eD,e.__scopeDialog),r=(0,d.useRef)(null),o=m(t,n.contentRef,r);return(0,d.useEffect)(()=>{let e=r.current;if(e)return(0,eg.Ry)(e)},[]),(0,d.createElement)(eL,(0,s.Z)({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:v(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:v(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:v(e.onFocusOutside,e=>e.preventDefault())}))}),eM=(0,d.forwardRef)((e,t)=>{let n=eC(eD,e.__scopeDialog),r=(0,d.useRef)(!1);return(0,d.createElement)(eL,(0,s.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,l;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current||null===(l=n.triggerRef.current)||void 0===l||l.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var o,l;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);let u=t.target;(null===(l=n.triggerRef.current)||void 0===l?void 0:l.contains(u))&&t.preventDefault()}}))}),eL=(0,d.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:l,...u}=e,a=eC(eD,n),i=m(t,(0,d.useRef)(null));return(0,d.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:B()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:B()),z++,()=>{1===z&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),z--}},[]),(0,d.createElement)(d.Fragment,null,(0,d.createElement)(F,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:l},(0,d.createElement)(D,(0,s.Z)({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":eI(a.open)},u,{ref:i,onDismiss:()=>a.onOpenChange(!1)}))),!1)});function eI(e){return e?"open":"closed"}let[eF,e_]=function(e,t){let n=(0,d.createContext)(t);function r(e){let{children:t,...r}=e,o=(0,d.useMemo)(()=>r,Object.values(r));return(0,d.createElement)(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){let o=(0,d.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:eD,titleName:"DialogTitle",docsSlug:"dialog"}),eT=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:l,modal:u=!0}=e,a=(0,d.useRef)(null),i=(0,d.useRef)(null),[c=!1,s]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=function({defaultProp:e,onChange:t}){let n=(0,d.useState)(e),[r]=n,o=(0,d.useRef)(r),l=y(t);return(0,d.useEffect)(()=>{o.current!==r&&(l(r),o.current=r)},[r,o,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:r,a=y(n);return[u,(0,d.useCallback)(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&a(n)}else o(t)},[l,e,o,a])]}({prop:r,defaultProp:o,onChange:l});return(0,d.createElement)(ew,{scope:t,triggerRef:a,contentRef:i,contentId:b(),titleId:b(),descriptionId:b(),open:c,onOpenChange:s,onOpenToggle:(0,d.useCallback)(()=>s(e=>!e),[s]),modal:u},n)},ej=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,l=eC(eR,t);return(0,d.createElement)(eP,{scope:t,forceMount:n},d.Children.map(r,e=>(0,d.createElement)(K,{present:n||l.open},(0,d.createElement)(W,{asChild:!0,container:o},e))))};var eZ='[cmdk-group=""]',e$='[cmdk-group-items=""]',eW='[cmdk-item=""]',eK=`${eW}:not([aria-disabled="true"])`,eU="cmdk-item-select",ez="data-value",eB=(e,t)=>(function e(t,n,r,o,c,s,d){if(s===n.length)return c===t.length?1:.99;var f=`${c},${s}`;if(void 0!==d[f])return d[f];for(var v,p,m,h,g=o.charAt(s),E=r.indexOf(g,c),b=0;E>=0;)(v=e(t,n,r,o,E+1,s+1,d))>b&&(E===c?v*=1:l.test(t.charAt(E-1))?(v*=.8,(m=t.slice(c,E-1).match(u))&&c>0&&(v*=Math.pow(.999,m.length))):a.test(t.charAt(E-1))?(v*=.9,(h=t.slice(c,E-1).match(i))&&c>0&&(v*=Math.pow(.999,h.length))):(v*=.17,c>0&&(v*=Math.pow(.999,E-c))),t.charAt(E)!==n.charAt(s)&&(v*=.9999)),(v<.1&&r.charAt(E-1)===o.charAt(s+1)||o.charAt(s+1)===o.charAt(s)&&r.charAt(E-1)!==o.charAt(s))&&.1*(p=e(t,n,r,o,E+1,s+2,d))>v&&(v=.1*p),v>b&&(b=v),E=r.indexOf(g,E+1);return d[f]=b,b})(e,t,c(e),c(t),0,0,{}),eV=d.createContext(void 0),eY=()=>d.useContext(eV),eq=d.createContext(void 0),eX=()=>d.useContext(eq),eH=d.createContext(void 0),eG=d.forwardRef((e,t)=>{let n=d.useRef(null),r=e3(()=>{var t,n,r;return{search:"",value:null!=(r=null!=(n=e.value)?n:null==(t=e.defaultValue)?void 0:t.toLowerCase())?r:"",filtered:{count:0,items:new Map,groups:new Set}}}),o=e3(()=>new Set),l=e3(()=>new Map),u=e3(()=>new Map),a=e3(()=>new Set),i=e7(e),{label:c,children:s,value:f,onValueChange:v,filter:p,shouldFilter:m,vimBindings:h=!0,...g}=e,E=d.useId(),b=d.useId(),y=d.useId(),w=tt();e5(()=>{if(void 0!==f){let e=f.trim().toLowerCase();r.current.value=e,w(6,O),C.emit()}},[f]);let C=d.useMemo(()=>({subscribe:e=>(a.current.add(e),()=>a.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var o,l,u;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)x(),S(),w(1,k);else if("value"===e){if((null==(o=i.current)?void 0:o.value)!==void 0){null==(u=(l=i.current).onValueChange)||u.call(l,null!=t?t:"");return}n||w(5,O)}C.emit()}},emit:()=>{a.current.forEach(e=>e())}}),[]),R=d.useMemo(()=>({value:(e,t)=>{t!==u.current.get(e)&&(u.current.set(e,t),r.current.filtered.items.set(e,P(t)),w(2,()=>{S(),C.emit()}))},item:(e,t)=>(o.current.add(e),t&&(l.current.has(t)?l.current.get(t).add(e):l.current.set(t,new Set([e]))),w(3,()=>{x(),S(),r.current.value||k(),C.emit()}),()=>{u.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e);let t=D();w(4,()=>{x(),(null==t?void 0:t.getAttribute("id"))===e&&k(),C.emit()})}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{u.current.delete(e),l.current.delete(e)}),filter:()=>i.current.shouldFilter,label:c||e["aria-label"],commandRef:n,listId:E,inputId:y,labelId:b}),[]);function P(e){var t,n;let o=null!=(n=null==(t=i.current)?void 0:t.filter)?n:eB;return e?o(e,r.current.search):0}function S(){if(!n.current||!r.current.search||!1===i.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(n=>{let r=l.current.get(n),o=0;r.forEach(t=>{o=Math.max(e.get(t),o)}),t.push([n,o])});let o=n.current.querySelector('[cmdk-list-sizer=""]');N().sort((t,n)=>{var r,o;let l=t.getAttribute(ez),u=n.getAttribute(ez);return(null!=(r=e.get(u))?r:0)-(null!=(o=e.get(l))?o:0)}).forEach(e=>{let t=e.closest(e$);t?t.appendChild(e.parentElement===t?e:e.closest(`${e$} > *`)):o.appendChild(e.parentElement===o?e:e.closest(`${e$} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${eZ}[${ez}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function k(){let e=N().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(ez);C.setState("value",t||void 0)}function x(){if(!r.current.search||!1===i.current.shouldFilter){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=P(u.current.get(t));r.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of l.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=e}function O(){var e,t,n;let r=D();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(eZ))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function D(){var e;return null==(e=n.current)?void 0:e.querySelector(`${eW}[aria-selected="true"]`)}function N(){return Array.from(n.current.querySelectorAll(eK))}function A(e){let t=N()[e];t&&C.setState("value",t.getAttribute(ez))}function M(e){var t;let n=D(),r=N(),o=r.findIndex(e=>e===n),l=r[o+e];null!=(t=i.current)&&t.loop&&(l=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),l&&C.setState("value",l.getAttribute(ez))}function L(e){let t=D(),n=null==t?void 0:t.closest(eZ),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,eZ):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,eZ))?void 0:n.querySelector(eK);r?C.setState("value",r.getAttribute(ez)):M(e)}let I=()=>A(N().length-1),F=e=>{e.preventDefault(),e.metaKey?I():e.altKey?L(1):M(1)},_=e=>{e.preventDefault(),e.metaKey?A(0):e.altKey?L(-1):M(-1)};return d.createElement("div",{ref:e6([n,t]),...g,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=g.onKeyDown)||t.call(g,e),!e.defaultPrevented)switch(e.key){case"n":case"j":h&&e.ctrlKey&&F(e);break;case"ArrowDown":F(e);break;case"p":case"k":h&&e.ctrlKey&&_(e);break;case"ArrowUp":_(e);break;case"Home":e.preventDefault(),A(0);break;case"End":e.preventDefault(),I();break;case"Enter":if(!e.nativeEvent.isComposing){e.preventDefault();let t=D();if(t){let e=new Event(eU);t.dispatchEvent(e)}}}}},d.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:tn},c),d.createElement(eq.Provider,{value:C},d.createElement(eV.Provider,{value:R},s)))}),eJ=d.forwardRef((e,t)=>{var n,r;let o=d.useId(),l=d.useRef(null),u=d.useContext(eH),a=eY(),i=e7(e),c=null!=(r=null==(n=i.current)?void 0:n.forceMount)?r:null==u?void 0:u.forceMount;e5(()=>a.item(o,null==u?void 0:u.id),[]);let s=te(o,l,[e.value,e.children,l]),f=eX(),v=e4(e=>e.value&&e.value===s.current),p=e4(e=>!!c||!1===a.filter()||!e.search||e.filtered.items.get(o)>0);function m(){var e,t;h(),null==(t=(e=i.current).onSelect)||t.call(e,s.current)}function h(){f.setState("value",s.current,!0)}if(d.useEffect(()=>{let t=l.current;if(!(!t||e.disabled))return t.addEventListener(eU,m),()=>t.removeEventListener(eU,m)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:g,value:E,onSelect:b,forceMount:y,...w}=e;return d.createElement("div",{ref:e6([l,t]),...w,id:o,"cmdk-item":"",role:"option","aria-disabled":g||void 0,"aria-selected":v||void 0,"data-disabled":g||void 0,"data-selected":v||void 0,onPointerMove:g?void 0:h,onClick:g?void 0:m},e.children)}),eQ=d.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...l}=e,u=d.useId(),a=d.useRef(null),i=d.useRef(null),c=d.useId(),s=eY(),f=e4(e=>!!o||!1===s.filter()||!e.search||e.filtered.groups.has(u));e5(()=>s.group(u),[]),te(u,a,[e.value,e.heading,i]);let v=d.useMemo(()=>({id:u,forceMount:o}),[o]),p=d.createElement(eH.Provider,{value:v},r);return d.createElement("div",{ref:e6([a,t]),...l,"cmdk-group":"",role:"presentation",hidden:!f||void 0},n&&d.createElement("div",{ref:i,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),d.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},p))}),e0=d.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=d.useRef(null),l=e4(e=>!e.search);return n||l?d.createElement("div",{ref:e6([o,t]),...r,"cmdk-separator":"",role:"separator"}):null}),e1=d.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,l=eX(),u=e4(e=>e.search),a=e4(e=>e.value),i=eY(),c=d.useMemo(()=>{var e;let t=null==(e=i.commandRef.current)?void 0:e.querySelector(`${eW}[${ez}="${a}"]`);return null==t?void 0:t.getAttribute("id")},[a,i.commandRef]);return d.useEffect(()=>{null!=e.value&&l.setState("search",e.value)},[e.value]),d.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":i.listId,"aria-labelledby":i.labelId,"aria-activedescendant":c,id:i.inputId,type:"text",value:o?e.value:u,onChange:e=>{o||l.setState("search",e.target.value),null==n||n(e.target.value)}})}),e9=d.forwardRef((e,t)=>{let{children:n,...r}=e,o=d.useRef(null),l=d.useRef(null),u=eY();return d.useEffect(()=>{if(l.current&&o.current){let e=l.current,t=o.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),d.createElement("div",{ref:e6([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:u.listId,"aria-labelledby":u.inputId},d.createElement("div",{ref:l,"cmdk-list-sizer":""},n))}),e2=d.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:l,container:u,...a}=e;return d.createElement(eT,{open:n,onOpenChange:r},d.createElement(ej,{container:u},d.createElement(ex,{"cmdk-overlay":"",className:o}),d.createElement(eN,{"aria-label":e.label,"cmdk-dialog":"",className:l},d.createElement(eG,{ref:t,...a}))))}),e8=Object.assign(eG,{List:e9,Item:eJ,Input:e1,Group:eQ,Separator:e0,Dialog:e2,Empty:d.forwardRef((e,t)=>{let n=d.useRef(!0),r=e4(e=>0===e.filtered.count);return d.useEffect(()=>{n.current=!1},[]),n.current||!r?null:d.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Loading:d.forwardRef((e,t)=>{let{progress:n,children:r,...o}=e;return d.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},d.createElement("div",{"aria-hidden":!0},r))})});function e7(e){let t=d.useRef(e);return e5(()=>{t.current=e}),t}var e5="undefined"==typeof window?d.useEffect:d.useLayoutEffect;function e3(e){let t=d.useRef();return void 0===t.current&&(t.current=e()),t}function e6(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function e4(e){let t=eX(),n=()=>e(t.snapshot());return d.useSyncExternalStore(t.subscribe,n,n)}function te(e,t,n){let r=d.useRef(),o=eY();return e5(()=>{var l;let u=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim().toLowerCase();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim().toLowerCase():r.current}})();o.value(e,u),null==(l=t.current)||l.setAttribute(ez,u),r.current=u}),r}var tt=()=>{let[e,t]=d.useState(),n=e3(()=>new Map);return e5(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}},tn={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}}}]);
2
+ //# sourceMappingURL=9877-378934ae38c6760c.js.map