@lynn123411/dsh-a6api 1.4.1 → 1.5.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.
package/lib/client.js CHANGED
@@ -1491,6 +1491,33 @@ var PricePill = ({ pf, hasToken, compact }) => {
1491
1491
  );
1492
1492
  };
1493
1493
 
1494
+ // src/client/components/MarketPill.tsx
1495
+ var import_jsx_runtime5 = require("react/jsx-runtime");
1496
+ var MARKET_URL = "https://a6api.com/models";
1497
+ var MarketPill = () => {
1498
+ const onClick = () => {
1499
+ window.open(MARKET_URL, "_blank", "noopener");
1500
+ };
1501
+ const onKeyDown = (e) => {
1502
+ if (e.key === "Enter" || e.key === " ") {
1503
+ e.preventDefault();
1504
+ onClick();
1505
+ }
1506
+ };
1507
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1508
+ "div",
1509
+ {
1510
+ className: "dsh-a6-market-pill",
1511
+ onClick,
1512
+ onKeyDown,
1513
+ tabIndex: 0,
1514
+ role: "button",
1515
+ title: "\u524D\u5F80 A6api \u6A21\u578B\u5E02\u573A",
1516
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "dsh-a6-market-pill-label", children: "\u6A21\u578B\u5E02\u573A" })
1517
+ }
1518
+ );
1519
+ };
1520
+
1494
1521
  // src/client/components/ModelCatalogPanel.tsx
1495
1522
  var import_react4 = require("react");
1496
1523
 
@@ -1528,7 +1555,7 @@ function validateReasoningEfforts(value) {
1528
1555
  }
1529
1556
 
1530
1557
  // src/client/components/ModelCatalogPanel.tsx
1531
- var import_jsx_runtime5 = require("react/jsx-runtime");
1558
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1532
1559
  var ModelCatalogPanel = () => {
1533
1560
  const [catalog, setCatalog] = (0, import_react4.useState)(store.getState().catalog);
1534
1561
  const [models, setModels] = (0, import_react4.useState)(store.getState().models);
@@ -1700,10 +1727,10 @@ var ModelCatalogPanel = () => {
1700
1727
  }, [catalog, search, availFilter, paramFilter, availableSet]);
1701
1728
  const filledCount = catalog.filter((e) => e.contextWindow != null || e.maxTokens != null || e.input && e.input.length > 0).length;
1702
1729
  const availCount = catalog.filter((e) => availableSet.has(e.id.toLowerCase())).length;
1703
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-catalog-page", children: [
1704
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-section-header", children: [
1705
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-catalog-toolbar", children: [
1706
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1730
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-catalog-page", children: [
1731
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-section-header", children: [
1732
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-catalog-toolbar", children: [
1733
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1707
1734
  "button",
1708
1735
  {
1709
1736
  type: "button",
@@ -1715,7 +1742,7 @@ var ModelCatalogPanel = () => {
1715
1742
  children: busy === "fetch" ? "\u83B7\u53D6\u4E2D..." : "\u4ECE A6API \u83B7\u53D6\u5E02\u573A\u6A21\u578B"
1716
1743
  }
1717
1744
  ),
1718
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1745
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1719
1746
  "button",
1720
1747
  {
1721
1748
  type: "button",
@@ -1727,7 +1754,7 @@ var ModelCatalogPanel = () => {
1727
1754
  children: busy === "query" ? "\u67E5\u8BE2\u4E2D..." : "\u4ECE OpenRouter \u4E00\u952E\u67E5\u8BE2"
1728
1755
  }
1729
1756
  ),
1730
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1757
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1731
1758
  "button",
1732
1759
  {
1733
1760
  type: "button",
@@ -1739,7 +1766,7 @@ var ModelCatalogPanel = () => {
1739
1766
  children: confirmClear ? "\u786E\u8BA4\u6E05\u7A7A\uFF1F" : "\u6E05\u7A7A\u76EE\u5F55"
1740
1767
  }
1741
1768
  ),
1742
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-catalog-count", children: [
1769
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-catalog-count", children: [
1743
1770
  "\u5171 ",
1744
1771
  catalog.length,
1745
1772
  " \u4E2A \xB7 \u53EF\u7528 ",
@@ -1749,9 +1776,9 @@ var ModelCatalogPanel = () => {
1749
1776
  " \u4E2A"
1750
1777
  ] })
1751
1778
  ] }),
1752
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-catalog-filters", children: [
1753
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-filter-group", children: [
1754
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1779
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-catalog-filters", children: [
1780
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-filter-group", children: [
1781
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1755
1782
  "button",
1756
1783
  {
1757
1784
  type: "button",
@@ -1764,7 +1791,7 @@ var ModelCatalogPanel = () => {
1764
1791
  ]
1765
1792
  }
1766
1793
  ),
1767
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1794
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1768
1795
  "button",
1769
1796
  {
1770
1797
  type: "button",
@@ -1777,7 +1804,7 @@ var ModelCatalogPanel = () => {
1777
1804
  ]
1778
1805
  }
1779
1806
  ),
1780
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1807
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1781
1808
  "button",
1782
1809
  {
1783
1810
  type: "button",
@@ -1791,8 +1818,8 @@ var ModelCatalogPanel = () => {
1791
1818
  }
1792
1819
  )
1793
1820
  ] }),
1794
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-filter-group", children: [
1795
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1821
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-filter-group", children: [
1822
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1796
1823
  "button",
1797
1824
  {
1798
1825
  type: "button",
@@ -1801,7 +1828,7 @@ var ModelCatalogPanel = () => {
1801
1828
  children: "\u5168\u90E8\u53C2\u6570"
1802
1829
  }
1803
1830
  ),
1804
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1831
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1805
1832
  "button",
1806
1833
  {
1807
1834
  type: "button",
@@ -1814,7 +1841,7 @@ var ModelCatalogPanel = () => {
1814
1841
  ]
1815
1842
  }
1816
1843
  ),
1817
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1844
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1818
1845
  "button",
1819
1846
  {
1820
1847
  type: "button",
@@ -1828,8 +1855,8 @@ var ModelCatalogPanel = () => {
1828
1855
  }
1829
1856
  )
1830
1857
  ] }),
1831
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-search-wrapper", children: [
1832
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1858
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-search-wrapper", children: [
1859
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1833
1860
  "input",
1834
1861
  {
1835
1862
  type: "text",
@@ -1839,7 +1866,7 @@ var ModelCatalogPanel = () => {
1839
1866
  onChange: (e) => setSearch(e.target.value)
1840
1867
  }
1841
1868
  ),
1842
- search && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1869
+ search && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1843
1870
  "button",
1844
1871
  {
1845
1872
  type: "button",
@@ -1852,23 +1879,23 @@ var ModelCatalogPanel = () => {
1852
1879
  ] })
1853
1880
  ] })
1854
1881
  ] }),
1855
- msg && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: `dsh-a6-catalog-msg ${msg.kind}`, children: msg.text }),
1856
- catalog.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-empty-state", children: [
1857
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: "\u6A21\u578B\u76EE\u5F55\u4E3A\u7A7A\u3002" }),
1858
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "dsh-a6-side-popup-hint", children: "\u70B9\u51FB\u300C\u4ECE A6API \u83B7\u53D6\u5E02\u573A\u6A21\u578B\u300D\u62C9\u53D6\u5168\u90E8\u652F\u6301\u7684\u6A21\u578B ID\uFF0C\u518D\u7528\u300C\u4ECE OpenRouter \u4E00\u952E\u67E5\u8BE2\u300D\u81EA\u52A8\u586B\u5145\u53C2\u6570\u3002" })
1859
- ] }) : filtered.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "dsh-a6-empty-state", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: "\u5F53\u524D\u7B5B\u9009\u6761\u4EF6\u4E0B\u6CA1\u6709\u5339\u914D\u7684\u6A21\u578B" }) }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "dsh-a6-catalog-list", children: filtered.map((entry) => {
1882
+ msg && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: `dsh-a6-catalog-msg ${msg.kind}`, children: msg.text }),
1883
+ catalog.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-empty-state", children: [
1884
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: "\u6A21\u578B\u76EE\u5F55\u4E3A\u7A7A\u3002" }),
1885
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dsh-a6-side-popup-hint", children: "\u70B9\u51FB\u300C\u4ECE A6API \u83B7\u53D6\u5E02\u573A\u6A21\u578B\u300D\u62C9\u53D6\u5168\u90E8\u652F\u6301\u7684\u6A21\u578B ID\uFF0C\u518D\u7528\u300C\u4ECE OpenRouter \u4E00\u952E\u67E5\u8BE2\u300D\u81EA\u52A8\u586B\u5145\u53C2\u6570\u3002" })
1886
+ ] }) : filtered.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "dsh-a6-empty-state", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: "\u5F53\u524D\u7B5B\u9009\u6761\u4EF6\u4E0B\u6CA1\u6709\u5339\u914D\u7684\u6A21\u578B" }) }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "dsh-a6-catalog-list", children: filtered.map((entry) => {
1860
1887
  const editing = editingId === entry.id;
1861
1888
  const isAvail = availableSet.has(entry.id.toLowerCase());
1862
1889
  const re = entry.reasoningEfforts && typeof entry.reasoningEfforts === "object" ? entry.reasoningEfforts : null;
1863
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: `dsh-a6-catalog-row${editing ? " editing" : ""}`, children: [
1864
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-catalog-row-head", children: [
1865
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-catalog-id", children: [
1866
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("code", { children: entry.id }),
1867
- isAvail && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "dsh-a6-catalog-badge avail", children: "\u53EF\u7528" }),
1868
- entry.name && entry.name !== entry.id && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "dsh-a6-catalog-name", children: entry.name })
1890
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: `dsh-a6-catalog-row${editing ? " editing" : ""}`, children: [
1891
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-catalog-row-head", children: [
1892
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-catalog-id", children: [
1893
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("code", { children: entry.id }),
1894
+ isAvail && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dsh-a6-catalog-badge avail", children: "\u53EF\u7528" }),
1895
+ entry.name && entry.name !== entry.id && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dsh-a6-catalog-name", children: entry.name })
1869
1896
  ] }),
1870
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-catalog-row-actions", children: [
1871
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1897
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-catalog-row-actions", children: [
1898
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1872
1899
  "button",
1873
1900
  {
1874
1901
  type: "button",
@@ -1879,7 +1906,7 @@ var ModelCatalogPanel = () => {
1879
1906
  children: queryingId === entry.id ? "\u67E5\u8BE2\u4E2D..." : "\u67E5\u8BE2\u53C2\u6570"
1880
1907
  }
1881
1908
  ),
1882
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1909
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1883
1910
  "button",
1884
1911
  {
1885
1912
  type: "button",
@@ -1890,31 +1917,31 @@ var ModelCatalogPanel = () => {
1890
1917
  )
1891
1918
  ] })
1892
1919
  ] }),
1893
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-catalog-meta", children: [
1894
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: `dsh-a6-catalog-param${entry.contextWindow != null ? "" : " empty"}`, children: [
1920
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-catalog-meta", children: [
1921
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: `dsh-a6-catalog-param${entry.contextWindow != null ? "" : " empty"}`, children: [
1895
1922
  "\u4E0A\u4E0B\u6587 ",
1896
1923
  entry.contextWindow != null ? entry.contextWindow.toLocaleString() : "\u2014"
1897
1924
  ] }),
1898
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: `dsh-a6-catalog-param${entry.maxTokens != null ? "" : " empty"}`, children: [
1925
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: `dsh-a6-catalog-param${entry.maxTokens != null ? "" : " empty"}`, children: [
1899
1926
  "\u8F93\u51FA ",
1900
1927
  entry.maxTokens != null ? entry.maxTokens.toLocaleString() : "\u2014"
1901
1928
  ] }),
1902
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: `dsh-a6-catalog-param${entry.input && entry.input.length > 0 ? "" : " empty"}`, children: [
1929
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: `dsh-a6-catalog-param${entry.input && entry.input.length > 0 ? "" : " empty"}`, children: [
1903
1930
  "\u8F93\u5165 ",
1904
1931
  entry.input && entry.input.length > 0 ? entry.input.join("+") : "\u2014"
1905
1932
  ] }),
1906
- re && Object.keys(re).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "dsh-a6-catalog-param", children: [
1933
+ re && Object.keys(re).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "dsh-a6-catalog-param", children: [
1907
1934
  "\u63A8\u7406 ",
1908
1935
  Object.keys(re).length,
1909
1936
  " \u6863"
1910
1937
  ] }),
1911
- entry.reasoningEfforts === false && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "dsh-a6-catalog-param", children: "\u975E\u63A8\u7406" })
1938
+ entry.reasoningEfforts === false && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dsh-a6-catalog-param", children: "\u975E\u63A8\u7406" })
1912
1939
  ] }),
1913
- editing && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-catalog-edit", children: [
1914
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-edit-grid", children: [
1915
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "dsh-a6-edit-field", children: [
1916
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "dsh-a6-label", children: "\u540D\u79F0 (name)" }),
1917
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1940
+ editing && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-catalog-edit", children: [
1941
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-edit-grid", children: [
1942
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("label", { className: "dsh-a6-edit-field", children: [
1943
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dsh-a6-label", children: "\u540D\u79F0 (name)" }),
1944
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1918
1945
  "input",
1919
1946
  {
1920
1947
  type: "text",
@@ -1925,9 +1952,9 @@ var ModelCatalogPanel = () => {
1925
1952
  }
1926
1953
  )
1927
1954
  ] }),
1928
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "dsh-a6-edit-field", children: [
1929
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "dsh-a6-label", children: "\u4E0A\u4E0B\u6587\u7A97\u53E3 (contextWindow)" }),
1930
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1955
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("label", { className: "dsh-a6-edit-field", children: [
1956
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dsh-a6-label", children: "\u4E0A\u4E0B\u6587\u7A97\u53E3 (contextWindow)" }),
1957
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1931
1958
  "input",
1932
1959
  {
1933
1960
  type: "number",
@@ -1939,9 +1966,9 @@ var ModelCatalogPanel = () => {
1939
1966
  }
1940
1967
  )
1941
1968
  ] }),
1942
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "dsh-a6-edit-field", children: [
1943
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "dsh-a6-label", children: "\u6700\u5927\u8F93\u51FA (maxTokens)" }),
1944
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1969
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("label", { className: "dsh-a6-edit-field", children: [
1970
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dsh-a6-label", children: "\u6700\u5927\u8F93\u51FA (maxTokens)" }),
1971
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1945
1972
  "input",
1946
1973
  {
1947
1974
  type: "number",
@@ -1953,11 +1980,11 @@ var ModelCatalogPanel = () => {
1953
1980
  }
1954
1981
  )
1955
1982
  ] }),
1956
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-edit-field", children: [
1957
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "dsh-a6-label", children: "\u8F93\u5165\u6A21\u6001 (input)" }),
1958
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-checkbox-group", children: [
1959
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "dsh-a6-checkbox", children: [
1960
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1983
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-edit-field", children: [
1984
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dsh-a6-label", children: "\u8F93\u5165\u6A21\u6001 (input)" }),
1985
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-checkbox-group", children: [
1986
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("label", { className: "dsh-a6-checkbox", children: [
1987
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1961
1988
  "input",
1962
1989
  {
1963
1990
  type: "checkbox",
@@ -1965,10 +1992,10 @@ var ModelCatalogPanel = () => {
1965
1992
  onChange: (e) => setDraft({ ...draft, inputText: e.target.checked })
1966
1993
  }
1967
1994
  ),
1968
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: "text" })
1995
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: "text" })
1969
1996
  ] }),
1970
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "dsh-a6-checkbox", children: [
1971
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1997
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("label", { className: "dsh-a6-checkbox", children: [
1998
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1972
1999
  "input",
1973
2000
  {
1974
2001
  type: "checkbox",
@@ -1976,16 +2003,16 @@ var ModelCatalogPanel = () => {
1976
2003
  onChange: (e) => setDraft({ ...draft, inputImage: e.target.checked })
1977
2004
  }
1978
2005
  ),
1979
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: "image" })
2006
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: "image" })
1980
2007
  ] })
1981
2008
  ] })
1982
2009
  ] }),
1983
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "dsh-a6-edit-field dsh-a6-edit-wide", children: [
1984
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "dsh-a6-label", children: [
2010
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("label", { className: "dsh-a6-edit-field dsh-a6-edit-wide", children: [
2011
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "dsh-a6-label", children: [
1985
2012
  "\u63A8\u7406\u6863\u4F4D (reasoningEfforts)",
1986
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "dsh-a6-field-hint", style: { marginLeft: 6 }, children: "\u683C\u5F0F\uFF1Alow: low, medium: medium\uFF1B\u503C\u4E3A\u7A7A\u8868\u793A\u8BE5\u6863\u4F4D\u65E0 wire \u503C" })
2013
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dsh-a6-field-hint", style: { marginLeft: 6 }, children: "\u683C\u5F0F\uFF1Alow: low, medium: medium\uFF1B\u503C\u4E3A\u7A7A\u8868\u793A\u8BE5\u6863\u4F4D\u65E0 wire \u503C" })
1987
2014
  ] }),
1988
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2015
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1989
2016
  "input",
1990
2017
  {
1991
2018
  type: "text",
@@ -1997,10 +2024,10 @@ var ModelCatalogPanel = () => {
1997
2024
  }
1998
2025
  )
1999
2026
  ] }),
2000
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "dsh-a6-edit-field", children: [
2001
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "dsh-a6-label", children: "\u63A8\u7406\u80FD\u529B" }),
2002
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: "dsh-a6-checkbox", children: [
2003
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2027
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("label", { className: "dsh-a6-edit-field", children: [
2028
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dsh-a6-label", children: "\u63A8\u7406\u80FD\u529B" }),
2029
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("label", { className: "dsh-a6-checkbox", children: [
2030
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2004
2031
  "input",
2005
2032
  {
2006
2033
  type: "checkbox",
@@ -2008,12 +2035,12 @@ var ModelCatalogPanel = () => {
2008
2035
  onChange: (e) => setDraft({ ...draft, reasoningFalse: e.target.checked })
2009
2036
  }
2010
2037
  ),
2011
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: "\u975E\u63A8\u7406\u6A21\u578B (reasoningEfforts: false)" })
2038
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: "\u975E\u63A8\u7406\u6A21\u578B (reasoningEfforts: false)" })
2012
2039
  ] })
2013
2040
  ] })
2014
2041
  ] }),
2015
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "dsh-a6-edit-actions", children: [
2016
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2042
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-edit-actions", children: [
2043
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2017
2044
  "button",
2018
2045
  {
2019
2046
  type: "button",
@@ -2022,7 +2049,7 @@ var ModelCatalogPanel = () => {
2022
2049
  children: "\u4FDD\u5B58"
2023
2050
  }
2024
2051
  ),
2025
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2052
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2026
2053
  "button",
2027
2054
  {
2028
2055
  type: "button",
@@ -2039,7 +2066,7 @@ var ModelCatalogPanel = () => {
2039
2066
  };
2040
2067
 
2041
2068
  // src/client/components/A6ApiSettings.tsx
2042
- var import_jsx_runtime6 = require("react/jsx-runtime");
2069
+ var import_jsx_runtime7 = require("react/jsx-runtime");
2043
2070
  var A6ApiSettingsPanel = () => {
2044
2071
  const [state, setState] = (0, import_react5.useState)(store.getState());
2045
2072
  const [activeTab, setActiveTab] = (0, import_react5.useState)("models");
@@ -2084,80 +2111,81 @@ var A6ApiSettingsPanel = () => {
2084
2111
  }
2085
2112
  return a.model_name.localeCompare(b.model_name);
2086
2113
  });
2087
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-container", children: [
2088
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-main-header", children: [
2089
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-header-text", children: [
2090
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h2", { className: "dsh-a6-main-title", children: "A6api" }),
2091
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "dsh-a6-main-subtitle", children: "\u805A\u5408\u5168\u7403\u4E3B\u6D41\u4E0E\u9AD8\u6027\u4EF7\u6BD4\u6A21\u578B\uFF0C\u5B9E\u65F6\u76D1\u63A7\u5546\u6237\u6307\u6807\u3001\u4EF7\u683C\u500D\u7387\u4E0E\u8D26\u6237\u8D44\u4EA7\u3002" })
2114
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "dsh-a6-container", children: [
2115
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "dsh-a6-main-header", children: [
2116
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "dsh-a6-header-text", children: [
2117
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h2", { className: "dsh-a6-main-title", children: "A6api" }),
2118
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "dsh-a6-main-subtitle", children: "\u805A\u5408\u5168\u7403\u4E3B\u6D41\u4E0E\u9AD8\u6027\u4EF7\u6BD4\u6A21\u578B\uFF0C\u5B9E\u65F6\u76D1\u63A7\u5546\u6237\u6307\u6807\u3001\u4EF7\u683C\u500D\u7387\u4E0E\u8D26\u6237\u8D44\u4EA7\u3002" })
2092
2119
  ] }),
2093
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-header-badges", children: [
2094
- state.balance?.hasAccountAuth && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
2120
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "dsh-a6-header-badges", children: [
2121
+ state.balance?.hasAccountAuth && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2095
2122
  "div",
2096
2123
  {
2097
2124
  className: "dsh-a6-header-balance-badge",
2098
2125
  onClick: () => setActiveTab("account"),
2099
2126
  title: "\u70B9\u51FB\u5207\u6362\u81F3\u300C\u8D26\u6237\u8D44\u4EA7\u300D\u9875\u9762",
2100
2127
  children: [
2101
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dsh-a6-hb-label", children: "\u8D26\u6237\u4F59\u989D:" }),
2102
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dsh-a6-hb-amount", children: state.balance.accountBalanceFormatted })
2128
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "dsh-a6-hb-label", children: "\u8D26\u6237\u4F59\u989D:" }),
2129
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "dsh-a6-hb-amount", children: state.balance.accountBalanceFormatted })
2103
2130
  ]
2104
2131
  }
2105
2132
  ),
2106
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PricePill, { pf: state.priceFluctuation, hasToken: Boolean(state.config?.hasToken) })
2133
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(PricePill, { pf: state.priceFluctuation, hasToken: Boolean(state.config?.hasToken) }),
2134
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(MarketPill, {})
2107
2135
  ] })
2108
2136
  ] }),
2109
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-nav-tabs", children: [
2110
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
2137
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "dsh-a6-nav-tabs", children: [
2138
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2111
2139
  "button",
2112
2140
  {
2113
2141
  type: "button",
2114
2142
  className: `dsh-a6-nav-tab ${activeTab === "models" ? "active" : ""}`,
2115
2143
  onClick: () => setActiveTab("models"),
2116
2144
  children: [
2117
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: "\u53EF\u7528\u6A21\u578B" }),
2118
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dsh-a6-tab-badge", children: state.models.length })
2145
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: "\u53EF\u7528\u6A21\u578B" }),
2146
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "dsh-a6-tab-badge", children: state.models.length })
2119
2147
  ]
2120
2148
  }
2121
2149
  ),
2122
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
2150
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2123
2151
  "button",
2124
2152
  {
2125
2153
  type: "button",
2126
2154
  className: `dsh-a6-nav-tab ${activeTab === "catalog" ? "active" : ""}`,
2127
2155
  onClick: () => setActiveTab("catalog"),
2128
2156
  children: [
2129
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: "\u6A21\u578B\u76EE\u5F55" }),
2130
- state.catalog.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dsh-a6-tab-badge", children: state.catalog.length })
2157
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: "\u6A21\u578B\u76EE\u5F55" }),
2158
+ state.catalog.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "dsh-a6-tab-badge", children: state.catalog.length })
2131
2159
  ]
2132
2160
  }
2133
2161
  ),
2134
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
2162
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2135
2163
  "button",
2136
2164
  {
2137
2165
  type: "button",
2138
2166
  className: `dsh-a6-nav-tab ${activeTab === "account" ? "active" : ""}`,
2139
2167
  onClick: () => setActiveTab("account"),
2140
2168
  children: [
2141
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: "\u8D26\u6237\u8D44\u4EA7" }),
2142
- state.balance?.hasAccountAuth && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dsh-a6-tab-badge success", children: state.balance.accountBalanceFormatted })
2169
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: "\u8D26\u6237\u8D44\u4EA7" }),
2170
+ state.balance?.hasAccountAuth && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "dsh-a6-tab-badge success", children: state.balance.accountBalanceFormatted })
2143
2171
  ]
2144
2172
  }
2145
2173
  ),
2146
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2174
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2147
2175
  "button",
2148
2176
  {
2149
2177
  type: "button",
2150
2178
  className: `dsh-a6-nav-tab ${activeTab === "config" ? "active" : ""}`,
2151
2179
  onClick: () => setActiveTab("config"),
2152
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: "\u57FA\u7840\u914D\u7F6E" })
2180
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: "\u57FA\u7840\u914D\u7F6E" })
2153
2181
  }
2154
2182
  )
2155
2183
  ] }),
2156
- activeTab === "catalog" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "dsh-a6-tab-page catalog-page", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ModelCatalogPanel, {}) }),
2157
- activeTab === "models" && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-tab-page models-page", children: [
2158
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-section-header", children: [
2159
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-filter-group", children: [
2160
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
2184
+ activeTab === "catalog" && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "dsh-a6-tab-page catalog-page", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ModelCatalogPanel, {}) }),
2185
+ activeTab === "models" && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "dsh-a6-tab-page models-page", children: [
2186
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "dsh-a6-section-header", children: [
2187
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "dsh-a6-filter-group", children: [
2188
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2161
2189
  "button",
2162
2190
  {
2163
2191
  type: "button",
@@ -2170,7 +2198,7 @@ var A6ApiSettingsPanel = () => {
2170
2198
  ]
2171
2199
  }
2172
2200
  ),
2173
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
2201
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2174
2202
  "button",
2175
2203
  {
2176
2204
  type: "button",
@@ -2183,7 +2211,7 @@ var A6ApiSettingsPanel = () => {
2183
2211
  ]
2184
2212
  }
2185
2213
  ),
2186
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
2214
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2187
2215
  "button",
2188
2216
  {
2189
2217
  type: "button",
@@ -2197,9 +2225,9 @@ var A6ApiSettingsPanel = () => {
2197
2225
  }
2198
2226
  )
2199
2227
  ] }),
2200
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-toolbar-right", children: [
2201
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-search-wrapper", children: [
2202
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2228
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "dsh-a6-toolbar-right", children: [
2229
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "dsh-a6-search-wrapper", children: [
2230
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2203
2231
  "input",
2204
2232
  {
2205
2233
  type: "text",
@@ -2209,7 +2237,7 @@ var A6ApiSettingsPanel = () => {
2209
2237
  onChange: (e) => setSearchQuery(e.target.value)
2210
2238
  }
2211
2239
  ),
2212
- searchQuery && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2240
+ searchQuery && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2213
2241
  "button",
2214
2242
  {
2215
2243
  type: "button",
@@ -2220,7 +2248,7 @@ var A6ApiSettingsPanel = () => {
2220
2248
  }
2221
2249
  )
2222
2250
  ] }),
2223
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2251
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2224
2252
  "button",
2225
2253
  {
2226
2254
  type: "button",
@@ -2232,8 +2260,8 @@ var A6ApiSettingsPanel = () => {
2232
2260
  children: refreshing ? "\u5237\u65B0\u4E2D..." : refreshSuccess ? "\u5DF2\u5237\u65B0 \u2713" : "\u5237\u65B0\u5217\u8868"
2233
2261
  }
2234
2262
  ),
2235
- state.probeAllActive ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
2236
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
2263
+ state.probeAllActive ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2264
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2237
2265
  "button",
2238
2266
  {
2239
2267
  type: "button",
@@ -2249,7 +2277,7 @@ var A6ApiSettingsPanel = () => {
2249
2277
  ]
2250
2278
  }
2251
2279
  ),
2252
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2280
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2253
2281
  "button",
2254
2282
  {
2255
2283
  type: "button",
@@ -2260,7 +2288,7 @@ var A6ApiSettingsPanel = () => {
2260
2288
  children: "\u53D6\u6D88"
2261
2289
  }
2262
2290
  )
2263
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2291
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2264
2292
  "button",
2265
2293
  {
2266
2294
  type: "button",
@@ -2274,16 +2302,16 @@ var A6ApiSettingsPanel = () => {
2274
2302
  )
2275
2303
  ] })
2276
2304
  ] }),
2277
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "dsh-a6-cards-list", children: state.loading && state.models.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dsh-a6-empty-state", children: [
2278
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "dsh-a6-spinner" }),
2279
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: "\u6B63\u5728\u8FDE\u63A5 A6API \u805A\u5408\u7AD9\u5E76\u52A0\u8F7D\u6A21\u578B\u884C\u60C5..." })
2280
- ] }) : sortedModels.length > 0 ? sortedModels.map((m) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(MerchantCard, { model: m }, m.model_name)) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "dsh-a6-empty-state", children: searchQuery ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { children: [
2305
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "dsh-a6-cards-list", children: state.loading && state.models.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "dsh-a6-empty-state", children: [
2306
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "dsh-a6-spinner" }),
2307
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: "\u6B63\u5728\u8FDE\u63A5 A6API \u805A\u5408\u7AD9\u5E76\u52A0\u8F7D\u6A21\u578B\u884C\u60C5..." })
2308
+ ] }) : sortedModels.length > 0 ? sortedModels.map((m) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(MerchantCard, { model: m }, m.model_name)) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "dsh-a6-empty-state", children: searchQuery ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { children: [
2281
2309
  "\u672A\u641C\u7D22\u5230\u5339\u914D\u300C",
2282
2310
  searchQuery,
2283
2311
  "\u300D\u7684\u6A21\u578B"
2284
- ] }) : filterMode === "enabled" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: "\u5F53\u524D\u5C1A\u672A\u5728 DSH \u4E2D\u542F\u7528\u4EFB\u4F55 A6API \u6A21\u578B\uFF0C\u70B9\u51FB\u6A21\u578B\u5361\u7247\u53F3\u4FA7\u300C\u6DFB\u52A0\u5230 DSH\u300D\u5373\u53EF\u542F\u7528\u3002" }) : filterMode === "probed" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: "\u5C1A\u672A\u63A2\u6D4B\u4EFB\u4F55\u6A21\u578B\u5546\u6237\u7EBF\u8DEF\uFF0C\u70B9\u51FB\u6A21\u578B\u5361\u7247\u4E0A\u7684\u300C\u63A2\u6D4B\u5546\u5BB6\u300D\u6216\u4E0A\u65B9\u300C\u4E00\u952E\u5168\u91CF\u63A2\u6D4B\u300D\u5373\u53EF\u5F00\u59CB\u3002" }) : !state.config.hasApiKey ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: "\u8BF7\u524D\u5F80\u300C\u57FA\u7840\u914D\u7F6E\u300D\u9875\u9762\u586B\u5165\u60A8\u7684 A6API \u4EE4\u724C (API Key) \u5E76\u4FDD\u5B58\uFF0C\u5373\u53EF\u81EA\u52A8\u52A0\u8F7D\u53EF\u7528\u6A21\u578B\u5217\u8868\u3002" }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: "\u5F53\u524D\u4EE4\u724C\u6682\u65E0\u53EF\u7528\u6A21\u578B\uFF0C\u8BF7\u68C0\u67E5 A6API \u63A7\u5236\u53F0\u4E2D\u7684\u4EE4\u724C\u9650\u5236\u8BBE\u7F6E\u3002" }) }) })
2312
+ ] }) : filterMode === "enabled" ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: "\u5F53\u524D\u5C1A\u672A\u5728 DSH \u4E2D\u542F\u7528\u4EFB\u4F55 A6API \u6A21\u578B\uFF0C\u70B9\u51FB\u6A21\u578B\u5361\u7247\u53F3\u4FA7\u300C\u6DFB\u52A0\u5230 DSH\u300D\u5373\u53EF\u542F\u7528\u3002" }) : filterMode === "probed" ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: "\u5C1A\u672A\u63A2\u6D4B\u4EFB\u4F55\u6A21\u578B\u5546\u6237\u7EBF\u8DEF\uFF0C\u70B9\u51FB\u6A21\u578B\u5361\u7247\u4E0A\u7684\u300C\u63A2\u6D4B\u5546\u5BB6\u300D\u6216\u4E0A\u65B9\u300C\u4E00\u952E\u5168\u91CF\u63A2\u6D4B\u300D\u5373\u53EF\u5F00\u59CB\u3002" }) : !state.config.hasApiKey ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: "\u8BF7\u524D\u5F80\u300C\u57FA\u7840\u914D\u7F6E\u300D\u9875\u9762\u586B\u5165\u60A8\u7684 A6API \u4EE4\u724C (API Key) \u5E76\u4FDD\u5B58\uFF0C\u5373\u53EF\u81EA\u52A8\u52A0\u8F7D\u53EF\u7528\u6A21\u578B\u5217\u8868\u3002" }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: "\u5F53\u524D\u4EE4\u724C\u6682\u65E0\u53EF\u7528\u6A21\u578B\uFF0C\u8BF7\u68C0\u67E5 A6API \u63A7\u5236\u53F0\u4E2D\u7684\u4EE4\u724C\u9650\u5236\u8BBE\u7F6E\u3002" }) }) })
2285
2313
  ] }),
2286
- activeTab === "account" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "dsh-a6-tab-page account-page", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2314
+ activeTab === "account" && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "dsh-a6-tab-page account-page", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2287
2315
  AccountPanel,
2288
2316
  {
2289
2317
  balance: state.balance,
@@ -2292,7 +2320,7 @@ var A6ApiSettingsPanel = () => {
2292
2320
  onNavigateToConfig: () => setActiveTab("config")
2293
2321
  }
2294
2322
  ) }),
2295
- activeTab === "config" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "dsh-a6-tab-page config-page", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2323
+ activeTab === "config" && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "dsh-a6-tab-page config-page", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2296
2324
  ConfigPanel,
2297
2325
  {
2298
2326
  config: state.config,
@@ -2304,7 +2332,7 @@ var A6ApiSettingsPanel = () => {
2304
2332
 
2305
2333
  // src/client/components/A6ApiSidebarCard.tsx
2306
2334
  var import_react6 = require("react");
2307
- var import_jsx_runtime7 = require("react/jsx-runtime");
2335
+ var import_jsx_runtime8 = require("react/jsx-runtime");
2308
2336
  var POPUP_MAX_WIDTH = 500;
2309
2337
  var normalizeModelId = (id) => id.replace(/^[^/]+\//, "");
2310
2338
  var A6ApiSidebarCard = ({
@@ -2313,7 +2341,7 @@ var A6ApiSidebarCard = ({
2313
2341
  getModelDirectories
2314
2342
  }) => {
2315
2343
  if (useSessions) {
2316
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2344
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2317
2345
  A6ApiSidebarCardInner,
2318
2346
  {
2319
2347
  wide,
@@ -2322,11 +2350,11 @@ var A6ApiSidebarCard = ({
2322
2350
  }
2323
2351
  );
2324
2352
  }
2325
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(A6ApiSidebarCardBody, { wide, getModelDirectories });
2353
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(A6ApiSidebarCardBody, { wide, getModelDirectories });
2326
2354
  };
2327
2355
  var A6ApiSidebarCardInner = ({ wide, useSessions, getModelDirectories }) => {
2328
2356
  const currentId = useSessions((s) => s?.current);
2329
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2357
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2330
2358
  A6ApiSidebarCardBody,
2331
2359
  {
2332
2360
  wide,
@@ -2402,15 +2430,9 @@ var A6ApiSidebarCardBody = ({
2402
2430
  }, []);
2403
2431
  const isA6api = Boolean(selection && selection.provider === "a6api");
2404
2432
  const modelName = normalizeModelId(selection?.model || "");
2405
- const canOpen = isA6api && Boolean(modelName);
2406
- const card = canOpen ? state.models.find((m) => m.model_name.toLowerCase() === modelName.toLowerCase()) : void 0;
2407
- const toggle = () => {
2408
- if (!canOpen) return;
2409
- setOpen((v) => !v);
2410
- };
2411
- (0, import_react6.useEffect)(() => {
2412
- if (open && !canOpen) setOpen(false);
2413
- }, [open, canOpen]);
2433
+ const hasA6apiModel = isA6api && Boolean(modelName);
2434
+ const card = modelName ? state.models.find((m) => m.model_name.toLowerCase() === modelName.toLowerCase()) : void 0;
2435
+ const toggle = () => setOpen((v) => !v);
2414
2436
  (0, import_react6.useEffect)(() => {
2415
2437
  if (!open) {
2416
2438
  setPos(null);
@@ -2485,25 +2507,24 @@ var A6ApiSidebarCardBody = ({
2485
2507
  document.removeEventListener("pointerdown", onPointerDown, true);
2486
2508
  };
2487
2509
  }, [open]);
2488
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2489
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2510
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
2511
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2490
2512
  "span",
2491
2513
  {
2492
2514
  className: `dsh-a6-side-btn-wrap${wide ? "" : " rail"}`,
2493
- "data-tooltip": !canOpen ? "\u5F53\u524D\u4F1A\u8BDD\u672A\u4F7F\u7528 A6api \u6A21\u578B" : void 0,
2494
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2515
+ "data-tooltip": !hasA6apiModel ? "\u5F53\u524D\u4F1A\u8BDD\u672A\u4F7F\u7528 A6api \u6A21\u578B\uFF0C\u5361\u7247\u5DF2\u7F6E\u7070" : void 0,
2516
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2495
2517
  "button",
2496
2518
  {
2497
2519
  ref: buttonRef,
2498
2520
  type: "button",
2499
2521
  className: `dsh-a6-side-btn${wide ? "" : " rail"}`,
2500
2522
  onClick: toggle,
2501
- disabled: !canOpen,
2502
2523
  "aria-expanded": open,
2503
2524
  "aria-label": wide ? void 0 : "A6api",
2504
- "data-tooltip": canOpen ? open ? "\u6536\u8D77 A6api \u6A21\u578B\u5361\u7247" : "\u67E5\u770B\u5F53\u524D\u4F1A\u8BDD\u7684 A6api \u6A21\u578B\u5361\u7247" : void 0,
2525
+ "data-tooltip": hasA6apiModel ? open ? "\u6536\u8D77 A6api \u6A21\u578B\u5361\u7247" : "\u67E5\u770B\u5F53\u524D\u4F1A\u8BDD\u7684 A6api \u6A21\u578B\u5361\u7247" : void 0,
2505
2526
  children: [
2506
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2527
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2507
2528
  "svg",
2508
2529
  {
2509
2530
  className: "dsh-a6-side-btn-badge",
@@ -2514,14 +2535,14 @@ var A6ApiSidebarCardBody = ({
2514
2535
  xmlns: "http://www.w3.org/2000/svg",
2515
2536
  "aria-hidden": "true",
2516
2537
  children: [
2517
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2538
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2518
2539
  "path",
2519
2540
  {
2520
2541
  d: "M14.0861 5.51366C13.8717 5.0575 13.588 4.58542 13.2889 4.18108C13.208 4.07172 13.1596 4.04373 13.0243 4.03054C12.4277 3.97255 11.8245 4.05527 11.2269 3.9972C10.7224 3.94816 10.3133 3.71661 10.0115 3.30919C9.66986 2.84777 9.43973 2.31343 9.09824 1.85234C9.01771 1.74365 8.96805 1.71589 8.83354 1.70282C8.29432 1.65044 7.70402 1.65061 7.16656 1.70282C7.03205 1.71589 6.98239 1.74365 6.90186 1.85234C6.56067 2.31303 6.33025 2.84774 5.98855 3.30919C5.68681 3.71661 5.27774 3.94816 4.77317 3.9972C4.17564 4.05527 3.57239 3.97255 2.97585 4.03054C2.84046 4.04373 2.79208 4.07172 2.71115 4.18108C2.41212 4.58542 2.12835 5.0575 1.91403 5.51366C1.85299 5.64359 1.85286 5.7018 1.91403 5.8319C2.14865 6.33077 2.49748 6.76892 2.73237 7.26854C2.9594 7.7515 2.96041 8.24717 2.73338 8.73044C2.49837 9.23061 2.14891 9.66837 1.91403 10.1681C1.85291 10.2982 1.85299 10.3564 1.91403 10.4863C2.12856 10.9429 2.41185 11.4142 2.71115 11.8189C2.79208 11.9283 2.84046 11.9563 2.97585 11.9694C3.57239 12.0274 4.17564 11.9447 4.77317 12.0028C5.27774 12.0518 5.68681 12.2834 5.98855 12.6908C6.33024 13.1522 6.56037 13.6866 6.90186 14.1476C6.98239 14.2563 7.03205 14.2841 7.16656 14.2972C7.70402 14.3494 8.29432 14.3495 8.83354 14.2972C8.96805 14.2841 9.01771 14.2563 9.09824 14.1476C9.43944 13.687 9.66985 13.1522 10.0115 12.6908C10.3133 12.2834 10.7224 12.0518 11.2269 12.0028C11.8244 11.9447 12.4271 12.0275 13.0243 11.9694C13.1596 11.9563 13.208 11.9283 13.2889 11.8189C13.5891 11.4131 13.872 10.942 14.0861 10.4863C14.1471 10.3564 14.1472 10.2982 14.0861 10.1681C13.8513 9.66861 13.5017 9.23061 13.2667 8.73044C13.0397 8.24717 13.0407 7.7515 13.2677 7.26854C13.5026 6.7689 13.8513 6.33106 14.0861 5.8319C14.1472 5.7018 14.1471 5.64359 14.0861 5.51366ZM15.3035 6.40373C15.0685 6.90359 14.7188 7.34119 14.4841 7.84037C14.4231 7.97025 14.423 8.02855 14.4841 8.15861C14.7189 8.65833 15.0685 9.09611 15.3035 9.59626C15.5308 10.0801 15.5308 10.5744 15.3035 11.0582C15.052 11.5933 14.7225 12.1426 14.37 12.6191C14.0685 13.0265 13.6581 13.259 13.1536 13.3081C12.5566 13.366 11.9541 13.2835 11.3573 13.3414C11.2228 13.3545 11.1731 13.3823 11.0926 13.491C10.7511 13.9521 10.521 14.4864 10.1793 14.9478C9.87828 15.3542 9.46719 15.5869 8.96387 15.6358C8.34008 15.6964 7.66194 15.6966 7.03623 15.6358C6.53291 15.5869 6.12182 15.3542 5.82084 14.9478C5.47911 14.4863 5.24878 13.9517 4.90753 13.491C4.82701 13.3823 4.77734 13.3545 4.64284 13.3414C4.04647 13.2835 3.44373 13.366 2.84653 13.3081C2.34201 13.259 1.93164 13.0265 1.63013 12.6191C1.27867 12.144 0.948453 11.5941 0.696621 11.0582C0.469315 10.5744 0.469279 10.0801 0.696621 9.59626C0.931628 9.09613 1.2813 8.65807 1.51597 8.15861C1.57708 8.02855 1.57702 7.97025 1.51597 7.84037C1.28117 7.34095 0.931635 6.9036 0.696621 6.40373C0.469213 5.91992 0.469367 5.42562 0.696621 4.94183C0.948441 4.40587 1.27868 3.85598 1.63013 3.38092C1.93164 2.97349 2.34201 2.74095 2.84653 2.6919C3.44353 2.63397 4.04599 2.71649 4.64284 2.65856C4.77734 2.64549 4.82701 2.61774 4.90753 2.50904C5.24905 2.04792 5.47913 1.51362 5.82084 1.05219C6.12182 0.645806 6.53291 0.413119 7.03623 0.364178C7.66002 0.303556 8.33816 0.303369 8.96387 0.364178C9.46719 0.413119 9.87828 0.645806 10.1793 1.05219C10.521 1.51365 10.7513 2.04828 11.0926 2.50904C11.1731 2.61774 11.2228 2.64549 11.3573 2.65856C11.9541 2.71649 12.5566 2.63397 13.1536 2.6919C13.6581 2.74095 14.0685 2.97349 14.37 3.38092C14.7214 3.85598 15.0517 4.40587 15.3035 4.94183C15.5307 5.42562 15.5309 5.91992 15.3035 6.40373Z",
2521
2542
  fill: "currentColor"
2522
2543
  }
2523
2544
  ),
2524
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2545
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2525
2546
  "path",
2526
2547
  {
2527
2548
  d: "M9.13764 7.99999C9.13764 7.3715 8.62855 6.8624 8.00005 6.8624C7.37155 6.8624 6.86246 7.3715 6.86246 7.99999C6.86246 8.62849 7.37155 9.13759 8.00005 9.13759C8.62855 9.13759 9.13764 8.62849 9.13764 7.99999ZM10.4834 7.99999C10.4834 9.37126 9.37132 10.4833 8.00005 10.4833C6.62878 10.4833 5.51674 9.37126 5.51674 7.99999C5.51674 6.62873 6.62878 5.51669 8.00005 5.51669C9.37132 5.51669 10.4834 6.62873 10.4834 7.99999Z",
@@ -2531,13 +2552,13 @@ var A6ApiSidebarCardBody = ({
2531
2552
  ]
2532
2553
  }
2533
2554
  ),
2534
- wide && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "dsh-a6-side-btn-label", children: "A6api" })
2555
+ wide && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "dsh-a6-side-btn-label", children: "A6api" })
2535
2556
  ]
2536
2557
  }
2537
2558
  )
2538
2559
  }
2539
2560
  ),
2540
- open && pos && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2561
+ open && pos && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2541
2562
  "div",
2542
2563
  {
2543
2564
  ref: popupRef,
@@ -2546,38 +2567,42 @@ var A6ApiSidebarCardBody = ({
2546
2567
  "aria-label": "\u5F53\u524D\u4F1A\u8BDD A6api \u6A21\u578B\u5361\u7247",
2547
2568
  style: { left: pos.left, ...pos.top !== void 0 ? { top: pos.top } : { bottom: pos.bottom } },
2548
2569
  children: [
2549
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "dsh-a6-side-pills", children: [
2550
- state.balance?.hasAccountAuth && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2570
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "dsh-a6-side-pills", children: [
2571
+ state.balance?.hasAccountAuth && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2551
2572
  "div",
2552
2573
  {
2553
2574
  className: "dsh-a6-header-balance-badge dsh-a6-side-balance-pill",
2554
2575
  title: "\u8D26\u6237\u4F59\u989D\uFF08\u6BCF 60 \u79D2\u81EA\u52A8\u540C\u6B65\uFF09",
2555
2576
  children: [
2556
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "dsh-a6-hb-label", children: "\u8D26\u6237\u4F59\u989D:" }),
2557
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "dsh-a6-hb-amount", children: state.balance.accountBalanceFormatted })
2577
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "dsh-a6-hb-label", children: "\u8D26\u6237\u4F59\u989D:" }),
2578
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "dsh-a6-hb-amount", children: state.balance.accountBalanceFormatted })
2558
2579
  ]
2559
2580
  }
2560
2581
  ),
2561
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2582
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2562
2583
  PricePill,
2563
2584
  {
2564
2585
  pf: state.priceFluctuation,
2565
2586
  hasToken: Boolean(state.config?.hasToken),
2566
2587
  compact: true
2567
2588
  }
2568
- )
2589
+ ),
2590
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(MarketPill, {})
2569
2591
  ] }),
2570
- card ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(MerchantCard, { model: card }) : state.loading && state.models.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "dsh-a6-side-popup-empty", children: [
2571
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "dsh-a6-spinner" }),
2572
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: "\u6B63\u5728\u52A0\u8F7D A6api \u6570\u636E..." })
2573
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "dsh-a6-side-popup-empty", children: [
2574
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { children: [
2592
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: hasA6apiModel ? void 0 : "dsh-a6-side-card-dimmed", children: card ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(MerchantCard, { model: card }) : state.loading && state.models.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "dsh-a6-side-popup-empty", children: [
2593
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "dsh-a6-spinner" }),
2594
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u6B63\u5728\u52A0\u8F7D A6api \u6570\u636E..." })
2595
+ ] }) : hasA6apiModel ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "dsh-a6-side-popup-empty", children: [
2596
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
2575
2597
  "\u672A\u627E\u5230\u300C",
2576
2598
  modelName,
2577
2599
  "\u300D\u7684\u5546\u6237\u6570\u636E"
2578
2600
  ] }),
2579
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "dsh-a6-side-popup-hint", children: "\u53EF\u5728\u300C\u8BBE\u7F6E \u2192 A6api\u300D\u4E2D\u63A2\u6D4B\u8BE5\u6A21\u578B" })
2580
- ] })
2601
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "dsh-a6-side-popup-hint", children: "\u53EF\u5728\u300C\u8BBE\u7F6E \u2192 A6api\u300D\u4E2D\u63A2\u6D4B\u8BE5\u6A21\u578B" })
2602
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "dsh-a6-side-popup-empty", children: [
2603
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u5F53\u524D\u4F1A\u8BDD\u672A\u4F7F\u7528 A6api \u6A21\u578B" }),
2604
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "dsh-a6-side-popup-hint", children: modelName ? `\u300C${modelName}\u300D\u6682\u65E0\u5546\u6237\u6570\u636E` : "\u5207\u6362\u5230 A6api \u6A21\u578B\u540E\u81EA\u52A8\u5C55\u793A\u5546\u6237\u5361\u7247" })
2605
+ ] }) })
2581
2606
  ]
2582
2607
  }
2583
2608
  )
@@ -2743,6 +2768,42 @@ var main_default = `/* A6API Plugin Styles - Clean Professional DSH Native Theme
2743
2768
  color: var(--dsw-alias-label-tertiary, #94a3b8);
2744
2769
  }
2745
2770
 
2771
+ /* \u300C\u6A21\u578B\u5E02\u573A\u300D\u80F6\u56CA(\u4FA7\u8FB9\u680F\u6D6E\u5C42):\u4E0E\u4F59\u989D / \u4EF7\u683C\u6CE2\u52A8\u80F6\u56CA\u540C\u6B3E\u5916\u89C2,\u70B9\u51FB\u76F4\u8FBE\u5B98\u7F51\u6A21\u578B\u9875 */
2772
+ .dsh-a6-market-pill {
2773
+ display: inline-flex;
2774
+ align-items: center;
2775
+ gap: 6px;
2776
+ padding: 5px 12px;
2777
+ border-radius: 16px;
2778
+ border: 1px solid var(--dsw-alias-border-l2, #e2e8f0);
2779
+ background: var(--dsw-alias-bg-layer-2, #ffffff);
2780
+ cursor: pointer;
2781
+ font-size: 12px;
2782
+ font-weight: 500;
2783
+ line-height: 1;
2784
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
2785
+ transition: all 0.15s;
2786
+ user-select: none;
2787
+ min-height: 28px;
2788
+ box-sizing: border-box;
2789
+ color: var(--dsw-alias-label-secondary, #64748b);
2790
+ }
2791
+
2792
+ .dsh-a6-market-pill:hover {
2793
+ border-color: #10b981;
2794
+ background: rgba(16, 185, 129, 0.04);
2795
+ }
2796
+
2797
+ .dsh-a6-market-pill-label {
2798
+ font-size: 12px;
2799
+ font-weight: 500;
2800
+ color: var(--dsw-alias-label-secondary, #64748b);
2801
+ }
2802
+
2803
+ .dsh-a6-market-pill:hover .dsh-a6-market-pill-label {
2804
+ color: #10b981;
2805
+ }
2806
+
2746
2807
  .dsh-a6-hb-amount {
2747
2808
  font-size: 13px;
2748
2809
  font-weight: 700;
@@ -4402,13 +4463,21 @@ body.dsh-a6api-tooltip-active [data-tooltip]::before {
4402
4463
  color: var(--dsw-alias-label-tertiary, #94a3b8);
4403
4464
  }
4404
4465
 
4466
+ /* \u975E A6api \u4F1A\u8BDD:\u6A21\u578B\u5361\u7247\u533A\u57DF\u6574\u4F53\u7F6E\u7070(\u53BB\u8272 + \u964D\u900F\u660E\u5EA6 + \u7981\u4EA4\u4E92),\u9876\u90E8\u8D26\u6237\u80F6\u56CA\u4E0D\u53D7\u5F71\u54CD */
4467
+ .dsh-a6-side-card-dimmed {
4468
+ filter: grayscale(1);
4469
+ opacity: 0.45;
4470
+ pointer-events: none;
4471
+ user-select: none;
4472
+ }
4473
+
4405
4474
  /* \u6D6E\u5C42\u5185\u7981\u7528 CSS \u4F2A\u5143\u7D20 tooltip:JS portal tooltip \u6709 30ms \u5EF6\u8FDF,\u907F\u514D\u53CC\u63D0\u793A\u4E14\u4F2A\u5143\u7D20\u4F1A\u88AB overflow \u88C1\u526A */
4406
4475
  .dsh-a6-side-popup [data-tooltip]::after,
4407
4476
  .dsh-a6-side-popup [data-tooltip]::before {
4408
4477
  display: none;
4409
4478
  }
4410
4479
 
4411
- /* \u6D6E\u5C42\u9876\u90E8\u8D26\u6237\u901F\u89C8\u80F6\u56CA\u884C:\u4E0E\u8BBE\u7F6E\u9875\u5934\u90E8\u540C\u6B3E\u89C6\u89C9,\u7F29\u7A84\u7D27\u51D1\u7248(\u4F59\u989D\u7EAF\u5C55\u793A + \u4EF7\u683C\u6CE2\u52A8\u53EF\u8DF3) */
4480
+ /* \u6D6E\u5C42\u9876\u90E8\u8D26\u6237\u901F\u89C8\u80F6\u56CA\u884C:\u4E0E\u8BBE\u7F6E\u9875\u5934\u90E8\u540C\u6B3E\u89C6\u89C9,\u7F29\u7A84\u7D27\u51D1\u7248(\u4F59\u989D\u7EAF\u5C55\u793A + \u4EF7\u683C\u6CE2\u52A8\u53EF\u8DF3 + \u6A21\u578B\u5E02\u573A\u76F4\u8FBE) */
4412
4481
  .dsh-a6-side-pills {
4413
4482
  display: flex;
4414
4483
  align-items: center;
@@ -4420,7 +4489,8 @@ body.dsh-a6api-tooltip-active [data-tooltip]::before {
4420
4489
  }
4421
4490
 
4422
4491
  .dsh-a6-side-pills .dsh-a6-header-balance-badge,
4423
- .dsh-a6-side-pills .dsh-a6-price-pill {
4492
+ .dsh-a6-side-pills .dsh-a6-price-pill,
4493
+ .dsh-a6-side-pills .dsh-a6-market-pill {
4424
4494
  padding: 3px 10px;
4425
4495
  min-height: 24px;
4426
4496
  font-size: 11px;
@@ -4432,7 +4502,8 @@ body.dsh-a6api-tooltip-active [data-tooltip]::before {
4432
4502
  .dsh-a6-side-pills .dsh-a6-price-pill-count,
4433
4503
  .dsh-a6-side-pills .dsh-a6-price-pill-label,
4434
4504
  .dsh-a6-side-pills .dsh-a6-hb-amount,
4435
- .dsh-a6-side-pills .dsh-a6-hb-label {
4505
+ .dsh-a6-side-pills .dsh-a6-hb-label,
4506
+ .dsh-a6-side-pills .dsh-a6-market-pill-label {
4436
4507
  font-size: 12px;
4437
4508
  line-height: 1;
4438
4509
  }