@dcl/shop 1.17.1 → 1.17.2-36157867735.commit-7431f7b

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 (251) hide show
  1. package/_assets/{Activity-BNjXw97e.js → Activity-CE6Jeo_T.js} +9 -9
  2. package/_assets/{AnimatedBackground-kFDegzCM.js → AnimatedBackground-D5MFl62Y.js} +3 -3
  3. package/_assets/{Assets-D_dCmUv0.js → Assets-COp5lo1c.js} +7 -7
  4. package/_assets/{Cart-BPv_4JHc.js → Cart-CXTYKHB4.js} +5 -5
  5. package/_assets/{Collection-2qp7F46n.js → Collection-D6GAA887.js} +7 -7
  6. package/_assets/{CollectionCarousel-CXiZiW-S.js → CollectionCarousel-C_r2HthR.js} +7 -7
  7. package/_assets/{Confetti-Bsu2ytMi.js → Confetti-DPZN6qJi.js} +4 -4
  8. package/_assets/{ConstantsUtil-czCTnHYO.js → ConstantsUtil-C6ody29O.js} +2 -2
  9. package/_assets/{ContentClient-CIV5rrAt.js → ContentClient-C03rRrUz.js} +2 -2
  10. package/_assets/{Creator-CIH3WU3e.js → Creator-Chq_3FKW.js} +7 -7
  11. package/_assets/{CreditPackPicker-Cf2WXrfD.js → CreditPackPicker-yPm96IIv.js} +2 -2
  12. package/_assets/{CreditRate-DjCL9hVD.js → CreditRate-BxqKLfaA.js} +6 -6
  13. package/_assets/{DeploymentBuilder-C3NqEfXH.js → DeploymentBuilder-B2QubYgD.js} +2 -2
  14. package/_assets/{EmotePlaybackBar-Bq7TckV0.js → EmotePlaybackBar-Cp9UGu_L.js} +3 -3
  15. package/_assets/{ErrorNotice-DSZ4YOzl.js → ErrorNotice-D_6j8-7f.js} +2 -2
  16. package/_assets/{Event-D__OUwpc.js → Event-v8GnBTyC.js} +2 -2
  17. package/_assets/{ExchangeController-BlkQV8ix.js → ExchangeController-CE3cQOVu.js} +2 -2
  18. package/_assets/{Faq-Daw98w_f.js → Faq-Dfduj2eM.js} +2 -2
  19. package/_assets/{Filters-COsCKlQM.js → Filters-CdMOVmbU.js} +2 -2
  20. package/_assets/{GetCredits-uaIm_-xy.js → GetCredits-BS--XoK-.js} +2 -2
  21. package/_assets/{Grow-nApzPG32.js → Grow-CPeuefrF.js} +2 -2
  22. package/_assets/{HelpersUtil-Dhc8srsx.js → HelpersUtil-B_SruwGa.js} +2 -2
  23. package/_assets/IssueModal-D_PS_2Xk.js +323 -0
  24. package/_assets/ItemDetail-DBAHPIQO.js +3090 -0
  25. package/_assets/{LoadMore-D8gtSgyc.js → LoadMore-CM5ykem-.js} +2 -2
  26. package/_assets/{ManaPricingBanner-CiV8R5vd.js → ManaPricingBanner-CZzRxND3.js} +2 -2
  27. package/_assets/{ManaPricingBanner.styles-BNQ_wLgO.js → ManaPricingBanner.styles-B10EKkra.js} +2 -2
  28. package/_assets/{MyAssets-XbkBS3DE.js → MyAssets-Fhl2lazZ.js} +2 -2
  29. package/_assets/{MyFavorites-lktPT4tc.js → MyFavorites-DqyQ-SFM.js} +10 -10
  30. package/_assets/MyStore-B5e7oQJa.js +1691 -0
  31. package/_assets/{NetworkUtil-BwvINT8v.js → NetworkUtil-iL8rkdmy.js} +2 -2
  32. package/_assets/{NotFound-CIueRHHs.js → NotFound-sBVYlhk3.js} +2 -2
  33. package/_assets/NotificationsBell-TdDjFO5P.js +142 -0
  34. package/_assets/{OutfitDetail-MDYbLLf8.js → OutfitDetail-BBsCNaaP.js} +3 -3
  35. package/_assets/{OutfitPreview-C52GjMv6.js → OutfitPreview-BTJ-IIEH.js} +3 -3
  36. package/_assets/{OutfitStudio-uomtfIa1.js → OutfitStudio-DXHZfbf9.js} +10 -10
  37. package/_assets/{PaymentMethodStep-aQUg-E9d.js → PaymentMethodStep-Ob8YI_SL.js} +5 -5
  38. package/_assets/{SaleCountdown-BC6cklIs.js → SaleCountdown-KX9dNqTp.js} +2 -2
  39. package/_assets/{Spinner-NI6IZA5A.js → Spinner-DKskpIEZ.js} +2 -2
  40. package/_assets/{StoreSettings-BrdRpaVU.js → StoreSettings-Bia_W-8Q.js} +8 -8
  41. package/_assets/{Success-Bsg9-DNo.js → Success-2dVHPO-2.js} +2 -2
  42. package/_assets/{SwapController-DVbKfkaS.js → SwapController-CbFqSpFg.js} +2 -2
  43. package/_assets/{Tooltip-DIRWGOxl.js → Tooltip-DFrRznAp.js} +2 -2
  44. package/_assets/{TradeService-CK7xu_Fq.js → TradeService-CDS_PfTn.js} +2 -2
  45. package/_assets/{W3MFrameProviderSingleton-BWvDpNTL.js → W3MFrameProviderSingleton-C4KtItmg.js} +4 -4
  46. package/_assets/{WebCryptoP256-pa_zJ5z4.js → WebCryptoP256-CbiRbOjq.js} +2 -2
  47. package/_assets/{basic-Mlwb1YPe.js → basic-BufXGp2F.js} +2 -2
  48. package/_assets/{biconomy-CIvkhhfY.js → biconomy-BR1CMfhe.js} +2 -2
  49. package/_assets/{browseLayout.styles-D3u_lxUV.js → browseLayout.styles-DF9DTUfO.js} +2 -2
  50. package/_assets/{browser-BnRQXFFw.js → browser-DqwPlfZs.js} +2 -2
  51. package/_assets/{browser-ponyfill-Dmn_2mUU.js → browser-ponyfill-DqHLL_k5.js} +2 -2
  52. package/_assets/{browser-lYIugjhZ.js → browser-qc2dUFk5.js} +2 -2
  53. package/_assets/{buy-MeE-N2le.js → buy-BiTHthT9.js} +2 -2
  54. package/_assets/{buy-gasless-ZiYiDzb-.js → buy-gasless-CTp90Dvn.js} +2 -2
  55. package/_assets/{ccip-D2v4Tmss.js → ccip-DZfLdErH.js} +2 -2
  56. package/_assets/{ccip-D9Kr5HJY.js → ccip-rfpBm5bL.js} +2 -2
  57. package/_assets/{chains-CfHTI0IT.js → chains-BWqZ-nYk.js} +2 -2
  58. package/_assets/{collectionPage.styles-Drt5ivqQ.js → collectionPage.styles-Db2PBFNG.js} +4 -4
  59. package/_assets/{common-BkGfzbjV.js → common-BfXnUVAM.js} +2 -2
  60. package/_assets/{controller-B1XkQ-8T.js → controller-ZXDDsCxP.js} +3 -3
  61. package/_assets/{core-8MNjsO3A.js → core-DfE8LCjh.js} +5 -5
  62. package/_assets/{createSvgIcon-BKu0ThNd.js → createSvgIcon-BUkltLfu.js} +2 -2
  63. package/_assets/{crumbs.styles-IWrGqGTW.js → crumbs.styles-R8odPxFR.js} +2 -2
  64. package/_assets/{custom-RQn4QL1O.js → custom-DKOD0xYg.js} +2 -2
  65. package/_assets/{data-capture-BCz6ZuJe.js → data-capture-C3eH7C_s.js} +2 -2
  66. package/_assets/{dcl-schemas-BgQanFex.js → dcl-schemas-BW3BbT5l.js} +2 -2
  67. package/_assets/{decimals-DQ6egFLl.js → decimals-BI0yoEux.js} +2 -2
  68. package/_assets/{decimals-Yu9nfiap.js → decimals-DQJMb7J9.js} +2 -2
  69. package/_assets/{detectExtension-mxrpMjPD.js → detectExtension-C_GbFz5_.js} +2 -2
  70. package/_assets/{disposePreview-DPlzBDEC.js → disposePreview-5Jddp9do.js} +2 -2
  71. package/_assets/{email-C9hzZFfn.js → email-D4HLC7wh.js} +7 -7
  72. package/_assets/{embedded-wallet-sNZ139r3.js → embedded-wallet-CMbzkthX.js} +2 -2
  73. package/_assets/{emotion-styled.browser.esm-CFDaRZFq.js → emotion-styled.browser.esm-B6eszsio.js} +2 -2
  74. package/_assets/{engine-t2WwPyT-.js → engine-BA9Hr8Az.js} +2 -2
  75. package/_assets/{errors-TvhLJhmP.js → errors-DnOSpKoV.js} +2 -2
  76. package/_assets/{estimate-l1-fee-V6V7FI1H.js → estimate-l1-fee-BZt36dEW.js} +2 -2
  77. package/_assets/{eth_estimateGas-vmn477Rl.js → eth_estimateGas-mNInGC82.js} +2 -2
  78. package/_assets/{eth_getStorageAt-BJsh0E1g.js → eth_getStorageAt-CW3VLsR7.js} +2 -2
  79. package/_assets/{eth_getTransactionCount-DjYi-3h-.js → eth_getTransactionCount-DGbTHobL.js} +2 -2
  80. package/_assets/{ethereum-CtosgwHU.js → ethereum-Cez4WhJf.js} +2 -2
  81. package/_assets/{ethers-RdXTApYJ.js → ethers-DGYWmyb1.js} +2 -2
  82. package/_assets/{events-DcSLjVuU.js → events-YMZCt1yV.js} +2 -2
  83. package/_assets/{execute-Da7DgAmR.js → execute-CVxgGRa9.js} +3 -3
  84. package/_assets/{extractIPFS-Cczu9meN.js → extractIPFS-BdalrjY7.js} +2 -2
  85. package/_assets/{features-C_bdmaJE.js → features-BPD34bt1.js} +2 -2
  86. package/_assets/{fetchTokenMetadata-7Kgsjbv4.js → fetchTokenMetadata-DOlcjXZI.js} +3 -3
  87. package/_assets/{field.styles-DDXjryam.js → field.styles-CIXh24AQ.js} +2 -2
  88. package/_assets/{fortmatic-BPBqqvfl.js → fortmatic-DGrmZpu1.js} +2 -2
  89. package/_assets/{get-bytecode-Bbw_Evod.js → get-bytecode-N2OV9nFo.js} +2 -2
  90. package/_assets/{get-ecosystem-wallet-info-81lpLPU_.js → get-ecosystem-wallet-info-CVK-PjWL.js} +2 -2
  91. package/_assets/{getBalance-BgqMuvIf.js → getBalance-BEz0Zoiv.js} +3 -3
  92. package/_assets/{getInstalledModules-W4RDd7ik.js → getInstalledModules-AznSDC44.js} +2 -2
  93. package/_assets/{getNFT-anMIImQh.js → getNFT-VxK16uv_.js} +2 -2
  94. package/_assets/{getNFT-BDhkq7kr.js → getNFT-aR5kSoWa.js} +3 -3
  95. package/_assets/{grid.styles-D--qOwVq.js → grid.styles-CVQcD_5t.js} +2 -2
  96. package/_assets/{hashTypedData-CiWRFQn6.js → hashTypedData-ByCdES4z.js} +2 -2
  97. package/_assets/{hashTypedData-CUDRpwju.js → hashTypedData-ywahqODz.js} +2 -2
  98. package/_assets/{import-CIZWEISk.js → import-CPlDKdWo.js} +2 -2
  99. package/_assets/{in-app-BbIysh8c.js → in-app-D43FjnXM.js} +2 -2
  100. package/_assets/{in-app-wallet-calls-BgxC18Ff.js → in-app-wallet-calls-DmZ4pxIH.js} +2 -2
  101. package/_assets/{index-DQS3Dydb.js → index-0FaDHGAZ.js} +2 -2
  102. package/_assets/{index-BKGo_9wu.js → index-7s_cYB0r.js} +2 -2
  103. package/_assets/{index-DFQS58XE.js → index-B67Ropoe.js} +3 -3
  104. package/_assets/{index-CM4FAtZl.js → index-B7aqs-FR.js} +2 -2
  105. package/_assets/{index-BhhO1oEp.js → index-B8kJyL6G.js} +2 -2
  106. package/_assets/{index-qrz6WiaK.js → index-BAAoctqn.js} +2 -2
  107. package/_assets/{index-C0EB4Nb3.js → index-BBS-v8LD.js} +17 -17
  108. package/_assets/{index-8wQks0w8.js → index-BFVKoQeh.js} +2 -2
  109. package/_assets/{index-B1OJuolS.js → index-BIDkjxTy.js} +2 -2
  110. package/_assets/{index-hLoLHUKV.js → index-BMak5rZb.js} +2 -2
  111. package/_assets/{index-BlG9tYXl.js → index-BOyogbet.js} +2 -2
  112. package/_assets/{index-CjuTKXut.js → index-BUZUNt7Z.js} +2 -2
  113. package/_assets/{index-BNn-tbAt.js → index-BUnaJjPH.js} +2 -2
  114. package/_assets/{index-B49OLLy1.js → index-Bf74R1qS.js} +2 -2
  115. package/_assets/{index-BhGdGiCs.js → index-BfZKaxHs.js} +3 -3
  116. package/_assets/{index--yUfiOex.js → index-Bf_iGaP5.js} +2 -2
  117. package/_assets/{index-DTWx6T1S.js → index-BkdjGh-W.js} +2 -2
  118. package/_assets/{index-BwKvHJ-v.js → index-C2S4XG0R.js} +2 -2
  119. package/_assets/{index-OhRAcbHT.js → index-C7Le7sHG.js} +2 -2
  120. package/_assets/{index-DzyghasH.js → index-CA4CUNiy.js} +2 -2
  121. package/_assets/{index-CeM8omfX.js → index-CHBzdW6M.js} +2 -2
  122. package/_assets/{index-Dxfnkqq4.js → index-CLpLBvH2.js} +2 -2
  123. package/_assets/{index-DO6ydGXX.js → index-CNjrqKOs.js} +2 -2
  124. package/_assets/{index-lQ2m7yUy.js → index-CSuaHD6u.js} +2 -2
  125. package/_assets/{index-BJvtfv1M.js → index-CT7NzvvO.js} +2 -2
  126. package/_assets/{index-Zum9uUGy.js → index-CU2OselF.js} +2 -2
  127. package/_assets/{index-D1S8t2fe.js → index-CY4_MrXH.js} +2 -2
  128. package/_assets/{index-Cw_s9pOw.js → index-C_2eXgm7.js} +2 -2
  129. package/_assets/{index-D22FRuvW.js → index-CeLw5QQ-.js} +3 -3
  130. package/_assets/{index-CtSgRzsY.js → index-CepaElib.js} +2 -2
  131. package/_assets/{index-ClIQf3ng.js → index-CgfbItO2.js} +2 -2
  132. package/_assets/{index-BIAEBlSw.js → index-ChIjTbh5.js} +2 -2
  133. package/_assets/{index-Bc7EMqAf.js → index-Ci4_h86U.js} +2 -2
  134. package/_assets/{index-BGZlLdrL.js → index-CnfBCYQg.js} +2 -2
  135. package/_assets/{index-cGB6nHYf.js → index-CtoH5DSl.js} +6 -6
  136. package/_assets/{index-wOPFghKT.js → index-Cx1doNkB.js} +2 -2
  137. package/_assets/{index-DfOPi5vf.js → index-CxOeCVBB.js} +3 -3
  138. package/_assets/{index-BDdcoEFU.js → index-CzV7sMdy.js} +4 -4
  139. package/_assets/{index-DZEeeDQr.js → index-DCSutgdw.js} +2 -2
  140. package/_assets/{index-DCdW2yi4.js → index-DIYb1IGB.js} +4 -4
  141. package/_assets/{index-CvR8He0C.js → index-DR9_Mkt6.js} +2 -2
  142. package/_assets/{index-B-gdbRSW.js → index-DSwxHrMr.js} +2 -2
  143. package/_assets/{index-BeH18kmv.js → index-DZ3S9SRN.js} +2 -2
  144. package/_assets/{index-Bs_f3yhf.js → index-DZ53HgoK.js} +2 -2
  145. package/_assets/{index-CFBOIeXE.js → index-DZaHlbE_.js} +2 -2
  146. package/_assets/{index-Cf6ERmsZ.js → index-D_2nYoM8.js} +2 -2
  147. package/_assets/{index-CZEYeX3l.js → index-DauMTBWE.js} +2 -2
  148. package/_assets/{index-BmsamR4M.js → index-DhWCbjGh.js} +2 -2
  149. package/_assets/{index-Dz8UCy0P.js → index-DtS7bQfE.js} +2 -2
  150. package/_assets/{index-DU6vOlyL.js → index-DyhsaJtc.js} +2 -2
  151. package/_assets/{index-Dkohypnm.js → index-LRrTgDY0.js} +4 -4
  152. package/_assets/{index-BRWjazWI.js → index-LxRrm7nL.js} +2 -2
  153. package/_assets/{index-DOn0iodU.js → index-PFt3YITh.js} +2 -2
  154. package/_assets/{index-DAysx568.js → index-T6hDl-2V.js} +2 -2
  155. package/_assets/{index-C5s2ci0r.js → index-Tz82vi2e.js} +2 -2
  156. package/_assets/{index-CSZAw8dC.js → index-W7W-N49f.js} +2 -2
  157. package/_assets/{index-Bsw53nId.js → index-ZDiu1J1j.js} +2 -2
  158. package/_assets/{index-BMjX5Tw6.js → index-bz3DaQP5.js} +2 -2
  159. package/_assets/{index-M4vJyniz.js → index-cCjjJ8Zd.js} +2 -2
  160. package/_assets/{index-Cq62ZdRW.js → index-feJ6CP8x.js} +3 -3
  161. package/_assets/{index-B6895neV.js → index-gfZnCNa6.js} +2 -2
  162. package/_assets/{index-FfTM_1mz.js → index-guDRvZQ4.js} +2 -2
  163. package/_assets/{index-CwCEh7Ea.js → index-mzIsCjWs.js} +2 -2
  164. package/_assets/{index-962zUKU_.js → index-ox01jvxx.js} +2 -2
  165. package/_assets/index-qTkXqLEk.css +1 -0
  166. package/_assets/{index-DTVY5scD.js → index-tske-Qm0.js} +2 -2
  167. package/_assets/index-v6-0TPZX.js +3 -0
  168. package/_assets/{index-_bcedLK5.js → index-y50hP8_O.js} +2 -2
  169. package/_assets/{index.es-C1YwoJJN.js → index.es-D61fhzOk.js} +2 -2
  170. package/_assets/{index.es-YMSgumSf.js → index.es-DUQRyY8V.js} +2 -2
  171. package/_assets/{index.es-BirWIv1k.js → index.es-DrJv9QY8.js} +2 -2
  172. package/_assets/{index.es-O8xfjyk3.js → index.es-_SlY0diQ.js} +5 -5
  173. package/_assets/items-empty-Dtl-YwtZ.js +2 -0
  174. package/_assets/{jump-DddgnPSC.js → jump-JCYO-k8J.js} +2 -2
  175. package/_assets/{linkAccount-CHDe6wUT.js → linkAccount-D_xpNX67.js} +2 -2
  176. package/_assets/{loader-logo-ChNoWI1Z.js → loader-logo-k6aOBN-R.js} +2 -2
  177. package/_assets/{localBatchGatewayRequest-tSt38JDm.js → localBatchGatewayRequest-T0sFQZ26.js} +2 -2
  178. package/_assets/{modal.styles-BPDABQCr.js → modal.styles-BAz9vPux.js} +2 -2
  179. package/_assets/{native-Cxh3QIKd.js → native-Fndcg4e5.js} +2 -2
  180. package/_assets/{networks-rNqzEIu1.js → networks-BkPPSIG9.js} +2 -2
  181. package/_assets/{onramp-Cjb0y_EX.js → onramp-DCjZy1Yr.js} +2 -2
  182. package/_assets/{openzeppelin-Dbgk07uO.js → openzeppelin-DWeyp33R.js} +2 -2
  183. package/_assets/{ownerOf-ifwSx1wQ.js → ownerOf-D0cjIIIs.js} +2 -2
  184. package/_assets/{parseNft-BgX116P8.js → parseNft-DCt8GvNK.js} +3 -3
  185. package/_assets/{parseSignature-B3jn_FVR.js → parseSignature-BbjgUCSK.js} +4 -4
  186. package/_assets/{parseSignature-Cjx-94kV.js → parseSignature-CtMzBmLG.js} +2 -2
  187. package/_assets/{passkeys-C14r7a1U.js → passkeys-DUrjX8Ro.js} +2 -2
  188. package/_assets/{pay-with-exchange-BoqePTss.js → pay-with-exchange-vAQgw-nO.js} +2 -2
  189. package/_assets/{prepare-contract-call-CVD1LMqZ.js → prepare-contract-call-BitMGE96.js} +2 -2
  190. package/_assets/{qr-overlay-BaF8O6L7.js → qr-overlay-3Ogvmodj.js} +4 -4
  191. package/_assets/{react-57wE9FMW.js → react-Ddn-9d83.js} +2 -2
  192. package/_assets/{receive-_KdL5WbJ.js → receive-UBqFYKku.js} +9 -9
  193. package/_assets/{resolveImplementation-BIVOA86N.js → resolveImplementation-CoCWI1LK.js} +2 -2
  194. package/_assets/{resume-buy-RWKNCH2I.js → resume-buy-DqlXnoQq.js} +2 -2
  195. package/_assets/{resume-name-CVkpKZkm.js → resume-name-B5w3HYnd.js} +2 -2
  196. package/_assets/{rpc-BuxGvW8N.js → rpc-C-RDZHVf.js} +2 -2
  197. package/_assets/{sales-empty-BrdJIpZF.js → sales-empty-DFvbsd1W.js} +2 -2
  198. package/_assets/{search-empty-B9EfPE1P.js → search-empty-D1Tausth.js} +2 -2
  199. package/_assets/{secp256k1-D98PKoK-.js → secp256k1-By6IQ83k.js} +2 -2
  200. package/_assets/{secp256k1-DtCcUzXl.js → secp256k1-CAqSDg9Y.js} +2 -2
  201. package/_assets/{secp256k1-C3mpZkpr.js → secp256k1-CxMxDBug.js} +2 -2
  202. package/_assets/{send-CPee34BT.js → send-Dg3aA-cT.js} +2 -2
  203. package/_assets/{send-batch-transaction-CRYeO2Ew.js → send-batch-transaction-CcGULLl4.js} +2 -2
  204. package/_assets/{send-eip712-transaction-DmUbX1xf.js → send-eip712-transaction-eRcl-w9x.js} +3 -3
  205. package/_assets/{send-gasless-transaction-Cl9L9F1A.js → send-gasless-transaction-BVE00Z8q.js} +3 -3
  206. package/_assets/send-transaction-bNnxjmkm.js +3 -0
  207. package/_assets/{sendMetaTransaction-B7N-qRfh.js → sendMetaTransaction-DaTro9ph.js} +2 -2
  208. package/_assets/{sendRawTransaction-DAT5LyNo.js → sendRawTransaction-Crv4h2Fe.js} +4 -4
  209. package/_assets/{sentry-C6Mao8WI.js → sentry-D_8KijKQ.js} +3 -3
  210. package/_assets/{serializeTransaction-CjRJ0psk.js → serializeTransaction-CPg2ul-G.js} +2 -2
  211. package/_assets/{session-proposal-ueoRTwfB.js → session-proposal-Di1f8LHY.js} +2 -2
  212. package/_assets/{session-request-BD9TXTaA.js → session-request-R2yVi8HQ.js} +3 -3
  213. package/_assets/{sha256-DbvztKVh.js → sha256-BhCi5WIJ.js} +2 -2
  214. package/_assets/{sha3-5JMjwcQn.js → sha3-CLQFMym7.js} +2 -2
  215. package/_assets/signin-empty-PXLDIsQk.js +2 -0
  216. package/_assets/{signing-D8djUTSU.js → signing-BCODmgNV.js} +4 -4
  217. package/_assets/{skeleton.styles-Bvaum8jS.js → skeleton.styles-anODpKJf.js} +2 -2
  218. package/_assets/{socials-NQn6q4he.js → socials-DShz1WgZ.js} +2 -2
  219. package/_assets/{styled-CCNK0K71.js → styled-CbzE9JXd.js} +2 -2
  220. package/_assets/{swaps-CgWjr3x_.js → swaps-BXF_khPF.js} +2 -2
  221. package/_assets/{thirdweb-C1alV0QS.js → thirdweb-Cnc0UXDQ.js} +4 -4
  222. package/_assets/{to-serializable-transaction-BKQS5d49.js → to-serializable-transaction-DzZsdRzk.js} +3 -3
  223. package/_assets/{totalSupply-CF5FI8lQ.js → totalSupply-D4EQMS5T.js} +2 -2
  224. package/_assets/{trade-encoding-BV1_7YxJ.js → trade-encoding-BdtZmg5A.js} +2 -2
  225. package/_assets/{transaction-BVLpkah4.js → transaction-Cbet3IZc.js} +2 -2
  226. package/_assets/{transactionReceipt-DwjBLtBg.js → transactionReceipt-DSeG56jV.js} +2 -2
  227. package/_assets/{transactions-DW_nxFG-.js → transactions-B5gQmUHm.js} +2 -2
  228. package/_assets/useInfiniteGrid-C5wDaoVd.js +2 -0
  229. package/_assets/{useStore-CJ2zzclt.js → useStore-wU9qkXc9.js} +3 -3
  230. package/_assets/{useTheme-D3lC36b8.js → useTheme-y50PSrCO.js} +2 -2
  231. package/_assets/{utils-DyoF2n1_.js → utils-BGzZ7mCg.js} +2 -2
  232. package/_assets/{verifyHash-D_k8MOkd.js → verifyHash-I86XFFeN.js} +2 -2
  233. package/_assets/{w3m-modal-BwPY12eH.js → w3m-modal-COSR0Fsr.js} +2 -2
  234. package/_assets/{w3m-modal-CIfTlIpr.js → w3m-modal-Dz0XFS0k.js} +2 -2
  235. package/_assets/{wait-for-tx-receipt-BQf97Yv5.js → wait-for-tx-receipt-C3zFGaKb.js} +2 -2
  236. package/_assets/{wallets-Cor67NYq.js → wallets-BM2FKp9V.js} +6 -6
  237. package/_assets/{web-connector-AUtPfxac.js → web-connector-DXaUpGnD.js} +4 -4
  238. package/_assets/{writeContract-_6z0Fw9c.js → writeContract-Bja8jWrS.js} +2 -2
  239. package/_assets/{zora-sepolia-DFxo1Oif.js → zora-sepolia-B6FH_u_V.js} +2 -2
  240. package/_assets/{zoraTestnet-B4Lgrc00.js → zoraTestnet-CDn6xrjW.js} +2 -2
  241. package/index.html +12 -12
  242. package/package.json +2 -2
  243. package/_assets/ItemDetail-big_cmBY.js +0 -3411
  244. package/_assets/MyStore-SSChApNZ.js +0 -1630
  245. package/_assets/NotificationsBell-BiwzCIb4.js +0 -142
  246. package/_assets/index-DoXX6TgS.css +0 -1
  247. package/_assets/index-GCKJ9yxg.js +0 -3
  248. package/_assets/items-empty-BciJH2B_.js +0 -2
  249. package/_assets/send-transaction-CydyNIuj.js +0 -3
  250. package/_assets/signin-empty-Duq453f-.js +0 -2
  251. package/_assets/useInfiniteGrid-CbPWAhDP.js +0 -2
@@ -1,4 +1,4 @@
1
- import{r as u,L as W,e as re,j as e}from"./react-57wE9FMW.js";import{a3 as H,w as U,a4 as le,a5 as de,a6 as ce,a7 as he,a as pe,s as i,I as L,a8 as ue,a9 as me,H as F,aa as xe,x as V,ab as ge,B as fe,t as n,ac as G,ad as N,ae as be,af as ye,ag as ve,ah as je,O as we,ai as $e,aj as ke,ak as Ie,al as Ce,am as Ee,an as ze,ao as Le,ap as Fe,aq as We,ar as Se,z as A,as as O,at as Ae,au as Oe,av as Te,aw as Pe,ax as Re,ay as Ne}from"./index-C0EB4Nb3.js";import{d as B}from"./dcl-schemas-BgQanFex.js";import{E as Q}from"./ErrorNotice-DSZ4YOzl.js";import{E as Be}from"./EmotePlaybackBar-Bq7TckV0.js";import{O as Me}from"./OutfitPreview-C52GjMv6.js";import{c as _e}from"./crumbs.styles-IWrGqGTW.js";import"./sentry-C6Mao8WI.js";import"./ethers-RdXTApYJ.js";import"./intl-AKLEHPeO.js";import"./disposePreview-DPlzBDEC.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="6b3c2145-cdcb-4d5a-93fb-a5253da06a66",t._sentryDebugIdIdentifier="sentry-dbid-6b3c2145-cdcb-4d5a-93fb-a5253da06a66")}catch{}})();function qe({address:t,outfitUrns:s,enabled:l=!0}){var b;const{data:r,isFetched:d}=H(t),m=((b=r==null?void 0:r.avatar)==null?void 0:b.wearables)??[],x=!!t&&!!r,p=m.join(","),c=l&&x&&m.length>0,{data:y,isLoading:v,isFetched:j}=U({queryKey:["wearable-rules",p],enabled:c,staleTime:30*6e4,retry:!1,queryFn:()=>he(m)}),k=s.join(",");return u.useMemo(()=>{const I=!!t&&!d||v||c&&!j;return x?{profile:"default",bodyShape:ce(r)??void 0,urns:[...de(y??[]),...s],...le(r),isLoading:I}:{profile:"default",urns:s,isLoading:I}},[t,x,r,d,y,v,j,c,k])}const{colors:o,radius:$,media:h,gradients:De}=pe,J=i.div`
1
+ import{r as u,L as W,e as re,j as e}from"./react-Ddn-9d83.js";import{a6 as H,w as U,a7 as le,a8 as de,a9 as ce,aa as he,a as pe,s as i,I as L,ab as ue,ac as me,H as F,ad as xe,x as V,ae as ge,B as fe,t as n,af as G,ag as B,ah as be,ai as ye,aj as ve,ak as je,O as we,al as $e,am as ke,an as Ie,ao as Ce,ap as Ee,aq as ze,ar as Le,as as Fe,at as We,au as Ae,z as S,av as O,aw as Se,ax as Oe,ay as Te,az as Pe,aA as Re,aB as Be}from"./index-BBS-v8LD.js";import{d as N}from"./dcl-schemas-BW3BbT5l.js";import{E as Q}from"./ErrorNotice-D_6j8-7f.js";import{E as Ne}from"./EmotePlaybackBar-Cp9UGu_L.js";import{O as Me}from"./OutfitPreview-BTJ-IIEH.js";import{c as _e}from"./crumbs.styles-R8odPxFR.js";import"./sentry-D_8KijKQ.js";import"./ethers-DGYWmyb1.js";import"./intl-AKLEHPeO.js";import"./disposePreview-5Jddp9do.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="bd412216-2da8-4ccd-9af4-4d33e72ede0e",t._sentryDebugIdIdentifier="sentry-dbid-bd412216-2da8-4ccd-9af4-4d33e72ede0e")}catch{}})();function qe({address:t,outfitUrns:s,enabled:l=!0}){var b;const{data:r,isFetched:d}=H(t),m=((b=r==null?void 0:r.avatar)==null?void 0:b.wearables)??[],x=!!t&&!!r,p=m.join(","),c=l&&x&&m.length>0,{data:y,isLoading:v,isFetched:j}=U({queryKey:["wearable-rules",p],enabled:c,staleTime:30*6e4,retry:!1,queryFn:()=>he(m)}),k=s.join(",");return u.useMemo(()=>{const I=!!t&&!d||v||c&&!j;return x?{profile:"default",bodyShape:ce(r)??void 0,urns:[...de(y??[]),...s],...le(r),isLoading:I}:{profile:"default",urns:s,isLoading:I}},[t,x,r,d,y,v,j,c,k])}const{colors:o,radius:$,media:h,gradients:De}=pe,J=i.div`
2
2
  max-width: 1721px;
3
3
  margin: 0 auto;
4
4
  /* The page's bottom padding is 56px, but the phone CTA bar is sticky and has its own bottom padding for the safe area.
@@ -365,5 +365,5 @@ import{r as u,L as W,e as re,j as e}from"./react-57wE9FMW.js";import{a3 as H,w a
365
365
  `,mt=i.p`
366
366
  margin: 0;
367
367
  color: ${o.gray4};
368
- `,K="outfit-detail-preview";function Lt(){const{id:t}=re(),s=V(c=>c.session),l=ge(),r=l==="creator",{data:d,isError:m,refetch:x}=U({queryKey:["outfit",t,r],enabled:N()&&!!t,staleTime:6e4,queryFn:()=>Ne(t,r&&s?s.identity:void 0)}),p=!N()||!t||d===null&&l!=="pending";return fe(p?{title:n("seo.outfit.notFoundTitle"),noindex:!0}:d?{title:d.name,image:G(d.thumbnailHash)??void 0}:{}),p?e.jsxs(D,{"data-testid":"outfit-notfound",children:[e.jsx(pt,{name:"cart",size:44}),e.jsx(ut,{children:n("outfits.detail.notFoundTitle")}),e.jsx(mt,{children:n("outfits.detail.notFoundBody")}),e.jsx(F,{as:W,to:"/items",variant:"purple",children:n("notFound.cta")})]}):m?e.jsxs(D,{"data-testid":"outfit-detail-error",children:[e.jsx(Q,{message:n("outfits.errors.generic")}),e.jsx(F,{variant:"purple",onClick:()=>void x(),children:n("outfits.detail.retry")})]}):d?e.jsx(gt,{outfit:d}):e.jsx(J,{"aria-busy":"true","data-testid":"outfit-detail-loading",children:e.jsxs(X,{children:[e.jsx(Y,{children:e.jsx("span",{className:"skeleton",style:{position:"absolute",inset:0},"aria-hidden":!0})}),e.jsxs(Z,{children:[e.jsx("span",{className:"skeleton",style:{width:"60%",height:32},"aria-hidden":!0}),e.jsx("span",{className:"skeleton",style:{width:"40%",height:16},"aria-hidden":!0}),e.jsx("span",{className:"skeleton",style:{width:"100%",height:48},"aria-hidden":!0})]})]})})}function xt({item:t}){const s=Ae(t),l=Oe(t.gender);return e.jsxs(at,{children:[t.rarity?e.jsx(z,{"data-variant":"rarity",style:{background:Re(t.rarity)},title:Pe(t.rarity),children:Te(t.rarity)}):null,t.isSmart?e.jsxs(z,{"data-variant":"smart",children:[e.jsx(L,{name:"smart",size:13}),n("assetCard.smart")]}):null,s?e.jsx(z,{"data-variant":"icon",children:e.jsx(L,{name:s})}):null,l?e.jsx(z,{"data-variant":"icon",children:e.jsx(L,{name:l})}):null]})}function gt({outfit:t}){const s=be(t),{split:l,availableCount:r,totalCredits:d,outfitCredits:m,addOutfit:x,isAdding:p}=ye(t,s),c=V(a=>{var w;return(w=a.session)==null?void 0:w.address}),y=ve(a=>a.items),v=u.useMemo(()=>new Set(y.map(je)),[y]),j=G(t.thumbnailHash),k=u.useRef(null);u.useEffect(()=>{k.current!==t.id&&(k.current=t.id,we("Shop Outfit Viewed",{outfit_id:t.id,item_count:t.items.length}))},[t.id,t.items.length]);const b=u.useMemo(()=>t.items.map(a=>{const w=$e(a),S=s.byKey.get(w)??null;return{key:w,item:S,state:S?ke(S,{address:c,cartKeys:v}):"missing"}}),[t,s.byKey,c,v]),{isFetched:I}=H(c),ee=!c||I,te=t.bodyShape==="female"?Ie:t.bodyShape==="male"?Ce:void 0,g=u.useMemo(()=>b.map(a=>a.item).filter(a=>!!a),[b]),P=u.useMemo(()=>Ee(g),[g]),ie=u.useMemo(()=>ze(g),[g]),R=u.useMemo(()=>{const a=Le(g);return a?Fe(a):null},[g]),ae=R??B.PreviewEmote.FASHION,se=!!R,f=qe({address:c,outfitUrns:P}),ne=t.items.length,oe=!s.isLoading&&!s.isError,C=l.purchasable.length;return e.jsxs(J,{"data-testid":"outfit-detail",children:[e.jsxs(Ke,{"aria-label":n("outfits.detail.breadcrumbAria"),children:[e.jsx(M,{to:"/overview",children:n("nav.overview")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(M,{to:"/overview",children:n("outfits.detail.breadcrumbLooks")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(He,{children:t.name})]}),e.jsxs(X,{children:[e.jsx(Y,{"data-testid":"outfit-detail-preview",style:{background:We(t)},children:j&&!s.isLoading&&P.length===0?e.jsx(Ue,{src:j,alt:t.name}):e.jsx(Me,{id:K,profile:f.profile,bodyShape:ie??f.bodyShape??te,urns:f.urns,emote:ae,unityMode:B.PreviewUnityMode.BUILDER,skin:f.skin,hair:f.hair,eyes:f.eyes,enabled:ee&&!f.isLoading&&!s.isLoading,controls:se?e.jsx(Be,{previewId:K,testId:"outfit-emote-controls"}):null})}),e.jsxs(Z,{children:[e.jsx(Ve,{children:t.name}),e.jsx(Ge,{"data-testid":"outfit-detail-meta",children:n("outfits.detail.itemsCount",{count:ne})}),s.isError?e.jsxs(nt,{children:[e.jsx(Q,{message:n("outfits.detail.resolveError"),testId:"outfit-detail-resolve-error"}),e.jsx(F,{variant:"outline","data-testid":"outfit-detail-retry",onClick:s.retry,children:n("outfits.detail.retry")})]}):e.jsxs(e.Fragment,{children:[e.jsx(Qe,{children:e.jsx(Je,{children:b.map(a=>e.jsx(Xe,{"data-testid":"outfit-detail-item","data-state":a.state,children:a.item?e.jsxs(e.Fragment,{children:[e.jsx(Ye,{to:`/item/${a.item.contractAddress}/${a.item.itemId}`,state:{item:a.item},"aria-label":a.item.name}),e.jsx(Ze,{src:a.item.thumbnail,alt:"",loading:"lazy"}),e.jsxs(_,{children:[e.jsx(T,{children:a.item.name}),a.item.creator?e.jsx(tt,{to:`/items/creator/${a.item.creator}`,children:e.jsx(Se,{address:a.item.creator})}):null,e.jsxs(q,{children:[a.state!=="unavailable"?e.jsxs(it,{children:[e.jsx(A,{size:15}),e.jsx(O,{credits:a.item.priceCredits})]}):null,a.state==="unavailable"?e.jsx(E,{children:n("outfits.card.unavailable")}):a.state==="own_listing"?e.jsx(E,{children:n("outfits.detail.yourListing")}):a.state==="in_cart"?e.jsx(E,{children:n("outfits.detail.inCart")}):null,e.jsx(xt,{item:a.item})]})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(et,{className:s.isLoading?"skeleton":void 0,"aria-hidden":!0}),e.jsx(_,{children:s.isLoading?e.jsx(T,{children:e.jsx("span",{className:"skeleton",style:{display:"block",width:"70%",height:14}})}):e.jsxs(e.Fragment,{children:[e.jsx(T,{children:n("outfits.card.unavailable")}),e.jsx(q,{children:e.jsx(E,{children:n("outfits.card.unavailable")})})]})})]})},a.key))})}),e.jsxs(ot,{"data-testid":"outfit-detail-ctabar",children:[oe&&l.ownListing.length>0?e.jsx(st,{children:n("outfits.detail.yourListingHint")}):null,g.length>0&&e.jsxs(rt,{children:[e.jsx(lt,{children:n("outfits.detail.totalPrice")}),s.isLoading?e.jsx("span",{className:"skeleton",style:{width:64,height:26},"aria-hidden":!0}):e.jsxs(dt,{children:[e.jsx(A,{size:22}),e.jsx(O,{credits:m})]})]}),s.isLoading?e.jsx("span",{className:"skeleton",style:{width:"100%",height:52,borderRadius:26},"aria-hidden":!0}):e.jsxs(ct,{variant:"purple","data-testid":"outfit-detail-cta",onClick:x,disabled:p||C===0,"aria-busy":p||void 0,children:[p?n("outfits.card.adding"):C>0?n("outfits.detail.addCount",{count:C}):r>0?n("outfits.detail.nothingToAdd"):n("outfits.card.unavailable"),!p&&C>0?e.jsxs(ht,{children:[e.jsx(A,{size:16}),e.jsx(O,{credits:d})]}):null]})]})]})]})]})]})}export{Lt as OutfitDetail,Lt as default};
369
- //# sourceMappingURL=OutfitDetail-MDYbLLf8.js.map
368
+ `,K="outfit-detail-preview";function Lt(){const{id:t}=re(),s=V(c=>c.session),l=ge(),r=l==="creator",{data:d,isError:m,refetch:x}=U({queryKey:["outfit",t,r],enabled:B()&&!!t,staleTime:6e4,queryFn:()=>Be(t,r&&s?s.identity:void 0)}),p=!B()||!t||d===null&&l!=="pending";return fe(p?{title:n("seo.outfit.notFoundTitle"),noindex:!0}:d?{title:d.name,image:G(d.thumbnailHash)??void 0}:{}),p?e.jsxs(D,{"data-testid":"outfit-notfound",children:[e.jsx(pt,{name:"cart",size:44}),e.jsx(ut,{children:n("outfits.detail.notFoundTitle")}),e.jsx(mt,{children:n("outfits.detail.notFoundBody")}),e.jsx(F,{as:W,to:"/items",variant:"purple",children:n("notFound.cta")})]}):m?e.jsxs(D,{"data-testid":"outfit-detail-error",children:[e.jsx(Q,{message:n("outfits.errors.generic")}),e.jsx(F,{variant:"purple",onClick:()=>void x(),children:n("outfits.detail.retry")})]}):d?e.jsx(gt,{outfit:d}):e.jsx(J,{"aria-busy":"true","data-testid":"outfit-detail-loading",children:e.jsxs(X,{children:[e.jsx(Y,{children:e.jsx("span",{className:"skeleton",style:{position:"absolute",inset:0},"aria-hidden":!0})}),e.jsxs(Z,{children:[e.jsx("span",{className:"skeleton",style:{width:"60%",height:32},"aria-hidden":!0}),e.jsx("span",{className:"skeleton",style:{width:"40%",height:16},"aria-hidden":!0}),e.jsx("span",{className:"skeleton",style:{width:"100%",height:48},"aria-hidden":!0})]})]})})}function xt({item:t}){const s=Se(t),l=Oe(t.gender);return e.jsxs(at,{children:[t.rarity?e.jsx(z,{"data-variant":"rarity",style:{background:Re(t.rarity)},title:Pe(t.rarity),children:Te(t.rarity)}):null,t.isSmart?e.jsxs(z,{"data-variant":"smart",children:[e.jsx(L,{name:"smart",size:13}),n("assetCard.smart")]}):null,s?e.jsx(z,{"data-variant":"icon",children:e.jsx(L,{name:s})}):null,l?e.jsx(z,{"data-variant":"icon",children:e.jsx(L,{name:l})}):null]})}function gt({outfit:t}){const s=be(t),{split:l,availableCount:r,totalCredits:d,outfitCredits:m,addOutfit:x,isAdding:p}=ye(t,s),c=V(a=>{var w;return(w=a.session)==null?void 0:w.address}),y=ve(a=>a.items),v=u.useMemo(()=>new Set(y.map(je)),[y]),j=G(t.thumbnailHash),k=u.useRef(null);u.useEffect(()=>{k.current!==t.id&&(k.current=t.id,we("Shop Outfit Viewed",{outfit_id:t.id,item_count:t.items.length}))},[t.id,t.items.length]);const b=u.useMemo(()=>t.items.map(a=>{const w=$e(a),A=s.byKey.get(w)??null;return{key:w,item:A,state:A?ke(A,{address:c,cartKeys:v}):"missing"}}),[t,s.byKey,c,v]),{isFetched:I}=H(c),ee=!c||I,te=t.bodyShape==="female"?Ie:t.bodyShape==="male"?Ce:void 0,g=u.useMemo(()=>b.map(a=>a.item).filter(a=>!!a),[b]),P=u.useMemo(()=>Ee(g),[g]),ie=u.useMemo(()=>ze(g),[g]),R=u.useMemo(()=>{const a=Le(g);return a?Fe(a):null},[g]),ae=R??N.PreviewEmote.FASHION,se=!!R,f=qe({address:c,outfitUrns:P}),ne=t.items.length,oe=!s.isLoading&&!s.isError,C=l.purchasable.length;return e.jsxs(J,{"data-testid":"outfit-detail",children:[e.jsxs(Ke,{"aria-label":n("outfits.detail.breadcrumbAria"),children:[e.jsx(M,{to:"/overview",children:n("nav.overview")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(M,{to:"/overview",children:n("outfits.detail.breadcrumbLooks")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(He,{children:t.name})]}),e.jsxs(X,{children:[e.jsx(Y,{"data-testid":"outfit-detail-preview",style:{background:We(t)},children:j&&!s.isLoading&&P.length===0?e.jsx(Ue,{src:j,alt:t.name}):e.jsx(Me,{id:K,profile:f.profile,bodyShape:ie??f.bodyShape??te,urns:f.urns,emote:ae,unityMode:N.PreviewUnityMode.BUILDER,skin:f.skin,hair:f.hair,eyes:f.eyes,enabled:ee&&!f.isLoading&&!s.isLoading,controls:se?e.jsx(Ne,{previewId:K,testId:"outfit-emote-controls"}):null})}),e.jsxs(Z,{children:[e.jsx(Ve,{children:t.name}),e.jsx(Ge,{"data-testid":"outfit-detail-meta",children:n("outfits.detail.itemsCount",{count:ne})}),s.isError?e.jsxs(nt,{children:[e.jsx(Q,{message:n("outfits.detail.resolveError"),testId:"outfit-detail-resolve-error"}),e.jsx(F,{variant:"outline","data-testid":"outfit-detail-retry",onClick:s.retry,children:n("outfits.detail.retry")})]}):e.jsxs(e.Fragment,{children:[e.jsx(Qe,{children:e.jsx(Je,{children:b.map(a=>e.jsx(Xe,{"data-testid":"outfit-detail-item","data-state":a.state,children:a.item?e.jsxs(e.Fragment,{children:[e.jsx(Ye,{to:`/item/${a.item.contractAddress}/${a.item.itemId}`,state:{item:a.item},"aria-label":a.item.name}),e.jsx(Ze,{src:a.item.thumbnail,alt:"",loading:"lazy"}),e.jsxs(_,{children:[e.jsx(T,{children:a.item.name}),a.item.creator?e.jsx(tt,{to:`/items/creator/${a.item.creator}`,children:e.jsx(Ae,{address:a.item.creator})}):null,e.jsxs(q,{children:[a.state!=="unavailable"?e.jsxs(it,{children:[e.jsx(S,{size:15}),e.jsx(O,{credits:a.item.priceCredits})]}):null,a.state==="unavailable"?e.jsx(E,{children:n("outfits.card.unavailable")}):a.state==="own_listing"?e.jsx(E,{children:n("outfits.detail.yourListing")}):a.state==="in_cart"?e.jsx(E,{children:n("outfits.detail.inCart")}):null,e.jsx(xt,{item:a.item})]})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(et,{className:s.isLoading?"skeleton":void 0,"aria-hidden":!0}),e.jsx(_,{children:s.isLoading?e.jsx(T,{children:e.jsx("span",{className:"skeleton",style:{display:"block",width:"70%",height:14}})}):e.jsxs(e.Fragment,{children:[e.jsx(T,{children:n("outfits.card.unavailable")}),e.jsx(q,{children:e.jsx(E,{children:n("outfits.card.unavailable")})})]})})]})},a.key))})}),e.jsxs(ot,{"data-testid":"outfit-detail-ctabar",children:[oe&&l.ownListing.length>0?e.jsx(st,{children:n("outfits.detail.yourListingHint")}):null,g.length>0&&e.jsxs(rt,{children:[e.jsx(lt,{children:n("outfits.detail.totalPrice")}),s.isLoading?e.jsx("span",{className:"skeleton",style:{width:64,height:26},"aria-hidden":!0}):e.jsxs(dt,{children:[e.jsx(S,{size:22}),e.jsx(O,{credits:m})]})]}),s.isLoading?e.jsx("span",{className:"skeleton",style:{width:"100%",height:52,borderRadius:26},"aria-hidden":!0}):e.jsxs(ct,{variant:"purple","data-testid":"outfit-detail-cta",onClick:x,disabled:p||C===0,"aria-busy":p||void 0,children:[p?n("outfits.card.adding"):C>0?n("outfits.detail.addCount",{count:C}):r>0?n("outfits.detail.nothingToAdd"):n("outfits.card.unavailable"),!p&&C>0?e.jsxs(ht,{children:[e.jsx(S,{size:16}),e.jsx(O,{credits:d})]}):null]})]})]})]})]})]})}export{Lt as OutfitDetail,Lt as default};
369
+ //# sourceMappingURL=OutfitDetail-BBsCNaaP.js.map
@@ -1,7 +1,7 @@
1
- import{r as c,j as d}from"./react-57wE9FMW.js";import{d as m}from"./dcl-schemas-BgQanFex.js";import{a$ as S,w as T,s as _,ag as q,b0 as M,b1 as U,b2 as W,t as $}from"./index-C0EB4Nb3.js";import{d as k}from"./disposePreview-DPlzBDEC.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b4194c5b-3d92-45e4-b522-3b7308bd4db7",e._sentryDebugIdIdentifier="sentry-dbid-b4194c5b-3d92-45e4-b522-3b7308bd4db7")}catch{}})();function h(e){return e.startsWith("urn:")}function C(e,n){var o,f;const s=(o=e.metadata)==null?void 0:o.emoteDataADR74;if(!((f=s==null?void 0:s.representations)!=null&&f.length))return null;const a=new Map((e.content??[]).map(r=>[r.file,r.hash])),t=s.representations.map(r=>({...r,contents:(r.contents??[]).filter(l=>a.has(l)).map(l=>({key:l,url:`${n}/content/contents/${a.get(l)}`}))}));return t.every(r=>r.contents.length===0)?null:{base64:H({...e.metadata,emoteDataADR74:{...s,representations:t}}),loop:!!s.loop}}function H(e){return btoa(JSON.stringify(e).replace(/[^\x20-\x7f]/g,""))}async function J(e,n=S([e]),s){var a;try{const t=await fetch(`${n}/content/entities/active`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({pointers:[e]}),signal:s});if(!t.ok)return await((a=t.body)==null?void 0:a.cancel()),null;const[o]=await t.json();return o?C(o,n):null}catch{return null}}function K(e){var s,a;const n=T({queryKey:["emote-base64",e],enabled:!!e,staleTime:18e5,retry:!1,queryFn:({signal:t})=>J(e,void 0,t)});return{base64:((s=n.data)==null?void 0:s.base64)??null,loop:((a=n.data)==null?void 0:a.loop)??!1,isLoading:n.isLoading}}const Q=_.div`
1
+ import{r as c,j as d}from"./react-Ddn-9d83.js";import{d as m}from"./dcl-schemas-BW3BbT5l.js";import{b0 as S,w as T,s as _,aj as q,b1 as M,b2 as U,b3 as W,t as k}from"./index-BBS-v8LD.js";import{d as C}from"./disposePreview-5Jddp9do.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5471b0c0-8912-4801-8240-c39b78538702",e._sentryDebugIdIdentifier="sentry-dbid-5471b0c0-8912-4801-8240-c39b78538702")}catch{}})();function h(e){return e.startsWith("urn:")}function $(e,n){var o,f;const s=(o=e.metadata)==null?void 0:o.emoteDataADR74;if(!((f=s==null?void 0:s.representations)!=null&&f.length))return null;const a=new Map((e.content??[]).map(r=>[r.file,r.hash])),t=s.representations.map(r=>({...r,contents:(r.contents??[]).filter(l=>a.has(l)).map(l=>({key:l,url:`${n}/content/contents/${a.get(l)}`}))}));return t.every(r=>r.contents.length===0)?null:{base64:H({...e.metadata,emoteDataADR74:{...s,representations:t}}),loop:!!s.loop}}function H(e){return btoa(JSON.stringify(e).replace(/[^\x20-\x7f]/g,""))}async function J(e,n=S([e]),s){var a;try{const t=await fetch(`${n}/content/entities/active`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({pointers:[e]}),signal:s});if(!t.ok)return await((a=t.body)==null?void 0:a.cancel()),null;const[o]=await t.json();return o?$(o,n):null}catch{return null}}function K(e){var s,a;const n=T({queryKey:["emote-base64",e],enabled:!!e,staleTime:18e5,retry:!1,queryFn:({signal:t})=>J(e,void 0,t)});return{base64:((s=n.data)==null?void 0:s.base64)??null,loop:((a=n.data)==null?void 0:a.loop)??!1,isLoading:n.isLoading}}const Q=_.div`
2
2
  position: absolute;
3
3
  inset: 0;
4
4
  display: grid;
5
5
  place-items: center;
6
- `;function X({id:e,profile:n,bodyShape:s,urns:a,emote:t=m.PreviewEmote.FASHION,enabled:o=!0,skin:f,hair:r,eyes:l,unityMode:E=m.PreviewUnityMode.BUILDER,controls:x,onRenderer:I}){const A=q(u=>u.fittingOpen),{ref:j,active:D}=M(),y=t&&h(t)?t:null,{base64:p,loop:O,isLoading:R}=K(y),i=o&&a.length>0&&D&&!A&&!R,B=U(a)===m.ChainName.MATIC_AMOY,[L,b]=c.useState(!1),P=a.join(",");c.useEffect(()=>{b(!1)},[P,n,s,t,f,r,l]),c.useEffect(()=>{i&&b(!1)},[i]);const[F,w]=c.useState(!1);c.useEffect(()=>{if(!i){w(!1);return}let u=0,N=0;const v=()=>{document.getElementById(e)?w(!0):N++<300&&(u=requestAnimationFrame(v))};return v(),()=>cancelAnimationFrame(u)},[i,e]);const g=c.useRef(null);return c.useEffect(()=>{if(i)return()=>{k(g.current),g.current=null}},[i]),d.jsxs(d.Fragment,{children:[d.jsx("div",{ref:j,"data-preview-viewport":!0,"aria-hidden":!0}),i?d.jsx(W,{id:e,profile:n,bodyShape:s,urns:a,skin:f,hair:r,eyes:l,type:m.PreviewType.AVATAR,emote:y?void 0:t&&!h(t)?t:void 0,base64s:p?[p]:void 0,disableDefaultEmotes:!!p&&!O,unityMode:E,disableBackground:!0,disableFadeEffect:!0,dev:B,onRenderer:I,onLoad:()=>{var u;b(!0),g.current=((u=document.getElementById(e))==null?void 0:u.contentWindow)??null}},n):null,F?x:null,o&&a.length===0?null:!i||!L?d.jsx(Q,{"aria-busy":"true","aria-label":$("spinner.loading"),children:d.jsx("span",{className:"spinner","aria-hidden":!0})}):null]})}export{X as O};
7
- //# sourceMappingURL=OutfitPreview-C52GjMv6.js.map
6
+ `;function X({id:e,profile:n,bodyShape:s,urns:a,emote:t=m.PreviewEmote.FASHION,enabled:o=!0,skin:f,hair:r,eyes:l,unityMode:E=m.PreviewUnityMode.BUILDER,controls:x,onRenderer:I}){const j=q(u=>u.fittingOpen),{ref:A,active:D}=M(),g=t&&h(t)?t:null,{base64:p,loop:O,isLoading:R}=K(g),i=o&&a.length>0&&D&&!j&&!R,B=U(a)===m.ChainName.MATIC_AMOY,[L,b]=c.useState(!1),P=a.join(",");c.useEffect(()=>{b(!1)},[P,n,s,t,f,r,l]),c.useEffect(()=>{i&&b(!1)},[i]);const[F,w]=c.useState(!1);c.useEffect(()=>{if(!i){w(!1);return}let u=0,N=0;const v=()=>{document.getElementById(e)?w(!0):N++<300&&(u=requestAnimationFrame(v))};return v(),()=>cancelAnimationFrame(u)},[i,e]);const y=c.useRef(null);return c.useEffect(()=>{if(i)return()=>{C(y.current),y.current=null}},[i]),d.jsxs(d.Fragment,{children:[d.jsx("div",{ref:A,"data-preview-viewport":!0,"aria-hidden":!0}),i?d.jsx(W,{id:e,profile:n,bodyShape:s,urns:a,skin:f,hair:r,eyes:l,type:m.PreviewType.AVATAR,emote:g?void 0:t&&!h(t)?t:void 0,base64s:p?[p]:void 0,disableDefaultEmotes:!!p&&!O,unityMode:E,disableBackground:!0,disableFadeEffect:!0,dev:B,onRenderer:I,onLoad:()=>{var u;b(!0),y.current=((u=document.getElementById(e))==null?void 0:u.contentWindow)??null}},n):null,F?x:null,o&&a.length===0?null:!i||!L?d.jsx(Q,{"aria-busy":"true","aria-label":k("spinner.loading"),children:d.jsx("span",{className:"spinner","aria-hidden":!0})}):null]})}export{X as O};
7
+ //# sourceMappingURL=OutfitPreview-BTJ-IIEH.js.map
@@ -1,4 +1,4 @@
1
- import{r as d,j as t,L as A,e as Jt,a as Xt,b as Yt}from"./react-57wE9FMW.js";import{s,a as ut,I as _,aG as Zt,t as e,z as ot,as as at,H as m,n as Tt,x as X,ab as te,B as ee,aH as ie,$ as se,aI as Ct,w as Et,ae as oe,ai as z,aJ as V,aK as ae,aL as re,aM as J,am as ne,ao as de,ak as le,al as ue,ac as Lt,aq as ce,aN as rt,aO as pe,aP as fe,aQ as he,aR as F,aS as Rt,aT as zt,aU as O,l as nt,aV as dt,aW as xe,aX as me,aY as ge,O as be,aZ as ye,a_ as je,ay as ve}from"./index-C0EB4Nb3.js";import{s as we}from"./signin-empty-Duq453f-.js";import{E as U}from"./ErrorNotice-DSZ4YOzl.js";import{L as $e}from"./LoadMore-D8gtSgyc.js";import{u as ke}from"./useInfiniteGrid-CbPWAhDP.js";import{O as Se}from"./OutfitPreview-C52GjMv6.js";import{T as Ie}from"./skeleton.styles-Bvaum8jS.js";import"./dcl-schemas-BgQanFex.js";import"./sentry-C6Mao8WI.js";import"./ethers-RdXTApYJ.js";import"./intl-AKLEHPeO.js";import"./disposePreview-DPlzBDEC.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new r.Error().stack;f&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[f]="9052f249-789b-498d-af32-764d7ab25c3c",r._sentryDebugIdIdentifier="sentry-dbid-9052f249-789b-498d-af32-764d7ab25c3c")}catch{}})();const{colors:x,radius:Y,media:Te}=ut,Ce=s.div`
1
+ import{r as d,j as t,L as A,e as Xt,a as Yt,b as Jt}from"./react-Ddn-9d83.js";import{s,a as ut,I as _,aJ as Zt,t as e,z as ot,av as at,H as m,n as Tt,x as Y,ae as te,B as ee,aK as ie,a2 as se,X as Ct,w as Et,ah as oe,al as z,aL as V,aM as ae,aN as re,aO as X,ap as ne,ar as de,an as le,ao as ue,af as Lt,at as ce,aP as rt,aQ as pe,aR as fe,aS as he,Y as F,aT as Rt,aU as zt,aV as O,l as nt,aW as dt,aX as xe,aY as me,aZ as ge,O as be,a_ as ye,a$ as je,aB as ve}from"./index-BBS-v8LD.js";import{s as we}from"./signin-empty-PXLDIsQk.js";import{E as U}from"./ErrorNotice-D_6j8-7f.js";import{L as $e}from"./LoadMore-CM5ykem-.js";import{u as ke}from"./useInfiniteGrid-C5wDaoVd.js";import{O as Se}from"./OutfitPreview-BTJ-IIEH.js";import{T as Ie}from"./skeleton.styles-anODpKJf.js";import"./dcl-schemas-BW3BbT5l.js";import"./sentry-D_8KijKQ.js";import"./ethers-DGYWmyb1.js";import"./intl-AKLEHPeO.js";import"./disposePreview-5Jddp9do.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new r.Error().stack;f&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[f]="9e4dff22-6e70-4d08-8550-43a6d59f997d",r._sentryDebugIdIdentifier="sentry-dbid-9e4dff22-6e70-4d08-8550-43a6d59f997d")}catch{}})();const{colors:x,radius:J,media:Te}=ut,Ce=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 12px;
@@ -7,7 +7,7 @@ import{r as d,j as t,L as A,e as Jt,a as Xt,b as Yt}from"./react-57wE9FMW.js";im
7
7
  align-items: center;
8
8
  gap: 8px;
9
9
  border: 1px solid rgba(255, 255, 255, 0.45);
10
- border-radius: ${Y.pill};
10
+ border-radius: ${J.pill};
11
11
  padding: 0 14px;
12
12
  height: 44px;
13
13
  background: rgba(0, 0, 0, 0.25);
@@ -35,7 +35,7 @@ import{r as d,j as t,L as A,e as Jt,a as Xt,b as Yt}from"./react-57wE9FMW.js";im
35
35
  `,Re=s.button`
36
36
  min-height: 44px;
37
37
  padding: 0 16px;
38
- border-radius: ${Y.pill};
38
+ border-radius: ${J.pill};
39
39
  border: 1px solid rgba(255, 255, 255, 0.45);
40
40
  background: none;
41
41
  font: inherit;
@@ -58,7 +58,7 @@ import{r as d,j as t,L as A,e as Jt,a as Xt,b as Yt}from"./react-57wE9FMW.js";im
58
58
  }
59
59
  `,ze=s.span`
60
60
  height: 190px;
61
- border-radius: ${Y.card};
61
+ border-radius: ${J.card};
62
62
  `,Pe=s.button`
63
63
  position: relative;
64
64
  display: flex;
@@ -67,7 +67,7 @@ import{r as d,j as t,L as A,e as Jt,a as Xt,b as Yt}from"./react-57wE9FMW.js";im
67
67
  padding: 8px;
68
68
  background: rgba(0, 0, 0, 0.4);
69
69
  border: 1px solid transparent;
70
- border-radius: ${Y.card};
70
+ border-radius: ${J.card};
71
71
  text-align: left;
72
72
  font: inherit;
73
73
  color: ${x.softWhite};
@@ -222,7 +222,7 @@ import{r as d,j as t,L as A,e as Jt,a as Xt,b as Yt}from"./react-57wE9FMW.js";im
222
222
  gap: 8px;
223
223
  font-size: 13px;
224
224
  color: ${n.gray4};
225
- `,Je=s.div`
225
+ `,Xe=s.div`
226
226
  display: flex;
227
227
  align-items: center;
228
228
  gap: 8px;
@@ -231,7 +231,7 @@ import{r as d,j as t,L as A,e as Jt,a as Xt,b as Yt}from"./react-57wE9FMW.js";im
231
231
  width: 100%;
232
232
  justify-content: flex-end;
233
233
  }
234
- `,Xe=s.button`
234
+ `,Ye=s.button`
235
235
  display: inline-flex;
236
236
  align-items: center;
237
237
  justify-content: center;
@@ -252,7 +252,7 @@ import{r as d,j as t,L as A,e as Jt,a as Xt,b as Yt}from"./react-57wE9FMW.js";im
252
252
  opacity: 0.5;
253
253
  cursor: default;
254
254
  }
255
- `,Ye=s.div`
255
+ `,Je=s.div`
256
256
  position: fixed;
257
257
  inset: 0;
258
258
  z-index: ${De.overlay};
@@ -553,5 +553,5 @@ import{r as d,j as t,L as A,e as Jt,a as Xt,b as Yt}from"./react-57wE9FMW.js";im
553
553
  display: flex;
554
554
  flex-wrap: wrap;
555
555
  gap: 10px;
556
- `;function Vi(){const{id:r}=Jt(),{pathname:f}=Xt(),h=X(b=>b.session),c=X(b=>b.signIn),y=te();ee({title:e("outfits.studio.title"),noindex:!0});const j=f.endsWith("/new")?"new":r?"edit":"list";return y==="pending"?t.jsx(N,{"aria-busy":"true","data-testid":"outfit-studio-loading",children:t.jsx("span",{className:"spinner","aria-hidden":!0})}):h?y!=="creator"?t.jsxs(N,{"data-testid":"outfit-studio-unavailable",children:[t.jsx(He,{children:e("outfits.studio.title")}),t.jsx(k,{children:e("outfits.studio.notAvailable")}),t.jsx(m,{as:A,to:"/overview",variant:"white",children:e("outfits.studio.backToShop")})]}):j==="list"?t.jsx(zi,{}):t.jsx(Oi,{outfitId:j==="edit"?r:null},r??"new"):t.jsx(ie,{children:t.jsx(se,{testId:"outfit-studio-signin",icon:we,title:e("outfits.studio.signInTitle"),body:e("outfits.studio.signInBody"),cta:{label:e("outfits.studio.signIn"),onClick:()=>c()},ctaVariant:"solid",fill:!0})})}function Ri({outfit:r}){const f=Lt(r.thumbnailHash);return f?t.jsx(Ke,{style:{background:fe(r)},children:t.jsx("img",{src:f,alt:"",loading:"lazy"})}):t.jsx(Ge,{"aria-hidden":!0})}function zi(){const r=X(u=>u.session),f=Ct(),[h,c]=d.useState(null),[y,j]=d.useState(null),{data:b=[],isLoading:o,isError:R,refetch:T}=Et({queryKey:["outfits-all"],enabled:!!r,staleTime:3e4,queryFn:()=>je(r.identity)});async function C(u,S){if(r){j(u.id);try{S==="delete"?(await he(u.id,r.identity),F.success(e("outfits.studio.deleted"))):(await Rt({...lt(u),published:!1},r.identity,"update"),F.success(e("outfits.studio.unpublished"))),zt(f)}catch(E){E instanceof O||nt(E,{flow:`outfit-${S}`}),F.error(e(E instanceof O?dt(E.code):"outfits.errors.generic"))}finally{j(null),c(null)}}}return t.jsxs(Pt,{"data-testid":"outfit-studio-list",children:[t.jsxs(Wt,{children:[t.jsx(Ot,{children:e("outfits.studio.myOutfits")}),t.jsx(m,{as:A,to:"/outfits/new",variant:"white","data-testid":"outfit-studio-new",children:e("outfits.studio.new")})]}),o?t.jsx(kt,{"aria-busy":"true",children:Array.from({length:3},(u,S)=>t.jsx(Ue,{className:"skeleton","aria-hidden":!0},S))}):R?t.jsxs(N,{children:[t.jsx(U,{message:e("outfits.errors.generic")}),t.jsx(m,{variant:"white",onClick:()=>void T(),children:e("outfits.detail.retry")})]}):b.length===0?t.jsx(k,{children:e("outfits.studio.empty")}):t.jsx(kt,{children:b.map(u=>t.jsxs(_e,{"data-testid":"outfit-studio-row","data-published":u.published||void 0,children:[t.jsx(Ri,{outfit:u}),t.jsxs(qe,{children:[t.jsx(Qe,{children:u.name||e("outfits.studio.untitled")}),t.jsxs(Ve,{children:[t.jsx(At,{"data-state":u.published?"published":"draft",children:u.published?e("outfits.studio.publishedState"):e("outfits.studio.draft")}),e("outfits.card.items",{count:u.items.length})]})]}),t.jsxs(Je,{children:[u.published?t.jsx(m,{as:A,to:`/items/outfits/${u.id}`,variant:"ghost",size:"sm",children:e("outfits.studio.view")}):null,t.jsx(m,{as:A,to:`/outfits/${u.id}/edit`,variant:"outline",size:"sm","data-testid":"outfit-studio-edit",children:e("outfits.studio.edit")}),t.jsx(Xe,{type:"button","data-testid":"outfit-studio-delete","aria-label":e("outfits.studio.confirmDelete"),disabled:y===u.id,onClick:()=>c(u),children:t.jsx(_,{name:"trash",size:18})})]})]},u.id))}),h?t.jsxs(Ye,{role:"dialog","aria-modal":"true","aria-label":e("outfits.studio.deleteTitle"),"data-testid":"outfit-studio-confirm",children:[t.jsx(Ze,{onClick:()=>c(null)}),t.jsxs(ti,{children:[t.jsx(ei,{children:e("outfits.studio.deleteTitle")}),t.jsx("p",{className:"muted",children:e("outfits.studio.deleteBody")}),t.jsxs(ii,{children:[h.published?t.jsx(m,{variant:"purple","data-testid":"outfit-studio-confirm-unpublish",disabled:y===h.id,onClick:()=>void C(h,"unpublish"),children:e("outfits.studio.unpublish")}):null,t.jsx(m,{variant:h.published?"outline":"purple","data-testid":"outfit-studio-confirm-delete",disabled:y===h.id,onClick:()=>void C(h,"delete"),children:e("outfits.studio.confirmDelete")}),t.jsx(m,{variant:"ghost",onClick:()=>c(null),children:e("outfits.studio.cancel")})]})]})]}):null]})}const It=["image/png","image/jpeg","image/webp"];function Pi(){return{id:crypto.randomUUID(),name:"",thumbnailHash:"",items:[],bodyShape:"unisex",gradientFrom:rt.from,gradientTo:rt.to,published:!1}}function lt(r){return{id:r.id,name:r.name,thumbnailHash:r.thumbnailHash,items:r.items,bodyShape:r.bodyShape,gradientFrom:r.gradientFrom,gradientTo:r.gradientTo,published:r.published}}function Wi(r){try{const f=sessionStorage.getItem(r);return f?JSON.parse(f):null}catch{return null}}function Oi({outfitId:r}){const f=r===null,h=`outfit-draft:${r??"new"}`,c=X(i=>i.session),y=Ct(),j=Yt(),[b]=d.useState(()=>Wi(h)),[o,R]=d.useState(()=>b??(f?Pi():null)),[T,C]=d.useState(!!b),{data:u,isLoading:S,isError:E,refetch:Z}=Et({queryKey:["outfit",r,!0],enabled:!f&&!!c,staleTime:0,queryFn:()=>ve(r,c.identity)});d.useEffect(()=>{u&&R(i=>i??lt(u))},[u]);function $(i){R(a=>a&&{...a,...i}),C(!0)}d.useEffect(()=>{if(!(!o||!T))try{sessionStorage.setItem(h,JSON.stringify(o))}catch{}},[o,T,h]),d.useEffect(()=>{if(!T)return;const i=a=>a.preventDefault();return window.addEventListener("beforeunload",i),()=>window.removeEventListener("beforeunload",i)},[T]),d.useEffect(()=>()=>sessionStorage.removeItem(h),[h]);const g=oe(o??void 0),K=d.useMemo(()=>new Set(((o==null?void 0:o.items)??[]).map(z)),[o]),D=i=>ye((o==null?void 0:o.items)??[],i,g.byKey),l=i=>!!i.itemId&&D(i).length<=J;function v(i){!o||!l(i)||$({items:D(i)})}const[H,ct]=d.useState(null),L=d.useRef(null),tt=d.useRef(!0);d.useEffect(()=>(tt.current=!0,()=>{tt.current=!1}),[]);const[G,pt]=d.useState(!1),[Bt,q]=d.useState(null),[et,ft]=d.useState(""),[Dt,ht]=d.useState(null),[I,Ht]=d.useState();d.useEffect(()=>()=>{L.current&&URL.revokeObjectURL(L.current)},[]);function xt(){const i=ge(et);if(!i){ht(e("outfits.studio.importError"));return}ht(null),ft(""),Ht(i.colors),$({items:i.items,...i.bodyShape?{bodyShape:i.bodyShape}:{}}),F.success(e("outfits.studio.importSuccess",{count:i.items.length}))}async function Mt(i){if(!i||!c)return;if(q(null),!It.includes(i.type)){q(e("outfits.errors.unsupportedType"));return}if(i.size>xe){q(e("outfits.errors.tooLarge"));return}L.current&&URL.revokeObjectURL(L.current);const a=URL.createObjectURL(i);L.current=a,ct(a),pt(!0);try{const p=await me(i,c.identity);$({thumbnailHash:p})}catch(p){p instanceof O||nt(p,{flow:"outfit-thumbnail"}),q(e(p instanceof O?dt(p.code):"outfits.errors.generic")),L.current&&(URL.revokeObjectURL(L.current),L.current=null),ct(null)}finally{pt(!1)}}const[M,mt]=d.useState(!1),[Ut,gt]=d.useState(null),it=!!o&&o.name.trim().length>0&&o.name.length<=60,_t=!!o&&V(o.gradientFrom)&&V(o.gradientTo),bt=!!o&&o.items.some(i=>{const a=g.byKey.get(z(i));return!a||ae(a)}),yt=!!o&&it&&!!o.thumbnailHash&&_t&&bt&&o.items.length>=re&&o.items.length<=J;async function st(i){if(!(!c||!o||M)){mt(!0),gt(null);try{const a=await Rt({...o,published:i},c.identity,f?"create":"update");if(!tt.current)return;sessionStorage.removeItem(h),R(lt(a)),C(!1),zt(y),i&&!o.published?(be("Shop Outfit Published",{outfit_id:a.id,item_count:a.items.length}),F.success(e("outfits.studio.publishedToast"))):F.success(e("outfits.studio.saved")),f&&(y.setQueryData(["outfit",a.id,!0],a),j(`/outfits/${a.id}/edit`,{replace:!0}))}catch(a){a instanceof O||nt(a,{flow:"outfit-save"}),gt(e(a instanceof O?dt(a.code):"outfits.errors.generic"))}finally{mt(!1)}}}const Q=d.useMemo(()=>((o==null?void 0:o.items)??[]).map(i=>g.byKey.get(z(i))).filter(i=>!!i),[o,g.byKey]),jt=d.useMemo(()=>ne(Q),[Q]),Kt=d.useMemo(()=>{const i=de(Q);return i!=null&&i.itemId?z({contractAddress:i.contractAddress,itemId:i.itemId}):null},[Q]),Gt=(o==null?void 0:o.bodyShape)==="female"?le:(o==null?void 0:o.bodyShape)==="male"?ue:void 0;if(!c)return null;if(!o)return E?t.jsxs(N,{children:[t.jsx(U,{message:e("outfits.errors.generic")}),t.jsx(m,{variant:"white",onClick:()=>void Z(),children:e("outfits.detail.retry")})]}):!S&&u===null?t.jsxs(N,{"data-testid":"outfit-studio-missing",children:[t.jsx(k,{children:e("outfits.errors.notFound")}),t.jsx(m,{as:A,to:"/outfits/manage",variant:"white",children:e("outfits.studio.myOutfits")})]}):t.jsx(N,{"aria-busy":"true",children:t.jsx("span",{className:"spinner","aria-hidden":!0})});const vt=H??Lt(o.thumbnailHash),qt={...o,authorAddress:(c==null?void 0:c.address)??"",createdAt:0,updatedAt:0},Qt=o.items.reduce((i,a)=>{var p;return i+(((p=g.byKey.get(z(a)))==null?void 0:p.priceCredits)??0)},0);return t.jsxs(Pt,{"data-testid":"outfit-studio-editor",children:[t.jsxs(Wt,{children:[t.jsx(Me,{to:"/outfits/manage","aria-label":e("outfits.studio.myOutfits"),"data-testid":"outfit-studio-back",children:t.jsx(_,{name:"arrow-left",size:18})}),t.jsx(Ot,{children:f?e("outfits.studio.new"):e("outfits.studio.editTitle")}),t.jsx(At,{"data-state":o.published?"published":"draft",children:o.published?e("outfits.studio.publishedState"):e("outfits.studio.draft")})]}),t.jsxs(si,{children:[t.jsxs(oi,{children:[t.jsxs(ri,{"data-testid":"outfit-studio-preview",style:{background:ce(o)},children:[t.jsx(Se,{id:"outfit-studio-preview-frame",profile:"default",bodyShape:Gt,urns:jt,skin:I==null?void 0:I.skin,hair:I==null?void 0:I.hair,eyes:I==null?void 0:I.eyes,enabled:!g.isLoading}),jt.length===0&&!g.isLoading?t.jsx(ni,{children:e("outfits.studio.previewEmpty")}):null]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.bodyShape")}),t.jsx(di,{role:"group","aria-label":e("outfits.studio.bodyShape"),children:["unisex","male","female"].map(i=>t.jsx(li,{type:"button","data-selected":o.bodyShape===i||void 0,onClick:()=>$({bodyShape:i}),children:e(`outfits.studio.shape.${i}`)},i))})]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.gradient")}),t.jsx(ci,{children:["gradientFrom","gradientTo"].map(i=>t.jsxs(pi,{children:[t.jsx(fi,{type:"color",value:V(o[i])?o[i]:rt.from,"aria-label":e(i==="gradientFrom"?"outfits.studio.gradientTop":"outfits.studio.gradientBottom"),"data-testid":i==="gradientFrom"?"outfit-studio-gradient-from":"outfit-studio-gradient-to",onChange:a=>$({[i]:a.target.value.toLowerCase()})}),t.jsxs(hi,{children:[t.jsx("span",{children:e(i==="gradientFrom"?"outfits.studio.gradientTop":"outfits.studio.gradientBottom")}),t.jsx(xi,{value:o[i],maxLength:7,spellCheck:!1,placeholder:"#000000","aria-label":e(i==="gradientFrom"?"outfits.studio.gradientTopHex":"outfits.studio.gradientBottomHex"),"data-invalid":!V(o[i])||void 0,onChange:a=>{const p=a.target.value.trim().toLowerCase();$({[i]:p.startsWith("#")||p===""?p:`#${p}`})}})]})]},i))}),t.jsx(k,{children:e("outfits.studio.gradientHint")})]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.thumbnail")}),vt?t.jsx(ui,{"data-busy":G||void 0,children:t.jsx("img",{src:vt,alt:""})}):null,t.jsxs(gi,{as:"label",variant:"outline",size:"sm","data-busy":G||void 0,children:[G?e("outfits.studio.uploading"):e("outfits.studio.upload"),t.jsx("input",{type:"file",accept:It.join(","),hidden:!0,disabled:G,onChange:i=>{var a;return void Mt((a=i.target.files)==null?void 0:a[0])},"data-testid":"outfit-studio-thumb-input"})]}),t.jsx(k,{children:e("outfits.studio.thumbnailHint")}),t.jsx(U,{message:Bt,testId:"outfit-studio-thumb-error"})]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.cardPreview")}),t.jsx(mi,{"data-testid":"outfit-studio-card-preview",onClickCapture:i=>{i.preventDefault(),i.stopPropagation()},children:t.jsx(pe,{outfit:qt,resolution:g})})]})]}),t.jsxs(ai,{children:[t.jsxs(P,{children:[t.jsx(W,{htmlFor:"outfit-import",children:e("outfits.studio.import")}),t.jsxs(bi,{children:[t.jsx(St,{id:"outfit-import",value:et,spellCheck:!1,placeholder:e("outfits.studio.importPlaceholder"),onChange:i=>ft(i.target.value),onKeyDown:i=>{i.key==="Enter"&&xt()},"data-testid":"outfit-studio-import"}),t.jsx(m,{variant:"outline",size:"sm",onClick:xt,disabled:et.trim()==="","data-testid":"outfit-studio-import-apply",children:e("outfits.studio.importApply")})]}),t.jsx(k,{children:e("outfits.studio.importHint")}),t.jsx(U,{message:Dt,testId:"outfit-studio-import-error"})]}),t.jsxs(P,{children:[t.jsx(W,{htmlFor:"outfit-name",children:e("outfits.studio.name")}),t.jsx(St,{id:"outfit-name",value:o.name,maxLength:60,placeholder:e("outfits.studio.namePlaceholder"),onChange:i=>$({name:i.target.value}),"data-testid":"outfit-studio-name"})]}),t.jsxs(P,{children:[t.jsxs(W,{as:"span",children:[e("outfits.studio.items")," (",o.items.length,"/",J,")"]}),o.items.length===0?t.jsx(k,{children:e("outfits.studio.noItems")}):t.jsx(yi,{children:o.items.map(i=>{const a=z(i),p=g.byKey.get(a);return t.jsxs(ji,{"data-testid":"outfit-studio-selected","data-missing":!p||void 0,children:[p?t.jsx(vi,{src:p.thumbnail,alt:""}):t.jsx(wi,{className:g.isLoading?"skeleton":void 0,"aria-hidden":!0}),t.jsx($i,{className:p?void 0:"muted",children:p?p.name:g.isLoading?t.jsx(Ie,{className:"skeleton",width:96,"aria-hidden":!0}):e("outfits.card.unavailable")}),a===Kt?t.jsx(ki,{"data-testid":"outfit-studio-plays-in-preview",children:e("outfits.studio.playsInPreview")}):null,p?t.jsxs(Si,{children:[t.jsx(ot,{size:12}),t.jsx(at,{credits:p.priceCredits})]}):null,t.jsx(Ci,{type:"button","aria-label":e("outfits.studio.remove"),title:e("outfits.studio.remove"),onClick:()=>$({items:o.items.filter(Vt=>z(Vt)!==a)}),children:t.jsx(_,{name:"trash",size:16})})]},a)})}),o.items.length>0?t.jsxs(Ii,{"data-testid":"outfit-studio-total",children:[t.jsx("span",{children:e("outfits.detail.totalPrice")}),t.jsxs(Ti,{children:[t.jsx(ot,{size:14}),t.jsx(at,{credits:Qt})]})]}):null,o.items.length>=J?t.jsx(k,{children:e("outfits.studio.maxItems")}):null]}),t.jsx(Be,{selectedKeys:K,onPick:v,canPick:l})]})]}),t.jsxs(Ei,{"data-testid":"outfit-studio-savebar",children:[t.jsx(U,{message:Ut,testId:"outfit-studio-save-error"}),it?!yt&&!o.published?t.jsx(k,{"data-testid":"outfit-studio-publish-hint",children:!bt&&o.items.length>0?e("outfits.studio.needsWearable"):e("outfits.errors.notPublishable")}):null:t.jsx(k,{children:e("outfits.studio.needName")}),t.jsxs(Li,{children:[t.jsx(m,{variant:"outline","data-testid":"outfit-studio-save",disabled:M||!it,onClick:()=>void st(o.published),children:M?e("outfits.studio.saving"):e("outfits.studio.saveDraft")}),o.published?t.jsx(m,{variant:"white","data-testid":"outfit-studio-unpublish",disabled:M,onClick:()=>void st(!1),children:e("outfits.studio.unpublish")}):t.jsx(m,{variant:"white","data-testid":"outfit-studio-publish",disabled:M||!yt,onClick:()=>void st(!0),children:e("outfits.studio.publish")})]})]})]})}export{Vi as OutfitStudio,Vi as default};
557
- //# sourceMappingURL=OutfitStudio-uomtfIa1.js.map
556
+ `;function Vi(){const{id:r}=Xt(),{pathname:f}=Yt(),h=Y(b=>b.session),c=Y(b=>b.signIn),y=te();ee({title:e("outfits.studio.title"),noindex:!0});const j=f.endsWith("/new")?"new":r?"edit":"list";return y==="pending"?t.jsx(N,{"aria-busy":"true","data-testid":"outfit-studio-loading",children:t.jsx("span",{className:"spinner","aria-hidden":!0})}):h?y!=="creator"?t.jsxs(N,{"data-testid":"outfit-studio-unavailable",children:[t.jsx(He,{children:e("outfits.studio.title")}),t.jsx(k,{children:e("outfits.studio.notAvailable")}),t.jsx(m,{as:A,to:"/overview",variant:"white",children:e("outfits.studio.backToShop")})]}):j==="list"?t.jsx(zi,{}):t.jsx(Oi,{outfitId:j==="edit"?r:null},r??"new"):t.jsx(ie,{children:t.jsx(se,{testId:"outfit-studio-signin",icon:we,title:e("outfits.studio.signInTitle"),body:e("outfits.studio.signInBody"),cta:{label:e("outfits.studio.signIn"),onClick:()=>c()},ctaVariant:"solid",fill:!0})})}function Ri({outfit:r}){const f=Lt(r.thumbnailHash);return f?t.jsx(Ke,{style:{background:fe(r)},children:t.jsx("img",{src:f,alt:"",loading:"lazy"})}):t.jsx(Ge,{"aria-hidden":!0})}function zi(){const r=Y(u=>u.session),f=Ct(),[h,c]=d.useState(null),[y,j]=d.useState(null),{data:b=[],isLoading:o,isError:R,refetch:T}=Et({queryKey:["outfits-all"],enabled:!!r,staleTime:3e4,queryFn:()=>je(r.identity)});async function C(u,S){if(r){j(u.id);try{S==="delete"?(await he(u.id,r.identity),F.success(e("outfits.studio.deleted"))):(await Rt({...lt(u),published:!1},r.identity,"update"),F.success(e("outfits.studio.unpublished"))),zt(f)}catch(E){E instanceof O||nt(E,{flow:`outfit-${S}`}),F.error(e(E instanceof O?dt(E.code):"outfits.errors.generic"))}finally{j(null),c(null)}}}return t.jsxs(Pt,{"data-testid":"outfit-studio-list",children:[t.jsxs(Wt,{children:[t.jsx(Ot,{children:e("outfits.studio.myOutfits")}),t.jsx(m,{as:A,to:"/outfits/new",variant:"white","data-testid":"outfit-studio-new",children:e("outfits.studio.new")})]}),o?t.jsx(kt,{"aria-busy":"true",children:Array.from({length:3},(u,S)=>t.jsx(Ue,{className:"skeleton","aria-hidden":!0},S))}):R?t.jsxs(N,{children:[t.jsx(U,{message:e("outfits.errors.generic")}),t.jsx(m,{variant:"white",onClick:()=>void T(),children:e("outfits.detail.retry")})]}):b.length===0?t.jsx(k,{children:e("outfits.studio.empty")}):t.jsx(kt,{children:b.map(u=>t.jsxs(_e,{"data-testid":"outfit-studio-row","data-published":u.published||void 0,children:[t.jsx(Ri,{outfit:u}),t.jsxs(qe,{children:[t.jsx(Qe,{children:u.name||e("outfits.studio.untitled")}),t.jsxs(Ve,{children:[t.jsx(At,{"data-state":u.published?"published":"draft",children:u.published?e("outfits.studio.publishedState"):e("outfits.studio.draft")}),e("outfits.card.items",{count:u.items.length})]})]}),t.jsxs(Xe,{children:[u.published?t.jsx(m,{as:A,to:`/items/outfits/${u.id}`,variant:"ghost",size:"sm",children:e("outfits.studio.view")}):null,t.jsx(m,{as:A,to:`/outfits/${u.id}/edit`,variant:"outline",size:"sm","data-testid":"outfit-studio-edit",children:e("outfits.studio.edit")}),t.jsx(Ye,{type:"button","data-testid":"outfit-studio-delete","aria-label":e("outfits.studio.confirmDelete"),disabled:y===u.id,onClick:()=>c(u),children:t.jsx(_,{name:"trash",size:18})})]})]},u.id))}),h?t.jsxs(Je,{role:"dialog","aria-modal":"true","aria-label":e("outfits.studio.deleteTitle"),"data-testid":"outfit-studio-confirm",children:[t.jsx(Ze,{onClick:()=>c(null)}),t.jsxs(ti,{children:[t.jsx(ei,{children:e("outfits.studio.deleteTitle")}),t.jsx("p",{className:"muted",children:e("outfits.studio.deleteBody")}),t.jsxs(ii,{children:[h.published?t.jsx(m,{variant:"purple","data-testid":"outfit-studio-confirm-unpublish",disabled:y===h.id,onClick:()=>void C(h,"unpublish"),children:e("outfits.studio.unpublish")}):null,t.jsx(m,{variant:h.published?"outline":"purple","data-testid":"outfit-studio-confirm-delete",disabled:y===h.id,onClick:()=>void C(h,"delete"),children:e("outfits.studio.confirmDelete")}),t.jsx(m,{variant:"ghost",onClick:()=>c(null),children:e("outfits.studio.cancel")})]})]})]}):null]})}const It=["image/png","image/jpeg","image/webp"];function Pi(){return{id:crypto.randomUUID(),name:"",thumbnailHash:"",items:[],bodyShape:"unisex",gradientFrom:rt.from,gradientTo:rt.to,published:!1}}function lt(r){return{id:r.id,name:r.name,thumbnailHash:r.thumbnailHash,items:r.items,bodyShape:r.bodyShape,gradientFrom:r.gradientFrom,gradientTo:r.gradientTo,published:r.published}}function Wi(r){try{const f=sessionStorage.getItem(r);return f?JSON.parse(f):null}catch{return null}}function Oi({outfitId:r}){const f=r===null,h=`outfit-draft:${r??"new"}`,c=Y(i=>i.session),y=Ct(),j=Jt(),[b]=d.useState(()=>Wi(h)),[o,R]=d.useState(()=>b??(f?Pi():null)),[T,C]=d.useState(!!b),{data:u,isLoading:S,isError:E,refetch:Z}=Et({queryKey:["outfit",r,!0],enabled:!f&&!!c,staleTime:0,queryFn:()=>ve(r,c.identity)});d.useEffect(()=>{u&&R(i=>i??lt(u))},[u]);function $(i){R(a=>a&&{...a,...i}),C(!0)}d.useEffect(()=>{if(!(!o||!T))try{sessionStorage.setItem(h,JSON.stringify(o))}catch{}},[o,T,h]),d.useEffect(()=>{if(!T)return;const i=a=>a.preventDefault();return window.addEventListener("beforeunload",i),()=>window.removeEventListener("beforeunload",i)},[T]),d.useEffect(()=>()=>sessionStorage.removeItem(h),[h]);const g=oe(o??void 0),K=d.useMemo(()=>new Set(((o==null?void 0:o.items)??[]).map(z)),[o]),D=i=>ye((o==null?void 0:o.items)??[],i,g.byKey),l=i=>!!i.itemId&&D(i).length<=X;function v(i){!o||!l(i)||$({items:D(i)})}const[H,ct]=d.useState(null),L=d.useRef(null),tt=d.useRef(!0);d.useEffect(()=>(tt.current=!0,()=>{tt.current=!1}),[]);const[G,pt]=d.useState(!1),[Bt,q]=d.useState(null),[et,ft]=d.useState(""),[Dt,ht]=d.useState(null),[I,Ht]=d.useState();d.useEffect(()=>()=>{L.current&&URL.revokeObjectURL(L.current)},[]);function xt(){const i=ge(et);if(!i){ht(e("outfits.studio.importError"));return}ht(null),ft(""),Ht(i.colors),$({items:i.items,...i.bodyShape?{bodyShape:i.bodyShape}:{}}),F.success(e("outfits.studio.importSuccess",{count:i.items.length}))}async function Mt(i){if(!i||!c)return;if(q(null),!It.includes(i.type)){q(e("outfits.errors.unsupportedType"));return}if(i.size>xe){q(e("outfits.errors.tooLarge"));return}L.current&&URL.revokeObjectURL(L.current);const a=URL.createObjectURL(i);L.current=a,ct(a),pt(!0);try{const p=await me(i,c.identity);$({thumbnailHash:p})}catch(p){p instanceof O||nt(p,{flow:"outfit-thumbnail"}),q(e(p instanceof O?dt(p.code):"outfits.errors.generic")),L.current&&(URL.revokeObjectURL(L.current),L.current=null),ct(null)}finally{pt(!1)}}const[M,mt]=d.useState(!1),[Ut,gt]=d.useState(null),it=!!o&&o.name.trim().length>0&&o.name.length<=60,_t=!!o&&V(o.gradientFrom)&&V(o.gradientTo),bt=!!o&&o.items.some(i=>{const a=g.byKey.get(z(i));return!a||ae(a)}),yt=!!o&&it&&!!o.thumbnailHash&&_t&&bt&&o.items.length>=re&&o.items.length<=X;async function st(i){if(!(!c||!o||M)){mt(!0),gt(null);try{const a=await Rt({...o,published:i},c.identity,f?"create":"update");if(!tt.current)return;sessionStorage.removeItem(h),R(lt(a)),C(!1),zt(y),i&&!o.published?(be("Shop Outfit Published",{outfit_id:a.id,item_count:a.items.length}),F.success(e("outfits.studio.publishedToast"))):F.success(e("outfits.studio.saved")),f&&(y.setQueryData(["outfit",a.id,!0],a),j(`/outfits/${a.id}/edit`,{replace:!0}))}catch(a){a instanceof O||nt(a,{flow:"outfit-save"}),gt(e(a instanceof O?dt(a.code):"outfits.errors.generic"))}finally{mt(!1)}}}const Q=d.useMemo(()=>((o==null?void 0:o.items)??[]).map(i=>g.byKey.get(z(i))).filter(i=>!!i),[o,g.byKey]),jt=d.useMemo(()=>ne(Q),[Q]),Kt=d.useMemo(()=>{const i=de(Q);return i!=null&&i.itemId?z({contractAddress:i.contractAddress,itemId:i.itemId}):null},[Q]),Gt=(o==null?void 0:o.bodyShape)==="female"?le:(o==null?void 0:o.bodyShape)==="male"?ue:void 0;if(!c)return null;if(!o)return E?t.jsxs(N,{children:[t.jsx(U,{message:e("outfits.errors.generic")}),t.jsx(m,{variant:"white",onClick:()=>void Z(),children:e("outfits.detail.retry")})]}):!S&&u===null?t.jsxs(N,{"data-testid":"outfit-studio-missing",children:[t.jsx(k,{children:e("outfits.errors.notFound")}),t.jsx(m,{as:A,to:"/outfits/manage",variant:"white",children:e("outfits.studio.myOutfits")})]}):t.jsx(N,{"aria-busy":"true",children:t.jsx("span",{className:"spinner","aria-hidden":!0})});const vt=H??Lt(o.thumbnailHash),qt={...o,authorAddress:(c==null?void 0:c.address)??"",createdAt:0,updatedAt:0},Qt=o.items.reduce((i,a)=>{var p;return i+(((p=g.byKey.get(z(a)))==null?void 0:p.priceCredits)??0)},0);return t.jsxs(Pt,{"data-testid":"outfit-studio-editor",children:[t.jsxs(Wt,{children:[t.jsx(Me,{to:"/outfits/manage","aria-label":e("outfits.studio.myOutfits"),"data-testid":"outfit-studio-back",children:t.jsx(_,{name:"arrow-left",size:18})}),t.jsx(Ot,{children:f?e("outfits.studio.new"):e("outfits.studio.editTitle")}),t.jsx(At,{"data-state":o.published?"published":"draft",children:o.published?e("outfits.studio.publishedState"):e("outfits.studio.draft")})]}),t.jsxs(si,{children:[t.jsxs(oi,{children:[t.jsxs(ri,{"data-testid":"outfit-studio-preview",style:{background:ce(o)},children:[t.jsx(Se,{id:"outfit-studio-preview-frame",profile:"default",bodyShape:Gt,urns:jt,skin:I==null?void 0:I.skin,hair:I==null?void 0:I.hair,eyes:I==null?void 0:I.eyes,enabled:!g.isLoading}),jt.length===0&&!g.isLoading?t.jsx(ni,{children:e("outfits.studio.previewEmpty")}):null]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.bodyShape")}),t.jsx(di,{role:"group","aria-label":e("outfits.studio.bodyShape"),children:["unisex","male","female"].map(i=>t.jsx(li,{type:"button","data-selected":o.bodyShape===i||void 0,onClick:()=>$({bodyShape:i}),children:e(`outfits.studio.shape.${i}`)},i))})]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.gradient")}),t.jsx(ci,{children:["gradientFrom","gradientTo"].map(i=>t.jsxs(pi,{children:[t.jsx(fi,{type:"color",value:V(o[i])?o[i]:rt.from,"aria-label":e(i==="gradientFrom"?"outfits.studio.gradientTop":"outfits.studio.gradientBottom"),"data-testid":i==="gradientFrom"?"outfit-studio-gradient-from":"outfit-studio-gradient-to",onChange:a=>$({[i]:a.target.value.toLowerCase()})}),t.jsxs(hi,{children:[t.jsx("span",{children:e(i==="gradientFrom"?"outfits.studio.gradientTop":"outfits.studio.gradientBottom")}),t.jsx(xi,{value:o[i],maxLength:7,spellCheck:!1,placeholder:"#000000","aria-label":e(i==="gradientFrom"?"outfits.studio.gradientTopHex":"outfits.studio.gradientBottomHex"),"data-invalid":!V(o[i])||void 0,onChange:a=>{const p=a.target.value.trim().toLowerCase();$({[i]:p.startsWith("#")||p===""?p:`#${p}`})}})]})]},i))}),t.jsx(k,{children:e("outfits.studio.gradientHint")})]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.thumbnail")}),vt?t.jsx(ui,{"data-busy":G||void 0,children:t.jsx("img",{src:vt,alt:""})}):null,t.jsxs(gi,{as:"label",variant:"outline",size:"sm","data-busy":G||void 0,children:[G?e("outfits.studio.uploading"):e("outfits.studio.upload"),t.jsx("input",{type:"file",accept:It.join(","),hidden:!0,disabled:G,onChange:i=>{var a;return void Mt((a=i.target.files)==null?void 0:a[0])},"data-testid":"outfit-studio-thumb-input"})]}),t.jsx(k,{children:e("outfits.studio.thumbnailHint")}),t.jsx(U,{message:Bt,testId:"outfit-studio-thumb-error"})]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.cardPreview")}),t.jsx(mi,{"data-testid":"outfit-studio-card-preview",onClickCapture:i=>{i.preventDefault(),i.stopPropagation()},children:t.jsx(pe,{outfit:qt,resolution:g})})]})]}),t.jsxs(ai,{children:[t.jsxs(P,{children:[t.jsx(W,{htmlFor:"outfit-import",children:e("outfits.studio.import")}),t.jsxs(bi,{children:[t.jsx(St,{id:"outfit-import",value:et,spellCheck:!1,placeholder:e("outfits.studio.importPlaceholder"),onChange:i=>ft(i.target.value),onKeyDown:i=>{i.key==="Enter"&&xt()},"data-testid":"outfit-studio-import"}),t.jsx(m,{variant:"outline",size:"sm",onClick:xt,disabled:et.trim()==="","data-testid":"outfit-studio-import-apply",children:e("outfits.studio.importApply")})]}),t.jsx(k,{children:e("outfits.studio.importHint")}),t.jsx(U,{message:Dt,testId:"outfit-studio-import-error"})]}),t.jsxs(P,{children:[t.jsx(W,{htmlFor:"outfit-name",children:e("outfits.studio.name")}),t.jsx(St,{id:"outfit-name",value:o.name,maxLength:60,placeholder:e("outfits.studio.namePlaceholder"),onChange:i=>$({name:i.target.value}),"data-testid":"outfit-studio-name"})]}),t.jsxs(P,{children:[t.jsxs(W,{as:"span",children:[e("outfits.studio.items")," (",o.items.length,"/",X,")"]}),o.items.length===0?t.jsx(k,{children:e("outfits.studio.noItems")}):t.jsx(yi,{children:o.items.map(i=>{const a=z(i),p=g.byKey.get(a);return t.jsxs(ji,{"data-testid":"outfit-studio-selected","data-missing":!p||void 0,children:[p?t.jsx(vi,{src:p.thumbnail,alt:""}):t.jsx(wi,{className:g.isLoading?"skeleton":void 0,"aria-hidden":!0}),t.jsx($i,{className:p?void 0:"muted",children:p?p.name:g.isLoading?t.jsx(Ie,{className:"skeleton",width:96,"aria-hidden":!0}):e("outfits.card.unavailable")}),a===Kt?t.jsx(ki,{"data-testid":"outfit-studio-plays-in-preview",children:e("outfits.studio.playsInPreview")}):null,p?t.jsxs(Si,{children:[t.jsx(ot,{size:12}),t.jsx(at,{credits:p.priceCredits})]}):null,t.jsx(Ci,{type:"button","aria-label":e("outfits.studio.remove"),title:e("outfits.studio.remove"),onClick:()=>$({items:o.items.filter(Vt=>z(Vt)!==a)}),children:t.jsx(_,{name:"trash",size:16})})]},a)})}),o.items.length>0?t.jsxs(Ii,{"data-testid":"outfit-studio-total",children:[t.jsx("span",{children:e("outfits.detail.totalPrice")}),t.jsxs(Ti,{children:[t.jsx(ot,{size:14}),t.jsx(at,{credits:Qt})]})]}):null,o.items.length>=X?t.jsx(k,{children:e("outfits.studio.maxItems")}):null]}),t.jsx(Be,{selectedKeys:K,onPick:v,canPick:l})]})]}),t.jsxs(Ei,{"data-testid":"outfit-studio-savebar",children:[t.jsx(U,{message:Ut,testId:"outfit-studio-save-error"}),it?!yt&&!o.published?t.jsx(k,{"data-testid":"outfit-studio-publish-hint",children:!bt&&o.items.length>0?e("outfits.studio.needsWearable"):e("outfits.errors.notPublishable")}):null:t.jsx(k,{children:e("outfits.studio.needName")}),t.jsxs(Li,{children:[t.jsx(m,{variant:"outline","data-testid":"outfit-studio-save",disabled:M||!it,onClick:()=>void st(o.published),children:M?e("outfits.studio.saving"):e("outfits.studio.saveDraft")}),o.published?t.jsx(m,{variant:"white","data-testid":"outfit-studio-unpublish",disabled:M,onClick:()=>void st(!1),children:e("outfits.studio.unpublish")}):t.jsx(m,{variant:"white","data-testid":"outfit-studio-publish",disabled:M||!yt,onClick:()=>void st(!0),children:e("outfits.studio.publish")})]})]})]})}export{Vi as OutfitStudio,Vi as default};
557
+ //# sourceMappingURL=OutfitStudio-DXHZfbf9.js.map
@@ -1,4 +1,4 @@
1
- import{r as I,j as e}from"./react-57wE9FMW.js";import{s as i,a as t,V as Q,t as r,I as y,z as w,F as j,C as X,W as S}from"./index-C0EB4Nb3.js";import{m as k}from"./mana-matic-CEqvSwrJ.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new n.Error().stack;m&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[m]="746066b0-df40-486d-84d2-332fdf901519",n._sentryDebugIdIdentifier="sentry-dbid-746066b0-df40-486d-84d2-332fdf901519")}catch{}})();const Z="https://cdn.decentraland.org/@dcl/shop/1.17.1/_assets/credits-coin-DNt6YtOL.webp",ee=i.div`
1
+ import{r as I,j as e}from"./react-Ddn-9d83.js";import{s as i,a as t,V as Q,t as r,I as y,z as w,F as j,C as X,W as S}from"./index-BBS-v8LD.js";import{m as k}from"./mana-matic-CEqvSwrJ.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new n.Error().stack;m&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[m]="49b00d6f-26cb-45cb-8427-90233a8b8554",n._sentryDebugIdIdentifier="sentry-dbid-49b00d6f-26cb-45cb-8427-90233a8b8554")}catch{}})();const Z="https://cdn.decentraland.org/@dcl/shop/1.17.2-36157867735.commit-7431f7b/_assets/credits-coin-DNt6YtOL.webp",ee=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 24px;
@@ -71,7 +71,7 @@ import{r as I,j as e}from"./react-57wE9FMW.js";import{s as i,a as t,V as Q,t as
71
71
  flex-direction: column;
72
72
  gap: 32px;
73
73
  padding: 8px;
74
- `,de=i.p`
74
+ `,le=i.p`
75
75
  margin: 0;
76
76
  font-family: ${t.font.sans};
77
77
  font-weight: 600;
@@ -80,7 +80,7 @@ import{r as I,j as e}from"./react-57wE9FMW.js";import{s as i,a as t,V as Q,t as
80
80
  color: ${t.colors.text};
81
81
  overflow: hidden;
82
82
  text-overflow: ellipsis;
83
- `,le=i.div`
83
+ `,de=i.div`
84
84
  > div {
85
85
  font-family: ${t.font.sans};
86
86
  font-size: 10px;
@@ -366,5 +366,5 @@ import{r as I,j as e}from"./react-57wE9FMW.js";import{s as i,a as t,V as Q,t as
366
366
  font-size: 14px;
367
367
  line-height: 1.334;
368
368
  color: ${t.colors.text2};
369
- `;function ye({asset:n,priceCredits:m,priceCents:$,options:b,priceManaWei:U,balanceCredits:V,manaBalanceWei:Y,onBuy:G,onClose:H,busy:g=!1,notice:v}){const d=b.find(s=>s.method==="credits")??null,l=b.find(s=>s.method==="mana")??null,a=b.find(s=>s.method==="combined")??null,[z,C]=I.useState(()=>d?new Set(["credits"]):a?new Set(["credits","mana"]):l?new Set(["mana"]):new Set),u=!!d||!!a,c=!!l||!!a;I.useEffect(()=>{C(s=>{const o=new Set(s);return o.has("credits")&&!u&&o.delete("credits"),o.has("mana")&&!c&&o.delete("mana"),o.size===0&&(d?o.add("credits"):a?(o.add("credits"),o.add("mana")):l&&o.add("mana")),o.size===s.size&&[...o].every(K=>s.has(K))?s:o})},[u,c,d,a,l]);const p=z.has("credits"),x=z.has("mana"),h=p&&x?a?"combined":null:p?d?"credits":null:x&&l?"mana":null,q=h==="combined"&&a?a.credits:(d==null?void 0:d.credits)??Q($),J=h==="combined"&&a?a.manaWei:(l==null?void 0:l.manaWei)??U;function M(s){C(o=>{const f=new Set(o);return f.has(s)?f.delete(s):f.add(s),f})}return e.jsxs(ee,{children:[e.jsxs(te,{children:[e.jsx(ie,{children:r("buyModal.choosePayment")}),e.jsx(ne,{onClick:H,disabled:g,"aria-label":r("buyModal.close"),children:e.jsx(y,{name:"close",className:"ico"})})]}),e.jsxs(se,{children:[e.jsx(oe,{children:n.thumb}),e.jsxs(ae,{children:[e.jsxs("div",{children:[e.jsx(de,{title:n.name,children:n.name||r("buyModal.itemFallback")}),n.caption?e.jsx(le,{children:n.caption}):null]}),e.jsxs(re,{children:[e.jsx(w,{}),e.jsx("span",{children:j(m)})]})]})]}),e.jsxs(ce,{children:[e.jsxs(B,{type:"button","data-testid":"pay-with-credits","data-selected":p,"data-disabled":!u,disabled:g||!u,"aria-pressed":p,onClick:()=>M("credits"),children:[e.jsx(A,{children:e.jsx(L,{"data-checked":p,children:e.jsx(y,{name:"check",className:"ico"})})}),e.jsxs(P,{children:[e.jsxs(R,{children:[e.jsx(D,{children:e.jsx(N,{src:Z,w:32.582,h:34.401,alt:"","aria-hidden":!0})}),e.jsxs(E,{children:[e.jsx(T,{children:X.name}),e.jsxs(W,{children:[r("buyModal.creditsBalanceLabel"),e.jsx(w,{}),e.jsx(_,{children:j(V)})]})]})]}),e.jsx(O,{children:e.jsxs(F,{children:[e.jsx(w,{}),e.jsx("span",{children:j(q)})]})})]})]}),e.jsxs(B,{type:"button","data-testid":"pay-with-mana","data-selected":x,"data-disabled":!c,disabled:g||!c,"aria-pressed":x,onClick:()=>M("mana"),children:[e.jsx(A,{children:e.jsx(L,{"data-checked":x,children:e.jsx(y,{name:"check",className:"ico"})})}),e.jsxs(P,{children:[e.jsxs(R,{children:[e.jsx(D,{children:e.jsx(N,{src:k,w:35.328,h:35.328,alt:"","aria-hidden":!0})}),e.jsxs(E,{children:[e.jsx(T,{children:r("buyModal.methodMana")}),e.jsxs(W,{children:[r("buyModal.manaBalanceLabel"),e.jsx(xe,{src:k,alt:"","aria-hidden":!0}),e.jsx(_,{children:S(Y)})]})]})]}),e.jsx(O,{children:c?e.jsx(e.Fragment,{children:e.jsxs(F,{children:[e.jsx(he,{src:k,alt:"","aria-hidden":!0}),e.jsx("span",{children:S(J)})]})}):e.jsx(fe,{"data-testid":"mana-shortfall-note",children:r("buyModal.notEnoughMana")})})]})]})]}),v?e.jsx(me,{"data-testid":"price-changed",role:"status",children:v}):null,e.jsx(pe,{type:"button","data-testid":"confirm-payment",disabled:g||h===null,onClick:()=>h&&G(h),children:r("buyModal.buy")})]})}export{ye as P};
370
- //# sourceMappingURL=PaymentMethodStep-aQUg-E9d.js.map
369
+ `;function ye({asset:n,priceCredits:m,priceCents:$,options:u,priceManaWei:U,balanceCredits:V,manaBalanceWei:Y,onBuy:G,onClose:H,busy:g=!1,notice:v}){const l=u.find(s=>s.method==="credits")??null,d=u.find(s=>s.method==="mana")??null,a=u.find(s=>s.method==="combined")??null,[z,C]=I.useState(()=>l?new Set(["credits"]):a?new Set(["credits","mana"]):d?new Set(["mana"]):new Set),b=!!l||!!a,c=!!d||!!a;I.useEffect(()=>{C(s=>{const o=new Set(s);return o.has("credits")&&!b&&o.delete("credits"),o.has("mana")&&!c&&o.delete("mana"),o.size===0&&(l?o.add("credits"):a?(o.add("credits"),o.add("mana")):d&&o.add("mana")),o.size===s.size&&[...o].every(K=>s.has(K))?s:o})},[b,c,l,a,d]);const p=z.has("credits"),x=z.has("mana"),h=p&&x?a?"combined":null:p?l?"credits":null:x&&d?"mana":null,q=h==="combined"&&a?a.credits:(l==null?void 0:l.credits)??Q($),J=h==="combined"&&a?a.manaWei:(d==null?void 0:d.manaWei)??U;function M(s){C(o=>{const f=new Set(o);return f.has(s)?f.delete(s):f.add(s),f})}return e.jsxs(ee,{children:[e.jsxs(te,{children:[e.jsx(ie,{children:r("buyModal.choosePayment")}),e.jsx(ne,{onClick:H,disabled:g,"aria-label":r("buyModal.close"),children:e.jsx(y,{name:"close",className:"ico"})})]}),e.jsxs(se,{children:[e.jsx(oe,{children:n.thumb}),e.jsxs(ae,{children:[e.jsxs("div",{children:[e.jsx(le,{title:n.name,children:n.name||r("buyModal.itemFallback")}),n.caption?e.jsx(de,{children:n.caption}):null]}),e.jsxs(re,{children:[e.jsx(w,{}),e.jsx("span",{children:j(m)})]})]})]}),e.jsxs(ce,{children:[e.jsxs(B,{type:"button","data-testid":"pay-with-credits","data-selected":p,"data-disabled":!b,disabled:g||!b,"aria-pressed":p,onClick:()=>M("credits"),children:[e.jsx(A,{children:e.jsx(L,{"data-checked":p,children:e.jsx(y,{name:"check",className:"ico"})})}),e.jsxs(P,{children:[e.jsxs(R,{children:[e.jsx(D,{children:e.jsx(N,{src:Z,w:32.582,h:34.401,alt:"","aria-hidden":!0})}),e.jsxs(E,{children:[e.jsx(T,{children:X.name}),e.jsxs(W,{children:[r("buyModal.creditsBalanceLabel"),e.jsx(w,{}),e.jsx(_,{children:j(V)})]})]})]}),e.jsx(O,{children:e.jsxs(F,{children:[e.jsx(w,{}),e.jsx("span",{children:j(q)})]})})]})]}),e.jsxs(B,{type:"button","data-testid":"pay-with-mana","data-selected":x,"data-disabled":!c,disabled:g||!c,"aria-pressed":x,onClick:()=>M("mana"),children:[e.jsx(A,{children:e.jsx(L,{"data-checked":x,children:e.jsx(y,{name:"check",className:"ico"})})}),e.jsxs(P,{children:[e.jsxs(R,{children:[e.jsx(D,{children:e.jsx(N,{src:k,w:35.328,h:35.328,alt:"","aria-hidden":!0})}),e.jsxs(E,{children:[e.jsx(T,{children:r("buyModal.methodMana")}),e.jsxs(W,{children:[r("buyModal.manaBalanceLabel"),e.jsx(xe,{src:k,alt:"","aria-hidden":!0}),e.jsx(_,{children:S(Y)})]})]})]}),e.jsx(O,{children:c?e.jsx(e.Fragment,{children:e.jsxs(F,{children:[e.jsx(he,{src:k,alt:"","aria-hidden":!0}),e.jsx("span",{children:S(J)})]})}):e.jsx(fe,{"data-testid":"mana-shortfall-note",children:r("buyModal.notEnoughMana")})})]})]})]}),v?e.jsx(me,{"data-testid":"price-changed",role:"status",children:v}):null,e.jsx(pe,{type:"button","data-testid":"confirm-payment",disabled:g||h===null,onClick:()=>h&&G(h),children:r("buyModal.buy")})]})}export{ye as P};
370
+ //# sourceMappingURL=PaymentMethodStep-Ob8YI_SL.js.map