@dcl/shop 1.0.2-31061650925.commit-fa244eb → 1.0.2-31075138109.commit-b4b8f60

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 (191) hide show
  1. package/_assets/{Activity-DAMRT2bN.js → Activity-CNizYJay.js} +24 -24
  2. package/_assets/{AnimatedBackground-N_wcSf6D.js → AnimatedBackground-C1p4psE2.js} +2 -2
  3. package/_assets/Assets-BcQ10xPp.js +892 -0
  4. package/_assets/{Assets.styles-9R6ppWqo.js → Assets.styles-B9PWoIMZ.js} +80 -72
  5. package/_assets/{Authorizations-DCP2Yevg.js → Authorizations-C_xGdM-p.js} +1 -1
  6. package/_assets/Cart-DYZGi78I.js +706 -0
  7. package/_assets/{CircularProgress-BYXbDw8X.js → CircularProgress-B_hinbN9.js} +1 -1
  8. package/_assets/{Collection-CA94Ylrk.js → Collection-DTJYViBJ.js} +13 -13
  9. package/_assets/{CollectionCarousel-BkFV4le7.js → CollectionCarousel-DZxVlfxf.js} +183 -127
  10. package/_assets/{Confetti-D7bsXMqQ.js → Confetti-mgEJ457s.js} +1 -1
  11. package/_assets/Creator-BVn3jG76.js +307 -0
  12. package/_assets/{ErrorNotice-CCsvrT3H.js → ErrorNotice-CCUuPON0.js} +1 -1
  13. package/_assets/{ExchangeController-KIbY1TeV.js → ExchangeController-CXuE8lHA.js} +1 -1
  14. package/_assets/{Faq-YyrvPI25.js → Faq-Bkcjo8OM.js} +1 -1
  15. package/_assets/{GetCredits-gCz6CMY3.js → GetCredits-Bq6LvsYg.js} +16 -9
  16. package/_assets/{Grow-B6W2xyXd.js → Grow-DBDllnzs.js} +1 -1
  17. package/_assets/{HelpersUtil-BmHoBPAz.js → HelpersUtil-CTTzLGBA.js} +1 -1
  18. package/_assets/ItemDetail-CBafDPtx.js +3552 -0
  19. package/_assets/JumpInIcon-CfzbSVBF.js +1 -0
  20. package/_assets/LazyEmoteControls-PQ3Pg2sc.js +2 -0
  21. package/_assets/{LoadMore-ChGcAM1i.js → LoadMore-DY0yTnWX.js} +1 -1
  22. package/_assets/{ManaPricingBanner.styles-CZgGH3OR.js → ManaPricingBanner.styles-CLzKIrR0.js} +2 -2
  23. package/_assets/MyAssets-BuEVkMOy.js +396 -0
  24. package/_assets/{MyFavorites-B_oQzUR9.js → MyFavorites-5YJaSyop.js} +20 -17
  25. package/_assets/{NotFound-CjDp1Ys_.js → NotFound-1ks_XjFT.js} +1 -1
  26. package/_assets/{NotificationsBell-Dkr9JB0w.js → NotificationsBell-CPTnotbb.js} +1 -1
  27. package/_assets/OutfitDetail-N4whvhsJ.js +377 -0
  28. package/_assets/{OutfitPreview-J5m3e8Gl.js → OutfitPreview-D7BVurmj.js} +2 -2
  29. package/_assets/{OutfitStudio-xpf5tPAA.js → OutfitStudio-WKWXKKDM.js} +54 -54
  30. package/_assets/{StoreSettings-BkFED3xP.js → StoreSettings-CDOaTUdX.js} +21 -21
  31. package/_assets/Success-CAR1N5YA.js +353 -0
  32. package/_assets/{SwapController-DKvQsgHw.js → SwapController-DFi1XX34.js} +1 -1
  33. package/_assets/{Tooltip-BBYuQHQb.js → Tooltip-Cwe0Yraw.js} +1 -1
  34. package/_assets/{TradeService-CkbprpVw.js → TradeService-BaPRI5UX.js} +1 -1
  35. package/_assets/{W3MFrameProviderSingleton-6oL2Do5B.js → W3MFrameProviderSingleton-ZccF4Y9V.js} +3 -3
  36. package/_assets/{WebCryptoP256-6t0_XFco.js → WebCryptoP256-Jedmnano.js} +1 -1
  37. package/_assets/{authorizations-CbXH-W_L.js → authorizations-CAdQPCMI.js} +1 -1
  38. package/_assets/{basic-DSLXBfxu.js → basic-D7xW8zKi.js} +1 -1
  39. package/_assets/{biconomy-DKrndD59.js → biconomy-DSBuvNuK.js} +1 -1
  40. package/_assets/{builder-CVMQir9d.js → builder-0yNVIzVD.js} +1 -1
  41. package/_assets/{buy-gasless-BuzErI_K.js → buy-gasless-BqufOfFB.js} +1 -1
  42. package/_assets/{buy-BllmT-mt.js → buy-p0P2Zs7_.js} +1 -1
  43. package/_assets/{categories-Bjf-PXbG.js → categories-Q8-sA-ag.js} +73 -58
  44. package/_assets/{ccip-DI15Urx-.js → ccip-DARfTvaF.js} +1 -1
  45. package/_assets/{ccip-DyRqdu6M.js → ccip-DsdggBKA.js} +1 -1
  46. package/_assets/collectionPage.styles-DQbgY52P.js +32 -0
  47. package/_assets/{controller-BSVA5WKe.js → controller-Zsb3xV7z.js} +2 -2
  48. package/_assets/{core-CflNwoXZ.js → core-CkqGyNBY.js} +4 -4
  49. package/_assets/{createSvgIcon-BCgRSx6l.js → createSvgIcon-CZWQfAYI.js} +1 -1
  50. package/_assets/{custom-ekboJ4XZ.js → custom-Bxjd11Bv.js} +1 -1
  51. package/_assets/{data-capture-C00Edv8o.js → data-capture-C_h8eQxX.js} +1 -1
  52. package/_assets/{email-D7bKqbcO.js → email-CoonlLSw.js} +1 -1
  53. package/_assets/{embedded-wallet-BgZe_e0-.js → embedded-wallet-CZSkNi4z.js} +1 -1
  54. package/_assets/{emotion-styled.browser.esm-BsZP4P-B.js → emotion-styled.browser.esm-BbXohUUc.js} +1 -1
  55. package/_assets/{engine-Cnqy1olA.js → engine-C7WUjAl2.js} +1 -1
  56. package/_assets/{errors-BXmP5k3l.js → errors-BUHoc-y5.js} +1 -1
  57. package/_assets/{estimate-l1-fee-9ryWwmxC.js → estimate-l1-fee-UKT25sin.js} +1 -1
  58. package/_assets/{execute-CY4XWL-J.js → execute-CPTN8FKu.js} +2 -2
  59. package/_assets/{features-MG4MlDMD.js → features-D6748kEh.js} +1 -1
  60. package/_assets/{fetchTokenMetadata-qCCUs6iE.js → fetchTokenMetadata-CPl8yMoH.js} +2 -2
  61. package/_assets/{field.styles-DEvu6yNO.js → field.styles-dfnZT-br.js} +1 -1
  62. package/_assets/{get-ecosystem-wallet-info-DEImAnzE.js → get-ecosystem-wallet-info-CUrAtQ3b.js} +1 -1
  63. package/_assets/{getBalance-J5grsfOj.js → getBalance-CUN1GDsO.js} +1 -1
  64. package/_assets/{getNFT-Dm5aL9u2.js → getNFT-BDJqqYqb.js} +1 -1
  65. package/_assets/{getNFT-ByNh7y6k.js → getNFT-DFlqYNlO.js} +1 -1
  66. package/_assets/{grid.styles-CtrXwvIr.js → grid.styles-DODm717m.js} +1 -1
  67. package/_assets/{hashTypedData-BxKbqj1M.js → hashTypedData-D3XiRshp.js} +1 -1
  68. package/_assets/{hashTypedData-CgttwS7E.js → hashTypedData-bAoo1co0.js} +1 -1
  69. package/_assets/identity-icon-C8yAW_Gq.svg +8 -0
  70. package/_assets/{in-app-DF-fkkCZ.js → in-app-Dx0lK6d1.js} +1 -1
  71. package/_assets/{in-app-wallet-calls-D9z1I0uV.js → in-app-wallet-calls-H4N-BNbO.js} +1 -1
  72. package/_assets/{index-B5TGt1q8.js → index--4i0Lw-m.js} +1 -1
  73. package/_assets/{index-BlIt7KpC.js → index-1YcJ_AMk.js} +1 -1
  74. package/_assets/{index-Z6tclw43.js → index-4jPZivXl.js} +1 -1
  75. package/_assets/{index-DVJFosyx.js → index-5tC1hlhU.js} +1 -1
  76. package/_assets/{index-gmA5M3R1.js → index-AaJs3SZg.js} +1 -1
  77. package/_assets/{index-CjSsletQ.js → index-B8xkUObo.js} +1 -1
  78. package/_assets/{index-CuZ7SJno.js → index-BBYOztfl.js} +1 -1
  79. package/_assets/{index-zG9t0hxJ.js → index-BGKTqnNJ.js} +13 -13
  80. package/_assets/{index-DbCIWeQF.js → index-BPiB7yPn.js} +2 -2
  81. package/_assets/{index-BcQ98rhd.js → index-BTVtZV-4.js} +1 -1
  82. package/_assets/{index-DXpGefPo.js → index-BY8CUKv-.js} +1 -1
  83. package/_assets/{index-CAj85Mcv.js → index-BhTQhn8o.js} +1 -1
  84. package/_assets/{index-CszjRehO.js → index-BiAWEM1Y.js} +1 -1
  85. package/_assets/{index-BSmKDErh.js → index-BpsSIJDP.js} +1 -1
  86. package/_assets/{index--tlhUPhu.js → index-BzIFn1gg.js} +1 -1
  87. package/_assets/{index-DYQXXAKt.js → index-C-Qu30M3.js} +1 -1
  88. package/_assets/{index-C0xt2SIQ.js → index-C1TeecjZ.js} +1 -1
  89. package/_assets/{index-Dc_jl2yy.js → index-C3oB2anL.js} +1 -1
  90. package/_assets/{index-DRjhhI6j.js → index-CA_IOkJ5.js} +1 -1
  91. package/_assets/{index-D7foy_c1.js → index-CEwRybny.js} +3 -3
  92. package/_assets/{index-CKXjZ-Kd.js → index-CKW9ikJj.js} +1 -1
  93. package/_assets/{index-CgKz1pmK.js → index-CLKXx6rf.js} +1 -1
  94. package/_assets/{index-CpxvlmGa.js → index-CPsldIhs.js} +1 -1
  95. package/_assets/{index-B7sgFJOZ.js → index-CcYSrQZB.js} +1 -1
  96. package/_assets/{index-CbQYrUIv.js → index-Ci8wltbz.js} +1 -1
  97. package/_assets/{index-7eX0SEVb.js → index-CkTj0rBr.js} +1 -1
  98. package/_assets/{index-gbxeK1C-.js → index-Cwuc6_4X.js} +1 -1
  99. package/_assets/{index-BiSRuBrK.js → index-CzAnnYNM.js} +1 -1
  100. package/_assets/{index-D20327nw.js → index-D0g-gu9R.js} +1 -1
  101. package/_assets/{index-D5jN8YQk.js → index-D2Uzczc0.js} +2 -2
  102. package/_assets/{index-BcW0TBOx.js → index-DAnmGKDS.js} +1 -1
  103. package/_assets/{index-BYP7oMPZ.css → index-DB6GvbxL.css} +1 -1
  104. package/_assets/{index-BKC-pfo2.js → index-DFQi7e3d.js} +1 -1
  105. package/_assets/{index-C6RxhKIE.js → index-DGCl01Aq.js} +1 -1
  106. package/_assets/{index-BDPRDW4c.js → index-DLa23Ln5.js} +1 -1
  107. package/_assets/{index-DlewIau_.js → index-DPvEn0Us.js} +1 -1
  108. package/_assets/{index-C2s-_3dE.js → index-DQTv184M.js} +1 -1
  109. package/_assets/{index-Cbj1bJsc.js → index-DWpfZF5x.js} +1 -1
  110. package/_assets/{index-CuZGDrIM.js → index-Di8inWXw.js} +1 -1
  111. package/_assets/{index-CAzui_hj.js → index-DidVPhMo.js} +1 -1
  112. package/_assets/{index-Fn-DLeUg.js → index-DmMEC2q9.js} +1 -1
  113. package/_assets/{index-CkHS5p_Q.js → index-Ds0rafrR.js} +1 -1
  114. package/_assets/{index-lIySTE8R.js → index-DvCZhQ4M.js} +1 -1
  115. package/_assets/{index-BZNkhtbZ.js → index-DzcxBj5H.js} +1 -1
  116. package/_assets/{index-B7Mvi-Fg.js → index-FSR-tXEG.js} +3 -3
  117. package/_assets/{index-D7dTUoYt.js → index-H0_FOTS1.js} +526 -451
  118. package/_assets/{index-BybKxZca.js → index-IiqyrxDp.js} +3 -3
  119. package/_assets/{index-BsD9lKdu.js → index-P6CBRm57.js} +1 -1
  120. package/_assets/{index-B6xwPPMs.js → index-bQcvt8Yc.js} +1 -1
  121. package/_assets/{index-CIKoh-oU.js → index-eG9hxr4C.js} +1 -1
  122. package/_assets/{index-C5fUw5Ha.js → index-gFP2sFjS.js} +1 -1
  123. package/_assets/{index-BFgGvh7x.js → index-h6pTnuHR.js} +1 -1
  124. package/_assets/{index-D_a1Dj89.js → index-xIqXdiX9.js} +2 -2
  125. package/_assets/{index.es-6tzroQMk.js → index.es-Bezpyz9G.js} +1 -1
  126. package/_assets/{index.es-11O0MAa5.js → index.es-C5RZM_Pw.js} +4 -4
  127. package/_assets/{index.es-BOuSF7GL.js → index.es-CfiB2nB-.js} +1 -1
  128. package/_assets/invite-icon-Bz6lCTuB.svg +11 -0
  129. package/_assets/{localBatchGatewayRequest-CByVkxJB.js → localBatchGatewayRequest-BEJ4F0kB.js} +1 -1
  130. package/_assets/{networks-CLAHX11r.js → networks-sj6IF-js.js} +1 -1
  131. package/_assets/{onramp-X6DWjNa-.js → onramp-BubqiUY-.js} +1 -1
  132. package/_assets/{openzeppelin-DWrLU4le.js → openzeppelin-Chy7gkut.js} +1 -1
  133. package/_assets/{parseNft-C0F1eSr9.js → parseNft-kgJMEL-I.js} +2 -2
  134. package/_assets/{parseSignature-Cfa0bf3p.js → parseSignature-49G14sv1.js} +3 -3
  135. package/_assets/{parseSignature-B1BDTVRI.js → parseSignature-CJ8NsFbD.js} +1 -1
  136. package/_assets/{passkeys-Bq7ndAcy.js → passkeys-BvVbeMXS.js} +1 -1
  137. package/_assets/{pay-with-exchange-DU8q52b9.js → pay-with-exchange-Cc0055L1.js} +1 -1
  138. package/_assets/{qr-overlay-2pcgXiq0.js → qr-overlay-D10vlv1f.js} +1 -1
  139. package/_assets/{receive-UZ0WD1OR.js → receive-Cuwu3mHS.js} +1 -1
  140. package/_assets/{resolveImplementation-C5KIPshP.js → resolveImplementation-Dfj0L4Ai.js} +1 -1
  141. package/_assets/{rpc-q5JetAPC.js → rpc-CnHNtgxw.js} +1 -1
  142. package/_assets/{secp256k1-C79pdbKP.js → secp256k1-B3l9Rkyd.js} +1 -1
  143. package/_assets/{secp256k1-CYrjGZQC.js → secp256k1-CR-cgYPx.js} +1 -1
  144. package/_assets/{secp256k1-C35ing1J.js → secp256k1-Cc9GlXlU.js} +1 -1
  145. package/_assets/{send-_ymraJKw.js → send-CsVYUzzr.js} +1 -1
  146. package/_assets/{send-batch-transaction-DkYVZ1xj.js → send-batch-transaction-B6mk0_i_.js} +1 -1
  147. package/_assets/{send-eip712-transaction-BzZBuy56.js → send-eip712-transaction-BfUkLu-i.js} +2 -2
  148. package/_assets/{send-gasless-transaction-ByRZPFH6.js → send-gasless-transaction-BlLmbQ26.js} +2 -2
  149. package/_assets/{send-transaction-CUkh0xRu.js → send-transaction-D0wENyPk.js} +2 -2
  150. package/_assets/{sendMetaTransaction-De85nOcx.js → sendMetaTransaction-CnhA6a-k.js} +1 -1
  151. package/_assets/{sendRawTransaction-D5RykxPX.js → sendRawTransaction-BsyxcfGv.js} +3 -3
  152. package/_assets/{serializeTransaction-EYy94JNM.js → serializeTransaction-DVId8Rs6.js} +1 -1
  153. package/_assets/{session-proposal-Bf_Po3Sl.js → session-proposal-DUVy-dyq.js} +1 -1
  154. package/_assets/{session-request-DEDmAqA-.js → session-request-DSQfWHt6.js} +2 -2
  155. package/_assets/{signing-DqKP5KUZ.js → signing-Bd6C4KXQ.js} +3 -3
  156. package/_assets/{skeleton.styles-CVQk0siV.js → skeleton.styles-sGub2C43.js} +1 -1
  157. package/_assets/{socials-3pLrS-E7.js → socials-Bx-bKnd9.js} +1 -1
  158. package/_assets/{styled-8pFgehSd.js → styled-B8vpPdOK.js} +1 -1
  159. package/_assets/{swaps-C-dgABl9.js → swaps-BwNRCNkw.js} +1 -1
  160. package/_assets/{thirdweb-C6_KggNb.js → thirdweb-bDUpez-k.js} +3 -3
  161. package/_assets/{to-serializable-transaction-BWUJjZdO.js → to-serializable-transaction-CrmYGVf0.js} +2 -2
  162. package/_assets/{transactionReceipt-DmwkwkkP.js → transactionReceipt-Dwol6pvh.js} +1 -1
  163. package/_assets/{transactions-BSJMdJi4.js → transactions-CJMbROug.js} +1 -1
  164. package/_assets/{useCreditPacks-DQxqJepP.js → useCreditPacks-D_gG97Vg.js} +1 -1
  165. package/_assets/{useImportable-Co0AaRPY.js → useImportable-G1z46qnF.js} +1 -1
  166. package/_assets/{useInfiniteGrid-UHC0Jjfu.js → useInfiniteGrid-BHHEAbZ5.js} +1 -1
  167. package/_assets/{useTheme-B-55uBZP.js → useTheme-BxVqPd4e.js} +1 -1
  168. package/_assets/{verifyHash-BGJh7VH4.js → verifyHash-BtpuSxEE.js} +1 -1
  169. package/_assets/{w3m-modal-CjXODL26.js → w3m-modal-BJMDIvH7.js} +1 -1
  170. package/_assets/{w3m-modal-CwXD068w.js → w3m-modal-Co4ZJh9U.js} +1 -1
  171. package/_assets/{wait-for-tx-receipt-DRA8zhkS.js → wait-for-tx-receipt-CKXB2fpc.js} +1 -1
  172. package/_assets/{wallets-DOXRX-PZ.js → wallets-BNoMqUPP.js} +5 -5
  173. package/_assets/{web-connector-CXxJTFl4.js → web-connector-DxsgtKod.js} +3 -3
  174. package/_assets/world-icon-6xQ-PmmW.svg +7 -0
  175. package/_assets/{writeContract-BdEWRAPa.js → writeContract-PCmQXj1B.js} +1 -1
  176. package/_assets/{zoraTestnet-CzfX948o.js → zoraTestnet-sfJI3-xK.js} +1 -1
  177. package/index.html +11 -11
  178. package/package.json +2 -2
  179. package/_assets/Assets-7wgiv5MU.js +0 -866
  180. package/_assets/Cart-CpLaRQWb.js +0 -706
  181. package/_assets/Creator-DWKYxWTB.js +0 -305
  182. package/_assets/ItemDetail-DsP2PTh3.js +0 -3551
  183. package/_assets/LazyEmoteControls-lVtDIvME.js +0 -2
  184. package/_assets/MyAssets-jgTQywGo.js +0 -381
  185. package/_assets/OutfitDetail-BNlw-NwV.js +0 -334
  186. package/_assets/Success-lmJVKgtL.js +0 -280
  187. package/_assets/collectionPage.styles-BgKDi1Aa.js +0 -49
  188. package/_assets/governance-DnazlIjy.webp +0 -0
  189. package/_assets/identity-B4DXDuJP.webp +0 -0
  190. package/_assets/invite-BfwIhP2C.webp +0 -0
  191. package/_assets/world-B-9aPlxu.webp +0 -0
@@ -0,0 +1,706 @@
1
+ import{j as t,L as ke,r as T,b as Zt,a as ea}from"./react-BYHuwl8r.js";import{t as de,s as i,b as a,L as ce,ax as ta,ay as aa,J as sa,I as O,z as St,K as Le,x as na,X as H,am as ct,o as ia,q as ra,v as oa,az as ca,A as da,aA as la,an as ua,aB as ha,aC as dt,aD as pa,aE as ga,y as ma,aF as lt,Z as V,aG as ut,aH as xa,F as ae,r as fa,c as ht,aI as ya,C as ba,aJ as pt,aK as Re,aL as va,aM as xe,aN as fe,aO as gt,g as ye,f as wa,h as qe,aP as Ca}from"./index-H0_FOTS1.js";import{M as ja,S as ka,C as $a,H as Sa,a as Ma,T as Ta,X as Ia,b as Pa,B as za,c as Aa,d as mt,e as Ea,f as Ce,P as Mt,m as Ra,g as qa,h as Ba,i as _a,j as Fa,k as Tt,l as je,L as Wa,n as La,o as xt,p as ft,W as Ka,q as Na,r as Qa,s as Ua,A as Ha,t as Oa,u as Ga,v as Va,w as Da,x as Ja,y as Xa,z as Ya,D as Za,E as es,F as ts,G as as,I as ss,J as ns,K as is,N as rs,O as os,Q as Be,R as cs,U as ds,V as ls,Y as us,Z as yt,_ as bt,$ as hs,a0 as ps,a1 as gs}from"./CollectionCarousel-DZxVlfxf.js";import{f as ms,h as xs,a as fs,n as ys,i as bs,A as vs}from"./authorizations-CAdQPCMI.js";import{g as ws,j as _e}from"./buy-p0P2Zs7_.js";import{b as Cs,w as js,S as vt,G as ks}from"./buy-gasless-BqufOfFB.js";import{u as $s,M as Ss,R as be,r as Ms,c as Ts,p as wt}from"./useCreditPacks-D_gG97Vg.js";import{i as Is,a as Ps}from"./errors-BUHoc-y5.js";import{E as zs}from"./ErrorNotice-CCUuPON0.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-CnhA6a-k.js";const{colors:se,radius:As}=de,Es=i.div`
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ gap: 8px;
6
+ width: 100%;
7
+ `,Rs=i.span`
8
+ font-size: 16px;
9
+ line-height: 22px;
10
+ color: ${se.text2};
11
+ text-transform: capitalize;
12
+ white-space: nowrap;
13
+ `,qs=i.div`
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: 12px;
17
+ /* The list is the modal's elastic region: inside a viewport-capped card it gives up height first, so
18
+ the pack picker, total and Cancel/Buy below it stay on screen without scrolling. The floor is an
19
+ explicit ~one row because a scroll container's automatic minimum size is zero — it would otherwise
20
+ collapse to nothing on a short screen. */
21
+ min-height: 120px;
22
+ max-height: 360px;
23
+ overflow-y: auto;
24
+ width: 100%;
25
+ scrollbar-width: thin;
26
+ scrollbar-color: #a2a2a2 ${se.media};
27
+
28
+ &::-webkit-scrollbar {
29
+ width: 8px;
30
+ }
31
+ &::-webkit-scrollbar-track {
32
+ background: ${se.media};
33
+ border-radius: 10px;
34
+ }
35
+ &::-webkit-scrollbar-thumb {
36
+ background: #a2a2a2;
37
+ border-radius: ${As.btn};
38
+ }
39
+ `,Bs=i.span`
40
+ margin-left: 8px;
41
+ font-size: 13px;
42
+ font-weight: 600;
43
+ color: ${se.muted};
44
+ `,_s=i.div`
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: space-between;
48
+ gap: 12px;
49
+ padding: 0 0 12px;
50
+ font-size: 14px;
51
+ color: ${se.muted};
52
+
53
+ & strong {
54
+ display: inline-flex;
55
+ align-items: center;
56
+ gap: 6px;
57
+ font-size: 20px;
58
+ font-weight: 700;
59
+ color: ${se.text};
60
+ }
61
+ `;function Fs(o){const{phase:l,balanceCredits:P,onClose:z}=o,W=l==="processing",D=l==="error"?a("cartCheckout.errorTitle"):l==="nofunds"?a("cartCheckout.titleNoFunds"):l==="choose"?a("buyModal.choosePayment"):a("cartCheckout.titleBuy"),J=l==="processing";return t.jsxs(ja,{role:"dialog","aria-modal":"true","aria-label":a("cartCheckout.dialogAria"),children:[t.jsx(ka,{onClick:W?void 0:z,"aria-hidden":!0}),t.jsxs($a,{"data-tall":J||void 0,children:[t.jsxs(Sa,{children:[t.jsxs(Ma,{children:[t.jsx(Ta,{children:D}),!W&&t.jsx(Ia,{onClick:z,"aria-label":a("buyModal.close"),children:t.jsx(Pa,{})})]}),t.jsxs(za,{children:[t.jsx(Aa,{children:l==="nofunds"?a("buyModal.dclBalance"):a("buyModal.myCreditsBalance")}),t.jsx(mt,{}),t.jsx(Ea,{children:ce(P)})]})]}),l==="choose"&&t.jsxs(Ce,{children:[t.jsxs(_s,{children:[t.jsx("span",{children:a("cart.purchaseSummary")}),t.jsxs("strong",{children:[t.jsx(mt,{}),ce(o.totalCredits??0)]})]}),t.jsx(Mt,{options:o.options??[],totalCents:o.totalCents??0,onPay:o.onPay??(()=>{}),rateNote:(()=>{const A=Ra(o.totalCents??0,o.totalManaWei??0n);return A!=null?a("buyModal.manaRate",{mana:A.toLocaleString("en",{maximumFractionDigits:2})}):null})()})]}),l==="processing"&&t.jsx(Ws,{stage:o.stage??"reserving",step:o.step??1,total:o.total??1,isSelfCustody:!!o.isSelfCustody,signatures:o.signatures}),l==="nofunds"&&t.jsx(Ls,{lines:o.lines??[],shortfallCredits:o.shortfallCredits??0,packs:o.packs??[],selectedPack:o.selectedPack??"",onSelectPack:o.onSelectPack??(()=>{}),onBuyPacks:o.onBuyPacks??(()=>{}),onCancel:z}),l==="error"&&t.jsxs(Ce,{children:[t.jsxs(qa,{"data-testid":"buy-error",children:[t.jsx(Ba,{src:_a,alt:"",width:64,height:80}),t.jsxs(Fa,{children:[t.jsx("b",{children:a("cartCheckout.errorHeadline")})," ",o.message??a("cartCheckout.errorBody")]})]}),t.jsxs(Tt,{children:[t.jsx(je,{"data-variant":"outline",onClick:z,children:a("buyModal.cancel")}),t.jsx(je,{"data-variant":"purple",onClick:o.onRetry??z,children:a("cartCheckout.tryAgain")})]})]})]})]})}function Ws({stage:o,step:l,total:P,isSelfCustody:z,signatures:W}){const D=o==="reserving",J=P>0?Math.min(100,Math.round(l/P*100)):0,A=z&&W&&W.total>1,ne=o==="awaiting-signature"?z?A?a("cartCheckout.confirmMultiple",{current:W.current,total:W.total}):a("buyModal.confirmToContinue"):a("buyModal.completingTransaction"):o==="settling"?a("buyModal.completingTransaction"):a("cartCheckout.preparing");return t.jsxs(Ce,{"data-processing":!0,children:[t.jsx(Wa,{src:ta,alt:"",width:61,height:61}),t.jsx(La,{children:ne}),D?t.jsxs(Es,{children:[t.jsx(xt,{"aria-hidden":!0,children:t.jsx(ft,{"data-step":!0,style:{width:`${J}%`}})}),P>1?t.jsxs(Rs,{children:[l,"/",P]}):null]}):t.jsx(xt,{"aria-hidden":!0,children:t.jsx(ft,{})})]})}function Ls({lines:o,shortfallCredits:l,packs:P,selectedPack:z,onSelectPack:W,onBuyPacks:D,onCancel:J}){const A=P.find(n=>n.id===z),ne=o.reduce((n,K)=>n+(K.quantity??1),0);return t.jsxs(Ce,{children:[t.jsxs(Ka,{"data-testid":"nofunds-warning",children:[t.jsx(Na,{}),t.jsxs(Qa,{children:[t.jsx("b",{children:a("buyModal.insufficientFunds")})," ",a("buyModal.warningNeedToBuy")," ",t.jsx("b",{children:a("buyModal.warningCreditsAmount",{count:Math.max(0,l)})})," ",a("buyModal.warningToPurchase",{count:ne}),t.jsx("br",{}),t.jsx(Ua,{href:aa("/credits"),target:"_blank",rel:"noopener noreferrer",children:a("buyModal.warningLearnMore")})]})]}),t.jsx(qs,{children:o.map(n=>{const K=n.quantity??1;return t.jsxs(Ha,{children:[t.jsx(Oa,{children:n.item.thumbnail?t.jsx("img",{src:n.item.thumbnail,alt:""}):null}),t.jsxs(Ga,{children:[t.jsxs("div",{children:[t.jsxs(Va,{title:n.item.name,children:[n.item.name||a("buyModal.itemFallback"),K>1?t.jsx(Bs,{children:a("cartCheckout.qty",{count:K})}):null]}),n.item.creator?t.jsx(Da,{address:n.item.creator}):null]}),t.jsxs(Ja,{children:[t.jsx(Xa,{}),t.jsx("span",{children:ce(n.priceCredits*K)})]})]})]},n.item.id)})}),t.jsx(Ya,{children:P.map(n=>{const K=n.id===z;return t.jsxs(Za,{"data-testid":"credit-pack","data-on":K||void 0,onClick:()=>W(n.id),children:[t.jsx(es,{src:ts,alt:""}),t.jsx(as,{children:ce(n.credits)}),t.jsxs(ss,{children:["($",n.usd.toFixed(2),")"]})]},n.id)})}),t.jsxs(ns,{children:[t.jsxs(is,{children:[t.jsx(rs,{}),t.jsx("span",{children:ce((A==null?void 0:A.credits)??0)})]}),t.jsxs(os,{children:["$",((A==null?void 0:A.usd)??0).toFixed(2)]})]}),t.jsxs(Tt,{children:[t.jsx(je,{"data-variant":"outline",onClick:J,children:a("buyModal.cancel")}),t.jsx(je,{"data-variant":"gradient",onClick:D,children:a("buyModal.buy")})]})]})}const{colors:r,gradients:Ks,radius:te}=de,It="@media (max-width: 1080px)",I="@media (max-width: 880px)",Ct=i.div`
62
+ max-width: 1510px;
63
+ margin: 0 auto;
64
+ /* Grows into the page's leftover height and passes it down to Upsell, so the white cross-sell band ends at
65
+ the footer rather than leaving a gray strip. Needs .page[data-route="/cart"] to be a flex column. */
66
+ width: 100%;
67
+ flex: 1 0 auto;
68
+ display: flex;
69
+ flex-direction: column;
70
+
71
+ ${I} {
72
+ padding-bottom: 188px; /* room for the fixed summary bar */
73
+ }
74
+ `,jt=i.button`
75
+ display: inline-flex;
76
+ align-items: center;
77
+ gap: 6px;
78
+ margin: 0 0 16px;
79
+ padding: 0;
80
+ border: 0;
81
+ background: none;
82
+ color: ${r.text2};
83
+ font-size: 14px;
84
+ font-weight: 600;
85
+ letter-spacing: 0.02em;
86
+ text-transform: uppercase;
87
+ cursor: pointer;
88
+ transition: color 0.15s ease;
89
+
90
+ &:hover {
91
+ color: ${r.accent};
92
+ }
93
+ & .ico {
94
+ width: 18px;
95
+ height: 18px;
96
+ }
97
+
98
+ ${I} {
99
+ display: none;
100
+ }
101
+ `,Ns=i.div`
102
+ display: grid;
103
+ grid-template-columns: minmax(0, 1fr) 615px;
104
+ gap: 24px;
105
+ align-items: start;
106
+
107
+ ${It} {
108
+ grid-template-columns: 1fr;
109
+ }
110
+ `,kt=i.div`
111
+ position: relative;
112
+ /* The gray band is 733px in Figma (1553-317103) — taller than the panels inside it, deliberately. Without
113
+ this it collapsed to the panels' height, and the page shell's own viewport-filling min-height then padded
114
+ the page out BELOW the cross-sell, so a strip of gray showed under "You might also like" instead of the
115
+ footer. Giving the band its designed height puts the leftover space where the design wants it. */
116
+ min-height: 733px;
117
+ /* Gray below the panels so the band never hugs the last card: Figma's band runs y152–950 with the
118
+ content ending at 854. The min-height above only covers a SHORT cart — once the list outgrows it
119
+ the band tracks the content, and without this padding it would butt straight into the purple. */
120
+ padding-bottom: 96px;
121
+
122
+ &::before {
123
+ content: '';
124
+ position: absolute;
125
+ top: -28px;
126
+ bottom: 0;
127
+ left: 50%;
128
+ width: 100vw;
129
+ transform: translateX(-50%);
130
+ background: ${r.media};
131
+ z-index: 0;
132
+ }
133
+ & > * {
134
+ position: relative;
135
+ z-index: 1;
136
+ }
137
+
138
+ ${I} {
139
+ /* The single-column layout is already taller than the desktop band, and the fixed summary bar sits over
140
+ the bottom of it — a floor here would only add empty gray. */
141
+ min-height: 0;
142
+
143
+ /* The fixed summary bar already reserves room at the bottom on mobile (see Checkout). */
144
+ padding-bottom: 32px;
145
+
146
+ &::before {
147
+ top: -16px; /* .page's mobile padding */
148
+ }
149
+ }
150
+ `,Qs=i.div`
151
+ min-width: 0;
152
+ display: flex;
153
+ flex-direction: column;
154
+ gap: 12px;
155
+ `,Us=i.div`
156
+ display: flex;
157
+ align-items: center;
158
+ justify-content: space-between;
159
+ gap: 12px;
160
+ background: ${r.white};
161
+ border-radius: 16px;
162
+ padding: 12px 12px 12px 24px;
163
+
164
+ ${I} {
165
+ gap: 8px;
166
+ padding: 12px;
167
+ }
168
+ `,Pt=i.section`
169
+ min-width: 0;
170
+ background: ${r.white};
171
+ border-radius: 16px;
172
+ padding: 24px;
173
+
174
+ ${I} {
175
+ padding: 16px;
176
+ }
177
+ `,Hs=i(Pt)`
178
+ display: flex;
179
+ flex-direction: column;
180
+ align-items: center;
181
+ justify-content: center;
182
+ gap: 24px;
183
+ min-height: 420px;
184
+ padding: 48px 16px;
185
+ text-align: center;
186
+ color: ${r.text};
187
+
188
+ ${de.media.maxWidth("mobile")} {
189
+ min-height: 320px;
190
+ padding: 32px 16px;
191
+ }
192
+ `,Os=i.div`
193
+ display: flex;
194
+ flex-direction: column;
195
+ align-items: center;
196
+ gap: 12px;
197
+ padding-bottom: 16px;
198
+ `,Gs=i.p`
199
+ margin: 0;
200
+ font-size: 24px;
201
+ font-weight: 700;
202
+ line-height: 1.6;
203
+
204
+ ${de.media.maxWidth("mobile")} {
205
+ font-size: 20px;
206
+ }
207
+ `,Vs=i.p`
208
+ margin: 0;
209
+ font-size: 20px;
210
+ font-weight: 400;
211
+ line-height: 1.6;
212
+
213
+ ${de.media.maxWidth("mobile")} {
214
+ font-size: 16px;
215
+ }
216
+ `,Ds=i(ke)`
217
+ display: inline-flex;
218
+ align-items: center;
219
+ justify-content: center;
220
+ width: 310px;
221
+ max-width: 100%;
222
+ height: 56px;
223
+ padding: 0 12px;
224
+ border-radius: ${te.card};
225
+ background: ${r.accent};
226
+ color: ${r.softWhite};
227
+ font-size: 15px;
228
+ font-weight: 600;
229
+ line-height: 24px;
230
+ letter-spacing: 0.46px;
231
+ text-transform: uppercase;
232
+ text-decoration: none;
233
+ transition: background 0.15s ease;
234
+
235
+ &:hover {
236
+ background: ${r.accentHover};
237
+ }
238
+ &:focus-visible {
239
+ outline: 2px solid ${r.accent};
240
+ outline-offset: 2px;
241
+ }
242
+ `,Js=i.button`
243
+ display: none;
244
+
245
+ ${I} {
246
+ display: inline-flex;
247
+ align-items: center;
248
+ flex-shrink: 0;
249
+ border: 0;
250
+ background: none;
251
+ padding: 0;
252
+ color: ${r.text};
253
+ cursor: pointer;
254
+
255
+ & .ico {
256
+ width: 20px;
257
+ height: 20px;
258
+ }
259
+ }
260
+ `,Xs=i.h1`
261
+ margin: 0;
262
+ font-size: 14px;
263
+ font-weight: 600;
264
+ line-height: 1.57;
265
+ color: ${r.text};
266
+
267
+ ${I} {
268
+ flex: 1;
269
+ min-width: 0;
270
+ font-size: 16px;
271
+ }
272
+ `,Ys=i.button`
273
+ display: inline-flex;
274
+ align-items: center;
275
+ justify-content: center;
276
+ gap: 8px;
277
+ height: 40px;
278
+ padding: 0 12px;
279
+ border: 2px solid ${r.text2};
280
+ border-radius: ${te.btn};
281
+ background: none;
282
+ color: ${r.text2};
283
+ font-size: 13px;
284
+ font-weight: 600;
285
+ line-height: 24px;
286
+ letter-spacing: 0.46px;
287
+ text-transform: uppercase;
288
+ white-space: nowrap;
289
+ cursor: pointer;
290
+ transition:
291
+ background 0.15s ease,
292
+ filter 0.15s ease;
293
+
294
+ /* Mixed from currentColor so the wash cannot drift from the border colour. */
295
+ &:hover:not(:disabled) {
296
+ background: color-mix(in srgb, currentColor 6%, transparent);
297
+ }
298
+ &:active:not(:disabled) {
299
+ filter: brightness(0.97);
300
+ }
301
+ &:disabled {
302
+ opacity: 0.55;
303
+ cursor: default;
304
+ }
305
+
306
+ ${I} {
307
+ height: 36px;
308
+ padding: 0 10px;
309
+ font-size: 12px;
310
+ }
311
+ `,Zs=i.div`
312
+ display: flex;
313
+ flex-direction: column;
314
+ gap: 24px;
315
+ `,en=i.div`
316
+ position: relative;
317
+ display: flex;
318
+ align-items: stretch;
319
+ gap: 12px;
320
+ background: ${r.white};
321
+ border: 1px solid ${r.gray4};
322
+ border-radius: ${te.card};
323
+ overflow: hidden;
324
+
325
+ &[data-unavailable] [data-thumb] {
326
+ opacity: 0.5;
327
+ }
328
+ &[data-unavailable] [data-check] {
329
+ display: none;
330
+ }
331
+ &[data-unavailable] [data-desc] {
332
+ opacity: 0.7;
333
+ }
334
+ `,tn=i.div`
335
+ position: relative;
336
+ flex-shrink: 0;
337
+ width: 137.5px;
338
+ height: 137px;
339
+ background: ${r.media};
340
+ border-radius: ${te.card};
341
+ display: grid;
342
+ place-items: center;
343
+ overflow: hidden;
344
+
345
+ & img {
346
+ width: 83%;
347
+ height: 83%;
348
+ object-fit: contain;
349
+ filter: drop-shadow(0.56px 2.25px 2.8px rgba(0, 0, 0, 0.1));
350
+ }
351
+
352
+ ${I} {
353
+ width: 120px;
354
+ height: 120px;
355
+ }
356
+ `,an=i(ke)`
357
+ position: absolute;
358
+ inset: 0;
359
+ display: grid;
360
+ place-items: center;
361
+ `,sn=i.span`
362
+ position: absolute;
363
+ top: 7.5px;
364
+ left: 7.5px;
365
+ width: 20px;
366
+ height: 20px;
367
+ border-radius: 50%;
368
+ background: #34ce77;
369
+ display: grid;
370
+ place-items: center;
371
+ `,nn=i.div`
372
+ flex: 1;
373
+ min-width: 0;
374
+ display: flex;
375
+ flex-direction: column;
376
+ justify-content: space-between;
377
+ gap: 8px;
378
+ padding: 16px 8px;
379
+
380
+ ${I} {
381
+ padding: 12px 4px 12px 0;
382
+ }
383
+ `,rn=i.div`
384
+ display: flex;
385
+ flex-direction: column;
386
+ gap: 4px;
387
+ min-width: 0;
388
+ padding-right: 64px; /* clear the top-right favourite + remove group */
389
+ `,zt=Le`
390
+ display: block;
391
+ font-size: 16px;
392
+ font-weight: 600;
393
+ line-height: 1.2;
394
+ color: ${r.text};
395
+ text-decoration: none;
396
+ overflow: hidden;
397
+ text-overflow: ellipsis;
398
+ white-space: nowrap;
399
+
400
+ a&:hover {
401
+ color: ${r.accent};
402
+ }
403
+
404
+ ${I} {
405
+ white-space: normal;
406
+ display: -webkit-box;
407
+ -webkit-line-clamp: 2;
408
+ line-clamp: 2;
409
+ -webkit-box-orient: vertical;
410
+ }
411
+ `,on=i.div`
412
+ ${zt};
413
+ `,cn=i(ke)`
414
+ ${zt};
415
+ `,dn=i(sa)`
416
+ font-size: 10px;
417
+ line-height: 1.43;
418
+ color: ${r.muted};
419
+
420
+ & [data-avatar] {
421
+ display: none;
422
+ }
423
+ & [data-testid='creator-name'] {
424
+ font-size: 10px;
425
+ line-height: 1.43;
426
+ }
427
+ `,ln=i.div`
428
+ display: flex;
429
+ align-items: center;
430
+ justify-content: space-between;
431
+ gap: 12px;
432
+ padding-right: 8px;
433
+ `,un=i.div`
434
+ display: inline-flex;
435
+ align-items: center;
436
+ gap: 8px;
437
+ padding: 6px;
438
+ border: 0.5px solid ${r.muted2};
439
+ border-radius: ${te.pill};
440
+ `,$t=i.button`
441
+ display: grid;
442
+ place-items: center;
443
+ width: 16px;
444
+ height: 16px;
445
+ padding: 0;
446
+ border: 0;
447
+ background: none;
448
+ color: ${r.text};
449
+ cursor: pointer;
450
+
451
+ &:disabled {
452
+ color: ${r.muted2};
453
+ cursor: default;
454
+ }
455
+ `,hn=i.span`
456
+ min-width: 12px;
457
+ font-size: 14px;
458
+ font-weight: 500;
459
+ line-height: 1.2;
460
+ color: ${r.text};
461
+ text-align: center;
462
+ `,pn=i.div`
463
+ display: inline-flex;
464
+ align-items: center;
465
+ gap: 4px;
466
+ /* Always right-aligned: with a stepper present space-between handles it; for secondary/unique lines
467
+ (no stepper) the auto margin keeps the lone price on the right instead of falling to the left. */
468
+ margin-left: auto;
469
+ font-size: 24px;
470
+ font-weight: 600;
471
+ color: ${r.text2};
472
+
473
+ ${I} {
474
+ font-size: 20px;
475
+ }
476
+ `,gn=i(St)`
477
+ width: 24px;
478
+ height: 24px;
479
+ background: ${r.text};
480
+
481
+ ${I} {
482
+ width: 20px;
483
+ height: 20px;
484
+ }
485
+ `,mn=i.span`
486
+ margin-left: 6px;
487
+ font-size: 14px;
488
+ font-weight: 500;
489
+ color: ${r.muted};
490
+ text-decoration: line-through;
491
+ `,xn=i.div`
492
+ position: absolute;
493
+ top: 9px;
494
+ right: 7px;
495
+ display: flex;
496
+ align-items: flex-start;
497
+ gap: 12px;
498
+ `,fn=i.span`
499
+ display: inline-flex;
500
+ align-items: center;
501
+ gap: 4px;
502
+ font-size: 12px;
503
+ font-weight: 600;
504
+ line-height: 1;
505
+ text-transform: uppercase;
506
+ color: ${r.text2};
507
+ `,yn=i(O)`
508
+ color: #f48221;
509
+ `,bn=i(ke)`
510
+ font-size: 12px;
511
+ font-weight: 600;
512
+ line-height: 24px;
513
+ letter-spacing: 0.46px;
514
+ text-transform: uppercase;
515
+ text-decoration: underline;
516
+ color: ${r.accent};
517
+
518
+ &:hover {
519
+ color: ${r.accentHover};
520
+ }
521
+ &:focus-visible {
522
+ outline: 2px solid ${r.accent};
523
+ outline-offset: 2px;
524
+ }
525
+ `,vn=i.span`
526
+ align-self: flex-start;
527
+ display: inline-flex;
528
+ align-items: center;
529
+ gap: 4px;
530
+ padding: 2px 4px;
531
+ border-radius: ${te.chip};
532
+ background: #f4e9ff;
533
+ font-size: 10px;
534
+ font-weight: 400;
535
+ line-height: 14px;
536
+ color: ${r.text};
537
+ `,wn=i(O)`
538
+ width: 11.31px;
539
+ height: 10.94px;
540
+ background: ${r.text};
541
+ `,At=Le`
542
+ display: grid;
543
+ place-items: center;
544
+ width: 24px;
545
+ height: 24px;
546
+ padding: 0;
547
+ border: 0;
548
+ background: none;
549
+ color: ${r.muted};
550
+ cursor: pointer;
551
+ transition: color 0.12s ease;
552
+
553
+ &:disabled {
554
+ opacity: 0.5;
555
+ cursor: default;
556
+ }
557
+ `,Cn=i.button`
558
+ ${At};
559
+
560
+ &:hover:not(:disabled) {
561
+ color: ${r.text};
562
+ }
563
+ &[data-on] {
564
+ color: ${r.dclRed};
565
+ }
566
+ `,jn=i.button`
567
+ ${At};
568
+
569
+ &:hover:not(:disabled) {
570
+ color: ${r.dclRed};
571
+ }
572
+ `,kn=i.div`
573
+ display: flex;
574
+ gap: 20px;
575
+ margin-top: 16px;
576
+
577
+ & .link {
578
+ font-size: 13px;
579
+ color: ${r.muted};
580
+ font-weight: 600;
581
+ }
582
+ & .link:hover:not(:disabled) {
583
+ color: ${r.text};
584
+ }
585
+ `,$n=i.aside`
586
+ position: sticky;
587
+ top: 172px;
588
+ display: flex;
589
+ flex-direction: column;
590
+ background: ${r.white};
591
+ box-shadow: 0 1px 3px rgba(22, 21, 24, 0.06);
592
+ border-radius: 16px;
593
+ padding: 16px;
594
+
595
+ ${It} {
596
+ position: static;
597
+ }
598
+ ${I} {
599
+ position: fixed;
600
+ left: 0;
601
+ right: 0;
602
+ top: auto;
603
+ bottom: 0;
604
+ z-index: 30;
605
+ border: 0;
606
+ border-radius: 16px 16px 0 0;
607
+ box-shadow: 0 -4px 20px rgba(22, 21, 24, 0.12);
608
+ }
609
+ `,Sn=i.h2`
610
+ margin: 0 0 24px;
611
+ padding-bottom: 16px;
612
+ border-bottom: 1px solid ${r.gray4};
613
+ font-size: 24px;
614
+ font-weight: 600;
615
+ color: ${r.text};
616
+
617
+ ${I} {
618
+ margin-bottom: 12px;
619
+ padding-bottom: 12px;
620
+ }
621
+ `,Mn=i.div`
622
+ display: flex;
623
+ flex-direction: column;
624
+ gap: 12px;
625
+ `,Tn=i.div`
626
+ display: flex;
627
+ align-items: flex-start;
628
+ justify-content: space-between;
629
+ gap: 12px;
630
+ `,In=i.span`
631
+ font-size: 14px;
632
+ font-weight: 600;
633
+ line-height: 1.57;
634
+ color: ${r.muted1};
635
+ `,Pn=i.span`
636
+ display: inline-flex;
637
+ align-items: center;
638
+ gap: 8px;
639
+ font-size: 24px;
640
+ font-weight: 700;
641
+ color: ${r.text};
642
+ `,zn=i.span`
643
+ display: flex;
644
+ flex-direction: column;
645
+ align-items: flex-end;
646
+ justify-content: center;
647
+ gap: 4px;
648
+ `;i.span`
649
+ font-size: 12px;
650
+ font-weight: 400;
651
+ line-height: 1;
652
+ color: ${r.muted};
653
+ `;const An=i(St)`
654
+ width: 30px;
655
+ height: 30px;
656
+ background: ${r.text};
657
+ -webkit-mask-size: 24px 24px;
658
+ mask-size: 24px 24px;
659
+ -webkit-mask-position: left center;
660
+ mask-position: left center;
661
+ `;i.button`
662
+ width: 100%;
663
+ height: 56px;
664
+ border: 0;
665
+ border-radius: ${te.btn};
666
+ background: ${Ks.buyBtn};
667
+ color: ${r.softWhite};
668
+ font-size: 15px;
669
+ font-weight: 600;
670
+ letter-spacing: 0.046em;
671
+ text-transform: uppercase;
672
+ cursor: pointer;
673
+ transition: background-image 0.15s ease;
674
+
675
+ /* Primary hover/pressed is the solid Primary red (Figma 738:53252 / 738:53262) — the gradient is
676
+ the RESTING fill only. Painted as a flat GRADIENT, not a background-color: the shorthand can't
677
+ interpolate background-image, so gradient -> colour dropped the image midway while the colour was
678
+ still half transparent and the button visibly blinked. Same property both ends = a clean swap. */
679
+ &:hover:not(:disabled),
680
+ &:active:not(:disabled) {
681
+ background-image: linear-gradient(${r.dclRed}, ${r.dclRed});
682
+ }
683
+ &:disabled {
684
+ opacity: 0.6;
685
+ cursor: default;
686
+ }
687
+ `;const Et=Le`
688
+ margin: 0;
689
+ font-size: 13px;
690
+ `,ve=i.p`
691
+ ${Et};
692
+ `,En=i(zs)`
693
+ ${Et};
694
+ `,Rn=i.div`
695
+ position: relative;
696
+ flex: 1 0 auto;
697
+ margin-top: 48px;
698
+ /* Below the gray band the cross-sell sits straight on the purple field (Figma) — hence no band of its
699
+ own. The padding is the whole gap from the top of the section to the heading; the shared carousel's
700
+ own top margin is zeroed below so the two don't stack. */
701
+ padding: 47px 0 24px;
702
+
703
+ & section {
704
+ margin-top: 0;
705
+ }
706
+ `;function Fe(o){if(Is(o))return a("errors.rejected");const l=(o.message??"").toLowerCase();return l.includes("insufficient")?a("cart.error.insufficient",{currency:ba.name}):l.includes("no active listing")||l.includes("your own listing")?a("cart.error.listingChanged"):a("marketCheckout.error.generic")}const qn=12e4;function Bn(o){const l=[];return o.unavailable.length&&l.push(a("cart.drop.unavailable",{count:o.unavailable.length})),o.own.length&&l.push(a("cart.drop.own",{count:o.own.length})),a("cart.drop.removed",{items:l.join(` ${a("cart.drop.and")} `)})}const We=o=>o.reduce((l,P)=>l+P.priceCredits*P.quantity,0),we=o=>o.flatMap(l=>Array.from({length:l.quantity},()=>({...l,quantity:1})));function Xn(){na({title:a("nav.cart"),noindex:!0});const o=H(e=>e.items),l=H(e=>e.remove),P=H(e=>e.increment),z=H(e=>e.decrement),W=H(e=>e.clear),D=H(e=>e.restore),J=H(e=>e.setFittingOpen),A=ct(e=>e.items),ne=ct(e=>e.toggle),{session:n,signIn:K}=ia(),Rt=ra(),le=$s().packs.slice(0,Ss);T.useEffect(()=>(document.body.classList.add("shop-cart-bg"),()=>document.body.classList.remove("shop-cart-bg")),[]);const qt=o.some(e=>e.category!=="emote"),{data:$e}=oa({queryKey:["upsell-listings"],queryFn:()=>Ca({first:40}),staleTime:6e4}),{data:$}=ca(n),v=da(),X=Zt(),{state:E}=ea(),[Bt,ie]=T.useState(null),[Ke,ue]=T.useState(null),[_t,B]=T.useState(!1),[_,G]=T.useState(null),Ne=T.useRef(0),[g,j]=T.useState(null),{data:he}=la(n),{data:re}=ua(!0),[Se,Qe]=T.useState(""),oe=T.useRef(null),Ue=ha(o),He=e=>lt(Ue[e.id]),Me=o.filter(He),Oe=o.length>0&&Me.length===0,Ft=Me.reduce((e,s)=>e+s.priceCredits*s.quantity,0),Wt=o.reduce((e,s)=>e+s.quantity,0),Lt=Me.reduce((e,s)=>e+s.quantity,0),Ge=_?_.liveTotalCredits:Ft,Kt=new Set(o.map(e=>e.id)),Ve=(($e==null?void 0:$e.items)??[]).filter(e=>!Kt.has(e.id)).slice(0,12),Nt=new Map(_==null?void 0:_.buyable.map(e=>[e.item.id,e])),pe=($==null?void 0:$.credits)??0,Te=Ge*10,Qt=re?dt(Te,re):0n,Ie=Be({priceCents:Te,priceManaWei:Qt,balanceCents:($==null?void 0:$.balanceCents)??0,manaBalanceWei:he??0n}),Ut=e=>e.some(s=>s.acquisition==="store"),Pe=e=>e.flatMap(s=>s.acquisition==="trade"?[s]:[]),Ht=xa,Ot=e=>ya(e.contractAddress,String(e.itemId));function ge(e){e(),G(null),ue(null),ie(null)}function Gt(){j(null),B(!1)}function De(e){const s=We(e),d=Math.max(0,s-pe),c=le.find(u=>u.credits>=d)??le[le.length-1];Qe(c.id),V("Shop Buy Credits Prompted",{from:"cart_checkout",credits_needed:s,credits_balance:pe,shortfall:d}),j({phase:"nofunds",lines:e.map(u=>({item:u.item,priceCredits:u.priceCredits,quantity:u.quantity})),shortfall:d}),B(!1)}async function ze(e){if(!n||e.length===0)return;const s=we(e),d=s.map(y=>({...y.item,priceCredits:y.priceCredits})),c=e.map(y=>({...y.item,priceCredits:y.priceCredits,quantity:y.quantity})),u=[];let h="authorize";const w=new Set,S=new Set,F=new Set,R=[];let q=!1;j({phase:"processing",stage:"reserving",step:1,total:s.length});try{const y=[];for(let x=0;x<s.length;x++){const p=s[x];j({phase:"processing",stage:"reserving",step:x+1,total:s.length});try{const M=p.acquisition==="trade"?p.trade.id:void 0,C=p.item.contractAddress&&p.item.itemId!=null?{contractAddress:p.item.contractAddress,itemId:String(p.item.itemId)}:void 0,{credit:U,maxCreditedValue:ee}=await pt(n.identity,p.usdCents,M,C);u.push({salt:U.id,itemId:p.item.id}),y.push(p.acquisition==="store"?{kind:"store",item:{collection:p.item.contractAddress,itemId:String(p.item.itemId),priceWei:p.priceWei},credits:[U],maxCreditedValue:ee,chainId:p.item.chainId}:{kind:"trade",trade:p.trade,credits:[U],maxCreditedValue:ee})}catch(M){if(Ps(M)){if(u.length){try{await Re(n.identity,u.map(C=>C.salt))}catch(C){ae(C,{flow:"cart_checkout",step:"release"})}v.invalidateQueries({queryKey:["usd-balance"]})}De(e);return}throw M}}h="submit";const m=ws(y).length,k=x=>m>1?{current:x,total:m}:void 0,L=(x,p)=>j({phase:"processing",stage:x,step:s.length,total:s.length,signatures:k(p)}),N=x=>x<m?L("awaiting-signature",x+1):L("settling",m);L("awaiting-signature",1);let f=[];if(ms())try{const x=new Map;f=await Cs({purchases:y,buyer:n.address,signer:n.signer,onSigned:()=>N(m),onBroadcast:({txHash:C,salts:U})=>{x.set(C,U),U.forEach(ee=>w.add(ee))}});const p=await Promise.allSettled(f.map(C=>js(C)));p.forEach((C,U)=>{const ee=x.get(f[U])??[];C.status==="fulfilled"?(ee.forEach(Ee=>S.add(Ee)),R.push(f[U])):C.reason instanceof vt||ee.forEach(Ee=>F.add(Ee))});const M=p.flatMap(C=>C.status==="rejected"?[C.reason]:[]);if(M.length&&!M.some(C=>C instanceof vt))throw M[0];q=!0}catch(x){if(!(x instanceof ks)||!va(n.providerType))throw x;f=await _e({purchases:y,buyer:n.address,signer:n.signer,onSigned:N,onBroadcast:({salts:p})=>p.forEach(M=>w.add(M)),onSettled:({txHash:p,salts:M})=>{M.forEach(C=>S.add(C)),R.push(p)},onReverted:({salts:p})=>p.forEach(M=>F.add(M))})}else f=await _e({purchases:y,buyer:n.address,signer:n.signer,onSigned:N,onBroadcast:({salts:x})=>x.forEach(p=>w.add(p)),onSettled:({txHash:x,salts:p})=>{p.forEach(M=>S.add(M)),R.push(x)},onReverted:({salts:x})=>x.forEach(p=>F.add(p))});e.forEach(x=>l(x.item.id)),G(null),V("Shop Completed Purchase",{...xe(d),payment_type:"credits",no_crypto_step:q,transaction_hash:f[0]??null}),bt(v);const b=oe.current;oe.current=null,j(null),B(!1);const Q={items:c,txHash:f[0]??void 0,txHashes:f,settled:!0,...b?{creditsAdded:b}:{}};X("/success",{state:Q,replace:!0})}catch(y){fe(y)||ae(y,{flow:"cart_checkout",step:h,cart_size:e.length});const m=new Set([...w].filter(b=>!F.has(b))),{toRelease:k,boughtItemIds:L}=wt({reservations:u,spent:m,settled:S}),N=d.filter(b=>L.includes(b.id)),f=d.filter(b=>!L.includes(b.id));if(V(fe(y)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:h,error_code:gt(y),value_usd:ut(f.reduce((b,Q)=>b+Q.priceCredits,0)),cart_size:s.length,partial:N.length>0}),k.length)try{await Re(n.identity,k)}catch(b){ae(b,{flow:"cart_checkout",step:"release"})}if(v.invalidateQueries({queryKey:["usd-balance"]}),N.length>0){L.forEach(b=>l(b)),G(null),bt(v),V("Shop Completed Purchase",{...xe(N),payment_type:"credits",no_crypto_step:q,transaction_hash:R[0]??null,partial:!0}),j({phase:"error",message:a("cart.error.partiallyBought")}),B(!1);return}j({phase:"error",message:Fe(y)})}}function Je(e,s){v.invalidateQueries({queryKey:["usd-balance"]}),v.invalidateQueries({queryKey:["detail-trade"]}),v.invalidateQueries({queryKey:["shop-item"]}),v.invalidateQueries({queryKey:["owned-token"]}),v.invalidateQueries({queryKey:["public-token"]}),v.invalidateQueries({queryKey:["item-resales"]}),v.invalidateQueries({queryKey:["shop-items"]}),v.invalidateQueries({queryKey:["catalog-items"]}),v.invalidateQueries({queryKey:["my-assets"]}),v.invalidateQueries({queryKey:["purchases"]}),v.invalidateQueries({queryKey:["owned-item-count"]}),v.invalidateQueries({queryKey:["overview-listings"]}),v.invalidateQueries({queryKey:["upsell-listings"]});const d=oe.current;oe.current=null,j(null),B(!1);const c={items:e,txHash:s[0]??void 0,txHashes:s,settled:!0,...d?{creditsAdded:d}:{}};X("/success",{state:c,replace:!0})}function Xe(e,s){fe(e)||ae(e,{flow:s,step:"submit"}),V(fe(e)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:gt(e)}),j({phase:"error",message:Fe(e)}),B(!1)}async function Vt(e,s){const d=ye(qe.MANAToken,s),c=ye(qe.CreditsManager,s);await bs({auth:{kind:vs.Allowance,contractAddress:d.address,spenderAddress:c.address,chainId:s},signer:e})}async function Ye(){if(re)return re;try{return await v.fetchQuery({queryKey:["mana-rate",ht.chainId],queryFn:()=>fa(ht.chainId),staleTime:6e4})}catch{return}}async function Dt(e){const s=we(e).reduce((h,w)=>h+w.usdCents,0),c=(he??0n)>0n?await Ye():re,u=c?dt(s,c):0n;return{totalCents:s,manaWei:u}}async function Ze(e,s){const d=We(e),{totalCents:c,manaWei:u}=await Dt(e),h=Be({priceCents:c,priceManaWei:u,balanceCents:($==null?void 0:$.balanceCents)??0,manaBalanceWei:he??0n}),w=Ut(e)?{...h,options:h.options.filter(S=>S.method==="credits")}:h;if(s&&w.options.some(S=>S.method===s)){if(s==="credits"){ze(e);return}const{spender:S,chainId:F}=et(s,e);await tt(S,F,()=>s==="mana"?void at(e):void st(e,c,u));return}if(w.options.some(S=>S.method==="mana"||S.method==="combined")){j({phase:"choose",lines:e,totalCents:c,manaWei:u}),B(!1);return}if($!=null&&$.credits<d){De(e);return}ze(e)}function Jt(e){return Be({priceCents:e.totalCents,priceManaWei:e.manaWei,balanceCents:($==null?void 0:$.balanceCents)??0,manaBalanceWei:he??0n})}const[Ae,me]=T.useState(null);function et(e,s){const d=Pe(s)[0].trade;return{spender:e==="mana"?ye(wa(d.contract),d.chainId).address:ye(qe.CreditsManager,d.chainId).address,chainId:d.chainId}}async function tt(e,s,d){const c=xs(s,e),u=n?await fs(c,n.address).catch(()=>!0):!0;if(ys(n==null?void 0:n.providerType,u)){B(!1),me({auth:c,run:d});return}d()}function Xt(e){if((g==null?void 0:g.phase)!=="choose")return;const{lines:s,totalCents:d,manaWei:c}=g;if(e==="credits"){ze(s);return}const{spender:u,chainId:h}=et(e,s);tt(u,h,()=>e==="mana"?void at(s):void st(s,d,c))}async function at(e){if(!n||e.length===0)return;const s=we(e),d=s.map(h=>({...h.item,priceCredits:h.priceCredits})),c=e.map(h=>({...h.item,priceCredits:h.priceCredits,quantity:h.quantity})),u=()=>j({phase:"processing",stage:"settling",step:s.length,total:s.length});j({phase:"processing",stage:"awaiting-signature",step:s.length,total:s.length});try{const h=await hs({trades:Pe(s).map(w=>w.trade),buyer:n.address,signer:n.signer,onSigned:u});e.forEach(w=>l(w.item.id)),G(null),V("Shop Completed Purchase",{...xe(d),payment_type:"mana",transaction_hash:h[0]??null}),v.invalidateQueries({queryKey:["mana-balance"]}),Je(c,h)}catch(h){Xe(h,"buy_cart_mana")}}async function st(e,s,d){if(!n||e.length===0)return;const c=we(e),u=c.map(m=>({...m.item,priceCredits:m.priceCredits})),h=e.map(m=>({...m.item,priceCredits:m.priceCredits,quantity:m.quantity})),w=ps(c.map(m=>m.usdCents),($==null?void 0:$.balanceCents)??0),S=w.reduce((m,k)=>m+k,0),F=gs(Math.max(0,s-S),s,d),R=[],q=new Set,y=new Set;j({phase:"processing",stage:"reserving",step:1,total:c.length});try{const m=Pe(c),k=[];for(let f=0;f<m.length;f++){const b=w[f];if(b<=0)continue;j({phase:"processing",stage:"reserving",step:f+1,total:m.length});const Q=m[f].item,{credit:x,maxCreditedValue:p}=await pt(n.identity,b,m[f].trade.id,Q.contractAddress&&Q.itemId!=null?{contractAddress:Q.contractAddress,itemId:String(Q.itemId)}:void 0);R.push({salt:x.id,itemId:Q.id}),k.push({kind:"trade",trade:m[f].trade,credits:[x],maxCreditedValue:p})}m.forEach((f,b)=>{w[b]<=0&&k.push({kind:"trade",trade:f.trade,credits:[],maxCreditedValue:"0"})}),k[0]={...k[0],maxCreditedValue:(BigInt(k[0].maxCreditedValue)+F).toString()},await Vt(n.signer,m[0].trade.chainId);const L=()=>j({phase:"processing",stage:"settling",step:c.length,total:c.length});j({phase:"processing",stage:"awaiting-signature",step:c.length,total:c.length});const N=await _e({purchases:k,buyer:n.address,signer:n.signer,onSigned:L,onBroadcast:({salts:f})=>f.forEach(b=>q.add(b)),onReverted:({salts:f})=>f.forEach(b=>y.add(b))});e.forEach(f=>l(f.item.id)),G(null),V("Shop Completed Purchase",{...xe(u),payment_type:"credits_and_mana",transaction_hash:N[0]??null}),v.invalidateQueries({queryKey:["mana-balance"]}),Je(h,N)}catch(m){const{toRelease:k}=wt({reservations:R,spent:new Set([...q].filter(L=>!y.has(L))),settled:new Set});k.length&&Re(n.identity,k).catch(()=>{}),R.length&&v.invalidateQueries({queryKey:["usd-balance"]}),Xe(m,"buy_cart_combined")}}async function Y(e){if(!n){yt({type:"cart-checkout"}),K();return}const s=H.getState().items.filter(He);if(s.length===0)return;ie(null),ue(null),B(!0);const d=s.reduce((c,u)=>c+u.priceCredits*u.quantity,0);V("Shop Started Checkout",{cart_size:s.length,cart_value_credits:d,cart_value_usd:ut(d),has_sufficient_credits:pe>=d});try{const c=await Ms(s,n.address,Ht,await Ye(),Ot),u=[...c.unavailable,...c.own];if(u.length&&(u.forEach(h=>l(h.id)),ue(Bn(c))),c.buyable.length===0){ie(a("cart.error.noneAvailable")),G(null);return}if(c.orderChanged){G(c),Ne.current=Date.now();return}await Ze(c.buyable,e)}catch(c){ae(c,{flow:"cart_checkout",step:"review",cart_size:s.length}),ie(Fe(c))}finally{B(!1)}}async function nt(){if(_){if(!n){yt({type:"cart-checkout"}),K();return}if(Date.now()-Ne.current>qn){G(null),ue(null),await Y();return}ie(null),Ze(_.buyable)}}async function Yt(){if(Se){try{sessionStorage.setItem(be,JSON.stringify(H.getState().items))}catch{}B(!0);try{const e=await Ts(Se,n?{address:n.address,identity:n.identity}:void 0);if(e.url){window.location.href=e.url;return}X("/credits")}catch(e){try{sessionStorage.removeItem(be)}catch{}ae(e,{flow:"cart_buy_credits"}),j({phase:"error",message:a("buyModal.error.creditsCheckout")})}finally{B(!1)}}}const it=T.useRef(!1);T.useEffect(()=>{if(!n||it.current||!cs("cart-checkout"))return;it.current=!0;const e=setTimeout(()=>void Y(),0);return()=>clearTimeout(e)},[n]);const rt=T.useRef(!1);T.useEffect(()=>{if(!(E!=null&&E.resumeCheckout)||rt.current)return;rt.current=!0,oe.current=E.creditsAdded??null;try{const s=sessionStorage.getItem(be);if(s){sessionStorage.removeItem(be);const d=JSON.parse(s);Array.isArray(d)&&d.length&&D(d)}}catch{}v.invalidateQueries({queryKey:["usd-balance"]});const e=setTimeout(()=>void Y(),0);return()=>clearTimeout(e)},[E==null?void 0:E.resumeCheckout]);const ot=T.useRef(!1);T.useEffect(()=>{if(!(E!=null&&E.startCheckout)||ot.current)return;ot.current=!0,X(".",{replace:!0,state:null});const e=setTimeout(()=>void Y(),0);return()=>clearTimeout(e)},[E==null?void 0:E.startCheckout]);const Z=_t||(g==null?void 0:g.phase)==="processing";return o.length===0&&!g?t.jsx(Ct,{children:t.jsxs(kt,{children:[t.jsxs(jt,{onClick:()=>X(-1),type:"button",children:[t.jsx(O,{name:"arrow-left"}),a("nav.cart")]}),t.jsxs(Hs,{"data-testid":"cart-empty",children:[t.jsx(O,{name:"cart-plus",size:110}),t.jsxs(Os,{children:[t.jsx(Gs,{children:a("cart.empty.title")}),t.jsx(Vs,{children:a("cart.empty.body")})]}),t.jsx(Ds,{to:"/items",children:a("cart.empty.cta")})]})]})}):t.jsxs(Ct,{children:[t.jsxs(kt,{children:[t.jsxs(jt,{onClick:()=>X(-1),type:"button",children:[t.jsx(O,{name:"arrow-left"}),a("nav.cart")]}),t.jsxs(Ns,{children:[t.jsxs(Qs,{children:[t.jsxs(Us,{children:[t.jsx(Js,{onClick:()=>X(-1),type:"button","aria-label":a("cart.goBack"),children:t.jsx(O,{name:"arrow-left"})}),t.jsx(Xs,{children:a("cart.panelTitle",{count:Wt})}),qt?t.jsxs(Ys,{onClick:()=>J(!0),disabled:Z,children:[t.jsx(O,{name:"fitting-room"}),a("cart.fittingRoom")]}):null]}),t.jsxs(Pt,{children:[t.jsx(Zs,{children:o.map(e=>{const s=Nt.get(e.id),d=s?s.priceCredits:e.priceCredits,c=!!s&&s.priceCredits!==e.priceCredits,u=!e.tokenId,h=e.quantity,w=typeof e.available=="number"&&h>=e.available,S=d*h,F=pa(e),R=!!F&&!!A[F],q=ga(e),y=Ue[e.id],m=!lt(y),k=y==="sold-out"?a("cart.availability.soldOut"):a("cart.availability.unavailable");return t.jsxs(en,{"data-unavailable":m||void 0,children:[t.jsxs(tn,{"data-thumb":!0,children:[q?t.jsx(an,{to:q,state:{item:e,tradeId:e.tradeId},"aria-label":e.name,children:e.thumbnail?t.jsx("img",{src:e.thumbnail,alt:e.name}):null}):e.thumbnail?t.jsx("img",{src:e.thumbnail,alt:e.name}):null,t.jsx(sn,{"data-check":!0,"aria-hidden":!0,children:t.jsx("svg",{viewBox:"0 0 20 20",width:"12",height:"12",children:t.jsx("path",{d:"M5 10.5l3 3 7-7.5",fill:"none",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t.jsxs(nn,{children:[t.jsxs(rn,{"data-desc":!0,children:[q?t.jsx(cn,{to:q,state:{item:e,tradeId:e.tradeId},title:e.name,children:e.name}):t.jsx(on,{title:e.name,children:e.name}),e.creator?t.jsx(dn,{address:e.creator,linkToProfile:!0}):null,Rt&&u?t.jsxs(vn,{"data-testid":"cart-creator-tag",children:[t.jsx(wn,{name:"buy-from-creator"}),a("cart.creatorTag")]}):null]}),t.jsx(ln,{children:m?t.jsxs(t.Fragment,{children:[t.jsxs(fn,{children:[t.jsx(yn,{name:"warning-fill",size:24}),k]}),q?t.jsx(bn,{to:q,state:{item:e,tradeId:e.tradeId},children:a("cart.availability.viewResales")}):null]}):t.jsxs(t.Fragment,{children:[u?t.jsxs(un,{children:[t.jsx($t,{onClick:()=>ge(()=>z(e.id)),disabled:Z||h<=1,"aria-label":a("cart.decreaseQuantity",{name:e.name}),children:t.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:t.jsx("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),t.jsx(hn,{children:h}),t.jsx($t,{onClick:()=>ge(()=>P(e.id)),disabled:Z||w,"aria-label":a("cart.increaseQuantity"),children:t.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:t.jsx("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}):null,t.jsxs(pn,{children:[t.jsx(gn,{})," ",S,c?t.jsx(mn,{children:e.priceCredits*h}):null]})]})})]}),t.jsxs(xn,{children:[F?t.jsx(Cn,{"data-on":R||void 0,onClick:()=>ne(e),"aria-label":R?a("cart.removeFromFavorites",{name:e.name}):a("cart.addToFavorites",{name:e.name}),title:R?a("assetCard.removeFromFavorites"):a("assetCard.addToFavorites"),children:t.jsx(O,{name:R?"heart-solid":"heart"})}):null,t.jsx(jn,{onClick:()=>ge(()=>l(e.id)),disabled:Z,"aria-label":a("cart.remove",{name:e.name}),title:a("cart.removeTitle"),children:t.jsx(O,{name:"trash",size:24})})]})]},e.id)})}),t.jsx(kn,{children:t.jsx("button",{className:"link",onClick:()=>ge(W),disabled:Z,children:a("cart.clearCart")})})]})]}),t.jsxs($n,{children:[t.jsx(Sn,{children:a("cart.purchaseSummary")}),t.jsxs(Mn,{children:[t.jsxs(Tn,{children:[t.jsx(In,{children:a("cart.totalItems",{count:Lt})}),t.jsx(zn,{children:t.jsxs(Pn,{children:[t.jsx(An,{})," ",Ge]})})]}),t.jsx(Mt,{options:Ie.options,totalCents:Te,shortfall:Ie.manaShortfall,showCreditsAmount:!1,creditsLabel:_?a("marketCheckout.confirmPurchase"):Ie.options.length>1?a("cart.buyWithCredits"):a("cart.checkout"),busy:Z||Oe,onPay:e=>void(_?nt():Y(e)),creditsFallback:{label:Z?a("cart.working"):_?a("marketCheckout.confirmPurchase"):a("cart.checkout"),onClick:()=>void(_?nt():Y())}}),Oe?t.jsx(ve,{className:"muted",children:a("cart.allUnavailable")}):null,n?null:t.jsx(ve,{className:"muted",children:a("cart.signInHint")}),_?t.jsx(ve,{className:"muted",children:a("cart.priceChanged")}):null,Ke?t.jsx(ve,{className:"muted",children:Ke}):null,t.jsx(En,{message:Bt})]})]})]})]}),Ve.length>0?t.jsx(Rn,{children:t.jsx(ds,{title:a("cart.youMightAlsoLike"),items:Ve})}):null,Ae&&n?t.jsx(ls,{auth:Ae.auth,signer:n.signer,title:a("authorizeStep.manaTitle"),name:a("authorizeStep.manaName"),reason:a("authorizeStep.manaReason"),icon:t.jsx("img",{src:us,width:24,height:24,alt:"","aria-hidden":!0}),onAuthorized:()=>{const{run:e}=Ae;me(null),e()},onCancel:()=>me(null),onClose:()=>me(null)}):null,g?t.jsx(Fs,{phase:g.phase,balanceCredits:pe,onClose:Gt,stage:g.phase==="processing"?g.stage:void 0,step:g.phase==="processing"?g.step:void 0,total:g.phase==="processing"?g.total:void 0,isSelfCustody:ma(n==null?void 0:n.providerType),signatures:g.phase==="processing"?g.signatures:void 0,options:g.phase==="choose"?Jt(g).options:void 0,onPay:Xt,totalCents:g.phase==="choose"?g.totalCents:void 0,totalManaWei:g.phase==="choose"?g.manaWei:void 0,totalCredits:g.phase==="choose"?We(g.lines):void 0,lines:g.phase==="nofunds"?g.lines:void 0,shortfallCredits:g.phase==="nofunds"?g.shortfall:void 0,packs:le,selectedPack:Se,onSelectPack:Qe,onBuyPacks:()=>void Yt(),message:g.phase==="error"?g.message:void 0,onRetry:()=>void Y()}):null]})}export{Xn as Cart};