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