@dcl/shop 1.1.0 → 1.1.1-31102625765.commit-10fdc9c

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 (176) hide show
  1. package/_assets/{Activity-9rrEHk5U.js → Activity-QfD0tvUz.js} +3 -3
  2. package/_assets/{AnimatedBackground-D1YVAiBf.js → AnimatedBackground-DJdtstZg.js} +1 -1
  3. package/_assets/Assets-DCZpVEl1.js +895 -0
  4. package/_assets/{Assets.styles-BzDEqf9t.js → Assets.styles-B9IlZUiU.js} +1 -1
  5. package/_assets/{Authorizations-rtqoKvNU.js → Authorizations-RfBfVCWP.js} +1 -1
  6. package/_assets/{Cart-BCsBSqSP.js → Cart-0KOJq4kv.js} +1 -1
  7. package/_assets/{CircularProgress-kQAHHpsk.js → CircularProgress-DWhieah-.js} +1 -1
  8. package/_assets/{Collection-cADy_yQr.js → Collection-Dy1W6f2d.js} +1 -1
  9. package/_assets/{CollectionCarousel-DQQb78H6.js → CollectionCarousel-FvbsGSp0.js} +2 -2
  10. package/_assets/{Confetti-UARYHnCB.js → Confetti-BfqSZ5eN.js} +1 -1
  11. package/_assets/{Creator-CpoDM7h0.js → Creator-c5pNs6YM.js} +1 -1
  12. package/_assets/{ErrorNotice-CBZMlTMX.js → ErrorNotice-PgVICMnD.js} +1 -1
  13. package/_assets/{ExchangeController-Cddqljvh.js → ExchangeController-C_nxxLez.js} +1 -1
  14. package/_assets/{Faq-B-73-LFA.js → Faq-Yv2mYyMA.js} +1 -1
  15. package/_assets/{GetCredits-D780-ZO_.js → GetCredits-BcYVWAwQ.js} +1 -1
  16. package/_assets/{Grow-qhmTjoD7.js → Grow-WMGgjDBX.js} +1 -1
  17. package/_assets/{HelpersUtil-BwxpK1Xg.js → HelpersUtil-s-En5wkS.js} +1 -1
  18. package/_assets/{ItemDetail-BlDCDzBB.js → ItemDetail-BiQci__g.js} +1 -1
  19. package/_assets/LazyEmoteControls-C5-pSXyf.js +2 -0
  20. package/_assets/{LoadMore-yWxoUUNf.js → LoadMore-CrfOeX75.js} +1 -1
  21. package/_assets/{ManaPricingBanner.styles-CqFpaBa_.js → ManaPricingBanner.styles-Dp4OJnuy.js} +1 -1
  22. package/_assets/{MyAssets-CGsMig4K.js → MyAssets-DpzWXmRQ.js} +1 -1
  23. package/_assets/{MyFavorites-DSk8GQMl.js → MyFavorites-e30lF3wU.js} +1 -1
  24. package/_assets/{NotFound-BeLWmEE0.js → NotFound-CdeSUzQ2.js} +1 -1
  25. package/_assets/{NotificationsBell-CQOx6AV5.js → NotificationsBell-DXVFukVB.js} +1 -1
  26. package/_assets/{OutfitDetail-DhmrauCq.js → OutfitDetail-hRCnBCPm.js} +1 -1
  27. package/_assets/{OutfitPreview-C6pvZTXL.js → OutfitPreview-ChN2oM8x.js} +1 -1
  28. package/_assets/{OutfitStudio-DTpIr2VD.js → OutfitStudio-DvPdY3_G.js} +1 -1
  29. package/_assets/{StoreSettings-DPntmfY3.js → StoreSettings-Bsa0eSTC.js} +1 -1
  30. package/_assets/{Success-CCBHTTsN.js → Success-BFki0m5-.js} +1 -1
  31. package/_assets/{SwapController-CwiA0ELe.js → SwapController-D_7CXLpx.js} +1 -1
  32. package/_assets/{Tooltip-BrPg6WWE.js → Tooltip-tvzqarUY.js} +1 -1
  33. package/_assets/{TradeService-BvzE84HN.js → TradeService-D3cOzoGH.js} +1 -1
  34. package/_assets/{W3MFrameProviderSingleton-C1sKmSDA.js → W3MFrameProviderSingleton-wNL5u-dk.js} +3 -3
  35. package/_assets/{WebCryptoP256-COsxHEzN.js → WebCryptoP256-X6DlaRaZ.js} +1 -1
  36. package/_assets/{authorizations-DffPbrZU.js → authorizations-BGawCoH1.js} +1 -1
  37. package/_assets/{basic-BshP5Aek.js → basic-CNpJUgnr.js} +1 -1
  38. package/_assets/{biconomy-ozimuL1v.js → biconomy-CYAKcDdU.js} +1 -1
  39. package/_assets/{builder-BjB54DJ_.js → builder-DXMbd3YE.js} +1 -1
  40. package/_assets/{buy-gasless-LQIhVXxE.js → buy-gasless-BSrNpwqu.js} +1 -1
  41. package/_assets/{buy-BWhjAqGQ.js → buy-wbuVsA9p.js} +1 -1
  42. package/_assets/{categories-CIEcQPqv.js → categories-CjNfJsvg.js} +1 -1
  43. package/_assets/{ccip-DZZX7g_4.js → ccip-C2PwR6WA.js} +1 -1
  44. package/_assets/{ccip-D_u08xkT.js → ccip-Y9Z5crdp.js} +1 -1
  45. package/_assets/{collectionPage.styles-E6y_4kdA.js → collectionPage.styles-dzdIlHWn.js} +6 -6
  46. package/_assets/{controller-BwAsbRce.js → controller-DLNV1Auw.js} +2 -2
  47. package/_assets/{core-CVv2mj4u.js → core-Dv1KiMHA.js} +4 -4
  48. package/_assets/{createSvgIcon-nZkOIL2l.js → createSvgIcon-CF9RuVXo.js} +3 -3
  49. package/_assets/{custom-CIT_LT0y.js → custom-CjOThmqq.js} +1 -1
  50. package/_assets/{data-capture-TE6Dq1tX.js → data-capture-Dvwz87cd.js} +1 -1
  51. package/_assets/{email-B6SGDIgr.js → email-BM43tTLo.js} +1 -1
  52. package/_assets/{embedded-wallet-DbCbqi3U.js → embedded-wallet-DBJV0zvO.js} +1 -1
  53. package/_assets/{emotion-styled.browser.esm-C1JGC3m9.js → emotion-styled.browser.esm-ZrVL_gaZ.js} +1 -1
  54. package/_assets/{engine-AiLI-eRm.js → engine-DLQID_vj.js} +1 -1
  55. package/_assets/{errors-ueM8ONld.js → errors-4nY8CgwM.js} +1 -1
  56. package/_assets/{estimate-l1-fee-DHnmnFZ4.js → estimate-l1-fee-CoXXFjSH.js} +1 -1
  57. package/_assets/{execute-CrO8CJ5D.js → execute-DFrVqDeh.js} +2 -2
  58. package/_assets/{features-BXpt3Ahg.js → features-BCr6ZOyd.js} +1 -1
  59. package/_assets/{fetchTokenMetadata-C0sODWOF.js → fetchTokenMetadata-Dj0xFl8d.js} +2 -2
  60. package/_assets/{field.styles-PwPucAqS.js → field.styles-B3Ufd7iA.js} +1 -1
  61. package/_assets/{get-ecosystem-wallet-info-Cjuk1nsV.js → get-ecosystem-wallet-info-BsT3sidl.js} +1 -1
  62. package/_assets/{getBalance-Ck0P9Nks.js → getBalance-Cn9WF9Tb.js} +1 -1
  63. package/_assets/{getNFT-J7sRvxML.js → getNFT-DfOOA5eO.js} +1 -1
  64. package/_assets/{getNFT-3Tj7jt0R.js → getNFT-DfnPVHZ5.js} +1 -1
  65. package/_assets/{grid.styles-DpEPS70S.js → grid.styles-INZ4nIxL.js} +1 -1
  66. package/_assets/{hashTypedData-DRxCie6p.js → hashTypedData-B_4IvbDB.js} +1 -1
  67. package/_assets/{hashTypedData-lvi-DsFW.js → hashTypedData-DfLHQ6NJ.js} +1 -1
  68. package/_assets/{in-app-DCz3bI1C.js → in-app-CEPTXxSp.js} +1 -1
  69. package/_assets/{in-app-wallet-calls-ijhv1NTQ.js → in-app-wallet-calls-QnUVTgv-.js} +1 -1
  70. package/_assets/{index-16W-z5r9.js → index--cPvq__j.js} +1 -1
  71. package/_assets/{index-CRJlj3-L.js → index-9VyDiM0b.js} +1 -1
  72. package/_assets/{index-Dd_xp1GX.js → index-B-B3AF4h.js} +1 -1
  73. package/_assets/{index-DfSm--v1.js → index-BO4pDEKE.js} +3 -3
  74. package/_assets/{index-CHHwDN0N.js → index-BPU88wTK.js} +1 -1
  75. package/_assets/{index-ddCUYyj8.js → index-BWTB7fRY.js} +1 -1
  76. package/_assets/{index-DtOH6n73.js → index-BYQwquqQ.js} +1 -1
  77. package/_assets/{index-B-Tuwg1A.js → index-BZx3Hl2S.js} +1 -1
  78. package/_assets/{index-CbGfOyO_.js → index-BbyyE3QZ.js} +1 -1
  79. package/_assets/{index-BsiMisxo.js → index-BdjqM4EA.js} +2 -2
  80. package/_assets/{index-CDafoVl9.js → index-BdsNVjaO.js} +1 -1
  81. package/_assets/index-Be1ejvaF.js +625 -0
  82. package/_assets/{index-x3VfqdWM.js → index-Be2OPswD.js} +1 -1
  83. package/_assets/{index-FL9sZYKH.js → index-BeFgPYGe.js} +1 -1
  84. package/_assets/{index-BUDnYYak.js → index-Bf4BNxBt.js} +1 -1
  85. package/_assets/{index-KxgFV9Te.js → index-Bh59hgYg.js} +1 -1
  86. package/_assets/{index-CBVgax9G.js → index-Bxt9z70g.js} +1 -1
  87. package/_assets/{index-Ds1OsNhA.js → index-BzKKpH4z.js} +1 -1
  88. package/_assets/{index-DLYlDeh3.js → index-BznwH6bf.js} +1 -1
  89. package/_assets/{index-D14r_Fxe.js → index-C1opa0Zw.js} +1 -1
  90. package/_assets/{index-DgtAwbud.js → index-C4Icjsra.js} +1 -1
  91. package/_assets/{index-DGzHax2k.js → index-C4myjq7f.js} +1 -1
  92. package/_assets/{index-Ci_lI5HK.js → index-CDW7b6q5.js} +1 -1
  93. package/_assets/{index-C5ApWYin.js → index-CP8_gkMR.js} +1 -1
  94. package/_assets/{index-B5W5wJaQ.js → index-CYkW98xi.js} +2 -2
  95. package/_assets/{index-BBKeGR3Z.js → index-Ce3s9yr1.js} +1 -1
  96. package/_assets/{index-5tI1x7HI.js → index-CjkD4uOi.js} +1 -1
  97. package/_assets/{index-CvxbRAdp.js → index-ClPXi4qM.js} +1 -1
  98. package/_assets/{index-DsDwjBn2.js → index-CuKEGIkk.js} +1 -1
  99. package/_assets/{index-CEWrdOju.js → index-CxqtPM7K.js} +1 -1
  100. package/_assets/{index-zeywwNfv.js → index-D21clree.js} +1 -1
  101. package/_assets/{index-CaglN0Ov.js → index-D9CBkgIa.js} +1 -1
  102. package/_assets/{index-7hh8tA4H.js → index-DD9CVdaW.js} +1 -1
  103. package/_assets/{index-Tv-nFOLW.js → index-DHyqH6ml.js} +1 -1
  104. package/_assets/{index-D24M_ecl.js → index-DMaNadWp.js} +1 -1
  105. package/_assets/{index-DwsYB4bs.js → index-DOat9oKK.js} +1 -1
  106. package/_assets/{index-CgKd8MIG.js → index-DZSPT_NS.js} +14 -14
  107. package/_assets/{index-DhJzB2WE.js → index-DZsDNaLC.js} +2 -2
  108. package/_assets/{index-g5rjULM6.js → index-Dfm80u9p.js} +1 -1
  109. package/_assets/{index-CoqqSzbF.js → index-DhZwZ0t_.js} +1 -1
  110. package/_assets/{index-Btabzvt2.js → index-DjTkGsKb.js} +1 -1
  111. package/_assets/{index-D7dCFhiL.js → index-DqhfJNd8.js} +1 -1
  112. package/_assets/{index-COufQ_yw.js → index-DvgMl7JF.js} +1 -1
  113. package/_assets/{index-CbdkGVO_.js → index-DxYT-EMB.js} +3 -3
  114. package/_assets/{index-CbCf9Fwk.js → index-JsjyQHhW.js} +1 -1
  115. package/_assets/{index-BJS4KLeY.js → index-SPlBYxDN.js} +1 -1
  116. package/_assets/{index-CX3BY9Sg.js → index-jUk6xFSZ.js} +3 -3
  117. package/_assets/{index-Bj7jFbI-.js → index-l3So6VdT.js} +1 -1
  118. package/_assets/{index-C7fDi1_q.js → index-pFp5OCxA.js} +1 -1
  119. package/_assets/{index-CTnpX_6H.js → index-q-pHaHea.js} +1 -1
  120. package/_assets/{index-BoFa52HJ.js → index-r-yfi_Cc.js} +1 -1
  121. package/_assets/{index-CuYA00Jo.js → index-w8p5ELVi.js} +1 -1
  122. package/_assets/{index.es-Djc-Qn7H.js → index.es-5BKW5ukU.js} +1 -1
  123. package/_assets/{index.es-B-7-l7nJ.js → index.es-CPt8ObVR.js} +4 -4
  124. package/_assets/{index.es-C9oJO4VH.js → index.es-CUXuVaDL.js} +1 -1
  125. package/_assets/{localBatchGatewayRequest-Ccb4lfcA.js → localBatchGatewayRequest-C1UcVI6d.js} +1 -1
  126. package/_assets/{networks-qS_5A4aX.js → networks-Ecij3_0f.js} +1 -1
  127. package/_assets/{onramp-DU_EEEZ5.js → onramp-DE7pdvSk.js} +1 -1
  128. package/_assets/{openzeppelin-RXLv0_Gd.js → openzeppelin-C2JIuNlE.js} +1 -1
  129. package/_assets/{parseNft-BraQXdQ1.js → parseNft-DRjeFTLz.js} +2 -2
  130. package/_assets/{parseSignature-BifKvwmK.js → parseSignature-Dnd81NC6.js} +3 -3
  131. package/_assets/{parseSignature-Cldxp3mW.js → parseSignature-iD6WB0Rv.js} +1 -1
  132. package/_assets/{passkeys-DoJ-qnwS.js → passkeys-BkyTf0eV.js} +1 -1
  133. package/_assets/{pay-with-exchange-CuWwWzQQ.js → pay-with-exchange-DPXvNbJL.js} +1 -1
  134. package/_assets/{qr-overlay-489AKbsX.js → qr-overlay-BhVHMnu6.js} +1 -1
  135. package/_assets/{receive-C982fpOH.js → receive-eVaQDREh.js} +1 -1
  136. package/_assets/{resolveImplementation-Btngn0IO.js → resolveImplementation-CFgY9LCD.js} +1 -1
  137. package/_assets/{rpc-5yTJpyZ_.js → rpc-CxZzFlD_.js} +1 -1
  138. package/_assets/{secp256k1-JRFVqF4g.js → secp256k1-B_W52ZUf.js} +1 -1
  139. package/_assets/{secp256k1-CCNWEuXT.js → secp256k1-DnfTzSex.js} +1 -1
  140. package/_assets/{secp256k1-kGauLUHg.js → secp256k1-dsaLnqmL.js} +1 -1
  141. package/_assets/{send-RKuRCaGt.js → send-D4fV5XeL.js} +1 -1
  142. package/_assets/{send-batch-transaction-gbesD3yw.js → send-batch-transaction-BYfh-S_2.js} +1 -1
  143. package/_assets/{send-eip712-transaction-D8lmfcov.js → send-eip712-transaction-D0HdHzLM.js} +2 -2
  144. package/_assets/{send-gasless-transaction-COWRFzT1.js → send-gasless-transaction-DUDjLqeP.js} +2 -2
  145. package/_assets/{send-transaction-hfS9gGmU.js → send-transaction-BqcOJrAL.js} +2 -2
  146. package/_assets/{sendMetaTransaction-CQLcqeK_.js → sendMetaTransaction-C0JzN9LI.js} +1 -1
  147. package/_assets/{sendRawTransaction-BIIO_kfm.js → sendRawTransaction-Bfa9uLgL.js} +3 -3
  148. package/_assets/{serializeTransaction-CteU12Pb.js → serializeTransaction-QTvQ4Pcp.js} +1 -1
  149. package/_assets/{session-proposal-ZLPRJiDD.js → session-proposal-DWHkM92-.js} +1 -1
  150. package/_assets/{session-request-CS2orfQ2.js → session-request-DjGW8Qkl.js} +2 -2
  151. package/_assets/{signing-B3-6ckz7.js → signing-DyK_lDFH.js} +3 -3
  152. package/_assets/{skeleton.styles-ChQLBG5k.js → skeleton.styles-Dc_ZERtv.js} +1 -1
  153. package/_assets/{socials-C31w_qg5.js → socials-B_-om-t3.js} +1 -1
  154. package/_assets/{styled-C9y--t9u.js → styled-Cj96yFi3.js} +2 -2
  155. package/_assets/{swaps-DdVcKLtU.js → swaps-Cmi2Gunc.js} +1 -1
  156. package/_assets/{thirdweb-Zq3Uj3Cd.js → thirdweb-CMey7U_9.js} +3 -3
  157. package/_assets/{to-serializable-transaction-CuXbkoN8.js → to-serializable-transaction-CwBzwgfs.js} +2 -2
  158. package/_assets/{transactionReceipt-BeusdWSX.js → transactionReceipt-DfMLC-1R.js} +1 -1
  159. package/_assets/{transactions-CLKroJ1L.js → transactions-BT6vB4tY.js} +1 -1
  160. package/_assets/{useCreditPacks-BI219E4X.js → useCreditPacks-C_jgnHRc.js} +1 -1
  161. package/_assets/{useImportable-Dd4LHEFZ.js → useImportable-QV1qlFEy.js} +1 -1
  162. package/_assets/{useInfiniteGrid-D9tb6urG.js → useInfiniteGrid-C5uj0xks.js} +1 -1
  163. package/_assets/{useTheme-DxcP-VD3.js → useTheme-BVc_OeyE.js} +1 -1
  164. package/_assets/{verifyHash-C0ADopSi.js → verifyHash-DGy8u5b_.js} +1 -1
  165. package/_assets/{w3m-modal-BEmGW-J3.js → w3m-modal-02XMSJu1.js} +1 -1
  166. package/_assets/{w3m-modal-C16ao9pB.js → w3m-modal-CkTpDIV_.js} +1 -1
  167. package/_assets/{wait-for-tx-receipt-DyDajQ2z.js → wait-for-tx-receipt-BERyJmw5.js} +1 -1
  168. package/_assets/{wallets-BFmp1oZg.js → wallets-B-2ulsIc.js} +5 -5
  169. package/_assets/{web-connector-Kml6W9yG.js → web-connector-MP_30hTS.js} +3 -3
  170. package/_assets/{writeContract-BvbKotKG.js → writeContract-C15uBGzX.js} +1 -1
  171. package/_assets/{zoraTestnet-CVv7zArX.js → zoraTestnet-Dvl-D6P3.js} +1 -1
  172. package/index.html +11 -11
  173. package/package.json +2 -2
  174. package/_assets/Assets-2biGpywQ.js +0 -892
  175. package/_assets/LazyEmoteControls-mFjjYqjp.js +0 -2
  176. package/_assets/index-BovFMPz-.js +0 -625
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-B-Tuwg1A.js","_assets/react-BYHuwl8r.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/index-CgKd8MIG.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-DB6GvbxL.css","_assets/createSvgIcon-nZkOIL2l.js","_assets/clsx-WwvpwSg0.js","_assets/styled-C9y--t9u.js","_assets/emotion-styled.browser.esm-C1JGC3m9.js","_assets/CircularProgress-kQAHHpsk.js","_assets/index-Ci_lI5HK.js","_assets/useTheme-DxcP-VD3.js"])))=>i.map(i=>d[i]);
2
- import{_ as e}from"./index-CgKd8MIG.js";import{j as t,r as s}from"./react-BYHuwl8r.js";const n=s.lazy(async()=>{const[{EmoteControls:o},{Experimental_CssVarsProvider:i},{light:a}]=await Promise.all([e(()=>import("./index-B-Tuwg1A.js").then(r=>r.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),e(()=>import("./index-Ci_lI5HK.js"),__vite__mapDeps([13,3,1,2,4,5,6,7,14,10])),e(()=>import("./index-CgKd8MIG.js").then(r=>r.da),__vite__mapDeps([3,1,2,4,5,6,7]))]);return{default:r=>t.jsx(i,{theme:a,children:t.jsx(o,{...r})})}});function m(o){return t.jsx(s.Suspense,{fallback:null,children:t.jsx(n,{...o})})}export{m as E};
@@ -1,625 +0,0 @@
1
- import{j as e,b as le,r as g,L as ce}from"./react-BYHuwl8r.js";import{t as A,s as t,w as pe,y as he,b as n,C as N,B,bY as se,z as D,Z as ge,bk as O,F as U,Q as xe,o as me,A as ue,bj as fe,I as K,aa as we,ac as be,bZ as ye,b_ as ve,b$ as je,E as G}from"./index-CgKd8MIG.js";import{c as ke,i as $e,R as Ce,u as Se}from"./useImportable-Dd4LHEFZ.js";import{S as Le,C as Ie}from"./ManaPricingBanner.styles-CqFpaBa_.js";import{F as Y}from"./Faq-B-73-LFA.js";import{C as H}from"./field.styles-PwPucAqS.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./buy-BWhjAqGQ.js";import"./authorizations-DffPbrZU.js";import"./sendMetaTransaction-CQLcqeK_.js";function Te({size:a=12,...l}){return e.jsx("svg",{viewBox:"0 0 20 20",width:a,height:a,fill:"none","aria-hidden":!0,focusable:"false",...l,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function ze({size:a=84.837,...l}){return e.jsxs("svg",{viewBox:"0 0 84.837 84.837",width:a,height:a,fill:"none","aria-hidden":!0,focusable:"false",...l,children:[e.jsxs("g",{stroke:A.colors.errStrong,strokeWidth:"6.08696",strokeLinecap:"round",children:[e.jsx("circle",{cx:"42.4185",cy:"42.4185",r:"39.375"}),e.jsx("path",{d:"M42.4185 22.5V47.5"})]}),e.jsx("circle",{cx:"42.4185",cy:"60.75",r:"3.8",fill:A.colors.errStrong})]})}const{colors:R,radius:Ae,z:Re}=A,Fe=pe`
2
- 0% {
3
- transform: scale(0);
4
- opacity: 0;
5
- }
6
- 100% {
7
- transform: scale(1);
8
- opacity: 1;
9
- }
10
- `,V=t.div`
11
- position: fixed;
12
- inset: 0;
13
- background: rgba(0, 0, 0, 0.5);
14
- display: flex;
15
- overflow-y: auto;
16
- padding: 20px;
17
- // Above the global DCL navbar so the backdrop dims the full viewport (navbar included).
18
- z-index: ${Re.overlay};
19
- `,re=t.div`
20
- background: ${R.white};
21
- border-radius: ${Ae.card};
22
- padding: 24px;
23
- width: min(420px, 92vw);
24
- margin: auto;
25
- /* Never taller than the (padded) viewport, and scroll inside if the content still does not fit — on a
26
- short screen the actions used to sit off the bottom edge with no way to reach them. */
27
- max-height: 100%;
28
- overflow-y: auto;
29
- display: flex;
30
- flex-direction: column;
31
- gap: 12px;
32
-
33
- &[data-success],
34
- &[data-failure] {
35
- text-align: center;
36
- align-items: center;
37
- }
38
- &[data-success] [data-actions],
39
- &[data-failure] [data-actions] {
40
- justify-content: center;
41
- width: 100%;
42
- }
43
- `,Z=t.h2`
44
- font-size: 20px;
45
- `;t.img`
46
- width: 140px;
47
- height: 140px;
48
- object-fit: contain;
49
- align-self: center;
50
- background: ${R.media};
51
- border-radius: 10px;
52
- `;const _e=t.div`
53
- position: sticky;
54
- bottom: 0;
55
- display: flex;
56
- justify-content: flex-end;
57
- gap: 10px;
58
- margin-top: 6px;
59
- padding-top: 8px;
60
- background: ${R.white};
61
- `;t.div`
62
- width: 56px;
63
- height: 56px;
64
- border-radius: 50%;
65
- background: ${R.okStrong};
66
- color: ${R.white};
67
- font-size: 30px;
68
- font-weight: 800;
69
- display: grid;
70
- place-items: center;
71
- margin: 4px auto 2px;
72
- animation: ${Fe} 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.4);
73
-
74
- @media (prefers-reduced-motion: reduce) {
75
- animation: none;
76
- }
77
- `;t.p`
78
- font-weight: 700;
79
- font-size: 16px;
80
- margin: 2px 0 0;
81
- `;const{colors:w,gradients:Ee,radius:Me}=A,Pe=t(re)`
82
- width: min(460px, 94vw);
83
- text-align: left;
84
- align-items: stretch;
85
- `,Be=t.div`
86
- height: 6px;
87
- border-radius: 999px;
88
- background: ${w.line};
89
- overflow: hidden;
90
- margin: 6px 0 14px;
91
- `,Qe=t.div`
92
- height: 100%;
93
- width: 0;
94
- background: ${Ee.amethyst};
95
- border-radius: 999px;
96
- transition: width 0.45s ease;
97
- `,We=t.ul`
98
- list-style: none;
99
- margin: 0;
100
- padding: 0;
101
- display: flex;
102
- flex-direction: column;
103
- gap: 8px;
104
- /* The elastic part of a viewport-capped modal: it gives up height before anything else. The floor is
105
- explicit because a scroll container's automatic minimum size is zero — it would otherwise collapse
106
- to nothing on a short screen instead of just showing fewer rows. */
107
- min-height: 96px;
108
- max-height: 320px;
109
- overflow-y: auto;
110
- `,qe=t.li`
111
- display: grid;
112
- grid-template-columns: 34px 1fr auto auto;
113
- align-items: center;
114
- gap: 10px;
115
- padding: 8px;
116
- border-radius: 10px;
117
- transition: background 0.2s;
118
-
119
- &[data-status='active'] {
120
- background: ${w.rarityBg};
121
- }
122
- &[data-status='done'] {
123
- opacity: 0.75;
124
- }
125
- &[data-status='skipped'],
126
- &[data-status='failed'] {
127
- opacity: 0.6;
128
- }
129
- `,Ne=t.span`
130
- width: 34px;
131
- height: 34px;
132
- border-radius: ${Me.btn};
133
- overflow: hidden;
134
- background: ${w.media};
135
- display: grid;
136
- place-items: center;
137
-
138
- & img {
139
- width: 100%;
140
- height: 100%;
141
- object-fit: contain;
142
- }
143
- `,De=t.span`
144
- font-weight: 600;
145
- font-size: 14px;
146
- white-space: nowrap;
147
- overflow: hidden;
148
- text-overflow: ellipsis;
149
- `,Oe=t.span`
150
- font-weight: 700;
151
- font-size: 13px;
152
- color: ${w.text2};
153
- `,Ue=t.span`
154
- font-size: 12px;
155
- font-weight: 700;
156
- color: ${w.accent};
157
- display: inline-flex;
158
- align-items: center;
159
- gap: 6px;
160
- justify-content: flex-end;
161
- min-width: 74px;
162
- `,Ke=t.span`
163
- color: ${w.muted2};
164
- font-weight: 600;
165
- `,Ge=t.span`
166
- color: ${w.muted};
167
- font-weight: 600;
168
- `,J=t.span`
169
- color: ${w.errStrong};
170
- font-weight: 600;
171
- `,Ye=t.span`
172
- display: flex;
173
- align-items: center;
174
- justify-content: center;
175
- margin-bottom: 4px;
176
- `,He=t.span`
177
- width: 14px;
178
- height: 14px;
179
- margin: 0;
180
- border-width: 2px;
181
- `,Ve=t.span`
182
- width: 20px;
183
- height: 20px;
184
- border-radius: 50%;
185
- background: ${w.ok};
186
- color: ${w.white};
187
- display: grid;
188
- place-items: center;
189
- font-size: 12px;
190
- `,Ze=t.p`
191
- margin: 12px 0 0;
192
- `;function Je(a,l){switch(a==null?void 0:a.step){case"cancelling":return l?n("migrate.phaseCancelConfirm"):n("migrate.phaseCancel");case"confirming-cancel":return l?n("migrate.phaseConfirmingCancel"):n("migrate.phaseConfirmingCancelManaged");case"authorising":return l?n("migrate.phaseAuthoriseConfirm"):n("migrate.phaseAuthorise");case"signing":return l?n("migrate.phaseSignConfirm"):n("migrate.phaseSign");case"publishing":return n("migrate.phasePublishing");case"indexing":return n("migrate.phaseIndexing",{attempt:a.attempt,of:a.of});default:return l?n("migrate.statusConfirm"):n("migrate.statusAdding")}}function Xe({queue:a,session:l,onClose:h,onDone:I}){const Q=le(),v=he(l.providerType),[W,_]=g.useState(()=>a.map(()=>null)),[k,E]=g.useState(null),[c,y]=g.useState(()=>a.map(()=>"pending")),[x,M]=g.useState("running"),$=g.useRef(!1),C=g.useRef(!1);g.useEffect(()=>(C.current=!1,$.current||($.current=!0,v&&ke(a.map(r=>r.item),l.address).then(r=>{r&&E({approvals:r.approvals,total:r.total})}).catch(()=>{}),(async()=>{for(let r=0;r<a.length;r++){if(C.current)return;y(m=>m.map((u,f)=>f===r?"active":u));try{await $e(a[r].item,a[r].priceCredits,l,{onPhase:m=>_(u=>u.map((f,z)=>z===r?m:f))}),ge("Shop Migrated Listing",{item_id:a[r].item.itemId??a[r].item.oldTradeId??null,contract_address:a[r].item.contractAddress,new_price_credits:a[r].priceCredits,new_price_usd:O(a[r].priceCredits)}),y(m=>m.map((u,f)=>f===r?"done":u))}catch(m){if(m instanceof Ce)U(m,{flow:"import_listing",step:"relist",itemId:a[r].item.itemId??a[r].item.oldTradeId}),y(u=>u.map((f,z)=>z===r?"unlisted":f));else{const u=m,f=u.code===4001||/reject|denied|cancel/i.test(u.message??"");f||U(m,{flow:"import_listing",itemId:a[r].item.itemId??a[r].item.oldTradeId}),y(z=>z.map((oe,de)=>de===r?f?"skipped":"failed":oe))}}}M("finished")})()),()=>{C.current=!0}),[]);const S=c.filter(d=>d==="done").length,P=c.findIndex(d=>d==="active"),q=Math.round(c.filter(d=>d!=="pending"&&d!=="active").length/a.length*100),L=c.filter(d=>d==="skipped").length,T=c.filter(d=>d==="failed").length,i=c.filter(d=>d==="unlisted").length,o=T+i;function p(){I({listed:S,failed:o,cancelled:L}),h()}const j=g.useRef(!1);return g.useEffect(()=>{x!=="finished"||j.current||(j.current=!0,!(o>0)&&p())},[x,o]),x==="finished"?o===0?null:e.jsx(V,{role:"presentation",children:e.jsxs(re,{"data-failure":!0,role:"dialog","aria-modal":"true","data-testid":i>0?"migrate-unlisted":"migrate-failed",children:[e.jsx(Ye,{"aria-hidden":!0,children:e.jsx(ze,{size:72})}),e.jsx(Z,{children:i>0?n("migrate.unlistedTitle"):n("migrate.failedTitle")}),e.jsxs("p",{className:"muted",style:{margin:0},children:[i>0?n("migrate.unlistedSummary",{count:i}):"",T>0?(i>0?" ":"")+n("migrate.failedSummary",{count:T}):"",S>0?" "+n("migrate.listedSummary",{count:S,currency:N.name}):"",L>0?" "+n("migrate.skippedSummary",{count:L}):""]}),e.jsxs(_e,{"data-actions":!0,children:[e.jsx(B,{variant:"ghost",onClick:p,children:n("getCredits.done")}),i>0?e.jsx(B,{variant:"purple",onClick:()=>{I({listed:S,failed:o,cancelled:L}),h(),Q(se)},children:n("migrate.goToMyAssets")}):null]})]})}):e.jsx(V,{role:"presentation",children:e.jsxs(Pe,{"data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx(Z,{children:n("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[v?n("migrate.subConfirm"):n("migrate.subManaged")," ",P>=0?n("migrate.progressCount",{current:P+1,total:a.length}):""]}),e.jsx(Be,{children:e.jsx(Qe,{style:{width:`${q}%`}})}),e.jsx(We,{children:a.map((d,r)=>e.jsxs(qe,{"data-status":c[r],children:[e.jsx(Ne,{children:d.item.thumbnail?e.jsx("img",{src:d.item.thumbnail,alt:""}):null}),e.jsx(De,{title:d.item.name,children:d.item.name||n("migrate.itemFallback")}),e.jsxs(Oe,{children:[e.jsx(D,{className:"ccy-mark"})," ",d.priceCredits.toLocaleString()]}),e.jsx(Ue,{"data-testid":c[r]==="active"?"migrate-active-status":void 0,children:c[r]==="active"?e.jsxs(e.Fragment,{children:[e.jsx(He,{className:"spinner","aria-hidden":!0})," ",Je(W[r],v)]}):c[r]==="done"?e.jsx(Ve,{children:e.jsx(Te,{})}):c[r]==="skipped"?e.jsx(Ge,{children:n("migrate.statusSkipped")}):c[r]==="failed"?e.jsx(J,{children:n("migrate.statusFailed")}):c[r]==="unlisted"?e.jsx(J,{title:n("migrate.unlistedTooltip"),children:n("migrate.statusUnlisted")}):e.jsx(Ke,{children:n("migrate.statusWaiting")})})]},d.item.oldTradeId))}),e.jsx(Ze,{className:"muted small",children:v?k?n(k.approvals>0?"migrate.hintCountApproval":"migrate.hintCount",{total:k.total}):n("migrate.hintConfirm"):n("migrate.hintManaged")})]})})}const et="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='84.837'%20height='84.837'%20viewBox='0%200%2084.837%2084.837'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group'%3e%3cpath%20id='Vector'%20d='M29.2935%2033.6675L43.5472%2044.36C44.4303%2045.0223%2045.5311%2045.3263%2046.6288%2045.2111C47.7266%2045.0959%2048.7403%2044.5699%2049.4666%2043.7387L77.4185%2011.7925'%20stroke='url(%23paint0_linear_0_74)'%20stroke-width='6.08696'%20stroke-linecap='round'/%3e%3cpath%20id='Vector_2'%20d='M81.7935%2042.4178C81.7936%2050.6451%2079.2167%2058.6658%2074.4245%2065.3533C69.6323%2072.0409%2062.8657%2077.0594%2055.075%2079.7039C47.2843%2082.3485%2038.8609%2082.4862%2030.9879%2080.0978C23.1149%2077.7094%2016.1878%2072.9149%2011.1796%2066.3876C6.17126%2059.8603%203.33339%2051.9282%203.06452%2043.7053C2.79565%2035.4824%205.10927%2027.3818%209.68046%2020.5413C14.2516%2013.7008%2020.8507%208.46394%2028.5509%205.56634C36.251%202.66875%2044.6654%202.25594%2052.6122%204.38589'%20stroke='url(%23paint1_linear_0_74)'%20stroke-width='6.08696'%20stroke-linecap='round'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_74'%20x1='27.7771'%20y1='28.5159'%20x2='111.866'%20y2='17.1154'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_0_74'%20x1='0.562175'%20y1='42.4235'%20x2='139.458'%20y2='29.3377'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",{colors:s,font:tt,media:b,radius:F}=A,it=t.div`
193
- display: flex;
194
- flex-direction: column;
195
- align-items: center;
196
- gap: 24px;
197
- padding: 24px 20px 80px;
198
- `,nt=t.div`
199
- /* 615px in the design; capped rather than fixed so it still fits a phone. */
200
- width: 100%;
201
- max-width: 615px;
202
- display: flex;
203
- flex-direction: column;
204
- align-items: center;
205
- justify-content: center;
206
- gap: 24px;
207
- padding: 16px;
208
- border-radius: ${F.modal};
209
- background: ${s.white};
210
- text-align: center;
211
- `,at=t.span`
212
- flex-shrink: 0;
213
- width: 105px;
214
- height: 105px;
215
- display: flex;
216
- align-items: center;
217
- justify-content: center;
218
- overflow: hidden;
219
-
220
- img {
221
- width: 84.837px;
222
- height: 84.837px;
223
- }
224
- `,st=t.div`
225
- width: 100%;
226
- display: flex;
227
- flex-direction: column;
228
- align-items: center;
229
- gap: 12px;
230
- padding-bottom: 16px;
231
- line-height: 1.6;
232
- color: ${s.text};
233
- `,rt=t.h2`
234
- margin: 0;
235
- font-size: 20px;
236
- font-weight: 700;
237
- `,ot=t.p`
238
- margin: 0;
239
- font-size: 16px;
240
- font-weight: 400;
241
- `,dt=t.div`
242
- width: 310px;
243
- max-width: 100%;
244
- padding-bottom: 16px;
245
- `,lt=t(B)`
246
- width: 100%;
247
- height: 56px;
248
- border-radius: 12px;
249
- font-size: 15px;
250
- /* The variant sets 0.046em, which at 15px is 0.69px; the design asks for 0.46px flat. */
251
- letter-spacing: 0.46px;
252
- /* Filled FLAT with the accent here, not with the purple variant's amethyst gradient. Doubled ampersand
253
- because the variant's own fill is an attribute selector, which outranks a plain declaration — and the
254
- variant's hover overlay is that same accent, so it steps up a shade to still read as a hover. */
255
- &&[data-variant='purple'] {
256
- background: ${s.accent};
257
- }
258
-
259
- &:hover:not(:disabled)::before,
260
- &:active:not(:disabled)::before {
261
- background: ${s.accentHover};
262
- }
263
- `,X=t.div`
264
- max-width: 1003px;
265
- margin: 0 auto;
266
- padding-bottom: 120px;
267
- display: flex;
268
- flex-direction: column;
269
- gap: 12px;
270
- font-family: ${tt.sans};
271
- `,ct=t.header`
272
- display: flex;
273
- flex-direction: column;
274
- gap: 16px;
275
- padding: 10px 12px;
276
- `,pt=t.div`
277
- display: flex;
278
- flex-direction: column;
279
- gap: 8px;
280
- `,ht=t.h2`
281
- margin: 0;
282
- font-weight: 600;
283
- font-size: 20px;
284
- line-height: 24px;
285
- letter-spacing: 0.46px;
286
- color: ${s.white};
287
- `,gt=t.p`
288
- margin: 0;
289
- font-weight: 500;
290
- font-size: 14px;
291
- line-height: 1.334;
292
- color: ${s.gray4};
293
- `,xt=t.a`
294
- display: inline-flex;
295
- align-items: center;
296
- gap: 2px;
297
- font-weight: 600;
298
- font-size: 14px;
299
- line-height: 30px;
300
- text-decoration: underline;
301
- color: ${s.white};
302
-
303
- .ico {
304
- width: 13px;
305
- height: 13px;
306
- }
307
- &:focus-visible {
308
- outline: 2px solid ${s.white};
309
- outline-offset: 2px;
310
- }
311
- `,ee=t.hr`
312
- width: 100%;
313
- height: 0;
314
- margin: 0;
315
- border: 0;
316
- border-top: 1px solid rgba(255, 255, 255, 0.25);
317
- `,mt=t.div`
318
- display: flex;
319
- flex-direction: column;
320
- gap: 8px;
321
- padding: 12px;
322
- `,ut=t(Le)`
323
- font-size: 14px;
324
- line-height: 1.334;
325
- color: ${s.text2};
326
- `,ft=t.span`
327
- flex: none;
328
- display: grid;
329
- place-items: center;
330
- width: 20px;
331
- height: 20px;
332
- border-radius: ${F.pill};
333
- background: ${s.dclRed};
334
- font-weight: 600;
335
- font-size: 12px;
336
- line-height: 1.6;
337
- color: ${s.white};
338
- `,wt=t.div`
339
- display: flex;
340
- flex-direction: column;
341
- gap: 4px;
342
- `,bt=t.label`
343
- display: flex;
344
- align-items: center;
345
- align-self: flex-start;
346
- font-size: 14px;
347
- line-height: 1.2;
348
- color: ${s.white};
349
- cursor: pointer;
350
- `,te=t.span`
351
- flex: none;
352
- display: grid;
353
- place-items: center;
354
- width: 40px;
355
- height: 40px;
356
-
357
- & input:checked,
358
- & input[data-indeterminate='true'] {
359
- background: ${s.dclRed};
360
- border-color: ${s.dclRed};
361
- }
362
-
363
- &[data-tone='on-dark'] input {
364
- background: transparent;
365
- border-color: ${s.white};
366
- }
367
- &[data-tone='on-dark'] input:checked,
368
- &[data-tone='on-dark'] input[data-indeterminate='true'] {
369
- background: ${s.dclRed};
370
- border-color: ${s.dclRed};
371
- }
372
- &[data-tone='on-dark'] input:focus-visible {
373
- outline-color: ${s.white};
374
- }
375
- `,yt=t.div`
376
- display: flex;
377
- flex-direction: column;
378
- gap: 12px;
379
- `,vt=t.article`
380
- display: flex;
381
- align-items: center;
382
- flex-wrap: wrap;
383
- gap: 12px;
384
- row-gap: 8px;
385
- padding: 12px 24px 12px 0;
386
- border: 1px solid ${s.gray4};
387
- border-radius: ${F.card};
388
- background: ${s.white};
389
- overflow: hidden;
390
- transition: opacity 0.25s ease;
391
- `,jt=t.div`
392
- flex: none;
393
- display: flex;
394
- align-items: center;
395
-
396
- /* On a phone the design tops the checkbox against the thumbnail instead of centring it — the card is
397
- three lines tall there, and a centred tick drifts away from the item it belongs to. */
398
- ${b.maxWidth("mobile")} {
399
- align-items: flex-start;
400
- }
401
- `,kt=t.div`
402
- flex: none;
403
- display: grid;
404
- place-items: center;
405
- width: 74.289px;
406
- height: 74px;
407
- border-radius: 6.482px;
408
- background: ${s.media};
409
- overflow: hidden;
410
-
411
- & img {
412
- width: 61.57px;
413
- height: 61.281px;
414
- object-fit: contain;
415
- filter: drop-shadow(0.303px 1.212px 1.516px rgba(0, 0, 0, 0.1));
416
- }
417
- `,$t=t.div`
418
- /* Basis (not min-width) is what makes the price column wrap to its own line on a phone; min-width: 0
419
- then lets the name ellipsize once it is on a line of its own. */
420
- flex: 1 1 150px;
421
- min-width: 0;
422
- display: flex;
423
- flex-direction: column;
424
- justify-content: center;
425
- gap: 8px;
426
- padding: 16px 8px;
427
-
428
- /* A smaller basis on a phone, where the name and chips have to STAY beside the thumbnail: at 150px the
429
- pair no longer fits the line on the narrowest handsets and the block dropped below the artwork. */
430
- ${b.maxWidth("mobile")} {
431
- flex-basis: 100px;
432
- }
433
- `,Ct=t.div`
434
- font-weight: 600;
435
- font-size: 16px;
436
- line-height: 1.2;
437
- color: ${s.text};
438
- white-space: nowrap;
439
- overflow: hidden;
440
- text-overflow: ellipsis;
441
- `,St=t.div`
442
- display: flex;
443
- align-items: flex-end;
444
- gap: 4px;
445
- `,ie=t(xe)`
446
- padding: 1.623px 6.491px;
447
- font-weight: 600;
448
- font-size: 8.56px;
449
- line-height: 11.851px;
450
-
451
- /* Same padding as the rarity chip beside it — the design sets the category chip flush with it, and
452
- only the narrower gender chip (which this row does not carry) gets the tighter inset. Restated
453
- rather than inherited because the shared chip's own icon variant is a more specific selector. */
454
- &[data-variant='icon'] {
455
- padding: 1.623px 6.491px;
456
- }
457
- &[data-variant='icon'] .ico {
458
- width: 14.605px;
459
- height: 14.605px;
460
- }
461
- `,Lt=t.div`
462
- flex: none;
463
- /* Right-aligns the block on the desktop row. */
464
- margin-left: auto;
465
- display: flex;
466
- flex-direction: column;
467
- align-items: flex-end;
468
- justify-content: center;
469
- gap: 4px;
470
-
471
- /* The phone card gives the price a line of its own, running the full width of the row — but indented by
472
- the checkbox slot, so it starts under the thumbnail rather than under the tick. */
473
- ${b.maxWidth("mobile")} {
474
- flex: 1 1 100%;
475
- margin-left: 40px;
476
- align-items: stretch;
477
- }
478
- `,It=t.div`
479
- display: flex;
480
- align-items: center;
481
- justify-content: space-between;
482
- gap: 8px;
483
- width: 144px;
484
- height: 42px;
485
- padding: 8px;
486
- border: 0.5px solid ${s.muted2};
487
- border-radius: ${F.btn};
488
- background: ${s.panel};
489
-
490
- /* The OUTLINED credit glyph, not the filled gradient mark: the filled one is right for a price you are
491
- being shown, and this is a price you are typing. The design still draws it in the currency's own red
492
- rather than in the input's ink, so the unit stays legible as a unit. 17px is the size it draws at. */
493
- & .ico {
494
- flex: 0 0 auto;
495
- width: 17px;
496
- height: 17px;
497
- color: ${s.dclRed};
498
- }
499
- transition:
500
- border-color 0.15s,
501
- box-shadow 0.15s;
502
-
503
- &:focus-within {
504
- border-color: ${s.accent};
505
- box-shadow: 0 0 0 3px ${s.rarityBg};
506
- }
507
-
508
- ${b.maxWidth("mobile")} {
509
- width: 100%;
510
- }
511
- `,Tt=t.input`
512
- flex: 1 1 auto;
513
- min-width: 0;
514
- border: 0;
515
- outline: 0;
516
- background: transparent;
517
- font: inherit;
518
- font-weight: 600;
519
- font-size: 16px;
520
- color: ${s.text};
521
- text-align: right;
522
- font-variant-numeric: tabular-nums;
523
- `,zt=t.div`
524
- display: flex;
525
- align-items: baseline;
526
- gap: 4px;
527
- font-weight: 500;
528
- font-size: 12px;
529
- color: ${s.gray0};
530
-
531
- /* Centred under the full-width field it converts, not parked at its right edge. */
532
- ${b.maxWidth("mobile")} {
533
- justify-content: center;
534
- }
535
- `,At=t.span`
536
- font-weight: 300;
537
- font-size: 10px;
538
- color: ${s.muted};
539
- `,Rt=t.div`
540
- height: 101px;
541
- border: 1px solid transparent;
542
- border-radius: ${F.card};
543
- background: linear-gradient(100deg, #ededed 30%, #f7f7f7 50%, #ededed 70%);
544
- background-size: 200% 100%;
545
- animation: shimmer 1.3s infinite linear;
546
- `,Ft=t.div`
547
- position: fixed;
548
- left: 0;
549
- right: 0;
550
- bottom: 0;
551
- z-index: 30;
552
- background: ${s.white};
553
- backdrop-filter: blur(12px);
554
- border-top: 1px solid ${s.line};
555
- `,_t=t.div`
556
- max-width: 1003px;
557
- margin: 0 auto;
558
- padding: 15px 20px;
559
- display: flex;
560
- align-items: center;
561
- gap: 16px;
562
-
563
- /* On a phone the design stacks the bar: the summary line, then the cta across the full width. */
564
- ${b.maxWidth("mobile")} {
565
- flex-direction: column;
566
- align-items: stretch;
567
- padding: 12px 16px;
568
- gap: 12px;
569
- }
570
- `,Et=t.div`
571
- ${b.maxWidth("mobile")} {
572
- display: flex;
573
- flex-direction: row-reverse;
574
- align-items: center;
575
- justify-content: space-between;
576
- gap: 12px;
577
- }
578
- `,Mt=t.div`
579
- display: flex;
580
- align-items: center;
581
- gap: 6px;
582
- font-weight: 600;
583
- font-size: 16px;
584
- color: ${s.text};
585
-
586
- & .ico {
587
- width: 17px;
588
- height: 17px;
589
- }
590
- `,Pt=t.div`
591
- font-size: 13px;
592
- color: ${s.muted};
593
- `,Bt=t.span`
594
- flex: 1 1 auto;
595
-
596
- ${b.maxWidth("mobile")} {
597
- display: none;
598
- }
599
- `,Qt=t(B)`
600
- flex: none;
601
- min-width: 260px;
602
- padding: 13px 24px;
603
-
604
- ${b.maxWidth("mobile")} {
605
- min-width: 0;
606
- }
607
- `,ne=t.div`
608
- padding: 16px 12px 0;
609
-
610
- /* The outlined dark rows, but NOT the credits page's centred 32px heading that ships with them: here
611
- the section is one more block in the tool's left-aligned column, so the heading keeps the light
612
- skin's size and alignment. The doubled ampersand is what outranks Faq's own tone selectors, which
613
- Emotion inserts after this block (the Faq renders inside it). */
614
- && [data-tone='on-dark'] {
615
- align-items: stretch;
616
- }
617
- && [data-testid='faq-title'] {
618
- font-size: 20px;
619
- text-align: left;
620
-
621
- ${b.maxWidth("mobile")} {
622
- font-size: 18px;
623
- }
624
- }
625
- `,ae=[{question:"faq.sellers.whatAreQ",answer:"faq.sellers.whatAreA"},{question:"faq.sellers.whyCreditsQ",answer:"faq.sellers.whyCreditsA"},{question:"faq.sellers.receiveCreditsQ",answer:"faq.sellers.receiveCreditsA"},{question:"faq.sellers.changePriceQ",answer:"faq.sellers.changePriceA"},{question:"faq.sellers.mustSwitchQ",answer:"faq.sellers.mustSwitchA"},{question:"faq.sellers.suggestedPriceQ",answer:"faq.sellers.suggestedPriceA"}],Wt="https://docs.decentraland.org";function qt(a){try{return je(BigInt(a))}catch{return null}}function ti(){const{session:a}=me(),l=ue(),{items:h,isLoading:I}=Se(),[Q,v]=g.useState({}),[W,_]=g.useState(new Set),[k,E]=g.useState(null);g.useEffect(()=>{h.length&&v(i=>{const o={...i};for(const p of h)o[p.oldTradeId]==null&&(o[p.oldTradeId]=p.suggestedCredits);return o})},[h]);const c=i=>!W.has(i),y=i=>Q[i.oldTradeId]??i.suggestedCredits,x=h.filter(i=>c(i.oldTradeId)),M=x.reduce((i,o)=>i+y(o),0),$=h.length>0&&x.length===h.length,C=x.length>0&&!$;function S(i,o){const p=o.replace(/[^\d]/g,"");v(j=>({...j,[i]:p===""?0:parseInt(p,10)}))}function P(i){_(o=>{const p=new Set(o);return p.has(i)?p.delete(i):p.add(i),p})}function q(){_($?new Set(h.map(i=>i.oldTradeId)):new Set)}function L(i){return i.map(o=>({item:o,priceCredits:Math.max(1,y(o))}))}function T(i){l.invalidateQueries({queryKey:["importable"]}),l.invalidateQueries({queryKey:["shop-items"]}),l.invalidateQueries({queryKey:["catalog-items"]}),l.invalidateQueries({queryKey:["overview-listings"]}),l.invalidateQueries({queryKey:["upsell-listings"]}),l.invalidateQueries({queryKey:["my-assets"]}),l.invalidateQueries({queryKey:["collection-sale-state"]}),i.failed>0?G.error(n(i.listed>0?"importListings.toastPartial":"importListings.toastFailed")):i.listed>0&&G.success(n("importListings.toastUpdated"))}return!I&&h.length===0?e.jsxs(X,{children:[e.jsx(it,{"data-testid":"import-empty",children:e.jsxs(nt,{children:[e.jsx(at,{"aria-hidden":!0,children:e.jsx("img",{src:et,alt:"",width:85,height:85})}),e.jsxs(st,{children:[e.jsx(rt,{children:n("importListings.emptyTitle")}),e.jsx(ot,{children:n("importListings.emptyBody")})]}),e.jsx(dt,{children:e.jsx(lt,{as:ce,to:se,variant:"purple",children:n("importListings.goToMyAssets")})})]})}),e.jsx(ne,{children:e.jsx(Y,{title:"faq.title",entries:ae,tone:"on-dark"})})]}):e.jsxs(X,{children:[e.jsxs(ct,{children:[e.jsxs(pt,{children:[e.jsx(ht,{children:n("importListings.title")}),e.jsxs("div",{children:[e.jsx(gt,{children:n("importListings.lede",{currency:fe(N.name)})}),e.jsxs(xt,{href:Wt,target:"_blank",rel:"noopener noreferrer",children:[n("importListings.learnMore"),e.jsx(K,{name:"external-link",className:"ico","aria-hidden":!0})]})]})]}),e.jsx(Ie,{tone:"on-dark"})]}),e.jsx(ee,{}),e.jsxs(mt,{children:[e.jsxs(ut,{"data-testid":"import-progress",children:[e.jsx(ft,{"data-testid":"import-count",children:h.length}),n("importListings.updatePricing")]}),e.jsxs(wt,{children:[e.jsxs(bt,{children:[e.jsx(te,{"data-tone":"on-dark",children:e.jsx(H,{type:"checkbox",checked:$,ref:i=>{i&&(i.indeterminate=C)},"data-indeterminate":C,onChange:q,"data-testid":"import-select-all","aria-label":n("importListings.selectAllAria")})}),n("importListings.selectAll")]}),e.jsx(yt,{children:I?Array.from({length:4}).map((i,o)=>e.jsx(Rt,{},o)):h.map(i=>{const o=y(i),p=we({...i,wearableCategory:i.wearableCategory??void 0}),j=qt(i.manaWei);return e.jsxs(vt,{"data-off":c(i.oldTradeId)?void 0:!0,children:[e.jsxs(jt,{children:[e.jsx(te,{children:e.jsx(H,{type:"checkbox",checked:c(i.oldTradeId),onChange:()=>P(i.oldTradeId),"data-testid":"import-row-check","aria-label":n("importListings.includeItem",{name:i.name})})}),e.jsx(kt,{children:i.thumbnail?e.jsx("img",{src:i.thumbnail,alt:""}):null})]}),e.jsxs($t,{children:[e.jsx(Ct,{title:i.name,children:i.name||n("importListings.itemFallback")}),e.jsxs(St,{children:[e.jsx(ie,{"data-variant":"rarity",style:{background:ve(i.rarity),color:ye(i.rarity)},children:be(i.rarity)}),p?e.jsx(ie,{"data-variant":"icon",children:e.jsx(K,{name:p,"aria-hidden":!0})}):null]})]}),e.jsxs(Lt,{children:[e.jsxs(It,{children:[e.jsx(D,{}),e.jsx(Tt,{"data-testid":"imp-price-input",inputMode:"numeric",value:o.toLocaleString(),onChange:d=>S(i.oldTradeId,d.target.value),"aria-label":n("importListings.priceAria",{currency:N.name,name:i.name})})]}),e.jsxs(zt,{children:[e.jsxs("span",{children:["$",O(o).toFixed(2)]}),j?e.jsx(At,{children:n("importListings.wasMana",{amount:j})}):null]})]})]},i.oldTradeId)})})]})]}),e.jsx(ee,{}),e.jsx(ne,{children:e.jsx(Y,{title:"faq.title",entries:ae,tone:"on-dark"})}),e.jsx(Ft,{children:e.jsxs(_t,{children:[e.jsxs(Et,{children:[e.jsxs(Mt,{children:[e.jsx(D,{})," ",M.toLocaleString()]}),e.jsx(Pt,{children:n("importListings.selectedSummary",{count:x.length,usd:O(M).toFixed(2)})})]}),e.jsx(Bt,{}),e.jsx(Qt,{variant:"red","data-testid":"import-list-all",disabled:x.length===0,onClick:()=>E(L(x)),children:n("importListings.listAll",{count:x.length})})]})}),k&&a?e.jsx(Xe,{queue:k,session:a,onClose:()=>E(null),onDone:T}):null]})}export{ti as ImportListings};