1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,96483,54014,e=>{"use strict";let t=[{code:"BRL",country:"BR",name:"Brazilian real",flag:"ð§ð·",locale:"pt-BR",startingAmount:5e4,step:5e3},{code:"USD",country:"US",name:"US dollar",flag:"ðºð¸",locale:"en-US",startingAmount:1e4,step:1e3},{code:"EUR",country:"EU",name:"Euro",flag:"ðªðº",locale:"de-DE",startingAmount:1e4,step:1e3},{code:"IDR",country:"ID",name:"Indonesian rupiah",flag:"ð®ð©",locale:"id-ID",startingAmount:1e8,step:1e7},{code:"INR",country:"IN",name:"Indian rupee",flag:"ð®ð³",locale:"en-IN",startingAmount:5e5,step:5e4},{code:"NGN",country:"NG",name:"Nigerian naira",flag:"ð³ð¬",locale:"en-NG",startingAmount:5e6,step:5e5},{code:"TRY",country:"TR",name:"Turkish lira",flag:"ð¹ð·",locale:"tr-TR",startingAmount:5e5,step:5e4},{code:"ARS",country:"AR",name:"Argentine peso",flag:"ð¦ð·",locale:"es-AR",startingAmount:1e6,step:1e5},{code:"GBP",country:"GB",name:"British pound",flag:"ð¬ð§",locale:"en-GB",startingAmount:1e4,step:1e3},{code:"AED",country:"AE",name:"UAE dirham",flag:"ð¦ðª",locale:"en-AE",startingAmount:4e4,step:5e3},{code:"SGD",country:"SG",name:"Singapore dollar",flag:"ð¸ð¬",locale:"en-SG",startingAmount:15e3,step:1e3}],a=["NGN","TRY","ARS","IDR","INR"].map(e=>t.find(t=>t.code===e));function r(e){if(!e)return null;let a=e.toUpperCase();return t.find(e=>e.code===a)??null}function s(e,t){return new Intl.NumberFormat(t.locale,{style:"currency",currency:t.code,maximumFractionDigits:(t.code,0)}).format(e)}e.s(["bankCurrencies",0,t,"calculatorCurrencies",0,t,"comparisonCurrencies",0,a,"formatBankCurrency",()=>s,"getBankCurrency",()=>r],96483);let n={AE:"AED",AR:"ARS",AU:"AUD",BD:"BDT",BR:"BRL",CA:"CAD",CH:"CHF",CL:"CLP",CN:"CNY",CO:"COP",GB:"GBP",HK:"HKD",ID:"IDR",IN:"INR",JP:"JPY",KE:"KES",KR:"KRW",MX:"MXN",MY:"MYR",NG:"NGN",NZ:"NZD",PE:"PEN",PH:"PHP",PL:"PLN",RU:"RUB",SA:"SAR",SG:"SGD",TH:"THB",TR:"TRY",TW:"TWD",UA:"UAH",US:"USD",VN:"VND",ZA:"ZAR"},i=new Set(["AT","BE","CY","DE","EE","ES","FI","FR","GR","HR","IE","IT","LT","LU","LV","MT","NL","PT","SI","SK"]),l={"Africa/Lagos":"NG","America/Argentina/Buenos_Aires":"AR","America/Fortaleza":"BR","America/Manaus":"BR","America/Sao_Paulo":"BR","Asia/Bangkok":"TH","Asia/Calcutta":"IN","Asia/Dhaka":"BD","Asia/Dubai":"AE","Asia/Hong_Kong":"HK","Asia/Jakarta":"ID","Asia/Kolkata":"IN","Asia/Seoul":"KR","Asia/Shanghai":"CN","Asia/Singapore":"SG","Asia/Taipei":"TW","Asia/Tokyo":"JP","Europe/Istanbul":"TR","Europe/London":"GB","Europe/Warsaw":"PL"};function c(e){return/^[A-Z]{2}$/.test(e)?String.fromCodePoint(...e.split("").map(e=>127397+e.charCodeAt(0))):"ð"}function o(e){if(!e)return null;let t=e.toUpperCase();return r(i.has(t)?"EUR":n[t])}function d(){if("u"<typeof navigator)return null;let e=l[Intl.DateTimeFormat().resolvedOptions().timeZone];if(e)return e;let t=navigator.language.match(/-([A-Z]{2})\b/i)?.[1];return t?.toUpperCase()??null}async function x(e){let t=null;try{let a=await fetch("/api/location",{cache:"no-store",signal:e});a.ok&&(t=(await a.json()).country??null)}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)throw e}return o(t)??o(d())??null}e.s(["browserCountry",()=>d,"countryFlag",()=>c,"detectBankCurrency",()=>x],54014)},22840,e=>{"use strict";var t=e.i(28785),a=e.i(64067),r=e.i(96483),s=e.i(54014);let n="hotstuff-bank-currency",i=r.bankCurrencies[0],l=(0,a.createContext)(null);function c({children:e}){let[c,o]=(0,a.useState)(i),d=(0,a.useRef)(!1),x=(0,a.useCallback)(e=>{let t=(0,r.getBankCurrency)(e);if(t){d.current=!0,o(t);try{window.localStorage.setItem(n,t.code)}catch{}}},[]);(0,a.useEffect)(()=>{let e=new AbortController;try{let e=(0,r.getBankCurrency)(window.localStorage.getItem(n));e&&(d.current=!0,o(e))}catch{}return d.current||(0,s.detectBankCurrency)(e.signal).then(e=>{e&&!d.current&&o(e)}).catch(()=>{}),()=>e.abort()},[]);let u=(0,a.useMemo)(()=>({currency:c,selectCurrency:x}),[c,x]);return(0,t.jsx)(l.Provider,{value:u,children:e})}function o(){let e=(0,a.useContext)(l);if(!e)throw Error("useBankCurrency must be used within BankCurrencyProvider");return e}e.s(["BankCurrencyProvider",()=>c,"useBankCurrency",()=>o])},91339,e=>{"use strict";var t=e.i(28785),a=e.i(64067);function r(){let e=(0,a.useRef)(null),r=(0,a.useRef)(null),s=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{let t=e.current,a=r.current;if(!t||!a||(a.pause(),a.currentTime=0,window.matchMedia("(prefers-reduced-motion: reduce)").matches))return;let n=new IntersectionObserver(([e])=>{e?.isIntersecting&&!s.current&&(s.current=!0,a.play().catch(()=>{s.current=!1}),n.unobserve(t))},{rootMargin:"-12% 0px -12% 0px",threshold:.35});return n.observe(t),()=>n.disconnect()},[]),(0,t.jsxs)("section",{ref:e,id:"bank-earn",className:"relative isolate overflow-hidden bg-black px-6 py-16 sm:px-8 sm:py-24 lg:px-28 lg:py-32",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 -z-10 opacity-[0.12] [background-image:linear-gradient(to_right,rgba(255,255,255,0.13)_1px,transparent_1px),linear-gradient(to_bottom,rgba(255,255,255,0.13)_1px,transparent_1px)] [background-size:64px_64px]","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"relative z-10 mx-auto grid w-full max-w-[1456px] items-center gap-10 lg:grid-cols-[456px_minmax(0,1fr)] lg:gap-[clamp(64px,12vw,220px)]",children:[(0,t.jsxs)("div",{className:"mx-auto w-full max-w-[650px] text-center lg:order-2 lg:max-w-none lg:text-right",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-4 font-mono text-[10px] font-medium uppercase tracking-[0.34em] text-accent sm:text-[11px] lg:justify-end",children:[(0,t.jsx)("span",{className:"h-px w-8 bg-white/18 sm:w-10","aria-hidden":"true"}),(0,t.jsx)("span",{children:"Earn daily"}),(0,t.jsx)("span",{className:"h-px w-8 bg-white/18 sm:w-10","aria-hidden":"true"})]}),(0,t.jsx)("h2",{className:"mt-4 font-sans text-[20px] font-normal leading-[1.2] tracking-[-0.025em] text-white lg:mt-5 lg:text-[clamp(2.75rem,3.3vw,3.5rem)] lg:leading-[1.05] lg:tracking-[-0.04em]",children:"Your balance earns while it sits."}),(0,t.jsx)("p",{className:"mx-auto mt-2 max-w-[310px] text-pretty font-sans text-[14px] leading-[1.3] text-white/58 lg:mt-5 lg:max-w-[800px] lg:text-[clamp(1.25rem,1.85vw,2rem)] lg:leading-[1.25]",children:"Every dollar is backed by US Treasuries and earns yield daily. Powered by BlackRock, Ondo, StoneX, and Sky. Withdraw anytime."})]}),(0,t.jsx)("div",{className:"mx-auto w-full max-w-[270px] lg:order-1 lg:max-w-[456px]",children:(0,t.jsx)("div",{className:"relative aspect-[38/45] w-full overflow-hidden rounded-[14px] bg-white/5 shadow-[0_32px_90px_rgba(0,0,0,0.5)] ring-1 ring-white/10 lg:rounded-[22px]",children:(0,t.jsx)("video",{ref:r,className:"h-full w-full object-cover",src:"/bank/balance_earn.mp4","aria-label":"Daily yield earnings backed by US Treasuries",muted:!0,playsInl
1ine:!0,preload:"metadata"})})})]})]})}e.s(["BankEarnSection",()=>r])},13330,e=>{"use strict";let t=(0,e.i(10965).default)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",()=>t],13330)},82565,e=>{"use strict";var t=e.i(28785),a=e.i(47163);function r({country:e}){switch(e){case"BR":return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{width:"3",height:"2",fill:"#009B3A"}),(0,t.jsx)("path",{d:"M.2 1 1.5.18 2.8 1 1.5 1.82Z",fill:"#FFDF00"}),(0,t.jsx)("circle",{cx:"1.5",cy:"1",r:".48",fill:"#002776"}),(0,t.jsx)("path",{d:"M1.05 1.02c.3-.2.72-.17.95.09",fill:"none",stroke:"#FFF",strokeWidth:".1"})]});case"US":return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{width:"3",height:"2",fill:"#FFF"}),[0,4,8,12,16,20,24].map(e=>(0,t.jsx)("rect",{width:"3",height:2/13,y:e/13,fill:"#B22234"},e)),(0,t.jsx)("rect",{width:"1.25",height:14/13,fill:"#3C3B6E"}),[.15,.38,.61,.84,1.07].flatMap((e,a)=>[.13,.34,.55,.76,.97].map((r,s)=>(0,t.jsx)("circle",{cx:e,cy:r,r:".025",fill:"#FFF"},`${a}-${s}`)))]});case"EU":return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{width:"3",height:"2",fill:"#003399"}),[[1.5,.45],[1.78,.52],[1.98,.72],[2.05,1],[1.98,1.28],[1.78,1.48],[1.5,1.55],[1.22,1.48],[1.02,1.28],[.95,1],[1.02,.72],[1.22,.52]].map(([e,a],r)=>(0,t.jsx)("circle",{cx:e,cy:a,r:".055",fill:"#FFCC00"},r))]});case"ID":return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{width:"3",height:"1",fill:"#CE1126"}),(0,t.jsx)("rect",{width:"3",height:"1",y:"1",fill:"#FFF"})]});case"IN":return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{width:"3",height:2/3,fill:"#FF9933"}),(0,t.jsx)("rect",{width:"3",height:2/3,y:2/3,fill:"#FFF"}),(0,t.jsx)("rect",{width:"3",height:2/3,y:4/3,fill:"#138808"}),(0,t.jsx)("circle",{cx:"1.5",cy:"1",r:".19",fill:"none",stroke:"#000080",strokeWidth:".035"}),(0,t.jsx)("circle",{cx:"1.5",cy:"1",r:".035",fill:"#000080"}),(0,t.jsx)("path",{d:"M1.5.81v.38M1.31 1h.38M1.365.865l.27.27M1.635.865l-.27.27",stroke:"#000080",strokeWidth:".025"})]});case"NG":return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{width:"1",height:"2",fill:"#008751"}),(0,t.jsx)("rect",{width:"1",height:"2",x:"1",fill:"#FFF"}),(0,t.jsx)("rect",{width:"1",height:"2",x:"2",fill:"#008751"})]});case"TR":return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{width:"3",height:"2",fill:"#E30A17"}),(0,t.jsx)("circle",{cx:"1.22",cy:"1",r:".52",fill:"#FFF"}),(0,t.jsx)("circle",{cx:"1.39",cy:"1",r:".41",fill:"#E30A17"}),(0,t.jsx)("path",{d:"m1.72.74.08.18.2.02-.15.13.05.2-.18-.1-.17.1.04-.2-.15-.13.2-.02Z",fill:"#FFF"})]});case"AR":return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{width:"3",height:2/3,fill:"#74ACDF"}),(0,t.jsx)("rect",{width:"3",height:2/3,y:2/3,fill:"#FFF"}),(0,t.jsx)("rect",{width:"3",height:2/3,y:4/3,fill:"#74ACDF"}),(0,t.jsx)("circle",{cx:"1.5",cy:"1",r:".16",fill:"#F6B40E",stroke:"#85340A",strokeWidth:".018"}),(0,t.jsx)("path",{d:"M1.5.72v.12M1.5 1.16v.12M1.22 1h.12M1.66 1h.12M1.3.8l.09.09M1.61 1.11l.09.09M1.3 1.2l.09-.09M1.61.89l.09-.09",stroke:"#F6B40E",strokeWidth:".045",strokeLinecap:"round"})]});case"GB":return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{width:"3",height:"2",fill:"#012169"}),(0,t.jsx)("path",{d:"M0 0 3 2M3 0 0 2",stroke:"#FFF",strokeWidth:".45"}),(0,t.jsx)("path",{d:"M0 0 3 2M3 0 0 2",stroke:"#C8102E",strokeWidth:".18"}),(0,t.jsx)("path",{d:"M1.5 0v2M0 1h3",stroke:"#FFF",strokeWidth:".62"}),(0,t.jsx)("path",{d:"M1.5 0v2M0 1h3",stroke:"#C8102E",strokeWidth:".34"})]});case"AE":return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{width:"3",height:2/3,fill:"#00732F"}),(0,t.jsx)("rect",{width:"3",height:2/3,y:2/3,fill:"#FFF"}),(0,t.jsx)("rect",{width:"3",height:2/3,y:4/3,fill:"#000"}),(0,t.jsx)("rect",{width:".82",height:"2",fill:"#FF0000"})]});case"SG":return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{width:"3",height:"1",fill:"#EF3340"}),(0,t.jsx)("rect",{width:"3",height:"1",y:"1",fill:"#FFF"}),(0,t.jsx)("circle",{cx:"1.12",cy:".5",r:".32",fill:"#FFF"}),(0,t.jsx)("circle",{cx:"1.23",cy:".45",r:".26",fill:"#EF3340"}),[[1.48,.25],[1.65,.39],[1.59,.62],[1.37,.66],[1.28,.48]].map(([e,a],r)=>(0,t.jsx)("circle",{cx:e,cy:a,r:".045",fill:"#FFF"},r))]});default:return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{width:"3",height:"2",fill:"#222"}),(0,t.jsx)("circle",{cx:"1.5",cy:"1",r:".55",fill:"none",stroke:"#888",strokeWidth:".1"}),(0,t.jsx)("path",{d:"M.95 1h1.1M1.5.45c-.22.2-.35.53-.35.55s.13.35.35.55M1.5.45c.22.2.35.53.35.55s-.13.35-.35.55",fill:"none",stroke:"#888",strokeWidth:".08"})]})}}function s({country:e,className:s}){return(0,t.jsx)("span",{className:(0,a.cn)("block shrink-0 overflow-hidden rounded-full bg-white/8 r
1ing-1 ring-white/10",s),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"size-full",viewBox:"0 0 3 2",preserveAspectRatio:"xMidYMid slice",focusable:"false",children:(0,t.jsx)(r,{country:e})})})}e.s(["CountryFlag",()=>s])},67790,e=>{"use strict";var t=e.i(28785),a=e.i(64067),r=e.i(59803),s=e.i(10965);let n=(0,s.default)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),i=(0,s.default)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);var l=e.i(13330),c=e.i(62870),o=e.i(22840),d=e.i(82565),x=e.i(96483);let u=x.comparisonCurrencies[0],p=["hotstuff","provider","local"];function m(e){return x.comparisonCurrencies.some(t=>t.code===e)}function h({currency:e,compact:a=!1}){return(0,t.jsx)(d.CountryFlag,{country:e.country,className:a?"size-5 lg:size-8":"size-5 lg:size-[52px]"})}function g(e){let t=.05>Math.abs(e)?0:e;return`${t>0?"+":""}${t.toFixed(1)}%`}function f({id:e,currency:a,market:s}){return"hotstuff"===e?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(r.default,{src:"/logo.svg",alt:"Hotstuff",width:101,height:30,className:"h-auto w-[72px] lg:w-[108px]"}),(0,t.jsx)("span",{className:"font-mono text-[7px] uppercase tracking-[0.08em] text-white/44 lg:text-[10px]",children:"6% p.a. · US dollars"})]}):"provider"===e?"ready"!==s.status?(0,t.jsx)("div",{className:"h-8 w-20 animate-pulse rounded bg-white/10 lg:h-10 lg:w-28"}):(0,t.jsxs)("a",{href:s.data.provider.website,target:"_blank",rel:"noreferrer",className:"group flex min-w-0 flex-col items-center gap-1.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent","aria-label":`${s.data.provider.name} ${s.data.provider.product}, ${s.data.provider.rateLabel}`,children:[(0,t.jsx)(r.default,{src:s.data.provider.logo,alt:s.data.provider.name,width:220,height:48,className:"h-7 w-auto max-w-[92px] rounded-[5px] object-contain transition-transform group-hover:scale-[1.03] lg:h-11 lg:max-w-[180px] lg:rounded-[7px]"}),(0,t.jsx)("span",{className:"max-w-[96px] truncate font-mono text-[7px] uppercase tracking-[0.06em] text-white/48 lg:max-w-[220px] lg:text-[10px]",children:s.data.provider.rateLabel})]}):(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,t.jsx)(d.CountryFlag,{country:a.country,className:"size-5 lg:size-7"}),(0,t.jsxs)("span",{className:"font-mono text-[7px] uppercase tracking-[0.08em] text-white/48 lg:text-[10px]",children:["Kept in ",a.code]})]})}function b(){let{currency:e,selectCurrency:r}=(0,o.useBankCurrency)(),s=m(e.code)?e.code:u.code,d=x.comparisonCurrencies.find(e=>e.code===s)??u,[b,w]=(0,a.useState)(d.startingAmount),[y,j]=(0,a.useState)(0),[v,N]=(0,a.useState)({status:"loading",data:null,message:null});(0,a.useEffect)(()=>{w(d.startingAmount)},[d.code,d.startingAmount]),(0,a.useEffect)(()=>{let e=new AbortController;return N({status:"loading",data:null,message:null}),fetch(`/api/bank/market-data?currency=${d.code}&model=3`,{signal:e.signal}).then(async e=>{let t=await e.json();if(!e.ok||!(t&&"object"==typeof t&&3===t.version&&t.provider&&t.strategies&&p.every(e=>{let a=t.strategies?.[e];return void 0!==a&&Number.isFinite(a.multiplier)&&Number.isFinite(a.returnPercent)}))){let e=t&&"object"==typeof t?t:null;throw Error("string"==typeof e?.error?e.error:"Live market data is unavailable.")}return t}).then(e=>{N({status:"ready",data:e,message:null})}).catch(t=>{e.signal.aborted||N({status:"error",data:null,message:t instanceof Error?t.message:"Live market data is unavailable."})}),()=>e.abort()},[d.code,y]);let k=(0,a.useMemo)(()=>{if("ready"!==v.status)return[];let e=p.map(e=>({id:e,value:b*v.data.strategies[e].multiplier,returnPercent:v.data.strategies[e].returnPercent})),t=Math.max(...e.map(e=>e.value),1);return e.map(e=>({...e,fillHeight:`${Math.max(26,e.value/t*100)}%`}))},[b,v]),C=e=>{w(t=>Math.max(d.step,t+d.step*e))};return(0,t.jsx)("section",{id:"bank-comparison",className:"relative isolate scroll-mt-20 overflow-hidden border-y border-white/10 bg-black px-6 py-16 sm:px-8 sm:py-24 lg:px-28 lg:py-32",children:(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-[1478px] flex-col items-center",children:[(0,t.jsx)("div",{className:"flex flex-nowrap items-center justify-center gap-x-1 text-center lg:gap-x-4",children:(0,t.jsxs)("h2",{className:"contents whitespace-nowrap font-sans text-[clamp(15px,4.4vw,19px)] font-normal uppercase leading-none tracking-[0.01em] text-white lg:text-[56px]",children:[(0,t.jsx)("span",{children:"How"}),(0,t.jsxs)(c.Select,{value:d.code,onValueChange:e=>{if(!m(e))return;let t=x.comparisonCurrencies.find(t=>t.code===e);t&&(r(t.code),w(t.startingAmount))},children:[(0,t.jsx)(c.SelectTrigger,{"aria-label":"Choose a comparison currency",className:"bank-currency-trigger text-white focus-visible:ring-accent/30",children:(0,t.jsxs)("span",{className:"flex items-center gap-2 lg:gap-3",children:[(0,t.jsx)(h,{currency:d}),(0,t.jsx)("span",{className:"font-sans text-[clamp(15px,4.4vw,19px)] font-normal leading-none tracking-[0.01em] lg:text-[56px]",children:d.code})]})}),(0,t.jsx)(c.SelectContent,{position:"popper",align:"start",sideOffset:8,className:"w-[var(--radix-select-trigger-width)] min-w-[var(--radix-select-trigger-width)] rounded-[12px] border-white/20 bg-[#171717]/98 p-1 text-white shadow-[0_24px_70px_rgba(0,0,0,0.72)] backdrop-blur-xl lg:rou
1nded-[18px]",children:x.comparisonCurrencies.map(e=>(0,t.jsxs)(c.SelectItem,{value:e.code,className:"h-10 rounded-[8px] px-2 font-sans text-[16px] font-normal text-white/82 focus:bg-white/10 focus:text-white lg:h-14 lg:text-[24px] [&>span:first-child]:hidden",children:[(0,t.jsx)(h,{currency:e,compact:!0}),(0,t.jsx)("span",{children:e.code})]},e.code))})]}),(0,t.jsx)("span",{children:"could grow in 3 years"})]})}),(0,t.jsx)("p",{className:"mt-3 max-w-[320px] text-center font-sans text-[12px] leading-relaxed text-white/48 lg:mt-4 lg:max-w-[780px] lg:text-[20px]",children:"Local cash vs. a trusted local yield provider vs. Hotstuff held in US dollars."}),(0,t.jsxs)("div",{className:"mt-6 flex h-7 items-center justify-center gap-3 lg:mt-14 lg:h-8 lg:gap-5",children:[(0,t.jsx)("button",{type:"button",onClick:()=>C(-1),disabled:b<=d.step,"aria-label":`Decrease amount by ${(0,x.formatBankCurrency)(d.step,d)}`,className:"group inline-flex size-11 items-center justify-center text-white/70 transition-colors hover:text-white disabled:cursor-not-allowed disabled:opacity-35",children:(0,t.jsx)("span",{className:"inline-flex size-7 items-center justify-center rounded-[5px] border border-white/5 bg-white/10 transition-colors group-hover:bg-white/15 lg:size-8",children:(0,t.jsx)(n,{className:"size-3.5 lg:size-4","aria-hidden":"true"})})}),(0,t.jsx)("span",{className:"min-w-[150px] text-center font-sans text-[28px] font-normal tabular-nums tracking-[0.01em] text-white lg:min-w-[260px] lg:text-[56px]","aria-live":"polite",children:(0,x.formatBankCurrency)(b,d)}),(0,t.jsx)("button",{type:"button",onClick:()=>C(1),"aria-label":`Increase amount by ${(0,x.formatBankCurrency)(d.step,d)}`,className:"group inline-flex size-11 items-center justify-center text-white/70 transition-colors hover:text-white",children:(0,t.jsx)("span",{className:"inline-flex size-7 items-center justify-center rounded-[5px] border border-white/5 bg-white/10 transition-colors group-hover:bg-white/15 lg:size-8",children:(0,t.jsx)(i,{className:"size-3.5 lg:size-4","aria-hidden":"true"})})})]}),(0,t.jsx)("div",{className:"mt-6 grid w-full max-w-[300px] grid-cols-3 gap-3 lg:mt-12 lg:max-w-[872px] lg:gap-10","aria-busy":"loading"===v.status,children:p.map(e=>{let a=k.find(t=>t.id===e),r="hotstuff"===e,s="provider"===e,n="hotstuff"===e?"Hotstuff held in US dollars":"provider"===e&&"ready"===v.status?v.data.provider.name:`${d.code} cash`;return(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("div",{role:"img","aria-label":a?`${n}: ${(0,x.formatBankCurrency)(a.value,d)}, ${g(a.returnPercent)}`:`${e} comparison is loading`,className:"bank-comparison-track relative h-[232px] overflow-hidden rounded-[12px] lg:h-[640px] lg:rounded-[16px]",children:[a?(0,t.jsx)("div",{className:r?"absolute inset-x-0 bottom-0 bg-accent text-black transition-[height] duration-500 ease-out":s?"absolute inset-x-0 bottom-0 bg-[#d8d8d8] text-black transition-[height] duration-500 ease-out":"absolute inset-x-0 bottom-0 bg-[#444] text-white transition-[height] duration-500 ease-out",style:{height:a.fillHeight},children:(0,t.jsxs)("div",{className:"px-1.5 pt-3 text-center lg:px-4 lg:pt-7",children:[(0,t.jsx)("div",{className:"overflow-hidden text-ellipsis font-sans text-[13px] font-medium leading-none tabular-nums tracking-[-0.035em] lg:text-[34px]",children:(0,x.formatBankCurrency)(a.value,d)}),(0,t.jsx)("div",{className:r||s?"mt-1.5 font-sans text-[12px] font-medium tabular-nums text-black/68 lg:mt-2 lg:text-[21px]":"mt-1.5 font-sans text-[12px] font-medium tabular-nums text-white/58 lg:mt-2 lg:text-[21px]",children:g(a.returnPercent)})]})}):null,a?null:(0,t.jsx)("div",{className:"absolute inset-x-0 top-0 z-10 px-1.5 pt-4 text-center lg:px-4 lg:pt-7",children:(0,t.jsx)("div",{className:"mx-auto mt-1 h-10 w-4/5 animate-pulse rounded bg-white/10"})})]}),(0,t.jsx)("div",{className:"flex h-[66px] items-center justify-center lg:h-[84px]",children:(0,t.jsx)(f,{id:e,currency:d,market:v})})]},e)})}),(0,t.jsxs)("div",{className:"mt-4 max-w-[900px] text-center font-mono text-[7px] uppercase leading-relaxed tracking-[0.08em] text-white/34 lg:mt-6 lg:text-[10px]","aria-live":"polite",children:["ready"===v.status?(0,t.jsxs)("p",{children:[v.data.provider.name,": current advertised"," ",v.data.provider.rateLabel," compounded for illustration · Hotstuff: converted to USD, 6% p.a. compounded for 3 years, then converted back at current FX · FX through ",v.data.endDate," · gross estimates, rates can change"]}):null,"error"===v.status?(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2 text-white/58",children:[(0,t.jsx)("span",{children:v.message}),(0,t.jsxs)("button",{type:"button",onClick:()=>j(e=>e+1),className:"inline-flex items-center gap-1 text-accent underline underline-offset-4",children:[(0,t.jsx)(l.RefreshCw,{className:"size-3","aria-hidden":"true"}),"Retry"]})]}):null]})]})})}e.s(["CurrencyComparisonSection",()=>b],67790)},74244,e=>{"use strict";let t=(0,e.i(10965).default)("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",()=>t],74244)},80280,e=>{"use strict";var t=e.i(28785),a=e.i(10501),r=e.i(34853),r=r,s=e.i(64067),n=e.i(84675),i=e.i(74244),l=e.i(72809),c=e.i(64347),c=c,o=e.i(74041),d=e.i(10965);let x=(0,d.default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),u=(0,d.default)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]),p=(0,d.default)("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]),m=(0,d.default)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),h=(0,d.default)("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),g=(0,d.default)("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),f=(0,d.default)("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}
1],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]),b=(0,d.default)("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]),w=(0,d.default)("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]),y=` 2AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ 3BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ 4CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ 5DE DJ DK DM DO DZ 6EC EE EG EH ER ES ET 7FI FJ FK FM FO FR 8GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY 9HK HM HN HR HT HU 10ID IE IL IM IN IO IQ IR IS IT 11JE JM JO JP 12KE KG KH KI KM KN KP KR KW KY KZ 13LA LB LC LI LK LR LS LT LU LV LY 14MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ 15NA NC NE NF NG NI NL NO NP NR NU NZ 16OM 17PA PE PF PG PH PK PL PM PN PR PS PT PW PY 18QA 19RE RO RS RU RW 20SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ 21TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ 22UA UG UM US UY UZ 23VA VC VE VG VI VN VU 24WF WS 25YE YT 26ZA ZM ZW 27`.trim().split(/\s+/),j=["BR","TR","ID","IN"];var v=e.i(54014);function N({icon:e,label:a,value:r}){return(0,t.jsxs)("div",{className:"min-w-0 text-center",children:[(0,t.jsx)(e,{className:"mx-auto size-4 text-white/38","aria-hidden":"true"}),(0,t.jsx)("div",{className:"mt-2 truncate font-mono text-[8px] uppercase tracking-[0.13em] text-white/32",children:a}),(0,t.jsx)("div",{className:"mt-1 truncate font-sans text-[21px] font-medium tabular-nums text-white",children:r})]})}
27function k(){let[e,a]=(0,s.useState)("signup"),[r,d]=(0,s.useState)(""),[k,C]=(0,s.useState)("US"),[A,S]=(0,s.useState)(null),[F,M]=(0,s.useState)(""),[R,E]=(0,s.useState)(!1),[B,z]=(0,s.useState)(!1),T=(0,s.useMemo)(()=>(function(e="en"){let t=new Intl.DisplayNames([e],{type:"region"});return y.map(e=>({code:e,name:t.of(e)??e})).sort((t,a)=>t.name.localeCompare(a.name,e))})("u"<typeof navigator?"en":navigator.language||"en"),[]),D=(0,s.useMemo)(()=>j.map(e=>T.find(t=>t.code===e)).filter(e=>void 0!==e),[T]),I=(0,s.useMemo)(()=>T.filter(e=>!j.includes(e.code)),[T]);(0,s.useEffect)(()=>{let e=new AbortController;return(async()=>{let t=null;try{let a=await fetch("/api/location",{cache:"no-store",signal:e.signal});if(a.ok){let e=await a.json();t=e.country?.toUpperCase()??null}}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return}let a=(0,v.browserCountry)(),r=t||a;r&&y.includes(r.toUpperCase())&&C(r.toUpperCase())})(),()=>e.abort()},[]);let P=(0,s.useMemo)(()=>{if(!A)return"";let e=new URL(window.location.href);return e.searchParams.set("ref",A.referralCode),e.hash="bank-waitlist",e.toString()},[A]),U=async t=>{if(t.preventDefault(),R)return;M(""),E(!0);let s=new FormData(t.currentTarget),n=new URLSearchParams(window.location.search).get("ref")??"";try{let t=await fetch("/api/bank/waitlist",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"lookup"===e?"lookup":"subscribe",email:r,location:k,referral:n,website:s.get("website")})}),i=await t.json();if(!t.ok||!i.member)throw Error(i.error||"We could not reach the waitlist. Please try again.");S(i.member),a("success")}catch(e){M(e instanceof Error?e.message:"We could not reach the waitlist. Please try again.")}finally{E(!1)}},_=async()=>{if(P)try{await navigator.clipboard.writeText(P),z(!0),window.setTimeout(()=>z(!1),1800)}catch{M("Copy failed. Select the link and copy it manually.")}},G=async()=>{if(P){if(!navigator.share)return void await _();try{await navigator.share({title:"Join the Hotstuff banking waitlist",text:"The dollar account your bank won't give you.",url:P})}catch{}}};if("success"===e&&A){let e=encodeURIComponent("Meet Hotstuff â the dollar account your bank won't give you."),r=encodeURIComponent(P);return(0,t.jsxs)("div",{className:"p-6 sm:p-8",children:[(0,t.jsx)("div",{className:"inline-flex size-10 items-center justify-center rounded-full bg-accent text-black",children:(0,t.jsx)(l.Check,{className:"size-5","aria-hidden":"true"})}),(0,t.jsx)("h2",{className:"mt-5 pr-10 font-sans text-[30px] font-normal leading-tight tracking-[-0.035em] text-white",children:"You're on the list."}),(0,t.jsx)("p",{className:"mt-2 font-sans text-[14px] leading-relaxed text-white/46",children:"Share your invite link to move up the queue."}),(0,t.jsxs)("div",{className:"mt-7 grid grid-cols-3 rounded-[14px] border border-white/10 bg-white/[0.025] px-3 py-5",children:[(0,t.jsx)(N,{icon:f,label:"Position",value:A.rankingPosition?`#${A.rankingPosition}`:"Pending"}),(0,t.jsx)(N,{icon:g,label:"Points",value:A.rankingPoints}),(0,t.jsx)(N,{icon:w,label:"Referrals",value:A.referralsCount})]}),(0,t.jsxs)("div",{className:"mt-5 flex gap-2",children:[(0,t.jsx)("input",{readOnly:!0,value:P,"aria-label":"Your referral link",className:"h-12 min-w-0 flex-1 rounded-[10px] border border-white/10 bg-white/[0.035] px-4 font-mono text-[10px] text-white/50 outline-none selection:bg-accent selection:text-black"}),(0,t.jsxs)("button",{type:"button",onClick:_,className:"inline-flex h-12 shrink-0 items-center justify-center gap-2 rounded-[10px] bg-accent px-4 font-sans text-[12px] font-semibold text-black transition hover:bg-accent/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white",children:[B?(0,t.jsx)(l.Check,{className:"size-4","aria-hidden":"true"}):(0,t.jsx)(o.Copy,{className:"size-4","aria-hidden":"true"}),B?"Copied":"Copy"]})]}),(0,t.jsxs)("div",{className:"mt-2 grid grid-cols-4 gap-2",children:[(0,t.jsx)("a",{href:`https://x.com/intent/tweet?text=${e}&url=${r}`,target:"_blank",rel:"noreferrer","aria-label":"Share on X",className:"inline-flex h-10 items-center justify-center rounded-[9px] border border-white/10 text-white/45 transition hover:bg-white/[0.05] hover:text-white",children:(0,t.jsx)(b,{className:"size-4","aria-hidden":"true"})}),(0,t.jsx)("a",{href:`https://t.me/share/url?url=${r}&text=${e}`,target:"_blank",rel:"noreferrer","aria-label":"Share on Telegram",className:"inline-flex h-10 items-center justify-center rounded-[9px] border border-white/10 text-white/45 transition hover:bg-white/[0.05] hover:text-white",children:(0,t.jsx)(m,{className:"size-4","aria-hidden":"true"})}),(0,t.jsx)("a",{href:`https://wa.me/?text=${e}%20${r}`,target:"_blank",rel:"noreferrer","aria-label":"Share on WhatsApp",className:"inline-flex h-10 items-center justify-center rounded-[9px] border border-white/10 text-white/45 transition hover:bg-white/[0.05] hover:text-white",children:(0,t.jsx)(p,{className:"size-4","aria-hidden":"true"})}),(0,t.jsx)("button",{type:"button",onClick:G,"aria-label":"More sharing options",className:"inline-flex h-10 items-center justify-center rounded-[9px] border border-white/10 text-white/45 transition hover:bg-white/[0.05] hover:text-white",children:(0,t.jsx)(h,{className:"size-4","aria-hidden":"true"})})]}),F?(0,t.jsx)("p",{className:"mt-4 text-center font-sans text-[12px] text-red-200/75",children:F}):null,(0,t.jsxs)("button",{type:"button",onClick:()=>{M(""),a("lookup")},className:"mx-auto mt-6 flex items-center gap-2 font-mono text-[8px] uppercase tracking-[0.13em] text-white/30 transition hover:text-white/65",children:[(0,t.jsx)(n.ArrowLeft,{className:"size-3","aria-hidden":"true"}),"Check another email"]})]})}let L="lookup"===e;return(0,t.jsxs)("div",{className:"p-6 sm:p-8",children:[(0,t.jsx)("div",{className:"font-mono text-[9px] uppercase tracking-[0.2em] text-accent",children:"Banking early access"}),(0,t.jsx)("h2",{className:"mt-4 pr-10 font-sans text-[31px] font-normal leading-[1.06] tracking-[-0.04em] text-white sm:text-[34px]",children:L?"Check your position.":"Get early access."}),(0,t.jsx)("p",{className:"mt-2 max-w-[390px] font-sans text-[14px] leading-relaxed text-white/44",children:L?"Enter the email you used to join.":"Join the waitlist for your Hotstuff dollar account."}),(0,t.jsxs)("form",{className:"mt-7 space-y-3",onSubmit:U,noValidate:!0,children:[(0,t.jsx)("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off",className:"absolute -left-[9999px] size-px opacity-0","aria-hidden":"true"}),(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"sr-only",children:"Email address"}),(0,t.jsxs)("span",{className:"relative block",children:[(0,t.jsx)(u,{className:"pointer-events-none absolute left-4 top-1/2 size-[17px] -translate-y-1/2 text-white/30","aria-hidden":"true"}),(0,t.jsx)("input",{id:`waitlist-email-${e}`,type:"email",inputMode:"email",autoComplete:"email",placeholder:"Email address",value:r,onChange:e=>d(e.target.value),required:!0,className:"h-13 w-full rounded-[11px] border border-white/12 bg-white/[0.035] pl-11 pr-4 font-sans text-[14px] text-white outline-none transition placeholder:text-white/28 hover:border-white/20 focu
27s:border-accent/55 focus:ring-2 focus:ring-accent/10"})]})]}),L?null:(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"sr-only",children:"Country"}),(0,t.jsxs)("span",{className:"relative block",children:[(0,t.jsx)("span",{className:"pointer-events-none absolute left-4 top-1/2 z-10 -translate-y-1/2 text-[18px]","aria-hidden":"true",children:(0,v.countryFlag)(k)}),(0,t.jsxs)("select",{value:k,onChange:e=>C(e.target.value),"aria-label":"Country",className:"h-13 w-full appearance-none rounded-[11px] border border-white/12 bg-white/[0.035] pl-11 pr-11 font-sans text-[14px] text-white outline-none transition hover:border-white/20 focus:border-accent/55 focus:ring-2 focus:ring-accent/10",children:[(0,t.jsx)("optgroup",{label:"Launching first",className:"bg-[#111411]",children:D.map(e=>(0,t.jsx)("option",{value:e.code,className:"bg-[#111411]",children:e.name},e.code))}),(0,t.jsx)("optgroup",{label:"All countries",className:"bg-[#111411]",children:I.map(e=>(0,t.jsx)("option",{value:e.code,className:"bg-[#111411]",children:e.name},e.code))})]}),(0,t.jsx)(c.default,{className:"pointer-events-none absolute right-4 top-1/2 size-4 -translate-y-1/2 text-white/30","aria-hidden":"true"})]})]}),F?(0,t.jsx)("div",{role:"alert",className:"rounded-[10px] border border-red-400/20 bg-red-400/[0.07] px-4 py-3 font-sans text-[12px] leading-relaxed text-red-100/80",children:F}):null,(0,t.jsxs)("button",{type:"submit",disabled:R,className:"group inline-flex h-13 w-full items-center justify-center gap-2 rounded-[11px] bg-accent px-5 font-sans text-[14px] font-semibold text-black transition hover:bg-accent/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white disabled:cursor-wait disabled:opacity-60",children:[R?(0,t.jsx)(x,{className:"size-4 animate-spin","aria-hidden":"true"}):(0,t.jsx)(i.ArrowUpRight,{className:"size-4 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5","aria-hidden":"true"}),R?L?"Checkingâ¦":"Joiningâ¦":L?"Check position":"Join the waitlist"]})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>{M(""),a(L?"signup":"lookup")},className:"mx-auto mt-5 flex items-center gap-2 font-sans text-[12px] text-white/34 transition hover:text-white/68",children:[L?(0,t.jsx)(n.ArrowLeft,{className:"size-3.5","aria-hidden":"true"}):null,L?"Back to signup":"Already joined? Check position"]}),L?null:(0,t.jsxs)("p",{className:"mt-5 text-center font-sans text-[10px] leading-relaxed text-white/22",children:["By joining, you agree to ZooTools'"," ",(0,t.jsx)("a",{href:"https://zootools.co/legal/tos",target:"_blank",rel:"noreferrer",className:"underline underline-offset-2 hover:text-white/50",children:"terms"})," ","and"," ",(0,t.jsx)("a",{href:"https://zootools.co/legal/privacy",target:"_blank",rel:"noreferrer",className:"underline underline-offset-2 hover:text-white/50",children:"privacy policy"}),"."]})]})}function C({children:e}){return(0,t.jsxs)(a.Root,{children:[(0,t.jsx)(a.Trigger,{asChild:!0,children:e}),(0,t.jsxs)(a.Portal,{children:[(0,t.jsx)(a.Overlay,{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0"}),(0,t.jsxs)(a.Content,{className:"fixed left-[50vw] top-1/2 z-50 max-h-[calc(100dvh-24px)] w-[calc(100vw-24px)] max-w-[520px] -translate-x-1/2 -translate-y-1/2 overflow-y-auto rounded-[20px] border border-white/12 bg-[#0b0d0b] text-white shadow-[0_32px_100px_rgba(0,0,0,0.72)] outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:rounded-[24px]",children:[(0,t.jsx)(a.Title,{className:"sr-only",children:"Join the Hotstuff banking waitlist"}),(0,t.jsx)(a.Description,{className:"sr-only",children:"Enter your email and country to get early access."}),(0,t.jsx)(a.Close,{className:"absolute right-4 top-4 z-10 inline-flex size-9 items-center justify-center rounded-full border border-white/10 bg-white/[0.04] text-white/55 transition hover:bg-white/[0.08] hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent","aria-label":"Close waitlist",children:(0,t.jsx)(r.default,{className:"size-4","aria-hidden":"true"})}),(0,t.jsx)(k,{})]})]})]})}e.s(["WaitlistModal",()=>C],80280)},76848,e=>{"use strict";var t=e.i(28785),a=e.i(64067),r=e.i(59803);let s=[{id:"virtual",label:"Virtual",imageSrc:"/bank/images/virtual_card.png",imageAlt:"A Hotstuff virtual card displayed on a phone"},{id:"physical",label:"Physical",imageSrc:"/bank/images/physical_card.png",imageAlt:"A person holding a physical Hotstuff Visa card"}];function n(){let[e,n]=(0,a.useState)("physical"),i=(0,a.useRef)([]),l=s.find(t=>
27t.id===e)??s[1];return(0,t.jsxs)("section",{id:"cards",className:"relative isolate overflow-hidden border-y border-black/10 bg-white px-6 pb-6 pt-16 sm:px-8 sm:py-24 lg:px-28 lg:py-32",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 -z-10 h-[48%] bg-[radial-gradient(ellipse_at_top,rgba(147,234,93,0.08),transparent_65%)]","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"mx-auto w-full max-w-[1475px]",children:[(0,t.jsxs)("div",{className:"mx-auto max-w-[850px] text-center",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-4 font-mono text-[10px] font-medium uppercase tracking-[0.34em] text-[#5f953e]",children:[(0,t.jsx)("span",{className:"h-px w-10 bg-black/12","aria-hidden":"true"}),(0,t.jsx)("span",{children:"Cards"}),(0,t.jsx)("span",{className:"h-px w-10 bg-black/12","aria-hidden":"true"})]}),(0,t.jsx)("h2",{className:"mt-4 text-balance font-sans text-[20px] font-normal leading-[1.2] tracking-[-0.025em] text-black lg:mt-5 lg:text-[clamp(3rem,4.25vw,4.25rem)] lg:leading-[1.02] lg:tracking-[-0.04em]",children:"A card that works everywhere."}),(0,t.jsx)("p",{className:"mx-auto mt-2 max-w-[310px] text-pretty font-sans text-[14px] leading-[1.3] text-black/52 lg:mt-5 lg:max-w-[780px] lg:text-[20px] lg:leading-[1.5]",children:"Spend your dollars at 150M+ merchants worldwide. Virtual card in minutes, physical card when you want it. No FX markup games."})]}),(0,t.jsxs)("div",{className:"relative mt-10 aspect-[345/408] w-full overflow-hidden rounded-[22px] border border-black/10 bg-black/5 shadow-[0_32px_80px_rgba(20,28,16,0.16)] lg:mt-14 lg:aspect-[1.8475] lg:rounded-[28px]",children:[(0,t.jsx)(r.default,{src:l.imageSrc,alt:l.imageAlt,fill:!0,sizes:"(max-width: 1023px) calc(100vw - 48px), 1475px",className:`animate-in fade-in zoom-in-[1.01] object-cover duration-500 ${"physical"===l.id?"object-[58%_center] lg:object-center":"object-[48%_center] lg:object-center"}`},l.id),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[linear-gradient(180deg,transparent_55%,rgba(0,0,0,0.2)_100%)]","aria-hidden":"true"}),(0,t.jsx)("div",{role:"tablist","aria-label":"Choose card type",className:"card-mode-switch absolute bottom-4 left-1/2 z-10 inline-flex -translate-x-1/2 items-center gap-2 lg:bottom-6 lg:gap-3",children:s.map(a=>{let r=e===a.id;return(0,t.jsx)("button",{ref:e=>{i.current[s.findIndex(e=>e.id===a.id)]=e},type:"button",role:"tab","aria-selected":r,"aria-controls":"card-image-panel",tabIndex:r?0:-1,"data-active":r,onClick:()=>n(a.id),onKeyDown:e=>((e,t)=>{if("ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;e.preventDefault();let a=(t+("ArrowRight"===e.key?1:-1)+s.length)%s.length,r=s[a];r&&(n(r.id),i.current[a]?.focus())})(e,s.findIndex(e=>e.id===a.id)),className:"card-mode-button min-w-[82px] px-3 py-1.5 font-sans text-[12px] font-normal lg:min-w-[152px] lg:px-8 lg:py-3.5 lg:text-[21px]",children:a.label},a.id)})}),(0,t.jsx)("span",{id:"card-image-panel",role:"tabpanel",className:"sr-only",children:"physical"===e?"Physical Hotstuff card selected":"Virtual Hotstuff card selected"})]})]})]})}e.s(["CardsSection",()=>n])},27724,e=>{"use strict";var t=e.i(28785),a=e.i(64067);let r=(0,e.i(10965).default)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);var s=e.i(74244),n=e.i(13330),i=e.i(62870),l=e.i(22840),c=e.i(82565),o=e.i(96483);function d({currency:e,onValueChange:a,ariaLabel:r}){return(0,t.jsxs)(i.Select,{value:e.code,onValueChange:a,children:[(0,t.jsx)(i.SelectTrigger,{"aria-label":r,className:"rails-currency-trigger font-mono text-[11px] font-medium uppercase tracking-[0.06em] text-white/82 sm:text-[12px]",children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(c.CountryFlag,{country:e.country,className:"size-5"}),e.code]})}),(0,t.jsx)(i.SelectContent,{position:"popper",align:"end",sideOffset:7,className:"border-white/15 bg-[#121512]/95 p-1.5 text-white shadow-[0_20px_55px_rgba(0,0,0,0.6)] backdrop-blur-xl",children:o.calculatorCurrencies.map(e=>(0,t.jsxs)(i.SelectItem,{value:e.code,className:"h-10 font-mono text-[11px] tracking-[0.05em] text-white/76 focus:bg-accent/15 focus:text-white",children:[(0,t.jsx)(c.C
27ountryFlag,{country:e.country,className:"size-5"}),(0,t.jsx)("span",{children:e.code}),(0,t.jsx)("span",{className:"font-sans text-[11px] normal-case tracking-normal text-white/38",children:e.name})]},e.code))})]})}function x(){var e,i;let{currency:c}=(0,l.useBankCurrency)(),[x,u]=(0,a.useState)(c.code),[p,m]=(0,a.useState)("USD"),h=o.calculatorCurrencies.find(e=>e.code===x)??o.calculatorCurrencies[0],g=o.calculatorCurrencies.find(e=>e.code===p)??o.calculatorCurrencies[0],[f,b]=(0,a.useState)(1e5),[w,y]=(0,a.useState)({status:"loading",data:null,message:null}),[j,v]=(0,a.useState)(0);(0,a.useEffect)(()=>{u(c.code),b(c.startingAmount)},[c.code,c.startingAmount]),(0,a.useEffect)(()=>{let e=new AbortController;return y({status:"loading",data:null,message:null}),fetch("/api/bank/fx",{signal:e.signal}).then(async e=>{let t=await e.json();if(!e.ok||!("base"in t))throw Error("error"in t&&t.error?t.error:"Current FX rates are unavailable.");return t}).then(e=>{y({status:"ready",data:e,message:null})}).catch(t=>{e.signal.aborted||y({status:"error",data:null,message:t instanceof Error?t.message:"Current FX rates are unavailable."})}),()=>e.abort()},[j]);let N=(0,a.useMemo)(()=>{let e="ready"===w.status?w.data.rates[h.code]:null,t="ready"===w.status?w.data.rates[g.code]:null;return{recipientGets:e&&t?Math.max(0,f)/e*t:null,pairRate:e&&t?t/e:null}},[w,g.code,f,h.code]);return(0,t.jsxs)("section",{id:"global-rails",className:"relative overflow-hidden bg-black px-5 py-16 sm:px-8 sm:py-24 lg:px-12 lg:py-24 xl:px-20 xl:py-28 2xl:px-28 2xl:py-32",children:[(0,t.jsx)("div",{className:"grid-bg pointer-events-none absolute inset-0 opacity-20","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"relative z-10 mx-auto grid w-full max-w-[1478px] items-center gap-10 lg:grid-cols-[minmax(0,1fr)_minmax(320px,432px)] lg:gap-12 xl:gap-20 2xl:gap-[120px]",children:[(0,t.jsxs)("div",{className:"mx-auto max-w-[680px] text-center lg:mx-0 lg:max-w-none lg:text-left",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-3 font-mono text-[10px] font-medium uppercase tracking-[0.34em] text-accent sm:gap-4 lg:justify-start lg:gap-3 lg:text-[14px] lg:tracking-[3px] xl:text-[16px] xl:tracking-[3.6px]",children:[(0,t.jsx)("span",{className:"h-px w-10 bg-white/18 lg:w-8","aria-hidden":"true"}),(0,t.jsx)("span",{children:"Global rails"}),(0,t.jsx)("span",{className:"h-px w-10 bg-white/18 lg:hidden","aria-hidden":"true"})]}),(0,t.jsx)("h2",{className:"mt-4 text-balance font-sans text-[20px] font-normal leading-[1.2] tracking-[-0.025em] text-white lg:text-[clamp(2.25rem,3.5vw,3.5rem)] lg:tracking-[-1px]",children:"Global rails. 190+ countries."}),(0,t.jsx)("p",{className:"mx-auto mt-2 max-w-[310px] text-pretty font-sans text-[14px] leading-[1.3] text-white/58 lg:mx-0 lg:mt-4 lg:max-w-[802px] lg:text-[clamp(1.25rem,2vw,2rem)] lg:leading-[1.2] lg:text-[#adadad]",children:"ACH, Fedwire, SWIFT, SEPA, PIX, FPS, Bre-B, CLABE, and more. Send to 190+ countries in minutes, not days."})]}),(0,t.jsxs)("div",{className:"global-rails-calculator mx-auto w-full max-w-[320px] p-3.5 sm:p-5 lg:max-w-[432px]",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("div",{className:"rails-value-panel px-4 py-4 sm:px-5 sm:py-5",children:[(0,t.jsx)("label",{htmlFor:"rails-send-amount",className:"font-sans text-[13px] text-white/58 sm:text-[14px]",children:"You send"}),(0,t.jsxs)("div",{className:"mt-2 flex items-center gap-3",children:[(0,t.jsx)("input",{id:"rails-send-amount",type:"text",inputMode:"decimal",value:f||"",onChange:e=>{let t;b(Number.isFinite(t=Number.parseFloat(e.target.value.replace(/[^0-9.]/g,"")))?Math.max(0,t):0)},"aria-describedby":"rails-calculator-note",className:"min-w-0 flex-1 bg-transparent font-sans text-[24px] font-normal leading-none tabular-nums tracking-[-0.025em] text-white outline-none placeholder:text-white/25 sm:text-[38px]",placeholder:"0"}),(0,t.jsx)(d,{currency:h,onValueChange:e=>{let t=o.calculatorCurrencies.find(t=>t.code===e);t&&(u(t.code),b(t.startingAmount))},ariaLabel:"Change send currency"})]})]}),(0,t.jsx)("span",{className:"rails-conversion-arrow absolute left-1/2 top-full z-10 inline-flex size-11 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-[13px] bg-accent text-black sm:size-12",children:(0,t.jsx)(r,{className:"size-5 sm:size-6","aria-hidden":"true"})})]}),(0,t.jsxs)("div",{className:"rails-value-panel mt-4 px-4 py-4 sm:px-5 sm:py-5",children:[(0,t.jsx)("span",{className:"font-sans text-[13px] text-white/58 sm:text-[14px]",children:"Recipient gets"}),(0,t.jsxs)("div",{className:"mt-2 flex items-center gap-3",children:[(0,t.jsx)("output",{className:"min-w-0 flex-1 overflow-hidden text-ellipsis font-sans text-[24px] font-normal leading-none tabular-nums tracking-[-0.025em] text-white sm:text-[38px]","aria-live":"polite",children:null===N.recipientGets?"â":(e=N.recipientGets,new Intl.NumberFormat(g.locale,{minimumFractionDigits:2*("IDR"!==g.code),maximumFractionDigits:2*("IDR"!==g.code)}).format(Math.max(0,e)))}),(0,t.jsx)(d,{currency:g,onValueChange:e=>
27{let t=o.calculatorCurrencies.find(t=>t.code===e);t&&m(t.code)},ariaLabel:"Change recipient currency"})]})]}),(0,t.jsx)("div",{className:"my-5 h-px bg-white/12","aria-hidden":"true"}),(0,t.jsxs)("dl",{className:"space-y-3 font-sans text-[11px] min-[375px]:text-[12px] sm:text-[14px]",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 sm:gap-4",children:[(0,t.jsx)("dt",{className:"text-white/48",children:"Reference rate"}),(0,t.jsx)("dd",{className:"min-w-0 text-right tabular-nums text-white/82",children:null===N.pairRate?"â":`1 ${h.code} = ${i=N.pairRate,new Intl.NumberFormat(g.locale,{minimumFractionDigits:i<.01?4:2,maximumFractionDigits:i<.01?6:4}).format(Math.max(0,i))} ${g.code}`})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 sm:gap-4",children:[(0,t.jsx)("dt",{className:"text-white/48",children:"Rate as of"}),(0,t.jsx)("dd",{className:"tabular-nums text-white/82",children:"ready"===w.status?w.data.asOf:"â"})]})]}),(0,t.jsxs)("a",{href:"https://app.hotstuff.trade",target:"_blank",rel:"noreferrer",className:"mt-6 inline-flex h-12 w-full items-center justify-center gap-2 rounded-[12px] bg-accent px-5 font-mono text-[12px] font-medium uppercase tracking-[0.07em] text-black transition-colors hover:bg-[#a8f47a] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-black",children:[(0,t.jsx)("span",{children:"Start sending"}),(0,t.jsx)(s.ArrowUpRight,{className:"size-4","aria-hidden":"true"})]}),(0,t.jsxs)("div",{id:"rails-calculator-note",className:"mt-3 min-h-5 text-center font-mono text-[8px] uppercase leading-relaxed tracking-[0.11em] text-white/32","aria-live":"polite",children:["ready"===w.status?(0,t.jsxs)("span",{children:["Reference FX only · product fees and taxes excluded ·"," ",(0,t.jsx)("a",{href:w.data.sourceUrl,target:"_blank",rel:"noreferrer",className:"underline decoration-white/20 underline-offset-2 transition-colors hover:text-white/58",children:w.data.source})]}):null,"loading"===w.status?(0,t.jsx)("span",{children:"Loading reference FXâ¦"}):null,"error"===w.status?(0,t.jsxs)("button",{type:"button",onClick:()=>v(e=>e+1),className:"inline-flex items-center gap-1 text-accent underline underline-offset-4",children:[(0,t.jsx)(n.RefreshCw,{className:"size-3","aria-hidden":"true"}),"Retry FX"]}):null]})]})]})]})}e.s(["GlobalRailsSection",()=>x],27724)},55605,e=>{"use strict";var t=e.i(28785),a=e.i(59803);let r=(0,e.i(10965).default)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var s=e.i(22840),n=e.i(82565),i=e.i(96483);let l=i.bankCurrencies.find(e=>"USD"===e.code)??i.bankCurrencies[0];function c({currency:e}){return(0,t.jsx)(n.CountryFlag,{country:e.country,className:"size-6 bg-black/15 ring-white/12 lg:size-7"})}function o({currency:e,tone:a}){return(0,t.jsxs)("span",{className:`virtual-currency-pill virtual-currency-pill--${a} inline-flex h-10 items-center gap-2 px-3 lg:h-14 lg:gap-2.5 lg:px-4`,children:[(0,t.jsx)(c,{currency:e}),(0,t.jsx)("span",{className:"font-mono text-[11px] font-medium uppercase tracking-[0.06em] text-white lg:text-[14px]",children:e.code})]})}function d(){let{currency:e}=(0,s.useBankCurrency)();return(0,t.jsxs)("section",{id:"virtual-account",className:"relative isolate overflow-hidden bg-black px-6 py-16 sm:px-8 sm:py-24 lg:px-28 lg:py-32",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 -z-20 bg-[radial-gradient(circle_at_88%_40%,rgba(147,234,93,0.08),transparent_30%)]","aria-hidden":"true"}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 -z-10 opacity-[0.12] [background-image:linear-gradient(to_right,rgba(255,255,255,0.13)_1px,transparent_1px),linear-gradient(to_bottom,rgba(255,255,255,0.13)_1px,transparent_1px)] [background-size:64px_64px]","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"mx-auto grid w-full max-w-[1456px] items-center gap-10 lg:grid-cols-[minmax(0,1fr)_448px] lg:gap-[120px] xl:gap-[180px]",children:[(0,t.jsxs)("div",{className:"mx-auto max-w-[650px] text-center lg:mx-0 lg:text-left",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-4 font-mono text-[10px] font-medium uppercase tracking-[0.34em] text-accent lg:justify-start",children:[(0,t.jsx)("span",{className:"h-px w-10 bg-white/18","aria-hidden":"true"}),(0,t.jsx)("span",{children:"Virtual account"}),(0,t.jsx)("span",{className:"h-px w-10 bg-white/18 lg:hidden","aria-hidden":"true"})]}),(0,t.jsx)("h2",{className:"mt-4 font-sans text-[20px] font-normal leading-[1.2] tracking-[-0.025em] text-white [text-wrap:wrap] lg:mt-6 lg:text-balance lg:text-[clamp(3rem,4.25vw,4.5rem)] lg:leading-[1.02] lg:tracking-[-0.04em]",children:"Your US virtual account. ACH and Fedwire enabled."}),(0,t.jsx)("p",{className:"mx-auto mt-2 max-w-[310px] text-pretty font-sans text-[14px] leading-[1.3] text-white/58 lg:mx-0 lg:mt-6 lg:max-w-[620px] lg:text-[20px] lg:leading-[1.55]",children:"Get paid in USD from anywhere. Salaries, invoices, and wires land directly â like you have a US bank account. No SSN, no US address, no branch visit."})]}),(0,t.jsxs)("div",{className:"relative mx-auto aspect-[27/32] w-full max-w-[270px] overflow-hidden rounded-[14px] border border-white/12 bg-white/5 shadow-[0_36px_90px_rgba(0,0,0,0.48)] lg:
27aspect-[456/540] lg:max-w-[456px] lg:rounded-[24px]",children:[(0,t.jsx)(a.default,{src:"/bank/images/virtual_account.png",alt:"A person leaning out of a car while holding a phone",fill:!0,sizes:"(max-width: 1023px) 270px, 456px",className:"object-cover object-center"}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[linear-gradient(180deg,transparent_45%,rgba(0,0,0,0.22)_100%)]","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"virtual-conversion-float absolute left-1/2 top-[54%] z-10 flex items-center gap-2 lg:top-[58%]","aria-label":`${e.code} converts to USD based on your location`,"aria-live":"polite",children:[(0,t.jsx)(o,{currency:e,tone:"local"}),(0,t.jsx)("span",{className:"virtual-conversion-arrow inline-flex size-10 shrink-0 items-center justify-center rounded-[12px] bg-accent text-black shadow-[0_12px_28px_rgba(73,156,27,0.35)] lg:size-14 lg:rounded-[14px]",children:(0,t.jsx)(r,{className:"size-4 lg:size-6","aria-hidden":"true"})}),(0,t.jsx)(o,{currency:l,tone:"usd"})]})]})]})]})}e.s(["VirtualAccountSection",()=>d],55605)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.