@burdenoff/microfe-subscriberbot 2026.1103.2 → 2026.1105.1

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 (198) 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/EnterpriseSpendPage.stories.d.ts.map +1 -1
  8. package/dist/stories/pages/InboxPage.stories.d.ts.map +1 -1
  9. package/dist/subscriberbot/admin/AdminDashboardPage.d.ts.map +1 -1
  10. package/dist/subscriberbot/admin/AdminDashboardPage.js +168 -168
  11. package/dist/subscriberbot/admin/AdminDashboardPage.js.map +1 -1
  12. package/dist/subscriberbot/admin/NegotiationDeskPanel.d.ts.map +1 -1
  13. package/dist/subscriberbot/admin/NegotiationDeskPanel.js +116 -116
  14. package/dist/subscriberbot/admin/NegotiationDeskPanel.js.map +1 -1
  15. package/dist/subscriberbot/admin/ProcurementDeskPanel.d.ts.map +1 -1
  16. package/dist/subscriberbot/admin/ProcurementDeskPanel.js +211 -211
  17. package/dist/subscriberbot/admin/ProcurementDeskPanel.js.map +1 -1
  18. package/dist/subscriberbot/components/Modal.d.ts.map +1 -1
  19. package/dist/subscriberbot/components/Modal.js +43 -33
  20. package/dist/subscriberbot/components/Modal.js.map +1 -1
  21. package/dist/subscriberbot/components/PostureOptions.d.ts.map +1 -1
  22. package/dist/subscriberbot/components/PostureOptions.js +10 -10
  23. package/dist/subscriberbot/components/PostureOptions.js.map +1 -1
  24. package/dist/subscriberbot/components/StateViews.d.ts.map +1 -1
  25. package/dist/subscriberbot/components/StateViews.js +45 -37
  26. package/dist/subscriberbot/components/StateViews.js.map +1 -1
  27. package/dist/subscriberbot/components/StatusBadge.d.ts.map +1 -1
  28. package/dist/subscriberbot/components/StatusBadge.js +6 -6
  29. package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
  30. package/dist/subscriberbot/components/decisions/DecisionBanners.js +6 -6
  31. package/dist/subscriberbot/components/decisions/DecisionCard.d.ts.map +1 -1
  32. package/dist/subscriberbot/components/decisions/DecisionCard.js +149 -147
  33. package/dist/subscriberbot/components/decisions/DecisionCard.js.map +1 -1
  34. package/dist/subscriberbot/components/mobile/MobileDashboard.d.ts.map +1 -1
  35. package/dist/subscriberbot/components/mobile/MobileDashboard.js +127 -127
  36. package/dist/subscriberbot/components/mobile/MobileDashboard.js.map +1 -1
  37. package/dist/subscriberbot/components/mobile/MobileRelationshipList.d.ts.map +1 -1
  38. package/dist/subscriberbot/components/mobile/MobileRelationshipList.js +114 -114
  39. package/dist/subscriberbot/components/mobile/MobileRelationshipList.js.map +1 -1
  40. package/dist/subscriberbot/components/mobile/MobileScreen.js +1 -1
  41. package/dist/subscriberbot/components/mobile/MobileScreen.js.map +1 -1
  42. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js +4 -4
  43. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.d.ts.map +1 -1
  44. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js +11 -11
  45. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js.map +1 -1
  46. package/dist/subscriberbot/components/negotiations/OutcomeForm.d.ts.map +1 -1
  47. package/dist/subscriberbot/components/negotiations/OutcomeForm.js +29 -29
  48. package/dist/subscriberbot/components/negotiations/OutcomeForm.js.map +1 -1
  49. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.d.ts.map +1 -1
  50. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js +43 -43
  51. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js.map +1 -1
  52. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js +4 -4
  53. package/dist/subscriberbot/components/procurement/ProcurementThread.d.ts.map +1 -1
  54. package/dist/subscriberbot/components/procurement/ProcurementThread.js +14 -14
  55. package/dist/subscriberbot/components/procurement/ProcurementThread.js.map +1 -1
  56. package/dist/subscriberbot/components/savings/SavingsCards.d.ts.map +1 -1
  57. package/dist/subscriberbot/components/savings/SavingsCards.js +242 -237
  58. package/dist/subscriberbot/components/savings/SavingsCards.js.map +1 -1
  59. package/dist/subscriberbot/components/viz.d.ts +1 -0
  60. package/dist/subscriberbot/components/viz.d.ts.map +1 -1
  61. package/dist/subscriberbot/components/viz.js +100 -101
  62. package/dist/subscriberbot/components/viz.js.map +1 -1
  63. package/dist/subscriberbot/hooks/index.js +1 -1
  64. package/dist/subscriberbot/hooks/useFormError.d.ts +7 -0
  65. package/dist/subscriberbot/hooks/useFormError.d.ts.map +1 -0
  66. package/dist/subscriberbot/hooks/useFormError.js +28 -0
  67. package/dist/subscriberbot/hooks/useFormError.js.map +1 -0
  68. package/dist/subscriberbot/hooks/useFormatters.d.ts +11 -0
  69. package/dist/subscriberbot/hooks/useFormatters.d.ts.map +1 -0
  70. package/dist/subscriberbot/hooks/useFormatters.js +13 -0
  71. package/dist/subscriberbot/hooks/useFormatters.js.map +1 -0
  72. package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts.map +1 -1
  73. package/dist/subscriberbot/hooks/useSubscriberBotApi.js +371 -370
  74. package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
  75. package/dist/subscriberbot/hooks/useTr.d.ts.map +1 -1
  76. package/dist/subscriberbot/hooks/useTr.js +1 -1
  77. package/dist/subscriberbot/hooks/useTr.js.map +1 -1
  78. package/dist/subscriberbot/index.js +1 -1
  79. package/dist/subscriberbot/pages/AssetVaultPage.d.ts.map +1 -1
  80. package/dist/subscriberbot/pages/AssetVaultPage.js +124 -124
  81. package/dist/subscriberbot/pages/AssetVaultPage.js.map +1 -1
  82. package/dist/subscriberbot/pages/DashboardPage.d.ts +0 -10
  83. package/dist/subscriberbot/pages/DashboardPage.d.ts.map +1 -1
  84. package/dist/subscriberbot/pages/DashboardPage.js +107 -98
  85. package/dist/subscriberbot/pages/DashboardPage.js.map +1 -1
  86. package/dist/subscriberbot/pages/InboxPage.d.ts +0 -10
  87. package/dist/subscriberbot/pages/InboxPage.d.ts.map +1 -1
  88. package/dist/subscriberbot/pages/InboxPage.js +421 -402
  89. package/dist/subscriberbot/pages/InboxPage.js.map +1 -1
  90. package/dist/subscriberbot/pages/InsightsPage.d.ts.map +1 -1
  91. package/dist/subscriberbot/pages/InsightsPage.js +130 -121
  92. package/dist/subscriberbot/pages/InsightsPage.js.map +1 -1
  93. package/dist/subscriberbot/pages/InvoicesPage.d.ts +0 -12
  94. package/dist/subscriberbot/pages/InvoicesPage.d.ts.map +1 -1
  95. package/dist/subscriberbot/pages/InvoicesPage.js +237 -215
  96. package/dist/subscriberbot/pages/InvoicesPage.js.map +1 -1
  97. package/dist/subscriberbot/pages/RenewalsPage.d.ts.map +1 -1
  98. package/dist/subscriberbot/pages/RenewalsPage.js +303 -295
  99. package/dist/subscriberbot/pages/RenewalsPage.js.map +1 -1
  100. package/dist/subscriberbot/pages/SavingsPage.d.ts.map +1 -1
  101. package/dist/subscriberbot/pages/SavingsPage.js +57 -57
  102. package/dist/subscriberbot/pages/SavingsPage.js.map +1 -1
  103. package/dist/subscriberbot/pages/WorkflowsPage.d.ts +0 -13
  104. package/dist/subscriberbot/pages/WorkflowsPage.d.ts.map +1 -1
  105. package/dist/subscriberbot/pages/WorkflowsPage.js +202 -196
  106. package/dist/subscriberbot/pages/WorkflowsPage.js.map +1 -1
  107. package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts +0 -18
  108. package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts.map +1 -1
  109. package/dist/subscriberbot/pages/agents/AgentDetailPage.js +283 -275
  110. package/dist/subscriberbot/pages/agents/AgentDetailPage.js.map +1 -1
  111. package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts +0 -6
  112. package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts.map +1 -1
  113. package/dist/subscriberbot/pages/agents/AgentNewPage.js +85 -77
  114. package/dist/subscriberbot/pages/agents/AgentNewPage.js.map +1 -1
  115. package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts +0 -9
  116. package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts.map +1 -1
  117. package/dist/subscriberbot/pages/agents/AgentsListPage.js +136 -136
  118. package/dist/subscriberbot/pages/agents/AgentsListPage.js.map +1 -1
  119. package/dist/subscriberbot/pages/banking/BankConnectionsPage.d.ts +0 -9
  120. package/dist/subscriberbot/pages/banking/BankConnectionsPage.d.ts.map +1 -1
  121. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js +267 -260
  122. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js.map +1 -1
  123. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.d.ts +0 -10
  124. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.d.ts.map +1 -1
  125. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js +96 -96
  126. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js.map +1 -1
  127. package/dist/subscriberbot/pages/decisions/DecisionsPage.d.ts +0 -11
  128. package/dist/subscriberbot/pages/decisions/DecisionsPage.d.ts.map +1 -1
  129. package/dist/subscriberbot/pages/decisions/DecisionsPage.js +46 -46
  130. package/dist/subscriberbot/pages/decisions/DecisionsPage.js.map +1 -1
  131. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts +0 -11
  132. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts.map +1 -1
  133. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js +181 -171
  134. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js.map +1 -1
  135. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts +0 -9
  136. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts.map +1 -1
  137. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js +164 -164
  138. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js.map +1 -1
  139. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts +0 -9
  140. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts.map +1 -1
  141. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js +197 -181
  142. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js.map +1 -1
  143. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts +0 -8
  144. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts.map +1 -1
  145. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js +79 -79
  146. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js.map +1 -1
  147. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts +0 -9
  148. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts.map +1 -1
  149. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js +147 -147
  150. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js.map +1 -1
  151. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts +0 -10
  152. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts.map +1 -1
  153. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js +204 -188
  154. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js.map +1 -1
  155. package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts +0 -9
  156. package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts.map +1 -1
  157. package/dist/subscriberbot/pages/procurement/ProcurementPage.js +80 -80
  158. package/dist/subscriberbot/pages/procurement/ProcurementPage.js.map +1 -1
  159. package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts +0 -10
  160. package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts.map +1 -1
  161. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js +484 -458
  162. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js.map +1 -1
  163. package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts +0 -8
  164. package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts.map +1 -1
  165. package/dist/subscriberbot/pages/providers/ProviderNewPage.js +146 -136
  166. package/dist/subscriberbot/pages/providers/ProviderNewPage.js.map +1 -1
  167. package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts +0 -10
  168. package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts.map +1 -1
  169. package/dist/subscriberbot/pages/providers/ProvidersListPage.js +88 -87
  170. package/dist/subscriberbot/pages/providers/ProvidersListPage.js.map +1 -1
  171. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts +0 -11
  172. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts.map +1 -1
  173. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +520 -490
  174. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
  175. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts +0 -8
  176. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts.map +1 -1
  177. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js +104 -90
  178. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -1
  179. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts +0 -8
  180. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts.map +1 -1
  181. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js +97 -96
  182. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js.map +1 -1
  183. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.d.ts.map +1 -1
  184. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js +76 -74
  185. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js.map +1 -1
  186. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts +5 -3
  187. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts.map +1 -1
  188. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js +26 -25
  189. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js.map +1 -1
  190. package/dist/subscriberbot/utils/formatters.d.ts +16 -5
  191. package/dist/subscriberbot/utils/formatters.d.ts.map +1 -1
  192. package/dist/subscriberbot/utils/formatters.js +57 -25
  193. package/dist/subscriberbot/utils/formatters.js.map +1 -1
  194. package/dist/subscriberbot/utils/plaidLink.d.ts +2 -1
  195. package/dist/subscriberbot/utils/plaidLink.d.ts.map +1 -1
  196. package/dist/subscriberbot/utils/plaidLink.js +21 -21
  197. package/dist/subscriberbot/utils/plaidLink.js.map +1 -1
  198. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"NegotiationNewPage.d.ts","sourceRoot":"","sources":["../../../../src/subscriberbot/pages/negotiations/NegotiationNewPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAuDH,wBAAgB,kBAAkB,gCAuajC"}
1
+ {"version":3,"file":"NegotiationNewPage.d.ts","sourceRoot":"","sources":["../../../../src/subscriberbot/pages/negotiations/NegotiationNewPage.tsx"],"names":[],"mappings":"AAiEA,wBAAgB,kBAAkB,gCA+bjC"}
@@ -1,368 +1,384 @@
1
1
  import { useSubscriberBot as e } from "../../context/SubscriberBotContext.js";
2
- import { cn as t } from "../../utils/cn.js";
3
- import { PageLayout as n } from "../../components/PageLayout.js";
4
- import { formatEnumLabel as r } from "../../utils/formatters.js";
5
- import { useTr as i } from "../../hooks/useTr.js";
6
- import { useRelationships as a } from "../../hooks/useSubscriberBotApi.js";
7
- import { BILL_TYPES as o, BILL_TYPE_LABEL as s, TARGETS as ee, TARGET_LABEL as c } from "../../components/negotiations/labels.js";
2
+ import { useTr as t } from "../../hooks/useTr.js";
3
+ import { useFormatters as n } from "../../hooks/useFormatters.js";
4
+ import { cn as r } from "../../utils/cn.js";
5
+ import { PageLayout as ee } from "../../components/PageLayout.js";
6
+ import { useRelationships as te } from "../../hooks/useSubscriberBotApi.js";
7
+ import { BILL_TYPES as ne, BILL_TYPE_LABEL as i, TARGETS as a, TARGET_LABEL as o } from "../../components/negotiations/labels.js";
8
8
  import "../../components/negotiations/index.js";
9
- import { useCreateNegotiation as l, useNegotiationTerms as u } from "../../hooks/useNegotiationApi.js";
10
- import { useEffect as te, useMemo as d, useRef as ne, useState as f } from "react";
11
- import { ArrowLeft as re, Handshake as p, Receipt as ie, Target as ae, UserRound as oe } from "lucide-react";
12
- import { useSearchParams as se } from "react-router";
13
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
14
- import { GlassCard as g, PagePurpose as ce } from "@burdenoff/fe-libs/ui";
9
+ import { useCreateNegotiation as re, useNegotiationTerms as s } from "../../hooks/useNegotiationApi.js";
10
+ import { useFormError as c } from "../../hooks/useFormError.js";
11
+ import { useEffect as l, useMemo as ie, useRef as u, useState as d } from "react";
12
+ import { ArrowLeft as ae, Handshake as oe, Receipt as se, Target as ce, UserRound as le } from "lucide-react";
13
+ import { useSearchParams as ue } from "react-router";
14
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
15
+ import { GlassCard as m, PagePurpose as h } from "@burdenoff/fe-libs/ui";
15
16
  //#region src/subscriberbot/pages/negotiations/NegotiationNewPage.tsx
16
- var _ = [
17
+ var g = [
17
18
  "MONTHLY",
18
19
  "YEARLY",
19
20
  "QUARTERLY",
20
21
  "WEEKLY"
21
- ], v = "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2.5 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", y = "mb-1.5 block text-xs font-medium text-text-secondary";
22
- function b({ icon: e, title: t, description: n, children: r }) {
23
- return /* @__PURE__ */ h(g, {
22
+ ], _ = "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2.5 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", v = "mb-1.5 block text-xs font-medium text-text-secondary";
23
+ function y({ icon: e, title: t, description: n, children: r }) {
24
+ return /* @__PURE__ */ p(m, {
24
25
  treatment: "metric",
25
26
  className: "p-5 sm:p-6",
26
- children: [/* @__PURE__ */ h("div", {
27
+ children: [/* @__PURE__ */ p("div", {
27
28
  className: "flex items-start gap-3",
28
- children: [/* @__PURE__ */ m("span", {
29
+ children: [/* @__PURE__ */ f("span", {
29
30
  className: "mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-bg-sunken text-text-secondary",
30
31
  children: e
31
- }), /* @__PURE__ */ h("div", {
32
+ }), /* @__PURE__ */ p("div", {
32
33
  className: "min-w-0",
33
- children: [/* @__PURE__ */ m("h2", {
34
+ children: [/* @__PURE__ */ f("h2", {
34
35
  className: "text-sm font-semibold text-text-primary",
35
36
  children: t
36
- }), /* @__PURE__ */ m("p", {
37
+ }), /* @__PURE__ */ f("p", {
37
38
  className: "mt-0.5 text-xs text-text-secondary",
38
39
  children: n
39
40
  })]
40
41
  })]
41
- }), /* @__PURE__ */ m("div", {
42
+ }), /* @__PURE__ */ f("div", {
42
43
  className: "mt-4",
43
44
  children: r
44
45
  })]
45
46
  });
46
47
  }
47
- function x() {
48
- let g = i(), { navigateTo: x } = e(), [S] = se(), C = l(), w = u(), T = a({ pagination: {
48
+ function b() {
49
+ let { formatEnumLabel: m } = n(), b = t(), { navigateTo: x } = e(), [de] = ue(), S = re(), C = s(), w = te({ pagination: {
49
50
  limit: 100,
50
51
  offset: 0
51
- } }), E = d(() => T.data?.items ?? [], [T.data]), [D, le] = f(S.get("relationshipId") ?? ""), [O, k] = f(""), [A, ue] = f("INTERNET"), [j, M] = f(""), [N, P] = f("USD"), [F, I] = f("MONTHLY"), [L, R] = f("LOWER_PRICE"), [z, B] = f(""), [V, H] = f(""), [U, de] = f(""), [W, fe] = f("SELF_SERVE"), [G, pe] = f(""), [K, me] = f(""), [q, he] = f(""), [J, Y] = f(null), X = E.find((e) => e.id === D), Z = ne(null);
52
- te(() => {
53
- !X || Z.current === X.id || (Z.current = X.id, k(X.label), X.amount > 0 && M(String(X.amount)), P(X.currency), _.includes(X.interval) && I(X.interval));
52
+ } }), T = ie(() => w.data?.items ?? [], [w.data]), [E, D] = d(de.get("relationshipId") ?? ""), [O, k] = d(""), [A, fe] = d("INTERNET"), [j, M] = d(""), [N, P] = d("USD"), [F, I] = d("MONTHLY"), [L, R] = d("LOWER_PRICE"), [z, B] = d(""), [V, pe] = d(""), [H, me] = d(""), [U, he] = d("SELF_SERVE"), [W, ge] = d(""), [G, _e] = d(""), [K, ve] = d(""), [q, J, Y, ye] = c(), X = T.find((e) => e.id === E), Z = u(null);
53
+ l(() => {
54
+ !X || Z.current === X.id || (Z.current = X.id, k(X.label), X.amount > 0 && M(String(X.amount)), P(X.currency), g.includes(X.interval) && I(X.interval));
54
55
  }, [X]);
55
- let Q = w.data ? Math.round(w.data.managedFeeRate * 100) : null, ge = (e) => {
56
- e.preventDefault(), Y(null);
56
+ let Q = C.data ? Math.round(C.data.managedFeeRate * 100) : null, be = (e) => {
57
+ e.preventDefault(), J(null);
57
58
  let t = Number(j);
58
59
  if (!O.trim()) {
59
- Y(g("negotiations.form.providerRequired", "Who is the bill from?"));
60
+ J(b("negotiations.form.providerRequired", "Who is the bill from?"), "neg-provider");
60
61
  return;
61
62
  }
62
63
  if (!j || !Number.isFinite(t) || t <= 0) {
63
- Y(g("negotiations.form.amountRequired", "Enter what you pay today."));
64
+ J(b("negotiations.form.amountRequired", "Enter what you pay today."), "neg-amount");
64
65
  return;
65
66
  }
66
- if (W === "MANAGED" && !G.trim()) {
67
- Y(g("negotiations.form.holderRequired", "The negotiation desk needs the name on the provider account."));
67
+ if (U === "MANAGED" && !W.trim()) {
68
+ J(b("negotiations.form.holderRequired", "The negotiation desk needs the name on the provider account."), "neg-holder");
68
69
  return;
69
70
  }
70
71
  let n = {
71
72
  providerName: O.trim(),
72
73
  billType: A,
73
- mode: W,
74
+ mode: U,
74
75
  targetOutcome: L,
75
76
  currentAmount: t,
76
77
  currency: N.trim().toUpperCase() || "USD",
77
78
  interval: F,
78
- ...D ? { relationshipId: D } : {},
79
+ ...E ? { relationshipId: E } : {},
79
80
  ...z ? { targetAmount: Number(z) } : {},
80
81
  ...V ? { tenureMonths: Number(V) } : {},
81
- ...U.trim() ? { competitorOffer: U.trim() } : {},
82
- ...G.trim() ? { accountHolderName: G.trim() } : {},
83
- ...K.trim() ? { accountNumber: K.trim() } : {},
84
- ...q.trim() ? { notes: q.trim() } : {}
82
+ ...H.trim() ? { competitorOffer: H.trim() } : {},
83
+ ...W.trim() ? { accountHolderName: W.trim() } : {},
84
+ ...G.trim() ? { accountNumber: G.trim() } : {},
85
+ ...K.trim() ? { notes: K.trim() } : {}
85
86
  };
86
- C.mutate({ input: n }, {
87
+ S.mutate({ input: n }, {
87
88
  onSuccess: (e) => x(`/negotiations/${e.id}`),
88
- onError: (e) => Y(e instanceof Error ? e.message : g("negotiations.form.error", "Could not create the request."))
89
+ onError: (e) => J(e instanceof Error ? e.message : b("negotiations.form.error", "Could not create the request."))
89
90
  });
90
- }, $ = (e, n, r) => /* @__PURE__ */ h("label", {
91
- className: t("flex cursor-pointer flex-col gap-1 rounded-xl border p-4 text-left", W === e ? "border-action-primary-bg bg-[var(--color-accent-soft)]" : "border-border-subtle bg-bg-surface hover:bg-bg-sunken"),
92
- children: [/* @__PURE__ */ h("span", {
91
+ }, $ = (e, t, n) => /* @__PURE__ */ p("label", {
92
+ className: r("flex cursor-pointer flex-col gap-1 rounded-xl border p-4 text-start", U === e ? "border-action-primary-bg bg-[var(--color-accent-soft)]" : "border-border-subtle bg-bg-surface hover:bg-bg-sunken"),
93
+ children: [/* @__PURE__ */ p("span", {
93
94
  className: "flex items-center gap-2 text-sm font-semibold text-text-primary",
94
- children: [/* @__PURE__ */ m("input", {
95
+ children: [/* @__PURE__ */ f("input", {
95
96
  type: "radio",
96
97
  name: "mode",
97
98
  value: e,
98
- checked: W === e,
99
- onChange: () => fe(e)
100
- }), n]
101
- }), /* @__PURE__ */ m("span", {
99
+ checked: U === e,
100
+ onChange: () => he(e)
101
+ }), t]
102
+ }), /* @__PURE__ */ f("span", {
102
103
  className: "text-xs text-text-secondary",
103
- children: r
104
+ children: n
104
105
  })]
105
106
  });
106
- return /* @__PURE__ */ h(n, {
107
- title: g("negotiations.new.title", "Negotiate a bill"),
108
- description: g("negotiations.new.description", "Tell us about the bill and how you want to handle it."),
109
- actions: /* @__PURE__ */ h("button", {
107
+ return /* @__PURE__ */ p(ee, {
108
+ title: b("negotiations.new.title", "Negotiate a bill"),
109
+ description: b("negotiations.new.description", "Tell us about the bill and how you want to handle it."),
110
+ actions: /* @__PURE__ */ p("button", {
110
111
  type: "button",
111
112
  onClick: () => x("/negotiations"),
112
113
  className: "inline-flex items-center gap-2 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
113
114
  children: [
114
- /* @__PURE__ */ m(re, { className: "h-4 w-4" }),
115
+ /* @__PURE__ */ f(ae, { className: "rtl:rotate-180 h-4 w-4" }),
115
116
  " ",
116
- g("negotiations.back", "Back")
117
+ b("negotiations.back", "Back")
117
118
  ]
118
119
  }),
119
- children: [/* @__PURE__ */ m(ce, {
120
+ children: [/* @__PURE__ */ f(h, {
120
121
  className: "mb-6",
121
- children: g("negotiations.new.purpose", "You will get a negotiation playbook for this bill right away. Nothing is sent to the provider until you submit the request.")
122
- }), /* @__PURE__ */ h("form", {
123
- onSubmit: ge,
122
+ children: b("negotiations.new.purpose", "You will get a negotiation playbook for this bill right away. Nothing is sent to the provider until you submit the request.")
123
+ }), /* @__PURE__ */ p("form", {
124
+ onSubmit: be,
124
125
  className: "max-w-3xl space-y-5",
125
126
  "data-testid": "negotiation-form",
126
127
  children: [
127
- J && /* @__PURE__ */ m("div", {
128
+ q && /* @__PURE__ */ f("div", {
129
+ id: ye,
130
+ tabIndex: -1,
128
131
  role: "alert",
129
132
  className: "rounded-lg border border-status-error-text/30 bg-status-error-bg-subtle px-4 py-2 text-sm text-status-error-text",
130
- children: J
133
+ children: q
131
134
  }),
132
- /* @__PURE__ */ m(b, {
133
- icon: /* @__PURE__ */ m(ie, { className: "h-4 w-4" }),
134
- title: g("negotiations.form.bill.title", "The bill"),
135
- description: g("negotiations.form.bill.description", "Link a tracked subscription to prefill it, or describe the bill."),
136
- children: /* @__PURE__ */ h("div", {
135
+ /* @__PURE__ */ f(y, {
136
+ icon: /* @__PURE__ */ f(se, { className: "h-4 w-4" }),
137
+ title: b("negotiations.form.bill.title", "The bill"),
138
+ description: b("negotiations.form.bill.description", "Link a tracked subscription to prefill it, or describe the bill."),
139
+ children: /* @__PURE__ */ p("div", {
137
140
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
138
141
  children: [
139
- /* @__PURE__ */ h("div", {
142
+ /* @__PURE__ */ p("div", {
140
143
  className: "sm:col-span-2",
141
- children: [/* @__PURE__ */ m("label", {
144
+ children: [/* @__PURE__ */ f("label", {
142
145
  htmlFor: "neg-relationship",
143
- className: y,
144
- children: g("negotiations.form.relationship", "Tracked subscription (optional)")
145
- }), /* @__PURE__ */ h("select", {
146
- id: "neg-relationship",
147
- value: D,
148
- onChange: (e) => le(e.target.value),
149
146
  className: v,
150
- children: [/* @__PURE__ */ m("option", {
147
+ children: b("negotiations.form.relationship", "Tracked subscription (optional)")
148
+ }), /* @__PURE__ */ p("select", {
149
+ ...Y("neg-relationship"),
150
+ id: "neg-relationship",
151
+ value: E,
152
+ onChange: (e) => D(e.target.value),
153
+ className: _,
154
+ children: [/* @__PURE__ */ f("option", {
151
155
  value: "",
152
- children: g("negotiations.form.noRelationship", "Not linked")
153
- }), E.map((e) => /* @__PURE__ */ m("option", {
156
+ children: b("negotiations.form.noRelationship", "Not linked")
157
+ }), T.map((e) => /* @__PURE__ */ f("option", {
154
158
  value: e.id,
155
159
  children: e.label
156
160
  }, e.id))]
157
161
  })]
158
162
  }),
159
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
163
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
160
164
  htmlFor: "neg-provider",
161
- className: y,
165
+ className: v,
162
166
  children: [
163
- g("negotiations.form.provider", "Provider"),
167
+ b("negotiations.form.provider", "Provider"),
164
168
  " ",
165
- /* @__PURE__ */ m("span", {
169
+ /* @__PURE__ */ f("span", {
166
170
  className: "text-status-error-text",
167
171
  children: "*"
168
172
  })
169
173
  ]
170
- }), /* @__PURE__ */ m("input", {
174
+ }), /* @__PURE__ */ f("input", {
175
+ ...Y("neg-provider"),
171
176
  id: "neg-provider",
172
177
  value: O,
173
178
  onChange: (e) => k(e.target.value),
174
- placeholder: g("negotiations.form.providerPlaceholder", "e.g. Comcast Xfinity"),
175
- className: v
179
+ placeholder: b("negotiations.form.providerPlaceholder", "e.g. Comcast Xfinity"),
180
+ className: _
176
181
  })] }),
177
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
182
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
178
183
  htmlFor: "neg-bill-type",
179
- className: y,
180
- children: g("negotiations.form.billType", "Type of bill")
181
- }), /* @__PURE__ */ m("select", {
184
+ className: v,
185
+ children: b("negotiations.form.billType", "Type of bill")
186
+ }), /* @__PURE__ */ f("select", {
187
+ ...Y("neg-bill-type"),
182
188
  id: "neg-bill-type",
183
189
  value: A,
184
- onChange: (e) => ue(e.target.value),
185
- className: v,
186
- children: o.map((e) => /* @__PURE__ */ m("option", {
190
+ onChange: (e) => fe(e.target.value),
191
+ className: _,
192
+ children: ne.map((e) => /* @__PURE__ */ f("option", {
187
193
  value: e,
188
- children: g(s[e].key, s[e].fallback)
194
+ children: b(i[e].key, i[e].fallback)
189
195
  }, e))
190
196
  })] }),
191
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
197
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
192
198
  htmlFor: "neg-amount",
193
- className: y,
199
+ className: v,
194
200
  children: [
195
- g("negotiations.form.amount", "What you pay today"),
201
+ b("negotiations.form.amount", "What you pay today"),
196
202
  " ",
197
- /* @__PURE__ */ m("span", {
203
+ /* @__PURE__ */ f("span", {
198
204
  className: "text-status-error-text",
199
205
  children: "*"
200
206
  })
201
207
  ]
202
- }), /* @__PURE__ */ m("input", {
208
+ }), /* @__PURE__ */ f("input", {
209
+ ...Y("neg-amount"),
203
210
  id: "neg-amount",
204
211
  type: "number",
205
212
  min: "0",
206
213
  step: "0.01",
207
214
  value: j,
208
215
  onChange: (e) => M(e.target.value),
209
- className: v
216
+ className: _
210
217
  })] }),
211
- /* @__PURE__ */ h("div", {
218
+ /* @__PURE__ */ p("div", {
212
219
  className: "grid grid-cols-2 gap-3",
213
- children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
220
+ children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
214
221
  htmlFor: "neg-currency",
215
- className: y,
216
- children: g("negotiations.form.currency", "Currency")
217
- }), /* @__PURE__ */ m("input", {
222
+ className: v,
223
+ children: b("negotiations.form.currency", "Currency")
224
+ }), /* @__PURE__ */ f("input", {
225
+ ...Y("neg-currency"),
218
226
  id: "neg-currency",
219
227
  value: N,
220
228
  maxLength: 3,
221
229
  onChange: (e) => P(e.target.value),
222
- className: v
223
- })] }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
230
+ className: _
231
+ })] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
224
232
  htmlFor: "neg-interval",
225
- className: y,
226
- children: g("negotiations.form.interval", "Billed")
227
- }), /* @__PURE__ */ m("select", {
233
+ className: v,
234
+ children: b("negotiations.form.interval", "Billed")
235
+ }), /* @__PURE__ */ f("select", {
236
+ ...Y("neg-interval"),
228
237
  id: "neg-interval",
229
238
  value: F,
230
239
  onChange: (e) => I(e.target.value),
231
- className: v,
232
- children: _.map((e) => /* @__PURE__ */ m("option", {
240
+ className: _,
241
+ children: g.map((e) => /* @__PURE__ */ f("option", {
233
242
  value: e,
234
- children: r(e)
243
+ children: m(e)
235
244
  }, e))
236
245
  })] })]
237
246
  })
238
247
  ]
239
248
  })
240
249
  }),
241
- /* @__PURE__ */ m(b, {
242
- icon: /* @__PURE__ */ m(ae, { className: "h-4 w-4" }),
243
- title: g("negotiations.form.goal.title", "Your goal and leverage"),
244
- description: g("negotiations.form.goal.description", "Loyalty and a competing offer are the strongest arguments."),
245
- children: /* @__PURE__ */ h("div", {
250
+ /* @__PURE__ */ f(y, {
251
+ icon: /* @__PURE__ */ f(ce, { className: "h-4 w-4" }),
252
+ title: b("negotiations.form.goal.title", "Your goal and leverage"),
253
+ description: b("negotiations.form.goal.description", "Loyalty and a competing offer are the strongest arguments."),
254
+ children: /* @__PURE__ */ p("div", {
246
255
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
247
256
  children: [
248
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
257
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
249
258
  htmlFor: "neg-target",
250
- className: y,
251
- children: g("negotiations.form.target", "What you want")
252
- }), /* @__PURE__ */ m("select", {
259
+ className: v,
260
+ children: b("negotiations.form.target", "What you want")
261
+ }), /* @__PURE__ */ f("select", {
262
+ ...Y("neg-target"),
253
263
  id: "neg-target",
254
264
  value: L,
255
265
  onChange: (e) => R(e.target.value),
256
- className: v,
257
- children: ee.map((e) => /* @__PURE__ */ m("option", {
266
+ className: _,
267
+ children: a.map((e) => /* @__PURE__ */ f("option", {
258
268
  value: e,
259
- children: g(c[e].key, c[e].fallback)
269
+ children: b(o[e].key, o[e].fallback)
260
270
  }, e))
261
271
  })] }),
262
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
272
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
263
273
  htmlFor: "neg-target-amount",
264
- className: y,
265
- children: g("negotiations.form.targetAmount", "Price you would be happy with")
266
- }), /* @__PURE__ */ m("input", {
274
+ className: v,
275
+ children: b("negotiations.form.targetAmount", "Price you would be happy with")
276
+ }), /* @__PURE__ */ f("input", {
277
+ ...Y("neg-target-amount"),
267
278
  id: "neg-target-amount",
268
279
  type: "number",
269
280
  min: "0",
270
281
  step: "0.01",
271
282
  value: z,
272
283
  onChange: (e) => B(e.target.value),
273
- className: v
284
+ className: _
274
285
  })] }),
275
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
286
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
276
287
  htmlFor: "neg-tenure",
277
- className: y,
278
- children: g("negotiations.form.tenure", "Months as a customer")
279
- }), /* @__PURE__ */ m("input", {
288
+ className: v,
289
+ children: b("negotiations.form.tenure", "Months as a customer")
290
+ }), /* @__PURE__ */ f("input", {
291
+ ...Y("neg-tenure"),
280
292
  id: "neg-tenure",
281
293
  type: "number",
282
294
  min: "0",
283
295
  step: "1",
284
296
  value: V,
285
- onChange: (e) => H(e.target.value),
286
- className: v
297
+ onChange: (e) => pe(e.target.value),
298
+ className: _
287
299
  })] }),
288
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
300
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
289
301
  htmlFor: "neg-competitor",
290
- className: y,
291
- children: g("negotiations.form.competitor", "Competing offer you have seen")
292
- }), /* @__PURE__ */ m("input", {
302
+ className: v,
303
+ children: b("negotiations.form.competitor", "Competing offer you have seen")
304
+ }), /* @__PURE__ */ f("input", {
305
+ ...Y("neg-competitor"),
293
306
  id: "neg-competitor",
294
- value: U,
295
- onChange: (e) => de(e.target.value),
296
- placeholder: g("negotiations.form.competitorPlaceholder", "e.g. Acme Fiber 45/mo"),
297
- className: v
307
+ value: H,
308
+ onChange: (e) => me(e.target.value),
309
+ placeholder: b("negotiations.form.competitorPlaceholder", "e.g. Acme Fiber 45/mo"),
310
+ className: _
298
311
  })] })
299
312
  ]
300
313
  })
301
314
  }),
302
- /* @__PURE__ */ m(b, {
303
- icon: /* @__PURE__ */ m(p, { className: "h-4 w-4" }),
304
- title: g("negotiations.form.mode.title", "Who negotiates"),
305
- description: g("negotiations.form.mode.description", "You can switch until you submit the request."),
306
- children: /* @__PURE__ */ h("div", {
315
+ /* @__PURE__ */ f(y, {
316
+ icon: /* @__PURE__ */ f(oe, { className: "h-4 w-4" }),
317
+ title: b("negotiations.form.mode.title", "Who negotiates"),
318
+ description: b("negotiations.form.mode.description", "You can switch until you submit the request."),
319
+ children: /* @__PURE__ */ p("div", {
307
320
  className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
308
321
  "data-testid": "negotiation-mode",
309
- children: [$("SELF_SERVE", g("negotiations.mode.selfServe", "I will call (free)"), g("negotiations.mode.selfServeBody", "Use the playbook and written request, then record what you got.")), $("MANAGED", g("negotiations.mode.managed", "Negotiate for me"), Q == null ? g("negotiations.mode.managedBodyNoFee", "The negotiation desk contacts the provider for you. You only pay a share of the savings.") : g("negotiations.mode.managedBody", "The negotiation desk contacts the provider for you. Fee: {{pct}}% of first-year savings, only if your bill goes down.", { pct: Q }))]
322
+ children: [$("SELF_SERVE", b("negotiations.mode.selfServe", "I will call (free)"), b("negotiations.mode.selfServeBody", "Use the playbook and written request, then record what you got.")), $("MANAGED", b("negotiations.mode.managed", "Negotiate for me"), Q == null ? b("negotiations.mode.managedBodyNoFee", "The negotiation desk contacts the provider for you. You only pay a share of the savings.") : b("negotiations.mode.managedBody", "The negotiation desk contacts the provider for you. Fee: {{pct}}% of first-year savings, only if your bill goes down.", { pct: Q }))]
310
323
  })
311
324
  }),
312
- W === "MANAGED" && /* @__PURE__ */ m(b, {
313
- icon: /* @__PURE__ */ m(oe, { className: "h-4 w-4" }),
314
- title: g("negotiations.form.account.title", "Provider account"),
315
- description: g("negotiations.form.account.description", "So the desk can find your account. Only the last four characters of the account number are kept."),
316
- children: /* @__PURE__ */ h("div", {
325
+ U === "MANAGED" && /* @__PURE__ */ f(y, {
326
+ icon: /* @__PURE__ */ f(le, { className: "h-4 w-4" }),
327
+ title: b("negotiations.form.account.title", "Provider account"),
328
+ description: b("negotiations.form.account.description", "So the desk can find your account. Only the last four characters of the account number are kept."),
329
+ children: /* @__PURE__ */ p("div", {
317
330
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
318
- children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
331
+ children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
319
332
  htmlFor: "neg-holder",
320
- className: y,
333
+ className: v,
321
334
  children: [
322
- g("negotiations.form.holder", "Name on the account"),
335
+ b("negotiations.form.holder", "Name on the account"),
323
336
  " ",
324
- /* @__PURE__ */ m("span", {
337
+ /* @__PURE__ */ f("span", {
325
338
  className: "text-status-error-text",
326
339
  children: "*"
327
340
  })
328
341
  ]
329
- }), /* @__PURE__ */ m("input", {
342
+ }), /* @__PURE__ */ f("input", {
343
+ ...Y("neg-holder"),
330
344
  id: "neg-holder",
331
- value: G,
345
+ value: W,
332
346
  autoComplete: "name",
333
- onChange: (e) => pe(e.target.value),
334
- className: v
335
- })] }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
347
+ onChange: (e) => ge(e.target.value),
348
+ className: _
349
+ })] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
336
350
  htmlFor: "neg-account",
337
- className: y,
338
- children: g("negotiations.form.account", "Account number")
339
- }), /* @__PURE__ */ m("input", {
351
+ className: v,
352
+ children: b("negotiations.form.account", "Account number")
353
+ }), /* @__PURE__ */ f("input", {
354
+ ...Y("neg-account"),
340
355
  id: "neg-account",
341
- value: K,
356
+ value: G,
342
357
  autoComplete: "off",
343
- onChange: (e) => me(e.target.value),
344
- className: v
358
+ onChange: (e) => _e(e.target.value),
359
+ className: _
345
360
  })] })]
346
361
  })
347
362
  }),
348
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
363
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
349
364
  htmlFor: "neg-notes",
350
- className: y,
351
- children: g("negotiations.form.notes", "Anything else the negotiator should know")
352
- }), /* @__PURE__ */ m("textarea", {
365
+ className: v,
366
+ children: b("negotiations.form.notes", "Anything else the negotiator should know")
367
+ }), /* @__PURE__ */ f("textarea", {
368
+ ...Y("neg-notes"),
353
369
  id: "neg-notes",
354
370
  rows: 3,
355
- value: q,
356
- onChange: (e) => he(e.target.value),
357
- className: v
371
+ value: K,
372
+ onChange: (e) => ve(e.target.value),
373
+ className: _
358
374
  })] }),
359
- /* @__PURE__ */ m("div", {
375
+ /* @__PURE__ */ f("div", {
360
376
  className: "flex justify-end",
361
- children: /* @__PURE__ */ m("button", {
377
+ children: /* @__PURE__ */ f("button", {
362
378
  type: "submit",
363
- disabled: C.isPending,
379
+ disabled: S.isPending,
364
380
  className: "rounded-lg bg-action-primary-bg px-5 py-2.5 text-sm font-medium text-action-primary-text hover:opacity-90 disabled:opacity-50",
365
- children: C.isPending ? g("negotiations.form.creating", "Creating…") : g("negotiations.form.create", "Create request")
381
+ children: S.isPending ? b("negotiations.form.creating", "Creating…") : b("negotiations.form.create", "Create request")
366
382
  })
367
383
  })
368
384
  ]
@@ -370,6 +386,6 @@ function x() {
370
386
  });
371
387
  }
372
388
  //#endregion
373
- export { x as NegotiationNewPage };
389
+ export { b as NegotiationNewPage };
374
390
 
375
391
  //# sourceMappingURL=NegotiationNewPage.js.map