@nexus-cross/dapp-ui 1.3.12-beta.2 → 1.3.12
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function od(e){try{return import.meta.env?.[e]}catch{return}}function id(e){if(!(typeof process>"u"))return process.env?.[e]}function nt(e){if(e)return ad(e);let t=od("VITE_CROSSX_ENVIRONMENT")??od("NEXT_PUBLIC_CROSSX_ENVIRONMENT")??id("NEXT_PUBLIC_CROSSX_ENVIRONMENT")??id("CROSSX_ENVIRONMENT");return ad(t)}function ad(e){switch(e?.toLowerCase()){case"dev":case"development":return"dev";case"stage":case"staging":case"stg":return"stage";default:return"production"}}import*as on from"react";var Ym={dev:"https://stg-contents.crosstoken.io/frontend/common/app-launcher",stage:"https://stg-contents.crosstoken.io/frontend/common/app-launcher",production:"https://contents.crosstoken.io/frontend/common/app-launcher"},Km=3e3;function Vr(e,t){if(e!=null)return typeof e=="object"&&!Array.isArray(e)&&("dev"in e||"stage"in e||"production"in e)?e[t]:e}var bs=new Map;function Yn(e,t){let r=`${Ym[t]}/${e}`,n=bs.get(r);return n||(n=(async()=>{let o=new AbortController,i=setTimeout(()=>o.abort(),Km);try{let a=await fetch(r,{cache:"no-store",signal:o.signal});return a.ok?await a.json():null}catch{return null}finally{clearTimeout(i)}})().then(o=>(o===null&&bs.delete(r),o)),bs.set(r,n)),n}function Zm(e){return typeof e=="string"&&e.startsWith("https://")}async function Re(e,t){let r=await Yn("endpoints.json",t),n=Vr(r?.apis?.[e],t);if(!Zm(n))throw new Error(`[remote-config] endpoints.json missing or invalid api base: ${e} (${t})`);return n}function Mi(e,t){let r=Vr(e?.relay?.forwarderFactories,t),n=[r?.standingForwarderFactory,r?.depositorForwarderFactory].filter(o=>typeof o=="string");return n.length>0?n:void 0}var Ai="chains.json";async function Xm(e,t){return(await Yn(Ai,t))?.chains?.[String(e)]??{}}function Vo(e,t){let[r,n]=on.useState({});return on.useEffect(()=>{if(e==null){n({});return}let o=!0;return Yn(Ai,t).then(i=>{o&&n(i?.chains?.[String(e)]??{})}),()=>{o=!1}},[e,t]),r}function Jm(e){let[t,r]=on.useState({});return on.useEffect(()=>{let n=!0;return Yn(Ai,e).then(o=>{n&&r(o?.chains??{})}),()=>{n=!1}},[e]),t}function sr(e,t,r){let[n,o]=on.useState(void 0),i=on.useRef(r);return i.current=r,on.useEffect(()=>{let a=!0;return Yn(e,t).then(s=>{if(!a)return;let l=i.current(s);l!==void 0&&o(l)}),()=>{a=!1}},[e,t]),n}var qo="1.3.12
|
|
1
|
+
function od(e){try{return import.meta.env?.[e]}catch{return}}function id(e){if(!(typeof process>"u"))return process.env?.[e]}function nt(e){if(e)return ad(e);let t=od("VITE_CROSSX_ENVIRONMENT")??od("NEXT_PUBLIC_CROSSX_ENVIRONMENT")??id("NEXT_PUBLIC_CROSSX_ENVIRONMENT")??id("CROSSX_ENVIRONMENT");return ad(t)}function ad(e){switch(e?.toLowerCase()){case"dev":case"development":return"dev";case"stage":case"staging":case"stg":return"stage";default:return"production"}}import*as on from"react";var Ym={dev:"https://stg-contents.crosstoken.io/frontend/common/app-launcher",stage:"https://stg-contents.crosstoken.io/frontend/common/app-launcher",production:"https://contents.crosstoken.io/frontend/common/app-launcher"},Km=3e3;function Vr(e,t){if(e!=null)return typeof e=="object"&&!Array.isArray(e)&&("dev"in e||"stage"in e||"production"in e)?e[t]:e}var bs=new Map;function Yn(e,t){let r=`${Ym[t]}/${e}`,n=bs.get(r);return n||(n=(async()=>{let o=new AbortController,i=setTimeout(()=>o.abort(),Km);try{let a=await fetch(r,{cache:"no-store",signal:o.signal});return a.ok?await a.json():null}catch{return null}finally{clearTimeout(i)}})().then(o=>(o===null&&bs.delete(r),o)),bs.set(r,n)),n}function Zm(e){return typeof e=="string"&&e.startsWith("https://")}async function Re(e,t){let r=await Yn("endpoints.json",t),n=Vr(r?.apis?.[e],t);if(!Zm(n))throw new Error(`[remote-config] endpoints.json missing or invalid api base: ${e} (${t})`);return n}function Mi(e,t){let r=Vr(e?.relay?.forwarderFactories,t),n=[r?.standingForwarderFactory,r?.depositorForwarderFactory].filter(o=>typeof o=="string");return n.length>0?n:void 0}var Ai="chains.json";async function Xm(e,t){return(await Yn(Ai,t))?.chains?.[String(e)]??{}}function Vo(e,t){let[r,n]=on.useState({});return on.useEffect(()=>{if(e==null){n({});return}let o=!0;return Yn(Ai,t).then(i=>{o&&n(i?.chains?.[String(e)]??{})}),()=>{o=!1}},[e,t]),r}function Jm(e){let[t,r]=on.useState({});return on.useEffect(()=>{let n=!0;return Yn(Ai,e).then(o=>{n&&r(o?.chains??{})}),()=>{n=!1}},[e]),t}function sr(e,t,r){let[n,o]=on.useState(void 0),i=on.useRef(r);return i.current=r,on.useEffect(()=>{let a=!0;return Yn(e,t).then(s=>{if(!a)return;let l=i.current(s);l!==void 0&&o(l)}),()=>{a=!1}},[e,t]),n}var qo="1.3.12";var Li="__nexusCrossAppLauncherRuntime";function $m(){if(typeof window>"u")return null;let e=window;return e[Li]??(e[Li]={mode:"dapp-ui"}),e[Li]}function eg(e){if(e.scheduled)return;e.scheduled=!0;let t=()=>{if(e.scheduled=!1,e.loggedMode!==e.mode){if(e.mode==="connect-kit-react"){let r=e.connectKitVersion??"unknown";console.info(`[CROSSx App Launcher] connect-kit-react v${r} \uCD08\uAE30\uD654 \uC644\uB8CC (dapp-ui v${qo}, \uC0AC\uC6A9 \uBAA8\uB4DC: connect-kit)`)}else console.info(`[CROSSx App Launcher] dapp-ui v${qo} \uCD08\uAE30\uD654 \uC644\uB8CC (\uC0AC\uC6A9 \uBAA8\uB4DC: dapp-ui only)`);e.loggedMode=e.mode}};typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)}function ws(e){let t=$m();t&&(e?.mode==="connect-kit-react"?t.mode="connect-kit-react":t.mode||(t.mode="dapp-ui"),e?.connectKitVersion&&(t.connectKitVersion=e.connectKitVersion),eg(t))}import{BrowserClient as tg,Scope as rg,defaultStackParser as ng,linkedErrorsIntegration as og,makeFetchTransport as ig}from"@sentry/react";var ag="https://5c82aeb32da33b5a0a14b7c5393992ca@o4511668907081728.ingest.de.sentry.io/4511705324126289",sg=`dapp-ui@${qo}`,mo=null,sd=.1;function ld(){return sd}function lg(e){switch(e){case"dev":return"dev";case"stage":return"stg";default:return"prod"}}function Yo(e){if(mo)return mo;if(typeof window>"u")return null;let t=lg(nt(e?.environment));typeof e?.analyticsSampleRate=="number"&&(sd=Math.min(1,Math.max(0,e.analyticsSampleRate)));let r=new tg({dsn:e?.dsn??ag,transport:ig,stackParser:ng,integrations:[og()],environment:t,release:sg,enabled:e?.enabled??t==="prod"}),n=new rg;return n.setClient(r),n.setTags({package:"dapp-ui",framework:"react",source:"dapp-ui"}),r.init(),mo=n,mo}function Di(){return mo}function Pi(e,t){let r=mo??Yo();if(r)return r.captureException(e,t?{captureContext:{extra:t}}:void 0)}import{Component as dg}from"react";var Oi=class extends dg{constructor(){super(...arguments);this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(r,n){Pi(r,{componentStack:n.componentStack??void 0,boundary:this.props.name??"dapp-ui"})}render(){return this.state.hasError?this.props.fallback??null:this.props.children}};function Ne(...e){return e.filter(Boolean).join(" ")}var cg=/CROSSx|ONE\s?wallet|ONE\s?pocket/i;function go(){return typeof window>"u"?!1:cg.test(window.navigator.userAgent)}var dd="__nexus_dapp_ui_uid",ys=null;function pg(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():Array.from({length:32},()=>Math.floor(Math.random()*16).toString(16)).join("")}function xs(){if(ys)return ys;let e=null;try{e=window.localStorage.getItem(dd)}catch{}if(!e||!e.startsWith("anon_")){e=`anon_${pg()}`;try{window.localStorage.setItem(dd,e)}catch{}}return ys=e,e}async function cd(e){if(typeof crypto>"u"||!crypto.subtle)return null;try{let t=new TextEncoder().encode(e.trim().toLowerCase()),r=await crypto.subtle.digest("SHA-256",t);return`wallet_${Array.from(new Uint8Array(r),o=>o.toString(16).padStart(2,"0")).join("").slice(0,16)}`}catch{return null}}function ug(){let e=window.navigator.userAgent;return/ipad|tablet|(android(?!.*mobile))/i.test(e)?"tablet":/mobile|iphone|ipod|android/i.test(e)?"mobile":"desktop"}function fd(){return{host:window.location.hostname,device_type:ug(),is_cross_inapp:String(go())}}var pd=!1;function vs(){if(typeof window>"u")return null;let e=Di()??Yo();return e?(pd||(pd=!0,e.setUser({id:xs()})),e):null}function md(){return Math.random()>=ld()}var ud=0;function ho(e){let t=vs();if(!t)return;let r=++ud;if(!e){t.setUser({id:xs()});return}cd(e).then(n=>{n&&r===ud&&t.setUser({id:n})})}function Bi(e,t,r){let n=vs();!n||md()||n.captureMessage(`ui: ${e}_${t}`,"info",{captureContext:{tags:{...fd(),feature:e,action:t,...r}}})}function _e(e,t,r){let n=vs();if(!n||md())return;let o=r?.status??"success";n.captureMessage(`funnel: ${e}_${t}`,"info",{captureContext:{tags:{...fd(),flow:e,funnel_step:`${e}_${t}`,funnel_status:o,...o==="failure"?{failure_reason:r?.reason??"unknown"}:{},...r?.tags}}})}function gr(e){let t=e,r=String((t&&typeof t=="object"&&"message"in t?t.message:e)??"").toLowerCase();return t?.code===4001||/reject|denied|declin|cancel/i.test(r)?"user-rejected":/insufficient (funds|gas|balance)|exceeds balance/i.test(r)?"insufficient-gas":/timeout|timed out|deadline/i.test(r)?"timeout":/revert|execution failed/i.test(r)?"contract-reverted":/network|fetch|connection|disconnected|offline/i.test(r)?"network":"unknown"}import{useCallback as fg}from"react";import{jsx as mg}from"react/jsx-runtime";function ge({feature:e,children:t}){let r=fg(n=>{let o=n.nativeEvent;if(o.__dappUiTracked)return;let a=n.target?.closest?.("[data-track]");if(!a)return;let s=a.getAttribute("data-track");if(!s)return;o.__dappUiTracked=!0;let l=a.getAttribute("data-track-id");Bi(e,s,l?{item_id:l}:void 0)},[e]);return mg("div",{style:{display:"contents"},onClick:r,children:t})}import*as wo from"react";import*as gd from"@radix-ui/react-popover";import{Drawer as yg}from"vaul";import{createContext as gg,useContext as hg}from"react";var ks=gg(null);function zi(){let e=hg(ks);if(!e)throw new Error("AppLauncher compound components must be used within <AppLauncher>");return e}import{useState as bg,useEffect as wg}from"react";function bo(e){let[t,r]=bg(!1);return wg(()=>{let n=window.matchMedia(e);r(n.matches);let o=i=>r(i.matches);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)},[e]),t}function de(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}de(`[data-theme=dark]{--al-bg: var(--ds-surface-default, #1e232e);--al-bg-hover: var(--ds-surface-medium, #252b39);--al-text: var(--ds-content-highest, #ffffff);--al-text-secondary: var(--ds-content-medium, #ffffffa6);--al-border: var(--ds-border-default, #ffffff12);--al-shadow: var(--ds-shadow-modal, 0px 4px 30px -1px rgba(0, 0, 0, .7));--al-primary: #f3742e;--al-primary-hover: #ff8a4a;--al-primary-soft: #3a261f;--al-new-ribbon-bg: #ed0a72;--al-badge-bg: var(--ds-accent-primary-low, #123235);--al-badge-text: var(--ds-accent-primary-default, #00ceb2);--al-drawer-overlay: var(--ds-overlay-dim, #000000b3)}[data-theme=light]{--al-bg: var(--ds-surface-default, #ffffff);--al-bg-hover: var(--ds-surface-medium, #f5f7fa);--al-text: var(--ds-content-highest, #000000);--al-text-secondary: var(--ds-content-medium, #000000a6);--al-border: var(--ds-border-default, #00000012);--al-shadow: var(--ds-shadow-modal, 0px 4px 30px -1px rgba(0, 0, 0, .15));--al-primary: #f3742e;--al-primary-hover: #ff8a4a;--al-primary-soft: #fff1eb;--al-new-ribbon-bg: #ed0a72;--al-badge-bg: var(--ds-accent-primary-low, #e7f9f8);--al-badge-text: var(--ds-accent-primary-default, #00b4b7);--al-drawer-overlay: var(--ds-overlay-dim, #00000080)}
|
|
2
2
|
`);de(`.al-trigger-btn{--at-bg: transparent;--at-bg-hover: #eaedf1;--at-color: var(--ds-content-high, rgba(0, 0, 0, .85));--at-border: none;--at-border-radius: 8px;--at-size: 36px;--at-padding: 0;--at-press-scale: .95;--at-transition: background-color .15s ease;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--at-size);height:var(--at-size);padding:var(--at-padding);border:var(--at-border);background:var(--at-bg);border-radius:var(--at-border-radius);color:var(--at-color);cursor:pointer;transition:var(--at-transition)}.al-trigger-btn:hover,.al-trigger-btn[data-state=open]{background:var(--at-bg-hover)}.al-trigger-btn:active:not(:disabled){background:var(--at-bg-hover);transform:scale(var(--at-press-scale))}.al-trigger-btn[data-theme=dark]{--at-color: var(--ds-content-high, rgba(255, 255, 255, .85));--at-bg-hover: #252b39}.al-trigger-btn[data-theme=light]{--at-color: var(--ds-content-high, rgba(0, 0, 0, .85))}
|
|
3
3
|
`);de(`@keyframes al-fade-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
|
|
4
4
|
`);de(`.al-popover-content{-webkit-font-smoothing:antialiased;z-index:100001;border-radius:24px;background:var(--al-bg);border:1px solid var(--al-popover-border, var(--al-border));box-shadow:var(--al-popover-shadow, var(--al-shadow));animation:al-fade-in .15s ease-out;max-height:80vh;overflow-x:hidden;overflow-y:auto;padding:20px 4px;box-sizing:border-box}.al-popover-content .al-menu{display:flex;flex-direction:column;width:424px;max-width:calc(100vw - 32px);padding:0 12px;box-sizing:border-box}.al-popover-content .al-grid{display:grid;grid-template-columns:repeat(4,100px);row-gap:12px;column-gap:0;justify-content:center;align-items:start}.al-popover-content .al-grid-item{position:relative;flex-direction:column;justify-content:flex-start;align-items:center;gap:6px;padding:12px 0;width:100px;min-width:0;border-radius:10px}.al-popover-content .al-grid-item-left{flex-direction:column;align-items:center;gap:8px;width:100%;overflow:visible}.al-popover-content .al-grid-item-icon{width:50px;height:50px;border-radius:10.125px;overflow:visible}.al-popover-content .al-grid-item-icon img{object-fit:cover}.al-popover-content .al-grid-item-label{font-family:Inter,sans-serif;font-size:12px;font-weight:500;line-height:1.1;letter-spacing:0;text-align:center;color:var(--al-text);max-width:100%;white-space:normal;overflow-wrap:anywhere}.al-popover-content .al-grid-item-text{flex-direction:column;align-items:center;justify-content:center;gap:2px;max-width:100%;min-height:26px}.al-popover-content .al-grid-item-status-text{font-size:10px;line-height:1.1}.al-popover-content .al-badge-list{display:none}.al-drawer-overlay{position:fixed;inset:0;z-index:100000;background:var(--al-drawer-overlay)}.al-drawer-content{-webkit-font-smoothing:antialiased;position:fixed;top:0;right:0;bottom:0;z-index:100001;width:100vw;background:var(--al-bg);overflow-x:hidden;overflow-y:hidden;display:flex;flex-direction:column;box-sizing:border-box}.al-drawer-body{flex:1;overflow-y:auto;overscroll-behavior-y:contain;min-height:0}.al-drawer-content .al-menu{display:flex;flex-direction:column;min-height:0}.al-drawer-content .al-grid{display:flex;flex-direction:column;grid-template-columns:none;max-width:100%;overflow:hidden;flex-shrink:0;gap:0;row-gap:0;column-gap:0;padding:8px 16px}.al-drawer-content .al-grid-item{width:100%;max-width:100%;gap:8px;padding:16px 12px;border-radius:8px;overflow:hidden;background:transparent}.al-drawer-content .al-grid-item:hover,.al-drawer-content .al-grid-item[data-active=true]{background:var(--al-bg-hover)}.al-drawer-content .al-grid-item-left{gap:8px;flex:1 1 auto;min-width:0;overflow:visible}.al-drawer-content .al-grid-item-icon{width:32px;height:32px;border-radius:6.75px;overflow:visible}.al-drawer-content .al-grid-item-icon img{width:100%;height:100%;object-fit:cover;border-radius:6.75px}.al-drawer-content .al-grid-item-label{font-size:16px;line-height:1.35;letter-spacing:0;font-weight:400}.al-drawer-content .al-grid-item[data-active=true] .al-grid-item-label{font-weight:500}.al-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:16px;flex-shrink:0}.al-drawer-title{font-family:Inter,sans-serif;font-size:16px;font-weight:500;line-height:1.5;letter-spacing:0;color:var(--al-text);margin:0}.al-drawer-close{display:inline-flex;align-items:center;justify-content:center;padding:4px;border:none;background:transparent;border-radius:4px;cursor:pointer;color:var(--al-text-secondary);transition:opacity .15s ease}.al-drawer-close:hover{opacity:.7}.al-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;padding:8px}.al-grid-item{display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:16px 12px;border:none;background:var(--al-bg);border-radius:8px;cursor:pointer;transition:none;color:var(--al-text);text-align:left;font-family:Inter,sans-serif;flex-shrink:0}.al-grid-item:hover,.al-grid-item[data-active=true]{background:var(--al-bg-hover)!important}.al-grid-item-left{display:flex;align-items:center;gap:8px;min-width:0;overflow:visible}.al-grid-item-text{display:flex;flex-direction:column;align-items:flex-start;gap:1px;max-width:100%;min-width:0}.al-grid-item-icon{display:flex;align-items:center;justify-content:center;position:relative;width:24px;height:24px;overflow:visible;border-radius:5px;flex-shrink:0}.al-grid-item-icon img{width:100%;height:100%;object-fit:contain;border-radius:inherit}.al-grid-item-label{font-family:Inter,sans-serif;font-size:16px;font-weight:500;line-height:150%;letter-spacing:0;color:var(--al-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.al-grid-item-status-text{font-family:Inter,sans-serif;font-size:12px;font-weight:400;line-height:1.15;letter-spacing:0;color:var(--al-text);white-space:nowrap}.al-status-ribbon{position:absolute;top:-6px;right:-6px;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;box-sizing:border-box;border-radius:999px;color:#fff;font-family:Pretendard,Inter,sans-serif;font-size:12px;font-weight:800;line-height:1;pointer-events:none;box-shadow:0 1px 3px #0000002e}.al-status-ribbon-new{background:var(--al-new-ribbon-bg)}.al-badge{display:flex;padding:1px 4px 2px;justify-content:center;align-items:center;gap:2px;border-radius:3px;background:var(--al-badge-bg);color:var(--al-badge-text);font-family:Pretendard,Inter,sans-serif;font-size:10px;font-weight:600;line-height:150%;letter-spacing:0;white-space:nowrap;flex-shrink:0}
|
|
@@ -14,7 +14,7 @@ function od(e){try{return import.meta.env?.[e]}catch{return}}function id(e){if(!
|
|
|
14
14
|
`);de(`.wi-popover-content{-webkit-font-smoothing:antialiased;z-index:100001;width:393px;border-radius:24px;border:1px solid var(--ds-border-default, rgba(0, 0, 0, .07));background:var(--wi-surface-bg);box-shadow:var(--ds-shadow-modal, var(--wi-shadow));animation:wi-fade-in .15s ease-out;height:min(680px,calc(100dvh - 32px));overflow:hidden;display:flex;flex-direction:column}.wi-popover-content[data-no-balance]{height:auto}.wi-popover-content[data-has-footer]:not([data-no-balance]){height:min(calc(680px + var(--wi-footer-height, 0px)),calc(100dvh - 32px))}.wi-drawer-overlay{position:fixed;inset:0;z-index:100000;background:#0009}.wi-drawer-content{-webkit-font-smoothing:antialiased;position:fixed;top:0;right:0;bottom:0;z-index:100001;width:100vw;max-height:100vh;background:var(--wi-surface-bg);overflow:hidden;display:flex;flex-direction:column;box-sizing:border-box}.wi-drawer-content[data-no-balance]{bottom:auto;max-height:none}.wi-drawer-content[data-no-balance][data-direction=bottom]{bottom:0;top:auto;border-radius:24px 24px 0 0}.wi-drawer-content[data-direction=left]{right:auto;left:0}.wi-drawer-content[data-direction=bottom]{top:0;left:0;right:0;width:100%;max-height:100dvh;margin:0 auto}.wi-drawer-content[data-direction=bottom][data-view=qr]{max-height:100dvh}.wi-popover-content[data-view=qr]{max-height:calc(100dvh - 32px)}.wi-sticky-header{flex-shrink:0;position:relative}.wi-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:24px}.wi-header--wallet{align-items:flex-start;border-bottom:1px solid var(--ds-border-default, rgba(0, 0, 0, .07))}.wi-header--wallet+.wi-divider{display:none}.wi-header--sub-account{align-items:center}.wi-header--sub-account .wi-header-back{width:32px;height:38px}.wi-header--sub-account .wi-header-action{flex-shrink:0}.wi-account-block{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.wi-account-block--sub-account{align-items:center}.wi-avatar{flex-shrink:0;position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border-radius:50%;background:var(--wi-surface-bg);box-sizing:border-box;overflow:hidden}.wi-avatar-fallback{position:absolute;inset:0;border-radius:50%;z-index:0}.wi-avatar-img{position:relative;z-index:1;width:32px;height:32px;border-radius:50%;object-fit:cover;background:transparent}.wi-account-text{display:flex;flex-direction:column;gap:2px;min-width:0}.wi-account-row{display:flex;align-items:center;gap:8px;min-width:0}.wi-account-row--btn{padding:2px;margin:0;width:fit-content;border:none;background:transparent;cursor:pointer;color:inherit;font:inherit;border-radius:6px;transition:background-color .15s ease,opacity .15s ease}.wi-account-row--btn:hover{background:var(--wi-surface-subtle, rgba(255, 255, 255, .06))}.wi-account-row--btn:focus-visible{outline:2px solid var(--wi-primary, #00d5aa);outline-offset:2px}.wi-account-name{font-family:inherit;font-size:16px;font-weight:600;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-high, rgba(0, 0, 0, .85));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wi-account-switch{display:inline-flex;align-items:center;justify-content:center;padding:2px 0;border:none;background:transparent;color:var(--ds-content-low, rgba(0, 0, 0, .4));border-radius:4px;flex-shrink:0;transition:color .15s ease,transform .2s ease}.wi-account-switch[data-open=true]{transform:rotate(180deg)}.wi-account-row--btn:hover .wi-account-switch{color:var(--ds-content-high, rgba(0, 0, 0, .85))}.wi-address-row-btn{display:inline-flex;align-items:center;gap:4px;padding:0;border:none;background:transparent;cursor:pointer;color:var(--ds-content-medium, rgba(0, 0, 0, .65));font:inherit;text-align:left;min-width:0;transition:color .15s ease}.wi-address-row-btn:hover .wi-account-address,.wi-address-row-btn:hover .wi-account-copy{color:var(--ds-content-high, rgba(0, 0, 0, .85))}.wi-account-address{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;font-weight:400;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-medium, rgba(0, 0, 0, .65));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wi-account-copy{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;color:var(--wi-texticon-tertiary);flex-shrink:0;transition:color .15s ease}.wi-account-copy[data-copied=true]{color:var(--ds-system-green-high, #00a869)}.wi-header-actions{display:flex;align-items:center;gap:16px;flex-shrink:0;margin-top:-4px}.wi-header-action{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background:transparent;border-radius:0;cursor:pointer;color:var(--ds-content-low, rgba(0, 0, 0, .4));flex-shrink:0;transition:color .15s ease}.wi-header-action:hover{color:var(--ds-content-high, rgba(0, 0, 0, .85))}.wi-header-action--qr{width:32px;height:32px;border-radius:8px;background:var(--ds-surface-medium, #f5f7fa);color:var(--ds-content-medium, rgba(0, 0, 0, .65));transition:background-color .15s ease,color .15s ease}.wi-header-action--qr:hover{background:var(--ds-surface-high, rgba(0, 0, 0, .08));color:var(--ds-content-high, rgba(0, 0, 0, .85))}.wi-header--receive{align-items:center;border-bottom:1px solid var(--ds-border-default, rgba(0, 0, 0, .07))}.wi-header--receive .wi-header-action,.wi-header--sub-account .wi-header-action{position:absolute;top:24px;right:24px}.wi-receive-title{position:absolute;left:50%;transform:translate(-50%);font-family:inherit;font-size:18px;font-weight:600;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-highest, #000000);text-align:center;pointer-events:none}.wi-header-info{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}.wi-header-title{font-family:inherit;font-size:16px;font-weight:600;line-height:1.3;color:var(--wi-texticon-primary);margin:0}.wi-header-close{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:none;background:var(--wi-surface-default);border-radius:8px;cursor:pointer;color:var(--ds-content-low, #00000066);transition:opacity .15s ease}.wi-header-close:hover{opacity:.7}.wi-total-section{margin:24px 24px 0;padding:0;flex-shrink:0;display:flex;flex-direction:column;gap:8px;border:none;background:transparent;border-radius:12px;color:inherit;font:inherit;text-align:left;width:auto}.wi-action-row{display:flex;align-items:flex-start;gap:8px;width:auto;margin:24px 24px 0}.wi-action-card{appearance:none;display:flex;flex:1 1 0;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px 8px;border:none;border-radius:12px;background:var(--ds-surface-medium, #f5f7fa);color:var(--ds-content-high, rgba(0, 0, 0, .85));font-family:inherit;font-size:14px;font-weight:500;line-height:1.5;letter-spacing:-.01em;text-align:center;cursor:pointer;transition:background-color .15s ease,color .15s ease}.wi-action-card:hover:not(:disabled){background:#2e3544!important;color:var(--ds-content-high, rgba(0, 0, 0, .85))}:root[data-ds-theme=light] .wi-action-card:hover:not(:disabled){background:#e4e8ef!important;color:var(--ds-content-high, rgba(0, 0, 0, .85))}.wi-action-card:disabled{cursor:default}.wi-action-card>svg{flex-shrink:0}.wi-action-card:not(:disabled){transition:background-color .15s ease,transform .1s ease}.wi-action-card:active:not(:disabled){transform:scale(.93)}.wi-total-head{display:flex;align-items:center;gap:4px}.wi-total-body{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.wi-total-label{font-family:inherit;font-size:14px;font-weight:400;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-medium, rgba(0, 0, 0, .65))}.wi-total-eye{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;color:var(--ds-content-low, rgba(0, 0, 0, .4));cursor:pointer;transition:color .15s ease;border-radius:4px}.wi-total-eye:hover{color:var(--ds-content-high, rgba(0, 0, 0, .85))}.wi-total-eye:focus-visible{outline:1px solid var(--wi-texticon-secondary);outline-offset:2px}.wi-total-value{display:flex;align-items:baseline;gap:0;font-family:inherit;font-weight:600;line-height:1.25;color:var(--ds-content-highest, #000000);font-variant-numeric:tabular-nums;min-height:45px;white-space:nowrap}.wi-total-currency,.wi-total-amount,.wi-total-decimal{font-size:calc(36px * var(--wi-total-scale, 1));color:var(--ds-content-highest, #000000)}.wi-total-lte{margin-right:2px;font-weight:500;font-size:calc(22px * var(--wi-total-scale, 1));color:var(--wi-texticon-secondary)}.wi-total-mask{letter-spacing:2px;font-size:calc(32px * var(--wi-total-scale, 1));color:var(--wi-texticon-secondary)}.wi-total-skeleton{border-radius:6px}.wi-scrollable-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:8px 0 0;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent;overscroll-behavior:contain}.wi-drawer-content .wi-scrollable-body{touch-action:pan-y}[data-theme=light] .wi-scrollable-body{scrollbar-color:rgba(0,0,0,.12) transparent}.wi-scrollable-body::-webkit-scrollbar{width:4px}.wi-scrollable-body::-webkit-scrollbar-track{background:transparent}.wi-scrollable-body::-webkit-scrollbar-thumb{background:#ffffff26;border-radius:4px}.wi-scrollable-body::-webkit-scrollbar-thumb:hover{background:#ffffff40}[data-theme=light] .wi-scrollable-body::-webkit-scrollbar-thumb{background:#0000001f}[data-theme=light] .wi-scrollable-body::-webkit-scrollbar-thumb:hover{background:#0003}.wi-nav-fixed{flex-shrink:0;padding:0 24px}.wi-token-list{display:flex;flex-direction:column;gap:0;padding:8px 0}.wi-token-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 24px;border:none;background:transparent;text-align:left;font-family:inherit;width:100%;box-sizing:border-box}.wi-token-item--button{cursor:pointer;background:var(--ds-surface-default, #ffffff);transition:none}.wi-token-item--button:hover{background:#252b39!important}:root[data-ds-theme=light] .wi-token-item--button:hover{background:#eff3f8!important}button.wi-token-item:focus-visible{outline:2px solid var(--wi-primary);outline-offset:2px;border-radius:4px}.wi-token-left{display:flex;align-items:center;gap:16px;min-width:0}.wi-token-icon-wrap{position:relative;width:40px;height:40px;flex-shrink:0}.wi-token-icon{width:40px;height:40px;border-radius:0;object-fit:contain;opacity:0;transition:opacity .2s ease}.wi-token-icon[data-loaded=true]{opacity:1}.wi-token-chain-badge{position:absolute;right:0;bottom:0;width:14px;height:14px;border-radius:50%;background:var(--wi-surface-bg);box-shadow:0 0 0 1.5px var(--wi-surface-bg);object-fit:contain}.wi-token-info{display:flex;flex-direction:column;min-width:0}.wi-token-name-row{display:flex;align-items:center;gap:6px;min-width:0}.wi-token-name{font-family:inherit;font-size:16px;font-weight:600;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-high, rgba(0, 0, 0, .85));white-space:nowrap}.wi-token-apr{flex-shrink:0;font-family:inherit;font-size:12px;font-weight:600;line-height:1;color:var(--ds-system-purple-high, #9b78ff);background:var(--ds-system-purple-low, #2e2854);padding:4px;border-radius:6px;white-space:nowrap}.wi-token-price-row{display:flex;align-items:center;gap:8px}.wi-token-price{font-family:inherit;font-size:14px;font-weight:500;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-low, rgba(0, 0, 0, .4));white-space:nowrap}.wi-token-change{font-family:inherit;font-size:14px;font-weight:500;line-height:1.5;letter-spacing:-.01em;white-space:nowrap}.wi-token-change[data-positive=true]{color:var(--ds-system-green-high, #00a0a2)}.wi-token-change[data-positive=false]{color:var(--ds-system-red-high, #a80927)}.wi-token-change[data-zero]{color:var(--ds-content-low, rgba(0, 0, 0, .4))}.wi-token-right{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0}.wi-token-balance{font-family:inherit;font-size:16px;font-weight:600;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-highest, #000000);white-space:nowrap}.wi-token-value{font-family:inherit;font-size:14px;font-weight:500;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-low, rgba(0, 0, 0, .4));white-space:nowrap}.wi-sticky-footer{flex-shrink:0}.wi-footer{padding:16px 24px 24px}.wi-builtin-footer{display:flex;flex-direction:column;gap:8px;align-items:stretch}.wi-wallet-disconnect-row{display:flex;justify-content:flex-end;flex-shrink:0;padding:16px 24px;border-top:1px solid var(--ds-border-default, rgba(0, 0, 0, .07))}.wi-send-toast{position:absolute;left:15px;right:15px;bottom:20px;z-index:2;display:flex;align-items:center;gap:12px;min-height:52px;padding:12px;border-radius:12px;background:var(--ds-surface-inverted, #1e232e);color:var(--ds-content-inverted, #ffffff);box-sizing:border-box;text-decoration:none}.wi-action-toast{position:absolute;left:15px;right:15px;bottom:20px;z-index:3;padding:12px 14px;border-radius:12px;background:var(--ds-surface-inverted, #1e232e);color:var(--ds-content-inverted, #ffffff);font-size:14px;line-height:1.4;text-align:center;box-sizing:border-box;animation:wi-action-toast-in .18s ease-out}.wi-popover-content:has(.wi-wallet-disconnect-row) .wi-action-toast,.wi-drawer-content:has(.wi-wallet-disconnect-row) .wi-action-toast{bottom:72px}@keyframes wi-action-toast-in{0%{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}.wi-action-card--dimmed{opacity:.4;cursor:pointer}.wi-action-card--dimmed:hover{opacity:.5}.wi-popover-content:has(.wi-wallet-disconnect-row) .wi-send-toast,.wi-drawer-content:has(.wi-wallet-disconnect-row) .wi-send-toast{bottom:72px}.wi-send-toast:hover{opacity:.92}.wi-send-toast-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0;color:var(--ds-system-orange-default, #f0640d)}.wi-send-toast-spinner{width:18px;height:18px;border:2px solid rgba(255,159,33,.22);border-top-color:var(--ds-system-orange-on-inverted, #ff9f21);border-radius:50%;animation:wi-send-toast-spin .8s linear infinite}.wi-send-toast-error-dot{width:18px;height:18px;border-radius:50%;background:var(--ds-system-red-default, #ff3358)}@keyframes wi-send-toast-spin{to{transform:rotate(360deg)}}.wi-send-toast-copy{display:flex;min-width:0;flex-direction:column}.wi-send-toast-title{font-family:inherit;font-size:14px;font-weight:600;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-inverted, #ffffff)}.wi-send-toast-desc{font-family:inherit;font-size:12px;font-weight:400;line-height:1.5;letter-spacing:-.01em;color:var(--ds-system-orange-on-inverted, #ff9f21)}.wi-send-toast-icon[data-status=error]+.wi-send-toast-copy .wi-send-toast-desc{color:var(--ds-system-red-default, #ff3358)}.wi-disconnect-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:16px;padding:0;border:none;background:transparent;color:var(--ds-content-low, rgba(0, 0, 0, .4));font-family:inherit;font-size:14px;font-weight:500;line-height:1.5;letter-spacing:-.01em;cursor:pointer;transition:color .15s ease}.wi-disconnect-btn:hover{color:var(--ds-content-high, rgba(0, 0, 0, .85))}.wi-disconnect-label{white-space:nowrap}.wi-legal-links{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;flex-shrink:0;font-family:inherit;font-size:14px;font-weight:400;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-low, rgba(0, 0, 0, .4))}.wi-receive-avatar .wi-avatar-fallback{position:absolute;inset:0;border-radius:50%;z-index:0}.wi-receive-avatar .wi-avatar-img{width:24px;height:24px}.wi-legal-link{color:var(--ds-content-low, rgba(0, 0, 0, .4));text-decoration:underline;text-underline-offset:2px;transition:color .15s ease}.wi-legal-link:hover{color:var(--ds-content-high, rgba(0, 0, 0, .85))}.wi-legal-sep{color:inherit}.wi-empty{display:flex;align-items:center;justify-content:center;padding:32px 0;font-family:inherit;font-size:16px;color:var(--wi-texticon-secondary)}.wi-skeleton-item{display:flex;align-items:center;justify-content:space-between;padding:4px 0}.wi-skeleton-left{display:flex;align-items:center;gap:12px}.wi-skeleton-block{border-radius:6px;background:var(--wi-border-default);position:relative;overflow:hidden}.wi-skeleton-block:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.06) 50%,transparent 100%);animation:wi-shimmer 1.5s ease-in-out infinite}[data-theme=light] .wi-skeleton-block:after{background:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.04) 50%,transparent 100%)}.wi-skeleton-icon{width:32px;height:32px;border-radius:50%;flex-shrink:0}.wi-skeleton-lines{display:flex;flex-direction:column;gap:6px}.wi-skeleton-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.wi-header-back{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background:transparent;cursor:pointer;color:var(--ds-content-low, rgba(0, 0, 0, .4));flex-shrink:0;transition:color .15s ease}.wi-header-back:hover{color:var(--ds-content-high, rgba(0, 0, 0, .85))}.wi-view-container{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.wi-popover-content[data-view=qr] .wi-view-container,.wi-drawer-content[data-view=qr] .wi-view-container{flex:1;min-height:0}.wi-view-inner{display:flex;flex-direction:column;flex:1;min-height:0}.wi-view-wallet{animation:wi-slide-in-left .25s ease-out}.wi-view-qr,.wi-view-portfolio{animation:wi-slide-in-right .25s ease-out}.wi-qr-body{flex:1;min-height:0;display:flex;flex-direction:column}.wi-portfolio-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.wi-portfolio-body>.wp-embed{flex:1;min-height:0}.wi-portfolio-body .wp-body-inner{padding:16px 16px 32px;gap:32px}.wi-receive-section{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:24px}.wi-receive-account{display:inline-flex;align-items:center;gap:8px;padding:4px 8px 4px 4px;border:0;background:var(--ds-surface-high, #edf1f2);border-radius:9999px;font-family:inherit;color:inherit}.wi-receive-account--btn{cursor:pointer;transition:none}.wi-receive-account--btn:hover{background:#2e3544}:root[data-ds-theme=light] .wi-receive-account--btn:hover{background:#e4e8ef}.wi-receive-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;overflow:hidden;flex-shrink:0}.wi-receive-account-name{font-family:inherit;font-size:16px;font-weight:600;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-high, rgba(0, 0, 0, .85));white-space:nowrap}.wi-receive-account>svg{color:var(--ds-content-medium, rgba(0, 0, 0, .65));flex-shrink:0}.wi-receive-chevron{display:inline-flex;align-items:center;color:var(--ds-content-medium, rgba(0, 0, 0, .65));flex-shrink:0;transition:transform .2s ease}.wi-receive-chevron[data-open=true]{transform:rotate(180deg)}.wi-qr-block{display:flex;flex-direction:column;align-items:center;gap:16px}.wi-qr-box{position:relative;display:flex;align-items:center;justify-content:center;padding:10px;background:#fff;border-radius:6px;overflow:hidden}.wi-qr-logo{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}.wi-qr-address{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:16px;font-weight:400;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-medium, rgba(0, 0, 0, .65));text-align:center;word-break:break-all;max-width:281px;margin:0}.wi-qr-copy-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 16px;border:1px solid var(--ds-border-default, rgba(0, 0, 0, .07));background:var(--ds-surface-default, #ffffff);border-radius:12px;cursor:pointer;transition:border-color .15s ease}.wi-qr-copy-btn:hover{border-color:var(--ds-border-medium, rgba(0, 0, 0, .18))}.wi-qr-copy-icon{display:inline-flex;color:var(--ds-content-high, rgba(0, 0, 0, .85))}.wi-qr-copy-text{font-family:inherit;font-size:16px;font-weight:500;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-high, rgba(0, 0, 0, .85));white-space:nowrap}.wi-receive-footer{flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:16px 24px;border-top:1px solid var(--ds-border-default, rgba(0, 0, 0, .07))}.wi-drawer-content .wi-header{padding:16px}.wi-drawer-content .wi-header--receive .wi-header-action,.wi-drawer-content .wi-header--sub-account .wi-header-action{top:16px;right:16px}.wi-drawer-content .wi-total-section,.wi-drawer-content .wi-action-row{margin:16px 16px 0}.wi-drawer-content .wi-nav-fixed{padding:0 16px}.wi-drawer-content .wi-token-item{padding:12px 16px}.wi-drawer-content .wi-wallet-disconnect-row{padding:16px}
|
|
15
15
|
`);de(`.wi-td-header-title{position:absolute;left:50%;transform:translate(-50%);display:inline-flex;align-items:center;gap:8px;pointer-events:none}.wi-td-header-icon{width:24px;height:24px;object-fit:contain;flex-shrink:0}.wi-td-header-name{font-family:inherit;font-size:18px;font-weight:600;line-height:1.5;letter-spacing:-.01em;color:var(--wi-texticon-primary, #ffffff)}.wi-td-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;display:flex;flex-direction:column;gap:24px;padding:20px 24px 24px;background:transparent;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent}[data-theme=light] .wi-td-scroll{scrollbar-color:rgba(0,0,0,.12) transparent}.wi-td-scroll::-webkit-scrollbar{width:4px}.wi-td-scroll::-webkit-scrollbar-track{background:transparent}.wi-td-scroll::-webkit-scrollbar-thumb{background:#ffffff26;border-radius:4px}.wi-td-scroll::-webkit-scrollbar-thumb:hover{background:#ffffff40}[data-theme=light] .wi-td-scroll::-webkit-scrollbar-thumb{background:#0000001f}[data-theme=light] .wi-td-scroll::-webkit-scrollbar-thumb:hover{background:#0003}.wi-td-chart{display:flex;flex-direction:column;gap:14px}.wi-td-chart-panel{display:flex;flex-direction:column;gap:4px}.wi-td-chart-price{font-size:26px;font-weight:700;line-height:1.15;color:var(--wi-texticon-primary, #ffffff)}.wi-td-chart-change{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--ds-system-green-high, #00a869)}.wi-td-chart-change[data-positive=false]{color:var(--wi-error, #e70077)}.wi-td-chart-when{font-weight:400;color:var(--wi-texticon-tertiary, rgba(255, 255, 255, .5))}.wi-td-chart-plot{position:relative;width:100%;height:150px}.wi-td-chart-svg{display:block;width:100%;height:150px;overflow:visible;touch-action:none}.wi-td-chart-minmax{fill:var(--wi-texticon-tertiary, rgba(255, 255, 255, .5));font-size:11px;font-family:inherit}.wi-td-chart-cursor{stroke:var(--wi-texticon-tertiary, rgba(255, 255, 255, .5));stroke-width:1;stroke-dasharray:3 3}.wi-td-chart-skeleton{width:100%;height:150px;border-radius:12px}.wi-td-chart-tabs{display:flex;gap:6px;justify-content:space-between}.wi-td-chart-tab{flex:1;padding:7px 0;border:none;border-radius:8px;background:transparent;cursor:pointer;font-family:inherit;font-size:13px;font-weight:600;color:var(--wi-texticon-tertiary, rgba(255, 255, 255, .5));transition:background .15s ease,color .15s ease}.wi-td-chart-tab[data-active]{background:var(--wi-surface-subtle, rgba(255, 255, 255, .1));color:var(--wi-texticon-primary, #ffffff)}.wi-td-chart-tab:hover:not([data-active]){color:var(--wi-texticon-primary, #ffffff)}.wi-td-balance-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px;border-radius:16px;background:var(--wi-surface-default, rgba(255, 255, 255, .05))}.wi-td-balance-left{display:flex;flex-direction:column;gap:4px;flex:1 1 0;min-width:0}.wi-td-balance-label{font-size:15px;font-weight:600;color:var(--wi-texticon-primary, #ffffff)}.wi-td-balance-amount{font-size:30px;font-weight:700;line-height:1.15;color:var(--wi-texticon-primary, #ffffff);white-space:nowrap;max-width:100%}.wi-td-balance-fiat{font-size:14px;color:var(--wi-texticon-tertiary, rgba(255, 255, 255, .5))}.wi-td-send-btn{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:12px 22px;border:none;border-radius:999px;cursor:pointer;font-family:inherit;font-size:15px;font-weight:600;color:var(--wi-on-primary, #ffffff);background:var(--wi-primary, #019d92);transition:filter .15s ease}.wi-td-send-btn:hover{filter:brightness(1.06)}.wi-td-send-btn:active{filter:brightness(.94)}.wi-td-section{display:flex;flex-direction:column;gap:14px}.wi-td-section-title{margin:0;font-size:18px;font-weight:700;letter-spacing:-.01em;color:var(--wi-texticon-primary, #ffffff)}.wi-td-rows{display:flex;flex-direction:column;gap:12px}.wi-td-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.wi-td-row-label{font-size:15px;color:var(--wi-texticon-tertiary, rgba(255, 255, 255, .5))}.wi-td-row-value{font-size:15px;font-weight:500;color:var(--wi-texticon-primary, #ffffff);text-align:right;word-break:break-all}.wi-td-row-link,.wi-td-row-copy{display:inline-flex;align-items:center;gap:6px;border:none;background:transparent;padding:0;cursor:pointer;font-family:inherit;text-decoration:none}.wi-td-row-link:hover,.wi-td-row-copy:hover{opacity:.8}.wi-td-external-icon{color:var(--wi-texticon-tertiary, rgba(255, 255, 255, .5));flex-shrink:0}.wi-td-row-copy svg{color:var(--wi-texticon-tertiary, rgba(255, 255, 255, .5));flex-shrink:0}.wi-td-social-row{display:flex;flex-wrap:wrap;gap:10px}.wi-td-social-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;color:var(--wi-texticon-primary, #ffffff);background:var(--wi-surface-default, rgba(255, 255, 255, .05));text-decoration:none;transition:background .15s ease}.wi-td-social-btn:hover{background:var(--wi-surface-subtle, rgba(255, 255, 255, .1))}.wi-td-history-list{display:flex;flex-direction:column;gap:10px}.wi-td-history-item{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:12px;background:var(--wi-surface-default, rgba(255, 255, 255, .05));text-decoration:none}.wi-td-history-item--link{cursor:pointer;transition:background .15s ease}.wi-td-history-item--link:hover{background:var(--wi-surface-subtle, rgba(255, 255, 255, .1))}.wi-td-history-top,.wi-td-history-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.wi-td-history-type{font-size:15px;font-weight:600;color:var(--wi-texticon-primary, #ffffff)}.wi-td-history-type[data-direction=receive],.wi-td-history-type[data-direction=bridge-in]{color:var(--ds-system-green-high, #00a869)}.wi-td-history-counter{font-size:14px;color:var(--wi-primary, #f0640d);font-variant-numeric:tabular-nums}.wi-td-history-meta{display:inline-flex;align-items:center;gap:8px;min-width:0}.wi-td-history-status{font-size:14px;font-weight:500}.wi-td-history-status[data-status=success]{color:var(--ds-system-green-high, #00a869)}.wi-td-history-status[data-status=fail]{color:var(--wi-error, #e70077)}.wi-td-history-time{font-size:14px;color:var(--wi-texticon-tertiary, rgba(255, 255, 255, .5))}.wi-td-history-amount{font-size:15px;font-weight:600;color:var(--wi-texticon-primary, #ffffff);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.wi-td-history-amount[data-size=sm]{font-size:13px}.wi-td-history-amount[data-size=xs]{font-size:11px;white-space:normal;word-break:break-all}.wi-td-history-skeleton{display:flex;align-items:center;justify-content:space-between;padding:16px;border-radius:12px;background:var(--wi-surface-default, rgba(255, 255, 255, .05))}.wi-td-history-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 16px;border-radius:12px;background:var(--wi-surface-default, rgba(255, 255, 255, .05));color:var(--wi-texticon-tertiary, rgba(255, 255, 255, .5));font-size:14px;text-align:center}.wi-td-retry-btn{padding:8px 18px;border:1px solid var(--wi-border-subtle, rgba(255, 255, 255, .1));border-radius:999px;background:transparent;color:var(--wi-texticon-primary, #ffffff);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer}.wi-td-retry-btn:hover{background:var(--wi-surface-subtle, rgba(255, 255, 255, .1))}.wi-td-history-sentinel{display:flex;align-items:center;justify-content:center;min-height:32px}.wi-td-history-loading{font-size:13px;color:var(--wi-texticon-tertiary, rgba(255, 255, 255, .5))}.wi-td-loadmore-btn{align-self:center;margin-top:2px;padding:10px 24px;border:1px solid var(--wi-border-subtle, rgba(255, 255, 255, .1));border-radius:999px;background:transparent;color:var(--wi-texticon-primary, #ffffff);font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s ease}.wi-td-loadmore-btn:hover:not(:disabled){background:var(--wi-surface-subtle, rgba(255, 255, 255, .1))}.wi-td-loadmore-btn:disabled{cursor:default;color:var(--wi-texticon-tertiary, rgba(255, 255, 255, .5))}
|
|
16
16
|
`);de(`.wi-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}
|
|
17
|
-
`);import{jsx as fl}from"react/jsx-runtime";function Ww({env:e,theme:t="dark",mobileBreakpoint:r=768,drawerDirection:n,modal:o,showBalance:i=!1,showForgeToken:a=!1,showGameToken:s=!0,showQR:l=!0,showBridge:d=!0,qrLogoSrc:p,walletAddress:h,accountName:b,sendAccounts:m,profileImageUrl:w,connectorId:f,connectorName:u,connectorIconUrl:c,preferredTokens:y=[],onSelectWallet:g,onCopyAddress:v,onBuy:k,onBuyDisabledMessage:R,onBridgeDisabledMessage:I,onSendDisabledMessage:C,onDisconnect:S,disconnectLabel:A="Disconnect",termsUrl:D=ko,termsLabel:U="Terms of Service",privacyUrl:M=_i,privacyLabel:G="Privacy Policy",open:E,onOpenChange:O,showPortfolio:ie=!1,portfolioTitle:Y="My Portfolio",portfolioSections:P,showTotalAssets:pe=!0,totalAssetsLabel:$="Total Assets USD",sendTransaction:Q,getTransactionReceipt:B,estimateGas:J,onOutlink:V,lpBalanceReader:le,stakingRewardsReader:he,bridgeTokens:ee,bridgeHistory:ce,getBridgeQuote:We,getBridgeToTokens:we,getBridgeApproval:Je,approveBridge:oe,submitBridge:Me,onReceive:$e,onBridge:Te,onSend:Ae,style:be,children:ht}){let Et=nt(e),vt=f?ji[f]:void 0,Le=u??vt?.name,it=c??vt?.iconUrl,Mt=bo(`(max-width: ${r}px)`),Qe=n??(i?"right":"bottom"),et=Qe==="left"||Qe==="right",De=o??!1,bt=E!==void 0,[qt,kt]=Qt.useState(!1),Ve=bt?E:qt,tt=Qt.useCallback(tr=>{bt||kt(tr),O?.(tr)},[bt,O]),ct=Qt.useCallback(()=>tt(!1),[tt]),[Pe,at]=Qt.useState(null),[qe,rt]=Qt.useState("top"),[st,z]=Qt.useState(null),[Ie,Ze]=Qt.useState("wallet"),[F,ne]=Qt.useState(null),[ue,Ce]=Qt.useState(null);Qt.useEffect(()=>{Ve||(Ze("wallet"),ne(null),Ce(null))},[Ve]),Qt.useEffect(()=>{ho(h)},[h]);let wt=Qt.useCallback(()=>{Ms(h),S?.()},[S,h]),Yt=Qt.useMemo(()=>({env:Et,theme:t,isMobile:Mt,open:Ve,drawerDirection:Qe,modal:De,showBalance:i,showForgeToken:a,showGameToken:s,showQR:l,showBridge:d,qrLogoSrc:p,walletAddress:h,accountName:b,sendAccounts:m,profileImageUrl:w,connectorName:Le,connectorIconUrl:it,preferredTokens:y,close:ct,onSelectWallet:g,onCopyAddress:v,onBuy:k,onBuyDisabledMessage:R,onBridgeDisabledMessage:I,onSendDisabledMessage:C,onDisconnect:S?wt:void 0,disconnectLabel:A,termsUrl:D,termsLabel:U,privacyUrl:M,privacyLabel:G,portalStyle:be,navContent:Pe,navPosition:qe,setNavContent:at,setNavPosition:rt,footerContent:st,setFooterContent:z,view:Ie,setView:Ze,selectedSendToken:F,setSelectedSendToken:ne,selectedDetailToken:ue,setSelectedDetailToken:Ce,showPortfolio:ie,portfolioTitle:Y,portfolioSections:P,showTotalAssets:pe,totalAssetsLabel:$,sendTransaction:Q,getTransactionReceipt:B,estimateGas:J,onOutlink:V,lpBalanceReader:le,stakingRewardsReader:he,bridgeTokens:ee,bridgeHistory:ce,getBridgeQuote:We,getBridgeToTokens:we,getBridgeApproval:Je,approveBridge:oe,submitBridge:Me,onReceive:$e,onBridge:Te,onSend:Ae}),[Et,t,Mt,Ve,Qe,De,i,a,s,l,d,p,h,b,m,w,Le,it,y,ct,g,v,k,R,I,C,S,wt,A,D,U,M,G,be,Pe,qe,st,Ie,F,ue,ie,Y,P,pe,$,Q,B,J,V,le,he,ee,ce,We,we,Je,oe,Me,$e,Te,Ae]);return fl(Cs.Provider,{value:Yt,children:Mt?fl(jw.Root,{direction:Qe,open:Ve,onOpenChange:tt,handleOnly:et,noBodyStyles:!0,repositionInputs:!1,children:ht},"drawer"):fl(Uu.Root,{open:Ve,onOpenChange:tt,children:ht},"popover")})}var Po=Object.assign(Ww,{Trigger:kc,Content:Pu,Nav:Bu,Footer:Fu});import*as ze from"react";import*as Va from"react";import{createContext as Gw,useContext as _w}from"react";var ml=Gw(null);function ci(){let e=_w(ml);if(!e)throw new Error("RelayDeposit compound components must be used within <RelayDeposit>");return e}import*as vf from"react";import{createContext as Hw,useContext as Qw}from"react";var Ea=Hw(null);function Jr(){let e=Qw(Ea);if(!e)throw new Error("ResponsiveShell compound components must be used within <ResponsiveShell>");return e}import{createContext as Vw,useContext as qw,useLayoutEffect as Yw,useState as Kw}from"react";function ju(){let e=null,t=new Set;return{getSnapshot:()=>e,publish(r){if(r!==e){e=r;for(let n of[...t])n()}},subscribe(r){return t.add(r),()=>{t.delete(r)}}}}var gl=Vw(null);function Zw(){let e=qw(gl);if(!e)throw new Error("RelayDeposit compound components must be used within <RelayDeposit>");return e}function Wu(){let e=Zw(),[t,r]=Kw(e.getSnapshot);return Yw(()=>(r(e.getSnapshot()),e.subscribe(()=>r(e.getSnapshot()))),[e]),t}de(`.rd-root{--rd-bg: var(--ds-bg-dim, #f7f8fb);--rd-surface: var(--ds-surface-default, #ffffff);--rd-surface-alt: var(--ds-surface-medium, #f0f1f6);--rd-border: var(--ds-border-default, #e2e4ec);--rd-text: var(--ds-content-highest, #14161f);--rd-text-muted: var(--ds-content-medium, #676b7a);--rd-accent: var(--ds-system-orange-default, #5b5bf6);--rd-accent-contrast: var(--ds-system-orange-on, #ffffff);--rd-success: var(--ds-system-green-default, #1e9e6a);--rd-success-bg: var(--ds-system-green-low, #e6f7f0);--rd-warning: #b8860b;--rd-warning-bg: #fdf3d9;--rd-danger: var(--ds-system-red-default, #d1394a);--rd-danger-bg: var(--ds-system-red-low, #fbe8ea);--rd-radius: 14px;--rd-shadow: var(--ds-shadow-modal, 0 1px 2px rgba(20, 22, 31, .04), 0 8px 24px rgba(20, 22, 31, .06));--rd-on-accent: #ffffff;width:100%;max-width:640px;box-sizing:border-box;margin:0 auto;display:flex;flex-direction:column;gap:1.25rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--rd-bg);color:var(--rd-text);-webkit-font-smoothing:antialiased;color-scheme:light dark}.rd-root[data-theme=dark]{color-scheme:dark;--rd-bg: var(--ds-bg-default, #0f1117);--rd-surface: var(--ds-surface-default, #171923);--rd-surface-alt: var(--ds-surface-medium, #1e212c);--rd-border: var(--ds-border-default, #2a2d3a);--rd-text: var(--ds-content-highest, #eef0f6);--rd-text-muted: var(--ds-content-medium, #9498a8);--rd-accent: var(--ds-system-orange-default, #8181ff);--rd-accent-contrast: var(--ds-system-orange-on, #0f1117);--rd-success: var(--ds-system-green-default, #3fd68f);--rd-success-bg: var(--ds-system-green-low, #123626);--rd-warning: #e0b23c;--rd-warning-bg: #3a2f10;--rd-danger: var(--ds-system-red-default, #ff6b7a);--rd-danger-bg: var(--ds-system-red-low, #3a1418);--rd-shadow: var(--ds-shadow-modal, 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35))}.rd-root[data-theme=light]{color-scheme:light;--rd-bg: var(--ds-bg-dim, #f7f8fb);--rd-surface: var(--ds-surface-default, #ffffff);--rd-surface-alt: var(--ds-surface-medium, #f0f1f6);--rd-border: var(--ds-border-default, #e2e4ec);--rd-text: var(--ds-content-highest, #14161f);--rd-text-muted: var(--ds-content-medium, #676b7a);--rd-accent: var(--ds-system-orange-default, #5b5bf6);--rd-accent-contrast: var(--ds-system-orange-on, #ffffff);--rd-success: var(--ds-system-green-default, #1e9e6a);--rd-success-bg: var(--ds-system-green-low, #e6f7f0);--rd-warning: #b8860b;--rd-warning-bg: #fdf3d9;--rd-danger: var(--ds-system-red-default, #d1394a);--rd-danger-bg: var(--ds-system-red-low, #fbe8ea);--rd-radius: 14px;--rd-shadow: var(--ds-shadow-modal, 0 1px 2px rgba(20, 22, 31, .04), 0 8px 24px rgba(20, 22, 31, .06))}.rd-root *{box-sizing:border-box}.rd-card{background:var(--rd-surface);border:1px solid var(--rd-border);border-radius:var(--rd-radius);box-shadow:var(--rd-shadow);padding:1.25rem;display:flex;flex-direction:column;gap:.9rem}.rd-card-header{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}.rd-card-title{font-size:1rem;font-weight:650;margin:0}.rd-card-hint{font-size:.8rem;color:var(--rd-text-muted)}.rd-token-address{display:flex;flex-direction:column;gap:.1rem}.rd-token-address-addr{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.78rem;color:var(--rd-text);overflow-wrap:anywhere;user-select:all}.rd-token-address-meta{font-size:.72rem;color:var(--rd-text-muted)}.rd-field{display:flex;flex-direction:column;gap:.35rem}.rd-field-label{font-size:.69rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--rd-text-muted)}.rd-root .rd-field-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}.rd-root .rd-token-explorer-link{font-size:.75rem;font-weight:500;color:var(--rd-accent);text-decoration:none;white-space:nowrap}.rd-root .rd-token-explorer-link:hover{text-decoration:underline}.rd-field-row{display:grid;grid-template-columns:1fr 1fr;gap:.625rem}.rd-root select,.rd-root input[type=text],.rd-root input[type=number]{width:100%;padding:.6rem .7rem;border-radius:12px;border:1px solid var(--rd-border);background:var(--rd-surface-alt);color:var(--rd-text);font-size:16px;font-family:inherit}.rd-root select:focus,.rd-root input:focus{outline:2px solid var(--rd-accent);outline-offset:1px}.rd-dropdown{position:relative;min-width:0}.rd-root .rd-dropdown-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.55rem .7rem;border-radius:12px;border:1px solid var(--rd-border);background:var(--rd-surface-alt);color:var(--rd-text);font-size:.9rem;font-family:inherit;font-weight:600;text-align:left;cursor:pointer}.rd-root .rd-static-target{display:flex;align-items:center;gap:.55rem;padding:.55rem .7rem;border-radius:12px;border:1px solid var(--rd-border);background:var(--rd-surface-alt);color:var(--rd-text);font-size:.9rem;font-weight:600;min-width:0;overflow-wrap:anywhere}.rd-root .rd-dropdown-trigger:disabled{cursor:not-allowed}.rd-dropdown-trigger:focus,.rd-dropdown-trigger:focus-visible{outline:2px solid var(--rd-accent);outline-offset:1px}.rd-dropdown-trigger-content{display:flex;align-items:center;gap:.55rem;min-width:0}.rd-dropdown-trigger-label{display:flex;flex-direction:column;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}.rd-dropdown-trigger-sub{font-size:.66rem;font-weight:500;line-height:1.3;color:var(--rd-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rd-dropdown-chevron{display:inline-flex;flex:none;color:var(--rd-text-muted);line-height:1}.rd-dropdown-listbox{position:absolute;z-index:20;top:calc(100% + .3rem);left:0;right:0;margin:0;padding:.3rem;list-style:none;max-height:15rem;overflow-y:auto;background:var(--rd-surface);border:1px solid var(--rd-border);border-radius:10px;box-shadow:var(--rd-shadow)}.rd-dropdown-option{display:flex;align-items:center;gap:.55rem;padding:.5rem .6rem;border-radius:8px;font-size:.9rem;color:var(--rd-text);cursor:pointer}.rd-dropdown-option-active{background:var(--rd-surface-alt)}.rd-dropdown-option-selected{font-weight:650}.rd-dropdown-option-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rd-dropdown-option-check{flex:none;color:var(--rd-accent);font-size:.8rem}.rd-amount-input{display:flex;align-items:baseline;gap:.5rem;padding:.6rem .75rem;border-radius:12px;border:1px solid var(--rd-border);background:var(--rd-surface-alt)}.rd-amount-input:focus-within{outline:2px solid var(--rd-accent);outline-offset:1px}.rd-amount-input[data-rd-invalid]{border-color:var(--rd-danger)}.rd-root .rd-amount-input input[type=text]{flex:1 1 auto;width:auto;min-width:0;padding:0;border:0;border-radius:0;background:none;font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.2}.rd-root .rd-amount-input input[type=text]:focus{outline:none}.rd-amount-input-suffix{flex:none;font-size:.8rem;font-weight:700;color:var(--rd-text-muted);pointer-events:none}.rd-root .rd-amount-input-max{flex:none;padding:0;font-size:.69rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--rd-accent);background:transparent;border:0;border-radius:0;cursor:pointer;line-height:1}.rd-amount-input-max:hover:not(:disabled){text-decoration:underline}.rd-amount-input-max:disabled{opacity:.5;cursor:not-allowed}.rd-amount-meta{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;font-size:.75rem;color:var(--rd-text-muted);padding:0 .15rem;font-variant-numeric:tabular-nums}.rd-root button{font-family:inherit;font-size:.95rem;font-weight:650;border-radius:10px;border:1px solid transparent;padding:.7rem 1.1rem;cursor:pointer;transition:opacity .12s ease,transform .12s ease}.rd-root button:active:not(:disabled){transform:translateY(1px)}.rd-root button:disabled{cursor:not-allowed;opacity:.55}.rd-button-primary{background:var(--rd-accent);color:var(--rd-accent-contrast)}.rd-button-secondary{background:var(--rd-surface-alt);color:var(--rd-text);border-color:var(--rd-border)}.rd-button-block{width:100%}.rd-callout{border-radius:10px;padding:.65rem .85rem;font-size:.85rem;line-height:1.4}.rd-callout-warning{background:var(--rd-warning-bg);color:var(--rd-warning)}.rd-callout-danger{background:var(--rd-danger-bg);color:var(--rd-danger)}.rd-callout-success{background:var(--rd-success-bg);color:var(--rd-success)}.rd-callout-muted{background:var(--rd-surface-alt);color:var(--rd-text-muted)}.rd-quote-strip{display:flex;align-items:center;justify-content:space-between;gap:.625rem;padding:.7rem .85rem;border-radius:14px;background:color-mix(in srgb,var(--rd-accent) 10%,var(--rd-surface));border:1px solid color-mix(in srgb,var(--rd-accent) 35%,transparent)}.rd-quote-strip-side{display:flex;flex-direction:column;min-width:0;gap:.1rem;font-size:.9rem;font-weight:700;color:var(--rd-text);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.rd-quote-strip-end{text-align:right;align-items:flex-end}.rd-quote-strip-side small{font-size:.69rem;font-weight:600;color:var(--rd-text-muted);letter-spacing:.02em}.rd-quote-strip-arrow{flex:none;color:var(--rd-accent);font-weight:800}.rd-quote-strip-hint{font-size:.72rem;line-height:1.45;color:var(--rd-text-muted);padding:0 .15rem}.rd-deposit-address{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr auto;align-items:start;gap:.7rem;min-height:172px;background:var(--rd-surface);border:1px solid var(--rd-border);border-radius:16px;box-shadow:var(--rd-shadow);padding:.85rem;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;color:var(--rd-text-muted)}.rd-deposit-address-label{grid-column:1;grid-row:1;position:relative;display:inline-flex;align-items:center;gap:.35rem;width:fit-content;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.rd-root button.rd-address-term{position:static;width:auto;height:auto;display:inline;padding:0 0 2px;border:0;border-bottom:1px dotted currentColor;border-radius:0;background:transparent;color:var(--rd-text-muted);font:700 .69rem/1 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase}.rd-root button.rd-address-term:hover,.rd-root button.rd-address-term:focus-visible{color:var(--rd-accent);outline:none}.rd-address-tooltip{position:absolute;z-index:20;top:calc(100% + 8px);left:0;width:min(250px,calc(100vw - 48px));padding:9px 11px;border:1px solid var(--rd-border);border-radius:10px;background:var(--rd-surface);box-shadow:var(--rd-shadow);color:var(--rd-text);font-size:11.5px;font-weight:500;line-height:1.45;letter-spacing:normal;text-align:left;text-transform:none;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-3px);transition:opacity .12s ease,transform .12s ease,visibility .12s ease}.rd-address-term:hover .rd-address-tooltip,.rd-address-term:focus .rd-address-tooltip,.rd-address-term:focus-visible .rd-address-tooltip{opacity:1;visibility:visible;transform:translateY(0)}.rd-address-full{grid-column:1 / -1;grid-row:2;align-self:center;min-width:0;color:var(--rd-text);font-weight:600;line-height:1.55;overflow-wrap:anywhere;word-break:break-all}.rd-root .rd-address-copy{grid-column:1 / -1;grid-row:3;width:100%;min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;margin:0;padding:.5rem .7rem;border-radius:10px;border:0;background:var(--rd-accent);color:var(--rd-accent-contrast);font-family:inherit;font-size:.75rem;font-weight:800;letter-spacing:.03em;line-height:1}.rd-root .rd-address-copy svg{flex:none}.rd-root .rd-address-copy:hover:not(:disabled){opacity:.92}.rd-root button.rd-mobile-qr-toggle,.rd-root button.rd-mobile-address-toggle{display:none;place-items:center;width:34px;height:34px;padding:0;border:1px solid color-mix(in srgb,var(--rd-accent) 24%,var(--rd-border));border-radius:11px;background:color-mix(in srgb,var(--rd-accent) 10%,var(--rd-surface));color:var(--rd-accent);box-shadow:0 1px 2px color-mix(in srgb,var(--rd-text) 8%,transparent);transition:transform .15s ease,background-color .15s ease,border-color .15s ease,box-shadow .15s ease}.rd-root button.rd-mobile-qr-toggle{grid-column:2;grid-row:1;justify-self:end;align-self:start}.rd-root button.rd-mobile-address-toggle{position:absolute;z-index:2;top:.85rem;right:.85rem;background:var(--rd-surface);color:var(--rd-text-muted);box-shadow:0 4px 14px color-mix(in srgb,var(--rd-text) 16%,transparent)}.rd-root button.rd-mobile-qr-toggle:hover:not(:disabled),.rd-root button.rd-mobile-address-toggle:hover:not(:disabled){border-color:color-mix(in srgb,var(--rd-accent) 45%,var(--rd-border));color:var(--rd-accent);background:color-mix(in srgb,var(--rd-accent) 15%,var(--rd-surface));box-shadow:0 5px 16px color-mix(in srgb,var(--rd-accent) 18%,transparent);transform:translateY(-1px)}.rd-root button.rd-mobile-qr-toggle:active:not(:disabled),.rd-root button.rd-mobile-address-toggle:active:not(:disabled){transform:scale(.96)}.rd-deposit-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.9rem;container:rd-deposit-head / inline-size}.rd-deposit-head>.rd-deposit-qr-pane{flex:none}.rd-deposit-head>.rd-deposit-address{flex:1 1 12rem;min-width:0}@container rd-deposit-head (max-width: 23.75rem){.rd-deposit-head>.rd-deposit-address{flex-basis:100%;width:100%}.rd-deposit-head>.rd-skeleton-qr{display:none}.rd-deposit-head>.rd-skeleton-address{flex-basis:100%;width:100%}.rd-root button.rd-mobile-qr-toggle,.rd-root button.rd-mobile-address-toggle{display:grid}.rd-deposit-head[data-compact-view=address]>.rd-deposit-qr-pane,.rd-deposit-head[data-compact-view=qr]>.rd-deposit-address{display:none}.rd-deposit-head[data-compact-view=address]>.rd-deposit-address,.rd-deposit-head[data-compact-view=qr]>.rd-deposit-qr-pane{animation:rd-compact-pane-in .26s cubic-bezier(.22,1,.36,1)}.rd-deposit-head[data-compact-view=qr]>.rd-deposit-qr-pane{width:100%}}@keyframes rd-compact-pane-in{0%{opacity:0;transform:translateY(6px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}.rd-deposit-qr{position:relative;display:grid;place-items:center;width:172px;height:172px;background:#fff;border-radius:16px;border:1px solid var(--rd-border);box-shadow:var(--rd-shadow);margin:0 auto}.rd-deposit-qr-pane{position:relative;display:grid;place-items:center;min-height:172px}.rd-deposit-qr-badge{position:absolute;inset:0;margin:auto;width:36px;height:36px;display:grid;place-items:center;background:#fff;border-radius:50%;pointer-events:none}.rd-stepper{display:flex;flex-direction:column;gap:0}.rd-stepper-item{display:flex;gap:.75rem;position:relative;padding-bottom:1.25rem}.rd-stepper-item:last-child{padding-bottom:0}.rd-stepper-rail{display:flex;flex-direction:column;align-items:center}.rd-stepper-dot{width:22px;height:22px;border-radius:50%;border:2px solid var(--rd-border);background:var(--rd-surface);display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:700;flex:none;color:var(--rd-text-muted)}.rd-stepper-item-done .rd-stepper-dot{background:var(--rd-success);border-color:var(--rd-success);color:var(--rd-on-accent)}.rd-stepper-item-active .rd-stepper-dot{border-color:var(--rd-accent);color:var(--rd-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--rd-accent) 20%,transparent)}.rd-stepper-line{flex:1;width:2px;background:var(--rd-border);margin:2px 0}.rd-stepper-item-done .rd-stepper-line{background:var(--rd-success)}.rd-stepper-body{padding-top:1px}.rd-stepper-label{font-weight:600;font-size:.9rem}.rd-stepper-item-pending .rd-stepper-label{color:var(--rd-text-muted)}.rd-stepper-meta{margin-top:.25rem;font-size:.78rem;color:var(--rd-text-muted);display:flex;flex-direction:column;gap:.15rem}.rd-stepper-meta a{color:var(--rd-accent);text-decoration:none}.rd-stepper-meta a:hover{text-decoration:underline}.rd-status-pill{display:inline-flex;align-items:center;gap:.35rem;font-size:.75rem;font-weight:650;padding:.2rem .55rem;border-radius:999px;background:var(--rd-surface-alt);color:var(--rd-text-muted);width:fit-content}.rd-status-pill-success{background:var(--rd-success-bg);color:var(--rd-success)}.rd-status-pill-failure{background:var(--rd-danger-bg);color:var(--rd-danger)}.rd-spinner{display:inline-block;width:1em;height:1em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:rd-spin .7s linear infinite;vertical-align:-.15em}@keyframes rd-spin{to{transform:rotate(360deg)}}.rd-muted{color:var(--rd-text-muted)}.rd-settings-row{display:flex;justify-content:flex-end}.rd-root .rd-icon-button{position:relative;display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border-radius:50%;border:1px solid var(--rd-border);background:var(--rd-surface);color:var(--rd-text-muted)}.rd-root .rd-icon-button:hover:not(:disabled){color:var(--rd-text);background:var(--rd-surface-alt)}.rd-recovery-badge{position:absolute;top:-.3rem;right:-.3rem;display:flex;align-items:center;justify-content:center;min-width:1.05rem;height:1.05rem;padding:0 .25rem;border-radius:999px;background:var(--rd-danger, #d1394a);color:#fff;font-size:.65rem;font-weight:700;line-height:1;border:2px solid var(--rd-surface, #ffffff)}.rd-recover-group{display:flex;flex-direction:column;gap:.75rem}.rd-recover-group+.rd-recover-group{border-top:1px solid var(--rd-border);padding-top:1rem;margin-top:.5rem}.rd-recover-group-label{margin:0;font-size:.8rem;color:var(--rd-text-muted)}.rd-recover-made-of{display:block;padding:.65rem .8rem;background:var(--rd-surface-alt);border:1px solid var(--rd-border);border-radius:10px}.rd-recover-made-of-label{cursor:pointer;font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--rd-text-muted)}.rd-recover-made-of-body{display:flex;flex-direction:column;gap:.4rem;margin-top:.6rem}.rd-error-details{margin-top:-.4rem;padding:0 .15rem;color:var(--rd-text-muted);font-size:.72rem}.rd-error-details summary{width:max-content;cursor:pointer;list-style:none;font-weight:600}.rd-error-details summary::-webkit-details-marker{display:none}.rd-error-details summary:before{display:inline-block;margin-right:.35rem;content:"\\203a";transition:transform .12s ease}.rd-error-details[open] summary:before{transform:rotate(90deg)}.rd-error-log{position:relative;margin-top:.5rem}.rd-root button.rd-error-copy{position:absolute;z-index:1;top:.45rem;right:.45rem;display:inline-flex;align-items:center;justify-content:center;width:1.65rem;height:1.65rem;padding:0;border:1px solid var(--rd-border);border-radius:6px;background:var(--rd-surface);color:var(--rd-text-muted)}.rd-root button.rd-error-copy:hover:not(:disabled){background:var(--rd-surface-alt);color:var(--rd-text)}.rd-error-details code{display:block;max-height:6rem;overflow:auto;padding:.6rem 2.7rem .6rem .7rem;border:1px solid var(--rd-border);border-radius:8px;background:var(--rd-surface-alt);color:var(--rd-text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.68rem;line-height:1.45;overflow-wrap:anywhere;scrollbar-color:var(--rd-border) transparent;scrollbar-width:thin;white-space:pre-wrap}.rd-error-details code::-webkit-scrollbar{width:4px;height:4px}.rd-error-details code::-webkit-scrollbar-thumb{border-radius:999px;background:var(--rd-border)}.rd-token-list{display:flex;flex-direction:column;gap:.5rem}.rd-token-row{display:flex;align-items:center;gap:10px;background:var(--rd-surface-alt);border:1px solid var(--rd-border);border-radius:12px;padding:12px 14px}.rd-token-row-info{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;overflow-wrap:anywhere}.rd-token-row-symbol{font-weight:700}.rd-token-row-amount{font-variant-numeric:tabular-nums;font-size:14px;font-weight:700;color:var(--rd-text);white-space:nowrap}.rd-token-row-status{font-size:11.5px;line-height:1.45;color:var(--rd-text-muted)}.rd-token-row-warn{font-size:11.5px;line-height:1.45;color:var(--rd-warning)}.rd-token-row-warn b{font-weight:750;font-variant-numeric:tabular-nums}.rd-token-row-step{font-size:11.5px;line-height:1.45;font-weight:650;color:var(--rd-accent)}.rd-root .rd-token-row-action{flex:none;width:auto;padding:9px 16px;font-size:13px;font-weight:700}.rd-token-row-spinner{flex:none;font-size:18px;color:var(--rd-accent)}.rd-recover-sum{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;background:var(--rd-surface-alt);border:1px solid var(--rd-border);border-radius:12px;padding:16px 14px;container:rd-recover-sum / inline-size}.rd-recover-sum-label{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rd-text-muted)}.rd-recover-sum-value{max-width:100%;overflow:hidden;font-size:22px;font-size:clamp(18px,7cqi,28px);font-weight:800;line-height:1.15;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;color:var(--rd-text)}.rd-recover-sum-unit{display:block;margin:.35rem 0 0;font-size:15px;font-weight:700;color:var(--rd-text-muted)}.rd-recover-sum-empty{font-size:17px;font-weight:700;color:var(--rd-text-muted)}.rd-recover-foot{text-align:center;font-size:11.5px;line-height:1.45;color:var(--rd-text-muted)}.rd-history-table{display:flex;min-width:0;flex-direction:column;gap:.6rem;font-size:.875rem}.rd-history-group{min-width:0;max-width:100%;background:var(--rd-surface-alt);border:1px solid var(--rd-border);border-radius:12px;overflow:hidden}.rd-history-row-button{width:100%;min-width:0;display:flex;flex-direction:column;gap:.75rem;padding:1rem;background:none;border:none;border-radius:inherit;color:inherit;font:inherit;text-align:left;cursor:pointer}.rd-history-row-button[aria-expanded=true]{border-radius:12px 12px 0 0}.rd-history-row-button:hover{background:color-mix(in srgb,var(--rd-border) 30%,transparent)}.rd-history-row-button:focus-visible{outline:2px solid var(--rd-accent);outline-offset:-2px}.rd-history-card-top{display:flex;align-items:center;gap:.5rem;min-width:0}.rd-history-card-top>.rd-status-pill{margin-left:auto;flex:none}.rd-history-card-top>.rd-status-pill:not(.rd-status-pill-success):not(.rd-status-pill-failure){background:color-mix(in srgb,var(--rd-accent) 12%,transparent);color:var(--rd-accent)}.rd-history-asset{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rd-history-card-amounts{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.75rem;padding:.75rem;border-radius:10px;background:var(--rd-surface)}.rd-history-amount-block{display:flex;max-width:100%;flex-direction:column;gap:.15rem;min-width:0}.rd-history-amount-block:last-child{align-items:flex-end;text-align:right}.rd-history-amount-label{color:var(--rd-text-muted);font-size:.68rem;font-weight:650;line-height:1.2}.rd-history-num{max-width:100%;overflow:hidden;font-variant-numeric:tabular-nums;font-size:.875rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.rd-history-num[data-full-value],.rd-history-step-amount[data-full-value]{cursor:help}[data-rd-history-floating-tooltip]{position:fixed;z-index:100100;width:max-content;max-width:calc(100vw - 1.5rem);padding:.45rem .65rem;border:1px solid;border-radius:8px;font-size:.72rem;font-weight:600;line-height:1.35;text-align:left;white-space:normal;overflow-wrap:anywhere;pointer-events:none}.rd-history-card-arrow{display:inline-flex;align-items:center;justify-content:center;color:var(--rd-text-muted);font-size:.85rem}.rd-history-received{color:var(--rd-success)}.rd-history-received-estimate{color:var(--rd-text-muted);font-weight:600}.rd-history-card-foot{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.rd-history-date{color:var(--rd-text-muted);font-size:.78rem;font-variant-numeric:tabular-nums}.rd-history-chevron{display:inline-flex;flex:none;align-items:center;justify-content:center;color:var(--rd-text-muted);text-align:center;transition:transform .16s ease}.rd-history-row-button[aria-expanded=true] .rd-history-chevron{transform:rotate(180deg)}.rd-history-detail{display:flex;min-width:0;flex-direction:column;gap:.375rem;padding:.65rem .9rem .8rem;border-top:1px solid var(--rd-border)}.rd-history-step{display:grid;min-width:0;grid-template-columns:.5rem auto 1fr auto auto;gap:.5rem;align-items:center}.rd-history-step-dot{width:.5rem;height:.5rem;border-radius:50%;background:var(--rd-border)}.rd-history-step-dot-done{background:var(--rd-success)}.rd-history-step-label{font-weight:600}.rd-history-step-chain{color:var(--rd-text-muted)}.rd-history-step-amount{font-variant-numeric:tabular-nums;color:var(--rd-text-muted)}.rd-history-step-tx{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.rd-history-step-shared{margin-left:.4rem;color:var(--rd-text-muted);font-size:.72rem}.rd-skeleton{border-radius:10px;background:linear-gradient(90deg,var(--rd-surface-alt) 25%,color-mix(in srgb,var(--rd-surface-alt) 55%,var(--rd-surface)) 42%,var(--rd-surface-alt) 60%);background-size:220% 100%;animation:rd-skeleton-wave 1.4s ease-in-out infinite}@keyframes rd-skeleton-wave{0%{background-position:130% 0}to{background-position:-90% 0}}@media(prefers-reduced-motion:reduce){.rd-skeleton,.rd-checklist-status,.rd-deposit-head[data-compact-view=address]>.rd-deposit-address,.rd-deposit-head[data-compact-view=qr]>.rd-deposit-qr-pane,.rd-checklist-status-waiting .rd-checklist-status-dot,.rd-checklist-status-detected .rd-checklist-status-dot{animation:none}}.rd-skeleton-form{display:flex;flex-direction:column;gap:.85rem}.rd-skeleton-qr{flex:none;width:172px;height:172px;border-radius:16px}.rd-skeleton-address{flex:1 1 12rem;min-width:0;height:172px;border-radius:16px}.rd-skeleton-line{height:.9rem;width:40%}.rd-skeleton-field{height:48px}.rd-skeleton-notice{height:96px}.rd-skeleton-cta{height:48px}.rd-wizard{flex:1 1 auto;min-height:0;overflow-y:auto;container:rd-wizard / inline-size;padding:1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom,0px));scroll-padding:1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom,0px));overscroll-behavior:contain;-webkit-overflow-scrolling:touch;max-width:none;gap:.85rem}.rd-deposit-tabs{--rd-tab-count: 2;--rd-active-tab-index: 0;position:sticky;top:-1rem;z-index:2;display:flex;flex:0 0 auto;justify-content:space-around;margin:-1rem -1.25rem 0;padding:1rem 1.25rem 0;border-bottom:1px solid var(--rd-border);background:var(--rd-surface)}.rd-deposit-tabs[data-tab-count="3"]{--rd-tab-count: 3}.rd-deposit-tabs[data-active-index="1"]{--rd-active-tab-index: 1}.rd-deposit-tabs[data-active-index="2"]{--rd-active-tab-index: 2}.rd-deposit-tabs:after{position:absolute;bottom:-1px;left:1.25rem;width:calc((100% - 2.5rem) / var(--rd-tab-count));height:2px;background:var(--rd-accent);content:"";pointer-events:none;transform:translate(calc(var(--rd-active-tab-index) * 100%));transition:transform .22s cubic-bezier(.22,1,.36,1),width .18s ease}.rd-root .rd-deposit-tab{position:relative;display:inline-flex;flex:0 0 auto;min-width:0;align-items:center;justify-content:center;gap:.4rem;padding:.7rem .35rem;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--rd-text-muted);font:inherit;font-size:.875rem;font-weight:650;line-height:1.2;transition:border-color .16s ease,background-color .16s ease,color .16s ease}.rd-root .rd-deposit-tab[data-active=true]{color:var(--rd-text)}.rd-root .rd-deposit-tab:hover:not(:disabled),.rd-root .rd-deposit-tab:focus-visible{outline:none;background:color-mix(in srgb,var(--rd-accent) 7%,transparent);color:var(--rd-text)}.rd-deposit-tab>.rd-recovery-badge{position:static;flex:none;min-width:1rem;height:1rem;padding:0 .2rem;border-width:0}.rd-deposit-tab-panel{display:flex;min-width:0;flex-direction:column;gap:.85rem;transform-origin:top center;animation:rd-deposit-tab-in .18s cubic-bezier(.22,1,.36,1)}@keyframes rd-deposit-tab-in{0%{opacity:0;transform:translateY(.35rem)}to{opacity:1;transform:translateY(0)}}.rd-stack{display:flex;min-width:0;flex-direction:column;gap:.75rem}.rd-wizard-header{display:flex;align-items:center;gap:.5rem;margin-bottom:0}.rd-wizard-heading{font-size:1rem;font-weight:700;color:var(--rd-text);margin:0}.rd-wizard-actions{margin-left:auto;display:flex;align-items:center;gap:.25rem}.rd-min-notice-pending{color:var(--rd-text-muted)}.rd-min-notice-pending b{font-weight:750;color:var(--rd-warning);font-variant-numeric:tabular-nums}.rd-locked-card{width:172px;min-height:172px;margin:0 auto;padding:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;text-align:center;background:var(--rd-surface-alt);border:1px dashed var(--rd-border);border-radius:16px}.rd-locked-glyph{color:var(--rd-text-muted);line-height:0}.rd-locked-text{font-size:12px;line-height:1.5;color:var(--rd-text-muted)}.rd-delivery-recipient{display:flex;flex-direction:column;gap:.3rem;margin-top:.5rem}.rd-checklist-credit{font-size:clamp(10px,2.7vw,11.5px);white-space:nowrap}.rd-checklist{background:var(--rd-surface);border:1px solid var(--rd-border);border-radius:14px;padding:11px 14px;display:flex;flex-direction:column;gap:7px}.rd-checklist-row{display:flex;align-items:flex-start;gap:.5rem;font-size:12.5px;line-height:1.5;color:var(--rd-text)}.rd-checklist-row[data-rd-checklist-only]{align-items:center;white-space:nowrap;font-size:clamp(10.5px,2.8vw,12.5px)}.rd-checklist-mark{flex:none;width:1.05rem;text-align:center;font-weight:800;color:var(--rd-text-muted)}.rd-checklist-mark-warn{color:var(--rd-warning)}.rd-checklist-accent{color:var(--rd-accent);font-weight:750;font-variant-numeric:tabular-nums}.rd-checklist-status{min-height:54px;display:flex;align-items:center;gap:.65rem;padding:10px 12px;border:1px solid color-mix(in srgb,var(--rd-accent) 30%,var(--rd-border));border-radius:12px;background:var(--rd-surface-alt);color:var(--rd-text-muted);font-size:12.5px;line-height:1.45;transform-origin:top center;animation:rd-status-enter .48s cubic-bezier(.22,1,.36,1)}.rd-checklist-status-waiting,.rd-checklist-status-detected{border-color:color-mix(in srgb,var(--rd-warning) 42%,var(--rd-border));box-shadow:0 0 0 1px color-mix(in srgb,var(--rd-warning) 10%,transparent)}@keyframes rd-status-enter{0%{opacity:0;transform:translateY(-10px) scale(.985);box-shadow:0 0 color-mix(in srgb,var(--rd-accent) 28%,transparent)}65%{opacity:1;transform:translateY(1px) scale(1);box-shadow:0 0 0 4px color-mix(in srgb,var(--rd-accent) 16%,transparent)}to{opacity:1;transform:translateY(0);box-shadow:0 0 0 0 transparent}}.rd-checklist-status-dot{flex:none;width:9px;height:9px;border-radius:50%;background:var(--rd-warning);box-shadow:0 0 0 4px color-mix(in srgb,var(--rd-warning) 14%,transparent)}.rd-checklist-status-waiting .rd-checklist-status-dot,.rd-checklist-status-detected .rd-checklist-status-dot{animation:rd-status-breathe 1.8s ease-in-out infinite}@keyframes rd-status-breathe{0%,to{opacity:.82;transform:scale(.96);box-shadow:0 0 0 3px color-mix(in srgb,var(--rd-warning) 10%,transparent)}50%{opacity:1;transform:scale(1);box-shadow:0 0 0 5px color-mix(in srgb,var(--rd-warning) 15%,transparent)}}.rd-checklist-status-funded,.rd-checklist-status-processing{color:var(--rd-text);border-color:color-mix(in srgb,var(--rd-accent) 40%,transparent)}.rd-checklist-status-funded .rd-checklist-status-dot,.rd-checklist-status-processing .rd-checklist-status-dot{background:var(--rd-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--rd-accent) 14%,transparent)}.rd-checklist-status-completed{border-color:color-mix(in srgb,var(--rd-success) 40%,transparent);background:var(--rd-success-bg);color:var(--rd-success)}.rd-checklist-status-completed .rd-checklist-status-dot{background:var(--rd-success);box-shadow:0 0 0 4px color-mix(in srgb,var(--rd-success) 14%,transparent)}.rd-checklist-status-failed{border-color:color-mix(in srgb,var(--rd-danger) 40%,transparent);background:var(--rd-danger-bg);color:var(--rd-danger)}.rd-checklist-status-failed .rd-checklist-status-dot{background:var(--rd-danger);box-shadow:0 0 0 4px color-mix(in srgb,var(--rd-danger) 14%,transparent)}@container rd-wizard (max-width: 30rem){.rd-recover-sum{padding-inline:.75rem}.rd-recover-sum-value{font-size:clamp(1rem,6cqi,1.5rem)}[data-rd-recover-funds] .rd-callout,.rd-token-row-status,.rd-token-row-warn,.rd-token-row-step,.rd-recover-foot{overflow-wrap:anywhere}.rd-token-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;padding:.875rem}.rd-root .rd-token-row-action{width:100%;min-height:2.75rem;grid-column:1 / -1}.rd-token-row-spinner{grid-column:1 / -1;justify-self:center}}@container rd-wizard (max-width: 24rem){.rd-history-card-top{flex-direction:column;align-items:flex-start}.rd-history-card-top>.rd-status-pill{max-width:100%;margin-left:0;white-space:normal}.rd-history-asset{overflow:visible;text-overflow:clip;white-space:normal}.rd-history-card-amounts{grid-template-columns:minmax(0,1fr);gap:.45rem}.rd-history-amount-block{width:100%}.rd-history-amount-block:last-child{align-items:flex-start;text-align:left}.rd-history-card-arrow{display:inline-flex;justify-self:center;margin:0;transform:rotate(90deg);transform-origin:center}.rd-history-card-foot{align-items:flex-start}.rd-history-date{min-width:0;line-height:1.4;overflow-wrap:anywhere}.rd-history-step{grid-template-columns:.5rem minmax(0,1fr);grid-template-areas:"dot label" ". chain" ". amount" ". tx";column-gap:.5rem;row-gap:.25rem;align-items:start;padding-block:.65rem;line-height:1.35}.rd-history-step+.rd-history-step{border-top:1px solid var(--rd-border)}.rd-history-step-dot{grid-area:dot;margin-top:.35rem}.rd-history-step-label{grid-area:label}.rd-history-step-chain{grid-area:chain}.rd-history-step-amount{grid-area:amount}.rd-history-step-tx{grid-area:tx;min-width:0;max-width:100%}.rd-history-step-tx a{overflow-wrap:anywhere}.rd-history-step-shared{display:block;margin:.15rem 0 0}.rd-history-step>.rd-muted{grid-area:tx}}@container rd-wizard (max-width: 22rem){.rd-root .rd-deposit-tab{gap:.2rem;padding-inline:.15rem;font-size:.8rem}.rd-history-row-button,.rd-history-detail{padding-inline:.75rem}}@media(prefers-reduced-motion:reduce){.rd-deposit-tabs:after,.rd-root .rd-deposit-tab{transition:none}.rd-deposit-tab-panel{animation:none}}
|
|
17
|
+
`);import{jsx as fl}from"react/jsx-runtime";function Ww({env:e,theme:t="dark",mobileBreakpoint:r=768,drawerDirection:n,modal:o,showBalance:i=!1,showForgeToken:a=!1,showGameToken:s=!0,showQR:l=!0,showBridge:d=!0,qrLogoSrc:p,walletAddress:h,accountName:b,sendAccounts:m,profileImageUrl:w,connectorId:f,connectorName:u,connectorIconUrl:c,preferredTokens:y=[],onSelectWallet:g,onCopyAddress:v,onBuy:k,onBuyDisabledMessage:R,onBridgeDisabledMessage:I,onSendDisabledMessage:C,onDisconnect:S,disconnectLabel:A="Disconnect",termsUrl:D=ko,termsLabel:U="Terms of Service",privacyUrl:M=_i,privacyLabel:G="Privacy Policy",open:E,onOpenChange:O,showPortfolio:ie=!1,portfolioTitle:Y="My Portfolio",portfolioSections:P,showTotalAssets:pe=!0,totalAssetsLabel:$="Total Assets USD",sendTransaction:Q,getTransactionReceipt:B,estimateGas:J,onOutlink:V,lpBalanceReader:le,stakingRewardsReader:he,bridgeTokens:ee,bridgeHistory:ce,getBridgeQuote:We,getBridgeToTokens:we,getBridgeApproval:Je,approveBridge:oe,submitBridge:Me,onReceive:$e,onBridge:Te,onSend:Ae,style:be,children:ht}){let Et=nt(e),vt=f?ji[f]:void 0,Le=u??vt?.name,it=c??vt?.iconUrl,Mt=bo(`(max-width: ${r}px)`),Qe=n??(i?"right":"bottom"),et=Qe==="left"||Qe==="right",De=o??!1,bt=E!==void 0,[qt,kt]=Qt.useState(!1),Ve=bt?E:qt,tt=Qt.useCallback(tr=>{bt||kt(tr),O?.(tr)},[bt,O]),ct=Qt.useCallback(()=>tt(!1),[tt]),[Pe,at]=Qt.useState(null),[qe,rt]=Qt.useState("top"),[st,z]=Qt.useState(null),[Ie,Ze]=Qt.useState("wallet"),[F,ne]=Qt.useState(null),[ue,Ce]=Qt.useState(null);Qt.useEffect(()=>{Ve||(Ze("wallet"),ne(null),Ce(null))},[Ve]),Qt.useEffect(()=>{ho(h)},[h]);let wt=Qt.useCallback(()=>{Ms(h),S?.()},[S,h]),Yt=Qt.useMemo(()=>({env:Et,theme:t,isMobile:Mt,open:Ve,drawerDirection:Qe,modal:De,showBalance:i,showForgeToken:a,showGameToken:s,showQR:l,showBridge:d,qrLogoSrc:p,walletAddress:h,accountName:b,sendAccounts:m,profileImageUrl:w,connectorName:Le,connectorIconUrl:it,preferredTokens:y,close:ct,onSelectWallet:g,onCopyAddress:v,onBuy:k,onBuyDisabledMessage:R,onBridgeDisabledMessage:I,onSendDisabledMessage:C,onDisconnect:S?wt:void 0,disconnectLabel:A,termsUrl:D,termsLabel:U,privacyUrl:M,privacyLabel:G,portalStyle:be,navContent:Pe,navPosition:qe,setNavContent:at,setNavPosition:rt,footerContent:st,setFooterContent:z,view:Ie,setView:Ze,selectedSendToken:F,setSelectedSendToken:ne,selectedDetailToken:ue,setSelectedDetailToken:Ce,showPortfolio:ie,portfolioTitle:Y,portfolioSections:P,showTotalAssets:pe,totalAssetsLabel:$,sendTransaction:Q,getTransactionReceipt:B,estimateGas:J,onOutlink:V,lpBalanceReader:le,stakingRewardsReader:he,bridgeTokens:ee,bridgeHistory:ce,getBridgeQuote:We,getBridgeToTokens:we,getBridgeApproval:Je,approveBridge:oe,submitBridge:Me,onReceive:$e,onBridge:Te,onSend:Ae}),[Et,t,Mt,Ve,Qe,De,i,a,s,l,d,p,h,b,m,w,Le,it,y,ct,g,v,k,R,I,C,S,wt,A,D,U,M,G,be,Pe,qe,st,Ie,F,ue,ie,Y,P,pe,$,Q,B,J,V,le,he,ee,ce,We,we,Je,oe,Me,$e,Te,Ae]);return fl(Cs.Provider,{value:Yt,children:Mt?fl(jw.Root,{direction:Qe,open:Ve,onOpenChange:tt,handleOnly:et,noBodyStyles:!0,repositionInputs:!1,children:ht},"drawer"):fl(Uu.Root,{open:Ve,onOpenChange:tt,children:ht},"popover")})}var Po=Object.assign(Ww,{Trigger:kc,Content:Pu,Nav:Bu,Footer:Fu});import*as ze from"react";import*as Va from"react";import{createContext as Gw,useContext as _w}from"react";var ml=Gw(null);function ci(){let e=_w(ml);if(!e)throw new Error("RelayDeposit compound components must be used within <RelayDeposit>");return e}import*as vf from"react";import{createContext as Hw,useContext as Qw}from"react";var Ea=Hw(null);function Jr(){let e=Qw(Ea);if(!e)throw new Error("ResponsiveShell compound components must be used within <ResponsiveShell>");return e}import{createContext as Vw,useContext as qw,useLayoutEffect as Yw,useState as Kw}from"react";function ju(){let e=null,t=new Set;return{getSnapshot:()=>e,publish(r){if(r!==e){e=r;for(let n of[...t])n()}},subscribe(r){return t.add(r),()=>{t.delete(r)}}}}var gl=Vw(null);function Zw(){let e=qw(gl);if(!e)throw new Error("RelayDeposit compound components must be used within <RelayDeposit>");return e}function Wu(){let e=Zw(),[t,r]=Kw(e.getSnapshot);return Yw(()=>(r(e.getSnapshot()),e.subscribe(()=>r(e.getSnapshot()))),[e]),t}de(`.rd-root{--rd-bg: var(--ds-bg-dim, #f7f8fb);--rd-surface: var(--ds-surface-default, #ffffff);--rd-surface-alt: var(--ds-surface-medium, #f0f1f6);--rd-border: var(--ds-border-default, #e2e4ec);--rd-text: var(--ds-content-highest, #14161f);--rd-text-muted: var(--ds-content-medium, #676b7a);--rd-accent: var(--ds-system-orange-default, #5b5bf6);--rd-accent-contrast: var(--ds-system-orange-on, #ffffff);--rd-success: var(--ds-system-green-default, #1e9e6a);--rd-success-bg: var(--ds-system-green-low, #e6f7f0);--rd-warning: #b8860b;--rd-warning-bg: #fdf3d9;--rd-danger: var(--ds-system-red-default, #d1394a);--rd-danger-bg: var(--ds-system-red-low, #fbe8ea);--rd-radius: 14px;--rd-shadow: var(--ds-shadow-modal, 0 1px 2px rgba(20, 22, 31, .04), 0 8px 24px rgba(20, 22, 31, .06));--rd-on-accent: #ffffff;width:100%;max-width:640px;box-sizing:border-box;margin:0 auto;display:flex;flex-direction:column;gap:1.25rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--rd-bg);color:var(--rd-text);-webkit-font-smoothing:antialiased;color-scheme:light dark}.rd-root[data-theme=dark]{color-scheme:dark;--rd-bg: var(--ds-bg-default, #0f1117);--rd-surface: var(--ds-surface-default, #171923);--rd-surface-alt: var(--ds-surface-medium, #1e212c);--rd-border: var(--ds-border-default, #2a2d3a);--rd-text: var(--ds-content-highest, #eef0f6);--rd-text-muted: var(--ds-content-medium, #9498a8);--rd-accent: var(--ds-system-orange-default, #8181ff);--rd-accent-contrast: var(--ds-system-orange-on, #0f1117);--rd-success: var(--ds-system-green-default, #3fd68f);--rd-success-bg: var(--ds-system-green-low, #123626);--rd-warning: #e0b23c;--rd-warning-bg: #3a2f10;--rd-danger: var(--ds-system-red-default, #ff6b7a);--rd-danger-bg: var(--ds-system-red-low, #3a1418);--rd-shadow: var(--ds-shadow-modal, 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35))}.rd-root[data-theme=light]{color-scheme:light;--rd-bg: var(--ds-bg-dim, #f7f8fb);--rd-surface: var(--ds-surface-default, #ffffff);--rd-surface-alt: var(--ds-surface-medium, #f0f1f6);--rd-border: var(--ds-border-default, #e2e4ec);--rd-text: var(--ds-content-highest, #14161f);--rd-text-muted: var(--ds-content-medium, #676b7a);--rd-accent: var(--ds-system-orange-default, #5b5bf6);--rd-accent-contrast: var(--ds-system-orange-on, #ffffff);--rd-success: var(--ds-system-green-default, #1e9e6a);--rd-success-bg: var(--ds-system-green-low, #e6f7f0);--rd-warning: #b8860b;--rd-warning-bg: #fdf3d9;--rd-danger: var(--ds-system-red-default, #d1394a);--rd-danger-bg: var(--ds-system-red-low, #fbe8ea);--rd-radius: 14px;--rd-shadow: var(--ds-shadow-modal, 0 1px 2px rgba(20, 22, 31, .04), 0 8px 24px rgba(20, 22, 31, .06))}.rd-root *{box-sizing:border-box}.rd-card{background:var(--rd-surface);border:1px solid var(--rd-border);border-radius:var(--rd-radius);box-shadow:var(--rd-shadow);padding:1.25rem;display:flex;flex-direction:column;gap:.9rem}.rd-card-header{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}.rd-card-title{font-size:1rem;font-weight:650;margin:0}.rd-card-hint{font-size:.8rem;color:var(--rd-text-muted)}.rd-token-address{display:flex;flex-direction:column;gap:.1rem}.rd-token-address-addr{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.78rem;color:var(--rd-text);overflow-wrap:anywhere;user-select:all}.rd-token-address-meta{font-size:.72rem;color:var(--rd-text-muted)}.rd-field{display:flex;flex-direction:column;gap:.35rem}.rd-field-label{font-size:.69rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--rd-text-muted)}.rd-root .rd-field-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}.rd-root .rd-token-explorer-link{font-size:.75rem;font-weight:500;color:var(--rd-accent);text-decoration:none;white-space:nowrap}.rd-root .rd-token-explorer-link:hover{text-decoration:underline}.rd-field-row{display:grid;grid-template-columns:1fr 1fr;gap:.625rem}.rd-root select,.rd-root input[type=text],.rd-root input[type=number]{width:100%;padding:.6rem .7rem;border-radius:12px;border:1px solid var(--rd-border);background:var(--rd-surface-alt);color:var(--rd-text);font-size:16px;font-family:inherit}.rd-root select:focus,.rd-root input:focus{outline:2px solid var(--rd-accent);outline-offset:1px}.rd-dropdown{position:relative;min-width:0}.rd-root .rd-dropdown-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.55rem .7rem;border-radius:12px;border:1px solid var(--rd-border);background:var(--rd-surface-alt);color:var(--rd-text);font-size:.9rem;font-family:inherit;font-weight:600;text-align:left;cursor:pointer}.rd-root .rd-static-target{display:flex;align-items:center;gap:.55rem;padding:.55rem .7rem;border-radius:12px;border:1px solid var(--rd-border);background:var(--rd-surface-alt);color:var(--rd-text);font-size:.9rem;font-weight:600;min-width:0;overflow-wrap:anywhere}.rd-root .rd-dropdown-trigger:disabled{cursor:not-allowed}.rd-dropdown-trigger:focus,.rd-dropdown-trigger:focus-visible{outline:2px solid var(--rd-accent);outline-offset:1px}.rd-dropdown-trigger-content{display:flex;align-items:center;gap:.55rem;min-width:0}.rd-dropdown-trigger-label{display:flex;flex-direction:column;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}.rd-dropdown-trigger-sub{font-size:.66rem;font-weight:500;line-height:1.3;color:var(--rd-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rd-dropdown-chevron{display:inline-flex;flex:none;color:var(--rd-text-muted);line-height:1}.rd-dropdown-listbox{position:absolute;z-index:20;top:calc(100% + .3rem);left:0;right:0;margin:0;padding:.3rem;list-style:none;max-height:15rem;overflow-y:auto;background:var(--rd-surface);border:1px solid var(--rd-border);border-radius:10px;box-shadow:var(--rd-shadow)}.rd-dropdown-option{display:flex;align-items:center;gap:.55rem;padding:.5rem .6rem;border-radius:8px;font-size:.9rem;color:var(--rd-text);cursor:pointer}.rd-dropdown-option-active{background:var(--rd-surface-alt)}.rd-dropdown-option-selected{font-weight:650}.rd-dropdown-option-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rd-dropdown-option-check{flex:none;color:var(--rd-accent);font-size:.8rem}.rd-amount-input{display:flex;align-items:baseline;gap:.5rem;padding:.6rem .75rem;border-radius:12px;border:1px solid var(--rd-border);background:var(--rd-surface-alt)}.rd-amount-input:focus-within{outline:2px solid var(--rd-accent);outline-offset:1px}.rd-amount-input[data-rd-invalid]{border-color:var(--rd-danger)}.rd-root .rd-amount-input input[type=text]{flex:1 1 auto;width:auto;min-width:0;padding:0;border:0;border-radius:0;background:none;font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.2}.rd-root .rd-amount-input input[type=text]:focus{outline:none}.rd-amount-input-suffix{flex:none;font-size:.8rem;font-weight:700;color:var(--rd-text-muted);pointer-events:none}.rd-root .rd-amount-input-max{flex:none;padding:0;font-size:.69rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--rd-accent);background:transparent;border:0;border-radius:0;cursor:pointer;line-height:1}.rd-amount-input-max:hover:not(:disabled){text-decoration:underline}.rd-amount-input-max:disabled{opacity:.5;cursor:not-allowed}.rd-amount-meta{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;font-size:.75rem;color:var(--rd-text-muted);padding:0 .15rem;font-variant-numeric:tabular-nums}.rd-root button{font-family:inherit;font-size:.95rem;font-weight:650;border-radius:10px;border:1px solid transparent;padding:.7rem 1.1rem;cursor:pointer;transition:opacity .12s ease,transform .12s ease}.rd-root button:active:not(:disabled){transform:translateY(1px)}.rd-root button:disabled{cursor:not-allowed;opacity:.55}.rd-button-primary{background:var(--rd-accent);color:var(--rd-accent-contrast)}.rd-button-secondary{background:var(--rd-surface-alt);color:var(--rd-text);border-color:var(--rd-border)}.rd-button-block{width:100%}.rd-callout{border-radius:10px;padding:.65rem .85rem;font-size:.85rem;line-height:1.4}.rd-callout-warning{background:var(--rd-warning-bg);color:var(--rd-warning)}.rd-callout-danger{background:var(--rd-danger-bg);color:var(--rd-danger)}.rd-callout-success{background:var(--rd-success-bg);color:var(--rd-success)}.rd-callout-muted{background:var(--rd-surface-alt);color:var(--rd-text-muted)}.rd-quote-strip{display:flex;align-items:center;justify-content:space-between;gap:.625rem;padding:.7rem .85rem;border-radius:14px;background:color-mix(in srgb,var(--rd-accent) 10%,var(--rd-surface));border:1px solid color-mix(in srgb,var(--rd-accent) 35%,transparent)}.rd-quote-strip-side{display:flex;flex-direction:column;min-width:0;gap:.1rem;font-size:.9rem;font-weight:700;color:var(--rd-text);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.rd-quote-strip-end{text-align:right;align-items:flex-end}.rd-quote-strip-side small{font-size:.69rem;font-weight:600;color:var(--rd-text-muted);letter-spacing:.02em}.rd-quote-strip-arrow{flex:none;color:var(--rd-accent);font-weight:800}.rd-quote-strip-hint{font-size:.72rem;line-height:1.45;color:var(--rd-text-muted);padding:0 .15rem}.rd-deposit-address{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr auto;align-items:start;gap:.7rem;min-height:172px;background:var(--rd-surface);border:1px solid var(--rd-border);border-radius:16px;box-shadow:var(--rd-shadow);padding:.85rem;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;color:var(--rd-text-muted)}.rd-deposit-address-label{grid-column:1;grid-row:1;position:relative;display:inline-flex;align-items:center;gap:.35rem;width:fit-content;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.rd-root button.rd-address-term{position:static;width:auto;height:auto;display:inline;padding:0 0 2px;border:0;border-bottom:1px dotted currentColor;border-radius:0;background:transparent;color:var(--rd-text-muted);font:700 .69rem/1 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase}.rd-root button.rd-address-term:hover,.rd-root button.rd-address-term:focus-visible{color:var(--rd-accent);outline:none}.rd-address-tooltip{position:absolute;z-index:20;top:calc(100% + 8px);left:0;width:min(250px,calc(100vw - 48px));padding:9px 11px;border:1px solid var(--rd-border);border-radius:10px;background:var(--rd-surface);box-shadow:var(--rd-shadow);color:var(--rd-text);font-size:11.5px;font-weight:500;line-height:1.45;letter-spacing:normal;text-align:left;text-transform:none;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-3px);transition:opacity .12s ease,transform .12s ease,visibility .12s ease}.rd-address-term:hover .rd-address-tooltip,.rd-address-term:focus .rd-address-tooltip,.rd-address-term:focus-visible .rd-address-tooltip{opacity:1;visibility:visible;transform:translateY(0)}.rd-address-full{grid-column:1 / -1;grid-row:2;align-self:center;min-width:0;color:var(--rd-text);font-weight:600;line-height:1.55;overflow-wrap:anywhere;word-break:break-all}.rd-root .rd-address-copy{grid-column:1 / -1;grid-row:3;width:100%;min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;margin:0;padding:.5rem .7rem;border-radius:10px;border:0;background:var(--rd-accent);color:var(--rd-accent-contrast);font-family:inherit;font-size:.75rem;font-weight:800;letter-spacing:.03em;line-height:1}.rd-root .rd-address-copy svg{flex:none}.rd-root .rd-address-copy:hover:not(:disabled){opacity:.92}.rd-root button.rd-mobile-qr-toggle,.rd-root button.rd-mobile-address-toggle{display:none;place-items:center;width:34px;height:34px;padding:0;border:1px solid color-mix(in srgb,var(--rd-accent) 24%,var(--rd-border));border-radius:11px;background:color-mix(in srgb,var(--rd-accent) 10%,var(--rd-surface));color:var(--rd-accent);box-shadow:0 1px 2px color-mix(in srgb,var(--rd-text) 8%,transparent);transition:transform .15s ease,background-color .15s ease,border-color .15s ease,box-shadow .15s ease}.rd-root button.rd-mobile-qr-toggle{grid-column:2;grid-row:1;justify-self:end;align-self:start}.rd-root button.rd-mobile-address-toggle{position:absolute;z-index:2;top:.85rem;right:.85rem;background:var(--rd-surface);color:var(--rd-text-muted);box-shadow:0 4px 14px color-mix(in srgb,var(--rd-text) 16%,transparent)}.rd-root button.rd-mobile-qr-toggle:hover:not(:disabled),.rd-root button.rd-mobile-address-toggle:hover:not(:disabled){border-color:color-mix(in srgb,var(--rd-accent) 45%,var(--rd-border));color:var(--rd-accent);background:color-mix(in srgb,var(--rd-accent) 15%,var(--rd-surface));box-shadow:0 5px 16px color-mix(in srgb,var(--rd-accent) 18%,transparent);transform:translateY(-1px)}.rd-root button.rd-mobile-qr-toggle:active:not(:disabled),.rd-root button.rd-mobile-address-toggle:active:not(:disabled){transform:scale(.96)}.rd-deposit-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.9rem;container:rd-deposit-head / inline-size}.rd-deposit-head>.rd-deposit-qr-pane{flex:none}.rd-deposit-head>.rd-deposit-address{flex:1 1 12rem;min-width:0}@container rd-deposit-head (max-width: 23.75rem){.rd-deposit-head>.rd-deposit-address{flex-basis:100%;width:100%}.rd-deposit-head>.rd-skeleton-qr{display:none}.rd-deposit-head>.rd-skeleton-address{flex-basis:100%;width:100%}.rd-root button.rd-mobile-qr-toggle,.rd-root button.rd-mobile-address-toggle{display:grid}.rd-deposit-head[data-compact-view=address]>.rd-deposit-qr-pane,.rd-deposit-head[data-compact-view=qr]>.rd-deposit-address{display:none}.rd-deposit-head[data-compact-view=address]>.rd-deposit-address,.rd-deposit-head[data-compact-view=qr]>.rd-deposit-qr-pane{animation:rd-compact-pane-in .26s cubic-bezier(.22,1,.36,1)}.rd-deposit-head[data-compact-view=qr]>.rd-deposit-qr-pane{width:100%}}@keyframes rd-compact-pane-in{0%{opacity:0;transform:translateY(6px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}.rd-deposit-qr{position:relative;display:grid;place-items:center;width:172px;height:172px;background:#fff;border-radius:16px;border:1px solid var(--rd-border);box-shadow:var(--rd-shadow);margin:0 auto}.rd-deposit-qr-pane{position:relative;display:grid;place-items:center;min-height:172px}.rd-deposit-qr-badge{position:absolute;inset:0;margin:auto;width:36px;height:36px;display:grid;place-items:center;background:#fff;border-radius:50%;pointer-events:none}.rd-stepper{display:flex;flex-direction:column;gap:0}.rd-stepper-item{display:flex;gap:.75rem;position:relative;padding-bottom:1.25rem}.rd-stepper-item:last-child{padding-bottom:0}.rd-stepper-rail{display:flex;flex-direction:column;align-items:center}.rd-stepper-dot{width:22px;height:22px;border-radius:50%;border:2px solid var(--rd-border);background:var(--rd-surface);display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:700;flex:none;color:var(--rd-text-muted)}.rd-stepper-item-done .rd-stepper-dot{background:var(--rd-success);border-color:var(--rd-success);color:var(--rd-on-accent)}.rd-stepper-item-active .rd-stepper-dot{border-color:var(--rd-accent);color:var(--rd-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--rd-accent) 20%,transparent)}.rd-stepper-line{flex:1;width:2px;background:var(--rd-border);margin:2px 0}.rd-stepper-item-done .rd-stepper-line{background:var(--rd-success)}.rd-stepper-body{padding-top:1px}.rd-stepper-label{font-weight:600;font-size:.9rem}.rd-stepper-item-pending .rd-stepper-label{color:var(--rd-text-muted)}.rd-stepper-meta{margin-top:.25rem;font-size:.78rem;color:var(--rd-text-muted);display:flex;flex-direction:column;gap:.15rem}.rd-stepper-meta a{color:var(--rd-accent);text-decoration:none}.rd-stepper-meta a:hover{text-decoration:underline}.rd-status-pill{display:inline-flex;align-items:center;gap:.35rem;font-size:.75rem;font-weight:650;padding:.2rem .55rem;border-radius:999px;background:var(--rd-surface-alt);color:var(--rd-text-muted);width:fit-content}.rd-status-pill-success{background:var(--rd-success-bg);color:var(--rd-success)}.rd-status-pill-failure{background:var(--rd-danger-bg);color:var(--rd-danger)}.rd-spinner{display:inline-block;width:1em;height:1em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:rd-spin .7s linear infinite;vertical-align:-.15em}@keyframes rd-spin{to{transform:rotate(360deg)}}.rd-muted{color:var(--rd-text-muted)}.rd-settings-row{display:flex;justify-content:flex-end}.rd-root .rd-icon-button{position:relative;display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border-radius:50%;border:1px solid var(--rd-border);background:var(--rd-surface);color:var(--rd-text-muted)}.rd-root .rd-icon-button:hover:not(:disabled){color:var(--rd-text);background:var(--rd-surface-alt)}.rd-recovery-badge{position:absolute;top:-.3rem;right:-.3rem;display:flex;align-items:center;justify-content:center;min-width:1.05rem;height:1.05rem;padding:0 .25rem;border-radius:999px;background:var(--rd-danger, #d1394a);color:#fff;font-size:.65rem;font-weight:700;line-height:1;border:2px solid var(--rd-surface, #ffffff)}.rd-recover-group{display:flex;flex-direction:column;gap:.75rem}.rd-recover-group+.rd-recover-group{border-top:1px solid var(--rd-border);padding-top:1rem;margin-top:.5rem}.rd-recover-group-label{margin:0;font-size:.8rem;color:var(--rd-text-muted)}.rd-recover-made-of{display:block;padding:.65rem .8rem;background:var(--rd-surface-alt);border:1px solid var(--rd-border);border-radius:10px}.rd-recover-made-of-label{cursor:pointer;font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--rd-text-muted)}.rd-recover-made-of-body{display:flex;flex-direction:column;gap:.4rem;margin-top:.6rem}.rd-error-details{margin-top:-.4rem;padding:0 .15rem;color:var(--rd-text-muted);font-size:.72rem}.rd-error-details summary{width:max-content;cursor:pointer;list-style:none;font-weight:600}.rd-error-details summary::-webkit-details-marker{display:none}.rd-error-details summary:before{display:inline-block;margin-right:.35rem;content:"\\203a";transition:transform .12s ease}.rd-error-details[open] summary:before{transform:rotate(90deg)}.rd-error-log{position:relative;margin-top:.5rem}.rd-root button.rd-error-copy{position:absolute;z-index:1;top:.45rem;right:.45rem;display:inline-flex;align-items:center;justify-content:center;width:1.65rem;height:1.65rem;padding:0;border:1px solid var(--rd-border);border-radius:6px;background:var(--rd-surface);color:var(--rd-text-muted)}.rd-root button.rd-error-copy:hover:not(:disabled){background:var(--rd-surface-alt);color:var(--rd-text)}.rd-error-details code{display:block;max-height:6rem;overflow:auto;padding:.6rem 2.7rem .6rem .7rem;border:1px solid var(--rd-border);border-radius:8px;background:var(--rd-surface-alt);color:var(--rd-text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.68rem;line-height:1.45;overflow-wrap:anywhere;scrollbar-color:var(--rd-border) transparent;scrollbar-width:thin;white-space:pre-wrap}.rd-error-details code::-webkit-scrollbar{width:4px;height:4px}.rd-error-details code::-webkit-scrollbar-thumb{border-radius:999px;background:var(--rd-border)}.rd-token-list{display:flex;flex-direction:column;gap:.5rem}.rd-token-row{display:flex;align-items:center;gap:10px;background:var(--rd-surface-alt);border:1px solid var(--rd-border);border-radius:12px;padding:12px 14px}.rd-token-row-info{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;overflow-wrap:anywhere}.rd-token-row-symbol{font-weight:700}.rd-token-row-amount{font-variant-numeric:tabular-nums;font-size:14px;font-weight:700;color:var(--rd-text);white-space:nowrap}.rd-token-row-status{font-size:11.5px;line-height:1.45;color:var(--rd-text-muted)}.rd-token-row-warn{font-size:11.5px;line-height:1.45;color:var(--rd-warning)}.rd-token-row-warn b{font-weight:750;font-variant-numeric:tabular-nums}.rd-token-row-step{font-size:11.5px;line-height:1.45;font-weight:650;color:var(--rd-accent)}.rd-root .rd-token-row-action{flex:none;width:auto;padding:9px 16px;font-size:13px;font-weight:700}.rd-token-row-spinner{flex:none;font-size:18px;color:var(--rd-accent)}.rd-recover-sum{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;background:var(--rd-surface-alt);border:1px solid var(--rd-border);border-radius:12px;padding:16px 14px;container:rd-recover-sum / inline-size}.rd-recover-sum-label{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rd-text-muted)}.rd-recover-sum-value{max-width:100%;overflow:hidden;font-size:22px;font-size:clamp(18px,7cqi,28px);font-weight:800;line-height:1.15;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;color:var(--rd-text)}.rd-recover-sum-unit{display:block;margin:.35rem 0 0;font-size:15px;font-weight:700;color:var(--rd-text-muted)}.rd-recover-sum-empty{font-size:17px;font-weight:700;color:var(--rd-text-muted)}.rd-recover-foot{text-align:center;font-size:11.5px;line-height:1.45;color:var(--rd-text-muted)}.rd-history-table{display:flex;min-width:0;flex-direction:column;gap:.6rem;font-size:.875rem}.rd-history-group{min-width:0;max-width:100%;background:var(--rd-surface-alt);border:1px solid var(--rd-border);border-radius:12px;overflow:hidden}.rd-history-row-button{width:100%;min-width:0;display:flex;flex-direction:column;gap:.75rem;padding:1rem;background:none;border:none;border-radius:inherit;color:inherit;font:inherit;text-align:left;cursor:pointer}.rd-history-row-button[aria-expanded=true]{border-radius:12px 12px 0 0}.rd-history-row-button:hover{background:color-mix(in srgb,var(--rd-border) 30%,transparent)}.rd-history-row-button:focus-visible{outline:2px solid var(--rd-accent);outline-offset:-2px}.rd-history-card-top{display:flex;align-items:center;gap:.5rem;min-width:0}.rd-history-card-top>.rd-status-pill{margin-left:auto;flex:none}.rd-history-card-top>.rd-status-pill:not(.rd-status-pill-success):not(.rd-status-pill-failure){background:color-mix(in srgb,var(--rd-accent) 12%,transparent);color:var(--rd-accent)}.rd-history-asset{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rd-history-card-amounts{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.75rem;padding:.75rem;border-radius:10px;background:var(--rd-surface)}.rd-history-amount-block{display:flex;max-width:100%;flex-direction:column;gap:.15rem;min-width:0}.rd-history-amount-block:last-child{align-items:flex-end;text-align:right}.rd-history-amount-label{color:var(--rd-text-muted);font-size:.68rem;font-weight:650;line-height:1.2}.rd-history-num{max-width:100%;overflow:hidden;font-variant-numeric:tabular-nums;font-size:.875rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.rd-history-num[data-full-value],.rd-history-step-amount[data-full-value]{cursor:help}[data-rd-history-floating-tooltip]{position:fixed;z-index:100100;width:max-content;max-width:calc(100vw - 1.5rem);padding:.45rem .65rem;border:1px solid;border-radius:8px;font-size:.72rem;font-weight:600;line-height:1.35;text-align:left;white-space:normal;overflow-wrap:anywhere;pointer-events:none}.rd-history-card-arrow{display:inline-flex;align-items:center;justify-content:center;color:var(--rd-text-muted);font-size:.85rem}.rd-history-received{color:var(--rd-success)}.rd-history-received-estimate{color:var(--rd-text-muted);font-weight:600}.rd-history-card-foot{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.rd-history-date{color:var(--rd-text-muted);font-size:.78rem;font-variant-numeric:tabular-nums}.rd-history-chevron{display:inline-flex;flex:none;align-items:center;justify-content:center;color:var(--rd-text-muted);text-align:center;transition:transform .16s ease}.rd-history-row-button[aria-expanded=true] .rd-history-chevron{transform:rotate(180deg)}.rd-history-detail{display:flex;min-width:0;flex-direction:column;gap:.375rem;padding:.65rem .9rem .8rem;border-top:1px solid var(--rd-border)}.rd-history-step{display:grid;min-width:0;grid-template-columns:.5rem auto 1fr auto auto;gap:.5rem;align-items:center}.rd-history-step-dot{width:.5rem;height:.5rem;border-radius:50%;background:var(--rd-border)}.rd-history-step-dot-done{background:var(--rd-success)}.rd-history-step-label{font-weight:600}.rd-history-step-chain{color:var(--rd-text-muted)}.rd-history-step-amount{font-variant-numeric:tabular-nums;color:var(--rd-text-muted)}.rd-history-step-tx{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.rd-history-step-shared{margin-left:.4rem;color:var(--rd-text-muted);font-size:.72rem}.rd-skeleton{border-radius:10px;background:linear-gradient(90deg,var(--rd-surface-alt) 25%,color-mix(in srgb,var(--rd-surface-alt) 55%,var(--rd-surface)) 42%,var(--rd-surface-alt) 60%);background-size:220% 100%;animation:rd-skeleton-wave 1.4s ease-in-out infinite}@keyframes rd-skeleton-wave{0%{background-position:130% 0}to{background-position:-90% 0}}@media(prefers-reduced-motion:reduce){.rd-skeleton,.rd-checklist-status,.rd-deposit-head[data-compact-view=address]>.rd-deposit-address,.rd-deposit-head[data-compact-view=qr]>.rd-deposit-qr-pane,.rd-checklist-status-waiting .rd-checklist-status-dot,.rd-checklist-status-detected .rd-checklist-status-dot{animation:none}}.rd-skeleton-form{display:flex;flex-direction:column;gap:.85rem}.rd-skeleton-qr{flex:none;width:172px;height:172px;border-radius:16px}.rd-skeleton-address{flex:1 1 12rem;min-width:0;height:172px;border-radius:16px}.rd-skeleton-line{height:.9rem;width:40%}.rd-skeleton-field{height:48px}.rd-skeleton-notice{height:96px}.rd-skeleton-cta{height:48px}.rd-wizard{flex:1 1 auto;min-height:0;overflow-y:auto;container:rd-wizard / inline-size;padding:1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom,0px));scroll-padding:1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom,0px));overscroll-behavior:contain;-webkit-overflow-scrolling:touch;max-width:none;gap:.85rem}.rd-deposit-tabs{--rd-tab-count: 2;--rd-active-tab-index: 0;position:sticky;top:-1rem;z-index:2;display:flex;flex:0 0 auto;justify-content:space-around;margin:-1rem -1.25rem 0;padding:1rem 1.25rem 0;border-bottom:1px solid var(--rd-border);background:var(--rd-surface)}.rd-deposit-tabs[data-tab-count="3"]{--rd-tab-count: 3}.rd-deposit-tabs[data-active-index="1"]{--rd-active-tab-index: 1}.rd-deposit-tabs[data-active-index="2"]{--rd-active-tab-index: 2}.rd-deposit-tabs:after{position:absolute;bottom:-1px;left:1.25rem;width:calc((100% - 2.5rem) / var(--rd-tab-count));height:2px;background:var(--rd-accent);content:"";pointer-events:none;transform:translate(calc(var(--rd-active-tab-index) * 100%));transition:transform .22s cubic-bezier(.22,1,.36,1),width .18s ease}.rd-root .rd-deposit-tab{position:relative;display:inline-flex;flex:1 1 0;min-width:0;min-height:2.75rem;align-items:center;justify-content:center;gap:.4rem;padding:.85rem .35rem;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--rd-text-muted);font:inherit;font-size:.875rem;font-weight:650;line-height:1.2;transition:border-color .16s ease,background-color .16s ease,color .16s ease}.rd-root .rd-deposit-tab[data-active=true]{color:var(--rd-text)}.rd-root .rd-deposit-tab:hover:not(:disabled),.rd-root .rd-deposit-tab:focus-visible{outline:none;background:color-mix(in srgb,var(--rd-accent) 7%,transparent);color:var(--rd-text)}.rd-deposit-tab>.rd-recovery-badge{position:static;flex:none;min-width:1rem;height:1rem;padding:0 .2rem;border-width:0}.rd-deposit-tab-panel{display:flex;min-width:0;flex-direction:column;gap:.85rem;transform-origin:top center;animation:rd-deposit-tab-in .18s cubic-bezier(.22,1,.36,1)}@keyframes rd-deposit-tab-in{0%{opacity:0;transform:translateY(.35rem)}to{opacity:1;transform:translateY(0)}}.rd-stack{display:flex;min-width:0;flex-direction:column;gap:.75rem}.rd-wizard-header{display:flex;align-items:center;gap:.5rem;margin-bottom:0}.rd-wizard-heading{font-size:1rem;font-weight:700;color:var(--rd-text);margin:0}.rd-wizard-actions{margin-left:auto;display:flex;align-items:center;gap:.25rem}.rd-min-notice-pending{color:var(--rd-text-muted)}.rd-min-notice-pending b{font-weight:750;color:var(--rd-warning);font-variant-numeric:tabular-nums}.rd-locked-card{width:172px;min-height:172px;margin:0 auto;padding:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;text-align:center;background:var(--rd-surface-alt);border:1px dashed var(--rd-border);border-radius:16px}.rd-locked-glyph{color:var(--rd-text-muted);line-height:0}.rd-locked-text{font-size:12px;line-height:1.5;color:var(--rd-text-muted)}.rd-delivery-recipient{display:flex;flex-direction:column;gap:.3rem;margin-top:.5rem}.rd-checklist-credit{font-size:clamp(10px,2.7vw,11.5px);white-space:nowrap}.rd-checklist{background:var(--rd-surface);border:1px solid var(--rd-border);border-radius:14px;padding:11px 14px;display:flex;flex-direction:column;gap:7px}.rd-checklist-row{display:flex;align-items:flex-start;gap:.5rem;font-size:12.5px;line-height:1.5;color:var(--rd-text)}.rd-checklist-row[data-rd-checklist-only]{align-items:center;white-space:nowrap;font-size:clamp(10.5px,2.8vw,12.5px)}.rd-checklist-mark{flex:none;width:1.05rem;text-align:center;font-weight:800;color:var(--rd-text-muted)}.rd-checklist-mark-warn{color:var(--rd-warning)}.rd-checklist-accent{color:var(--rd-accent);font-weight:750;font-variant-numeric:tabular-nums}.rd-checklist-status{min-height:54px;display:flex;align-items:center;gap:.65rem;padding:10px 12px;border:1px solid color-mix(in srgb,var(--rd-accent) 30%,var(--rd-border));border-radius:12px;background:var(--rd-surface-alt);color:var(--rd-text-muted);font-size:12.5px;line-height:1.45;transform-origin:top center;animation:rd-status-enter .48s cubic-bezier(.22,1,.36,1)}.rd-checklist-status-waiting,.rd-checklist-status-detected{border-color:color-mix(in srgb,var(--rd-warning) 42%,var(--rd-border));box-shadow:0 0 0 1px color-mix(in srgb,var(--rd-warning) 10%,transparent)}@keyframes rd-status-enter{0%{opacity:0;transform:translateY(-10px) scale(.985);box-shadow:0 0 color-mix(in srgb,var(--rd-accent) 28%,transparent)}65%{opacity:1;transform:translateY(1px) scale(1);box-shadow:0 0 0 4px color-mix(in srgb,var(--rd-accent) 16%,transparent)}to{opacity:1;transform:translateY(0);box-shadow:0 0 0 0 transparent}}.rd-checklist-status-dot{flex:none;width:9px;height:9px;border-radius:50%;background:var(--rd-warning);box-shadow:0 0 0 4px color-mix(in srgb,var(--rd-warning) 14%,transparent)}.rd-checklist-status-waiting .rd-checklist-status-dot,.rd-checklist-status-detected .rd-checklist-status-dot{animation:rd-status-breathe 1.8s ease-in-out infinite}@keyframes rd-status-breathe{0%,to{opacity:.82;transform:scale(.96);box-shadow:0 0 0 3px color-mix(in srgb,var(--rd-warning) 10%,transparent)}50%{opacity:1;transform:scale(1);box-shadow:0 0 0 5px color-mix(in srgb,var(--rd-warning) 15%,transparent)}}.rd-checklist-status-funded,.rd-checklist-status-processing{color:var(--rd-text);border-color:color-mix(in srgb,var(--rd-accent) 40%,transparent)}.rd-checklist-status-funded .rd-checklist-status-dot,.rd-checklist-status-processing .rd-checklist-status-dot{background:var(--rd-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--rd-accent) 14%,transparent)}.rd-checklist-status-completed{border-color:color-mix(in srgb,var(--rd-success) 40%,transparent);background:var(--rd-success-bg);color:var(--rd-success)}.rd-checklist-status-completed .rd-checklist-status-dot{background:var(--rd-success);box-shadow:0 0 0 4px color-mix(in srgb,var(--rd-success) 14%,transparent)}.rd-checklist-status-failed{border-color:color-mix(in srgb,var(--rd-danger) 40%,transparent);background:var(--rd-danger-bg);color:var(--rd-danger)}.rd-checklist-status-failed .rd-checklist-status-dot{background:var(--rd-danger);box-shadow:0 0 0 4px color-mix(in srgb,var(--rd-danger) 14%,transparent)}@container rd-wizard (max-width: 30rem){.rd-recover-sum{padding-inline:.75rem}.rd-recover-sum-value{font-size:clamp(1rem,6cqi,1.5rem)}[data-rd-recover-funds] .rd-callout,.rd-token-row-status,.rd-token-row-warn,.rd-token-row-step,.rd-recover-foot{overflow-wrap:anywhere}.rd-token-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;padding:.875rem}.rd-root .rd-token-row-action{width:100%;min-height:2.75rem;grid-column:1 / -1}.rd-token-row-spinner{grid-column:1 / -1;justify-self:center}}@container rd-wizard (max-width: 24rem){.rd-history-card-top{flex-direction:column;align-items:flex-start}.rd-history-card-top>.rd-status-pill{max-width:100%;margin-left:0;white-space:normal}.rd-history-asset{overflow:visible;text-overflow:clip;white-space:normal}.rd-history-card-amounts{grid-template-columns:minmax(0,1fr);gap:.45rem}.rd-history-amount-block{width:100%}.rd-history-amount-block:last-child{align-items:flex-start;text-align:left}.rd-history-card-arrow{display:inline-flex;justify-self:center;margin:0;transform:rotate(90deg);transform-origin:center}.rd-history-card-foot{align-items:flex-start}.rd-history-date{min-width:0;line-height:1.4;overflow-wrap:anywhere}.rd-history-step{grid-template-columns:.5rem minmax(0,1fr);grid-template-areas:"dot label" ". chain" ". amount" ". tx";column-gap:.5rem;row-gap:.25rem;align-items:start;padding-block:.65rem;line-height:1.35}.rd-history-step+.rd-history-step{border-top:1px solid var(--rd-border)}.rd-history-step-dot{grid-area:dot;margin-top:.35rem}.rd-history-step-label{grid-area:label}.rd-history-step-chain{grid-area:chain}.rd-history-step-amount{grid-area:amount}.rd-history-step-tx{grid-area:tx;min-width:0;max-width:100%}.rd-history-step-tx a{overflow-wrap:anywhere}.rd-history-step-shared{display:block;margin:.15rem 0 0}.rd-history-step>.rd-muted{grid-area:tx}}@container rd-wizard (max-width: 22rem){.rd-root .rd-deposit-tab{gap:.2rem;padding-inline:.15rem;font-size:.8rem}.rd-history-row-button,.rd-history-detail{padding-inline:.75rem}}@media(prefers-reduced-motion:reduce){.rd-deposit-tabs:after,.rd-root .rd-deposit-tab{transition:none}.rd-deposit-tab-panel{animation:none}}
|
|
18
18
|
`);import{jsx as Bn,jsxs as $r}from"react/jsx-runtime";function Gu({minNotice:e,arrivalStatus:t}){let r=t.amount&&t.symbol?`${t.amount} ${t.symbol} arrived`:t.amount?`${t.amount} arrived`:void 0,n=(()=>{switch(t.phase){case"detected":if(e.remaining!==void 0){let o=`${e.remaining} ${e.symbol}`;return r?`${r} at the processing address. Waiting for ${o} more to reach the minimum.`:`Deposit detected. Waiting for ${o} more to reach the minimum.`}return r?`${r} at the processing address. Checking the minimum.`:"Deposit detected. Checking the minimum.";case"funded":return`${e.min} ${e.symbol} received at the processing address. Preparing delivery.`;case"processing":return"Minimum reached. Bridging and delivering to ONEchain.";case"completed":return"Transfer completed. Funds were delivered to ONEchain.";case"failed":return`Transfer needs attention${t.backendStatus?` (${t.backendStatus})`:""}.`;case"unavailable":return e.remaining===void 0?"Live status is temporarily unavailable. Retrying automatically.":void 0;default:return}})();return n?$r("div",{className:`rd-checklist-status rd-checklist-status-${t.phase}`,"data-rd-deposit-status":"","data-phase":t.phase,role:"status","aria-live":"polite","aria-atomic":"true",children:[Bn("span",{className:"rd-checklist-status-dot","aria-hidden":"true"}),Bn("span",{children:n})]},`live:${t.phase}:${n}`):e.remaining!==void 0?$r("div",{className:"rd-checklist-status rd-checklist-status-waiting rd-min-notice-pending","data-rd-min-notice-pending":"",role:"status","aria-live":"polite","aria-atomic":"true",children:[Bn("span",{className:"rd-checklist-status-dot","aria-hidden":"true"}),$r("span",{children:["Waiting for"," ",$r("b",{children:[e.remaining," ",e.symbol]})," ","more to arrive at the processing address."]})]},`pending:${e.remaining}:${e.symbol}`):null}function _u({minNotice:e,onlySend:t,showWalletCreditNote:r=!1}){return $r("div",{className:"rd-checklist","data-rd-checklist":"",children:[$r("div",{className:"rd-checklist-row","data-rd-checklist-only":"",children:[Bn("span",{className:"rd-checklist-mark rd-checklist-mark-warn","aria-hidden":"true",children:"!"}),$r("span",{children:[$r("b",{children:[t.chainName," ",t.symbol," only"]})," \xB7 ",$r("b",{className:"rd-checklist-accent",children:[e.min," ",e.symbol," minimum"]})]})]}),$r("div",{className:"rd-checklist-row",children:[Bn("span",{className:"rd-checklist-mark","aria-hidden":"true",children:"\u21BB"}),Bn("span",{children:"Reusable \u2014 deposit as many times as you like"})]}),r&&$r("div",{className:"rd-checklist-row rd-checklist-credit","data-rd-checklist-credit":"",children:[Bn("span",{className:"rd-checklist-mark","aria-hidden":"true",children:"\u2192"}),Bn("span",{children:"Credited to your ONEchain wallet"})]})]})}import{useEffect as ly,useId as dy,useState as Vu}from"react";var pi="0x0000000000000000000000000000000000000000",Xw=/^0x[0-9a-fA-F]{40}$/;function dt(e){return Xw.test(e)}function Ft(e,t){let r=e<0n,o=(r?-e:e).toString().padStart(t+1,"0"),i=t===0?o:o.slice(0,-t),a=t===0?"":o.slice(-t).replace(/0+$/,""),s=a?`${i}.${a}`:i;return r?`-${s}`:s}function Ma(e,t){let r=e.match(/^(-?)(\d+)(?:\.(\d+))?$/);if(!r)throw new Error(`parseUnits: invalid decimal string "${e}"`);let[,n,o,i=""]=r;if(i.length>t)throw new Error(`parseUnits: too many decimal places for ${t} decimals`);let a=BigInt(o+i.padEnd(t,"0"));return n==="-"?-a:a}import{useId as zn}from"react";var hl="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTQwIDU0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzc0MDAwXzM4NTkwKSI+CjxtYXNrIGlkPSJtYXN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1tC4dWZZTl4UVtZ9q7HiUehi/h775H//4aI7z0OZ5LeVJvNw/fyM/wsn8Fn8Zl8Nr+D36Wvsp/if7BfCn8ECvocAAAAAElFTkSuQmCC";function Hu(e){switch(e.toUpperCase()){case"ONEUSD":return hl;case"PONEUSD":return Jw;case"USDT":return $w;case"USDC":return ey;default:return}}import{jsx as X,jsxs as Vt}from"react/jsx-runtime";function Qu(e){let t=e.trim();return t?t.slice(0,2).toUpperCase():"?"}function ty({size:e,bg:t,fg:r="#ffffff",children:n}){return Vt("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",style:{display:"block",flex:"none",borderRadius:"50%"},children:[X("circle",{cx:"12",cy:"12",r:"12",fill:t}),X("g",{fill:r,stroke:r,children:n})]})}function bl({size:e,bg:t,fg:r="#ffffff",text:n}){return X(ty,{size:e,bg:t,fg:r,children:X("text",{x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",fontSize:"10",fontWeight:700,fontFamily:"inherit",stroke:"none",fill:r,children:n})})}function Oo({size:e,viewBox:t="0 0 24 24",children:r}){return X("svg",{width:e,height:e,viewBox:t,"aria-hidden":"true",focusable:"false",style:{display:"block",flex:"none",borderRadius:"50%"},children:r})}function ry({size:e}){let t=zn();return Vt(Oo,{size:e,children:[Vt("g",{clipPath:`url(#${t})`,children:[X("path",{fill:"#000",d:"M24 0H0v24h24z"}),X("path",{fill:"#8FFCF3",d:"M12 4v5.912l5 2.237z"}),X("path",{fill:"#CABCF8",d:"m12 4-5 8.148 5-2.235z"}),X("path",{fill:"#CBA7F5",d:"M12 15.98V20l5-6.92z"}),X("path",{fill:"#74A0F3",d:"M12 20v-4.02l-5-2.9z"}),X("path",{fill:"#CBA7F5",d:"m12 15.049 5-2.9-5-2.236z"}),X("path",{fill:"#74A0F3",d:"m7 12.149 5 2.9V9.913z"}),X("path",{fill:"#202699",fillRule:"evenodd",clipRule:"evenodd",d:"m12 15.048-5-2.9L12 4l5 8.148zm-4.67-3.136 4.588-7.475v5.435zm-.068.204 4.656-2.068v4.768zm4.816-2.068v4.768l4.653-2.7zm0-.176 4.588 2.04-4.588-7.475z"}),X("path",{fill:"#202699",fillRule:"evenodd",clipRule:"evenodd",d:"m12 15.917-5-2.84L12 20l5-6.924zm-4.44-2.341 4.36 2.48v3.56zm4.519 2.48v3.56l4.36-6.04z"})]}),X("defs",{children:X("clipPath",{id:t,children:X("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]})}function ny({size:e}){let t=zn();return Vt(Oo,{size:e,children:[Vt("g",{clipPath:`url(#${t})`,children:[X("path",{fill:"#F0B90B",d:"M24 0H0v24h24z"}),X("path",{fill:"#fff",d:"M7.635 6.449 12 4l4.364 2.449-1.6.907L12 5.809 9.24 7.356zm8.73 3.093-1.6-.906L12 10.182 9.24 8.636l-1.605.906v1.81l2.756 1.546v3.089l1.609.906 1.604-.906v-3.09l2.76-1.546zm0 4.903V12.63l-1.6.907v1.809zm1.141.64-2.76 1.542v1.813l4.365-2.453v-4.898l-1.605.902zm-1.604-7.09 1.6.907v1.81l1.609-.903V7.996l-1.605-.907L15.902 8zm-5.511 9.29v1.808L12 20l1.604-.907V17.29l-1.604.9-1.605-.907zM7.635 14.44l1.6.907v-1.81l-1.6-.906v1.813zm2.756-6.444L12 8.902l1.604-.906L12 7.089 10.395 8zm-3.898.906 1.605-.906-1.6-.907L4.888 8v1.813l1.605.903zm0 3.09-1.604-.903v4.898l4.364 2.453v-1.818L6.498 15.08v-3.093z"})]}),X("defs",{children:X("clipPath",{id:t,children:X("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]})}function oy({size:e}){let t=zn();return Vt(Oo,{size:e,viewBox:"0 0 111 111",children:[Vt("g",{clipPath:`url(#${t})`,children:[X("path",{fill:"#fff",d:"M0 0h111v111H0z"}),X("path",{fill:"#0052FF",d:"M54.921 110.034C85.359 110.034 110.034 85.402 110.034 55.017C110.034 24.6319 85.359 0 54.921 0C26.0432 0 2.35281 22.1714 0 50.3923H72.8467V59.6416H0C2.35281 87.8625 26.0432 110.034 54.921 110.034Z"})]}),X("defs",{children:X("clipPath",{id:t,children:X("path",{fill:"#fff",d:"M0 0h111v111H0z"})})})]})}function iy({size:e}){let t=zn();return Vt(Oo,{size:e,children:[Vt("g",{clipPath:`url(#${t})`,children:[X("path",{fill:"#213147",d:"M24 0H0v24h24z"}),X("path",{fill:"#fff",d:"m13.203 13.216-.787 2.124a.27.27 0 0 0 0 .183l1.354 3.655 1.565-.89-1.879-5.072c-.042-.117-.21-.117-.253 0m1.577-3.573a.135.135 0 0 0-.253 0l-.787 2.124a.27.27 0 0 0 0 .183l2.217 5.985 1.565-.89z"}),X("path",{fill:"#fff",d:"M11.999 4.991a.24.24 0 0 1 .111.03l5.969 3.393a.22.22 0 0 1 .112.19v6.787a.22.22 0 0 1-.112.19l-5.969 3.395a.2.2 0 0 1-.111.029.24.24 0 0 1-.113-.03l-5.968-3.39a.22.22 0 0 1-.112-.19v-6.79a.22.22 0 0 1 .112-.19l5.969-3.393a.23.23 0 0 1 .111-.03m0-.991c-.213 0-.426.054-.616.163L5.416 7.556a1.21 1.21 0 0 0-.616 1.05v6.787c0 .433.234.834.616 1.05l5.968 3.394a1.25 1.25 0 0 0 1.232 0l5.968-3.394a1.21 1.21 0 0 0 .616-1.05V8.606a1.21 1.21 0 0 0-.616-1.05l-5.97-3.393A1.24 1.24 0 0 0 11.998 4"}),X("path",{fill:"#fff",d:"m8.052 17.943.55-1.482 1.105.905-1.034.93zm3.445-9.823H9.984a.27.27 0 0 0-.254.175l-3.243 8.757 1.565.89L11.623 8.3a.132.132 0 0 0-.127-.179"}),X("path",{fill:"#fff",d:"M14.144 8.12h-1.513a.27.27 0 0 0-.253.175l-3.704 10 1.565.89 4.032-10.886a.133.133 0 0 0-.127-.179"})]}),X("defs",{children:X("clipPath",{id:t,children:X("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]})}function ay({size:e}){let t=zn(),r=zn();return Vt(Oo,{size:e,children:[Vt("g",{clipPath:`url(#${t})`,children:[X("path",{fill:`url(#${r})`,d:"M24 0H0v24h24z"}),X("path",{fill:"#fff",d:"m15.88 14.86 3.794-2.165a.64.64 0 0 0 .326-.558v-4.33a.64.64 0 0 0-.326-.556L15.88 5.086a.66.66 0 0 0-.65 0L11.432 7.25a.64.64 0 0 0-.325.557v7.737l-2.662 1.517-2.661-1.517v-3.036l2.661-1.517 1.755 1.001V9.958l-1.43-.816a.66.66 0 0 0-.65 0l-3.796 2.165a.64.64 0 0 0-.325.557v4.33c0 .229.124.442.325.557l3.796 2.165c.2.114.45.114.65 0l3.796-2.165a.64.64 0 0 0 .325-.557V8.455l.048-.026 2.613-1.49 2.661 1.516v3.036l-2.661 1.517-1.753-.999v2.037l1.427.814a.66.66 0 0 0 .651 0z"})]}),Vt("defs",{children:[Vt("linearGradient",{id:r,x1:"3.948",x2:"19.217",y1:"16.617",y2:"7.645",gradientUnits:"userSpaceOnUse",children:[X("stop",{stopColor:"#A726C1"}),X("stop",{offset:".88",stopColor:"#803BDF"}),X("stop",{offset:"1",stopColor:"#7B3FE4"})]}),X("clipPath",{id:t,children:X("path",{fill:"#fff",d:"M0 0h24v24H0z"})})]})]})}function sy({size:e}){let t=zn(),r=zn();return Vt(Oo,{size:e,children:[Vt("g",{clipPath:`url(#${t})`,children:[X("path",{fill:`url(#${r})`,d:"M24 0H0v24h24z"}),X("path",{fill:"#fff",d:"M17.7 8.358a.55.55 0 0 1-.365.145H4.515c-.455 0-.684-.52-.37-.825l2.106-2.03a.54.54 0 0 1 .364-.15h12.87c.46 0 .685.524.365.83zm0 10.005c-.1.09-.23.14-.365.14H4.515c-.455 0-.684-.516-.37-.82l2.106-2.036a.53.53 0 0 1 .364-.145h12.87c.46 0 .685.52.365.825zm0-7.72a.55.55 0 0 0-.365-.14H4.515c-.455 0-.684.515-.37.82l2.106 2.035c.1.091.23.143.364.144h12.87c.46 0 .685-.52.365-.824z"})]}),Vt("defs",{children:[Vt("linearGradient",{id:r,x1:"4.001",x2:"20.408",y1:"50.258",y2:"50.108",gradientUnits:"userSpaceOnUse",children:[X("stop",{stopColor:"#599DB0"}),X("stop",{offset:"1",stopColor:"#47F8C3"})]}),X("clipPath",{id:t,children:X("path",{fill:"#fff",d:"M0 0h24v24H0z"})})]})]})}function Aa({chainId:e,chainName:t,size:r=20}){switch(e){case 1:return X(ry,{size:r});case 56:return X(ny,{size:r});case 8453:return X(oy,{size:r});case 42161:return X(iy,{size:r});case 137:return X(ay,{size:r});case 792703809:return X(sy,{size:r});case 612055:return X(bl,{size:r,bg:"#0b1f3a",text:"CR"});default:return X(bl,{size:r,bg:"#676b7a",text:Qu(t??String(e))})}}function io({symbol:e,logoUrl:t,size:r=20}){let n=t&&t.trim().length>0?t.trim():Hu(e);return n?X("img",{src:n,alt:"","aria-hidden":"true",width:r,height:r,style:{display:"block",flex:"none",borderRadius:"50%",objectFit:"cover"}}):X(bl,{size:r,bg:"#676b7a",text:Qu(e)})}import{QRCodeSVG as cy}from"qrcode.react";import{Fragment as La,jsx as pt,jsxs as Ot}from"react/jsx-runtime";function Da(){return Ot("div",{className:"rd-deposit-head","data-testid":"rd-address-skeleton","aria-hidden":"true",children:[pt("span",{className:"rd-skeleton rd-skeleton-qr"}),pt("span",{className:"rd-skeleton rd-skeleton-address"})]})}function py(e){let{depositAddress:t,originChainId:r,originCurrency:n,amountWei:o,isNative:i}=e;if(i)return o!==void 0?`ethereum:${t}@${r}?value=${o.toString()}`:`ethereum:${t}@${r}`;let a=new URLSearchParams({address:t});return o!==void 0&&a.set("uint256",o.toString()),`ethereum:${n}@${r}/transfer?${a.toString()}`}function uy(e){let{depositAddress:t,splMint:r,humanAmount:n}=e,o=new URLSearchParams;return n&&o.set("amount",n),o.set("spl-token",r),`solana:${t}?${o.toString()}`}function qu({depositAddress:e,originChainId:t,originChainName:r,originCurrency:n,amount:o,tokenSymbol:i,tokenDecimals:a,kind:s="evm",depositState:l,onDeposit:d,canDeposit:p,oneClickEnabled:h=!0}){let[b,m]=Vu(!1),[w,f]=Vu("address"),u=dy();ly(()=>{f("address")},[e]);let c=n.toLowerCase()===pi,y=s==="svm";async function g(){try{await navigator.clipboard.writeText(e),m(!0),setTimeout(()=>m(!1),1500)}catch{}}let v;if(o)try{let E=BigInt(o);E>0n&&(v=E)}catch{}let k=v!==void 0,R;if(k)try{R=Ft(v,a)}catch{R=o}let I=y?uy({depositAddress:e,splMint:n,humanAmount:R??""}):py({depositAddress:e,originChainId:t,originCurrency:n,amountWei:v,isNative:c}),{isSubmitting:C,isConfirming:S,isConfirmed:A,needsSwitch:D,txHash:U,reverted:M,error:G}=l;return Ot("section",{className:"rd-stack",children:[Ot("div",{className:"rd-deposit-head","data-compact-view":w,children:[Ot("div",{className:"rd-deposit-qr-pane",children:[Ot("div",{className:"rd-deposit-qr",children:[pt(cy,{value:I,size:144,level:"H"}),pt("span",{className:"rd-deposit-qr-badge","aria-hidden":"true",children:pt(Aa,{chainId:t,chainName:r,size:28})})]}),pt("button",{type:"button",className:"rd-mobile-address-toggle","aria-label":"Show address and copy",onClick:()=>f("address"),children:Ot("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[pt("rect",{x:"8",y:"8",width:"11",height:"11",rx:"2.25",stroke:"currentColor",strokeWidth:"1.8"}),pt("path",{d:"M16 8V6.25A2.25 2.25 0 0 0 13.75 4h-7.5A2.25 2.25 0 0 0 4 6.25v7.5A2.25 2.25 0 0 0 6.25 16H8",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]})})]}),Ot("div",{className:"rd-deposit-address",children:[pt("span",{className:"rd-deposit-address-label",children:Ot("button",{type:"button",className:"rd-address-term","aria-describedby":u,children:["Deposit address",pt("span",{id:u,className:"rd-address-tooltip",role:"tooltip",children:"This is a reusable, open deposit address. A wrong token or wrong chain will not be processed automatically, and recovery has weaker guarantees than a one-time order address and may require a manual request."})]})}),pt("button",{type:"button",className:"rd-mobile-qr-toggle","aria-label":"Show deposit QR code","aria-pressed":w==="qr",onClick:()=>f("qr"),children:pt("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:pt("path",{d:"M7.913 10.833c.69 0 1.25.56 1.25 1.25v4.163c0 .69-.56 1.25-1.25 1.25H3.75c-.69 0-1.25-.56-1.25-1.25v-4.163c0-.69.56-1.25 1.25-1.25h4.163Zm6.255 6.663h-1.665V15.83h1.665v1.666Zm3.332 0h-1.666V15.83H17.5v1.666Zm-13.334-5v3.334h3.331v-3.333H4.166Zm8.337 3.334h-1.666v-1.666h1.666v1.666Zm3.331 0h-1.666v-1.666h1.666v1.666Zm-1.666-1.666h-1.665v-1.667h1.665v1.667Zm3.332 0h-1.666v-1.667H17.5v1.667Zm-4.997-1.667h-1.666v-1.664h1.666v1.664Zm3.331 0h-1.666v-1.664h1.666v1.664ZM7.913 2.504c.69 0 1.25.56 1.25 1.25v4.163c0 .69-.56 1.25-1.25 1.25H3.75c-.69 0-1.25-.56-1.25-1.25V3.754c0-.69.56-1.25 1.25-1.25h4.163Zm8.329 0c.69 0 1.25.56 1.25 1.25v4.163c0 .69-.56 1.25-1.25 1.25h-4.163c-.69 0-1.25-.56-1.25-1.25V3.754c0-.69.56-1.25 1.25-1.25h4.163ZM4.166 4.17V7.5h3.331V4.17H4.166Zm8.329 0V7.5h3.331V4.17h-3.331Z",fill:"currentColor"})})}),pt("span",{className:"rd-address-full",title:e,children:e}),Ot("button",{type:"button",className:"rd-address-copy",onClick:g,"aria-label":`Copy deposit address ${e}`,children:[b?pt("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:pt("path",{d:"m5 12 4 4L19 6",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})}):Ot("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[pt("rect",{x:"8",y:"8",width:"11",height:"11",rx:"2",stroke:"currentColor",strokeWidth:"1.8"}),pt("path",{d:"M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),pt("span",{"aria-live":"polite",children:b?"Copied":"Copy address"})]})]})]}),!y&&p&&Ot(La,{children:[pt("button",{type:"button",className:"rd-button-primary rd-button-block",onClick:d,disabled:C||S||A&&!M,children:A&&!M?"Deposit sent":S?"Confirming...":C?D?"Switching network...":"Confirm in wallet...":`One-click deposit ${i}${D?` (switch to ${r})`:""}`}),G&&pt("div",{className:"rd-callout rd-callout-danger",children:G}),U&&Ot("p",{className:"rd-card-hint",children:["Tx: ",pt("span",{style:{fontFamily:"monospace"},children:U})]}),A&&M&&pt("div",{className:"rd-callout rd-callout-danger",children:"The deposit transaction reverted on-chain. Please check your wallet and try again."}),A&&!M&&pt("div",{className:"rd-callout rd-callout-success",children:"Deposit confirmed on-chain. Waiting for it to be swept..."})]}),y&&Ot("div",{className:"rd-callout rd-callout-muted",children:["Pay from a Solana wallet (e.g. Phantom). Scan the QR or copy the address above and send"," ",k?Ot(La,{children:["exactly"," ",Ot("strong",{children:[R," ",i]})]}):Ot(La,{children:["any amount of ",pt("strong",{children:i})]}),"."]}),(k||!y&&!p&&h)&&Ot("p",{className:"rd-card-hint",children:[k&&Ot(La,{children:["Send exactly"," ",Ot("strong",{children:[R," ",i]})," ","on ",r," to this address."]}),!y&&!p&&h&&!k&&"Enter an amount to deposit in one click."]})]})}import{useEffect as Yu,useId as fy,useRef as wl,useState as Ku}from"react";import{jsx as Bo,jsxs as ui}from"react/jsx-runtime";function fi({value:e,options:t,onChange:r,disabled:n,ariaLabel:o,id:i}){let a=fy(),s=i??a,l=`${s}-listbox`,[d,p]=Ku(!1),h=t.findIndex(S=>S.value===e),[b,m]=Ku(h>=0?h:0),w=wl(null),f=wl(null),u=wl([]),c=!!n||t.length===0,y=h>=0?t[h]:void 0;Yu(()=>{if(!d)return;function S(A){w.current&&!w.current.contains(A.target)&&p(!1)}return document.addEventListener("pointerdown",S),()=>document.removeEventListener("pointerdown",S)},[d]),Yu(()=>{d&&u.current[b]?.scrollIntoView?.({block:"nearest"})},[d,b]);function g(){c||(m(h>=0?h:0),p(!0))}function v(S){p(!1),S&&f.current?.focus()}function k(S){let A=t[S];A&&(r(A.value),v(!0))}function R(){c||(d?v(!1):g())}function I(S){if(!c)switch(S.key){case"ArrowDown":S.preventDefault(),d?m(A=>Math.min(A+1,t.length-1)):g();break;case"ArrowUp":S.preventDefault(),d?m(A=>Math.max(A-1,0)):g();break;case"Enter":case" ":S.preventDefault(),d?k(b):g();break;case"Escape":d&&(S.preventDefault(),v(!0));break;case"Tab":d&&p(!1);break;default:break}}let C=d&&t[b]?`${s}-option-${b}`:void 0;return ui("div",{className:"rd-dropdown",ref:w,children:[ui("button",{type:"button",id:s,ref:f,className:"rd-dropdown-trigger","aria-haspopup":"listbox","aria-expanded":d,"aria-controls":l,"aria-activedescendant":C,"aria-label":o,disabled:c,onClick:R,onKeyDown:I,children:[ui("span",{className:"rd-dropdown-trigger-content",children:[y?.icon,ui("span",{className:"rd-dropdown-trigger-label",children:[y?.label??"",y?.subLabel&&Bo("small",{className:"rd-dropdown-trigger-sub",children:y.subLabel})]})]}),Bo("span",{className:"rd-dropdown-chevron","aria-hidden":"true",children:Bo(Cr,{size:16})})]}),d&&Bo("ul",{className:"rd-dropdown-listbox",role:"listbox",id:l,"aria-label":o,tabIndex:-1,"data-vaul-no-drag":!0,children:t.map((S,A)=>{let D=S.value===e,U=A===b;return ui("li",{id:`${s}-option-${A}`,role:"option","aria-selected":D,ref:M=>{u.current[A]=M},className:["rd-dropdown-option",U?"rd-dropdown-option-active":"",D?"rd-dropdown-option-selected":""].filter(Boolean).join(" "),onPointerEnter:()=>m(A),onClick:M=>{M.preventDefault(),k(A)},children:[S.icon,Bo("span",{className:"rd-dropdown-option-label",children:S.label}),D&&Bo("span",{className:"rd-dropdown-option-check","aria-hidden":"true",children:"\u2713"})]},S.value)})})]})}import{Fragment as yl,jsx as Fn,jsxs as Br}from"react/jsx-runtime";function my(e,t){if(!e)return"--";try{return Ft(BigInt(e),t)}catch{return"--"}}function Zu({quote:e,isLoading:t,error:r,humanAmount:n,originSymbol:o,destination:i}){return Br("div",{className:"rd-stack","data-rd-quote-preview":"",children:[t&&Br("div",{className:"rd-quote-strip","data-testid":"rd-quote-skeleton",children:[Fn("span",{className:"rd-skeleton rd-skeleton-line",style:{width:"30%"},"aria-hidden":"true"}),Fn("span",{className:"rd-quote-strip-arrow","aria-hidden":"true",children:"\u2192"}),Fn("span",{className:"rd-skeleton rd-skeleton-line",style:{width:"30%"},"aria-hidden":"true"})]}),!t&&r&&Br("div",{className:"rd-callout rd-callout-danger",children:["Couldn't fetch a quote: ",r.message]}),!t&&!r&&e&&o&&Br(yl,{children:[Br("div",{className:"rd-quote-strip",children:[Br("span",{className:"rd-quote-strip-side",children:[Br("b",{children:[n," ",o]}),Fn("small",{children:"You send"})]}),Fn("span",{className:"rd-quote-strip-arrow","aria-hidden":"true",children:"\u2192"}),Br("span",{className:"rd-quote-strip-side rd-quote-strip-end",children:[Br("b",{children:["~",my(e.expectedCrossd,i.decimals)," ",i.symbol]}),Fn("small",{children:"You receive"})]})]}),e.belowMin&&Fn("div",{className:"rd-callout rd-callout-warning",children:"This amount is below the minimum the bridge will accept. Increase the amount to continue."}),(e.assumesParity||e.feeUsd)&&Br("p",{className:"rd-quote-strip-hint",children:[e.feeUsd&&Br(yl,{children:["Bridge fee: $",e.feeUsd,", already deducted from the amount above. You also pay your own network fee to send the deposit."," "]}),e.assumesParity&&Br(yl,{children:["Assumes 1:1 parity between bridged USDT and ",i.symbol,"; the final amount may differ slightly."]})]})]}),!t&&!r&&!e&&Fn("p",{className:"rd-muted",children:"Enter an amount to see a quote."})]})}import{useMemo as $u}from"react";var Xu={1:{base:"https://etherscan.io",name:"Etherscan",kind:"evm"},56:{base:"https://bscscan.com",name:"BscScan",kind:"evm"},137:{base:"https://polygonscan.com",name:"PolygonScan",kind:"evm"},8453:{base:"https://basescan.org",name:"BaseScan",kind:"evm"},42161:{base:"https://arbiscan.io",name:"Arbiscan",kind:"evm"},612055:{base:"https://scan.crosstoken.io",name:"ONEchain Scan",kind:"evm"},792703809:{base:"https://solscan.io",name:"Solscan",kind:"svm"}};function Ju(e,t){let r=Xu[e];if(!(!r||!t))return{url:`${r.base}/token/${t}`,name:r.name}}var gy={1:"Ethereum",56:"BNB Smart Chain",137:"Polygon",8453:"Base",42161:"Arbitrum",612055:"ONEchain",792703809:"Solana"};function zo(e){return gy[e]??`Chain ${e}`}function Pa(e,t){let r=Xu[e];if(!(!r||!t))return{url:`${r.base}/tx/${t}`,name:r.name}}import{jsx as zr,jsxs as Un}from"react/jsx-runtime";function hy(e){let t=new Map;for(let r of e.origins)t.has(r.chainId)||t.set(r.chainId,r.chainName);return Array.from(t,([r,n])=>({chainId:r,chainName:n}))}function ef(e,t){return t===void 0?[]:e.origins.filter(r=>r.chainId===t)}function by(e,t){let r=Ft(e,t),n=r.indexOf(".");return n===-1?r:`${r.slice(0,n)}.${r.slice(n+1,n+1+4)}`.replace(/\.?0+$/,"")||r.slice(0,n)}function tf({catalog:e,origin:t,onChangeOrigin:r,amount:n,onChangeAmount:o,showAmountInput:i=!0,balance:a,balanceLoading:s,insufficientBalance:l,onMax:d,disabled:p}){let h=$u(()=>hy(e),[e]),b=$u(()=>ef(e,t?.chainId),[e,t?.chainId]);function m(c){let y=Number(c),g=ef(e,y)[0];g&&r(g)}function w(c){let y=b.find(g=>g.token.address.toLowerCase()===c.toLowerCase());y&&r(y)}let f=a?`${by(a.value,a.decimals)} ${a.symbol}`:void 0,u=l?`Amount exceeds your balance${f?` (${f})`:""}`:void 0;return Un("section",{className:"rd-stack","data-rd-source-form":"",children:[Un("div",{className:"rd-field",children:[Un("div",{className:"rd-field-label-row",children:[zr("span",{className:"rd-field-label",children:"From"}),t&&(()=>{let c=Ju(t.chainId,t.token.address);return c?Un("a",{className:"rd-token-explorer-link",href:c.url,target:"_blank",rel:"noopener noreferrer",title:`View ${t.token.symbol} on ${c.name}`,children:[c.name," \u2197"]}):null})()]}),Un("div",{className:"rd-field-row",children:[zr(fi,{ariaLabel:"Origin chain",value:t?String(t.chainId):"",onChange:m,disabled:p,options:h.map(c=>({value:String(c.chainId),label:c.chainName,subLabel:"Network",icon:zr(Aa,{chainId:c.chainId,chainName:c.chainName,size:22})}))}),zr(fi,{ariaLabel:"Token",value:t?.token.address??"",onChange:w,disabled:p||b.length===0,options:b.map(c=>({value:c.token.address,label:c.token.symbol,subLabel:`${c.token.decimals} decimals`,icon:zr(io,{symbol:c.token.symbol,logoUrl:c.token.logoUrl,size:22})}))})]})]}),i&&Un("label",{className:"rd-field",children:[zr("span",{className:"rd-field-label",children:"Amount (optional)"}),Un("div",{className:"rd-amount-input","data-rd-invalid":u?"":void 0,children:[zr("input",{type:"text",inputMode:"decimal",placeholder:"0.0",value:n,onChange:c=>{let y=c.target.value;if(y===""){o(y);return}y.startsWith(".")&&(y=`0${y}`),/^\d*\.?\d{0,4}$/.test(y)&&(y=y.replace(/^0+(?=\d)/,""),!((y.split(".")[0]??"").length>12)&&o(y))},disabled:p||!t,"data-vaul-no-drag":!0}),t&&zr("span",{className:"rd-amount-input-suffix",children:t.token.symbol}),d&&!p&&zr("button",{type:"button",className:"rd-amount-input-max",onClick:d,disabled:p||!t,children:"Max"})]}),(f||s)&&Un("span",{className:"rd-amount-meta",children:[zr("span",{}),zr("span",{children:s?"Balance: \u2026":f?`Balance: ${f}`:""})]}),u&&zr("span",{className:"rd-callout rd-callout-danger",children:u})]})]})}import{Fragment as xl,jsx as Ke,jsxs as ur}from"react/jsx-runtime";function rf({catalog:e,origin:t,onChangeOrigin:r,amount:n,onChangeAmount:o,showAmountInput:i,minNotice:a,amountHint:s,onMax:l,recipient:d,onChangeRecipient:p,showRecipientInput:h,recipientValid:b,balance:m,balanceLoading:w,insufficientBalance:f,targetOptions:u,selectedTarget:c,onChangeTarget:y,showTargetSelector:g,quote:v,quoteLoading:k,quoteError:R,depositAddress:I,depositAddressLoading:C,depositAddressError:S,arrivalStatus:A,amountSmallestUnits:D,depositState:U,onDeposit:M,canDeposit:G,oneClickEnabled:E,locked:O,onRequestConnect:ie}){let Y=u.length>1&&g,{phase:P,isSubmitting:pe,isConfirming:$,isConfirmed:Q,needsSwitch:B,reverted:J,error:V}=U,le=c?.symbol??e.destination.symbol;return ur(xl,{children:[a&&Ke(Gu,{minNotice:a,arrivalStatus:A}),O?ur(xl,{children:[ur("section",{className:"rd-locked-card","data-rd-locked":"",children:[Ke("span",{className:"rd-locked-glyph","aria-hidden":"true",children:ur("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none",focusable:"false",children:[Ke("path",{d:"M6 10.5V8a6 6 0 1 1 12 0v2.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),Ke("rect",{x:"4",y:"10.5",width:"16",height:"10.5",rx:"2.5",fill:"currentColor"})]})}),Ke("span",{className:"rd-locked-text",children:"Connect to get your personal deposit address"}),h&&Ke("span",{className:"rd-card-hint",children:"Or enter a recipient address to get one without connecting."})]}),ie&&Ke("button",{type:"button",className:"rd-button-primary rd-button-block","data-track":"connect",onClick:ie,children:"Connect Wallet"})]}):I?Ke(qu,{depositAddress:I,originChainId:t.chainId,originChainName:t.chainName,originCurrency:t.token.address,amount:D,tokenSymbol:t.token.symbol,tokenDecimals:t.token.decimals,depositState:U,onDeposit:M,canDeposit:G,oneClickEnabled:E}):C?ur(xl,{children:[Ke(Da,{}),E&&D&&Ke("span",{className:"rd-skeleton rd-skeleton-cta","aria-hidden":"true"}),Ke("p",{className:"rd-sr-only",role:"status",children:"Preparing your deposit address..."})]}):S?ur("div",{className:"rd-callout rd-callout-danger",children:["Couldn't fetch a deposit address: ",S.message]}):null,Ke(tf,{catalog:e,origin:t,onChangeOrigin:r,amount:n,onChangeAmount:o,showAmountInput:i,balance:m,balanceLoading:w,insufficientBalance:f,onMax:l}),ur("div",{className:"rd-field","data-rd-delivery":"",children:[Ke("span",{className:"rd-field-label",children:"Deliver as"}),Y?Ke(fi,{ariaLabel:"Delivery token",value:c?.symbol??"",onChange:y,options:u.map(he=>({value:he.symbol,label:he.symbol,subLabel:"on ONEchain",icon:Ke(io,{symbol:he.symbol,size:22})}))}):ur("div",{className:"rd-static-target",children:[Ke(io,{symbol:le,size:22}),Ke("span",{children:le})]}),h&&ur("label",{className:"rd-delivery-recipient",children:[Ke("input",{type:"text",placeholder:"0x...","aria-label":"ONEchain recipient address",value:d,onChange:he=>p(he.target.value),"data-vaul-no-drag":!0}),Ke("span",{className:"rd-card-hint",children:"Defaults to your connected wallet. It can differ from the address you deposit from, and is also used as the refund address if anything goes wrong."}),!b&&Ke("span",{className:"rd-callout rd-callout-danger",children:"Not a valid address"})]})]}),c?.external&&ur("div",{className:"rd-callout rd-callout-muted",children:["Delivered as ",c.symbol," via an external adapter."]}),s&&Ke("div",{className:"rd-callout rd-callout-warning","data-rd-amount-hint":"",children:s}),n.trim()&&Ke(Zu,{quote:v,isLoading:k,error:R,humanAmount:n,originSymbol:t.token.symbol,destination:e.destination}),a&&Ke(_u,{minNotice:a,onlySend:{symbol:t.token.symbol,chainName:t.chainName},showWalletCreditNote:!h&&b}),E&&P!=="idle"&&!G&&ur("div",{className:"rd-card",children:[pe&&ur("p",{className:"rd-muted",children:[Ke("span",{className:"rd-spinner"})," ",B?"Switching network...":"Confirm in wallet..."]}),$&&ur("p",{className:"rd-muted",children:[Ke("span",{className:"rd-spinner"})," Confirming..."]}),U.txHash&&ur("p",{className:"rd-card-hint",children:["Tx: ",Ke("span",{style:{fontFamily:"monospace"},children:U.txHash})]}),Q&&J&&Ke("div",{className:"rd-callout rd-callout-danger",children:"The deposit transaction reverted on-chain. Please check your wallet and try again."}),Q&&!J&&Ke("div",{className:"rd-callout rd-callout-success",children:"Deposit confirmed on-chain. Waiting for it to be swept..."}),V&&Ke("div",{className:"rd-callout rd-callout-danger",children:V})]})]})}import{useEffect as wy,useId as yy,useRef as nf,useState as vl}from"react";import{createPortal as xy}from"react-dom";import{Fragment as Rl,jsx as Ue,jsxs as It}from"react/jsx-runtime";var mi=56;function af(e){return e==="FAILED"||e==="REFUNDED"||e==="RELAY_REFUNDED"||e==="EXPIRED"}function vy(e){let t=e.trim().toUpperCase(),n={AWAITING_DEPOSIT:"Waiting for deposit",BSC_FUNDED:"Deposit confirmed",RELAY_PENDING:"Bridging",RELAY_SUBMITTED:"Bridging",BRIDGING:"Bridging",CROSS_PENDING:"Delivering",FINALIZING:"Delivering",EXECUTING:"Delivering",COMPLETED:"Completed",RELAY_REFUNDED:"Refunded",REFUNDED:"Refunded",EXPIRED:"Expired",FAILED:"Failed"}[t];if(n)return n;let o=t.toLowerCase().replace(/_/g," ").trim();return o?`${o[0].toUpperCase()}${o.slice(1)}`:"Processing"}function ky(e){return e==="COMPLETED"?"rd-status-pill rd-status-pill-success":af(e)?"rd-status-pill rd-status-pill-failure":"rd-status-pill"}function Oa(e,t){if(e){if(t===void 0)return e;try{return Ft(BigInt(e),t)}catch{return e}}}function Ry(e,t=4){let r=e.indexOf(".");if(r<0)return e;let n=e.slice(0,r+1+t).replace(/0+$/,"").replace(/\.$/,"");return n===""?"0":n}function Sy(e){let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString()}function of(e){return e.length>14?`${e.slice(0,8)}...${e.slice(-4)}`:e}function kl({amount:e,symbol:t,className:r}){let n=e?`${e}${t?` ${t}`:""}`:"",o=yy(),i=nf(null),a=nf(null),[s,l]=vl(!1),[d,p]=vl({top:-9999,left:-9999,visibility:"hidden"});return wy(()=>{if(!s)return;let h=()=>{let b=i.current,m=a.current;if(!b||!m)return;let w=b.getBoundingClientRect(),f=m.getBoundingClientRect(),u=12,c=8,y=Math.max(u,window.innerWidth-f.width-u),g=Math.min(Math.max(w.left+w.width/2-f.width/2,u),y),v=w.top-f.height-c,k=v>=u?v:w.bottom+c,R=Math.max(u,window.innerHeight-f.height-u),I=Math.min(Math.max(k,u),R),C=window.getComputedStyle(b);p({top:I,left:g,visibility:"visible",backgroundColor:C.getPropertyValue("--rd-text").trim()||"#eef0f6",borderColor:C.getPropertyValue("--rd-border").trim()||"#2a2d3a",boxShadow:C.getPropertyValue("--rd-shadow").trim()||"0 8px 24px rgba(0, 0, 0, 0.35)",color:C.getPropertyValue("--rd-surface").trim()||"#171923"})};return h(),window.addEventListener("resize",h),window.addEventListener("scroll",h,!0),()=>{window.removeEventListener("resize",h),window.removeEventListener("scroll",h,!0)}},[s]),e?It(Rl,{children:[It("span",{ref:i,className:r,"aria-label":n,"aria-describedby":s?o:void 0,"data-full-value":n,onMouseEnter:()=>{p({top:-9999,left:-9999,visibility:"hidden"}),l(!0)},onMouseLeave:()=>l(!1),children:[Ry(e),t?` ${t}`:""]}),s&&typeof document<"u"&&xy(Ue("span",{ref:a,id:o,role:"tooltip","data-rd-history-floating-tooltip":"",style:d,children:n}),document.body)]}):Ue("span",{className:r,children:"-"})}function Cy(e){let t=(e.deposits??[]).filter(n=>n.originChainId),r=new Set(t.map(n=>`${n.originChainId}:${(n.originCurrency??"").toLowerCase()}`));if(t.length>0){let n=t[0];return{chainId:n.originChainId,currency:n.originCurrency??"",routes:r.size}}return{chainId:e.originChainId,currency:e.originCurrency,routes:1}}function Ny(e,t){if(!e)return;let r,n;try{r=BigInt(e),n=t.map(s=>BigInt(s.amount))}catch{return}let o=n.reduce((s,l)=>s+l,0n);if(o<=0n)return;let i=n.map(s=>r*s/o),a=i.reduce((s,l)=>s+l,0n);return i[i.length-1]+=r-a,i}function Ba({label:e,chainId:t,txHash:r,amount:n,shared:o,missingLabel:i="Pending"}){let a=r?Pa(t,r):void 0;return It("div",{className:"rd-history-step",children:[Ue("span",{className:`rd-history-step-dot${r?" rd-history-step-dot-done":""}`}),Ue("span",{className:"rd-history-step-label",children:e}),Ue("span",{className:"rd-history-step-chain",children:zo(t)}),n&&Ue(kl,{amount:n,className:"rd-history-step-amount"}),It("span",{className:"rd-history-step-tx",children:[a?Ue("a",{href:a.url,target:"_blank",rel:"noreferrer",title:r,"aria-label":`${e} transaction on ${zo(t)}`,children:of(r)}):r?Ue("span",{title:r,children:of(r)}):Ue("span",{className:"rd-muted",children:i}),o&&r&&Ue("span",{className:"rd-history-step-shared",title:"Shared by deposits processed together",children:"combined transfer"})]})]})}function Ty(e){let t=e.deposits??[],r=e.amountOut||e.expectedOut||void 0;if(t.length>=2){let a=Ny(r,t);if(a)return t.map((s,l)=>({key:`${e.orderId}:${s.txHash}:${s.blockNumber}`,order:e,chainId:s.originChainId??mi,currency:s.originCurrency??"",routes:1,sentRaw:s.amount,receivedRaw:a[l].toString(),receivedIsEstimate:!0,deposit:s,sharedLegs:!0}))}let{chainId:n,currency:o,routes:i}=Cy(e);return[{key:e.orderId,order:e,chainId:n,currency:o,routes:i,sentRaw:e.amountIn,receivedRaw:r,receivedIsEstimate:!e.amountOut&&!!e.expectedOut,sharedLegs:!1}]}function za({orders:e,isLoading:t,error:r,catalog:n,showTitle:o=!0}){let[i,a]=vl({}),s=l=>a(d=>({...d,[l]:!d[l]}));return It("section",{className:o?"rd-card":"rd-stack","data-rd-orders-list":"",children:[o&&Ue("div",{className:"rd-card-header",children:Ue("h2",{className:"rd-card-title",children:"Transfer history"})}),t&&e.length===0&&It("p",{className:"rd-muted",role:"status","aria-live":"polite",children:[Ue("span",{className:"rd-spinner"})," Loading orders..."]}),r&&It("div",{className:"rd-callout rd-callout-danger",children:["Couldn't load your orders: ",r.message]}),!t&&!r&&e.length===0&&Ue("p",{className:"rd-muted",children:"No transfers yet."}),e.length>0&&Ue("div",{className:"rd-history-table","data-vaul-no-drag":!0,children:e.flatMap(Ty).map(l=>{let{order:d}=l,p=n?.origins.find(S=>S.chainId===l.chainId&&S.token.address.toLowerCase()===l.currency.toLowerCase()),h=(d.target?n?.targets.find(S=>S.symbol.toLowerCase()===d.target.toLowerCase()):void 0)??n?.targets.find(S=>S.isDefault),b=h?.symbol??n?.destination.symbol??"",m=h?.decimals??n?.destination.decimals,w=n?.origins.find(S=>S.chainId===mi),f=Oa(l.sentRaw,w?.token.decimals),u=w?.token.symbol??"USDT",c=Oa(l.receivedRaw,m),y=d.deposits??[],g=!!i[l.key],v=Sy(d.completedAt??d.createdAt),k=vy(d.status),I=d.status==="COMPLETED"||af(d.status)?"Details unavailable":"Pending",C=l.receivedIsEstimate?"Estimated on ONEchain":"Received on ONEchain";return It("div",{className:"rd-history-group",children:[It("button",{type:"button",className:"rd-history-row-button",onClick:()=>s(l.key),"aria-expanded":g,"aria-label":`Toggle transfer details: ${k}, ${v}`,children:[It("span",{className:"rd-history-card-top",children:[Ue("span",{className:"rd-history-asset",children:l.routes>1?It(Rl,{children:["Multiple deposits ",It("span",{className:"rd-muted",children:["\xB7 ",l.routes," chains"]})]}):It(Rl,{children:[p?.token.symbol??b," ",It("span",{className:"rd-muted",children:["from ",zo(l.chainId)]})]})}),Ue("span",{className:ky(d.status),title:d.status,children:k})]}),It("span",{className:"rd-history-card-amounts",children:[It("span",{className:"rd-history-amount-block",children:[Ue("span",{className:"rd-history-amount-label",children:"Processing address"}),Ue(kl,{amount:f,symbol:u,className:"rd-history-num"})]}),Ue("span",{className:"rd-history-card-arrow","aria-hidden":"true",children:"\u2192"}),It("span",{className:"rd-history-amount-block",children:[Ue("span",{className:"rd-history-amount-label",children:C}),Ue(kl,{amount:c,symbol:b,className:`rd-history-num rd-history-received${l.receivedIsEstimate?" rd-history-received-estimate":""}`})]})]}),It("span",{className:"rd-history-card-foot",children:[It("span",{className:"rd-history-date",children:[d.completedAt?"Completed":"Started"," \xB7 ",v]}),Ue("span",{className:"rd-history-chevron","aria-hidden":"true",children:Ue(Cr,{size:16})})]})]}),g&&It("div",{className:"rd-history-detail",children:[l.deposit?Ue(Ba,{label:"Deposit confirmed",chainId:l.deposit.originChainId??mi,txHash:l.deposit.originTxHash||l.deposit.txHash,amount:Oa(l.deposit.amount,w?.token.decimals)}):y.length>0?y.map(S=>Ue(Ba,{label:"Deposit confirmed",chainId:S.originChainId??mi,txHash:S.originTxHash||S.txHash,amount:Oa(S.amount,w?.token.decimals)},`${S.txHash}-${S.blockNumber}`)):It("div",{className:"rd-history-step",children:[Ue("span",{className:"rd-history-step-dot"}),Ue("span",{className:"rd-history-step-label",children:"Deposit confirmed"}),Ue("span",{className:"rd-muted",children:"Details unavailable"})]}),Ue(Ba,{label:"Bridge",chainId:mi,txHash:d.bscBridgeTx,shared:l.sharedLegs,missingLabel:I}),Ue(Ba,{label:"ONEchain delivery",chainId:n?.destination.chainId??612055,txHash:d.deliveryTxHash,shared:l.sharedLegs,missingLabel:I})]})]},l.key)})})]})}import{useEffect as wf,useState as Tl}from"react";import{useCallback as hi,useEffect as Ey,useMemo as pf,useRef as uf,useState as gi}from"react";var en=class extends Error{constructor(t,r,n){super(r),this.name="RelayApiError",this.status=t,this.body=n}};function Ut(e){let t=e.baseUrl.replace(/\/+$/,"");async function r(n,o){let i={...o?.headers};o?.body!=null&&(i["Content-Type"]="application/json");let a;try{a=await fetch(`${t}${n}`,{...o,headers:i})}catch(l){throw new en(0,`network error calling ${n}: ${l.message}`)}let s=await a.text();if(!a.ok){let l=`request to ${n} failed with status ${a.status}`,d;try{d=JSON.parse(s);let p=d;p?.error&&(l=p.error)}catch{d=s||void 0}throw new en(a.status,l,d)}try{return JSON.parse(s)}catch{throw new en(a.status,`expected a JSON response from ${n} but got ${s?"a non-JSON body":"an empty body"}`,s||void 0)}}return{getConfig(){return r("/v1/config").then(n=>({...n,targets:n.targets??[]}))},getQuote(n){return r("/v1/quote",{method:"POST",body:JSON.stringify(n)})},getDepositAddress(n,o){let i=new URLSearchParams({user:n.user,originChainId:String(n.originChainId),originCurrency:n.originCurrency});return o&&i.set("target",o),r(`/v1/deposit-address?${i.toString()}`)},getOrder(n){return r(`/v1/orders/${encodeURIComponent(n)}`)},listOrders(n){let o=new URLSearchParams({user:n});return r(`/v1/orders?${o.toString()}`).then(i=>i.orders??[])},ordersStreamUrl(n){return`${t}/v1/orders/stream?user=${encodeURIComponent(n)}`},getRecovery(n){let o=new URLSearchParams({user:n.user});return n.target&&o.set("target",n.target),r(`/v1/recovery?${o.toString()}`)}}}var sf=[{type:"function",name:"deploy",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"version",type:"uint256"}],outputs:[{name:"",type:"address"}]}],Sl=[{type:"function",name:"execute",stateMutability:"nonpayable",inputs:[],outputs:[]},{type:"function",name:"sweepToUser",stateMutability:"nonpayable",inputs:[{name:"tokenAddr",type:"address"}],outputs:[]}],Cl=[{type:"function",name:"computeAddress",stateMutability:"view",inputs:[{name:"recipient",type:"address"},{name:"version",type:"uint256"}],outputs:[{name:"",type:"address"}]}];var Fo=["0x486BEEc35A9a9915213Ea02AD3709738335F7702","0x3438735303911aBe113AdF14b18eE730cC24893b","0xA3B548Ab23043e6B24A087515fe1306379683533","0x44317d07378390543d99Ee76374E86C1Ef6cF832"];function Fa(e,t){return!e||!t?!1:e.toLowerCase()===t.toLowerCase()}function Iy(e,t){return t.some(r=>Fa(r,e))}function Ua(e){if(!e||e.length===0)return Fo;let t=new Set,r=[];for(let n of e){if(typeof n!="string"||!dt(n))continue;let o=n.toLowerCase();t.has(o)||(t.add(o),r.push(n))}return r.length>0?r:Fo}async function lf(e,t,{factory:r,forwarder:n,recipient:o,version:i,trusted:a=Fo}){if(!r||!n||!o||i===void 0)return{ok:!1,reason:"address verification is missing inputs (factory/forwarder/recipient/version)"};if(!Iy(r,a))return{ok:!1,reason:`factory ${r} is not a recognized deposit-address factory -- refusing to sign against it`};if(!e)return{ok:!1,reason:"no chain connection available to verify the forwarder address"};let s;try{s=await e({chainId:t,address:r,abi:Cl,functionName:"computeAddress",args:[o,BigInt(i)]})}catch(l){return{ok:!1,reason:`could not verify the forwarder address on-chain: ${l instanceof Error?l.message:String(l)}`}}return Fa(s,n)?{ok:!0}:{ok:!1,reason:`forwarder address mismatch: the API returned ${n}, but factory ${r} derives ${s} for this account -- refusing to sign`}}async function df(e,t,{forwarder:r,recipient:n,version:o,trusted:i=Fo}){if(!r||!n||o===void 0)return{ok:!1,reason:"address verification is missing inputs (forwarder/recipient/version)"};if(!e)return{ok:!1,reason:"no BSC chain connection available to verify the deposit forwarder -- add BNB Smart Chain (chain 56) to your wagmi config"};let a=await Promise.all(i.map(async s=>{try{return await e({chainId:t,address:s,abi:Cl,functionName:"computeAddress",args:[n,BigInt(o)]})}catch{return}}));return a.some(s=>Fa(s,r))?{ok:!0}:a.every(s=>s===void 0)?{ok:!1,reason:"could not reach any deposit-address factory on BSC to verify the forwarder"}:{ok:!1,reason:`forwarder address mismatch: ${r} is not the address any known factory derives for this account -- refusing to deposit`}}function cf(e,t){return Fa(e,t)}var jn=56,Nl={step:"idle"};function My(e){return e.tokens?.find(t=>t.recoverable)?.address??e.token}function bi(e={}){let t=uf(e);t.current=e;let r=e.wallet,n=r?.walletChainId,o=e.recipient,i=o&&dt(o)?o:void 0,[a,s]=gi({}),l=hi((b,m)=>{s(w=>({...w,[b.toLowerCase()]:m}))},[]),d=hi(b=>b?a[b.toLowerCase()]??Nl:Nl,[a]),p=pf(()=>Object.values(a).some(b=>b.step==="switching"||b.step==="deploying"||b.step==="recovering"),[a]);return{recover:hi(async(b,m,w)=>{if(!i||!b?.forwarder)return;let f=b.forwarder;l(f,{step:"switching"});try{if(n!==jn){if(!r?.switchChain)throw new Error("wallet cannot switch chains");await r.switchChain(jn)}if(!r?.writeContract||!r?.readContract||!r?.waitForReceipt)throw new Error("wallet is missing contract capabilities required for recovery");let u=await lf(r.readContract,jn,{factory:b.factory,forwarder:b.forwarder,recipient:i,version:b.version,trusted:t.current.trustedFactories});if(!u.ok)throw new Error(`address verification failed: ${u.reason}`);let c;if(!b.isDeployed){if(l(f,{step:"deploying"}),c=await r.writeContract({address:b.factory,abi:sf,functionName:"deploy",args:[i,BigInt(b.version)],chainId:jn}),l(f,{step:"deploying",deployTxHash:c}),(await r.waitForReceipt({chainId:jn,hash:c})).status==="reverted")throw new Error(`forwarder deploy reverted on-chain (tx ${c})`);t.current.onChanged?.()}l(f,{step:"recovering",deployTxHash:c});let y=m==="execute"?await r.writeContract({address:b.forwarder,abi:Sl,functionName:"execute",args:[],chainId:jn}):await r.writeContract({address:b.forwarder,abi:Sl,functionName:"sweepToUser",args:[w??My(b)],chainId:jn});if(l(f,{step:"recovering",deployTxHash:c,actionTxHash:y}),(await r.waitForReceipt({chainId:jn,hash:y})).status==="reverted")throw new Error(`recovery transaction reverted on-chain (tx ${y})`);l(f,{step:"done",deployTxHash:c,actionTxHash:y}),t.current.onRecoverySuccess?.({action:m,forwarder:b.forwarder,actionTxHash:y,...c?{deployTxHash:c}:{}}),t.current.onChanged?.()}catch(u){let c=u instanceof Error?u:new Error(String(u));s(y=>{let g=f.toLowerCase();return{...y,[g]:{...y[g]??Nl,step:"error",error:c.message}}}),t.current.onError?.(c)}},[i,n,r,l]),stateFor:d,busy:p}}function ff(e={}){let t=uf(e);t.current=e;let r=pf(()=>{if(e.client)return e.client;if(!e.apiBaseUrl)throw new Error("useRecovery: either `client` or `apiBaseUrl` must be provided");return Ut({baseUrl:e.apiBaseUrl})},[e.client,e.apiBaseUrl]),n=e.recipient,o=n&&dt(n)?n:void 0,[i,a]=gi(),[s,l]=gi(!1),[d,p]=gi(),[h,b]=gi(0),m=e.target,w=e.enabled??!0,f=e.refetchInterval;Ey(()=>{if(!o||!w){a(void 0),p(void 0),l(!1);return}let v=!1,k=!1,R=!0;async function I(){if(!(v||k)){k=!0,R&&l(!0);try{let S=await r.getRecovery({user:o,target:m});if(v)return;a(S),p(void 0)}catch(S){if(v)return;let A=S instanceof Error?S:new Error(String(S));p(A),t.current.onError?.(A),A instanceof en&&A.status===401&&t.current.onUnauthorized?.()}finally{k=!1,!v&&R&&l(!1),R=!1}}}I();let C=typeof f=="number"&&Number.isFinite(f)&&f>0?setInterval(()=>{I()},f):void 0;return()=>{v=!0,C&&clearInterval(C)}},[r,o,h,m,w,f]);let u=hi(()=>b(v=>v+1),[]),c=bi({recipient:e.recipient,wallet:e.wallet,trustedFactories:e.trustedFactories,onError:e.onError,onRecoverySuccess:e.onRecoverySuccess,onChanged:u}),y=hi(async(v,k)=>{i&&await c.recover(i,v,k)},[c,i]),g=c.stateFor(i?.forwarder);return{info:i,loading:s,error:d,refresh:u,recover:y,recoveryState:g}}var Ay="BSC_FUNDED";function mf(e){if(!e)return 0n;try{let t=BigInt(e);return t>0n?t:0n}catch{return 0n}}function Ly(e,t){return e.target||t}function Uo(e,t=[]){let r=e.find(o=>o.isDefault)?.symbol,n=new Map;for(let o of e){if(!o.info?.forwarder)continue;let i=o.info.forwarder.toLowerCase(),a=n.get(i);if(a){a.targets.push(o.symbol);continue}n.set(i,{forwarder:o.info.forwarder,targets:[o.symbol],info:o.info,deposits:[],depositsTotal:0n})}for(let o of n.values()){let i=new Set(o.targets);for(let a of t){if(a.status!==Ay)continue;let s=Ly(a,r);if(!(!s||!i.has(s)))for(let l of a.deposits??[])o.deposits.push({amount:l.amount,originChainId:l.originChainId,originTxHash:l.originTxHash,txHash:l.txHash,blockNumber:l.blockNumber}),o.depositsTotal+=mf(l.amount)}o.deposits.sort((a,s)=>a.blockNumber-s.blockNumber)}return[...n.values()]}function gf(e){return e.filter(t=>(t.info.tokens??[]).some(r=>r.recoverable)?!0:mf(t.info.balance)>0n&&t.info.suggestedAction!=="none")}function ja(e){return e.reduce((t,r)=>t+(r.info.tokens??[]).filter(n=>n.recoverable).length,0)}import{Fragment as Ga,jsx as me,jsxs as ot}from"react/jsx-runtime";var Dy=56;function Py(e){return{client:e.client,apiBaseUrl:e.apiBaseUrl,recipient:e.recipient,target:e.target,enabled:e.targets===void 0,wallet:e.wallet,trustedFactories:e.trustedFactories,onUnauthorized:e.onUnauthorized,onError:e.onError}}var Oy="This balance may already be processing. Recover only if it remains stuck.",Wa="USDT",hf="primary";function By(e){return`${e} more recoverable under other delivery tokens -- switch the delivery token above to recover ${e===1?"it":"them"}.`}function zy(e){let t=e.toLowerCase();return t.includes("insufficient funds")||t.includes("insufficientfunds")||t.includes("exceeds the balance of the account")||t.includes("insufficient balance for transfer")?"Not enough BNB for the network fee. Add BNB to your connected wallet and try again.":t.includes("user rejected")||t.includes("userrejected")||t.includes("user denied")||t.includes("user cancelled")||t.includes("user canceled")||t.includes("action_rejected")||t.includes("rejected by user")?"Transaction cancelled in your wallet.":"Recovery couldn't be completed. Check your wallet and try again."}function yf({message:e}){let[t,r]=Tl("idle");wf(()=>{if(t==="idle")return;let i=window.setTimeout(()=>r("idle"),1500);return()=>window.clearTimeout(i)},[t]);async function n(){if(typeof navigator>"u"||!navigator.clipboard){r("failed");return}try{await navigator.clipboard.writeText(e),r("copied")}catch{r("failed")}}let o=t==="copied"?"Copied technical details":t==="failed"?"Copy failed":"Copy technical details";return ot("details",{className:"rd-error-details",children:[me("summary",{children:"View technical details"}),ot("div",{className:"rd-error-log",children:[me("button",{type:"button",className:"rd-error-copy",onClick:()=>{n()},"aria-label":o,"aria-live":"polite",title:o,children:t==="copied"?me("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:me("path",{d:"m5 12 4 4L19 6",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})}):ot("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[me("rect",{x:"8",y:"8",width:"11",height:"11",rx:"2",stroke:"currentColor",strokeWidth:"1.8"}),me("path",{d:"M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]})}),me("code",{children:e})]})]})}function wi(e){if(!e)return 0n;try{return BigInt(e)}catch{return 0n}}function kn(e,t){try{return Ft(e,t)}catch{return e.toString()}}function bf(e){return e.length>14?`${e.slice(0,8)}...${e.slice(-4)}`:e}function Fy(e){let t=wi(e.bridgeMinWei),r=[];for(let i of e.tokens??[]){let a=wi(i.balance);if(!(a<=0n)){if(i.suggestedAction==="execute"){r.push({key:i.address,symbol:i.symbol,decimals:i.decimals,balance:a,action:{kind:"execute"}});continue}if(i.recoverable){r.push({key:i.address,symbol:i.symbol,decimals:i.decimals,balance:a,action:{kind:"sweep",tokenAddress:i.address}});continue}r.push({key:i.address,symbol:i.symbol,decimals:i.decimals,balance:a,...t>a?{shortfall:t-a,minimum:t}:{}})}}let n=wi(e.balance),o=r.some(i=>i.action?.kind==="execute");return n>0n&&e.suggestedAction==="execute"&&!o?r.unshift({key:hf,symbol:Wa,decimals:e.decimals,balance:n,action:{kind:"execute"}}):r.length===0&&n>0n&&e.suggestedAction!=="none"&&r.push({key:hf,symbol:Wa,decimals:e.decimals,balance:n,action:{kind:"sweep"}}),r}function Uy({deposit:e,decimals:t}){let r=e.originChainId??Dy,n=e.originTxHash||e.txHash,o=n?Pa(r,n):void 0;return ot("div",{className:"rd-history-step","data-testid":"recovery-deposit-row",children:[me("span",{className:"rd-history-step-dot rd-history-step-dot-done"}),me("span",{className:"rd-history-step-chain",children:zo(r)}),me("span",{className:"rd-history-step-amount",children:kn(wi(e.amount),t)}),me("span",{className:"rd-history-step-tx",children:o?me("a",{href:o.url,target:"_blank",rel:"noreferrer",title:n,children:bf(n)}):n?me("span",{title:n,children:bf(n)}):null})]})}function jy({group:e,showTargetLabel:t,busy:r,state:n,onRecover:o,actingRowKey:i,rowKeyOf:a}){let{info:s}=e,l=Fy(s),d=wi(s.balance),p=l.length===1?`${kn(l[0].balance,l[0].decimals)}`:`${l.length} assets`,h=e.deposits.length>0&&e.depositsTotal>=d,b=d>e.depositsTotal?d-e.depositsTotal:0n,m=n.step==="switching"||n.step==="deploying"||n.step==="recovering",f=l.find(c=>a(c)===i)?.action?.kind;function u(){if(n.step==="switching")return"Switching to BNB Chain\u2026";if(n.step==="deploying")return"Confirm in wallet\u2026 (1/2 \u2014 preparing your deposit address)";let c=f==="execute"?"continuing ONEchain delivery":"returning funds";return n.deployTxHash?`Confirm in wallet\u2026 (2/2 \u2014 ${c})`:`Confirm in wallet\u2026 (${c})`}return ot("div",{className:"rd-recover-group","data-testid":"forwarder-section",children:[t&&ot("p",{className:"rd-recover-group-label",children:["Delivery target \xB7 ",me("b",{children:e.targets.join(", ")})]}),ot("div",{className:"rd-recover-sum",children:[me("span",{className:"rd-recover-sum-label",children:"Funds awaiting processing"}),ot("span",{className:"rd-recover-sum-value",title:l.length===1?`${p} ${l[0].symbol}`:p,children:[p,l.length===1&&ot(Ga,{children:[" ",me("span",{className:"rd-recover-sum-unit",children:l[0].symbol})]})]})]}),e.deposits.length>0&&ot("details",{className:"rd-recover-made-of",children:[ot("summary",{className:"rd-recover-made-of-label",children:["Deposit history \xB7 ",e.deposits.length," ",e.deposits.length===1?"transfer":"transfers"]}),ot("div",{className:"rd-recover-made-of-body",children:[e.deposits.map(c=>me(Uy,{deposit:c,decimals:s.decimals},`${c.txHash}-${c.blockNumber}`)),!h&&ot("p",{className:"rd-token-row-status","data-testid":"deposits-incomplete-note",children:["These transfers explain ",kn(e.depositsTotal,s.decimals)," of"," ",kn(d,s.decimals)," ",Wa,". The remaining"," ",kn(b,s.decimals)," ",Wa," is still included when you act."]})]})]}),me("div",{className:"rd-token-list",children:l.map(c=>{let y=a(c),g=m&&i===y;return ot("div",{className:"rd-token-row","data-token-symbol":c.symbol,children:[me(io,{symbol:c.symbol,size:26}),ot("div",{className:"rd-token-row-info",children:[l.length>1&&ot("span",{className:"rd-token-row-amount",children:[kn(c.balance,c.decimals)," ",me("span",{className:"rd-token-row-symbol",children:c.symbol})]}),g?me("span",{className:"rd-token-row-step",role:"status","aria-live":"polite",children:u()}):c.shortfall!==void 0&&c.minimum!==void 0?ot("span",{className:"rd-token-row-warn",children:["Needs ",ot("b",{children:[kn(c.shortfall,c.decimals)," ",c.symbol]})," more to reach the"," ",kn(c.minimum,c.decimals)," ",c.symbol," minimum. Add it through"," ",me("b",{children:"Deposit to CROSS"})," and both amounts will process together."]}):c.action?me("span",{className:"rd-token-row-status",children:c.action.kind==="execute"?"Ready to continue delivery to ONEchain":"Ready to return to your BNB Chain wallet"}):me("span",{className:"rd-token-row-status",children:"Waiting for processing"})]}),g?me("span",{className:"rd-spinner rd-token-row-spinner"}):c.action&&me("button",{type:"button",className:"rd-button-primary rd-token-row-action",onClick:()=>o(c),disabled:r,children:c.action.kind==="execute"?"Continue delivery":"Return to wallet"})]},c.key)})}),!s.isDeployed&&n.step==="idle"&&ot("div",{className:"rd-callout rd-callout-warning","data-testid":"two-tx-notice",children:["The first action from this address needs ",me("b",{children:"two wallet confirmations"}),": prepare the address, then move the funds. Later actions need one."]}),s.inFlight&&me("p",{className:"rd-muted rd-token-row-status",children:s.inFlightReason||Oy}),n.step==="done"&&me("div",{className:"rd-callout rd-callout-success",role:"status","aria-live":"polite",children:f==="execute"?"ONEchain delivery restarted.":"Funds returned to your connected BNB Chain wallet."}),n.step==="error"&&n.error&&ot(Ga,{children:[me("div",{className:"rd-callout rd-callout-danger",role:"alert",children:zy(n.error)}),me(yf,{message:n.error})]})]})}function _a(e){let{info:t,loading:r,error:n,refresh:o}=ff(Py(e)),i=r||e.targets!==void 0&&e.targetsLoading===!0,a=bi({recipient:e.recipient,wallet:e.wallet,trustedFactories:e.trustedFactories,onError:e.onError,onRecoverySuccess:e.onRecoverySuccess,onChanged:e.targets!==void 0?e.onRecovered:o}),[s,l]=Tl(),d=e.targets!==void 0?[...e.targets]:t?[{symbol:e.target??"",isDefault:!0,info:t}]:[],p=gf(Uo(d,e.orders??[])),h=p.length>0,b=e.wallet?.walletAddress,m=e.wallet?.getBalance,[w,f]=Tl();return wf(()=>{if(!h||!m||!b){f(void 0);return}let u=!1;return m({chainId:56,address:b}).then(c=>{u||f({value:c.value,decimals:c.decimals})}).catch(()=>{u||f(void 0)}),()=>{u=!0}},[h,m,b]),ot("section",{className:e.showTitle??!0?"rd-card":"rd-stack","data-rd-recover-funds":"",children:[(e.showTitle??!0)&&me("div",{className:"rd-card-header",children:me("h2",{className:"rd-card-title",children:"Recover stuck funds"})}),typeof e.otherTargetsRecoverable=="number"&&e.otherTargetsRecoverable>0&&me("div",{className:"rd-callout rd-callout-muted","data-testid":"other-targets-recoverable-note",children:By(e.otherTargetsRecoverable)}),i&&ot("p",{className:"rd-muted",role:"status","aria-live":"polite",children:[me("span",{className:"rd-spinner"})," Checking for recoverable funds\u2026"]}),n&&ot(Ga,{children:[me("div",{className:"rd-callout rd-callout-danger",role:"alert",children:"Couldn't check recoverable funds. Please try again."}),me(yf,{message:n.message})]}),!i&&!n&&d.length>0&&!h&&ot("div",{className:"rd-recover-sum",children:[me("span",{className:"rd-recover-sum-label",children:"Deposit address status"}),me("span",{className:"rd-recover-sum-value rd-recover-sum-empty",children:"Nothing to recover"})]}),!i&&!n&&p.map(u=>me(jy,{group:u,showTargetLabel:p.length>1||u.targets.length>1,busy:a.busy,state:a.stateFor(u.forwarder),actingRowKey:s,rowKeyOf:c=>`${u.forwarder.toLowerCase()}:${c.key}`,onRecover:c=>{c.action&&(l(`${u.forwarder.toLowerCase()}:${c.key}`),a.recover(u.info,c.action.kind,c.action.tokenAddress))}},u.forwarder.toLowerCase())),!i&&!n&&h&&ot("div",{className:"rd-callout rd-callout-muted","data-testid":"rd-recover-gas-note",children:["You submit this transaction from your connected wallet and pay the BNB Chain network fee in BNB. Available balance:",w&&ot(Ga,{children:[" ",ot("b",{children:[kn(w.value,w.decimals)," BNB"]})]}),!w&&" unavailable","."]}),!i&&!n&&h&&me("p",{className:"rd-recover-foot",children:"Delivery continues to ONEchain; returned funds go to your connected BNB Chain wallet."})]})}import*as ft from"react";import*as fr from"@radix-ui/react-dialog";import{Drawer as jo}from"vaul";de(`.rd-overlay{position:fixed;inset:0;z-index:100000;background:var(--ds-overlay-dim, rgba(0, 0, 0, .5));-webkit-backdrop-filter:var(--ds-bg-blur-7, blur(3.5px));backdrop-filter:var(--ds-bg-blur-7, blur(3.5px))}.rd-dialog-content{-webkit-font-smoothing:antialiased;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:100001;width:var(--rd-dialog-width, 480px);max-height:90vh;overflow:hidden;display:flex;flex-direction:column;background:var(--ds-surface-default, #ffffff);border:1px solid var(--ds-border-default, #00000012);border-radius:24px;box-shadow:var(--ds-shadow-modal, 0 4px 30px -1px rgba(0, 0, 0, .15));outline:none;font-family:inherit}.rd-dialog-content.rd-deposit-shell{height:min(40rem,90vh)}.rd-drawer-content{-webkit-font-smoothing:antialiased;position:fixed;bottom:0;left:0;right:0;z-index:100001;width:100%;max-width:var(--rd-drawer-max-width, none);min-width:var(--rd-drawer-min-width, 0);max-height:min(85dvh,calc(100svh - env(safe-area-inset-top,0px)));margin:0 auto;display:flex;flex-direction:column;background:var(--ds-surface-default, #ffffff);border:1px solid var(--ds-border-default, #00000012);border-top-left-radius:16px;border-top-right-radius:16px;outline:none;font-family:inherit;box-sizing:border-box;overscroll-behavior:contain}.rd-drawer-content.rd-deposit-shell[data-vaul-drawer-direction=bottom],.rd-drawer-content.rd-deposit-shell[data-vaul-drawer-direction=top]{height:min(40rem,85dvh,calc(100svh - env(safe-area-inset-top,0px)))}.rd-drawer-content[data-vaul-drawer-direction=right]{inset:0 0 0 auto;max-height:100vh;width:var(--rd-drawer-max-width, 400px);max-width:100vw;border-radius:16px 0 0 16px}.rd-drawer-content[data-vaul-drawer-direction=left]{inset:0 auto 0 0;max-height:100vh;width:var(--rd-drawer-max-width, 400px);max-width:100vw;border-radius:0 16px 16px 0}.rd-drawer-content[data-vaul-drawer-direction=top]{inset:0 0 auto;border-radius:0 0 16px 16px}.rd-drawer-handle{width:60px;height:4px;border-radius:999px;background:var(--ds-border-medium, rgba(0, 0, 0, .18));margin:12px auto 8px;flex-shrink:0}.rd-drawer-content[data-vaul-drawer-direction=left] .rd-drawer-handle,.rd-drawer-content[data-vaul-drawer-direction=right] .rd-drawer-handle{display:none}.rd-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}
|
|
19
19
|
`);import{jsx as Fr,jsxs as Ha}from"react/jsx-runtime";var xf=24;function Il(e){return e instanceof HTMLElement&&e.matches("input, textarea, select")}function Wy(e,t,r){let n=r?.offsetTop??t.top,o=r?r.offsetTop+r.height:t.bottom,i=Math.max(t.top,n)+xf,a=Math.min(t.bottom,o)-xf;return e.top<i?e.top-i:e.bottom>a?e.bottom-a:0}function Gy(){let e=ft.useRef(0),[t,r]=ft.useState({keyboardHeight:0,viewportHeight:0});return ft.useEffect(()=>{let n=window.visualViewport;if(!n)return;let o=()=>{e.current=Math.max(e.current,window.innerHeight,document.documentElement.clientHeight,n.height+n.offsetTop);let i=Math.max(0,e.current-n.height-n.offsetTop),a=n.height;r(s=>s.keyboardHeight===i&&s.viewportHeight===a?s:{keyboardHeight:i,viewportHeight:a})};return o(),n.addEventListener("resize",o),n.addEventListener("scroll",o),()=>{n.removeEventListener("resize",o),n.removeEventListener("scroll",o)}},[]),t}function _y(e){let t=`(max-width: ${e}px)`,[r,n]=ft.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(t).matches);return ft.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let o=window.matchMedia(t);n(o.matches);let i=a=>n(a.matches);return o.addEventListener("change",i),()=>o.removeEventListener("change",i)},[t]),r}function Rn({theme:e="dark",mobileBreakpoint:t=768,drawerDirection:r="bottom",dialogWidth:n,drawerMaxWidth:o,drawerMinWidth:i,style:a,open:s,onOpenChange:l,children:d}){let p=_y(t),[h,b]=ft.useState(!1),m=s!==void 0,w=m?s:h,f=ft.useCallback(g=>{m||b(g),l?.(g)},[m,l]),u=ft.useMemo(()=>{let g={};return n&&(g["--rd-dialog-width"]=n),o&&(g["--rd-drawer-max-width"]=o),i&&(g["--rd-drawer-min-width"]=i),{...g,...a}},[n,o,i,a]),c=ft.useMemo(()=>({open:w,setOpen:f,isMobile:p,theme:e,drawerDirection:r,portalStyle:u}),[w,f,p,e,r,u]),y=Fr("div",{"data-theme":e,style:u,children:d});return p?Fr(Ea.Provider,{value:c,children:Fr(jo.Root,{direction:r,open:w,onOpenChange:f,noBodyStyles:!0,children:y},"drawer")}):Fr(Ea.Provider,{value:c,children:Fr(fr.Root,{open:w,onOpenChange:f,children:y})})}function Wo({asChild:e,children:t,dataAttributes:r}){let{isMobile:n}=Jr(),o=n?jo.Trigger:fr.Trigger;return Fr(o,{asChild:e,...r,children:t})}function Sn({className:e,ariaTitle:t,children:r}){let{open:n,isMobile:o,theme:i,drawerDirection:a,portalStyle:s}=Jr(),{keyboardHeight:l,viewportHeight:d}=Gy(),p=go(),h=ft.useRef(null),b=ft.useRef(null),m=ft.useRef(null),w=ft.useRef(null),f=ft.useRef(!1),u=ft.useRef(!1);ft.useEffect(()=>()=>{b.current&&clearTimeout(b.current),m.current&&clearTimeout(m.current)},[]),ft.useEffect(()=>{b.current&&clearTimeout(b.current),m.current&&clearTimeout(m.current);let v=document.activeElement;!n&&Il(v)&&h.current?.contains(v)&&v.blur(),w.current=null,f.current=!1,u.current=!1,h.current?.querySelectorAll("[data-rd-scroll-area]").forEach(k=>{k.scrollTo?.({top:0,behavior:"auto"})})},[n]),ft.useEffect(()=>{if(l>0){u.current=!0;return}if(!u.current||!f.current)return;let v=w.current;v&&(m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{let k=document.activeElement;if(Il(k)&&v.contains(k)){m.current=null;return}v.scrollTo?.({top:0,behavior:"smooth"}),w.current=null,f.current=!1,u.current=!1,m.current=null},80))},[l]);let c=o&&a==="bottom"&&l>0&&!p,y=c?{bottom:l,maxHeight:`min(85dvh, calc(${d}px - env(safe-area-inset-top, 0px)))`}:void 0,g=ft.useCallback(v=>{if(!o||a!=="bottom"||!Il(v.target))return;let k=v.target,R=k.closest("[data-rd-scroll-area]");R&&(w.current=R,f.current=!0,b.current&&clearTimeout(b.current),m.current&&clearTimeout(m.current),b.current=setTimeout(()=>{let I=Wy(k.getBoundingClientRect(),R.getBoundingClientRect(),window.visualViewport);Math.abs(I)>=1&&R.scrollBy?.({top:I,behavior:"auto"}),b.current=null},280))},[a,o]);return o?Ha(jo.Portal,{children:[Fr(jo.Overlay,{className:"rd-overlay"}),Ha(jo.Content,{ref:h,className:Ne("rd-drawer-content",e),"data-theme":i,"data-rd-shell":"drawer","data-rd-in-app":p?"true":"false","data-rd-keyboard-adjusted":c?"true":"false",style:{...s,...y},onFocusCapture:g,children:[Fr(jo.Title,{className:"rd-sr-only",children:t}),Fr("div",{className:"rd-drawer-handle"}),r]})]}):Ha(fr.Portal,{children:[Fr(fr.Overlay,{className:"rd-overlay"}),Ha(fr.Content,{className:Ne("rd-dialog-content",e),"data-theme":i,"data-rd-shell":"dialog",style:s,children:[Fr(fr.Title,{className:"rd-sr-only",children:t}),Fr(fr.Description,{className:"rd-sr-only",children:t}),r]})]})}import{Fragment as Vy,jsx as Xe,jsxs as tn}from"react/jsx-runtime";function Hy({id:e,activeView:t,canRecover:r,recoverableCount:n,onChange:o}){let i=r?["deposit","history","recover"]:["deposit","history"];return Xe("div",{className:"rd-deposit-tabs",role:"tablist","aria-label":"Deposit navigation","data-tab-count":i.length,"data-active-index":i.indexOf(t),children:i.map(a=>{let s=a==="deposit"?"Deposit":a==="history"?"History":"Recover";return tn("button",{type:"button",id:`${e}-${a}-tab`,className:"rd-deposit-tab",role:"tab","aria-selected":t===a,"aria-controls":`${e}-${a}-panel`,tabIndex:t===a?0:-1,"data-active":t===a?"true":"false","data-track":`${a}_tab`,onClick:()=>o(a),onKeyDown:l=>{if(!["ArrowLeft","ArrowRight","Home","End"].includes(l.key))return;l.preventDefault();let d=i.indexOf(a),p=l.key==="Home"?0:l.key==="End"?i.length-1:(d+(l.key==="ArrowRight"?1:-1)+i.length)%i.length,h=i[p];o(h),document.getElementById(`${e}-${h}-tab`)?.focus()},children:[Xe("span",{children:s}),a==="recover"&&n>0&&Xe("span",{className:"rd-recovery-badge","data-testid":"recovery-badge",children:n})]},a)})})}function kf({className:e}){let t=ci();return Xe(ge,{feature:"relay",children:Xe(Sn,{ariaTitle:"Deposit",className:["rd-deposit-shell",e??t.className].filter(Boolean).join(" "),children:Xe(Qy,{})})})}function Qy(){let e=ci(),{theme:t}=Jr(),r=Wu(),n=vf.useId();if(!r)return null;let{activeView:o,setActiveView:i,recoveryOpen:a,resolvedApiBaseUrl:s,wallet:l,catalog:d,catalogLoading:p,catalogError:h,origin:b,setOrigin:m,amount:w,setAmount:f,recipient:u,setRecipient:c,recipientValid:y,balance:g,balanceLoading:v,insufficientBalance:k,depositAddress:R,depositAddressLoading:I,depositAddressError:C,arrivalStatus:S,quote:A,quoteLoading:D,quoteError:U,canDeposit:M,deposit:G,depositState:E,targetOptions:O,selectedTarget:ie,setSelectedTarget:Y,showAmountInput:P,minNotice:pe,showRecipientInput:$,showTargetSelector:Q,showOneClick:B,showConnectPrompt:J,showRecipientHint:V,canRecover:le,recoverableCount:he,recoveryTargetsLoading:ee,recoveryTargets:ce,recoveryOrders:We,historyOrdersLoading:we,historyOrdersError:Je,refreshRecovery:oe,trustedFactories:Me,amountHint:$e,amountSmallestUnits:Te,onMax:Ae}=r;return tn("div",{className:"rd-root rd-wizard","data-theme":t,"data-rd-scroll-area":!0,children:[Xe(Hy,{id:n,activeView:o,canRecover:le,recoverableCount:he,onChange:i}),le&&a&&Xe("div",{className:"rd-deposit-tab-panel",id:`${n}-recover-panel`,role:"tabpanel","aria-labelledby":`${n}-recover-tab`,children:Xe(_a,{client:e.client,apiBaseUrl:s,recipient:u,target:ie?.symbol,wallet:l,trustedFactories:Me,targets:(d?.targets.length??0)>0?ce:void 0,targetsLoading:ee,orders:We,onRecovered:oe,onRecoverySuccess:e.onRecoverySuccess,onError:e.onError,showTitle:!1})}),o==="history"&&Xe("div",{className:"rd-deposit-tab-panel",id:`${n}-history-panel`,role:"tabpanel","aria-labelledby":`${n}-history-tab`,children:y&&u.trim()?Xe(za,{orders:We,isLoading:p||we,error:h??Je,catalog:d,showTitle:!1}):Xe("p",{className:"rd-muted","data-testid":"rd-history-empty-state",children:"Connect a wallet or provide an address to see transfer history."})}),o==="deposit"&&tn("div",{className:"rd-deposit-tab-panel",id:`${n}-deposit-panel`,role:"tabpanel","aria-labelledby":`${n}-deposit-tab`,children:[p&&tn("div",{className:"rd-skeleton-form","data-testid":"rd-source-skeleton","aria-hidden":"true",children:[Xe(Da,{}),J&&e.onRequestConnect&&Xe("span",{className:"rd-skeleton rd-skeleton-cta"}),tn("section",{className:"rd-stack",children:[tn("div",{className:"rd-field",children:[Xe("span",{className:"rd-skeleton rd-skeleton-line",style:{width:"18%"}}),tn("div",{className:"rd-field-row",children:[Xe("span",{className:"rd-skeleton rd-skeleton-field"}),Xe("span",{className:"rd-skeleton rd-skeleton-field"})]})]}),P&&tn("div",{className:"rd-field",children:[Xe("span",{className:"rd-skeleton rd-skeleton-line",style:{width:"34%"}}),Xe("span",{className:"rd-skeleton rd-skeleton-field"})]})]}),tn("div",{className:"rd-field",children:[Xe("span",{className:"rd-skeleton rd-skeleton-line",style:{width:"24%"}}),Xe("span",{className:"rd-skeleton rd-skeleton-field"}),($||u.trim().length>0)&&tn(Vy,{children:[Xe("span",{className:"rd-skeleton rd-skeleton-line",style:{width:"58%",marginTop:"0.5rem"}}),Xe("span",{className:"rd-skeleton rd-skeleton-field"}),$&&Xe("span",{className:"rd-skeleton rd-skeleton-line",style:{width:"82%"}})]})]}),Xe("span",{className:"rd-skeleton rd-skeleton-notice"})]}),p&&Xe("p",{className:"rd-sr-only",role:"status",children:"Loading deposit options..."}),h&&tn("div",{className:"rd-callout rd-callout-danger",children:["Failed to load configuration: ",h.message]}),V&&Xe("div",{className:"rd-callout rd-callout-muted",children:$?"Connect a wallet or provide a recipient address to fetch your deposit address.":"Connect a wallet to fetch your deposit address."}),d&&b&&Xe(rf,{catalog:d,origin:b,onChangeOrigin:m,amount:w,onChangeAmount:f,showAmountInput:P,minNotice:pe,amountHint:$e,onMax:Ae,recipient:u,onChangeRecipient:c,showRecipientInput:$,recipientValid:y,balance:g,balanceLoading:v,insufficientBalance:k,targetOptions:O,selectedTarget:ie,onChangeTarget:Y,showTargetSelector:Q,quote:A,quoteLoading:D,quoteError:U,depositAddress:R,depositAddressLoading:I,depositAddressError:C,arrivalStatus:S,amountSmallestUnits:Te,depositState:E,onDeposit:()=>{G()},canDeposit:M&&B,oneClickEnabled:B,locked:J,onRequestConnect:e.onRequestConnect})]})]})}import{jsx as El}from"react/jsx-runtime";function Rf({asChild:e,children:t}){return El(ge,{feature:"relay",children:El(Wo,{asChild:e??t!=null,children:t??El("button",{type:"button","data-track":"open",children:"Deposit"})})})}import*as ye from"react";import{useCallback as yi,useEffect as Wn,useMemo as Ml,useRef as Al,useState as mt}from"react";import{useEffect as qy,useState as Yy}from"react";function Sf(e,t){let[r,n]=Yy(e);return qy(()=>{let o=setTimeout(()=>n(e),t);return()=>clearTimeout(o)},[e,t]),r}var Ky=500,Nf=56,Cf={chainId:Nf,token:"0x55d398326f99059fF775485246999027B3197955"},Tf=3e4,Zy=5e3;function Xy(e){return typeof e!="number"||!Number.isFinite(e)||e<=0?Tf:Math.max(Zy,e*1e3)}var Jy=[{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function Ll(e,t){let r=e.trim();if(!r)return null;try{let n=Ma(r,t);return n>0n?n:null}catch{return null}}function If(e={}){let t=Al(e);t.current=e;let r=Ml(()=>{if(e.client)return e.client;if(!e.apiBaseUrl)throw new Error("useDepositAddress: either `client` or `apiBaseUrl` must be provided");return Ut({baseUrl:e.apiBaseUrl})},[e.client,e.apiBaseUrl]),n=e.wallet,o=n?.walletAddress,i=!!o,a=n?.walletChainId,[s,l]=mt(),[d,p]=mt(!0),[h,b]=mt();Wn(()=>{let re=!1;return p(!0),r.getConfig().then(fe=>{re||(l(fe),b(void 0))}).catch(fe=>{re||b(fe instanceof Error?fe:new Error(String(fe)))}).finally(()=>{re||p(!1)}),()=>{re=!0}},[r]);let m=e.chains,w=Ml(()=>{if(!s)return[];if(!m||m.length===0)return s.origins;let re=new Set(m);return s.origins.filter(fe=>re.has(fe.chainId))},[s,m]),f=Ml(()=>s?{...s,origins:w}:void 0,[s,w]),[u,c]=mt();Wn(()=>{if(u||w.length===0)return;let re=t.current.defaultToken,fe=re?w.find(j=>j.chainId===re.chainId&&j.token.address.toLowerCase()===re.address.toLowerCase()):void 0;c(fe??w[0])},[w,u]);let[y,g]=mt(),v=yi(()=>{Pe(void 0),st(!1),Ie(!1),F(!1),qe(void 0)},[]),k=yi(re=>{c(re),g(void 0),v()},[v]),R=u?.kind==="svm",[I,C]=mt(""),S=e.amount!==void 0?e.amount:I,A=yi(re=>{C(re),g(void 0),v()},[v]),D=Sf(S,Ky),U=u?Ll(D,u.token.decimals):null,M=u?Ll(S,u.token.decimals):null,[G,E]=mt(""),[O,ie]=mt(!1),Y=e.recipient!==void 0?e.recipient:G,P=yi(re=>{E(re),ie(!0),g(void 0),v()},[v]);Wn(()=>{e.recipient===void 0&&o&&!O&&E(o)},[o,O,e.recipient]);let pe=Y.length===0||dt(Y),$=Y.length>0&&dt(Y)?Y:void 0,[Q,B]=mt(),[J,V]=mt(!1),[le,he]=mt(0),ee=n?.getBalance;Wn(()=>{if(!ee||!o||!u||R){B(void 0),V(!1);return}let re=!1;V(!0);let fe=u.token.address.toLowerCase()===pi?void 0:u.token.address;return ee({chainId:u.chainId,address:o,token:fe}).then(j=>{re||B({...j,formatted:Ft(j.value,j.decimals)})}).catch(()=>{re||B(void 0)}).finally(()=>{re||V(!1)}),()=>{re=!0}},[ee,o,u,R,le]);let ce=Q?.value??null,We=!R&&M!==null&&ce!==null&&M>ce,[we,Je]=mt(),[oe,Me]=mt(!1),[$e,Te]=mt(),Ae=u?.chainId,be=u?.token.address,ht=e.target;Wn(()=>{if(!$||!Ae||!be){Je(void 0),Te(void 0),Me(!1);return}let re=!1;return Je(void 0),Te(void 0),Me(!0),(ht?r.getDepositAddress({user:$,originChainId:Ae,originCurrency:be},ht):r.getDepositAddress({user:$,originChainId:Ae,originCurrency:be})).then(j=>{re||(Je(j),Te(void 0),t.current.onDepositAddress?.(j))}).catch(j=>{if(re)return;Je(void 0);let ve=j instanceof Error?j:new Error(String(j));Te(ve),t.current.onError?.(ve)}).finally(()=>{re||Me(!1)}),()=>{re=!0}},[r,$,Ae,be,ht]);let Et=[Ae??"",(be??"").toLowerCase(),($??"").toLowerCase(),ht??"",S.trim()].join("|"),vt=Al(Et);Wn(()=>{vt.current!==Et&&(vt.current=Et,g(void 0),v())},[Et,v]);let[Le,it]=mt(),[Mt,Qe]=mt(!1),[et,De]=mt(),bt=U?.toString();Wn(()=>{if(!Ae||!be||!bt){it(void 0),De(void 0),Qe(!1);return}let re=!1,fe,j=!0;async function ve(){j&&Qe(!0);let _=Tf;try{let Oe=await r.getQuote({originChainId:Ae,originCurrency:be,amount:bt});if(re)return;it(Oe),De(void 0),_=Xy(Oe.ttl)}catch(Oe){if(re)return;it(void 0),De(Oe instanceof Error?Oe:new Error(String(Oe)))}finally{re||Qe(!1),j=!1}re||(fe=setTimeout(ve,_))}return ve(),()=>{re=!0,fe&&clearTimeout(fe)}},[r,Ae,be,bt]);let[qt,kt]=mt(!1),[Ve,tt]=mt(!1),[ct,Pe]=mt(),[at,qe]=mt(),[rt,st]=mt(!1),[z,Ie]=mt(!1),[Ze,F]=mt(!1),ne=n?.waitForReceipt,ue=Al(void 0);Wn(()=>{if(!ct||!u||!ne)return;let re=!1;return st(!0),Ie(!1),F(!1),ne({chainId:u.chainId,hash:ct}).then(fe=>{re||(Ie(!0),F(fe.status==="reverted"),he(j=>j+1),fe.status!=="reverted"&&ct!==ue.current&&(ue.current=ct,t.current.onDeposited?.(ct)))}).catch(fe=>{re||qe(fe instanceof Error?fe.message:String(fe))}).finally(()=>{re||st(!1)}),()=>{re=!0}},[ct,ne]);let Ce=a!==void 0&&u!==void 0&&a!==u.chainId,wt=qt||Ve,Yt=y??at,tr="idle";Yt?tr="error":z?tr="confirmed":rt?tr="confirming":wt&&(tr=qt?"switching":"pending");let Gr={phase:tr,isSubmitting:wt,isConfirming:rt,isConfirmed:z,needsSwitch:Ce,txHash:ct,reverted:z&&Ze,error:Yt},un=!!(u&&we&&we.originChainId===u.chainId&&we.originCurrency.toLowerCase()===u.token.address.toLowerCase()),vr=!!(n?.sendTransaction&&n?.writeContract&&n?.readContract&&n?.waitForReceipt),fn=!!(i&&vr&&u&&!R&&we&&un&&M&&M>0n&&!We&&!wt&&!rt),_r=yi(async()=>{if(R||!u||!we||!n?.sendTransaction||!n?.writeContract)return;g(void 0);let re=Ll(S,u.token.decimals);if(!re||re<=0n){g("enter an amount to use the one-click deposit");return}let fe=u.token.address.toLowerCase()===pi,j=we.depositAddress,ve=await df(n?.readContract,Nf,{forwarder:we.forwarder,recipient:$,version:we.version,trusted:t.current.trustedFactories});if(!ve.ok){g(`address verification failed: ${ve.reason}`);return}if(u.chainId===Cf.chainId&&u.token.address.toLowerCase()===Cf.token.toLowerCase()&&!cf(j,we.forwarder)){g("address verification failed: deposit address does not match the verified forwarder (expected them to be identical on this route; check the backend's direct_same_token setting)");return}try{if(Ce){if(!n?.switchChain)throw new Error("wallet cannot switch chains");kt(!0);try{await n.switchChain(u.chainId)}finally{kt(!1)}}v(),tt(!0);try{let Oe=fe?await n.sendTransaction({chainId:u.chainId,to:j,value:re}):await n.writeContract({chainId:u.chainId,address:u.token.address,abi:Jy,functionName:"transfer",args:[j,re]});Pe(Oe)}finally{tt(!1)}}catch(Oe){g(Oe.message)}},[R,u,we,S,Ce,n,$,v]);return{address:o,isConnected:i,catalog:f,catalogLoading:d,catalogError:h,origin:u,setOrigin:k,recipient:Y,setRecipient:P,recipientValid:pe,amount:S,setAmount:A,balance:Q,balanceLoading:J,insufficientBalance:We,isSvmOrigin:R,depositAddress:we?.depositAddress,depositAddressResult:we,depositAddressLoading:oe,depositAddressError:$e,quote:Le,quoteLoading:Mt,quoteError:et,canDeposit:fn,deposit:_r,depositState:Gr}}import{useEffect as $y,useRef as ex,useState as Go}from"react";var tx=3e4,rx=300;function Gn(e){let t=ex(e);t.current=e;let{client:r,enabled:n=!0,live:o=!0}=e,i=e.refetchInterval??e.fallbackPollMs??tx,a=e.recipient&&dt(e.recipient)?e.recipient:void 0,[s,l]=Go([]),[d,p]=Go(!1),[h,b]=Go(),[m,w]=Go(!1),[f,u]=Go(),[c,y]=Go(0);return $y(()=>{if(!a){l([]),b(void 0),p(!1),w(!1),u(void 0),y(0);return}if(!n){l([]),b(void 0),p(!1),w(!1),u(void 0),y(0);return}let g=!1,v=!0,k,R=0,I=0;async function C(){let U=++R;I+=1,v&&p(!0);try{let M=await r.listOrders(a);if(g)return;U===R&&(l(M),b(void 0))}catch(M){if(g)return;let G=M instanceof Error?M:new Error(String(M));U===R&&(b(G),t.current.onError?.(G))}finally{I-=1,!g&&U===R&&(p(!1),w(!0),u(a),y(M=>M+1)),v=!1}}function S(){k&&clearTimeout(k),k=setTimeout(()=>{k=void 0,g||C()},rx)}C();let A;o&&typeof EventSource<"u"&&(A=new EventSource(r.ordersStreamUrl(a)),A.addEventListener("orders-changed",S),A.onopen=()=>{S()});let D=o&&Number.isFinite(i)&&i>0?setInterval(()=>{I===0&&C()},i):void 0;return()=>{g=!0,k&&clearTimeout(k),D&&clearInterval(D),A?.close()}},[r,a,n,o,i]),{orders:s,ordersLoading:d,ordersError:h,ordersInitialized:m,ordersForRecipient:f,ordersRevision:c}}import{useMemo as nx,useState as ox}from"react";function Ef(e,t){if(t){let r=e.find(n=>n.symbol===t);if(r)return r}return e.find(r=>r.isDefault)??e[0]}function Mf({catalogTargets:e,filter:t,defaultTarget:r}){let n=nx(()=>{if(!t||t.length===0)return e;let l=new Set(t);return e.filter(d=>l.has(d.symbol))},[e,t]),[o,i]=ox(()=>Ef(n,r)?.symbol),a=(o!==void 0?n.find(l=>l.symbol===o):void 0)??Ef(n,r);function s(l){n.some(d=>d.symbol===l)&&i(l)}return{options:n,selected:a,setSelected:s}}var ix={dev:"https://dev-relay-protocol-api.onechain.nexus",stage:"https://dev-relay-protocol-api.onechain.nexus",production:"https://relay-protocol-api.onechain.nexus"};function _n(e){return e.apiBaseUrl?e.apiBaseUrl:ix[nt(e.environment)]}import{jsx as cx,jsxs as px}from"react/jsx-runtime";var Af=1e3;function ax(e,t,r,n,o){let i=e.requireWalletConnection??e.showRecipientInput===!1,a=r.walletAddress&&dt(r.walletAddress)?r.walletAddress:void 0;return{client:e.client,apiBaseUrl:n,wallet:r,chains:e.chains,recipient:i?a??"":e.recipient,amount:i&&!a?"":e.amount,defaultToken:e.defaultToken,target:t,trustedFactories:o,onDepositAddress:e.onDepositAddress,onDeposited:e.onDeposited,onError:e.onError}}function Qa(e,t){let r=e.trim();if(!r)return 0n;try{let n=Ma(r,t);return n>0n?n:0n}catch{return 0n}}function sx(e,t,r,n){if(t!==void 0&&e.forwarderVersion!==t)return!1;let o=e.target?.trim();return o?!!(r&&o.toLowerCase()===r.toLowerCase()):n}function Lf(e,t,r){return`${e}:${t.toLowerCase()}:${r}`}function lx(e){return e==="FAILED"||e==="REFUNDED"||e==="RELAY_REFUNDED"||e==="EXPIRED"}function Df({open:e,children:t}){let[r]=ye.useState(ju);return px(gl.Provider,{value:r,children:[e&&cx(dx,{store:r}),t]})}function dx({store:e}){let t=ci(),{showTargetSelector:r=!0}=t,n=t.requireWalletConnection??t.showRecipientInput===!1,o=!!(t.walletAddress&&dt(t.walletAddress)),[i,a]=ye.useState("deposit"),s=i==="recover",l=ye.useCallback(W=>{a(ut=>(typeof W=="function"?W(ut==="recover"):W)?"recover":"deposit")},[]);ye.useEffect(()=>{_e("relay","opened")},[]);let[d,p]=ye.useState(void 0),h=ye.useMemo(()=>_n({apiBaseUrl:t.apiBaseUrl,environment:t.environment}),[t.apiBaseUrl,t.environment]),b=ye.useMemo(()=>({walletAddress:t.walletAddress,walletChainId:t.walletChainId,sendTransaction:t.sendTransaction,writeContract:t.writeContract,readContract:t.readContract,switchChain:t.switchChain,waitForReceipt:t.waitForReceipt,getBalance:t.getBalance}),[t.walletAddress,t.walletChainId,t.sendTransaction,t.writeContract,t.readContract,t.switchChain,t.waitForReceipt,t.getBalance]),m=nt(t.environment),w=sr("apps.json",m,W=>({min:Vr(W?.relay?.minDepositAmount,m),max:Vr(W?.relay?.maxDepositAmount,m),trustedFactories:Mi(W,m)})),f=ye.useMemo(()=>t.trustedFactories??Ua(w?.trustedFactories),[t.trustedFactories,w?.trustedFactories]),{isConnected:u,catalog:c,catalogLoading:y,catalogError:g,origin:v,setOrigin:k,amount:R,setAmount:I,recipient:C,setRecipient:S,recipientValid:A,balance:D,balanceLoading:U,insufficientBalance:M,depositAddress:G,depositAddressResult:E,depositAddressLoading:O,depositAddressError:ie,quote:Y,quoteLoading:P,quoteError:pe,canDeposit:$,deposit:Q,depositState:B}=If(ax(t,d,b,h,f)),{options:J,selected:V,setSelected:le}=Mf({catalogTargets:c?.targets??[],filter:t.targetTokens,defaultTarget:t.defaultTarget});ye.useEffect(()=>{p(V?.symbol)},[V?.symbol]);let he=t.amount===void 0&&!t.hideAmount,ee=!n&&(t.showRecipientInput??!0)&&t.recipient===void 0,ce=A&&C.trim().length>0&&dt(C),We=!n&&t.recipient!==void 0&&t.recipient.trim().length>0,we=n?!o||!ce:!u&&!We&&!ce,Je=!!c&&!ce&&!we,oe=(t.showRecovery??!1)&&o&&!!(b.writeContract&&b.readContract&&b.waitForReceipt);ye.useEffect(()=>{i==="recover"&&!oe&&a("deposit")},[i,oe]);let Me=ye.useMemo(()=>t.client?t.client:Ut({baseUrl:h}),[t.client,h]),[$e,Te]=ye.useState({}),[Ae,be]=ye.useState(!1),[ht,Et]=ye.useState(0),vt=ye.useCallback(()=>Et(W=>W+1),[]),Le=B.isConfirmed,it=ce&&(!!E||i!=="deposit"),{orders:Mt,ordersLoading:Qe,ordersError:et,ordersInitialized:De,ordersForRecipient:bt}=Gn({client:Me,recipient:it?C:void 0,enabled:it,refetchInterval:Af}),qt=Mt,kt=V??c?.targets.find(W=>W.isDefault),Ve=kt?.symbol??c?.destination.symbol,tt=kt?.isDefault??!0,ct=E?.version,Pe=ye.useMemo(()=>Mt.filter(W=>sx(W,ct,Ve,tt)),[Mt,ct,Ve,tt]),at=ye.useRef(void 0),[qe,rt]=ye.useState(),[st,z]=ye.useState(),Ie=`${C.toLowerCase()}:${Ve?.toLowerCase()??""}:${ct??""}`;ye.useEffect(()=>{let W=bt?.toLowerCase()===C.toLowerCase();if(!it||!De||!W||et){it||(at.current=void 0,rt(void 0),z(void 0));return}let ut=new Set(Pe.map(Ge=>Ge.orderId)),Bt=new Set(Pe.flatMap(Ge=>(Ge.deposits??[]).map(Rr=>Lf(Ge.orderId,Rr.txHash,Rr.blockNumber)))),Rt=at.current;if(!Rt||Rt.key!==Ie){at.current={key:Ie,orderIds:ut,depositKeys:Bt,statuses:new Map(Pe.map(Ge=>[Ge.orderId,Ge.status]))},rt(void 0),z(void 0);return}let Hr,Wt=0n,Kt=!1;for(let Ge of Pe)for(let Rr of Ge.deposits??[]){let nn=Lf(Ge.orderId,Rr.txHash,Rr.blockNumber);if(!Rt.depositKeys.has(nn)){Hr??(Hr=Ge);try{Wt+=BigInt(Rr.amount),Kt=!0}catch{}}}Hr??(Hr=Pe.find(Ge=>!Rt.orderIds.has(Ge.orderId))),Hr??(Hr=Pe.find(Ge=>Rt.statuses.get(Ge.orderId)!==Ge.status));for(let Ge of ut)Rt.orderIds.add(Ge);for(let Ge of Bt)Rt.depositKeys.add(Ge);for(let Ge of Pe)Rt.statuses.set(Ge.orderId,Ge.status);Hr&&(rt(Hr.orderId),Kt&&z(Wt))},[Ie,Pe,bt,it,C,et,De]),ye.useEffect(()=>{let W=c?.targets??[];if(!oe||!ce||W.length===0){Te({}),be(!1);return}let ut=!1;return be(!0),Promise.all(W.map(Bt=>Me.getRecovery({user:C,target:Bt.symbol}).catch(()=>{}))).then(Bt=>{if(ut)return;let Rt={};W.forEach((Hr,Wt)=>{let Kt=Bt[Wt];Kt&&(Rt[Hr.symbol]=Kt)}),Te(Rt),be(!1)}),()=>{ut=!0}},[Me,oe,ce,C,c,Le,ht]);let Ze=ye.useMemo(()=>(c?.targets??[]).map(W=>({symbol:W.symbol,isDefault:W.isDefault,info:$e[W.symbol]})).filter(W=>W.info!==void 0),[c,$e]),F=ye.useMemo(()=>ja(Uo(Ze)),[Ze]),[ne,ue]=ye.useState(void 0),[Ce,wt]=ye.useState(),Yt=!!c&&(c?.targets.length??0)>0&&!d;ye.useEffect(()=>{if(!ce||!v||!E||Yt){ue(void 0),wt(void 0);return}let W=!1,ut=!1,Bt=E.forwarder.toLowerCase();ue(void 0),wt(void 0);async function Rt(){if(!(W||ut)){ut=!0;try{let Wt=await Me.getRecovery({user:C,target:d||void 0});if(W)return;if(Wt?.forwarder&&Wt.forwarder.toLowerCase()!==Bt){ue(void 0),wt(void 0);return}if(wt(Wt),!Wt||Wt.suggestedAction!=="sweep"){ue(void 0);return}let Kt;try{Kt=BigInt(Wt.balance)}catch{ue(void 0);return}let Ge=Number(Wt.decimals);if(Kt<=0n||!Number.isInteger(Ge)||Ge<0){ue(void 0);return}let Rr=Wt.tokens?.find(nn=>nn.address?.toLowerCase()===Wt.token?.toLowerCase()&&nn.symbol)?.symbol;ue({balance:Kt,decimals:Ge,symbol:Rr})}catch{}finally{ut=!1}}}Rt();let Hr=setInterval(()=>{Rt()},Af);return()=>{W=!0,clearInterval(Hr)}},[Me,ce,C,d,Yt,v,E,Le]);let tr=ye.useCallback(()=>{!v||!D||I(Ft(D.value,v.token.decimals))},[v,D,I]),Gr=ye.useRef(!1),un=!!G;ye.useEffect(()=>{!un||Gr.current||(Gr.current=!0,_e("relay","deposit_address_shown"))},[un]);let vr=B.txHash;ye.useEffect(()=>{vr&&_e("relay","deposit_submitted")},[vr]);let fn=(()=>{let W=Number(w?.min);return Number.isFinite(W)&&W>=0?String(w?.min):"6"})(),_r=(()=>{let W=Number(w?.max);return Number.isFinite(W)&&W>0?String(w?.max):void 0})(),re=(()=>{if(!v)return 0n;let W=Qa(fn,v.token.decimals),ut=BigInt(v.minAmount);return W>ut?W:ut})(),fe=v?Ft(re,v.token.decimals):fn,j=(()=>{if(!v||!ne||re<=0n)return;let W=v.token.decimals,ut=ne.decimals,Bt=W>=ut?ne.balance*10n**BigInt(W-ut):ne.balance/10n**BigInt(ut-W);if(Bt>=re)return;let Rt=re-Bt;return{pending:Ft(ne.balance,ut),pendingSymbol:ne.symbol,remaining:Ft(Rt,W)}})(),ve=c?.origins.find(W=>W.chainId===56&&!!(Ce?.token&&W.token.address.toLowerCase()===Ce.token.toLowerCase()))??c?.origins.find(W=>W.chainId===56&&W.token.symbol.toUpperCase()==="USDT"),_=Number.isInteger(Ce?.decimals)&&(Ce?.decimals??-1)>=0?Ce.decimals:ve?.token.decimals,Oe=Ce?.tokens?.find(W=>W.address?.toLowerCase()===Ce.token?.toLowerCase()&&W.symbol)?.symbol??ve?.token.symbol,rn=st!==void 0&&_!==void 0?Ft(st,_):void 0,Qn=(()=>{if(!v||_===void 0)return;let W=v.token.decimals;if(_>=W)return re*10n**BigInt(_-W);let ut=10n**BigInt(W-_);return(re+ut-1n)/ut})(),kr=qe?Pe.find(W=>W.orderId===qe):void 0,yt=kr??Pe.find(W=>W.status==="BSC_FUNDED"||W.status==="BRIDGE_INITIATED"||W.status==="BRIDGE_PENDING"),ds=(()=>{if(!yt||Qn===void 0)return!1;try{return BigInt(yt.amountIn)>=Qn}catch{return!1}})(),Ho=(()=>{if(!Ce||Qn===void 0)return!1;try{return BigInt(Ce.balance)>0n&&BigInt(Ce.balance)>=Qn}catch{return!1}})(),po=(()=>{let W={amount:rn,symbol:Oe,backendStatus:yt?.status};return!E||!it||!De?{phase:"connecting",...W}:bt?.toLowerCase()!==C.toLowerCase()||et?{phase:"unavailable",...W}:kr?.status==="COMPLETED"?{phase:"completed",...W,backendStatus:kr.status}:kr&&lx(kr.status)?{phase:"failed",...W,backendStatus:kr.status}:yt?.status==="BRIDGE_INITIATED"||yt?.status==="BRIDGE_PENDING"?{phase:"processing",...W}:yt?.status==="BSC_FUNDED"&&ds||Ho?{phase:"funded",...W}:kr?{phase:"detected",...W,backendStatus:kr.status}:{phase:"waiting",...W}})(),Vn=v&&_r?Qa(_r,v.token.decimals):void 0,uo=v&&R.trim()?Qa(R,v.token.decimals):0n,cs=!!(v&&uo>0n&&uo<re),ps=!!(v&&Vn!==void 0&&uo>0n&&uo>Vn),fo=(()=>{if(v){if(cs)return`Amount is below the ${fe} ${v.token.symbol} minimum.`;if(ps)return`Amount is above the ${_r} ${v.token.symbol} maximum.`}})(),Ti=t.showOneClickDeposit??!1,us=v&&R.trim()?Qa(R,v.token.decimals).toString():void 0,fs={activeView:i,setActiveView:a,recoveryOpen:s,setRecoveryOpen:l,resolvedApiBaseUrl:h,wallet:b,catalog:c,catalogLoading:y,catalogError:g,origin:v,setOrigin:k,amount:R,setAmount:I,recipient:C,setRecipient:S,recipientValid:A,balance:D,balanceLoading:U,insufficientBalance:M,depositAddress:G,depositAddressLoading:O,depositAddressError:ie,arrivalStatus:po,quote:Y,quoteLoading:P,quoteError:pe,canDeposit:$,deposit:Q,depositState:B,targetOptions:J,selectedTarget:V,setSelectedTarget:le,showAmountInput:he,minNotice:v?{min:fe,symbol:v.token.symbol,...j}:void 0,showRecipientInput:ee,showTargetSelector:r,showOneClick:Ti,showConnectPrompt:we,showRecipientHint:Je,canRecover:oe,recoverableCount:F,recoveryTargetsLoading:Ae,recoveryTargets:Ze,recoveryOrders:qt,historyOrdersLoading:Qe,historyOrdersError:et,refreshRecovery:vt,trustedFactories:f,amountHint:fo,amountSmallestUnits:us,onMax:he&&D&&D.value>0n?tr:void 0};return ye.useLayoutEffect(()=>{e.publish(fs)}),ye.useLayoutEffect(()=>()=>e.publish(null),[e]),null}import{jsx as Dl}from"react/jsx-runtime";function ux(e){let{theme:t="dark",mobileBreakpoint:r,drawerDirection:n,dialogWidth:o,drawerMaxWidth:i,drawerMinWidth:a,style:s,open:l,onOpenChange:d,children:p}=e,[h,b]=Va.useState(!1),m=l!==void 0,w=m?l:h,f=Va.useCallback(u=>{m||b(u),d?.(u)},[m,d]);return Dl(ml.Provider,{value:e,children:Dl(Df,{open:w,children:Dl(Rn,{theme:t,mobileBreakpoint:r,drawerDirection:n,dialogWidth:o,drawerMaxWidth:i,drawerMinWidth:a,style:s,open:w,onOpenChange:f,children:p})})})}var xi=Object.assign(ux,{Trigger:Rf,Content:kf});import{createContext as fx,useContext as mx}from"react";var Pl=fx(null);function Ol(){let e=mx(Pl);if(!e)throw new Error("RelayHistory compound components must be used within <RelayHistory>");return e}import*as yr from"react";import{jsx as ao}from"react/jsx-runtime";function Pf({className:e}){let t=Ol(),{open:r}=Jr();return yr.useEffect(()=>{r&&_e("relay","history_opened")},[r]),ao(ge,{feature:"relay",children:ao(Sn,{ariaTitle:"Transfer history",className:e??t.className,children:ao(gx,{})})})}function gx(){let e=Ol(),{theme:t}=Jr(),r=yr.useMemo(()=>{if(e.client)return e.client;let u=_n({apiBaseUrl:e.apiBaseUrl,environment:e.environment});return Ut({baseUrl:u})},[e.client,e.apiBaseUrl,e.environment]),n=e.recipient??e.walletAddress,o=!!(n&&dt(n)),[i,a]=yr.useState(),[s,l]=yr.useState(!1),[d,p]=yr.useState(),h=yr.useRef(e.onError);h.current=e.onError,yr.useEffect(()=>{if(!o){a(void 0),l(!1),p(void 0);return}let u=!1;return a(void 0),l(!0),p(void 0),r.getConfig().then(c=>{u||a(c)}).catch(c=>{if(u)return;let y=c instanceof Error?c:new Error(String(c));p(y),h.current?.(y)}).finally(()=>{u||l(!1)}),()=>{u=!0}},[r,o]);let{orders:b,ordersLoading:m,ordersError:w}=Gn({client:r,recipient:o?n:void 0,enabled:!!i,onError:e.onError}),f=yr.useCallback(u=>{if(!e.onOutlink)return;let y=u.target.closest?.('a[target="_blank"]');y?.href&&e.onOutlink(y.href)},[e.onOutlink]);return ao("div",{className:"rd-root rd-wizard","data-theme":t,children:o?ao("div",{onClick:f,children:ao(za,{orders:b,isLoading:s||m,error:d??w,catalog:i,showTitle:!1})}):ao("p",{className:"rd-muted","data-testid":"rd-history-empty-state",children:"Connect a wallet or provide an address to see transfer history."})})}import{jsx as Bl}from"react/jsx-runtime";function Of({asChild:e,children:t}){return Bl(ge,{feature:"relay",children:Bl(Wo,{asChild:e??t!=null,children:t??Bl("button",{type:"button","data-track":"open",children:"History"})})})}import{jsx as Bf}from"react/jsx-runtime";function hx(e){let{theme:t="dark",mobileBreakpoint:r,drawerDirection:n,dialogWidth:o="min(640px, calc(100vw - 32px))",drawerMaxWidth:i,drawerMinWidth:a,style:s,open:l,onOpenChange:d,children:p}=e;return Bf(Pl.Provider,{value:e,children:Bf(Rn,{theme:t,mobileBreakpoint:r,drawerDirection:n,dialogWidth:o,drawerMaxWidth:i,drawerMinWidth:a,style:s,open:l,onOpenChange:d,children:p})})}var zf=Object.assign(hx,{Trigger:Of,Content:Pf});import*as Ur from"react";import*as xr from"react";var qa=[],bx=3e4;function Ff({client:e,recipient:t}){let[r,n]=xr.useState({targets:qa}),[o,i]=xr.useState(0),a=xr.useRef(void 0),s=xr.useRef(void 0),l=t&&dt(t)?t.toLowerCase():void 0;xr.useEffect(()=>{if(!l){n({targets:qa});return}let f=!1,u=a.current;if(!u||u.client!==e||u.recipientKey!==l||u.generation!==o){let c=(async()=>{let y,g=[];try{g=(await e.getConfig()).targets}catch(C){y=C instanceof Error?C:new Error(String(C))}let v=g.length===0?[()=>e.getRecovery({user:l})]:g.map(C=>()=>e.getRecovery({user:l,target:C.symbol})),k=await Promise.all(v.map(async C=>{try{return{info:await C()}}catch(S){return{error:S instanceof Error?S:new Error(String(S))}}})),R=g.length===0?k[0]?.info?[{symbol:"",isDefault:!0,info:k[0].info}]:[]:g.flatMap((C,S)=>k[S]?.info?[{symbol:C.symbol,isDefault:C.isDefault,info:k[S].info}]:[]),I=k.find(C=>C.error)?.error;return{targets:R,badgeFailed:!!(y||I&&R.length===0),error:y??I}})().catch(y=>({targets:qa,badgeFailed:!0,error:y instanceof Error?y:new Error(String(y))}));u={client:e,recipientKey:l,generation:o,promise:c},a.current=u,c.finally(()=>{s.current={client:e,recipientKey:l,at:Date.now()},a.current?.promise===c&&(a.current=void 0)})}return u.promise.then(c=>{f||n({recipientKey:l,targets:c.targets,badgeFailed:c.badgeFailed,error:c.error})}),()=>{f=!0}},[e,l,o]);let d=xr.useCallback(()=>i(f=>f+1),[]),p=xr.useCallback(()=>{if(!l)return;let f=a.current;if(f?.client===e&&f.recipientKey===l)return;let u=s.current;u?.client===e&&u.recipientKey===l&&Date.now()-u.at<bx||i(c=>c+1)},[e,l]),h=l&&r.recipientKey===l?r.targets:qa,b=l&&r.recipientKey===l?r.error:void 0,m=!!(l&&r.recipientKey!==l),w=!!(l&&r.recipientKey===l&&r.badgeFailed);return xr.useMemo(()=>({count:w?0:ja(Uo(h)),targets:h,loading:m,error:b,refresh:d,refreshIfStale:p}),[h,m,w,b,d,p])}import{createContext as wx,useContext as yx}from"react";var zl=wx(null);function Fl(){let e=yx(zl);if(!e)throw new Error("RelayRecovery compound components must be used within <RelayRecovery>");return e}function Ul(){return Fl().props}function Uf(){return Fl().recovery}function jf(){return Fl().recovery.count}import*as so from"react";import{jsx as lo,jsxs as vx}from"react/jsx-runtime";function Wf({className:e}){let t=Ul(),{open:r}=Jr();return so.useEffect(()=>{r&&_e("relay","recovery_opened")},[r]),lo(ge,{feature:"relay",children:lo(Sn,{ariaTitle:"Recover stuck funds",className:e??t.className,children:lo(xx,{})})})}function xx(){let e=Ul(),{targets:t,loading:r,refresh:n}=Uf(),{theme:o}=Jr(),i=so.useMemo(()=>_n({apiBaseUrl:e.apiBaseUrl,environment:e.environment}),[e.apiBaseUrl,e.environment]),a=so.useMemo(()=>e.client?e.client:Ut({baseUrl:i}),[e.client,i]),s=so.useMemo(()=>({walletAddress:e.walletAddress,walletChainId:e.walletChainId,sendTransaction:e.sendTransaction,writeContract:e.writeContract,readContract:e.readContract,switchChain:e.switchChain,waitForReceipt:e.waitForReceipt,getBalance:e.getBalance}),[e.walletAddress,e.walletChainId,e.sendTransaction,e.writeContract,e.readContract,e.switchChain,e.waitForReceipt,e.getBalance]),l=e.walletAddress&&dt(e.walletAddress)?e.walletAddress:void 0,d=!!(l&&(!e.recipient||dt(e.recipient)&&e.recipient.toLowerCase()===l.toLowerCase())),p=d?l:void 0,h=nt(e.environment),b=sr("apps.json",h,y=>Mi(y,h)),m=so.useMemo(()=>e.trustedFactories??Ua(b),[e.trustedFactories,b]),w=!!(e.writeContract&&e.readContract&&e.waitForReceipt),f=!!p&&w,u=p,{orders:c}=Gn({client:a,recipient:f?u:void 0,enabled:f,live:!1});return vx("div",{className:"rd-root rd-wizard","data-theme":o,children:[!l&&lo("p",{className:"rd-muted","data-testid":"rd-recovery-connect-note",children:"Connect a wallet to check recoverable funds."}),l&&!d&&lo("p",{className:"rd-muted","data-testid":"rd-recovery-recipient-note",children:"Recovery is only available for the connected wallet."}),d&&!w&&lo("p",{className:"rd-muted","data-testid":"rd-recovery-unsupported-note",children:"This wallet can't sign recovery transactions."}),f&&lo(_a,{client:e.client,apiBaseUrl:i,recipient:p,wallet:s,trustedFactories:m,targets:t,targetsLoading:r,orders:c,onRecovered:n,onRecoverySuccess:e.onRecoverySuccess,showTitle:!1,onError:e.onError})]})}import{jsx as jl}from"react/jsx-runtime";function Gf({asChild:e,children:t}){let r=jf();return jl(ge,{feature:"relay",children:jl(Wo,{asChild:e??t!=null,dataAttributes:{"data-rd-recovery-count":r},children:t??jl("button",{type:"button","data-track":"open",children:"Recover"})})})}import{jsx as _f}from"react/jsx-runtime";function kx(e){let{theme:t="dark",mobileBreakpoint:r,drawerDirection:n,dialogWidth:o,drawerMaxWidth:i,drawerMinWidth:a,style:s,open:l,onOpenChange:d,children:p}=e,[h,b]=Ur.useState(!1),m=l!==void 0,w=m?l:h,f=Ur.useCallback(R=>{m||b(R),d?.(R)},[m,d]),u=Ur.useMemo(()=>{if(e.client)return e.client;let R=_n({apiBaseUrl:e.apiBaseUrl,environment:e.environment});return Ut({baseUrl:R})},[e.client,e.apiBaseUrl,e.environment]),c=e.walletAddress&&dt(e.walletAddress)?e.walletAddress:void 0,y=c&&(!e.recipient||dt(e.recipient)&&e.recipient.toLowerCase()===c.toLowerCase())?c:void 0,g=Ff({client:u,recipient:y});Ur.useEffect(()=>{w&&g.refreshIfStale()},[w,g.refreshIfStale]);let v=Ur.useRef(void 0);Ur.useEffect(()=>{!w||!g.error||v.current===g.error||(v.current=g.error,e.onError?.(g.error))},[w,g.error,e.onError]);let k=Ur.useMemo(()=>({props:e,recovery:g}),[e,g]);return _f(zl.Provider,{value:k,children:_f(Rn,{theme:t,mobileBreakpoint:r,drawerDirection:n,dialogWidth:o,drawerMaxWidth:i,drawerMinWidth:a,style:s,open:w,onOpenChange:f,children:p})})}var Hf=Object.assign(kx,{Trigger:Gf,Content:Wf});import{useCallback as Rx,useEffect as Sx,useMemo as Cx,useRef as Nx,useState as Ya}from"react";function Qf(e={}){let t=Nx(e);t.current=e;let r=Cx(()=>{if(e.client)return e.client;if(!e.apiBaseUrl)throw new Error("useRelayConfig: either `client` or `apiBaseUrl` must be provided");return Ut({baseUrl:e.apiBaseUrl})},[e.client,e.apiBaseUrl]),n=e.enabled??!0,o=e.refetchInterval,[i,a]=Ya(),[s,l]=Ya(!1),[d,p]=Ya(),[h,b]=Ya(0);Sx(()=>{if(!n){a(void 0),l(!1),p(void 0);return}let w=!1,f=!1;a(void 0),l(!0),p(void 0);async function u(){if(!(w||f)){f=!0;try{let y=await r.getConfig();if(w)return;a(y),p(void 0)}catch(y){if(w)return;let g=y instanceof Error?y:new Error(String(y));p(g),t.current.onError?.(g)}finally{f=!1,w||l(!1)}}}u();let c=typeof o=="number"&&Number.isFinite(o)&&o>0?setInterval(()=>{u()},o):void 0;return()=>{w=!0,c&&clearInterval(c)}},[r,n,h,o]);let m=Rx(()=>b(w=>w+1),[]);return{config:i,loading:s,error:d,refresh:m}}import{useQuery as Tx}from"@tanstack/react-query";import{useCallback as Vf,useEffect as Ix,useMemo as Wl,useRef as qf}from"react";var Ex=1,Yf=new WeakMap;function Mx(e){let t=Yf.get(e);if(t!==void 0)return t;let r=Ex++;return Yf.set(e,r),r}function Kf(e={}){let t=qf(e);t.current=e;let r=Wl(()=>{if(e.client)return e.client;if(!e.apiBaseUrl)throw new Error("useRelayRecovery: either `client` or `apiBaseUrl` must be provided");return Ut({baseUrl:e.apiBaseUrl})},[e.client,e.apiBaseUrl]),n=e.recipient,o=n&&dt(n)?n:void 0,i=e.target,a=e.query,s=Wl(()=>Mx(r),[r]),l=Wl(()=>["relay","recovery",s,o??null,i??null],[s,o,i]),d=Tx({retry:!1,...a,queryKey:l,queryFn:async()=>{if(!o)throw new Error("useRelayRecovery: a valid EVM recipient is required");return r.getRecovery({user:o,target:i})},enabled:o?a?.enabled:!1}),p=qf(0);Ix(()=>{let f=d.error,u=d.errorUpdatedAt;!f||u===p.current||(p.current=u,t.current.onError?.(f),f instanceof en&&f.status===401&&t.current.onUnauthorized?.())},[d.error,d.errorUpdatedAt]);let h=Vf(()=>{d.refetch()},[d.refetch]),b=bi({recipient:e.recipient,wallet:e.wallet,trustedFactories:e.trustedFactories,onError:e.onError,onRecoverySuccess:e.onRecoverySuccess,onChanged:h}),m=d.data,w=Vf(async(f,u)=>{m&&await b.recover(m,f,u)},[b,m]);return{info:m,loading:d.isLoading,error:d.error??void 0,isFetching:d.isFetching,refresh:h,recover:w,recoveryState:b.stateFor(m?.forwarder)}}import{Fragment as Ox,jsx as jr,jsxs as Wr}from"react/jsx-runtime";var Ax={bscBridge:"https://bscscan.com/tx/",crossFinalize:"https://scan.crosstoken.io/tx/",crossExecute:"https://scan.crosstoken.io/tx/"},Lx={bscBridge:"Bridge tx (BSC)",crossFinalize:"Finalize tx (CROSS)",crossExecute:"Execute tx (CROSS)"};function Dx(e){return e==="done"?"\u2713":e==="active"?"\u25CF":""}function Zf(e){return e==="FAILED"||e==="REFUNDED"||e==="RELAY_REFUNDED"||e==="EXPIRED"}function Px(e){return e==="done"?"rd-stepper-item rd-stepper-item-done":e==="active"?"rd-stepper-item rd-stepper-item-active":"rd-stepper-item rd-stepper-item-pending"}function Xf({orderId:e,order:t,error:r}){let n=!t&&!r;return Wr("section",{className:"rd-card",children:[Wr("div",{className:"rd-card-header",children:[jr("h2",{className:"rd-card-title",children:"4. Status"}),t&&jr("span",{className:`rd-status-pill${t.status==="COMPLETED"?" rd-status-pill-success":Zf(t.status)?" rd-status-pill-failure":""}`,children:t.status})]}),Wr("p",{className:"rd-card-hint",children:["Order ",e]}),n&&Wr("p",{className:"rd-muted",children:[jr("span",{className:"rd-spinner"})," Loading status..."]}),r&&Wr("div",{className:"rd-callout rd-callout-danger",children:["Couldn't load order status: ",r.message]}),t&&Wr(Ox,{children:[jr("ol",{className:"rd-stepper",children:t.steps.map((o,i)=>Wr("li",{className:Px(o.status),children:[Wr("div",{className:"rd-stepper-rail",children:[jr("span",{className:"rd-stepper-dot",children:Dx(o.status)}),i<t.steps.length-1&&jr("span",{className:"rd-stepper-line"})]}),Wr("div",{className:"rd-stepper-body",children:[jr("div",{className:"rd-stepper-label",children:o.label}),o.key==="bridge"&&t.txs.bscBridge&&jr("div",{className:"rd-stepper-meta",children:jr(Gl,{orderTxs:t.txs,txKey:"bscBridge"})}),o.key==="deliver"&&(t.txs.crossFinalize||t.txs.crossExecute)&&Wr("div",{className:"rd-stepper-meta",children:[t.txs.crossFinalize&&jr(Gl,{orderTxs:t.txs,txKey:"crossFinalize"}),t.txs.crossExecute&&jr(Gl,{orderTxs:t.txs,txKey:"crossExecute"})]})]})]},o.key))}),Zf(t.status)&&Wr("div",{className:"rd-callout rd-callout-danger",children:["This order did not complete successfully (status: ",t.status,"). If funds were deposited, refer to the refund address on the order for recovery."]}),t.status==="COMPLETED"&&jr("div",{className:"rd-callout rd-callout-success",children:"crossd delivered. This order is complete."})]})]})}function Gl({orderTxs:e,txKey:t}){let r=e[t];return r?Wr("a",{href:`${Ax[t]}${r}`,target:"_blank",rel:"noreferrer",children:[Lx[t],": ",r.slice(0,10),"..."]}):null}function Ka(e){return`${e.chainId}:${e.address.toLowerCase()}`}function _l(e,t){return Ka(e)===Ka(t)}function Za(e,t){if(t)return e.find(r=>_l(r,t))}function vi(e,t,r){return t?{fromTokens:(r==="swap"?[t.swap.from]:t.bridge.from).map(o=>Za(e,o)).filter(o=>!!o),targetToken:Za(e,t.target)}:{fromTokens:[],targetToken:void 0}}function Xa(e,t){return e.some(r=>r.chainId===t.chainId&&r.address.toLowerCase()===t.address.toLowerCase())}var Bx={swap:"swap",bridge:"bridge",transfer:"transferCrypto"};function ki(e,t){return t?.[Bx[e]]??e!=="transfer"}var Jf={dev:"https://stg.oneusd.money/",stage:"https://stg.oneusd.money/",production:"https://www.oneusd.money/"};function $f(e){let t=e.trim().toLowerCase().replace(/\.$/,"");return t==="oneusd.money"||t.endsWith(".oneusd.money")}function em(e,t){return e?.items?.find(({id:n,type:o})=>n.toLowerCase()==="oneusd"||o.toLowerCase()==="oneusd")?.url[t]}import*as Ja from"react";function tm(e){let[t,r]=Ja.useState(null);return Ja.useEffect(()=>{if(!e)return;let n=!0;return Us().then(o=>{n&&r(o)}).catch(()=>{}),()=>{n=!1}},[e]),t}function rm(e,t){return t==="bridge"?!0:e==="bridge"||e==="bridge-swap"||e==="swap-bridge"}function zx(e){if(!e)return"";let[t="0",r=""]=e.replace(/,/g,"").split("."),o=(t.replace(/^0+(?=\d)/,"")||"0").replace(/\B(?=(\d{3})+(?!\d))/g,","),i=r.slice(0,6).replace(/0+$/,"");return i?`${o}.${i}`:o}function Fx(e){return e===56||e===97?"BSC":e===612044||e===612055||e===5555?"ONEchain":`Chain ${e}`}function nm(e,t){return rm(e.pathType,t)?"Bridging":"Swapping"}function om(e,t){let r=zx(e.toAmount);if(rm(e.pathType,t)){let n=`arriving on ${Fx(e.toToken.chainId)}`;return r?`${r} ${n}`:n}return r?`${r} Swapped`:"Transaction completed"}import{jsx as Hn,jsxs as Ux}from"react/jsx-runtime";function im(e){return Hn("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",...e,children:Hn("path",{d:"m7 3-3 3 3 3M4 6h13a3 3 0 0 1 3 3v1M17 21l3-3-3-3m3 3H7a3 3 0 0 1-3-3v-1",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function am(e){return Hn("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",...e,children:Hn("path",{d:"M7 7h13m0 0-3-3m3 3-3 3M17 17H4m0 0 3 3m-3-3 3-3",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function sm(e){return Ux("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",...e,children:[Hn("path",{d:"m21 3-7.2 18-4.1-7.7L2 9.2 21 3Z",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),Hn("path",{d:"m9.7 13.3 4.1-4.1",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]})}function lm(e){return Hn("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",...e,children:Hn("path",{d:"m6 6 12 12M18 6 6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}de(`.gou-fab{position:fixed;right:var(--gou-right, 2rem);bottom:calc(env(safe-area-inset-bottom,0px) + var(--gou-bottom, 2rem));z-index:var(--gou-z-index, 40);display:inline-flex;width:max-content;align-items:center;gap:8px;padding:4px 20px 4px 4px;border:0;border-radius:9999px;background:#fff;color:#121212;box-shadow:0 4px 20px #00000073;font:inherit;cursor:pointer;transition:gap .25s ease,padding .25s ease,transform .15s ease,background .15s ease;-webkit-tap-highlight-color:transparent}[data-theme=light] .gou-fab{background:#121212;color:#fff;box-shadow:0 4px 20px #00000040}.gou-fab:active:not(:disabled){transform:scale(.96)}.gou-fab:focus-visible{outline:3px solid #f3742e;outline-offset:3px}.gou-fab[data-icon-only=true]{gap:0;padding:0}.gou-fab:disabled{cursor:default}.gou-fab[data-trigger-mode=button]{position:relative;right:auto;bottom:auto;z-index:auto;vertical-align:middle}[data-gou-mode=button]{display:inline-block}.gou-fab-status{pointer-events:none;cursor:default}.gou-fab-icon-frame{position:relative;display:inline-flex;width:38px;height:38px;flex-shrink:0;border-radius:9999px;transition:width .25s ease,height .25s ease}.gou-fab-icon{display:block;width:100%;height:100%;border-radius:inherit;object-fit:contain}.gou-fab[data-icon-only=true] .gou-fab-icon-frame{width:52px;height:52px}.gou-fab-progress-ring{position:absolute;inset:-2px;border:2px solid rgba(243,116,46,.25);border-top-color:#f3742e;border-radius:9999px;animation:gou-spin .9s linear infinite}.gou-fab-label{overflow:hidden;max-width:180px;opacity:1;font-size:14px;font-weight:600;line-height:1.5;white-space:nowrap;transition:max-width .2s ease,opacity .2s ease}.gou-fab[data-icon-only=true] .gou-fab-label{max-width:0;opacity:0}.gou-fab[data-tx-phase] .gou-fab-label{max-width:260px}.gou-fab-trigger-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;line-height:1.25}.gou-fab-apr{color:var(--ds-system-purple-high, #9b78ff);font-size:11px;font-weight:600;line-height:1.25}.gou-fab[data-tx-phase=success]{animation:gou-result-success 1.2s ease-out}.gou-fab[data-tx-phase=failure]{animation:gou-result-failure 1.2s ease-out}.gou-fab-dots>span{animation:gou-status-dot 1.4s ease-in-out infinite}.gou-fab-dots>span:nth-child(2){animation-delay:.2s}.gou-fab-dots>span:nth-child(3){animation-delay:.4s}.gou-tooltip{position:absolute;right:0;bottom:calc(100% + 8px);pointer-events:none;padding:6px 10px;border-radius:8px;background:#121212;color:#fff;box-shadow:0 8px 24px #0000002e;font-size:12px;font-weight:500;opacity:0;white-space:nowrap;transition:opacity .2s ease}[data-theme=dark] .gou-tooltip{background:#f5f5f5;color:#121212}.gou-fab:hover .gou-tooltip{opacity:1}.gou-shell{--ds-bg-default: #1c1c1d;--ds-bg-dim: #181819;--ds-surface-default: #1c1c1d;--ds-surface-medium: #212224;--ds-surface-high: rgba(255, 255, 255, .08);--ds-border-default: rgba(255, 255, 255, .1);--ds-content-highest: #ffffff;--ds-content-high: rgba(255, 255, 255, .85);--ds-content-medium: rgba(255, 255, 255, .65);--ds-content-low: rgba(255, 255, 255, .4);--ds-accent-primary-default: #f3742e;--ds-accent-primary-high: #f3742e;--ds-accent-primary-low: rgba(243, 116, 46, .1);--ds-accent-primary-on: #ffffff;--gou-bg: #1c1c1d;--gou-card: #212224;--gou-card-hover: rgba(255, 255, 255, .08);--gou-border: rgba(255, 255, 255, .1);--gou-text: #ffffff;--gou-muted: rgba(255, 255, 255, .65);background:var(--gou-bg);color:var(--gou-text)}.gou-shell[data-theme=light]{--ds-bg-default: #ffffff;--ds-bg-dim: #fafbfd;--ds-surface-default: #ffffff;--ds-surface-medium: rgba(0, 0, 0, .01);--ds-surface-high: rgba(0, 0, 0, .03);--ds-border-default: rgba(0, 0, 0, .06);--ds-content-highest: #000000;--ds-content-high: rgba(0, 0, 0, .85);--ds-content-medium: rgba(0, 0, 0, .65);--ds-content-low: rgba(0, 0, 0, .4);--gou-bg: #ffffff;--gou-card: #ffffff;--gou-card-hover: rgba(0, 0, 0, .03);--gou-border: rgba(0, 0, 0, .06);--gou-text: #000000;--gou-muted: rgba(0, 0, 0, .65)}.gou-chooser{overflow:hidden}.gou-chooser-body{position:relative;display:flex;flex-direction:column;gap:24px;padding:24px}.gou-close{position:absolute;top:16px;right:16px;display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;padding:0;border:0;border-radius:9999px;background:transparent;color:var(--gou-muted);cursor:pointer}.gou-close:hover{background:var(--gou-card-hover);color:var(--gou-text)}.gou-close svg{width:20px;height:20px}.gou-intro{display:flex;flex-direction:column;gap:6px;padding:0 32px 0 0;text-align:left}.gou-intro h2{margin:0;color:var(--gou-text);font-size:20px;font-weight:650;line-height:1.6}.gou-intro-link{display:inline-flex;width:fit-content;align-items:center;gap:4px;color:var(--ds-accent-primary-default, #f3742e);font-size:14px;font-weight:600;line-height:1.5;text-decoration:none}.gou-intro-link:hover{text-decoration:underline;text-underline-offset:3px}.gou-intro-link:focus-visible{outline:2px solid #f3742e;outline-offset:3px;border-radius:4px}.gou-actions{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}.gou-action{display:flex;width:100%;min-width:0;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--gou-border);border-radius:12px;background:var(--gou-card);color:var(--gou-text);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease}.gou-action:hover{border-color:#f3742e;background:var(--gou-card-hover)}.gou-action:focus-visible{outline:2px solid #f3742e;outline-offset:2px}.gou-action-icon{display:inline-flex;width:32px;height:32px;flex-shrink:0;align-items:center;justify-content:center;border-radius:9999px;background:#f3742e1f;color:var(--ds-accent-primary-default, #f3742e);transition:background .15s ease,color .15s ease}.gou-action:hover .gou-action-icon{background:var(--ds-accent-primary-default, #f3742e);color:var(--ds-accent-primary-on, #ffffff)}.gou-action-icon svg{width:18px;height:18px}.gou-action-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}.gou-action-title{display:flex;min-width:0;align-items:center;gap:6px;font-size:16px;font-weight:650}.gou-action-description{overflow:hidden;color:var(--gou-muted);font-size:14px;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}.gou-action-eta{flex-shrink:0;color:var(--gou-muted);font-size:12px}.gou-badge{flex-shrink:0;padding:2px 6px;border-radius:5px;background:#f3742e24;color:#f3742e;font-size:10px;font-weight:650}.gou-execution{height:auto;max-height:90dvh;overflow:hidden}.gou-execution .bf-root{width:100%;max-height:90dvh}.gou-connect-required,.gou-route-state{display:flex;min-height:360px;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:32px;text-align:center}.gou-connect-required h3,.gou-route-state h3{margin:0;color:var(--gou-text);font-size:18px}.gou-connect-required p,.gou-route-state p{max-width:320px;margin:0;color:var(--gou-muted);font-size:14px;line-height:1.5}.gou-lock{font-size:28px}.gou-connect-required button{width:100%;max-width:320px;margin-top:10px;padding:12px 16px;border:0;border-radius:12px;background:var(--ds-accent-primary-default, #00ceb2);color:var(--ds-accent-primary-on, #001b18);font:inherit;font-size:16px;font-weight:650;cursor:pointer}.gou-spinner{width:28px;height:28px;border:3px solid var(--gou-border);border-top-color:var(--ds-accent-primary-default, #00ceb2);border-radius:9999px;animation:gou-spin .8s linear infinite}@keyframes gou-spin{to{transform:rotate(360deg)}}@keyframes gou-status-dot{0%,60%,to{opacity:.2}30%{opacity:1}}@keyframes gou-result-success{0%{outline:0 solid rgba(30,202,119,0)}30%{outline:3px solid rgba(30,202,119,.75)}to{outline:0 solid rgba(30,202,119,0)}}@keyframes gou-result-failure{0%{outline:0 solid rgba(255,60,83,0)}30%{outline:3px solid rgba(255,60,83,.75)}to{outline:0 solid rgba(255,60,83,0)}}@media(max-width:767px){.gou-fab{right:var(--gou-right-mobile, 1rem)}.gou-fab-icon-frame{width:32px;height:32px}.gou-fab[data-icon-only=true] .gou-fab-icon-frame{width:40px;height:40px}.gou-chooser-body{padding:24px 16px 28px}.gou-execution{height:auto;max-height:70dvh}.gou-execution .bf-root{max-height:calc(70dvh - 24px)}}@media(prefers-reduced-motion:reduce){.gou-fab,.gou-fab-icon-frame,.gou-fab-label,.gou-tooltip{transition:none}.gou-spinner,.gou-fab-progress-ring{animation-duration:1.6s}.gou-fab[data-tx-phase=success],.gou-fab[data-tx-phase=failure],.gou-fab-dots>span{animation:none}}
|
|
20
20
|
`);import{Fragment as Hx,jsx as je,jsxs as jt}from"react/jsx-runtime";var jx=[{id:"swap",label:"Swap",eta:"Instant",Icon:im},{id:"bridge",label:"Bridge",Icon:am},{id:"transfer",label:"Transfer Crypto",eta:"QR deposit",Icon:sm}],Wx=4e3;function dm(e){return e instanceof Error?e.message:typeof e=="string"?e:"Unknown error"}function $a(e,t){try{e?.(t)}catch{}}function Gx({compactTrigger:e,collapseOnScroll:t,scrollThreshold:r}){let[n,o]=ze.useState(!1),[i,a]=ze.useState(!1);return ze.useEffect(()=>{o(go())},[]),ze.useEffect(()=>{if(t===!1){a(!1);return}let s=()=>a(window.scrollY>(r??200));return s(),window.addEventListener("scroll",s,{passive:!0}),()=>window.removeEventListener("scroll",s)},[t,r]),!!(e||n||i)}function _x({loading:e}){return jt("div",{className:"gou-route-state",role:"status",children:[e&&je("span",{className:"gou-spinner","aria-hidden":"true"}),je("h3",{children:e?"Preparing route":"Route unavailable"}),je("p",{children:e?"Loading token and contract configuration.":"The configured ONEUSD route is not available in this environment."})]})}function cm({walletAddress:e,tokens:t,pairs:r,loading:n=!1,bridge:o,relay:i,env:a,targetSymbol:s,relayTargetSymbol:l="ONEUSD",targetIconUrl:d,mode:p="floating",buttonComponent:h,theme:b="dark",mobileBreakpoint:m=768,drawerDirection:w="bottom",dialogWidth:f="480px",drawerMaxWidth:u,drawerMinWidth:c,style:y,className:g,contentClassName:v,hidden:k=!1,compactTrigger:R,collapseOnScroll:I=!0,scrollThreshold:C=200,waitForTransaction:S,transactionResultDurationMs:A=Wx,onRequestConnect:D,onEvent:U}){let[M,G]=ze.useState(!1),[E,O]=ze.useState(null),[ie,Y]=ze.useState(!1),[P,pe]=ze.useState(null),[$,Q]=ze.useState(!1),B=ze.useRef(0),J=ze.useRef(!1),V=ze.useRef(null),le=ze.useRef(!0),he=Gx({compactTrigger:R,collapseOnScroll:I,scrollThreshold:C}),ee=ze.useMemo(()=>nt(a),[a]),ce=sr("apps.json",ee,z=>z?.getOneUsd?.modes),we=sr("app-launcher-v2.json",ee,z=>em(z,ee))??Jf[ee],Je=ze.useMemo(()=>jx.filter(({id:z})=>ki(z,ce)),[ce]),oe=Je.length>0,Me=tm(!k&&oe),$e=ze.useMemo(()=>vi(t,r,"swap"),[r,t]),Te=ze.useMemo(()=>vi(t,r,"bridge"),[r,t]),Ae=$e.targetToken??Te.targetToken,be=s??Ae?.symbol??"ONEUSD",ht=d??Ae?.iconUrl??hl,Et=p==="floating"&&he,vt=p==="button"&&h?h:"button";ze.useEffect(()=>(le.current=!0,()=>{le.current=!1,V.current&&clearTimeout(V.current)}),[]),ze.useEffect(()=>{Q(!$f(window.location.hostname))},[]),ze.useEffect(()=>{oe||G(!1)},[oe]);let Le=ze.useCallback(z=>U?.(z),[U]),it=ze.useCallback(()=>{P||!oe||(Le({name:"fab_click",state:Et?"icon_only":"expanded"}),G(!0))},[Le,oe,P,Et]),Mt=ze.useCallback(z=>{P||!ki(z,ce)||(Le({name:"action_select",action:z}),G(!1),z==="transfer"&&Y(!0),O(z))},[Le,ce,P]),Qe=ze.useCallback(z=>{Le({name:"connect_click",action:z}),Promise.resolve(D?.()).catch(Ie=>{Le({name:"failure",action:z,message:dm(Ie)})})},[Le,D]),et=E==="swap"||E==="bridge"?E:null,De=et==="swap"?$e:Te,bt=!!(r&&De.targetToken&&De.fromTokens.length>0),qt=ze.useMemo(()=>{if(!De.targetToken)return;let z=De.targetToken;return Ie=>{let Ze=o.getToTokens?.(Ie,t);return Ze&&!Xa(Ze,z)?[]:[z]}},[o.getToTokens,De.targetToken,t]),{onSubmitted:kt,onSuccess:Ve,onFailed:tt,...ct}=o,{onDeposited:Pe,onError:at,...qe}=i??{},rt=ze.useCallback((z,Ie,Ze,F,ne)=>{!le.current||B.current!==z||(pe({id:z,phase:Ie,action:Ze,label:F,txHash:ne}),V.current&&clearTimeout(V.current),V.current=setTimeout(()=>{!le.current||B.current!==z||(J.current=!1,pe(null),V.current=null)},Math.max(0,A)))},[A]),st=ze.useCallback((z,Ie)=>{if(J.current)return;J.current=!0;let Ze=++B.current,F=nm(z,Ie);pe({id:Ze,phase:"pending",action:Ie,label:F,txHash:z.txHash}),G(!1),O(null),$a(kt,z),Promise.resolve().then(()=>S?.(z)).then(()=>{!le.current||B.current!==Ze||(rt(Ze,"success",Ie,om(z,Ie),z.txHash),Le({name:"success",action:Ie,txHash:z.txHash}))}).catch(ne=>{if(!le.current||B.current!==Ze)return;let ue=dm(ne);rt(Ze,"failure",Ie,"Transaction failed",z.txHash),$a(tt,{message:ue,txHash:z.txHash}),Le({name:"failure",action:Ie,message:ue})})},[Le,tt,kt,rt,S]);return je(ge,{feature:"get_one_usd",children:jt("div",{className:g,"data-theme":b,"data-gou-mode":p,children:[jt(Rn,{theme:b,mobileBreakpoint:m,drawerDirection:w,dialogWidth:f,drawerMaxWidth:u,drawerMinWidth:c,open:M,onOpenChange:G,children:[!k&&oe&&(p==="button"||!P)&&jt(vt,{type:"button",className:"gou-fab",style:y,"data-trigger-mode":p,"data-icon-only":Et?"true":"false",onClick:it,disabled:!!P,"aria-label":`Get ${be}`,"data-track":"fab_click",children:[p==="floating"&&jt("span",{className:"gou-tooltip",children:["Choose how to get ",be]}),je("span",{className:"gou-fab-icon-frame",children:je("img",{className:"gou-fab-icon",src:ht,alt:""})}),jt("span",{className:"gou-fab-label gou-fab-trigger-copy",children:[jt("span",{children:["Get ",be]}),Me!==null&&je("span",{className:"gou-fab-apr",children:oa(Me)})]})]}),P&&jt("div",{className:"gou-fab gou-fab-status",style:p==="floating"?y:void 0,"data-floating-status":"true","data-icon-only":"false","data-tx-phase":P.phase,role:"status","aria-live":"polite","aria-label":P.phase==="pending"?`${P.label} transaction in progress`:P.label,children:[jt("span",{className:"gou-fab-icon-frame",children:[je("img",{className:"gou-fab-icon",src:ht,alt:""}),P.phase==="pending"&&je("span",{className:"gou-fab-progress-ring","aria-hidden":"true"})]}),je("span",{className:"gou-fab-label",children:P.phase==="pending"?jt(Hx,{children:[P.label,jt("span",{className:"gou-fab-dots","aria-hidden":"true",children:[je("span",{children:"."}),je("span",{children:"."}),je("span",{children:"."})]})]}):P.label})]}),je(Sn,{ariaTitle:`Get ${be}`,className:`gou-shell gou-chooser ${v??""}`,children:jt("div",{className:"gou-chooser-body",children:[je("button",{type:"button",className:"gou-close",onClick:()=>G(!1),"aria-label":"Close",children:je(lm,{})}),jt("header",{className:"gou-intro",children:[jt("h2",{children:["Get ",be]}),$&&jt("a",{className:"gou-intro-link",href:we,target:"_blank",rel:"noopener noreferrer","aria-label":"What is ONEUSD? Opens in a new tab","data-track":"oneusd_learn_more",children:["What is ONEUSD? ",je("span",{"aria-hidden":"true",children:"\u2197"})]})]}),je("ul",{className:"gou-actions",children:Je.map(({id:z,label:Ie,eta:Ze,Icon:F})=>{let ne=z==="swap"?`Swap the ${$e.fromTokens[0]?.symbol??"ONE"} you already hold`:z==="bridge"?`Bridge USDT to ${be}`:"Deposit from any chain or exchange",ue=z==="swap"?r?.swap.feeDelegated:z==="bridge"?r?.bridge.feeDelegated:!1;return je("li",{children:jt("button",{type:"button",className:"gou-action",onClick:()=>Mt(z),"data-track":"action_select","data-track-id":z,children:[je("span",{className:"gou-action-icon",children:je(F,{})}),jt("span",{className:"gou-action-copy",children:[jt("span",{className:"gou-action-title",children:[je("span",{children:Ie}),ue&&je("span",{className:"gou-badge",children:"Fee Delegated"})]}),je("span",{className:"gou-action-description",children:ne})]}),Ze&&je("span",{className:"gou-action-eta",children:Ze})]})},z)})})]})})]}),je(Rn,{theme:b,mobileBreakpoint:m,drawerDirection:w,dialogWidth:f,drawerMaxWidth:u,drawerMinWidth:c,open:!!et,onOpenChange:z=>{z||O(null)},children:je(Sn,{ariaTitle:`${et==="bridge"?"Bridge":"Swap"} to ${be}`,className:`gou-shell gou-execution ${v??""}`,children:bt?je(Lo,{...ct,env:a,variant:"embedded",title:`${et==="bridge"?"Bridge":"Swap"} to ${be}`,walletAddress:e??"",isConnected:!!e,onRequestConnect:()=>Qe(et??"swap"),tokens:De.fromTokens,initialFromToken:De.fromTokens[0],initialToToken:De.targetToken,getToTokens:qt,onClose:()=>O(null),onBackToWallet:()=>O(null),onSubmitted:z=>{st(z,et??"swap")},onSuccess:z=>{$a(Ve,z)},onFailed:z=>{$a(tt,z),Le({name:"failure",action:et??"swap",message:z.message})}},`${et}:${De.fromTokens.map(z=>`${z.chainId}:${z.address}`).join(",")}`):je(_x,{loading:n||!r})})}),ie&&je(xi,{...qe,environment:qe.environment??a,theme:qe.theme??b,mobileBreakpoint:qe.mobileBreakpoint??m,drawerDirection:qe.drawerDirection??w,dialogWidth:qe.dialogWidth??f,drawerMaxWidth:qe.drawerMaxWidth??u,drawerMinWidth:qe.drawerMinWidth??c,walletAddress:e,open:E==="transfer",onOpenChange:z=>{z||O(null)},requireWalletConnection:!0,showRecovery:qe.showRecovery??!0,showRecipientInput:!1,hideAmount:!0,targetTokens:[l],defaultTarget:l,onRequestConnect:()=>Qe("transfer"),onDeposited:z=>{Pe?.(z),Le({name:"success",action:"transfer",txHash:z})},onError:z=>{at?.(z),Le({name:"failure",action:"transfer",message:z.message})},children:je(xi.Content,{})})]})})}import*as pn from"react";import*as Tm from"@radix-ui/react-dialog";import{Drawer as rv}from"vaul";import{createContext as Qx,useContext as Vx}from"react";var es=Qx(null);function Ri(){let e=Vx(es);if(!e)throw new Error("WalletConnectModal compound components must be used within <WalletConnectModal>");return e}import{useState as pm,useEffect as qx,useCallback as Yx}from"react";function ts(){let[e,t]=pm([]),[r,n]=pm(!0);qx(()=>{if(typeof window>"u"){n(!1);return}let i=[],a=l=>{let{info:d}=l.detail;d?.rdns&&!i.some(p=>p.rdns===d.rdns)&&(i.push({rdns:d.rdns,name:d.name,icon:d.icon}),t([...i]))};window.addEventListener("eip6963:announceProvider",a),window.addEventListener("eip6963:crossAnnounceProvider",a),window.dispatchEvent(new Event("eip6963:requestProvider")),window.dispatchEvent(new Event("eip6963:crossRequestProvider"));let s=setTimeout(()=>n(!1),500);return()=>{window.removeEventListener("eip6963:announceProvider",a),window.removeEventListener("eip6963:crossAnnounceProvider",a),clearTimeout(s)}},[]);let o=Yx(i=>e.some(a=>a.rdns===i),[e]);return{wallets:e,isDetected:o,isLoading:r}}import*as um from"@radix-ui/react-dialog";import{Drawer as Kx}from"vaul";import{jsx as Hl}from"react/jsx-runtime";function fm({asChild:e,children:t}){let{isMobile:r}=Ri(),n=r?Kx.Trigger:um.Trigger;return Hl(ge,{feature:"wallet_connect",children:Hl(n,{asChild:e??t!=null,children:t??Hl("button",{type:"button","data-track":"open",children:"Connect Wallet"})})})}import{useEffect as Jx}from"react";import{WALLET_LABELS as $x}from"@nexus-cross/crossx-design-system";import*as cn from"@radix-ui/react-dialog";import{Drawer as ns}from"vaul";import{WALLET_LABELS as Ql}from"@nexus-cross/crossx-design-system";import{jsx as Ee,jsxs as co}from"react/jsx-runtime";var Zx='<svg width="100%" height="100%" viewBox="0 0 640 640" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_75048_28969)"><rect width="640" height="640" rx="100" fill="white"/><path d="M640.092 -0.18042H0.0917969V639.82H640.092V-0.18042Z" fill="#CE3E35"/><path d="M43.6074 104.484C43.6074 71.3473 70.4703 44.4844 103.607 44.4844H536.393C569.53 44.4844 596.393 71.3473 596.393 104.484V346.514H43.6074V104.484Z" fill="white"/><g filter="url(#filter0_d_75048_28969)"><path d="M639.908 639.822H0.0917969V158.676C0.0917969 136.585 18.0004 118.676 40.0918 118.676H218.544C237.426 118.676 252.868 132.846 264.251 147.912C277.196 165.045 297.355 176.058 319.999 176.058C342.644 176.058 362.803 165.045 375.748 147.912C387.131 132.846 402.573 118.676 421.455 118.676H599.908C622 118.676 639.908 136.585 639.908 158.676V639.822Z" fill="url(#paint0_linear_75048_28969)"/></g><path d="M223.621 639.503H639.909V181.499L223.621 448.166V639.503Z" fill="url(#paint1_linear_75048_28969)"/><path d="M223.645 639.819H0.0917969V212.869L223.645 449.197V639.819Z" fill="url(#paint2_linear_75048_28969)"/><g filter="url(#filter1_d_75048_28969)"><path d="M317.103 250.341L228.024 301.829C212.311 310.864 206.867 331.162 215.899 346.881C224.93 362.6 245.221 368.046 260.933 359.01L336.28 315.444L300.401 353.936V504.934C300.401 523.129 315.247 537.981 333.434 537.981C351.621 537.981 366.468 523.129 366.468 504.934V278.932C366.468 272.62 364.489 266.431 362.014 262.347C352.735 246.752 332.692 241.182 316.979 250.217L317.103 250.341Z" fill="white"/></g></g><defs><filter id="filter0_d_75048_28969" x="-19.9082" y="93.6763" width="679.816" height="561.146" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="-5"/><feGaussianBlur stdDeviation="10"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.892803 0 0 0 0 0.220099 0 0 0 0 0.293135 0 0 0 0.5 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_75048_28969"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_75048_28969" result="shape"/></filter><filter id="filter1_d_75048_28969" x="190.367" y="224.71" width="211.348" height="348.518" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="7.03953" dy="7.03953"/><feGaussianBlur stdDeviation="14.1039"/><feColorMatrix type="matrix" values="0 0 0 0 0.831373 0 0 0 0 0.113725 0 0 0 0 0.356863 0 0 0 0.3 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_75048_28969"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_75048_28969" result="shape"/></filter><linearGradient id="paint0_linear_75048_28969" x1="-74.0158" y1="54.6376" x2="542.251" y2="802.323" gradientUnits="userSpaceOnUse"><stop stop-color="#F3752D"/><stop offset="1" stop-color="#EC1272"/></linearGradient><linearGradient id="paint1_linear_75048_28969" x1="159.749" y1="206.729" x2="471.286" y2="474.513" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.5"/><stop offset="1" stop-color="white" stop-opacity="0"/></linearGradient><linearGradient id="paint2_linear_75048_28969" x1="399.134" y1="82.7297" x2="104.683" y2="466.123" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.5"/><stop offset="1" stop-color="white" stop-opacity="0"/></linearGradient><clipPath id="clip0_75048_28969"><rect width="640" height="640" rx="100" fill="white"/></clipPath></defs></svg>',Xx=`data:image/svg+xml,${encodeURIComponent(Zx)}`;function rs(){return Ee("img",{src:Xx,width:40,height:40,alt:"",style:{display:"block"}})}function mm(){return co("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[co("g",{clipPath:"url(#clip0_1331_27065)",children:[Ee("path",{d:"M37.2488 38.4674L28.6626 35.8175L22.1876 39.8295L17.6699 39.8274L11.191 35.8175L2.60875 38.4674L-0.00195312 29.3328L2.60875 19.1947L-0.00195312 10.6234L2.60875 0L16.0192 8.30453H23.838L37.2488 0L39.8595 10.6234L37.2488 19.1947L39.8595 29.3328L37.2488 38.4674Z",fill:"#FF5C16"}),Ee("path",{d:"M2.60938 0L16.0201 8.31037L15.4868 14.0137L2.60938 0ZM11.1919 29.3366L17.0925 33.9956L11.1919 35.8175V29.3366ZM16.6209 21.6342L15.4868 14.0175L8.22768 19.1971L8.22374 19.195V19.1988L8.24628 24.5302L11.1899 21.6345L16.6209 21.6342ZM37.2477 0L23.837 8.31037L24.3685 14.0137L37.2477 0ZM28.6654 29.3366L22.7646 33.9956L28.6654 35.8175V29.3366ZM31.6313 19.1985V19.1947L31.6297 19.1968L24.3705 14.0175L23.2364 21.6342H28.6651L31.6108 24.5296L31.6313 19.1985Z",fill:"#FF5C16"}),Ee("path",{d:"M11.191 35.8175L2.60875 38.4674L-0.00195312 29.3366H11.191V35.8175ZM16.62 21.6321L18.2595 32.6435L15.9873 26.5208L8.24368 24.5296L11.189 21.6324H16.62V21.6321ZM28.6662 35.8175L37.2488 38.4674L39.8595 29.3366H28.6662V35.8175ZM23.2375 21.6321L21.598 32.6435L23.8699 26.5208L31.6138 24.5296L28.6665 21.6324H23.2375V21.6321Z",fill:"#E34807"}),Ee("path",{d:"M-0.00195312 29.3328L2.60875 19.1947H8.22284L8.2434 24.5278L15.9876 26.519L18.2595 32.6414L17.0916 33.9897L11.191 29.3307H-0.00195312V29.3328ZM39.8595 29.3328L37.2488 19.1947H31.6344L31.6138 24.5278L23.8702 26.519L21.598 32.6414L22.7657 33.9897L28.6665 29.3307H39.8595V29.3328ZM23.838 8.30444H16.0192L15.4882 14.0078L18.2597 32.6355H21.598L24.3713 14.0078L23.838 8.30444Z",fill:"#FF8D5D"}),Ee("path",{d:"M2.60875 0L-0.00195312 10.6234L2.60875 19.1947H8.22284L15.4859 14.0137L2.60875 0ZM14.9975 23.8438H12.4541L11.0693 25.2508L15.9893 26.515L14.9975 23.842V23.8438ZM37.2488 0L39.8595 10.6234L37.2488 19.1947H31.6344L24.3716 14.0137L37.2488 0ZM24.8637 23.8438H27.4107L28.7955 25.2526L23.8699 26.5191L24.8637 23.8418V23.8438ZM22.1857 36.1956L22.7659 33.9936L21.598 32.6453H18.2572L17.0896 33.9936L17.6696 36.1956",fill:"#661800"}),Ee("path",{d:"M22.1857 36.1951V39.831H17.6699V36.1951H22.1857Z",fill:"#C0C4CD"}),Ee("path",{d:"M11.1914 35.8131L17.672 39.8289V36.193L17.0917 33.9912L11.1914 35.8131ZM28.6649 35.8131L22.1841 39.8289V36.193L22.7644 33.9912L28.6649 35.8131Z",fill:"#E7EBF6"})]}),Ee("defs",{children:Ee("clipPath",{id:"clip0_1331_27065",children:Ee("rect",{width:"40",height:"40",fill:"white"})})})]})}function gm(){return co("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ee("path",{d:"M12.23 16.81L20 9.04L27.77 16.81L32.29 12.29L20 0L7.71 12.29L12.23 16.81Z",fill:"#F3BA2F"}),Ee("path",{d:"M9.04 20L4.52 15.48L0 20L4.52 24.52L9.04 20Z",fill:"#F3BA2F"}),Ee("path",{d:"M12.23 23.19L20 30.96L27.77 23.19L32.29 27.71L20 40L7.71 27.71L12.23 23.19Z",fill:"#F3BA2F"}),Ee("path",{d:"M35.48 24.52L40 20L35.48 15.48L30.96 20L35.48 24.52Z",fill:"#F3BA2F"}),Ee("path",{d:"M24.58 20L20 15.41L16.61 18.8L16.22 19.19L15.42 19.99L20 24.59L24.59 20L24.58 20Z",fill:"#F3BA2F"})]})}function hm(){return co("svg",{xmlns:"http://www.w3.org/2000/svg",width:"247",height:"246",viewBox:"0 0 247 246",fill:"none",children:[Ee("rect",{width:"247.005",height:"245.105",rx:"36",fill:"#121212"}),Ee("path",{d:"M89.1233 136.695V59.7551H118.481V140.524L74.5862 184.774L30.4787 140.524V107.55H59.9073V136.695L74.5862 151.303L89.1233 136.695Z",fill:"white"}),Ee("path",{d:"M59.8364 99.8915V59.7551H12.0414L30.4787 77.8377V99.8915H59.8364Z",fill:"#2FD7FF"}),Ee("path",{d:"M199.534 59.9334C202.562 60.0484 208.427 60.4824 212.031 63.6902C215.635 66.898 216.937 71.0498 216.937 73.1199V104.017L198.767 114.828L216.937 125.561V172.713C216.937 174.511 216.405 178.276 211.034 181.377C205.664 184.477 202.613 184.969 201.758 184.827H143.949C141.879 184.904 136.712 184.182 132.602 180.686C128.493 177.19 128.462 175.216 128.462 173.515V125.561L146.173 114.828L128.462 104.017V71.1268C128.462 69.721 130.109 65.7781 133.237 63.5701C137.147 60.8101 141.112 59.9334 144.409 59.9334H199.534ZM158.3 122.264V166.221H187.033V122.264H158.3ZM158.3 107.794H187.033V78.5272H158.3V107.794Z",fill:"white"})]})}function bm(){return co("svg",{width:"40",height:"40",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[co("g",{clipPath:"url(#clip0_1185_7785)",children:[Ee("path",{d:"M14 28C21.75 28 28 21.75 28 14C28 6.25 21.75 0 14 0C6.25 0 0 6.25 0 14C0 21.75 6.25 28 14 28Z",fill:"#EB0029"}),Ee("path",{d:"M19.4975 8.36232L6 6L13.103 23L23 11.5311L19.4975 8.36232ZM19.2801 9.4034L21.3449 11.27L15.6975 12.2424L19.2801 9.4034ZM14.4714 12.0479L8.51876 7.35252L18.247 9.05524L14.4714 12.0479ZM14.0467 12.8782L13.0765 20.5098L7.84385 7.98492L14.0467 12.8782ZM14.9454 13.2835L21.1983 12.2064L14.026 20.518L14.9454 13.2835Z",fill:"white"})]}),Ee("defs",{children:Ee("clipPath",{id:"clip0_1185_7785",children:Ee("rect",{width:"28",height:"28",fill:"white"})})})]})}function wm(){return co("svg",{width:"40",height:"40",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:[Ee("path",{fill:"#FFC107",d:"M43.6 20.5H42V20H24v8h11.3A12 12 0 1 1 24 12c3 0 5.8 1.2 7.9 3l5.7-5.7A20 20 0 1 0 44 24c0-1.2-.1-2.4-.4-3.5z"}),Ee("path",{fill:"#FF3D00",d:"M6.3 14.7l6.6 4.8A12 12 0 0 1 24 12c3 0 5.8 1.2 7.9 3l5.7-5.7A20 20 0 0 0 6.3 14.7z"}),Ee("path",{fill:"#4CAF50",d:"M24 44c5.2 0 10-2 13.6-5.2l-6.3-5.3A12 12 0 0 1 12.7 28l-6.5 5A20 20 0 0 0 24 44z"}),Ee("path",{fill:"#1976D2",d:"M43.6 20.5H42V20H24v8h11.3a12 12 0 0 1-4.1 5.5l6.3 5.3C41 35.7 44 30.3 44 24c0-1.2-.1-2.4-.4-3.5z"})]})}function ym(){return Ee("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:Ee("path",{d:"M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.08zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"})})}function xm(){return Ee("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ee("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}var Vl={cross_embedded:{id:"cross_embedded",name:Ql.social,description:"Sign in with Google or Apple",icon:rs},cross_wallet:{id:"cross_wallet",name:Ql.app,description:"App approval is required",icon:rs,featured:!0},cross_extension:{id:"cross_extension",name:Ql.extension,description:"Browser extension approval is required",icon:rs,rdns:"nexus.to.crosswallet.desktop",installUrl:"https://chromewebstore.google.com/detail/crossx/nninbdadmocnokibpaaohnoepbnpdgcg",visibility:"desktop-only"},metamask:{id:"metamask",name:"MetaMask",description:"Browser extension approval is required",icon:mm,rdns:"io.metamask"},binance:{id:"binance",name:"Binance",description:"Mobile app only \u2014 Add CROSS network first",icon:gm},verse8:{id:"verse8",name:"Verse8 Wallet",description:"Optimized for Forge and Verse8 ecosystem",icon:hm,badge:"For Forge"},tron:{id:"tron",name:"Tron Wallet",description:"Dedicated for Tron-based transactions and assets",icon:bm,badge:"For SHOP"}};function ql(e){return Vl[e]}var Yl={google:{id:"google",name:"Google",icon:wm},apple:{id:"apple",name:"Apple",icon:ym}};function vm(e){return Yl[e]}import{Fragment as Cm,jsx as xe,jsxs as er}from"react/jsx-runtime";function km(e,t){_e("connect","wallet_selected",{tags:{item_id:e}});let r=t?.();r instanceof Promise&&r.then(()=>_e("connect","connected"),n=>_e("connect","connected",{status:"failure",reason:gr(n)}))}function ev({wallet:e,detected:t,onConnect:r}){let n=()=>{if(e.installUrl&&!t){window.open(e.installUrl,"_blank","noopener,noreferrer");return}r()},o=e.icon,i=e.featured===!0;return er("button",{type:"button",className:Ne("wcm-wallet-item",i&&"wcm-wallet-item--featured"),"data-track":"wallet_item_click","data-track-id":e.id,onClick:n,children:[er("div",{className:"wcm-wallet-item-left",children:[xe("div",{className:"wcm-wallet-icon",children:xe(o,{})}),er("div",{className:"wcm-wallet-name-row",children:[xe("span",{className:"wcm-wallet-name",children:e.name}),e.badge&&xe("span",{className:"wcm-wallet-badge",children:e.badge})]})]}),e.installUrl&&(t?xe("span",{className:"wcm-installed-label",children:"Installed"}):xe("span",{className:"wcm-install-btn",children:"Install"}))]})}function tv({social:e,onSignIn:t}){let r=e.icon,n=`Sign in with ${e.name}`;return er("button",{type:"button",className:"wcm-social-item","data-provider":e.id,"data-track":"social_provider_click","data-track-id":e.id,onClick:t,"aria-label":n,children:[xe("span",{className:"wcm-social-icon",children:xe(r,{})}),xe("span",{className:"wcm-social-name",children:n})]})}function Rm(){let{wallets:e,activeWalletIds:t,socialProviders:r,activeSocialIds:n,termsUrl:o,privacyUrl:i,isDetected:a,close:s,isMobile:l}=Ri(),d=t.filter(b=>{let m=ql(b).visibility;return!m||m==="always"?!0:m==="desktop-only"?!l:m==="mobile-only"?l:!0}),p=n.length>0,h=d.length>0;return er(Cm,{children:[er("div",{className:"wcm-header",children:[er("div",{className:"wcm-header-text",children:[xe("h2",{className:"wcm-title",children:$x.default}),!l&&xe("p",{className:"wcm-subtitle",children:"Sign in instantly with your social account"})]}),xe("button",{type:"button",className:"wcm-close-btn","data-track":"close",onClick:s,"aria-label":"Close",children:xe(xm,{})})]}),er("div",{className:"wcm-body",children:[p&&er(Cm,{children:[!l&&er("div",{className:"wcm-section-header",children:[xe("span",{className:"wcm-section-title",children:"Social Account Wallet Connect"}),xe("span",{className:"wcm-recommended-badge",children:"Recommended"})]}),xe("div",{className:"wcm-social-grid",children:n.map(b=>{let m=vm(b);return xe(tv,{social:m,onSignIn:()=>{km(b,r[b]),s()}},b)})}),h&&er("div",{className:"wcm-separator",children:[xe("div",{className:"wcm-separator-line"}),xe("span",{className:"wcm-separator-text",children:"Other Wallets"}),xe("div",{className:"wcm-separator-line"})]})]}),h&&xe("div",{className:"wcm-wallet-list",children:d.map(b=>{let m=ql(b),w=m.rdns?a(m.rdns):!1;return xe(ev,{wallet:m,detected:w,onConnect:()=>{km(b,e[b]),s()}},b)})}),er("p",{className:"wcm-terms",children:["By continuing, you agree to NEXUS"," ",xe(Sm,{href:o,track:"terms_link",children:"Terms of Service"})," ","and consent to its"," ",xe(Sm,{href:i,track:"privacy_link",children:"Privacy Policy"}),"."]})]})]})}function Sm({href:e,track:t,children:r}){return e?xe("a",{className:"wcm-terms-link",href:e,target:"_blank",rel:"noopener noreferrer","data-track":t,children:r}):xe("span",{className:"wcm-terms-link",children:r})}function Nm({className:e}){let{isMobile:t,theme:r,portalStyle:n,open:o}=Ri();return Jx(()=>{o&&_e("connect","opened")},[o]),t?xe(ge,{feature:"wallet_connect",children:er(ns.Portal,{children:[xe(ns.Overlay,{className:"wcm-overlay"}),er(ns.Content,{className:Ne("wcm-drawer-content",e),"data-theme":r,style:n,children:[xe(ns.Title,{className:"wcm-sr-only",children:"Connect Wallet"}),xe("div",{className:"wcm-drawer-handle"}),xe("div",{className:"wcm-drawer-body",children:xe(Rm,{})})]})]})}):xe(ge,{feature:"wallet_connect",children:er(cn.Portal,{children:[xe(cn.Overlay,{className:"wcm-overlay"}),er(cn.Content,{className:Ne("wcm-dialog-content",e),"data-theme":r,style:n,children:[xe(cn.Title,{className:"wcm-sr-only",children:"Connect Wallet"}),xe(cn.Description,{className:"wcm-sr-only",children:"Sign in with a social provider or pick a wallet to connect."}),xe("div",{className:"wcm-dialog-body",children:xe(Rm,{})})]})]})})}de(`.wcm-overlay{position:fixed;inset:0;z-index:100000;background:var(--ds-overlay-dim, rgba(0, 0, 0, .5));-webkit-backdrop-filter:var(--ds-bg-blur-7, blur(3.5px));backdrop-filter:var(--ds-bg-blur-7, blur(3.5px))}.wcm-dialog-content{-webkit-font-smoothing:antialiased;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:100001;width:var(--wcm-dialog-width, 480px);max-height:90vh;overflow:hidden;display:flex;flex-direction:column;background:var(--ds-surface-default, #ffffff);border:1px solid var(--ds-border-default, #00000012);border-radius:24px;box-shadow:var(--ds-shadow-modal, 0 4px 30px -1px rgba(0, 0, 0, .15));outline:none;animation:wcm-dialog-show .2s ease-out;font-family:inherit}.wcm-dialog-content[data-state=closed]{animation:wcm-dialog-hide .15s ease-in}.wcm-dialog-body,.wcm-drawer-body{scrollbar-width:thin;scrollbar-color:var(--ds-border-medium, rgba(0, 0, 0, .18)) transparent}.wcm-dialog-body::-webkit-scrollbar,.wcm-drawer-body::-webkit-scrollbar{width:4px}.wcm-dialog-body::-webkit-scrollbar-track,.wcm-drawer-body::-webkit-scrollbar-track{background:transparent}.wcm-dialog-body::-webkit-scrollbar-thumb,.wcm-drawer-body::-webkit-scrollbar-thumb{background:var(--ds-border-medium, rgba(0, 0, 0, .18));border-radius:4px}.wcm-drawer-content{-webkit-font-smoothing:antialiased;position:fixed;bottom:0;left:0;right:0;z-index:100001;width:100%;max-width:var(--wcm-drawer-max-width, none);min-width:var(--wcm-drawer-min-width, 0);max-height:85dvh;margin:0 auto;display:flex;flex-direction:column;background:var(--ds-surface-default, #ffffff);border:1px solid var(--ds-border-default, #00000012);border-top-left-radius:16px;border-top-right-radius:16px;outline:none;font-family:inherit;box-sizing:border-box}.wcm-drawer-content[data-vaul-drawer-direction=right]{inset:0 0 0 auto;max-height:100vh;width:var(--wcm-drawer-max-width, 400px);max-width:100vw;border-radius:16px 0 0 16px}.wcm-drawer-content[data-vaul-drawer-direction=left]{inset:0 auto 0 0;max-height:100vh;width:var(--wcm-drawer-max-width, 400px);max-width:100vw;border-radius:0 16px 16px 0}.wcm-drawer-content[data-vaul-drawer-direction=top]{inset:0 0 auto;border-radius:0 0 16px 16px}.wcm-drawer-handle{width:60px;height:4px;border-radius:999px;background:var(--ds-border-medium, rgba(0, 0, 0, .18));margin:12px auto 8px;flex-shrink:0}.wcm-drawer-content[data-vaul-drawer-direction=left] .wcm-drawer-handle,.wcm-drawer-content[data-vaul-drawer-direction=right] .wcm-drawer-handle{display:none}.wcm-dialog-body,.wcm-drawer-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden}.wcm-drawer-body{overscroll-behavior:contain}.wcm-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:24px;border-bottom:1px solid var(--ds-border-default, rgba(0, 0, 0, .07))}.wcm-header-text{display:flex;flex-direction:column;gap:4px;min-width:0}.wcm-title{font-family:Inter,sans-serif;font-weight:600;font-size:20px;line-height:1.25;letter-spacing:0;color:var(--ds-content-highest, #000000);margin:0}.wcm-subtitle{font-family:Inter,sans-serif;font-weight:400;font-size:14px;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-medium, rgba(0, 0, 0, .65));margin:0}.wcm-close-btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;border:none;background:transparent;color:var(--ds-content-low, #00000066);cursor:pointer;padding:0;transition:opacity .15s ease}.wcm-close-btn:hover{opacity:.6}.wcm-close-btn>svg{width:24px;height:24px}.wcm-divider{display:none}.wcm-body{display:flex;flex-direction:column;gap:16px;padding:24px}.wcm-section-header{display:flex;align-items:center;gap:8px;width:100%}.wcm-section-title{font-family:Inter,sans-serif;font-weight:600;font-size:16px;line-height:1;letter-spacing:0;color:var(--ds-content-high, rgba(0, 0, 0, .85))}.wcm-recommended-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;background:var(--ds-system-orange-low, #fff5ee);border-radius:9999px;font-family:Inter,sans-serif;font-weight:500;font-size:12px;line-height:1;letter-spacing:0;color:var(--ds-system-orange-high, #e56f00);white-space:nowrap}.wcm-social-grid{display:grid;gap:8px;width:100%}.wcm-dialog-body .wcm-social-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wcm-drawer-body .wcm-social-grid{grid-template-columns:1fr}.wcm-social-item{display:flex;background:var(--ds-surface-medium, #f5f7fa);border:none;border-radius:12px;cursor:pointer;transition:none;font-family:inherit;color:var(--ds-content-high, rgba(0, 0, 0, .85))}.wcm-social-item:hover{background:#2e3544!important}:root[data-ds-theme=light] .wcm-social-item:hover{background:#eff3f8!important}.wcm-social-item[data-provider=apple] .wcm-social-icon{color:#000}[data-theme=dark] .wcm-social-item[data-provider=apple] .wcm-social-icon{color:#fff}.wcm-dialog-body .wcm-social-item{flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px}.wcm-drawer-body .wcm-social-item{flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;padding:16px}.wcm-social-icon{flex-shrink:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center}.wcm-social-icon>svg{width:32px;height:32px}.wcm-social-name{font-family:Inter,sans-serif;font-weight:600;font-size:14px;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-high, rgba(0, 0, 0, .85));white-space:nowrap}.wcm-separator{display:flex;align-items:center;gap:12px;width:100%}.wcm-separator-line{flex:1;height:1px;background:var(--ds-border-default, rgba(0, 0, 0, .07))}.wcm-separator-text{font-family:Inter,sans-serif;font-weight:500;font-size:12px;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-low, rgba(0, 0, 0, .4));white-space:nowrap}.wcm-wallet-list{display:flex;flex-direction:column;gap:8px}.wcm-wallet-item{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:20px 16px;background:var(--ds-surface-medium, #f5f7fa);border:none;border-radius:12px;cursor:pointer;text-align:left;transition:none;font-family:inherit}.wcm-wallet-item:hover{background:#2e3544!important}:root[data-ds-theme=light] .wcm-wallet-item:hover{background:#eff3f8!important}.wcm-wallet-item-left{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.wcm-wallet-icon{flex-shrink:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center}.wcm-wallet-icon>svg,.wcm-wallet-icon>img{width:28px;height:28px;border-radius:0;object-fit:cover}.wcm-wallet-name-row{display:flex;align-items:center;gap:8px;min-width:0}.wcm-wallet-name{font-family:Inter,sans-serif;font-weight:600;font-size:16px;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-high, rgba(0, 0, 0, .85));white-space:nowrap}.wcm-wallet-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;background:var(--ds-system-purple-low, #f5f3ff);border:.5px solid var(--ds-system-purple-default, #7e54f4);border-radius:9999px;font-family:Inter,sans-serif;font-weight:500;font-size:12px;line-height:1;letter-spacing:0;color:var(--ds-system-purple-high, #7346f3);white-space:nowrap}.wcm-install-btn{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;background:#ff8438;border-radius:6px;font-family:Inter,sans-serif;font-weight:500;font-size:12px;line-height:1;letter-spacing:0;color:#fff;white-space:nowrap}.wcm-installed-label{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;font-family:Inter,sans-serif;font-weight:500;font-size:12px;line-height:1;letter-spacing:0;color:var(--ds-content-low, rgba(0, 0, 0, .4));white-space:nowrap}.wcm-terms{font-family:Inter,sans-serif;font-weight:400;font-size:12px;line-height:1.5;letter-spacing:-.01em;color:var(--ds-content-medium, rgba(0, 0, 0, .65));text-align:center;margin:0}.wcm-terms-link{color:var(--ds-content-high, rgba(0, 0, 0, .85));text-decoration:underline;text-underline-position:from-font}.wcm-terms-link:hover{color:var(--ds-content-high, rgba(0, 0, 0, .85));text-decoration:underline}.wcm-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}
|