@stigmer/server-slim 3.37.0 → 3.38.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 (556) hide show
  1. package/console/404.html +1 -1
  2. package/console/__next.__PAGE__.txt +1 -1
  3. package/console/__next._full.txt +1 -1
  4. package/console/__next._head.txt +1 -1
  5. package/console/__next._index.txt +1 -1
  6. package/console/__next._tree.txt +1 -1
  7. package/console/_next/static/chunks/0~lruz9m9iasi.js +1 -0
  8. package/console/_not-found/__next._full.txt +1 -1
  9. package/console/_not-found/__next._head.txt +1 -1
  10. package/console/_not-found/__next._index.txt +1 -1
  11. package/console/_not-found/__next._not-found.__PAGE__.txt +1 -1
  12. package/console/_not-found/__next._not-found.txt +1 -1
  13. package/console/_not-found/__next._tree.txt +1 -1
  14. package/console/_not-found.html +1 -1
  15. package/console/_not-found.txt +1 -1
  16. package/console/auth/callback/__next._full.txt +1 -1
  17. package/console/auth/callback/__next._head.txt +1 -1
  18. package/console/auth/callback/__next._index.txt +1 -1
  19. package/console/auth/callback/__next._tree.txt +1 -1
  20. package/console/auth/callback/__next.auth.callback.__PAGE__.txt +1 -1
  21. package/console/auth/callback/__next.auth.callback.txt +1 -1
  22. package/console/auth/callback/__next.auth.txt +1 -1
  23. package/console/auth/callback.html +1 -1
  24. package/console/auth/callback.txt +1 -1
  25. package/console/auth/github/callback/__next._full.txt +1 -1
  26. package/console/auth/github/callback/__next._head.txt +1 -1
  27. package/console/auth/github/callback/__next._index.txt +1 -1
  28. package/console/auth/github/callback/__next._tree.txt +1 -1
  29. package/console/auth/github/callback/__next.auth.github.callback.__PAGE__.txt +1 -1
  30. package/console/auth/github/callback/__next.auth.github.callback.txt +1 -1
  31. package/console/auth/github/callback/__next.auth.github.txt +1 -1
  32. package/console/auth/github/callback/__next.auth.txt +1 -1
  33. package/console/auth/github/callback.html +1 -1
  34. package/console/auth/github/callback.txt +1 -1
  35. package/console/auth/oauth/callback/__next._full.txt +1 -1
  36. package/console/auth/oauth/callback/__next._head.txt +1 -1
  37. package/console/auth/oauth/callback/__next._index.txt +1 -1
  38. package/console/auth/oauth/callback/__next._tree.txt +1 -1
  39. package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +1 -1
  40. package/console/auth/oauth/callback/__next.auth.oauth.callback.txt +1 -1
  41. package/console/auth/oauth/callback/__next.auth.oauth.txt +1 -1
  42. package/console/auth/oauth/callback/__next.auth.txt +1 -1
  43. package/console/auth/oauth/callback.html +1 -1
  44. package/console/auth/oauth/callback.txt +1 -1
  45. package/console/chat/__placeholder__/__placeholder__/__next._full.txt +1 -1
  46. package/console/chat/__placeholder__/__placeholder__/__next._head.txt +1 -1
  47. package/console/chat/__placeholder__/__placeholder__/__next._index.txt +1 -1
  48. package/console/chat/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  49. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.__PAGE__.txt +1 -1
  50. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.txt +1 -1
  51. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.txt +1 -1
  52. package/console/chat/__placeholder__/__placeholder__/__next.chat.txt +1 -1
  53. package/console/chat/__placeholder__/__placeholder__.html +1 -1
  54. package/console/chat/__placeholder__/__placeholder__.txt +1 -1
  55. package/console/conversations/__next._full.txt +1 -1
  56. package/console/conversations/__next._head.txt +1 -1
  57. package/console/conversations/__next._index.txt +1 -1
  58. package/console/conversations/__next._tree.txt +1 -1
  59. package/console/conversations/__next.conversations.__PAGE__.txt +1 -1
  60. package/console/conversations/__next.conversations.txt +1 -1
  61. package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +1 -1
  62. package/console/conversations/__placeholder__/__placeholder__/__next._head.txt +1 -1
  63. package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +1 -1
  64. package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  65. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +1 -1
  66. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.txt +1 -1
  67. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.txt +1 -1
  68. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.txt +1 -1
  69. package/console/conversations/__placeholder__/__placeholder__.html +1 -1
  70. package/console/conversations/__placeholder__/__placeholder__.txt +1 -1
  71. package/console/conversations.html +1 -1
  72. package/console/conversations.txt +1 -1
  73. package/console/dashboard/__next._full.txt +1 -1
  74. package/console/dashboard/__next._head.txt +1 -1
  75. package/console/dashboard/__next._index.txt +1 -1
  76. package/console/dashboard/__next._tree.txt +1 -1
  77. package/console/dashboard/__next.dashboard.__PAGE__.txt +1 -1
  78. package/console/dashboard/__next.dashboard.txt +1 -1
  79. package/console/dashboard.html +1 -1
  80. package/console/dashboard.txt +1 -1
  81. package/console/executions/__placeholder__/__next._full.txt +1 -1
  82. package/console/executions/__placeholder__/__next._head.txt +1 -1
  83. package/console/executions/__placeholder__/__next._index.txt +1 -1
  84. package/console/executions/__placeholder__/__next._tree.txt +1 -1
  85. package/console/executions/__placeholder__/__next.executions.$d$id.__PAGE__.txt +1 -1
  86. package/console/executions/__placeholder__/__next.executions.$d$id.txt +1 -1
  87. package/console/executions/__placeholder__/__next.executions.txt +1 -1
  88. package/console/executions/__placeholder__.html +1 -1
  89. package/console/executions/__placeholder__.txt +1 -1
  90. package/console/index.html +1 -1
  91. package/console/index.txt +1 -1
  92. package/console/invite/__placeholder__/__next._full.txt +1 -1
  93. package/console/invite/__placeholder__/__next._head.txt +1 -1
  94. package/console/invite/__placeholder__/__next._index.txt +1 -1
  95. package/console/invite/__placeholder__/__next._tree.txt +1 -1
  96. package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +1 -1
  97. package/console/invite/__placeholder__/__next.invite.$d$token.txt +1 -1
  98. package/console/invite/__placeholder__/__next.invite.txt +1 -1
  99. package/console/invite/__placeholder__.html +1 -1
  100. package/console/invite/__placeholder__.txt +1 -1
  101. package/console/library/__next._full.txt +1 -1
  102. package/console/library/__next._head.txt +1 -1
  103. package/console/library/__next._index.txt +1 -1
  104. package/console/library/__next._tree.txt +1 -1
  105. package/console/library/__next.library.__PAGE__.txt +1 -1
  106. package/console/library/__next.library.txt +1 -1
  107. package/console/library/agents/__next._full.txt +1 -1
  108. package/console/library/agents/__next._head.txt +1 -1
  109. package/console/library/agents/__next._index.txt +1 -1
  110. package/console/library/agents/__next._tree.txt +1 -1
  111. package/console/library/agents/__next.library.agents.__PAGE__.txt +1 -1
  112. package/console/library/agents/__next.library.agents.txt +1 -1
  113. package/console/library/agents/__next.library.txt +1 -1
  114. package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +1 -1
  115. package/console/library/agents/__placeholder__/__placeholder__/__next._head.txt +1 -1
  116. package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +1 -1
  117. package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  118. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +1 -1
  119. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.txt +1 -1
  120. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.txt +1 -1
  121. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.txt +1 -1
  122. package/console/library/agents/__placeholder__/__placeholder__/__next.library.txt +1 -1
  123. package/console/library/agents/__placeholder__/__placeholder__.html +1 -1
  124. package/console/library/agents/__placeholder__/__placeholder__.txt +1 -1
  125. package/console/library/agents/new/__next._full.txt +1 -1
  126. package/console/library/agents/new/__next._head.txt +1 -1
  127. package/console/library/agents/new/__next._index.txt +1 -1
  128. package/console/library/agents/new/__next._tree.txt +1 -1
  129. package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +1 -1
  130. package/console/library/agents/new/__next.library.agents.new.txt +1 -1
  131. package/console/library/agents/new/__next.library.agents.txt +1 -1
  132. package/console/library/agents/new/__next.library.txt +1 -1
  133. package/console/library/agents/new.html +1 -1
  134. package/console/library/agents/new.txt +1 -1
  135. package/console/library/agents.html +1 -1
  136. package/console/library/agents.txt +1 -1
  137. package/console/library/mcp-servers/__next._full.txt +1 -1
  138. package/console/library/mcp-servers/__next._head.txt +1 -1
  139. package/console/library/mcp-servers/__next._index.txt +1 -1
  140. package/console/library/mcp-servers/__next._tree.txt +1 -1
  141. package/console/library/mcp-servers/__next.library.mcp-servers.__PAGE__.txt +1 -1
  142. package/console/library/mcp-servers/__next.library.mcp-servers.txt +1 -1
  143. package/console/library/mcp-servers/__next.library.txt +1 -1
  144. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._full.txt +1 -1
  145. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._head.txt +1 -1
  146. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._index.txt +1 -1
  147. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  148. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.__PAGE__.txt +1 -1
  149. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.txt +1 -1
  150. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.txt +1 -1
  151. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.txt +1 -1
  152. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.txt +1 -1
  153. package/console/library/mcp-servers/__placeholder__/__placeholder__.html +1 -1
  154. package/console/library/mcp-servers/__placeholder__/__placeholder__.txt +1 -1
  155. package/console/library/mcp-servers/new/__next._full.txt +1 -1
  156. package/console/library/mcp-servers/new/__next._head.txt +1 -1
  157. package/console/library/mcp-servers/new/__next._index.txt +1 -1
  158. package/console/library/mcp-servers/new/__next._tree.txt +1 -1
  159. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.__PAGE__.txt +1 -1
  160. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.txt +1 -1
  161. package/console/library/mcp-servers/new/__next.library.mcp-servers.txt +1 -1
  162. package/console/library/mcp-servers/new/__next.library.txt +1 -1
  163. package/console/library/mcp-servers/new.html +1 -1
  164. package/console/library/mcp-servers/new.txt +1 -1
  165. package/console/library/mcp-servers.html +1 -1
  166. package/console/library/mcp-servers.txt +1 -1
  167. package/console/library/plugins/__next._full.txt +1 -1
  168. package/console/library/plugins/__next._head.txt +1 -1
  169. package/console/library/plugins/__next._index.txt +1 -1
  170. package/console/library/plugins/__next._tree.txt +1 -1
  171. package/console/library/plugins/__next.library.plugins.__PAGE__.txt +1 -1
  172. package/console/library/plugins/__next.library.plugins.txt +1 -1
  173. package/console/library/plugins/__next.library.txt +1 -1
  174. package/console/library/plugins/__placeholder__/__placeholder__/__next._full.txt +1 -1
  175. package/console/library/plugins/__placeholder__/__placeholder__/__next._head.txt +1 -1
  176. package/console/library/plugins/__placeholder__/__placeholder__/__next._index.txt +1 -1
  177. package/console/library/plugins/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  178. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.__PAGE__.txt +1 -1
  179. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.txt +1 -1
  180. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.txt +1 -1
  181. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.txt +1 -1
  182. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.txt +1 -1
  183. package/console/library/plugins/__placeholder__/__placeholder__.html +1 -1
  184. package/console/library/plugins/__placeholder__/__placeholder__.txt +1 -1
  185. package/console/library/plugins/upload/__next._full.txt +1 -1
  186. package/console/library/plugins/upload/__next._head.txt +1 -1
  187. package/console/library/plugins/upload/__next._index.txt +1 -1
  188. package/console/library/plugins/upload/__next._tree.txt +1 -1
  189. package/console/library/plugins/upload/__next.library.plugins.txt +1 -1
  190. package/console/library/plugins/upload/__next.library.plugins.upload.__PAGE__.txt +1 -1
  191. package/console/library/plugins/upload/__next.library.plugins.upload.txt +1 -1
  192. package/console/library/plugins/upload/__next.library.txt +1 -1
  193. package/console/library/plugins/upload.html +1 -1
  194. package/console/library/plugins/upload.txt +1 -1
  195. package/console/library/plugins.html +1 -1
  196. package/console/library/plugins.txt +1 -1
  197. package/console/library/schedules/__next._full.txt +1 -1
  198. package/console/library/schedules/__next._head.txt +1 -1
  199. package/console/library/schedules/__next._index.txt +1 -1
  200. package/console/library/schedules/__next._tree.txt +1 -1
  201. package/console/library/schedules/__next.library.schedules.__PAGE__.txt +1 -1
  202. package/console/library/schedules/__next.library.schedules.txt +1 -1
  203. package/console/library/schedules/__next.library.txt +1 -1
  204. package/console/library/schedules/__placeholder__/__placeholder__/__next._full.txt +1 -1
  205. package/console/library/schedules/__placeholder__/__placeholder__/__next._head.txt +1 -1
  206. package/console/library/schedules/__placeholder__/__placeholder__/__next._index.txt +1 -1
  207. package/console/library/schedules/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  208. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.__PAGE__.txt +1 -1
  209. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.txt +1 -1
  210. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.txt +1 -1
  211. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.txt +1 -1
  212. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.txt +1 -1
  213. package/console/library/schedules/__placeholder__/__placeholder__.html +1 -1
  214. package/console/library/schedules/__placeholder__/__placeholder__.txt +1 -1
  215. package/console/library/schedules/new/__next._full.txt +1 -1
  216. package/console/library/schedules/new/__next._head.txt +1 -1
  217. package/console/library/schedules/new/__next._index.txt +1 -1
  218. package/console/library/schedules/new/__next._tree.txt +1 -1
  219. package/console/library/schedules/new/__next.library.schedules.new.__PAGE__.txt +1 -1
  220. package/console/library/schedules/new/__next.library.schedules.new.txt +1 -1
  221. package/console/library/schedules/new/__next.library.schedules.txt +1 -1
  222. package/console/library/schedules/new/__next.library.txt +1 -1
  223. package/console/library/schedules/new.html +1 -1
  224. package/console/library/schedules/new.txt +1 -1
  225. package/console/library/schedules.html +1 -1
  226. package/console/library/schedules.txt +1 -1
  227. package/console/library/skills/__next._full.txt +1 -1
  228. package/console/library/skills/__next._head.txt +1 -1
  229. package/console/library/skills/__next._index.txt +1 -1
  230. package/console/library/skills/__next._tree.txt +1 -1
  231. package/console/library/skills/__next.library.skills.__PAGE__.txt +1 -1
  232. package/console/library/skills/__next.library.skills.txt +1 -1
  233. package/console/library/skills/__next.library.txt +1 -1
  234. package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +1 -1
  235. package/console/library/skills/__placeholder__/__placeholder__/__next._head.txt +1 -1
  236. package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +1 -1
  237. package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  238. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +1 -1
  239. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.txt +1 -1
  240. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.txt +1 -1
  241. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.txt +1 -1
  242. package/console/library/skills/__placeholder__/__placeholder__/__next.library.txt +1 -1
  243. package/console/library/skills/__placeholder__/__placeholder__.html +1 -1
  244. package/console/library/skills/__placeholder__/__placeholder__.txt +1 -1
  245. package/console/library/skills/new/__next._full.txt +1 -1
  246. package/console/library/skills/new/__next._head.txt +1 -1
  247. package/console/library/skills/new/__next._index.txt +1 -1
  248. package/console/library/skills/new/__next._tree.txt +1 -1
  249. package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +1 -1
  250. package/console/library/skills/new/__next.library.skills.new.txt +1 -1
  251. package/console/library/skills/new/__next.library.skills.txt +1 -1
  252. package/console/library/skills/new/__next.library.txt +1 -1
  253. package/console/library/skills/new.html +1 -1
  254. package/console/library/skills/new.txt +1 -1
  255. package/console/library/skills.html +1 -1
  256. package/console/library/skills.txt +1 -1
  257. package/console/library/workflows/__next._full.txt +1 -1
  258. package/console/library/workflows/__next._head.txt +1 -1
  259. package/console/library/workflows/__next._index.txt +1 -1
  260. package/console/library/workflows/__next._tree.txt +1 -1
  261. package/console/library/workflows/__next.library.txt +1 -1
  262. package/console/library/workflows/__next.library.workflows.__PAGE__.txt +1 -1
  263. package/console/library/workflows/__next.library.workflows.txt +1 -1
  264. package/console/library/workflows/__placeholder__/__placeholder__/__next._full.txt +1 -1
  265. package/console/library/workflows/__placeholder__/__placeholder__/__next._head.txt +1 -1
  266. package/console/library/workflows/__placeholder__/__placeholder__/__next._index.txt +1 -1
  267. package/console/library/workflows/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  268. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.txt +1 -1
  269. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.__PAGE__.txt +1 -1
  270. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.txt +1 -1
  271. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.txt +1 -1
  272. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.txt +1 -1
  273. package/console/library/workflows/__placeholder__/__placeholder__.html +1 -1
  274. package/console/library/workflows/__placeholder__/__placeholder__.txt +1 -1
  275. package/console/library/workflows/executions/__next._full.txt +1 -1
  276. package/console/library/workflows/executions/__next._head.txt +1 -1
  277. package/console/library/workflows/executions/__next._index.txt +1 -1
  278. package/console/library/workflows/executions/__next._tree.txt +1 -1
  279. package/console/library/workflows/executions/__next.library.txt +1 -1
  280. package/console/library/workflows/executions/__next.library.workflows.executions.__PAGE__.txt +1 -1
  281. package/console/library/workflows/executions/__next.library.workflows.executions.txt +1 -1
  282. package/console/library/workflows/executions/__next.library.workflows.txt +1 -1
  283. package/console/library/workflows/executions.html +1 -1
  284. package/console/library/workflows/executions.txt +1 -1
  285. package/console/library/workflows/new/__next._full.txt +1 -1
  286. package/console/library/workflows/new/__next._head.txt +1 -1
  287. package/console/library/workflows/new/__next._index.txt +1 -1
  288. package/console/library/workflows/new/__next._tree.txt +1 -1
  289. package/console/library/workflows/new/__next.library.txt +1 -1
  290. package/console/library/workflows/new/__next.library.workflows.new.__PAGE__.txt +1 -1
  291. package/console/library/workflows/new/__next.library.workflows.new.txt +1 -1
  292. package/console/library/workflows/new/__next.library.workflows.txt +1 -1
  293. package/console/library/workflows/new.html +1 -1
  294. package/console/library/workflows/new.txt +1 -1
  295. package/console/library/workflows.html +1 -1
  296. package/console/library/workflows.txt +1 -1
  297. package/console/library.html +1 -1
  298. package/console/library.txt +1 -1
  299. package/console/login/__next._full.txt +1 -1
  300. package/console/login/__next._head.txt +1 -1
  301. package/console/login/__next._index.txt +1 -1
  302. package/console/login/__next._tree.txt +1 -1
  303. package/console/login/__next.login.__PAGE__.txt +1 -1
  304. package/console/login/__next.login.txt +1 -1
  305. package/console/login.html +1 -1
  306. package/console/login.txt +1 -1
  307. package/console/marketplace/__next._full.txt +1 -1
  308. package/console/marketplace/__next._head.txt +1 -1
  309. package/console/marketplace/__next._index.txt +1 -1
  310. package/console/marketplace/__next._tree.txt +1 -1
  311. package/console/marketplace/__next.marketplace.__PAGE__.txt +1 -1
  312. package/console/marketplace/__next.marketplace.txt +1 -1
  313. package/console/marketplace.html +1 -1
  314. package/console/marketplace.txt +1 -1
  315. package/console/oauth/slack/callback/__next._full.txt +1 -1
  316. package/console/oauth/slack/callback/__next._head.txt +1 -1
  317. package/console/oauth/slack/callback/__next._index.txt +1 -1
  318. package/console/oauth/slack/callback/__next._tree.txt +1 -1
  319. package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +1 -1
  320. package/console/oauth/slack/callback/__next.oauth.slack.callback.txt +1 -1
  321. package/console/oauth/slack/callback/__next.oauth.slack.txt +1 -1
  322. package/console/oauth/slack/callback/__next.oauth.txt +1 -1
  323. package/console/oauth/slack/callback.html +1 -1
  324. package/console/oauth/slack/callback.txt +1 -1
  325. package/console/sessions/__placeholder__/__next._full.txt +1 -1
  326. package/console/sessions/__placeholder__/__next._head.txt +1 -1
  327. package/console/sessions/__placeholder__/__next._index.txt +1 -1
  328. package/console/sessions/__placeholder__/__next._tree.txt +1 -1
  329. package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +1 -1
  330. package/console/sessions/__placeholder__/__next.sessions.$d$id.txt +1 -1
  331. package/console/sessions/__placeholder__/__next.sessions.txt +1 -1
  332. package/console/sessions/__placeholder__.html +1 -1
  333. package/console/sessions/__placeholder__.txt +1 -1
  334. package/console/settings/__next._full.txt +1 -1
  335. package/console/settings/__next._head.txt +1 -1
  336. package/console/settings/__next._index.txt +1 -1
  337. package/console/settings/__next._tree.txt +1 -1
  338. package/console/settings/__next.settings.__PAGE__.txt +1 -1
  339. package/console/settings/__next.settings.txt +1 -1
  340. package/console/settings/account-preferences/__next._full.txt +1 -1
  341. package/console/settings/account-preferences/__next._head.txt +1 -1
  342. package/console/settings/account-preferences/__next._index.txt +1 -1
  343. package/console/settings/account-preferences/__next._tree.txt +1 -1
  344. package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +1 -1
  345. package/console/settings/account-preferences/__next.settings.account-preferences.txt +1 -1
  346. package/console/settings/account-preferences/__next.settings.txt +1 -1
  347. package/console/settings/account-preferences.html +1 -1
  348. package/console/settings/account-preferences.txt +1 -1
  349. package/console/settings/api-keys/__next._full.txt +1 -1
  350. package/console/settings/api-keys/__next._head.txt +1 -1
  351. package/console/settings/api-keys/__next._index.txt +1 -1
  352. package/console/settings/api-keys/__next._tree.txt +1 -1
  353. package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +1 -1
  354. package/console/settings/api-keys/__next.settings.api-keys.txt +1 -1
  355. package/console/settings/api-keys/__next.settings.txt +1 -1
  356. package/console/settings/api-keys.html +1 -1
  357. package/console/settings/api-keys.txt +1 -1
  358. package/console/settings/billing/__next._full.txt +1 -1
  359. package/console/settings/billing/__next._head.txt +1 -1
  360. package/console/settings/billing/__next._index.txt +1 -1
  361. package/console/settings/billing/__next._tree.txt +1 -1
  362. package/console/settings/billing/__next.settings.billing.__PAGE__.txt +1 -1
  363. package/console/settings/billing/__next.settings.billing.txt +1 -1
  364. package/console/settings/billing/__next.settings.txt +1 -1
  365. package/console/settings/billing.html +1 -1
  366. package/console/settings/billing.txt +1 -1
  367. package/console/settings/channel-apps/__next._full.txt +1 -1
  368. package/console/settings/channel-apps/__next._head.txt +1 -1
  369. package/console/settings/channel-apps/__next._index.txt +1 -1
  370. package/console/settings/channel-apps/__next._tree.txt +1 -1
  371. package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +1 -1
  372. package/console/settings/channel-apps/__next.settings.channel-apps.txt +1 -1
  373. package/console/settings/channel-apps/__next.settings.txt +1 -1
  374. package/console/settings/channel-apps.html +1 -1
  375. package/console/settings/channel-apps.txt +1 -1
  376. package/console/settings/cursor-accounts/__next._full.txt +1 -1
  377. package/console/settings/cursor-accounts/__next._head.txt +1 -1
  378. package/console/settings/cursor-accounts/__next._index.txt +1 -1
  379. package/console/settings/cursor-accounts/__next._tree.txt +1 -1
  380. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.__PAGE__.txt +1 -1
  381. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.txt +1 -1
  382. package/console/settings/cursor-accounts/__next.settings.txt +1 -1
  383. package/console/settings/cursor-accounts.html +1 -1
  384. package/console/settings/cursor-accounts.txt +1 -1
  385. package/console/settings/environments/__next._full.txt +1 -1
  386. package/console/settings/environments/__next._head.txt +1 -1
  387. package/console/settings/environments/__next._index.txt +1 -1
  388. package/console/settings/environments/__next._tree.txt +1 -1
  389. package/console/settings/environments/__next.settings.environments.__PAGE__.txt +1 -1
  390. package/console/settings/environments/__next.settings.environments.txt +1 -1
  391. package/console/settings/environments/__next.settings.txt +1 -1
  392. package/console/settings/environments.html +1 -1
  393. package/console/settings/environments.txt +1 -1
  394. package/console/settings/identity-providers/__next._full.txt +1 -1
  395. package/console/settings/identity-providers/__next._head.txt +1 -1
  396. package/console/settings/identity-providers/__next._index.txt +1 -1
  397. package/console/settings/identity-providers/__next._tree.txt +1 -1
  398. package/console/settings/identity-providers/__next.settings.identity-providers.__PAGE__.txt +1 -1
  399. package/console/settings/identity-providers/__next.settings.identity-providers.txt +1 -1
  400. package/console/settings/identity-providers/__next.settings.txt +1 -1
  401. package/console/settings/identity-providers.html +1 -1
  402. package/console/settings/identity-providers.txt +1 -1
  403. package/console/settings/invitations/__next._full.txt +1 -1
  404. package/console/settings/invitations/__next._head.txt +1 -1
  405. package/console/settings/invitations/__next._index.txt +1 -1
  406. package/console/settings/invitations/__next._tree.txt +1 -1
  407. package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +1 -1
  408. package/console/settings/invitations/__next.settings.invitations.txt +1 -1
  409. package/console/settings/invitations/__next.settings.txt +1 -1
  410. package/console/settings/invitations.html +1 -1
  411. package/console/settings/invitations.txt +1 -1
  412. package/console/settings/licenses/__next._full.txt +3 -3
  413. package/console/settings/licenses/__next._head.txt +1 -1
  414. package/console/settings/licenses/__next._index.txt +1 -1
  415. package/console/settings/licenses/__next._tree.txt +1 -1
  416. package/console/settings/licenses/__next.settings.licenses.__PAGE__.txt +2 -2
  417. package/console/settings/licenses/__next.settings.licenses.txt +1 -1
  418. package/console/settings/licenses/__next.settings.txt +1 -1
  419. package/console/settings/licenses.html +1 -1
  420. package/console/settings/licenses.txt +3 -3
  421. package/console/settings/members/__next._full.txt +1 -1
  422. package/console/settings/members/__next._head.txt +1 -1
  423. package/console/settings/members/__next._index.txt +1 -1
  424. package/console/settings/members/__next._tree.txt +1 -1
  425. package/console/settings/members/__next.settings.members.__PAGE__.txt +1 -1
  426. package/console/settings/members/__next.settings.members.txt +1 -1
  427. package/console/settings/members/__next.settings.txt +1 -1
  428. package/console/settings/members.html +1 -1
  429. package/console/settings/members.txt +1 -1
  430. package/console/settings/memory/__next._full.txt +1 -1
  431. package/console/settings/memory/__next._head.txt +1 -1
  432. package/console/settings/memory/__next._index.txt +1 -1
  433. package/console/settings/memory/__next._tree.txt +1 -1
  434. package/console/settings/memory/__next.settings.memory.__PAGE__.txt +1 -1
  435. package/console/settings/memory/__next.settings.memory.txt +1 -1
  436. package/console/settings/memory/__next.settings.txt +1 -1
  437. package/console/settings/memory.html +1 -1
  438. package/console/settings/memory.txt +1 -1
  439. package/console/settings/oauth-apps/__next._full.txt +1 -1
  440. package/console/settings/oauth-apps/__next._head.txt +1 -1
  441. package/console/settings/oauth-apps/__next._index.txt +1 -1
  442. package/console/settings/oauth-apps/__next._tree.txt +1 -1
  443. package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +1 -1
  444. package/console/settings/oauth-apps/__next.settings.oauth-apps.txt +1 -1
  445. package/console/settings/oauth-apps/__next.settings.txt +1 -1
  446. package/console/settings/oauth-apps.html +1 -1
  447. package/console/settings/oauth-apps.txt +1 -1
  448. package/console/settings/org-preferences/__next._full.txt +1 -1
  449. package/console/settings/org-preferences/__next._head.txt +1 -1
  450. package/console/settings/org-preferences/__next._index.txt +1 -1
  451. package/console/settings/org-preferences/__next._tree.txt +1 -1
  452. package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +1 -1
  453. package/console/settings/org-preferences/__next.settings.org-preferences.txt +1 -1
  454. package/console/settings/org-preferences/__next.settings.txt +1 -1
  455. package/console/settings/org-preferences.html +1 -1
  456. package/console/settings/org-preferences.txt +1 -1
  457. package/console/settings/org-profile/__next._full.txt +1 -1
  458. package/console/settings/org-profile/__next._head.txt +1 -1
  459. package/console/settings/org-profile/__next._index.txt +1 -1
  460. package/console/settings/org-profile/__next._tree.txt +1 -1
  461. package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +1 -1
  462. package/console/settings/org-profile/__next.settings.org-profile.txt +1 -1
  463. package/console/settings/org-profile/__next.settings.txt +1 -1
  464. package/console/settings/org-profile.html +1 -1
  465. package/console/settings/org-profile.txt +1 -1
  466. package/console/settings/platform-clients/__next._full.txt +1 -1
  467. package/console/settings/platform-clients/__next._head.txt +1 -1
  468. package/console/settings/platform-clients/__next._index.txt +1 -1
  469. package/console/settings/platform-clients/__next._tree.txt +1 -1
  470. package/console/settings/platform-clients/__next.settings.platform-clients.__PAGE__.txt +1 -1
  471. package/console/settings/platform-clients/__next.settings.platform-clients.txt +1 -1
  472. package/console/settings/platform-clients/__next.settings.txt +1 -1
  473. package/console/settings/platform-clients.html +1 -1
  474. package/console/settings/platform-clients.txt +1 -1
  475. package/console/settings/pricing-governance/__next._full.txt +1 -1
  476. package/console/settings/pricing-governance/__next._head.txt +1 -1
  477. package/console/settings/pricing-governance/__next._index.txt +1 -1
  478. package/console/settings/pricing-governance/__next._tree.txt +1 -1
  479. package/console/settings/pricing-governance/__next.settings.pricing-governance.__PAGE__.txt +1 -1
  480. package/console/settings/pricing-governance/__next.settings.pricing-governance.txt +1 -1
  481. package/console/settings/pricing-governance/__next.settings.txt +1 -1
  482. package/console/settings/pricing-governance.html +1 -1
  483. package/console/settings/pricing-governance.txt +1 -1
  484. package/console/settings/provider-standing/__next._full.txt +1 -1
  485. package/console/settings/provider-standing/__next._head.txt +1 -1
  486. package/console/settings/provider-standing/__next._index.txt +1 -1
  487. package/console/settings/provider-standing/__next._tree.txt +1 -1
  488. package/console/settings/provider-standing/__next.settings.provider-standing.__PAGE__.txt +1 -1
  489. package/console/settings/provider-standing/__next.settings.provider-standing.txt +1 -1
  490. package/console/settings/provider-standing/__next.settings.txt +1 -1
  491. package/console/settings/provider-standing.html +1 -1
  492. package/console/settings/provider-standing.txt +1 -1
  493. package/console/settings/teams/__next._full.txt +1 -1
  494. package/console/settings/teams/__next._head.txt +1 -1
  495. package/console/settings/teams/__next._index.txt +1 -1
  496. package/console/settings/teams/__next._tree.txt +1 -1
  497. package/console/settings/teams/__next.settings.teams.__PAGE__.txt +1 -1
  498. package/console/settings/teams/__next.settings.teams.txt +1 -1
  499. package/console/settings/teams/__next.settings.txt +1 -1
  500. package/console/settings/teams.html +1 -1
  501. package/console/settings/teams.txt +1 -1
  502. package/console/settings/usage/__next._full.txt +1 -1
  503. package/console/settings/usage/__next._head.txt +1 -1
  504. package/console/settings/usage/__next._index.txt +1 -1
  505. package/console/settings/usage/__next._tree.txt +1 -1
  506. package/console/settings/usage/__next.settings.txt +1 -1
  507. package/console/settings/usage/__next.settings.usage.__PAGE__.txt +1 -1
  508. package/console/settings/usage/__next.settings.usage.txt +1 -1
  509. package/console/settings/usage.html +1 -1
  510. package/console/settings/usage.txt +1 -1
  511. package/console/settings.html +1 -1
  512. package/console/settings.txt +1 -1
  513. package/console/workflows/__next._full.txt +1 -1
  514. package/console/workflows/__next._head.txt +1 -1
  515. package/console/workflows/__next._index.txt +1 -1
  516. package/console/workflows/__next._tree.txt +1 -1
  517. package/console/workflows/__next.workflows.__PAGE__.txt +1 -1
  518. package/console/workflows/__next.workflows.txt +1 -1
  519. package/console/workflows/__placeholder__/__placeholder__/__next._full.txt +1 -1
  520. package/console/workflows/__placeholder__/__placeholder__/__next._head.txt +1 -1
  521. package/console/workflows/__placeholder__/__placeholder__/__next._index.txt +1 -1
  522. package/console/workflows/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  523. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.__PAGE__.txt +1 -1
  524. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.txt +1 -1
  525. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.txt +1 -1
  526. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.txt +1 -1
  527. package/console/workflows/__placeholder__/__placeholder__.html +1 -1
  528. package/console/workflows/__placeholder__/__placeholder__.txt +1 -1
  529. package/console/workflows/executions/__next._full.txt +1 -1
  530. package/console/workflows/executions/__next._head.txt +1 -1
  531. package/console/workflows/executions/__next._index.txt +1 -1
  532. package/console/workflows/executions/__next._tree.txt +1 -1
  533. package/console/workflows/executions/__next.workflows.executions.__PAGE__.txt +1 -1
  534. package/console/workflows/executions/__next.workflows.executions.txt +1 -1
  535. package/console/workflows/executions/__next.workflows.txt +1 -1
  536. package/console/workflows/executions/__placeholder__/__next._full.txt +1 -1
  537. package/console/workflows/executions/__placeholder__/__next._head.txt +1 -1
  538. package/console/workflows/executions/__placeholder__/__next._index.txt +1 -1
  539. package/console/workflows/executions/__placeholder__/__next._tree.txt +1 -1
  540. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.__PAGE__.txt +1 -1
  541. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.txt +1 -1
  542. package/console/workflows/executions/__placeholder__/__next.workflows.executions.txt +1 -1
  543. package/console/workflows/executions/__placeholder__/__next.workflows.txt +1 -1
  544. package/console/workflows/executions/__placeholder__.html +1 -1
  545. package/console/workflows/executions/__placeholder__.txt +1 -1
  546. package/console/workflows/executions.html +1 -1
  547. package/console/workflows/executions.txt +1 -1
  548. package/console/workflows.html +1 -1
  549. package/console/workflows.txt +1 -1
  550. package/main.js +6 -6
  551. package/package.json +6 -6
  552. package/workflow-bundle-agent-execution.js +221 -55
  553. package/console/_next/static/chunks/0qhnh~w1eoa.0.js +0 -1
  554. /package/console/_next/static/{nwtSFBQaGYM5Qy6GPwSiZ → RqXVqkFE2JUuPd2uFJmTQ}/_buildManifest.js +0 -0
  555. /package/console/_next/static/{nwtSFBQaGYM5Qy6GPwSiZ → RqXVqkFE2JUuPd2uFJmTQ}/_clientMiddlewareManifest.js +0 -0
  556. /package/console/_next/static/{nwtSFBQaGYM5Qy6GPwSiZ → RqXVqkFE2JUuPd2uFJmTQ}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,261716,e=>{"use strict";var s=e.i(843476),t=e.i(271645),a=e.i(610413),r=e.i(107233),n=e.i(893976),i=e.i(610595),l=e.i(910304),o=e.i(283416),c=e.i(65642),d=e.i(170255),g=e.i(597744),m=e.i(311015),u=e.i(630983),h=e.i(266442),x=e.i(17616),p=e.i(937111);let f={[o.LicenseTerm.trial]:"Trial",[o.LicenseTerm.paid]:"Paid"},b={[p.Feature.sso_enforcement]:{label:"SSO enforcement",description:"Require members to sign in through a registered identity provider."},[p.Feature.platform_client]:{label:"Platform clients",description:"Let the customer's own product mint Stigmer tokens for its users."},[p.Feature.byo_provider_keys]:{label:"Bring your own provider keys",description:"Use the customer's own LLM provider keys instead of the metered proxy."},[p.Feature.channels]:{label:"Channels",description:"Deliver agents over messaging channels through a channel runtime."},[p.Feature.sharing]:{label:"Sharing",description:"Share agents with individuals and guests through hosted links."}},j=Object.keys(b).map(Number).sort((e,s)=>e-s),v=new Intl.RelativeTimeFormat("en",{numeric:"auto"});function N(e){return e===o.LicenseTerm.trial||e===o.LicenseTerm.paid?f[e]:"Unknown term"}function y(e){return e?(0,x.timestampDate)(e):void 0}function w(e){return e.toISOString().slice(0,10)}function k(e){return w(new Date(e.getTime()-1))}function S(e){return Date.parse(`${e}T00:00:00Z`)}function C(e){return`${e.toISOString().slice(0,16).replace("T"," ")} UTC`}function T(e,s){let t=Math.round((S(e)-S(w(s)))/864e5);return 60>Math.abs(t)?v.format(t,"day"):v.format(Math.round(t/30.44),"month")}function L(e,s){return void 0===e?`Unlimited ${s}s`:U(e,s)}function U(e,s){return`${e} ${s}${1===e?"":"s"}`}function $(e){return e.trim().replace(/\s+/g," ").toLowerCase()}function E(e){return y(e.status?.issuedAt)?.getTime()??-1/0}function I(e){return y(e.spec?.expiresAt)?.getTime()??-1/0}var A=e.i(766354),z=e.i(16715),_=e.i(188482),B=e.i(643531),F=e.i(174886),M=e.i(475254);let D=(0,M.default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),O=(0,M.default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var P=e.i(162697),R=e.i(193799);let q="stg:size-3.5";function Y({ticket:e,isLoading:a,error:r,className:l}){let[o,d]=(0,t.useState)(!1),{copy:g,copied:m}=(0,R.useCopyFeedback)(),u=(0,t.useRef)(null),h=(0,t.useCallback)(async()=>{!e||await g(e)||(d(!0),requestAnimationFrame(()=>{u.current&&(0,P.selectElementText)(u.current)}))},[g,e]);return(0,s.jsxs)("section",{"aria-label":"Ticket",className:(0,n.cn)("stg:space-y-3 stg:rounded-lg stg:border stg:border-border stg:bg-card stg:p-4",l),children:[(0,s.jsxs)("div",{className:"stg:flex stg:flex-wrap stg:items-start stg:justify-between stg:gap-3",children:[(0,s.jsxs)("div",{className:"stg:min-w-0 stg:space-y-1",children:[(0,s.jsx)("h4",{className:"stg:m-0 stg:text-sm stg:font-semibold stg:text-foreground",children:"Ticket"}),(0,s.jsx)("p",{className:"stg:m-0 stg:text-sm stg:text-muted-foreground",children:"The signed key the customer installs on their server. Anyone holding it can run it as this customer, so send it only to their contact address."})]}),(0,s.jsxs)("div",{className:"stg:flex stg:shrink-0 stg:gap-2",children:[(0,s.jsx)(c.Button,{variant:"outline",className:"stg:w-28 stg:justify-center",disabled:!e,"aria-pressed":o,icon:o?(0,s.jsx)(O,{className:q,"aria-hidden":"true"}):(0,s.jsx)(D,{className:q,"aria-hidden":"true"}),onClick:()=>d(e=>!e),children:o?"Hide ticket":"Show ticket"}),(0,s.jsx)(c.Button,{className:"stg:w-28 stg:justify-center",disabled:!e,icon:m?(0,s.jsx)(B.Check,{className:q,"aria-hidden":"true"}):(0,s.jsx)(F.Copy,{className:q,"aria-hidden":"true"}),onClick:()=>void h(),children:m?"Copied":"Copy ticket"})]})]}),a&&(0,s.jsx)("p",{className:"stg:m-0 stg:text-sm stg:text-muted-foreground","aria-busy":"true",children:"Reading the ticket…"}),r&&(0,s.jsx)("p",{className:"stg:m-0 stg:text-sm stg:text-destructive",role:"alert",children:(0,i.getUserMessage)(r)}),o&&e&&(0,s.jsx)("code",{ref:u,className:(0,n.cn)("stg:block stg:max-h-40 stg:overflow-y-auto stg:break-all stg:select-all stg:rounded-md","stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5","stg:font-mono stg:text-xs stg:text-foreground"),children:e}),(0,s.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"stg:sr-only",children:m&&"Ticket copied to clipboard"})]})}var G=e.i(586108),K=e.i(583093);let V="stg:size-3.5";function W({license:e,issued:a,standing:r,now:i,onBack:l,onRenew:o,className:d}){let g=e.metadata?.id??"",m=a?.status?.ticket,u=function(e,s){let a=(0,G.useStigmer)(),r=(s?.enabled??!0)&&""!==e,{data:n,isLoading:i,error:l,refetch:o}=(0,K.useFetch)(r?()=>a.license.get(e):null,[r,e,a],null);return(0,t.useMemo)(()=>({license:n,isLoading:i,error:l,refetch:o}),[n,i,l,o])}(g,{enabled:!m}),x=m??u.license?.status?.ticket??null,p=e.spec,f=p?.customer,j=p?.entitlements?.limits,v=(p?.entitlements?.features??[]).filter(e=>e in b),w=y(p?.expiresAt),S=y(p?.graceUntil),L=y(e.status?.issuedAt),U=e.status?.audit?.specAudit?.createdBy,$=w&&S&&S.getTime()>w.getTime()?S:void 0,E=w?k(w):void 0;return(0,s.jsxs)("div",{className:(0,n.cn)("stg:space-y-4",d),children:[(0,s.jsxs)("div",{className:"stg:space-y-2",children:[(0,s.jsx)(c.Button,{variant:"ghost",size:"xs",icon:(0,s.jsx)(A.ArrowLeft,{className:V,"aria-hidden":"true"}),onClick:l,children:"Licenses"}),(0,s.jsxs)("div",{className:"stg:flex stg:flex-wrap stg:items-start stg:justify-between stg:gap-2",children:[(0,s.jsxs)("div",{className:"stg:min-w-0",children:[(0,s.jsx)("h3",{className:"stg:m-0 stg:truncate stg:text-base stg:font-semibold stg:text-foreground",children:f?.displayName??"Unknown customer"}),(0,s.jsxs)("p",{className:"stg:m-0 stg:mt-1 stg:flex stg:flex-wrap stg:items-center stg:gap-x-2 stg:gap-y-1 stg:text-sm stg:text-muted-foreground",children:[r&&(0,s.jsx)(h.StatusBadge,{phase:r.phase,label:r.label,tooltip:r.reason}),(0,s.jsxs)("span",{children:[`${p?N(p.term):"Unknown term"} \xb7 covered through ${E??"an unknown day"}`,E&&` (${T(E,i)})`]})]})]}),o&&(0,s.jsx)(c.Button,{variant:"outline",icon:(0,s.jsx)(z.RefreshCw,{className:V,"aria-hidden":"true"}),onClick:o,children:"Renew"})]})]}),a&&(0,s.jsxs)("p",{className:"stg:m-0 stg:rounded-md stg:border stg:border-border stg:bg-muted-subtle stg:px-3 stg:py-2 stg:text-sm stg:text-foreground",role:"status",children:["License issued and signed. Copy the ticket below and send it to"," ",f?.contactEmail||"the customer","."]}),(0,s.jsx)(Y,{ticket:x,isLoading:!m&&u.isLoading,error:u.error}),(0,s.jsxs)("dl",{className:"stg:m-0 stg:grid stg:grid-cols-1 stg:gap-x-6 stg:gap-y-4 stg:rounded-lg stg:border stg:border-border stg:bg-card stg:p-4 stg:sm:grid-cols-2",children:[(0,s.jsxs)(H,{label:"Customer",children:[(0,s.jsx)("span",{className:"stg:block",children:f?.displayName}),(0,s.jsx)("span",{className:"stg:block stg:text-muted-foreground",children:f?.contactEmail}),f?.organization&&(0,s.jsx)("span",{className:"stg:block stg:text-muted-foreground",children:`Cloud organization ${f.organization}`})]}),(0,s.jsx)(H,{label:"Term",children:p?N(p.term):"Unknown"}),(0,s.jsx)(H,{label:"Covered through",children:w&&E?(0,s.jsx)(Z,{date:w,children:`${E} (${T(E,i)})`}):"Unknown"}),(0,s.jsx)(H,{label:"Grace",children:$?(0,s.jsx)(Z,{date:$,children:`Through ${k($)}`}):"None"}),(0,s.jsxs)(H,{label:"Limits",children:[(0,s.jsx)("span",{className:"stg:block",children:j?.maxUsers!==void 0?`${j.maxUsers} users`:"Unlimited users"}),(0,s.jsx)("span",{className:"stg:block",children:j?.maxOrganizations!==void 0?`${j.maxOrganizations} organizations`:"Unlimited organizations"})]}),(0,s.jsx)(H,{label:"Features",children:0===v.length?"None":v.map(e=>(0,s.jsx)("span",{className:"stg:block",children:b[e].label},e))}),(0,s.jsxs)(H,{label:"Issued",children:[L?(0,s.jsx)(Z,{date:L,children:C(L)}):"Unknown",U&&(U.email||U.displayName)&&(0,s.jsx)("span",{className:"stg:block stg:text-muted-foreground",children:U.displayName&&U.email?`by ${U.displayName} (${U.email})`:`by ${U.displayName||U.email}`})]}),(0,s.jsx)(H,{label:"Signing key",children:(0,s.jsx)("span",{className:"stg:font-mono",children:e.status?.keyId||"Unknown"})}),(0,s.jsxs)(H,{label:"License",children:[(0,s.jsx)("span",{className:"stg:block",children:e.metadata?.name}),(0,s.jsx)("span",{className:"stg:block stg:font-mono stg:text-muted-foreground",children:g})]}),p?.notes&&(0,s.jsx)(H,{label:"Notes",wide:!0,children:(0,s.jsx)("span",{className:"stg:whitespace-pre-wrap",children:p.notes})})]})]})}function H({label:e,wide:t,children:a}){return(0,s.jsxs)("div",{className:(0,n.cn)("stg:min-w-0",t&&"stg:sm:col-span-2"),children:[(0,s.jsx)("dt",{className:"stg:text-xs stg:text-muted-foreground",children:e}),(0,s.jsx)("dd",{className:"stg:m-0 stg:mt-0.5 stg:break-words stg:text-sm stg:text-foreground",children:a})]})}function Z({date:e,children:t}){return(0,s.jsxs)(_.Tooltip,{children:[(0,s.jsx)(_.TooltipTrigger,{render:(0,s.jsx)("span",{className:"stg:inline-flex"}),children:t}),(0,s.jsx)(_.TooltipContent,{side:"top",children:C(e)})]})}var J=e.i(251634),Q=e.i(565507),X=e.i(494953),ee=e.i(869803),es=e.i(933221),et=e.i(891914);let ea={[o.LicenseTerm.trial]:{days:30},[o.LicenseTerm.paid]:{years:1}},er={[o.LicenseTerm.trial]:0,[o.LicenseTerm.paid]:30};function en(e,s,t){return`${f[e]} license for ${ec(s)} until ${t}`}function ei(e){let s=e.trim();if(""===s)return{ok:!0,value:void 0};let t=Number(s);return!Number.isInteger(t)||t>0x7fffffff?{ok:!1,error:"Enter a whole number, or leave it empty for unlimited."}:{ok:!0,value:t}}let el="0123456789abcdefghjkmnpqrstvwxyz";function eo(e,s){return w(new Date(S(e)+864e5*s))}function ec(e){return e.trim().replace(/\s+/g," ")}let ed="stg:size-3.5 stg:shrink-0 stg:cursor-pointer stg:accent-primary stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:ring-offset-1",eg={[o.LicenseTerm.trial]:"30 days",[o.LicenseTerm.paid]:"1 year"},em={"spec.customer.display_name":"Name the customer.","spec.customer.contact_email":"Enter the address renewal notices go to.","spec.entitlements.limits.max_users":"Enter at least 1, or leave it empty for unlimited.","spec.entitlements.limits.max_organizations":"Enter at least 1, or leave it empty for unlimited.","spec.notes":"Notes are limited to 4,096 characters."};function eu({customers:e,renewing:a,now:r,isSubmitting:d,submitError:g,onSubmit:m,onCancel:u,className:h}){var x,p,v,N;let C,T,U,E,I,z=(0,t.useId)(),_=a?.spec?.customer?.id??"",B=(v=a?.spec?.term)===o.LicenseTerm.trial||v===o.LicenseTerm.paid?v:void 0,[F,M]=(0,t.useState)(""!==_||e.length>0?"existing":"new"),[D,O]=(0,t.useState)(_),[P,R]=(0,t.useState)(""),[q,Y]=(0,t.useState)(""),[G,K]=(0,t.useState)(""),[V]=(0,t.useState)(()=>(function(e=Date.now(),s=e=>{globalThis.crypto.getRandomValues(e)}){let t="",a=e;for(let e=0;e<10;e+=1)t=el.charAt(a%32)+t,a=Math.floor(a/32);let r=new Uint8Array(10);s(r);let n="",i=0,l=0;for(let e of r){for(i=i<<8|e,l+=8;l>=5;)n+=el.charAt(i>>>l-5&31),l-=5;i&=(1<<l)-1}return`cus_${t}${n}`})()),[W,H]=(0,t.useState)(B??o.LicenseTerm.trial),[Z,ej]=(0,t.useState)(null),[ev,eN]=(0,t.useState)(()=>{let e,s;if(!a||void 0===B)return null;let t=(e=y(a.spec?.expiresAt),s=y(a.spec?.graceUntil),e&&s?Math.max(0,Math.round((s.getTime()-e.getTime())/864e5)):0);return t===er[B]?null:String(t)}),[ey,ew]=(0,t.useState)(eb(a?.spec?.entitlements?.limits?.maxUsers)),[ek,eS]=(0,t.useState)(eb(a?.spec?.entitlements?.limits?.maxOrganizations)),[eC,eT]=(0,t.useState)(()=>(a?.spec?.entitlements?.features??[]).filter(ef)),[eL,eU]=(0,t.useState)(""),[e$,eE]=(0,t.useState)(!1),eI=w(r),eA=function(e,s){let t=w(e),a=y(s?.spec?.expiresAt);if(!a)return t;let r=eo(k(a),1);return r>t?r:t}(r,a),ez=Z??function(e,s){let{days:t,years:a}=ea[e],r=a?function(e,s){let[t,a,r]=e.split("-").map(Number);return w(new Date(Date.UTC(t+s,a-1,r)))}(s,a):eo(s,t??0);return eo(r,-1)}(W,eA),e_=ev??String(er[W]),eB=e.find(e=>e.customer.id===D),eF="existing"===F?eB&&{id:eB.customer.id,displayName:eB.customer.displayName,contactEmail:eB.customer.contactEmail,organization:eB.customer.organization}:{id:V,displayName:P,contactEmail:q,organization:G},eM="new"===F?(T=$((x={displayName:P,contactEmail:q}).displayName),U=$(x.contactEmail),""===T&&""===U?[]:e.filter(({customer:e})=>""!==T&&$(e.displayName)===T||""!==U&&$(e.contactEmail)===U)):[],eD=(E=Number(e_.trim()),""===e_.trim()||!Number.isInteger(E)||E<0||E>3650?{ok:!1,error:"Enter a whole number of days from 0 to 3650."}:{ok:!0,value:E}),eO=ei(ey),eP=ei(ek),eR=""===ez?"Choose the last day the license covers.":ez<w(r)?"The last covered day cannot be in the past.":null,eq=[];if(eF&&eD.ok&&eO.ok&&eP.ok&&null===eR){let e,s,t,a,r;s=new Date((e=new Date(S(eo((p={customer:eF,term:W,lastCoveredDay:ez,graceDays:eD.value,maxUsers:eO.value,maxOrganizations:eP.value,features:eC,notes:eL}).lastCoveredDay,1)))).getTime()+864e5*p.graceDays),t={...void 0!==p.maxUsers&&{maxUsers:p.maxUsers},...void 0!==p.maxOrganizations&&{maxOrganizations:p.maxOrganizations}},a=p.customer.organization?.trim(),r=p.notes.trim(),C={name:en(p.term,p.customer.displayName,p.lastCoveredDay),org:"",customer:{id:p.customer.id,displayName:ec(p.customer.displayName),contactEmail:p.customer.contactEmail.trim(),...a?{organization:a}:{}},entitlements:{...Object.keys(t).length>0&&{limits:t},features:[...p.features]},term:p.term,expiresAt:e,graceUntil:s,...""!==r&&{notes:r}},eq=(0,et.validateMessage)(X.LicenseSchema,(0,Q.buildLicenseProto)(C))}let eY=e=>{let s=eq.find(s=>(0,J.pathToString)(s.field)===e);return s?em[e]??s.message:null},eG=(e,s)=>e||e$?s:null,eK=eq.filter(e=>!((0,J.pathToString)(e.field)in em)),eV=void 0!==C&&0===eq.length,eW=eB?null!==eY("spec.customer.contact_email")||null!==eY("spec.customer.display_name")?"This customer's stored name or address does not pass validation. Issue to them as a new customer with corrected details.":null:"Choose a customer, or enter a new one.",eH=eF?.displayName.trim()?en(W,eF.displayName,ez||eI):null;return(0,s.jsxs)("form",{className:(0,n.cn)("stg:max-w-xl stg:space-y-5",h),onSubmit:e=>{if(e.preventDefault(),!d){if(!eV||!C)return void eE(!0);m(C)}},noValidate:!0,"aria-labelledby":`${z}-title`,children:[(0,s.jsxs)("div",{className:"stg:space-y-2",children:[(0,s.jsx)(c.Button,{variant:"ghost",size:"xs",icon:(0,s.jsx)(A.ArrowLeft,{className:"stg:size-3.5","aria-hidden":"true"}),onClick:u,disabled:d,children:"Licenses"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{id:`${z}-title`,className:"stg:m-0 stg:text-base stg:font-semibold stg:text-foreground",children:a?"Renew license":"Issue license"}),(0,s.jsx)("p",{className:"stg:m-0 stg:mt-1 stg:text-sm stg:text-muted-foreground",children:a?"The renewal is a new license. Once it is issued, the calendar shows the current one as renewed.":"A license is final once issued. To change one, issue a new license; the calendar shows the old one as renewed."})]})]}),(0,s.jsxs)(eh,{title:"Customer",children:[a&&eB?(0,s.jsxs)("p",{className:"stg:m-0 stg:text-sm",children:[(0,s.jsx)("span",{className:"stg:block stg:text-foreground",children:eB.customer.displayName}),(0,s.jsx)("span",{className:"stg:block stg:text-muted-foreground",children:eB.customer.contactEmail})]}):null,e.length>0&&!a&&(0,s.jsxs)("fieldset",{className:(0,n.cn)(ee.UNSTYLED_FIELDSET,"stg:flex stg:flex-wrap stg:gap-4"),children:[(0,s.jsx)("legend",{className:"stg:sr-only",children:"Customer"}),(0,s.jsx)(ex,{name:`${z}-mode`,checked:"existing"===F,onChange:()=>M("existing"),label:"Existing customer",disabled:d}),(0,s.jsx)(ex,{name:`${z}-mode`,checked:"new"===F,onChange:()=>M("new"),label:"New customer",disabled:d})]}),a?(0,s.jsx)(ep,{message:eW}):"existing"===F?(0,s.jsxs)(es.Field,{label:"Licensed customer",required:!0,children:[(0,s.jsxs)("select",{className:es.INPUT_CLASSES,value:D,onChange:e=>O(e.target.value),disabled:d,children:[(0,s.jsx)("option",{value:"",children:"Choose a customer"}),e.map(({customer:e,licenseCount:t})=>(0,s.jsx)("option",{value:e.id,children:`${e.displayName} — ${e.contactEmail} \xb7 ${t} ${1===t?"license":"licenses"}`},e.id))]}),(0,s.jsx)(ep,{message:eG(void 0!==eB,eW)})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(es.Field,{label:"Display name",required:!0,children:[(0,s.jsx)("input",{className:es.INPUT_CLASSES,value:P,onChange:e=>R(e.target.value),placeholder:"As the licensed server shows it, e.g. Acme Corp",disabled:d,autoComplete:"off"}),(0,s.jsx)(ep,{message:eG(""!==P,eY("spec.customer.display_name"))})]}),(0,s.jsxs)(es.Field,{label:"Contact email",required:!0,children:[(0,s.jsx)("input",{className:es.INPUT_CLASSES,type:"email",value:q,onChange:e=>Y(e.target.value),placeholder:"Where renewal and expiry notices go",disabled:d,autoComplete:"off"}),(0,s.jsx)(ep,{message:eG(""!==q,eY("spec.customer.contact_email"))})]}),(0,s.jsx)(es.Field,{label:"Cloud organization",children:(0,s.jsx)("input",{className:es.INPUT_CLASSES,value:G,onChange:e=>K(e.target.value),placeholder:"Its slug, if the customer also holds one",disabled:d,autoComplete:"off",spellCheck:!1})}),eM.length>0&&(0,s.jsxs)("div",{role:"status",className:"stg:space-y-1.5 stg:rounded-md stg:border stg:border-border stg:bg-muted-subtle stg:px-3 stg:py-2",children:[(0,s.jsxs)("p",{className:"stg:text-xs stg:text-foreground",children:[1===eM.length?"A customer with this name or address already holds licenses.":"Customers with this name or address already hold licenses."," ","Pick them instead, so their renewals stay in one history."]}),(0,s.jsx)("div",{className:"stg:flex stg:flex-wrap stg:gap-2",children:eM.map(({customer:e})=>(0,s.jsx)(c.Button,{size:"xs",variant:"outline",onClick:()=>{O(e.id),M("existing")},children:`Use ${e.displayName}`},e.id))})]})]})]}),(0,s.jsxs)(eh,{title:"Term",children:[(0,s.jsxs)("fieldset",{className:(0,n.cn)(ee.UNSTYLED_FIELDSET,"stg:flex stg:flex-wrap stg:gap-4"),children:[(0,s.jsx)("legend",{className:"stg:sr-only",children:"Term"}),[o.LicenseTerm.trial,o.LicenseTerm.paid].map(e=>(0,s.jsx)(ex,{name:`${z}-term`,checked:W===e,onChange:()=>H(e),label:`${f[e]} \xb7 ${eg[e]}`,disabled:d},e))]}),(0,s.jsxs)("div",{className:"stg:grid stg:grid-cols-1 stg:gap-3 stg:sm:grid-cols-2",children:[(0,s.jsxs)(es.Field,{label:"Covered through (UTC)",required:!0,children:[(0,s.jsx)("input",{className:es.INPUT_CLASSES,type:"date",min:eI,value:ez,onChange:e=>ej(e.target.value),disabled:d}),(0,s.jsx)(ep,{message:eG(!0,eR)})]}),(0,s.jsxs)(es.Field,{label:"Grace period (days)",required:!0,children:[(0,s.jsx)("input",{className:es.INPUT_CLASSES,type:"number",inputMode:"numeric",min:0,step:1,value:e_,onChange:e=>eN(e.target.value),disabled:d}),(0,s.jsx)(ep,{message:eG(!0,eD.ok?null:eD.error)})]})]}),(0,s.jsxs)("p",{className:"stg:text-xs stg:text-muted-foreground",children:[null===Z?a?`Continues from the renewed license: ${eg[W]} from ${eA}.`:`${eg[W]} from today.`:"Set by hand."," ","During the grace period the licensed server keeps serving and warns that the license has expired.",null!==Z&&(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)("button",{type:"button",className:"stg:cursor-pointer stg:font-medium stg:text-foreground stg:underline stg:underline-offset-2",onClick:()=>ej(null),disabled:d,children:`Use the ${f[W].toLowerCase()} preset`})]})]})]}),(0,s.jsxs)(eh,{title:"Entitlements",children:[(0,s.jsxs)("div",{className:"stg:grid stg:grid-cols-1 stg:gap-3 stg:sm:grid-cols-2",children:[(0,s.jsxs)(es.Field,{label:"Max users",children:[(0,s.jsx)("input",{className:es.INPUT_CLASSES,type:"number",inputMode:"numeric",min:1,step:1,value:ey,onChange:e=>ew(e.target.value),placeholder:"Unlimited",disabled:d}),(0,s.jsx)(ep,{message:eG(""!==ey,eO.ok?eY("spec.entitlements.limits.max_users"):eO.error)})]}),(0,s.jsxs)(es.Field,{label:"Max organizations",children:[(0,s.jsx)("input",{className:es.INPUT_CLASSES,type:"number",inputMode:"numeric",min:1,step:1,value:ek,onChange:e=>eS(e.target.value),placeholder:"Unlimited",disabled:d}),(0,s.jsx)(ep,{message:eG(""!==ek,eP.ok?eY("spec.entitlements.limits.max_organizations"):eP.error)})]})]}),(0,s.jsxs)("fieldset",{className:(0,n.cn)(ee.UNSTYLED_FIELDSET,"stg:space-y-2"),children:[(0,s.jsx)("legend",{className:"stg:mb-1 stg:text-[11px] stg:font-medium stg:text-muted-foreground",children:"Features"}),j.map(e=>(0,s.jsxs)("label",{className:"stg:flex stg:items-start stg:gap-2 stg:text-sm",children:[(0,s.jsx)("input",{type:"checkbox",className:(0,n.cn)(ed,"stg:mt-0.5"),checked:eC.includes(e),onChange:s=>{let t;return t=s.target.checked,eT(s=>t?j.filter(t=>t===e||s.includes(t)):s.filter(s=>s!==e))},disabled:d}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"stg:block stg:text-foreground",children:b[e].label}),(0,s.jsx)("span",{className:"stg:block stg:text-xs stg:text-muted-foreground",children:b[e].description})]})]},e))]})]}),(0,s.jsxs)(eh,{title:"Notes",children:[(0,s.jsxs)(es.Field,{label:"Internal note",children:[(0,s.jsx)("textarea",{className:(0,n.cn)(es.INPUT_CLASSES,"stg:min-h-16"),value:eL,onChange:e=>eU(e.target.value),placeholder:"The order, the contact, the reason for a bespoke entitlement",disabled:d}),(0,s.jsx)(ep,{message:eG(""!==eL,eY("spec.notes"))})]}),(0,s.jsx)("p",{className:"stg:m-0 stg:text-xs stg:text-muted-foreground",children:"Never signed into the ticket and never shown to the customer."})]}),(0,s.jsx)("section",{"aria-label":"What will be issued",className:"stg:space-y-1 stg:rounded-lg stg:border stg:border-border stg:bg-muted-subtle stg:p-4",children:eH?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"stg:m-0 stg:text-sm stg:font-semibold stg:text-foreground",children:eH}),(0,s.jsx)("p",{className:"stg:m-0 stg:text-sm stg:text-foreground",children:[eO.ok?L(eO.value,"user"):null,eP.ok?L(eP.value,"organization"):null,0===(I=j.filter(e=>eC.includes(e)).map(e=>b[e].label)).length?"No features":I.join(", ")].filter(e=>null!==e).join(" · ")}),eD.ok&&(0,s.jsx)("p",{className:"stg:m-0 stg:text-sm stg:text-muted-foreground",children:0===eD.value?"No grace period: the licensed server stops the day after.":`Then ${eD.value} days of grace, while the licensed server keeps serving and warns.`})]}):(0,s.jsx)("p",{className:"stg:m-0 stg:text-sm stg:text-muted-foreground",children:"Choose the customer to see the license this will issue."})}),e$&&eK.length>0&&(0,s.jsx)("ul",{className:(0,n.cn)(ee.UNSTYLED_LIST,"stg:space-y-1"),role:"alert",children:eK.map(e=>(0,s.jsx)("li",{className:"stg:text-xs stg:text-destructive",children:e.message},`${(0,J.pathToString)(e.field)}:${e.ruleId}`))}),g&&(0,s.jsx)("p",{className:"stg:text-xs stg:text-destructive",role:"alert",children:(N=g)instanceof l.StigmerError&&"already-exists"===N.code?"This license was already issued: same customer, term and last covered day. Open it from the list instead of issuing it twice.":(0,i.getUserMessage)(N)}),(0,s.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,s.jsx)(c.Button,{type:"submit",disabled:d,children:d?"Issuing…":a?"Issue renewal":"Issue license"}),(0,s.jsx)(c.Button,{variant:"outline",onClick:u,disabled:d,children:"Cancel"})]})]})}function eh({title:e,children:t}){return(0,s.jsxs)("section",{className:"stg:space-y-3 stg:rounded-lg stg:border stg:border-border stg:bg-card stg:p-4","aria-label":e,children:[(0,s.jsx)("h4",{className:"stg:m-0 stg:text-sm stg:font-semibold stg:text-foreground",children:e}),t]})}function ex({name:e,checked:t,onChange:a,label:r,disabled:n}){return(0,s.jsxs)("label",{className:"stg:flex stg:items-center stg:gap-1.5 stg:text-sm stg:text-foreground",children:[(0,s.jsx)("input",{type:"radio",className:ed,name:e,checked:t,onChange:a,disabled:n}),r]})}function ep({message:e}){return e?(0,s.jsx)("span",{className:"stg:block stg:text-xs stg:text-destructive",children:e}):null}function ef(e){return e in b}function eb(e){return void 0===e?"":String(e)}function ej({className:e}){return(0,s.jsx)(m.EmptyState,{variant:"permission",className:e,title:"Platform operator access required",description:"Licenses are issued by Stigmer's platform operators and carry customer contracts and signed keys. Organization roles do not grant access; if you need it, ask a platform operator to grant you the platform operator role."})}var ev=e.i(326283),eN=e.i(891287),ey=e.i(740694);let ew="stg:size-3.5",ek="stg:grid stg:grid-cols-[minmax(0,2fr)_4rem_minmax(0,1.4fr)_9rem_6rem] stg:items-center stg:gap-3 stg:px-3 stg:py-2";function eS({className:e,now:h}){let x,p=(0,g.useResourceAvailable)(d.ApiResourceKind.license),f=function(e){let s=(0,G.useStigmer)(),a=e?.enabled??!0,{data:r,isLoading:n,isRefetching:i,error:l,refetch:o}=(0,K.useFetch)(a?()=>s.license.list((0,eN.create)(ey.ListLicensesInputSchema)).then(e=>e.entries):null,[a,s],null);return(0,t.useMemo)(()=>({licenses:r,isLoading:n,isRefetching:i,error:l,refetch:o}),[r,n,i,l,o])}({enabled:p}),b=function(){let e=(0,G.useStigmer)(),[s,a]=(0,t.useState)(!1),[r,n]=(0,t.useState)(null),i=(0,t.useCallback)(async s=>{a(!0),n(null);try{return await e.license.create(s)}catch(s){let e=(0,ev.toError)(s);throw n(e),e}finally{a(!1)}},[e.license]),l=(0,t.useCallback)(()=>n(null),[]);return(0,t.useMemo)(()=>({issue:i,isSubmitting:s,error:r,clearError:l}),[i,s,r,l])}(),[j,v]=(0,t.useState)({phase:"list"}),N=h??new Date,w=(0,t.useCallback)(()=>v({phase:"list"}),[]),S=(0,t.useCallback)(e=>{b.clearError(),v({phase:"issue",renewingId:e})},[b.clearError]);if(!p||f.error&&(0,l.isUnimplemented)(f.error))return(0,s.jsxs)("div",{className:(0,n.cn)("stg:space-y-3",e),children:[(0,s.jsx)(eC,{}),(0,s.jsx)(u.CloudFeatureNotice,{children:"Licenses are issued from the Stigmer Cloud console. The server this console is connected to does not issue them; sign in to Stigmer Cloud to issue or renew a license."})]});if(f.isLoading)return(0,s.jsxs)("div",{className:(0,n.cn)("stg:space-y-2",e),"aria-busy":"true",children:[(0,s.jsx)("div",{className:"stg:h-4 stg:w-40 stg:animate-pulse stg:rounded stg:bg-muted-subtle"}),Array.from({length:3},(e,t)=>(0,s.jsx)("div",{className:"stg:h-10 stg:animate-pulse stg:rounded-lg stg:bg-muted-subtle"},t))]});if(f.error)return(0,l.isPermissionDenied)(f.error)?(0,s.jsxs)("div",{className:(0,n.cn)("stg:space-y-3",e),children:[(0,s.jsx)(eC,{}),(0,s.jsx)(ej,{})]}):(0,s.jsxs)("div",{className:(0,n.cn)("stg:space-y-3",e),children:[(0,s.jsx)(eC,{}),(0,s.jsx)("p",{className:"stg:text-sm stg:text-destructive",role:"alert",children:(0,i.getUserMessage)(f.error)}),(0,s.jsx)(c.Button,{variant:"outline",onClick:f.refetch,children:"Try again"})]});let C="detail"===j.phase?j.issued:void 0,T=C&&!(f.licenses??[]).some(e=>e.metadata?.id===C.metadata?.id)?[...f.licenses??[],C]:f.licenses??[],L=function(e,s){let t=new Map;for(let s of e){let e=s.spec?.customer?.id;if(!e)continue;let a=t.get(e);(!a||I(s)>I(a))&&t.set(e,s)}let a=new Map;for(let r of e){let e=r.metadata?.id??"",n=t.get(r.spec?.customer?.id??""),i=n&&n!==r&&I(n)>I(r)?n:void 0;a.set(e,function(e,s,t){let a=y(e.spec?.expiresAt),r=a?k(a):"an unknown day";if(t){let e=y(t.spec?.expiresAt);return{timeState:s,renewedBy:t.metadata?.id,phase:"disabled",label:"Renewed",reason:e?`Renewed by a license covering through ${k(e)}`:"Renewed by a later license"}}switch(s){case o.LicenseState.valid:return{timeState:s,renewedBy:void 0,phase:"ready",label:"Active",reason:`Covered through ${r}`};case o.LicenseState.expiring:return{timeState:s,renewedBy:void 0,phase:"degraded",label:"Expiring",reason:`Covered through ${r}; renew before it lapses`};case o.LicenseState.grace:{let t=y(e.spec?.graceUntil);return{timeState:s,renewedBy:void 0,phase:"failed",label:"In grace",reason:t?`Coverage ended after ${r}; grace runs through ${k(t)}`:`Coverage ended after ${r}`}}case o.LicenseState.expired:return{timeState:s,renewedBy:void 0,phase:"disabled",label:"Expired",reason:`Coverage ended after ${r}`};default:return s}}(r,function(e,s){let t=y(e.spec?.expiresAt);if(!t)return o.LicenseState.expired;let a=y(e.spec?.graceUntil)??t,r=s.getTime();return r>=t.getTime()?r<a.getTime()?o.LicenseState.grace:o.LicenseState.expired:r>=t.getTime()-function(e,s){let t=y(e.status?.issuedAt);return t?Math.min(2592e6,.25*Math.max(0,s.getTime()-t.getTime())):2592e6}(e,t)?o.LicenseState.expiring:o.LicenseState.valid}(r,s),i))}return a}(T,N),U=e=>void 0===e?void 0:T.find(s=>s.metadata?.id===e);if("issue"===j.phase)return(0,s.jsx)(eu,{className:e,customers:function(e){let s=new Map;for(let t of e){let e=t.spec?.customer?.id;if(!e)continue;let a=s.get(e);if(!a){s.set(e,{latest:t,count:1});continue}a.count+=1,E(t)>E(a.latest)&&(a.latest=t)}let t=[];for(let{latest:e,count:a}of s.values()){let s=e.spec?.customer;s&&t.push({customer:s,licenseCount:a})}return t.sort((e,s)=>e.customer.displayName.localeCompare(s.customer.displayName))}(T),renewing:U(j.renewingId),now:N,isSubmitting:b.isSubmitting,submitError:b.error,onSubmit:e=>{b.issue(e).then(e=>{f.refetch(),v({phase:"detail",licenseId:e.metadata?.id??"",issued:e})},()=>{})},onCancel:w});if("detail"===j.phase){let t=U(j.licenseId);if(!t)return(0,s.jsxs)("div",{className:(0,n.cn)("stg:space-y-2",e),children:[(0,s.jsx)("p",{className:"stg:text-xs stg:text-destructive",role:"alert",children:"This license is no longer in the list."}),(0,s.jsx)(c.Button,{variant:"outline",onClick:w,children:"Back to licenses"})]});let a=L.get(j.licenseId);return(0,s.jsx)(W,{className:e,license:t,issued:j.issued,standing:a,now:N,onBack:w,onRenew:a&&!a.renewedBy?()=>S(j.licenseId):void 0},j.licenseId)}let $=(x=e=>{let s=L.get(e.metadata?.id??"");if(!s||s.renewedBy)return 4;switch(s.timeState){case o.LicenseState.grace:return 0;case o.LicenseState.expiring:return 1;case o.LicenseState.valid:return 2;case o.LicenseState.expired:return 3;default:return s.timeState}},[...T].sort((e,s)=>{let t=x(e)-x(s);if(0!==t)return t;let a=I(e)-I(s);return x(e)>=3?-a:a})),A=function(e){let s=0,t=0,a=0;for(let r of e.values())r.renewedBy||(r.timeState===o.LicenseState.valid?s+=1:r.timeState===o.LicenseState.expiring?t+=1:r.timeState===o.LicenseState.grace&&(a+=1));return{active:s,expiring:t,grace:a}}(L);return(0,s.jsxs)("div",{className:(0,n.cn)("stg:space-y-3",e),children:[(0,s.jsx)(eC,{summary:T.length>0?`${A.active} active \xb7 ${A.expiring} expiring \xb7 ${A.grace} in grace`:void 0,action:T.length>0?(0,s.jsx)(c.Button,{icon:(0,s.jsx)(r.Plus,{className:ew,"aria-hidden":"true"}),onClick:()=>S(),children:"Issue license"}):void 0}),0===T.length?(0,s.jsx)(m.EmptyState,{variant:"first-use",icon:(0,s.jsx)(a.FileBadge,{className:"stg:size-10","aria-hidden":"true"}),title:"No licenses issued yet",description:"Issue the first one: name the customer, choose the term and set what it unlocks. Every license appears here, ordered by when it needs renewing.",action:{label:"Issue license",onClick:()=>S(),icon:(0,s.jsx)(r.Plus,{className:ew,"aria-hidden":"true"})}}):(0,s.jsx)("div",{className:"stg:overflow-x-auto stg:rounded-lg stg:border stg:border-border stg:bg-card",children:(0,s.jsxs)("div",{role:"table","aria-label":"Licenses",className:"stg:min-w-[42rem]",children:[(0,s.jsxs)("div",{role:"row",className:(0,n.cn)(ek,"stg:border-b stg:border-border stg:text-xs stg:font-medium stg:text-muted-foreground"),children:[(0,s.jsx)("span",{role:"columnheader",children:"Customer"}),(0,s.jsx)("span",{role:"columnheader",children:"Term"}),(0,s.jsx)("span",{role:"columnheader",children:"Entitlements"}),(0,s.jsx)("span",{role:"columnheader",children:"Covered through"}),(0,s.jsx)("span",{role:"columnheader",children:"Standing"})]}),(0,s.jsx)("div",{role:"rowgroup",children:$.map(e=>(0,s.jsx)(eT,{license:e,standing:L.get(e.metadata?.id??""),now:N,onOpen:()=>v({phase:"detail",licenseId:e.metadata?.id??""})},e.metadata?.id))})]})})]})}function eC({summary:e,action:t}){return(0,s.jsxs)("div",{className:"stg:flex stg:flex-wrap stg:items-center stg:justify-between stg:gap-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"stg:m-0 stg:text-base stg:font-semibold stg:text-foreground",children:"Licenses"}),e&&(0,s.jsx)("p",{className:"stg:m-0 stg:text-sm stg:text-muted-foreground",children:e})]}),t]})}function eT({license:e,standing:t,now:a,onOpen:r}){var i;let l,c,d=e.spec?.customer,g=y(e.spec?.expiresAt),m=g?k(g):void 0,u=y(e.spec?.graceUntil),x=t?.phase==="disabled",p=t?.timeState===o.LicenseState.grace&&!t.renewedBy&&u;return(0,s.jsxs)("div",{role:"row",className:(0,n.cn)(ek,"stg:relative stg:border-b stg:border-border stg:text-xs stg:text-muted-foreground stg:last:border-b-0","stg:transition-colors stg:hover:bg-accent stg:motion-reduce:transition-none"),children:[(0,s.jsxs)("span",{role:"cell",className:"stg:min-w-0",children:[(0,s.jsx)("button",{type:"button",onClick:r,className:(0,n.cn)("stg:block stg:max-w-full stg:cursor-pointer stg:truncate stg:text-left stg:text-sm stg:font-medium",x?"stg:text-muted-foreground":"stg:text-foreground","stg:after:absolute stg:after:inset-0","stg:focus-visible:outline-none stg:focus-visible:after:ring-1 stg:focus-visible:after:ring-ring"),children:d?.displayName??"Unknown customer"}),(0,s.jsx)("span",{className:"stg:block stg:truncate",children:d?.contactEmail})]}),(0,s.jsx)("span",{role:"cell",children:e.spec?N(e.spec.term):"—"}),(0,s.jsx)("span",{role:"cell",className:"stg:min-w-0",children:(i=e.spec?.entitlements,l=i?.limits,c=i?.features.length??0,[L(l?.maxUsers,"user"),L(l?.maxOrganizations,"organization"),0===c?"No features":U(c,"feature")]).map(e=>(0,s.jsx)("span",{className:"stg:block stg:truncate",children:e},e))}),(0,s.jsxs)("span",{role:"cell",className:"stg:min-w-0",children:[(0,s.jsx)("span",{className:(0,n.cn)("stg:block stg:text-sm",x?"stg:text-muted-foreground":"stg:text-foreground"),children:m??"Unknown"}),p?(0,s.jsx)("span",{className:"stg:block stg:font-medium stg:text-destructive",children:`Grace ends ${k(p)}`}):m&&(0,s.jsx)("span",{className:"stg:block",children:T(m,a)})]}),(0,s.jsx)("span",{role:"cell",className:"stg:relative stg:z-10 stg:justify-self-start",children:t&&(0,s.jsx)(h.StatusBadge,{phase:t.phase,label:t.label,tooltip:t.reason})})]})}e.s(["default",0,function(){return(0,s.jsx)(eS,{})}],261716)}]);