@burdenoff/microfe-integrations 2026.930.2 → 2026.1007.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,328 +1,328 @@
1
1
  import { useIntegrations as e } from "../providers/IntegrationsProvider.js";
2
2
  import { useTr as ee } from "../hooks/useTr.js";
3
- import { cn as t } from "../utils/cn.js";
4
- import { INTEGRATION_PERMISSIONS as n } from "../constants/permissions.js";
5
- import { useIntegrationsStore as r } from "../store/integrationsStore.js";
6
- import { joinPath as i } from "../utils/navigation.js";
7
- import { AddConnectionDialog as a } from "../components/AddConnectionDialog.js";
8
- import { useDisableProvider as o, useEnableProvider as te, useProvider as ne, useUninstallPlugin as re } from "../hooks/useProviders.js";
9
- import { useConnectionsByProvider as ie } from "../hooks/useConnections.js";
10
- import { useAuthTypeLabel as ae, useCategoryLabel as oe } from "../hooks/useLabel.js";
11
- import { ConnectionCard as s } from "../components/ConnectionCard.js";
12
- import { ConfirmDialog as c } from "../components/ConfirmDialog.js";
13
- import { useState as l } from "react";
14
- import { AlertCircle as u, ArrowLeft as d, BookOpen as f, Download as p, ExternalLink as m, Link2 as se, Loader2 as h, Package as g, Pencil as ce, Plus as _, Power as le, RefreshCw as ue, Shield as de, Star as fe, Trash2 as v } from "lucide-react";
15
- import { useParams as pe } from "react-router";
16
- import { usePermissions as me } from "@burdenoff/fe-libs/shared/providers/shell";
17
- import { jsx as y, jsxs as b } from "react/jsx-runtime";
18
- import { ProviderIcon as x } from "@burdenoff/fe-libs/connections";
19
- import { Button as S, CTAOverflowMenu as C, EmphasisPanel as w, GlassCard as T, IllustratedEmptyState as E, NextSteps as D, PagePurpose as O, ShowMore as k } from "@burdenoff/fe-libs/ui";
3
+ import { INTEGRATION_PERMISSIONS as t } from "../constants/permissions.js";
4
+ import { AddConnectionDialog as n } from "../components/AddConnectionDialog.js";
5
+ import { joinPath as r } from "../utils/navigation.js";
6
+ import { cn as i } from "../utils/cn.js";
7
+ import { useIntegrationsStore as a } from "../store/integrationsStore.js";
8
+ import { useDisableProvider as te, useEnableProvider as ne, useProvider as re, useUninstallPlugin as ie } from "../hooks/useProviders.js";
9
+ import { useConnectionsByProvider as ae } from "../hooks/useConnections.js";
10
+ import { useAuthTypeLabel as oe, useCategoryLabel as se } from "../hooks/useLabel.js";
11
+ import { ConnectionCard as o } from "../components/ConnectionCard.js";
12
+ import { ConfirmDialog as s } from "../components/ConfirmDialog.js";
13
+ import { useState as c } from "react";
14
+ import { AlertCircle as l, ArrowLeft as u, BookOpen as d, Download as f, ExternalLink as p, Link2 as ce, Loader2 as m, Package as h, Pencil as le, Plus as g, Power as ue, RefreshCw as de, Shield as fe, Star as pe, Trash2 as _ } from "lucide-react";
15
+ import { useParams as me } from "react-router";
16
+ import { usePermissions as he } from "@burdenoff/fe-libs/shared/providers/shell";
17
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
18
+ import { ProviderIcon as b } from "@burdenoff/fe-libs/connections";
19
+ import { Button as x, CTAOverflowMenu as S, EmphasisPanel as C, GlassCard as w, IllustratedEmptyState as T, NextSteps as E, PagePurpose as D, ShowMore as O } from "@burdenoff/fe-libs/ui";
20
20
  //#region src/integrations/pages/ProviderDetail.tsx
21
- function A() {
22
- let { providerId: A } = pe(), { adminMode: j = !1, basePath: M = "/", navigate: N, onConnectionSelect: P } = e(), F = ee(), I = oe(), L = ae(), { addConnectionDialogOpen: R, addConnectionProviderId: z, openAddConnectionDialog: he, closeAddConnectionDialog: ge } = r(), { provider: B, loading: _e, error: V, refetch: H } = ne(A ?? ""), { connections: U, loading: W } = ie(A ?? ""), { enableProvider: ve, loading: ye } = te(), { disableProvider: be, loading: xe } = o(), { uninstallPlugin: Se, loading: G } = re(), { hasPermission: K, isLoading: q } = me(), [Ce, J] = l(!1), Y = !q && K(n.CONNECTION_CREATE), we = j && !q && K(n.PROVIDER_CREATE), X = j && !q && K(n.PROVIDER_UPDATE), Te = j && !q && K(n.PROVIDER_DELETE), Ee = _e && !B, Z = ye || xe || G;
23
- if (Ee) return /* @__PURE__ */ b("div", {
21
+ function k() {
22
+ let { providerId: k } = me(), { adminMode: A = !1, basePath: j = "/", navigate: M, onConnectionSelect: N } = e(), P = ee(), F = se(), I = oe(), { addConnectionDialogOpen: L, addConnectionProviderId: R, openAddConnectionDialog: ge, closeAddConnectionDialog: _e } = a(), { provider: z, loading: ve, error: B, refetch: V } = re(k ?? ""), { connections: H, loading: U } = ae(k ?? ""), { enableProvider: ye, loading: be } = ne(), { disableProvider: xe, loading: Se } = te(), { uninstallPlugin: Ce, loading: W } = ie(), { hasPermission: G, isLoading: K } = he(), [we, q] = c(!1), J = !K && G(t.CONNECTION_CREATE), Te = A && !K && G(t.PROVIDER_CREATE), Y = A && !K && G(t.PROVIDER_UPDATE), Ee = A && !K && G(t.PROVIDER_DELETE), De = ve && !z, X = be || Se || W;
23
+ if (De) return /* @__PURE__ */ y("div", {
24
24
  className: "flex flex-col items-center justify-center py-20",
25
- children: [/* @__PURE__ */ b("div", {
25
+ children: [/* @__PURE__ */ y("div", {
26
26
  className: "relative",
27
- children: [/* @__PURE__ */ y("div", { className: "absolute inset-0 bg-action-primary-bg/20 rounded-full blur-xl motion-safe:animate-vc-glow-pulse" }), /* @__PURE__ */ y(h, {
27
+ children: [/* @__PURE__ */ v("div", { className: "absolute inset-0 bg-action-primary-bg/20 rounded-full blur-xl motion-safe:animate-vc-glow-pulse" }), /* @__PURE__ */ v(m, {
28
28
  size: 48,
29
29
  className: "relative animate-spin text-primary"
30
30
  })]
31
- }), /* @__PURE__ */ y("span", {
31
+ }), /* @__PURE__ */ v("span", {
32
32
  className: "mt-6 text-sm font-medium text-text-secondary",
33
- children: F("integrations.providerDetail.loading", "Loading provider details…")
33
+ children: P("integrations.providerDetail.loading", "Loading provider details…")
34
34
  })]
35
35
  });
36
- if (V || !B) return /* @__PURE__ */ y("div", {
36
+ if (B || !z) return /* @__PURE__ */ v("div", {
37
37
  className: "p-6 max-w-4xl mx-auto",
38
- children: /* @__PURE__ */ b("div", {
38
+ children: /* @__PURE__ */ y("div", {
39
39
  className: "rounded-xl border border-border-default bg-status-error-bg-subtle p-6 flex items-start gap-4",
40
- children: [/* @__PURE__ */ y(u, {
40
+ children: [/* @__PURE__ */ v(l, {
41
41
  size: 24,
42
42
  className: "text-status-error-text flex-shrink-0"
43
- }), /* @__PURE__ */ b("div", {
43
+ }), /* @__PURE__ */ y("div", {
44
44
  className: "flex-1",
45
45
  children: [
46
- /* @__PURE__ */ y("h3", {
46
+ /* @__PURE__ */ v("h3", {
47
47
  className: "font-semibold text-status-error-text mb-1",
48
- children: F("integrations.providerDetail.error.title", "Provider not found")
48
+ children: P("integrations.providerDetail.error.title", "Provider not found")
49
49
  }),
50
- /* @__PURE__ */ y("p", {
50
+ /* @__PURE__ */ v("p", {
51
51
  className: "text-sm text-status-error-text mb-3",
52
- children: V?.message || F("integrations.providerDetail.error.description", "The requested provider could not be loaded.")
52
+ children: B?.message || P("integrations.providerDetail.error.description", "The requested provider could not be loaded.")
53
53
  }),
54
- /* @__PURE__ */ b("div", {
54
+ /* @__PURE__ */ y("div", {
55
55
  className: "flex gap-2",
56
- children: [/* @__PURE__ */ b("button", {
56
+ children: [/* @__PURE__ */ y("button", {
57
57
  type: "button",
58
- onClick: () => H(),
58
+ onClick: () => V(),
59
59
  className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-status-error-bg-subtle text-status-error-text hover:bg-status-error-bg-subtle/80 transition-colors",
60
- children: [/* @__PURE__ */ y(ue, { size: 14 }), F("integrations.providerDetail.error.retry", "Try Again")]
61
- }), /* @__PURE__ */ b("button", {
60
+ children: [/* @__PURE__ */ v(de, { size: 14 }), P("integrations.providerDetail.error.retry", "Try Again")]
61
+ }), /* @__PURE__ */ y("button", {
62
62
  type: "button",
63
- onClick: () => N?.(i(M, "providers")),
63
+ onClick: () => M?.(r(j, "providers")),
64
64
  className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border-subtle hover:bg-accent transition-colors",
65
- children: [/* @__PURE__ */ y(d, { size: 14 }), F("integrations.providerDetail.error.back", "Back to Catalog")]
65
+ children: [/* @__PURE__ */ v(u, { size: 14 }), P("integrations.providerDetail.error.back", "Back to Catalog")]
66
66
  })]
67
67
  })
68
68
  ]
69
69
  })]
70
70
  })
71
71
  });
72
- let Q = () => {
73
- he(B.id);
74
- }, De = (e) => {
75
- P?.(e), N?.(i(M, `connections/${e.id}`));
76
- }, Oe = async () => {
77
- B && (B.isEnabled ? await be(B.id) : await ve(B.id), await H());
72
+ let Z = () => {
73
+ ge(z.id);
74
+ }, Oe = (e) => {
75
+ N?.(e), M?.(r(j, `connections/${e.id}`));
76
+ }, Q = async () => {
77
+ z && (z.isEnabled ? await xe(z.id) : await ye(z.id), await V());
78
78
  }, ke = async () => {
79
- B && J(!0);
79
+ z && q(!0);
80
80
  }, Ae = async () => {
81
- B && (await Se(B.id), J(!1), N?.(i(M, "providers")));
81
+ z && (await Ce(z.id), q(!1), M?.(r(j, "providers")));
82
82
  }, je = () => {
83
- N?.(i(M, `providers/${B.id}/edit`));
84
- }, $ = Y && B.pluginStatus === "installed" && B.isEnabled, Me = (U ?? []).length > 0, Ne = [
83
+ M?.(r(j, `providers/${z.id}/edit`));
84
+ }, $ = J && z.pluginStatus === "installed" && z.isEnabled, Me = (H ?? []).length > 0, Ne = [
85
85
  ...$ ? [{
86
86
  id: "connect",
87
- label: F("integrations.providerDetail.nextSteps.connect.label", "Connect {{provider}}", { provider: B.name }),
88
- description: F("integrations.providerDetail.nextSteps.connect.description", "Authenticate once to create a reusable connection to {{provider}}.", { provider: B.name }),
89
- icon: /* @__PURE__ */ y(_, { size: 16 }),
90
- onClick: Q,
87
+ label: P("integrations.providerDetail.nextSteps.connect.label", "Connect {{provider}}", { provider: z.name }),
88
+ description: P("integrations.providerDetail.nextSteps.connect.description", "Authenticate once to create a reusable connection to {{provider}}.", { provider: z.name }),
89
+ icon: /* @__PURE__ */ v(g, { size: 16 }),
90
+ onClick: Z,
91
91
  done: Me
92
92
  }] : [],
93
- ...B.docsUrl ? [{
93
+ ...z.docsUrl ? [{
94
94
  id: "docs",
95
- label: F("integrations.providerDetail.nextSteps.docs.label", "Read the provider documentation"),
96
- description: F("integrations.providerDetail.nextSteps.docs.description", "Learn how {{provider}} works and what credentials you will need.", { provider: B.name }),
97
- icon: /* @__PURE__ */ y(f, { size: 16 }),
98
- href: B.docsUrl
95
+ label: P("integrations.providerDetail.nextSteps.docs.label", "Read the provider documentation"),
96
+ description: P("integrations.providerDetail.nextSteps.docs.description", "Learn how {{provider}} works and what credentials you will need.", { provider: z.name }),
97
+ icon: /* @__PURE__ */ v(d, { size: 16 }),
98
+ href: z.docsUrl
99
99
  }] : [],
100
100
  {
101
101
  id: "browse",
102
- label: F("integrations.providerDetail.nextSteps.browse.label", "Browse other providers"),
103
- description: F("integrations.providerDetail.nextSteps.browse.description", "Return to the catalog to discover more services you can integrate."),
104
- icon: /* @__PURE__ */ y(g, { size: 16 }),
105
- onClick: () => N?.(i(M, "providers"))
102
+ label: P("integrations.providerDetail.nextSteps.browse.label", "Browse other providers"),
103
+ description: P("integrations.providerDetail.nextSteps.browse.description", "Return to the catalog to discover more services you can integrate."),
104
+ icon: /* @__PURE__ */ v(h, { size: 16 }),
105
+ onClick: () => M?.(r(j, "providers"))
106
106
  }
107
107
  ];
108
- return /* @__PURE__ */ b("div", {
108
+ return /* @__PURE__ */ y("div", {
109
109
  className: "space-y-6 p-6 max-w-5xl mx-auto",
110
110
  children: [
111
- /* @__PURE__ */ y("div", {
111
+ /* @__PURE__ */ v("div", {
112
112
  className: "rounded-xl border border-border-seam bg-accent-wash p-6",
113
- children: /* @__PURE__ */ b("div", {
113
+ children: /* @__PURE__ */ y("div", {
114
114
  className: "flex items-center gap-4",
115
115
  children: [
116
- /* @__PURE__ */ y(S, {
116
+ /* @__PURE__ */ v(x, {
117
117
  variant: "ghost",
118
118
  size: "icon",
119
- onClick: () => N?.(i(M, "providers")),
120
- "aria-label": F("integrations.providerDetail.actions.backAriaLabel", "Back to catalog"),
121
- children: /* @__PURE__ */ y(d, { size: 20 })
119
+ onClick: () => M?.(r(j, "providers")),
120
+ "aria-label": P("integrations.providerDetail.actions.backAriaLabel", "Back to catalog"),
121
+ children: /* @__PURE__ */ v(u, { size: 20 })
122
122
  }),
123
- /* @__PURE__ */ y(x, {
124
- provider: B,
123
+ /* @__PURE__ */ v(b, {
124
+ provider: z,
125
125
  size: 56
126
126
  }),
127
- /* @__PURE__ */ b("div", {
127
+ /* @__PURE__ */ y("div", {
128
128
  className: "flex-1",
129
- children: [/* @__PURE__ */ b("div", {
129
+ children: [/* @__PURE__ */ y("div", {
130
130
  className: "flex items-center gap-3",
131
- children: [/* @__PURE__ */ y("h1", {
131
+ children: [/* @__PURE__ */ v("h1", {
132
132
  className: "text-2xl sm:text-3xl font-bold text-text-primary",
133
- children: B.name
134
- }), B.isBuiltIn && /* @__PURE__ */ y("span", {
133
+ children: z.name
134
+ }), z.isBuiltIn && /* @__PURE__ */ v("span", {
135
135
  className: "text-xs px-2 py-0.5 rounded-full bg-status-info-bg-subtle text-status-info-text border border-border-default",
136
- children: F("integrations.providerDetail.builtIn", "Built-in")
136
+ children: P("integrations.providerDetail.builtIn", "Built-in")
137
137
  })]
138
- }), /* @__PURE__ */ y("p", {
138
+ }), /* @__PURE__ */ v("p", {
139
139
  className: "text-sm text-text-secondary mt-1",
140
- children: B.description
140
+ children: z.description
141
141
  })]
142
142
  }),
143
- Y && B.pluginStatus === "installed" && B.isEnabled && /* @__PURE__ */ b(S, {
144
- onClick: Q,
145
- children: [/* @__PURE__ */ y(_, { size: 16 }), F("integrations.providerDetail.actions.createConnection", "Create Connection")]
143
+ J && z.pluginStatus === "installed" && z.isEnabled && /* @__PURE__ */ y(x, {
144
+ onClick: Z,
145
+ children: [/* @__PURE__ */ v(g, { size: 16 }), P("integrations.providerDetail.actions.createConnection", "Create Connection")]
146
146
  })
147
147
  ]
148
148
  })
149
149
  }),
150
- /* @__PURE__ */ y(O, {
151
- icon: /* @__PURE__ */ y(g, { size: 16 }),
152
- children: F("integrations.providerDetail.purpose", "This is the {{provider}} provider — the platform's blueprint for talking to {{provider}}. Here you can see how it authenticates, which features and scopes it supports, and the connections your workspace has created with it. Create a connection to start using {{provider}} in your apps.", { provider: B.name })
150
+ /* @__PURE__ */ v(D, {
151
+ icon: /* @__PURE__ */ v(h, { size: 16 }),
152
+ children: P("integrations.providerDetail.purpose", "This is the {{provider}} provider — the platform's blueprint for talking to {{provider}}. Here you can see how it authenticates, which features and scopes it supports, and the connections your workspace has created with it. Create a connection to start using {{provider}} in your apps.", { provider: z.name })
153
153
  }),
154
- ($ || B.docsUrl) && /* @__PURE__ */ y(D, {
154
+ ($ || z.docsUrl) && /* @__PURE__ */ v(E, {
155
155
  storageKey: "integrations-provider-detail",
156
156
  steps: Ne
157
157
  }),
158
- /* @__PURE__ */ b("div", {
158
+ /* @__PURE__ */ y("div", {
159
159
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
160
- children: [/* @__PURE__ */ b(T, {
160
+ children: [/* @__PURE__ */ y(w, {
161
161
  className: "border-border-seam p-5 space-y-4",
162
- children: [/* @__PURE__ */ b("h2", {
162
+ children: [/* @__PURE__ */ y("h2", {
163
163
  className: "font-semibold text-text-primary flex items-center gap-2",
164
- children: [/* @__PURE__ */ y(g, {
164
+ children: [/* @__PURE__ */ v(h, {
165
165
  size: 18,
166
166
  className: "text-primary"
167
- }), F("integrations.providerDetail.sections.providerDetails", "Provider Details")]
168
- }), /* @__PURE__ */ b("div", {
167
+ }), P("integrations.providerDetail.sections.providerDetails", "Provider Details")]
168
+ }), /* @__PURE__ */ y("div", {
169
169
  className: "space-y-3",
170
170
  children: [
171
- /* @__PURE__ */ b("div", {
171
+ /* @__PURE__ */ y("div", {
172
172
  className: "flex items-center justify-between py-2 border-b border-border-seam",
173
- children: [/* @__PURE__ */ y("span", {
173
+ children: [/* @__PURE__ */ v("span", {
174
174
  className: "text-sm text-text-secondary",
175
- children: F("integrations.providerDetail.sections.category", "Category")
176
- }), /* @__PURE__ */ y("span", {
175
+ children: P("integrations.providerDetail.sections.category", "Category")
176
+ }), /* @__PURE__ */ v("span", {
177
177
  className: "text-sm font-medium text-text-primary",
178
- children: F(`integrations.category.${B.category}`, I(B.category))
178
+ children: P(`integrations.category.${z.category}`, F(z.category))
179
179
  })]
180
180
  }),
181
- /* @__PURE__ */ b("div", {
181
+ /* @__PURE__ */ y("div", {
182
182
  className: "flex items-center justify-between py-2 border-b border-border-seam",
183
- children: [/* @__PURE__ */ y("span", {
183
+ children: [/* @__PURE__ */ v("span", {
184
184
  className: "text-sm text-text-secondary",
185
- children: F("integrations.providerDetail.sections.authType", "Auth Type")
186
- }), /* @__PURE__ */ y("span", {
185
+ children: P("integrations.providerDetail.sections.authType", "Auth Type")
186
+ }), /* @__PURE__ */ v("span", {
187
187
  className: "text-sm font-medium text-text-primary",
188
- children: F(`integrations.authType.${B.authType}`, L(B.authType))
188
+ children: P(`integrations.authType.${z.authType}`, I(z.authType))
189
189
  })]
190
190
  }),
191
- /* @__PURE__ */ b("div", {
191
+ /* @__PURE__ */ y("div", {
192
192
  className: "flex items-center justify-between py-2 border-b border-border-seam",
193
- children: [/* @__PURE__ */ y("span", {
193
+ children: [/* @__PURE__ */ v("span", {
194
194
  className: "text-sm text-text-secondary",
195
- children: F("integrations.providerDetail.sections.pluginVersion", "Plugin Version")
196
- }), /* @__PURE__ */ y("span", {
195
+ children: P("integrations.providerDetail.sections.pluginVersion", "Plugin Version")
196
+ }), /* @__PURE__ */ v("span", {
197
197
  className: "text-sm font-mono text-text-primary",
198
- children: B.pluginVersion
198
+ children: z.pluginVersion
199
199
  })]
200
200
  }),
201
- /* @__PURE__ */ b("div", {
201
+ /* @__PURE__ */ y("div", {
202
202
  className: "flex items-center justify-between py-2 border-b border-border-seam",
203
- children: [/* @__PURE__ */ y("span", {
203
+ children: [/* @__PURE__ */ v("span", {
204
204
  className: "text-sm text-text-secondary",
205
- children: F("integrations.providerDetail.sections.author", "Author")
206
- }), /* @__PURE__ */ y("span", {
205
+ children: P("integrations.providerDetail.sections.author", "Author")
206
+ }), /* @__PURE__ */ v("span", {
207
207
  className: "text-sm font-medium text-text-primary",
208
- children: B.pluginAuthor || "-"
208
+ children: z.pluginAuthor || "-"
209
209
  })]
210
210
  }),
211
- /* @__PURE__ */ b("div", {
211
+ /* @__PURE__ */ y("div", {
212
212
  className: "flex items-center justify-between py-2 border-b border-border-seam",
213
- children: [/* @__PURE__ */ y("span", {
213
+ children: [/* @__PURE__ */ v("span", {
214
214
  className: "text-sm text-text-secondary",
215
- children: F("integrations.providerDetail.sections.connections", "Connections")
216
- }), /* @__PURE__ */ y("span", {
215
+ children: P("integrations.providerDetail.sections.connections", "Connections")
216
+ }), /* @__PURE__ */ v("span", {
217
217
  className: "text-sm font-medium text-text-primary",
218
- children: B.connectionCount
218
+ children: z.connectionCount
219
219
  })]
220
220
  }),
221
- /* @__PURE__ */ b("div", {
221
+ /* @__PURE__ */ y("div", {
222
222
  className: "flex items-center justify-between py-2",
223
- children: [/* @__PURE__ */ y("span", {
223
+ children: [/* @__PURE__ */ v("span", {
224
224
  className: "text-sm text-text-secondary",
225
- children: F("integrations.providerDetail.sections.status", "Status")
226
- }), /* @__PURE__ */ y("span", {
227
- className: t("text-sm font-medium px-2 py-0.5 rounded-full", B.isEnabled ? "text-status-success-text bg-status-success-bg-subtle" : "text-text-secondary bg-bg-sunken"),
228
- children: B.isEnabled ? F("integrations.providerDetail.sections.enabled", "Enabled") : F("integrations.providerDetail.sections.disabled", "Disabled")
225
+ children: P("integrations.providerDetail.sections.status", "Status")
226
+ }), /* @__PURE__ */ v("span", {
227
+ className: i("text-sm font-medium px-2 py-0.5 rounded-full", z.isEnabled ? "text-status-success-text bg-status-success-bg-subtle" : "text-text-secondary bg-bg-sunken"),
228
+ children: z.isEnabled ? P("integrations.providerDetail.sections.enabled", "Enabled") : P("integrations.providerDetail.sections.disabled", "Disabled")
229
229
  })]
230
230
  })
231
231
  ]
232
232
  })]
233
- }), /* @__PURE__ */ b("div", {
233
+ }), /* @__PURE__ */ y("div", {
234
234
  className: "space-y-4",
235
235
  children: [
236
- /* @__PURE__ */ b(T, {
236
+ /* @__PURE__ */ y(w, {
237
237
  className: "border-border-seam p-5",
238
- children: [/* @__PURE__ */ b("h2", {
238
+ children: [/* @__PURE__ */ y("h2", {
239
239
  className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
240
- children: [/* @__PURE__ */ y(fe, {
240
+ children: [/* @__PURE__ */ v(pe, {
241
241
  size: 18,
242
242
  className: "text-primary"
243
- }), F("integrations.providerDetail.sections.supportedFeatures", "Supported Features")]
244
- }), B.supportedFeatures.length > 0 ? /* @__PURE__ */ y(k, {
243
+ }), P("integrations.providerDetail.sections.supportedFeatures", "Supported Features")]
244
+ }), z.supportedFeatures.length > 0 ? /* @__PURE__ */ v(O, {
245
245
  collapsedHeight: 88,
246
246
  label: "Show all features",
247
- children: /* @__PURE__ */ y("div", {
247
+ children: /* @__PURE__ */ v("div", {
248
248
  className: "flex flex-wrap gap-2",
249
- children: B.supportedFeatures.map((e) => /* @__PURE__ */ y("span", {
249
+ children: z.supportedFeatures.map((e) => /* @__PURE__ */ v("span", {
250
250
  className: "text-xs px-2.5 py-1 rounded-full bg-bg-sunken text-text-secondary",
251
251
  children: e
252
252
  }, e))
253
253
  })
254
- }) : /* @__PURE__ */ y("p", {
254
+ }) : /* @__PURE__ */ v("p", {
255
255
  className: "text-sm text-text-secondary",
256
- children: F("integrations.providerDetail.sections.noFeatures", "No specific features listed.")
256
+ children: P("integrations.providerDetail.sections.noFeatures", "No specific features listed.")
257
257
  })]
258
258
  }),
259
- /* @__PURE__ */ b(T, {
259
+ /* @__PURE__ */ y(w, {
260
260
  className: "border-border-seam p-5",
261
- children: [/* @__PURE__ */ b("h2", {
261
+ children: [/* @__PURE__ */ y("h2", {
262
262
  className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
263
- children: [/* @__PURE__ */ y(m, {
263
+ children: [/* @__PURE__ */ v(p, {
264
264
  size: 18,
265
265
  className: "text-primary"
266
- }), F("integrations.providerDetail.sections.links", "Links")]
267
- }), /* @__PURE__ */ b("div", {
266
+ }), P("integrations.providerDetail.sections.links", "Links")]
267
+ }), /* @__PURE__ */ y("div", {
268
268
  className: "space-y-2",
269
- children: [B.website && /* @__PURE__ */ b("a", {
270
- href: B.website,
269
+ children: [z.website && /* @__PURE__ */ y("a", {
270
+ href: z.website,
271
271
  target: "_blank",
272
272
  rel: "noopener noreferrer",
273
273
  className: "flex items-center gap-2 text-sm text-primary hover:underline",
274
- children: [/* @__PURE__ */ y(m, { size: 14 }), F("integrations.providerDetail.sections.website", "Website")]
275
- }), B.docsUrl && /* @__PURE__ */ b("a", {
276
- href: B.docsUrl,
274
+ children: [/* @__PURE__ */ v(p, { size: 14 }), P("integrations.providerDetail.sections.website", "Website")]
275
+ }), z.docsUrl && /* @__PURE__ */ y("a", {
276
+ href: z.docsUrl,
277
277
  target: "_blank",
278
278
  rel: "noopener noreferrer",
279
279
  className: "flex items-center gap-2 text-sm text-primary hover:underline",
280
- children: [/* @__PURE__ */ y(f, { size: 14 }), F("integrations.providerDetail.sections.documentation", "Documentation")]
280
+ children: [/* @__PURE__ */ v(d, { size: 14 }), P("integrations.providerDetail.sections.documentation", "Documentation")]
281
281
  })]
282
282
  })]
283
283
  }),
284
- j && /* @__PURE__ */ b(T, {
284
+ A && /* @__PURE__ */ y(w, {
285
285
  className: "border-border-seam p-5",
286
- children: [/* @__PURE__ */ b("h2", {
286
+ children: [/* @__PURE__ */ y("h2", {
287
287
  className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
288
- children: [/* @__PURE__ */ y(de, {
288
+ children: [/* @__PURE__ */ v(fe, {
289
289
  size: 18,
290
290
  className: "text-primary"
291
- }), F("integrations.providerDetail.sections.pluginManagement", "Plugin Management")]
292
- }), /* @__PURE__ */ y(C, {
291
+ }), P("integrations.providerDetail.sections.pluginManagement", "Plugin Management")]
292
+ }), /* @__PURE__ */ v(S, {
293
293
  align: "start",
294
- primary: X ? {
295
- label: F("integrations.providerDetail.actions.edit", "Edit"),
294
+ primary: Y ? {
295
+ label: P("integrations.providerDetail.actions.edit", "Edit"),
296
296
  onSelect: je,
297
- icon: /* @__PURE__ */ y(ce, { size: 14 })
297
+ icon: /* @__PURE__ */ v(le, { size: 14 })
298
298
  } : void 0,
299
299
  actions: [
300
- ...X && B.pluginStatus === "installed" ? [{
301
- label: B.isEnabled ? F("integrations.providerDetail.actions.disable", "Disable") : F("integrations.providerDetail.actions.enable", "Enable"),
300
+ ...Y && z.pluginStatus === "installed" ? [{
301
+ label: z.isEnabled ? P("integrations.providerDetail.actions.disable", "Disable") : P("integrations.providerDetail.actions.enable", "Enable"),
302
302
  onSelect: () => {
303
- Oe();
303
+ Q();
304
304
  },
305
- disabled: Z,
306
- icon: /* @__PURE__ */ y(le, { size: 14 })
305
+ disabled: X,
306
+ icon: /* @__PURE__ */ v(ue, { size: 14 })
307
307
  }] : [],
308
- ...we && B.pluginStatus === "available" ? [{
309
- label: F("integrations.providerDetail.actions.installPlugin", "Install Plugin"),
308
+ ...Te && z.pluginStatus === "available" ? [{
309
+ label: P("integrations.providerDetail.actions.installPlugin", "Install Plugin"),
310
310
  onSelect: () => {},
311
- icon: /* @__PURE__ */ y(p, { size: 14 })
311
+ icon: /* @__PURE__ */ v(f, { size: 14 })
312
312
  }] : [],
313
- ...X && B.pluginStatus === "update_available" ? [{
314
- label: F("integrations.providerDetail.actions.updateAvailable", "Update Available"),
313
+ ...Y && z.pluginStatus === "update_available" ? [{
314
+ label: P("integrations.providerDetail.actions.updateAvailable", "Update Available"),
315
315
  onSelect: () => {},
316
- icon: /* @__PURE__ */ y(p, { size: 14 })
316
+ icon: /* @__PURE__ */ v(f, { size: 14 })
317
317
  }] : [],
318
- ...Te && B.pluginStatus === "installed" ? [{
319
- label: F("integrations.providerDetail.actions.uninstall", "Uninstall"),
318
+ ...Ee && z.pluginStatus === "installed" ? [{
319
+ label: P("integrations.providerDetail.actions.uninstall", "Uninstall"),
320
320
  onSelect: () => {
321
321
  ke();
322
322
  },
323
323
  intent: "destructive",
324
- disabled: Z || B.isBuiltIn,
325
- icon: /* @__PURE__ */ y(v, { size: 14 })
324
+ disabled: X || z.isBuiltIn,
325
+ icon: /* @__PURE__ */ v(_, { size: 14 })
326
326
  }] : []
327
327
  ]
328
328
  })]
@@ -330,76 +330,76 @@ function A() {
330
330
  ]
331
331
  })]
332
332
  }),
333
- /* @__PURE__ */ b(w, {
333
+ /* @__PURE__ */ y(C, {
334
334
  className: "overflow-hidden p-0",
335
335
  children: [
336
- /* @__PURE__ */ b("div", {
336
+ /* @__PURE__ */ y("div", {
337
337
  className: "flex items-center justify-between p-5 border-b border-border-seam",
338
- children: [/* @__PURE__ */ b("div", {
338
+ children: [/* @__PURE__ */ y("div", {
339
339
  className: "flex items-center gap-2",
340
- children: [/* @__PURE__ */ y(se, {
340
+ children: [/* @__PURE__ */ v(ce, {
341
341
  size: 18,
342
342
  className: "text-primary"
343
- }), /* @__PURE__ */ y("h2", {
343
+ }), /* @__PURE__ */ v("h2", {
344
344
  className: "font-semibold text-text-primary",
345
- children: F("integrations.providerDetail.connectionsCount", "Connections ({{count}})", { count: (U ?? []).length })
345
+ children: P("integrations.providerDetail.connectionsCount", "Connections ({{count}})", { count: (H ?? []).length })
346
346
  })]
347
- }), Y && B.pluginStatus === "installed" && B.isEnabled && /* @__PURE__ */ b(S, {
347
+ }), J && z.pluginStatus === "installed" && z.isEnabled && /* @__PURE__ */ y(x, {
348
348
  size: "sm",
349
- onClick: Q,
350
- children: [/* @__PURE__ */ y(_, { size: 14 }), F("integrations.providerDetail.actions.add", "Add")]
349
+ onClick: Z,
350
+ children: [/* @__PURE__ */ v(g, { size: 14 }), P("integrations.providerDetail.actions.add", "Add")]
351
351
  })]
352
352
  }),
353
- W && /* @__PURE__ */ y("div", {
353
+ U && /* @__PURE__ */ v("div", {
354
354
  className: "flex items-center justify-center py-12",
355
- children: /* @__PURE__ */ y(h, {
355
+ children: /* @__PURE__ */ v(m, {
356
356
  size: 24,
357
357
  className: "animate-spin text-text-secondary"
358
358
  })
359
359
  }),
360
- !W && (U ?? []).length === 0 && /* @__PURE__ */ y(E, {
360
+ !U && (H ?? []).length === 0 && /* @__PURE__ */ v(T, {
361
361
  illustration: "empty-data",
362
- title: F("integrations.providerDetail.noConnections.title", "No connections yet"),
363
- description: F("integrations.providerDetail.noConnections.description", "Create a connection to start using {{provider}} in your workspace.", { provider: B.name }),
364
- action: $ ? /* @__PURE__ */ b(S, {
365
- onClick: Q,
366
- children: [/* @__PURE__ */ y(_, { size: 16 }), F("integrations.providerDetail.actions.createConnection", "Create Connection")]
362
+ title: P("integrations.providerDetail.noConnections.title", "No connections yet"),
363
+ description: P("integrations.providerDetail.noConnections.description", "Create a connection to start using {{provider}} in your workspace.", { provider: z.name }),
364
+ action: $ ? /* @__PURE__ */ y(x, {
365
+ onClick: Z,
366
+ children: [/* @__PURE__ */ v(g, { size: 16 }), P("integrations.providerDetail.actions.createConnection", "Create Connection")]
367
367
  }) : void 0
368
368
  }),
369
- !W && (U ?? []).length > 0 && /* @__PURE__ */ y("div", {
369
+ !U && (H ?? []).length > 0 && /* @__PURE__ */ v("div", {
370
370
  className: "p-4 space-y-3",
371
- children: (U ?? []).map((e) => /* @__PURE__ */ y(s, {
371
+ children: (H ?? []).map((e) => /* @__PURE__ */ v(o, {
372
372
  connection: e,
373
373
  displayMode: "list",
374
- onClick: De
374
+ onClick: Oe
375
375
  }, e.id))
376
376
  })
377
377
  ]
378
378
  }),
379
- /* @__PURE__ */ y(a, {
380
- open: R,
381
- onClose: ge,
382
- preselectedProviderId: z,
379
+ /* @__PURE__ */ v(n, {
380
+ open: L,
381
+ onClose: _e,
382
+ preselectedProviderId: R,
383
383
  onConnectionCreated: () => {
384
- H();
384
+ V();
385
385
  }
386
386
  }),
387
- /* @__PURE__ */ y(c, {
388
- open: Ce,
389
- title: F("integrations.providerDetail.uninstallDialog.title", "Uninstall {{provider}}", { provider: B.name }),
390
- description: F("integrations.providerDetail.uninstallDialog.description", "Existing active connections must be removed first. This action is only available in admin mode."),
391
- confirmLabel: F("integrations.providerDetail.uninstallDialog.confirm", "Uninstall"),
392
- cancelLabel: F("integrations.common.cancel", "Cancel"),
387
+ /* @__PURE__ */ v(s, {
388
+ open: we,
389
+ title: P("integrations.providerDetail.uninstallDialog.title", "Uninstall {{provider}}", { provider: z.name }),
390
+ description: P("integrations.providerDetail.uninstallDialog.description", "Existing active connections must be removed first. This action is only available in admin mode."),
391
+ confirmLabel: P("integrations.providerDetail.uninstallDialog.confirm", "Uninstall"),
392
+ cancelLabel: P("integrations.common.cancel", "Cancel"),
393
393
  destructive: !0,
394
- loading: G,
395
- icon: /* @__PURE__ */ y(v, { size: 20 }),
394
+ loading: W,
395
+ icon: /* @__PURE__ */ v(_, { size: 20 }),
396
396
  onConfirm: Ae,
397
- onCancel: () => J(!1)
397
+ onCancel: () => q(!1)
398
398
  })
399
399
  ]
400
400
  });
401
401
  }
402
402
  //#endregion
403
- export { A as ProviderDetail };
403
+ export { k as ProviderDetail };
404
404
 
405
405
  //# sourceMappingURL=ProviderDetail.js.map