better-auth-ui 3.2.13 → 3.2.14

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 (40) hide show
  1. package/dist/{auth-hooks-IOEvlYYv.d.cts → auth-hooks-BuniCu20.d.cts} +5 -4
  2. package/dist/{auth-hooks-IOEvlYYv.d.ts → auth-hooks-BuniCu20.d.ts} +5 -4
  3. package/dist/{auth-ui-provider-BsH3xJDw.d.ts → auth-ui-provider-B3fzotj0.d.ts} +3 -18
  4. package/dist/{auth-ui-provider-DhZfncd3.d.cts → auth-ui-provider-DGboLH2y.d.cts} +3 -18
  5. package/dist/{chunk-CRAHKL2C.cjs → chunk-42PRTYAB.cjs} +11 -1
  6. package/dist/{chunk-SV64DXGW.cjs → chunk-B24ZS3AS.cjs} +77 -78
  7. package/dist/{chunk-BDFQSFBU.js → chunk-GFDS6WTO.js} +67 -68
  8. package/dist/{chunk-MJPOA6PK.js → chunk-YTGCDVH4.js} +10 -0
  9. package/dist/index.cjs +604 -554
  10. package/dist/index.d.cts +49 -13
  11. package/dist/index.d.ts +49 -13
  12. package/dist/index.js +129 -79
  13. package/dist/instantdb.d.cts +1 -1
  14. package/dist/instantdb.d.ts +1 -1
  15. package/dist/metafile-cjs.json +1 -1
  16. package/dist/metafile-esm.json +1 -1
  17. package/dist/server.cjs +10 -10
  18. package/dist/server.d.cts +4 -2
  19. package/dist/server.d.ts +4 -2
  20. package/dist/server.js +1 -1
  21. package/dist/tanstack.cjs +3 -3
  22. package/dist/tanstack.d.cts +3 -3
  23. package/dist/tanstack.d.ts +3 -3
  24. package/dist/tanstack.js +2 -2
  25. package/dist/triplit.d.cts +1 -1
  26. package/dist/triplit.d.ts +1 -1
  27. package/dist/utils-CaN43O_Z.d.cts +24 -0
  28. package/dist/utils-yT5zrMzq.d.ts +24 -0
  29. package/dist/{view-paths-CHSJf5dv.d.ts → view-paths-CIL7NXLh.d.cts} +16 -1
  30. package/dist/{view-paths-CHSJf5dv.d.cts → view-paths-CIL7NXLh.d.ts} +16 -1
  31. package/package.json +5 -3
  32. package/src/components/auth/forms/email-otp-form.tsx +4 -4
  33. package/src/components/organization/organization-members-card.tsx +3 -1
  34. package/src/components/settings/account/update-name-card.tsx +2 -0
  35. package/src/components/settings/account/update-username-card.tsx +2 -0
  36. package/src/components/settings/account-settings-cards.tsx +8 -6
  37. package/src/components/settings/security/change-email-card.tsx +2 -0
  38. package/src/index.ts +25 -1
  39. package/dist/utils-C5R37WDe.d.cts +0 -3
  40. package/dist/utils-C5R37WDe.d.ts +0 -3
package/dist/index.cjs CHANGED
@@ -6,8 +6,8 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkSV64DXGWcjs = require('./chunk-SV64DXGW.cjs');
10
9
 
10
+ var _chunkB24ZS3AScjs = require('./chunk-B24ZS3AS.cjs');
11
11
 
12
12
 
13
13
 
@@ -18,7 +18,10 @@ var _chunkSV64DXGWcjs = require('./chunk-SV64DXGW.cjs');
18
18
 
19
19
 
20
20
 
21
- var _chunkCRAHKL2Ccjs = require('./chunk-CRAHKL2C.cjs');
21
+
22
+
23
+
24
+ var _chunk42PRTYABcjs = require('./chunk-42PRTYAB.cjs');
22
25
 
23
26
  // src/components/account/account-view.tsx
24
27
  var _lucidereact = require('lucide-react');
@@ -33,7 +36,7 @@ function useAuthenticate(options) {
33
36
  basePath,
34
37
  viewPaths,
35
38
  replace
36
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
39
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
37
40
  const { data, isPending, error, refetch } = useSession();
38
41
  const sessionData = data;
39
42
  _react.useEffect.call(void 0, () => {
@@ -69,7 +72,7 @@ var Card = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _j
69
72
  "div",
70
73
  {
71
74
  ref,
72
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
75
+ className: _chunk42PRTYABcjs.cn.call(void 0,
73
76
  "rounded-xl border bg-card text-card-foreground shadow",
74
77
  className
75
78
  ),
@@ -81,7 +84,7 @@ var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
81
84
  "div",
82
85
  {
83
86
  ref,
84
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "flex flex-col space-y-1.5 p-6", className),
87
+ className: _chunk42PRTYABcjs.cn.call(void 0, "flex flex-col space-y-1.5 p-6", className),
85
88
  ...props
86
89
  }
87
90
  ));
@@ -90,7 +93,7 @@ var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
90
93
  "div",
91
94
  {
92
95
  ref,
93
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "font-semibold leading-none tracking-tight", className),
96
+ className: _chunk42PRTYABcjs.cn.call(void 0, "font-semibold leading-none tracking-tight", className),
94
97
  ...props
95
98
  }
96
99
  ));
@@ -99,18 +102,18 @@ var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__P
99
102
  "div",
100
103
  {
101
104
  ref,
102
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-sm text-muted-foreground", className),
105
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-sm text-muted-foreground", className),
103
106
  ...props
104
107
  }
105
108
  ));
106
109
  CardDescription.displayName = "CardDescription";
107
- var CardContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkCRAHKL2Ccjs.cn.call(void 0, "p-6 pt-0", className), ...props }));
110
+ var CardContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk42PRTYABcjs.cn.call(void 0, "p-6 pt-0", className), ...props }));
108
111
  CardContent.displayName = "CardContent";
109
112
  var CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
110
113
  "div",
111
114
  {
112
115
  ref,
113
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "flex items-center p-6 pt-0", className),
116
+ className: _chunk42PRTYABcjs.cn.call(void 0, "flex items-center p-6 pt-0", className),
114
117
  ...props
115
118
  }
116
119
  ));
@@ -125,7 +128,7 @@ function Skeleton({
125
128
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
126
129
  "div",
127
130
  {
128
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "animate-pulse rounded-md bg-primary/10", className),
131
+ className: _chunk42PRTYABcjs.cn.call(void 0, "animate-pulse rounded-md bg-primary/10", className),
129
132
  ...props
130
133
  }
131
134
  );
@@ -171,7 +174,7 @@ var Button = React2.forwardRef(
171
174
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
172
175
  Comp,
173
176
  {
174
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, buttonVariants({ variant, size, className })),
177
+ className: _chunk42PRTYABcjs.cn.call(void 0, buttonVariants({ variant, size, className })),
175
178
  ref,
176
179
  ...props
177
180
  }
@@ -198,7 +201,7 @@ function SettingsActionButton({
198
201
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
199
202
  Button,
200
203
  {
201
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
204
+ className: _chunk42PRTYABcjs.cn.call(void 0,
202
205
  "md:ms-auto",
203
206
  classNames == null ? void 0 : classNames.button,
204
207
  variant === "default" && (classNames == null ? void 0 : classNames.primaryButton),
@@ -234,7 +237,7 @@ function SettingsCardFooter({
234
237
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
235
238
  CardFooter,
236
239
  {
237
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
240
+ className: _chunk42PRTYABcjs.cn.call(void 0,
238
241
  "flex flex-col justify-between gap-4 rounded-b-xl md:flex-row",
239
242
  (actionLabel || instructions) && "!py-4 border-t",
240
243
  variant === "destructive" ? "border-destructive/30 bg-destructive/15" : "bg-sidebar",
@@ -245,7 +248,7 @@ function SettingsCardFooter({
245
248
  instructions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
246
249
  Skeleton,
247
250
  {
248
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
251
+ className: _chunk42PRTYABcjs.cn.call(void 0,
249
252
  "my-0.5 h-3 w-48 max-w-full md:h-4 md:w-56",
250
253
  classNames == null ? void 0 : classNames.skeleton
251
254
  )
@@ -254,7 +257,7 @@ function SettingsCardFooter({
254
257
  actionLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
255
258
  Skeleton,
256
259
  {
257
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
260
+ className: _chunk42PRTYABcjs.cn.call(void 0,
258
261
  "h-8 w-14 md:ms-auto",
259
262
  classNames == null ? void 0 : classNames.skeleton
260
263
  )
@@ -264,7 +267,7 @@ function SettingsCardFooter({
264
267
  instructions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
265
268
  CardDescription,
266
269
  {
267
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
270
+ className: _chunk42PRTYABcjs.cn.call(void 0,
268
271
  "text-center text-muted-foreground text-xs md:text-start md:text-sm",
269
272
  classNames == null ? void 0 : classNames.instructions
270
273
  ),
@@ -296,11 +299,11 @@ function SettingsCardHeader({
296
299
  isPending,
297
300
  title
298
301
  }) {
299
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, classNames == null ? void 0 : classNames.header, className), children: isPending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
302
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { className: _chunk42PRTYABcjs.cn.call(void 0, classNames == null ? void 0 : classNames.header, className), children: isPending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
300
303
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
301
304
  Skeleton,
302
305
  {
303
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
306
+ className: _chunk42PRTYABcjs.cn.call(void 0,
304
307
  "my-0.5 h-5 w-1/3 md:h-5.5",
305
308
  classNames == null ? void 0 : classNames.skeleton
306
309
  )
@@ -309,7 +312,7 @@ function SettingsCardHeader({
309
312
  description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
310
313
  Skeleton,
311
314
  {
312
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
315
+ className: _chunk42PRTYABcjs.cn.call(void 0,
313
316
  "mt-1.5 mb-0.5 h-3 w-2/3 md:h-3.5",
314
317
  classNames == null ? void 0 : classNames.skeleton
315
318
  )
@@ -319,14 +322,14 @@ function SettingsCardHeader({
319
322
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
320
323
  CardTitle,
321
324
  {
322
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
325
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
323
326
  children: title
324
327
  }
325
328
  ),
326
329
  description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
327
330
  CardDescription,
328
331
  {
329
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
332
+ className: _chunk42PRTYABcjs.cn.call(void 0,
330
333
  "text-xs md:text-sm",
331
334
  classNames == null ? void 0 : classNames.description
332
335
  ),
@@ -357,7 +360,7 @@ function SettingsCard({
357
360
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
358
361
  Card,
359
362
  {
360
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
363
+ className: _chunk42PRTYABcjs.cn.call(void 0,
361
364
  "w-full pb-0 text-start",
362
365
  variant === "destructive" && "border-destructive/40",
363
366
  className,
@@ -402,7 +405,7 @@ function SettingsCellSkeleton({
402
405
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
403
406
  Card,
404
407
  {
405
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
408
+ className: _chunk42PRTYABcjs.cn.call(void 0,
406
409
  "flex-row items-center gap-3 px-4 py-3",
407
410
  classNames == null ? void 0 : classNames.cell
408
411
  ),
@@ -411,20 +414,20 @@ function SettingsCellSkeleton({
411
414
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
412
415
  Skeleton,
413
416
  {
414
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "size-5 rounded-full", classNames == null ? void 0 : classNames.skeleton)
417
+ className: _chunk42PRTYABcjs.cn.call(void 0, "size-5 rounded-full", classNames == null ? void 0 : classNames.skeleton)
415
418
  }
416
419
  ),
417
420
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
418
421
  Skeleton,
419
422
  {
420
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "h-4 w-24", classNames == null ? void 0 : classNames.skeleton)
423
+ className: _chunk42PRTYABcjs.cn.call(void 0, "h-4 w-24", classNames == null ? void 0 : classNames.skeleton)
421
424
  }
422
425
  ) })
423
426
  ] }),
424
427
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
425
428
  Skeleton,
426
429
  {
427
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "ms-auto size-8 w-12", classNames == null ? void 0 : classNames.skeleton)
430
+ className: _chunk42PRTYABcjs.cn.call(void 0, "ms-auto size-8 w-12", classNames == null ? void 0 : classNames.skeleton)
428
431
  }
429
432
  )
430
433
  ]
@@ -496,7 +499,7 @@ var DialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /* @__PU
496
499
  DialogPrimitive.Overlay,
497
500
  {
498
501
  ref,
499
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
502
+ className: _chunk42PRTYABcjs.cn.call(void 0,
500
503
  "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
501
504
  className
502
505
  ),
@@ -510,7 +513,7 @@ var DialogContent = React3.forwardRef(({ className, children, ...props }, ref) =
510
513
  DialogPrimitive.Content,
511
514
  {
512
515
  ref,
513
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
516
+ className: _chunk42PRTYABcjs.cn.call(void 0,
514
517
  "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
515
518
  className
516
519
  ),
@@ -532,7 +535,7 @@ var DialogHeader = ({
532
535
  }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
533
536
  "div",
534
537
  {
535
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
538
+ className: _chunk42PRTYABcjs.cn.call(void 0,
536
539
  "flex flex-col space-y-1.5 text-center sm:text-left",
537
540
  className
538
541
  ),
@@ -546,7 +549,7 @@ var DialogFooter = ({
546
549
  }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
547
550
  "div",
548
551
  {
549
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
552
+ className: _chunk42PRTYABcjs.cn.call(void 0,
550
553
  "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
551
554
  className
552
555
  ),
@@ -558,7 +561,7 @@ var DialogTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE
558
561
  DialogPrimitive.Title,
559
562
  {
560
563
  ref,
561
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
564
+ className: _chunk42PRTYABcjs.cn.call(void 0,
562
565
  "text-lg font-semibold leading-none tracking-tight",
563
566
  className
564
567
  ),
@@ -570,7 +573,7 @@ var DialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @
570
573
  DialogPrimitive.Description,
571
574
  {
572
575
  ref,
573
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-sm text-muted-foreground", className),
576
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-sm text-muted-foreground", className),
574
577
  ...props
575
578
  }
576
579
  ));
@@ -588,7 +591,7 @@ var DropdownMenuSubTrigger = React4.forwardRef(({ className, inset, children, ..
588
591
  DropdownMenuPrimitive.SubTrigger,
589
592
  {
590
593
  ref,
591
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
594
+ className: _chunk42PRTYABcjs.cn.call(void 0,
592
595
  "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
593
596
  inset && "pl-8",
594
597
  className
@@ -605,7 +608,7 @@ var DropdownMenuSubContent = React4.forwardRef(({ className, ...props }, ref) =>
605
608
  DropdownMenuPrimitive.SubContent,
606
609
  {
607
610
  ref,
608
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
611
+ className: _chunk42PRTYABcjs.cn.call(void 0,
609
612
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
610
613
  className
611
614
  ),
@@ -618,7 +621,7 @@ var DropdownMenuContent = React4.forwardRef(({ className, sideOffset = 4, ...pro
618
621
  {
619
622
  ref,
620
623
  sideOffset,
621
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
624
+ className: _chunk42PRTYABcjs.cn.call(void 0,
622
625
  "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
623
626
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
624
627
  className
@@ -648,7 +651,7 @@ var DropdownMenuItem = React4.forwardRef(({ className, variant, inset, ...props
648
651
  DropdownMenuPrimitive.Item,
649
652
  {
650
653
  ref,
651
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, dropdownMenuItemVariants({ variant, inset, className })),
654
+ className: _chunk42PRTYABcjs.cn.call(void 0, dropdownMenuItemVariants({ variant, inset, className })),
652
655
  ...props
653
656
  }
654
657
  ));
@@ -657,7 +660,7 @@ var DropdownMenuCheckboxItem = React4.forwardRef(({ className, children, checked
657
660
  DropdownMenuPrimitive.CheckboxItem,
658
661
  {
659
662
  ref,
660
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
663
+ className: _chunk42PRTYABcjs.cn.call(void 0,
661
664
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
662
665
  className
663
666
  ),
@@ -674,7 +677,7 @@ var DropdownMenuRadioItem = React4.forwardRef(({ className, children, ...props }
674
677
  DropdownMenuPrimitive.RadioItem,
675
678
  {
676
679
  ref,
677
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
680
+ className: _chunk42PRTYABcjs.cn.call(void 0,
678
681
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
679
682
  className
680
683
  ),
@@ -690,7 +693,7 @@ var DropdownMenuLabel = React4.forwardRef(({ className, inset, ...props }, ref)
690
693
  DropdownMenuPrimitive.Label,
691
694
  {
692
695
  ref,
693
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
696
+ className: _chunk42PRTYABcjs.cn.call(void 0,
694
697
  "px-2 py-1.5 text-sm font-semibold",
695
698
  inset && "pl-8",
696
699
  className
@@ -703,7 +706,7 @@ var DropdownMenuSeparator = React4.forwardRef(({ className, ...props }, ref) =>
703
706
  DropdownMenuPrimitive.Separator,
704
707
  {
705
708
  ref,
706
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "-mx-1 my-1 h-px bg-muted", className),
709
+ className: _chunk42PRTYABcjs.cn.call(void 0, "-mx-1 my-1 h-px bg-muted", className),
707
710
  ...props
708
711
  }
709
712
  ));
@@ -715,7 +718,7 @@ var DropdownMenuShortcut = ({
715
718
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
716
719
  "span",
717
720
  {
718
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "ml-auto text-xs tracking-widest opacity-60", className),
721
+ className: _chunk42PRTYABcjs.cn.call(void 0, "ml-auto text-xs tracking-widest opacity-60", className),
719
722
  ...props
720
723
  }
721
724
  );
@@ -743,7 +746,7 @@ var Label2 = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
743
746
  LabelPrimitive.Root,
744
747
  {
745
748
  ref,
746
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, labelVariants(), className),
749
+ className: _chunk42PRTYABcjs.cn.call(void 0, labelVariants(), className),
747
750
  ...props
748
751
  }
749
752
  ));
@@ -782,7 +785,7 @@ var useFormField = () => {
782
785
  var FormItemContext = React6.createContext(null);
783
786
  var FormItem = React6.forwardRef(({ className, ...props }, ref) => {
784
787
  const id = React6.useId();
785
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkCRAHKL2Ccjs.cn.call(void 0, "space-y-2", className), ...props }) });
788
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk42PRTYABcjs.cn.call(void 0, "space-y-2", className), ...props }) });
786
789
  });
787
790
  FormItem.displayName = "FormItem";
788
791
  var FormLabel = React6.forwardRef(({ className, ...props }, ref) => {
@@ -791,7 +794,7 @@ var FormLabel = React6.forwardRef(({ className, ...props }, ref) => {
791
794
  Label2,
792
795
  {
793
796
  ref,
794
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, error && "text-destructive", className),
797
+ className: _chunk42PRTYABcjs.cn.call(void 0, error && "text-destructive", className),
795
798
  htmlFor: formItemId,
796
799
  ...props
797
800
  }
@@ -819,7 +822,7 @@ var FormDescription = React6.forwardRef(({ className, ...props }, ref) => {
819
822
  {
820
823
  ref,
821
824
  id: formDescriptionId,
822
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-[0.8rem] text-muted-foreground", className),
825
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-[0.8rem] text-muted-foreground", className),
823
826
  ...props
824
827
  }
825
828
  );
@@ -836,7 +839,7 @@ var FormMessage = React6.forwardRef(({ className, children, ...props }, ref) =>
836
839
  {
837
840
  ref,
838
841
  id: formMessageId,
839
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-[0.8rem] font-medium text-destructive", className),
842
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-[0.8rem] font-medium text-destructive", className),
840
843
  ...props,
841
844
  children: body
842
845
  }
@@ -853,7 +856,7 @@ var Input = React7.forwardRef(
853
856
  "input",
854
857
  {
855
858
  type,
856
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
859
+ className: _chunk42PRTYABcjs.cn.call(void 0,
857
860
  "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
858
861
  className
859
862
  ),
@@ -877,7 +880,7 @@ var Avatar = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
877
880
  AvatarPrimitive.Root,
878
881
  {
879
882
  ref,
880
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
883
+ className: _chunk42PRTYABcjs.cn.call(void 0,
881
884
  "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
882
885
  className
883
886
  ),
@@ -889,7 +892,7 @@ var AvatarImage = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE
889
892
  AvatarPrimitive.Image,
890
893
  {
891
894
  ref,
892
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "aspect-square h-full w-full", className),
895
+ className: _chunk42PRTYABcjs.cn.call(void 0, "aspect-square h-full w-full", className),
893
896
  ...props
894
897
  }
895
898
  ));
@@ -898,7 +901,7 @@ var AvatarFallback = React8.forwardRef(({ className, ...props }, ref) => /* @__P
898
901
  AvatarPrimitive.Fallback,
899
902
  {
900
903
  ref,
901
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
904
+ className: _chunk42PRTYABcjs.cn.call(void 0,
902
905
  "flex h-full w-full items-center justify-center rounded-full bg-muted",
903
906
  className
904
907
  ),
@@ -918,7 +921,7 @@ function OrganizationLogo({
918
921
  localization: propLocalization,
919
922
  ...props
920
923
  }) {
921
- const { localization: contextLocalization, avatar } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
924
+ const { localization: contextLocalization, avatar } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
922
925
  const localization = _react.useMemo.call(void 0,
923
926
  () => ({ ...contextLocalization, ...propLocalization }),
924
927
  [contextLocalization, propLocalization]
@@ -929,7 +932,7 @@ function OrganizationLogo({
929
932
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
930
933
  Skeleton,
931
934
  {
932
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
935
+ className: _chunk42PRTYABcjs.cn.call(void 0,
933
936
  "shrink-0 rounded-full",
934
937
  size === "sm" ? "size-6" : size === "lg" ? "size-10" : size === "xl" ? "size-12" : "size-8",
935
938
  className,
@@ -942,7 +945,7 @@ function OrganizationLogo({
942
945
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
943
946
  Avatar,
944
947
  {
945
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
948
+ className: _chunk42PRTYABcjs.cn.call(void 0,
946
949
  "bg-muted",
947
950
  size === "sm" ? "size-6" : size === "lg" ? "size-10" : size === "xl" ? "size-12" : "size-8",
948
951
  className,
@@ -968,12 +971,12 @@ function OrganizationLogo({
968
971
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
969
972
  AvatarFallback,
970
973
  {
971
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-foreground", classNames == null ? void 0 : classNames.fallback),
974
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-foreground", classNames == null ? void 0 : classNames.fallback),
972
975
  delayMs: src ? 600 : void 0,
973
976
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
974
977
  _lucidereact.BuildingIcon,
975
978
  {
976
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "size-[50%]", classNames == null ? void 0 : classNames.fallbackIcon)
979
+ className: _chunk42PRTYABcjs.cn.call(void 0, "size-[50%]", classNames == null ? void 0 : classNames.fallbackIcon)
977
980
  }
978
981
  )
979
982
  }
@@ -994,12 +997,12 @@ function CreateOrganizationDialog({
994
997
  }) {
995
998
  var _a, _b, _c;
996
999
  const {
997
- authClient,
1000
+ authClient: authClient2,
998
1001
  localization: contextLocalization,
999
1002
  organization: organizationOptions,
1000
1003
  navigate,
1001
1004
  toast
1002
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
1005
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
1003
1006
  const localization = _react.useMemo.call(void 0,
1004
1007
  () => ({ ...contextLocalization, ...localizationProp }),
1005
1008
  [contextLocalization, localizationProp]
@@ -1052,7 +1055,7 @@ function CreateOrganizationDialog({
1052
1055
  } catch (error) {
1053
1056
  toast({
1054
1057
  variant: "error",
1055
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
1058
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
1056
1059
  });
1057
1060
  }
1058
1061
  setLogoPending(false);
@@ -1070,7 +1073,7 @@ function CreateOrganizationDialog({
1070
1073
  };
1071
1074
  async function onSubmit({ name, slug, logo: logo2 }) {
1072
1075
  try {
1073
- const organization = await authClient.organization.create({
1076
+ const organization = await authClient2.organization.create({
1074
1077
  name,
1075
1078
  slug,
1076
1079
  logo: logo2,
@@ -1080,7 +1083,7 @@ function CreateOrganizationDialog({
1080
1083
  navigate(`${organizationOptions.basePath}/${organization.slug}`);
1081
1084
  return;
1082
1085
  }
1083
- await authClient.organization.setActive({
1086
+ await authClient2.organization.setActive({
1084
1087
  organizationId: organization.id
1085
1088
  });
1086
1089
  onOpenChange == null ? void 0 : onOpenChange(false);
@@ -1093,7 +1096,7 @@ function CreateOrganizationDialog({
1093
1096
  } catch (error) {
1094
1097
  toast({
1095
1098
  variant: "error",
1096
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
1099
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
1097
1100
  });
1098
1101
  }
1099
1102
  }
@@ -1102,14 +1105,14 @@ function CreateOrganizationDialog({
1102
1105
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1103
1106
  DialogTitle,
1104
1107
  {
1105
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
1108
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
1106
1109
  children: localization.CREATE_ORGANIZATION
1107
1110
  }
1108
1111
  ),
1109
1112
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1110
1113
  DialogDescription,
1111
1114
  {
1112
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1115
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1113
1116
  "text-xs md:text-sm",
1114
1117
  classNames == null ? void 0 : classNames.description
1115
1118
  ),
@@ -1265,7 +1268,7 @@ function CreateOrganizationDialog({
1265
1268
  type: "button",
1266
1269
  variant: "outline",
1267
1270
  onClick: () => onOpenChange == null ? void 0 : onOpenChange(false),
1268
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1271
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1269
1272
  classNames == null ? void 0 : classNames.button,
1270
1273
  classNames == null ? void 0 : classNames.outlineButton
1271
1274
  ),
@@ -1276,7 +1279,7 @@ function CreateOrganizationDialog({
1276
1279
  Button,
1277
1280
  {
1278
1281
  type: "submit",
1279
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1282
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1280
1283
  classNames == null ? void 0 : classNames.button,
1281
1284
  classNames == null ? void 0 : classNames.primaryButton
1282
1285
  ),
@@ -1313,12 +1316,12 @@ function OrganizationCellView({
1313
1316
  organization,
1314
1317
  localization: propLocalization
1315
1318
  }) {
1316
- const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
1319
+ const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
1317
1320
  const localization = { ...contextLocalization, ...propLocalization };
1318
1321
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1319
1322
  "div",
1320
1323
  {
1321
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1324
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1322
1325
  "flex items-center gap-2 truncate",
1323
1326
  className,
1324
1327
  classNames == null ? void 0 : classNames.base
@@ -1327,7 +1330,7 @@ function OrganizationCellView({
1327
1330
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1328
1331
  OrganizationLogo,
1329
1332
  {
1330
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, size !== "sm" && "my-0.5"),
1333
+ className: _chunk42PRTYABcjs.cn.call(void 0, size !== "sm" && "my-0.5"),
1331
1334
  classNames: classNames == null ? void 0 : classNames.avatar,
1332
1335
  isPending,
1333
1336
  localization,
@@ -1338,7 +1341,7 @@ function OrganizationCellView({
1338
1341
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1339
1342
  "div",
1340
1343
  {
1341
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1344
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1342
1345
  "flex flex-col truncate text-left leading-tight",
1343
1346
  classNames == null ? void 0 : classNames.content
1344
1347
  ),
@@ -1346,7 +1349,7 @@ function OrganizationCellView({
1346
1349
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1347
1350
  Skeleton,
1348
1351
  {
1349
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1352
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1350
1353
  "max-w-full",
1351
1354
  size === "lg" ? "h-4.5 w-32" : "h-3.5 w-24",
1352
1355
  classNames == null ? void 0 : classNames.title,
@@ -1357,7 +1360,7 @@ function OrganizationCellView({
1357
1360
  size !== "sm" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1358
1361
  Skeleton,
1359
1362
  {
1360
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1363
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1361
1364
  "mt-1.5 max-w-full",
1362
1365
  size === "lg" ? "h-3.5 w-24" : "h-3 w-16",
1363
1366
  classNames == null ? void 0 : classNames.subtitle,
@@ -1369,7 +1372,7 @@ function OrganizationCellView({
1369
1372
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1370
1373
  "span",
1371
1374
  {
1372
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1375
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1373
1376
  "truncate font-semibold",
1374
1377
  size === "lg" ? "text-base" : "text-sm",
1375
1378
  classNames == null ? void 0 : classNames.title
@@ -1380,7 +1383,7 @@ function OrganizationCellView({
1380
1383
  size !== "sm" && (organization == null ? void 0 : organization.slug) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1381
1384
  "span",
1382
1385
  {
1383
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1386
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1384
1387
  "truncate opacity-70",
1385
1388
  size === "lg" ? "text-sm" : "text-xs",
1386
1389
  classNames == null ? void 0 : classNames.subtitle
@@ -1408,11 +1411,11 @@ function LeaveOrganizationDialog({
1408
1411
  }) {
1409
1412
  var _a, _b, _c;
1410
1413
  const {
1411
- authClient,
1414
+ authClient: authClient2,
1412
1415
  hooks: { useListOrganizations },
1413
1416
  localization: contextLocalization,
1414
1417
  toast
1415
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
1418
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
1416
1419
  const localization = _react.useMemo.call(void 0,
1417
1420
  () => ({ ...contextLocalization, ...localizationProp }),
1418
1421
  [contextLocalization, localizationProp]
@@ -1422,7 +1425,7 @@ function LeaveOrganizationDialog({
1422
1425
  const handleLeaveOrganization = async () => {
1423
1426
  setIsLeaving(true);
1424
1427
  try {
1425
- await authClient.organization.leave({
1428
+ await authClient2.organization.leave({
1426
1429
  organizationId: organization.id,
1427
1430
  fetchOptions: { throw: true }
1428
1431
  });
@@ -1435,7 +1438,7 @@ function LeaveOrganizationDialog({
1435
1438
  } catch (error) {
1436
1439
  toast({
1437
1440
  variant: "error",
1438
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
1441
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
1439
1442
  });
1440
1443
  }
1441
1444
  setIsLeaving(false);
@@ -1450,14 +1453,14 @@ function LeaveOrganizationDialog({
1450
1453
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1451
1454
  DialogTitle,
1452
1455
  {
1453
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
1456
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
1454
1457
  children: localization.LEAVE_ORGANIZATION
1455
1458
  }
1456
1459
  ),
1457
1460
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1458
1461
  DialogDescription,
1459
1462
  {
1460
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1463
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1461
1464
  "text-xs md:text-sm",
1462
1465
  classNames == null ? void 0 : classNames.description
1463
1466
  ),
@@ -1468,7 +1471,7 @@ function LeaveOrganizationDialog({
1468
1471
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1469
1472
  Card,
1470
1473
  {
1471
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1474
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1472
1475
  "my-2 flex-row p-4",
1473
1476
  className,
1474
1477
  classNames == null ? void 0 : classNames.cell
@@ -1489,7 +1492,7 @@ function LeaveOrganizationDialog({
1489
1492
  type: "button",
1490
1493
  variant: "outline",
1491
1494
  onClick: () => onOpenChange == null ? void 0 : onOpenChange(false),
1492
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1495
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1493
1496
  classNames == null ? void 0 : classNames.button,
1494
1497
  classNames == null ? void 0 : classNames.outlineButton
1495
1498
  ),
@@ -1503,7 +1506,7 @@ function LeaveOrganizationDialog({
1503
1506
  type: "button",
1504
1507
  variant: "destructive",
1505
1508
  onClick: handleLeaveOrganization,
1506
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1509
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1507
1510
  classNames == null ? void 0 : classNames.button,
1508
1511
  classNames == null ? void 0 : classNames.destructiveButton
1509
1512
  ),
@@ -1530,12 +1533,12 @@ function OrganizationCell({
1530
1533
  }) {
1531
1534
  var _a;
1532
1535
  const {
1533
- authClient,
1536
+ authClient: authClient2,
1534
1537
  localization: contextLocalization,
1535
1538
  organization: organizationOptions,
1536
1539
  navigate,
1537
1540
  toast
1538
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
1541
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
1539
1542
  const localization = _react.useMemo.call(void 0,
1540
1543
  () => ({ ...contextLocalization, ...localizationProp }),
1541
1544
  [contextLocalization, localizationProp]
@@ -1553,7 +1556,7 @@ function OrganizationCell({
1553
1556
  return;
1554
1557
  }
1555
1558
  try {
1556
- await authClient.organization.setActive({
1559
+ await authClient2.organization.setActive({
1557
1560
  organizationId: organization.id,
1558
1561
  fetchOptions: {
1559
1562
  throw: true
@@ -1565,12 +1568,12 @@ function OrganizationCell({
1565
1568
  } catch (error) {
1566
1569
  toast({
1567
1570
  variant: "error",
1568
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
1571
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
1569
1572
  });
1570
1573
  setIsManagingOrganization(false);
1571
1574
  }
1572
1575
  }, [
1573
- authClient,
1576
+ authClient2,
1574
1577
  organization.id,
1575
1578
  organizationOptions == null ? void 0 : organizationOptions.basePath,
1576
1579
  (_a = organizationOptions == null ? void 0 : organizationOptions.viewPaths) == null ? void 0 : _a.SETTINGS,
@@ -1581,7 +1584,7 @@ function OrganizationCell({
1581
1584
  localization
1582
1585
  ]);
1583
1586
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1584
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "flex-row p-4", className, classNames == null ? void 0 : classNames.cell), children: [
1587
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunk42PRTYABcjs.cn.call(void 0, "flex-row p-4", className, classNames == null ? void 0 : classNames.cell), children: [
1585
1588
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1586
1589
  OrganizationCellView,
1587
1590
  {
@@ -1593,7 +1596,7 @@ function OrganizationCell({
1593
1596
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1594
1597
  Button,
1595
1598
  {
1596
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1599
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1597
1600
  "relative ms-auto",
1598
1601
  classNames == null ? void 0 : classNames.button,
1599
1602
  classNames == null ? void 0 : classNames.outlineButton
@@ -1654,12 +1657,12 @@ function OrganizationsCard({
1654
1657
  const {
1655
1658
  hooks: { useListOrganizations },
1656
1659
  localization: contextLocalization
1657
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
1660
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
1658
1661
  localization = _react.useMemo.call(void 0,
1659
1662
  () => ({ ...contextLocalization, ...localization }),
1660
1663
  [contextLocalization, localization]
1661
1664
  );
1662
- const isHydrated = _chunkSV64DXGWcjs.useIsHydrated.call(void 0, );
1665
+ const isHydrated = _chunkB24ZS3AScjs.useIsHydrated.call(void 0, );
1663
1666
  const { data: organizations, isPending: organizationsPending } = useListOrganizations();
1664
1667
  const isPending = !isHydrated || organizationsPending;
1665
1668
  const [createDialogOpen, setCreateDialogOpen] = _react.useState.call(void 0, false);
@@ -1676,7 +1679,7 @@ function OrganizationsCard({
1676
1679
  action: () => setCreateDialogOpen(true),
1677
1680
  isPending,
1678
1681
  ...props,
1679
- children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardContent, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content), children: [
1682
+ children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardContent, { className: _chunk42PRTYABcjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content), children: [
1680
1683
  isPending && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SettingsCellSkeleton, {}),
1681
1684
  organizations == null ? void 0 : organizations.map((organization) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1682
1685
  OrganizationCell,
@@ -1761,7 +1764,7 @@ function UserAvatar({
1761
1764
  localization: contextLocalization,
1762
1765
  gravatar,
1763
1766
  avatar
1764
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
1767
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
1765
1768
  const localization = { ...contextLocalization, ...propLocalization };
1766
1769
  const name = (user == null ? void 0 : user.displayName) || (user == null ? void 0 : user.name) || (user == null ? void 0 : user.fullName) || (user == null ? void 0 : user.firstName) || (user == null ? void 0 : user.displayUsername) || (user == null ? void 0 : user.username) || (user == null ? void 0 : user.email);
1767
1770
  const userImage = (user == null ? void 0 : user.image) || (user == null ? void 0 : user.avatar) || (user == null ? void 0 : user.avatarUrl);
@@ -1774,7 +1777,7 @@ function UserAvatar({
1774
1777
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1775
1778
  Skeleton,
1776
1779
  {
1777
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1780
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1778
1781
  "shrink-0 rounded-full",
1779
1782
  size === "sm" ? "size-6" : size === "lg" ? "size-10" : size === "xl" ? "size-12" : "size-8",
1780
1783
  className,
@@ -1787,7 +1790,7 @@ function UserAvatar({
1787
1790
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1788
1791
  Avatar,
1789
1792
  {
1790
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1793
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1791
1794
  "bg-muted",
1792
1795
  size === "sm" ? "size-6" : size === "lg" ? "size-10" : size === "xl" ? "size-12" : "size-8",
1793
1796
  className,
@@ -1813,7 +1816,7 @@ function UserAvatar({
1813
1816
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1814
1817
  AvatarFallback,
1815
1818
  {
1816
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1819
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1817
1820
  "text-foreground uppercase",
1818
1821
  classNames == null ? void 0 : classNames.fallback
1819
1822
  ),
@@ -1821,7 +1824,7 @@ function UserAvatar({
1821
1824
  children: firstTwoCharacters(name) || /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1822
1825
  _lucidereact.UserRoundIcon,
1823
1826
  {
1824
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "size-[50%]", classNames == null ? void 0 : classNames.fallbackIcon)
1827
+ className: _chunk42PRTYABcjs.cn.call(void 0, "size-[50%]", classNames == null ? void 0 : classNames.fallbackIcon)
1825
1828
  }
1826
1829
  )
1827
1830
  }
@@ -1843,7 +1846,7 @@ function UserInvitationsCard({
1843
1846
  const {
1844
1847
  hooks: { useListUserInvitations, useListOrganizations },
1845
1848
  localization: contextLocalization
1846
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
1849
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
1847
1850
  const localization = _react.useMemo.call(void 0,
1848
1851
  () => ({ ...contextLocalization, ...localizationProp }),
1849
1852
  [contextLocalization, localizationProp]
@@ -1866,7 +1869,7 @@ function UserInvitationsCard({
1866
1869
  title: localization.PENDING_INVITATIONS,
1867
1870
  description: localization.PENDING_USER_INVITATIONS_DESCRIPTION || localization.PENDING_INVITATIONS_DESCRIPTION,
1868
1871
  ...props,
1869
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content), children: pendingInvitations.map((invitation) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1872
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: _chunk42PRTYABcjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content), children: pendingInvitations.map((invitation) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1870
1873
  UserInvitationRow,
1871
1874
  {
1872
1875
  classNames,
@@ -1890,11 +1893,11 @@ function UserInvitationRow({
1890
1893
  onChanged
1891
1894
  }) {
1892
1895
  const {
1893
- authClient,
1896
+ authClient: authClient2,
1894
1897
  organization: organizationOptions,
1895
1898
  localization: contextLocalization,
1896
1899
  toast
1897
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
1900
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
1898
1901
  const localization = contextLocalization;
1899
1902
  const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
1900
1903
  const builtInRoles = [
@@ -1907,7 +1910,7 @@ function UserInvitationRow({
1907
1910
  const handleAccept = async () => {
1908
1911
  setIsLoading(true);
1909
1912
  try {
1910
- await authClient.organization.acceptInvitation({
1913
+ await authClient2.organization.acceptInvitation({
1911
1914
  invitationId: invitation.id,
1912
1915
  fetchOptions: { throw: true }
1913
1916
  });
@@ -1919,7 +1922,7 @@ function UserInvitationRow({
1919
1922
  } catch (error) {
1920
1923
  toast({
1921
1924
  variant: "error",
1922
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
1925
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
1923
1926
  });
1924
1927
  }
1925
1928
  setIsLoading(false);
@@ -1927,7 +1930,7 @@ function UserInvitationRow({
1927
1930
  const handleReject = async () => {
1928
1931
  setIsLoading(true);
1929
1932
  try {
1930
- await authClient.organization.rejectInvitation({
1933
+ await authClient2.organization.rejectInvitation({
1931
1934
  invitationId: invitation.id,
1932
1935
  fetchOptions: { throw: true }
1933
1936
  });
@@ -1939,12 +1942,12 @@ function UserInvitationRow({
1939
1942
  } catch (error) {
1940
1943
  toast({
1941
1944
  variant: "error",
1942
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
1945
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
1943
1946
  });
1944
1947
  }
1945
1948
  setIsLoading(false);
1946
1949
  };
1947
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "flex-row items-center p-4", classNames == null ? void 0 : classNames.cell), children: [
1950
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunk42PRTYABcjs.cn.call(void 0, "flex-row items-center p-4", classNames == null ? void 0 : classNames.cell), children: [
1948
1951
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center gap-2", children: [
1949
1952
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1950
1953
  UserAvatar,
@@ -1968,7 +1971,7 @@ function UserInvitationRow({
1968
1971
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1969
1972
  Button,
1970
1973
  {
1971
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
1974
+ className: _chunk42PRTYABcjs.cn.call(void 0,
1972
1975
  "relative ms-auto",
1973
1976
  classNames == null ? void 0 : classNames.button,
1974
1977
  classNames == null ? void 0 : classNames.outlineButton
@@ -2042,7 +2045,7 @@ function UserView({
2042
2045
  user,
2043
2046
  localization: propLocalization
2044
2047
  }) {
2045
- const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
2048
+ const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
2046
2049
  const localization = _react.useMemo.call(void 0,
2047
2050
  () => ({ ...contextLocalization, ...propLocalization }),
2048
2051
  [contextLocalization, propLocalization]
@@ -2050,7 +2053,7 @@ function UserView({
2050
2053
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2051
2054
  "div",
2052
2055
  {
2053
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
2056
+ className: _chunk42PRTYABcjs.cn.call(void 0,
2054
2057
  "flex items-center gap-2",
2055
2058
  className,
2056
2059
  classNames == null ? void 0 : classNames.base
@@ -2059,7 +2062,7 @@ function UserView({
2059
2062
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2060
2063
  UserAvatar,
2061
2064
  {
2062
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, size !== "sm" && "my-0.5"),
2065
+ className: _chunk42PRTYABcjs.cn.call(void 0, size !== "sm" && "my-0.5"),
2063
2066
  classNames: classNames == null ? void 0 : classNames.avatar,
2064
2067
  isPending,
2065
2068
  size,
@@ -2070,7 +2073,7 @@ function UserView({
2070
2073
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2071
2074
  "div",
2072
2075
  {
2073
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
2076
+ className: _chunk42PRTYABcjs.cn.call(void 0,
2074
2077
  "grid flex-1 text-left leading-tight",
2075
2078
  classNames == null ? void 0 : classNames.content
2076
2079
  ),
@@ -2078,7 +2081,7 @@ function UserView({
2078
2081
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2079
2082
  Skeleton,
2080
2083
  {
2081
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
2084
+ className: _chunk42PRTYABcjs.cn.call(void 0,
2082
2085
  "max-w-full",
2083
2086
  size === "lg" ? "h-4.5 w-32" : "h-3.5 w-24",
2084
2087
  classNames == null ? void 0 : classNames.title,
@@ -2089,7 +2092,7 @@ function UserView({
2089
2092
  size !== "sm" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2090
2093
  Skeleton,
2091
2094
  {
2092
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
2095
+ className: _chunk42PRTYABcjs.cn.call(void 0,
2093
2096
  "mt-1.5 max-w-full",
2094
2097
  size === "lg" ? "h-3.5 w-40" : "h-3 w-32",
2095
2098
  classNames == null ? void 0 : classNames.subtitle,
@@ -2101,7 +2104,7 @@ function UserView({
2101
2104
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2102
2105
  "span",
2103
2106
  {
2104
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
2107
+ className: _chunk42PRTYABcjs.cn.call(void 0,
2105
2108
  "truncate font-semibold",
2106
2109
  size === "lg" ? "text-base" : "text-sm",
2107
2110
  classNames == null ? void 0 : classNames.title
@@ -2112,7 +2115,7 @@ function UserView({
2112
2115
  !(user == null ? void 0 : user.isAnonymous) && size !== "sm" && ((user == null ? void 0 : user.name) || (user == null ? void 0 : user.username)) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2113
2116
  "span",
2114
2117
  {
2115
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
2118
+ className: _chunk42PRTYABcjs.cn.call(void 0,
2116
2119
  "truncate opacity-70",
2117
2120
  size === "lg" ? "text-sm" : "text-xs",
2118
2121
  classNames == null ? void 0 : classNames.subtitle
@@ -2145,7 +2148,7 @@ function AccountCell({
2145
2148
  toast,
2146
2149
  viewPaths,
2147
2150
  navigate
2148
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
2151
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
2149
2152
  localization = { ...contextLocalization, ...localization };
2150
2153
  const { data: sessionData } = useSession();
2151
2154
  const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
@@ -2160,7 +2163,7 @@ function AccountCell({
2160
2163
  setIsLoading(false);
2161
2164
  toast({
2162
2165
  variant: "error",
2163
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
2166
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
2164
2167
  });
2165
2168
  }
2166
2169
  };
@@ -2174,19 +2177,19 @@ function AccountCell({
2174
2177
  } catch (error) {
2175
2178
  toast({
2176
2179
  variant: "error",
2177
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
2180
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
2178
2181
  });
2179
2182
  }
2180
2183
  setIsLoading(false);
2181
2184
  };
2182
2185
  const isCurrentSession = deviceSession.session.id === (sessionData == null ? void 0 : sessionData.session.id);
2183
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "flex-row p-4", className, classNames == null ? void 0 : classNames.cell), children: [
2186
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunk42PRTYABcjs.cn.call(void 0, "flex-row p-4", className, classNames == null ? void 0 : classNames.cell), children: [
2184
2187
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserView, { user: deviceSession.user, localization }),
2185
2188
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { children: [
2186
2189
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2187
2190
  Button,
2188
2191
  {
2189
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
2192
+ className: _chunk42PRTYABcjs.cn.call(void 0,
2190
2193
  "relative ms-auto",
2191
2194
  classNames == null ? void 0 : classNames.button,
2192
2195
  classNames == null ? void 0 : classNames.outlineButton
@@ -2238,7 +2241,7 @@ function AccountsCard({
2238
2241
  localization: contextLocalization,
2239
2242
  viewPaths,
2240
2243
  navigate
2241
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
2244
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
2242
2245
  localization = { ...contextLocalization, ...localization };
2243
2246
  const { data: deviceSessions, isPending, refetch } = useListDeviceSessions();
2244
2247
  const { data: sessionData } = useSession();
@@ -2256,7 +2259,7 @@ function AccountsCard({
2256
2259
  instructions: localization.ACCOUNTS_INSTRUCTIONS,
2257
2260
  isPending,
2258
2261
  action: () => navigate(`${basePath}/${viewPaths.SIGN_IN}`),
2259
- children: (deviceSessions == null ? void 0 : deviceSessions.length) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardContent, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content), children: [
2262
+ children: (deviceSessions == null ? void 0 : deviceSessions.length) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardContent, { className: _chunk42PRTYABcjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content), children: [
2260
2263
  sessionData && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2261
2264
  AccountCell,
2262
2265
  {
@@ -2298,7 +2301,7 @@ function UpdateAvatarCard({
2298
2301
  optimistic,
2299
2302
  avatar,
2300
2303
  toast
2301
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
2304
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
2302
2305
  localization = { ...authLocalization2, ...localization };
2303
2306
  const { data: sessionData, isPending, refetch } = useSession();
2304
2307
  const fileInputRef = _react.useRef.call(void 0, null);
@@ -2329,7 +2332,7 @@ function UpdateAvatarCard({
2329
2332
  } catch (error) {
2330
2333
  toast({
2331
2334
  variant: "error",
2332
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
2335
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
2333
2336
  });
2334
2337
  }
2335
2338
  setLoading(false);
@@ -2346,7 +2349,7 @@ function UpdateAvatarCard({
2346
2349
  } catch (error) {
2347
2350
  toast({
2348
2351
  variant: "error",
2349
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
2352
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
2350
2353
  });
2351
2354
  }
2352
2355
  setLoading(false);
@@ -2358,7 +2361,7 @@ function UpdateAvatarCard({
2358
2361
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2359
2362
  Card,
2360
2363
  {
2361
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
2364
+ className: _chunk42PRTYABcjs.cn.call(void 0,
2362
2365
  "w-full pb-0 text-start",
2363
2366
  className,
2364
2367
  classNames == null ? void 0 : classNames.base
@@ -2476,7 +2479,7 @@ var Checkbox = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__
2476
2479
  CheckboxPrimitive.Root,
2477
2480
  {
2478
2481
  ref,
2479
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
2482
+ className: _chunk42PRTYABcjs.cn.call(void 0,
2480
2483
  "grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
2481
2484
  className
2482
2485
  ),
@@ -2484,7 +2487,7 @@ var Checkbox = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__
2484
2487
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2485
2488
  CheckboxPrimitive.Indicator,
2486
2489
  {
2487
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid place-content-center text-current"),
2490
+ className: _chunk42PRTYABcjs.cn.call(void 0, "grid place-content-center text-current"),
2488
2491
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Check, { className: "h-4 w-4" })
2489
2492
  }
2490
2493
  )
@@ -2499,7 +2502,7 @@ var Textarea = React10.forwardRef(({ className, ...props }, ref) => {
2499
2502
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2500
2503
  "textarea",
2501
2504
  {
2502
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
2505
+ className: _chunk42PRTYABcjs.cn.call(void 0,
2503
2506
  "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
2504
2507
  className
2505
2508
  ),
@@ -2533,7 +2536,7 @@ function UpdateFieldCard({
2533
2536
  localization: contextLocalization,
2534
2537
  optimistic,
2535
2538
  toast
2536
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
2539
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
2537
2540
  const localization = _react.useMemo.call(void 0,
2538
2541
  () => ({ ...contextLocalization, ...localizationProp }),
2539
2542
  [contextLocalization, localizationProp]
@@ -2590,7 +2593,7 @@ function UpdateFieldCard({
2590
2593
  } catch (error) {
2591
2594
  toast({
2592
2595
  variant: "error",
2593
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
2596
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
2594
2597
  });
2595
2598
  }
2596
2599
  };
@@ -2638,7 +2641,7 @@ function UpdateFieldCard({
2638
2641
  ) : isPending ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2639
2642
  Skeleton,
2640
2643
  {
2641
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
2644
+ className: _chunk42PRTYABcjs.cn.call(void 0,
2642
2645
  "h-9 w-full",
2643
2646
  classNames == null ? void 0 : classNames.skeleton
2644
2647
  )
@@ -2705,7 +2708,7 @@ function UpdateNameCard({
2705
2708
  hooks: { useSession },
2706
2709
  localization: contextLocalization,
2707
2710
  nameRequired
2708
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
2711
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
2709
2712
  localization = { ...contextLocalization, ...localization };
2710
2713
  const { data: sessionData } = useSession();
2711
2714
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2739,7 +2742,7 @@ function UpdateUsernameCard({
2739
2742
  const {
2740
2743
  hooks: { useSession },
2741
2744
  localization: contextLocalization
2742
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
2745
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
2743
2746
  localization = { ...contextLocalization, ...localization };
2744
2747
  const { data: sessionData } = useSession();
2745
2748
  const value = ((_a = sessionData == null ? void 0 : sessionData.user) == null ? void 0 : _a.displayUsername) || ((_b = sessionData == null ? void 0 : sessionData.user) == null ? void 0 : _b.username);
@@ -2774,12 +2777,12 @@ function ChangeEmailCard({
2774
2777
  ...props
2775
2778
  }) {
2776
2779
  const {
2777
- authClient,
2780
+ authClient: authClient2,
2778
2781
  emailVerification,
2779
2782
  hooks: { useSession },
2780
2783
  localization: contextLocalization,
2781
2784
  toast
2782
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
2785
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
2783
2786
  localization = { ...contextLocalization, ...localization };
2784
2787
  const { data: sessionData, isPending, refetch } = useSession();
2785
2788
  const [resendDisabled, setResendDisabled] = _react.useState.call(void 0, false);
@@ -2804,7 +2807,7 @@ function ChangeEmailCard({
2804
2807
  return;
2805
2808
  }
2806
2809
  try {
2807
- await authClient.changeEmail({
2810
+ await authClient2.changeEmail({
2808
2811
  newEmail: email,
2809
2812
  callbackURL: window.location.pathname,
2810
2813
  fetchOptions: { throw: true }
@@ -2824,7 +2827,7 @@ function ChangeEmailCard({
2824
2827
  } catch (error) {
2825
2828
  toast({
2826
2829
  variant: "error",
2827
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
2830
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
2828
2831
  });
2829
2832
  }
2830
2833
  };
@@ -2833,7 +2836,7 @@ function ChangeEmailCard({
2833
2836
  const email = sessionData.user.email;
2834
2837
  setResendDisabled(true);
2835
2838
  try {
2836
- await authClient.sendVerificationEmail({
2839
+ await authClient2.sendVerificationEmail({
2837
2840
  email,
2838
2841
  fetchOptions: { throw: true }
2839
2842
  });
@@ -2844,7 +2847,7 @@ function ChangeEmailCard({
2844
2847
  } catch (error) {
2845
2848
  toast({
2846
2849
  variant: "error",
2847
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
2850
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
2848
2851
  });
2849
2852
  setResendDisabled(false);
2850
2853
  throw error;
@@ -2865,7 +2868,7 @@ function ChangeEmailCard({
2865
2868
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: classNames == null ? void 0 : classNames.content, children: isPending ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2866
2869
  Skeleton,
2867
2870
  {
2868
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
2871
+ className: _chunk42PRTYABcjs.cn.call(void 0,
2869
2872
  "h-9 w-full",
2870
2873
  classNames == null ? void 0 : classNames.skeleton
2871
2874
  )
@@ -2936,12 +2939,12 @@ function AccountSettingsCards({
2936
2939
  hooks: { useSession },
2937
2940
  multiSession,
2938
2941
  account: accountOptions
2939
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
2942
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
2940
2943
  const { data: sessionData } = useSession();
2941
2944
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2942
2945
  "div",
2943
2946
  {
2944
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
2947
+ className: _chunk42PRTYABcjs.cn.call(void 0,
2945
2948
  "flex w-full flex-col gap-4 md:gap-6",
2946
2949
  className,
2947
2950
  classNames == null ? void 0 : classNames.cards
@@ -3046,9 +3049,9 @@ function ApiKeyDeleteDialog({
3046
3049
  localization: contextLocalization,
3047
3050
  mutators: { deleteApiKey },
3048
3051
  toast
3049
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
3052
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
3050
3053
  localization = { ...contextLocalization, ...localization };
3051
- const { lang } = _chunkSV64DXGWcjs.useLang.call(void 0, );
3054
+ const { lang } = _chunkB24ZS3AScjs.useLang.call(void 0, );
3052
3055
  const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
3053
3056
  const handleDelete = async () => {
3054
3057
  setIsLoading(true);
@@ -3059,7 +3062,7 @@ function ApiKeyDeleteDialog({
3059
3062
  } catch (error) {
3060
3063
  toast({
3061
3064
  variant: "error",
3062
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
3065
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
3063
3066
  });
3064
3067
  }
3065
3068
  setIsLoading(false);
@@ -3086,7 +3089,7 @@ function ApiKeyDeleteDialog({
3086
3089
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3087
3090
  DialogTitle,
3088
3091
  {
3089
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
3092
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
3090
3093
  children: [
3091
3094
  localization.DELETE,
3092
3095
  " ",
@@ -3097,7 +3100,7 @@ function ApiKeyDeleteDialog({
3097
3100
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3098
3101
  DialogDescription,
3099
3102
  {
3100
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3103
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3101
3104
  "text-xs md:text-sm",
3102
3105
  classNames == null ? void 0 : classNames.description
3103
3106
  ),
@@ -3108,12 +3111,12 @@ function ApiKeyDeleteDialog({
3108
3111
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3109
3112
  Card,
3110
3113
  {
3111
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3114
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3112
3115
  "my-2 flex-row items-center gap-3 px-4 py-3",
3113
3116
  classNames == null ? void 0 : classNames.cell
3114
3117
  ),
3115
3118
  children: [
3116
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.KeyRoundIcon, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "size-4", classNames == null ? void 0 : classNames.icon) }),
3119
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.KeyRoundIcon, { className: _chunk42PRTYABcjs.cn.call(void 0, "size-4", classNames == null ? void 0 : classNames.icon) }),
3117
3120
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
3118
3121
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
3119
3122
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-semibold text-sm", children: apiKey.name }),
@@ -3135,7 +3138,7 @@ function ApiKeyDeleteDialog({
3135
3138
  variant: "secondary",
3136
3139
  onClick: () => onOpenChange == null ? void 0 : onOpenChange(false),
3137
3140
  disabled: isLoading,
3138
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3141
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3139
3142
  classNames == null ? void 0 : classNames.button,
3140
3143
  classNames == null ? void 0 : classNames.secondaryButton
3141
3144
  ),
@@ -3149,7 +3152,7 @@ function ApiKeyDeleteDialog({
3149
3152
  variant: "destructive",
3150
3153
  onClick: handleDelete,
3151
3154
  disabled: isLoading,
3152
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3155
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3153
3156
  classNames == null ? void 0 : classNames.button,
3154
3157
  classNames == null ? void 0 : classNames.destructiveButton
3155
3158
  ),
@@ -3174,9 +3177,9 @@ function ApiKeyCell({
3174
3177
  localization,
3175
3178
  refetch
3176
3179
  }) {
3177
- const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
3180
+ const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
3178
3181
  localization = { ...contextLocalization, ...localization };
3179
- const { lang } = _chunkSV64DXGWcjs.useLang.call(void 0, );
3182
+ const { lang } = _chunkB24ZS3AScjs.useLang.call(void 0, );
3180
3183
  const [showDeleteDialog, setShowDeleteDialog] = _react.useState.call(void 0, false);
3181
3184
  const formatExpiration = () => {
3182
3185
  if (!apiKey.expiresAt) return localization.NEVER_EXPIRES;
@@ -3194,7 +3197,7 @@ function ApiKeyCell({
3194
3197
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3195
3198
  Card,
3196
3199
  {
3197
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3200
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3198
3201
  "flex-row items-center gap-3 truncate px-4 py-3",
3199
3202
  className,
3200
3203
  classNames == null ? void 0 : classNames.cell
@@ -3203,7 +3206,7 @@ function ApiKeyCell({
3203
3206
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3204
3207
  _lucidereact.KeyRoundIcon,
3205
3208
  {
3206
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "size-4 flex-shrink-0", classNames == null ? void 0 : classNames.icon)
3209
+ className: _chunk42PRTYABcjs.cn.call(void 0, "size-4 flex-shrink-0", classNames == null ? void 0 : classNames.icon)
3207
3210
  }
3208
3211
  ),
3209
3212
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col truncate", children: [
@@ -3219,7 +3222,7 @@ function ApiKeyCell({
3219
3222
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3220
3223
  Button,
3221
3224
  {
3222
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3225
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3223
3226
  "relative ms-auto",
3224
3227
  classNames == null ? void 0 : classNames.button,
3225
3228
  classNames == null ? void 0 : classNames.outlineButton
@@ -3259,7 +3262,7 @@ function ApiKeyDisplayDialog({
3259
3262
  ...props
3260
3263
  }) {
3261
3264
  var _a, _b, _c;
3262
- const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
3265
+ const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
3263
3266
  localization = { ...contextLocalization, ...localization };
3264
3267
  const [copied, setCopied] = _react.useState.call(void 0, false);
3265
3268
  const handleCopy = () => {
@@ -3277,14 +3280,14 @@ function ApiKeyDisplayDialog({
3277
3280
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3278
3281
  DialogTitle,
3279
3282
  {
3280
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
3283
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
3281
3284
  children: localization.API_KEY_CREATED
3282
3285
  }
3283
3286
  ),
3284
3287
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3285
3288
  DialogDescription,
3286
3289
  {
3287
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3290
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3288
3291
  "text-xs md:text-sm",
3289
3292
  classNames == null ? void 0 : classNames.description
3290
3293
  ),
@@ -3301,7 +3304,7 @@ function ApiKeyDisplayDialog({
3301
3304
  variant: "outline",
3302
3305
  onClick: handleCopy,
3303
3306
  disabled: copied,
3304
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3307
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3305
3308
  classNames == null ? void 0 : classNames.button,
3306
3309
  classNames == null ? void 0 : classNames.outlineButton
3307
3310
  ),
@@ -3320,7 +3323,7 @@ function ApiKeyDisplayDialog({
3320
3323
  type: "button",
3321
3324
  variant: "default",
3322
3325
  onClick: () => onOpenChange == null ? void 0 : onOpenChange(false),
3323
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3326
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3324
3327
  classNames == null ? void 0 : classNames.button,
3325
3328
  classNames == null ? void 0 : classNames.primaryButton
3326
3329
  ),
@@ -3351,7 +3354,7 @@ function PersonalAccountView({
3351
3354
  user,
3352
3355
  localization: propLocalization
3353
3356
  }) {
3354
- const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
3357
+ const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
3355
3358
  const localization = _react.useMemo.call(void 0,
3356
3359
  () => ({ ...contextLocalization, ...propLocalization }),
3357
3360
  [contextLocalization, propLocalization]
@@ -3359,7 +3362,7 @@ function PersonalAccountView({
3359
3362
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3360
3363
  "div",
3361
3364
  {
3362
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3365
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3363
3366
  "flex items-center gap-2",
3364
3367
  className,
3365
3368
  classNames == null ? void 0 : classNames.base
@@ -3368,7 +3371,7 @@ function PersonalAccountView({
3368
3371
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3369
3372
  UserAvatar,
3370
3373
  {
3371
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, size !== "sm" && "my-0.5"),
3374
+ className: _chunk42PRTYABcjs.cn.call(void 0, size !== "sm" && "my-0.5"),
3372
3375
  classNames: classNames == null ? void 0 : classNames.avatar,
3373
3376
  isPending,
3374
3377
  localization,
@@ -3379,7 +3382,7 @@ function PersonalAccountView({
3379
3382
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3380
3383
  "div",
3381
3384
  {
3382
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3385
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3383
3386
  "grid flex-1 text-left leading-tight",
3384
3387
  classNames == null ? void 0 : classNames.content
3385
3388
  ),
@@ -3387,7 +3390,7 @@ function PersonalAccountView({
3387
3390
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3388
3391
  Skeleton,
3389
3392
  {
3390
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3393
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3391
3394
  "max-w-full",
3392
3395
  size === "lg" ? "h-4.5 w-32" : "h-3.5 w-24",
3393
3396
  classNames == null ? void 0 : classNames.title,
@@ -3398,7 +3401,7 @@ function PersonalAccountView({
3398
3401
  size !== "sm" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3399
3402
  Skeleton,
3400
3403
  {
3401
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3404
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3402
3405
  "mt-1.5 max-w-full",
3403
3406
  size === "lg" ? "h-3.5 w-40" : "h-3 w-32",
3404
3407
  classNames == null ? void 0 : classNames.subtitle,
@@ -3410,7 +3413,7 @@ function PersonalAccountView({
3410
3413
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3411
3414
  "span",
3412
3415
  {
3413
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3416
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3414
3417
  "truncate font-semibold",
3415
3418
  size === "lg" ? "text-base" : "text-sm",
3416
3419
  classNames == null ? void 0 : classNames.title
@@ -3421,7 +3424,7 @@ function PersonalAccountView({
3421
3424
  size !== "sm" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3422
3425
  "span",
3423
3426
  {
3424
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3427
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3425
3428
  "truncate opacity-70",
3426
3429
  size === "lg" ? "text-sm" : "text-xs",
3427
3430
  classNames == null ? void 0 : classNames.subtitle
@@ -3448,7 +3451,7 @@ var SelectTrigger = React11.forwardRef(({ className, children, ...props }, ref)
3448
3451
  SelectPrimitive.Trigger,
3449
3452
  {
3450
3453
  ref,
3451
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3454
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3452
3455
  "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
3453
3456
  className
3454
3457
  ),
@@ -3464,7 +3467,7 @@ var SelectScrollUpButton = React11.forwardRef(({ className, ...props }, ref) =>
3464
3467
  SelectPrimitive.ScrollUpButton,
3465
3468
  {
3466
3469
  ref,
3467
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3470
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3468
3471
  "flex cursor-default items-center justify-center py-1",
3469
3472
  className
3470
3473
  ),
@@ -3477,7 +3480,7 @@ var SelectScrollDownButton = React11.forwardRef(({ className, ...props }, ref) =
3477
3480
  SelectPrimitive.ScrollDownButton,
3478
3481
  {
3479
3482
  ref,
3480
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3483
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3481
3484
  "flex cursor-default items-center justify-center py-1",
3482
3485
  className
3483
3486
  ),
@@ -3490,7 +3493,7 @@ var SelectContent = React11.forwardRef(({ className, children, position = "poppe
3490
3493
  SelectPrimitive.Content,
3491
3494
  {
3492
3495
  ref,
3493
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3496
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3494
3497
  "relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",
3495
3498
  position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
3496
3499
  className
@@ -3502,7 +3505,7 @@ var SelectContent = React11.forwardRef(({ className, children, position = "poppe
3502
3505
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3503
3506
  SelectPrimitive.Viewport,
3504
3507
  {
3505
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3508
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3506
3509
  "p-1",
3507
3510
  position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
3508
3511
  ),
@@ -3518,7 +3521,7 @@ var SelectLabel = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
3518
3521
  SelectPrimitive.Label,
3519
3522
  {
3520
3523
  ref,
3521
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "px-2 py-1.5 text-sm font-semibold", className),
3524
+ className: _chunk42PRTYABcjs.cn.call(void 0, "px-2 py-1.5 text-sm font-semibold", className),
3522
3525
  ...props
3523
3526
  }
3524
3527
  ));
@@ -3527,7 +3530,7 @@ var SelectItem = React11.forwardRef(({ className, children, ...props }, ref) =>
3527
3530
  SelectPrimitive.Item,
3528
3531
  {
3529
3532
  ref,
3530
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3533
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3531
3534
  "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
3532
3535
  className
3533
3536
  ),
@@ -3543,7 +3546,7 @@ var SelectSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @_
3543
3546
  SelectPrimitive.Separator,
3544
3547
  {
3545
3548
  ref,
3546
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "-mx-1 my-1 h-px bg-muted", className),
3549
+ className: _chunk42PRTYABcjs.cn.call(void 0, "-mx-1 my-1 h-px bg-muted", className),
3547
3550
  ...props
3548
3551
  }
3549
3552
  ));
@@ -3562,15 +3565,15 @@ function CreateApiKeyDialog({
3562
3565
  }) {
3563
3566
  var _a, _b, _c;
3564
3567
  const {
3565
- authClient,
3568
+ authClient: authClient2,
3566
3569
  apiKey,
3567
3570
  hooks: { useListOrganizations, useSession },
3568
3571
  localization: contextLocalization,
3569
3572
  organization: contextOrganization,
3570
3573
  toast
3571
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
3574
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
3572
3575
  localization = { ...contextLocalization, ...localization };
3573
- const { lang } = _chunkSV64DXGWcjs.useLang.call(void 0, );
3576
+ const { lang } = _chunkB24ZS3AScjs.useLang.call(void 0, );
3574
3577
  let organizations;
3575
3578
  if (contextOrganization) {
3576
3579
  const { data } = useListOrganizations();
@@ -3604,7 +3607,7 @@ function CreateApiKeyDialog({
3604
3607
  ...typeof apiKey === "object" ? apiKey.metadata : {},
3605
3608
  ...contextOrganization && selectedOrgId ? { organizationId: selectedOrgId } : {}
3606
3609
  };
3607
- const result = await authClient.apiKey.create({
3610
+ const result = await authClient2.apiKey.create({
3608
3611
  name: values.name,
3609
3612
  expiresIn,
3610
3613
  prefix: typeof apiKey === "object" ? apiKey.prefix : void 0,
@@ -3618,7 +3621,7 @@ function CreateApiKeyDialog({
3618
3621
  } catch (error) {
3619
3622
  toast({
3620
3623
  variant: "error",
3621
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
3624
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
3622
3625
  });
3623
3626
  }
3624
3627
  };
@@ -3633,14 +3636,14 @@ function CreateApiKeyDialog({
3633
3636
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3634
3637
  DialogTitle,
3635
3638
  {
3636
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
3639
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
3637
3640
  children: localization.CREATE_API_KEY
3638
3641
  }
3639
3642
  ),
3640
3643
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3641
3644
  DialogDescription,
3642
3645
  {
3643
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3646
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3644
3647
  "text-xs md:text-sm",
3645
3648
  classNames == null ? void 0 : classNames.description
3646
3649
  ),
@@ -3677,7 +3680,7 @@ function CreateApiKeyDialog({
3677
3680
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3678
3681
  SelectTrigger,
3679
3682
  {
3680
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3683
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3681
3684
  "w-full p-2",
3682
3685
  classNames == null ? void 0 : classNames.input
3683
3686
  ),
@@ -3829,7 +3832,7 @@ function CreateApiKeyDialog({
3829
3832
  type: "button",
3830
3833
  variant: "outline",
3831
3834
  onClick: () => onOpenChange == null ? void 0 : onOpenChange(false),
3832
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3835
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3833
3836
  classNames == null ? void 0 : classNames.button,
3834
3837
  classNames == null ? void 0 : classNames.outlineButton
3835
3838
  ),
@@ -3842,7 +3845,7 @@ function CreateApiKeyDialog({
3842
3845
  {
3843
3846
  type: "submit",
3844
3847
  variant: "default",
3845
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
3848
+ className: _chunk42PRTYABcjs.cn.call(void 0,
3846
3849
  classNames == null ? void 0 : classNames.button,
3847
3850
  classNames == null ? void 0 : classNames.primaryButton
3848
3851
  ),
@@ -3874,7 +3877,7 @@ function ApiKeysCard({
3874
3877
  const {
3875
3878
  hooks: { useListApiKeys },
3876
3879
  localization: contextLocalization
3877
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
3880
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
3878
3881
  localization = { ...contextLocalization, ...localization };
3879
3882
  const { data: apiKeys, isPending, refetch } = useListApiKeys();
3880
3883
  const filteredApiKeys = _react.useMemo.call(void 0, () => {
@@ -3908,7 +3911,7 @@ function ApiKeysCard({
3908
3911
  children: filteredApiKeys && filteredApiKeys.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3909
3912
  CardContent,
3910
3913
  {
3911
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content),
3914
+ className: _chunk42PRTYABcjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content),
3912
3915
  children: filteredApiKeys == null ? void 0 : filteredApiKeys.map((apiKey) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3913
3916
  ApiKeyCell,
3914
3917
  {
@@ -3970,7 +3973,7 @@ function DeleteAccountDialog({
3970
3973
  }) {
3971
3974
  var _a, _b, _c;
3972
3975
  const {
3973
- authClient,
3976
+ authClient: authClient2,
3974
3977
  basePath,
3975
3978
  baseURL,
3976
3979
  deleteUser,
@@ -3980,7 +3983,7 @@ function DeleteAccountDialog({
3980
3983
  viewPaths,
3981
3984
  navigate,
3982
3985
  toast
3983
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
3986
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
3984
3987
  localization = { ...contextLocalization, ...localization };
3985
3988
  const { data: sessionData } = useSession();
3986
3989
  const session = sessionData == null ? void 0 : sessionData.session;
@@ -4011,7 +4014,7 @@ function DeleteAccountDialog({
4011
4014
  params.callbackURL = `${baseURL}${basePath}/${viewPaths.SIGN_OUT}`;
4012
4015
  }
4013
4016
  try {
4014
- await authClient.deleteUser({
4017
+ await authClient2.deleteUser({
4015
4018
  ...params,
4016
4019
  fetchOptions: {
4017
4020
  throw: true
@@ -4032,7 +4035,7 @@ function DeleteAccountDialog({
4032
4035
  } catch (error) {
4033
4036
  toast({
4034
4037
  variant: "error",
4035
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
4038
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
4036
4039
  });
4037
4040
  }
4038
4041
  onOpenChange == null ? void 0 : onOpenChange(false);
@@ -4040,20 +4043,20 @@ function DeleteAccountDialog({
4040
4043
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Dialog, { onOpenChange, ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4041
4044
  DialogContent,
4042
4045
  {
4043
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "sm:max-w-md", (_a = classNames == null ? void 0 : classNames.dialog) == null ? void 0 : _a.content),
4046
+ className: _chunk42PRTYABcjs.cn.call(void 0, "sm:max-w-md", (_a = classNames == null ? void 0 : classNames.dialog) == null ? void 0 : _a.content),
4044
4047
  children: [
4045
4048
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogHeader, { className: (_b = classNames == null ? void 0 : classNames.dialog) == null ? void 0 : _b.header, children: [
4046
4049
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4047
4050
  DialogTitle,
4048
4051
  {
4049
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
4052
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
4050
4053
  children: localization == null ? void 0 : localization.DELETE_ACCOUNT
4051
4054
  }
4052
4055
  ),
4053
4056
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4054
4057
  DialogDescription,
4055
4058
  {
4056
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
4059
+ className: _chunk42PRTYABcjs.cn.call(void 0,
4057
4060
  "text-xs md:text-sm",
4058
4061
  classNames == null ? void 0 : classNames.description
4059
4062
  ),
@@ -4061,7 +4064,7 @@ function DeleteAccountDialog({
4061
4064
  }
4062
4065
  )
4063
4066
  ] }),
4064
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "my-2 flex-row p-4", classNames == null ? void 0 : classNames.cell), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserView, { user, localization }) }),
4067
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: _chunk42PRTYABcjs.cn.call(void 0, "my-2 flex-row p-4", classNames == null ? void 0 : classNames.cell), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserView, { user, localization }) }),
4065
4068
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4066
4069
  "form",
4067
4070
  {
@@ -4106,7 +4109,7 @@ function DeleteAccountDialog({
4106
4109
  {
4107
4110
  type: "button",
4108
4111
  variant: "secondary",
4109
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
4112
+ className: _chunk42PRTYABcjs.cn.call(void 0,
4110
4113
  classNames == null ? void 0 : classNames.button,
4111
4114
  classNames == null ? void 0 : classNames.secondaryButton
4112
4115
  ),
@@ -4117,7 +4120,7 @@ function DeleteAccountDialog({
4117
4120
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4118
4121
  Button,
4119
4122
  {
4120
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
4123
+ className: _chunk42PRTYABcjs.cn.call(void 0,
4121
4124
  classNames == null ? void 0 : classNames.button,
4122
4125
  classNames == null ? void 0 : classNames.destructiveButton
4123
4126
  ),
@@ -4152,7 +4155,7 @@ function DeleteAccountCard({
4152
4155
  const {
4153
4156
  hooks: { useListAccounts },
4154
4157
  localization: contextLocalization
4155
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
4158
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
4156
4159
  localization = { ...contextLocalization, ...localization };
4157
4160
  const [showDialog, setShowDialog] = _react.useState.call(void 0, false);
4158
4161
  if (!skipHook) {
@@ -4208,7 +4211,7 @@ function SessionFreshnessDialog({
4208
4211
  localization: contextLocalization,
4209
4212
  viewPaths,
4210
4213
  navigate
4211
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
4214
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
4212
4215
  localization = { ...contextLocalization, ...localization };
4213
4216
  const handleSignOut = () => {
4214
4217
  navigate(`${basePath}/${viewPaths.SIGN_OUT}`);
@@ -4217,20 +4220,20 @@ function SessionFreshnessDialog({
4217
4220
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Dialog, { onOpenChange, ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4218
4221
  DialogContent,
4219
4222
  {
4220
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "sm:max-w-md", (_a = classNames == null ? void 0 : classNames.dialog) == null ? void 0 : _a.content),
4223
+ className: _chunk42PRTYABcjs.cn.call(void 0, "sm:max-w-md", (_a = classNames == null ? void 0 : classNames.dialog) == null ? void 0 : _a.content),
4221
4224
  children: [
4222
4225
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogHeader, { className: (_b = classNames == null ? void 0 : classNames.dialog) == null ? void 0 : _b.header, children: [
4223
4226
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4224
4227
  DialogTitle,
4225
4228
  {
4226
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
4229
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
4227
4230
  children: title || (localization == null ? void 0 : localization.SESSION_EXPIRED) || "Session Expired"
4228
4231
  }
4229
4232
  ),
4230
4233
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4231
4234
  DialogDescription,
4232
4235
  {
4233
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
4236
+ className: _chunk42PRTYABcjs.cn.call(void 0,
4234
4237
  "text-xs md:text-sm",
4235
4238
  classNames == null ? void 0 : classNames.description
4236
4239
  ),
@@ -4244,7 +4247,7 @@ function SessionFreshnessDialog({
4244
4247
  {
4245
4248
  type: "button",
4246
4249
  variant: "secondary",
4247
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
4250
+ className: _chunk42PRTYABcjs.cn.call(void 0,
4248
4251
  classNames == null ? void 0 : classNames.button,
4249
4252
  classNames == null ? void 0 : classNames.secondaryButton
4250
4253
  ),
@@ -4255,7 +4258,7 @@ function SessionFreshnessDialog({
4255
4258
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4256
4259
  Button,
4257
4260
  {
4258
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
4261
+ className: _chunk42PRTYABcjs.cn.call(void 0,
4259
4262
  classNames == null ? void 0 : classNames.button,
4260
4263
  classNames == null ? void 0 : classNames.primaryButton
4261
4264
  ),
@@ -4286,7 +4289,7 @@ function PasskeyCell({
4286
4289
  localization: contextLocalization,
4287
4290
  mutators: { deletePasskey },
4288
4291
  toast
4289
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
4292
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
4290
4293
  localization = { ...contextLocalization, ...localization };
4291
4294
  const { refetch } = useListPasskeys();
4292
4295
  const { data: sessionData } = useSession();
@@ -4307,7 +4310,7 @@ function PasskeyCell({
4307
4310
  setIsLoading(false);
4308
4311
  toast({
4309
4312
  variant: "error",
4310
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
4313
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
4311
4314
  });
4312
4315
  }
4313
4316
  };
@@ -4324,7 +4327,7 @@ function PasskeyCell({
4324
4327
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4325
4328
  Card,
4326
4329
  {
4327
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
4330
+ className: _chunk42PRTYABcjs.cn.call(void 0,
4328
4331
  "flex-row items-center p-4",
4329
4332
  className,
4330
4333
  classNames == null ? void 0 : classNames.cell
@@ -4334,7 +4337,7 @@ function PasskeyCell({
4334
4337
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4335
4338
  _lucidereact.FingerprintIcon,
4336
4339
  {
4337
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "size-4", classNames == null ? void 0 : classNames.icon)
4340
+ className: _chunk42PRTYABcjs.cn.call(void 0, "size-4", classNames == null ? void 0 : classNames.icon)
4338
4341
  }
4339
4342
  ),
4340
4343
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-sm", children: new Date(passkey.createdAt).toLocaleString() })
@@ -4342,7 +4345,7 @@ function PasskeyCell({
4342
4345
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4343
4346
  Button,
4344
4347
  {
4345
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
4348
+ className: _chunk42PRTYABcjs.cn.call(void 0,
4346
4349
  "relative ms-auto",
4347
4350
  classNames == null ? void 0 : classNames.button,
4348
4351
  classNames == null ? void 0 : classNames.outlineButton
@@ -4371,12 +4374,12 @@ function PasskeysCard({
4371
4374
  localization
4372
4375
  }) {
4373
4376
  const {
4374
- authClient,
4377
+ authClient: authClient2,
4375
4378
  freshAge,
4376
4379
  hooks: { useListPasskeys, useSession },
4377
4380
  localization: authLocalization2,
4378
4381
  toast
4379
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
4382
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
4380
4383
  localization = { ...authLocalization2, ...localization };
4381
4384
  const { data: passkeys, isPending, refetch } = useListPasskeys();
4382
4385
  const { data: sessionData } = useSession();
@@ -4389,14 +4392,14 @@ function PasskeysCard({
4389
4392
  return;
4390
4393
  }
4391
4394
  try {
4392
- await authClient.passkey.addPasskey({
4395
+ await authClient2.passkey.addPasskey({
4393
4396
  fetchOptions: { throw: true }
4394
4397
  });
4395
4398
  await (refetch == null ? void 0 : refetch());
4396
4399
  } catch (error) {
4397
4400
  toast({
4398
4401
  variant: "error",
4399
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
4402
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
4400
4403
  });
4401
4404
  }
4402
4405
  };
@@ -4424,7 +4427,7 @@ function PasskeysCard({
4424
4427
  children: passkeys && passkeys.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4425
4428
  CardContent,
4426
4429
  {
4427
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
4430
+ className: _chunk42PRTYABcjs.cn.call(void 0,
4428
4431
  "grid gap-4",
4429
4432
  classNames == null ? void 0 : classNames.content
4430
4433
  ),
@@ -5034,14 +5037,14 @@ function ProviderCell({
5034
5037
  refetch
5035
5038
  }) {
5036
5039
  const {
5037
- authClient,
5040
+ authClient: authClient2,
5038
5041
  basePath,
5039
5042
  baseURL,
5040
5043
  localization: contextLocalization,
5041
5044
  mutators: { unlinkAccount },
5042
5045
  viewPaths,
5043
5046
  toast
5044
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
5047
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
5045
5048
  localization = { ...contextLocalization, ...localization };
5046
5049
  const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
5047
5050
  const handleLink = async () => {
@@ -5049,13 +5052,13 @@ function ProviderCell({
5049
5052
  const callbackURL = `${baseURL}${basePath}/${viewPaths.CALLBACK}?redirectTo=${window.location.pathname}`;
5050
5053
  try {
5051
5054
  if (other) {
5052
- await authClient.oauth2.link({
5055
+ await authClient2.oauth2.link({
5053
5056
  providerId: provider.provider,
5054
5057
  callbackURL,
5055
5058
  fetchOptions: { throw: true }
5056
5059
  });
5057
5060
  } else {
5058
- await authClient.linkSocial({
5061
+ await authClient2.linkSocial({
5059
5062
  provider: provider.provider,
5060
5063
  callbackURL,
5061
5064
  fetchOptions: { throw: true }
@@ -5064,7 +5067,7 @@ function ProviderCell({
5064
5067
  } catch (error) {
5065
5068
  toast({
5066
5069
  variant: "error",
5067
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
5070
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
5068
5071
  });
5069
5072
  setIsLoading(false);
5070
5073
  }
@@ -5080,7 +5083,7 @@ function ProviderCell({
5080
5083
  } catch (error) {
5081
5084
  toast({
5082
5085
  variant: "error",
5083
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
5086
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
5084
5087
  });
5085
5088
  }
5086
5089
  setIsLoading(false);
@@ -5088,13 +5091,13 @@ function ProviderCell({
5088
5091
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5089
5092
  Card,
5090
5093
  {
5091
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
5094
+ className: _chunk42PRTYABcjs.cn.call(void 0,
5092
5095
  "flex-row items-center gap-3 px-4 py-3",
5093
5096
  className,
5094
5097
  classNames == null ? void 0 : classNames.cell
5095
5098
  ),
5096
5099
  children: [
5097
- provider.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, provider.icon, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "size-4", classNames == null ? void 0 : classNames.icon) }),
5100
+ provider.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, provider.icon, { className: _chunk42PRTYABcjs.cn.call(void 0, "size-4", classNames == null ? void 0 : classNames.icon) }),
5098
5101
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-col", children: [
5099
5102
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-sm", children: provider.name }),
5100
5103
  account && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AccountInfo, { account })
@@ -5102,7 +5105,7 @@ function ProviderCell({
5102
5105
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5103
5106
  Button,
5104
5107
  {
5105
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "relative ms-auto", classNames == null ? void 0 : classNames.button),
5108
+ className: _chunk42PRTYABcjs.cn.call(void 0, "relative ms-auto", classNames == null ? void 0 : classNames.button),
5106
5109
  disabled: isLoading,
5107
5110
  size: "sm",
5108
5111
  type: "button",
@@ -5121,7 +5124,7 @@ function ProviderCell({
5121
5124
  function AccountInfo({ account }) {
5122
5125
  const {
5123
5126
  hooks: { useAccountInfo }
5124
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
5127
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
5125
5128
  const { data: accountInfo, isPending } = useAccountInfo({
5126
5129
  accountId: account.accountId
5127
5130
  });
@@ -5149,7 +5152,7 @@ function ProvidersCard({
5149
5152
  localization: contextLocalization,
5150
5153
  social,
5151
5154
  genericOAuth
5152
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
5155
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
5153
5156
  localization = { ...contextLocalization, ...localization };
5154
5157
  if (!skipHook) {
5155
5158
  const result = useListAccounts();
@@ -5165,7 +5168,7 @@ function ProvidersCard({
5165
5168
  title: localization.PROVIDERS,
5166
5169
  description: localization.PROVIDERS_DESCRIPTION,
5167
5170
  isPending,
5168
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content), children: isPending ? (_a = social == null ? void 0 : social.providers) == null ? void 0 : _a.map((provider) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5171
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: _chunk42PRTYABcjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content), children: isPending ? (_a = social == null ? void 0 : social.providers) == null ? void 0 : _a.map((provider) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5169
5172
  SettingsCellSkeleton,
5170
5173
  {
5171
5174
  classNames
@@ -5230,7 +5233,7 @@ function PasswordInput({
5230
5233
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5231
5234
  Input,
5232
5235
  {
5233
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, enableToggle && "pr-10", className),
5236
+ className: _chunk42PRTYABcjs.cn.call(void 0, enableToggle && "pr-10", className),
5234
5237
  ...props,
5235
5238
  type: isVisible && enableToggle ? "text" : "password",
5236
5239
  onChange: (event) => {
@@ -5270,8 +5273,8 @@ function InputFieldSkeleton({
5270
5273
  classNames
5271
5274
  }) {
5272
5275
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1.5", children: [
5273
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "h-4 w-32", classNames == null ? void 0 : classNames.skeleton) }),
5274
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "h-9 w-full", classNames == null ? void 0 : classNames.skeleton) })
5276
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: _chunk42PRTYABcjs.cn.call(void 0, "h-4 w-32", classNames == null ? void 0 : classNames.skeleton) }),
5277
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: _chunk42PRTYABcjs.cn.call(void 0, "h-9 w-full", classNames == null ? void 0 : classNames.skeleton) })
5275
5278
  ] });
5276
5279
  }
5277
5280
 
@@ -5287,7 +5290,7 @@ function ChangePasswordCard({
5287
5290
  passwordValidation
5288
5291
  }) {
5289
5292
  const {
5290
- authClient,
5293
+ authClient: authClient2,
5291
5294
  basePath,
5292
5295
  baseURL,
5293
5296
  credentials,
@@ -5295,7 +5298,7 @@ function ChangePasswordCard({
5295
5298
  localization: contextLocalization,
5296
5299
  viewPaths,
5297
5300
  toast
5298
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
5301
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
5299
5302
  const confirmPasswordEnabled = credentials == null ? void 0 : credentials.confirmPassword;
5300
5303
  const contextPasswordValidation = credentials == null ? void 0 : credentials.passwordValidation;
5301
5304
  localization = { ...contextLocalization, ...localization };
@@ -5307,17 +5310,17 @@ function ChangePasswordCard({
5307
5310
  isPending = result.isPending;
5308
5311
  }
5309
5312
  const formSchema = z6.object({
5310
- currentPassword: _chunkCRAHKL2Ccjs.getPasswordSchema.call(void 0,
5313
+ currentPassword: _chunk42PRTYABcjs.getPasswordSchema.call(void 0,
5311
5314
  passwordValidation,
5312
5315
  localization
5313
5316
  ),
5314
- newPassword: _chunkCRAHKL2Ccjs.getPasswordSchema.call(void 0, passwordValidation, {
5317
+ newPassword: _chunk42PRTYABcjs.getPasswordSchema.call(void 0, passwordValidation, {
5315
5318
  PASSWORD_REQUIRED: localization.NEW_PASSWORD_REQUIRED,
5316
5319
  PASSWORD_TOO_SHORT: localization.PASSWORD_TOO_SHORT,
5317
5320
  PASSWORD_TOO_LONG: localization.PASSWORD_TOO_LONG,
5318
5321
  INVALID_PASSWORD: localization.INVALID_PASSWORD
5319
5322
  }),
5320
- confirmPassword: confirmPasswordEnabled ? _chunkCRAHKL2Ccjs.getPasswordSchema.call(void 0, passwordValidation, {
5323
+ confirmPassword: confirmPasswordEnabled ? _chunk42PRTYABcjs.getPasswordSchema.call(void 0, passwordValidation, {
5321
5324
  PASSWORD_REQUIRED: localization.CONFIRM_PASSWORD_REQUIRED,
5322
5325
  PASSWORD_TOO_SHORT: localization.PASSWORD_TOO_SHORT,
5323
5326
  PASSWORD_TOO_LONG: localization.PASSWORD_TOO_LONG,
@@ -5344,7 +5347,7 @@ function ChangePasswordCard({
5344
5347
  if (!sessionData) return;
5345
5348
  const email = sessionData == null ? void 0 : sessionData.user.email;
5346
5349
  try {
5347
- await authClient.requestPasswordReset({
5350
+ await authClient2.requestPasswordReset({
5348
5351
  email,
5349
5352
  redirectTo: `${baseURL}${basePath}/${viewPaths.RESET_PASSWORD}`,
5350
5353
  fetchOptions: { throw: true }
@@ -5356,7 +5359,7 @@ function ChangePasswordCard({
5356
5359
  } catch (error) {
5357
5360
  toast({
5358
5361
  variant: "error",
5359
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
5362
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
5360
5363
  });
5361
5364
  }
5362
5365
  };
@@ -5365,7 +5368,7 @@ function ChangePasswordCard({
5365
5368
  newPassword
5366
5369
  }) => {
5367
5370
  try {
5368
- await authClient.changePassword({
5371
+ await authClient2.changePassword({
5369
5372
  currentPassword,
5370
5373
  newPassword,
5371
5374
  revokeOtherSessions: true,
@@ -5378,7 +5381,7 @@ function ChangePasswordCard({
5378
5381
  } catch (error) {
5379
5382
  toast({
5380
5383
  variant: "error",
5381
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
5384
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
5382
5385
  });
5383
5386
  }
5384
5387
  form.reset();
@@ -5412,7 +5415,7 @@ function ChangePasswordCard({
5412
5415
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5413
5416
  CardContent,
5414
5417
  {
5415
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid gap-6", classNames == null ? void 0 : classNames.content),
5418
+ className: _chunk42PRTYABcjs.cn.call(void 0, "grid gap-6", classNames == null ? void 0 : classNames.content),
5416
5419
  children: isPending || !accounts ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
5417
5420
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InputFieldSkeleton, { classNames }),
5418
5421
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InputFieldSkeleton, { classNames }),
@@ -5552,7 +5555,7 @@ function SessionCell({
5552
5555
  viewPaths,
5553
5556
  navigate,
5554
5557
  toast
5555
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
5558
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
5556
5559
  localization = { ...contextLocalization, ...localization };
5557
5560
  const { data: sessionData } = useSession();
5558
5561
  const isCurrentSession = session.id === ((_a = sessionData == null ? void 0 : sessionData.session) == null ? void 0 : _a.id);
@@ -5569,7 +5572,7 @@ function SessionCell({
5569
5572
  } catch (error) {
5570
5573
  toast({
5571
5574
  variant: "error",
5572
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
5575
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
5573
5576
  });
5574
5577
  setIsLoading(false);
5575
5578
  }
@@ -5579,13 +5582,13 @@ function SessionCell({
5579
5582
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5580
5583
  Card,
5581
5584
  {
5582
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
5585
+ className: _chunk42PRTYABcjs.cn.call(void 0,
5583
5586
  "flex-row items-center gap-3 px-4 py-3",
5584
5587
  className,
5585
5588
  classNames == null ? void 0 : classNames.cell
5586
5589
  ),
5587
5590
  children: [
5588
- isMobile ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.SmartphoneIcon, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "size-4", classNames == null ? void 0 : classNames.icon) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.LaptopIcon, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "size-4", classNames == null ? void 0 : classNames.icon) }),
5591
+ isMobile ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.SmartphoneIcon, { className: _chunk42PRTYABcjs.cn.call(void 0, "size-4", classNames == null ? void 0 : classNames.icon) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.LaptopIcon, { className: _chunk42PRTYABcjs.cn.call(void 0, "size-4", classNames == null ? void 0 : classNames.icon) }),
5589
5592
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
5590
5593
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-semibold text-sm", children: isCurrentSession ? localization.CURRENT_SESSION : session == null ? void 0 : session.ipAddress }),
5591
5594
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground text-xs", children: ((_b = session.userAgent) == null ? void 0 : _b.includes("tauri-plugin-http")) ? localization.APP : parser.os.name && parser.browser.name ? `${parser.os.name}, ${parser.browser.name}` : parser.os.name || parser.browser.name || session.userAgent || localization.UNKNOWN })
@@ -5593,7 +5596,7 @@ function SessionCell({
5593
5596
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5594
5597
  Button,
5595
5598
  {
5596
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
5599
+ className: _chunk42PRTYABcjs.cn.call(void 0,
5597
5600
  "relative ms-auto",
5598
5601
  classNames == null ? void 0 : classNames.button,
5599
5602
  classNames == null ? void 0 : classNames.outlineButton
@@ -5623,7 +5626,7 @@ function SessionsCard({
5623
5626
  const {
5624
5627
  hooks: { useListSessions },
5625
5628
  localization: contextLocalization
5626
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
5629
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
5627
5630
  localization = { ...contextLocalization, ...localization };
5628
5631
  const { data: sessions, isPending, refetch } = useListSessions();
5629
5632
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -5634,7 +5637,7 @@ function SessionsCard({
5634
5637
  description: localization.SESSIONS_DESCRIPTION,
5635
5638
  isPending,
5636
5639
  title: localization.SESSIONS,
5637
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content), children: isPending ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SettingsCellSkeleton, { classNames }) : sessions == null ? void 0 : sessions.map((session) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5640
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: _chunk42PRTYABcjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content), children: isPending ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SettingsCellSkeleton, { classNames }) : sessions == null ? void 0 : sessions.map((session) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5638
5641
  SessionCell,
5639
5642
  {
5640
5643
  classNames,
@@ -5669,7 +5672,7 @@ function BackupCodesDialog({
5669
5672
  ...props
5670
5673
  }) {
5671
5674
  var _a, _b, _c;
5672
- const { localization } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
5675
+ const { localization } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
5673
5676
  const [copied, setCopied] = _react.useState.call(void 0, false);
5674
5677
  const handleCopy = () => {
5675
5678
  const codeText = backupCodes.join("\n");
@@ -5687,14 +5690,14 @@ function BackupCodesDialog({
5687
5690
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5688
5691
  DialogTitle,
5689
5692
  {
5690
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
5693
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
5691
5694
  children: localization.BACKUP_CODES
5692
5695
  }
5693
5696
  ),
5694
5697
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5695
5698
  DialogDescription,
5696
5699
  {
5697
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
5700
+ className: _chunk42PRTYABcjs.cn.call(void 0,
5698
5701
  "text-xs md:text-sm",
5699
5702
  classNames == null ? void 0 : classNames.description
5700
5703
  ),
@@ -5718,7 +5721,7 @@ function BackupCodesDialog({
5718
5721
  variant: "outline",
5719
5722
  onClick: handleCopy,
5720
5723
  disabled: copied,
5721
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
5724
+ className: _chunk42PRTYABcjs.cn.call(void 0,
5722
5725
  classNames == null ? void 0 : classNames.button,
5723
5726
  classNames == null ? void 0 : classNames.outlineButton
5724
5727
  ),
@@ -5737,7 +5740,7 @@ function BackupCodesDialog({
5737
5740
  type: "button",
5738
5741
  variant: "default",
5739
5742
  onClick: () => onOpenChange == null ? void 0 : onOpenChange(false),
5740
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
5743
+ className: _chunk42PRTYABcjs.cn.call(void 0,
5741
5744
  classNames == null ? void 0 : classNames.button,
5742
5745
  classNames == null ? void 0 : classNames.primaryButton
5743
5746
  ),
@@ -5761,13 +5764,13 @@ function TwoFactorPasswordDialog({
5761
5764
  var _a, _b;
5762
5765
  const {
5763
5766
  localization,
5764
- authClient,
5767
+ authClient: authClient2,
5765
5768
  basePath,
5766
5769
  viewPaths,
5767
5770
  navigate,
5768
5771
  toast,
5769
5772
  twoFactor
5770
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
5773
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
5771
5774
  const [showBackupCodesDialog, setShowBackupCodesDialog] = _react.useState.call(void 0, false);
5772
5775
  const [backupCodes, setBackupCodes] = _react.useState.call(void 0, []);
5773
5776
  const [totpURI, setTotpURI] = _react.useState.call(void 0, null);
@@ -5783,7 +5786,7 @@ function TwoFactorPasswordDialog({
5783
5786
  const { isSubmitting } = form.formState;
5784
5787
  async function enableTwoFactor({ password }) {
5785
5788
  try {
5786
- const response = await authClient.twoFactor.enable({
5789
+ const response = await authClient2.twoFactor.enable({
5787
5790
  password,
5788
5791
  fetchOptions: { throw: true }
5789
5792
  });
@@ -5798,13 +5801,13 @@ function TwoFactorPasswordDialog({
5798
5801
  } catch (error) {
5799
5802
  toast({
5800
5803
  variant: "error",
5801
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
5804
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
5802
5805
  });
5803
5806
  }
5804
5807
  }
5805
5808
  async function disableTwoFactor({ password }) {
5806
5809
  try {
5807
- await authClient.twoFactor.disable({
5810
+ await authClient2.twoFactor.disable({
5808
5811
  password,
5809
5812
  fetchOptions: { throw: true }
5810
5813
  });
@@ -5816,7 +5819,7 @@ function TwoFactorPasswordDialog({
5816
5819
  } catch (error) {
5817
5820
  toast({
5818
5821
  variant: "error",
5819
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
5822
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
5820
5823
  });
5821
5824
  }
5822
5825
  }
@@ -5824,7 +5827,7 @@ function TwoFactorPasswordDialog({
5824
5827
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Dialog, { onOpenChange, ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5825
5828
  DialogContent,
5826
5829
  {
5827
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "sm:max-w-md", classNames == null ? void 0 : classNames.dialog),
5830
+ className: _chunk42PRTYABcjs.cn.call(void 0, "sm:max-w-md", classNames == null ? void 0 : classNames.dialog),
5828
5831
  children: [
5829
5832
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogHeader, { className: (_a = classNames == null ? void 0 : classNames.dialog) == null ? void 0 : _a.header, children: [
5830
5833
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTitle, { className: classNames == null ? void 0 : classNames.title, children: localization.TWO_FACTOR }),
@@ -5880,7 +5883,7 @@ function TwoFactorPasswordDialog({
5880
5883
  type: "button",
5881
5884
  variant: "secondary",
5882
5885
  onClick: () => onOpenChange == null ? void 0 : onOpenChange(false),
5883
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
5886
+ className: _chunk42PRTYABcjs.cn.call(void 0,
5884
5887
  classNames == null ? void 0 : classNames.button,
5885
5888
  classNames == null ? void 0 : classNames.secondaryButton
5886
5889
  ),
@@ -5892,7 +5895,7 @@ function TwoFactorPasswordDialog({
5892
5895
  {
5893
5896
  type: "submit",
5894
5897
  disabled: isSubmitting,
5895
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
5898
+ className: _chunk42PRTYABcjs.cn.call(void 0,
5896
5899
  classNames == null ? void 0 : classNames.button,
5897
5900
  classNames == null ? void 0 : classNames.primaryButton
5898
5901
  ),
@@ -5942,7 +5945,7 @@ function TwoFactorCard({
5942
5945
  const {
5943
5946
  localization: contextLocalization,
5944
5947
  hooks: { useSession }
5945
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
5948
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
5946
5949
  const [showPasswordDialog, setShowPasswordDialog] = _react.useState.call(void 0, false);
5947
5950
  localization = { ...contextLocalization, ...localization };
5948
5951
  const { data: sessionData, isPending } = useSession();
@@ -5990,7 +5993,7 @@ function SecuritySettingsCards({
5990
5993
  social,
5991
5994
  genericOAuth,
5992
5995
  twoFactor
5993
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
5996
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
5994
5997
  localization = { ...contextLocalization, ...localization };
5995
5998
  const { useListAccounts } = hooks;
5996
5999
  const {
@@ -6004,7 +6007,7 @@ function SecuritySettingsCards({
6004
6007
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
6005
6008
  "div",
6006
6009
  {
6007
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
6010
+ className: _chunk42PRTYABcjs.cn.call(void 0,
6008
6011
  "flex w-full flex-col gap-4 md:gap-6",
6009
6012
  className,
6010
6013
  classNames == null ? void 0 : classNames.cards
@@ -6089,7 +6092,7 @@ var DrawerOverlay = React12.forwardRef(({ className, ...props }, ref) => /* @__P
6089
6092
  _vaul.Drawer.Overlay,
6090
6093
  {
6091
6094
  ref,
6092
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "fixed inset-0 z-50 bg-black/80", className),
6095
+ className: _chunk42PRTYABcjs.cn.call(void 0, "fixed inset-0 z-50 bg-black/80", className),
6093
6096
  ...props
6094
6097
  }
6095
6098
  ));
@@ -6100,7 +6103,7 @@ var DrawerContent = React12.forwardRef(({ className, children, ...props }, ref)
6100
6103
  _vaul.Drawer.Content,
6101
6104
  {
6102
6105
  ref,
6103
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
6106
+ className: _chunk42PRTYABcjs.cn.call(void 0,
6104
6107
  "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
6105
6108
  className
6106
6109
  ),
@@ -6119,7 +6122,7 @@ var DrawerHeader = ({
6119
6122
  }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6120
6123
  "div",
6121
6124
  {
6122
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid gap-1.5 p-4 text-center sm:text-left", className),
6125
+ className: _chunk42PRTYABcjs.cn.call(void 0, "grid gap-1.5 p-4 text-center sm:text-left", className),
6123
6126
  ...props
6124
6127
  }
6125
6128
  );
@@ -6130,7 +6133,7 @@ var DrawerFooter = ({
6130
6133
  }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6131
6134
  "div",
6132
6135
  {
6133
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "mt-auto flex flex-col gap-2 p-4", className),
6136
+ className: _chunk42PRTYABcjs.cn.call(void 0, "mt-auto flex flex-col gap-2 p-4", className),
6134
6137
  ...props
6135
6138
  }
6136
6139
  );
@@ -6139,7 +6142,7 @@ var DrawerTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PUR
6139
6142
  _vaul.Drawer.Title,
6140
6143
  {
6141
6144
  ref,
6142
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
6145
+ className: _chunk42PRTYABcjs.cn.call(void 0,
6143
6146
  "text-lg font-semibold leading-none tracking-tight",
6144
6147
  className
6145
6148
  ),
@@ -6151,7 +6154,7 @@ var DrawerDescription = React12.forwardRef(({ className, ...props }, ref) => /*
6151
6154
  _vaul.Drawer.Description,
6152
6155
  {
6153
6156
  ref,
6154
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-sm text-muted-foreground", className),
6157
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-sm text-muted-foreground", className),
6155
6158
  ...props
6156
6159
  }
6157
6160
  ));
@@ -6175,7 +6178,7 @@ function AccountView({
6175
6178
  organization,
6176
6179
  account: accountOptions,
6177
6180
  Link
6178
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
6181
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
6179
6182
  if (!accountOptions) {
6180
6183
  return null;
6181
6184
  }
@@ -6185,7 +6188,7 @@ function AccountView({
6185
6188
  [contextLocalization, localizationProp]
6186
6189
  );
6187
6190
  const path = _nullishCoalesce(pathProp, () => ( (pathname == null ? void 0 : pathname.split("/").pop())));
6188
- const view = viewProp || _chunkCRAHKL2Ccjs.getViewByPath.call(void 0, accountOptions.viewPaths, path) || "SETTINGS";
6191
+ const view = viewProp || _chunk42PRTYABcjs.getViewByPath.call(void 0, accountOptions.viewPaths, path) || "SETTINGS";
6189
6192
  const navItems = [
6190
6193
  { view: "SETTINGS", label: localization.ACCOUNT },
6191
6194
  { view: "SECURITY", label: localization.SECURITY }
@@ -6205,7 +6208,7 @@ function AccountView({
6205
6208
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
6206
6209
  "div",
6207
6210
  {
6208
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
6211
+ className: _chunk42PRTYABcjs.cn.call(void 0,
6209
6212
  "flex w-full grow flex-col gap-4 md:flex-row md:gap-12",
6210
6213
  className,
6211
6214
  classNames == null ? void 0 : classNames.base
@@ -6227,7 +6230,7 @@ function AccountView({
6227
6230
  Button,
6228
6231
  {
6229
6232
  size: "lg",
6230
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
6233
+ className: _chunk42PRTYABcjs.cn.call(void 0,
6231
6234
  "w-full justify-start px-4 transition-none",
6232
6235
  (_a2 = classNames == null ? void 0 : classNames.drawer) == null ? void 0 : _a2.menuItem,
6233
6236
  view === item.view ? "font-semibold" : "text-foreground/70"
@@ -6246,7 +6249,7 @@ function AccountView({
6246
6249
  !hideNav && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden md:block", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6247
6250
  "div",
6248
6251
  {
6249
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
6252
+ className: _chunk42PRTYABcjs.cn.call(void 0,
6250
6253
  "flex w-48 flex-col gap-1 lg:w-60",
6251
6254
  (_b = classNames == null ? void 0 : classNames.sidebar) == null ? void 0 : _b.base
6252
6255
  ),
@@ -6260,7 +6263,7 @@ function AccountView({
6260
6263
  Button,
6261
6264
  {
6262
6265
  size: "lg",
6263
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
6266
+ className: _chunk42PRTYABcjs.cn.call(void 0,
6264
6267
  "w-full justify-start px-4 transition-none",
6265
6268
  (_a2 = classNames == null ? void 0 : classNames.sidebar) == null ? void 0 : _a2.button,
6266
6269
  view === item.view ? "font-semibold" : "text-foreground/70",
@@ -6333,9 +6336,9 @@ function AccountView({
6333
6336
  function useOnSuccessTransition({
6334
6337
  redirectTo: redirectToProp
6335
6338
  }) {
6336
- const { redirectTo: contextRedirectTo } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
6339
+ const { redirectTo: contextRedirectTo } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
6337
6340
  const getRedirectTo = _react.useCallback.call(void 0,
6338
- () => redirectToProp || _chunkCRAHKL2Ccjs.getSearchParam.call(void 0, "redirectTo") || contextRedirectTo,
6341
+ () => redirectToProp || _chunk42PRTYABcjs.getSearchParam.call(void 0, "redirectTo") || contextRedirectTo,
6339
6342
  [redirectToProp, contextRedirectTo]
6340
6343
  );
6341
6344
  const [isPending, startTransition] = _react.useTransition.call(void 0, );
@@ -6344,7 +6347,7 @@ function useOnSuccessTransition({
6344
6347
  navigate,
6345
6348
  hooks: { useSession },
6346
6349
  onSessionChange
6347
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
6350
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
6348
6351
  const { refetch: refetchSession } = useSession();
6349
6352
  _react.useEffect.call(void 0, () => {
6350
6353
  if (!success || isPending) return;
@@ -6366,7 +6369,7 @@ function AuthCallback({ redirectTo }) {
6366
6369
  const {
6367
6370
  hooks: { useIsRestoring },
6368
6371
  persistClient
6369
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
6372
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
6370
6373
  const isRestoring = useIsRestoring == null ? void 0 : useIsRestoring();
6371
6374
  const isRedirecting = _react.useRef.call(void 0, false);
6372
6375
  const { onSuccess } = useOnSuccessTransition({ redirectTo });
@@ -6403,16 +6406,16 @@ var InputOTP = React13.forwardRef(({ className, containerClassName, ...props },
6403
6406
  _inputotp.OTPInput,
6404
6407
  {
6405
6408
  ref,
6406
- containerClassName: _chunkCRAHKL2Ccjs.cn.call(void 0,
6409
+ containerClassName: _chunk42PRTYABcjs.cn.call(void 0,
6407
6410
  "flex items-center gap-2 has-[:disabled]:opacity-50",
6408
6411
  containerClassName
6409
6412
  ),
6410
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "disabled:cursor-not-allowed", className),
6413
+ className: _chunk42PRTYABcjs.cn.call(void 0, "disabled:cursor-not-allowed", className),
6411
6414
  ...props
6412
6415
  }
6413
6416
  ));
6414
6417
  InputOTP.displayName = "InputOTP";
6415
- var InputOTPGroup = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkCRAHKL2Ccjs.cn.call(void 0, "flex items-center", className), ...props }));
6418
+ var InputOTPGroup = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk42PRTYABcjs.cn.call(void 0, "flex items-center", className), ...props }));
6416
6419
  InputOTPGroup.displayName = "InputOTPGroup";
6417
6420
  var InputOTPSlot = React13.forwardRef(({ index, className, ...props }, ref) => {
6418
6421
  const inputOTPContext = React13.useContext(_inputotp.OTPInputContext);
@@ -6421,7 +6424,7 @@ var InputOTPSlot = React13.forwardRef(({ index, className, ...props }, ref) => {
6421
6424
  "div",
6422
6425
  {
6423
6426
  ref,
6424
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
6427
+ className: _chunk42PRTYABcjs.cn.call(void 0,
6425
6428
  "relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
6426
6429
  isActive && "z-10 ring-1 ring-ring",
6427
6430
  className
@@ -6503,12 +6506,12 @@ function EmailForm({
6503
6506
  setIsSubmitting,
6504
6507
  setEmail
6505
6508
  }) {
6506
- const isHydrated = _chunkSV64DXGWcjs.useIsHydrated.call(void 0, );
6509
+ const isHydrated = _chunkB24ZS3AScjs.useIsHydrated.call(void 0, );
6507
6510
  const {
6508
- authClient,
6511
+ authClient: authClient2,
6509
6512
  localization: contextLocalization,
6510
6513
  toast
6511
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
6514
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
6512
6515
  localization = { ...contextLocalization, ...localization };
6513
6516
  const formSchema = z8.object({
6514
6517
  email: z8.string().email({
@@ -6527,7 +6530,7 @@ function EmailForm({
6527
6530
  }, [form.formState.isSubmitting, setIsSubmitting]);
6528
6531
  async function sendEmailOTP({ email }) {
6529
6532
  try {
6530
- await authClient.emailOtp.sendVerificationOtp({
6533
+ await authClient2.emailOtp.sendVerificationOtp({
6531
6534
  email,
6532
6535
  type: "sign-in",
6533
6536
  fetchOptions: { throw: true }
@@ -6540,7 +6543,7 @@ function EmailForm({
6540
6543
  } catch (error) {
6541
6544
  toast({
6542
6545
  variant: "error",
6543
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
6546
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
6544
6547
  });
6545
6548
  }
6546
6549
  }
@@ -6549,7 +6552,7 @@ function EmailForm({
6549
6552
  {
6550
6553
  onSubmit: form.handleSubmit(sendEmailOTP),
6551
6554
  noValidate: isHydrated,
6552
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
6555
+ className: _chunk42PRTYABcjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
6553
6556
  children: [
6554
6557
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6555
6558
  FormField,
@@ -6577,7 +6580,7 @@ function EmailForm({
6577
6580
  {
6578
6581
  type: "submit",
6579
6582
  disabled: isSubmitting,
6580
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
6583
+ className: _chunk42PRTYABcjs.cn.call(void 0,
6581
6584
  "w-full",
6582
6585
  classNames == null ? void 0 : classNames.button,
6583
6586
  classNames == null ? void 0 : classNames.primaryButton
@@ -6600,10 +6603,10 @@ function OTPForm({
6600
6603
  email
6601
6604
  }) {
6602
6605
  const {
6603
- authClient,
6606
+ authClient: authClient2,
6604
6607
  localization: contextLocalization,
6605
6608
  toast
6606
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
6609
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
6607
6610
  localization = { ...contextLocalization, ...localization };
6608
6611
  const { onSuccess, isPending: transitionPending } = useOnSuccessTransition({
6609
6612
  redirectTo
@@ -6627,7 +6630,7 @@ function OTPForm({
6627
6630
  }, [form.formState.isSubmitting, transitionPending, setIsSubmitting]);
6628
6631
  async function verifyCode({ code }) {
6629
6632
  try {
6630
- await authClient.signIn.emailOtp({
6633
+ await authClient2.signIn.emailOtp({
6631
6634
  email,
6632
6635
  otp: code,
6633
6636
  fetchOptions: { throw: true }
@@ -6636,7 +6639,7 @@ function OTPForm({
6636
6639
  } catch (error) {
6637
6640
  toast({
6638
6641
  variant: "error",
6639
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
6642
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
6640
6643
  });
6641
6644
  form.reset();
6642
6645
  }
@@ -6645,7 +6648,7 @@ function OTPForm({
6645
6648
  "form",
6646
6649
  {
6647
6650
  onSubmit: form.handleSubmit(verifyCode),
6648
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
6651
+ className: _chunk42PRTYABcjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
6649
6652
  children: [
6650
6653
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6651
6654
  FormField,
@@ -6685,7 +6688,7 @@ function OTPForm({
6685
6688
  {
6686
6689
  type: "submit",
6687
6690
  disabled: isSubmitting,
6688
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
6691
+ className: _chunk42PRTYABcjs.cn.call(void 0,
6689
6692
  classNames == null ? void 0 : classNames.button,
6690
6693
  classNames == null ? void 0 : classNames.primaryButton
6691
6694
  ),
@@ -6723,7 +6726,7 @@ var sanitizeActionName = (action) => {
6723
6726
  function useCaptcha({
6724
6727
  localization
6725
6728
  }) {
6726
- const { captcha, localization: contextLocalization } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
6729
+ const { captcha, localization: contextLocalization } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
6727
6730
  localization = { ...contextLocalization, ...localization };
6728
6731
  const captchaRef = _react.useRef.call(void 0, null);
6729
6732
  const { executeRecaptcha } = _reactrecaptchav3.useGoogleReCaptcha.call(void 0, );
@@ -6814,8 +6817,8 @@ function RecaptchaBadge({
6814
6817
  className,
6815
6818
  localization: propLocalization
6816
6819
  }) {
6817
- const isHydrated = _chunkSV64DXGWcjs.useIsHydrated.call(void 0, );
6818
- const { captcha, localization: contextLocalization } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
6820
+ const isHydrated = _chunkB24ZS3AScjs.useIsHydrated.call(void 0, );
6821
+ const { captcha, localization: contextLocalization } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
6819
6822
  const localization = { ...contextLocalization, ...propLocalization };
6820
6823
  if (!captcha) return null;
6821
6824
  if (!captcha.hideBadge) {
@@ -6827,7 +6830,7 @@ function RecaptchaBadge({
6827
6830
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "style", { children: `
6828
6831
  .grecaptcha-badge { visibility: hidden; }
6829
6832
  ` }),
6830
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-muted-foreground text-xs", className), children: [
6833
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: _chunk42PRTYABcjs.cn.call(void 0, "text-muted-foreground text-xs", className), children: [
6831
6834
  localization.PROTECTED_BY_RECAPTCHA,
6832
6835
  " ",
6833
6836
  localization.BY_CONTINUING_YOU_AGREE,
@@ -6866,9 +6869,9 @@ function RecaptchaBadge({
6866
6869
  var _reactgooglerecaptcha = require('react-google-recaptcha'); var _reactgooglerecaptcha2 = _interopRequireDefault(_reactgooglerecaptcha);
6867
6870
 
6868
6871
  function RecaptchaV2({ ref }) {
6869
- const { captcha } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
6870
- const { theme } = _chunkSV64DXGWcjs.useTheme.call(void 0, );
6871
- const { lang } = _chunkSV64DXGWcjs.useLang.call(void 0, );
6872
+ const { captcha } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
6873
+ const { theme } = _chunkB24ZS3AScjs.useTheme.call(void 0, );
6874
+ const { lang } = _chunkB24ZS3AScjs.useLang.call(void 0, );
6872
6875
  _react.useEffect.call(void 0, () => {
6873
6876
  ;
6874
6877
  window.recaptchaOptions = {
@@ -6899,7 +6902,7 @@ function RecaptchaV2({ ref }) {
6899
6902
  theme,
6900
6903
  hl: lang,
6901
6904
  size: captcha.provider === "google-recaptcha-v2-invisible" ? "invisible" : "normal",
6902
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
6905
+ className: _chunk42PRTYABcjs.cn.call(void 0,
6903
6906
  captcha.provider === "google-recaptcha-v2-invisible" ? "absolute" : "mx-auto h-[76px] w-[302px] overflow-hidden rounded bg-muted"
6904
6907
  )
6905
6908
  },
@@ -6916,7 +6919,7 @@ var DEFAULT_CAPTCHA_ENDPOINTS2 = [
6916
6919
  "/forget-password"
6917
6920
  ];
6918
6921
  function Captcha({ ref, localization, action }) {
6919
- const { captcha } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
6922
+ const { captcha } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
6920
6923
  if (!captcha) return null;
6921
6924
  if (action) {
6922
6925
  const endpoints = captcha.endpoints || DEFAULT_CAPTCHA_ENDPOINTS2;
@@ -6924,7 +6927,7 @@ function Captcha({ ref, localization, action }) {
6924
6927
  return null;
6925
6928
  }
6926
6929
  }
6927
- const { theme } = _chunkSV64DXGWcjs.useTheme.call(void 0, );
6930
+ const { theme } = _chunkB24ZS3AScjs.useTheme.call(void 0, );
6928
6931
  const showRecaptchaV2 = captcha.provider === "google-recaptcha-v2-checkbox" || captcha.provider === "google-recaptcha-v2-invisible";
6929
6932
  const showRecaptchaBadge = captcha.provider === "google-recaptcha-v3" || captcha.provider === "google-recaptcha-v2-invisible";
6930
6933
  const showTurnstile = captcha.provider === "cloudflare-turnstile";
@@ -6964,19 +6967,19 @@ function ForgotPasswordForm({
6964
6967
  localization,
6965
6968
  setIsSubmitting
6966
6969
  }) {
6967
- const isHydrated = _chunkSV64DXGWcjs.useIsHydrated.call(void 0, );
6970
+ const isHydrated = _chunkB24ZS3AScjs.useIsHydrated.call(void 0, );
6968
6971
  const { captchaRef, getCaptchaHeaders, resetCaptcha } = useCaptcha({
6969
6972
  localization
6970
6973
  });
6971
6974
  const {
6972
- authClient,
6975
+ authClient: authClient2,
6973
6976
  basePath,
6974
6977
  baseURL,
6975
6978
  localization: contextLocalization,
6976
6979
  navigate,
6977
6980
  toast,
6978
6981
  viewPaths
6979
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
6982
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
6980
6983
  localization = { ...contextLocalization, ...localization };
6981
6984
  const formSchema = z9.object({
6982
6985
  email: z9.string().email({
@@ -7001,7 +7004,7 @@ function ForgotPasswordForm({
7001
7004
  throw: true,
7002
7005
  headers: await getCaptchaHeaders("/forget-password")
7003
7006
  };
7004
- await authClient.requestPasswordReset({
7007
+ await authClient2.requestPasswordReset({
7005
7008
  email,
7006
7009
  redirectTo: `${baseURL}${basePath}/${viewPaths.RESET_PASSWORD}`,
7007
7010
  fetchOptions
@@ -7016,7 +7019,7 @@ function ForgotPasswordForm({
7016
7019
  } catch (error) {
7017
7020
  toast({
7018
7021
  variant: "error",
7019
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
7022
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
7020
7023
  });
7021
7024
  resetCaptcha();
7022
7025
  }
@@ -7026,7 +7029,7 @@ function ForgotPasswordForm({
7026
7029
  {
7027
7030
  onSubmit: form.handleSubmit(forgotPassword),
7028
7031
  noValidate: isHydrated,
7029
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
7032
+ className: _chunk42PRTYABcjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
7030
7033
  children: [
7031
7034
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7032
7035
  FormField,
@@ -7062,7 +7065,7 @@ function ForgotPasswordForm({
7062
7065
  {
7063
7066
  type: "submit",
7064
7067
  disabled: isSubmitting,
7065
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
7068
+ className: _chunk42PRTYABcjs.cn.call(void 0,
7066
7069
  "w-full",
7067
7070
  classNames == null ? void 0 : classNames.button,
7068
7071
  classNames == null ? void 0 : classNames.primaryButton
@@ -7091,12 +7094,12 @@ function MagicLinkForm({
7091
7094
  redirectTo: redirectToProp,
7092
7095
  setIsSubmitting
7093
7096
  }) {
7094
- const isHydrated = _chunkSV64DXGWcjs.useIsHydrated.call(void 0, );
7097
+ const isHydrated = _chunkB24ZS3AScjs.useIsHydrated.call(void 0, );
7095
7098
  const { captchaRef, getCaptchaHeaders, resetCaptcha } = useCaptcha({
7096
7099
  localization
7097
7100
  });
7098
7101
  const {
7099
- authClient,
7102
+ authClient: authClient2,
7100
7103
  basePath,
7101
7104
  baseURL,
7102
7105
  persistClient,
@@ -7104,10 +7107,10 @@ function MagicLinkForm({
7104
7107
  redirectTo: contextRedirectTo,
7105
7108
  viewPaths,
7106
7109
  toast
7107
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
7110
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
7108
7111
  localization = { ...contextLocalization, ...localization };
7109
7112
  const getRedirectTo = _react.useCallback.call(void 0,
7110
- () => redirectToProp || _chunkCRAHKL2Ccjs.getSearchParam.call(void 0, "redirectTo") || contextRedirectTo,
7113
+ () => redirectToProp || _chunk42PRTYABcjs.getSearchParam.call(void 0, "redirectTo") || contextRedirectTo,
7111
7114
  [redirectToProp, contextRedirectTo]
7112
7115
  );
7113
7116
  const getCallbackURL = _react.useCallback.call(void 0,
@@ -7142,7 +7145,7 @@ function MagicLinkForm({
7142
7145
  throw: true,
7143
7146
  headers: await getCaptchaHeaders("/sign-in/magic-link")
7144
7147
  };
7145
- await authClient.signIn.magicLink({
7148
+ await authClient2.signIn.magicLink({
7146
7149
  email,
7147
7150
  callbackURL: getCallbackURL(),
7148
7151
  fetchOptions
@@ -7155,7 +7158,7 @@ function MagicLinkForm({
7155
7158
  } catch (error) {
7156
7159
  toast({
7157
7160
  variant: "error",
7158
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
7161
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
7159
7162
  });
7160
7163
  resetCaptcha();
7161
7164
  }
@@ -7165,7 +7168,7 @@ function MagicLinkForm({
7165
7168
  {
7166
7169
  onSubmit: form.handleSubmit(sendMagicLink),
7167
7170
  noValidate: isHydrated,
7168
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
7171
+ className: _chunk42PRTYABcjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
7169
7172
  children: [
7170
7173
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7171
7174
  FormField,
@@ -7201,7 +7204,7 @@ function MagicLinkForm({
7201
7204
  {
7202
7205
  type: "submit",
7203
7206
  disabled: isSubmitting,
7204
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
7207
+ className: _chunk42PRTYABcjs.cn.call(void 0,
7205
7208
  "w-full",
7206
7209
  classNames == null ? void 0 : classNames.button,
7207
7210
  classNames == null ? void 0 : classNames.primaryButton
@@ -7230,10 +7233,10 @@ function RecoverAccountForm({
7230
7233
  setIsSubmitting
7231
7234
  }) {
7232
7235
  const {
7233
- authClient,
7236
+ authClient: authClient2,
7234
7237
  localization: contextLocalization,
7235
7238
  toast
7236
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
7239
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
7237
7240
  localization = { ...contextLocalization, ...localization };
7238
7241
  const { onSuccess, isPending: transitionPending } = useOnSuccessTransition({
7239
7242
  redirectTo
@@ -7253,7 +7256,7 @@ function RecoverAccountForm({
7253
7256
  }, [form.formState.isSubmitting, transitionPending, setIsSubmitting]);
7254
7257
  async function verifyBackupCode({ code }) {
7255
7258
  try {
7256
- await authClient.twoFactor.verifyBackupCode({
7259
+ await authClient2.twoFactor.verifyBackupCode({
7257
7260
  code,
7258
7261
  fetchOptions: { throw: true }
7259
7262
  });
@@ -7261,7 +7264,7 @@ function RecoverAccountForm({
7261
7264
  } catch (error) {
7262
7265
  toast({
7263
7266
  variant: "error",
7264
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
7267
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
7265
7268
  });
7266
7269
  form.reset();
7267
7270
  }
@@ -7270,7 +7273,7 @@ function RecoverAccountForm({
7270
7273
  "form",
7271
7274
  {
7272
7275
  onSubmit: form.handleSubmit(verifyBackupCode),
7273
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid gap-6", className, classNames == null ? void 0 : classNames.base),
7276
+ className: _chunk42PRTYABcjs.cn.call(void 0, "grid gap-6", className, classNames == null ? void 0 : classNames.base),
7274
7277
  children: [
7275
7278
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7276
7279
  FormField,
@@ -7298,7 +7301,7 @@ function RecoverAccountForm({
7298
7301
  {
7299
7302
  type: "submit",
7300
7303
  disabled: isSubmitting,
7301
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
7304
+ className: _chunk42PRTYABcjs.cn.call(void 0,
7302
7305
  classNames == null ? void 0 : classNames.button,
7303
7306
  classNames == null ? void 0 : classNames.primaryButton
7304
7307
  ),
@@ -7325,26 +7328,26 @@ function ResetPasswordForm({
7325
7328
  }) {
7326
7329
  const tokenChecked = _react.useRef.call(void 0, false);
7327
7330
  const {
7328
- authClient,
7331
+ authClient: authClient2,
7329
7332
  basePath,
7330
7333
  credentials,
7331
7334
  localization: contextLocalization,
7332
7335
  viewPaths,
7333
7336
  navigate,
7334
7337
  toast
7335
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
7338
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
7336
7339
  const confirmPasswordEnabled = credentials == null ? void 0 : credentials.confirmPassword;
7337
7340
  const contextPasswordValidation = credentials == null ? void 0 : credentials.passwordValidation;
7338
7341
  localization = { ...contextLocalization, ...localization };
7339
7342
  passwordValidation = { ...contextPasswordValidation, ...passwordValidation };
7340
7343
  const formSchema = z12.object({
7341
- newPassword: _chunkCRAHKL2Ccjs.getPasswordSchema.call(void 0, passwordValidation, {
7344
+ newPassword: _chunk42PRTYABcjs.getPasswordSchema.call(void 0, passwordValidation, {
7342
7345
  PASSWORD_REQUIRED: localization.NEW_PASSWORD_REQUIRED,
7343
7346
  PASSWORD_TOO_SHORT: localization.PASSWORD_TOO_SHORT,
7344
7347
  PASSWORD_TOO_LONG: localization.PASSWORD_TOO_LONG,
7345
7348
  INVALID_PASSWORD: localization.INVALID_PASSWORD
7346
7349
  }),
7347
- confirmPassword: confirmPasswordEnabled ? _chunkCRAHKL2Ccjs.getPasswordSchema.call(void 0, passwordValidation, {
7350
+ confirmPassword: confirmPasswordEnabled ? _chunk42PRTYABcjs.getPasswordSchema.call(void 0, passwordValidation, {
7348
7351
  PASSWORD_REQUIRED: localization.CONFIRM_PASSWORD_REQUIRED,
7349
7352
  PASSWORD_TOO_SHORT: localization.PASSWORD_TOO_SHORT,
7350
7353
  PASSWORD_TOO_LONG: localization.PASSWORD_TOO_LONG,
@@ -7381,7 +7384,7 @@ function ResetPasswordForm({
7381
7384
  try {
7382
7385
  const searchParams = new URLSearchParams(window.location.search);
7383
7386
  const token = searchParams.get("token");
7384
- await authClient.resetPassword({
7387
+ await authClient2.resetPassword({
7385
7388
  newPassword,
7386
7389
  token,
7387
7390
  fetchOptions: { throw: true }
@@ -7396,7 +7399,7 @@ function ResetPasswordForm({
7396
7399
  } catch (error) {
7397
7400
  toast({
7398
7401
  variant: "error",
7399
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
7402
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
7400
7403
  });
7401
7404
  form.reset();
7402
7405
  }
@@ -7405,7 +7408,7 @@ function ResetPasswordForm({
7405
7408
  "form",
7406
7409
  {
7407
7410
  onSubmit: form.handleSubmit(resetPassword),
7408
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
7411
+ className: _chunk42PRTYABcjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
7409
7412
  children: [
7410
7413
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7411
7414
  FormField,
@@ -7454,7 +7457,7 @@ function ResetPasswordForm({
7454
7457
  {
7455
7458
  type: "submit",
7456
7459
  disabled: isSubmitting,
7457
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
7460
+ className: _chunk42PRTYABcjs.cn.call(void 0,
7458
7461
  "w-full",
7459
7462
  classNames == null ? void 0 : classNames.button,
7460
7463
  classNames == null ? void 0 : classNames.primaryButton
@@ -7483,12 +7486,12 @@ function SignInForm({
7483
7486
  setIsSubmitting,
7484
7487
  passwordValidation
7485
7488
  }) {
7486
- const isHydrated = _chunkSV64DXGWcjs.useIsHydrated.call(void 0, );
7489
+ const isHydrated = _chunkB24ZS3AScjs.useIsHydrated.call(void 0, );
7487
7490
  const { captchaRef, getCaptchaHeaders, resetCaptcha } = useCaptcha({
7488
7491
  localization
7489
7492
  });
7490
7493
  const {
7491
- authClient,
7494
+ authClient: authClient2,
7492
7495
  basePath,
7493
7496
  credentials,
7494
7497
  localization: contextLocalization,
@@ -7496,7 +7499,7 @@ function SignInForm({
7496
7499
  navigate,
7497
7500
  toast,
7498
7501
  Link
7499
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
7502
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
7500
7503
  const rememberMeEnabled = credentials == null ? void 0 : credentials.rememberMe;
7501
7504
  const usernameEnabled = credentials == null ? void 0 : credentials.username;
7502
7505
  const contextPasswordValidation = credentials == null ? void 0 : credentials.passwordValidation;
@@ -7511,7 +7514,7 @@ function SignInForm({
7511
7514
  }) : z13.string().email({
7512
7515
  message: `${localization.EMAIL} ${localization.IS_INVALID}`
7513
7516
  }),
7514
- password: _chunkCRAHKL2Ccjs.getPasswordSchema.call(void 0, passwordValidation, localization),
7517
+ password: _chunk42PRTYABcjs.getPasswordSchema.call(void 0, passwordValidation, localization),
7515
7518
  rememberMe: z13.boolean().optional()
7516
7519
  });
7517
7520
  const form = _reacthookform.useForm.call(void 0, {
@@ -7533,12 +7536,12 @@ function SignInForm({
7533
7536
  }) {
7534
7537
  try {
7535
7538
  let response = {};
7536
- if (usernameEnabled && !_chunkCRAHKL2Ccjs.isValidEmail.call(void 0, email)) {
7539
+ if (usernameEnabled && !_chunk42PRTYABcjs.isValidEmail.call(void 0, email)) {
7537
7540
  const fetchOptions = {
7538
7541
  throw: true,
7539
7542
  headers: await getCaptchaHeaders("/sign-in/username")
7540
7543
  };
7541
- response = await authClient.signIn.username({
7544
+ response = await authClient2.signIn.username({
7542
7545
  username: email,
7543
7546
  password,
7544
7547
  rememberMe,
@@ -7549,7 +7552,7 @@ function SignInForm({
7549
7552
  throw: true,
7550
7553
  headers: await getCaptchaHeaders("/sign-in/email")
7551
7554
  };
7552
- response = await authClient.signIn.email({
7555
+ response = await authClient2.signIn.email({
7553
7556
  email,
7554
7557
  password,
7555
7558
  rememberMe,
@@ -7568,7 +7571,7 @@ function SignInForm({
7568
7571
  resetCaptcha();
7569
7572
  toast({
7570
7573
  variant: "error",
7571
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
7574
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
7572
7575
  });
7573
7576
  }
7574
7577
  }
@@ -7577,7 +7580,7 @@ function SignInForm({
7577
7580
  {
7578
7581
  onSubmit: form.handleSubmit(signIn),
7579
7582
  noValidate: isHydrated,
7580
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
7583
+ className: _chunk42PRTYABcjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
7581
7584
  children: [
7582
7585
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7583
7586
  FormField,
@@ -7612,7 +7615,7 @@ function SignInForm({
7612
7615
  (credentials == null ? void 0 : credentials.forgotPassword) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7613
7616
  Link,
7614
7617
  {
7615
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
7618
+ className: _chunk42PRTYABcjs.cn.call(void 0,
7616
7619
  "text-sm hover:underline",
7617
7620
  classNames == null ? void 0 : classNames.forgotPasswordLink
7618
7621
  ),
@@ -7666,7 +7669,7 @@ function SignInForm({
7666
7669
  {
7667
7670
  type: "submit",
7668
7671
  disabled: isSubmitting,
7669
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
7672
+ className: _chunk42PRTYABcjs.cn.call(void 0,
7670
7673
  "w-full",
7671
7674
  classNames == null ? void 0 : classNames.button,
7672
7675
  classNames == null ? void 0 : classNames.primaryButton
@@ -7696,13 +7699,13 @@ function SignUpForm({
7696
7699
  setIsSubmitting,
7697
7700
  passwordValidation
7698
7701
  }) {
7699
- const isHydrated = _chunkSV64DXGWcjs.useIsHydrated.call(void 0, );
7702
+ const isHydrated = _chunkB24ZS3AScjs.useIsHydrated.call(void 0, );
7700
7703
  const { captchaRef, getCaptchaHeaders, resetCaptcha } = useCaptcha({
7701
7704
  localization
7702
7705
  });
7703
7706
  const {
7704
7707
  additionalFields,
7705
- authClient,
7708
+ authClient: authClient2,
7706
7709
  basePath,
7707
7710
  baseURL,
7708
7711
  credentials,
@@ -7715,7 +7718,7 @@ function SignUpForm({
7715
7718
  navigate,
7716
7719
  toast,
7717
7720
  avatar
7718
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
7721
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
7719
7722
  const confirmPasswordEnabled = credentials == null ? void 0 : credentials.confirmPassword;
7720
7723
  const usernameEnabled = credentials == null ? void 0 : credentials.username;
7721
7724
  const contextPasswordValidation = credentials == null ? void 0 : credentials.passwordValidation;
@@ -7726,7 +7729,7 @@ function SignUpForm({
7726
7729
  const [avatarImage, setAvatarImage] = _react.useState.call(void 0, null);
7727
7730
  const [uploadingAvatar, setUploadingAvatar] = _react.useState.call(void 0, false);
7728
7731
  const getRedirectTo = _react.useCallback.call(void 0,
7729
- () => redirectTo || _chunkCRAHKL2Ccjs.getSearchParam.call(void 0, "redirectTo") || contextRedirectTo,
7732
+ () => redirectTo || _chunk42PRTYABcjs.getSearchParam.call(void 0, "redirectTo") || contextRedirectTo,
7730
7733
  [redirectTo, contextRedirectTo]
7731
7734
  );
7732
7735
  const getCallbackURL = _react.useCallback.call(void 0,
@@ -7747,7 +7750,7 @@ function SignUpForm({
7747
7750
  email: z14.string().email({
7748
7751
  message: `${localization.EMAIL} ${localization.IS_INVALID}`
7749
7752
  }),
7750
- password: _chunkCRAHKL2Ccjs.getPasswordSchema.call(void 0, passwordValidation, localization),
7753
+ password: _chunk42PRTYABcjs.getPasswordSchema.call(void 0, passwordValidation, localization),
7751
7754
  name: (signUpFields == null ? void 0 : signUpFields.includes("name")) && nameRequired ? z14.string().min(1, {
7752
7755
  message: `${localization.NAME} ${localization.IS_REQUIRED}`
7753
7756
  }) : z14.string().optional(),
@@ -7755,7 +7758,7 @@ function SignUpForm({
7755
7758
  username: usernameEnabled ? z14.string().min(1, {
7756
7759
  message: `${localization.USERNAME} ${localization.IS_REQUIRED}`
7757
7760
  }) : z14.string().optional(),
7758
- confirmPassword: confirmPasswordEnabled ? _chunkCRAHKL2Ccjs.getPasswordSchema.call(void 0, passwordValidation, {
7761
+ confirmPassword: confirmPasswordEnabled ? _chunk42PRTYABcjs.getPasswordSchema.call(void 0, passwordValidation, {
7759
7762
  PASSWORD_REQUIRED: localization.CONFIRM_PASSWORD_REQUIRED,
7760
7763
  PASSWORD_TOO_SHORT: localization.PASSWORD_TOO_SHORT,
7761
7764
  PASSWORD_TOO_LONG: localization.PASSWORD_TOO_LONG,
@@ -7858,7 +7861,7 @@ function SignUpForm({
7858
7861
  console.error(error);
7859
7862
  toast({
7860
7863
  variant: "error",
7861
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
7864
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
7862
7865
  });
7863
7866
  }
7864
7867
  setUploadingAvatar(false);
@@ -7904,7 +7907,7 @@ function SignUpForm({
7904
7907
  if (image !== void 0) {
7905
7908
  additionalParams.image = image;
7906
7909
  }
7907
- const data = await authClient.signUp.email({
7910
+ const data = await authClient2.signUp.email({
7908
7911
  email,
7909
7912
  password,
7910
7913
  name: name || "",
@@ -7927,7 +7930,7 @@ function SignUpForm({
7927
7930
  } catch (error) {
7928
7931
  toast({
7929
7932
  variant: "error",
7930
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
7933
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
7931
7934
  });
7932
7935
  form.resetField("password");
7933
7936
  form.resetField("confirmPassword");
@@ -7939,7 +7942,7 @@ function SignUpForm({
7939
7942
  {
7940
7943
  onSubmit: form.handleSubmit(signUp),
7941
7944
  noValidate: isHydrated,
7942
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
7945
+ className: _chunk42PRTYABcjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
7943
7946
  children: [
7944
7947
  (signUpFields == null ? void 0 : signUpFields.includes("image")) && avatar && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
7945
7948
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -8258,7 +8261,7 @@ function SignUpForm({
8258
8261
  {
8259
8262
  type: "submit",
8260
8263
  disabled: isSubmitting,
8261
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
8264
+ className: _chunk42PRTYABcjs.cn.call(void 0,
8262
8265
  "w-full",
8263
8266
  classNames == null ? void 0 : classNames.button,
8264
8267
  classNames == null ? void 0 : classNames.primaryButton
@@ -8289,11 +8292,11 @@ function TwoFactorForm({
8289
8292
  setIsSubmitting
8290
8293
  }) {
8291
8294
  var _a;
8292
- const isHydrated = _chunkSV64DXGWcjs.useIsHydrated.call(void 0, );
8293
- const totpURI = isHydrated ? _chunkCRAHKL2Ccjs.getSearchParam.call(void 0, "totpURI") : null;
8295
+ const isHydrated = _chunkB24ZS3AScjs.useIsHydrated.call(void 0, );
8296
+ const totpURI = isHydrated ? _chunk42PRTYABcjs.getSearchParam.call(void 0, "totpURI") : null;
8294
8297
  const initialSendRef = _react.useRef.call(void 0, false);
8295
8298
  const {
8296
- authClient,
8299
+ authClient: authClient2,
8297
8300
  basePath,
8298
8301
  hooks: { useSession },
8299
8302
  localization: contextLocalization,
@@ -8301,7 +8304,7 @@ function TwoFactorForm({
8301
8304
  viewPaths,
8302
8305
  toast,
8303
8306
  Link
8304
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
8307
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
8305
8308
  localization = { ...contextLocalization, ...localization };
8306
8309
  const { onSuccess, isPending: transitionPending } = useOnSuccessTransition({
8307
8310
  redirectTo
@@ -8348,14 +8351,14 @@ function TwoFactorForm({
8348
8351
  if (isSendingOtp || cooldownSeconds > 0) return;
8349
8352
  try {
8350
8353
  setIsSendingOtp(true);
8351
- await authClient.twoFactor.sendOtp({
8354
+ await authClient2.twoFactor.sendOtp({
8352
8355
  fetchOptions: { throw: true }
8353
8356
  });
8354
8357
  setCooldownSeconds(60);
8355
8358
  } catch (error) {
8356
8359
  toast({
8357
8360
  variant: "error",
8358
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
8361
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
8359
8362
  });
8360
8363
  if (error.error.code === "INVALID_TWO_FACTOR_COOKIE") {
8361
8364
  history.back();
@@ -8369,7 +8372,7 @@ function TwoFactorForm({
8369
8372
  trustDevice
8370
8373
  }) {
8371
8374
  try {
8372
- const verifyMethod = method === "totp" ? authClient.twoFactor.verifyTotp : authClient.twoFactor.verifyOtp;
8375
+ const verifyMethod = method === "totp" ? authClient2.twoFactor.verifyTotp : authClient2.twoFactor.verifyOtp;
8373
8376
  await verifyMethod({
8374
8377
  code,
8375
8378
  trustDevice,
@@ -8385,7 +8388,7 @@ function TwoFactorForm({
8385
8388
  } catch (error) {
8386
8389
  toast({
8387
8390
  variant: "error",
8388
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
8391
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
8389
8392
  });
8390
8393
  form.reset();
8391
8394
  }
@@ -8394,14 +8397,14 @@ function TwoFactorForm({
8394
8397
  "form",
8395
8398
  {
8396
8399
  onSubmit: form.handleSubmit(verifyCode),
8397
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
8400
+ className: _chunk42PRTYABcjs.cn.call(void 0, "grid w-full gap-6", className, classNames == null ? void 0 : classNames.base),
8398
8401
  children: [
8399
8402
  (twoFactor == null ? void 0 : twoFactor.includes("totp")) && totpURI && method === "totp" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-3", children: [
8400
8403
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label2, { className: classNames == null ? void 0 : classNames.label, children: localization.TWO_FACTOR_TOTP_LABEL }),
8401
8404
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8402
8405
  _reactqrcode2.default,
8403
8406
  {
8404
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
8407
+ className: _chunk42PRTYABcjs.cn.call(void 0,
8405
8408
  "border shadow-xs",
8406
8409
  classNames == null ? void 0 : classNames.qrCode
8407
8410
  ),
@@ -8427,7 +8430,7 @@ function TwoFactorForm({
8427
8430
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8428
8431
  Link,
8429
8432
  {
8430
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
8433
+ className: _chunk42PRTYABcjs.cn.call(void 0,
8431
8434
  "text-sm hover:underline",
8432
8435
  classNames == null ? void 0 : classNames.forgotPasswordLink
8433
8436
  ),
@@ -8495,7 +8498,7 @@ function TwoFactorForm({
8495
8498
  {
8496
8499
  type: "submit",
8497
8500
  disabled: isSubmitting,
8498
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
8501
+ className: _chunk42PRTYABcjs.cn.call(void 0,
8499
8502
  classNames == null ? void 0 : classNames.button,
8500
8503
  classNames == null ? void 0 : classNames.primaryButton
8501
8504
  ),
@@ -8512,7 +8515,7 @@ function TwoFactorForm({
8512
8515
  variant: "outline",
8513
8516
  onClick: sendOtp,
8514
8517
  disabled: cooldownSeconds > 0 || isSendingOtp || isSubmitting,
8515
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
8518
+ className: _chunk42PRTYABcjs.cn.call(void 0,
8516
8519
  classNames == null ? void 0 : classNames.button,
8517
8520
  classNames == null ? void 0 : classNames.outlineButton
8518
8521
  ),
@@ -8528,7 +8531,7 @@ function TwoFactorForm({
8528
8531
  {
8529
8532
  type: "button",
8530
8533
  variant: "secondary",
8531
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
8534
+ className: _chunk42PRTYABcjs.cn.call(void 0,
8532
8535
  classNames == null ? void 0 : classNames.button,
8533
8536
  classNames == null ? void 0 : classNames.secondaryButton
8534
8537
  ),
@@ -8545,7 +8548,7 @@ function TwoFactorForm({
8545
8548
  {
8546
8549
  type: "button",
8547
8550
  variant: "secondary",
8548
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
8551
+ className: _chunk42PRTYABcjs.cn.call(void 0,
8549
8552
  classNames == null ? void 0 : classNames.button,
8550
8553
  classNames == null ? void 0 : classNames.secondaryButton
8551
8554
  ),
@@ -8569,15 +8572,15 @@ function TwoFactorForm({
8569
8572
 
8570
8573
  function SignOut() {
8571
8574
  const signingOut = _react.useRef.call(void 0, false);
8572
- const { authClient, basePath, viewPaths } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
8575
+ const { authClient: authClient2, basePath, viewPaths } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
8573
8576
  const { onSuccess } = useOnSuccessTransition({
8574
8577
  redirectTo: `${basePath}/${viewPaths.SIGN_IN}`
8575
8578
  });
8576
8579
  _react.useEffect.call(void 0, () => {
8577
8580
  if (signingOut.current) return;
8578
8581
  signingOut.current = true;
8579
- authClient.signOut().finally(onSuccess);
8580
- }, [authClient, onSuccess]);
8582
+ authClient2.signOut().finally(onSuccess);
8583
+ }, [authClient2, onSuccess]);
8581
8584
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "animate-spin" });
8582
8585
  }
8583
8586
 
@@ -8605,16 +8608,16 @@ function AuthForm({
8605
8608
  twoFactor: twoFactorEnabled,
8606
8609
  viewPaths,
8607
8610
  replace
8608
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
8611
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
8609
8612
  const signUpEnabled = !!signUp;
8610
8613
  localization = { ...contextLocalization, ...localization };
8611
8614
  _react.useEffect.call(void 0, () => {
8612
- if (pathname && !_chunkCRAHKL2Ccjs.getViewByPath.call(void 0, viewPaths, pathname)) {
8615
+ if (pathname && !_chunk42PRTYABcjs.getViewByPath.call(void 0, viewPaths, pathname)) {
8613
8616
  console.error(`Invalid auth view: ${pathname}`);
8614
8617
  replace(`${basePath}/${viewPaths.SIGN_IN}${window.location.search}`);
8615
8618
  }
8616
8619
  }, [pathname, viewPaths, basePath, replace]);
8617
- view = view || _chunkCRAHKL2Ccjs.getViewByPath.call(void 0, viewPaths, pathname) || "SIGN_IN";
8620
+ view = view || _chunk42PRTYABcjs.getViewByPath.call(void 0, viewPaths, pathname) || "SIGN_IN";
8618
8621
  _react.useEffect.call(void 0, () => {
8619
8622
  let isInvalidView = false;
8620
8623
  if (view === "MAGIC_LINK" && (!magicLink || !credentials && !emailOTP)) {
@@ -8800,7 +8803,7 @@ function AcceptInvitationCard({
8800
8803
  redirectTo,
8801
8804
  replace,
8802
8805
  toast
8803
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
8806
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
8804
8807
  const localization = _react.useMemo.call(void 0,
8805
8808
  () => ({ ...contextLocalization, ...localizationProp }),
8806
8809
  [contextLocalization, localizationProp]
@@ -8808,7 +8811,7 @@ function AcceptInvitationCard({
8808
8811
  const { data: sessionData } = useAuthenticate();
8809
8812
  const [invitationId, setInvitationId] = _react.useState.call(void 0, null);
8810
8813
  _react.useEffect.call(void 0, () => {
8811
- const invitationIdParam = _chunkCRAHKL2Ccjs.getSearchParam.call(void 0, "invitationId");
8814
+ const invitationIdParam = _chunk42PRTYABcjs.getSearchParam.call(void 0, "invitationId");
8812
8815
  if (!invitationIdParam) {
8813
8816
  toast({
8814
8817
  variant: "error",
@@ -8846,14 +8849,14 @@ function AcceptInvitationContent({
8846
8849
  }) {
8847
8850
  var _a;
8848
8851
  const {
8849
- authClient,
8852
+ authClient: authClient2,
8850
8853
  hooks: { useInvitation },
8851
8854
  localization: contextLocalization,
8852
8855
  organization,
8853
8856
  redirectTo,
8854
8857
  replace,
8855
8858
  toast
8856
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
8859
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
8857
8860
  const localization = _react.useMemo.call(void 0,
8858
8861
  () => ({ ...contextLocalization, ...localizationProp }),
8859
8862
  [contextLocalization, localizationProp]
@@ -8867,7 +8870,7 @@ function AcceptInvitationContent({
8867
8870
  }
8868
8871
  });
8869
8872
  const getRedirectTo = _react.useCallback.call(void 0,
8870
- () => _chunkCRAHKL2Ccjs.getSearchParam.call(void 0, "redirectTo") || redirectTo,
8873
+ () => _chunk42PRTYABcjs.getSearchParam.call(void 0, "redirectTo") || redirectTo,
8871
8874
  [redirectTo]
8872
8875
  );
8873
8876
  _react.useEffect.call(void 0, () => {
@@ -8899,7 +8902,7 @@ function AcceptInvitationContent({
8899
8902
  const acceptInvitation = async () => {
8900
8903
  setIsAccepting(true);
8901
8904
  try {
8902
- await authClient.organization.acceptInvitation({
8905
+ await authClient2.organization.acceptInvitation({
8903
8906
  invitationId,
8904
8907
  fetchOptions: { throw: true }
8905
8908
  });
@@ -8911,7 +8914,7 @@ function AcceptInvitationContent({
8911
8914
  } catch (error) {
8912
8915
  toast({
8913
8916
  variant: "error",
8914
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
8917
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
8915
8918
  });
8916
8919
  setIsAccepting(false);
8917
8920
  }
@@ -8919,7 +8922,7 @@ function AcceptInvitationContent({
8919
8922
  const rejectInvitation = async () => {
8920
8923
  setIsRejecting(true);
8921
8924
  try {
8922
- await authClient.organization.rejectInvitation({
8925
+ await authClient2.organization.rejectInvitation({
8923
8926
  invitationId,
8924
8927
  fetchOptions: { throw: true }
8925
8928
  });
@@ -8931,7 +8934,7 @@ function AcceptInvitationContent({
8931
8934
  } catch (error) {
8932
8935
  toast({
8933
8936
  variant: "error",
8934
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
8937
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
8935
8938
  });
8936
8939
  setIsRejecting(false);
8937
8940
  }
@@ -8951,11 +8954,11 @@ function AcceptInvitationContent({
8951
8954
  classNames
8952
8955
  }
8953
8956
  );
8954
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "w-full max-w-sm", className, classNames == null ? void 0 : classNames.base), children: [
8957
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunk42PRTYABcjs.cn.call(void 0, "w-full max-w-sm", className, classNames == null ? void 0 : classNames.base), children: [
8955
8958
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
8956
8959
  CardHeader,
8957
8960
  {
8958
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
8961
+ className: _chunk42PRTYABcjs.cn.call(void 0,
8959
8962
  "justify-items-center text-center",
8960
8963
  classNames == null ? void 0 : classNames.header
8961
8964
  ),
@@ -8963,14 +8966,14 @@ function AcceptInvitationContent({
8963
8966
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8964
8967
  CardTitle,
8965
8968
  {
8966
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
8969
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
8967
8970
  children: localization.ACCEPT_INVITATION
8968
8971
  }
8969
8972
  ),
8970
8973
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8971
8974
  CardDescription,
8972
8975
  {
8973
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
8976
+ className: _chunk42PRTYABcjs.cn.call(void 0,
8974
8977
  "text-xs md:text-sm",
8975
8978
  classNames == null ? void 0 : classNames.description
8976
8979
  ),
@@ -8983,12 +8986,12 @@ function AcceptInvitationContent({
8983
8986
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
8984
8987
  CardContent,
8985
8988
  {
8986
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
8989
+ className: _chunk42PRTYABcjs.cn.call(void 0,
8987
8990
  "flex flex-col gap-6 truncate",
8988
8991
  classNames == null ? void 0 : classNames.content
8989
8992
  ),
8990
8993
  children: [
8991
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "flex-row items-center p-4"), children: [
8994
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunk42PRTYABcjs.cn.call(void 0, "flex-row items-center p-4"), children: [
8992
8995
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8993
8996
  OrganizationCellView,
8994
8997
  {
@@ -9009,7 +9012,7 @@ function AcceptInvitationContent({
9009
9012
  Button,
9010
9013
  {
9011
9014
  variant: "outline",
9012
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9015
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9013
9016
  classNames == null ? void 0 : classNames.button,
9014
9017
  classNames == null ? void 0 : classNames.outlineButton
9015
9018
  ),
@@ -9024,7 +9027,7 @@ function AcceptInvitationContent({
9024
9027
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9025
9028
  Button,
9026
9029
  {
9027
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9030
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9028
9031
  classNames == null ? void 0 : classNames.button,
9029
9032
  classNames == null ? void 0 : classNames.primaryButton
9030
9033
  ),
@@ -9047,16 +9050,16 @@ var AcceptInvitationSkeleton = ({
9047
9050
  classNames,
9048
9051
  localization
9049
9052
  }) => {
9050
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "w-full max-w-sm", className, classNames == null ? void 0 : classNames.base), children: [
9053
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunk42PRTYABcjs.cn.call(void 0, "w-full max-w-sm", className, classNames == null ? void 0 : classNames.base), children: [
9051
9054
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9052
9055
  CardHeader,
9053
9056
  {
9054
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "justify-items-center", classNames == null ? void 0 : classNames.header),
9057
+ className: _chunk42PRTYABcjs.cn.call(void 0, "justify-items-center", classNames == null ? void 0 : classNames.header),
9055
9058
  children: [
9056
9059
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9057
9060
  Skeleton,
9058
9061
  {
9059
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9062
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9060
9063
  "my-1 h-5 w-full max-w-32 md:h-5.5 md:w-40",
9061
9064
  classNames == null ? void 0 : classNames.skeleton
9062
9065
  )
@@ -9065,7 +9068,7 @@ var AcceptInvitationSkeleton = ({
9065
9068
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9066
9069
  Skeleton,
9067
9070
  {
9068
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9071
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9069
9072
  "my-0.5 h-3 w-full max-w-56 md:h-3.5 md:w-64",
9070
9073
  classNames == null ? void 0 : classNames.skeleton
9071
9074
  )
@@ -9077,12 +9080,12 @@ var AcceptInvitationSkeleton = ({
9077
9080
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9078
9081
  CardContent,
9079
9082
  {
9080
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9083
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9081
9084
  "flex flex-col gap-6 truncate",
9082
9085
  classNames == null ? void 0 : classNames.content
9083
9086
  ),
9084
9087
  children: [
9085
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "flex-row items-center p-4"), children: [
9088
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunk42PRTYABcjs.cn.call(void 0, "flex-row items-center p-4"), children: [
9086
9089
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9087
9090
  OrganizationCellView,
9088
9091
  {
@@ -9113,7 +9116,7 @@ var Separator3 = React14.forwardRef(
9113
9116
  ref,
9114
9117
  decorative,
9115
9118
  orientation,
9116
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9119
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9117
9120
  "shrink-0 bg-border",
9118
9121
  orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
9119
9122
  className
@@ -9135,11 +9138,11 @@ function EmailOTPButton({
9135
9138
  view
9136
9139
  }) {
9137
9140
  var _a, _b, _c, _d;
9138
- const { viewPaths, navigate, basePath } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
9141
+ const { viewPaths, navigate, basePath } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
9139
9142
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9140
9143
  Button,
9141
9144
  {
9142
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9145
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9143
9146
  "w-full",
9144
9147
  (_a = classNames == null ? void 0 : classNames.form) == null ? void 0 : _a.button,
9145
9148
  (_b = classNames == null ? void 0 : classNames.form) == null ? void 0 : _b.secondaryButton
@@ -9171,11 +9174,11 @@ function MagicLinkButton({
9171
9174
  view
9172
9175
  }) {
9173
9176
  var _a, _b, _c, _d;
9174
- const { viewPaths, navigate, basePath, credentials } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
9177
+ const { viewPaths, navigate, basePath, credentials } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
9175
9178
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9176
9179
  Button,
9177
9180
  {
9178
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9181
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9179
9182
  "w-full",
9180
9183
  (_a = classNames == null ? void 0 : classNames.form) == null ? void 0 : _a.button,
9181
9184
  (_b = classNames == null ? void 0 : classNames.form) == null ? void 0 : _b.secondaryButton
@@ -9200,10 +9203,10 @@ function MagicLinkButton({
9200
9203
 
9201
9204
  function OneTap({ localization, redirectTo }) {
9202
9205
  const {
9203
- authClient,
9206
+ authClient: authClient2,
9204
9207
  localization: contextLocalization,
9205
9208
  toast
9206
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
9209
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
9207
9210
  const oneTapFetched = _react.useRef.call(void 0, false);
9208
9211
  localization = _react.useMemo.call(void 0,
9209
9212
  () => ({ ...contextLocalization, ...localization }),
@@ -9214,7 +9217,7 @@ function OneTap({ localization, redirectTo }) {
9214
9217
  if (oneTapFetched.current) return;
9215
9218
  oneTapFetched.current = true;
9216
9219
  try {
9217
- authClient.oneTap({
9220
+ authClient2.oneTap({
9218
9221
  fetchOptions: {
9219
9222
  throw: true,
9220
9223
  onSuccess
@@ -9223,10 +9226,10 @@ function OneTap({ localization, redirectTo }) {
9223
9226
  } catch (error) {
9224
9227
  toast({
9225
9228
  variant: "error",
9226
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
9229
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
9227
9230
  });
9228
9231
  }
9229
- }, [authClient, localization, onSuccess, toast]);
9232
+ }, [authClient2, localization, onSuccess, toast]);
9230
9233
  return null;
9231
9234
  }
9232
9235
 
@@ -9243,22 +9246,22 @@ function PasskeyButton({
9243
9246
  }) {
9244
9247
  var _a, _b;
9245
9248
  const {
9246
- authClient,
9249
+ authClient: authClient2,
9247
9250
  localization: contextLocalization,
9248
9251
  toast
9249
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
9252
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
9250
9253
  localization = { ...contextLocalization, ...localization };
9251
9254
  const { onSuccess } = useOnSuccessTransition({ redirectTo });
9252
9255
  const signInPassKey = async () => {
9253
9256
  setIsSubmitting == null ? void 0 : setIsSubmitting(true);
9254
9257
  try {
9255
- const response = await authClient.signIn.passkey({
9258
+ const response = await authClient2.signIn.passkey({
9256
9259
  fetchOptions: { throw: true }
9257
9260
  });
9258
9261
  if (response == null ? void 0 : response.error) {
9259
9262
  toast({
9260
9263
  variant: "error",
9261
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, {
9264
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, {
9262
9265
  error: response.error,
9263
9266
  localization
9264
9267
  })
@@ -9270,7 +9273,7 @@ function PasskeyButton({
9270
9273
  } catch (error) {
9271
9274
  toast({
9272
9275
  variant: "error",
9273
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
9276
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
9274
9277
  });
9275
9278
  setIsSubmitting == null ? void 0 : setIsSubmitting(false);
9276
9279
  }
@@ -9278,7 +9281,7 @@ function PasskeyButton({
9278
9281
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9279
9282
  Button,
9280
9283
  {
9281
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9284
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9282
9285
  "w-full",
9283
9286
  (_a = classNames == null ? void 0 : classNames.form) == null ? void 0 : _a.button,
9284
9287
  (_b = classNames == null ? void 0 : classNames.form) == null ? void 0 : _b.secondaryButton
@@ -9316,7 +9319,7 @@ function ProviderButton({
9316
9319
  }) {
9317
9320
  var _a, _b, _c, _d;
9318
9321
  const {
9319
- authClient,
9322
+ authClient: authClient2,
9320
9323
  basePath,
9321
9324
  baseURL,
9322
9325
  persistClient,
@@ -9325,9 +9328,9 @@ function ProviderButton({
9325
9328
  social,
9326
9329
  genericOAuth,
9327
9330
  toast
9328
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
9331
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
9329
9332
  const getRedirectTo = _react.useCallback.call(void 0,
9330
- () => redirectToProp || _chunkCRAHKL2Ccjs.getSearchParam.call(void 0, "redirectTo") || contextRedirectTo,
9333
+ () => redirectToProp || _chunk42PRTYABcjs.getSearchParam.call(void 0, "redirectTo") || contextRedirectTo,
9331
9334
  [redirectToProp, contextRedirectTo]
9332
9335
  );
9333
9336
  const getCallbackURL = _react.useCallback.call(void 0,
@@ -9356,7 +9359,7 @@ function ProviderButton({
9356
9359
  setIsSubmitting(false);
9357
9360
  }, 1e4);
9358
9361
  } else {
9359
- await authClient.signIn.oauth2(oauth2Params);
9362
+ await authClient2.signIn.oauth2(oauth2Params);
9360
9363
  }
9361
9364
  } else {
9362
9365
  const socialParams = {
@@ -9370,13 +9373,13 @@ function ProviderButton({
9370
9373
  setIsSubmitting(false);
9371
9374
  }, 1e4);
9372
9375
  } else {
9373
- await authClient.signIn.social(socialParams);
9376
+ await authClient2.signIn.social(socialParams);
9374
9377
  }
9375
9378
  }
9376
9379
  } catch (error) {
9377
9380
  toast({
9378
9381
  variant: "error",
9379
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
9382
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
9380
9383
  });
9381
9384
  setIsSubmitting(false);
9382
9385
  }
@@ -9384,7 +9387,7 @@ function ProviderButton({
9384
9387
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9385
9388
  Button,
9386
9389
  {
9387
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9390
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9388
9391
  socialLayout === "vertical" ? "w-full" : "grow",
9389
9392
  className,
9390
9393
  (_a = classNames == null ? void 0 : classNames.form) == null ? void 0 : _a.button,
@@ -9419,7 +9422,7 @@ function AuthView({
9419
9422
  otpSeparators = 0
9420
9423
  }) {
9421
9424
  var _a, _b, _c, _d, _e, _f;
9422
- const isHydrated = _chunkSV64DXGWcjs.useIsHydrated.call(void 0, );
9425
+ const isHydrated = _chunkB24ZS3AScjs.useIsHydrated.call(void 0, );
9423
9426
  const {
9424
9427
  basePath,
9425
9428
  credentials,
@@ -9433,14 +9436,14 @@ function AuthView({
9433
9436
  genericOAuth,
9434
9437
  viewPaths,
9435
9438
  Link
9436
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
9439
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
9437
9440
  localization = { ...contextLocalization, ...localization };
9438
9441
  let socialLayout = socialLayoutProp;
9439
9442
  if (socialLayout === "auto") {
9440
9443
  socialLayout = !credentials ? "vertical" : (social == null ? void 0 : social.providers) && social.providers.length > 2 ? "horizontal" : "vertical";
9441
9444
  }
9442
9445
  const path = _nullishCoalesce(pathProp, () => ( (pathname == null ? void 0 : pathname.split("/").pop())));
9443
- const view = viewProp || _chunkCRAHKL2Ccjs.getViewByPath.call(void 0, viewPaths, path) || "SIGN_IN";
9446
+ const view = viewProp || _chunk42PRTYABcjs.getViewByPath.call(void 0, viewPaths, path) || "SIGN_IN";
9444
9447
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
9445
9448
  _react.useEffect.call(void 0, () => {
9446
9449
  const handlePageHide = () => setIsSubmitting(false);
@@ -9454,12 +9457,12 @@ function AuthView({
9454
9457
  if (view === "SIGN_OUT") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SignOut, {});
9455
9458
  if (view === "ACCEPT_INVITATION") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AcceptInvitationCard, {});
9456
9459
  const description = !credentials && !magicLink && !emailOTP ? localization.DISABLED_CREDENTIALS_DESCRIPTION : localization[`${view}_DESCRIPTION`];
9457
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "w-full max-w-sm", className, classNames == null ? void 0 : classNames.base), children: [
9460
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunk42PRTYABcjs.cn.call(void 0, "w-full max-w-sm", className, classNames == null ? void 0 : classNames.base), children: [
9458
9461
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { className: classNames == null ? void 0 : classNames.header, children: cardHeader ? cardHeader : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9459
9462
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9460
9463
  CardTitle,
9461
9464
  {
9462
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9465
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9463
9466
  "text-lg md:text-xl",
9464
9467
  classNames == null ? void 0 : classNames.title
9465
9468
  ),
@@ -9469,7 +9472,7 @@ function AuthView({
9469
9472
  description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9470
9473
  CardDescription,
9471
9474
  {
9472
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9475
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9473
9476
  "text-xs md:text-sm",
9474
9477
  classNames == null ? void 0 : classNames.description
9475
9478
  ),
@@ -9477,7 +9480,7 @@ function AuthView({
9477
9480
  }
9478
9481
  )
9479
9482
  ] }) }),
9480
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardContent, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid gap-6", classNames == null ? void 0 : classNames.content), children: [
9483
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardContent, { className: _chunk42PRTYABcjs.cn.call(void 0, "grid gap-6", classNames == null ? void 0 : classNames.content), children: [
9481
9484
  oneTap && ["SIGN_IN", "SIGN_UP", "MAGIC_LINK", "EMAIL_OTP"].includes(
9482
9485
  view
9483
9486
  ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -9538,7 +9541,7 @@ function AuthView({
9538
9541
  (credentials || magicLink || emailOTP) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9539
9542
  "div",
9540
9543
  {
9541
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9544
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9542
9545
  "flex items-center gap-2",
9543
9546
  classNames == null ? void 0 : classNames.continueWith
9544
9547
  ),
@@ -9546,7 +9549,7 @@ function AuthView({
9546
9549
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9547
9550
  Separator3,
9548
9551
  {
9549
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9552
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9550
9553
  "!w-auto grow",
9551
9554
  classNames == null ? void 0 : classNames.separator
9552
9555
  )
@@ -9556,7 +9559,7 @@ function AuthView({
9556
9559
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9557
9560
  Separator3,
9558
9561
  {
9559
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9562
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9560
9563
  "!w-auto grow",
9561
9564
  classNames == null ? void 0 : classNames.separator
9562
9565
  )
@@ -9569,7 +9572,7 @@ function AuthView({
9569
9572
  (((_c = social == null ? void 0 : social.providers) == null ? void 0 : _c.length) || ((_d = genericOAuth == null ? void 0 : genericOAuth.providers) == null ? void 0 : _d.length)) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9570
9573
  "div",
9571
9574
  {
9572
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9575
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9573
9576
  "flex w-full items-center justify-between gap-4",
9574
9577
  socialLayout === "horizontal" && "flex-wrap",
9575
9578
  socialLayout === "vertical" && "flex-col",
@@ -9639,7 +9642,7 @@ function AuthView({
9639
9642
  credentials && signUp && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9640
9643
  CardFooter,
9641
9644
  {
9642
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9645
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9643
9646
  "justify-center gap-1.5 text-muted-foreground text-sm",
9644
9647
  classNames == null ? void 0 : classNames.footer
9645
9648
  ),
@@ -9648,7 +9651,7 @@ function AuthView({
9648
9651
  view === "SIGN_IN" || view === "MAGIC_LINK" || view === "EMAIL_OTP" || view === "SIGN_UP" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9649
9652
  Link,
9650
9653
  {
9651
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9654
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9652
9655
  "text-foreground underline",
9653
9656
  classNames == null ? void 0 : classNames.footerLink
9654
9657
  ),
@@ -9658,7 +9661,7 @@ function AuthView({
9658
9661
  {
9659
9662
  variant: "link",
9660
9663
  size: "sm",
9661
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9664
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9662
9665
  "px-0 text-foreground underline",
9663
9666
  classNames == null ? void 0 : classNames.footerLink
9664
9667
  ),
@@ -9671,7 +9674,7 @@ function AuthView({
9671
9674
  {
9672
9675
  variant: "link",
9673
9676
  size: "sm",
9674
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9677
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9675
9678
  "px-0 text-foreground underline",
9676
9679
  classNames == null ? void 0 : classNames.footerLink
9677
9680
  ),
@@ -9690,7 +9693,7 @@ function AuthView({
9690
9693
  function AuthLoading({ children }) {
9691
9694
  const {
9692
9695
  hooks: { useSession }
9693
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
9696
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
9694
9697
  const { isPending } = useSession();
9695
9698
  return isPending ? children : null;
9696
9699
  }
@@ -9714,13 +9717,13 @@ function DeleteOrganizationDialog({
9714
9717
  }) {
9715
9718
  var _a, _b, _c;
9716
9719
  const {
9717
- authClient,
9720
+ authClient: authClient2,
9718
9721
  account: accountOptions,
9719
9722
  hooks: { useListOrganizations },
9720
9723
  localization: contextLocalization,
9721
9724
  navigate,
9722
9725
  toast
9723
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
9726
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
9724
9727
  const localization = _react.useMemo.call(void 0,
9725
9728
  () => ({ ...contextLocalization, ...localizationProp }),
9726
9729
  [contextLocalization, localizationProp]
@@ -9740,7 +9743,7 @@ function DeleteOrganizationDialog({
9740
9743
  const { isSubmitting } = form.formState;
9741
9744
  const deleteOrganization = async () => {
9742
9745
  try {
9743
- await authClient.organization.delete({
9746
+ await authClient2.organization.delete({
9744
9747
  organizationId: organization.id,
9745
9748
  fetchOptions: { throw: true }
9746
9749
  });
@@ -9756,27 +9759,27 @@ function DeleteOrganizationDialog({
9756
9759
  } catch (error) {
9757
9760
  toast({
9758
9761
  variant: "error",
9759
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
9762
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
9760
9763
  });
9761
9764
  }
9762
9765
  };
9763
9766
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Dialog, { onOpenChange, ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9764
9767
  DialogContent,
9765
9768
  {
9766
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "sm:max-w-md", (_a = classNames == null ? void 0 : classNames.dialog) == null ? void 0 : _a.content),
9769
+ className: _chunk42PRTYABcjs.cn.call(void 0, "sm:max-w-md", (_a = classNames == null ? void 0 : classNames.dialog) == null ? void 0 : _a.content),
9767
9770
  children: [
9768
9771
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogHeader, { className: (_b = classNames == null ? void 0 : classNames.dialog) == null ? void 0 : _b.header, children: [
9769
9772
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9770
9773
  DialogTitle,
9771
9774
  {
9772
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
9775
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
9773
9776
  children: localization == null ? void 0 : localization.DELETE_ORGANIZATION
9774
9777
  }
9775
9778
  ),
9776
9779
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9777
9780
  DialogDescription,
9778
9781
  {
9779
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9782
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9780
9783
  "text-xs md:text-sm",
9781
9784
  classNames == null ? void 0 : classNames.description
9782
9785
  ),
@@ -9784,7 +9787,7 @@ function DeleteOrganizationDialog({
9784
9787
  }
9785
9788
  )
9786
9789
  ] }),
9787
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "my-2 flex-row p-4", classNames == null ? void 0 : classNames.cell), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9790
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: _chunk42PRTYABcjs.cn.call(void 0, "my-2 flex-row p-4", classNames == null ? void 0 : classNames.cell), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9788
9791
  OrganizationCellView,
9789
9792
  {
9790
9793
  organization,
@@ -9831,7 +9834,7 @@ function DeleteOrganizationDialog({
9831
9834
  {
9832
9835
  type: "button",
9833
9836
  variant: "secondary",
9834
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9837
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9835
9838
  classNames == null ? void 0 : classNames.button,
9836
9839
  classNames == null ? void 0 : classNames.secondaryButton
9837
9840
  ),
@@ -9842,7 +9845,7 @@ function DeleteOrganizationDialog({
9842
9845
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9843
9846
  Button,
9844
9847
  {
9845
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
9848
+ className: _chunk42PRTYABcjs.cn.call(void 0,
9846
9849
  classNames == null ? void 0 : classNames.button,
9847
9850
  classNames == null ? void 0 : classNames.destructiveButton
9848
9851
  ),
@@ -9873,12 +9876,12 @@ function DeleteOrganizationCard({
9873
9876
  slug,
9874
9877
  ...props
9875
9878
  }) {
9876
- const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
9879
+ const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
9877
9880
  const localization = _react.useMemo.call(void 0,
9878
9881
  () => ({ ...contextLocalization, ...localizationProp }),
9879
9882
  [contextLocalization, localizationProp]
9880
9883
  );
9881
- const { data: organization } = _chunkSV64DXGWcjs.useCurrentOrganization.call(void 0, { slug });
9884
+ const { data: organization } = _chunkB24ZS3AScjs.useCurrentOrganization.call(void 0, { slug });
9882
9885
  if (!organization)
9883
9886
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9884
9887
  SettingsCard,
@@ -9912,7 +9915,7 @@ function DeleteOrganizationForm({
9912
9915
  const {
9913
9916
  localization: contextLocalization,
9914
9917
  hooks: { useHasPermission }
9915
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
9918
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
9916
9919
  const localization = _react.useMemo.call(void 0,
9917
9920
  () => ({ ...contextLocalization, ...localizationProp }),
9918
9921
  [contextLocalization, localizationProp]
@@ -9967,12 +9970,12 @@ function InvitationCell({
9967
9970
  organization
9968
9971
  }) {
9969
9972
  const {
9970
- authClient,
9973
+ authClient: authClient2,
9971
9974
  hooks: { useListInvitations },
9972
9975
  organization: organizationOptions,
9973
9976
  localization: contextLocalization,
9974
9977
  toast
9975
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
9978
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
9976
9979
  const localization = _react.useMemo.call(void 0,
9977
9980
  () => ({ ...contextLocalization, ...localizationProp }),
9978
9981
  [contextLocalization, localizationProp]
@@ -9991,7 +9994,7 @@ function InvitationCell({
9991
9994
  const handleCancelInvitation = async () => {
9992
9995
  setIsLoading(true);
9993
9996
  try {
9994
- await authClient.organization.cancelInvitation({
9997
+ await authClient2.organization.cancelInvitation({
9995
9998
  invitationId: invitation.id,
9996
9999
  fetchOptions: { throw: true }
9997
10000
  });
@@ -10003,7 +10006,7 @@ function InvitationCell({
10003
10006
  } catch (error) {
10004
10007
  toast({
10005
10008
  variant: "error",
10006
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
10009
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
10007
10010
  });
10008
10011
  }
10009
10012
  setIsLoading(false);
@@ -10011,7 +10014,7 @@ function InvitationCell({
10011
10014
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
10012
10015
  Card,
10013
10016
  {
10014
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
10017
+ className: _chunk42PRTYABcjs.cn.call(void 0,
10015
10018
  "flex-row items-center p-4",
10016
10019
  className,
10017
10020
  classNames == null ? void 0 : classNames.cell
@@ -10040,7 +10043,7 @@ function InvitationCell({
10040
10043
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10041
10044
  Button,
10042
10045
  {
10043
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
10046
+ className: _chunk42PRTYABcjs.cn.call(void 0,
10044
10047
  "relative ms-auto",
10045
10048
  classNames == null ? void 0 : classNames.button,
10046
10049
  classNames == null ? void 0 : classNames.outlineButton
@@ -10088,13 +10091,13 @@ function OrganizationInvitationsCard({
10088
10091
  const {
10089
10092
  localization: contextLocalization,
10090
10093
  organization: organizationOptions
10091
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
10094
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
10092
10095
  const localization = _react.useMemo.call(void 0,
10093
10096
  () => ({ ...contextLocalization, ...localizationProp }),
10094
10097
  [contextLocalization, localizationProp]
10095
10098
  );
10096
10099
  const slug = slugProp || (organizationOptions == null ? void 0 : organizationOptions.slug);
10097
- const { data: organization } = _chunkSV64DXGWcjs.useCurrentOrganization.call(void 0, { slug });
10100
+ const { data: organization } = _chunkB24ZS3AScjs.useCurrentOrganization.call(void 0, { slug });
10098
10101
  if (!organization) return null;
10099
10102
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10100
10103
  OrganizationInvitationsContent,
@@ -10117,7 +10120,7 @@ function OrganizationInvitationsContent({
10117
10120
  const {
10118
10121
  hooks: { useListInvitations },
10119
10122
  localization: contextLocalization
10120
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
10123
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
10121
10124
  const localization = _react.useMemo.call(void 0,
10122
10125
  () => ({ ...contextLocalization, ...localizationProp }),
10123
10126
  [contextLocalization, localizationProp]
@@ -10137,7 +10140,7 @@ function OrganizationInvitationsContent({
10137
10140
  title: localization.PENDING_INVITATIONS,
10138
10141
  description: localization.PENDING_INVITATIONS_DESCRIPTION,
10139
10142
  ...props,
10140
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content), children: pendingInvitations.map((invitation) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10143
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: _chunk42PRTYABcjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content), children: pendingInvitations.map((invitation) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10141
10144
  InvitationCell,
10142
10145
  {
10143
10146
  classNames,
@@ -10167,17 +10170,17 @@ function OrganizationLogoCard({
10167
10170
  slug,
10168
10171
  ...props
10169
10172
  }) {
10170
- const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
10173
+ const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
10171
10174
  const localization = _react.useMemo.call(void 0,
10172
10175
  () => ({ ...contextLocalization, ...localizationProp }),
10173
10176
  [contextLocalization, localizationProp]
10174
10177
  );
10175
- const { data: organization } = _chunkSV64DXGWcjs.useCurrentOrganization.call(void 0, { slug });
10178
+ const { data: organization } = _chunkB24ZS3AScjs.useCurrentOrganization.call(void 0, { slug });
10176
10179
  if (!organization) {
10177
10180
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
10178
10181
  Card,
10179
10182
  {
10180
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
10183
+ className: _chunk42PRTYABcjs.cn.call(void 0,
10181
10184
  "w-full pb-0 text-start",
10182
10185
  className,
10183
10186
  classNames == null ? void 0 : classNames.base
@@ -10252,12 +10255,12 @@ function OrganizationLogoForm({
10252
10255
  organization: organizationOptions,
10253
10256
  mutators: { updateOrganization },
10254
10257
  toast
10255
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
10258
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
10256
10259
  const localization = _react.useMemo.call(void 0,
10257
10260
  () => ({ ...authLocalization2, ...localizationProp }),
10258
10261
  [authLocalization2, localizationProp]
10259
10262
  );
10260
- const { refetch: refetchOrganization } = _chunkSV64DXGWcjs.useCurrentOrganization.call(void 0, {
10263
+ const { refetch: refetchOrganization } = _chunkB24ZS3AScjs.useCurrentOrganization.call(void 0, {
10261
10264
  slug: organization.slug
10262
10265
  });
10263
10266
  const { data: hasPermission, isPending: permissionPending } = useHasPermission({
@@ -10297,7 +10300,7 @@ function OrganizationLogoForm({
10297
10300
  } catch (error) {
10298
10301
  toast({
10299
10302
  variant: "error",
10300
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
10303
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
10301
10304
  });
10302
10305
  }
10303
10306
  setLoading(false);
@@ -10318,7 +10321,7 @@ function OrganizationLogoForm({
10318
10321
  } catch (error) {
10319
10322
  toast({
10320
10323
  variant: "error",
10321
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
10324
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
10322
10325
  });
10323
10326
  }
10324
10327
  setLoading(false);
@@ -10330,7 +10333,7 @@ function OrganizationLogoForm({
10330
10333
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
10331
10334
  Card,
10332
10335
  {
10333
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
10336
+ className: _chunk42PRTYABcjs.cn.call(void 0,
10334
10337
  "w-full pb-0 text-start",
10335
10338
  className,
10336
10339
  classNames == null ? void 0 : classNames.base
@@ -10454,12 +10457,12 @@ function InviteMemberDialog({
10454
10457
  }) {
10455
10458
  var _a, _b, _c;
10456
10459
  const {
10457
- authClient,
10460
+ authClient: authClient2,
10458
10461
  hooks: { useListInvitations, useListMembers, useSession },
10459
10462
  localization: contextLocalization,
10460
10463
  toast,
10461
10464
  organization: organizationOptions
10462
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
10465
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
10463
10466
  const localization = _react.useMemo.call(void 0,
10464
10467
  () => ({ ...contextLocalization, ...localizationProp }),
10465
10468
  [contextLocalization, localizationProp]
@@ -10500,7 +10503,7 @@ function InviteMemberDialog({
10500
10503
  const isSubmitting = form.formState.isSubmitting;
10501
10504
  async function onSubmit({ email, role }) {
10502
10505
  try {
10503
- await authClient.organization.inviteMember({
10506
+ await authClient2.organization.inviteMember({
10504
10507
  email,
10505
10508
  role,
10506
10509
  organizationId: organization.id,
@@ -10516,7 +10519,7 @@ function InviteMemberDialog({
10516
10519
  } catch (error) {
10517
10520
  toast({
10518
10521
  variant: "error",
10519
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
10522
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
10520
10523
  });
10521
10524
  }
10522
10525
  }
@@ -10525,14 +10528,14 @@ function InviteMemberDialog({
10525
10528
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10526
10529
  DialogTitle,
10527
10530
  {
10528
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
10531
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
10529
10532
  children: localization.INVITE_MEMBER
10530
10533
  }
10531
10534
  ),
10532
10535
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10533
10536
  DialogDescription,
10534
10537
  {
10535
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
10538
+ className: _chunk42PRTYABcjs.cn.call(void 0,
10536
10539
  "text-xs md:text-sm",
10537
10540
  classNames == null ? void 0 : classNames.description
10538
10541
  ),
@@ -10602,7 +10605,7 @@ function InviteMemberDialog({
10602
10605
  type: "button",
10603
10606
  variant: "outline",
10604
10607
  onClick: () => onOpenChange == null ? void 0 : onOpenChange(false),
10605
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
10608
+ className: _chunk42PRTYABcjs.cn.call(void 0,
10606
10609
  classNames == null ? void 0 : classNames.button,
10607
10610
  classNames == null ? void 0 : classNames.outlineButton
10608
10611
  ),
@@ -10613,7 +10616,7 @@ function InviteMemberDialog({
10613
10616
  Button,
10614
10617
  {
10615
10618
  type: "submit",
10616
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
10619
+ className: _chunk42PRTYABcjs.cn.call(void 0,
10617
10620
  classNames == null ? void 0 : classNames.button,
10618
10621
  classNames == null ? void 0 : classNames.primaryButton
10619
10622
  ),
@@ -10648,11 +10651,11 @@ function RemoveMemberDialog({
10648
10651
  }) {
10649
10652
  var _a, _b, _c;
10650
10653
  const {
10651
- authClient,
10654
+ authClient: authClient2,
10652
10655
  hooks: { useListMembers },
10653
10656
  localization: contextLocalization,
10654
10657
  toast
10655
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
10658
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
10656
10659
  const localization = _react.useMemo.call(void 0,
10657
10660
  () => ({ ...contextLocalization, ...localizationProp }),
10658
10661
  [contextLocalization, localizationProp]
@@ -10664,7 +10667,7 @@ function RemoveMemberDialog({
10664
10667
  const removeMember = async () => {
10665
10668
  setIsRemoving(true);
10666
10669
  try {
10667
- await authClient.organization.removeMember({
10670
+ await authClient2.organization.removeMember({
10668
10671
  memberIdOrEmail: member.id,
10669
10672
  organizationId: member.organizationId,
10670
10673
  fetchOptions: { throw: true }
@@ -10678,7 +10681,7 @@ function RemoveMemberDialog({
10678
10681
  } catch (error) {
10679
10682
  toast({
10680
10683
  variant: "error",
10681
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
10684
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
10682
10685
  });
10683
10686
  }
10684
10687
  setIsRemoving(false);
@@ -10693,14 +10696,14 @@ function RemoveMemberDialog({
10693
10696
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10694
10697
  DialogTitle,
10695
10698
  {
10696
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
10699
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
10697
10700
  children: localization.REMOVE_MEMBER
10698
10701
  }
10699
10702
  ),
10700
10703
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10701
10704
  DialogDescription,
10702
10705
  {
10703
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
10706
+ className: _chunk42PRTYABcjs.cn.call(void 0,
10704
10707
  "text-xs md:text-sm",
10705
10708
  classNames == null ? void 0 : classNames.description
10706
10709
  ),
@@ -10724,7 +10727,7 @@ function RemoveMemberDialog({
10724
10727
  type: "button",
10725
10728
  variant: "outline",
10726
10729
  onClick: () => onOpenChange == null ? void 0 : onOpenChange(false),
10727
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
10730
+ className: _chunk42PRTYABcjs.cn.call(void 0,
10728
10731
  classNames == null ? void 0 : classNames.button,
10729
10732
  classNames == null ? void 0 : classNames.outlineButton
10730
10733
  ),
@@ -10738,7 +10741,7 @@ function RemoveMemberDialog({
10738
10741
  type: "button",
10739
10742
  variant: "destructive",
10740
10743
  onClick: removeMember,
10741
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
10744
+ className: _chunk42PRTYABcjs.cn.call(void 0,
10742
10745
  classNames == null ? void 0 : classNames.button,
10743
10746
  classNames == null ? void 0 : classNames.destructiveButton
10744
10747
  ),
@@ -10768,12 +10771,12 @@ function UpdateMemberRoleDialog({
10768
10771
  }) {
10769
10772
  var _a, _b, _c, _d;
10770
10773
  const {
10771
- authClient,
10774
+ authClient: authClient2,
10772
10775
  hooks: { useSession, useListMembers },
10773
10776
  localization: contextLocalization,
10774
10777
  organization,
10775
10778
  toast
10776
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
10779
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
10777
10780
  const localization = _react.useMemo.call(void 0,
10778
10781
  () => ({ ...contextLocalization, ...localizationProp }),
10779
10782
  [contextLocalization, localizationProp]
@@ -10816,7 +10819,7 @@ function UpdateMemberRoleDialog({
10816
10819
  }
10817
10820
  setIsUpdating(true);
10818
10821
  try {
10819
- await authClient.organization.updateMemberRole({
10822
+ await authClient2.organization.updateMemberRole({
10820
10823
  memberId: member.id,
10821
10824
  role: selectedRole,
10822
10825
  organizationId: member.organizationId,
@@ -10833,7 +10836,7 @@ function UpdateMemberRoleDialog({
10833
10836
  } catch (error) {
10834
10837
  toast({
10835
10838
  variant: "error",
10836
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
10839
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
10837
10840
  });
10838
10841
  }
10839
10842
  setIsUpdating(false);
@@ -10848,14 +10851,14 @@ function UpdateMemberRoleDialog({
10848
10851
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10849
10852
  DialogTitle,
10850
10853
  {
10851
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
10854
+ className: _chunk42PRTYABcjs.cn.call(void 0, "text-lg md:text-xl", classNames == null ? void 0 : classNames.title),
10852
10855
  children: localization.UPDATE_ROLE
10853
10856
  }
10854
10857
  ),
10855
10858
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10856
10859
  DialogDescription,
10857
10860
  {
10858
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
10861
+ className: _chunk42PRTYABcjs.cn.call(void 0,
10859
10862
  "text-xs md:text-sm",
10860
10863
  classNames == null ? void 0 : classNames.description
10861
10864
  ),
@@ -10897,7 +10900,7 @@ function UpdateMemberRoleDialog({
10897
10900
  type: "button",
10898
10901
  variant: "outline",
10899
10902
  onClick: () => onOpenChange == null ? void 0 : onOpenChange(false),
10900
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
10903
+ className: _chunk42PRTYABcjs.cn.call(void 0,
10901
10904
  classNames == null ? void 0 : classNames.button,
10902
10905
  classNames == null ? void 0 : classNames.outlineButton
10903
10906
  ),
@@ -10910,7 +10913,7 @@ function UpdateMemberRoleDialog({
10910
10913
  {
10911
10914
  type: "button",
10912
10915
  onClick: updateMemberRole,
10913
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
10916
+ className: _chunk42PRTYABcjs.cn.call(void 0,
10914
10917
  classNames == null ? void 0 : classNames.button,
10915
10918
  classNames == null ? void 0 : classNames.primaryButton
10916
10919
  ),
@@ -10946,7 +10949,7 @@ function MemberCell({
10946
10949
  useHasPermission
10947
10950
  },
10948
10951
  localization: contextLocalization
10949
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
10952
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
10950
10953
  const localization = { ...contextLocalization, ...localizationProp };
10951
10954
  const { data: sessionData } = useSession();
10952
10955
  const [removeDialogOpen, setRemoveDialogOpen] = _react.useState.call(void 0, false);
@@ -10982,7 +10985,7 @@ function MemberCell({
10982
10985
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
10983
10986
  Card,
10984
10987
  {
10985
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
10988
+ className: _chunk42PRTYABcjs.cn.call(void 0,
10986
10989
  "flex-row items-center p-4",
10987
10990
  className,
10988
10991
  classNames == null ? void 0 : classNames.cell
@@ -11001,7 +11004,7 @@ function MemberCell({
11001
11004
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11002
11005
  Button,
11003
11006
  {
11004
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
11007
+ className: _chunk42PRTYABcjs.cn.call(void 0,
11005
11008
  "relative ms-auto",
11006
11009
  classNames == null ? void 0 : classNames.button,
11007
11010
  classNames == null ? void 0 : classNames.outlineButton
@@ -11100,13 +11103,13 @@ function OrganizationMembersCard({
11100
11103
  const {
11101
11104
  localization: contextLocalization,
11102
11105
  organization: organizationOptions
11103
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
11106
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
11104
11107
  const localization = _react.useMemo.call(void 0,
11105
11108
  () => ({ ...contextLocalization, ...localizationProp }),
11106
11109
  [contextLocalization, localizationProp]
11107
11110
  );
11108
11111
  const slug = slugProp || (organizationOptions == null ? void 0 : organizationOptions.slug);
11109
- const { data: organization } = _chunkSV64DXGWcjs.useCurrentOrganization.call(void 0, { slug });
11112
+ const { data: organization } = _chunkB24ZS3AScjs.useCurrentOrganization.call(void 0, { slug });
11110
11113
  if (!organization) {
11111
11114
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11112
11115
  SettingsCard,
@@ -11143,7 +11146,7 @@ function OrganizationMembersContent({
11143
11146
  const {
11144
11147
  hooks: { useHasPermission, useListMembers },
11145
11148
  localization: contextLocalization
11146
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
11149
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
11147
11150
  const localization = _react.useMemo.call(void 0,
11148
11151
  () => ({ ...contextLocalization, ...localizationProp }),
11149
11152
  [contextLocalization, localizationProp]
@@ -11186,7 +11189,7 @@ function OrganizationMembersContent({
11186
11189
  children: !isPending && members && members.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11187
11190
  CardContent,
11188
11191
  {
11189
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content),
11192
+ className: _chunk42PRTYABcjs.cn.call(void 0, "grid gap-4", classNames == null ? void 0 : classNames.content),
11190
11193
  children: members.sort(
11191
11194
  (a, b) => new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime()
11192
11195
  ).map((member) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -11229,12 +11232,12 @@ function OrganizationNameCard({
11229
11232
  slug,
11230
11233
  ...props
11231
11234
  }) {
11232
- const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
11235
+ const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
11233
11236
  const localization = _react.useMemo.call(void 0,
11234
11237
  () => ({ ...contextLocalization, ...localizationProp }),
11235
11238
  [contextLocalization, localizationProp]
11236
11239
  );
11237
- const { data: organization } = _chunkSV64DXGWcjs.useCurrentOrganization.call(void 0, { slug });
11240
+ const { data: organization } = _chunkB24ZS3AScjs.useCurrentOrganization.call(void 0, { slug });
11238
11241
  if (!organization) {
11239
11242
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11240
11243
  SettingsCard,
@@ -11250,7 +11253,7 @@ function OrganizationNameCard({
11250
11253
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: classNames == null ? void 0 : classNames.content, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11251
11254
  Skeleton,
11252
11255
  {
11253
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "h-9 w-full", classNames == null ? void 0 : classNames.skeleton)
11256
+ className: _chunk42PRTYABcjs.cn.call(void 0, "h-9 w-full", classNames == null ? void 0 : classNames.skeleton)
11254
11257
  }
11255
11258
  ) })
11256
11259
  }
@@ -11280,7 +11283,7 @@ function OrganizationNameForm({
11280
11283
  mutators: { updateOrganization },
11281
11284
  optimistic,
11282
11285
  toast
11283
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
11286
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
11284
11287
  const localization = { ...contextLocalization, ...localizationProp };
11285
11288
  const { data: hasPermission, isPending: permissionPending } = useHasPermission({
11286
11289
  organizationId: organization.id,
@@ -11288,7 +11291,7 @@ function OrganizationNameForm({
11288
11291
  organization: ["update"]
11289
11292
  }
11290
11293
  });
11291
- const { refetch: refetchOrganization } = _chunkSV64DXGWcjs.useCurrentOrganization.call(void 0, {
11294
+ const { refetch: refetchOrganization } = _chunkB24ZS3AScjs.useCurrentOrganization.call(void 0, {
11292
11295
  slug: organization.slug
11293
11296
  });
11294
11297
  const isPending = permissionPending;
@@ -11325,7 +11328,7 @@ function OrganizationNameForm({
11325
11328
  } catch (error) {
11326
11329
  toast({
11327
11330
  variant: "error",
11328
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
11331
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
11329
11332
  });
11330
11333
  }
11331
11334
  };
@@ -11345,7 +11348,7 @@ function OrganizationNameForm({
11345
11348
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: classNames == null ? void 0 : classNames.content, children: isPending ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11346
11349
  Skeleton,
11347
11350
  {
11348
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
11351
+ className: _chunk42PRTYABcjs.cn.call(void 0,
11349
11352
  "h-9 w-full",
11350
11353
  classNames == null ? void 0 : classNames.skeleton
11351
11354
  )
@@ -11397,13 +11400,13 @@ function OrganizationSlugCard({
11397
11400
  const {
11398
11401
  localization: contextLocalization,
11399
11402
  organization: organizationOptions
11400
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
11403
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
11401
11404
  const localization = _react.useMemo.call(void 0,
11402
11405
  () => ({ ...contextLocalization, ...localizationProp }),
11403
11406
  [contextLocalization, localizationProp]
11404
11407
  );
11405
11408
  const slug = slugProp || (organizationOptions == null ? void 0 : organizationOptions.slug);
11406
- const { data: organization } = _chunkSV64DXGWcjs.useCurrentOrganization.call(void 0, { slug });
11409
+ const { data: organization } = _chunkB24ZS3AScjs.useCurrentOrganization.call(void 0, { slug });
11407
11410
  if (!organization) {
11408
11411
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11409
11412
  SettingsCard,
@@ -11419,7 +11422,7 @@ function OrganizationSlugCard({
11419
11422
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: classNames == null ? void 0 : classNames.content, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11420
11423
  Skeleton,
11421
11424
  {
11422
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, "h-9 w-full", classNames == null ? void 0 : classNames.skeleton)
11425
+ className: _chunk42PRTYABcjs.cn.call(void 0, "h-9 w-full", classNames == null ? void 0 : classNames.skeleton)
11423
11426
  }
11424
11427
  ) })
11425
11428
  }
@@ -11451,12 +11454,12 @@ function OrganizationSlugForm({
11451
11454
  toast,
11452
11455
  organization: organizationOptions,
11453
11456
  replace
11454
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
11457
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
11455
11458
  const localization = _react.useMemo.call(void 0,
11456
11459
  () => ({ ...contextLocalization, ...localizationProp }),
11457
11460
  [contextLocalization, localizationProp]
11458
11461
  );
11459
- const { refetch: refetchOrganization } = _chunkSV64DXGWcjs.useCurrentOrganization.call(void 0, {
11462
+ const { refetch: refetchOrganization } = _chunkB24ZS3AScjs.useCurrentOrganization.call(void 0, {
11460
11463
  slug: organization.slug
11461
11464
  });
11462
11465
  const { data: hasPermission, isPending } = useHasPermission({
@@ -11505,7 +11508,7 @@ function OrganizationSlugForm({
11505
11508
  } catch (error) {
11506
11509
  toast({
11507
11510
  variant: "error",
11508
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
11511
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
11509
11512
  });
11510
11513
  }
11511
11514
  };
@@ -11525,7 +11528,7 @@ function OrganizationSlugForm({
11525
11528
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: classNames == null ? void 0 : classNames.content, children: isPending ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11526
11529
  Skeleton,
11527
11530
  {
11528
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
11531
+ className: _chunk42PRTYABcjs.cn.call(void 0,
11529
11532
  "h-9 w-full",
11530
11533
  classNames == null ? void 0 : classNames.skeleton
11531
11534
  )
@@ -11566,11 +11569,11 @@ function OrganizationSettingsCards({
11566
11569
  localization,
11567
11570
  slug
11568
11571
  }) {
11569
- const { organization: organizationOptions } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
11572
+ const { organization: organizationOptions } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
11570
11573
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
11571
11574
  "div",
11572
11575
  {
11573
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
11576
+ className: _chunk42PRTYABcjs.cn.call(void 0,
11574
11577
  "flex w-full flex-col gap-4 md:gap-6",
11575
11578
  className,
11576
11579
  classNames == null ? void 0 : classNames.cards
@@ -11645,7 +11648,7 @@ function OrganizationSwitcher({
11645
11648
  }) {
11646
11649
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
11647
11650
  const {
11648
- authClient,
11651
+ authClient: authClient2,
11649
11652
  basePath,
11650
11653
  hooks: { useSession, useListOrganizations },
11651
11654
  localization: contextLocalization,
@@ -11656,7 +11659,7 @@ function OrganizationSwitcher({
11656
11659
  toast,
11657
11660
  viewPaths,
11658
11661
  Link
11659
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
11662
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
11660
11663
  const {
11661
11664
  pathMode,
11662
11665
  slug: contextSlug,
@@ -11678,7 +11681,7 @@ function OrganizationSwitcher({
11678
11681
  isPending: organizationPending,
11679
11682
  isRefetching: organizationRefetching,
11680
11683
  refetch: organizationRefetch
11681
- } = _chunkSV64DXGWcjs.useCurrentOrganization.call(void 0, { slug });
11684
+ } = _chunkB24ZS3AScjs.useCurrentOrganization.call(void 0, { slug });
11682
11685
  const isPending = organizationsPending || sessionPending || activeOrganizationPending || organizationPending;
11683
11686
  _react.useEffect.call(void 0, () => {
11684
11687
  if (organizationRefetching) return;
@@ -11702,7 +11705,7 @@ function OrganizationSwitcher({
11702
11705
  setActiveOrganizationPending(true);
11703
11706
  try {
11704
11707
  onSetActive == null ? void 0 : onSetActive(organization);
11705
- await authClient.organization.setActive({
11708
+ await authClient2.organization.setActive({
11706
11709
  organizationId: (organization == null ? void 0 : organization.id) || null,
11707
11710
  fetchOptions: {
11708
11711
  throw: true
@@ -11712,13 +11715,13 @@ function OrganizationSwitcher({
11712
11715
  } catch (error) {
11713
11716
  toast({
11714
11717
  variant: "error",
11715
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
11718
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
11716
11719
  });
11717
11720
  setActiveOrganizationPending(false);
11718
11721
  }
11719
11722
  },
11720
11723
  [
11721
- authClient,
11724
+ authClient2,
11722
11725
  toast,
11723
11726
  localization,
11724
11727
  onSetActive,
@@ -11751,7 +11754,7 @@ function OrganizationSwitcher({
11751
11754
  Button,
11752
11755
  {
11753
11756
  size: "icon",
11754
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
11757
+ className: _chunk42PRTYABcjs.cn.call(void 0,
11755
11758
  "size-fit rounded-full",
11756
11759
  className,
11757
11760
  (_a = classNames == null ? void 0 : classNames.trigger) == null ? void 0 : _a.base
@@ -11762,7 +11765,7 @@ function OrganizationSwitcher({
11762
11765
  children: isPending || activeOrganization || !sessionData || (user == null ? void 0 : user.isAnonymous) || hidePersonal ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11763
11766
  OrganizationLogo,
11764
11767
  {
11765
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
11768
+ className: _chunk42PRTYABcjs.cn.call(void 0,
11766
11769
  className,
11767
11770
  classNames == null ? void 0 : classNames.base
11768
11771
  ),
@@ -11776,7 +11779,7 @@ function OrganizationSwitcher({
11776
11779
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11777
11780
  UserAvatar,
11778
11781
  {
11779
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
11782
+ className: _chunk42PRTYABcjs.cn.call(void 0,
11780
11783
  className,
11781
11784
  classNames == null ? void 0 : classNames.base
11782
11785
  ),
@@ -11791,7 +11794,7 @@ function OrganizationSwitcher({
11791
11794
  ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
11792
11795
  Button,
11793
11796
  {
11794
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
11797
+ className: _chunk42PRTYABcjs.cn.call(void 0,
11795
11798
  "!p-2 h-fit",
11796
11799
  className,
11797
11800
  (_d = classNames == null ? void 0 : classNames.trigger) == null ? void 0 : _d.base
@@ -11824,7 +11827,7 @@ function OrganizationSwitcher({
11824
11827
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
11825
11828
  DropdownMenuContent,
11826
11829
  {
11827
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
11830
+ className: _chunk42PRTYABcjs.cn.call(void 0,
11828
11831
  "w-[--radix-dropdown-menu-trigger-width] min-w-56 max-w-64",
11829
11832
  (_g = classNames == null ? void 0 : classNames.content) == null ? void 0 : _g.base
11830
11833
  ),
@@ -11837,7 +11840,7 @@ function OrganizationSwitcher({
11837
11840
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11838
11841
  "div",
11839
11842
  {
11840
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
11843
+ className: _chunk42PRTYABcjs.cn.call(void 0,
11841
11844
  "flex items-center justify-between gap-2 p-2",
11842
11845
  (_h = classNames == null ? void 0 : classNames.content) == null ? void 0 : _h.menuItem
11843
11846
  ),
@@ -11952,7 +11955,7 @@ function OrganizationSwitcher({
11952
11955
  !isPending && sessionData && !user.isAnonymous ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
11953
11956
  DropdownMenuItem,
11954
11957
  {
11955
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, (_o = classNames == null ? void 0 : classNames.content) == null ? void 0 : _o.menuItem),
11958
+ className: _chunk42PRTYABcjs.cn.call(void 0, (_o = classNames == null ? void 0 : classNames.content) == null ? void 0 : _o.menuItem),
11956
11959
  onClick: () => setIsCreateOrgDialogOpen(true),
11957
11960
  children: [
11958
11961
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircleIcon, {}),
@@ -11962,7 +11965,7 @@ function OrganizationSwitcher({
11962
11965
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${basePath}/${viewPaths.SIGN_IN}`, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
11963
11966
  DropdownMenuItem,
11964
11967
  {
11965
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, (_p = classNames == null ? void 0 : classNames.content) == null ? void 0 : _p.menuItem),
11968
+ className: _chunk42PRTYABcjs.cn.call(void 0, (_p = classNames == null ? void 0 : classNames.content) == null ? void 0 : _p.menuItem),
11966
11969
  children: [
11967
11970
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.LogInIcon, {}),
11968
11971
  localization.SIGN_IN
@@ -12005,7 +12008,7 @@ function OrganizationView({
12005
12008
  account: accountOptions,
12006
12009
  Link,
12007
12010
  replace
12008
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
12011
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
12009
12012
  const { slug: contextSlug, viewPaths, apiKey } = organizationOptions || {};
12010
12013
  useAuthenticate();
12011
12014
  const localization = _react.useMemo.call(void 0,
@@ -12013,13 +12016,13 @@ function OrganizationView({
12013
12016
  [contextLocalization, localizationProp]
12014
12017
  );
12015
12018
  const path = _nullishCoalesce(pathProp, () => ( (pathname == null ? void 0 : pathname.split("/").pop())));
12016
- const view = viewProp || _chunkCRAHKL2Ccjs.getViewByPath.call(void 0, viewPaths, path) || "SETTINGS";
12019
+ const view = viewProp || _chunk42PRTYABcjs.getViewByPath.call(void 0, viewPaths, path) || "SETTINGS";
12017
12020
  const slug = slugProp || contextSlug;
12018
12021
  const {
12019
12022
  data: organization,
12020
12023
  isPending: organizationPending,
12021
12024
  isRefetching: organizationRefetching
12022
- } = _chunkSV64DXGWcjs.useCurrentOrganization.call(void 0, { slug });
12025
+ } = _chunkB24ZS3AScjs.useCurrentOrganization.call(void 0, { slug });
12023
12026
  const navItems = [
12024
12027
  { view: "SETTINGS", label: localization.SETTINGS },
12025
12028
  { view: "MEMBERS", label: localization.MEMBERS }
@@ -12048,7 +12051,7 @@ function OrganizationView({
12048
12051
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
12049
12052
  "div",
12050
12053
  {
12051
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
12054
+ className: _chunk42PRTYABcjs.cn.call(void 0,
12052
12055
  "flex w-full grow flex-col gap-4 md:flex-row md:gap-12",
12053
12056
  className,
12054
12057
  classNames == null ? void 0 : classNames.base
@@ -12070,7 +12073,7 @@ function OrganizationView({
12070
12073
  Button,
12071
12074
  {
12072
12075
  size: "lg",
12073
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
12076
+ className: _chunk42PRTYABcjs.cn.call(void 0,
12074
12077
  "w-full justify-start px-4 transition-none",
12075
12078
  (_a2 = classNames == null ? void 0 : classNames.drawer) == null ? void 0 : _a2.menuItem,
12076
12079
  view === item.view ? "font-semibold" : "text-foreground/70"
@@ -12089,7 +12092,7 @@ function OrganizationView({
12089
12092
  !hideNav && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden md:block", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12090
12093
  "div",
12091
12094
  {
12092
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
12095
+ className: _chunk42PRTYABcjs.cn.call(void 0,
12093
12096
  "flex w-48 flex-col gap-1 lg:w-60",
12094
12097
  (_c = classNames == null ? void 0 : classNames.sidebar) == null ? void 0 : _c.base
12095
12098
  ),
@@ -12103,7 +12106,7 @@ function OrganizationView({
12103
12106
  Button,
12104
12107
  {
12105
12108
  size: "lg",
12106
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
12109
+ className: _chunk42PRTYABcjs.cn.call(void 0,
12107
12110
  "w-full justify-start px-4 transition-none",
12108
12111
  (_a2 = classNames == null ? void 0 : classNames.sidebar) == null ? void 0 : _a2.button,
12109
12112
  view === item.view ? "font-semibold" : "text-foreground/70",
@@ -12122,7 +12125,7 @@ function OrganizationView({
12122
12125
  view === "MEMBERS" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
12123
12126
  "div",
12124
12127
  {
12125
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
12128
+ className: _chunk42PRTYABcjs.cn.call(void 0,
12126
12129
  "flex w-full flex-col gap-4 md:gap-6",
12127
12130
  className,
12128
12131
  classNames == null ? void 0 : classNames.cards
@@ -12186,7 +12189,7 @@ function RedirectToSignUp() {
12186
12189
  function SignedIn({ children }) {
12187
12190
  const {
12188
12191
  hooks: { useSession }
12189
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
12192
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
12190
12193
  const { data } = useSession();
12191
12194
  return data ? children : null;
12192
12195
  }
@@ -12196,7 +12199,7 @@ function SignedIn({ children }) {
12196
12199
  function SignedOut({ children }) {
12197
12200
  const {
12198
12201
  hooks: { useSession }
12199
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
12202
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
12200
12203
  const { data, isPending } = useSession();
12201
12204
  return !data && !isPending ? children : null;
12202
12205
  }
@@ -12247,7 +12250,7 @@ function UserButton({
12247
12250
  viewPaths,
12248
12251
  onSessionChange,
12249
12252
  Link
12250
- } = _react.useContext.call(void 0, _chunkSV64DXGWcjs.AuthUIContext);
12253
+ } = _react.useContext.call(void 0, _chunkB24ZS3AScjs.AuthUIContext);
12251
12254
  const localization = _react.useMemo.call(void 0,
12252
12255
  () => ({ ...contextLocalization, ...propLocalization }),
12253
12256
  [contextLocalization, propLocalization]
@@ -12262,7 +12265,7 @@ function UserButton({
12262
12265
  const { data: sessionData, isPending: sessionPending } = useSession();
12263
12266
  const user = sessionData == null ? void 0 : sessionData.user;
12264
12267
  const [activeSessionPending, setActiveSessionPending] = _react.useState.call(void 0, false);
12265
- const isHydrated = _chunkSV64DXGWcjs.useIsHydrated.call(void 0, );
12268
+ const isHydrated = _chunkB24ZS3AScjs.useIsHydrated.call(void 0, );
12266
12269
  const isPending = sessionPending || activeSessionPending || !isHydrated;
12267
12270
  const switchAccount = _react.useCallback.call(void 0,
12268
12271
  async (sessionToken) => {
@@ -12273,7 +12276,7 @@ function UserButton({
12273
12276
  } catch (error) {
12274
12277
  toast({
12275
12278
  variant: "error",
12276
- message: _chunkCRAHKL2Ccjs.getLocalizedError.call(void 0, { error, localization })
12279
+ message: _chunk42PRTYABcjs.getLocalizedError.call(void 0, { error, localization })
12277
12280
  });
12278
12281
  setActiveSessionPending(false);
12279
12282
  }
@@ -12297,7 +12300,7 @@ function UserButton({
12297
12300
  DropdownMenuTrigger,
12298
12301
  {
12299
12302
  asChild: true,
12300
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
12303
+ className: _chunk42PRTYABcjs.cn.call(void 0,
12301
12304
  size === "icon" && "rounded-full",
12302
12305
  (_a = classNames == null ? void 0 : classNames.trigger) == null ? void 0 : _a.base
12303
12306
  ),
@@ -12311,7 +12314,7 @@ function UserButton({
12311
12314
  UserAvatar,
12312
12315
  {
12313
12316
  isPending,
12314
- className: _chunkCRAHKL2Ccjs.cn.call(void 0, className, classNames == null ? void 0 : classNames.base),
12317
+ className: _chunk42PRTYABcjs.cn.call(void 0, className, classNames == null ? void 0 : classNames.base),
12315
12318
  classNames: (_b = classNames == null ? void 0 : classNames.trigger) == null ? void 0 : _b.avatar,
12316
12319
  user,
12317
12320
  "aria-label": localization.ACCOUNT,
@@ -12323,7 +12326,7 @@ function UserButton({
12323
12326
  ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
12324
12327
  Button,
12325
12328
  {
12326
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
12329
+ className: _chunk42PRTYABcjs.cn.call(void 0,
12327
12330
  "!p-2 h-fit",
12328
12331
  className,
12329
12332
  (_c = classNames == null ? void 0 : classNames.trigger) == null ? void 0 : _c.base
@@ -12350,7 +12353,7 @@ function UserButton({
12350
12353
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
12351
12354
  DropdownMenuContent,
12352
12355
  {
12353
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
12356
+ className: _chunk42PRTYABcjs.cn.call(void 0,
12354
12357
  "w-[--radix-dropdown-menu-trigger-width] min-w-56 max-w-64",
12355
12358
  (_e = classNames == null ? void 0 : classNames.content) == null ? void 0 : _e.base
12356
12359
  ),
@@ -12360,7 +12363,7 @@ function UserButton({
12360
12363
  sideOffset,
12361
12364
  onCloseAutoFocus: (e) => e.preventDefault(),
12362
12365
  children: [
12363
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCRAHKL2Ccjs.cn.call(void 0, "p-2", (_f = classNames == null ? void 0 : classNames.content) == null ? void 0 : _f.menuItem), children: user && !user.isAnonymous || isPending ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12366
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk42PRTYABcjs.cn.call(void 0, "p-2", (_f = classNames == null ? void 0 : classNames.content) == null ? void 0 : _f.menuItem), children: user && !user.isAnonymous || isPending ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12364
12367
  UserView,
12365
12368
  {
12366
12369
  user,
@@ -12520,6 +12523,53 @@ function UserButton({
12520
12523
  ] });
12521
12524
  }
12522
12525
 
12526
+ // src/types/auth-client.ts
12527
+
12528
+
12529
+
12530
+
12531
+
12532
+
12533
+
12534
+
12535
+
12536
+
12537
+
12538
+
12539
+ var _plugins = require('better-auth/client/plugins');
12540
+ var _react2 = require('better-auth/react');
12541
+ var authClient = _react2.createAuthClient.call(void 0, {
12542
+ plugins: [
12543
+ _plugins.apiKeyClient.call(void 0, ),
12544
+ _plugins.multiSessionClient.call(void 0, ),
12545
+ _plugins.passkeyClient.call(void 0, ),
12546
+ _plugins.oneTapClient.call(void 0, {
12547
+ clientId: ""
12548
+ }),
12549
+ _plugins.genericOAuthClient.call(void 0, ),
12550
+ _plugins.anonymousClient.call(void 0, ),
12551
+ _plugins.usernameClient.call(void 0, ),
12552
+ _plugins.magicLinkClient.call(void 0, ),
12553
+ _plugins.emailOTPClient.call(void 0, ),
12554
+ _plugins.twoFactorClient.call(void 0, ),
12555
+ _plugins.organizationClient.call(void 0, )
12556
+ ]
12557
+ });
12558
+
12559
+
12560
+
12561
+
12562
+
12563
+
12564
+
12565
+
12566
+
12567
+
12568
+
12569
+
12570
+
12571
+
12572
+
12523
12573
 
12524
12574
 
12525
12575
 
@@ -12607,4 +12657,4 @@ function UserButton({
12607
12657
 
12608
12658
 
12609
12659
 
12610
- exports.AcceptInvitationCard = AcceptInvitationCard; exports.AccountSettingsCards = AccountSettingsCards; exports.AccountView = AccountView; exports.AccountsCard = AccountsCard; exports.ApiKeysCard = ApiKeysCard; exports.AppleIcon = AppleIcon; exports.AuthCallback = AuthCallback; exports.AuthForm = AuthForm; exports.AuthLoading = AuthLoading; exports.AuthUIContext = _chunkSV64DXGWcjs.AuthUIContext; exports.AuthUIProvider = _chunkSV64DXGWcjs.AuthUIProvider; exports.AuthView = AuthView; exports.ChangeEmailCard = ChangeEmailCard; exports.ChangePasswordCard = ChangePasswordCard; exports.CreateOrganizationDialog = CreateOrganizationDialog; exports.DeleteAccountCard = DeleteAccountCard; exports.DeleteOrganizationCard = DeleteOrganizationCard; exports.DiscordIcon = DiscordIcon; exports.DropboxIcon = DropboxIcon; exports.FacebookIcon = FacebookIcon; exports.ForgotPasswordForm = ForgotPasswordForm; exports.GitHubIcon = GitHubIcon; exports.GitLabIcon = GitLabIcon; exports.GoogleIcon = GoogleIcon; exports.HuggingFaceIcon = HuggingFaceIcon; exports.InputFieldSkeleton = InputFieldSkeleton; exports.KickIcon = KickIcon; exports.LinearIcon = LinearIcon; exports.LinkedInIcon = LinkedInIcon; exports.MagicLinkForm = MagicLinkForm; exports.MicrosoftIcon = MicrosoftIcon; exports.NotionIcon = NotionIcon; exports.OrganizationCellView = OrganizationCellView; exports.OrganizationInvitationsCard = OrganizationInvitationsCard; exports.OrganizationLogo = OrganizationLogo; exports.OrganizationLogoCard = OrganizationLogoCard; exports.OrganizationMembersCard = OrganizationMembersCard; exports.OrganizationNameCard = OrganizationNameCard; exports.OrganizationSettingsCards = OrganizationSettingsCards; exports.OrganizationSlugCard = OrganizationSlugCard; exports.OrganizationSwitcher = OrganizationSwitcher; exports.OrganizationView = OrganizationView; exports.OrganizationsCard = OrganizationsCard; exports.PasskeysCard = PasskeysCard; exports.PasswordInput = PasswordInput; exports.ProvidersCard = ProvidersCard; exports.RecoverAccountForm = RecoverAccountForm; exports.RedditIcon = RedditIcon; exports.RedirectToSignIn = RedirectToSignIn; exports.RedirectToSignUp = RedirectToSignUp; exports.ResetPasswordForm = ResetPasswordForm; exports.RobloxIcon = RobloxIcon; exports.SecuritySettingsCards = SecuritySettingsCards; exports.SessionsCard = SessionsCard; exports.SettingsCard = SettingsCard; exports.SettingsCellSkeleton = SettingsCellSkeleton; exports.SignInForm = SignInForm; exports.SignOut = SignOut; exports.SignUpForm = SignUpForm; exports.SignedIn = SignedIn; exports.SignedOut = SignedOut; exports.SlackIcon = SlackIcon; exports.SpotifyIcon = SpotifyIcon; exports.TikTokIcon = TikTokIcon; exports.TwitchIcon = TwitchIcon; exports.TwoFactorCard = TwoFactorCard; exports.TwoFactorForm = TwoFactorForm; exports.UpdateAvatarCard = UpdateAvatarCard; exports.UpdateFieldCard = UpdateFieldCard; exports.UpdateNameCard = UpdateNameCard; exports.UpdateUsernameCard = UpdateUsernameCard; exports.UserAvatar = UserAvatar; exports.UserButton = UserButton; exports.UserInvitationsCard = UserInvitationsCard; exports.UserView = UserView; exports.VKIcon = VKIcon; exports.XIcon = XIcon2; exports.ZoomIcon = ZoomIcon; exports.accountViewPaths = _chunkCRAHKL2Ccjs.accountViewPaths; exports.authLocalization = _chunkCRAHKL2Ccjs.authLocalization; exports.authViewPaths = _chunkCRAHKL2Ccjs.authViewPaths; exports.getViewByPath = _chunkCRAHKL2Ccjs.getViewByPath; exports.organizationViewPaths = _chunkCRAHKL2Ccjs.organizationViewPaths; exports.socialProviders = socialProviders; exports.useAuthData = _chunkSV64DXGWcjs.useAuthData; exports.useAuthenticate = useAuthenticate; exports.useCurrentOrganization = _chunkSV64DXGWcjs.useCurrentOrganization;
12660
+ exports.AcceptInvitationCard = AcceptInvitationCard; exports.AccountSettingsCards = AccountSettingsCards; exports.AccountView = AccountView; exports.AccountsCard = AccountsCard; exports.ApiKeysCard = ApiKeysCard; exports.AppleIcon = AppleIcon; exports.AuthCallback = AuthCallback; exports.AuthForm = AuthForm; exports.AuthLoading = AuthLoading; exports.AuthUIContext = _chunkB24ZS3AScjs.AuthUIContext; exports.AuthUIProvider = _chunkB24ZS3AScjs.AuthUIProvider; exports.AuthView = AuthView; exports.ChangeEmailCard = ChangeEmailCard; exports.ChangePasswordCard = ChangePasswordCard; exports.CreateOrganizationDialog = CreateOrganizationDialog; exports.DeleteAccountCard = DeleteAccountCard; exports.DeleteOrganizationCard = DeleteOrganizationCard; exports.DiscordIcon = DiscordIcon; exports.DropboxIcon = DropboxIcon; exports.FacebookIcon = FacebookIcon; exports.ForgotPasswordForm = ForgotPasswordForm; exports.GitHubIcon = GitHubIcon; exports.GitLabIcon = GitLabIcon; exports.GoogleIcon = GoogleIcon; exports.HuggingFaceIcon = HuggingFaceIcon; exports.InputFieldSkeleton = InputFieldSkeleton; exports.KickIcon = KickIcon; exports.LinearIcon = LinearIcon; exports.LinkedInIcon = LinkedInIcon; exports.MagicLinkForm = MagicLinkForm; exports.MicrosoftIcon = MicrosoftIcon; exports.NotionIcon = NotionIcon; exports.OrganizationCellView = OrganizationCellView; exports.OrganizationInvitationsCard = OrganizationInvitationsCard; exports.OrganizationLogo = OrganizationLogo; exports.OrganizationLogoCard = OrganizationLogoCard; exports.OrganizationMembersCard = OrganizationMembersCard; exports.OrganizationNameCard = OrganizationNameCard; exports.OrganizationRefetcher = _chunkB24ZS3AScjs.OrganizationRefetcher; exports.OrganizationSettingsCards = OrganizationSettingsCards; exports.OrganizationSlugCard = OrganizationSlugCard; exports.OrganizationSwitcher = OrganizationSwitcher; exports.OrganizationView = OrganizationView; exports.OrganizationsCard = OrganizationsCard; exports.PasskeysCard = PasskeysCard; exports.PasswordInput = PasswordInput; exports.ProvidersCard = ProvidersCard; exports.RecoverAccountForm = RecoverAccountForm; exports.RedditIcon = RedditIcon; exports.RedirectToSignIn = RedirectToSignIn; exports.RedirectToSignUp = RedirectToSignUp; exports.ResetPasswordForm = ResetPasswordForm; exports.RobloxIcon = RobloxIcon; exports.SecuritySettingsCards = SecuritySettingsCards; exports.SessionsCard = SessionsCard; exports.SettingsCard = SettingsCard; exports.SettingsCellSkeleton = SettingsCellSkeleton; exports.SignInForm = SignInForm; exports.SignOut = SignOut; exports.SignUpForm = SignUpForm; exports.SignedIn = SignedIn; exports.SignedOut = SignedOut; exports.SlackIcon = SlackIcon; exports.SpotifyIcon = SpotifyIcon; exports.TikTokIcon = TikTokIcon; exports.TwitchIcon = TwitchIcon; exports.TwoFactorCard = TwoFactorCard; exports.TwoFactorForm = TwoFactorForm; exports.UpdateAvatarCard = UpdateAvatarCard; exports.UpdateFieldCard = UpdateFieldCard; exports.UpdateNameCard = UpdateNameCard; exports.UpdateUsernameCard = UpdateUsernameCard; exports.UserAvatar = UserAvatar; exports.UserButton = UserButton; exports.UserInvitationsCard = UserInvitationsCard; exports.UserView = UserView; exports.VKIcon = VKIcon; exports.XIcon = XIcon2; exports.ZoomIcon = ZoomIcon; exports.accountViewPaths = _chunk42PRTYABcjs.accountViewPaths; exports.authClient = authClient; exports.authLocalization = _chunk42PRTYABcjs.authLocalization; exports.authViewPaths = _chunk42PRTYABcjs.authViewPaths; exports.cn = _chunk42PRTYABcjs.cn; exports.errorCodeToCamelCase = _chunk42PRTYABcjs.errorCodeToCamelCase; exports.getKeyByValue = _chunk42PRTYABcjs.getKeyByValue; exports.getLocalizedError = _chunk42PRTYABcjs.getLocalizedError; exports.getPasswordSchema = _chunk42PRTYABcjs.getPasswordSchema; exports.getSearchParam = _chunk42PRTYABcjs.getSearchParam; exports.getViewByPath = _chunk42PRTYABcjs.getViewByPath; exports.isValidEmail = _chunk42PRTYABcjs.isValidEmail; exports.organizationViewPaths = _chunk42PRTYABcjs.organizationViewPaths; exports.socialProviders = socialProviders; exports.useAuthData = _chunkB24ZS3AScjs.useAuthData; exports.useAuthenticate = useAuthenticate; exports.useCaptcha = useCaptcha; exports.useCurrentOrganization = _chunkB24ZS3AScjs.useCurrentOrganization; exports.useIsHydrated = _chunkB24ZS3AScjs.useIsHydrated; exports.useLang = _chunkB24ZS3AScjs.useLang; exports.useOnSuccessTransition = useOnSuccessTransition; exports.useTheme = _chunkB24ZS3AScjs.useTheme;