@0xsequence/marketplace-sdk 0.4.5 → 0.4.6

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 (96) hide show
  1. package/dist/{chunk-SEISACMH.js → chunk-2FOUCP2R.js} +119 -123
  2. package/dist/chunk-2FOUCP2R.js.map +1 -0
  3. package/dist/{chunk-KZGDOIZY.js → chunk-36NGHJH5.js} +38 -47
  4. package/dist/chunk-36NGHJH5.js.map +1 -0
  5. package/dist/{chunk-KL5JPUPS.js → chunk-3C2MT5TM.js} +9 -9
  6. package/dist/chunk-3C2MT5TM.js.map +1 -0
  7. package/dist/{chunk-PAZ4MQXZ.js → chunk-5D3ARFFZ.js} +1 -1
  8. package/dist/chunk-5D3ARFFZ.js.map +1 -0
  9. package/dist/{chunk-ZEKRTFBU.js → chunk-DNVERQ5J.js} +12 -2
  10. package/dist/chunk-DNVERQ5J.js.map +1 -0
  11. package/dist/{chunk-FT3J32ZV.js → chunk-LTHX6RXH.js} +2 -2
  12. package/dist/{chunk-KILOCWY2.js → chunk-QVOUL555.js} +2 -2
  13. package/dist/{chunk-CKOWM2ZR.js → chunk-RD7HPANB.js} +4 -4
  14. package/dist/chunk-RD7HPANB.js.map +1 -0
  15. package/dist/{chunk-YUETNNZQ.js → chunk-WM4RGBFQ.js} +1 -10
  16. package/dist/{chunk-YUETNNZQ.js.map → chunk-WM4RGBFQ.js.map} +1 -1
  17. package/dist/{chunk-HTFBQVLV.js → chunk-ZEH4JI2U.js} +2 -2
  18. package/dist/{create-config-DMBOGsJp.d.ts → create-config-BBTTSJyp.d.ts} +2 -2
  19. package/dist/index.d.ts +3 -4
  20. package/dist/index.js +5 -5
  21. package/dist/{marketplace-config-0Rft6_Hv.d.ts → marketplace-config-vioKvBQe.d.ts} +1 -1
  22. package/dist/react/_internal/api/index.d.ts +2 -3
  23. package/dist/react/_internal/api/index.js +2 -2
  24. package/dist/react/_internal/index.d.ts +6 -7
  25. package/dist/react/_internal/index.js +6 -4
  26. package/dist/react/_internal/wagmi/index.d.ts +3 -4
  27. package/dist/react/_internal/wagmi/index.js +2 -2
  28. package/dist/react/hooks/index.d.ts +104 -104
  29. package/dist/react/hooks/index.js +7 -7
  30. package/dist/react/index.d.ts +5 -6
  31. package/dist/react/index.js +9 -9
  32. package/dist/react/ssr/index.js.map +1 -1
  33. package/dist/react/ui/components/index.d.ts +4 -3
  34. package/dist/react/ui/components/index.js +9 -9
  35. package/dist/react/ui/index.d.ts +5 -4
  36. package/dist/react/ui/index.js +9 -9
  37. package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +3 -2
  38. package/dist/react/ui/modals/_internal/components/actionModal/index.js +7 -7
  39. package/dist/{marketplace.gen-jdKqutnd.d.ts → sdk-config-CasNGLz4.d.ts} +24 -1
  40. package/dist/{services-C2O-7p_M.d.ts → services-CbsurKYr.d.ts} +1 -2
  41. package/dist/types/index.d.ts +3 -4
  42. package/dist/types/index.js +4 -4
  43. package/dist/types-rupsBCjv.d.ts +70 -0
  44. package/dist/utils/index.d.ts +3 -2
  45. package/dist/utils/index.js +2 -2
  46. package/package.json +1 -1
  47. package/src/react/_internal/types.ts +51 -1
  48. package/src/react/_internal/{transaction-machine/utils.ts → utils.ts} +1 -1
  49. package/src/react/_internal/{transaction-machine → wallet}/wallet.ts +2 -2
  50. package/src/react/hooks/useCancelOrder.tsx +22 -3
  51. package/src/react/hooks/useCancelTransactionSteps.tsx +3 -5
  52. package/src/react/hooks/useCurrencies.tsx +16 -18
  53. package/src/react/ui/components/_internals/action-button/ActionButton.tsx +1 -1
  54. package/src/react/ui/components/collectible-card/CollectibleCard.tsx +1 -1
  55. package/src/react/ui/modals/BuyModal/hooks/useBuyCollectable.ts +7 -7
  56. package/src/react/ui/modals/BuyModal/hooks/useCheckoutOptions.ts +1 -1
  57. package/src/react/ui/modals/BuyModal/modals/CheckoutModal.tsx +12 -3
  58. package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +11 -2
  59. package/src/react/ui/modals/CreateListingModal/hooks/useGetTokenApproval.ts +1 -1
  60. package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +8 -22
  61. package/src/react/ui/modals/CreateListingModal/store.ts +3 -3
  62. package/src/react/ui/modals/MakeOfferModal/Modal.tsx +17 -24
  63. package/src/react/ui/modals/MakeOfferModal/hooks/useGetTokenApproval.tsx +2 -2
  64. package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +19 -3
  65. package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +9 -23
  66. package/src/react/ui/modals/MakeOfferModal/store.ts +4 -4
  67. package/src/react/ui/modals/SellModal/hooks/useGetTokenApproval.tsx +1 -1
  68. package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +7 -19
  69. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/useHandleTransfer.tsx +1 -1
  70. package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +1 -1
  71. package/src/react/ui/modals/_internal/components/actionModal/ErrorModal.tsx +3 -1
  72. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +4 -0
  73. package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +11 -1
  74. package/src/react/ui/modals/_internal/components/priceInput/index.tsx +3 -0
  75. package/src/react/ui/modals/_internal/components/transactionPreview/useTransactionPreviewTitle.tsx +1 -1
  76. package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +1 -1
  77. package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +1 -1
  78. package/src/react/ui/modals/_internal/components/transactionStatusModal/util/getFormattedType.ts +1 -1
  79. package/src/react/ui/modals/_internal/components/transactionStatusModal/util/getMessage.ts +2 -2
  80. package/src/react/ui/modals/_internal/components/transactionStatusModal/util/getTitle.ts +1 -1
  81. package/tsconfig.tsbuildinfo +1 -1
  82. package/dist/chunk-CKOWM2ZR.js.map +0 -1
  83. package/dist/chunk-KL5JPUPS.js.map +0 -1
  84. package/dist/chunk-KZGDOIZY.js.map +0 -1
  85. package/dist/chunk-PAZ4MQXZ.js.map +0 -1
  86. package/dist/chunk-SEISACMH.js.map +0 -1
  87. package/dist/chunk-ZEKRTFBU.js.map +0 -1
  88. package/dist/sdk-config-xWkdBdrL.d.ts +0 -24
  89. package/dist/types-DZb7GsfL.d.ts +0 -28
  90. package/src/react/_internal/transaction-machine/execute-transaction.ts +0 -676
  91. package/src/react/_internal/transaction-machine/useTransactionMachine.ts +0 -140
  92. /package/dist/{chunk-FT3J32ZV.js.map → chunk-LTHX6RXH.js.map} +0 -0
  93. /package/dist/{chunk-KILOCWY2.js.map → chunk-QVOUL555.js.map} +0 -0
  94. /package/dist/{chunk-HTFBQVLV.js.map → chunk-ZEH4JI2U.js.map} +0 -0
  95. /package/src/react/_internal/{transaction-machine/logger.ts → logger.ts} +0 -0
  96. /package/src/react/_internal/{transaction-machine → wallet}/useWallet.ts +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  ActionModal,
4
4
  CustomSelect,
5
5
  useCurrencyBalance
6
- } from "./chunk-CKOWM2ZR.js";
6
+ } from "./chunk-RD7HPANB.js";
7
7
  import {
8
8
  CalendarIcon_default,
9
9
  MinusIcon_default,
@@ -46,20 +46,19 @@ import {
46
46
  useGenerateListingTransaction,
47
47
  useGenerateOfferTransaction,
48
48
  useGenerateSellTransaction,
49
- useGetReceiptFromHash,
50
49
  useHighestOffer,
51
50
  useListBalances,
52
51
  useLowestListing,
53
52
  useMarketplaceConfig,
54
53
  useRoyaltyPercentage,
55
54
  useTransferTokens
56
- } from "./chunk-KZGDOIZY.js";
55
+ } from "./chunk-36NGHJH5.js";
57
56
  import {
58
57
  AlertMessage,
59
58
  switchChainModal_default,
60
59
  useSwitchChainModal,
61
60
  useWallet
62
- } from "./chunk-KL5JPUPS.js";
61
+ } from "./chunk-3C2MT5TM.js";
63
62
  import {
64
63
  iconVariants
65
64
  } from "./chunk-LF44FCG5.js";
@@ -67,20 +66,20 @@ import {
67
66
  calculatePriceDifferencePercentage,
68
67
  getPublicRpcClient,
69
68
  truncateMiddle
70
- } from "./chunk-FT3J32ZV.js";
69
+ } from "./chunk-LTHX6RXH.js";
71
70
  import {
72
71
  getProviderEl
73
- } from "./chunk-ZEKRTFBU.js";
72
+ } from "./chunk-DNVERQ5J.js";
74
73
  import {
75
74
  balanceQueries,
76
75
  collectableKeys,
77
76
  getMarketplaceClient,
78
77
  getQueryClient
79
- } from "./chunk-KILOCWY2.js";
78
+ } from "./chunk-QVOUL555.js";
80
79
  import {
81
80
  InvalidContractTypeError,
82
81
  InvalidStepError
83
- } from "./chunk-YUETNNZQ.js";
82
+ } from "./chunk-WM4RGBFQ.js";
84
83
 
85
84
  // src/react/ui/modals/modal-provider.tsx
86
85
  import { observer as observer14 } from "@legendapp/state/react";
@@ -104,9 +103,9 @@ var AccountModal = observer(function AccountModal2() {
104
103
  });
105
104
 
106
105
  // src/react/ui/modals/MakeOfferModal/Modal.tsx
107
- import { Show, observer as observer7, use$ } from "@legendapp/state/react";
106
+ import { Show, observer as observer7 } from "@legendapp/state/react";
108
107
  import { useState as useState7 } from "react";
109
- import { parseUnits as parseUnits2, zeroAddress } from "viem";
108
+ import { parseUnits as parseUnits2 } from "viem";
110
109
 
111
110
  // src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx
112
111
  import { useEffect as useEffect3 } from "react";
@@ -122,7 +121,7 @@ var useGetTokenApprovalData = (params) => {
122
121
  tokenId: params.tokenId,
123
122
  quantity: "1",
124
123
  currencyAddress: params.currencyAddress,
125
- pricePerToken: "100000",
124
+ pricePerToken: "1",
126
125
  expiry: String(Number(dateToUnixTime(/* @__PURE__ */ new Date())) + ONE_DAY_IN_SECONDS)
127
126
  };
128
127
  const isEnabled = wallet && params.query?.enabled !== false;
@@ -159,9 +158,6 @@ var useGetTokenApprovalData = (params) => {
159
158
  };
160
159
  };
161
160
 
162
- // src/react/_internal/transaction-machine/execute-transaction.ts
163
- import { avalanche, optimism } from "viem/chains";
164
-
165
161
  // src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx
166
162
  import {
167
163
  CloseIcon,
@@ -744,7 +740,6 @@ var useTransactionSteps = ({
744
740
  const { show: showTransactionStatusModal } = useTransactionStatusModal();
745
741
  const sdkConfig = useConfig();
746
742
  const marketplaceClient = getMarketplaceClient(chainId, sdkConfig);
747
- const { waitForReceipt } = useGetReceiptFromHash();
748
743
  const { generateOfferTransactionAsync, isPending: generatingSteps } = useGenerateOfferTransaction({
749
744
  chainId,
750
745
  onSuccess: (steps) => {
@@ -790,11 +785,9 @@ var useTransactionSteps = ({
790
785
  Number(chainId),
791
786
  approvalStep
792
787
  );
793
- const receipt = await waitForReceipt(hash);
794
- if (receipt) {
795
- steps$.approval.isExecuting.set(false);
796
- steps$.approval.exist.set(false);
797
- }
788
+ await wallet.handleConfirmTransactionStep(hash, Number(chainId));
789
+ steps$.approval.isExecuting.set(false);
790
+ steps$.approval.exist.set(false);
798
791
  } catch (error) {
799
792
  steps$.approval.isExecuting.set(false);
800
793
  }
@@ -844,19 +837,13 @@ var useTransactionSteps = ({
844
837
  }
845
838
  });
846
839
  if (hash) {
847
- await waitForReceipt(hash);
840
+ await wallet.handleConfirmTransactionStep(hash, Number(chainId));
848
841
  steps$.transaction.isExecuting.set(false);
849
842
  steps$.transaction.exist.set(false);
850
- if (callbacks?.onSuccess && typeof callbacks.onSuccess === "function") {
851
- callbacks.onSuccess({ hash });
852
- }
853
843
  }
854
844
  if (orderId) {
855
845
  steps$.transaction.isExecuting.set(false);
856
846
  steps$.transaction.exist.set(false);
857
- if (callbacks?.onSuccess && typeof callbacks.onSuccess === "function") {
858
- callbacks.onSuccess({ orderId });
859
- }
860
847
  }
861
848
  } catch (error) {
862
849
  steps$.transaction.isExecuting.set(false);
@@ -907,13 +894,21 @@ var useMakeOffer = ({
907
894
  closeMainModal,
908
895
  steps$
909
896
  }) => {
897
+ const { data: marketplaceConfig, isLoading: marketplaceIsLoading } = useMarketplaceConfig();
898
+ const collectionConfig = marketplaceConfig?.collections.find(
899
+ (c) => c.collectionAddress === collectionAddress
900
+ );
901
+ orderbookKind = orderbookKind ?? collectionConfig?.destinationMarketplace ?? "sequence_marketplace_v2" /* sequence_marketplace_v2 */;
910
902
  const { data: tokenApproval, isLoading: tokenApprovalIsLoading } = useGetTokenApprovalData({
911
903
  chainId,
912
904
  tokenId: offerInput.offer.tokenId,
913
905
  collectionAddress,
914
906
  currencyAddress: offerInput.offer.currencyAddress,
915
907
  contractType: offerInput.contractType,
916
- orderbook: orderbookKind
908
+ orderbook: orderbookKind,
909
+ query: {
910
+ enabled: !marketplaceIsLoading
911
+ }
917
912
  });
918
913
  useEffect3(() => {
919
914
  if (tokenApproval?.step && !tokenApprovalIsLoading) {
@@ -945,7 +940,8 @@ var ErrorModal = ({
945
940
  isOpen,
946
941
  chainId,
947
942
  onClose,
948
- title
943
+ title,
944
+ message
949
945
  }) => /* @__PURE__ */ jsx6(
950
946
  ActionModal,
951
947
  {
@@ -954,7 +950,7 @@ var ErrorModal = ({
954
950
  onClose,
955
951
  title,
956
952
  ctas: [],
957
- children: /* @__PURE__ */ jsx6(Box5, { display: "flex", justifyContent: "center", alignItems: "center", padding: "4", children: "Error loading item details" })
953
+ children: /* @__PURE__ */ jsx6(Box5, { display: "flex", justifyContent: "center", alignItems: "center", padding: "4", children: message || "Error loading item details" })
958
954
  }
959
955
  );
960
956
 
@@ -1072,6 +1068,11 @@ function CalendarPopover({
1072
1068
  // src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx
1073
1069
  import { useState as useState3 } from "react";
1074
1070
  import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
1071
+ var setToEndOfDay = (date) => {
1072
+ const endOfDay = new Date(date);
1073
+ endOfDay.setHours(23, 59, 59, 999);
1074
+ return endOfDay;
1075
+ };
1075
1076
  var PRESET_RANGES = {
1076
1077
  TODAY: {
1077
1078
  label: "Today",
@@ -1113,7 +1114,8 @@ var ExpirationDateSelect = observer4(function ExpirationDateSelect2({
1113
1114
  if (!presetRange) {
1114
1115
  return;
1115
1116
  }
1116
- const newDate = addDays(/* @__PURE__ */ new Date(), presetRange.offset);
1117
+ const baseDate = /* @__PURE__ */ new Date();
1118
+ const newDate = presetRange.value === "today" ? setToEndOfDay(baseDate) : addDays(baseDate, presetRange.offset);
1117
1119
  $date.set(newDate);
1118
1120
  }
1119
1121
  function handleDateValueChange(date) {
@@ -1284,13 +1286,15 @@ var CurrencyOptionsSelect = observer5(function CurrencyOptionsSelect2({
1284
1286
  chainId,
1285
1287
  collectionAddress,
1286
1288
  secondCurrencyAsDefault,
1287
- selectedCurrency$
1289
+ selectedCurrency$,
1290
+ includeNativeCurrency
1288
1291
  }) {
1289
1292
  const currency = selectedCurrency$.get();
1290
1293
  const currencyOptions = useCurrencyOptions({ collectionAddress });
1291
1294
  const { data: currencies, isLoading: currenciesLoading } = useCurrencies({
1292
1295
  chainId,
1293
- currencyOptions
1296
+ currencyOptions,
1297
+ includeNativeCurrency
1294
1298
  });
1295
1299
  useEffect4(() => {
1296
1300
  if (currencies && currencies.length > 0 && !selectedCurrency$.get()?.contractAddress) {
@@ -1423,7 +1427,8 @@ var PriceInput = observer6(function PriceInput2({
1423
1427
  $price,
1424
1428
  onPriceChange,
1425
1429
  checkBalance,
1426
- secondCurrencyAsDefault
1430
+ secondCurrencyAsDefault,
1431
+ includeNativeCurrency
1427
1432
  }) {
1428
1433
  const { address: accountAddress } = useAccount2();
1429
1434
  const currencyDecimals = $price.currency.decimals.get() || 18;
@@ -1487,7 +1492,8 @@ var PriceInput = observer6(function PriceInput2({
1487
1492
  selectedCurrency$: $price.currency,
1488
1493
  collectionAddress,
1489
1494
  chainId,
1490
- secondCurrencyAsDefault
1495
+ secondCurrencyAsDefault,
1496
+ includeNativeCurrency
1491
1497
  }
1492
1498
  ),
1493
1499
  value,
@@ -1681,7 +1687,7 @@ var initialState2 = {
1681
1687
  collectionAddress: "",
1682
1688
  chainId: "",
1683
1689
  collectibleId: "",
1684
- orderbookKind: "reservoir" /* reservoir */,
1690
+ orderbookKind: void 0,
1685
1691
  callbacks: void 0,
1686
1692
  offerPrice: {
1687
1693
  amountRaw: "0",
@@ -1725,7 +1731,6 @@ var makeOfferModal$ = observable3({
1725
1731
  });
1726
1732
 
1727
1733
  // src/react/ui/modals/MakeOfferModal/Modal.tsx
1728
- import { Box as Box12 } from "@0xsequence/design-system";
1729
1734
  import { Fragment, jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
1730
1735
  var MakeOfferModal = () => {
1731
1736
  return /* @__PURE__ */ jsx17(Show, { if: makeOfferModal$.isOpen, children: () => /* @__PURE__ */ jsx17(Modal2, {}) });
@@ -1768,9 +1773,9 @@ var Modal2 = observer7(() => {
1768
1773
  isError: currenciesIsError
1769
1774
  } = useCurrencies({
1770
1775
  chainId,
1771
- currencyOptions
1776
+ currencyOptions,
1777
+ includeNativeCurrency: false
1772
1778
  });
1773
- const selectedCurrency = use$(makeOfferModal$.offerPrice.currency);
1774
1779
  const { isLoading, executeApproval, makeOffer } = useMakeOffer({
1775
1780
  offerInput: {
1776
1781
  contractType: collection?.type,
@@ -1814,7 +1819,18 @@ var Modal2 = observer7(() => {
1814
1819
  }
1815
1820
  );
1816
1821
  }
1817
- const invalidCurrency = selectedCurrency?.contractAddress === zeroAddress && orderbookKind !== "sequence_marketplace_v2" /* sequence_marketplace_v2 */;
1822
+ if (!currencies || currencies.length === 0) {
1823
+ return /* @__PURE__ */ jsx17(
1824
+ ErrorModal,
1825
+ {
1826
+ isOpen: makeOfferModal$.isOpen.get(),
1827
+ chainId: Number(chainId),
1828
+ onClose: makeOfferModal$.close,
1829
+ title: "Make an offer",
1830
+ message: "No ERC-20s are configured for the marketplace, contact the marketplace owners"
1831
+ }
1832
+ );
1833
+ }
1818
1834
  const ctas = [
1819
1835
  {
1820
1836
  label: "Approve TOKEN",
@@ -1828,10 +1844,9 @@ var Modal2 = observer7(() => {
1828
1844
  label: "Make offer",
1829
1845
  onClick: () => makeOffer(),
1830
1846
  pending: steps$.transaction.isExecuting.get(),
1831
- disabled: steps$.approval.isExecuting.get() || steps$.approval.exist.get() || offerPrice.amountRaw === "0" || insufficientBalance || isLoading || invalidQuantity || invalidCurrency
1847
+ disabled: steps$.approval.isExecuting.get() || steps$.approval.exist.get() || offerPrice.amountRaw === "0" || insufficientBalance || isLoading || invalidQuantity
1832
1848
  }
1833
1849
  ];
1834
- const secondCurrencyAsDefault = orderbookKind !== "sequence_marketplace_v2" /* sequence_marketplace_v2 */ && currencies && currencies[0]?.contractAddress === zeroAddress;
1835
1850
  return /* @__PURE__ */ jsx17(Fragment, { children: /* @__PURE__ */ jsxs10(
1836
1851
  ActionModal,
1837
1852
  {
@@ -1857,7 +1872,7 @@ var Modal2 = observer7(() => {
1857
1872
  collectionAddress,
1858
1873
  $price: makeOfferModal$.offerPrice,
1859
1874
  onPriceChange: () => makeOfferModal$.offerPriceChanged.set(true),
1860
- secondCurrencyAsDefault,
1875
+ includeNativeCurrency: false,
1861
1876
  checkBalance: {
1862
1877
  enabled: true,
1863
1878
  callback: (state2) => setInsufficientBalance(state2)
@@ -1882,8 +1897,7 @@ var Modal2 = observer7(() => {
1882
1897
  price: offerPrice
1883
1898
  }
1884
1899
  ),
1885
- /* @__PURE__ */ jsx17(expirationDateSelect_default, { $date: makeOfferModal$.expiry }),
1886
- invalidCurrency && /* @__PURE__ */ jsx17(Box12, { color: "negative", fontSize: "small", children: "Native currency offers are not supported on this marketplace. Please select another currency to continue" })
1900
+ /* @__PURE__ */ jsx17(expirationDateSelect_default, { $date: makeOfferModal$.expiry })
1887
1901
  ]
1888
1902
  }
1889
1903
  ) });
@@ -1894,7 +1908,7 @@ import { Show as Show2, observer as observer8 } from "@legendapp/state/react";
1894
1908
  import { parseUnits as parseUnits3 } from "viem";
1895
1909
 
1896
1910
  // src/react/ui/modals/_internal/components/transactionDetails/index.tsx
1897
- import { Box as Box13, Image as Image3, Skeleton as Skeleton6, Text as Text10 } from "@0xsequence/design-system";
1911
+ import { Box as Box12, Image as Image3, Skeleton as Skeleton6, Text as Text10 } from "@0xsequence/design-system";
1898
1912
  import { formatUnits as formatUnits3 } from "viem";
1899
1913
  import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
1900
1914
  var DEFAULT_MARKETPLACE_FEE_PERCENTAGE = 2.5;
@@ -1924,7 +1938,7 @@ function TransactionDetails({
1924
1938
  formattedAmount = (Number.parseFloat(formattedAmount) - Number.parseFloat(formattedAmount) * marketplaceFeePercentage / 100).toFixed(price.currency.decimals);
1925
1939
  }
1926
1940
  return /* @__PURE__ */ jsxs11(
1927
- Box13,
1941
+ Box12,
1928
1942
  {
1929
1943
  width: "full",
1930
1944
  display: "flex",
@@ -1932,7 +1946,7 @@ function TransactionDetails({
1932
1946
  alignItems: "center",
1933
1947
  children: [
1934
1948
  /* @__PURE__ */ jsx18(Text10, { fontSize: "small", color: "text50", fontFamily: "body", children: "Total earnings" }),
1935
- /* @__PURE__ */ jsxs11(Box13, { display: "flex", alignItems: "center", gap: "2", children: [
1949
+ /* @__PURE__ */ jsxs11(Box12, { display: "flex", alignItems: "center", gap: "2", children: [
1936
1950
  /* @__PURE__ */ jsx18(Image3, { src: currencyImageUrl, width: "3", height: "3" }),
1937
1951
  priceLoading ? /* @__PURE__ */ jsx18(Skeleton6, { width: "16", height: "4" }) : /* @__PURE__ */ jsxs11(Text10, { fontSize: "small", color: "text100", fontFamily: "body", children: [
1938
1952
  showPlaceholderPrice ? "0" : formattedAmount,
@@ -1946,7 +1960,7 @@ function TransactionDetails({
1946
1960
  }
1947
1961
 
1948
1962
  // src/react/ui/modals/_internal/components/transactionHeader/index.tsx
1949
- import { Box as Box14, Image as Image4, Skeleton as Skeleton7, Text as Text11 } from "@0xsequence/design-system";
1963
+ import { Box as Box13, Image as Image4, Skeleton as Skeleton7, Text as Text11 } from "@0xsequence/design-system";
1950
1964
  import { formatDistanceToNow as formatDistanceToNow2 } from "date-fns";
1951
1965
  import { jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
1952
1966
  function TransactionHeader({
@@ -1954,7 +1968,7 @@ function TransactionHeader({
1954
1968
  currencyImageUrl,
1955
1969
  date
1956
1970
  }) {
1957
- return /* @__PURE__ */ jsxs12(Box14, { display: "flex", alignItems: "center", width: "full", children: [
1971
+ return /* @__PURE__ */ jsxs12(Box13, { display: "flex", alignItems: "center", width: "full", children: [
1958
1972
  /* @__PURE__ */ jsx19(
1959
1973
  Text11,
1960
1974
  {
@@ -2024,7 +2038,7 @@ var sellModal$ = observable4(initialState3);
2024
2038
  import { useQuery as useQuery2 } from "@tanstack/react-query";
2025
2039
 
2026
2040
  // src/react/ui/modals/BuyModal/hooks/useFees.ts
2027
- import { avalanche as avalanche2, optimism as optimism2 } from "viem/chains";
2041
+ import { avalanche, optimism } from "viem/chains";
2028
2042
  var useFees = ({
2029
2043
  chainId,
2030
2044
  collectionAddress
@@ -2036,7 +2050,7 @@ var useFees = ({
2036
2050
  const collection = marketplaceConfig?.collections.find(
2037
2051
  (collection2) => collection2.collectionAddress.toLowerCase() === collectionAddress.toLowerCase() && chainId === Number(collection2.chainId)
2038
2052
  );
2039
- const avalancheOrOptimism = chainId === avalanche2.id || chainId === optimism2.id;
2053
+ const avalancheOrOptimism = chainId === avalanche.id || chainId === optimism.id;
2040
2054
  const receiver = avalancheOrOptimism ? avalancheAndOptimismPlatformFeeRecipient : defaultPlatformFeeRecipient;
2041
2055
  const percentageToBPS = (percentage) => Number(percentage) * 1e4 / 100;
2042
2056
  return {
@@ -2110,7 +2124,6 @@ var useTransactionSteps2 = ({
2110
2124
  const { show: showTransactionStatusModal } = useTransactionStatusModal();
2111
2125
  const sdkConfig = useConfig();
2112
2126
  const marketplaceClient = getMarketplaceClient(chainId, sdkConfig);
2113
- const { waitForReceipt } = useGetReceiptFromHash();
2114
2127
  const { amount, receiver } = useFees({
2115
2128
  chainId: Number(chainId),
2116
2129
  collectionAddress
@@ -2158,11 +2171,9 @@ var useTransactionSteps2 = ({
2158
2171
  Number(chainId),
2159
2172
  approvalStep
2160
2173
  );
2161
- const receipt = await waitForReceipt(hash);
2162
- if (receipt) {
2163
- steps$.approval.isExecuting.set(false);
2164
- steps$.approval.exist.set(false);
2165
- }
2174
+ await wallet.handleConfirmTransactionStep(hash, Number(chainId));
2175
+ steps$.approval.isExecuting.set(false);
2176
+ steps$.approval.exist.set(false);
2166
2177
  } catch (error) {
2167
2178
  steps$.approval.isExecuting.set(false);
2168
2179
  }
@@ -2200,19 +2211,13 @@ var useTransactionSteps2 = ({
2200
2211
  queriesToInvalidate: [balanceQueries.all, collectableKeys.userBalances]
2201
2212
  });
2202
2213
  if (hash) {
2203
- await waitForReceipt(hash);
2214
+ await wallet.handleConfirmTransactionStep(hash, Number(chainId));
2204
2215
  steps$.transaction.isExecuting.set(false);
2205
2216
  steps$.transaction.exist.set(false);
2206
- if (callbacks?.onSuccess && typeof callbacks.onSuccess === "function") {
2207
- callbacks.onSuccess({ hash });
2208
- }
2209
2217
  }
2210
2218
  if (orderId) {
2211
2219
  steps$.transaction.isExecuting.set(false);
2212
2220
  steps$.transaction.exist.set(false);
2213
- if (callbacks?.onSuccess && typeof callbacks.onSuccess === "function") {
2214
- callbacks.onSuccess({ orderId });
2215
- }
2216
2221
  }
2217
2222
  } catch (error) {
2218
2223
  steps$.transaction.isExecuting.set(false);
@@ -2425,7 +2430,7 @@ var Modal3 = observer8(() => {
2425
2430
 
2426
2431
  // src/react/ui/modals/SuccessfulPurchaseModal/index.tsx
2427
2432
  import {
2428
- Box as Box15,
2433
+ Box as Box14,
2429
2434
  Button as Button3,
2430
2435
  CloseIcon as CloseIcon2,
2431
2436
  ExternalLinkIcon,
@@ -2490,7 +2495,7 @@ var SuccessfulPurchaseModal = observer9(() => {
2490
2495
  return /* @__PURE__ */ jsx21(Root3, { open: successfulPurchaseModal$.isOpen.get(), children: /* @__PURE__ */ jsxs14(Portal3, { children: [
2491
2496
  /* @__PURE__ */ jsx21(Overlay2, { className: dialogOverlay }),
2492
2497
  /* @__PURE__ */ jsxs14(Content3, { className: dialogContent.narrow, children: [
2493
- /* @__PURE__ */ jsxs14(Box15, { display: "flex", flexDirection: "column", gap: "4", width: "full", children: [
2498
+ /* @__PURE__ */ jsxs14(Box14, { display: "flex", flexDirection: "column", gap: "4", width: "full", children: [
2494
2499
  /* @__PURE__ */ jsx21(
2495
2500
  Text12,
2496
2501
  {
@@ -2507,7 +2512,7 @@ var SuccessfulPurchaseModal = observer9(() => {
2507
2512
  collectibles: successfulPurchaseModal$.state.get().collectibles
2508
2513
  }
2509
2514
  ),
2510
- /* @__PURE__ */ jsxs14(Box15, { display: "flex", alignItems: "center", gap: "1", children: [
2515
+ /* @__PURE__ */ jsxs14(Box14, { display: "flex", alignItems: "center", gap: "1", children: [
2511
2516
  /* @__PURE__ */ jsx21(Text12, { fontSize: "normal", fontWeight: "medium", color: "text80", children: "You bought" }),
2512
2517
  /* @__PURE__ */ jsx21(Text12, { fontSize: "normal", fontWeight: "medium", color: "text100", children: successfulPurchaseModal$.state.get().collectibles.length }),
2513
2518
  /* @__PURE__ */ jsx21(Text12, { fontSize: "normal", fontWeight: "medium", color: "text80", children: "items for" }),
@@ -2530,7 +2535,7 @@ var SuccessfulPurchaseModal = observer9(() => {
2530
2535
  ] }) });
2531
2536
  });
2532
2537
  function SuccessfulPurchaseActions() {
2533
- return /* @__PURE__ */ jsxs14(Box15, { display: "flex", flexDirection: "column", gap: "2", children: [
2538
+ return /* @__PURE__ */ jsxs14(Box14, { display: "flex", flexDirection: "column", gap: "2", children: [
2534
2539
  successfulPurchaseModal$.state.ctaOptions.get() && /* @__PURE__ */ jsx21(
2535
2540
  Button3,
2536
2541
  {
@@ -2559,10 +2564,10 @@ function SuccessfulPurchaseActions() {
2559
2564
  function CollectiblesGrid({ collectibles }) {
2560
2565
  const total = collectibles.length;
2561
2566
  const shownCollectibles = total > 4 ? collectibles.slice(0, 4) : collectibles;
2562
- return /* @__PURE__ */ jsx21(Box15, { className: collectiblesGrid, display: "grid", gap: "2", children: shownCollectibles.map((collectible) => {
2567
+ return /* @__PURE__ */ jsx21(Box14, { className: collectiblesGrid, display: "grid", gap: "2", children: shownCollectibles.map((collectible) => {
2563
2568
  const showPlus = total > 4 && collectibles.indexOf(collectible) === 3;
2564
2569
  return /* @__PURE__ */ jsxs14(
2565
- Box15,
2570
+ Box14,
2566
2571
  {
2567
2572
  className: collectiblesGridItem,
2568
2573
  position: "relative",
@@ -2579,7 +2584,7 @@ function CollectiblesGrid({ collectibles }) {
2579
2584
  }
2580
2585
  ),
2581
2586
  showPlus && /* @__PURE__ */ jsx21(
2582
- Box15,
2587
+ Box14,
2583
2588
  {
2584
2589
  position: "absolute",
2585
2590
  top: "0",
@@ -2664,7 +2669,7 @@ var initialState5 = {
2664
2669
  var transferModal$ = observable6(initialState5);
2665
2670
 
2666
2671
  // src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx
2667
- import { Box as Box16, Button as Button4, Text as Text13, TextInput } from "@0xsequence/design-system";
2672
+ import { Box as Box15, Button as Button4, Text as Text13, TextInput } from "@0xsequence/design-system";
2668
2673
  import { observable as observable7 } from "@legendapp/state";
2669
2674
  import { isAddress } from "viem";
2670
2675
  import { useAccount as useAccount3 } from "wagmi";
@@ -2769,9 +2774,9 @@ var EnterWalletAddressView = () => {
2769
2774
  transfer();
2770
2775
  transferModal$.view.set("followWalletInstructions");
2771
2776
  }
2772
- return /* @__PURE__ */ jsxs15(Box16, { display: "grid", gap: "6", flexGrow: "1", children: [
2777
+ return /* @__PURE__ */ jsxs15(Box15, { display: "grid", gap: "6", flexGrow: "1", children: [
2773
2778
  /* @__PURE__ */ jsx22(Text13, { color: "white", fontSize: "large", fontWeight: "bold", fontFamily: "body", children: "Transfer your item" }),
2774
- /* @__PURE__ */ jsxs15(Box16, { display: "flex", flexDirection: "column", gap: "3", children: [
2779
+ /* @__PURE__ */ jsxs15(Box15, { display: "flex", flexDirection: "column", gap: "3", children: [
2775
2780
  /* @__PURE__ */ jsx22(
2776
2781
  AlertMessage,
2777
2782
  {
@@ -2831,13 +2836,13 @@ var EnterWalletAddressView = () => {
2831
2836
  var enterWalletAddress_default = EnterWalletAddressView;
2832
2837
 
2833
2838
  // src/react/ui/modals/TransferModal/_views/followWalletInstructions/index.tsx
2834
- import { Box as Box17, Button as Button5, Text as Text14 } from "@0xsequence/design-system";
2839
+ import { Box as Box16, Button as Button5, Text as Text14 } from "@0xsequence/design-system";
2835
2840
  import { observer as observer10 } from "@legendapp/state/react";
2836
2841
  import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
2837
2842
  var FollowWalletInstructionsView = observer10(() => {
2838
- return /* @__PURE__ */ jsxs16(Box17, { display: "grid", gap: "6", flexGrow: "1", children: [
2843
+ return /* @__PURE__ */ jsxs16(Box16, { display: "grid", gap: "6", flexGrow: "1", children: [
2839
2844
  /* @__PURE__ */ jsx23(Text14, { color: "white", fontSize: "large", fontWeight: "bold", fontFamily: "body", children: "Transfer your item" }),
2840
- /* @__PURE__ */ jsx23(Box17, { display: "flex", flexDirection: "column", gap: "3", children: /* @__PURE__ */ jsx23(
2845
+ /* @__PURE__ */ jsx23(Box16, { display: "flex", flexDirection: "column", gap: "3", children: /* @__PURE__ */ jsx23(
2841
2846
  AlertMessage,
2842
2847
  {
2843
2848
  message: getMessage("followWalletInstructions"),
@@ -2925,7 +2930,7 @@ var TransactionModalView = observer11(() => {
2925
2930
  });
2926
2931
 
2927
2932
  // src/react/ui/modals/CreateListingModal/Modal.tsx
2928
- import { Box as Box18 } from "@0xsequence/design-system";
2933
+ import { Box as Box17 } from "@0xsequence/design-system";
2929
2934
  import { Show as Show4, observer as observer12 } from "@legendapp/state/react";
2930
2935
  import { parseUnits as parseUnits4 } from "viem";
2931
2936
  import { useAccount as useAccount5 } from "wagmi";
@@ -3046,7 +3051,6 @@ var useTransactionSteps3 = ({
3046
3051
  const { show: showTransactionStatusModal } = useTransactionStatusModal();
3047
3052
  const sdkConfig = useConfig();
3048
3053
  const marketplaceClient = getMarketplaceClient(chainId, sdkConfig);
3049
- const { waitForReceipt } = useGetReceiptFromHash();
3050
3054
  const { generateListingTransactionAsync, isPending: generatingSteps } = useGenerateListingTransaction({
3051
3055
  chainId,
3052
3056
  onSuccess: (steps) => {
@@ -3088,11 +3092,9 @@ var useTransactionSteps3 = ({
3088
3092
  Number(chainId),
3089
3093
  approvalStep
3090
3094
  );
3091
- const receipt = await waitForReceipt(hash);
3092
- if (receipt) {
3093
- steps$.approval.isExecuting.set(false);
3094
- steps$.approval.exist.set(false);
3095
- }
3095
+ await wallet.handleConfirmTransactionStep(hash, Number(chainId));
3096
+ steps$.approval.isExecuting.set(false);
3097
+ steps$.approval.exist.set(false);
3096
3098
  } catch (error) {
3097
3099
  steps$.approval.isExecuting.set(false);
3098
3100
  }
@@ -3138,19 +3140,13 @@ var useTransactionSteps3 = ({
3138
3140
  ]
3139
3141
  });
3140
3142
  if (hash) {
3141
- await waitForReceipt(hash);
3143
+ await wallet.handleConfirmTransactionStep(hash, Number(chainId));
3142
3144
  steps$.transaction.isExecuting.set(false);
3143
3145
  steps$.transaction.exist.set(false);
3144
- if (callbacks?.onSuccess && typeof callbacks.onSuccess === "function") {
3145
- callbacks.onSuccess({ hash });
3146
- }
3147
3146
  }
3148
3147
  if (orderId) {
3149
3148
  steps$.transaction.isExecuting.set(false);
3150
3149
  steps$.transaction.exist.set(false);
3151
- if (callbacks?.onSuccess && typeof callbacks.onSuccess === "function") {
3152
- callbacks.onSuccess({ orderId });
3153
- }
3154
3150
  }
3155
3151
  } catch (error) {
3156
3152
  steps$.transaction.isExecuting.set(false);
@@ -3357,7 +3353,7 @@ var Modal5 = observer12(() => {
3357
3353
  chainId
3358
3354
  }
3359
3355
  ),
3360
- /* @__PURE__ */ jsxs18(Box18, { display: "flex", flexDirection: "column", width: "full", gap: "1", children: [
3356
+ /* @__PURE__ */ jsxs18(Box17, { display: "flex", flexDirection: "column", width: "full", gap: "1", children: [
3361
3357
  /* @__PURE__ */ jsx25(
3362
3358
  priceInput_default,
3363
3359
  {
@@ -3402,7 +3398,7 @@ var Modal5 = observer12(() => {
3402
3398
  });
3403
3399
 
3404
3400
  // src/react/ui/modals/BuyModal/Modal.tsx
3405
- import { use$ as use$2 } from "@legendapp/state/react";
3401
+ import { use$ } from "@legendapp/state/react";
3406
3402
 
3407
3403
  // src/react/ui/modals/BuyModal/store.ts
3408
3404
  import { observable as observable9 } from "@legendapp/state";
@@ -3464,7 +3460,7 @@ function CheckoutModal({ buy, collectable, order }) {
3464
3460
  }
3465
3461
 
3466
3462
  // src/react/ui/modals/BuyModal/modals/Modal1155.tsx
3467
- import { Box as Box19, Text as Text15, TokenImage as TokenImage2 } from "@0xsequence/design-system";
3463
+ import { Box as Box18, Text as Text15, TokenImage as TokenImage2 } from "@0xsequence/design-system";
3468
3464
  import { observer as observer13 } from "@legendapp/state/react";
3469
3465
  import { formatUnits as formatUnits4, parseUnits as parseUnits6 } from "viem";
3470
3466
  import { jsx as jsx26, jsxs as jsxs19 } from "react/jsx-runtime";
@@ -3512,7 +3508,7 @@ var ERC1155QuantityModal = observer13(
3512
3508
  pending: buyModal$.state.checkoutModalIsLoading.get()
3513
3509
  }
3514
3510
  ],
3515
- children: /* @__PURE__ */ jsxs19(Box19, { display: "flex", flexDirection: "column", gap: "4", children: [
3511
+ children: /* @__PURE__ */ jsxs19(Box18, { display: "flex", flexDirection: "column", gap: "4", children: [
3516
3512
  /* @__PURE__ */ jsx26(
3517
3513
  QuantityInput,
3518
3514
  {
@@ -3522,9 +3518,9 @@ var ERC1155QuantityModal = observer13(
3522
3518
  maxQuantity: order.quantityRemaining
3523
3519
  }
3524
3520
  ),
3525
- /* @__PURE__ */ jsxs19(Box19, { display: "flex", justifyContent: "space-between", children: [
3521
+ /* @__PURE__ */ jsxs19(Box18, { display: "flex", justifyContent: "space-between", children: [
3526
3522
  /* @__PURE__ */ jsx26(Text15, { color: "text50", fontSize: "small", children: "Total Price" }),
3527
- /* @__PURE__ */ jsxs19(Box19, { display: "flex", alignItems: "center", gap: "2", children: [
3523
+ /* @__PURE__ */ jsxs19(Box18, { display: "flex", alignItems: "center", gap: "2", children: [
3528
3524
  /* @__PURE__ */ jsx26(TokenImage2, { src: currency?.imageUrl, size: "xs" }),
3529
3525
  /* @__PURE__ */ jsx26(Text15, { color: "text100", fontSize: "small", fontWeight: "bold", children: formatUnits4(BigInt(totalPrice), currency?.decimals || 0) })
3530
3526
  ] })
@@ -3703,22 +3699,22 @@ var useBuyCollectable = ({
3703
3699
  // src/react/ui/modals/BuyModal/Modal.tsx
3704
3700
  import { jsx as jsx27 } from "react/jsx-runtime";
3705
3701
  var BuyModal = () => {
3706
- const isOpen = use$2(buyModal$.isOpen);
3702
+ const isOpen = use$(buyModal$.isOpen);
3707
3703
  if (!isOpen) return null;
3708
3704
  return /* @__PURE__ */ jsx27(BuyModalContent, {});
3709
3705
  };
3710
3706
  var BuyModalContent = () => {
3711
- const chainId = String(use$2(buyModal$.state.order.chainId));
3712
- const collectionAddress = use$2(
3707
+ const chainId = String(use$(buyModal$.state.order.chainId));
3708
+ const collectionAddress = use$(
3713
3709
  buyModal$.state.order.collectionContractAddress
3714
3710
  );
3715
- const collectibleId = use$2(buyModal$.state.order.tokenId);
3716
- const modalId = use$2(buyModal$.state.modalId);
3717
- const callbacks = use$2(buyModal$.callbacks);
3718
- const order = use$2(buyModal$.state.order);
3719
- const isOpen = use$2(buyModal$.isOpen);
3720
- const setCheckoutModalIsLoading = use$2(buyModal$.setCheckoutModalIsLoading);
3721
- const setCheckoutModalLoaded = use$2(buyModal$.setCheckoutModalLoaded);
3711
+ const collectibleId = use$(buyModal$.state.order.tokenId);
3712
+ const modalId = use$(buyModal$.state.modalId);
3713
+ const callbacks = use$(buyModal$.callbacks);
3714
+ const order = use$(buyModal$.state.order);
3715
+ const isOpen = use$(buyModal$.isOpen);
3716
+ const setCheckoutModalIsLoading = use$(buyModal$.setCheckoutModalIsLoading);
3717
+ const setCheckoutModalLoaded = use$(buyModal$.setCheckoutModalLoaded);
3722
3718
  const { collection, collectable, checkoutOptions, isLoading, isError } = useLoadData({
3723
3719
  chainId: Number(chainId),
3724
3720
  collectionAddress,
@@ -3830,11 +3826,11 @@ var useBuyModal = (callbacks) => {
3830
3826
 
3831
3827
  // src/react/ui/components/collectible-card/CollectibleCard.tsx
3832
3828
  import { useState as useState8 } from "react";
3833
- import { Box as Box23, IconButton as IconButton6, Skeleton as Skeleton8 } from "@0xsequence/design-system";
3829
+ import { Box as Box22, IconButton as IconButton6, Skeleton as Skeleton8 } from "@0xsequence/design-system";
3834
3830
  import { useAccount as useAccount7 } from "wagmi";
3835
3831
 
3836
3832
  // src/react/ui/icons/DiamondEye.tsx
3837
- import { Box as Box20 } from "@0xsequence/design-system";
3833
+ import { Box as Box19 } from "@0xsequence/design-system";
3838
3834
  import { jsx as jsx29, jsxs as jsxs21 } from "react/jsx-runtime";
3839
3835
  var Svg = () => /* @__PURE__ */ jsxs21(
3840
3836
  "svg",
@@ -3861,7 +3857,7 @@ var Svg = () => /* @__PURE__ */ jsxs21(
3861
3857
  }
3862
3858
  );
3863
3859
  var SvgDiamondEyeIcon = ({ size = "sm", ...props }) => /* @__PURE__ */ jsx29(
3864
- Box20,
3860
+ Box19,
3865
3861
  {
3866
3862
  as: Svg,
3867
3863
  className: iconVariants({
@@ -3986,12 +3982,12 @@ function ActionButtonBody({ label, onClick }) {
3986
3982
  }
3987
3983
 
3988
3984
  // src/react/ui/components/collectible-card/Footer.tsx
3989
- import { Box as Box22, IconButton as IconButton5, Image as Image6, Text as Text16 } from "@0xsequence/design-system";
3985
+ import { Box as Box21, IconButton as IconButton5, Image as Image6, Text as Text16 } from "@0xsequence/design-system";
3990
3986
  import { formatUnits as formatUnits5 } from "viem";
3991
3987
  import { useAccount as useAccount6 } from "wagmi";
3992
3988
 
3993
3989
  // src/react/ui/icons/Bell.tsx
3994
- import { Box as Box21 } from "@0xsequence/design-system";
3990
+ import { Box as Box20 } from "@0xsequence/design-system";
3995
3991
  import { jsx as jsx31, jsxs as jsxs22 } from "react/jsx-runtime";
3996
3992
  var Svg2 = () => /* @__PURE__ */ jsxs22(
3997
3993
  "svg",
@@ -4018,7 +4014,7 @@ var Svg2 = () => /* @__PURE__ */ jsxs22(
4018
4014
  }
4019
4015
  );
4020
4016
  var SvgBellIcon = ({ size = "sm", ...props }) => /* @__PURE__ */ jsx31(
4021
- Box21,
4017
+ Box20,
4022
4018
  {
4023
4019
  as: Svg2,
4024
4020
  className: iconVariants({
@@ -4050,7 +4046,7 @@ var Footer = ({
4050
4046
  name = `${name.substring(0, 17)}...`;
4051
4047
  }
4052
4048
  return /* @__PURE__ */ jsxs23(
4053
- Box22,
4049
+ Box21,
4054
4050
  {
4055
4051
  display: "flex",
4056
4052
  flexDirection: "column",
@@ -4062,7 +4058,7 @@ var Footer = ({
4062
4058
  className: !!address && isAnimated ? footer.animated : footer.static,
4063
4059
  children: [
4064
4060
  /* @__PURE__ */ jsxs23(
4065
- Box22,
4061
+ Box21,
4066
4062
  {
4067
4063
  display: "flex",
4068
4064
  alignItems: "center",
@@ -4100,7 +4096,7 @@ var Footer = ({
4100
4096
  ]
4101
4097
  }
4102
4098
  ),
4103
- /* @__PURE__ */ jsxs23(Box22, { display: "flex", alignItems: "center", gap: "1", children: [
4099
+ /* @__PURE__ */ jsxs23(Box21, { display: "flex", alignItems: "center", gap: "1", children: [
4104
4100
  listed && /* @__PURE__ */ jsx32(Image6, { src: lowestListingCurrency?.imageUrl, width: "3", height: "3" }),
4105
4101
  /* @__PURE__ */ jsxs23(
4106
4102
  Text16,
@@ -4150,7 +4146,7 @@ var TokenTypeBalancePill = ({
4150
4146
  import { jsx as jsx33, jsxs as jsxs24 } from "react/jsx-runtime";
4151
4147
  function CollectibleSkeleton() {
4152
4148
  return /* @__PURE__ */ jsxs24(
4153
- Box23,
4149
+ Box22,
4154
4150
  {
4155
4151
  className: collectibleCard,
4156
4152
  borderRadius: "md",
@@ -4165,7 +4161,7 @@ function CollectibleSkeleton() {
4165
4161
  }
4166
4162
  ),
4167
4163
  /* @__PURE__ */ jsxs24(
4168
- Box23,
4164
+ Box22,
4169
4165
  {
4170
4166
  display: "flex",
4171
4167
  flexDirection: "column",
@@ -4216,14 +4212,14 @@ function CollectibleCard({
4216
4212
  const image = collectibleMetadata?.image;
4217
4213
  const externalUrl = collectibleMetadata?.external_url;
4218
4214
  return /* @__PURE__ */ jsx33(
4219
- Box23,
4215
+ Box22,
4220
4216
  {
4221
4217
  className: collectibleCard,
4222
4218
  borderRadius: "md",
4223
4219
  overflow: "hidden",
4224
4220
  background: "backgroundPrimary",
4225
4221
  children: /* @__PURE__ */ jsx33(
4226
- Box23,
4222
+ Box22,
4227
4223
  {
4228
4224
  display: "flex",
4229
4225
  flexDirection: "column",
@@ -4279,7 +4275,7 @@ function CollectibleCard({
4279
4275
  }
4280
4276
  ),
4281
4277
  accountAddress && (highestOffer || lowestListing) && /* @__PURE__ */ jsx33(
4282
- Box23,
4278
+ Box22,
4283
4279
  {
4284
4280
  display: "flex",
4285
4281
  alignItems: "center",
@@ -4318,4 +4314,4 @@ export {
4318
4314
  useBuyModal,
4319
4315
  CollectibleCard
4320
4316
  };
4321
- //# sourceMappingURL=chunk-SEISACMH.js.map
4317
+ //# sourceMappingURL=chunk-2FOUCP2R.js.map