@better-auth-ui/heroui 1.6.27 → 1.6.29

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 (31) hide show
  1. package/dist/components/auth/forgot-password.d.ts +3 -1
  2. package/dist/components/auth/last-login-method/last-used-badge.d.ts +13 -0
  3. package/dist/components/auth/magic-link/magic-link-sent.d.ts +20 -0
  4. package/dist/components/auth/provider-button.d.ts +3 -1
  5. package/dist/components/auth/provider-buttons.d.ts +3 -1
  6. package/dist/components/auth/reset-link-sent.d.ts +20 -0
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.js +280 -220
  9. package/dist/lib/auth/last-login-method-plugin.d.ts +12 -0
  10. package/dist/lib/auth/magic-link-plugin.d.ts +4 -0
  11. package/dist/plugins.d.ts +3 -0
  12. package/dist/plugins.js +1070 -1005
  13. package/dist/user-view-D9ial2fQ.js +150 -0
  14. package/package.json +1 -1
  15. package/src/components/auth/auth.tsx +8 -1
  16. package/src/components/auth/forgot-password.tsx +9 -6
  17. package/src/components/auth/last-login-method/last-used-badge.tsx +40 -0
  18. package/src/components/auth/magic-link/magic-link-sent.tsx +84 -0
  19. package/src/components/auth/magic-link/magic-link.tsx +12 -8
  20. package/src/components/auth/provider-button.tsx +17 -3
  21. package/src/components/auth/provider-buttons.tsx +5 -1
  22. package/src/components/auth/reset-link-sent.tsx +80 -0
  23. package/src/components/auth/settings/security/change-password.tsx +32 -14
  24. package/src/components/auth/sign-in.tsx +10 -3
  25. package/src/components/auth/sign-up.tsx +2 -2
  26. package/src/components/auth/username/sign-in-username.tsx +6 -3
  27. package/src/index.tsx +1 -0
  28. package/src/lib/auth/last-login-method-plugin.ts +12 -0
  29. package/src/lib/auth/magic-link-plugin.ts +2 -1
  30. package/src/plugins.ts +3 -0
  31. package/dist/user-view--47tVtJ3.js +0 -113
package/dist/plugins.js CHANGED
@@ -1,19 +1,19 @@
1
1
  "use client";
2
- import { a as e, r as t, t as n } from "./user-view--47tVtJ3.js";
3
- import { authMutationKeys as r, authQueryKeys as i, createAuthPlugin as a, fileToBase64 as o } from "@better-auth-ui/core";
4
- import { ThemePreviewDark as s, ThemePreviewLight as c, ThemePreviewSystem as l, useAcceptInvitation as u, useActiveOrganization as d, useAddPasskey as f, useAuth as p, useAuthPlugin as m, useAuthenticate as h, useCancelInvitation as g, useCheckSlug as _, useCreateApiKey as v, useCreateOrganization as y, useDeleteApiKey as b, useDeleteOrganization as x, useDeletePasskey as S, useDeleteUser as C, useFetchOptions as ee, useHasPermission as w, useInviteMember as T, useIsUsernameAvailable as te, useLeaveOrganization as ne, useListAccounts as re, useListApiKeys as ie, useListDeviceSessions as ae, useListOrganizationInvitations as oe, useListOrganizationMembers as se, useListOrganizations as ce, useListPasskeys as le, useListUserInvitations as ue, useRejectInvitation as de, useRemoveMember as fe, useRevokeMultiSession as pe, useSession as E, useSetActiveOrganization as me, useSetActiveSession as he, useSignInEmail as ge, useSignInMagicLink as _e, useSignInPasskey as ve, useSignInUsername as ye, useUpdateMemberRole as be, useUpdateOrganization as xe, useUser as Se } from "@better-auth-ui/react";
5
- import { ArrowRightArrowLeft as Ce, ArrowRightFromSquare as we, Briefcase as Te, Check as Ee, ChevronsExpandVertical as De, CirclePlus as Oe, Clock as ke, CloudArrowUpIn as Ae, Copy as je, Display as Me, Ellipsis as Ne, Envelope as Pe, Fingerprint as Fe, Funnel as Ie, Gear as Le, Key as Re, Lock as ze, Moon as Be, Palette as Ve, PaperPlane as He, Pencil as Ue, Person as We, PersonPlus as Ge, Sun as Ke, TrashBin as qe, TriangleExclamation as Je, Xmark as D } from "@gravity-ui/icons";
6
- import { AlertDialog as O, Avatar as Ye, Button as k, Card as A, Checkbox as Xe, Chip as j, Description as Ze, Dropdown as M, EmptyState as Qe, FieldError as N, Form as P, Input as F, InputGroup as I, Label as L, Link as $e, ListBox as et, Radio as R, RadioGroup as tt, SearchField as z, Select as nt, Skeleton as B, Spinner as V, Table as H, Tabs as U, TextField as W, cn as G, toast as K, useIsHydrated as rt } from "@heroui/react";
7
- import { useEffect as it, useMemo as at, useRef as ot, useState as q } from "react";
8
- import { Fragment as J, jsx as Y, jsxs as X } from "react/jsx-runtime";
9
- import { useIsMutating as Z, useQueryClient as st } from "@tanstack/react-query";
2
+ import { a as e, o as t, r as n, s as r, t as i } from "./user-view-D9ial2fQ.js";
3
+ import { authMutationKeys as a, authQueryKeys as o, createAuthPlugin as s, fileToBase64 as c } from "@better-auth-ui/core";
4
+ import { ThemePreviewDark as l, ThemePreviewLight as u, ThemePreviewSystem as d, useAcceptInvitation as f, useActiveOrganization as p, useAddPasskey as m, useAuth as h, useAuthPlugin as g, useAuthenticate as _, useCancelInvitation as v, useCheckSlug as y, useCreateApiKey as b, useCreateOrganization as x, useDeleteApiKey as S, useDeleteOrganization as C, useDeletePasskey as w, useDeleteUser as ee, useFetchOptions as te, useHasPermission as T, useInviteMember as ne, useIsUsernameAvailable as re, useLeaveOrganization as ie, useListAccounts as E, useListApiKeys as ae, useListDeviceSessions as oe, useListOrganizationInvitations as se, useListOrganizationMembers as ce, useListOrganizations as le, useListPasskeys as ue, useListUserInvitations as de, useRejectInvitation as fe, useRemoveMember as pe, useRevokeMultiSession as me, useSession as D, useSetActiveOrganization as he, useSetActiveSession as ge, useSignInEmail as _e, useSignInMagicLink as ve, useSignInPasskey as ye, useSignInUsername as be, useUpdateMemberRole as xe, useUpdateOrganization as Se, useUser as Ce } from "@better-auth-ui/react";
5
+ import { ArrowRightArrowLeft as we, ArrowRightFromSquare as Te, Briefcase as Ee, Check as De, ChevronsExpandVertical as Oe, CirclePlus as ke, Clock as Ae, CloudArrowUpIn as je, Copy as Me, Display as Ne, Ellipsis as Pe, Envelope as Fe, Fingerprint as Ie, Funnel as Le, Gear as Re, Key as ze, Lock as Be, Moon as Ve, Palette as He, PaperPlane as Ue, Pencil as We, Person as Ge, PersonPlus as Ke, Sun as qe, TrashBin as Je, TriangleExclamation as Ye, Xmark as O } from "@gravity-ui/icons";
6
+ import { AlertDialog as k, Avatar as Xe, Button as A, Card as j, Checkbox as Ze, Chip as M, Description as Qe, Dropdown as N, EmptyState as $e, FieldError as P, Form as F, Input as I, InputGroup as L, Label as R, Link as et, ListBox as tt, Radio as z, RadioGroup as nt, SearchField as B, Select as rt, Skeleton as V, Spinner as H, Table as U, Tabs as W, TextField as G, cn as K, toast as q, useIsHydrated as it } from "@heroui/react";
7
+ import { useEffect as at, useMemo as ot, useRef as st, useState as J } from "react";
8
+ import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
10
9
  import { buttonVariants as ct } from "@heroui/styles";
11
- import { apiKeyPlugin as lt, deleteUserPlugin as ut, magicLinkPlugin as dt, multiSessionPlugin as ft, organizationPlugin as pt, passkeyPlugin as mt, themePlugin as ht, usernamePlugin as gt } from "@better-auth-ui/core/plugins";
12
- import { useDebouncer as _t } from "@tanstack/react-pacer";
10
+ import { useIsMutating as lt, useQueryClient as ut } from "@tanstack/react-query";
11
+ import { apiKeyPlugin as dt, deleteUserPlugin as ft, lastLoginMethodPlugin as pt, magicLinkPlugin as mt, multiSessionPlugin as ht, organizationPlugin as gt, passkeyPlugin as _t, themePlugin as vt, usernamePlugin as yt } from "@better-auth-ui/core/plugins";
12
+ import { useDebouncer as bt } from "@tanstack/react-pacer";
13
13
  //#region src/components/auth/api-key/organization-api-keys.tsx
14
- function vt({ className: e, variant: t }) {
15
- let { authClient: n } = p(), { data: r } = E(n), { data: i, isPending: a } = d(n), { data: o } = se(n);
16
- return o?.members.some((e) => e.role === "owner" && e.userId === r?.user.id) ? /* @__PURE__ */ Y(Et, {
14
+ function xt({ className: e, variant: t }) {
15
+ let { authClient: n } = h(), { data: r } = D(n), { data: i, isPending: a } = p(n), { data: o } = ce(n);
16
+ return o?.members.some((e) => e.role === "owner" && e.userId === r?.user.id) ? /* @__PURE__ */ X(kt, {
17
17
  className: e,
18
18
  variant: t,
19
19
  organizationId: i?.id,
@@ -22,55 +22,55 @@ function vt({ className: e, variant: t }) {
22
22
  }
23
23
  //#endregion
24
24
  //#region src/lib/auth/api-key-plugin.ts
25
- var yt = a(lt.id, (e = {}) => {
26
- let t = lt(e);
25
+ var St = s(dt.id, (e = {}) => {
26
+ let t = dt(e);
27
27
  return {
28
28
  ...t,
29
- securityCards: [Et],
30
- ...t.organization ? { organizationCards: [vt] } : {}
29
+ securityCards: [kt],
30
+ ...t.organization ? { organizationCards: [xt] } : {}
31
31
  };
32
32
  });
33
33
  //#endregion
34
34
  //#region src/components/auth/api-key/delete-api-key-dialog.tsx
35
- function bt({ isOpen: e, onOpenChange: t, apiKey: n, organizationId: r }) {
36
- let { authClient: i, localization: a } = p(), { localization: o } = m(yt), s = `${n.start}${"*".repeat(16)}`, { mutate: c, isPending: l } = b(i, { onSuccess: () => t(!1) });
37
- return /* @__PURE__ */ Y(O.Backdrop, {
35
+ function Ct({ isOpen: e, onOpenChange: t, apiKey: n, organizationId: r }) {
36
+ let { authClient: i, localization: a } = h(), { localization: o } = g(St), s = `${n.start}${"*".repeat(16)}`, { mutate: c, isPending: l } = S(i, { onSuccess: () => t(!1) });
37
+ return /* @__PURE__ */ X(k.Backdrop, {
38
38
  isOpen: e,
39
39
  onOpenChange: t,
40
- children: /* @__PURE__ */ Y(O.Container, { children: /* @__PURE__ */ X(O.Dialog, { children: [
41
- /* @__PURE__ */ Y(O.CloseTrigger, {}),
42
- /* @__PURE__ */ X(O.Header, { children: [/* @__PURE__ */ Y(O.Icon, {
40
+ children: /* @__PURE__ */ X(k.Container, { children: /* @__PURE__ */ Z(k.Dialog, { children: [
41
+ /* @__PURE__ */ X(k.CloseTrigger, {}),
42
+ /* @__PURE__ */ Z(k.Header, { children: [/* @__PURE__ */ X(k.Icon, {
43
43
  status: "danger",
44
- children: /* @__PURE__ */ Y(Re, {})
45
- }), /* @__PURE__ */ Y(O.Heading, { children: o.deleteApiKey })] }),
46
- /* @__PURE__ */ X(O.Body, {
44
+ children: /* @__PURE__ */ X(ze, {})
45
+ }), /* @__PURE__ */ X(k.Heading, { children: o.deleteApiKey })] }),
46
+ /* @__PURE__ */ Z(k.Body, {
47
47
  className: "flex flex-col gap-4 overflow-visible",
48
- children: [/* @__PURE__ */ Y("p", {
48
+ children: [/* @__PURE__ */ X("p", {
49
49
  className: "text-muted text-sm",
50
50
  children: o.deleteApiKeyWarning
51
- }), /* @__PURE__ */ X(W, {
51
+ }), /* @__PURE__ */ Z(G, {
52
52
  value: s,
53
53
  className: "font-mono text-xs",
54
54
  variant: "secondary",
55
- children: [/* @__PURE__ */ Y(L, { children: n.name || o.apiKey }), /* @__PURE__ */ Y(F, {
55
+ children: [/* @__PURE__ */ X(R, { children: n.name || o.apiKey }), /* @__PURE__ */ X(I, {
56
56
  readOnly: !0,
57
57
  className: "font-mono text-xs"
58
58
  })]
59
59
  })]
60
60
  }),
61
- /* @__PURE__ */ X(O.Footer, { children: [/* @__PURE__ */ Y(k, {
61
+ /* @__PURE__ */ Z(k.Footer, { children: [/* @__PURE__ */ X(A, {
62
62
  slot: "close",
63
63
  variant: "tertiary",
64
64
  isDisabled: l,
65
65
  children: a.settings.cancel
66
- }), /* @__PURE__ */ X(k, {
66
+ }), /* @__PURE__ */ Z(A, {
67
67
  variant: "danger",
68
68
  onPress: () => c({
69
69
  keyId: n.id,
70
70
  ...r ? { configId: "organization" } : {}
71
71
  }),
72
72
  isPending: l,
73
- children: [l && /* @__PURE__ */ Y(V, {
73
+ children: [l && /* @__PURE__ */ X(H, {
74
74
  color: "current",
75
75
  size: "sm"
76
76
  }), o.deleteApiKey]
@@ -80,27 +80,27 @@ function bt({ isOpen: e, onOpenChange: t, apiKey: n, organizationId: r }) {
80
80
  }
81
81
  //#endregion
82
82
  //#region src/components/auth/api-key/api-key.tsx
83
- function xt({ apiKey: e, hideDelete: t, organizationId: n }) {
84
- let { localization: r } = p(), { localization: i } = m(yt), [a, o] = q(!1), s = `${e.start}${"*".repeat(16)}`;
85
- return /* @__PURE__ */ X("div", {
83
+ function wt({ apiKey: e, hideDelete: t, organizationId: n }) {
84
+ let { localization: r } = h(), { localization: i } = g(St), [a, o] = J(!1), s = `${e.start}${"*".repeat(16)}`;
85
+ return /* @__PURE__ */ Z("div", {
86
86
  className: "flex items-center gap-3",
87
87
  children: [
88
- /* @__PURE__ */ Y("div", {
88
+ /* @__PURE__ */ X("div", {
89
89
  className: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-surface-secondary",
90
- children: /* @__PURE__ */ Y(Re, { className: "size-4.5" })
90
+ children: /* @__PURE__ */ X(ze, { className: "size-4.5" })
91
91
  }),
92
- /* @__PURE__ */ X("div", {
92
+ /* @__PURE__ */ Z("div", {
93
93
  className: "flex flex-col min-w-0",
94
94
  children: [
95
- /* @__PURE__ */ Y("span", {
95
+ /* @__PURE__ */ X("span", {
96
96
  className: "text-sm font-medium leading-tight truncate",
97
97
  children: e.name || i.apiKey
98
98
  }),
99
- /* @__PURE__ */ Y("span", {
99
+ /* @__PURE__ */ X("span", {
100
100
  className: "text-xs text-muted font-mono truncate",
101
101
  children: s
102
102
  }),
103
- /* @__PURE__ */ Y("span", {
103
+ /* @__PURE__ */ X("span", {
104
104
  className: "text-xs text-muted",
105
105
  children: new Date(e.createdAt).toLocaleString(void 0, {
106
106
  dateStyle: "medium",
@@ -109,14 +109,14 @@ function xt({ apiKey: e, hideDelete: t, organizationId: n }) {
109
109
  })
110
110
  ]
111
111
  }),
112
- !t && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(k, {
112
+ !t && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ Z(A, {
113
113
  className: "ml-auto shrink-0",
114
114
  variant: "outline",
115
115
  size: "sm",
116
116
  onPress: () => o(!0),
117
117
  "aria-label": i.deleteApiKey,
118
- children: [/* @__PURE__ */ Y(D, {}), r.settings.delete]
119
- }), /* @__PURE__ */ Y(bt, {
118
+ children: [/* @__PURE__ */ X(O, {}), r.settings.delete]
119
+ }), /* @__PURE__ */ X(Ct, {
120
120
  isOpen: a,
121
121
  onOpenChange: o,
122
122
  apiKey: e,
@@ -127,17 +127,17 @@ function xt({ apiKey: e, hideDelete: t, organizationId: n }) {
127
127
  }
128
128
  //#endregion
129
129
  //#region src/components/auth/api-key/api-key-skeleton.tsx
130
- function St() {
131
- return /* @__PURE__ */ Y("div", {
130
+ function Tt() {
131
+ return /* @__PURE__ */ X("div", {
132
132
  className: "flex items-center justify-between",
133
- children: /* @__PURE__ */ X("div", {
133
+ children: /* @__PURE__ */ Z("div", {
134
134
  className: "flex items-center gap-3",
135
- children: [/* @__PURE__ */ Y(B, { className: "size-10 rounded-xl" }), /* @__PURE__ */ X("div", {
135
+ children: [/* @__PURE__ */ X(V, { className: "size-10 rounded-xl" }), /* @__PURE__ */ Z("div", {
136
136
  className: "flex flex-col gap-1",
137
137
  children: [
138
- /* @__PURE__ */ Y(B, { className: "h-4 w-28 rounded-lg" }),
139
- /* @__PURE__ */ Y(B, { className: "h-3 w-36 rounded-lg" }),
140
- /* @__PURE__ */ Y(B, { className: "h-3 w-32 rounded-lg" })
138
+ /* @__PURE__ */ X(V, { className: "h-4 w-28 rounded-lg" }),
139
+ /* @__PURE__ */ X(V, { className: "h-3 w-36 rounded-lg" }),
140
+ /* @__PURE__ */ X(V, { className: "h-3 w-32 rounded-lg" })
141
141
  ]
142
142
  })]
143
143
  })
@@ -145,26 +145,26 @@ function St() {
145
145
  }
146
146
  //#endregion
147
147
  //#region src/components/auth/api-key/api-keys-empty.tsx
148
- function Ct({ onCreatePress: e, hideCreate: t }) {
149
- let { localization: n } = m(yt);
150
- return /* @__PURE__ */ X("div", {
148
+ function Et({ onCreatePress: e, hideCreate: t }) {
149
+ let { localization: n } = g(St);
150
+ return /* @__PURE__ */ Z("div", {
151
151
  className: "flex flex-col items-center justify-center gap-4",
152
152
  children: [
153
- /* @__PURE__ */ Y("div", {
153
+ /* @__PURE__ */ X("div", {
154
154
  className: "flex size-10 items-center justify-center rounded-xl bg-surface-secondary",
155
- children: /* @__PURE__ */ Y(Re, { className: "size-4.5" })
155
+ children: /* @__PURE__ */ X(ze, { className: "size-4.5" })
156
156
  }),
157
- /* @__PURE__ */ X("div", {
157
+ /* @__PURE__ */ Z("div", {
158
158
  className: "flex flex-col items-center justify-center gap-1 text-center",
159
- children: [/* @__PURE__ */ Y("p", {
159
+ children: [/* @__PURE__ */ X("p", {
160
160
  className: "text-sm font-semibold",
161
161
  children: n.noApiKeys
162
- }), /* @__PURE__ */ Y("p", {
162
+ }), /* @__PURE__ */ X("p", {
163
163
  className: "text-muted text-xs",
164
164
  children: n.apiKeysDescription
165
165
  })]
166
166
  }),
167
- !t && /* @__PURE__ */ Y(k, {
167
+ !t && /* @__PURE__ */ X(A, {
168
168
  size: "sm",
169
169
  onPress: e,
170
170
  children: n.createApiKey
@@ -174,33 +174,33 @@ function Ct({ onCreatePress: e, hideCreate: t }) {
174
174
  }
175
175
  //#endregion
176
176
  //#region src/components/auth/api-key/new-api-key-dialog.tsx
177
- function wt({ isOpen: e, onOpenChange: t, name: n, secretKey: r }) {
178
- let { localization: i } = p(), { localization: a } = m(yt), [o, s] = q(!1);
179
- return /* @__PURE__ */ Y(O.Backdrop, {
177
+ function Dt({ isOpen: e, onOpenChange: t, name: n, secretKey: r }) {
178
+ let { localization: i } = h(), { localization: a } = g(St), [o, s] = J(!1);
179
+ return /* @__PURE__ */ X(k.Backdrop, {
180
180
  isOpen: e,
181
181
  onOpenChange: t,
182
- children: /* @__PURE__ */ Y(O.Container, { children: /* @__PURE__ */ X(O.Dialog, { children: [
183
- /* @__PURE__ */ Y(O.CloseTrigger, {}),
184
- /* @__PURE__ */ X(O.Header, { children: [/* @__PURE__ */ Y(O.Icon, {
182
+ children: /* @__PURE__ */ X(k.Container, { children: /* @__PURE__ */ Z(k.Dialog, { children: [
183
+ /* @__PURE__ */ X(k.CloseTrigger, {}),
184
+ /* @__PURE__ */ Z(k.Header, { children: [/* @__PURE__ */ X(k.Icon, {
185
185
  status: "warning",
186
- children: /* @__PURE__ */ Y(Re, {})
187
- }), /* @__PURE__ */ Y(O.Heading, { children: a.newApiKey })] }),
188
- /* @__PURE__ */ X(O.Body, {
186
+ children: /* @__PURE__ */ X(ze, {})
187
+ }), /* @__PURE__ */ X(k.Heading, { children: a.newApiKey })] }),
188
+ /* @__PURE__ */ Z(k.Body, {
189
189
  className: "flex flex-col gap-4 overflow-visible",
190
- children: [/* @__PURE__ */ Y("p", {
190
+ children: [/* @__PURE__ */ X("p", {
191
191
  className: "text-muted text-sm",
192
192
  children: a.newApiKeyWarning
193
- }), /* @__PURE__ */ X(W, {
193
+ }), /* @__PURE__ */ Z(G, {
194
194
  value: r ?? "",
195
195
  className: "font-mono text-xs",
196
- children: [/* @__PURE__ */ Y(L, { children: n || a.apiKey }), /* @__PURE__ */ X(I, {
196
+ children: [/* @__PURE__ */ X(R, { children: n || a.apiKey }), /* @__PURE__ */ Z(L, {
197
197
  variant: "secondary",
198
- children: [/* @__PURE__ */ Y(I.Input, {
198
+ children: [/* @__PURE__ */ X(L.Input, {
199
199
  readOnly: !0,
200
200
  className: "font-mono text-xs"
201
- }), /* @__PURE__ */ Y(I.Suffix, {
201
+ }), /* @__PURE__ */ X(L.Suffix, {
202
202
  className: "px-0",
203
- children: /* @__PURE__ */ Y(k, {
203
+ children: /* @__PURE__ */ X(A, {
204
204
  isIconOnly: !0,
205
205
  "aria-label": i.settings.copyToClipboard,
206
206
  size: "sm",
@@ -209,16 +209,16 @@ function wt({ isOpen: e, onOpenChange: t, name: n, secretKey: r }) {
209
209
  if (r) try {
210
210
  await navigator.clipboard.writeText(r), s(!0), setTimeout(() => s(!1), 1500);
211
211
  } catch (e) {
212
- K.danger(e instanceof Error ? e.message : String(e));
212
+ q.danger(e instanceof Error ? e.message : String(e));
213
213
  }
214
214
  },
215
- children: Y(o ? Ee : je, {})
215
+ children: X(o ? De : Me, {})
216
216
  })
217
217
  })]
218
218
  })]
219
219
  })]
220
220
  }),
221
- /* @__PURE__ */ Y(O.Footer, { children: /* @__PURE__ */ Y(k, {
221
+ /* @__PURE__ */ X(k.Footer, { children: /* @__PURE__ */ X(A, {
222
222
  slot: "close",
223
223
  children: a.dismissNewKey
224
224
  }) })
@@ -227,14 +227,14 @@ function wt({ isOpen: e, onOpenChange: t, name: n, secretKey: r }) {
227
227
  }
228
228
  //#endregion
229
229
  //#region src/components/auth/api-key/create-api-key-dialog.tsx
230
- function Tt({ isOpen: e, onOpenChange: t, organizationId: n }) {
231
- let { authClient: r, localization: i } = p(), { localization: a } = m(yt), { mutate: o, isPending: s } = v(r), [c, l] = q(!1), [u, d] = q(null), [f, h] = q(null), g = (e) => {
232
- e || (d(null), h(null)), t(e);
230
+ function Ot({ isOpen: e, onOpenChange: t, organizationId: n }) {
231
+ let { authClient: r, localization: i } = h(), { localization: a } = g(St), { mutate: o, isPending: s } = b(r), [c, l] = J(!1), [u, d] = J(null), [f, p] = J(null), m = (e) => {
232
+ e || (d(null), p(null)), t(e);
233
233
  };
234
- return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(O.Backdrop, {
234
+ return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(k.Backdrop, {
235
235
  isOpen: e,
236
- onOpenChange: g,
237
- children: /* @__PURE__ */ Y(O.Container, { children: /* @__PURE__ */ Y(O.Dialog, { children: /* @__PURE__ */ X(P, {
236
+ onOpenChange: m,
237
+ children: /* @__PURE__ */ X(k.Container, { children: /* @__PURE__ */ X(k.Dialog, { children: /* @__PURE__ */ Z(F, {
238
238
  onSubmit: (e) => {
239
239
  e.preventDefault();
240
240
  let t = new FormData(e.target).get("name")?.trim();
@@ -245,52 +245,52 @@ function Tt({ isOpen: e, onOpenChange: t, organizationId: n }) {
245
245
  configId: "organization"
246
246
  } : {}
247
247
  } : void 0, { onSuccess: (e) => {
248
- g(!1), d(t), h(e.key), l(!0);
248
+ m(!1), d(t), p(e.key), l(!0);
249
249
  } });
250
250
  },
251
251
  children: [
252
- /* @__PURE__ */ Y(O.CloseTrigger, {}),
253
- /* @__PURE__ */ X(O.Header, { children: [/* @__PURE__ */ Y(O.Icon, {
252
+ /* @__PURE__ */ X(k.CloseTrigger, {}),
253
+ /* @__PURE__ */ Z(k.Header, { children: [/* @__PURE__ */ X(k.Icon, {
254
254
  status: "default",
255
- children: /* @__PURE__ */ Y(Re, {})
256
- }), /* @__PURE__ */ Y(O.Heading, { children: a.createApiKey })] }),
257
- /* @__PURE__ */ X(O.Body, {
255
+ children: /* @__PURE__ */ X(ze, {})
256
+ }), /* @__PURE__ */ X(k.Heading, { children: a.createApiKey })] }),
257
+ /* @__PURE__ */ Z(k.Body, {
258
258
  className: "overflow-visible",
259
- children: [/* @__PURE__ */ Y("p", {
259
+ children: [/* @__PURE__ */ X("p", {
260
260
  className: "text-muted text-sm",
261
261
  children: a.apiKeysDescription
262
- }), /* @__PURE__ */ X(W, {
262
+ }), /* @__PURE__ */ Z(G, {
263
263
  className: "mt-4",
264
264
  id: "name",
265
265
  name: "name",
266
266
  isDisabled: s,
267
267
  children: [
268
- /* @__PURE__ */ Y(L, { children: a.name }),
269
- /* @__PURE__ */ Y(F, {
268
+ /* @__PURE__ */ X(R, { children: a.name }),
269
+ /* @__PURE__ */ X(I, {
270
270
  autoFocus: !0,
271
271
  placeholder: i.settings.optional,
272
272
  variant: "secondary"
273
273
  }),
274
- /* @__PURE__ */ Y(N, {})
274
+ /* @__PURE__ */ X(P, {})
275
275
  ]
276
276
  })]
277
277
  }),
278
- /* @__PURE__ */ X(O.Footer, { children: [/* @__PURE__ */ Y(k, {
278
+ /* @__PURE__ */ Z(k.Footer, { children: [/* @__PURE__ */ X(A, {
279
279
  slot: "close",
280
280
  variant: "tertiary",
281
281
  isDisabled: s,
282
282
  children: i.settings.cancel
283
- }), /* @__PURE__ */ X(k, {
283
+ }), /* @__PURE__ */ Z(A, {
284
284
  type: "submit",
285
285
  isPending: s,
286
- children: [s && /* @__PURE__ */ Y(V, {
286
+ children: [s && /* @__PURE__ */ X(H, {
287
287
  color: "current",
288
288
  size: "sm"
289
289
  }), a.createApiKey]
290
290
  })] })
291
291
  ]
292
292
  }) }) })
293
- }), /* @__PURE__ */ Y(wt, {
293
+ }), /* @__PURE__ */ X(Dt, {
294
294
  isOpen: c,
295
295
  onOpenChange: l,
296
296
  secretKey: f,
@@ -299,23 +299,23 @@ function Tt({ isOpen: e, onOpenChange: t, organizationId: n }) {
299
299
  }
300
300
  //#endregion
301
301
  //#region src/components/auth/api-key/api-keys.tsx
302
- function Et({ className: e, variant: t, organizationId: n, isPending: r, hideCreate: i, hideDelete: a }) {
303
- let { authClient: o } = p(), { localization: s } = m(yt), { data: c, isPending: l } = ie(o, {
302
+ function kt({ className: e, variant: t, organizationId: n, isPending: r, hideCreate: i, hideDelete: a }) {
303
+ let { authClient: o } = h(), { localization: s } = g(St), { data: c, isPending: l } = ae(o, {
304
304
  enabled: !r,
305
305
  ...n ? { query: {
306
306
  organizationId: n,
307
307
  configId: "organization"
308
308
  } } : {}
309
- }), u = r || l, [d, f] = q(!1);
310
- return /* @__PURE__ */ X("div", {
311
- className: G("flex flex-col gap-3", e),
309
+ }), u = r || l, [d, f] = J(!1);
310
+ return /* @__PURE__ */ Z("div", {
311
+ className: K("flex flex-col gap-3", e),
312
312
  children: [
313
- /* @__PURE__ */ X("div", {
313
+ /* @__PURE__ */ Z("div", {
314
314
  className: "flex items-end justify-between gap-3",
315
- children: [/* @__PURE__ */ Y("h2", {
315
+ children: [/* @__PURE__ */ X("h2", {
316
316
  className: "text-sm font-semibold truncate",
317
317
  children: s.apiKeys
318
- }), !i && /* @__PURE__ */ Y(k, {
318
+ }), !i && /* @__PURE__ */ X(A, {
319
319
  className: "shrink-0",
320
320
  size: "sm",
321
321
  isDisabled: u,
@@ -323,18 +323,18 @@ function Et({ className: e, variant: t, organizationId: n, isPending: r, hideCre
323
323
  children: s.createApiKey
324
324
  })]
325
325
  }),
326
- /* @__PURE__ */ Y(A, {
326
+ /* @__PURE__ */ X(j, {
327
327
  variant: t,
328
- children: /* @__PURE__ */ Y(A.Content, { children: u ? /* @__PURE__ */ Y(St, {}) : c?.apiKeys.length ? c?.apiKeys.map((e, t) => /* @__PURE__ */ X("div", { children: [t > 0 && /* @__PURE__ */ Y("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ Y(xt, {
328
+ children: /* @__PURE__ */ X(j.Content, { children: u ? /* @__PURE__ */ X(Tt, {}) : c?.apiKeys.length ? c?.apiKeys.map((e, t) => /* @__PURE__ */ Z("div", { children: [t > 0 && /* @__PURE__ */ X("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ X(wt, {
329
329
  apiKey: e,
330
330
  hideDelete: a,
331
331
  organizationId: n
332
- })] }, e.id)) : /* @__PURE__ */ Y(Ct, {
332
+ })] }, e.id)) : /* @__PURE__ */ X(Et, {
333
333
  onCreatePress: () => f(!0),
334
334
  hideCreate: i
335
335
  }) })
336
336
  }),
337
- !i && /* @__PURE__ */ Y(Tt, {
337
+ !i && /* @__PURE__ */ X(Ot, {
338
338
  isOpen: d,
339
339
  onOpenChange: f,
340
340
  organizationId: n
@@ -344,58 +344,58 @@ function Et({ className: e, variant: t, organizationId: n, isPending: r, hideCre
344
344
  }
345
345
  //#endregion
346
346
  //#region src/lib/auth/delete-user-plugin.ts
347
- var Dt = a(ut.id, (e = {}) => ({
348
- ...ut(e),
349
- securityCards: [kt]
347
+ var At = s(ft.id, (e = {}) => ({
348
+ ...ft(e),
349
+ securityCards: [Mt]
350
350
  }));
351
351
  //#endregion
352
352
  //#region src/components/auth/delete-user/delete-account.tsx
353
- function Ot({ className: e, variant: t, ...n }) {
354
- let { authClient: r, basePaths: a, localization: o, navigate: s, viewPaths: c } = p(), { localization: l, sendDeleteAccountVerification: u } = m(Dt), { data: d } = re(r), f = st(), [h, g] = q(!1), [_, v] = q(""), y = d?.some((e) => e.providerId === "credential"), b = !u && y, { mutate: x, isPending: S } = C(r), ee = (e) => {
355
- g(e), v("");
353
+ function jt({ className: e, variant: t, ...n }) {
354
+ let { authClient: r, basePaths: i, localization: a, navigate: s, viewPaths: c } = h(), { localization: l, sendDeleteAccountVerification: u } = g(At), { data: d } = E(r), f = ut(), [p, m] = J(!1), [_, v] = J(""), y = d?.some((e) => e.providerId === "credential"), b = !u && y, { mutate: x, isPending: S } = ee(r), C = (e) => {
355
+ m(e), v("");
356
356
  }, w = async (e) => {
357
357
  e.preventDefault(), x({ ...b ? { password: _ } : {} }, { onSuccess: () => {
358
- g(!1), v(""), u ? K.success(l.deleteUserVerificationSent) : (K.success(l.deleteUserSuccess), f.removeQueries({ queryKey: i.all }), s({
359
- to: `${a.auth}/${c.auth.signIn}`,
358
+ m(!1), v(""), u ? q.success(l.deleteUserVerificationSent) : (q.success(l.deleteUserSuccess), f.removeQueries({ queryKey: o.all }), s({
359
+ to: `${i.auth}/${c.auth.signIn}`,
360
360
  replace: !0
361
361
  }));
362
362
  } });
363
363
  };
364
- return /* @__PURE__ */ Y(A, {
364
+ return /* @__PURE__ */ X(j, {
365
365
  className: e,
366
366
  variant: t,
367
367
  ...n,
368
- children: /* @__PURE__ */ X(A.Content, {
368
+ children: /* @__PURE__ */ Z(j.Content, {
369
369
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
370
- children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("p", {
370
+ children: [/* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X("p", {
371
371
  className: "text-sm font-medium leading-tight",
372
372
  children: l.deleteAccount
373
- }), /* @__PURE__ */ Y("p", {
373
+ }), /* @__PURE__ */ X("p", {
374
374
  className: "text-muted text-xs mt-0.5",
375
375
  children: l.deleteAccountDescription
376
- })] }), /* @__PURE__ */ X(O, { children: [/* @__PURE__ */ Y(k, {
376
+ })] }), /* @__PURE__ */ Z(k, { children: [/* @__PURE__ */ X(A, {
377
377
  isDisabled: !d,
378
378
  size: "sm",
379
379
  variant: "danger-soft",
380
- onPress: () => g(!0),
380
+ onPress: () => m(!0),
381
381
  children: l.deleteAccount
382
- }), /* @__PURE__ */ Y(O.Backdrop, {
383
- isOpen: h,
384
- onOpenChange: ee,
385
- children: /* @__PURE__ */ Y(O.Container, { children: /* @__PURE__ */ Y(O.Dialog, { children: /* @__PURE__ */ X(P, {
382
+ }), /* @__PURE__ */ X(k.Backdrop, {
383
+ isOpen: p,
384
+ onOpenChange: C,
385
+ children: /* @__PURE__ */ X(k.Container, { children: /* @__PURE__ */ X(k.Dialog, { children: /* @__PURE__ */ Z(F, {
386
386
  onSubmit: w,
387
387
  children: [
388
- /* @__PURE__ */ Y(O.CloseTrigger, {}),
389
- /* @__PURE__ */ X(O.Header, { children: [/* @__PURE__ */ Y(O.Icon, {
388
+ /* @__PURE__ */ X(k.CloseTrigger, {}),
389
+ /* @__PURE__ */ Z(k.Header, { children: [/* @__PURE__ */ X(k.Icon, {
390
390
  status: "danger",
391
- children: /* @__PURE__ */ Y(Je, {})
392
- }), /* @__PURE__ */ Y(O.Heading, { children: l.deleteAccount })] }),
393
- /* @__PURE__ */ X(O.Body, {
391
+ children: /* @__PURE__ */ X(Ye, {})
392
+ }), /* @__PURE__ */ X(k.Heading, { children: l.deleteAccount })] }),
393
+ /* @__PURE__ */ Z(k.Body, {
394
394
  className: "overflow-visible",
395
- children: [/* @__PURE__ */ Y("p", {
395
+ children: [/* @__PURE__ */ X("p", {
396
396
  className: "text-muted text-sm",
397
397
  children: l.deleteAccountDescription
398
- }), b && /* @__PURE__ */ X(W, {
398
+ }), b && /* @__PURE__ */ Z(G, {
399
399
  className: "mt-4",
400
400
  name: "password",
401
401
  type: "password",
@@ -403,27 +403,27 @@ function Ot({ className: e, variant: t, ...n }) {
403
403
  value: _,
404
404
  onChange: v,
405
405
  children: [
406
- /* @__PURE__ */ Y(L, { children: o.auth.password }),
407
- /* @__PURE__ */ Y(F, {
406
+ /* @__PURE__ */ X(R, { children: a.auth.password }),
407
+ /* @__PURE__ */ X(I, {
408
408
  autoComplete: "current-password",
409
- placeholder: o.auth.passwordPlaceholder,
409
+ placeholder: a.auth.passwordPlaceholder,
410
410
  required: !0,
411
411
  variant: "secondary"
412
412
  }),
413
- /* @__PURE__ */ Y(N, {})
413
+ /* @__PURE__ */ X(P, {})
414
414
  ]
415
415
  })]
416
416
  }),
417
- /* @__PURE__ */ X(O.Footer, { children: [/* @__PURE__ */ Y(k, {
417
+ /* @__PURE__ */ Z(k.Footer, { children: [/* @__PURE__ */ X(A, {
418
418
  slot: "close",
419
419
  variant: "tertiary",
420
420
  isDisabled: S,
421
- children: o.settings.cancel
422
- }), /* @__PURE__ */ X(k, {
421
+ children: a.settings.cancel
422
+ }), /* @__PURE__ */ Z(A, {
423
423
  type: "submit",
424
424
  variant: "danger",
425
425
  isPending: S,
426
- children: [S && /* @__PURE__ */ Y(V, {
426
+ children: [S && /* @__PURE__ */ X(H, {
427
427
  color: "current",
428
428
  size: "sm"
429
429
  }), l.deleteAccount]
@@ -436,103 +436,152 @@ function Ot({ className: e, variant: t, ...n }) {
436
436
  }
437
437
  //#endregion
438
438
  //#region src/components/auth/delete-user/danger-zone.tsx
439
- function kt({ className: e, variant: t, ...n }) {
440
- let { localization: r } = p();
441
- return /* @__PURE__ */ X("div", {
442
- className: G("flex w-full flex-col", e),
439
+ function Mt({ className: e, variant: t, ...n }) {
440
+ let { localization: r } = h();
441
+ return /* @__PURE__ */ Z("div", {
442
+ className: K("flex w-full flex-col", e),
443
443
  ...n,
444
- children: [/* @__PURE__ */ Y("h2", {
445
- className: G("text-sm font-semibold mb-3 text-danger"),
444
+ children: [/* @__PURE__ */ X("h2", {
445
+ className: K("text-sm font-semibold mb-3 text-danger"),
446
446
  children: r.settings.dangerZone
447
- }), /* @__PURE__ */ Y(Ot, { variant: t })]
447
+ }), /* @__PURE__ */ X(jt, { variant: t })]
448
448
  });
449
449
  }
450
450
  //#endregion
451
451
  //#region src/components/auth/magic-link/magic-link-button.tsx
452
- function At({ view: e }) {
453
- let { basePaths: t, emailAndPassword: n, viewPaths: i, localization: a } = p(), o = Z({ mutationKey: r.signIn.all }) + Z({ mutationKey: r.signUp.all }) > 0, { localization: s, viewPaths: c } = m(jt), l = e === "magicLink";
454
- return l && !n?.enabled ? null : /* @__PURE__ */ X($e, {
455
- href: `${t.auth}/${l ? i.auth.signIn : c.auth.magicLink}`,
452
+ function Nt({ view: e }) {
453
+ let { basePaths: t, emailAndPassword: n, viewPaths: r, localization: i } = h(), o = lt({ mutationKey: a.signIn.all }) + lt({ mutationKey: a.signUp.all }) > 0, { localization: s, viewPaths: c } = g(It), l = e === "magicLink";
454
+ return l && !n?.enabled ? null : /* @__PURE__ */ Z(et, {
455
+ href: `${t.auth}/${l ? r.auth.signIn : c.auth.magicLink}`,
456
456
  isDisabled: o,
457
- className: G(ct({ variant: "tertiary" }), "w-full gap-2", o && "status-disabled"),
458
- children: [Y(l ? ze : Pe, {}), a.auth.continueWith.replace("{{provider}}", l ? a.auth.password : s.magicLink)]
457
+ className: K(ct({ variant: "tertiary" }), "w-full gap-2", o && "status-disabled"),
458
+ children: [X(l ? Be : Fe, {}), i.auth.continueWith.replace("{{provider}}", l ? i.auth.password : s.magicLink)]
459
+ });
460
+ }
461
+ //#endregion
462
+ //#region src/components/auth/magic-link/magic-link-sent.tsx
463
+ var Pt = "better-auth-ui.magic-link-sent";
464
+ function Ft({ className: e, variant: t }) {
465
+ let { basePaths: n, emailAndPassword: i, localization: a, viewPaths: o } = h(), { localization: s } = g(It), [c, l] = J(it() && sessionStorage.getItem("better-auth-ui.magic-link-sent") || "");
466
+ return at(() => {
467
+ l(sessionStorage.getItem("better-auth-ui.magic-link-sent") ?? "");
468
+ }, []), /* @__PURE__ */ Z(j, {
469
+ className: K("w-full max-w-sm gap-4 md:p-6", e),
470
+ variant: t,
471
+ children: [
472
+ /* @__PURE__ */ X(j.Header, { children: /* @__PURE__ */ X(j.Title, {
473
+ className: "text-xl font-semibold mb-1",
474
+ children: a.auth.checkYourEmailTitle
475
+ }) }),
476
+ /* @__PURE__ */ Z(j.Content, {
477
+ className: "gap-4",
478
+ children: [/* @__PURE__ */ X(Qe, {
479
+ className: "text-sm",
480
+ children: c ? s.magicLinkSentTo.replace("{{email}}", c) : s.magicLinkSent
481
+ }), c && /* @__PURE__ */ X(r, { email: c })]
482
+ }),
483
+ i?.enabled && /* @__PURE__ */ X(j.Footer, {
484
+ className: "flex-col gap-3",
485
+ children: /* @__PURE__ */ Z(Qe, {
486
+ className: "text-sm",
487
+ children: [
488
+ a.auth.needToCreateAnAccount,
489
+ " ",
490
+ /* @__PURE__ */ X(et, {
491
+ href: `${n.auth}/${o.auth.signUp}`,
492
+ className: "text-accent no-underline hover:underline decoration-accent-hover",
493
+ children: a.auth.signUp
494
+ })
495
+ ]
496
+ })
497
+ })
498
+ ]
459
499
  });
460
500
  }
461
501
  //#endregion
462
502
  //#region src/lib/auth/magic-link-plugin.ts
463
- var jt = a(dt.id, (e = {}) => ({
464
- ...dt(e),
465
- authButtons: [At],
466
- views: { auth: { magicLink: Mt } },
467
- fallbackViews: { auth: { signIn: Mt } }
503
+ var It = s(mt.id, (e = {}) => ({
504
+ ...mt(e),
505
+ authButtons: [Nt],
506
+ views: { auth: {
507
+ magicLink: Lt,
508
+ magicLinkSent: Ft
509
+ } },
510
+ fallbackViews: { auth: { signIn: Lt } }
468
511
  }));
469
512
  //#endregion
470
513
  //#region src/components/auth/magic-link/magic-link.tsx
471
- function Mt({ className: n, socialLayout: i, socialPosition: a = "bottom", variant: o }) {
472
- let { authClient: s, basePaths: c, baseURL: l, emailAndPassword: u, localization: d, plugins: f, redirectTo: h, socialProviders: g, viewPaths: _ } = p(), { localization: v } = m(jt), [y, b] = q(""), { mutate: x, isPending: S } = _e(s, { onSuccess: () => {
473
- b(""), K.success(v.magicLinkSent);
474
- } }), C = Z({ mutationKey: r.signIn.all }) + Z({ mutationKey: r.signUp.all }) > 0, ee = (e) => {
475
- e.preventDefault(), x({
476
- email: y,
477
- callbackURL: `${l}${h}`
514
+ function Lt({ className: e, socialLayout: r, socialPosition: i = "bottom", variant: o }) {
515
+ let { authClient: s, basePaths: c, baseURL: l, emailAndPassword: u, localization: d, navigate: f, plugins: p, redirectTo: m, socialProviders: _, viewPaths: v } = h(), { localization: y, viewPaths: b } = g(It), [x, S] = J(""), { mutate: C, isPending: w } = ve(s, { onSuccess: (e, t) => {
516
+ sessionStorage.setItem(Pt, t.email), f({ to: `${c.auth}/${b.auth.magicLinkSent}` });
517
+ } }), ee = lt({ mutationKey: a.signIn.all }) + lt({ mutationKey: a.signUp.all }) > 0, te = (e) => {
518
+ e.preventDefault(), C({
519
+ email: x,
520
+ callbackURL: `${l}${m}`
478
521
  });
479
- }, w = !!g?.length;
480
- return /* @__PURE__ */ X(A, {
481
- className: G("w-full max-w-sm gap-4 md:p-6", n),
522
+ }, T = !!_?.length;
523
+ return /* @__PURE__ */ Z(j, {
524
+ className: K("w-full max-w-sm gap-4 md:p-6", e),
482
525
  variant: o,
483
526
  children: [
484
- /* @__PURE__ */ Y(A.Header, { children: /* @__PURE__ */ Y(A.Title, {
527
+ /* @__PURE__ */ X(j.Header, { children: /* @__PURE__ */ X(j.Title, {
485
528
  className: "text-xl font-semibold mb-1",
486
529
  children: d.auth.signIn
487
530
  }) }),
488
- /* @__PURE__ */ X(A.Content, {
531
+ /* @__PURE__ */ Z(j.Content, {
489
532
  className: "gap-4",
490
533
  children: [
491
- a === "top" && /* @__PURE__ */ X(J, { children: [!!g?.length && /* @__PURE__ */ Y(t, { socialLayout: i }), w && /* @__PURE__ */ Y(e, { children: d.auth.or })] }),
492
- /* @__PURE__ */ X(P, {
493
- onSubmit: ee,
534
+ i === "top" && /* @__PURE__ */ Z(Y, { children: [!!_?.length && /* @__PURE__ */ X(n, {
535
+ socialLayout: r,
536
+ view: "magicLink"
537
+ }), T && /* @__PURE__ */ X(t, { children: d.auth.or })] }),
538
+ /* @__PURE__ */ Z(F, {
539
+ onSubmit: te,
494
540
  className: "flex flex-col gap-4",
495
- children: [/* @__PURE__ */ X(W, {
541
+ children: [/* @__PURE__ */ Z(G, {
496
542
  name: "email",
497
543
  type: "email",
498
544
  autoComplete: "email",
499
- isDisabled: C,
500
- value: y,
501
- onChange: b,
545
+ isDisabled: ee,
546
+ value: x,
547
+ onChange: S,
502
548
  children: [
503
- /* @__PURE__ */ Y(L, { children: d.auth.email }),
504
- /* @__PURE__ */ Y(F, {
549
+ /* @__PURE__ */ X(R, { children: d.auth.email }),
550
+ /* @__PURE__ */ X(I, {
505
551
  placeholder: d.auth.emailPlaceholder,
506
552
  required: !0,
507
553
  variant: o === "transparent" ? "primary" : "secondary"
508
554
  }),
509
- /* @__PURE__ */ Y(N, {})
555
+ /* @__PURE__ */ X(P, {})
510
556
  ]
511
- }), /* @__PURE__ */ X("div", {
557
+ }), /* @__PURE__ */ Z("div", {
512
558
  className: "flex flex-col gap-3",
513
- children: [/* @__PURE__ */ X(k, {
559
+ children: [/* @__PURE__ */ Z(A, {
514
560
  type: "submit",
515
561
  className: "w-full",
516
- isPending: C,
517
- children: [S && /* @__PURE__ */ Y(V, {
562
+ isPending: ee,
563
+ children: [w && /* @__PURE__ */ X(H, {
518
564
  color: "current",
519
565
  size: "sm"
520
- }), v.sendMagicLink]
521
- }), f.flatMap((e) => (e.authButtons ?? []).map((t, n) => /* @__PURE__ */ Y(t, { view: "magicLink" }, `${e.id}-${n.toString()}`)))]
566
+ }), y.sendMagicLink]
567
+ }), p.flatMap((e) => (e.authButtons ?? []).map((t, n) => /* @__PURE__ */ X(t, { view: "magicLink" }, `${e.id}-${n.toString()}`)))]
522
568
  })]
523
569
  }),
524
- a === "bottom" && /* @__PURE__ */ X(J, { children: [w && /* @__PURE__ */ Y(e, { children: d.auth.or }), !!g?.length && /* @__PURE__ */ Y(t, { socialLayout: i })] })
570
+ i === "bottom" && /* @__PURE__ */ Z(Y, { children: [T && /* @__PURE__ */ X(t, { children: d.auth.or }), !!_?.length && /* @__PURE__ */ X(n, {
571
+ socialLayout: r,
572
+ view: "magicLink"
573
+ })] })
525
574
  ]
526
575
  }),
527
- u?.enabled && /* @__PURE__ */ Y(A.Footer, {
576
+ u?.enabled && /* @__PURE__ */ X(j.Footer, {
528
577
  className: "flex-col gap-3",
529
- children: /* @__PURE__ */ X(Ze, {
578
+ children: /* @__PURE__ */ Z(Qe, {
530
579
  className: "text-sm",
531
580
  children: [
532
581
  d.auth.needToCreateAnAccount,
533
582
  " ",
534
- /* @__PURE__ */ Y($e, {
535
- href: `${c.auth}/${_.auth.signUp}`,
583
+ /* @__PURE__ */ X(et, {
584
+ href: `${c.auth}/${v.auth.signUp}`,
536
585
  className: "text-accent no-underline hover:underline decoration-accent-hover",
537
586
  children: d.auth.signUp
538
587
  })
@@ -544,8 +593,8 @@ function Mt({ className: n, socialLayout: i, socialPosition: a = "bottom", varia
544
593
  }
545
594
  //#endregion
546
595
  //#region src/components/auth/multi-session/manage-accounts.tsx
547
- function Nt({ className: e, variant: t, ...n }) {
548
- let { authClient: r } = p(), { localization: i } = m(Lt), { data: a } = E(r), { data: o, isPending: s } = ae(r), c = o?.filter((e) => e.session.id !== a?.session.id), l = [{
596
+ function Rt({ className: e, variant: t, ...n }) {
597
+ let { authClient: r } = h(), { localization: i } = g(Ht), { data: a } = D(r), { data: o, isPending: s } = oe(r), c = o?.filter((e) => e.session.id !== a?.session.id), l = [{
549
598
  key: a?.session.id ?? "current",
550
599
  deviceSession: s ? null : a,
551
600
  isPending: s
@@ -554,16 +603,16 @@ function Nt({ className: e, variant: t, ...n }) {
554
603
  deviceSession: e,
555
604
  isPending: !1
556
605
  })) ?? []];
557
- return /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("h2", {
558
- className: G("text-sm font-semibold mb-3"),
606
+ return /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X("h2", {
607
+ className: K("text-sm font-semibold mb-3"),
559
608
  children: i.manageAccounts
560
- }), /* @__PURE__ */ Y(A, {
561
- className: G(e),
609
+ }), /* @__PURE__ */ X(j, {
610
+ className: K(e),
562
611
  variant: t,
563
612
  ...n,
564
- children: /* @__PURE__ */ Y(A.Content, {
613
+ children: /* @__PURE__ */ X(j.Content, {
565
614
  className: "gap-0",
566
- children: l.map((e, t) => /* @__PURE__ */ X("div", { children: [t > 0 && /* @__PURE__ */ Y("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ Y(Rt, {
615
+ children: l.map((e, t) => /* @__PURE__ */ Z("div", { children: [t > 0 && /* @__PURE__ */ X("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ X(Ut, {
567
616
  deviceSession: e.deviceSession,
568
617
  isPending: e.isPending
569
618
  })] }, e.key))
@@ -572,16 +621,16 @@ function Nt({ className: e, variant: t, ...n }) {
572
621
  }
573
622
  //#endregion
574
623
  //#region src/components/auth/multi-session/switch-account-submenu-item.tsx
575
- function Pt({ deviceSession: e, hideSubtitle: t }) {
576
- let { authClient: r } = p(), { mutate: i, isPending: a } = he(r, { onSuccess: () => window.scrollTo({ top: 0 }) });
577
- return /* @__PURE__ */ X(M.Item, {
624
+ function zt({ deviceSession: e, hideSubtitle: t }) {
625
+ let { authClient: n } = h(), { mutate: r, isPending: a } = ge(n, { onSuccess: () => window.scrollTo({ top: 0 }) });
626
+ return /* @__PURE__ */ Z(N.Item, {
578
627
  className: "px-2",
579
628
  isDisabled: a,
580
- onPress: () => i({ sessionToken: e.session.token }),
581
- children: [/* @__PURE__ */ Y(n, {
629
+ onPress: () => r({ sessionToken: e.session.token }),
630
+ children: [/* @__PURE__ */ X(i, {
582
631
  user: e.user,
583
632
  hideSubtitle: t
584
- }), a && /* @__PURE__ */ Y(V, {
633
+ }), a && /* @__PURE__ */ X(H, {
585
634
  color: "current",
586
635
  size: "sm",
587
636
  className: "ml-auto"
@@ -590,163 +639,163 @@ function Pt({ deviceSession: e, hideSubtitle: t }) {
590
639
  }
591
640
  //#endregion
592
641
  //#region src/components/auth/multi-session/switch-account-submenu-content.tsx
593
- function Ft({ hideSubtitle: e }) {
594
- let { authClient: t, basePaths: r, viewPaths: i } = p(), { localization: a } = m(Lt), { data: o } = E(t), { data: s, isPending: c } = ae(t);
595
- return /* @__PURE__ */ Y(M.Popover, {
642
+ function Bt({ hideSubtitle: e }) {
643
+ let { authClient: t, basePaths: n, viewPaths: r } = h(), { localization: a } = g(Ht), { data: o } = D(t), { data: s, isPending: c } = oe(t);
644
+ return /* @__PURE__ */ X(N.Popover, {
596
645
  className: "min-w-40 md:min-w-56 max-w-[48svw]",
597
- children: /* @__PURE__ */ X(M.Menu, { children: [
598
- /* @__PURE__ */ X(M.Item, {
646
+ children: /* @__PURE__ */ Z(N.Menu, { children: [
647
+ /* @__PURE__ */ Z(N.Item, {
599
648
  className: "px-2",
600
- children: [/* @__PURE__ */ Y(n, {
649
+ children: [/* @__PURE__ */ X(i, {
601
650
  isPending: c,
602
651
  hideSubtitle: e
603
- }), !c && /* @__PURE__ */ Y(Ee, { className: "ml-auto" })]
652
+ }), !c && /* @__PURE__ */ X(De, { className: "ml-auto" })]
604
653
  }),
605
- s?.filter((e) => e.session.id !== o?.session?.id).map((t) => /* @__PURE__ */ Y(Pt, {
654
+ s?.filter((e) => e.session.id !== o?.session?.id).map((t) => /* @__PURE__ */ X(zt, {
606
655
  deviceSession: t,
607
656
  hideSubtitle: e
608
657
  }, t.session.id)),
609
- /* @__PURE__ */ X(M.Item, {
658
+ /* @__PURE__ */ Z(N.Item, {
610
659
  textValue: a.addAccount,
611
- href: `${r.auth}/${i.auth.signIn}`,
612
- children: [/* @__PURE__ */ Y(Oe, { className: "text-muted" }), /* @__PURE__ */ Y(L, { children: a.addAccount })]
660
+ href: `${n.auth}/${r.auth.signIn}`,
661
+ children: [/* @__PURE__ */ X(ke, { className: "text-muted" }), /* @__PURE__ */ X(R, { children: a.addAccount })]
613
662
  })
614
663
  ] })
615
664
  });
616
665
  }
617
666
  //#endregion
618
667
  //#region src/components/auth/multi-session/switch-account-submenu.tsx
619
- function It({ className: e, hideSubtitle: t }) {
620
- let { authClient: n } = p(), { data: r } = E(n), { localization: i } = m(Lt);
621
- return r ? /* @__PURE__ */ X(M.SubmenuTrigger, { children: [/* @__PURE__ */ X(M.Item, {
668
+ function Vt({ className: e, hideSubtitle: t }) {
669
+ let { authClient: n } = h(), { data: r } = D(n), { localization: i } = g(Ht);
670
+ return r ? /* @__PURE__ */ Z(N.SubmenuTrigger, { children: [/* @__PURE__ */ Z(N.Item, {
622
671
  className: e,
623
672
  textValue: i.switchAccount,
624
673
  children: [
625
- /* @__PURE__ */ Y(Ce, { className: "text-muted" }),
626
- /* @__PURE__ */ Y(L, { children: i.switchAccount }),
627
- /* @__PURE__ */ Y(M.SubmenuIndicator, {})
674
+ /* @__PURE__ */ X(we, { className: "text-muted" }),
675
+ /* @__PURE__ */ X(R, { children: i.switchAccount }),
676
+ /* @__PURE__ */ X(N.SubmenuIndicator, {})
628
677
  ]
629
- }), /* @__PURE__ */ Y(M.Popover, {
678
+ }), /* @__PURE__ */ X(N.Popover, {
630
679
  className: "min-w-40 md:min-w-56 max-w-[48svw]",
631
- children: /* @__PURE__ */ Y(Ft, { hideSubtitle: t })
680
+ children: /* @__PURE__ */ X(Bt, { hideSubtitle: t })
632
681
  })] }) : null;
633
682
  }
634
683
  //#endregion
635
684
  //#region src/lib/auth/multi-session-plugin.ts
636
- var Lt = a(ft.id, (e = {}) => ({
637
- ...ft(e),
638
- accountCards: [Nt],
639
- userMenuItems: [It]
685
+ var Ht = s(ht.id, (e = {}) => ({
686
+ ...ht(e),
687
+ accountCards: [Rt],
688
+ userMenuItems: [Vt]
640
689
  }));
641
690
  //#endregion
642
691
  //#region src/components/auth/multi-session/manage-account.tsx
643
- function Rt({ deviceSession: e, isPending: t }) {
644
- let { authClient: r, localization: i } = p(), { localization: a } = m(Lt), { data: o } = Se(r), { mutate: s, isPending: c } = he(r, { onSuccess: () => window.scrollTo({ top: 0 }) }), { mutate: l, isPending: u } = pe(r, { onSuccess: () => K.success(i.settings.revokeSessionSuccess) }), d = e?.session.userId === o?.id, f = c || u;
645
- return /* @__PURE__ */ X("div", {
692
+ function Ut({ deviceSession: e, isPending: t }) {
693
+ let { authClient: n, localization: r } = h(), { localization: a } = g(Ht), { data: o } = Ce(n), { mutate: s, isPending: c } = ge(n, { onSuccess: () => window.scrollTo({ top: 0 }) }), { mutate: l, isPending: u } = me(n, { onSuccess: () => q.success(r.settings.revokeSessionSuccess) }), d = e?.session.userId === o?.id, f = c || u;
694
+ return /* @__PURE__ */ Z("div", {
646
695
  className: "flex items-center justify-between gap-3",
647
696
  children: [
648
- /* @__PURE__ */ Y(n, {
697
+ /* @__PURE__ */ X(i, {
649
698
  user: e?.user,
650
699
  isPending: t,
651
700
  size: "md"
652
701
  }),
653
- e && d && /* @__PURE__ */ X(k, {
702
+ e && d && /* @__PURE__ */ Z(A, {
654
703
  className: "shrink-0",
655
704
  variant: "outline",
656
705
  size: "sm",
657
706
  onPress: () => l({ sessionToken: e.session.token }),
658
707
  isDisabled: f,
659
- children: [u ? /* @__PURE__ */ Y(V, {
708
+ children: [u ? /* @__PURE__ */ X(H, {
660
709
  color: "current",
661
710
  size: "sm"
662
- }) : /* @__PURE__ */ Y(we, {}), i.auth.signOut]
711
+ }) : /* @__PURE__ */ X(Te, {}), r.auth.signOut]
663
712
  }),
664
- e && !d && /* @__PURE__ */ X(M, { children: [/* @__PURE__ */ Y(k, {
713
+ e && !d && /* @__PURE__ */ Z(N, { children: [/* @__PURE__ */ X(A, {
665
714
  isIconOnly: !0,
666
715
  variant: "ghost",
667
716
  className: "shrink-0",
668
717
  size: "sm",
669
718
  isDisabled: f,
670
- children: /* @__PURE__ */ Y(Ne, {})
671
- }), /* @__PURE__ */ Y(M.Popover, { children: /* @__PURE__ */ X(M.Menu, { children: [/* @__PURE__ */ X(M.Item, {
719
+ children: /* @__PURE__ */ X(Pe, {})
720
+ }), /* @__PURE__ */ X(N.Popover, { children: /* @__PURE__ */ Z(N.Menu, { children: [/* @__PURE__ */ Z(N.Item, {
672
721
  textValue: a.switchAccount,
673
722
  onAction: () => s({ sessionToken: e.session.token }),
674
- children: [/* @__PURE__ */ Y(Ce, { className: "text-muted" }), a.switchAccount]
675
- }), /* @__PURE__ */ X(M.Item, {
676
- textValue: i.auth.signOut,
723
+ children: [/* @__PURE__ */ X(we, { className: "text-muted" }), a.switchAccount]
724
+ }), /* @__PURE__ */ Z(N.Item, {
725
+ textValue: r.auth.signOut,
677
726
  onAction: () => l({ sessionToken: e.session.token }),
678
- children: [/* @__PURE__ */ Y(we, { className: "text-muted" }), i.auth.signOut]
727
+ children: [/* @__PURE__ */ X(Te, { className: "text-muted" }), r.auth.signOut]
679
728
  })] }) })] })
680
729
  ]
681
730
  });
682
731
  }
683
732
  //#endregion
684
733
  //#region src/components/auth/organization/slug-field.tsx
685
- function zt(e) {
734
+ function Wt(e) {
686
735
  return e.toLowerCase().replace(/[^a-z0-9]+/g, "-");
687
736
  }
688
- function Bt({ value: e, onChange: t, currentSlug: n, variant: r, ...i }) {
689
- let { authClient: a, localization: o } = p(), { localization: s, checkSlug: c, slugPrefix: l } = m($), { mutate: u, data: d, error: f, reset: h } = _(a), g = _t((e) => {
737
+ function Gt({ value: e, onChange: t, currentSlug: n, variant: r, ...i }) {
738
+ let { authClient: a, localization: o } = h(), { localization: s, checkSlug: c, slugPrefix: l } = g($), { mutate: u, data: d, error: f, reset: p } = y(a), m = bt((e) => {
690
739
  !c || !e.trim() || e.trim() === n || u({ slug: e.trim() });
691
740
  }, { wait: 500 });
692
- it(() => {
693
- c && (h(), g.maybeExecute(e));
741
+ at(() => {
742
+ c && (p(), m.maybeExecute(e));
694
743
  }, [
695
744
  c,
696
745
  e,
697
- g.maybeExecute,
698
- h
746
+ m.maybeExecute,
747
+ p
699
748
  ]);
700
- let v = (e) => {
701
- t(zt(e));
749
+ let _ = (e) => {
750
+ t(Wt(e));
702
751
  };
703
- return /* @__PURE__ */ X(W, {
752
+ return /* @__PURE__ */ Z(G, {
704
753
  id: "slug",
705
754
  name: "slug",
706
755
  ...i,
707
756
  value: e,
708
- onChange: v,
757
+ onChange: _,
709
758
  validate: (e) => {
710
759
  if (!e) return o.auth.fieldRequired;
711
760
  },
712
761
  children: [
713
- /* @__PURE__ */ Y(L, { children: s.slug }),
714
- /* @__PURE__ */ X(I, {
762
+ /* @__PURE__ */ X(R, { children: s.slug }),
763
+ /* @__PURE__ */ Z(L, {
715
764
  variant: r,
716
765
  children: [
717
- l && /* @__PURE__ */ Y(I.Prefix, {
766
+ l && /* @__PURE__ */ X(L.Prefix, {
718
767
  className: "pr-1.5 text-muted",
719
768
  children: l
720
769
  }),
721
- /* @__PURE__ */ Y(I.Input, {
770
+ /* @__PURE__ */ X(L.Input, {
722
771
  placeholder: s.slugPlaceholder,
723
772
  required: !0
724
773
  }),
725
- c && !!e.trim() && e.trim() !== n && /* @__PURE__ */ Y(I.Suffix, {
774
+ c && !!e.trim() && e.trim() !== n && /* @__PURE__ */ X(L.Suffix, {
726
775
  className: "px-2",
727
- children: d?.status ? /* @__PURE__ */ Y(Ee, { className: "text-success" }) : f ? /* @__PURE__ */ Y(D, { className: "text-danger" }) : /* @__PURE__ */ Y(V, {
776
+ children: d?.status ? /* @__PURE__ */ X(De, { className: "text-success" }) : f ? /* @__PURE__ */ X(O, { className: "text-danger" }) : /* @__PURE__ */ X(H, {
728
777
  size: "sm",
729
778
  color: "current"
730
779
  })
731
780
  })
732
781
  ]
733
782
  }),
734
- /* @__PURE__ */ Y(N, {})
783
+ /* @__PURE__ */ X(P, {})
735
784
  ]
736
785
  });
737
786
  }
738
787
  //#endregion
739
788
  //#region src/components/auth/organization/create-organization-dialog.tsx
740
- function Vt({ isOpen: e, onOpenChange: t }) {
741
- let { authClient: n, localization: r } = p(), { localization: i } = m($), [a, o] = q(""), [s, c] = q(""), [l, u] = q(!1), { mutate: d, isPending: f } = y(n, { onSuccess: () => t(!1) });
742
- return it(() => {
789
+ function Kt({ isOpen: e, onOpenChange: t }) {
790
+ let { authClient: n, localization: r } = h(), { localization: i } = g($), [a, o] = J(""), [s, c] = J(""), [l, u] = J(!1), { mutate: d, isPending: f } = x(n, { onSuccess: () => t(!1) });
791
+ return at(() => {
743
792
  e || (c(""), o(""), u(!1));
744
- }, [e]), it(() => {
745
- l || c(zt(a));
746
- }, [a, l]), /* @__PURE__ */ Y(O.Backdrop, {
793
+ }, [e]), at(() => {
794
+ l || c(Wt(a));
795
+ }, [a, l]), /* @__PURE__ */ X(k.Backdrop, {
747
796
  isOpen: e,
748
797
  onOpenChange: t,
749
- children: /* @__PURE__ */ Y(O.Container, { children: /* @__PURE__ */ Y(O.Dialog, { children: /* @__PURE__ */ X(P, {
798
+ children: /* @__PURE__ */ X(k.Container, { children: /* @__PURE__ */ X(k.Dialog, { children: /* @__PURE__ */ Z(F, {
750
799
  onSubmit: (e) => {
751
800
  e.preventDefault(), d({
752
801
  name: a,
@@ -754,19 +803,19 @@ function Vt({ isOpen: e, onOpenChange: t }) {
754
803
  });
755
804
  },
756
805
  children: [
757
- /* @__PURE__ */ Y(O.CloseTrigger, {}),
758
- /* @__PURE__ */ X(O.Header, { children: [/* @__PURE__ */ Y(O.Icon, {
806
+ /* @__PURE__ */ X(k.CloseTrigger, {}),
807
+ /* @__PURE__ */ Z(k.Header, { children: [/* @__PURE__ */ X(k.Icon, {
759
808
  status: "default",
760
- children: /* @__PURE__ */ Y(Te, {})
761
- }), /* @__PURE__ */ Y(O.Heading, { children: i.createOrganization })] }),
762
- /* @__PURE__ */ X(O.Body, {
809
+ children: /* @__PURE__ */ X(Ee, {})
810
+ }), /* @__PURE__ */ X(k.Heading, { children: i.createOrganization })] }),
811
+ /* @__PURE__ */ Z(k.Body, {
763
812
  className: "flex flex-col gap-4 overflow-visible",
764
813
  children: [
765
- /* @__PURE__ */ Y("p", {
814
+ /* @__PURE__ */ X("p", {
766
815
  className: "text-muted text-sm",
767
816
  children: i.organizationsDescription
768
817
  }),
769
- /* @__PURE__ */ X(W, {
818
+ /* @__PURE__ */ Z(G, {
770
819
  id: "name",
771
820
  name: "name",
772
821
  isDisabled: f,
@@ -776,17 +825,17 @@ function Vt({ isOpen: e, onOpenChange: t }) {
776
825
  if (!e) return r.auth.fieldRequired;
777
826
  },
778
827
  children: [
779
- /* @__PURE__ */ Y(L, { children: i.name }),
780
- /* @__PURE__ */ Y(F, {
828
+ /* @__PURE__ */ X(R, { children: i.name }),
829
+ /* @__PURE__ */ X(I, {
781
830
  required: !0,
782
831
  autoFocus: !0,
783
832
  placeholder: i.namePlaceholder,
784
833
  variant: "secondary"
785
834
  }),
786
- /* @__PURE__ */ Y(N, {})
835
+ /* @__PURE__ */ X(P, {})
787
836
  ]
788
837
  }),
789
- /* @__PURE__ */ Y(Bt, {
838
+ /* @__PURE__ */ X(Gt, {
790
839
  value: s,
791
840
  onChange: (e) => {
792
841
  c(e), u(!0);
@@ -796,15 +845,15 @@ function Vt({ isOpen: e, onOpenChange: t }) {
796
845
  })
797
846
  ]
798
847
  }),
799
- /* @__PURE__ */ X(O.Footer, { children: [/* @__PURE__ */ Y(k, {
848
+ /* @__PURE__ */ Z(k.Footer, { children: [/* @__PURE__ */ X(A, {
800
849
  slot: "close",
801
850
  variant: "tertiary",
802
851
  isDisabled: f,
803
852
  children: r.settings.cancel
804
- }), /* @__PURE__ */ X(k, {
853
+ }), /* @__PURE__ */ Z(A, {
805
854
  type: "submit",
806
855
  isPending: f,
807
- children: [f && /* @__PURE__ */ Y(V, {
856
+ children: [f && /* @__PURE__ */ X(H, {
808
857
  color: "current",
809
858
  size: "sm"
810
859
  }), i.createOrganization]
@@ -815,128 +864,128 @@ function Vt({ isOpen: e, onOpenChange: t }) {
815
864
  }
816
865
  //#endregion
817
866
  //#region src/components/auth/organization/organization-logo.tsx
818
- function Ht({ className: e, fallback: t, isPending: n, organization: r, size: i = "sm", style: a, ...o }) {
819
- if (n && !r) return /* @__PURE__ */ Y(B, {
820
- className: G("rounded-full", i === "sm" ? "size-8" : i === "md" ? "size-10" : "size-12", e),
867
+ function qt({ className: e, fallback: t, isPending: n, organization: r, size: i = "sm", style: a, ...o }) {
868
+ if (n && !r) return /* @__PURE__ */ X(V, {
869
+ className: K("rounded-full", i === "sm" ? "size-8" : i === "md" ? "size-10" : "size-12", e),
821
870
  style: a
822
871
  });
823
872
  let s = r?.name?.slice(0, 2).toUpperCase();
824
- return /* @__PURE__ */ X(Ye, {
873
+ return /* @__PURE__ */ Z(Xe, {
825
874
  size: i,
826
- className: G("rounded-full", e),
875
+ className: K("rounded-full", e),
827
876
  style: a,
828
877
  ...o,
829
- children: [/* @__PURE__ */ Y(Ye.Image, {
878
+ children: [/* @__PURE__ */ X(Xe.Image, {
830
879
  alt: r?.name ?? "Organization",
831
880
  src: r?.logo ?? void 0
832
- }), /* @__PURE__ */ Y(Ye.Fallback, {
833
- className: G(i === "lg" ? "text-xl" : i === "md" ? "text-base" : "text-sm"),
881
+ }), /* @__PURE__ */ X(Xe.Fallback, {
882
+ className: K(i === "lg" ? "text-xl" : i === "md" ? "text-base" : "text-sm"),
834
883
  delayMs: r?.logo ? 600 : void 0,
835
- children: t || s || /* @__PURE__ */ Y(Te, { className: "size-4" })
884
+ children: t || s || /* @__PURE__ */ X(Ee, { className: "size-4" })
836
885
  })]
837
886
  });
838
887
  }
839
888
  //#endregion
840
889
  //#region src/components/auth/organization/organization-view-skeleton.tsx
841
- function Ut({ className: e, hideSlug: t, size: n = "md", ...r }) {
842
- return /* @__PURE__ */ X("div", {
843
- className: G("flex min-w-0 items-center gap-2", e),
890
+ function Jt({ className: e, hideSlug: t, size: n = "md", ...r }) {
891
+ return /* @__PURE__ */ Z("div", {
892
+ className: K("flex min-w-0 items-center gap-2", e),
844
893
  ...r,
845
- children: [/* @__PURE__ */ Y(Ht, {
894
+ children: [/* @__PURE__ */ X(qt, {
846
895
  isPending: !0,
847
896
  className: n === "sm" ? "size-5" : void 0,
848
897
  size: n === "lg" ? "md" : "sm"
849
- }), /* @__PURE__ */ X("div", {
898
+ }), /* @__PURE__ */ Z("div", {
850
899
  className: "flex flex-col min-w-0 gap-1",
851
- children: [/* @__PURE__ */ Y(B, { className: "h-3.5 w-20 rounded-lg" }), !t && /* @__PURE__ */ Y(B, { className: "h-3 w-28 rounded-lg mt-[0.5px] mb-0.5" })]
900
+ children: [/* @__PURE__ */ X(V, { className: "h-3.5 w-20 rounded-lg" }), !t && /* @__PURE__ */ X(V, { className: "h-3 w-28 rounded-lg mt-[0.5px] mb-0.5" })]
852
901
  })]
853
902
  });
854
903
  }
855
904
  //#endregion
856
905
  //#region src/components/auth/organization/organization-view.tsx
857
906
  function Q({ className: e, isPending: t, size: n = "md", hideSlug: r, hideRole: i, organization: a, ...o }) {
858
- let { authClient: s } = p(), { roles: c, slugPrefix: l } = m($), { data: u } = E(s), { data: f, isPending: h } = d(s, { enabled: !a && !t }), g = a ?? f, { data: _, isPending: v } = se(s, {
859
- query: { organizationId: g?.id },
860
- enabled: !!g?.id && !i
907
+ let { authClient: s } = h(), { roles: c, slugPrefix: l } = g($), { data: u } = D(s), { data: d, isPending: f } = p(s, { enabled: !a && !t }), m = a ?? d, { data: _, isPending: v } = ce(s, {
908
+ query: { organizationId: m?.id },
909
+ enabled: !!m?.id && !i
861
910
  }), y = _?.members?.find((e) => e.userId === u?.user.id);
862
- return t || !a && h || !i && g?.id && v ? /* @__PURE__ */ Y(Ut, {
911
+ return t || !a && f || !i && m?.id && v ? /* @__PURE__ */ X(Jt, {
863
912
  className: e,
864
913
  hideSlug: r,
865
914
  size: n,
866
915
  ...o
867
- }) : /* @__PURE__ */ X("div", {
868
- className: G("flex min-w-0 items-center gap-2", e),
916
+ }) : /* @__PURE__ */ Z("div", {
917
+ className: K("flex min-w-0 items-center gap-2", e),
869
918
  ...o,
870
- children: [/* @__PURE__ */ Y(Ht, {
871
- organization: g,
919
+ children: [/* @__PURE__ */ X(qt, {
920
+ organization: m,
872
921
  className: n === "sm" ? "size-5 [&>span]:text-xs" : void 0,
873
922
  size: n === "lg" ? "md" : "sm"
874
- }), /* @__PURE__ */ X("div", {
923
+ }), /* @__PURE__ */ Z("div", {
875
924
  className: "flex flex-col min-w-0",
876
- children: [/* @__PURE__ */ X("div", {
925
+ children: [/* @__PURE__ */ Z("div", {
877
926
  className: "flex min-w-0 items-center gap-2",
878
- children: [/* @__PURE__ */ Y("p", {
927
+ children: [/* @__PURE__ */ X("p", {
879
928
  className: "text-foreground text-sm font-medium truncate leading-tight",
880
- children: g?.name
881
- }), !i && !!y && /* @__PURE__ */ Y(j, {
929
+ children: m?.name
930
+ }), !i && !!y && /* @__PURE__ */ X(M, {
882
931
  className: "shrink-0 -my-0.5",
883
932
  size: "sm",
884
933
  children: c?.[y.role] ?? y.role
885
934
  })]
886
- }), !r && !!g?.slug && /* @__PURE__ */ X("p", {
935
+ }), !r && !!m?.slug && /* @__PURE__ */ Z("p", {
887
936
  className: "text-muted text-xs truncate overflow-x-hidden font-mono leading-tight",
888
- children: [l, g.slug]
937
+ children: [l, m.slug]
889
938
  })]
890
939
  })]
891
940
  });
892
941
  }
893
942
  //#endregion
894
943
  //#region src/components/auth/organization/organization-row.tsx
895
- function Wt({ organization: e }) {
896
- let { authClient: t, basePaths: n, navigate: r } = p(), { localization: i, viewPaths: a, slug: o, slugPrefix: s } = m($), { mutate: c, isPending: l } = me(t, { onSuccess: () => {
944
+ function Yt({ organization: e }) {
945
+ let { authClient: t, basePaths: n, navigate: r } = h(), { localization: i, viewPaths: a, slug: o, slugPrefix: s } = g($), { mutate: c, isPending: l } = he(t, { onSuccess: () => {
897
946
  r({ to: `${n.organization}/${a.organization.settings}` });
898
947
  } });
899
948
  function u() {
900
949
  o === void 0 ? c({ organizationId: e.id }) : r({ to: `${n.organization}/${s}${e.slug}/${a.organization.settings}` });
901
950
  }
902
- return /* @__PURE__ */ X("div", {
951
+ return /* @__PURE__ */ Z("div", {
903
952
  className: "flex items-center gap-3",
904
- children: [/* @__PURE__ */ Y(Q, { organization: e }), /* @__PURE__ */ X(k, {
953
+ children: [/* @__PURE__ */ X(Q, { organization: e }), /* @__PURE__ */ Z(A, {
905
954
  className: "ml-auto shrink-0",
906
955
  variant: "outline",
907
956
  size: "sm",
908
957
  isPending: l,
909
958
  onPress: u,
910
959
  "aria-label": i.manage,
911
- children: [l ? /* @__PURE__ */ Y(V, {
960
+ children: [l ? /* @__PURE__ */ X(H, {
912
961
  color: "current",
913
962
  size: "sm"
914
- }) : /* @__PURE__ */ Y(Le, {}), i.manage]
963
+ }) : /* @__PURE__ */ X(Re, {}), i.manage]
915
964
  })]
916
965
  });
917
966
  }
918
967
  //#endregion
919
968
  //#region src/components/auth/organization/organizations-empty.tsx
920
- function Gt({ onCreatePress: e }) {
921
- let { localization: t } = m($);
922
- return /* @__PURE__ */ X(Qe, {
969
+ function Xt({ onCreatePress: e }) {
970
+ let { localization: t } = g($);
971
+ return /* @__PURE__ */ Z($e, {
923
972
  className: "flex flex-col items-center gap-4 text-center",
924
973
  children: [
925
- /* @__PURE__ */ Y("div", {
974
+ /* @__PURE__ */ X("div", {
926
975
  className: "flex size-12 items-center justify-center rounded-full bg-surface-secondary",
927
- children: /* @__PURE__ */ Y(Te, { className: "size-5" })
976
+ children: /* @__PURE__ */ X(Ee, { className: "size-5" })
928
977
  }),
929
- /* @__PURE__ */ X("div", {
978
+ /* @__PURE__ */ Z("div", {
930
979
  className: "flex flex-col gap-2",
931
- children: [/* @__PURE__ */ Y("p", {
980
+ children: [/* @__PURE__ */ X("p", {
932
981
  className: "text-sm font-semibold text-foreground",
933
982
  children: t.noOrganizations
934
- }), /* @__PURE__ */ Y("span", {
983
+ }), /* @__PURE__ */ X("span", {
935
984
  className: "text-sm text-muted",
936
985
  children: t.organizationsDescription
937
986
  })]
938
987
  }),
939
- /* @__PURE__ */ Y(k, {
988
+ /* @__PURE__ */ X(A, {
940
989
  size: "sm",
941
990
  onPress: e,
942
991
  children: t.createOrganization
@@ -946,57 +995,57 @@ function Gt({ onCreatePress: e }) {
946
995
  }
947
996
  //#endregion
948
997
  //#region src/components/auth/organization/organizations.tsx
949
- function Kt({ variant: e }) {
950
- let { authClient: t } = p(), { localization: n } = m($), [r, i] = q(!1), { data: a, isPending: o } = ce(t);
951
- return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X("div", {
998
+ function Zt({ variant: e }) {
999
+ let { authClient: t } = h(), { localization: n } = g($), [r, i] = J(!1), { data: a, isPending: o } = le(t);
1000
+ return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ Z("div", {
952
1001
  className: "flex flex-col gap-3",
953
- children: [/* @__PURE__ */ X("div", {
1002
+ children: [/* @__PURE__ */ Z("div", {
954
1003
  className: "flex items-end justify-between gap-3",
955
- children: [/* @__PURE__ */ Y("h2", {
1004
+ children: [/* @__PURE__ */ X("h2", {
956
1005
  className: "truncate text-sm font-semibold",
957
1006
  children: n.organizations
958
- }), /* @__PURE__ */ Y(k, {
1007
+ }), /* @__PURE__ */ X(A, {
959
1008
  className: "shrink-0",
960
1009
  size: "sm",
961
1010
  isDisabled: o,
962
1011
  onPress: () => i(!0),
963
1012
  children: n.createOrganization
964
1013
  })]
965
- }), /* @__PURE__ */ Y(A, {
1014
+ }), /* @__PURE__ */ X(j, {
966
1015
  variant: e,
967
- children: /* @__PURE__ */ Y(A.Content, {
1016
+ children: /* @__PURE__ */ X(j.Content, {
968
1017
  className: "gap-0",
969
- children: o ? /* @__PURE__ */ Y(Ut, {}) : a?.length ? a.map((e, t) => /* @__PURE__ */ X("div", { children: [t > 0 && /* @__PURE__ */ Y("div", { className: "-mx-4 my-4 border-b border-dashed" }), /* @__PURE__ */ Y(Wt, { organization: e })] }, e.id)) : /* @__PURE__ */ Y(Gt, { onCreatePress: () => i(!0) })
1018
+ children: o ? /* @__PURE__ */ X(Jt, {}) : a?.length ? a.map((e, t) => /* @__PURE__ */ Z("div", { children: [t > 0 && /* @__PURE__ */ X("div", { className: "-mx-4 my-4 border-b border-dashed" }), /* @__PURE__ */ X(Yt, { organization: e })] }, e.id)) : /* @__PURE__ */ X(Xt, { onCreatePress: () => i(!0) })
970
1019
  })
971
1020
  })]
972
- }), /* @__PURE__ */ Y(Vt, {
1021
+ }), /* @__PURE__ */ X(Kt, {
973
1022
  isOpen: r,
974
1023
  onOpenChange: i
975
1024
  })] });
976
1025
  }
977
1026
  //#endregion
978
1027
  //#region src/components/auth/organization/user-invitation-row.tsx
979
- function qt({ invitation: e }) {
980
- let { authClient: t } = p(), { localization: n, roles: r } = m($), { mutate: i, isPending: a } = u(t), { mutate: o, isPending: s } = de(t);
981
- return /* @__PURE__ */ X("div", {
1028
+ function Qt({ invitation: e }) {
1029
+ let { authClient: t } = h(), { localization: n, roles: r } = g($), { mutate: i, isPending: a } = f(t), { mutate: o, isPending: s } = fe(t);
1030
+ return /* @__PURE__ */ Z("div", {
982
1031
  className: "flex items-center gap-3",
983
1032
  children: [
984
- /* @__PURE__ */ Y("div", {
1033
+ /* @__PURE__ */ X("div", {
985
1034
  className: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-surface-secondary",
986
- children: /* @__PURE__ */ Y(ke, { className: "size-4.5" })
1035
+ children: /* @__PURE__ */ X(Ae, { className: "size-4.5" })
987
1036
  }),
988
- /* @__PURE__ */ X("div", {
1037
+ /* @__PURE__ */ Z("div", {
989
1038
  className: "flex flex-col",
990
- children: [/* @__PURE__ */ X("div", {
1039
+ children: [/* @__PURE__ */ Z("div", {
991
1040
  className: "flex items-center gap-1.5",
992
- children: [/* @__PURE__ */ Y("span", {
1041
+ children: [/* @__PURE__ */ X("span", {
993
1042
  className: "truncate text-sm font-medium leading-tight",
994
1043
  children: e.organizationName
995
- }), /* @__PURE__ */ Y(j, {
1044
+ }), /* @__PURE__ */ X(M, {
996
1045
  size: "sm",
997
1046
  children: r?.[e.role] ?? e.role
998
1047
  })]
999
- }), /* @__PURE__ */ Y("span", {
1048
+ }), /* @__PURE__ */ X("span", {
1000
1049
  className: "truncate text-muted text-xs",
1001
1050
  children: new Date(e.createdAt).toLocaleString(void 0, {
1002
1051
  dateStyle: "medium",
@@ -1004,19 +1053,19 @@ function qt({ invitation: e }) {
1004
1053
  })
1005
1054
  })]
1006
1055
  }),
1007
- /* @__PURE__ */ X("div", {
1056
+ /* @__PURE__ */ Z("div", {
1008
1057
  className: "ml-auto flex shrink-0 items-center gap-2",
1009
- children: [/* @__PURE__ */ X(k, {
1058
+ children: [/* @__PURE__ */ Z(A, {
1010
1059
  variant: "outline",
1011
1060
  size: "sm",
1012
1061
  isPending: a,
1013
1062
  isDisabled: s,
1014
1063
  onPress: () => i({ invitationId: e.id }),
1015
- children: [a ? /* @__PURE__ */ Y(V, {
1064
+ children: [a ? /* @__PURE__ */ X(H, {
1016
1065
  color: "current",
1017
1066
  size: "sm"
1018
- }) : /* @__PURE__ */ Y(Ee, {}), n.accept]
1019
- }), /* @__PURE__ */ Y(k, {
1067
+ }) : /* @__PURE__ */ X(De, {}), n.accept]
1068
+ }), /* @__PURE__ */ X(A, {
1020
1069
  variant: "danger-soft",
1021
1070
  size: "sm",
1022
1071
  isIconOnly: !0,
@@ -1024,10 +1073,10 @@ function qt({ invitation: e }) {
1024
1073
  isDisabled: a,
1025
1074
  onPress: () => o({ invitationId: e.id }),
1026
1075
  "aria-label": n.rejectInvitation,
1027
- children: s ? /* @__PURE__ */ Y(V, {
1076
+ children: s ? /* @__PURE__ */ X(H, {
1028
1077
  color: "current",
1029
1078
  size: "sm"
1030
- }) : /* @__PURE__ */ Y(D, {})
1079
+ }) : /* @__PURE__ */ X(O, {})
1031
1080
  })]
1032
1081
  })
1033
1082
  ]
@@ -1035,30 +1084,30 @@ function qt({ invitation: e }) {
1035
1084
  }
1036
1085
  //#endregion
1037
1086
  //#region src/components/auth/organization/user-invitation-row-skeleton.tsx
1038
- function Jt() {
1039
- return /* @__PURE__ */ X("div", {
1087
+ function $t() {
1088
+ return /* @__PURE__ */ Z("div", {
1040
1089
  className: "flex items-center gap-3",
1041
- children: [/* @__PURE__ */ Y(B, { className: "size-10 shrink-0 rounded-xl" }), /* @__PURE__ */ X("div", {
1090
+ children: [/* @__PURE__ */ X(V, { className: "size-10 shrink-0 rounded-xl" }), /* @__PURE__ */ Z("div", {
1042
1091
  className: "flex flex-col gap-1",
1043
- children: [/* @__PURE__ */ Y(B, { className: "h-4 w-40 rounded-lg" }), /* @__PURE__ */ Y(B, { className: "h-3 w-28 rounded-lg" })]
1092
+ children: [/* @__PURE__ */ X(V, { className: "h-4 w-40 rounded-lg" }), /* @__PURE__ */ X(V, { className: "h-3 w-28 rounded-lg" })]
1044
1093
  })]
1045
1094
  });
1046
1095
  }
1047
1096
  //#endregion
1048
1097
  //#region src/components/auth/organization/user-invitations-empty.tsx
1049
- function Yt() {
1050
- let { localization: e } = m($);
1051
- return /* @__PURE__ */ X(Qe, {
1098
+ function en() {
1099
+ let { localization: e } = g($);
1100
+ return /* @__PURE__ */ Z($e, {
1052
1101
  className: "flex flex-col items-center gap-4 text-center",
1053
- children: [/* @__PURE__ */ Y("div", {
1102
+ children: [/* @__PURE__ */ X("div", {
1054
1103
  className: "flex size-12 items-center justify-center rounded-full bg-surface-secondary",
1055
- children: /* @__PURE__ */ Y(He, { className: "size-5" })
1056
- }), /* @__PURE__ */ X("div", {
1104
+ children: /* @__PURE__ */ X(Ue, { className: "size-5" })
1105
+ }), /* @__PURE__ */ Z("div", {
1057
1106
  className: "flex flex-col gap-2",
1058
- children: [/* @__PURE__ */ Y("p", {
1107
+ children: [/* @__PURE__ */ X("p", {
1059
1108
  className: "text-sm font-semibold text-foreground",
1060
1109
  children: e.noInvitations
1061
- }), /* @__PURE__ */ Y("span", {
1110
+ }), /* @__PURE__ */ X("span", {
1062
1111
  className: "text-sm text-muted",
1063
1112
  children: e.userInvitationsEmptyDescription
1064
1113
  })]
@@ -1067,123 +1116,123 @@ function Yt() {
1067
1116
  }
1068
1117
  //#endregion
1069
1118
  //#region src/components/auth/organization/user-invitations.tsx
1070
- function Xt({ variant: e }) {
1071
- let { authClient: t } = p(), { localization: n } = m($), { data: r, isPending: i } = ue(t);
1072
- return /* @__PURE__ */ X("div", {
1119
+ function tn({ variant: e }) {
1120
+ let { authClient: t } = h(), { localization: n } = g($), { data: r, isPending: i } = de(t);
1121
+ return /* @__PURE__ */ Z("div", {
1073
1122
  className: "flex flex-col gap-3",
1074
- children: [/* @__PURE__ */ Y("h2", {
1123
+ children: [/* @__PURE__ */ X("h2", {
1075
1124
  className: "truncate text-sm font-semibold",
1076
1125
  children: n.invitations
1077
- }), /* @__PURE__ */ Y(A, {
1126
+ }), /* @__PURE__ */ X(j, {
1078
1127
  variant: e,
1079
- children: /* @__PURE__ */ Y(A.Content, { children: i ? /* @__PURE__ */ Y(Jt, {}) : r?.length ? r?.map((e, t) => /* @__PURE__ */ X("div", { children: [t > 0 && /* @__PURE__ */ Y("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ Y(qt, { invitation: e })] }, e.id)) : /* @__PURE__ */ Y(Yt, {}) })
1128
+ children: /* @__PURE__ */ X(j.Content, { children: i ? /* @__PURE__ */ X($t, {}) : r?.length ? r?.map((e, t) => /* @__PURE__ */ Z("div", { children: [t > 0 && /* @__PURE__ */ X("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ X(Qt, { invitation: e })] }, e.id)) : /* @__PURE__ */ X(en, {}) })
1080
1129
  })]
1081
1130
  });
1082
1131
  }
1083
1132
  //#endregion
1084
1133
  //#region src/components/auth/organization/organizations-settings.tsx
1085
- function Zt({ className: e, variant: t, ...n }) {
1086
- return /* @__PURE__ */ X("div", {
1087
- className: G("flex w-full flex-col gap-4 md:gap-6", e),
1134
+ function nn({ className: e, variant: t, ...n }) {
1135
+ return /* @__PURE__ */ Z("div", {
1136
+ className: K("flex w-full flex-col gap-4 md:gap-6", e),
1088
1137
  ...n,
1089
- children: [/* @__PURE__ */ Y(Kt, { variant: t }), /* @__PURE__ */ Y(Xt, { variant: t })]
1138
+ children: [/* @__PURE__ */ X(Zt, { variant: t }), /* @__PURE__ */ X(tn, { variant: t })]
1090
1139
  });
1091
1140
  }
1092
1141
  //#endregion
1093
1142
  //#region src/lib/auth/organization-plugin.tsx
1094
- var $ = a(pt.id, (e = {}) => {
1095
- let t = pt(e);
1143
+ var $ = s(gt.id, (e = {}) => {
1144
+ let t = gt(e);
1096
1145
  return {
1097
1146
  ...t,
1098
1147
  localization: t.localization,
1099
1148
  settingsTabs: [{
1100
1149
  view: "organizations",
1101
- label: /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(Te, { className: "text-muted" }), t.localization.organizations] }),
1102
- component: Zt
1150
+ label: /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Ee, { className: "text-muted" }), t.localization.organizations] }),
1151
+ component: nn
1103
1152
  }]
1104
1153
  };
1105
1154
  });
1106
1155
  //#endregion
1107
1156
  //#region src/components/auth/organization/change-organization-logo.tsx
1108
- function Qt({ className: e }) {
1109
- let { authClient: t } = p(), { logo: n, localization: r } = m($), { data: i, isPending: a } = d(t), { mutate: s, isPending: c } = xe(t), l = ot(null), [u, f] = q(!1), [h, g] = q(!1), _ = c || u || h;
1157
+ function rn({ className: e }) {
1158
+ let { authClient: t } = h(), { logo: n, localization: r } = g($), { data: i, isPending: a } = p(t), { mutate: o, isPending: s } = Se(t), l = st(null), [u, d] = J(!1), [f, m] = J(!1), _ = s || u || f;
1110
1159
  async function v(e) {
1111
1160
  let t = e.target.files?.[0];
1112
1161
  if (!(!t || !i)) {
1113
- e.target.value = "", f(!0);
1162
+ e.target.value = "", d(!0);
1114
1163
  try {
1115
1164
  let e = await n.resize?.(t, n.size, n.extension) || t;
1116
- s({ data: { logo: await n.upload?.(e) || await o(e) } }, {
1117
- onSuccess: () => K.success(r.logoChangedSuccess),
1118
- onSettled: () => f(!1)
1165
+ o({ data: { logo: await n.upload?.(e) || await c(e) } }, {
1166
+ onSuccess: () => q.success(r.logoChangedSuccess),
1167
+ onSettled: () => d(!1)
1119
1168
  });
1120
1169
  } catch (e) {
1121
- f(!1), e instanceof Error && K.danger(e.message);
1170
+ d(!1), e instanceof Error && q.danger(e.message);
1122
1171
  }
1123
1172
  }
1124
1173
  }
1125
1174
  async function y() {
1126
1175
  let e = i?.logo;
1127
- s({ data: { logo: "" } }, { onSuccess: async () => {
1176
+ o({ data: { logo: "" } }, { onSuccess: async () => {
1128
1177
  if (!e) {
1129
- K.success(r.logoDeletedSuccess);
1178
+ q.success(r.logoDeletedSuccess);
1130
1179
  return;
1131
1180
  }
1132
- g(!0);
1181
+ m(!0);
1133
1182
  try {
1134
- await n.delete?.(e), K.success(r.logoDeletedSuccess);
1183
+ await n.delete?.(e), q.success(r.logoDeletedSuccess);
1135
1184
  } catch (e) {
1136
- e instanceof Error && K.danger(e.message);
1185
+ e instanceof Error && q.danger(e.message);
1137
1186
  } finally {
1138
- g(!1);
1187
+ m(!1);
1139
1188
  }
1140
1189
  } });
1141
1190
  }
1142
- return n.enabled ? /* @__PURE__ */ X("div", {
1143
- className: G("flex flex-col gap-1", e),
1191
+ return n.enabled ? /* @__PURE__ */ Z("div", {
1192
+ className: K("flex flex-col gap-1", e),
1144
1193
  children: [
1145
- /* @__PURE__ */ Y(L, {
1194
+ /* @__PURE__ */ X(R, {
1146
1195
  isDisabled: !i,
1147
1196
  children: r.logo
1148
1197
  }),
1149
- /* @__PURE__ */ Y("input", {
1198
+ /* @__PURE__ */ X("input", {
1150
1199
  ref: l,
1151
1200
  type: "file",
1152
1201
  accept: "image/*",
1153
1202
  className: "hidden",
1154
1203
  onChange: v
1155
1204
  }),
1156
- /* @__PURE__ */ X("div", {
1205
+ /* @__PURE__ */ Z("div", {
1157
1206
  className: "flex items-center gap-4",
1158
- children: [/* @__PURE__ */ Y(k, {
1207
+ children: [/* @__PURE__ */ X(A, {
1159
1208
  type: "button",
1160
1209
  isIconOnly: !0,
1161
1210
  variant: "ghost",
1162
1211
  className: "p-0 h-auto w-auto rounded-full",
1163
1212
  isDisabled: !i || _,
1164
1213
  onPress: () => l.current?.click(),
1165
- children: /* @__PURE__ */ Y(Ht, {
1214
+ children: /* @__PURE__ */ X(qt, {
1166
1215
  size: "lg",
1167
1216
  isPending: a,
1168
1217
  organization: i
1169
1218
  })
1170
- }), /* @__PURE__ */ X(M, { children: [/* @__PURE__ */ X(k, {
1219
+ }), /* @__PURE__ */ Z(N, { children: [/* @__PURE__ */ Z(A, {
1171
1220
  isDisabled: !i || _,
1172
1221
  size: "sm",
1173
1222
  variant: "secondary",
1174
- children: [_ && /* @__PURE__ */ Y(V, { size: "sm" }), r.changeLogo]
1175
- }), /* @__PURE__ */ Y(M.Popover, {
1223
+ children: [_ && /* @__PURE__ */ X(H, { size: "sm" }), r.changeLogo]
1224
+ }), /* @__PURE__ */ X(N.Popover, {
1176
1225
  className: "min-w-fit",
1177
- children: /* @__PURE__ */ X(M.Menu, { children: [/* @__PURE__ */ X(M.Item, {
1226
+ children: /* @__PURE__ */ Z(N.Menu, { children: [/* @__PURE__ */ Z(N.Item, {
1178
1227
  textValue: r.uploadLogo,
1179
1228
  onAction: () => l.current?.click(),
1180
- children: [/* @__PURE__ */ Y(Ae, { className: "text-muted" }), /* @__PURE__ */ Y(L, { children: r.uploadLogo })]
1181
- }), /* @__PURE__ */ X(M.Item, {
1229
+ children: [/* @__PURE__ */ X(je, { className: "text-muted" }), /* @__PURE__ */ X(R, { children: r.uploadLogo })]
1230
+ }), /* @__PURE__ */ Z(N.Item, {
1182
1231
  textValue: r.deleteLogo,
1183
1232
  isDisabled: !i?.logo,
1184
1233
  onAction: y,
1185
1234
  variant: "danger",
1186
- children: [/* @__PURE__ */ Y(qe, { className: "text-danger" }), /* @__PURE__ */ Y(L, { children: r.deleteLogo })]
1235
+ children: [/* @__PURE__ */ X(Je, { className: "text-danger" }), /* @__PURE__ */ X(R, { children: r.deleteLogo })]
1187
1236
  })] })
1188
1237
  })] })]
1189
1238
  })
@@ -1192,9 +1241,9 @@ function Qt({ className: e }) {
1192
1241
  }
1193
1242
  //#endregion
1194
1243
  //#region src/components/auth/organization/delete-organization-dialog.tsx
1195
- function $t({ isOpen: e, onOpenChange: t, organization: n }) {
1196
- let { authClient: r, basePaths: i, localization: a, navigate: o } = p(), { localization: s, viewPaths: c } = m($), { mutate: l, isPending: u } = x(r, { onSuccess: () => {
1197
- t(!1), K.success(s.organizationDeleted), o({
1244
+ function an({ isOpen: e, onOpenChange: t, organization: n }) {
1245
+ let { authClient: r, basePaths: i, localization: a, navigate: o } = h(), { localization: s, viewPaths: c } = g($), { mutate: l, isPending: u } = C(r, { onSuccess: () => {
1246
+ t(!1), q.success(s.organizationDeleted), o({
1198
1247
  to: `${i.settings}/${c.settings.organizations}`,
1199
1248
  replace: !0
1200
1249
  });
@@ -1202,40 +1251,40 @@ function $t({ isOpen: e, onOpenChange: t, organization: n }) {
1202
1251
  function d(e) {
1203
1252
  e.preventDefault(), l({ organizationId: n.id });
1204
1253
  }
1205
- return /* @__PURE__ */ Y(O.Backdrop, {
1254
+ return /* @__PURE__ */ X(k.Backdrop, {
1206
1255
  isOpen: e,
1207
1256
  onOpenChange: t,
1208
- children: /* @__PURE__ */ Y(O.Container, { children: /* @__PURE__ */ Y(O.Dialog, { children: /* @__PURE__ */ X(P, {
1257
+ children: /* @__PURE__ */ X(k.Container, { children: /* @__PURE__ */ X(k.Dialog, { children: /* @__PURE__ */ Z(F, {
1209
1258
  onSubmit: d,
1210
1259
  children: [
1211
- /* @__PURE__ */ Y(O.CloseTrigger, {}),
1212
- /* @__PURE__ */ X(O.Header, { children: [/* @__PURE__ */ Y(O.Icon, {
1260
+ /* @__PURE__ */ X(k.CloseTrigger, {}),
1261
+ /* @__PURE__ */ Z(k.Header, { children: [/* @__PURE__ */ X(k.Icon, {
1213
1262
  status: "danger",
1214
- children: /* @__PURE__ */ Y(Je, {})
1215
- }), /* @__PURE__ */ Y(O.Heading, { children: s.deleteOrganization })] }),
1216
- /* @__PURE__ */ X(O.Body, {
1263
+ children: /* @__PURE__ */ X(Ye, {})
1264
+ }), /* @__PURE__ */ X(k.Heading, { children: s.deleteOrganization })] }),
1265
+ /* @__PURE__ */ Z(k.Body, {
1217
1266
  className: "flex flex-col gap-4 overflow-visible",
1218
- children: [/* @__PURE__ */ Y("p", {
1267
+ children: [/* @__PURE__ */ X("p", {
1219
1268
  className: "text-muted text-sm",
1220
1269
  children: s.deleteOrganizationDescription
1221
- }), /* @__PURE__ */ Y(A, {
1270
+ }), /* @__PURE__ */ X(j, {
1222
1271
  variant: "secondary",
1223
- children: /* @__PURE__ */ Y(A.Content, { children: /* @__PURE__ */ Y(Q, {
1272
+ children: /* @__PURE__ */ X(j.Content, { children: /* @__PURE__ */ X(Q, {
1224
1273
  organization: n,
1225
1274
  hideRole: !0
1226
1275
  }) })
1227
1276
  })]
1228
1277
  }),
1229
- /* @__PURE__ */ X(O.Footer, { children: [/* @__PURE__ */ Y(k, {
1278
+ /* @__PURE__ */ Z(k.Footer, { children: [/* @__PURE__ */ X(A, {
1230
1279
  slot: "close",
1231
1280
  variant: "tertiary",
1232
1281
  isDisabled: u,
1233
1282
  children: a.settings.cancel
1234
- }), /* @__PURE__ */ X(k, {
1283
+ }), /* @__PURE__ */ Z(A, {
1235
1284
  type: "submit",
1236
1285
  variant: "danger",
1237
1286
  isPending: u,
1238
- children: [u && /* @__PURE__ */ Y(V, {
1287
+ children: [u && /* @__PURE__ */ X(H, {
1239
1288
  color: "current",
1240
1289
  size: "sm"
1241
1290
  }), s.deleteOrganization]
@@ -1246,34 +1295,34 @@ function $t({ isOpen: e, onOpenChange: t, organization: n }) {
1246
1295
  }
1247
1296
  //#endregion
1248
1297
  //#region src/components/auth/organization/delete-organization-skeleton.tsx
1249
- function en() {
1250
- return /* @__PURE__ */ X("div", {
1298
+ function on() {
1299
+ return /* @__PURE__ */ Z("div", {
1251
1300
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
1252
- children: [/* @__PURE__ */ X("div", {
1301
+ children: [/* @__PURE__ */ Z("div", {
1253
1302
  className: "flex flex-col gap-1",
1254
- children: [/* @__PURE__ */ Y(B, { className: "h-3.5 w-40 rounded-lg" }), /* @__PURE__ */ Y(B, { className: "h-3 w-64 rounded-lg" })]
1255
- }), /* @__PURE__ */ Y(B, { className: "h-8 w-36 shrink-0 rounded-full" })]
1303
+ children: [/* @__PURE__ */ X(V, { className: "h-3.5 w-40 rounded-lg" }), /* @__PURE__ */ X(V, { className: "h-3 w-64 rounded-lg" })]
1304
+ }), /* @__PURE__ */ X(V, { className: "h-8 w-36 shrink-0 rounded-full" })]
1256
1305
  });
1257
1306
  }
1258
1307
  //#endregion
1259
1308
  //#region src/components/auth/organization/delete-organization.tsx
1260
- function tn() {
1261
- let { authClient: e } = p(), { localization: t } = m($), { data: n } = d(e), { data: r, isPending: i } = w(e, { permissions: { organization: ["delete"] } }), [a, o] = q(!1);
1262
- return i ? /* @__PURE__ */ Y(en, {}) : r?.success ? /* @__PURE__ */ X("div", {
1309
+ function sn() {
1310
+ let { authClient: e } = h(), { localization: t } = g($), { data: n } = p(e), { data: r, isPending: i } = T(e, { permissions: { organization: ["delete"] } }), [a, o] = J(!1);
1311
+ return i ? /* @__PURE__ */ X(on, {}) : r?.success ? /* @__PURE__ */ Z("div", {
1263
1312
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
1264
- children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("p", {
1313
+ children: [/* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X("p", {
1265
1314
  className: "text-sm font-medium leading-tight",
1266
1315
  children: t.deleteOrganization
1267
- }), /* @__PURE__ */ Y("p", {
1316
+ }), /* @__PURE__ */ X("p", {
1268
1317
  className: "text-muted mt-0.5 text-xs",
1269
1318
  children: t.deleteOrganizationDescription
1270
- })] }), /* @__PURE__ */ X(O, { children: [/* @__PURE__ */ Y(k, {
1319
+ })] }), /* @__PURE__ */ Z(k, { children: [/* @__PURE__ */ X(A, {
1271
1320
  isDisabled: !n,
1272
1321
  size: "sm",
1273
1322
  variant: "danger-soft",
1274
1323
  onPress: () => o(!0),
1275
1324
  children: t.deleteOrganization
1276
- }), n && /* @__PURE__ */ Y($t, {
1325
+ }), n && /* @__PURE__ */ X(an, {
1277
1326
  isOpen: a,
1278
1327
  onOpenChange: o,
1279
1328
  organization: n
@@ -1282,22 +1331,22 @@ function tn() {
1282
1331
  }
1283
1332
  //#endregion
1284
1333
  //#region src/components/auth/organization/invite-member-dialog.tsx
1285
- var nn = (e) => e.includes("member") ? "member" : e.at(-1) ?? "";
1286
- function rn({ isOpen: e, onOpenChange: t }) {
1287
- let { authClient: n, localization: r } = p(), { localization: i, roles: a } = m($), [o, s] = q(() => nn(Object.keys(a)));
1288
- it(() => {
1334
+ var cn = (e) => e.includes("member") ? "member" : e.at(-1) ?? "";
1335
+ function ln({ isOpen: e, onOpenChange: t }) {
1336
+ let { authClient: n, localization: r } = h(), { localization: i, roles: a } = g($), [o, s] = J(() => cn(Object.keys(a)));
1337
+ at(() => {
1289
1338
  s((e) => {
1290
1339
  let t = Object.keys(a);
1291
- return t.includes(e) ? e : nn(t);
1340
+ return t.includes(e) ? e : cn(t);
1292
1341
  });
1293
1342
  }, [a]);
1294
- let { mutate: c, isPending: l } = T(n, { onSuccess: () => {
1295
- t(!1), K.success(i.inviteMemberSuccess);
1343
+ let { mutate: c, isPending: l } = ne(n, { onSuccess: () => {
1344
+ t(!1), q.success(i.inviteMemberSuccess);
1296
1345
  } }), u = Object.keys(a).includes(o);
1297
- return /* @__PURE__ */ Y(O.Backdrop, {
1346
+ return /* @__PURE__ */ X(k.Backdrop, {
1298
1347
  isOpen: e,
1299
1348
  onOpenChange: t,
1300
- children: /* @__PURE__ */ Y(O.Container, { children: /* @__PURE__ */ Y(O.Dialog, { children: /* @__PURE__ */ X(P, {
1349
+ children: /* @__PURE__ */ X(k.Container, { children: /* @__PURE__ */ X(k.Dialog, { children: /* @__PURE__ */ Z(F, {
1301
1350
  onSubmit: (e) => {
1302
1351
  e.preventDefault(), u && c({
1303
1352
  email: new FormData(e.target).get("email").trim(),
@@ -1305,19 +1354,19 @@ function rn({ isOpen: e, onOpenChange: t }) {
1305
1354
  });
1306
1355
  },
1307
1356
  children: [
1308
- /* @__PURE__ */ Y(O.CloseTrigger, {}),
1309
- /* @__PURE__ */ X(O.Header, { children: [/* @__PURE__ */ Y(O.Icon, {
1357
+ /* @__PURE__ */ X(k.CloseTrigger, {}),
1358
+ /* @__PURE__ */ Z(k.Header, { children: [/* @__PURE__ */ X(k.Icon, {
1310
1359
  status: "default",
1311
- children: /* @__PURE__ */ Y(Ge, {})
1312
- }), /* @__PURE__ */ Y(O.Heading, { children: i.inviteMember })] }),
1313
- /* @__PURE__ */ X(O.Body, {
1360
+ children: /* @__PURE__ */ X(Ke, {})
1361
+ }), /* @__PURE__ */ X(k.Heading, { children: i.inviteMember })] }),
1362
+ /* @__PURE__ */ Z(k.Body, {
1314
1363
  className: "flex flex-col gap-4 overflow-visible",
1315
1364
  children: [
1316
- /* @__PURE__ */ Y("p", {
1365
+ /* @__PURE__ */ X("p", {
1317
1366
  className: "text-muted text-sm",
1318
1367
  children: i.inviteMemberDescription
1319
1368
  }),
1320
- /* @__PURE__ */ X(W, {
1369
+ /* @__PURE__ */ Z(G, {
1321
1370
  id: "email",
1322
1371
  name: "email",
1323
1372
  type: "email",
@@ -1327,17 +1376,17 @@ function rn({ isOpen: e, onOpenChange: t }) {
1327
1376
  if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)) return r.auth.invalidEmail;
1328
1377
  },
1329
1378
  children: [
1330
- /* @__PURE__ */ Y(L, { children: r.auth.email }),
1331
- /* @__PURE__ */ Y(F, {
1379
+ /* @__PURE__ */ X(R, { children: r.auth.email }),
1380
+ /* @__PURE__ */ X(I, {
1332
1381
  autoFocus: !0,
1333
1382
  placeholder: r.auth.email,
1334
1383
  variant: "secondary",
1335
1384
  required: !0
1336
1385
  }),
1337
- /* @__PURE__ */ Y(N, {})
1386
+ /* @__PURE__ */ X(P, {})
1338
1387
  ]
1339
1388
  }),
1340
- /* @__PURE__ */ X(nt, {
1389
+ /* @__PURE__ */ Z(rt, {
1341
1390
  name: "role",
1342
1391
  value: o,
1343
1392
  onChange: (e) => {
@@ -1347,28 +1396,28 @@ function rn({ isOpen: e, onOpenChange: t }) {
1347
1396
  variant: "secondary",
1348
1397
  fullWidth: !0,
1349
1398
  children: [
1350
- /* @__PURE__ */ Y(L, { children: i.role }),
1351
- /* @__PURE__ */ X(nt.Trigger, { children: [/* @__PURE__ */ Y(nt.Value, {}), /* @__PURE__ */ Y(nt.Indicator, {})] }),
1352
- /* @__PURE__ */ Y(nt.Popover, { children: /* @__PURE__ */ Y(et, { children: Object.entries(a).map(([e, t]) => /* @__PURE__ */ X(et.Item, {
1399
+ /* @__PURE__ */ X(R, { children: i.role }),
1400
+ /* @__PURE__ */ Z(rt.Trigger, { children: [/* @__PURE__ */ X(rt.Value, {}), /* @__PURE__ */ X(rt.Indicator, {})] }),
1401
+ /* @__PURE__ */ X(rt.Popover, { children: /* @__PURE__ */ X(tt, { children: Object.entries(a).map(([e, t]) => /* @__PURE__ */ Z(tt.Item, {
1353
1402
  id: e,
1354
1403
  textValue: t,
1355
- children: [t, /* @__PURE__ */ Y(et.ItemIndicator, {})]
1404
+ children: [t, /* @__PURE__ */ X(tt.ItemIndicator, {})]
1356
1405
  }, e)) }) }),
1357
- /* @__PURE__ */ Y(N, {})
1406
+ /* @__PURE__ */ X(P, {})
1358
1407
  ]
1359
1408
  })
1360
1409
  ]
1361
1410
  }),
1362
- /* @__PURE__ */ X(O.Footer, { children: [/* @__PURE__ */ Y(k, {
1411
+ /* @__PURE__ */ Z(k.Footer, { children: [/* @__PURE__ */ X(A, {
1363
1412
  slot: "close",
1364
1413
  variant: "tertiary",
1365
1414
  isDisabled: l,
1366
1415
  children: r.settings.cancel
1367
- }), /* @__PURE__ */ X(k, {
1416
+ }), /* @__PURE__ */ Z(A, {
1368
1417
  type: "submit",
1369
1418
  isPending: l,
1370
1419
  isDisabled: !u,
1371
- children: [l && /* @__PURE__ */ Y(V, {
1420
+ children: [l && /* @__PURE__ */ X(H, {
1372
1421
  color: "current",
1373
1422
  size: "sm"
1374
1423
  }), i.inviteMember]
@@ -1379,45 +1428,45 @@ function rn({ isOpen: e, onOpenChange: t }) {
1379
1428
  }
1380
1429
  //#endregion
1381
1430
  //#region src/components/auth/organization/leave-organization-dialog.tsx
1382
- function an({ isOpen: e, onOpenChange: t, organization: n }) {
1383
- let { authClient: r, basePaths: i, localization: a, navigate: o } = p(), { localization: s, viewPaths: c } = m($), { mutate: l, isPending: u } = ne(r, { onSuccess: () => {
1384
- t(!1), K.success(s.leftOrganization), o({
1431
+ function un({ isOpen: e, onOpenChange: t, organization: n }) {
1432
+ let { authClient: r, basePaths: i, localization: a, navigate: o } = h(), { localization: s, viewPaths: c } = g($), { mutate: l, isPending: u } = ie(r, { onSuccess: () => {
1433
+ t(!1), q.success(s.leftOrganization), o({
1385
1434
  to: `${i.settings}/${c.settings.organizations}`,
1386
1435
  replace: !0
1387
1436
  });
1388
1437
  } });
1389
- return /* @__PURE__ */ Y(O.Backdrop, {
1438
+ return /* @__PURE__ */ X(k.Backdrop, {
1390
1439
  isOpen: e,
1391
1440
  onOpenChange: t,
1392
- children: /* @__PURE__ */ Y(O.Container, { children: /* @__PURE__ */ X(O.Dialog, { children: [
1393
- /* @__PURE__ */ Y(O.CloseTrigger, {}),
1394
- /* @__PURE__ */ X(O.Header, { children: [/* @__PURE__ */ Y(O.Icon, {
1441
+ children: /* @__PURE__ */ X(k.Container, { children: /* @__PURE__ */ Z(k.Dialog, { children: [
1442
+ /* @__PURE__ */ X(k.CloseTrigger, {}),
1443
+ /* @__PURE__ */ Z(k.Header, { children: [/* @__PURE__ */ X(k.Icon, {
1395
1444
  status: "danger",
1396
- children: /* @__PURE__ */ Y(we, {})
1397
- }), /* @__PURE__ */ Y(O.Heading, { children: s.leaveOrganization })] }),
1398
- /* @__PURE__ */ X(O.Body, {
1445
+ children: /* @__PURE__ */ X(Te, {})
1446
+ }), /* @__PURE__ */ X(k.Heading, { children: s.leaveOrganization })] }),
1447
+ /* @__PURE__ */ Z(k.Body, {
1399
1448
  className: "flex flex-col gap-4 overflow-visible",
1400
- children: [/* @__PURE__ */ Y("p", {
1449
+ children: [/* @__PURE__ */ X("p", {
1401
1450
  className: "text-muted text-sm",
1402
1451
  children: s.leaveOrganizationDescription
1403
- }), /* @__PURE__ */ Y(A, {
1452
+ }), /* @__PURE__ */ X(j, {
1404
1453
  variant: "secondary",
1405
- children: /* @__PURE__ */ Y(A.Content, { children: /* @__PURE__ */ Y(Q, {
1454
+ children: /* @__PURE__ */ X(j.Content, { children: /* @__PURE__ */ X(Q, {
1406
1455
  organization: n,
1407
1456
  hideRole: !0
1408
1457
  }) })
1409
1458
  })]
1410
1459
  }),
1411
- /* @__PURE__ */ X(O.Footer, { children: [/* @__PURE__ */ Y(k, {
1460
+ /* @__PURE__ */ Z(k.Footer, { children: [/* @__PURE__ */ X(A, {
1412
1461
  slot: "close",
1413
1462
  variant: "tertiary",
1414
1463
  isDisabled: u,
1415
1464
  children: a.settings.cancel
1416
- }), /* @__PURE__ */ X(k, {
1465
+ }), /* @__PURE__ */ Z(A, {
1417
1466
  variant: "danger",
1418
1467
  isPending: u,
1419
1468
  onPress: () => l({ organizationId: n.id }),
1420
- children: [u && /* @__PURE__ */ Y(V, {
1469
+ children: [u && /* @__PURE__ */ X(H, {
1421
1470
  color: "current",
1422
1471
  size: "sm"
1423
1472
  }), s.leaveOrganization]
@@ -1427,23 +1476,23 @@ function an({ isOpen: e, onOpenChange: t, organization: n }) {
1427
1476
  }
1428
1477
  //#endregion
1429
1478
  //#region src/components/auth/organization/leave-organization.tsx
1430
- function on() {
1431
- let { authClient: e } = p(), { localization: t } = m($), { data: n } = d(e), [r, i] = q(!1);
1432
- return /* @__PURE__ */ X("div", {
1479
+ function dn() {
1480
+ let { authClient: e } = h(), { localization: t } = g($), { data: n } = p(e), [r, i] = J(!1);
1481
+ return /* @__PURE__ */ Z("div", {
1433
1482
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
1434
- children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("p", {
1483
+ children: [/* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X("p", {
1435
1484
  className: "text-sm font-medium leading-tight",
1436
1485
  children: t.leaveOrganization
1437
- }), /* @__PURE__ */ Y("p", {
1486
+ }), /* @__PURE__ */ X("p", {
1438
1487
  className: "text-muted mt-0.5 text-xs",
1439
1488
  children: t.leaveOrganizationDescription
1440
- })] }), /* @__PURE__ */ X(O, { children: [/* @__PURE__ */ Y(k, {
1489
+ })] }), /* @__PURE__ */ Z(k, { children: [/* @__PURE__ */ X(A, {
1441
1490
  isDisabled: !n,
1442
1491
  size: "sm",
1443
1492
  variant: "danger-soft",
1444
1493
  onPress: () => i(!0),
1445
1494
  children: t.leaveOrganization
1446
- }), n && /* @__PURE__ */ Y(an, {
1495
+ }), n && /* @__PURE__ */ X(un, {
1447
1496
  isOpen: r,
1448
1497
  onOpenChange: i,
1449
1498
  organization: n
@@ -1452,80 +1501,80 @@ function on() {
1452
1501
  }
1453
1502
  //#endregion
1454
1503
  //#region src/components/auth/organization/organization-invitation-row-skeleton.tsx
1455
- function sn() {
1456
- return /* @__PURE__ */ X(H.Row, { children: [
1457
- /* @__PURE__ */ Y(H.Cell, { children: /* @__PURE__ */ Y(B, { className: "h-4 w-48 rounded-lg" }) }),
1458
- /* @__PURE__ */ Y(H.Cell, { children: /* @__PURE__ */ Y(B, { className: "h-4 w-36 rounded-lg" }) }),
1459
- /* @__PURE__ */ Y(H.Cell, { children: /* @__PURE__ */ Y(B, { className: "h-4 w-16 rounded-lg" }) }),
1460
- /* @__PURE__ */ Y(H.Cell, { children: /* @__PURE__ */ Y(B, { className: "h-4 w-14 rounded-full" }) }),
1461
- /* @__PURE__ */ Y(H.Cell, {})
1504
+ function fn() {
1505
+ return /* @__PURE__ */ Z(U.Row, { children: [
1506
+ /* @__PURE__ */ X(U.Cell, { children: /* @__PURE__ */ X(V, { className: "h-4 w-48 rounded-lg" }) }),
1507
+ /* @__PURE__ */ X(U.Cell, { children: /* @__PURE__ */ X(V, { className: "h-4 w-36 rounded-lg" }) }),
1508
+ /* @__PURE__ */ X(U.Cell, { children: /* @__PURE__ */ X(V, { className: "h-4 w-16 rounded-lg" }) }),
1509
+ /* @__PURE__ */ X(U.Cell, { children: /* @__PURE__ */ X(V, { className: "h-4 w-14 rounded-full" }) }),
1510
+ /* @__PURE__ */ X(U.Cell, {})
1462
1511
  ] });
1463
1512
  }
1464
1513
  //#endregion
1465
1514
  //#region src/components/auth/organization/organization-invitation-row.tsx
1466
- function cn({ invitation: e }) {
1467
- let { authClient: t } = p(), { localization: n, roles: r } = m($), { data: i, isPending: a } = w(t, { permissions: { invitation: ["cancel"] } }), { mutate: o, isPending: s } = g(t), c = r?.[e.role] ?? e.role, l = n[e.status] ?? e.status, u = e.status === "pending" ? "warning" : e.status === "accepted" ? "success" : e.status === "rejected" ? "danger" : "default";
1468
- return a ? /* @__PURE__ */ Y(sn, {}) : /* @__PURE__ */ X(H.Row, { children: [
1469
- /* @__PURE__ */ Y(H.Cell, {
1515
+ function pn({ invitation: e }) {
1516
+ let { authClient: t } = h(), { localization: n, roles: r } = g($), { data: i, isPending: a } = T(t, { permissions: { invitation: ["cancel"] } }), { mutate: o, isPending: s } = v(t), c = r?.[e.role] ?? e.role, l = n[e.status] ?? e.status, u = e.status === "pending" ? "warning" : e.status === "accepted" ? "success" : e.status === "rejected" ? "danger" : "default";
1517
+ return a ? /* @__PURE__ */ X(fn, {}) : /* @__PURE__ */ Z(U.Row, { children: [
1518
+ /* @__PURE__ */ X(U.Cell, {
1470
1519
  className: "font-medium text-sm",
1471
1520
  children: e.email
1472
1521
  }),
1473
- /* @__PURE__ */ Y(H.Cell, {
1522
+ /* @__PURE__ */ X(U.Cell, {
1474
1523
  className: "text-muted text-xs tabular-nums whitespace-nowrap",
1475
1524
  children: new Date(e.createdAt).toLocaleString(void 0, {
1476
1525
  dateStyle: "short",
1477
1526
  timeStyle: "short"
1478
1527
  })
1479
1528
  }),
1480
- /* @__PURE__ */ Y(H.Cell, {
1529
+ /* @__PURE__ */ X(U.Cell, {
1481
1530
  className: "text-sm",
1482
1531
  children: c
1483
1532
  }),
1484
- /* @__PURE__ */ Y(H.Cell, {
1533
+ /* @__PURE__ */ X(U.Cell, {
1485
1534
  className: "text-sm",
1486
- children: /* @__PURE__ */ Y(j, {
1535
+ children: /* @__PURE__ */ X(M, {
1487
1536
  color: u,
1488
1537
  size: "sm",
1489
1538
  variant: "soft",
1490
1539
  children: l
1491
1540
  })
1492
1541
  }),
1493
- /* @__PURE__ */ Y(H.Cell, {
1542
+ /* @__PURE__ */ X(U.Cell, {
1494
1543
  className: "text-end",
1495
- children: i?.success && e.status === "pending" && /* @__PURE__ */ Y(k, {
1544
+ children: i?.success && e.status === "pending" && /* @__PURE__ */ X(A, {
1496
1545
  isIconOnly: !0,
1497
1546
  size: "sm",
1498
1547
  variant: "danger-soft",
1499
1548
  isPending: s,
1500
1549
  onPress: () => o({ invitationId: e.id }),
1501
1550
  "aria-label": n.cancelInvitation,
1502
- children: s ? /* @__PURE__ */ Y(V, {
1551
+ children: s ? /* @__PURE__ */ X(H, {
1503
1552
  color: "current",
1504
1553
  size: "sm"
1505
- }) : /* @__PURE__ */ Y(D, {})
1554
+ }) : /* @__PURE__ */ X(O, {})
1506
1555
  })
1507
1556
  })
1508
1557
  ] });
1509
1558
  }
1510
1559
  //#endregion
1511
1560
  //#region src/components/auth/organization/organization-invitations-empty.tsx
1512
- function ln({ onInvitePress: e }) {
1513
- let { localization: t } = m($);
1514
- return /* @__PURE__ */ X(Qe, {
1561
+ function mn({ onInvitePress: e }) {
1562
+ let { localization: t } = g($);
1563
+ return /* @__PURE__ */ Z($e, {
1515
1564
  className: "flex flex-col items-center gap-4 text-center p-4",
1516
1565
  children: [
1517
- /* @__PURE__ */ Y(He, { className: "size-6 text-muted" }),
1518
- /* @__PURE__ */ X("div", {
1566
+ /* @__PURE__ */ X(Ue, { className: "size-6 text-muted" }),
1567
+ /* @__PURE__ */ Z("div", {
1519
1568
  className: "flex flex-col gap-2",
1520
- children: [/* @__PURE__ */ Y("p", {
1569
+ children: [/* @__PURE__ */ X("p", {
1521
1570
  className: "text-sm font-semibold text-foreground",
1522
1571
  children: t.noInvitations
1523
- }), /* @__PURE__ */ Y("span", {
1572
+ }), /* @__PURE__ */ X("span", {
1524
1573
  className: "text-sm text-muted",
1525
1574
  children: t.organizationInvitationsEmptyDescription
1526
1575
  })]
1527
1576
  }),
1528
- /* @__PURE__ */ Y(k, {
1577
+ /* @__PURE__ */ X(A, {
1529
1578
  size: "sm",
1530
1579
  onPress: e,
1531
1580
  children: t.inviteMember
@@ -1535,187 +1584,187 @@ function ln({ onInvitePress: e }) {
1535
1584
  }
1536
1585
  //#endregion
1537
1586
  //#region src/components/auth/organization/organization-invitations.tsx
1538
- function un({ className: e, ...t }) {
1539
- let { authClient: n, localization: r } = p(), { localization: i, roles: a } = m($), { data: o, isPending: s } = oe(n), { isPending: c } = w(n, { permissions: { invitation: ["cancel"] } }), l = s || c, [u, d] = q(), [f, h] = q("all"), [g, _] = q("all"), [v, y] = q(""), b = at(() => o?.filter((e) => (f === "all" || e.role === f) && (g === "all" || e.status === g) && e.email.toLowerCase().includes(v.toLowerCase())), [
1587
+ function hn({ className: e, ...t }) {
1588
+ let { authClient: n, localization: r } = h(), { localization: i, roles: a } = g($), { data: o, isPending: s } = se(n), { isPending: c } = T(n, { permissions: { invitation: ["cancel"] } }), l = s || c, [u, d] = J(), [f, p] = J("all"), [m, _] = J("all"), [v, y] = J(""), b = ot(() => o?.filter((e) => (f === "all" || e.role === f) && (m === "all" || e.status === m) && e.email.toLowerCase().includes(v.toLowerCase())), [
1540
1589
  v,
1541
1590
  o,
1542
1591
  f,
1543
- g
1544
- ]), x = at(() => !u || !b ? b : [...b].sort((e, t) => {
1592
+ m
1593
+ ]), x = ot(() => !u || !b ? b : [...b].sort((e, t) => {
1545
1594
  let n = u.column, r = 0;
1546
1595
  return r = n === "createdAt" ? new Date(e.createdAt).getTime() - new Date(t.createdAt).getTime() : String(e[n]).localeCompare(String(t[n])), u.direction === "descending" && (r *= -1), r;
1547
- }), [u, b]), [S, C] = q(!1);
1548
- return /* @__PURE__ */ X("div", {
1549
- className: G("flex flex-col gap-3", e),
1596
+ }), [u, b]), [S, C] = J(!1);
1597
+ return /* @__PURE__ */ Z("div", {
1598
+ className: K("flex flex-col gap-3", e),
1550
1599
  ...t,
1551
1600
  children: [
1552
- /* @__PURE__ */ Y("h3", {
1601
+ /* @__PURE__ */ X("h3", {
1553
1602
  className: "truncate text-sm font-semibold",
1554
1603
  children: i.invitations
1555
1604
  }),
1556
- /* @__PURE__ */ X("div", {
1605
+ /* @__PURE__ */ Z("div", {
1557
1606
  className: "flex flex-col gap-4",
1558
1607
  children: [
1559
- /* @__PURE__ */ X("div", {
1608
+ /* @__PURE__ */ Z("div", {
1560
1609
  className: "flex items-center gap-3",
1561
1610
  children: [
1562
- /* @__PURE__ */ Y(z, {
1611
+ /* @__PURE__ */ X(B, {
1563
1612
  className: "min-w-0",
1564
1613
  "aria-label": i.search,
1565
1614
  value: v,
1566
1615
  onChange: y,
1567
1616
  isDisabled: l,
1568
- children: /* @__PURE__ */ X(z.Group, { children: [
1569
- /* @__PURE__ */ Y(z.SearchIcon, {}),
1570
- /* @__PURE__ */ Y(z.Input, {
1617
+ children: /* @__PURE__ */ Z(B.Group, { children: [
1618
+ /* @__PURE__ */ X(B.SearchIcon, {}),
1619
+ /* @__PURE__ */ X(B.Input, {
1571
1620
  placeholder: i.search,
1572
1621
  className: "sm:w-[200px]"
1573
1622
  }),
1574
- /* @__PURE__ */ Y(z.ClearButton, {})
1623
+ /* @__PURE__ */ X(B.ClearButton, {})
1575
1624
  ] })
1576
1625
  }),
1577
- /* @__PURE__ */ X(M, { children: [/* @__PURE__ */ X(k, {
1626
+ /* @__PURE__ */ Z(N, { children: [/* @__PURE__ */ Z(A, {
1578
1627
  size: "sm",
1579
1628
  variant: "secondary",
1580
1629
  isDisabled: l,
1581
- children: [/* @__PURE__ */ Y(Ie, {}), i.role]
1582
- }), /* @__PURE__ */ Y(M.Popover, { children: /* @__PURE__ */ X(M.Menu, {
1630
+ children: [/* @__PURE__ */ X(Le, {}), i.role]
1631
+ }), /* @__PURE__ */ X(N.Popover, { children: /* @__PURE__ */ Z(N.Menu, {
1583
1632
  selectionMode: "single",
1584
1633
  selectedKeys: new Set([f]),
1585
1634
  onSelectionChange: (e) => {
1586
1635
  let t = [...e][0];
1587
- h(t ?? "all");
1636
+ p(t ?? "all");
1588
1637
  },
1589
- children: [/* @__PURE__ */ X(M.Item, {
1638
+ children: [/* @__PURE__ */ Z(N.Item, {
1590
1639
  id: "all",
1591
1640
  textValue: i.all,
1592
- children: [/* @__PURE__ */ Y(L, { children: i.all }), /* @__PURE__ */ Y(M.ItemIndicator, {})]
1593
- }), Object.entries(a).map(([e, t]) => /* @__PURE__ */ X(M.Item, {
1641
+ children: [/* @__PURE__ */ X(R, { children: i.all }), /* @__PURE__ */ X(N.ItemIndicator, {})]
1642
+ }), Object.entries(a).map(([e, t]) => /* @__PURE__ */ Z(N.Item, {
1594
1643
  id: e,
1595
1644
  textValue: t,
1596
- children: [/* @__PURE__ */ Y(L, { children: t }), /* @__PURE__ */ Y(M.ItemIndicator, {})]
1645
+ children: [/* @__PURE__ */ X(R, { children: t }), /* @__PURE__ */ X(N.ItemIndicator, {})]
1597
1646
  }, e))]
1598
1647
  }) })] }),
1599
- /* @__PURE__ */ X(M, { children: [/* @__PURE__ */ X(k, {
1648
+ /* @__PURE__ */ Z(N, { children: [/* @__PURE__ */ Z(A, {
1600
1649
  size: "sm",
1601
1650
  variant: "secondary",
1602
1651
  isDisabled: l,
1603
- children: [/* @__PURE__ */ Y(Ie, {}), i.status]
1604
- }), /* @__PURE__ */ Y(M.Popover, { children: /* @__PURE__ */ X(M.Menu, {
1652
+ children: [/* @__PURE__ */ X(Le, {}), i.status]
1653
+ }), /* @__PURE__ */ X(N.Popover, { children: /* @__PURE__ */ Z(N.Menu, {
1605
1654
  selectionMode: "single",
1606
- selectedKeys: new Set([g]),
1655
+ selectedKeys: new Set([m]),
1607
1656
  onSelectionChange: (e) => {
1608
1657
  let t = [...e][0];
1609
1658
  _(t ?? "all");
1610
1659
  },
1611
- children: [/* @__PURE__ */ X(M.Item, {
1660
+ children: [/* @__PURE__ */ Z(N.Item, {
1612
1661
  id: "all",
1613
1662
  textValue: i.all,
1614
- children: [/* @__PURE__ */ Y(L, { children: i.all }), /* @__PURE__ */ Y(M.ItemIndicator, {})]
1663
+ children: [/* @__PURE__ */ X(R, { children: i.all }), /* @__PURE__ */ X(N.ItemIndicator, {})]
1615
1664
  }), [
1616
1665
  "pending",
1617
1666
  "accepted",
1618
1667
  "rejected",
1619
1668
  "canceled"
1620
- ].map((e) => /* @__PURE__ */ X(M.Item, {
1669
+ ].map((e) => /* @__PURE__ */ Z(N.Item, {
1621
1670
  id: e,
1622
1671
  textValue: i[e] ?? e,
1623
- children: [/* @__PURE__ */ Y(L, { children: i[e] ?? e }), /* @__PURE__ */ Y(M.ItemIndicator, {})]
1672
+ children: [/* @__PURE__ */ X(R, { children: i[e] ?? e }), /* @__PURE__ */ X(N.ItemIndicator, {})]
1624
1673
  }, e))]
1625
1674
  }) })] })
1626
1675
  ]
1627
1676
  }),
1628
- (f !== "all" || g !== "all") && /* @__PURE__ */ X("div", {
1677
+ (f !== "all" || m !== "all") && /* @__PURE__ */ Z("div", {
1629
1678
  className: "flex flex-wrap gap-2",
1630
- children: [f !== "all" && /* @__PURE__ */ X(j, {
1679
+ children: [f !== "all" && /* @__PURE__ */ Z(M, {
1631
1680
  size: "sm",
1632
1681
  variant: "secondary",
1633
1682
  className: "w-fit",
1634
- children: [/* @__PURE__ */ X(j.Label, { children: [
1683
+ children: [/* @__PURE__ */ Z(M.Label, { children: [
1635
1684
  i.role,
1636
1685
  ":",
1637
1686
  " ",
1638
- /* @__PURE__ */ Y("span", {
1687
+ /* @__PURE__ */ X("span", {
1639
1688
  className: "capitalize",
1640
1689
  children: a?.[f] ?? f
1641
1690
  })
1642
- ] }), /* @__PURE__ */ Y("button", {
1691
+ ] }), /* @__PURE__ */ X("button", {
1643
1692
  type: "button",
1644
1693
  "aria-label": i.clear,
1645
1694
  className: "text-muted hover:text-foreground inline-flex cursor-pointer items-center",
1646
- onClick: () => h("all"),
1647
- children: /* @__PURE__ */ Y(D, { className: "size-3" })
1695
+ onClick: () => p("all"),
1696
+ children: /* @__PURE__ */ X(O, { className: "size-3" })
1648
1697
  })]
1649
- }), g !== "all" && /* @__PURE__ */ X(j, {
1698
+ }), m !== "all" && /* @__PURE__ */ Z(M, {
1650
1699
  size: "sm",
1651
1700
  variant: "secondary",
1652
1701
  className: "w-fit",
1653
- children: [/* @__PURE__ */ X(j.Label, { children: [
1702
+ children: [/* @__PURE__ */ Z(M.Label, { children: [
1654
1703
  i.status,
1655
1704
  ":",
1656
1705
  " ",
1657
- i[g] ?? g
1658
- ] }), /* @__PURE__ */ Y("button", {
1706
+ i[m] ?? m
1707
+ ] }), /* @__PURE__ */ X("button", {
1659
1708
  type: "button",
1660
1709
  "aria-label": i.clear,
1661
1710
  className: "text-muted hover:text-foreground inline-flex cursor-pointer items-center",
1662
1711
  onClick: () => _("all"),
1663
- children: /* @__PURE__ */ Y(D, { className: "size-3" })
1712
+ children: /* @__PURE__ */ X(O, { className: "size-3" })
1664
1713
  })]
1665
1714
  })]
1666
1715
  }),
1667
- /* @__PURE__ */ Y(H, { children: /* @__PURE__ */ Y(H.ScrollContainer, { children: /* @__PURE__ */ X(H.Content, {
1716
+ /* @__PURE__ */ X(U, { children: /* @__PURE__ */ X(U.ScrollContainer, { children: /* @__PURE__ */ Z(U.Content, {
1668
1717
  "aria-label": i.invitations,
1669
1718
  sortDescriptor: u,
1670
1719
  onSortChange: (e) => {
1671
1720
  d(u?.column === e.column && e.direction === "ascending" ? void 0 : e);
1672
1721
  },
1673
- children: [/* @__PURE__ */ X(H.Header, { children: [
1674
- /* @__PURE__ */ Y(H.Column, {
1722
+ children: [/* @__PURE__ */ Z(U.Header, { children: [
1723
+ /* @__PURE__ */ X(U.Column, {
1675
1724
  allowsSorting: !0,
1676
1725
  isRowHeader: !0,
1677
1726
  id: "email",
1678
- children: ({ sortDirection: e }) => /* @__PURE__ */ Y(H.SortableColumnHeader, {
1727
+ children: ({ sortDirection: e }) => /* @__PURE__ */ X(U.SortableColumnHeader, {
1679
1728
  sortDirection: e,
1680
1729
  children: r.auth.email
1681
1730
  })
1682
1731
  }),
1683
- /* @__PURE__ */ Y(H.Column, {
1732
+ /* @__PURE__ */ X(U.Column, {
1684
1733
  allowsSorting: !0,
1685
1734
  id: "createdAt",
1686
- children: ({ sortDirection: e }) => /* @__PURE__ */ Y(H.SortableColumnHeader, {
1735
+ children: ({ sortDirection: e }) => /* @__PURE__ */ X(U.SortableColumnHeader, {
1687
1736
  sortDirection: e,
1688
1737
  children: i.invitedAt
1689
1738
  })
1690
1739
  }),
1691
- /* @__PURE__ */ Y(H.Column, {
1740
+ /* @__PURE__ */ X(U.Column, {
1692
1741
  allowsSorting: !0,
1693
1742
  id: "role",
1694
- children: ({ sortDirection: e }) => /* @__PURE__ */ Y(H.SortableColumnHeader, {
1743
+ children: ({ sortDirection: e }) => /* @__PURE__ */ X(U.SortableColumnHeader, {
1695
1744
  sortDirection: e,
1696
1745
  children: i.role
1697
1746
  })
1698
1747
  }),
1699
- /* @__PURE__ */ Y(H.Column, {
1748
+ /* @__PURE__ */ X(U.Column, {
1700
1749
  allowsSorting: !0,
1701
1750
  id: "status",
1702
- children: ({ sortDirection: e }) => /* @__PURE__ */ Y(H.SortableColumnHeader, {
1751
+ children: ({ sortDirection: e }) => /* @__PURE__ */ X(U.SortableColumnHeader, {
1703
1752
  sortDirection: e,
1704
1753
  children: i.status
1705
1754
  })
1706
1755
  }),
1707
- /* @__PURE__ */ Y(H.Column, {
1756
+ /* @__PURE__ */ X(U.Column, {
1708
1757
  className: "text-end",
1709
1758
  children: i.actions
1710
1759
  })
1711
- ] }), /* @__PURE__ */ Y(H.Body, {
1712
- renderEmptyState: () => /* @__PURE__ */ Y(ln, { onInvitePress: () => C(!0) }),
1713
- children: l ? /* @__PURE__ */ Y(sn, {}) : x?.map((e) => /* @__PURE__ */ Y(cn, { invitation: e }, e.id))
1760
+ ] }), /* @__PURE__ */ X(U.Body, {
1761
+ renderEmptyState: () => /* @__PURE__ */ X(mn, { onInvitePress: () => C(!0) }),
1762
+ children: l ? /* @__PURE__ */ X(fn, {}) : x?.map((e) => /* @__PURE__ */ X(pn, { invitation: e }, e.id))
1714
1763
  })]
1715
1764
  }) }) })
1716
1765
  ]
1717
1766
  }),
1718
- /* @__PURE__ */ Y(rn, {
1767
+ /* @__PURE__ */ X(ln, {
1719
1768
  isOpen: S,
1720
1769
  onOpenChange: C
1721
1770
  })
@@ -1724,61 +1773,61 @@ function un({ className: e, ...t }) {
1724
1773
  }
1725
1774
  //#endregion
1726
1775
  //#region src/components/auth/organization/organization-member-row-skeleton.tsx
1727
- function dn() {
1728
- return /* @__PURE__ */ X(H.Row, { children: [
1729
- /* @__PURE__ */ Y(H.Cell, { children: /* @__PURE__ */ Y(n, { isPending: !0 }) }),
1730
- /* @__PURE__ */ Y(H.Cell, { children: /* @__PURE__ */ Y(B, { className: "h-4 w-18 rounded-lg" }) }),
1731
- /* @__PURE__ */ Y(H.Cell, {
1776
+ function gn() {
1777
+ return /* @__PURE__ */ Z(U.Row, { children: [
1778
+ /* @__PURE__ */ X(U.Cell, { children: /* @__PURE__ */ X(i, { isPending: !0 }) }),
1779
+ /* @__PURE__ */ X(U.Cell, { children: /* @__PURE__ */ X(V, { className: "h-4 w-18 rounded-lg" }) }),
1780
+ /* @__PURE__ */ X(U.Cell, {
1732
1781
  className: "flex justify-end",
1733
- children: /* @__PURE__ */ Y(B, { className: "size-8 rounded-full" })
1782
+ children: /* @__PURE__ */ X(V, { className: "size-8 rounded-full" })
1734
1783
  })
1735
1784
  ] });
1736
1785
  }
1737
1786
  //#endregion
1738
1787
  //#region src/components/auth/organization/remove-member-dialog.tsx
1739
- function fn({ isOpen: e, onOpenChange: t, member: r }) {
1740
- let { authClient: i, localization: a } = p(), { localization: o, roles: s } = m($), { mutate: c, isPending: l } = fe(i, { onSuccess: () => {
1741
- t(!1), K.success(o.memberRemoved);
1788
+ function _n({ isOpen: e, onOpenChange: t, member: n }) {
1789
+ let { authClient: r, localization: a } = h(), { localization: o, roles: s } = g($), { mutate: c, isPending: l } = pe(r, { onSuccess: () => {
1790
+ t(!1), q.success(o.memberRemoved);
1742
1791
  } });
1743
- return /* @__PURE__ */ Y(O.Backdrop, {
1792
+ return /* @__PURE__ */ X(k.Backdrop, {
1744
1793
  isOpen: e,
1745
1794
  onOpenChange: t,
1746
- children: /* @__PURE__ */ Y(O.Container, { children: /* @__PURE__ */ X(O.Dialog, { children: [
1747
- /* @__PURE__ */ Y(O.CloseTrigger, {}),
1748
- /* @__PURE__ */ X(O.Header, { children: [/* @__PURE__ */ Y(O.Icon, {
1795
+ children: /* @__PURE__ */ X(k.Container, { children: /* @__PURE__ */ Z(k.Dialog, { children: [
1796
+ /* @__PURE__ */ X(k.CloseTrigger, {}),
1797
+ /* @__PURE__ */ Z(k.Header, { children: [/* @__PURE__ */ X(k.Icon, {
1749
1798
  status: "danger",
1750
- children: /* @__PURE__ */ Y(qe, {})
1751
- }), /* @__PURE__ */ Y(O.Heading, { children: o.removeMember })] }),
1752
- /* @__PURE__ */ X(O.Body, {
1799
+ children: /* @__PURE__ */ X(Je, {})
1800
+ }), /* @__PURE__ */ X(k.Heading, { children: o.removeMember })] }),
1801
+ /* @__PURE__ */ Z(k.Body, {
1753
1802
  className: "flex flex-col gap-4 overflow-visible",
1754
- children: [/* @__PURE__ */ Y("p", {
1803
+ children: [/* @__PURE__ */ X("p", {
1755
1804
  className: "text-muted text-sm",
1756
1805
  children: o.removeMemberWarning
1757
- }), /* @__PURE__ */ Y(A, {
1806
+ }), /* @__PURE__ */ X(j, {
1758
1807
  variant: "secondary",
1759
- children: /* @__PURE__ */ X(A.Content, {
1808
+ children: /* @__PURE__ */ Z(j.Content, {
1760
1809
  className: "justify-between flex-row items-center gap-2",
1761
- children: [/* @__PURE__ */ Y(n, { user: r.user }), /* @__PURE__ */ Y(j, {
1810
+ children: [/* @__PURE__ */ X(i, { user: n.user }), /* @__PURE__ */ X(M, {
1762
1811
  size: "sm",
1763
1812
  variant: "tertiary",
1764
- children: /* @__PURE__ */ Y(j.Label, { children: s?.[r.role] ?? r.role })
1813
+ children: /* @__PURE__ */ X(M.Label, { children: s?.[n.role] ?? n.role })
1765
1814
  })]
1766
1815
  })
1767
1816
  })]
1768
1817
  }),
1769
- /* @__PURE__ */ X(O.Footer, { children: [/* @__PURE__ */ Y(k, {
1818
+ /* @__PURE__ */ Z(k.Footer, { children: [/* @__PURE__ */ X(A, {
1770
1819
  slot: "close",
1771
1820
  variant: "tertiary",
1772
1821
  isDisabled: l,
1773
1822
  children: a.settings.cancel
1774
- }), /* @__PURE__ */ X(k, {
1823
+ }), /* @__PURE__ */ Z(A, {
1775
1824
  variant: "danger",
1776
1825
  isPending: l,
1777
1826
  onPress: () => c({
1778
- memberIdOrEmail: r.id,
1779
- organizationId: r.organizationId
1827
+ memberIdOrEmail: n.id,
1828
+ organizationId: n.organizationId
1780
1829
  }),
1781
- children: [l && /* @__PURE__ */ Y(V, {
1830
+ children: [l && /* @__PURE__ */ X(H, {
1782
1831
  color: "current",
1783
1832
  size: "sm"
1784
1833
  }), o.removeMember]
@@ -1788,54 +1837,54 @@ function fn({ isOpen: e, onOpenChange: t, member: r }) {
1788
1837
  }
1789
1838
  //#endregion
1790
1839
  //#region src/components/auth/organization/organization-member-row.tsx
1791
- function pn({ member: e, isOwner: t, organization: r }) {
1792
- let { authClient: i } = p(), { localization: a, roles: o } = m($), { data: s } = E(i), { data: c, isPending: l } = w(i, { permissions: { member: ["update"] } }), { data: u, isPending: d } = w(i, { permissions: { member: ["delete"] } }), f = l || d, { mutate: h, isPending: g } = be(i, { onSuccess: () => K.success(a.memberRoleUpdated) }), _ = o?.[e.role] ?? e.role, v = Object.entries(o).filter(([e]) => t || e !== "owner"), y = s?.user.id === e.userId, [b, x] = q(!1), [S, C] = q(!1);
1793
- return f ? /* @__PURE__ */ Y(dn, {}) : /* @__PURE__ */ X(H.Row, { children: [
1794
- /* @__PURE__ */ Y(H.Cell, { children: /* @__PURE__ */ Y(n, { user: e.user }) }),
1795
- /* @__PURE__ */ Y(H.Cell, { children: _ }),
1796
- /* @__PURE__ */ X(H.Cell, { children: [/* @__PURE__ */ X("div", {
1840
+ function vn({ member: e, isOwner: t, organization: n }) {
1841
+ let { authClient: r } = h(), { localization: a, roles: o } = g($), { data: s } = D(r), { data: c, isPending: l } = T(r, { permissions: { member: ["update"] } }), { data: u, isPending: d } = T(r, { permissions: { member: ["delete"] } }), f = l || d, { mutate: p, isPending: m } = xe(r, { onSuccess: () => q.success(a.memberRoleUpdated) }), _ = o?.[e.role] ?? e.role, v = Object.entries(o).filter(([e]) => t || e !== "owner"), y = s?.user.id === e.userId, [b, x] = J(!1), [S, C] = J(!1);
1842
+ return f ? /* @__PURE__ */ X(gn, {}) : /* @__PURE__ */ Z(U.Row, { children: [
1843
+ /* @__PURE__ */ X(U.Cell, { children: /* @__PURE__ */ X(i, { user: e.user }) }),
1844
+ /* @__PURE__ */ X(U.Cell, { children: _ }),
1845
+ /* @__PURE__ */ Z(U.Cell, { children: [/* @__PURE__ */ Z("div", {
1797
1846
  className: "flex items-center justify-end gap-1",
1798
- children: [c?.success && /* @__PURE__ */ X(M, { children: [/* @__PURE__ */ Y(k, {
1847
+ children: [c?.success && /* @__PURE__ */ Z(N, { children: [/* @__PURE__ */ X(A, {
1799
1848
  isIconOnly: !0,
1800
1849
  size: "sm",
1801
1850
  variant: "tertiary",
1802
- isDisabled: g,
1851
+ isDisabled: m,
1803
1852
  "aria-label": a.changeMemberRole,
1804
- children: g ? /* @__PURE__ */ Y(V, {
1853
+ children: m ? /* @__PURE__ */ X(H, {
1805
1854
  color: "current",
1806
1855
  size: "sm"
1807
- }) : /* @__PURE__ */ Y(Ue, {})
1808
- }), /* @__PURE__ */ Y(M.Popover, {
1856
+ }) : /* @__PURE__ */ X(We, {})
1857
+ }), /* @__PURE__ */ X(N.Popover, {
1809
1858
  className: "min-w-fit",
1810
- children: /* @__PURE__ */ Y(M.Menu, { children: v.map(([t, n]) => /* @__PURE__ */ Y(M.Item, {
1859
+ children: /* @__PURE__ */ X(N.Menu, { children: v.map(([t, n]) => /* @__PURE__ */ X(N.Item, {
1811
1860
  textValue: n,
1812
1861
  isDisabled: e.role === t,
1813
- onAction: () => h({
1862
+ onAction: () => p({
1814
1863
  memberId: e.id,
1815
1864
  role: t
1816
1865
  }),
1817
- children: /* @__PURE__ */ Y(L, { children: n })
1866
+ children: /* @__PURE__ */ X(R, { children: n })
1818
1867
  }, t)) })
1819
- })] }), y ? /* @__PURE__ */ Y(k, {
1868
+ })] }), y ? /* @__PURE__ */ X(A, {
1820
1869
  isIconOnly: !0,
1821
1870
  size: "sm",
1822
1871
  variant: "danger-soft",
1823
1872
  "aria-label": a.leaveOrganization,
1824
1873
  onPress: () => C(!0),
1825
- children: /* @__PURE__ */ Y(we, {})
1826
- }) : u?.success && /* @__PURE__ */ Y(k, {
1874
+ children: /* @__PURE__ */ X(Te, {})
1875
+ }) : u?.success && /* @__PURE__ */ X(A, {
1827
1876
  isIconOnly: !0,
1828
1877
  size: "sm",
1829
1878
  variant: "danger-soft",
1830
1879
  "aria-label": a.removeMember,
1831
1880
  onPress: () => x(!0),
1832
- children: /* @__PURE__ */ Y(qe, {})
1881
+ children: /* @__PURE__ */ X(Je, {})
1833
1882
  })]
1834
- }), y && r ? /* @__PURE__ */ Y(an, {
1883
+ }), y && n ? /* @__PURE__ */ X(un, {
1835
1884
  isOpen: S,
1836
1885
  onOpenChange: C,
1837
- organization: r
1838
- }) : u?.success && /* @__PURE__ */ Y(fn, {
1886
+ organization: n
1887
+ }) : u?.success && /* @__PURE__ */ X(_n, {
1839
1888
  isOpen: b,
1840
1889
  onOpenChange: x,
1841
1890
  member: e
@@ -1844,123 +1893,123 @@ function pn({ member: e, isOwner: t, organization: r }) {
1844
1893
  }
1845
1894
  //#endregion
1846
1895
  //#region src/components/auth/organization/organization-members.tsx
1847
- function mn({ className: e, ...t }) {
1848
- let { authClient: n } = p(), { localization: r, roles: i } = m($), { data: a } = E(n), { data: o, isPending: s } = d(n), { data: c, isPending: l } = se(n), { isPending: u } = w(n, { permissions: { member: ["update"] } }), { isPending: f } = w(n, { permissions: { member: ["delete"] } }), h = s || l || u || f, [g, _] = q(), [v, y] = q("all"), [b, x] = q(""), S = at(() => c?.members.filter((e) => (v === "all" || e.role === v) && (e.user.name.toLowerCase().includes(b.toLowerCase()) || e.user.email.toLowerCase().includes(b.toLowerCase()))), [
1896
+ function yn({ className: e, ...t }) {
1897
+ let { authClient: n } = h(), { localization: r, roles: i } = g($), { data: a } = D(n), { data: o, isPending: s } = p(n), { data: c, isPending: l } = ce(n), { isPending: u } = T(n, { permissions: { member: ["update"] } }), { isPending: d } = T(n, { permissions: { member: ["delete"] } }), f = s || l || u || d, [m, _] = J(), [v, y] = J("all"), [b, x] = J(""), S = ot(() => c?.members.filter((e) => (v === "all" || e.role === v) && (e.user.name.toLowerCase().includes(b.toLowerCase()) || e.user.email.toLowerCase().includes(b.toLowerCase()))), [
1849
1898
  b,
1850
1899
  c?.members,
1851
1900
  v
1852
- ]), C = at(() => !g || !S ? S : [...S].sort((e, t) => {
1853
- let n = g.column, r = n === "user" ? e.user.name || e.user.email : String(e[n]), i = n === "user" ? t.user.name || t.user.email : String(t[n]), a = r.localeCompare(i);
1854
- return g.direction === "descending" && (a *= -1), a;
1855
- }), [g, S]), [ee, T] = q(!1), te = c?.members.some((e) => e.role === "owner" && e.userId === a?.user.id);
1856
- return /* @__PURE__ */ X("div", {
1857
- className: G("flex flex-col gap-3", e),
1901
+ ]), C = ot(() => !m || !S ? S : [...S].sort((e, t) => {
1902
+ let n = m.column, r = n === "user" ? e.user.name || e.user.email : String(e[n]), i = n === "user" ? t.user.name || t.user.email : String(t[n]), a = r.localeCompare(i);
1903
+ return m.direction === "descending" && (a *= -1), a;
1904
+ }), [m, S]), [w, ee] = J(!1), te = c?.members.some((e) => e.role === "owner" && e.userId === a?.user.id);
1905
+ return /* @__PURE__ */ Z("div", {
1906
+ className: K("flex flex-col gap-3", e),
1858
1907
  ...t,
1859
1908
  children: [
1860
- /* @__PURE__ */ X("div", {
1909
+ /* @__PURE__ */ Z("div", {
1861
1910
  className: "flex items-end justify-between gap-3",
1862
- children: [/* @__PURE__ */ Y("h3", {
1911
+ children: [/* @__PURE__ */ X("h3", {
1863
1912
  className: "truncate text-sm font-semibold",
1864
1913
  children: r.members
1865
- }), /* @__PURE__ */ Y(k, {
1914
+ }), /* @__PURE__ */ X(A, {
1866
1915
  className: "shrink-0",
1867
1916
  size: "sm",
1868
- isDisabled: h,
1869
- onPress: () => T(!0),
1917
+ isDisabled: f,
1918
+ onPress: () => ee(!0),
1870
1919
  children: r.inviteMember
1871
1920
  })]
1872
1921
  }),
1873
- /* @__PURE__ */ X("div", {
1922
+ /* @__PURE__ */ Z("div", {
1874
1923
  className: "flex flex-col gap-4",
1875
1924
  children: [
1876
- /* @__PURE__ */ X("div", {
1925
+ /* @__PURE__ */ Z("div", {
1877
1926
  className: "flex items-center gap-3",
1878
- children: [/* @__PURE__ */ Y(z, {
1927
+ children: [/* @__PURE__ */ X(B, {
1879
1928
  className: "min-w-0",
1880
1929
  "aria-label": r.search,
1881
1930
  value: b,
1882
1931
  onChange: x,
1883
- isDisabled: h,
1884
- children: /* @__PURE__ */ X(z.Group, { children: [
1885
- /* @__PURE__ */ Y(z.SearchIcon, {}),
1886
- /* @__PURE__ */ Y(z.Input, {
1932
+ isDisabled: f,
1933
+ children: /* @__PURE__ */ Z(B.Group, { children: [
1934
+ /* @__PURE__ */ X(B.SearchIcon, {}),
1935
+ /* @__PURE__ */ X(B.Input, {
1887
1936
  placeholder: r.search,
1888
1937
  className: "sm:w-[200px]"
1889
1938
  }),
1890
- /* @__PURE__ */ Y(z.ClearButton, {})
1939
+ /* @__PURE__ */ X(B.ClearButton, {})
1891
1940
  ] })
1892
- }), /* @__PURE__ */ X(M, { children: [/* @__PURE__ */ X(k, {
1941
+ }), /* @__PURE__ */ Z(N, { children: [/* @__PURE__ */ Z(A, {
1893
1942
  size: "sm",
1894
1943
  variant: "secondary",
1895
- isDisabled: h,
1896
- children: [/* @__PURE__ */ Y(Ie, {}), r.role]
1897
- }), /* @__PURE__ */ Y(M.Popover, { children: /* @__PURE__ */ X(M.Menu, {
1944
+ isDisabled: f,
1945
+ children: [/* @__PURE__ */ X(Le, {}), r.role]
1946
+ }), /* @__PURE__ */ X(N.Popover, { children: /* @__PURE__ */ Z(N.Menu, {
1898
1947
  selectionMode: "single",
1899
1948
  selectedKeys: new Set([v]),
1900
1949
  onSelectionChange: (e) => {
1901
1950
  let t = [...e][0];
1902
1951
  y(t ?? "all");
1903
1952
  },
1904
- children: [/* @__PURE__ */ X(M.Item, {
1953
+ children: [/* @__PURE__ */ Z(N.Item, {
1905
1954
  id: "all",
1906
1955
  textValue: r.all,
1907
- children: [/* @__PURE__ */ Y(L, { children: r.all }), /* @__PURE__ */ Y(M.ItemIndicator, {})]
1908
- }), Object.entries(i).map(([e, t]) => /* @__PURE__ */ X(M.Item, {
1956
+ children: [/* @__PURE__ */ X(R, { children: r.all }), /* @__PURE__ */ X(N.ItemIndicator, {})]
1957
+ }), Object.entries(i).map(([e, t]) => /* @__PURE__ */ Z(N.Item, {
1909
1958
  id: e,
1910
1959
  textValue: t,
1911
- children: [/* @__PURE__ */ Y(L, { children: t }), /* @__PURE__ */ Y(M.ItemIndicator, {})]
1960
+ children: [/* @__PURE__ */ X(R, { children: t }), /* @__PURE__ */ X(N.ItemIndicator, {})]
1912
1961
  }, e))]
1913
1962
  }) })] })]
1914
1963
  }),
1915
- v !== "all" && /* @__PURE__ */ X(j, {
1964
+ v !== "all" && /* @__PURE__ */ Z(M, {
1916
1965
  size: "sm",
1917
1966
  variant: "secondary",
1918
1967
  className: "w-fit",
1919
- children: [/* @__PURE__ */ X(j.Label, { children: [
1968
+ children: [/* @__PURE__ */ Z(M.Label, { children: [
1920
1969
  r.role,
1921
1970
  ":",
1922
1971
  " ",
1923
- /* @__PURE__ */ Y("span", {
1972
+ /* @__PURE__ */ X("span", {
1924
1973
  className: "capitalize",
1925
1974
  children: i?.[v] ?? v
1926
1975
  })
1927
- ] }), /* @__PURE__ */ Y("button", {
1976
+ ] }), /* @__PURE__ */ X("button", {
1928
1977
  type: "button",
1929
1978
  "aria-label": r.clear,
1930
1979
  className: "text-muted hover:text-foreground inline-flex cursor-pointer items-center",
1931
1980
  onClick: () => y("all"),
1932
- children: /* @__PURE__ */ Y(D, { className: "size-3" })
1981
+ children: /* @__PURE__ */ X(O, { className: "size-3" })
1933
1982
  })]
1934
1983
  }),
1935
- /* @__PURE__ */ Y(H, { children: /* @__PURE__ */ Y(H.ScrollContainer, { children: /* @__PURE__ */ X(H.Content, {
1984
+ /* @__PURE__ */ X(U, { children: /* @__PURE__ */ X(U.ScrollContainer, { children: /* @__PURE__ */ Z(U.Content, {
1936
1985
  "aria-label": r.members,
1937
- sortDescriptor: g,
1986
+ sortDescriptor: m,
1938
1987
  onSortChange: (e) => {
1939
- _(g?.column === e.column && e.direction === "ascending" ? void 0 : e);
1988
+ _(m?.column === e.column && e.direction === "ascending" ? void 0 : e);
1940
1989
  },
1941
- children: [/* @__PURE__ */ X(H.Header, { children: [
1942
- /* @__PURE__ */ Y(H.Column, {
1990
+ children: [/* @__PURE__ */ Z(U.Header, { children: [
1991
+ /* @__PURE__ */ X(U.Column, {
1943
1992
  allowsSorting: !0,
1944
1993
  isRowHeader: !0,
1945
1994
  id: "user",
1946
- children: ({ sortDirection: e }) => /* @__PURE__ */ Y(H.SortableColumnHeader, {
1995
+ children: ({ sortDirection: e }) => /* @__PURE__ */ X(U.SortableColumnHeader, {
1947
1996
  sortDirection: e,
1948
1997
  children: r.member
1949
1998
  })
1950
1999
  }),
1951
- /* @__PURE__ */ Y(H.Column, {
2000
+ /* @__PURE__ */ X(U.Column, {
1952
2001
  allowsSorting: !0,
1953
2002
  id: "role",
1954
- children: ({ sortDirection: e }) => /* @__PURE__ */ Y(H.SortableColumnHeader, {
2003
+ children: ({ sortDirection: e }) => /* @__PURE__ */ X(U.SortableColumnHeader, {
1955
2004
  sortDirection: e,
1956
2005
  children: r.role
1957
2006
  })
1958
2007
  }),
1959
- /* @__PURE__ */ Y(H.Column, {
2008
+ /* @__PURE__ */ X(U.Column, {
1960
2009
  className: "text-end",
1961
2010
  children: r.actions
1962
2011
  })
1963
- ] }), /* @__PURE__ */ Y(H.Body, { children: h ? /* @__PURE__ */ Y(dn, {}) : !!o && C?.map((e) => /* @__PURE__ */ Y(pn, {
2012
+ ] }), /* @__PURE__ */ X(U.Body, { children: f ? /* @__PURE__ */ X(gn, {}) : !!o && C?.map((e) => /* @__PURE__ */ X(vn, {
1964
2013
  member: e,
1965
2014
  isOwner: te,
1966
2015
  organization: o
@@ -1968,101 +2017,101 @@ function mn({ className: e, ...t }) {
1968
2017
  }) }) })
1969
2018
  ]
1970
2019
  }),
1971
- /* @__PURE__ */ Y(rn, {
1972
- isOpen: ee,
1973
- onOpenChange: T
2020
+ /* @__PURE__ */ X(ln, {
2021
+ isOpen: w,
2022
+ onOpenChange: ee
1974
2023
  })
1975
2024
  ]
1976
2025
  });
1977
2026
  }
1978
2027
  //#endregion
1979
2028
  //#region src/components/auth/organization/organization-people.tsx
1980
- function hn({ className: e, ...t }) {
1981
- return /* @__PURE__ */ X("div", {
1982
- className: G("flex flex-col gap-4 md:gap-6", e),
2029
+ function bn({ className: e, ...t }) {
2030
+ return /* @__PURE__ */ Z("div", {
2031
+ className: K("flex flex-col gap-4 md:gap-6", e),
1983
2032
  ...t,
1984
- children: [/* @__PURE__ */ Y(mn, {}), /* @__PURE__ */ Y(un, {})]
2033
+ children: [/* @__PURE__ */ X(yn, {}), /* @__PURE__ */ X(hn, {})]
1985
2034
  });
1986
2035
  }
1987
2036
  //#endregion
1988
2037
  //#region src/components/auth/organization/organization-danger-zone.tsx
1989
- function gn({ className: e, variant: t, ...n }) {
1990
- let { authClient: r, localization: i } = p(), { data: a, isPending: o } = w(r, { permissions: { organization: ["delete"] } }), s = !!a?.success;
1991
- return /* @__PURE__ */ X("div", {
1992
- className: G("flex w-full flex-col", e),
2038
+ function xn({ className: e, variant: t, ...n }) {
2039
+ let { authClient: r, localization: i } = h(), { data: a, isPending: o } = T(r, { permissions: { organization: ["delete"] } }), s = !!a?.success;
2040
+ return /* @__PURE__ */ Z("div", {
2041
+ className: K("flex w-full flex-col", e),
1993
2042
  ...n,
1994
- children: [/* @__PURE__ */ Y("h2", {
1995
- className: G("mb-3 text-sm font-semibold text-danger"),
2043
+ children: [/* @__PURE__ */ X("h2", {
2044
+ className: K("mb-3 text-sm font-semibold text-danger"),
1996
2045
  children: i.settings.dangerZone
1997
- }), /* @__PURE__ */ Y(A, {
2046
+ }), /* @__PURE__ */ X(j, {
1998
2047
  variant: t,
1999
- children: /* @__PURE__ */ Y(A.Content, {
2048
+ children: /* @__PURE__ */ X(j.Content, {
2000
2049
  className: "gap-0",
2001
- children: o ? /* @__PURE__ */ Y(en, {}) : /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(on, {}), s && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ Y(tn, {})] })] })
2050
+ children: o ? /* @__PURE__ */ X(on, {}) : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(dn, {}), s && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ X(sn, {})] })] })
2002
2051
  })
2003
2052
  })]
2004
2053
  });
2005
2054
  }
2006
2055
  //#endregion
2007
2056
  //#region src/components/auth/organization/organization-profile.tsx
2008
- function _n({ className: e, variant: t, ...n }) {
2009
- let { authClient: r, localization: i } = p(), { localization: a } = m($), { data: o } = d(r), [s, c] = q(o?.slug ?? "");
2010
- it(() => {
2057
+ function Sn({ className: e, variant: t, ...n }) {
2058
+ let { authClient: r, localization: i } = h(), { localization: a } = g($), { data: o } = p(r), [s, c] = J(o?.slug ?? "");
2059
+ at(() => {
2011
2060
  c(o?.slug ?? "");
2012
2061
  }, [o?.slug]);
2013
- let { mutate: l, isPending: u } = xe(r, { onSuccess: () => K.success(a.organizationUpdatedSuccess) });
2014
- function f(e) {
2062
+ let { mutate: l, isPending: u } = Se(r, { onSuccess: () => q.success(a.organizationUpdatedSuccess) });
2063
+ function d(e) {
2015
2064
  e.preventDefault(), o && l({ data: {
2016
2065
  name: new FormData(e.currentTarget).get("name"),
2017
2066
  slug: s
2018
2067
  } });
2019
2068
  }
2020
- let h = t === "transparent" ? "primary" : "secondary";
2021
- return /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("h2", {
2022
- className: G("mb-3 text-sm font-semibold"),
2069
+ let f = t === "transparent" ? "primary" : "secondary";
2070
+ return /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X("h2", {
2071
+ className: K("mb-3 text-sm font-semibold"),
2023
2072
  children: a.organizationProfile
2024
- }), /* @__PURE__ */ Y(A, {
2025
- className: G(e),
2073
+ }), /* @__PURE__ */ X(j, {
2074
+ className: K(e),
2026
2075
  variant: t,
2027
2076
  ...n,
2028
- children: /* @__PURE__ */ Y(A.Content, { children: /* @__PURE__ */ X(P, {
2029
- onSubmit: f,
2077
+ children: /* @__PURE__ */ X(j.Content, { children: /* @__PURE__ */ Z(F, {
2078
+ onSubmit: d,
2030
2079
  className: "flex flex-col gap-4",
2031
2080
  children: [
2032
- /* @__PURE__ */ Y(Qt, {}),
2033
- /* @__PURE__ */ X(W, {
2081
+ /* @__PURE__ */ X(rn, {}),
2082
+ /* @__PURE__ */ Z(G, {
2034
2083
  name: "name",
2035
2084
  defaultValue: o?.name,
2036
2085
  isDisabled: u || !o,
2037
2086
  children: [
2038
- /* @__PURE__ */ Y(L, { children: a.name }),
2039
- /* @__PURE__ */ Y(F, {
2040
- className: G(!o && "hidden"),
2087
+ /* @__PURE__ */ X(R, { children: a.name }),
2088
+ /* @__PURE__ */ X(I, {
2089
+ className: K(!o && "hidden"),
2041
2090
  autoComplete: "organization",
2042
2091
  placeholder: a.namePlaceholder,
2043
- variant: h
2092
+ variant: f
2044
2093
  }),
2045
- !o && /* @__PURE__ */ Y(B, { className: "h-10 w-full rounded-xl md:h-9" }),
2046
- /* @__PURE__ */ Y(N, {})
2094
+ !o && /* @__PURE__ */ X(V, { className: "h-10 w-full rounded-xl md:h-9" }),
2095
+ /* @__PURE__ */ X(P, {})
2047
2096
  ]
2048
2097
  }, `${o?.id}-${o?.name}-name`),
2049
- o ? /* @__PURE__ */ Y(Bt, {
2098
+ o ? /* @__PURE__ */ X(Gt, {
2050
2099
  value: s,
2051
2100
  onChange: c,
2052
2101
  currentSlug: o.slug,
2053
2102
  isDisabled: u,
2054
- variant: h
2055
- }) : /* @__PURE__ */ X(W, {
2103
+ variant: f
2104
+ }) : /* @__PURE__ */ Z(G, {
2056
2105
  isDisabled: !0,
2057
- children: [/* @__PURE__ */ Y(L, { children: a.slug }), /* @__PURE__ */ Y(B, { className: "h-10 w-full rounded-xl md:h-9" })]
2106
+ children: [/* @__PURE__ */ X(R, { children: a.slug }), /* @__PURE__ */ X(V, { className: "h-10 w-full rounded-xl md:h-9" })]
2058
2107
  }),
2059
- /* @__PURE__ */ X(k, {
2108
+ /* @__PURE__ */ Z(A, {
2060
2109
  type: "submit",
2061
2110
  isPending: u,
2062
2111
  isDisabled: !o,
2063
2112
  size: "sm",
2064
2113
  className: "mt-1",
2065
- children: [u && /* @__PURE__ */ Y(V, {
2114
+ children: [u && /* @__PURE__ */ X(H, {
2066
2115
  color: "current",
2067
2116
  size: "sm"
2068
2117
  }), i.settings.saveChanges]
@@ -2073,260 +2122,260 @@ function _n({ className: e, variant: t, ...n }) {
2073
2122
  }
2074
2123
  //#endregion
2075
2124
  //#region src/components/auth/organization/organization-settings.tsx
2076
- function vn({ className: e, variant: t, ...n }) {
2077
- let { plugins: r } = p();
2078
- return /* @__PURE__ */ X("div", {
2079
- className: G("flex flex-col gap-4 md:gap-6", e),
2125
+ function Cn({ className: e, variant: t, ...n }) {
2126
+ let { plugins: r } = h();
2127
+ return /* @__PURE__ */ Z("div", {
2128
+ className: K("flex flex-col gap-4 md:gap-6", e),
2080
2129
  ...n,
2081
2130
  children: [
2082
- /* @__PURE__ */ Y(_n, { variant: t }),
2083
- r.flatMap((e) => e.organizationCards?.map((n, r) => /* @__PURE__ */ Y(n, { variant: t }, `${e.id}-${r.toString()}`))),
2084
- /* @__PURE__ */ Y(gn, { variant: t })
2131
+ /* @__PURE__ */ X(Sn, { variant: t }),
2132
+ r.flatMap((e) => e.organizationCards?.map((n, r) => /* @__PURE__ */ X(n, { variant: t }, `${e.id}-${r.toString()}`))),
2133
+ /* @__PURE__ */ X(xn, { variant: t })
2085
2134
  ]
2086
2135
  });
2087
2136
  }
2088
2137
  //#endregion
2089
2138
  //#region src/components/auth/organization/organization.tsx
2090
- function yn({ className: e, hideNav: t, path: n, variant: r, view: i, ...a }) {
2139
+ function wn({ className: e, hideNav: t, path: n, variant: r, view: i, ...a }) {
2091
2140
  if (!i && !n) throw Error("[Better Auth UI] Either `view` or `path` must be provided");
2092
- let { authClient: o, basePaths: s, localization: c, navigate: l } = p();
2093
- h(o);
2094
- let { localization: u, viewPaths: f, slug: g, slugPrefix: _ } = m($), { data: v, isPending: y } = d(o);
2095
- it(() => {
2141
+ let { authClient: o, basePaths: s, localization: c, navigate: l } = h();
2142
+ _(o);
2143
+ let { localization: u, viewPaths: d, slug: f, slugPrefix: m } = g($), { data: v, isPending: y } = p(o);
2144
+ at(() => {
2096
2145
  !y && !v && l({
2097
- to: `${s.settings}/${f.settings?.organizations}`,
2146
+ to: `${s.settings}/${d.settings?.organizations}`,
2098
2147
  replace: !0
2099
2148
  });
2100
2149
  }, [
2101
2150
  s.settings,
2102
2151
  y,
2103
2152
  l,
2104
- f.settings?.organizations,
2153
+ d.settings?.organizations,
2105
2154
  v
2106
2155
  ]);
2107
- let b = at(() => i || Object.entries(f.organization).find(([, e]) => e === n)?.[0], [
2156
+ let b = ot(() => i || Object.entries(d.organization).find(([, e]) => e === n)?.[0], [
2108
2157
  i,
2109
2158
  n,
2110
- f.organization
2159
+ d.organization
2111
2160
  ]);
2112
2161
  if (!b) {
2113
- let e = Object.values(f.organization).join(", ");
2162
+ let e = Object.values(d.organization).join(", ");
2114
2163
  throw Error(`[Better Auth UI] Unknown organization path "${n}". Valid paths are: ${e}`);
2115
2164
  }
2116
- return !y && !v ? null : /* @__PURE__ */ X(U, {
2117
- className: G(e),
2165
+ return !y && !v ? null : /* @__PURE__ */ Z(W, {
2166
+ className: K(e),
2118
2167
  orientation: "horizontal",
2119
2168
  selectedKey: b,
2120
2169
  ...a,
2121
2170
  children: [
2122
- !t && /* @__PURE__ */ Y(U.ListContainer, { children: /* @__PURE__ */ X(U.List, {
2171
+ !t && /* @__PURE__ */ X(W.ListContainer, { children: /* @__PURE__ */ Z(W.List, {
2123
2172
  "aria-label": c.settings.settings,
2124
2173
  className: "max-w-fit overflow-x-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",
2125
- children: [/* @__PURE__ */ X(U.Tab, {
2174
+ children: [/* @__PURE__ */ Z(W.Tab, {
2126
2175
  id: "settings",
2127
- href: g ? `${s.organization}/${_}${g}/${f.organization.settings}` : `${s.organization}/${f.organization.settings}`,
2176
+ href: f ? `${s.organization}/${m}${f}/${d.organization.settings}` : `${s.organization}/${d.organization.settings}`,
2128
2177
  className: "gap-2",
2129
2178
  onPress: (e) => e.target.scrollIntoView({
2130
2179
  behavior: "smooth",
2131
2180
  inline: "center"
2132
2181
  }),
2133
2182
  children: [
2134
- /* @__PURE__ */ Y(Le, { className: "text-muted" }),
2183
+ /* @__PURE__ */ X(Re, { className: "text-muted" }),
2135
2184
  c.settings.settings,
2136
- /* @__PURE__ */ Y(U.Indicator, {})
2185
+ /* @__PURE__ */ X(W.Indicator, {})
2137
2186
  ]
2138
- }), /* @__PURE__ */ X(U.Tab, {
2187
+ }), /* @__PURE__ */ Z(W.Tab, {
2139
2188
  id: "people",
2140
- href: g ? `${s.organization}/${_}${g}/${f.organization.people}` : `${s.organization}/${f.organization.people}`,
2189
+ href: f ? `${s.organization}/${m}${f}/${d.organization.people}` : `${s.organization}/${d.organization.people}`,
2141
2190
  className: "gap-2",
2142
2191
  onPress: (e) => e.target.scrollIntoView({
2143
2192
  behavior: "smooth",
2144
2193
  inline: "center"
2145
2194
  }),
2146
2195
  children: [
2147
- /* @__PURE__ */ Y(We, { className: "text-muted" }),
2196
+ /* @__PURE__ */ X(Ge, { className: "text-muted" }),
2148
2197
  u.people,
2149
- /* @__PURE__ */ Y(U.Indicator, {})
2198
+ /* @__PURE__ */ X(W.Indicator, {})
2150
2199
  ]
2151
2200
  })]
2152
2201
  }) }),
2153
- /* @__PURE__ */ Y(U.Panel, {
2202
+ /* @__PURE__ */ X(W.Panel, {
2154
2203
  id: "settings",
2155
2204
  className: "px-0",
2156
- children: /* @__PURE__ */ Y(vn, { variant: r })
2205
+ children: /* @__PURE__ */ X(Cn, { variant: r })
2157
2206
  }),
2158
- /* @__PURE__ */ Y(U.Panel, {
2207
+ /* @__PURE__ */ X(W.Panel, {
2159
2208
  id: "people",
2160
2209
  className: "px-0",
2161
- children: /* @__PURE__ */ Y(hn, {})
2210
+ children: /* @__PURE__ */ X(bn, {})
2162
2211
  })
2163
2212
  ]
2164
2213
  });
2165
2214
  }
2166
2215
  //#endregion
2167
2216
  //#region src/components/auth/organization/organization-switcher.tsx
2168
- function bn({ className: e, hideCreate: t, hidePersonal: r, hideSettings: i, hideSlug: a = !0, setActive: o, placement: s, variant: c = "ghost", size: l = "md", trigger: u, ...f }) {
2169
- let { authClient: h, navigate: g, basePaths: _, localization: v, viewPaths: y } = p(), { data: b, isPending: x } = E(h), { localization: S, viewPaths: C, slug: ee, slugPrefix: w } = m($), { data: T, isPending: te } = d(h), { data: ne, isPending: re } = ce(h), { mutate: ie } = me(h), ae = x || !!b && (re || te), [oe, se] = q(!1), [le, ue] = q(!1);
2170
- function de(e) {
2171
- o ? o(e) : ee === void 0 ? ie({ organizationId: e?.id ?? null }) : g({ to: e ? `${_.organization}/${w}${e.slug}/${C.organization.settings}` : `${_.settings}/${y.settings.account}` });
2217
+ function Tn({ className: e, hideCreate: t, hidePersonal: n, hideSettings: r, hideSlug: a = !0, setActive: o, placement: s, variant: c = "ghost", size: l = "md", trigger: u, ...d }) {
2218
+ let { authClient: f, navigate: m, basePaths: _, localization: v, viewPaths: y } = h(), { data: b, isPending: x } = D(f), { localization: S, viewPaths: C, slug: w, slugPrefix: ee } = g($), { data: te, isPending: T } = p(f), { data: ne, isPending: re } = le(f), { mutate: ie } = he(f), E = x || !!b && (re || T), [ae, oe] = J(!1), [se, ce] = J(!1);
2219
+ function ue(e) {
2220
+ o ? o(e) : w === void 0 ? ie({ organizationId: e?.id ?? null }) : m({ to: e ? `${_.organization}/${ee}${e.slug}/${C.organization.settings}` : `${_.settings}/${y.settings.account}` });
2172
2221
  }
2173
- return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(M, {
2174
- isOpen: le,
2175
- onOpenChange: ue,
2176
- children: [u ? /* @__PURE__ */ Y(M.Trigger, { children: u }) : /* @__PURE__ */ X(k, {
2222
+ return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ Z(N, {
2223
+ isOpen: se,
2224
+ onOpenChange: ce,
2225
+ children: [u ? /* @__PURE__ */ X(N.Trigger, { children: u }) : /* @__PURE__ */ Z(A, {
2177
2226
  variant: c,
2178
- className: G("h-auto px-2 py-2 text-left", e),
2179
- isDisabled: !b || ae,
2227
+ className: K("h-auto px-2 py-2 text-left", e),
2228
+ isDisabled: !b || E,
2180
2229
  "aria-label": S.organization,
2181
- ...f,
2182
- children: [ae ? /* @__PURE__ */ Y(Q, {
2230
+ ...d,
2231
+ children: [E ? /* @__PURE__ */ X(Q, {
2183
2232
  size: l,
2184
2233
  isPending: !0,
2185
2234
  hideRole: !0,
2186
2235
  hideSlug: a
2187
- }) : T ? /* @__PURE__ */ Y(Q, {
2236
+ }) : te ? /* @__PURE__ */ X(Q, {
2188
2237
  size: l,
2189
2238
  hideRole: !0,
2190
2239
  hideSlug: a
2191
- }) : b && !r ? /* @__PURE__ */ Y(n, {
2240
+ }) : b && !n ? /* @__PURE__ */ X(i, {
2192
2241
  size: l,
2193
2242
  hideSubtitle: a
2194
- }) : /* @__PURE__ */ Y(Q, {
2243
+ }) : /* @__PURE__ */ X(Q, {
2195
2244
  size: l,
2196
2245
  hideRole: !0,
2197
2246
  hideSlug: a,
2198
2247
  organization: { name: S.organization }
2199
- }), /* @__PURE__ */ Y(De, { className: "size-3 shrink-0 text-muted" })]
2200
- }), /* @__PURE__ */ X(M.Popover, {
2248
+ }), /* @__PURE__ */ X(Oe, { className: "size-3 shrink-0 text-muted" })]
2249
+ }), /* @__PURE__ */ Z(N.Popover, {
2201
2250
  placement: s,
2202
2251
  className: "max-w-svw",
2203
- children: [T ? /* @__PURE__ */ X("div", {
2252
+ children: [te ? /* @__PURE__ */ Z("div", {
2204
2253
  className: "flex items-center justify-between gap-4 px-4 pt-3",
2205
- children: [/* @__PURE__ */ Y(Q, {
2254
+ children: [/* @__PURE__ */ X(Q, {
2206
2255
  hideRole: !0,
2207
2256
  hideSlug: a,
2208
- organization: T
2209
- }), !i && /* @__PURE__ */ X($e, {
2210
- href: ee ? `${_.organization}/${w}${ee}/${C.organization.settings}` : `${_.organization}/${C.organization.settings}`,
2211
- className: G(ct({
2257
+ organization: te
2258
+ }), !r && /* @__PURE__ */ Z(et, {
2259
+ href: w ? `${_.organization}/${ee}${w}/${C.organization.settings}` : `${_.organization}/${C.organization.settings}`,
2260
+ className: K(ct({
2212
2261
  variant: "outline",
2213
2262
  size: "sm"
2214
2263
  }), "shrink-0 gap-2"),
2215
- onPress: () => ue(!1),
2216
- children: [/* @__PURE__ */ Y(Le, { className: "text-muted" }), S.manage]
2264
+ onPress: () => ce(!1),
2265
+ children: [/* @__PURE__ */ X(Re, { className: "text-muted" }), S.manage]
2217
2266
  })]
2218
- }) : !ae && b?.user && !r ? /* @__PURE__ */ X("div", {
2267
+ }) : !E && b?.user && !n ? /* @__PURE__ */ Z("div", {
2219
2268
  className: "flex items-center justify-between gap-4 px-4 pt-3",
2220
- children: [/* @__PURE__ */ Y(n, { hideSubtitle: a }), !i && /* @__PURE__ */ X($e, {
2269
+ children: [/* @__PURE__ */ X(i, { hideSubtitle: a }), !r && /* @__PURE__ */ Z(et, {
2221
2270
  href: `${_.settings}/${y.settings.account}`,
2222
- className: G(ct({
2271
+ className: K(ct({
2223
2272
  variant: "outline",
2224
2273
  size: "sm"
2225
2274
  }), "shrink-0 gap-2"),
2226
- onPress: () => ue(!1),
2227
- children: [/* @__PURE__ */ Y(Le, { className: "text-muted" }), v.settings.settings]
2275
+ onPress: () => ce(!1),
2276
+ children: [/* @__PURE__ */ X(Re, { className: "text-muted" }), v.settings.settings]
2228
2277
  })]
2229
- }) : null, /* @__PURE__ */ X(M.Menu, { children: [
2230
- !!T && !r && /* @__PURE__ */ Y(M.Item, {
2278
+ }) : null, /* @__PURE__ */ Z(N.Menu, { children: [
2279
+ !!te && !n && /* @__PURE__ */ X(N.Item, {
2231
2280
  textValue: S.personalAccount,
2232
- onPress: () => de(null),
2233
- children: /* @__PURE__ */ Y(n, { hideSubtitle: a })
2281
+ onPress: () => ue(null),
2282
+ children: /* @__PURE__ */ X(i, { hideSubtitle: a })
2234
2283
  }),
2235
- ne?.filter((e) => e.id !== T?.id)?.map((e) => /* @__PURE__ */ Y(M.Item, {
2284
+ ne?.filter((e) => e.id !== te?.id)?.map((e) => /* @__PURE__ */ X(N.Item, {
2236
2285
  textValue: e.name,
2237
- onPress: () => de(e),
2238
- children: /* @__PURE__ */ Y(Q, {
2286
+ onPress: () => ue(e),
2287
+ children: /* @__PURE__ */ X(Q, {
2239
2288
  hideRole: !0,
2240
2289
  hideSlug: a,
2241
2290
  organization: e
2242
2291
  })
2243
2292
  }, e.id)),
2244
- !t && /* @__PURE__ */ X(M.Item, {
2293
+ !t && /* @__PURE__ */ Z(N.Item, {
2245
2294
  textValue: S.createOrganization,
2246
- onPress: () => se(!0),
2247
- children: [/* @__PURE__ */ Y(Oe, { className: "text-muted" }), /* @__PURE__ */ Y(L, { children: S.createOrganization })]
2295
+ onPress: () => oe(!0),
2296
+ children: [/* @__PURE__ */ X(ke, { className: "text-muted" }), /* @__PURE__ */ X(R, { children: S.createOrganization })]
2248
2297
  })
2249
2298
  ] })]
2250
2299
  })]
2251
- }), /* @__PURE__ */ Y(Vt, {
2252
- isOpen: oe,
2253
- onOpenChange: se
2300
+ }), /* @__PURE__ */ X(Kt, {
2301
+ isOpen: ae,
2302
+ onOpenChange: oe
2254
2303
  })] });
2255
2304
  }
2256
2305
  //#endregion
2257
2306
  //#region src/components/auth/passkey/passkey-button.tsx
2258
- function xn({ view: e }) {
2259
- let { authClient: t, localization: n, redirectTo: i, navigate: a } = p(), { localization: o } = m(Sn), { mutate: s, isPending: c } = ve(t, { onSuccess: () => a({ to: i }) }), l = Z({ mutationKey: r.signIn.all }) + Z({ mutationKey: r.signUp.all }) > 0;
2260
- return e === "signUp" ? null : /* @__PURE__ */ X(k, {
2307
+ function En({ view: e }) {
2308
+ let { authClient: t, localization: n, redirectTo: r, navigate: i } = h(), { localization: o } = g(Dn), { mutate: s, isPending: c } = ye(t, { onSuccess: () => i({ to: r }) }), l = lt({ mutationKey: a.signIn.all }) + lt({ mutationKey: a.signUp.all }) > 0;
2309
+ return e === "signUp" ? null : /* @__PURE__ */ Z(A, {
2261
2310
  className: "w-full",
2262
2311
  variant: "tertiary",
2263
2312
  isDisabled: l,
2264
2313
  isPending: c,
2265
2314
  onPress: () => s(),
2266
- children: [c ? /* @__PURE__ */ Y(V, {
2315
+ children: [c ? /* @__PURE__ */ X(H, {
2267
2316
  color: "current",
2268
2317
  size: "sm"
2269
- }) : /* @__PURE__ */ Y(Fe, {}), n.auth.continueWith.replace("{{provider}}", o.passkey)]
2318
+ }) : /* @__PURE__ */ X(Ie, {}), n.auth.continueWith.replace("{{provider}}", o.passkey)]
2270
2319
  });
2271
2320
  }
2272
2321
  //#endregion
2273
2322
  //#region src/lib/auth/passkey-plugin.ts
2274
- var Sn = a(mt.id, (e = {}) => ({
2275
- ...mt(e),
2276
- authButtons: [xn],
2277
- securityCards: [On]
2323
+ var Dn = s(_t.id, (e = {}) => ({
2324
+ ..._t(e),
2325
+ authButtons: [En],
2326
+ securityCards: [Nn]
2278
2327
  }));
2279
2328
  //#endregion
2280
2329
  //#region src/components/auth/passkey/add-passkey-dialog.tsx
2281
- function Cn({ isOpen: e, onOpenChange: t }) {
2282
- let { authClient: n, localization: r } = p(), { localization: i } = m(Sn), { mutate: a, isPending: o } = f(n), s = (e) => {
2330
+ function On({ isOpen: e, onOpenChange: t }) {
2331
+ let { authClient: n, localization: r } = h(), { localization: i } = g(Dn), { mutate: a, isPending: o } = m(n), s = (e) => {
2283
2332
  t(e);
2284
2333
  };
2285
- return /* @__PURE__ */ Y(O.Backdrop, {
2334
+ return /* @__PURE__ */ X(k.Backdrop, {
2286
2335
  isOpen: e,
2287
2336
  onOpenChange: s,
2288
- children: /* @__PURE__ */ Y(O.Container, { children: /* @__PURE__ */ Y(O.Dialog, { children: /* @__PURE__ */ X(P, {
2337
+ children: /* @__PURE__ */ X(k.Container, { children: /* @__PURE__ */ X(k.Dialog, { children: /* @__PURE__ */ Z(F, {
2289
2338
  onSubmit: (e) => {
2290
2339
  e.preventDefault();
2291
2340
  let t = new FormData(e.target).get("name")?.trim();
2292
2341
  a(t ? { name: t } : void 0, { onSuccess: () => s(!1) });
2293
2342
  },
2294
2343
  children: [
2295
- /* @__PURE__ */ Y(O.CloseTrigger, {}),
2296
- /* @__PURE__ */ X(O.Header, { children: [/* @__PURE__ */ Y(O.Icon, {
2344
+ /* @__PURE__ */ X(k.CloseTrigger, {}),
2345
+ /* @__PURE__ */ Z(k.Header, { children: [/* @__PURE__ */ X(k.Icon, {
2297
2346
  status: "default",
2298
- children: /* @__PURE__ */ Y(Fe, {})
2299
- }), /* @__PURE__ */ Y(O.Heading, { children: i.addPasskey })] }),
2300
- /* @__PURE__ */ X(O.Body, {
2347
+ children: /* @__PURE__ */ X(Ie, {})
2348
+ }), /* @__PURE__ */ X(k.Heading, { children: i.addPasskey })] }),
2349
+ /* @__PURE__ */ Z(k.Body, {
2301
2350
  className: "overflow-visible",
2302
- children: [/* @__PURE__ */ Y("p", {
2351
+ children: [/* @__PURE__ */ X("p", {
2303
2352
  className: "text-muted text-sm",
2304
2353
  children: i.passkeysDescription
2305
- }), /* @__PURE__ */ X(W, {
2354
+ }), /* @__PURE__ */ Z(G, {
2306
2355
  className: "mt-4",
2307
2356
  id: "name",
2308
2357
  name: "name",
2309
2358
  isDisabled: o,
2310
2359
  children: [
2311
- /* @__PURE__ */ Y(L, { children: i.name }),
2312
- /* @__PURE__ */ Y(F, {
2360
+ /* @__PURE__ */ X(R, { children: i.name }),
2361
+ /* @__PURE__ */ X(I, {
2313
2362
  autoFocus: !0,
2314
2363
  placeholder: r.settings.optional,
2315
2364
  variant: "secondary"
2316
2365
  }),
2317
- /* @__PURE__ */ Y(N, {})
2366
+ /* @__PURE__ */ X(P, {})
2318
2367
  ]
2319
2368
  })]
2320
2369
  }),
2321
- /* @__PURE__ */ X(O.Footer, { children: [/* @__PURE__ */ Y(k, {
2370
+ /* @__PURE__ */ Z(k.Footer, { children: [/* @__PURE__ */ X(A, {
2322
2371
  slot: "close",
2323
2372
  variant: "tertiary",
2324
2373
  isDisabled: o,
2325
2374
  children: r.settings.cancel
2326
- }), /* @__PURE__ */ X(k, {
2375
+ }), /* @__PURE__ */ Z(A, {
2327
2376
  type: "submit",
2328
2377
  isPending: o,
2329
- children: [o && /* @__PURE__ */ Y(V, {
2378
+ children: [o && /* @__PURE__ */ X(H, {
2330
2379
  color: "current",
2331
2380
  size: "sm"
2332
2381
  }), i.addPasskey]
@@ -2337,38 +2386,38 @@ function Cn({ isOpen: e, onOpenChange: t }) {
2337
2386
  }
2338
2387
  //#endregion
2339
2388
  //#region src/components/auth/passkey/delete-passkey-dialog.tsx
2340
- function wn({ isOpen: e, onOpenChange: t, passkey: n }) {
2341
- let { authClient: r, localization: i } = p(), { localization: a } = m(Sn), o = n.name || a.passkey, { mutate: s, isPending: c } = S(r, { onSuccess: () => t(!1) });
2342
- return /* @__PURE__ */ Y(O.Backdrop, {
2389
+ function kn({ isOpen: e, onOpenChange: t, passkey: n }) {
2390
+ let { authClient: r, localization: i } = h(), { localization: a } = g(Dn), o = n.name || a.passkey, { mutate: s, isPending: c } = w(r, { onSuccess: () => t(!1) });
2391
+ return /* @__PURE__ */ X(k.Backdrop, {
2343
2392
  isOpen: e,
2344
2393
  onOpenChange: t,
2345
- children: /* @__PURE__ */ Y(O.Container, { children: /* @__PURE__ */ X(O.Dialog, { children: [
2346
- /* @__PURE__ */ Y(O.CloseTrigger, {}),
2347
- /* @__PURE__ */ X(O.Header, { children: [/* @__PURE__ */ Y(O.Icon, {
2394
+ children: /* @__PURE__ */ X(k.Container, { children: /* @__PURE__ */ Z(k.Dialog, { children: [
2395
+ /* @__PURE__ */ X(k.CloseTrigger, {}),
2396
+ /* @__PURE__ */ Z(k.Header, { children: [/* @__PURE__ */ X(k.Icon, {
2348
2397
  status: "danger",
2349
- children: /* @__PURE__ */ Y(Fe, {})
2350
- }), /* @__PURE__ */ Y(O.Heading, { children: a.deletePasskeyTitle })] }),
2351
- /* @__PURE__ */ X(O.Body, {
2398
+ children: /* @__PURE__ */ X(Ie, {})
2399
+ }), /* @__PURE__ */ X(k.Heading, { children: a.deletePasskeyTitle })] }),
2400
+ /* @__PURE__ */ Z(k.Body, {
2352
2401
  className: "flex flex-col gap-4 overflow-visible",
2353
- children: [/* @__PURE__ */ Y("p", {
2402
+ children: [/* @__PURE__ */ X("p", {
2354
2403
  className: "text-muted text-sm",
2355
2404
  children: a.deletePasskeyWarning
2356
- }), /* @__PURE__ */ X(W, {
2405
+ }), /* @__PURE__ */ Z(G, {
2357
2406
  value: o,
2358
2407
  variant: "secondary",
2359
- children: [/* @__PURE__ */ Y(L, { children: n.name || a.passkey }), /* @__PURE__ */ Y(F, { readOnly: !0 })]
2408
+ children: [/* @__PURE__ */ X(R, { children: n.name || a.passkey }), /* @__PURE__ */ X(I, { readOnly: !0 })]
2360
2409
  })]
2361
2410
  }),
2362
- /* @__PURE__ */ X(O.Footer, { children: [/* @__PURE__ */ Y(k, {
2411
+ /* @__PURE__ */ Z(k.Footer, { children: [/* @__PURE__ */ X(A, {
2363
2412
  slot: "close",
2364
2413
  variant: "tertiary",
2365
2414
  isDisabled: c,
2366
2415
  children: i.settings.cancel
2367
- }), /* @__PURE__ */ X(k, {
2416
+ }), /* @__PURE__ */ Z(A, {
2368
2417
  variant: "danger",
2369
2418
  onPress: () => s({ id: n.id }),
2370
2419
  isPending: c,
2371
- children: [c && /* @__PURE__ */ Y(V, {
2420
+ children: [c && /* @__PURE__ */ X(H, {
2372
2421
  color: "current",
2373
2422
  size: "sm"
2374
2423
  }), a.deletePasskeyTitle]
@@ -2378,21 +2427,21 @@ function wn({ isOpen: e, onOpenChange: t, passkey: n }) {
2378
2427
  }
2379
2428
  //#endregion
2380
2429
  //#region src/components/auth/passkey/passkey.tsx
2381
- function Tn({ passkey: e }) {
2382
- let { localization: t } = p(), { localization: n } = m(Sn), [r, i] = q(!1), a = e.name || n.passkey;
2383
- return /* @__PURE__ */ X("div", {
2430
+ function An({ passkey: e }) {
2431
+ let { localization: t } = h(), { localization: n } = g(Dn), [r, i] = J(!1), a = e.name || n.passkey;
2432
+ return /* @__PURE__ */ Z("div", {
2384
2433
  className: "flex items-center gap-3",
2385
2434
  children: [
2386
- /* @__PURE__ */ Y("div", {
2435
+ /* @__PURE__ */ X("div", {
2387
2436
  className: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-surface-secondary",
2388
- children: /* @__PURE__ */ Y(Fe, { className: "size-4.5" })
2437
+ children: /* @__PURE__ */ X(Ie, { className: "size-4.5" })
2389
2438
  }),
2390
- /* @__PURE__ */ X("div", {
2439
+ /* @__PURE__ */ Z("div", {
2391
2440
  className: "flex min-w-0 flex-col",
2392
- children: [/* @__PURE__ */ Y("span", {
2441
+ children: [/* @__PURE__ */ X("span", {
2393
2442
  className: "truncate text-sm font-medium leading-tight",
2394
2443
  children: a
2395
- }), /* @__PURE__ */ Y("span", {
2444
+ }), /* @__PURE__ */ X("span", {
2396
2445
  className: "text-xs text-muted",
2397
2446
  children: new Date(e.createdAt).toLocaleString(void 0, {
2398
2447
  dateStyle: "medium",
@@ -2400,15 +2449,15 @@ function Tn({ passkey: e }) {
2400
2449
  })
2401
2450
  })]
2402
2451
  }),
2403
- /* @__PURE__ */ X(k, {
2452
+ /* @__PURE__ */ Z(A, {
2404
2453
  className: "ml-auto shrink-0",
2405
2454
  variant: "outline",
2406
2455
  size: "sm",
2407
2456
  onPress: () => i(!0),
2408
2457
  "aria-label": n.deletePasskey.replace("{{name}}", a),
2409
- children: [/* @__PURE__ */ Y(D, {}), t.settings.delete]
2458
+ children: [/* @__PURE__ */ X(O, {}), t.settings.delete]
2410
2459
  }),
2411
- /* @__PURE__ */ Y(wn, {
2460
+ /* @__PURE__ */ X(kn, {
2412
2461
  isOpen: r,
2413
2462
  onOpenChange: i,
2414
2463
  passkey: e
@@ -2418,40 +2467,40 @@ function Tn({ passkey: e }) {
2418
2467
  }
2419
2468
  //#endregion
2420
2469
  //#region src/components/auth/passkey/passkey-skeleton.tsx
2421
- function En() {
2422
- return /* @__PURE__ */ Y("div", {
2470
+ function jn() {
2471
+ return /* @__PURE__ */ X("div", {
2423
2472
  className: "flex items-center justify-between",
2424
- children: /* @__PURE__ */ X("div", {
2473
+ children: /* @__PURE__ */ Z("div", {
2425
2474
  className: "flex items-center gap-3",
2426
- children: [/* @__PURE__ */ Y(B, { className: "size-10 rounded-xl" }), /* @__PURE__ */ X("div", {
2475
+ children: [/* @__PURE__ */ X(V, { className: "size-10 rounded-xl" }), /* @__PURE__ */ Z("div", {
2427
2476
  className: "flex flex-col gap-1",
2428
- children: [/* @__PURE__ */ Y(B, { className: "h-4 w-28 rounded-lg" }), /* @__PURE__ */ Y(B, { className: "h-3 w-32 rounded-lg" })]
2477
+ children: [/* @__PURE__ */ X(V, { className: "h-4 w-28 rounded-lg" }), /* @__PURE__ */ X(V, { className: "h-3 w-32 rounded-lg" })]
2429
2478
  })]
2430
2479
  })
2431
2480
  });
2432
2481
  }
2433
2482
  //#endregion
2434
2483
  //#region src/components/auth/passkey/passkeys-empty.tsx
2435
- function Dn({ onAddPress: e }) {
2436
- let { localization: t } = m(Sn);
2437
- return /* @__PURE__ */ X("div", {
2484
+ function Mn({ onAddPress: e }) {
2485
+ let { localization: t } = g(Dn);
2486
+ return /* @__PURE__ */ Z("div", {
2438
2487
  className: "flex flex-col items-center justify-center gap-4",
2439
2488
  children: [
2440
- /* @__PURE__ */ Y("div", {
2489
+ /* @__PURE__ */ X("div", {
2441
2490
  className: "flex size-10 items-center justify-center rounded-xl bg-surface-secondary",
2442
- children: /* @__PURE__ */ Y(Fe, { className: "size-4.5" })
2491
+ children: /* @__PURE__ */ X(Ie, { className: "size-4.5" })
2443
2492
  }),
2444
- /* @__PURE__ */ X("div", {
2493
+ /* @__PURE__ */ Z("div", {
2445
2494
  className: "flex flex-col items-center justify-center gap-1 text-center",
2446
- children: [/* @__PURE__ */ Y("p", {
2495
+ children: [/* @__PURE__ */ X("p", {
2447
2496
  className: "text-sm font-semibold",
2448
2497
  children: t.noPasskeys
2449
- }), /* @__PURE__ */ Y("p", {
2498
+ }), /* @__PURE__ */ X("p", {
2450
2499
  className: "text-muted text-xs",
2451
2500
  children: t.passkeysDescription
2452
2501
  })]
2453
2502
  }),
2454
- /* @__PURE__ */ Y(k, {
2503
+ /* @__PURE__ */ X(A, {
2455
2504
  size: "sm",
2456
2505
  onPress: e,
2457
2506
  children: t.addPasskey
@@ -2461,17 +2510,17 @@ function Dn({ onAddPress: e }) {
2461
2510
  }
2462
2511
  //#endregion
2463
2512
  //#region src/components/auth/passkey/passkeys.tsx
2464
- function On({ className: e, variant: t, ...n }) {
2465
- let { authClient: r } = p(), { localization: i } = m(Sn), { data: a, isPending: o } = le(r), [s, c] = q(!1);
2466
- return /* @__PURE__ */ X("div", {
2467
- className: G("flex flex-col gap-3", e),
2513
+ function Nn({ className: e, variant: t, ...n }) {
2514
+ let { authClient: r } = h(), { localization: i } = g(Dn), { data: a, isPending: o } = ue(r), [s, c] = J(!1);
2515
+ return /* @__PURE__ */ Z("div", {
2516
+ className: K("flex flex-col gap-3", e),
2468
2517
  children: [
2469
- /* @__PURE__ */ X("div", {
2518
+ /* @__PURE__ */ Z("div", {
2470
2519
  className: "flex items-end justify-between gap-3",
2471
- children: [/* @__PURE__ */ Y("h2", {
2520
+ children: [/* @__PURE__ */ X("h2", {
2472
2521
  className: "text-sm font-semibold truncate",
2473
2522
  children: i.passkeys
2474
- }), /* @__PURE__ */ Y(k, {
2523
+ }), /* @__PURE__ */ X(A, {
2475
2524
  className: "shrink-0",
2476
2525
  size: "sm",
2477
2526
  isDisabled: o,
@@ -2479,12 +2528,12 @@ function On({ className: e, variant: t, ...n }) {
2479
2528
  children: i.addPasskey
2480
2529
  })]
2481
2530
  }),
2482
- /* @__PURE__ */ Y(A, {
2531
+ /* @__PURE__ */ X(j, {
2483
2532
  variant: t,
2484
2533
  ...n,
2485
- children: /* @__PURE__ */ Y(A.Content, { children: o ? /* @__PURE__ */ Y(En, {}) : a?.length ? a.map((e, t) => /* @__PURE__ */ X("div", { children: [t > 0 && /* @__PURE__ */ Y("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ Y(Tn, { passkey: e })] }, e.id)) : /* @__PURE__ */ Y(Dn, { onAddPress: () => c(!0) }) })
2534
+ children: /* @__PURE__ */ X(j.Content, { children: o ? /* @__PURE__ */ X(jn, {}) : a?.length ? a.map((e, t) => /* @__PURE__ */ Z("div", { children: [t > 0 && /* @__PURE__ */ X("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ X(An, { passkey: e })] }, e.id)) : /* @__PURE__ */ X(Mn, { onAddPress: () => c(!0) }) })
2486
2535
  }),
2487
- /* @__PURE__ */ Y(Cn, {
2536
+ /* @__PURE__ */ X(On, {
2488
2537
  isOpen: s,
2489
2538
  onOpenChange: c
2490
2539
  })
@@ -2493,23 +2542,23 @@ function On({ className: e, variant: t, ...n }) {
2493
2542
  }
2494
2543
  //#endregion
2495
2544
  //#region src/components/auth/theme/theme-toggle-item.tsx
2496
- var kn = "[role=\"tab\"][aria-selected=\"true\"]";
2497
- function An() {
2498
- let { useTheme: e, localization: t } = m(jn), { theme: n, setTheme: r, themes: i = [] } = e();
2499
- return /* @__PURE__ */ X(M.Item, {
2545
+ var Pn = "[role=\"tab\"][aria-selected=\"true\"]";
2546
+ function Fn() {
2547
+ let { useTheme: e, localization: t } = g(In), { theme: n, setTheme: r, themes: i = [] } = e();
2548
+ return /* @__PURE__ */ Z(N.Item, {
2500
2549
  className: "py-1 pe-2",
2501
2550
  onFocus: (e) => {
2502
- e.target === e.currentTarget && e.currentTarget.querySelector(kn)?.focus({ preventScroll: !0 });
2551
+ e.target === e.currentTarget && e.currentTarget.querySelector(Pn)?.focus({ preventScroll: !0 });
2503
2552
  },
2504
2553
  shouldCloseOnSelect: !1,
2505
2554
  children: [
2506
- /* @__PURE__ */ Y(Ve, { className: "text-muted" }),
2507
- /* @__PURE__ */ Y(L, { children: t.theme }),
2508
- /* @__PURE__ */ Y(U, {
2555
+ /* @__PURE__ */ X(He, { className: "text-muted" }),
2556
+ /* @__PURE__ */ X(R, { children: t.theme }),
2557
+ /* @__PURE__ */ X(W, {
2509
2558
  className: "ml-auto",
2510
2559
  selectedKey: n,
2511
2560
  onSelectionChange: (e) => r(e),
2512
- children: /* @__PURE__ */ Y(U.ListContainer, {
2561
+ children: /* @__PURE__ */ X(W.ListContainer, {
2513
2562
  onKeyDown: (e) => {
2514
2563
  if (e.key !== "ArrowUp" && e.key !== "ArrowDown") return;
2515
2564
  let t = e.target;
@@ -2521,24 +2570,24 @@ function An() {
2521
2570
  let o = i[e.key === "ArrowDown" ? a + 1 : a - 1];
2522
2571
  o && (e.preventDefault(), o.focus());
2523
2572
  },
2524
- children: /* @__PURE__ */ X(U.List, {
2573
+ children: /* @__PURE__ */ Z(W.List, {
2525
2574
  "aria-label": t.theme,
2526
2575
  className: "*:h-5 *:w-5 *:p-0",
2527
2576
  children: [
2528
- i.includes("system") && /* @__PURE__ */ X(U.Tab, {
2577
+ i.includes("system") && /* @__PURE__ */ Z(W.Tab, {
2529
2578
  id: "system",
2530
2579
  "aria-label": t.system,
2531
- children: [/* @__PURE__ */ Y(Me, { className: "size-3" }), /* @__PURE__ */ Y(U.Indicator, {})]
2580
+ children: [/* @__PURE__ */ X(Ne, { className: "size-3" }), /* @__PURE__ */ X(W.Indicator, {})]
2532
2581
  }),
2533
- i.includes("light") && /* @__PURE__ */ X(U.Tab, {
2582
+ i.includes("light") && /* @__PURE__ */ Z(W.Tab, {
2534
2583
  id: "light",
2535
2584
  "aria-label": t.light,
2536
- children: [/* @__PURE__ */ Y(Ke, { className: "size-3" }), /* @__PURE__ */ Y(U.Indicator, {})]
2585
+ children: [/* @__PURE__ */ X(qe, { className: "size-3" }), /* @__PURE__ */ X(W.Indicator, {})]
2537
2586
  }),
2538
- i.includes("dark") && /* @__PURE__ */ X(U.Tab, {
2587
+ i.includes("dark") && /* @__PURE__ */ Z(W.Tab, {
2539
2588
  id: "dark",
2540
2589
  "aria-label": t.dark,
2541
- children: [/* @__PURE__ */ Y(Be, { className: "size-3" }), /* @__PURE__ */ Y(U.Indicator, {})]
2590
+ children: [/* @__PURE__ */ X(Ve, { className: "size-3" }), /* @__PURE__ */ X(W.Indicator, {})]
2542
2591
  })
2543
2592
  ]
2544
2593
  })
@@ -2549,8 +2598,8 @@ function An() {
2549
2598
  }
2550
2599
  //#endregion
2551
2600
  //#region src/lib/auth/theme-plugin.ts
2552
- var jn = a(ht.id, ({ useTheme: e, ...t }) => {
2553
- let n = ht({
2601
+ var In = s(vt.id, ({ useTheme: e, ...t }) => {
2602
+ let n = vt({
2554
2603
  setTheme: () => {},
2555
2604
  ...t
2556
2605
  });
@@ -2561,69 +2610,69 @@ var jn = a(ht.id, ({ useTheme: e, ...t }) => {
2561
2610
  setTheme: n.setTheme,
2562
2611
  themes: n.themes
2563
2612
  })),
2564
- userMenuItems: [An],
2565
- accountCards: [Mn]
2613
+ userMenuItems: [Fn],
2614
+ accountCards: [Ln]
2566
2615
  };
2567
2616
  });
2568
2617
  //#endregion
2569
2618
  //#region src/components/auth/theme/appearance.tsx
2570
- function Mn({ className: e, variant: t, ...n }) {
2571
- let { useTheme: r, localization: i } = m(jn), { theme: a, setTheme: o, themes: u = [] } = r(), d = rt();
2572
- return /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("h2", {
2573
- className: G("text-sm font-semibold mb-3"),
2619
+ function Ln({ className: e, variant: t, ...n }) {
2620
+ let { useTheme: r, localization: i } = g(In), { theme: a, setTheme: o, themes: s = [] } = r(), c = it();
2621
+ return /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X("h2", {
2622
+ className: K("text-sm font-semibold mb-3"),
2574
2623
  children: i.appearance
2575
- }), /* @__PURE__ */ Y(A, {
2576
- className: G("p-4 gap-4", e),
2624
+ }), /* @__PURE__ */ X(j, {
2625
+ className: K("p-4 gap-4", e),
2577
2626
  variant: t,
2578
2627
  ...n,
2579
- children: /* @__PURE__ */ X(A.Content, { children: [/* @__PURE__ */ Y(L, { children: i.theme }), /* @__PURE__ */ Y(tt, {
2628
+ children: /* @__PURE__ */ Z(j.Content, { children: [/* @__PURE__ */ X(R, { children: i.theme }), /* @__PURE__ */ X(nt, {
2580
2629
  variant: t === "transparent" ? "secondary" : "primary",
2581
- value: d ? a : "",
2630
+ value: c ? a : "",
2582
2631
  onChange: o,
2583
- isDisabled: !d || !a,
2584
- children: /* @__PURE__ */ X("div", {
2632
+ isDisabled: !c || !a,
2633
+ children: /* @__PURE__ */ Z("div", {
2585
2634
  className: "grid gap-3 grid-cols-2 sm:grid-cols-3",
2586
2635
  children: [
2587
- u.includes("system") && /* @__PURE__ */ Y(R, {
2636
+ s.includes("system") && /* @__PURE__ */ X(z, {
2588
2637
  value: "system",
2589
- className: G("mt-0 px-4 pb-4 pt-3 rounded-xl", "border border-transparent data-[selected=true]:border-accent data-[selected=true]:bg-accent/10", "data-[focus-visible=true]:border-accent data-[focus-visible=true]:bg-accent/10", t === "transparent" ? "bg-surface" : "bg-surface-secondary"),
2590
- children: /* @__PURE__ */ X(R.Content, {
2638
+ className: K("mt-0 px-4 pb-4 pt-3 rounded-xl", "border border-transparent data-[selected=true]:border-accent data-[selected=true]:bg-accent/10", "data-[focus-visible=true]:border-accent data-[focus-visible=true]:bg-accent/10", t === "transparent" ? "bg-surface" : "bg-surface-secondary"),
2639
+ children: /* @__PURE__ */ Z(z.Content, {
2591
2640
  className: "gap-2",
2592
- children: [/* @__PURE__ */ X("div", {
2641
+ children: [/* @__PURE__ */ Z("div", {
2593
2642
  className: "flex gap-2 justify-between",
2594
- children: [/* @__PURE__ */ X("span", {
2643
+ children: [/* @__PURE__ */ Z("span", {
2595
2644
  className: "flex gap-2 items-center",
2596
- children: [/* @__PURE__ */ Y(Me, { className: "text-muted" }), i.system]
2597
- }), /* @__PURE__ */ Y(R.Control, { children: /* @__PURE__ */ Y(R.Indicator, {}) })]
2598
- }), /* @__PURE__ */ Y(l, { className: "w-full" })]
2645
+ children: [/* @__PURE__ */ X(Ne, { className: "text-muted" }), i.system]
2646
+ }), /* @__PURE__ */ X(z.Control, { children: /* @__PURE__ */ X(z.Indicator, {}) })]
2647
+ }), /* @__PURE__ */ X(d, { className: "w-full" })]
2599
2648
  })
2600
2649
  }),
2601
- u.includes("light") && /* @__PURE__ */ Y(R, {
2650
+ s.includes("light") && /* @__PURE__ */ X(z, {
2602
2651
  value: "light",
2603
- className: G("mt-0 px-4 pb-4 pt-3 rounded-xl", "border border-transparent data-[selected=true]:border-accent data-[selected=true]:bg-accent/10", "data-[focus-visible=true]:border-accent data-[focus-visible=true]:bg-accent/10", t === "transparent" ? "bg-surface" : "bg-surface-secondary"),
2604
- children: /* @__PURE__ */ X(R.Content, {
2652
+ className: K("mt-0 px-4 pb-4 pt-3 rounded-xl", "border border-transparent data-[selected=true]:border-accent data-[selected=true]:bg-accent/10", "data-[focus-visible=true]:border-accent data-[focus-visible=true]:bg-accent/10", t === "transparent" ? "bg-surface" : "bg-surface-secondary"),
2653
+ children: /* @__PURE__ */ Z(z.Content, {
2605
2654
  className: "gap-2",
2606
- children: [/* @__PURE__ */ X("div", {
2655
+ children: [/* @__PURE__ */ Z("div", {
2607
2656
  className: "flex gap-2 justify-between",
2608
- children: [/* @__PURE__ */ X("span", {
2657
+ children: [/* @__PURE__ */ Z("span", {
2609
2658
  className: "flex gap-2 items-center",
2610
- children: [/* @__PURE__ */ Y(Ke, { className: "text-muted" }), i.light]
2611
- }), /* @__PURE__ */ Y(R.Control, { children: /* @__PURE__ */ Y(R.Indicator, {}) })]
2612
- }), /* @__PURE__ */ Y(c, { className: "w-full" })]
2659
+ children: [/* @__PURE__ */ X(qe, { className: "text-muted" }), i.light]
2660
+ }), /* @__PURE__ */ X(z.Control, { children: /* @__PURE__ */ X(z.Indicator, {}) })]
2661
+ }), /* @__PURE__ */ X(u, { className: "w-full" })]
2613
2662
  })
2614
2663
  }),
2615
- u.includes("dark") && /* @__PURE__ */ Y(R, {
2664
+ s.includes("dark") && /* @__PURE__ */ X(z, {
2616
2665
  value: "dark",
2617
- className: G("mt-0 px-4 pb-4 pt-3 rounded-xl", "border border-transparent data-[selected=true]:border-accent data-[selected=true]:bg-accent/10", "data-[focus-visible=true]:border-accent data-[focus-visible=true]:bg-accent/10", t === "transparent" ? "bg-surface" : "bg-surface-secondary"),
2618
- children: /* @__PURE__ */ X(R.Content, {
2666
+ className: K("mt-0 px-4 pb-4 pt-3 rounded-xl", "border border-transparent data-[selected=true]:border-accent data-[selected=true]:bg-accent/10", "data-[focus-visible=true]:border-accent data-[focus-visible=true]:bg-accent/10", t === "transparent" ? "bg-surface" : "bg-surface-secondary"),
2667
+ children: /* @__PURE__ */ Z(z.Content, {
2619
2668
  className: "gap-2",
2620
- children: [/* @__PURE__ */ X("div", {
2669
+ children: [/* @__PURE__ */ Z("div", {
2621
2670
  className: "flex gap-2 justify-between",
2622
- children: [/* @__PURE__ */ X("span", {
2671
+ children: [/* @__PURE__ */ Z("span", {
2623
2672
  className: "flex gap-2 items-center",
2624
- children: [/* @__PURE__ */ Y(Be, { className: "text-muted" }), i.dark]
2625
- }), /* @__PURE__ */ Y(R.Control, { children: /* @__PURE__ */ Y(R.Indicator, {}) })]
2626
- }), /* @__PURE__ */ Y(s, { className: "w-full" })]
2673
+ children: [/* @__PURE__ */ X(Ve, { className: "text-muted" }), i.dark]
2674
+ }), /* @__PURE__ */ X(z.Control, { children: /* @__PURE__ */ X(z.Indicator, {}) })]
2675
+ }), /* @__PURE__ */ X(l, { className: "w-full" })]
2627
2676
  })
2628
2677
  })
2629
2678
  ]
@@ -2633,20 +2682,20 @@ function Mn({ className: e, variant: t, ...n }) {
2633
2682
  }
2634
2683
  //#endregion
2635
2684
  //#region src/components/auth/username/username-field.tsx
2636
- function Nn({ name: e, field: t, isPending: n, variant: r }) {
2637
- let { authClient: i } = p(), { localization: a, minUsernameLength: o, maxUsernameLength: s, isUsernameAvailable: c, usernamePrefix: l } = m(Pn), u = String(t.defaultValue ?? ""), [d, f] = q(u), { mutate: h, data: g, error: _, reset: v } = te(i, { onError: () => {} }), y = _t((e) => {
2685
+ function Rn({ name: e, field: t, isPending: n, variant: r }) {
2686
+ let { authClient: i } = h(), { localization: a, minUsernameLength: o, maxUsernameLength: s, isUsernameAvailable: c, usernamePrefix: l } = g(zn), u = String(t.defaultValue ?? ""), [d, f] = J(u), { mutate: p, data: m, error: _, reset: v } = re(i, { onError: () => {} }), y = bt((e) => {
2638
2687
  let t = e.trim();
2639
2688
  if (!t || t === u) {
2640
2689
  v();
2641
2690
  return;
2642
2691
  }
2643
- h({ username: t });
2692
+ p({ username: t });
2644
2693
  }, { wait: 500 });
2645
2694
  function b(e) {
2646
2695
  f(e), v(), c && y.maybeExecute(e);
2647
2696
  }
2648
- let x = !!c && !!d.trim() && d.trim() !== u, { localization: S } = p();
2649
- return /* @__PURE__ */ X(W, {
2697
+ let x = !!c && !!d.trim() && d.trim() !== u, { localization: S } = h();
2698
+ return /* @__PURE__ */ Z(G, {
2650
2699
  name: e,
2651
2700
  type: "text",
2652
2701
  autoComplete: "username",
@@ -2662,182 +2711,195 @@ function Nn({ name: e, field: t, isPending: n, variant: r }) {
2662
2711
  if (s && e.length > s) return S.auth.tooLong.replace("{{max}}", String(s));
2663
2712
  },
2664
2713
  children: [
2665
- /* @__PURE__ */ Y(L, { children: t.label }),
2666
- /* @__PURE__ */ X(I, {
2714
+ /* @__PURE__ */ X(R, { children: t.label }),
2715
+ /* @__PURE__ */ Z(L, {
2667
2716
  variant: r === "transparent" ? "primary" : "secondary",
2668
2717
  children: [
2669
- l && /* @__PURE__ */ Y(I.Prefix, {
2718
+ l && /* @__PURE__ */ X(L.Prefix, {
2670
2719
  className: "pr-1.5 text-muted",
2671
2720
  children: l
2672
2721
  }),
2673
- /* @__PURE__ */ Y(I.Input, {
2722
+ /* @__PURE__ */ X(L.Input, {
2674
2723
  placeholder: t.placeholder,
2675
2724
  required: t.required
2676
2725
  }),
2677
- x && /* @__PURE__ */ Y(I.Suffix, {
2678
- "aria-label": g?.available ? a.usernameAvailable : g?.available === !1 ? a.usernameTaken : void 0,
2726
+ x && /* @__PURE__ */ X(L.Suffix, {
2727
+ "aria-label": m?.available ? a.usernameAvailable : m?.available === !1 ? a.usernameTaken : void 0,
2679
2728
  className: "px-2",
2680
- children: g?.available ? /* @__PURE__ */ Y(Ee, { className: "text-success" }) : _ || g?.available === !1 ? /* @__PURE__ */ Y(D, { className: "text-danger" }) : /* @__PURE__ */ Y(V, {
2729
+ children: m?.available ? /* @__PURE__ */ X(De, { className: "text-success" }) : _ || m?.available === !1 ? /* @__PURE__ */ X(O, { className: "text-danger" }) : /* @__PURE__ */ X(H, {
2681
2730
  size: "sm",
2682
2731
  color: "current"
2683
2732
  })
2684
2733
  })
2685
2734
  ]
2686
2735
  }),
2687
- /* @__PURE__ */ Y(N, {})
2736
+ /* @__PURE__ */ X(P, {})
2688
2737
  ]
2689
2738
  });
2690
2739
  }
2691
2740
  //#endregion
2692
2741
  //#region src/lib/auth/username-plugin.tsx
2693
- var Pn = a(gt.id, (e = {}) => {
2694
- let t = gt(e);
2742
+ var zn = s(yt.id, (e = {}) => {
2743
+ let t = yt(e);
2695
2744
  return {
2696
2745
  ...t,
2697
2746
  additionalFields: t.additionalFields?.map((e) => e.name === "username" ? {
2698
2747
  ...e,
2699
- render: Nn
2748
+ render: Rn
2700
2749
  } : e),
2701
- views: { auth: { signIn: Fn } }
2750
+ views: { auth: { signIn: Bn } }
2702
2751
  };
2703
2752
  });
2704
2753
  //#endregion
2705
2754
  //#region src/components/auth/username/sign-in-username.tsx
2706
- function Fn({ className: n, socialLayout: i, socialPosition: a = "bottom", variant: o }) {
2707
- let { authClient: s, basePaths: c, emailAndPassword: l, localization: u, plugins: d, redirectTo: f, socialProviders: h, viewPaths: g, navigate: _ } = p(), { fetchOptions: v, resetFetchOptions: y } = ee(), { localization: b } = m(Pn), [x, S] = q("");
2708
- function C(e) {
2755
+ function Bn({ className: r, socialLayout: i, socialPosition: o = "bottom", variant: s }) {
2756
+ let { authClient: c, basePaths: l, emailAndPassword: u, localization: d, plugins: f, redirectTo: p, socialProviders: m, viewPaths: _, navigate: v } = h(), { fetchOptions: y, resetFetchOptions: b } = te(), { localization: x } = g(zn), [S, C] = J("");
2757
+ function w(e) {
2709
2758
  return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
2710
2759
  }
2711
- let { mutate: w, isPending: T } = ge(s, {
2760
+ let { mutate: ee, isPending: T } = _e(c, {
2712
2761
  onError: (e, { email: t }) => {
2713
- S(""), e.error?.code === "EMAIL_NOT_VERIFIED" && (sessionStorage.setItem("better-auth-ui.verify-email", t), _({ to: `${c.auth}/${g.auth.verifyEmail}` })), y();
2762
+ C(""), e.error?.code === "EMAIL_NOT_VERIFIED" && (sessionStorage.setItem("better-auth-ui.verify-email", t), v({ to: `${l.auth}/${_.auth.verifyEmail}` })), b();
2714
2763
  },
2715
2764
  onSuccess: () => {
2716
- sessionStorage.removeItem("better-auth-ui.verify-email"), _({ to: f });
2765
+ sessionStorage.removeItem("better-auth-ui.verify-email"), v({ to: p });
2717
2766
  }
2718
- }), { mutate: te, isPending: ne } = ye(s, {
2767
+ }), { mutate: ne, isPending: re } = be(c, {
2719
2768
  onError: (e) => {
2720
- S(""), e.error?.code === "EMAIL_NOT_VERIFIED" && (sessionStorage.removeItem("better-auth-ui.verify-email"), _({ to: `${c.auth}/${g.auth.verifyEmail}` })), y();
2769
+ C(""), e.error?.code === "EMAIL_NOT_VERIFIED" && (sessionStorage.removeItem("better-auth-ui.verify-email"), v({ to: `${l.auth}/${_.auth.verifyEmail}` })), b();
2721
2770
  },
2722
2771
  onSuccess: () => {
2723
- sessionStorage.removeItem("better-auth-ui.verify-email"), _({ to: f });
2772
+ sessionStorage.removeItem("better-auth-ui.verify-email"), v({ to: p });
2724
2773
  }
2725
- }), re = (e) => {
2774
+ }), ie = (e) => {
2726
2775
  e.preventDefault();
2727
2776
  let t = new FormData(e.currentTarget), n = t.get("email"), r = t.get("rememberMe") === "on";
2728
- C(n) ? w({
2777
+ w(n) ? ee({
2729
2778
  email: n,
2730
- password: x,
2731
- ...l?.rememberMe ? { rememberMe: r } : {},
2732
- fetchOptions: v
2733
- }) : te({
2779
+ password: S,
2780
+ ...u?.rememberMe ? { rememberMe: r } : {},
2781
+ fetchOptions: y
2782
+ }) : ne({
2734
2783
  username: n,
2735
- password: x,
2736
- ...l?.rememberMe ? { rememberMe: r } : {},
2737
- fetchOptions: v
2784
+ password: S,
2785
+ ...u?.rememberMe ? { rememberMe: r } : {},
2786
+ fetchOptions: y
2738
2787
  });
2739
- }, ie = Z({ mutationKey: r.signIn.all }) + Z({ mutationKey: r.signUp.all }) > 0, ae = T || ne, oe = d.find((e) => e.captchaComponent)?.captchaComponent, se = l?.enabled && !!h?.length;
2740
- return /* @__PURE__ */ X(A, {
2741
- className: G("w-full max-w-sm gap-4 md:p-6", n),
2742
- variant: o,
2788
+ }, E = lt({ mutationKey: a.signIn.all }) + lt({ mutationKey: a.signUp.all }) > 0, ae = T || re, oe = f.find((e) => e.captchaComponent)?.captchaComponent, se = u?.enabled && !!m?.length;
2789
+ return /* @__PURE__ */ Z(j, {
2790
+ className: K("w-full max-w-sm gap-4 md:p-6", r),
2791
+ variant: s,
2743
2792
  children: [
2744
- /* @__PURE__ */ Y(A.Header, { children: /* @__PURE__ */ Y(A.Title, {
2793
+ /* @__PURE__ */ X(j.Header, { children: /* @__PURE__ */ X(j.Title, {
2745
2794
  className: "text-xl font-semibold mb-1",
2746
- children: u.auth.signIn
2795
+ children: d.auth.signIn
2747
2796
  }) }),
2748
- /* @__PURE__ */ X(A.Content, {
2797
+ /* @__PURE__ */ Z(j.Content, {
2749
2798
  className: "gap-4",
2750
2799
  children: [
2751
- a === "top" && /* @__PURE__ */ X(J, { children: [!!h?.length && /* @__PURE__ */ Y(t, { socialLayout: i }), se && /* @__PURE__ */ Y(e, { children: u.auth.or })] }),
2752
- l?.enabled && /* @__PURE__ */ X(P, {
2753
- onSubmit: re,
2800
+ o === "top" && /* @__PURE__ */ Z(Y, { children: [!!m?.length && /* @__PURE__ */ X(n, {
2801
+ socialLayout: i,
2802
+ view: "signIn"
2803
+ }), se && /* @__PURE__ */ X(t, { children: d.auth.or })] }),
2804
+ u?.enabled && /* @__PURE__ */ Z(F, {
2805
+ onSubmit: ie,
2754
2806
  className: "flex flex-col gap-4",
2755
2807
  children: [
2756
- /* @__PURE__ */ X(W, {
2808
+ /* @__PURE__ */ Z(G, {
2757
2809
  name: "email",
2758
2810
  type: "text",
2759
2811
  autoComplete: "username email",
2760
- isDisabled: ie,
2812
+ isDisabled: E,
2761
2813
  validate: (e) => {
2762
- if (!e) return u.auth.fieldRequired;
2814
+ if (!e) return d.auth.fieldRequired;
2763
2815
  },
2764
2816
  children: [
2765
- /* @__PURE__ */ Y(L, { children: b.username }),
2766
- /* @__PURE__ */ Y(F, {
2767
- placeholder: b.usernameOrEmailPlaceholder,
2768
- variant: o === "transparent" ? "primary" : "secondary",
2817
+ /* @__PURE__ */ X(R, { children: x.username }),
2818
+ /* @__PURE__ */ X(I, {
2819
+ placeholder: x.usernameOrEmailPlaceholder,
2820
+ variant: s === "transparent" ? "primary" : "secondary",
2769
2821
  required: !0
2770
2822
  }),
2771
- /* @__PURE__ */ Y(N, {})
2823
+ /* @__PURE__ */ X(P, {})
2772
2824
  ]
2773
2825
  }),
2774
- /* @__PURE__ */ X(W, {
2775
- minLength: l?.minPasswordLength,
2776
- maxLength: l?.maxPasswordLength,
2826
+ /* @__PURE__ */ Z(G, {
2827
+ minLength: u?.minPasswordLength,
2828
+ maxLength: u?.maxPasswordLength,
2777
2829
  name: "password",
2778
2830
  type: "password",
2779
2831
  autoComplete: "current-password",
2780
- isDisabled: ie,
2781
- value: x,
2782
- onChange: S,
2832
+ isDisabled: E,
2833
+ value: S,
2834
+ onChange: C,
2783
2835
  validate: (e) => {
2784
- if (!e) return u.auth.fieldRequired;
2785
- let t = l?.minPasswordLength, n = l?.maxPasswordLength;
2786
- if (t && e.length < t) return u.auth.tooShort.replace("{{min}}", String(t));
2787
- if (n && e.length > n) return u.auth.tooLong.replace("{{max}}", String(n));
2836
+ if (!e) return d.auth.fieldRequired;
2837
+ let t = u?.minPasswordLength, n = u?.maxPasswordLength;
2838
+ if (t && e.length < t) return d.auth.tooShort.replace("{{min}}", String(t));
2839
+ if (n && e.length > n) return d.auth.tooLong.replace("{{max}}", String(n));
2788
2840
  },
2789
2841
  children: [
2790
- /* @__PURE__ */ Y(L, { children: u.auth.password }),
2791
- /* @__PURE__ */ Y(F, {
2792
- placeholder: u.auth.passwordPlaceholder,
2793
- variant: o === "transparent" ? "primary" : "secondary",
2842
+ /* @__PURE__ */ X(R, { children: d.auth.password }),
2843
+ /* @__PURE__ */ X(I, {
2844
+ placeholder: d.auth.passwordPlaceholder,
2845
+ variant: s === "transparent" ? "primary" : "secondary",
2794
2846
  required: !0
2795
2847
  }),
2796
- /* @__PURE__ */ Y(N, {})
2848
+ /* @__PURE__ */ X(P, {})
2797
2849
  ]
2798
2850
  }),
2799
- l?.rememberMe && /* @__PURE__ */ Y(Xe, {
2851
+ u?.rememberMe && /* @__PURE__ */ X(Ze, {
2800
2852
  name: "rememberMe",
2801
- isDisabled: ie,
2802
- variant: o === "transparent" ? "primary" : "secondary",
2803
- children: /* @__PURE__ */ X(Xe.Content, { children: [/* @__PURE__ */ Y(Xe.Control, { children: /* @__PURE__ */ Y(Xe.Indicator, {}) }), u.auth.rememberMe] })
2853
+ isDisabled: E,
2854
+ variant: s === "transparent" ? "primary" : "secondary",
2855
+ children: /* @__PURE__ */ Z(Ze.Content, { children: [/* @__PURE__ */ X(Ze.Control, { children: /* @__PURE__ */ X(Ze.Indicator, {}) }), d.auth.rememberMe] })
2804
2856
  }),
2805
- oe && /* @__PURE__ */ Y("div", {
2857
+ oe && /* @__PURE__ */ X("div", {
2806
2858
  className: "flex justify-center",
2807
2859
  children: oe
2808
2860
  }),
2809
- /* @__PURE__ */ X("div", {
2861
+ /* @__PURE__ */ Z("div", {
2810
2862
  className: "flex flex-col gap-3",
2811
- children: [/* @__PURE__ */ X(k, {
2863
+ children: [/* @__PURE__ */ Z(A, {
2812
2864
  type: "submit",
2813
- className: "w-full",
2814
- isPending: ae || ie,
2815
- children: [ae && /* @__PURE__ */ Y(V, {
2816
- color: "current",
2817
- size: "sm"
2818
- }), u.auth.signIn]
2819
- }), d.flatMap((e) => e.authButtons?.map((t, n) => /* @__PURE__ */ Y(t, { view: "signIn" }, `${e.id}-${n.toString()}`)))]
2865
+ className: "relative w-full overflow-visible",
2866
+ isPending: ae || E,
2867
+ children: [
2868
+ ae && /* @__PURE__ */ X(H, {
2869
+ color: "current",
2870
+ size: "sm"
2871
+ }),
2872
+ d.auth.signIn,
2873
+ /* @__PURE__ */ X(e, {
2874
+ method: ["email", "username"],
2875
+ floating: !0
2876
+ })
2877
+ ]
2878
+ }), f.flatMap((e) => e.authButtons?.map((t, n) => /* @__PURE__ */ X(t, { view: "signIn" }, `${e.id}-${n.toString()}`)))]
2820
2879
  })
2821
2880
  ]
2822
2881
  }),
2823
- a === "bottom" && /* @__PURE__ */ X(J, { children: [se && /* @__PURE__ */ Y(e, { children: u.auth.or }), !!h?.length && /* @__PURE__ */ Y(t, { socialLayout: i })] })
2882
+ o === "bottom" && /* @__PURE__ */ Z(Y, { children: [se && /* @__PURE__ */ X(t, { children: d.auth.or }), !!m?.length && /* @__PURE__ */ X(n, {
2883
+ socialLayout: i,
2884
+ view: "signIn"
2885
+ })] })
2824
2886
  ]
2825
2887
  }),
2826
- /* @__PURE__ */ X(A.Footer, {
2888
+ /* @__PURE__ */ Z(j.Footer, {
2827
2889
  className: "flex-col gap-3",
2828
- children: [l?.enabled && l?.forgotPassword && /* @__PURE__ */ Y($e, {
2829
- href: `${c.auth}/${g.auth.forgotPassword}`,
2890
+ children: [u?.enabled && u?.forgotPassword && /* @__PURE__ */ X(et, {
2891
+ href: `${l.auth}/${_.auth.forgotPassword}`,
2830
2892
  className: "text-sm no-underline hover:underline",
2831
- children: u.auth.forgotPasswordLink
2832
- }), l?.enabled && /* @__PURE__ */ X(Ze, {
2893
+ children: d.auth.forgotPasswordLink
2894
+ }), u?.enabled && /* @__PURE__ */ Z(Qe, {
2833
2895
  className: "text-sm",
2834
2896
  children: [
2835
- u.auth.needToCreateAnAccount,
2897
+ d.auth.needToCreateAnAccount,
2836
2898
  " ",
2837
- /* @__PURE__ */ Y($e, {
2838
- href: `${c.auth}/${g.auth.signUp}`,
2899
+ /* @__PURE__ */ X(et, {
2900
+ href: `${l.auth}/${_.auth.signUp}`,
2839
2901
  className: "text-accent no-underline hover:underline decoration-accent-hover",
2840
- children: u.auth.signUp
2902
+ children: d.auth.signUp
2841
2903
  })
2842
2904
  ]
2843
2905
  })]
@@ -2846,4 +2908,7 @@ function Fn({ className: n, socialLayout: i, socialPosition: a = "bottom", varia
2846
2908
  });
2847
2909
  }
2848
2910
  //#endregion
2849
- export { Et as ApiKeys, Mn as Appearance, Qt as ChangeOrganizationLogo, Vt as CreateOrganizationDialog, kt as DangerZone, Ot as DeleteAccount, tn as DeleteOrganization, en as DeleteOrganizationSkeleton, rn as InviteMemberDialog, on as LeaveOrganization, Mt as MagicLink, Rt as ManageAccount, Nt as ManageAccounts, yn as Organization, vt as OrganizationApiKeys, gn as OrganizationDangerZone, un as OrganizationInvitations, ln as OrganizationInvitationsEmpty, Ht as OrganizationLogo, mn as OrganizationMembers, hn as OrganizationPeople, _n as OrganizationProfile, Wt as OrganizationRow, vn as OrganizationSettings, bn as OrganizationSwitcher, Q as OrganizationView, Ut as OrganizationViewSkeleton, Kt as Organizations, Zt as OrganizationsSettings, On as Passkeys, Fn as SignInUsername, It as SwitchAccountSubmenu, Ft as SwitchAccountSubmenuContent, Pt as SwitchAccountSubmenuItem, An as ThemeToggleItem, Xt as UserInvitations, Nn as UsernameField, yt as apiKeyPlugin, Dt as deleteUserPlugin, jt as magicLinkPlugin, Lt as multiSessionPlugin, $ as organizationPlugin, Sn as passkeyPlugin, jn as themePlugin, Pn as usernamePlugin };
2911
+ //#region src/lib/auth/last-login-method-plugin.ts
2912
+ var Vn = s(pt.id, (e = {}) => ({ ...pt(e) }));
2913
+ //#endregion
2914
+ export { kt as ApiKeys, Ln as Appearance, rn as ChangeOrganizationLogo, Kt as CreateOrganizationDialog, Mt as DangerZone, jt as DeleteAccount, sn as DeleteOrganization, on as DeleteOrganizationSkeleton, ln as InviteMemberDialog, e as LastUsedBadge, dn as LeaveOrganization, Pt as MAGIC_LINK_SENT_STORAGE_KEY, Lt as MagicLink, Ft as MagicLinkSent, Ut as ManageAccount, Rt as ManageAccounts, wn as Organization, xt as OrganizationApiKeys, xn as OrganizationDangerZone, hn as OrganizationInvitations, mn as OrganizationInvitationsEmpty, qt as OrganizationLogo, yn as OrganizationMembers, bn as OrganizationPeople, Sn as OrganizationProfile, Yt as OrganizationRow, Cn as OrganizationSettings, Tn as OrganizationSwitcher, Q as OrganizationView, Jt as OrganizationViewSkeleton, Zt as Organizations, nn as OrganizationsSettings, Nn as Passkeys, Bn as SignInUsername, Vt as SwitchAccountSubmenu, Bt as SwitchAccountSubmenuContent, zt as SwitchAccountSubmenuItem, Fn as ThemeToggleItem, tn as UserInvitations, Rn as UsernameField, St as apiKeyPlugin, At as deleteUserPlugin, Vn as lastLoginMethodPlugin, It as magicLinkPlugin, Ht as multiSessionPlugin, $ as organizationPlugin, Dn as passkeyPlugin, In as themePlugin, zn as usernamePlugin };