@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
@@ -0,0 +1,625 @@
1
+ import{j as e,b as ce,r as p,L as pe}from"./react-BYHuwl8r.js";import{t as A,s as n,w as he,y as ge,b as a,C as D,B as P,bY as re,z as O,Z as xe,bk as K,F as U,Q as me,o as ue,A as fe,bj as we,I as G,aa as be,ac as ye,bZ as ve,b_ as je,b$ as ke,E as Y}from"./index-DZSPT_NS.js";import{c as $e,i as Ce,R as Ie,u as Se}from"./useImportable-QV1qlFEy.js";import{S as Te,C as Le}from"./ManaPricingBanner.styles-Dp4OJnuy.js";import{F as H}from"./Faq-Yv2mYyMA.js";import{C as V}from"./field.styles-B3Ufd7iA.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./buy-wbuVsA9p.js";import"./authorizations-BGawCoH1.js";import"./sendMetaTransaction-C0JzN9LI.js";function ze({size:s=12,...d}){return e.jsx("svg",{viewBox:"0 0 20 20",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ae({size:s=84.837,...d}){return e.jsxs("svg",{viewBox:"0 0 84.837 84.837",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,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:Re,z:Fe}=A,_e=he`
2
+ 0% {
3
+ transform: scale(0);
4
+ opacity: 0;
5
+ }
6
+ 100% {
7
+ transform: scale(1);
8
+ opacity: 1;
9
+ }
10
+ `,Z=n.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: ${Fe.overlay};
19
+ `,oe=n.div`
20
+ background: ${R.white};
21
+ border-radius: ${Re.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
+ `,J=n.h2`
44
+ font-size: 20px;
45
+ `;n.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 Ee=n.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
+ `;n.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: ${_e} 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.4);
73
+
74
+ @media (prefers-reduced-motion: reduce) {
75
+ animation: none;
76
+ }
77
+ `;n.p`
78
+ font-weight: 700;
79
+ font-size: 16px;
80
+ margin: 2px 0 0;
81
+ `;const{colors:u,gradients:Me,radius:Qe}=A,Pe=n(oe)`
82
+ width: min(460px, 94vw);
83
+ text-align: left;
84
+ align-items: stretch;
85
+ `,Be=n.div`
86
+ height: 6px;
87
+ border-radius: 999px;
88
+ background: ${u.line};
89
+ overflow: hidden;
90
+ margin: 6px 0 14px;
91
+ `,qe=n.div`
92
+ height: 100%;
93
+ width: 0;
94
+ background: ${Me.amethyst};
95
+ border-radius: 999px;
96
+ transition: width 0.45s ease;
97
+ `,We=n.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
+ `,Ne=n.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: ${u.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
+ `,De=n.span`
130
+ width: 34px;
131
+ height: 34px;
132
+ border-radius: ${Qe.btn};
133
+ overflow: hidden;
134
+ background: ${u.media};
135
+ display: grid;
136
+ place-items: center;
137
+
138
+ & img {
139
+ width: 100%;
140
+ height: 100%;
141
+ object-fit: contain;
142
+ }
143
+ `,Oe=n.span`
144
+ font-weight: 600;
145
+ font-size: 14px;
146
+ white-space: nowrap;
147
+ overflow: hidden;
148
+ text-overflow: ellipsis;
149
+ `,Ke=n.span`
150
+ font-weight: 700;
151
+ font-size: 13px;
152
+ color: ${u.text2};
153
+ `,Ue=n.span`
154
+ font-size: 12px;
155
+ font-weight: 700;
156
+ color: ${u.accent};
157
+ display: inline-flex;
158
+ align-items: center;
159
+ gap: 6px;
160
+ justify-content: flex-end;
161
+ min-width: 74px;
162
+ `,Ge=n.span`
163
+ color: ${u.muted2};
164
+ font-weight: 600;
165
+ `,Ye=n.span`
166
+ color: ${u.muted};
167
+ font-weight: 600;
168
+ `,X=n.span`
169
+ color: ${u.errStrong};
170
+ font-weight: 600;
171
+ `,He=n.span`
172
+ display: flex;
173
+ align-items: center;
174
+ justify-content: center;
175
+ margin-bottom: 4px;
176
+ `,Ve=n.span`
177
+ width: 14px;
178
+ height: 14px;
179
+ margin: 0;
180
+ border-width: 2px;
181
+ `,Ze=n.span`
182
+ width: 20px;
183
+ height: 20px;
184
+ border-radius: 50%;
185
+ background: ${u.ok};
186
+ color: ${u.white};
187
+ display: grid;
188
+ place-items: center;
189
+ font-size: 12px;
190
+ `,Je=n.p`
191
+ margin: 12px 0 0;
192
+ `;function Xe(s,d){switch(s==null?void 0:s.step){case"cancelling":return d?a("migrate.phaseCancelConfirm"):a("migrate.phaseCancel");case"confirming-cancel":return d?a("migrate.phaseConfirmingCancel"):a("migrate.phaseConfirmingCancelManaged");case"authorising":return d?a("migrate.phaseAuthoriseConfirm"):a("migrate.phaseAuthorise");case"signing":return d?a("migrate.phaseSignConfirm"):a("migrate.phaseSign");case"publishing":return a("migrate.phasePublishing");case"indexing":return a("migrate.phaseIndexing",{attempt:s.attempt,of:s.of});default:return d?a("migrate.statusConfirm"):a("migrate.statusAdding")}}function et({queue:s,session:d,onClose:h,onDone:I}){const B=ce(),y=ge(d.providerType),[q,_]=p.useState(()=>s.map(()=>null)),[x,E]=p.useState(null),[l,b]=p.useState(()=>s.map(()=>"pending")),[v,w]=p.useState("running"),S=p.useRef(!1),j=p.useRef(!1);p.useEffect(()=>(j.current=!1,S.current||(S.current=!0,y&&$e(s.map(i=>i.item),d.address).then(i=>{i&&E({approvals:i.approvals,total:i.total})}).catch(()=>{}),(async()=>{for(let i=0;i<s.length;i++){if(j.current)return;b(r=>r.map((c,g)=>g===i?"active":c));try{await Ce(s[i].item,s[i].priceCredits,d,{onPhase:r=>_(c=>c.map((g,z)=>z===i?r:g))}),xe("Shop Migrated Listing",{item_id:s[i].item.itemId??s[i].item.oldTradeId??null,contract_address:s[i].item.contractAddress,new_price_credits:s[i].priceCredits,new_price_usd:K(s[i].priceCredits)}),b(r=>r.map((c,g)=>g===i?"done":c))}catch(r){if(r instanceof Ie)U(r,{flow:"import_listing",step:"relist",itemId:s[i].item.itemId??s[i].item.oldTradeId}),b(c=>c.map((g,z)=>z===i?"unlisted":g));else{const c=r,g=c.code===4001||/reject|denied|cancel/i.test(c.message??"");g||U(r,{flow:"import_listing",itemId:s[i].item.itemId??s[i].item.oldTradeId}),b(z=>z.map((de,le)=>le===i?g?"skipped":"failed":de))}}}w("finished")})()),()=>{j.current=!0}),[]);const k=l.filter(t=>t==="done").length,M=l.findIndex(t=>t==="active"),W=Math.round(l.filter(t=>t!=="pending"&&t!=="active").length/s.length*100),C=l.filter(t=>t==="skipped").length,T=l.filter(t=>t==="failed").length,m=l.filter(t=>t==="unlisted").length,$=T+m;function L(){I({listed:k,failed:$,cancelled:C}),h()}const Q=p.useRef(!1);return p.useEffect(()=>{v!=="finished"||Q.current||(Q.current=!0,!($>0)&&L())},[v,$]),v==="finished"?$===0?null:e.jsx(Z,{role:"presentation",children:e.jsxs(oe,{"data-failure":!0,role:"dialog","aria-modal":"true","data-testid":m>0?"migrate-unlisted":"migrate-failed",children:[e.jsx(He,{"aria-hidden":!0,children:e.jsx(Ae,{size:72})}),e.jsx(J,{children:m>0?a("migrate.unlistedTitle"):a("migrate.failedTitle")}),e.jsxs("p",{className:"muted",style:{margin:0},children:[m>0?a("migrate.unlistedSummary",{count:m}):"",T>0?(m>0?" ":"")+a("migrate.failedSummary",{count:T}):"",k>0?" "+a("migrate.listedSummary",{count:k,currency:D.name}):"",C>0?" "+a("migrate.skippedSummary",{count:C}):""]}),e.jsxs(Ee,{"data-actions":!0,children:[e.jsx(P,{variant:"ghost",onClick:L,children:a("getCredits.done")}),m>0?e.jsx(P,{variant:"purple",onClick:()=>{I({listed:k,failed:$,cancelled:C}),h(),B(re)},children:a("migrate.goToMyAssets")}):null]})]})}):e.jsx(Z,{role:"presentation",children:e.jsxs(Pe,{"data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx(J,{children:a("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[y?a("migrate.subConfirm"):a("migrate.subManaged")," ",M>=0?a("migrate.progressCount",{current:M+1,total:s.length}):""]}),e.jsx(Be,{children:e.jsx(qe,{style:{width:`${W}%`}})}),e.jsx(We,{children:s.map((t,i)=>e.jsxs(Ne,{"data-status":l[i],children:[e.jsx(De,{children:t.item.thumbnail?e.jsx("img",{src:t.item.thumbnail,alt:""}):null}),e.jsx(Oe,{title:t.item.name,children:t.item.name||a("migrate.itemFallback")}),e.jsxs(Ke,{children:[e.jsx(O,{className:"ccy-mark"})," ",t.priceCredits.toLocaleString()]}),e.jsx(Ue,{"data-testid":l[i]==="active"?"migrate-active-status":void 0,children:l[i]==="active"?e.jsxs(e.Fragment,{children:[e.jsx(Ve,{className:"spinner","aria-hidden":!0})," ",Xe(q[i],y)]}):l[i]==="done"?e.jsx(Ze,{children:e.jsx(ze,{})}):l[i]==="skipped"?e.jsx(Ye,{children:a("migrate.statusSkipped")}):l[i]==="failed"?e.jsx(X,{children:a("migrate.statusFailed")}):l[i]==="unlisted"?e.jsx(X,{title:a("migrate.unlistedTooltip"),children:a("migrate.statusUnlisted")}):e.jsx(Ge,{children:a("migrate.statusWaiting")})})]},t.item.oldTradeId))}),e.jsx(Je,{className:"muted small",children:y?x?a(x.approvals>0?"migrate.hintCountApproval":"migrate.hintCount",{total:x.total}):a("migrate.hintConfirm"):a("migrate.hintManaged")})]})})}const tt="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:o,font:it,media:f,radius:F}=A,nt=n.div`
193
+ display: flex;
194
+ flex-direction: column;
195
+ align-items: center;
196
+ gap: 24px;
197
+ padding: 24px 20px 80px;
198
+ `,at=n.div`
199
+ /* Full width, so it lines up with the FAQ block below it rather than sitting narrower than everything
200
+ else on the page. */
201
+ width: 100%;
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: ${o.white};
210
+ text-align: center;
211
+ `,st=n.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
+ `,rt=n.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: ${o.text};
233
+ `,ot=n.h2`
234
+ margin: 0;
235
+ font-size: 20px;
236
+ font-weight: 700;
237
+ `,dt=n.p`
238
+ margin: 0;
239
+ font-size: 16px;
240
+ font-weight: 400;
241
+ `,lt=n.div`
242
+ width: 310px;
243
+ max-width: 100%;
244
+ padding-bottom: 16px;
245
+ `,ct=n(P)`
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: ${o.accent};
257
+ }
258
+
259
+ &:hover:not(:disabled)::before,
260
+ &:active:not(:disabled)::before {
261
+ background: ${o.accentHover};
262
+ }
263
+ `,ee=n.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: ${it.sans};
271
+ `,pt=n.header`
272
+ display: flex;
273
+ flex-direction: column;
274
+ gap: 16px;
275
+ padding: 10px 12px;
276
+ `,ht=n.div`
277
+ display: flex;
278
+ flex-direction: column;
279
+ gap: 8px;
280
+ `,gt=n.h2`
281
+ margin: 0;
282
+ font-weight: 600;
283
+ font-size: 20px;
284
+ line-height: 24px;
285
+ letter-spacing: 0.46px;
286
+ color: ${o.white};
287
+ `,xt=n.p`
288
+ margin: 0;
289
+ font-weight: 500;
290
+ font-size: 14px;
291
+ line-height: 1.334;
292
+ color: ${o.gray4};
293
+ `,mt=n.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: ${o.white};
302
+
303
+ .ico {
304
+ width: 13px;
305
+ height: 13px;
306
+ }
307
+ &:focus-visible {
308
+ outline: 2px solid ${o.white};
309
+ outline-offset: 2px;
310
+ }
311
+ `,te=n.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
+ `,ut=n.div`
318
+ display: flex;
319
+ flex-direction: column;
320
+ gap: 8px;
321
+ padding: 12px;
322
+ `,ft=n(Te)`
323
+ font-size: 14px;
324
+ line-height: 1.334;
325
+ color: ${o.text2};
326
+ `,wt=n.span`
327
+ flex: none;
328
+ display: grid;
329
+ place-items: center;
330
+ width: 20px;
331
+ height: 20px;
332
+ border-radius: ${F.pill};
333
+ background: ${o.dclRed};
334
+ font-weight: 600;
335
+ font-size: 12px;
336
+ line-height: 1.6;
337
+ color: ${o.white};
338
+ `,bt=n.div`
339
+ display: flex;
340
+ flex-direction: column;
341
+ gap: 4px;
342
+ `,yt=n.label`
343
+ display: flex;
344
+ align-items: center;
345
+ align-self: flex-start;
346
+ font-size: 14px;
347
+ line-height: 1.2;
348
+ color: ${o.white};
349
+ cursor: pointer;
350
+ `,ie=n.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: ${o.dclRed};
360
+ border-color: ${o.dclRed};
361
+ }
362
+
363
+ &[data-tone='on-dark'] input {
364
+ background: transparent;
365
+ border-color: ${o.white};
366
+ }
367
+ &[data-tone='on-dark'] input:checked,
368
+ &[data-tone='on-dark'] input[data-indeterminate='true'] {
369
+ background: ${o.dclRed};
370
+ border-color: ${o.dclRed};
371
+ }
372
+ &[data-tone='on-dark'] input:focus-visible {
373
+ outline-color: ${o.white};
374
+ }
375
+ `,vt=n.div`
376
+ display: flex;
377
+ flex-direction: column;
378
+ gap: 12px;
379
+ `,jt=n.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 ${o.gray4};
387
+ border-radius: ${F.card};
388
+ background: ${o.white};
389
+ overflow: hidden;
390
+ transition: opacity 0.25s ease;
391
+ `,kt=n.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
+ ${f.maxWidth("mobile")} {
399
+ align-items: flex-start;
400
+ }
401
+ `,$t=n.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: ${o.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
+ `,Ct=n.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
+ ${f.maxWidth("mobile")} {
431
+ flex-basis: 100px;
432
+ }
433
+ `,It=n.div`
434
+ font-weight: 600;
435
+ font-size: 16px;
436
+ line-height: 1.2;
437
+ color: ${o.text};
438
+ white-space: nowrap;
439
+ overflow: hidden;
440
+ text-overflow: ellipsis;
441
+ `,St=n.div`
442
+ display: flex;
443
+ align-items: flex-end;
444
+ gap: 4px;
445
+ `,ne=n(me)`
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
+ `,Tt=n.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
+ ${f.maxWidth("mobile")} {
474
+ flex: 1 1 100%;
475
+ margin-left: 40px;
476
+ align-items: stretch;
477
+ }
478
+ `,Lt=n.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 ${o.muted2};
487
+ border-radius: ${F.btn};
488
+ background: ${o.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: ${o.dclRed};
498
+ }
499
+ transition:
500
+ border-color 0.15s,
501
+ box-shadow 0.15s;
502
+
503
+ &:focus-within {
504
+ border-color: ${o.accent};
505
+ box-shadow: 0 0 0 3px ${o.rarityBg};
506
+ }
507
+
508
+ ${f.maxWidth("mobile")} {
509
+ width: 100%;
510
+ }
511
+ `,zt=n.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: ${o.text};
521
+ text-align: right;
522
+ font-variant-numeric: tabular-nums;
523
+ `,At=n.div`
524
+ display: flex;
525
+ align-items: baseline;
526
+ gap: 4px;
527
+ font-weight: 500;
528
+ font-size: 12px;
529
+ color: ${o.gray0};
530
+
531
+ /* Centred under the full-width field it converts, not parked at its right edge. */
532
+ ${f.maxWidth("mobile")} {
533
+ justify-content: center;
534
+ }
535
+ `,Rt=n.span`
536
+ font-weight: 300;
537
+ font-size: 10px;
538
+ color: ${o.muted};
539
+ `,Ft=n.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
+ `,_t=n.div`
547
+ position: fixed;
548
+ left: 0;
549
+ right: 0;
550
+ bottom: 0;
551
+ z-index: 30;
552
+ background: ${o.white};
553
+ backdrop-filter: blur(12px);
554
+ border-top: 1px solid ${o.line};
555
+ `,Et=n.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
+ ${f.maxWidth("mobile")} {
565
+ flex-direction: column;
566
+ align-items: stretch;
567
+ padding: 12px 16px;
568
+ gap: 12px;
569
+ }
570
+ `,Mt=n.div`
571
+ ${f.maxWidth("mobile")} {
572
+ display: flex;
573
+ flex-direction: row-reverse;
574
+ align-items: center;
575
+ justify-content: space-between;
576
+ gap: 12px;
577
+ }
578
+ `,Qt=n.div`
579
+ display: flex;
580
+ align-items: center;
581
+ gap: 6px;
582
+ font-weight: 600;
583
+ font-size: 16px;
584
+ color: ${o.text};
585
+
586
+ & .ico {
587
+ width: 17px;
588
+ height: 17px;
589
+ }
590
+ `,Pt=n.div`
591
+ font-size: 13px;
592
+ color: ${o.muted};
593
+ `,Bt=n.span`
594
+ flex: 1 1 auto;
595
+
596
+ ${f.maxWidth("mobile")} {
597
+ display: none;
598
+ }
599
+ `,qt=n(P)`
600
+ flex: none;
601
+ min-width: 260px;
602
+ padding: 13px 24px;
603
+
604
+ ${f.maxWidth("mobile")} {
605
+ min-width: 0;
606
+ }
607
+ `,ae=n.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
+ ${f.maxWidth("mobile")} {
622
+ font-size: 18px;
623
+ }
624
+ }
625
+ `,N=[5e3,15e3,35e3],se=[{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 Nt(s){try{return ke(BigInt(s))}catch{return null}}function ii(){const{session:s}=ue(),d=fe(),{items:h,isLoading:I}=Se(),[B,y]=p.useState({}),[q,_]=p.useState(new Set),[x,E]=p.useState(null),l=p.useRef({timer:null,alive:!0,migrated:new Set});p.useEffect(()=>{const t=l.current;return t.alive=!0,()=>{t.alive=!1,t.timer&&clearTimeout(t.timer)}},[]),p.useEffect(()=>{h.length&&y(t=>{const i={...t};for(const r of h)i[r.oldTradeId]==null&&(i[r.oldTradeId]=r.suggestedCredits);return i})},[h]);const b=t=>!q.has(t),v=t=>B[t.oldTradeId]??t.suggestedCredits,w=h.filter(t=>b(t.oldTradeId)),S=w.reduce((t,i)=>t+v(i),0),j=h.length>0&&w.length===h.length,k=w.length>0&&!j;function M(t,i){const r=i.replace(/[^\d]/g,"");y(c=>({...c,[t]:r===""?0:parseInt(r,10)}))}function W(t){_(i=>{const r=new Set(i);return r.has(t)?r.delete(t):r.add(t),r})}function C(){_(j?new Set(h.map(t=>t.oldTradeId)):new Set)}function T(t){return t.map(i=>({item:i,priceCredits:Math.max(1,v(i))}))}function m(t){const i=(r=[])=>r.filter(c=>!t.has(c.oldTradeId));d.setQueriesData({queryKey:["importable"]},r=>r&&{creations:i(r.creations),owned:i(r.owned)})}function $(t){return d.getQueriesData({queryKey:["importable"]}).flatMap(([,i])=>[...(i==null?void 0:i.creations)??[],...(i==null?void 0:i.owned)??[]]).some(i=>t.has(i.oldTradeId))}function L(t){const i=l.current;i.timer&&clearTimeout(i.timer),i.timer=setTimeout(()=>{d.refetchQueries({queryKey:["importable"]}).then(()=>{if(i.alive){if(!$(i.migrated)||t+1>=N.length){i.migrated.clear();return}m(i.migrated),L(t+1)}})},N[t]-(N[t-1]??0))}function Q(t){if(t.failed===0&&t.cancelled===0&&t.listed>0&&(x!=null&&x.length)){const{migrated:i}=l.current;for(const r of x)i.add(r.item.oldTradeId);m(i),L(0)}else d.invalidateQueries({queryKey:["importable"]});d.invalidateQueries({queryKey:["shop-items"]}),d.invalidateQueries({queryKey:["catalog-items"]}),d.invalidateQueries({queryKey:["overview-listings"]}),d.invalidateQueries({queryKey:["upsell-listings"]}),d.invalidateQueries({queryKey:["my-assets"]}),d.invalidateQueries({queryKey:["collection-sale-state"]}),t.failed>0?Y.error(a(t.listed>0?"importListings.toastPartial":"importListings.toastFailed")):t.listed>0&&Y.success(a("importListings.toastUpdated"))}return!I&&h.length===0?e.jsxs(ee,{children:[e.jsx(nt,{"data-testid":"import-empty",children:e.jsxs(at,{children:[e.jsx(st,{"aria-hidden":!0,children:e.jsx("img",{src:tt,alt:"",width:85,height:85})}),e.jsxs(rt,{children:[e.jsx(ot,{children:a("importListings.emptyTitle")}),e.jsx(dt,{children:a("importListings.emptyBody")})]}),e.jsx(lt,{children:e.jsx(ct,{as:pe,to:re,variant:"purple",children:a("importListings.goToMyAssets")})})]})}),e.jsx(ae,{children:e.jsx(H,{title:"faq.title",entries:se,tone:"on-dark"})})]}):e.jsxs(ee,{children:[e.jsxs(pt,{children:[e.jsxs(ht,{children:[e.jsx(gt,{children:a("importListings.title")}),e.jsxs("div",{children:[e.jsx(xt,{children:a("importListings.lede",{currency:we(D.name)})}),e.jsxs(mt,{href:Wt,target:"_blank",rel:"noopener noreferrer",children:[a("importListings.learnMore"),e.jsx(G,{name:"external-link",className:"ico","aria-hidden":!0})]})]})]}),e.jsx(Le,{tone:"on-dark"})]}),e.jsx(te,{}),e.jsxs(ut,{children:[e.jsxs(ft,{"data-testid":"import-progress",children:[e.jsx(wt,{"data-testid":"import-count",children:h.length}),a("importListings.updatePricing")]}),e.jsxs(bt,{children:[e.jsxs(yt,{children:[e.jsx(ie,{"data-tone":"on-dark",children:e.jsx(V,{type:"checkbox",checked:j,ref:t=>{t&&(t.indeterminate=k)},"data-indeterminate":k,onChange:C,"data-testid":"import-select-all","aria-label":a("importListings.selectAllAria")})}),a("importListings.selectAll")]}),e.jsx(vt,{children:I?Array.from({length:4}).map((t,i)=>e.jsx(Ft,{},i)):h.map(t=>{const i=v(t),r=be({...t,wearableCategory:t.wearableCategory??void 0}),c=Nt(t.manaWei);return e.jsxs(jt,{"data-off":b(t.oldTradeId)?void 0:!0,children:[e.jsxs(kt,{children:[e.jsx(ie,{children:e.jsx(V,{type:"checkbox",checked:b(t.oldTradeId),onChange:()=>W(t.oldTradeId),"data-testid":"import-row-check","aria-label":a("importListings.includeItem",{name:t.name})})}),e.jsx($t,{children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:""}):null})]}),e.jsxs(Ct,{children:[e.jsx(It,{title:t.name,children:t.name||a("importListings.itemFallback")}),e.jsxs(St,{children:[e.jsx(ne,{"data-variant":"rarity",style:{background:je(t.rarity),color:ve(t.rarity)},children:ye(t.rarity)}),r?e.jsx(ne,{"data-variant":"icon",children:e.jsx(G,{name:r,"aria-hidden":!0})}):null]})]}),e.jsxs(Tt,{children:[e.jsxs(Lt,{children:[e.jsx(O,{}),e.jsx(zt,{"data-testid":"imp-price-input",inputMode:"numeric",value:i.toLocaleString(),onChange:g=>M(t.oldTradeId,g.target.value),"aria-label":a("importListings.priceAria",{currency:D.name,name:t.name})})]}),e.jsxs(At,{children:[e.jsxs("span",{children:["$",K(i).toFixed(2)]}),c?e.jsx(Rt,{children:a("importListings.wasMana",{amount:c})}):null]})]})]},t.oldTradeId)})})]})]}),e.jsx(te,{}),e.jsx(ae,{children:e.jsx(H,{title:"faq.title",entries:se,tone:"on-dark"})}),e.jsx(_t,{children:e.jsxs(Et,{children:[e.jsxs(Mt,{children:[e.jsxs(Qt,{children:[e.jsx(O,{})," ",S.toLocaleString()]}),e.jsx(Pt,{children:a("importListings.selectedSummary",{count:w.length,usd:K(S).toFixed(2)})})]}),e.jsx(Bt,{}),e.jsx(qt,{variant:"red","data-testid":"import-list-all",disabled:w.length===0,onClick:()=>E(T(w)),children:a("importListings.listAll",{count:w.length})})]})}),x&&s?e.jsx(et,{queue:x,session:s,onClose:()=>E(null),onDone:Q}):null]})}export{ii as ImportListings};
@@ -1,4 +1,4 @@
1
- import{w as k,i as W,b as v}from"./lit-element-B3y9oplH.js";import{n as y}from"./class-map-CxwNmq0D.js";import{c as I}from"./index-DgtAwbud.js";import"./index-Btabzvt2.js";import{Q as M}from"./browser-DxF-qILS.js";import{d as O,r as N}from"./index-CX3BY9Sg.js";const Q=.1,_=2.5,$=7;function x(t,a,d){return t===a?!1:(t-a<0?a-t:t-a)<=d+Q}function A(t,a){const d=Array.prototype.slice.call(M.create(t,{errorCorrectionLevel:a}).modules.data,0),l=Math.sqrt(d.length);return d.reduce((h,f,p)=>(p%l===0?h.push([f]):h[h.length-1].push(f))&&h,[])}const q={generate({uri:t,size:a,logoSize:d,padding:l=8,dotColor:h="var(--apkt-colors-black)"}){const p=[],u=A(t,"Q"),n=(a-2*l)/u.length,E=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];E.forEach(({x:i,y:e})=>{const s=(u.length-$)*n*i+l,r=(u.length-$)*n*e+l,c=.45;for(let o=0;o<E.length;o+=1){const m=n*($-o*2);p.push(k`
1
+ import{w as k,i as W,b as v}from"./lit-element-B3y9oplH.js";import{n as y}from"./class-map-CxwNmq0D.js";import{c as I}from"./index-C4Icjsra.js";import"./index-DjTkGsKb.js";import{Q as M}from"./browser-DxF-qILS.js";import{d as O,r as N}from"./index-jUk6xFSZ.js";const Q=.1,_=2.5,$=7;function x(t,a,d){return t===a?!1:(t-a<0?a-t:t-a)<=d+Q}function A(t,a){const d=Array.prototype.slice.call(M.create(t,{errorCorrectionLevel:a}).modules.data,0),l=Math.sqrt(d.length);return d.reduce((h,f,p)=>(p%l===0?h.push([f]):h[h.length-1].push(f))&&h,[])}const q={generate({uri:t,size:a,logoSize:d,padding:l=8,dotColor:h="var(--apkt-colors-black)"}){const p=[],u=A(t,"Q"),n=(a-2*l)/u.length,E=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];E.forEach(({x:i,y:e})=>{const s=(u.length-$)*n*i+l,r=(u.length-$)*n*e+l,c=.45;for(let o=0;o<E.length;o+=1){const m=n*($-o*2);p.push(k`
2
2
  <rect
3
3
  fill=${o===2?"var(--apkt-colors-black)":"var(--apkt-colors-white)"}
4
4
  width=${o===0?m-10:m}