@glacislabs/stablegenie-zerodelta 4.5.0 → 4.6.0

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.
@@ -1,5 +1,5 @@
1
- import { CHAIN_DISPLAY_NAMES, EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, complianceView, complianceChecks, DIRECT_CHECK_IDS, complianceTagOf, symbolKey, normalizeDecimalText, findToken, laneLimitFor, laneLimitSymbol, tokenTicker, exceedsLaneLimit, assetDecimals, parseUnitsDecimal, counterpartTokens, assetClassOf, brokenLaneFor, brokenLaneReason, destinationAvailability, laneLimitHint, tickerOn, laneLimitError, amountFieldError, SUPPORTED_CHAIN_IDS, formatUnits, unattributedComplianceReasons, distinctScreenedWallets, humanizeComplianceReason, DIRECT_SCOPE_NOTE, categoryLabel, SCREENING_BUCKETS, createEngine, routeNativeValue, checkNativeFee, nativeFeeShortLabel, nativeSymbol, nativeFeeShortMessage, allowanceCovers, validatePlannedTransaction, foldTicker, BUNDLED_RPC } from './chunk-447DEZ5S.js';
2
- import { createContext, useState, useRef, useEffect, useMemo, useCallback, useId, createElement, useContext } from 'react';
1
+ import { CHAIN_DISPLAY_NAMES, EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, complianceView, complianceTagOf, symbolKey, normalizeDecimalText, findToken, laneLimitFor, laneLimitSymbol, tokenTicker, exceedsLaneLimit, assetDecimals, parseUnitsDecimal, counterpartTokens, assetClassOf, brokenLaneFor, brokenLaneReason, destinationAvailability, laneLimitHint, tickerOn, laneLimitError, routeNativeValue, formatNative, nativeSymbol, amountFieldError, SUPPORTED_CHAIN_IDS, formatUnits, complianceChecks, DIRECT_CHECK_IDS, createEngine, checkNativeFee, nativeFeeShortLabel, nativeFeeShortMessage, allowanceCovers, validatePlannedTransaction, foldTicker, unattributedComplianceReasons, distinctScreenedWallets, humanizeComplianceReason, DIRECT_SCOPE_NOTE, categoryLabel, SCREENING_BUCKETS, BUNDLED_RPC } from './chunk-CEBEMZHZ.js';
2
+ import { createContext, useState, useRef, useMemo, useEffect, useCallback, useId, createElement, useContext } from 'react';
3
3
  import { createRoot } from 'react-dom/client';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
 
@@ -579,17 +579,28 @@ function useHoldings(engine, account, routes, initialBalances) {
579
579
 
580
580
  // src/react/styles.ts
581
581
  var WIDGET_CSS = `
582
- .sg-widget{box-sizing:border-box;width:100%;max-width:400px;margin:0 auto;padding:20px;background:var(--sg-bg);color:var(--sg-text);border:1px solid var(--sg-border);border-radius:var(--sg-radius);font-family:var(--sg-font);font-size:15px;line-height:1.5;box-shadow:0 1px 2px rgba(16,17,22,.04),0 8px 24px rgba(16,17,22,.06)}
582
+ /* The card as the ZeroDelta widget design draws it (Figma "Widget Playground", 2026-09-30): no
583
+ border and no shadow, tone steps of the one text colour, and a "raised" fill for the controls that
584
+ sit on a tinted pane (the token button, the percent chips, the swap button). The tone steps are
585
+ derived here from --sg-text so a host theme only has to name the text colour once. */
586
+ .sg-widget,.sg-duo-wrap,.sg-pill-root{--sg-t90:color-mix(in srgb,var(--sg-text) 90%,transparent);--sg-t80:color-mix(in srgb,var(--sg-text) 80%,transparent);--sg-t72:color-mix(in srgb,var(--sg-text) 72%,transparent);--sg-t60:color-mix(in srgb,var(--sg-text) 60%,transparent);--sg-t35:color-mix(in srgb,var(--sg-text) 35%,transparent);--sg-raised:var(--sg-bg);--sg-chip-radius:calc(var(--sg-radius-control) / 2);--sg-pill-radius:calc(var(--sg-radius-control) * 2 / 3)}
587
+ .sg-widget[data-sg-mode="dark"],.sg-duo-wrap[data-sg-mode="dark"],.sg-pill-root[data-sg-mode="dark"]{--sg-raised:color-mix(in srgb,var(--sg-surface) 92%,var(--sg-info))}
588
+ .sg-widget{box-sizing:border-box;width:100%;max-width:380px;margin:0 auto;padding:20px 16px;background:var(--sg-bg);color:var(--sg-text);border:0;border-radius:var(--sg-radius);font-family:var(--sg-font);font-size:14px;line-height:1.4}
583
589
  .sg-widget *{box-sizing:border-box}
584
- :root[data-theme="dark"] .sg-widget,.sg-widget[data-sg-mode="dark"]{box-shadow:0 8px 24px rgba(0,0,0,.4)}
585
590
 
586
- .sg-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
587
- .sg-title{font-size:15px;font-weight:600;letter-spacing:-0.01em}
591
+ .sg-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:16px;min-height:28px}
592
+ .sg-head-end{display:flex;align-items:center;gap:8px}
593
+ /* In a modal or drawer the title centres on the wallet chip and the close button; inline it sits at the top. */
594
+ .sg-dialog .sg-head{align-items:center}
595
+ .sg-title{font-size:18px;font-weight:500;line-height:22px;color:var(--sg-t90)}
596
+ .sg-close{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:24px;height:24px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--sg-text-muted);cursor:pointer;transition:color 120ms ease}
597
+ .sg-close:hover{color:var(--sg-text)}
598
+ .sg-close:focus-visible{outline:2px solid var(--sg-accent);outline-offset:2px}
588
599
  .sg-brand{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--sg-text-muted);text-transform:uppercase;letter-spacing:0.08em}
589
600
  .sg-brand-mark{flex:0 0 auto;display:block}
590
601
 
591
602
  .sg-label{display:block;font-size:12px;color:var(--sg-text-muted);margin-bottom:6px}
592
- .sg-panel{background:var(--sg-surface);border:1px solid var(--sg-border);border-radius:var(--sg-radius-control);padding:16px}
603
+ .sg-panel{background:var(--sg-surface);border-radius:var(--sg-radius-control);padding:16px}
593
604
  .sg-panel + .sg-panel{margin-top:12px}
594
605
  .sg-row{display:flex;gap:10px;align-items:center}
595
606
  .sg-row>*{min-width:0}
@@ -605,8 +616,9 @@ var WIDGET_CSS = `
605
616
  /* inputs */
606
617
  .sg-input,.sg-select{width:100%;padding:10px 12px;background:var(--sg-bg);color:var(--sg-text);border:1px solid var(--sg-border);border-radius:var(--sg-radius-control);font:inherit;outline:none;transition:border-color 120ms ease}
607
618
  .sg-input:focus,.sg-select:focus{border-color:var(--sg-accent)}
608
- .sg-amount{font-size:28px;font-weight:700;border:none;background:transparent;padding:0}
619
+ .sg-amount{flex:1 1 auto;min-width:0;font-family:var(--sg-font-display);font-size:18px;font-weight:500;line-height:22px;color:var(--sg-t90);border:none;border-radius:0;background:transparent;padding:0}
609
620
  .sg-amount:focus{border:none}
621
+ .sg-amount::placeholder{color:var(--sg-t35)}
610
622
  .sg-field{margin-bottom:12px}
611
623
  .sg-reverse{display:flex;align-items:center;justify-content:center;width:34px;height:34px;margin:-6px auto;position:relative;z-index:1;border-radius:var(--sg-radius-control);border:1px solid var(--sg-border);background:var(--sg-bg);color:var(--sg-text-muted);cursor:pointer;transition:color 120ms ease,border-color 120ms ease}
612
624
  .sg-reverse:hover{color:var(--sg-accent);border-color:var(--sg-accent)}
@@ -658,13 +670,13 @@ var WIDGET_CSS = `
658
670
  .sg-badge[data-tone="warn"]{background:color-mix(in srgb,var(--sg-danger) 14%,transparent);color:var(--sg-danger)}
659
671
 
660
672
  /* CTA */
661
- .sg-btn{width:100%;min-height:48px;padding:12px 16px;border:none;border-radius:var(--sg-radius-cta);background:var(--sg-accent);color:var(--sg-accent-text);font:inherit;font-size:15px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:filter 120ms ease,opacity 120ms ease,transform 60ms ease}
673
+ .sg-btn{width:100%;min-height:44px;padding:10px 24px;border:none;border-radius:var(--sg-radius-cta);background:var(--sg-accent);color:var(--sg-accent-text);font:inherit;font-size:14px;font-weight:500;line-height:1.2;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:filter 120ms ease,opacity 120ms ease,transform 60ms ease}
662
674
  .sg-btn:hover:not(:disabled){filter:brightness(1.06)}
663
675
  .sg-btn:active:not(:disabled){transform:translateY(1px)}
664
676
  .sg-btn:disabled{opacity:.5;cursor:not-allowed}
665
677
  .sg-btn-ghost{background:transparent;color:var(--sg-text);border:1px solid var(--sg-border)}
666
678
  .sg-btn-ghost:hover:not(:disabled){filter:none;border-color:var(--sg-accent);color:var(--sg-accent)}
667
- .sg-cta-wrap{margin-top:14px}
679
+ .sg-cta-wrap{margin-top:16px}
668
680
  .sg-cta-wrap .sg-btn+.sg-btn{margin-top:8px}
669
681
 
670
682
  /* status / steps */
@@ -695,35 +707,33 @@ var WIDGET_CSS = `
695
707
  @keyframes sg-spin{to{transform:rotate(360deg)}}
696
708
  @keyframes sg-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
697
709
 
698
- .sg-foot{margin-top:14px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;color:var(--sg-text-muted);text-align:center}
699
- /* display:inline-block is load-bearing, not tidiness. A host running a CSS reset \u2014 Tailwind
700
- preflight, which most integrators use and which this repo's own playground applies \u2014 sets
701
- svg{display:block}, and the padlock then takes a line of its own above the sentence. Every other
702
- glyph in the widget sits in a flex or absolute box where that is harmless; this is the one that
703
- lives in normal text flow. (WIDGET_CSS is a template literal: no backticks in these comments.) */
704
- .sg-foot svg{display:inline-block;vertical-align:-1px;margin-right:5px}
710
+ /* "Powered by ZeroDelta" with the brand mark. A flex row, so a host reset that sets
711
+ svg{display:block} (Tailwind preflight) changes nothing. */
712
+ .sg-foot{margin-top:12px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:500;line-height:14px;min-height:16px;color:var(--sg-t80);text-align:center}
713
+ .sg-foot-mark{flex:0 0 auto;display:block}
705
714
 
706
715
  /* fixed-height variant \u2014 head/foot pinned, body scrolls */
707
716
  .sg-widget[data-sg-fixed="true"]{display:flex;flex-direction:column}
708
717
  .sg-widget[data-sg-fixed="true"] .sg-body{flex:1 1 auto;min-height:0;overflow-y:auto;margin:0 -8px;padding:0 8px;scrollbar-width:thin}
709
718
 
710
719
  /* head wallet pill (Connect wallet / connected address) */
711
- .sg-wallet{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:var(--sg-radius-cta);border:1px solid var(--sg-border);background:transparent;color:var(--sg-text);font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:border-color 120ms ease,color 120ms ease}
720
+ .sg-wallet{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:var(--sg-pill-radius);border:1px solid var(--sg-border);background:var(--sg-bg);color:var(--sg-t72);font:inherit;font-size:12px;font-weight:500;line-height:14px;white-space:nowrap;cursor:pointer;transition:border-color 120ms ease,color 120ms ease}
712
721
  .sg-wallet:hover{border-color:var(--sg-accent);color:var(--sg-accent)}
713
- .sg-wallet[data-connected="true"]{cursor:default;color:var(--sg-text-muted)}
714
- .sg-wallet[data-connected="true"]:hover{border-color:var(--sg-border);color:var(--sg-text-muted)}
715
- .sg-wallet-dot{width:7px;height:7px;border-radius:999px;background:var(--sg-success)}
722
+ .sg-wallet[data-connected="true"]{cursor:default;color:var(--sg-t72)}
723
+ .sg-wallet[data-connected="true"]:hover{border-color:var(--sg-border);color:var(--sg-t72)}
724
+ .sg-wallet-dot{width:6px;height:6px;border-radius:999px;background:var(--sg-success)}
716
725
 
717
726
  /* From/To tiles with a centered arrow (exchange layout) */
718
- .sg-ft{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:10px}
719
- .sg-tile{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--sg-border);border-radius:var(--sg-radius-control);background:var(--sg-surface);cursor:pointer;font:inherit;color:var(--sg-text);text-align:left;min-width:0;transition:border-color 120ms ease}
720
- .sg-tile:hover:not(:disabled){border-color:color-mix(in srgb,var(--sg-accent) 45%,var(--sg-border))}
727
+ .sg-ft{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:8px}
728
+ .sg-tile{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:16px 20px;border:0;border-radius:var(--sg-radius-control);background:var(--sg-surface);cursor:pointer;font:inherit;color:var(--sg-text);text-align:left;min-width:0;transition:background 120ms ease}
729
+ .sg-tile:hover:not(:disabled){background:color-mix(in srgb,var(--sg-accent) 8%,var(--sg-bg))}
721
730
  .sg-tile:disabled{cursor:default}
722
- .sg-tile-label{font-size:12px;color:var(--sg-text-muted)}
723
- .sg-tile-main{display:flex;align-items:center;gap:10px;min-width:0}
724
- .sg-tile-text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
725
- .sg-tile-sym{font-size:16px;font-weight:700;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
726
- .sg-tile-chain{font-size:11px;color:var(--sg-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
731
+ .sg-tile-label{font-size:13px;line-height:18px;color:var(--sg-t60)}
732
+ .sg-tile-main{display:flex;align-items:flex-start;gap:14px;min-width:0;max-width:100%}
733
+ /* A flex COLUMN: as inline spans the ticker and the chain ran together on one line. */
734
+ .sg-tile-text{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.2}
735
+ .sg-tile-sym{font-size:16px;font-weight:500;line-height:19px;color:var(--sg-t90);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
736
+ .sg-tile-chain{font-size:12px;line-height:14px;color:var(--sg-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
727
737
  .sg-tile-empty{color:var(--sg-text-muted);font-size:15px;font-weight:600}
728
738
  .sg-funding-glyphs{display:flex;align-items:center;flex:0 0 auto;padding-right:2px}
729
739
  .sg-funding-glyphs .sg-tok{box-shadow:0 0 0 2px var(--sg-surface);border-radius:999px}
@@ -739,6 +749,17 @@ var WIDGET_CSS = `
739
749
  img.sg-tok-badge{width:16px;padding:0;object-fit:cover;background:var(--sg-bg)}
740
750
  .sg-tok[data-size="sm"],.sg-tok[data-size="sm"] .sg-tok-img,.sg-tok[data-size="sm"] .sg-tok-fb{width:28px;height:28px}
741
751
  .sg-tok[data-size="sm"] .sg-tok-fb{font-size:9px}
752
+ /* The design's three marks: 32px on a From/To tile, 24px in a token button, 18px on the rate line. */
753
+ .sg-tok[data-size="tile"],.sg-tok[data-size="tile"] .sg-tok-img,.sg-tok[data-size="tile"] .sg-tok-fb{width:32px;height:32px}
754
+ .sg-tok[data-size="tile"] .sg-tok-fb{font-size:10px}
755
+ .sg-tok[data-size="tile"] .sg-tok-badge{right:-4px;bottom:-5.5px;border-color:var(--sg-surface)}
756
+ /* the side card's receive mark carries the smaller badge, ringed in the card colour */
757
+ .sg-recv .sg-tok[data-size="xs"] .sg-tok-badge{min-width:12px;width:12px;height:12px;right:-3px;bottom:-3px;border-color:var(--sg-bg)}
758
+ .sg-tok[data-size="xs"],.sg-tok[data-size="xs"] .sg-tok-img,.sg-tok[data-size="xs"] .sg-tok-fb{width:24px;height:24px}
759
+ .sg-tok[data-size="xs"] .sg-tok-fb{font-size:8px}
760
+ .sg-tok[data-size="xs"] .sg-tok-badge{min-width:14px;width:14px;height:14px;right:-4px;bottom:-3.5px;border-width:1px;border-color:var(--sg-surface);font-size:5px;padding:0}
761
+ .sg-tok[data-size="xxs"],.sg-tok[data-size="xxs"] .sg-tok-img,.sg-tok[data-size="xxs"] .sg-tok-fb{width:18px;height:18px}
762
+ .sg-tok[data-size="xxs"] .sg-tok-fb{font-size:6px}
742
763
 
743
764
  /* fiat side (on/off-ramp) */
744
765
  .sg-fiat{flex:0 0 auto;width:36px;height:36px;border-radius:999px;background:color-mix(in srgb,var(--sg-accent) 14%,transparent);color:var(--sg-accent);font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:center}
@@ -751,10 +772,10 @@ img.sg-tok-badge{width:16px;padding:0;object-fit:cover;background:var(--sg-bg)}
751
772
  .sg-amount-note{font-size:12px;font-weight:600;line-height:1.35;color:var(--sg-text-muted);margin-top:6px}
752
773
  .sg-amount-note[data-tone="error"]{color:var(--sg-danger)}
753
774
  .sg-amount[aria-invalid="true"]{color:var(--sg-danger)}
754
- .sg-pct-row{display:flex;gap:8px;margin-top:12px}
755
- .sg-pct{flex:1 1 0;padding:7px 0;border-radius:var(--sg-radius-cta);border:1px solid var(--sg-border);background:var(--sg-bg);color:var(--sg-text-muted);font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:color 120ms ease,border-color 120ms ease}
756
- .sg-pct:hover:not(:disabled){color:var(--sg-accent);border-color:var(--sg-accent)}
757
- .sg-pct:disabled{opacity:.45;cursor:not-allowed}
775
+ .sg-pct-row{display:flex;gap:4px}
776
+ .sg-pct{flex:0 0 auto;padding:4px 8px;border:0;border-radius:var(--sg-chip-radius);background:var(--sg-raised);color:var(--sg-t72);font:inherit;font-size:11px;font-weight:500;line-height:13px;cursor:pointer;transition:color 120ms ease}
777
+ .sg-pct:hover:not(:disabled){color:var(--sg-accent)}
778
+ .sg-pct:disabled{opacity:.55;cursor:not-allowed}
758
779
 
759
780
  /* full-panel token selector (Exchange from / Exchange to) */
760
781
  .sg-sel-head{display:flex;align-items:center;margin-bottom:14px}
@@ -802,10 +823,10 @@ img.sg-tok-badge{width:16px;padding:0;object-fit:cover;background:var(--sg-bg)}
802
823
  /* width:100% is load-bearing: an inline-size container has NO intrinsic width, so as a flex/grid
803
824
  item it would collapse to 0 and hide the whole widget. It fills the host slot; .sg-duo centers. */
804
825
  .sg-duo-wrap{container-type:inline-size;width:100%;font-family:var(--sg-font)}
805
- .sg-duo{display:grid;grid-template-columns:minmax(0,400px) minmax(0,380px);gap:18px;align-items:start;justify-content:center;font-family:var(--sg-font)}
806
- @container (max-width:840px){.sg-duo{grid-template-columns:minmax(0,400px)}}
807
- @media (max-width:920px){.sg-duo{grid-template-columns:minmax(0,400px)}}
808
- .sg-side-title{font-size:15px;font-weight:600;letter-spacing:-0.01em;margin-bottom:14px}
826
+ .sg-duo{display:grid;grid-template-columns:minmax(0,360px) minmax(0,280px);gap:12px;align-items:start;justify-content:center;font-family:var(--sg-font)}
827
+ @container (max-width:660px){.sg-duo{grid-template-columns:minmax(0,380px)}}
828
+ @media (max-width:700px){.sg-duo{grid-template-columns:minmax(0,380px)}}
829
+ .sg-side-title{font-size:18px;font-weight:500;line-height:22px;color:var(--sg-t90);margin-bottom:16px}
809
830
  .sg-noroutes{padding:34px 14px;text-align:center}
810
831
  .sg-noroutes-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;background:var(--sg-surface);color:var(--sg-text-muted);margin-bottom:12px}
811
832
  .sg-noroutes-title{font-size:16px;font-weight:700;margin-bottom:8px}
@@ -815,12 +836,14 @@ img.sg-tok-badge{width:16px;padding:0;object-fit:cover;background:var(--sg-bg)}
815
836
  .sg-meta-row:last-child{border-bottom:none}
816
837
  .sg-meta-row b{font-weight:600;font-variant-numeric:tabular-nums}
817
838
  .sg-meta-label{color:var(--sg-text-muted)}
818
- .sg-recv-amt{font-size:28px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-0.01em}
819
- .sg-recv-sub{font-size:12px;color:var(--sg-text-muted);margin-top:2px}
839
+ .sg-recv{display:flex;flex-direction:column;gap:2px;min-width:0}
840
+ .sg-recv-line{display:flex;align-items:flex-end;gap:12px;min-width:0}
841
+ .sg-recv-amt{min-width:0;font-family:var(--sg-font-display);font-size:18px;font-weight:500;line-height:20px;color:var(--sg-t90);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
842
+ .sg-recv-sub{font-size:12px;line-height:14px;color:var(--sg-text-muted);padding-left:36px}
820
843
 
821
844
  /* head tools: history entry point beside the wallet pill / brand chip */
822
845
  .sg-head-tools{display:flex;align-items:center;gap:8px}
823
- .sg-hist{width:32px;height:32px;flex:0 0 auto;border:1px solid var(--sg-border);border-radius:999px;background:transparent;color:var(--sg-text-muted);cursor:pointer;font:inherit;display:flex;align-items:center;justify-content:center;transition:color 120ms ease,border-color 120ms ease}
846
+ .sg-hist{width:28px;height:28px;flex:0 0 auto;border:1px solid var(--sg-border);border-radius:999px;background:transparent;color:var(--sg-text-muted);cursor:pointer;font:inherit;display:flex;align-items:center;justify-content:center;transition:color 120ms ease,border-color 120ms ease}
824
847
  .sg-hist:hover{color:var(--sg-accent);border-color:var(--sg-accent)}
825
848
 
826
849
  /* transaction history row. NOT the picker's flex row: at 390px that layout wrapped the pair onto two
@@ -1112,6 +1135,135 @@ img.sg-tok-badge{width:16px;padding:0;object-fit:cover;background:var(--sg-bg)}
1112
1135
 
1113
1136
  /* express (PaymentIsland) trims the card padding, so the sheet follows */
1114
1137
  @media (prefers-reduced-motion:reduce){.sg-cp-sheet{animation:none}}
1138
+
1139
+ /* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
1140
+ The card body of the ZeroDelta widget design (Figma "Widget Playground", 2026-09-30).
1141
+ One column with a 4px rhythm: the tinted "You pay" / "You receive" panes with the swap button
1142
+ riding the seam between them, the detail buttons, and the rate box. Every radius follows the
1143
+ theme so the playground's corner slider (and a host theme) moves all of them together.
1144
+ \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */
1145
+ .sg-stack{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0}
1146
+ .sg-pane{display:flex;flex-direction:column;gap:10px;min-width:0;padding:12px 16px;background:var(--sg-surface);border-radius:var(--sg-radius-control)}
1147
+ .sg-pane[data-kind="pay"] .sg-pane-foot{margin-top:2px}
1148
+ .sg-pane[data-kind="send"]{gap:12px;padding:16px 20px}
1149
+ .sg-pane[data-kind="send"] .sg-pct{padding:7px 10px}
1150
+ .sg-widget[data-sg-mode="dark"] .sg-pane[data-kind="send"] .sg-pct{background:transparent;border:1px solid var(--sg-border)}
1151
+ .sg-pane[data-kind="send"] .sg-pane-foot{line-height:18px}
1152
+ .sg-pane[data-kind="send"] .sg-pane-foot>span:last-child{font-size:13px}
1153
+ .sg-pane[data-kind="send"] .sg-amount{line-height:20px}
1154
+ .sg-pane-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:21px}
1155
+ .sg-pane-label{font-size:13px;line-height:18px;color:var(--sg-t60);white-space:nowrap}
1156
+ .sg-pane-mid{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
1157
+ /* The amount takes what the token button leaves, never the other way round: an input's intrinsic
1158
+ width (about twenty characters) otherwise squeezed the button down to "U\u2026". */
1159
+ .sg-pane-mid>.sg-amount,.sg-pane-mid>.sg-amt-out{flex:1 1 0;width:0;min-width:0}
1160
+ .sg-pane-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;line-height:14px;color:var(--sg-text-muted);min-height:14px}
1161
+ /* "You receive" runs its USD line straight under the amount row: no gap, as the design draws it. */
1162
+ .sg-pane[data-kind="receive"]>.sg-pane-foot{margin-top:-10px}
1163
+ .sg-pane-foot b{font-weight:400;color:var(--sg-t90)}
1164
+ .sg-pane--note{min-height:100px;align-items:center;justify-content:center;text-align:center;font-size:13px;line-height:1.4;color:var(--sg-t60);padding:12px max(16px,calc(50% - 100px))}
1165
+
1166
+ /* amounts: the display face, the decimals greyed */
1167
+ .sg-amt-out{flex:1 1 auto;min-width:0;font-family:var(--sg-font-display);font-size:18px;font-weight:500;line-height:22px;color:var(--sg-t90);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1168
+ .sg-amt-dec,.sg-amt-empty{color:var(--sg-t35)}
1169
+
1170
+ /* the token button inside a pane */
1171
+ .sg-tokbtn{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;min-width:0;max-width:62%;padding:8px;border:0;border-radius:var(--sg-radius-control);background:var(--sg-raised);color:var(--sg-text);font:inherit;text-align:left;cursor:pointer}
1172
+ .sg-tokbtn .sg-tok{margin-right:6px;align-self:flex-start}
1173
+ .sg-tokbtn:disabled{cursor:default}
1174
+ .sg-tokbtn:focus-visible{outline:2px solid var(--sg-accent);outline-offset:2px}
1175
+ .sg-tokbtn-text{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.2}
1176
+ .sg-tokbtn-text>.sg-tokbtn-sym{line-height:17px}
1177
+ .sg-tokbtn-text>.sg-tokbtn-chain{line-height:14px}
1178
+ .sg-tokbtn-sym{font-size:14px;font-weight:500;color:var(--sg-t90);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1179
+ .sg-tokbtn-chain{font-size:12px;color:var(--sg-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1180
+ .sg-tokbtn-chev{display:flex;flex:0 0 auto;color:var(--sg-t80);transition:color 120ms ease,transform 120ms ease}
1181
+ .sg-tokbtn:hover:not(:disabled) .sg-tokbtn-chev{color:var(--sg-accent);transform:translateX(1px)}
1182
+ .sg-tokbtn--fiat{gap:8px;padding-right:12px;cursor:default}
1183
+ .sg-tokbtn-select{border:0;background:transparent;color:var(--sg-t90);font:inherit;font-size:14px;font-weight:500;cursor:pointer;padding:0 2px}
1184
+ .sg-fiat[data-size="xs"]{width:24px;height:24px;font-size:12px}
1185
+
1186
+ /* the swap button on the seam between the panes (and the small one between the From/To tiles) */
1187
+ .sg-flip-slot{position:relative;height:0;margin:-2px 0;z-index:1}
1188
+ .sg-flip{position:absolute;left:50%;top:0;transform:translate(-50%,-50%);width:34px;height:34px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:999px;background:var(--sg-raised);color:var(--sg-t90);cursor:pointer;transition:color 120ms ease}
1189
+ .sg-flip:hover:not(:disabled){color:var(--sg-accent)}
1190
+ .sg-flip:disabled{cursor:default}
1191
+ .sg-flip:focus-visible{outline:2px solid var(--sg-accent);outline-offset:2px}
1192
+ .sg-ft>.sg-flip-slot{position:absolute;left:50%;top:50%;width:0;margin:0}
1193
+ .sg-flip[data-small]{width:24px;height:24px}
1194
+ .sg-flip-rot{display:flex;transform:rotate(-90deg)}
1195
+
1196
+ /* detail buttons \u2014 Compliance, Quote */
1197
+ .sg-dbtn-row{display:flex;gap:4px;min-width:0}
1198
+ .sg-dbtn{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px;height:48px;padding:0 11px;border:1px solid var(--sg-border);border-radius:var(--sg-radius-control);background:var(--sg-bg);color:inherit;font:inherit;text-align:left;cursor:pointer;transition:border-color 120ms ease}
1199
+ .sg-dbtn[data-size="lg"]{flex:0 0 auto;width:100%}
1200
+ .sg-widget[data-sg-side] .sg-dbtn,.sg-overlay[data-sg-overlay="drawer"] .sg-dbtn{height:44px}
1201
+ .sg-dbtn:hover:not(:disabled){border-color:color-mix(in srgb,var(--sg-accent) 40%,var(--sg-border))}
1202
+ .sg-dbtn:disabled{cursor:default;opacity:.55}
1203
+ .sg-dbtn:focus-visible{outline:2px solid var(--sg-accent);outline-offset:2px}
1204
+ .sg-dbtn-main{display:flex;align-items:center;gap:6px;min-width:0}
1205
+ .sg-dbtn-icon{display:flex;flex:0 0 auto;color:var(--sg-info)}
1206
+ .sg-dbtn-icon[data-tone="ok"]{color:var(--sg-success)}
1207
+ .sg-dbtn-icon[data-tone="warn"]{color:var(--sg-danger)}
1208
+ .sg-dbtn-icon[data-tone="muted"]{color:var(--sg-text-muted)}
1209
+ .sg-dbtn-label{font-size:13px;font-weight:500;line-height:16px;color:var(--sg-t80);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1210
+ .sg-dbtn-chev{display:flex;flex:0 0 auto;color:var(--sg-t80)}
1211
+ .sg-dpill{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;padding:4px 8px;border-radius:var(--sg-pill-radius);font-size:11px;font-weight:500;line-height:1.2;white-space:nowrap}
1212
+ .sg-dpill[data-tone="ok"]{background:color-mix(in srgb,var(--sg-success) 6%,transparent);color:color-mix(in srgb,var(--sg-success) 80%,transparent)}
1213
+ .sg-dpill[data-tone="info"]{background:color-mix(in srgb,var(--sg-info) 8%,transparent);color:color-mix(in srgb,var(--sg-info) 80%,transparent)}
1214
+ .sg-widget[data-sg-mode="dark"] .sg-dpill[data-tone="info"]{background:color-mix(in srgb,var(--sg-info) 12%,transparent);color:var(--sg-info)}
1215
+ .sg-dpill[data-tone="warn"]{background:color-mix(in srgb,var(--sg-danger) 8%,transparent);color:var(--sg-danger)}
1216
+ .sg-dpill[data-tone="muted"]{background:color-mix(in srgb,var(--sg-text) 6%,transparent);color:var(--sg-text-muted)}
1217
+
1218
+ /* the rate box */
1219
+ .sg-rate{display:flex;flex-direction:column;gap:16px;padding:15px 11px;border:1px solid var(--sg-border);border-radius:var(--sg-radius-control);background:var(--sg-bg)}
1220
+ .sg-rate-head{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
1221
+ .sg-rate-head:disabled{cursor:default}
1222
+ .sg-rate-head:focus-visible{outline:2px solid var(--sg-accent);outline-offset:4px;border-radius:6px}
1223
+ .sg-rate-line{display:flex;align-items:center;gap:4px;min-width:0;font-size:13px;font-weight:500;line-height:16px;color:var(--sg-t80);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1224
+ .sg-rate-chev{display:flex;flex:0 0 auto;color:var(--sg-t80)}
1225
+ .sg-rate-rows{margin:0;display:flex;flex-direction:column;gap:4px}
1226
+ .sg-rate-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;font-size:13px;line-height:1.4}
1227
+ .sg-rate-row dt{color:var(--sg-t60)}
1228
+ .sg-rate-row dd{margin:0;font-weight:500;color:var(--sg-t80);text-align:right}
1229
+ .sg-qs-facts .sg-cp-fact{grid-template-columns:104px minmax(0,1fr)}
1230
+
1231
+ /* the wide layout: the main card and the "You receive" side card */
1232
+ .sg-widget[data-sg-wide]{max-width:360px;padding:20px 12px}
1233
+ .sg-widget[data-sg-side]{max-width:280px;padding:20px 12px}
1234
+ @container (max-width:660px){.sg-widget[data-sg-wide],.sg-widget[data-sg-side]{max-width:380px}}
1235
+ .sg-side-body{display:flex;flex-direction:column;gap:16px}
1236
+
1237
+ /* a detail sheet opened in place of the card body fills it edge to edge */
1238
+ .sg-body>.sg-cp-sheet,.sg-widget[data-sg-side]>.sg-cp-sheet{padding:0;border:0;background:transparent}
1239
+
1240
+ /* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
1241
+ variant="pill": one button that opens the card in a modal or a right-hand drawer. The overlay is
1242
+ position:fixed \u2014 it fills the viewport, or the nearest ancestor that establishes a containing
1243
+ block for fixed descendants (a transform), which is how a host confines it to one region.
1244
+ \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */
1245
+ .sg-pill-root{width:100%;font-family:var(--sg-font);color:var(--sg-text)}
1246
+ .sg-pillbtn{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 24px;border:0;border-radius:var(--sg-radius-cta);background:var(--sg-accent);color:var(--sg-accent-text);font:inherit;font-family:var(--sg-font);font-size:14px;line-height:1.2;cursor:pointer;transition:filter 120ms ease,transform 60ms ease}
1247
+ .sg-pillbtn:hover{filter:brightness(1.06)}
1248
+ .sg-pillbtn:active{transform:translateY(1px)}
1249
+ .sg-pillbtn:focus-visible{outline:2px solid var(--sg-accent);outline-offset:2px}
1250
+ .sg-pillbtn-lead{display:inline-flex;align-items:center;gap:12px;min-width:0;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1251
+ .sg-pillbtn-mark{flex:0 0 auto;display:block}
1252
+ .sg-pillbtn-amt{flex:0 0 auto;font-weight:700;white-space:nowrap}
1253
+ .sg-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;background:rgba(0,0,0,.2);animation:sg-fade-in var(--sg-motion-base) var(--sg-ease-out-soft) both}
1254
+ .sg-overlay[data-sg-overlay="modal"]{align-items:flex-start;justify-content:center;padding:48px 16px;overflow-y:auto}
1255
+ .sg-overlay[data-sg-overlay="drawer"]{align-items:stretch;justify-content:flex-end}
1256
+ .sg-overlay-scrim{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:default}
1257
+ .sg-dialog{position:relative;display:flex;width:100%;max-width:380px}
1258
+ .sg-dialog>.sg-widget{flex:1 1 auto}
1259
+ .sg-overlay[data-sg-overlay="modal"] .sg-dialog{animation:sg-scale-in var(--sg-motion-base) var(--sg-ease-out-soft) both}
1260
+ .sg-overlay[data-sg-overlay="drawer"] .sg-dialog{max-width:340px;height:100%;animation:sg-drawer-in var(--sg-motion-slow) var(--sg-ease-out-soft) both}
1261
+ .sg-overlay[data-sg-overlay="drawer"] .sg-widget{max-width:340px;height:100%;padding:20px 12px;border-radius:var(--sg-radius) 0 0 var(--sg-radius);display:flex;flex-direction:column;overflow-y:auto}
1262
+ .sg-overlay[data-sg-overlay="drawer"] .sg-body{flex:1 1 auto;display:flex;flex-direction:column}
1263
+ .sg-overlay[data-sg-overlay="drawer"] .sg-cta-wrap{margin-top:auto;padding-top:16px}
1264
+ .sg-overlay[data-sg-overlay="drawer"] .sg-pane--note{min-height:145px}
1265
+ @keyframes sg-drawer-in{from{transform:translateX(100%)}to{transform:none}}
1266
+ @media (prefers-reduced-motion:reduce){.sg-overlay,.sg-dialog{animation:none!important}.sg-pillbtn{transition:none}}
1115
1267
  `;
1116
1268
  var injected = false;
1117
1269
  function injectStyles() {
@@ -1137,43 +1289,49 @@ var MOTION = {
1137
1289
  easeInOut: "cubic-bezier(0.4,0,0.2,1)",
1138
1290
  easeSpring: "cubic-bezier(0.34,1.56,0.64,1)"
1139
1291
  };
1292
+ var FONT = "'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif";
1140
1293
  var lightTheme = {
1141
1294
  mode: "light",
1142
1295
  accent: "#4358e1",
1143
1296
  accentText: "#ffffff",
1144
1297
  bg: "#ffffff",
1145
- surface: "#f7f8fc",
1146
- border: "#e6e8f0",
1147
- text: "#0e1116",
1148
- textMuted: "#6b7280",
1298
+ surface: "#f7f8fe",
1299
+ border: "#e8ebfb",
1300
+ text: "#2c2d34",
1301
+ textMuted: "#959699",
1149
1302
  danger: "#df1b41",
1150
- success: "#12805c",
1151
- radius: "20px",
1152
- radiusControl: "10px",
1153
- radiusCta: "999px",
1154
- font: "'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif",
1303
+ success: "#2abd7d",
1304
+ radius: "24px",
1305
+ radiusControl: "24px",
1306
+ radiusCta: "24px",
1307
+ font: FONT,
1308
+ fontDisplay: `Benzin, ${FONT}`,
1155
1309
  ...MOTION
1156
1310
  };
1157
1311
  var darkTheme = {
1158
1312
  mode: "dark",
1159
- accent: "#7b8cff",
1160
- accentText: "#0b0d12",
1161
- bg: "#0e1116",
1162
- surface: "#161a22",
1163
- border: "#252b36",
1164
- text: "#eef1f6",
1165
- textMuted: "#9aa4b2",
1313
+ accent: "#4358e1",
1314
+ accentText: "#ffffff",
1315
+ bg: "#0e1115",
1316
+ surface: "#1b1d22",
1317
+ border: "#343541",
1318
+ text: "#ffffff",
1319
+ textMuted: "#87888a",
1320
+ info: "#8c9bff",
1166
1321
  danger: "#ff5470",
1167
- success: "#3ddc97",
1168
- radius: "20px",
1169
- radiusControl: "10px",
1170
- radiusCta: "999px",
1171
- font: "'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif",
1322
+ success: "#2abd7d",
1323
+ radius: "24px",
1324
+ radiusControl: "24px",
1325
+ radiusCta: "24px",
1326
+ font: FONT,
1327
+ fontDisplay: `Benzin, ${FONT}`,
1172
1328
  ...MOTION
1173
1329
  };
1174
1330
  function resolveTheme(theme) {
1175
1331
  const base = theme?.mode === "dark" ? darkTheme : lightTheme;
1176
- return { ...base, ...theme };
1332
+ const fontDisplay = theme?.fontDisplay || (theme?.font ? theme.font : base.fontDisplay);
1333
+ const info = theme?.info || (theme?.accent ? theme.accent : base.info);
1334
+ return { ...base, ...theme, fontDisplay, info };
1177
1335
  }
1178
1336
  function themeToVars(theme) {
1179
1337
  return {
@@ -1184,12 +1342,14 @@ function themeToVars(theme) {
1184
1342
  "--sg-border": theme.border,
1185
1343
  "--sg-text": theme.text,
1186
1344
  "--sg-text-muted": theme.textMuted,
1345
+ "--sg-info": theme.info || theme.accent,
1187
1346
  "--sg-danger": theme.danger,
1188
1347
  "--sg-success": theme.success,
1189
1348
  "--sg-radius": theme.radius,
1190
1349
  "--sg-radius-control": theme.radiusControl,
1191
1350
  "--sg-radius-cta": theme.radiusCta,
1192
1351
  "--sg-font": theme.font,
1352
+ "--sg-font-display": theme.fontDisplay || theme.font,
1193
1353
  "--sg-motion-fast": theme.motionFast,
1194
1354
  "--sg-motion-base": theme.motionBase,
1195
1355
  "--sg-motion-slow": theme.motionSlow,
@@ -1238,37 +1398,6 @@ function BrandMark({ size = 18, mono = false, className, style, title }) {
1238
1398
  }
1239
1399
  );
1240
1400
  }
1241
- function LockGlyph() {
1242
- return /* @__PURE__ */ jsxs("svg", { width: "11", height: "11", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
1243
- /* @__PURE__ */ jsx("rect", { x: "4", y: "11", width: "16", height: "10", rx: "2" }),
1244
- /* @__PURE__ */ jsx("path", { d: "M8 11V8a4 4 0 0 1 8 0v3" })
1245
- ] });
1246
- }
1247
- function WidgetShell(props) {
1248
- injectStyles();
1249
- const resolved = resolveTheme(props.theme);
1250
- const vars = themeToVars(resolved);
1251
- const fixed = Number.isFinite(props.heightPx) && props.heightPx > 0;
1252
- const style = fixed ? { ...vars, height: props.heightPx } : vars;
1253
- return /* @__PURE__ */ jsxs("div", { className: "sg-widget", "data-sg-mode": resolved.mode, "data-sg-fixed": fixed || void 0, "data-sg-express": props.variant === "express" || void 0, style, children: [
1254
- /* @__PURE__ */ jsxs("div", { className: "sg-head", children: [
1255
- props.brandSlot ?? /* @__PURE__ */ jsx("div", { className: "sg-title", children: props.title }),
1256
- props.walletSlot ?? /* @__PURE__ */ jsxs("div", { className: "sg-brand", children: [
1257
- /* @__PURE__ */ jsx(BrandMark, { size: 14, className: "sg-brand-mark" }),
1258
- "ZeroDelta"
1259
- ] })
1260
- ] }),
1261
- /* @__PURE__ */ jsx("div", { className: "sg-body", children: props.children }),
1262
- /* @__PURE__ */ jsx("div", { className: "sg-foot", children: /* @__PURE__ */ jsxs("span", { children: [
1263
- /* @__PURE__ */ jsx(LockGlyph, {}),
1264
- " Your wallet signs every transaction \xB7 Powered by ZeroDelta"
1265
- ] }) })
1266
- ] });
1267
- }
1268
- function shortAddress(a) {
1269
- if (!a) return "";
1270
- return `${a.slice(0, 6)}\u2026${a.slice(-4)}`;
1271
- }
1272
1401
  var SOURCE_CHAIN_LABELS = {
1273
1402
  1: "Ethereum",
1274
1403
  10: "Optimism",
@@ -1483,110 +1612,538 @@ function RouteList(props) {
1483
1612
  ] }) : null
1484
1613
  ] });
1485
1614
  }
1486
- function ShieldTick({ size = 16 }) {
1487
- return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
1488
- /* @__PURE__ */ jsx("path", { d: "M12 2.5 4.5 5.5v6c0 4.4 3.1 8.5 7.5 10 4.4-1.5 7.5-5.6 7.5-10v-6L12 2.5Z", fill: "currentColor", opacity: ".14" }),
1489
- /* @__PURE__ */ jsx("path", { d: "M12 2.5 4.5 5.5v6c0 4.4 3.1 8.5 7.5 10 4.4-1.5 7.5-5.6 7.5-10v-6L12 2.5Z", stroke: "currentColor", strokeWidth: "1.6", strokeLinejoin: "round" }),
1490
- /* @__PURE__ */ jsx("path", { d: "m8.6 11.9 2.3 2.3 4.5-4.5", stroke: "currentColor", strokeWidth: "1.9", strokeLinecap: "round", strokeLinejoin: "round" })
1491
- ] });
1492
- }
1493
- function TickCircle({ size = 16 }) {
1494
- return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
1495
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor" }),
1496
- /* @__PURE__ */ jsx("path", { d: "m7.8 12.2 2.7 2.7 5.7-5.8", stroke: "var(--sg-bg)", strokeWidth: "2.1", strokeLinecap: "round", strokeLinejoin: "round" })
1497
- ] });
1498
- }
1499
- function CloseCircle({ size = 16 }) {
1500
- return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
1501
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor" }),
1502
- /* @__PURE__ */ jsx("path", { d: "m8.7 8.7 6.6 6.6M15.3 8.7l-6.6 6.6", stroke: "var(--sg-bg)", strokeWidth: "2.1", strokeLinecap: "round" })
1503
- ] });
1615
+
1616
+ // src/react/ui/chain-logos.ts
1617
+ var BUNDLED_CHAIN_LOGO = {
1618
+ 1: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAADAFBMVEVMaXFbqvphfelifupWVv9vf/9ifulhfelifekAAOlifehHcMxifenJvMlES7cA//9ifulgfOhifetafOZifupif+xhdOVifelifetgfehhfephfepjf+5jgO1lgfFhfepifupjfexlgvJifuxhfuxhfepffOhif+5hf+tifepjgO9jge9ffOdjgO9jgO5if+5hfepifuthfeljfepjgexhfehVccZjge9jgO9jgO9Zd+Zkge9kgfFge+Zjge9if+1hfephfepifuxigO5ifupifupifuthfOpifutifuphfupif+xhfutjf+1dguBifehifutkge9kgfBlgfFhfephfelhfeptbdpkgfBkge9jgO5hfOllgvFdf+5hfepieuxhfephf+thfuphfuhfeeRhfelkgO1ifurAy/f///+Bl+5jf+q/yvf+/v9ceenBy/e8x/aCmO7f5Pv9/f9kgOphfepdeulkf+pffOnFz/hee+llgvJjf+x9lO3DzfiAlu6gsPK+yvdifupjfurBzPdYduhnhPVohffFz/dnhfdohvllgOpmg/Vlg/NkgfDEzve+yvdhfem9yf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ZBKfGvqoP+qnhQ9rqblcn6kaaAAAAA=="
1627
+ };
1628
+
1629
+ // src/react/ui/logos.ts
1630
+ var BUNDLED_TOKEN_LOGO = {
1631
+ USDC: "https://coin-images.coingecko.com/coins/images/6319/large/USDC.png",
1632
+ USDT: "https://coin-images.coingecko.com/coins/images/325/large/Tether.png",
1633
+ USDE: "https://coin-images.coingecko.com/coins/images/33613/large/usde.png",
1634
+ XAUT: "https://coin-images.coingecko.com/coins/images/10481/large/Tether_Gold.png",
1635
+ // 2026-09-08, with the dapp-parity asset expansion — the same four URLs the dapp draws
1636
+ // (zd-dapp/src/lib/tokenLogos.ts), so the two products show one picture per coin.
1637
+ USDTB: "https://coin-images.coingecko.com/coins/images/52804/large/76357aa8-4ef7-446c-bad3-a3f944eeec7a.jpeg",
1638
+ AUSD: "https://coin-images.coingecko.com/coins/images/39284/large/AUSD_1024px.png",
1639
+ PYUSD: "https://coin-images.coingecko.com/coins/images/31212/large/PYUSD_Token_Logo_2x.png",
1640
+ USDG: "https://coin-images.coingecko.com/coins/images/51281/large/GDN_USDG_Token_200x200.png",
1641
+ // The wider stable list, added 2026-09-08 with the RWA exchange.
1642
+ DAI: "https://coin-images.coingecko.com/coins/images/9956/large/Badge_Dai.png",
1643
+ USDS: "https://coin-images.coingecko.com/coins/images/39926/large/usds.webp",
1644
+ RLUSD: "https://coin-images.coingecko.com/coins/images/39651/large/RLUSD_200x200_%281%29.png",
1645
+ USD1: "https://coin-images.coingecko.com/coins/images/54977/large/USD1_1000x1000_transparent.png",
1646
+ WM: "https://coin-images.coingecko.com/coins/images/50789/large/M.png"
1647
+ };
1648
+ function isHttpsUrl(u) {
1649
+ return typeof u === "string" && /^https:\/\//i.test(u);
1504
1650
  }
1505
- function PendingCircle({ size = 16 }) {
1506
- return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
1507
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9.2", stroke: "currentColor", strokeWidth: "1.6", strokeDasharray: "3 3" }),
1508
- /* @__PURE__ */ jsx("path", { d: "M8.5 12h7", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round" })
1509
- ] });
1651
+ function isSameOriginPath(u) {
1652
+ return typeof u === "string" && u.startsWith("/") && !u.startsWith("//") && !u.startsWith("/\\");
1510
1653
  }
1511
- function Tick({ size = 12 }) {
1512
- return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m4.5 12.8 5 5L19.5 6.5", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" }) });
1654
+ function isDisplayableImageSrc(u) {
1655
+ return isHttpsUrl(u) || isSameOriginPath(u);
1513
1656
  }
1514
- function Cross({ size = 12 }) {
1515
- return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m5.5 5.5 13 13M18.5 5.5l-13 13", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round" }) });
1657
+ function tokenLogoCandidates(symbol, logoUrl) {
1658
+ const out = [];
1659
+ if (isDisplayableImageSrc(logoUrl)) out.push(logoUrl);
1660
+ const bundled = BUNDLED_TOKEN_LOGO[symbolKey(symbol)];
1661
+ if (bundled && !out.includes(bundled)) out.push(bundled);
1662
+ return out;
1516
1663
  }
1517
- function Chevron({ size = 16 }) {
1518
- return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m9 5 7 7-7 7", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
1664
+ function chainLogoCandidates(chainId, logoUrl) {
1665
+ const out = [];
1666
+ if (isHttpsUrl(logoUrl)) out.push(logoUrl);
1667
+ const bundled = chainId === void 0 ? void 0 : BUNDLED_CHAIN_LOGO[Number(chainId)];
1668
+ if (bundled) out.push(bundled);
1669
+ return out;
1519
1670
  }
1520
- function Info({ size = 16 }) {
1521
- return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
1522
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor" }),
1523
- /* @__PURE__ */ jsx("path", { d: "M12 10.6v6", stroke: "var(--sg-bg)", strokeWidth: "2.1", strokeLinecap: "round" }),
1524
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "7.6", r: "1.25", fill: "var(--sg-bg)" })
1525
- ] });
1671
+ var CHAIN_SHORT = {
1672
+ 1: "ETH",
1673
+ 10: "OP",
1674
+ 130: "UNI",
1675
+ 146: "SON",
1676
+ 8453: "BASE",
1677
+ 9745: "PLS",
1678
+ 57073: "INK",
1679
+ 42161: "ARB",
1680
+ 98866: "PLM"
1681
+ };
1682
+ function chainBadge(chainId) {
1683
+ const pinned = CHAIN_SHORT[Number(chainId)];
1684
+ if (pinned) return pinned;
1685
+ const name = CHAIN_LABELS[Number(chainId)];
1686
+ return name ? name.replace(/[^A-Za-z]/g, "").slice(0, 3).toUpperCase() : "?";
1526
1687
  }
1527
- function Lock({ size = 16 }) {
1528
- return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
1529
- /* @__PURE__ */ jsx("rect", { x: "4.5", y: "10.5", width: "15", height: "9.5", rx: "2.2", stroke: "currentColor", strokeWidth: "1.7" }),
1530
- /* @__PURE__ */ jsx("path", { d: "M8 10.5V7.8a4 4 0 0 1 8 0v2.7", stroke: "currentColor", strokeWidth: "1.7", strokeLinecap: "round" })
1688
+ function TokenGlyph(props) {
1689
+ const [failed, setFailed] = useState([]);
1690
+ const src = tokenLogoCandidates(props.symbol, props.logoUrl).find((u) => !failed.includes(u));
1691
+ const mark = props.chainId ? chainLogoCandidates(props.chainId)[0] : void 0;
1692
+ let badge = null;
1693
+ if (props.chainId) badge = mark ? /* @__PURE__ */ jsx("img", { className: "sg-tok-badge", src: mark, alt: "" }) : /* @__PURE__ */ jsx("span", { className: "sg-tok-badge", children: chainBadge(props.chainId) });
1694
+ return /* @__PURE__ */ jsxs("span", { className: "sg-tok", "data-size": props.size && props.size !== "md" ? props.size : void 0, children: [
1695
+ src ? /* @__PURE__ */ jsx("img", { className: "sg-tok-img", src, alt: "", loading: "lazy", onError: () => setFailed((f) => [...f, src]) }) : /* @__PURE__ */ jsx("span", { className: "sg-tok-fb", children: props.symbol.slice(0, 4) }),
1696
+ badge
1531
1697
  ] });
1532
1698
  }
1533
- function ShieldOutline({ size = 16 }) {
1534
- return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M12 2.5 4.5 5.5v6c0 4.4 3.1 8.5 7.5 10 4.4-1.5 7.5-5.6 7.5-10v-6L12 2.5Z", stroke: "currentColor", strokeWidth: "1.7", strokeLinejoin: "round" }) });
1699
+ function ChevronGlyph() {
1700
+ return /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" }) });
1535
1701
  }
1536
- function WarningFilled({ size = 16 }) {
1537
- return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
1538
- /* @__PURE__ */ jsx("path", { d: "M12 3.2 21.4 19.4H2.6L12 3.2Z", fill: "currentColor" }),
1539
- /* @__PURE__ */ jsx("path", { d: "M12 9.4v4.3", stroke: "var(--sg-bg)", strokeWidth: "1.9", strokeLinecap: "round" }),
1540
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "16.4", r: "1.05", fill: "var(--sg-bg)" })
1702
+ function TokenTile(props) {
1703
+ const shown = props.token ? tokenTicker(props.token) : props.pick?.symbol ?? "";
1704
+ const glyph = props.pick ? /* @__PURE__ */ jsxs(Fragment, { children: [
1705
+ /* @__PURE__ */ jsx(TokenGlyph, { symbol: props.pick.symbol, logoUrl: props.token?.logoUrl, chainId: props.pick.chainId, size: "tile" }),
1706
+ /* @__PURE__ */ jsxs("span", { className: "sg-tile-text", children: [
1707
+ /* @__PURE__ */ jsx("span", { className: "sg-tile-sym", children: shown }),
1708
+ /* @__PURE__ */ jsx("span", { className: "sg-tile-chain", children: CHAIN_LABELS[props.pick.chainId] || `Chain ${props.pick.chainId}` })
1709
+ ] })
1710
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
1711
+ /* @__PURE__ */ jsx("span", { className: "sg-tok", children: /* @__PURE__ */ jsx("span", { className: "sg-tok-fb", children: "?" }) }),
1712
+ /* @__PURE__ */ jsx("span", { className: "sg-tile-empty", children: "Select\u2026" })
1713
+ ] });
1714
+ const ariaLabel = `${props.label}: ${props.pick ? `${shown} on ${CHAIN_LABELS[props.pick.chainId] || props.pick.chainId}` : "select token"}`;
1715
+ if (props.row) {
1716
+ return /* @__PURE__ */ jsxs("button", { type: "button", ref: props.btnRef, className: "sg-tile sg-tile--row", disabled: props.disabled, onClick: props.onClick, "aria-label": ariaLabel, children: [
1717
+ /* @__PURE__ */ jsx("span", { className: "sg-tile-label", children: props.label }),
1718
+ /* @__PURE__ */ jsx("span", { className: "sg-tile-rowmain", children: glyph }),
1719
+ /* @__PURE__ */ jsx("span", { className: "sg-tile-chev", children: /* @__PURE__ */ jsx(ChevronGlyph, {}) })
1720
+ ] });
1721
+ }
1722
+ return /* @__PURE__ */ jsxs("button", { type: "button", ref: props.btnRef, className: "sg-tile", disabled: props.disabled, onClick: props.onClick, "aria-label": ariaLabel, children: [
1723
+ /* @__PURE__ */ jsx("span", { className: "sg-tile-label", children: props.label }),
1724
+ /* @__PURE__ */ jsx("span", { className: "sg-tile-main", children: glyph })
1541
1725
  ] });
1542
1726
  }
1543
- function CornerArrow({ size = 12 }) {
1544
- return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M7 17 17 7M9 7h8v8", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round" }) });
1727
+ function FundingTile(props) {
1728
+ const symbols = props.assets.map((asset) => asset.symbol);
1729
+ const summary = props.loading ? "Checking wallet assets\u2026" : symbols.length ? symbols.join(", ") : "No payable balance";
1730
+ const detail = props.loading ? "Finding what you can pay with" : symbols.length ? `${symbols.length} wallet asset${symbols.length === 1 ? "" : "s"} available` : "Open to review funding options";
1731
+ const ariaLabel = `${props.label}: ${props.loading ? "checking wallet assets" : symbols.length ? symbols.join(", ") : "no payable balance"}`;
1732
+ const glyphs = props.loading ? /* @__PURE__ */ jsx("span", { className: "sg-tok", children: /* @__PURE__ */ jsx("span", { className: "sg-tok-fb", children: "\u2026" }) }) : symbols.length ? /* @__PURE__ */ jsx("span", { className: "sg-funding-glyphs", "aria-hidden": "true", children: props.assets.slice(0, 3).map((asset) => /* @__PURE__ */ jsx(TokenGlyph, { symbol: asset.symbol, logoUrl: asset.logoUrl, size: "sm" }, asset.symbol)) }) : /* @__PURE__ */ jsx("span", { className: "sg-tok", children: /* @__PURE__ */ jsx("span", { className: "sg-tok-fb", children: "?" }) });
1733
+ const main = /* @__PURE__ */ jsxs(Fragment, { children: [
1734
+ glyphs,
1735
+ /* @__PURE__ */ jsxs("span", { className: "sg-funding-copy", children: [
1736
+ /* @__PURE__ */ jsx("span", { className: "sg-tile-sym", children: summary }),
1737
+ /* @__PURE__ */ jsx("span", { className: "sg-tile-chain", children: detail })
1738
+ ] })
1739
+ ] });
1740
+ if (props.row) {
1741
+ return /* @__PURE__ */ jsxs("button", { type: "button", ref: props.btnRef, className: "sg-tile sg-tile--row", disabled: props.disabled, onClick: props.onClick, "aria-label": ariaLabel, children: [
1742
+ /* @__PURE__ */ jsx("span", { className: "sg-tile-label", children: props.label }),
1743
+ /* @__PURE__ */ jsx("span", { className: "sg-tile-rowmain", children: main }),
1744
+ /* @__PURE__ */ jsx("span", { className: "sg-tile-chev", children: /* @__PURE__ */ jsx(ChevronGlyph, {}) })
1745
+ ] });
1746
+ }
1747
+ return /* @__PURE__ */ jsxs("button", { type: "button", ref: props.btnRef, className: "sg-tile", disabled: props.disabled, onClick: props.onClick, "aria-label": ariaLabel, children: [
1748
+ /* @__PURE__ */ jsx("span", { className: "sg-tile-label", children: props.label }),
1749
+ /* @__PURE__ */ jsx("span", { className: "sg-tile-main", children: main })
1750
+ ] });
1545
1751
  }
1546
- var POLICY_GLYPH = {
1547
- "always-blocked": Lock,
1548
- blocked: ShieldOutline,
1549
- flagged: WarningFilled
1550
- };
1551
- var POLICY_DETAIL = {
1552
- "always-blocked": "Cannot be changed or disabled",
1553
- blocked: "Stops the payment",
1554
- flagged: "Does not automatically block"
1555
- };
1556
- function shortAddr(a) {
1557
- return a.length > 14 ? `${a.slice(0, 6)}\u2026${a.slice(-4)}` : a;
1752
+ function ChainChip(props) {
1753
+ const [failed, setFailed] = useState([]);
1754
+ const src = chainLogoCandidates(props.chain?.chainId, props.chain?.logoUrl).find((u) => !failed.includes(u));
1755
+ const name = props.name ?? props.label;
1756
+ return /* @__PURE__ */ jsx("button", { type: "button", className: "sg-chain-chip", "data-selected": props.selected, title: name, "aria-label": name, "aria-pressed": props.selected, onClick: props.onClick, children: src ? /* @__PURE__ */ jsx("img", { src, alt: "", loading: "lazy", onError: () => setFailed((f) => [...f, src]) }) : props.label });
1558
1757
  }
1559
- function TriggerGlyph({ cv }) {
1560
- if (cv.tone === "blocked" || cv.tone === "warn") return /* @__PURE__ */ jsx(CloseCircle, {});
1561
- return /* @__PURE__ */ jsx(ShieldTick, {});
1758
+ function SearchGlyph() {
1759
+ return /* @__PURE__ */ jsxs("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", "aria-hidden": "true", children: [
1760
+ /* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "7" }),
1761
+ /* @__PURE__ */ jsx("path", { d: "m20 20-3.5-3.5" })
1762
+ ] });
1562
1763
  }
1563
- function CheckRow({ check, onViewPolicy }) {
1564
- const label = check.id === "risk" ? check.ok ? "Risk screening passed" : "Risk screening failed" : check.label;
1565
- return /* @__PURE__ */ jsxs("li", { className: "sg-cp-check", "data-ok": check.ok, children: [
1566
- /* @__PURE__ */ jsxs("div", { className: "sg-cp-check-head", children: [
1567
- /* @__PURE__ */ jsxs("span", { className: "sg-cp-check-label", children: [
1568
- /* @__PURE__ */ jsx("span", { className: "sg-cp-check-mark", "data-ok": check.ok, children: check.ok ? /* @__PURE__ */ jsx(Tick, {}) : /* @__PURE__ */ jsx(Cross, {}) }),
1569
- /* @__PURE__ */ jsx("span", { children: label }),
1570
- /* @__PURE__ */ jsx("span", { className: "sg-sr-only", children: check.ok ? " \u2014 passed" : " \u2014 failed" })
1571
- ] }),
1572
- check.id === "risk" ? /* @__PURE__ */ jsxs("button", { type: "button", className: "sg-cp-link", onClick: onViewPolicy, children: [
1573
- "View policy",
1574
- /* @__PURE__ */ jsx(CornerArrow, {})
1575
- ] }) : null
1576
- ] }),
1577
- check.note ? /* @__PURE__ */ jsx("span", { className: "sg-cp-check-note", children: check.note }) : null,
1578
- check.reasons.map((reason) => /* @__PURE__ */ jsx("span", { className: "sg-cp-check-reason", children: humanizeComplianceReason(reason) }, reason))
1764
+ function BackGlyph() {
1765
+ return /* @__PURE__ */ jsxs("svg", { width: "17", height: "17", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
1766
+ /* @__PURE__ */ jsx("path", { d: "M19 12H5" }),
1767
+ /* @__PURE__ */ jsx("path", { d: "m12 19-7-7 7-7" })
1579
1768
  ] });
1580
1769
  }
1581
- function QuoteChecks({
1582
- compliance,
1583
- cv,
1584
- checks,
1585
- direct,
1586
- onViewPolicy
1587
- }) {
1588
- const allPassed = cv.tone === "ok" && checks.length > 0 && checks.every((c) => c.ok);
1589
- const summary = allPassed ? "All checks passed" : cv.label;
1770
+ function TokenSelect(props) {
1771
+ const [chainFilter, setChainFilter] = useState(null);
1772
+ const [query, setQuery] = useState("");
1773
+ const rows = useMemo(() => {
1774
+ const q = query.trim().toLowerCase();
1775
+ const filtered = props.tokens.filter((t) => chainFilter == null ? true : Number(t.chainId) === chainFilter).filter((t) => {
1776
+ if (!q) return true;
1777
+ return String(t.symbol || "").toLowerCase().includes(q) || // The chain's own ticker too, with `₮` read as `T`: "usdt0" finds USD₮0.
1778
+ foldTicker(tokenTicker(t)).includes(foldTicker(q)) || String(t.name || "").toLowerCase().includes(q) || String(t.address || "").toLowerCase().includes(q) || // Chain name too (2026-09-08): with ~37 destination chains most have no bundled mark and
1779
+ // show a three-letter badge, so "Katana" or "Berachain" has to be findable by typing it.
1780
+ String(CHAIN_LABELS[Number(t.chainId)] || "").toLowerCase().includes(q);
1781
+ });
1782
+ if (!props.balances) return filtered;
1783
+ const balNum = (t) => {
1784
+ const n = Number(props.balances?.[`${Number(t.chainId)}:${String(t.address || "").toLowerCase()}`]?.formatted);
1785
+ return Number.isFinite(n) ? n : 0;
1786
+ };
1787
+ return [...filtered].sort((a, b) => balNum(b) - balNum(a));
1788
+ }, [props.tokens, chainFilter, query, props.balances]);
1789
+ return /* @__PURE__ */ jsxs("div", { children: [
1790
+ /* @__PURE__ */ jsxs("div", { className: "sg-sel-head", children: [
1791
+ /* @__PURE__ */ jsx("button", { type: "button", className: "sg-back", onClick: props.onBack, "aria-label": "Back", children: /* @__PURE__ */ jsx(BackGlyph, {}) }),
1792
+ /* @__PURE__ */ jsx("div", { className: "sg-sel-title", children: props.title })
1793
+ ] }),
1794
+ /* @__PURE__ */ jsxs("div", { className: "sg-chain-grid", "data-scroll": props.chains.length > 14 ? void 0 : "false", role: "group", "aria-label": "Filter by chain", children: [
1795
+ /* @__PURE__ */ jsx(ChainChip, { label: "All", selected: chainFilter == null, onClick: () => setChainFilter(null) }),
1796
+ props.chains.map((c) => /* @__PURE__ */ jsx(
1797
+ ChainChip,
1798
+ {
1799
+ chain: c,
1800
+ label: chainBadge(Number(c.chainId)),
1801
+ name: CHAIN_LABELS[Number(c.chainId)] || c.displayName || c.name || `Chain ${c.chainId}`,
1802
+ selected: chainFilter === Number(c.chainId),
1803
+ onClick: () => setChainFilter(Number(c.chainId))
1804
+ },
1805
+ c.chainId
1806
+ ))
1807
+ ] }),
1808
+ /* @__PURE__ */ jsxs("div", { className: "sg-search", children: [
1809
+ /* @__PURE__ */ jsx(SearchGlyph, {}),
1810
+ /* @__PURE__ */ jsx("input", { autoFocus: true, placeholder: "Search by token, network or address", value: query, onChange: (e) => setQuery(e.target.value), spellCheck: false, "aria-label": "Search by token, network or address" })
1811
+ ] }),
1812
+ /* @__PURE__ */ jsx("div", { className: "sg-toklist", role: "group", "aria-label": props.title, children: rows.length ? rows.map((t) => {
1813
+ const chainId = Number(t.chainId);
1814
+ const key = `${chainId}:${String(t.address || "").toLowerCase()}`;
1815
+ const bal = props.balances?.[key];
1816
+ const st = props.optionStates?.[key];
1817
+ const disabled = !!st?.disabled;
1818
+ return /* @__PURE__ */ jsxs(
1819
+ "button",
1820
+ {
1821
+ type: "button",
1822
+ className: `sg-tokrow${disabled ? " sg-tokrow--off" : ""}`,
1823
+ disabled,
1824
+ "aria-disabled": disabled || void 0,
1825
+ "data-disabled": disabled || void 0,
1826
+ onClick: disabled ? void 0 : () => props.onPick({ chainId, symbol: t.symbol }),
1827
+ children: [
1828
+ /* @__PURE__ */ jsx(TokenGlyph, { symbol: t.symbol, logoUrl: t.logoUrl, chainId }),
1829
+ /* @__PURE__ */ jsxs("span", { className: "sg-tokrow-main", children: [
1830
+ /* @__PURE__ */ jsx("span", { className: "sg-tokrow-sym", children: tokenTicker(t) }),
1831
+ /* @__PURE__ */ jsx("span", { className: "sg-tokrow-name", children: t.name || t.symbol })
1832
+ ] }),
1833
+ /* @__PURE__ */ jsxs("span", { className: "sg-tokrow-end", children: [
1834
+ bal ? /* @__PURE__ */ jsx("span", { className: "sg-tokrow-bal sg-mono", children: bal.formatted }) : null,
1835
+ st?.hint ? /* @__PURE__ */ jsx("span", { className: "sg-tokrow-hint", "data-tone": disabled ? void 0 : "note", children: st.hint }) : null,
1836
+ /* @__PURE__ */ jsx("span", { className: "sg-tokrow-chain", children: CHAIN_LABELS[chainId] || `Chain ${chainId}` })
1837
+ ] })
1838
+ ]
1839
+ },
1840
+ `${chainId}:${t.address}`
1841
+ );
1842
+ }) : props.loading ? /* @__PURE__ */ jsx("div", { className: "sg-sel-empty", children: "Loading the token list\u2026" }) : /* @__PURE__ */ jsx("div", { className: "sg-sel-empty", children: "No tokens match \u2014 try another chain or search." }) })
1843
+ ] });
1844
+ }
1845
+ function ChevronRight({ size = 16 }) {
1846
+ return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M6 4l4 4-4 4", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }) });
1847
+ }
1848
+ function ChevronDown({ size = 16, up = false }) {
1849
+ return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", style: up ? { transform: "scaleY(-1)" } : void 0, children: /* @__PURE__ */ jsx("path", { d: "M4 6l4 4 4-4", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }) });
1850
+ }
1851
+ function PillChevron() {
1852
+ return /* @__PURE__ */ jsx("svg", { width: "5", height: "10", viewBox: "0 0 5 10", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M0.5 9l3-3-3-3", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }) });
1853
+ }
1854
+ function ArrowDown({ size = 16 }) {
1855
+ return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [
1856
+ /* @__PURE__ */ jsx("path", { d: "M8 3.333v9.334", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
1857
+ /* @__PURE__ */ jsx("path", { d: "M12.667 8L8 12.667 3.333 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
1858
+ ] });
1859
+ }
1860
+ function CloseGlyph() {
1861
+ return /* @__PURE__ */ jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M18 6L6 18M6 6l12 12", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
1862
+ }
1863
+ function ShieldTickGlyph({ size = 16 }) {
1864
+ return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 14 14", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx(
1865
+ "path",
1866
+ {
1867
+ d: "M10.815 2.403 7.607 1.202c-.333-.123-.875-.123-1.208 0L3.191 2.403c-.619.234-1.12.957-1.12 1.616v4.725c0 .473.309 1.097.688 1.377l3.208 2.397c.566.426 1.494.426 2.06 0l3.208-2.397c.379-.286.688-.904.688-1.377V4.019c.006-.659-.496-1.382-1.108-1.616ZM9.03 5.67 6.522 8.178a.436.436 0 0 1-.31.129.436.436 0 0 1-.31-.129l-.932-.945a.442.442 0 0 1 0-.618.442.442 0 0 1 .618 0l.63.63 2.2-2.2a.442.442 0 0 1 .618 0c.169.17.169.455-.006.625Z",
1868
+ fill: "currentColor"
1869
+ }
1870
+ ) });
1871
+ }
1872
+ function QuoteGlyph({ size = 16 }) {
1873
+ return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [
1874
+ /* @__PURE__ */ jsx(
1875
+ "path",
1876
+ {
1877
+ d: "M5.667 12A1.667 1.667 0 0 1 4 10.333v-5H2.667c-.734 0-1.334.6-1.334 1.334v6.666c0 .734.6 1.334 1.334 1.334h6.666c.734 0 1.334-.6 1.334-1.334V12H5.667Z",
1878
+ fill: "currentColor"
1879
+ }
1880
+ ),
1881
+ /* @__PURE__ */ jsx(
1882
+ "path",
1883
+ {
1884
+ d: "M13.333 1.333H6.667c-.734 0-1.334.6-1.334 1.334v6.666c0 .734.6 1.334 1.334 1.334h6.666c.734 0 1.334-.6 1.334-1.334V2.667c0-.734-.6-1.334-1.334-1.334ZM12.667 8H7.333V6.667h5.334V8Zm0-2.667H7.333V4h5.334v1.333Z",
1885
+ fill: "currentColor"
1886
+ }
1887
+ )
1888
+ ] });
1889
+ }
1890
+ function AmountText({ value, suffix }) {
1891
+ const dot = value.indexOf(".");
1892
+ const whole = dot < 0 ? value : value.slice(0, dot + 1);
1893
+ const decimals = dot < 0 ? "" : value.slice(dot + 1);
1894
+ return /* @__PURE__ */ jsxs("span", { className: "sg-amt", children: [
1895
+ whole,
1896
+ decimals ? /* @__PURE__ */ jsx("span", { className: "sg-amt-dec", children: decimals }) : null,
1897
+ suffix ? ` ${suffix}` : null
1898
+ ] });
1899
+ }
1900
+ function usdOf(amount, price) {
1901
+ const n = typeof amount === "number" ? amount : Number(amount);
1902
+ if (!Number.isFinite(n) || n <= 0 || price === void 0 || !Number.isFinite(price) || price <= 0) return null;
1903
+ const usd = n * price;
1904
+ return `$ ${usd < 0.01 ? "<0.01" : usd.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`;
1905
+ }
1906
+ function shortBalance(formatted) {
1907
+ const [whole, frac = ""] = String(formatted).split(".");
1908
+ const cut = frac.slice(0, 4).replace(/0+$/, "");
1909
+ return cut ? `${whole}.${cut}` : whole;
1910
+ }
1911
+ function durationLabel(seconds) {
1912
+ const s = Number(seconds);
1913
+ if (!Number.isFinite(s) || s <= 0) return null;
1914
+ if (s < 90) return `~${Math.max(1, Math.round(s))} sec`;
1915
+ if (s < 90 * 60) return `~${Math.round(s / 60)} min`;
1916
+ return `~${Math.round(s / 3600)} h`;
1917
+ }
1918
+ function TokenButton(props) {
1919
+ const shown = props.token ? tokenTicker(props.token) : props.symbol ?? "";
1920
+ const chain = props.chainId ? CHAIN_LABELS[props.chainId] || `Chain ${props.chainId}` : "";
1921
+ return /* @__PURE__ */ jsxs(
1922
+ "button",
1923
+ {
1924
+ type: "button",
1925
+ ref: props.btnRef,
1926
+ className: "sg-tokbtn",
1927
+ disabled: props.disabled,
1928
+ onClick: props.onClick,
1929
+ "aria-label": `${props.label}: ${props.symbol ? `${shown} on ${chain}` : "select token"}`,
1930
+ children: [
1931
+ props.symbol && props.chainId ? /* @__PURE__ */ jsxs(Fragment, { children: [
1932
+ /* @__PURE__ */ jsx(TokenGlyph, { symbol: props.symbol, logoUrl: props.token?.logoUrl, chainId: props.chainId, size: "xs" }),
1933
+ /* @__PURE__ */ jsxs("span", { className: "sg-tokbtn-text", children: [
1934
+ /* @__PURE__ */ jsx("span", { className: "sg-tokbtn-sym", children: shown }),
1935
+ /* @__PURE__ */ jsx("span", { className: "sg-tokbtn-chain", children: chain })
1936
+ ] })
1937
+ ] }) : /* @__PURE__ */ jsx("span", { className: "sg-tokbtn-text", children: /* @__PURE__ */ jsx("span", { className: "sg-tokbtn-sym", children: "Select" }) }),
1938
+ /* @__PURE__ */ jsx("span", { className: "sg-tokbtn-chev", children: /* @__PURE__ */ jsx(ChevronRight, {}) })
1939
+ ]
1940
+ }
1941
+ );
1942
+ }
1943
+ function FlipButton(props) {
1944
+ return /* @__PURE__ */ jsx("span", { className: "sg-flip-slot", children: /* @__PURE__ */ jsx("button", { type: "button", className: "sg-flip", "data-small": props.small || void 0, onClick: props.onClick, disabled: props.disabled, "aria-label": "Swap source and destination", children: props.small ? /* @__PURE__ */ jsx("span", { className: "sg-flip-rot", children: /* @__PURE__ */ jsx(ArrowDown, { size: 12 }) }) : /* @__PURE__ */ jsx(ArrowDown, {}) }) });
1945
+ }
1946
+ function DetailButton(props) {
1947
+ return /* @__PURE__ */ jsxs(
1948
+ "button",
1949
+ {
1950
+ type: "button",
1951
+ ref: props.btnRef,
1952
+ className: "sg-dbtn",
1953
+ "data-size": props.size === "lg" ? "lg" : void 0,
1954
+ onClick: props.onClick,
1955
+ disabled: props.disabled,
1956
+ "aria-haspopup": "dialog",
1957
+ children: [
1958
+ /* @__PURE__ */ jsxs("span", { className: "sg-dbtn-main", children: [
1959
+ /* @__PURE__ */ jsx("span", { className: "sg-dbtn-icon", "data-tone": props.iconTone ?? "info", children: props.icon }),
1960
+ /* @__PURE__ */ jsx("span", { className: "sg-dbtn-label", children: props.label })
1961
+ ] }),
1962
+ props.badge ? /* @__PURE__ */ jsxs("span", { className: "sg-dpill", "data-tone": props.badge.tone, children: [
1963
+ props.badge.text,
1964
+ /* @__PURE__ */ jsx(PillChevron, {})
1965
+ ] }) : /* @__PURE__ */ jsx("span", { className: "sg-dbtn-chev", children: /* @__PURE__ */ jsx(ChevronRight, {}) })
1966
+ ]
1967
+ }
1968
+ );
1969
+ }
1970
+ function RateBox(props) {
1971
+ const [open, setOpen] = useState(!!props.defaultOpen);
1972
+ const rows = props.rows.length ? /* @__PURE__ */ jsx("dl", { className: "sg-rate-rows", children: props.rows.map((r) => /* @__PURE__ */ jsxs("div", { className: "sg-rate-row", children: [
1973
+ /* @__PURE__ */ jsx("dt", { children: r.label }),
1974
+ /* @__PURE__ */ jsx("dd", { children: r.value })
1975
+ ] }, r.label)) }) : null;
1976
+ if (props.rowsOnly) return rows ? /* @__PURE__ */ jsx("div", { className: "sg-rate", children: rows }) : null;
1977
+ return /* @__PURE__ */ jsxs("div", { className: "sg-rate", "data-open": open || void 0, children: [
1978
+ /* @__PURE__ */ jsxs("button", { type: "button", className: "sg-rate-head", onClick: () => setOpen((o) => !o), "aria-expanded": open, disabled: !props.rows.length, children: [
1979
+ /* @__PURE__ */ jsxs("span", { className: "sg-rate-line", children: [
1980
+ /* @__PURE__ */ jsx(TokenGlyph, { symbol: props.fromSymbol, logoUrl: props.fromLogoUrl, size: "xxs" }),
1981
+ /* @__PURE__ */ jsx("span", { className: "sg-mono", children: props.rate ? `= ${props.rate} ${props.toTicker}` : "Rate appears with a quote" })
1982
+ ] }),
1983
+ /* @__PURE__ */ jsx("span", { className: "sg-rate-chev", children: /* @__PURE__ */ jsx(ChevronDown, { up: open }) })
1984
+ ] }),
1985
+ open ? rows : null
1986
+ ] });
1987
+ }
1988
+ function PoweredBy() {
1989
+ return /* @__PURE__ */ jsxs("div", { className: "sg-foot", children: [
1990
+ /* @__PURE__ */ jsx(BrandMark, { size: 17, className: "sg-foot-mark" }),
1991
+ /* @__PURE__ */ jsx("span", { children: "Powered by ZeroDelta" })
1992
+ ] });
1993
+ }
1994
+ function PaneFoot(props) {
1995
+ if (!props.usd && !props.balance) return null;
1996
+ return /* @__PURE__ */ jsxs("div", { className: "sg-pane-foot", children: [
1997
+ /* @__PURE__ */ jsx("span", { children: props.usd ?? "" }),
1998
+ props.balance ? /* @__PURE__ */ jsxs("span", { children: [
1999
+ "Balance ",
2000
+ /* @__PURE__ */ jsx("b", { className: "sg-mono", children: props.balance })
2001
+ ] }) : null
2002
+ ] });
2003
+ }
2004
+ function WidgetShell(props) {
2005
+ injectStyles();
2006
+ const resolved = resolveTheme(props.theme);
2007
+ const vars = themeToVars(resolved);
2008
+ const fixed = Number.isFinite(props.heightPx) && props.heightPx > 0;
2009
+ const style = fixed ? { ...vars, height: props.heightPx } : vars;
2010
+ return /* @__PURE__ */ jsxs(
2011
+ "div",
2012
+ {
2013
+ className: "sg-widget",
2014
+ "data-sg-mode": resolved.mode,
2015
+ "data-sg-fixed": fixed || void 0,
2016
+ "data-sg-express": props.variant === "express" || void 0,
2017
+ "data-sg-wide": props.wide || void 0,
2018
+ style,
2019
+ children: [
2020
+ /* @__PURE__ */ jsxs("div", { className: "sg-head", children: [
2021
+ props.brandSlot ?? /* @__PURE__ */ jsx("div", { className: "sg-title", children: props.title }),
2022
+ /* @__PURE__ */ jsxs("div", { className: "sg-head-end", children: [
2023
+ props.walletSlot ?? /* @__PURE__ */ jsxs("div", { className: "sg-brand", children: [
2024
+ /* @__PURE__ */ jsx(BrandMark, { size: 14, className: "sg-brand-mark" }),
2025
+ "ZeroDelta"
2026
+ ] }),
2027
+ props.onClose ? (
2028
+ // type="button": a host page may wrap the widget in a <form>.
2029
+ /* @__PURE__ */ jsx("button", { type: "button", className: "sg-close", onClick: props.onClose, "aria-label": "Close", children: /* @__PURE__ */ jsx(CloseGlyph, {}) })
2030
+ ) : null
2031
+ ] })
2032
+ ] }),
2033
+ /* @__PURE__ */ jsx("div", { className: "sg-body", children: props.children }),
2034
+ /* @__PURE__ */ jsx(PoweredBy, {})
2035
+ ]
2036
+ }
2037
+ );
2038
+ }
2039
+ function shortAddress(a) {
2040
+ if (!a) return "";
2041
+ return `${a.slice(0, 6)}\u2026${a.slice(-4)}`;
2042
+ }
2043
+ function ShieldTick({ size = 16 }) {
2044
+ return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2045
+ /* @__PURE__ */ jsx("path", { d: "M12 2.5 4.5 5.5v6c0 4.4 3.1 8.5 7.5 10 4.4-1.5 7.5-5.6 7.5-10v-6L12 2.5Z", fill: "currentColor", opacity: ".14" }),
2046
+ /* @__PURE__ */ jsx("path", { d: "M12 2.5 4.5 5.5v6c0 4.4 3.1 8.5 7.5 10 4.4-1.5 7.5-5.6 7.5-10v-6L12 2.5Z", stroke: "currentColor", strokeWidth: "1.6", strokeLinejoin: "round" }),
2047
+ /* @__PURE__ */ jsx("path", { d: "m8.6 11.9 2.3 2.3 4.5-4.5", stroke: "currentColor", strokeWidth: "1.9", strokeLinecap: "round", strokeLinejoin: "round" })
2048
+ ] });
2049
+ }
2050
+ function TickCircle({ size = 16 }) {
2051
+ return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2052
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor" }),
2053
+ /* @__PURE__ */ jsx("path", { d: "m7.8 12.2 2.7 2.7 5.7-5.8", stroke: "var(--sg-bg)", strokeWidth: "2.1", strokeLinecap: "round", strokeLinejoin: "round" })
2054
+ ] });
2055
+ }
2056
+ function CloseCircle({ size = 16 }) {
2057
+ return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2058
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor" }),
2059
+ /* @__PURE__ */ jsx("path", { d: "m8.7 8.7 6.6 6.6M15.3 8.7l-6.6 6.6", stroke: "var(--sg-bg)", strokeWidth: "2.1", strokeLinecap: "round" })
2060
+ ] });
2061
+ }
2062
+ function PendingCircle({ size = 16 }) {
2063
+ return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2064
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9.2", stroke: "currentColor", strokeWidth: "1.6", strokeDasharray: "3 3" }),
2065
+ /* @__PURE__ */ jsx("path", { d: "M8.5 12h7", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round" })
2066
+ ] });
2067
+ }
2068
+ function Tick({ size = 12 }) {
2069
+ return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m4.5 12.8 5 5L19.5 6.5", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" }) });
2070
+ }
2071
+ function Cross({ size = 12 }) {
2072
+ return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m5.5 5.5 13 13M18.5 5.5l-13 13", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round" }) });
2073
+ }
2074
+ function Chevron({ size = 16 }) {
2075
+ return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m9 5 7 7-7 7", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
2076
+ }
2077
+ function Info({ size = 16 }) {
2078
+ return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2079
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor" }),
2080
+ /* @__PURE__ */ jsx("path", { d: "M12 10.6v6", stroke: "var(--sg-bg)", strokeWidth: "2.1", strokeLinecap: "round" }),
2081
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "7.6", r: "1.25", fill: "var(--sg-bg)" })
2082
+ ] });
2083
+ }
2084
+ function Lock({ size = 16 }) {
2085
+ return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2086
+ /* @__PURE__ */ jsx("rect", { x: "4.5", y: "10.5", width: "15", height: "9.5", rx: "2.2", stroke: "currentColor", strokeWidth: "1.7" }),
2087
+ /* @__PURE__ */ jsx("path", { d: "M8 10.5V7.8a4 4 0 0 1 8 0v2.7", stroke: "currentColor", strokeWidth: "1.7", strokeLinecap: "round" })
2088
+ ] });
2089
+ }
2090
+ function ShieldOutline({ size = 16 }) {
2091
+ return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M12 2.5 4.5 5.5v6c0 4.4 3.1 8.5 7.5 10 4.4-1.5 7.5-5.6 7.5-10v-6L12 2.5Z", stroke: "currentColor", strokeWidth: "1.7", strokeLinejoin: "round" }) });
2092
+ }
2093
+ function WarningFilled({ size = 16 }) {
2094
+ return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2095
+ /* @__PURE__ */ jsx("path", { d: "M12 3.2 21.4 19.4H2.6L12 3.2Z", fill: "currentColor" }),
2096
+ /* @__PURE__ */ jsx("path", { d: "M12 9.4v4.3", stroke: "var(--sg-bg)", strokeWidth: "1.9", strokeLinecap: "round" }),
2097
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "16.4", r: "1.05", fill: "var(--sg-bg)" })
2098
+ ] });
2099
+ }
2100
+ function CornerArrow({ size = 12 }) {
2101
+ return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M7 17 17 7M9 7h8v8", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round" }) });
2102
+ }
2103
+ var POLICY_GLYPH = {
2104
+ "always-blocked": Lock,
2105
+ blocked: ShieldOutline,
2106
+ flagged: WarningFilled
2107
+ };
2108
+ var POLICY_DETAIL = {
2109
+ "always-blocked": "Cannot be changed or disabled",
2110
+ blocked: "Stops the payment",
2111
+ flagged: "Does not automatically block"
2112
+ };
2113
+ function shortAddr(a) {
2114
+ return a.length > 14 ? `${a.slice(0, 6)}\u2026${a.slice(-4)}` : a;
2115
+ }
2116
+ function TriggerGlyph({ cv }) {
2117
+ if (cv.tone === "blocked" || cv.tone === "warn") return /* @__PURE__ */ jsx(CloseCircle, {});
2118
+ return /* @__PURE__ */ jsx(ShieldTick, {});
2119
+ }
2120
+ function CheckRow({ check, onViewPolicy }) {
2121
+ const label = check.id === "risk" ? check.ok ? "Risk screening passed" : "Risk screening failed" : check.label;
2122
+ return /* @__PURE__ */ jsxs("li", { className: "sg-cp-check", "data-ok": check.ok, children: [
2123
+ /* @__PURE__ */ jsxs("div", { className: "sg-cp-check-head", children: [
2124
+ /* @__PURE__ */ jsxs("span", { className: "sg-cp-check-label", children: [
2125
+ /* @__PURE__ */ jsx("span", { className: "sg-cp-check-mark", "data-ok": check.ok, children: check.ok ? /* @__PURE__ */ jsx(Tick, {}) : /* @__PURE__ */ jsx(Cross, {}) }),
2126
+ /* @__PURE__ */ jsx("span", { children: label }),
2127
+ /* @__PURE__ */ jsx("span", { className: "sg-sr-only", children: check.ok ? " \u2014 passed" : " \u2014 failed" })
2128
+ ] }),
2129
+ check.id === "risk" ? /* @__PURE__ */ jsxs("button", { type: "button", className: "sg-cp-link", onClick: onViewPolicy, children: [
2130
+ "View policy",
2131
+ /* @__PURE__ */ jsx(CornerArrow, {})
2132
+ ] }) : null
2133
+ ] }),
2134
+ check.note ? /* @__PURE__ */ jsx("span", { className: "sg-cp-check-note", children: check.note }) : null,
2135
+ check.reasons.map((reason) => /* @__PURE__ */ jsx("span", { className: "sg-cp-check-reason", children: humanizeComplianceReason(reason) }, reason))
2136
+ ] });
2137
+ }
2138
+ function QuoteChecks({
2139
+ compliance,
2140
+ cv,
2141
+ checks,
2142
+ direct,
2143
+ onViewPolicy
2144
+ }) {
2145
+ const allPassed = cv.tone === "ok" && checks.length > 0 && checks.every((c) => c.ok);
2146
+ const summary = allPassed ? "All checks passed" : cv.label;
1590
2147
  const orphans = unattributedComplianceReasons(compliance, cv);
1591
2148
  const wallets = distinctScreenedWallets(compliance);
1592
2149
  const jurisdiction = compliance?.sourceJurisdiction?.trim();
@@ -1677,287 +2234,72 @@ function ScreeningPolicy({ compliance }) {
1677
2234
  }) })
1678
2235
  ] });
1679
2236
  }
1680
- function CompliancePanel(props) {
1681
- const [open, setOpen] = useState(false);
1682
- const [tab, setTab] = useState("checks");
1683
- const triggerRef = useRef(null);
1684
- const sheetRef = useRef(null);
1685
- const compliance = props.compliance ?? null;
1686
- const cv = complianceView(compliance, props.hasQuote ?? true);
1687
- const allChecks = complianceChecks(compliance, cv);
1688
- const checks = props.direct ? allChecks.filter((c) => DIRECT_CHECK_IDS.includes(c.id)) : allChecks;
1689
- const tag = complianceTagOf(compliance);
1690
- useEffect(() => {
1691
- if (!open) return;
1692
- sheetRef.current?.focus();
1693
- const onKey = (e) => {
1694
- if (e.key === "Escape") {
1695
- e.stopPropagation();
1696
- setOpen(false);
1697
- triggerRef.current?.focus();
1698
- }
1699
- };
1700
- document.addEventListener("keydown", onKey, true);
1701
- return () => document.removeEventListener("keydown", onKey, true);
1702
- }, [open]);
1703
- const close = () => {
1704
- setOpen(false);
1705
- triggerRef.current?.focus();
1706
- };
1707
- return /* @__PURE__ */ jsxs("div", { className: "sg-cp", "data-tone": cv.tone, children: [
1708
- open ? null : /* @__PURE__ */ jsxs(Fragment, { children: [
1709
- /* @__PURE__ */ jsxs("button", { ref: triggerRef, type: "button", className: "sg-cp-row", "data-tone": cv.tone, onClick: () => setOpen(true), "aria-haspopup": "dialog", children: [
1710
- /* @__PURE__ */ jsxs("span", { className: "sg-cp-row-main", children: [
1711
- /* @__PURE__ */ jsx("span", { className: "sg-cp-row-glyph", children: /* @__PURE__ */ jsx(TriggerGlyph, { cv }) }),
1712
- /* @__PURE__ */ jsx("span", { className: "sg-cp-row-label", children: cv.label })
1713
- ] }),
1714
- /* @__PURE__ */ jsx("span", { className: "sg-cp-row-chev", children: /* @__PURE__ */ jsx(Chevron, {}) })
1715
- ] }),
1716
- (cv.blocked || cv.needsAction) && tag ? /* @__PURE__ */ jsx("span", { className: "sg-cp-row-tag sg-mono", children: tag }) : null
1717
- ] }),
1718
- open ? /* @__PURE__ */ jsxs("div", { className: "sg-cp-sheet", role: "dialog", "aria-modal": "true", "aria-label": "Compliance details", ref: sheetRef, tabIndex: -1, children: [
1719
- /* @__PURE__ */ jsxs("div", { className: "sg-cp-sheet-head", children: [
1720
- /* @__PURE__ */ jsx("h4", { className: "sg-cp-sheet-title", children: "Compliance details" }),
1721
- /* @__PURE__ */ jsx("button", { type: "button", className: "sg-cp-close", onClick: close, "aria-label": "Close compliance details", children: /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m6 6 12 12M18 6 6 18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) }) })
1722
- ] }),
1723
- /* @__PURE__ */ jsxs("div", { className: "sg-cp-tabs", role: "tablist", "aria-label": "Compliance details sections", children: [
1724
- /* @__PURE__ */ jsx("button", { type: "button", role: "tab", "aria-selected": tab === "checks", "data-active": tab === "checks", className: "sg-cp-tab", onClick: () => setTab("checks"), children: "Quote checks" }),
1725
- /* @__PURE__ */ jsx("button", { type: "button", role: "tab", "aria-selected": tab === "policy", "data-active": tab === "policy", className: "sg-cp-tab", onClick: () => setTab("policy"), children: "Screening policy" })
1726
- ] }),
1727
- /* @__PURE__ */ jsx("div", { className: "sg-cp-sheet-body", children: tab === "checks" ? /* @__PURE__ */ jsx(QuoteChecks, { compliance, cv, checks, direct: !!props.direct, onViewPolicy: () => setTab("policy") }) : /* @__PURE__ */ jsx(ScreeningPolicy, { compliance }) })
1728
- ] }) : null
1729
- ] });
1730
- }
1731
-
1732
- // src/react/ui/chain-logos.ts
1733
- var BUNDLED_CHAIN_LOGO = {
1734
- 1: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAADAFBMVEVMaXFbqvphfelifupWVv9vf/9ifulhfelifekAAOlifehHcMxifenJvMlES7cA//9ifulgfOhifetafOZifupif+xhdOVifelifetgfehhfephfepjf+5jgO1lgfFhfepifupjfexlgvJifuxhfuxhfepffOhif+5hf+tifepjgO9jge9ffOdjgO9jgO5if+5hfepifuthfeljfepjgexhfehVccZjge9jgO9jgO9Zd+Zkge9kgfFge+Zjge9if+1hfephfepifuxigO5ifupifupifuthfOpifutifuphfupif+xhfutjf+1dguBifehifutkge9kgfBlgfFhfephfelhfeptbdpkgfBkge9jgO5hfOllgvFdf+5hfepieuxhfephf+thfuphfuhfeeRhfel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QMHO7oBkvRa16d+WEFUsxbOmKCSvfXRX10gzG5scEc1n+/wFyD2hmyUaFTQAAAABJRU5ErkJggg==",
1735
- 10: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAADAFBMVEX+BCD+Ax78///+BCH/AyD9///8BSH////+///9BCD9BSD+BiL/ByL//P78BB/8/f7//v7/BSL/BST//v7/AR3/BiD8BR38BR/6BSL/Ax79BSL+/v//AyL+ABr9AyH//v/9BB/+ByT9//30ABP8/v/9//79/f78BiP+//78+vz8/Pv8/vz6///9+/z7/P37//73ABX5Bh/5///++v32ABT+ARz+AiH9/v/9BB38Ah37/////fz7/PzuAhz/CCX9Byf9/fz/+/71ABfqKUD7AR76Bh/7Ahr8ABn9/fv6ABT8+vj8//v6/fv///7+ABb//fv5/Pf/+/z6ABb8CCT9+vr4ABX6+/35ABjvABb9+PzyCiX9/Pj26ev4BiL9CCHpBB7xABj7CCL6+PvpbHv7/Pb++vvuDyn5//z8ABTxABX5ARzkDSf12t738PH6+vn7/PnzABjztL3xW2/mGC/nfIvsAhvqm6TrESv1ABr8ABbte4j33+HjLEP13uX2ABD56e3tBB/xAh3wvMLupK3sj5/sCCT88fT49PLsIj7+//z6/v74ABL+BCb++/rvqLLwABHnHzb1usL55ursDyj51t3pEy31Ax734eT3///wFjLz2drwYG/oM0jww8jqNk/35eXsTWD50tb8DCfzAA7xbH3qGTLrHDX57/DsVmv0o6/wU2rmOk/zzdHrP1PvrrX2393pipfeGzLnDCTnLEXvf4zidILrMEf++//0vsb89fXjSlrwFCvmhZDkl573WWr6AAz0QFjum6fpc4DpVWboPVTxuMDqABbrqrLjoKbwdIX0FDPusrj2xcrqZXX49ff7ABL20NXjipX1DCToJDn4/f7sb4LthJL2ydH47e7qdYb66efsNUvth4/jHzbpSlzvJz/tLkPzoar17Ov3JkLslZ36ys/4U2bzSmD0Z3nqXHL21dLgMkvjaXPgBSL4gpHwk535Hzz3lZ73+fflXm3pkZ/v0Nj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kqETiXIxX/29sRiDlV1Hp2235BhcMHY7QSI8PETuoK6y/Lx80mYLVPi8YDYZmV3nLTuAxJminIxWMhcH301LYfcnWDt6HT6/A2OGOL4AMkznh8Z7fPT1pslBwzFMjba0y9diGuJgpW4Mwb8Oe2uMuELpmuPqE9cMCKzSZBKfGvqoP+qnhQ9rqblcn6kaaAAAAA=="
1743
- };
1744
-
1745
- // src/react/ui/logos.ts
1746
- var BUNDLED_TOKEN_LOGO = {
1747
- USDC: "https://coin-images.coingecko.com/coins/images/6319/large/USDC.png",
1748
- USDT: "https://coin-images.coingecko.com/coins/images/325/large/Tether.png",
1749
- USDE: "https://coin-images.coingecko.com/coins/images/33613/large/usde.png",
1750
- XAUT: "https://coin-images.coingecko.com/coins/images/10481/large/Tether_Gold.png",
1751
- // 2026-09-08, with the dapp-parity asset expansion — the same four URLs the dapp draws
1752
- // (zd-dapp/src/lib/tokenLogos.ts), so the two products show one picture per coin.
1753
- USDTB: "https://coin-images.coingecko.com/coins/images/52804/large/76357aa8-4ef7-446c-bad3-a3f944eeec7a.jpeg",
1754
- AUSD: "https://coin-images.coingecko.com/coins/images/39284/large/AUSD_1024px.png",
1755
- PYUSD: "https://coin-images.coingecko.com/coins/images/31212/large/PYUSD_Token_Logo_2x.png",
1756
- USDG: "https://coin-images.coingecko.com/coins/images/51281/large/GDN_USDG_Token_200x200.png",
1757
- // The wider stable list, added 2026-09-08 with the RWA exchange.
1758
- DAI: "https://coin-images.coingecko.com/coins/images/9956/large/Badge_Dai.png",
1759
- USDS: "https://coin-images.coingecko.com/coins/images/39926/large/usds.webp",
1760
- RLUSD: "https://coin-images.coingecko.com/coins/images/39651/large/RLUSD_200x200_%281%29.png",
1761
- USD1: "https://coin-images.coingecko.com/coins/images/54977/large/USD1_1000x1000_transparent.png",
1762
- WM: "https://coin-images.coingecko.com/coins/images/50789/large/M.png"
1763
- };
1764
- function isHttpsUrl(u) {
1765
- return typeof u === "string" && /^https:\/\//i.test(u);
1766
- }
1767
- function isSameOriginPath(u) {
1768
- return typeof u === "string" && u.startsWith("/") && !u.startsWith("//") && !u.startsWith("/\\");
1769
- }
1770
- function isDisplayableImageSrc(u) {
1771
- return isHttpsUrl(u) || isSameOriginPath(u);
1772
- }
1773
- function tokenLogoCandidates(symbol, logoUrl) {
1774
- const out = [];
1775
- if (isDisplayableImageSrc(logoUrl)) out.push(logoUrl);
1776
- const bundled = BUNDLED_TOKEN_LOGO[symbolKey(symbol)];
1777
- if (bundled && !out.includes(bundled)) out.push(bundled);
1778
- return out;
1779
- }
1780
- function chainLogoCandidates(chainId, logoUrl) {
1781
- const out = [];
1782
- if (isHttpsUrl(logoUrl)) out.push(logoUrl);
1783
- const bundled = chainId === void 0 ? void 0 : BUNDLED_CHAIN_LOGO[Number(chainId)];
1784
- if (bundled) out.push(bundled);
1785
- return out;
1786
- }
1787
- var CHAIN_SHORT = {
1788
- 1: "ETH",
1789
- 10: "OP",
1790
- 130: "UNI",
1791
- 146: "SON",
1792
- 8453: "BASE",
1793
- 9745: "PLS",
1794
- 57073: "INK",
1795
- 42161: "ARB",
1796
- 98866: "PLM"
1797
- };
1798
- function chainBadge(chainId) {
1799
- const pinned = CHAIN_SHORT[Number(chainId)];
1800
- if (pinned) return pinned;
1801
- const name = CHAIN_LABELS[Number(chainId)];
1802
- return name ? name.replace(/[^A-Za-z]/g, "").slice(0, 3).toUpperCase() : "?";
1803
- }
1804
- function TokenGlyph(props) {
1805
- const [failed, setFailed] = useState([]);
1806
- const src = tokenLogoCandidates(props.symbol, props.logoUrl).find((u) => !failed.includes(u));
1807
- const mark = props.chainId ? chainLogoCandidates(props.chainId)[0] : void 0;
1808
- let badge = null;
1809
- if (props.chainId) badge = mark ? /* @__PURE__ */ jsx("img", { className: "sg-tok-badge", src: mark, alt: "" }) : /* @__PURE__ */ jsx("span", { className: "sg-tok-badge", children: chainBadge(props.chainId) });
1810
- return /* @__PURE__ */ jsxs("span", { className: "sg-tok", "data-size": props.size === "sm" ? "sm" : void 0, children: [
1811
- src ? /* @__PURE__ */ jsx("img", { className: "sg-tok-img", src, alt: "", loading: "lazy", onError: () => setFailed((f) => [...f, src]) }) : /* @__PURE__ */ jsx("span", { className: "sg-tok-fb", children: props.symbol.slice(0, 4) }),
1812
- badge
1813
- ] });
1814
- }
1815
- function ChevronGlyph() {
1816
- return /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" }) });
1817
- }
1818
- function TokenTile(props) {
1819
- const shown = props.token ? tokenTicker(props.token) : props.pick?.symbol ?? "";
1820
- const glyph = props.pick ? /* @__PURE__ */ jsxs(Fragment, { children: [
1821
- /* @__PURE__ */ jsx(TokenGlyph, { symbol: props.pick.symbol, logoUrl: props.token?.logoUrl, chainId: props.pick.chainId }),
1822
- /* @__PURE__ */ jsxs("span", { className: "sg-tile-text", children: [
1823
- /* @__PURE__ */ jsx("span", { className: "sg-tile-sym", children: shown }),
1824
- /* @__PURE__ */ jsx("span", { className: "sg-tile-chain", children: CHAIN_LABELS[props.pick.chainId] || `Chain ${props.pick.chainId}` })
1825
- ] })
1826
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
1827
- /* @__PURE__ */ jsx("span", { className: "sg-tok", children: /* @__PURE__ */ jsx("span", { className: "sg-tok-fb", children: "?" }) }),
1828
- /* @__PURE__ */ jsx("span", { className: "sg-tile-empty", children: "Select\u2026" })
1829
- ] });
1830
- const ariaLabel = `${props.label}: ${props.pick ? `${shown} on ${CHAIN_LABELS[props.pick.chainId] || props.pick.chainId}` : "select token"}`;
1831
- if (props.row) {
1832
- return /* @__PURE__ */ jsxs("button", { type: "button", ref: props.btnRef, className: "sg-tile sg-tile--row", disabled: props.disabled, onClick: props.onClick, "aria-label": ariaLabel, children: [
1833
- /* @__PURE__ */ jsx("span", { className: "sg-tile-label", children: props.label }),
1834
- /* @__PURE__ */ jsx("span", { className: "sg-tile-rowmain", children: glyph }),
1835
- /* @__PURE__ */ jsx("span", { className: "sg-tile-chev", children: /* @__PURE__ */ jsx(ChevronGlyph, {}) })
1836
- ] });
1837
- }
1838
- return /* @__PURE__ */ jsxs("button", { type: "button", ref: props.btnRef, className: "sg-tile", disabled: props.disabled, onClick: props.onClick, "aria-label": ariaLabel, children: [
1839
- /* @__PURE__ */ jsx("span", { className: "sg-tile-label", children: props.label }),
1840
- /* @__PURE__ */ jsx("span", { className: "sg-tile-main", children: glyph })
1841
- ] });
1842
- }
1843
- function FundingTile(props) {
1844
- const symbols = props.assets.map((asset) => asset.symbol);
1845
- const summary = props.loading ? "Checking wallet assets\u2026" : symbols.length ? symbols.join(", ") : "No payable balance";
1846
- const detail = props.loading ? "Finding what you can pay with" : symbols.length ? `${symbols.length} wallet asset${symbols.length === 1 ? "" : "s"} available` : "Open to review funding options";
1847
- const ariaLabel = `${props.label}: ${props.loading ? "checking wallet assets" : symbols.length ? symbols.join(", ") : "no payable balance"}`;
1848
- const glyphs = props.loading ? /* @__PURE__ */ jsx("span", { className: "sg-tok", children: /* @__PURE__ */ jsx("span", { className: "sg-tok-fb", children: "\u2026" }) }) : symbols.length ? /* @__PURE__ */ jsx("span", { className: "sg-funding-glyphs", "aria-hidden": "true", children: props.assets.slice(0, 3).map((asset) => /* @__PURE__ */ jsx(TokenGlyph, { symbol: asset.symbol, logoUrl: asset.logoUrl, size: "sm" }, asset.symbol)) }) : /* @__PURE__ */ jsx("span", { className: "sg-tok", children: /* @__PURE__ */ jsx("span", { className: "sg-tok-fb", children: "?" }) });
1849
- const main = /* @__PURE__ */ jsxs(Fragment, { children: [
1850
- glyphs,
1851
- /* @__PURE__ */ jsxs("span", { className: "sg-funding-copy", children: [
1852
- /* @__PURE__ */ jsx("span", { className: "sg-tile-sym", children: summary }),
1853
- /* @__PURE__ */ jsx("span", { className: "sg-tile-chain", children: detail })
1854
- ] })
1855
- ] });
1856
- if (props.row) {
1857
- return /* @__PURE__ */ jsxs("button", { type: "button", ref: props.btnRef, className: "sg-tile sg-tile--row", disabled: props.disabled, onClick: props.onClick, "aria-label": ariaLabel, children: [
1858
- /* @__PURE__ */ jsx("span", { className: "sg-tile-label", children: props.label }),
1859
- /* @__PURE__ */ jsx("span", { className: "sg-tile-rowmain", children: main }),
1860
- /* @__PURE__ */ jsx("span", { className: "sg-tile-chev", children: /* @__PURE__ */ jsx(ChevronGlyph, {}) })
1861
- ] });
1862
- }
1863
- return /* @__PURE__ */ jsxs("button", { type: "button", ref: props.btnRef, className: "sg-tile", disabled: props.disabled, onClick: props.onClick, "aria-label": ariaLabel, children: [
1864
- /* @__PURE__ */ jsx("span", { className: "sg-tile-label", children: props.label }),
1865
- /* @__PURE__ */ jsx("span", { className: "sg-tile-main", children: main })
1866
- ] });
1867
- }
1868
- function ChainChip(props) {
1869
- const [failed, setFailed] = useState([]);
1870
- const src = chainLogoCandidates(props.chain?.chainId, props.chain?.logoUrl).find((u) => !failed.includes(u));
1871
- const name = props.name ?? props.label;
1872
- return /* @__PURE__ */ jsx("button", { type: "button", className: "sg-chain-chip", "data-selected": props.selected, title: name, "aria-label": name, "aria-pressed": props.selected, onClick: props.onClick, children: src ? /* @__PURE__ */ jsx("img", { src, alt: "", loading: "lazy", onError: () => setFailed((f) => [...f, src]) }) : props.label });
1873
- }
1874
- function SearchGlyph() {
1875
- return /* @__PURE__ */ jsxs("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", "aria-hidden": "true", children: [
1876
- /* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "7" }),
1877
- /* @__PURE__ */ jsx("path", { d: "m20 20-3.5-3.5" })
1878
- ] });
1879
- }
1880
- function BackGlyph() {
1881
- return /* @__PURE__ */ jsxs("svg", { width: "17", height: "17", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
1882
- /* @__PURE__ */ jsx("path", { d: "M19 12H5" }),
1883
- /* @__PURE__ */ jsx("path", { d: "m12 19-7-7 7-7" })
1884
- ] });
1885
- }
1886
- function TokenSelect(props) {
1887
- const [chainFilter, setChainFilter] = useState(null);
1888
- const [query, setQuery] = useState("");
1889
- const rows = useMemo(() => {
1890
- const q = query.trim().toLowerCase();
1891
- const filtered = props.tokens.filter((t) => chainFilter == null ? true : Number(t.chainId) === chainFilter).filter((t) => {
1892
- if (!q) return true;
1893
- return String(t.symbol || "").toLowerCase().includes(q) || // The chain's own ticker too, with `₮` read as `T`: "usdt0" finds USD₮0.
1894
- foldTicker(tokenTicker(t)).includes(foldTicker(q)) || String(t.name || "").toLowerCase().includes(q) || String(t.address || "").toLowerCase().includes(q) || // Chain name too (2026-09-08): with ~37 destination chains most have no bundled mark and
1895
- // show a three-letter badge, so "Katana" or "Berachain" has to be findable by typing it.
1896
- String(CHAIN_LABELS[Number(t.chainId)] || "").toLowerCase().includes(q);
1897
- });
1898
- if (!props.balances) return filtered;
1899
- const balNum = (t) => {
1900
- const n = Number(props.balances?.[`${Number(t.chainId)}:${String(t.address || "").toLowerCase()}`]?.formatted);
1901
- return Number.isFinite(n) ? n : 0;
2237
+ function complianceBadge(compliance, hasQuote = true) {
2238
+ if (!hasQuote) return null;
2239
+ const cv = complianceView(compliance, hasQuote);
2240
+ if (cv.tone === "blocked") return { text: "Blocked", tone: "warn" };
2241
+ if (cv.tone === "warn") return { text: compliance?.decision === "REMEDIATE" ? "Remediate" : "Review", tone: "warn" };
2242
+ if (cv.tone === "ok") return { text: cv.screened ? "Passed" : "Allowed", tone: "ok" };
2243
+ return { text: "Not screened", tone: "muted" };
2244
+ }
2245
+ function complianceIconTone(compliance, hasQuote = true) {
2246
+ const cv = complianceView(compliance, hasQuote);
2247
+ return cv.tone === "blocked" || cv.tone === "warn" ? "warn" : cv.tone === "ok" ? "ok" : "muted";
2248
+ }
2249
+ function ComplianceSheet(props) {
2250
+ const [tab, setTab] = useState("checks");
2251
+ const sheetRef = useRef(null);
2252
+ const compliance = props.compliance ?? null;
2253
+ const cv = complianceView(compliance, props.hasQuote ?? true);
2254
+ const allChecks = complianceChecks(compliance, cv);
2255
+ const checks = props.direct ? allChecks.filter((c) => DIRECT_CHECK_IDS.includes(c.id)) : allChecks;
2256
+ const onCloseRef = useRef(props.onClose);
2257
+ onCloseRef.current = props.onClose;
2258
+ const onClose = () => onCloseRef.current();
2259
+ useEffect(() => {
2260
+ sheetRef.current?.focus();
2261
+ const onKey = (e) => {
2262
+ if (e.key === "Escape") {
2263
+ e.stopPropagation();
2264
+ onCloseRef.current();
2265
+ }
1902
2266
  };
1903
- return [...filtered].sort((a, b) => balNum(b) - balNum(a));
1904
- }, [props.tokens, chainFilter, query, props.balances]);
1905
- return /* @__PURE__ */ jsxs("div", { children: [
1906
- /* @__PURE__ */ jsxs("div", { className: "sg-sel-head", children: [
1907
- /* @__PURE__ */ jsx("button", { type: "button", className: "sg-back", onClick: props.onBack, "aria-label": "Back", children: /* @__PURE__ */ jsx(BackGlyph, {}) }),
1908
- /* @__PURE__ */ jsx("div", { className: "sg-sel-title", children: props.title })
1909
- ] }),
1910
- /* @__PURE__ */ jsxs("div", { className: "sg-chain-grid", "data-scroll": props.chains.length > 14 ? void 0 : "false", role: "group", "aria-label": "Filter by chain", children: [
1911
- /* @__PURE__ */ jsx(ChainChip, { label: "All", selected: chainFilter == null, onClick: () => setChainFilter(null) }),
1912
- props.chains.map((c) => /* @__PURE__ */ jsx(
1913
- ChainChip,
1914
- {
1915
- chain: c,
1916
- label: chainBadge(Number(c.chainId)),
1917
- name: CHAIN_LABELS[Number(c.chainId)] || c.displayName || c.name || `Chain ${c.chainId}`,
1918
- selected: chainFilter === Number(c.chainId),
1919
- onClick: () => setChainFilter(Number(c.chainId))
1920
- },
1921
- c.chainId
1922
- ))
2267
+ document.addEventListener("keydown", onKey, true);
2268
+ return () => document.removeEventListener("keydown", onKey, true);
2269
+ }, []);
2270
+ return /* @__PURE__ */ jsxs("div", { className: "sg-cp-sheet", role: "dialog", "aria-modal": "true", "aria-label": "Compliance details", ref: sheetRef, tabIndex: -1, children: [
2271
+ /* @__PURE__ */ jsxs("div", { className: "sg-cp-sheet-head", children: [
2272
+ /* @__PURE__ */ jsx("h4", { className: "sg-cp-sheet-title", children: "Compliance details" }),
2273
+ /* @__PURE__ */ jsx("button", { type: "button", className: "sg-cp-close", onClick: onClose, "aria-label": "Close compliance details", children: /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m6 6 12 12M18 6 6 18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) }) })
1923
2274
  ] }),
1924
- /* @__PURE__ */ jsxs("div", { className: "sg-search", children: [
1925
- /* @__PURE__ */ jsx(SearchGlyph, {}),
1926
- /* @__PURE__ */ jsx("input", { autoFocus: true, placeholder: "Search by token, network or address", value: query, onChange: (e) => setQuery(e.target.value), spellCheck: false, "aria-label": "Search by token, network or address" })
2275
+ /* @__PURE__ */ jsxs("div", { className: "sg-cp-tabs", role: "tablist", "aria-label": "Compliance details sections", children: [
2276
+ /* @__PURE__ */ jsx("button", { type: "button", role: "tab", "aria-selected": tab === "checks", "data-active": tab === "checks", className: "sg-cp-tab", onClick: () => setTab("checks"), children: "Quote checks" }),
2277
+ /* @__PURE__ */ jsx("button", { type: "button", role: "tab", "aria-selected": tab === "policy", "data-active": tab === "policy", className: "sg-cp-tab", onClick: () => setTab("policy"), children: "Screening policy" })
1927
2278
  ] }),
1928
- /* @__PURE__ */ jsx("div", { className: "sg-toklist", role: "group", "aria-label": props.title, children: rows.length ? rows.map((t) => {
1929
- const chainId = Number(t.chainId);
1930
- const key = `${chainId}:${String(t.address || "").toLowerCase()}`;
1931
- const bal = props.balances?.[key];
1932
- const st = props.optionStates?.[key];
1933
- const disabled = !!st?.disabled;
1934
- return /* @__PURE__ */ jsxs(
1935
- "button",
1936
- {
1937
- type: "button",
1938
- className: `sg-tokrow${disabled ? " sg-tokrow--off" : ""}`,
1939
- disabled,
1940
- "aria-disabled": disabled || void 0,
1941
- "data-disabled": disabled || void 0,
1942
- onClick: disabled ? void 0 : () => props.onPick({ chainId, symbol: t.symbol }),
1943
- children: [
1944
- /* @__PURE__ */ jsx(TokenGlyph, { symbol: t.symbol, logoUrl: t.logoUrl, chainId }),
1945
- /* @__PURE__ */ jsxs("span", { className: "sg-tokrow-main", children: [
1946
- /* @__PURE__ */ jsx("span", { className: "sg-tokrow-sym", children: tokenTicker(t) }),
1947
- /* @__PURE__ */ jsx("span", { className: "sg-tokrow-name", children: t.name || t.symbol })
1948
- ] }),
1949
- /* @__PURE__ */ jsxs("span", { className: "sg-tokrow-end", children: [
1950
- bal ? /* @__PURE__ */ jsx("span", { className: "sg-tokrow-bal sg-mono", children: bal.formatted }) : null,
1951
- st?.hint ? /* @__PURE__ */ jsx("span", { className: "sg-tokrow-hint", "data-tone": disabled ? void 0 : "note", children: st.hint }) : null,
1952
- /* @__PURE__ */ jsx("span", { className: "sg-tokrow-chain", children: CHAIN_LABELS[chainId] || `Chain ${chainId}` })
1953
- ] })
1954
- ]
1955
- },
1956
- `${chainId}:${t.address}`
1957
- );
1958
- }) : props.loading ? /* @__PURE__ */ jsx("div", { className: "sg-sel-empty", children: "Loading the token list\u2026" }) : /* @__PURE__ */ jsx("div", { className: "sg-sel-empty", children: "No tokens match \u2014 try another chain or search." }) })
2279
+ /* @__PURE__ */ jsx("div", { className: "sg-cp-sheet-body", children: tab === "checks" ? /* @__PURE__ */ jsx(QuoteChecks, { compliance, cv, checks, direct: !!props.direct, onViewPolicy: () => setTab("policy") }) : /* @__PURE__ */ jsx(ScreeningPolicy, { compliance }) })
1959
2280
  ] });
1960
2281
  }
2282
+ function CompliancePanel(props) {
2283
+ const [open, setOpen] = useState(false);
2284
+ const triggerRef = useRef(null);
2285
+ const compliance = props.compliance ?? null;
2286
+ const cv = complianceView(compliance, props.hasQuote ?? true);
2287
+ const tag = complianceTagOf(compliance);
2288
+ const close = () => {
2289
+ setOpen(false);
2290
+ requestAnimationFrame(() => triggerRef.current?.focus());
2291
+ };
2292
+ return /* @__PURE__ */ jsx("div", { className: "sg-cp", "data-tone": cv.tone, children: open ? /* @__PURE__ */ jsx(ComplianceSheet, { compliance, direct: props.direct, hasQuote: props.hasQuote, onClose: close }) : /* @__PURE__ */ jsxs(Fragment, { children: [
2293
+ /* @__PURE__ */ jsxs("button", { ref: triggerRef, type: "button", className: "sg-cp-row", "data-tone": cv.tone, onClick: () => setOpen(true), "aria-haspopup": "dialog", children: [
2294
+ /* @__PURE__ */ jsxs("span", { className: "sg-cp-row-main", children: [
2295
+ /* @__PURE__ */ jsx("span", { className: "sg-cp-row-glyph", children: /* @__PURE__ */ jsx(TriggerGlyph, { cv }) }),
2296
+ /* @__PURE__ */ jsx("span", { className: "sg-cp-row-label", children: cv.label })
2297
+ ] }),
2298
+ /* @__PURE__ */ jsx("span", { className: "sg-cp-row-chev", children: /* @__PURE__ */ jsx(Chevron, {}) })
2299
+ ] }),
2300
+ (cv.blocked || cv.needsAction) && tag ? /* @__PURE__ */ jsx("span", { className: "sg-cp-row-tag sg-mono", children: tag }) : null
2301
+ ] }) });
2302
+ }
1961
2303
  function useTxHistory(account) {
1962
2304
  const [entries, setEntries] = useState(() => readTxHistory(account));
1963
2305
  useEffect(() => {
@@ -3216,6 +3558,39 @@ function PaymentIsland(props) {
3216
3558
  ) }) })
3217
3559
  ] }) });
3218
3560
  }
3561
+ function PillLauncher(props) {
3562
+ injectStyles();
3563
+ const resolved = resolveTheme(props.theme);
3564
+ const vars = themeToVars(resolved);
3565
+ const openAs = props.openAs === "drawer" ? "drawer" : "modal";
3566
+ const [open, setOpen] = useState(!!props.defaultOpen);
3567
+ const buttonRef = useRef(null);
3568
+ const close = () => {
3569
+ setOpen(false);
3570
+ requestAnimationFrame(() => buttonRef.current?.focus());
3571
+ };
3572
+ useEffect(() => {
3573
+ if (!open) return;
3574
+ const onKey = (e) => {
3575
+ if (e.key === "Escape") close();
3576
+ };
3577
+ document.addEventListener("keydown", onKey);
3578
+ return () => document.removeEventListener("keydown", onKey);
3579
+ }, [open]);
3580
+ return /* @__PURE__ */ jsxs("div", { className: "sg-pill-root", "data-sg-mode": resolved.mode, style: vars, children: [
3581
+ /* @__PURE__ */ jsxs("button", { type: "button", ref: buttonRef, className: "sg-pillbtn", onClick: () => setOpen(true), "aria-haspopup": "dialog", "aria-expanded": open, children: [
3582
+ /* @__PURE__ */ jsxs("span", { className: "sg-pillbtn-lead", children: [
3583
+ /* @__PURE__ */ jsx(BrandMark, { size: 15, mono: true, className: "sg-pillbtn-mark" }),
3584
+ /* @__PURE__ */ jsx("span", { children: props.verb })
3585
+ ] }),
3586
+ props.amountLabel ? /* @__PURE__ */ jsx("b", { className: "sg-pillbtn-amt sg-mono", children: props.amountLabel }) : null
3587
+ ] }),
3588
+ open ? /* @__PURE__ */ jsxs("div", { className: "sg-overlay", "data-sg-overlay": openAs, children: [
3589
+ /* @__PURE__ */ jsx("button", { type: "button", className: "sg-overlay-scrim", tabIndex: -1, "aria-label": "Close", onClick: close }),
3590
+ /* @__PURE__ */ jsx("div", { className: "sg-dialog", role: "dialog", "aria-modal": "true", "aria-label": props.verb, children: props.children(close, openAs) })
3591
+ ] }) : null
3592
+ ] });
3593
+ }
3219
3594
  var STABLES2 = EXECUTABLE_STABLE_ASSETS;
3220
3595
  var DEFAULT_FUNDING_ASSETS = [...EXECUTABLE_STABLE_ASSETS];
3221
3596
  function CheckGlyph3() {
@@ -3235,8 +3610,19 @@ function CheckGlyph3() {
3235
3610
  }
3236
3611
  );
3237
3612
  }
3613
+ function atLeastCents(value) {
3614
+ if (!/^\d+(\.\d*)?$/.test(value)) return value;
3615
+ const [whole, frac = ""] = value.split(".");
3616
+ return frac.length >= 2 ? value : `${whole}.${frac.padEnd(2, "0")}`;
3617
+ }
3238
3618
  var addrEq2 = (a, b) => String(a || "").toLowerCase() === String(b || "").toLowerCase();
3239
3619
  function StableGeniePay(props) {
3620
+ const config = useMergedConfig(props);
3621
+ if (props.variant !== "pill") return /* @__PURE__ */ jsx(PayCard, { ...props });
3622
+ if (props.settlement === "bank") return /* @__PURE__ */ jsx(PaymentIsland, { kind: "pay", ...props });
3623
+ return /* @__PURE__ */ jsx(PillLauncher, { verb: "Pay with ZeroDelta", amountLabel: props.moneyDisplay || `${props.amount} ${props.toAsset}`, openAs: props.openAs, theme: config.theme, defaultOpen: props.defaultExpanded, children: (close) => /* @__PURE__ */ jsx(PayCard, { ...props, variant: void 0, onClose: close }) });
3624
+ }
3625
+ function PayCard(props) {
3240
3626
  const config = useMergedConfig(props);
3241
3627
  const engine = useEngine({
3242
3628
  apiBase: config.apiBase,
@@ -3265,11 +3651,11 @@ function StableGeniePay(props) {
3265
3651
  onSuccess: config.onSuccess,
3266
3652
  onError: config.onError
3267
3653
  });
3268
- const [method, setMethod] = useState("stablecoin");
3654
+ const method = "stablecoin";
3269
3655
  const fundingSet = useMemo(() => props.fundingAssets?.length ? new Set(props.fundingAssets.map((a) => a.toUpperCase())) : null, [props.fundingAssets]);
3270
3656
  const visibleRoutes = useMemo(() => {
3271
3657
  const base = fundingSet ? flow.routes.filter((r) => fundingSet.has(r.source.asset.toUpperCase()) || r.state === "DIRECT") : flow.routes;
3272
- return method === "stablecoin" ? base.filter((r) => STABLES2.has(symbolKey(r.source.asset))) : base;
3658
+ return base.filter((r) => STABLES2.has(symbolKey(r.source.asset))) ;
3273
3659
  }, [flow.routes, method, fundingSet]);
3274
3660
  const paymentPlan = flow.plan;
3275
3661
  const prefetchedBalances = paymentPlan && paymentPlan.fundingAccount === wallet.account?.toLowerCase() ? paymentPlan.fundingBalances : void 0;
@@ -3363,18 +3749,6 @@ function StableGeniePay(props) {
3363
3749
  const ids = new Set(fundingTokens.map((t) => Number(t.chainId)));
3364
3750
  return chains.filter((c) => ids.has(Number(c.chainId)));
3365
3751
  }, [chains, fundingTokens]);
3366
- const payableAssets = useMemo(() => {
3367
- const seen = /* @__PURE__ */ new Set();
3368
- const list = [];
3369
- for (const { route } of held) {
3370
- const symbol = symbolKey(route.source.asset);
3371
- if (seen.has(symbol)) continue;
3372
- seen.add(symbol);
3373
- const token = registryTokens.find((t) => Number(t.chainId) === route.source.chainId && addrEq2(t.address, route.source.tokenAddress));
3374
- list.push({ symbol: route.source.asset, logoUrl: token?.logoUrl });
3375
- }
3376
- return list;
3377
- }, [held, registryTokens]);
3378
3752
  const userPicked = useRef(false);
3379
3753
  const selectRoute = useCallback(
3380
3754
  (id) => {
@@ -3423,21 +3797,42 @@ function StableGeniePay(props) {
3423
3797
  const sel = flow.selected;
3424
3798
  const selectedVisible = Boolean(sel && visibleRoutes.some((r) => r.id === sel.id));
3425
3799
  const selBal = sel ? holdings.balances[balanceKey(sel.source.chainId, sel.source.tokenAddress)] : void 0;
3426
- const why = parked ? "" : sel && selectedVisible ? sel.state === "DIRECT" ? `Direct ${sel.source.ticker || sel.source.asset} transfer on ${CHAIN_LABELS[sel.source.chainId] || sel.source.chainName} \xB7 lowest cost` : (
3427
- // Deliberately does NOT restate the destination amount — that is merchant config, not a payer fact.
3428
- `Routed through ZeroDelta \xB7 the extra covers the network cost`
3429
- ) : "Pay with USDC, USDT, or USDE from your wallet.";
3430
- const comingSoon = method === "card" ? "Card payments are coming soon. Today StableGenie pays from your connected wallet." : "Bank transfers are coming soon.";
3431
- const payLabel = parked ? method === "card" ? "Card \u2014 coming soon" : "Bank \u2014 coming soon" : submitting ? "Paying\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : sel && selectedVisible ? `Pay ${sel.source.payAmount} ${sel.source.ticker || sel.source.asset}` : "Pay";
3800
+ const selToken = sel ? registryTokens.find((t) => Number(t.chainId) === sel.source.chainId && addrEq2(t.address, sel.source.tokenAddress)) ?? null : null;
3801
+ const [prices, setPrices] = useState({});
3802
+ const selSymbol = sel ? symbolKey(sel.source.asset) : "";
3803
+ useEffect(() => {
3804
+ if (props.variant === "pill" || !selSymbol || !engine.fetchPrices) return;
3805
+ let alive = true;
3806
+ engine.fetchPrices([selSymbol]).then((next) => {
3807
+ if (alive) setPrices((prev) => ({ ...prev, ...next }));
3808
+ });
3809
+ return () => {
3810
+ alive = false;
3811
+ };
3812
+ }, [engine, selSymbol, props.variant]);
3813
+ const [sheet, setSheet] = useState(false);
3814
+ const complianceBtnRef = useRef(null);
3815
+ useEffect(() => setSheet(false), [wallet.account, paramsKey]);
3816
+ const closeSheet = () => {
3817
+ setSheet(false);
3818
+ requestAnimationFrame(() => complianceBtnRef.current?.focus());
3819
+ };
3820
+ const payLabel = parked ? "Coming soon" : submitting ? "Paying\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : sel && selectedVisible ? `Pay ${atLeastCents(sel.source.payAmount)} ${sel.source.ticker || sel.source.asset}` : "Pay";
3432
3821
  const walletSlot = wallet.account ? /* @__PURE__ */ jsxs("div", { className: "sg-head-tools", children: [
3433
3822
  /* @__PURE__ */ jsx(HistoryButton, { btnRef: histBtnRef, disabled: submitting, onClick: () => setHist({}) }),
3434
- /* @__PURE__ */ jsxs("div", { className: "sg-brand", children: [
3435
- /* @__PURE__ */ jsx(BrandMark, { size: 14, className: "sg-brand-mark" }),
3436
- "ZeroDelta"
3823
+ /* @__PURE__ */ jsxs("span", { className: "sg-wallet", "data-connected": "true", children: [
3824
+ /* @__PURE__ */ jsx("span", { className: "sg-wallet-dot", "aria-hidden": "true" }),
3825
+ " ",
3826
+ shortAddress(wallet.account)
3437
3827
  ] })
3438
- ] }) : void 0;
3439
- if (props.variant === "pill") return /* @__PURE__ */ jsx(PaymentIsland, { kind: "pay", ...props });
3440
- return /* @__PURE__ */ jsx(WidgetShell, { title: config.title || "Complete payment", theme: config.theme, heightPx: props.heightPx, walletSlot, children: hist && wallet.account ? /* @__PURE__ */ jsx(TxHistoryPanel, { account: wallet.account, tokens: registryTokens, vaultIcons: catalogue?.vaultIcons, initialEntry: hist.entry ?? null, onBack: closeHistory }) : view === "select" && wallet.account ? /* @__PURE__ */ jsx(
3828
+ ] }) : /* @__PURE__ */ jsx("span", {});
3829
+ const nativeWei = sel ? routeNativeValue(sel) : 0n;
3830
+ const feeRows = sel ? [
3831
+ { label: "Network fee", value: nativeWei > 0n ? `~${formatNative(nativeWei)} ${nativeSymbol(sel.source.chainId)}` : "Gas only" },
3832
+ ...durationLabel(sel.quote.estimatedDuration) ? [{ label: "Estimated time", value: durationLabel(sel.quote.estimatedDuration) }] : []
3833
+ ] : [];
3834
+ const loadingPlan = flow.status === "loading" || holdings.loading && !sel;
3835
+ return /* @__PURE__ */ jsx(WidgetShell, { title: config.title || "Complete payment", theme: config.theme, heightPx: props.heightPx, walletSlot, onClose: props.onClose, children: hist && wallet.account ? /* @__PURE__ */ jsx(TxHistoryPanel, { account: wallet.account, tokens: registryTokens, vaultIcons: catalogue?.vaultIcons, initialEntry: hist.entry ?? null, onBack: closeHistory }) : view === "select" && wallet.account ? /* @__PURE__ */ jsx(
3441
3836
  TokenSelect,
3442
3837
  {
3443
3838
  title: "Pay with",
@@ -3448,9 +3843,12 @@ function StableGeniePay(props) {
3448
3843
  onBack: closeSelector,
3449
3844
  onPick: pickFunding
3450
3845
  }
3451
- ) : /* @__PURE__ */ jsx(Fragment, { children: !wallet.account ? /* @__PURE__ */ jsxs("div", { className: "sg-cta-wrap", children: [
3452
- /* @__PURE__ */ jsx(Button, { onClick: wallet.connect, busy: wallet.connecting, children: "Connect wallet" }),
3453
- wallet.error ? /* @__PURE__ */ jsx(StatusPanel, { tone: "error", children: wallet.error }) : null
3846
+ ) : sheet && sel ? /* @__PURE__ */ jsx(ComplianceSheet, { compliance: sel.quote.compliance, direct: sel.state === "DIRECT", onClose: closeSheet }) : /* @__PURE__ */ jsx(Fragment, { children: !wallet.account ? /* @__PURE__ */ jsxs(Fragment, { children: [
3847
+ /* @__PURE__ */ jsx("div", { className: "sg-pane sg-pane--note", children: "Connect your wallet to choose a token to pay with." }),
3848
+ /* @__PURE__ */ jsxs("div", { className: "sg-cta-wrap", children: [
3849
+ /* @__PURE__ */ jsx(Button, { onClick: wallet.connect, busy: wallet.connecting, children: "Connect wallet" }),
3850
+ wallet.error ? /* @__PURE__ */ jsx(StatusPanel, { tone: "error", children: wallet.error }) : null
3851
+ ] })
3454
3852
  ] }) : flow.status === "success" || flow.status === "pending" ? /* @__PURE__ */ jsxs(Fragment, { children: [
3455
3853
  /* @__PURE__ */ jsxs("div", { className: "sg-success", children: [
3456
3854
  /* @__PURE__ */ jsx("div", { className: "sg-success-check", "data-pending": flow.verdict?.status !== "confirmed", children: /* @__PURE__ */ jsx(CheckGlyph3, {}) }),
@@ -3467,45 +3865,43 @@ function StableGeniePay(props) {
3467
3865
  ] }),
3468
3866
  lastTxOwned ? /* @__PURE__ */ jsx("div", { className: "sg-cta-wrap", children: /* @__PURE__ */ jsx(Button, { variant: "ghost", onClick: () => setHist({ entry: flow.lastTxEntry }), children: "View transaction" }) }) : null
3469
3867
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
3470
- /* @__PURE__ */ jsx(MethodTabs, { value: method, onChange: setMethod }),
3471
- parked ? /* @__PURE__ */ jsx(StatusPanel, { children: comingSoon }) : /* @__PURE__ */ jsxs(Fragment, { children: [
3472
- /* @__PURE__ */ jsx("div", { style: { marginTop: 12 }, children: /* @__PURE__ */ jsx(
3473
- FundingTile,
3474
- {
3475
- label: "Pay with",
3476
- assets: payableAssets,
3477
- loading: flow.status === "loading" || holdings.loading,
3478
- disabled: submitting || !visibleRoutes.length,
3479
- btnRef: payTileRef,
3480
- onClick: () => setView("select")
3481
- }
3482
- ) }),
3483
- flow.status === "loading" ? /* @__PURE__ */ jsxs("div", { className: "sg-route", style: { marginTop: 12 }, children: [
3484
- /* @__PURE__ */ jsx("div", { className: "sg-skel" }),
3485
- /* @__PURE__ */ jsxs("div", { className: "sg-muted", style: { fontSize: 13 }, children: [
3486
- /* @__PURE__ */ jsx("span", { className: "sg-spinner" }),
3487
- " Finding the best way to pay\u2026"
3488
- ] })
3489
- ] }) : null,
3490
- flow.status === "error" && flow.error ? /* @__PURE__ */ jsx(StatusPanel, { tone: "error", children: flow.error }) : null,
3491
- sel && selectedVisible && flow.status !== "loading" ? /* @__PURE__ */ jsxs("div", { className: "sg-panel", style: { marginTop: 12 }, children: [
3492
- /* @__PURE__ */ jsx("div", { className: "sg-label", children: "You pay" }),
3493
- /* @__PURE__ */ jsxs("div", { className: "sg-anchor sg-mono", children: [
3494
- sel.source.payAmount,
3495
- " ",
3496
- sel.source.ticker || sel.source.asset
3868
+ /* @__PURE__ */ jsxs("div", { className: "sg-stack", children: [
3869
+ /* @__PURE__ */ jsxs("div", { className: "sg-pane", "data-kind": "pay", children: [
3870
+ /* @__PURE__ */ jsx("span", { className: "sg-pane-label", children: "You pay" }),
3871
+ /* @__PURE__ */ jsxs("div", { className: "sg-pane-mid", children: [
3872
+ /* @__PURE__ */ jsx("span", { className: "sg-amt-out", "aria-live": "polite", children: loadingPlan ? /* @__PURE__ */ jsx("span", { className: "sg-amt-empty", children: "\u2026" }) : sel && selectedVisible ? /* @__PURE__ */ jsx(AmountText, { value: atLeastCents(sel.source.payAmount) }) : /* @__PURE__ */ jsx("span", { className: "sg-amt-empty", children: "\u2014" }) }),
3873
+ /* @__PURE__ */ jsx(
3874
+ TokenButton,
3875
+ {
3876
+ label: "Pay with",
3877
+ symbol: sel && selectedVisible ? sel.source.asset : null,
3878
+ chainId: sel && selectedVisible ? sel.source.chainId : null,
3879
+ token: selToken,
3880
+ disabled: submitting || !visibleRoutes.length,
3881
+ btnRef: payTileRef,
3882
+ onClick: () => setView("select")
3883
+ }
3884
+ )
3497
3885
  ] }),
3498
- /* @__PURE__ */ jsxs("div", { className: "sg-anchor-sub", children: [
3499
- "on ",
3500
- CHAIN_LABELS[sel.source.chainId] || sel.source.chainName,
3501
- selBal ? ` \xB7 balance ${selBal.formatted}` : ""
3502
- ] })
3503
- ] }) : null,
3504
- why ? /* @__PURE__ */ jsx("div", { className: "sg-why", style: { marginTop: 10 }, children: why }) : null,
3886
+ /* @__PURE__ */ jsx(PaneFoot, { usd: sel && selectedVisible ? usdOf(sel.source.payAmount, prices[selSymbol]) : null, balance: selBal ? shortBalance(selBal.formatted) : null })
3887
+ ] }),
3888
+ flow.status === "error" && flow.error ? /* @__PURE__ */ jsx(StatusPanel, { tone: "error", children: flow.error }) : null,
3505
3889
  scannedEmpty ? /* @__PURE__ */ jsx("div", { className: "sg-note", children: "None of your balances can cover this yet \u2014 pick a different asset to fund with." }) : null,
3506
- flow.status === "ready" && !visibleRoutes.length ? /* @__PURE__ */ jsx(StatusPanel, { children: "No funding route matches the accepted assets for this payment." }) : null
3890
+ flow.status === "ready" && !visibleRoutes.length ? /* @__PURE__ */ jsx(StatusPanel, { children: "No funding route matches the accepted assets for this payment." }) : null,
3891
+ sel && flow.status !== "loading" ? /* @__PURE__ */ jsx(
3892
+ DetailButton,
3893
+ {
3894
+ btnRef: complianceBtnRef,
3895
+ size: "lg",
3896
+ icon: /* @__PURE__ */ jsx(ShieldTickGlyph, {}),
3897
+ iconTone: complianceIconTone(sel.quote.compliance),
3898
+ label: "Compliance",
3899
+ badge: complianceBadge(sel.quote.compliance),
3900
+ onClick: () => setSheet(true)
3901
+ }
3902
+ ) : null,
3903
+ sel && selectedVisible && flow.status !== "loading" ? /* @__PURE__ */ jsx(RateBox, { rowsOnly: true, rate: null, fromSymbol: "", toTicker: "", rows: feeRows }) : null
3507
3904
  ] }),
3508
- sel && flow.status !== "loading" ? /* @__PURE__ */ jsx(CompliancePanel, { compliance: sel.quote.compliance, direct: sel.state === "DIRECT" }) : null,
3509
3905
  submitting ? /* @__PURE__ */ jsx(StepList, { steps: flow.steps }) : null,
3510
3906
  /* @__PURE__ */ jsx("div", { className: "sg-cta-wrap", children: /* @__PURE__ */ jsx(
3511
3907
  Button,
@@ -3657,18 +4053,64 @@ function StableGenieSwap(props) {
3657
4053
  ] })
3658
4054
  ] });
3659
4055
  }
4056
+ function QuoteSheet(props) {
4057
+ const sheetRef = useRef(null);
4058
+ const onCloseRef = useRef(props.onClose);
4059
+ onCloseRef.current = props.onClose;
4060
+ useEffect(() => {
4061
+ sheetRef.current?.focus();
4062
+ const onKey = (e) => {
4063
+ if (e.key === "Escape") {
4064
+ e.stopPropagation();
4065
+ onCloseRef.current();
4066
+ }
4067
+ };
4068
+ document.addEventListener("keydown", onKey, true);
4069
+ return () => document.removeEventListener("keydown", onKey, true);
4070
+ }, []);
4071
+ return /* @__PURE__ */ jsxs("div", { className: "sg-cp-sheet", role: "dialog", "aria-modal": "true", "aria-label": "Quote details", ref: sheetRef, tabIndex: -1, children: [
4072
+ /* @__PURE__ */ jsxs("div", { className: "sg-cp-sheet-head", children: [
4073
+ /* @__PURE__ */ jsx("h4", { className: "sg-cp-sheet-title", children: "Quote details" }),
4074
+ /* @__PURE__ */ jsx("button", { type: "button", className: "sg-cp-close", onClick: () => onCloseRef.current(), "aria-label": "Close quote details", children: /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m6 6 12 12M18 6 6 18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) }) })
4075
+ ] }),
4076
+ /* @__PURE__ */ jsxs("div", { className: "sg-cp-sheet-body", children: [
4077
+ /* @__PURE__ */ jsx("section", { className: "sg-cp-card", children: /* @__PURE__ */ jsx("dl", { className: "sg-cp-facts sg-qs-facts", children: props.facts.map((f) => /* @__PURE__ */ jsxs("div", { className: "sg-cp-fact", children: [
4078
+ /* @__PURE__ */ jsx("dt", { children: f.label }),
4079
+ /* @__PURE__ */ jsx("dd", { className: "sg-mono", children: f.value })
4080
+ ] }, f.label)) }) }),
4081
+ props.legs?.length ? /* @__PURE__ */ jsxs("section", { className: "sg-cp-card sg-legs", children: [
4082
+ /* @__PURE__ */ jsx("div", { className: "sg-legs-head", children: /* @__PURE__ */ jsxs("b", { children: [
4083
+ props.legs.length,
4084
+ " orders \xB7 one signature"
4085
+ ] }) }),
4086
+ /* @__PURE__ */ jsx("ol", { className: "sg-leg-list", children: props.legs.map((leg) => /* @__PURE__ */ jsxs("li", { className: "sg-leg", children: [
4087
+ /* @__PURE__ */ jsx("span", { className: "sg-leg-n", children: leg.index }),
4088
+ /* @__PURE__ */ jsxs("span", { className: "sg-leg-body", children: [
4089
+ /* @__PURE__ */ jsxs("span", { className: "sg-leg-line", children: [
4090
+ leg.fromTicker || leg.fromAsset || "?",
4091
+ " on ",
4092
+ leg.fromChainName,
4093
+ " \u2192 ",
4094
+ leg.toTicker || leg.toAsset || "?",
4095
+ " on ",
4096
+ leg.toChainName
4097
+ ] }),
4098
+ /* @__PURE__ */ jsxs("span", { className: "sg-leg-sub", children: [
4099
+ "Filled on ",
4100
+ leg.executionChainName
4101
+ ] })
4102
+ ] })
4103
+ ] }, leg.index)) })
4104
+ ] }) : null
4105
+ ] })
4106
+ ] });
4107
+ }
3660
4108
  var FIAT = [
3661
4109
  { code: "USD", glyph: "$", label: "US Dollar" },
3662
4110
  { code: "EUR", glyph: "\u20AC", label: "Euro" },
3663
4111
  { code: "GBP", glyph: "\xA3", label: "British Pound" },
3664
4112
  { code: "CHF", glyph: "\u20A3", label: "Swiss Franc" }
3665
4113
  ];
3666
- function ArrowGlyph2() {
3667
- return /* @__PURE__ */ jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
3668
- /* @__PURE__ */ jsx("path", { d: "M5 12h14" }),
3669
- /* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
3670
- ] });
3671
- }
3672
4114
  function RouteGlyph() {
3673
4115
  return /* @__PURE__ */ jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", "aria-hidden": "true", children: [
3674
4116
  /* @__PURE__ */ jsx("circle", { cx: "6", cy: "19", r: "2.4" }),
@@ -3692,7 +4134,21 @@ function FiatTile(props) {
3692
4134
  ] })
3693
4135
  ] });
3694
4136
  }
4137
+ function FiatButton(props) {
4138
+ return /* @__PURE__ */ jsxs("label", { className: "sg-tokbtn sg-tokbtn--fiat", children: [
4139
+ /* @__PURE__ */ jsx("span", { className: "sg-fiat", "data-size": "xs", "aria-hidden": "true", children: props.fiat.glyph }),
4140
+ /* @__PURE__ */ jsx("select", { className: "sg-tokbtn-select", value: props.fiat.code, disabled: props.disabled, onChange: (e) => props.onCurrency(e.target.value), "aria-label": "Currency", children: FIAT.map((f) => /* @__PURE__ */ jsx("option", { value: f.code, children: f.code }, f.code)) })
4141
+ ] });
4142
+ }
3695
4143
  function StableGenieExchange(props) {
4144
+ const config = useMergedConfig(props);
4145
+ if (props.variant !== "pill") return /* @__PURE__ */ jsx(ExchangeCard, { ...props });
4146
+ const amountLabel = props.defaultAmount && props.defaultFromAsset ? `${props.defaultAmount} ${props.defaultFromAsset}` : void 0;
4147
+ const mode = props.mode ?? "exchange";
4148
+ const verb = mode === "onramp" ? "Buy with ZeroDelta" : mode === "offramp" ? "Cash out with ZeroDelta" : "Exchange with ZeroDelta";
4149
+ return /* @__PURE__ */ jsx(PillLauncher, { verb, amountLabel, openAs: props.openAs, theme: config.theme, children: (close, openAs) => /* @__PURE__ */ jsx(ExchangeCard, { ...props, variant: "compact", onClose: close, inDialog: openAs }) });
4150
+ }
4151
+ function ExchangeCard(props) {
3696
4152
  const config = useMergedConfig(props);
3697
4153
  const engine = useEngine({ apiBase: config.apiBase, apiKey: config.apiKey, trustedApiOrigin: config.trustedApiOrigin, rpcOverrides: config.rpcOverrides, onTransaction: config.onTransaction });
3698
4154
  const wallet = useWallet(config.provider);
@@ -3726,6 +4182,11 @@ function StableGenieExchange(props) {
3726
4182
  requestAnimationFrame(() => histBtnRef.current?.focus());
3727
4183
  };
3728
4184
  useEffect(() => setHist(null), [wallet.account]);
4185
+ const [sheet, setSheet] = useState(null);
4186
+ const fromTileRef = useRef(null);
4187
+ const toTileRef = useRef(null);
4188
+ const complianceBtnRef = useRef(null);
4189
+ const quoteBtnRef = useRef(null);
3729
4190
  const [from, setFrom] = useState(
3730
4191
  () => props.defaultFromChainId && props.defaultFromAsset ? { chainId: props.defaultFromChainId, symbol: symbolKey(props.defaultFromAsset) } : null
3731
4192
  );
@@ -3816,6 +4277,19 @@ function StableGenieExchange(props) {
3816
4277
  });
3817
4278
  }, [engine, wallet.account, tokens]);
3818
4279
  const fromBal = from && fromToken ? balances[balanceKey(from.chainId, fromToken.address)] : void 0;
4280
+ const [prices, setPrices] = useState({});
4281
+ useEffect(() => {
4282
+ if (isPill) return;
4283
+ const symbols = [from?.symbol, to?.symbol].filter((x) => !!x);
4284
+ if (!symbols.length || !engine.fetchPrices) return;
4285
+ let alive = true;
4286
+ engine.fetchPrices(symbols).then((next) => {
4287
+ if (alive) setPrices((prev) => ({ ...prev, ...next }));
4288
+ });
4289
+ return () => {
4290
+ alive = false;
4291
+ };
4292
+ }, [engine, from?.symbol, to?.symbol, isPill]);
3819
4293
  const paramsKey = `${mode}|${from?.chainId}|${from?.symbol}|${to?.chainId}|${toSymbol}|${normalizedAmount}|${props.recipient ?? ""}`;
3820
4294
  const flow = useFlow({
3821
4295
  engine,
@@ -3866,6 +4340,32 @@ function StableGenieExchange(props) {
3866
4340
  const title = config.title || (mode === "onramp" ? "Buy stablecoins" : mode === "offramp" ? "Cash out" : "Exchange");
3867
4341
  const soonLabel = mode === "onramp" ? "On-ramp coming soon" : "Off-ramp coming soon";
3868
4342
  const ctaLabel = rampMode ? soonLabel : submitting ? "Exchanging\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall || "Exchange";
4343
+ const selected = connected ? flow.selected : null;
4344
+ const hasQuote = Boolean(quotable && !quoting && !quoteError && receive);
4345
+ const nativeWei = (() => {
4346
+ try {
4347
+ if (selected) return routeNativeValue(selected);
4348
+ return preview.data ? BigInt(preview.data.nativeFeeRaw || "0") : 0n;
4349
+ } catch {
4350
+ return 0n;
4351
+ }
4352
+ })();
4353
+ const networkFee = nativeWei > 0n ? `~${formatNative(nativeWei)} ${nativeSymbol(from?.chainId ?? 1, chains)}` : "Gas only";
4354
+ const eta = durationLabel(meta?.duration);
4355
+ const rate = hasQuote && receive && Number(normalizedAmount) > 0 ? (Number(receive) / Number(normalizedAmount)).toFixed(6) : null;
4356
+ const rateRows = hasQuote ? [{ label: "Network fee", value: networkFee }, ...eta ? [{ label: "Estimated time", value: eta }] : []] : [];
4357
+ const via = selected ? selected.legs.length > 1 ? selected.legs[0]?.toTicker || selected.legs[0]?.toAsset || "" : null : preview.data?.via ?? null;
4358
+ const routeShape = via === null ? "Direct" : via ? `Via ${via}` : "Two steps";
4359
+ const compliance = selected?.quote.compliance;
4360
+ const complianceHasQuote = Boolean(selected && flow.status !== "loading");
4361
+ const fromUsd = usdOf(normalizedAmount, prices[from?.symbol ?? ""]);
4362
+ const toUsd = usdOf(receive, prices[to?.symbol ?? ""]);
4363
+ const flippable = !rampMode && !submitting && Boolean(to && sourceTokens.some((t) => Number(t.chainId) === to.chainId && symbolKey(t.symbol) === to.symbol));
4364
+ const flip = () => {
4365
+ if (!flippable) return;
4366
+ setFrom(to);
4367
+ setTo(from);
4368
+ };
3869
4369
  const walletSlot = /* @__PURE__ */ jsxs("div", { className: "sg-head-tools", children: [
3870
4370
  connected ? /* @__PURE__ */ jsx(HistoryButton, { btnRef: histBtnRef, disabled: submitting, onClick: () => setHist({}) }) : null,
3871
4371
  /* @__PURE__ */ jsx("button", { type: "button", className: "sg-wallet", "data-connected": connected || void 0, onClick: connected ? void 0 : wallet.connect, disabled: wallet.connecting, children: connected ? /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -3874,13 +4374,65 @@ function StableGenieExchange(props) {
3874
4374
  shortAddress(wallet.account)
3875
4375
  ] }) : wallet.connecting ? "Connecting\u2026" : "Connect wallet" })
3876
4376
  ] });
3877
- const fromTileRef = useRef(null);
3878
- const toTileRef = useRef(null);
3879
4377
  const closeSelector = (isFrom) => {
3880
4378
  setView("main");
3881
4379
  requestAnimationFrame(() => (isFrom ? fromTileRef : toTileRef).current?.focus());
3882
4380
  };
3883
- if (props.variant === "pill") return /* @__PURE__ */ jsx(PaymentIsland, { kind: "exchange", ...props });
4381
+ const closeSheet = () => {
4382
+ const was = sheet;
4383
+ setSheet(null);
4384
+ requestAnimationFrame(() => (was === "quote" ? quoteBtnRef : complianceBtnRef).current?.focus());
4385
+ };
4386
+ const pctChips = mode !== "onramp" ? (
4387
+ // a11y note: <fieldset> carries UA styling that would have to be reset on every host page;
4388
+ // role="group" gives the same semantics.
4389
+ /* @__PURE__ */ jsx("div", { className: "sg-pct-row", role: "group", "aria-label": "Amount shortcuts", children: [25, 50, 75, 100].map((p) => /* @__PURE__ */ jsx("button", { type: "button", className: "sg-pct", disabled: !fromBal || submitting, onClick: () => pct(p), children: p === 100 ? "MAX" : `${p}%` }, p)) })
4390
+ ) : null;
4391
+ const amountField = /* @__PURE__ */ jsx(AmountInput, { value: amount, onChange: setAmount, disabled: submitting, invalid: !!amountError, describedBy: amountNote ? amountNoteId : void 0 });
4392
+ const amountNoteEl = amountNote ? /* @__PURE__ */ jsx(AmountNote, { id: amountNoteId, tone: amountError ? "error" : "neutral", children: amountNote }) : null;
4393
+ const fiat = FIAT.find((f) => f.code === fiatCurrency) ?? FIAT[0];
4394
+ const complianceButton = (lg) => /* @__PURE__ */ jsx(
4395
+ DetailButton,
4396
+ {
4397
+ btnRef: complianceBtnRef,
4398
+ size: lg ? "lg" : void 0,
4399
+ icon: /* @__PURE__ */ jsx(ShieldTickGlyph, {}),
4400
+ iconTone: complianceIconTone(compliance, complianceHasQuote),
4401
+ label: "Compliance",
4402
+ badge: lg ? complianceBadge(compliance, complianceHasQuote) : null,
4403
+ onClick: () => setSheet("compliance")
4404
+ }
4405
+ );
4406
+ const quoteButton = (lg) => /* @__PURE__ */ jsx(
4407
+ DetailButton,
4408
+ {
4409
+ btnRef: quoteBtnRef,
4410
+ size: lg ? "lg" : void 0,
4411
+ icon: /* @__PURE__ */ jsx(QuoteGlyph, {}),
4412
+ label: "Quote",
4413
+ badge: lg && hasQuote ? { text: "Best return", tone: "info" } : null,
4414
+ onClick: () => setSheet("quote"),
4415
+ disabled: !hasQuote
4416
+ }
4417
+ );
4418
+ const rateBox = (open) => /* @__PURE__ */ jsx(RateBox, { rate, fromSymbol: from?.symbol ?? "", fromLogoUrl: fromToken?.logoUrl, toTicker, rows: rateRows, defaultOpen: open });
4419
+ const sheetBody = sheet === "compliance" ? /* @__PURE__ */ jsx(ComplianceSheet, { compliance, direct: selected?.state === "DIRECT", hasQuote: complianceHasQuote, onClose: closeSheet }) : sheet === "quote" && hasQuote ? /* @__PURE__ */ jsx(
4420
+ QuoteSheet,
4421
+ {
4422
+ onClose: closeSheet,
4423
+ facts: [
4424
+ { label: "Route", value: routeShape },
4425
+ { label: "Provider", value: meta?.bridge || "ZeroDelta" },
4426
+ { label: "You send", value: `${normalizedAmount} ${fromTicker}` },
4427
+ { label: "You receive", value: `${receive} ${toTicker}` },
4428
+ ...rate ? [{ label: "Rate", value: `1 ${fromTicker} = ${rate} ${toTicker}` }] : [],
4429
+ { label: "Fee", value: `${meta?.feeBps ?? 0} bps` },
4430
+ { label: "Network fee", value: networkFee },
4431
+ ...eta ? [{ label: "Estimated time", value: eta }] : []
4432
+ ],
4433
+ legs: selected && selected.legs.length > 1 ? selected.legs : void 0
4434
+ }
4435
+ ) : null;
3884
4436
  let body;
3885
4437
  if (hist && connected) {
3886
4438
  body = /* @__PURE__ */ jsx(TxHistoryPanel, { account: wallet.account, tokens, vaultIcons: catalogue?.vaultIcons, initialEntry: hist.entry ?? null, onBack: closeHistory });
@@ -3902,6 +4454,8 @@ function StableGenieExchange(props) {
3902
4454
  }
3903
4455
  }
3904
4456
  );
4457
+ } else if (sheetBody && !wide) {
4458
+ body = sheetBody;
3905
4459
  } else if (flow.status === "success" || flow.status === "pending") {
3906
4460
  body = /* @__PURE__ */ jsxs(Fragment, { children: [
3907
4461
  /* @__PURE__ */ jsxs("div", { className: "sg-success", children: [
@@ -3922,68 +4476,84 @@ function StableGenieExchange(props) {
3922
4476
  ] })
3923
4477
  ] });
3924
4478
  } else {
3925
- body = /* @__PURE__ */ jsxs(Fragment, { children: [
3926
- /* @__PURE__ */ jsxs("div", { className: "sg-ft", children: [
3927
- mode === "onramp" ? /* @__PURE__ */ jsx(FiatTile, { label: "From", currency: fiatCurrency, onCurrency: setFiatCurrency }) : /* @__PURE__ */ jsx(TokenTile, { label: "From", pick: from, token: fromToken, disabled: submitting, btnRef: fromTileRef, onClick: () => setView("from") }),
3928
- /* @__PURE__ */ jsx("span", { className: "sg-ft-arrow", "aria-hidden": "true", children: /* @__PURE__ */ jsx(ArrowGlyph2, {}) }),
3929
- mode === "offramp" ? /* @__PURE__ */ jsx(FiatTile, { label: "To", currency: fiatCurrency, onCurrency: setFiatCurrency }) : /* @__PURE__ */ jsx(TokenTile, { label: "To", pick: to, token: toToken, disabled: submitting, btnRef: toTileRef, onClick: () => setView("to") })
4479
+ const payToken = mode === "onramp" ? /* @__PURE__ */ jsx(FiatButton, { fiat, onCurrency: setFiatCurrency, disabled: submitting }) : /* @__PURE__ */ jsx(TokenButton, { label: "You pay", symbol: from?.symbol ?? null, chainId: from?.chainId ?? null, token: fromToken, disabled: submitting, btnRef: fromTileRef, onClick: () => setView("from") });
4480
+ const receiveToken = mode === "offramp" ? /* @__PURE__ */ jsx(FiatButton, { fiat, onCurrency: setFiatCurrency, disabled: submitting }) : /* @__PURE__ */ jsx(TokenButton, { label: "You receive", symbol: to?.symbol ?? null, chainId: to?.chainId ?? null, token: toToken, disabled: submitting, btnRef: toTileRef, onClick: () => setView("to") });
4481
+ const cta = /* @__PURE__ */ jsxs("div", { className: "sg-cta-wrap", children: [
4482
+ !connected && !rampMode ? /* @__PURE__ */ jsx(Button, { onClick: wallet.connect, busy: wallet.connecting, children: "Connect wallet" }) : /* @__PURE__ */ jsx(Button, { onClick: rampMode ? void 0 : flow.submit, busy: submitting, disabled: rampMode || !quotable || !cryptoReady || connected && (!flow.selected || flow.insufficient || !!flow.nativeShortfall || flow.status === "loading"), children: ctaLabel }),
4483
+ wallet.error ? /* @__PURE__ */ jsx(StatusPanel, { tone: "error", children: wallet.error }) : null
4484
+ ] });
4485
+ const notices = /* @__PURE__ */ jsxs(Fragment, { children: [
4486
+ rampMode ? /* @__PURE__ */ jsx(StatusPanel, { children: mode === "onramp" ? "Buy supported stablecoins with card or bank transfer \u2014 coming soon. Today the widget settles crypto-to-crypto." : "Cash out supported stablecoins to your bank \u2014 coming soon. Today the widget settles crypto-to-crypto." }) : null,
4487
+ !rampMode && quoteError && !gatewayAmountError && !wide ? /* @__PURE__ */ jsx(StatusPanel, { tone: "error", children: quoteError }) : null
4488
+ ] });
4489
+ body = wide ? /* @__PURE__ */ jsxs(Fragment, { children: [
4490
+ /* @__PURE__ */ jsxs("div", { className: "sg-stack", children: [
4491
+ /* @__PURE__ */ jsxs("div", { className: "sg-ft", children: [
4492
+ mode === "onramp" ? /* @__PURE__ */ jsx(FiatTile, { label: "From", currency: fiatCurrency, onCurrency: setFiatCurrency }) : /* @__PURE__ */ jsx(TokenTile, { label: "From", pick: from, token: fromToken, disabled: submitting, btnRef: fromTileRef, onClick: () => setView("from") }),
4493
+ /* @__PURE__ */ jsx(FlipButton, { small: true, onClick: flip, disabled: !flippable }),
4494
+ mode === "offramp" ? /* @__PURE__ */ jsx(FiatTile, { label: "To", currency: fiatCurrency, onCurrency: setFiatCurrency }) : /* @__PURE__ */ jsx(TokenTile, { label: "To", pick: to, token: toToken, disabled: submitting, btnRef: toTileRef, onClick: () => setView("to") })
4495
+ ] }),
4496
+ /* @__PURE__ */ jsxs("div", { className: "sg-pane", "data-kind": "send", children: [
4497
+ /* @__PURE__ */ jsxs("div", { className: "sg-pane-top", children: [
4498
+ /* @__PURE__ */ jsx("span", { className: "sg-pane-label", children: mode === "onramp" ? `You pay (${fiatCurrency})` : "Send" }),
4499
+ pctChips
4500
+ ] }),
4501
+ amountField,
4502
+ amountNoteEl,
4503
+ /* @__PURE__ */ jsx(PaneFoot, { usd: mode === "onramp" ? null : fromUsd, balance: mode !== "onramp" && fromBal ? shortBalance(fromBal.formatted) : null })
4504
+ ] })
3930
4505
  ] }),
3931
- /* @__PURE__ */ jsxs("div", { className: "sg-panel", style: { marginTop: 12 }, children: [
3932
- /* @__PURE__ */ jsx("div", { className: "sg-label", children: mode === "onramp" ? `You pay (${fiatCurrency})` : "Send" }),
3933
- /* @__PURE__ */ jsxs("div", { className: "sg-send-row", children: [
3934
- mode === "onramp" ? /* @__PURE__ */ jsx("span", { className: "sg-fiat", children: FIAT.find((f) => f.code === fiatCurrency)?.glyph ?? "$" }) : from ? /* @__PURE__ */ jsx(TokenGlyph, { symbol: from.symbol, logoUrl: fromToken?.logoUrl, chainId: from.chainId, size: "sm" }) : null,
3935
- /* @__PURE__ */ jsx(
3936
- AmountInput,
3937
- {
3938
- value: amount,
3939
- onChange: setAmount,
3940
- disabled: submitting,
3941
- invalid: !!amountError,
3942
- describedBy: amountNote ? amountNoteId : void 0
3943
- }
3944
- )
4506
+ notices,
4507
+ submitting ? /* @__PURE__ */ jsx(StepList, { steps: flow.steps }) : null,
4508
+ cta
4509
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
4510
+ /* @__PURE__ */ jsxs("div", { className: "sg-stack", children: [
4511
+ /* @__PURE__ */ jsxs("div", { className: "sg-pane", "data-kind": "pay", children: [
4512
+ /* @__PURE__ */ jsxs("div", { className: "sg-pane-top", children: [
4513
+ /* @__PURE__ */ jsx("span", { className: "sg-pane-label", children: mode === "onramp" ? `You pay (${fiatCurrency})` : "You pay" }),
4514
+ pctChips
4515
+ ] }),
4516
+ /* @__PURE__ */ jsxs("div", { className: "sg-pane-mid", children: [
4517
+ amountField,
4518
+ payToken
4519
+ ] }),
4520
+ amountNoteEl,
4521
+ /* @__PURE__ */ jsx(PaneFoot, { usd: mode === "onramp" ? null : fromUsd, balance: mode !== "onramp" && fromBal ? shortBalance(fromBal.formatted) : null })
3945
4522
  ] }),
3946
- amountNote ? /* @__PURE__ */ jsx(AmountNote, { id: amountNoteId, tone: amountError ? "error" : "neutral", children: amountNote }) : null,
3947
- mode !== "onramp" && fromBal ? /* @__PURE__ */ jsxs("div", { className: "sg-send-bal sg-mono", children: [
3948
- "Balance: ",
3949
- fromBal.formatted,
3950
- " ",
3951
- fromTicker
3952
- ] }) : null,
3953
- mode !== "onramp" ? (
3954
- // a11y note: <fieldset> carries UA styling that would
3955
- // have to be reset on every host page; role="group" gives the same semantics.
3956
- /* @__PURE__ */ jsx("div", { className: "sg-pct-row", role: "group", "aria-label": "Amount shortcuts", children: [25, 50, 75, 100].map((p) => /* @__PURE__ */ jsx("button", { type: "button", className: "sg-pct", disabled: !fromBal || submitting, onClick: () => pct(p), children: p === 100 ? "MAX" : `${p}%` }, p)) })
3957
- ) : null
4523
+ /* @__PURE__ */ jsx(FlipButton, { onClick: flip, disabled: !flippable }),
4524
+ /* @__PURE__ */ jsxs("div", { className: "sg-pane", "data-kind": "receive", children: [
4525
+ /* @__PURE__ */ jsx("span", { className: "sg-pane-label", children: product === "rwa" ? "You receive (estimated)" : "You receive" }),
4526
+ /* @__PURE__ */ jsxs("div", { className: "sg-pane-mid", children: [
4527
+ /* @__PURE__ */ jsx("span", { className: "sg-amt-out", "aria-live": "polite", children: rampMode ? /* @__PURE__ */ jsx("span", { className: "sg-amt-empty", children: "\u2014" }) : quoting ? /* @__PURE__ */ jsx("span", { className: "sg-amt-empty", children: "\u2026" }) : receive && quotable && !quoteError ? /* @__PURE__ */ jsx(AmountText, { value: receive }) : /* @__PURE__ */ jsx("span", { className: "sg-amt-empty", children: "0" }) }),
4528
+ receiveToken
4529
+ ] }),
4530
+ /* @__PURE__ */ jsx(PaneFoot, { usd: hasQuote ? toUsd : null })
4531
+ ] }),
4532
+ rampMode ? null : props.inDialog === "drawer" ? /* @__PURE__ */ jsxs(Fragment, { children: [
4533
+ complianceButton(true),
4534
+ quoteButton(true),
4535
+ rateBox(true)
4536
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
4537
+ /* @__PURE__ */ jsxs("div", { className: "sg-dbtn-row", children: [
4538
+ complianceButton(),
4539
+ quoteButton()
4540
+ ] }),
4541
+ rateBox()
4542
+ ] })
3958
4543
  ] }),
3959
- rampMode ? /* @__PURE__ */ jsx(StatusPanel, { children: mode === "onramp" ? "Buy supported stablecoins with card or bank transfer \u2014 coming soon. Today the widget settles crypto-to-crypto." : "Cash out supported stablecoins to your bank \u2014 coming soon. Today the widget settles crypto-to-crypto." }) : null,
3960
- !rampMode && quoteError && !gatewayAmountError && !wide ? /* @__PURE__ */ jsx(StatusPanel, { tone: "error", children: quoteError }) : null,
3961
- !rampMode && !wide && quotable && !quoteError ? /* @__PURE__ */ jsxs("div", { className: "sg-panel", style: { marginTop: 12 }, children: [
3962
- /* @__PURE__ */ jsx("div", { className: "sg-label", children: "You receive (estimated)" }),
3963
- /* @__PURE__ */ jsx("div", { className: "sg-anchor sg-mono", children: quoting ? "\u2026" : receive ? `${receive} ${toTicker}` : "\u2014" }),
3964
- meta && !quoting ? /* @__PURE__ */ jsxs("div", { className: "sg-recv-sub", children: [
3965
- "via ",
3966
- meta.bridge,
3967
- " \xB7 fee ",
3968
- meta.feeBps,
3969
- " bps",
3970
- meta.duration ? ` \xB7 ~${meta.duration}s` : ""
3971
- ] }) : null
3972
- ] }) : null,
3973
- connected && flow.selected && flow.status !== "loading" ? /* @__PURE__ */ jsx(CompliancePanel, { compliance: flow.selected.quote.compliance, direct: flow.selected.state === "DIRECT" }) : null,
4544
+ notices,
3974
4545
  submitting ? /* @__PURE__ */ jsx(StepList, { steps: flow.steps }) : null,
3975
- /* @__PURE__ */ jsxs("div", { className: "sg-cta-wrap", children: [
3976
- !connected && !rampMode ? /* @__PURE__ */ jsx(Button, { onClick: wallet.connect, busy: wallet.connecting, children: "Connect wallet" }) : /* @__PURE__ */ jsx(Button, { onClick: rampMode ? void 0 : flow.submit, busy: submitting, disabled: rampMode || !quotable || !cryptoReady || connected && (!flow.selected || flow.insufficient || !!flow.nativeShortfall || flow.status === "loading"), children: ctaLabel }),
3977
- wallet.error ? /* @__PURE__ */ jsx(StatusPanel, { tone: "error", children: wallet.error }) : null
3978
- ] })
4546
+ cta
3979
4547
  ] });
3980
4548
  }
3981
- const card = /* @__PURE__ */ jsx(WidgetShell, { title, theme: config.theme, heightPx: props.heightPx, walletSlot, children: body });
4549
+ const card = /* @__PURE__ */ jsx(WidgetShell, { title, theme: config.theme, heightPx: props.heightPx, walletSlot, onClose: props.onClose, wide, children: body });
3982
4550
  if (!wide) return card;
3983
4551
  const resolved = resolveTheme(config.theme);
3984
4552
  const vars = themeToVars(resolved);
3985
4553
  let side;
3986
- if (rampMode) {
4554
+ if (sheetBody) {
4555
+ side = sheetBody;
4556
+ } else if (rampMode) {
3987
4557
  side = /* @__PURE__ */ jsxs("div", { className: "sg-noroutes", children: [
3988
4558
  /* @__PURE__ */ jsx("span", { className: "sg-noroutes-icon", children: /* @__PURE__ */ jsx(RouteGlyph, {}) }),
3989
4559
  /* @__PURE__ */ jsx("div", { className: "sg-noroutes-title", children: soonLabel }),
@@ -4010,45 +4580,22 @@ function StableGenieExchange(props) {
4010
4580
  /* @__PURE__ */ jsx("div", { className: "sg-noroutes-title", children: "No routes available" }),
4011
4581
  /* @__PURE__ */ jsx("div", { className: "sg-noroutes-sub", children: "Reasons for that could be: low liquidity, amount selected is too low, gas costs are too high or there are no routes for the selected combination." })
4012
4582
  ] });
4013
- } else if (receive && quotable) {
4014
- side = /* @__PURE__ */ jsxs("div", { children: [
4015
- /* @__PURE__ */ jsxs("div", { className: "sg-recv-amt sg-mono", children: [
4016
- receive,
4017
- " ",
4018
- toTicker
4019
- ] }),
4020
- /* @__PURE__ */ jsxs("div", { className: "sg-recv-sub", children: [
4021
- "on ",
4022
- CHAIN_LABELS[to?.chainId ?? 0] || `Chain ${to?.chainId}`
4023
- ] }),
4024
- /* @__PURE__ */ jsxs("div", { className: "sg-meta", children: [
4025
- /* @__PURE__ */ jsxs("div", { className: "sg-meta-row", children: [
4026
- /* @__PURE__ */ jsx("span", { className: "sg-meta-label", children: "You send" }),
4027
- /* @__PURE__ */ jsxs("b", { className: "sg-mono", children: [
4028
- normalizedAmount,
4029
- " ",
4030
- fromTicker
4031
- ] })
4032
- ] }),
4033
- /* @__PURE__ */ jsxs("div", { className: "sg-meta-row", children: [
4034
- /* @__PURE__ */ jsx("span", { className: "sg-meta-label", children: "Route" }),
4035
- /* @__PURE__ */ jsx("b", { children: meta?.bridge || "ZeroDelta" })
4036
- ] }),
4037
- /* @__PURE__ */ jsxs("div", { className: "sg-meta-row", children: [
4038
- /* @__PURE__ */ jsx("span", { className: "sg-meta-label", children: "Fee" }),
4039
- /* @__PURE__ */ jsxs("b", { children: [
4040
- meta?.feeBps ?? 0,
4041
- " bps"
4042
- ] })
4583
+ } else if (hasQuote && receive) {
4584
+ side = /* @__PURE__ */ jsxs("div", { className: "sg-side-body", children: [
4585
+ /* @__PURE__ */ jsxs("div", { className: "sg-recv", children: [
4586
+ /* @__PURE__ */ jsxs("div", { className: "sg-recv-line", children: [
4587
+ /* @__PURE__ */ jsx(TokenGlyph, { symbol: to?.symbol ?? "", logoUrl: toToken?.logoUrl, chainId: to?.chainId, size: "xs" }),
4588
+ /* @__PURE__ */ jsx("span", { className: "sg-recv-amt", children: /* @__PURE__ */ jsx(AmountText, { value: receive, suffix: toTicker }) })
4043
4589
  ] }),
4044
- meta?.duration ? /* @__PURE__ */ jsxs("div", { className: "sg-meta-row", children: [
4045
- /* @__PURE__ */ jsx("span", { className: "sg-meta-label", children: "Est. time" }),
4046
- /* @__PURE__ */ jsxs("b", { children: [
4047
- "~",
4048
- meta.duration,
4049
- "s"
4050
- ] })
4051
- ] }) : null
4590
+ /* @__PURE__ */ jsxs("div", { className: "sg-recv-sub", children: [
4591
+ "On ",
4592
+ CHAIN_LABELS[to?.chainId ?? 0] || `Chain ${to?.chainId}`
4593
+ ] })
4594
+ ] }),
4595
+ /* @__PURE__ */ jsxs("div", { className: "sg-stack", children: [
4596
+ rateBox(true),
4597
+ complianceButton(true),
4598
+ quoteButton(true)
4052
4599
  ] })
4053
4600
  ] });
4054
4601
  } else {
@@ -4060,8 +4607,8 @@ function StableGenieExchange(props) {
4060
4607
  }
4061
4608
  return /* @__PURE__ */ jsx("div", { className: "sg-duo-wrap", "data-sg-mode": resolved.mode, style: vars, children: /* @__PURE__ */ jsxs("div", { className: "sg-duo", children: [
4062
4609
  card,
4063
- /* @__PURE__ */ jsxs("div", { className: "sg-widget", "data-sg-mode": resolved.mode, style: props.heightPx ? { height: props.heightPx } : void 0, children: [
4064
- /* @__PURE__ */ jsx("div", { className: "sg-side-title", children: "Receive" }),
4610
+ /* @__PURE__ */ jsxs("div", { className: "sg-widget", "data-sg-side": "", "data-sg-mode": resolved.mode, style: props.heightPx ? { height: props.heightPx } : void 0, children: [
4611
+ sheetBody ? null : /* @__PURE__ */ jsx("div", { className: "sg-side-title", children: product === "rwa" ? "You receive (estimated)" : "You receive" }),
4065
4612
  side
4066
4613
  ] })
4067
4614
  ] }) });