better-auth-ui 3.2.13 → 3.2.15

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