@burdenoff/microfe-subscriberbot 2026.1103.2 → 2026.1105.2

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 (206) hide show
  1. package/dist/index.js +3 -3
  2. package/dist/stories/Accessibility.stories.d.ts +13 -0
  3. package/dist/stories/Accessibility.stories.d.ts.map +1 -0
  4. package/dist/stories/pages/AgentNewPage.stories.d.ts.map +1 -1
  5. package/dist/stories/pages/BankConnectionsPage.stories.d.ts +1 -0
  6. package/dist/stories/pages/BankConnectionsPage.stories.d.ts.map +1 -1
  7. package/dist/stories/pages/DashboardPage.stories.d.ts.map +1 -1
  8. package/dist/stories/pages/EnterpriseSpendPage.stories.d.ts.map +1 -1
  9. package/dist/stories/pages/InboxPage.stories.d.ts.map +1 -1
  10. package/dist/subscriberbot/admin/AdminDashboardPage.d.ts.map +1 -1
  11. package/dist/subscriberbot/admin/AdminDashboardPage.js +168 -168
  12. package/dist/subscriberbot/admin/AdminDashboardPage.js.map +1 -1
  13. package/dist/subscriberbot/admin/NegotiationDeskPanel.d.ts.map +1 -1
  14. package/dist/subscriberbot/admin/NegotiationDeskPanel.js +116 -116
  15. package/dist/subscriberbot/admin/NegotiationDeskPanel.js.map +1 -1
  16. package/dist/subscriberbot/admin/ProcurementDeskPanel.d.ts.map +1 -1
  17. package/dist/subscriberbot/admin/ProcurementDeskPanel.js +211 -211
  18. package/dist/subscriberbot/admin/ProcurementDeskPanel.js.map +1 -1
  19. package/dist/subscriberbot/components/Modal.d.ts.map +1 -1
  20. package/dist/subscriberbot/components/Modal.js +43 -33
  21. package/dist/subscriberbot/components/Modal.js.map +1 -1
  22. package/dist/subscriberbot/components/PageLayout.d.ts +6 -0
  23. package/dist/subscriberbot/components/PageLayout.d.ts.map +1 -1
  24. package/dist/subscriberbot/components/PageLayout.js +2 -1
  25. package/dist/subscriberbot/components/PageLayout.js.map +1 -1
  26. package/dist/subscriberbot/components/PostureOptions.d.ts.map +1 -1
  27. package/dist/subscriberbot/components/PostureOptions.js +10 -10
  28. package/dist/subscriberbot/components/PostureOptions.js.map +1 -1
  29. package/dist/subscriberbot/components/StateViews.d.ts +2 -0
  30. package/dist/subscriberbot/components/StateViews.d.ts.map +1 -1
  31. package/dist/subscriberbot/components/StateViews.js +46 -37
  32. package/dist/subscriberbot/components/StateViews.js.map +1 -1
  33. package/dist/subscriberbot/components/StatusBadge.d.ts.map +1 -1
  34. package/dist/subscriberbot/components/StatusBadge.js +6 -6
  35. package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
  36. package/dist/subscriberbot/components/decisions/DecisionBanners.js +6 -6
  37. package/dist/subscriberbot/components/decisions/DecisionCard.d.ts.map +1 -1
  38. package/dist/subscriberbot/components/decisions/DecisionCard.js +149 -147
  39. package/dist/subscriberbot/components/decisions/DecisionCard.js.map +1 -1
  40. package/dist/subscriberbot/components/mobile/MobileDashboard.d.ts.map +1 -1
  41. package/dist/subscriberbot/components/mobile/MobileDashboard.js +143 -135
  42. package/dist/subscriberbot/components/mobile/MobileDashboard.js.map +1 -1
  43. package/dist/subscriberbot/components/mobile/MobileRelationshipList.d.ts.map +1 -1
  44. package/dist/subscriberbot/components/mobile/MobileRelationshipList.js +114 -114
  45. package/dist/subscriberbot/components/mobile/MobileRelationshipList.js.map +1 -1
  46. package/dist/subscriberbot/components/mobile/MobileScreen.d.ts +3 -0
  47. package/dist/subscriberbot/components/mobile/MobileScreen.d.ts.map +1 -1
  48. package/dist/subscriberbot/components/mobile/MobileScreen.js +5 -3
  49. package/dist/subscriberbot/components/mobile/MobileScreen.js.map +1 -1
  50. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js +4 -4
  51. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.d.ts.map +1 -1
  52. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js +11 -11
  53. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js.map +1 -1
  54. package/dist/subscriberbot/components/negotiations/OutcomeForm.d.ts.map +1 -1
  55. package/dist/subscriberbot/components/negotiations/OutcomeForm.js +29 -29
  56. package/dist/subscriberbot/components/negotiations/OutcomeForm.js.map +1 -1
  57. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.d.ts.map +1 -1
  58. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js +43 -43
  59. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js.map +1 -1
  60. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js +4 -4
  61. package/dist/subscriberbot/components/procurement/ProcurementThread.d.ts.map +1 -1
  62. package/dist/subscriberbot/components/procurement/ProcurementThread.js +14 -14
  63. package/dist/subscriberbot/components/procurement/ProcurementThread.js.map +1 -1
  64. package/dist/subscriberbot/components/savings/SavingsCards.d.ts.map +1 -1
  65. package/dist/subscriberbot/components/savings/SavingsCards.js +242 -237
  66. package/dist/subscriberbot/components/savings/SavingsCards.js.map +1 -1
  67. package/dist/subscriberbot/components/viz.d.ts +1 -0
  68. package/dist/subscriberbot/components/viz.d.ts.map +1 -1
  69. package/dist/subscriberbot/components/viz.js +100 -101
  70. package/dist/subscriberbot/components/viz.js.map +1 -1
  71. package/dist/subscriberbot/hooks/index.js +1 -1
  72. package/dist/subscriberbot/hooks/useFormError.d.ts +7 -0
  73. package/dist/subscriberbot/hooks/useFormError.d.ts.map +1 -0
  74. package/dist/subscriberbot/hooks/useFormError.js +28 -0
  75. package/dist/subscriberbot/hooks/useFormError.js.map +1 -0
  76. package/dist/subscriberbot/hooks/useFormatters.d.ts +11 -0
  77. package/dist/subscriberbot/hooks/useFormatters.d.ts.map +1 -0
  78. package/dist/subscriberbot/hooks/useFormatters.js +13 -0
  79. package/dist/subscriberbot/hooks/useFormatters.js.map +1 -0
  80. package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts.map +1 -1
  81. package/dist/subscriberbot/hooks/useSubscriberBotApi.js +371 -370
  82. package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
  83. package/dist/subscriberbot/hooks/useTr.d.ts.map +1 -1
  84. package/dist/subscriberbot/hooks/useTr.js +1 -1
  85. package/dist/subscriberbot/hooks/useTr.js.map +1 -1
  86. package/dist/subscriberbot/index.js +1 -1
  87. package/dist/subscriberbot/pages/AssetVaultPage.d.ts.map +1 -1
  88. package/dist/subscriberbot/pages/AssetVaultPage.js +124 -124
  89. package/dist/subscriberbot/pages/AssetVaultPage.js.map +1 -1
  90. package/dist/subscriberbot/pages/DashboardPage.d.ts +0 -10
  91. package/dist/subscriberbot/pages/DashboardPage.d.ts.map +1 -1
  92. package/dist/subscriberbot/pages/DashboardPage.js +115 -98
  93. package/dist/subscriberbot/pages/DashboardPage.js.map +1 -1
  94. package/dist/subscriberbot/pages/InboxPage.d.ts +0 -10
  95. package/dist/subscriberbot/pages/InboxPage.d.ts.map +1 -1
  96. package/dist/subscriberbot/pages/InboxPage.js +421 -402
  97. package/dist/subscriberbot/pages/InboxPage.js.map +1 -1
  98. package/dist/subscriberbot/pages/InsightsPage.d.ts.map +1 -1
  99. package/dist/subscriberbot/pages/InsightsPage.js +130 -121
  100. package/dist/subscriberbot/pages/InsightsPage.js.map +1 -1
  101. package/dist/subscriberbot/pages/InvoicesPage.d.ts +0 -12
  102. package/dist/subscriberbot/pages/InvoicesPage.d.ts.map +1 -1
  103. package/dist/subscriberbot/pages/InvoicesPage.js +237 -215
  104. package/dist/subscriberbot/pages/InvoicesPage.js.map +1 -1
  105. package/dist/subscriberbot/pages/RenewalsPage.d.ts.map +1 -1
  106. package/dist/subscriberbot/pages/RenewalsPage.js +303 -295
  107. package/dist/subscriberbot/pages/RenewalsPage.js.map +1 -1
  108. package/dist/subscriberbot/pages/SavingsPage.d.ts.map +1 -1
  109. package/dist/subscriberbot/pages/SavingsPage.js +57 -57
  110. package/dist/subscriberbot/pages/SavingsPage.js.map +1 -1
  111. package/dist/subscriberbot/pages/WorkflowsPage.d.ts +0 -13
  112. package/dist/subscriberbot/pages/WorkflowsPage.d.ts.map +1 -1
  113. package/dist/subscriberbot/pages/WorkflowsPage.js +202 -196
  114. package/dist/subscriberbot/pages/WorkflowsPage.js.map +1 -1
  115. package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts +0 -18
  116. package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts.map +1 -1
  117. package/dist/subscriberbot/pages/agents/AgentDetailPage.js +283 -275
  118. package/dist/subscriberbot/pages/agents/AgentDetailPage.js.map +1 -1
  119. package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts +0 -6
  120. package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts.map +1 -1
  121. package/dist/subscriberbot/pages/agents/AgentNewPage.js +85 -77
  122. package/dist/subscriberbot/pages/agents/AgentNewPage.js.map +1 -1
  123. package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts +0 -9
  124. package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts.map +1 -1
  125. package/dist/subscriberbot/pages/agents/AgentsListPage.js +136 -136
  126. package/dist/subscriberbot/pages/agents/AgentsListPage.js.map +1 -1
  127. package/dist/subscriberbot/pages/banking/BankConnectionsPage.d.ts +0 -9
  128. package/dist/subscriberbot/pages/banking/BankConnectionsPage.d.ts.map +1 -1
  129. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js +272 -260
  130. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js.map +1 -1
  131. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.d.ts +0 -10
  132. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.d.ts.map +1 -1
  133. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js +96 -96
  134. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js.map +1 -1
  135. package/dist/subscriberbot/pages/decisions/DecisionsPage.d.ts +0 -11
  136. package/dist/subscriberbot/pages/decisions/DecisionsPage.d.ts.map +1 -1
  137. package/dist/subscriberbot/pages/decisions/DecisionsPage.js +46 -46
  138. package/dist/subscriberbot/pages/decisions/DecisionsPage.js.map +1 -1
  139. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts +0 -11
  140. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts.map +1 -1
  141. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js +181 -171
  142. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js.map +1 -1
  143. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts +0 -9
  144. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts.map +1 -1
  145. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js +164 -164
  146. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js.map +1 -1
  147. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts +0 -9
  148. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts.map +1 -1
  149. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js +197 -181
  150. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js.map +1 -1
  151. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts +0 -8
  152. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts.map +1 -1
  153. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js +79 -79
  154. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js.map +1 -1
  155. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts +0 -9
  156. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts.map +1 -1
  157. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js +147 -147
  158. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js.map +1 -1
  159. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts +0 -10
  160. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts.map +1 -1
  161. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js +204 -188
  162. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js.map +1 -1
  163. package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts +0 -9
  164. package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts.map +1 -1
  165. package/dist/subscriberbot/pages/procurement/ProcurementPage.js +80 -80
  166. package/dist/subscriberbot/pages/procurement/ProcurementPage.js.map +1 -1
  167. package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts +0 -10
  168. package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts.map +1 -1
  169. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js +484 -458
  170. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js.map +1 -1
  171. package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts +0 -8
  172. package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts.map +1 -1
  173. package/dist/subscriberbot/pages/providers/ProviderNewPage.js +146 -136
  174. package/dist/subscriberbot/pages/providers/ProviderNewPage.js.map +1 -1
  175. package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts +0 -10
  176. package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts.map +1 -1
  177. package/dist/subscriberbot/pages/providers/ProvidersListPage.js +88 -87
  178. package/dist/subscriberbot/pages/providers/ProvidersListPage.js.map +1 -1
  179. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts +0 -11
  180. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts.map +1 -1
  181. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +520 -490
  182. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
  183. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts +0 -8
  184. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts.map +1 -1
  185. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js +112 -91
  186. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -1
  187. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts +0 -8
  188. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts.map +1 -1
  189. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js +97 -96
  190. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js.map +1 -1
  191. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.d.ts.map +1 -1
  192. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js +76 -74
  193. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js.map +1 -1
  194. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts +5 -3
  195. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts.map +1 -1
  196. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js +26 -25
  197. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js.map +1 -1
  198. package/dist/subscriberbot/utils/formatters.d.ts +16 -5
  199. package/dist/subscriberbot/utils/formatters.d.ts.map +1 -1
  200. package/dist/subscriberbot/utils/formatters.js +57 -25
  201. package/dist/subscriberbot/utils/formatters.js.map +1 -1
  202. package/dist/subscriberbot/utils/plaidLink.d.ts +2 -1
  203. package/dist/subscriberbot/utils/plaidLink.d.ts.map +1 -1
  204. package/dist/subscriberbot/utils/plaidLink.js +21 -21
  205. package/dist/subscriberbot/utils/plaidLink.js.map +1 -1
  206. package/package.json +1 -1
@@ -1,21 +1,22 @@
1
1
  import { useSubscriberBot as e } from "../context/SubscriberBotContext.js";
2
- import { PageLayout as t } from "../components/PageLayout.js";
3
- import { MetricsCard as n } from "../components/MetricsCard.js";
4
- import { formatRelativeTime as r } from "../utils/formatters.js";
5
- import { StatusBadge as i } from "../components/StatusBadge.js";
6
- import { EmptyState as a } from "../components/EmptyState.js";
7
- import { Modal as o } from "../components/Modal.js";
8
- import { useTr as s } from "../hooks/useTr.js";
2
+ import { useTr as t } from "../hooks/useTr.js";
3
+ import { useFormatters as n } from "../hooks/useFormatters.js";
4
+ import { PageLayout as r } from "../components/PageLayout.js";
5
+ import { MetricsCard as i } from "../components/MetricsCard.js";
6
+ import { StatusBadge as a } from "../components/StatusBadge.js";
7
+ import { EmptyState as o } from "../components/EmptyState.js";
8
+ import { Modal as s } from "../components/Modal.js";
9
9
  import { ErrorView as c, LoadingView as l } from "../components/StateViews.js";
10
10
  import "../components/index.js";
11
11
  import { useActivateWorkflow as u, useCreateWorkflow as d, useWorkflows as f } from "../hooks/useSubscriberBotApi.js";
12
12
  import { useRouteSelection as p } from "../hooks/useRouteSelection.js";
13
+ import { useFormError as ee } from "../hooks/useFormError.js";
13
14
  import { useState as m } from "react";
14
15
  import { ArrowRight as h, CheckCircle2 as g, Clock as _, PencilRuler as v, Play as y, Plus as b, Sparkles as x, Workflow as S, X as C, Zap as w } from "lucide-react";
15
- import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
16
- import { GlassCard as O, PagePurpose as ee } from "@burdenoff/fe-libs/ui";
16
+ import { Fragment as te, jsx as T, jsxs as E } from "react/jsx-runtime";
17
+ import { GlassCard as D, PagePurpose as O } from "@burdenoff/fe-libs/ui";
17
18
  //#region src/subscriberbot/pages/WorkflowsPage.tsx
18
- var k = [
19
+ var ne = [
19
20
  {
20
21
  value: "",
21
22
  labelKey: "workflows.filters.allStatuses",
@@ -41,30 +42,30 @@ var k = [
41
42
  labelKey: "workflows.filters.archived",
42
43
  fallback: "Archived"
43
44
  }
44
- ], A = "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", j = "mb-1 block text-xs font-medium text-text-secondary";
45
- function M({ icon: e, kicker: t, title: n, sub: r, accent: i }) {
46
- return /* @__PURE__ */ D("div", {
45
+ ], k = "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", A = "mb-1 block text-xs font-medium text-text-secondary";
46
+ function j({ icon: e, kicker: t, title: n, sub: r, accent: i }) {
47
+ return /* @__PURE__ */ E("div", {
47
48
  className: "w-48 shrink-0 overflow-hidden rounded-xl border border-border-subtle bg-bg-surface shadow-sm",
48
- children: [/* @__PURE__ */ E("div", {
49
+ children: [/* @__PURE__ */ T("div", {
49
50
  className: `h-1 w-full ${i === "done" ? "bg-status-success-text" : i === "run" ? "bg-status-warning-text" : "bg-[var(--color-accent-indigo)]"}`,
50
51
  "aria-hidden": !0
51
- }), /* @__PURE__ */ D("div", {
52
+ }), /* @__PURE__ */ E("div", {
52
53
  className: "p-3",
53
54
  children: [
54
- /* @__PURE__ */ E("span", {
55
+ /* @__PURE__ */ T("span", {
55
56
  className: "flex size-8 items-center justify-center rounded-lg bg-[var(--color-accent-soft)] text-text-primary",
56
57
  children: e
57
58
  }),
58
- /* @__PURE__ */ E("p", {
59
+ /* @__PURE__ */ T("p", {
59
60
  className: "mt-2 text-[10px] font-medium uppercase tracking-wide text-text-secondary",
60
61
  children: t
61
62
  }),
62
- /* @__PURE__ */ E("p", {
63
+ /* @__PURE__ */ T("p", {
63
64
  className: "truncate text-sm font-semibold text-text-primary",
64
65
  title: n,
65
66
  children: n
66
67
  }),
67
- r && /* @__PURE__ */ E("p", {
68
+ r && /* @__PURE__ */ T("p", {
68
69
  className: "mt-0.5 truncate text-xs text-text-secondary",
69
70
  children: r
70
71
  })
@@ -72,261 +73,260 @@ function M({ icon: e, kicker: t, title: n, sub: r, accent: i }) {
72
73
  })]
73
74
  });
74
75
  }
75
- function N({ workflow: e, onClose: t, onActivate: n, onOpenBuilder: a, activating: o }) {
76
- let c = s(), l = /* @__PURE__ */ D("div", {
76
+ function M({ workflow: e, onClose: r, onActivate: i, onOpenBuilder: o, activating: s }) {
77
+ let { formatRelativeTime: c } = n(), l = t(), u = /* @__PURE__ */ E("div", {
77
78
  className: "flex shrink-0 items-center px-1 text-text-secondary",
78
79
  "aria-hidden": !0,
79
- children: [/* @__PURE__ */ E("span", { className: "h-px w-4 bg-border-seam sm:w-6" }), /* @__PURE__ */ E(h, { className: "h-4 w-4" })]
80
- }), u = e.status.charAt(0) + e.status.slice(1).toLowerCase();
81
- return /* @__PURE__ */ D(O, {
80
+ children: [/* @__PURE__ */ T("span", { className: "h-px w-4 bg-border-seam sm:w-6" }), /* @__PURE__ */ T(h, { className: "rtl:rotate-180 h-4 w-4" })]
81
+ }), d = e.status.charAt(0) + e.status.slice(1).toLowerCase();
82
+ return /* @__PURE__ */ E(D, {
82
83
  treatment: "glass",
83
84
  glow: !0,
84
85
  className: "mt-6 p-5",
85
86
  children: [
86
- /* @__PURE__ */ D("div", {
87
+ /* @__PURE__ */ E("div", {
87
88
  className: "flex flex-wrap items-start justify-between gap-3",
88
- children: [/* @__PURE__ */ D("div", {
89
+ children: [/* @__PURE__ */ E("div", {
89
90
  className: "min-w-0",
90
- children: [/* @__PURE__ */ D("div", {
91
+ children: [/* @__PURE__ */ E("div", {
91
92
  className: "flex flex-wrap items-center gap-2",
92
- children: [/* @__PURE__ */ E("p", {
93
+ children: [/* @__PURE__ */ T("p", {
93
94
  className: "text-base font-semibold text-text-primary",
94
95
  children: e.name
95
- }), /* @__PURE__ */ E(i, { status: e.status })]
96
- }), /* @__PURE__ */ D("p", {
96
+ }), /* @__PURE__ */ T(a, { status: e.status })]
97
+ }), /* @__PURE__ */ E("p", {
97
98
  className: "mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-text-secondary",
98
- children: [/* @__PURE__ */ E("span", {
99
+ children: [/* @__PURE__ */ T("span", {
99
100
  className: "tabular-nums",
100
- children: c("workflows.flow.ran", "Ran {{count}}×", { count: e.runCount })
101
- }), e.lastRunAt && /* @__PURE__ */ D("span", {
101
+ children: l("workflows.flow.ran", "Ran {{count}}×", { count: e.runCount })
102
+ }), e.lastRunAt && /* @__PURE__ */ E("span", {
102
103
  className: "inline-flex items-center gap-1",
103
104
  children: [
104
- /* @__PURE__ */ E(_, {
105
+ /* @__PURE__ */ T(_, {
105
106
  className: "h-3 w-3",
106
107
  "aria-hidden": !0
107
108
  }),
108
109
  " ",
109
- c("workflows.flow.lastRun", "last {{when}}", { when: r(e.lastRunAt) })
110
+ l("workflows.flow.lastRun", "last {{when}}", { when: c(e.lastRunAt) })
110
111
  ]
111
112
  })]
112
113
  })]
113
- }), /* @__PURE__ */ E("button", {
114
+ }), /* @__PURE__ */ T("button", {
114
115
  type: "button",
115
- onClick: t,
116
- "aria-label": c("workflows.flow.closeAriaLabel", "Close flow"),
116
+ onClick: r,
117
+ "aria-label": l("workflows.flow.closeAriaLabel", "Close flow"),
117
118
  className: "rounded-lg border border-border-subtle p-1.5 text-text-secondary hover:bg-bg-sunken hover:text-text-primary",
118
- children: /* @__PURE__ */ E(C, { className: "h-4 w-4" })
119
+ children: /* @__PURE__ */ T(C, { className: "h-4 w-4" })
119
120
  })]
120
121
  }),
121
- e.description && /* @__PURE__ */ E("p", {
122
+ e.description && /* @__PURE__ */ T("p", {
122
123
  className: "mt-2 max-w-3xl text-sm text-text-secondary",
123
124
  children: e.description
124
125
  }),
125
- /* @__PURE__ */ E("div", {
126
+ /* @__PURE__ */ T("div", {
126
127
  className: "mt-4 overflow-x-auto pb-2",
127
- children: /* @__PURE__ */ D("div", {
128
+ children: /* @__PURE__ */ E("div", {
128
129
  className: "flex min-w-max items-stretch",
129
130
  children: [
130
- /* @__PURE__ */ E(M, {
131
+ /* @__PURE__ */ T(j, {
131
132
  accent: "trigger",
132
- kicker: c("workflows.flow.trigger", "When"),
133
- icon: /* @__PURE__ */ E(w, { className: "h-4 w-4" }),
133
+ kicker: l("workflows.flow.trigger", "When"),
134
+ icon: /* @__PURE__ */ T(w, { className: "h-4 w-4" }),
134
135
  title: e.triggerEvent,
135
- sub: c("workflows.flow.triggerEvent", "Trigger event")
136
+ sub: l("workflows.flow.triggerEvent", "Trigger event")
136
137
  }),
137
- l,
138
- /* @__PURE__ */ E(M, {
138
+ u,
139
+ /* @__PURE__ */ T(j, {
139
140
  accent: "run",
140
- kicker: c("workflows.flow.run", "Run"),
141
- icon: /* @__PURE__ */ E(x, { className: "h-4 w-4" }),
141
+ kicker: l("workflows.flow.run", "Run"),
142
+ icon: /* @__PURE__ */ T(x, { className: "h-4 w-4" }),
142
143
  title: e.name,
143
- sub: c("workflows.flow.automation", "Automation")
144
+ sub: l("workflows.flow.automation", "Automation")
144
145
  }),
145
- l,
146
- /* @__PURE__ */ E(M, {
146
+ u,
147
+ /* @__PURE__ */ T(j, {
147
148
  accent: "done",
148
- kicker: c("workflows.flow.then", "Then"),
149
- icon: /* @__PURE__ */ E(g, { className: "h-4 w-4" }),
150
- title: e.status === "ACTIVE" ? c("workflows.flow.live", "Live") : c("workflows.flow.awaitingActivation", "Awaiting activation"),
151
- sub: c("workflows.flow.status", "Status: {{status}}", { status: u })
149
+ kicker: l("workflows.flow.then", "Then"),
150
+ icon: /* @__PURE__ */ T(g, { className: "h-4 w-4" }),
151
+ title: e.status === "ACTIVE" ? l("workflows.flow.live", "Live") : l("workflows.flow.awaitingActivation", "Awaiting activation"),
152
+ sub: l("workflows.flow.status", "Status: {{status}}", { status: d })
152
153
  })
153
154
  ]
154
155
  })
155
156
  }),
156
- /* @__PURE__ */ D("div", {
157
+ /* @__PURE__ */ E("div", {
157
158
  className: "mt-3 flex flex-wrap justify-end gap-2",
158
- children: [/* @__PURE__ */ D("button", {
159
+ children: [/* @__PURE__ */ E("button", {
159
160
  type: "button",
160
- onClick: a,
161
+ onClick: o,
161
162
  className: "inline-flex items-center gap-1.5 rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
162
163
  children: [
163
- /* @__PURE__ */ E(v, { className: "h-4 w-4" }),
164
+ /* @__PURE__ */ T(v, { className: "h-4 w-4" }),
164
165
  " ",
165
- c("workflows.flow.openBuilder", "Open builder")
166
+ l("workflows.flow.openBuilder", "Open builder")
166
167
  ]
167
- }), e.status !== "ACTIVE" && /* @__PURE__ */ D("button", {
168
+ }), e.status !== "ACTIVE" && /* @__PURE__ */ E("button", {
168
169
  type: "button",
169
- disabled: o,
170
- onClick: n,
170
+ disabled: s,
171
+ onClick: i,
171
172
  className: "inline-flex items-center gap-1.5 rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90 disabled:opacity-50",
172
173
  children: [
173
- /* @__PURE__ */ E(y, { className: "h-4 w-4" }),
174
+ /* @__PURE__ */ T(y, { className: "h-4 w-4" }),
174
175
  " ",
175
- o ? c("common.activating", "Activating…") : c("workflows.flow.activate", "Activate workflow")
176
+ s ? l("common.activating", "Activating…") : l("workflows.flow.activate", "Activate workflow")
176
177
  ]
177
178
  })]
178
179
  })
179
180
  ]
180
181
  });
181
182
  }
182
- function P() {
183
- let [h, g] = m(""), [_, v] = m(!1), [x, C] = p("workflows"), M = s(), { navigateTo: P } = e(), F = (e) => P(`/workflows/${encodeURIComponent(e)}/builder`), { data: I, isLoading: L, isError: R, refetch: z } = f(h || void 0), B = d(), V = u(), [H, U] = m(""), [W, G] = m(""), [K, q] = m(""), [J, Y] = m(null), X = I ?? [], Z = X.find((e) => e.id === x) ?? null, te = X.filter((e) => e.status === "ACTIVE").length, ne = X.reduce((e, t) => e + (t.runCount || 0), 0), Q = () => {
184
- U(""), G(""), q(""), Y(null);
183
+ function N() {
184
+ let { formatRelativeTime: h } = n(), [g, _] = m(""), [v, x] = m(!1), [C, j] = p("workflows"), N = t(), { navigateTo: P } = e(), F = (e) => P(`/workflows/${encodeURIComponent(e)}/builder`), { data: I, isLoading: L, isError: re, refetch: ie } = f(g || void 0), R = d(), z = u(), [B, V] = m(""), [H, U] = m(""), [W, G] = m(""), [K, q, J, Y] = ee(), X = I ?? [], Z = X.find((e) => e.id === C) ?? null, ae = X.filter((e) => e.status === "ACTIVE").length, oe = X.reduce((e, t) => e + (t.runCount || 0), 0), Q = () => {
185
+ V(""), U(""), G(""), q(null);
185
186
  }, $ = () => {
186
- v(!1), Q();
187
+ x(!1), Q();
187
188
  };
188
- return /* @__PURE__ */ D(t, {
189
- title: M("workflows.title", "Workflows"),
190
- description: M("workflows.description", "Event-driven automation across your portfolio"),
191
- actions: /* @__PURE__ */ D("button", {
189
+ return /* @__PURE__ */ E(r, {
190
+ title: N("workflows.title", "Workflows"),
191
+ description: N("workflows.description", "Event-driven automation across your portfolio"),
192
+ actions: /* @__PURE__ */ E("button", {
192
193
  type: "button",
193
- onClick: () => v(!0),
194
+ onClick: () => x(!0),
194
195
  className: "inline-flex items-center gap-2 rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90",
195
196
  children: [
196
- /* @__PURE__ */ E(b, { className: "h-4 w-4" }),
197
+ /* @__PURE__ */ T(b, { className: "h-4 w-4" }),
197
198
  " ",
198
- M("workflows.newWorkflow", "New workflow")
199
+ N("workflows.newWorkflow", "New workflow")
199
200
  ]
200
201
  }),
201
202
  children: [
202
- /* @__PURE__ */ E(ee, {
203
+ /* @__PURE__ */ T(O, {
203
204
  className: "mb-4",
204
- children: M("workflows.purpose", "Workflows react to domain events — a new invoice, a detected renewal, a cancelled relationship — and run multi-step automations. Draft a workflow, then activate it when you're ready.")
205
+ children: N("workflows.purpose", "Workflows react to domain events — a new invoice, a detected renewal, a cancelled relationship — and run multi-step automations. Draft a workflow, then activate it when you're ready.")
205
206
  }),
206
- /* @__PURE__ */ E("div", {
207
+ /* @__PURE__ */ T("div", {
207
208
  className: "flex flex-wrap items-center gap-3",
208
- children: /* @__PURE__ */ E("select", {
209
- "aria-label": M("common.filter", "Filter"),
210
- value: h,
211
- onChange: (e) => g(e.target.value),
209
+ children: /* @__PURE__ */ T("select", {
210
+ "aria-label": N("common.filter", "Filter"),
211
+ value: g,
212
+ onChange: (e) => _(e.target.value),
212
213
  className: "rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
213
- children: k.map((e) => /* @__PURE__ */ E("option", {
214
+ children: ne.map((e) => /* @__PURE__ */ T("option", {
214
215
  value: e.value,
215
- children: M(e.labelKey, e.fallback)
216
+ children: N(e.labelKey, e.fallback)
216
217
  }, e.value))
217
218
  })
218
219
  }),
219
- L ? /* @__PURE__ */ E(l, { label: M("workflows.loading", "Loading workflows…") }) : R ? /* @__PURE__ */ E(c, {
220
- message: M("workflows.error", "Could not load workflows."),
221
- onRetry: () => void z()
222
- }) : X.length === 0 ? /* @__PURE__ */ E("div", {
220
+ L ? /* @__PURE__ */ T(l, { label: N("workflows.loading", "Loading workflows…") }) : re ? /* @__PURE__ */ T(c, {
221
+ message: N("workflows.error", "Could not load workflows."),
222
+ onRetry: () => void ie()
223
+ }) : X.length === 0 ? /* @__PURE__ */ T("div", {
223
224
  className: "mt-6",
224
- children: /* @__PURE__ */ E(a, {
225
+ children: /* @__PURE__ */ T(o, {
225
226
  illustration: "empty-data",
226
- icon: /* @__PURE__ */ E(S, { className: "h-12 w-12" }),
227
- title: M("workflows.empty.title", "No workflows yet"),
228
- description: M("workflows.empty.description", "Create your first event-driven workflow to automate your recurring portfolio."),
229
- action: /* @__PURE__ */ E("button", {
227
+ icon: /* @__PURE__ */ T(S, { className: "h-12 w-12" }),
228
+ title: N("workflows.empty.title", "No workflows yet"),
229
+ description: N("workflows.empty.description", "Create your first event-driven workflow to automate your recurring portfolio."),
230
+ action: /* @__PURE__ */ T("button", {
230
231
  type: "button",
231
- onClick: () => v(!0),
232
+ onClick: () => x(!0),
232
233
  className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90",
233
- children: M("workflows.newWorkflow", "New workflow")
234
+ children: N("workflows.newWorkflow", "New workflow")
234
235
  })
235
236
  })
236
- }) : /* @__PURE__ */ D(T, { children: [
237
- /* @__PURE__ */ D("div", {
237
+ }) : /* @__PURE__ */ E(te, { children: [
238
+ /* @__PURE__ */ E("div", {
238
239
  className: "mt-6 grid grid-cols-1 gap-4 sm:grid-cols-3",
239
240
  children: [
240
- /* @__PURE__ */ E(n, {
241
- icon: /* @__PURE__ */ E(S, { className: "h-5 w-5" }),
241
+ /* @__PURE__ */ T(i, {
242
+ icon: /* @__PURE__ */ T(S, { className: "h-5 w-5" }),
242
243
  value: X.length,
243
- label: M("workflows.metrics.workflows", "Workflows")
244
+ label: N("workflows.metrics.workflows", "Workflows")
244
245
  }),
245
- /* @__PURE__ */ E(n, {
246
- icon: /* @__PURE__ */ E(w, { className: "h-5 w-5" }),
247
- value: te,
248
- label: M("workflows.metrics.active", "Active")
246
+ /* @__PURE__ */ T(i, {
247
+ icon: /* @__PURE__ */ T(w, { className: "h-5 w-5" }),
248
+ value: ae,
249
+ label: N("workflows.metrics.active", "Active")
249
250
  }),
250
- /* @__PURE__ */ E(n, {
251
- icon: /* @__PURE__ */ E(y, { className: "h-5 w-5" }),
252
- value: ne,
253
- label: M("workflows.metrics.totalRuns", "Total runs")
251
+ /* @__PURE__ */ T(i, {
252
+ icon: /* @__PURE__ */ T(y, { className: "h-5 w-5" }),
253
+ value: oe,
254
+ label: N("workflows.metrics.totalRuns", "Total runs")
254
255
  })
255
256
  ]
256
257
  }),
257
- Z && /* @__PURE__ */ E(N, {
258
+ Z && /* @__PURE__ */ T(M, {
258
259
  workflow: Z,
259
- onClose: () => C(null),
260
- onActivate: () => V.mutate(Z.id),
260
+ onClose: () => j(null),
261
+ onActivate: () => z.mutate(Z.id),
261
262
  onOpenBuilder: () => F(Z.id),
262
- activating: V.isPending
263
+ activating: z.isPending
263
264
  }),
264
- /* @__PURE__ */ E("div", {
265
+ /* @__PURE__ */ T("div", {
265
266
  className: "mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
266
267
  children: X.map((e) => {
267
- let t = e.id === x;
268
- return /* @__PURE__ */ D(O, {
268
+ let t = e.id === C;
269
+ return /* @__PURE__ */ E(D, {
269
270
  treatment: "metric",
270
271
  glow: t || e.status === "ACTIVE",
271
- role: "button",
272
- tabIndex: 0,
273
- "aria-pressed": t,
274
- "aria-label": M("workflows.card.viewAriaLabel", "View flow for {{name}}", { name: e.name }),
275
- onClick: () => C(t ? null : e.id),
276
- onKeyDown: (n) => {
277
- (n.key === "Enter" || n.key === " ") && (n.preventDefault(), C(t ? null : e.id));
278
- },
279
272
  className: "flex cursor-pointer flex-col p-5 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
280
273
  children: [
281
- /* @__PURE__ */ D("div", {
282
- className: "flex items-start justify-between gap-2",
283
- children: [/* @__PURE__ */ E("span", {
274
+ /* @__PURE__ */ T("button", {
275
+ type: "button",
276
+ "aria-pressed": t,
277
+ "aria-label": N("workflows.card.viewAriaLabel", "View flow for {{name}}", { name: e.name }),
278
+ onClick: () => j(t ? null : e.id),
279
+ className: "absolute inset-0 rounded-lg focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]"
280
+ }),
281
+ /* @__PURE__ */ E("div", {
282
+ className: "relative pointer-events-none flex items-start justify-between gap-2",
283
+ children: [/* @__PURE__ */ T("span", {
284
284
  className: "flex size-10 items-center justify-center rounded-xl bg-[var(--color-accent-soft)] text-text-primary",
285
- children: /* @__PURE__ */ E(S, { className: "h-5 w-5" })
286
- }), /* @__PURE__ */ E(i, { status: e.status })]
285
+ children: /* @__PURE__ */ T(S, { className: "h-5 w-5" })
286
+ }), /* @__PURE__ */ T(a, { status: e.status })]
287
287
  }),
288
- /* @__PURE__ */ E("p", {
289
- className: "mt-3 truncate text-sm font-semibold text-text-primary",
288
+ /* @__PURE__ */ T("p", {
289
+ className: "relative pointer-events-none mt-3 truncate text-sm font-semibold text-text-primary",
290
290
  children: e.name
291
291
  }),
292
- /* @__PURE__ */ D("p", {
293
- className: "flex items-center gap-1 truncate text-xs text-text-secondary",
292
+ /* @__PURE__ */ E("p", {
293
+ className: "relative pointer-events-none flex items-center gap-1 truncate text-xs text-text-secondary",
294
294
  children: [
295
- /* @__PURE__ */ E(w, {
295
+ /* @__PURE__ */ T(w, {
296
296
  className: "h-3 w-3 shrink-0",
297
297
  "aria-hidden": !0
298
298
  }),
299
299
  " ",
300
- M("workflows.card.onTrigger", "on {{trigger}}", { trigger: e.triggerEvent })
300
+ N("workflows.card.onTrigger", "on {{trigger}}", { trigger: e.triggerEvent })
301
301
  ]
302
302
  }),
303
- e.description && /* @__PURE__ */ E("p", {
304
- className: "mt-2 line-clamp-2 min-h-[2rem] text-xs text-text-secondary",
303
+ e.description && /* @__PURE__ */ T("p", {
304
+ className: "relative pointer-events-none mt-2 line-clamp-2 min-h-[2rem] text-xs text-text-secondary",
305
305
  children: e.description
306
306
  }),
307
- /* @__PURE__ */ D("p", {
308
- className: "mt-3 flex items-center gap-1.5 text-xs text-text-secondary tabular-nums",
307
+ /* @__PURE__ */ E("p", {
308
+ className: "relative pointer-events-none mt-3 flex items-center gap-1.5 text-xs text-text-secondary tabular-nums",
309
309
  children: [
310
- /* @__PURE__ */ E(y, {
310
+ /* @__PURE__ */ T(y, {
311
311
  className: "h-3.5 w-3.5",
312
312
  "aria-hidden": !0
313
313
  }),
314
314
  " ",
315
- M("workflows.flow.ran", "Ran {{count}}×", { count: e.runCount }),
316
- e.lastRunAt ? ` · ${M("workflows.flow.lastRun", "last {{when}}", { when: r(e.lastRunAt) })}` : ""
315
+ N("workflows.flow.ran", "Ran {{count}}×", { count: e.runCount }),
316
+ e.lastRunAt ? ` · ${N("workflows.flow.lastRun", "last {{when}}", { when: h(e.lastRunAt) })}` : ""
317
317
  ]
318
318
  }),
319
- e.status !== "ACTIVE" && /* @__PURE__ */ D("button", {
319
+ e.status !== "ACTIVE" && /* @__PURE__ */ E("button", {
320
320
  type: "button",
321
- disabled: V.isPending,
321
+ disabled: z.isPending,
322
322
  onClick: (t) => {
323
- t.stopPropagation(), V.mutate(e.id);
323
+ t.stopPropagation(), z.mutate(e.id);
324
324
  },
325
- className: "mt-4 inline-flex items-center justify-center gap-1.5 rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-50",
325
+ className: "relative mt-4 inline-flex items-center justify-center gap-1.5 rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-50",
326
326
  children: [
327
- /* @__PURE__ */ E(y, { className: "h-3.5 w-3.5" }),
327
+ /* @__PURE__ */ T(y, { className: "h-3.5 w-3.5" }),
328
328
  " ",
329
- M("common.activate", "Activate")
329
+ N("common.activate", "Activate")
330
330
  ]
331
331
  })
332
332
  ]
@@ -334,97 +334,103 @@ function P() {
334
334
  })
335
335
  })
336
336
  ] }),
337
- _ && /* @__PURE__ */ E(o, {
338
- title: M("workflows.newWorkflow", "New workflow"),
337
+ v && /* @__PURE__ */ T(s, {
338
+ title: N("workflows.newWorkflow", "New workflow"),
339
339
  onClose: $,
340
- children: /* @__PURE__ */ D("form", {
340
+ children: /* @__PURE__ */ E("form", {
341
341
  onSubmit: (e) => {
342
- if (e.preventDefault(), Y(null), !H.trim() || !W.trim()) {
343
- Y(M("workflows.form.nameRequired", "Name and trigger event are required."));
342
+ if (e.preventDefault(), q(null), !B.trim() || !H.trim()) {
343
+ q(N("workflows.form.nameRequired", "Name and trigger event are required."), B.trim() ? "wf-trigger" : "wf-name");
344
344
  return;
345
345
  }
346
346
  let t = {
347
- name: H.trim(),
348
- triggerEvent: W.trim(),
349
- ...K.trim() ? { description: K.trim() } : {}
347
+ name: B.trim(),
348
+ triggerEvent: H.trim(),
349
+ ...W.trim() ? { description: W.trim() } : {}
350
350
  };
351
- B.mutate(t, {
351
+ R.mutate(t, {
352
352
  onSuccess: (e) => {
353
- Q(), v(!1), F(e.id);
353
+ Q(), x(!1), F(e.id);
354
354
  },
355
- onError: (e) => Y(e instanceof Error ? e.message : M("common.error", "An error occurred"))
355
+ onError: (e) => q(e instanceof Error ? e.message : N("common.error", "An error occurred"))
356
356
  });
357
357
  },
358
358
  className: "space-y-4",
359
359
  children: [
360
- J && /* @__PURE__ */ E("div", {
360
+ K && /* @__PURE__ */ T("div", {
361
+ id: Y,
362
+ tabIndex: -1,
363
+ role: "alert",
361
364
  className: "rounded-lg border border-status-error-text/30 bg-status-error-bg-subtle px-4 py-2 text-sm text-status-error-text",
362
- children: J
365
+ children: K
363
366
  }),
364
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("label", {
367
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("label", {
365
368
  htmlFor: "wf-name",
366
- className: j,
369
+ className: A,
367
370
  children: [
368
- M("workflows.form.nameLabel", "Name"),
371
+ N("workflows.form.nameLabel", "Name"),
369
372
  " ",
370
- /* @__PURE__ */ E("span", {
373
+ /* @__PURE__ */ T("span", {
371
374
  className: "text-status-error-text",
372
375
  children: "*"
373
376
  })
374
377
  ]
375
- }), /* @__PURE__ */ E("input", {
378
+ }), /* @__PURE__ */ T("input", {
379
+ ...J("wf-name"),
376
380
  id: "wf-name",
377
381
  type: "text",
378
- value: H,
379
- onChange: (e) => U(e.target.value),
380
- placeholder: M("workflows.form.namePlaceholder", "e.g. Invoice → notify finance"),
381
- className: A,
382
+ value: B,
383
+ onChange: (e) => V(e.target.value),
384
+ placeholder: N("workflows.form.namePlaceholder", "e.g. Invoice → notify finance"),
385
+ className: k,
382
386
  required: !0
383
387
  })] }),
384
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("label", {
388
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("label", {
385
389
  htmlFor: "wf-trigger",
386
- className: j,
390
+ className: A,
387
391
  children: [
388
- M("workflows.form.triggerLabel", "Trigger event"),
392
+ N("workflows.form.triggerLabel", "Trigger event"),
389
393
  " ",
390
- /* @__PURE__ */ E("span", {
394
+ /* @__PURE__ */ T("span", {
391
395
  className: "text-status-error-text",
392
396
  children: "*"
393
397
  })
394
398
  ]
395
- }), /* @__PURE__ */ E("input", {
399
+ }), /* @__PURE__ */ T("input", {
400
+ ...J("wf-trigger"),
396
401
  id: "wf-trigger",
397
402
  type: "text",
398
- value: W,
399
- onChange: (e) => G(e.target.value),
400
- placeholder: M("workflows.form.triggerPlaceholder", "e.g. InvoiceReceived, RenewalDetected"),
401
- className: A,
403
+ value: H,
404
+ onChange: (e) => U(e.target.value),
405
+ placeholder: N("workflows.form.triggerPlaceholder", "e.g. InvoiceReceived, RenewalDetected"),
406
+ className: k,
402
407
  required: !0
403
408
  })] }),
404
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
409
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
405
410
  htmlFor: "wf-desc",
406
- className: j,
407
- children: M("workflows.form.descriptionLabel", "Description")
408
- }), /* @__PURE__ */ E("textarea", {
411
+ className: A,
412
+ children: N("workflows.form.descriptionLabel", "Description")
413
+ }), /* @__PURE__ */ T("textarea", {
414
+ ...J("wf-desc"),
409
415
  id: "wf-desc",
410
- value: K,
411
- onChange: (e) => q(e.target.value),
416
+ value: W,
417
+ onChange: (e) => G(e.target.value),
412
418
  rows: 3,
413
- placeholder: M("workflows.form.descriptionPlaceholder", "What should this workflow do when the event fires?"),
414
- className: A
419
+ placeholder: N("workflows.form.descriptionPlaceholder", "What should this workflow do when the event fires?"),
420
+ className: k
415
421
  })] }),
416
- /* @__PURE__ */ D("div", {
422
+ /* @__PURE__ */ E("div", {
417
423
  className: "flex justify-end gap-3",
418
- children: [/* @__PURE__ */ E("button", {
424
+ children: [/* @__PURE__ */ T("button", {
419
425
  type: "button",
420
426
  onClick: $,
421
427
  className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
422
- children: M("common.cancel", "Cancel")
423
- }), /* @__PURE__ */ E("button", {
428
+ children: N("common.cancel", "Cancel")
429
+ }), /* @__PURE__ */ T("button", {
424
430
  type: "submit",
425
- disabled: B.isPending,
431
+ disabled: R.isPending,
426
432
  className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90 disabled:opacity-50",
427
- children: B.isPending ? M("workflows.creating", "Creating…") : M("workflows.createWorkflow", "Create workflow")
433
+ children: R.isPending ? N("workflows.creating", "Creating…") : N("workflows.createWorkflow", "Create workflow")
428
434
  })]
429
435
  })
430
436
  ]
@@ -434,6 +440,6 @@ function P() {
434
440
  });
435
441
  }
436
442
  //#endregion
437
- export { P as WorkflowsPage };
443
+ export { N as WorkflowsPage };
438
444
 
439
445
  //# sourceMappingURL=WorkflowsPage.js.map