@better-auth-ui/heroui 1.6.20 → 1.6.22

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.
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { a as e, i as t, n, r, t as i } from "./user-view--47tVtJ3.js";
3
3
  import { authMutationKeys as a, authQueryKeys as o, fileToBase64 as s, getProviderName as c, parseAdditionalFieldValue as l, resolveInputType as u } from "@better-auth-ui/core";
4
- import { AuthProvider as d, providerIcons as f, useAccountInfo as p, useAuth as m, useAuthenticate as h, useChangeEmail as g, useChangePassword as _, useFetchOptions as v, useLinkSocial as y, useListAccounts as ee, useListSessions as te, useRequestPasswordReset as b, useResetPassword as x, useRevokeSession as ne, useSendVerificationEmail as re, useSession as S, useSignInEmail as ie, useSignOut as C, useSignUpEmail as ae, useUnlinkAccount as oe, useUpdateUser as w } from "@better-auth-ui/react";
5
- import { ArrowRightFromSquare as se, ArrowRightToSquare as T, Check as ce, ChevronsExpandVertical as le, CloudArrowUpIn as ue, Copy as de, Display as fe, Eye as E, EyeSlash as D, Gear as pe, Link as me, LinkSlash as he, Person as ge, PersonPlus as _e, PlugConnection as ve, Shield as ye, Smartphone as be, TrashBin as xe, Xmark as Se } from "@gravity-ui/icons";
6
- import { Button as O, Calendar as k, Card as A, Checkbox as j, Chip as Ce, ComboBox as we, DateField as Te, DatePicker as Ee, Description as De, Dropdown as M, FieldError as N, Fieldset as P, Form as F, Input as I, InputGroup as L, Label as R, Link as z, ListBox as B, NumberField as V, RouterProvider as Oe, Select as H, Skeleton as U, Slider as W, Spinner as G, Switch as ke, Tabs as K, TextArea as Ae, TextField as q, TimeField as je, cn as J, toast as Y } from "@heroui/react";
4
+ import { AuthProvider as d, providerIcons as f, useAccountInfo as p, useAuth as m, useAuthenticate as h, useChangeEmail as g, useChangePassword as _, useFetchOptions as v, useLinkSocial as y, useListAccounts as b, useListSessions as x, useRequestPasswordReset as S, useResetPassword as ee, useRevokeSession as te, useSendVerificationEmail as ne, useSession as C, useSignInEmail as re, useSignOut as w, useSignUpEmail as ie, useUnlinkAccount as ae, useUpdateUser as T } from "@better-auth-ui/react";
5
+ import { ArrowRightFromSquare as oe, ArrowRightToSquare as E, Check as se, ChevronsExpandVertical as ce, CloudArrowUpIn as le, Copy as ue, Display as de, Eye as D, EyeSlash as O, Gear as fe, Link as pe, LinkSlash as me, Person as he, PersonPlus as ge, PlugConnection as _e, Shield as ve, Smartphone as ye, TrashBin as be, Xmark as xe } from "@gravity-ui/icons";
6
+ import { Button as k, Calendar as A, Card as j, Checkbox as M, Chip as Se, ComboBox as Ce, DateField as we, DatePicker as Te, Description as Ee, Dropdown as N, FieldError as P, Fieldset as F, Form as I, Input as L, InputGroup as R, Label as z, Link as B, ListBox as V, NumberField as H, RouterProvider as De, Select as U, Skeleton as W, Slider as Oe, Spinner as G, Switch as ke, Tabs as K, TextArea as Ae, TextField as q, TimeField as je, cn as J, toast as Y } from "@heroui/react";
7
7
  import { fromDate as Me, getLocalTimeZone as Ne, parseDate as Pe, parseDateTime as Fe, toCalendarDate as Ie, toCalendarDateTime as Le } from "@internationalized/date";
8
8
  import { isValidElement as Re, useEffect as ze, useMemo as Be, useRef as Ve, useState as X } from "react";
9
9
  import { Fragment as Z, jsx as Q, jsxs as $ } from "react/jsx-runtime";
@@ -36,14 +36,14 @@ function Ye({ getValue: e, isDisabled: t }) {
36
36
  Y.danger(e instanceof Error ? e.message : String(e));
37
37
  }
38
38
  }
39
- return /* @__PURE__ */ Q(O, {
39
+ return /* @__PURE__ */ Q(k, {
40
40
  isIconOnly: !0,
41
41
  "aria-label": n.settings.copyToClipboard,
42
42
  size: "sm",
43
43
  variant: "ghost",
44
44
  isDisabled: t,
45
45
  onPress: a,
46
- children: Q(r ? ce : de, { className: "size-4" })
46
+ children: Q(r ? se : ue, { className: "size-4" })
47
47
  });
48
48
  }
49
49
  function Xe({ name: e, field: t, isPending: n, variant: r }) {
@@ -65,18 +65,18 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
65
65
  isDisabled: n,
66
66
  isReadOnly: t.readOnly,
67
67
  children: [
68
- /* @__PURE__ */ Q(R, { children: t.label }),
68
+ /* @__PURE__ */ Q(z, { children: t.label }),
69
69
  /* @__PURE__ */ Q(Ae, {
70
70
  placeholder: t.placeholder,
71
71
  required: t.required,
72
72
  variant: o
73
73
  }),
74
- /* @__PURE__ */ Q(N, {})
74
+ /* @__PURE__ */ Q(P, {})
75
75
  ]
76
76
  });
77
77
  if (a === "number") {
78
78
  let r = t.formatOptions?.maximumFractionDigits;
79
- return /* @__PURE__ */ $(V, {
79
+ return /* @__PURE__ */ $(H, {
80
80
  name: e,
81
81
  defaultValue: typeof t.defaultValue == "number" ? t.defaultValue : t.defaultValue != null && t.defaultValue !== "" ? Number(t.defaultValue) : void 0,
82
82
  minValue: t.min,
@@ -87,22 +87,22 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
87
87
  isReadOnly: t.readOnly,
88
88
  variant: o,
89
89
  children: [
90
- /* @__PURE__ */ Q(R, { children: t.label }),
91
- /* @__PURE__ */ $(V.Group, { children: [
92
- /* @__PURE__ */ Q(V.DecrementButton, {}),
93
- /* @__PURE__ */ Q(V.Input, {
90
+ /* @__PURE__ */ Q(z, { children: t.label }),
91
+ /* @__PURE__ */ $(H.Group, { children: [
92
+ /* @__PURE__ */ Q(H.DecrementButton, {}),
93
+ /* @__PURE__ */ Q(H.Input, {
94
94
  placeholder: t.placeholder,
95
95
  required: t.required
96
96
  }),
97
- /* @__PURE__ */ Q(V.IncrementButton, {})
97
+ /* @__PURE__ */ Q(H.IncrementButton, {})
98
98
  ] }),
99
- /* @__PURE__ */ Q(N, {})
99
+ /* @__PURE__ */ Q(P, {})
100
100
  ]
101
101
  });
102
102
  }
103
103
  if (a === "slider") {
104
104
  let r = t.formatOptions?.maximumFractionDigits;
105
- return /* @__PURE__ */ $(W, {
105
+ return /* @__PURE__ */ $(Oe, {
106
106
  defaultValue: typeof t.defaultValue == "number" ? t.defaultValue : t.defaultValue == null ? void 0 : Number(t.defaultValue),
107
107
  minValue: t.min ?? 0,
108
108
  maxValue: t.max ?? 100,
@@ -112,27 +112,27 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
112
112
  className: "flex flex-col gap-2",
113
113
  children: [/* @__PURE__ */ $("div", {
114
114
  className: "flex items-center justify-between gap-2",
115
- children: [/* @__PURE__ */ Q(R, { children: t.label }), /* @__PURE__ */ Q(W.Output, { className: "text-sm text-muted" })]
116
- }), /* @__PURE__ */ $(W.Track, { children: [/* @__PURE__ */ Q(W.Fill, {}), /* @__PURE__ */ Q(W.Thumb, { name: e })] })]
115
+ children: [/* @__PURE__ */ Q(z, { children: t.label }), /* @__PURE__ */ Q(Oe.Output, { className: "text-sm text-muted" })]
116
+ }), /* @__PURE__ */ $(Oe.Track, { children: [/* @__PURE__ */ Q(Oe.Fill, {}), /* @__PURE__ */ Q(Oe.Thumb, { name: e })] })]
117
117
  });
118
118
  }
119
- if (a === "switch") return /* @__PURE__ */ $(ke, {
119
+ if (a === "switch") return /* @__PURE__ */ Q(ke, {
120
120
  name: e,
121
121
  defaultSelected: t.defaultValue === !0 || t.defaultValue === "true",
122
122
  isDisabled: n,
123
123
  isReadOnly: t.readOnly,
124
- children: [/* @__PURE__ */ Q(ke.Control, { children: /* @__PURE__ */ Q(ke.Thumb, {}) }), /* @__PURE__ */ Q(R, { children: t.label })]
124
+ children: /* @__PURE__ */ $(ke.Content, { children: [/* @__PURE__ */ Q(ke.Control, { children: /* @__PURE__ */ Q(ke.Thumb, {}) }), t.label] })
125
125
  });
126
- if (a === "checkbox") return /* @__PURE__ */ $(j, {
126
+ if (a === "checkbox") return /* @__PURE__ */ Q(M, {
127
127
  name: e,
128
128
  defaultSelected: t.defaultValue === !0 || t.defaultValue === "true",
129
129
  isDisabled: n,
130
130
  isReadOnly: t.readOnly,
131
131
  isRequired: t.required,
132
132
  variant: o,
133
- children: [/* @__PURE__ */ Q(j.Control, { children: /* @__PURE__ */ Q(j.Indicator, {}) }), /* @__PURE__ */ Q(j.Content, { children: /* @__PURE__ */ Q(R, { children: t.label }) })]
133
+ children: /* @__PURE__ */ $(M.Content, { children: [/* @__PURE__ */ Q(M.Control, { children: /* @__PURE__ */ Q(M.Indicator, {}) }), t.label] })
134
134
  });
135
- if (a === "select") return /* @__PURE__ */ $(H, {
135
+ if (a === "select") return /* @__PURE__ */ $(U, {
136
136
  className: "[&[data-required=true]>.label]:after:content-none",
137
137
  name: e,
138
138
  defaultValue: t.defaultValue == null ? void 0 : String(t.defaultValue),
@@ -142,17 +142,17 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
142
142
  variant: o,
143
143
  fullWidth: !0,
144
144
  children: [
145
- /* @__PURE__ */ Q(R, { children: t.label }),
146
- /* @__PURE__ */ $(H.Trigger, { children: [/* @__PURE__ */ Q(H.Value, {}), /* @__PURE__ */ Q(H.Indicator, {})] }),
147
- /* @__PURE__ */ Q(H.Popover, { children: /* @__PURE__ */ Q(B, { children: t.options?.map((e) => /* @__PURE__ */ $(B.Item, {
145
+ /* @__PURE__ */ Q(z, { children: t.label }),
146
+ /* @__PURE__ */ $(U.Trigger, { children: [/* @__PURE__ */ Q(U.Value, {}), /* @__PURE__ */ Q(U.Indicator, {})] }),
147
+ /* @__PURE__ */ Q(U.Popover, { children: /* @__PURE__ */ Q(V, { children: t.options?.map((e) => /* @__PURE__ */ $(V.Item, {
148
148
  id: e.value,
149
149
  textValue: typeof e.label == "string" ? e.label : e.value,
150
- children: [e.label, /* @__PURE__ */ Q(B.ItemIndicator, {})]
150
+ children: [e.label, /* @__PURE__ */ Q(V.ItemIndicator, {})]
151
151
  }, e.value)) }) }),
152
- /* @__PURE__ */ Q(N, {})
152
+ /* @__PURE__ */ Q(P, {})
153
153
  ]
154
154
  });
155
- if (a === "combobox") return /* @__PURE__ */ $(we, {
155
+ if (a === "combobox") return /* @__PURE__ */ $(Ce, {
156
156
  className: "[&[data-required=true]>.label]:after:content-none",
157
157
  name: e,
158
158
  defaultSelectedKey: t.defaultValue == null ? void 0 : String(t.defaultValue),
@@ -162,19 +162,19 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
162
162
  variant: o,
163
163
  fullWidth: !0,
164
164
  children: [
165
- /* @__PURE__ */ Q(R, { children: t.label }),
166
- /* @__PURE__ */ $(we.InputGroup, { children: [/* @__PURE__ */ Q(I, { placeholder: t.placeholder }), /* @__PURE__ */ Q(we.Trigger, {})] }),
167
- /* @__PURE__ */ Q(we.Popover, { children: /* @__PURE__ */ Q(B, { children: t.options?.map((e) => /* @__PURE__ */ $(B.Item, {
165
+ /* @__PURE__ */ Q(z, { children: t.label }),
166
+ /* @__PURE__ */ $(Ce.InputGroup, { children: [/* @__PURE__ */ Q(L, { placeholder: t.placeholder }), /* @__PURE__ */ Q(Ce.Trigger, {})] }),
167
+ /* @__PURE__ */ Q(Ce.Popover, { children: /* @__PURE__ */ Q(V, { children: t.options?.map((e) => /* @__PURE__ */ $(V.Item, {
168
168
  id: e.value,
169
169
  textValue: typeof e.label == "string" ? e.label : e.value,
170
- children: [e.label, /* @__PURE__ */ Q(B.ItemIndicator, {})]
170
+ children: [e.label, /* @__PURE__ */ Q(V.ItemIndicator, {})]
171
171
  }, e.value)) }) }),
172
- /* @__PURE__ */ Q(N, {})
172
+ /* @__PURE__ */ Q(P, {})
173
173
  ]
174
174
  });
175
175
  if (a === "date" || a === "datetime") {
176
176
  let r = a === "datetime";
177
- return /* @__PURE__ */ Q(Ee, {
177
+ return /* @__PURE__ */ Q(Te, {
178
178
  className: "w-full [&[data-required=true]>.label]:after:content-none",
179
179
  name: e,
180
180
  defaultValue: r ? Je(t.defaultValue) : qe(t.defaultValue),
@@ -183,29 +183,29 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
183
183
  isReadOnly: t.readOnly,
184
184
  isRequired: t.required,
185
185
  children: ({ state: n }) => /* @__PURE__ */ $(Z, { children: [
186
- /* @__PURE__ */ Q(R, { children: t.label }),
187
- /* @__PURE__ */ $(Te.Group, {
186
+ /* @__PURE__ */ Q(z, { children: t.label }),
187
+ /* @__PURE__ */ $(we.Group, {
188
188
  variant: o,
189
189
  fullWidth: !0,
190
- children: [/* @__PURE__ */ Q(Te.Input, { children: (e) => /* @__PURE__ */ Q(Te.Segment, { segment: e }) }), /* @__PURE__ */ Q(Te.Suffix, { children: /* @__PURE__ */ Q(Ee.Trigger, { children: /* @__PURE__ */ Q(Ee.TriggerIndicator, {}) }) })]
190
+ children: [/* @__PURE__ */ Q(we.Input, { children: (e) => /* @__PURE__ */ Q(we.Segment, { segment: e }) }), /* @__PURE__ */ Q(we.Suffix, { children: /* @__PURE__ */ Q(Te.Trigger, { children: /* @__PURE__ */ Q(Te.TriggerIndicator, {}) }) })]
191
191
  }),
192
- /* @__PURE__ */ Q(N, {}),
193
- /* @__PURE__ */ $(Ee.Popover, {
192
+ /* @__PURE__ */ Q(P, {}),
193
+ /* @__PURE__ */ $(Te.Popover, {
194
194
  className: "flex flex-col gap-3",
195
- children: [/* @__PURE__ */ $(k, {
195
+ children: [/* @__PURE__ */ $(A, {
196
196
  "aria-label": typeof t.label == "string" ? t.label : e,
197
197
  children: [
198
- /* @__PURE__ */ $(k.Header, { children: [
199
- /* @__PURE__ */ $(k.YearPickerTrigger, { children: [/* @__PURE__ */ Q(k.YearPickerTriggerHeading, {}), /* @__PURE__ */ Q(k.YearPickerTriggerIndicator, {})] }),
200
- /* @__PURE__ */ Q(k.NavButton, { slot: "previous" }),
201
- /* @__PURE__ */ Q(k.NavButton, { slot: "next" })
198
+ /* @__PURE__ */ $(A.Header, { children: [
199
+ /* @__PURE__ */ $(A.YearPickerTrigger, { children: [/* @__PURE__ */ Q(A.YearPickerTriggerHeading, {}), /* @__PURE__ */ Q(A.YearPickerTriggerIndicator, {})] }),
200
+ /* @__PURE__ */ Q(A.NavButton, { slot: "previous" }),
201
+ /* @__PURE__ */ Q(A.NavButton, { slot: "next" })
202
202
  ] }),
203
- /* @__PURE__ */ $(k.Grid, { children: [/* @__PURE__ */ Q(k.GridHeader, { children: (e) => /* @__PURE__ */ Q(k.HeaderCell, { children: e }) }), /* @__PURE__ */ Q(k.GridBody, { children: (e) => /* @__PURE__ */ Q(k.Cell, { date: e }) })] }),
204
- /* @__PURE__ */ Q(k.YearPickerGrid, { children: /* @__PURE__ */ Q(k.YearPickerGridBody, { children: ({ year: e }) => /* @__PURE__ */ Q(k.YearPickerCell, { year: e }) }) })
203
+ /* @__PURE__ */ $(A.Grid, { children: [/* @__PURE__ */ Q(A.GridHeader, { children: (e) => /* @__PURE__ */ Q(A.HeaderCell, { children: e }) }), /* @__PURE__ */ Q(A.GridBody, { children: (e) => /* @__PURE__ */ Q(A.Cell, { date: e }) })] }),
204
+ /* @__PURE__ */ Q(A.YearPickerGrid, { children: /* @__PURE__ */ Q(A.YearPickerGridBody, { children: ({ year: e }) => /* @__PURE__ */ Q(A.YearPickerCell, { year: e }) }) })
205
205
  ]
206
206
  }), r && /* @__PURE__ */ $("div", {
207
207
  className: "flex items-center justify-between",
208
- children: [/* @__PURE__ */ Q(R, { children: i.settings.time }), /* @__PURE__ */ Q(je, {
208
+ children: [/* @__PURE__ */ Q(z, { children: i.settings.time }), /* @__PURE__ */ Q(je, {
209
209
  "aria-label": i.settings.time,
210
210
  granularity: "minute",
211
211
  value: n.timeValue,
@@ -227,12 +227,12 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
227
227
  isDisabled: n,
228
228
  isReadOnly: t.readOnly,
229
229
  children: [
230
- /* @__PURE__ */ Q(R, { children: t.label }),
231
- /* @__PURE__ */ $(L, {
230
+ /* @__PURE__ */ Q(z, { children: t.label }),
231
+ /* @__PURE__ */ $(R, {
232
232
  variant: o,
233
233
  children: [
234
- c && /* @__PURE__ */ Q(L.Prefix, { children: t.prefix }),
235
- /* @__PURE__ */ Q(L.Input, {
234
+ c && /* @__PURE__ */ Q(R.Prefix, { children: t.prefix }),
235
+ /* @__PURE__ */ Q(R.Input, {
236
236
  ref: s,
237
237
  placeholder: t.placeholder,
238
238
  required: t.required,
@@ -240,16 +240,16 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
240
240
  inputMode: h,
241
241
  step: g
242
242
  }),
243
- t.copyable ? /* @__PURE__ */ Q(L.Suffix, {
243
+ t.copyable ? /* @__PURE__ */ Q(R.Suffix, {
244
244
  className: "px-0",
245
245
  children: /* @__PURE__ */ Q(Ye, {
246
246
  getValue: () => s.current?.value,
247
247
  isDisabled: n
248
248
  })
249
- }) : t.suffix != null && /* @__PURE__ */ Q(L.Suffix, { children: t.suffix })
249
+ }) : t.suffix != null && /* @__PURE__ */ Q(R.Suffix, { children: t.suffix })
250
250
  ]
251
251
  }),
252
- /* @__PURE__ */ Q(N, {})
252
+ /* @__PURE__ */ Q(P, {})
253
253
  ]
254
254
  }) : /* @__PURE__ */ $(q, {
255
255
  name: e,
@@ -257,8 +257,8 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
257
257
  isDisabled: n,
258
258
  isReadOnly: t.readOnly,
259
259
  children: [
260
- /* @__PURE__ */ Q(R, { children: t.label }),
261
- /* @__PURE__ */ Q(I, {
260
+ /* @__PURE__ */ Q(z, { children: t.label }),
261
+ /* @__PURE__ */ Q(L, {
262
262
  placeholder: t.placeholder,
263
263
  required: t.required,
264
264
  variant: o,
@@ -266,14 +266,14 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
266
266
  inputMode: h,
267
267
  step: g
268
268
  }),
269
- /* @__PURE__ */ Q(N, {})
269
+ /* @__PURE__ */ Q(P, {})
270
270
  ]
271
271
  });
272
272
  }
273
273
  //#endregion
274
274
  //#region src/components/auth/forgot-password.tsx
275
275
  function Ze({ className: e, variant: t }) {
276
- let { authClient: n, baseURL: r, basePaths: i, localization: a, viewPaths: o, navigate: s, plugins: c } = m(), { fetchOptions: l, resetFetchOptions: u } = v(), { mutate: d, isPending: f } = b(n, {
276
+ let { authClient: n, baseURL: r, basePaths: i, localization: a, viewPaths: o, navigate: s, plugins: c } = m(), { fetchOptions: l, resetFetchOptions: u } = v(), { mutate: d, isPending: f } = S(n, {
277
277
  onError: () => {
278
278
  u();
279
279
  },
@@ -289,17 +289,17 @@ function Ze({ className: e, variant: t }) {
289
289
  });
290
290
  }
291
291
  let h = c.find((e) => e.captchaComponent)?.captchaComponent;
292
- return /* @__PURE__ */ $(A, {
292
+ return /* @__PURE__ */ $(j, {
293
293
  className: J("w-full max-w-sm gap-4 md:p-6", e),
294
294
  variant: t,
295
295
  children: [
296
- /* @__PURE__ */ Q(A.Header, { children: /* @__PURE__ */ Q(A.Title, {
296
+ /* @__PURE__ */ Q(j.Header, { children: /* @__PURE__ */ Q(j.Title, {
297
297
  className: "text-xl font-semibold mb-1",
298
298
  children: a.auth.forgotPassword
299
299
  }) }),
300
- /* @__PURE__ */ Q(A.Content, {
300
+ /* @__PURE__ */ Q(j.Content, {
301
301
  className: "gap-4",
302
- children: /* @__PURE__ */ $(F, {
302
+ children: /* @__PURE__ */ $(I, {
303
303
  onSubmit: p,
304
304
  className: "flex flex-col gap-4",
305
305
  children: [
@@ -313,13 +313,13 @@ function Ze({ className: e, variant: t }) {
313
313
  if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)) return a.auth.invalidEmail;
314
314
  },
315
315
  children: [
316
- /* @__PURE__ */ Q(R, { children: a.auth.email }),
317
- /* @__PURE__ */ Q(I, {
316
+ /* @__PURE__ */ Q(z, { children: a.auth.email }),
317
+ /* @__PURE__ */ Q(L, {
318
318
  placeholder: a.auth.emailPlaceholder,
319
319
  required: !0,
320
320
  variant: t === "transparent" ? "primary" : "secondary"
321
321
  }),
322
- /* @__PURE__ */ Q(N, {})
322
+ /* @__PURE__ */ Q(P, {})
323
323
  ]
324
324
  }),
325
325
  h && /* @__PURE__ */ Q("div", {
@@ -328,7 +328,7 @@ function Ze({ className: e, variant: t }) {
328
328
  }),
329
329
  /* @__PURE__ */ Q("div", {
330
330
  className: "flex flex-col gap-3",
331
- children: /* @__PURE__ */ $(O, {
331
+ children: /* @__PURE__ */ $(k, {
332
332
  type: "submit",
333
333
  className: "w-full",
334
334
  isPending: f,
@@ -341,14 +341,14 @@ function Ze({ className: e, variant: t }) {
341
341
  ]
342
342
  })
343
343
  }),
344
- /* @__PURE__ */ Q(A.Footer, {
344
+ /* @__PURE__ */ Q(j.Footer, {
345
345
  className: "flex-col gap-3",
346
- children: /* @__PURE__ */ $(De, {
346
+ children: /* @__PURE__ */ $(Ee, {
347
347
  className: "text-sm",
348
348
  children: [
349
349
  a.auth.rememberYourPassword,
350
350
  " ",
351
- /* @__PURE__ */ Q(z, {
351
+ /* @__PURE__ */ Q(B, {
352
352
  href: `${i.auth}/${o.auth.signIn}`,
353
353
  className: "text-accent no-underline hover:underline decoration-accent-hover",
354
354
  children: a.auth.signIn
@@ -362,7 +362,7 @@ function Ze({ className: e, variant: t }) {
362
362
  //#endregion
363
363
  //#region src/components/auth/reset-password.tsx
364
364
  function Qe({ className: e, variant: t }) {
365
- let { authClient: n, basePaths: r, emailAndPassword: i, localization: a, viewPaths: o, navigate: s } = m(), { mutate: c, isPending: l } = x(n, { onSuccess: () => {
365
+ let { authClient: n, basePaths: r, emailAndPassword: i, localization: a, viewPaths: o, navigate: s } = m(), { mutate: c, isPending: l } = ee(n, { onSuccess: () => {
366
366
  Y.success(a.auth.passwordResetSuccess), s({ to: `${r.auth}/${o.auth.signIn}` });
367
367
  } }), [u, d] = X(!1), [f, p] = X(!1);
368
368
  ze(() => {
@@ -390,17 +390,17 @@ function Qe({ className: e, variant: t }) {
390
390
  newPassword: l
391
391
  });
392
392
  }
393
- return /* @__PURE__ */ $(A, {
393
+ return /* @__PURE__ */ $(j, {
394
394
  className: J("w-full max-w-sm gap-4 md:p-6", e),
395
395
  variant: t,
396
396
  children: [
397
- /* @__PURE__ */ Q(A.Header, { children: /* @__PURE__ */ Q(A.Title, {
397
+ /* @__PURE__ */ Q(j.Header, { children: /* @__PURE__ */ Q(j.Title, {
398
398
  className: "text-xl font-semibold mb-1",
399
399
  children: a.auth.resetPassword
400
400
  }) }),
401
- /* @__PURE__ */ Q(A.Content, {
401
+ /* @__PURE__ */ Q(j.Content, {
402
402
  className: "gap-4",
403
- children: /* @__PURE__ */ $(F, {
403
+ children: /* @__PURE__ */ $(I, {
404
404
  onSubmit: h,
405
405
  className: "flex flex-col gap-4",
406
406
  children: [
@@ -417,28 +417,28 @@ function Qe({ className: e, variant: t }) {
417
417
  if (n && e.length > n) return a.auth.tooLong.replace("{{max}}", String(n));
418
418
  },
419
419
  children: [
420
- /* @__PURE__ */ Q(R, { children: a.auth.password }),
421
- /* @__PURE__ */ $(L, {
420
+ /* @__PURE__ */ Q(z, { children: a.auth.password }),
421
+ /* @__PURE__ */ $(R, {
422
422
  variant: t === "transparent" ? "primary" : "secondary",
423
- children: [/* @__PURE__ */ Q(L.Input, {
423
+ children: [/* @__PURE__ */ Q(R.Input, {
424
424
  name: "password",
425
425
  placeholder: a.auth.newPasswordPlaceholder,
426
426
  type: u ? "text" : "password",
427
427
  required: !0
428
- }), /* @__PURE__ */ Q(L.Suffix, {
428
+ }), /* @__PURE__ */ Q(R.Suffix, {
429
429
  className: "px-0",
430
- children: /* @__PURE__ */ Q(O, {
430
+ children: /* @__PURE__ */ Q(k, {
431
431
  isIconOnly: !0,
432
432
  "aria-label": u ? a.auth.hidePassword : a.auth.showPassword,
433
433
  size: "sm",
434
434
  variant: "ghost",
435
435
  onPress: () => d(!u),
436
436
  isDisabled: l,
437
- children: Q(u ? D : E, {})
437
+ children: Q(u ? O : D, {})
438
438
  })
439
439
  })]
440
440
  }),
441
- /* @__PURE__ */ Q(N, {})
441
+ /* @__PURE__ */ Q(P, {})
442
442
  ]
443
443
  }),
444
444
  i?.confirmPassword && /* @__PURE__ */ $(q, {
@@ -454,33 +454,33 @@ function Qe({ className: e, variant: t }) {
454
454
  if (n && e.length > n) return a.auth.tooLong.replace("{{max}}", String(n));
455
455
  },
456
456
  children: [
457
- /* @__PURE__ */ Q(R, { children: a.auth.confirmPassword }),
458
- /* @__PURE__ */ $(L, {
457
+ /* @__PURE__ */ Q(z, { children: a.auth.confirmPassword }),
458
+ /* @__PURE__ */ $(R, {
459
459
  variant: t === "transparent" ? "primary" : "secondary",
460
- children: [/* @__PURE__ */ Q(L.Input, {
460
+ children: [/* @__PURE__ */ Q(R.Input, {
461
461
  placeholder: a.auth.confirmPasswordPlaceholder,
462
462
  type: f ? "text" : "password",
463
463
  required: !0,
464
464
  name: "confirmPassword"
465
- }), /* @__PURE__ */ Q(L.Suffix, {
465
+ }), /* @__PURE__ */ Q(R.Suffix, {
466
466
  className: "px-0",
467
- children: /* @__PURE__ */ Q(O, {
467
+ children: /* @__PURE__ */ Q(k, {
468
468
  isIconOnly: !0,
469
469
  "aria-label": f ? a.auth.hidePassword : a.auth.showPassword,
470
470
  size: "sm",
471
471
  variant: "ghost",
472
472
  onPress: () => p(!f),
473
473
  isDisabled: l,
474
- children: Q(f ? D : E, {})
474
+ children: Q(f ? O : D, {})
475
475
  })
476
476
  })]
477
477
  }),
478
- /* @__PURE__ */ Q(N, {})
478
+ /* @__PURE__ */ Q(P, {})
479
479
  ]
480
480
  }),
481
481
  /* @__PURE__ */ Q("div", {
482
482
  className: "flex flex-col gap-3",
483
- children: /* @__PURE__ */ $(O, {
483
+ children: /* @__PURE__ */ $(k, {
484
484
  type: "submit",
485
485
  className: "w-full",
486
486
  isPending: l,
@@ -493,14 +493,14 @@ function Qe({ className: e, variant: t }) {
493
493
  ]
494
494
  })
495
495
  }),
496
- /* @__PURE__ */ Q(A.Footer, {
496
+ /* @__PURE__ */ Q(j.Footer, {
497
497
  className: "flex-col gap-3",
498
- children: /* @__PURE__ */ $(De, {
498
+ children: /* @__PURE__ */ $(Ee, {
499
499
  className: "text-sm",
500
500
  children: [
501
501
  a.auth.rememberYourPassword,
502
502
  " ",
503
- /* @__PURE__ */ Q(z, {
503
+ /* @__PURE__ */ Q(B, {
504
504
  href: `${r.auth}/${o.auth.signIn}`,
505
505
  className: "text-accent no-underline hover:underline decoration-accent-hover",
506
506
  children: a.auth.signIn
@@ -514,60 +514,60 @@ function Qe({ className: e, variant: t }) {
514
514
  //#endregion
515
515
  //#region src/components/auth/sign-in.tsx
516
516
  function $e({ className: t, socialLayout: n, socialPosition: i = "bottom", variant: o }) {
517
- let { authClient: s, basePaths: c, baseURL: l, emailAndPassword: u, localization: d, plugins: f, redirectTo: p, socialProviders: h, viewPaths: g, navigate: _ } = m(), { fetchOptions: y, resetFetchOptions: ee } = v(), [te, b] = X(""), { mutate: x } = re(s, { onSuccess: () => Y.success(d.auth.verificationEmailSent) }), { mutate: ne, isPending: S } = ie(s, {
517
+ let { authClient: s, basePaths: c, baseURL: l, emailAndPassword: u, localization: d, plugins: f, redirectTo: p, socialProviders: h, viewPaths: g, navigate: _ } = m(), { fetchOptions: y, resetFetchOptions: b } = v(), [x, S] = X(""), { mutate: ee } = ne(s, { onSuccess: () => Y.success(d.auth.verificationEmailSent) }), { mutate: te, isPending: C } = re(s, {
518
518
  onError: (e, { email: t }) => {
519
- b(""), e.error?.code === "EMAIL_NOT_VERIFIED" && Y.danger(e.error?.message || e.message, { actionProps: {
519
+ S(""), e.error?.code === "EMAIL_NOT_VERIFIED" && Y.danger(e.error?.message || e.message, { actionProps: {
520
520
  children: d.auth.resend,
521
- onClick: () => x({
521
+ onClick: () => ee({
522
522
  email: t,
523
523
  callbackURL: `${l}${p}`
524
524
  })
525
- } }), ee();
525
+ } }), b();
526
526
  },
527
527
  onSuccess: () => _({ to: p })
528
- }), C = (e) => {
528
+ }), w = (e) => {
529
529
  e.preventDefault();
530
530
  let t = new FormData(e.currentTarget), n = t.get("email"), r = t.get("rememberMe") === "on";
531
- ne({
531
+ te({
532
532
  email: n,
533
- password: te,
533
+ password: x,
534
534
  ...u?.rememberMe ? { rememberMe: r } : {},
535
535
  fetchOptions: y
536
536
  });
537
- }, ae = We({ mutationKey: a.signIn.all }) + We({ mutationKey: a.signUp.all }) > 0, oe = f.find((e) => e.captchaComponent)?.captchaComponent, w = u?.enabled && !!h?.length;
538
- return /* @__PURE__ */ $(A, {
537
+ }, ie = We({ mutationKey: a.signIn.all }) + We({ mutationKey: a.signUp.all }) > 0, ae = f.find((e) => e.captchaComponent)?.captchaComponent, T = u?.enabled && !!h?.length;
538
+ return /* @__PURE__ */ $(j, {
539
539
  className: J("w-full max-w-sm gap-4 md:p-6", t),
540
540
  variant: o,
541
541
  children: [
542
- /* @__PURE__ */ Q(A.Header, { children: /* @__PURE__ */ Q(A.Title, {
542
+ /* @__PURE__ */ Q(j.Header, { children: /* @__PURE__ */ Q(j.Title, {
543
543
  className: "text-xl font-semibold mb-1",
544
544
  children: d.auth.signIn
545
545
  }) }),
546
- /* @__PURE__ */ $(A.Content, {
546
+ /* @__PURE__ */ $(j.Content, {
547
547
  className: "gap-4",
548
548
  children: [
549
- i === "top" && /* @__PURE__ */ $(Z, { children: [!!h?.length && /* @__PURE__ */ Q(r, { socialLayout: n }), w && /* @__PURE__ */ Q(e, { children: d.auth.or })] }),
550
- u?.enabled && /* @__PURE__ */ $(F, {
551
- onSubmit: C,
549
+ i === "top" && /* @__PURE__ */ $(Z, { children: [!!h?.length && /* @__PURE__ */ Q(r, { socialLayout: n }), T && /* @__PURE__ */ Q(e, { children: d.auth.or })] }),
550
+ u?.enabled && /* @__PURE__ */ $(I, {
551
+ onSubmit: w,
552
552
  className: "flex flex-col gap-4",
553
553
  children: [
554
554
  /* @__PURE__ */ $(q, {
555
555
  name: "email",
556
556
  type: "email",
557
557
  autoComplete: "email",
558
- isDisabled: ae,
558
+ isDisabled: ie,
559
559
  validate: (e) => {
560
560
  if (!e) return d.auth.fieldRequired;
561
561
  if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)) return d.auth.invalidEmail;
562
562
  },
563
563
  children: [
564
- /* @__PURE__ */ Q(R, { children: d.auth.email }),
565
- /* @__PURE__ */ Q(I, {
564
+ /* @__PURE__ */ Q(z, { children: d.auth.email }),
565
+ /* @__PURE__ */ Q(L, {
566
566
  placeholder: d.auth.emailPlaceholder,
567
567
  variant: o === "transparent" ? "primary" : "secondary",
568
568
  required: !0
569
569
  }),
570
- /* @__PURE__ */ Q(N, {})
570
+ /* @__PURE__ */ Q(P, {})
571
571
  ]
572
572
  }),
573
573
  /* @__PURE__ */ $(q, {
@@ -576,9 +576,9 @@ function $e({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
576
576
  name: "password",
577
577
  type: "password",
578
578
  autoComplete: "current-password",
579
- isDisabled: ae,
580
- value: te,
581
- onChange: b,
579
+ isDisabled: ie,
580
+ value: x,
581
+ onChange: S,
582
582
  validate: (e) => {
583
583
  if (!e) return d.auth.fieldRequired;
584
584
  let t = u?.minPasswordLength, n = u?.maxPasswordLength;
@@ -586,32 +586,32 @@ function $e({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
586
586
  if (n && e.length > n) return d.auth.tooLong.replace("{{max}}", String(n));
587
587
  },
588
588
  children: [
589
- /* @__PURE__ */ Q(R, { children: d.auth.password }),
590
- /* @__PURE__ */ Q(I, {
589
+ /* @__PURE__ */ Q(z, { children: d.auth.password }),
590
+ /* @__PURE__ */ Q(L, {
591
591
  placeholder: d.auth.passwordPlaceholder,
592
592
  variant: o === "transparent" ? "primary" : "secondary",
593
593
  required: !0
594
594
  }),
595
- /* @__PURE__ */ Q(N, {})
595
+ /* @__PURE__ */ Q(P, {})
596
596
  ]
597
597
  }),
598
- u?.rememberMe && /* @__PURE__ */ $(j, {
598
+ u?.rememberMe && /* @__PURE__ */ Q(M, {
599
599
  name: "rememberMe",
600
- isDisabled: ae,
600
+ isDisabled: ie,
601
601
  variant: o === "transparent" ? "primary" : "secondary",
602
- children: [/* @__PURE__ */ Q(j.Control, { children: /* @__PURE__ */ Q(j.Indicator, {}) }), /* @__PURE__ */ Q(j.Content, { children: /* @__PURE__ */ Q(R, { children: d.auth.rememberMe }) })]
602
+ children: /* @__PURE__ */ $(M.Content, { children: [/* @__PURE__ */ Q(M.Control, { children: /* @__PURE__ */ Q(M.Indicator, {}) }), d.auth.rememberMe] })
603
603
  }),
604
- oe && /* @__PURE__ */ Q("div", {
604
+ ae && /* @__PURE__ */ Q("div", {
605
605
  className: "flex justify-center",
606
- children: oe
606
+ children: ae
607
607
  }),
608
608
  /* @__PURE__ */ $("div", {
609
609
  className: "flex flex-col gap-3",
610
- children: [/* @__PURE__ */ $(O, {
610
+ children: [/* @__PURE__ */ $(k, {
611
611
  type: "submit",
612
612
  className: "w-full",
613
- isPending: ae,
614
- children: [S && /* @__PURE__ */ Q(G, {
613
+ isPending: ie,
614
+ children: [C && /* @__PURE__ */ Q(G, {
615
615
  color: "current",
616
616
  size: "sm"
617
617
  }), d.auth.signIn]
@@ -619,21 +619,21 @@ function $e({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
619
619
  })
620
620
  ]
621
621
  }),
622
- i === "bottom" && /* @__PURE__ */ $(Z, { children: [w && /* @__PURE__ */ Q(e, { children: d.auth.or }), !!h?.length && /* @__PURE__ */ Q(r, { socialLayout: n })] })
622
+ i === "bottom" && /* @__PURE__ */ $(Z, { children: [T && /* @__PURE__ */ Q(e, { children: d.auth.or }), !!h?.length && /* @__PURE__ */ Q(r, { socialLayout: n })] })
623
623
  ]
624
624
  }),
625
- /* @__PURE__ */ $(A.Footer, {
625
+ /* @__PURE__ */ $(j.Footer, {
626
626
  className: "flex-col gap-3",
627
- children: [u?.enabled && u?.forgotPassword && /* @__PURE__ */ Q(z, {
627
+ children: [u?.enabled && u?.forgotPassword && /* @__PURE__ */ Q(B, {
628
628
  href: `${c.auth}/${g.auth.forgotPassword}`,
629
- className: "no-underline hover:underline",
629
+ className: "text-sm no-underline hover:underline",
630
630
  children: d.auth.forgotPasswordLink
631
- }), u?.enabled && /* @__PURE__ */ $(De, {
631
+ }), u?.enabled && /* @__PURE__ */ $(Ee, {
632
632
  className: "text-sm",
633
633
  children: [
634
634
  d.auth.needToCreateAnAccount,
635
635
  " ",
636
- /* @__PURE__ */ Q(z, {
636
+ /* @__PURE__ */ Q(B, {
637
637
  href: `${c.auth}/${g.auth.signUp}`,
638
638
  className: "text-accent no-underline hover:underline decoration-accent-hover",
639
639
  children: d.auth.signUp
@@ -647,7 +647,7 @@ function $e({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
647
647
  //#endregion
648
648
  //#region src/components/auth/sign-out.tsx
649
649
  function et({ className: e }) {
650
- let { authClient: t, basePaths: n, navigate: r, viewPaths: i } = m(), { mutate: a } = C(t, {
650
+ let { authClient: t, basePaths: n, navigate: r, viewPaths: i } = m(), { mutate: a } = w(t, {
651
651
  onError: () => {
652
652
  r({
653
653
  to: `${n.auth}/${i.auth.signIn}`,
@@ -669,18 +669,18 @@ function et({ className: e }) {
669
669
  //#endregion
670
670
  //#region src/components/auth/sign-up.tsx
671
671
  function tt({ className: t, socialLayout: n, socialPosition: i = "bottom", variant: o }) {
672
- let { additionalFields: s, authClient: c, basePaths: u, emailAndPassword: d, localization: f, plugins: p, redirectTo: h, socialProviders: g, viewPaths: _, navigate: y } = m(), { fetchOptions: ee, resetFetchOptions: te } = v(), [b, x] = X(""), [ne, re] = X(""), { mutate: S, isPending: ie } = ae(c, {
672
+ let { additionalFields: s, authClient: c, basePaths: u, emailAndPassword: d, localization: f, plugins: p, redirectTo: h, socialProviders: g, viewPaths: _, navigate: y } = m(), { fetchOptions: b, resetFetchOptions: x } = v(), [S, ee] = X(""), [te, ne] = X(""), { mutate: C, isPending: re } = ie(c, {
673
673
  onError: () => {
674
- x(""), re(""), te();
674
+ ee(""), ne(""), x();
675
675
  },
676
676
  onSuccess: () => {
677
677
  d?.requireEmailVerification ? (Y.success(f.auth.verifyYourEmail), y({ to: `${u.auth}/${_.auth.signIn}` })) : y({ to: h });
678
678
  }
679
- }), [C, oe] = X(!1), [w, se] = X(!1), T = We({ mutationKey: a.signIn.all }) + We({ mutationKey: a.signUp.all }) > 0, ce = p.find((e) => e.captchaComponent)?.captchaComponent, le = async (e) => {
679
+ }), [w, ae] = X(!1), [T, oe] = X(!1), E = We({ mutationKey: a.signIn.all }) + We({ mutationKey: a.signUp.all }) > 0, se = p.find((e) => e.captchaComponent)?.captchaComponent, ce = async (e) => {
680
680
  e.preventDefault();
681
681
  let t = new FormData(e.currentTarget), n = t.get("name") ?? "", r = t.get("email");
682
- if (d?.confirmPassword && b !== ne) {
683
- Y.danger(f.auth.passwordsDoNotMatch), x(""), re("");
682
+ if (d?.confirmPassword && S !== te) {
683
+ Y.danger(f.auth.passwordsDoNotMatch), ee(""), ne("");
684
684
  return;
685
685
  }
686
686
  let i = {};
@@ -695,71 +695,71 @@ function tt({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
695
695
  }
696
696
  n !== void 0 && (i[e.name] = n);
697
697
  }
698
- S({
698
+ C({
699
699
  name: n,
700
700
  email: r,
701
- password: b,
701
+ password: S,
702
702
  ...i,
703
- fetchOptions: ee
703
+ fetchOptions: b
704
704
  });
705
- }, ue = d?.enabled && !!g?.length;
706
- return /* @__PURE__ */ $(A, {
705
+ }, le = d?.enabled && !!g?.length;
706
+ return /* @__PURE__ */ $(j, {
707
707
  className: J("w-full max-w-sm gap-4 md:p-6", t),
708
708
  variant: o,
709
709
  children: [
710
- /* @__PURE__ */ Q(A.Header, { children: /* @__PURE__ */ Q(A.Title, {
710
+ /* @__PURE__ */ Q(j.Header, { children: /* @__PURE__ */ Q(j.Title, {
711
711
  className: "text-xl font-semibold mb-1",
712
712
  children: f.auth.signUp
713
713
  }) }),
714
- /* @__PURE__ */ $(A.Content, {
714
+ /* @__PURE__ */ $(j.Content, {
715
715
  className: "gap-4",
716
716
  children: [
717
- i === "top" && /* @__PURE__ */ $(Z, { children: [!!g?.length && /* @__PURE__ */ Q(r, { socialLayout: n }), ue && /* @__PURE__ */ Q(e, { children: f.auth.or })] }),
718
- d?.enabled && /* @__PURE__ */ $(F, {
719
- onSubmit: le,
717
+ i === "top" && /* @__PURE__ */ $(Z, { children: [!!g?.length && /* @__PURE__ */ Q(r, { socialLayout: n }), le && /* @__PURE__ */ Q(e, { children: f.auth.or })] }),
718
+ d?.enabled && /* @__PURE__ */ $(I, {
719
+ onSubmit: ce,
720
720
  className: "flex flex-col gap-4",
721
721
  children: [
722
722
  d.name !== !1 && /* @__PURE__ */ $(q, {
723
723
  name: "name",
724
724
  type: "text",
725
725
  autoComplete: "name",
726
- isDisabled: T,
726
+ isDisabled: E,
727
727
  validate: (e) => {
728
728
  if (!e) return f.auth.fieldRequired;
729
729
  },
730
730
  children: [
731
- /* @__PURE__ */ Q(R, { children: f.auth.name }),
732
- /* @__PURE__ */ Q(I, {
731
+ /* @__PURE__ */ Q(z, { children: f.auth.name }),
732
+ /* @__PURE__ */ Q(L, {
733
733
  placeholder: f.auth.namePlaceholder,
734
734
  required: !0,
735
735
  variant: o === "transparent" ? "primary" : "secondary"
736
736
  }),
737
- /* @__PURE__ */ Q(N, {})
737
+ /* @__PURE__ */ Q(P, {})
738
738
  ]
739
739
  }),
740
740
  /* @__PURE__ */ $(q, {
741
741
  name: "email",
742
742
  type: "email",
743
743
  autoComplete: "email",
744
- isDisabled: T,
744
+ isDisabled: E,
745
745
  validate: (e) => {
746
746
  if (!e) return f.auth.fieldRequired;
747
747
  if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)) return f.auth.invalidEmail;
748
748
  },
749
749
  children: [
750
- /* @__PURE__ */ Q(R, { children: f.auth.email }),
751
- /* @__PURE__ */ Q(I, {
750
+ /* @__PURE__ */ Q(z, { children: f.auth.email }),
751
+ /* @__PURE__ */ Q(L, {
752
752
  placeholder: f.auth.emailPlaceholder,
753
753
  required: !0,
754
754
  variant: o === "transparent" ? "primary" : "secondary"
755
755
  }),
756
- /* @__PURE__ */ Q(N, {})
756
+ /* @__PURE__ */ Q(P, {})
757
757
  ]
758
758
  }),
759
759
  s?.map((e) => e.signUp === "above" && /* @__PURE__ */ Q(Xe, {
760
760
  name: e.name,
761
761
  field: e,
762
- isPending: T,
762
+ isPending: E,
763
763
  variant: o
764
764
  }, e.name)),
765
765
  /* @__PURE__ */ $(q, {
@@ -767,9 +767,9 @@ function tt({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
767
767
  maxLength: d?.maxPasswordLength,
768
768
  name: "password",
769
769
  autoComplete: "new-password",
770
- isDisabled: T,
771
- value: b,
772
- onChange: x,
770
+ isDisabled: E,
771
+ value: S,
772
+ onChange: ee,
773
773
  validate: (e) => {
774
774
  if (!e) return f.auth.fieldRequired;
775
775
  let t = d?.minPasswordLength, n = d?.maxPasswordLength;
@@ -777,28 +777,28 @@ function tt({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
777
777
  if (n && e.length > n) return f.auth.tooLong.replace("{{max}}", String(n));
778
778
  },
779
779
  children: [
780
- /* @__PURE__ */ Q(R, { children: f.auth.password }),
781
- /* @__PURE__ */ $(L, {
780
+ /* @__PURE__ */ Q(z, { children: f.auth.password }),
781
+ /* @__PURE__ */ $(R, {
782
782
  variant: o === "transparent" ? "primary" : "secondary",
783
- children: [/* @__PURE__ */ Q(L.Input, {
783
+ children: [/* @__PURE__ */ Q(R.Input, {
784
784
  placeholder: f.auth.passwordPlaceholder,
785
- type: C ? "text" : "password",
785
+ type: w ? "text" : "password",
786
786
  name: "password",
787
787
  required: !0
788
- }), /* @__PURE__ */ Q(L.Suffix, {
788
+ }), /* @__PURE__ */ Q(R.Suffix, {
789
789
  className: "px-0",
790
- children: /* @__PURE__ */ Q(O, {
790
+ children: /* @__PURE__ */ Q(k, {
791
791
  isIconOnly: !0,
792
- "aria-label": C ? f.auth.hidePassword : f.auth.showPassword,
792
+ "aria-label": w ? f.auth.hidePassword : f.auth.showPassword,
793
793
  size: "sm",
794
794
  variant: "ghost",
795
- onPress: () => oe(!C),
796
- isDisabled: T,
797
- children: Q(C ? D : E, {})
795
+ onPress: () => ae(!w),
796
+ isDisabled: E,
797
+ children: Q(w ? O : D, {})
798
798
  })
799
799
  })]
800
800
  }),
801
- /* @__PURE__ */ Q(N, {})
801
+ /* @__PURE__ */ Q(P, {})
802
802
  ]
803
803
  }),
804
804
  d?.confirmPassword && /* @__PURE__ */ $(q, {
@@ -806,9 +806,9 @@ function tt({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
806
806
  maxLength: d?.maxPasswordLength,
807
807
  name: "confirmPassword",
808
808
  autoComplete: "new-password",
809
- isDisabled: T,
810
- value: ne,
811
- onChange: re,
809
+ isDisabled: E,
810
+ value: te,
811
+ onChange: ne,
812
812
  validate: (e) => {
813
813
  if (!e) return f.auth.fieldRequired;
814
814
  let t = d?.minPasswordLength, n = d?.maxPasswordLength;
@@ -816,47 +816,47 @@ function tt({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
816
816
  if (n && e.length > n) return f.auth.tooLong.replace("{{max}}", String(n));
817
817
  },
818
818
  children: [
819
- /* @__PURE__ */ Q(R, { children: f.auth.confirmPassword }),
820
- /* @__PURE__ */ $(L, {
819
+ /* @__PURE__ */ Q(z, { children: f.auth.confirmPassword }),
820
+ /* @__PURE__ */ $(R, {
821
821
  variant: o === "transparent" ? "primary" : "secondary",
822
- children: [/* @__PURE__ */ Q(L.Input, {
822
+ children: [/* @__PURE__ */ Q(R.Input, {
823
823
  name: "confirmPassword",
824
824
  placeholder: f.auth.confirmPasswordPlaceholder,
825
- type: w ? "text" : "password",
825
+ type: T ? "text" : "password",
826
826
  required: !0
827
- }), /* @__PURE__ */ Q(L.Suffix, {
827
+ }), /* @__PURE__ */ Q(R.Suffix, {
828
828
  className: "px-0",
829
- children: /* @__PURE__ */ Q(O, {
829
+ children: /* @__PURE__ */ Q(k, {
830
830
  isIconOnly: !0,
831
- "aria-label": w ? f.auth.hidePassword : f.auth.showPassword,
831
+ "aria-label": T ? f.auth.hidePassword : f.auth.showPassword,
832
832
  size: "sm",
833
833
  variant: "ghost",
834
- onPress: () => se(!w),
835
- isDisabled: T,
836
- children: Q(w ? D : E, {})
834
+ onPress: () => oe(!T),
835
+ isDisabled: E,
836
+ children: Q(T ? O : D, {})
837
837
  })
838
838
  })]
839
839
  }),
840
- /* @__PURE__ */ Q(N, {})
840
+ /* @__PURE__ */ Q(P, {})
841
841
  ]
842
842
  }),
843
843
  s?.map((e) => e.signUp && e.signUp !== "above" && /* @__PURE__ */ Q(Xe, {
844
844
  name: e.name,
845
845
  field: e,
846
- isPending: T,
846
+ isPending: E,
847
847
  variant: o
848
848
  }, e.name)),
849
- ce && /* @__PURE__ */ Q("div", {
849
+ se && /* @__PURE__ */ Q("div", {
850
850
  className: "flex justify-center",
851
- children: ce
851
+ children: se
852
852
  }),
853
853
  /* @__PURE__ */ $("div", {
854
854
  className: "flex flex-col gap-3",
855
- children: [/* @__PURE__ */ $(O, {
855
+ children: [/* @__PURE__ */ $(k, {
856
856
  type: "submit",
857
857
  className: "w-full",
858
- isPending: T,
859
- children: [ie && /* @__PURE__ */ Q(G, {
858
+ isPending: E,
859
+ children: [re && /* @__PURE__ */ Q(G, {
860
860
  color: "current",
861
861
  size: "sm"
862
862
  }), f.auth.signUp]
@@ -864,17 +864,17 @@ function tt({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
864
864
  })
865
865
  ]
866
866
  }),
867
- i === "bottom" && /* @__PURE__ */ $(Z, { children: [ue && /* @__PURE__ */ Q(e, { children: f.auth.or }), !!g?.length && /* @__PURE__ */ Q(r, { socialLayout: n })] })
867
+ i === "bottom" && /* @__PURE__ */ $(Z, { children: [le && /* @__PURE__ */ Q(e, { children: f.auth.or }), !!g?.length && /* @__PURE__ */ Q(r, { socialLayout: n })] })
868
868
  ]
869
869
  }),
870
- /* @__PURE__ */ Q(A.Footer, {
870
+ /* @__PURE__ */ Q(j.Footer, {
871
871
  className: "flex-col gap-3",
872
- children: /* @__PURE__ */ $(De, {
872
+ children: /* @__PURE__ */ $(Ee, {
873
873
  className: "text-sm",
874
874
  children: [
875
875
  f.auth.alreadyHaveAnAccount,
876
876
  " ",
877
- /* @__PURE__ */ Q(z, {
877
+ /* @__PURE__ */ Q(B, {
878
878
  href: `${u.auth}/${_.auth.signIn}`,
879
879
  className: "text-accent no-underline hover:underline decoration-accent-hover",
880
880
  children: f.auth.signIn
@@ -969,7 +969,7 @@ function ot({ children: e, navigate: t, ...n }) {
969
969
  return /* @__PURE__ */ Q(d, {
970
970
  navigate: t,
971
971
  ...n,
972
- children: /* @__PURE__ */ $(Oe, {
972
+ children: /* @__PURE__ */ $(De, {
973
973
  navigate: (e) => t({ to: e }),
974
974
  children: [e, /* @__PURE__ */ Q(at, {})]
975
975
  })
@@ -978,7 +978,7 @@ function ot({ children: e, navigate: t, ...n }) {
978
978
  //#endregion
979
979
  //#region src/components/auth/settings/account/change-email.tsx
980
980
  function st({ className: e, variant: t, ...n }) {
981
- let { authClient: r, localization: i, baseURL: a, viewPaths: o } = m(), { data: s } = S(r), { mutate: c, isPending: l } = g(r, { onSuccess: () => Y.success(i.settings.changeEmailSuccess) });
981
+ let { authClient: r, localization: i, baseURL: a, viewPaths: o } = m(), { data: s } = C(r), { mutate: c, isPending: l } = g(r, { onSuccess: () => Y.success(i.settings.changeEmailSuccess) });
982
982
  function u(e) {
983
983
  e.preventDefault(), c({
984
984
  newEmail: new FormData(e.currentTarget).get("email"),
@@ -988,30 +988,30 @@ function st({ className: e, variant: t, ...n }) {
988
988
  return /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("h2", {
989
989
  className: J("text-sm font-semibold mb-3"),
990
990
  children: i.settings.changeEmail
991
- }), /* @__PURE__ */ Q(A, {
991
+ }), /* @__PURE__ */ Q(j, {
992
992
  className: J("p-4 gap-4", e),
993
993
  variant: t,
994
994
  ...n,
995
- children: /* @__PURE__ */ Q(A.Content, { children: /* @__PURE__ */ Q(F, {
995
+ children: /* @__PURE__ */ Q(j.Content, { children: /* @__PURE__ */ Q(I, {
996
996
  onSubmit: u,
997
- children: /* @__PURE__ */ $(P, {
997
+ children: /* @__PURE__ */ $(F, {
998
998
  className: "w-full gap-4",
999
- children: [/* @__PURE__ */ Q(P.Group, { children: /* @__PURE__ */ $(q, {
999
+ children: [/* @__PURE__ */ Q(F.Group, { children: /* @__PURE__ */ $(q, {
1000
1000
  name: "email",
1001
1001
  type: "email",
1002
1002
  defaultValue: s?.user.email,
1003
1003
  isDisabled: l || !s,
1004
1004
  children: [
1005
- /* @__PURE__ */ Q(R, { children: i.auth.email }),
1006
- s ? /* @__PURE__ */ Q(I, {
1005
+ /* @__PURE__ */ Q(z, { children: i.auth.email }),
1006
+ s ? /* @__PURE__ */ Q(L, {
1007
1007
  required: !0,
1008
1008
  variant: t === "transparent" ? "primary" : "secondary",
1009
1009
  autoComplete: "email",
1010
1010
  placeholder: i.auth.emailPlaceholder
1011
- }) : /* @__PURE__ */ Q(U, { className: "h-10 md:h-9 w-full rounded-xl" }),
1012
- /* @__PURE__ */ Q(N, {})
1011
+ }) : /* @__PURE__ */ Q(W, { className: "h-10 md:h-9 w-full rounded-xl" }),
1012
+ /* @__PURE__ */ Q(P, {})
1013
1013
  ]
1014
- }, `${s?.user.id}-${s?.user.email}-email`) }), /* @__PURE__ */ Q(P.Actions, { children: /* @__PURE__ */ $(O, {
1014
+ }, `${s?.user.id}-${s?.user.email}-email`) }), /* @__PURE__ */ Q(F.Actions, { children: /* @__PURE__ */ $(k, {
1015
1015
  type: "submit",
1016
1016
  isPending: l,
1017
1017
  isDisabled: !s,
@@ -1028,7 +1028,7 @@ function st({ className: e, variant: t, ...n }) {
1028
1028
  //#endregion
1029
1029
  //#region src/components/auth/settings/account/change-avatar.tsx
1030
1030
  function ct({ className: e }) {
1031
- let { authClient: t, localization: r, avatar: i } = m(), { data: a } = S(t), { mutate: o, isPending: c } = w(t), l = Ve(null), [u, d] = X(!1), [f, p] = X(!1), h = c || u || f;
1031
+ let { authClient: t, localization: r, avatar: i } = m(), { data: a } = C(t), { mutate: o, isPending: c } = T(t), l = Ve(null), [u, d] = X(!1), [f, p] = X(!1), h = c || u || f;
1032
1032
  async function g(e) {
1033
1033
  let t = e.target.files?.[0];
1034
1034
  if (t) {
@@ -1059,7 +1059,7 @@ function ct({ className: e }) {
1059
1059
  return /* @__PURE__ */ $("div", {
1060
1060
  className: J("flex flex-col gap-1", e),
1061
1061
  children: [
1062
- /* @__PURE__ */ Q(R, {
1062
+ /* @__PURE__ */ Q(z, {
1063
1063
  isDisabled: !a,
1064
1064
  children: r.settings.avatar
1065
1065
  }),
@@ -1072,7 +1072,7 @@ function ct({ className: e }) {
1072
1072
  }),
1073
1073
  /* @__PURE__ */ $("div", {
1074
1074
  className: "flex items-center gap-4",
1075
- children: [/* @__PURE__ */ Q(O, {
1075
+ children: [/* @__PURE__ */ Q(k, {
1076
1076
  type: "button",
1077
1077
  isIconOnly: !0,
1078
1078
  variant: "ghost",
@@ -1083,23 +1083,23 @@ function ct({ className: e }) {
1083
1083
  size: "lg",
1084
1084
  isPending: h
1085
1085
  })
1086
- }), /* @__PURE__ */ $(M, { children: [/* @__PURE__ */ $(O, {
1086
+ }), /* @__PURE__ */ $(N, { children: [/* @__PURE__ */ $(k, {
1087
1087
  isDisabled: !a || h,
1088
1088
  size: "sm",
1089
1089
  variant: "secondary",
1090
1090
  children: [h && /* @__PURE__ */ Q(G, { size: "sm" }), r.settings.changeAvatar]
1091
- }), /* @__PURE__ */ Q(M.Popover, {
1091
+ }), /* @__PURE__ */ Q(N.Popover, {
1092
1092
  className: "min-w-fit",
1093
- children: /* @__PURE__ */ $(M.Menu, { children: [/* @__PURE__ */ $(M.Item, {
1093
+ children: /* @__PURE__ */ $(N.Menu, { children: [/* @__PURE__ */ $(N.Item, {
1094
1094
  textValue: r.settings.uploadAvatar,
1095
1095
  onAction: () => l.current?.click(),
1096
- children: [/* @__PURE__ */ Q(ue, { className: "text-muted" }), /* @__PURE__ */ Q(R, { children: r.settings.uploadAvatar })]
1097
- }), /* @__PURE__ */ $(M.Item, {
1096
+ children: [/* @__PURE__ */ Q(le, { className: "text-muted" }), /* @__PURE__ */ Q(z, { children: r.settings.uploadAvatar })]
1097
+ }), /* @__PURE__ */ $(N.Item, {
1098
1098
  textValue: r.settings.deleteAvatar,
1099
1099
  isDisabled: !a?.user.image,
1100
1100
  onAction: _,
1101
1101
  variant: "danger",
1102
- children: [/* @__PURE__ */ Q(xe, { className: "text-danger" }), /* @__PURE__ */ Q(R, { children: r.settings.deleteAvatar })]
1102
+ children: [/* @__PURE__ */ Q(be, { className: "text-danger" }), /* @__PURE__ */ Q(z, { children: r.settings.deleteAvatar })]
1103
1103
  })] })
1104
1104
  })] })]
1105
1105
  })
@@ -1109,7 +1109,7 @@ function ct({ className: e }) {
1109
1109
  //#endregion
1110
1110
  //#region src/components/auth/settings/account/user-profile.tsx
1111
1111
  function lt({ className: e, variant: t, ...n }) {
1112
- let { additionalFields: r, authClient: i, localization: a } = m(), { data: o } = S(i), { mutate: s, isPending: c } = w(i, { onSuccess: () => Y.success(a.settings.profileUpdatedSuccess) });
1112
+ let { additionalFields: r, authClient: i, localization: a } = m(), { data: o } = C(i), { mutate: s, isPending: c } = T(i, { onSuccess: () => Y.success(a.settings.profileUpdatedSuccess) });
1113
1113
  async function u(e) {
1114
1114
  e.preventDefault();
1115
1115
  let t = new FormData(e.currentTarget), n = t.get("name"), i = {};
@@ -1132,11 +1132,11 @@ function lt({ className: e, variant: t, ...n }) {
1132
1132
  return /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("h2", {
1133
1133
  className: J("text-sm font-semibold mb-3"),
1134
1134
  children: a.settings.userProfile
1135
- }), /* @__PURE__ */ Q(A, {
1135
+ }), /* @__PURE__ */ Q(j, {
1136
1136
  className: J("p-4 gap-4", e),
1137
1137
  variant: t,
1138
1138
  ...n,
1139
- children: /* @__PURE__ */ Q(A.Content, { children: /* @__PURE__ */ $(F, {
1139
+ children: /* @__PURE__ */ Q(j.Content, { children: /* @__PURE__ */ $(I, {
1140
1140
  onSubmit: u,
1141
1141
  className: "flex flex-col gap-4",
1142
1142
  children: [
@@ -1146,19 +1146,19 @@ function lt({ className: e, variant: t, ...n }) {
1146
1146
  defaultValue: o?.user.name,
1147
1147
  isDisabled: c || !o,
1148
1148
  children: [
1149
- /* @__PURE__ */ Q(R, { children: a.auth.name }),
1150
- /* @__PURE__ */ Q(I, {
1149
+ /* @__PURE__ */ Q(z, { children: a.auth.name }),
1150
+ /* @__PURE__ */ Q(L, {
1151
1151
  className: J(!o && "hidden"),
1152
1152
  autoComplete: "name",
1153
1153
  placeholder: a.auth.name,
1154
1154
  variant: t === "transparent" ? "primary" : "secondary"
1155
1155
  }),
1156
- !o && /* @__PURE__ */ Q(U, { className: "h-10 md:h-9 w-full rounded-xl" }),
1157
- /* @__PURE__ */ Q(N, {})
1156
+ !o && /* @__PURE__ */ Q(W, { className: "h-10 md:h-9 w-full rounded-xl" }),
1157
+ /* @__PURE__ */ Q(P, {})
1158
1158
  ]
1159
1159
  }, `${o?.user?.id}-${o?.user?.name}-name`),
1160
1160
  r?.filter((e) => e.profile !== !1).map((e) => {
1161
- if (!o) return e.inputType === "hidden" ? null : /* @__PURE__ */ Q(U, { className: "h-10 md:h-9 w-full rounded-xl" }, e.name);
1161
+ if (!o) return e.inputType === "hidden" ? null : /* @__PURE__ */ Q(W, { className: "h-10 md:h-9 w-full rounded-xl" }, e.name);
1162
1162
  let n = o.user[e.name], r = `${o.user.id}-${e.name}-${n instanceof Date ? n.toISOString() : String(n ?? "")}`;
1163
1163
  return /* @__PURE__ */ Q(Xe, {
1164
1164
  name: e.name,
@@ -1170,7 +1170,7 @@ function lt({ className: e, variant: t, ...n }) {
1170
1170
  variant: t
1171
1171
  }, r);
1172
1172
  }),
1173
- /* @__PURE__ */ $(O, {
1173
+ /* @__PURE__ */ $(k, {
1174
1174
  type: "submit",
1175
1175
  isPending: c,
1176
1176
  isDisabled: !o,
@@ -1215,20 +1215,20 @@ function dt(e) {
1215
1215
  return n.format(0, "second");
1216
1216
  }
1217
1217
  function ft({ activeSession: e }) {
1218
- let { authClient: t, basePaths: n, localization: r, viewPaths: i, navigate: a } = m(), { data: o } = S(t, { refetchOnMount: !1 }), { mutate: s, isPending: c } = ne(t, { onSuccess: () => Y.success(r.settings.revokeSessionSuccess) }), l = e.token === o?.session.token, u = Ke.parse(e.userAgent || "");
1218
+ let { authClient: t, basePaths: n, localization: r, viewPaths: i, navigate: a } = m(), { data: o } = C(t, { refetchOnMount: !1 }), { mutate: s, isPending: c } = te(t, { onSuccess: () => Y.success(r.settings.revokeSessionSuccess) }), l = e.token === o?.session.token, u = Ke.parse(e.userAgent || "");
1219
1219
  return /* @__PURE__ */ $("div", {
1220
1220
  className: "flex items-center gap-3",
1221
1221
  children: [
1222
1222
  /* @__PURE__ */ Q("div", {
1223
1223
  className: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-surface-secondary",
1224
- children: u.platform.type === "mobile" || u.platform.type === "tablet" ? /* @__PURE__ */ Q(be, { className: "size-4.5" }) : /* @__PURE__ */ Q(fe, { className: "size-4.5" })
1224
+ children: u.platform.type === "mobile" || u.platform.type === "tablet" ? /* @__PURE__ */ Q(ye, { className: "size-4.5" }) : /* @__PURE__ */ Q(de, { className: "size-4.5" })
1225
1225
  }),
1226
1226
  /* @__PURE__ */ $("div", {
1227
1227
  className: "flex flex-col min-w-0",
1228
1228
  children: [/* @__PURE__ */ $("span", {
1229
1229
  className: "text-sm font-medium truncate",
1230
1230
  children: [u.browser.name || "Unknown Browser", u.os.name ? `, ${u.os.name}` : ""]
1231
- }), l ? /* @__PURE__ */ Q(Ce, {
1231
+ }), l ? /* @__PURE__ */ Q(Se, {
1232
1232
  color: "accent",
1233
1233
  size: "sm",
1234
1234
  children: r.settings.currentSession
@@ -1237,7 +1237,7 @@ function ft({ activeSession: e }) {
1237
1237
  children: dt(e.createdAt)
1238
1238
  })]
1239
1239
  }),
1240
- /* @__PURE__ */ $(O, {
1240
+ /* @__PURE__ */ $(k, {
1241
1241
  className: "ml-auto shrink-0",
1242
1242
  variant: "outline",
1243
1243
  size: "sm",
@@ -1247,7 +1247,7 @@ function ft({ activeSession: e }) {
1247
1247
  children: [c ? /* @__PURE__ */ Q(G, {
1248
1248
  color: "current",
1249
1249
  size: "sm"
1250
- }) : Q(l ? se : Se, {}), l ? r.auth.signOut : r.settings.revoke]
1250
+ }) : Q(l ? oe : xe, {}), l ? r.auth.signOut : r.settings.revoke]
1251
1251
  })
1252
1252
  ]
1253
1253
  });
@@ -1255,15 +1255,15 @@ function ft({ activeSession: e }) {
1255
1255
  //#endregion
1256
1256
  //#region src/components/auth/settings/security/active-sessions.tsx
1257
1257
  function pt({ className: e, variant: t, ...n }) {
1258
- let { authClient: r, localization: i } = m(), { data: a } = S(r), { data: o, isPending: s } = te(r), c = o && [...o].sort((e, t) => e.id === a?.session.id ? -1 : +(t.id === a?.session.id));
1258
+ let { authClient: r, localization: i } = m(), { data: a } = C(r), { data: o, isPending: s } = x(r), c = o && [...o].sort((e, t) => e.id === a?.session.id ? -1 : +(t.id === a?.session.id));
1259
1259
  return /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("h2", {
1260
1260
  className: J("text-sm font-semibold mb-3"),
1261
1261
  children: i.settings.activeSessions
1262
- }), /* @__PURE__ */ Q(A, {
1262
+ }), /* @__PURE__ */ Q(j, {
1263
1263
  className: J(e),
1264
1264
  variant: t,
1265
1265
  ...n,
1266
- children: /* @__PURE__ */ Q(A.Content, {
1266
+ children: /* @__PURE__ */ Q(j.Content, {
1267
1267
  className: "gap-0",
1268
1268
  children: s ? /* @__PURE__ */ Q(mt, {}) : c?.map((e, t) => /* @__PURE__ */ $("div", { children: [t > 0 && /* @__PURE__ */ Q("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ Q(ft, { activeSession: e })] }, e.id))
1269
1269
  })
@@ -1274,9 +1274,9 @@ function mt() {
1274
1274
  className: "flex items-center justify-between",
1275
1275
  children: /* @__PURE__ */ $("div", {
1276
1276
  className: "flex items-center gap-3",
1277
- children: [/* @__PURE__ */ Q(U, { className: "size-10 rounded-xl" }), /* @__PURE__ */ $("div", {
1277
+ children: [/* @__PURE__ */ Q(W, { className: "size-10 rounded-xl" }), /* @__PURE__ */ $("div", {
1278
1278
  className: "flex flex-col gap-1",
1279
- children: [/* @__PURE__ */ Q(U, { className: "h-4 w-32 rounded-lg" }), /* @__PURE__ */ Q(U, { className: "h-3 w-24 rounded-lg" })]
1279
+ children: [/* @__PURE__ */ Q(W, { className: "h-4 w-32 rounded-lg" }), /* @__PURE__ */ Q(W, { className: "h-3 w-24 rounded-lg" })]
1280
1280
  })]
1281
1281
  })
1282
1282
  });
@@ -1284,7 +1284,7 @@ function mt() {
1284
1284
  //#endregion
1285
1285
  //#region src/components/auth/settings/security/change-password.tsx
1286
1286
  function ht({ className: e, variant: t, ...n }) {
1287
- let { authClient: r, emailAndPassword: i, localization: a } = m(), { data: o } = S(r), { data: s, isPending: c } = ee(r), l = s?.some((e) => e.providerId === "credential");
1287
+ let { authClient: r, emailAndPassword: i, localization: a } = m(), { data: o } = C(r), { data: s, isPending: c } = b(r), l = s?.some((e) => e.providerId === "credential");
1288
1288
  return !c && !l ? /* @__PURE__ */ Q(gt, {
1289
1289
  className: e,
1290
1290
  variant: t,
@@ -1299,7 +1299,7 @@ function ht({ className: e, variant: t, ...n }) {
1299
1299
  });
1300
1300
  }
1301
1301
  function gt({ className: e, variant: t, ...n }) {
1302
- let { authClient: r, localization: i, plugins: a } = m(), { data: o } = S(r), { fetchOptions: s, resetFetchOptions: c } = v(), { mutate: l, isPending: u } = b(r, {
1302
+ let { authClient: r, localization: i, plugins: a } = m(), { data: o } = C(r), { fetchOptions: s, resetFetchOptions: c } = v(), { mutate: l, isPending: u } = S(r, {
1303
1303
  onError: () => {
1304
1304
  c();
1305
1305
  },
@@ -1313,11 +1313,11 @@ function gt({ className: e, variant: t, ...n }) {
1313
1313
  return /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("h2", {
1314
1314
  className: J("text-sm font-semibold mb-3"),
1315
1315
  children: i.settings.changePassword
1316
- }), /* @__PURE__ */ Q(A, {
1316
+ }), /* @__PURE__ */ Q(j, {
1317
1317
  className: J(e),
1318
1318
  variant: t,
1319
1319
  ...n,
1320
- children: /* @__PURE__ */ $(A.Content, {
1320
+ children: /* @__PURE__ */ $(j.Content, {
1321
1321
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
1322
1322
  children: [/* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("p", {
1323
1323
  className: "text-sm font-medium leading-tight",
@@ -1327,7 +1327,7 @@ function gt({ className: e, variant: t, ...n }) {
1327
1327
  children: i.settings.setPasswordDescription
1328
1328
  })] }), /* @__PURE__ */ $("div", {
1329
1329
  className: "flex flex-col gap-3 items-start sm:items-end",
1330
- children: [d && /* @__PURE__ */ Q("div", { children: d }), /* @__PURE__ */ $(O, {
1330
+ children: [d && /* @__PURE__ */ Q("div", { children: d }), /* @__PURE__ */ $(k, {
1331
1331
  size: "sm",
1332
1332
  isPending: u,
1333
1333
  isDisabled: !o?.user.email,
@@ -1349,7 +1349,7 @@ function _t({ className: e, variant: t, emailAndPassword: n, localization: r, se
1349
1349
  onSuccess: () => {
1350
1350
  c(""), u(""), f(""), Y.success(r.settings.changePasswordSuccess);
1351
1351
  }
1352
- }), [g, v] = X(!1), [y, ee] = X(!1), te = (e) => {
1352
+ }), [g, v] = X(!1), [y, b] = X(!1), x = (e) => {
1353
1353
  if (e.preventDefault(), n?.confirmPassword && l !== d) {
1354
1354
  c(""), u(""), f(""), Y.danger(r.auth.passwordsDoNotMatch);
1355
1355
  return;
@@ -1363,15 +1363,15 @@ function _t({ className: e, variant: t, emailAndPassword: n, localization: r, se
1363
1363
  return /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("h2", {
1364
1364
  className: J("text-sm font-semibold mb-3"),
1365
1365
  children: r.settings.changePassword
1366
- }), /* @__PURE__ */ Q(A, {
1366
+ }), /* @__PURE__ */ Q(j, {
1367
1367
  className: J("p-4 gap-4", e),
1368
1368
  variant: t,
1369
1369
  ...a,
1370
- children: /* @__PURE__ */ Q(A.Content, { children: /* @__PURE__ */ Q(F, {
1371
- onSubmit: te,
1372
- children: /* @__PURE__ */ $(P, {
1370
+ children: /* @__PURE__ */ Q(j.Content, { children: /* @__PURE__ */ Q(I, {
1371
+ onSubmit: x,
1372
+ children: /* @__PURE__ */ $(F, {
1373
1373
  className: "w-full gap-4",
1374
- children: [/* @__PURE__ */ $(P.Group, { children: [
1374
+ children: [/* @__PURE__ */ $(F.Group, { children: [
1375
1375
  /* @__PURE__ */ $(q, {
1376
1376
  name: "currentPassword",
1377
1377
  type: "password",
@@ -1380,16 +1380,16 @@ function _t({ className: e, variant: t, emailAndPassword: n, localization: r, se
1380
1380
  value: s,
1381
1381
  onChange: c,
1382
1382
  children: [
1383
- /* @__PURE__ */ Q(R, { children: r.settings.currentPassword }),
1384
- /* @__PURE__ */ Q(I, {
1383
+ /* @__PURE__ */ Q(z, { children: r.settings.currentPassword }),
1384
+ /* @__PURE__ */ Q(L, {
1385
1385
  className: J(!i && "hidden"),
1386
1386
  autoComplete: "current-password",
1387
1387
  placeholder: r.settings.currentPasswordPlaceholder,
1388
1388
  required: !0,
1389
1389
  variant: t === "transparent" ? "primary" : "secondary"
1390
1390
  }),
1391
- !i && /* @__PURE__ */ Q(U, { className: "h-10 md:h-9 w-full rounded-xl" }),
1392
- /* @__PURE__ */ Q(N, {})
1391
+ !i && /* @__PURE__ */ Q(W, { className: "h-10 md:h-9 w-full rounded-xl" }),
1392
+ /* @__PURE__ */ Q(P, {})
1393
1393
  ]
1394
1394
  }),
1395
1395
  /* @__PURE__ */ $(q, {
@@ -1399,31 +1399,31 @@ function _t({ className: e, variant: t, emailAndPassword: n, localization: r, se
1399
1399
  value: l,
1400
1400
  onChange: u,
1401
1401
  children: [
1402
- /* @__PURE__ */ Q(R, { children: r.auth.newPassword }),
1403
- /* @__PURE__ */ $(L, {
1402
+ /* @__PURE__ */ Q(z, { children: r.auth.newPassword }),
1403
+ /* @__PURE__ */ $(R, {
1404
1404
  className: J(!i && "hidden"),
1405
1405
  variant: t === "transparent" ? "primary" : "secondary",
1406
- children: [/* @__PURE__ */ Q(L.Input, {
1406
+ children: [/* @__PURE__ */ Q(R.Input, {
1407
1407
  name: "newPassword",
1408
1408
  type: g ? "text" : "password",
1409
1409
  autoComplete: "new-password",
1410
1410
  placeholder: r.auth.newPasswordPlaceholder,
1411
1411
  required: !0
1412
- }), /* @__PURE__ */ Q(L.Suffix, {
1412
+ }), /* @__PURE__ */ Q(R.Suffix, {
1413
1413
  className: "px-0",
1414
- children: /* @__PURE__ */ Q(O, {
1414
+ children: /* @__PURE__ */ Q(k, {
1415
1415
  isIconOnly: !0,
1416
1416
  "aria-label": g ? r.auth.hidePassword : r.auth.showPassword,
1417
1417
  size: "sm",
1418
1418
  variant: "ghost",
1419
1419
  onPress: () => v(!g),
1420
1420
  isDisabled: h,
1421
- children: Q(g ? D : E, {})
1421
+ children: Q(g ? O : D, {})
1422
1422
  })
1423
1423
  })]
1424
1424
  }),
1425
- !i && /* @__PURE__ */ Q(U, { className: "h-10 md:h-9 w-full rounded-xl" }),
1426
- /* @__PURE__ */ Q(N, {})
1425
+ !i && /* @__PURE__ */ Q(W, { className: "h-10 md:h-9 w-full rounded-xl" }),
1426
+ /* @__PURE__ */ Q(P, {})
1427
1427
  ]
1428
1428
  }),
1429
1429
  n?.confirmPassword && /* @__PURE__ */ $(q, {
@@ -1434,34 +1434,34 @@ function _t({ className: e, variant: t, emailAndPassword: n, localization: r, se
1434
1434
  value: d,
1435
1435
  onChange: f,
1436
1436
  children: [
1437
- /* @__PURE__ */ Q(R, { children: r.auth.confirmPassword }),
1438
- /* @__PURE__ */ $(L, {
1437
+ /* @__PURE__ */ Q(z, { children: r.auth.confirmPassword }),
1438
+ /* @__PURE__ */ $(R, {
1439
1439
  className: J(!i && "hidden"),
1440
1440
  variant: t === "transparent" ? "primary" : "secondary",
1441
- children: [/* @__PURE__ */ Q(L.Input, {
1441
+ children: [/* @__PURE__ */ Q(R.Input, {
1442
1442
  name: "confirmPassword",
1443
1443
  type: y ? "text" : "password",
1444
1444
  autoComplete: "new-password",
1445
1445
  placeholder: r.auth.confirmPasswordPlaceholder,
1446
1446
  required: !0
1447
- }), /* @__PURE__ */ Q(L.Suffix, {
1447
+ }), /* @__PURE__ */ Q(R.Suffix, {
1448
1448
  className: "px-0",
1449
- children: /* @__PURE__ */ Q(O, {
1449
+ children: /* @__PURE__ */ Q(k, {
1450
1450
  isIconOnly: !0,
1451
1451
  "aria-label": y ? r.auth.hidePassword : r.auth.showPassword,
1452
1452
  size: "sm",
1453
1453
  variant: "ghost",
1454
- onPress: () => ee(!y),
1454
+ onPress: () => b(!y),
1455
1455
  isDisabled: h,
1456
- children: Q(y ? D : E, {})
1456
+ children: Q(y ? O : D, {})
1457
1457
  })
1458
1458
  })]
1459
1459
  }),
1460
- !i && /* @__PURE__ */ Q(U, { className: "h-10 md:h-9 w-full rounded-xl" }),
1461
- /* @__PURE__ */ Q(N, {})
1460
+ !i && /* @__PURE__ */ Q(W, { className: "h-10 md:h-9 w-full rounded-xl" }),
1461
+ /* @__PURE__ */ Q(P, {})
1462
1462
  ]
1463
1463
  })
1464
- ] }), /* @__PURE__ */ Q(P.Actions, { children: /* @__PURE__ */ $(O, {
1464
+ ] }), /* @__PURE__ */ Q(F.Actions, { children: /* @__PURE__ */ $(k, {
1465
1465
  type: "submit",
1466
1466
  isPending: h,
1467
1467
  isDisabled: !i,
@@ -1478,25 +1478,25 @@ function _t({ className: e, variant: t, emailAndPassword: n, localization: r, se
1478
1478
  //#endregion
1479
1479
  //#region src/components/auth/settings/security/linked-account.tsx
1480
1480
  function vt({ account: e, provider: t }) {
1481
- let { authClient: n, baseURL: r, localization: i } = m(), { data: a, isPending: o } = p(n, { query: { accountId: e?.accountId } }), { mutate: s, isPending: l } = y(n), { mutate: u, isPending: d } = oe(n, { onSuccess: () => Y.success(i.settings.accountUnlinked) }), h = f[t], g = c(t), _ = a?.data?.login || a?.data?.username || a?.user?.email || a?.user?.name || e?.accountId;
1481
+ let { authClient: n, baseURL: r, localization: i } = m(), { data: a, isPending: o } = p(n, { query: { accountId: e?.accountId } }), { mutate: s, isPending: l } = y(n), { mutate: u, isPending: d } = ae(n, { onSuccess: () => Y.success(i.settings.accountUnlinked) }), h = f[t], g = c(t), _ = a?.data?.login || a?.data?.username || a?.user?.email || a?.user?.name || e?.accountId;
1482
1482
  return /* @__PURE__ */ $("div", {
1483
1483
  className: "flex items-center gap-3",
1484
1484
  children: [
1485
1485
  /* @__PURE__ */ Q("div", {
1486
1486
  className: J("flex size-10 shrink-0 items-center justify-center rounded-xl bg-surface-secondary"),
1487
- children: Q(h || ve, { className: "size-4.5" })
1487
+ children: Q(h || _e, { className: "size-4.5" })
1488
1488
  }),
1489
1489
  /* @__PURE__ */ $("div", {
1490
1490
  className: "flex flex-col min-w-0",
1491
1491
  children: [/* @__PURE__ */ Q("span", {
1492
1492
  className: "text-sm font-medium leading-tight",
1493
1493
  children: g
1494
- }), e && o ? /* @__PURE__ */ Q(U, { className: "h-3 w-24 my-0.5 rounded-lg" }) : /* @__PURE__ */ Q("span", {
1494
+ }), e && o ? /* @__PURE__ */ Q(W, { className: "h-3 w-24 my-0.5 rounded-lg" }) : /* @__PURE__ */ Q("span", {
1495
1495
  className: "text-xs text-muted truncate",
1496
1496
  children: e ? _ : i.settings.linkProvider.replace("{{provider}}", g)
1497
1497
  })]
1498
1498
  }),
1499
- e ? /* @__PURE__ */ $(O, {
1499
+ e ? /* @__PURE__ */ $(k, {
1500
1500
  className: "ml-auto shrink-0",
1501
1501
  variant: "outline",
1502
1502
  size: "sm",
@@ -1506,8 +1506,8 @@ function vt({ account: e, provider: t }) {
1506
1506
  children: [d ? /* @__PURE__ */ Q(G, {
1507
1507
  color: "current",
1508
1508
  size: "sm"
1509
- }) : /* @__PURE__ */ Q(he, {}), i.settings.unlinkProvider.replace("{{provider}}", "").trim()]
1510
- }) : /* @__PURE__ */ $(O, {
1509
+ }) : /* @__PURE__ */ Q(me, {}), i.settings.unlinkProvider.replace("{{provider}}", "").trim()]
1510
+ }) : /* @__PURE__ */ $(k, {
1511
1511
  className: "ml-auto shrink-0",
1512
1512
  variant: "outline",
1513
1513
  size: "sm",
@@ -1520,7 +1520,7 @@ function vt({ account: e, provider: t }) {
1520
1520
  children: [l ? /* @__PURE__ */ Q(G, {
1521
1521
  color: "current",
1522
1522
  size: "sm"
1523
- }) : /* @__PURE__ */ Q(me, {}), i.settings.link]
1523
+ }) : /* @__PURE__ */ Q(pe, {}), i.settings.link]
1524
1524
  })
1525
1525
  ]
1526
1526
  });
@@ -1528,7 +1528,7 @@ function vt({ account: e, provider: t }) {
1528
1528
  //#endregion
1529
1529
  //#region src/components/auth/settings/security/linked-accounts.tsx
1530
1530
  function yt({ className: e, variant: t, ...n }) {
1531
- let { authClient: r, localization: i, multipleAccountsPerProvider: a, socialProviders: o } = m(), { data: s, isPending: c } = ee(r), l = s?.filter((e) => e.providerId !== "credential"), u = new Set(l?.map((e) => e.providerId)), d = a === !1 ? o?.filter((e) => !u.has(e)) : o, f = [...l?.map((e) => ({
1531
+ let { authClient: r, localization: i, multipleAccountsPerProvider: a, socialProviders: o } = m(), { data: s, isPending: c } = b(r), l = s?.filter((e) => e.providerId !== "credential"), u = new Set(l?.map((e) => e.providerId)), d = a === !1 ? o?.filter((e) => !u.has(e)) : o, f = [...l?.map((e) => ({
1532
1532
  key: e.id,
1533
1533
  account: e,
1534
1534
  provider: e.providerId
@@ -1540,11 +1540,11 @@ function yt({ className: e, variant: t, ...n }) {
1540
1540
  return /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("h2", {
1541
1541
  className: J("text-sm font-semibold mb-3"),
1542
1542
  children: i.settings.linkedAccounts
1543
- }), /* @__PURE__ */ Q(A, {
1543
+ }), /* @__PURE__ */ Q(j, {
1544
1544
  className: J(e),
1545
1545
  variant: t,
1546
1546
  ...n,
1547
- children: /* @__PURE__ */ Q(A.Content, {
1547
+ children: /* @__PURE__ */ Q(j.Content, {
1548
1548
  className: "gap-0",
1549
1549
  children: c ? o?.map((e, t) => /* @__PURE__ */ $("div", { children: [t > 0 && /* @__PURE__ */ Q("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ Q(bt, {})] }, e)) : f.map((e, t) => /* @__PURE__ */ $("div", { children: [t > 0 && /* @__PURE__ */ Q("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ Q(vt, {
1550
1550
  account: e.account,
@@ -1558,9 +1558,9 @@ function bt() {
1558
1558
  className: "flex items-center justify-between",
1559
1559
  children: /* @__PURE__ */ $("div", {
1560
1560
  className: "flex items-center gap-3",
1561
- children: [/* @__PURE__ */ Q(U, { className: "size-10 rounded-xl" }), /* @__PURE__ */ $("div", {
1561
+ children: [/* @__PURE__ */ Q(W, { className: "size-10 rounded-xl" }), /* @__PURE__ */ $("div", {
1562
1562
  className: "flex flex-col gap-1",
1563
- children: [/* @__PURE__ */ Q(U, { className: "h-4 w-20 rounded-lg" }), /* @__PURE__ */ Q(U, { className: "h-3 w-32 rounded-lg" })]
1563
+ children: [/* @__PURE__ */ Q(W, { className: "h-4 w-20 rounded-lg" }), /* @__PURE__ */ Q(W, { className: "h-3 w-32 rounded-lg" })]
1564
1564
  })]
1565
1565
  })
1566
1566
  });
@@ -1618,7 +1618,7 @@ function St({ className: e, hideNav: t, path: n, variant: r, view: i, ...a }) {
1618
1618
  inline: "center"
1619
1619
  }),
1620
1620
  children: [
1621
- /* @__PURE__ */ Q(ge, { className: "text-muted" }),
1621
+ /* @__PURE__ */ Q(he, { className: "text-muted" }),
1622
1622
  c.settings.account,
1623
1623
  /* @__PURE__ */ Q(K.Indicator, {})
1624
1624
  ]
@@ -1632,7 +1632,7 @@ function St({ className: e, hideNav: t, path: n, variant: r, view: i, ...a }) {
1632
1632
  inline: "center"
1633
1633
  }),
1634
1634
  children: [
1635
- /* @__PURE__ */ Q(ye, { className: "text-muted" }),
1635
+ /* @__PURE__ */ Q(ve, { className: "text-muted" }),
1636
1636
  c.settings.security,
1637
1637
  /* @__PURE__ */ Q(K.Indicator, {})
1638
1638
  ]
@@ -1672,25 +1672,25 @@ function St({ className: e, hideNav: t, path: n, variant: r, view: i, ...a }) {
1672
1672
  function Ct(e, t) {
1673
1673
  if (Re(e)) return e;
1674
1674
  let { label: n, href: r, icon: i, variant: a } = e;
1675
- return /* @__PURE__ */ $(M.Item, {
1675
+ return /* @__PURE__ */ $(N.Item, {
1676
1676
  href: r,
1677
1677
  variant: a,
1678
1678
  textValue: typeof n == "string" ? n : void 0,
1679
- children: [i, /* @__PURE__ */ Q(R, { children: n })]
1679
+ children: [i, /* @__PURE__ */ Q(z, { children: n })]
1680
1680
  }, t);
1681
1681
  }
1682
1682
  function wt({ className: e, placement: t, size: r = "default", variant: a = "ghost", links: o, hideSettings: s, hideSubtitle: c }) {
1683
- let { authClient: l, basePaths: u, viewPaths: d, localization: f, plugins: p } = m(), { data: h, isPending: g } = S(l), _ = p.flatMap((e) => e.userMenuItems?.map((t, n) => /* @__PURE__ */ Q(t, { hideSubtitle: c }, `${e.id}-${n.toString()}`)) ?? []), v = o?.flatMap((e, t) => {
1683
+ let { authClient: l, basePaths: u, viewPaths: d, localization: f, plugins: p } = m(), { data: h, isPending: g } = C(l), _ = p.flatMap((e) => e.userMenuItems?.map((t, n) => /* @__PURE__ */ Q(t, { hideSubtitle: c }, `${e.id}-${n.toString()}`)) ?? []), v = o?.flatMap((e, t) => {
1684
1684
  if (!Re(e)) {
1685
1685
  let t = e.visibility ?? "always";
1686
1686
  if (t === "authenticated" && !h || t === "unauthenticated" && h) return [];
1687
1687
  }
1688
1688
  return [Ct(e, `user-button-link-${t.toString()}`)];
1689
1689
  });
1690
- return /* @__PURE__ */ $(M, { children: [r === "icon" ? /* @__PURE__ */ Q(M.Trigger, {
1690
+ return /* @__PURE__ */ $(N, { children: [r === "icon" ? /* @__PURE__ */ Q(N.Trigger, {
1691
1691
  className: J("rounded-full"),
1692
1692
  children: /* @__PURE__ */ Q(n, { className: e })
1693
- }) : /* @__PURE__ */ $(O, {
1693
+ }) : /* @__PURE__ */ $(k, {
1694
1694
  variant: a,
1695
1695
  className: J("h-auto font-normal justify-start px-2 py-2 text-left", e),
1696
1696
  children: [h || g ? /* @__PURE__ */ Q(i, {
@@ -1699,38 +1699,38 @@ function wt({ className: e, placement: t, size: r = "default", variant: a = "gho
1699
1699
  }) : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(n, {}), /* @__PURE__ */ Q("p", {
1700
1700
  className: "text-sm font-medium",
1701
1701
  children: f.auth.account
1702
- })] }), /* @__PURE__ */ Q(le, { className: "ml-auto size-3 text-muted" })]
1703
- }), /* @__PURE__ */ $(M.Popover, {
1702
+ })] }), /* @__PURE__ */ Q(ce, { className: "ml-auto size-3 text-muted" })]
1703
+ }), /* @__PURE__ */ $(N.Popover, {
1704
1704
  placement: t,
1705
1705
  className: "min-w-40 md:min-w-56 max-w-[48svw]",
1706
1706
  children: [h && /* @__PURE__ */ Q("div", {
1707
1707
  className: "px-3 pt-3 pb-1",
1708
1708
  children: /* @__PURE__ */ Q(i, { hideSubtitle: c })
1709
- }), /* @__PURE__ */ Q(M.Menu, { children: h ? /* @__PURE__ */ $(Z, { children: [
1709
+ }), /* @__PURE__ */ Q(N.Menu, { children: h ? /* @__PURE__ */ $(Z, { children: [
1710
1710
  v,
1711
- !s && /* @__PURE__ */ $(M.Item, {
1711
+ !s && /* @__PURE__ */ $(N.Item, {
1712
1712
  textValue: f.settings.settings,
1713
1713
  href: `${u.settings}/${d.settings.account}`,
1714
- children: [/* @__PURE__ */ Q(pe, { className: "text-muted" }), /* @__PURE__ */ Q(R, { children: f.settings.settings })]
1714
+ children: [/* @__PURE__ */ Q(fe, { className: "text-muted" }), /* @__PURE__ */ Q(z, { children: f.settings.settings })]
1715
1715
  }),
1716
1716
  _,
1717
- /* @__PURE__ */ $(M.Item, {
1717
+ /* @__PURE__ */ $(N.Item, {
1718
1718
  textValue: f.auth.signOut,
1719
1719
  href: `${u.auth}/${d.auth.signOut}`,
1720
1720
  variant: "danger",
1721
- children: [/* @__PURE__ */ Q(se, { className: "text-danger" }), /* @__PURE__ */ Q(R, { children: f.auth.signOut })]
1721
+ children: [/* @__PURE__ */ Q(oe, { className: "text-danger" }), /* @__PURE__ */ Q(z, { children: f.auth.signOut })]
1722
1722
  })
1723
1723
  ] }) : /* @__PURE__ */ $(Z, { children: [
1724
1724
  v,
1725
- /* @__PURE__ */ $(M.Item, {
1725
+ /* @__PURE__ */ $(N.Item, {
1726
1726
  textValue: f.auth.signIn,
1727
1727
  href: `${u.auth}/${d.auth.signIn}`,
1728
- children: [/* @__PURE__ */ Q(T, { className: "text-muted" }), /* @__PURE__ */ Q(R, { children: f.auth.signIn })]
1728
+ children: [/* @__PURE__ */ Q(E, { className: "text-muted" }), /* @__PURE__ */ Q(z, { children: f.auth.signIn })]
1729
1729
  }),
1730
- /* @__PURE__ */ $(M.Item, {
1730
+ /* @__PURE__ */ $(N.Item, {
1731
1731
  textValue: f.auth.signUp,
1732
1732
  href: `${u.auth}/${d.auth.signUp}`,
1733
- children: [/* @__PURE__ */ Q(_e, { className: "text-muted" }), /* @__PURE__ */ Q(R, { children: f.auth.signUp })]
1733
+ children: [/* @__PURE__ */ Q(ge, { className: "text-muted" }), /* @__PURE__ */ Q(z, { children: f.auth.signUp })]
1734
1734
  }),
1735
1735
  _
1736
1736
  ] }) })]