@rhinestone/deposit-modal 0.20.1 → 0.21.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.
Files changed (53) hide show
  1. package/README.md +42 -17
  2. package/dist/{BankOnrampStep-4D24HVHV.mjs → BankOnrampStep-JTU7WS5R.mjs} +22 -12
  3. package/dist/{BankOnrampStep-3SNUX6V2.cjs → BankOnrampStep-QCPISCAQ.cjs} +34 -24
  4. package/dist/{DepositModalReown-SYQ2SCHC.mjs → DepositModalReown-FJBSF4VL.mjs} +5 -3
  5. package/dist/{DepositModalReown-7EHOJTFW.cjs → DepositModalReown-QJ6O2FWY.cjs} +18 -16
  6. package/dist/{WithdrawModal-LXDIT4UV.mjs → WithdrawModal-CB7RNEPI.mjs} +3 -3
  7. package/dist/WithdrawModal-E2BTWJV7.cjs +12 -0
  8. package/dist/{chunk-ZOJMB5TZ.mjs → chunk-2D3J53PX.mjs} +1 -1
  9. package/dist/{chunk-KXSU24RU.cjs → chunk-4O2UGFFT.cjs} +71 -62
  10. package/dist/{chunk-IPKT3FU6.mjs → chunk-7CHQA2OZ.mjs} +1 -1
  11. package/dist/chunk-ADEWTBSN.cjs +19 -0
  12. package/dist/{chunk-O5OW4S7L.cjs → chunk-AV3SA7TW.cjs} +3 -3
  13. package/dist/{chunk-FW7ZMXQS.mjs → chunk-B2LUWNFX.mjs} +179 -96
  14. package/dist/{chunk-PVFEZ3UG.cjs → chunk-CAIRS4LK.cjs} +449 -366
  15. package/dist/{chunk-LVMNNMOZ.cjs → chunk-CG3JKPUF.cjs} +2 -2
  16. package/dist/{chunk-JPX4MEHV.mjs → chunk-CXEQFRX4.mjs} +1 -1
  17. package/dist/chunk-PP4QE32S.mjs +19 -0
  18. package/dist/{chunk-YQCRXJIL.mjs → chunk-PZIKRYMO.mjs} +1 -1
  19. package/dist/{chunk-CIVFT5KR.cjs → chunk-U7NYYT4Q.cjs} +58 -58
  20. package/dist/{chunk-OZPMRTW3.mjs → chunk-UNXUOV3F.mjs} +39 -30
  21. package/dist/{chunk-D3R3O4CY.cjs → chunk-VQAV6ESI.cjs} +1 -1
  22. package/dist/{chunk-EJDBIWNH.mjs → chunk-WK2ELRL3.mjs} +5 -16
  23. package/dist/{chunk-IPHKBBUV.cjs → chunk-X425VJFY.cjs} +10 -21
  24. package/dist/compliance.cjs +4 -4
  25. package/dist/compliance.mjs +3 -3
  26. package/dist/constants.cjs +2 -2
  27. package/dist/constants.d.cts +1 -1
  28. package/dist/constants.d.ts +1 -1
  29. package/dist/constants.mjs +1 -1
  30. package/dist/deposit.cjs +6 -4
  31. package/dist/deposit.d.cts +2 -2
  32. package/dist/deposit.d.ts +2 -2
  33. package/dist/deposit.mjs +5 -3
  34. package/dist/embed.cjs +16 -14
  35. package/dist/embed.d.cts +1 -1
  36. package/dist/embed.d.ts +1 -1
  37. package/dist/embed.mjs +6 -4
  38. package/dist/index.cjs +7 -5
  39. package/dist/index.d.cts +1 -1
  40. package/dist/index.d.ts +1 -1
  41. package/dist/index.mjs +6 -4
  42. package/dist/onramp.cjs +5 -4
  43. package/dist/onramp.mjs +4 -3
  44. package/dist/server.cjs +12 -8
  45. package/dist/server.mjs +11 -7
  46. package/dist/{types-BEEMfNi2.d.cts → types-BrxDZNEr.d.cts} +20 -10
  47. package/dist/{types-DQDUqzsZ.d.ts → types-DCUB4DY8.d.ts} +20 -10
  48. package/dist/withdraw.cjs +4 -4
  49. package/dist/withdraw.d.cts +2 -2
  50. package/dist/withdraw.d.ts +2 -2
  51. package/dist/withdraw.mjs +3 -3
  52. package/package.json +3 -3
  53. package/dist/WithdrawModal-LLJLEYXZ.cjs +0 -12
@@ -16,6 +16,7 @@
16
16
 
17
17
 
18
18
 
19
+
19
20
  var _chunkG264OM23cjs = require('./chunk-G264OM23.cjs');
20
21
 
21
22
 
@@ -45,7 +46,7 @@ var _chunkFKJ6EJHHcjs = require('./chunk-FKJ6EJHH.cjs');
45
46
 
46
47
 
47
48
 
48
- var _chunkD3R3O4CYcjs = require('./chunk-D3R3O4CY.cjs');
49
+ var _chunkVQAV6ESIcjs = require('./chunk-VQAV6ESI.cjs');
49
50
 
50
51
  // src/components/ui/Modal.tsx
51
52
 
@@ -843,7 +844,7 @@ function createDepositService(baseUrl, options) {
843
844
  method === "GET" ? assetsGetUrl(ids, fields) : apiUrl("/assets"),
844
845
  {
845
846
  method,
846
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
847
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
847
848
  body: method === "QUERY" ? JSON.stringify({ ids, fields }) : void 0,
848
849
  cache: "no-store",
849
850
  signal
@@ -937,7 +938,7 @@ function createDepositService(baseUrl, options) {
937
938
  try {
938
939
  const response = await fetch(apiUrl("/qr/tokens"), {
939
940
  method: "GET",
940
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, )
941
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, )
941
942
  });
942
943
  if (!response.ok) {
943
944
  debugLog(debug, scope, "getTopTokens:unavailable", {
@@ -964,7 +965,7 @@ function createDepositService(baseUrl, options) {
964
965
  try {
965
966
  const response = await fetch(apiUrl("/chains"), {
966
967
  method: "GET",
967
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, )
968
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, )
968
969
  });
969
970
  if (!response.ok) {
970
971
  debugLog(debug, scope, "getChains:unavailable", {
@@ -1010,7 +1011,7 @@ function createDepositService(baseUrl, options) {
1010
1011
  const label = kind === "fiat" ? "Swapped widget URL" : "Swapped Connect URL";
1011
1012
  const response = await fetch(apiUrl("/onramp/orders"), {
1012
1013
  method: "POST",
1013
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1014
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1014
1015
  body: JSON.stringify({
1015
1016
  provider: "swapped",
1016
1017
  kind,
@@ -1051,7 +1052,7 @@ function createDepositService(baseUrl, options) {
1051
1052
  });
1052
1053
  const response = await fetch(url, {
1053
1054
  method: "POST",
1054
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1055
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1055
1056
  body: JSON.stringify({ account: params })
1056
1057
  });
1057
1058
  if (!response.ok) {
@@ -1086,7 +1087,7 @@ function createDepositService(baseUrl, options) {
1086
1087
  debugLog(debug, scope, "fetchPortfolio:request", { url, address });
1087
1088
  const response = await fetch(url, {
1088
1089
  method: "GET",
1089
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, )
1090
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, )
1090
1091
  });
1091
1092
  if (!response.ok) {
1092
1093
  const error = await response.json().catch(() => ({ error: "Unknown error" }));
@@ -1137,7 +1138,7 @@ function createDepositService(baseUrl, options) {
1137
1138
  });
1138
1139
  const response = await fetch(url, {
1139
1140
  method: "GET",
1140
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, )
1141
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, )
1141
1142
  });
1142
1143
  if (!response.ok) {
1143
1144
  const error = await response.json().catch(() => ({ error: "Unknown error" }));
@@ -1166,7 +1167,7 @@ function createDepositService(baseUrl, options) {
1166
1167
  debugLog(debug, scope, "checkAccount:request", { url, address });
1167
1168
  const response = await fetch(url, {
1168
1169
  method: "GET",
1169
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, )
1170
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, )
1170
1171
  });
1171
1172
  if (!response.ok) {
1172
1173
  const error = await response.json().catch(() => ({ error: "Unknown error" }));
@@ -1202,7 +1203,7 @@ function createDepositService(baseUrl, options) {
1202
1203
  );
1203
1204
  const response = await fetch(url, {
1204
1205
  method: "GET",
1205
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1206
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1206
1207
  cache: "no-store"
1207
1208
  });
1208
1209
  if (!response.ok) {
@@ -1230,7 +1231,7 @@ function createDepositService(baseUrl, options) {
1230
1231
  );
1231
1232
  const response = await fetch(url, {
1232
1233
  method: "GET",
1233
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1234
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1234
1235
  cache: "no-store"
1235
1236
  });
1236
1237
  if (!response.ok) {
@@ -1254,7 +1255,7 @@ function createDepositService(baseUrl, options) {
1254
1255
  );
1255
1256
  const response = await fetch(url, {
1256
1257
  method: "GET",
1257
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1258
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1258
1259
  cache: "no-store"
1259
1260
  });
1260
1261
  if (!response.ok) {
@@ -1276,7 +1277,7 @@ function createDepositService(baseUrl, options) {
1276
1277
  async getPositions(address) {
1277
1278
  const url = apiUrl(`/positions/${address}`);
1278
1279
  debugLog(debug, scope, "getPositions:request", { url, address });
1279
- const response = await fetch(url, { headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ) });
1280
+ const response = await fetch(url, { headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ) });
1280
1281
  if (!response.ok) {
1281
1282
  const error = await response.json().catch(() => ({ error: "Unknown error" }));
1282
1283
  debugError(debug, scope, "getPositions:failed", error, {
@@ -1310,7 +1311,7 @@ function createDepositService(baseUrl, options) {
1310
1311
  });
1311
1312
  const response = await fetch(url, {
1312
1313
  method: "POST",
1313
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1314
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1314
1315
  body: JSON.stringify({ account, market, chainId, asset, amount })
1315
1316
  });
1316
1317
  if (!response.ok) {
@@ -1346,7 +1347,7 @@ function createDepositService(baseUrl, options) {
1346
1347
  });
1347
1348
  const response = await fetch(url, {
1348
1349
  method: "POST",
1349
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1350
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1350
1351
  body: JSON.stringify({
1351
1352
  depositWallet,
1352
1353
  owner,
@@ -1388,7 +1389,7 @@ function createDepositService(baseUrl, options) {
1388
1389
  });
1389
1390
  const response = await fetch(url, {
1390
1391
  method: "GET",
1391
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1392
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1392
1393
  cache: "no-store"
1393
1394
  });
1394
1395
  if (!response.ok) {
@@ -1438,7 +1439,7 @@ function createDepositService(baseUrl, options) {
1438
1439
  });
1439
1440
  const response = await fetch(url, {
1440
1441
  method: "GET",
1441
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1442
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1442
1443
  cache: "no-store"
1443
1444
  });
1444
1445
  if (!response.ok) {
@@ -1492,7 +1493,7 @@ function createDepositService(baseUrl, options) {
1492
1493
  try {
1493
1494
  const response = await fetch(url, {
1494
1495
  method: "POST",
1495
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1496
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1496
1497
  body: JSON.stringify(body),
1497
1498
  cache: "no-store",
1498
1499
  signal
@@ -1542,7 +1543,7 @@ function createDepositService(baseUrl, options) {
1542
1543
  try {
1543
1544
  const response = await fetch(url, {
1544
1545
  method: "POST",
1545
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1546
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1546
1547
  body: JSON.stringify({ ...params, kind: "auto" }),
1547
1548
  cache: "no-store",
1548
1549
  signal
@@ -1645,7 +1646,7 @@ function createDepositService(baseUrl, options) {
1645
1646
  try {
1646
1647
  response = await fetch(url, {
1647
1648
  method: "POST",
1648
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1649
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1649
1650
  body: JSON.stringify(params)
1650
1651
  });
1651
1652
  } catch (error) {
@@ -1729,7 +1730,7 @@ function createDepositService(baseUrl, options) {
1729
1730
  debugLog(debug, scope, "getSwappedConnectExchanges:request");
1730
1731
  const response = await fetch(url, {
1731
1732
  method: "GET",
1732
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1733
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1733
1734
  cache: "no-store"
1734
1735
  });
1735
1736
  if (!response.ok) {
@@ -1769,7 +1770,7 @@ function createDepositService(baseUrl, options) {
1769
1770
  try {
1770
1771
  const response = await fetch(apiUrl("/onramp/providers"), {
1771
1772
  method: "GET",
1772
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1773
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1773
1774
  cache: "no-store"
1774
1775
  });
1775
1776
  if (!response.ok) return null;
@@ -1802,7 +1803,7 @@ function createDepositService(baseUrl, options) {
1802
1803
  try {
1803
1804
  const response = await fetch(url, {
1804
1805
  method: "GET",
1805
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1806
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1806
1807
  cache: "no-store"
1807
1808
  });
1808
1809
  if (!response.ok) {
@@ -1890,7 +1891,7 @@ function createDepositService(baseUrl, options) {
1890
1891
  try {
1891
1892
  const response = await fetch(url, {
1892
1893
  method: "GET",
1893
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1894
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1894
1895
  cache: "no-store"
1895
1896
  });
1896
1897
  if (!response.ok) {
@@ -1915,7 +1916,7 @@ function createDepositService(baseUrl, options) {
1915
1916
  const url = apiUrl(`/onramp/orders/${encodeURIComponent(orderId)}`);
1916
1917
  const response = await fetch(url, {
1917
1918
  method: "GET",
1918
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
1919
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
1919
1920
  cache: "no-store"
1920
1921
  });
1921
1922
  if (!response.ok) return null;
@@ -3139,7 +3140,7 @@ function createIngestTransport(options) {
3139
3140
  try {
3140
3141
  response = await fetchImpl(mintUrl, {
3141
3142
  method: "POST",
3142
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
3143
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
3143
3144
  signal: _optionalChain([controller, 'optionalAccess', _172 => _172.signal])
3144
3145
  });
3145
3146
  } catch (e9) {
@@ -3400,7 +3401,7 @@ function AnalyticsSession(props) {
3400
3401
  type: "analytics_ingest_failure",
3401
3402
  session_id: sessionIdRef.current,
3402
3403
  modal,
3403
- widget_version: _chunkD3R3O4CYcjs.MODAL_VERSION,
3404
+ widget_version: _chunkVQAV6ESIcjs.MODAL_VERSION,
3404
3405
  timestamp: nowRef.current().toISOString(),
3405
3406
  reason,
3406
3407
  ...status === void 0 ? {} : { status },
@@ -3428,7 +3429,7 @@ function AnalyticsSession(props) {
3428
3429
  proxyOrigin,
3429
3430
  sessionId: sessionIdRef.current,
3430
3431
  modal,
3431
- widgetVersion: _chunkD3R3O4CYcjs.MODAL_VERSION,
3432
+ widgetVersion: _chunkVQAV6ESIcjs.MODAL_VERSION,
3432
3433
  sessionProperties: sessionPropertiesRef.current,
3433
3434
  onFailure: (failure) => emitFailure(failure),
3434
3435
  fetchImpl: props.fetchImpl,
@@ -3484,7 +3485,7 @@ function AnalyticsSession(props) {
3484
3485
  ...payload,
3485
3486
  session_id: sessionIdRef.current,
3486
3487
  modal,
3487
- widget_version: _chunkD3R3O4CYcjs.MODAL_VERSION,
3488
+ widget_version: _chunkVQAV6ESIcjs.MODAL_VERSION,
3488
3489
  timestamp: nowRef.current().toISOString(),
3489
3490
  session_properties: sessionPropertiesRef.current,
3490
3491
  funding_method: fundingMethod
@@ -3503,7 +3504,7 @@ function AnalyticsSession(props) {
3503
3504
  ...payload,
3504
3505
  session_id: sessionIdRef.current,
3505
3506
  modal,
3506
- widget_version: _chunkD3R3O4CYcjs.MODAL_VERSION,
3507
+ widget_version: _chunkVQAV6ESIcjs.MODAL_VERSION,
3507
3508
  timestamp: nowRef.current().toISOString(),
3508
3509
  session_properties: sessionPropertiesRef.current
3509
3510
  };
@@ -3519,7 +3520,7 @@ function AnalyticsSession(props) {
3519
3520
  ...payload,
3520
3521
  session_id: sessionIdRef.current,
3521
3522
  modal,
3522
- widget_version: _chunkD3R3O4CYcjs.MODAL_VERSION,
3523
+ widget_version: _chunkVQAV6ESIcjs.MODAL_VERSION,
3523
3524
  timestamp: nowRef.current().toISOString(),
3524
3525
  session_properties: sessionPropertiesRef.current
3525
3526
  };
@@ -3925,7 +3926,7 @@ function PoweredBy() {
3925
3926
  }
3926
3927
  PoweredBy.displayName = "PoweredBy";
3927
3928
 
3928
- // src/components/history/BankOrderCard.tsx
3929
+ // src/components/history/OrderCard.tsx
3929
3930
 
3930
3931
 
3931
3932
  // src/components/history/HistoryTransactionLink.tsx
@@ -4032,7 +4033,7 @@ var BANK_ONRAMP_COPY = {
4032
4033
  }
4033
4034
  };
4034
4035
 
4035
- // src/components/history/BankOrderCard.tsx
4036
+ // src/components/history/OrderCard.tsx
4036
4037
 
4037
4038
  function bankSupportHref(value) {
4038
4039
  if (!value) return void 0;
@@ -4043,7 +4044,7 @@ function bankSupportHref(value) {
4043
4044
  return void 0;
4044
4045
  }
4045
4046
  }
4046
- function BankOrderCard({
4047
+ function OrderCard({
4047
4048
  order,
4048
4049
  supportUrl,
4049
4050
  children,
@@ -4055,7 +4056,12 @@ function BankOrderCard({
4055
4056
  const subFee = [order.stages.conversion, order.stages.delivery].some(
4056
4057
  (stage) => stage.status === "failed" && stage.reason === "sub_fee"
4057
4058
  );
4058
- const support = bankSupportHref(supportUrl);
4059
+ const exchange = order.rail.kind === "exchange";
4060
+ const bank = order.provider === "noah" || order.rail.kind === "fiat" && order.rail.method === "bank-transfer";
4061
+ const title = exchange ? "Exchange transfer" : bank ? "Bank transfer" : "Card payment";
4062
+ const Icon = exchange ? _chunkG264OM23cjs.CoinsIcon : bank ? _chunkG264OM23cjs.BankIcon : _chunkG264OM23cjs.CardIcon;
4063
+ const noun = bank ? "bank transfer" : "payment";
4064
+ const support = order.provider === "noah" ? bankSupportHref(supportUrl) : void 0;
4059
4065
  const { delivery } = order.stages;
4060
4066
  const deliveryTxHash = "txHash" in delivery ? delivery.txHash : void 0;
4061
4067
  const needsHelp = ["failed", "returned", "on_hold"].includes(view.progress);
@@ -4087,7 +4093,7 @@ function BankOrderCard({
4087
4093
  month: "short",
4088
4094
  year: "numeric"
4089
4095
  });
4090
- const description = subFee ? "The transfer was consumed by the provider\u2019s fees. No crypto was delivered." : label === "Failed" && deposit ? "Crypto arrived, but settlement to your destination could not be completed." : label === "Completed" ? "Your bank transfer has completed and the crypto reached its destination." : label === "Settled" ? "Your bank transfer has settled into crypto. Final delivery is being confirmed." : label === "Settling" ? "Your bank transfer is being settled into crypto." : label === "Detected" ? "Your bank transfer was detected and is awaiting settlement." : BANK_ONRAMP_COPY[view.progress].subtitle;
4096
+ const description = subFee ? "The transfer was consumed by the provider\u2019s fees. No crypto was delivered." : label === "Failed" && deposit ? "Crypto arrived, but settlement to your destination could not be completed." : label === "Completed" ? `Your ${noun} has completed and the crypto reached its destination.` : label === "Settled" ? `Your ${noun} has settled into crypto. Final delivery is being confirmed.` : label === "Settling" ? `Your ${noun} is being settled into crypto.` : label === "Detected" ? `Your ${noun} was detected and is awaiting settlement.` : order.provider === "noah" || label === "Under review" ? BANK_ONRAMP_COPY[view.progress].subtitle : label === "Returned" ? "The payment was refunded." : "The payment could not be completed. No crypto was delivered.";
4091
4097
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4092
4098
  "div",
4093
4099
  {
@@ -4102,9 +4108,9 @@ function BankOrderCard({
4102
4108
  "aria-expanded": expanded,
4103
4109
  "aria-controls": panelId,
4104
4110
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-row", children: [
4105
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-history-card-icons", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG264OM23cjs.BankIcon, {}) }) }),
4111
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-history-card-icons", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, {}) }) }),
4106
4112
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-text", children: [
4107
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-title", children: "Bank transfer" }),
4113
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-title", children: title }),
4108
4114
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "time", { className: "rs-history-card-date", dateTime: order.createdAt, children: date })
4109
4115
  ] }),
4110
4116
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-side", children: [
@@ -4367,7 +4373,7 @@ function formatAmount(rawAmount, decimals) {
4367
4373
  }
4368
4374
  }
4369
4375
  function DepositHistoryPanel({
4370
- bankHistory,
4376
+ orderHistory,
4371
4377
  bankSupportUrl,
4372
4378
  deposits,
4373
4379
  isLoading,
@@ -4495,7 +4501,7 @@ function DepositHistoryPanel({
4495
4501
  ]
4496
4502
  }
4497
4503
  ),
4498
- (isLoading || _optionalChain([bankHistory, 'optionalAccess', _242 => _242.loading])) && deposits.length === 0 && !_optionalChain([bankHistory, 'optionalAccess', _243 => _243.orders, 'access', _244 => _244.length]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
4504
+ (isLoading || _optionalChain([orderHistory, 'optionalAccess', _242 => _242.loading])) && deposits.length === 0 && !_optionalChain([orderHistory, 'optionalAccess', _243 => _243.orders, 'access', _244 => _244.length]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
4499
4505
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG264OM23cjs.HistoryIcon, {}) }),
4500
4506
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
4501
4507
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG264OM23cjs.Spinner, { className: "rs-spinner--sm" }),
@@ -4509,18 +4515,18 @@ function DepositHistoryPanel({
4509
4515
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
4510
4516
  ] })
4511
4517
  ] }),
4512
- _optionalChain([bankHistory, 'optionalAccess', _245 => _245.error]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { role: "status", children: bankHistory.error }),
4513
- !isLoading && !error && !_optionalChain([bankHistory, 'optionalAccess', _246 => _246.loading]) && !_optionalChain([bankHistory, 'optionalAccess', _247 => _247.error]) && !_optionalChain([bankHistory, 'optionalAccess', _248 => _248.orders, 'access', _249 => _249.length]) && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
4518
+ _optionalChain([orderHistory, 'optionalAccess', _245 => _245.error]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { role: "status", children: orderHistory.error }),
4519
+ !isLoading && !error && !_optionalChain([orderHistory, 'optionalAccess', _246 => _246.loading]) && !_optionalChain([orderHistory, 'optionalAccess', _247 => _247.error]) && !_optionalChain([orderHistory, 'optionalAccess', _248 => _248.orders, 'access', _249 => _249.length]) && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
4514
4520
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG264OM23cjs.HistoryIcon, {}) }),
4515
4521
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
4516
4522
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
4517
4523
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
4518
4524
  ] })
4519
4525
  ] }),
4520
- (visibleDeposits.length > 0 || Boolean(_optionalChain([bankHistory, 'optionalAccess', _250 => _250.orders, 'access', _251 => _251.length]))) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-list", children: [
4526
+ (visibleDeposits.length > 0 || Boolean(_optionalChain([orderHistory, 'optionalAccess', _250 => _250.orders, 'access', _251 => _251.length]))) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-list", children: [
4521
4527
  [
4522
4528
  ...visibleDeposits.filter(
4523
- (deposit) => !_optionalChain([bankHistory, 'optionalAccess', _252 => _252.orders, 'access', _253 => _253.some, 'call', _254 => _254(
4529
+ (deposit) => !_optionalChain([orderHistory, 'optionalAccess', _252 => _252.orders, 'access', _253 => _253.some, 'call', _254 => _254(
4524
4530
  (order) => order.stages.delivery.status === "completed" && order.stages.delivery.depositId === deposit.id
4525
4531
  )])
4526
4532
  ).map((deposit, i) => ({
@@ -4539,15 +4545,15 @@ function DepositHistoryPanel({
4539
4545
  deposit.txHash || i
4540
4546
  )
4541
4547
  })),
4542
- ...(_nullishCoalesce(_optionalChain([bankHistory, 'optionalAccess', _255 => _255.orders]), () => ( []))).map((order) => {
4548
+ ...(_nullishCoalesce(_optionalChain([orderHistory, 'optionalAccess', _255 => _255.orders]), () => ( []))).map((order) => {
4543
4549
  const delivery = order.stages.delivery;
4544
4550
  const linked = delivery.status === "completed" ? visibleDeposits.find(
4545
4551
  (deposit) => deposit.id === delivery.depositId
4546
4552
  ) : void 0;
4547
4553
  return {
4548
- id: `bank:${order.id}`,
4554
+ id: `order:${order.id}`,
4549
4555
  createdAt: order.createdAt,
4550
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BankOrderCard, { order, deposit: linked, supportUrl: bankSupportUrl, children: linked && normalizeStatus(linked.status) === "failed" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4556
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrderCard, { order, deposit: linked, supportUrl: bankSupportUrl, children: linked && normalizeStatus(linked.status) === "failed" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4551
4557
  HistoryCard,
4552
4558
  {
4553
4559
  deposit: linked,
@@ -4561,14 +4567,14 @@ function DepositHistoryPanel({
4561
4567
  };
4562
4568
  })
4563
4569
  ].sort((a, b) => b.createdAt.localeCompare(a.createdAt)).map((entry) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: entry.content }, entry.id)),
4564
- _optionalChain([bankHistory, 'optionalAccess', _256 => _256.hasMore]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4570
+ _optionalChain([orderHistory, 'optionalAccess', _256 => _256.hasMore]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4565
4571
  "button",
4566
4572
  {
4567
4573
  type: "button",
4568
4574
  className: "rs-history-load-more",
4569
- disabled: bankHistory.loading,
4570
- onClick: bankHistory.loadMore,
4571
- children: "Load older bank transfers"
4575
+ disabled: orderHistory.loading,
4576
+ onClick: orderHistory.loadMore,
4577
+ children: "Load older payments"
4572
4578
  }
4573
4579
  ),
4574
4580
  hasMore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -5156,7 +5162,7 @@ async function submitSignedRecovery(params) {
5156
5162
  // The shared const, so recovery carries `x-deposit-modal-version` like
5157
5163
  // every other backend call. Without it this path would be invisible in the
5158
5164
  // per-client version telemetry the processor records.
5159
- headers: _chunkD3R3O4CYcjs.serviceHeaders.call(void 0, ),
5165
+ headers: _chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
5160
5166
  // `depositId` as a string: it is a uint256 upstream and JSON numbers lose
5161
5167
  // precision well before that range.
5162
5168
  body: JSON.stringify({ depositId, destination, signature })
@@ -6063,7 +6069,7 @@ HistoryRecoveryFlow.displayName = "HistoryRecoveryFlow";
6063
6069
 
6064
6070
  function HistoryOverlay({
6065
6071
  controller,
6066
- bankHistory,
6072
+ orderHistory,
6067
6073
  bankSupportUrl,
6068
6074
  backLabel,
6069
6075
  title,
@@ -6206,7 +6212,7 @@ function HistoryOverlay({
6206
6212
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6207
6213
  DepositHistoryPanel,
6208
6214
  {
6209
- bankHistory,
6215
+ orderHistory,
6210
6216
  bankSupportUrl,
6211
6217
  deposits: controller.deposits,
6212
6218
  isLoading: controller.isLoading,
@@ -6630,6 +6636,7 @@ var MANAGED_ACCOUNT_REMOVALS = {
6630
6636
  };
6631
6637
  var REMOVED_PROPS = {
6632
6638
  DepositModal: {
6639
+ bankOnramp: "renamed to `virtualAccountOnramp`; its session is the `getCustomerSession` prop.",
6633
6640
  ...MANAGED_ACCOUNT_REMOVALS,
6634
6641
  dappImports: "renamed to `assetMigrations`.",
6635
6642
  initialDappImport: "renamed to `initialAssetMigration`.",
@@ -6648,7 +6655,8 @@ var REMOVED_UI_CONFIG_KEYS = {
6648
6655
  checkLiquidity: "removed \u2014 the modal no longer surfaces a liquidity cap. Route capacity is enforced when the deposit is processed.",
6649
6656
  showHistoryButton: "removed \u2014 deposit history is always offered, from the modal's home screen. There is no way to hide it."
6650
6657
  };
6651
- var REMOVED_BANK_ONRAMP_KEYS = {
6658
+ var REMOVED_VIRTUAL_ACCOUNT_KEYS = {
6659
+ getSession: "use the `getCustomerSession` prop.",
6652
6660
  currency: "removed \u2014 the currency follows the residence the customer declares at verification: EUR inside SEPA, USD elsewhere."
6653
6661
  };
6654
6662
  var warned = /* @__PURE__ */ new Set();
@@ -6668,14 +6676,14 @@ function warnRemovedProps(component, props) {
6668
6676
  warnOnce(component, key, table[key]);
6669
6677
  }
6670
6678
  }
6671
- const bankOnramp = props.bankOnramp;
6672
- if (bankOnramp && typeof bankOnramp === "object") {
6673
- for (const key of Object.keys(REMOVED_BANK_ONRAMP_KEYS)) {
6674
- if (Object.prototype.hasOwnProperty.call(bankOnramp, key)) {
6679
+ const virtualAccountOnramp = props.virtualAccountOnramp;
6680
+ if (virtualAccountOnramp && typeof virtualAccountOnramp === "object") {
6681
+ for (const key of Object.keys(REMOVED_VIRTUAL_ACCOUNT_KEYS)) {
6682
+ if (Object.prototype.hasOwnProperty.call(virtualAccountOnramp, key)) {
6675
6683
  warnOnce(
6676
6684
  component,
6677
- `bankOnramp.${key}`,
6678
- REMOVED_BANK_ONRAMP_KEYS[key]
6685
+ `virtualAccountOnramp.${key}`,
6686
+ REMOVED_VIRTUAL_ACCOUNT_KEYS[key]
6679
6687
  );
6680
6688
  }
6681
6689
  }
@@ -8638,4 +8646,5 @@ function mapError(error) {
8638
8646
 
8639
8647
 
8640
8648
 
8641
- exports.Modal = Modal; exports.Callout = Callout; exports.CdnIcon = CdnIcon; exports.ListRow = ListRow; exports.PoweredBy = PoweredBy; exports.catalogKeyForChain = catalogKeyForChain; exports.debugLog = debugLog; exports.debugError = debugError; exports.SOLANA_TOKENS = SOLANA_TOKENS; exports.resolveSolanaToken = resolveSolanaToken; exports.isNativeSol = isNativeSol; exports.hostedOrderStateFromSwapped = hostedOrderStateFromSwapped; exports.mergeHostedOrderState = mergeHostedOrderState; exports.hasReached = hasReached; exports.getAssetId = getAssetId; exports.chainIdsByValue = chainIdsByValue; exports.portfolioToAssets = portfolioToAssets; exports.isNativeAsset = isNativeAsset; exports.quoteFeeRow = quoteFeeRow; exports.SUPPORTED_CONNECT_EXCHANGE_COUNT = SUPPORTED_CONNECT_EXCHANGE_COUNT; exports.resolveAppFeeBps = resolveAppFeeBps; exports.isDepositPolicyRefusal = isDepositPolicyRefusal; exports.PermitDepositSubmitError = PermitDepositSubmitError; exports.createDepositService = createDepositService; exports.depositBoundsViolation = depositBoundsViolation; exports.describePolicyRefusal = describePolicyRefusal; exports.rpcUrlFor = rpcUrlFor; exports.RpcUrlsProvider = RpcUrlsProvider; exports.useRpcUrls = useRpcUrls; exports.useStableRpcUrls = useStableRpcUrls; exports.getPublicClient = getPublicClient; exports.peekRuntimeChains = peekRuntimeChains; exports.primeRuntimeChains = primeRuntimeChains; exports.useChainCatalog = useChainCatalog; exports.useCatalogChain = useCatalogChain; exports.useDepositChainIds = useDepositChainIds; exports.useDestinationChains = useDestinationChains; exports.useTargetTokens = useTargetTokens; exports.useDepositOffer = useDepositOffer; exports.useDepositBounds = useDepositBounds; exports.useRestrictedListExclusion = useRestrictedListExclusion; exports.useIsDepositChain = useIsDepositChain; exports.useChainName = useChainName; exports.useReadClient = useReadClient; exports.useExplorerTxUrl = useExplorerTxUrl; exports.ChainCatalogProvider = ChainCatalogProvider; exports.getExchangeLogoSrc = getExchangeLogoSrc; exports.getExchangeLogo = getExchangeLogo; exports.Button = Button; exports.assetIdFor = assetIdFor; exports.AssetMetadataProvider = AssetMetadataProvider; exports.useAssetStore = useAssetStore; exports.TokenIcon = TokenIcon; exports.resolveCuratedToken = resolveCuratedToken; exports.useTokenDisplays = useTokenDisplays; exports.useTokenDisplay = useTokenDisplay; exports.useIsRecognizedToken = useIsRecognizedToken; exports.currencyFormatter = currencyFormatter; exports.tokenFormatter = tokenFormatter; exports.isUnsupportedChainSwitchError = isUnsupportedChainSwitchError; exports.formatUserError = formatUserError; exports.Tooltip = Tooltip; exports.formatExpectedDuration = formatExpectedDuration; exports.markSubmissionUncertain = markSubmissionUncertain; exports.isSubmissionUncertain = isSubmissionUncertain; exports.formatTokenAmount = formatTokenAmount; exports.isDisplayStablecoinSymbol = isDisplayStablecoinSymbol; exports.formatQuotedReceive = formatQuotedReceive; exports.formatReceiveEstimate = formatReceiveEstimate; exports.getEventTxHash = getEventTxHash; exports.getEventSourceDetails = getEventSourceDetails; exports.isDepositEvent = isDepositEvent; exports.isFailedEvent = isFailedEvent; exports.txRefsMatch = txRefsMatch; exports.failureMessageForEvent = failureMessageForEvent; exports.useTokenPrices = useTokenPrices; exports.ProcessingStep = ProcessingStep; exports.AnalyticsSession = AnalyticsSession; exports.useDepositAnalyticsEmitter = useDepositAnalyticsEmitter; exports.useWithdrawAnalyticsEmitter = useWithdrawAnalyticsEmitter; exports.SetupError = SetupError; exports.deriveAccountSalt = deriveAccountSalt; exports.computeRequestKey = computeRequestKey; exports.computeCacheKey = computeCacheKey; exports.computeIsCacheable = computeIsCacheable; exports.readDedupedAccountSetupResult = readDedupedAccountSetupResult; exports.runAccountSetupDeduped = runAccountSetupDeduped; exports.HistoryEntryButton = HistoryEntryButton; exports.HistoryOverlay = HistoryOverlay; exports.useHistoryPanel = useHistoryPanel; exports.resolveThemeMode = resolveThemeMode; exports.followSystemAppearance = followSystemAppearance; exports.applyTheme = applyTheme; exports.warnRemovedProps = warnRemovedProps; exports.checkBackendUrl = checkBackendUrl; exports.isHistoryEntryVisible = isHistoryEntryVisible; exports.createHistoryAnalytics = createHistoryAnalytics; exports.analyticsTargetProperties = analyticsTargetProperties;
8649
+
8650
+ exports.Modal = Modal; exports.Callout = Callout; exports.CdnIcon = CdnIcon; exports.ListRow = ListRow; exports.PoweredBy = PoweredBy; exports.catalogKeyForChain = catalogKeyForChain; exports.debugLog = debugLog; exports.debugError = debugError; exports.SOLANA_TOKENS = SOLANA_TOKENS; exports.resolveSolanaToken = resolveSolanaToken; exports.isNativeSol = isNativeSol; exports.hostedOrderState = hostedOrderState; exports.hostedOrderStateFromSwapped = hostedOrderStateFromSwapped; exports.mergeHostedOrderState = mergeHostedOrderState; exports.hasReached = hasReached; exports.getAssetId = getAssetId; exports.chainIdsByValue = chainIdsByValue; exports.portfolioToAssets = portfolioToAssets; exports.isNativeAsset = isNativeAsset; exports.quoteFeeRow = quoteFeeRow; exports.SUPPORTED_CONNECT_EXCHANGE_COUNT = SUPPORTED_CONNECT_EXCHANGE_COUNT; exports.resolveAppFeeBps = resolveAppFeeBps; exports.isDepositPolicyRefusal = isDepositPolicyRefusal; exports.PermitDepositSubmitError = PermitDepositSubmitError; exports.createDepositService = createDepositService; exports.depositBoundsViolation = depositBoundsViolation; exports.describePolicyRefusal = describePolicyRefusal; exports.rpcUrlFor = rpcUrlFor; exports.RpcUrlsProvider = RpcUrlsProvider; exports.useRpcUrls = useRpcUrls; exports.useStableRpcUrls = useStableRpcUrls; exports.getPublicClient = getPublicClient; exports.peekRuntimeChains = peekRuntimeChains; exports.primeRuntimeChains = primeRuntimeChains; exports.useChainCatalog = useChainCatalog; exports.useCatalogChain = useCatalogChain; exports.useDepositChainIds = useDepositChainIds; exports.useDestinationChains = useDestinationChains; exports.useTargetTokens = useTargetTokens; exports.useDepositOffer = useDepositOffer; exports.useDepositBounds = useDepositBounds; exports.useRestrictedListExclusion = useRestrictedListExclusion; exports.useIsDepositChain = useIsDepositChain; exports.useChainName = useChainName; exports.useReadClient = useReadClient; exports.useExplorerTxUrl = useExplorerTxUrl; exports.ChainCatalogProvider = ChainCatalogProvider; exports.getExchangeLogoSrc = getExchangeLogoSrc; exports.getExchangeLogo = getExchangeLogo; exports.Button = Button; exports.assetIdFor = assetIdFor; exports.AssetMetadataProvider = AssetMetadataProvider; exports.useAssetStore = useAssetStore; exports.TokenIcon = TokenIcon; exports.resolveCuratedToken = resolveCuratedToken; exports.useTokenDisplays = useTokenDisplays; exports.useTokenDisplay = useTokenDisplay; exports.useIsRecognizedToken = useIsRecognizedToken; exports.currencyFormatter = currencyFormatter; exports.tokenFormatter = tokenFormatter; exports.isUnsupportedChainSwitchError = isUnsupportedChainSwitchError; exports.formatUserError = formatUserError; exports.Tooltip = Tooltip; exports.formatExpectedDuration = formatExpectedDuration; exports.markSubmissionUncertain = markSubmissionUncertain; exports.isSubmissionUncertain = isSubmissionUncertain; exports.formatTokenAmount = formatTokenAmount; exports.isDisplayStablecoinSymbol = isDisplayStablecoinSymbol; exports.formatQuotedReceive = formatQuotedReceive; exports.formatReceiveEstimate = formatReceiveEstimate; exports.getEventTxHash = getEventTxHash; exports.getEventSourceDetails = getEventSourceDetails; exports.isDepositEvent = isDepositEvent; exports.isFailedEvent = isFailedEvent; exports.txRefsMatch = txRefsMatch; exports.failureMessageForEvent = failureMessageForEvent; exports.useTokenPrices = useTokenPrices; exports.ProcessingStep = ProcessingStep; exports.AnalyticsSession = AnalyticsSession; exports.useDepositAnalyticsEmitter = useDepositAnalyticsEmitter; exports.useWithdrawAnalyticsEmitter = useWithdrawAnalyticsEmitter; exports.SetupError = SetupError; exports.deriveAccountSalt = deriveAccountSalt; exports.computeRequestKey = computeRequestKey; exports.computeCacheKey = computeCacheKey; exports.computeIsCacheable = computeIsCacheable; exports.readDedupedAccountSetupResult = readDedupedAccountSetupResult; exports.runAccountSetupDeduped = runAccountSetupDeduped; exports.HistoryEntryButton = HistoryEntryButton; exports.HistoryOverlay = HistoryOverlay; exports.useHistoryPanel = useHistoryPanel; exports.resolveThemeMode = resolveThemeMode; exports.followSystemAppearance = followSystemAppearance; exports.applyTheme = applyTheme; exports.warnRemovedProps = warnRemovedProps; exports.checkBackendUrl = checkBackendUrl; exports.isHistoryEntryVisible = isHistoryEntryVisible; exports.createHistoryAnalytics = createHistoryAnalytics; exports.analyticsTargetProperties = analyticsTargetProperties;
@@ -40,7 +40,7 @@ import {
40
40
  useTokenPrices,
41
41
  useWithdrawAnalyticsEmitter,
42
42
  warnRemovedProps
43
- } from "./chunk-OZPMRTW3.mjs";
43
+ } from "./chunk-UNXUOV3F.mjs";
44
44
  import {
45
45
  BodyHeader,
46
46
  ChevronDownIcon,
@@ -0,0 +1,19 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/core/ramp-utils.ts
2
+ function rampQuery(value) {
3
+ return new URLSearchParams(
4
+ Object.entries(value).filter(([, value2]) => value2 !== void 0).map(([key, value2]) => [key, String(value2)])
5
+ ).toString();
6
+ }
7
+ function rampResourceId(value) {
8
+ if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(
9
+ value
10
+ )) {
11
+ throw new Error("Invalid ramp resource ID");
12
+ }
13
+ return value;
14
+ }
15
+
16
+
17
+
18
+
19
+ exports.rampQuery = rampQuery; exports.rampResourceId = rampResourceId;
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkLVMNNMOZcjs = require('./chunk-LVMNNMOZ.cjs');
3
+ var _chunkCG3JKPUFcjs = require('./chunk-CG3JKPUF.cjs');
4
4
 
5
5
  // src/core/compliance-service.ts
6
6
  function getComplianceStatus(options) {
7
- return _chunkLVMNNMOZcjs.createBearerTransport.call(void 0, options)("/compliance/status");
7
+ return _chunkCG3JKPUFcjs.createBearerTransport.call(void 0, options)("/compliance/status");
8
8
  }
9
9
  function startComplianceVerification(options) {
10
- return _chunkLVMNNMOZcjs.createBearerTransport.call(void 0, options)(
10
+ return _chunkCG3JKPUFcjs.createBearerTransport.call(void 0, options)(
11
11
  "/compliance/verification",
12
12
  {}
13
13
  );