@burdenoff/microfe-integrations 2026.527.1 → 2026.529.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/integrations/IntegrationsAdminRoutes.js.map +1 -1
  2. package/dist/integrations/IntegrationsUserRoutes.js.map +1 -1
  3. package/dist/integrations/components/AddConnectionDialog.js +278 -251
  4. package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
  5. package/dist/integrations/components/CredentialStorageSelector.js +56 -48
  6. package/dist/integrations/components/CredentialStorageSelector.js.map +1 -1
  7. package/dist/integrations/components/ProviderCard.js.map +1 -1
  8. package/dist/integrations/hooks/useProviders.js +22 -18
  9. package/dist/integrations/hooks/useProviders.js.map +1 -1
  10. package/dist/integrations/pages/AddConnectionWizard.js +254 -233
  11. package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
  12. package/dist/integrations/pages/ConnectionDetail.js +2 -1
  13. package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
  14. package/dist/integrations/pages/ConnectionLogs.js +114 -110
  15. package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
  16. package/dist/integrations/pages/ConnectionsList.js +116 -112
  17. package/dist/integrations/pages/ConnectionsList.js.map +1 -1
  18. package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
  19. package/dist/integrations/pages/IntegrationsSettings.js +3 -0
  20. package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
  21. package/dist/integrations/pages/ProviderCatalog.js +10 -10
  22. package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
  23. package/dist/integrations/pages/ProviderDetail.js.map +1 -1
  24. package/dist/integrations/pages/ProviderEditorPage.js +233 -179
  25. package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
  26. package/dist/integrations/utils/constants.js +10 -1
  27. package/dist/integrations/utils/constants.js.map +1 -1
  28. package/package.json +2 -2
@@ -3,306 +3,304 @@ import { cn as t } from "../utils/cn.js";
3
3
  import { INTEGRATION_PERMISSIONS as n } from "../constants/permissions.js";
4
4
  import { getAuthTypeLabel as r, getCategoryLabel as i } from "../utils/integrationsHelpers.js";
5
5
  import { useGetConnectionLazyQuery as ee } from "../../generated/wspace-operations.js";
6
- import { useProviders as te } from "../hooks/useProviders.js";
7
- import { useAuthenticateWithApiKey as ne, useAuthenticateWithBasicAuth as re, useAuthenticateWithBearerToken as ie, useCreateConnection as ae, useInitiateOAuth as oe } from "../hooks/useConnections.js";
8
- import { waitForOAuthPopupCompletion as se } from "../utils/oauthPopup.js";
9
- import { CredentialStorageSelector as ce } from "./CredentialStorageSelector.js";
6
+ import { useProvider as te, useProviders as ne } from "../hooks/useProviders.js";
7
+ import { useAuthenticateWithApiKey as re, useAuthenticateWithBasicAuth as ie, useAuthenticateWithBearerToken as ae, useCreateConnection as oe, useInitiateOAuth as se } from "../hooks/useConnections.js";
8
+ import { waitForOAuthPopupCompletion as ce } from "../utils/oauthPopup.js";
9
+ import { CredentialStorageSelector as le } from "./CredentialStorageSelector.js";
10
10
  import { ProviderIcon as a } from "./ProviderIcon.js";
11
- import { useCallback as le, useEffect as o, useMemo as ue, useRef as s, useState as c } from "react";
12
- import { AlertCircle as de, Check as fe, CheckCircle2 as pe, ExternalLink as l, Info as me, Key as u, Link2 as he, Loader2 as d, Lock as f, Search as ge, Shield as _e, X as ve } from "lucide-react";
13
- import { usePermissions as ye } from "@burdenoff/fe-libs/shared/providers/shell";
14
- import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
11
+ import { useCallback as ue, useEffect as o, useId as de, useMemo as s, useRef as c, useState as l } from "react";
12
+ import { AlertCircle as fe, Check as pe, CheckCircle2 as me, ExternalLink as he, Info as ge, Key as u, Link2 as _e, Loader2 as d, Lock as ve, Search as ye, Shield as be, X as xe } from "lucide-react";
13
+ import { usePermissions as Se } from "@burdenoff/fe-libs/shared/providers/shell";
14
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
15
15
  //#region src/integrations/components/AddConnectionDialog.tsx
16
- function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated: y }) {
17
- let { apiGatewayUrl: b } = e(), { providers: x, loading: S } = te(), { hasPermission: be, isLoading: C } = ye(), xe = !C && be(n.CONNECTION_CREATE), { createConnection: w, loading: Se } = ae(), { initiateOAuth: Ce, loading: we } = oe(), { authenticateWithApiKey: Te, loading: Ee } = ne(), { authenticateWithBasicAuth: De, loading: Oe } = re(), { authenticateWithBearerToken: ke, loading: Ae } = ie(), [je] = ee({ fetchPolicy: "network-only" }), [T, E] = c(null), [D, O] = c(!v), [k, A] = c("connection"), [j, M] = c(""), [N, P] = c(""), [F, I] = c(""), [L, R] = c(""), [z, Me] = c(""), [B, Ne] = c(""), [V, Pe] = c(""), [H, Fe] = c({
16
+ function h({ open: h, onClose: g, preselectedProviderId: _, onConnectionCreated: v }) {
17
+ let { apiGatewayUrl: y } = e(), { providers: b, loading: x } = ne(), Ce = s(() => _ ? (b ?? []).find((e) => e.id === _) ?? null : null, [b, _]), { provider: we, loading: Te } = te(!x && _ && !Ce ? _ : ""), S = Ce ?? we, Ee = !!_ && !S && (x || Te), { hasPermission: De, isLoading: C } = Se(), Oe = !C && De(n.CONNECTION_CREATE), { createConnection: w, loading: ke } = oe(), { initiateOAuth: T, loading: Ae } = se(), { authenticateWithApiKey: E, loading: je } = re(), { authenticateWithBasicAuth: D, loading: Me } = ie(), { authenticateWithBearerToken: Ne, loading: Pe } = ae(), [Fe] = ee({ fetchPolicy: "network-only" }), [O, k] = l(null), [A, j] = l(!_), [M, Ie] = l("connection"), [N, Le] = l(""), [P, F] = l(""), [I, Re] = l(""), [L, ze] = l(""), [R, Be] = l(""), [z, Ve] = l(""), [B, He] = l(""), [V, Ue] = l({
18
18
  mode: "managed",
19
19
  vaultId: "",
20
20
  secretId: "",
21
21
  managedSecretName: ""
22
- }), [U, Ie] = c(!1), [Le, W] = c(""), [G, K] = c(!1), [q, J] = c(!1), [, Re] = c(null), Y = s(null), X = s(null), ze = s(null);
22
+ }), [H, We] = l(!1), [Ge, U] = l(""), [W, G] = l(!1), [K, q] = l(!1), [, Ke] = l(null), J = c(null), Y = c(null), qe = c(null), Je = de(), X = (e) => `${Je}-${e}`;
23
23
  o(() => {
24
- if (!g) return;
24
+ if (!h) return;
25
25
  let e = (e) => {
26
- e.key === "Escape" && _();
26
+ e.key === "Escape" && g();
27
27
  };
28
28
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
29
- }, [g, _]), o(() => () => {
30
- X.current?.(), Y.current && !Y.current.closed && Y.current.close();
29
+ }, [h, g]), o(() => () => {
30
+ Y.current?.(), J.current && !J.current.closed && J.current.close();
31
31
  }, []), o(() => {
32
- g && (A("connection"), M(""), P(""), I(""), R(""), Me(""), Ne(""), Pe(""), Fe({
32
+ h && (Ie("connection"), Le(""), F(""), Re(""), ze(""), Be(""), Ve(""), He(""), Ue({
33
33
  mode: "managed",
34
34
  vaultId: "",
35
35
  secretId: "",
36
36
  managedSecretName: ""
37
- }), Ie(!1), W(""), K(!1), J(!1), Re(null), v ? (O(!1), E(null)) : (O(!0), E(null)));
38
- }, [g, v]), o(() => {
39
- if (g && v && x && !T) {
40
- let e = x.find((e) => e.id === v);
41
- e && (E(e), P(`${e.name} Connection`), O(!1));
42
- }
37
+ }), We(!1), U(""), G(!1), q(!1), Ke(null), _ ? (j(!1), k(null)) : (j(!0), k(null)));
38
+ }, [h, _]), o(() => {
39
+ h && _ && S && !O && (k(S), F(`${S.name} Connection`), j(!1));
43
40
  }, [
44
- g,
45
- v,
46
- x,
47
- T
41
+ h,
42
+ _,
43
+ S,
44
+ O
48
45
  ]), o(() => {
49
- if (g && D) {
50
- let e = setTimeout(() => ze.current?.focus(), 100);
46
+ if (h && A) {
47
+ let e = setTimeout(() => qe.current?.focus(), 100);
51
48
  return () => clearTimeout(e);
52
49
  }
53
- }, [g, D]);
54
- let Z = ue(() => {
55
- let e = (x ?? []).filter((e) => e.pluginStatus === "installed" && e.isEnabled);
56
- if (!j.trim()) return e;
57
- let t = j.toLowerCase();
50
+ }, [h, A]);
51
+ let Z = s(() => {
52
+ let e = (b ?? []).filter((e) => e.pluginStatus === "installed" && e.isEnabled);
53
+ if (!N.trim()) return e;
54
+ let t = N.toLowerCase();
58
55
  return e.filter((e) => e.name.toLowerCase().includes(t) || (e.description ?? "").toLowerCase().includes(t) || e.key.toLowerCase().includes(t));
59
- }, [x, j]), Be = ue(() => {
56
+ }, [b, N]), Ye = s(() => {
60
57
  let e = {};
61
58
  return Z.forEach((t) => {
62
59
  let n = t.category;
63
60
  e[n] || (e[n] = []), e[n].push(t);
64
61
  }), e;
65
- }, [Z]), Ve = le((e) => {
66
- E(e), P(`${e.name} Connection`), O(!1), W("");
67
- }, []), Q = Se || we || q || Ee || Oe || Ae, $ = le(async () => {
68
- if (!(!T || !N.trim())) {
69
- if (!H.vaultId) {
70
- W("Please select a vault for this connection");
62
+ }, [Z]), Xe = ue((e) => {
63
+ k(e), F(`${e.name} Connection`), j(!1), U("");
64
+ }, []), Q = ke || Ae || K || je || Me || Pe, $ = ue(async () => {
65
+ if (!(!O || !P.trim())) {
66
+ if (!V.vaultId) {
67
+ U("Please select a vault for this connection");
71
68
  return;
72
69
  }
73
- if (H.mode === "existing" && !H.secretId) {
74
- W("Please select an existing vault secret");
70
+ if (V.mode === "existing" && !V.secretId) {
71
+ U("Please select an existing vault secret");
75
72
  return;
76
73
  }
77
74
  try {
78
- W("");
75
+ U("");
79
76
  let e = await w({
80
- name: N.trim(),
81
- description: F.trim() || void 0,
82
- providerId: T.id,
83
- vaultId: H.vaultId,
84
- credentialSecretId: H.mode === "existing" ? H.secretId : void 0,
85
- managedSecretName: H.mode === "managed" && H.managedSecretName.trim() || void 0
77
+ name: P.trim(),
78
+ description: I.trim() || void 0,
79
+ providerId: O.id,
80
+ vaultId: V.vaultId,
81
+ credentialSecretId: V.mode === "existing" ? V.secretId : void 0,
82
+ managedSecretName: V.mode === "managed" && V.managedSecretName.trim() || void 0
86
83
  });
87
84
  if (!e) {
88
- W("Failed to create connection");
85
+ U("Failed to create connection");
89
86
  return;
90
87
  }
91
- switch (Re(e), T.authType) {
88
+ switch (Ke(e), O.authType) {
92
89
  case "oauth2": {
93
- let t = await Ce(e, b ? `${b}/integrations/oauth/callback` : "/integrations/oauth/callback", T.key);
90
+ let t = await T(e, y ? `${y}/integrations/oauth/callback` : "/integrations/oauth/callback", O.key);
94
91
  if (t?.redirectUrl) {
95
92
  let n = window.screenX + (window.innerWidth - 600) / 2, r = window.screenY + (window.innerHeight - 700) / 2, i = window.open(t.redirectUrl, "oauth_popup", `width=600,height=700,left=${n},top=${r},toolbar=no,menubar=no,scrollbars=yes,resizable=yes`);
96
93
  if (!i) {
97
- W("Popup was blocked. Please allow popups for this site and try again.");
94
+ U("Popup was blocked. Please allow popups for this site and try again.");
98
95
  return;
99
96
  }
100
- Y.current = i, J(!0), X.current?.(), X.current = se({
97
+ J.current = i, q(!0), Y.current?.(), Y.current = ce({
101
98
  connectionId: e,
102
99
  popup: i,
103
100
  fetchConnectionStatus: async () => {
104
- let { data: t } = await je({ variables: { id: e } });
101
+ let { data: t } = await Fe({ variables: { id: e } });
105
102
  return t?.getConnection ?? null;
106
103
  },
107
104
  onSuccess: () => {
108
- K(!0), y?.(e);
105
+ G(!0), v?.(e);
109
106
  },
110
- onError: W,
107
+ onError: U,
111
108
  onSettled: () => {
112
- X.current = null, Y.current = null, J(!1);
109
+ Y.current = null, J.current = null, q(!1);
113
110
  }
114
111
  });
115
112
  return;
116
113
  }
117
- K(!0), y?.(e);
114
+ G(!0), v?.(e);
118
115
  break;
119
116
  }
120
117
  case "api_key":
121
118
  if (!L.trim()) {
122
- W("API key is required");
119
+ U("API key is required");
123
120
  return;
124
121
  }
125
- await Te(e, L.trim()), K(!0), y?.(e);
122
+ await E(e, L.trim()), G(!0), v?.(e);
126
123
  break;
127
124
  case "basic_auth":
128
- if (!z.trim() || !B.trim()) {
129
- W("Username and password are required");
125
+ if (!R.trim() || !z.trim()) {
126
+ U("Username and password are required");
130
127
  return;
131
128
  }
132
- await De(e, z.trim(), B.trim()), K(!0), y?.(e);
129
+ await D(e, R.trim(), z.trim()), G(!0), v?.(e);
133
130
  break;
134
131
  case "bearer_token":
135
- if (!V.trim()) {
136
- W("Bearer token is required");
132
+ if (!B.trim()) {
133
+ U("Bearer token is required");
137
134
  return;
138
135
  }
139
- await ke(e, V.trim()), K(!0), y?.(e);
136
+ await Ne(e, B.trim()), G(!0), v?.(e);
140
137
  break;
141
- default: K(!0), y?.(e);
138
+ default: G(!0), v?.(e);
142
139
  }
143
140
  } catch (e) {
144
- W(e instanceof Error ? e.message : "Connection failed");
141
+ U(e instanceof Error ? e.message : "Connection failed");
145
142
  }
146
143
  }
147
144
  }, [
148
- T,
149
- N,
150
- F,
145
+ O,
146
+ P,
147
+ I,
151
148
  L,
149
+ R,
152
150
  z,
153
151
  B,
154
- V,
155
152
  w,
156
- Ce,
157
- je,
158
- Te,
159
- De,
160
- ke,
161
- b,
153
+ T,
154
+ Fe,
155
+ E,
156
+ D,
157
+ Ne,
162
158
  y,
163
- H
164
- ]), He = [{
159
+ v,
160
+ V
161
+ ]), Ze = [{
165
162
  key: "connection",
166
163
  label: "Connection",
167
- icon: he
164
+ icon: _e
168
165
  }, {
169
166
  key: "details",
170
167
  label: "Details",
171
- icon: me
168
+ icon: ge
172
169
  }];
173
- return g ? !xe && !C ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
170
+ return h ? !Oe && !C ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
174
171
  className: "fixed inset-0 bg-foreground/40 z-50 animate-in fade-in-0 duration-200",
175
- onClick: _
176
- }), /* @__PURE__ */ h("div", {
172
+ onClick: g
173
+ }), /* @__PURE__ */ m("div", {
177
174
  role: "dialog",
178
175
  "aria-modal": "true",
179
176
  "aria-labelledby": "add-connection-denied-title",
180
177
  className: "fixed inset-x-4 top-1/2 z-50 mx-auto flex max-w-md -translate-y-1/2 flex-col items-center gap-4 rounded-xl border border-border bg-background p-8 shadow-2xl text-center",
181
178
  children: [
182
- /* @__PURE__ */ m(_e, {
179
+ /* @__PURE__ */ p(be, {
183
180
  size: 40,
184
181
  className: "text-muted-foreground"
185
182
  }),
186
- /* @__PURE__ */ m("h2", {
183
+ /* @__PURE__ */ p("h2", {
187
184
  id: "add-connection-denied-title",
188
185
  className: "text-lg font-semibold text-foreground",
189
186
  children: "Access Denied"
190
187
  }),
191
- /* @__PURE__ */ m("p", {
188
+ /* @__PURE__ */ p("p", {
192
189
  className: "text-sm text-muted-foreground",
193
190
  children: "You don't have permission to create connections."
194
191
  }),
195
- /* @__PURE__ */ m("button", {
192
+ /* @__PURE__ */ p("button", {
196
193
  type: "button",
197
- onClick: _,
194
+ onClick: g,
198
195
  className: "px-4 py-2 text-sm font-medium rounded-md border border-border hover:bg-accent transition-colors",
199
196
  children: "Close"
200
197
  })
201
198
  ]
202
- })] }) : /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
199
+ })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
203
200
  className: "fixed inset-0 bg-foreground/40 z-50 animate-in fade-in-0 duration-200",
204
- onClick: _
205
- }), /* @__PURE__ */ h("div", {
201
+ onClick: g
202
+ }), /* @__PURE__ */ m("div", {
206
203
  role: "dialog",
207
204
  "aria-modal": "true",
208
205
  "aria-labelledby": "add-connection-dialog-title",
209
206
  className: "fixed inset-x-4 top-4 bottom-4 z-50 mx-auto flex w-auto max-w-2xl flex-col overflow-hidden rounded-xl border border-border bg-background shadow-2xl animate-in fade-in-0 zoom-in-95 duration-200 sm:inset-x-6 sm:top-1/2 sm:bottom-auto sm:w-full sm:-translate-y-1/2",
210
- children: [/* @__PURE__ */ h("div", {
207
+ children: [/* @__PURE__ */ m("div", {
211
208
  className: "flex items-center justify-between px-5 py-4 border-b border-border flex-shrink-0",
212
- children: [/* @__PURE__ */ m("div", {
209
+ children: [/* @__PURE__ */ p("div", {
213
210
  className: "flex items-center gap-3",
214
- children: T && !D ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(a, {
215
- provider: T,
211
+ children: O && !A ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(a, {
212
+ provider: O,
216
213
  size: 32
217
- }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("h2", {
214
+ }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("h2", {
218
215
  id: "add-connection-dialog-title",
219
216
  className: "text-base font-semibold text-foreground",
220
- children: [T.name, " account"]
221
- }), /* @__PURE__ */ m("p", {
217
+ children: [O.name, " account"]
218
+ }), /* @__PURE__ */ p("p", {
222
219
  className: "text-xs text-muted-foreground",
223
- children: r(T.authType)
224
- })] })] }) : /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h2", {
220
+ children: r(O.authType)
221
+ })] })] }) : /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
225
222
  id: "add-connection-dialog-title",
226
223
  className: "text-base font-semibold text-foreground",
227
224
  children: "Add new credential"
228
- }), /* @__PURE__ */ m("p", {
225
+ }), /* @__PURE__ */ p("p", {
229
226
  className: "text-xs text-muted-foreground",
230
227
  children: "Select an app or service to connect to"
231
228
  })] })
232
- }), /* @__PURE__ */ h("div", {
229
+ }), /* @__PURE__ */ m("div", {
233
230
  className: "flex items-center gap-2",
234
- children: [T && !D && !G && /* @__PURE__ */ h("button", {
231
+ children: [O && !A && !W && /* @__PURE__ */ m("button", {
235
232
  type: "button",
236
233
  onClick: $,
237
- disabled: Q || !N.trim(),
234
+ disabled: Q || !P.trim(),
238
235
  className: "inline-flex items-center gap-1.5 px-4 py-1.5 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors disabled:opacity-50",
239
- children: [Q ? /* @__PURE__ */ m(d, {
236
+ children: [Q ? /* @__PURE__ */ p(d, {
240
237
  size: 14,
241
238
  className: "animate-spin"
242
- }) : /* @__PURE__ */ m(fe, { size: 14 }), q ? "Waiting..." : "Save"]
243
- }), /* @__PURE__ */ m("button", {
239
+ }) : /* @__PURE__ */ p(pe, { size: 14 }), K ? "Waiting..." : "Save"]
240
+ }), /* @__PURE__ */ p("button", {
244
241
  type: "button",
245
- onClick: _,
242
+ onClick: g,
246
243
  className: "p-1.5 rounded-md hover:bg-accent transition-colors text-muted-foreground hover:text-foreground",
247
244
  "aria-label": "Close",
248
- children: /* @__PURE__ */ m(ve, { size: 20 })
245
+ children: /* @__PURE__ */ p(xe, { size: 20 })
249
246
  })]
250
247
  })]
251
- }), /* @__PURE__ */ h("div", {
248
+ }), /* @__PURE__ */ m("div", {
252
249
  className: "flex flex-1 min-h-0 overflow-hidden",
253
250
  children: [
254
- D && !T && /* @__PURE__ */ h("div", {
251
+ A && !O && /* @__PURE__ */ m("div", {
255
252
  className: "flex-1 p-5 overflow-y-auto",
256
253
  children: [
257
- /* @__PURE__ */ m("p", {
254
+ /* @__PURE__ */ p("p", {
258
255
  className: "text-sm text-muted-foreground mb-3",
259
256
  children: "Select an app or service to connect to"
260
257
  }),
261
- /* @__PURE__ */ h("div", {
258
+ /* @__PURE__ */ m("div", {
262
259
  className: "relative mb-4",
263
- children: [/* @__PURE__ */ m(ge, {
260
+ children: [/* @__PURE__ */ p(ye, {
264
261
  size: 16,
265
262
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
266
- }), /* @__PURE__ */ m("input", {
267
- ref: ze,
263
+ }), /* @__PURE__ */ p("input", {
264
+ ref: qe,
268
265
  type: "text",
269
- value: j,
270
- onChange: (e) => M(e.target.value),
266
+ value: N,
267
+ onChange: (e) => Le(e.target.value),
271
268
  placeholder: "Search providers...",
269
+ "aria-label": "Search providers",
272
270
  className: "w-full pl-9 pr-3 py-2.5 border border-border rounded-md bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
273
271
  })]
274
272
  }),
275
- S ? /* @__PURE__ */ m("div", {
273
+ x ? /* @__PURE__ */ p("div", {
276
274
  className: "flex items-center justify-center py-8",
277
- children: /* @__PURE__ */ m(d, {
275
+ children: /* @__PURE__ */ p(d, {
278
276
  size: 24,
279
277
  className: "animate-spin text-muted-foreground"
280
278
  })
281
- }) : Z.length === 0 ? /* @__PURE__ */ h("div", {
279
+ }) : Z.length === 0 ? /* @__PURE__ */ m("div", {
282
280
  className: "text-center py-8 text-sm text-muted-foreground",
283
281
  children: [
284
282
  "No providers found matching “",
285
- j,
283
+ N,
286
284
  "”"
287
285
  ]
288
- }) : /* @__PURE__ */ m("div", {
286
+ }) : /* @__PURE__ */ p("div", {
289
287
  className: "max-h-[400px] overflow-y-auto space-y-1",
290
- children: Object.entries(Be).map(([e, t]) => /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("div", {
288
+ children: Object.entries(Ye).map(([e, t]) => /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("div", {
291
289
  className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider",
292
290
  children: i(e)
293
- }), t.map((e) => /* @__PURE__ */ h("button", {
291
+ }), t.map((e) => /* @__PURE__ */ m("button", {
294
292
  type: "button",
295
- onClick: () => Ve(e),
293
+ onClick: () => Xe(e),
296
294
  className: "w-full flex items-center gap-3 px-3 py-2.5 rounded-md hover:bg-accent/50 transition-colors text-left",
297
- children: [/* @__PURE__ */ m(a, {
295
+ children: [/* @__PURE__ */ p(a, {
298
296
  provider: e,
299
297
  size: 32
300
- }), /* @__PURE__ */ h("div", {
298
+ }), /* @__PURE__ */ m("div", {
301
299
  className: "flex-1 min-w-0",
302
- children: [/* @__PURE__ */ m("div", {
300
+ children: [/* @__PURE__ */ p("div", {
303
301
  className: "text-sm font-medium text-foreground",
304
302
  children: e.name
305
- }), /* @__PURE__ */ m("div", {
303
+ }), /* @__PURE__ */ p("div", {
306
304
  className: "text-xs text-muted-foreground",
307
305
  children: r(e.authType)
308
306
  })]
@@ -311,246 +309,272 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
311
309
  })
312
310
  ]
313
311
  }),
314
- !D && !T && S && /* @__PURE__ */ m("div", {
312
+ !A && !O && Ee && /* @__PURE__ */ p("div", {
315
313
  className: "flex-1 flex items-center justify-center",
316
- children: /* @__PURE__ */ m(d, {
314
+ children: /* @__PURE__ */ p(d, {
317
315
  size: 32,
318
316
  className: "animate-spin text-muted-foreground"
319
317
  })
320
318
  }),
321
- G && T && /* @__PURE__ */ h("div", {
319
+ !A && !O && !Ee && _ && /* @__PURE__ */ m("div", {
320
+ className: "flex-1 flex flex-col items-center justify-center p-8 text-center",
321
+ children: [/* @__PURE__ */ p(fe, {
322
+ size: 32,
323
+ className: "text-muted-foreground mb-3"
324
+ }), /* @__PURE__ */ p("p", {
325
+ className: "text-sm text-muted-foreground",
326
+ children: "This provider isn't available."
327
+ })]
328
+ }),
329
+ W && O && /* @__PURE__ */ m("div", {
322
330
  className: "flex-1 flex flex-col items-center justify-center p-8 text-center",
323
331
  children: [
324
- /* @__PURE__ */ m("div", {
332
+ /* @__PURE__ */ p("div", {
325
333
  className: "p-3 rounded-full bg-status-success-bg-subtle mb-4",
326
- children: /* @__PURE__ */ m(pe, {
334
+ children: /* @__PURE__ */ p(me, {
327
335
  size: 48,
328
336
  className: "text-status-success-text"
329
337
  })
330
338
  }),
331
- /* @__PURE__ */ m("h3", {
339
+ /* @__PURE__ */ p("h3", {
332
340
  className: "text-lg font-semibold text-foreground mb-1",
333
341
  children: "Connection Created!"
334
342
  }),
335
- /* @__PURE__ */ h("p", {
343
+ /* @__PURE__ */ m("p", {
336
344
  className: "text-sm text-muted-foreground mb-6",
337
345
  children: [
338
346
  "Your ",
339
- T.name,
347
+ O.name,
340
348
  " connection has been set up successfully."
341
349
  ]
342
350
  }),
343
- /* @__PURE__ */ m("button", {
351
+ /* @__PURE__ */ p("button", {
344
352
  type: "button",
345
- onClick: _,
353
+ onClick: g,
346
354
  className: "px-4 py-2 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",
347
355
  children: "Close dialog"
348
356
  })
349
357
  ]
350
358
  }),
351
- T && !D && !G && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
359
+ O && !A && !W && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
352
360
  className: "w-full border-b border-border sm:w-40 sm:border-b-0 sm:border-r flex-shrink-0 py-3 overflow-x-auto",
353
- children: He.map((e) => {
361
+ children: Ze.map((e) => {
354
362
  let n = e.icon;
355
- return /* @__PURE__ */ h("button", {
363
+ return /* @__PURE__ */ m("button", {
356
364
  type: "button",
357
- onClick: () => A(e.key),
358
- className: t("flex min-w-max items-center gap-2 px-4 py-2 text-sm font-medium transition-colors sm:w-full", k === e.key ? "text-foreground bg-accent/50 border-b-2 border-primary sm:border-b-0 sm:border-l-2" : "text-muted-foreground hover:text-foreground hover:bg-accent/30 border-b-2 border-transparent sm:border-b-0 sm:border-l-2"),
359
- children: [/* @__PURE__ */ m(n, { size: 16 }), e.label]
365
+ onClick: () => Ie(e.key),
366
+ className: t("flex min-w-max items-center gap-2 px-4 py-2 text-sm font-medium transition-colors sm:w-full", M === e.key ? "text-foreground bg-accent/50 border-b-2 border-primary sm:border-b-0 sm:border-l-2" : "text-muted-foreground hover:text-foreground hover:bg-accent/30 border-b-2 border-transparent sm:border-b-0 sm:border-l-2"),
367
+ children: [/* @__PURE__ */ p(n, { size: 16 }), e.label]
360
368
  }, e.key);
361
369
  })
362
- }), /* @__PURE__ */ h("div", {
370
+ }), /* @__PURE__ */ m("div", {
363
371
  className: "flex-1 p-5 overflow-y-auto",
364
- children: [k === "connection" && /* @__PURE__ */ h("div", {
372
+ children: [M === "connection" && /* @__PURE__ */ m("div", {
365
373
  className: "space-y-5",
366
374
  children: [
367
- Le && /* @__PURE__ */ h("div", {
375
+ Ge && /* @__PURE__ */ m("div", {
368
376
  className: "flex items-center gap-2 px-3 py-2 rounded-md bg-destructive/10 border border-destructive/20",
369
- children: [/* @__PURE__ */ m(de, {
377
+ children: [/* @__PURE__ */ p(fe, {
370
378
  size: 16,
371
379
  className: "text-destructive flex-shrink-0"
372
- }), /* @__PURE__ */ m("span", {
380
+ }), /* @__PURE__ */ p("span", {
373
381
  className: "text-sm text-destructive",
374
- children: Le
382
+ children: Ge
375
383
  })]
376
384
  }),
377
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
385
+ /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("label", {
386
+ htmlFor: X("conn-name"),
378
387
  className: "block text-sm font-medium text-foreground mb-1.5",
379
- children: ["Connection Name ", /* @__PURE__ */ m("span", {
388
+ children: ["Connection Name ", /* @__PURE__ */ p("span", {
380
389
  className: "text-status-error-text",
381
390
  children: "*"
382
391
  })]
383
- }), /* @__PURE__ */ m("input", {
392
+ }), /* @__PURE__ */ p("input", {
393
+ id: X("conn-name"),
394
+ "aria-label": "Connection Name",
384
395
  type: "text",
385
- value: N,
386
- onChange: (e) => P(e.target.value),
387
- placeholder: `My ${T.name} Connection`,
396
+ value: P,
397
+ onChange: (e) => F(e.target.value),
398
+ placeholder: `My ${O.name} Connection`,
388
399
  disabled: Q,
389
400
  className: "w-full px-3 py-2 border border-border rounded-md bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
390
401
  })] }),
391
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
402
+ /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
403
+ htmlFor: X("conn-desc"),
392
404
  className: "block text-sm font-medium text-foreground mb-1.5",
393
405
  children: "Description"
394
- }), /* @__PURE__ */ m("input", {
406
+ }), /* @__PURE__ */ p("input", {
407
+ id: X("conn-desc"),
408
+ "aria-label": "Description",
395
409
  type: "text",
396
- value: F,
397
- onChange: (e) => I(e.target.value),
410
+ value: I,
411
+ onChange: (e) => Re(e.target.value),
398
412
  placeholder: "Optional description",
399
413
  disabled: Q,
400
414
  className: "w-full px-3 py-2 border border-border rounded-md bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
401
415
  })] }),
402
- /* @__PURE__ */ m(ce, {
403
- value: H,
404
- onChange: Fe,
405
- providerAuthType: T.authType
416
+ /* @__PURE__ */ p(le, {
417
+ value: V,
418
+ onChange: Ue,
419
+ providerAuthType: O.authType
406
420
  }),
407
- /* @__PURE__ */ h("div", {
421
+ /* @__PURE__ */ m("div", {
408
422
  className: "rounded-md border border-border/50 bg-card p-4",
409
423
  children: [
410
- /* @__PURE__ */ h("h3", {
424
+ /* @__PURE__ */ m("h3", {
411
425
  className: "font-medium text-foreground flex items-center gap-2 mb-3 text-sm",
412
426
  children: [
413
- /* @__PURE__ */ m(_e, {
427
+ /* @__PURE__ */ p(be, {
414
428
  size: 16,
415
429
  className: "text-primary"
416
430
  }),
417
431
  "Authentication: ",
418
- r(T.authType)
432
+ r(O.authType)
419
433
  ]
420
434
  }),
421
- T.authType === "oauth2" && /* @__PURE__ */ m("div", {
435
+ O.authType === "oauth2" && /* @__PURE__ */ p("div", {
422
436
  className: "space-y-3",
423
- children: q ? /* @__PURE__ */ h("div", {
437
+ children: K ? /* @__PURE__ */ m("div", {
424
438
  className: "flex flex-col items-center gap-3 py-4",
425
439
  children: [
426
- /* @__PURE__ */ m(d, {
440
+ /* @__PURE__ */ p(d, {
427
441
  size: 28,
428
442
  className: "animate-spin text-primary"
429
443
  }),
430
- /* @__PURE__ */ h("p", {
444
+ /* @__PURE__ */ m("p", {
431
445
  className: "text-sm font-medium text-foreground",
432
446
  children: [
433
447
  "Waiting for ",
434
- T.name,
448
+ O.name,
435
449
  " authorization…"
436
450
  ]
437
451
  }),
438
- /* @__PURE__ */ m("p", {
452
+ /* @__PURE__ */ p("p", {
439
453
  className: "text-xs text-muted-foreground",
440
454
  children: "Complete the sign-in in the popup window"
441
455
  }),
442
- /* @__PURE__ */ h("div", {
456
+ /* @__PURE__ */ m("div", {
443
457
  className: "p-2 rounded-md bg-status-warning-bg-subtle border border-border-default text-xs text-status-warning-text flex items-center gap-1.5",
444
- children: [/* @__PURE__ */ m(l, { size: 12 }), "Don't see the popup? Check if it was blocked"]
458
+ children: [/* @__PURE__ */ p(he, { size: 12 }), "Don't see the popup? Check if it was blocked"]
445
459
  })
446
460
  ]
447
- }) : /* @__PURE__ */ h("div", {
461
+ }) : /* @__PURE__ */ m("div", {
448
462
  className: "space-y-3",
449
- children: [/* @__PURE__ */ h("div", {
463
+ children: [/* @__PURE__ */ m("div", {
450
464
  className: "p-2.5 rounded-md bg-status-info-bg-subtle border border-border-default text-sm text-status-info-text flex items-center gap-2",
451
465
  children: [
452
- /* @__PURE__ */ m(l, { size: 14 }),
466
+ /* @__PURE__ */ p(he, { size: 14 }),
453
467
  "A popup window will open for",
454
468
  " ",
455
- T.name,
469
+ O.name,
456
470
  " sign-in"
457
471
  ]
458
- }), /* @__PURE__ */ h("button", {
472
+ }), /* @__PURE__ */ m("button", {
459
473
  type: "button",
460
474
  onClick: $,
461
- disabled: Q || !N.trim(),
475
+ disabled: Q || !P.trim(),
462
476
  className: "w-full inline-flex items-center justify-center gap-2.5 rounded-md border border-primary bg-primary px-4 py-2.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90 disabled:opacity-50",
463
477
  children: [
464
- /* @__PURE__ */ m(a, {
465
- provider: T,
478
+ /* @__PURE__ */ p(a, {
479
+ provider: O,
466
480
  size: 20
467
481
  }),
468
482
  "Sign in with",
469
483
  " ",
470
- T.name.replace(/^(Google|Microsoft)\s/, "")
484
+ O.name.replace(/^(Google|Microsoft)\s/, "")
471
485
  ]
472
486
  })]
473
487
  })
474
488
  }),
475
- T.authType === "api_key" && /* @__PURE__ */ h("div", {
489
+ O.authType === "api_key" && /* @__PURE__ */ m("div", {
476
490
  className: "space-y-3",
477
- children: [/* @__PURE__ */ h("p", {
491
+ children: [/* @__PURE__ */ m("p", {
478
492
  className: "text-xs text-muted-foreground",
479
493
  children: [
480
494
  "Enter your ",
481
- T.name,
495
+ O.name,
482
496
  " API key."
483
497
  ]
484
- }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
498
+ }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("label", {
499
+ htmlFor: X("api-key"),
485
500
  className: "block text-sm font-medium text-foreground mb-1.5",
486
- children: ["API Key ", /* @__PURE__ */ m("span", {
501
+ children: ["API Key ", /* @__PURE__ */ p("span", {
487
502
  className: "text-status-error-text",
488
503
  children: "*"
489
504
  })]
490
- }), /* @__PURE__ */ h("div", {
505
+ }), /* @__PURE__ */ m("div", {
491
506
  className: "relative",
492
507
  children: [
493
- /* @__PURE__ */ m(u, {
508
+ /* @__PURE__ */ p(u, {
494
509
  size: 14,
495
510
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
496
511
  }),
497
- /* @__PURE__ */ m("input", {
498
- type: U ? "text" : "password",
512
+ /* @__PURE__ */ p("input", {
513
+ id: X("api-key"),
514
+ "aria-label": "API Key",
515
+ type: H ? "text" : "password",
499
516
  value: L,
500
- onChange: (e) => R(e.target.value),
517
+ onChange: (e) => ze(e.target.value),
501
518
  placeholder: "Enter your API key",
502
519
  disabled: Q,
503
520
  className: "w-full pl-9 pr-10 py-2 border border-border rounded-md bg-background text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
504
521
  }),
505
- /* @__PURE__ */ m("button", {
522
+ /* @__PURE__ */ p("button", {
506
523
  type: "button",
507
- onClick: () => Ie(!U),
524
+ onClick: () => We(!H),
525
+ "aria-label": H ? "Hide secret" : "Show secret",
508
526
  className: "absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",
509
- children: m(U ? f : u, { size: 14 })
527
+ children: p(H ? ve : u, { size: 14 })
510
528
  })
511
529
  ]
512
530
  })] })]
513
531
  }),
514
- T.authType === "basic_auth" && /* @__PURE__ */ h("div", {
532
+ O.authType === "basic_auth" && /* @__PURE__ */ m("div", {
515
533
  className: "space-y-3",
516
534
  children: [
517
- /* @__PURE__ */ h("p", {
535
+ /* @__PURE__ */ m("p", {
518
536
  className: "text-xs text-muted-foreground",
519
537
  children: [
520
538
  "Enter your ",
521
- T.name,
539
+ O.name,
522
540
  " credentials."
523
541
  ]
524
542
  }),
525
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
543
+ /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("label", {
544
+ htmlFor: X("username"),
526
545
  className: "block text-sm font-medium text-foreground mb-1.5",
527
- children: ["Username ", /* @__PURE__ */ m("span", {
546
+ children: ["Username ", /* @__PURE__ */ p("span", {
528
547
  className: "text-status-error-text",
529
548
  children: "*"
530
549
  })]
531
- }), /* @__PURE__ */ m("input", {
550
+ }), /* @__PURE__ */ p("input", {
551
+ id: X("username"),
552
+ "aria-label": "Username",
532
553
  type: "text",
533
- value: z,
534
- onChange: (e) => Me(e.target.value),
554
+ value: R,
555
+ onChange: (e) => Be(e.target.value),
535
556
  placeholder: "Username or email",
536
557
  disabled: Q,
537
558
  className: "w-full px-3 py-2 border border-border rounded-md bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
538
559
  })] }),
539
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
560
+ /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("label", {
561
+ htmlFor: X("password"),
540
562
  className: "block text-sm font-medium text-foreground mb-1.5",
541
- children: ["Password ", /* @__PURE__ */ m("span", {
563
+ children: ["Password ", /* @__PURE__ */ p("span", {
542
564
  className: "text-status-error-text",
543
565
  children: "*"
544
566
  })]
545
- }), /* @__PURE__ */ h("div", {
567
+ }), /* @__PURE__ */ m("div", {
546
568
  className: "relative",
547
- children: [/* @__PURE__ */ m(f, {
569
+ children: [/* @__PURE__ */ p(ve, {
548
570
  size: 14,
549
571
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
550
- }), /* @__PURE__ */ m("input", {
572
+ }), /* @__PURE__ */ p("input", {
573
+ id: X("password"),
574
+ "aria-label": "Password",
551
575
  type: "password",
552
- value: B,
553
- onChange: (e) => Ne(e.target.value),
576
+ value: z,
577
+ onChange: (e) => Ve(e.target.value),
554
578
  placeholder: "Password",
555
579
  disabled: Q,
556
580
  className: "w-full pl-9 pr-3 py-2 border border-border rounded-md bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
@@ -558,30 +582,33 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
558
582
  })] })
559
583
  ]
560
584
  }),
561
- T.authType === "bearer_token" && /* @__PURE__ */ h("div", {
585
+ O.authType === "bearer_token" && /* @__PURE__ */ m("div", {
562
586
  className: "space-y-3",
563
- children: [/* @__PURE__ */ h("p", {
587
+ children: [/* @__PURE__ */ m("p", {
564
588
  className: "text-xs text-muted-foreground",
565
589
  children: [
566
590
  "Enter your ",
567
- T.name,
591
+ O.name,
568
592
  " bearer token."
569
593
  ]
570
- }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
594
+ }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("label", {
595
+ htmlFor: X("bearer-token"),
571
596
  className: "block text-sm font-medium text-foreground mb-1.5",
572
- children: ["Bearer Token ", /* @__PURE__ */ m("span", {
597
+ children: ["Bearer Token ", /* @__PURE__ */ p("span", {
573
598
  className: "text-status-error-text",
574
599
  children: "*"
575
600
  })]
576
- }), /* @__PURE__ */ h("div", {
601
+ }), /* @__PURE__ */ m("div", {
577
602
  className: "relative",
578
- children: [/* @__PURE__ */ m(u, {
603
+ children: [/* @__PURE__ */ p(u, {
579
604
  size: 14,
580
605
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
581
- }), /* @__PURE__ */ m("input", {
606
+ }), /* @__PURE__ */ p("input", {
607
+ id: X("bearer-token"),
608
+ "aria-label": "Bearer Token",
582
609
  type: "password",
583
- value: V,
584
- onChange: (e) => Pe(e.target.value),
610
+ value: B,
611
+ onChange: (e) => He(e.target.value),
585
612
  placeholder: "Enter your token",
586
613
  disabled: Q,
587
614
  className: "w-full pl-9 pr-3 py-2 border border-border rounded-md bg-background text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
@@ -591,58 +618,58 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
591
618
  ]
592
619
  })
593
620
  ]
594
- }), k === "details" && /* @__PURE__ */ h("div", {
621
+ }), M === "details" && /* @__PURE__ */ m("div", {
595
622
  className: "space-y-4",
596
- children: [/* @__PURE__ */ m("h3", {
623
+ children: [/* @__PURE__ */ p("h3", {
597
624
  className: "text-sm font-semibold text-foreground",
598
625
  children: "Details"
599
- }), /* @__PURE__ */ h("div", {
626
+ }), /* @__PURE__ */ m("div", {
600
627
  className: "space-y-3",
601
628
  children: [
602
- /* @__PURE__ */ h("div", {
629
+ /* @__PURE__ */ m("div", {
603
630
  className: "flex items-center gap-3 p-3 rounded-md border border-border",
604
- children: [/* @__PURE__ */ m(a, {
605
- provider: T,
631
+ children: [/* @__PURE__ */ p(a, {
632
+ provider: O,
606
633
  size: 40
607
- }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("p", {
634
+ }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
608
635
  className: "text-sm font-medium text-foreground",
609
- children: T.name
610
- }), /* @__PURE__ */ h("p", {
636
+ children: O.name
637
+ }), /* @__PURE__ */ m("p", {
611
638
  className: "text-xs text-muted-foreground",
612
639
  children: [
613
- r(T.authType),
640
+ r(O.authType),
614
641
  " ·",
615
642
  " ",
616
- i(T.category)
643
+ i(O.category)
617
644
  ]
618
645
  })] })]
619
646
  }),
620
- T.description && /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
647
+ O.description && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("div", {
621
648
  className: "text-xs font-medium text-muted-foreground uppercase tracking-wider",
622
649
  children: "Description"
623
- }), /* @__PURE__ */ m("p", {
650
+ }), /* @__PURE__ */ p("p", {
624
651
  className: "text-sm text-foreground mt-1",
625
- children: T.description
652
+ children: O.description
626
653
  })] }),
627
- T.website && /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
654
+ O.website && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("div", {
628
655
  className: "text-xs font-medium text-muted-foreground uppercase tracking-wider",
629
656
  children: "Website"
630
- }), /* @__PURE__ */ m("a", {
631
- href: T.website,
657
+ }), /* @__PURE__ */ p("a", {
658
+ href: O.website,
632
659
  target: "_blank",
633
660
  rel: "noopener noreferrer",
634
661
  className: "block text-sm text-primary hover:underline mt-1",
635
- children: T.website
662
+ children: O.website
636
663
  })] }),
637
- T.docsUrl && /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
664
+ O.docsUrl && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("div", {
638
665
  className: "text-xs font-medium text-muted-foreground uppercase tracking-wider",
639
666
  children: "Documentation"
640
- }), /* @__PURE__ */ m("a", {
641
- href: T.docsUrl,
667
+ }), /* @__PURE__ */ p("a", {
668
+ href: O.docsUrl,
642
669
  target: "_blank",
643
670
  rel: "noopener noreferrer",
644
671
  className: "block text-sm text-primary hover:underline mt-1",
645
- children: T.docsUrl
672
+ children: O.docsUrl
646
673
  })] })
647
674
  ]
648
675
  })]
@@ -653,6 +680,6 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
653
680
  })] }) : null;
654
681
  }
655
682
  //#endregion
656
- export { g as AddConnectionDialog };
683
+ export { h as AddConnectionDialog };
657
684
 
658
685
  //# sourceMappingURL=AddConnectionDialog.js.map