@burdenoff/microfe-integrations 2026.608.1 → 2026.624.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.
@@ -5,47 +5,47 @@ import { joinPath as r } from "../utils/navigation.js";
5
5
  import { getAuthTypeLabel as i, getCategoryLabel as ee } from "../utils/integrationsHelpers.js";
6
6
  import { useGetConnectionLazyQuery as te } from "../../generated/wspace-operations.js";
7
7
  import { useProvider as ne, useProviderByKey as re, useProviders as ie } from "../hooks/useProviders.js";
8
- import { useAuthenticateWithApiKey as ae, useAuthenticateWithBasicAuth as oe, useAuthenticateWithBearerToken as se, useCreateConnection as ce, useInitiateOAuth as le } from "../hooks/useConnections.js";
9
- import { waitForOAuthPopupCompletion as ue } from "../utils/oauthPopup.js";
10
- import { CredentialStorageSelector as de } from "../components/CredentialStorageSelector.js";
11
- import { ProviderIcon as fe } from "../components/ProviderIcon.js";
12
- import { useCallback as a, useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
13
- import { AlertCircle as u, ArrowLeft as pe, ArrowRight as me, Check as he, CheckCircle2 as ge, ExternalLink as _e, Key as ve, Link as ye, Loader2 as d, Lock as be, Search as xe, Shield as Se } from "lucide-react";
14
- import { useLocation as Ce, useParams as we } from "react-router-dom";
15
- import { usePermissions as Te } from "@burdenoff/fe-libs/shared/providers/shell";
8
+ import { useAuthenticateWithApiKey as ae, useAuthenticateWithBasicAuth as oe, useAuthenticateWithBearerToken as se, useAuthenticateWithServiceAccount as ce, useCreateConnection as le, useInitiateOAuth as ue } from "../hooks/useConnections.js";
9
+ import { waitForOAuthPopupCompletion as de } from "../utils/oauthPopup.js";
10
+ import { CredentialStorageSelector as fe } from "../components/CredentialStorageSelector.js";
11
+ import { ProviderIcon as pe } from "../components/ProviderIcon.js";
12
+ import { useCallback as a, useEffect as me, useMemo as o, useRef as he, useState as s } from "react";
13
+ import { AlertCircle as c, ArrowLeft as l, ArrowRight as ge, Check as _e, CheckCircle2 as ve, ExternalLink as ye, Key as u, Link as be, Loader2 as d, Lock as xe, Search as Se, Shield as Ce } from "lucide-react";
14
+ import { useLocation as we, useParams as Te } from "react-router-dom";
15
+ import { usePermissions as Ee } from "@burdenoff/fe-libs/shared/providers/shell";
16
16
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
17
17
  //#region src/integrations/pages/AddConnectionWizard.tsx
18
18
  function m() {
19
- let { providerId: m } = we(), { basePath: h = "/", navigate: g, apiGatewayUrl: _ } = e(), v = Ce().search, y = s(() => new URLSearchParams(v), [v]), b = y.get("providerKey") ?? null, x = y.get("returnTo") ?? null, S = y.get("channelId") ?? null, C = !!(x && S), { provider: w, loading: Ee } = re(b ?? ""), { providers: T, loading: E } = ie(), { hasPermission: De, isLoading: Oe } = Te(), ke = De(n.CONNECTION_CREATE), { createConnection: D, loading: Ae } = ce(), { initiateOAuth: O, loading: je } = le(), { authenticateWithApiKey: k, loading: Me } = ae(), { authenticateWithBasicAuth: A, loading: Ne } = oe(), { authenticateWithBearerToken: j, loading: Pe } = se(), [Fe] = te({ fetchPolicy: "network-only" }), [M, N] = l(m || b ? "configure" : "select_provider"), [P, Ie] = l(null), [F, Le] = l(""), [I, L] = l(""), [R, Re] = l(""), [z, ze] = l(""), [B, Be] = l(""), [V, Ve] = l(""), [H, He] = l(""), [U, Ue] = l({
19
+ let { providerId: m } = Te(), { basePath: h = "/", navigate: g, apiGatewayUrl: _ } = e(), v = we().search, y = o(() => new URLSearchParams(v), [v]), b = y.get("providerKey") ?? null, x = y.get("returnTo") ?? null, S = y.get("channelId") ?? null, C = !!(x && S), { provider: w, loading: De } = re(b ?? ""), { providers: T, loading: E } = ie(), { hasPermission: Oe, isLoading: ke } = Ee(), Ae = Oe(n.CONNECTION_CREATE), { createConnection: D, loading: je } = le(), { initiateOAuth: O, loading: Me } = ue(), { authenticateWithApiKey: k, loading: Ne } = ae(), { authenticateWithBasicAuth: A, loading: Pe } = oe(), { authenticateWithBearerToken: j, loading: Fe } = se(), { authenticateWithServiceAccount: Ie, loading: Le } = ce(), [Re] = te({ fetchPolicy: "network-only" }), [M, N] = s(m || b ? "configure" : "select_provider"), [P, ze] = s(null), [F, Be] = s(""), [I, L] = s(""), [R, Ve] = s(""), [z, He] = s(""), [B, Ue] = s(""), [V, We] = s(""), [H, Ge] = s(""), [U, Ke] = s({
20
20
  mode: "managed",
21
21
  vaultId: "",
22
22
  secretId: "",
23
23
  managedSecretName: ""
24
- }), [W, G] = l(""), [K, We] = l(null), [Ge, Ke] = l(!1), q = c(null), J = c(null);
25
- o(() => () => {
24
+ }), [W, G] = s(""), [K, qe] = s(null), [Je, Ye] = s(!1), q = he(null), J = he(null);
25
+ me(() => () => {
26
26
  J.current?.(), q.current && !q.current.closed && q.current.close();
27
27
  }, []);
28
- let Y = s(() => !m || !T ? null : T.find((e) => e.id === m) || null, [m, T]), { provider: qe, loading: Je } = ne(m && !Y && !E ? m : ""), X = s(() => w ?? Y ?? qe, [
28
+ let Y = o(() => !m || !T ? null : T.find((e) => e.id === m) || null, [m, T]), { provider: Xe, loading: Ze } = ne(m && !Y && !E ? m : ""), X = o(() => w ?? Y ?? Xe, [
29
29
  w,
30
30
  Y,
31
- qe
31
+ Xe
32
32
  ]);
33
- o(() => {
34
- X && !P && M === "configure" && (Ie(X), I || L(`${X.name} Connection`));
33
+ me(() => {
34
+ X && !P && M === "configure" && (ze(X), I || L(`${X.name} Connection`));
35
35
  }, [
36
36
  X,
37
37
  P,
38
38
  M,
39
39
  I
40
40
  ]);
41
- let Ye = s(() => {
41
+ let Qe = o(() => {
42
42
  let e = (T ?? []).filter((e) => e.pluginStatus === "installed" && e.isEnabled);
43
43
  if (!F) return e;
44
44
  let t = F.toLowerCase();
45
45
  return e.filter((e) => e.name.toLowerCase().includes(t) || (e.description ?? "").toLowerCase().includes(t));
46
- }, [T, F]), Xe = a((e) => {
47
- Ie(e), L(`${e.name} Connection`), N("configure");
48
- }, []), Ze = a(() => {
46
+ }, [T, F]), $e = a((e) => {
47
+ ze(e), L(`${e.name} Connection`), N("configure");
48
+ }, []), et = a(() => {
49
49
  if (!I.trim()) {
50
50
  G("Connection name is required");
51
51
  return;
@@ -59,7 +59,7 @@ function m() {
59
59
  return;
60
60
  }
61
61
  G(""), N("authenticate");
62
- }, [I, U]), Qe = a(async () => {
62
+ }, [I, U]), tt = a(async () => {
63
63
  if (P) try {
64
64
  G("");
65
65
  let e = _ ? `${_}/integrations/oauth/callback` : "/integrations/oauth/callback", t = C ? {
@@ -78,7 +78,7 @@ function m() {
78
78
  G("Failed to create connection"), N("error");
79
79
  return;
80
80
  }
81
- switch (We(n), P.authType) {
81
+ switch (qe(n), P.authType) {
82
82
  case "oauth2": {
83
83
  let t = await O(n, e, P.key);
84
84
  if (t?.redirectUrl) if (C) {
@@ -90,11 +90,11 @@ function m() {
90
90
  G("Popup was blocked. Please allow popups for this site and try again."), N("error");
91
91
  return;
92
92
  }
93
- q.current = i, Ke(!0), J.current?.(), J.current = ue({
93
+ q.current = i, Ye(!0), J.current?.(), J.current = de({
94
94
  connectionId: n,
95
95
  popup: i,
96
96
  fetchConnectionStatus: async () => {
97
- let { data: e } = await Fe({ variables: { id: n } });
97
+ let { data: e } = await Re({ variables: { id: n } });
98
98
  return e?.getConnection ?? null;
99
99
  },
100
100
  onSuccess: () => {
@@ -104,7 +104,7 @@ function m() {
104
104
  G(e), N("error");
105
105
  },
106
106
  onSettled: () => {
107
- J.current = null, q.current = null, Ke(!1);
107
+ J.current = null, q.current = null, Ye(!1);
108
108
  }
109
109
  });
110
110
  return;
@@ -133,6 +133,9 @@ function m() {
133
133
  }
134
134
  await j(n, H.trim()), N("success");
135
135
  break;
136
+ case "service_account":
137
+ await Ie(n, P.defaultScopes && P.defaultScopes.length > 0 ? P.defaultScopes : void 0), N("success");
138
+ break;
136
139
  default: N("success");
137
140
  }
138
141
  } catch (e) {
@@ -148,17 +151,18 @@ function m() {
148
151
  H,
149
152
  D,
150
153
  O,
151
- Fe,
154
+ Re,
152
155
  k,
153
156
  A,
154
157
  j,
158
+ Ie,
155
159
  C,
156
160
  x,
157
161
  S,
158
162
  _,
159
163
  K,
160
164
  U
161
- ]), $e = a(() => {
165
+ ]), nt = a(() => {
162
166
  if (!x || !K) return;
163
167
  let e = new URL(x, window.location.origin);
164
168
  e.searchParams.set("integrationConnectionId", K), S && e.searchParams.set("channelId", S), g?.(e.pathname + e.search);
@@ -167,7 +171,7 @@ function m() {
167
171
  K,
168
172
  S,
169
173
  g
170
- ]), Z = Ae || je || Ge || Me || Ne || Pe, et = b ? Ee : E || Je, Q = [
174
+ ]), Z = je || Me || Je || Ne || Pe || Fe || Le, rt = b ? De : E || Ze, Q = [
171
175
  {
172
176
  key: "select_provider",
173
177
  label: "Select Provider"
@@ -181,13 +185,13 @@ function m() {
181
185
  label: "Authenticate"
182
186
  }
183
187
  ], $ = Q.findIndex((e) => e.key === M);
184
- return Oe ? /* @__PURE__ */ f("div", {
188
+ return ke ? /* @__PURE__ */ f("div", {
185
189
  className: "flex items-center justify-center py-20",
186
190
  children: /* @__PURE__ */ f(d, {
187
191
  size: 48,
188
192
  className: "animate-spin text-primary"
189
193
  })
190
- }) : ke ? /* @__PURE__ */ p("div", {
194
+ }) : Ae ? /* @__PURE__ */ p("div", {
191
195
  className: "space-y-6 p-6 max-w-3xl mx-auto",
192
196
  children: [
193
197
  /* @__PURE__ */ p("div", {
@@ -198,7 +202,7 @@ function m() {
198
202
  onClick: () => g?.(r(h, "connections")),
199
203
  className: "p-2.5 hover:bg-accent rounded-lg transition-all",
200
204
  "aria-label": "Back",
201
- children: /* @__PURE__ */ f(pe, { size: 20 })
205
+ children: /* @__PURE__ */ f(l, { size: 20 })
202
206
  }),
203
207
  /* @__PURE__ */ f("h1", {
204
208
  className: "text-2xl font-bold text-foreground",
@@ -217,7 +221,7 @@ function m() {
217
221
  children: [
218
222
  /* @__PURE__ */ f("div", {
219
223
  className: t("w-8 h-8 rounded-full flex items-center justify-center text-sm font-medium transition-all", n < $ ? "bg-primary text-primary-foreground" : n === $ ? "bg-primary text-primary-foreground ring-4 ring-primary/20" : "bg-muted text-muted-foreground"),
220
- children: n < $ ? /* @__PURE__ */ f(he, { size: 16 }) : n + 1
224
+ children: n < $ ? /* @__PURE__ */ f(_e, { size: 16 }) : n + 1
221
225
  }),
222
226
  /* @__PURE__ */ f("span", {
223
227
  className: t("text-sm font-medium hidden sm:inline", n === $ ? "text-foreground" : "text-muted-foreground"),
@@ -229,7 +233,7 @@ function m() {
229
233
  }),
230
234
  W && M !== "error" && /* @__PURE__ */ p("div", {
231
235
  className: "rounded-xl border border-border-default bg-status-error-bg-subtle p-4 flex items-center gap-3",
232
- children: [/* @__PURE__ */ f(u, {
236
+ children: [/* @__PURE__ */ f(c, {
233
237
  size: 20,
234
238
  className: "text-status-error-text flex-shrink-0"
235
239
  }), /* @__PURE__ */ f("p", {
@@ -237,16 +241,16 @@ function m() {
237
241
  children: W
238
242
  })]
239
243
  }),
240
- M === "configure" && et && !P && /* @__PURE__ */ f("div", {
244
+ M === "configure" && rt && !P && /* @__PURE__ */ f("div", {
241
245
  className: "flex items-center justify-center py-12",
242
246
  children: /* @__PURE__ */ f(d, {
243
247
  size: 24,
244
248
  className: "animate-spin text-muted-foreground"
245
249
  })
246
250
  }),
247
- M === "configure" && !et && !P && (m || b) && /* @__PURE__ */ p("div", {
251
+ M === "configure" && !rt && !P && (m || b) && /* @__PURE__ */ p("div", {
248
252
  className: "flex flex-col items-center justify-center py-12 text-center",
249
- children: [/* @__PURE__ */ f(u, {
253
+ children: [/* @__PURE__ */ f(c, {
250
254
  size: 32,
251
255
  className: "text-muted-foreground mb-3"
252
256
  }), /* @__PURE__ */ f("p", {
@@ -259,7 +263,7 @@ function m() {
259
263
  children: [
260
264
  /* @__PURE__ */ p("div", {
261
265
  className: "relative group",
262
- children: [/* @__PURE__ */ f(xe, {
266
+ children: [/* @__PURE__ */ f(Se, {
263
267
  size: 18,
264
268
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
265
269
  }), /* @__PURE__ */ f("input", {
@@ -267,7 +271,7 @@ function m() {
267
271
  placeholder: "Search installed providers...",
268
272
  "aria-label": "Search installed providers",
269
273
  value: F,
270
- onChange: (e) => Le(e.target.value),
274
+ onChange: (e) => Be(e.target.value),
271
275
  className: "w-full pl-10 pr-4 py-2.5 border border-border rounded-lg bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
272
276
  })]
273
277
  }),
@@ -278,7 +282,7 @@ function m() {
278
282
  className: "animate-spin text-muted-foreground"
279
283
  })
280
284
  }),
281
- !E && Ye.length === 0 && /* @__PURE__ */ p("div", {
285
+ !E && Qe.length === 0 && /* @__PURE__ */ p("div", {
282
286
  className: "text-center py-12",
283
287
  children: [/* @__PURE__ */ f("p", {
284
288
  className: "text-muted-foreground",
@@ -292,11 +296,11 @@ function m() {
292
296
  }),
293
297
  /* @__PURE__ */ f("div", {
294
298
  className: "grid grid-cols-1 sm:grid-cols-2 gap-3",
295
- children: Ye.map((e) => /* @__PURE__ */ p("button", {
299
+ children: Qe.map((e) => /* @__PURE__ */ p("button", {
296
300
  type: "button",
297
- onClick: () => Xe(e),
301
+ onClick: () => $e(e),
298
302
  className: t("flex items-start gap-3 p-4 rounded-xl border border-border/50 bg-card text-left", "hover:border-primary/50 hover:bg-accent/30 hover:shadow-md transition-all duration-200"),
299
- children: [/* @__PURE__ */ f(fe, {
303
+ children: [/* @__PURE__ */ f(pe, {
300
304
  provider: e,
301
305
  size: 40
302
306
  }), /* @__PURE__ */ p("div", {
@@ -322,7 +326,7 @@ function m() {
322
326
  children: [
323
327
  /* @__PURE__ */ p("div", {
324
328
  className: "flex items-center gap-3 p-4 rounded-xl border border-border/50 bg-card",
325
- children: [/* @__PURE__ */ f(fe, {
329
+ children: [/* @__PURE__ */ f(pe, {
326
330
  provider: P,
327
331
  size: 40
328
332
  }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h3", {
@@ -360,14 +364,14 @@ function m() {
360
364
  id: "conn-desc",
361
365
  "aria-label": "Description",
362
366
  value: R,
363
- onChange: (e) => Re(e.target.value),
367
+ onChange: (e) => Ve(e.target.value),
364
368
  rows: 3,
365
369
  placeholder: "Optional description...",
366
370
  className: "w-full px-4 py-2.5 border border-border rounded-lg bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
367
371
  })] }),
368
- /* @__PURE__ */ f(de, {
372
+ /* @__PURE__ */ f(fe, {
369
373
  value: U,
370
- onChange: Ue,
374
+ onChange: Ke,
371
375
  providerAuthType: P.authType
372
376
  })
373
377
  ]
@@ -381,9 +385,9 @@ function m() {
381
385
  children: "Back"
382
386
  }), /* @__PURE__ */ p("button", {
383
387
  type: "button",
384
- onClick: Ze,
388
+ onClick: et,
385
389
  className: "inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",
386
- children: ["Next ", /* @__PURE__ */ f(me, { size: 16 })]
390
+ children: ["Next ", /* @__PURE__ */ f(ge, { size: 16 })]
387
391
  })]
388
392
  })
389
393
  ]
@@ -396,7 +400,7 @@ function m() {
396
400
  /* @__PURE__ */ p("h2", {
397
401
  className: "font-semibold text-foreground flex items-center gap-2 mb-4",
398
402
  children: [
399
- /* @__PURE__ */ f(Se, {
403
+ /* @__PURE__ */ f(Ce, {
400
404
  size: 18,
401
405
  className: "text-primary"
402
406
  }),
@@ -415,7 +419,7 @@ function m() {
415
419
  ]
416
420
  }), /* @__PURE__ */ p("div", {
417
421
  className: "p-3 rounded-lg bg-status-info-bg-subtle border border-border-default text-sm text-status-info-text flex items-center gap-2",
418
- children: [/* @__PURE__ */ f(_e, { size: 16 }), C ? "You'll be redirected back to the bot channel setup after authorization." : "A new window will open for OAuth authentication"]
422
+ children: [/* @__PURE__ */ f(ye, { size: 16 }), C ? "You'll be redirected back to the bot channel setup after authorization." : "A new window will open for OAuth authentication"]
419
423
  })]
420
424
  }),
421
425
  P.authType === "api_key" && /* @__PURE__ */ p("div", {
@@ -436,7 +440,7 @@ function m() {
436
440
  })]
437
441
  }), /* @__PURE__ */ p("div", {
438
442
  className: "relative",
439
- children: [/* @__PURE__ */ f(ve, {
443
+ children: [/* @__PURE__ */ f(u, {
440
444
  size: 16,
441
445
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
442
446
  }), /* @__PURE__ */ f("input", {
@@ -444,7 +448,7 @@ function m() {
444
448
  id: "api-key",
445
449
  "aria-label": "API Key",
446
450
  value: z,
447
- onChange: (e) => ze(e.target.value),
451
+ onChange: (e) => He(e.target.value),
448
452
  placeholder: "Enter your API key",
449
453
  className: "w-full pl-10 pr-4 py-2.5 border border-border rounded-lg bg-background text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
450
454
  })]
@@ -473,7 +477,7 @@ function m() {
473
477
  id: "username",
474
478
  "aria-label": "Username",
475
479
  value: B,
476
- onChange: (e) => Be(e.target.value),
480
+ onChange: (e) => Ue(e.target.value),
477
481
  placeholder: "Username or email",
478
482
  className: "w-full px-4 py-2.5 border border-border rounded-lg bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
479
483
  })] }),
@@ -486,7 +490,7 @@ function m() {
486
490
  })]
487
491
  }), /* @__PURE__ */ p("div", {
488
492
  className: "relative",
489
- children: [/* @__PURE__ */ f(be, {
493
+ children: [/* @__PURE__ */ f(xe, {
490
494
  size: 16,
491
495
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
492
496
  }), /* @__PURE__ */ f("input", {
@@ -494,7 +498,7 @@ function m() {
494
498
  id: "password",
495
499
  "aria-label": "Password",
496
500
  value: V,
497
- onChange: (e) => Ve(e.target.value),
501
+ onChange: (e) => We(e.target.value),
498
502
  placeholder: "Password",
499
503
  className: "w-full pl-10 pr-4 py-2.5 border border-border rounded-lg bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
500
504
  })]
@@ -519,7 +523,7 @@ function m() {
519
523
  })]
520
524
  }), /* @__PURE__ */ p("div", {
521
525
  className: "relative",
522
- children: [/* @__PURE__ */ f(ve, {
526
+ children: [/* @__PURE__ */ f(u, {
523
527
  size: 16,
524
528
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
525
529
  }), /* @__PURE__ */ f("input", {
@@ -527,11 +531,37 @@ function m() {
527
531
  id: "bearer-token",
528
532
  "aria-label": "Bearer Token",
529
533
  value: H,
530
- onChange: (e) => He(e.target.value),
534
+ onChange: (e) => Ge(e.target.value),
531
535
  placeholder: "Enter your token",
532
536
  className: "w-full pl-10 pr-4 py-2.5 border border-border rounded-lg bg-background text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
533
537
  })]
534
538
  })] })]
539
+ }),
540
+ P.authType === "service_account" && /* @__PURE__ */ f("div", {
541
+ className: "space-y-4",
542
+ children: /* @__PURE__ */ p("div", {
543
+ className: "rounded-lg border border-border bg-status-success-bg-subtle p-4",
544
+ children: [
545
+ /* @__PURE__ */ f("p", {
546
+ className: "text-sm font-semibold text-foreground",
547
+ children: "No credentials needed"
548
+ }),
549
+ /* @__PURE__ */ p("p", {
550
+ className: "text-sm text-muted-foreground mt-1",
551
+ children: [
552
+ P.name,
553
+ " is a first-party integration. Connecting grants",
554
+ " ",
555
+ P.name,
556
+ " permission to act on your behalf; access tokens are issued securely per use — there are no keys or secrets to manage."
557
+ ]
558
+ }),
559
+ P.defaultScopes && P.defaultScopes.length > 0 && /* @__PURE__ */ p("p", {
560
+ className: "text-sm text-muted-foreground mt-2",
561
+ children: ["Scopes: ", P.defaultScopes.join(", ")]
562
+ })
563
+ ]
564
+ })
535
565
  })
536
566
  ]
537
567
  }), /* @__PURE__ */ p("div", {
@@ -544,13 +574,13 @@ function m() {
544
574
  children: "Back"
545
575
  }), /* @__PURE__ */ p("button", {
546
576
  type: "button",
547
- onClick: Qe,
577
+ onClick: tt,
548
578
  disabled: Z,
549
579
  className: "inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 transition-colors disabled:opacity-50",
550
580
  children: [Z ? /* @__PURE__ */ f(d, {
551
581
  size: 16,
552
582
  className: "animate-spin"
553
- }) : /* @__PURE__ */ f(he, { size: 16 }), P.authType === "oauth2" ? "Authorize" : "Connect"]
583
+ }) : /* @__PURE__ */ f(_e, { size: 16 }), P.authType === "oauth2" ? "Authorize" : "Connect"]
554
584
  })]
555
585
  })]
556
586
  }),
@@ -559,7 +589,7 @@ function m() {
559
589
  children: [
560
590
  /* @__PURE__ */ f("div", {
561
591
  className: "p-4 rounded-full bg-status-success-bg-subtle mb-4",
562
- children: /* @__PURE__ */ f(ge, {
592
+ children: /* @__PURE__ */ f(ve, {
563
593
  size: 48,
564
594
  className: "text-status-success-text"
565
595
  })
@@ -581,9 +611,9 @@ function m() {
581
611
  children: [
582
612
  C && K && /* @__PURE__ */ p("button", {
583
613
  type: "button",
584
- onClick: $e,
614
+ onClick: nt,
585
615
  className: "inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",
586
- children: [/* @__PURE__ */ f(ye, { size: 16 }), "Link to Bot Channel"]
616
+ children: [/* @__PURE__ */ f(be, { size: 16 }), "Link to Bot Channel"]
587
617
  }),
588
618
  !C && K && /* @__PURE__ */ f("button", {
589
619
  type: "button",
@@ -606,7 +636,7 @@ function m() {
606
636
  children: [
607
637
  /* @__PURE__ */ f("div", {
608
638
  className: "p-4 rounded-full bg-status-error-bg-subtle mb-4",
609
- children: /* @__PURE__ */ f(u, {
639
+ children: /* @__PURE__ */ f(c, {
610
640
  size: 48,
611
641
  className: "text-status-error-text"
612
642
  })
@@ -641,7 +671,7 @@ function m() {
641
671
  }) : /* @__PURE__ */ p("div", {
642
672
  className: "flex flex-col items-center justify-center py-20 text-center p-6",
643
673
  children: [
644
- /* @__PURE__ */ f(Se, {
674
+ /* @__PURE__ */ f(Ce, {
645
675
  size: 48,
646
676
  className: "text-muted-foreground mb-4"
647
677
  }),
@@ -657,7 +687,7 @@ function m() {
657
687
  type: "button",
658
688
  onClick: () => g?.(r(h, "connections")),
659
689
  className: "inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium rounded-lg border border-border hover:bg-accent transition-colors",
660
- children: [/* @__PURE__ */ f(pe, { size: 16 }), " Back to Connections"]
690
+ children: [/* @__PURE__ */ f(l, { size: 16 }), " Back to Connections"]
661
691
  })
662
692
  ]
663
693
  });