@burdenoff/microfe-subscriberbot 2026.1031.1 → 2026.1102.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 (112) hide show
  1. package/dist/stories/pages/NegotiationDetailPage.stories.d.ts +11 -0
  2. package/dist/stories/pages/NegotiationDetailPage.stories.d.ts.map +1 -0
  3. package/dist/stories/pages/NegotiationNewPage.stories.d.ts +9 -0
  4. package/dist/stories/pages/NegotiationNewPage.stories.d.ts.map +1 -0
  5. package/dist/stories/pages/NegotiationsPage.stories.d.ts +11 -0
  6. package/dist/stories/pages/NegotiationsPage.stories.d.ts.map +1 -0
  7. package/dist/stories/pages/ProcurementDetailPage.stories.d.ts +10 -0
  8. package/dist/stories/pages/ProcurementDetailPage.stories.d.ts.map +1 -0
  9. package/dist/stories/pages/ProcurementNewPage.stories.d.ts +9 -0
  10. package/dist/stories/pages/ProcurementNewPage.stories.d.ts.map +1 -0
  11. package/dist/stories/pages/ProcurementPage.stories.d.ts +11 -0
  12. package/dist/stories/pages/ProcurementPage.stories.d.ts.map +1 -0
  13. package/dist/stories/support/negotiationFixtures.d.ts +14 -0
  14. package/dist/stories/support/negotiationFixtures.d.ts.map +1 -0
  15. package/dist/stories/support/procurementFixtures.d.ts +14 -0
  16. package/dist/stories/support/procurementFixtures.d.ts.map +1 -0
  17. package/dist/subscriberbot/SubscriberBotRoutes.d.ts.map +1 -1
  18. package/dist/subscriberbot/SubscriberBotRoutes.js +30 -6
  19. package/dist/subscriberbot/SubscriberBotRoutes.js.map +1 -1
  20. package/dist/subscriberbot/admin/AdminDashboardPage.d.ts.map +1 -1
  21. package/dist/subscriberbot/admin/AdminDashboardPage.js +166 -146
  22. package/dist/subscriberbot/admin/AdminDashboardPage.js.map +1 -1
  23. package/dist/subscriberbot/admin/NegotiationDeskPanel.d.ts +4 -0
  24. package/dist/subscriberbot/admin/NegotiationDeskPanel.d.ts.map +1 -0
  25. package/dist/subscriberbot/admin/NegotiationDeskPanel.js +210 -0
  26. package/dist/subscriberbot/admin/NegotiationDeskPanel.js.map +1 -0
  27. package/dist/subscriberbot/admin/ProcurementDeskPanel.d.ts +4 -0
  28. package/dist/subscriberbot/admin/ProcurementDeskPanel.d.ts.map +1 -0
  29. package/dist/subscriberbot/admin/ProcurementDeskPanel.js +450 -0
  30. package/dist/subscriberbot/admin/ProcurementDeskPanel.js.map +1 -0
  31. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.d.ts +8 -0
  32. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.d.ts.map +1 -0
  33. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js +18 -0
  34. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js.map +1 -0
  35. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.d.ts +8 -0
  36. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.d.ts.map +1 -0
  37. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js +49 -0
  38. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js.map +1 -0
  39. package/dist/subscriberbot/components/negotiations/OutcomeForm.d.ts +13 -0
  40. package/dist/subscriberbot/components/negotiations/OutcomeForm.d.ts.map +1 -0
  41. package/dist/subscriberbot/components/negotiations/OutcomeForm.js +112 -0
  42. package/dist/subscriberbot/components/negotiations/OutcomeForm.js.map +1 -0
  43. package/dist/subscriberbot/components/negotiations/index.d.ts +5 -0
  44. package/dist/subscriberbot/components/negotiations/index.d.ts.map +1 -0
  45. package/dist/subscriberbot/components/negotiations/index.js +4 -0
  46. package/dist/subscriberbot/components/negotiations/labels.d.ts +16 -0
  47. package/dist/subscriberbot/components/negotiations/labels.d.ts.map +1 -0
  48. package/dist/subscriberbot/components/negotiations/labels.js +179 -0
  49. package/dist/subscriberbot/components/negotiations/labels.js.map +1 -0
  50. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.d.ts +12 -0
  51. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.d.ts.map +1 -0
  52. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js +155 -0
  53. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js.map +1 -0
  54. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.d.ts +8 -0
  55. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.d.ts.map +1 -0
  56. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js +18 -0
  57. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js.map +1 -0
  58. package/dist/subscriberbot/components/procurement/ProcurementThread.d.ts +13 -0
  59. package/dist/subscriberbot/components/procurement/ProcurementThread.d.ts.map +1 -0
  60. package/dist/subscriberbot/components/procurement/ProcurementThread.js +51 -0
  61. package/dist/subscriberbot/components/procurement/ProcurementThread.js.map +1 -0
  62. package/dist/subscriberbot/components/procurement/index.d.ts +5 -0
  63. package/dist/subscriberbot/components/procurement/index.d.ts.map +1 -0
  64. package/dist/subscriberbot/components/procurement/index.js +4 -0
  65. package/dist/subscriberbot/components/procurement/labels.d.ts +16 -0
  66. package/dist/subscriberbot/components/procurement/labels.d.ts.map +1 -0
  67. package/dist/subscriberbot/components/procurement/labels.js +154 -0
  68. package/dist/subscriberbot/components/procurement/labels.js.map +1 -0
  69. package/dist/subscriberbot/hooks/useNegotiationApi.d.ts +51 -0
  70. package/dist/subscriberbot/hooks/useNegotiationApi.d.ts.map +1 -0
  71. package/dist/subscriberbot/hooks/useNegotiationApi.js +106 -0
  72. package/dist/subscriberbot/hooks/useNegotiationApi.js.map +1 -0
  73. package/dist/subscriberbot/hooks/useProcurementApi.d.ts +58 -0
  74. package/dist/subscriberbot/hooks/useProcurementApi.d.ts.map +1 -0
  75. package/dist/subscriberbot/hooks/useProcurementApi.js +128 -0
  76. package/dist/subscriberbot/hooks/useProcurementApi.js.map +1 -0
  77. package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts +1 -0
  78. package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts.map +1 -1
  79. package/dist/subscriberbot/hooks/useSubscriberBotApi.js +1 -1
  80. package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
  81. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts +11 -0
  82. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts.map +1 -0
  83. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js +312 -0
  84. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js.map +1 -0
  85. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts +11 -0
  86. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts.map +1 -0
  87. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js +375 -0
  88. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js.map +1 -0
  89. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts +10 -0
  90. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts.map +1 -0
  91. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js +155 -0
  92. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js.map +1 -0
  93. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts +11 -0
  94. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts.map +1 -0
  95. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js +276 -0
  96. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js.map +1 -0
  97. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts +12 -0
  98. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts.map +1 -0
  99. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js +362 -0
  100. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js.map +1 -0
  101. package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts +11 -0
  102. package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts.map +1 -0
  103. package/dist/subscriberbot/pages/procurement/ProcurementPage.js +156 -0
  104. package/dist/subscriberbot/pages/procurement/ProcurementPage.js.map +1 -0
  105. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts.map +1 -1
  106. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +149 -124
  107. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
  108. package/dist/subscriberbot/types/negotiation.d.ts +101 -0
  109. package/dist/subscriberbot/types/negotiation.d.ts.map +1 -0
  110. package/dist/subscriberbot/types/procurement.d.ts +127 -0
  111. package/dist/subscriberbot/types/procurement.d.ts.map +1 -0
  112. package/package.json +1 -1
@@ -1,16 +1,18 @@
1
1
  import { PageLayout as e } from "../components/PageLayout.js";
2
2
  import { formatDate as t } from "../utils/formatters.js";
3
3
  import { StatusBadge as n } from "../components/StatusBadge.js";
4
- import { useTr as r } from "../hooks/useTr.js";
5
- import { useAdapterSubmissions as i, useApproveAdapter as a, useMarketplaceReports as ee, useModerateListing as te, useProviders as ne, useRejectAdapter as re, useUpdateProvider as o } from "../hooks/useSubscriberBotApi.js";
4
+ import { useTr as ee } from "../hooks/useTr.js";
5
+ import { useAdapterSubmissions as r, useApproveAdapter as te, useMarketplaceReports as ne, useModerateListing as re, useProviders as ie, useRejectAdapter as ae, useUpdateProvider as oe } from "../hooks/useSubscriberBotApi.js";
6
+ import { NegotiationDeskPanel as se } from "./NegotiationDeskPanel.js";
7
+ import { ProcurementDeskPanel as ce } from "./ProcurementDeskPanel.js";
6
8
  import "../hooks/index.js";
7
- import { Fragment as s, useState as c } from "react";
8
- import { CheckCircle2 as l, Plug as u, Settings2 as ie, Store as d, XCircle as ae } from "lucide-react";
9
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
10
- import { Button as m, Card as h, CardContent as g, CardDescription as _, CardHeader as v, CardTitle as y, EmptyState as b, Spinner as x, Table as S, TableBody as C, TableCell as w, TableHead as T, TableHeader as E, TableRow as D, Tabs as oe, TabsContent as O, TabsList as se, TabsTrigger as k, Textarea as A } from "@burdenoff/fe-libs/ui";
9
+ import { Fragment as i, useState as a } from "react";
10
+ import { Briefcase as o, CheckCircle2 as s, Handshake as le, Plug as c, Settings2 as ue, Store as l, XCircle as de } from "lucide-react";
11
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
12
+ import { Button as f, Card as p, CardContent as m, CardDescription as h, CardHeader as g, CardTitle as _, EmptyState as v, Spinner as y, Table as b, TableBody as x, TableCell as S, TableHead as C, TableHeader as w, TableRow as T, Tabs as fe, TabsContent as E, TabsList as pe, TabsTrigger as D, Textarea as O } from "@burdenoff/fe-libs/ui";
11
13
  //#region src/subscriberbot/admin/AdminDashboardPage.tsx
12
- var j = () => {
13
- let j = r(), [M, ce] = c("providers"), { data: le, isLoading: ue } = ne({ pagination: { limit: 50 } }), N = o(), P = (e) => {
14
+ var k = () => {
15
+ let k = ee(), [me, A] = a("providers"), { data: j, isLoading: M } = ie({ pagination: { limit: 50 } }), N = oe(), P = (e) => {
14
16
  N.mutate({
15
17
  id: e,
16
18
  input: { status: "VERIFIED" }
@@ -20,21 +22,21 @@ var j = () => {
20
22
  id: e,
21
23
  input: { status: "DEPRECATED" }
22
24
  });
23
- }, I = le?.items ?? [], { data: L, isLoading: R } = i({ pagination: { limit: 50 } }), z = a(), B = re(), [V, H] = c(null), [U, W] = c(""), G = L?.items ?? [], de = (e) => {
25
+ }, I = j?.items ?? [], { data: L, isLoading: R } = r({ pagination: { limit: 50 } }), z = te(), B = ae(), [he, V] = a(null), [H, U] = a(""), W = L?.items ?? [], ge = (e) => {
24
26
  z.mutate({ id: e });
25
- }, fe = (e) => {
26
- H(e), W("");
27
- }, pe = (e) => {
28
- U.trim() && B.mutate({
27
+ }, _e = (e) => {
28
+ V(e), U("");
29
+ }, ve = (e) => {
30
+ H.trim() && B.mutate({
29
31
  id: e,
30
- reason: U.trim()
32
+ reason: H.trim()
31
33
  }, { onSuccess: () => {
32
- H(null), W("");
34
+ V(null), U("");
33
35
  } });
34
- }, { data: me, isLoading: he } = ee({ pagination: { limit: 50 } }), K = te(), [ge, q] = c(null), [J, Y] = c(null), [X, Z] = c(""), Q = me?.items ?? [], $ = (e, t) => {
36
+ }, { data: ye, isLoading: be } = ne({ pagination: { limit: 50 } }), G = re(), [K, q] = a(null), [J, Y] = a(null), [X, Z] = a(""), Q = ye?.items ?? [], $ = (e, t) => {
35
37
  q(e), Y(t), Z("");
36
- }, _e = (e) => {
37
- !J || !X.trim() || K.mutate({
38
+ }, xe = (e) => {
39
+ !J || !X.trim() || G.mutate({
38
40
  id: e,
39
41
  action: J,
40
42
  reason: X.trim()
@@ -42,277 +44,295 @@ var j = () => {
42
44
  q(null), Y(null), Z("");
43
45
  } });
44
46
  };
45
- return /* @__PURE__ */ f(e, {
46
- title: j("admin.title", "SubscriberBot Admin"),
47
- description: j("admin.description", "Provider registry curation, adapter approvals, and marketplace moderation."),
48
- children: /* @__PURE__ */ p(oe, {
49
- value: M,
50
- onValueChange: ce,
47
+ return /* @__PURE__ */ u(e, {
48
+ title: k("admin.title", "SubscriberBot Admin"),
49
+ description: k("admin.description", "Provider registry curation, adapter approvals, and marketplace moderation."),
50
+ children: /* @__PURE__ */ d(fe, {
51
+ value: me,
52
+ onValueChange: A,
51
53
  className: "w-full",
52
54
  children: [
53
- /* @__PURE__ */ p(se, {
54
- className: "mb-4 grid w-full grid-cols-3 sm:w-auto sm:inline-flex",
55
+ /* @__PURE__ */ d(pe, {
56
+ className: "mb-4 grid w-full grid-cols-2 sm:w-auto sm:inline-flex",
55
57
  children: [
56
- /* @__PURE__ */ p(k, {
58
+ /* @__PURE__ */ d(D, {
57
59
  value: "providers",
58
60
  className: "gap-2",
59
- children: [/* @__PURE__ */ f(ie, { size: 16 }), j("admin.tabs.providers", "Provider Registry")]
61
+ children: [/* @__PURE__ */ u(ue, { size: 16 }), k("admin.tabs.providers", "Provider Registry")]
60
62
  }),
61
- /* @__PURE__ */ p(k, {
63
+ /* @__PURE__ */ d(D, {
62
64
  value: "adapters",
63
65
  className: "gap-2",
64
- children: [/* @__PURE__ */ f(u, { size: 16 }), j("admin.tabs.adapters", "Adapter Approvals")]
66
+ children: [/* @__PURE__ */ u(c, { size: 16 }), k("admin.tabs.adapters", "Adapter Approvals")]
65
67
  }),
66
- /* @__PURE__ */ p(k, {
68
+ /* @__PURE__ */ d(D, {
67
69
  value: "marketplace",
68
70
  className: "gap-2",
69
- children: [/* @__PURE__ */ f(d, { size: 16 }), j("admin.tabs.marketplace", "Marketplace Moderation")]
71
+ children: [/* @__PURE__ */ u(l, { size: 16 }), k("admin.tabs.marketplace", "Marketplace Moderation")]
72
+ }),
73
+ /* @__PURE__ */ d(D, {
74
+ value: "negotiations",
75
+ className: "gap-2",
76
+ children: [/* @__PURE__ */ u(le, { size: 16 }), k("admin.tabs.negotiations", "Negotiation Desk")]
77
+ }),
78
+ /* @__PURE__ */ d(D, {
79
+ value: "procurement",
80
+ className: "gap-2",
81
+ children: [/* @__PURE__ */ u(o, { size: 16 }), k("admin.tabs.procurement", "Procurement Desk")]
70
82
  })
71
83
  ]
72
84
  }),
73
- /* @__PURE__ */ f(O, {
85
+ /* @__PURE__ */ u(E, {
74
86
  value: "providers",
75
- children: /* @__PURE__ */ p(h, { children: [/* @__PURE__ */ p(v, { children: [/* @__PURE__ */ f(y, { children: j("admin.providers.title", "Provider registry") }), /* @__PURE__ */ f(_, { children: j("admin.providers.description", "Curate the global provider catalog. Verify submitted providers or deprecate stale entries.") })] }), /* @__PURE__ */ f(g, { children: ue ? /* @__PURE__ */ f("div", {
87
+ children: /* @__PURE__ */ d(p, { children: [/* @__PURE__ */ d(g, { children: [/* @__PURE__ */ u(_, { children: k("admin.providers.title", "Provider registry") }), /* @__PURE__ */ u(h, { children: k("admin.providers.description", "Curate the global provider catalog. Verify submitted providers or deprecate stale entries.") })] }), /* @__PURE__ */ u(m, { children: M ? /* @__PURE__ */ u("div", {
76
88
  className: "flex min-h-[200px] items-center justify-center",
77
- children: /* @__PURE__ */ f(x, { size: "lg" })
78
- }) : I.length === 0 ? /* @__PURE__ */ f(b, {
79
- icon: /* @__PURE__ */ f(d, { className: "size-6 text-action-primary-bg" }),
80
- title: j("admin.providers.emptyTitle", "No providers yet"),
81
- description: j("admin.providers.emptyDescription", "Once providers are created or claimed they will appear here for curation.")
82
- }) : /* @__PURE__ */ f("div", {
89
+ children: /* @__PURE__ */ u(y, { size: "lg" })
90
+ }) : I.length === 0 ? /* @__PURE__ */ u(v, {
91
+ icon: /* @__PURE__ */ u(l, { className: "size-6 text-action-primary-bg" }),
92
+ title: k("admin.providers.emptyTitle", "No providers yet"),
93
+ description: k("admin.providers.emptyDescription", "Once providers are created or claimed they will appear here for curation.")
94
+ }) : /* @__PURE__ */ u("div", {
83
95
  className: "overflow-x-auto",
84
- children: /* @__PURE__ */ p(S, { children: [/* @__PURE__ */ f(E, { children: /* @__PURE__ */ p(D, { children: [
85
- /* @__PURE__ */ f(T, { children: j("admin.providers.table.name", "Name") }),
86
- /* @__PURE__ */ f(T, { children: j("admin.providers.table.category", "Category") }),
87
- /* @__PURE__ */ f(T, { children: j("admin.providers.table.status", "Status") }),
88
- /* @__PURE__ */ f(T, { children: j("admin.providers.table.created", "Created") }),
89
- /* @__PURE__ */ f(T, {
96
+ children: /* @__PURE__ */ d(b, { children: [/* @__PURE__ */ u(w, { children: /* @__PURE__ */ d(T, { children: [
97
+ /* @__PURE__ */ u(C, { children: k("admin.providers.table.name", "Name") }),
98
+ /* @__PURE__ */ u(C, { children: k("admin.providers.table.category", "Category") }),
99
+ /* @__PURE__ */ u(C, { children: k("admin.providers.table.status", "Status") }),
100
+ /* @__PURE__ */ u(C, { children: k("admin.providers.table.created", "Created") }),
101
+ /* @__PURE__ */ u(C, {
90
102
  className: "text-right",
91
- children: j("admin.providers.table.actions", "Actions")
103
+ children: k("admin.providers.table.actions", "Actions")
92
104
  })
93
- ] }) }), /* @__PURE__ */ f(C, { children: I.map((e) => /* @__PURE__ */ p(D, { children: [
94
- /* @__PURE__ */ f(w, {
105
+ ] }) }), /* @__PURE__ */ u(x, { children: I.map((e) => /* @__PURE__ */ d(T, { children: [
106
+ /* @__PURE__ */ u(S, {
95
107
  className: "font-medium text-text-primary",
96
108
  children: e.name
97
109
  }),
98
- /* @__PURE__ */ f(w, {
110
+ /* @__PURE__ */ u(S, {
99
111
  className: "text-text-secondary",
100
112
  children: e.category
101
113
  }),
102
- /* @__PURE__ */ f(w, { children: /* @__PURE__ */ f(n, { status: e.status }) }),
103
- /* @__PURE__ */ f(w, {
114
+ /* @__PURE__ */ u(S, { children: /* @__PURE__ */ u(n, { status: e.status }) }),
115
+ /* @__PURE__ */ u(S, {
104
116
  className: "text-text-secondary",
105
117
  children: t(e.createdAt)
106
118
  }),
107
- /* @__PURE__ */ f(w, {
119
+ /* @__PURE__ */ u(S, {
108
120
  className: "text-right",
109
- children: /* @__PURE__ */ p("div", {
121
+ children: /* @__PURE__ */ d("div", {
110
122
  className: "flex justify-end gap-2",
111
- children: [e.status !== "VERIFIED" && /* @__PURE__ */ p(m, {
123
+ children: [e.status !== "VERIFIED" && /* @__PURE__ */ d(f, {
112
124
  size: "sm",
113
125
  variant: "outline",
114
126
  onClick: () => P(e.id),
115
127
  disabled: N.isPending,
116
- children: [/* @__PURE__ */ f(l, {
128
+ children: [/* @__PURE__ */ u(s, {
117
129
  size: 14,
118
130
  className: "mr-1"
119
- }), j("admin.providers.verify", "Verify")]
120
- }), e.status !== "DEPRECATED" && /* @__PURE__ */ f(m, {
131
+ }), k("admin.providers.verify", "Verify")]
132
+ }), e.status !== "DEPRECATED" && /* @__PURE__ */ u(f, {
121
133
  size: "sm",
122
134
  variant: "secondary",
123
135
  onClick: () => F(e.id),
124
136
  disabled: N.isPending,
125
- children: j("admin.providers.deprecate", "Deprecate")
137
+ children: k("admin.providers.deprecate", "Deprecate")
126
138
  })]
127
139
  })
128
140
  })
129
141
  ] }, e.id)) })] })
130
142
  }) })] })
131
143
  }),
132
- /* @__PURE__ */ f(O, {
144
+ /* @__PURE__ */ u(E, {
133
145
  value: "adapters",
134
- children: /* @__PURE__ */ p(h, { children: [/* @__PURE__ */ p(v, { children: [/* @__PURE__ */ f(y, { children: j("admin.adapters.title", "Adapter approvals") }), /* @__PURE__ */ f(_, { children: j("admin.adapters.description", "Review submitted integration adapters before they are published to the SubscriberBot adapter marketplace.") })] }), /* @__PURE__ */ f(g, { children: R ? /* @__PURE__ */ f("div", {
146
+ children: /* @__PURE__ */ d(p, { children: [/* @__PURE__ */ d(g, { children: [/* @__PURE__ */ u(_, { children: k("admin.adapters.title", "Adapter approvals") }), /* @__PURE__ */ u(h, { children: k("admin.adapters.description", "Review submitted integration adapters before they are published to the SubscriberBot adapter marketplace.") })] }), /* @__PURE__ */ u(m, { children: R ? /* @__PURE__ */ u("div", {
135
147
  className: "flex min-h-[200px] items-center justify-center",
136
- children: /* @__PURE__ */ f(x, { size: "lg" })
137
- }) : G.length === 0 ? /* @__PURE__ */ f(b, {
138
- icon: /* @__PURE__ */ f(u, { className: "size-6 text-action-primary-bg" }),
139
- title: j("admin.adapters.emptyTitle", "No adapter submissions"),
140
- description: j("admin.adapters.emptyDescription", "Submitted integration adapters will appear here for review.")
141
- }) : /* @__PURE__ */ f("div", {
148
+ children: /* @__PURE__ */ u(y, { size: "lg" })
149
+ }) : W.length === 0 ? /* @__PURE__ */ u(v, {
150
+ icon: /* @__PURE__ */ u(c, { className: "size-6 text-action-primary-bg" }),
151
+ title: k("admin.adapters.emptyTitle", "No adapter submissions"),
152
+ description: k("admin.adapters.emptyDescription", "Submitted integration adapters will appear here for review.")
153
+ }) : /* @__PURE__ */ u("div", {
142
154
  className: "overflow-x-auto",
143
- children: /* @__PURE__ */ p(S, { children: [/* @__PURE__ */ f(E, { children: /* @__PURE__ */ p(D, { children: [
144
- /* @__PURE__ */ f(T, { children: j("admin.adapters.table.adapter", "Adapter") }),
145
- /* @__PURE__ */ f(T, { children: j("admin.adapters.table.workspace", "Submitting workspace") }),
146
- /* @__PURE__ */ f(T, { children: j("admin.adapters.table.submitted", "Submitted") }),
147
- /* @__PURE__ */ f(T, { children: j("admin.adapters.table.status", "Status") }),
148
- /* @__PURE__ */ f(T, {
155
+ children: /* @__PURE__ */ d(b, { children: [/* @__PURE__ */ u(w, { children: /* @__PURE__ */ d(T, { children: [
156
+ /* @__PURE__ */ u(C, { children: k("admin.adapters.table.adapter", "Adapter") }),
157
+ /* @__PURE__ */ u(C, { children: k("admin.adapters.table.workspace", "Submitting workspace") }),
158
+ /* @__PURE__ */ u(C, { children: k("admin.adapters.table.submitted", "Submitted") }),
159
+ /* @__PURE__ */ u(C, { children: k("admin.adapters.table.status", "Status") }),
160
+ /* @__PURE__ */ u(C, {
149
161
  className: "text-right",
150
- children: j("admin.adapters.table.actions", "Actions")
162
+ children: k("admin.adapters.table.actions", "Actions")
151
163
  })
152
- ] }) }), /* @__PURE__ */ f(C, { children: G.map((e) => /* @__PURE__ */ p(s, { children: [/* @__PURE__ */ p(D, { children: [
153
- /* @__PURE__ */ f(w, {
164
+ ] }) }), /* @__PURE__ */ u(x, { children: W.map((e) => /* @__PURE__ */ d(i, { children: [/* @__PURE__ */ d(T, { children: [
165
+ /* @__PURE__ */ u(S, {
154
166
  className: "font-medium text-text-primary",
155
167
  children: e.adapterId
156
168
  }),
157
- /* @__PURE__ */ f(w, {
169
+ /* @__PURE__ */ u(S, {
158
170
  className: "text-text-secondary",
159
171
  children: e.submitterWorkspaceId
160
172
  }),
161
- /* @__PURE__ */ f(w, {
173
+ /* @__PURE__ */ u(S, {
162
174
  className: "text-text-secondary",
163
175
  children: t(e.createdAt)
164
176
  }),
165
- /* @__PURE__ */ f(w, { children: /* @__PURE__ */ f(n, { status: e.status }) }),
166
- /* @__PURE__ */ f(w, {
177
+ /* @__PURE__ */ u(S, { children: /* @__PURE__ */ u(n, { status: e.status }) }),
178
+ /* @__PURE__ */ u(S, {
167
179
  className: "text-right",
168
- children: e.status === "PENDING" && /* @__PURE__ */ p("div", {
180
+ children: e.status === "PENDING" && /* @__PURE__ */ d("div", {
169
181
  className: "flex justify-end gap-2",
170
- children: [/* @__PURE__ */ p(m, {
182
+ children: [/* @__PURE__ */ d(f, {
171
183
  size: "sm",
172
184
  variant: "outline",
173
- onClick: () => de(e.id),
185
+ onClick: () => ge(e.id),
174
186
  disabled: z.isPending || B.isPending,
175
- children: [/* @__PURE__ */ f(l, {
187
+ children: [/* @__PURE__ */ u(s, {
176
188
  size: 14,
177
189
  className: "mr-1"
178
- }), j("admin.adapters.approve", "Approve")]
179
- }), /* @__PURE__ */ p(m, {
190
+ }), k("admin.adapters.approve", "Approve")]
191
+ }), /* @__PURE__ */ d(f, {
180
192
  size: "sm",
181
193
  variant: "secondary",
182
- onClick: () => fe(e.id),
194
+ onClick: () => _e(e.id),
183
195
  disabled: z.isPending || B.isPending,
184
- children: [/* @__PURE__ */ f(ae, {
196
+ children: [/* @__PURE__ */ u(de, {
185
197
  size: 14,
186
198
  className: "mr-1"
187
- }), j("admin.adapters.reject", "Reject")]
199
+ }), k("admin.adapters.reject", "Reject")]
188
200
  })]
189
201
  })
190
202
  })
191
- ] }), V === e.id && /* @__PURE__ */ f(D, { children: /* @__PURE__ */ f(w, {
203
+ ] }), he === e.id && /* @__PURE__ */ u(T, { children: /* @__PURE__ */ u(S, {
192
204
  colSpan: 5,
193
205
  className: "bg-bg-sunken",
194
- children: /* @__PURE__ */ p("div", {
206
+ children: /* @__PURE__ */ d("div", {
195
207
  className: "flex flex-col gap-2 py-1 sm:flex-row sm:items-start",
196
- children: [/* @__PURE__ */ f(A, {
197
- value: U,
198
- onChange: (e) => W(e.target.value),
199
- placeholder: j("admin.adapters.rejectPlaceholder", "Reason for rejecting this adapter submission (required)"),
208
+ children: [/* @__PURE__ */ u(O, {
209
+ value: H,
210
+ onChange: (e) => U(e.target.value),
211
+ placeholder: k("admin.adapters.rejectPlaceholder", "Reason for rejecting this adapter submission (required)"),
200
212
  className: "min-h-[60px] flex-1",
201
213
  autoFocus: !0
202
- }), /* @__PURE__ */ p("div", {
214
+ }), /* @__PURE__ */ d("div", {
203
215
  className: "flex gap-2 sm:flex-col",
204
- children: [/* @__PURE__ */ f(m, {
216
+ children: [/* @__PURE__ */ u(f, {
205
217
  size: "sm",
206
218
  variant: "destructive",
207
- onClick: () => pe(e.id),
208
- disabled: !U.trim() || B.isPending,
209
- children: j("admin.adapters.confirmReject", "Confirm reject")
210
- }), /* @__PURE__ */ f(m, {
219
+ onClick: () => ve(e.id),
220
+ disabled: !H.trim() || B.isPending,
221
+ children: k("admin.adapters.confirmReject", "Confirm reject")
222
+ }), /* @__PURE__ */ u(f, {
211
223
  size: "sm",
212
224
  variant: "outline",
213
- onClick: () => H(null),
225
+ onClick: () => V(null),
214
226
  disabled: B.isPending,
215
- children: j("admin.adapters.cancel", "Cancel")
227
+ children: k("admin.adapters.cancel", "Cancel")
216
228
  })]
217
229
  })]
218
230
  })
219
231
  }) }, `${e.id}-reject`)] }, e.id)) })] })
220
232
  }) })] })
221
233
  }),
222
- /* @__PURE__ */ f(O, {
234
+ /* @__PURE__ */ u(E, {
223
235
  value: "marketplace",
224
- children: /* @__PURE__ */ p(h, { children: [/* @__PURE__ */ p(v, { children: [/* @__PURE__ */ f(y, { children: j("admin.marketplace.title", "Marketplace moderation") }), /* @__PURE__ */ f(_, { children: j("admin.marketplace.description", "Review reported marketplace listings and take moderation actions.") })] }), /* @__PURE__ */ f(g, { children: he ? /* @__PURE__ */ f("div", {
236
+ children: /* @__PURE__ */ d(p, { children: [/* @__PURE__ */ d(g, { children: [/* @__PURE__ */ u(_, { children: k("admin.marketplace.title", "Marketplace moderation") }), /* @__PURE__ */ u(h, { children: k("admin.marketplace.description", "Review reported marketplace listings and take moderation actions.") })] }), /* @__PURE__ */ u(m, { children: be ? /* @__PURE__ */ u("div", {
225
237
  className: "flex min-h-[200px] items-center justify-center",
226
- children: /* @__PURE__ */ f(x, { size: "lg" })
227
- }) : Q.length === 0 ? /* @__PURE__ */ f(b, {
228
- icon: /* @__PURE__ */ f(d, { className: "size-6 text-action-primary-bg" }),
229
- title: j("admin.marketplace.emptyTitle", "No reported listings"),
230
- description: j("admin.marketplace.emptyDescription", "Reported marketplace listings will appear here for moderation.")
231
- }) : /* @__PURE__ */ f("div", {
238
+ children: /* @__PURE__ */ u(y, { size: "lg" })
239
+ }) : Q.length === 0 ? /* @__PURE__ */ u(v, {
240
+ icon: /* @__PURE__ */ u(l, { className: "size-6 text-action-primary-bg" }),
241
+ title: k("admin.marketplace.emptyTitle", "No reported listings"),
242
+ description: k("admin.marketplace.emptyDescription", "Reported marketplace listings will appear here for moderation.")
243
+ }) : /* @__PURE__ */ u("div", {
232
244
  className: "overflow-x-auto",
233
- children: /* @__PURE__ */ p(S, { children: [/* @__PURE__ */ f(E, { children: /* @__PURE__ */ p(D, { children: [
234
- /* @__PURE__ */ f(T, { children: j("admin.marketplace.table.listing", "Listing") }),
235
- /* @__PURE__ */ f(T, { children: j("admin.marketplace.table.workspace", "Reporting workspace") }),
236
- /* @__PURE__ */ f(T, { children: j("admin.marketplace.table.reported", "Reported") }),
237
- /* @__PURE__ */ f(T, { children: j("admin.marketplace.table.reason", "Reason") }),
238
- /* @__PURE__ */ f(T, { children: j("admin.marketplace.table.status", "Status") }),
239
- /* @__PURE__ */ f(T, {
245
+ children: /* @__PURE__ */ d(b, { children: [/* @__PURE__ */ u(w, { children: /* @__PURE__ */ d(T, { children: [
246
+ /* @__PURE__ */ u(C, { children: k("admin.marketplace.table.listing", "Listing") }),
247
+ /* @__PURE__ */ u(C, { children: k("admin.marketplace.table.workspace", "Reporting workspace") }),
248
+ /* @__PURE__ */ u(C, { children: k("admin.marketplace.table.reported", "Reported") }),
249
+ /* @__PURE__ */ u(C, { children: k("admin.marketplace.table.reason", "Reason") }),
250
+ /* @__PURE__ */ u(C, { children: k("admin.marketplace.table.status", "Status") }),
251
+ /* @__PURE__ */ u(C, {
240
252
  className: "text-right",
241
- children: j("admin.marketplace.table.actions", "Actions")
253
+ children: k("admin.marketplace.table.actions", "Actions")
242
254
  })
243
- ] }) }), /* @__PURE__ */ f(C, { children: Q.map((e) => /* @__PURE__ */ p(s, { children: [/* @__PURE__ */ p(D, { children: [
244
- /* @__PURE__ */ f(w, {
255
+ ] }) }), /* @__PURE__ */ u(x, { children: Q.map((e) => /* @__PURE__ */ d(i, { children: [/* @__PURE__ */ d(T, { children: [
256
+ /* @__PURE__ */ u(S, {
245
257
  className: "font-medium text-text-primary",
246
258
  children: e.listingId
247
259
  }),
248
- /* @__PURE__ */ f(w, {
260
+ /* @__PURE__ */ u(S, {
249
261
  className: "text-text-secondary",
250
262
  children: e.reporterWorkspaceId
251
263
  }),
252
- /* @__PURE__ */ f(w, {
264
+ /* @__PURE__ */ u(S, {
253
265
  className: "text-text-secondary",
254
266
  children: t(e.createdAt)
255
267
  }),
256
- /* @__PURE__ */ f(w, {
268
+ /* @__PURE__ */ u(S, {
257
269
  className: "text-text-secondary",
258
270
  children: e.reason
259
271
  }),
260
- /* @__PURE__ */ f(w, { children: /* @__PURE__ */ f(n, { status: e.status }) }),
261
- /* @__PURE__ */ f(w, {
272
+ /* @__PURE__ */ u(S, { children: /* @__PURE__ */ u(n, { status: e.status }) }),
273
+ /* @__PURE__ */ u(S, {
262
274
  className: "text-right",
263
- children: e.status === "PENDING" && /* @__PURE__ */ p("div", {
275
+ children: e.status === "PENDING" && /* @__PURE__ */ d("div", {
264
276
  className: "flex justify-end gap-2",
265
- children: [/* @__PURE__ */ f(m, {
277
+ children: [/* @__PURE__ */ u(f, {
266
278
  size: "sm",
267
279
  variant: "outline",
268
280
  onClick: () => $(e.id, "DISMISS"),
269
- disabled: K.isPending,
270
- children: j("admin.marketplace.dismiss", "Dismiss")
271
- }), /* @__PURE__ */ f(m, {
281
+ disabled: G.isPending,
282
+ children: k("admin.marketplace.dismiss", "Dismiss")
283
+ }), /* @__PURE__ */ u(f, {
272
284
  size: "sm",
273
285
  variant: "destructive",
274
286
  onClick: () => $(e.id, "REMOVE_LISTING"),
275
- disabled: K.isPending,
276
- children: j("admin.marketplace.remove", "Remove")
287
+ disabled: G.isPending,
288
+ children: k("admin.marketplace.remove", "Remove")
277
289
  })]
278
290
  })
279
291
  })
280
- ] }), ge === e.id && /* @__PURE__ */ f(D, { children: /* @__PURE__ */ f(w, {
292
+ ] }), K === e.id && /* @__PURE__ */ u(T, { children: /* @__PURE__ */ u(S, {
281
293
  colSpan: 6,
282
294
  className: "bg-bg-sunken",
283
- children: /* @__PURE__ */ p("div", {
295
+ children: /* @__PURE__ */ d("div", {
284
296
  className: "flex flex-col gap-2 py-1 sm:flex-row sm:items-start",
285
- children: [/* @__PURE__ */ f(A, {
297
+ children: [/* @__PURE__ */ u(O, {
286
298
  value: X,
287
299
  onChange: (e) => Z(e.target.value),
288
- placeholder: J === "REMOVE_LISTING" ? j("admin.marketplace.reasonPlaceholderRemove", "Reason to remove this listing (required)") : j("admin.marketplace.reasonPlaceholderDismiss", "Reason to dismiss this report (required)"),
300
+ placeholder: J === "REMOVE_LISTING" ? k("admin.marketplace.reasonPlaceholderRemove", "Reason to remove this listing (required)") : k("admin.marketplace.reasonPlaceholderDismiss", "Reason to dismiss this report (required)"),
289
301
  className: "min-h-[60px] flex-1",
290
302
  autoFocus: !0
291
- }), /* @__PURE__ */ p("div", {
303
+ }), /* @__PURE__ */ d("div", {
292
304
  className: "flex gap-2 sm:flex-col",
293
- children: [/* @__PURE__ */ f(m, {
305
+ children: [/* @__PURE__ */ u(f, {
294
306
  size: "sm",
295
307
  variant: J === "REMOVE_LISTING" ? "destructive" : "outline",
296
- onClick: () => _e(e.id),
297
- disabled: !X.trim() || K.isPending,
298
- children: J === "REMOVE_LISTING" ? j("admin.marketplace.confirmRemoval", "Confirm removal") : j("admin.marketplace.confirmDismissal", "Confirm dismissal")
299
- }), /* @__PURE__ */ f(m, {
308
+ onClick: () => xe(e.id),
309
+ disabled: !X.trim() || G.isPending,
310
+ children: J === "REMOVE_LISTING" ? k("admin.marketplace.confirmRemoval", "Confirm removal") : k("admin.marketplace.confirmDismissal", "Confirm dismissal")
311
+ }), /* @__PURE__ */ u(f, {
300
312
  size: "sm",
301
313
  variant: "outline",
302
314
  onClick: () => q(null),
303
- disabled: K.isPending,
304
- children: j("admin.marketplace.cancel", "Cancel")
315
+ disabled: G.isPending,
316
+ children: k("admin.marketplace.cancel", "Cancel")
305
317
  })]
306
318
  })]
307
319
  })
308
320
  }) }, `${e.id}-moderate`)] }, e.id)) })] })
309
321
  }) })] })
322
+ }),
323
+ /* @__PURE__ */ u(E, {
324
+ value: "negotiations",
325
+ children: /* @__PURE__ */ d(p, { children: [/* @__PURE__ */ d(g, { children: [/* @__PURE__ */ u(_, { children: k("admin.desk.title", "Negotiation desk") }), /* @__PURE__ */ u(h, { children: k("admin.desk.description", "Managed bill negotiations customers authorised, across all workspaces. Recording a successful outcome bills the success fee in global billing.") })] }), /* @__PURE__ */ u(m, { children: /* @__PURE__ */ u(se, {}) })] })
326
+ }),
327
+ /* @__PURE__ */ u(E, {
328
+ value: "procurement",
329
+ children: /* @__PURE__ */ d(p, { children: [/* @__PURE__ */ d(g, { children: [/* @__PURE__ */ u(_, { children: k("admin.procurement.title", "Procurement desk") }), /* @__PURE__ */ u(h, { children: k("admin.procurement.description", "Expert procurement requests customers authorised, across all workspaces, earliest deadline first. Recording a successful outcome bills the success fee in global billing.") })] }), /* @__PURE__ */ u(m, { children: /* @__PURE__ */ u(ce, {}) })] })
310
330
  })
311
331
  ]
312
332
  })
313
333
  });
314
334
  };
315
335
  //#endregion
316
- export { j as AdminDashboardPage };
336
+ export { k as AdminDashboardPage };
317
337
 
318
338
  //# sourceMappingURL=AdminDashboardPage.js.map