@volr/react-ui 0.1.109 → 0.1.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import React12, { createContext, useContext, useState, useMemo, useEffect, useCallback, useRef, useId, useReducer } from 'react';
1
+ import React13, { createContext, useContext, useState, useMemo, useEffect, useCallback, useRef, useId, useReducer } from 'react';
2
2
  import { createPortal } from 'react-dom';
3
- import { useVolrContext, useInternalAuth, usePasskeyEnrollment, useMpcConnection, VolrProvider, useVolrAuthCallback, useVolrPaymentApi, useVolrLogin, useVolr, useDepositListener, createGetNetworkInfo } from '@volr/react';
3
+ import { useVolrContext, useInternalAuth, usePasskeyEnrollment, useMpcConnection, VolrProvider, useVolrAuthCallback, useVolrPaymentApi, useUserBalances, useVolrLogin, useVolr, useWithdraw, useDepositListener, createGetNetworkInfo, useEIP6963 } from '@volr/react';
4
4
  export { VolrProvider, useDepositListener, usePasskeyEnrollment, useVolr, useVolrLogin, useVolrPaymentApi } from '@volr/react';
5
5
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
6
  import { clsx } from 'clsx';
@@ -12,6 +12,123 @@ var __esm = (fn, res) => function __init() {
12
12
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
13
13
  };
14
14
 
15
+ // ../node_modules/viem/_esm/errors/version.js
16
+ var version;
17
+ var init_version = __esm({
18
+ "../node_modules/viem/_esm/errors/version.js"() {
19
+ version = "2.38.6";
20
+ }
21
+ });
22
+
23
+ // ../node_modules/viem/_esm/errors/base.js
24
+ function walk(err, fn) {
25
+ if (fn?.(err))
26
+ return err;
27
+ if (err && typeof err === "object" && "cause" in err && err.cause !== void 0)
28
+ return walk(err.cause, fn);
29
+ return fn ? null : err;
30
+ }
31
+ var errorConfig, BaseError;
32
+ var init_base = __esm({
33
+ "../node_modules/viem/_esm/errors/base.js"() {
34
+ init_version();
35
+ errorConfig = {
36
+ getDocsUrl: ({ docsBaseUrl, docsPath = "", docsSlug }) => docsPath ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
37
+ version: `viem@${version}`
38
+ };
39
+ BaseError = class _BaseError extends Error {
40
+ constructor(shortMessage, args = {}) {
41
+ const details = (() => {
42
+ if (args.cause instanceof _BaseError)
43
+ return args.cause.details;
44
+ if (args.cause?.message)
45
+ return args.cause.message;
46
+ return args.details;
47
+ })();
48
+ const docsPath = (() => {
49
+ if (args.cause instanceof _BaseError)
50
+ return args.cause.docsPath || args.docsPath;
51
+ return args.docsPath;
52
+ })();
53
+ const docsUrl = errorConfig.getDocsUrl?.({ ...args, docsPath });
54
+ const message = [
55
+ shortMessage || "An error occurred.",
56
+ "",
57
+ ...args.metaMessages ? [...args.metaMessages, ""] : [],
58
+ ...docsUrl ? [`Docs: ${docsUrl}`] : [],
59
+ ...details ? [`Details: ${details}`] : [],
60
+ ...errorConfig.version ? [`Version: ${errorConfig.version}`] : []
61
+ ].join("\n");
62
+ super(message, args.cause ? { cause: args.cause } : void 0);
63
+ Object.defineProperty(this, "details", {
64
+ enumerable: true,
65
+ configurable: true,
66
+ writable: true,
67
+ value: void 0
68
+ });
69
+ Object.defineProperty(this, "docsPath", {
70
+ enumerable: true,
71
+ configurable: true,
72
+ writable: true,
73
+ value: void 0
74
+ });
75
+ Object.defineProperty(this, "metaMessages", {
76
+ enumerable: true,
77
+ configurable: true,
78
+ writable: true,
79
+ value: void 0
80
+ });
81
+ Object.defineProperty(this, "shortMessage", {
82
+ enumerable: true,
83
+ configurable: true,
84
+ writable: true,
85
+ value: void 0
86
+ });
87
+ Object.defineProperty(this, "version", {
88
+ enumerable: true,
89
+ configurable: true,
90
+ writable: true,
91
+ value: void 0
92
+ });
93
+ Object.defineProperty(this, "name", {
94
+ enumerable: true,
95
+ configurable: true,
96
+ writable: true,
97
+ value: "BaseError"
98
+ });
99
+ this.details = details;
100
+ this.docsPath = docsPath;
101
+ this.metaMessages = args.metaMessages;
102
+ this.name = args.name ?? this.name;
103
+ this.shortMessage = shortMessage;
104
+ this.version = version;
105
+ }
106
+ walk(fn) {
107
+ return walk(this, fn);
108
+ }
109
+ };
110
+ }
111
+ });
112
+
113
+ // ../node_modules/viem/_esm/utils/unit/formatUnits.js
114
+ function formatUnits(value, decimals) {
115
+ let display = value.toString();
116
+ const negative = display.startsWith("-");
117
+ if (negative)
118
+ display = display.slice(1);
119
+ display = display.padStart(decimals, "0");
120
+ let [integer, fraction] = [
121
+ display.slice(0, display.length - decimals),
122
+ display.slice(display.length - decimals)
123
+ ];
124
+ fraction = fraction.replace(/(0+)$/, "");
125
+ return `${negative ? "-" : ""}${integer || "0"}${fraction ? `.${fraction}` : ""}`;
126
+ }
127
+ var init_formatUnits = __esm({
128
+ "../node_modules/viem/_esm/utils/unit/formatUnits.js"() {
129
+ }
130
+ });
131
+
15
132
  // ../node_modules/viem/_esm/constants/abis.js
16
133
  var universalResolverErrors, erc20Abi;
17
134
  var init_abis = __esm({
@@ -352,7 +469,9 @@ var en = {
352
469
  common: {
353
470
  back: "Back",
354
471
  loading: "Loading...",
355
- cancel: "Cancel"
472
+ cancel: "Cancel",
473
+ done: "Done",
474
+ tryAgain: "Try again"
356
475
  },
357
476
  login: {
358
477
  title: "Sign in",
@@ -435,7 +554,50 @@ var en = {
435
554
  title: "My Account",
436
555
  walletAddress: "Wallet Address",
437
556
  email: "Email",
438
- logout: "Log out"
557
+ logout: "Log out",
558
+ totalBalance: "Total Balance",
559
+ noAssets: "No assets configured",
560
+ menu: {
561
+ assets: "Assets",
562
+ withdraw: "Withdraw",
563
+ payments: "Payment History",
564
+ account: "Account"
565
+ },
566
+ info: {
567
+ loginMethod: {
568
+ label: "Login Method",
569
+ email: "Email",
570
+ google: "Google",
571
+ twitter: "Twitter",
572
+ wallet: "Wallet"
573
+ },
574
+ connectedWallet: "Connected Wallet",
575
+ signerType: "Signer Type"
576
+ },
577
+ withdraw: {
578
+ title: "Withdraw",
579
+ selectToken: "Select token to withdraw",
580
+ toAddress: "Destination Address",
581
+ amount: "Amount",
582
+ available: "Available",
583
+ useConnectedWallet: "Use connected wallet",
584
+ confirm: "Confirm Withdrawal",
585
+ processing: "Processing withdrawal...",
586
+ success: "Withdrawal Successful",
587
+ sent: "sent",
588
+ failed: "Withdrawal Failed",
589
+ unknownError: "An unknown error occurred"
590
+ },
591
+ payments: {
592
+ payment: "Payment",
593
+ noPayments: "No payment history",
594
+ fetchError: "Failed to load payment history",
595
+ createdAt: "Created",
596
+ confirmedAt: "Confirmed",
597
+ token: "Token",
598
+ txHash: "Transaction",
599
+ referenceId: "Reference ID"
600
+ }
439
601
  },
440
602
  deposit: {
441
603
  selectTitle: "Select asset to deposit",
@@ -456,7 +618,26 @@ var en = {
456
618
  noAssets: "No deposit assets configured.",
457
619
  otherToken: "Deposit with another token",
458
620
  noToken: "Don't have this token?",
459
- getOtherToken: "Deposit with another token"
621
+ getOtherToken: "Deposit with another token",
622
+ // Wallet transfer
623
+ useWallet: "Use connected wallet",
624
+ walletTransfer: {
625
+ title: "Transfer from Wallet",
626
+ selectWallet: "Select wallet",
627
+ noWallets: "No wallets detected",
628
+ connecting: "Connecting...",
629
+ balance: "Balance",
630
+ amount: "Amount",
631
+ amountPlaceholder: "Enter amount",
632
+ max: "MAX",
633
+ transfer: "Transfer",
634
+ transferring: "Transferring...",
635
+ success: "Transfer successful!",
636
+ insufficientBalance: "Insufficient balance",
637
+ invalidAmount: "Invalid amount",
638
+ wrongNetwork: "Please switch to {{network}}",
639
+ switchNetwork: "Switch Network"
640
+ }
460
641
  },
461
642
  sign: {
462
643
  title: "Sign Request",
@@ -481,7 +662,9 @@ var ko = {
481
662
  common: {
482
663
  back: "\uB4A4\uB85C",
483
664
  loading: "\uB85C\uB529 \uC911...",
484
- cancel: "\uCDE8\uC18C"
665
+ cancel: "\uCDE8\uC18C",
666
+ done: "\uC644\uB8CC",
667
+ tryAgain: "\uB2E4\uC2DC \uC2DC\uB3C4"
485
668
  },
486
669
  login: {
487
670
  title: "\uB85C\uADF8\uC778",
@@ -564,7 +747,50 @@ var ko = {
564
747
  title: "\uB0B4 \uACC4\uC815",
565
748
  walletAddress: "\uC9C0\uAC11 \uC8FC\uC18C",
566
749
  email: "\uC774\uBA54\uC77C",
567
- logout: "\uB85C\uADF8\uC544\uC6C3"
750
+ logout: "\uB85C\uADF8\uC544\uC6C3",
751
+ totalBalance: "\uCD1D \uC794\uACE0",
752
+ noAssets: "\uC124\uC815\uB41C \uC790\uC0B0\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",
753
+ menu: {
754
+ assets: "\uC790\uC0B0",
755
+ withdraw: "\uCD9C\uAE08",
756
+ payments: "\uACB0\uC81C \uAE30\uB85D",
757
+ account: "\uACC4\uC815 \uC815\uBCF4"
758
+ },
759
+ info: {
760
+ loginMethod: {
761
+ label: "\uB85C\uADF8\uC778 \uBC29\uBC95",
762
+ email: "\uC774\uBA54\uC77C",
763
+ google: "\uAD6C\uAE00",
764
+ twitter: "\uD2B8\uC704\uD130",
765
+ wallet: "\uC9C0\uAC11"
766
+ },
767
+ connectedWallet: "\uC5F0\uACB0\uB41C \uC678\uBD80 \uC9C0\uAC11",
768
+ signerType: "\uC11C\uBA85 \uBC29\uC2DD"
769
+ },
770
+ withdraw: {
771
+ title: "\uCD9C\uAE08",
772
+ selectToken: "\uCD9C\uAE08\uD560 \uD1A0\uD070 \uC120\uD0DD",
773
+ toAddress: "\uBC1B\uB294 \uC8FC\uC18C",
774
+ amount: "\uAE08\uC561",
775
+ available: "\uC0AC\uC6A9 \uAC00\uB2A5",
776
+ useConnectedWallet: "\uC5F0\uACB0\uB41C \uC9C0\uAC11\uC73C\uB85C \uBCF4\uB0B4\uAE30",
777
+ confirm: "\uCD9C\uAE08 \uD655\uC778",
778
+ processing: "\uCD9C\uAE08 \uCC98\uB9AC \uC911...",
779
+ success: "\uCD9C\uAE08 \uC644\uB8CC",
780
+ sent: "\uC804\uC1A1\uB428",
781
+ failed: "\uCD9C\uAE08 \uC2E4\uD328",
782
+ unknownError: "\uC54C \uC218 \uC5C6\uB294 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4"
783
+ },
784
+ payments: {
785
+ payment: "\uACB0\uC81C",
786
+ noPayments: "\uACB0\uC81C \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",
787
+ fetchError: "\uACB0\uC81C \uAE30\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4",
788
+ createdAt: "\uC0DD\uC131\uC77C\uC2DC",
789
+ confirmedAt: "\uD655\uC815\uC77C\uC2DC",
790
+ token: "\uD1A0\uD070",
791
+ txHash: "\uD2B8\uB79C\uC7AD\uC158",
792
+ referenceId: "\uCC38\uC870 ID"
793
+ }
568
794
  },
569
795
  deposit: {
570
796
  selectTitle: "\uCDA9\uC804\uD560 \uC790\uC0B0\uC744 \uC120\uD0DD\uD558\uC138\uC694",
@@ -585,7 +811,26 @@ var ko = {
585
811
  noAssets: "\uC124\uC815\uB41C \uCDA9\uC804 \uC790\uC0B0\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
586
812
  otherToken: "\uB2E4\uB978 \uD1A0\uD070\uC73C\uB85C \uCDA9\uC804\uD558\uAE30",
587
813
  noToken: "\uC774 \uD1A0\uD070\uC774 \uC5C6\uC73C\uC2E0\uAC00\uC694?",
588
- getOtherToken: "\uB2E4\uB978 \uD1A0\uD070\uC73C\uB85C \uC785\uAE08\uD558\uAE30"
814
+ getOtherToken: "\uB2E4\uB978 \uD1A0\uD070\uC73C\uB85C \uC785\uAE08\uD558\uAE30",
815
+ // Wallet transfer
816
+ useWallet: "\uC5F0\uACB0\uB41C \uC9C0\uAC11\uC73C\uB85C \uC785\uAE08",
817
+ walletTransfer: {
818
+ title: "\uC9C0\uAC11\uC5D0\uC11C \uC804\uC1A1",
819
+ selectWallet: "\uC9C0\uAC11 \uC120\uD0DD",
820
+ noWallets: "\uAC10\uC9C0\uB41C \uC9C0\uAC11\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",
821
+ connecting: "\uC5F0\uACB0 \uC911...",
822
+ balance: "\uC794\uACE0",
823
+ amount: "\uAE08\uC561",
824
+ amountPlaceholder: "\uAE08\uC561 \uC785\uB825",
825
+ max: "\uCD5C\uB300",
826
+ transfer: "\uC804\uC1A1",
827
+ transferring: "\uC804\uC1A1 \uC911...",
828
+ success: "\uC804\uC1A1 \uC644\uB8CC!",
829
+ insufficientBalance: "\uC794\uACE0 \uBD80\uC871",
830
+ invalidAmount: "\uC798\uBABB\uB41C \uAE08\uC561",
831
+ wrongNetwork: "{{network}}\uB85C \uB124\uD2B8\uC6CC\uD06C\uB97C \uBCC0\uACBD\uD574\uC8FC\uC138\uC694",
832
+ switchNetwork: "\uB124\uD2B8\uC6CC\uD06C \uBCC0\uACBD"
833
+ }
589
834
  },
590
835
  sign: {
591
836
  title: "\uC11C\uBA85 \uC694\uCCAD",
@@ -736,7 +981,7 @@ function useMediaQuery(query) {
736
981
  }
737
982
 
738
983
  // src/generated/volr-sdk-css.ts
739
- var VOLR_SDK_CSS = '/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--volr-tw-translate-x:0;--volr-tw-translate-y:0;--volr-tw-translate-z:0;--volr-tw-space-y-reverse:0;--volr-tw-border-style:solid;--volr-tw-gradient-position:initial;--volr-tw-gradient-from:#0000;--volr-tw-gradient-via:#0000;--volr-tw-gradient-to:#0000;--volr-tw-gradient-stops:initial;--volr-tw-gradient-via-stops:initial;--volr-tw-gradient-from-position:0%;--volr-tw-gradient-via-position:50%;--volr-tw-gradient-to-position:100%;--volr-tw-leading:initial;--volr-tw-font-weight:initial;--volr-tw-tracking:initial;--volr-tw-shadow:0 0 #0000;--volr-tw-shadow-color:initial;--volr-tw-shadow-alpha:100%;--volr-tw-inset-shadow:0 0 #0000;--volr-tw-inset-shadow-color:initial;--volr-tw-inset-shadow-alpha:100%;--volr-tw-ring-color:initial;--volr-tw-ring-shadow:0 0 #0000;--volr-tw-inset-ring-color:initial;--volr-tw-inset-ring-shadow:0 0 #0000;--volr-tw-ring-inset:initial;--volr-tw-ring-offset-width:0px;--volr-tw-ring-offset-color:#fff;--volr-tw-ring-offset-shadow:0 0 #0000;--volr-tw-blur:initial;--volr-tw-brightness:initial;--volr-tw-contrast:initial;--volr-tw-grayscale:initial;--volr-tw-hue-rotate:initial;--volr-tw-invert:initial;--volr-tw-opacity:initial;--volr-tw-saturate:initial;--volr-tw-sepia:initial;--volr-tw-drop-shadow:initial;--volr-tw-drop-shadow-color:initial;--volr-tw-drop-shadow-alpha:100%;--volr-tw-drop-shadow-size:initial;--volr-tw-duration:initial;--volr-tw-ease:initial}}}@layer theme{:root,:host{--volr-font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--volr-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--volr-color-red-50:oklch(97.1% .013 17.38);--volr-color-red-200:oklch(88.5% .062 18.334);--volr-color-red-500:oklch(63.7% .237 25.331);--volr-color-red-600:oklch(57.7% .245 27.325);--volr-color-red-700:oklch(50.5% .213 27.518);--volr-color-green-50:oklch(98.2% .018 155.826);--volr-color-green-600:oklch(62.7% .194 149.214);--volr-color-emerald-300:oklch(84.5% .143 164.978);--volr-color-emerald-400:oklch(76.5% .177 163.223);--volr-color-emerald-500:oklch(69.6% .17 162.48);--volr-color-emerald-600:oklch(59.6% .145 163.225);--volr-color-teal-400:oklch(77.7% .152 181.912);--volr-color-teal-500:oklch(70.4% .14 182.503);--volr-color-cyan-400:oklch(78.9% .154 211.53);--volr-color-slate-50:oklch(98.4% .003 247.858);--volr-color-slate-100:oklch(96.8% .007 247.896);--volr-color-slate-200:oklch(92.9% .013 255.508);--volr-color-slate-300:oklch(86.9% .022 252.894);--volr-color-slate-400:oklch(70.4% .04 256.788);--volr-color-slate-500:oklch(55.4% .046 257.417);--volr-color-slate-600:oklch(44.6% .043 257.281);--volr-color-slate-700:oklch(37.2% .044 257.287);--volr-color-slate-900:oklch(20.8% .042 265.755);--volr-color-gray-500:oklch(55.1% .027 264.364);--volr-color-black:#000;--volr-color-white:#fff;--volr-spacing:.25rem;--volr-container-md:28rem;--volr-container-4xl:56rem;--volr-text-xs:.75rem;--volr-text-xs--line-height:calc(1/.75);--volr-text-sm:.875rem;--volr-text-sm--line-height:calc(1.25/.875);--volr-text-base:1rem;--volr-text-base--line-height:calc(1.5/1);--volr-text-lg:1.125rem;--volr-text-lg--line-height:calc(1.75/1.125);--volr-text-xl:1.25rem;--volr-text-xl--line-height:calc(1.75/1.25);--volr-text-2xl:1.5rem;--volr-text-2xl--line-height:calc(2/1.5);--volr-text-8xl:6rem;--volr-text-8xl--line-height:1;--volr-font-weight-medium:500;--volr-font-weight-semibold:600;--volr-font-weight-bold:700;--volr-tracking-wide:.025em;--volr-leading-relaxed:1.625;--volr-radius-md:.375rem;--volr-radius-lg:.5rem;--volr-radius-xl:.75rem;--volr-radius-2xl:1rem;--volr-radius-3xl:1.5rem;--volr-ease-out:cubic-bezier(0,0,.2,1);--volr-animate-spin:spin 1s linear infinite;--volr-animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--volr-blur-2xl:40px;--volr-default-transition-duration:.15s;--volr-default-transition-timing-function:cubic-bezier(.4,0,.2,1);--volr-default-font-family:var(--volr-font-sans);--volr-default-mono-font-family:var(--volr-font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--volr-default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--volr-default-font-feature-settings,normal);font-variation-settings:var(--volr-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--volr-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--volr-default-mono-font-feature-settings,normal);font-variation-settings:var(--volr-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:host{--volr-primary-color:var(--volr-accent-color,#303030);--volr-font-family:var(--volr-custom-font,inherit);--volr-bg:#fff;--volr-bg-secondary:#f8fafc;--volr-bg-tertiary:#f1f5f9;--volr-text:#0f172a;--volr-text-secondary:#475569;--volr-text-muted:#94a3b8;--volr-border:#e2e8f0;--volr-border-strong:#cbd5e1;--volr-hover-bg:#f8fafc;--volr-error-bg:#fef2f2;--volr-error-border:#fecaca;--volr-error-text:#991b1b}:host([data-theme=dark]){--volr-bg:#1c1c1e;--volr-bg-secondary:#2c2c2e;--volr-bg-tertiary:#3a3a3c;--volr-text:#f5f5f7;--volr-text-secondary:#c7c7cc;--volr-text-muted:#8e8e93;--volr-border:#3a3a3c;--volr-border-strong:#48484a;--volr-hover-bg:#2c2c2e;--volr-error-bg:#3c1f1f;--volr-error-border:#7f1d1d;--volr-error-text:#fca5a5}*,:before,:after{box-sizing:border-box}*{font-family:var(--volr-font-family);color:var(--volr-text)}button,input,select,textarea{color:var(--volr-text);background-color:#0000}button{cursor:pointer;background-color:#0000}input::placeholder{color:var(--volr-text-muted)}h1,h2,h3{color:var(--volr-text);margin:0;font-weight:700}h1{font-size:1.875rem;line-height:2.25rem}h2{font-size:1.5rem;line-height:2rem}h3{font-size:1.25rem;line-height:1.75rem}p{margin:0}}@layer components{.volr-dialog-overlay{inset:calc(var(--volr-spacing)*0);z-index:40;background-color:var(--volr-color-black);position:fixed}@supports (color:color-mix(in lab, red, red)){.volr-dialog-overlay{background-color:color-mix(in oklab,var(--volr-color-black)45%,transparent)}}.volr-dialog-content{z-index:50;border-radius:var(--volr-radius-2xl);border-style:var(--volr-tw-border-style);padding:calc(var(--volr-spacing)*7);--volr-tw-shadow:0 20px 25px -5px var(--volr-tw-shadow-color,#0000001a),0 8px 10px -6px var(--volr-tw-shadow-color,#0000001a);box-shadow:var(--volr-tw-inset-shadow),var(--volr-tw-inset-ring-shadow),var(--volr-tw-ring-offset-shadow),var(--volr-tw-ring-shadow),var(--volr-tw-shadow);background-color:var(--volr-bg);border-width:1px;border-color:var(--volr-border-strong);width:calc(100% - 2rem);max-width:28rem;max-height:85vh;position:fixed;top:50%;left:50%;overflow-y:auto;transform:translate(-50%,-50%)}@media (max-width:640px){.volr-dialog-content{top:auto;right:calc(var(--volr-spacing)*0);bottom:calc(var(--volr-spacing)*0);left:calc(var(--volr-spacing)*0);border-radius:1.25rem 1.25rem 0 0;width:100%;max-width:100%;margin:0 auto;transform:translateY(0)}}.volr-dialog-close{top:calc(var(--volr-spacing)*4);right:calc(var(--volr-spacing)*4);height:calc(var(--volr-spacing)*8);width:calc(var(--volr-spacing)*8);color:var(--volr-text-muted);cursor:pointer;background-color:#0000;border:none;border-radius:3.40282e38px;justify-content:center;align-items:center;display:inline-flex;position:absolute}.volr-dialog-close:hover{background-color:var(--volr-hover-bg);color:var(--volr-text-secondary)}.volr-dialog-close:focus-visible{box-shadow:0 0 0 2px var(--volr-border-strong);outline:none}.volr-dialog-close-icon{height:calc(var(--volr-spacing)*4);width:calc(var(--volr-spacing)*4)}.volr-email-input{border:1px solid var(--volr-border-strong);background-color:var(--volr-bg);width:100%;color:var(--volr-text);border-radius:.5rem;outline:none;padding:.75rem .75rem .75rem 2.75rem;font-size:1rem;line-height:1.5}.volr-email-input::placeholder{color:var(--volr-text-muted)}.volr-email-input:focus{border-color:var(--volr-border-strong);box-shadow:0 0 0 2px var(--volr-border-strong)}.volr-option-button{border:1px solid var(--volr-border);background-color:var(--volr-bg);width:100%;color:var(--volr-text);cursor:pointer;border-radius:.5rem;align-items:center;gap:.75rem;padding:.75rem;transition:background-color .15s ease-out,border-color .15s ease-out,box-shadow .15s ease-out;display:flex}.volr-option-button:hover{background-color:var(--volr-hover-bg);border-color:var(--volr-border)}.volr-option-button:focus-visible{box-shadow:0 0 0 2px var(--volr-border-strong);outline:none}}@layer utilities{.volr\\:pointer-events-auto{pointer-events:auto}.volr\\:pointer-events-none{pointer-events:none}.volr\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.volr\\:absolute{position:absolute}.volr\\:fixed{position:fixed}.volr\\:relative{position:relative}.volr\\:inset-0{inset:calc(var(--volr-spacing)*0)}.volr\\:-top-3{top:calc(var(--volr-spacing)*-3)}.volr\\:top-1\\/2{top:50%}.volr\\:-right-3{right:calc(var(--volr-spacing)*-3)}.volr\\:-right-4{right:calc(var(--volr-spacing)*-4)}.volr\\:right-2{right:calc(var(--volr-spacing)*2)}.volr\\:bottom-0{bottom:calc(var(--volr-spacing)*0)}.volr\\:-left-4{left:calc(var(--volr-spacing)*-4)}.volr\\:left-3{left:calc(var(--volr-spacing)*3)}.volr\\:-z-10{z-index:calc(10*-1)}.volr\\:z-10{z-index:10}.volr\\:z-20{z-index:20}.volr\\:z-40{z-index:40}.volr\\:z-50{z-index:50}.volr\\:mx-auto{margin-inline:auto}.volr\\:my-6{margin-block:calc(var(--volr-spacing)*6)}.volr\\:mt-0\\.5{margin-top:calc(var(--volr-spacing)*.5)}.volr\\:mt-1{margin-top:calc(var(--volr-spacing)*1)}.volr\\:mt-2{margin-top:calc(var(--volr-spacing)*2)}.volr\\:mt-3{margin-top:calc(var(--volr-spacing)*3)}.volr\\:mt-4{margin-top:calc(var(--volr-spacing)*4)}.volr\\:mt-6{margin-top:calc(var(--volr-spacing)*6)}.volr\\:mt-8{margin-top:calc(var(--volr-spacing)*8)}.volr\\:mb-1{margin-bottom:calc(var(--volr-spacing)*1)}.volr\\:mb-2{margin-bottom:calc(var(--volr-spacing)*2)}.volr\\:mb-3{margin-bottom:calc(var(--volr-spacing)*3)}.volr\\:mb-4{margin-bottom:calc(var(--volr-spacing)*4)}.volr\\:mb-5{margin-bottom:calc(var(--volr-spacing)*5)}.volr\\:mb-6{margin-bottom:calc(var(--volr-spacing)*6)}.volr\\:mb-8{margin-bottom:calc(var(--volr-spacing)*8)}.volr\\:-ml-2{margin-left:calc(var(--volr-spacing)*-2)}.volr\\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.volr\\:flex{display:flex}.volr\\:grid{display:grid}.volr\\:inline-block{display:inline-block}.volr\\:inline-flex{display:inline-flex}.volr\\:h-1{height:calc(var(--volr-spacing)*1)}.volr\\:h-1\\.5{height:calc(var(--volr-spacing)*1.5)}.volr\\:h-2{height:calc(var(--volr-spacing)*2)}.volr\\:h-3{height:calc(var(--volr-spacing)*3)}.volr\\:h-4{height:calc(var(--volr-spacing)*4)}.volr\\:h-5{height:calc(var(--volr-spacing)*5)}.volr\\:h-6{height:calc(var(--volr-spacing)*6)}.volr\\:h-7{height:calc(var(--volr-spacing)*7)}.volr\\:h-8{height:calc(var(--volr-spacing)*8)}.volr\\:h-10{height:calc(var(--volr-spacing)*10)}.volr\\:h-12{height:calc(var(--volr-spacing)*12)}.volr\\:h-14{height:calc(var(--volr-spacing)*14)}.volr\\:h-16{height:calc(var(--volr-spacing)*16)}.volr\\:h-20{height:calc(var(--volr-spacing)*20)}.volr\\:h-24{height:calc(var(--volr-spacing)*24)}.volr\\:h-40{height:calc(var(--volr-spacing)*40)}.volr\\:h-44{height:calc(var(--volr-spacing)*44)}.volr\\:h-48{height:calc(var(--volr-spacing)*48)}.volr\\:h-\\[0\\.8em\\]{height:.8em}.volr\\:h-\\[200px\\]{height:200px}.volr\\:h-full{height:100%}.volr\\:h-px{height:1px}.volr\\:max-h-36{max-height:calc(var(--volr-spacing)*36)}.volr\\:max-h-48{max-height:calc(var(--volr-spacing)*48)}.volr\\:max-h-60{max-height:calc(var(--volr-spacing)*60)}.volr\\:max-h-64{max-height:calc(var(--volr-spacing)*64)}.volr\\:max-h-96{max-height:calc(var(--volr-spacing)*96)}.volr\\:max-h-\\[85vh\\]{max-height:85vh}.volr\\:max-h-\\[90vh\\]{max-height:90vh}.volr\\:min-h-\\[120px\\]{min-height:120px}.volr\\:min-h-\\[500px\\]{min-height:500px}.volr\\:w-1\\.5{width:calc(var(--volr-spacing)*1.5)}.volr\\:w-2{width:calc(var(--volr-spacing)*2)}.volr\\:w-3{width:calc(var(--volr-spacing)*3)}.volr\\:w-4{width:calc(var(--volr-spacing)*4)}.volr\\:w-5{width:calc(var(--volr-spacing)*5)}.volr\\:w-6{width:calc(var(--volr-spacing)*6)}.volr\\:w-7{width:calc(var(--volr-spacing)*7)}.volr\\:w-8{width:calc(var(--volr-spacing)*8)}.volr\\:w-10{width:calc(var(--volr-spacing)*10)}.volr\\:w-12{width:calc(var(--volr-spacing)*12)}.volr\\:w-14{width:calc(var(--volr-spacing)*14)}.volr\\:w-16{width:calc(var(--volr-spacing)*16)}.volr\\:w-20{width:calc(var(--volr-spacing)*20)}.volr\\:w-24{width:calc(var(--volr-spacing)*24)}.volr\\:w-32{width:calc(var(--volr-spacing)*32)}.volr\\:w-36{width:calc(var(--volr-spacing)*36)}.volr\\:w-40{width:calc(var(--volr-spacing)*40)}.volr\\:w-44{width:calc(var(--volr-spacing)*44)}.volr\\:w-48{width:calc(var(--volr-spacing)*48)}.volr\\:w-\\[200px\\]{width:200px}.volr\\:w-auto{width:auto}.volr\\:w-full{width:100%}.volr\\:max-w-4xl{max-width:var(--volr-container-4xl)}.volr\\:max-w-full{max-width:100%}.volr\\:max-w-md{max-width:var(--volr-container-md)}.volr\\:max-w-none{max-width:none}.volr\\:min-w-0{min-width:calc(var(--volr-spacing)*0)}.volr\\:flex-1{flex:1}.volr\\:flex-shrink-0,.volr\\:shrink-0{flex-shrink:0}.volr\\:-translate-y-1\\/2{--volr-tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--volr-tw-translate-x)var(--volr-tw-translate-y)}.volr\\:rotate-90{rotate:90deg}.volr\\:rotate-180{rotate:180deg}.volr\\:animate-\\[volrFadeIn_0\\.2s_ease-out\\]{animation:.2s ease-out volrFadeIn}.volr\\:animate-pulse{animation:var(--volr-animate-pulse)}.volr\\:animate-spin{animation:var(--volr-animate-spin)}.volr\\:cursor-not-allowed{cursor:not-allowed}.volr\\:cursor-pointer{cursor:pointer}.volr\\:list-inside{list-style-position:inside}.volr\\:list-decimal{list-style-type:decimal}.volr\\:grid-cols-\\[minmax\\(0\\,1\\.1fr\\)_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.volr\\:flex-col{flex-direction:column}.volr\\:items-baseline{align-items:baseline}.volr\\:items-center{align-items:center}.volr\\:items-end{align-items:flex-end}.volr\\:items-start{align-items:flex-start}.volr\\:justify-between{justify-content:space-between}.volr\\:justify-center{justify-content:center}.volr\\:gap-1{gap:calc(var(--volr-spacing)*1)}.volr\\:gap-2{gap:calc(var(--volr-spacing)*2)}.volr\\:gap-3{gap:calc(var(--volr-spacing)*3)}.volr\\:gap-4{gap:calc(var(--volr-spacing)*4)}:where(.volr\\:space-y-1>:not(:last-child)){--volr-tw-space-y-reverse:0;margin-block-start:calc(calc(var(--volr-spacing)*1)*var(--volr-tw-space-y-reverse));margin-block-end:calc(calc(var(--volr-spacing)*1)*calc(1 - var(--volr-tw-space-y-reverse)))}:where(.volr\\:space-y-2>:not(:last-child)){--volr-tw-space-y-reverse:0;margin-block-start:calc(calc(var(--volr-spacing)*2)*var(--volr-tw-space-y-reverse));margin-block-end:calc(calc(var(--volr-spacing)*2)*calc(1 - var(--volr-tw-space-y-reverse)))}:where(.volr\\:space-y-3>:not(:last-child)){--volr-tw-space-y-reverse:0;margin-block-start:calc(calc(var(--volr-spacing)*3)*var(--volr-tw-space-y-reverse));margin-block-end:calc(calc(var(--volr-spacing)*3)*calc(1 - var(--volr-tw-space-y-reverse)))}:where(.volr\\:space-y-4>:not(:last-child)){--volr-tw-space-y-reverse:0;margin-block-start:calc(calc(var(--volr-spacing)*4)*var(--volr-tw-space-y-reverse));margin-block-end:calc(calc(var(--volr-spacing)*4)*calc(1 - var(--volr-tw-space-y-reverse)))}:where(.volr\\:space-y-6>:not(:last-child)){--volr-tw-space-y-reverse:0;margin-block-start:calc(calc(var(--volr-spacing)*6)*var(--volr-tw-space-y-reverse));margin-block-end:calc(calc(var(--volr-spacing)*6)*calc(1 - var(--volr-tw-space-y-reverse)))}:where(.volr\\:space-y-8>:not(:last-child)){--volr-tw-space-y-reverse:0;margin-block-start:calc(calc(var(--volr-spacing)*8)*var(--volr-tw-space-y-reverse));margin-block-end:calc(calc(var(--volr-spacing)*8)*calc(1 - var(--volr-tw-space-y-reverse)))}.volr\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.volr\\:overflow-auto{overflow:auto}.volr\\:overflow-hidden{overflow:hidden}.volr\\:overflow-visible{overflow:visible}.volr\\:overflow-x-auto{overflow-x:auto}.volr\\:overflow-y-auto{overflow-y:auto}.volr\\:rounded{border-radius:.25rem}.volr\\:rounded-2xl{border-radius:var(--volr-radius-2xl)}.volr\\:rounded-full{border-radius:3.40282e38px}.volr\\:rounded-lg{border-radius:var(--volr-radius-lg)}.volr\\:rounded-md{border-radius:var(--volr-radius-md)}.volr\\:rounded-xl{border-radius:var(--volr-radius-xl)}.volr\\:rounded-t-2xl{border-top-left-radius:var(--volr-radius-2xl);border-top-right-radius:var(--volr-radius-2xl)}.volr\\:rounded-t-3xl{border-top-left-radius:var(--volr-radius-3xl);border-top-right-radius:var(--volr-radius-3xl)}.volr\\:border{border-style:var(--volr-tw-border-style);border-width:1px}.volr\\:border-2{border-style:var(--volr-tw-border-style);border-width:2px}.volr\\:border-4{border-style:var(--volr-tw-border-style);border-width:4px}.volr\\:border-t{border-top-style:var(--volr-tw-border-style);border-top-width:1px}.volr\\:border-t-2{border-top-style:var(--volr-tw-border-style);border-top-width:2px}.volr\\:border-b{border-bottom-style:var(--volr-tw-border-style);border-bottom-width:1px}.volr\\:border-red-200{border-color:var(--volr-color-red-200)}.volr\\:border-slate-200{border-color:var(--volr-color-slate-200)}.volr\\:border-slate-300{border-color:var(--volr-color-slate-300)}.volr\\:border-white{border-color:var(--volr-color-white)}.volr\\:border-t-slate-600{border-top-color:var(--volr-color-slate-600)}.volr\\:bg-black\\/45{background-color:var(--volr-color-black)}@supports (color:color-mix(in lab, red, red)){.volr\\:bg-black\\/45{background-color:color-mix(in oklab,var(--volr-color-black)45%,transparent)}}.volr\\:bg-cyan-400{background-color:var(--volr-color-cyan-400)}.volr\\:bg-emerald-300{background-color:var(--volr-color-emerald-300)}.volr\\:bg-emerald-400{background-color:var(--volr-color-emerald-400)}.volr\\:bg-green-50{background-color:var(--volr-color-green-50)}.volr\\:bg-red-50{background-color:var(--volr-color-red-50)}.volr\\:bg-slate-50{background-color:var(--volr-color-slate-50)}.volr\\:bg-slate-100{background-color:var(--volr-color-slate-100)}.volr\\:bg-slate-200{background-color:var(--volr-color-slate-200)}.volr\\:bg-slate-900{background-color:var(--volr-color-slate-900)}.volr\\:bg-teal-400{background-color:var(--volr-color-teal-400)}.volr\\:bg-white{background-color:var(--volr-color-white)}.volr\\:bg-linear-to-br{--volr-tw-gradient-position:to bottom right}@supports (background-image:linear-gradient(in lab, red, red)){.volr\\:bg-linear-to-br{--volr-tw-gradient-position:to bottom right in oklab}}.volr\\:bg-linear-to-br{background-image:linear-gradient(var(--volr-tw-gradient-stops))}.volr\\:from-emerald-400{--volr-tw-gradient-from:var(--volr-color-emerald-400);--volr-tw-gradient-stops:var(--volr-tw-gradient-via-stops,var(--volr-tw-gradient-position),var(--volr-tw-gradient-from)var(--volr-tw-gradient-from-position),var(--volr-tw-gradient-to)var(--volr-tw-gradient-to-position))}.volr\\:from-emerald-500{--volr-tw-gradient-from:var(--volr-color-emerald-500);--volr-tw-gradient-stops:var(--volr-tw-gradient-via-stops,var(--volr-tw-gradient-position),var(--volr-tw-gradient-from)var(--volr-tw-gradient-from-position),var(--volr-tw-gradient-to)var(--volr-tw-gradient-to-position))}.volr\\:to-teal-500{--volr-tw-gradient-to:var(--volr-color-teal-500);--volr-tw-gradient-stops:var(--volr-tw-gradient-via-stops,var(--volr-tw-gradient-position),var(--volr-tw-gradient-from)var(--volr-tw-gradient-from-position),var(--volr-tw-gradient-to)var(--volr-tw-gradient-to-position))}.volr\\:object-cover{object-fit:cover}.volr\\:p-1{padding:calc(var(--volr-spacing)*1)}.volr\\:p-2{padding:calc(var(--volr-spacing)*2)}.volr\\:p-3{padding:calc(var(--volr-spacing)*3)}.volr\\:p-4{padding:calc(var(--volr-spacing)*4)}.volr\\:p-5{padding:calc(var(--volr-spacing)*5)}.volr\\:p-8{padding:calc(var(--volr-spacing)*8)}.volr\\:px-1\\.5{padding-inline:calc(var(--volr-spacing)*1.5)}.volr\\:px-2{padding-inline:calc(var(--volr-spacing)*2)}.volr\\:px-3{padding-inline:calc(var(--volr-spacing)*3)}.volr\\:px-4{padding-inline:calc(var(--volr-spacing)*4)}.volr\\:py-0\\.5{padding-block:calc(var(--volr-spacing)*.5)}.volr\\:py-1\\.5{padding-block:calc(var(--volr-spacing)*1.5)}.volr\\:py-2{padding-block:calc(var(--volr-spacing)*2)}.volr\\:py-2\\.5{padding-block:calc(var(--volr-spacing)*2.5)}.volr\\:py-3{padding-block:calc(var(--volr-spacing)*3)}.volr\\:py-4{padding-block:calc(var(--volr-spacing)*4)}.volr\\:py-6{padding-block:calc(var(--volr-spacing)*6)}.volr\\:py-8{padding-block:calc(var(--volr-spacing)*8)}.volr\\:py-12{padding-block:calc(var(--volr-spacing)*12)}.volr\\:pt-2{padding-top:calc(var(--volr-spacing)*2)}.volr\\:pt-3{padding-top:calc(var(--volr-spacing)*3)}.volr\\:pt-4{padding-top:calc(var(--volr-spacing)*4)}.volr\\:pr-3{padding-right:calc(var(--volr-spacing)*3)}.volr\\:pb-2{padding-bottom:calc(var(--volr-spacing)*2)}.volr\\:pb-4{padding-bottom:calc(var(--volr-spacing)*4)}.volr\\:pl-11{padding-left:calc(var(--volr-spacing)*11)}.volr\\:text-center{text-align:center}.volr\\:text-left{text-align:left}.volr\\:text-right{text-align:right}.volr\\:align-baseline{vertical-align:baseline}.volr\\:font-mono{font-family:var(--volr-font-mono)}.volr\\:text-2xl{font-size:var(--volr-text-2xl);line-height:var(--volr-tw-leading,var(--volr-text-2xl--line-height))}.volr\\:text-8xl{font-size:var(--volr-text-8xl);line-height:var(--volr-tw-leading,var(--volr-text-8xl--line-height))}.volr\\:text-base{font-size:var(--volr-text-base);line-height:var(--volr-tw-leading,var(--volr-text-base--line-height))}.volr\\:text-lg{font-size:var(--volr-text-lg);line-height:var(--volr-tw-leading,var(--volr-text-lg--line-height))}.volr\\:text-sm{font-size:var(--volr-text-sm);line-height:var(--volr-tw-leading,var(--volr-text-sm--line-height))}.volr\\:text-xl{font-size:var(--volr-text-xl);line-height:var(--volr-tw-leading,var(--volr-text-xl--line-height))}.volr\\:text-xs{font-size:var(--volr-text-xs);line-height:var(--volr-tw-leading,var(--volr-text-xs--line-height))}.volr\\:leading-relaxed{--volr-tw-leading:var(--volr-leading-relaxed);line-height:var(--volr-leading-relaxed)}.volr\\:font-bold{--volr-tw-font-weight:var(--volr-font-weight-bold);font-weight:var(--volr-font-weight-bold)}.volr\\:font-medium{--volr-tw-font-weight:var(--volr-font-weight-medium);font-weight:var(--volr-font-weight-medium)}.volr\\:font-semibold{--volr-tw-font-weight:var(--volr-font-weight-semibold);font-weight:var(--volr-font-weight-semibold)}.volr\\:tracking-wide{--volr-tw-tracking:var(--volr-tracking-wide);letter-spacing:var(--volr-tracking-wide)}.volr\\:break-all{word-break:break-all}.volr\\:text-emerald-600{color:var(--volr-color-emerald-600)}.volr\\:text-gray-500{color:var(--volr-color-gray-500)}.volr\\:text-green-600{color:var(--volr-color-green-600)}.volr\\:text-red-500{color:var(--volr-color-red-500)}.volr\\:text-red-600{color:var(--volr-color-red-600)}.volr\\:text-red-700{color:var(--volr-color-red-700)}.volr\\:text-slate-100{color:var(--volr-color-slate-100)}.volr\\:text-slate-400{color:var(--volr-color-slate-400)}.volr\\:text-slate-500{color:var(--volr-color-slate-500)}.volr\\:text-slate-600{color:var(--volr-color-slate-600)}.volr\\:text-slate-700{color:var(--volr-color-slate-700)}.volr\\:text-slate-900{color:var(--volr-color-slate-900)}.volr\\:text-white{color:var(--volr-color-white)}.volr\\:capitalize{text-transform:capitalize}.volr\\:uppercase{text-transform:uppercase}.volr\\:underline{text-decoration-line:underline}.volr\\:opacity-0{opacity:0}.volr\\:opacity-25{opacity:.25}.volr\\:opacity-30{opacity:.3}.volr\\:opacity-50{opacity:.5}.volr\\:opacity-75{opacity:.75}.volr\\:shadow-2xl{--volr-tw-shadow:0 25px 50px -12px var(--volr-tw-shadow-color,#00000040);box-shadow:var(--volr-tw-inset-shadow),var(--volr-tw-inset-ring-shadow),var(--volr-tw-ring-offset-shadow),var(--volr-tw-ring-shadow),var(--volr-tw-shadow)}.volr\\:shadow-\\[0_-8px_30px_rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--volr-tw-shadow:0 -8px 30px var(--volr-tw-shadow-color,#0003);box-shadow:var(--volr-tw-inset-shadow),var(--volr-tw-inset-ring-shadow),var(--volr-tw-ring-offset-shadow),var(--volr-tw-ring-shadow),var(--volr-tw-shadow)}.volr\\:shadow-lg{--volr-tw-shadow:0 10px 15px -3px var(--volr-tw-shadow-color,#0000001a),0 4px 6px -4px var(--volr-tw-shadow-color,#0000001a);box-shadow:var(--volr-tw-inset-shadow),var(--volr-tw-inset-ring-shadow),var(--volr-tw-ring-offset-shadow),var(--volr-tw-ring-shadow),var(--volr-tw-shadow)}.volr\\:shadow-md{--volr-tw-shadow:0 4px 6px -1px var(--volr-tw-shadow-color,#0000001a),0 2px 4px -2px var(--volr-tw-shadow-color,#0000001a);box-shadow:var(--volr-tw-inset-shadow),var(--volr-tw-inset-ring-shadow),var(--volr-tw-ring-offset-shadow),var(--volr-tw-ring-shadow),var(--volr-tw-shadow)}.volr\\:shadow-sm{--volr-tw-shadow:0 1px 3px 0 var(--volr-tw-shadow-color,#0000001a),0 1px 2px -1px var(--volr-tw-shadow-color,#0000001a);box-shadow:var(--volr-tw-inset-shadow),var(--volr-tw-inset-ring-shadow),var(--volr-tw-ring-offset-shadow),var(--volr-tw-ring-shadow),var(--volr-tw-shadow)}.volr\\:shadow-xl{--volr-tw-shadow:0 20px 25px -5px var(--volr-tw-shadow-color,#0000001a),0 8px 10px -6px var(--volr-tw-shadow-color,#0000001a);box-shadow:var(--volr-tw-inset-shadow),var(--volr-tw-inset-ring-shadow),var(--volr-tw-ring-offset-shadow),var(--volr-tw-ring-shadow),var(--volr-tw-shadow)}.volr\\:shadow-emerald-500\\/50{--volr-tw-shadow-color:var(--volr-color-emerald-500)}@supports (color:color-mix(in lab, red, red)){.volr\\:shadow-emerald-500\\/50{--volr-tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--volr-color-emerald-500)50%,transparent)var(--volr-tw-shadow-alpha),transparent)}}.volr\\:blur-2xl{--volr-tw-blur:blur(var(--volr-blur-2xl));filter:var(--volr-tw-blur,)var(--volr-tw-brightness,)var(--volr-tw-contrast,)var(--volr-tw-grayscale,)var(--volr-tw-hue-rotate,)var(--volr-tw-invert,)var(--volr-tw-saturate,)var(--volr-tw-sepia,)var(--volr-tw-drop-shadow,)}.volr\\:transition-all{transition-property:all;transition-timing-function:var(--volr-tw-ease,var(--volr-default-transition-timing-function));transition-duration:var(--volr-tw-duration,var(--volr-default-transition-duration))}.volr\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--volr-tw-gradient-from,--volr-tw-gradient-via,--volr-tw-gradient-to;transition-timing-function:var(--volr-tw-ease,var(--volr-default-transition-timing-function));transition-duration:var(--volr-tw-duration,var(--volr-default-transition-duration))}.volr\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--volr-tw-ease,var(--volr-default-transition-timing-function));transition-duration:var(--volr-tw-duration,var(--volr-default-transition-duration))}.volr\\:duration-300{--volr-tw-duration:.3s;transition-duration:.3s}.volr\\:duration-500{--volr-tw-duration:.5s;transition-duration:.5s}.volr\\:ease-out{--volr-tw-ease:var(--volr-ease-out);transition-timing-function:var(--volr-ease-out)}.volr\\:outline-none{--volr-tw-outline-style:none;outline-style:none}@media (hover:hover){.volr\\:hover\\:border-slate-300:hover{border-color:var(--volr-color-slate-300)}.volr\\:hover\\:bg-slate-50:hover{background-color:var(--volr-color-slate-50)}.volr\\:hover\\:text-slate-700:hover{color:var(--volr-color-slate-700)}}.volr\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.volr\\:disabled\\:opacity-50:disabled{opacity:.5}.volr-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.volr-text-secondary{color:var(--volr-text-secondary)}.volr-text-muted{color:var(--volr-text-muted)}.volr-bg-secondary{background-color:var(--volr-bg-secondary)}.volr-bg-tertiary{background-color:var(--volr-bg-tertiary)}.volr-border{border-color:var(--volr-border)}.volr-border-strong{border-color:var(--volr-border-strong)}.volr-divider-line{background-color:var(--volr-border)}.volr-error{background-color:var(--volr-error-bg);border-color:var(--volr-error-border);color:var(--volr-error-text)}.volr-hover:hover{background-color:var(--volr-hover-bg)}.volr-surface{background-color:var(--volr-bg)}}@property --volr-tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --volr-tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --volr-tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --volr-tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --volr-tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --volr-tw-gradient-position{syntax:"*";inherits:false}@property --volr-tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --volr-tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --volr-tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --volr-tw-gradient-stops{syntax:"*";inherits:false}@property --volr-tw-gradient-via-stops{syntax:"*";inherits:false}@property --volr-tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --volr-tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --volr-tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --volr-tw-leading{syntax:"*";inherits:false}@property --volr-tw-font-weight{syntax:"*";inherits:false}@property --volr-tw-tracking{syntax:"*";inherits:false}@property --volr-tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --volr-tw-shadow-color{syntax:"*";inherits:false}@property --volr-tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --volr-tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --volr-tw-inset-shadow-color{syntax:"*";inherits:false}@property --volr-tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --volr-tw-ring-color{syntax:"*";inherits:false}@property --volr-tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --volr-tw-inset-ring-color{syntax:"*";inherits:false}@property --volr-tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --volr-tw-ring-inset{syntax:"*";inherits:false}@property --volr-tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --volr-tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --volr-tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --volr-tw-blur{syntax:"*";inherits:false}@property --volr-tw-brightness{syntax:"*";inherits:false}@property --volr-tw-contrast{syntax:"*";inherits:false}@property --volr-tw-grayscale{syntax:"*";inherits:false}@property --volr-tw-hue-rotate{syntax:"*";inherits:false}@property --volr-tw-invert{syntax:"*";inherits:false}@property --volr-tw-opacity{syntax:"*";inherits:false}@property --volr-tw-saturate{syntax:"*";inherits:false}@property --volr-tw-sepia{syntax:"*";inherits:false}@property --volr-tw-drop-shadow{syntax:"*";inherits:false}@property --volr-tw-drop-shadow-color{syntax:"*";inherits:false}@property --volr-tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --volr-tw-drop-shadow-size{syntax:"*";inherits:false}@property --volr-tw-duration{syntax:"*";inherits:false}@property --volr-tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}';
984
+ var VOLR_SDK_CSS = '/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--volr-tw-translate-x:0;--volr-tw-translate-y:0;--volr-tw-translate-z:0;--volr-tw-space-y-reverse:0;--volr-tw-border-style:solid;--volr-tw-gradient-position:initial;--volr-tw-gradient-from:#0000;--volr-tw-gradient-via:#0000;--volr-tw-gradient-to:#0000;--volr-tw-gradient-stops:initial;--volr-tw-gradient-via-stops:initial;--volr-tw-gradient-from-position:0%;--volr-tw-gradient-via-position:50%;--volr-tw-gradient-to-position:100%;--volr-tw-leading:initial;--volr-tw-font-weight:initial;--volr-tw-tracking:initial;--volr-tw-shadow:0 0 #0000;--volr-tw-shadow-color:initial;--volr-tw-shadow-alpha:100%;--volr-tw-inset-shadow:0 0 #0000;--volr-tw-inset-shadow-color:initial;--volr-tw-inset-shadow-alpha:100%;--volr-tw-ring-color:initial;--volr-tw-ring-shadow:0 0 #0000;--volr-tw-inset-ring-color:initial;--volr-tw-inset-ring-shadow:0 0 #0000;--volr-tw-ring-inset:initial;--volr-tw-ring-offset-width:0px;--volr-tw-ring-offset-color:#fff;--volr-tw-ring-offset-shadow:0 0 #0000;--volr-tw-blur:initial;--volr-tw-brightness:initial;--volr-tw-contrast:initial;--volr-tw-grayscale:initial;--volr-tw-hue-rotate:initial;--volr-tw-invert:initial;--volr-tw-opacity:initial;--volr-tw-saturate:initial;--volr-tw-sepia:initial;--volr-tw-drop-shadow:initial;--volr-tw-drop-shadow-color:initial;--volr-tw-drop-shadow-alpha:100%;--volr-tw-drop-shadow-size:initial;--volr-tw-duration:initial;--volr-tw-ease:initial}}}@layer theme{:root,:host{--volr-font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--volr-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--volr-color-red-50:oklch(97.1% .013 17.38);--volr-color-red-100:oklch(93.6% .032 17.717);--volr-color-red-200:oklch(88.5% .062 18.334);--volr-color-red-500:oklch(63.7% .237 25.331);--volr-color-red-600:oklch(57.7% .245 27.325);--volr-color-red-700:oklch(50.5% .213 27.518);--volr-color-amber-50:oklch(98.7% .022 95.277);--volr-color-amber-200:oklch(92.4% .12 95.746);--volr-color-amber-700:oklch(55.5% .163 48.998);--volr-color-yellow-100:oklch(97.3% .071 103.193);--volr-color-yellow-700:oklch(55.4% .135 66.442);--volr-color-green-50:oklch(98.2% .018 155.826);--volr-color-green-100:oklch(96.2% .044 156.743);--volr-color-green-600:oklch(62.7% .194 149.214);--volr-color-green-700:oklch(52.7% .154 150.069);--volr-color-emerald-300:oklch(84.5% .143 164.978);--volr-color-emerald-400:oklch(76.5% .177 163.223);--volr-color-emerald-500:oklch(69.6% .17 162.48);--volr-color-emerald-600:oklch(59.6% .145 163.225);--volr-color-teal-400:oklch(77.7% .152 181.912);--volr-color-teal-500:oklch(70.4% .14 182.503);--volr-color-cyan-400:oklch(78.9% .154 211.53);--volr-color-blue-100:oklch(93.2% .032 255.585);--volr-color-blue-700:oklch(48.8% .243 264.376);--volr-color-slate-50:oklch(98.4% .003 247.858);--volr-color-slate-100:oklch(96.8% .007 247.896);--volr-color-slate-200:oklch(92.9% .013 255.508);--volr-color-slate-300:oklch(86.9% .022 252.894);--volr-color-slate-400:oklch(70.4% .04 256.788);--volr-color-slate-500:oklch(55.4% .046 257.417);--volr-color-slate-600:oklch(44.6% .043 257.281);--volr-color-slate-700:oklch(37.2% .044 257.287);--volr-color-slate-900:oklch(20.8% .042 265.755);--volr-color-gray-500:oklch(55.1% .027 264.364);--volr-color-black:#000;--volr-color-white:#fff;--volr-spacing:.25rem;--volr-container-md:28rem;--volr-container-4xl:56rem;--volr-text-xs:.75rem;--volr-text-xs--line-height:calc(1/.75);--volr-text-sm:.875rem;--volr-text-sm--line-height:calc(1.25/.875);--volr-text-base:1rem;--volr-text-base--line-height:calc(1.5/1);--volr-text-lg:1.125rem;--volr-text-lg--line-height:calc(1.75/1.125);--volr-text-xl:1.25rem;--volr-text-xl--line-height:calc(1.75/1.25);--volr-text-2xl:1.5rem;--volr-text-2xl--line-height:calc(2/1.5);--volr-text-3xl:1.875rem;--volr-text-3xl--line-height:calc(2.25/1.875);--volr-text-8xl:6rem;--volr-text-8xl--line-height:1;--volr-font-weight-medium:500;--volr-font-weight-semibold:600;--volr-font-weight-bold:700;--volr-tracking-wide:.025em;--volr-leading-relaxed:1.625;--volr-radius-md:.375rem;--volr-radius-lg:.5rem;--volr-radius-xl:.75rem;--volr-radius-2xl:1rem;--volr-radius-3xl:1.5rem;--volr-ease-out:cubic-bezier(0,0,.2,1);--volr-animate-spin:spin 1s linear infinite;--volr-animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--volr-blur-2xl:40px;--volr-default-transition-duration:.15s;--volr-default-transition-timing-function:cubic-bezier(.4,0,.2,1);--volr-default-font-family:var(--volr-font-sans);--volr-default-mono-font-family:var(--volr-font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--volr-default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--volr-default-font-feature-settings,normal);font-variation-settings:var(--volr-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--volr-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--volr-default-mono-font-feature-settings,normal);font-variation-settings:var(--volr-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:host{--volr-primary-color:var(--volr-accent-color,#303030);--volr-font-family:var(--volr-custom-font,inherit);--volr-bg:#fff;--volr-bg-secondary:#f8fafc;--volr-bg-tertiary:#f1f5f9;--volr-text:#0f172a;--volr-text-secondary:#475569;--volr-text-muted:#94a3b8;--volr-border:#e2e8f0;--volr-border-strong:#cbd5e1;--volr-hover-bg:#f8fafc;--volr-error-bg:#fef2f2;--volr-error-border:#fecaca;--volr-error-text:#991b1b}:host([data-theme=dark]){--volr-bg:#1c1c1e;--volr-bg-secondary:#2c2c2e;--volr-bg-tertiary:#3a3a3c;--volr-text:#f5f5f7;--volr-text-secondary:#c7c7cc;--volr-text-muted:#8e8e93;--volr-border:#3a3a3c;--volr-border-strong:#48484a;--volr-hover-bg:#2c2c2e;--volr-error-bg:#3c1f1f;--volr-error-border:#7f1d1d;--volr-error-text:#fca5a5}*,:before,:after{box-sizing:border-box}*{font-family:var(--volr-font-family);color:var(--volr-text)}button,input,select,textarea{color:var(--volr-text);background-color:#0000}button{cursor:pointer;background-color:#0000}input::placeholder{color:var(--volr-text-muted)}h1,h2,h3{color:var(--volr-text);margin:0;font-weight:700}h1{font-size:1.875rem;line-height:2.25rem}h2{font-size:1.5rem;line-height:2rem}h3{font-size:1.25rem;line-height:1.75rem}p{margin:0}}@layer components{.volr-dialog-overlay{inset:calc(var(--volr-spacing)*0);z-index:40;background-color:var(--volr-color-black);position:fixed}@supports (color:color-mix(in lab, red, red)){.volr-dialog-overlay{background-color:color-mix(in oklab,var(--volr-color-black)45%,transparent)}}.volr-dialog-content{z-index:50;border-radius:var(--volr-radius-2xl);border-style:var(--volr-tw-border-style);padding:calc(var(--volr-spacing)*7);--volr-tw-shadow:0 20px 25px -5px var(--volr-tw-shadow-color,#0000001a),0 8px 10px -6px var(--volr-tw-shadow-color,#0000001a);box-shadow:var(--volr-tw-inset-shadow),var(--volr-tw-inset-ring-shadow),var(--volr-tw-ring-offset-shadow),var(--volr-tw-ring-shadow),var(--volr-tw-shadow);background-color:var(--volr-bg);border-width:1px;border-color:var(--volr-border-strong);width:calc(100% - 2rem);max-width:28rem;max-height:85vh;position:fixed;top:50%;left:50%;overflow-y:auto;transform:translate(-50%,-50%)}@media (max-width:640px){.volr-dialog-content{top:auto;right:calc(var(--volr-spacing)*0);bottom:calc(var(--volr-spacing)*0);left:calc(var(--volr-spacing)*0);border-radius:1.25rem 1.25rem 0 0;width:100%;max-width:100%;margin:0 auto;transform:translateY(0)}}.volr-dialog-close{top:calc(var(--volr-spacing)*4);right:calc(var(--volr-spacing)*4);height:calc(var(--volr-spacing)*8);width:calc(var(--volr-spacing)*8);color:var(--volr-text-muted);cursor:pointer;background-color:#0000;border:none;border-radius:3.40282e38px;justify-content:center;align-items:center;display:inline-flex;position:absolute}.volr-dialog-close:hover{background-color:var(--volr-hover-bg);color:var(--volr-text-secondary)}.volr-dialog-close:focus-visible{box-shadow:0 0 0 2px var(--volr-border-strong);outline:none}.volr-dialog-close-icon{height:calc(var(--volr-spacing)*4);width:calc(var(--volr-spacing)*4)}.volr-email-input{border:1px solid var(--volr-border-strong);background-color:var(--volr-bg);width:100%;color:var(--volr-text);border-radius:.5rem;outline:none;padding:.75rem .75rem .75rem 2.75rem;font-size:1rem;line-height:1.5}.volr-email-input::placeholder{color:var(--volr-text-muted)}.volr-email-input:focus{border-color:var(--volr-border-strong);box-shadow:0 0 0 2px var(--volr-border-strong)}.volr-option-button{border:1px solid var(--volr-border);background-color:var(--volr-bg);width:100%;color:var(--volr-text);cursor:pointer;border-radius:.5rem;align-items:center;gap:.75rem;padding:.75rem;transition:background-color .15s ease-out,border-color .15s ease-out,box-shadow .15s ease-out;display:flex}.volr-option-button:hover{background-color:var(--volr-hover-bg);border-color:var(--volr-border)}.volr-option-button:focus-visible{box-shadow:0 0 0 2px var(--volr-border-strong);outline:none}}@layer utilities{.volr\\:pointer-events-auto{pointer-events:auto}.volr\\:pointer-events-none{pointer-events:none}.volr\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.volr\\:absolute{position:absolute}.volr\\:fixed{position:fixed}.volr\\:relative{position:relative}.volr\\:inset-0{inset:calc(var(--volr-spacing)*0)}.volr\\:-top-3{top:calc(var(--volr-spacing)*-3)}.volr\\:top-1\\/2{top:50%}.volr\\:-right-3{right:calc(var(--volr-spacing)*-3)}.volr\\:right-2{right:calc(var(--volr-spacing)*2)}.volr\\:right-3{right:calc(var(--volr-spacing)*3)}.volr\\:bottom-3{bottom:calc(var(--volr-spacing)*3)}.volr\\:left-3{left:calc(var(--volr-spacing)*3)}.volr\\:-z-10{z-index:calc(10*-1)}.volr\\:z-10{z-index:10}.volr\\:z-20{z-index:20}.volr\\:z-40{z-index:40}.volr\\:z-50{z-index:50}.volr\\:mx-auto{margin-inline:auto}.volr\\:my-6{margin-block:calc(var(--volr-spacing)*6)}.volr\\:mt-0\\.5{margin-top:calc(var(--volr-spacing)*.5)}.volr\\:mt-1{margin-top:calc(var(--volr-spacing)*1)}.volr\\:mt-2{margin-top:calc(var(--volr-spacing)*2)}.volr\\:mt-3{margin-top:calc(var(--volr-spacing)*3)}.volr\\:mt-4{margin-top:calc(var(--volr-spacing)*4)}.volr\\:mt-6{margin-top:calc(var(--volr-spacing)*6)}.volr\\:mt-8{margin-top:calc(var(--volr-spacing)*8)}.volr\\:mb-1{margin-bottom:calc(var(--volr-spacing)*1)}.volr\\:mb-2{margin-bottom:calc(var(--volr-spacing)*2)}.volr\\:mb-3{margin-bottom:calc(var(--volr-spacing)*3)}.volr\\:mb-4{margin-bottom:calc(var(--volr-spacing)*4)}.volr\\:mb-5{margin-bottom:calc(var(--volr-spacing)*5)}.volr\\:mb-6{margin-bottom:calc(var(--volr-spacing)*6)}.volr\\:mb-8{margin-bottom:calc(var(--volr-spacing)*8)}.volr\\:-ml-2{margin-left:calc(var(--volr-spacing)*-2)}.volr\\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.volr\\:block{display:block}.volr\\:flex{display:flex}.volr\\:grid{display:grid}.volr\\:inline-block{display:inline-block}.volr\\:inline-flex{display:inline-flex}.volr\\:h-1{height:calc(var(--volr-spacing)*1)}.volr\\:h-1\\.5{height:calc(var(--volr-spacing)*1.5)}.volr\\:h-2{height:calc(var(--volr-spacing)*2)}.volr\\:h-3{height:calc(var(--volr-spacing)*3)}.volr\\:h-4{height:calc(var(--volr-spacing)*4)}.volr\\:h-5{height:calc(var(--volr-spacing)*5)}.volr\\:h-6{height:calc(var(--volr-spacing)*6)}.volr\\:h-7{height:calc(var(--volr-spacing)*7)}.volr\\:h-8{height:calc(var(--volr-spacing)*8)}.volr\\:h-9{height:calc(var(--volr-spacing)*9)}.volr\\:h-10{height:calc(var(--volr-spacing)*10)}.volr\\:h-12{height:calc(var(--volr-spacing)*12)}.volr\\:h-14{height:calc(var(--volr-spacing)*14)}.volr\\:h-16{height:calc(var(--volr-spacing)*16)}.volr\\:h-20{height:calc(var(--volr-spacing)*20)}.volr\\:h-24{height:calc(var(--volr-spacing)*24)}.volr\\:h-40{height:calc(var(--volr-spacing)*40)}.volr\\:h-44{height:calc(var(--volr-spacing)*44)}.volr\\:h-48{height:calc(var(--volr-spacing)*48)}.volr\\:h-\\[0\\.8em\\]{height:.8em}.volr\\:h-\\[200px\\]{height:200px}.volr\\:h-full{height:100%}.volr\\:h-px{height:1px}.volr\\:max-h-48{max-height:calc(var(--volr-spacing)*48)}.volr\\:max-h-60{max-height:calc(var(--volr-spacing)*60)}.volr\\:max-h-64{max-height:calc(var(--volr-spacing)*64)}.volr\\:max-h-\\[85vh\\]{max-height:85vh}.volr\\:max-h-\\[90vh\\]{max-height:90vh}.volr\\:min-h-\\[120px\\]{min-height:120px}.volr\\:min-h-\\[500px\\]{min-height:500px}.volr\\:w-1\\.5{width:calc(var(--volr-spacing)*1.5)}.volr\\:w-2{width:calc(var(--volr-spacing)*2)}.volr\\:w-3{width:calc(var(--volr-spacing)*3)}.volr\\:w-4{width:calc(var(--volr-spacing)*4)}.volr\\:w-5{width:calc(var(--volr-spacing)*5)}.volr\\:w-6{width:calc(var(--volr-spacing)*6)}.volr\\:w-7{width:calc(var(--volr-spacing)*7)}.volr\\:w-8{width:calc(var(--volr-spacing)*8)}.volr\\:w-10{width:calc(var(--volr-spacing)*10)}.volr\\:w-12{width:calc(var(--volr-spacing)*12)}.volr\\:w-14{width:calc(var(--volr-spacing)*14)}.volr\\:w-16{width:calc(var(--volr-spacing)*16)}.volr\\:w-20{width:calc(var(--volr-spacing)*20)}.volr\\:w-24{width:calc(var(--volr-spacing)*24)}.volr\\:w-32{width:calc(var(--volr-spacing)*32)}.volr\\:w-36{width:calc(var(--volr-spacing)*36)}.volr\\:w-40{width:calc(var(--volr-spacing)*40)}.volr\\:w-44{width:calc(var(--volr-spacing)*44)}.volr\\:w-48{width:calc(var(--volr-spacing)*48)}.volr\\:w-\\[200px\\]{width:200px}.volr\\:w-auto{width:auto}.volr\\:w-full{width:100%}.volr\\:max-w-4xl{max-width:var(--volr-container-4xl)}.volr\\:max-w-full{max-width:100%}.volr\\:max-w-md{max-width:var(--volr-container-md)}.volr\\:max-w-none{max-width:none}.volr\\:min-w-0{min-width:calc(var(--volr-spacing)*0)}.volr\\:flex-1{flex:1}.volr\\:flex-shrink-0,.volr\\:shrink-0{flex-shrink:0}.volr\\:-translate-y-1\\/2{--volr-tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--volr-tw-translate-x)var(--volr-tw-translate-y)}.volr\\:rotate-90{rotate:90deg}.volr\\:rotate-180{rotate:180deg}.volr\\:animate-pulse{animation:var(--volr-animate-pulse)}.volr\\:animate-spin{animation:var(--volr-animate-spin)}.volr\\:cursor-not-allowed{cursor:not-allowed}.volr\\:cursor-pointer{cursor:pointer}.volr\\:list-inside{list-style-position:inside}.volr\\:list-decimal{list-style-type:decimal}.volr\\:grid-cols-\\[minmax\\(0\\,1\\.1fr\\)_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.volr\\:flex-col{flex-direction:column}.volr\\:items-baseline{align-items:baseline}.volr\\:items-center{align-items:center}.volr\\:items-end{align-items:flex-end}.volr\\:items-start{align-items:flex-start}.volr\\:justify-between{justify-content:space-between}.volr\\:justify-center{justify-content:center}.volr\\:gap-1{gap:calc(var(--volr-spacing)*1)}.volr\\:gap-2{gap:calc(var(--volr-spacing)*2)}.volr\\:gap-3{gap:calc(var(--volr-spacing)*3)}.volr\\:gap-4{gap:calc(var(--volr-spacing)*4)}:where(.volr\\:space-y-1>:not(:last-child)){--volr-tw-space-y-reverse:0;margin-block-start:calc(calc(var(--volr-spacing)*1)*var(--volr-tw-space-y-reverse));margin-block-end:calc(calc(var(--volr-spacing)*1)*calc(1 - var(--volr-tw-space-y-reverse)))}:where(.volr\\:space-y-2>:not(:last-child)){--volr-tw-space-y-reverse:0;margin-block-start:calc(calc(var(--volr-spacing)*2)*var(--volr-tw-space-y-reverse));margin-block-end:calc(calc(var(--volr-spacing)*2)*calc(1 - var(--volr-tw-space-y-reverse)))}:where(.volr\\:space-y-3>:not(:last-child)){--volr-tw-space-y-reverse:0;margin-block-start:calc(calc(var(--volr-spacing)*3)*var(--volr-tw-space-y-reverse));margin-block-end:calc(calc(var(--volr-spacing)*3)*calc(1 - var(--volr-tw-space-y-reverse)))}:where(.volr\\:space-y-4>:not(:last-child)){--volr-tw-space-y-reverse:0;margin-block-start:calc(calc(var(--volr-spacing)*4)*var(--volr-tw-space-y-reverse));margin-block-end:calc(calc(var(--volr-spacing)*4)*calc(1 - var(--volr-tw-space-y-reverse)))}:where(.volr\\:space-y-6>:not(:last-child)){--volr-tw-space-y-reverse:0;margin-block-start:calc(calc(var(--volr-spacing)*6)*var(--volr-tw-space-y-reverse));margin-block-end:calc(calc(var(--volr-spacing)*6)*calc(1 - var(--volr-tw-space-y-reverse)))}:where(.volr\\:space-y-8>:not(:last-child)){--volr-tw-space-y-reverse:0;margin-block-start:calc(calc(var(--volr-spacing)*8)*var(--volr-tw-space-y-reverse));margin-block-end:calc(calc(var(--volr-spacing)*8)*calc(1 - var(--volr-tw-space-y-reverse)))}.volr\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.volr\\:overflow-auto{overflow:auto}.volr\\:overflow-hidden{overflow:hidden}.volr\\:overflow-visible{overflow:visible}.volr\\:overflow-x-auto{overflow-x:auto}.volr\\:overflow-y-auto{overflow-y:auto}.volr\\:rounded{border-radius:.25rem}.volr\\:rounded-2xl{border-radius:var(--volr-radius-2xl)}.volr\\:rounded-full{border-radius:3.40282e38px}.volr\\:rounded-lg{border-radius:var(--volr-radius-lg)}.volr\\:rounded-md{border-radius:var(--volr-radius-md)}.volr\\:rounded-xl{border-radius:var(--volr-radius-xl)}.volr\\:rounded-t-2xl{border-top-left-radius:var(--volr-radius-2xl);border-top-right-radius:var(--volr-radius-2xl)}.volr\\:rounded-t-3xl{border-top-left-radius:var(--volr-radius-3xl);border-top-right-radius:var(--volr-radius-3xl)}.volr\\:border{border-style:var(--volr-tw-border-style);border-width:1px}.volr\\:border-2{border-style:var(--volr-tw-border-style);border-width:2px}.volr\\:border-4{border-style:var(--volr-tw-border-style);border-width:4px}.volr\\:border-y{border-block-style:var(--volr-tw-border-style);border-block-width:1px}.volr\\:border-t{border-top-style:var(--volr-tw-border-style);border-top-width:1px}.volr\\:border-b{border-bottom-style:var(--volr-tw-border-style);border-bottom-width:1px}.volr\\:border-amber-200{border-color:var(--volr-color-amber-200)}.volr\\:border-red-200{border-color:var(--volr-color-red-200)}.volr\\:border-red-500{border-color:var(--volr-color-red-500)}.volr\\:border-slate-100{border-color:var(--volr-color-slate-100)}.volr\\:border-slate-200{border-color:var(--volr-color-slate-200)}.volr\\:border-slate-300{border-color:var(--volr-color-slate-300)}.volr\\:border-white{border-color:var(--volr-color-white)}.volr\\:border-t-slate-600{border-top-color:var(--volr-color-slate-600)}.volr\\:bg-amber-50{background-color:var(--volr-color-amber-50)}.volr\\:bg-black\\/40{background-color:var(--volr-color-black)}@supports (color:color-mix(in lab, red, red)){.volr\\:bg-black\\/40{background-color:color-mix(in oklab,var(--volr-color-black)40%,transparent)}}.volr\\:bg-black\\/45{background-color:var(--volr-color-black)}@supports (color:color-mix(in lab, red, red)){.volr\\:bg-black\\/45{background-color:color-mix(in oklab,var(--volr-color-black)45%,transparent)}}.volr\\:bg-blue-100{background-color:var(--volr-color-blue-100)}.volr\\:bg-cyan-400{background-color:var(--volr-color-cyan-400)}.volr\\:bg-emerald-300{background-color:var(--volr-color-emerald-300)}.volr\\:bg-emerald-400{background-color:var(--volr-color-emerald-400)}.volr\\:bg-green-50{background-color:var(--volr-color-green-50)}.volr\\:bg-green-100{background-color:var(--volr-color-green-100)}.volr\\:bg-red-50{background-color:var(--volr-color-red-50)}.volr\\:bg-red-100{background-color:var(--volr-color-red-100)}.volr\\:bg-slate-50{background-color:var(--volr-color-slate-50)}.volr\\:bg-slate-100{background-color:var(--volr-color-slate-100)}.volr\\:bg-slate-200{background-color:var(--volr-color-slate-200)}.volr\\:bg-slate-900{background-color:var(--volr-color-slate-900)}.volr\\:bg-teal-400{background-color:var(--volr-color-teal-400)}.volr\\:bg-white{background-color:var(--volr-color-white)}.volr\\:bg-yellow-100{background-color:var(--volr-color-yellow-100)}.volr\\:bg-linear-to-br{--volr-tw-gradient-position:to bottom right}@supports (background-image:linear-gradient(in lab, red, red)){.volr\\:bg-linear-to-br{--volr-tw-gradient-position:to bottom right in oklab}}.volr\\:bg-linear-to-br{background-image:linear-gradient(var(--volr-tw-gradient-stops))}.volr\\:bg-gradient-to-br{--volr-tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--volr-tw-gradient-stops))}.volr\\:bg-gradient-to-r{--volr-tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--volr-tw-gradient-stops))}.volr\\:from-emerald-400{--volr-tw-gradient-from:var(--volr-color-emerald-400);--volr-tw-gradient-stops:var(--volr-tw-gradient-via-stops,var(--volr-tw-gradient-position),var(--volr-tw-gradient-from)var(--volr-tw-gradient-from-position),var(--volr-tw-gradient-to)var(--volr-tw-gradient-to-position))}.volr\\:from-emerald-500{--volr-tw-gradient-from:var(--volr-color-emerald-500);--volr-tw-gradient-stops:var(--volr-tw-gradient-via-stops,var(--volr-tw-gradient-position),var(--volr-tw-gradient-from)var(--volr-tw-gradient-from-position),var(--volr-tw-gradient-to)var(--volr-tw-gradient-to-position))}.volr\\:from-slate-50{--volr-tw-gradient-from:var(--volr-color-slate-50);--volr-tw-gradient-stops:var(--volr-tw-gradient-via-stops,var(--volr-tw-gradient-position),var(--volr-tw-gradient-from)var(--volr-tw-gradient-from-position),var(--volr-tw-gradient-to)var(--volr-tw-gradient-to-position))}.volr\\:to-slate-100{--volr-tw-gradient-to:var(--volr-color-slate-100);--volr-tw-gradient-stops:var(--volr-tw-gradient-via-stops,var(--volr-tw-gradient-position),var(--volr-tw-gradient-from)var(--volr-tw-gradient-from-position),var(--volr-tw-gradient-to)var(--volr-tw-gradient-to-position))}.volr\\:to-teal-500{--volr-tw-gradient-to:var(--volr-color-teal-500);--volr-tw-gradient-stops:var(--volr-tw-gradient-via-stops,var(--volr-tw-gradient-position),var(--volr-tw-gradient-from)var(--volr-tw-gradient-from-position),var(--volr-tw-gradient-to)var(--volr-tw-gradient-to-position))}.volr\\:object-cover{object-fit:cover}.volr\\:p-1{padding:calc(var(--volr-spacing)*1)}.volr\\:p-2{padding:calc(var(--volr-spacing)*2)}.volr\\:p-3{padding:calc(var(--volr-spacing)*3)}.volr\\:p-4{padding:calc(var(--volr-spacing)*4)}.volr\\:p-5{padding:calc(var(--volr-spacing)*5)}.volr\\:p-6{padding:calc(var(--volr-spacing)*6)}.volr\\:p-8{padding:calc(var(--volr-spacing)*8)}.volr\\:px-1\\.5{padding-inline:calc(var(--volr-spacing)*1.5)}.volr\\:px-2{padding-inline:calc(var(--volr-spacing)*2)}.volr\\:px-3{padding-inline:calc(var(--volr-spacing)*3)}.volr\\:px-4{padding-inline:calc(var(--volr-spacing)*4)}.volr\\:py-0\\.5{padding-block:calc(var(--volr-spacing)*.5)}.volr\\:py-1{padding-block:calc(var(--volr-spacing)*1)}.volr\\:py-1\\.5{padding-block:calc(var(--volr-spacing)*1.5)}.volr\\:py-2{padding-block:calc(var(--volr-spacing)*2)}.volr\\:py-2\\.5{padding-block:calc(var(--volr-spacing)*2.5)}.volr\\:py-3{padding-block:calc(var(--volr-spacing)*3)}.volr\\:py-4{padding-block:calc(var(--volr-spacing)*4)}.volr\\:py-6{padding-block:calc(var(--volr-spacing)*6)}.volr\\:py-8{padding-block:calc(var(--volr-spacing)*8)}.volr\\:py-12{padding-block:calc(var(--volr-spacing)*12)}.volr\\:pt-2{padding-top:calc(var(--volr-spacing)*2)}.volr\\:pt-3{padding-top:calc(var(--volr-spacing)*3)}.volr\\:pt-4{padding-top:calc(var(--volr-spacing)*4)}.volr\\:pr-3{padding-right:calc(var(--volr-spacing)*3)}.volr\\:pr-16{padding-right:calc(var(--volr-spacing)*16)}.volr\\:pl-11{padding-left:calc(var(--volr-spacing)*11)}.volr\\:text-center{text-align:center}.volr\\:text-left{text-align:left}.volr\\:text-right{text-align:right}.volr\\:align-baseline{vertical-align:baseline}.volr\\:font-mono{font-family:var(--volr-font-mono)}.volr\\:text-2xl{font-size:var(--volr-text-2xl);line-height:var(--volr-tw-leading,var(--volr-text-2xl--line-height))}.volr\\:text-3xl{font-size:var(--volr-text-3xl);line-height:var(--volr-tw-leading,var(--volr-text-3xl--line-height))}.volr\\:text-8xl{font-size:var(--volr-text-8xl);line-height:var(--volr-tw-leading,var(--volr-text-8xl--line-height))}.volr\\:text-base{font-size:var(--volr-text-base);line-height:var(--volr-tw-leading,var(--volr-text-base--line-height))}.volr\\:text-lg{font-size:var(--volr-text-lg);line-height:var(--volr-tw-leading,var(--volr-text-lg--line-height))}.volr\\:text-sm{font-size:var(--volr-text-sm);line-height:var(--volr-tw-leading,var(--volr-text-sm--line-height))}.volr\\:text-xl{font-size:var(--volr-text-xl);line-height:var(--volr-tw-leading,var(--volr-text-xl--line-height))}.volr\\:text-xs{font-size:var(--volr-text-xs);line-height:var(--volr-tw-leading,var(--volr-text-xs--line-height))}.volr\\:leading-relaxed{--volr-tw-leading:var(--volr-leading-relaxed);line-height:var(--volr-leading-relaxed)}.volr\\:font-bold{--volr-tw-font-weight:var(--volr-font-weight-bold);font-weight:var(--volr-font-weight-bold)}.volr\\:font-medium{--volr-tw-font-weight:var(--volr-font-weight-medium);font-weight:var(--volr-font-weight-medium)}.volr\\:font-semibold{--volr-tw-font-weight:var(--volr-font-weight-semibold);font-weight:var(--volr-font-weight-semibold)}.volr\\:tracking-wide{--volr-tw-tracking:var(--volr-tracking-wide);letter-spacing:var(--volr-tracking-wide)}.volr\\:break-all{word-break:break-all}.volr\\:text-amber-700{color:var(--volr-color-amber-700)}.volr\\:text-blue-700{color:var(--volr-color-blue-700)}.volr\\:text-emerald-600{color:var(--volr-color-emerald-600)}.volr\\:text-gray-500{color:var(--volr-color-gray-500)}.volr\\:text-green-600{color:var(--volr-color-green-600)}.volr\\:text-green-700{color:var(--volr-color-green-700)}.volr\\:text-red-500{color:var(--volr-color-red-500)}.volr\\:text-red-600{color:var(--volr-color-red-600)}.volr\\:text-red-700{color:var(--volr-color-red-700)}.volr\\:text-slate-100{color:var(--volr-color-slate-100)}.volr\\:text-slate-300{color:var(--volr-color-slate-300)}.volr\\:text-slate-400{color:var(--volr-color-slate-400)}.volr\\:text-slate-500{color:var(--volr-color-slate-500)}.volr\\:text-slate-600{color:var(--volr-color-slate-600)}.volr\\:text-slate-700{color:var(--volr-color-slate-700)}.volr\\:text-slate-900{color:var(--volr-color-slate-900)}.volr\\:text-white{color:var(--volr-color-white)}.volr\\:text-yellow-700{color:var(--volr-color-yellow-700)}.volr\\:capitalize{text-transform:capitalize}.volr\\:uppercase{text-transform:uppercase}.volr\\:underline{text-decoration-line:underline}.volr\\:opacity-0{opacity:0}.volr\\:opacity-25{opacity:.25}.volr\\:opacity-30{opacity:.3}.volr\\:opacity-50{opacity:.5}.volr\\:opacity-75{opacity:.75}.volr\\:shadow-2xl{--volr-tw-shadow:0 25px 50px -12px var(--volr-tw-shadow-color,#00000040);box-shadow:var(--volr-tw-inset-shadow),var(--volr-tw-inset-ring-shadow),var(--volr-tw-ring-offset-shadow),var(--volr-tw-ring-shadow),var(--volr-tw-shadow)}.volr\\:shadow-lg{--volr-tw-shadow:0 10px 15px -3px var(--volr-tw-shadow-color,#0000001a),0 4px 6px -4px var(--volr-tw-shadow-color,#0000001a);box-shadow:var(--volr-tw-inset-shadow),var(--volr-tw-inset-ring-shadow),var(--volr-tw-ring-offset-shadow),var(--volr-tw-ring-shadow),var(--volr-tw-shadow)}.volr\\:shadow-md{--volr-tw-shadow:0 4px 6px -1px var(--volr-tw-shadow-color,#0000001a),0 2px 4px -2px var(--volr-tw-shadow-color,#0000001a);box-shadow:var(--volr-tw-inset-shadow),var(--volr-tw-inset-ring-shadow),var(--volr-tw-ring-offset-shadow),var(--volr-tw-ring-shadow),var(--volr-tw-shadow)}.volr\\:shadow-sm{--volr-tw-shadow:0 1px 3px 0 var(--volr-tw-shadow-color,#0000001a),0 1px 2px -1px var(--volr-tw-shadow-color,#0000001a);box-shadow:var(--volr-tw-inset-shadow),var(--volr-tw-inset-ring-shadow),var(--volr-tw-ring-offset-shadow),var(--volr-tw-ring-shadow),var(--volr-tw-shadow)}.volr\\:shadow-xl{--volr-tw-shadow:0 20px 25px -5px var(--volr-tw-shadow-color,#0000001a),0 8px 10px -6px var(--volr-tw-shadow-color,#0000001a);box-shadow:var(--volr-tw-inset-shadow),var(--volr-tw-inset-ring-shadow),var(--volr-tw-ring-offset-shadow),var(--volr-tw-ring-shadow),var(--volr-tw-shadow)}.volr\\:shadow-emerald-500\\/50{--volr-tw-shadow-color:var(--volr-color-emerald-500)}@supports (color:color-mix(in lab, red, red)){.volr\\:shadow-emerald-500\\/50{--volr-tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--volr-color-emerald-500)50%,transparent)var(--volr-tw-shadow-alpha),transparent)}}.volr\\:blur-2xl{--volr-tw-blur:blur(var(--volr-blur-2xl));filter:var(--volr-tw-blur,)var(--volr-tw-brightness,)var(--volr-tw-contrast,)var(--volr-tw-grayscale,)var(--volr-tw-hue-rotate,)var(--volr-tw-invert,)var(--volr-tw-saturate,)var(--volr-tw-sepia,)var(--volr-tw-drop-shadow,)}.volr\\:transition-all{transition-property:all;transition-timing-function:var(--volr-tw-ease,var(--volr-default-transition-timing-function));transition-duration:var(--volr-tw-duration,var(--volr-default-transition-duration))}.volr\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--volr-tw-gradient-from,--volr-tw-gradient-via,--volr-tw-gradient-to;transition-timing-function:var(--volr-tw-ease,var(--volr-default-transition-timing-function));transition-duration:var(--volr-tw-duration,var(--volr-default-transition-duration))}.volr\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--volr-tw-ease,var(--volr-default-transition-timing-function));transition-duration:var(--volr-tw-duration,var(--volr-default-transition-duration))}.volr\\:duration-300{--volr-tw-duration:.3s;transition-duration:.3s}.volr\\:duration-500{--volr-tw-duration:.5s;transition-duration:.5s}.volr\\:ease-out{--volr-tw-ease:var(--volr-ease-out);transition-timing-function:var(--volr-ease-out)}.volr\\:outline-none{--volr-tw-outline-style:none;outline-style:none}@media (hover:hover){.volr\\:hover\\:border-slate-300:hover{border-color:var(--volr-color-slate-300)}.volr\\:hover\\:bg-slate-50:hover{background-color:var(--volr-color-slate-50)}.volr\\:hover\\:bg-slate-200:hover{background-color:var(--volr-color-slate-200)}.volr\\:hover\\:text-slate-700:hover{color:var(--volr-color-slate-700)}}.volr\\:focus\\:ring-2:focus{--volr-tw-ring-shadow:var(--volr-tw-ring-inset,)0 0 0 calc(2px + var(--volr-tw-ring-offset-width))var(--volr-tw-ring-color,currentcolor);box-shadow:var(--volr-tw-inset-shadow),var(--volr-tw-inset-ring-shadow),var(--volr-tw-ring-offset-shadow),var(--volr-tw-ring-shadow),var(--volr-tw-shadow)}.volr\\:focus\\:ring-slate-300:focus{--volr-tw-ring-color:var(--volr-color-slate-300)}.volr\\:focus\\:outline-none:focus{--volr-tw-outline-style:none;outline-style:none}.volr\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.volr\\:disabled\\:bg-slate-100:disabled{background-color:var(--volr-color-slate-100)}.volr\\:disabled\\:text-slate-400:disabled{color:var(--volr-color-slate-400)}.volr\\:disabled\\:opacity-50:disabled{opacity:.5}.volr-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.volr-text-secondary{color:var(--volr-text-secondary)}.volr-text-muted{color:var(--volr-text-muted)}.volr-bg-secondary{background-color:var(--volr-bg-secondary)}.volr-bg-tertiary{background-color:var(--volr-bg-tertiary)}.volr-border{border-color:var(--volr-border)}.volr-border-strong{border-color:var(--volr-border-strong)}.volr-divider-line{background-color:var(--volr-border)}.volr-error{background-color:var(--volr-error-bg);border-color:var(--volr-error-border);color:var(--volr-error-text)}.volr-hover:hover{background-color:var(--volr-hover-bg)}.volr-surface{background-color:var(--volr-bg)}}@property --volr-tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --volr-tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --volr-tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --volr-tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --volr-tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --volr-tw-gradient-position{syntax:"*";inherits:false}@property --volr-tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --volr-tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --volr-tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --volr-tw-gradient-stops{syntax:"*";inherits:false}@property --volr-tw-gradient-via-stops{syntax:"*";inherits:false}@property --volr-tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --volr-tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --volr-tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --volr-tw-leading{syntax:"*";inherits:false}@property --volr-tw-font-weight{syntax:"*";inherits:false}@property --volr-tw-tracking{syntax:"*";inherits:false}@property --volr-tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --volr-tw-shadow-color{syntax:"*";inherits:false}@property --volr-tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --volr-tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --volr-tw-inset-shadow-color{syntax:"*";inherits:false}@property --volr-tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --volr-tw-ring-color{syntax:"*";inherits:false}@property --volr-tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --volr-tw-inset-ring-color{syntax:"*";inherits:false}@property --volr-tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --volr-tw-ring-inset{syntax:"*";inherits:false}@property --volr-tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --volr-tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --volr-tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --volr-tw-blur{syntax:"*";inherits:false}@property --volr-tw-brightness{syntax:"*";inherits:false}@property --volr-tw-contrast{syntax:"*";inherits:false}@property --volr-tw-grayscale{syntax:"*";inherits:false}@property --volr-tw-hue-rotate{syntax:"*";inherits:false}@property --volr-tw-invert{syntax:"*";inherits:false}@property --volr-tw-opacity{syntax:"*";inherits:false}@property --volr-tw-saturate{syntax:"*";inherits:false}@property --volr-tw-sepia{syntax:"*";inherits:false}@property --volr-tw-drop-shadow{syntax:"*";inherits:false}@property --volr-tw-drop-shadow-color{syntax:"*";inherits:false}@property --volr-tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --volr-tw-drop-shadow-size{syntax:"*";inherits:false}@property --volr-tw-duration{syntax:"*";inherits:false}@property --volr-tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}';
740
985
  function useResolvedTheme(theme = "light") {
741
986
  const [resolvedTheme, setResolvedTheme] = useState(() => {
742
987
  if (theme !== "system") return theme;
@@ -1323,7 +1568,7 @@ var variantMap = {
1323
1568
  ghost: { backgroundColor: "transparent", color: "var(--volr-text-secondary)", border: "none" },
1324
1569
  outline: { backgroundColor: "transparent", color: "var(--volr-text-secondary)", border: "1px solid var(--volr-border)" }
1325
1570
  };
1326
- var Button = React12.forwardRef(
1571
+ var Button = React13.forwardRef(
1327
1572
  ({ variant = "primary", size = "md", fullWidth, className, style, disabled, children, ...props }, ref) => {
1328
1573
  const { accentColor } = useVolrUI();
1329
1574
  const sizeStyle = sizeMap[size];
@@ -1710,34 +1955,6 @@ function MpcConnectView({
1710
1955
  }
1711
1956
  );
1712
1957
  }
1713
- var CopyButton = ({ text, className, onCopy }) => {
1714
- const [copied, setCopied] = useState(false);
1715
- const handleCopy = async () => {
1716
- try {
1717
- await navigator.clipboard.writeText(text);
1718
- setCopied(true);
1719
- setTimeout(() => setCopied(false), 2e3);
1720
- onCopy?.();
1721
- } catch (error) {
1722
- console.error("Copy failed:", error);
1723
- }
1724
- };
1725
- return /* @__PURE__ */ jsx(
1726
- "button",
1727
- {
1728
- onClick: handleCopy,
1729
- className: cn(
1730
- "volr:p-2 volr:rounded-lg volr:transition-all volr-text-muted volr-hover",
1731
- className
1732
- ),
1733
- "aria-label": "Copy",
1734
- children: copied ? /* @__PURE__ */ jsx("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: /* @__PURE__ */ jsx("polyline", { points: "20 6 9 17 4 12" }) }) : /* @__PURE__ */ jsxs("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
1735
- /* @__PURE__ */ jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
1736
- /* @__PURE__ */ jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
1737
- ] })
1738
- }
1739
- );
1740
- };
1741
1958
  function OptionButton({
1742
1959
  icon,
1743
1960
  title,
@@ -2153,6 +2370,34 @@ function CodeInputScreen({ email, onSubmit, onResend }) {
2153
2370
  )
2154
2371
  ] });
2155
2372
  }
2373
+ var CopyButton = ({ text, className, onCopy }) => {
2374
+ const [copied, setCopied] = useState(false);
2375
+ const handleCopy = async () => {
2376
+ try {
2377
+ await navigator.clipboard.writeText(text);
2378
+ setCopied(true);
2379
+ setTimeout(() => setCopied(false), 2e3);
2380
+ onCopy?.();
2381
+ } catch (error) {
2382
+ console.error("Copy failed:", error);
2383
+ }
2384
+ };
2385
+ return /* @__PURE__ */ jsx(
2386
+ "button",
2387
+ {
2388
+ onClick: handleCopy,
2389
+ className: cn(
2390
+ "volr:p-2 volr:rounded-lg volr:transition-all volr-text-muted volr-hover",
2391
+ className
2392
+ ),
2393
+ "aria-label": "Copy",
2394
+ children: copied ? /* @__PURE__ */ jsx("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: /* @__PURE__ */ jsx("polyline", { points: "20 6 9 17 4 12" }) }) : /* @__PURE__ */ jsxs("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
2395
+ /* @__PURE__ */ jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
2396
+ /* @__PURE__ */ jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
2397
+ ] })
2398
+ }
2399
+ );
2400
+ };
2156
2401
  var isMobile = () => {
2157
2402
  if (typeof window === "undefined") return false;
2158
2403
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
@@ -2642,119 +2887,874 @@ function SigninModal({ isOpen, onClose, onError }) {
2642
2887
  }
2643
2888
  );
2644
2889
  }
2645
- function AccountModal({ isOpen, onClose, onError }) {
2646
- const { user, logout } = useVolrContext();
2647
- const { t } = useI18n();
2648
- const [isLoggingOut, setIsLoggingOut] = useState(false);
2649
- if (!user) {
2650
- return /* @__PURE__ */ jsx(SigninModal, { isOpen, onClose, onError });
2651
- }
2652
- if (!user.keyStorageType) {
2653
- const handlePasskeyComplete = () => {
2654
- onClose();
2655
- };
2656
- const handlePasskeyError = (error) => {
2657
- if (onError) onError(error);
2658
- };
2659
- const handleLogout2 = async () => {
2660
- try {
2661
- await logout();
2662
- onClose();
2663
- } catch (error) {
2664
- if (onError) {
2665
- onError(error instanceof Error ? error : new Error("Logout failed"));
2890
+ function ChevronRightIcon({ className }) {
2891
+ return /* @__PURE__ */ jsx(
2892
+ "svg",
2893
+ {
2894
+ xmlns: "http://www.w3.org/2000/svg",
2895
+ viewBox: "0 0 20 20",
2896
+ fill: "currentColor",
2897
+ className,
2898
+ children: /* @__PURE__ */ jsx(
2899
+ "path",
2900
+ {
2901
+ fillRule: "evenodd",
2902
+ d: "M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",
2903
+ clipRule: "evenodd"
2666
2904
  }
2667
- }
2668
- };
2669
- return /* @__PURE__ */ jsx(Modal, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsx(
2670
- PasskeyEnrollView,
2671
- {
2672
- wrapInModal: false,
2673
- onComplete: handlePasskeyComplete,
2674
- onError: handlePasskeyError,
2675
- onLogout: handleLogout2,
2676
- onClose
2677
- }
2678
- ) });
2679
- }
2680
- const handleLogout = async () => {
2681
- setIsLoggingOut(true);
2682
- try {
2683
- await logout();
2684
- onClose();
2685
- } catch (error) {
2686
- if (onError) {
2687
- onError(error instanceof Error ? error : new Error("Logout failed"));
2688
- }
2689
- } finally {
2690
- setIsLoggingOut(false);
2905
+ )
2691
2906
  }
2692
- };
2693
- const displayAddress = user.evmAddress ? `${user.evmAddress.slice(0, 6)}...${user.evmAddress.slice(-4)}` : null;
2694
- return /* @__PURE__ */ jsxs(Modal, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: [
2695
- /* @__PURE__ */ jsx(ModalHeader, { onClose }),
2696
- /* @__PURE__ */ jsxs("div", { children: [
2697
- /* @__PURE__ */ jsx("p", { className: "volr:text-xl volr:font-semibold volr:mb-4", children: t("account.title") }),
2698
- /* @__PURE__ */ jsxs("div", { className: "volr:rounded-xl volr:p-4 volr:mb-4 volr-bg-secondary", children: [
2699
- user.evmAddress && /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:justify-between volr:gap-3", children: [
2700
- /* @__PURE__ */ jsxs("div", { className: "volr:flex-1 volr:min-w-0", children: [
2701
- /* @__PURE__ */ jsx("p", { className: "volr:text-xs volr:mb-1 volr-text-secondary", children: t("account.walletAddress") }),
2702
- /* @__PURE__ */ jsx("p", { className: "volr:font-mono volr:text-sm volr:font-medium", children: displayAddress })
2703
- ] }),
2704
- /* @__PURE__ */ jsx(CopyButton, { text: user.evmAddress, className: "volr:shrink-0" })
2907
+ );
2908
+ }
2909
+ function WalletIcon2({ className }) {
2910
+ return /* @__PURE__ */ jsx("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M21 12a2.25 2.25 0 00-2.25-2.25H15a3 3 0 11-6 0H5.25A2.25 2.25 0 003 12m18 0v6a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 18v-6m18 0V9M3 12V9m18 0a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 9m18 0V6a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 6v3" }) });
2911
+ }
2912
+ function ArrowUpIcon({ className }) {
2913
+ return /* @__PURE__ */ jsx("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 10.5L12 3m0 0l7.5 7.5M12 3v18" }) });
2914
+ }
2915
+ function ClockIcon({ className }) {
2916
+ return /* @__PURE__ */ jsx("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z" }) });
2917
+ }
2918
+ function UserIcon({ className }) {
2919
+ return /* @__PURE__ */ jsx("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z" }) });
2920
+ }
2921
+ function MenuItem({ icon, label, description, onClick }) {
2922
+ return /* @__PURE__ */ jsxs(
2923
+ "button",
2924
+ {
2925
+ type: "button",
2926
+ onClick,
2927
+ className: "volr:w-full volr:flex volr:items-center volr:gap-3 volr:py-3 volr:px-3 volr:rounded-xl hover:volr:bg-slate-50 volr:transition-colors volr:text-left",
2928
+ children: [
2929
+ /* @__PURE__ */ jsx("div", { className: "volr:w-10 volr:h-10 volr:rounded-full volr:bg-slate-100 volr:flex volr:items-center volr:justify-center volr:shrink-0", children: icon }),
2930
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex-1 volr:min-w-0", children: [
2931
+ /* @__PURE__ */ jsx("span", { className: "volr:text-sm volr:font-medium volr:text-slate-900", children: label }),
2932
+ description && /* @__PURE__ */ jsx("p", { className: "volr:text-xs volr:text-slate-400 volr:mt-0.5", children: description })
2705
2933
  ] }),
2706
- user.email && !user.email.includes("@wallet.") && /* @__PURE__ */ jsxs("div", { className: "volr:mt-4 volr:pt-4 volr:border-t volr-border", children: [
2707
- /* @__PURE__ */ jsx("p", { className: "volr:text-xs volr:mb-1 volr-text-secondary", children: t("account.email") }),
2708
- /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:font-medium", children: user.email })
2709
- ] })
2710
- ] }),
2934
+ /* @__PURE__ */ jsx(ChevronRightIcon, { className: "volr:w-4 volr:h-4 volr:text-slate-300" })
2935
+ ]
2936
+ }
2937
+ );
2938
+ }
2939
+ function AccountMainView({
2940
+ totalUsd,
2941
+ balances,
2942
+ isLoading,
2943
+ paymentEnabled,
2944
+ onNavigate,
2945
+ onLogout,
2946
+ isLoggingOut
2947
+ }) {
2948
+ const { t } = useI18n();
2949
+ const formattedUsd = isLoading ? "\u2014" : totalUsd.toLocaleString("en-US", {
2950
+ style: "currency",
2951
+ currency: "USD",
2952
+ minimumFractionDigits: 2,
2953
+ maximumFractionDigits: 2
2954
+ });
2955
+ const tokensWithBalance = balances.filter((b) => b.balanceRaw > 0n).length;
2956
+ const assetsDescription = isLoading ? void 0 : tokensWithBalance > 0 ? `${tokensWithBalance} ${tokensWithBalance === 1 ? "token" : "tokens"}` : void 0;
2957
+ return /* @__PURE__ */ jsxs("div", { children: [
2958
+ /* @__PURE__ */ jsxs("div", { className: "volr:rounded-2xl volr:bg-gradient-to-br volr:from-slate-50 volr:to-slate-100 volr:p-6 volr:mb-4", children: [
2959
+ /* @__PURE__ */ jsx("p", { className: "volr:text-xs volr:text-slate-500 volr:mb-1", children: t("account.totalBalance") }),
2960
+ isLoading ? /* @__PURE__ */ jsx("div", { className: "volr:animate-pulse", children: /* @__PURE__ */ jsx("div", { className: "volr:h-9 volr:w-36 volr:bg-slate-200 volr:rounded" }) }) : /* @__PURE__ */ jsx("p", { className: "volr:text-3xl volr:font-semibold volr:text-slate-900", children: formattedUsd })
2961
+ ] }),
2962
+ /* @__PURE__ */ jsxs("div", { className: "volr:space-y-1", children: [
2711
2963
  /* @__PURE__ */ jsx(
2712
- Button,
2964
+ MenuItem,
2713
2965
  {
2714
- variant: "outline",
2715
- fullWidth: true,
2716
- onClick: handleLogout,
2717
- disabled: isLoggingOut,
2718
- children: isLoggingOut ? t("common.loading") : t("account.logout")
2966
+ icon: /* @__PURE__ */ jsx(WalletIcon2, { className: "volr:w-5 volr:h-5 volr:text-slate-600" }),
2967
+ label: t("account.menu.assets"),
2968
+ description: assetsDescription,
2969
+ onClick: () => onNavigate("assets")
2970
+ }
2971
+ ),
2972
+ /* @__PURE__ */ jsx(
2973
+ MenuItem,
2974
+ {
2975
+ icon: /* @__PURE__ */ jsx(ArrowUpIcon, { className: "volr:w-5 volr:h-5 volr:text-slate-600" }),
2976
+ label: t("account.menu.withdraw"),
2977
+ onClick: () => onNavigate("withdraw")
2978
+ }
2979
+ ),
2980
+ paymentEnabled && /* @__PURE__ */ jsx(
2981
+ MenuItem,
2982
+ {
2983
+ icon: /* @__PURE__ */ jsx(ClockIcon, { className: "volr:w-5 volr:h-5 volr:text-slate-600" }),
2984
+ label: t("account.menu.payments"),
2985
+ onClick: () => onNavigate("payments")
2986
+ }
2987
+ ),
2988
+ /* @__PURE__ */ jsx(
2989
+ MenuItem,
2990
+ {
2991
+ icon: /* @__PURE__ */ jsx(UserIcon, { className: "volr:w-5 volr:h-5 volr:text-slate-600" }),
2992
+ label: t("account.menu.account"),
2993
+ onClick: () => onNavigate("account")
2719
2994
  }
2720
2995
  )
2721
- ] })
2996
+ ] }),
2997
+ /* @__PURE__ */ jsx("div", { className: "volr:mt-4 volr:pt-4 volr:border-t volr:border-slate-100", children: /* @__PURE__ */ jsx(
2998
+ "button",
2999
+ {
3000
+ type: "button",
3001
+ onClick: onLogout,
3002
+ disabled: isLoggingOut,
3003
+ className: "volr:w-full volr:py-2 volr:text-sm volr:text-slate-400 volr:text-center hover:volr:text-slate-600 volr:transition-colors disabled:volr:opacity-50",
3004
+ children: isLoggingOut ? t("common.loading") : t("account.logout")
3005
+ }
3006
+ ) })
2722
3007
  ] });
2723
3008
  }
2724
- function AssetSelectView({
2725
- assets,
2726
- onSelect
3009
+ function TokenRow({ token }) {
3010
+ return /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:justify-between volr:py-3 volr:border-b volr:border-slate-100 last:volr:border-b-0", children: [
3011
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:gap-3", children: [
3012
+ /* @__PURE__ */ jsx("div", { className: "volr:w-8 volr:h-8 volr:rounded-full volr:bg-slate-100 volr:flex volr:items-center volr:justify-center volr:overflow-hidden volr:shrink-0", children: token.iconUrl ? /* @__PURE__ */ jsx(
3013
+ "img",
3014
+ {
3015
+ src: token.iconUrl,
3016
+ alt: token.symbol,
3017
+ className: "volr:w-full volr:h-full volr:object-cover"
3018
+ }
3019
+ ) : /* @__PURE__ */ jsx("span", { className: "volr:text-xs volr:font-medium volr:text-slate-500", children: token.symbol.slice(0, 2) }) }),
3020
+ /* @__PURE__ */ jsxs("div", { children: [
3021
+ /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:font-medium volr:text-slate-900", children: token.symbol }),
3022
+ /* @__PURE__ */ jsxs("p", { className: "volr:text-xs volr:text-slate-400", children: [
3023
+ "Chain ",
3024
+ token.chainId
3025
+ ] })
3026
+ ] })
3027
+ ] }),
3028
+ /* @__PURE__ */ jsx("div", { className: "volr:text-right", children: token.isLoading ? /* @__PURE__ */ jsx("div", { className: "volr:animate-pulse", children: /* @__PURE__ */ jsx("div", { className: "volr:h-4 volr:w-16 volr:bg-slate-200 volr:rounded" }) }) : token.error ? /* @__PURE__ */ jsx("p", { className: "volr:text-xs volr:text-red-500", children: "Error" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
3029
+ /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:font-medium volr:text-slate-900", children: token.balance }),
3030
+ token.balanceUsd !== void 0 && token.balanceUsd > 0 && /* @__PURE__ */ jsxs("p", { className: "volr:text-xs volr:text-slate-400", children: [
3031
+ "$",
3032
+ token.balanceUsd.toFixed(2)
3033
+ ] })
3034
+ ] }) })
3035
+ ] });
3036
+ }
3037
+ function BalanceDetailView({
3038
+ balances,
3039
+ isLoading
2727
3040
  }) {
2728
3041
  const { t } = useI18n();
3042
+ if (isLoading && balances.length === 0) {
3043
+ return /* @__PURE__ */ jsx("div", { className: "volr:py-8", children: /* @__PURE__ */ jsx("div", { className: "volr:animate-pulse volr:space-y-4", children: [1, 2, 3].map((i) => /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:gap-3", children: [
3044
+ /* @__PURE__ */ jsx("div", { className: "volr:w-8 volr:h-8 volr:rounded-full volr:bg-slate-200" }),
3045
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex-1", children: [
3046
+ /* @__PURE__ */ jsx("div", { className: "volr:h-4 volr:w-16 volr:bg-slate-200 volr:rounded volr:mb-1" }),
3047
+ /* @__PURE__ */ jsx("div", { className: "volr:h-3 volr:w-12 volr:bg-slate-100 volr:rounded" })
3048
+ ] }),
3049
+ /* @__PURE__ */ jsx("div", { className: "volr:h-4 volr:w-16 volr:bg-slate-200 volr:rounded" })
3050
+ ] }, i)) }) });
3051
+ }
3052
+ if (balances.length === 0) {
3053
+ return /* @__PURE__ */ jsx("div", { className: "volr:py-12 volr:text-center", children: /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-slate-400", children: t("account.noAssets") }) });
3054
+ }
2729
3055
  return /* @__PURE__ */ jsxs("div", { children: [
2730
- /* @__PURE__ */ jsx("p", { className: "volr:text-xl volr:font-semibold volr:mb-1", children: t("deposit.selectTitle") }),
2731
- /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:mb-4 volr-text-secondary", children: "Supported token" }),
2732
- /* @__PURE__ */ jsx("div", { className: "volr:space-y-3", children: assets.map((a, idx) => {
2733
- const isNative = a.token === "native";
2734
- const tokenSymbol = isNative ? "ETH" : a.token.symbol;
2735
- const tokenName = isNative ? "Ethereum" : a.token.symbol;
2736
- return /* @__PURE__ */ jsxs(
2737
- "button",
3056
+ /* @__PURE__ */ jsx("h2", { className: "volr:text-lg volr:font-semibold volr:text-slate-900 volr:mb-4", children: t("account.menu.assets") }),
3057
+ /* @__PURE__ */ jsx("div", { children: balances.map((token) => /* @__PURE__ */ jsx(TokenRow, { token }, token.id)) })
3058
+ ] });
3059
+ }
3060
+ var Input = React13.forwardRef(
3061
+ ({ leftIcon, error, className, style, disabled, ...props }, ref) => {
3062
+ return /* @__PURE__ */ jsxs("div", { className: "volr:relative", children: [
3063
+ leftIcon && /* @__PURE__ */ jsx("div", { className: "volr:absolute volr:left-3 volr:top-1/2 volr:-translate-y-1/2 volr:pointer-events-none volr-text-muted", children: leftIcon }),
3064
+ /* @__PURE__ */ jsx(
3065
+ "input",
2738
3066
  {
3067
+ ref,
3068
+ disabled,
2739
3069
  className: cn(
2740
- "volr:w-full volr:p-4 volr:rounded-xl volr:border-2",
2741
- "volr:text-left volr:transition-all",
2742
- "volr:flex volr:items-center volr:gap-4",
2743
- "volr-border volr-hover"
3070
+ "volr:w-full volr:text-base volr:outline-none volr:transition-all volr:rounded-lg volr:py-3 volr:disabled:cursor-not-allowed volr:bg-white",
3071
+ "volr:border volr:border-slate-300 focus:volr:border-slate-400 focus:volr:ring-1 focus:volr:ring-slate-400",
3072
+ leftIcon ? "volr:pl-11 volr:pr-3" : "volr:px-3",
3073
+ error && "volr:border-red-500 focus:volr:border-red-500 focus:volr:ring-red-500",
3074
+ className
2744
3075
  ),
2745
- onClick: () => onSelect(idx),
3076
+ style,
3077
+ ...props
3078
+ }
3079
+ )
3080
+ ] });
3081
+ }
3082
+ );
3083
+ Input.displayName = "Input";
3084
+ function WithdrawView({
3085
+ balances,
3086
+ connectedWallet,
3087
+ onSuccess
3088
+ }) {
3089
+ const { t } = useI18n();
3090
+ const { withdraw, isWithdrawing, result, error, reset } = useWithdraw();
3091
+ const [step, setStep] = useState("select");
3092
+ const [selectedTokenId, setSelectedTokenId] = useState(null);
3093
+ const [toAddress, setToAddress] = useState("");
3094
+ const [amount, setAmount] = useState("");
3095
+ const [useConnectedWallet, setUseConnectedWallet] = useState(false);
3096
+ const selectedToken = useMemo(
3097
+ () => balances.find((b) => b.id === selectedTokenId),
3098
+ [balances, selectedTokenId]
3099
+ );
3100
+ const connectedAddress = useMemo(() => {
3101
+ if (!connectedWallet) return null;
3102
+ const parts = connectedWallet.split(":");
3103
+ return parts.length >= 2 ? parts[1] : null;
3104
+ }, [connectedWallet]);
3105
+ const handleSelectToken = (tokenId) => {
3106
+ setSelectedTokenId(tokenId);
3107
+ setStep("input");
3108
+ };
3109
+ const handleUseConnectedWallet = () => {
3110
+ if (connectedAddress) {
3111
+ setToAddress(connectedAddress);
3112
+ setUseConnectedWallet(true);
3113
+ }
3114
+ };
3115
+ const handleConfirm = async () => {
3116
+ if (!selectedToken || !toAddress || !amount) return;
3117
+ setStep("confirm");
3118
+ try {
3119
+ await withdraw({
3120
+ chainId: selectedToken.chainId,
3121
+ tokenAddress: selectedToken.address,
3122
+ decimals: selectedToken.decimals,
3123
+ amount,
3124
+ to: toAddress
3125
+ });
3126
+ setStep("result");
3127
+ } catch {
3128
+ setStep("result");
3129
+ }
3130
+ };
3131
+ const handleReset = () => {
3132
+ reset();
3133
+ setStep("select");
3134
+ setSelectedTokenId(null);
3135
+ setToAddress("");
3136
+ setAmount("");
3137
+ setUseConnectedWallet(false);
3138
+ };
3139
+ const isAmountValid = useMemo(() => {
3140
+ if (!amount || !selectedToken) return false;
3141
+ const num = parseFloat(amount);
3142
+ if (isNaN(num) || num <= 0) return false;
3143
+ const balance = parseFloat(selectedToken.balance.replace(/,/g, ""));
3144
+ return num <= balance;
3145
+ }, [amount, selectedToken]);
3146
+ const isAddressValid = /^0x[a-fA-F0-9]{40}$/.test(toAddress);
3147
+ if (step === "select") {
3148
+ return /* @__PURE__ */ jsxs("div", { children: [
3149
+ /* @__PURE__ */ jsx("h2", { className: "volr:text-lg volr:font-semibold volr:text-slate-900 volr:mb-4", children: t("account.withdraw.selectToken") }),
3150
+ /* @__PURE__ */ jsx("div", { className: "volr:space-y-2", children: balances.map((token) => /* @__PURE__ */ jsxs(
3151
+ "button",
3152
+ {
3153
+ type: "button",
3154
+ onClick: () => handleSelectToken(token.id),
3155
+ disabled: token.balanceRaw === 0n,
3156
+ className: "volr:w-full volr:flex volr:items-center volr:justify-between volr:p-3 volr:rounded-lg volr:border volr:border-slate-200 hover:volr:bg-slate-50 volr:transition-colors disabled:volr:opacity-50 disabled:volr:cursor-not-allowed",
2746
3157
  children: [
2747
- /* @__PURE__ */ jsx("div", { className: "volr:shrink-0", children: !isNative && a.token.iconUrl ? /* @__PURE__ */ jsx(
2748
- "img",
2749
- {
2750
- alt: a.token.symbol,
2751
- src: a.token.iconUrl,
2752
- className: "volr:w-10 volr:h-10 volr:rounded-full volr:border volr-border"
2753
- }
2754
- ) : /* @__PURE__ */ jsx("div", { className: "volr:w-10 volr:h-10 volr:rounded-full volr:flex volr:items-center volr:justify-center volr:text-white volr:font-bold volr:text-sm volr-bg-tertiary", children: tokenSymbol.slice(0, 2) }) }),
2755
- /* @__PURE__ */ jsxs("div", { className: "volr:flex-1 volr:min-w-0", children: [
2756
- /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:gap-2 volr:mb-1", children: [
2757
- /* @__PURE__ */ jsx("span", { className: "volr:text-base volr:font-semibold", children: tokenSymbol }),
3158
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:gap-3", children: [
3159
+ /* @__PURE__ */ jsx("div", { className: "volr:w-8 volr:h-8 volr:rounded-full volr:bg-slate-100 volr:flex volr:items-center volr:justify-center volr:overflow-hidden", children: token.iconUrl ? /* @__PURE__ */ jsx(
3160
+ "img",
3161
+ {
3162
+ src: token.iconUrl,
3163
+ alt: token.symbol,
3164
+ className: "volr:w-full volr:h-full volr:object-cover"
3165
+ }
3166
+ ) : /* @__PURE__ */ jsx("span", { className: "volr:text-xs volr:font-medium volr:text-slate-500", children: token.symbol.slice(0, 2) }) }),
3167
+ /* @__PURE__ */ jsx("span", { className: "volr:text-sm volr:font-medium volr:text-slate-900", children: token.symbol })
3168
+ ] }),
3169
+ /* @__PURE__ */ jsx("span", { className: "volr:text-sm volr:text-slate-500", children: token.balance })
3170
+ ]
3171
+ },
3172
+ token.id
3173
+ )) })
3174
+ ] });
3175
+ }
3176
+ if (step === "input" && selectedToken) {
3177
+ return /* @__PURE__ */ jsxs("div", { children: [
3178
+ /* @__PURE__ */ jsx("h2", { className: "volr:text-lg volr:font-semibold volr:text-slate-900 volr:mb-4", children: t("account.withdraw.title") }),
3179
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:gap-3 volr:p-3 volr:rounded-lg volr:bg-slate-50 volr:mb-4", children: [
3180
+ /* @__PURE__ */ jsx("div", { className: "volr:w-8 volr:h-8 volr:rounded-full volr:bg-slate-200 volr:flex volr:items-center volr:justify-center volr:overflow-hidden", children: selectedToken.iconUrl ? /* @__PURE__ */ jsx(
3181
+ "img",
3182
+ {
3183
+ src: selectedToken.iconUrl,
3184
+ alt: selectedToken.symbol,
3185
+ className: "volr:w-full volr:h-full volr:object-cover"
3186
+ }
3187
+ ) : /* @__PURE__ */ jsx("span", { className: "volr:text-xs volr:font-medium volr:text-slate-500", children: selectedToken.symbol.slice(0, 2) }) }),
3188
+ /* @__PURE__ */ jsxs("div", { children: [
3189
+ /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:font-medium volr:text-slate-900", children: selectedToken.symbol }),
3190
+ /* @__PURE__ */ jsxs("p", { className: "volr:text-xs volr:text-slate-400", children: [
3191
+ t("account.withdraw.available"),
3192
+ ": ",
3193
+ selectedToken.balance
3194
+ ] })
3195
+ ] })
3196
+ ] }),
3197
+ /* @__PURE__ */ jsxs("div", { className: "volr:mb-4", children: [
3198
+ /* @__PURE__ */ jsx("label", { className: "volr:block volr:text-sm volr:text-slate-600 volr:mb-2", children: t("account.withdraw.toAddress") }),
3199
+ /* @__PURE__ */ jsx(
3200
+ Input,
3201
+ {
3202
+ type: "text",
3203
+ placeholder: "0x...",
3204
+ value: toAddress,
3205
+ onChange: (e) => {
3206
+ setToAddress(e.target.value);
3207
+ setUseConnectedWallet(false);
3208
+ }
3209
+ }
3210
+ ),
3211
+ connectedAddress && !useConnectedWallet && /* @__PURE__ */ jsx(
3212
+ "button",
3213
+ {
3214
+ type: "button",
3215
+ onClick: handleUseConnectedWallet,
3216
+ className: "volr:mt-2 volr:text-xs volr:text-slate-500 hover:volr:text-slate-700 volr:underline",
3217
+ children: t("account.withdraw.useConnectedWallet")
3218
+ }
3219
+ )
3220
+ ] }),
3221
+ /* @__PURE__ */ jsxs("div", { className: "volr:mb-6", children: [
3222
+ /* @__PURE__ */ jsx("label", { className: "volr:block volr:text-sm volr:text-slate-600 volr:mb-2", children: t("account.withdraw.amount") }),
3223
+ /* @__PURE__ */ jsxs("div", { className: "volr:relative", children: [
3224
+ /* @__PURE__ */ jsx(
3225
+ Input,
3226
+ {
3227
+ type: "text",
3228
+ inputMode: "decimal",
3229
+ placeholder: "0.00",
3230
+ value: amount,
3231
+ onChange: (e) => setAmount(e.target.value)
3232
+ }
3233
+ ),
3234
+ /* @__PURE__ */ jsx(
3235
+ "button",
3236
+ {
3237
+ type: "button",
3238
+ onClick: () => setAmount(selectedToken.balance.replace(/,/g, "")),
3239
+ className: "volr:absolute volr:right-3 volr:top-1/2 volr:-translate-y-1/2 volr:text-xs volr:text-slate-500 hover:volr:text-slate-700 volr:font-medium",
3240
+ children: "MAX"
3241
+ }
3242
+ )
3243
+ ] })
3244
+ ] }),
3245
+ /* @__PURE__ */ jsx(
3246
+ Button,
3247
+ {
3248
+ onClick: handleConfirm,
3249
+ disabled: !isAddressValid || !isAmountValid,
3250
+ fullWidth: true,
3251
+ children: t("account.withdraw.confirm")
3252
+ }
3253
+ )
3254
+ ] });
3255
+ }
3256
+ if (step === "confirm" && selectedToken) {
3257
+ return /* @__PURE__ */ jsxs("div", { className: "volr:py-8 volr:text-center", children: [
3258
+ /* @__PURE__ */ jsx("div", { className: "volr:animate-spin volr:w-8 volr:h-8 volr:border-2 volr:border-slate-200 volr:border-t-slate-600 volr:rounded-full volr:mx-auto volr:mb-4" }),
3259
+ /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-slate-600", children: t("account.withdraw.processing") })
3260
+ ] });
3261
+ }
3262
+ if (step === "result") {
3263
+ const isSuccess = result && !error;
3264
+ return /* @__PURE__ */ jsxs("div", { className: "volr:py-8 volr:text-center", children: [
3265
+ isSuccess ? /* @__PURE__ */ jsxs(Fragment, { children: [
3266
+ /* @__PURE__ */ jsx("div", { className: "volr:w-12 volr:h-12 volr:rounded-full volr:bg-green-100 volr:flex volr:items-center volr:justify-center volr:mx-auto volr:mb-4", children: /* @__PURE__ */ jsx(
3267
+ "svg",
3268
+ {
3269
+ className: "volr:w-6 volr:h-6 volr:text-green-600",
3270
+ fill: "none",
3271
+ viewBox: "0 0 24 24",
3272
+ stroke: "currentColor",
3273
+ children: /* @__PURE__ */ jsx(
3274
+ "path",
3275
+ {
3276
+ strokeLinecap: "round",
3277
+ strokeLinejoin: "round",
3278
+ strokeWidth: 2,
3279
+ d: "M5 13l4 4L19 7"
3280
+ }
3281
+ )
3282
+ }
3283
+ ) }),
3284
+ /* @__PURE__ */ jsx("p", { className: "volr:text-lg volr:font-semibold volr:text-slate-900 volr:mb-2", children: t("account.withdraw.success") }),
3285
+ /* @__PURE__ */ jsxs("p", { className: "volr:text-sm volr:text-slate-500 volr:mb-6", children: [
3286
+ amount,
3287
+ " ",
3288
+ selectedToken?.symbol,
3289
+ " ",
3290
+ t("account.withdraw.sent")
3291
+ ] })
3292
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
3293
+ /* @__PURE__ */ jsx("div", { className: "volr:w-12 volr:h-12 volr:rounded-full volr:bg-red-100 volr:flex volr:items-center volr:justify-center volr:mx-auto volr:mb-4", children: /* @__PURE__ */ jsx(
3294
+ "svg",
3295
+ {
3296
+ className: "volr:w-6 volr:h-6 volr:text-red-600",
3297
+ fill: "none",
3298
+ viewBox: "0 0 24 24",
3299
+ stroke: "currentColor",
3300
+ children: /* @__PURE__ */ jsx(
3301
+ "path",
3302
+ {
3303
+ strokeLinecap: "round",
3304
+ strokeLinejoin: "round",
3305
+ strokeWidth: 2,
3306
+ d: "M6 18L18 6M6 6l12 12"
3307
+ }
3308
+ )
3309
+ }
3310
+ ) }),
3311
+ /* @__PURE__ */ jsx("p", { className: "volr:text-lg volr:font-semibold volr:text-slate-900 volr:mb-2", children: t("account.withdraw.failed") }),
3312
+ /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-red-500 volr:mb-6", children: error?.message || t("account.withdraw.unknownError") })
3313
+ ] }),
3314
+ /* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: isSuccess ? onSuccess : handleReset, fullWidth: true, children: isSuccess ? t("common.done") : t("common.tryAgain") })
3315
+ ] });
3316
+ }
3317
+ return null;
3318
+ }
3319
+ function PaymentRow({ payment, onClick }) {
3320
+ const { t } = useI18n();
3321
+ const date = new Date(payment.createdAt);
3322
+ const formattedDate = date.toLocaleDateString(void 0, {
3323
+ month: "short",
3324
+ day: "numeric",
3325
+ year: "numeric"
3326
+ });
3327
+ const statusColors = {
3328
+ CONFIRMED: "volr:bg-green-100 volr:text-green-700",
3329
+ PENDING: "volr:bg-yellow-100 volr:text-yellow-700",
3330
+ PROCESSING: "volr:bg-blue-100 volr:text-blue-700",
3331
+ FAILED: "volr:bg-red-100 volr:text-red-700",
3332
+ CANCELLED: "volr:bg-slate-100 volr:text-slate-500",
3333
+ EXPIRED: "volr:bg-slate-100 volr:text-slate-500"
3334
+ };
3335
+ return /* @__PURE__ */ jsxs(
3336
+ "button",
3337
+ {
3338
+ type: "button",
3339
+ onClick,
3340
+ className: "volr:w-full volr:flex volr:items-center volr:justify-between volr:py-3 volr:border-b volr:border-slate-100 hover:volr:bg-slate-50 volr:transition-colors volr:text-left",
3341
+ children: [
3342
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex-1 volr:min-w-0", children: [
3343
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:gap-2 volr:mb-1", children: [
3344
+ /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:font-medium volr:text-slate-900 volr:truncate", children: payment.itemName || t("account.payments.payment") }),
3345
+ /* @__PURE__ */ jsx(
3346
+ "span",
3347
+ {
3348
+ className: `volr:px-1.5 volr:py-0.5 volr:text-xs volr:font-medium volr:rounded ${statusColors[payment.status] || "volr:bg-slate-100 volr:text-slate-500"}`,
3349
+ children: payment.status
3350
+ }
3351
+ )
3352
+ ] }),
3353
+ /* @__PURE__ */ jsx("p", { className: "volr:text-xs volr:text-slate-400", children: formattedDate })
3354
+ ] }),
3355
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:gap-2", children: [
3356
+ /* @__PURE__ */ jsxs("div", { className: "volr:text-right", children: [
3357
+ /* @__PURE__ */ jsxs("p", { className: "volr:text-sm volr:font-medium volr:text-slate-900", children: [
3358
+ payment.amount,
3359
+ " ",
3360
+ payment.token.symbol
3361
+ ] }),
3362
+ payment.totalUsd && /* @__PURE__ */ jsxs("p", { className: "volr:text-xs volr:text-slate-400", children: [
3363
+ "$",
3364
+ parseFloat(payment.totalUsd).toFixed(2)
3365
+ ] })
3366
+ ] }),
3367
+ /* @__PURE__ */ jsx(ChevronRightIcon, { className: "volr:w-4 volr:h-4 volr:text-slate-300" })
3368
+ ] })
3369
+ ]
3370
+ }
3371
+ );
3372
+ }
3373
+ function PaymentHistoryView({ onSelectPayment }) {
3374
+ const { t } = useI18n();
3375
+ const { getPaymentHistory, isLoading: isApiLoading } = useVolrPaymentApi();
3376
+ const [payments, setPayments] = useState([]);
3377
+ const [isLoading, setIsLoading] = useState(true);
3378
+ const [error, setError] = useState(null);
3379
+ useEffect(() => {
3380
+ setIsLoading(true);
3381
+ setError(null);
3382
+ getPaymentHistory({ take: 20 }).then((result) => {
3383
+ setPayments(result.payments);
3384
+ }).catch((err) => {
3385
+ console.error("[PaymentHistoryView] Failed to fetch payments:", err);
3386
+ setError(t("account.payments.fetchError"));
3387
+ }).finally(() => {
3388
+ setIsLoading(false);
3389
+ });
3390
+ }, [getPaymentHistory, t]);
3391
+ if (isLoading || isApiLoading) {
3392
+ return /* @__PURE__ */ jsx("div", { className: "volr:py-8", children: /* @__PURE__ */ jsx("div", { className: "volr:animate-pulse volr:space-y-4", children: [1, 2, 3].map((i) => /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:justify-between volr:py-3", children: [
3393
+ /* @__PURE__ */ jsxs("div", { children: [
3394
+ /* @__PURE__ */ jsx("div", { className: "volr:h-4 volr:w-32 volr:bg-slate-200 volr:rounded volr:mb-2" }),
3395
+ /* @__PURE__ */ jsx("div", { className: "volr:h-3 volr:w-20 volr:bg-slate-100 volr:rounded" })
3396
+ ] }),
3397
+ /* @__PURE__ */ jsx("div", { className: "volr:h-4 volr:w-16 volr:bg-slate-200 volr:rounded" })
3398
+ ] }, i)) }) });
3399
+ }
3400
+ if (error) {
3401
+ return /* @__PURE__ */ jsx("div", { className: "volr:py-12 volr:text-center", children: /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-red-500", children: error }) });
3402
+ }
3403
+ if (payments.length === 0) {
3404
+ return /* @__PURE__ */ jsx("div", { className: "volr:py-12 volr:text-center", children: /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-slate-400", children: t("account.payments.noPayments") }) });
3405
+ }
3406
+ return /* @__PURE__ */ jsxs("div", { children: [
3407
+ /* @__PURE__ */ jsx("h2", { className: "volr:text-lg volr:font-semibold volr:text-slate-900 volr:mb-4", children: t("account.menu.payments") }),
3408
+ /* @__PURE__ */ jsx("div", { children: payments.map((payment) => /* @__PURE__ */ jsx(
3409
+ PaymentRow,
3410
+ {
3411
+ payment,
3412
+ onClick: () => onSelectPayment(payment)
3413
+ },
3414
+ payment.id
3415
+ )) })
3416
+ ] });
3417
+ }
3418
+ function DetailRow({ label, value, copyable, mono }) {
3419
+ return /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-start volr:justify-between volr:py-2 volr:border-b volr:border-slate-100 last:volr:border-b-0", children: [
3420
+ /* @__PURE__ */ jsx("span", { className: "volr:text-sm volr:text-slate-500", children: label }),
3421
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:gap-2", children: [
3422
+ /* @__PURE__ */ jsx(
3423
+ "span",
3424
+ {
3425
+ className: `volr:text-sm volr:text-slate-900 volr:text-right ${mono ? "volr:font-mono" : ""}`,
3426
+ children: value
3427
+ }
3428
+ ),
3429
+ copyable && /* @__PURE__ */ jsx(CopyButton, { text: value, className: "volr:shrink-0" })
3430
+ ] })
3431
+ ] });
3432
+ }
3433
+ function PaymentDetailView({ payment }) {
3434
+ const { t } = useI18n();
3435
+ const createdDate = new Date(payment.createdAt);
3436
+ const formattedCreatedAt = createdDate.toLocaleString(void 0, {
3437
+ year: "numeric",
3438
+ month: "short",
3439
+ day: "numeric",
3440
+ hour: "2-digit",
3441
+ minute: "2-digit"
3442
+ });
3443
+ const confirmedDate = payment.confirmedAt ? new Date(payment.confirmedAt) : null;
3444
+ const formattedConfirmedAt = confirmedDate ? confirmedDate.toLocaleString(void 0, {
3445
+ year: "numeric",
3446
+ month: "short",
3447
+ day: "numeric",
3448
+ hour: "2-digit",
3449
+ minute: "2-digit"
3450
+ }) : null;
3451
+ const statusColors = {
3452
+ CONFIRMED: "volr:bg-green-100 volr:text-green-700",
3453
+ PENDING: "volr:bg-yellow-100 volr:text-yellow-700",
3454
+ PROCESSING: "volr:bg-blue-100 volr:text-blue-700",
3455
+ FAILED: "volr:bg-red-100 volr:text-red-700",
3456
+ CANCELLED: "volr:bg-slate-100 volr:text-slate-500",
3457
+ EXPIRED: "volr:bg-slate-100 volr:text-slate-500"
3458
+ };
3459
+ const truncateHash = (hash) => {
3460
+ if (hash.length <= 16) return hash;
3461
+ return `${hash.slice(0, 8)}...${hash.slice(-6)}`;
3462
+ };
3463
+ return /* @__PURE__ */ jsxs("div", { children: [
3464
+ /* @__PURE__ */ jsxs("div", { className: "volr:mb-6", children: [
3465
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:gap-2 volr:mb-2", children: [
3466
+ /* @__PURE__ */ jsx("h2", { className: "volr:text-lg volr:font-semibold volr:text-slate-900", children: payment.itemName || t("account.payments.payment") }),
3467
+ /* @__PURE__ */ jsx(
3468
+ "span",
3469
+ {
3470
+ className: `volr:px-2 volr:py-0.5 volr:text-xs volr:font-medium volr:rounded ${statusColors[payment.status] || "volr:bg-slate-100 volr:text-slate-500"}`,
3471
+ children: payment.status
3472
+ }
3473
+ )
3474
+ ] }),
3475
+ payment.itemDescription && /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-slate-500", children: payment.itemDescription })
3476
+ ] }),
3477
+ /* @__PURE__ */ jsxs("div", { className: "volr:py-4 volr:mb-4 volr:border-y volr:border-slate-100", children: [
3478
+ /* @__PURE__ */ jsxs("p", { className: "volr:text-2xl volr:font-semibold volr:text-slate-900", children: [
3479
+ payment.amount,
3480
+ " ",
3481
+ payment.token.symbol
3482
+ ] }),
3483
+ payment.totalUsd && /* @__PURE__ */ jsxs("p", { className: "volr:text-sm volr:text-slate-500", children: [
3484
+ "\u2248 $",
3485
+ parseFloat(payment.totalUsd).toFixed(2),
3486
+ " USD"
3487
+ ] })
3488
+ ] }),
3489
+ /* @__PURE__ */ jsxs("div", { className: "volr:space-y-1", children: [
3490
+ /* @__PURE__ */ jsx(DetailRow, { label: t("account.payments.createdAt"), value: formattedCreatedAt }),
3491
+ formattedConfirmedAt && /* @__PURE__ */ jsx(DetailRow, { label: t("account.payments.confirmedAt"), value: formattedConfirmedAt }),
3492
+ /* @__PURE__ */ jsx(
3493
+ DetailRow,
3494
+ {
3495
+ label: t("account.payments.token"),
3496
+ value: `${payment.token.symbol} (Chain ${payment.token.chainId})`
3497
+ }
3498
+ ),
3499
+ payment.txHash && /* @__PURE__ */ jsx(
3500
+ DetailRow,
3501
+ {
3502
+ label: t("account.payments.txHash"),
3503
+ value: truncateHash(payment.txHash),
3504
+ copyable: true,
3505
+ mono: true
3506
+ }
3507
+ ),
3508
+ payment.referenceId && /* @__PURE__ */ jsx(
3509
+ DetailRow,
3510
+ {
3511
+ label: t("account.payments.referenceId"),
3512
+ value: payment.referenceId,
3513
+ copyable: true
3514
+ }
3515
+ )
3516
+ ] }),
3517
+ payment.itemImage && /* @__PURE__ */ jsx("div", { className: "volr:mt-6", children: /* @__PURE__ */ jsx(
3518
+ "img",
3519
+ {
3520
+ src: payment.itemImage,
3521
+ alt: payment.itemName || "Item",
3522
+ className: "volr:w-full volr:h-40 volr:object-cover volr:rounded-lg"
3523
+ }
3524
+ ) })
3525
+ ] });
3526
+ }
3527
+ function InfoRow({ label, value, copyable, mono }) {
3528
+ return /* @__PURE__ */ jsxs("div", { className: "volr:py-3 volr:border-b volr:border-slate-100 last:volr:border-b-0", children: [
3529
+ /* @__PURE__ */ jsx("p", { className: "volr:text-xs volr:text-slate-400 volr:mb-1", children: label }),
3530
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:justify-between volr:gap-2", children: [
3531
+ /* @__PURE__ */ jsx(
3532
+ "p",
3533
+ {
3534
+ className: `volr:text-sm volr:text-slate-900 volr:break-all ${mono ? "volr:font-mono" : ""}`,
3535
+ children: value
3536
+ }
3537
+ ),
3538
+ copyable && /* @__PURE__ */ jsx(CopyButton, { text: value, className: "volr:shrink-0" })
3539
+ ] })
3540
+ ] });
3541
+ }
3542
+ function AccountInfoView({ user }) {
3543
+ const { t } = useI18n();
3544
+ const getLoginMethod = () => {
3545
+ if (user.authWallet) {
3546
+ return t("account.info.loginMethod.wallet");
3547
+ }
3548
+ if (user.email?.includes("@google.")) {
3549
+ return t("account.info.loginMethod.google");
3550
+ }
3551
+ if (user.email?.includes("@twitter.") || user.email?.includes("@x.")) {
3552
+ return t("account.info.loginMethod.twitter");
3553
+ }
3554
+ if (user.email?.includes("@wallet.")) {
3555
+ return t("account.info.loginMethod.wallet");
3556
+ }
3557
+ return t("account.info.loginMethod.email");
3558
+ };
3559
+ const formatAddress = (address) => {
3560
+ if (address.length <= 16) return address;
3561
+ return `${address.slice(0, 6)}...${address.slice(-4)}`;
3562
+ };
3563
+ const externalWallet = user.authWallet ? user.authWallet.split(":")[1] || user.authWallet : null;
3564
+ return /* @__PURE__ */ jsxs("div", { children: [
3565
+ /* @__PURE__ */ jsx("h2", { className: "volr:text-lg volr:font-semibold volr:text-slate-900 volr:mb-4", children: t("account.menu.account") }),
3566
+ /* @__PURE__ */ jsxs("div", { children: [
3567
+ /* @__PURE__ */ jsx(InfoRow, { label: t("account.info.loginMethod.label"), value: getLoginMethod() }),
3568
+ user.email && !user.email.includes("@wallet.") && /* @__PURE__ */ jsx(InfoRow, { label: t("account.email"), value: user.email }),
3569
+ user.evmAddress && /* @__PURE__ */ jsx(
3570
+ InfoRow,
3571
+ {
3572
+ label: t("account.walletAddress"),
3573
+ value: formatAddress(user.evmAddress),
3574
+ copyable: true,
3575
+ mono: true
3576
+ }
3577
+ ),
3578
+ externalWallet && /* @__PURE__ */ jsx(
3579
+ InfoRow,
3580
+ {
3581
+ label: t("account.info.connectedWallet"),
3582
+ value: formatAddress(externalWallet),
3583
+ copyable: true,
3584
+ mono: true
3585
+ }
3586
+ ),
3587
+ user.signerType && /* @__PURE__ */ jsx(
3588
+ InfoRow,
3589
+ {
3590
+ label: t("account.info.signerType"),
3591
+ value: user.signerType === "passkey" ? "Passkey" : user.signerType
3592
+ }
3593
+ )
3594
+ ] })
3595
+ ] });
3596
+ }
3597
+ function AccountModal({ isOpen, onClose, onError }) {
3598
+ const { user, logout } = useVolrContext();
3599
+ const { balances, totalUsd, isLoading, paymentEnabled, refresh } = useUserBalances();
3600
+ const [currentView, setCurrentView] = useState("main");
3601
+ const [selectedPayment, setSelectedPayment] = useState(null);
3602
+ const [isLoggingOut, setIsLoggingOut] = useState(false);
3603
+ const handleOpenChange = useCallback((open) => {
3604
+ if (!open) {
3605
+ onClose();
3606
+ setTimeout(() => {
3607
+ setCurrentView("main");
3608
+ setSelectedPayment(null);
3609
+ }, 200);
3610
+ }
3611
+ }, [onClose]);
3612
+ if (!user) {
3613
+ return /* @__PURE__ */ jsx(SigninModal, { isOpen, onClose, onError });
3614
+ }
3615
+ if (!user.keyStorageType) {
3616
+ const handlePasskeyComplete = () => {
3617
+ onClose();
3618
+ };
3619
+ const handlePasskeyError = (error) => {
3620
+ if (onError) onError(error);
3621
+ };
3622
+ const handleLogoutFromPasskey = async () => {
3623
+ try {
3624
+ await logout();
3625
+ onClose();
3626
+ } catch (error) {
3627
+ if (onError) {
3628
+ onError(error instanceof Error ? error : new Error("Logout failed"));
3629
+ }
3630
+ }
3631
+ };
3632
+ return /* @__PURE__ */ jsx(Modal, { open: isOpen, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsx(
3633
+ PasskeyEnrollView,
3634
+ {
3635
+ wrapInModal: false,
3636
+ onComplete: handlePasskeyComplete,
3637
+ onError: handlePasskeyError,
3638
+ onLogout: handleLogoutFromPasskey,
3639
+ onClose
3640
+ }
3641
+ ) });
3642
+ }
3643
+ const handleLogout = async () => {
3644
+ setIsLoggingOut(true);
3645
+ try {
3646
+ await logout();
3647
+ onClose();
3648
+ } catch (error) {
3649
+ if (onError) {
3650
+ onError(error instanceof Error ? error : new Error("Logout failed"));
3651
+ }
3652
+ } finally {
3653
+ setIsLoggingOut(false);
3654
+ }
3655
+ };
3656
+ const handleNavigate = (view) => {
3657
+ setCurrentView(view);
3658
+ };
3659
+ const handleBack = () => {
3660
+ if (selectedPayment) {
3661
+ setSelectedPayment(null);
3662
+ setCurrentView("payments");
3663
+ } else {
3664
+ setCurrentView("main");
3665
+ }
3666
+ };
3667
+ const handleSelectPayment = (payment) => {
3668
+ setSelectedPayment(payment);
3669
+ };
3670
+ const handleWithdrawSuccess = () => {
3671
+ refresh();
3672
+ setCurrentView("main");
3673
+ };
3674
+ const showBack = currentView !== "main" || selectedPayment !== null;
3675
+ const renderContent = () => {
3676
+ if (selectedPayment) {
3677
+ return /* @__PURE__ */ jsx(PaymentDetailView, { payment: selectedPayment });
3678
+ }
3679
+ switch (currentView) {
3680
+ case "main":
3681
+ return /* @__PURE__ */ jsx(
3682
+ AccountMainView,
3683
+ {
3684
+ totalUsd,
3685
+ balances,
3686
+ isLoading,
3687
+ paymentEnabled,
3688
+ onNavigate: handleNavigate,
3689
+ onLogout: handleLogout,
3690
+ isLoggingOut
3691
+ }
3692
+ );
3693
+ case "assets":
3694
+ return /* @__PURE__ */ jsx(BalanceDetailView, { balances, isLoading });
3695
+ case "withdraw":
3696
+ return /* @__PURE__ */ jsx(
3697
+ WithdrawView,
3698
+ {
3699
+ balances,
3700
+ connectedWallet: user.authWallet,
3701
+ onSuccess: handleWithdrawSuccess
3702
+ }
3703
+ );
3704
+ case "payments":
3705
+ return /* @__PURE__ */ jsx(PaymentHistoryView, { onSelectPayment: handleSelectPayment });
3706
+ case "account":
3707
+ return /* @__PURE__ */ jsx(AccountInfoView, { user });
3708
+ default:
3709
+ return null;
3710
+ }
3711
+ };
3712
+ return /* @__PURE__ */ jsxs(Modal, { open: isOpen, onOpenChange: handleOpenChange, children: [
3713
+ /* @__PURE__ */ jsx(
3714
+ ModalHeader,
3715
+ {
3716
+ back: showBack,
3717
+ onBack: showBack ? handleBack : void 0,
3718
+ onClose
3719
+ }
3720
+ ),
3721
+ renderContent()
3722
+ ] });
3723
+ }
3724
+ function AssetSelectView({
3725
+ assets,
3726
+ onSelect
3727
+ }) {
3728
+ const { t } = useI18n();
3729
+ return /* @__PURE__ */ jsxs("div", { children: [
3730
+ /* @__PURE__ */ jsx("p", { className: "volr:text-xl volr:font-semibold volr:mb-1", children: t("deposit.selectTitle") }),
3731
+ /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:mb-4 volr-text-secondary", children: "Supported token" }),
3732
+ /* @__PURE__ */ jsx("div", { className: "volr:space-y-3", children: assets.map((a, idx) => {
3733
+ const isNative = a.token === "native";
3734
+ const tokenSymbol = isNative ? "ETH" : a.token.symbol;
3735
+ const tokenName = isNative ? "Ethereum" : a.token.symbol;
3736
+ return /* @__PURE__ */ jsxs(
3737
+ "button",
3738
+ {
3739
+ className: cn(
3740
+ "volr:w-full volr:p-4 volr:rounded-xl volr:border-2",
3741
+ "volr:text-left volr:transition-all",
3742
+ "volr:flex volr:items-center volr:gap-4",
3743
+ "volr-border volr-hover"
3744
+ ),
3745
+ onClick: () => onSelect(idx),
3746
+ children: [
3747
+ /* @__PURE__ */ jsx("div", { className: "volr:shrink-0", children: !isNative && a.token.iconUrl ? /* @__PURE__ */ jsx(
3748
+ "img",
3749
+ {
3750
+ alt: a.token.symbol,
3751
+ src: a.token.iconUrl,
3752
+ className: "volr:w-10 volr:h-10 volr:rounded-full volr:border volr-border"
3753
+ }
3754
+ ) : /* @__PURE__ */ jsx("div", { className: "volr:w-10 volr:h-10 volr:rounded-full volr:flex volr:items-center volr:justify-center volr:text-white volr:font-bold volr:text-sm volr-bg-tertiary", children: tokenSymbol.slice(0, 2) }) }),
3755
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex-1 volr:min-w-0", children: [
3756
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:gap-2 volr:mb-1", children: [
3757
+ /* @__PURE__ */ jsx("span", { className: "volr:text-base volr:font-semibold", children: tokenSymbol }),
2758
3758
  /* @__PURE__ */ jsxs("span", { className: "volr:text-xs volr:px-2 volr:py-0.5 volr:rounded-full volr:font-medium volr-bg-secondary volr-text-secondary", children: [
2759
3759
  "Chain ",
2760
3760
  a.chainId
@@ -2766,42 +3766,419 @@ function AssetSelectView({
2766
3766
  /* @__PURE__ */ jsx("div", { className: "volr:shrink-0 volr-text-muted", children: /* @__PURE__ */ jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx("polyline", { points: "9 18 15 12 9 6" }) }) })
2767
3767
  ]
2768
3768
  },
2769
- `${a.chainId}-${idx}`
2770
- );
2771
- }) })
3769
+ `${a.chainId}-${idx}`
3770
+ );
3771
+ }) })
3772
+ ] });
3773
+ }
3774
+ var TextLinkButton = React13.forwardRef(({ showArrow = false, className, children, ...props }, ref) => {
3775
+ return /* @__PURE__ */ jsxs(
3776
+ "button",
3777
+ {
3778
+ ref,
3779
+ type: "button",
3780
+ className: cn(
3781
+ "volr:underline volr:transition-colors volr-text-secondary",
3782
+ className
3783
+ ),
3784
+ ...props,
3785
+ children: [
3786
+ children,
3787
+ showArrow && " \u2192"
3788
+ ]
3789
+ }
3790
+ );
3791
+ });
3792
+ TextLinkButton.displayName = "TextLinkButton";
3793
+ var OtherTokenModal = ({
3794
+ open,
3795
+ onOpenChange
3796
+ }) => {
3797
+ return /* @__PURE__ */ jsxs(Modal, { open, onOpenChange, children: [
3798
+ /* @__PURE__ */ jsx(ModalHeader, { onClose: () => onOpenChange(false) }),
3799
+ /* @__PURE__ */ jsxs("div", { className: "volr:text-center", children: [
3800
+ /* @__PURE__ */ jsx("p", { className: "volr:text-lg volr:font-semibold volr:mb-2", children: "Coming Soon" }),
3801
+ /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr-text-secondary", children: "Swap and bridge recommendations will be available here soon." })
3802
+ ] })
3803
+ ] });
3804
+ };
3805
+
3806
+ // ../node_modules/viem/_esm/errors/unit.js
3807
+ init_base();
3808
+ var InvalidDecimalNumberError = class extends BaseError {
3809
+ constructor({ value }) {
3810
+ super(`Number \`${value}\` is not a valid decimal number.`, {
3811
+ name: "InvalidDecimalNumberError"
3812
+ });
3813
+ }
3814
+ };
3815
+
3816
+ // ../node_modules/viem/_esm/utils/unit/parseUnits.js
3817
+ function parseUnits(value, decimals) {
3818
+ if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
3819
+ throw new InvalidDecimalNumberError({ value });
3820
+ let [integer, fraction = "0"] = value.split(".");
3821
+ const negative = integer.startsWith("-");
3822
+ if (negative)
3823
+ integer = integer.slice(1);
3824
+ fraction = fraction.replace(/(0+)$/, "");
3825
+ if (decimals === 0) {
3826
+ if (Math.round(Number(`.${fraction}`)) === 1)
3827
+ integer = `${BigInt(integer) + 1n}`;
3828
+ fraction = "";
3829
+ } else if (fraction.length > decimals) {
3830
+ const [left, unit, right] = [
3831
+ fraction.slice(0, decimals - 1),
3832
+ fraction.slice(decimals - 1, decimals),
3833
+ fraction.slice(decimals)
3834
+ ];
3835
+ const rounded = Math.round(Number(`${unit}.${right}`));
3836
+ if (rounded > 9)
3837
+ fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
3838
+ else
3839
+ fraction = `${left}${rounded}`;
3840
+ if (fraction.length > decimals) {
3841
+ fraction = fraction.slice(1);
3842
+ integer = `${BigInt(integer) + 1n}`;
3843
+ }
3844
+ fraction = fraction.slice(0, decimals);
3845
+ } else {
3846
+ fraction = fraction.padEnd(decimals, "0");
3847
+ }
3848
+ return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
3849
+ }
3850
+
3851
+ // ../node_modules/viem/_esm/index.js
3852
+ init_abis();
3853
+ init_formatUnits();
3854
+ var DefaultWalletIcon2 = () => /* @__PURE__ */ jsxs(
3855
+ "svg",
3856
+ {
3857
+ className: "volr:w-6 volr:h-6",
3858
+ viewBox: "0 0 24 24",
3859
+ fill: "none",
3860
+ xmlns: "http://www.w3.org/2000/svg",
3861
+ children: [
3862
+ /* @__PURE__ */ jsx(
3863
+ "rect",
3864
+ {
3865
+ x: "2",
3866
+ y: "6",
3867
+ width: "20",
3868
+ height: "14",
3869
+ rx: "2",
3870
+ stroke: "currentColor",
3871
+ strokeWidth: "1.5"
3872
+ }
3873
+ ),
3874
+ /* @__PURE__ */ jsx(
3875
+ "path",
3876
+ {
3877
+ d: "M17 12.5C17 13.3284 16.3284 14 15.5 14C14.6716 14 14 13.3284 14 12.5C14 11.6716 14.6716 11 15.5 11C16.3284 11 17 11.6716 17 12.5Z",
3878
+ fill: "currentColor"
3879
+ }
3880
+ ),
3881
+ /* @__PURE__ */ jsx(
3882
+ "path",
3883
+ {
3884
+ d: "M6 6V5C6 3.89543 6.89543 3 8 3H16C17.1046 3 18 3.89543 18 5V6",
3885
+ stroke: "currentColor",
3886
+ strokeWidth: "1.5"
3887
+ }
3888
+ )
3889
+ ]
3890
+ }
3891
+ );
3892
+ function WalletTransferView({
3893
+ chainId,
3894
+ asset,
3895
+ destinationAddress,
3896
+ onBack,
3897
+ onSuccess
3898
+ }) {
3899
+ const { t } = useI18n();
3900
+ const { config } = useVolrContext();
3901
+ const { client } = useInternalAuth();
3902
+ const { isDetecting, getWalletsForDisplay, hasWallet } = useEIP6963();
3903
+ const [viewState, setViewState] = useState("select-wallet");
3904
+ const [selectedWallet, setSelectedWallet] = useState(null);
3905
+ const [connectedAddress, setConnectedAddress] = useState(null);
3906
+ const [balance, setBalance] = useState(null);
3907
+ const [amount, setAmount] = useState("");
3908
+ const [isConnecting, setIsConnecting] = useState(false);
3909
+ const [isTransferring, setIsTransferring] = useState(false);
3910
+ const [error, setError] = useState(null);
3911
+ const [chainName, setChainName] = useState(null);
3912
+ const [currentChainId, setCurrentChainId] = useState(null);
3913
+ const tokenSymbol = asset === "native" ? "ETH" : asset.symbol;
3914
+ const decimals = asset === "native" ? 18 : asset.decimals;
3915
+ const getNetworkInfo = useCallback(
3916
+ createGetNetworkInfo({ client, rpcOverrides: config.rpcOverrides }),
3917
+ [client, config.rpcOverrides]
3918
+ );
3919
+ useEffect(() => {
3920
+ let cancelled = false;
3921
+ const loadChainName = async () => {
3922
+ try {
3923
+ const info = await getNetworkInfo(chainId, false);
3924
+ if (!cancelled) setChainName(info.name);
3925
+ } catch {
3926
+ if (!cancelled) setChainName(`Chain ${chainId}`);
3927
+ }
3928
+ };
3929
+ loadChainName();
3930
+ return () => {
3931
+ cancelled = true;
3932
+ };
3933
+ }, [getNetworkInfo, chainId]);
3934
+ const connectWallet = useCallback(async (wallet) => {
3935
+ setIsConnecting(true);
3936
+ setError(null);
3937
+ try {
3938
+ const provider = wallet.provider;
3939
+ const accounts = await provider.request({ method: "eth_requestAccounts" });
3940
+ if (!accounts || accounts.length === 0) {
3941
+ throw new Error("No accounts found");
3942
+ }
3943
+ const address = accounts[0];
3944
+ setConnectedAddress(address);
3945
+ setSelectedWallet(wallet);
3946
+ const chainIdHex = await provider.request({ method: "eth_chainId" });
3947
+ const currentChain = parseInt(chainIdHex, 16);
3948
+ setCurrentChainId(currentChain);
3949
+ await fetchBalance(provider, address, currentChain);
3950
+ setViewState("transfer");
3951
+ } catch (err) {
3952
+ console.error("Failed to connect wallet:", err);
3953
+ setError(err instanceof Error ? err.message : "Connection failed");
3954
+ } finally {
3955
+ setIsConnecting(false);
3956
+ }
3957
+ }, [chainId, asset]);
3958
+ const fetchBalance = useCallback(async (provider, address, currentChain) => {
3959
+ try {
3960
+ if (currentChain !== chainId) {
3961
+ setBalance(null);
3962
+ return;
3963
+ }
3964
+ if (asset === "native") {
3965
+ const balanceHex = await provider.request({
3966
+ method: "eth_getBalance",
3967
+ params: [address, "latest"]
3968
+ });
3969
+ setBalance(BigInt(balanceHex));
3970
+ } else {
3971
+ const data = `0x70a08231000000000000000000000000${address.slice(2)}`;
3972
+ const result = await provider.request({
3973
+ method: "eth_call",
3974
+ params: [{ to: asset.address, data }, "latest"]
3975
+ });
3976
+ setBalance(BigInt(result));
3977
+ }
3978
+ } catch (err) {
3979
+ console.error("Failed to fetch balance:", err);
3980
+ setBalance(BigInt(0));
3981
+ }
3982
+ }, [chainId, asset]);
3983
+ const switchNetwork = useCallback(async () => {
3984
+ if (!selectedWallet?.provider) return;
3985
+ try {
3986
+ await selectedWallet.provider.request({
3987
+ method: "wallet_switchEthereumChain",
3988
+ params: [{ chainId: `0x${chainId.toString(16)}` }]
3989
+ });
3990
+ const chainIdHex = await selectedWallet.provider.request({ method: "eth_chainId" });
3991
+ const currentChain = parseInt(chainIdHex, 16);
3992
+ setCurrentChainId(currentChain);
3993
+ if (connectedAddress) {
3994
+ await fetchBalance(selectedWallet.provider, connectedAddress, currentChain);
3995
+ }
3996
+ } catch (err) {
3997
+ console.error("Failed to switch network:", err);
3998
+ setError(err instanceof Error ? err.message : "Failed to switch network");
3999
+ }
4000
+ }, [selectedWallet, chainId, connectedAddress, fetchBalance]);
4001
+ const executeTransfer = useCallback(async () => {
4002
+ if (!selectedWallet?.provider || !connectedAddress || !amount) return;
4003
+ setIsTransferring(true);
4004
+ setError(null);
4005
+ try {
4006
+ const amountWei = parseUnits(amount, decimals);
4007
+ if (balance !== null && amountWei > balance) {
4008
+ setError(t("deposit.walletTransfer.insufficientBalance"));
4009
+ setIsTransferring(false);
4010
+ return;
4011
+ }
4012
+ let txHash;
4013
+ if (asset === "native") {
4014
+ txHash = await selectedWallet.provider.request({
4015
+ method: "eth_sendTransaction",
4016
+ params: [{
4017
+ from: connectedAddress,
4018
+ to: destinationAddress,
4019
+ value: `0x${amountWei.toString(16)}`
4020
+ }]
4021
+ });
4022
+ } else {
4023
+ const paddedTo = destinationAddress.slice(2).padStart(64, "0");
4024
+ const paddedAmount = amountWei.toString(16).padStart(64, "0");
4025
+ const data = `0xa9059cbb${paddedTo}${paddedAmount}`;
4026
+ txHash = await selectedWallet.provider.request({
4027
+ method: "eth_sendTransaction",
4028
+ params: [{
4029
+ from: connectedAddress,
4030
+ to: asset.address,
4031
+ data
4032
+ }]
4033
+ });
4034
+ }
4035
+ console.log("Transfer tx hash:", txHash);
4036
+ onSuccess?.();
4037
+ } catch (err) {
4038
+ console.error("Transfer failed:", err);
4039
+ setError(err instanceof Error ? err.message : "Transfer failed");
4040
+ } finally {
4041
+ setIsTransferring(false);
4042
+ }
4043
+ }, [selectedWallet, connectedAddress, amount, decimals, balance, asset, destinationAddress, onSuccess, t]);
4044
+ const setMaxAmount = useCallback(() => {
4045
+ if (balance !== null) {
4046
+ const formatted = formatUnits(balance, decimals);
4047
+ setAmount(formatted);
4048
+ }
4049
+ }, [balance, decimals]);
4050
+ const wallets = getWalletsForDisplay();
4051
+ const isWrongNetwork = currentChainId !== null && currentChainId !== chainId;
4052
+ const formattedBalance = balance !== null ? formatUnits(balance, decimals) : null;
4053
+ if (viewState === "select-wallet") {
4054
+ return /* @__PURE__ */ jsxs("div", { children: [
4055
+ /* @__PURE__ */ jsxs("div", { className: "volr:mb-4", children: [
4056
+ /* @__PURE__ */ jsx("p", { className: "volr:text-xl volr:font-semibold volr:mb-1", children: t("deposit.walletTransfer.title") }),
4057
+ /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-slate-500", children: t("deposit.walletTransfer.selectWallet") })
4058
+ ] }),
4059
+ isDetecting && /* @__PURE__ */ jsxs("div", { className: "volr:text-center volr:py-8", children: [
4060
+ /* @__PURE__ */ jsx("div", { className: "volr:animate-spin volr:w-6 volr:h-6 volr:border-2 volr:border-slate-300 volr:border-t-slate-600 volr:rounded-full volr:mx-auto" }),
4061
+ /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-slate-500 volr:mt-3", children: t("common.loading") })
4062
+ ] }),
4063
+ !isDetecting && !hasWallet && /* @__PURE__ */ jsx("div", { className: "volr:text-center volr:py-8", children: /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-slate-500", children: t("deposit.walletTransfer.noWallets") }) }),
4064
+ !isDetecting && wallets.length > 0 && /* @__PURE__ */ jsx("div", { className: "volr:space-y-2", children: wallets.map((wallet) => /* @__PURE__ */ jsxs(
4065
+ "button",
4066
+ {
4067
+ type: "button",
4068
+ onClick: () => connectWallet(wallet),
4069
+ disabled: isConnecting,
4070
+ className: "volr:w-full volr:flex volr:items-center volr:gap-3 volr:p-3 volr:border volr:border-slate-200 volr:rounded-xl volr:hover:bg-slate-50 volr:transition-colors volr:disabled:opacity-50",
4071
+ children: [
4072
+ /* @__PURE__ */ jsx("div", { className: "volr:w-10 volr:h-10 volr:rounded-lg volr:bg-slate-100 volr:flex volr:items-center volr:justify-center volr:overflow-hidden volr:flex-shrink-0", children: wallet.icon ? /* @__PURE__ */ jsx(
4073
+ "img",
4074
+ {
4075
+ src: wallet.icon,
4076
+ alt: wallet.name,
4077
+ className: "volr:w-7 volr:h-7"
4078
+ }
4079
+ ) : /* @__PURE__ */ jsx("div", { className: "volr:text-slate-400", children: /* @__PURE__ */ jsx(DefaultWalletIcon2, {}) }) }),
4080
+ /* @__PURE__ */ jsx("span", { className: "volr:flex-1 volr:text-left volr:font-medium volr:text-slate-900", children: wallet.name }),
4081
+ /* @__PURE__ */ jsx(
4082
+ "svg",
4083
+ {
4084
+ className: "volr:w-5 volr:h-5 volr:text-slate-400",
4085
+ fill: "none",
4086
+ viewBox: "0 0 24 24",
4087
+ stroke: "currentColor",
4088
+ children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
4089
+ }
4090
+ )
4091
+ ]
4092
+ },
4093
+ wallet.id
4094
+ )) }),
4095
+ error && /* @__PURE__ */ jsx("div", { className: "volr:mt-4 volr:p-3 volr:bg-red-50 volr:border volr:border-red-200 volr:rounded-lg", children: /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-red-600", children: error }) }),
4096
+ /* @__PURE__ */ jsx("div", { className: "volr:mt-6 volr:pt-4 volr:border-t volr:border-slate-200", children: /* @__PURE__ */ jsx(Button, { variant: "ghost", onClick: onBack, className: "volr:w-full", children: t("common.back") }) })
4097
+ ] });
4098
+ }
4099
+ return /* @__PURE__ */ jsxs("div", { children: [
4100
+ /* @__PURE__ */ jsxs("div", { className: "volr:mb-4", children: [
4101
+ /* @__PURE__ */ jsx("p", { className: "volr:text-xl volr:font-semibold volr:mb-1", children: t("deposit.walletTransfer.title") }),
4102
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:gap-2", children: [
4103
+ selectedWallet?.icon && /* @__PURE__ */ jsx("img", { src: selectedWallet.icon, alt: "", className: "volr:w-5 volr:h-5 volr:rounded" }),
4104
+ /* @__PURE__ */ jsxs("span", { className: "volr:text-sm volr:text-slate-500", children: [
4105
+ connectedAddress?.slice(0, 6),
4106
+ "...",
4107
+ connectedAddress?.slice(-4)
4108
+ ] })
4109
+ ] })
4110
+ ] }),
4111
+ isWrongNetwork && /* @__PURE__ */ jsxs("div", { className: "volr:mb-4 volr:p-3 volr:bg-amber-50 volr:border volr:border-amber-200 volr:rounded-lg", children: [
4112
+ /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-amber-700 volr:mb-2", children: t("deposit.walletTransfer.wrongNetwork", { network: chainName || `Chain ${chainId}` }) }),
4113
+ /* @__PURE__ */ jsx(
4114
+ Button,
4115
+ {
4116
+ variant: "secondary",
4117
+ size: "sm",
4118
+ onClick: switchNetwork,
4119
+ className: "volr:w-full",
4120
+ children: t("deposit.walletTransfer.switchNetwork")
4121
+ }
4122
+ )
4123
+ ] }),
4124
+ /* @__PURE__ */ jsx("div", { className: "volr:mb-4 volr:p-4 volr:bg-slate-50 volr:rounded-xl volr:border volr:border-slate-200", children: /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:justify-between", children: [
4125
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:gap-2", children: [
4126
+ /* @__PURE__ */ jsx("span", { className: "volr:text-base volr:font-semibold", children: tokenSymbol }),
4127
+ /* @__PURE__ */ jsx("span", { className: "volr:text-xs volr:px-2 volr:py-0.5 volr:rounded-full volr:bg-slate-200 volr:text-slate-600", children: chainName || `Chain ${chainId}` })
4128
+ ] }),
4129
+ /* @__PURE__ */ jsxs("div", { className: "volr:text-right", children: [
4130
+ /* @__PURE__ */ jsx("p", { className: "volr:text-xs volr:text-slate-500", children: t("deposit.walletTransfer.balance") }),
4131
+ /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:font-mono volr:font-medium", children: isWrongNetwork ? "-" : formattedBalance ? `${Number(formattedBalance).toFixed(4)}` : "..." })
4132
+ ] })
4133
+ ] }) }),
4134
+ /* @__PURE__ */ jsxs("div", { className: "volr:mb-4", children: [
4135
+ /* @__PURE__ */ jsx("label", { className: "volr:block volr:text-sm volr:font-medium volr:text-slate-700 volr:mb-2", children: t("deposit.walletTransfer.amount") }),
4136
+ /* @__PURE__ */ jsxs("div", { className: "volr:relative", children: [
4137
+ /* @__PURE__ */ jsx(
4138
+ "input",
4139
+ {
4140
+ type: "text",
4141
+ inputMode: "decimal",
4142
+ value: amount,
4143
+ onChange: (e) => setAmount(e.target.value),
4144
+ placeholder: t("deposit.walletTransfer.amountPlaceholder"),
4145
+ disabled: isWrongNetwork,
4146
+ className: "volr:w-full volr:px-4 volr:py-3 volr:pr-16 volr:border volr:border-slate-300 volr:rounded-xl volr:text-base volr:font-mono volr:focus:outline-none volr:focus:ring-2 volr:focus:ring-slate-300 volr:disabled:bg-slate-100 volr:disabled:text-slate-400"
4147
+ }
4148
+ ),
4149
+ /* @__PURE__ */ jsx(
4150
+ "button",
4151
+ {
4152
+ type: "button",
4153
+ onClick: setMaxAmount,
4154
+ disabled: isWrongNetwork || balance === null,
4155
+ className: "volr:absolute volr:right-3 volr:top-1/2 volr:-translate-y-1/2 volr:px-2 volr:py-1 volr:text-xs volr:font-semibold volr:text-slate-600 volr:bg-slate-100 volr:rounded volr:hover:bg-slate-200 volr:disabled:opacity-50",
4156
+ children: t("deposit.walletTransfer.max")
4157
+ }
4158
+ )
4159
+ ] })
4160
+ ] }),
4161
+ error && /* @__PURE__ */ jsx("div", { className: "volr:mb-4 volr:p-3 volr:bg-red-50 volr:border volr:border-red-200 volr:rounded-lg", children: /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-red-600", children: error }) }),
4162
+ /* @__PURE__ */ jsx(
4163
+ Button,
4164
+ {
4165
+ onClick: executeTransfer,
4166
+ disabled: isTransferring || !amount || isWrongNetwork,
4167
+ className: "volr:w-full",
4168
+ children: isTransferring ? t("deposit.walletTransfer.transferring") : t("deposit.walletTransfer.transfer")
4169
+ }
4170
+ ),
4171
+ /* @__PURE__ */ jsx("div", { className: "volr:mt-3", children: /* @__PURE__ */ jsx(
4172
+ Button,
4173
+ {
4174
+ variant: "ghost",
4175
+ onClick: () => setViewState("select-wallet"),
4176
+ className: "volr:w-full",
4177
+ children: t("common.back")
4178
+ }
4179
+ ) })
2772
4180
  ] });
2773
4181
  }
2774
- var TextLinkButton = React12.forwardRef(({ showArrow = false, className, children, ...props }, ref) => {
2775
- return /* @__PURE__ */ jsxs(
2776
- "button",
2777
- {
2778
- ref,
2779
- type: "button",
2780
- className: cn(
2781
- "volr:underline volr:transition-colors volr-text-secondary",
2782
- className
2783
- ),
2784
- ...props,
2785
- children: [
2786
- children,
2787
- showArrow && " \u2192"
2788
- ]
2789
- }
2790
- );
2791
- });
2792
- TextLinkButton.displayName = "TextLinkButton";
2793
- var OtherTokenModal = ({
2794
- open,
2795
- onOpenChange
2796
- }) => {
2797
- return /* @__PURE__ */ jsxs(Modal, { open, onOpenChange, children: [
2798
- /* @__PURE__ */ jsx(ModalHeader, { onClose: () => onOpenChange(false) }),
2799
- /* @__PURE__ */ jsxs("div", { className: "volr:text-center", children: [
2800
- /* @__PURE__ */ jsx("p", { className: "volr:text-lg volr:font-semibold volr:mb-2", children: "Coming Soon" }),
2801
- /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr-text-secondary", children: "Swap and bridge recommendations will be available here soon." })
2802
- ] })
2803
- ] });
2804
- };
2805
4182
  var DepositQRStatusOverlay = ({
2806
4183
  status
2807
4184
  }) => {
@@ -3040,112 +4417,129 @@ var DepositCompletedToast = ({
3040
4417
  return trimmedFraction ? `${whole}.${trimmedFraction}` : `${whole}`;
3041
4418
  };
3042
4419
  const formattedDelta = formatAmount(delta);
3043
- return /* @__PURE__ */ jsxs(
3044
- "div",
3045
- {
3046
- className: cn(
3047
- // Position: fixed to modal edges with negative margin to escape parent padding
3048
- "volr:absolute volr:bottom-0 volr:z-50",
3049
- "volr:-left-4 volr:-right-4",
3050
- // Appearance: background with clear separation
3051
- "volr:rounded-t-2xl volr-surface",
3052
- // Border: top border for clear visual separation
3053
- "volr:border-t-2 volr-border-strong",
3054
- // Shadow: strong upward shadow for depth
3055
- "volr:shadow-[0_-8px_30px_rgba(0,0,0,0.2)]",
3056
- // Animation
3057
- "volr:transition-all volr:duration-300 volr:ease-out",
3058
- expanded ? "volr:max-h-96" : "volr:max-h-36"
3059
- ),
3060
- style: {
3061
- animation: "volrSlideUp 0.3s ease-out"
3062
- },
3063
- children: [
3064
- /* @__PURE__ */ jsx("div", { className: "volr:flex volr:justify-center volr:pt-3 volr:pb-2", children: /* @__PURE__ */ jsx("div", { className: "volr:w-10 volr:h-1 volr:rounded-full volr-bg-tertiary" }) }),
3065
- /* @__PURE__ */ jsx("div", { className: "volr:px-4 volr:pb-4", children: /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-start volr:gap-3", children: [
3066
- /* @__PURE__ */ jsx("div", { className: "volr:shrink-0 volr:w-10 volr:h-10 volr:rounded-full volr:bg-linear-to-br volr:from-emerald-500 volr:to-teal-500 volr:flex volr:items-center volr:justify-center volr:shadow-md", children: /* @__PURE__ */ jsx(
3067
- "svg",
3068
- {
3069
- width: "20",
3070
- height: "20",
3071
- viewBox: "0 0 24 24",
3072
- fill: "none",
3073
- stroke: "white",
3074
- strokeWidth: "2.5",
3075
- strokeLinecap: "round",
3076
- strokeLinejoin: "round",
3077
- children: /* @__PURE__ */ jsx("polyline", { points: "20 6 9 17 4 12" })
3078
- }
3079
- ) }),
3080
- /* @__PURE__ */ jsxs("div", { className: "volr:flex-1 volr:min-w-0", children: [
3081
- /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-start volr:justify-between volr:gap-2 volr:mb-1", children: [
3082
- /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:font-semibold", children: t("deposit.completed") }),
4420
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
4421
+ /* @__PURE__ */ jsx(
4422
+ "div",
4423
+ {
4424
+ className: "volr:absolute volr:inset-0 volr:bg-black/40 volr:z-40",
4425
+ onClick: onClose,
4426
+ style: { animation: "volrFadeIn 0.2s ease-out" }
4427
+ }
4428
+ ),
4429
+ /* @__PURE__ */ jsxs(
4430
+ "div",
4431
+ {
4432
+ className: cn(
4433
+ // Position: centered at bottom with margin
4434
+ "volr:absolute volr:bottom-3 volr:left-3 volr:right-3 volr:z-50",
4435
+ // Appearance: floating card
4436
+ "volr:bg-white volr:rounded-2xl",
4437
+ // Border: full border for clear card definition
4438
+ "volr:border volr:border-slate-200",
4439
+ // Shadow: strong shadow for floating effect
4440
+ "volr:shadow-2xl",
4441
+ // Animation
4442
+ "volr:transition-all volr:duration-300 volr:ease-out"
4443
+ ),
4444
+ style: {
4445
+ animation: "volrSlideUp 0.3s ease-out"
4446
+ },
4447
+ children: [
4448
+ /* @__PURE__ */ jsx("div", { className: "volr:h-1 volr:bg-gradient-to-r volr:from-emerald-400 volr:to-teal-500 volr:rounded-t-2xl" }),
4449
+ /* @__PURE__ */ jsx("div", { className: "volr:p-4", children: /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-start volr:gap-3", children: [
4450
+ /* @__PURE__ */ jsx("div", { className: "volr:shrink-0 volr:w-10 volr:h-10 volr:rounded-full volr:bg-gradient-to-br volr:from-emerald-500 volr:to-teal-500 volr:flex volr:items-center volr:justify-center volr:shadow-md", children: /* @__PURE__ */ jsx(
4451
+ "svg",
4452
+ {
4453
+ width: "20",
4454
+ height: "20",
4455
+ viewBox: "0 0 24 24",
4456
+ fill: "none",
4457
+ stroke: "white",
4458
+ strokeWidth: "2.5",
4459
+ strokeLinecap: "round",
4460
+ strokeLinejoin: "round",
4461
+ children: /* @__PURE__ */ jsx("polyline", { points: "20 6 9 17 4 12" })
4462
+ }
4463
+ ) }),
4464
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex-1 volr:min-w-0", children: [
4465
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-start volr:justify-between volr:gap-2 volr:mb-1", children: [
4466
+ /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:font-semibold volr:text-slate-900", children: t("deposit.completed") }),
4467
+ /* @__PURE__ */ jsx(
4468
+ "button",
4469
+ {
4470
+ onClick: onClose,
4471
+ className: "volr:shrink-0 volr:w-6 volr:h-6 volr:flex volr:items-center volr:justify-center volr:rounded-full volr:transition-colors volr:bg-slate-100 volr:text-slate-500 volr:hover:bg-slate-200",
4472
+ "aria-label": "Close",
4473
+ children: /* @__PURE__ */ jsxs(
4474
+ "svg",
4475
+ {
4476
+ width: "14",
4477
+ height: "14",
4478
+ viewBox: "0 0 24 24",
4479
+ fill: "none",
4480
+ stroke: "currentColor",
4481
+ strokeWidth: "2.5",
4482
+ children: [
4483
+ /* @__PURE__ */ jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
4484
+ /* @__PURE__ */ jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
4485
+ ]
4486
+ }
4487
+ )
4488
+ }
4489
+ )
4490
+ ] }),
4491
+ /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:font-medium volr:text-slate-700 volr:mb-3", children: t("deposit.completedAmount", { amount: formattedDelta, symbol }) }),
4492
+ expanded && /* @__PURE__ */ jsxs(
4493
+ "div",
4494
+ {
4495
+ className: "volr:space-y-2 volr:mb-3 volr:p-3 volr:rounded-lg volr:bg-slate-50 volr:border volr:border-slate-200",
4496
+ style: { animation: "volrFadeIn 0.2s ease-out" },
4497
+ children: [
4498
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:justify-between volr:text-xs", children: [
4499
+ /* @__PURE__ */ jsx("span", { className: "volr:text-slate-500", children: t("deposit.amount") }),
4500
+ /* @__PURE__ */ jsxs("span", { className: "volr:font-mono volr:text-emerald-600 volr:font-semibold", children: [
4501
+ "+",
4502
+ formattedDelta,
4503
+ " ",
4504
+ symbol
4505
+ ] })
4506
+ ] }),
4507
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:justify-between volr:text-xs", children: [
4508
+ /* @__PURE__ */ jsx("span", { className: "volr:text-slate-500", children: t("deposit.previousBalance") }),
4509
+ /* @__PURE__ */ jsxs("span", { className: "volr:font-mono volr:text-slate-500", children: [
4510
+ formatAmount(previousBalance),
4511
+ " ",
4512
+ symbol
4513
+ ] })
4514
+ ] }),
4515
+ /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:justify-between volr:text-xs volr:pt-2 volr:border-t volr:border-slate-200", children: [
4516
+ /* @__PURE__ */ jsx("span", { className: "volr:text-slate-500", children: t("deposit.newBalance") }),
4517
+ /* @__PURE__ */ jsxs("span", { className: "volr:font-mono volr:font-semibold volr:text-slate-900", children: [
4518
+ formatAmount(newBalance),
4519
+ " ",
4520
+ symbol
4521
+ ] })
4522
+ ] })
4523
+ ]
4524
+ }
4525
+ ),
3083
4526
  /* @__PURE__ */ jsx(
3084
4527
  "button",
3085
4528
  {
3086
- onClick: onClose,
3087
- className: "volr:shrink-0 volr:w-6 volr:h-6 volr:flex volr:items-center volr:justify-center volr:rounded-full volr:transition-colors volr-bg-secondary volr-text-secondary volr-hover",
3088
- "aria-label": "Close",
3089
- children: /* @__PURE__ */ jsxs(
3090
- "svg",
3091
- {
3092
- width: "14",
3093
- height: "14",
3094
- viewBox: "0 0 24 24",
3095
- fill: "none",
3096
- stroke: "currentColor",
3097
- strokeWidth: "2.5",
3098
- children: [
3099
- /* @__PURE__ */ jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
3100
- /* @__PURE__ */ jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
3101
- ]
3102
- }
3103
- )
4529
+ onClick: () => setExpanded(!expanded),
4530
+ className: "volr:w-full volr:py-2.5 volr:text-xs volr:font-medium volr:rounded-lg volr:transition-colors volr:bg-slate-100 volr:text-slate-600 volr:border volr:border-slate-200 volr:hover:bg-slate-200",
4531
+ children: expanded ? t("deposit.seeLess") : t("deposit.seeMore")
3104
4532
  }
3105
4533
  )
3106
- ] }),
3107
- /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:font-medium volr:mb-3", children: t("deposit.completedAmount", { amount: formattedDelta, symbol }) }),
3108
- expanded && /* @__PURE__ */ jsxs("div", { className: "volr:space-y-2 volr:mb-3 volr:p-3 volr:rounded-lg volr:border volr:animate-[volrFadeIn_0.2s_ease-out] volr-bg-secondary volr-border", children: [
3109
- /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:justify-between volr:text-xs", children: [
3110
- /* @__PURE__ */ jsx("span", { className: "volr-text-secondary", children: t("deposit.amount") }),
3111
- /* @__PURE__ */ jsxs("span", { className: "volr:font-mono volr:text-emerald-600 volr:font-semibold", children: [
3112
- "+",
3113
- formattedDelta,
3114
- " ",
3115
- symbol
3116
- ] })
3117
- ] }),
3118
- /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:justify-between volr:text-xs", children: [
3119
- /* @__PURE__ */ jsx("span", { className: "volr-text-secondary", children: t("deposit.previousBalance") }),
3120
- /* @__PURE__ */ jsxs("span", { className: "volr:font-mono volr-text-secondary", children: [
3121
- formatAmount(previousBalance),
3122
- " ",
3123
- symbol
3124
- ] })
3125
- ] }),
3126
- /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:justify-between volr:text-xs volr:pt-2 volr:border-t volr-border", children: [
3127
- /* @__PURE__ */ jsx("span", { className: "volr-text-secondary", children: t("deposit.newBalance") }),
3128
- /* @__PURE__ */ jsxs("span", { className: "volr:font-mono volr:font-semibold", children: [
3129
- formatAmount(newBalance),
3130
- " ",
3131
- symbol
3132
- ] })
3133
- ] })
3134
- ] }),
3135
- /* @__PURE__ */ jsx(
3136
- "button",
3137
- {
3138
- onClick: () => setExpanded(!expanded),
3139
- className: "volr:w-full volr:py-2.5 volr:text-xs volr:font-medium volr:rounded-lg volr:transition-colors volr:border volr-bg-secondary volr-text-secondary volr-border volr-hover",
3140
- children: expanded ? t("deposit.seeLess") : t("deposit.seeMore")
3141
- }
3142
- )
3143
- ] })
3144
- ] }) }),
3145
- /* @__PURE__ */ jsx("style", { children: `
4534
+ ] })
4535
+ ] }) })
4536
+ ]
4537
+ }
4538
+ ),
4539
+ /* @__PURE__ */ jsx("style", { children: `
3146
4540
  @keyframes volrSlideUp {
3147
4541
  from {
3148
- transform: translateY(100%);
4542
+ transform: translateY(20px);
3149
4543
  opacity: 0;
3150
4544
  }
3151
4545
  to {
@@ -3162,9 +4556,7 @@ var DepositCompletedToast = ({
3162
4556
  }
3163
4557
  }
3164
4558
  ` })
3165
- ]
3166
- }
3167
- );
4559
+ ] });
3168
4560
  };
3169
4561
  var DepositSkeleton = () => {
3170
4562
  return /* @__PURE__ */ jsxs("div", { className: "volr:animate-pulse", children: [
@@ -3189,6 +4581,7 @@ function DepositQRView(props) {
3189
4581
  const [showOtherTokenModal, setShowOtherTokenModal] = useState(false);
3190
4582
  const [showToast, setShowToast] = useState(false);
3191
4583
  const [toastData, setToastData] = useState(null);
4584
+ const [viewMode, setViewMode] = useState("qr");
3192
4585
  const eip681 = `ethereum:${props.address}`;
3193
4586
  const status = useDepositListener({
3194
4587
  chainId: props.chainId,
@@ -3237,6 +4630,36 @@ function DepositQRView(props) {
3237
4630
  const tokenSymbol = props.asset === "native" ? "ETH" : props.asset.symbol;
3238
4631
  const displayChainName = chainName || `Chain ${props.chainId}`;
3239
4632
  const decimals = props.asset === "native" ? 18 : props.asset.decimals;
4633
+ if (viewMode === "wallet-transfer") {
4634
+ return /* @__PURE__ */ jsxs("div", { className: "volr:relative", children: [
4635
+ /* @__PURE__ */ jsx(
4636
+ WalletTransferView,
4637
+ {
4638
+ chainId: props.chainId,
4639
+ asset: props.asset,
4640
+ destinationAddress: props.address,
4641
+ onBack: () => setViewMode("qr"),
4642
+ onSuccess: () => {
4643
+ setViewMode("qr");
4644
+ }
4645
+ }
4646
+ ),
4647
+ showToast && toastData && /* @__PURE__ */ jsx(
4648
+ DepositCompletedToast,
4649
+ {
4650
+ onClose: () => {
4651
+ setShowToast(false);
4652
+ setToastData(null);
4653
+ },
4654
+ previousBalance: toastData.previousBalance,
4655
+ newBalance: toastData.newBalance,
4656
+ delta: toastData.delta,
4657
+ decimals,
4658
+ symbol: tokenSymbol
4659
+ }
4660
+ )
4661
+ ] });
4662
+ }
3240
4663
  return /* @__PURE__ */ jsxs("div", { className: "volr:relative", children: [
3241
4664
  /* @__PURE__ */ jsxs("div", { className: "volr:mb-4", children: [
3242
4665
  /* @__PURE__ */ jsx("p", { className: "volr:text-xl volr:font-semibold volr:mb-2", children: t("deposit.qrTitle") }),
@@ -3282,7 +4705,33 @@ function DepositQRView(props) {
3282
4705
  ] }) }) }),
3283
4706
  status.state === "error" && /* @__PURE__ */ jsx("div", { className: "volr:text-xs volr:text-center volr:mb-4 volr-error", children: status.message })
3284
4707
  ] }),
3285
- /* @__PURE__ */ jsx("div", { className: "volr:text-center volr:pt-3 volr:border-t volr-border", children: /* @__PURE__ */ jsxs("span", { className: "volr:text-xs volr-text-secondary", children: [
4708
+ /* @__PURE__ */ jsx("div", { className: "volr:mt-4", children: /* @__PURE__ */ jsxs(
4709
+ "button",
4710
+ {
4711
+ type: "button",
4712
+ onClick: () => setViewMode("wallet-transfer"),
4713
+ className: "volr:w-full volr:flex volr:items-center volr:justify-center volr:gap-2 volr:py-3 volr:px-4 volr:border volr:border-slate-200 volr:rounded-xl volr:text-sm volr:font-medium volr:text-slate-700 volr:bg-white volr:hover:bg-slate-50 volr:transition-colors",
4714
+ children: [
4715
+ /* @__PURE__ */ jsxs(
4716
+ "svg",
4717
+ {
4718
+ className: "volr:w-5 volr:h-5",
4719
+ viewBox: "0 0 24 24",
4720
+ fill: "none",
4721
+ stroke: "currentColor",
4722
+ strokeWidth: "1.5",
4723
+ children: [
4724
+ /* @__PURE__ */ jsx("rect", { x: "2", y: "6", width: "20", height: "14", rx: "2" }),
4725
+ /* @__PURE__ */ jsx("path", { d: "M17 12.5C17 13.3284 16.3284 14 15.5 14C14.6716 14 14 13.3284 14 12.5C14 11.6716 14.6716 11 15.5 11C16.3284 11 17 11.6716 17 12.5Z", fill: "currentColor" }),
4726
+ /* @__PURE__ */ jsx("path", { d: "M6 6V5C6 3.89543 6.89543 3 8 3H16C17.1046 3 18 3.89543 18 5V6" })
4727
+ ]
4728
+ }
4729
+ ),
4730
+ t("deposit.useWallet")
4731
+ ]
4732
+ }
4733
+ ) }),
4734
+ /* @__PURE__ */ jsx("div", { className: "volr:text-center volr:pt-3 volr:mt-3 volr:border-t volr-border", children: /* @__PURE__ */ jsxs("span", { className: "volr:text-xs volr-text-secondary", children: [
3286
4735
  t("deposit.noToken"),
3287
4736
  " ",
3288
4737
  /* @__PURE__ */ jsx(
@@ -3329,19 +4778,40 @@ function DepositModalBody({
3329
4778
  if (error) {
3330
4779
  return /* @__PURE__ */ jsxs("div", { className: "volr:relative", children: [
3331
4780
  /* @__PURE__ */ jsx(DepositSkeleton, {}),
3332
- /* @__PURE__ */ jsx("div", { className: "volr:absolute volr:inset-0 volr:flex volr:items-center volr:justify-center volr-surface", style: { opacity: 0.9 }, children: /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-center volr:px-4 volr-error", children: error }) })
4781
+ /* @__PURE__ */ jsx(
4782
+ "div",
4783
+ {
4784
+ className: "volr:absolute volr:inset-0 volr:flex volr:items-center volr:justify-center volr-surface",
4785
+ style: { opacity: 0.9 },
4786
+ children: /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-center volr:px-4 volr-error", children: error })
4787
+ }
4788
+ )
3333
4789
  ] });
3334
4790
  }
3335
4791
  if (depositAssets.length === 0) {
3336
4792
  return /* @__PURE__ */ jsxs("div", { className: "volr:relative", children: [
3337
4793
  /* @__PURE__ */ jsx(DepositSkeleton, {}),
3338
- /* @__PURE__ */ jsx("div", { className: "volr:absolute volr:inset-0 volr:flex volr:items-center volr:justify-center volr-surface", style: { opacity: 0.9 }, children: /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-center volr:px-4 volr-text-secondary", children: "No payment token configured. Please contact the app developer." }) })
4794
+ /* @__PURE__ */ jsx(
4795
+ "div",
4796
+ {
4797
+ className: "volr:absolute volr:inset-0 volr:flex volr:items-center volr:justify-center volr-surface",
4798
+ style: { opacity: 0.9 },
4799
+ children: /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-center volr:px-4 volr-text-secondary", children: "No payment token configured. Please contact the app developer." })
4800
+ }
4801
+ )
3339
4802
  ] });
3340
4803
  }
3341
4804
  if (!evmAddress) {
3342
4805
  return /* @__PURE__ */ jsxs("div", { className: "volr:relative", children: [
3343
4806
  /* @__PURE__ */ jsx(DepositSkeleton, {}),
3344
- /* @__PURE__ */ jsx("div", { className: "volr:absolute volr:inset-0 volr:flex volr:items-center volr:justify-center volr-surface", style: { opacity: 0.9 }, children: /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-center volr:px-4 volr-text-secondary", children: "Wallet address is not ready. Please finish wallet setup first." }) })
4807
+ /* @__PURE__ */ jsx(
4808
+ "div",
4809
+ {
4810
+ className: "volr:absolute volr:inset-0 volr:flex volr:items-center volr:justify-center volr-surface",
4811
+ style: { opacity: 0.9 },
4812
+ children: /* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-center volr:px-4 volr-text-secondary", children: "Wallet address is not ready. Please finish wallet setup first." })
4813
+ }
4814
+ )
3345
4815
  ] });
3346
4816
  }
3347
4817
  if (depositAssets.length === 1) {
@@ -3447,11 +4917,6 @@ var DepositModal = ({
3447
4917
  )
3448
4918
  ] });
3449
4919
  };
3450
-
3451
- // ../node_modules/viem/_esm/index.js
3452
- init_abis();
3453
-
3454
- // src/hooks/usePaymentModalState.ts
3455
4920
  var initialState = {
3456
4921
  step: "info",
3457
4922
  processingStep: "signing",
@@ -4708,7 +6173,7 @@ function SignRequestModal({ open, onOpenChange }) {
4708
6173
  }
4709
6174
  );
4710
6175
  }
4711
- var VolrUIContext = React12.createContext(null);
6176
+ var VolrUIContext = React13.createContext(null);
4712
6177
  var useVolrUI = () => {
4713
6178
  const context = useContext(VolrUIContext);
4714
6179
  if (!context) {
@@ -5101,7 +6566,7 @@ function OnboardingChecker({
5101
6566
  }) {
5102
6567
  const { user, provider, isLoading } = useVolrContext();
5103
6568
  const { isOpen: isModalOpen } = useVolrModal();
5104
- const modalWasOpened = React12.useRef(false);
6569
+ const modalWasOpened = React13.useRef(false);
5105
6570
  useEffect(() => {
5106
6571
  if (isModalOpen) {
5107
6572
  modalWasOpened.current = true;