@burdenoff/fe-libs 2026.1004.5 → 2026.1004.7

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 (82) hide show
  1. package/dist/chrome/ContextSwitcher.d.ts.map +1 -1
  2. package/dist/chrome/ContextSwitcher.js +73 -50
  3. package/dist/chrome/GlobalSearch.d.ts.map +1 -1
  4. package/dist/chrome/GlobalSearch.js +76 -72
  5. package/dist/chrome/LanguageSwitcher.d.ts.map +1 -1
  6. package/dist/chrome/LanguageSwitcher.js +61 -40
  7. package/dist/chrome/NotificationCenter.d.ts.map +1 -1
  8. package/dist/chrome/NotificationCenter.js +71 -68
  9. package/dist/chrome/ProfileSwitcher.d.ts.map +1 -1
  10. package/dist/chrome/ProfileSwitcher.js +87 -81
  11. package/dist/chrome/SideNavigation.d.ts.map +1 -1
  12. package/dist/chrome/SideNavigation.js +120 -76
  13. package/dist/shared/assistant/appControls/copy.d.ts +12 -0
  14. package/dist/shared/assistant/appControls/copy.d.ts.map +1 -0
  15. package/dist/shared/assistant/appControls/copy.js +98 -0
  16. package/dist/shared/assistant/appControls/grammar.d.ts +102 -0
  17. package/dist/shared/assistant/appControls/grammar.d.ts.map +1 -0
  18. package/dist/shared/assistant/appControls/grammar.js +236 -0
  19. package/dist/shared/assistant/appControls/languages.d.ts +6 -0
  20. package/dist/shared/assistant/appControls/languages.d.ts.map +1 -0
  21. package/dist/shared/assistant/appControls/languages.js +52 -0
  22. package/dist/shared/assistant/appControls/names.d.ts +22 -0
  23. package/dist/shared/assistant/appControls/names.d.ts.map +1 -0
  24. package/dist/shared/assistant/appControls/names.js +29 -0
  25. package/dist/shared/assistant/appControls/pageAdapters.d.ts +59 -0
  26. package/dist/shared/assistant/appControls/pageAdapters.d.ts.map +1 -0
  27. package/dist/shared/assistant/appControls/pageAdapters.js +87 -0
  28. package/dist/shared/assistant/appControls/plan.d.ts +148 -0
  29. package/dist/shared/assistant/appControls/plan.d.ts.map +1 -0
  30. package/dist/shared/assistant/appControls/plan.js +511 -0
  31. package/dist/shared/assistant/appControls/registry.d.ts +9 -0
  32. package/dist/shared/assistant/appControls/registry.d.ts.map +1 -0
  33. package/dist/shared/assistant/appControls/registry.js +38 -0
  34. package/dist/shared/assistant/appControls/snapshot.d.ts +42 -0
  35. package/dist/shared/assistant/appControls/snapshot.d.ts.map +1 -0
  36. package/dist/shared/assistant/appControls/snapshot.js +40 -0
  37. package/dist/shared/assistant/appControls/text.d.ts +7 -0
  38. package/dist/shared/assistant/appControls/text.d.ts.map +1 -0
  39. package/dist/shared/assistant/appControls/text.js +6 -0
  40. package/dist/shared/assistant/appControls/types.d.ts +183 -0
  41. package/dist/shared/assistant/appControls/types.d.ts.map +1 -0
  42. package/dist/shared/assistant/appControls/types.js +25 -0
  43. package/dist/shared/assistant/appControls/useAssistantControl.d.ts +24 -0
  44. package/dist/shared/assistant/appControls/useAssistantControl.d.ts.map +1 -0
  45. package/dist/shared/assistant/appControls/useAssistantControl.js +13 -0
  46. package/dist/shared/assistant/conversation.d.ts +12 -1
  47. package/dist/shared/assistant/conversation.d.ts.map +1 -1
  48. package/dist/shared/assistant/history/historyMapping.d.ts.map +1 -1
  49. package/dist/shared/assistant/history/historyMapping.js +130 -114
  50. package/dist/shared/assistant/i18nManifest.d.ts +64 -0
  51. package/dist/shared/assistant/i18nManifest.d.ts.map +1 -1
  52. package/dist/shared/assistant/i18nManifest.js +64 -0
  53. package/dist/shared/assistant/index.d.ts +13 -0
  54. package/dist/shared/assistant/index.d.ts.map +1 -1
  55. package/dist/shared/assistant/localUiCommandCopy.d.ts +7 -0
  56. package/dist/shared/assistant/localUiCommandCopy.d.ts.map +1 -1
  57. package/dist/shared/assistant/localUiCommandCopy.js +1 -1
  58. package/dist/shared/assistant/localUiCommands.d.ts +16 -0
  59. package/dist/shared/assistant/localUiCommands.d.ts.map +1 -1
  60. package/dist/shared/assistant/localUiCommands.js +97 -84
  61. package/dist/shared/assistant/ui/AIAssistantPanel.d.ts.map +1 -1
  62. package/dist/shared/assistant/ui/AIAssistantPanel.js +57 -49
  63. package/dist/shared/assistant/ui/AssistantChatArea.d.ts.map +1 -1
  64. package/dist/shared/assistant/ui/AssistantChatArea.js +1176 -1123
  65. package/dist/shared/assistant/ui/AssistantControlConfirmDialog.d.ts +38 -0
  66. package/dist/shared/assistant/ui/AssistantControlConfirmDialog.d.ts.map +1 -0
  67. package/dist/shared/assistant/ui/AssistantControlConfirmDialog.js +65 -0
  68. package/dist/shared/assistant/ui/controlConfirmDialog.d.ts +30 -0
  69. package/dist/shared/assistant/ui/controlConfirmDialog.d.ts.map +1 -0
  70. package/dist/shared/assistant/ui/controlConfirmDialog.js +46 -0
  71. package/dist/shared/assistant/ui/voice/AssistantVoiceSession.d.ts.map +1 -1
  72. package/dist/shared/assistant/ui/voice/AssistantVoiceSession.js +174 -171
  73. package/dist/shared/assistant/uiActions/recordNames.d.ts +33 -0
  74. package/dist/shared/assistant/uiActions/recordNames.d.ts.map +1 -1
  75. package/dist/shared/assistant/uiActions/recordNames.js +51 -1
  76. package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts.map +1 -1
  77. package/dist/shared/components/KeyboardHelpDialogWrapper.js +11 -9
  78. package/dist/shared/providers/shell/GlobalUiProvider.d.ts +2 -0
  79. package/dist/shared/providers/shell/GlobalUiProvider.d.ts.map +1 -1
  80. package/dist/shared/providers/shell/GlobalUiProvider.js +4 -1
  81. package/dist/shared-assistant.js +219 -206
  82. package/package.json +1 -1
@@ -1,80 +1,83 @@
1
1
  import { desktopSetBadgeCount as e } from "../shared/native/desktop.js";
2
- import { BellButton as t } from "./notificationCenter/BellButton.js";
3
- import { sortNotifications as n } from "./notificationCenter/constants.js";
4
- import { NotificationFilters as r } from "./notificationCenter/NotificationFilters.js";
5
- import { NotificationFooter as i } from "./notificationCenter/NotificationFooter.js";
6
- import { NotificationHeader as a } from "./notificationCenter/NotificationHeader.js";
7
- import { NotificationList as o } from "./notificationCenter/NotificationList.js";
8
- import { NotificationPanel as s } from "./notificationCenter/NotificationPanel.js";
9
- import { useNotificationCenter as c } from "./notificationCenter/useNotificationCenter.js";
10
- import { useEscapeClose as l, useOutsideClickClose as u, usePanelChrome as d } from "./notificationCenter/usePanelChrome.js";
11
- import { useCallback as f, useEffect as p, useRef as m, useState as h } from "react";
12
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
2
+ import { useAssistantControl as t } from "../shared/assistant/appControls/useAssistantControl.js";
3
+ import { BellButton as n } from "./notificationCenter/BellButton.js";
4
+ import { sortNotifications as r } from "./notificationCenter/constants.js";
5
+ import { NotificationFilters as i } from "./notificationCenter/NotificationFilters.js";
6
+ import { NotificationFooter as a } from "./notificationCenter/NotificationFooter.js";
7
+ import { NotificationHeader as o } from "./notificationCenter/NotificationHeader.js";
8
+ import { NotificationList as s } from "./notificationCenter/NotificationList.js";
9
+ import { NotificationPanel as c } from "./notificationCenter/NotificationPanel.js";
10
+ import { useNotificationCenter as l } from "./notificationCenter/useNotificationCenter.js";
11
+ import { useEscapeClose as u, useOutsideClickClose as d, usePanelChrome as f } from "./notificationCenter/usePanelChrome.js";
12
+ import { useCallback as p, useEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
13
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
13
14
  //#region src/chrome/NotificationCenter.tsx
14
- var v = ({ client: v, onViewAll: y, compact: b = !1, pollInterval: x = 3e4, lazy: S = !1 }) => {
15
- let C = m(null), [w, T] = h(!1), [E, D] = h("all"), [O, k] = h("ALL"), [A, j] = h("ALL"), [M, N] = h("newest"), P = f(() => T(!1), []), F = f(() => T((e) => !e), []), { isMobile: I } = d();
16
- u(w, I, C, P), l(w, P);
17
- let { notifications: L, unreadCount: R, countsByApp: z, totalCount: B, loading: V, error: H, fetchNotifications: U, handleMarkAsRead: W, handleMarkAllAsRead: G, handleDelete: K } = c({
18
- client: v,
19
- isOpen: w,
20
- lazy: S,
21
- filterTab: E,
22
- typeFilter: O,
23
- appFilter: A
15
+ var b = ({ client: b, onViewAll: x, compact: S = !1, pollInterval: C = 3e4, lazy: w = !1 }) => {
16
+ let T = g(null), [E, D] = _(!1), [O, k] = _("all"), [A, j] = _("ALL"), [M, N] = _("ALL"), [P, F] = _("newest"), I = p(() => D(!1), []), L = p(() => D((e) => !e), []);
17
+ t("header.notifications", h(() => ({ run: () => E ? { status: "already" } : (D(!0), { status: "done" }) }), [E]));
18
+ let { isMobile: R } = f();
19
+ d(E, R, T, I), u(E, I);
20
+ let { notifications: z, unreadCount: B, countsByApp: V, totalCount: H, loading: U, error: W, fetchNotifications: G, handleMarkAsRead: K, handleMarkAllAsRead: q, handleDelete: J } = l({
21
+ client: b,
22
+ isOpen: E,
23
+ lazy: w,
24
+ filterTab: O,
25
+ typeFilter: A,
26
+ appFilter: M
24
27
  });
25
- p(() => {
26
- e(R);
27
- }, [R]);
28
- let q = f((e) => {
28
+ m(() => {
29
+ e(B);
30
+ }, [B]);
31
+ let Y = p((e) => {
29
32
  window.open(e, "_blank", "noopener,noreferrer");
30
- }, []), J = f(() => {
31
- T(!1), y?.();
32
- }, [y]), Y = n(L, M), X = Object.entries(z).filter(([e]) => e && e !== "null").sort((e, t) => t[1] - e[1]);
33
- return /* @__PURE__ */ _("div", {
34
- ref: C,
33
+ }, []), X = p(() => {
34
+ D(!1), x?.();
35
+ }, [x]), Z = r(z, P), Q = Object.entries(V).filter(([e]) => e && e !== "null").sort((e, t) => t[1] - e[1]);
36
+ return /* @__PURE__ */ y("div", {
37
+ ref: T,
35
38
  className: "relative",
36
- children: [/* @__PURE__ */ g(t, {
37
- unreadCount: R,
38
- isOpen: w,
39
- onToggle: F
40
- }), w && /* @__PURE__ */ g(s, {
41
- isMobile: I,
42
- onClose: P,
43
- children: /* @__PURE__ */ _("div", {
39
+ children: [/* @__PURE__ */ v(n, {
40
+ unreadCount: B,
41
+ isOpen: E,
42
+ onToggle: L
43
+ }), E && /* @__PURE__ */ v(c, {
44
+ isMobile: R,
45
+ onClose: I,
46
+ children: /* @__PURE__ */ y("div", {
44
47
  className: "flex flex-col h-full",
45
48
  children: [
46
- /* @__PURE__ */ g(a, {
47
- isMobile: I,
48
- unreadCount: R,
49
- onClose: P,
50
- onMarkAllAsRead: G
49
+ /* @__PURE__ */ v(o, {
50
+ isMobile: R,
51
+ unreadCount: B,
52
+ onClose: I,
53
+ onMarkAllAsRead: q
51
54
  }),
52
- /* @__PURE__ */ g(r, {
53
- filterTab: E,
54
- typeFilter: O,
55
- appFilter: A,
56
- sortBy: M,
57
- appNames: X,
58
- onFilterTabChange: D,
59
- onTypeFilterChange: k,
60
- onAppFilterChange: j,
61
- onSortByChange: N
55
+ /* @__PURE__ */ v(i, {
56
+ filterTab: O,
57
+ typeFilter: A,
58
+ appFilter: M,
59
+ sortBy: P,
60
+ appNames: Q,
61
+ onFilterTabChange: k,
62
+ onTypeFilterChange: j,
63
+ onAppFilterChange: N,
64
+ onSortByChange: F
62
65
  }),
63
- /* @__PURE__ */ g(o, {
64
- loading: V,
65
- error: H,
66
- notifications: Y,
67
- filterTab: E,
68
- typeFilter: O,
69
- appFilter: A,
70
- onRetry: U,
71
- onMarkAsRead: W,
72
- onDelete: K,
73
- onRedirect: q
66
+ /* @__PURE__ */ v(s, {
67
+ loading: U,
68
+ error: W,
69
+ notifications: Z,
70
+ filterTab: O,
71
+ typeFilter: A,
72
+ appFilter: M,
73
+ onRetry: G,
74
+ onMarkAsRead: K,
75
+ onDelete: J,
76
+ onRedirect: Y
74
77
  }),
75
- Y.length > 0 && /* @__PURE__ */ g(i, {
76
- totalCount: B,
77
- onViewAll: y ? J : void 0
78
+ Z.length > 0 && /* @__PURE__ */ v(a, {
79
+ totalCount: H,
80
+ onViewAll: x ? X : void 0
78
81
  })
79
82
  ]
80
83
  })
@@ -82,4 +85,4 @@ var v = ({ client: v, onViewAll: y, compact: b = !1, pollInterval: x = 3e4, lazy
82
85
  });
83
86
  };
84
87
  //#endregion
85
- export { v as NotificationCenter };
88
+ export { b as NotificationCenter };
@@ -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.d.ts","sourceRoot":"","sources":["../../src/chrome/ProfileSwitcher.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE;QACL,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,gDAAgD;IAChD,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,qCAAqC;IACrC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+BAA+B;IAC/B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,oCAAoC;IACpC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,wBAAwB;IACxB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,wBAAwB;IACxB,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA6SpD,CAAC"}
@@ -1,53 +1,59 @@
1
- import { useEffect as e, useRef as t, useState as n } from "react";
2
- import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
1
+ import { useAssistantControl as e } from "../shared/assistant/appControls/useAssistantControl.js";
2
+ import { useEffect as t, useMemo as n, useRef as r, useState as i } from "react";
3
+ import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
3
4
  //#region src/chrome/ProfileSwitcher.tsx
4
- var o = ({ user: o, accounts: s = [], activeAccountId: c, onViewProfile: l, onLogout: u, onSwitchAccount: d, onAddAccount: f, onRemoveAccount: p, compact: m = !1 }) => {
5
- let [h, g] = n(!1), _ = t(null);
6
- if (e(() => {
5
+ var c = ({ user: c, accounts: l = [], activeAccountId: u, onViewProfile: d, onLogout: f, onSwitchAccount: p, onAddAccount: m, onRemoveAccount: h, compact: g = !1 }) => {
6
+ let [_, v] = i(!1), y = r(null), b = r(f);
7
+ b.current = f;
8
+ let x = f !== void 0;
9
+ if (e("account.logout", n(() => x ? { run: () => {
10
+ let e = b.current;
11
+ return e ? (e(), { status: "done" }) : { status: "failed" };
12
+ } } : null, [x])), t(() => {
7
13
  let e = (e) => {
8
- _.current && !_.current.contains(e.target) && g(!1);
14
+ y.current && !y.current.contains(e.target) && v(!1);
9
15
  };
10
- if (h) return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
11
- }, [h]), !o) return null;
12
- let v = `${o.firstName.charAt(0)}${o.lastName.charAt(0)}`.toUpperCase(), y = s.length > 1, b = s.find((e) => e.id === c), x = s.filter((e) => e.id !== c);
13
- return /* @__PURE__ */ a("div", {
16
+ if (_) return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
17
+ }, [_]), !c) return null;
18
+ let S = `${c.firstName.charAt(0)}${c.lastName.charAt(0)}`.toUpperCase(), C = l.length > 1, w = l.find((e) => e.id === u), T = l.filter((e) => e.id !== u);
19
+ return /* @__PURE__ */ s("div", {
14
20
  className: "relative",
15
- ref: _,
16
- children: [/* @__PURE__ */ a("button", {
17
- onClick: () => g(!h),
18
- className: `flex items-center gap-2 p-2 rounded-button hover:bg-bg-sunken transition-colors ${h ? "bg-bg-sunken" : ""}`,
21
+ ref: y,
22
+ children: [/* @__PURE__ */ s("button", {
23
+ onClick: () => v(!_),
24
+ className: `flex items-center gap-2 p-2 rounded-button hover:bg-bg-sunken transition-colors ${_ ? "bg-bg-sunken" : ""}`,
19
25
  "aria-label": "User menu",
20
- "aria-expanded": h,
26
+ "aria-expanded": _,
21
27
  children: [
22
- /* @__PURE__ */ i("div", {
28
+ /* @__PURE__ */ o("div", {
23
29
  className: "size-8 rounded-full bg-action-primary-bg flex items-center justify-center flex-shrink-0",
24
- children: o.avatar ? /* @__PURE__ */ i("img", {
25
- src: o.avatar,
26
- alt: `${o.firstName} ${o.lastName}`,
30
+ children: c.avatar ? /* @__PURE__ */ o("img", {
31
+ src: c.avatar,
32
+ alt: `${c.firstName} ${c.lastName}`,
27
33
  className: "w-full h-full rounded-full object-cover"
28
- }) : /* @__PURE__ */ i("span", {
34
+ }) : /* @__PURE__ */ o("span", {
29
35
  className: "text-action-primary-text font-semibold text-sm",
30
- children: v
36
+ children: S
31
37
  })
32
38
  }),
33
- !m && /* @__PURE__ */ a("span", {
39
+ !g && /* @__PURE__ */ s("span", {
34
40
  className: "text-body-sm font-medium text-text-primary",
35
41
  children: [
36
- o.firstName,
42
+ c.firstName,
37
43
  " ",
38
- o.lastName
44
+ c.lastName
39
45
  ]
40
46
  }),
41
- !m && y && /* @__PURE__ */ i("span", {
47
+ !g && C && /* @__PURE__ */ o("span", {
42
48
  className: "text-xs bg-action-primary-bg text-action-primary-text rounded-full size-5 flex items-center justify-center font-semibold",
43
- children: s.length
49
+ children: l.length
44
50
  }),
45
- !m && /* @__PURE__ */ i("svg", {
46
- className: `w-4 h-4 text-text-secondary transition-transform ${h ? "rotate-180" : ""}`,
51
+ !g && /* @__PURE__ */ o("svg", {
52
+ className: `w-4 h-4 text-text-secondary transition-transform ${_ ? "rotate-180" : ""}`,
47
53
  fill: "none",
48
54
  stroke: "currentColor",
49
55
  viewBox: "0 0 24 24",
50
- children: /* @__PURE__ */ i("path", {
56
+ children: /* @__PURE__ */ o("path", {
51
57
  strokeLinecap: "round",
52
58
  strokeLinejoin: "round",
53
59
  strokeWidth: 2,
@@ -55,119 +61,119 @@ var o = ({ user: o, accounts: s = [], activeAccountId: c, onViewProfile: l, onLo
55
61
  })
56
62
  })
57
63
  ]
58
- }), h && /* @__PURE__ */ a("div", {
64
+ }), _ && /* @__PURE__ */ s("div", {
59
65
  className: "absolute right-0 mt-2 w-[calc(100vw-1.5rem)] sm:w-72 max-w-72 bg-bg-elevated border border-border-subtle rounded-card shadow-[var(--shadow-elevation-4)] overflow-hidden z-50 animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 duration-200",
60
66
  children: [
61
- !y && /* @__PURE__ */ a("div", {
67
+ !C && /* @__PURE__ */ s("div", {
62
68
  className: "px-6 py-4 text-center border-b border-border-subtle",
63
69
  children: [
64
- /* @__PURE__ */ i("div", {
70
+ /* @__PURE__ */ o("div", {
65
71
  className: "size-20 mx-auto mb-3 rounded-full bg-action-primary-bg flex items-center justify-center",
66
- children: o.avatar ? /* @__PURE__ */ i("img", {
67
- src: o.avatar,
68
- alt: o.firstName,
72
+ children: c.avatar ? /* @__PURE__ */ o("img", {
73
+ src: c.avatar,
74
+ alt: c.firstName,
69
75
  className: "w-full h-full rounded-full object-cover"
70
- }) : /* @__PURE__ */ i("span", {
76
+ }) : /* @__PURE__ */ o("span", {
71
77
  className: "text-action-primary-text font-bold text-2xl",
72
- children: v
78
+ children: S
73
79
  })
74
80
  }),
75
- /* @__PURE__ */ a("h3", {
81
+ /* @__PURE__ */ s("h3", {
76
82
  className: "text-base font-semibold text-text-primary mb-1",
77
83
  children: [
78
84
  "Hi, ",
79
- o.firstName,
85
+ c.firstName,
80
86
  "!"
81
87
  ]
82
88
  }),
83
- o.email && /* @__PURE__ */ i("p", {
89
+ c.email && /* @__PURE__ */ o("p", {
84
90
  className: "text-body-sm text-text-secondary truncate",
85
- children: o.email
91
+ children: c.email
86
92
  })
87
93
  ]
88
94
  }),
89
- y && b && /* @__PURE__ */ a("div", {
95
+ C && w && /* @__PURE__ */ s("div", {
90
96
  className: "px-4 py-3 border-b border-border-subtle",
91
- children: [/* @__PURE__ */ a("p", {
97
+ children: [/* @__PURE__ */ s("p", {
92
98
  className: "text-body-sm font-semibold text-text-primary",
93
99
  children: [
94
- b.firstName,
100
+ w.firstName,
95
101
  " ",
96
- b.lastName
102
+ w.lastName
97
103
  ]
98
- }), /* @__PURE__ */ i("p", {
104
+ }), /* @__PURE__ */ o("p", {
99
105
  className: "text-xs text-text-muted mt-0.5 truncate",
100
- children: b.email
106
+ children: w.email
101
107
  })]
102
108
  }),
103
- l && /* @__PURE__ */ i("div", {
109
+ d && /* @__PURE__ */ o("div", {
104
110
  className: "px-4 py-2",
105
- children: /* @__PURE__ */ i("button", {
111
+ children: /* @__PURE__ */ o("button", {
106
112
  type: "button",
107
113
  onClick: () => {
108
- l(), g(!1);
114
+ d(), v(!1);
109
115
  },
110
116
  className: "w-full px-4 py-2.5 text-body-sm font-medium text-text-primary bg-bg-surface hover:bg-bg-sunken rounded-button border border-border-subtle transition-colors",
111
117
  children: "View Profile"
112
118
  })
113
119
  }),
114
- y && x.length > 0 && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", {
120
+ C && T.length > 0 && /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("div", {
115
121
  className: "px-4 pt-2 pb-1",
116
- children: /* @__PURE__ */ i("p", {
122
+ children: /* @__PURE__ */ o("p", {
117
123
  className: "text-[11px] font-medium text-text-muted uppercase tracking-wider",
118
124
  children: "Switch Account"
119
125
  })
120
- }), /* @__PURE__ */ i("div", {
121
- className: `${x.length >= 3 ? "max-h-48 overflow-y-auto" : ""}`,
122
- children: x.map((e) => {
126
+ }), /* @__PURE__ */ o("div", {
127
+ className: `${T.length >= 3 ? "max-h-48 overflow-y-auto" : ""}`,
128
+ children: T.map((e) => {
123
129
  let t = `${e.firstName?.charAt(0) || ""}${e.lastName?.charAt(0) || ""}`.toUpperCase();
124
- return /* @__PURE__ */ i("div", {
130
+ return /* @__PURE__ */ o("div", {
125
131
  className: "px-4 py-2 hover:bg-bg-sunken transition-colors group",
126
- children: /* @__PURE__ */ a("div", {
132
+ children: /* @__PURE__ */ s("div", {
127
133
  className: "flex items-center gap-3",
128
134
  children: [
129
- /* @__PURE__ */ i("div", {
135
+ /* @__PURE__ */ o("div", {
130
136
  className: "size-10 rounded-full bg-action-primary-bg flex items-center justify-center flex-shrink-0",
131
- children: e.avatar ? /* @__PURE__ */ i("img", {
137
+ children: e.avatar ? /* @__PURE__ */ o("img", {
132
138
  src: e.avatar,
133
139
  alt: e.name,
134
140
  className: "w-full h-full rounded-full object-cover"
135
- }) : /* @__PURE__ */ i("span", {
141
+ }) : /* @__PURE__ */ o("span", {
136
142
  className: "text-action-primary-text font-semibold text-sm",
137
143
  children: t
138
144
  })
139
145
  }),
140
- /* @__PURE__ */ a("button", {
146
+ /* @__PURE__ */ s("button", {
141
147
  type: "button",
142
148
  onClick: () => {
143
- d && (d(e), g(!1));
149
+ p && (p(e), v(!1));
144
150
  },
145
151
  className: "flex-1 text-left min-w-0",
146
- children: [/* @__PURE__ */ a("p", {
152
+ children: [/* @__PURE__ */ s("p", {
147
153
  className: "text-body-sm font-medium text-text-primary truncate",
148
154
  children: [
149
155
  e.firstName,
150
156
  " ",
151
157
  e.lastName
152
158
  ]
153
- }), /* @__PURE__ */ i("p", {
159
+ }), /* @__PURE__ */ o("p", {
154
160
  className: "text-xs text-text-muted truncate",
155
161
  children: e.email
156
162
  })]
157
163
  }),
158
- p && /* @__PURE__ */ i("button", {
164
+ h && /* @__PURE__ */ o("button", {
159
165
  type: "button",
160
166
  onClick: (t) => {
161
- t.stopPropagation(), p(e.id);
167
+ t.stopPropagation(), h(e.id);
162
168
  },
163
169
  className: "size-6 flex items-center justify-center rounded-full hover:bg-status-error-bg-subtle text-text-muted hover:text-status-error-text transition-colors opacity-0 group-hover:opacity-100",
164
170
  "aria-label": "Remove account",
165
- children: /* @__PURE__ */ i("svg", {
171
+ children: /* @__PURE__ */ o("svg", {
166
172
  className: "size-4",
167
173
  fill: "none",
168
174
  stroke: "currentColor",
169
175
  viewBox: "0 0 24 24",
170
- children: /* @__PURE__ */ i("path", {
176
+ children: /* @__PURE__ */ o("path", {
171
177
  strokeLinecap: "round",
172
178
  strokeLinejoin: "round",
173
179
  strokeWidth: 2,
@@ -180,46 +186,46 @@ var o = ({ user: o, accounts: s = [], activeAccountId: c, onViewProfile: l, onLo
180
186
  }, e.id);
181
187
  })
182
188
  })] }),
183
- /* @__PURE__ */ i("div", {
189
+ /* @__PURE__ */ o("div", {
184
190
  className: "px-4 py-3 border-t border-border-subtle",
185
- children: /* @__PURE__ */ a("div", {
191
+ children: /* @__PURE__ */ s("div", {
186
192
  className: "grid grid-cols-2 gap-2",
187
- children: [f && /* @__PURE__ */ a("button", {
193
+ children: [m && /* @__PURE__ */ s("button", {
188
194
  type: "button",
189
195
  onClick: () => {
190
- f(), g(!1);
196
+ m(), v(!1);
191
197
  },
192
198
  className: "flex items-center justify-center gap-2 px-3 py-2.5 text-body-sm font-medium text-text-primary bg-bg-surface hover:bg-bg-sunken rounded-button border border-border-subtle transition-colors",
193
- children: [/* @__PURE__ */ i("svg", {
199
+ children: [/* @__PURE__ */ o("svg", {
194
200
  className: "size-4",
195
201
  fill: "none",
196
202
  stroke: "currentColor",
197
203
  viewBox: "0 0 24 24",
198
- children: /* @__PURE__ */ i("path", {
204
+ children: /* @__PURE__ */ o("path", {
199
205
  strokeLinecap: "round",
200
206
  strokeLinejoin: "round",
201
207
  strokeWidth: 2,
202
208
  d: "M12 4v16m8-8H4"
203
209
  })
204
- }), /* @__PURE__ */ i("span", { children: "Add account" })]
205
- }), u && /* @__PURE__ */ a("button", {
210
+ }), /* @__PURE__ */ o("span", { children: "Add account" })]
211
+ }), f && /* @__PURE__ */ s("button", {
206
212
  type: "button",
207
213
  onClick: () => {
208
- u(), g(!1);
214
+ f(), v(!1);
209
215
  },
210
216
  className: "flex items-center justify-center gap-2 px-3 py-2.5 text-body-sm font-medium text-text-primary bg-bg-surface hover:bg-bg-sunken rounded-button border border-border-subtle transition-colors",
211
- children: [/* @__PURE__ */ i("svg", {
217
+ children: [/* @__PURE__ */ o("svg", {
212
218
  className: "size-4",
213
219
  fill: "none",
214
220
  stroke: "currentColor",
215
221
  viewBox: "0 0 24 24",
216
- children: /* @__PURE__ */ i("path", {
222
+ children: /* @__PURE__ */ o("path", {
217
223
  strokeLinecap: "round",
218
224
  strokeLinejoin: "round",
219
225
  strokeWidth: 2,
220
226
  d: "M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"
221
227
  })
222
- }), /* @__PURE__ */ i("span", { children: "Sign out" })]
228
+ }), /* @__PURE__ */ o("span", { children: "Sign out" })]
223
229
  })]
224
230
  })
225
231
  })
@@ -228,4 +234,4 @@ var o = ({ user: o, accounts: s = [], activeAccountId: c, onViewProfile: l, onLo
228
234
  });
229
235
  };
230
236
  //#endregion
231
- export { o as ProfileSwitcher };
237
+ export { c as ProfileSwitcher };
@@ -1 +1 @@
1
- {"version":3,"file":"SideNavigation.d.ts","sourceRoot":"","sources":["../../src/chrome/SideNavigation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAMtD,YAAY,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,kCAAkC;IAClC,KAAK,EAAE,OAAO,EAAE,CAAC;IAEjB,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAC;IAEpB,mC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