@dcl/shop 0.1.0-30341552356.commit-1157de5 → 0.1.0-30341633105.commit-bfa7613

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 (171) hide show
  1. package/assets/{Activity-Dj44bwKw.js → Activity-DUQW_Z22.js} +2 -2
  2. package/assets/{AnimatedBackground-CwKlLPU1.js → AnimatedBackground-D5TaGH4y.js} +3 -3
  3. package/assets/{Assets-DWnYTXCo.js → Assets-B4NCA-FL.js} +5 -5
  4. package/assets/{Assets.styles-BhE61g54.js → Assets.styles-CE4c2s9w.js} +1 -1
  5. package/assets/{Authorizations-BwJDLOap.js → Authorizations-FSevrZuz.js} +1 -1
  6. package/assets/{Button-B3EWO6NJ.js → Button-CVXKA5VS.js} +1 -1
  7. package/assets/Cart-Bwa3a9Hp.js +1 -0
  8. package/assets/{CircularProgress-Be2BeSsu.js → CircularProgress-B7WalF_4.js} +1 -1
  9. package/assets/{Collection-CZEi_EO2.js → Collection-DdHzXaav.js} +1 -1
  10. package/assets/CollectionCarousel-BLfBmiC7.js +292 -0
  11. package/assets/{Creator-DgBS8-4a.js → Creator-B9a3v2rB.js} +1 -1
  12. package/assets/{ExchangeController-BkfKxSM1.js → ExchangeController-DTUPu5lZ.js} +1 -1
  13. package/assets/{GetCredits-D4_gPu7y.js → GetCredits-CEruTT5O.js} +1 -1
  14. package/assets/{HelpersUtil-nSm_BMK5.js → HelpersUtil-DY1hA3MT.js} +1 -1
  15. package/assets/{ImportListings-0xT85_lg.js → ImportListings-CUNQkt5i.js} +1 -1
  16. package/assets/{ItemDetail-Dq6IJ40V.js → ItemDetail-gPIjOR_D.js} +130 -130
  17. package/assets/{LoadMore-Cbr521EF.js → LoadMore-K8EfO7If.js} +1 -1
  18. package/assets/{MarketCheckout-CEZ0wtt0.js → MarketCheckout-BlfeUpjX.js} +1 -1
  19. package/assets/{MenuList-BYXPwoXC.js → MenuList-DPrUOTQw.js} +1 -1
  20. package/assets/{MyAssets-Y32vTL95.js → MyAssets-qLOA_5tD.js} +1 -1
  21. package/assets/{MyFavorites-DQ-5zeBc.js → MyFavorites-C1SUs-Jy.js} +1 -1
  22. package/assets/{NotFound-9u0kqnXS.js → NotFound-hEgIvZDQ.js} +1 -1
  23. package/assets/{NotificationsBell-Bh-SEbDn.js → NotificationsBell-BPdngTao.js} +1 -1
  24. package/assets/{StoreSettings-DnEI4N7v.js → StoreSettings-BvrwDCuq.js} +5 -5
  25. package/assets/{Success-jGqc-yIA.js → Success-DfPUnbUp.js} +1 -1
  26. package/assets/{SwapController-DXwEV4tc.js → SwapController-Cvanu67b.js} +1 -1
  27. package/assets/{Tooltip-CkfT0XKM.js → Tooltip-8SR8hseo.js} +1 -1
  28. package/assets/{TradeService-BP9td6am.js → TradeService-DH4vjiAB.js} +1 -1
  29. package/assets/{W3MFrameProviderSingleton-DOHwgNRJ.js → W3MFrameProviderSingleton-DtrTVFth.js} +3 -3
  30. package/assets/{WebCryptoP256-xSGFEHUn.js → WebCryptoP256-B_JP0jDJ.js} +1 -1
  31. package/assets/{authorizations-DVHH9Rgu.js → authorizations-Dtu8Ye0y.js} +1 -1
  32. package/assets/{basic-jN1vb_0X.js → basic-DljOvbvB.js} +1 -1
  33. package/assets/{biconomy-CnJ3HxGY.js → biconomy-ik7MjMyj.js} +1 -1
  34. package/assets/{builder--u_mLwLg.js → builder-BsAwBvGZ.js} +1 -1
  35. package/assets/{buy-DsK3JvBE.js → buy-CyhVI8ih.js} +1 -1
  36. package/assets/{buy-gasless-B0tydfop.js → buy-gasless-D6tjB5nW.js} +1 -1
  37. package/assets/{cart-checkout-B_ayyHRb.js → cart-checkout-Bp3fmOrE.js} +1 -1
  38. package/assets/{categories-CnryCWCq.js → categories-Jh3tfbEa.js} +1 -1
  39. package/assets/{ccip-CpnrZcJR.js → ccip-Dn5CKGMr.js} +1 -1
  40. package/assets/{ccip-DSWWT7QA.js → ccip-fs__7FtW.js} +1 -1
  41. package/assets/{collection-DvprT8Ak.js → collection-Cbl5FMco.js} +1 -1
  42. package/assets/{controller-DcyNYMS1.js → controller-CFA_t_aX.js} +2 -2
  43. package/assets/{core-BjxuDLc2.js → core-bscEUkDr.js} +4 -4
  44. package/assets/{custom-BXO5l2GN.js → custom-CBNtVqpj.js} +1 -1
  45. package/assets/{data-capture-CNmHScYc.js → data-capture-OumUBjqI.js} +1 -1
  46. package/assets/{email-CeHIxnKR.js → email-Psj4ILkk.js} +1 -1
  47. package/assets/{embedded-wallet-DFRpG2QT.js → embedded-wallet-8Rn02F-5.js} +1 -1
  48. package/assets/{emotion-styled.browser.esm-BAKrhA-T.js → emotion-styled.browser.esm-D1IYcc-A.js} +1 -1
  49. package/assets/{engine-QHP5dbJN.js → engine-FKONhXUm.js} +1 -1
  50. package/assets/{errors-CxK78Ezc.js → errors-C_tFJwwX.js} +1 -1
  51. package/assets/{estimate-l1-fee-DJZ2ykvP.js → estimate-l1-fee-CQQK05Yj.js} +1 -1
  52. package/assets/{execute-BxL0u7cZ.js → execute-DvgHhaNY.js} +2 -2
  53. package/assets/{features-D-1vXo09.js → features-C_I0ed0g.js} +1 -1
  54. package/assets/{fetchTokenMetadata-Bmh-GAy2.js → fetchTokenMetadata-DXP5pKit.js} +2 -2
  55. package/assets/{get-ecosystem-wallet-info-gP16_3M9.js → get-ecosystem-wallet-info-CojUzYKW.js} +1 -1
  56. package/assets/{getBalance-Cy11zY8o.js → getBalance-Bi0yMf6a.js} +1 -1
  57. package/assets/{getNFT-D8_d_43-.js → getNFT-CebGWsfS.js} +1 -1
  58. package/assets/{getNFT-CLM4lOgZ.js → getNFT-uBr4IPr-.js} +1 -1
  59. package/assets/{getThemeProps-Db0LqBsH.js → getThemeProps-D9znDKcF.js} +1 -1
  60. package/assets/{hashTypedData-DlhCxtnU.js → hashTypedData-CmwGgOTV.js} +1 -1
  61. package/assets/{hashTypedData-CyLnrmuM.js → hashTypedData-CvnET0ek.js} +1 -1
  62. package/assets/{import-xj2dmpRb.js → import-5htnR-24.js} +1 -1
  63. package/assets/{in-app-Ca1mMARX.js → in-app-CXNVMtY6.js} +1 -1
  64. package/assets/{in-app-wallet-calls-CW5YIAy_.js → in-app-wallet-calls-CL_h73Vx.js} +1 -1
  65. package/assets/{index-DaGxFfPe.js → index-B8HPZU8G.js} +1 -1
  66. package/assets/{index-DTUefcrq.js → index-BBFf3j9R.js} +1 -1
  67. package/assets/{index-BRqkHqJo.js → index-BEwgqhCL.js} +1 -1
  68. package/assets/{index-DMKg8lh3.js → index-BF0jg5eX.js} +1 -1
  69. package/assets/{index-hTjbV6vV.js → index-BUuFv1bp.js} +1 -1
  70. package/assets/{index-n8GCu-Rn.js → index-BZVhR8G8.js} +1 -1
  71. package/assets/{index-BS5Ceouq.js → index-BaeTuT24.js} +1 -1
  72. package/assets/{index-_B4jXVuv.js → index-BjJBV4qL.js} +1 -1
  73. package/assets/{index-Dyl6gCDy.js → index-BksD36hR.js} +1 -1
  74. package/assets/{index-DidAGC-b.js → index-BofIoUki.js} +1 -1
  75. package/assets/{index-CYe6NA33.js → index-BqdSTJ_h.js} +1 -1
  76. package/assets/{index-DG5yd0Hy.js → index-BwVcZ3vw.js} +1 -1
  77. package/assets/{index-Cog4X8JZ.js → index-C-3NWHgA.js} +1 -1
  78. package/assets/{index-CaZpvuaJ.js → index-C-dFvnUH.js} +1 -1
  79. package/assets/{index-CJ85TtZ8.js → index-C1Tsxo3r.js} +1 -1
  80. package/assets/{index-DcgPlZHV.js → index-C1UJcewJ.js} +1 -1
  81. package/assets/{index-DHAtTfUI.js → index-C4GKDkj4.js} +1 -1
  82. package/assets/{index-DPvzgx_y.js → index-C5V5wALq.js} +1 -1
  83. package/assets/{index-qJN3KuXC.js → index-CAPIrEyl.js} +1 -1
  84. package/assets/{index-D4GTMW1w.js → index-CBgD93CB.js} +1 -1
  85. package/assets/{index-B-_1QhtU.js → index-CFnxUGBP.js} +1 -1
  86. package/assets/{index-tNNieLvH.js → index-CIRaZxV0.js} +1 -1
  87. package/assets/{index-BZ-ADUaA.js → index-CLiiVHBN.js} +1 -1
  88. package/assets/{index-G557eOOZ.js → index-CSdulB00.js} +3 -3
  89. package/assets/{index-cdg92wTF.js → index-CkYGCiA-.js} +1 -1
  90. package/assets/{index-BWqSG2Zp.js → index-Cp-efrxt.js} +1 -1
  91. package/assets/{index-CEvsvVpf.js → index-Cq9m0rf1.js} +1 -1
  92. package/assets/{index-DE80LSux.js → index-CvxSD2TZ.js} +1 -1
  93. package/assets/{index-CBJiZL2c.js → index-D-BpvO4i.js} +1 -1
  94. package/assets/{index-CR6dp-n2.js → index-D3MkM_Ow.js} +2 -2
  95. package/assets/{index-B8QWKyIQ.js → index-D9zmC2OF.js} +1 -1
  96. package/assets/{index-Bw8dL1iq.js → index-DTjLQDJj.js} +3 -3
  97. package/assets/{index-D3sOF6Ef.js → index-DVCrh7RP.js} +1 -1
  98. package/assets/{index-ShBnagKs.js → index-DXqFhRIG.js} +2 -2
  99. package/assets/{index-C3ZPHWQF.js → index-D_GOecnW.js} +1 -1
  100. package/assets/{index-BPlewML_.js → index-Dcx57z9h.js} +1 -1
  101. package/assets/{index-CwJPZDQg.js → index-De5m0zpT.js} +1 -1
  102. package/assets/{index-CRQc7aFW.js → index-DhbTDQu0.js} +1 -1
  103. package/assets/{index-CUAbfX_G.js → index-DiarXSIn.js} +1 -1
  104. package/assets/{index-Ik8KJlRB.js → index-Dlw2S5cF.js} +3 -3
  105. package/assets/{index-LI2Gp3bz.js → index-Ds0rGqyb.js} +1 -1
  106. package/assets/{index-CB1uzRfI.js → index-Ds6dHrLZ.js} +1 -1
  107. package/assets/{index-D3S3ylBv.js → index-DsV59IEv.js} +1 -1
  108. package/assets/{index-Boi8OWdb.js → index-VchcND_n.js} +11 -11
  109. package/assets/{index-Ct3-9z3S.js → index-VdY2qv1p.js} +1 -1
  110. package/assets/{index-a3vLcVip.js → index-aP6PSm0J.js} +1 -1
  111. package/assets/{index-CgEZpoUf.js → index-lJWah8De.js} +1 -1
  112. package/assets/{index-CXOudy9H.js → index-sW-sKm0x.js} +1 -1
  113. package/assets/{index-BFMPeJUP.js → index-scsn5pcE.js} +1 -1
  114. package/assets/{index-BAHZtt4N.js → index-tf9y--bx.js} +1 -1
  115. package/assets/{index-DMzXLpFX.js → index-zLpiSX4V.js} +2 -2
  116. package/assets/{index.es-Do8tEs_c.js → index.es-9B4hUsAR.js} +1 -1
  117. package/assets/{index.es-86Q_KSh8.js → index.es-9Zrxu-nr.js} +4 -4
  118. package/assets/{index.es-Pf3_VMB1.js → index.es-BwS14sFg.js} +1 -1
  119. package/assets/{localBatchGatewayRequest-Q9ISf7xV.js → localBatchGatewayRequest-BHik-cdx.js} +1 -1
  120. package/assets/{mana-rate-Dr5e3Fsu.js → mana-rate-CY9tOCr1.js} +1 -1
  121. package/assets/{networks-DH11TI3P.js → networks-Ddkp84aU.js} +1 -1
  122. package/assets/{onramp-fUReVnH1.js → onramp-CeSaj6Aa.js} +1 -1
  123. package/assets/{openzeppelin-BMoHmYeO.js → openzeppelin-CDpkjcS1.js} +1 -1
  124. package/assets/{parseNft-Bsnv7LY2.js → parseNft-ChsA4Coa.js} +2 -2
  125. package/assets/{parseSignature-WQa_Z13b.js → parseSignature--QSaxzyZ.js} +3 -3
  126. package/assets/{parseSignature-vnzc0TWx.js → parseSignature-DFSq1jun.js} +1 -1
  127. package/assets/{passkeys-DcSb_2bY.js → passkeys-CUsQnAGE.js} +1 -1
  128. package/assets/{pay-with-exchange-BSvTA-vL.js → pay-with-exchange-DD3fWFhp.js} +1 -1
  129. package/assets/{qr-overlay-Cxia7TxD.js → qr-overlay-FXDRFg86.js} +1 -1
  130. package/assets/{receive-C7U2pw1b.js → receive-YGf7MQMM.js} +1 -1
  131. package/assets/{resolveImplementation-B0oFFgdO.js → resolveImplementation-ChZxSPSt.js} +1 -1
  132. package/assets/{rpc-CPkDSng_.js → rpc-DcocuHbv.js} +1 -1
  133. package/assets/{secp256k1-B8iTaWun.js → secp256k1-2n6IN3fh.js} +1 -1
  134. package/assets/{secp256k1-BG_xdWRK.js → secp256k1-B6R4GN3D.js} +1 -1
  135. package/assets/{secp256k1-9B-GuXCR.js → secp256k1-Da2UK_yU.js} +1 -1
  136. package/assets/{send-HIK1lDa_.js → send-DM7q2CKX.js} +1 -1
  137. package/assets/{send-batch-transaction-DlA-mriP.js → send-batch-transaction-BQiw5Eds.js} +1 -1
  138. package/assets/{send-eip712-transaction-BKSgmtge.js → send-eip712-transaction-D9_VwAnb.js} +2 -2
  139. package/assets/{send-gasless-transaction-CaZ9Bdzc.js → send-gasless-transaction-fl9Lqf73.js} +2 -2
  140. package/assets/{send-transaction-IH4G-3ve.js → send-transaction-lapcUIfe.js} +2 -2
  141. package/assets/{sendMetaTransaction-CoMlUn3U.js → sendMetaTransaction-CydgYVdt.js} +1 -1
  142. package/assets/{sendRawTransaction-Bl9YcsnP.js → sendRawTransaction-CkQeCcPa.js} +3 -3
  143. package/assets/{serializeTransaction-lddISawN.js → serializeTransaction-CiKWV5oi.js} +1 -1
  144. package/assets/{session-proposal-DnwQ3Izq.js → session-proposal-C1hZCkvv.js} +1 -1
  145. package/assets/{session-request-BlxbeFMn.js → session-request-BTvx34S0.js} +2 -2
  146. package/assets/{signing-CMF-guhc.js → signing-clXGZp7N.js} +3 -3
  147. package/assets/{socials-oKTNFCc_.js → socials-Djo-_tRh.js} +1 -1
  148. package/assets/{swaps-DKTQ0Qks.js → swaps-BwoxWJmp.js} +1 -1
  149. package/assets/{thirdweb-CleLzSpa.js → thirdweb-DIYiKqri.js} +3 -3
  150. package/assets/{to-serializable-transaction-Dmnj9hOd.js → to-serializable-transaction-_IYF-b5r.js} +2 -2
  151. package/assets/{trade-encoding-CJ445Q0f.js → trade-encoding-DbssSNOL.js} +1 -1
  152. package/assets/{transactionReceipt-wJvnMFcL.js → transactionReceipt-dAN1T4b9.js} +1 -1
  153. package/assets/{transactions-CwbwJTBm.js → transactions-V175lLd8.js} +1 -1
  154. package/assets/{useCreditPacks-DslICYvP.js → useCreditPacks-B8su_g3G.js} +1 -1
  155. package/assets/{useInfiniteGrid-BsvaZzST.js → useInfiniteGrid-S2Upf1Ae.js} +1 -1
  156. package/assets/useManaRate-CCWK1pxl.js +1 -0
  157. package/assets/{useStore-D4BwFx3W.js → useStore-BEtv4alq.js} +1 -1
  158. package/assets/{useTheme-C3x6r6Lw.js → useTheme-BoNUL1hb.js} +1 -1
  159. package/assets/{verifyHash-Cw5VgEE4.js → verifyHash-CSBAlIiR.js} +1 -1
  160. package/assets/{w3m-modal-Btpx7WOs.js → w3m-modal-CXjKWsrV.js} +1 -1
  161. package/assets/{w3m-modal-C3TYSgnM.js → w3m-modal-DVav-Ijf.js} +1 -1
  162. package/assets/{wait-for-tx-receipt-PVsjRORl.js → wait-for-tx-receipt-CRuc-ylw.js} +1 -1
  163. package/assets/{wallets-CawAcOqK.js → wallets-C2Qy7KSV.js} +5 -5
  164. package/assets/{web-connector-g3y9yAdS.js → web-connector-D4itPEVN.js} +3 -3
  165. package/assets/{writeContract-CkNfH9sB.js → writeContract-BR9KO0Ok.js} +1 -1
  166. package/assets/{zoraTestnet-D5vdVlTL.js → zoraTestnet-VaouiZC2.js} +1 -1
  167. package/index.html +11 -11
  168. package/package.json +2 -2
  169. package/assets/Cart-C048yxEZ.js +0 -1
  170. package/assets/CollectionCarousel-B4KoClM7.js +0 -292
  171. package/assets/useManaRate-BrpK_vbN.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as l,j as c}from"./react-B36MyIP_.js";import{n as u,B as p,t as d}from"./index-Boi8OWdb.js";const a=u.div`
1
+ import{r as l,j as c}from"./react-B36MyIP_.js";import{n as u,B as p,t as d}from"./index-VchcND_n.js";const a=u.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  padding: 28px 0 8px;
@@ -1,3 +1,3 @@
1
- import{u as L,e as O,w as V,x as Y,t,y as k,k as b,z as P,A as D,b as w,f as H,i as $,D as J,E as p,F as q,G as F,n as X,B as Z}from"./index-Boi8OWdb.js";import{h as ee}from"./trade-encoding-CJ445Q0f.js";import{a as re,r as h,j as r}from"./react-B36MyIP_.js";import{a as j}from"./mana-rate-Dr5e3Fsu.js";import{b as M}from"./buy-DsK3JvBE.js";import{b as ae,w as te,S as se,G as ie}from"./buy-gasless-B0tydfop.js";import{a as ce}from"./authorizations-DVHH9Rgu.js";import{i as de}from"./errors-CxK78Ezc.js";import{E as ne}from"./ErrorNotice-D_Z5OVFI.js";function pe(){const{data:e}=L({queryKey:["feature-flag","shop-secondary-sales"],queryFn:ee,staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return e===!0}const Q=X(Z)`
1
+ import{u as L,e as O,w as V,x as Y,t,y as k,k as b,z as P,A as D,b as w,f as H,i as $,D as J,E as p,F as q,G as F,n as X,B as Z}from"./index-VchcND_n.js";import{h as ee}from"./trade-encoding-DbssSNOL.js";import{a as re,r as h,j as r}from"./react-B36MyIP_.js";import{a as j}from"./mana-rate-CY9tOCr1.js";import{b as M}from"./buy-CyhVI8ih.js";import{b as ae,w as te,S as se,G as ie}from"./buy-gasless-D6tjB5nW.js";import{a as ce}from"./authorizations-Dtu8Ye0y.js";import{i as de}from"./errors-C_tFJwwX.js";import{E as ne}from"./ErrorNotice-D_Z5OVFI.js";function pe(){const{data:e}=L({queryKey:["feature-flag","shop-secondary-sales"],queryFn:ee,staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return e===!0}const Q=X(Z)`
2
2
  flex: 1;
3
3
  `;function K(e){if(de(e))return t("errors.rejected");const d=(e.message??"").toLowerCase();return d.includes("insufficient")?t("marketCheckout.error.insufficient",{currency:w.name}):d.includes("not found")||d.includes("no active listing")||d.includes("404")?t("marketCheckout.error.soldOrRemoved"):d.includes("your own listing")?t("errors.cantBuyOwn"):t("marketCheckout.error.generic")}function oe(e){return{id:e.tradeId,tradeId:e.tradeId,name:e.name,creator:e.creator,contractAddress:e.contractAddress,itemId:e.itemId,category:e.category,wearableCategory:e.wearableCategory??void 0,rarity:e.rarity,network:e.network,chainId:e.chainId,thumbnail:e.thumbnail,priceCredits:0,gender:null,isSmart:!1}}function Ce({listing:e,rate:d,onClose:A,onSold:R}){const{session:i}=O(),{data:n,isError:B}=V(i),o=Y(),N=re(),[g,f]=h.useState("confirm"),[C,S]=h.useState(t("marketCheckout.lockingPrice")),[W,v]=h.useState(null),[a,U]=h.useState(null),l=h.useRef(null),G=Math.ceil(j(e.manaWei,d)/10);h.useEffect(()=>{let u=!1;if(!i){f("error"),v(t("buyModal.signInToCheckout"));return}return(async()=>{try{const s=await H(e.tradeId);if(!s)throw new Error("not found");if($(s,i.address))throw new Error("You can't buy your own listing.");const y=j(e.manaWei,d);if(!Number.isFinite(y)||y<=0)throw new Error("price unavailable");const{credit:m,maxCreditedValue:z,usdCents:I}=await J(i.identity,y,e.tradeId);if(u){k(i.identity,[m.id]).catch(()=>{});return}l.current=m.id,U({trade:s,credit:m,maxCreditedValue:z,usdCents:I,credits:Math.ceil(I/10)}),S("")}catch(s){if(u)return;console.error("[market] authorize failed",s),p(F(s)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"authorize",error_code:q(s),value_usd:Math.round(j(e.manaWei,d))/100}),f("error"),v(K(s))}})(),()=>{u=!0,l.current&&i&&(k(i.identity,[l.current]).catch(()=>{}),l.current=null)}},[]);const x=!!a&&n!=null&&n.credits<a.credits;async function T(){if(!i||!a)return;if(x){p("Shop Buy Credits Prompted",{from:"item_checkout",credits_needed:a.credits,credits_balance:(n==null?void 0:n.credits)??0,shortfall:Math.max(0,a.credits-((n==null?void 0:n.credits)??0))}),k(i.identity,[a.credit.id]).catch(()=>{}),l.current=null,N("/credits");return}f("working"),v(null);let u=!1;try{S(t("marketCheckout.confirming"));const c={trade:a.trade,buyer:i.address,signer:i.signer,credits:[a.credit],maxCreditedValue:a.maxCreditedValue};let s;if(ce())try{s=await ae(c),await te(s),u=!0}catch(m){if(m instanceof se)u=!0;else if(m instanceof ie)s=await M(c);else throw m}else s=await M(c);l.current=null,p("Shop Completed Purchase",{items:[{item_id:e.itemId??null,contract_address:e.contractAddress,token_id:null,price_usd:a.usdCents/100}],value_credits:a.credits,value_usd:a.usdCents/100,purchase_type:"item",is_primary:!0,payment_type:"credits",no_crypto_step:u,transaction_hash:s??null}),o.invalidateQueries({queryKey:["usd-balance"]}),o.invalidateQueries({queryKey:["detail-trade"]}),o.invalidateQueries({queryKey:["shop-item"]}),o.invalidateQueries({queryKey:["item-resales",e.contractAddress,e.itemId]}),o.invalidateQueries({queryKey:["shop-items"]}),o.invalidateQueries({queryKey:["catalog-items"]}),o.invalidateQueries({queryKey:["my-assets"]}),o.invalidateQueries({queryKey:["purchases"]});const y={items:[oe(e)],txHash:s};N("/success",{state:y})}catch(c){console.error("[market] buy now failed",c),k(i.identity,[a.credit.id]).catch(()=>{}),l.current=null,p(F(c)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:q(c),value_usd:a.usdCents/100}),o.invalidateQueries({queryKey:["usd-balance"]}),v(K(c)),f("error");const s=(c.message??"").toLowerCase();(s.includes("not found")||s.includes("no active listing")||s.includes("404"))&&R()}}function E(){i&&a&&k(i.identity,[a.credit.id]).catch(()=>{}),l.current=null,A()}const _=g==="working";return r.jsxs("div",{className:"mkt-modal",role:"dialog","aria-modal":"true","aria-label":t("buyModal.dialogAria",{name:e.name}),children:[r.jsx("div",{className:"mkt-modal__scrim",onClick:_?void 0:E,"aria-hidden":!0}),r.jsxs("div",{className:"mkt-modal__card",children:[r.jsxs("div",{className:"mkt-modal__head",children:[r.jsx("div",{className:"mkt-modal__thumb",children:e.thumbnail?r.jsx("img",{src:e.thumbnail,alt:""}):null}),r.jsxs("div",{children:[r.jsx("div",{className:"mkt-modal__name",title:e.name,children:e.name||t("buyModal.itemFallback")}),r.jsx("span",{className:"chip chip--rarity",children:e.rarity})]})]}),r.jsx("div",{className:"mkt-modal__price",children:a?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"mkt-modal__price-label",children:t("marketCheckout.finalPrice")}),r.jsxs("div",{className:"mkt-modal__price-value",children:[r.jsx(b,{className:"mkt-modal__diamond"}),P(a.credits)]}),r.jsxs("div",{className:"mkt-modal__price-sub muted",children:[t("marketCheckout.lockedForPurchase")," · $",(a.usdCents/100).toFixed(2)]})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"mkt-modal__price-label",children:t("marketCheckout.todaysPrice")}),r.jsxs("div",{className:"mkt-modal__price-value mkt-modal__price-value--approx",children:[r.jsx("span",{className:"mkt-modal__approx","aria-hidden":!0,children:"≈"}),r.jsx(b,{className:"mkt-modal__diamond"}),P(G)]}),r.jsx("div",{className:"mkt-modal__price-sub muted",children:C||t("marketCheckout.lockingPrice")})]})}),i?r.jsxs("div",{className:"mkt-modal__balance muted",children:[t("marketCheckout.yourBalance")," ",r.jsx(b,{className:"ccy-mark"})," ",D(n,B)]}):null,x?r.jsx("p",{className:"muted mkt-modal__note",children:t("marketCheckout.needMore",{currency:w.name})}):null,C&&g==="working"?r.jsx("p",{className:"muted mkt-modal__note",children:C}):null,r.jsx(ne,{message:W,className:"mkt-modal__note"}),r.jsxs("div",{className:"mkt-modal__actions",children:[r.jsx(Q,{variant:"ghost",onClick:E,disabled:_,children:t("buyModal.cancel")}),r.jsx(Q,{variant:"purple",onClick:()=>void T(),disabled:_||!a,children:_?t("marketCheckout.buying"):x?t("nav.getCredits",{currency:w.name}):t("marketCheckout.confirmPurchase")})]})]})]})}export{Ce as M,pe as u};
@@ -1,4 +1,4 @@
1
- import{Y,V as jt,W as Nt,X as Ke,Z as M,$ as Lt,a1 as Ye,a2 as Ze,bk as vt,b1 as mt,bf as ue,bn as nn,bo as we,bp as ht,bq as je,br as rn,be as on}from"./index-Boi8OWdb.js";import{h as De,R as Me,r as O,j as X,e as an,i as sn,g as ln}from"./react-B36MyIP_.js";import{u as un}from"./useTheme-C3x6r6Lw.js";import{_ as cn,T as Wt}from"./Button-B3EWO6NJ.js";function fn(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var Fe={exports:{}},S={};/**
1
+ import{Y,V as jt,W as Nt,X as Ke,Z as M,$ as Lt,a1 as Ye,a2 as Ze,bk as vt,b1 as mt,bf as ue,bn as nn,bo as we,bp as ht,bq as je,br as rn,be as on}from"./index-VchcND_n.js";import{h as De,R as Me,r as O,j as X,e as an,i as sn,g as ln}from"./react-B36MyIP_.js";import{u as un}from"./useTheme-BoNUL1hb.js";import{_ as cn,T as Wt}from"./Button-CVXKA5VS.js";function fn(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var Fe={exports:{}},S={};/**
2
2
  * @license React
3
3
  * react-is.production.min.js
4
4
  *
@@ -1,4 +1,4 @@
1
- import{L as be,b as De,r as c,j as t}from"./react-B36MyIP_.js";import{n as a,K as s,I as k,h as Ue,t as r,e as He,L as re,u as O,B as We,M as D,N as Ye,c as we,O as Qe,P as Ve}from"./index-Boi8OWdb.js";import{f as Ze}from"./import-xj2dmpRb.js";import{f as Je}from"./builder--u_mLwLg.js";import{R as U,C as Xe,a as et,F as tt,S as H,b as ae}from"./categories-CnryCWCq.js";import{L as st}from"./LoadMore-Cbr521EF.js";import{D as ie,F as le,R as ot,a as nt,b as rt,c as at,d as it,S as lt,e as ct,f as dt,g as mt,h as pt,i as ut,j as ft,k as xt,C as ht,l as yt,m as gt,n as bt,M as wt}from"./Assets.styles-BhE61g54.js";import{u as St}from"./useInfiniteGrid-BsvaZzST.js";import{E as ce}from"./ErrorNotice-D_Z5OVFI.js";import{n as Se}from"./emotion-CSxEP8yM.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";import"./buy-DsK3JvBE.js";import"./authorizations-DVHH9Rgu.js";import"./sendMetaTransaction-CoMlUn3U.js";import"./trade-encoding-CJ445Q0f.js";import"./mana-rate-Dr5e3Fsu.js";import"./Tooltip-CkfT0XKM.js";a.div`
1
+ import{L as be,b as De,r as c,j as t}from"./react-B36MyIP_.js";import{n as a,K as s,I as k,h as Ue,t as r,e as He,L as re,u as O,B as We,M as D,N as Ye,c as we,O as Qe,P as Ve}from"./index-VchcND_n.js";import{f as Ze}from"./import-5htnR-24.js";import{f as Je}from"./builder-BsAwBvGZ.js";import{R as U,C as Xe,a as et,F as tt,S as H,b as ae}from"./categories-Jh3tfbEa.js";import{L as st}from"./LoadMore-K8EfO7If.js";import{D as ie,F as le,R as ot,a as nt,b as rt,c as at,d as it,S as lt,e as ct,f as dt,g as mt,h as pt,i as ut,j as ft,k as xt,C as ht,l as yt,m as gt,n as bt,M as wt}from"./Assets.styles-CE4c2s9w.js";import{u as St}from"./useInfiniteGrid-S2Upf1Ae.js";import{E as ce}from"./ErrorNotice-D_Z5OVFI.js";import{n as Se}from"./emotion-CSxEP8yM.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";import"./buy-CyhVI8ih.js";import"./authorizations-Dtu8Ye0y.js";import"./sendMetaTransaction-CydgYVdt.js";import"./trade-encoding-DbssSNOL.js";import"./mana-rate-CY9tOCr1.js";import"./Tooltip-8SR8hseo.js";a.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 4px;
@@ -1 +1 @@
1
- import{r as n,j as e,L as c}from"./react-B36MyIP_.js";import{h as l,t as s,Q as m,M as d}from"./index-Boi8OWdb.js";import{L as p}from"./LoadMore-Cbr521EF.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";const v="data:image/svg+xml,%3csvg%20width='138'%20height='138'%20viewBox='0%200%20138%20138'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M92.7188%2021.5625V34.5'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M86.25%2028.0312H99.1875'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M24.7324%2065.5C24.732%2062.8042%2025.2665%2060.1361%2026.3037%2057.6514C27.341%2055.1665%2028.8602%2052.9151%2030.7715%2051.0293C32.6826%2049.1438%2034.9471%2047.6604%2037.4326%2046.666C39.9183%2045.6716%2042.5762%2045.1856%2045.25%2045.2354L45.3008%2045.2363H45.3516C48.581%2045.2192%2051.7779%2045.8923%2054.7305%2047.2109C56.1717%2047.8547%2057.539%2048.6448%2058.8115%2049.5674C60.1459%2050.5348%2061.3766%2051.6478%2062.4795%2052.8887L65.6426%2056.4473L68.8057%2052.8887C69.9086%2051.6478%2071.1392%2050.5348%2072.4736%2049.5674C73.7464%2048.6446%2075.1142%2047.8547%2076.5557%2047.2109C79.5083%2045.8922%2082.705%2045.2191%2085.9346%2045.2363H85.9854L86.0361%2045.2354C88.7097%2045.1856%2091.367%2045.6717%2093.8525%2046.666C96.3383%2047.6604%2098.6034%2049.1436%20100.515%2051.0293C102.426%2052.9151%20103.945%2055.1665%20104.982%2057.6514C106.02%2060.1361%20106.554%2062.8043%20106.554%2065.5V65.501C106.554%2074.0645%20102.382%2082.1039%2095.8086%2089.877C89.2296%2097.6565%2080.6704%20104.682%2072.6035%20111.289C71.1421%20112.486%2069.6963%20113.67%2068.2959%20114.832C66.7887%20116.083%2064.5293%20116.081%2063.0176%20114.818C61.4894%20113.542%2059.9072%20112.242%2058.3076%20110.928C50.2836%20104.335%2041.8192%2097.3643%2035.3242%2089.6553C28.8376%2081.9561%2024.7324%2073.9982%2024.7324%2065.501V65.5Z'%20stroke='url(%23paint0_linear_favorites_empty)'%20stroke-width='8.46429'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_favorites_empty'%20x1='17.6552'%20y1='80.505'%20x2='176.469'%20y2='63.4051'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",r=24;function F(){l({title:s("nav.myFavorites"),noindex:!0});const i=m(t=>Object.values(t.items)),[a,o]=n.useState(r);return i.length===0?e.jsxs("div",{className:"favorites-empty","data-testid":"favorites-empty",children:[e.jsx("img",{className:"favorites-empty__icon",src:v,alt:"",width:138,height:138}),e.jsxs("div",{className:"favorites-empty__text",children:[e.jsx("p",{className:"favorites-empty__title",children:s("myFavorites.emptyTitle")}),e.jsx("p",{className:"favorites-empty__body",children:s("myFavorites.emptyBody")})]}),e.jsx(c,{className:"favorites-empty__cta",to:"/assets",children:s("myFavorites.emptyCta")})]}):e.jsxs("section",{className:"favorites",children:[e.jsxs("div",{className:"favorites__head",children:[e.jsx("h1",{children:s("nav.myFavorites")}),e.jsx("span",{className:"favorites__count",children:s("myFavorites.itemCount",{count:i.length})})]}),e.jsx("div",{className:"grid",children:i.slice(0,a).map(t=>e.jsx(d,{item:t},t.id))}),e.jsx(p,{hasNextPage:a<i.length,isFetching:!1,onLoadMore:()=>o(t=>t+r)})]})}export{F as MyFavorites};
1
+ import{r as n,j as e,L as c}from"./react-B36MyIP_.js";import{h as l,t as s,Q as m,M as d}from"./index-VchcND_n.js";import{L as p}from"./LoadMore-K8EfO7If.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";const v="data:image/svg+xml,%3csvg%20width='138'%20height='138'%20viewBox='0%200%20138%20138'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M92.7188%2021.5625V34.5'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M86.25%2028.0312H99.1875'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M24.7324%2065.5C24.732%2062.8042%2025.2665%2060.1361%2026.3037%2057.6514C27.341%2055.1665%2028.8602%2052.9151%2030.7715%2051.0293C32.6826%2049.1438%2034.9471%2047.6604%2037.4326%2046.666C39.9183%2045.6716%2042.5762%2045.1856%2045.25%2045.2354L45.3008%2045.2363H45.3516C48.581%2045.2192%2051.7779%2045.8923%2054.7305%2047.2109C56.1717%2047.8547%2057.539%2048.6448%2058.8115%2049.5674C60.1459%2050.5348%2061.3766%2051.6478%2062.4795%2052.8887L65.6426%2056.4473L68.8057%2052.8887C69.9086%2051.6478%2071.1392%2050.5348%2072.4736%2049.5674C73.7464%2048.6446%2075.1142%2047.8547%2076.5557%2047.2109C79.5083%2045.8922%2082.705%2045.2191%2085.9346%2045.2363H85.9854L86.0361%2045.2354C88.7097%2045.1856%2091.367%2045.6717%2093.8525%2046.666C96.3383%2047.6604%2098.6034%2049.1436%20100.515%2051.0293C102.426%2052.9151%20103.945%2055.1665%20104.982%2057.6514C106.02%2060.1361%20106.554%2062.8043%20106.554%2065.5V65.501C106.554%2074.0645%20102.382%2082.1039%2095.8086%2089.877C89.2296%2097.6565%2080.6704%20104.682%2072.6035%20111.289C71.1421%20112.486%2069.6963%20113.67%2068.2959%20114.832C66.7887%20116.083%2064.5293%20116.081%2063.0176%20114.818C61.4894%20113.542%2059.9072%20112.242%2058.3076%20110.928C50.2836%20104.335%2041.8192%2097.3643%2035.3242%2089.6553C28.8376%2081.9561%2024.7324%2073.9982%2024.7324%2065.501V65.5Z'%20stroke='url(%23paint0_linear_favorites_empty)'%20stroke-width='8.46429'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_favorites_empty'%20x1='17.6552'%20y1='80.505'%20x2='176.469'%20y2='63.4051'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",r=24;function F(){l({title:s("nav.myFavorites"),noindex:!0});const i=m(t=>Object.values(t.items)),[a,o]=n.useState(r);return i.length===0?e.jsxs("div",{className:"favorites-empty","data-testid":"favorites-empty",children:[e.jsx("img",{className:"favorites-empty__icon",src:v,alt:"",width:138,height:138}),e.jsxs("div",{className:"favorites-empty__text",children:[e.jsx("p",{className:"favorites-empty__title",children:s("myFavorites.emptyTitle")}),e.jsx("p",{className:"favorites-empty__body",children:s("myFavorites.emptyBody")})]}),e.jsx(c,{className:"favorites-empty__cta",to:"/assets",children:s("myFavorites.emptyCta")})]}):e.jsxs("section",{className:"favorites",children:[e.jsxs("div",{className:"favorites__head",children:[e.jsx("h1",{children:s("nav.myFavorites")}),e.jsx("span",{className:"favorites__count",children:s("myFavorites.itemCount",{count:i.length})})]}),e.jsx("div",{className:"grid",children:i.slice(0,a).map(t=>e.jsx(d,{item:t},t.id))}),e.jsx(p,{hasNextPage:a<i.length,isFetching:!1,onLoadMore:()=>o(t=>t+r)})]})}export{F as MyFavorites};
@@ -1 +1 @@
1
- import{j as t,L as n}from"./react-B36MyIP_.js";import{h as s,t as o,I as e,B as a}from"./index-Boi8OWdb.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";function c(){return s({title:o("seo.notFound.title"),noindex:!0}),t.jsxs("div",{className:"notfound","data-testid":"notfound",children:[t.jsx(e,{name:"cart",className:"notfound__ico"}),t.jsx("h1",{className:"notfound__title",children:o("notFound.title")}),t.jsx("p",{className:"muted",children:o("notFound.body")}),t.jsx(a,{as:n,to:"/assets",variant:"purple",children:o("notFound.cta")})]})}export{c as NotFound,c as default};
1
+ import{j as t,L as n}from"./react-B36MyIP_.js";import{h as s,t as o,I as e,B as a}from"./index-VchcND_n.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";function c(){return s({title:o("seo.notFound.title"),noindex:!0}),t.jsxs("div",{className:"notfound","data-testid":"notfound",children:[t.jsx(e,{name:"cart",className:"notfound__ico"}),t.jsx("h1",{className:"notfound__title",children:o("notFound.title")}),t.jsx("p",{className:"muted",children:o("notFound.body")}),t.jsx(a,{as:n,to:"/assets",variant:"purple",children:o("notFound.cta")})]})}export{c as NotFound,c as default};