@nowramp/form 0.1.52 → 0.1.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4,18 +4,18 @@
4
4
  if(document.getElementById(id))return;
5
5
  var s=document.createElement('style');
6
6
  s.id=id;
7
- s.textContent=`@layer nowramp-form{.theme-dark{--t-bg: #000000;--t-surface: rgba(255,255,255,.1);--t-surface-hover: rgba(255,255,255,.14);--t-text: #ffffff;--t-text-secondary: rgba(255,255,255,.4);--t-text-tertiary: rgba(255,255,255,.3);--t-text-muted: rgba(255,255,255,.5);--t-border: rgba(255,255,255,.2);--t-border-focus: rgba(255,255,255,.5);--t-pill-bg: rgba(255,255,255,.1);--t-pill-hover: rgba(255,255,255,.15);--t-badge-bg: rgba(255,255,255,.15);--t-divider: rgba(255,255,255,.2);--t-close-bg: rgba(255,255,255,.1);--t-close-hover: rgba(255,255,255,.2);--t-icon-stroke: rgba(255,255,255,.4);--t-icon-close: rgba(255,255,255,.6);--t-accent: #0077FF;--t-cta-bg: var(--t-accent);--t-cta-text: #ffffff;--t-cta-hover: rgba(255,255,255,.9);--t-cta-active: rgba(255,255,255,.8);--t-modal-bg: #000000;--t-chain-border: #000000;--t-skeleton-from: rgba(255,255,255,.06);--t-skeleton-mid: rgba(255,255,255,.12);--t-scrollbar: rgba(255,255,255,.15);--t-card-icon-bg: rgba(255,255,255,.1);--t-card-icon-stroke: rgba(255,255,255,.6);--t-success: #10b981;--t-error: #EF4444}.theme-light{--t-bg: #F2F3F5;--t-surface: rgba(0,0,0,.05);--t-surface-hover: rgba(0,0,0,.08);--t-text: #111111;--t-text-secondary: rgba(0,0,0,.45);--t-text-tertiary: rgba(0,0,0,.3);--t-text-muted: rgba(0,0,0,.5);--t-border: rgba(0,0,0,.12);--t-border-focus: rgba(0,0,0,.3);--t-pill-bg: rgba(0,0,0,.06);--t-pill-hover: rgba(0,0,0,.1);--t-badge-bg: rgba(0,0,0,.08);--t-divider: rgba(0,0,0,.1);--t-close-bg: rgba(0,0,0,.06);--t-close-hover: rgba(0,0,0,.12);--t-icon-stroke: rgba(0,0,0,.35);--t-icon-close: rgba(0,0,0,.5);--t-accent: #0077FF;--t-cta-bg: var(--t-accent);--t-cta-text: #ffffff;--t-cta-hover: #222222;--t-cta-active: #333333;--t-modal-bg: #F2F3F5;--t-chain-border: #F2F3F5;--t-skeleton-from: rgba(0,0,0,.04);--t-skeleton-mid: rgba(0,0,0,.08);--t-scrollbar: rgba(0,0,0,.12);--t-card-icon-bg: rgba(0,0,0,.06);--t-card-icon-stroke: rgba(0,0,0,.5);--t-success: #10b981;--t-error: #EF4444}.custom-scroll::-webkit-scrollbar{width:4px}.custom-scroll::-webkit-scrollbar-track{background:transparent}.custom-scroll::-webkit-scrollbar-thumb{background:var(--t-scrollbar);border-radius:2px}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.skeleton{background:linear-gradient(90deg,var(--t-skeleton-from) 25%,var(--t-skeleton-mid) 50%,var(--t-skeleton-from) 75%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite;border-radius:4px}@keyframes fadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.tab-fade-in{animation:fadeIn .3s ease-out both}.digit-slot{display:inline-block;overflow:hidden;vertical-align:top}.digit-slot-inner{transition:transform .35s cubic-bezier(.33,1,.68,1)}@keyframes nramp-spin{to{transform:rotate(360deg)}}.nramp-spinner{width:40px;height:40px;border:3px solid var(--t-border);border-top-color:var(--t-accent);border-radius:50%;animation:nramp-spin .8s linear infinite;margin:0 auto}.nramp-spinner-large{width:60px;height:60px;border-width:4px}.nramp-spinner-inline{width:16px;height:16px;border-width:2px;display:inline-block}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-0{left:0}.right-3{right:.75rem}.top-0{top:0}.top-1\\/2{top:50%}.top-\\[3px\\]{top:3px}.z-20{z-index:20}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mb-1\\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-2\\.5{margin-bottom:.625rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mr-0\\.5{margin-right:.125rem}.mr-3{margin-right:.75rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-\\[2px\\]{margin-top:2px}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-\\[640px\\]{height:640px}.h-full{height:100%}.min-h-\\[640px\\]{min-height:640px}.w-0{width:0px}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[390px\\]{max-width:390px}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-3\\.5{gap:.875rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-12{padding:3rem}.p-8{padding:2rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\\[18px\\]{padding-left:18px;padding-right:18px}.px-\\[2px\\]{padding-left:2px;padding-right:2px}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-1{padding-bottom:.25rem}.pb-2\\.5{padding-bottom:.625rem}.pb-5{padding-bottom:1.25rem}.pb-\\[14px\\]{padding-bottom:14px}.pb-\\[18px\\]{padding-bottom:18px}.pt-3{padding-top:.75rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pt-\\[12px\\]{padding-top:12px}.pt-\\[14px\\]{padding-top:14px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-\\[17px\\]{font-size:17px}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.text-\\[48px\\]{font-size:48px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.lowercase{text-transform:lowercase}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover-item{transition:background-color .15s ease}.hover-item:hover{background-color:var(--t-hover-bg, rgba(255, 255, 255, .05))}.hover\\:opacity-70:hover{opacity:.7}
7
+ s.textContent=`@layer nowramp-form{.theme-dark{--t-bg: #000000;--t-surface: rgba(255,255,255,.1);--t-surface-hover: rgba(255,255,255,.14);--t-text: #ffffff;--t-text-secondary: rgba(255,255,255,.4);--t-text-tertiary: rgba(255,255,255,.3);--t-text-muted: rgba(255,255,255,.5);--t-border: rgba(255,255,255,.2);--t-border-focus: rgba(255,255,255,.5);--t-pill-bg: rgba(255,255,255,.1);--t-pill-hover: rgba(255,255,255,.15);--t-badge-bg: rgba(255,255,255,.15);--t-divider: rgba(255,255,255,.2);--t-close-bg: rgba(255,255,255,.1);--t-close-hover: rgba(255,255,255,.2);--t-icon-stroke: rgba(255,255,255,.4);--t-icon-close: rgba(255,255,255,.6);--t-accent: #0077FF;--t-cta-bg: var(--t-accent);--t-cta-text: #ffffff;--t-cta-hover: rgba(255,255,255,.9);--t-cta-active: rgba(255,255,255,.8);--t-modal-bg: #000000;--t-chain-border: #000000;--t-skeleton-from: rgba(255,255,255,.06);--t-skeleton-mid: rgba(255,255,255,.12);--t-scrollbar: rgba(255,255,255,.15);--t-card-icon-bg: rgba(255,255,255,.1);--t-card-icon-stroke: rgba(255,255,255,.6);--t-success: #10b981;--t-error: #EF4444}.theme-light{--t-bg: #F2F3F5;--t-surface: rgba(0,0,0,.05);--t-surface-hover: rgba(0,0,0,.08);--t-text: #111111;--t-text-secondary: rgba(0,0,0,.45);--t-text-tertiary: rgba(0,0,0,.3);--t-text-muted: rgba(0,0,0,.5);--t-border: rgba(0,0,0,.12);--t-border-focus: rgba(0,0,0,.3);--t-pill-bg: rgba(0,0,0,.06);--t-pill-hover: rgba(0,0,0,.1);--t-badge-bg: rgba(0,0,0,.08);--t-divider: rgba(0,0,0,.1);--t-close-bg: rgba(0,0,0,.06);--t-close-hover: rgba(0,0,0,.12);--t-icon-stroke: rgba(0,0,0,.35);--t-icon-close: rgba(0,0,0,.5);--t-accent: #0077FF;--t-cta-bg: var(--t-accent);--t-cta-text: #ffffff;--t-cta-hover: #222222;--t-cta-active: #333333;--t-modal-bg: #F2F3F5;--t-chain-border: #F2F3F5;--t-skeleton-from: rgba(0,0,0,.04);--t-skeleton-mid: rgba(0,0,0,.08);--t-scrollbar: rgba(0,0,0,.12);--t-card-icon-bg: rgba(0,0,0,.06);--t-card-icon-stroke: rgba(0,0,0,.5);--t-success: #10b981;--t-error: #EF4444}.custom-scroll::-webkit-scrollbar{width:4px}.custom-scroll::-webkit-scrollbar-track{background:transparent}.custom-scroll::-webkit-scrollbar-thumb{background:var(--t-scrollbar);border-radius:2px}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.skeleton{background:linear-gradient(90deg,var(--t-skeleton-from) 25%,var(--t-skeleton-mid) 50%,var(--t-skeleton-from) 75%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite;border-radius:4px}@keyframes fadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.tab-fade-in{animation:fadeIn .3s ease-out both}.digit-slot{display:inline-block;overflow:hidden;vertical-align:top}.digit-slot-inner{transition:transform .35s cubic-bezier(.33,1,.68,1)}@keyframes nramp-spin{to{transform:rotate(360deg)}}.nramp-spinner{width:40px;height:40px;border:3px solid var(--t-border);border-top-color:var(--t-accent);border-radius:50%;animation:nramp-spin .8s linear infinite;margin:0 auto}.nramp-spinner-large{width:60px;height:60px;border-width:4px}.nramp-spinner-inline{width:16px;height:16px;border-width:2px;display:inline-block}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-0{left:0}.right-3{right:.75rem}.top-0{top:0}.top-1\\/2{top:50%}.top-\\[3px\\]{top:3px}.z-20{z-index:20}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mb-1\\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-2\\.5{margin-bottom:.625rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mr-0\\.5{margin-right:.125rem}.mr-3{margin-right:.75rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-\\[2px\\]{margin-top:2px}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-\\[640px\\]{height:640px}.h-full{height:100%}.min-h-\\[640px\\]{min-height:640px}.w-0{width:0px}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[390px\\]{max-width:390px}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-3\\.5{gap:.875rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-12{padding:3rem}.p-8{padding:2rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\\[18px\\]{padding-left:18px;padding-right:18px}.px-\\[2px\\]{padding-left:2px;padding-right:2px}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-1{padding-bottom:.25rem}.pb-2\\.5{padding-bottom:.625rem}.pb-5{padding-bottom:1.25rem}.pb-\\[14px\\]{padding-bottom:14px}.pb-\\[18px\\]{padding-bottom:18px}.pt-3{padding-top:.75rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pt-\\[12px\\]{padding-top:12px}.pt-\\[14px\\]{padding-top:14px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-\\[17px\\]{font-size:17px}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.text-\\[48px\\]{font-size:48px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover-item{transition:background-color .15s ease}.hover-item:hover{background-color:var(--t-hover-bg, rgba(255, 255, 255, .05))}.hover\\:opacity-70:hover{opacity:.7}
8
8
  }`;
9
9
  document.head.appendChild(s);
10
10
  })();
11
11
  import { jsx as e, jsxs as o, Fragment as te } from "react/jsx-runtime";
12
- import Pe, { useState as g, useRef as V, useCallback as O, useEffect as _, useMemo as j, useReducer as Xt, useContext as $t, createContext as jt } from "react";
13
- import { RampApi as Fe } from "@nowramp/sdk";
12
+ import De, { useState as C, useRef as V, useCallback as H, useEffect as _, useMemo as j, useReducer as Xt, useContext as $t, createContext as jt } from "react";
13
+ import { RampApi as Ke } from "@nowramp/sdk";
14
14
  import { createPortal as yt } from "react-dom";
15
15
  function Wt(t, n) {
16
- const [a, r] = g(null), [l, u] = g(!0), [m, i] = g(null), s = V(null);
17
- (!s.current || s.current !== t) && (s.current = new Fe({ apiKey: "", ...t }));
18
- const p = O(async () => {
16
+ const [a, r] = C(null), [l, u] = C(!0), [m, i] = C(null), s = V(null);
17
+ (!s.current || s.current !== t) && (s.current = new Ke({ apiKey: "", ...t }));
18
+ const p = H(async () => {
19
19
  if (!t.projectId) {
20
20
  i(new Error("projectId is required")), u(!1);
21
21
  return;
@@ -35,8 +35,8 @@ function Wt(t, n) {
35
35
  }, [p]), { config: a, loading: l, error: m, refetch: p };
36
36
  }
37
37
  function Gt(t, n) {
38
- const [a, r] = g(null), [l, u] = g(!1), [m, i] = g(null), s = V(null), p = V(""), h = `${t.apiUrl}|${t.projectId}`;
39
- (!s.current || p.current !== h) && (s.current = new Fe({ apiKey: "", ...t }), p.current = h);
38
+ const [a, r] = C(null), [l, u] = C(!1), [m, i] = C(null), s = V(null), p = V(""), h = `${t.apiUrl}|${t.projectId}`;
39
+ (!s.current || p.current !== h) && (s.current = new Ke({ apiKey: "", ...t }), p.current = h);
40
40
  const d = V(0);
41
41
  _(() => {
42
42
  const y = ++d.current;
@@ -53,7 +53,7 @@ function Gt(t, n) {
53
53
  }
54
54
  );
55
55
  }, [t.projectId, n == null ? void 0 : n.fiatCurrency, n == null ? void 0 : n.fiatAmount, n == null ? void 0 : n.cryptoAmount, n == null ? void 0 : n.cryptoCurrency, n == null ? void 0 : n.network, n == null ? void 0 : n.paymentMethodId, n == null ? void 0 : n.country, n == null ? void 0 : n.orderType]);
56
- const f = O(async () => {
56
+ const f = H(async () => {
57
57
  if (!(!n || !t.projectId)) {
58
58
  u(!0), i(null);
59
59
  try {
@@ -68,10 +68,10 @@ function Gt(t, n) {
68
68
  }, [t.projectId, n]);
69
69
  return { quotes: a, loading: l, error: m, refetch: f };
70
70
  }
71
- function Zt(t) {
72
- const [n, a] = g(null), [r, l] = g(!1), [u, m] = g(null), i = V(null), s = V(""), p = `${t.apiUrl}|${t.projectId}`;
73
- (!i.current || s.current !== p) && (i.current = new Fe({ apiKey: "", ...t }), s.current = p);
74
- const h = O(async (f) => {
71
+ function Yt(t) {
72
+ const [n, a] = C(null), [r, l] = C(!1), [u, m] = C(null), i = V(null), s = V(""), p = `${t.apiUrl}|${t.projectId}`;
73
+ (!i.current || s.current !== p) && (i.current = new Ke({ apiKey: "", ...t }), s.current = p);
74
+ const h = H(async (f) => {
75
75
  l(!0), m(null);
76
76
  try {
77
77
  const y = await i.current.createCheckoutIntent(f);
@@ -82,15 +82,15 @@ function Zt(t) {
82
82
  } finally {
83
83
  l(!1);
84
84
  }
85
- }, []), d = O(() => {
85
+ }, []), d = H(() => {
86
86
  a(null), m(null);
87
87
  }, []);
88
88
  return { order: n, loading: r, error: u, createOrder: h, reset: d };
89
89
  }
90
- function Yt(t, n, a) {
91
- const [r, l] = g(null), [u, m] = g(!1), [i, s] = g(null), p = V(null);
92
- p.current || (p.current = new Fe({ apiKey: "", projectId: "", ...t }));
93
- const h = O(async () => {
90
+ function Zt(t, n, a) {
91
+ const [r, l] = C(null), [u, m] = C(!1), [i, s] = C(null), p = V(null);
92
+ p.current || (p.current = new Ke({ apiKey: "", projectId: "", ...t }));
93
+ const h = H(async () => {
94
94
  if (n) {
95
95
  m(!0), s(null);
96
96
  try {
@@ -199,7 +199,7 @@ function Qt(t, n) {
199
199
  }
200
200
  }
201
201
  const Rt = jt(null);
202
- function Jt({
202
+ function zt({
203
203
  projectId: t,
204
204
  apiUrl: n = "https://api.nowramp.com",
205
205
  assetBaseUrl: a = "",
@@ -217,11 +217,11 @@ function Jt({
217
217
  statusPollInterval: A = 5e3,
218
218
  onComplete: b,
219
219
  onError: T,
220
- children: Y
220
+ children: Z
221
221
  }) {
222
- const Q = j(() => ({ apiUrl: n, projectId: t }), [n, t]), q = s || (i ? i.toLowerCase() : ""), ee = r === "sell", ie = ee ? !!h : !!p, k = (ee ? !!(ie && i && q) : !!(ie && i && q && d)) && f ? "confirm" : "amount", S = p || (r === "buy" ? "250" : ""), [c, N] = Xt(Qt, {
222
+ const Q = j(() => ({ apiUrl: n, projectId: t }), [n, t]), q = s || (i ? i.toLowerCase() : ""), ee = r === "sell", ie = ee ? !!h : !!p, L = (ee ? !!(ie && i && q) : !!(ie && i && q && d)) && f ? "confirm" : "amount", S = p || (r === "buy" ? "250" : ""), [c, N] = Xt(Qt, {
223
223
  ...St,
224
- step: k,
224
+ step: L,
225
225
  flowType: r,
226
226
  fiatCurrency: m,
227
227
  cryptoCurrency: i,
@@ -230,17 +230,17 @@ function Jt({
230
230
  cryptoAmount: xt(h, 6),
231
231
  walletAddress: d,
232
232
  customerId: l
233
- }), H = c.flowType === "sell", {
233
+ }), O = c.flowType === "sell", {
234
234
  config: I,
235
235
  loading: Se,
236
236
  error: se
237
237
  } = Wt(Q, c.flowType);
238
- Pe.useEffect(() => {
238
+ De.useEffect(() => {
239
239
  var U, F, M;
240
240
  if (!I || !c.cryptoCurrency || c.network) return;
241
241
  const v = (U = I.cryptos) == null ? void 0 : U.find((K) => K.code === c.cryptoCurrency), w = ((F = v == null ? void 0 : v.networks) == null ? void 0 : F.find((K) => K.isDefault)) || ((M = v == null ? void 0 : v.networks) == null ? void 0 : M[0]);
242
242
  w != null && w.id && N({ type: "SET_NETWORK", network: w.id });
243
- }, [I, c.cryptoCurrency, c.network]), Pe.useEffect(() => {
243
+ }, [I, c.cryptoCurrency, c.network]), De.useEffect(() => {
244
244
  var M, K;
245
245
  if (!((M = I == null ? void 0 : I.paymentMethods) != null && M.length)) return;
246
246
  const v = c.fiatCurrency, w = I.paymentMethods;
@@ -254,7 +254,7 @@ function Jt({
254
254
  N({ type: "SET_PAYMENT_METHOD", methodId: (F == null ? void 0 : F.id) || ((K = w[0]) == null ? void 0 : K.id) || "" });
255
255
  }, [I, c.fiatCurrency, c.paymentMethodId]);
256
256
  const X = j(() => {
257
- if (H) {
257
+ if (O) {
258
258
  if (!c.cryptoAmount) return null;
259
259
  const M = parseFloat(c.cryptoAmount);
260
260
  return isNaN(M) || M <= 0 ? "Enter a valid amount" : null;
@@ -266,48 +266,48 @@ function Jt({
266
266
  if (!w) return null;
267
267
  const U = parseFloat(w.minAmount), F = parseFloat(w.maxAmount);
268
268
  return !isNaN(U) && v < U ? `Minimum amount is ${w.minAmount} ${c.fiatCurrency}` : !isNaN(F) && v > F ? `Maximum amount is ${w.maxAmount} ${c.fiatCurrency}` : null;
269
- }, [I, c.fiatAmount, c.fiatCurrency, c.cryptoAmount, H]), ue = j(() => {
270
- const v = H ? !!c.cryptoAmount : !!c.fiatAmount;
269
+ }, [I, c.fiatAmount, c.fiatCurrency, c.cryptoAmount, O]), ue = j(() => {
270
+ const v = O ? !!c.cryptoAmount : !!c.fiatAmount;
271
271
  return !I || !v || !c.cryptoCurrency || !c.network || X ? null : {
272
272
  fiatCurrency: c.fiatCurrency,
273
- ...H ? { cryptoAmount: c.cryptoAmount } : { fiatAmount: c.fiatAmount },
273
+ ...O ? { cryptoAmount: c.cryptoAmount } : { fiatAmount: c.fiatAmount },
274
274
  cryptoCurrency: c.cryptoCurrency,
275
275
  network: c.network,
276
276
  paymentMethodId: c.paymentMethodId || void 0,
277
277
  country: c.country || void 0,
278
278
  orderType: c.flowType
279
279
  };
280
- }, [I, c.fiatCurrency, c.fiatAmount, c.cryptoAmount, c.cryptoCurrency, c.network, c.paymentMethodId, c.country, X, H, c.flowType]), {
281
- quotes: L,
280
+ }, [I, c.fiatCurrency, c.fiatAmount, c.cryptoAmount, c.cryptoCurrency, c.network, c.paymentMethodId, c.country, X, O, c.flowType]), {
281
+ quotes: k,
282
282
  loading: xe,
283
283
  error: W,
284
284
  refetch: ne
285
285
  } = Gt(Q, ue), {
286
286
  order: ae,
287
- loading: Ce,
287
+ loading: ge,
288
288
  error: Re,
289
289
  createOrder: me
290
- } = Zt(Q), G = 15e3, {
291
- status: Z,
292
- loading: Me
293
- } = Yt(
290
+ } = Yt(Q), G = 15e3, {
291
+ status: Y,
292
+ loading: Be
293
+ } = Zt(
294
294
  { apiUrl: n },
295
295
  (ae == null ? void 0 : ae.orderId) ?? null,
296
296
  { pollInterval: A, initialDelay: G }
297
297
  );
298
- Pe.useEffect(() => {
299
- (Z == null ? void 0 : Z.status) === "completed" && b && b(Z);
300
- }, [Z == null ? void 0 : Z.status, b]), Pe.useEffect(() => {
298
+ De.useEffect(() => {
299
+ (Y == null ? void 0 : Y.status) === "completed" && b && b(Y);
300
+ }, [Y == null ? void 0 : Y.status, b]), De.useEffect(() => {
301
301
  const v = se || Re;
302
302
  v && T && T(v);
303
303
  }, [se, Re, T]);
304
- const ge = f || (I == null ? void 0 : I.defaultGateway) || null, Te = V(ge);
305
- Te.current = ge;
306
- const ve = V(L);
307
- ve.current = L;
304
+ const Ce = f || (I == null ? void 0 : I.defaultGateway) || null, Te = V(Ce);
305
+ Te.current = Ce;
306
+ const ve = V(k);
307
+ ve.current = k;
308
308
  const be = V(u);
309
309
  be.current = u;
310
- const _e = O(async () => {
310
+ const Ve = H(async () => {
311
311
  var w, U, F;
312
312
  const v = ((w = c.selectedQuote) == null ? void 0 : w.gatewayId) || ((F = (U = ve.current) == null ? void 0 : U.bestQuote) == null ? void 0 : F.gatewayId) || Te.current;
313
313
  if (!v || !c.walletAddress) {
@@ -320,7 +320,7 @@ function Jt({
320
320
  gateway: v,
321
321
  customerId: c.customerId || void 0,
322
322
  fiatCurrency: c.fiatCurrency,
323
- ...H ? { cryptoAmount: c.cryptoAmount } : { fiatAmount: c.fiatAmount },
323
+ ...O ? { cryptoAmount: c.cryptoAmount } : { fiatAmount: c.fiatAmount },
324
324
  cryptoCurrency: c.cryptoCurrency,
325
325
  network: c.network,
326
326
  walletAddress: c.walletAddress,
@@ -333,13 +333,13 @@ function Jt({
333
333
  const K = M instanceof Error ? M.message : "Failed to create order";
334
334
  /wallet|address/i.test(K) ? N({ type: "SET_WALLET_ERROR", message: K.replace(/^Failed to create checkout intent:\s*/i, "") }) : N({ type: "SET_ERROR", message: K });
335
335
  }
336
- }, [c, me, H]), he = O((v) => {
336
+ }, [c, me, O]), he = H((v) => {
337
337
  N({ type: "SET_STEP", step: v });
338
- }, []), Le = O(() => {
338
+ }, []), ke = H(() => {
339
339
  const v = ["confirm", "amount", "quotes", "wallet", "checkout", "processing", "complete"], w = v.indexOf(c.step);
340
340
  w > 0 && N({ type: "SET_STEP", step: v[w - 1] });
341
- }, [c.step, H]), Ve = j(() => {
342
- const v = H ? !!c.cryptoAmount : !!c.fiatAmount;
341
+ }, [c.step, O]), Xe = j(() => {
342
+ const v = O ? !!c.cryptoAmount : !!c.fiatAmount;
343
343
  switch (c.step) {
344
344
  case "confirm":
345
345
  return !!(v && c.cryptoCurrency && c.network && c.walletAddress && !X);
@@ -352,7 +352,7 @@ function Jt({
352
352
  default:
353
353
  return !1;
354
354
  }
355
- }, [c, X, H]), Xe = {
355
+ }, [c, X, O]), $e = {
356
356
  apiConfig: Q,
357
357
  assetBaseUrl: a,
358
358
  config: I,
@@ -360,24 +360,24 @@ function Jt({
360
360
  configError: se,
361
361
  state: c,
362
362
  dispatch: N,
363
- quotes: L,
363
+ quotes: k,
364
364
  quotesLoading: xe,
365
365
  quotesError: W,
366
366
  fetchQuotes: ne,
367
367
  order: ae,
368
- orderLoading: Ce,
368
+ orderLoading: ge,
369
369
  orderError: Re,
370
- createOrder: _e,
371
- orderStatus: Z,
372
- orderStatusLoading: Me,
370
+ createOrder: Ve,
371
+ orderStatus: Y,
372
+ orderStatusLoading: Be,
373
373
  fieldLocks: y || null,
374
- defaultGateway: ge,
374
+ defaultGateway: Ce,
375
375
  amountError: X,
376
376
  goToStep: he,
377
- goBack: Le,
378
- canProceed: Ve
377
+ goBack: ke,
378
+ canProceed: Xe
379
379
  };
380
- return /* @__PURE__ */ e(Rt.Provider, { value: Xe, children: Y });
380
+ return /* @__PURE__ */ e(Rt.Provider, { value: $e, children: Z });
381
381
  }
382
382
  function Ae() {
383
383
  const t = $t(Rt);
@@ -385,7 +385,35 @@ function Ae() {
385
385
  throw new Error("useRamp must be used within a RampProvider");
386
386
  return t;
387
387
  }
388
- const Qe = {
388
+ const Le = {
389
+ // Canonical IDs (returned by the API — lowercase full names)
390
+ // These cover cases where the canonical ID differs from the legacy uppercase key
391
+ ethereum: { name: "Ethereum (ERC20)", shortName: "Ethereum", icon: "eth" },
392
+ bitcoin: { name: "Bitcoin", icon: "btc" },
393
+ solana: { name: "Solana", icon: "sol" },
394
+ polygon: { name: "Polygon", icon: "pol" },
395
+ arbitrum: { name: "Arbitrum", icon: "arb" },
396
+ avalanche: { name: "Avalanche C-Chain", shortName: "Avalanche", icon: "avax" },
397
+ litecoin: { name: "Litecoin", icon: "ltc" },
398
+ tezos: { name: "Tezos", icon: "xtz" },
399
+ sei: { name: "SEI", icon: "sei" },
400
+ imx: { name: "Immutable X", shortName: "Immutable", icon: "imx" },
401
+ galachain: { name: "Gala", icon: "gala" },
402
+ zksync2: { name: "zkSync Era", shortName: "zkSync", icon: "zksync" },
403
+ zks: { name: "zkSpace", icon: "zks" },
404
+ "flow-evm": { name: "Flow (EVM)", shortName: "Flow", icon: "flow" },
405
+ vara: { name: "Vara", icon: "vara" },
406
+ venom: { name: "Venom", icon: "venom" },
407
+ hsk: { name: "HashKey Chain", shortName: "HashKey", icon: "hsk" },
408
+ mck: { name: "MCK", icon: "mck" },
409
+ peer: { name: "Peer", icon: "peer" },
410
+ // Testnets (fallback display names)
411
+ goerli: { name: "Goerli Testnet", shortName: "Goerli", icon: "eth" },
412
+ hbartestnet: { name: "Hedera Testnet", shortName: "Hedera", icon: "hbar" },
413
+ arbitrumrinkeby: { name: "Arbitrum Testnet", shortName: "Arbitrum", icon: "arb" },
414
+ dydxtestnet: { name: "dYdX Testnet", shortName: "dYdX", icon: "stark" },
415
+ "zksync-rinkeby": { name: "zkSync Testnet", shortName: "zkSync", icon: "zksync" },
416
+ // Legacy uppercase keys (used by local crypto data and older integrations)
389
417
  ETH: { name: "Ethereum (ERC20)", shortName: "Ethereum", icon: "eth" },
390
418
  BSC: { name: "Binance Smart Chain (BEP20)", shortName: "Binance", icon: "bnb" },
391
419
  BTC: { name: "Bitcoin", icon: "btc" },
@@ -712,7 +740,7 @@ const Qe = {
712
740
  { code: "ZCHF", name: "Frankencoin", chains: ["ETH"], popular: !1 },
713
741
  { code: "ZETA", name: "Zeta", chains: ["ETH", "ZETACHAIN"], popular: !1 },
714
742
  { code: "ZTG", name: "Zeitgeist", chains: ["ZTG"], popular: !1 }
715
- ], zt = Object.fromEntries(
743
+ ], Jt = Object.fromEntries(
716
744
  Tt.map((t) => [t.code, t.name])
717
745
  ), qt = {
718
746
  AED: "ae",
@@ -749,21 +777,21 @@ const Qe = {
749
777
  VND: "vn",
750
778
  ZAR: "za"
751
779
  };
752
- function Lt(t, n = "") {
780
+ function kt(t, n = "") {
753
781
  return `${n}/crypto-icons/${t.toLowerCase()}.svg`;
754
782
  }
755
783
  function en(t, n = "") {
756
784
  const a = qt[t] || "us";
757
785
  return `${n}/flags/${a}.svg`;
758
786
  }
759
- function Ue(t) {
760
- return Qe[t] || Qe[t.toUpperCase()] || Qe[t.toUpperCase().replace(/-/g, "_")];
787
+ function Fe(t) {
788
+ return Le[t] || Le[t.toLowerCase()] || Le[t.toUpperCase()] || Le[t.toUpperCase().replace(/-/g, "_")] || Le[t.toLowerCase().replace(/-/g, "_")];
761
789
  }
762
- function Je(t, n = "") {
763
- const a = Ue(t);
790
+ function ze(t, n = "") {
791
+ const a = Fe(t);
764
792
  return a ? `${n}/crypto-icons/${a.icon}.svg` : `${n}/crypto-icons/${t.toLowerCase()}.svg`;
765
793
  }
766
- const Ct = [
794
+ const gt = [
767
795
  { code: "ALL", name: "Albania Lek" },
768
796
  { code: "ARS", name: "Argentina Peso" },
769
797
  { code: "AUD", name: "Australian Dollar" },
@@ -776,7 +804,7 @@ const Ct = [
776
804
  { code: "CHF", name: "Swiss Franc" },
777
805
  { code: "MXN", name: "Mexican Peso" },
778
806
  { code: "INR", name: "Indian Rupee" }
779
- ], gt = [
807
+ ], Ct = [
780
808
  { id: "blue", name: "Blue", accent: "#0077FF" },
781
809
  { id: "violet", name: "Violet", accent: "#7C3AED" },
782
810
  { id: "green", name: "Green", accent: "#10B981" },
@@ -815,14 +843,14 @@ const le = (t) => /^#([0-9A-Fa-f]{3}){1,2}$/.test(t), bt = 10, Nt = 1e-4, nn = (
815
843
  t.push({ code: n.code, name: n.name, chain: a, popular: n.popular });
816
844
  return t;
817
845
  })();
818
- function kt({
846
+ function Lt({
819
847
  src: t,
820
848
  alt: n,
821
849
  size: a,
822
850
  className: r = "",
823
851
  background: l
824
852
  }) {
825
- const [u, m] = g(!1), [i, s] = g(!1), p = O(() => m(!0), []), h = O(() => s(!0), []);
853
+ const [u, m] = C(!1), [i, s] = C(!1), p = H(() => m(!0), []), h = H(() => s(!0), []);
826
854
  return /* @__PURE__ */ o(
827
855
  "div",
828
856
  {
@@ -867,18 +895,18 @@ function kt({
867
895
  }
868
896
  function Et({ ticker: t, size: n = 32, baseUrl: a = "" }) {
869
897
  return /* @__PURE__ */ e(
870
- kt,
898
+ Lt,
871
899
  {
872
- src: Lt(t, a),
900
+ src: kt(t, a),
873
901
  alt: t,
874
902
  size: n,
875
903
  background: "#ffffff"
876
904
  }
877
905
  );
878
906
  }
879
- function ze({ currencyCode: t, size: n = 16, baseUrl: a = "" }) {
907
+ function Je({ currencyCode: t, size: n = 16, baseUrl: a = "" }) {
880
908
  return /* @__PURE__ */ e(
881
- kt,
909
+ Lt,
882
910
  {
883
911
  src: en(t, a),
884
912
  alt: t,
@@ -1052,7 +1080,7 @@ function Wn({ size: t = 18 }) {
1052
1080
  }
1053
1081
  );
1054
1082
  }
1055
- function ke() {
1083
+ function Ie() {
1056
1084
  return /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ e("path", { d: "M3 4.5L6 7.5L9 4.5", stroke: "var(--t-text-secondary)", strokeWidth: "1.2", strokeLinecap: "round", strokeLinejoin: "round" }) });
1057
1085
  }
1058
1086
  function mn() {
@@ -1130,7 +1158,7 @@ function Mt(t, n, a = 24) {
1130
1158
  const r = yn[t];
1131
1159
  return r ? fn(r, a) : n ? /* @__PURE__ */ e("img", { src: n, alt: "", width: a, height: a, style: { borderRadius: "50%" } }) : /* @__PURE__ */ e(qe, { size: a });
1132
1160
  }
1133
- function Cn({
1161
+ function gn({
1134
1162
  methods: t,
1135
1163
  selectedId: n,
1136
1164
  onOpenModal: a,
@@ -1176,19 +1204,19 @@ function Cn({
1176
1204
  /* @__PURE__ */ o("span", { className: "flex items-center gap-2", children: [
1177
1205
  /* @__PURE__ */ e("span", { className: "flex items-center justify-center", style: { width: 20, height: 20 }, children: u && Mt(u.id, u.icon, 20) }),
1178
1206
  /* @__PURE__ */ e("span", { className: "text-[13px] font-medium", style: { color: "var(--t-text)" }, children: u ? It(u.id, u.name) : "Select" }),
1179
- /* @__PURE__ */ e(ke, {})
1207
+ /* @__PURE__ */ e(Ie, {})
1180
1208
  ] })
1181
1209
  ]
1182
1210
  }
1183
1211
  ) });
1184
1212
  }
1185
- function gn({
1213
+ function Cn({
1186
1214
  className: t = "",
1187
1215
  autoRedirect: n = !1,
1188
1216
  redirectDelay: a = 3e3
1189
1217
  }) {
1190
1218
  var f;
1191
- const { order: r, orderStatus: l, goToStep: u, goBack: m } = Ae(), [i, s] = g(!1), [p, h] = g(null), d = r != null && r.checkout.expiresAt ? Date.now() > r.checkout.expiresAt : !1;
1219
+ const { order: r, orderStatus: l, goToStep: u, goBack: m } = Ae(), [i, s] = C(!1), [p, h] = C(null), d = r != null && r.checkout.expiresAt ? Date.now() > r.checkout.expiresAt : !1;
1192
1220
  if (_(() => {
1193
1221
  if ((r == null ? void 0 : r.checkout.method) === "redirect" && n && !d) {
1194
1222
  h(Math.ceil(a / 1e3));
@@ -1835,7 +1863,7 @@ function wn({ className: t = "" }) {
1835
1863
  fetchQuotes: u,
1836
1864
  createOrder: m,
1837
1865
  orderLoading: i
1838
- } = Ae(), s = r.flowType === "sell", [p, h] = g(null), d = n == null ? void 0 : n.gateways.find((y) => y.id === l), f = async () => {
1866
+ } = Ae(), s = r.flowType === "sell", [p, h] = C(null), d = n == null ? void 0 : n.gateways.find((y) => y.id === l), f = async () => {
1839
1867
  h(null);
1840
1868
  try {
1841
1869
  u(), await m();
@@ -1897,12 +1925,12 @@ function ye({ label: t, value: n, mono: a, highlight: r }) {
1897
1925
  )
1898
1926
  ] });
1899
1927
  }
1900
- function De({
1928
+ function Ue({
1901
1929
  isOpen: t,
1902
1930
  onClose: n,
1903
1931
  children: a
1904
1932
  }) {
1905
- const [r, l] = g(!1), [u, m] = g(!1);
1933
+ const [r, l] = C(!1), [u, m] = C(!1);
1906
1934
  _(() => {
1907
1935
  if (t)
1908
1936
  l(!0), requestAnimationFrame(() => requestAnimationFrame(() => m(!0)));
@@ -1912,7 +1940,7 @@ function De({
1912
1940
  return () => clearTimeout(s);
1913
1941
  }
1914
1942
  }, [t]);
1915
- const i = O(() => {
1943
+ const i = H(() => {
1916
1944
  m(!1), setTimeout(() => n(), 250);
1917
1945
  }, [n]);
1918
1946
  return _(() => {
@@ -1985,7 +2013,7 @@ function Rn() {
1985
2013
  /* @__PURE__ */ e("div", { className: "text-center py-3", children: /* @__PURE__ */ e("span", { className: "text-[11px]", style: { color: "var(--t-text-tertiary)" }, children: "Powered by NowRamp" }) })
1986
2014
  ] });
1987
2015
  }
1988
- function Ie({ onClick: t }) {
2016
+ function Me({ onClick: t }) {
1989
2017
  return /* @__PURE__ */ e(
1990
2018
  "button",
1991
2019
  {
@@ -1998,7 +2026,7 @@ function Ie({ onClick: t }) {
1998
2026
  }
1999
2027
  );
2000
2028
  }
2001
- function Ke({
2029
+ function _e({
2002
2030
  value: t,
2003
2031
  onChange: n,
2004
2032
  placeholder: a = ""
@@ -2033,9 +2061,9 @@ function Tn({
2033
2061
  assetBaseUrl: r = "",
2034
2062
  selectedCode: l
2035
2063
  }) {
2036
- const [u, m] = g(""), i = j(() => {
2037
- if (!a || a.length === 0) return Ct;
2038
- const p = new Map(Ct.map((h) => [h.code, h.name]));
2064
+ const [u, m] = C(""), i = j(() => {
2065
+ if (!a || a.length === 0) return gt;
2066
+ const p = new Map(gt.map((h) => [h.code, h.name]));
2039
2067
  return a.map((h) => ({
2040
2068
  code: h.code,
2041
2069
  name: h.name || p.get(h.code) || h.code
@@ -2057,7 +2085,7 @@ function Tn({
2057
2085
  );
2058
2086
  }, [i, u, l]);
2059
2087
  return /* @__PURE__ */ o(te, { children: [
2060
- /* @__PURE__ */ e("div", { className: "flex justify-end px-5 pt-5", children: /* @__PURE__ */ e(Ie, { onClick: t }) }),
2088
+ /* @__PURE__ */ e("div", { className: "flex justify-end px-5 pt-5", children: /* @__PURE__ */ e(Me, { onClick: t }) }),
2061
2089
  /* @__PURE__ */ e(
2062
2090
  "h2",
2063
2091
  {
@@ -2072,7 +2100,7 @@ function Tn({
2072
2100
  children: "Select fiat currency"
2073
2101
  }
2074
2102
  ),
2075
- /* @__PURE__ */ e(Ke, { value: u, onChange: m }),
2103
+ /* @__PURE__ */ e(_e, { value: u, onChange: m }),
2076
2104
  /* @__PURE__ */ o("div", { className: "flex-1 overflow-y-auto custom-scroll px-5", children: [
2077
2105
  s.map((p, h) => {
2078
2106
  const d = p.name !== p.code ? p.name : "", f = l === p.code;
@@ -2084,7 +2112,7 @@ function Tn({
2084
2112
  className: "flex items-center w-full transition-colors rounded-lg hover-item",
2085
2113
  style: { color: "var(--t-text)", gap: 14, padding: "18px 8px", margin: "0 -8px" },
2086
2114
  children: [
2087
- /* @__PURE__ */ e(ze, { currencyCode: p.code, size: 32, baseUrl: r }),
2115
+ /* @__PURE__ */ e(Je, { currencyCode: p.code, size: 32, baseUrl: r }),
2088
2116
  /* @__PURE__ */ o("div", { className: "text-left flex-1 flex items-center gap-2", children: [
2089
2117
  /* @__PURE__ */ e("span", { className: "font-semibold text-[15px]", children: p.code }),
2090
2118
  d && /* @__PURE__ */ e("span", { className: "text-[13px]", style: { color: "var(--t-text-secondary)" }, children: d })
@@ -2115,7 +2143,7 @@ function Tn({
2115
2143
  ] });
2116
2144
  }
2117
2145
  function At({ src: t, alt: n, size: a, className: r, style: l }) {
2118
- const [u, m] = g(!1), [i, s] = g(!1), p = O(() => m(!0), []), h = O(() => s(!0), []);
2146
+ const [u, m] = C(!1), [i, s] = C(!1), p = H(() => m(!0), []), h = H(() => s(!0), []);
2119
2147
  return /* @__PURE__ */ o("div", { className: r, style: { ...l, width: a, height: a, position: "relative" }, children: [
2120
2148
  !u && !i && /* @__PURE__ */ e(
2121
2149
  "div",
@@ -2147,12 +2175,12 @@ function At({ src: t, alt: n, size: a, className: r, style: l }) {
2147
2175
  )
2148
2176
  ] });
2149
2177
  }
2150
- function Ln({ onClose: t, onSelect: n, cryptos: a, assetBaseUrl: r = "", selectedCode: l, selectedChain: u }) {
2151
- const [m, i] = g(""), s = j(() => {
2178
+ function kn({ onClose: t, onSelect: n, cryptos: a, assetBaseUrl: r = "", selectedCode: l, selectedChain: u }) {
2179
+ const [m, i] = C(""), s = j(() => {
2152
2180
  if (!a || a.length === 0) return nn;
2153
2181
  const d = [];
2154
2182
  for (const f of a) {
2155
- const y = f.networks || [], A = f.name || zt[f.code] || f.code;
2183
+ const y = f.networks || [], A = f.name || Jt[f.code] || f.code;
2156
2184
  if (y.length === 0)
2157
2185
  d.push({ code: f.code, name: A, chain: f.code, popular: !1 });
2158
2186
  else
@@ -2168,14 +2196,14 @@ function Ln({ onClose: t, onSelect: n, cryptos: a, assetBaseUrl: r = "", selecte
2168
2196
  }
2169
2197
  }
2170
2198
  return d;
2171
- }, [a]), p = O((d, f) => l === d && u === f, [l, u]), h = j(() => {
2199
+ }, [a]), p = H((d, f) => l === d && u === f, [l, u]), h = j(() => {
2172
2200
  var A;
2173
2201
  const d = m.trim().toLowerCase();
2174
2202
  if (!d) {
2175
2203
  if (l && u) {
2176
2204
  const b = s.find((T) => T.code === l && T.chain === u);
2177
2205
  if (b) {
2178
- const T = s.filter((Y) => !(Y.code === l && Y.chain === u));
2206
+ const T = s.filter((Z) => !(Z.code === l && Z.chain === u));
2179
2207
  return [b, ...T];
2180
2208
  }
2181
2209
  }
@@ -2183,15 +2211,15 @@ function Ln({ onClose: t, onSelect: n, cryptos: a, assetBaseUrl: r = "", selecte
2183
2211
  }
2184
2212
  const f = d.split(/\s+/), y = [];
2185
2213
  for (const b of s) {
2186
- const T = Ue(b.chain), Y = T ? T.name.toLowerCase() : "", Q = ((A = T == null ? void 0 : T.shortName) == null ? void 0 : A.toLowerCase()) || "", q = b.chain.toLowerCase(), ee = b.code.toLowerCase(), ie = b.name.toLowerCase(), C = [ee, ie, Y, Q, q];
2187
- if (!f.every((c) => C.some((N) => N.includes(c)))) continue;
2214
+ const T = Fe(b.chain), Z = T ? T.name.toLowerCase() : "", Q = ((A = T == null ? void 0 : T.shortName) == null ? void 0 : A.toLowerCase()) || "", q = b.chain.toLowerCase(), ee = b.code.toLowerCase(), ie = b.name.toLowerCase(), g = [ee, ie, Z, Q, q];
2215
+ if (!f.every((c) => g.some((N) => N.includes(c)))) continue;
2188
2216
  let S = 0;
2189
- ee === d ? S += 100 : ee.startsWith(f[0]) && (S += 50), b.popular && (S += 10), f.length > 1 && (Y.includes(f[1]) || Q.includes(f[1]) || q.includes(f[1])) && (S += 25), y.push({ item: b, score: S });
2217
+ ee === d ? S += 100 : ee.startsWith(f[0]) && (S += 50), b.popular && (S += 10), f.length > 1 && (Z.includes(f[1]) || Q.includes(f[1]) || q.includes(f[1])) && (S += 25), y.push({ item: b, score: S });
2190
2218
  }
2191
2219
  return y.sort((b, T) => T.score - b.score), y.map((b) => b.item);
2192
2220
  }, [s, m, l, u]);
2193
2221
  return /* @__PURE__ */ o(te, { children: [
2194
- /* @__PURE__ */ e("div", { className: "flex justify-end px-5 pt-5", children: /* @__PURE__ */ e(Ie, { onClick: t }) }),
2222
+ /* @__PURE__ */ e("div", { className: "flex justify-end px-5 pt-5", children: /* @__PURE__ */ e(Me, { onClick: t }) }),
2195
2223
  /* @__PURE__ */ e(
2196
2224
  "h2",
2197
2225
  {
@@ -2200,10 +2228,10 @@ function Ln({ onClose: t, onSelect: n, cryptos: a, assetBaseUrl: r = "", selecte
2200
2228
  children: "Select crypto currency"
2201
2229
  }
2202
2230
  ),
2203
- /* @__PURE__ */ e(Ke, { value: m, onChange: i }),
2231
+ /* @__PURE__ */ e(_e, { value: m, onChange: i }),
2204
2232
  /* @__PURE__ */ o("div", { className: "flex-1 overflow-y-auto custom-scroll px-5", children: [
2205
2233
  h.map((d, f) => {
2206
- const y = Ue(d.chain), A = (y == null ? void 0 : y.name) || d.chainName || d.chain, b = d.name !== d.code ? d.name : "", T = p(d.code, d.chain);
2234
+ const y = Fe(d.chain), A = (y == null ? void 0 : y.name) || d.chainName || d.chain, b = d.name !== d.code ? d.name : "", T = p(d.code, d.chain);
2207
2235
  return /* @__PURE__ */ o("div", { children: [
2208
2236
  /* @__PURE__ */ o(
2209
2237
  "button",
@@ -2221,7 +2249,7 @@ function Ln({ onClose: t, onSelect: n, cryptos: a, assetBaseUrl: r = "", selecte
2221
2249
  children: /* @__PURE__ */ e(
2222
2250
  At,
2223
2251
  {
2224
- src: Lt(d.code, r),
2252
+ src: kt(d.code, r),
2225
2253
  alt: d.code,
2226
2254
  size: 32
2227
2255
  }
@@ -2242,7 +2270,7 @@ function Ln({ onClose: t, onSelect: n, cryptos: a, assetBaseUrl: r = "", selecte
2242
2270
  children: /* @__PURE__ */ e(
2243
2271
  At,
2244
2272
  {
2245
- src: Je(d.chain, r),
2273
+ src: ze(d.chain, r),
2246
2274
  alt: d.chain,
2247
2275
  size: 16
2248
2276
  }
@@ -2291,13 +2319,13 @@ function Ln({ onClose: t, onSelect: n, cryptos: a, assetBaseUrl: r = "", selecte
2291
2319
  ] })
2292
2320
  ] });
2293
2321
  }
2294
- function kn({
2322
+ function Ln({
2295
2323
  methods: t,
2296
2324
  selectedId: n,
2297
2325
  onSelect: a,
2298
2326
  onClose: r
2299
2327
  }) {
2300
- const [l, u] = g(""), m = j(() => {
2328
+ const [l, u] = C(""), m = j(() => {
2301
2329
  const i = l.trim().toLowerCase();
2302
2330
  if (!i) {
2303
2331
  if (n) {
@@ -2314,7 +2342,7 @@ function kn({
2314
2342
  );
2315
2343
  }, [t, l, n]);
2316
2344
  return /* @__PURE__ */ o(te, { children: [
2317
- /* @__PURE__ */ e("div", { className: "flex justify-end px-5 pt-5", children: /* @__PURE__ */ e(Ie, { onClick: r }) }),
2345
+ /* @__PURE__ */ e("div", { className: "flex justify-end px-5 pt-5", children: /* @__PURE__ */ e(Me, { onClick: r }) }),
2318
2346
  /* @__PURE__ */ e(
2319
2347
  "h2",
2320
2348
  {
@@ -2323,7 +2351,7 @@ function kn({
2323
2351
  children: "Choose payment method"
2324
2352
  }
2325
2353
  ),
2326
- /* @__PURE__ */ e(Ke, { value: l, onChange: u }),
2354
+ /* @__PURE__ */ e(_e, { value: l, onChange: u }),
2327
2355
  /* @__PURE__ */ o("div", { className: "flex-1 overflow-y-auto custom-scroll px-5", children: [
2328
2356
  m.map((i, s) => {
2329
2357
  const p = i.id === n, h = It(i.id, i.name);
@@ -2424,7 +2452,7 @@ function Bn({
2424
2452
  showThemeToggle: u = !0
2425
2453
  }) {
2426
2454
  return /* @__PURE__ */ o(te, { children: [
2427
- /* @__PURE__ */ e("div", { className: "flex justify-end items-center px-5 pt-5", children: /* @__PURE__ */ e(Ie, { onClick: t }) }),
2455
+ /* @__PURE__ */ e("div", { className: "flex justify-end items-center px-5 pt-5", children: /* @__PURE__ */ e(Me, { onClick: t }) }),
2428
2456
  /* @__PURE__ */ o("div", { className: "px-5 flex-1 pt-6 overflow-y-auto custom-scroll", children: [
2429
2457
  u && /* @__PURE__ */ o(te, { children: [
2430
2458
  /* @__PURE__ */ e("div", { style: { borderTop: "1px solid var(--t-divider)" }, children: /* @__PURE__ */ o("div", { className: "flex items-center justify-between w-full py-5", children: [
@@ -2470,7 +2498,7 @@ function Bn({
2470
2498
  ] })
2471
2499
  ] });
2472
2500
  }
2473
- function On({
2501
+ function Hn({
2474
2502
  className: t = "",
2475
2503
  theme: n = "dark",
2476
2504
  skinId: a = "mono",
@@ -2488,7 +2516,7 @@ function On({
2488
2516
  showFlowToggle: A = !0,
2489
2517
  showSettings: b = !0,
2490
2518
  showThemeToggle: T = !0,
2491
- autoRedirect: Y = !1,
2519
+ autoRedirect: Z = !1,
2492
2520
  explorerUrl: Q,
2493
2521
  doneButtonText: q = "Done",
2494
2522
  supportEmail: ee,
@@ -2496,51 +2524,51 @@ function On({
2496
2524
  }) {
2497
2525
  var st, ct, dt, ut, mt, ht, pt, ft;
2498
2526
  const {
2499
- state: C,
2500
- dispatch: k,
2527
+ state: g,
2528
+ dispatch: L,
2501
2529
  config: S,
2502
2530
  configLoading: c,
2503
2531
  quotes: N,
2504
- quotesLoading: H,
2532
+ quotesLoading: O,
2505
2533
  quotesError: I,
2506
2534
  fetchQuotes: Se,
2507
2535
  createOrder: se,
2508
2536
  orderLoading: X,
2509
2537
  amountError: ue,
2510
- fieldLocks: L,
2538
+ fieldLocks: k,
2511
2539
  apiConfig: xe,
2512
2540
  assetBaseUrl: W
2513
- } = Ae(), [ne, ae] = g(n === "dark"), [Ce, Re] = g(a), [me, G] = g(null), [Z, Me] = g(!1), [ge, Te] = g(!1), [ve, be] = g(!1), [_e, he] = g(null), [Le, Ve] = g(!0), [Xe, v] = g(!1), [w, U] = g(!1), F = V(null), M = V(), K = V(C.flowType);
2541
+ } = Ae(), [ne, ae] = C(n === "dark"), [ge, Re] = C(a), [me, G] = C(null), [Y, Be] = C(!1), [Ce, Te] = C(!1), [ve, be] = C(!1), [Ve, he] = C(null), [ke, Xe] = C(!0), [$e, v] = C(!1), [w, U] = C(!1), F = V(null), M = V(), K = V(g.flowType);
2514
2542
  _(() => {
2515
2543
  ae(n === "dark");
2516
2544
  }, [n]), _(() => {
2517
- const x = setTimeout(() => Ve(!1), c ? 0 : 800);
2545
+ const x = setTimeout(() => Xe(!1), c ? 0 : 800);
2518
2546
  return () => clearTimeout(x);
2519
2547
  }, [c]), _(() => {
2520
- if (K.current !== C.flowType && !Le) {
2521
- K.current = C.flowType, v(!0), Me(!1), Te(!1);
2548
+ if (K.current !== g.flowType && !ke) {
2549
+ K.current = g.flowType, v(!0), Be(!1), Te(!1);
2522
2550
  const x = setTimeout(() => v(!1), 350);
2523
2551
  return () => clearTimeout(x);
2524
2552
  }
2525
- K.current = C.flowType;
2526
- }, [C.flowType, Le]);
2527
- const $ = C.flowType, P = $ === "buy", J = C.cryptoCurrency || "BTC", re = C.fiatCurrency || "USD", $e = P ? C.fiatAmount : C.cryptoAmount, pe = tn($e), Ne = (st = N == null ? void 0 : N.bestQuote) != null && st.exchangeRate ? parseFloat(N.bestQuote.exchangeRate) : null, Be = V(null);
2528
- Ne && J && re && (Be.current = { rate: Ne, crypto: J, fiat: re });
2553
+ K.current = g.flowType;
2554
+ }, [g.flowType, ke]);
2555
+ const $ = g.flowType, P = $ === "buy", z = g.cryptoCurrency || "BTC", re = g.fiatCurrency || "USD", je = P ? g.fiatAmount : g.cryptoAmount, pe = tn(je), Ne = (st = N == null ? void 0 : N.bestQuote) != null && st.exchangeRate ? parseFloat(N.bestQuote.exchangeRate) : null, He = V(null);
2556
+ Ne && z && re && (He.current = { rate: Ne, crypto: z, fiat: re });
2529
2557
  const Bt = j(() => {
2530
2558
  if (N != null && N.bestQuote) {
2531
2559
  const x = P ? N.bestQuote.cryptoAmount : N.bestQuote.fiatAmount;
2532
2560
  if (x) return x;
2533
2561
  }
2534
2562
  return "0";
2535
- }, [N, P]), Ot = j(() => {
2536
- var D, ce, Ge;
2537
- const x = Ne || ((D = Be.current) == null ? void 0 : D.rate), E = Ne ? J : (ce = Be.current) == null ? void 0 : ce.crypto, R = Ne ? re : (Ge = Be.current) == null ? void 0 : Ge.fiat;
2563
+ }, [N, P]), Ht = j(() => {
2564
+ var D, ce, Ye;
2565
+ const x = Ne || ((D = He.current) == null ? void 0 : D.rate), E = Ne ? z : (ce = He.current) == null ? void 0 : ce.crypto, R = Ne ? re : (Ye = He.current) == null ? void 0 : Ye.fiat;
2538
2566
  return !x || !E || !R ? "" : `1 ${E} ≈ ${x.toFixed(2)} ${R}`;
2539
- }, [J, re, Ne]);
2567
+ }, [z, re, Ne]);
2540
2568
  _(() => {
2541
- const x = C.walletAddress.trim(), E = C.network;
2569
+ const x = g.walletAddress.trim(), E = g.network;
2542
2570
  if (!x || x.length < 10) {
2543
- he(null), k({ type: "SET_WALLET_ERROR", message: "" });
2571
+ he(null), L({ type: "SET_WALLET_ERROR", message: "" });
2544
2572
  return;
2545
2573
  }
2546
2574
  return be(!0), he(null), clearTimeout(M.current), M.current = setTimeout(async () => {
@@ -2550,13 +2578,13 @@ function On({
2550
2578
  method: "POST",
2551
2579
  headers: { "Content-Type": "application/json" },
2552
2580
  body: JSON.stringify({ address: x, ...E ? { network: E } : {} })
2553
- })).json(), Ye = ((R = Ze.data) == null ? void 0 : R.attributes) || Ze.data || Ze;
2554
- if (Ye.isValid)
2555
- he(!0), k({ type: "SET_WALLET_ERROR", message: "" });
2581
+ })).json(), Qe = ((R = Ze.data) == null ? void 0 : R.attributes) || Ze.data || Ze;
2582
+ if (Qe.isValid)
2583
+ he(!0), L({ type: "SET_WALLET_ERROR", message: "" });
2556
2584
  else {
2557
2585
  he(!1);
2558
- const Vt = ((D = Ye.errors) == null ? void 0 : D[0]) || ((ce = Ye.details) == null ? void 0 : ce.formatMessage) || "Invalid wallet address";
2559
- k({ type: "SET_WALLET_ERROR", message: Vt });
2586
+ const Vt = ((D = Qe.errors) == null ? void 0 : D[0]) || ((ce = Qe.details) == null ? void 0 : ce.formatMessage) || "Invalid wallet address";
2587
+ L({ type: "SET_WALLET_ERROR", message: Vt });
2560
2588
  }
2561
2589
  } catch {
2562
2590
  he(null);
@@ -2564,61 +2592,61 @@ function On({
2564
2592
  be(!1);
2565
2593
  }
2566
2594
  }, 500), () => clearTimeout(M.current);
2567
- }, [C.walletAddress, C.network, xe.apiUrl]);
2568
- const et = !$e || pe === 0, tt = pe > 0 && (P ? pe < bt : pe < Nt), nt = !!ue || tt || Z && et, Ht = pe > 0 && !ue && !tt, je = C.walletAddress.trim().length >= 10 && _e !== !1 && !ve, Oe = Ht && je && !!C.cryptoCurrency && !!C.network, Pt = (x) => {
2595
+ }, [g.walletAddress, g.network, xe.apiUrl]);
2596
+ const et = !je || pe === 0, tt = pe > 0 && (P ? pe < bt : pe < Nt), nt = !!ue || tt || Y && et, Ot = pe > 0 && !ue && !tt, We = g.walletAddress.trim().length >= 10 && Ve !== !1 && !ve, Oe = Ot && We && !!g.cryptoCurrency && !!g.network, Pt = (x) => {
2569
2597
  let E = x.target.value.replace(/[^0-9.,]/g, "");
2570
2598
  const R = P ? 2 : 6, D = E.indexOf(".");
2571
- D !== -1 && E.length - D - 1 > R && (E = E.slice(0, D + R + 1)), k(P ? { type: "SET_FIAT_AMOUNT", amount: E } : { type: "SET_CRYPTO_AMOUNT", amount: E });
2599
+ D !== -1 && E.length - D - 1 > R && (E = E.slice(0, D + R + 1)), L(P ? { type: "SET_FIAT_AMOUNT", amount: E } : { type: "SET_CRYPTO_AMOUNT", amount: E });
2572
2600
  }, at = (x) => {
2573
- x !== $ && k({ type: "SET_FLOW_TYPE", flowType: x });
2574
- }, Dt = O(
2601
+ x !== $ && L({ type: "SET_FLOW_TYPE", flowType: x });
2602
+ }, Dt = H(
2575
2603
  (x) => {
2576
- k({ type: "SET_FIAT_CURRENCY", currency: x });
2604
+ L({ type: "SET_FIAT_CURRENCY", currency: x });
2577
2605
  },
2578
- [k]
2579
- ), Ut = O(
2606
+ [L]
2607
+ ), Ut = H(
2580
2608
  (x, E) => {
2581
- k({ type: "SET_CRYPTO_CURRENCY", currency: x }), k({ type: "SET_CRYPTO_CHAIN", chain: E });
2609
+ L({ type: "SET_CRYPTO_CURRENCY", currency: x }), L({ type: "SET_CRYPTO_CHAIN", chain: E });
2582
2610
  },
2583
- [k]
2584
- ), Ft = O(
2611
+ [L]
2612
+ ), Ft = H(
2585
2613
  (x) => {
2586
- k({ type: "SET_PAYMENT_METHOD", methodId: x });
2614
+ L({ type: "SET_PAYMENT_METHOD", methodId: x });
2587
2615
  },
2588
- [k]
2616
+ [L]
2589
2617
  ), Kt = () => {
2590
2618
  Oe && (U(!0), Se());
2591
2619
  };
2592
2620
  _(() => {
2593
2621
  var x;
2594
- if (!(!w || H)) {
2622
+ if (!(!w || O)) {
2595
2623
  if (N != null && N.bestQuote)
2596
- U(!1), k({ type: "SELECT_QUOTE", quote: N.bestQuote }), se().catch(() => {
2624
+ U(!1), L({ type: "SELECT_QUOTE", quote: N.bestQuote }), se().catch(() => {
2597
2625
  });
2598
2626
  else if (I)
2599
- U(!1), k({ type: "SET_ERROR", message: I.message || "No quotes available" });
2627
+ U(!1), L({ type: "SET_ERROR", message: I.message || "No quotes available" });
2600
2628
  else if (N && !N.bestQuote) {
2601
2629
  U(!1);
2602
2630
  const E = (x = N.unavailableGateways) == null ? void 0 : x.map((D) => D.reason).filter(Boolean), R = E != null && E.length ? `No providers available: ${E.join("; ")}` : "No providers available for this currency/network combination";
2603
- k({ type: "SET_ERROR", message: R });
2631
+ L({ type: "SET_ERROR", message: R });
2604
2632
  }
2605
2633
  }
2606
- }, [w, N, H, I, k, se]);
2607
- const rt = ne ? "theme-dark" : "theme-light", We = gt.find((x) => x.id === Ce) || gt[0], _t = We.accent === null, ot = (r ? le(r) : !1) ? { "--t-accent": r, "--t-cta-bg": r, "--t-cta-text": "#ffffff" } : _t ? {
2634
+ }, [w, N, O, I, L, se]);
2635
+ const rt = ne ? "theme-dark" : "theme-light", Ge = Ct.find((x) => x.id === ge) || Ct[0], _t = Ge.accent === null, ot = (r ? le(r) : !1) ? { "--t-accent": r, "--t-cta-bg": r, "--t-cta-text": "#ffffff" } : _t ? {
2608
2636
  "--t-accent": ne ? "#ffffff" : "#111111",
2609
2637
  "--t-cta-bg": ne ? "#ffffff" : "#111111",
2610
2638
  "--t-cta-text": ne ? "#000000" : "#ffffff"
2611
2639
  } : {
2612
- "--t-accent": We.accent,
2613
- "--t-cta-bg": We.accent,
2640
+ "--t-accent": Ge.accent,
2641
+ "--t-cta-bg": Ge.accent,
2614
2642
  "--t-cta-text": "#ffffff"
2615
- }, z = {};
2616
- s && le(s) && (z["--t-surface"] = s, z["--t-modal-bg"] = s), p && le(p) && (z["--t-pill-bg"] = p, z["--t-close-bg"] = p), h && le(h) && (z["--t-text"] = h), d && le(d) && (z["--t-text-secondary"] = d), f && le(f) && (z["--t-text-muted"] = f, z["--t-text-tertiary"] = f), y && le(y) && (z["--t-success"] = y);
2643
+ }, J = {};
2644
+ s && le(s) && (J["--t-surface"] = s, J["--t-modal-bg"] = s), p && le(p) && (J["--t-pill-bg"] = p, J["--t-close-bg"] = p), h && le(h) && (J["--t-text"] = h), d && le(d) && (J["--t-text-secondary"] = d), f && le(f) && (J["--t-text-muted"] = f, J["--t-text-tertiary"] = f), y && le(y) && (J["--t-success"] = y);
2617
2645
  const fe = {};
2618
2646
  l && le(l) ? fe.backgroundColor = l : fe.backgroundColor = "var(--t-bg)", u && (fe.backgroundImage = `url(${u})`, fe.backgroundSize = "cover", fe.backgroundPosition = "center");
2619
- const He = {};
2620
- m && le(m) && (He.border = `1px solid ${m}`), i && (He.borderRadius = i);
2621
- const lt = C.step === "checkout" ? /* @__PURE__ */ e(gn, { autoRedirect: Y }) : C.step === "processing" ? /* @__PURE__ */ e(bn, {}) : C.step === "complete" ? /* @__PURE__ */ e(Nn, { explorerUrl: Q, doneButtonText: q, onDone: ie }) : C.step === "error" ? /* @__PURE__ */ e(En, { supportEmail: ee }) : C.step === "confirm" ? /* @__PURE__ */ e(wn, {}) : null;
2647
+ const Pe = {};
2648
+ m && le(m) && (Pe.border = `1px solid ${m}`), i && (Pe.borderRadius = i);
2649
+ const lt = g.step === "checkout" ? /* @__PURE__ */ e(Cn, { autoRedirect: Z }) : g.step === "processing" ? /* @__PURE__ */ e(bn, {}) : g.step === "complete" ? /* @__PURE__ */ e(Nn, { explorerUrl: Q, doneButtonText: q, onDone: ie }) : g.step === "error" ? /* @__PURE__ */ e(En, { supportEmail: ee }) : g.step === "confirm" ? /* @__PURE__ */ e(wn, {}) : null;
2622
2650
  if (lt)
2623
2651
  return /* @__PURE__ */ e(
2624
2652
  "div",
@@ -2628,13 +2656,13 @@ function On({
2628
2656
  fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
2629
2657
  ...fe,
2630
2658
  ...ot,
2631
- ...z,
2632
- ...He
2659
+ ...J,
2660
+ ...Pe
2633
2661
  },
2634
2662
  children: lt
2635
2663
  }
2636
2664
  );
2637
- const oe = C.network, Ee = oe ? Ue(oe) : null, it = (Ee == null ? void 0 : Ee.shortName) || (Ee == null ? void 0 : Ee.name) || oe;
2665
+ const oe = g.network, Ee = oe ? Fe(oe) : null, it = (Ee == null ? void 0 : Ee.shortName) || (Ee == null ? void 0 : Ee.name) || oe;
2638
2666
  return /* @__PURE__ */ o(
2639
2667
  "div",
2640
2668
  {
@@ -2643,8 +2671,8 @@ function On({
2643
2671
  fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
2644
2672
  ...fe,
2645
2673
  ...ot,
2646
- ...z,
2647
- ...He
2674
+ ...J,
2675
+ ...Pe
2648
2676
  },
2649
2677
  children: [
2650
2678
  b && /* @__PURE__ */ e("div", { className: `flex justify-end items-center px-5 pt-3 ${A ? "pb-1" : "pb-5"}`, children: /* @__PURE__ */ e(hn, { onClick: () => G("settings") }) }),
@@ -2684,7 +2712,7 @@ function On({
2684
2712
  )
2685
2713
  ] })
2686
2714
  ] }) : null,
2687
- Le || Xe || c ? /* @__PURE__ */ e(Rn, {}) : /* @__PURE__ */ o("div", { className: "flex-1 overflow-hidden px-5 flex flex-col tab-fade-in", children: [
2715
+ ke || $e || c ? /* @__PURE__ */ e(Rn, {}) : /* @__PURE__ */ o("div", { className: "flex-1 overflow-hidden px-5 flex flex-col tab-fade-in", children: [
2688
2716
  /* @__PURE__ */ o(
2689
2717
  "div",
2690
2718
  {
@@ -2692,7 +2720,7 @@ function On({
2692
2720
  style: {
2693
2721
  background: "var(--t-surface)",
2694
2722
  borderRadius: 5,
2695
- border: Z && nt ? "1px solid #EF4444" : "1px solid transparent",
2723
+ border: Y && nt ? "1px solid #EF4444" : "1px solid transparent",
2696
2724
  minHeight: 102
2697
2725
  },
2698
2726
  children: [
@@ -2703,14 +2731,14 @@ function On({
2703
2731
  {
2704
2732
  ref: F,
2705
2733
  type: "text",
2706
- value: $e,
2734
+ value: je,
2707
2735
  onChange: Pt,
2708
- onBlur: () => Me(!0),
2736
+ onBlur: () => Be(!0),
2709
2737
  placeholder: P ? "250" : "0.01",
2710
2738
  className: "bg-transparent outline-none w-0 flex-1 mr-3",
2711
2739
  style: { color: "var(--t-text)", fontSize: 24, fontWeight: 600, lineHeight: "32px", padding: 0, border: "none", borderRadius: 0, backgroundColor: "transparent", height: "auto", width: 0 },
2712
2740
  inputMode: "decimal",
2713
- disabled: !!((ct = L == null ? void 0 : L.sourceAmount) != null && ct.locked)
2741
+ disabled: !!((ct = k == null ? void 0 : k.sourceAmount) != null && ct.locked)
2714
2742
  }
2715
2743
  ),
2716
2744
  P ? /* @__PURE__ */ o(
@@ -2725,11 +2753,11 @@ function On({
2725
2753
  paddingLeft: 10,
2726
2754
  paddingRight: 10
2727
2755
  },
2728
- disabled: !!((dt = L == null ? void 0 : L.sourceCurrency) != null && dt.locked),
2756
+ disabled: !!((dt = k == null ? void 0 : k.sourceCurrency) != null && dt.locked),
2729
2757
  children: [
2730
- /* @__PURE__ */ e(ze, { currencyCode: re, size: 16, baseUrl: W }),
2758
+ /* @__PURE__ */ e(Je, { currencyCode: re, size: 16, baseUrl: W }),
2731
2759
  /* @__PURE__ */ e("span", { className: "text-[13px] font-medium", style: { color: "var(--t-text)" }, children: re }),
2732
- /* @__PURE__ */ e(ke, {})
2760
+ /* @__PURE__ */ e(Ie, {})
2733
2761
  ]
2734
2762
  }
2735
2763
  ) : /* @__PURE__ */ o("div", { className: "flex flex-col items-end shrink-0", children: [
@@ -2745,11 +2773,11 @@ function On({
2745
2773
  paddingLeft: 10,
2746
2774
  paddingRight: 10
2747
2775
  },
2748
- disabled: !!((ut = L == null ? void 0 : L.destinationCurrency) != null && ut.locked),
2776
+ disabled: !!((ut = k == null ? void 0 : k.destinationCurrency) != null && ut.locked),
2749
2777
  children: [
2750
- /* @__PURE__ */ e(Et, { ticker: J, size: 16, baseUrl: W }),
2751
- /* @__PURE__ */ e("span", { className: "text-[13px] font-medium", style: { color: "var(--t-text)" }, children: J }),
2752
- /* @__PURE__ */ e(ke, {})
2778
+ /* @__PURE__ */ e(Et, { ticker: z, size: 16, baseUrl: W }),
2779
+ /* @__PURE__ */ e("span", { className: "text-[13px] font-medium", style: { color: "var(--t-text)" }, children: z }),
2780
+ /* @__PURE__ */ e(Ie, {})
2753
2781
  ]
2754
2782
  }
2755
2783
  ),
@@ -2757,7 +2785,7 @@ function On({
2757
2785
  /* @__PURE__ */ e("div", { className: "rounded-full", style: { width: 14, height: 14, background: "#ffffff" }, children: /* @__PURE__ */ e(
2758
2786
  "img",
2759
2787
  {
2760
- src: Je(oe, W),
2788
+ src: ze(oe, W),
2761
2789
  alt: oe,
2762
2790
  width: 14,
2763
2791
  height: 14,
@@ -2772,7 +2800,7 @@ function On({
2772
2800
  ]
2773
2801
  }
2774
2802
  ),
2775
- Z && nt && /* @__PURE__ */ e("div", { className: "text-[12px] mt-1.5 px-[2px]", style: { color: "#EF4444" }, children: ue || (et ? "Amount should be more than 0" : P ? `Minimum amount is ${bt} ${re}` : `Minimum amount is ${Nt} ${J}`) }),
2803
+ Y && nt && /* @__PURE__ */ e("div", { className: "text-[12px] mt-1.5 px-[2px]", style: { color: "#EF4444" }, children: ue || (et ? "Amount should be more than 0" : P ? `Minimum amount is ${bt} ${re}` : `Minimum amount is ${Nt} ${z}`) }),
2776
2804
  /* @__PURE__ */ o(
2777
2805
  "div",
2778
2806
  {
@@ -2789,7 +2817,7 @@ function On({
2789
2817
  children: [
2790
2818
  /* @__PURE__ */ e("div", { className: "text-[13px] mb-2.5", style: { color: "var(--t-text-secondary)" }, children: "You get" }),
2791
2819
  /* @__PURE__ */ o("div", { className: "flex items-start justify-between", children: [
2792
- H && !w ? /* @__PURE__ */ e(B, { w: 180, h: 32 }) : /* @__PURE__ */ e(
2820
+ O && !w ? /* @__PURE__ */ e(B, { w: 180, h: 32 }) : /* @__PURE__ */ e(
2793
2821
  Sn,
2794
2822
  {
2795
2823
  value: pe > 0 ? Bt : "0",
@@ -2811,11 +2839,11 @@ function On({
2811
2839
  paddingLeft: 10,
2812
2840
  paddingRight: 10
2813
2841
  },
2814
- disabled: !!((mt = L == null ? void 0 : L.destinationCurrency) != null && mt.locked),
2842
+ disabled: !!((mt = k == null ? void 0 : k.destinationCurrency) != null && mt.locked),
2815
2843
  children: [
2816
- /* @__PURE__ */ e(Et, { ticker: J, size: 16, baseUrl: W }),
2817
- /* @__PURE__ */ e("span", { className: "text-[13px] font-medium", style: { color: "var(--t-text)" }, children: J }),
2818
- /* @__PURE__ */ e(ke, {})
2844
+ /* @__PURE__ */ e(Et, { ticker: z, size: 16, baseUrl: W }),
2845
+ /* @__PURE__ */ e("span", { className: "text-[13px] font-medium", style: { color: "var(--t-text)" }, children: z }),
2846
+ /* @__PURE__ */ e(Ie, {})
2819
2847
  ]
2820
2848
  }
2821
2849
  ),
@@ -2823,7 +2851,7 @@ function On({
2823
2851
  /* @__PURE__ */ e("div", { className: "rounded-full", style: { width: 14, height: 14, background: "#ffffff" }, children: /* @__PURE__ */ e(
2824
2852
  "img",
2825
2853
  {
2826
- src: Je(oe, W),
2854
+ src: ze(oe, W),
2827
2855
  alt: oe,
2828
2856
  width: 14,
2829
2857
  height: 14,
@@ -2845,11 +2873,11 @@ function On({
2845
2873
  paddingLeft: 10,
2846
2874
  paddingRight: 10
2847
2875
  },
2848
- disabled: !!((ht = L == null ? void 0 : L.sourceCurrency) != null && ht.locked),
2876
+ disabled: !!((ht = k == null ? void 0 : k.sourceCurrency) != null && ht.locked),
2849
2877
  children: [
2850
- /* @__PURE__ */ e(ze, { currencyCode: re, size: 16, baseUrl: W }),
2878
+ /* @__PURE__ */ e(Je, { currencyCode: re, size: 16, baseUrl: W }),
2851
2879
  /* @__PURE__ */ e("span", { className: "text-[13px] font-medium", style: { color: "var(--t-text)" }, children: re }),
2852
- /* @__PURE__ */ e(ke, {})
2880
+ /* @__PURE__ */ e(Ie, {})
2853
2881
  ]
2854
2882
  }
2855
2883
  )
@@ -2865,16 +2893,16 @@ function On({
2865
2893
  background: "var(--t-surface)",
2866
2894
  ...(pt = S == null ? void 0 : S.paymentMethods) != null && pt.length ? {} : { borderBottomLeftRadius: 5, borderBottomRightRadius: 5 }
2867
2895
  },
2868
- children: /* @__PURE__ */ e("span", { className: "text-[12px]", style: { color: y ? "var(--t-success)" : "var(--t-text-secondary)" }, children: Ot || " " })
2896
+ children: /* @__PURE__ */ e("span", { className: "text-[12px]", style: { color: y ? "var(--t-success)" : "var(--t-text-secondary)" }, children: Ht || " " })
2869
2897
  }
2870
2898
  ),
2871
2899
  (S == null ? void 0 : S.paymentMethods) && S.paymentMethods.length > 0 && /* @__PURE__ */ e("div", { className: "mt-[2px]", children: /* @__PURE__ */ e(
2872
- Cn,
2900
+ gn,
2873
2901
  {
2874
2902
  methods: S.paymentMethods,
2875
- selectedId: C.paymentMethodId,
2903
+ selectedId: g.paymentMethodId,
2876
2904
  onOpenModal: () => G("payment"),
2877
- fiatCurrency: C.fiatCurrency
2905
+ fiatCurrency: g.fiatCurrency
2878
2906
  }
2879
2907
  ) }),
2880
2908
  /* @__PURE__ */ o("div", { className: "mt-8", children: [
@@ -2883,15 +2911,15 @@ function On({
2883
2911
  "input",
2884
2912
  {
2885
2913
  type: "text",
2886
- value: C.walletAddress,
2887
- onChange: (x) => k({ type: "SET_WALLET_ADDRESS", address: x.target.value }),
2914
+ value: g.walletAddress,
2915
+ onChange: (x) => L({ type: "SET_WALLET_ADDRESS", address: x.target.value }),
2888
2916
  onBlur: () => Te(!0),
2889
2917
  placeholder: P ? "Enter your receiving address" : "Enter your sending address",
2890
2918
  spellCheck: !1,
2891
2919
  autoComplete: "off",
2892
2920
  className: "w-full bg-transparent text-[13px] outline-none transition-colors",
2893
2921
  style: {
2894
- border: C.walletError || ge && !je ? "1px solid #EF4444" : "1px solid var(--t-border)",
2922
+ border: g.walletError || Ce && !We ? "1px solid #EF4444" : "1px solid var(--t-border)",
2895
2923
  borderRadius: 3.5,
2896
2924
  height: 47,
2897
2925
  padding: "0 14px",
@@ -2899,10 +2927,10 @@ function On({
2899
2927
  fontSize: 13,
2900
2928
  backgroundColor: "transparent"
2901
2929
  },
2902
- disabled: !!((ft = L == null ? void 0 : L.destinationAddress) != null && ft.locked)
2930
+ disabled: !!((ft = k == null ? void 0 : k.destinationAddress) != null && ft.locked)
2903
2931
  }
2904
2932
  ),
2905
- C.walletError ? /* @__PURE__ */ e("div", { className: "text-[12px] mt-1.5", style: { color: "#EF4444" }, children: C.walletError }) : ge && !je && !ve ? /* @__PURE__ */ e("div", { className: "text-[12px] mt-1.5", style: { color: "#EF4444" }, children: "Enter a valid wallet address" }) : ve && C.walletAddress.trim().length >= 10 ? /* @__PURE__ */ e("div", { className: "text-[12px] mt-1.5", style: { color: "var(--t-text-muted)" }, children: "Validating address..." }) : null
2933
+ g.walletError ? /* @__PURE__ */ e("div", { className: "text-[12px] mt-1.5", style: { color: "#EF4444" }, children: g.walletError }) : Ce && !We && !ve ? /* @__PURE__ */ e("div", { className: "text-[12px] mt-1.5", style: { color: "#EF4444" }, children: "Enter a valid wallet address" }) : ve && g.walletAddress.trim().length >= 10 ? /* @__PURE__ */ e("div", { className: "text-[12px] mt-1.5", style: { color: "var(--t-text-muted)" }, children: "Validating address..." }) : null
2906
2934
  ] }),
2907
2935
  /* @__PURE__ */ e("div", { className: "flex-1" }),
2908
2936
  /* @__PURE__ */ e(
@@ -2919,12 +2947,12 @@ function On({
2919
2947
  opacity: Oe && !X && !w ? 1 : 0.4,
2920
2948
  cursor: Oe && !X && !w ? "pointer" : "not-allowed"
2921
2949
  },
2922
- children: w ? "Getting best price..." : X ? "Processing..." : P ? `Buy ${J}` : `Sell ${J}`
2950
+ children: w ? "Getting best price..." : X ? "Processing..." : P ? `Buy ${z}` : `Sell ${z}`
2923
2951
  }
2924
2952
  ),
2925
2953
  /* @__PURE__ */ e("div", { className: "text-center py-3", children: /* @__PURE__ */ e("span", { className: "text-[11px]", style: { color: "var(--t-text-tertiary)" }, children: "Powered by NowRamp" }) })
2926
2954
  ] }, $),
2927
- /* @__PURE__ */ e(De, { isOpen: me === "fiat", onClose: () => G(null), children: (x) => {
2955
+ /* @__PURE__ */ e(Ue, { isOpen: me === "fiat", onClose: () => G(null), children: (x) => {
2928
2956
  var E;
2929
2957
  return /* @__PURE__ */ e(
2930
2958
  Tn,
@@ -2935,14 +2963,14 @@ function On({
2935
2963
  },
2936
2964
  currencies: (E = S == null ? void 0 : S.fiats) == null ? void 0 : E.map((R) => ({ code: R.code, name: R.code })),
2937
2965
  assetBaseUrl: W,
2938
- selectedCode: C.fiatCurrency
2966
+ selectedCode: g.fiatCurrency
2939
2967
  }
2940
2968
  );
2941
2969
  } }),
2942
- /* @__PURE__ */ e(De, { isOpen: me === "crypto", onClose: () => G(null), children: (x) => {
2970
+ /* @__PURE__ */ e(Ue, { isOpen: me === "crypto", onClose: () => G(null), children: (x) => {
2943
2971
  var E;
2944
2972
  return /* @__PURE__ */ e(
2945
- Ln,
2973
+ kn,
2946
2974
  {
2947
2975
  onClose: x,
2948
2976
  onSelect: (R, D) => {
@@ -2957,18 +2985,18 @@ function On({
2957
2985
  };
2958
2986
  }),
2959
2987
  assetBaseUrl: W,
2960
- selectedCode: C.cryptoCurrency,
2961
- selectedChain: C.network
2988
+ selectedCode: g.cryptoCurrency,
2989
+ selectedChain: g.network
2962
2990
  }
2963
2991
  );
2964
2992
  } }),
2965
- /* @__PURE__ */ e(De, { isOpen: me === "payment", onClose: () => G(null), children: (x) => {
2993
+ /* @__PURE__ */ e(Ue, { isOpen: me === "payment", onClose: () => G(null), children: (x) => {
2966
2994
  var E;
2967
2995
  return /* @__PURE__ */ e(
2968
- kn,
2996
+ Ln,
2969
2997
  {
2970
- methods: ((E = S == null ? void 0 : S.paymentMethods) == null ? void 0 : E.filter((R) => R.supportedFiats.includes(C.fiatCurrency))) || [],
2971
- selectedId: C.paymentMethodId,
2998
+ methods: ((E = S == null ? void 0 : S.paymentMethods) == null ? void 0 : E.filter((R) => R.supportedFiats.includes(g.fiatCurrency))) || [],
2999
+ selectedId: g.paymentMethodId,
2972
3000
  onSelect: (R) => {
2973
3001
  Ft(R), x();
2974
3002
  },
@@ -2976,13 +3004,13 @@ function On({
2976
3004
  }
2977
3005
  );
2978
3006
  } }),
2979
- /* @__PURE__ */ e(De, { isOpen: me === "settings", onClose: () => G(null), children: (x) => /* @__PURE__ */ e(
3007
+ /* @__PURE__ */ e(Ue, { isOpen: me === "settings", onClose: () => G(null), children: (x) => /* @__PURE__ */ e(
2980
3008
  Bn,
2981
3009
  {
2982
3010
  onClose: x,
2983
3011
  darkMode: ne,
2984
3012
  onToggleDarkMode: ae,
2985
- skinId: Ce,
3013
+ skinId: ge,
2986
3014
  onSelectSkin: (E) => {
2987
3015
  Re(E);
2988
3016
  },
@@ -2993,7 +3021,7 @@ function On({
2993
3021
  }
2994
3022
  );
2995
3023
  }
2996
- function Hn({
3024
+ function On({
2997
3025
  projectId: t,
2998
3026
  apiUrl: n,
2999
3027
  assetBaseUrl: a,
@@ -3011,31 +3039,31 @@ function Hn({
3011
3039
  statusPollInterval: A,
3012
3040
  onComplete: b,
3013
3041
  onError: T,
3014
- className: Y,
3042
+ className: Z,
3015
3043
  theme: Q,
3016
3044
  skinId: q,
3017
3045
  accentColor: ee,
3018
3046
  bgColor: ie,
3019
- bgImage: C,
3020
- borderColor: k,
3047
+ bgImage: g,
3048
+ borderColor: L,
3021
3049
  borderRadius: S,
3022
3050
  surfaceColor: c,
3023
3051
  inputBgColor: N,
3024
- textColor: H,
3052
+ textColor: O,
3025
3053
  textSecondaryColor: I,
3026
3054
  textMutedColor: Se,
3027
3055
  successColor: se,
3028
3056
  showFlowToggle: X,
3029
3057
  showSettings: ue,
3030
- showThemeToggle: L,
3058
+ showThemeToggle: k,
3031
3059
  autoRedirect: xe,
3032
3060
  explorerUrl: W,
3033
3061
  doneButtonText: ne,
3034
3062
  supportEmail: ae,
3035
- onDone: Ce
3063
+ onDone: ge
3036
3064
  }) {
3037
3065
  return /* @__PURE__ */ e(
3038
- Jt,
3066
+ zt,
3039
3067
  {
3040
3068
  projectId: t,
3041
3069
  apiUrl: n,
@@ -3055,30 +3083,30 @@ function Hn({
3055
3083
  onComplete: b,
3056
3084
  onError: T,
3057
3085
  children: /* @__PURE__ */ e(
3058
- On,
3086
+ Hn,
3059
3087
  {
3060
- className: Y,
3088
+ className: Z,
3061
3089
  theme: Q,
3062
3090
  skinId: q,
3063
3091
  accentColor: ee,
3064
3092
  bgColor: ie,
3065
- bgImage: C,
3066
- borderColor: k,
3093
+ bgImage: g,
3094
+ borderColor: L,
3067
3095
  borderRadius: S,
3068
3096
  surfaceColor: c,
3069
3097
  inputBgColor: N,
3070
- textColor: H,
3098
+ textColor: O,
3071
3099
  textSecondaryColor: I,
3072
3100
  textMutedColor: Se,
3073
3101
  successColor: se,
3074
3102
  showFlowToggle: X,
3075
3103
  showSettings: ue,
3076
- showThemeToggle: L,
3104
+ showThemeToggle: k,
3077
3105
  autoRedirect: xe,
3078
3106
  explorerUrl: W,
3079
3107
  doneButtonText: ne,
3080
3108
  supportEmail: ae,
3081
- onDone: Ce
3109
+ onDone: ge
3082
3110
  }
3083
3111
  )
3084
3112
  }
@@ -3089,9 +3117,9 @@ function Gn({
3089
3117
  rateRefreshInterval: n,
3090
3118
  ...a
3091
3119
  }) {
3092
- return /* @__PURE__ */ e(Hn, { ...a });
3120
+ return /* @__PURE__ */ e(On, { ...a });
3093
3121
  }
3094
- function Zn({
3122
+ function Yn({
3095
3123
  skin: t,
3096
3124
  active: n,
3097
3125
  onClick: a,
@@ -3170,20 +3198,20 @@ function Un() {
3170
3198
  t
3171
3199
  )) });
3172
3200
  }
3173
- function Yn({
3201
+ function Zn({
3174
3202
  onClose: t,
3175
3203
  onSelect: n,
3176
3204
  quotes: a,
3177
3205
  quotesLoading: r,
3178
3206
  cryptoCurrency: l
3179
3207
  }) {
3180
- const [u, m] = g(""), i = j(() => {
3208
+ const [u, m] = C(""), i = j(() => {
3181
3209
  if (!(a != null && a.quotes)) return [];
3182
3210
  const s = u.trim().toLowerCase();
3183
3211
  return s ? a.quotes.filter((p) => p.gatewayName.toLowerCase().includes(s)) : a.quotes;
3184
3212
  }, [a, u]);
3185
3213
  return /* @__PURE__ */ o(te, { children: [
3186
- /* @__PURE__ */ e("div", { className: "flex justify-end px-5 pt-5", children: /* @__PURE__ */ e(Ie, { onClick: t }) }),
3214
+ /* @__PURE__ */ e("div", { className: "flex justify-end px-5 pt-5", children: /* @__PURE__ */ e(Me, { onClick: t }) }),
3187
3215
  /* @__PURE__ */ e(
3188
3216
  "h2",
3189
3217
  {
@@ -3192,7 +3220,7 @@ function Yn({
3192
3220
  children: "Choose Ramp"
3193
3221
  }
3194
3222
  ),
3195
- /* @__PURE__ */ e(Ke, { value: u, onChange: m }),
3223
+ /* @__PURE__ */ e(_e, { value: u, onChange: m }),
3196
3224
  /* @__PURE__ */ o("div", { className: "flex-1 overflow-y-auto custom-scroll px-5 space-y-2", children: [
3197
3225
  r ? /* @__PURE__ */ e(Un, {}) : i.length === 0 ? /* @__PURE__ */ e("div", { className: "text-center py-10 text-[14px]", style: { color: "var(--t-text-muted)" }, children: a && a.quotes.length === 0 ? "No quotes available for this request" : "No providers found" }) : i.map((s, p) => {
3198
3226
  const h = p === 0, d = parseFloat(s.cryptoAmount), f = d >= 1 ? d.toFixed(4) : d.toPrecision(6);
@@ -3247,57 +3275,57 @@ export {
3247
3275
  An as AnimatedDigit,
3248
3276
  Sn as AnimatedNumber,
3249
3277
  on as ApplePayIcon,
3250
- Qe as BLOCKCHAINS,
3278
+ Le as BLOCKCHAINS,
3251
3279
  an as BankIcon,
3252
3280
  nn as CRYPTO_CHAIN_COMBOS,
3253
3281
  Tt as CRYPTO_CURRENCIES,
3254
3282
  un as CardIcon,
3255
3283
  Gn as CheckoutForm,
3256
- gn as CheckoutStep,
3257
- ke as ChevronDown,
3284
+ Cn as CheckoutStep,
3285
+ Ie as ChevronDown,
3258
3286
  mn as ChevronRight,
3259
- Yn as ChooseRampModal,
3260
- Ie as CloseButton,
3287
+ Zn as ChooseRampModal,
3288
+ Me as CloseButton,
3261
3289
  Wn as CoinifyIcon,
3262
3290
  Nn as CompleteStep,
3263
3291
  wn as ConfirmStep,
3264
- Ln as CryptoCurrencyModal,
3292
+ kn as CryptoCurrencyModal,
3265
3293
  Et as CryptoIcon,
3266
3294
  pn as DarkModeIcon,
3267
3295
  En as ErrorStep,
3268
- Ct as FIAT_CURRENCIES,
3296
+ gt as FIAT_CURRENCIES,
3269
3297
  qt as FIAT_TO_COUNTRY,
3270
3298
  Tn as FiatCurrencyModal,
3271
- ze as FiatFlag,
3299
+ Je as FiatFlag,
3272
3300
  Rn as FormSkeleton,
3273
3301
  qe as GenericCoinIcon,
3274
3302
  ln as GooglePayIcon,
3275
3303
  vt as MOCK_RATES,
3276
3304
  hn as MenuIcon,
3277
- De as Modal,
3305
+ Ue as Modal,
3278
3306
  sn as PayPalIcon,
3279
- Cn as PaymentMethodSelector,
3307
+ gn as PaymentMethodSelector,
3280
3308
  bn as ProcessingStep,
3281
- Hn as RampForm,
3282
- Jt as RampProvider,
3309
+ On as RampForm,
3310
+ zt as RampProvider,
3283
3311
  rn as RevolutIcon,
3284
- gt as SKINS,
3285
- Ke as SearchInput,
3312
+ Ct as SKINS,
3313
+ _e as SearchInput,
3286
3314
  Bn as SettingsScreen,
3287
3315
  B as Skeleton,
3288
- Zn as SkinSwatch,
3316
+ Yn as SkinSwatch,
3289
3317
  In as ToggleSwitch,
3290
3318
  jn as formatOutput,
3291
- Je as getChainIconUrl,
3292
- Lt as getCryptoIconUrl,
3319
+ ze as getChainIconUrl,
3320
+ kt as getCryptoIconUrl,
3293
3321
  en as getFiatFlagUrl,
3294
3322
  $n as getMockRate,
3295
3323
  fn as getPaymentIcon,
3296
3324
  tn as parseAmount,
3297
- Zt as useCheckoutIntent,
3325
+ Yt as useCheckoutIntent,
3298
3326
  Gt as useQuotes,
3299
3327
  Ae as useRamp,
3300
3328
  Wt as useRampConfig,
3301
- Yt as useTransaction
3329
+ Zt as useTransaction
3302
3330
  };
3303
3331
  //# sourceMappingURL=index.js.map