@dcl/shop 0.7.3-30998099552.commit-f7fa6e3 → 0.7.3-31002809274.commit-68e2004
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.
- package/_assets/Activity-DRU10G0s.js +381 -0
- package/_assets/{AnimatedBackground-xf-j6J30.js → AnimatedBackground-BPNjZnHs.js} +1 -1
- package/_assets/{Assets-B9oJjG4n.js → Assets-B9gu6JnA.js} +13 -13
- package/_assets/{Assets.styles-BYFeJKPe.js → Assets.styles-DiCnesUC.js} +1 -1
- package/_assets/{Authorizations-D5dl-34t.js → Authorizations-BQzDrrA_.js} +1 -1
- package/_assets/{Cart-BU0E1kp3.js → Cart-BHkq2PkV.js} +2 -2
- package/_assets/{CircularProgress-ogI8F2v0.js → CircularProgress-CQb8cfhx.js} +1 -1
- package/_assets/{Collection--mvsoerx.js → Collection-DvApaJVE.js} +1 -1
- package/_assets/{CollectionCarousel-DVB8xJEb.js → CollectionCarousel-3Ff7fmHM.js} +6 -6
- package/_assets/{Creator-BuMUJ_0H.js → Creator-phXYNMmi.js} +6 -6
- package/_assets/{ErrorNotice-CmE8Bw2a.js → ErrorNotice-Biw7jacR.js} +1 -1
- package/_assets/{ExchangeController-ptA9AGiC.js → ExchangeController-j0EaU5ur.js} +1 -1
- package/_assets/{Faq-mPkwptjW.js → Faq-CYehw8Xd.js} +1 -1
- package/_assets/{GetCredits-kPP7odsJ.js → GetCredits-B5t5SiEY.js} +15 -15
- package/_assets/{Grow-2tBlbsbN.js → Grow-BbO3nPWz.js} +1 -1
- package/_assets/{HelpersUtil-BhMvvX5p.js → HelpersUtil-Bm2I2riv.js} +1 -1
- package/_assets/{ItemDetail-BBfILay8.js → ItemDetail-D-C6pe19.js} +333 -333
- package/_assets/LazyEmoteControls-BxXOD9g-.js +2 -0
- package/_assets/{LoadMore-CPMkfBBp.js → LoadMore-DMhOO7Nq.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-C9hjNdio.js → ManaPricingBanner.styles-D0ksfubq.js} +1 -1
- package/_assets/{MyAssets-CkicCdty.js → MyAssets-pppiT6fl.js} +1 -1
- package/_assets/{MyFavorites-CRs6BUTO.js → MyFavorites-B8NF0NVk.js} +1 -1
- package/_assets/{NotFound-DbXDxLPP.js → NotFound-ySn_lkJ7.js} +1 -1
- package/_assets/{NotificationsBell-CeytqPp_.js → NotificationsBell-Mz-RqcfB.js} +1 -1
- package/_assets/{OutfitDetail-DhAPMkez.js → OutfitDetail-dru3bX0e.js} +1 -1
- package/_assets/{OutfitPreview-C08Jf7mn.js → OutfitPreview-RhS9kvYc.js} +1 -1
- package/_assets/{OutfitStudio-Bpg_2rBv.js → OutfitStudio-B-MkV2Nw.js} +1 -1
- package/_assets/{StoreSettings-CkHNFMS9.js → StoreSettings-DMlPpaxq.js} +1 -1
- package/_assets/{Success-CXkJDsIM.js → Success-DGiWm-dB.js} +1 -1
- package/_assets/{SwapController-CNP2nUqB.js → SwapController-DC-RT5b2.js} +1 -1
- package/_assets/{Tooltip-Ca1xi18J.js → Tooltip-DIS1AoSo.js} +1 -1
- package/_assets/{TradeService-pK5iIjeI.js → TradeService-CW14jFoK.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-FyX1W-1Y.js → W3MFrameProviderSingleton-Bn14TsAB.js} +3 -3
- package/_assets/{WebCryptoP256-lGIWaHSV.js → WebCryptoP256-DN6bPKJH.js} +1 -1
- package/_assets/{authorizations-C776tgTp.js → authorizations-BJlchz9P.js} +1 -1
- package/_assets/{basic-B5CZMUy4.js → basic-Db4hGFC-.js} +1 -1
- package/_assets/{biconomy-BcosBJNp.js → biconomy-yx9AAdUi.js} +1 -1
- package/_assets/{builder-CsxZ_GQ8.js → builder-Db8kqGSp.js} +1 -1
- package/_assets/{buy-BZ3zKYDO.js → buy-DHqPe2Je.js} +1 -1
- package/_assets/{buy-gasless-eYZufj8D.js → buy-gasless-CvTXQoUY.js} +1 -1
- package/_assets/{categories-Bhx5AiD0.js → categories-BMCKe30t.js} +1 -1
- package/_assets/{ccip-DmdM_5D9.js → ccip-DSJk995u.js} +1 -1
- package/_assets/{ccip-DrUklMi-.js → ccip-kyphTkC8.js} +1 -1
- package/_assets/{collectionPage.styles-CJq9b5Dn.js → collectionPage.styles-Dmgr28GG.js} +1 -1
- package/_assets/{controller-C-sKqF34.js → controller-BxSHfLz5.js} +2 -2
- package/_assets/{core-CriR9cGd.js → core-FJbXZcd9.js} +4 -4
- package/_assets/{createSvgIcon-BntPICgm.js → createSvgIcon-BVj0atRc.js} +1 -1
- package/_assets/{custom-FzLs4-KY.js → custom-8lpWNVH1.js} +1 -1
- package/_assets/{data-capture-Du1PLWpA.js → data-capture-ZsoqccWO.js} +1 -1
- package/_assets/{email-C0nzy1sI.js → email-TmqKH5rK.js} +1 -1
- package/_assets/{embedded-wallet-CVZ_vFlC.js → embedded-wallet-D8AjSmuZ.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-CJtlF7Gn.js → emotion-styled.browser.esm-B1CecDgm.js} +1 -1
- package/_assets/{engine-Cn3nxRwN.js → engine-CTKRqGmj.js} +1 -1
- package/_assets/{errors-C-i7myPZ.js → errors-CCUK8cBW.js} +1 -1
- package/_assets/{estimate-l1-fee-Dpb0Bl0S.js → estimate-l1-fee-DpS-XaOF.js} +1 -1
- package/_assets/{execute-wHrMFCta.js → execute-Bz7pyjbp.js} +2 -2
- package/_assets/{features-5HsC8l6J.js → features-W9H6sjcF.js} +1 -1
- package/_assets/{fetchTokenMetadata-MnlAMPaL.js → fetchTokenMetadata-COd7SGVt.js} +2 -2
- package/_assets/{field.styles-BIjk7dlh.js → field.styles-CdYHVXFs.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-BtHiGyT4.js → get-ecosystem-wallet-info-CMuxAyIB.js} +1 -1
- package/_assets/{getBalance-BFjfr7yO.js → getBalance-DQubrLKJ.js} +1 -1
- package/_assets/{getNFT-T59O6JYG.js → getNFT-BNY2enZa.js} +1 -1
- package/_assets/{getNFT-zUEFFArE.js → getNFT-CSRtW3h-.js} +1 -1
- package/_assets/{grid.styles-CKmGs0rK.js → grid.styles-DH_ZretM.js} +1 -1
- package/_assets/{hashTypedData-EoQ_H9e4.js → hashTypedData-BA0RWbmG.js} +1 -1
- package/_assets/{hashTypedData-CCw0LbC7.js → hashTypedData-Dqqcre1R.js} +1 -1
- package/_assets/{in-app-BpY0Ul44.js → in-app-BvYCjHKb.js} +1 -1
- package/_assets/{in-app-wallet-calls-_O1gpzp1.js → in-app-wallet-calls-CxpZt-vc.js} +1 -1
- package/_assets/{index-CzGc0rp2.js → index-4grC8vnQ.js} +16 -16
- package/_assets/{index-CS3o6W8g.js → index-B91rfq1c.js} +1 -1
- package/_assets/{index-CQi6H5fT.js → index-BDuns4Lg.js} +1 -1
- package/_assets/{index-BF0Lz5Vl.js → index-BGOWhyHo.js} +3 -3
- package/_assets/{index-DlhjzwF5.js → index-BJNlk-SI.js} +1 -1
- package/_assets/{index-DGpSfYbI.js → index-BfAg05xe.js} +1 -1
- package/_assets/{index-BCeaifQW.js → index-BiAcVSuI.js} +1 -1
- package/_assets/{index-BB2qMLiD.js → index-BjtZr1Rk.js} +1 -1
- package/_assets/{index-B64uIzbz.js → index-Bl9hxKO2.js} +1 -1
- package/_assets/{index-Cc8-wJI-.js → index-BmtMCuH8.js} +1 -1
- package/_assets/{index-DM4Lw-b2.js → index-BogeqjBp.js} +1 -1
- package/_assets/{index-CrkAzP5M.js → index-BpsXe6IR.js} +1 -1
- package/_assets/{index-D9BXwvii.js → index-Bqt5iJBo.js} +1 -1
- package/_assets/{index-kGUEZDex.js → index-BsEcuD0O.js} +2 -2
- package/_assets/{index-C2wq-XJv.js → index-Bw6vREOp.js} +2 -2
- package/_assets/{index-vw2DCGCa.js → index-C-IYvYAw.js} +1 -1
- package/_assets/{index-0HOZkX4v.js → index-C0jkYp6u.js} +1 -1
- package/_assets/{index-GFGo0kL7.js → index-CN8Fwkg_.js} +2 -2
- package/_assets/{index-DlNMwZA0.js → index-CNDHrB-N.js} +1 -1
- package/_assets/{index-DqNNmcTE.js → index-CRKbJ2OP.js} +1 -1
- package/_assets/{index-DUGnqqvn.js → index-CTvMZ0av.js} +1 -1
- package/_assets/{index-51jxmcXj.js → index-CefOdSuo.js} +1 -1
- package/_assets/{index-DQOXE4dt.js → index-Cfy91mWw.js} +1 -1
- package/_assets/{index-CME7Vo6o.js → index-Ch2NaYC8.js} +1 -1
- package/_assets/{index-D_vtI9c4.js → index-Cj_FIJ6O.js} +1 -1
- package/_assets/{index-DYmEn4kI.js → index-CkZ39O4D.js} +1 -1
- package/_assets/{index-DnlGx8cM.js → index-Cr_vaK1b.js} +1 -1
- package/_assets/{index-BRr_EKCC.js → index-CtwVaZjN.js} +1 -1
- package/_assets/{index-D7izat5n.js → index-CuJbAAma.js} +1 -1
- package/_assets/index-CxlN6NCL.js +519 -0
- package/_assets/{index-Dg35ZiF4.js → index-DAPvhTCu.js} +1 -1
- package/_assets/{index-B9oBk5HA.js → index-DBGfpyip.js} +1 -1
- package/_assets/{index-DZMkGxa1.js → index-DBkJBt2j.js} +2 -2
- package/_assets/{index-CoGa5SSH.js → index-DBwuf2dy.js} +1 -1
- package/_assets/{index-Dv_iHgrg.js → index-DDe_P04W.js} +1 -1
- package/_assets/{index-sTbvrDBI.js → index-DFAt726n.js} +1 -1
- package/_assets/{index-B5t_uF6K.js → index-DFCfS17C.js} +1 -1
- package/_assets/{index-jOzdgfRR.js → index-DIYqluqo.js} +3 -3
- package/_assets/{index-Ca53lSVK.js → index-DLrjz4Tx.js} +1 -1
- package/_assets/{index-BmNvCSoW.js → index-DOPim6Hs.js} +1 -1
- package/_assets/{index-DPS0nlZt.js → index-DYoWqsAK.js} +1 -1
- package/_assets/{index-BuJNwdV6.js → index-DZOsxVd8.js} +1 -1
- package/_assets/{index-GWS5y9G8.js → index-DhygeoM5.js} +3 -3
- package/_assets/{index-ClfJzt8j.js → index-DsSWYz9j.js} +1 -1
- package/_assets/{index-JQtE4iI3.js → index-DtS2WMUT.js} +1 -1
- package/_assets/{index-DV8-2bkd.js → index-Lb7odxFK.js} +1 -1
- package/_assets/{index-CsqetYWp.js → index-Vcg4k-hF.js} +1 -1
- package/_assets/{index-CdmR3BSr.js → index-WguW8tuP.js} +1 -1
- package/_assets/{index-i1mgkVNo.js → index-Wj_hpWlf.js} +1 -1
- package/_assets/{index-C7-Ojv7c.js → index-jjnXqv_1.js} +1 -1
- package/_assets/{index-yDlokE4U.js → index-o5wXH6k1.js} +1 -1
- package/_assets/{index-CfiGBXge.js → index-vZmAzias.js} +1 -1
- package/_assets/{index.es-B7FTFVs9.js → index.es-DRPff5jo.js} +1 -1
- package/_assets/{index.es-D3zyWO6O.js → index.es-Db0bppXh.js} +4 -4
- package/_assets/{index.es-Wz_yp4qN.js → index.es-vm3av0ZU.js} +1 -1
- package/_assets/{localBatchGatewayRequest-IY4oys4m.js → localBatchGatewayRequest-BT4bgYX3.js} +1 -1
- package/_assets/{networks-BebUw28a.js → networks-BjCyq87b.js} +1 -1
- package/_assets/{onramp-D2PuULiP.js → onramp-MxLeUwo5.js} +1 -1
- package/_assets/{openzeppelin-BtInW1Ne.js → openzeppelin-NiqHvD0o.js} +1 -1
- package/_assets/{parseNft-BbiDwhFE.js → parseNft-DXKUZt78.js} +2 -2
- package/_assets/{parseSignature-VUChb_Hq.js → parseSignature-CHSFJk_c.js} +1 -1
- package/_assets/{parseSignature-CZ5Ggg8p.js → parseSignature-JjWPQjiQ.js} +3 -3
- package/_assets/{passkeys-CrgnuTyv.js → passkeys-Dp5NPgWw.js} +1 -1
- package/_assets/{pay-with-exchange-DUrkH5ym.js → pay-with-exchange-CxuzzGwq.js} +1 -1
- package/_assets/{qr-overlay-ijYN5Vs4.js → qr-overlay-C29AmkL1.js} +1 -1
- package/_assets/{receive-Df4kzGm0.js → receive-BSxHY6Lk.js} +1 -1
- package/_assets/{resolveImplementation-DoFz-4vS.js → resolveImplementation-DBwFo6J8.js} +1 -1
- package/_assets/{rpc-BiHC0M3Z.js → rpc-B7hkwqRp.js} +1 -1
- package/_assets/{secp256k1-Ba1R5SHp.js → secp256k1-80kUQxfu.js} +1 -1
- package/_assets/{secp256k1-Hu9Q-jih.js → secp256k1-BmlNWGtD.js} +1 -1
- package/_assets/{secp256k1-CqT0-B8H.js → secp256k1-dBN4ORWU.js} +1 -1
- package/_assets/{send-Ca_D-CGF.js → send-C63T079L.js} +1 -1
- package/_assets/{send-batch-transaction-D5lSDwIa.js → send-batch-transaction-BkwLmlea.js} +1 -1
- package/_assets/{send-eip712-transaction-BsmSzzO5.js → send-eip712-transaction-6nm-uQAt.js} +2 -2
- package/_assets/{send-gasless-transaction-DzCl7yj5.js → send-gasless-transaction-ASekpRez.js} +2 -2
- package/_assets/{send-transaction-D_KZubhG.js → send-transaction-Bzhp2g8b.js} +2 -2
- package/_assets/{sendMetaTransaction-DcJMER59.js → sendMetaTransaction-BATUzHIf.js} +1 -1
- package/_assets/{sendRawTransaction-5I-l2w6Z.js → sendRawTransaction-_Kv849f3.js} +3 -3
- package/_assets/{serializeTransaction-a4pMp0ix.js → serializeTransaction-ZzhlS1TB.js} +1 -1
- package/_assets/{session-proposal-CjeffhTm.js → session-proposal-DzR3pRyS.js} +1 -1
- package/_assets/{session-request-KYwaaBai.js → session-request-VXo9pQwV.js} +2 -2
- package/_assets/{signing-BPM_yuD2.js → signing-CGrYz3PN.js} +3 -3
- package/_assets/{socials-CyoLEAYb.js → socials-B-JrWB2l.js} +1 -1
- package/_assets/styled-gTPQAN-Y.js +9 -0
- package/_assets/{swaps-CHWvOItb.js → swaps-CyAk4mTe.js} +1 -1
- package/_assets/{thirdweb-B3GtfZBZ.js → thirdweb-8szcRqMp.js} +3 -3
- package/_assets/{to-serializable-transaction-BCzBTrGx.js → to-serializable-transaction-CF8YxIRs.js} +2 -2
- package/_assets/{trade-encoding-Dg6aX8Te.js → trade-encoding-dpFoczNW.js} +1 -1
- package/_assets/{transactionReceipt-9LyDGJEz.js → transactionReceipt-CGVPV54W.js} +1 -1
- package/_assets/{transactions-YKwAIvIG.js → transactions-BIRi6SwZ.js} +1 -1
- package/_assets/{useCreditPacks-DsT6A2e-.js → useCreditPacks-B-X7zfCn.js} +1 -1
- package/_assets/{useImportable-CvtcuX0v.js → useImportable-C11MUaBr.js} +1 -1
- package/_assets/{useInfiniteGrid-BiMca1S0.js → useInfiniteGrid-6IGMMT5_.js} +1 -1
- package/_assets/{useTheme-BI7R38Jr.js → useTheme-BwoD3vEY.js} +1 -1
- package/_assets/{verifyHash-BsfyvwnN.js → verifyHash-C5CdkBh3.js} +1 -1
- package/_assets/{w3m-modal-OMDv8WwL.js → w3m-modal-B3F6Mnna.js} +1 -1
- package/_assets/{w3m-modal-Dv-jrE6G.js → w3m-modal-B3GHykWz.js} +1 -1
- package/_assets/{wait-for-tx-receipt-D5ZFHFzh.js → wait-for-tx-receipt-C_FjDUYj.js} +1 -1
- package/_assets/{wallets-NAyG3Q1E.js → wallets-DzQ1vri5.js} +5 -5
- package/_assets/{web-connector-5UlEROZA.js → web-connector-B4iFaMmt.js} +3 -3
- package/_assets/{writeContract-BOezSMv9.js → writeContract-DaZaDo8I.js} +1 -1
- package/_assets/{zoraTestnet-CsqEhrXT.js → zoraTestnet-W4T_ajaY.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-CcCu8Od6.js +0 -384
- package/_assets/LazyEmoteControls-8b5UZhSs.js +0 -2
- package/_assets/index-BqhVw7jY.js +0 -476
- package/_assets/styled-DxV2l543.js +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as l,E as g,R as h,o as m,S as w,b as c,r as E,t as _}from"./W3MFrameProviderSingleton-
|
|
1
|
+
import{C as l,E as g,R as h,o as m,S as w,b as c,r as E,t as _}from"./W3MFrameProviderSingleton-Bn14TsAB.js";import{au as R}from"./NetworkUtil-EoWQDMpU.js";import{i as b,b as y}from"./lit-element-B3y9oplH.js";import{n as d,o as O}from"./class-map-CxwNmq0D.js";import{c as v}from"./index-BfAg05xe.js";import{d as C,r as S,e as $}from"./index-DIYqluqo.js";function I(){try{return c.returnOpenHref(`${R.SECURE_SITE_SDK_ORIGIN}/loading`,"popupWindow","width=600,height=800,scrollbars=yes")}catch{throw new Error("Could not open social popup")}}async function L(){h.push("ConnectingFarcaster");const e=m.getAuthConnector();if(e){const o=l.getAccountData();if(!(o!=null&&o.farcasterUrl))try{const{url:t}=await e.provider.getFarcasterUri();l.setAccountProp("farcasterUrl",t,l.state.activeChain)}catch(t){h.goBack(),w.showError(t)}}}async function T(e){h.push("ConnectingSocial");const o=m.getAuthConnector();let t=null;try{const i=setTimeout(()=>{throw new Error("Social login timed out. Please try again.")},45e3);if(o&&e){if(c.isTelegram()||(t=I()),t)l.setAccountProp("socialWindow",E(t),l.state.activeChain);else if(!c.isTelegram())throw new Error("Could not create social popup");const{uri:n}=await o.provider.getSocialRedirectUri({provider:e});if(!n)throw t==null||t.close(),new Error("Could not fetch the social redirect uri");if(t&&(t.location.href=n),c.isTelegram()){_.setTelegramSocialProvider(e);const r=c.formatTelegramSocialLoginUrl(n);c.openHref(r,"_top")}clearTimeout(i)}}catch(i){t==null||t.close();const n=c.parseError(i);w.showError(n),g.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:e,message:n}})}}async function G(e){l.setAccountProp("socialProvider",e,l.state.activeChain),g.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}}),e==="farcaster"?await L():await T(e)}const U=C`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as h,i as d,b as a}from"./lit-element-B3y9oplH.js";import{d as w,r as x,e as b}from"./index-
|
|
1
|
+
import{a as h,i as d,b as a}from"./lit-element-B3y9oplH.js";import{d as w,r as x,e as b}from"./index-DIYqluqo.js";import{c as m}from"./index-BfAg05xe.js";import"./index-jjnXqv_1.js";import{O as c,E as g,l as v,C,W as _,R as $}from"./W3MFrameProviderSingleton-Bn14TsAB.js";import{r as R}from"./class-map-CxwNmq0D.js";const T=h``;var O=function(n,e,r,o){var i=arguments.length,t=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,o);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(t=(i<3?s(t):i>3?s(e,r,t):s(e,r))||t);return i>3&&t&&Object.defineProperty(e,r,t),t};let f=class extends d{render(){const{termsConditionsUrl:e,privacyPolicyUrl:r}=c.state;return!e&&!r?null:a`
|
|
2
2
|
<wui-flex
|
|
3
3
|
.padding=${["4","3","3","3"]}
|
|
4
4
|
flexDirection="column"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as b,b as c}from"./lit-element-B3y9oplH.js";import{n}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-
|
|
1
|
+
import{i as b,b as c}from"./lit-element-B3y9oplH.js";import{n}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-BfAg05xe.js";import"./index-Cj_FIJ6O.js";import{d as g,r as m,e as h}from"./index-DIYqluqo.js";const v=g`
|
|
2
2
|
:host {
|
|
3
3
|
width: var(--local-width);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as u,b as h}from"./lit-element-B3y9oplH.js";import{n as d,o as f}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-
|
|
1
|
+
import{i as u,b as h}from"./lit-element-B3y9oplH.js";import{n as d,o as f}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-BfAg05xe.js";import{d as g,r as m,e as b}from"./index-DIYqluqo.js";const y=g`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-
|
|
1
|
+
import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-DIYqluqo.js";import{c as x}from"./index-BfAg05xe.js";const g=d`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as t,a as d,i as p,b as n}from"./lit-element-B3y9oplH.js";import{n as f}from"./class-map-CxwNmq0D.js";import{c as w,t as k}from"./index-
|
|
1
|
+
import{w as t,a as d,i as p,b as n}from"./lit-element-B3y9oplH.js";import{n as f}from"./class-map-CxwNmq0D.js";import{c as w,t as k}from"./index-BfAg05xe.js";import{r as v}from"./index-DIYqluqo.js";const g=t`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<rect width="64" height="64" fill="#F7931A"/>
|
|
3
3
|
<g clip-path="url(#clip0_1045_17)">
|
|
4
4
|
<path d="M63.0394 39.7409C58.7654 56.8839 41.4024 67.3169 24.2574 63.0419C7.11937 58.7679 -3.31363 41.4039 0.962367 24.2619C5.23437 7.11686 22.5974 -3.31714 39.7374 0.956863C56.8814 5.23086 67.3134 22.5969 63.0394 39.7409Z" fill="#F7931A"/>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as i}from"./class-map-CxwNmq0D.js";import{c as f}from"./index-
|
|
1
|
+
import{i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as i}from"./class-map-CxwNmq0D.js";import{c as f}from"./index-BfAg05xe.js";import"./index-BJNlk-SI.js";import{d as h,r as b,e as w}from"./index-DIYqluqo.js";import{N as d}from"./W3MFrameProviderSingleton-Bn14TsAB.js";const g=h`
|
|
2
2
|
:host {
|
|
3
3
|
width: 100%;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as d,b as u}from"./lit-element-B3y9oplH.js";import{n as p}from"./class-map-CxwNmq0D.js";import{c as m}from"./index-
|
|
1
|
+
import{i as d,b as u}from"./lit-element-B3y9oplH.js";import{n as p}from"./class-map-CxwNmq0D.js";import{c as m}from"./index-BfAg05xe.js";import{d as f,r as h}from"./index-DIYqluqo.js";const g=f`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as b,b as l,a as O}from"./lit-element-B3y9oplH.js";import{n as h,r as d}from"./class-map-CxwNmq0D.js";import{d as C,r as E,e as P}from"./index-
|
|
1
|
+
import{i as b,b as l,a as O}from"./lit-element-B3y9oplH.js";import{n as h,r as d}from"./class-map-CxwNmq0D.js";import{d as C,r as E,e as P}from"./index-DIYqluqo.js";import{c as v,U as x}from"./index-BfAg05xe.js";import"./index-jjnXqv_1.js";import"./index-Cj_FIJ6O.js";import{u as g,R as S,o as $,b as R,S as T}from"./W3MFrameProviderSingleton-Bn14TsAB.js";const L=C`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-block;
|
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
import{j as e,d as ee,r as g,L as te}from"./react-DehiWSvs.js";import{t as q,s as t,o as ie,v as ne,d as i,e as Q,B as E,bO as V,w as Y,S as se,b4 as N,A as D,K as ae,k as re,x as oe,ag as de,I as O,a4 as le,a7 as ce,a8 as pe,bP as he,z as ge}from"./index-4grC8vnQ.js";import{c as xe,i as me,R as ue,u as fe}from"./useImportable-C11MUaBr.js";import{S as we,C as ye,b as be}from"./ManaPricingBanner.styles-D0ksfubq.js";import{F as ve}from"./Faq-CYehw8Xd.js";import{C as U}from"./field.styles-CdYHVXFs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./buy-DHqPe2Je.js";import"./authorizations-BJlchz9P.js";import"./sendMetaTransaction-BATUzHIf.js";import"./trade-encoding-dpFoczNW.js";function je({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"})})}const{colors:S,radius:ke,z:Ce}=q,$e=ie`
|
|
2
|
+
0% {
|
|
3
|
+
transform: scale(0);
|
|
4
|
+
opacity: 0;
|
|
5
|
+
}
|
|
6
|
+
100% {
|
|
7
|
+
transform: scale(1);
|
|
8
|
+
opacity: 1;
|
|
9
|
+
}
|
|
10
|
+
`,W=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: ${Ce.overlay};
|
|
19
|
+
`,J=t.div`
|
|
20
|
+
background: ${S.white};
|
|
21
|
+
border-radius: ${ke.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
|
+
text-align: center;
|
|
35
|
+
align-items: center;
|
|
36
|
+
}
|
|
37
|
+
&[data-success] [data-actions] {
|
|
38
|
+
justify-content: center;
|
|
39
|
+
width: 100%;
|
|
40
|
+
}
|
|
41
|
+
`,K=t.h2`
|
|
42
|
+
font-size: 20px;
|
|
43
|
+
`;t.img`
|
|
44
|
+
width: 140px;
|
|
45
|
+
height: 140px;
|
|
46
|
+
object-fit: contain;
|
|
47
|
+
align-self: center;
|
|
48
|
+
background: ${S.media};
|
|
49
|
+
border-radius: 10px;
|
|
50
|
+
`;const Se=t.div`
|
|
51
|
+
position: sticky;
|
|
52
|
+
bottom: 0;
|
|
53
|
+
display: flex;
|
|
54
|
+
justify-content: flex-end;
|
|
55
|
+
gap: 10px;
|
|
56
|
+
margin-top: 6px;
|
|
57
|
+
padding-top: 8px;
|
|
58
|
+
background: ${S.white};
|
|
59
|
+
`;t.div`
|
|
60
|
+
width: 56px;
|
|
61
|
+
height: 56px;
|
|
62
|
+
border-radius: 50%;
|
|
63
|
+
background: ${S.okStrong};
|
|
64
|
+
color: ${S.white};
|
|
65
|
+
font-size: 30px;
|
|
66
|
+
font-weight: 800;
|
|
67
|
+
display: grid;
|
|
68
|
+
place-items: center;
|
|
69
|
+
margin: 4px auto 2px;
|
|
70
|
+
animation: ${$e} 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.4);
|
|
71
|
+
|
|
72
|
+
@media (prefers-reduced-motion: reduce) {
|
|
73
|
+
animation: none;
|
|
74
|
+
}
|
|
75
|
+
`;t.p`
|
|
76
|
+
font-weight: 700;
|
|
77
|
+
font-size: 16px;
|
|
78
|
+
margin: 2px 0 0;
|
|
79
|
+
`;const{colors:f,gradients:Ie,radius:Le}=q,Te=t(J)`
|
|
80
|
+
width: min(460px, 94vw);
|
|
81
|
+
text-align: left;
|
|
82
|
+
align-items: stretch;
|
|
83
|
+
`,ze=t.div`
|
|
84
|
+
height: 6px;
|
|
85
|
+
border-radius: 999px;
|
|
86
|
+
background: ${f.line};
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
margin: 6px 0 14px;
|
|
89
|
+
`,Ae=t.div`
|
|
90
|
+
height: 100%;
|
|
91
|
+
width: 0;
|
|
92
|
+
background: ${Ie.amethyst};
|
|
93
|
+
border-radius: 999px;
|
|
94
|
+
transition: width 0.45s ease;
|
|
95
|
+
`,_e=t.ul`
|
|
96
|
+
list-style: none;
|
|
97
|
+
margin: 0;
|
|
98
|
+
padding: 0;
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
gap: 8px;
|
|
102
|
+
/* The elastic part of a viewport-capped modal: it gives up height before anything else. The floor is
|
|
103
|
+
explicit because a scroll container's automatic minimum size is zero — it would otherwise collapse
|
|
104
|
+
to nothing on a short screen instead of just showing fewer rows. */
|
|
105
|
+
min-height: 96px;
|
|
106
|
+
max-height: 320px;
|
|
107
|
+
overflow-y: auto;
|
|
108
|
+
`,Me=t.li`
|
|
109
|
+
display: grid;
|
|
110
|
+
grid-template-columns: 34px 1fr auto auto;
|
|
111
|
+
align-items: center;
|
|
112
|
+
gap: 10px;
|
|
113
|
+
padding: 8px;
|
|
114
|
+
border-radius: 10px;
|
|
115
|
+
transition: background 0.2s;
|
|
116
|
+
|
|
117
|
+
&[data-status='active'] {
|
|
118
|
+
background: ${f.rarityBg};
|
|
119
|
+
}
|
|
120
|
+
&[data-status='done'] {
|
|
121
|
+
opacity: 0.75;
|
|
122
|
+
}
|
|
123
|
+
&[data-status='skipped'],
|
|
124
|
+
&[data-status='failed'] {
|
|
125
|
+
opacity: 0.6;
|
|
126
|
+
}
|
|
127
|
+
`,Ee=t.span`
|
|
128
|
+
width: 34px;
|
|
129
|
+
height: 34px;
|
|
130
|
+
border-radius: ${Le.btn};
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
background: ${f.media};
|
|
133
|
+
display: grid;
|
|
134
|
+
place-items: center;
|
|
135
|
+
|
|
136
|
+
& img {
|
|
137
|
+
width: 100%;
|
|
138
|
+
height: 100%;
|
|
139
|
+
object-fit: contain;
|
|
140
|
+
}
|
|
141
|
+
`,Re=t.span`
|
|
142
|
+
font-weight: 600;
|
|
143
|
+
font-size: 14px;
|
|
144
|
+
white-space: nowrap;
|
|
145
|
+
overflow: hidden;
|
|
146
|
+
text-overflow: ellipsis;
|
|
147
|
+
`,Fe=t.span`
|
|
148
|
+
font-weight: 700;
|
|
149
|
+
font-size: 13px;
|
|
150
|
+
color: ${f.text2};
|
|
151
|
+
`,Pe=t.span`
|
|
152
|
+
font-size: 12px;
|
|
153
|
+
font-weight: 700;
|
|
154
|
+
color: ${f.accent};
|
|
155
|
+
display: inline-flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
gap: 6px;
|
|
158
|
+
justify-content: flex-end;
|
|
159
|
+
min-width: 74px;
|
|
160
|
+
`,Be=t.span`
|
|
161
|
+
color: ${f.muted2};
|
|
162
|
+
font-weight: 600;
|
|
163
|
+
`,B=t.span`
|
|
164
|
+
color: ${f.muted};
|
|
165
|
+
font-weight: 600;
|
|
166
|
+
`,Qe=t.span`
|
|
167
|
+
width: 14px;
|
|
168
|
+
height: 14px;
|
|
169
|
+
margin: 0;
|
|
170
|
+
border-width: 2px;
|
|
171
|
+
`,Ne=t.span`
|
|
172
|
+
width: 20px;
|
|
173
|
+
height: 20px;
|
|
174
|
+
border-radius: 50%;
|
|
175
|
+
background: ${f.ok};
|
|
176
|
+
color: ${f.white};
|
|
177
|
+
display: grid;
|
|
178
|
+
place-items: center;
|
|
179
|
+
font-size: 12px;
|
|
180
|
+
`,qe=t.p`
|
|
181
|
+
margin: 12px 0 0;
|
|
182
|
+
`;function De(a,l){switch(a==null?void 0:a.step){case"cancelling":return l?i("migrate.phaseCancelConfirm"):i("migrate.phaseCancel");case"confirming-cancel":return l?i("migrate.phaseConfirmingCancel"):i("migrate.phaseConfirmingCancelManaged");case"authorising":return l?i("migrate.phaseAuthoriseConfirm"):i("migrate.phaseAuthorise");case"signing":return l?i("migrate.phaseSignConfirm"):i("migrate.phaseSign");case"publishing":return i("migrate.phasePublishing");case"indexing":return i("migrate.phaseIndexing",{attempt:a.attempt,of:a.of});default:return l?i("migrate.statusConfirm"):i("migrate.statusAdding")}}function Oe({queue:a,session:l,onClose:p,onDone:k}){const R=ee(),y=ne(l.providerType),[F,L]=g.useState(()=>a.map(()=>null)),[b,T]=g.useState(null),[c,w]=g.useState(()=>a.map(()=>"pending")),[x,z]=g.useState("running"),v=g.useRef(!1);g.useEffect(()=>{if(v.current)return;v.current=!0;let s=!1;return y&&xe(a.map(r=>r.item),l.address).then(r=>{!s&&r&&T({approvals:r.approvals,total:r.total})}).catch(()=>{}),(async()=>{for(let r=0;r<a.length;r++){if(s)return;w(h=>h.map((m,u)=>u===r?"active":m));try{await me(a[r].item,a[r].priceCredits,l,{onPhase:h=>{s||L(m=>m.map((u,$)=>$===r?h:u))}}),se("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:N(a[r].priceCredits)}),s||w(h=>h.map((m,u)=>u===r?"done":m))}catch(h){if(h instanceof ue)D(h,{flow:"import_listing",step:"relist",itemId:a[r].item.itemId??a[r].item.oldTradeId}),s||w(m=>m.map((u,$)=>$===r?"unlisted":u));else{const m=h,u=m.code===4001||/reject|denied|cancel/i.test(m.message??"");u||D(h,{flow:"import_listing",itemId:a[r].item.itemId??a[r].item.oldTradeId}),s||w($=>$.map((X,Z)=>Z===r?u?"skipped":"failed":X))}}}s||z("finished")})(),()=>{s=!0}},[]);const C=c.filter(s=>s==="done").length,A=c.findIndex(s=>s==="active"),P=Math.round(c.filter(s=>s!=="pending"&&s!=="active").length/a.length*100);function _(){k(),p()}const M=c.filter(s=>s==="skipped"||s==="failed").length,j=c.filter(s=>s==="unlisted").length,n=g.useRef(!1);return g.useEffect(()=>{x!=="finished"||j>0||n.current||(n.current=!0,_())},[x,j]),x==="finished"?j===0?null:e.jsx(W,{role:"presentation",children:e.jsxs(J,{"data-success":!0,role:"dialog","aria-modal":"true","data-testid":"migrate-unlisted",children:[e.jsx(K,{children:i("migrate.unlistedTitle")}),e.jsxs("p",{className:"muted",style:{margin:0},children:[i("migrate.unlistedSummary",{count:j}),C>0?" "+i("migrate.listedSummary",{count:C,currency:Q.name}):"",M>0?" "+i("migrate.skippedSummary",{count:M}):""]}),e.jsxs(Se,{"data-actions":!0,children:[e.jsx(E,{variant:"ghost",onClick:_,children:i("getCredits.done")}),e.jsx(E,{variant:"purple",onClick:()=>{k(),p(),R(V)},children:i("migrate.goToMyAssets")})]})]})}):e.jsx(W,{role:"presentation",children:e.jsxs(Te,{"data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx(K,{children:i("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[y?i("migrate.subConfirm"):i("migrate.subManaged")," ",A>=0?i("migrate.progressCount",{current:A+1,total:a.length}):""]}),e.jsx(ze,{children:e.jsx(Ae,{style:{width:`${P}%`}})}),e.jsx(_e,{children:a.map((s,d)=>e.jsxs(Me,{"data-status":c[d],children:[e.jsx(Ee,{children:s.item.thumbnail?e.jsx("img",{src:s.item.thumbnail,alt:""}):null}),e.jsx(Re,{title:s.item.name,children:s.item.name||i("migrate.itemFallback")}),e.jsxs(Fe,{children:[e.jsx(Y,{className:"ccy-mark"})," ",s.priceCredits.toLocaleString()]}),e.jsx(Pe,{"data-testid":c[d]==="active"?"migrate-active-status":void 0,children:c[d]==="active"?e.jsxs(e.Fragment,{children:[e.jsx(Qe,{className:"spinner","aria-hidden":!0})," ",De(F[d],y)]}):c[d]==="done"?e.jsx(Ne,{children:e.jsx(je,{})}):c[d]==="skipped"?e.jsx(B,{children:i("migrate.statusSkipped")}):c[d]==="failed"?e.jsx(B,{children:i("migrate.statusFailed")}):c[d]==="unlisted"?e.jsx(B,{title:i("migrate.unlistedTooltip"),children:i("migrate.statusUnlisted")}):e.jsx(Be,{children:i("migrate.statusWaiting")})})]},s.item.oldTradeId))}),e.jsx(qe,{className:"muted small",children:y?b?i(b.approvals>0?"migrate.hintCountApproval":"migrate.hintCount",{total:b.total}):i("migrate.hintConfirm"):i("migrate.hintManaged")})]})})}const Ue="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:We,media:Ke,radius:I}=q,Ge=t.div`
|
|
183
|
+
display: flex;
|
|
184
|
+
flex-direction: column;
|
|
185
|
+
align-items: center;
|
|
186
|
+
gap: 24px;
|
|
187
|
+
padding: 24px 20px 80px;
|
|
188
|
+
`,He=t.div`
|
|
189
|
+
/* 615px in the design; capped rather than fixed so it still fits a phone. */
|
|
190
|
+
width: 100%;
|
|
191
|
+
max-width: 615px;
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-direction: column;
|
|
194
|
+
align-items: center;
|
|
195
|
+
justify-content: center;
|
|
196
|
+
gap: 24px;
|
|
197
|
+
padding: 16px;
|
|
198
|
+
border-radius: ${I.modal};
|
|
199
|
+
background: ${o.white};
|
|
200
|
+
text-align: center;
|
|
201
|
+
`,Ve=t.span`
|
|
202
|
+
flex-shrink: 0;
|
|
203
|
+
width: 105px;
|
|
204
|
+
height: 105px;
|
|
205
|
+
display: flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
justify-content: center;
|
|
208
|
+
overflow: hidden;
|
|
209
|
+
|
|
210
|
+
img {
|
|
211
|
+
width: 84.837px;
|
|
212
|
+
height: 84.837px;
|
|
213
|
+
}
|
|
214
|
+
`,Ye=t.div`
|
|
215
|
+
width: 100%;
|
|
216
|
+
display: flex;
|
|
217
|
+
flex-direction: column;
|
|
218
|
+
align-items: center;
|
|
219
|
+
gap: 12px;
|
|
220
|
+
padding-bottom: 16px;
|
|
221
|
+
line-height: 1.6;
|
|
222
|
+
color: ${o.text};
|
|
223
|
+
`,Je=t.h2`
|
|
224
|
+
margin: 0;
|
|
225
|
+
font-size: 20px;
|
|
226
|
+
font-weight: 700;
|
|
227
|
+
`,Xe=t.p`
|
|
228
|
+
margin: 0;
|
|
229
|
+
font-size: 16px;
|
|
230
|
+
font-weight: 400;
|
|
231
|
+
`,Ze=t.div`
|
|
232
|
+
width: 310px;
|
|
233
|
+
max-width: 100%;
|
|
234
|
+
padding-bottom: 16px;
|
|
235
|
+
`,et=t(E)`
|
|
236
|
+
width: 100%;
|
|
237
|
+
height: 56px;
|
|
238
|
+
border-radius: 12px;
|
|
239
|
+
font-size: 15px;
|
|
240
|
+
/* The variant sets 0.046em, which at 15px is 0.69px; the design asks for 0.46px flat. */
|
|
241
|
+
letter-spacing: 0.46px;
|
|
242
|
+
`,tt=t.div`
|
|
243
|
+
max-width: 1003px;
|
|
244
|
+
margin: 0 auto;
|
|
245
|
+
padding-bottom: 120px;
|
|
246
|
+
display: flex;
|
|
247
|
+
flex-direction: column;
|
|
248
|
+
gap: 12px;
|
|
249
|
+
font-family: ${We.sans};
|
|
250
|
+
`,it=t.header`
|
|
251
|
+
display: flex;
|
|
252
|
+
flex-direction: column;
|
|
253
|
+
gap: 16px;
|
|
254
|
+
padding: 10px 12px;
|
|
255
|
+
`,nt=t.div`
|
|
256
|
+
display: flex;
|
|
257
|
+
flex-direction: column;
|
|
258
|
+
gap: 8px;
|
|
259
|
+
`,st=t.h2`
|
|
260
|
+
margin: 0;
|
|
261
|
+
font-weight: 600;
|
|
262
|
+
font-size: 20px;
|
|
263
|
+
line-height: 24px;
|
|
264
|
+
letter-spacing: 0.46px;
|
|
265
|
+
color: ${o.text};
|
|
266
|
+
`,at=t.p`
|
|
267
|
+
margin: 0;
|
|
268
|
+
font-weight: 500;
|
|
269
|
+
font-size: 14px;
|
|
270
|
+
line-height: 1.334;
|
|
271
|
+
color: ${o.muted1};
|
|
272
|
+
`,rt=t.a`
|
|
273
|
+
display: inline-flex;
|
|
274
|
+
align-items: center;
|
|
275
|
+
gap: 2px;
|
|
276
|
+
font-weight: 600;
|
|
277
|
+
font-size: 14px;
|
|
278
|
+
line-height: 30px;
|
|
279
|
+
text-decoration: underline;
|
|
280
|
+
color: ${o.accent};
|
|
281
|
+
|
|
282
|
+
.ico {
|
|
283
|
+
width: 13px;
|
|
284
|
+
height: 13px;
|
|
285
|
+
}
|
|
286
|
+
&:focus-visible {
|
|
287
|
+
outline: 2px solid ${o.accent};
|
|
288
|
+
outline-offset: 2px;
|
|
289
|
+
}
|
|
290
|
+
`,ot=t.hr`
|
|
291
|
+
width: 100%;
|
|
292
|
+
height: 0;
|
|
293
|
+
margin: 0;
|
|
294
|
+
border: 0;
|
|
295
|
+
border-top: 1px solid ${o.gray4};
|
|
296
|
+
`,dt=t.div`
|
|
297
|
+
display: flex;
|
|
298
|
+
flex-direction: column;
|
|
299
|
+
gap: 8px;
|
|
300
|
+
padding: 8px 12px 0;
|
|
301
|
+
`,lt=t(we)`
|
|
302
|
+
font-size: 14px;
|
|
303
|
+
line-height: 1.334;
|
|
304
|
+
color: ${o.text2};
|
|
305
|
+
`,ct=t.span`
|
|
306
|
+
flex: none;
|
|
307
|
+
display: grid;
|
|
308
|
+
place-items: center;
|
|
309
|
+
width: 20px;
|
|
310
|
+
height: 20px;
|
|
311
|
+
border-radius: ${I.pill};
|
|
312
|
+
background: ${o.brandViolet};
|
|
313
|
+
font-weight: 600;
|
|
314
|
+
font-size: 12px;
|
|
315
|
+
line-height: 1.6;
|
|
316
|
+
color: ${o.white};
|
|
317
|
+
`,pt=t.div`
|
|
318
|
+
display: flex;
|
|
319
|
+
flex-direction: column;
|
|
320
|
+
gap: 4px;
|
|
321
|
+
`,ht=t.label`
|
|
322
|
+
display: flex;
|
|
323
|
+
align-items: center;
|
|
324
|
+
align-self: flex-start;
|
|
325
|
+
font-size: 14px;
|
|
326
|
+
line-height: 1.2;
|
|
327
|
+
color: ${o.text};
|
|
328
|
+
cursor: pointer;
|
|
329
|
+
`,G=t.span`
|
|
330
|
+
flex: none;
|
|
331
|
+
display: grid;
|
|
332
|
+
place-items: center;
|
|
333
|
+
width: 40px;
|
|
334
|
+
height: 40px;
|
|
335
|
+
`,gt=t.div`
|
|
336
|
+
display: flex;
|
|
337
|
+
flex-direction: column;
|
|
338
|
+
gap: 12px;
|
|
339
|
+
`,xt=t.article`
|
|
340
|
+
display: flex;
|
|
341
|
+
align-items: center;
|
|
342
|
+
flex-wrap: wrap;
|
|
343
|
+
gap: 12px;
|
|
344
|
+
row-gap: 8px;
|
|
345
|
+
padding: 12px 24px 12px 0;
|
|
346
|
+
border: 1px solid ${o.gray4};
|
|
347
|
+
border-radius: ${I.card};
|
|
348
|
+
background: ${o.white};
|
|
349
|
+
overflow: hidden;
|
|
350
|
+
transition: opacity 0.25s ease;
|
|
351
|
+
|
|
352
|
+
&[data-off] {
|
|
353
|
+
opacity: 0.5;
|
|
354
|
+
}
|
|
355
|
+
`,mt=t.div`
|
|
356
|
+
flex: none;
|
|
357
|
+
display: flex;
|
|
358
|
+
align-items: center;
|
|
359
|
+
`,ut=t.div`
|
|
360
|
+
flex: none;
|
|
361
|
+
display: grid;
|
|
362
|
+
place-items: center;
|
|
363
|
+
width: 74.289px;
|
|
364
|
+
height: 74px;
|
|
365
|
+
border-radius: 6.482px;
|
|
366
|
+
background: ${o.media};
|
|
367
|
+
overflow: hidden;
|
|
368
|
+
|
|
369
|
+
& img {
|
|
370
|
+
width: 61.57px;
|
|
371
|
+
height: 61.281px;
|
|
372
|
+
object-fit: contain;
|
|
373
|
+
filter: drop-shadow(0.303px 1.212px 1.516px rgba(0, 0, 0, 0.1));
|
|
374
|
+
}
|
|
375
|
+
`,ft=t.div`
|
|
376
|
+
/* Basis (not min-width) is what makes the price column wrap to its own line on a phone; min-width: 0
|
|
377
|
+
then lets the name ellipsize once it is on a line of its own. */
|
|
378
|
+
flex: 1 1 150px;
|
|
379
|
+
min-width: 0;
|
|
380
|
+
display: flex;
|
|
381
|
+
flex-direction: column;
|
|
382
|
+
justify-content: center;
|
|
383
|
+
gap: 8px;
|
|
384
|
+
padding: 16px 8px;
|
|
385
|
+
`,wt=t.div`
|
|
386
|
+
font-weight: 600;
|
|
387
|
+
font-size: 16px;
|
|
388
|
+
line-height: 1.2;
|
|
389
|
+
color: ${o.text};
|
|
390
|
+
white-space: nowrap;
|
|
391
|
+
overflow: hidden;
|
|
392
|
+
text-overflow: ellipsis;
|
|
393
|
+
`,yt=t.div`
|
|
394
|
+
display: flex;
|
|
395
|
+
align-items: flex-end;
|
|
396
|
+
gap: 4px;
|
|
397
|
+
`,H=t(ae)`
|
|
398
|
+
padding: 1.623px 6.491px;
|
|
399
|
+
font-weight: 600;
|
|
400
|
+
font-size: 8.56px;
|
|
401
|
+
line-height: 11.851px;
|
|
402
|
+
|
|
403
|
+
/* Same padding as the rarity chip beside it — the design sets the category chip flush with it, and
|
|
404
|
+
only the narrower gender chip (which this row does not carry) gets the tighter inset. Restated
|
|
405
|
+
rather than inherited because the shared chip's own icon variant is a more specific selector. */
|
|
406
|
+
&[data-variant='icon'] {
|
|
407
|
+
padding: 1.623px 6.491px;
|
|
408
|
+
}
|
|
409
|
+
&[data-variant='icon'] .ico {
|
|
410
|
+
width: 14.605px;
|
|
411
|
+
height: 14.605px;
|
|
412
|
+
}
|
|
413
|
+
`,bt=t.div`
|
|
414
|
+
flex: none;
|
|
415
|
+
/* Right-aligns the block on the desktop row AND on the line it wraps to on narrow screens. */
|
|
416
|
+
margin-left: auto;
|
|
417
|
+
display: flex;
|
|
418
|
+
flex-direction: column;
|
|
419
|
+
align-items: flex-end;
|
|
420
|
+
justify-content: center;
|
|
421
|
+
gap: 4px;
|
|
422
|
+
`,vt=t.div`
|
|
423
|
+
display: flex;
|
|
424
|
+
align-items: center;
|
|
425
|
+
justify-content: space-between;
|
|
426
|
+
gap: 8px;
|
|
427
|
+
width: 144px;
|
|
428
|
+
height: 42px;
|
|
429
|
+
padding: 8px;
|
|
430
|
+
border: 0.5px solid ${o.muted2};
|
|
431
|
+
border-radius: ${I.btn};
|
|
432
|
+
background: ${o.panel};
|
|
433
|
+
|
|
434
|
+
/* The MONOCHROME credit glyph, in the text colour and matched to the amount beside it: the filled
|
|
435
|
+
gradient mark is right for a price you are being SHOWN, and this is a price you are typing, so the
|
|
436
|
+
unit belongs to the input's own type. 17px is the size the design draws the mark at here. */
|
|
437
|
+
& .ico {
|
|
438
|
+
flex: 0 0 auto;
|
|
439
|
+
width: 17px;
|
|
440
|
+
height: 17px;
|
|
441
|
+
color: ${o.text};
|
|
442
|
+
}
|
|
443
|
+
transition:
|
|
444
|
+
border-color 0.15s,
|
|
445
|
+
box-shadow 0.15s;
|
|
446
|
+
|
|
447
|
+
&:focus-within {
|
|
448
|
+
border-color: ${o.accent};
|
|
449
|
+
box-shadow: 0 0 0 3px ${o.rarityBg};
|
|
450
|
+
}
|
|
451
|
+
`,jt=t.input`
|
|
452
|
+
flex: 1 1 auto;
|
|
453
|
+
min-width: 0;
|
|
454
|
+
border: 0;
|
|
455
|
+
outline: 0;
|
|
456
|
+
background: transparent;
|
|
457
|
+
font: inherit;
|
|
458
|
+
font-weight: 600;
|
|
459
|
+
font-size: 16px;
|
|
460
|
+
color: ${o.text};
|
|
461
|
+
text-align: right;
|
|
462
|
+
font-variant-numeric: tabular-nums;
|
|
463
|
+
`,kt=t.div`
|
|
464
|
+
display: flex;
|
|
465
|
+
align-items: baseline;
|
|
466
|
+
gap: 4px;
|
|
467
|
+
font-weight: 500;
|
|
468
|
+
font-size: 12px;
|
|
469
|
+
color: ${o.gray0};
|
|
470
|
+
`,Ct=t.span`
|
|
471
|
+
font-weight: 300;
|
|
472
|
+
font-size: 10px;
|
|
473
|
+
color: ${o.muted};
|
|
474
|
+
`,$t=t.div`
|
|
475
|
+
height: 101px;
|
|
476
|
+
border: 1px solid transparent;
|
|
477
|
+
border-radius: ${I.card};
|
|
478
|
+
background: linear-gradient(100deg, #ededed 30%, #f7f7f7 50%, #ededed 70%);
|
|
479
|
+
background-size: 200% 100%;
|
|
480
|
+
animation: shimmer 1.3s infinite linear;
|
|
481
|
+
`,St=t.div`
|
|
482
|
+
position: fixed;
|
|
483
|
+
left: 0;
|
|
484
|
+
right: 0;
|
|
485
|
+
bottom: 0;
|
|
486
|
+
z-index: 30;
|
|
487
|
+
background: rgba(255, 255, 255, 0.9);
|
|
488
|
+
backdrop-filter: blur(12px);
|
|
489
|
+
border-top: 1px solid ${o.line};
|
|
490
|
+
`,It=t.div`
|
|
491
|
+
max-width: 1003px;
|
|
492
|
+
margin: 0 auto;
|
|
493
|
+
padding: 15px 20px;
|
|
494
|
+
display: flex;
|
|
495
|
+
align-items: center;
|
|
496
|
+
gap: 16px;
|
|
497
|
+
|
|
498
|
+
${Ke.maxWidth("mobile")} {
|
|
499
|
+
padding: 12px 16px;
|
|
500
|
+
gap: 12px;
|
|
501
|
+
}
|
|
502
|
+
`,Lt=t.div`
|
|
503
|
+
display: flex;
|
|
504
|
+
align-items: center;
|
|
505
|
+
gap: 6px;
|
|
506
|
+
font-weight: 600;
|
|
507
|
+
font-size: 16px;
|
|
508
|
+
color: ${o.text};
|
|
509
|
+
`,Tt=t.div`
|
|
510
|
+
font-size: 13px;
|
|
511
|
+
color: ${o.muted};
|
|
512
|
+
`,zt=t.span`
|
|
513
|
+
flex: 1 1 auto;
|
|
514
|
+
`,At=t(E)`
|
|
515
|
+
flex: none;
|
|
516
|
+
padding: 13px 24px;
|
|
517
|
+
`,_t=t.div`
|
|
518
|
+
padding: 16px 12px 0;
|
|
519
|
+
`,Mt=[{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"}],Et="https://docs.decentraland.org";function Rt(a){try{return he(BigInt(a))}catch{return null}}function Yt(){const{session:a}=re(),l=oe(),{items:p,isLoading:k}=fe(),[R,y]=g.useState({}),[F,L]=g.useState(new Set),[b,T]=g.useState(null);g.useEffect(()=>{p.length&&y(n=>{const s={...n};for(const d of p)s[d.oldTradeId]==null&&(s[d.oldTradeId]=d.suggestedCredits);return s})},[p]);const c=n=>!F.has(n),w=n=>R[n.oldTradeId]??n.suggestedCredits,x=p.filter(n=>c(n.oldTradeId)),z=x.reduce((n,s)=>n+w(s),0),v=p.length>0&&x.length===p.length,C=x.length>0&&!v;function A(n,s){const d=s.replace(/[^\d]/g,"");y(r=>({...r,[n]:d===""?0:parseInt(d,10)}))}function P(n){L(s=>{const d=new Set(s);return d.has(n)?d.delete(n):d.add(n),d})}function _(){L(v?new Set(p.map(n=>n.oldTradeId)):new Set)}function M(n){return n.map(s=>({item:s,priceCredits:Math.max(1,w(s))}))}function j(){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"]}),ge.success(i("importListings.toastUpdated"))}return!k&&p.length===0?e.jsx(Ge,{"data-testid":"import-empty",children:e.jsxs(He,{children:[e.jsx(Ve,{"aria-hidden":!0,children:e.jsx("img",{src:Ue,alt:"",width:85,height:85})}),e.jsxs(Ye,{children:[e.jsx(Je,{children:i("importListings.emptyTitle")}),e.jsx(Xe,{children:i("importListings.emptyBody")})]}),e.jsx(Ze,{children:e.jsx(et,{as:te,to:V,variant:"purple",children:i("importListings.goToMyAssets")})})]})}):e.jsxs(tt,{children:[e.jsxs(it,{children:[e.jsxs(nt,{children:[e.jsx(st,{children:i("importListings.title")}),e.jsxs("div",{children:[e.jsx(at,{children:i("importListings.lede",{currency:de(Q.name)})}),e.jsxs(rt,{href:Et,target:"_blank",rel:"noopener noreferrer",children:[i("importListings.learnMore"),e.jsx(O,{name:"external-link",className:"ico","aria-hidden":!0})]})]})]}),e.jsx(ye,{})]}),e.jsx(ot,{}),e.jsxs(dt,{children:[e.jsxs(lt,{"data-testid":"import-progress",children:[e.jsx(ct,{"data-testid":"import-count",children:p.length}),i("importListings.updatePricing")]}),e.jsxs(pt,{children:[e.jsxs(ht,{children:[e.jsx(G,{children:e.jsx(U,{type:"checkbox",checked:v,ref:n=>{n&&(n.indeterminate=C)},"data-indeterminate":C,onChange:_,"data-testid":"import-select-all","aria-label":i("importListings.selectAllAria")})}),i("importListings.selectAll")]}),e.jsx(gt,{children:k?Array.from({length:4}).map((n,s)=>e.jsx($t,{},s)):p.map(n=>{const s=w(n),d=le({...n,wearableCategory:n.wearableCategory??void 0}),r=Rt(n.manaWei);return e.jsxs(xt,{"data-off":c(n.oldTradeId)?void 0:!0,children:[e.jsxs(mt,{children:[e.jsx(G,{children:e.jsx(U,{type:"checkbox",checked:c(n.oldTradeId),onChange:()=>P(n.oldTradeId),"data-testid":"import-row-check","aria-label":i("importListings.includeItem",{name:n.name})})}),e.jsx(ut,{children:n.thumbnail?e.jsx("img",{src:n.thumbnail,alt:""}):null})]}),e.jsxs(ft,{children:[e.jsx(wt,{title:n.name,children:n.name||i("importListings.itemFallback")}),e.jsxs(yt,{children:[e.jsx(H,{"data-variant":"rarity",style:{background:pe(n.rarity),color:ce(n.rarity)},children:n.rarity}),d?e.jsx(H,{"data-variant":"icon",children:e.jsx(O,{name:d,"aria-hidden":!0})}):null]})]}),e.jsxs(bt,{children:[e.jsxs(vt,{children:[e.jsx(Y,{}),e.jsx(jt,{"data-testid":"imp-price-input",inputMode:"numeric",value:s.toLocaleString(),onChange:h=>A(n.oldTradeId,h.target.value),"aria-label":i("importListings.priceAria",{currency:Q.name,name:n.name})})]}),e.jsxs(kt,{children:[e.jsxs("span",{children:["$",N(s).toFixed(2)]}),r?e.jsx(Ct,{children:i("importListings.wasMana",{amount:r})}):null]})]})]},n.oldTradeId)})})]})]}),e.jsx(_t,{children:e.jsx(ve,{title:"faq.title",entries:Mt})}),e.jsx(St,{children:e.jsxs(It,{children:[e.jsxs("div",{children:[e.jsxs(Lt,{children:[e.jsx(be,{})," ",z.toLocaleString()]}),e.jsx(Tt,{children:i("importListings.selectedSummary",{count:x.length,usd:N(z).toFixed(2)})})]}),e.jsx(zt,{}),e.jsx(At,{variant:"purple",disabled:x.length===0,onClick:()=>T(M(x)),children:i("importListings.listAll",{count:x.length})})]})}),b&&a?e.jsx(Oe,{queue:b,session:a,onClose:()=>T(null),onDone:j}):null]})}export{Yt as ImportListings};
|