mailcast 0.0.0-stage → 0.1.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 (1342) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/app-path-routes-manifest.json +63 -0
  3. package/.next/build/chunks/[root-of-the-server]__05i36w1t4lzaf._.js +500 -0
  4. package/.next/build/chunks/[root-of-the-server]__05i36w1t4lzaf._.js.map +11 -0
  5. package/.next/build/chunks/[root-of-the-server]__1kki86fknkq7y._.js +189 -0
  6. package/.next/build/chunks/[root-of-the-server]__1kki86fknkq7y._.js.map +8 -0
  7. package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_1gfkiq9iz8yb8._.js +13 -0
  8. package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_1gfkiq9iz8yb8._.js.map +5 -0
  9. package/.next/build/chunks/[turbopack]_runtime.js +1054 -0
  10. package/.next/build/chunks/[turbopack]_runtime.js.map +11 -0
  11. package/.next/build/chunks/node_modules__pnpm_1e0eoiefxqbi6._.js +7265 -0
  12. package/.next/build/chunks/node_modules__pnpm_1e0eoiefxqbi6._.js.map +47 -0
  13. package/.next/build/chunks/pool_entry-[turbopack-node]_transforms_postcss_ts_0tp-k2vy8nj6i._.js +6 -0
  14. package/.next/build/chunks/pool_entry-[turbopack-node]_transforms_postcss_ts_0tp-k2vy8nj6i._.js.map +5 -0
  15. package/.next/build/package.json +1 -0
  16. package/.next/build-manifest.json +223 -0
  17. package/.next/diagnostics/build-diagnostics.json +6 -0
  18. package/.next/diagnostics/framework.json +1 -0
  19. package/.next/diagnostics/route-bundle-stats.json +305 -0
  20. package/.next/export-marker.json +6 -0
  21. package/.next/fallback-build-manifest.json +15 -0
  22. package/.next/images-manifest.json +68 -0
  23. package/.next/next-minimal-server.js.nft.json +1 -0
  24. package/.next/next-server.js.nft.json +1 -0
  25. package/.next/package.json +1 -0
  26. package/.next/prerender-manifest.json +209 -0
  27. package/.next/required-server-files.js +370 -0
  28. package/.next/required-server-files.json +370 -0
  29. package/.next/routes-manifest.json +456 -0
  30. package/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
  31. package/.next/server/app/_global-error/page/build-manifest.json +22 -0
  32. package/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
  33. package/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
  34. package/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
  35. package/.next/server/app/_global-error/page.js +11 -0
  36. package/.next/server/app/_global-error/page.js.map +5 -0
  37. package/.next/server/app/_global-error/page.js.nft.json +1 -0
  38. package/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
  39. package/.next/server/app/_global-error.html +1 -0
  40. package/.next/server/app/_global-error.meta +30 -0
  41. package/.next/server/app/_global-error.rsc +18 -0
  42. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +23 -0
  43. package/.next/server/app/_global-error.segments/_full.segment.rsc +18 -0
  44. package/.next/server/app/_global-error.segments/_tree.segment.rsc +2 -0
  45. package/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
  46. package/.next/server/app/_not-found/page/build-manifest.json +22 -0
  47. package/.next/server/app/_not-found/page/next-font-manifest.json +6 -0
  48. package/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
  49. package/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
  50. package/.next/server/app/_not-found/page.js +13 -0
  51. package/.next/server/app/_not-found/page.js.map +5 -0
  52. package/.next/server/app/_not-found/page.js.nft.json +1 -0
  53. package/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
  54. package/.next/server/app/_not-found.html +1 -0
  55. package/.next/server/app/_not-found.meta +35 -0
  56. package/.next/server/app/_not-found.rsc +25 -0
  57. package/.next/server/app/_not-found.segments/_full.segment.rsc +25 -0
  58. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +31 -0
  59. package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -0
  60. package/.next/server/app/api/auth/login/route/app-paths-manifest.json +3 -0
  61. package/.next/server/app/api/auth/login/route/build-manifest.json +12 -0
  62. package/.next/server/app/api/auth/login/route/server-reference-manifest.json +4 -0
  63. package/.next/server/app/api/auth/login/route.js +10 -0
  64. package/.next/server/app/api/auth/login/route.js.map +5 -0
  65. package/.next/server/app/api/auth/login/route.js.nft.json +1 -0
  66. package/.next/server/app/api/auth/login/route_client-reference-manifest.js +3 -0
  67. package/.next/server/app/api/auth/logout/route/app-paths-manifest.json +3 -0
  68. package/.next/server/app/api/auth/logout/route/build-manifest.json +12 -0
  69. package/.next/server/app/api/auth/logout/route/server-reference-manifest.json +4 -0
  70. package/.next/server/app/api/auth/logout/route.js +10 -0
  71. package/.next/server/app/api/auth/logout/route.js.map +5 -0
  72. package/.next/server/app/api/auth/logout/route.js.nft.json +1 -0
  73. package/.next/server/app/api/auth/logout/route_client-reference-manifest.js +3 -0
  74. package/.next/server/app/api/auth/session/route/app-paths-manifest.json +3 -0
  75. package/.next/server/app/api/auth/session/route/build-manifest.json +12 -0
  76. package/.next/server/app/api/auth/session/route/server-reference-manifest.json +4 -0
  77. package/.next/server/app/api/auth/session/route.js +10 -0
  78. package/.next/server/app/api/auth/session/route.js.map +5 -0
  79. package/.next/server/app/api/auth/session/route.js.nft.json +1 -0
  80. package/.next/server/app/api/auth/session/route_client-reference-manifest.js +3 -0
  81. package/.next/server/app/api/auth/setup/route/app-paths-manifest.json +3 -0
  82. package/.next/server/app/api/auth/setup/route/build-manifest.json +12 -0
  83. package/.next/server/app/api/auth/setup/route/server-reference-manifest.json +4 -0
  84. package/.next/server/app/api/auth/setup/route.js +10 -0
  85. package/.next/server/app/api/auth/setup/route.js.map +5 -0
  86. package/.next/server/app/api/auth/setup/route.js.nft.json +1 -0
  87. package/.next/server/app/api/auth/setup/route_client-reference-manifest.js +3 -0
  88. package/.next/server/app/api/campaigns/[id]/publish/route/app-paths-manifest.json +3 -0
  89. package/.next/server/app/api/campaigns/[id]/publish/route/build-manifest.json +12 -0
  90. package/.next/server/app/api/campaigns/[id]/publish/route/server-reference-manifest.json +4 -0
  91. package/.next/server/app/api/campaigns/[id]/publish/route.js +9 -0
  92. package/.next/server/app/api/campaigns/[id]/publish/route.js.map +5 -0
  93. package/.next/server/app/api/campaigns/[id]/publish/route.js.nft.json +1 -0
  94. package/.next/server/app/api/campaigns/[id]/publish/route_client-reference-manifest.js +3 -0
  95. package/.next/server/app/api/campaigns/[id]/route/app-paths-manifest.json +3 -0
  96. package/.next/server/app/api/campaigns/[id]/route/build-manifest.json +12 -0
  97. package/.next/server/app/api/campaigns/[id]/route/server-reference-manifest.json +4 -0
  98. package/.next/server/app/api/campaigns/[id]/route.js +8 -0
  99. package/.next/server/app/api/campaigns/[id]/route.js.map +5 -0
  100. package/.next/server/app/api/campaigns/[id]/route.js.nft.json +1 -0
  101. package/.next/server/app/api/campaigns/[id]/route_client-reference-manifest.js +3 -0
  102. package/.next/server/app/api/campaigns/[id]/send/route/app-paths-manifest.json +3 -0
  103. package/.next/server/app/api/campaigns/[id]/send/route/build-manifest.json +12 -0
  104. package/.next/server/app/api/campaigns/[id]/send/route/server-reference-manifest.json +4 -0
  105. package/.next/server/app/api/campaigns/[id]/send/route.js +13 -0
  106. package/.next/server/app/api/campaigns/[id]/send/route.js.map +5 -0
  107. package/.next/server/app/api/campaigns/[id]/send/route.js.nft.json +1 -0
  108. package/.next/server/app/api/campaigns/[id]/send/route_client-reference-manifest.js +3 -0
  109. package/.next/server/app/api/campaigns/[id]/stats/route/app-paths-manifest.json +3 -0
  110. package/.next/server/app/api/campaigns/[id]/stats/route/build-manifest.json +12 -0
  111. package/.next/server/app/api/campaigns/[id]/stats/route/server-reference-manifest.json +4 -0
  112. package/.next/server/app/api/campaigns/[id]/stats/route.js +8 -0
  113. package/.next/server/app/api/campaigns/[id]/stats/route.js.map +5 -0
  114. package/.next/server/app/api/campaigns/[id]/stats/route.js.nft.json +1 -0
  115. package/.next/server/app/api/campaigns/[id]/stats/route_client-reference-manifest.js +3 -0
  116. package/.next/server/app/api/campaigns/all/route/app-paths-manifest.json +3 -0
  117. package/.next/server/app/api/campaigns/all/route/build-manifest.json +12 -0
  118. package/.next/server/app/api/campaigns/all/route/server-reference-manifest.json +4 -0
  119. package/.next/server/app/api/campaigns/all/route.js +8 -0
  120. package/.next/server/app/api/campaigns/all/route.js.map +5 -0
  121. package/.next/server/app/api/campaigns/all/route.js.nft.json +1 -0
  122. package/.next/server/app/api/campaigns/all/route_client-reference-manifest.js +3 -0
  123. package/.next/server/app/api/campaigns/route/app-paths-manifest.json +3 -0
  124. package/.next/server/app/api/campaigns/route/build-manifest.json +12 -0
  125. package/.next/server/app/api/campaigns/route/server-reference-manifest.json +4 -0
  126. package/.next/server/app/api/campaigns/route.js +9 -0
  127. package/.next/server/app/api/campaigns/route.js.map +5 -0
  128. package/.next/server/app/api/campaigns/route.js.nft.json +1 -0
  129. package/.next/server/app/api/campaigns/route_client-reference-manifest.js +3 -0
  130. package/.next/server/app/api/contacts/[id]/route/app-paths-manifest.json +3 -0
  131. package/.next/server/app/api/contacts/[id]/route/build-manifest.json +12 -0
  132. package/.next/server/app/api/contacts/[id]/route/server-reference-manifest.json +4 -0
  133. package/.next/server/app/api/contacts/[id]/route.js +8 -0
  134. package/.next/server/app/api/contacts/[id]/route.js.map +5 -0
  135. package/.next/server/app/api/contacts/[id]/route.js.nft.json +1 -0
  136. package/.next/server/app/api/contacts/[id]/route_client-reference-manifest.js +3 -0
  137. package/.next/server/app/api/contacts/all/route/app-paths-manifest.json +3 -0
  138. package/.next/server/app/api/contacts/all/route/build-manifest.json +12 -0
  139. package/.next/server/app/api/contacts/all/route/server-reference-manifest.json +4 -0
  140. package/.next/server/app/api/contacts/all/route.js +8 -0
  141. package/.next/server/app/api/contacts/all/route.js.map +5 -0
  142. package/.next/server/app/api/contacts/all/route.js.nft.json +1 -0
  143. package/.next/server/app/api/contacts/all/route_client-reference-manifest.js +3 -0
  144. package/.next/server/app/api/contacts/import/route/app-paths-manifest.json +3 -0
  145. package/.next/server/app/api/contacts/import/route/build-manifest.json +12 -0
  146. package/.next/server/app/api/contacts/import/route/server-reference-manifest.json +4 -0
  147. package/.next/server/app/api/contacts/import/route.js +8 -0
  148. package/.next/server/app/api/contacts/import/route.js.map +5 -0
  149. package/.next/server/app/api/contacts/import/route.js.nft.json +1 -0
  150. package/.next/server/app/api/contacts/import/route_client-reference-manifest.js +3 -0
  151. package/.next/server/app/api/contacts/route/app-paths-manifest.json +3 -0
  152. package/.next/server/app/api/contacts/route/build-manifest.json +12 -0
  153. package/.next/server/app/api/contacts/route/server-reference-manifest.json +4 -0
  154. package/.next/server/app/api/contacts/route.js +8 -0
  155. package/.next/server/app/api/contacts/route.js.map +5 -0
  156. package/.next/server/app/api/contacts/route.js.nft.json +1 -0
  157. package/.next/server/app/api/contacts/route_client-reference-manifest.js +3 -0
  158. package/.next/server/app/api/cron/route/app-paths-manifest.json +3 -0
  159. package/.next/server/app/api/cron/route/build-manifest.json +12 -0
  160. package/.next/server/app/api/cron/route/server-reference-manifest.json +4 -0
  161. package/.next/server/app/api/cron/route.js +15 -0
  162. package/.next/server/app/api/cron/route.js.map +5 -0
  163. package/.next/server/app/api/cron/route.js.nft.json +1 -0
  164. package/.next/server/app/api/cron/route_client-reference-manifest.js +3 -0
  165. package/.next/server/app/api/forms/[id]/route/app-paths-manifest.json +3 -0
  166. package/.next/server/app/api/forms/[id]/route/build-manifest.json +12 -0
  167. package/.next/server/app/api/forms/[id]/route/server-reference-manifest.json +4 -0
  168. package/.next/server/app/api/forms/[id]/route.js +9 -0
  169. package/.next/server/app/api/forms/[id]/route.js.map +5 -0
  170. package/.next/server/app/api/forms/[id]/route.js.nft.json +1 -0
  171. package/.next/server/app/api/forms/[id]/route_client-reference-manifest.js +3 -0
  172. package/.next/server/app/api/forms/[id]/submissions/route/app-paths-manifest.json +3 -0
  173. package/.next/server/app/api/forms/[id]/submissions/route/build-manifest.json +12 -0
  174. package/.next/server/app/api/forms/[id]/submissions/route/server-reference-manifest.json +4 -0
  175. package/.next/server/app/api/forms/[id]/submissions/route.js +8 -0
  176. package/.next/server/app/api/forms/[id]/submissions/route.js.map +5 -0
  177. package/.next/server/app/api/forms/[id]/submissions/route.js.nft.json +1 -0
  178. package/.next/server/app/api/forms/[id]/submissions/route_client-reference-manifest.js +3 -0
  179. package/.next/server/app/api/forms/[id]/submit/route/app-paths-manifest.json +3 -0
  180. package/.next/server/app/api/forms/[id]/submit/route/build-manifest.json +12 -0
  181. package/.next/server/app/api/forms/[id]/submit/route/server-reference-manifest.json +4 -0
  182. package/.next/server/app/api/forms/[id]/submit/route.js +17 -0
  183. package/.next/server/app/api/forms/[id]/submit/route.js.map +5 -0
  184. package/.next/server/app/api/forms/[id]/submit/route.js.nft.json +1 -0
  185. package/.next/server/app/api/forms/[id]/submit/route_client-reference-manifest.js +3 -0
  186. package/.next/server/app/api/forms/route/app-paths-manifest.json +3 -0
  187. package/.next/server/app/api/forms/route/build-manifest.json +12 -0
  188. package/.next/server/app/api/forms/route/server-reference-manifest.json +4 -0
  189. package/.next/server/app/api/forms/route.js +9 -0
  190. package/.next/server/app/api/forms/route.js.map +5 -0
  191. package/.next/server/app/api/forms/route.js.nft.json +1 -0
  192. package/.next/server/app/api/forms/route_client-reference-manifest.js +3 -0
  193. package/.next/server/app/api/forms/templates/[id]/route/app-paths-manifest.json +3 -0
  194. package/.next/server/app/api/forms/templates/[id]/route/build-manifest.json +12 -0
  195. package/.next/server/app/api/forms/templates/[id]/route/server-reference-manifest.json +4 -0
  196. package/.next/server/app/api/forms/templates/[id]/route.js +8 -0
  197. package/.next/server/app/api/forms/templates/[id]/route.js.map +5 -0
  198. package/.next/server/app/api/forms/templates/[id]/route.js.nft.json +1 -0
  199. package/.next/server/app/api/forms/templates/[id]/route_client-reference-manifest.js +3 -0
  200. package/.next/server/app/api/forms/templates/route/app-paths-manifest.json +3 -0
  201. package/.next/server/app/api/forms/templates/route/build-manifest.json +12 -0
  202. package/.next/server/app/api/forms/templates/route/server-reference-manifest.json +4 -0
  203. package/.next/server/app/api/forms/templates/route.js +9 -0
  204. package/.next/server/app/api/forms/templates/route.js.map +5 -0
  205. package/.next/server/app/api/forms/templates/route.js.nft.json +1 -0
  206. package/.next/server/app/api/forms/templates/route_client-reference-manifest.js +3 -0
  207. package/.next/server/app/api/groups/[id]/contacts/route/app-paths-manifest.json +3 -0
  208. package/.next/server/app/api/groups/[id]/contacts/route/build-manifest.json +12 -0
  209. package/.next/server/app/api/groups/[id]/contacts/route/server-reference-manifest.json +4 -0
  210. package/.next/server/app/api/groups/[id]/contacts/route.js +8 -0
  211. package/.next/server/app/api/groups/[id]/contacts/route.js.map +5 -0
  212. package/.next/server/app/api/groups/[id]/contacts/route.js.nft.json +1 -0
  213. package/.next/server/app/api/groups/[id]/contacts/route_client-reference-manifest.js +3 -0
  214. package/.next/server/app/api/groups/[id]/route/app-paths-manifest.json +3 -0
  215. package/.next/server/app/api/groups/[id]/route/build-manifest.json +12 -0
  216. package/.next/server/app/api/groups/[id]/route/server-reference-manifest.json +4 -0
  217. package/.next/server/app/api/groups/[id]/route.js +8 -0
  218. package/.next/server/app/api/groups/[id]/route.js.map +5 -0
  219. package/.next/server/app/api/groups/[id]/route.js.nft.json +1 -0
  220. package/.next/server/app/api/groups/[id]/route_client-reference-manifest.js +3 -0
  221. package/.next/server/app/api/groups/route/app-paths-manifest.json +3 -0
  222. package/.next/server/app/api/groups/route/build-manifest.json +12 -0
  223. package/.next/server/app/api/groups/route/server-reference-manifest.json +4 -0
  224. package/.next/server/app/api/groups/route.js +8 -0
  225. package/.next/server/app/api/groups/route.js.map +5 -0
  226. package/.next/server/app/api/groups/route.js.nft.json +1 -0
  227. package/.next/server/app/api/groups/route_client-reference-manifest.js +3 -0
  228. package/.next/server/app/api/media/[name]/route/app-paths-manifest.json +3 -0
  229. package/.next/server/app/api/media/[name]/route/build-manifest.json +12 -0
  230. package/.next/server/app/api/media/[name]/route/server-reference-manifest.json +4 -0
  231. package/.next/server/app/api/media/[name]/route.js +8 -0
  232. package/.next/server/app/api/media/[name]/route.js.map +5 -0
  233. package/.next/server/app/api/media/[name]/route.js.nft.json +1 -0
  234. package/.next/server/app/api/media/[name]/route_client-reference-manifest.js +3 -0
  235. package/.next/server/app/api/media/route/app-paths-manifest.json +3 -0
  236. package/.next/server/app/api/media/route/build-manifest.json +12 -0
  237. package/.next/server/app/api/media/route/server-reference-manifest.json +4 -0
  238. package/.next/server/app/api/media/route.js +8 -0
  239. package/.next/server/app/api/media/route.js.map +5 -0
  240. package/.next/server/app/api/media/route.js.nft.json +1 -0
  241. package/.next/server/app/api/media/route_client-reference-manifest.js +3 -0
  242. package/.next/server/app/api/public/forms/[id]/route/app-paths-manifest.json +3 -0
  243. package/.next/server/app/api/public/forms/[id]/route/build-manifest.json +12 -0
  244. package/.next/server/app/api/public/forms/[id]/route/server-reference-manifest.json +4 -0
  245. package/.next/server/app/api/public/forms/[id]/route.js +17 -0
  246. package/.next/server/app/api/public/forms/[id]/route.js.map +5 -0
  247. package/.next/server/app/api/public/forms/[id]/route.js.nft.json +1 -0
  248. package/.next/server/app/api/public/forms/[id]/route_client-reference-manifest.js +3 -0
  249. package/.next/server/app/api/public/posts/[slug]/route/app-paths-manifest.json +3 -0
  250. package/.next/server/app/api/public/posts/[slug]/route/build-manifest.json +12 -0
  251. package/.next/server/app/api/public/posts/[slug]/route/server-reference-manifest.json +4 -0
  252. package/.next/server/app/api/public/posts/[slug]/route.js +9 -0
  253. package/.next/server/app/api/public/posts/[slug]/route.js.map +5 -0
  254. package/.next/server/app/api/public/posts/[slug]/route.js.nft.json +1 -0
  255. package/.next/server/app/api/public/posts/[slug]/route_client-reference-manifest.js +3 -0
  256. package/.next/server/app/api/public/posts/route/app-paths-manifest.json +3 -0
  257. package/.next/server/app/api/public/posts/route/build-manifest.json +12 -0
  258. package/.next/server/app/api/public/posts/route/server-reference-manifest.json +4 -0
  259. package/.next/server/app/api/public/posts/route.js +8 -0
  260. package/.next/server/app/api/public/posts/route.js.map +5 -0
  261. package/.next/server/app/api/public/posts/route.js.nft.json +1 -0
  262. package/.next/server/app/api/public/posts/route_client-reference-manifest.js +3 -0
  263. package/.next/server/app/api/public/unsubscribe/route/app-paths-manifest.json +3 -0
  264. package/.next/server/app/api/public/unsubscribe/route/build-manifest.json +12 -0
  265. package/.next/server/app/api/public/unsubscribe/route/server-reference-manifest.json +4 -0
  266. package/.next/server/app/api/public/unsubscribe/route.js +9 -0
  267. package/.next/server/app/api/public/unsubscribe/route.js.map +5 -0
  268. package/.next/server/app/api/public/unsubscribe/route.js.nft.json +1 -0
  269. package/.next/server/app/api/public/unsubscribe/route_client-reference-manifest.js +3 -0
  270. package/.next/server/app/api/route/app-paths-manifest.json +3 -0
  271. package/.next/server/app/api/route/build-manifest.json +12 -0
  272. package/.next/server/app/api/route/server-reference-manifest.json +4 -0
  273. package/.next/server/app/api/route.js +7 -0
  274. package/.next/server/app/api/route.js.map +5 -0
  275. package/.next/server/app/api/route.js.nft.json +1 -0
  276. package/.next/server/app/api/route_client-reference-manifest.js +3 -0
  277. package/.next/server/app/api/senders/[id]/route/app-paths-manifest.json +3 -0
  278. package/.next/server/app/api/senders/[id]/route/build-manifest.json +12 -0
  279. package/.next/server/app/api/senders/[id]/route/server-reference-manifest.json +4 -0
  280. package/.next/server/app/api/senders/[id]/route.js +8 -0
  281. package/.next/server/app/api/senders/[id]/route.js.map +5 -0
  282. package/.next/server/app/api/senders/[id]/route.js.nft.json +1 -0
  283. package/.next/server/app/api/senders/[id]/route_client-reference-manifest.js +3 -0
  284. package/.next/server/app/api/senders/route/app-paths-manifest.json +3 -0
  285. package/.next/server/app/api/senders/route/build-manifest.json +12 -0
  286. package/.next/server/app/api/senders/route/server-reference-manifest.json +4 -0
  287. package/.next/server/app/api/senders/route.js +11 -0
  288. package/.next/server/app/api/senders/route.js.map +5 -0
  289. package/.next/server/app/api/senders/route.js.nft.json +1 -0
  290. package/.next/server/app/api/senders/route_client-reference-manifest.js +3 -0
  291. package/.next/server/app/api/settings/telegram/route/app-paths-manifest.json +3 -0
  292. package/.next/server/app/api/settings/telegram/route/build-manifest.json +12 -0
  293. package/.next/server/app/api/settings/telegram/route/server-reference-manifest.json +4 -0
  294. package/.next/server/app/api/settings/telegram/route.js +9 -0
  295. package/.next/server/app/api/settings/telegram/route.js.map +5 -0
  296. package/.next/server/app/api/settings/telegram/route.js.nft.json +1 -0
  297. package/.next/server/app/api/settings/telegram/route_client-reference-manifest.js +3 -0
  298. package/.next/server/app/api/settings/telegram/stats/route/app-paths-manifest.json +3 -0
  299. package/.next/server/app/api/settings/telegram/stats/route/build-manifest.json +12 -0
  300. package/.next/server/app/api/settings/telegram/stats/route/server-reference-manifest.json +4 -0
  301. package/.next/server/app/api/settings/telegram/stats/route.js +8 -0
  302. package/.next/server/app/api/settings/telegram/stats/route.js.map +5 -0
  303. package/.next/server/app/api/settings/telegram/stats/route.js.nft.json +1 -0
  304. package/.next/server/app/api/settings/telegram/stats/route_client-reference-manifest.js +3 -0
  305. package/.next/server/app/api/stats/route/app-paths-manifest.json +3 -0
  306. package/.next/server/app/api/stats/route/build-manifest.json +12 -0
  307. package/.next/server/app/api/stats/route/server-reference-manifest.json +4 -0
  308. package/.next/server/app/api/stats/route.js +8 -0
  309. package/.next/server/app/api/stats/route.js.map +5 -0
  310. package/.next/server/app/api/stats/route.js.nft.json +1 -0
  311. package/.next/server/app/api/stats/route_client-reference-manifest.js +3 -0
  312. package/.next/server/app/api/t/[token]/route/app-paths-manifest.json +3 -0
  313. package/.next/server/app/api/t/[token]/route/build-manifest.json +12 -0
  314. package/.next/server/app/api/t/[token]/route/server-reference-manifest.json +4 -0
  315. package/.next/server/app/api/t/[token]/route.js +8 -0
  316. package/.next/server/app/api/t/[token]/route.js.map +5 -0
  317. package/.next/server/app/api/t/[token]/route.js.nft.json +1 -0
  318. package/.next/server/app/api/t/[token]/route_client-reference-manifest.js +3 -0
  319. package/.next/server/app/api/templates/[id]/route/app-paths-manifest.json +3 -0
  320. package/.next/server/app/api/templates/[id]/route/build-manifest.json +12 -0
  321. package/.next/server/app/api/templates/[id]/route/server-reference-manifest.json +4 -0
  322. package/.next/server/app/api/templates/[id]/route.js +8 -0
  323. package/.next/server/app/api/templates/[id]/route.js.map +5 -0
  324. package/.next/server/app/api/templates/[id]/route.js.nft.json +1 -0
  325. package/.next/server/app/api/templates/[id]/route_client-reference-manifest.js +3 -0
  326. package/.next/server/app/api/templates/route/app-paths-manifest.json +3 -0
  327. package/.next/server/app/api/templates/route/build-manifest.json +12 -0
  328. package/.next/server/app/api/templates/route/server-reference-manifest.json +4 -0
  329. package/.next/server/app/api/templates/route.js +8 -0
  330. package/.next/server/app/api/templates/route.js.map +5 -0
  331. package/.next/server/app/api/templates/route.js.nft.json +1 -0
  332. package/.next/server/app/api/templates/route_client-reference-manifest.js +3 -0
  333. package/.next/server/app/api/workflows/[id]/enroll/route/app-paths-manifest.json +3 -0
  334. package/.next/server/app/api/workflows/[id]/enroll/route/build-manifest.json +12 -0
  335. package/.next/server/app/api/workflows/[id]/enroll/route/server-reference-manifest.json +4 -0
  336. package/.next/server/app/api/workflows/[id]/enroll/route.js +15 -0
  337. package/.next/server/app/api/workflows/[id]/enroll/route.js.map +5 -0
  338. package/.next/server/app/api/workflows/[id]/enroll/route.js.nft.json +1 -0
  339. package/.next/server/app/api/workflows/[id]/enroll/route_client-reference-manifest.js +3 -0
  340. package/.next/server/app/api/workflows/[id]/route/app-paths-manifest.json +3 -0
  341. package/.next/server/app/api/workflows/[id]/route/build-manifest.json +12 -0
  342. package/.next/server/app/api/workflows/[id]/route/server-reference-manifest.json +4 -0
  343. package/.next/server/app/api/workflows/[id]/route.js +8 -0
  344. package/.next/server/app/api/workflows/[id]/route.js.map +5 -0
  345. package/.next/server/app/api/workflows/[id]/route.js.nft.json +1 -0
  346. package/.next/server/app/api/workflows/[id]/route_client-reference-manifest.js +3 -0
  347. package/.next/server/app/api/workflows/[id]/run/route/app-paths-manifest.json +3 -0
  348. package/.next/server/app/api/workflows/[id]/run/route/build-manifest.json +12 -0
  349. package/.next/server/app/api/workflows/[id]/run/route/server-reference-manifest.json +4 -0
  350. package/.next/server/app/api/workflows/[id]/run/route.js +15 -0
  351. package/.next/server/app/api/workflows/[id]/run/route.js.map +5 -0
  352. package/.next/server/app/api/workflows/[id]/run/route.js.nft.json +1 -0
  353. package/.next/server/app/api/workflows/[id]/run/route_client-reference-manifest.js +3 -0
  354. package/.next/server/app/api/workflows/route/app-paths-manifest.json +3 -0
  355. package/.next/server/app/api/workflows/route/build-manifest.json +12 -0
  356. package/.next/server/app/api/workflows/route/server-reference-manifest.json +4 -0
  357. package/.next/server/app/api/workflows/route.js +8 -0
  358. package/.next/server/app/api/workflows/route.js.map +5 -0
  359. package/.next/server/app/api/workflows/route.js.nft.json +1 -0
  360. package/.next/server/app/api/workflows/route_client-reference-manifest.js +3 -0
  361. package/.next/server/app/blog/[slug]/page/app-paths-manifest.json +3 -0
  362. package/.next/server/app/blog/[slug]/page/build-manifest.json +22 -0
  363. package/.next/server/app/blog/[slug]/page/next-font-manifest.json +6 -0
  364. package/.next/server/app/blog/[slug]/page/react-loadable-manifest.json +1 -0
  365. package/.next/server/app/blog/[slug]/page/server-reference-manifest.json +4 -0
  366. package/.next/server/app/blog/[slug]/page.js +19 -0
  367. package/.next/server/app/blog/[slug]/page.js.map +5 -0
  368. package/.next/server/app/blog/[slug]/page.js.nft.json +1 -0
  369. package/.next/server/app/blog/[slug]/page_client-reference-manifest.js +3 -0
  370. package/.next/server/app/blog/page/app-paths-manifest.json +3 -0
  371. package/.next/server/app/blog/page/build-manifest.json +22 -0
  372. package/.next/server/app/blog/page/next-font-manifest.json +6 -0
  373. package/.next/server/app/blog/page/react-loadable-manifest.json +1 -0
  374. package/.next/server/app/blog/page/server-reference-manifest.json +4 -0
  375. package/.next/server/app/blog/page.js +16 -0
  376. package/.next/server/app/blog/page.js.map +5 -0
  377. package/.next/server/app/blog/page.js.nft.json +1 -0
  378. package/.next/server/app/blog/page_client-reference-manifest.js +3 -0
  379. package/.next/server/app/dashboard/automations/page/app-paths-manifest.json +3 -0
  380. package/.next/server/app/dashboard/automations/page/build-manifest.json +22 -0
  381. package/.next/server/app/dashboard/automations/page/next-font-manifest.json +6 -0
  382. package/.next/server/app/dashboard/automations/page/react-loadable-manifest.json +1 -0
  383. package/.next/server/app/dashboard/automations/page/server-reference-manifest.json +4 -0
  384. package/.next/server/app/dashboard/automations/page.js +18 -0
  385. package/.next/server/app/dashboard/automations/page.js.map +5 -0
  386. package/.next/server/app/dashboard/automations/page.js.nft.json +1 -0
  387. package/.next/server/app/dashboard/automations/page_client-reference-manifest.js +3 -0
  388. package/.next/server/app/dashboard/campaigns/[id]/page/app-paths-manifest.json +3 -0
  389. package/.next/server/app/dashboard/campaigns/[id]/page/build-manifest.json +22 -0
  390. package/.next/server/app/dashboard/campaigns/[id]/page/next-font-manifest.json +6 -0
  391. package/.next/server/app/dashboard/campaigns/[id]/page/react-loadable-manifest.json +10 -0
  392. package/.next/server/app/dashboard/campaigns/[id]/page/server-reference-manifest.json +4 -0
  393. package/.next/server/app/dashboard/campaigns/[id]/page.js +18 -0
  394. package/.next/server/app/dashboard/campaigns/[id]/page.js.map +5 -0
  395. package/.next/server/app/dashboard/campaigns/[id]/page.js.nft.json +1 -0
  396. package/.next/server/app/dashboard/campaigns/[id]/page_client-reference-manifest.js +3 -0
  397. package/.next/server/app/dashboard/campaigns/page/app-paths-manifest.json +3 -0
  398. package/.next/server/app/dashboard/campaigns/page/build-manifest.json +22 -0
  399. package/.next/server/app/dashboard/campaigns/page/next-font-manifest.json +6 -0
  400. package/.next/server/app/dashboard/campaigns/page/react-loadable-manifest.json +1 -0
  401. package/.next/server/app/dashboard/campaigns/page/server-reference-manifest.json +4 -0
  402. package/.next/server/app/dashboard/campaigns/page.js +18 -0
  403. package/.next/server/app/dashboard/campaigns/page.js.map +5 -0
  404. package/.next/server/app/dashboard/campaigns/page.js.nft.json +1 -0
  405. package/.next/server/app/dashboard/campaigns/page_client-reference-manifest.js +3 -0
  406. package/.next/server/app/dashboard/contacts/page/app-paths-manifest.json +3 -0
  407. package/.next/server/app/dashboard/contacts/page/build-manifest.json +22 -0
  408. package/.next/server/app/dashboard/contacts/page/next-font-manifest.json +6 -0
  409. package/.next/server/app/dashboard/contacts/page/react-loadable-manifest.json +1 -0
  410. package/.next/server/app/dashboard/contacts/page/server-reference-manifest.json +4 -0
  411. package/.next/server/app/dashboard/contacts/page.js +18 -0
  412. package/.next/server/app/dashboard/contacts/page.js.map +5 -0
  413. package/.next/server/app/dashboard/contacts/page.js.nft.json +1 -0
  414. package/.next/server/app/dashboard/contacts/page_client-reference-manifest.js +3 -0
  415. package/.next/server/app/dashboard/forms/page/app-paths-manifest.json +3 -0
  416. package/.next/server/app/dashboard/forms/page/build-manifest.json +22 -0
  417. package/.next/server/app/dashboard/forms/page/next-font-manifest.json +6 -0
  418. package/.next/server/app/dashboard/forms/page/react-loadable-manifest.json +1 -0
  419. package/.next/server/app/dashboard/forms/page/server-reference-manifest.json +4 -0
  420. package/.next/server/app/dashboard/forms/page.js +18 -0
  421. package/.next/server/app/dashboard/forms/page.js.map +5 -0
  422. package/.next/server/app/dashboard/forms/page.js.nft.json +1 -0
  423. package/.next/server/app/dashboard/forms/page_client-reference-manifest.js +3 -0
  424. package/.next/server/app/dashboard/media/page/app-paths-manifest.json +3 -0
  425. package/.next/server/app/dashboard/media/page/build-manifest.json +22 -0
  426. package/.next/server/app/dashboard/media/page/next-font-manifest.json +6 -0
  427. package/.next/server/app/dashboard/media/page/react-loadable-manifest.json +1 -0
  428. package/.next/server/app/dashboard/media/page/server-reference-manifest.json +4 -0
  429. package/.next/server/app/dashboard/media/page.js +18 -0
  430. package/.next/server/app/dashboard/media/page.js.map +5 -0
  431. package/.next/server/app/dashboard/media/page.js.nft.json +1 -0
  432. package/.next/server/app/dashboard/media/page_client-reference-manifest.js +3 -0
  433. package/.next/server/app/dashboard/page/app-paths-manifest.json +3 -0
  434. package/.next/server/app/dashboard/page/build-manifest.json +22 -0
  435. package/.next/server/app/dashboard/page/next-font-manifest.json +6 -0
  436. package/.next/server/app/dashboard/page/react-loadable-manifest.json +1 -0
  437. package/.next/server/app/dashboard/page/server-reference-manifest.json +4 -0
  438. package/.next/server/app/dashboard/page.js +18 -0
  439. package/.next/server/app/dashboard/page.js.map +5 -0
  440. package/.next/server/app/dashboard/page.js.nft.json +1 -0
  441. package/.next/server/app/dashboard/page_client-reference-manifest.js +3 -0
  442. package/.next/server/app/dashboard/senders/page/app-paths-manifest.json +3 -0
  443. package/.next/server/app/dashboard/senders/page/build-manifest.json +22 -0
  444. package/.next/server/app/dashboard/senders/page/next-font-manifest.json +6 -0
  445. package/.next/server/app/dashboard/senders/page/react-loadable-manifest.json +1 -0
  446. package/.next/server/app/dashboard/senders/page/server-reference-manifest.json +4 -0
  447. package/.next/server/app/dashboard/senders/page.js +18 -0
  448. package/.next/server/app/dashboard/senders/page.js.map +5 -0
  449. package/.next/server/app/dashboard/senders/page.js.nft.json +1 -0
  450. package/.next/server/app/dashboard/senders/page_client-reference-manifest.js +3 -0
  451. package/.next/server/app/dashboard/settings/page/app-paths-manifest.json +3 -0
  452. package/.next/server/app/dashboard/settings/page/build-manifest.json +22 -0
  453. package/.next/server/app/dashboard/settings/page/next-font-manifest.json +6 -0
  454. package/.next/server/app/dashboard/settings/page/react-loadable-manifest.json +1 -0
  455. package/.next/server/app/dashboard/settings/page/server-reference-manifest.json +4 -0
  456. package/.next/server/app/dashboard/settings/page.js +18 -0
  457. package/.next/server/app/dashboard/settings/page.js.map +5 -0
  458. package/.next/server/app/dashboard/settings/page.js.nft.json +1 -0
  459. package/.next/server/app/dashboard/settings/page_client-reference-manifest.js +3 -0
  460. package/.next/server/app/doc/page/app-paths-manifest.json +3 -0
  461. package/.next/server/app/doc/page/build-manifest.json +22 -0
  462. package/.next/server/app/doc/page/next-font-manifest.json +6 -0
  463. package/.next/server/app/doc/page/react-loadable-manifest.json +1 -0
  464. package/.next/server/app/doc/page/server-reference-manifest.json +4 -0
  465. package/.next/server/app/doc/page.js +16 -0
  466. package/.next/server/app/doc/page.js.map +5 -0
  467. package/.next/server/app/doc/page.js.nft.json +1 -0
  468. package/.next/server/app/doc/page_client-reference-manifest.js +3 -0
  469. package/.next/server/app/doc.html +1 -0
  470. package/.next/server/app/doc.meta +36 -0
  471. package/.next/server/app/doc.rsc +26 -0
  472. package/.next/server/app/doc.segments/_full.segment.rsc +26 -0
  473. package/.next/server/app/doc.segments/_tree.segment.rsc +4 -0
  474. package/.next/server/app/doc.segments/doc/__PAGE__.segment.rsc +32 -0
  475. package/.next/server/app/documentation/page/app-paths-manifest.json +3 -0
  476. package/.next/server/app/documentation/page/build-manifest.json +22 -0
  477. package/.next/server/app/documentation/page/next-font-manifest.json +6 -0
  478. package/.next/server/app/documentation/page/react-loadable-manifest.json +1 -0
  479. package/.next/server/app/documentation/page/server-reference-manifest.json +4 -0
  480. package/.next/server/app/documentation/page.js +16 -0
  481. package/.next/server/app/documentation/page.js.map +5 -0
  482. package/.next/server/app/documentation/page.js.nft.json +1 -0
  483. package/.next/server/app/documentation/page_client-reference-manifest.js +3 -0
  484. package/.next/server/app/documentation.html +1 -0
  485. package/.next/server/app/documentation.meta +36 -0
  486. package/.next/server/app/documentation.rsc +26 -0
  487. package/.next/server/app/documentation.segments/_full.segment.rsc +26 -0
  488. package/.next/server/app/documentation.segments/_tree.segment.rsc +4 -0
  489. package/.next/server/app/documentation.segments/documentation/__PAGE__.segment.rsc +32 -0
  490. package/.next/server/app/index.html +1 -0
  491. package/.next/server/app/index.meta +29 -0
  492. package/.next/server/app/index.rsc +26 -0
  493. package/.next/server/app/index.segments/__PAGE__.segment.rsc +31 -0
  494. package/.next/server/app/index.segments/_full.segment.rsc +26 -0
  495. package/.next/server/app/index.segments/_tree.segment.rsc +3 -0
  496. package/.next/server/app/login/page/app-paths-manifest.json +3 -0
  497. package/.next/server/app/login/page/build-manifest.json +22 -0
  498. package/.next/server/app/login/page/next-font-manifest.json +6 -0
  499. package/.next/server/app/login/page/react-loadable-manifest.json +1 -0
  500. package/.next/server/app/login/page/server-reference-manifest.json +4 -0
  501. package/.next/server/app/login/page.js +14 -0
  502. package/.next/server/app/login/page.js.map +5 -0
  503. package/.next/server/app/login/page.js.nft.json +1 -0
  504. package/.next/server/app/login/page_client-reference-manifest.js +3 -0
  505. package/.next/server/app/login.html +1 -0
  506. package/.next/server/app/login.meta +34 -0
  507. package/.next/server/app/login.rsc +27 -0
  508. package/.next/server/app/login.segments/_full.segment.rsc +27 -0
  509. package/.next/server/app/login.segments/_tree.segment.rsc +4 -0
  510. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +33 -0
  511. package/.next/server/app/page/app-paths-manifest.json +3 -0
  512. package/.next/server/app/page/build-manifest.json +22 -0
  513. package/.next/server/app/page/next-font-manifest.json +6 -0
  514. package/.next/server/app/page/react-loadable-manifest.json +1 -0
  515. package/.next/server/app/page/server-reference-manifest.json +4 -0
  516. package/.next/server/app/page.js +14 -0
  517. package/.next/server/app/page.js.map +5 -0
  518. package/.next/server/app/page.js.nft.json +1 -0
  519. package/.next/server/app/page_client-reference-manifest.js +3 -0
  520. package/.next/server/app/unsubscribe/page/app-paths-manifest.json +3 -0
  521. package/.next/server/app/unsubscribe/page/build-manifest.json +22 -0
  522. package/.next/server/app/unsubscribe/page/next-font-manifest.json +6 -0
  523. package/.next/server/app/unsubscribe/page/react-loadable-manifest.json +1 -0
  524. package/.next/server/app/unsubscribe/page/server-reference-manifest.json +4 -0
  525. package/.next/server/app/unsubscribe/page.js +14 -0
  526. package/.next/server/app/unsubscribe/page.js.map +5 -0
  527. package/.next/server/app/unsubscribe/page.js.nft.json +1 -0
  528. package/.next/server/app/unsubscribe/page_client-reference-manifest.js +3 -0
  529. package/.next/server/app/unsubscribe.html +1 -0
  530. package/.next/server/app/unsubscribe.meta +34 -0
  531. package/.next/server/app/unsubscribe.rsc +31 -0
  532. package/.next/server/app/unsubscribe.segments/_full.segment.rsc +31 -0
  533. package/.next/server/app/unsubscribe.segments/_tree.segment.rsc +4 -0
  534. package/.next/server/app/unsubscribe.segments/unsubscribe/__PAGE__.segment.rsc +37 -0
  535. package/.next/server/app-paths-manifest.json +63 -0
  536. package/.next/server/chunks/06xu_next_dist_esm_build_templates_app-route_0rhnea3oufq9j.js +3 -0
  537. package/.next/server/chunks/06xu_next_dist_esm_build_templates_app-route_0rhnea3oufq9j.js.map +1 -0
  538. package/.next/server/chunks/14u8_jose_dist_webapi_jwt_sign_0e9dnv3w_dkc3.js +3 -0
  539. package/.next/server/chunks/14u8_jose_dist_webapi_jwt_sign_0e9dnv3w_dkc3.js.map +1 -0
  540. package/.next/server/chunks/1oeh_server_app_api_settings_telegram_stats_route_actions_0y5ocpob4bzxr.js +3 -0
  541. package/.next/server/chunks/1oeh_server_app_api_settings_telegram_stats_route_actions_0y5ocpob4bzxr.js.map +1 -0
  542. package/.next/server/chunks/[externals]__15ba62yk88w55._.js +3 -0
  543. package/.next/server/chunks/[externals]__15ba62yk88w55._.js.map +1 -0
  544. package/.next/server/chunks/[externals]__1da-de2642zdu._.js +3 -0
  545. package/.next/server/chunks/[externals]__1da-de2642zdu._.js.map +1 -0
  546. package/.next/server/chunks/[root-of-the-server]__00t3s_fd941rt._.js +3 -0
  547. package/.next/server/chunks/[root-of-the-server]__00t3s_fd941rt._.js.map +1 -0
  548. package/.next/server/chunks/[root-of-the-server]__07pbetxujjj00._.js +3 -0
  549. package/.next/server/chunks/[root-of-the-server]__07pbetxujjj00._.js.map +1 -0
  550. package/.next/server/chunks/[root-of-the-server]__0a6x-tjsjctmn._.js +3 -0
  551. package/.next/server/chunks/[root-of-the-server]__0a6x-tjsjctmn._.js.map +1 -0
  552. package/.next/server/chunks/[root-of-the-server]__0bg8pg0fpimav._.js +3 -0
  553. package/.next/server/chunks/[root-of-the-server]__0bg8pg0fpimav._.js.map +1 -0
  554. package/.next/server/chunks/[root-of-the-server]__0e93ko_-d32s0._.js +3 -0
  555. package/.next/server/chunks/[root-of-the-server]__0e93ko_-d32s0._.js.map +1 -0
  556. package/.next/server/chunks/[root-of-the-server]__0m07o9851_xfr._.js +3 -0
  557. package/.next/server/chunks/[root-of-the-server]__0m07o9851_xfr._.js.map +1 -0
  558. package/.next/server/chunks/[root-of-the-server]__0mswm6179vwl1._.js +3 -0
  559. package/.next/server/chunks/[root-of-the-server]__0mswm6179vwl1._.js.map +1 -0
  560. package/.next/server/chunks/[root-of-the-server]__0mz1nms56oghw._.js +3 -0
  561. package/.next/server/chunks/[root-of-the-server]__0mz1nms56oghw._.js.map +1 -0
  562. package/.next/server/chunks/[root-of-the-server]__0rtfqbe0ob35m._.js +3 -0
  563. package/.next/server/chunks/[root-of-the-server]__0rtfqbe0ob35m._.js.map +1 -0
  564. package/.next/server/chunks/[root-of-the-server]__153ayjbkba0bf._.js +3 -0
  565. package/.next/server/chunks/[root-of-the-server]__153ayjbkba0bf._.js.map +1 -0
  566. package/.next/server/chunks/[root-of-the-server]__1ap2hmo6cbsb3._.js +3 -0
  567. package/.next/server/chunks/[root-of-the-server]__1ap2hmo6cbsb3._.js.map +1 -0
  568. package/.next/server/chunks/[root-of-the-server]__1em5dex851pk2._.js +63 -0
  569. package/.next/server/chunks/[root-of-the-server]__1em5dex851pk2._.js.map +1 -0
  570. package/.next/server/chunks/[root-of-the-server]__1llxcp69_fvli._.js +3 -0
  571. package/.next/server/chunks/[root-of-the-server]__1llxcp69_fvli._.js.map +1 -0
  572. package/.next/server/chunks/[root-of-the-server]__1oipwj090n6_7._.js +3 -0
  573. package/.next/server/chunks/[root-of-the-server]__1oipwj090n6_7._.js.map +1 -0
  574. package/.next/server/chunks/[root-of-the-server]__1zybyzpuf50yc._.js +3 -0
  575. package/.next/server/chunks/[root-of-the-server]__1zybyzpuf50yc._.js.map +1 -0
  576. package/.next/server/chunks/[root-of-the-server]__20eb2dgpl3qoj._.js +3 -0
  577. package/.next/server/chunks/[root-of-the-server]__20eb2dgpl3qoj._.js.map +1 -0
  578. package/.next/server/chunks/[turbopack]_runtime.js +935 -0
  579. package/.next/server/chunks/[turbopack]_runtime.js.map +10 -0
  580. package/.next/server/chunks/_016pksr_tokt8._.js +3 -0
  581. package/.next/server/chunks/_016pksr_tokt8._.js.map +1 -0
  582. package/.next/server/chunks/_01htjrztdn3g5._.js +3 -0
  583. package/.next/server/chunks/_01htjrztdn3g5._.js.map +1 -0
  584. package/.next/server/chunks/_01n_eoupdy17l._.js +3 -0
  585. package/.next/server/chunks/_01n_eoupdy17l._.js.map +1 -0
  586. package/.next/server/chunks/_03yxncv3hk3vr._.js +3 -0
  587. package/.next/server/chunks/_03yxncv3hk3vr._.js.map +1 -0
  588. package/.next/server/chunks/_040a09tcfi6x9._.js +3 -0
  589. package/.next/server/chunks/_040a09tcfi6x9._.js.map +1 -0
  590. package/.next/server/chunks/_04_9nfa-lxjd9._.js +3 -0
  591. package/.next/server/chunks/_04_9nfa-lxjd9._.js.map +1 -0
  592. package/.next/server/chunks/_04bjifcoxwu5o._.js +3 -0
  593. package/.next/server/chunks/_04bjifcoxwu5o._.js.map +1 -0
  594. package/.next/server/chunks/_07u19kpttm6vp._.js +3 -0
  595. package/.next/server/chunks/_07u19kpttm6vp._.js.map +1 -0
  596. package/.next/server/chunks/_09-td-68cdtha._.js +3 -0
  597. package/.next/server/chunks/_09-td-68cdtha._.js.map +1 -0
  598. package/.next/server/chunks/_09r_gh4zqv3wl._.js +3 -0
  599. package/.next/server/chunks/_09r_gh4zqv3wl._.js.map +1 -0
  600. package/.next/server/chunks/_0_-vw5kg2iooe._.js +3 -0
  601. package/.next/server/chunks/_0_-vw5kg2iooe._.js.map +1 -0
  602. package/.next/server/chunks/_0fyvad-iex4-9._.js +3 -0
  603. package/.next/server/chunks/_0fyvad-iex4-9._.js.map +1 -0
  604. package/.next/server/chunks/_0h--d0xv_53cr._.js +3 -0
  605. package/.next/server/chunks/_0h--d0xv_53cr._.js.map +1 -0
  606. package/.next/server/chunks/_0ih52_m6zdv66._.js +3 -0
  607. package/.next/server/chunks/_0ih52_m6zdv66._.js.map +1 -0
  608. package/.next/server/chunks/_0ioztrwebatxi._.js +3 -0
  609. package/.next/server/chunks/_0ioztrwebatxi._.js.map +1 -0
  610. package/.next/server/chunks/_0mf3thpvi2w9-._.js +3 -0
  611. package/.next/server/chunks/_0mf3thpvi2w9-._.js.map +1 -0
  612. package/.next/server/chunks/_0mxirr5hu7uvj._.js +3 -0
  613. package/.next/server/chunks/_0mxirr5hu7uvj._.js.map +1 -0
  614. package/.next/server/chunks/_0p2s1sp75f_j9._.js +3 -0
  615. package/.next/server/chunks/_0p2s1sp75f_j9._.js.map +1 -0
  616. package/.next/server/chunks/_0q47xwx7d_6ra._.js +3 -0
  617. package/.next/server/chunks/_0q47xwx7d_6ra._.js.map +1 -0
  618. package/.next/server/chunks/_0r4rhsoq7d2hp._.js +3 -0
  619. package/.next/server/chunks/_0r4rhsoq7d2hp._.js.map +1 -0
  620. package/.next/server/chunks/_0t_kwe5a4tov4._.js +3 -0
  621. package/.next/server/chunks/_0t_kwe5a4tov4._.js.map +1 -0
  622. package/.next/server/chunks/_0tx_colipxkxn._.js +3 -0
  623. package/.next/server/chunks/_0tx_colipxkxn._.js.map +1 -0
  624. package/.next/server/chunks/_0vpnhlc3j1p06._.js +3 -0
  625. package/.next/server/chunks/_0vpnhlc3j1p06._.js.map +1 -0
  626. package/.next/server/chunks/_1-ti64gr5yz18._.js +3 -0
  627. package/.next/server/chunks/_1-ti64gr5yz18._.js.map +1 -0
  628. package/.next/server/chunks/_1-xxzx1khwzji._.js +3 -0
  629. package/.next/server/chunks/_1-xxzx1khwzji._.js.map +1 -0
  630. package/.next/server/chunks/_18qgmv1t3_d91._.js +3 -0
  631. package/.next/server/chunks/_18qgmv1t3_d91._.js.map +1 -0
  632. package/.next/server/chunks/_18rxxnsk2a6wq._.js +3 -0
  633. package/.next/server/chunks/_18rxxnsk2a6wq._.js.map +1 -0
  634. package/.next/server/chunks/_1cwegmbbn2hju._.js +3 -0
  635. package/.next/server/chunks/_1cwegmbbn2hju._.js.map +1 -0
  636. package/.next/server/chunks/_1f94wdko3-7rw._.js +3 -0
  637. package/.next/server/chunks/_1f94wdko3-7rw._.js.map +1 -0
  638. package/.next/server/chunks/_1gp6hcs1274ln._.js +3 -0
  639. package/.next/server/chunks/_1gp6hcs1274ln._.js.map +1 -0
  640. package/.next/server/chunks/_1h445ssbyo_y5._.js +3 -0
  641. package/.next/server/chunks/_1h445ssbyo_y5._.js.map +1 -0
  642. package/.next/server/chunks/_1h6whc3etiive._.js +3 -0
  643. package/.next/server/chunks/_1h6whc3etiive._.js.map +1 -0
  644. package/.next/server/chunks/_1iji2r4-sk-we._.js +3 -0
  645. package/.next/server/chunks/_1iji2r4-sk-we._.js.map +1 -0
  646. package/.next/server/chunks/_1k4vlrzpby6a_._.js +3 -0
  647. package/.next/server/chunks/_1k4vlrzpby6a_._.js.map +1 -0
  648. package/.next/server/chunks/_1lv9rcsvu5f_o._.js +3 -0
  649. package/.next/server/chunks/_1lv9rcsvu5f_o._.js.map +1 -0
  650. package/.next/server/chunks/_1mz0a5he7e22i._.js +3 -0
  651. package/.next/server/chunks/_1mz0a5he7e22i._.js.map +1 -0
  652. package/.next/server/chunks/_1o0ng4bsm4gyq._.js +3 -0
  653. package/.next/server/chunks/_1o0ng4bsm4gyq._.js.map +1 -0
  654. package/.next/server/chunks/_1o2yk6-lm2_f5._.js +3 -0
  655. package/.next/server/chunks/_1o2yk6-lm2_f5._.js.map +1 -0
  656. package/.next/server/chunks/_1qu9xleffmuhh._.js +3 -0
  657. package/.next/server/chunks/_1qu9xleffmuhh._.js.map +1 -0
  658. package/.next/server/chunks/_1sma8mtgsvlrb._.js +3 -0
  659. package/.next/server/chunks/_1sma8mtgsvlrb._.js.map +1 -0
  660. package/.next/server/chunks/_1uilkda5rycrk._.js +3 -0
  661. package/.next/server/chunks/_1uilkda5rycrk._.js.map +1 -0
  662. package/.next/server/chunks/_1vclmxko_5xe0._.js +3 -0
  663. package/.next/server/chunks/_1vclmxko_5xe0._.js.map +1 -0
  664. package/.next/server/chunks/_1y1s5uiktpy3o._.js +3 -0
  665. package/.next/server/chunks/_1y1s5uiktpy3o._.js.map +1 -0
  666. package/.next/server/chunks/_next-internal_server_app_api_auth_login_route_actions_1ox7zi0683rx3.js +3 -0
  667. package/.next/server/chunks/_next-internal_server_app_api_auth_login_route_actions_1ox7zi0683rx3.js.map +1 -0
  668. package/.next/server/chunks/_next-internal_server_app_api_auth_logout_route_actions_0regwyrnie28t.js +3 -0
  669. package/.next/server/chunks/_next-internal_server_app_api_auth_logout_route_actions_0regwyrnie28t.js.map +1 -0
  670. package/.next/server/chunks/_next-internal_server_app_api_auth_session_route_actions_0-ylu5i7oqlzd.js +3 -0
  671. package/.next/server/chunks/_next-internal_server_app_api_auth_session_route_actions_0-ylu5i7oqlzd.js.map +1 -0
  672. package/.next/server/chunks/_next-internal_server_app_api_auth_setup_route_actions_14j5aonxk6m_0.js +3 -0
  673. package/.next/server/chunks/_next-internal_server_app_api_auth_setup_route_actions_14j5aonxk6m_0.js.map +1 -0
  674. package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_publish_route_actions_09311-fzm8pgf.js +3 -0
  675. package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_publish_route_actions_09311-fzm8pgf.js.map +1 -0
  676. package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_route_actions_1a0zhdfdyla42.js +3 -0
  677. package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_route_actions_1a0zhdfdyla42.js.map +1 -0
  678. package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_send_route_actions_1av8d5nb-ear4.js +3 -0
  679. package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_send_route_actions_1av8d5nb-ear4.js.map +1 -0
  680. package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_stats_route_actions_06bh5t647rne9.js +3 -0
  681. package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_stats_route_actions_06bh5t647rne9.js.map +1 -0
  682. package/.next/server/chunks/_next-internal_server_app_api_campaigns_all_route_actions_0vv-2ofeydk_2.js +3 -0
  683. package/.next/server/chunks/_next-internal_server_app_api_campaigns_all_route_actions_0vv-2ofeydk_2.js.map +1 -0
  684. package/.next/server/chunks/_next-internal_server_app_api_campaigns_route_actions_1z1l7o3vmwi8j.js +3 -0
  685. package/.next/server/chunks/_next-internal_server_app_api_campaigns_route_actions_1z1l7o3vmwi8j.js.map +1 -0
  686. package/.next/server/chunks/_next-internal_server_app_api_contacts_[id]_route_actions_0edp9gto9mrwd.js +3 -0
  687. package/.next/server/chunks/_next-internal_server_app_api_contacts_[id]_route_actions_0edp9gto9mrwd.js.map +1 -0
  688. package/.next/server/chunks/_next-internal_server_app_api_contacts_all_route_actions_1kp0fjcv5w1lz.js +3 -0
  689. package/.next/server/chunks/_next-internal_server_app_api_contacts_all_route_actions_1kp0fjcv5w1lz.js.map +1 -0
  690. package/.next/server/chunks/_next-internal_server_app_api_contacts_import_route_actions_1u0x5u848vtkc.js +3 -0
  691. package/.next/server/chunks/_next-internal_server_app_api_contacts_import_route_actions_1u0x5u848vtkc.js.map +1 -0
  692. package/.next/server/chunks/_next-internal_server_app_api_contacts_route_actions_1bx4umbpbb4es.js +3 -0
  693. package/.next/server/chunks/_next-internal_server_app_api_contacts_route_actions_1bx4umbpbb4es.js.map +1 -0
  694. package/.next/server/chunks/_next-internal_server_app_api_cron_route_actions_0hfzp9ksvuhv8.js +3 -0
  695. package/.next/server/chunks/_next-internal_server_app_api_cron_route_actions_0hfzp9ksvuhv8.js.map +1 -0
  696. package/.next/server/chunks/_next-internal_server_app_api_forms_[id]_route_actions_1zn9c6hm712n_.js +3 -0
  697. package/.next/server/chunks/_next-internal_server_app_api_forms_[id]_route_actions_1zn9c6hm712n_.js.map +1 -0
  698. package/.next/server/chunks/_next-internal_server_app_api_forms_[id]_submissions_route_actions_0npj-livx0neo.js +3 -0
  699. package/.next/server/chunks/_next-internal_server_app_api_forms_[id]_submissions_route_actions_0npj-livx0neo.js.map +1 -0
  700. package/.next/server/chunks/_next-internal_server_app_api_forms_[id]_submit_route_actions_1p_av2ya-hn__.js +3 -0
  701. package/.next/server/chunks/_next-internal_server_app_api_forms_[id]_submit_route_actions_1p_av2ya-hn__.js.map +1 -0
  702. package/.next/server/chunks/_next-internal_server_app_api_forms_route_actions_0wx1h14s4xiqj.js +3 -0
  703. package/.next/server/chunks/_next-internal_server_app_api_forms_route_actions_0wx1h14s4xiqj.js.map +1 -0
  704. package/.next/server/chunks/_next-internal_server_app_api_forms_templates_[id]_route_actions_1tjt-yf1ufx4t.js +3 -0
  705. package/.next/server/chunks/_next-internal_server_app_api_forms_templates_[id]_route_actions_1tjt-yf1ufx4t.js.map +1 -0
  706. package/.next/server/chunks/_next-internal_server_app_api_forms_templates_route_actions_0jx0yyx-a9e8a.js +3 -0
  707. package/.next/server/chunks/_next-internal_server_app_api_forms_templates_route_actions_0jx0yyx-a9e8a.js.map +1 -0
  708. package/.next/server/chunks/_next-internal_server_app_api_groups_[id]_contacts_route_actions_16zvoezq09gzs.js +3 -0
  709. package/.next/server/chunks/_next-internal_server_app_api_groups_[id]_contacts_route_actions_16zvoezq09gzs.js.map +1 -0
  710. package/.next/server/chunks/_next-internal_server_app_api_groups_[id]_route_actions_1a972-ku-88li.js +3 -0
  711. package/.next/server/chunks/_next-internal_server_app_api_groups_[id]_route_actions_1a972-ku-88li.js.map +1 -0
  712. package/.next/server/chunks/_next-internal_server_app_api_groups_route_actions_1g3bvao_xtom7.js +3 -0
  713. package/.next/server/chunks/_next-internal_server_app_api_groups_route_actions_1g3bvao_xtom7.js.map +1 -0
  714. package/.next/server/chunks/_next-internal_server_app_api_media_[name]_route_actions_1x1oymi5s9e43.js +3 -0
  715. package/.next/server/chunks/_next-internal_server_app_api_media_[name]_route_actions_1x1oymi5s9e43.js.map +1 -0
  716. package/.next/server/chunks/_next-internal_server_app_api_media_route_actions_08_28_1c7w9t_.js +3 -0
  717. package/.next/server/chunks/_next-internal_server_app_api_media_route_actions_08_28_1c7w9t_.js.map +1 -0
  718. package/.next/server/chunks/_next-internal_server_app_api_public_forms_[id]_route_actions_0qjba17y_8y2z.js +3 -0
  719. package/.next/server/chunks/_next-internal_server_app_api_public_forms_[id]_route_actions_0qjba17y_8y2z.js.map +1 -0
  720. package/.next/server/chunks/_next-internal_server_app_api_public_posts_[slug]_route_actions_0s-2m-qbt3a4g.js +3 -0
  721. package/.next/server/chunks/_next-internal_server_app_api_public_posts_[slug]_route_actions_0s-2m-qbt3a4g.js.map +1 -0
  722. package/.next/server/chunks/_next-internal_server_app_api_public_posts_route_actions_1coxdlltzg2ec.js +3 -0
  723. package/.next/server/chunks/_next-internal_server_app_api_public_posts_route_actions_1coxdlltzg2ec.js.map +1 -0
  724. package/.next/server/chunks/_next-internal_server_app_api_public_unsubscribe_route_actions_04pb699mm7zhs.js +3 -0
  725. package/.next/server/chunks/_next-internal_server_app_api_public_unsubscribe_route_actions_04pb699mm7zhs.js.map +1 -0
  726. package/.next/server/chunks/_next-internal_server_app_api_route_actions_1spy6egqqw5nf.js +3 -0
  727. package/.next/server/chunks/_next-internal_server_app_api_route_actions_1spy6egqqw5nf.js.map +1 -0
  728. package/.next/server/chunks/_next-internal_server_app_api_senders_[id]_route_actions_1acuhlzaull6v.js +3 -0
  729. package/.next/server/chunks/_next-internal_server_app_api_senders_[id]_route_actions_1acuhlzaull6v.js.map +1 -0
  730. package/.next/server/chunks/_next-internal_server_app_api_senders_route_actions_0hbw-3u122an8.js +3 -0
  731. package/.next/server/chunks/_next-internal_server_app_api_senders_route_actions_0hbw-3u122an8.js.map +1 -0
  732. package/.next/server/chunks/_next-internal_server_app_api_settings_telegram_route_actions_1ecznfq0kf4oi.js +3 -0
  733. package/.next/server/chunks/_next-internal_server_app_api_settings_telegram_route_actions_1ecznfq0kf4oi.js.map +1 -0
  734. package/.next/server/chunks/_next-internal_server_app_api_stats_route_actions_0o9u2yifvs5i8.js +3 -0
  735. package/.next/server/chunks/_next-internal_server_app_api_stats_route_actions_0o9u2yifvs5i8.js.map +1 -0
  736. package/.next/server/chunks/_next-internal_server_app_api_t_[token]_route_actions_1h2u1jcimhu0m.js +3 -0
  737. package/.next/server/chunks/_next-internal_server_app_api_t_[token]_route_actions_1h2u1jcimhu0m.js.map +1 -0
  738. package/.next/server/chunks/_next-internal_server_app_api_templates_[id]_route_actions_0w75q6vjtgysm.js +3 -0
  739. package/.next/server/chunks/_next-internal_server_app_api_templates_[id]_route_actions_0w75q6vjtgysm.js.map +1 -0
  740. package/.next/server/chunks/_next-internal_server_app_api_templates_route_actions_1c0yqgfnurom3.js +3 -0
  741. package/.next/server/chunks/_next-internal_server_app_api_templates_route_actions_1c0yqgfnurom3.js.map +1 -0
  742. package/.next/server/chunks/_next-internal_server_app_api_workflows_[id]_enroll_route_actions_1t3actfkyjz50.js +3 -0
  743. package/.next/server/chunks/_next-internal_server_app_api_workflows_[id]_enroll_route_actions_1t3actfkyjz50.js.map +1 -0
  744. package/.next/server/chunks/_next-internal_server_app_api_workflows_[id]_route_actions_0hdifc39l0kzl.js +3 -0
  745. package/.next/server/chunks/_next-internal_server_app_api_workflows_[id]_route_actions_0hdifc39l0kzl.js.map +1 -0
  746. package/.next/server/chunks/_next-internal_server_app_api_workflows_[id]_run_route_actions_0a0iqptu82a4a.js +3 -0
  747. package/.next/server/chunks/_next-internal_server_app_api_workflows_[id]_run_route_actions_0a0iqptu82a4a.js.map +1 -0
  748. package/.next/server/chunks/_next-internal_server_app_api_workflows_route_actions_1-qmgyxvh5cwy.js +3 -0
  749. package/.next/server/chunks/_next-internal_server_app_api_workflows_route_actions_1-qmgyxvh5cwy.js.map +1 -0
  750. package/.next/server/chunks/src_0x0k1ybx0poim._.js +3 -0
  751. package/.next/server/chunks/src_0x0k1ybx0poim._.js.map +1 -0
  752. package/.next/server/chunks/src_app_api_forms_[id]_submit_route_ts_1nivtdhvc93f6._.js +23 -0
  753. package/.next/server/chunks/src_app_api_forms_[id]_submit_route_ts_1nivtdhvc93f6._.js.map +1 -0
  754. package/.next/server/chunks/src_lib_automation_ts_0gl7ssziqm14z._.js +149 -0
  755. package/.next/server/chunks/src_lib_automation_ts_0gl7ssziqm14z._.js.map +1 -0
  756. package/.next/server/chunks/src_lib_automation_ts_1a34dych48thk._.js +3 -0
  757. package/.next/server/chunks/src_lib_automation_ts_1a34dych48thk._.js.map +1 -0
  758. package/.next/server/chunks/src_lib_automation_ts_207uuptnebs4l._.js +3 -0
  759. package/.next/server/chunks/src_lib_automation_ts_207uuptnebs4l._.js.map +1 -0
  760. package/.next/server/chunks/src_lib_db_ts_12rrbm4_je1ts._.js +3 -0
  761. package/.next/server/chunks/src_lib_db_ts_12rrbm4_je1ts._.js.map +1 -0
  762. package/.next/server/chunks/src_lib_email-template_ts_10pfim6kqnxua._.js +126 -0
  763. package/.next/server/chunks/src_lib_email-template_ts_10pfim6kqnxua._.js.map +1 -0
  764. package/.next/server/chunks/src_lib_form-builder_ts_1cp0xz7mqn56d._.js +3 -0
  765. package/.next/server/chunks/src_lib_form-builder_ts_1cp0xz7mqn56d._.js.map +1 -0
  766. package/.next/server/chunks/src_lib_gmail_ts_1s2ltf6xpps8u._.js +3 -0
  767. package/.next/server/chunks/src_lib_gmail_ts_1s2ltf6xpps8u._.js.map +1 -0
  768. package/.next/server/chunks/src_lib_supabase-storage_ts_1dfw8x9k0tgmv._.js +26 -0
  769. package/.next/server/chunks/src_lib_supabase-storage_ts_1dfw8x9k0tgmv._.js.map +1 -0
  770. package/.next/server/chunks/src_lib_telegram_ts_0ysg2aj42jeux._.js +3 -0
  771. package/.next/server/chunks/src_lib_telegram_ts_0ysg2aj42jeux._.js.map +1 -0
  772. package/.next/server/chunks/ssr/02c-_@radix-ui_react-dialog_dist_index_mjs_00ymwmtf3k3mw._.js +3 -0
  773. package/.next/server/chunks/ssr/02c-_@radix-ui_react-dialog_dist_index_mjs_00ymwmtf3k3mw._.js.map +1 -0
  774. package/.next/server/chunks/ssr/06xu_next_0r9zyafjirm2h._.js +32 -0
  775. package/.next/server/chunks/ssr/06xu_next_0r9zyafjirm2h._.js.map +1 -0
  776. package/.next/server/chunks/ssr/06xu_next_dist_0-pwksyiyjqj6._.js +6 -0
  777. package/.next/server/chunks/ssr/06xu_next_dist_0-pwksyiyjqj6._.js.map +1 -0
  778. package/.next/server/chunks/ssr/06xu_next_dist_0_wf08lquq9u4._.js +3 -0
  779. package/.next/server/chunks/ssr/06xu_next_dist_0_wf08lquq9u4._.js.map +1 -0
  780. package/.next/server/chunks/ssr/06xu_next_dist_0lnz__th3f5zr._.js +3 -0
  781. package/.next/server/chunks/ssr/06xu_next_dist_0lnz__th3f5zr._.js.map +1 -0
  782. package/.next/server/chunks/ssr/06xu_next_dist_0q5i7q4kqow99._.js +23 -0
  783. package/.next/server/chunks/ssr/06xu_next_dist_0q5i7q4kqow99._.js.map +1 -0
  784. package/.next/server/chunks/ssr/06xu_next_dist_0yftpqcu15_jh._.js +32 -0
  785. package/.next/server/chunks/ssr/06xu_next_dist_0yftpqcu15_jh._.js.map +1 -0
  786. package/.next/server/chunks/ssr/06xu_next_dist_1ysb4fqlnpjfg._.js +32 -0
  787. package/.next/server/chunks/ssr/06xu_next_dist_1ysb4fqlnpjfg._.js.map +1 -0
  788. package/.next/server/chunks/ssr/06xu_next_dist_client_components_0qj_uk660e2yb._.js +3 -0
  789. package/.next/server/chunks/ssr/06xu_next_dist_client_components_0qj_uk660e2yb._.js.map +1 -0
  790. package/.next/server/chunks/ssr/06xu_next_dist_client_components_15i6o-11_85p_._.js +33 -0
  791. package/.next/server/chunks/ssr/06xu_next_dist_client_components_15i6o-11_85p_._.js.map +1 -0
  792. package/.next/server/chunks/ssr/06xu_next_dist_client_components_builtin_forbidden_1vceoosdyq6ip.js +3 -0
  793. package/.next/server/chunks/ssr/06xu_next_dist_client_components_builtin_forbidden_1vceoosdyq6ip.js.map +1 -0
  794. package/.next/server/chunks/ssr/06xu_next_dist_client_components_builtin_global-error_1p7ftpe87ygv1.js +3 -0
  795. package/.next/server/chunks/ssr/06xu_next_dist_client_components_builtin_global-error_1p7ftpe87ygv1.js.map +1 -0
  796. package/.next/server/chunks/ssr/06xu_next_dist_client_components_builtin_unauthorized_002xbraemrk92.js +3 -0
  797. package/.next/server/chunks/ssr/06xu_next_dist_client_components_builtin_unauthorized_002xbraemrk92.js.map +1 -0
  798. package/.next/server/chunks/ssr/06xu_next_dist_compiled_@edge-runtime_cookies_index_0ieglv5lnsyri.js +3 -0
  799. package/.next/server/chunks/ssr/06xu_next_dist_compiled_@edge-runtime_cookies_index_0ieglv5lnsyri.js.map +1 -0
  800. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0-vqyq0vovi_i.js +3 -0
  801. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0-vqyq0vovi_i.js.map +1 -0
  802. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_02v5nrvtk32c6.js +3 -0
  803. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_02v5nrvtk32c6.js.map +1 -0
  804. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_03qrcs7au7ivq.js +3 -0
  805. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_03qrcs7au7ivq.js.map +1 -0
  806. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_045x_qclmi4m8.js +3 -0
  807. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_045x_qclmi4m8.js.map +1 -0
  808. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0_t0dbl5dozbx.js +3 -0
  809. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0_t0dbl5dozbx.js.map +1 -0
  810. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0c_t0os-4cbs3.js +3 -0
  811. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0c_t0os-4cbs3.js.map +1 -0
  812. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0h0emnvw_w9hz.js +3 -0
  813. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0h0emnvw_w9hz.js.map +1 -0
  814. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0hf32whzcuz52.js +3 -0
  815. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0hf32whzcuz52.js.map +1 -0
  816. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0jnsbu-6ck6mc.js +3 -0
  817. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0jnsbu-6ck6mc.js.map +1 -0
  818. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0o-vhcup-3b3z.js +3 -0
  819. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0o-vhcup-3b3z.js.map +1 -0
  820. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_11l8elffx5v39.js +3 -0
  821. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_11l8elffx5v39.js.map +1 -0
  822. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_13788nvenj_0p.js +3 -0
  823. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_13788nvenj_0p.js.map +1 -0
  824. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_16f4zm9x692nw.js +3 -0
  825. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_16f4zm9x692nw.js.map +1 -0
  826. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1bootgt-epvt6.js +3 -0
  827. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1bootgt-epvt6.js.map +1 -0
  828. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1l1dlajssgq1c.js +3 -0
  829. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1l1dlajssgq1c.js.map +1 -0
  830. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1rlfqzolbd21n.js +3 -0
  831. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1rlfqzolbd21n.js.map +1 -0
  832. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1vxqj6-npabju.js +3 -0
  833. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1vxqj6-npabju.js.map +1 -0
  834. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_20n28cdchbrpp.js +3 -0
  835. package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_20n28cdchbrpp.js.map +1 -0
  836. package/.next/server/chunks/ssr/1l0a_@radix-ui_react-collection_dist_index_mjs_0rxx5d5lmo6u4._.js +3 -0
  837. package/.next/server/chunks/ssr/1l0a_@radix-ui_react-collection_dist_index_mjs_0rxx5d5lmo6u4._.js.map +1 -0
  838. package/.next/server/chunks/ssr/1saf_lucide-react_dist_esm_icons_flask-conical_1vs3jvn162eqg.js +3 -0
  839. package/.next/server/chunks/ssr/1saf_lucide-react_dist_esm_icons_flask-conical_1vs3jvn162eqg.js.map +1 -0
  840. package/.next/server/chunks/ssr/1saf_lucide-react_dist_esm_icons_globe_0jwul3h6rwm1l.js +3 -0
  841. package/.next/server/chunks/ssr/1saf_lucide-react_dist_esm_icons_globe_0jwul3h6rwm1l.js.map +1 -0
  842. package/.next/server/chunks/ssr/1saf_lucide-react_dist_esm_icons_menu_1jtgq-_6gw2ad.js +3 -0
  843. package/.next/server/chunks/ssr/1saf_lucide-react_dist_esm_icons_menu_1jtgq-_6gw2ad.js.map +1 -0
  844. package/.next/server/chunks/ssr/21ai_sonner_dist_index_mjs_0lemus0y9eb08._.js +3 -0
  845. package/.next/server/chunks/ssr/21ai_sonner_dist_index_mjs_0lemus0y9eb08._.js.map +1 -0
  846. package/.next/server/chunks/ssr/[root-of-the-server]__01mn3kop4h9ln._.js +3 -0
  847. package/.next/server/chunks/ssr/[root-of-the-server]__01mn3kop4h9ln._.js.map +1 -0
  848. package/.next/server/chunks/ssr/[root-of-the-server]__02jgmnf51m_bw._.js +3 -0
  849. package/.next/server/chunks/ssr/[root-of-the-server]__02jgmnf51m_bw._.js.map +1 -0
  850. package/.next/server/chunks/ssr/[root-of-the-server]__04f9g0ord6h_z._.js +3 -0
  851. package/.next/server/chunks/ssr/[root-of-the-server]__04f9g0ord6h_z._.js.map +1 -0
  852. package/.next/server/chunks/ssr/[root-of-the-server]__06666h874g5hp._.js +3 -0
  853. package/.next/server/chunks/ssr/[root-of-the-server]__06666h874g5hp._.js.map +1 -0
  854. package/.next/server/chunks/ssr/[root-of-the-server]__07me011e7ku2k._.js +3 -0
  855. package/.next/server/chunks/ssr/[root-of-the-server]__07me011e7ku2k._.js.map +1 -0
  856. package/.next/server/chunks/ssr/[root-of-the-server]__07pj5lrkqzifr._.js +3 -0
  857. package/.next/server/chunks/ssr/[root-of-the-server]__07pj5lrkqzifr._.js.map +1 -0
  858. package/.next/server/chunks/ssr/[root-of-the-server]__0dri3jnl96cro._.js +3 -0
  859. package/.next/server/chunks/ssr/[root-of-the-server]__0dri3jnl96cro._.js.map +1 -0
  860. package/.next/server/chunks/ssr/[root-of-the-server]__0e6ie8f1lflit._.js +3 -0
  861. package/.next/server/chunks/ssr/[root-of-the-server]__0e6ie8f1lflit._.js.map +1 -0
  862. package/.next/server/chunks/ssr/[root-of-the-server]__0ebwcvxo9acvx._.js +3 -0
  863. package/.next/server/chunks/ssr/[root-of-the-server]__0ebwcvxo9acvx._.js.map +1 -0
  864. package/.next/server/chunks/ssr/[root-of-the-server]__0idhg2fbiknzj._.js +3 -0
  865. package/.next/server/chunks/ssr/[root-of-the-server]__0idhg2fbiknzj._.js.map +1 -0
  866. package/.next/server/chunks/ssr/[root-of-the-server]__0k-w18w428_5_._.js +3 -0
  867. package/.next/server/chunks/ssr/[root-of-the-server]__0k-w18w428_5_._.js.map +1 -0
  868. package/.next/server/chunks/ssr/[root-of-the-server]__0qcpq09hg4us0._.js +3 -0
  869. package/.next/server/chunks/ssr/[root-of-the-server]__0qcpq09hg4us0._.js.map +1 -0
  870. package/.next/server/chunks/ssr/[root-of-the-server]__0ue6kxnxcsdwm._.js +3 -0
  871. package/.next/server/chunks/ssr/[root-of-the-server]__0ue6kxnxcsdwm._.js.map +1 -0
  872. package/.next/server/chunks/ssr/[root-of-the-server]__0ws8ymfetd__e._.js +3 -0
  873. package/.next/server/chunks/ssr/[root-of-the-server]__0ws8ymfetd__e._.js.map +1 -0
  874. package/.next/server/chunks/ssr/[root-of-the-server]__0x434x8kjfomg._.js +3 -0
  875. package/.next/server/chunks/ssr/[root-of-the-server]__0x434x8kjfomg._.js.map +1 -0
  876. package/.next/server/chunks/ssr/[root-of-the-server]__12ucz-z8gi2wm._.js +3 -0
  877. package/.next/server/chunks/ssr/[root-of-the-server]__12ucz-z8gi2wm._.js.map +1 -0
  878. package/.next/server/chunks/ssr/[root-of-the-server]__12v4b4ag6pnuz._.js +3 -0
  879. package/.next/server/chunks/ssr/[root-of-the-server]__12v4b4ag6pnuz._.js.map +1 -0
  880. package/.next/server/chunks/ssr/[root-of-the-server]__14-2op73282-w._.js +14 -0
  881. package/.next/server/chunks/ssr/[root-of-the-server]__14-2op73282-w._.js.map +1 -0
  882. package/.next/server/chunks/ssr/[root-of-the-server]__17gzuebq4v3qk._.js +3 -0
  883. package/.next/server/chunks/ssr/[root-of-the-server]__17gzuebq4v3qk._.js.map +1 -0
  884. package/.next/server/chunks/ssr/[root-of-the-server]__1csnvoh619028._.js +3 -0
  885. package/.next/server/chunks/ssr/[root-of-the-server]__1csnvoh619028._.js.map +1 -0
  886. package/.next/server/chunks/ssr/[root-of-the-server]__1m7dl-6i9qiqn._.js +3 -0
  887. package/.next/server/chunks/ssr/[root-of-the-server]__1m7dl-6i9qiqn._.js.map +1 -0
  888. package/.next/server/chunks/ssr/[root-of-the-server]__1rn9z04uwbxhb._.js +3 -0
  889. package/.next/server/chunks/ssr/[root-of-the-server]__1rn9z04uwbxhb._.js.map +1 -0
  890. package/.next/server/chunks/ssr/[root-of-the-server]__1wlwflqfou0bh._.js +3 -0
  891. package/.next/server/chunks/ssr/[root-of-the-server]__1wlwflqfou0bh._.js.map +1 -0
  892. package/.next/server/chunks/ssr/[root-of-the-server]__20ne3r6pcgicp._.js +3 -0
  893. package/.next/server/chunks/ssr/[root-of-the-server]__20ne3r6pcgicp._.js.map +1 -0
  894. package/.next/server/chunks/ssr/[turbopack]_runtime.js +935 -0
  895. package/.next/server/chunks/ssr/[turbopack]_runtime.js.map +10 -0
  896. package/.next/server/chunks/ssr/_0-pg9xcfzsxes._.js +3 -0
  897. package/.next/server/chunks/ssr/_0-pg9xcfzsxes._.js.map +1 -0
  898. package/.next/server/chunks/ssr/_00xm33jaybves._.js +3 -0
  899. package/.next/server/chunks/ssr/_00xm33jaybves._.js.map +1 -0
  900. package/.next/server/chunks/ssr/_026bi60jl1puk._.js +3 -0
  901. package/.next/server/chunks/ssr/_026bi60jl1puk._.js.map +1 -0
  902. package/.next/server/chunks/ssr/_055fzzctizrl9._.js +3 -0
  903. package/.next/server/chunks/ssr/_055fzzctizrl9._.js.map +1 -0
  904. package/.next/server/chunks/ssr/_05yfy_2w07awo._.js +3 -0
  905. package/.next/server/chunks/ssr/_05yfy_2w07awo._.js.map +1 -0
  906. package/.next/server/chunks/ssr/_07h0nhyqn2dzr._.js +3 -0
  907. package/.next/server/chunks/ssr/_07h0nhyqn2dzr._.js.map +1 -0
  908. package/.next/server/chunks/ssr/_07h_4c6z4aup2._.js +3 -0
  909. package/.next/server/chunks/ssr/_07h_4c6z4aup2._.js.map +1 -0
  910. package/.next/server/chunks/ssr/_07ns5-wirt2rm._.js +3 -0
  911. package/.next/server/chunks/ssr/_07ns5-wirt2rm._.js.map +1 -0
  912. package/.next/server/chunks/ssr/_07qibgb3c5l89._.js +3 -0
  913. package/.next/server/chunks/ssr/_07qibgb3c5l89._.js.map +1 -0
  914. package/.next/server/chunks/ssr/_0axhkh5eel9yw._.js +3 -0
  915. package/.next/server/chunks/ssr/_0axhkh5eel9yw._.js.map +1 -0
  916. package/.next/server/chunks/ssr/_0cw6p0eedzd28._.js +3 -0
  917. package/.next/server/chunks/ssr/_0cw6p0eedzd28._.js.map +1 -0
  918. package/.next/server/chunks/ssr/_0f8-6t0_oqza5._.js +9 -0
  919. package/.next/server/chunks/ssr/_0f8-6t0_oqza5._.js.map +1 -0
  920. package/.next/server/chunks/ssr/_0ijop4gxx3i74._.js +25 -0
  921. package/.next/server/chunks/ssr/_0ijop4gxx3i74._.js.map +1 -0
  922. package/.next/server/chunks/ssr/_0j7t-g9s-xw2k._.js +3 -0
  923. package/.next/server/chunks/ssr/_0j7t-g9s-xw2k._.js.map +1 -0
  924. package/.next/server/chunks/ssr/_0omyccx6813z2._.js +3 -0
  925. package/.next/server/chunks/ssr/_0omyccx6813z2._.js.map +1 -0
  926. package/.next/server/chunks/ssr/_0rs3zupho3jtn._.js +3 -0
  927. package/.next/server/chunks/ssr/_0rs3zupho3jtn._.js.map +1 -0
  928. package/.next/server/chunks/ssr/_0tpg1kyh-jvo_._.js +3 -0
  929. package/.next/server/chunks/ssr/_0tpg1kyh-jvo_._.js.map +1 -0
  930. package/.next/server/chunks/ssr/_0umx11tm2hknm._.js +3 -0
  931. package/.next/server/chunks/ssr/_0umx11tm2hknm._.js.map +1 -0
  932. package/.next/server/chunks/ssr/_100pig1hqblaj._.js +3 -0
  933. package/.next/server/chunks/ssr/_100pig1hqblaj._.js.map +1 -0
  934. package/.next/server/chunks/ssr/_10fls_hq4fpul._.js +3 -0
  935. package/.next/server/chunks/ssr/_10fls_hq4fpul._.js.map +1 -0
  936. package/.next/server/chunks/ssr/_135h5be3e-da_._.js +3 -0
  937. package/.next/server/chunks/ssr/_135h5be3e-da_._.js.map +1 -0
  938. package/.next/server/chunks/ssr/_15_m3et_qvi8o._.js +136 -0
  939. package/.next/server/chunks/ssr/_15_m3et_qvi8o._.js.map +1 -0
  940. package/.next/server/chunks/ssr/_17qjjfpo8bdyr._.js +3 -0
  941. package/.next/server/chunks/ssr/_17qjjfpo8bdyr._.js.map +1 -0
  942. package/.next/server/chunks/ssr/_1_zhi9sw7y-9k._.js +3 -0
  943. package/.next/server/chunks/ssr/_1_zhi9sw7y-9k._.js.map +1 -0
  944. package/.next/server/chunks/ssr/_1j3n0s5oa8ydl._.js +3 -0
  945. package/.next/server/chunks/ssr/_1j3n0s5oa8ydl._.js.map +1 -0
  946. package/.next/server/chunks/ssr/_1l_ctr5xszb5f._.js +3 -0
  947. package/.next/server/chunks/ssr/_1l_ctr5xszb5f._.js.map +1 -0
  948. package/.next/server/chunks/ssr/_1le90grlliyg5._.js +3 -0
  949. package/.next/server/chunks/ssr/_1le90grlliyg5._.js.map +1 -0
  950. package/.next/server/chunks/ssr/_1n1x5lti-0y_f._.js +3 -0
  951. package/.next/server/chunks/ssr/_1n1x5lti-0y_f._.js.map +1 -0
  952. package/.next/server/chunks/ssr/_1oaxfn6inhrly._.js +3 -0
  953. package/.next/server/chunks/ssr/_1oaxfn6inhrly._.js.map +1 -0
  954. package/.next/server/chunks/ssr/_1tk04py_mc595._.js +3 -0
  955. package/.next/server/chunks/ssr/_1tk04py_mc595._.js.map +1 -0
  956. package/.next/server/chunks/ssr/_1x4-igv-plryx._.js +3 -0
  957. package/.next/server/chunks/ssr/_1x4-igv-plryx._.js.map +1 -0
  958. package/.next/server/chunks/ssr/_1ydm1bpbu80ve._.js +3 -0
  959. package/.next/server/chunks/ssr/_1ydm1bpbu80ve._.js.map +1 -0
  960. package/.next/server/chunks/ssr/_1zpk-aphfnyrn._.js +3 -0
  961. package/.next/server/chunks/ssr/_1zpk-aphfnyrn._.js.map +1 -0
  962. package/.next/server/chunks/ssr/_208buljkex-zn._.js +3 -0
  963. package/.next/server/chunks/ssr/_208buljkex-zn._.js.map +1 -0
  964. package/.next/server/chunks/ssr/_21awjpye_8ftw._.js +3 -0
  965. package/.next/server/chunks/ssr/_21awjpye_8ftw._.js.map +1 -0
  966. package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-psc_d2.js +3 -0
  967. package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-psc_d2.js.map +1 -0
  968. package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yrisjoev.js +3 -0
  969. package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yrisjoev.js.map +1 -0
  970. package/.next/server/chunks/ssr/_next-internal_server_app_blog_[slug]_page_actions_1xd8lf61mupwf.js +3 -0
  971. package/.next/server/chunks/ssr/_next-internal_server_app_blog_[slug]_page_actions_1xd8lf61mupwf.js.map +1 -0
  972. package/.next/server/chunks/ssr/_next-internal_server_app_blog_page_actions_1nf9zawbhjeiv.js +3 -0
  973. package/.next/server/chunks/ssr/_next-internal_server_app_blog_page_actions_1nf9zawbhjeiv.js.map +1 -0
  974. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_automations_page_actions_0goq3aojk1w34.js +3 -0
  975. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_automations_page_actions_0goq3aojk1w34.js.map +1 -0
  976. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_campaigns_[id]_page_actions_0yprr1p1obhkv.js +3 -0
  977. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_campaigns_[id]_page_actions_0yprr1p1obhkv.js.map +1 -0
  978. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_campaigns_page_actions_0wxku62xg7-8d.js +3 -0
  979. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_campaigns_page_actions_0wxku62xg7-8d.js.map +1 -0
  980. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_contacts_page_actions_03nfyumhdne4o.js +3 -0
  981. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_contacts_page_actions_03nfyumhdne4o.js.map +1 -0
  982. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_forms_page_actions_0y0vhf1s8gskw.js +3 -0
  983. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_forms_page_actions_0y0vhf1s8gskw.js.map +1 -0
  984. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_media_page_actions_15b2td6gfl39a.js +3 -0
  985. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_media_page_actions_15b2td6gfl39a.js.map +1 -0
  986. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_page_actions_10dr1c56aj99-.js +3 -0
  987. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_page_actions_10dr1c56aj99-.js.map +1 -0
  988. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_senders_page_actions_1wuvc1b945nkt.js +3 -0
  989. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_senders_page_actions_1wuvc1b945nkt.js.map +1 -0
  990. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_settings_page_actions_0zse4882vcfr3.js +3 -0
  991. package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_settings_page_actions_0zse4882vcfr3.js.map +1 -0
  992. package/.next/server/chunks/ssr/_next-internal_server_app_doc_page_actions_0rt535c9bfkq2.js +3 -0
  993. package/.next/server/chunks/ssr/_next-internal_server_app_doc_page_actions_0rt535c9bfkq2.js.map +1 -0
  994. package/.next/server/chunks/ssr/_next-internal_server_app_documentation_page_actions_1iy5tav034rd5.js +3 -0
  995. package/.next/server/chunks/ssr/_next-internal_server_app_documentation_page_actions_1iy5tav034rd5.js.map +1 -0
  996. package/.next/server/chunks/ssr/_next-internal_server_app_login_page_actions_04fnjo0ny9dmg.js +3 -0
  997. package/.next/server/chunks/ssr/_next-internal_server_app_login_page_actions_04fnjo0ny9dmg.js.map +1 -0
  998. package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_0hhsz1jew5ls7.js +3 -0
  999. package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_0hhsz1jew5ls7.js.map +1 -0
  1000. package/.next/server/chunks/ssr/_next-internal_server_app_unsubscribe_page_actions_0tw5uaxujcbgr.js +3 -0
  1001. package/.next/server/chunks/ssr/_next-internal_server_app_unsubscribe_page_actions_0tw5uaxujcbgr.js.map +1 -0
  1002. package/.next/server/chunks/ssr/node_modules__pnpm_09-vsdyv4rf07._.js +33 -0
  1003. package/.next/server/chunks/ssr/node_modules__pnpm_09-vsdyv4rf07._.js.map +1 -0
  1004. package/.next/server/chunks/ssr/node_modules__pnpm_0g_pkwhpxnn41._.js +3 -0
  1005. package/.next/server/chunks/ssr/node_modules__pnpm_0g_pkwhpxnn41._.js.map +1 -0
  1006. package/.next/server/chunks/ssr/node_modules__pnpm_0ish0pdmujvdk._.js +3 -0
  1007. package/.next/server/chunks/ssr/node_modules__pnpm_0ish0pdmujvdk._.js.map +1 -0
  1008. package/.next/server/chunks/ssr/node_modules__pnpm_0ki86aixwegwo._.js +3 -0
  1009. package/.next/server/chunks/ssr/node_modules__pnpm_0ki86aixwegwo._.js.map +1 -0
  1010. package/.next/server/chunks/ssr/node_modules__pnpm_19v8qxrrt436n._.js +3 -0
  1011. package/.next/server/chunks/ssr/node_modules__pnpm_19v8qxrrt436n._.js.map +1 -0
  1012. package/.next/server/chunks/ssr/node_modules__pnpm_1g-xnwqgszuwu._.js +3 -0
  1013. package/.next/server/chunks/ssr/node_modules__pnpm_1g-xnwqgszuwu._.js.map +1 -0
  1014. package/.next/server/chunks/ssr/src_app_blog_[slug]_page_tsx_1ug1kslm_svqp._.js +77 -0
  1015. package/.next/server/chunks/ssr/src_app_blog_[slug]_page_tsx_1ug1kslm_svqp._.js.map +1 -0
  1016. package/.next/server/chunks/ssr/src_app_dashboard_senders_page_tsx_1b3t4vyr5fnbx._.js +3 -0
  1017. package/.next/server/chunks/ssr/src_app_dashboard_senders_page_tsx_1b3t4vyr5fnbx._.js.map +1 -0
  1018. package/.next/server/chunks/ssr/src_app_unsubscribe_page_tsx_0o16gze50x9sf._.js +3 -0
  1019. package/.next/server/chunks/ssr/src_app_unsubscribe_page_tsx_0o16gze50x9sf._.js.map +1 -0
  1020. package/.next/server/chunks/ssr/src_components_12ptlsadu9zd7._.js +3 -0
  1021. package/.next/server/chunks/ssr/src_components_12ptlsadu9zd7._.js.map +1 -0
  1022. package/.next/server/chunks/ssr/src_components_app_0pk35_glzt8wq._.js +3 -0
  1023. package/.next/server/chunks/ssr/src_components_app_0pk35_glzt8wq._.js.map +1 -0
  1024. package/.next/server/chunks/ssr/src_components_app_auth_login-form_tsx_1r6tbf3s9mxu7._.js +3 -0
  1025. package/.next/server/chunks/ssr/src_components_app_auth_login-form_tsx_1r6tbf3s9mxu7._.js.map +1 -0
  1026. package/.next/server/chunks/ssr/src_components_app_campaigns_campaign-list_tsx_1-1uum6gsaisy._.js +3 -0
  1027. package/.next/server/chunks/ssr/src_components_app_campaigns_campaign-list_tsx_1-1uum6gsaisy._.js.map +1 -0
  1028. package/.next/server/chunks/ssr/src_components_app_contacts_contact-list_tsx_1f91x0dykt7wo._.js +3 -0
  1029. package/.next/server/chunks/ssr/src_components_app_contacts_contact-list_tsx_1f91x0dykt7wo._.js.map +1 -0
  1030. package/.next/server/chunks/ssr/src_components_app_forms_forms-section_tsx_15gbq9k8__4dn._.js +3 -0
  1031. package/.next/server/chunks/ssr/src_components_app_forms_forms-section_tsx_15gbq9k8__4dn._.js.map +1 -0
  1032. package/.next/server/chunks/ssr/src_components_app_media_media-manager_tsx_08p0-g5iq1xdy._.js +3 -0
  1033. package/.next/server/chunks/ssr/src_components_app_media_media-manager_tsx_08p0-g5iq1xdy._.js.map +1 -0
  1034. package/.next/server/chunks/ssr/src_components_app_overview_tsx_0106-5tj3j3_u._.js +3 -0
  1035. package/.next/server/chunks/ssr/src_components_app_overview_tsx_0106-5tj3j3_u._.js.map +1 -0
  1036. package/.next/server/chunks/ssr/src_components_app_settings_tsx_151892lqtlh2m._.js +3 -0
  1037. package/.next/server/chunks/ssr/src_components_app_settings_tsx_151892lqtlh2m._.js.map +1 -0
  1038. package/.next/server/chunks/ssr/src_components_landing_footer_tsx_17g4as_911h_z._.js +3 -0
  1039. package/.next/server/chunks/ssr/src_components_landing_footer_tsx_17g4as_911h_z._.js.map +1 -0
  1040. package/.next/server/chunks/ssr/src_components_landing_landing-page_tsx_0jt_enjh4367d._.js +3 -0
  1041. package/.next/server/chunks/ssr/src_components_landing_landing-page_tsx_0jt_enjh4367d._.js.map +1 -0
  1042. package/.next/server/chunks/ssr/src_components_landing_navbar_tsx_0ixz81r-fflfv._.js +3 -0
  1043. package/.next/server/chunks/ssr/src_components_landing_navbar_tsx_0ixz81r-fflfv._.js.map +1 -0
  1044. package/.next/server/chunks/ssr/src_components_ui_14xpyv0xpr1d4._.js +3 -0
  1045. package/.next/server/chunks/ssr/src_components_ui_14xpyv0xpr1d4._.js.map +1 -0
  1046. package/.next/server/chunks/ssr/src_components_ui_alert-dialog_tsx_0pzef58n2zd63._.js +3 -0
  1047. package/.next/server/chunks/ssr/src_components_ui_alert-dialog_tsx_0pzef58n2zd63._.js.map +1 -0
  1048. package/.next/server/chunks/ssr/src_components_ui_dialog_tsx_1tn-i_6d3rhzt._.js +3 -0
  1049. package/.next/server/chunks/ssr/src_components_ui_dialog_tsx_1tn-i_6d3rhzt._.js.map +1 -0
  1050. package/.next/server/chunks/ssr/src_lib_db_ts_16pqnef5-fsqp._.js +3 -0
  1051. package/.next/server/chunks/ssr/src_lib_db_ts_16pqnef5-fsqp._.js.map +1 -0
  1052. package/.next/server/edge/chunks/06xu_next_dist_esm_build_templates_edge-wrapper_0_zgqn351fy42.js.map +1 -0
  1053. package/.next/server/edge/chunks/06xu_next_dist_esm_build_templates_edge-wrapper_13xzu7i5n4bm6.js.map +1 -0
  1054. package/.next/server/edge/chunks/06xu_next_dist_esm_build_templates_edge-wrapper_1bso2q3tp24ts.js +3 -0
  1055. package/.next/server/edge/chunks/06xu_next_dist_esm_build_templates_edge-wrapper_1bso2q3tp24ts.js.map +1 -0
  1056. package/.next/server/edge/chunks/1v4i_next_dist_esm_build_templates_edge-wrapper_0_zgqn351fy42.js +3 -0
  1057. package/.next/server/edge/chunks/1v4i_next_dist_esm_build_templates_edge-wrapper_13xzu7i5n4bm6.js +3 -0
  1058. package/.next/server/edge/chunks/[root-of-the-server]__1hmjpfrn42nte._.js +11 -0
  1059. package/.next/server/edge/chunks/[root-of-the-server]__1hmjpfrn42nte._.js.map +1 -0
  1060. package/.next/server/edge/chunks/_0h6n282dfcei-._.js +3 -0
  1061. package/.next/server/edge/chunks/_0h6n282dfcei-._.js.map +1 -0
  1062. package/.next/server/functions-config-manifest.json +11 -0
  1063. package/.next/server/instrumentation/middleware-manifest.json +12 -0
  1064. package/.next/server/instrumentation.js +4 -0
  1065. package/.next/server/instrumentation.js.map +5 -0
  1066. package/.next/server/instrumentation.js.nft.json +1 -0
  1067. package/.next/server/interception-route-rewrite-manifest.js +1 -0
  1068. package/.next/server/middleware/middleware-manifest.json +36 -0
  1069. package/.next/server/middleware-build-manifest.js +223 -0
  1070. package/.next/server/middleware-manifest.json +40 -0
  1071. package/.next/server/next-font-manifest.js +1 -0
  1072. package/.next/server/next-font-manifest.json +6 -0
  1073. package/.next/server/pages/404.html +1 -0
  1074. package/.next/server/pages/500.html +1 -0
  1075. package/.next/server/pages-manifest.json +4 -0
  1076. package/.next/server/prefetch-hints.json +90 -0
  1077. package/.next/server/preview-props.json +5 -0
  1078. package/.next/server/server-reference-manifest.js +1 -0
  1079. package/.next/server/server-reference-manifest.json +5 -0
  1080. package/.next/static/chunks/05aoy23ycul7p.js +1 -0
  1081. package/.next/static/chunks/05sohy0cbb3y1.js +1 -0
  1082. package/.next/static/chunks/0cz1d0mv5g_q7.js +1 -0
  1083. package/.next/static/chunks/0i_sn52ynzipf.js +1 -0
  1084. package/.next/static/chunks/0p7bxql_g7q64.js +1 -0
  1085. package/.next/static/chunks/0slfvme32bzta.js +1 -0
  1086. package/.next/static/chunks/0uofq2n85u5yc.js +1 -0
  1087. package/.next/static/chunks/0w4j5ek-0m_l6.js +1 -0
  1088. package/.next/static/chunks/0y6_igpmb5q25.js +1 -0
  1089. package/.next/static/chunks/10g8gc1_4dmb6.js +7 -0
  1090. package/.next/static/chunks/10r5b4lw40ag0.js +1 -0
  1091. package/.next/static/chunks/14e2j0tc9nsmf.js +1 -0
  1092. package/.next/static/chunks/1561y2t336828.js +132 -0
  1093. package/.next/static/chunks/19th1mnoh3o6j.js +1 -0
  1094. package/.next/static/chunks/1_-m6h07aqh30.js +134 -0
  1095. package/.next/static/chunks/1_x2f-g925jb6.js +1 -0
  1096. package/.next/static/chunks/1bitvurkxx2nz.js +1 -0
  1097. package/.next/static/chunks/1ecuhonper9l0.js +1 -0
  1098. package/.next/static/chunks/1h2_45-gp-481.js +1 -0
  1099. package/.next/static/chunks/1j3ehn_xw8a55.js +1 -0
  1100. package/.next/static/chunks/1l65wr07pb00x.js +1 -0
  1101. package/.next/static/chunks/1vu83p4si8fws.js +1 -0
  1102. package/.next/static/chunks/21bye8lfwlt44.js +1 -0
  1103. package/.next/static/chunks/2e9dsi1shhtgh.js +22 -0
  1104. package/.next/static/chunks/2k_rdgx_r4jwv.js +1 -0
  1105. package/.next/static/chunks/2lagivmzn853-.js +276 -0
  1106. package/.next/static/chunks/2pwymhlh1h5hq.js +1 -0
  1107. package/.next/static/chunks/2qh8jmvqq3j7u.js +1 -0
  1108. package/.next/static/chunks/30ut98lh7sgz_.js +1 -0
  1109. package/.next/static/chunks/31iu25a06-uq5.js +31 -0
  1110. package/.next/static/chunks/357eter5z_lqp.js +1 -0
  1111. package/.next/static/chunks/36ycf2tz4-z71.js +1 -0
  1112. package/.next/static/chunks/3ecdy1hiasj67.css +1 -0
  1113. package/.next/static/chunks/3h6bvrhsfedzo.js +1 -0
  1114. package/.next/static/chunks/3nv776qckior_.js +1 -0
  1115. package/.next/static/chunks/3w8vde_er6gsg.js +1 -0
  1116. package/.next/static/chunks/44l1w8l12d4mt.css +1 -0
  1117. package/.next/static/chunks/turbopack-2u1d16houkiyo.js +1 -0
  1118. package/.next/static/vK0UjQCR1UeWb0AjLM6gH/_buildManifest.js +11 -0
  1119. package/.next/static/vK0UjQCR1UeWb0AjLM6gH/_clientMiddlewareManifest.js +10 -0
  1120. package/.next/static/vK0UjQCR1UeWb0AjLM6gH/_ssgManifest.js +1 -0
  1121. package/.next/trace +2 -0
  1122. package/.next/trace-build +1 -0
  1123. package/.next/turbopack +0 -0
  1124. package/.next/types/cache-life.d.ts +114 -0
  1125. package/.next/types/root-params.d.ts +3 -0
  1126. package/.next/types/routes.d.ts +131 -0
  1127. package/.next/types/validator.ts +793 -0
  1128. package/README.md +36 -2
  1129. package/bin/lib/config.mjs +236 -0
  1130. package/bin/mailcast.mjs +567 -0
  1131. package/components.json +21 -0
  1132. package/next.config.mjs +13 -0
  1133. package/package.json +142 -4
  1134. package/postcss.config.mjs +5 -0
  1135. package/prisma/migrations/20261122000000_init/migration.sql +295 -0
  1136. package/prisma/migrations/migration_lock.toml +3 -0
  1137. package/prisma/schema.prisma +332 -0
  1138. package/public/logo.svg +29 -0
  1139. package/public/robots.txt +14 -0
  1140. package/scripts/load-env.mjs +12 -0
  1141. package/scripts/seed-admin.mjs +74 -0
  1142. package/src/app/api/auth/login/route.ts +69 -0
  1143. package/src/app/api/auth/logout/route.ts +35 -0
  1144. package/src/app/api/auth/session/route.ts +55 -0
  1145. package/src/app/api/auth/setup/route.ts +88 -0
  1146. package/src/app/api/campaigns/[id]/publish/route.ts +62 -0
  1147. package/src/app/api/campaigns/[id]/route.ts +180 -0
  1148. package/src/app/api/campaigns/[id]/send/route.ts +285 -0
  1149. package/src/app/api/campaigns/[id]/stats/route.ts +98 -0
  1150. package/src/app/api/campaigns/all/route.ts +15 -0
  1151. package/src/app/api/campaigns/route.ts +167 -0
  1152. package/src/app/api/contacts/[id]/route.ts +21 -0
  1153. package/src/app/api/contacts/all/route.ts +14 -0
  1154. package/src/app/api/contacts/import/route.ts +230 -0
  1155. package/src/app/api/contacts/route.ts +189 -0
  1156. package/src/app/api/cron/route.ts +36 -0
  1157. package/src/app/api/forms/[id]/route.ts +330 -0
  1158. package/src/app/api/forms/[id]/submissions/route.ts +72 -0
  1159. package/src/app/api/forms/[id]/submit/route.ts +448 -0
  1160. package/src/app/api/forms/route.ts +283 -0
  1161. package/src/app/api/forms/templates/[id]/route.ts +18 -0
  1162. package/src/app/api/forms/templates/route.ts +94 -0
  1163. package/src/app/api/groups/[id]/contacts/route.ts +201 -0
  1164. package/src/app/api/groups/[id]/route.ts +154 -0
  1165. package/src/app/api/groups/route.ts +105 -0
  1166. package/src/app/api/media/[name]/route.ts +19 -0
  1167. package/src/app/api/media/route.ts +52 -0
  1168. package/src/app/api/public/forms/[id]/route.ts +3 -0
  1169. package/src/app/api/public/posts/[slug]/route.ts +37 -0
  1170. package/src/app/api/public/posts/route.ts +27 -0
  1171. package/src/app/api/public/unsubscribe/route.ts +202 -0
  1172. package/src/app/api/route.ts +5 -0
  1173. package/src/app/api/senders/[id]/route.ts +28 -0
  1174. package/src/app/api/senders/route.ts +100 -0
  1175. package/src/app/api/settings/telegram/route.ts +110 -0
  1176. package/src/app/api/settings/telegram/stats/route.ts +45 -0
  1177. package/src/app/api/stats/route.ts +87 -0
  1178. package/src/app/api/t/[token]/route.ts +99 -0
  1179. package/src/app/api/templates/[id]/route.ts +97 -0
  1180. package/src/app/api/templates/route.ts +71 -0
  1181. package/src/app/api/workflows/[id]/enroll/route.ts +131 -0
  1182. package/src/app/api/workflows/[id]/route.ts +326 -0
  1183. package/src/app/api/workflows/[id]/run/route.ts +36 -0
  1184. package/src/app/api/workflows/route.ts +212 -0
  1185. package/src/app/blog/[slug]/page.tsx +66 -0
  1186. package/src/app/blog/page.tsx +69 -0
  1187. package/src/app/dashboard/automations/page.tsx +10 -0
  1188. package/src/app/dashboard/campaigns/[id]/page.tsx +10 -0
  1189. package/src/app/dashboard/campaigns/page.tsx +5 -0
  1190. package/src/app/dashboard/contacts/page.tsx +5 -0
  1191. package/src/app/dashboard/forms/page.tsx +5 -0
  1192. package/src/app/dashboard/layout.tsx +18 -0
  1193. package/src/app/dashboard/media/page.tsx +5 -0
  1194. package/src/app/dashboard/page.tsx +5 -0
  1195. package/src/app/dashboard/senders/page.tsx +20 -0
  1196. package/src/app/dashboard/settings/page.tsx +5 -0
  1197. package/src/app/doc/page.tsx +5 -0
  1198. package/src/app/documentation/page.tsx +5 -0
  1199. package/src/app/globals.css +146 -0
  1200. package/src/app/layout.tsx +48 -0
  1201. package/src/app/login/page.tsx +10 -0
  1202. package/src/app/page.tsx +5 -0
  1203. package/src/app/unsubscribe/page.tsx +333 -0
  1204. package/src/components/app/auth/login-form.tsx +237 -0
  1205. package/src/components/app/automations/automations-section.tsx +462 -0
  1206. package/src/components/app/automations/enroll-dialog.tsx +23 -0
  1207. package/src/components/app/automations/flow-nodes.tsx +203 -0
  1208. package/src/components/app/automations/node-library.tsx +192 -0
  1209. package/src/components/app/automations/node-types.ts +520 -0
  1210. package/src/components/app/automations/property-panel.tsx +1657 -0
  1211. package/src/components/app/automations/workflow-builder.tsx +751 -0
  1212. package/src/components/app/campaigns/campaign-editor.tsx +1603 -0
  1213. package/src/components/app/campaigns/campaign-list.tsx +227 -0
  1214. package/src/components/app/campaigns/rich-text-editor.tsx +296 -0
  1215. package/src/components/app/client-auth-gate.tsx +54 -0
  1216. package/src/components/app/contacts/contact-list.tsx +1174 -0
  1217. package/src/components/app/contacts/import-dialog.tsx +296 -0
  1218. package/src/components/app/dashboard-shell.tsx +43 -0
  1219. package/src/components/app/dashboard.tsx +93 -0
  1220. package/src/components/app/empty-state.tsx +43 -0
  1221. package/src/components/app/forms/embed-dialog.tsx +243 -0
  1222. package/src/components/app/forms/form-builder.tsx +1433 -0
  1223. package/src/components/app/forms/form-inspector.tsx +1560 -0
  1224. package/src/components/app/forms/form-preview.tsx +993 -0
  1225. package/src/components/app/forms/forms-section.tsx +315 -0
  1226. package/src/components/app/forms/submissions-dialog.tsx +245 -0
  1227. package/src/components/app/forms/types.ts +103 -0
  1228. package/src/components/app/media/media-manager.tsx +212 -0
  1229. package/src/components/app/overview.tsx +209 -0
  1230. package/src/components/app/quick-create.tsx +708 -0
  1231. package/src/components/app/section-heading.tsx +34 -0
  1232. package/src/components/app/senders/add-sender-dialog.tsx +179 -0
  1233. package/src/components/app/senders/sender-list.tsx +296 -0
  1234. package/src/components/app/settings.tsx +611 -0
  1235. package/src/components/app/sidebar.tsx +207 -0
  1236. package/src/components/app/stat-card.tsx +56 -0
  1237. package/src/components/app/status-badge.tsx +49 -0
  1238. package/src/components/app/templates/block-inspector.tsx +1594 -0
  1239. package/src/components/app/templates/canvas-block.tsx +541 -0
  1240. package/src/components/app/templates/email-builder-client.tsx +986 -0
  1241. package/src/components/app/templates/email-builder.tsx +23 -0
  1242. package/src/components/app/topbar.tsx +72 -0
  1243. package/src/components/app/use-api.ts +202 -0
  1244. package/src/components/landing/faq.tsx +84 -0
  1245. package/src/components/landing/features.tsx +147 -0
  1246. package/src/components/landing/final-cta.tsx +52 -0
  1247. package/src/components/landing/footer.tsx +89 -0
  1248. package/src/components/landing/hero.tsx +391 -0
  1249. package/src/components/landing/how-it-works.tsx +87 -0
  1250. package/src/components/landing/landing-page.tsx +45 -0
  1251. package/src/components/landing/logo.tsx +19 -0
  1252. package/src/components/landing/navbar.tsx +113 -0
  1253. package/src/components/landing/pricing.tsx +135 -0
  1254. package/src/components/landing/reveal.tsx +36 -0
  1255. package/src/components/landing/stats-bar.tsx +61 -0
  1256. package/src/components/ui/accordion.tsx +66 -0
  1257. package/src/components/ui/alert-dialog.tsx +157 -0
  1258. package/src/components/ui/alert.tsx +66 -0
  1259. package/src/components/ui/aspect-ratio.tsx +11 -0
  1260. package/src/components/ui/avatar.tsx +53 -0
  1261. package/src/components/ui/badge.tsx +46 -0
  1262. package/src/components/ui/breadcrumb.tsx +109 -0
  1263. package/src/components/ui/button.tsx +59 -0
  1264. package/src/components/ui/calendar.tsx +213 -0
  1265. package/src/components/ui/card.tsx +92 -0
  1266. package/src/components/ui/carousel.tsx +246 -0
  1267. package/src/components/ui/chart.tsx +353 -0
  1268. package/src/components/ui/checkbox.tsx +32 -0
  1269. package/src/components/ui/collapsible.tsx +33 -0
  1270. package/src/components/ui/command.tsx +184 -0
  1271. package/src/components/ui/context-menu.tsx +252 -0
  1272. package/src/components/ui/dialog.tsx +143 -0
  1273. package/src/components/ui/drawer.tsx +135 -0
  1274. package/src/components/ui/dropdown-menu.tsx +257 -0
  1275. package/src/components/ui/form.tsx +167 -0
  1276. package/src/components/ui/hover-card.tsx +44 -0
  1277. package/src/components/ui/input-otp.tsx +77 -0
  1278. package/src/components/ui/input.tsx +21 -0
  1279. package/src/components/ui/label.tsx +24 -0
  1280. package/src/components/ui/menubar.tsx +276 -0
  1281. package/src/components/ui/navigation-menu.tsx +168 -0
  1282. package/src/components/ui/pagination.tsx +127 -0
  1283. package/src/components/ui/popover.tsx +48 -0
  1284. package/src/components/ui/progress.tsx +31 -0
  1285. package/src/components/ui/radio-group.tsx +45 -0
  1286. package/src/components/ui/resizable.tsx +56 -0
  1287. package/src/components/ui/scroll-area.tsx +58 -0
  1288. package/src/components/ui/select.tsx +185 -0
  1289. package/src/components/ui/separator.tsx +28 -0
  1290. package/src/components/ui/sheet.tsx +139 -0
  1291. package/src/components/ui/sidebar.tsx +726 -0
  1292. package/src/components/ui/skeleton.tsx +13 -0
  1293. package/src/components/ui/slider.tsx +63 -0
  1294. package/src/components/ui/sonner.tsx +25 -0
  1295. package/src/components/ui/switch.tsx +31 -0
  1296. package/src/components/ui/table.tsx +116 -0
  1297. package/src/components/ui/tabs.tsx +66 -0
  1298. package/src/components/ui/textarea.tsx +18 -0
  1299. package/src/components/ui/toast.tsx +129 -0
  1300. package/src/components/ui/toaster.tsx +35 -0
  1301. package/src/components/ui/toggle-group.tsx +73 -0
  1302. package/src/components/ui/toggle.tsx +47 -0
  1303. package/src/components/ui/tooltip.tsx +61 -0
  1304. package/src/hooks/use-app-store.ts +57 -0
  1305. package/src/hooks/use-mobile.ts +21 -0
  1306. package/src/hooks/use-toast.ts +194 -0
  1307. package/src/instrumentation.ts +9 -0
  1308. package/src/lib/auth.ts +95 -0
  1309. package/src/lib/automation-engine.ts +1094 -0
  1310. package/src/lib/automation.ts +43 -0
  1311. package/src/lib/blog-render.ts +34 -0
  1312. package/src/lib/campaign-persist.ts +10 -0
  1313. package/src/lib/contact-import.ts +137 -0
  1314. package/src/lib/cron-runner.ts +61 -0
  1315. package/src/lib/cron.ts +203 -0
  1316. package/src/lib/crypto.ts +52 -0
  1317. package/src/lib/database-url.ts +30 -0
  1318. package/src/lib/db.ts +560 -0
  1319. package/src/lib/email-builder.ts +1558 -0
  1320. package/src/lib/email-cid.ts +53 -0
  1321. package/src/lib/email-font.ts +39 -0
  1322. package/src/lib/email-template.ts +182 -0
  1323. package/src/lib/file-types.ts +18 -0
  1324. package/src/lib/form-builder.ts +1489 -0
  1325. package/src/lib/form-response.ts +101 -0
  1326. package/src/lib/form-submission.ts +98 -0
  1327. package/src/lib/gmail.ts +185 -0
  1328. package/src/lib/grapes-config.ts +38 -0
  1329. package/src/lib/group-memberships.ts +13 -0
  1330. package/src/lib/markdown.ts +25 -0
  1331. package/src/lib/public-url.ts +14 -0
  1332. package/src/lib/send-result.ts +65 -0
  1333. package/src/lib/session-token.ts +42 -0
  1334. package/src/lib/supabase-storage.ts +219 -0
  1335. package/src/lib/telegram.ts +197 -0
  1336. package/src/lib/template-validation.ts +34 -0
  1337. package/src/lib/tracking-html.ts +29 -0
  1338. package/src/lib/tracking-store.ts +65 -0
  1339. package/src/lib/tracking.ts +46 -0
  1340. package/src/lib/unsubscribe-token.ts +79 -0
  1341. package/src/lib/utils.ts +6 -0
  1342. package/src/middleware.ts +59 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../node_modules/.pnpm/%40radix-ui%2Breact-menu%402.2.1_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019_5b19b71a44c52a23e68bd8126ace118c/node_modules/%40radix-ui/react-menu/dist/index.mjs","../../../../node_modules/.pnpm/%40radix-ui%2Breact-dropdown-menu%402.2.1_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types_59087697bb8d70fe27e0ede367aec154/node_modules/%40radix-ui/react-dropdown-menu/dist/index.mjs","../../../../src/components/app/contacts/contact-list.tsx","../../../../src/components/ui/dropdown-menu.tsx","../../../../src/components/app/contacts/import-dialog.tsx","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/file-up.ts","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/circle.ts","../../../../node_modules/.pnpm/%40radix-ui%2Breact-menu%402.2.1_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019_5b19b71a44c52a23e68bd8126ace118c/node_modules/%40radix-ui/react-menu/src/menu.tsx","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/hash.ts","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/file-text.ts","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/mail-plus.ts","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/folder-plus.ts","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/ellipsis.ts","../../../../node_modules/.pnpm/%40radix-ui%2Breact-dropdown-menu%402.2.1_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types_59087697bb8d70fe27e0ede367aec154/node_modules/%40radix-ui/react-dropdown-menu/src/dropdown-menu.tsx","../../../../src/lib/contact-import.ts"],"sourcesContent":["\"use client\";\nvar __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\n// src/menu.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport {\n FocusScope,\n FocusScopeBranchProvider,\n useFocusScopeBranch,\n useFocusScopeBranchRegistry\n} from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport * as RovingFocusGroup from \"@radix-ui/react-roving-focus\";\nimport { createRovingFocusGroupScope } from \"@radix-ui/react-roving-focus\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { jsx } from \"react/jsx-runtime\";\nvar Direction = {\n LTR: \"ltr\",\n RTL: \"rtl\"\n};\nvar SELECTION_KEYS = [\"Enter\", \" \"];\nvar FIRST_KEYS = [\"ArrowDown\", \"PageUp\", \"Home\"];\nvar LAST_KEYS = [\"ArrowUp\", \"PageDown\", \"End\"];\nvar FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nvar SUB_OPEN_KEYS = {\n ltr: [...SELECTION_KEYS, \"ArrowRight\"],\n rtl: [...SELECTION_KEYS, \"ArrowLeft\"]\n};\nvar SUB_CLOSE_KEYS = {\n ltr: [\"ArrowLeft\"],\n rtl: [\"ArrowRight\"]\n};\nvar MENU_NAME = \"Menu\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(MENU_NAME);\nvar [createMenuContext, createMenuScope] = createContextScope(MENU_NAME, [\n createCollectionScope,\n createPopperScope,\n createRovingFocusGroupScope\n]);\nvar usePopperScope = createPopperScope();\nvar useRovingFocusGroupScope = createRovingFocusGroupScope();\nvar [MenuProvider, useMenuContext] = createMenuContext(MENU_NAME);\nvar [MenuRootProvider, useMenuRootContext] = createMenuContext(MENU_NAME);\nvar Menu = /* @__PURE__ */ __name((props) => {\n const { __scopeMenu, open = false, children, dir, onOpenChange, modal = true } = props;\n const popperScope = usePopperScope(__scopeMenu);\n const [content, setContent] = React.useState(null);\n const isUsingKeyboardRef = React.useRef(false);\n const handleOpenChange = useCallbackRef(onOpenChange);\n const direction = useDirection(dir);\n React.useEffect(() => {\n const handleKeyDown = /* @__PURE__ */ __name(() => {\n isUsingKeyboardRef.current = true;\n document.addEventListener(\"pointerdown\", handlePointer, { capture: true, once: true });\n document.addEventListener(\"pointermove\", handlePointer, { capture: true, once: true });\n }, \"handleKeyDown\");\n const handlePointer = /* @__PURE__ */ __name(() => isUsingKeyboardRef.current = false, \"handlePointer\");\n document.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n document.removeEventListener(\"pointerdown\", handlePointer, { capture: true });\n document.removeEventListener(\"pointermove\", handlePointer, { capture: true });\n };\n }, []);\n React.useEffect(() => {\n if (!open) {\n return;\n }\n const handleBlur = /* @__PURE__ */ __name(() => handleOpenChange(false), \"handleBlur\");\n window.addEventListener(\"blur\", handleBlur);\n return () => window.removeEventListener(\"blur\", handleBlur);\n }, [open, handleOpenChange]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n MenuProvider,\n {\n scope: __scopeMenu,\n open,\n onOpenChange: handleOpenChange,\n content,\n onContentChange: setContent,\n children: /* @__PURE__ */ jsx(\n MenuRootProvider,\n {\n scope: __scopeMenu,\n onClose: React.useCallback(() => handleOpenChange(false), [handleOpenChange]),\n isUsingKeyboardRef,\n dir: direction,\n modal,\n children\n }\n )\n }\n ) });\n}, \"Menu\");\nvar MenuAnchor = /* @__PURE__ */ React.forwardRef(\n /* @__PURE__ */ __name(function MenuAnchor2(props, forwardedRef) {\n const { __scopeMenu, ...anchorProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });\n }, \"MenuAnchor\")\n);\nvar PORTAL_NAME = \"MenuPortal\";\nvar [PortalProvider, usePortalContext] = createMenuContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar MenuPortal = /* @__PURE__ */ __name((props) => {\n const { __scopeMenu, forceMount, children, container } = props;\n const context = useMenuContext(PORTAL_NAME, __scopeMenu);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeMenu, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n}, \"MenuPortal\");\nvar CONTENT_NAME = \"MenuContent\";\nvar [MenuContentProvider, useMenuContentContext] = createMenuContext(CONTENT_NAME);\nvar MenuContent = /* @__PURE__ */ React.forwardRef(\n /* @__PURE__ */ __name(function MenuContent2(props, forwardedRef) {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: rootContext.modal ? /* @__PURE__ */ jsx(MenuRootContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(MenuRootContentNonModal, { ...contentProps, ref: forwardedRef }) }) }) });\n }, \"MenuContent\")\n);\nvar MenuRootContentModal = /* @__PURE__ */ React.forwardRef(\n // blank line to reduce diff noise\n /* @__PURE__ */ __name(function MenuRootContentModal2(props, forwardedRef) {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const content = ref.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: context.open,\n disableOutsideScroll: true,\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n ),\n onDismiss: () => context.onOpenChange(false)\n }\n );\n }, \"MenuRootContentModal\")\n);\nvar MenuRootContentNonModal = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function MenuRootContentNonModal2(props, forwardedRef) {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n return /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n onDismiss: () => context.onOpenChange(false)\n }\n );\n}, \"MenuRootContentNonModal\"));\nvar Slot = createSlot(\"MenuContent.ScrollLock\");\nvar MenuContentImpl = /* @__PURE__ */ React.forwardRef(\n // blank line to reduce diff noise\n /* @__PURE__ */ __name(function MenuContentImpl2(props, forwardedRef) {\n const {\n __scopeMenu,\n loop = false,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEntryFocus,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n disableOutsideScroll,\n ...contentProps\n } = props;\n const context = useMenuContext(CONTENT_NAME, __scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const getItems = useCollection(__scopeMenu);\n const [currentItemId, setCurrentItemId] = React.useState(null);\n const contentRef = React.useRef(null);\n const [branchNode, setBranchNode] = React.useState(null);\n useFocusScopeBranch(branchNode);\n const { nodes: branchNodes, registry: branchRegistry } = useFocusScopeBranchRegistry();\n const isModal = Boolean(trapFocus || disableOutsideScroll);\n const composedRefs = useComposedRefs(\n forwardedRef,\n contentRef,\n context.onContentChange,\n setBranchNode\n );\n const timerRef = React.useRef(0);\n const searchRef = React.useRef(\"\");\n const pointerGraceTimerRef = React.useRef(0);\n const pointerGraceIntentRef = React.useRef(null);\n const pointerDirRef = React.useRef(\"right\");\n const lastPointerXRef = React.useRef(0);\n const shards = React.useMemo(\n () => disableOutsideScroll ? [contentRef, ...branchNodes.map((node) => ({ current: node }))] : [],\n [contentRef, branchNodes, disableOutsideScroll]\n );\n const ScrollLockWrapper = disableOutsideScroll ? RemoveScroll : React.Fragment;\n const scrollLockWrapperProps = disableOutsideScroll ? {\n as: Slot,\n allowPinchZoom: true,\n shards\n } : void 0;\n const handleTypeaheadSearch = /* @__PURE__ */ __name((key) => {\n const search = searchRef.current + key;\n const items = getItems().filter((item) => !item.disabled);\n const currentItem = document.activeElement;\n const currentMatch = items.find((item) => item.ref.current === currentItem)?.textValue;\n const values = items.map((item) => item.textValue);\n const nextMatch = getNextMatch(values, search, currentMatch);\n const newItem = items.find((item) => item.textValue === nextMatch)?.ref.current;\n function updateSearch(value) {\n searchRef.current = value;\n window.clearTimeout(timerRef.current);\n if (value !== \"\") timerRef.current = window.setTimeout(() => updateSearch(\"\"), 1e3);\n }\n __name(updateSearch, \"updateSearch\");\n updateSearch(search);\n if (newItem) {\n setTimeout(() => newItem.focus());\n }\n }, \"handleTypeaheadSearch\");\n React.useEffect(() => {\n return () => window.clearTimeout(timerRef.current);\n }, []);\n useFocusGuards();\n const isPointerMovingToSubmenu = React.useCallback((event) => {\n const isMovingTowards = pointerDirRef.current === pointerGraceIntentRef.current?.side;\n return isMovingTowards && isPointerInGraceArea(event, pointerGraceIntentRef.current?.area);\n }, []);\n return /* @__PURE__ */ jsx(\n MenuContentProvider,\n {\n scope: __scopeMenu,\n searchRef,\n onItemEnter: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu]\n ),\n onItemLeave: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) return;\n contentRef.current?.focus();\n setCurrentItemId(null);\n },\n [isPointerMovingToSubmenu]\n ),\n onTriggerLeave: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu]\n ),\n pointerGraceTimerRef,\n onPointerGraceIntentChange: React.useCallback((intent) => {\n pointerGraceIntentRef.current = intent;\n }, []),\n children: /* @__PURE__ */ jsx(FocusScopeBranchProvider, { registry: isModal ? branchRegistry : null, children: /* @__PURE__ */ jsx(ScrollLockWrapper, { ...scrollLockWrapperProps, children: /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n trapped: trapFocus,\n branches: branchNodes,\n onMountAutoFocus: composeEventHandlers(onOpenAutoFocus, (event) => {\n event.preventDefault();\n contentRef.current?.focus({ preventScroll: true });\n }),\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n children: /* @__PURE__ */ jsx(\n RovingFocusGroup.Root,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n dir: rootContext.dir,\n orientation: \"vertical\",\n loop,\n currentTabStopId: currentItemId,\n onCurrentTabStopIdChange: setCurrentItemId,\n onEntryFocus: composeEventHandlers(onEntryFocus, (event) => {\n if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();\n }),\n preventScrollOnEntryFocus: true,\n children: /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n role: \"menu\",\n \"aria-orientation\": \"vertical\",\n \"data-state\": getOpenState(context.open),\n \"data-radix-menu-content\": \"\",\n dir: rootContext.dir,\n ...popperScope,\n ...contentProps,\n ref: composedRefs,\n style: { outline: \"none\", ...contentProps.style },\n onKeyDown: composeEventHandlers(contentProps.onKeyDown, (event) => {\n const target = event.target;\n const isKeyDownInside = target.closest(\"[data-radix-menu-content]\") === event.currentTarget;\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n const isCharacterKey = event.key.length === 1;\n if (isKeyDownInside) {\n if (event.key === \"Tab\") event.preventDefault();\n if (!isModifierKey && isCharacterKey) handleTypeaheadSearch(event.key);\n }\n const content = contentRef.current;\n if (event.target !== content) return;\n if (!FIRST_LAST_KEYS.includes(event.key)) return;\n event.preventDefault();\n const items = getItems().filter((item) => !item.disabled);\n const candidateNodes = items.map((item) => item.ref.current);\n if (LAST_KEYS.includes(event.key)) candidateNodes.reverse();\n focusFirst(candidateNodes);\n }),\n onBlur: composeEventHandlers(props.onBlur, (event) => {\n if (!event.currentTarget.contains(event.target)) {\n window.clearTimeout(timerRef.current);\n searchRef.current = \"\";\n }\n }),\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n const target = event.target;\n const pointerXHasChanged = lastPointerXRef.current !== event.clientX;\n if (event.currentTarget.contains(target) && pointerXHasChanged) {\n const newDir = event.clientX > lastPointerXRef.current ? \"right\" : \"left\";\n pointerDirRef.current = newDir;\n lastPointerXRef.current = event.clientX;\n }\n })\n )\n }\n )\n }\n )\n }\n )\n }\n ) }) })\n }\n );\n }, \"MenuContentImpl\")\n);\nvar MenuGroup = /* @__PURE__ */ React.forwardRef(\n /* @__PURE__ */ __name(function MenuGroup2(props, forwardedRef) {\n const { __scopeMenu, ...groupProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { role: \"group\", ...groupProps, ref: forwardedRef });\n }, \"MenuGroup\")\n);\nvar MenuLabel = /* @__PURE__ */ React.forwardRef(\n /* @__PURE__ */ __name(function MenuLabel2(props, forwardedRef) {\n const { __scopeMenu, ...labelProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { ...labelProps, ref: forwardedRef });\n }, \"MenuLabel\")\n);\nvar ITEM_NAME = \"MenuItem\";\nvar ITEM_SELECT = \"menu.itemSelect\";\nvar MenuItem = /* @__PURE__ */ React.forwardRef(\n // blank line to reduce diff noise\n /* @__PURE__ */ __name(function MenuItem2(props, forwardedRef) {\n const { disabled = false, onSelect, ...itemProps } = props;\n const ref = React.useRef(null);\n const rootContext = useMenuRootContext(ITEM_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(ITEM_NAME, props.__scopeMenu);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const isPointerDownRef = React.useRef(false);\n const handleSelect = /* @__PURE__ */ __name(() => {\n const menuItem = ref.current;\n if (!disabled && menuItem) {\n const itemSelectEvent = new CustomEvent(ITEM_SELECT, { bubbles: true, cancelable: true });\n menuItem.addEventListener(ITEM_SELECT, (event) => onSelect?.(event), { once: true });\n dispatchDiscreteCustomEvent(menuItem, itemSelectEvent);\n if (itemSelectEvent.defaultPrevented) {\n isPointerDownRef.current = false;\n } else {\n rootContext.onClose();\n }\n }\n }, \"handleSelect\");\n return /* @__PURE__ */ jsx(\n MenuItemImpl,\n {\n ...itemProps,\n ref: composedRefs,\n disabled,\n onClick: composeEventHandlers(props.onClick, handleSelect),\n onPointerDown: (event) => {\n props.onPointerDown?.(event);\n isPointerDownRef.current = true;\n },\n onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {\n if (!isPointerDownRef.current) event.currentTarget?.click();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (disabled || event.target !== event.currentTarget) {\n return;\n }\n const isTypingAhead = contentContext.searchRef.current !== \"\";\n if (isTypingAhead && event.key === \" \") {\n return;\n }\n if (SELECTION_KEYS.includes(event.key)) {\n event.currentTarget.click();\n event.preventDefault();\n }\n })\n }\n );\n }, \"MenuItem\")\n);\nvar MenuItemImpl = /* @__PURE__ */ React.forwardRef(\n /* @__PURE__ */ __name(function MenuItemImpl2(props, forwardedRef) {\n const { __scopeMenu, disabled = false, textValue, ...itemProps } = props;\n const contentContext = useMenuContentContext(ITEM_NAME, __scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const [isFocused, setIsFocused] = React.useState(false);\n const [textContent, setTextContent] = React.useState(\"\");\n React.useEffect(() => {\n const menuItem = ref.current;\n if (menuItem) {\n setTextContent((menuItem.textContent ?? \"\").trim());\n }\n }, [itemProps.children]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeMenu,\n disabled,\n textValue: textValue ?? textContent,\n children: /* @__PURE__ */ jsx(RovingFocusGroup.Item, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"menuitem\",\n \"data-highlighted\": isFocused ? \"\" : void 0,\n \"aria-disabled\": disabled || void 0,\n \"data-disabled\": disabled ? \"\" : void 0,\n ...itemProps,\n ref: composedRefs,\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n if (disabled) {\n contentContext.onItemLeave(event);\n } else {\n contentContext.onItemEnter(event);\n if (!event.defaultPrevented) {\n const item = event.currentTarget;\n item.focus({ preventScroll: true });\n }\n }\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => contentContext.onItemLeave(event))\n ),\n onFocus: composeEventHandlers(props.onFocus, () => setIsFocused(true)),\n onBlur: composeEventHandlers(props.onBlur, () => setIsFocused(false))\n }\n ) })\n }\n );\n }, \"MenuItemImpl\")\n);\nvar MenuCheckboxItem = /* @__PURE__ */ React.forwardRef(\n // blank line to reduce diff noise\n /* @__PURE__ */ __name(function MenuCheckboxItem2(props, forwardedRef) {\n const { checked = false, onCheckedChange, ...checkboxItemProps } = props;\n return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(\n MenuItem,\n {\n role: \"menuitemcheckbox\",\n \"aria-checked\": isIndeterminate(checked) ? \"mixed\" : checked,\n ...checkboxItemProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(checked),\n onSelect: composeEventHandlers(\n checkboxItemProps.onSelect,\n () => onCheckedChange?.(isIndeterminate(checked) ? true : !checked),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }, \"MenuCheckboxItem\")\n);\nvar RADIO_GROUP_NAME = \"MenuRadioGroup\";\nvar [RadioGroupProvider, useRadioGroupContext] = createMenuContext(\n RADIO_GROUP_NAME,\n { value: void 0, onValueChange: /* @__PURE__ */ __name(() => {\n }, \"onValueChange\") }\n);\nvar MenuRadioGroup = /* @__PURE__ */ React.forwardRef(\n /* @__PURE__ */ __name(function MenuRadioGroup2(props, forwardedRef) {\n const { value, onValueChange, ...groupProps } = props;\n const handleValueChange = useCallbackRef(onValueChange);\n return /* @__PURE__ */ jsx(RadioGroupProvider, { scope: props.__scopeMenu, value, onValueChange: handleValueChange, children: /* @__PURE__ */ jsx(MenuGroup, { ...groupProps, ref: forwardedRef }) });\n }, \"MenuRadioGroup\")\n);\nvar RADIO_ITEM_NAME = \"MenuRadioItem\";\nvar MenuRadioItem = /* @__PURE__ */ React.forwardRef(\n /* @__PURE__ */ __name(function MenuRadioItem2(props, forwardedRef) {\n const { value, ...radioItemProps } = props;\n const context = useRadioGroupContext(RADIO_ITEM_NAME, props.__scopeMenu);\n const checked = value === context.value;\n return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(\n MenuItem,\n {\n role: \"menuitemradio\",\n \"aria-checked\": checked,\n ...radioItemProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(checked),\n onSelect: composeEventHandlers(\n radioItemProps.onSelect,\n () => context.onValueChange?.(value),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }, \"MenuRadioItem\")\n);\nvar ITEM_INDICATOR_NAME = \"MenuItemIndicator\";\nvar [ItemIndicatorProvider, useItemIndicatorContext] = createMenuContext(\n ITEM_INDICATOR_NAME,\n { checked: false }\n);\nvar MenuItemIndicator = /* @__PURE__ */ React.forwardRef(\n // blank line to reduce diff noise\n /* @__PURE__ */ __name(function MenuItemIndicator2(props, forwardedRef) {\n const { __scopeMenu, forceMount, ...itemIndicatorProps } = props;\n const indicatorContext = useItemIndicatorContext(ITEM_INDICATOR_NAME, __scopeMenu);\n return /* @__PURE__ */ jsx(\n Presence,\n {\n present: forceMount || isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...itemIndicatorProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(indicatorContext.checked)\n }\n )\n }\n );\n }, \"MenuItemIndicator\")\n);\nvar MenuSeparator = /* @__PURE__ */ React.forwardRef(\n /* @__PURE__ */ __name(function MenuSeparator2(props, forwardedRef) {\n const { __scopeMenu, ...separatorProps } = props;\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"separator\",\n \"aria-orientation\": \"horizontal\",\n ...separatorProps,\n ref: forwardedRef\n }\n );\n }, \"MenuSeparator\")\n);\nvar MenuArrow = /* @__PURE__ */ React.forwardRef(\n /* @__PURE__ */ __name(function MenuArrow2(props, forwardedRef) {\n const { __scopeMenu, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }, \"MenuArrow\")\n);\nvar SUB_NAME = \"MenuSub\";\nvar [MenuSubProvider, useMenuSubContext] = createMenuContext(SUB_NAME);\nvar MenuSub = /* @__PURE__ */ __name((props) => {\n const { __scopeMenu, children, open = false, onOpenChange } = props;\n const parentMenuContext = useMenuContext(SUB_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const [trigger, setTrigger] = React.useState(null);\n const [content, setContent] = React.useState(null);\n const handleOpenChange = useCallbackRef(onOpenChange);\n React.useEffect(() => {\n if (parentMenuContext.open === false) handleOpenChange(false);\n return () => handleOpenChange(false);\n }, [parentMenuContext.open, handleOpenChange]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n MenuProvider,\n {\n scope: __scopeMenu,\n open,\n onOpenChange: handleOpenChange,\n content,\n onContentChange: setContent,\n children: /* @__PURE__ */ jsx(\n MenuSubProvider,\n {\n scope: __scopeMenu,\n contentId: useId(),\n triggerId: useId(),\n trigger,\n onTriggerChange: setTrigger,\n children\n }\n )\n }\n ) });\n}, \"MenuSub\");\nvar SUB_TRIGGER_NAME = \"MenuSubTrigger\";\nvar MenuSubTrigger = /* @__PURE__ */ React.forwardRef(\n /* @__PURE__ */ __name(function MenuSubTrigger2(props, forwardedRef) {\n const context = useMenuContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const openTimerRef = React.useRef(null);\n const { pointerGraceTimerRef, onPointerGraceIntentChange } = contentContext;\n const scope = { __scopeMenu: props.__scopeMenu };\n const clearOpenTimer = React.useCallback(() => {\n if (openTimerRef.current) window.clearTimeout(openTimerRef.current);\n openTimerRef.current = null;\n }, []);\n React.useEffect(() => clearOpenTimer, [clearOpenTimer]);\n React.useEffect(() => {\n const pointerGraceTimer = pointerGraceTimerRef.current;\n return () => {\n window.clearTimeout(pointerGraceTimer);\n onPointerGraceIntentChange(null);\n };\n }, [pointerGraceTimerRef, onPointerGraceIntentChange]);\n const composedRefs = useComposedRefs(forwardedRef, subContext.onTriggerChange);\n return /* @__PURE__ */ jsx(MenuAnchor, { asChild: true, ...scope, children: /* @__PURE__ */ jsx(\n MenuItemImpl,\n {\n id: subContext.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.open ? subContext.contentId : void 0,\n \"data-state\": getOpenState(context.open),\n ...props,\n ref: composedRefs,\n onClick: (event) => {\n props.onClick?.(event);\n if (props.disabled || event.defaultPrevented) return;\n event.currentTarget.focus();\n if (!context.open) context.onOpenChange(true);\n },\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n contentContext.onItemEnter(event);\n if (event.defaultPrevented) return;\n if (!props.disabled && !context.open && !openTimerRef.current) {\n contentContext.onPointerGraceIntentChange(null);\n openTimerRef.current = window.setTimeout(() => {\n context.onOpenChange(true);\n clearOpenTimer();\n }, 100);\n }\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => {\n clearOpenTimer();\n const contentRect = context.content?.getBoundingClientRect();\n if (contentRect) {\n const side = context.content?.dataset.side;\n const rightSide = side === \"right\";\n const bleed = rightSide ? -5 : 5;\n const contentNearEdge = contentRect[rightSide ? \"left\" : \"right\"];\n const contentFarEdge = contentRect[rightSide ? \"right\" : \"left\"];\n contentContext.onPointerGraceIntentChange({\n area: [\n // Apply a bleed on clientX to ensure that our exit point is\n // consistently within polygon bounds\n { x: event.clientX + bleed, y: event.clientY },\n { x: contentNearEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.bottom },\n { x: contentNearEdge, y: contentRect.bottom }\n ],\n side\n });\n window.clearTimeout(pointerGraceTimerRef.current);\n pointerGraceTimerRef.current = window.setTimeout(\n () => contentContext.onPointerGraceIntentChange(null),\n 300\n );\n } else {\n contentContext.onTriggerLeave(event);\n if (event.defaultPrevented) return;\n contentContext.onPointerGraceIntentChange(null);\n }\n })\n ),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (props.disabled || event.target !== event.currentTarget) {\n return;\n }\n const isTypingAhead = contentContext.searchRef.current !== \"\";\n if (isTypingAhead && event.key === \" \") {\n return;\n }\n if (SUB_OPEN_KEYS[rootContext.dir].includes(event.key)) {\n context.onOpenChange(true);\n context.content?.focus();\n event.preventDefault();\n }\n })\n }\n ) });\n }, \"MenuSubTrigger\")\n);\nvar SUB_CONTENT_NAME = \"MenuSubContent\";\nvar MenuSubContent = /* @__PURE__ */ React.forwardRef(\n /* @__PURE__ */ __name(function MenuSubContent2(props, forwardedRef) {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, align = \"start\", ...subContentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n id: subContext.contentId,\n \"aria-labelledby\": subContext.triggerId,\n ...subContentProps,\n ref: composedRefs,\n align,\n side: rootContext.dir === Direction.RTL ? \"left\" : \"right\",\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n trapFocus: false,\n onOpenAutoFocus: (event) => {\n if (rootContext.isUsingKeyboardRef.current) ref.current?.focus();\n event.preventDefault();\n },\n onCloseAutoFocus: (event) => event.preventDefault(),\n onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => {\n if (event.target !== subContext.trigger) context.onOpenChange(false);\n }),\n onEscapeKeyDown: composeEventHandlers(props.onEscapeKeyDown, (event) => {\n rootContext.onClose();\n event.preventDefault();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isKeyDownInside = event.currentTarget.contains(event.target);\n const isCloseKey = SUB_CLOSE_KEYS[rootContext.dir].includes(event.key);\n if (isKeyDownInside && isCloseKey) {\n context.onOpenChange(false);\n subContext.trigger?.focus();\n event.preventDefault();\n }\n })\n }\n ) }) }) });\n }, \"MenuSubContent\")\n);\nfunction getOpenState(open) {\n return open ? \"open\" : \"closed\";\n}\n__name(getOpenState, \"getOpenState\");\nfunction isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\n__name(isIndeterminate, \"isIndeterminate\");\nfunction getCheckedState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\n__name(getCheckedState, \"getCheckedState\");\nfunction focusFirst(candidates) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\n__name(focusFirst, \"focusFirst\");\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\n__name(wrapArray, \"wrapArray\");\nfunction getNextMatch(values, search, currentMatch) {\n const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);\n const normalizedSearch = isRepeated ? search[0] : search;\n const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;\n let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));\n const excludeCurrentMatch = normalizedSearch.length === 1;\n if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((v) => v !== currentMatch);\n const nextMatch = wrappedValues.find(\n (value) => value.toLowerCase().startsWith(normalizedSearch.toLowerCase())\n );\n return nextMatch !== currentMatch ? nextMatch : void 0;\n}\n__name(getNextMatch, \"getNextMatch\");\nfunction isPointInPolygon(point, polygon) {\n const { x, y } = point;\n let inside = false;\n for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {\n const ii = polygon[i];\n const jj = polygon[j];\n const xi = ii.x;\n const yi = ii.y;\n const xj = jj.x;\n const yj = jj.y;\n const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) inside = !inside;\n }\n return inside;\n}\n__name(isPointInPolygon, \"isPointInPolygon\");\nfunction isPointerInGraceArea(event, area) {\n if (!area) return false;\n const cursorPos = { x: event.clientX, y: event.clientY };\n return isPointInPolygon(cursorPos, area);\n}\n__name(isPointerInGraceArea, \"isPointerInGraceArea\");\nfunction whenMouse(handler) {\n return (event) => event.pointerType === \"mouse\" ? handler(event) : void 0;\n}\n__name(whenMouse, \"whenMouse\");\nexport {\n MenuAnchor as Anchor,\n MenuArrow as Arrow,\n MenuCheckboxItem as CheckboxItem,\n MenuContent as Content,\n MenuGroup as Group,\n MenuItem as Item,\n MenuItemIndicator as ItemIndicator,\n MenuLabel as Label,\n Menu,\n MenuAnchor,\n MenuArrow,\n MenuCheckboxItem,\n MenuContent,\n MenuGroup,\n MenuItem,\n MenuItemIndicator,\n MenuLabel,\n MenuPortal,\n MenuRadioGroup,\n MenuRadioItem,\n MenuSeparator,\n MenuSub,\n MenuSubContent,\n MenuSubTrigger,\n MenuPortal as Portal,\n MenuRadioGroup as RadioGroup,\n MenuRadioItem as RadioItem,\n Menu as Root,\n MenuSeparator as Separator,\n MenuSub as Sub,\n MenuSubContent as SubContent,\n MenuSubTrigger as SubTrigger,\n createMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\nvar __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\n// src/dropdown-menu.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as MenuPrimitive from \"@radix-ui/react-menu\";\nimport { createMenuScope } from \"@radix-ui/react-menu\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DROPDOWN_MENU_NAME = \"DropdownMenu\";\nvar [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(\n DROPDOWN_MENU_NAME,\n [createMenuScope]\n);\nvar useMenuScope = createMenuScope();\nvar [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME);\nvar DropdownMenu = /* @__PURE__ */ __name((props) => {\n const {\n __scopeDropdownMenu,\n children,\n dir,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const triggerRef = React.useRef(null);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: DROPDOWN_MENU_NAME\n });\n return /* @__PURE__ */ jsx(\n DropdownMenuProvider,\n {\n scope: __scopeDropdownMenu,\n triggerId: useId(),\n triggerRef,\n contentId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children: /* @__PURE__ */ jsx(MenuPrimitive.Root, { ...menuScope, open, onOpenChange: setOpen, dir, modal, children })\n }\n );\n}, \"DropdownMenu\");\nvar TRIGGER_NAME = \"DropdownMenuTrigger\";\nvar DropdownMenuTrigger = /* @__PURE__ */ React.forwardRef(\n // blank line to reduce diff noise\n /* @__PURE__ */ __name(function DropdownMenuTrigger2(props, forwardedRef) {\n const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;\n const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const composedRefs = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(MenuPrimitive.Anchor, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n id: context.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.open ? context.contentId : void 0,\n \"data-state\": context.open ? \"open\" : \"closed\",\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n ...triggerProps,\n ref: composedRefs,\n onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n if (!disabled && event.button === 0 && event.ctrlKey === false) {\n context.onOpenToggle();\n if (!context.open) event.preventDefault();\n }\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (disabled) return;\n if ([\"Enter\", \" \"].includes(event.key)) context.onOpenToggle();\n if (event.key === \"ArrowDown\") context.onOpenChange(true);\n if ([\"Enter\", \" \", \"ArrowDown\"].includes(event.key)) event.preventDefault();\n })\n }\n ) });\n }, \"DropdownMenuTrigger\")\n);\nvar DropdownMenuPortal = /* @__PURE__ */ __name((props) => {\n const { __scopeDropdownMenu, ...portalProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Portal, { ...menuScope, ...portalProps });\n}, \"DropdownMenuPortal\");\nvar CONTENT_NAME = \"DropdownMenuContent\";\nvar DropdownMenuContent = /* @__PURE__ */ React.forwardRef(\n // blank line to reduce diff noise\n /* @__PURE__ */ __name(function DropdownMenuContent2(props, forwardedRef) {\n const { __scopeDropdownMenu, ...contentProps } = props;\n const context = useDropdownMenuContext(CONTENT_NAME, __scopeDropdownMenu);\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const hasInteractedOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.Content,\n {\n id: context.contentId,\n \"aria-labelledby\": context.triggerId,\n ...menuScope,\n ...contentProps,\n ref: forwardedRef,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n hasInteractedOutsideRef.current = false;\n event.preventDefault();\n }),\n onInteractOutside: composeEventHandlers(props.onInteractOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (!context.modal || isRightClick) hasInteractedOutsideRef.current = true;\n }),\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-dropdown-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-dropdown-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-dropdown-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-dropdown-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-dropdown-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n }, \"DropdownMenuContent\")\n);\nvar DropdownMenuGroup = /* @__PURE__ */ React.forwardRef(\n // blank line to reduce diff noise\n /* @__PURE__ */ __name(function DropdownMenuGroup2(props, forwardedRef) {\n const { __scopeDropdownMenu, ...groupProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Group, { ...menuScope, ...groupProps, ref: forwardedRef });\n }, \"DropdownMenuGroup\")\n);\nvar DropdownMenuLabel = /* @__PURE__ */ React.forwardRef(\n // blank line to reduce diff noise\n /* @__PURE__ */ __name(function DropdownMenuLabel2(props, forwardedRef) {\n const { __scopeDropdownMenu, ...labelProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Label, { ...menuScope, ...labelProps, ref: forwardedRef });\n }, \"DropdownMenuLabel\")\n);\nvar DropdownMenuItem = /* @__PURE__ */ React.forwardRef(\n // blank line to reduce diff noise\n /* @__PURE__ */ __name(function DropdownMenuItem2(props, forwardedRef) {\n const { __scopeDropdownMenu, ...itemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Item, { ...menuScope, ...itemProps, ref: forwardedRef });\n }, \"DropdownMenuItem\")\n);\nvar DropdownMenuCheckboxItem = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function DropdownMenuCheckboxItem2(props, forwardedRef) {\n const { __scopeDropdownMenu, ...checkboxItemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });\n}, \"DropdownMenuCheckboxItem\"));\nvar DropdownMenuRadioGroup = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function DropdownMenuRadioGroup2(props, forwardedRef) {\n const { __scopeDropdownMenu, ...radioGroupProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioGroup, { ...menuScope, ...radioGroupProps, ref: forwardedRef });\n}, \"DropdownMenuRadioGroup\"));\nvar DropdownMenuRadioItem = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function DropdownMenuRadioItem2(props, forwardedRef) {\n const { __scopeDropdownMenu, ...radioItemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });\n}, \"DropdownMenuRadioItem\"));\nvar DropdownMenuItemIndicator = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function DropdownMenuItemIndicator2(props, forwardedRef) {\n const { __scopeDropdownMenu, ...itemIndicatorProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });\n}, \"DropdownMenuItemIndicator\"));\nvar DropdownMenuSeparator = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function DropdownMenuSeparator2(props, forwardedRef) {\n const { __scopeDropdownMenu, ...separatorProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });\n}, \"DropdownMenuSeparator\"));\nvar DropdownMenuArrow = /* @__PURE__ */ React.forwardRef(\n // blank line to reduce diff noise\n /* @__PURE__ */ __name(function DropdownMenuArrow2(props, forwardedRef) {\n const { __scopeDropdownMenu, ...arrowProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Arrow, { ...menuScope, ...arrowProps, ref: forwardedRef });\n }, \"DropdownMenuArrow\")\n);\nvar DropdownMenuSub = /* @__PURE__ */ __name((props) => {\n const { __scopeDropdownMenu, children, open: openProp, onOpenChange, defaultOpen } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: \"DropdownMenuSub\"\n });\n return /* @__PURE__ */ jsx(MenuPrimitive.Sub, { ...menuScope, open, onOpenChange: setOpen, children });\n}, \"DropdownMenuSub\");\nvar DropdownMenuSubTrigger = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function DropdownMenuSubTrigger2(props, forwardedRef) {\n const { __scopeDropdownMenu, ...subTriggerProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.SubTrigger, { ...menuScope, ...subTriggerProps, ref: forwardedRef });\n}, \"DropdownMenuSubTrigger\"));\nvar DropdownMenuSubContent = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function DropdownMenuSubContent2(props, forwardedRef) {\n const { __scopeDropdownMenu, ...subContentProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.SubContent,\n {\n ...menuScope,\n ...subContentProps,\n ref: forwardedRef,\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-dropdown-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-dropdown-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-dropdown-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-dropdown-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-dropdown-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n}, \"DropdownMenuSubContent\"));\nexport {\n DropdownMenuArrow as Arrow,\n DropdownMenuCheckboxItem as CheckboxItem,\n DropdownMenuContent as Content,\n DropdownMenu,\n DropdownMenuArrow,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuItemIndicator,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n DropdownMenuGroup as Group,\n DropdownMenuItem as Item,\n DropdownMenuItemIndicator as ItemIndicator,\n DropdownMenuLabel as Label,\n DropdownMenuPortal as Portal,\n DropdownMenuRadioGroup as RadioGroup,\n DropdownMenuRadioItem as RadioItem,\n DropdownMenu as Root,\n DropdownMenuSeparator as Separator,\n DropdownMenuSub as Sub,\n DropdownMenuSubContent as SubContent,\n DropdownMenuSubTrigger as SubTrigger,\n DropdownMenuTrigger as Trigger,\n createDropdownMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { toast } from \"sonner\";\nimport {\n Users,\n Search,\n Plus,\n Trash2,\n Upload,\n Loader2,\n ChevronLeft,\n ChevronRight,\n MoreHorizontal,\n Pencil,\n FolderPlus,\n UserPlus,\n X,\n Hash,\n} from \"lucide-react\";\nimport { useFetch, apiFetch, fmtDate } from \"../use-api\";\nimport { SectionHeading } from \"../section-heading\";\nimport { EmptyState } from \"../empty-state\";\nimport { Button } from \"@/components/ui/button\";\nimport { Input } from \"@/components/ui/input\";\nimport { Label } from \"@/components/ui/label\";\nimport { Skeleton } from \"@/components/ui/skeleton\";\nimport { Badge } from \"@/components/ui/badge\";\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from \"@/components/ui/table\";\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n} from \"@/components/ui/dialog\";\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n} from \"@/components/ui/alert-dialog\";\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\";\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\";\nimport { ImportDialog } from \"./import-dialog\";\n\ninterface ContactItem {\n id: string;\n email: string;\n name: string | null;\n tags: string;\n source: string;\n active: boolean;\n unsubscribedAt?: string | null;\n unsubscribeReason?: string | null;\n telegram?: string | null;\n createdAt: string;\n}\n\ninterface ContactsResponse {\n items: ContactItem[];\n total: number;\n page: number;\n limit: number;\n}\n\ninterface GroupItem {\n id: string;\n name: string;\n description?: string | null;\n color: string;\n formId?: string | null;\n formName?: string | null;\n contactCount: number;\n createdAt: string;\n}\n\nconst PAGE_SIZE = 50;\nconst ALL_SENTINEL = \"__all__\";\n\nexport function ContactList() {\n const [q, setQ] = useState(\"\");\n const [debouncedQ, setDebouncedQ] = useState(\"\");\n const [page, setPage] = useState(1);\n const [addOpen, setAddOpen] = useState(false);\n const [importOpen, setImportOpen] = useState(false);\n const [deletingId, setDeletingId] = useState<string | null>(null);\n const [busy, setBusy] = useState(false);\n\n // Active group filter: ALL_SENTINEL means \"all contacts\".\n const [activeGroupId, setActiveGroupId] = useState<string>(ALL_SENTINEL);\n const [statusFilter, setStatusFilter] = useState<\"all\" | \"active\" | \"unsubscribed\">(\"all\");\n\n // Group editor dialog (create / edit). Holds the group being edited.\n const [editingGroup, setEditingGroup] = useState<GroupItem | null | \"new\">(\n null\n );\n const [deletingGroup, setDeletingGroup] = useState<GroupItem | null>(null);\n\n // Debounce search input.\n useEffect(() => {\n const t = setTimeout(() => {\n setDebouncedQ(q);\n setPage(1);\n }, 300);\n return () => clearTimeout(t);\n }, [q]);\n\n const selectGroup = useCallback((groupId: string) => {\n setActiveGroupId(groupId);\n setPage(1);\n }, []);\n\n // Fetch the groups rail. Stays mounted for the lifetime of the list.\n const { data: groupsData, refetch: refetchGroups } = useFetch<GroupItem[]>(\n \"/api/groups\"\n );\n const groups = groupsData || [];\n\n // Fetch the contacts — from the group endpoint when a group is selected,\n // or from the regular contacts endpoint when \"All\" is selected.\n const querySuffix = `${debouncedQ ? `&q=${encodeURIComponent(debouncedQ)}` : \"\"}${\n statusFilter !== \"all\" ? `&status=${statusFilter}` : \"\"\n }`;\n const contactsUrl =\n activeGroupId === ALL_SENTINEL\n ? `/api/contacts?page=${page}&limit=${PAGE_SIZE}${querySuffix}`\n : `/api/groups/${activeGroupId}/contacts?page=${page}&limit=${PAGE_SIZE}${querySuffix}`;\n const { data, loading, refetch } = useFetch<ContactsResponse>(contactsUrl);\n\n // Refresh the rail whenever contacts change (membership counts may change).\n const refreshAll = useCallback(() => {\n refetch();\n refetchGroups();\n }, [refetch, refetchGroups]);\n\n const items = data?.items || [];\n const total = data?.total || 0;\n const totalPages = Math.max(1, Math.ceil(total / PAGE_SIZE));\n\n const activeGroup = useMemo(\n () => groups.find((g) => g.id === activeGroupId) || null,\n [groups, activeGroupId]\n );\n\n const confirmDelete = async () => {\n if (!deletingId) return;\n setBusy(true);\n try {\n await apiFetch(`/api/contacts/${deletingId}`, { method: \"DELETE\" });\n toast.success(\"Contact deleted\");\n setDeletingId(null);\n refreshAll();\n } catch (err) {\n toast.error(err instanceof Error ? err.message : \"Failed to delete contact\");\n } finally {\n setBusy(false);\n }\n };\n\n const confirmDeleteGroup = async () => {\n if (!deletingGroup) return;\n setBusy(true);\n try {\n await apiFetch(`/api/groups/${deletingGroup.id}`, { method: \"DELETE\" });\n toast.success(\"Group deleted\");\n if (activeGroupId === deletingGroup.id) selectGroup(ALL_SENTINEL);\n setDeletingGroup(null);\n refetchGroups();\n } catch (err) {\n toast.error(err instanceof Error ? err.message : \"Failed to delete group\");\n } finally {\n setBusy(false);\n }\n };\n\n const totalContactsLabel = total;\n\n return (\n <div className=\"flex flex-col gap-6 max-w-6xl mx-auto w-full\">\n <SectionHeading\n title=\"Contacts\"\n description=\"Your subscriber list. Add individually, paste emails, or import a CSV.\"\n action={\n <>\n <Button\n variant=\"outline\"\n className=\"rounded-full\"\n onClick={() => setImportOpen(true)}\n >\n <Upload className=\"size-4\" /> Import\n </Button>\n <Button className=\"rounded-full\" onClick={() => setAddOpen(true)}>\n <Plus className=\"size-4\" /> Add contact\n </Button>\n </>\n }\n />\n\n {/* Mobile: groups as a select + a separate New-group button. */}\n <div className=\"md:hidden flex items-center gap-2\">\n <Select\n value={activeGroupId}\n onValueChange={(v) => selectGroup(v)}\n >\n <SelectTrigger className=\"flex-1\">\n <SelectValue placeholder=\"All contacts\" />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value={ALL_SENTINEL}>\n All contacts ({groups.reduce((s, g) => s + g.contactCount, 0)})\n </SelectItem>\n {groups.length > 0 && <SelectSeparator />}\n {groups.length > 0 && (\n <SelectGroup>\n <SelectLabel>Groups</SelectLabel>\n {groups.map((g) => (\n <SelectItem key={g.id} value={g.id}>\n {g.name} ({g.contactCount})\n </SelectItem>\n ))}\n </SelectGroup>\n )}\n </SelectContent>\n </Select>\n <Button\n variant=\"outline\"\n size=\"icon\"\n aria-label=\"New group\"\n onClick={() => setEditingGroup(\"new\")}\n >\n <Plus className=\"size-4\" />\n </Button>\n </div>\n\n <div className=\"grid md:grid-cols-[14rem_1fr] gap-4 items-start\">\n {/* Groups rail — desktop */}\n <aside className=\"hidden md:flex flex-col gap-3 bg-card border rounded-2xl p-3 sticky top-4 max-h-[80vh] overflow-y-auto scroll-thin\">\n <div className=\"flex items-center justify-between gap-2\">\n <h2 className=\"text-xs font-semibold uppercase tracking-wide text-muted-foreground\">\n Groups\n </h2>\n <Button\n variant=\"ghost\"\n size=\"icon\"\n className=\"size-7\"\n aria-label=\"New group\"\n onClick={() => setEditingGroup(\"new\")}\n >\n <Plus className=\"size-4\" />\n </Button>\n </div>\n\n <button\n type=\"button\"\n onClick={() => selectGroup(ALL_SENTINEL)}\n className={`text-sm rounded-lg px-2 py-1.5 text-left flex items-center justify-between gap-2 transition-colors ${\n activeGroupId === ALL_SENTINEL\n ? \"bg-primary/10 text-foreground font-medium\"\n : \"text-muted-foreground hover:bg-muted\"\n }`}\n >\n <span className=\"flex items-center gap-2\">\n <Users className=\"size-3.5\" />\n All contacts\n </span>\n <span className=\"text-xs text-muted-foreground\">\n {groups.reduce((s, g) => s + g.contactCount, 0)}\n </span>\n </button>\n\n {groups.length === 0 ? (\n <div className=\"text-xs text-muted-foreground rounded-lg border border-dashed p-3 text-center\">\n No groups yet.{\" \"}\n <button\n type=\"button\"\n className=\"underline font-medium\"\n onClick={() => setEditingGroup(\"new\")}\n >\n Create one\n </button>\n .\n </div>\n ) : (\n <div className=\"flex flex-col gap-0.5\">\n {groups.map((g) => (\n <GroupRailRow\n key={g.id}\n group={g}\n active={activeGroupId === g.id}\n onSelect={() => selectGroup(g.id)}\n onEdit={() => setEditingGroup(g)}\n onDelete={() => setDeletingGroup(g)}\n />\n ))}\n </div>\n )}\n </aside>\n\n {/* Main column */}\n <div className=\"flex flex-col gap-4 min-w-0\">\n <div className=\"flex items-center gap-3 flex-wrap\">\n <div className=\"relative flex-1 min-w-[12rem] max-w-sm\">\n <Search className=\"absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted-foreground\" />\n <Input\n value={q}\n onChange={(e) => setQ(e.target.value)}\n placeholder=\"Search email, name, tag…\"\n className=\"pl-9\"\n />\n </div>\n <div\n className=\"inline-flex items-center rounded-lg border bg-card p-0.5 text-xs\"\n role=\"group\"\n aria-label=\"Filter contacts by subscription status\"\n >\n {([\"all\", \"active\", \"unsubscribed\"] as const).map((st) => (\n <button\n key={st}\n type=\"button\"\n onClick={() => {\n setStatusFilter(st);\n setPage(1);\n }}\n className={`px-2.5 py-1 rounded-md capitalize whitespace-nowrap transition-colors ${\n statusFilter === st\n ? \"bg-foreground text-background font-medium\"\n : \"text-muted-foreground hover:text-foreground\"\n }`}\n >\n {st}\n </button>\n ))}\n </div>\n <div className=\"text-sm text-muted-foreground whitespace-nowrap\">\n {totalContactsLabel} total\n </div>\n </div>\n\n {/* Active filter context */}\n {activeGroup && (\n <div className=\"flex items-center gap-2 text-sm bg-card border rounded-full pl-3 pr-1 py-1 w-fit\">\n <span\n className=\"size-2 rounded-full\"\n style={{ backgroundColor: activeGroup.color }}\n aria-hidden\n />\n <span className=\"text-muted-foreground\">Showing:</span>\n <span className=\"font-medium text-foreground\">\n {activeGroup.name}\n </span>\n <Button\n variant=\"ghost\"\n size=\"icon\"\n className=\"size-6 rounded-full\"\n aria-label=\"Clear group filter\"\n onClick={() => selectGroup(ALL_SENTINEL)}\n >\n <X className=\"size-3.5\" />\n </Button>\n </div>\n )}\n\n {loading && items.length === 0 ? (\n <Skeleton className=\"h-72 rounded-2xl\" />\n ) : items.length === 0 ? (\n <EmptyState\n icon={Users}\n title={\n debouncedQ\n ? \"No matching contacts\"\n : activeGroup\n ? `No contacts in ${activeGroup.name} yet`\n : \"No contacts yet\"\n }\n description={\n debouncedQ\n ? \"Try a different search term, or clear the search to see everyone.\"\n : activeGroup\n ? \"Add contacts to this group, or link a form so submissions land here automatically.\"\n : \"Add your first subscriber, or paste in a list of emails to bulk-import.\"\n }\n actionLabel={\n debouncedQ\n ? undefined\n : activeGroup\n ? \"Add contact\"\n : \"Import emails\"\n }\n onAction={\n debouncedQ\n ? undefined\n : activeGroup\n ? () => setAddOpen(true)\n : () => setImportOpen(true)\n }\n />\n ) : (\n <div className=\"bg-card border rounded-2xl overflow-hidden\">\n <div className=\"max-h-[60vh] overflow-y-auto scroll-thin\">\n <Table>\n <TableHeader className=\"sticky top-0 bg-card z-10\">\n <TableRow>\n <TableHead className=\"pl-4\">Email</TableHead>\n <TableHead>Name</TableHead>\n <TableHead>Tags</TableHead>\n <TableHead>Telegram</TableHead>\n <TableHead>Status</TableHead>\n <TableHead>Added</TableHead>\n <TableHead className=\"pr-4 text-right\">Actions</TableHead>\n </TableRow>\n </TableHeader>\n <TableBody>\n {items.map((c) => (\n <ContactRow\n key={c.id}\n contact={c}\n groups={groups}\n onDelete={() => setDeletingId(c.id)}\n onAddedToGroup={refreshAll}\n activeGroupId={\n activeGroupId === ALL_SENTINEL ? null : activeGroupId\n }\n />\n ))}\n </TableBody>\n </Table>\n </div>\n </div>\n )}\n\n {/* Pagination */}\n {totalPages > 1 && (\n <div className=\"flex items-center justify-between\">\n <div className=\"text-xs text-muted-foreground\">\n Page {page} of {totalPages}\n </div>\n <div className=\"flex gap-1\">\n <Button\n variant=\"outline\"\n size=\"sm\"\n className=\"rounded-lg\"\n disabled={page <= 1}\n onClick={() => setPage((p) => Math.max(1, p - 1))}\n >\n <ChevronLeft className=\"size-4\" /> Prev\n </Button>\n <Button\n variant=\"outline\"\n size=\"sm\"\n className=\"rounded-lg\"\n disabled={page >= totalPages}\n onClick={() => setPage((p) => Math.min(totalPages, p + 1))}\n >\n Next <ChevronRight className=\"size-4\" />\n </Button>\n </div>\n </div>\n )}\n </div>\n </div>\n\n {/* Add contact dialog */}\n <AddContactDialog\n open={addOpen}\n onOpenChange={setAddOpen}\n onAdded={() => refreshAll()}\n onGroupsChanged={() => refetchGroups()}\n />\n\n <ImportDialog\n open={importOpen}\n onOpenChange={setImportOpen}\n onImported={() => refreshAll()}\n />\n\n {/* Group editor dialog (create / edit) */}\n <GroupEditorDialog\n target={editingGroup}\n onOpenChange={(o) => !o && setEditingGroup(null)}\n onSaved={(g, isNewGroup) => {\n setEditingGroup(null);\n refetchGroups();\n if (isNewGroup) {\n selectGroup(g.id);\n }\n }}\n />\n\n {/* Delete group confirmation */}\n <AlertDialog\n open={!!deletingGroup}\n onOpenChange={(o) => !o && setDeletingGroup(null)}\n >\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>Delete this group?</AlertDialogTitle>\n <AlertDialogDescription>\n {deletingGroup?.name} will be removed. The contacts inside it are\n kept — only the grouping is deleted. This cannot be undone.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel disabled={busy}>Cancel</AlertDialogCancel>\n <AlertDialogAction\n onClick={(e) => {\n e.preventDefault();\n confirmDeleteGroup();\n }}\n disabled={busy}\n className=\"bg-destructive text-white hover:bg-destructive/90\"\n >\n {busy ? <Loader2 className=\"size-4 animate-spin\" /> : \"Delete group\"}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n\n {/* Delete contact confirmation */}\n <AlertDialog\n open={!!deletingId}\n onOpenChange={(o) => !o && setDeletingId(null)}\n >\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>Delete this contact?</AlertDialogTitle>\n <AlertDialogDescription>\n They will be removed from your list and will no longer receive\n future broadcasts. This cannot be undone.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel disabled={busy}>Cancel</AlertDialogCancel>\n <AlertDialogAction\n onClick={(e) => {\n e.preventDefault();\n confirmDelete();\n }}\n disabled={busy}\n className=\"bg-destructive text-white hover:bg-destructive/90\"\n >\n {busy ? <Loader2 className=\"size-4 animate-spin\" /> : \"Delete\"}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n </div>\n );\n}\n\nfunction GroupRailRow({\n group,\n active,\n onSelect,\n onEdit,\n onDelete,\n}: {\n group: GroupItem;\n active: boolean;\n onSelect: () => void;\n onEdit: () => void;\n onDelete: () => void;\n}) {\n return (\n <div\n className={`group flex items-center justify-between gap-1 rounded-lg pr-1 transition-colors ${\n active ? \"bg-primary/10\" : \"hover:bg-muted\"\n }`}\n >\n <button\n type=\"button\"\n onClick={onSelect}\n className=\"flex items-center gap-2 px-2 py-1.5 text-sm text-left min-w-0 flex-1\"\n >\n <span\n className=\"size-2 rounded-full shrink-0\"\n style={{ backgroundColor: group.color }}\n aria-hidden\n />\n <span\n className={`truncate ${\n active ? \"text-foreground font-medium\" : \"text-foreground\"\n }`}\n title={group.name}\n >\n {group.name}\n </span>\n {group.formName && (\n <Hash className=\"size-3 text-muted-foreground shrink-0\" aria-hidden />\n )}\n <span className=\"text-xs text-muted-foreground shrink-0\">\n {group.contactCount}\n </span>\n </button>\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Button\n variant=\"ghost\"\n size=\"icon\"\n className=\"size-6 opacity-60 group-hover:opacity-100\"\n aria-label={`Group actions for ${group.name}`}\n >\n <MoreHorizontal className=\"size-3.5\" />\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" className=\"w-40\">\n <DropdownMenuItem onSelect={onEdit}>\n <Pencil className=\"size-3.5\" /> Edit\n </DropdownMenuItem>\n <DropdownMenuItem onSelect={onDelete} className=\"text-destructive focus:text-destructive\">\n <Trash2 className=\"size-3.5\" /> Delete\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n </div>\n );\n}\n\nfunction ContactRow({\n contact,\n groups,\n onDelete,\n onAddedToGroup,\n activeGroupId,\n}: {\n contact: ContactItem;\n groups: GroupItem[];\n onDelete: () => void;\n onAddedToGroup: () => void;\n activeGroupId: string | null;\n}) {\n const [busy, setBusy] = useState(false);\n\n const addToGroup = async (groupId: string) => {\n setBusy(true);\n try {\n await apiFetch<{ added: number }>(`/api/groups/${groupId}/contacts`, {\n method: \"POST\",\n body: JSON.stringify({ contactIds: [contact.id] }),\n });\n const g = groups.find((x) => x.id === groupId);\n toast.success(`Added to ${g?.name ?? \"group\"}`);\n onAddedToGroup();\n } catch (err) {\n toast.error(\n err instanceof Error ? err.message : \"Failed to add to group\"\n );\n } finally {\n setBusy(false);\n }\n };\n\n const removeFromGroup = async () => {\n if (!activeGroupId) return;\n setBusy(true);\n try {\n await apiFetch(`/api/groups/${activeGroupId}/contacts?contactId=${contact.id}`, {\n method: \"DELETE\",\n });\n toast.success(\"Removed from group\");\n onAddedToGroup();\n } catch (err) {\n toast.error(\n err instanceof Error ? err.message : \"Failed to remove from group\"\n );\n } finally {\n setBusy(false);\n }\n };\n\n return (\n <TableRow>\n <TableCell className=\"pl-4 font-medium\">{contact.email}</TableCell>\n <TableCell className=\"text-muted-foreground\">\n {contact.name || \"—\"}\n </TableCell>\n <TableCell>\n {contact.tags ? (\n <div className=\"flex flex-wrap gap-1\">\n {contact.tags.split(\",\").map((t) => (\n <Badge key={t} variant=\"secondary\" className=\"font-normal\">\n {t}\n </Badge>\n ))}\n </div>\n ) : (\n <span className=\"text-muted-foreground\">—</span>\n )}\n </TableCell>\n <TableCell>\n {contact.telegram ? (\n <span className=\"font-mono text-xs text-foreground\">\n @{contact.telegram}\n </span>\n ) : (\n <span className=\"text-muted-foreground\">—</span>\n )}\n </TableCell>\n <TableCell>\n {contact.active ? (\n <Badge variant=\"outline\" className=\"border-transparent bg-chart-1/10 text-chart-1\">\n Active\n </Badge>\n ) : (\n <div className=\"flex flex-col gap-0.5 max-w-[14rem]\">\n <Badge variant=\"outline\" className=\"border-transparent bg-muted text-muted-foreground w-fit\">\n Unsubscribed\n </Badge>\n {contact.unsubscribeReason && (\n <span\n className=\"text-[11px] text-muted-foreground truncate\"\n title={contact.unsubscribeReason}\n >\n {contact.unsubscribeReason}\n </span>\n )}\n </div>\n )}\n </TableCell>\n <TableCell className=\"text-muted-foreground text-xs\">\n {fmtDate(contact.createdAt)}\n </TableCell>\n <TableCell className=\"pr-4 text-right\">\n <div className=\"inline-flex items-center gap-1\">\n {activeGroupId ? (\n <Button\n variant=\"ghost\"\n size=\"icon\"\n className=\"size-8\"\n aria-label=\"Remove from group\"\n onClick={removeFromGroup}\n disabled={busy}\n >\n {busy ? (\n <Loader2 className=\"size-4 animate-spin\" />\n ) : (\n <UserPlus className=\"size-4 rotate-180\" />\n )}\n </Button>\n ) : (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Button\n variant=\"ghost\"\n size=\"icon\"\n className=\"size-8\"\n aria-label=\"Add to group\"\n disabled={busy || groups.length === 0}\n >\n {busy ? (\n <Loader2 className=\"size-4 animate-spin\" />\n ) : (\n <FolderPlus className=\"size-4\" />\n )}\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" className=\"w-48\">\n <DropdownMenuLabel>Add to group</DropdownMenuLabel>\n <DropdownMenuSeparator />\n {groups.map((g) => (\n <DropdownMenuItem\n key={g.id}\n onSelect={() => addToGroup(g.id)}\n >\n <span\n className=\"size-2 rounded-full\"\n style={{ backgroundColor: g.color }}\n aria-hidden\n />\n {g.name}\n <span className=\"ml-auto text-xs text-muted-foreground\">\n {g.contactCount}\n </span>\n </DropdownMenuItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n )}\n <Button\n variant=\"ghost\"\n size=\"icon\"\n className=\"size-8 text-destructive hover:text-destructive\"\n aria-label=\"Delete contact\"\n onClick={onDelete}\n >\n <Trash2 className=\"size-4\" />\n </Button>\n </div>\n </TableCell>\n </TableRow>\n );\n}\n\nfunction AddContactDialog({\n open,\n onOpenChange,\n onAdded,\n onGroupsChanged,\n}: {\n open: boolean;\n onOpenChange: (o: boolean) => void;\n onAdded: () => void;\n onGroupsChanged: () => void;\n}) {\n const [email, setEmail] = useState(\"\");\n const [name, setName] = useState(\"\");\n const [tags, setTags] = useState(\"\");\n const [selectedGroups, setSelectedGroups] = useState<string[]>([]);\n const [saving, setSaving] = useState(false);\n const [newGroupMode, setNewGroupMode] = useState(false);\n const [newGroupName, setNewGroupName] = useState(\"\");\n const [creatingGroup, setCreatingGroup] = useState(false);\n const { data: groups, refetch: refetchModalGroups } = useFetch<GroupItem[]>(\"/api/groups\");\n\n const reset = () => {\n setEmail(\"\");\n setName(\"\");\n setTags(\"\");\n setSelectedGroups([]);\n setNewGroupMode(false);\n setNewGroupName(\"\");\n };\n\n const createInlineGroup = async () => {\n if (!newGroupName.trim()) {\n toast.error(\"Group name is required\");\n return;\n }\n setCreatingGroup(true);\n try {\n const created = await apiFetch<GroupItem>(\"/api/groups\", {\n method: \"POST\",\n body: JSON.stringify({ name: newGroupName.trim(), color: \"#1a1a1a\" }),\n });\n toast.success(`Group \"${created.name}\" created`);\n setNewGroupName(\"\");\n setNewGroupMode(false);\n setSelectedGroups((curr) => [...curr, created.id]);\n refetchModalGroups();\n onGroupsChanged();\n } catch (err) {\n toast.error(err instanceof Error ? err.message : \"Failed to create group\");\n } finally {\n setCreatingGroup(false);\n }\n };\n\n const submit = async () => {\n if (!email.trim()) return toast.error(\"Email is required\");\n setSaving(true);\n try {\n await apiFetch(\"/api/contacts\", {\n method: \"POST\",\n body: JSON.stringify({\n email: email.trim(),\n name: name.trim() || null,\n tags,\n groupIds: selectedGroups,\n }),\n });\n toast.success(\"Contact added\");\n reset();\n onOpenChange(false);\n onAdded();\n } catch (err) {\n toast.error(err instanceof Error ? err.message : \"Failed to add contact\");\n } finally {\n setSaving(false);\n }\n };\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent>\n <DialogHeader>\n <DialogTitle>Add contact</DialogTitle>\n <DialogDescription>\n Add a single subscriber. If the email already exists, their name and tags will be updated.\n </DialogDescription>\n </DialogHeader>\n <div className=\"flex flex-col gap-3\">\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor=\"add-email\">Email</Label>\n <Input\n id=\"add-email\"\n type=\"email\"\n value={email}\n onChange={(e) => setEmail(e.target.value)}\n placeholder=\"reader@example.com\"\n autoFocus\n />\n </div>\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor=\"add-name\">Name (optional)</Label>\n <Input\n id=\"add-name\"\n value={name}\n onChange={(e) => setName(e.target.value)}\n placeholder=\"Jane Reader\"\n />\n </div>\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor=\"add-tags\">Tags (optional)</Label>\n <Input\n id=\"add-tags\"\n value={tags}\n onChange={(e) => setTags(e.target.value)}\n placeholder=\"founders, weekly-digest\"\n />\n <p className=\"text-xs text-muted-foreground\">Comma-separated.</p>\n </div>\n <div className=\"flex flex-col gap-1.5\">\n <div className=\"flex items-center justify-between gap-2\">\n <Label>Groups (optional)</Label>\n <button\n type=\"button\"\n onClick={() => setNewGroupMode((v) => !v)}\n className=\"inline-flex items-center gap-1 text-xs font-medium text-primary hover:underline\"\n >\n <Plus className=\"size-3\" /> New group\n </button>\n </div>\n {newGroupMode && (\n <div className=\"flex items-center gap-2 rounded-lg border bg-muted/40 p-2\">\n <Input\n value={newGroupName}\n onChange={(e) => setNewGroupName(e.target.value)}\n placeholder=\"New group name\"\n className=\"h-8 text-xs\"\n onKeyDown={(e) => {\n if (e.key === \"Enter\") {\n e.preventDefault();\n void createInlineGroup();\n }\n }}\n />\n <Button\n type=\"button\"\n size=\"sm\"\n className=\"h-8 px-2.5 text-xs shrink-0\"\n disabled={creatingGroup}\n onClick={createInlineGroup}\n >\n {creatingGroup ? <Loader2 className=\"size-3.5 animate-spin\" /> : \"Add\"}\n </Button>\n </div>\n )}\n {groups && groups.length > 0 ? (\n <div className=\"flex flex-wrap gap-2\" role=\"group\" aria-label=\"Groups\">\n {groups.map((group) => {\n const selected = selectedGroups.includes(group.id);\n return (\n <button\n key={group.id}\n type=\"button\"\n aria-pressed={selected}\n onClick={() =>\n setSelectedGroups((current) =>\n selected\n ? current.filter((id) => id !== group.id)\n : [...current, group.id]\n )\n }\n className={`inline-flex items-center gap-1.5 rounded-full border px-3 py-1 text-xs transition-colors ${\n selected\n ? \"border-foreground bg-foreground text-background\"\n : \"border-border text-muted-foreground hover:text-foreground\"\n }`}\n >\n <span\n className=\"size-2 rounded-full\"\n style={{ backgroundColor: group.color }}\n aria-hidden\n />\n {group.name}\n </button>\n );\n })}\n </div>\n ) : (\n <p className=\"text-xs text-muted-foreground\">No groups yet — use + New group above.</p>\n )}\n </div>\n </div>\n <DialogFooter>\n <Button variant=\"outline\" onClick={() => onOpenChange(false)} disabled={saving}>\n Cancel\n </Button>\n <Button onClick={submit} disabled={saving}>\n {saving ? <Loader2 className=\"size-4 animate-spin\" /> : <Plus className=\"size-4\" />}\n Add contact\n </Button>\n </DialogFooter>\n </DialogContent>\n </Dialog>\n );\n}\n\nfunction GroupEditorDialog({\n target,\n onOpenChange,\n onSaved,\n}: {\n // null = closed, \"new\" = create, GroupItem = edit existing.\n target: GroupItem | \"new\" | null;\n onOpenChange: (o: boolean) => void;\n onSaved: (group: GroupItem, isNew: boolean) => void;\n}) {\n if (!target) return null;\n return (\n <GroupEditorDialogForm\n key={target === \"new\" ? \"new\" : target.id}\n target={target}\n onOpenChange={onOpenChange}\n onSaved={onSaved}\n />\n );\n}\n\nfunction GroupEditorDialogForm({\n target,\n onOpenChange,\n onSaved,\n}: {\n target: GroupItem | \"new\";\n onOpenChange: (o: boolean) => void;\n onSaved: (group: GroupItem, isNew: boolean) => void;\n}) {\n const existing = target !== \"new\" ? target : null;\n\n const [name, setName] = useState(existing?.name ?? \"\");\n const [description, setDescription] = useState(existing?.description ?? \"\");\n const [color, setColor] = useState(existing?.color || \"#1a1a1a\");\n const [saving, setSaving] = useState(false);\n\n const submit = async () => {\n if (!name.trim()) {\n toast.error(\"Group name is required\");\n return;\n }\n setSaving(true);\n try {\n const payload = {\n name: name.trim(),\n description: description.trim() || null,\n color,\n };\n if (existing) {\n const updated = await apiFetch<GroupItem>(\n `/api/groups/${existing.id}`,\n { method: \"PATCH\", body: JSON.stringify(payload) }\n );\n toast.success(\"Group updated\");\n onSaved(updated, false);\n } else {\n const created = await apiFetch<GroupItem>(\"/api/groups\", {\n method: \"POST\",\n body: JSON.stringify(payload),\n });\n toast.success(\"Group created\");\n onSaved(created, true);\n }\n } catch (err) {\n toast.error(\n err instanceof Error ? err.message : \"Failed to save group\"\n );\n } finally {\n setSaving(false);\n }\n };\n\n return (\n <Dialog open onOpenChange={onOpenChange}>\n <DialogContent>\n <DialogHeader>\n <DialogTitle>\n {existing ? \"Edit group\" : \"New group\"}\n </DialogTitle>\n <DialogDescription>\n Groups help you segment your list and target campaigns. You can\n link a group to a signup form so submissions land here automatically.\n </DialogDescription>\n </DialogHeader>\n <div className=\"flex flex-col gap-3\">\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor=\"grp-name\">Name</Label>\n <Input\n id=\"grp-name\"\n value={name}\n onChange={(e) => setName(e.target.value)}\n placeholder=\"Newsletter list\"\n autoFocus\n />\n </div>\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor=\"grp-desc\">Description (optional)</Label>\n <Input\n id=\"grp-desc\"\n value={description}\n onChange={(e) => setDescription(e.target.value)}\n placeholder=\"People who opted in via the website footer\"\n />\n </div>\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor=\"grp-color\">Color</Label>\n <div className=\"flex items-center gap-2\">\n <input\n type=\"color\"\n value={color}\n onChange={(e) => setColor(e.target.value)}\n className=\"size-9 rounded-md border border-border bg-card cursor-pointer p-0.5\"\n aria-label=\"Group color\"\n />\n <Input\n value={color}\n onChange={(e) => setColor(e.target.value)}\n className=\"font-mono text-xs\"\n />\n </div>\n </div>\n </div>\n <DialogFooter>\n <Button\n variant=\"outline\"\n onClick={() => onOpenChange(false)}\n disabled={saving}\n >\n Cancel\n </Button>\n <Button onClick={submit} disabled={saving}>\n {saving ? (\n <Loader2 className=\"size-4 animate-spin\" />\n ) : existing ? (\n <Pencil className=\"size-4\" />\n ) : (\n <Plus className=\"size-4\" />\n )}\n {existing ? \"Save changes\" : \"Create group\"}\n </Button>\n </DialogFooter>\n </DialogContent>\n </Dialog>\n );\n}\n\n// End of ContactList.\n","\"use client\"\n\nimport * as React from \"react\"\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\"\nimport { CheckIcon, ChevronRightIcon, CircleIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction DropdownMenu({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {\n return <DropdownMenuPrimitive.Root data-slot=\"dropdown-menu\" {...props} />\n}\n\nfunction DropdownMenuPortal({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {\n return (\n <DropdownMenuPrimitive.Portal data-slot=\"dropdown-menu-portal\" {...props} />\n )\n}\n\nfunction DropdownMenuTrigger({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {\n return (\n <DropdownMenuPrimitive.Trigger\n data-slot=\"dropdown-menu-trigger\"\n {...props}\n />\n )\n}\n\nfunction DropdownMenuContent({\n className,\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n data-slot=\"dropdown-menu-content\"\n sideOffset={sideOffset}\n className={cn(\n \"bg-popover text-popover-foreground 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md\",\n className\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n )\n}\n\nfunction DropdownMenuGroup({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {\n return (\n <DropdownMenuPrimitive.Group data-slot=\"dropdown-menu-group\" {...props} />\n )\n}\n\nfunction DropdownMenuItem({\n className,\n inset,\n variant = \"default\",\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean\n variant?: \"default\" | \"destructive\"\n}) {\n return (\n <DropdownMenuPrimitive.Item\n data-slot=\"dropdown-menu-item\"\n data-inset={inset}\n data-variant={variant}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DropdownMenuCheckboxItem({\n className,\n children,\n checked,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>) {\n return (\n <DropdownMenuPrimitive.CheckboxItem\n data-slot=\"dropdown-menu-checkbox-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n )\n}\n\nfunction DropdownMenuRadioGroup({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {\n return (\n <DropdownMenuPrimitive.RadioGroup\n data-slot=\"dropdown-menu-radio-group\"\n {...props}\n />\n )\n}\n\nfunction DropdownMenuRadioItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>) {\n return (\n <DropdownMenuPrimitive.RadioItem\n data-slot=\"dropdown-menu-radio-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CircleIcon className=\"size-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n )\n}\n\nfunction DropdownMenuLabel({\n className,\n inset,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean\n}) {\n return (\n <DropdownMenuPrimitive.Label\n data-slot=\"dropdown-menu-label\"\n data-inset={inset}\n className={cn(\n \"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DropdownMenuSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>) {\n return (\n <DropdownMenuPrimitive.Separator\n data-slot=\"dropdown-menu-separator\"\n className={cn(\"bg-border -mx-1 my-1 h-px\", className)}\n {...props}\n />\n )\n}\n\nfunction DropdownMenuShortcut({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"dropdown-menu-shortcut\"\n className={cn(\n \"text-muted-foreground ml-auto text-xs tracking-widest\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DropdownMenuSub({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>) {\n return <DropdownMenuPrimitive.Sub data-slot=\"dropdown-menu-sub\" {...props} />\n}\n\nfunction DropdownMenuSubTrigger({\n className,\n inset,\n children,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean\n}) {\n return (\n <DropdownMenuPrimitive.SubTrigger\n data-slot=\"dropdown-menu-sub-trigger\"\n data-inset={inset}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n )\n}\n\nfunction DropdownMenuSubContent({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {\n return (\n <DropdownMenuPrimitive.SubContent\n data-slot=\"dropdown-menu-sub-content\"\n className={cn(\n \"bg-popover text-popover-foreground 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n DropdownMenu,\n DropdownMenuPortal,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuLabel,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubTrigger,\n DropdownMenuSubContent,\n}\n","\"use client\";\n\nimport { useState } from \"react\";\nimport { toast } from \"sonner\";\nimport { Loader2, Upload, FileText, MailPlus, FileUp } from \"lucide-react\";\nimport { apiFetch } from \"../use-api\";\nimport {\n defaultColumnMapping,\n mapCsvRows,\n parseCsv,\n type ColumnMapping,\n} from \"@/lib/contact-import\";\nimport { Button } from \"@/components/ui/button\";\nimport { Label } from \"@/components/ui/label\";\nimport { Input } from \"@/components/ui/input\";\nimport { Textarea } from \"@/components/ui/textarea\";\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n} from \"@/components/ui/dialog\";\nimport { Tabs, TabsList, TabsTrigger, TabsContent } from \"@/components/ui/tabs\";\n\ninterface ImportResponse {\n imported: number;\n updated: number;\n skipped: number;\n total: number;\n}\n\nconst MAPPING_OPTIONS: { value: ColumnMapping; label: string }[] = [\n { value: \"email\", label: \"Email\" },\n { value: \"name\", label: \"Name\" },\n { value: \"tags\", label: \"Tags\" },\n { value: \"telegram\", label: \"Telegram\" },\n { value: \"group\", label: \"Group\" },\n { value: \"skip\", label: \"Skip column\" },\n];\n\nexport function ImportDialog({\n open,\n onOpenChange,\n onImported,\n}: {\n open: boolean;\n onOpenChange: (o: boolean) => void;\n onImported: () => void;\n}) {\n const [tab, setTab] = useState(\"csv\");\n const [csv, setCsv] = useState(\"\");\n const [emails, setEmails] = useState(\"\");\n const [headers, setHeaders] = useState<string[]>([]);\n const [rows, setRows] = useState<string[][]>([]);\n const [mapping, setMapping] = useState<Record<string, ColumnMapping>>({});\n const [defaultGroups, setDefaultGroups] = useState(\"\");\n const [busy, setBusy] = useState(false);\n\n const reset = () => {\n setCsv(\"\");\n setEmails(\"\");\n setHeaders([]);\n setRows([]);\n setMapping({});\n setDefaultGroups(\"\");\n };\n\n const loadCsv = (text: string) => {\n setCsv(text);\n const parsed = parseCsv(text);\n setHeaders(parsed.headers);\n setRows(parsed.rows);\n setMapping(defaultColumnMapping(parsed.headers));\n };\n\n const loadFile = async (file: File | undefined) => {\n if (!file) return;\n try {\n loadCsv(await file.text());\n setTab(\"csv\");\n } catch {\n toast.error(\"Could not read that file\");\n }\n };\n\n const submit = async () => {\n setBusy(true);\n try {\n if (tab === \"emails\" && !emails.trim()) {\n toast.error(\"Paste some emails first\");\n return;\n }\n if (tab === \"csv\" && !csv.trim()) {\n toast.error(\"Upload or paste some CSV first\");\n return;\n }\n\n let payload: Record<string, unknown>;\n if (tab === \"emails\") {\n payload = { emails };\n } else if (headers.length > 0) {\n const groups = defaultGroups\n .split(/[,;]/)\n .map((g) => g.trim())\n .filter(Boolean);\n const mapped = mapCsvRows(headers, rows, mapping, groups);\n if (mapped.contacts.length === 0) {\n toast.error(\"No valid rows — check your column mapping\");\n return;\n }\n payload = { contacts: mapped.contacts };\n } else {\n payload = { csv };\n }\n\n const result = await apiFetch<ImportResponse>(\"/api/contacts/import\", {\n method: \"POST\",\n body: JSON.stringify(payload),\n });\n toast.success(\n `Imported ${result.imported}, updated ${result.updated}, skipped ${result.skipped}`,\n { description: `${result.total} total contacts touched.` }\n );\n reset();\n onOpenChange(false);\n onImported();\n } catch (err) {\n toast.error(err instanceof Error ? err.message : \"Import failed\");\n } finally {\n setBusy(false);\n }\n };\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent className=\"sm:max-w-2xl\">\n <DialogHeader>\n <DialogTitle>Import contacts</DialogTitle>\n <DialogDescription>\n Upload a CSV and map each column to a contact field. Duplicates are\n merged (updated in place); invalid rows are skipped.\n </DialogDescription>\n </DialogHeader>\n\n <Tabs value={tab} onValueChange={setTab}>\n <TabsList>\n <TabsTrigger value=\"upload\">\n <FileUp className=\"size-3.5\" /> Upload CSV\n </TabsTrigger>\n <TabsTrigger value=\"csv\">\n <FileText className=\"size-3.5\" /> Paste CSV\n </TabsTrigger>\n <TabsTrigger value=\"emails\">\n <MailPlus className=\"size-3.5\" /> Paste emails\n </TabsTrigger>\n </TabsList>\n\n <TabsContent value=\"upload\" className=\"mt-3\">\n <div className=\"flex flex-col gap-2\">\n <Label htmlFor=\"csv-file\">CSV file</Label>\n <Input\n id=\"csv-file\"\n type=\"file\"\n accept=\".csv,text/csv\"\n onChange={(e) => loadFile(e.target.files?.[0])}\n />\n <p className=\"text-xs text-muted-foreground\">\n The first row is treated as column headings. You will map them\n on the Paste CSV tab.\n </p>\n </div>\n </TabsContent>\n\n <TabsContent value=\"csv\" className=\"mt-3\">\n <div className=\"flex flex-col gap-3\">\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor=\"csv-input\">CSV content</Label>\n <Textarea\n id=\"csv-input\"\n value={csv}\n onChange={(e) => loadCsv(e.target.value)}\n placeholder={\"name,email,tags\\nJane Reader,jane@example.com,founders\"}\n className=\"min-h-[140px] font-mono text-xs\"\n />\n </div>\n\n {headers.length > 0 && (\n <div className=\"rounded-lg border p-3 flex flex-col gap-3\">\n <p className=\"text-sm font-medium\">Map columns</p>\n <div className=\"grid sm:grid-cols-2 gap-3\">\n {headers.map((header, index) => (\n <div key={`${header}-${index}`} className=\"flex flex-col gap-1\">\n <Label className=\"text-xs text-muted-foreground\">\n {header}\n {rows[0]?.[index] ? ` — e.g. ${rows[0][index]}` : \"\"}\n </Label>\n <select\n value={mapping[header] ?? \"skip\"}\n onChange={(e) =>\n setMapping((current) => ({\n ...current,\n [header]: e.target.value as ColumnMapping,\n }))\n }\n className=\"h-9 rounded-md border bg-background px-2 text-sm\"\n >\n {MAPPING_OPTIONS.map((option) => (\n <option key={option.value} value={option.value}>\n {option.label}\n </option>\n ))}\n </select>\n </div>\n ))}\n </div>\n <div className=\"flex flex-col gap-1\">\n <Label htmlFor=\"default-groups\" className=\"text-xs text-muted-foreground\">\n Add every row to these groups (optional)\n </Label>\n <Input\n id=\"default-groups\"\n value={defaultGroups}\n onChange={(e) => setDefaultGroups(e.target.value)}\n placeholder=\"Newsletter, Beta readers\"\n />\n </div>\n {rows.length > 0 && (\n <div className=\"overflow-x-auto\">\n <table className=\"text-xs w-full\">\n <thead>\n <tr className=\"text-muted-foreground text-left\">\n {headers.map((header, index) => (\n <th key={`${header}-${index}`} className=\"py-1 pr-3 font-medium\">\n {header}\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {rows.slice(0, 5).map((row, rowIndex) => (\n <tr key={rowIndex}>\n {headers.map((_, index) => (\n <td key={index} className=\"py-1 pr-3\">\n {row[index] ?? \"\"}\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n <p className=\"text-[11px] text-muted-foreground mt-1\">\n Previewing {Math.min(5, rows.length)} of {rows.length} rows.\n </p>\n </div>\n )}\n </div>\n )}\n </div>\n </TabsContent>\n\n <TabsContent value=\"emails\" className=\"mt-3\">\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor=\"emails-input\">Emails (one per line)</Label>\n <Textarea\n id=\"emails-input\"\n value={emails}\n onChange={(e) => setEmails(e.target.value)}\n placeholder={\"jane@example.com\\nalex@example.com\\nsam@example.com\"}\n className=\"min-h-[220px] font-mono text-xs\"\n />\n <p className=\"text-xs text-muted-foreground\">\n Comma, semicolon, or whitespace separated also accepted.\n </p>\n </div>\n </TabsContent>\n </Tabs>\n\n <DialogFooter>\n <Button variant=\"outline\" onClick={() => onOpenChange(false)} disabled={busy}>\n Cancel\n </Button>\n <Button onClick={submit} disabled={busy}>\n {busy ? (\n <Loader2 className=\"size-4 animate-spin\" />\n ) : (\n <Upload className=\"size-4\" />\n )}\n Import\n </Button>\n </DialogFooter>\n </DialogContent>\n </Dialog>\n );\n}\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z', key: '1rqfz7' }],\n ['path', { d: 'M14 2v4a2 2 0 0 0 2 2h4', key: 'tnqrlb' }],\n ['path', { d: 'M12 12v6', key: '3ahymv' }],\n ['path', { d: 'm15 15-3-3-3 3', key: '15xj92' }],\n];\n\n/**\n * @component @name FileUp\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTUgMkg2YTIgMiAwIDAgMC0yIDJ2MTZhMiAyIDAgMCAwIDIgMmgxMmEyIDIgMCAwIDAgMi0yVjdaIiAvPgogIDxwYXRoIGQ9Ik0xNCAydjRhMiAyIDAgMCAwIDIgMmg0IiAvPgogIDxwYXRoIGQ9Ik0xMiAxMnY2IiAvPgogIDxwYXRoIGQ9Im0xNSAxNS0zLTMtMyAzIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/file-up\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst FileUp = createLucideIcon('file-up', __iconNode);\n\nexport default FileUp;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [['circle', { cx: '12', cy: '12', r: '10', key: '1mglay' }]];\n\n/**\n * @component @name Circle\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/circle\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Circle = createLucideIcon('circle', __iconNode);\n\nexport default Circle;\n","import * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { createCollection } from '@radix-ui/react-collection';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport { createContextScope } from '@radix-ui/react-context';\nimport { useDirection } from '@radix-ui/react-direction';\nimport { DismissableLayer } from '@radix-ui/react-dismissable-layer';\nimport { useFocusGuards } from '@radix-ui/react-focus-guards';\nimport {\n FocusScope,\n FocusScopeBranchProvider,\n useFocusScopeBranch,\n useFocusScopeBranchRegistry,\n} from '@radix-ui/react-focus-scope';\nimport { useId } from '@radix-ui/react-id';\nimport * as PopperPrimitive from '@radix-ui/react-popper';\nimport { createPopperScope } from '@radix-ui/react-popper';\nimport { Portal as PortalPrimitive } from '@radix-ui/react-portal';\nimport { Presence } from '@radix-ui/react-presence';\nimport { Primitive, dispatchDiscreteCustomEvent } from '@radix-ui/react-primitive';\nimport * as RovingFocusGroup from '@radix-ui/react-roving-focus';\nimport { createRovingFocusGroupScope } from '@radix-ui/react-roving-focus';\nimport { createSlot } from '@radix-ui/react-slot';\nimport { useCallbackRef } from '@radix-ui/react-use-callback-ref';\nimport { hideOthers } from 'aria-hidden';\nimport { RemoveScroll } from 'react-remove-scroll';\n\nimport type { Scope } from '@radix-ui/react-context';\n\nconst Direction = {\n LTR: 'ltr',\n RTL: 'rtl',\n} as const;\n\ntype Direction = (typeof Direction)[keyof typeof Direction];\n\nconst SELECTION_KEYS = ['Enter', ' '];\nconst FIRST_KEYS = ['ArrowDown', 'PageUp', 'Home'];\nconst LAST_KEYS = ['ArrowUp', 'PageDown', 'End'];\nconst FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nconst SUB_OPEN_KEYS: Record<Direction, string[]> = {\n ltr: [...SELECTION_KEYS, 'ArrowRight'],\n rtl: [...SELECTION_KEYS, 'ArrowLeft'],\n};\nconst SUB_CLOSE_KEYS: Record<Direction, string[]> = {\n ltr: ['ArrowLeft'],\n rtl: ['ArrowRight'],\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Menu\n * -----------------------------------------------------------------------------------------------*/\n\nconst MENU_NAME = 'Menu';\n\ntype ItemData = { disabled: boolean; textValue: string };\nconst [Collection, useCollection, createCollectionScope] = createCollection<\n MenuItemElement,\n ItemData\n>(MENU_NAME);\n\ntype ScopedProps<P> = P & { __scopeMenu?: Scope | undefined };\nconst [createMenuContext, createMenuScope] = createContextScope(MENU_NAME, [\n createCollectionScope,\n createPopperScope,\n createRovingFocusGroupScope,\n]);\nconst usePopperScope = createPopperScope();\nconst useRovingFocusGroupScope = createRovingFocusGroupScope();\n\ntype MenuContextValue = {\n open: boolean;\n onOpenChange(open: boolean): void;\n content: MenuContentElement | null;\n onContentChange(content: MenuContentElement | null): void;\n};\n\nconst [MenuProvider, useMenuContext] = createMenuContext<MenuContextValue>(MENU_NAME);\n\ntype MenuRootContextValue = {\n onClose(): void;\n isUsingKeyboardRef: React.RefObject<boolean>;\n dir: Direction;\n modal: boolean;\n};\n\nconst [MenuRootProvider, useMenuRootContext] = createMenuContext<MenuRootContextValue>(MENU_NAME);\n\ninterface MenuProps {\n children?: React.ReactNode | undefined;\n open?: boolean | undefined;\n onOpenChange?: { bivarianceHack(open: boolean): void }['bivarianceHack'] | undefined;\n dir?: Direction | undefined;\n modal?: boolean | undefined;\n}\n\nconst Menu: React.FC<MenuProps> = (props: ScopedProps<MenuProps>) => {\n const { __scopeMenu, open = false, children, dir, onOpenChange, modal = true } = props;\n const popperScope = usePopperScope(__scopeMenu);\n const [content, setContent] = React.useState<MenuContentElement | null>(null);\n const isUsingKeyboardRef = React.useRef(false);\n const handleOpenChange = useCallbackRef(onOpenChange);\n const direction = useDirection(dir);\n\n React.useEffect(() => {\n // Capture phase ensures we set the boolean before any side effects execute\n // in response to the key or pointer event as they might depend on this value.\n const handleKeyDown = () => {\n isUsingKeyboardRef.current = true;\n document.addEventListener('pointerdown', handlePointer, { capture: true, once: true });\n document.addEventListener('pointermove', handlePointer, { capture: true, once: true });\n };\n const handlePointer = () => (isUsingKeyboardRef.current = false);\n document.addEventListener('keydown', handleKeyDown, { capture: true });\n return () => {\n document.removeEventListener('keydown', handleKeyDown, { capture: true });\n document.removeEventListener('pointerdown', handlePointer, { capture: true });\n document.removeEventListener('pointermove', handlePointer, { capture: true });\n };\n }, []);\n\n // Close the menu (and any open submenus) when the window loses focus, e.g. when\n // switching to another browser tab or application. Without this, submenus would\n // remain open when the page is re-focused, leaving the menu in an inconsistent state.\n // See: https://github.com/radix-ui/primitives/issues/3257\n React.useEffect(() => {\n if (!open) {\n return;\n }\n const handleBlur = () => handleOpenChange(false);\n window.addEventListener('blur', handleBlur);\n return () => window.removeEventListener('blur', handleBlur);\n }, [open, handleOpenChange]);\n\n return (\n <PopperPrimitive.Root {...popperScope}>\n <MenuProvider\n scope={__scopeMenu}\n open={open}\n onOpenChange={handleOpenChange}\n content={content}\n onContentChange={setContent}\n >\n <MenuRootProvider\n scope={__scopeMenu}\n onClose={React.useCallback(() => handleOpenChange(false), [handleOpenChange])}\n isUsingKeyboardRef={isUsingKeyboardRef}\n dir={direction}\n modal={modal}\n >\n {children}\n </MenuRootProvider>\n </MenuProvider>\n </PopperPrimitive.Root>\n );\n};\n\n/* -------------------------------------------------------------------------------------------------\n * MenuAnchor\n * -----------------------------------------------------------------------------------------------*/\n\ntype MenuAnchorElement = React.ComponentRef<typeof PopperPrimitive.Anchor>;\ntype PopperAnchorProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Anchor>;\ninterface MenuAnchorProps extends PopperAnchorProps {}\n\nconst MenuAnchor = /* @__PURE__ */ React.forwardRef<MenuAnchorElement, MenuAnchorProps>(\n function MenuAnchor(props: ScopedProps<MenuAnchorProps>, forwardedRef) {\n const { __scopeMenu, ...anchorProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return <PopperPrimitive.Anchor {...popperScope} {...anchorProps} ref={forwardedRef} />;\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * MenuPortal\n * -----------------------------------------------------------------------------------------------*/\n\nconst PORTAL_NAME = 'MenuPortal';\n\ntype PortalContextValue = { forceMount?: true | undefined };\nconst [PortalProvider, usePortalContext] = createMenuContext<PortalContextValue>(PORTAL_NAME, {\n forceMount: undefined,\n});\n\ntype PortalProps = React.ComponentPropsWithoutRef<typeof PortalPrimitive>;\ninterface MenuPortalProps {\n children?: React.ReactNode | undefined;\n /**\n * Specify a container element to portal the content into.\n */\n container?: PortalProps['container'] | undefined;\n /**\n * Used to force mounting when more control is needed. Useful when\n * controlling animation with React animation libraries.\n */\n forceMount?: true | undefined;\n}\n\nconst MenuPortal: React.FC<MenuPortalProps> = (props: ScopedProps<MenuPortalProps>) => {\n const { __scopeMenu, forceMount, children, container } = props;\n const context = useMenuContext(PORTAL_NAME, __scopeMenu);\n return (\n <PortalProvider scope={__scopeMenu} forceMount={forceMount}>\n <Presence present={forceMount || context.open}>\n <PortalPrimitive asChild container={container}>\n {children}\n </PortalPrimitive>\n </Presence>\n </PortalProvider>\n );\n};\n\n/* -------------------------------------------------------------------------------------------------\n * MenuContent\n * -----------------------------------------------------------------------------------------------*/\n\nconst CONTENT_NAME = 'MenuContent';\n\ntype MenuContentContextValue = {\n onItemEnter(event: React.PointerEvent): void;\n onItemLeave(event: React.PointerEvent): void;\n onTriggerLeave(event: React.PointerEvent): void;\n searchRef: React.RefObject<string>;\n pointerGraceTimerRef: React.MutableRefObject<number>;\n onPointerGraceIntentChange(intent: GraceIntent | null): void;\n};\nconst [MenuContentProvider, useMenuContentContext] =\n createMenuContext<MenuContentContextValue>(CONTENT_NAME);\n\ntype MenuContentElement = MenuRootContentTypeElement;\n/**\n * We purposefully don't union MenuRootContent and MenuSubContent props here because\n * they have conflicting prop types. We agreed that we would allow MenuSubContent to\n * accept props that it would just ignore.\n */\ninterface MenuContentProps extends MenuRootContentTypeProps {\n /**\n * Used to force mounting when more control is needed. Useful when\n * controlling animation with React animation libraries.\n */\n forceMount?: true | undefined;\n}\n\nconst MenuContent = /* @__PURE__ */ React.forwardRef<MenuContentElement, MenuContentProps>(\n function MenuContent(props: ScopedProps<MenuContentProps>, forwardedRef) {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n\n return (\n <Collection.Provider scope={props.__scopeMenu}>\n <Presence present={forceMount || context.open}>\n <Collection.Slot scope={props.__scopeMenu}>\n {rootContext.modal ? (\n <MenuRootContentModal {...contentProps} ref={forwardedRef} />\n ) : (\n <MenuRootContentNonModal {...contentProps} ref={forwardedRef} />\n )}\n </Collection.Slot>\n </Presence>\n </Collection.Provider>\n );\n },\n);\n\n/* ---------------------------------------------------------------------------------------------- */\n\ntype MenuRootContentTypeElement = MenuContentImplElement;\ninterface MenuRootContentTypeProps extends Omit<\n MenuContentImplProps,\n keyof MenuContentImplPrivateProps\n> {}\n\nconst MenuRootContentModal = /* @__PURE__ */ React.forwardRef<\n MenuRootContentTypeElement,\n MenuRootContentTypeProps\n>(\n // blank line to reduce diff noise\n function MenuRootContentModal(props: ScopedProps<MenuRootContentTypeProps>, forwardedRef) {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef<MenuRootContentTypeElement>(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n\n // Hide everything from ARIA except the `MenuContent`\n React.useEffect(() => {\n const content = ref.current;\n if (content) return hideOthers(content);\n }, []);\n\n return (\n <MenuContentImpl\n {...props}\n ref={composedRefs}\n // we make sure we're not trapping once it's been closed\n // (closed !== unmounted when animating out)\n trapFocus={context.open}\n // make sure to only disable pointer events when open\n // this avoids blocking interactions while animating out\n disableOutsidePointerEvents={context.open}\n disableOutsideScroll\n // When focus is trapped, a `focusout` event may still happen.\n // We make sure we don't trigger our `onDismiss` in such case.\n onFocusOutside={composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false },\n )}\n onDismiss={() => context.onOpenChange(false)}\n />\n );\n },\n);\n\nconst MenuRootContentNonModal = /* @__PURE__ */ React.forwardRef<\n MenuRootContentTypeElement,\n MenuRootContentTypeProps\n>(function MenuRootContentNonModal(props: ScopedProps<MenuRootContentTypeProps>, forwardedRef) {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n return (\n <MenuContentImpl\n {...props}\n ref={forwardedRef}\n trapFocus={false}\n disableOutsidePointerEvents={false}\n disableOutsideScroll={false}\n onDismiss={() => context.onOpenChange(false)}\n />\n );\n});\n\n/* ---------------------------------------------------------------------------------------------- */\n\ntype MenuContentImplElement = React.ComponentRef<typeof PopperPrimitive.Content>;\ntype FocusScopeProps = React.ComponentPropsWithoutRef<typeof FocusScope>;\ntype DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;\ntype RovingFocusGroupProps = React.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;\ntype PopperContentProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;\ntype MenuContentImplPrivateProps = {\n onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'] | undefined;\n onDismiss?: DismissableLayerProps['onDismiss'] | undefined;\n disableOutsidePointerEvents?: DismissableLayerProps['disableOutsidePointerEvents'] | undefined;\n\n /**\n * Whether scrolling outside the `MenuContent` should be prevented\n * (default: `false`)\n */\n disableOutsideScroll?: boolean | undefined;\n\n /**\n * Whether focus should be trapped within the `MenuContent`\n * (default: false)\n */\n trapFocus?: FocusScopeProps['trapped'] | undefined;\n};\ninterface MenuContentImplProps\n extends MenuContentImplPrivateProps, Omit<PopperContentProps, 'dir' | 'onPlaced'> {\n /**\n * Event handler called when auto-focusing on close.\n * Can be prevented.\n */\n onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'] | undefined;\n\n /**\n * Whether keyboard navigation should loop around\n * @defaultValue false\n */\n loop?: RovingFocusGroupProps['loop'] | undefined;\n\n onEntryFocus?: RovingFocusGroupProps['onEntryFocus'] | undefined;\n onEscapeKeyDown?: DismissableLayerProps['onEscapeKeyDown'] | undefined;\n onPointerDownOutside?: DismissableLayerProps['onPointerDownOutside'] | undefined;\n onFocusOutside?: DismissableLayerProps['onFocusOutside'] | undefined;\n onInteractOutside?: DismissableLayerProps['onInteractOutside'] | undefined;\n}\n\nconst Slot = createSlot('MenuContent.ScrollLock');\n\nconst MenuContentImpl = /* @__PURE__ */ React.forwardRef<\n MenuContentImplElement,\n MenuContentImplProps\n>(\n // blank line to reduce diff noise\n function MenuContentImpl(props: ScopedProps<MenuContentImplProps>, forwardedRef) {\n const {\n __scopeMenu,\n loop = false,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEntryFocus,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n disableOutsideScroll,\n ...contentProps\n } = props;\n const context = useMenuContext(CONTENT_NAME, __scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const getItems = useCollection(__scopeMenu);\n const [currentItemId, setCurrentItemId] = React.useState<string | null>(null);\n const contentRef = React.useRef<HTMLDivElement>(null);\n\n // When this `Menu` is nested inside a modal layer (eg. a `Dialog`) but portalled outside of it,\n // register its content with the ancestor layer so focus isn't reclaimed and scroll isn't locked\n // for it (only relevant for non-modal menus, which don't trap focus / lock scroll themselves).\n // It also exposes its own registry so nested, portalled layers can do the same against it.\n // See: https://github.com/radix-ui/primitives/issues/3423\n const [branchNode, setBranchNode] = React.useState<HTMLElement | null>(null);\n useFocusScopeBranch(branchNode);\n const { nodes: branchNodes, registry: branchRegistry } = useFocusScopeBranchRegistry();\n // Only modal menus trap focus / lock scroll, so only they need to host branches. Non-modal\n // menus stay transparent and let nested layers register against the next modal ancestor.\n const isModal = Boolean(trapFocus || disableOutsideScroll);\n const composedRefs = useComposedRefs(\n forwardedRef,\n contentRef,\n context.onContentChange,\n setBranchNode,\n );\n const timerRef = React.useRef(0);\n const searchRef = React.useRef('');\n const pointerGraceTimerRef = React.useRef(0);\n const pointerGraceIntentRef = React.useRef<GraceIntent | null>(null);\n const pointerDirRef = React.useRef<Side>('right');\n const lastPointerXRef = React.useRef(0);\n const shards = React.useMemo(\n () =>\n disableOutsideScroll ? [contentRef, ...branchNodes.map((node) => ({ current: node }))] : [],\n [contentRef, branchNodes, disableOutsideScroll],\n );\n\n const ScrollLockWrapper = disableOutsideScroll ? RemoveScroll : React.Fragment;\n const scrollLockWrapperProps = disableOutsideScroll\n ? {\n as: Slot,\n allowPinchZoom: true,\n shards,\n }\n : undefined;\n\n const handleTypeaheadSearch = (key: string) => {\n const search = searchRef.current + key;\n const items = getItems().filter((item) => !item.disabled);\n const currentItem = document.activeElement;\n const currentMatch = items.find((item) => item.ref.current === currentItem)?.textValue;\n const values = items.map((item) => item.textValue);\n const nextMatch = getNextMatch(values, search, currentMatch);\n const newItem = items.find((item) => item.textValue === nextMatch)?.ref.current;\n\n // Reset `searchRef` 1 second after it was last updated\n function updateSearch(value: string) {\n searchRef.current = value;\n window.clearTimeout(timerRef.current);\n if (value !== '') timerRef.current = window.setTimeout(() => updateSearch(''), 1000);\n }\n updateSearch(search);\n\n if (newItem) {\n /**\n * Imperative focus during keydown is risky so we prevent React's batching updates\n * to avoid potential bugs. See: https://github.com/facebook/react/issues/20332\n */\n setTimeout(() => (newItem as HTMLElement).focus());\n }\n };\n\n React.useEffect(() => {\n return () => window.clearTimeout(timerRef.current);\n }, []);\n\n // Make sure the whole tree has focus guards as our `MenuContent` may be\n // the last element in the DOM (because of the `Portal`)\n useFocusGuards();\n\n const isPointerMovingToSubmenu = React.useCallback((event: React.PointerEvent) => {\n const isMovingTowards = pointerDirRef.current === pointerGraceIntentRef.current?.side;\n return isMovingTowards && isPointerInGraceArea(event, pointerGraceIntentRef.current?.area);\n }, []);\n\n return (\n <MenuContentProvider\n scope={__scopeMenu}\n searchRef={searchRef}\n onItemEnter={React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu],\n )}\n onItemLeave={React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) return;\n contentRef.current?.focus();\n setCurrentItemId(null);\n },\n [isPointerMovingToSubmenu],\n )}\n onTriggerLeave={React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu],\n )}\n pointerGraceTimerRef={pointerGraceTimerRef}\n onPointerGraceIntentChange={React.useCallback((intent) => {\n pointerGraceIntentRef.current = intent;\n }, [])}\n >\n <FocusScopeBranchProvider registry={isModal ? branchRegistry : null}>\n <ScrollLockWrapper {...scrollLockWrapperProps}>\n <FocusScope\n asChild\n trapped={trapFocus}\n branches={branchNodes}\n onMountAutoFocus={composeEventHandlers(onOpenAutoFocus, (event) => {\n // when opening, explicitly focus the content area only and leave\n // `onEntryFocus` in control of focusing first item\n event.preventDefault();\n contentRef.current?.focus({ preventScroll: true });\n })}\n onUnmountAutoFocus={onCloseAutoFocus}\n >\n <DismissableLayer\n asChild\n disableOutsidePointerEvents={disableOutsidePointerEvents}\n onEscapeKeyDown={onEscapeKeyDown}\n onPointerDownOutside={onPointerDownOutside}\n onFocusOutside={onFocusOutside}\n onInteractOutside={onInteractOutside}\n onDismiss={onDismiss}\n >\n <RovingFocusGroup.Root\n asChild\n {...rovingFocusGroupScope}\n dir={rootContext.dir}\n orientation=\"vertical\"\n loop={loop}\n currentTabStopId={currentItemId}\n onCurrentTabStopIdChange={setCurrentItemId}\n onEntryFocus={composeEventHandlers(onEntryFocus, (event) => {\n // only focus first item when using keyboard\n if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();\n })}\n preventScrollOnEntryFocus\n >\n <PopperPrimitive.Content\n role=\"menu\"\n aria-orientation=\"vertical\"\n data-state={getOpenState(context.open)}\n data-radix-menu-content=\"\"\n dir={rootContext.dir}\n {...popperScope}\n {...contentProps}\n ref={composedRefs}\n style={{ outline: 'none', ...contentProps.style }}\n onKeyDown={composeEventHandlers(contentProps.onKeyDown, (event) => {\n // submenu key events bubble through portals. We only care\n // about keys in this menu.\n const target = event.target as HTMLElement;\n const isKeyDownInside =\n target.closest('[data-radix-menu-content]') === event.currentTarget;\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n const isCharacterKey = event.key.length === 1;\n if (isKeyDownInside) {\n // menus should not be navigated using tab key so we\n // prevent it\n if (event.key === 'Tab') event.preventDefault();\n if (!isModifierKey && isCharacterKey) handleTypeaheadSearch(event.key);\n }\n // focus first/last item based on key pressed\n const content = contentRef.current;\n if (event.target !== content) return;\n if (!FIRST_LAST_KEYS.includes(event.key)) return;\n event.preventDefault();\n const items = getItems().filter((item) => !item.disabled);\n const candidateNodes = items.map((item) => item.ref.current!);\n if (LAST_KEYS.includes(event.key)) candidateNodes.reverse();\n focusFirst(candidateNodes);\n })}\n onBlur={composeEventHandlers(props.onBlur, (event) => {\n // clear search buffer when leaving the menu\n if (!event.currentTarget.contains(event.target)) {\n window.clearTimeout(timerRef.current);\n searchRef.current = '';\n }\n })}\n onPointerMove={composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n const target = event.target as HTMLElement;\n const pointerXHasChanged = lastPointerXRef.current !== event.clientX;\n\n // We don't use `event.movementX` for this check because\n // Safari will always return `0` on a pointer event.\n if (event.currentTarget.contains(target) && pointerXHasChanged) {\n const newDir = event.clientX > lastPointerXRef.current ? 'right' : 'left';\n pointerDirRef.current = newDir;\n lastPointerXRef.current = event.clientX;\n }\n }),\n )}\n />\n </RovingFocusGroup.Root>\n </DismissableLayer>\n </FocusScope>\n </ScrollLockWrapper>\n </FocusScopeBranchProvider>\n </MenuContentProvider>\n );\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * MenuGroup\n * -----------------------------------------------------------------------------------------------*/\n\ntype MenuGroupElement = React.ComponentRef<typeof Primitive.div>;\ntype PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;\ninterface MenuGroupProps extends PrimitiveDivProps {}\n\nconst MenuGroup = /* @__PURE__ */ React.forwardRef<MenuGroupElement, MenuGroupProps>(\n function MenuGroup(props: ScopedProps<MenuGroupProps>, forwardedRef) {\n const { __scopeMenu, ...groupProps } = props;\n return <Primitive.div role=\"group\" {...groupProps} ref={forwardedRef} />;\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * MenuLabel\n * -----------------------------------------------------------------------------------------------*/\n\ntype MenuLabelElement = React.ComponentRef<typeof Primitive.div>;\ninterface MenuLabelProps extends PrimitiveDivProps {}\n\nconst MenuLabel = /* @__PURE__ */ React.forwardRef<MenuLabelElement, MenuLabelProps>(\n function MenuLabel(props: ScopedProps<MenuLabelProps>, forwardedRef) {\n const { __scopeMenu, ...labelProps } = props;\n return <Primitive.div {...labelProps} ref={forwardedRef} />;\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * MenuItem\n * -----------------------------------------------------------------------------------------------*/\n\nconst ITEM_NAME = 'MenuItem';\nconst ITEM_SELECT = 'menu.itemSelect';\n\ntype MenuItemElement = MenuItemImplElement;\ninterface MenuItemProps extends Omit<MenuItemImplProps, 'onSelect'> {\n onSelect?: { bivarianceHack(event: Event): void }['bivarianceHack'] | undefined;\n}\n\nconst MenuItem = /* @__PURE__ */ React.forwardRef<MenuItemElement, MenuItemProps>(\n // blank line to reduce diff noise\n function MenuItem(props: ScopedProps<MenuItemProps>, forwardedRef) {\n const { disabled = false, onSelect, ...itemProps } = props;\n const ref = React.useRef<HTMLDivElement>(null);\n const rootContext = useMenuRootContext(ITEM_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(ITEM_NAME, props.__scopeMenu);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const isPointerDownRef = React.useRef(false);\n\n const handleSelect = () => {\n const menuItem = ref.current;\n if (!disabled && menuItem) {\n const itemSelectEvent = new CustomEvent(ITEM_SELECT, { bubbles: true, cancelable: true });\n menuItem.addEventListener(ITEM_SELECT, (event) => onSelect?.(event), { once: true });\n dispatchDiscreteCustomEvent(menuItem, itemSelectEvent);\n if (itemSelectEvent.defaultPrevented) {\n isPointerDownRef.current = false;\n } else {\n rootContext.onClose();\n }\n }\n };\n\n return (\n <MenuItemImpl\n {...itemProps}\n ref={composedRefs}\n disabled={disabled}\n onClick={composeEventHandlers(props.onClick, handleSelect)}\n onPointerDown={(event) => {\n props.onPointerDown?.(event);\n isPointerDownRef.current = true;\n }}\n onPointerUp={composeEventHandlers(props.onPointerUp, (event) => {\n // Pointer down can move to a different menu item which should activate it on pointer up.\n // We dispatch a click for selection to allow composition with click based triggers and to\n // prevent Firefox from getting stuck in text selection mode when the menu closes.\n if (!isPointerDownRef.current) event.currentTarget?.click();\n })}\n onKeyDown={composeEventHandlers(props.onKeyDown, (event) => {\n // Only react to keys originating from the item itself. Focusable\n // descendants (eg. an `input` inside a `Dialog` rendered within the\n // item) bubble their key events here through React's event system\n // even when portaled out of the item's DOM subtree, which would\n // otherwise let the item swallow selection keys.\n // See: https://github.com/radix-ui/primitives/issues/3232\n if (disabled || event.target !== event.currentTarget) {\n return;\n }\n\n const isTypingAhead = contentContext.searchRef.current !== '';\n if (isTypingAhead && event.key === ' ') {\n return;\n }\n\n if (SELECTION_KEYS.includes(event.key)) {\n event.currentTarget.click();\n /**\n * We prevent default browser behaviour for selection keys as they should trigger\n * a selection only:\n * - prevents space from scrolling the page.\n * - if keydown causes focus to move, prevents keydown from firing on the new target.\n */\n event.preventDefault();\n }\n })}\n />\n );\n },\n);\n\n/* ---------------------------------------------------------------------------------------------- */\n\ntype MenuItemImplElement = React.ComponentRef<typeof Primitive.div>;\ninterface MenuItemImplProps extends PrimitiveDivProps {\n disabled?: boolean | undefined;\n textValue?: string | undefined;\n}\n\nconst MenuItemImpl = /* @__PURE__ */ React.forwardRef<MenuItemImplElement, MenuItemImplProps>(\n function MenuItemImpl(props: ScopedProps<MenuItemImplProps>, forwardedRef) {\n const { __scopeMenu, disabled = false, textValue, ...itemProps } = props;\n const contentContext = useMenuContentContext(ITEM_NAME, __scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const ref = React.useRef<HTMLDivElement>(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const [isFocused, setIsFocused] = React.useState(false);\n\n // get the item's `.textContent` as default strategy for typeahead `textValue`\n const [textContent, setTextContent] = React.useState('');\n React.useEffect(() => {\n const menuItem = ref.current;\n if (menuItem) {\n setTextContent((menuItem.textContent ?? '').trim());\n }\n }, [itemProps.children]);\n\n return (\n <Collection.ItemSlot\n scope={__scopeMenu}\n disabled={disabled}\n textValue={textValue ?? textContent}\n >\n <RovingFocusGroup.Item asChild {...rovingFocusGroupScope} focusable={!disabled}>\n <Primitive.div\n role=\"menuitem\"\n data-highlighted={isFocused ? '' : undefined}\n aria-disabled={disabled || undefined}\n data-disabled={disabled ? '' : undefined}\n {...itemProps}\n ref={composedRefs}\n /**\n * We focus items on `pointerMove` to achieve the following:\n *\n * - Mouse over an item (it focuses)\n * - Leave mouse where it is and use keyboard to focus a different item\n * - Wiggle mouse without it leaving previously focused item\n * - Previously focused item should re-focus\n *\n * If we used `mouseOver`/`mouseEnter` it would not re-focus when the mouse\n * wiggles. This is to match native menu implementation.\n */\n onPointerMove={composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n if (disabled) {\n contentContext.onItemLeave(event);\n } else {\n contentContext.onItemEnter(event);\n if (!event.defaultPrevented) {\n const item = event.currentTarget;\n item.focus({ preventScroll: true });\n }\n }\n }),\n )}\n onPointerLeave={composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => contentContext.onItemLeave(event)),\n )}\n onFocus={composeEventHandlers(props.onFocus, () => setIsFocused(true))}\n onBlur={composeEventHandlers(props.onBlur, () => setIsFocused(false))}\n />\n </RovingFocusGroup.Item>\n </Collection.ItemSlot>\n );\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * MenuCheckboxItem\n * -----------------------------------------------------------------------------------------------*/\n\ntype MenuCheckboxItemElement = MenuItemElement;\n\ntype CheckedState = boolean | 'indeterminate';\n\ninterface MenuCheckboxItemProps extends MenuItemProps {\n checked?: CheckedState | undefined;\n // `onCheckedChange` can never be called with `\"indeterminate\"` from the inside\n onCheckedChange?: { bivarianceHack(checked: boolean): void }['bivarianceHack'] | undefined;\n}\n\nconst MenuCheckboxItem = /* @__PURE__ */ React.forwardRef<\n MenuCheckboxItemElement,\n MenuCheckboxItemProps\n>(\n // blank line to reduce diff noise\n function MenuCheckboxItem(props: ScopedProps<MenuCheckboxItemProps>, forwardedRef) {\n const { checked = false, onCheckedChange, ...checkboxItemProps } = props;\n return (\n <ItemIndicatorProvider scope={props.__scopeMenu} checked={checked}>\n <MenuItem\n role=\"menuitemcheckbox\"\n aria-checked={isIndeterminate(checked) ? 'mixed' : checked}\n {...checkboxItemProps}\n ref={forwardedRef}\n data-state={getCheckedState(checked)}\n onSelect={composeEventHandlers(\n checkboxItemProps.onSelect,\n () => onCheckedChange?.(isIndeterminate(checked) ? true : !checked),\n { checkForDefaultPrevented: false },\n )}\n />\n </ItemIndicatorProvider>\n );\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * MenuRadioGroup\n * -----------------------------------------------------------------------------------------------*/\n\nconst RADIO_GROUP_NAME = 'MenuRadioGroup';\n\nconst [RadioGroupProvider, useRadioGroupContext] = createMenuContext<MenuRadioGroupProps>(\n RADIO_GROUP_NAME,\n { value: undefined, onValueChange: () => {} },\n);\n\ntype MenuRadioGroupElement = React.ComponentRef<typeof MenuGroup>;\ninterface MenuRadioGroupProps extends MenuGroupProps {\n value?: string | undefined;\n onValueChange?: { bivarianceHack(value: string): void }['bivarianceHack'] | undefined;\n}\n\nconst MenuRadioGroup = /* @__PURE__ */ React.forwardRef<MenuRadioGroupElement, MenuRadioGroupProps>(\n function MenuRadioGroup(props: ScopedProps<MenuRadioGroupProps>, forwardedRef) {\n const { value, onValueChange, ...groupProps } = props;\n const handleValueChange = useCallbackRef(onValueChange);\n return (\n <RadioGroupProvider scope={props.__scopeMenu} value={value} onValueChange={handleValueChange}>\n <MenuGroup {...groupProps} ref={forwardedRef} />\n </RadioGroupProvider>\n );\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * MenuRadioItem\n * -----------------------------------------------------------------------------------------------*/\n\nconst RADIO_ITEM_NAME = 'MenuRadioItem';\n\ntype MenuRadioItemElement = React.ComponentRef<typeof MenuItem>;\ninterface MenuRadioItemProps extends MenuItemProps {\n value: string;\n}\n\nconst MenuRadioItem = /* @__PURE__ */ React.forwardRef<MenuRadioItemElement, MenuRadioItemProps>(\n function MenuRadioItem(props: ScopedProps<MenuRadioItemProps>, forwardedRef) {\n const { value, ...radioItemProps } = props;\n const context = useRadioGroupContext(RADIO_ITEM_NAME, props.__scopeMenu);\n const checked = value === context.value;\n return (\n <ItemIndicatorProvider scope={props.__scopeMenu} checked={checked}>\n <MenuItem\n role=\"menuitemradio\"\n aria-checked={checked}\n {...radioItemProps}\n ref={forwardedRef}\n data-state={getCheckedState(checked)}\n onSelect={composeEventHandlers(\n radioItemProps.onSelect,\n () => context.onValueChange?.(value),\n { checkForDefaultPrevented: false },\n )}\n />\n </ItemIndicatorProvider>\n );\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * MenuItemIndicator\n * -----------------------------------------------------------------------------------------------*/\n\nconst ITEM_INDICATOR_NAME = 'MenuItemIndicator';\n\ntype CheckboxContextValue = { checked: CheckedState };\n\nconst [ItemIndicatorProvider, useItemIndicatorContext] = createMenuContext<CheckboxContextValue>(\n ITEM_INDICATOR_NAME,\n { checked: false },\n);\n\ntype MenuItemIndicatorElement = React.ComponentRef<typeof Primitive.span>;\ntype PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;\ninterface MenuItemIndicatorProps extends PrimitiveSpanProps {\n /**\n * Used to force mounting when more control is needed. Useful when\n * controlling animation with React animation libraries.\n */\n forceMount?: true | undefined;\n}\n\nconst MenuItemIndicator = /* @__PURE__ */ React.forwardRef<\n MenuItemIndicatorElement,\n MenuItemIndicatorProps\n>(\n // blank line to reduce diff noise\n function MenuItemIndicator(props: ScopedProps<MenuItemIndicatorProps>, forwardedRef) {\n const { __scopeMenu, forceMount, ...itemIndicatorProps } = props;\n const indicatorContext = useItemIndicatorContext(ITEM_INDICATOR_NAME, __scopeMenu);\n return (\n <Presence\n present={\n forceMount ||\n isIndeterminate(indicatorContext.checked) ||\n indicatorContext.checked === true\n }\n >\n <Primitive.span\n {...itemIndicatorProps}\n ref={forwardedRef}\n data-state={getCheckedState(indicatorContext.checked)}\n />\n </Presence>\n );\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * MenuSeparator\n * -----------------------------------------------------------------------------------------------*/\n\ntype MenuSeparatorElement = React.ComponentRef<typeof Primitive.div>;\ninterface MenuSeparatorProps extends PrimitiveDivProps {}\n\nconst MenuSeparator = /* @__PURE__ */ React.forwardRef<MenuSeparatorElement, MenuSeparatorProps>(\n function MenuSeparator(props: ScopedProps<MenuSeparatorProps>, forwardedRef) {\n const { __scopeMenu, ...separatorProps } = props;\n return (\n <Primitive.div\n role=\"separator\"\n aria-orientation=\"horizontal\"\n {...separatorProps}\n ref={forwardedRef}\n />\n );\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * MenuArrow\n * -----------------------------------------------------------------------------------------------*/\n\ntype MenuArrowElement = React.ComponentRef<typeof PopperPrimitive.Arrow>;\ntype PopperArrowProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;\ninterface MenuArrowProps extends PopperArrowProps {}\n\nconst MenuArrow = /* @__PURE__ */ React.forwardRef<MenuArrowElement, MenuArrowProps>(\n function MenuArrow(props: ScopedProps<MenuArrowProps>, forwardedRef) {\n const { __scopeMenu, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return <PopperPrimitive.Arrow {...popperScope} {...arrowProps} ref={forwardedRef} />;\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * MenuSub\n * -----------------------------------------------------------------------------------------------*/\n\nconst SUB_NAME = 'MenuSub';\n\ntype MenuSubContextValue = {\n contentId: string;\n triggerId: string;\n trigger: MenuSubTriggerElement | null;\n onTriggerChange(trigger: MenuSubTriggerElement | null): void;\n};\n\nconst [MenuSubProvider, useMenuSubContext] = createMenuContext<MenuSubContextValue>(SUB_NAME);\n\ninterface MenuSubProps {\n children?: React.ReactNode | undefined;\n open?: boolean | undefined;\n onOpenChange?: { bivarianceHack(open: boolean): void }['bivarianceHack'] | undefined;\n}\n\nconst MenuSub: React.FC<MenuSubProps> = (props: ScopedProps<MenuSubProps>) => {\n const { __scopeMenu, children, open = false, onOpenChange } = props;\n const parentMenuContext = useMenuContext(SUB_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const [trigger, setTrigger] = React.useState<MenuSubTriggerElement | null>(null);\n const [content, setContent] = React.useState<MenuContentElement | null>(null);\n const handleOpenChange = useCallbackRef(onOpenChange);\n\n // Prevent the parent menu from reopening with open submenus.\n React.useEffect(() => {\n if (parentMenuContext.open === false) handleOpenChange(false);\n return () => handleOpenChange(false);\n }, [parentMenuContext.open, handleOpenChange]);\n\n return (\n <PopperPrimitive.Root {...popperScope}>\n <MenuProvider\n scope={__scopeMenu}\n open={open}\n onOpenChange={handleOpenChange}\n content={content}\n onContentChange={setContent}\n >\n <MenuSubProvider\n scope={__scopeMenu}\n contentId={useId()}\n triggerId={useId()}\n trigger={trigger}\n onTriggerChange={setTrigger}\n >\n {children}\n </MenuSubProvider>\n </MenuProvider>\n </PopperPrimitive.Root>\n );\n};\n\n/* -------------------------------------------------------------------------------------------------\n * MenuSubTrigger\n * -----------------------------------------------------------------------------------------------*/\n\nconst SUB_TRIGGER_NAME = 'MenuSubTrigger';\n\ntype MenuSubTriggerElement = MenuItemImplElement;\ninterface MenuSubTriggerProps extends MenuItemImplProps {}\n\nconst MenuSubTrigger = /* @__PURE__ */ React.forwardRef<MenuSubTriggerElement, MenuSubTriggerProps>(\n function MenuSubTrigger(props: ScopedProps<MenuSubTriggerProps>, forwardedRef) {\n const context = useMenuContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const openTimerRef = React.useRef<number | null>(null);\n const { pointerGraceTimerRef, onPointerGraceIntentChange } = contentContext;\n const scope = { __scopeMenu: props.__scopeMenu };\n\n const clearOpenTimer = React.useCallback(() => {\n if (openTimerRef.current) window.clearTimeout(openTimerRef.current);\n openTimerRef.current = null;\n }, []);\n\n React.useEffect(() => clearOpenTimer, [clearOpenTimer]);\n\n React.useEffect(() => {\n const pointerGraceTimer = pointerGraceTimerRef.current;\n return () => {\n window.clearTimeout(pointerGraceTimer);\n onPointerGraceIntentChange(null);\n };\n }, [pointerGraceTimerRef, onPointerGraceIntentChange]);\n\n const composedRefs = useComposedRefs(forwardedRef, subContext.onTriggerChange);\n\n return (\n <MenuAnchor asChild {...scope}>\n <MenuItemImpl\n id={subContext.triggerId}\n aria-haspopup=\"menu\"\n aria-expanded={context.open}\n aria-controls={context.open ? subContext.contentId : undefined}\n data-state={getOpenState(context.open)}\n {...props}\n ref={composedRefs}\n // This is redundant for mouse users but we cannot determine pointer type from\n // click event and we cannot use pointerup event (see git history for reasons why)\n onClick={(event) => {\n props.onClick?.(event);\n if (props.disabled || event.defaultPrevented) return;\n /**\n * We manually focus because iOS Safari doesn't always focus on click (e.g. buttons)\n * and we rely heavily on `onFocusOutside` for submenus to close when switching\n * between separate submenus.\n */\n event.currentTarget.focus();\n if (!context.open) context.onOpenChange(true);\n }}\n onPointerMove={composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n contentContext.onItemEnter(event);\n if (event.defaultPrevented) return;\n if (!props.disabled && !context.open && !openTimerRef.current) {\n contentContext.onPointerGraceIntentChange(null);\n openTimerRef.current = window.setTimeout(() => {\n context.onOpenChange(true);\n clearOpenTimer();\n }, 100);\n }\n }),\n )}\n onPointerLeave={composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => {\n clearOpenTimer();\n\n const contentRect = context.content?.getBoundingClientRect();\n if (contentRect) {\n // TODO: make sure to update this when we change positioning logic\n const side = context.content?.dataset.side as Side;\n const rightSide = side === 'right';\n const bleed = rightSide ? -5 : +5;\n const contentNearEdge = contentRect[rightSide ? 'left' : 'right'];\n const contentFarEdge = contentRect[rightSide ? 'right' : 'left'];\n\n contentContext.onPointerGraceIntentChange({\n area: [\n // Apply a bleed on clientX to ensure that our exit point is\n // consistently within polygon bounds\n { x: event.clientX + bleed, y: event.clientY },\n { x: contentNearEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.bottom },\n { x: contentNearEdge, y: contentRect.bottom },\n ],\n side,\n });\n\n window.clearTimeout(pointerGraceTimerRef.current);\n pointerGraceTimerRef.current = window.setTimeout(\n () => contentContext.onPointerGraceIntentChange(null),\n 300,\n );\n } else {\n contentContext.onTriggerLeave(event);\n if (event.defaultPrevented) return;\n\n // There's 100ms where the user may leave an item before the submenu was opened.\n contentContext.onPointerGraceIntentChange(null);\n }\n }),\n )}\n onKeyDown={composeEventHandlers(props.onKeyDown, (event) => {\n // Only react to keys originating from the trigger itself. Focusable descendants\n // (eg. content rendered within the trigger) bubble their key events here through\n // React's event system even when portaled, which would otherwise let the trigger\n // swallow them. See: https://github.com/radix-ui/primitives/issues/3232\n if (props.disabled || event.target !== event.currentTarget) {\n return;\n }\n\n const isTypingAhead = contentContext.searchRef.current !== '';\n if (isTypingAhead && event.key === ' ') {\n return;\n }\n\n if (SUB_OPEN_KEYS[rootContext.dir].includes(event.key)) {\n context.onOpenChange(true);\n // The trigger may hold focus if opened via pointer interaction\n // so we ensure content is given focus again when switching to keyboard.\n context.content?.focus();\n // prevent window from scrolling\n event.preventDefault();\n }\n })}\n />\n </MenuAnchor>\n );\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * MenuSubContent\n * -----------------------------------------------------------------------------------------------*/\n\nconst SUB_CONTENT_NAME = 'MenuSubContent';\n\ntype AlignSubContent = Exclude<(typeof PopperPrimitive.ALIGN_OPTIONS)[number], 'center'>;\n\ntype MenuSubContentElement = MenuContentImplElement;\ninterface MenuSubContentProps extends Omit<\n MenuContentImplProps,\n keyof MenuContentImplPrivateProps | 'onCloseAutoFocus' | 'onEntryFocus' | 'side' | 'align'\n> {\n /**\n * Used to force mounting when more control is needed. Useful when\n * controlling animation with React animation libraries.\n */\n forceMount?: true | undefined;\n\n /**\n * Controls the direction the subcontent appears from its anchor menu item\n * Default: start\n */\n align?: AlignSubContent | undefined;\n}\n\nconst MenuSubContent = /* @__PURE__ */ React.forwardRef<MenuSubContentElement, MenuSubContentProps>(\n function MenuSubContent(props: ScopedProps<MenuSubContentProps>, forwardedRef) {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, align = 'start', ...subContentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef<MenuSubContentElement>(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n return (\n <Collection.Provider scope={props.__scopeMenu}>\n <Presence present={forceMount || context.open}>\n <Collection.Slot scope={props.__scopeMenu}>\n <MenuContentImpl\n id={subContext.contentId}\n aria-labelledby={subContext.triggerId}\n {...subContentProps}\n ref={composedRefs}\n align={align}\n side={rootContext.dir === Direction.RTL ? 'left' : 'right'}\n disableOutsidePointerEvents={false}\n disableOutsideScroll={false}\n trapFocus={false}\n onOpenAutoFocus={(event) => {\n // when opening a submenu, focus content for keyboard users only\n if (rootContext.isUsingKeyboardRef.current) ref.current?.focus();\n event.preventDefault();\n }}\n // The menu might close because of focusing another menu item in the parent menu. We\n // don't want it to refocus the trigger in that case so we handle trigger focus ourselves.\n onCloseAutoFocus={(event) => event.preventDefault()}\n onFocusOutside={composeEventHandlers(props.onFocusOutside, (event) => {\n // We prevent closing when the trigger is focused to avoid triggering a re-open animation\n // on pointer interaction.\n if (event.target !== subContext.trigger) context.onOpenChange(false);\n })}\n onEscapeKeyDown={composeEventHandlers(props.onEscapeKeyDown, (event) => {\n rootContext.onClose();\n // ensure pressing escape in submenu doesn't escape full screen mode\n event.preventDefault();\n })}\n onKeyDown={composeEventHandlers(props.onKeyDown, (event) => {\n // Submenu key events bubble through portals. We only care about keys in this menu.\n const isKeyDownInside = event.currentTarget.contains(event.target as HTMLElement);\n const isCloseKey = SUB_CLOSE_KEYS[rootContext.dir].includes(event.key);\n if (isKeyDownInside && isCloseKey) {\n context.onOpenChange(false);\n // We focus manually because we prevented it in `onCloseAutoFocus`\n subContext.trigger?.focus();\n // prevent window from scrolling\n event.preventDefault();\n }\n })}\n />\n </Collection.Slot>\n </Presence>\n </Collection.Provider>\n );\n },\n);\n\n/* -----------------------------------------------------------------------------------------------*/\n\nfunction getOpenState(open: boolean) {\n return open ? 'open' : 'closed';\n}\n\nfunction isIndeterminate(checked?: CheckedState): checked is 'indeterminate' {\n return checked === 'indeterminate';\n}\n\nfunction getCheckedState(checked: CheckedState) {\n return isIndeterminate(checked) ? 'indeterminate' : checked ? 'checked' : 'unchecked';\n}\n\nfunction focusFirst(candidates: HTMLElement[]) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n // if focus is already where we want to go, we don't want to keep going through the candidates\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\n\n/**\n * Wraps an array around itself at a given start index\n * Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`\n */\nfunction wrapArray<T>(array: T[], startIndex: number) {\n return array.map<T>((_, index) => array[(startIndex + index) % array.length]!);\n}\n\n/**\n * This is the \"meat\" of the typeahead matching logic. It takes in all the values,\n * the search and the current match, and returns the next match (or `undefined`).\n *\n * We normalize the search because if a user has repeatedly pressed a character,\n * we want the exact same behavior as if we only had that one character\n * (ie. cycle through options starting with that character)\n *\n * We also reorder the values by wrapping the array around the current match.\n * This is so we always look forward from the current match, and picking the first\n * match will always be the correct one.\n *\n * Finally, if the normalized search is exactly one character, we exclude the\n * current match from the values because otherwise it would be the first to match always\n * and focus would never move. This is as opposed to the regular case, where we\n * don't want focus to move if the current match still matches.\n */\nfunction getNextMatch(values: string[], search: string, currentMatch?: string) {\n const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);\n const normalizedSearch = isRepeated ? search[0]! : search;\n const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;\n let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));\n const excludeCurrentMatch = normalizedSearch.length === 1;\n if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((v) => v !== currentMatch);\n const nextMatch = wrappedValues.find((value) =>\n value.toLowerCase().startsWith(normalizedSearch.toLowerCase()),\n );\n return nextMatch !== currentMatch ? nextMatch : undefined;\n}\n\ntype Point = { x: number; y: number };\ntype Polygon = Point[];\ntype Side = 'left' | 'right';\ntype GraceIntent = { area: Polygon; side: Side };\n\n// Determine if a point is inside of a polygon.\n// Based on https://github.com/substack/point-in-polygon\nfunction isPointInPolygon(point: Point, polygon: Polygon) {\n const { x, y } = point;\n let inside = false;\n for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {\n const ii = polygon[i]!;\n const jj = polygon[j]!;\n const xi = ii.x;\n const yi = ii.y;\n const xj = jj.x;\n const yj = jj.y;\n\n // oxfmt-ignore\n const intersect = ((yi > y) !== (yj > y)) && (x < (xj - xi) * (y - yi) / (yj - yi) + xi);\n if (intersect) inside = !inside;\n }\n\n return inside;\n}\n\nfunction isPointerInGraceArea(event: React.PointerEvent, area?: Polygon) {\n if (!area) return false;\n const cursorPos = { x: event.clientX, y: event.clientY };\n return isPointInPolygon(cursorPos, area);\n}\n\nfunction whenMouse<E>(handler: React.PointerEventHandler<E>): React.PointerEventHandler<E> {\n return (event) => (event.pointerType === 'mouse' ? handler(event) : undefined);\n}\n\nexport {\n createMenuScope,\n //\n Menu,\n MenuAnchor,\n MenuPortal,\n MenuContent,\n MenuGroup,\n MenuLabel,\n MenuItem,\n MenuCheckboxItem,\n MenuRadioGroup,\n MenuRadioItem,\n MenuItemIndicator,\n MenuSeparator,\n MenuArrow,\n MenuSub,\n MenuSubTrigger,\n MenuSubContent,\n //\n Menu as Root,\n MenuAnchor as Anchor,\n MenuPortal as Portal,\n MenuContent as Content,\n MenuGroup as Group,\n MenuLabel as Label,\n MenuItem as Item,\n MenuCheckboxItem as CheckboxItem,\n MenuRadioGroup as RadioGroup,\n MenuRadioItem as RadioItem,\n MenuItemIndicator as ItemIndicator,\n MenuSeparator as Separator,\n MenuArrow as Arrow,\n MenuSub as Sub,\n MenuSubTrigger as SubTrigger,\n MenuSubContent as SubContent,\n};\nexport type {\n MenuProps,\n MenuAnchorProps,\n MenuPortalProps,\n MenuContentProps,\n MenuGroupProps,\n MenuLabelProps,\n MenuItemProps,\n MenuCheckboxItemProps,\n MenuRadioGroupProps,\n MenuRadioItemProps,\n MenuItemIndicatorProps,\n MenuSeparatorProps,\n MenuArrowProps,\n MenuSubProps,\n MenuSubTriggerProps,\n MenuSubContentProps,\n};\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['line', { x1: '4', x2: '20', y1: '9', y2: '9', key: '4lhtct' }],\n ['line', { x1: '4', x2: '20', y1: '15', y2: '15', key: 'vyu0kd' }],\n ['line', { x1: '10', x2: '8', y1: '3', y2: '21', key: '1ggp8o' }],\n ['line', { x1: '16', x2: '14', y1: '3', y2: '21', key: 'weycgp' }],\n];\n\n/**\n * @component @name Hash\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8bGluZSB4MT0iNCIgeDI9IjIwIiB5MT0iOSIgeTI9IjkiIC8+CiAgPGxpbmUgeDE9IjQiIHgyPSIyMCIgeTE9IjE1IiB5Mj0iMTUiIC8+CiAgPGxpbmUgeDE9IjEwIiB4Mj0iOCIgeTE9IjMiIHkyPSIyMSIgLz4KICA8bGluZSB4MT0iMTYiIHgyPSIxNCIgeTE9IjMiIHkyPSIyMSIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/hash\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Hash = createLucideIcon('hash', __iconNode);\n\nexport default Hash;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z', key: '1rqfz7' }],\n ['path', { d: 'M14 2v4a2 2 0 0 0 2 2h4', key: 'tnqrlb' }],\n ['path', { d: 'M10 9H8', key: 'b1mrlr' }],\n ['path', { d: 'M16 13H8', key: 't4e002' }],\n ['path', { d: 'M16 17H8', key: 'z1uh3a' }],\n];\n\n/**\n * @component @name FileText\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTUgMkg2YTIgMiAwIDAgMC0yIDJ2MTZhMiAyIDAgMCAwIDIgMmgxMmEyIDIgMCAwIDAgMi0yVjdaIiAvPgogIDxwYXRoIGQ9Ik0xNCAydjRhMiAyIDAgMCAwIDIgMmg0IiAvPgogIDxwYXRoIGQ9Ik0xMCA5SDgiIC8+CiAgPHBhdGggZD0iTTE2IDEzSDgiIC8+CiAgPHBhdGggZD0iTTE2IDE3SDgiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/file-text\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst FileText = createLucideIcon('file-text', __iconNode);\n\nexport default FileText;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8', key: '12jkf8' }],\n ['path', { d: 'm22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7', key: '1ocrg3' }],\n ['path', { d: 'M19 16v6', key: 'tddt3s' }],\n ['path', { d: 'M16 19h6', key: 'xwg31i' }],\n];\n\n/**\n * @component @name MailPlus\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjIgMTNWNmEyIDIgMCAwIDAtMi0ySDRhMiAyIDAgMCAwLTIgMnYxMmMwIDEuMS45IDIgMiAyaDgiIC8+CiAgPHBhdGggZD0ibTIyIDctOC45NyA1LjdhMS45NCAxLjk0IDAgMCAxLTIuMDYgMEwyIDciIC8+CiAgPHBhdGggZD0iTTE5IDE2djYiIC8+CiAgPHBhdGggZD0iTTE2IDE5aDYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/mail-plus\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst MailPlus = createLucideIcon('mail-plus', __iconNode);\n\nexport default MailPlus;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'M12 10v6', key: '1bos4e' }],\n ['path', { d: 'M9 13h6', key: '1uhe8q' }],\n [\n 'path',\n {\n d: 'M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z',\n key: '1kt360',\n },\n ],\n];\n\n/**\n * @component @name FolderPlus\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgMTB2NiIgLz4KICA8cGF0aCBkPSJNOSAxM2g2IiAvPgogIDxwYXRoIGQ9Ik0yMCAyMGEyIDIgMCAwIDAgMi0yVjhhMiAyIDAgMCAwLTItMmgtNy45YTIgMiAwIDAgMS0xLjY5LS45TDkuNiAzLjlBMiAyIDAgMCAwIDcuOTMgM0g0YTIgMiAwIDAgMC0yIDJ2MTNhMiAyIDAgMCAwIDIgMloiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/folder-plus\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst FolderPlus = createLucideIcon('folder-plus', __iconNode);\n\nexport default FolderPlus;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['circle', { cx: '12', cy: '12', r: '1', key: '41hilf' }],\n ['circle', { cx: '19', cy: '12', r: '1', key: '1wjl8i' }],\n ['circle', { cx: '5', cy: '12', r: '1', key: '1pcz8c' }],\n];\n\n/**\n * @component @name Ellipsis\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxIiAvPgogIDxjaXJjbGUgY3g9IjE5IiBjeT0iMTIiIHI9IjEiIC8+CiAgPGNpcmNsZSBjeD0iNSIgY3k9IjEyIiByPSIxIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/ellipsis\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Ellipsis = createLucideIcon('ellipsis', __iconNode);\n\nexport default Ellipsis;\n","import * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport { createContextScope } from '@radix-ui/react-context';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { Primitive } from '@radix-ui/react-primitive';\nimport * as MenuPrimitive from '@radix-ui/react-menu';\nimport { createMenuScope } from '@radix-ui/react-menu';\nimport { useId } from '@radix-ui/react-id';\n\nimport type { Scope } from '@radix-ui/react-context';\n\nconst Direction = {\n LTR: 'ltr',\n RTL: 'rtl',\n} as const;\n\ntype Direction = (typeof Direction)[keyof typeof Direction];\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenu\n * -----------------------------------------------------------------------------------------------*/\n\nconst DROPDOWN_MENU_NAME = 'DropdownMenu';\n\ntype ScopedProps<P> = P & { __scopeDropdownMenu?: Scope | undefined };\nconst [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(\n DROPDOWN_MENU_NAME,\n [createMenuScope],\n);\nconst useMenuScope = createMenuScope();\n\ntype DropdownMenuContextValue = {\n triggerId: string;\n triggerRef: React.RefObject<HTMLButtonElement | null>;\n contentId: string;\n open: boolean;\n onOpenChange(open: boolean): void;\n onOpenToggle(): void;\n modal: boolean;\n};\n\nconst [DropdownMenuProvider, useDropdownMenuContext] =\n createDropdownMenuContext<DropdownMenuContextValue>(DROPDOWN_MENU_NAME);\n\ninterface DropdownMenuProps {\n children?: React.ReactNode | undefined;\n dir?: Direction | undefined;\n open?: boolean | undefined;\n defaultOpen?: boolean | undefined;\n onOpenChange?: { bivarianceHack(open: boolean): void }['bivarianceHack'] | undefined;\n modal?: boolean | undefined;\n}\n\nconst DropdownMenu: React.FC<DropdownMenuProps> = (props: ScopedProps<DropdownMenuProps>) => {\n const {\n __scopeDropdownMenu,\n children,\n dir,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true,\n } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const triggerRef = React.useRef<HTMLButtonElement>(null);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: DROPDOWN_MENU_NAME,\n });\n\n return (\n <DropdownMenuProvider\n scope={__scopeDropdownMenu}\n triggerId={useId()}\n triggerRef={triggerRef}\n contentId={useId()}\n open={open}\n onOpenChange={setOpen}\n onOpenToggle={React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen])}\n modal={modal}\n >\n <MenuPrimitive.Root {...menuScope} open={open} onOpenChange={setOpen} dir={dir} modal={modal}>\n {children}\n </MenuPrimitive.Root>\n </DropdownMenuProvider>\n );\n};\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuTrigger\n * -----------------------------------------------------------------------------------------------*/\n\nconst TRIGGER_NAME = 'DropdownMenuTrigger';\n\ntype DropdownMenuTriggerElement = React.ComponentRef<typeof Primitive.button>;\ntype PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;\ninterface DropdownMenuTriggerProps extends PrimitiveButtonProps {}\n\nconst DropdownMenuTrigger = /* @__PURE__ */ React.forwardRef<\n DropdownMenuTriggerElement,\n DropdownMenuTriggerProps\n>(\n // blank line to reduce diff noise\n function DropdownMenuTrigger(props: ScopedProps<DropdownMenuTriggerProps>, forwardedRef) {\n const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;\n const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const composedRefs = useComposedRefs(forwardedRef, context.triggerRef);\n return (\n <MenuPrimitive.Anchor asChild {...menuScope}>\n <Primitive.button\n type=\"button\"\n id={context.triggerId}\n aria-haspopup=\"menu\"\n aria-expanded={context.open}\n aria-controls={context.open ? context.contentId : undefined}\n data-state={context.open ? 'open' : 'closed'}\n data-disabled={disabled ? '' : undefined}\n disabled={disabled}\n {...triggerProps}\n ref={composedRefs}\n onPointerDown={composeEventHandlers(props.onPointerDown, (event) => {\n // only call handler if it's the left button (mousedown gets triggered by all mouse buttons)\n // but not when the control key is pressed (avoiding MacOS right click)\n if (!disabled && event.button === 0 && event.ctrlKey === false) {\n context.onOpenToggle();\n // prevent trigger focusing when opening\n // this allows the content to be given focus without competition\n if (!context.open) event.preventDefault();\n }\n })}\n onKeyDown={composeEventHandlers(props.onKeyDown, (event) => {\n if (disabled) return;\n if (['Enter', ' '].includes(event.key)) context.onOpenToggle();\n if (event.key === 'ArrowDown') context.onOpenChange(true);\n // prevent keydown from scrolling window / first focused item to execute\n // that keydown (inadvertently closing the menu)\n if (['Enter', ' ', 'ArrowDown'].includes(event.key)) event.preventDefault();\n })}\n />\n </MenuPrimitive.Anchor>\n );\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuPortal\n * -----------------------------------------------------------------------------------------------*/\n\ntype MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;\ninterface DropdownMenuPortalProps extends MenuPortalProps {}\n\nconst DropdownMenuPortal: React.FC<DropdownMenuPortalProps> = (\n props: ScopedProps<DropdownMenuPortalProps>,\n) => {\n const { __scopeDropdownMenu, ...portalProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return <MenuPrimitive.Portal {...menuScope} {...portalProps} />;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuContent\n * -----------------------------------------------------------------------------------------------*/\n\nconst CONTENT_NAME = 'DropdownMenuContent';\n\ntype DropdownMenuContentElement = React.ComponentRef<typeof MenuPrimitive.Content>;\ntype MenuContentProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;\ninterface DropdownMenuContentProps extends Omit<MenuContentProps, 'onEntryFocus'> {}\n\nconst DropdownMenuContent = /* @__PURE__ */ React.forwardRef<\n DropdownMenuContentElement,\n DropdownMenuContentProps\n>(\n // blank line to reduce diff noise\n function DropdownMenuContent(props: ScopedProps<DropdownMenuContentProps>, forwardedRef) {\n const { __scopeDropdownMenu, ...contentProps } = props;\n const context = useDropdownMenuContext(CONTENT_NAME, __scopeDropdownMenu);\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const hasInteractedOutsideRef = React.useRef(false);\n\n return (\n <MenuPrimitive.Content\n id={context.contentId}\n aria-labelledby={context.triggerId}\n {...menuScope}\n {...contentProps}\n ref={forwardedRef}\n onCloseAutoFocus={composeEventHandlers(props.onCloseAutoFocus, (event) => {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n hasInteractedOutsideRef.current = false;\n // Always prevent auto focus because we either focus manually or want user agent focus\n event.preventDefault();\n })}\n onInteractOutside={composeEventHandlers(props.onInteractOutside, (event) => {\n const originalEvent = event.detail.originalEvent as PointerEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (!context.modal || isRightClick) hasInteractedOutsideRef.current = true;\n })}\n style={{\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n '--radix-dropdown-menu-content-transform-origin':\n 'var(--radix-popper-transform-origin)',\n '--radix-dropdown-menu-content-available-width': 'var(--radix-popper-available-width)',\n '--radix-dropdown-menu-content-available-height':\n 'var(--radix-popper-available-height)',\n '--radix-dropdown-menu-trigger-width': 'var(--radix-popper-anchor-width)',\n '--radix-dropdown-menu-trigger-height': 'var(--radix-popper-anchor-height)',\n },\n }}\n />\n );\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuGroup\n * -----------------------------------------------------------------------------------------------*/\n\ntype DropdownMenuGroupElement = React.ComponentRef<typeof MenuPrimitive.Group>;\ntype MenuGroupProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;\ninterface DropdownMenuGroupProps extends MenuGroupProps {}\n\nconst DropdownMenuGroup = /* @__PURE__ */ React.forwardRef<\n DropdownMenuGroupElement,\n DropdownMenuGroupProps\n>(\n // blank line to reduce diff noise\n function DropdownMenuGroup(props: ScopedProps<DropdownMenuGroupProps>, forwardedRef) {\n const { __scopeDropdownMenu, ...groupProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return <MenuPrimitive.Group {...menuScope} {...groupProps} ref={forwardedRef} />;\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuLabel\n * -----------------------------------------------------------------------------------------------*/\n\ntype DropdownMenuLabelElement = React.ComponentRef<typeof MenuPrimitive.Label>;\ntype MenuLabelProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;\ninterface DropdownMenuLabelProps extends MenuLabelProps {}\n\nconst DropdownMenuLabel = /* @__PURE__ */ React.forwardRef<\n DropdownMenuLabelElement,\n DropdownMenuLabelProps\n>(\n // blank line to reduce diff noise\n function DropdownMenuLabel(props: ScopedProps<DropdownMenuLabelProps>, forwardedRef) {\n const { __scopeDropdownMenu, ...labelProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return <MenuPrimitive.Label {...menuScope} {...labelProps} ref={forwardedRef} />;\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuItem\n * -----------------------------------------------------------------------------------------------*/\n\ntype DropdownMenuItemElement = React.ComponentRef<typeof MenuPrimitive.Item>;\ntype MenuItemProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;\ninterface DropdownMenuItemProps extends MenuItemProps {}\n\nconst DropdownMenuItem = /* @__PURE__ */ React.forwardRef<\n DropdownMenuItemElement,\n DropdownMenuItemProps\n>(\n // blank line to reduce diff noise\n function DropdownMenuItem(props: ScopedProps<DropdownMenuItemProps>, forwardedRef) {\n const { __scopeDropdownMenu, ...itemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return <MenuPrimitive.Item {...menuScope} {...itemProps} ref={forwardedRef} />;\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuCheckboxItem\n * -----------------------------------------------------------------------------------------------*/\n\ntype DropdownMenuCheckboxItemElement = React.ComponentRef<typeof MenuPrimitive.CheckboxItem>;\ntype MenuCheckboxItemProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;\ninterface DropdownMenuCheckboxItemProps extends MenuCheckboxItemProps {}\n\nconst DropdownMenuCheckboxItem = /* @__PURE__ */ React.forwardRef<\n DropdownMenuCheckboxItemElement,\n DropdownMenuCheckboxItemProps\n>(function DropdownMenuCheckboxItem(\n props: ScopedProps<DropdownMenuCheckboxItemProps>,\n forwardedRef,\n) {\n const { __scopeDropdownMenu, ...checkboxItemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return <MenuPrimitive.CheckboxItem {...menuScope} {...checkboxItemProps} ref={forwardedRef} />;\n});\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuRadioGroup\n * -----------------------------------------------------------------------------------------------*/\n\ntype DropdownMenuRadioGroupElement = React.ComponentRef<typeof MenuPrimitive.RadioGroup>;\ntype MenuRadioGroupProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;\ninterface DropdownMenuRadioGroupProps extends MenuRadioGroupProps {}\n\nconst DropdownMenuRadioGroup = /* @__PURE__ */ React.forwardRef<\n DropdownMenuRadioGroupElement,\n DropdownMenuRadioGroupProps\n>(function DropdownMenuRadioGroup(props: ScopedProps<DropdownMenuRadioGroupProps>, forwardedRef) {\n const { __scopeDropdownMenu, ...radioGroupProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return <MenuPrimitive.RadioGroup {...menuScope} {...radioGroupProps} ref={forwardedRef} />;\n});\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuRadioItem\n * -----------------------------------------------------------------------------------------------*/\n\ntype DropdownMenuRadioItemElement = React.ComponentRef<typeof MenuPrimitive.RadioItem>;\ntype MenuRadioItemProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;\ninterface DropdownMenuRadioItemProps extends MenuRadioItemProps {}\n\nconst DropdownMenuRadioItem = /* @__PURE__ */ React.forwardRef<\n DropdownMenuRadioItemElement,\n DropdownMenuRadioItemProps\n>(function DropdownMenuRadioItem(props: ScopedProps<DropdownMenuRadioItemProps>, forwardedRef) {\n const { __scopeDropdownMenu, ...radioItemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return <MenuPrimitive.RadioItem {...menuScope} {...radioItemProps} ref={forwardedRef} />;\n});\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuItemIndicator\n * -----------------------------------------------------------------------------------------------*/\n\ntype DropdownMenuItemIndicatorElement = React.ComponentRef<typeof MenuPrimitive.ItemIndicator>;\ntype MenuItemIndicatorProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;\ninterface DropdownMenuItemIndicatorProps extends MenuItemIndicatorProps {}\n\nconst DropdownMenuItemIndicator = /* @__PURE__ */ React.forwardRef<\n DropdownMenuItemIndicatorElement,\n DropdownMenuItemIndicatorProps\n>(function DropdownMenuItemIndicator(\n props: ScopedProps<DropdownMenuItemIndicatorProps>,\n forwardedRef,\n) {\n const { __scopeDropdownMenu, ...itemIndicatorProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return <MenuPrimitive.ItemIndicator {...menuScope} {...itemIndicatorProps} ref={forwardedRef} />;\n});\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuSeparator\n * -----------------------------------------------------------------------------------------------*/\n\ntype DropdownMenuSeparatorElement = React.ComponentRef<typeof MenuPrimitive.Separator>;\ntype MenuSeparatorProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;\ninterface DropdownMenuSeparatorProps extends MenuSeparatorProps {}\n\nconst DropdownMenuSeparator = /* @__PURE__ */ React.forwardRef<\n DropdownMenuSeparatorElement,\n DropdownMenuSeparatorProps\n>(function DropdownMenuSeparator(props: ScopedProps<DropdownMenuSeparatorProps>, forwardedRef) {\n const { __scopeDropdownMenu, ...separatorProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return <MenuPrimitive.Separator {...menuScope} {...separatorProps} ref={forwardedRef} />;\n});\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuArrow\n * -----------------------------------------------------------------------------------------------*/\n\ntype DropdownMenuArrowElement = React.ComponentRef<typeof MenuPrimitive.Arrow>;\ntype MenuArrowProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;\ninterface DropdownMenuArrowProps extends MenuArrowProps {}\n\nconst DropdownMenuArrow = /* @__PURE__ */ React.forwardRef<\n DropdownMenuArrowElement,\n DropdownMenuArrowProps\n>(\n // blank line to reduce diff noise\n function DropdownMenuArrow(props: ScopedProps<DropdownMenuArrowProps>, forwardedRef) {\n const { __scopeDropdownMenu, ...arrowProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return <MenuPrimitive.Arrow {...menuScope} {...arrowProps} ref={forwardedRef} />;\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuSub\n * -----------------------------------------------------------------------------------------------*/\n\ninterface DropdownMenuSubProps {\n children?: React.ReactNode | undefined;\n open?: boolean | undefined;\n defaultOpen?: boolean | undefined;\n onOpenChange?: { bivarianceHack(open: boolean): void }['bivarianceHack'] | undefined;\n}\n\nconst DropdownMenuSub: React.FC<DropdownMenuSubProps> = (\n props: ScopedProps<DropdownMenuSubProps>,\n) => {\n const { __scopeDropdownMenu, children, open: openProp, onOpenChange, defaultOpen } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: 'DropdownMenuSub',\n });\n\n return (\n <MenuPrimitive.Sub {...menuScope} open={open} onOpenChange={setOpen}>\n {children}\n </MenuPrimitive.Sub>\n );\n};\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuSubTrigger\n * -----------------------------------------------------------------------------------------------*/\n\ntype DropdownMenuSubTriggerElement = React.ComponentRef<typeof MenuPrimitive.SubTrigger>;\ntype MenuSubTriggerProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;\ninterface DropdownMenuSubTriggerProps extends MenuSubTriggerProps {}\n\nconst DropdownMenuSubTrigger = /* @__PURE__ */ React.forwardRef<\n DropdownMenuSubTriggerElement,\n DropdownMenuSubTriggerProps\n>(function DropdownMenuSubTrigger(props: ScopedProps<DropdownMenuSubTriggerProps>, forwardedRef) {\n const { __scopeDropdownMenu, ...subTriggerProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return <MenuPrimitive.SubTrigger {...menuScope} {...subTriggerProps} ref={forwardedRef} />;\n});\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuSubContent\n * -----------------------------------------------------------------------------------------------*/\n\ntype DropdownMenuSubContentElement = React.ComponentRef<typeof MenuPrimitive.Content>;\ntype MenuSubContentProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;\ninterface DropdownMenuSubContentProps extends MenuSubContentProps {}\n\nconst DropdownMenuSubContent = /* @__PURE__ */ React.forwardRef<\n DropdownMenuSubContentElement,\n DropdownMenuSubContentProps\n>(function DropdownMenuSubContent(props: ScopedProps<DropdownMenuSubContentProps>, forwardedRef) {\n const { __scopeDropdownMenu, ...subContentProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n\n return (\n <MenuPrimitive.SubContent\n {...menuScope}\n {...subContentProps}\n ref={forwardedRef}\n style={{\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n '--radix-dropdown-menu-content-transform-origin': 'var(--radix-popper-transform-origin)',\n '--radix-dropdown-menu-content-available-width': 'var(--radix-popper-available-width)',\n '--radix-dropdown-menu-content-available-height': 'var(--radix-popper-available-height)',\n '--radix-dropdown-menu-trigger-width': 'var(--radix-popper-anchor-width)',\n '--radix-dropdown-menu-trigger-height': 'var(--radix-popper-anchor-height)',\n },\n }}\n />\n );\n});\n\n/* -----------------------------------------------------------------------------------------------*/\n\nexport {\n createDropdownMenuScope,\n //\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuPortal,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuLabel,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuItemIndicator,\n DropdownMenuSeparator,\n DropdownMenuArrow,\n DropdownMenuSub,\n DropdownMenuSubTrigger,\n DropdownMenuSubContent,\n //\n DropdownMenu as Root,\n DropdownMenuTrigger as Trigger,\n DropdownMenuPortal as Portal,\n DropdownMenuContent as Content,\n DropdownMenuGroup as Group,\n DropdownMenuLabel as Label,\n DropdownMenuItem as Item,\n DropdownMenuCheckboxItem as CheckboxItem,\n DropdownMenuRadioGroup as RadioGroup,\n DropdownMenuRadioItem as RadioItem,\n DropdownMenuItemIndicator as ItemIndicator,\n DropdownMenuSeparator as Separator,\n DropdownMenuArrow as Arrow,\n DropdownMenuSub as Sub,\n DropdownMenuSubTrigger as SubTrigger,\n DropdownMenuSubContent as SubContent,\n};\nexport type {\n DropdownMenuProps,\n DropdownMenuTriggerProps,\n DropdownMenuPortalProps,\n DropdownMenuContentProps,\n DropdownMenuGroupProps,\n DropdownMenuLabelProps,\n DropdownMenuItemProps,\n DropdownMenuCheckboxItemProps,\n DropdownMenuRadioGroupProps,\n DropdownMenuRadioItemProps,\n DropdownMenuItemIndicatorProps,\n DropdownMenuSeparatorProps,\n DropdownMenuArrowProps,\n DropdownMenuSubProps,\n DropdownMenuSubTriggerProps,\n DropdownMenuSubContentProps,\n};\n","/** Standalone CSV parsing and column mapping shared by the import UI and API. */\n\nexport type ColumnMapping =\n | \"email\"\n | \"name\"\n | \"tags\"\n | \"telegram\"\n | \"group\"\n | \"skip\";\n\nexport interface MappedContact {\n email: string;\n name: string | null;\n tags: string;\n telegram: string | null;\n groups: string[];\n}\n\nconst EMAIL_RE = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\nfunction splitCsvLine(line: string): string[] {\n const cells: string[] = [];\n let current = \"\";\n let inQuotes = false;\n for (let i = 0; i < line.length; i++) {\n const ch = line[i];\n if (ch === '\"') {\n if (inQuotes && line[i + 1] === '\"') {\n current += '\"';\n i++;\n } else {\n inQuotes = !inQuotes;\n }\n } else if (ch === \",\" && !inQuotes) {\n cells.push(current.trim());\n current = \"\";\n } else {\n current += ch;\n }\n }\n cells.push(current.trim());\n return cells;\n}\n\nexport function parseCsv(text: string): { headers: string[]; rows: string[][] } {\n const lines = text\n .split(/\\r?\\n/)\n .map((line) => line.trim())\n .filter(Boolean);\n if (lines.length === 0) return { headers: [], rows: [] };\n\n const first = splitCsvLine(lines[0] ?? \"\");\n const hasHeader = first.some((cell) => /e-?mail/i.test(cell));\n if (hasHeader) {\n return {\n headers: first,\n rows: lines.slice(1).map(splitCsvLine),\n };\n }\n return { headers: [], rows: lines.map(splitCsvLine) };\n}\n\nfunction splitList(value: string): string[] {\n return value\n .split(/[,;]/)\n .map((part) => part.trim())\n .filter(Boolean);\n}\n\nexport function defaultColumnMapping(\n headers: string[]\n): Record<string, ColumnMapping> {\n const mapping: Record<string, ColumnMapping> = {};\n for (const header of headers) {\n if (/e-?mail|address/i.test(header)) mapping[header] = \"email\";\n else if (/telegram|handle/i.test(header)) mapping[header] = \"telegram\";\n else if (/name/i.test(header)) mapping[header] = \"name\";\n else if (/tag/i.test(header)) mapping[header] = \"tags\";\n else if (/group|segment/i.test(header)) mapping[header] = \"group\";\n else mapping[header] = \"skip\";\n }\n return mapping;\n}\n\nexport function mergeGroups(existing: string[], incoming: string[]): string[] {\n return [...existing, ...incoming].filter(\n (group, index, all) =>\n all.findIndex((g) => g.toLowerCase() === group.toLowerCase()) === index\n );\n}\n\nexport function mapCsvRows(\n headers: string[],\n rows: string[][],\n mapping: Record<string, ColumnMapping>,\n defaultGroups: string[]\n): { contacts: MappedContact[]; skipped: number } {\n const contacts: MappedContact[] = [];\n const seen = new Set<string>();\n let skipped = 0;\n\n const columnIndex = (field: ColumnMapping): number[] =>\n headers.flatMap((header, index) => (mapping[header] === field ? [index] : []));\n\n const emailIdx = columnIndex(\"email\");\n const nameIdx = columnIndex(\"name\");\n const tagsIdx = columnIndex(\"tags\");\n const telegramIdx = columnIndex(\"telegram\");\n const groupIdx = columnIndex(\"group\");\n\n for (const row of rows) {\n const email = (emailIdx.map((i) => row[i] ?? \"\").find(Boolean) ?? \"\")\n .trim()\n .toLowerCase();\n if (!EMAIL_RE.test(email) || seen.has(email)) {\n skipped++;\n continue;\n }\n seen.add(email);\n\n const groups = mergeGroups(\n defaultGroups,\n groupIdx.flatMap((i) => splitList(row[i] ?? \"\"))\n );\n\n contacts.push({\n email,\n name: (nameIdx.map((i) => row[i] ?? \"\").find(Boolean) ?? \"\").trim() || null,\n tags: tagsIdx.map((i) => row[i] ?? \"\").filter(Boolean).join(\",\"),\n telegram:\n (telegramIdx.map((i) => row[i] ?? \"\").find(Boolean) ?? \"\").trim() || null,\n groups,\n });\n }\n\n return { contacts, skipped };\n}\n"],"names":["Ellipsis"],"mappings":"wDEEA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OAAA,EAAA,EAAA,CAAA,CAAA,OAAA,EAAA,EAAA,CAAA,CAAA,OAAA,EAAA,EAAA,CAAA,CAAA,OAAA,EAAA,EAAA,CAAA,CAAA,OAAA,EAAA,EAAA,CAAA,CAAA,OAAA,EAAA,EAAA,CAAA,CAAA,OAAA,EAAA,EAAA,CAAA,CAAA,8CUgB8C,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,gBAhBrB,EAAA,QAAa,CHA8B,ACAD,AEA7B,ANYI,ADZ0B,qBOC/D,GAAA,gDACI,CFAS,AFAL,ACAI,AJAC,CAAA,AGAL,ACAI,ACAC,CEAT,AHAQ,ADAJ,AEAK,ALAA,WOAS,CAAA,AJAD,CIAC,AJAI,CIAJ,AJAI,KIAM,CJAF,CAAM,QIAM,GVFzD,IAAA,EAAA,EAAA,CAA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