@dcl/shop 1.13.1-35585926635.commit-02c8d2e → 1.13.1-35590455689.commit-b96d6aa

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 (254) hide show
  1. package/_assets/{Activity-DoatD7MW.js → Activity-DtmObND1.js} +6 -6
  2. package/_assets/{AnimatedBackground-dVEk0PGp.js → AnimatedBackground-C7LiOBAR.js} +2 -2
  3. package/_assets/Assets-BKSeyg2-.js +990 -0
  4. package/_assets/Cart-BlPpGnda.js +748 -0
  5. package/_assets/{Collection-CPZhq7CU.js → Collection-CcSqRcWT.js} +10 -10
  6. package/_assets/CollectionCarousel-B94cetFe.js +322 -0
  7. package/_assets/{Confetti-Bd901H1c.js → Confetti-BsAs2ze-.js} +4 -4
  8. package/_assets/{ConstantsUtil-Bk0e9ERj.js → ConstantsUtil-C2D8mddi.js} +2 -2
  9. package/_assets/{ContentClient-CWtagBtE.js → ContentClient-CzFsgWm1.js} +2 -2
  10. package/_assets/{Creator-pBuqm0Cj.js → Creator-CJGUaWbh.js} +16 -16
  11. package/_assets/{CreditPackPicker-COb2KClL.js → CreditPackPicker-CsfuFEfj.js} +67 -67
  12. package/_assets/{DeploymentBuilder-Dg-EXfAY.js → DeploymentBuilder-C567uLsW.js} +2 -2
  13. package/_assets/{EmotePlaybackBar-DyYs6qdM.js → EmotePlaybackBar-v4_tU2B8.js} +19 -19
  14. package/_assets/{ErrorNotice-Cm0KaFyV.js → ErrorNotice-Bvb886Qo.js} +2 -2
  15. package/_assets/Event-Dw7dIeEd.js +72 -0
  16. package/_assets/{ExchangeController-BzBrR3ZT.js → ExchangeController-DosyxWhL.js} +2 -2
  17. package/_assets/{Faq-D2noxWN_.js → Faq-CfWixARb.js} +2 -2
  18. package/_assets/{Filters-Dw8HD8Ma.js → Filters-YViPs7N9.js} +9 -9
  19. package/_assets/{GetCredits-BmFWdIGx.js → GetCredits-xHj_8fdJ.js} +22 -27
  20. package/_assets/{Grow-BiGjBqEo.js → Grow-CTV7DbJ0.js} +2 -2
  21. package/_assets/{HelpersUtil-DQga4Ywl.js → HelpersUtil-CH7uwgeQ.js} +2 -2
  22. package/_assets/ItemDetail-CGP_a6DC.js +3411 -0
  23. package/_assets/{LoadMore-i7_riiE5.js → LoadMore-DtjdrYgG.js} +2 -2
  24. package/_assets/{ManaPricingBanner.styles-Dyx_YmBW.js → ManaPricingBanner.styles-DujCFxcW.js} +2 -2
  25. package/_assets/{MyAssets-Bs1a3OD9.js → MyAssets-B6TkqwwO.js} +8 -8
  26. package/_assets/{MyFavorites-C03JcdtN.js → MyFavorites-B44xn-9o.js} +3 -3
  27. package/_assets/{MyStore-ryCuwvDl.js → MyStore-BQ6gSMq1.js} +7 -7
  28. package/_assets/{NetworkUtil-BbMBxyRo.js → NetworkUtil-gznX6ou4.js} +2 -2
  29. package/_assets/{NotFound-DOO8Ql2w.js → NotFound-D7NlwWss.js} +2 -2
  30. package/_assets/{NotificationsBell-VR9lnc9P.js → NotificationsBell-wL661h4k.js} +13 -13
  31. package/_assets/{OutfitDetail-Co1A4WCO.js → OutfitDetail-CSiCaTR7.js} +2 -2
  32. package/_assets/OutfitPreview-CKul99pm.js +7 -0
  33. package/_assets/{OutfitStudio-DGibRraW.js → OutfitStudio-BFVYiWYq.js} +10 -10
  34. package/_assets/PaymentMethodStep-gIGuBdJE.js +370 -0
  35. package/_assets/{SaleCountdown-NdYuBnTu.js → SaleCountdown-2TjAtNVx.js} +2 -2
  36. package/_assets/{Spinner-B5rI43ql.js → Spinner-CRDfDFgI.js} +2 -2
  37. package/_assets/{StoreSettings-C2dwtV13.js → StoreSettings-CWiJDJd-.js} +9 -9
  38. package/_assets/{Success-B6gpri2D.js → Success-BKyyN-pm.js} +2 -2
  39. package/_assets/{SwapController-Di8HGSG3.js → SwapController-DCQKOdcz.js} +2 -2
  40. package/_assets/{Tooltip-Bj-rfWuS.js → Tooltip-DDZC_HFb.js} +2 -2
  41. package/_assets/{TradeService-D2dJeuos.js → TradeService-DfSf1NpN.js} +2 -2
  42. package/_assets/{W3MFrameProviderSingleton-DwbyBYX9.js → W3MFrameProviderSingleton-CrWP7H9X.js} +4 -4
  43. package/_assets/{WebCryptoP256-CZzgSMZW.js → WebCryptoP256-CLuRQdD0.js} +2 -2
  44. package/_assets/{basic-C0ccxPdk.js → basic-CnpinvSd.js} +2 -2
  45. package/_assets/{biconomy-DGsEEV8A.js → biconomy-CQS-_u1K.js} +2 -2
  46. package/_assets/{browseLayout.styles-Dg021Y7v.js → browseLayout.styles-DlEgobcb.js} +2 -2
  47. package/_assets/{browser-DfAY1k2K.js → browser-JmFfz-b9.js} +2 -2
  48. package/_assets/{browser-D3mkrR6N.js → browser-jrXp40VI.js} +2 -2
  49. package/_assets/{browser-ponyfill-C5RB02M7.js → browser-ponyfill-vVJjiRiF.js} +2 -2
  50. package/_assets/{buy-Da1E8jgj.js → buy-DNvl7CRU.js} +2 -2
  51. package/_assets/{buy-gasless-CaUM9sxG.js → buy-gasless-Cd8D2hco.js} +2 -2
  52. package/_assets/cart-checkout-BvFV5K1b.js +2 -0
  53. package/_assets/{categories-DeCaTWZU.js → categories-D2I9oC9p.js} +2 -2
  54. package/_assets/{ccip-CIKPg0_h.js → ccip-D8g0xR6M.js} +2 -2
  55. package/_assets/{ccip-CIPTk6YK.js → ccip-fv1rGl9l.js} +2 -2
  56. package/_assets/{chains-CWGwszpJ.js → chains-rk6oFk-J.js} +2 -2
  57. package/_assets/collectionPage.styles-CNsIHztj.js +41 -0
  58. package/_assets/{common-DamPx7zD.js → common-CMmghlP6.js} +2 -2
  59. package/_assets/{controller-J7h5zgkf.js → controller-l-w-81tc.js} +3 -3
  60. package/_assets/{core-BILweyMC.js → core-BphVSVDd.js} +5 -5
  61. package/_assets/{createSvgIcon-BOJMqAuj.js → createSvgIcon-Ci6-mKZX.js} +4 -4
  62. package/_assets/{crumbs.styles-6TXvIB5e.js → crumbs.styles-DhvCPMDb.js} +2 -2
  63. package/_assets/{custom-CtbaVsvz.js → custom-COOt78S6.js} +2 -2
  64. package/_assets/{data-capture-D_Yc-lFk.js → data-capture-C7thi-6U.js} +5 -5
  65. package/_assets/{dcl-schemas-Do6ePE9M.js → dcl-schemas-rAoTN5Ga.js} +2 -2
  66. package/_assets/{decimals-CPcEXrkP.js → decimals-Dl7Q2CQ8.js} +2 -2
  67. package/_assets/{decimals-fY1-YeOV.js → decimals-DvdfA0Vf.js} +2 -2
  68. package/_assets/{detectExtension-BzGhSQVN.js → detectExtension-CnrRv_RG.js} +2 -2
  69. package/_assets/{disposePreview-BhRqNFqz.js → disposePreview-ZbaLYmpw.js} +2 -2
  70. package/_assets/{email-CDJff6Le.js → email-eSYyd3Ic.js} +7 -7
  71. package/_assets/{embedded-wallet-OlJuY5Lb.js → embedded-wallet-DDuKB0SG.js} +2 -2
  72. package/_assets/{emotion-styled.browser.esm-dqXx08M6.js → emotion-styled.browser.esm-hf9E1adQ.js} +2 -2
  73. package/_assets/{engine-Cqgf8_-e.js → engine-DD67Y28C.js} +2 -2
  74. package/_assets/{errors-COVZQXFS.js → errors-YbnZlxOr.js} +2 -2
  75. package/_assets/{estimate-l1-fee-cwAe5Vqz.js → estimate-l1-fee-Db8Xd1Gz.js} +2 -2
  76. package/_assets/{eth_estimateGas-Bi2jA3d6.js → eth_estimateGas-CuREEErh.js} +2 -2
  77. package/_assets/{eth_getStorageAt-Drv0-oaq.js → eth_getStorageAt-DZSUCK-B.js} +2 -2
  78. package/_assets/{eth_getTransactionCount-u8vibbIm.js → eth_getTransactionCount-BdILqCdx.js} +2 -2
  79. package/_assets/{ethereum-Mtg8xwT8.js → ethereum-B-cyXRfV.js} +2 -2
  80. package/_assets/{ethers-DVrorjJ1.js → ethers-BicPoGF3.js} +2 -2
  81. package/_assets/{events-CcYNTdVN.js → events-CaiMQ2jo.js} +2 -2
  82. package/_assets/{execute-CoAxXj0W.js → execute-DY89Xj7h.js} +3 -3
  83. package/_assets/{extractIPFS-DlbP2Osb.js → extractIPFS-DPI0xl1R.js} +2 -2
  84. package/_assets/{features-DNE6dOZ4.js → features-CuKlQS4a.js} +2 -2
  85. package/_assets/{fetchTokenMetadata-CiNffAhl.js → fetchTokenMetadata-BxkvK3Bm.js} +3 -3
  86. package/_assets/{field.styles-Dsz8I5YB.js → field.styles-DMi6RLqU.js} +2 -2
  87. package/_assets/{fortmatic-B2QacKOL.js → fortmatic-O6xyCC9X.js} +2 -2
  88. package/_assets/{get-bytecode-DCxZ_TJS.js → get-bytecode-Mi4Svfmk.js} +2 -2
  89. package/_assets/{get-ecosystem-wallet-info-Dpf1xtjk.js → get-ecosystem-wallet-info-UP5lf6cZ.js} +2 -2
  90. package/_assets/{getBalance-DacQHsEf.js → getBalance-B6-tJ5BV.js} +3 -3
  91. package/_assets/{getInstalledModules-_KOhu2kj.js → getInstalledModules-BtUgUvpg.js} +2 -2
  92. package/_assets/{getNFT-TgQU4sPn.js → getNFT-BkPMs9B5.js} +3 -3
  93. package/_assets/{getNFT-DLLMJ-N8.js → getNFT-DATmUgAo.js} +2 -2
  94. package/_assets/{grid.styles-zbj0YrVx.js → grid.styles-D0ZoMAGk.js} +2 -2
  95. package/_assets/{hashTypedData-CxzAx589.js → hashTypedData-CefqN4UY.js} +2 -2
  96. package/_assets/{hashTypedData-C4V4k80v.js → hashTypedData-DN22sW92.js} +2 -2
  97. package/_assets/{import-p1kr6qLz.js → import-uY6UfPXb.js} +2 -2
  98. package/_assets/{in-app-niBzraeI.js → in-app-Bny7t-DP.js} +2 -2
  99. package/_assets/{in-app-wallet-calls-Dyorin4y.js → in-app-wallet-calls-DCQO7CRP.js} +2 -2
  100. package/_assets/{index-DeaVX3Ga.js → index--MHqQDZS.js} +2 -2
  101. package/_assets/{index-B39be1Q8.js → index-0GVDw4uz.js} +2 -2
  102. package/_assets/{index-BdTU9iVQ.js → index-6JqTwz5Z.js} +4 -4
  103. package/_assets/{index-CwA52DzI.js → index-7-ubf_-8.js} +2 -2
  104. package/_assets/{index-CpfmSBK0.js → index-72AbyZoi.js} +2 -2
  105. package/_assets/{index-CWJFyp1v.js → index-B-pxbYDD.js} +2 -2
  106. package/_assets/{index-I_W87dfE.js → index-B0ZDNOJc.js} +2 -2
  107. package/_assets/{index-BzKWq7pb.js → index-B5rvK7P3.js} +2 -2
  108. package/_assets/{index-BdhRH7ae.js → index-B5yRX3sO.js} +2 -2
  109. package/_assets/{index-DXmPq_Kc.js → index-B8Miitap.js} +2 -2
  110. package/_assets/{index-CKb-Chs7.js → index-BB2vaXmU.js} +2 -2
  111. package/_assets/{index-D05bb_h6.js → index-BJ_QYYzi.js} +2 -2
  112. package/_assets/{index-pibLOLKX.js → index-BNxapPjc.js} +2 -2
  113. package/_assets/{index-C-cdcYSu.js → index-BUq9yZ3w.js} +5 -5
  114. package/_assets/{index-Dpu-M2gs.js → index-BXZWbQLr.js} +2 -2
  115. package/_assets/{index-Cn-ULh1k.js → index-BXk1eKu5.js} +2 -2
  116. package/_assets/{index-DjQWTjO5.js → index-BYX4J5QP.js} +2 -2
  117. package/_assets/{index-BhPBG2XL.js → index-BdzxJpnV.js} +9 -9
  118. package/_assets/{index-BrTe5eTC.js → index-BvC4isNn.js} +2 -2
  119. package/_assets/{index-CxOzFLm7.js → index-Bwq-s3g2.js} +2 -2
  120. package/_assets/{index-Ddqdlsoi.js → index-BxmlkA7q.js} +2 -2
  121. package/_assets/{index-DUaZ1t6t.js → index-C1VNSD13.js} +2 -2
  122. package/_assets/{index-CWE_Bdvd.js → index-C30kKaUV.js} +2 -2
  123. package/_assets/{index-DpJ4zJ7r.js → index-CDzHP3jq.js} +2 -2
  124. package/_assets/{index-U6lik-J8.js → index-CFX2-tLC.js} +2 -2
  125. package/_assets/{index-Bpbs2w1c.js → index-CM1GTgwu.js} +2 -2
  126. package/_assets/{index-CWc56QrX.js → index-CO1HUlye.js} +2 -2
  127. package/_assets/{index-B1DNuJsS.js → index-CP4g0MYO.js} +2 -2
  128. package/_assets/{index-Cq-Etsdf.js → index-CW8iztAv.js} +2 -2
  129. package/_assets/{index-iRDDuzQN.js → index-CYNOPRoZ.js} +2 -2
  130. package/_assets/{index-CZmSHbVE.js → index-CakMQwPl.js} +2 -2
  131. package/_assets/{index-BEbVm5wA.js → index-CbayBN70.js} +2 -2
  132. package/_assets/{index-DrGWXFkr.js → index-CbiZcfm9.js} +2 -2
  133. package/_assets/{index-ChhJ84F9.js → index-Cg51zZ2k.js} +2 -2
  134. package/_assets/{index-sTnDYGsF.js → index-Crr-s_9f.js} +2 -2
  135. package/_assets/{index-BaeSw32D.js → index-Cz_NLjja.js} +3 -3
  136. package/_assets/{index-CfGsvFRR.js → index-D1s-_zWj.js} +2 -2
  137. package/_assets/{index-_AZXosO6.js → index-D5mE-BZf.js} +2 -2
  138. package/_assets/{index-gg05iP5j.js → index-DBXe-H17.js} +4 -4
  139. package/_assets/{index-BhSgZf6d.css → index-DKFaSnR3.css} +1 -1
  140. package/_assets/{index-CEbyUU5H.js → index-DKolBddb.js} +2 -2
  141. package/_assets/{index-CcTOkZrG.js → index-DLNZA_z3.js} +2 -2
  142. package/_assets/{index-D8M-5R_3.js → index-DVuOEZvs.js} +2 -2
  143. package/_assets/{index-B6iPDUS8.js → index-DXGd7b5m.js} +2 -2
  144. package/_assets/{index-CxNh07aM.js → index-DY5YerbM.js} +3 -3
  145. package/_assets/{index-D8olnnil.js → index-DY6MimDO.js} +2 -2
  146. package/_assets/{index-D_SCQhiC.js → index-D_GN8H-m.js} +2 -2
  147. package/_assets/{index-CwoMLrsB.js → index-Dck2NPjx.js} +2 -2
  148. package/_assets/{index-BC9VPSaU.js → index-Dk93Si47.js} +2 -2
  149. package/_assets/{index-DzWgqsYH.js → index-Dm2tHUTz.js} +2 -2
  150. package/_assets/{index-rsyTCpy-.js → index-Dmr0-dT1.js} +2 -2
  151. package/_assets/{index-Dyy6WQp0.js → index-DtG0vwAQ.js} +5 -5
  152. package/_assets/{index-CRlpbq5e.js → index-DvmOwVBr.js} +2 -2
  153. package/_assets/{index-MqPRfHS_.js → index-HpMk4su8.js} +4 -4
  154. package/_assets/{index-CD44EXbq.js → index-MB1YeHVs.js} +2 -2
  155. package/_assets/{index-DDb_ETfE.js → index-Nax2ER2m.js} +2 -2
  156. package/_assets/{index-y9tZLe7Z.js → index-PCOMQSTj.js} +14 -14
  157. package/_assets/{index-CZEd2SGy.js → index-PdWok5k8.js} +3 -3
  158. package/_assets/{index-Ccey0v_W.js → index-TLvmnU-6.js} +2 -2
  159. package/_assets/{index-Csp5LciJ.js → index-Vx6QrhKv.js} +2 -2
  160. package/_assets/{index-CEVRFChv.js → index-_CzitlLr.js} +2 -2
  161. package/_assets/{index-DLcPHJzx.js → index-fKOqL46i.js} +2 -2
  162. package/_assets/{index-WiX7N7NB.js → index-gLJ8elkH.js} +2 -2
  163. package/_assets/{index-BgrkbkKX.js → index-oZ1tZhJd.js} +3 -3
  164. package/_assets/{index-BW2_mJUZ.js → index-os35Oj8Y.js} +3 -3
  165. package/_assets/{index-PmcUrVFZ.js → index-tJJoQndL.js} +2 -2
  166. package/_assets/{index-B1-eV0Yy.js → index-ujlY03pm.js} +2 -2
  167. package/_assets/{index-C9RSadCu.js → index-xFEDZfFw.js} +2 -2
  168. package/_assets/{index.es-CWkiohwA.js → index.es-BA-gf3fx.js} +2 -2
  169. package/_assets/{index.es-CPftFMVM.js → index.es-DXZDtwqn.js} +2 -2
  170. package/_assets/{index.es-BZZFX7UO.js → index.es-naJ1lYo9.js} +2 -2
  171. package/_assets/{index.es-p9GOzpcM.js → index.es-ug1d0j5_.js} +5 -5
  172. package/_assets/{items-empty-D3SdcrUb.js → items-empty-DQe16EqO.js} +2 -2
  173. package/_assets/{jump-BLEV_WoY.js → jump-CDi48t17.js} +2 -2
  174. package/_assets/{linkAccount-DAFP48le.js → linkAccount-D2r-_PNt.js} +2 -2
  175. package/_assets/{localBatchGatewayRequest-dB8Wq4kD.js → localBatchGatewayRequest-DCZrRD0b.js} +2 -2
  176. package/_assets/{modal.styles-C5SxmNLg.js → modal.styles-B9NcZpH1.js} +2 -2
  177. package/_assets/{native-CBQhq49N.js → native-CsJDQkEo.js} +2 -2
  178. package/_assets/{networks-8H1PRpMW.js → networks-H2-ip_xr.js} +2 -2
  179. package/_assets/{onramp-J5H4ebWV.js → onramp-jMWRpk_W.js} +2 -2
  180. package/_assets/{openzeppelin-D4p4dWkw.js → openzeppelin-CNtXocND.js} +2 -2
  181. package/_assets/{ownerOf-6NPphff8.js → ownerOf-D2gp3JZq.js} +2 -2
  182. package/_assets/{parseNft-CNeONFsP.js → parseNft-Cj0GHmVO.js} +3 -3
  183. package/_assets/{parseSignature-RdZmR6vg.js → parseSignature-Cr-6xEFY.js} +4 -4
  184. package/_assets/{parseSignature-CRChMV-U.js → parseSignature-DqjVaLFW.js} +2 -2
  185. package/_assets/{passkeys-asZ3JuTk.js → passkeys-ZTPY9Io2.js} +2 -2
  186. package/_assets/{pay-with-exchange-Cv_5xsJB.js → pay-with-exchange-DFmrgXeW.js} +2 -2
  187. package/_assets/{prepare-contract-call-Bgba2npe.js → prepare-contract-call-BXj1hstj.js} +2 -2
  188. package/_assets/{qr-overlay-DkizM6BP.js → qr-overlay-BaiwMdsM.js} +4 -4
  189. package/_assets/{react-ZT2P9-hV.js → react-BQkTEhfI.js} +2 -2
  190. package/_assets/{receive-CawQ-n3T.js → receive-C-lo_prs.js} +2 -2
  191. package/_assets/{resolveImplementation-BVnQ0KdI.js → resolveImplementation-CmaftYpU.js} +2 -2
  192. package/_assets/{resume-buy-VqFhR9e8.js → resume-buy-CVhyi-L1.js} +2 -2
  193. package/_assets/{resume-name-CTz059A2.js → resume-name-DUz5x9Rs.js} +2 -2
  194. package/_assets/{rpc-BJ7rd6au.js → rpc-B61gfFSf.js} +2 -2
  195. package/_assets/{sales-empty-l9JLZ5D0.js → sales-empty-B211ygk7.js} +2 -2
  196. package/_assets/{search-empty-CkXuQVln.js → search-empty-D4s8B_tZ.js} +2 -2
  197. package/_assets/{secp256k1-BaU6Nn5x.js → secp256k1-Bd-eUAzZ.js} +2 -2
  198. package/_assets/{secp256k1-BGQ_Uqpo.js → secp256k1-DV0o92mg.js} +2 -2
  199. package/_assets/{secp256k1-Bu5sn1ZV.js → secp256k1-iVBXtOip.js} +2 -2
  200. package/_assets/{send-DONjIfwF.js → send-DxdkG-xE.js} +2 -2
  201. package/_assets/{send-batch-transaction-C_JYVBkw.js → send-batch-transaction-CxU4nO-t.js} +2 -2
  202. package/_assets/{send-eip712-transaction-Clelg5Q-.js → send-eip712-transaction-DFcFblDh.js} +3 -3
  203. package/_assets/{send-gasless-transaction-DNc4O0S0.js → send-gasless-transaction-8mkyEx1n.js} +3 -3
  204. package/_assets/send-transaction-5bX-xy_o.js +3 -0
  205. package/_assets/sendMetaTransaction-C0dwdljX.js +2 -0
  206. package/_assets/{sendRawTransaction-BM57FQWh.js → sendRawTransaction-Z6tsEgH4.js} +4 -4
  207. package/_assets/{sentry-qVQnooqM.js → sentry-DEsWWpBW.js} +3 -3
  208. package/_assets/{serializeTransaction-FdLqYQ-w.js → serializeTransaction-97Bat4Ro.js} +2 -2
  209. package/_assets/{session-proposal-CAm5TVJB.js → session-proposal-BFyOx5ep.js} +2 -2
  210. package/_assets/{session-request-C8xtyN3L.js → session-request-B-ZDEBIl.js} +3 -3
  211. package/_assets/{sha256-CcM85_-b.js → sha256-CFlr28b8.js} +2 -2
  212. package/_assets/sha3-VyXLimeE.js +2 -0
  213. package/_assets/signin-empty-3JhXhx04.js +2 -0
  214. package/_assets/{signing-FPVJ2eSa.js → signing-CaEAGDvd.js} +4 -4
  215. package/_assets/{skeleton.styles-DTLcQB9A.js → skeleton.styles-CP5AXi51.js} +2 -2
  216. package/_assets/{socials-BHL-s99I.js → socials-BAatCjg9.js} +2 -2
  217. package/_assets/{styled-BOKv7XKm.js → styled-Ciz7uJTf.js} +3 -3
  218. package/_assets/{swaps-DDuyuFV1.js → swaps-Duk8fCsv.js} +2 -2
  219. package/_assets/{thirdweb-N4oYmhTQ.js → thirdweb-Cvgkcum1.js} +4 -4
  220. package/_assets/{to-serializable-transaction-DZXV0RS9.js → to-serializable-transaction-BQmkdzOC.js} +3 -3
  221. package/_assets/{totalSupply-DnoXRYZk.js → totalSupply-DWGbPH_3.js} +2 -2
  222. package/_assets/{trade-encoding-JnGsRcov.js → trade-encoding-7I6Mahyk.js} +2 -2
  223. package/_assets/{transaction-D82LqpKn.js → transaction-C6zqrRsP.js} +2 -2
  224. package/_assets/{transactionReceipt-DEqK-l-5.js → transactionReceipt-wHhvs2MM.js} +2 -2
  225. package/_assets/{transactions-1TYNoevC.js → transactions-CWlJM2Ik.js} +2 -2
  226. package/_assets/{useCreatorSales-oruupPPN.js → useCreatorSales-B_z9WK8w.js} +2 -2
  227. package/_assets/useInfiniteGrid-B28HAmqv.js +2 -0
  228. package/_assets/{useStore-CGFjD1j7.js → useStore-BH311mqp.js} +3 -3
  229. package/_assets/{useTheme-J18Pg7gw.js → useTheme-CnRNEYQX.js} +2 -2
  230. package/_assets/{utils-BE7z1_FY.js → utils-Dpy_P8-Z.js} +2 -2
  231. package/_assets/{verifyHash-Buuby46g.js → verifyHash-CNHX3bhf.js} +2 -2
  232. package/_assets/{w3m-modal-DhWirtG8.js → w3m-modal-BfLNfzQm.js} +2 -2
  233. package/_assets/{w3m-modal-BU-cBw0Z.js → w3m-modal-Cd0pP9Y6.js} +2 -2
  234. package/_assets/{wait-for-tx-receipt-CG08f_bj.js → wait-for-tx-receipt-CCoeTvDN.js} +2 -2
  235. package/_assets/{wallets-CMB2i32E.js → wallets-DBEimxdS.js} +6 -6
  236. package/_assets/{web-connector-BPh_N46m.js → web-connector-CFETM0Ek.js} +4 -4
  237. package/_assets/{writeContract-BcpztdZJ.js → writeContract-xYjTt9Gm.js} +2 -2
  238. package/_assets/{zora-sepolia-arxykf8i.js → zora-sepolia-CmFkNSlJ.js} +2 -2
  239. package/_assets/{zoraTestnet-DL2ClkoW.js → zoraTestnet-D9iiG-Zu.js} +2 -2
  240. package/index.html +11 -11
  241. package/package.json +2 -2
  242. package/_assets/Assets-CN1LU5Xt.js +0 -980
  243. package/_assets/Cart-Bwf6I0xV.js +0 -748
  244. package/_assets/CollectionCarousel-CrMGuIJ3.js +0 -322
  245. package/_assets/Event-C9d1J0Kb.js +0 -72
  246. package/_assets/ItemDetail-BSwm3WSx.js +0 -3779
  247. package/_assets/OutfitPreview-Ceha9IWa.js +0 -7
  248. package/_assets/cart-checkout-uu8usx3x.js +0 -2
  249. package/_assets/collectionPage.styles-DOzyhn9M.js +0 -41
  250. package/_assets/send-transaction-pFbo31gg.js +0 -3
  251. package/_assets/sendMetaTransaction-BcKatlZr.js +0 -2
  252. package/_assets/sha3-FAYNGyBi.js +0 -2
  253. package/_assets/signin-empty-UN_rVDWL.js +0 -2
  254. package/_assets/useInfiniteGrid-56c_34kP.js +0 -2
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-C-cdcYSu.js","_assets/react-ZT2P9-hV.js","_assets/dcl-schemas-Do6ePE9M.js","_assets/index-y9tZLe7Z.js","_assets/sentry-qVQnooqM.js","_assets/ethers-DVrorjJ1.js","_assets/intl-AKLEHPeO.js","_assets/index-BhSgZf6d.css","_assets/createSvgIcon-BOJMqAuj.js","_assets/emotion-styled.browser.esm-dqXx08M6.js","_assets/styled-BOKv7XKm.js","_assets/index-BW2_mJUZ.js","_assets/useTheme-J18Pg7gw.js"])))=>i.map(i=>d[i]);
2
- import{j as r,r as s}from"./react-ZT2P9-hV.js";import{_ as n,a as d,s as p}from"./index-y9tZLe7Z.js";import{E as u}from"./sentry-qVQnooqM.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="48c0f84e-6330-4c8d-9b7d-c4ad1b2a6cf7",t._sentryDebugIdIdentifier="sentry-dbid-48c0f84e-6330-4c8d-9b7d-c4ad1b2a6cf7")}catch{}})();const l=s.lazy(async()=>{const[{EmoteControls:t},{Experimental_CssVarsProvider:o},{light:a}]=await Promise.all([n(()=>import("./index-C-cdcYSu.js").then(i=>i.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),n(()=>import("./index-BW2_mJUZ.js"),__vite__mapDeps([11,3,1,2,4,5,6,7,12,10])),n(()=>import("./index-y9tZLe7Z.js").then(i=>i.dY),__vite__mapDeps([3,1,2,4,5,6,7]))]);return{default:i=>r.jsx(o,{theme:a,children:r.jsx(t,{...i})})}});function c(t){return r.jsx(u,{fallback:r.jsx(r.Fragment,{}),children:r.jsx(s.Suspense,{fallback:null,children:r.jsx(l,{...t})})})}const{colors:e,radius:x}=d,b=p.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-BUq9yZ3w.js","_assets/react-BQkTEhfI.js","_assets/dcl-schemas-rAoTN5Ga.js","_assets/index-PCOMQSTj.js","_assets/sentry-DEsWWpBW.js","_assets/ethers-BicPoGF3.js","_assets/intl-AKLEHPeO.js","_assets/index-DKFaSnR3.css","_assets/createSvgIcon-Ci6-mKZX.js","_assets/emotion-styled.browser.esm-hf9E1adQ.js","_assets/styled-Ciz7uJTf.js","_assets/index-os35Oj8Y.js","_assets/useTheme-CnRNEYQX.js"])))=>i.map(i=>d[i]);
2
+ import{j as r,r as s}from"./react-BQkTEhfI.js";import{_ as n,a as d,s as p}from"./index-PCOMQSTj.js";import{E as u}from"./sentry-DEsWWpBW.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="283c77c1-abbc-4cc9-99af-ff1cf278d6f1",e._sentryDebugIdIdentifier="sentry-dbid-283c77c1-abbc-4cc9-99af-ff1cf278d6f1")}catch{}})();const l=s.lazy(async()=>{const[{EmoteControls:e},{Experimental_CssVarsProvider:o},{light:a}]=await Promise.all([n(()=>import("./index-BUq9yZ3w.js").then(i=>i.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),n(()=>import("./index-os35Oj8Y.js"),__vite__mapDeps([11,3,1,2,4,5,6,7,12,10])),n(()=>import("./index-PCOMQSTj.js").then(i=>i.d_),__vite__mapDeps([3,1,2,4,5,6,7]))]);return{default:i=>r.jsx(o,{theme:a,children:r.jsx(e,{...i})})}});function c(e){return r.jsx(u,{fallback:r.jsx(r.Fragment,{}),children:r.jsx(s.Suspense,{fallback:null,children:r.jsx(l,{...e})})})}const{colors:t,radius:x}=d,b=p.div`
3
3
  /* Doubled class: a preview panel may size its children greedily (ItemDetail's stretches every child to
4
4
  fill the stage), and the bar's own geometry has to win that whichever order the styles land in. */
5
5
  && {
@@ -14,7 +14,7 @@ import{j as r,r as s}from"./react-ZT2P9-hV.js";import{_ as n,a as d,s as p}from"
14
14
  align-items: center;
15
15
  background: rgba(255, 255, 255, 0.94);
16
16
  backdrop-filter: blur(6px);
17
- border: 1px solid ${e.line};
17
+ border: 1px solid ${t.line};
18
18
  border-radius: ${x.pill};
19
19
  padding: 6px 12px;
20
20
  box-shadow: 0 2px 10px rgba(22, 21, 24, 0.12);
@@ -39,7 +39,7 @@ import{j as r,r as s}from"./react-ZT2P9-hV.js";import{_ as n,a as d,s as p}from"
39
39
  justify-content: center;
40
40
  background: none !important;
41
41
  box-shadow: none !important;
42
- color: ${e.muted};
42
+ color: ${t.muted};
43
43
  flex: 0 0 auto;
44
44
  transition:
45
45
  background 0.12s ease,
@@ -52,20 +52,20 @@ import{j as r,r as s}from"./react-ZT2P9-hV.js";import{_ as n,a as d,s as p}from"
52
52
  & .MuiBox-root > .MuiButtonBase-root:first-of-type {
53
53
  width: 34px;
54
54
  height: 34px;
55
- background: ${e.accent} !important;
56
- color: ${e.white};
55
+ background: ${t.accent} !important;
56
+ color: ${t.white};
57
57
  }
58
58
  & .MuiBox-root > .MuiButtonBase-root:first-of-type:hover {
59
- background: ${e.text} !important;
59
+ background: ${t.text} !important;
60
60
  }
61
61
  & .MuiBox-root > input + .MuiButtonBase-root {
62
62
  width: 30px;
63
63
  height: 30px;
64
- color: ${e.muted};
64
+ color: ${t.muted};
65
65
  }
66
66
  & .MuiBox-root > input + .MuiButtonBase-root:hover {
67
- background: ${e.media} !important;
68
- color: ${e.text};
67
+ background: ${t.media} !important;
68
+ color: ${t.text};
69
69
  }
70
70
  & input[type='range'] {
71
71
  flex: 1 1 auto;
@@ -82,12 +82,12 @@ import{j as r,r as s}from"./react-ZT2P9-hV.js";import{_ as n,a as d,s as p}from"
82
82
  & input[type='range']::-webkit-slider-runnable-track {
83
83
  height: 4px;
84
84
  border-radius: 999px;
85
- background: ${e.lineStrong};
85
+ background: ${t.lineStrong};
86
86
  }
87
87
  & input[type='range']::-moz-range-track {
88
88
  height: 4px;
89
89
  border-radius: 999px;
90
- background: ${e.lineStrong};
90
+ background: ${t.lineStrong};
91
91
  }
92
92
  & input[type='range']::-webkit-slider-thumb {
93
93
  -webkit-appearance: none;
@@ -96,8 +96,8 @@ import{j as r,r as s}from"./react-ZT2P9-hV.js";import{_ as n,a as d,s as p}from"
96
96
  height: 13px;
97
97
  margin-top: -4.5px;
98
98
  border-radius: 50%;
99
- background: ${e.accent};
100
- border: 2px solid ${e.white};
99
+ background: ${t.accent};
100
+ border: 2px solid ${t.white};
101
101
  box-shadow: 0 1px 3px rgba(22, 21, 24, 0.3);
102
102
  cursor: pointer;
103
103
  }
@@ -105,8 +105,8 @@ import{j as r,r as s}from"./react-ZT2P9-hV.js";import{_ as n,a as d,s as p}from"
105
105
  width: 13px;
106
106
  height: 13px;
107
107
  border-radius: 50%;
108
- background: ${e.accent};
109
- border: 2px solid ${e.white};
108
+ background: ${t.accent};
109
+ border: 2px solid ${t.white};
110
110
  box-shadow: 0 1px 3px rgba(22, 21, 24, 0.3);
111
111
  cursor: pointer;
112
112
  }
@@ -114,8 +114,8 @@ import{j as r,r as s}from"./react-ZT2P9-hV.js";import{_ as n,a as d,s as p}from"
114
114
  outline: none;
115
115
  }
116
116
  & input[type='range']:focus-visible::-webkit-slider-thumb {
117
- outline: 2px solid ${e.accent};
117
+ outline: 2px solid ${t.accent};
118
118
  outline-offset: 2px;
119
119
  }
120
- `;function f({previewId:t,testId:o="emote-controls"}){return r.jsx(b,{"data-preview-controls":!0,"data-testid":o,children:r.jsx(c,{wearablePreviewId:t,hideFrameInput:!0})})}export{f as E};
121
- //# sourceMappingURL=EmotePlaybackBar-DyYs6qdM.js.map
120
+ `;function f({previewId:e,testId:o="emote-controls"}){return r.jsx(b,{"data-preview-controls":!0,"data-testid":o,children:r.jsx(c,{wearablePreviewId:e,hideFrameInput:!0})})}export{f as E};
121
+ //# sourceMappingURL=EmotePlaybackBar-v4_tU2B8.js.map
@@ -1,2 +1,2 @@
1
- import{j as n}from"./react-ZT2P9-hV.js";import{I as o}from"./index-y9tZLe7Z.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c67eed24-9c07-42e3-aafe-ecbed75d6f90",e._sentryDebugIdIdentifier="sentry-dbid-c67eed24-9c07-42e3-aafe-ecbed75d6f90")}catch{}})();function i({message:e,className:r,testId:t}){return e?n.jsxs("p",{className:r?`error-notice ${r}`:"error-notice","data-testid":t,role:"alert",children:[n.jsx(o,{name:"alert",className:"error-notice__ico",size:18}),n.jsx("span",{className:"error-notice__msg",children:e})]}):null}export{i as E};
2
- //# sourceMappingURL=ErrorNotice-Cm0KaFyV.js.map
1
+ import{j as n}from"./react-BQkTEhfI.js";import{I as o}from"./index-PCOMQSTj.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c67eed24-9c07-42e3-aafe-ecbed75d6f90",e._sentryDebugIdIdentifier="sentry-dbid-c67eed24-9c07-42e3-aafe-ecbed75d6f90")}catch{}})();function i({message:e,className:r,testId:t}){return e?n.jsxs("p",{className:r?`error-notice ${r}`:"error-notice","data-testid":t,role:"alert",children:[n.jsx(o,{name:"alert",className:"error-notice__ico",size:18}),n.jsx("span",{className:"error-notice__msg",children:e})]}):null}export{i as E};
2
+ //# sourceMappingURL=ErrorNotice-Bvb886Qo.js.map
@@ -0,0 +1,72 @@
1
+ import{j as i,b as u,r as g}from"./react-BQkTEhfI.js";import{a as b,s as a,H as f,N as x,E as w,O as v,P as y,Q as j,R as C,S as k,U as I,t as s}from"./index-PCOMQSTj.js";import{Assets as N}from"./Assets-BKSeyg2-.js";import"./dcl-schemas-rAoTN5Ga.js";import"./sentry-DEsWWpBW.js";import"./ethers-BicPoGF3.js";import"./intl-AKLEHPeO.js";import"./search-empty-D4s8B_tZ.js";import"./Filters-YViPs7N9.js";import"./browseLayout.styles-DlEgobcb.js";import"./Tooltip-DDZC_HFb.js";import"./skeleton.styles-CP5AXi51.js";import"./LoadMore-DtjdrYgG.js";import"./useInfiniteGrid-B28HAmqv.js";import"./categories-D2I9oC9p.js";import"./ErrorNotice-Bvb886Qo.js";import"./buy-gasless-Cd8D2hco.js";import"./trade-encoding-7I6Mahyk.js";import"./sendMetaTransaction-C0dwdljX.js";import"./buy-DNvl7CRU.js";import"./errors-YbnZlxOr.js";import"./CreditPackPicker-CsfuFEfj.js";import"./cart-checkout-BvFV5K1b.js";import"./PaymentMethodStep-gIGuBdJE.js";import"./mana-matic-CEqvSwrJ.js";import"./resume-name-DUz5x9Rs.js";import"./resume-buy-CVhyi-L1.js";import"./name-glyph-aUugT8vq.js";import"./crumbs.styles-DhvCPMDb.js";import"./grid.styles-D0ZoMAGk.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="c3fe9c73-8193-46a6-86a7-1de8bc08e934",n._sentryDebugIdIdentifier="sentry-dbid-c3fe9c73-8193-46a6-86a7-1de8bc08e934")}catch{}})();const{colors:B,gradients:_,media:c,radius:l}=b,E=a.section`
2
+ position: relative;
3
+ display: flex;
4
+ align-items: center;
5
+ aspect-ratio: 1920 / 220;
6
+ max-height: 220px;
7
+ margin-bottom: 28px;
8
+ overflow: hidden;
9
+ border-radius: ${l.banner};
10
+ background: #14161b;
11
+
12
+ ${c.maxWidth("mobile")} {
13
+ aspect-ratio: 390 / 200;
14
+ max-height: none;
15
+ border-radius: 0;
16
+ /* Out to the window edges, the way the home hero runs: a rounded inset strip at this width reads as a
17
+ widget rather than as the page's header. */
18
+ width: 100vw;
19
+ margin-inline: calc(50% - 50vw);
20
+ padding-inline: calc(50vw - 50%);
21
+ justify-content: center;
22
+ }
23
+ `,P=a.img`
24
+ position: absolute;
25
+ inset: 0;
26
+ width: 100%;
27
+ height: 100%;
28
+ object-fit: cover;
29
+ object-position: center right;
30
+ `,$=a.div`
31
+ position: relative;
32
+ z-index: 2;
33
+ display: flex;
34
+ flex-direction: column;
35
+ align-items: flex-start;
36
+ gap: 16px;
37
+ padding-inline: 40px;
38
+
39
+ ${c.maxWidth("mobile")} {
40
+ align-items: center;
41
+ text-align: center;
42
+ padding-inline: 16px;
43
+ }
44
+ `,D=a.h2`
45
+ margin: 0;
46
+ color: ${B.white};
47
+ font-size: clamp(22px, 2.6vw, 34px);
48
+ font-weight: 700;
49
+ line-height: 1.235;
50
+ `,S=a(f)`
51
+ display: inline-flex;
52
+ align-items: center;
53
+ justify-content: center;
54
+ height: 44px;
55
+ padding: 0 28px;
56
+ border-radius: ${l.btn};
57
+
58
+ /* The home hero's treatment, so a campaign's button looks the same wherever it appears: the orange BUY
59
+ gradient rather than the flat purple variant, which sits too close to the artwork behind it to read as
60
+ a button at all. Doubled ampersands because the variant's own rules are an attribute selector and
61
+ outweigh this class on their own. */
62
+ && {
63
+ background: ${_.buyBtn};
64
+ font-size: 15px;
65
+ letter-spacing: 0.46px;
66
+ }
67
+ /* The variant fades a solid accent overlay in on hover; this button has no flat state to fade from. */
68
+ &&::before {
69
+ content: none;
70
+ }
71
+ `;function T({slot:n}){const t=x(n);return t?i.jsxs(E,{"data-testid":"campaign-banner",children:[i.jsxs("picture",{children:[i.jsx("source",{media:"(max-width: 768px)",srcSet:t.mobileImage}),i.jsx(P,{src:t.desktopImage,alt:"","aria-hidden":!0})]}),i.jsxs($,{children:[i.jsx(D,{"data-testid":"campaign-banner-title",children:t.title}),!w()&&t.cta?i.jsx(S,{as:"a",href:t.cta.href,variant:"purple","data-testid":"campaign-banner-cta",onClick:()=>v("Shop Clicked Banner",{slot:n,banner_id:t.bannerId,campaign:t.campaignName}),children:t.cta.label}):null]})]}):null}const z="marketplaceCampaignCollectiblesBanner";function me(){const n=u(),t=y(h=>h.locale),{campaign:e,isPending:o}=j(),{contracts:d,isPending:p}=C((e==null?void 0:e.tags)??[],e==null?void 0:e.collections),r=!o&&!(e!=null&&e.mainTag);if(g.useEffect(()=>{r&&n("/items",{replace:!0})},[r,n]),o||p||r)return i.jsx("div",{className:"page-loading","aria-busy":"true",children:i.jsx("span",{className:"spinner","aria-hidden":!0})});const m=k(e==null?void 0:e.tabName,I(t))??(e==null?void 0:e.name)??"";return i.jsxs(i.Fragment,{children:[i.jsx(T,{slot:z}),i.jsx(N,{contracts:d,hideNames:!0,lockStatus:"on_sale",seo:{title:m||s("seo.collectibles.title"),description:s("seo.collectibles.description"),noindex:!0}})]})}export{me as Event};
72
+ //# sourceMappingURL=Event-Dw7dIeEd.js.map
@@ -1,2 +1,2 @@
1
- import{C as p,E as h,b as f,S as E,d as k,O as U,N as A,g as b,B as x,e as N,i as I,p as _}from"./W3MFrameProviderSingleton-DwbyBYX9.js";import{g as L,a as D,f as P,b as v,c as T}from"./index-gg05iP5j.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="31af8d60-e68b-4b1b-8061-0ddfb121e8b0",t._sentryDebugIdIdentifier="sentry-dbid-31af8d60-e68b-4b1b-8061-0ddfb121e8b0")}catch{}})();const W=0,C={paymentAsset:null,amount:null,tokenAmount:0,priceLoading:!1,error:null,exchanges:[],isLoading:!1,currentPayment:void 0,isPaymentInProgress:!1,paymentId:"",assets:[]},e=_(C),d={state:e,subscribe(t){return I(e,()=>t(e))},subscribeKey(t,n){return N(e,t,n)},resetState(){Object.assign(e,{...C})},async getAssetsForNetwork(t){const n=T(t),s=await d.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,m,l;const u=a.asset==="native"?b():`${a.network}:${a.asset}`,i=s.find(S=>{var y,g,w;return((w=(g=(y=S.fungibles)==null?void 0:y[0])==null?void 0:g.address)==null?void 0:w.toLowerCase())===u.toLowerCase()});return{...a,price:((o=(c=i==null?void 0:i.fungibles)==null?void 0:c[0])==null?void 0:o.price)||1,metadata:{...a.metadata,iconUrl:(l=(m=i==null?void 0:i.fungibles)==null?void 0:m[0])==null?void 0:l.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?b():`${r.network}:${r.asset}`);return await Promise.all(n.map(r=>x.fetchTokenPrice({addresses:[r]})))},getTokenAmount(){var s;if(!((s=e==null?void 0:e.paymentAsset)!=null&&s.price))throw new Error("Cannot get token price");const t=A.bigNumber(e.amount??0).round(8),n=A.bigNumber(e.paymentAsset.price).round(8);return t.div(n).round(8).toNumber()},setAmount(t){var n;e.amount=t,(n=e.paymentAsset)!=null&&n.price&&(e.tokenAmount=d.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return d.isPayWithExchangeEnabled()&&p.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(p.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=d.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await v({page:W,asset:P(e.paymentAsset.network,e.paymentAsset.asset),amount:((t=e.amount)==null?void 0:t.toString())??"0"});e.exchanges=s.exchanges.slice(0,2)}catch{throw E.showError("Unable to get exchanges"),new Error("Unable to get exchanges")}finally{e.isLoading=!1}},async getPayUrl(t,n){try{const s=Number(n.amount),r=await D({exchangeId:t,asset:P(n.network,n.asset),amount:s.toString(),recipient:`${n.network}:${n.recipient}`});return h.sendEvent({type:"track",event:"PAY_EXCHANGE_SELECTED",properties:{exchange:{id:t},configuration:{network:n.network,asset:n.asset,recipient:n.recipient,amount:s},currentPayment:{type:"exchange",exchangeId:t},source:"fund-from-exchange",headless:!1}}),r}catch(s){throw s instanceof Error&&s.message.includes("is not supported")?new Error("Asset not supported"):new Error(s.message)}},async handlePayWithExchange(t){var n;try{const s=(n=p.getAccountData())==null?void 0:n.address;if(!s)throw new Error("No account connected");if(!e.paymentAsset)throw new Error("No payment asset selected");const r=f.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!r)throw new Error("Could not create popup window");e.isPaymentInProgress=!0,e.paymentId=crypto.randomUUID(),e.currentPayment={type:"exchange",exchangeId:t};const{network:a,asset:u}=e.paymentAsset,i={network:a,asset:u,amount:e.tokenAmount,recipient:s},c=await d.getPayUrl(t,i);if(!c){try{r.close()}catch(o){console.error("Unable to close popup window",o)}throw new Error("Unable to initiate payment")}e.currentPayment.sessionId=c.sessionId,e.currentPayment.status="IN_PROGRESS",e.currentPayment.exchangeId=t,r.location.href=c.url}catch{e.error="Unable to initiate payment",E.showError(e.error)}},async waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r=20}){const a=await d.getBuyStatus(t,n,s);if(a.status==="SUCCESS"||a.status==="FAILED")return a;if(r===0)throw new Error("Unable to get deposit status");return await new Promise(u=>{setTimeout(u,5e3)}),d.waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r-1})},async getBuyStatus(t,n,s){var r,a,u,i,c;try{if(!e.currentPayment)throw new Error("No current payment");const o=await L({sessionId:n,exchangeId:t});if(e.currentPayment.status=o.status,o.status==="SUCCESS"||o.status==="FAILED"){const m=(r=p.getAccountData())==null?void 0:r.address;e.currentPayment.result=o.txHash,e.isPaymentInProgress=!1,h.sendEvent({type:"track",event:o.status==="SUCCESS"?"PAY_SUCCESS":"PAY_ERROR",properties:{message:o.status==="FAILED"?f.parseError(e.error):void 0,source:"fund-from-exchange",paymentId:s,configuration:{network:((a=e.paymentAsset)==null?void 0:a.network)||"",asset:((u=e.paymentAsset)==null?void 0:u.asset)||"",recipient:m||"",amount:e.amount??0},currentPayment:{type:"exchange",exchangeId:(i=e.currentPayment)==null?void 0:i.exchangeId,sessionId:(c=e.currentPayment)==null?void 0:c.sessionId,result:o.txHash}}})}return o}catch{return{status:"UNKNOWN",txHash:""}}},reset(){e.currentPayment=void 0,e.isPaymentInProgress=!1,e.paymentId="",e.paymentAsset=null,e.amount=0,e.tokenAmount=0,e.priceLoading=!1,e.error=null,e.exchanges=[],e.isLoading=!1}};export{d as E};
2
- //# sourceMappingURL=ExchangeController-BzBrR3ZT.js.map
1
+ import{C as p,E as h,b as f,S as E,d as k,O as U,N as A,g as b,B as x,e as N,i as I,p as _}from"./W3MFrameProviderSingleton-CrWP7H9X.js";import{g as L,a as D,f as P,b as v,c as T}from"./index-DBXe-H17.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="31af8d60-e68b-4b1b-8061-0ddfb121e8b0",t._sentryDebugIdIdentifier="sentry-dbid-31af8d60-e68b-4b1b-8061-0ddfb121e8b0")}catch{}})();const W=0,C={paymentAsset:null,amount:null,tokenAmount:0,priceLoading:!1,error:null,exchanges:[],isLoading:!1,currentPayment:void 0,isPaymentInProgress:!1,paymentId:"",assets:[]},e=_(C),d={state:e,subscribe(t){return I(e,()=>t(e))},subscribeKey(t,n){return N(e,t,n)},resetState(){Object.assign(e,{...C})},async getAssetsForNetwork(t){const n=T(t),s=await d.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,m,l;const u=a.asset==="native"?b():`${a.network}:${a.asset}`,i=s.find(S=>{var y,g,w;return((w=(g=(y=S.fungibles)==null?void 0:y[0])==null?void 0:g.address)==null?void 0:w.toLowerCase())===u.toLowerCase()});return{...a,price:((o=(c=i==null?void 0:i.fungibles)==null?void 0:c[0])==null?void 0:o.price)||1,metadata:{...a.metadata,iconUrl:(l=(m=i==null?void 0:i.fungibles)==null?void 0:m[0])==null?void 0:l.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?b():`${r.network}:${r.asset}`);return await Promise.all(n.map(r=>x.fetchTokenPrice({addresses:[r]})))},getTokenAmount(){var s;if(!((s=e==null?void 0:e.paymentAsset)!=null&&s.price))throw new Error("Cannot get token price");const t=A.bigNumber(e.amount??0).round(8),n=A.bigNumber(e.paymentAsset.price).round(8);return t.div(n).round(8).toNumber()},setAmount(t){var n;e.amount=t,(n=e.paymentAsset)!=null&&n.price&&(e.tokenAmount=d.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return d.isPayWithExchangeEnabled()&&p.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(p.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=d.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await v({page:W,asset:P(e.paymentAsset.network,e.paymentAsset.asset),amount:((t=e.amount)==null?void 0:t.toString())??"0"});e.exchanges=s.exchanges.slice(0,2)}catch{throw E.showError("Unable to get exchanges"),new Error("Unable to get exchanges")}finally{e.isLoading=!1}},async getPayUrl(t,n){try{const s=Number(n.amount),r=await D({exchangeId:t,asset:P(n.network,n.asset),amount:s.toString(),recipient:`${n.network}:${n.recipient}`});return h.sendEvent({type:"track",event:"PAY_EXCHANGE_SELECTED",properties:{exchange:{id:t},configuration:{network:n.network,asset:n.asset,recipient:n.recipient,amount:s},currentPayment:{type:"exchange",exchangeId:t},source:"fund-from-exchange",headless:!1}}),r}catch(s){throw s instanceof Error&&s.message.includes("is not supported")?new Error("Asset not supported"):new Error(s.message)}},async handlePayWithExchange(t){var n;try{const s=(n=p.getAccountData())==null?void 0:n.address;if(!s)throw new Error("No account connected");if(!e.paymentAsset)throw new Error("No payment asset selected");const r=f.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!r)throw new Error("Could not create popup window");e.isPaymentInProgress=!0,e.paymentId=crypto.randomUUID(),e.currentPayment={type:"exchange",exchangeId:t};const{network:a,asset:u}=e.paymentAsset,i={network:a,asset:u,amount:e.tokenAmount,recipient:s},c=await d.getPayUrl(t,i);if(!c){try{r.close()}catch(o){console.error("Unable to close popup window",o)}throw new Error("Unable to initiate payment")}e.currentPayment.sessionId=c.sessionId,e.currentPayment.status="IN_PROGRESS",e.currentPayment.exchangeId=t,r.location.href=c.url}catch{e.error="Unable to initiate payment",E.showError(e.error)}},async waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r=20}){const a=await d.getBuyStatus(t,n,s);if(a.status==="SUCCESS"||a.status==="FAILED")return a;if(r===0)throw new Error("Unable to get deposit status");return await new Promise(u=>{setTimeout(u,5e3)}),d.waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r-1})},async getBuyStatus(t,n,s){var r,a,u,i,c;try{if(!e.currentPayment)throw new Error("No current payment");const o=await L({sessionId:n,exchangeId:t});if(e.currentPayment.status=o.status,o.status==="SUCCESS"||o.status==="FAILED"){const m=(r=p.getAccountData())==null?void 0:r.address;e.currentPayment.result=o.txHash,e.isPaymentInProgress=!1,h.sendEvent({type:"track",event:o.status==="SUCCESS"?"PAY_SUCCESS":"PAY_ERROR",properties:{message:o.status==="FAILED"?f.parseError(e.error):void 0,source:"fund-from-exchange",paymentId:s,configuration:{network:((a=e.paymentAsset)==null?void 0:a.network)||"",asset:((u=e.paymentAsset)==null?void 0:u.asset)||"",recipient:m||"",amount:e.amount??0},currentPayment:{type:"exchange",exchangeId:(i=e.currentPayment)==null?void 0:i.exchangeId,sessionId:(c=e.currentPayment)==null?void 0:c.sessionId,result:o.txHash}}})}return o}catch{return{status:"UNKNOWN",txHash:""}}},reset(){e.currentPayment=void 0,e.isPaymentInProgress=!1,e.paymentId="",e.paymentAsset=null,e.amount=0,e.tokenAmount=0,e.priceLoading=!1,e.error=null,e.exchanges=[],e.isLoading=!1}};export{d as E};
2
+ //# sourceMappingURL=ExchangeController-DosyxWhL.js.map
@@ -1,4 +1,4 @@
1
- import{r as x,j as o}from"./react-ZT2P9-hV.js";import{a as e,s as a,t as h,I as w}from"./index-y9tZLe7Z.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new i.Error().stack;s&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[s]="c9e544c7-4eb0-4e9d-a320-4a04ca7182ca",i._sentryDebugIdIdentifier="sentry-dbid-c9e544c7-4eb0-4e9d-a320-4a04ca7182ca")}catch{}})();const m=a.section`
1
+ import{r as x,j as o}from"./react-BQkTEhfI.js";import{a as e,s as a,t as h,I as w}from"./index-PCOMQSTj.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new i.Error().stack;s&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[s]="c9e544c7-4eb0-4e9d-a320-4a04ca7182ca",i._sentryDebugIdIdentifier="sentry-dbid-c9e544c7-4eb0-4e9d-a320-4a04ca7182ca")}catch{}})();const m=a.section`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 36px;
@@ -172,4 +172,4 @@ import{r as x,j as o}from"./react-ZT2P9-hV.js";import{a as e,s as a,t as h,I as
172
172
  }
173
173
  `;function S({title:i,entries:s,tone:l="light",className:u}){const[f,g]=x.useState(()=>new Set),p=x.useId();function b(t){g(n=>{const r=new Set(n);return r.delete(t)||r.add(t),r})}return o.jsxs(m,{className:u,"data-tone":l,"data-testid":"faq",children:[o.jsx(k,{"data-testid":"faq-title",children:h(i)}),o.jsx(v,{children:s.map(t=>{const n=f.has(t.question),r=`${p}-panel-${t.question}`,c=`${p}-header-${t.question}`;return o.jsxs($,{"data-open":n,"data-testid":"faq-item",children:[o.jsxs(y,{type:"button",onClick:()=>b(t.question),id:c,"aria-expanded":n,"aria-controls":n?r:void 0,"data-open":n,"data-testid":"faq-question",children:[o.jsx(q,{children:h(t.question)}),o.jsx(I,{"data-open":n,"aria-hidden":!0,children:o.jsx(w,{name:"chevron-up-line",size:36})})]}),n&&o.jsx(j,{id:r,role:"region","aria-labelledby":c,"data-testid":"faq-answer",children:h(t.answer).split(`
174
174
  `).map(d=>d.trim()).filter(Boolean).map(d=>o.jsx("p",{children:d},d))})]},t.question)})})]})}export{S as F};
175
- //# sourceMappingURL=Faq-D2noxWN_.js.map
175
+ //# sourceMappingURL=Faq-CfWixARb.js.map
@@ -1,4 +1,4 @@
1
- import{r as S,j as e}from"./react-ZT2P9-hV.js";import{s as t,a as i,I as B,n as Qe,t as n,at as ce,C as de}from"./index-y9tZLe7Z.js";import{f as U,g as Ve}from"./browseLayout.styles-Dg021Y7v.js";import{n as W,T as Xe}from"./Tooltip-Bj-rfWuS.js";import{T as Je}from"./skeleton.styles-DTLcQB9A.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new a.Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="2a2c19bc-aba3-4e5d-bbe7-49fcaf60b409",a._sentryDebugIdIdentifier="sentry-dbid-2a2c19bc-aba3-4e5d-bbe7-49fcaf60b409")}catch{}})();function Jt(a){const r=S.useRef(null);S.useEffect(()=>{const p=r.current;r.current=a,!(p===null||p===a)&&window.scrollTo({top:0,left:0,behavior:"instant"})},[a])}const{colors:z,font:Z}=i,Ze=t.div`
1
+ import{r as S,j as e}from"./react-BQkTEhfI.js";import{s as t,a as i,I as B,n as Qe,t as n,av as ce,C as de}from"./index-PCOMQSTj.js";import{f as U,g as Ve}from"./browseLayout.styles-DlEgobcb.js";import{n as W,T as Xe}from"./Tooltip-DDZC_HFb.js";import{T as Je}from"./skeleton.styles-CP5AXi51.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new a.Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="48041653-a0e5-47c7-9ab2-7756aa732999",a._sentryDebugIdIdentifier="sentry-dbid-48041653-a0e5-47c7-9ab2-7756aa732999")}catch{}})();function Jt(a){const r=S.useRef(null);S.useEffect(()=>{const p=r.current;r.current=a,!(p===null||p===a)&&window.scrollTo({top:0,left:0,behavior:"instant"})},[a])}const{colors:z,font:Z}=i,Ze=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 2px;
@@ -104,11 +104,11 @@ import{r as S,j as e}from"./react-ZT2P9-hV.js";import{s as t,a as i,I as B,n as
104
104
  align-items: center;
105
105
  gap: 8px;
106
106
  min-width: 0;
107
- `,be=t(B)`
107
+ `,me=t(B)`
108
108
  width: 24px;
109
109
  height: 24px;
110
110
  color: ${z.gray4};
111
- `,me=t.span`
111
+ `,be=t.span`
112
112
  font-family: ${Z.sans};
113
113
  font-weight: 400;
114
114
  font-size: 14px;
@@ -123,7 +123,7 @@ import{r as S,j as e}from"./react-ZT2P9-hV.js";import{s as t,a as i,I as B,n as
123
123
  color: ${z.gray4};
124
124
  margin: 0 0 4px;
125
125
  padding: 8px 16px 0;
126
- `,te=[{key:"all",labelKey:"categories.shopAll"},{key:"wearable",labelKey:"categories.wearables",expandable:!0,subs:[{key:"Head",labelKey:"categories.head",icon:"cat-head",expandable:!0,subs:[{key:"Facial Hair",labelKey:"categories.facialHair",icon:"cat-facial-hair"},{key:"Hair",labelKey:"categories.hair",icon:"cat-hair"},{key:"Eyes",labelKey:"categories.eyes",icon:"cat-eyes"},{key:"Eyebrows",labelKey:"categories.eyebrows",icon:"cat-eyebrows"},{key:"Mouth",labelKey:"categories.mouth",icon:"cat-mouth"}]},{key:"Upper Body",labelKey:"categories.upperBody",icon:"cat-upper"},{key:"Handwear",labelKey:"categories.handwear",icon:"cat-handwear"},{key:"Lower Body",labelKey:"categories.lowerBody",icon:"cat-lower"},{key:"Feet",labelKey:"categories.feet",icon:"cat-feet"},{key:"Accessories",labelKey:"categories.accessories",icon:"cat-accessories",expandable:!0,subs:[{key:"Earring",labelKey:"categories.earring",icon:"cat-earring"},{key:"Eyewear",labelKey:"categories.eyewear",icon:"cat-eyewear"},{key:"Hat",labelKey:"categories.hat",icon:"cat-hat"},{key:"Helmet",labelKey:"categories.helmet",icon:"cat-helmet"},{key:"Mask",labelKey:"categories.mask",icon:"cat-mask"},{key:"Tiara",labelKey:"categories.tiara",icon:"cat-tiara"},{key:"Top Head",labelKey:"categories.topHead",icon:"cat-top-head"}]},{key:"Skins",labelKey:"categories.skins",icon:"cat-skins"}]},{key:"emote",labelKey:"categories.emotes",expandable:!0,subs:[{key:"Dance",labelKey:"categories.dance",icon:"emote-dance"},{key:"Stunt",labelKey:"categories.stunt",icon:"emote-stunt"},{key:"Greetings",labelKey:"categories.greetings",icon:"emote-greetings"},{key:"Fun",labelKey:"categories.fun",icon:"emote-fun"},{key:"Poses",labelKey:"categories.poses",icon:"emote-poses"},{key:"Reactions",labelKey:"categories.reactions",icon:"emote-reactions"},{key:"Horror",labelKey:"categories.horror",icon:"emote-horror"},{key:"Miscellaneous",labelKey:"categories.miscellaneous",icon:"emote-misc"}]},{key:"names",labelKey:"categories.names"}];function at({category:a,subCategory:r,onCategory:p,onSub:h,title:d,flat:u=!1,collections:g=!1,onCollections:k,hideAll:$=!1,hideNames:b=!1,extraLabelKey:K="categories.collections"}){const[_,C]=S.useState(()=>a==="wearable"?"wearable":null),[T,v]=S.useState(null);function R(s){h(r===s.key?null:s.key),s.subs&&v(m=>m===s.key?null:s.key)}function E(s){s.subs?C(m=>{const x=m!==s.key;return x&&p(s.key),x?s.key:null}):(p(s.key),C(null))}return e.jsxs(Ze,{"data-flat":u||void 0,children:[d?e.jsx(it,{children:d}):null,te.filter(s=>!($&&s.key==="all")&&!(b&&s.key==="names")).map(s=>{const m=_===s.key&&!!s.subs,x=!g&&s.key===a&&!r;return e.jsxs(pe,{children:[e.jsxs(ue,{type:"button","data-cat":!0,"data-expanded":m||void 0,"data-selected":x||void 0,onClick:()=>E(s),children:[e.jsx(ge,{children:n(s.labelKey)}),s.expandable?e.jsx(U,{up:m,size:24,color:i.colors.softWhite}):null]}),s.subs?e.jsx(he,{"data-open":m||void 0,children:e.jsx(xe,{children:s.subs.map(f=>{const c=T===f.key&&!!f.subs;return e.jsxs("div",{children:[e.jsxs(et,{type:"button","data-sub":!0,"data-active":r===f.key||void 0,onClick:()=>R(f),children:[e.jsxs(fe,{children:[e.jsx(be,{name:f.icon,"aria-hidden":!0}),e.jsx(me,{"data-sub-label":!0,children:n(f.labelKey)})]}),f.expandable?e.jsx(U,{up:c,size:24,"data-chevron":!0}):null]}),f.subs?e.jsx(he,{"data-open":c||void 0,children:e.jsx(xe,{children:f.subs.map(j=>e.jsx(tt,{type:"button","data-sub":!0,"data-active":r===j.key||void 0,onClick:()=>h(r===j.key?null:j.key),children:e.jsxs(fe,{children:[e.jsx(be,{name:j.icon,"aria-hidden":!0}),e.jsx(me,{"data-sub-label":!0,children:n(j.labelKey)})]})},j.key))})}):null]},f.key)})})}):null]},s.key)}),k?e.jsx(pe,{children:e.jsx(ue,{type:"button","data-cat":!0,"data-testid":"filter-collections","data-selected":g||void 0,onClick:k,children:e.jsx(ge,{children:n(K)})})}):null]})}const{colors:N}=i,ot=t.div`
126
+ `,te=[{key:"all",labelKey:"categories.shopAll"},{key:"wearable",labelKey:"categories.wearables",expandable:!0,subs:[{key:"Head",labelKey:"categories.head",icon:"cat-head",expandable:!0,subs:[{key:"Facial Hair",labelKey:"categories.facialHair",icon:"cat-facial-hair"},{key:"Hair",labelKey:"categories.hair",icon:"cat-hair"},{key:"Eyes",labelKey:"categories.eyes",icon:"cat-eyes"},{key:"Eyebrows",labelKey:"categories.eyebrows",icon:"cat-eyebrows"},{key:"Mouth",labelKey:"categories.mouth",icon:"cat-mouth"}]},{key:"Upper Body",labelKey:"categories.upperBody",icon:"cat-upper"},{key:"Handwear",labelKey:"categories.handwear",icon:"cat-handwear"},{key:"Lower Body",labelKey:"categories.lowerBody",icon:"cat-lower"},{key:"Feet",labelKey:"categories.feet",icon:"cat-feet"},{key:"Accessories",labelKey:"categories.accessories",icon:"cat-accessories",expandable:!0,subs:[{key:"Earring",labelKey:"categories.earring",icon:"cat-earring"},{key:"Eyewear",labelKey:"categories.eyewear",icon:"cat-eyewear"},{key:"Hat",labelKey:"categories.hat",icon:"cat-hat"},{key:"Helmet",labelKey:"categories.helmet",icon:"cat-helmet"},{key:"Mask",labelKey:"categories.mask",icon:"cat-mask"},{key:"Tiara",labelKey:"categories.tiara",icon:"cat-tiara"},{key:"Top Head",labelKey:"categories.topHead",icon:"cat-top-head"}]},{key:"Skins",labelKey:"categories.skins",icon:"cat-skins"}]},{key:"emote",labelKey:"categories.emotes",expandable:!0,subs:[{key:"Dance",labelKey:"categories.dance",icon:"emote-dance"},{key:"Stunt",labelKey:"categories.stunt",icon:"emote-stunt"},{key:"Greetings",labelKey:"categories.greetings",icon:"emote-greetings"},{key:"Fun",labelKey:"categories.fun",icon:"emote-fun"},{key:"Poses",labelKey:"categories.poses",icon:"emote-poses"},{key:"Reactions",labelKey:"categories.reactions",icon:"emote-reactions"},{key:"Horror",labelKey:"categories.horror",icon:"emote-horror"},{key:"Miscellaneous",labelKey:"categories.miscellaneous",icon:"emote-misc"}]},{key:"names",labelKey:"categories.names"}];function at({category:a,subCategory:r,onCategory:p,onSub:h,title:d,flat:u=!1,collections:g=!1,onCollections:k,hideAll:$=!1,hideNames:m=!1,extraLabelKey:K="categories.collections"}){const[_,C]=S.useState(()=>a==="wearable"?"wearable":null),[T,v]=S.useState(null);function R(s){h(r===s.key?null:s.key),s.subs&&v(b=>b===s.key?null:s.key)}function E(s){s.subs?C(b=>{const x=b!==s.key;return x&&p(s.key),x?s.key:null}):(p(s.key),C(null))}return e.jsxs(Ze,{"data-flat":u||void 0,children:[d?e.jsx(it,{children:d}):null,te.filter(s=>!($&&s.key==="all")&&!(m&&s.key==="names")).map(s=>{const b=_===s.key&&!!s.subs,x=!g&&s.key===a&&!r;return e.jsxs(pe,{children:[e.jsxs(ue,{type:"button","data-cat":!0,"data-expanded":b||void 0,"data-selected":x||void 0,onClick:()=>E(s),children:[e.jsx(ge,{children:n(s.labelKey)}),s.expandable?e.jsx(U,{up:b,size:24,color:i.colors.softWhite}):null]}),s.subs?e.jsx(he,{"data-open":b||void 0,children:e.jsx(xe,{children:s.subs.map(f=>{const c=T===f.key&&!!f.subs;return e.jsxs("div",{children:[e.jsxs(et,{type:"button","data-sub":!0,"data-active":r===f.key||void 0,onClick:()=>R(f),children:[e.jsxs(fe,{children:[e.jsx(me,{name:f.icon,"aria-hidden":!0}),e.jsx(be,{"data-sub-label":!0,children:n(f.labelKey)})]}),f.expandable?e.jsx(U,{up:c,size:24,"data-chevron":!0}):null]}),f.subs?e.jsx(he,{"data-open":c||void 0,children:e.jsx(xe,{children:f.subs.map(j=>e.jsx(tt,{type:"button","data-sub":!0,"data-active":r===j.key||void 0,onClick:()=>h(r===j.key?null:j.key),children:e.jsxs(fe,{children:[e.jsx(me,{name:j.icon,"aria-hidden":!0}),e.jsx(be,{"data-sub-label":!0,children:n(j.labelKey)})]})},j.key))})}):null]},f.key)})})}):null]},s.key)}),k?e.jsx(pe,{children:e.jsx(ue,{type:"button","data-cat":!0,"data-testid":"filter-collections","data-selected":g||void 0,onClick:k,children:e.jsx(ge,{children:n(K)})})}):null]})}const{colors:N}=i,ot=t.div`
127
127
  position: absolute;
128
128
  top: calc(100% + 8px);
129
129
  left: 0;
@@ -361,9 +361,9 @@ import{r as S,j as e}from"./react-ZT2P9-hV.js";import{s as t,a as i,I as B,n as
361
361
  display: flex;
362
362
  align-items: center;
363
363
  gap: 8px;
364
- `,bt=t.div`
364
+ `,mt=t.div`
365
365
  position: relative;
366
- `,mt=t.button`
366
+ `,bt=t.button`
367
367
  display: inline-flex;
368
368
  align-items: center;
369
369
  gap: 6px;
@@ -404,7 +404,7 @@ import{r as S,j as e}from"./react-ZT2P9-hV.js";import{s as t,a as i,I as B,n as
404
404
  position: fixed;
405
405
  inset: 0;
406
406
  z-index: 34;
407
- `,X=["common","uncommon","epic","rare","legendary","exotic","mythic","unique"],Fe=[{key:"newest",label:"filterBar.sortNewest",server:"newest"},{key:"price-asc",label:"filterBar.sortCheapest",server:"cheapest"},{key:"price-desc",label:"filterBar.sortMostExpensive",server:"most_expensive"},{key:"name",label:"filterBar.sortName",server:"name"}],Zt=[{key:"discount",label:"filterBar.sortBiggestDiscount",server:"discount"},...Fe];function kt({panelKey:a,label:r,active:p,badge:h,panel:d,children:u}){const g=d.open===a;return e.jsxs(bt,{children:[e.jsxs(mt,{type:"button","data-open":g||void 0,"data-active":p||void 0,onClick:()=>d.toggle(a),children:[r," ",h?e.jsx(yt,{children:h}):null," ",e.jsx(U,{up:g,size:24,color:i.colors.text2})]}),g?u:null]})}function ei({sort:a,onSort:r,sortOptions:p=Fe,total:h,loading:d,query:u,onOpenFilters:g,chips:k,onClearChips:$,rarities:b,onToggleRarity:K,rarityOptions:_=X,anyActive:C,onClear:T,renderLeading:v,renderTrailing:R,search:E}){const[s,m]=S.useState(null),x={open:s,toggle:c=>m(j=>j===c?null:c),close:()=>m(null)},f=!!K||!!v||!!R;return e.jsxs(e.Fragment,{children:[s?e.jsx(wt,{onClick:x.close,"aria-hidden":!0}):null,e.jsxs(st,{"data-testid":"browse-toolbar",children:[e.jsx(lt,{"data-testid":"browse-count","aria-busy":d||void 0,children:d?e.jsx(Je,{className:"skeleton",width:72,"data-testid":"browse-count-skeleton","aria-hidden":!0}):e.jsxs(e.Fragment,{children:[n("filterBar.count",{count:h}),u?` ${n("filterBar.forQuery",{query:u})}`:""]})}),k&&k.length?e.jsxs(ct,{"data-testid":"filter-chips",children:[k.map(c=>e.jsxs(dt,{type:"button",onClick:c.onRemove,"aria-label":n("filterBar.removeFilter",{filter:c.label}),children:[e.jsx("span",{children:c.label}),e.jsx(pt,{name:"close","aria-hidden":!0})]},c.key)),$?e.jsx(ye,{type:"button",onClick:$,children:n("filterBar.clearAll")}):null]}):null,f?e.jsxs(ft,{children:[v==null?void 0:v(x),K?e.jsx(kt,{panelKey:"rarity",label:n("filterBar.rarity"),active:((b==null?void 0:b.length)??0)>0,badge:(b==null?void 0:b.length)||void 0,panel:x,children:e.jsx(ot,{"data-variant":"rarity",children:_.map(c=>e.jsxs(nt,{children:[e.jsx("input",{type:"checkbox",checked:(b==null?void 0:b.includes(c))??!1,onChange:()=>K(c)}),e.jsx("span",{children:c})]},c))})}):null,R==null?void 0:R(x),C?e.jsx(ye,{type:"button",onClick:()=>{T==null||T(),x.close()},children:n("filterBar.clearAll")}):null]}):null,e.jsxs(xt,{children:[E?e.jsx(ht,{children:E}):null,e.jsx(Ve,{label:n("filterBar.sortBy"),ariaLabel:n("filterBar.sortBy"),value:a,options:p.map(c=>({value:c.key,label:n(c.label)})),onChange:r,align:"right",open:x.open==="sort",onOpenChange:c=>c?x.toggle("sort"):x.close()}),g?e.jsxs(ut,{type:"button","data-testid":"open-filters",onClick:g,children:[n("filterBar.filters"),e.jsx(gt,{name:"filter","aria-hidden":!0})]}):null]})]})]})}const I=1e5,D=900,P=90,G=P*2,Ie=D/P,Ne=I-D,we=100;function ke(a){const r=Math.max(0,Math.min(Math.round(a),G));if(r<=P)return r*Ie;const p=D+(r-P)/P*Ne;return Math.round(p/we)*we}function J(a){const r=Math.max(0,Math.min(a,I));return r<=D?Math.round(r/Ie):P+Math.round((r-D)/Ne*P)}function ve(a){return J(a)/G*100}const vt=t.div`
407
+ `,X=["common","uncommon","epic","rare","legendary","exotic","mythic","unique"],Fe=[{key:"newest",label:"filterBar.sortNewest",server:"newest"},{key:"price-asc",label:"filterBar.sortCheapest",server:"cheapest"},{key:"price-desc",label:"filterBar.sortMostExpensive",server:"most_expensive"},{key:"name",label:"filterBar.sortName",server:"name"}],Zt=[{key:"discount",label:"filterBar.sortBiggestDiscount",server:"discount"},...Fe];function kt({panelKey:a,label:r,active:p,badge:h,panel:d,children:u}){const g=d.open===a;return e.jsxs(mt,{children:[e.jsxs(bt,{type:"button","data-open":g||void 0,"data-active":p||void 0,onClick:()=>d.toggle(a),children:[r," ",h?e.jsx(yt,{children:h}):null," ",e.jsx(U,{up:g,size:24,color:i.colors.text2})]}),g?u:null]})}function ei({sort:a,onSort:r,sortOptions:p=Fe,total:h,loading:d,query:u,onOpenFilters:g,chips:k,onClearChips:$,rarities:m,onToggleRarity:K,rarityOptions:_=X,anyActive:C,onClear:T,renderLeading:v,renderTrailing:R,search:E}){const[s,b]=S.useState(null),x={open:s,toggle:c=>b(j=>j===c?null:c),close:()=>b(null)},f=!!K||!!v||!!R;return e.jsxs(e.Fragment,{children:[s?e.jsx(wt,{onClick:x.close,"aria-hidden":!0}):null,e.jsxs(st,{"data-testid":"browse-toolbar",children:[e.jsx(lt,{"data-testid":"browse-count","aria-busy":d||void 0,children:d?e.jsx(Je,{className:"skeleton",width:72,"data-testid":"browse-count-skeleton","aria-hidden":!0}):e.jsxs(e.Fragment,{children:[n("filterBar.count",{count:h}),u?` ${n("filterBar.forQuery",{query:u})}`:""]})}),k&&k.length?e.jsxs(ct,{"data-testid":"filter-chips",children:[k.map(c=>e.jsxs(dt,{type:"button",onClick:c.onRemove,"aria-label":n("filterBar.removeFilter",{filter:c.label}),children:[e.jsx("span",{children:c.label}),e.jsx(pt,{name:"close","aria-hidden":!0})]},c.key)),$?e.jsx(ye,{type:"button",onClick:$,children:n("filterBar.clearAll")}):null]}):null,f?e.jsxs(ft,{children:[v==null?void 0:v(x),K?e.jsx(kt,{panelKey:"rarity",label:n("filterBar.rarity"),active:((m==null?void 0:m.length)??0)>0,badge:(m==null?void 0:m.length)||void 0,panel:x,children:e.jsx(ot,{"data-variant":"rarity",children:_.map(c=>e.jsxs(nt,{children:[e.jsx("input",{type:"checkbox",checked:(m==null?void 0:m.includes(c))??!1,onChange:()=>K(c)}),e.jsx("span",{children:c})]},c))})}):null,R==null?void 0:R(x),C?e.jsx(ye,{type:"button",onClick:()=>{T==null||T(),x.close()},children:n("filterBar.clearAll")}):null]}):null,e.jsxs(xt,{children:[E?e.jsx(ht,{children:E}):null,e.jsx(Ve,{label:n("filterBar.sortBy"),ariaLabel:n("filterBar.sortBy"),value:a,options:p.map(c=>({value:c.key,label:n(c.label)})),onChange:r,align:"right",open:x.open==="sort",onOpenChange:c=>c?x.toggle("sort"):x.close()}),g?e.jsxs(ut,{type:"button","data-testid":"open-filters",onClick:g,children:[n("filterBar.filters"),e.jsx(gt,{name:"filter","aria-hidden":!0})]}):null]})]})]})}const I=1e5,D=900,P=90,G=P*2,Ie=D/P,Ne=I-D,we=100;function ke(a){const r=Math.max(0,Math.min(Math.round(a),G));if(r<=P)return r*Ie;const p=D+(r-P)/P*Ne;return Math.round(p/we)*we}function J(a){const r=Math.max(0,Math.min(a,I));return r<=D?Math.round(r/Ie):P+Math.round((r-D)/Ne*P)}function ve(a){return J(a)/G*100}const vt=t.div`
408
408
  display: flex;
409
409
  flex-direction: column;
410
410
  gap: 12px;
@@ -819,5 +819,5 @@ import{r as S,j as e}from"./react-ZT2P9-hV.js";import{s as t,a as i,I as B,n as
819
819
  height: 18px;
820
820
  left: ${({on:a})=>a?"calc(100% - 18px)":"2px"};
821
821
  }
822
- `;function Gt(a){var r;for(const p of te){const h=(r=p.subs)==null?void 0:r.find(d=>d.key===a);if(h)return n(h.labelKey)}return a}function L({title:a,open:r,onToggle:p,summary:h,desktopStatic:d,headerTestId:u,headerAria:g,children:k}){const $=e.jsx(U,{up:r,size:24,color:i.colors.softWhite});return e.jsxs($t,{children:[e.jsxs(jt,{type:"button",desktopStatic:d,onClick:p,"aria-expanded":r,"aria-label":g,"data-testid":u,children:[e.jsx(St,{children:a}),d?e.jsx(Kt,{children:$}):$]}),!r&&h?e.jsx(Ct,{desktopHidden:d,children:h}):null,e.jsx(Rt,{open:r,desktopStatic:d,children:e.jsx(zt,{children:k})})]})}function ii({category:a,subCategory:r,onCategory:p,onSub:h,priceMin:d,priceMax:u,onPriceMin:g,onPriceMax:k,rarities:$,onToggleRarity:b,status:K,onStatus:_,smart:C,onSmart:T,deals:v,onDeals:R,hideNames:E=!1,collections:s=!1,onCollections:m}){var le;const[x,f]=S.useState(!0),[c,j]=S.useState(!0),[He,_e]=S.useState(!1),[De,Me]=S.useState(!0),Y=d&&!Number.isNaN(Number(d))?Number(d):void 0,q=u&&!Number.isNaN(Number(u))?Number(u):void 0,[y,Q]=S.useState({}),ie=Y!=null?Math.min(Y,I):0,ae=q!=null?Math.min(q,I):I,M=y.min??ie,O=y.max??ae,oe=ve(M),Oe=ve(O),ne=o=>o<=0?"":String(o),re=o=>o>=I?"":String(o);function Ae(o){Q(w=>{const V=w.max??ae;return{...w,min:Math.min(ke(o),V)}})}function Le(o){Q(w=>{const V=w.min??ie;return{...w,max:Math.max(ke(o),V)}})}function F(){y.min===void 0&&y.max===void 0||(y.min!==void 0&&g(ne(y.min)),y.max!==void 0&&k(re(y.max)),Q({}))}const se=(le=te.find(o=>o.key===a))==null?void 0:le.labelKey,Ue=s?n("categories.collections"):r?Gt(r):se&&a!=="all"?n(se):"",Ge=Y!=null||q!=null?`${d||"0"}-${u||"∞"}`:"",Ye=X.filter(o=>$.includes(o)).map(ce).join(", "),qe=K==="on_sale"?n("filter.onSale"):K==="not_for_sale"?n("filter.notForSale"):"";return e.jsxs(vt,{children:[e.jsx(L,{title:n("assets.category"),open:x,onToggle:()=>f(o=>!o),summary:Ue,desktopStatic:!0,children:e.jsx(at,{category:a,subCategory:r,onCategory:p,onSub:h,hideNames:E,collections:s,onCollections:m})}),e.jsx(A,{}),e.jsxs(L,{title:n("filter.price"),open:c,onToggle:()=>j(o=>!o),summary:Ge,desktopStatic:!0,children:[e.jsxs(Wt,{children:[e.jsxs($e,{children:[e.jsx(je,{children:n("assets.min")}),e.jsx(Se,{children:e.jsx(Ke,{type:"number",min:"0","aria-label":n("assets.minPriceAria"),placeholder:"0",value:y.min!==void 0?ne(y.min):d,onChange:o=>g(o.target.value)})})]}),e.jsx(Tt,{children:n("assets.priceTo")}),e.jsxs($e,{children:[e.jsx(je,{children:n("assets.max")}),e.jsx(Se,{children:e.jsx(Ke,{type:"number",min:"0","aria-label":n("assets.maxPriceAria"),placeholder:"0",value:y.max!==void 0?re(y.max):u,onChange:o=>k(o.target.value)})})]})]}),e.jsxs(Pt,{children:[e.jsx(Bt,{"aria-hidden":!0}),e.jsx(Et,{minPct:oe,maxPct:Oe,"aria-hidden":!0}),e.jsx(Ce,{type:"range",min:0,max:G,value:J(M),"aria-label":n("assets.minPriceSliderAria"),"aria-valuetext":M.toLocaleString(),"data-on-top":oe>=50?"":void 0,onChange:o=>Ae(Number(o.target.value)),onPointerUp:F,onKeyUp:F,onBlur:F}),e.jsx(Ce,{type:"range",min:0,max:G,value:J(O),"aria-label":n("assets.maxPriceSliderAria"),"aria-valuetext":O.toLocaleString(),onChange:o=>Le(Number(o.target.value)),onPointerUp:F,onKeyUp:F,onBlur:F})]}),e.jsxs(Ft,{children:[e.jsxs(Re,{children:[e.jsx(ze,{name:de.iconName,"aria-hidden":!0}),M.toLocaleString()]}),e.jsxs(Re,{children:[e.jsx(ze,{name:de.iconName,"aria-hidden":!0}),O.toLocaleString()]})]})]}),e.jsx(A,{}),e.jsx(L,{title:n("assets.rarity"),open:He,onToggle:()=>_e(o=>!o),summary:Ye,headerTestId:"sidebar-section-toggle",children:e.jsx(It,{"data-testid":"rarity-filter",children:X.map(o=>{const w=$.includes(o);return e.jsxs(Nt,{type:"button",selected:w,"aria-pressed":w,onClick:()=>b(o),"data-testid":"rarity-filter-check",children:[e.jsx(Ht,{color:i.rarities[o],children:w?e.jsx(_t,{name:"check","aria-hidden":!0}):null}),e.jsx(Dt,{selected:w,children:ce(o)})]},o)})})}),e.jsx(A,{}),e.jsx(L,{title:n("filter.status"),open:De,onToggle:()=>Me(o=>!o),summary:qe,children:[["all",n("filter.statusAll")],["on_sale",n("filter.onSale")],["not_for_sale",n("filter.notForSale")]].map(([o,w])=>e.jsxs(Mt,{children:[e.jsx(Ot,{type:"radio",name:"shop-status",checked:K===o,onChange:()=>_(o)}),e.jsx(At,{children:w})]},o))}),e.jsx(A,{}),R?e.jsxs(We,{"data-testid":"deals-row",children:[e.jsx(Te,{children:e.jsx(Pe,{children:n("filter.deals")})}),e.jsx(Be,{type:"button",role:"switch",on:!!v,"aria-checked":!!v,"aria-label":n("filter.deals"),"data-testid":"deals-toggle",onClick:()=>R(!v),children:e.jsx(Ee,{on:!!v})})]}):null,e.jsxs(We,{children:[e.jsxs(Te,{children:[e.jsx(Lt,{name:"smart","aria-hidden":!0}),e.jsx(Pe,{children:n("filter.smart")}),e.jsx(Xe,{content:n("filter.smartHint"),placement:"bottom",children:e.jsx(Ut,{name:"info",role:"img","aria-label":n("filter.smartHint"),tabIndex:0,"data-testid":"smart-hint"})})]}),e.jsx(Be,{type:"button",role:"switch",on:C,"aria-checked":C,"aria-label":n("filter.smart"),onClick:()=>T(!C),children:e.jsx(Ee,{on:C})})]})]})}export{te as C,A as D,ii as F,X as R,Fe as S,ei as a,vt as b,at as c,L as d,It as e,Nt as f,Ht as g,_t as h,Dt as i,Mt as j,Ot as k,At as l,ti as m,Zt as n,Jt as u};
823
- //# sourceMappingURL=Filters-Dw8HD8Ma.js.map
822
+ `;function Gt(a){var r;for(const p of te){const h=(r=p.subs)==null?void 0:r.find(d=>d.key===a);if(h)return n(h.labelKey)}return a}function L({title:a,open:r,onToggle:p,summary:h,desktopStatic:d,headerTestId:u,headerAria:g,children:k}){const $=e.jsx(U,{up:r,size:24,color:i.colors.softWhite});return e.jsxs($t,{children:[e.jsxs(jt,{type:"button",desktopStatic:d,onClick:p,"aria-expanded":r,"aria-label":g,"data-testid":u,children:[e.jsx(St,{children:a}),d?e.jsx(Kt,{children:$}):$]}),!r&&h?e.jsx(Ct,{desktopHidden:d,children:h}):null,e.jsx(Rt,{open:r,desktopStatic:d,children:e.jsx(zt,{children:k})})]})}function ii({category:a,subCategory:r,onCategory:p,onSub:h,priceMin:d,priceMax:u,onPriceMin:g,onPriceMax:k,rarities:$,onToggleRarity:m,status:K,onStatus:_,smart:C,onSmart:T,deals:v,onDeals:R,hideNames:E=!1,collections:s=!1,onCollections:b}){var le;const[x,f]=S.useState(!0),[c,j]=S.useState(!0),[He,_e]=S.useState(!1),[De,Me]=S.useState(!0),Y=d&&!Number.isNaN(Number(d))?Number(d):void 0,q=u&&!Number.isNaN(Number(u))?Number(u):void 0,[y,Q]=S.useState({}),ie=Y!=null?Math.min(Y,I):0,ae=q!=null?Math.min(q,I):I,M=y.min??ie,O=y.max??ae,oe=ve(M),Oe=ve(O),ne=o=>o<=0?"":String(o),re=o=>o>=I?"":String(o);function Ae(o){Q(w=>{const V=w.max??ae;return{...w,min:Math.min(ke(o),V)}})}function Le(o){Q(w=>{const V=w.min??ie;return{...w,max:Math.max(ke(o),V)}})}function F(){y.min===void 0&&y.max===void 0||(y.min!==void 0&&g(ne(y.min)),y.max!==void 0&&k(re(y.max)),Q({}))}const se=(le=te.find(o=>o.key===a))==null?void 0:le.labelKey,Ue=s?n("categories.collections"):r?Gt(r):se&&a!=="all"?n(se):"",Ge=Y!=null||q!=null?`${d||"0"}-${u||"∞"}`:"",Ye=X.filter(o=>$.includes(o)).map(ce).join(", "),qe=K==="on_sale"?n("filter.onSale"):K==="not_for_sale"?n("filter.notForSale"):"";return e.jsxs(vt,{children:[e.jsx(L,{title:n("assets.category"),open:x,onToggle:()=>f(o=>!o),summary:Ue,desktopStatic:!0,children:e.jsx(at,{category:a,subCategory:r,onCategory:p,onSub:h,hideNames:E,collections:s,onCollections:b})}),e.jsx(A,{}),e.jsxs(L,{title:n("filter.price"),open:c,onToggle:()=>j(o=>!o),summary:Ge,desktopStatic:!0,children:[e.jsxs(Wt,{children:[e.jsxs($e,{children:[e.jsx(je,{children:n("assets.min")}),e.jsx(Se,{children:e.jsx(Ke,{type:"number",min:"0","aria-label":n("assets.minPriceAria"),placeholder:"0",value:y.min!==void 0?ne(y.min):d,onChange:o=>g(o.target.value)})})]}),e.jsx(Tt,{children:n("assets.priceTo")}),e.jsxs($e,{children:[e.jsx(je,{children:n("assets.max")}),e.jsx(Se,{children:e.jsx(Ke,{type:"number",min:"0","aria-label":n("assets.maxPriceAria"),placeholder:"0",value:y.max!==void 0?re(y.max):u,onChange:o=>k(o.target.value)})})]})]}),e.jsxs(Pt,{children:[e.jsx(Bt,{"aria-hidden":!0}),e.jsx(Et,{minPct:oe,maxPct:Oe,"aria-hidden":!0}),e.jsx(Ce,{type:"range",min:0,max:G,value:J(M),"aria-label":n("assets.minPriceSliderAria"),"aria-valuetext":M.toLocaleString(),"data-on-top":oe>=50?"":void 0,onChange:o=>Ae(Number(o.target.value)),onPointerUp:F,onKeyUp:F,onBlur:F}),e.jsx(Ce,{type:"range",min:0,max:G,value:J(O),"aria-label":n("assets.maxPriceSliderAria"),"aria-valuetext":O.toLocaleString(),onChange:o=>Le(Number(o.target.value)),onPointerUp:F,onKeyUp:F,onBlur:F})]}),e.jsxs(Ft,{children:[e.jsxs(Re,{children:[e.jsx(ze,{name:de.iconName,"aria-hidden":!0}),M.toLocaleString()]}),e.jsxs(Re,{children:[e.jsx(ze,{name:de.iconName,"aria-hidden":!0}),O.toLocaleString()]})]})]}),e.jsx(A,{}),e.jsx(L,{title:n("assets.rarity"),open:He,onToggle:()=>_e(o=>!o),summary:Ye,headerTestId:"sidebar-section-toggle",children:e.jsx(It,{"data-testid":"rarity-filter",children:X.map(o=>{const w=$.includes(o);return e.jsxs(Nt,{type:"button",selected:w,"aria-pressed":w,onClick:()=>m(o),"data-testid":"rarity-filter-check",children:[e.jsx(Ht,{color:i.rarities[o],children:w?e.jsx(_t,{name:"check","aria-hidden":!0}):null}),e.jsx(Dt,{selected:w,children:ce(o)})]},o)})})}),e.jsx(A,{}),e.jsx(L,{title:n("filter.status"),open:De,onToggle:()=>Me(o=>!o),summary:qe,children:[["all",n("filter.statusAll")],["on_sale",n("filter.onSale")],["not_for_sale",n("filter.notForSale")]].map(([o,w])=>e.jsxs(Mt,{children:[e.jsx(Ot,{type:"radio",name:"shop-status",checked:K===o,onChange:()=>_(o)}),e.jsx(At,{children:w})]},o))}),e.jsx(A,{}),R?e.jsxs(We,{"data-testid":"deals-row",children:[e.jsx(Te,{children:e.jsx(Pe,{children:n("filter.deals")})}),e.jsx(Be,{type:"button",role:"switch",on:!!v,"aria-checked":!!v,"aria-label":n("filter.deals"),"data-testid":"deals-toggle",onClick:()=>R(!v),children:e.jsx(Ee,{on:!!v})})]}):null,e.jsxs(We,{children:[e.jsxs(Te,{children:[e.jsx(Lt,{name:"smart","aria-hidden":!0}),e.jsx(Pe,{children:n("filter.smart")}),e.jsx(Xe,{content:n("filter.smartHint"),placement:"bottom",children:e.jsx(Ut,{name:"info",role:"img","aria-label":n("filter.smartHint"),tabIndex:0,"data-testid":"smart-hint"})})]}),e.jsx(Be,{type:"button",role:"switch",on:C,"aria-checked":C,"aria-label":n("filter.smart"),onClick:()=>T(!C),children:e.jsx(Ee,{on:C})})]})]})}export{te as C,A as D,ii as F,X as R,Fe as S,ei as a,vt as b,at as c,L as d,It as e,Nt as f,Ht as g,_t as h,Dt as i,Mt as j,Ot as k,At as l,ti as m,Zt as n,Jt as u};
823
+ //# sourceMappingURL=Filters-YViPs7N9.js.map
@@ -1,4 +1,4 @@
1
- import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a as e,k as L,B as we,t as o,C as h,x as ye,aK as ke,O as g,bs as ve,c5 as Ce,l as O,bD as Q,c6 as $e,bi as K,z as se,I as je,aq as Se,c7 as Y}from"./index-y9tZLe7Z.js";import{C as Ae}from"./Confetti-Bd901H1c.js";import{F as Pe}from"./Faq-D2noxWN_.js";import{R}from"./resume-buy-VqFhR9e8.js";import{R as j}from"./resume-name-CTz059A2.js";import{u as _e,R as V,d as Re,c as Te,i as Ie,e as ze}from"./cart-checkout-uu8usx3x.js";import"./dcl-schemas-Do6ePE9M.js";import"./sentry-qVQnooqM.js";import"./ethers-DVrorjJ1.js";import"./intl-AKLEHPeO.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new s.Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="078cdc4c-b6be-4fcd-9a41-dcf8fb144a13",s._sentryDebugIdIdentifier="sentry-dbid-078cdc4c-b6be-4fcd-9a41-dcf8fb144a13")}catch{}})();const T="https://cdn.decentraland.org/@dcl/shop/1.13.1-35585926635.commit-02c8d2e/_assets/pack-coins-BDh1ZDbh.webp",ae="https://cdn.decentraland.org/@dcl/shop/1.13.1-35585926635.commit-02c8d2e/_assets/pack-stacks-D-V2jSHW.webp",de="https://cdn.decentraland.org/@dcl/shop/1.13.1-35585926635.commit-02c8d2e/_assets/pack-chest-BX_j84xW.webp",Be="https://cdn.decentraland.org/@dcl/shop/1.13.1-35585926635.commit-02c8d2e/_assets/credit-coin-CmcTCd5i.webp",X="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",Z="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",Fe=i.div`
1
+ import{b as me,u as be,r as l,j as t}from"./react-BQkTEhfI.js";import{s as i,a as e,k as L,B as we,t as o,C as h,x as ye,aL as ke,O as g,bs as ve,c6 as Ce,l as O,bD as Q,c7 as $e,bi as K,z as se,I as je,as as Se,c8 as Y}from"./index-PCOMQSTj.js";import{C as Ae}from"./Confetti-BsAs2ze-.js";import{F as _e}from"./Faq-CfWixARb.js";import{R}from"./resume-buy-CVhyi-L1.js";import{R as j}from"./resume-name-DUz5x9Rs.js";import{u as Pe,R as V,d as Re,c as Te,i as Ie,e as Be}from"./cart-checkout-BvFV5K1b.js";import"./dcl-schemas-rAoTN5Ga.js";import"./sentry-DEsWWpBW.js";import"./ethers-BicPoGF3.js";import"./intl-AKLEHPeO.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new s.Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="fceeae75-d8b1-44cc-9ff0-f6815f7e19b2",s._sentryDebugIdIdentifier="sentry-dbid-fceeae75-d8b1-44cc-9ff0-f6815f7e19b2")}catch{}})();const T="https://cdn.decentraland.org/@dcl/shop/1.13.1-35590455689.commit-b96d6aa/_assets/pack-coins-BDh1ZDbh.webp",ae="https://cdn.decentraland.org/@dcl/shop/1.13.1-35590455689.commit-b96d6aa/_assets/pack-stacks-D-V2jSHW.webp",de="https://cdn.decentraland.org/@dcl/shop/1.13.1-35590455689.commit-b96d6aa/_assets/pack-chest-BX_j84xW.webp",Fe="https://cdn.decentraland.org/@dcl/shop/1.13.1-35590455689.commit-b96d6aa/_assets/credit-coin-CmcTCd5i.webp",X="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",Z="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",ze=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 24px;
@@ -535,7 +535,7 @@ import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a a
535
535
  font-family: ${e.font.sans};
536
536
  font-size: 20px;
537
537
  line-height: 1.6;
538
- color: ${e.colors.text2};
538
+ color: ${e.colors.softWhite};
539
539
 
540
540
  strong {
541
541
  font-weight: 700;
@@ -574,12 +574,7 @@ import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a a
574
574
  width: 30%;
575
575
  animation: none;
576
576
  }
577
- `,gt=i.span`
578
- font-family: ${e.font.sans};
579
- font-size: 16px;
580
- line-height: 22px;
581
- color: ${e.colors.text2};
582
- `,xt=i.div`
577
+ `,gt=i.div`
583
578
  /* Its own stacking context, so the confetti layer (z-index: -1) lands BEHIND this content instead of
584
579
  escaping past it and hiding behind the page background. z-index is inert without a position, so both
585
580
  are required — same arrangement Success.styles' Root uses for the item-purchase burst. */
@@ -596,7 +591,7 @@ import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a a
596
591
  padding: 12px;
597
592
  border-radius: 24px;
598
593
  background: ${e.colors.white};
599
- `,ft=i.div`
594
+ `,xt=i.div`
600
595
  display: flex;
601
596
  align-items: center;
602
597
  gap: 16px;
@@ -609,11 +604,11 @@ import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a a
609
604
  flex-direction: column;
610
605
  text-align: center;
611
606
  }
612
- `,mt=i.img`
607
+ `,ft=i.img`
613
608
  flex: none;
614
609
  width: 60px;
615
610
  height: 60px;
616
- `,bt=i.p`
611
+ `,mt=i.p`
617
612
  flex: 1;
618
613
  margin: 0;
619
614
  font-family: ${e.font.sans};
@@ -625,12 +620,12 @@ import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a a
625
620
  strong {
626
621
  font-weight: 700;
627
622
  }
628
- `,wt=i.div`
623
+ `,bt=i.div`
629
624
  padding: 24px;
630
625
  border-radius: 16px;
631
626
  background: ${e.colors.white};
632
627
  border: 1px solid ${e.colors.gray4};
633
- `,yt=i.div`
628
+ `,wt=i.div`
634
629
  position: relative;
635
630
  display: flex;
636
631
  align-items: center;
@@ -654,7 +649,7 @@ import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a a
654
649
  gap: 10px;
655
650
  padding: 120px 16px 16px;
656
651
  }
657
- `,kt=i.img`
652
+ `,yt=i.img`
658
653
  position: absolute;
659
654
  left: 35px;
660
655
  top: 50%;
@@ -668,7 +663,7 @@ import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a a
668
663
  top: 16px;
669
664
  transform: translateX(-50%);
670
665
  }
671
- `,vt=i.p`
666
+ `,kt=i.p`
672
667
  display: inline-flex;
673
668
  align-items: center;
674
669
  gap: 8px;
@@ -681,14 +676,14 @@ import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a a
681
676
  height: 30px;
682
677
  color: ${e.colors.text};
683
678
  }
684
- `,Ct=i.strong`
679
+ `,vt=i.strong`
685
680
  font-size: 24px;
686
681
  font-weight: 700;
687
682
  text-transform: capitalize;
688
- `,$t=i.span`
683
+ `,Ct=i.span`
689
684
  font-size: 14px;
690
685
  font-weight: 400;
691
- `,jt=i.div`
686
+ `,$t=i.div`
692
687
  display: flex;
693
688
  gap: 12px;
694
689
 
@@ -783,7 +778,7 @@ import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a a
783
778
  }
784
779
  }
785
780
  }
786
- `,St=i.div`
781
+ `,jt=i.div`
787
782
  display: flex;
788
783
  flex-direction: column;
789
784
  align-items: center;
@@ -792,7 +787,7 @@ import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a a
792
787
  margin: 0 auto;
793
788
  padding: 48px 24px;
794
789
  text-align: center;
795
- `,At=i.div`
790
+ `,St=i.div`
796
791
  display: flex;
797
792
  flex-direction: column;
798
793
  width: 100%;
@@ -800,7 +795,7 @@ import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a a
800
795
  border-radius: 16px;
801
796
  background: ${e.colors.white};
802
797
  overflow: hidden;
803
- `,Pt=i.div`
798
+ `,At=i.div`
804
799
  display: flex;
805
800
  align-items: center;
806
801
  justify-content: center;
@@ -811,13 +806,13 @@ import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a a
811
806
  flex: none;
812
807
  width: 32px;
813
808
  height: 32px;
814
- `,Rt=i.p`
809
+ `,Pt=i.p`
815
810
  margin: 0;
816
811
  font-family: ${e.font.sans};
817
812
  font-size: 20px;
818
813
  font-weight: 700;
819
814
  color: ${e.colors.text};
820
- `,Tt=i.p`
815
+ `,Rt=i.p`
821
816
  margin: 0;
822
817
  padding: 24px;
823
818
  font-family: ${e.font.sans};
@@ -825,7 +820,7 @@ import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a a
825
820
  line-height: 1.4;
826
821
  text-align: center;
827
822
  color: ${e.colors.text};
828
- `,It=i.div`
823
+ `,Tt=i.div`
829
824
  display: flex;
830
825
  gap: 12px;
831
826
  padding: 0 16px 16px;
@@ -833,7 +828,7 @@ import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a a
833
828
  @media (max-width: 560px) {
834
829
  flex-direction: column;
835
830
  }
836
- `,zt=i.p`
831
+ `,It=i.p`
837
832
  margin: 0;
838
833
  font-family: ${e.font.sans};
839
834
  font-size: 20px;
@@ -851,5 +846,5 @@ import{b as me,u as be,r as l,j as t}from"./react-ZT2P9-hV.js";import{s as i,a a
851
846
  margin: 0;
852
847
  font-family: ${e.font.sans};
853
848
  color: ${e.colors.err};
854
- `,$=Ie()?"mock":"stripe",ne=[T,T,ae,de],Et={pack_5:T,pack_10:T,pack_25:ae,pack_50:de};function le(s,n){return Et[s.id]??ne[n%ne.length]}function qt(s,n){return s.artUrl??le(s,n)}const Wt=[{question:"faq.buyers.whatAreQ",answer:"faq.buyers.whatAreA"},{question:"faq.buyers.whatCanIBuyQ",answer:"faq.buyers.whatCanIBuyA"},{question:"faq.buyers.whereBuyQ",answer:"faq.buyers.whereBuyA"},{question:"faq.buyers.whereUseQ",answer:"faq.buyers.whereUseA"},{question:"faq.buyers.expireQ",answer:"faq.buyers.expireA"},{question:"faq.buyers.transferQ",answer:"faq.buyers.transferA"}];function oe(s){const n=s;if((n==null?void 0:n.name)==="AbortError")return o("getCredits.errorCanceled");const x=((n==null?void 0:n.message)??"").toLowerCase();return x.includes("sign in")?o("getCredits.errorSignIn",{currency:h.name}):x.includes("timed out")?o("getCredits.errorTimeout",{currency:h.name}):o("getCredits.errorGeneric")}function Xt(){var G;we({title:o("nav.getCredits",{currency:h.name}),noindex:!0});const s=me(),{session:n,signIn:x,restored:a}=ye(),m=ke(),[b,A]=be(),{packs:y,isLoading:pe}=_e(),[f,p]=l.useState("select"),[d,M]=l.useState(null),[P,N]=l.useState(null),he=(P!=null?(G=y.find(r=>r.credits===P))==null?void 0:G.artUrl:void 0)??Be,[ue,k]=l.useState(null),[ge,_]=l.useState(!1),z=l.useRef(null),B=l.useRef(!0);l.useEffect(()=>(B.current=!0,()=>{B.current=!1,queueMicrotask(()=>{var r;B.current||(r=z.current)==null||r.abort()})}),[]);const U=l.useCallback(()=>{A(r=>{const c=new URLSearchParams(r);return c.delete("order"),c.delete("canceled"),c},{replace:!0})},[A]),v=l.useCallback(()=>{try{sessionStorage.removeItem(V),sessionStorage.removeItem(R),sessionStorage.removeItem(j)}catch{}},[]),F=l.useCallback(async r=>{p("processing");const c=new AbortController;z.current=c;try{const u=await Re(r,{signal:c.signal,address:n==null?void 0:n.address,identity:n==null?void 0:n.identity});if(u.status==="credited"){const C=u.creditsGranted??(d==null?void 0:d.credits)??0;N(C>0?C:null),p("success"),g("Shop Completed Buy Credits",{order_id:r,pack_usd:(d==null?void 0:d.usd)??null,credits:C>0?C:null,provider:$}),m.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(V)){sessionStorage.removeItem(R),sessionStorage.removeItem(j);const w={resumeCheckout:!0,...C>0?{creditsAdded:C}:{}};s("/cart",{state:w});return}}catch{}try{const w=sessionStorage.getItem(R);if(w){sessionStorage.removeItem(R),sessionStorage.removeItem(j);const W=JSON.parse(w),H=ve(W);if(H){s(H,{state:{item:W,resumeBuy:!0}});return}}}catch{}try{const w=sessionStorage.getItem(j);if(w){sessionStorage.removeItem(j),s(Ce,{state:{resumeName:w}});return}}catch{}}else u.status==="abandoned"||u.status==="initiated"?(g("Shop Buy Credits Cancelled",{order_id:r,provider:$,step:"grant"}),m.invalidateQueries({queryKey:["usd-balance"]}),v(),_(!0),p("select")):u.status==="failed"?(g("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(d==null?void 0:d.usd)??null}),v(),k(u.error??o("getCredits.errorGrant",{currency:h.name})),p("error")):(g("Shop Buy Credits Pending",{step:"grant",pack_usd:(d==null?void 0:d.usd)??null}),m.invalidateQueries({queryKey:["usd-balance"]}),v(),p("pending"))}catch(u){O(u,{flow:"get_credits",step:"grant",order_id:r}),g("Shop Buy Credits Failed",{step:"grant",error_code:Q(u),pack_usd:(d==null?void 0:d.usd)??null}),v(),k(oe(u)),p("error")}},[d,n,m,s,v]),xe=l.useCallback(async r=>{if(!n){x();return}k(null),_(!1),M(r),p($==="mock"?"processing":"redirecting"),g("Shop Started Buy Credits",{pack_usd:r.usd,credits:r.credits,provider:$});try{const c=await Te(r.id,{address:n.address,identity:n.identity});if(c.mock)F(c.orderId);else if(c.url)g("Shop Redirected To Stripe",{order_id:c.orderId,pack_usd:r.usd,credits:r.credits}),window.location.href=c.url;else throw new Error("Checkout did not return a redirect url")}catch(c){O(c,{flow:"get_credits",step:"checkout",provider:$}),g("Shop Buy Credits Failed",{step:"checkout",error_code:Q(c),pack_usd:r.usd}),k(oe(c)),p("error")}},[n,x,F]),E=l.useRef(!1),D=l.useRef(null);l.useEffect(()=>{if(E.current)return;const r=b.get("order");if(b.get("canceled")!=null){if(r&&!a)return;E.current=!0,g("Shop Buy Credits Cancelled",{order_id:r,provider:$}),r&&n&&$e(r,n.identity),v(),U(),_(!0),p("select");return}if(r){if(p("processing"),!n){a&&(g("Shop Buy Credits Failed",{step:"grant",error_code:"no_identity",pack_usd:(d==null?void 0:d.usd)??null}),k(o("getCredits.errorSignInAfterPay",{currency:h.name})),p("error"));return}E.current=!0,U(),F(r)}},[b,n,a]);function q(){var r;(r=z.current)==null||r.abort(),p("select"),M(null),N(null),k(null),_(!1)}function fe(){const r=D.current;if(!r)return;const c=window.matchMedia("(prefers-reduced-motion: reduce)").matches;r.scrollIntoView({behavior:c?"auto":"smooth",block:"center"}),r.focus({preventScroll:!0})}return t.jsxs(Fe,{children:[(f==="select"||f==="redirecting")&&t.jsxs(t.Fragment,{children:[t.jsx(Ee,{"data-testid":"credits-hero",children:t.jsxs(qe,{children:[t.jsxs(Le,{$hidden:f==="redirecting",children:[t.jsxs(Me,{children:[t.jsx(Ne,{children:o("getCredits.title")}),t.jsxs(Ue,{children:[t.jsx(De,{children:o("getCredits.subtitle")}),t.jsx(Ge,{type:"button",onClick:fe,"data-testid":"credits-learn-more",children:o("getCredits.learnMore")})]})]}),ge&&t.jsx(He,{role:"status",children:o("getCredits.canceledNote")}),t.jsx(Lt,{packs:y,loading:pe,onSelect:r=>void xe(r)})]}),f==="redirecting"&&t.jsxs(rt,{role:"status","aria-live":"polite",children:[t.jsx(at,{src:K,alt:"",width:72,height:72}),t.jsx(nt,{children:o("getCredits.redirecting")})]})]})}),t.jsx(We,{ref:D,tabIndex:-1,"data-testid":"credits-faq",children:t.jsx(Pe,{title:"faq.title",entries:Wt,tone:"on-dark"})})]}),f==="processing"&&t.jsxs(st,{role:"status","aria-live":"polite",children:[t.jsx(ce,{src:K,alt:"",width:61,height:61}),t.jsxs(dt,{children:[t.jsxs(ct,{children:[t.jsx("strong",{children:o("getCredits.processing")}),"…"]}),t.jsxs(lt,{"aria-hidden":!0,children:[t.jsx(ht,{children:t.jsx(ut,{})}),t.jsx(gt,{children:"1/1"})]})]})]}),f==="success"&&t.jsx(re,{"data-outcome":"success",children:t.jsxs(xt,{role:"status","aria-live":"polite",children:[t.jsx(Ae,{}),t.jsxs(ft,{children:[t.jsx(mt,{src:X,alt:"",width:60,height:60}),t.jsxs(bt,{children:[t.jsx("strong",{children:o("getCredits.successTitle")})," ",o("getCredits.successBody",{currency:h.name})]})]}),P!=null&&t.jsx(wt,{children:t.jsxs(yt,{children:[t.jsx(kt,{src:he,alt:"",width:93,height:93}),t.jsxs(vt,{children:[t.jsx(se,{}),t.jsxs("span",{children:[t.jsx(Ct,{children:o("getCredits.creditsAmount",{credits:P,currency:h.name})})," ",t.jsx($t,{children:o("getCredits.creditsAdded")})]})]})]})}),t.jsxs(jt,{children:[t.jsx(S,{"data-variant":"outline",onClick:q,children:o("getCredits.buyMore",{currency:h.name})}),t.jsx(S,{onClick:()=>s("/items"),children:o("getCredits.startShopping")})]})]})}),f==="pending"&&t.jsx(re,{children:t.jsxs(At,{role:"status","aria-live":"polite","data-testid":"credits-pending",children:[t.jsxs(Pt,{children:[t.jsx(_t,{src:X,alt:"",width:32,height:32}),t.jsx(Rt,{children:o("getCredits.pendingTitle",{currency:h.name})})]}),t.jsx(Tt,{children:o("getCredits.pendingBody")}),t.jsxs(It,{children:[t.jsx(S,{"data-variant":"outline",onClick:()=>s("/items"),children:o("getCredits.goShopping")}),t.jsx(S,{"data-variant":"ruby",onClick:q,children:o("getCredits.gotIt")})]})]})}),f==="error"&&t.jsxs(St,{role:"alert",children:[t.jsx(zt,{"data-tone":"error",children:o("getCredits.errorTitle")}),t.jsx(Ft,{children:ue}),t.jsx(Bt,{children:t.jsx(S,{onClick:q,children:o("getCredits.tryAgain")})})]})]})}function Lt({packs:s,loading:n,onSelect:x}){return n?t.jsx(J,{"aria-busy":"true","aria-label":o("getCredits.packsLoading",{currency:h.name}),children:[0,1,2,3].map(a=>t.jsxs(ee,{as:"div","data-skeleton":"true","data-testid":"pack-skeleton","aria-hidden":!0,children:[t.jsxs(te,{children:[t.jsxs(ie,{children:[t.jsx(Je,{}),t.jsx(et,{})]}),t.jsx(tt,{})]}),t.jsx(it,{})]},a))}):t.jsx(J,{children:s.map((a,m)=>{const b=ze(a,s);return t.jsxs(ee,{type:"button","data-testid":"pack","data-best":a.bestValue?"true":void 0,onClick:()=>x(a),"aria-label":b?o("getCredits.packAriaBonus",{amount:Y(a.credits),usd:a.usd,bonus:b.bonus,baseline:b.baseline}):o("getCredits.packAria",{amount:Y(a.credits),usd:a.usd}),children:[a.bestValue&&t.jsxs(Oe,{children:[t.jsx(je,{name:"star-rounded"}),o("getCredits.packBadge")]}),t.jsxs(te,{children:[t.jsxs(ie,{children:[t.jsxs(Qe,{children:[t.jsx(se,{}),t.jsx(Ke,{children:t.jsx(Se,{credits:a.credits})})]}),t.jsx(Ye,{children:o("getCredits.packUnit",{currency:h.name})})]}),t.jsx(Ve,{children:t.jsx("img",{src:qt(a,m),alt:"",loading:"lazy",width:507,height:507,onError:A=>{const y=A.currentTarget;y.dataset.artFallback||(y.dataset.artFallback="done",y.src=le(a,m))}})})]}),t.jsxs(Xe,{children:["$",a.usd.toFixed(2)]})]},a.id)})})}export{Xt as GetCredits,Xt as default};
855
- //# sourceMappingURL=GetCredits-BmFWdIGx.js.map
849
+ `,$=Ie()?"mock":"stripe",ne=[T,T,ae,de],zt={pack_5:T,pack_10:T,pack_25:ae,pack_50:de};function le(s,n){return zt[s.id]??ne[n%ne.length]}function Et(s,n){return s.artUrl??le(s,n)}const qt=[{question:"faq.buyers.whatAreQ",answer:"faq.buyers.whatAreA"},{question:"faq.buyers.whatCanIBuyQ",answer:"faq.buyers.whatCanIBuyA"},{question:"faq.buyers.whereBuyQ",answer:"faq.buyers.whereBuyA"},{question:"faq.buyers.whereUseQ",answer:"faq.buyers.whereUseA"},{question:"faq.buyers.expireQ",answer:"faq.buyers.expireA"},{question:"faq.buyers.transferQ",answer:"faq.buyers.transferA"}];function oe(s){const n=s;if((n==null?void 0:n.name)==="AbortError")return o("getCredits.errorCanceled");const x=((n==null?void 0:n.message)??"").toLowerCase();return x.includes("sign in")?o("getCredits.errorSignIn",{currency:h.name}):x.includes("timed out")?o("getCredits.errorTimeout",{currency:h.name}):o("getCredits.errorGeneric")}function Vt(){var G;we({title:o("nav.getCredits",{currency:h.name}),noindex:!0});const s=me(),{session:n,signIn:x,restored:a}=ye(),m=ke(),[b,A]=be(),{packs:y,isLoading:pe}=Pe(),[f,p]=l.useState("select"),[d,M]=l.useState(null),[_,N]=l.useState(null),he=(_!=null?(G=y.find(r=>r.credits===_))==null?void 0:G.artUrl:void 0)??Fe,[ue,k]=l.useState(null),[ge,P]=l.useState(!1),B=l.useRef(null),F=l.useRef(!0);l.useEffect(()=>(F.current=!0,()=>{F.current=!1,queueMicrotask(()=>{var r;F.current||(r=B.current)==null||r.abort()})}),[]);const U=l.useCallback(()=>{A(r=>{const c=new URLSearchParams(r);return c.delete("order"),c.delete("canceled"),c},{replace:!0})},[A]),v=l.useCallback(()=>{try{sessionStorage.removeItem(V),sessionStorage.removeItem(R),sessionStorage.removeItem(j)}catch{}},[]),z=l.useCallback(async r=>{p("processing");const c=new AbortController;B.current=c;try{const u=await Re(r,{signal:c.signal,address:n==null?void 0:n.address,identity:n==null?void 0:n.identity});if(u.status==="credited"){const C=u.creditsGranted??(d==null?void 0:d.credits)??0;N(C>0?C:null),p("success"),g("Shop Completed Buy Credits",{order_id:r,pack_usd:(d==null?void 0:d.usd)??null,credits:C>0?C:null,provider:$}),m.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(V)){sessionStorage.removeItem(R),sessionStorage.removeItem(j);const w={resumeCheckout:!0,...C>0?{creditsAdded:C}:{}};s("/cart",{state:w});return}}catch{}try{const w=sessionStorage.getItem(R);if(w){sessionStorage.removeItem(R),sessionStorage.removeItem(j);const W=JSON.parse(w),H=ve(W);if(H){s(H,{state:{item:W,resumeBuy:!0}});return}}}catch{}try{const w=sessionStorage.getItem(j);if(w){sessionStorage.removeItem(j),s(Ce,{state:{resumeName:w}});return}}catch{}}else u.status==="abandoned"||u.status==="initiated"?(g("Shop Buy Credits Cancelled",{order_id:r,provider:$,step:"grant"}),m.invalidateQueries({queryKey:["usd-balance"]}),v(),P(!0),p("select")):u.status==="failed"?(g("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(d==null?void 0:d.usd)??null}),v(),k(u.error??o("getCredits.errorGrant",{currency:h.name})),p("error")):(g("Shop Buy Credits Pending",{step:"grant",pack_usd:(d==null?void 0:d.usd)??null}),m.invalidateQueries({queryKey:["usd-balance"]}),v(),p("pending"))}catch(u){O(u,{flow:"get_credits",step:"grant",order_id:r}),g("Shop Buy Credits Failed",{step:"grant",error_code:Q(u),pack_usd:(d==null?void 0:d.usd)??null}),v(),k(oe(u)),p("error")}},[d,n,m,s,v]),xe=l.useCallback(async r=>{if(!n){x();return}k(null),P(!1),M(r),p($==="mock"?"processing":"redirecting"),g("Shop Started Buy Credits",{pack_usd:r.usd,credits:r.credits,provider:$});try{const c=await Te(r.id,{address:n.address,identity:n.identity});if(c.mock)z(c.orderId);else if(c.url)g("Shop Redirected To Stripe",{order_id:c.orderId,pack_usd:r.usd,credits:r.credits}),window.location.href=c.url;else throw new Error("Checkout did not return a redirect url")}catch(c){O(c,{flow:"get_credits",step:"checkout",provider:$}),g("Shop Buy Credits Failed",{step:"checkout",error_code:Q(c),pack_usd:r.usd}),k(oe(c)),p("error")}},[n,x,z]),E=l.useRef(!1),D=l.useRef(null);l.useEffect(()=>{if(E.current)return;const r=b.get("order");if(b.get("canceled")!=null){if(r&&!a)return;E.current=!0,g("Shop Buy Credits Cancelled",{order_id:r,provider:$}),r&&n&&$e(r,n.identity),v(),U(),P(!0),p("select");return}if(r){if(p("processing"),!n){a&&(g("Shop Buy Credits Failed",{step:"grant",error_code:"no_identity",pack_usd:(d==null?void 0:d.usd)??null}),k(o("getCredits.errorSignInAfterPay",{currency:h.name})),p("error"));return}E.current=!0,U(),z(r)}},[b,n,a]);function q(){var r;(r=B.current)==null||r.abort(),p("select"),M(null),N(null),k(null),P(!1)}function fe(){const r=D.current;if(!r)return;const c=window.matchMedia("(prefers-reduced-motion: reduce)").matches;r.scrollIntoView({behavior:c?"auto":"smooth",block:"center"}),r.focus({preventScroll:!0})}return t.jsxs(ze,{children:[(f==="select"||f==="redirecting")&&t.jsxs(t.Fragment,{children:[t.jsx(Ee,{"data-testid":"credits-hero",children:t.jsxs(qe,{children:[t.jsxs(Le,{$hidden:f==="redirecting",children:[t.jsxs(Me,{children:[t.jsx(Ne,{children:o("getCredits.title")}),t.jsxs(Ue,{children:[t.jsx(De,{children:o("getCredits.subtitle")}),t.jsx(Ge,{type:"button",onClick:fe,"data-testid":"credits-learn-more",children:o("getCredits.learnMore")})]})]}),ge&&t.jsx(He,{role:"status",children:o("getCredits.canceledNote")}),t.jsx(Wt,{packs:y,loading:pe,onSelect:r=>void xe(r)})]}),f==="redirecting"&&t.jsxs(rt,{role:"status","aria-live":"polite",children:[t.jsx(at,{src:K,alt:"",width:72,height:72}),t.jsx(nt,{children:o("getCredits.redirecting")})]})]})}),t.jsx(We,{ref:D,tabIndex:-1,"data-testid":"credits-faq",children:t.jsx(_e,{title:"faq.title",entries:qt,tone:"on-dark"})})]}),f==="processing"&&t.jsxs(st,{role:"status","aria-live":"polite",children:[t.jsx(ce,{src:K,alt:"",width:61,height:61}),t.jsxs(dt,{children:[t.jsxs(ct,{children:[t.jsx("strong",{children:o("getCredits.processing")}),"…"]}),t.jsx(lt,{"aria-hidden":!0,children:t.jsx(ht,{children:t.jsx(ut,{})})})]})]}),f==="success"&&t.jsx(re,{"data-outcome":"success",children:t.jsxs(gt,{role:"status","aria-live":"polite",children:[t.jsx(Ae,{}),t.jsxs(xt,{children:[t.jsx(ft,{src:X,alt:"",width:60,height:60}),t.jsxs(mt,{children:[t.jsx("strong",{children:o("getCredits.successTitle")})," ",o("getCredits.successBody",{currency:h.name})]})]}),_!=null&&t.jsx(bt,{children:t.jsxs(wt,{children:[t.jsx(yt,{src:he,alt:"",width:93,height:93}),t.jsxs(kt,{children:[t.jsx(se,{}),t.jsxs("span",{children:[t.jsx(vt,{children:o("getCredits.creditsAmount",{credits:_,currency:h.name})})," ",t.jsx(Ct,{children:o("getCredits.creditsAdded")})]})]})]})}),t.jsxs($t,{children:[t.jsx(S,{"data-variant":"outline",onClick:q,children:o("getCredits.buyMore",{currency:h.name})}),t.jsx(S,{onClick:()=>s("/items"),children:o("getCredits.startShopping")})]})]})}),f==="pending"&&t.jsx(re,{children:t.jsxs(St,{role:"status","aria-live":"polite","data-testid":"credits-pending",children:[t.jsxs(At,{children:[t.jsx(_t,{src:X,alt:"",width:32,height:32}),t.jsx(Pt,{children:o("getCredits.pendingTitle",{currency:h.name})})]}),t.jsx(Rt,{children:o("getCredits.pendingBody")}),t.jsxs(Tt,{children:[t.jsx(S,{"data-variant":"outline",onClick:()=>s("/items"),children:o("getCredits.goShopping")}),t.jsx(S,{"data-variant":"ruby",onClick:q,children:o("getCredits.gotIt")})]})]})}),f==="error"&&t.jsxs(jt,{role:"alert",children:[t.jsx(It,{"data-tone":"error",children:o("getCredits.errorTitle")}),t.jsx(Ft,{children:ue}),t.jsx(Bt,{children:t.jsx(S,{onClick:q,children:o("getCredits.tryAgain")})})]})]})}function Wt({packs:s,loading:n,onSelect:x}){return n?t.jsx(J,{"aria-busy":"true","aria-label":o("getCredits.packsLoading",{currency:h.name}),children:[0,1,2,3].map(a=>t.jsxs(ee,{as:"div","data-skeleton":"true","data-testid":"pack-skeleton","aria-hidden":!0,children:[t.jsxs(te,{children:[t.jsxs(ie,{children:[t.jsx(Je,{}),t.jsx(et,{})]}),t.jsx(tt,{})]}),t.jsx(it,{})]},a))}):t.jsx(J,{children:s.map((a,m)=>{const b=Be(a,s);return t.jsxs(ee,{type:"button","data-testid":"pack","data-best":a.bestValue?"true":void 0,onClick:()=>x(a),"aria-label":b?o("getCredits.packAriaBonus",{amount:Y(a.credits),usd:a.usd,bonus:b.bonus,baseline:b.baseline}):o("getCredits.packAria",{amount:Y(a.credits),usd:a.usd}),children:[a.bestValue&&t.jsxs(Oe,{children:[t.jsx(je,{name:"star-rounded"}),o("getCredits.packBadge")]}),t.jsxs(te,{children:[t.jsxs(ie,{children:[t.jsxs(Qe,{children:[t.jsx(se,{}),t.jsx(Ke,{children:t.jsx(Se,{credits:a.credits})})]}),t.jsx(Ye,{children:o("getCredits.packUnit",{currency:h.name})})]}),t.jsx(Ve,{children:t.jsx("img",{src:Et(a,m),alt:"",loading:"lazy",width:507,height:507,onError:A=>{const y=A.currentTarget;y.dataset.artFallback||(y.dataset.artFallback="done",y.src=le(a,m))}})})]}),t.jsxs(Xe,{children:["$",a.usd.toFixed(2)]})]},a.id)})})}export{Vt as GetCredits,Vt as default};
850
+ //# sourceMappingURL=GetCredits-xHj_8fdJ.js.map