@burdenoff/microfe-botmanor 2026.1127.1 → 2026.1127.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/botlit/BotmanorRootInner.js +45 -44
  2. package/dist/botlit/BotmanorRootInner.js.map +1 -1
  3. package/dist/botlit/components/AgentA2APanel.js +63 -62
  4. package/dist/botlit/components/AgentA2APanel.js.map +1 -1
  5. package/dist/botlit/components/AgentBindingsPanel.js +125 -124
  6. package/dist/botlit/components/AgentBindingsPanel.js.map +1 -1
  7. package/dist/botlit/components/AgentFallbackModelsPicker.js +56 -55
  8. package/dist/botlit/components/AgentFallbackModelsPicker.js.map +1 -1
  9. package/dist/botlit/components/AiOperationsPanel.js.map +1 -1
  10. package/dist/botlit/components/AssistantChannelPanel.js +40 -39
  11. package/dist/botlit/components/AssistantChannelPanel.js.map +1 -1
  12. package/dist/botlit/components/AssistantRuntimeSetupPanel.js +36 -35
  13. package/dist/botlit/components/AssistantRuntimeSetupPanel.js.map +1 -1
  14. package/dist/botlit/components/BotAgentsPanel.js +104 -103
  15. package/dist/botlit/components/BotAgentsPanel.js.map +1 -1
  16. package/dist/botlit/components/BotFormFields.js +118 -117
  17. package/dist/botlit/components/BotFormFields.js.map +1 -1
  18. package/dist/botlit/components/BucketDialogs.js +110 -110
  19. package/dist/botlit/components/BucketDialogs.js.map +1 -1
  20. package/dist/botlit/components/ChannelRoutesPanel.js +29 -28
  21. package/dist/botlit/components/ChannelRoutesPanel.js.map +1 -1
  22. package/dist/botlit/components/CreateChannelRouteDialog.js +105 -105
  23. package/dist/botlit/components/CreateChannelRouteDialog.js.map +1 -1
  24. package/dist/botlit/components/DescribeBotDialog.js +86 -86
  25. package/dist/botlit/components/DescribeBotDialog.js.map +1 -1
  26. package/dist/botlit/components/EmptyState.d.ts +8 -0
  27. package/dist/botlit/components/EmptyState.js +43 -30
  28. package/dist/botlit/components/EmptyState.js.map +1 -1
  29. package/dist/botlit/components/HandoffConfigPanel.js +125 -124
  30. package/dist/botlit/components/HandoffConfigPanel.js.map +1 -1
  31. package/dist/botlit/components/HandoffTargetPickers.js +42 -41
  32. package/dist/botlit/components/HandoffTargetPickers.js.map +1 -1
  33. package/dist/botlit/components/KnowledgeBackendMigrationPanel.js +106 -105
  34. package/dist/botlit/components/KnowledgeBackendMigrationPanel.js.map +1 -1
  35. package/dist/botlit/components/KnowledgeRetrievalTestPanel.js +76 -75
  36. package/dist/botlit/components/KnowledgeRetrievalTestPanel.js.map +1 -1
  37. package/dist/botlit/components/KnowledgeSourceImportPanel.js +76 -75
  38. package/dist/botlit/components/KnowledgeSourceImportPanel.js.map +1 -1
  39. package/dist/botlit/components/ModelRegistrationPanel.js +70 -69
  40. package/dist/botlit/components/ModelRegistrationPanel.js.map +1 -1
  41. package/dist/botlit/components/StorePackageDraftCard.js +87 -86
  42. package/dist/botlit/components/StorePackageDraftCard.js.map +1 -1
  43. package/dist/botlit/components/SuggestionsPanel.js.map +1 -1
  44. package/dist/botlit/pages/A2AAgentDetailPage.js +263 -262
  45. package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
  46. package/dist/botlit/pages/A2ARegistryPage.js +47 -46
  47. package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
  48. package/dist/botlit/pages/AgentBuilderPage.js +426 -425
  49. package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
  50. package/dist/botlit/pages/AgentDetailPage.js +1 -0
  51. package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
  52. package/dist/botlit/pages/AgentsListPage.js +248 -247
  53. package/dist/botlit/pages/AgentsListPage.js.map +1 -1
  54. package/dist/botlit/pages/BotChannelsTab.js +324 -310
  55. package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
  56. package/dist/botlit/pages/BotDetailPage.js +1 -0
  57. package/dist/botlit/pages/BotDetailPage.js.map +1 -1
  58. package/dist/botlit/pages/BotWorkflowTab.js +126 -121
  59. package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
  60. package/dist/botlit/pages/BotsListPage.js +1 -0
  61. package/dist/botlit/pages/BotsListPage.js.map +1 -1
  62. package/dist/botlit/pages/BucketDetailPage.js +1 -0
  63. package/dist/botlit/pages/BucketDetailPage.js.map +1 -1
  64. package/dist/botlit/pages/BucketsPage.js +1 -0
  65. package/dist/botlit/pages/BucketsPage.js.map +1 -1
  66. package/dist/botlit/pages/ChannelDetailPage.js +267 -266
  67. package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
  68. package/dist/botlit/pages/ChannelsPage.js +187 -186
  69. package/dist/botlit/pages/ChannelsPage.js.map +1 -1
  70. package/dist/botlit/pages/ChatPage.js +69 -68
  71. package/dist/botlit/pages/ChatPage.js.map +1 -1
  72. package/dist/botlit/pages/ExecutionDetailPage.js +1 -0
  73. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  74. package/dist/botlit/pages/ExecutionsPage.js +191 -191
  75. package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
  76. package/dist/botlit/pages/HandoffsPage.js +65 -64
  77. package/dist/botlit/pages/HandoffsPage.js.map +1 -1
  78. package/dist/botlit/pages/InstalledPackagesPage.js +146 -145
  79. package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
  80. package/dist/botlit/pages/KnowledgeBaseDetailPage.js +235 -234
  81. package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
  82. package/dist/botlit/pages/KnowledgeBasesPage.js +152 -151
  83. package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
  84. package/dist/botlit/pages/MCPServerDetailPage.js +180 -179
  85. package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
  86. package/dist/botlit/pages/MCPServersPage.js +145 -145
  87. package/dist/botlit/pages/MCPServersPage.js.map +1 -1
  88. package/dist/botlit/pages/PoliciesPage.js.map +1 -1
  89. package/dist/botlit/pages/PolicyDetailPage.js +293 -292
  90. package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
  91. package/dist/botlit/pages/PromptStudioPage.js +229 -229
  92. package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
  93. package/dist/botlit/pages/PromptTemplateDetailPage.js +280 -279
  94. package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
  95. package/dist/botlit/pages/PromptTemplatesPage.js +31 -30
  96. package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
  97. package/dist/botlit/pages/RetrievalProfileDetailPage.js +204 -203
  98. package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
  99. package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
  100. package/dist/botlit/pages/SettingsPage.js +153 -153
  101. package/dist/botlit/pages/SettingsPage.js.map +1 -1
  102. package/dist/botlit/pages/SkillDetailPage.js +305 -304
  103. package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
  104. package/dist/botlit/pages/SkillsPage.js.map +1 -1
  105. package/dist/botlit/pages/StorePackageDetailPage.js +1 -0
  106. package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
  107. package/dist/botlit/pages/StorePage.js +173 -173
  108. package/dist/botlit/pages/StorePage.js.map +1 -1
  109. package/dist/botlit/utils/confirmAction.d.ts +13 -11
  110. package/dist/botlit/utils/confirmAction.js +26 -4
  111. package/dist/botlit/utils/confirmAction.js.map +1 -1
  112. package/package.json +3 -3
@@ -5,33 +5,33 @@ import { BOTMANOR_PERMISSIONS as r } from "../permissions/botmanorPermissions.js
5
5
  import { BotmanorPermissionGate as i } from "../permissions/useBotmanorPermissions.js";
6
6
  import { Card as ee, CardContent as te, CardDescription as a, CardHeader as o, CardTitle as s } from "../components/Card.js";
7
7
  import { Button as c } from "../components/Button.js";
8
- import { Input as l } from "../components/Input.js";
9
- import { Badge as u, StatusBadge as ne } from "../components/Badge.js";
10
- import { EmptyState as d } from "../components/EmptyState.js";
11
- import { ErrorState as re } from "../components/ErrorState.js";
12
- import { useAllChannelRoutes as ie, useChannelConnectors as ae, useChannelOverview as oe } from "../hooks/useChannels.js";
13
- import { LoadMore as se } from "../components/LoadMore.js";
14
- import { ChannelRoutesPanel as f } from "../components/ChannelRoutesPanel.js";
8
+ import { Input as ne } from "../components/Input.js";
9
+ import { Badge as l, StatusBadge as re } from "../components/Badge.js";
10
+ import { EmptyState as u } from "../components/EmptyState.js";
11
+ import { ErrorState as ie } from "../components/ErrorState.js";
12
+ import { useAllChannelRoutes as ae, useChannelConnectors as oe, useChannelOverview as se } from "../hooks/useChannels.js";
13
+ import { LoadMore as ce } from "../components/LoadMore.js";
14
+ import { ChannelRoutesPanel as le } from "../components/ChannelRoutesPanel.js";
15
15
  import "../hooks/index.js";
16
- import { formatRelativeTime as p } from "../utils/formatters.js";
17
- import { channelTypeLabel as m } from "../utils/channelConnectors.js";
16
+ import { formatRelativeTime as d } from "../utils/formatters.js";
17
+ import { channelTypeLabel as f } from "../utils/channelConnectors.js";
18
18
  import "../permissions/index.js";
19
- import { useMemo as h, useRef as g, useState as _ } from "react";
20
- import { GlassCard as v, PagePurpose as y } from "@burdenoff/fe-libs/ui";
21
- import { jsx as b, jsxs as x } from "react/jsx-runtime";
22
- import { Link as S, useSearchParams as ce } from "react-router";
23
- import { Filter as le, Globe as C, Hash as w, MessageSquare as T, Plus as ue, Search as de, Slack as E, Webhook as D } from "lucide-react";
19
+ import { useMemo as p, useRef as m, useState as h } from "react";
20
+ import { GlassCard as g, PagePurpose as _, ThemedSelect as v } from "@burdenoff/fe-libs/ui";
21
+ import { jsx as y, jsxs as b } from "react/jsx-runtime";
22
+ import { Link as x, useSearchParams as ue } from "react-router";
23
+ import { Filter as de, Globe as S, Hash as C, MessageSquare as w, Plus as fe, Search as pe, Slack as T, Webhook as E } from "lucide-react";
24
24
  // src/botlit/pages/ChannelsPage.tsx
25
- var O = ({ type: e, className: t }) => {
25
+ var D = ({ type: e, className: t }) => {
26
26
  switch (e) {
27
- case "SLACK": return /* @__PURE__ */ b(E, { className: t });
28
- case "DISCORD": return /* @__PURE__ */ b(w, { className: t });
29
- case "TEAMS": return /* @__PURE__ */ b(T, { className: t });
30
- case "WEB_WIDGET": return /* @__PURE__ */ b(C, { className: t });
31
- case "WEBHOOK": return /* @__PURE__ */ b(D, { className: t });
32
- default: return /* @__PURE__ */ b(T, { className: t });
27
+ case "SLACK": return /* @__PURE__ */ y(T, { className: t });
28
+ case "DISCORD": return /* @__PURE__ */ y(C, { className: t });
29
+ case "TEAMS": return /* @__PURE__ */ y(w, { className: t });
30
+ case "WEB_WIDGET": return /* @__PURE__ */ y(S, { className: t });
31
+ case "WEBHOOK": return /* @__PURE__ */ y(E, { className: t });
32
+ default: return /* @__PURE__ */ y(w, { className: t });
33
33
  }
34
- }, k = ["connectors", "routes"], A = [
34
+ }, O = ["connectors", "routes"], k = [
35
35
  "WEB_WIDGET",
36
36
  "SLACK",
37
37
  "TEAMS",
@@ -39,87 +39,87 @@ var O = ({ type: e, className: t }) => {
39
39
  "WHATSAPP",
40
40
  "WEBHOOK",
41
41
  "CUSTOM"
42
- ], j = [
42
+ ], A = [
43
43
  "ACTIVE",
44
44
  "DRAFT",
45
45
  "DEPRECATED",
46
46
  "ARCHIVED"
47
- ], M = "h-10 rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm", N = () => {
48
- let C = t(), { getPath: w, navigateTo: E } = e(), [D, N] = ce(), P = D.get("tab") === "routes" ? "routes" : "connectors", F = g({
47
+ ], j = "h-10 rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm", M = () => {
48
+ let S = t(), { getPath: C, navigateTo: T } = e(), [E, M] = ue(), N = E.get("tab") === "routes" ? "routes" : "connectors", P = m({
49
49
  connectors: null,
50
50
  routes: null
51
- }), [I, L] = _(""), [R, z] = _(!1), [B, V] = _(""), [H, U] = _(""), fe = h(() => ({
52
- search: I,
53
- type: B ? [B] : void 0,
54
- status: H ? [H] : void 0
51
+ }), [F, I] = h(""), [L, R] = h(!1), [z, B] = h(""), [V, H] = h(""), me = p(() => ({
52
+ search: F,
53
+ type: z ? [z] : void 0,
54
+ status: V ? [V] : void 0
55
55
  }), [
56
- I,
57
- B,
58
- H
59
- ]), { data: W, loading: G, error: K, refetch: pe, hasMore: me, loadingMore: he, loadMore: ge } = ae(fe), { data: q, error: _e, refetch: J } = oe(), { data: Y, loading: ve, error: X, refetch: ye } = ie(), Z = !ve && !X, be = h(() => {
56
+ F,
57
+ z,
58
+ V
59
+ ]), { data: U, loading: W, error: G, refetch: he, hasMore: ge, loadingMore: _e, loadMore: ve } = oe(me), { data: K, error: ye, refetch: q } = se(), { data: J, loading: be, error: Y, refetch: xe } = ae(), X = !be && !Y, Se = p(() => {
60
60
  let e = /* @__PURE__ */ new Map();
61
- for (let t of Y) t.isActive && e.set(t.connectorId, (e.get(t.connectorId) ?? 0) + 1);
61
+ for (let t of J) t.isActive && e.set(t.connectorId, (e.get(t.connectorId) ?? 0) + 1);
62
62
  return e;
63
- }, [Y]), xe = !!(I.trim() || B || H), Se = q?.connectorCount === 0, Q = (e) => {
64
- let t = new URLSearchParams(D);
65
- e === "connectors" ? t.delete("tab") : t.set("tab", e), N(t, { replace: !0 });
66
- }, Ce = (e, t) => {
63
+ }, [J]), Ce = !!(F.trim() || z || V), we = K?.connectorCount === 0, Z = (e) => {
64
+ let t = new URLSearchParams(E);
65
+ e === "connectors" ? t.delete("tab") : t.set("tab", e), M(t, { replace: !0 });
66
+ }, Q = (e, t) => {
67
67
  let n = null;
68
- if (e.key === "ArrowRight" ? n = (t + 1) % k.length : e.key === "ArrowLeft" ? n = (t - 1 + k.length) % k.length : e.key === "Home" ? n = 0 : e.key === "End" && (n = k.length - 1), n === null) return;
68
+ if (e.key === "ArrowRight" ? n = (t + 1) % O.length : e.key === "ArrowLeft" ? n = (t - 1 + O.length) % O.length : e.key === "Home" ? n = 0 : e.key === "End" && (n = O.length - 1), n === null) return;
69
69
  e.preventDefault();
70
- let r = k[n];
71
- Q(r), F.current[r]?.focus();
72
- }, we = (e) => e === "connectors" ? q ? C("botlit.channels.tabs.connectorsCount", "Connectors ({{count}})", { count: q.connectorCount }) : C("botlit.channels.tabs.connectors", "Connectors") : q ? C("botlit.channels.tabs.routesCount", "Routes ({{active}} on of {{count}})", {
73
- active: q.activeRouteCount,
74
- count: q.routeCount
75
- }) : C("botlit.channels.tabs.routes", "Routes"), $ = /* @__PURE__ */ b(i, {
70
+ let r = O[n];
71
+ Z(r), P.current[r]?.focus();
72
+ }, Te = (e) => e === "connectors" ? K ? S("botlit.channels.tabs.connectorsCount", "Connectors ({{count}})", { count: K.connectorCount }) : S("botlit.channels.tabs.connectors", "Connectors") : K ? S("botlit.channels.tabs.routesCount", "Routes ({{active}} on of {{count}})", {
73
+ active: K.activeRouteCount,
74
+ count: K.routeCount
75
+ }) : S("botlit.channels.tabs.routes", "Routes"), $ = /* @__PURE__ */ y(i, {
76
76
  permission: r.CHANNEL_CREATE,
77
- children: /* @__PURE__ */ b(c, {
78
- leftIcon: /* @__PURE__ */ b(ue, { size: 16 }),
79
- onClick: () => E("channels/new"),
80
- children: C("botlit.channels.actions.addChannel", "Add Channel")
77
+ children: /* @__PURE__ */ y(c, {
78
+ leftIcon: /* @__PURE__ */ y(fe, { size: 16 }),
79
+ onClick: () => T("channels/new"),
80
+ children: S("botlit.channels.actions.addChannel", "Add Channel")
81
81
  })
82
82
  });
83
- return /* @__PURE__ */ b(n, {
84
- title: C("botlit.channels.title", "Channels"),
85
- description: C("botlit.channels.description", "Connect agents to messaging platforms and configure routing"),
86
- actions: /* @__PURE__ */ x("div", {
83
+ return /* @__PURE__ */ y(n, {
84
+ title: S("botlit.channels.title", "Channels"),
85
+ description: S("botlit.channels.description", "Connect agents to messaging platforms and configure routing"),
86
+ actions: /* @__PURE__ */ b("div", {
87
87
  className: "flex gap-2",
88
- children: [/* @__PURE__ */ b(c, {
88
+ children: [/* @__PURE__ */ y(c, {
89
89
  variant: "outline",
90
- onClick: () => E("channels/routes"),
91
- children: C("botlit.channels.actions.viewRoutes", "View Routes")
92
- }), !(P === "connectors" && Se) && $]
90
+ onClick: () => T("channels/routes"),
91
+ children: S("botlit.channels.actions.viewRoutes", "View Routes")
92
+ }), !(N === "connectors" && we) && $]
93
93
  }),
94
- children: /* @__PURE__ */ x("div", {
94
+ children: /* @__PURE__ */ b("div", {
95
95
  className: "space-y-6",
96
96
  children: [
97
- /* @__PURE__ */ b(y, {
98
- icon: /* @__PURE__ */ b(T, { size: 18 }),
99
- children: C("botlit.channels.purpose", "Channels are where your bots actually talk to people. Connect a messaging platform — a website chat widget, Slack, Microsoft Teams, Discord, WhatsApp or a custom webhook — then add a route that points an incoming location at the bot that should answer. Use this page to manage those connectors and routing rules in one place.")
97
+ /* @__PURE__ */ y(_, {
98
+ icon: /* @__PURE__ */ y(w, { size: 18 }),
99
+ children: S("botlit.channels.purpose", "Channels are where your bots actually talk to people. Connect a messaging platform — a website chat widget, Slack, Microsoft Teams, Discord, WhatsApp or a custom webhook — then add a route that points an incoming location at the bot that should answer. Use this page to manage those connectors and routing rules in one place.")
100
100
  }),
101
- _e && /* @__PURE__ */ x("div", {
101
+ ye && /* @__PURE__ */ b("div", {
102
102
  role: "alert",
103
103
  className: "flex flex-wrap items-center justify-between gap-3 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle px-4 py-3 text-sm",
104
- children: [/* @__PURE__ */ b("span", {
104
+ children: [/* @__PURE__ */ y("span", {
105
105
  className: "text-text-primary",
106
- children: C("botlit.channels.errors.overview", "Channel totals could not be loaded.")
107
- }), /* @__PURE__ */ b(c, {
106
+ children: S("botlit.channels.errors.overview", "Channel totals could not be loaded.")
107
+ }), /* @__PURE__ */ y(c, {
108
108
  variant: "outline",
109
109
  size: "sm",
110
- onClick: () => void J(),
111
- children: C("botlit.common.retry", "Retry")
110
+ onClick: () => void q(),
111
+ children: S("botlit.common.retry", "Retry")
112
112
  })]
113
113
  }),
114
- /* @__PURE__ */ b("div", {
114
+ /* @__PURE__ */ y("div", {
115
115
  role: "tablist",
116
- "aria-label": C("botlit.channels.tabs.label", "Channels sections"),
116
+ "aria-label": S("botlit.channels.tabs.label", "Channels sections"),
117
117
  className: "flex gap-1 border-b border-border-subtle",
118
- children: k.map((e, t) => {
119
- let n = P === e;
120
- return /* @__PURE__ */ b("button", {
118
+ children: O.map((e, t) => {
119
+ let n = N === e;
120
+ return /* @__PURE__ */ y("button", {
121
121
  ref: (t) => {
122
- F.current[e] = t;
122
+ P.current[e] = t;
123
123
  },
124
124
  type: "button",
125
125
  role: "tab",
@@ -127,253 +127,254 @@ var O = ({ type: e, className: t }) => {
127
127
  "aria-selected": n,
128
128
  "aria-controls": `channels-panel-${e}`,
129
129
  tabIndex: n ? 0 : -1,
130
- onClick: () => Q(e),
131
- onKeyDown: (e) => Ce(e, t),
130
+ onClick: () => Z(e),
131
+ onKeyDown: (e) => Q(e, t),
132
132
  className: `px-4 py-2 text-sm font-medium border-b-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary ${n ? "border-primary text-primary" : "border-transparent text-text-secondary hover:text-text-primary"}`,
133
- children: we(e)
133
+ children: Te(e)
134
134
  }, e);
135
135
  })
136
136
  }),
137
- P === "connectors" && /* @__PURE__ */ x("div", {
137
+ N === "connectors" && /* @__PURE__ */ b("div", {
138
138
  role: "tabpanel",
139
139
  id: "channels-panel-connectors",
140
140
  "aria-labelledby": "channels-tab-connectors",
141
141
  className: "space-y-6",
142
142
  children: [
143
- /* @__PURE__ */ x("div", {
143
+ /* @__PURE__ */ b("div", {
144
144
  className: "flex flex-wrap items-center gap-4",
145
- children: [/* @__PURE__ */ x("div", {
145
+ children: [/* @__PURE__ */ b("div", {
146
146
  className: "relative flex-1 max-w-md",
147
- children: [/* @__PURE__ */ b(de, {
147
+ children: [/* @__PURE__ */ y(pe, {
148
148
  "aria-hidden": "true",
149
149
  className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary"
150
- }), /* @__PURE__ */ b(l, {
151
- "aria-label": C("botlit.channels.searchConnectors", "Search connectors"),
152
- placeholder: C("botlit.channels.searchConnectorsPlaceholder", "Search connectors..."),
153
- value: I,
154
- onChange: (e) => L(e.target.value),
150
+ }), /* @__PURE__ */ y(ne, {
151
+ "aria-label": S("botlit.channels.searchConnectors", "Search connectors"),
152
+ placeholder: S("botlit.channels.searchConnectorsPlaceholder", "Search connectors..."),
153
+ value: F,
154
+ onChange: (e) => I(e.target.value),
155
155
  className: "pl-9"
156
156
  })]
157
- }), /* @__PURE__ */ b(c, {
157
+ }), /* @__PURE__ */ y(c, {
158
158
  variant: "outline",
159
- leftIcon: /* @__PURE__ */ b(le, { size: 16 }),
160
- "aria-expanded": R,
159
+ leftIcon: /* @__PURE__ */ y(de, { size: 16 }),
160
+ "aria-expanded": L,
161
161
  "aria-controls": "channels-connector-filters",
162
- onClick: () => z((e) => !e),
163
- children: C("botlit.channels.filters.filters", "Filters")
162
+ onClick: () => R((e) => !e),
163
+ children: S("botlit.channels.filters.filters", "Filters")
164
164
  })]
165
165
  }),
166
- R && /* @__PURE__ */ x("div", {
166
+ L && /* @__PURE__ */ b("div", {
167
167
  id: "channels-connector-filters",
168
168
  className: "flex flex-wrap items-end gap-4",
169
169
  children: [
170
- /* @__PURE__ */ x("label", {
170
+ /* @__PURE__ */ b("label", {
171
171
  className: "grid gap-1 text-xs text-text-secondary",
172
- children: [C("botlit.channels.filters.type", "Type"), /* @__PURE__ */ x("select", {
173
- className: M,
174
- value: B,
175
- onChange: (e) => V(e.target.value),
176
- children: [/* @__PURE__ */ b("option", {
172
+ children: [S("botlit.channels.filters.type", "Type"), /* @__PURE__ */ b(v, {
173
+ className: j,
174
+ value: z,
175
+ onChange: (e) => B(e.target.value),
176
+ children: [/* @__PURE__ */ y("option", {
177
177
  value: "",
178
- children: C("botlit.channels.filters.allTypes", "All types")
179
- }), A.map((e) => /* @__PURE__ */ b("option", {
178
+ children: S("botlit.channels.filters.allTypes", "All types")
179
+ }), k.map((e) => /* @__PURE__ */ y("option", {
180
180
  value: e,
181
- children: m(e, C)
181
+ children: f(e, S)
182
182
  }, e))]
183
183
  })]
184
184
  }),
185
- /* @__PURE__ */ x("label", {
185
+ /* @__PURE__ */ b("label", {
186
186
  className: "grid gap-1 text-xs text-text-secondary",
187
- children: [C("botlit.channels.filters.status", "Status"), /* @__PURE__ */ x("select", {
188
- className: M,
189
- value: H,
190
- onChange: (e) => U(e.target.value),
191
- children: [/* @__PURE__ */ b("option", {
187
+ children: [S("botlit.channels.filters.status", "Status"), /* @__PURE__ */ b(v, {
188
+ className: j,
189
+ value: V,
190
+ onChange: (e) => H(e.target.value),
191
+ children: [/* @__PURE__ */ y("option", {
192
192
  value: "",
193
- children: C("botlit.channels.filters.allStatuses", "All statuses")
194
- }), j.map((e) => /* @__PURE__ */ b("option", {
193
+ children: S("botlit.channels.filters.allStatuses", "All statuses")
194
+ }), A.map((e) => /* @__PURE__ */ y("option", {
195
195
  value: e,
196
- children: C(`botlit.status.${e.toLowerCase()}`, e.charAt(0) + e.slice(1).toLowerCase())
196
+ children: S(`botlit.status.${e.toLowerCase()}`, e.charAt(0) + e.slice(1).toLowerCase())
197
197
  }, e))]
198
198
  })]
199
199
  }),
200
- (B || H) && /* @__PURE__ */ b(c, {
200
+ (z || V) && /* @__PURE__ */ y(c, {
201
201
  variant: "ghost",
202
202
  size: "sm",
203
203
  onClick: () => {
204
- V(""), U("");
204
+ B(""), H("");
205
205
  },
206
- children: C("botlit.channels.filters.clear", "Clear filters")
206
+ children: S("botlit.channels.filters.clear", "Clear filters")
207
207
  })
208
208
  ]
209
209
  }),
210
- G ? /* @__PURE__ */ b("div", {
210
+ W ? /* @__PURE__ */ y("div", {
211
211
  className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
212
212
  children: [
213
213
  1,
214
214
  2,
215
215
  3
216
- ].map((e) => /* @__PURE__ */ b("div", { className: "h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
217
- }) : K ? /* @__PURE__ */ b(re, {
218
- resource: C("botlit.channels.resource", "channel connectors"),
219
- error: K,
220
- onRetry: () => void pe()
221
- }) : W.length > 0 ? /* @__PURE__ */ b("div", {
216
+ ].map((e) => /* @__PURE__ */ y("div", { className: "h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
217
+ }) : G ? /* @__PURE__ */ y(ie, {
218
+ resource: S("botlit.channels.resource", "channel connectors"),
219
+ error: G,
220
+ onRetry: () => void he()
221
+ }) : U.length > 0 ? /* @__PURE__ */ y("div", {
222
222
  className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
223
- children: W.map((e) => /* @__PURE__ */ b(S, {
224
- to: w(`channels/${e.id}`),
223
+ children: U.map((e) => /* @__PURE__ */ y(x, {
224
+ to: C(`channels/${e.id}`),
225
225
  className: "rounded-lg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",
226
- children: /* @__PURE__ */ x(ee, {
226
+ children: /* @__PURE__ */ b(ee, {
227
227
  className: "h-full hover:border-primary/50 transition-colors cursor-pointer",
228
- children: [/* @__PURE__ */ b(o, { children: /* @__PURE__ */ x("div", {
228
+ children: [/* @__PURE__ */ y(o, { children: /* @__PURE__ */ b("div", {
229
229
  className: "flex items-start justify-between",
230
- children: [/* @__PURE__ */ x("div", {
230
+ children: [/* @__PURE__ */ b("div", {
231
231
  className: "flex items-center gap-3",
232
- children: [/* @__PURE__ */ b("div", {
232
+ children: [/* @__PURE__ */ y("div", {
233
233
  className: "p-2 bg-action-primary-bg/10 rounded-lg",
234
- children: /* @__PURE__ */ b(O, {
234
+ children: /* @__PURE__ */ y(D, {
235
235
  type: e.type,
236
236
  className: "h-5 w-5 text-primary"
237
237
  })
238
- }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b(s, {
238
+ }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y(s, {
239
239
  className: "text-base",
240
240
  children: e.name
241
- }), /* @__PURE__ */ b(a, {
241
+ }), /* @__PURE__ */ y(a, {
242
242
  className: "text-xs",
243
243
  children: e.description
244
244
  })] })]
245
- }), /* @__PURE__ */ b(ne, { status: e.status })]
246
- }) }), /* @__PURE__ */ b(te, { children: /* @__PURE__ */ x("div", {
245
+ }), /* @__PURE__ */ y(re, { status: e.status })]
246
+ }) }), /* @__PURE__ */ y(te, { children: /* @__PURE__ */ b("div", {
247
247
  className: "space-y-3",
248
248
  children: [
249
- /* @__PURE__ */ x("div", {
249
+ /* @__PURE__ */ b("div", {
250
250
  className: "flex items-center justify-between",
251
- children: [/* @__PURE__ */ b("span", {
251
+ children: [/* @__PURE__ */ y("span", {
252
252
  className: "text-sm text-text-secondary",
253
- children: C("botlit.channels.list.type", "Type")
254
- }), /* @__PURE__ */ b(u, {
253
+ children: S("botlit.channels.list.type", "Type")
254
+ }), /* @__PURE__ */ y(l, {
255
255
  variant: "outline",
256
- children: m(e.type, C)
256
+ children: f(e.type, S)
257
257
  })]
258
258
  }),
259
- /* @__PURE__ */ x("div", {
259
+ /* @__PURE__ */ b("div", {
260
260
  className: "flex items-center justify-between",
261
- children: [/* @__PURE__ */ b("span", {
261
+ children: [/* @__PURE__ */ y("span", {
262
262
  className: "text-sm text-text-secondary",
263
- children: C("botlit.channels.list.activeRoutes", "Active Routes")
264
- }), /* @__PURE__ */ b(u, {
263
+ children: S("botlit.channels.list.activeRoutes", "Active Routes")
264
+ }), /* @__PURE__ */ y(l, {
265
265
  variant: "secondary",
266
- title: Z ? void 0 : X ? C("botlit.channels.list.routeCountUnavailable", "Routes could not be loaded") : C("botlit.common.loading", "Loading..."),
267
- children: Z ? be.get(e.id) ?? 0 : "—"
266
+ title: X ? void 0 : Y ? S("botlit.channels.list.routeCountUnavailable", "Routes could not be loaded") : S("botlit.common.loading", "Loading..."),
267
+ children: X ? Se.get(e.id) ?? 0 : "—"
268
268
  })]
269
269
  }),
270
- e.unroutedMessageCount > 0 && /* @__PURE__ */ x("div", {
270
+ e.unroutedMessageCount > 0 && /* @__PURE__ */ b("div", {
271
271
  className: "flex items-center justify-between",
272
- children: [/* @__PURE__ */ b("span", {
272
+ children: [/* @__PURE__ */ y("span", {
273
273
  className: "text-sm text-text-secondary",
274
- children: C("botlit.channels.list.unrouted", "Unanswered messages")
275
- }), /* @__PURE__ */ b(u, {
274
+ children: S("botlit.channels.list.unrouted", "Unanswered messages")
275
+ }), /* @__PURE__ */ y(l, {
276
276
  variant: "warning",
277
277
  children: e.unroutedMessageCount
278
278
  })]
279
279
  }),
280
- /* @__PURE__ */ b("div", {
280
+ /* @__PURE__ */ y("div", {
281
281
  className: "pt-3 border-t border-border-subtle text-xs text-text-secondary",
282
- children: C("botlit.channels.list.created", "Created {{when}}", { when: p(e.createdAt) })
282
+ children: S("botlit.channels.list.created", "Created {{when}}", { when: d(e.createdAt) })
283
283
  })
284
284
  ]
285
285
  }) })]
286
286
  })
287
287
  }, e.id))
288
- }) : xe ? /* @__PURE__ */ b(d, {
288
+ }) : Ce ? /* @__PURE__ */ y(u, {
289
+ kind: "filtered",
289
290
  illustration: "empty-search",
290
- title: C("botlit.channels.empty.filtered.title", "No connectors match"),
291
- description: C("botlit.channels.empty.filtered.description", "No connector matches the search and filters. Change or clear them.")
292
- }) : /* @__PURE__ */ b(d, {
291
+ title: S("botlit.channels.empty.filtered.title", "No connectors match"),
292
+ description: S("botlit.channels.empty.filtered.description", "No connector matches the search and filters. Change or clear them.")
293
+ }) : /* @__PURE__ */ y(u, {
293
294
  illustration: "empty-notifications",
294
- title: C("botlit.channels.empty.connectors.title", "No channel connectors"),
295
- description: C("botlit.channels.empty.connectors.description", "Connect messaging platforms to deploy agents across multiple channels."),
295
+ title: S("botlit.channels.empty.connectors.title", "No channel connectors"),
296
+ description: S("botlit.channels.empty.connectors.description", "Connect messaging platforms to deploy agents across multiple channels."),
296
297
  action: $
297
298
  }),
298
- /* @__PURE__ */ b(se, {
299
- hasMore: me && !G,
300
- loadingMore: he,
301
- onLoadMore: () => void ge(),
302
- loadedCount: W.length
299
+ /* @__PURE__ */ y(ce, {
300
+ hasMore: ge && !W,
301
+ loadingMore: _e,
302
+ onLoadMore: () => void ve(),
303
+ loadedCount: U.length
303
304
  })
304
305
  ]
305
306
  }),
306
- P === "routes" && /* @__PURE__ */ b("div", {
307
+ N === "routes" && /* @__PURE__ */ y("div", {
307
308
  role: "tabpanel",
308
309
  id: "channels-panel-routes",
309
310
  "aria-labelledby": "channels-tab-routes",
310
- children: /* @__PURE__ */ b(f, {
311
+ children: /* @__PURE__ */ y(le, {
311
312
  showSummary: !1,
312
313
  onRoutesChanged: () => {
313
- J(), ye();
314
+ q(), xe();
314
315
  }
315
316
  })
316
317
  }),
317
- /* @__PURE__ */ x(v, {
318
+ /* @__PURE__ */ b(g, {
318
319
  treatment: "glass",
319
320
  glow: !0,
320
321
  className: "p-6",
321
- children: [/* @__PURE__ */ x("div", {
322
+ children: [/* @__PURE__ */ b("div", {
322
323
  className: "mb-4",
323
- children: [/* @__PURE__ */ b("h2", {
324
+ children: [/* @__PURE__ */ y("h2", {
324
325
  className: "text-lg font-semibold tracking-tight text-text-primary",
325
- children: C("botlit.channels.integrations.title", "Available Integrations")
326
- }), /* @__PURE__ */ b("p", {
326
+ children: S("botlit.channels.integrations.title", "Available Integrations")
327
+ }), /* @__PURE__ */ y("p", {
327
328
  className: "text-sm text-text-secondary",
328
- children: C("botlit.channels.integrations.description", "Connect to popular messaging platforms")
329
+ children: S("botlit.channels.integrations.description", "Connect to popular messaging platforms")
329
330
  })]
330
- }), /* @__PURE__ */ b("div", {
331
+ }), /* @__PURE__ */ y("div", {
331
332
  className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",
332
333
  children: [
333
334
  {
334
335
  type: "WEB_WIDGET",
335
- name: C("botlit.channels.integrations.webWidget", "Website chat"),
336
- desc: C("botlit.channels.integrations.webWidgetDesc", "Set up from an agent's Website panel"),
336
+ name: S("botlit.channels.integrations.webWidget", "Website chat"),
337
+ desc: S("botlit.channels.integrations.webWidgetDesc", "Set up from an agent's Website panel"),
337
338
  path: "agents"
338
339
  },
339
340
  {
340
341
  type: "SLACK",
341
- name: C("botlit.channels.integrations.slack", "Slack"),
342
- desc: C("botlit.channels.integrations.slackDesc", "Workspace integration")
342
+ name: S("botlit.channels.integrations.slack", "Slack"),
343
+ desc: S("botlit.channels.integrations.slackDesc", "Workspace integration")
343
344
  },
344
345
  {
345
346
  type: "TEAMS",
346
- name: C("botlit.channels.integrations.teams", "MS Teams"),
347
- desc: C("botlit.channels.integrations.teamsDesc", "Teams app")
347
+ name: S("botlit.channels.integrations.teams", "MS Teams"),
348
+ desc: S("botlit.channels.integrations.teamsDesc", "Teams app")
348
349
  },
349
350
  {
350
351
  type: "DISCORD",
351
- name: C("botlit.channels.integrations.discord", "Discord"),
352
- desc: C("botlit.channels.integrations.discordDesc", "Bot integration")
352
+ name: S("botlit.channels.integrations.discord", "Discord"),
353
+ desc: S("botlit.channels.integrations.discordDesc", "Bot integration")
353
354
  },
354
355
  {
355
356
  type: "WHATSAPP",
356
- name: C("botlit.channels.integrations.whatsapp", "WhatsApp"),
357
- desc: C("botlit.channels.integrations.whatsappDesc", "Business API")
357
+ name: S("botlit.channels.integrations.whatsapp", "WhatsApp"),
358
+ desc: S("botlit.channels.integrations.whatsappDesc", "Business API")
358
359
  },
359
360
  {
360
361
  type: "WEBHOOK",
361
- name: C("botlit.channels.integrations.webhook", "Webhook"),
362
- desc: C("botlit.channels.integrations.webhookDesc", "Custom integration")
362
+ name: S("botlit.channels.integrations.webhook", "Webhook"),
363
+ desc: S("botlit.channels.integrations.webhookDesc", "Custom integration")
363
364
  }
364
- ].map((e) => /* @__PURE__ */ x(S, {
365
- to: w(e.path ?? `channels/new?type=${e.type}`),
365
+ ].map((e) => /* @__PURE__ */ b(x, {
366
+ to: C(e.path ?? `channels/new?type=${e.type}`),
366
367
  className: "p-4 text-center border border-border-subtle rounded-lg hover:bg-accent transition-colors",
367
368
  children: [
368
- /* @__PURE__ */ b(O, {
369
+ /* @__PURE__ */ y(D, {
369
370
  type: e.type,
370
371
  className: "h-8 w-8 mx-auto text-text-secondary"
371
372
  }),
372
- /* @__PURE__ */ b("p", {
373
+ /* @__PURE__ */ y("p", {
373
374
  className: "mt-2 font-medium text-sm",
374
375
  children: e.name
375
376
  }),
376
- /* @__PURE__ */ b("p", {
377
+ /* @__PURE__ */ y("p", {
377
378
  className: "text-xs text-text-secondary",
378
379
  children: e.desc
379
380
  })
@@ -385,6 +386,6 @@ var O = ({ type: e, className: t }) => {
385
386
  })
386
387
  });
387
388
  };
388
- export { N as ChannelsPage };
389
+ export { M as ChannelsPage };
389
390
 
390
391
  //# sourceMappingURL=ChannelsPage.js.map