@dcl/shop 1.0.2-31053112537.commit-2eeb02b → 1.0.2-31061650925.commit-fa244eb
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-CT4EXTT1.js → Activity-DAMRT2bN.js} +3 -3
- package/_assets/{AnimatedBackground-wyzu1j63.js → AnimatedBackground-N_wcSf6D.js} +2 -2
- package/_assets/Assets-7wgiv5MU.js +866 -0
- package/_assets/{Assets.styles-De3LV6PK.js → Assets.styles-9R6ppWqo.js} +1 -1
- package/_assets/Authorizations-DCP2Yevg.js +191 -0
- package/_assets/{Cart-DJkaXf-4.js → Cart-CpLaRQWb.js} +2 -2
- package/_assets/{CircularProgress-CdQvdQq6.js → CircularProgress-BYXbDw8X.js} +1 -1
- package/_assets/{Collection-CJV4xLye.js → Collection-CA94Ylrk.js} +1 -1
- package/_assets/{CollectionCarousel-CvMsq3XH.js → CollectionCarousel-BkFV4le7.js} +1 -1
- package/_assets/{Confetti-BH2iBIUi.js → Confetti-D7bsXMqQ.js} +1 -1
- package/_assets/{Creator-Cyy5FpL2.js → Creator-DWKYxWTB.js} +1 -1
- package/_assets/{ErrorNotice-h0GUcJEu.js → ErrorNotice-CCsvrT3H.js} +1 -1
- package/_assets/{ExchangeController-B3cP_vUc.js → ExchangeController-KIbY1TeV.js} +1 -1
- package/_assets/{Faq-CKehqHI0.js → Faq-YyrvPI25.js} +1 -1
- package/_assets/{GetCredits-DdkULwKp.js → GetCredits-gCz6CMY3.js} +1 -1
- package/_assets/{Grow-BV4Iorxj.js → Grow-B6W2xyXd.js} +1 -1
- package/_assets/{HelpersUtil-CU-9vHU7.js → HelpersUtil-BmHoBPAz.js} +1 -1
- package/_assets/{ItemDetail-BAqZB6Be.js → ItemDetail-DsP2PTh3.js} +234 -229
- package/_assets/LazyEmoteControls-lVtDIvME.js +2 -0
- package/_assets/{LoadMore-D4fnHonl.js → LoadMore-ChGcAM1i.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-YVCL83wQ.js → ManaPricingBanner.styles-CZgGH3OR.js} +1 -1
- package/_assets/{MyAssets-DeZdrOao.js → MyAssets-jgTQywGo.js} +2 -2
- package/_assets/{MyFavorites-Jhmw64Z-.js → MyFavorites-B_oQzUR9.js} +1 -1
- package/_assets/NotFound-CjDp1Ys_.js +17 -0
- package/_assets/{NotificationsBell-CbzYe18m.js → NotificationsBell-Dkr9JB0w.js} +1 -1
- package/_assets/{OutfitDetail-mnH36Arv.js → OutfitDetail-BNlw-NwV.js} +1 -1
- package/_assets/{OutfitPreview-DEQlnmtN.js → OutfitPreview-J5m3e8Gl.js} +1 -1
- package/_assets/OutfitStudio-xpf5tPAA.js +556 -0
- package/_assets/StoreSettings-BkFED3xP.js +243 -0
- package/_assets/{Success-Duo1gCiQ.js → Success-lmJVKgtL.js} +1 -1
- package/_assets/{SwapController-CJtBte7L.js → SwapController-DKvQsgHw.js} +1 -1
- package/_assets/{Tooltip-H89dNdoQ.js → Tooltip-BBYuQHQb.js} +1 -1
- package/_assets/{TradeService-BcEoCIV7.js → TradeService-CkbprpVw.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-CZuJfgAC.js → W3MFrameProviderSingleton-6oL2Do5B.js} +3 -3
- package/_assets/{WebCryptoP256-BQ90tDtY.js → WebCryptoP256-6t0_XFco.js} +1 -1
- package/_assets/{authorizations-GLPsQqiP.js → authorizations-CbXH-W_L.js} +1 -1
- package/_assets/{basic-kk_TRFwe.js → basic-DSLXBfxu.js} +1 -1
- package/_assets/{biconomy-D-XcBmzY.js → biconomy-DKrndD59.js} +1 -1
- package/_assets/{builder-Dn0-qNG1.js → builder-CVMQir9d.js} +1 -1
- package/_assets/{buy-C36PZNHt.js → buy-BllmT-mt.js} +1 -1
- package/_assets/{buy-gasless-cVGUwJcn.js → buy-gasless-BuzErI_K.js} +1 -1
- package/_assets/{categories-l2OqZN_F.js → categories-Bjf-PXbG.js} +1 -1
- package/_assets/{ccip-DTvzkPzd.js → ccip-DI15Urx-.js} +1 -1
- package/_assets/{ccip-BkPpUcVC.js → ccip-DyRqdu6M.js} +1 -1
- package/_assets/{collectionPage.styles-BP7gMOku.js → collectionPage.styles-BgKDi1Aa.js} +2 -2
- package/_assets/{controller-Cm3hwM7G.js → controller-BSVA5WKe.js} +2 -2
- package/_assets/{core-DtQ_ZTXW.js → core-CflNwoXZ.js} +4 -4
- package/_assets/{createSvgIcon-DTfKYyFY.js → createSvgIcon-BCgRSx6l.js} +1 -1
- package/_assets/{custom-dDX_uBau.js → custom-ekboJ4XZ.js} +1 -1
- package/_assets/{data-capture-BHgEiKBs.js → data-capture-C00Edv8o.js} +1 -1
- package/_assets/{email-D-4NGs1z.js → email-D7bKqbcO.js} +1 -1
- package/_assets/{embedded-wallet-BQg7nplX.js → embedded-wallet-BgZe_e0-.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-DKFf4xqI.js → emotion-styled.browser.esm-BsZP4P-B.js} +1 -1
- package/_assets/{engine-9w9_00su.js → engine-Cnqy1olA.js} +1 -1
- package/_assets/{errors-DAy3n3Fl.js → errors-BXmP5k3l.js} +1 -1
- package/_assets/{estimate-l1-fee-CMUFNeJj.js → estimate-l1-fee-9ryWwmxC.js} +1 -1
- package/_assets/{execute-DmyMuEbq.js → execute-CY4XWL-J.js} +2 -2
- package/_assets/{features-dYRaytuv.js → features-MG4MlDMD.js} +1 -1
- package/_assets/{fetchTokenMetadata-B7vrevS4.js → fetchTokenMetadata-qCCUs6iE.js} +2 -2
- package/_assets/{field.styles-DxW4rsbZ.js → field.styles-DEvu6yNO.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-D-zi5D-3.js → get-ecosystem-wallet-info-DEImAnzE.js} +1 -1
- package/_assets/{getBalance-03ROSZOz.js → getBalance-J5grsfOj.js} +1 -1
- package/_assets/{getNFT-BZ5HS1py.js → getNFT-ByNh7y6k.js} +1 -1
- package/_assets/{getNFT-CGrmS4cn.js → getNFT-Dm5aL9u2.js} +1 -1
- package/_assets/{grid.styles-VdW_5pS8.js → grid.styles-CtrXwvIr.js} +1 -1
- package/_assets/{hashTypedData-DWrpUT7F.js → hashTypedData-BxKbqj1M.js} +1 -1
- package/_assets/{hashTypedData-D0grmu7Q.js → hashTypedData-CgttwS7E.js} +1 -1
- package/_assets/{in-app-Fd-r2Pt9.js → in-app-DF-fkkCZ.js} +1 -1
- package/_assets/{in-app-wallet-calls-US6STGvk.js → in-app-wallet-calls-D9z1I0uV.js} +1 -1
- package/_assets/{index-Desa5DLU.js → index--tlhUPhu.js} +1 -1
- package/_assets/{index-mHYk9Ana.js → index-7eX0SEVb.js} +1 -1
- package/_assets/{index-DXEO_tM8.js → index-B5TGt1q8.js} +1 -1
- package/_assets/{index-D6hB217e.js → index-B6xwPPMs.js} +1 -1
- package/_assets/{index-_VGZGU-r.js → index-B7Mvi-Fg.js} +3 -3
- package/_assets/{index-DM21W4eU.js → index-B7sgFJOZ.js} +1 -1
- package/_assets/{index-BXAhg_WL.js → index-BDPRDW4c.js} +1 -1
- package/_assets/{index-E6MYA_qz.js → index-BFgGvh7x.js} +1 -1
- package/_assets/{index-9wBxZvS3.js → index-BKC-pfo2.js} +1 -1
- package/_assets/{index-C9qZGyVn.js → index-BSmKDErh.js} +1 -1
- package/_assets/{index-DIEYvaFA.js → index-BZNkhtbZ.js} +1 -1
- package/_assets/{index-CTFDcqvg.js → index-BcQ98rhd.js} +1 -1
- package/_assets/{index-CBa9KvFL.js → index-BcW0TBOx.js} +1 -1
- package/_assets/{index-CUnVy-2F.js → index-BiSRuBrK.js} +1 -1
- package/_assets/{index-prmd5qIM.js → index-BlIt7KpC.js} +1 -1
- package/_assets/{index-b59UUC3O.js → index-BsD9lKdu.js} +1 -1
- package/_assets/{index-C9g5jnkn.js → index-BybKxZca.js} +3 -3
- package/_assets/{index-CvEQ-uxw.js → index-C0xt2SIQ.js} +1 -1
- package/_assets/{index-vO2jCoJA.js → index-C2s-_3dE.js} +1 -1
- package/_assets/{index-YtrNc4_U.js → index-C5fUw5Ha.js} +1 -1
- package/_assets/{index-D90sT5TF.js → index-C6RxhKIE.js} +1 -1
- package/_assets/{index-WGFd54XN.js → index-CAj85Mcv.js} +1 -1
- package/_assets/{index-DMqWpF7F.js → index-CAzui_hj.js} +1 -1
- package/_assets/{index-DCty_Nzt.js → index-CIKoh-oU.js} +1 -1
- package/_assets/{index-CzuJbwKM.js → index-CKXjZ-Kd.js} +1 -1
- package/_assets/{index-BOqWivx2.js → index-CbQYrUIv.js} +1 -1
- package/_assets/{index-Ck66rPGl.js → index-Cbj1bJsc.js} +1 -1
- package/_assets/{index-ojnKZ8lo.js → index-CgKz1pmK.js} +1 -1
- package/_assets/{index-3M7Oc88-.js → index-CjSsletQ.js} +1 -1
- package/_assets/{index-0ctogS4p.js → index-CkHS5p_Q.js} +1 -1
- package/_assets/{index-D-lui3ze.js → index-CpxvlmGa.js} +1 -1
- package/_assets/{index-BfrU5ARr.js → index-CszjRehO.js} +1 -1
- package/_assets/{index-CYelE7gc.js → index-CuZ7SJno.js} +1 -1
- package/_assets/{index-GGunchuI.js → index-CuZGDrIM.js} +1 -1
- package/_assets/{index-DmohqnOc.js → index-D20327nw.js} +1 -1
- package/_assets/{index-C6snVc74.js → index-D5jN8YQk.js} +2 -2
- package/_assets/{index-CpgH80QO.js → index-D7dTUoYt.js} +319 -315
- package/_assets/{index-Bw5aGSBt.js → index-D7foy_c1.js} +3 -3
- package/_assets/{index-DlOXAhkq.js → index-DRjhhI6j.js} +1 -1
- package/_assets/{index-DZE8IM2d.js → index-DVJFosyx.js} +1 -1
- package/_assets/{index-DR22dJ1f.js → index-DXpGefPo.js} +1 -1
- package/_assets/{index-Csv3ZE7U.js → index-DYQXXAKt.js} +1 -1
- package/_assets/{index-DpfgsZS7.js → index-D_a1Dj89.js} +2 -2
- package/_assets/{index-BLhzIl8l.js → index-DbCIWeQF.js} +2 -2
- package/_assets/{index-Cji3FYAQ.js → index-Dc_jl2yy.js} +1 -1
- package/_assets/{index-D_RGYDYj.js → index-DlewIau_.js} +1 -1
- package/_assets/{index-BGWFa_3t.js → index-Fn-DLeUg.js} +1 -1
- package/_assets/{index-DGVpcWzu.js → index-Z6tclw43.js} +1 -1
- package/_assets/{index-Dctqjcot.js → index-gbxeK1C-.js} +1 -1
- package/_assets/{index-B4OCkrkj.js → index-gmA5M3R1.js} +1 -1
- package/_assets/{index-Y3vrFRTZ.js → index-lIySTE8R.js} +1 -1
- package/_assets/{index-CHrjSjdy.js → index-zG9t0hxJ.js} +1 -1
- package/_assets/{index.es-C_PIRdls.js → index.es-11O0MAa5.js} +4 -4
- package/_assets/{index.es-CM-7pdUr.js → index.es-6tzroQMk.js} +1 -1
- package/_assets/{index.es-iNKw5JYV.js → index.es-BOuSF7GL.js} +1 -1
- package/_assets/{localBatchGatewayRequest-CvrWva1S.js → localBatchGatewayRequest-CByVkxJB.js} +1 -1
- package/_assets/name-verified-oGwQ3ntb.svg +25 -0
- package/_assets/{networks-DxxML95J.js → networks-CLAHX11r.js} +1 -1
- package/_assets/{onramp-DlmUl4wC.js → onramp-X6DWjNa-.js} +1 -1
- package/_assets/{openzeppelin-oRjzN4zB.js → openzeppelin-DWrLU4le.js} +1 -1
- package/_assets/{parseNft-B1VtTOpw.js → parseNft-C0F1eSr9.js} +2 -2
- package/_assets/{parseSignature-CiDHU6Nz.js → parseSignature-B1BDTVRI.js} +1 -1
- package/_assets/{parseSignature-D_U2MhSK.js → parseSignature-Cfa0bf3p.js} +3 -3
- package/_assets/{passkeys-C4nRLQjw.js → passkeys-Bq7ndAcy.js} +1 -1
- package/_assets/{pay-with-exchange-DjjSaX9l.js → pay-with-exchange-DU8q52b9.js} +1 -1
- package/_assets/{qr-overlay-D6ySLpj4.js → qr-overlay-2pcgXiq0.js} +1 -1
- package/_assets/{receive-BmTDhzFh.js → receive-UZ0WD1OR.js} +1 -1
- package/_assets/{resolveImplementation-C8betaeH.js → resolveImplementation-C5KIPshP.js} +1 -1
- package/_assets/{rpc-BIRrsCrS.js → rpc-q5JetAPC.js} +1 -1
- package/_assets/{secp256k1-BKrO94JQ.js → secp256k1-C35ing1J.js} +1 -1
- package/_assets/{secp256k1-ChWI25jO.js → secp256k1-C79pdbKP.js} +1 -1
- package/_assets/{secp256k1-BKzdJAUQ.js → secp256k1-CYrjGZQC.js} +1 -1
- package/_assets/{send-DkppUNQD.js → send-_ymraJKw.js} +1 -1
- package/_assets/{send-batch-transaction-BT57-cdv.js → send-batch-transaction-DkYVZ1xj.js} +1 -1
- package/_assets/{send-eip712-transaction-DzyYzWbO.js → send-eip712-transaction-BzZBuy56.js} +2 -2
- package/_assets/{send-gasless-transaction-CEY__cC5.js → send-gasless-transaction-ByRZPFH6.js} +2 -2
- package/_assets/{send-transaction-BUcSoRKJ.js → send-transaction-CUkh0xRu.js} +2 -2
- package/_assets/{sendMetaTransaction-ZsFc6TYS.js → sendMetaTransaction-De85nOcx.js} +1 -1
- package/_assets/{sendRawTransaction-RwVbISDi.js → sendRawTransaction-D5RykxPX.js} +3 -3
- package/_assets/{serializeTransaction-D7Ih8-j7.js → serializeTransaction-EYy94JNM.js} +1 -1
- package/_assets/{session-proposal-BDnKkUie.js → session-proposal-Bf_Po3Sl.js} +1 -1
- package/_assets/{session-request-maNMGkDh.js → session-request-DEDmAqA-.js} +2 -2
- package/_assets/{signing-O4ufWRe8.js → signing-DqKP5KUZ.js} +3 -3
- package/_assets/{skeleton.styles-B5G3DoRu.js → skeleton.styles-CVQk0siV.js} +1 -1
- package/_assets/{socials-DgrJfl24.js → socials-3pLrS-E7.js} +1 -1
- package/_assets/{styled-CzuG2SF7.js → styled-8pFgehSd.js} +1 -1
- package/_assets/{swaps-CEuJEeBK.js → swaps-C-dgABl9.js} +1 -1
- package/_assets/{thirdweb-CWMxyfTR.js → thirdweb-C6_KggNb.js} +3 -3
- package/_assets/{to-serializable-transaction-eILRk2uK.js → to-serializable-transaction-BWUJjZdO.js} +2 -2
- package/_assets/{transactionReceipt-YxHkhYmR.js → transactionReceipt-DmwkwkkP.js} +1 -1
- package/_assets/{transactions-DFikge11.js → transactions-BSJMdJi4.js} +1 -1
- package/_assets/{useCreditPacks-CPiiIVbF.js → useCreditPacks-DQxqJepP.js} +1 -1
- package/_assets/{useImportable-BhPYUErM.js → useImportable-Co0AaRPY.js} +1 -1
- package/_assets/{useInfiniteGrid-DmIgZTT1.js → useInfiniteGrid-UHC0Jjfu.js} +1 -1
- package/_assets/{useTheme-DnWPXYyn.js → useTheme-B-55uBZP.js} +1 -1
- package/_assets/{verifyHash-BCo8j0IO.js → verifyHash-BGJh7VH4.js} +1 -1
- package/_assets/{w3m-modal-Dyp8brdF.js → w3m-modal-CjXODL26.js} +1 -1
- package/_assets/{w3m-modal-D7JdGvOC.js → w3m-modal-CwXD068w.js} +1 -1
- package/_assets/{wait-for-tx-receipt-ITlfousv.js → wait-for-tx-receipt-DRA8zhkS.js} +1 -1
- package/_assets/{wallets-DoMl3uKp.js → wallets-DOXRX-PZ.js} +5 -5
- package/_assets/{web-connector-uCJIkgMa.js → web-connector-CXxJTFl4.js} +3 -3
- package/_assets/{writeContract-DMg_Cu_T.js → writeContract-BdEWRAPa.js} +1 -1
- package/_assets/{zoraTestnet-CzhulMA0.js → zoraTestnet-CzfX948o.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Assets-DFjWkvAj.js +0 -801
- package/_assets/Authorizations-Erxm3Fyz.js +0 -188
- package/_assets/LazyEmoteControls-Dsz7X5iX.js +0 -2
- package/_assets/NotFound-BV0gWDmk.js +0 -13
- package/_assets/OutfitStudio-DlMQxDuE.js +0 -537
- package/_assets/StoreSettings-DXQD9Iiv.js +0 -239
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{L as k,d as te,j as e,r as p}from"./react-BYHuwl8r.js";import{s as t,I as j,t as ie,O as se,P as ae,Q as ne,B as w,R as oe,o as B,S as re,v as le,x as de,b as a,U as M,V as F,W as ce,X as pe,Y as he,Z as me,$ as xe,a0 as ue,a1 as ge,a2 as fe,a3 as be,a4 as ve,a5 as ye,a6 as je,a7 as we,a8 as ke,a9 as Ie,aa as $e,z as E,ab as Ce,ac as Ee,ad as ze,ae as Le,af as Oe,ag as Se}from"./index-
|
|
1
|
+
import{L as k,d as te,j as e,r as p}from"./react-BYHuwl8r.js";import{s as t,I as j,t as ie,O as se,P as ae,Q as ne,B as w,R as oe,o as B,S as re,v as le,x as de,b as a,U as M,V as F,W as ce,X as pe,Y as he,Z as me,$ as xe,a0 as ue,a1 as ge,a2 as fe,a3 as be,a4 as ve,a5 as ye,a6 as je,a7 as we,a8 as ke,a9 as Ie,aa as $e,z as E,ab as Ce,ac as Ee,ad as ze,ae as Le,af as Oe,ag as Se}from"./index-D7dTUoYt.js";import{E as _}from"./ErrorNotice-CCsvrT3H.js";import{E as Ae}from"./LazyEmoteControls-lVtDIvME.js";import{O as Fe}from"./OutfitPreview-J5m3e8Gl.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./disposePreview-5vjiqVZ0.js";const{colors:o,radius:Ne,media:d}=ie,H=t.div`
|
|
2
2
|
max-width: 1721px;
|
|
3
3
|
margin: 0 auto;
|
|
4
4
|
`,Te=t.nav`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r,j as n}from"./react-BYHuwl8r.js";import{d as v}from"./dcl-schemas-CmtP3U6y.js";import{s as P,Y as R,ah as F,c as O,ai as S,b as B}from"./index-
|
|
1
|
+
import{r,j as n}from"./react-BYHuwl8r.js";import{d as v}from"./dcl-schemas-CmtP3U6y.js";import{s as P,Y as R,ah as F,c as O,ai as S,b as B}from"./index-D7dTUoYt.js";import{d as W}from"./disposePreview-5vjiqVZ0.js";const H=P.div`
|
|
2
2
|
position: absolute;
|
|
3
3
|
inset: 0;
|
|
4
4
|
display: grid;
|
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";import{s,t as lt,I as K,aI as Zt,b as e,z as ot,B as x,K as Ct,o as X,S as te,x as ee,A as It,v as Et,W as ie,a0 as z,aJ as V,aK as se,aL as oe,aM as J,a5 as ae,a6 as re,a3 as ne,a4 as de,U as Lt,a9 as le,aN as at,aO as ue,aP as ce,aQ as pe,E as N,aR as Rt,aS as zt,aT as A,F as rt,aU as nt,aV as he,aW as fe,aX as xe,$ as me,aY as ge,aZ as be,ag as ye}from"./index-D7dTUoYt.js";import{E as D}from"./ErrorNotice-CCsvrT3H.js";import{L as je}from"./LoadMore-ChGcAM1i.js";import{u as ve}from"./useInfiniteGrid-UHC0Jjfu.js";import{O as we}from"./OutfitPreview-J5m3e8Gl.js";import{T as $e}from"./skeleton.styles-CVQk0siV.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./disposePreview-5vjiqVZ0.js";const{colors:m,radius:Y,media:Se}=lt,ke=s.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 12px;
|
|
5
|
+
`,Te=s.div`
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 8px;
|
|
9
|
+
border: 1px solid rgba(255, 255, 255, 0.45);
|
|
10
|
+
border-radius: ${Y.pill};
|
|
11
|
+
padding: 0 14px;
|
|
12
|
+
height: 44px;
|
|
13
|
+
background: rgba(0, 0, 0, 0.25);
|
|
14
|
+
color: ${m.softWhite};
|
|
15
|
+
|
|
16
|
+
input {
|
|
17
|
+
flex: 1;
|
|
18
|
+
min-width: 0;
|
|
19
|
+
border: 0;
|
|
20
|
+
outline: 0;
|
|
21
|
+
background: none;
|
|
22
|
+
font: inherit;
|
|
23
|
+
color: ${m.softWhite};
|
|
24
|
+
}
|
|
25
|
+
input::placeholder {
|
|
26
|
+
color: ${m.muted2};
|
|
27
|
+
}
|
|
28
|
+
`,vt=s.p`
|
|
29
|
+
margin: 0;
|
|
30
|
+
font-size: 13px;
|
|
31
|
+
color: ${m.gray4};
|
|
32
|
+
`,Ce=s.div`
|
|
33
|
+
display: flex;
|
|
34
|
+
gap: 8px;
|
|
35
|
+
`,Ie=s.button`
|
|
36
|
+
min-height: 44px;
|
|
37
|
+
padding: 0 16px;
|
|
38
|
+
border-radius: ${Y.pill};
|
|
39
|
+
border: 1px solid rgba(255, 255, 255, 0.45);
|
|
40
|
+
background: none;
|
|
41
|
+
font: inherit;
|
|
42
|
+
font-weight: 600;
|
|
43
|
+
color: ${m.softWhite};
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
|
|
46
|
+
&[data-selected] {
|
|
47
|
+
border-color: ${m.softWhite};
|
|
48
|
+
background: ${m.softWhite};
|
|
49
|
+
color: ${m.text};
|
|
50
|
+
}
|
|
51
|
+
`,wt=s.div`
|
|
52
|
+
display: grid;
|
|
53
|
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
54
|
+
gap: 10px;
|
|
55
|
+
|
|
56
|
+
${Se.maxWidth("mobile")} {
|
|
57
|
+
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
|
|
58
|
+
}
|
|
59
|
+
`,Ee=s.span`
|
|
60
|
+
height: 190px;
|
|
61
|
+
border-radius: ${Y.card};
|
|
62
|
+
`,Le=s.button`
|
|
63
|
+
position: relative;
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
gap: 6px;
|
|
67
|
+
padding: 8px;
|
|
68
|
+
background: rgba(0, 0, 0, 0.4);
|
|
69
|
+
border: 1px solid transparent;
|
|
70
|
+
border-radius: ${Y.card};
|
|
71
|
+
text-align: left;
|
|
72
|
+
font: inherit;
|
|
73
|
+
color: ${m.softWhite};
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
|
|
76
|
+
&:hover:not(:disabled) {
|
|
77
|
+
border-color: ${m.magenta};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&[data-selected] {
|
|
81
|
+
border-color: ${m.softWhite};
|
|
82
|
+
box-shadow: 0 0 0 1px ${m.softWhite};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:disabled {
|
|
86
|
+
opacity: 0.5;
|
|
87
|
+
cursor: default;
|
|
88
|
+
}
|
|
89
|
+
`,Re=s.img`
|
|
90
|
+
width: 100%;
|
|
91
|
+
aspect-ratio: 1;
|
|
92
|
+
object-fit: cover;
|
|
93
|
+
border-radius: 8px;
|
|
94
|
+
background: ${m.media};
|
|
95
|
+
`,ze=s.span`
|
|
96
|
+
font-size: 13px;
|
|
97
|
+
font-weight: 600;
|
|
98
|
+
white-space: nowrap;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
text-overflow: ellipsis;
|
|
101
|
+
`,We=s.span`
|
|
102
|
+
display: inline-flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
gap: 4px;
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
color: ${m.gray4};
|
|
107
|
+
`,Pe=s(K)`
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: 12px;
|
|
110
|
+
right: 12px;
|
|
111
|
+
color: ${m.accent};
|
|
112
|
+
background: ${m.white};
|
|
113
|
+
border-radius: 50%;
|
|
114
|
+
`,Oe=[{key:"wearable",labelKey:"categories.wearables"},{key:"emote",labelKey:"categories.emotes"}];function Ae({selectedKeys:n,onPick:f,canPick:h}){const[c,y]=d.useState("wearable"),[j,b]=d.useState(""),[o,R]=d.useState("");d.useEffect(()=>{const l=setTimeout(()=>R(j.trim()),300);return()=>clearTimeout(l)},[j]);const{items:C,isLoading:I,isPlaceholderData:u,isError:k,hasNextPage:E,isFetchingNextPage:Z,fetchNextPage:S}=ve(["outfit-picker",c,o],l=>Zt({search:o||void 0,category:c,onSale:!0,listingType:"primary",first:24,skip:l,sortBy:"cheapest"})),g=e(c==="emote"?"outfits.studio.searchEmotes":"outfits.studio.searchWearables"),_=new Set,M=C.filter(l=>{if(!l.itemId)return!1;const v=`${l.contractAddress.toLowerCase()}-${l.itemId}`;return _.has(v)?!1:(_.add(v),!0)});return t.jsxs(ke,{"data-testid":"outfit-picker",children:[t.jsx(Ce,{role:"group","aria-label":e("outfits.studio.pickerCategory"),"data-testid":"outfit-picker-category",children:Oe.map(({key:l,labelKey:v})=>t.jsx(Ie,{type:"button","data-category":l,"data-selected":c===l||void 0,"aria-pressed":c===l,onClick:()=>{y(l),b("")},children:e(v)},l))}),t.jsxs(Te,{children:[t.jsx(K,{name:"search",color:lt.colors.muted}),t.jsx("input",{value:j,placeholder:g,"aria-label":g,onChange:l=>b(l.target.value),"data-testid":"outfit-picker-search"})]}),k?t.jsx(vt,{children:e("outfits.errors.generic")}):I||u?t.jsx(wt,{"aria-busy":"true",children:Array.from({length:8},(l,v)=>t.jsx(Ee,{className:"skeleton","aria-hidden":!0},v))}):M.length===0?t.jsx(vt,{children:e("outfits.studio.noResults")}):t.jsx(wt,{children:M.map(l=>{const v=`${l.contractAddress.toLowerCase()}-${l.itemId}`,U=n.has(v);return t.jsxs(Le,{type:"button","data-testid":"outfit-picker-item","data-selected":U||void 0,disabled:!U&&!h(l),onClick:()=>f(l),title:l.name,children:[t.jsx(Re,{src:l.thumbnail,alt:"",loading:"lazy"}),t.jsx(ze,{children:l.name}),t.jsxs(We,{children:[t.jsx(ot,{size:12}),l.priceCredits.toLocaleString()]}),U?t.jsx(Pe,{name:"check-rounded",size:18}):null]},v)})}),!k&&!I&&!u?t.jsx(je,{auto:!1,hasNextPage:!!E,isFetching:Z,onLoadMore:()=>void S()}):null]})}const{colors:r,radius:$,media:B,z:Fe}=lt,Wt=s.div`
|
|
115
|
+
max-width: 1200px;
|
|
116
|
+
margin: 0 auto;
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
gap: 20px;
|
|
120
|
+
color: ${r.softWhite};
|
|
121
|
+
`,O=s.div`
|
|
122
|
+
min-height: 52vh;
|
|
123
|
+
display: flex;
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
align-items: center;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
text-align: center;
|
|
128
|
+
gap: 14px;
|
|
129
|
+
color: ${r.softWhite};
|
|
130
|
+
`,$t=s.h1`
|
|
131
|
+
font-size: 24px;
|
|
132
|
+
`,w=s.p`
|
|
133
|
+
margin: 0;
|
|
134
|
+
font-size: 13px;
|
|
135
|
+
color: ${r.gray4};
|
|
136
|
+
`,Pt=s.div`
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
gap: 12px;
|
|
140
|
+
`,Ot=s.h1`
|
|
141
|
+
font-size: 24px;
|
|
142
|
+
font-weight: 800;
|
|
143
|
+
margin-right: auto;
|
|
144
|
+
`,Ne=s(F)`
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
justify-content: center;
|
|
148
|
+
width: 44px;
|
|
149
|
+
height: 44px;
|
|
150
|
+
border-radius: 50%;
|
|
151
|
+
color: ${r.softWhite};
|
|
152
|
+
|
|
153
|
+
&:hover {
|
|
154
|
+
background: rgba(255, 255, 255, 0.14);
|
|
155
|
+
}
|
|
156
|
+
`,At=s.span`
|
|
157
|
+
font-size: 12px;
|
|
158
|
+
font-weight: 700;
|
|
159
|
+
text-transform: uppercase;
|
|
160
|
+
letter-spacing: 0.03em;
|
|
161
|
+
padding: 3px 10px;
|
|
162
|
+
border-radius: ${$.pill};
|
|
163
|
+
background: rgba(255, 255, 255, 0.16);
|
|
164
|
+
color: ${r.softWhite};
|
|
165
|
+
|
|
166
|
+
&[data-state='published'] {
|
|
167
|
+
background: rgba(30, 166, 114, 0.35);
|
|
168
|
+
color: ${r.white};
|
|
169
|
+
}
|
|
170
|
+
`,St=s.div`
|
|
171
|
+
display: flex;
|
|
172
|
+
flex-direction: column;
|
|
173
|
+
gap: 10px;
|
|
174
|
+
`,Be=s.span`
|
|
175
|
+
height: 76px;
|
|
176
|
+
border-radius: ${$.card};
|
|
177
|
+
`,Me=s.div`
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
gap: 14px;
|
|
181
|
+
padding: 12px;
|
|
182
|
+
background: rgba(0, 0, 0, 0.4);
|
|
183
|
+
border-radius: ${$.card};
|
|
184
|
+
|
|
185
|
+
${B.maxWidth("mobile")} {
|
|
186
|
+
flex-wrap: wrap;
|
|
187
|
+
}
|
|
188
|
+
`,Ft=Ct`
|
|
189
|
+
width: 52px;
|
|
190
|
+
height: 52px;
|
|
191
|
+
border-radius: 8px;
|
|
192
|
+
background: ${r.media};
|
|
193
|
+
flex-shrink: 0;
|
|
194
|
+
`,Ue=s.div`
|
|
195
|
+
${Ft};
|
|
196
|
+
overflow: hidden;
|
|
197
|
+
|
|
198
|
+
img {
|
|
199
|
+
width: 100%;
|
|
200
|
+
height: 100%;
|
|
201
|
+
object-fit: cover;
|
|
202
|
+
display: block;
|
|
203
|
+
}
|
|
204
|
+
`,He=s.span`
|
|
205
|
+
${Ft};
|
|
206
|
+
display: inline-block;
|
|
207
|
+
`,De=s.div`
|
|
208
|
+
flex: 1;
|
|
209
|
+
min-width: 0;
|
|
210
|
+
display: flex;
|
|
211
|
+
flex-direction: column;
|
|
212
|
+
gap: 4px;
|
|
213
|
+
`,Ke=s.span`
|
|
214
|
+
font-size: 15px;
|
|
215
|
+
font-weight: 700;
|
|
216
|
+
white-space: nowrap;
|
|
217
|
+
overflow: hidden;
|
|
218
|
+
text-overflow: ellipsis;
|
|
219
|
+
`,_e=s.span`
|
|
220
|
+
display: inline-flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
gap: 8px;
|
|
223
|
+
font-size: 13px;
|
|
224
|
+
color: ${r.gray4};
|
|
225
|
+
`,Ge=s.div`
|
|
226
|
+
display: flex;
|
|
227
|
+
align-items: center;
|
|
228
|
+
gap: 8px;
|
|
229
|
+
|
|
230
|
+
${B.maxWidth("mobile")} {
|
|
231
|
+
width: 100%;
|
|
232
|
+
justify-content: flex-end;
|
|
233
|
+
}
|
|
234
|
+
`,qe=s.button`
|
|
235
|
+
display: inline-flex;
|
|
236
|
+
align-items: center;
|
|
237
|
+
justify-content: center;
|
|
238
|
+
width: 44px;
|
|
239
|
+
height: 44px;
|
|
240
|
+
border: 0;
|
|
241
|
+
background: none;
|
|
242
|
+
border-radius: 50%;
|
|
243
|
+
color: ${r.gray4};
|
|
244
|
+
cursor: pointer;
|
|
245
|
+
|
|
246
|
+
&:hover {
|
|
247
|
+
color: ${r.dclRed};
|
|
248
|
+
background: rgba(255, 255, 255, 0.14);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&:disabled {
|
|
252
|
+
opacity: 0.5;
|
|
253
|
+
cursor: default;
|
|
254
|
+
}
|
|
255
|
+
`,Qe=s.div`
|
|
256
|
+
position: fixed;
|
|
257
|
+
inset: 0;
|
|
258
|
+
z-index: ${Fe.overlay};
|
|
259
|
+
display: grid;
|
|
260
|
+
place-items: center;
|
|
261
|
+
padding: 16px;
|
|
262
|
+
`,Ve=s.div`
|
|
263
|
+
position: absolute;
|
|
264
|
+
inset: 0;
|
|
265
|
+
background: rgba(22, 21, 24, 0.5);
|
|
266
|
+
`,Je=s.div`
|
|
267
|
+
position: relative;
|
|
268
|
+
background: ${r.bg};
|
|
269
|
+
border-radius: ${$.card};
|
|
270
|
+
padding: 24px;
|
|
271
|
+
max-width: 420px;
|
|
272
|
+
width: 100%;
|
|
273
|
+
display: flex;
|
|
274
|
+
flex-direction: column;
|
|
275
|
+
gap: 12px;
|
|
276
|
+
`,Xe=s.h2`
|
|
277
|
+
font-size: 18px;
|
|
278
|
+
font-weight: 800;
|
|
279
|
+
`,Ye=s.div`
|
|
280
|
+
display: flex;
|
|
281
|
+
flex-wrap: wrap;
|
|
282
|
+
gap: 10px;
|
|
283
|
+
margin-top: 6px;
|
|
284
|
+
`,Ze=s.div`
|
|
285
|
+
display: grid;
|
|
286
|
+
grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
|
|
287
|
+
gap: 32px;
|
|
288
|
+
align-items: start;
|
|
289
|
+
|
|
290
|
+
${B.maxWidth("mobile")} {
|
|
291
|
+
grid-template-columns: 1fr;
|
|
292
|
+
gap: 20px;
|
|
293
|
+
}
|
|
294
|
+
`,ti=s.div`
|
|
295
|
+
display: flex;
|
|
296
|
+
flex-direction: column;
|
|
297
|
+
gap: 18px;
|
|
298
|
+
`,ei=s.div`
|
|
299
|
+
display: flex;
|
|
300
|
+
flex-direction: column;
|
|
301
|
+
gap: 18px;
|
|
302
|
+
`,ii=s.div`
|
|
303
|
+
position: relative;
|
|
304
|
+
aspect-ratio: 3 / 4;
|
|
305
|
+
border-radius: 16px;
|
|
306
|
+
overflow: hidden;
|
|
307
|
+
background: ${r.media};
|
|
308
|
+
|
|
309
|
+
${B.maxWidth("mobile")} {
|
|
310
|
+
aspect-ratio: 1 / 1;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
& iframe {
|
|
314
|
+
width: 100%;
|
|
315
|
+
height: 100%;
|
|
316
|
+
border: 0;
|
|
317
|
+
display: block;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
[data-preview-viewport] {
|
|
321
|
+
position: absolute;
|
|
322
|
+
inset: 0;
|
|
323
|
+
pointer-events: none;
|
|
324
|
+
}
|
|
325
|
+
`,si=s.p`
|
|
326
|
+
position: absolute;
|
|
327
|
+
inset: 0;
|
|
328
|
+
display: grid;
|
|
329
|
+
place-items: center;
|
|
330
|
+
padding: 24px;
|
|
331
|
+
text-align: center;
|
|
332
|
+
color: ${r.softWhite};
|
|
333
|
+
text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
|
|
334
|
+
`,W=s.div`
|
|
335
|
+
display: flex;
|
|
336
|
+
flex-direction: column;
|
|
337
|
+
gap: 8px;
|
|
338
|
+
`,P=s.label`
|
|
339
|
+
font-size: 13px;
|
|
340
|
+
font-weight: 700;
|
|
341
|
+
letter-spacing: 0.04em;
|
|
342
|
+
text-transform: uppercase;
|
|
343
|
+
color: ${r.gray4};
|
|
344
|
+
`,oi=s.div`
|
|
345
|
+
display: flex;
|
|
346
|
+
gap: 8px;
|
|
347
|
+
`,ai=s.button`
|
|
348
|
+
min-height: 44px;
|
|
349
|
+
padding: 0 16px;
|
|
350
|
+
border-radius: ${$.pill};
|
|
351
|
+
border: 1px solid rgba(255, 255, 255, 0.45);
|
|
352
|
+
background: none;
|
|
353
|
+
font: inherit;
|
|
354
|
+
font-weight: 600;
|
|
355
|
+
color: ${r.softWhite};
|
|
356
|
+
cursor: pointer;
|
|
357
|
+
|
|
358
|
+
&[data-selected] {
|
|
359
|
+
border-color: ${r.softWhite};
|
|
360
|
+
background: ${r.softWhite};
|
|
361
|
+
color: ${r.text};
|
|
362
|
+
}
|
|
363
|
+
`,ri=s.div`
|
|
364
|
+
width: 240px;
|
|
365
|
+
aspect-ratio: 3 / 4;
|
|
366
|
+
border-radius: ${$.card};
|
|
367
|
+
overflow: hidden;
|
|
368
|
+
background: ${r.media};
|
|
369
|
+
|
|
370
|
+
&[data-busy] {
|
|
371
|
+
opacity: 0.6;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
img {
|
|
375
|
+
width: 100%;
|
|
376
|
+
height: 100%;
|
|
377
|
+
object-fit: cover;
|
|
378
|
+
display: block;
|
|
379
|
+
}
|
|
380
|
+
`,ni=s.div`
|
|
381
|
+
display: flex;
|
|
382
|
+
align-items: center;
|
|
383
|
+
gap: 12px;
|
|
384
|
+
flex-wrap: wrap;
|
|
385
|
+
`,di=s.div`
|
|
386
|
+
display: flex;
|
|
387
|
+
align-items: center;
|
|
388
|
+
gap: 8px;
|
|
389
|
+
`,li=s.input`
|
|
390
|
+
width: 44px;
|
|
391
|
+
height: 44px;
|
|
392
|
+
padding: 2px;
|
|
393
|
+
border: 1px solid ${r.lineStrong};
|
|
394
|
+
border-radius: ${$.btn};
|
|
395
|
+
background: none;
|
|
396
|
+
cursor: pointer;
|
|
397
|
+
|
|
398
|
+
&::-webkit-color-swatch-wrapper {
|
|
399
|
+
padding: 0;
|
|
400
|
+
}
|
|
401
|
+
&::-webkit-color-swatch {
|
|
402
|
+
border: 0;
|
|
403
|
+
border-radius: 4px;
|
|
404
|
+
}
|
|
405
|
+
`,ui=s.div`
|
|
406
|
+
display: flex;
|
|
407
|
+
flex-direction: column;
|
|
408
|
+
gap: 2px;
|
|
409
|
+
font-size: 12px;
|
|
410
|
+
color: ${r.gray4};
|
|
411
|
+
`,ci=s.input`
|
|
412
|
+
width: 88px;
|
|
413
|
+
height: 26px;
|
|
414
|
+
padding: 0 6px;
|
|
415
|
+
border: 1px solid ${r.lineStrong};
|
|
416
|
+
border-radius: ${$.chip};
|
|
417
|
+
background: ${r.white};
|
|
418
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
419
|
+
font-size: 12px;
|
|
420
|
+
color: ${r.text};
|
|
421
|
+
text-transform: lowercase;
|
|
422
|
+
|
|
423
|
+
&[data-invalid] {
|
|
424
|
+
border-color: ${r.errStrong};
|
|
425
|
+
}
|
|
426
|
+
`,pi=s.div`
|
|
427
|
+
width: 281px;
|
|
428
|
+
max-width: 100%;
|
|
429
|
+
`,hi=s(x)`
|
|
430
|
+
align-self: flex-start;
|
|
431
|
+
`,fi=s.div`
|
|
432
|
+
display: flex;
|
|
433
|
+
align-items: stretch;
|
|
434
|
+
gap: 8px;
|
|
435
|
+
|
|
436
|
+
input {
|
|
437
|
+
flex: 1;
|
|
438
|
+
min-width: 0;
|
|
439
|
+
}
|
|
440
|
+
`,kt=s.input`
|
|
441
|
+
height: 44px;
|
|
442
|
+
padding: 0 14px;
|
|
443
|
+
border: 1px solid ${r.lineStrong};
|
|
444
|
+
border-radius: ${$.btn};
|
|
445
|
+
background: ${r.white};
|
|
446
|
+
font: inherit;
|
|
447
|
+
color: ${r.text};
|
|
448
|
+
|
|
449
|
+
&:focus {
|
|
450
|
+
outline: 2px solid ${r.accent};
|
|
451
|
+
outline-offset: -1px;
|
|
452
|
+
}
|
|
453
|
+
`,xi=s.ul`
|
|
454
|
+
list-style: none;
|
|
455
|
+
margin: 0;
|
|
456
|
+
padding: 0;
|
|
457
|
+
display: flex;
|
|
458
|
+
flex-direction: column;
|
|
459
|
+
gap: 6px;
|
|
460
|
+
`,mi=s.li`
|
|
461
|
+
display: flex;
|
|
462
|
+
align-items: center;
|
|
463
|
+
gap: 10px;
|
|
464
|
+
padding: 6px 8px;
|
|
465
|
+
background: rgba(0, 0, 0, 0.4);
|
|
466
|
+
border-radius: ${$.card};
|
|
467
|
+
|
|
468
|
+
${B.maxWidth("mobile")} {
|
|
469
|
+
flex-wrap: wrap;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
&[data-missing] {
|
|
473
|
+
opacity: 0.6;
|
|
474
|
+
}
|
|
475
|
+
`,Nt=Ct`
|
|
476
|
+
width: 40px;
|
|
477
|
+
height: 40px;
|
|
478
|
+
border-radius: 8px;
|
|
479
|
+
background: ${r.media};
|
|
480
|
+
flex-shrink: 0;
|
|
481
|
+
`,gi=s.img`
|
|
482
|
+
${Nt};
|
|
483
|
+
object-fit: cover;
|
|
484
|
+
`,bi=s.span`
|
|
485
|
+
${Nt};
|
|
486
|
+
display: inline-block;
|
|
487
|
+
`,yi=s.span`
|
|
488
|
+
flex: 1;
|
|
489
|
+
min-width: 0;
|
|
490
|
+
font-size: 14px;
|
|
491
|
+
font-weight: 600;
|
|
492
|
+
white-space: nowrap;
|
|
493
|
+
overflow: hidden;
|
|
494
|
+
text-overflow: ellipsis;
|
|
495
|
+
`,ji=s.span`
|
|
496
|
+
flex: none;
|
|
497
|
+
padding: 2px 8px;
|
|
498
|
+
border-radius: ${$.pill};
|
|
499
|
+
border: 1px solid rgba(255, 255, 255, 0.45);
|
|
500
|
+
font-size: 11px;
|
|
501
|
+
font-weight: 600;
|
|
502
|
+
color: ${r.softWhite};
|
|
503
|
+
white-space: nowrap;
|
|
504
|
+
|
|
505
|
+
${B.maxWidth("mobile")} {
|
|
506
|
+
order: 1;
|
|
507
|
+
margin-left: 50px;
|
|
508
|
+
}
|
|
509
|
+
`,vi=s.span`
|
|
510
|
+
display: inline-flex;
|
|
511
|
+
align-items: center;
|
|
512
|
+
gap: 4px;
|
|
513
|
+
font-size: 13px;
|
|
514
|
+
color: ${r.gray4};
|
|
515
|
+
white-space: nowrap;
|
|
516
|
+
`,wi=s.div`
|
|
517
|
+
display: flex;
|
|
518
|
+
align-items: center;
|
|
519
|
+
justify-content: space-between;
|
|
520
|
+
padding-top: 10px;
|
|
521
|
+
border-top: 1px solid rgba(255, 255, 255, 0.3);
|
|
522
|
+
font-size: 13px;
|
|
523
|
+
font-weight: 700;
|
|
524
|
+
`,$i=s.span`
|
|
525
|
+
display: inline-flex;
|
|
526
|
+
align-items: center;
|
|
527
|
+
gap: 4px;
|
|
528
|
+
font-size: 15px;
|
|
529
|
+
font-weight: 700;
|
|
530
|
+
`,Si=s.button`
|
|
531
|
+
display: inline-flex;
|
|
532
|
+
align-items: center;
|
|
533
|
+
justify-content: center;
|
|
534
|
+
width: 40px;
|
|
535
|
+
height: 40px;
|
|
536
|
+
border: 0;
|
|
537
|
+
background: none;
|
|
538
|
+
border-radius: 50%;
|
|
539
|
+
color: ${r.gray4};
|
|
540
|
+
cursor: pointer;
|
|
541
|
+
|
|
542
|
+
&:hover {
|
|
543
|
+
color: ${r.dclRed};
|
|
544
|
+
background: rgba(255, 255, 255, 0.14);
|
|
545
|
+
}
|
|
546
|
+
`,ki=s.div`
|
|
547
|
+
display: flex;
|
|
548
|
+
flex-direction: column;
|
|
549
|
+
gap: 8px;
|
|
550
|
+
padding-top: 16px;
|
|
551
|
+
border-top: 1px solid rgba(255, 255, 255, 0.3);
|
|
552
|
+
`,Ti=s.div`
|
|
553
|
+
display: flex;
|
|
554
|
+
flex-wrap: wrap;
|
|
555
|
+
gap: 10px;
|
|
556
|
+
`;function Ki(){const{id:n}=Jt(),{pathname:f}=Xt(),h=X(b=>b.session),c=X(b=>b.signIn),y=te();ee({title:e("outfits.studio.title"),noindex:!0});const j=f.endsWith("/new")?"new":n?"edit":"list";return y==="pending"?t.jsx(O,{"aria-busy":"true","data-testid":"outfit-studio-loading",children:t.jsx("span",{className:"spinner","aria-hidden":!0})}):h?y!=="creator"?t.jsxs(O,{"data-testid":"outfit-studio-unavailable",children:[t.jsx($t,{children:e("outfits.studio.title")}),t.jsx(w,{children:e("outfits.studio.notAvailable")}),t.jsx(x,{as:F,to:"/overview",variant:"white",children:e("outfits.studio.backToShop")})]}):j==="list"?t.jsx(Ii,{}):t.jsx(Ri,{outfitId:j==="edit"?n:null},n??"new"):t.jsxs(O,{"data-testid":"outfit-studio-signin",children:[t.jsx($t,{children:e("outfits.studio.title")}),t.jsx(w,{children:e("outfits.studio.signInPrompt")}),t.jsx(x,{variant:"white",onClick:()=>c(),children:e("outfits.studio.signIn")})]})}function Ci({outfit:n}){const f=Lt(n.thumbnailHash);return f?t.jsx(Ue,{style:{background:ce(n)},children:t.jsx("img",{src:f,alt:"",loading:"lazy"})}):t.jsx(He,{"aria-hidden":!0})}function Ii(){const n=X(u=>u.session),f=It(),[h,c]=d.useState(null),[y,j]=d.useState(null),{data:b=[],isLoading:o,isError:R,refetch:C}=Et({queryKey:["outfits-all"],enabled:!!n,staleTime:3e4,queryFn:()=>be(n.identity)});async function I(u,k){if(n){j(u.id);try{k==="delete"?(await pe(u.id,n.identity),N.success(e("outfits.studio.deleted"))):(await Rt({...dt(u),published:!1},n.identity,"update"),N.success(e("outfits.studio.unpublished"))),zt(f)}catch(E){E instanceof A||rt(E,{flow:`outfit-${k}`}),N.error(e(E instanceof A?nt(E.code):"outfits.errors.generic"))}finally{j(null),c(null)}}}return t.jsxs(Wt,{"data-testid":"outfit-studio-list",children:[t.jsxs(Pt,{children:[t.jsx(Ot,{children:e("outfits.studio.myOutfits")}),t.jsx(x,{as:F,to:"/outfits/new",variant:"white","data-testid":"outfit-studio-new",children:e("outfits.studio.new")})]}),o?t.jsx(St,{"aria-busy":"true",children:Array.from({length:3},(u,k)=>t.jsx(Be,{className:"skeleton","aria-hidden":!0},k))}):R?t.jsxs(O,{children:[t.jsx(D,{message:e("outfits.errors.generic")}),t.jsx(x,{variant:"white",onClick:()=>void C(),children:e("outfits.detail.retry")})]}):b.length===0?t.jsx(w,{children:e("outfits.studio.empty")}):t.jsx(St,{children:b.map(u=>t.jsxs(Me,{"data-testid":"outfit-studio-row","data-published":u.published||void 0,children:[t.jsx(Ci,{outfit:u}),t.jsxs(De,{children:[t.jsx(Ke,{children:u.name||e("outfits.studio.untitled")}),t.jsxs(_e,{children:[t.jsx(At,{"data-state":u.published?"published":"draft",children:u.published?e("outfits.studio.publishedState"):e("outfits.studio.draft")}),e("outfits.card.items",{count:u.items.length})]})]}),t.jsxs(Ge,{children:[u.published?t.jsx(x,{as:F,to:`/items/outfits/${u.id}`,variant:"ghost",size:"sm",children:e("outfits.studio.view")}):null,t.jsx(x,{as:F,to:`/outfits/${u.id}/edit`,variant:"outline",size:"sm","data-testid":"outfit-studio-edit",children:e("outfits.studio.edit")}),t.jsx(qe,{type:"button","data-testid":"outfit-studio-delete","aria-label":e("outfits.studio.confirmDelete"),disabled:y===u.id,onClick:()=>c(u),children:t.jsx(K,{name:"trash",size:18})})]})]},u.id))}),h?t.jsxs(Qe,{role:"dialog","aria-modal":"true","aria-label":e("outfits.studio.deleteTitle"),"data-testid":"outfit-studio-confirm",children:[t.jsx(Ve,{onClick:()=>c(null)}),t.jsxs(Je,{children:[t.jsx(Xe,{children:e("outfits.studio.deleteTitle")}),t.jsx("p",{className:"muted",children:e("outfits.studio.deleteBody")}),t.jsxs(Ye,{children:[h.published?t.jsx(x,{variant:"purple","data-testid":"outfit-studio-confirm-unpublish",disabled:y===h.id,onClick:()=>void I(h,"unpublish"),children:e("outfits.studio.unpublish")}):null,t.jsx(x,{variant:h.published?"outline":"purple","data-testid":"outfit-studio-confirm-delete",disabled:y===h.id,onClick:()=>void I(h,"delete"),children:e("outfits.studio.confirmDelete")}),t.jsx(x,{variant:"ghost",onClick:()=>c(null),children:e("outfits.studio.cancel")})]})]})]}):null]})}const Tt=["image/png","image/jpeg","image/webp"];function Ei(){return{id:crypto.randomUUID(),name:"",thumbnailHash:"",items:[],bodyShape:"unisex",gradientFrom:at.from,gradientTo:at.to,published:!1}}function dt(n){return{id:n.id,name:n.name,thumbnailHash:n.thumbnailHash,items:n.items,bodyShape:n.bodyShape,gradientFrom:n.gradientFrom,gradientTo:n.gradientTo,published:n.published}}function Li(n){try{const f=sessionStorage.getItem(n);return f?JSON.parse(f):null}catch{return null}}function Ri({outfitId:n}){const f=n===null,h=`outfit-draft:${n??"new"}`,c=X(i=>i.session),y=It(),j=Yt(),[b]=d.useState(()=>Li(h)),[o,R]=d.useState(()=>b??(f?Ei():null)),[C,I]=d.useState(!!b),{data:u,isLoading:k,isError:E,refetch:Z}=Et({queryKey:["outfit",n,!0],enabled:!f&&!!c,staleTime:0,queryFn:()=>ye(n,c.identity)});d.useEffect(()=>{u&&R(i=>i??dt(u))},[u]);function S(i){R(a=>a&&{...a,...i}),I(!0)}d.useEffect(()=>{if(!(!o||!C))try{sessionStorage.setItem(h,JSON.stringify(o))}catch{}},[o,C,h]),d.useEffect(()=>{if(!C)return;const i=a=>a.preventDefault();return window.addEventListener("beforeunload",i),()=>window.removeEventListener("beforeunload",i)},[C]),d.useEffect(()=>()=>sessionStorage.removeItem(h),[h]);const g=ie(o??void 0),_=d.useMemo(()=>new Set(((o==null?void 0:o.items)??[]).map(z)),[o]),M=i=>ge((o==null?void 0:o.items)??[],i,g.byKey),l=i=>!!i.itemId&&M(i).length<=J;function v(i){!o||!l(i)||S({items:M(i)})}const[U,ut]=d.useState(null),L=d.useRef(null),tt=d.useRef(!0);d.useEffect(()=>(tt.current=!0,()=>{tt.current=!1}),[]);const[G,ct]=d.useState(!1),[Bt,q]=d.useState(null),[et,pt]=d.useState(""),[Mt,ht]=d.useState(null),[T,Ut]=d.useState();d.useEffect(()=>()=>{L.current&&URL.revokeObjectURL(L.current)},[]);function ft(){const i=xe(et);if(!i){ht(e("outfits.studio.importError"));return}ht(null),pt(""),Ut(i.colors),S({items:i.items,...i.bodyShape?{bodyShape:i.bodyShape}:{}}),N.success(e("outfits.studio.importSuccess",{count:i.items.length}))}async function Ht(i){if(!i||!c)return;if(q(null),!Tt.includes(i.type)){q(e("outfits.errors.unsupportedType"));return}if(i.size>he){q(e("outfits.errors.tooLarge"));return}L.current&&URL.revokeObjectURL(L.current);const a=URL.createObjectURL(i);L.current=a,ut(a),ct(!0);try{const p=await fe(i,c.identity);S({thumbnailHash:p})}catch(p){p instanceof A||rt(p,{flow:"outfit-thumbnail"}),q(e(p instanceof A?nt(p.code):"outfits.errors.generic")),L.current&&(URL.revokeObjectURL(L.current),L.current=null),ut(null)}finally{ct(!1)}}const[H,xt]=d.useState(!1),[Dt,mt]=d.useState(null),it=!!o&&o.name.trim().length>0&&o.name.length<=60,Kt=!!o&&V(o.gradientFrom)&&V(o.gradientTo),gt=!!o&&o.items.some(i=>{const a=g.byKey.get(z(i));return!a||se(a)}),bt=!!o&&it&&!!o.thumbnailHash&&Kt&>&&o.items.length>=oe&&o.items.length<=J;async function st(i){if(!(!c||!o||H)){xt(!0),mt(null);try{const a=await Rt({...o,published:i},c.identity,f?"create":"update");if(!tt.current)return;sessionStorage.removeItem(h),R(dt(a)),I(!1),zt(y),i&&!o.published?(me("Shop Outfit Published",{outfit_id:a.id,item_count:a.items.length}),N.success(e("outfits.studio.publishedToast"))):N.success(e("outfits.studio.saved")),f&&(y.setQueryData(["outfit",a.id,!0],a),j(`/outfits/${a.id}/edit`,{replace:!0}))}catch(a){a instanceof A||rt(a,{flow:"outfit-save"}),mt(e(a instanceof A?nt(a.code):"outfits.errors.generic"))}finally{xt(!1)}}}const Q=d.useMemo(()=>((o==null?void 0:o.items)??[]).map(i=>g.byKey.get(z(i))).filter(i=>!!i),[o,g.byKey]),yt=d.useMemo(()=>ae(Q),[Q]),_t=d.useMemo(()=>{const i=re(Q);return i!=null&&i.itemId?z({contractAddress:i.contractAddress,itemId:i.itemId}):null},[Q]),Gt=(o==null?void 0:o.bodyShape)==="female"?ne:(o==null?void 0:o.bodyShape)==="male"?de:void 0;if(!c)return null;if(!o)return E?t.jsxs(O,{children:[t.jsx(D,{message:e("outfits.errors.generic")}),t.jsx(x,{variant:"white",onClick:()=>void Z(),children:e("outfits.detail.retry")})]}):!k&&u===null?t.jsxs(O,{"data-testid":"outfit-studio-missing",children:[t.jsx(w,{children:e("outfits.errors.notFound")}),t.jsx(x,{as:F,to:"/outfits/manage",variant:"white",children:e("outfits.studio.myOutfits")})]}):t.jsx(O,{"aria-busy":"true",children:t.jsx("span",{className:"spinner","aria-hidden":!0})});const jt=U??Lt(o.thumbnailHash),qt={...o,authorAddress:(c==null?void 0:c.address)??"",createdAt:0,updatedAt:0},Qt=o.items.reduce((i,a)=>{var p;return i+(((p=g.byKey.get(z(a)))==null?void 0:p.priceCredits)??0)},0);return t.jsxs(Wt,{"data-testid":"outfit-studio-editor",children:[t.jsxs(Pt,{children:[t.jsx(Ne,{to:"/outfits/manage","aria-label":e("outfits.studio.myOutfits"),"data-testid":"outfit-studio-back",children:t.jsx(K,{name:"arrow-left",size:18})}),t.jsx(Ot,{children:f?e("outfits.studio.new"):e("outfits.studio.editTitle")}),t.jsx(At,{"data-state":o.published?"published":"draft",children:o.published?e("outfits.studio.publishedState"):e("outfits.studio.draft")})]}),t.jsxs(Ze,{children:[t.jsxs(ti,{children:[t.jsxs(ii,{"data-testid":"outfit-studio-preview",style:{background:le(o)},children:[t.jsx(we,{id:"outfit-studio-preview-frame",profile:"default",bodyShape:Gt,urns:yt,skin:T==null?void 0:T.skin,hair:T==null?void 0:T.hair,eyes:T==null?void 0:T.eyes,enabled:!g.isLoading}),yt.length===0&&!g.isLoading?t.jsx(si,{children:e("outfits.studio.previewEmpty")}):null]}),t.jsxs(W,{children:[t.jsx(P,{as:"span",children:e("outfits.studio.bodyShape")}),t.jsx(oi,{role:"group","aria-label":e("outfits.studio.bodyShape"),children:["unisex","male","female"].map(i=>t.jsx(ai,{type:"button","data-selected":o.bodyShape===i||void 0,onClick:()=>S({bodyShape:i}),children:e(`outfits.studio.shape.${i}`)},i))})]}),t.jsxs(W,{children:[t.jsx(P,{as:"span",children:e("outfits.studio.gradient")}),t.jsx(ni,{children:["gradientFrom","gradientTo"].map(i=>t.jsxs(di,{children:[t.jsx(li,{type:"color",value:V(o[i])?o[i]:at.from,"aria-label":e(i==="gradientFrom"?"outfits.studio.gradientTop":"outfits.studio.gradientBottom"),"data-testid":i==="gradientFrom"?"outfit-studio-gradient-from":"outfit-studio-gradient-to",onChange:a=>S({[i]:a.target.value.toLowerCase()})}),t.jsxs(ui,{children:[t.jsx("span",{children:e(i==="gradientFrom"?"outfits.studio.gradientTop":"outfits.studio.gradientBottom")}),t.jsx(ci,{value:o[i],maxLength:7,spellCheck:!1,placeholder:"#000000","aria-label":e(i==="gradientFrom"?"outfits.studio.gradientTopHex":"outfits.studio.gradientBottomHex"),"data-invalid":!V(o[i])||void 0,onChange:a=>{const p=a.target.value.trim().toLowerCase();S({[i]:p.startsWith("#")||p===""?p:`#${p}`})}})]})]},i))}),t.jsx(w,{children:e("outfits.studio.gradientHint")})]}),t.jsxs(W,{children:[t.jsx(P,{as:"span",children:e("outfits.studio.thumbnail")}),jt?t.jsx(ri,{"data-busy":G||void 0,children:t.jsx("img",{src:jt,alt:""})}):null,t.jsxs(hi,{as:"label",variant:"outline",size:"sm","data-busy":G||void 0,children:[G?e("outfits.studio.uploading"):e("outfits.studio.upload"),t.jsx("input",{type:"file",accept:Tt.join(","),hidden:!0,disabled:G,onChange:i=>{var a;return void Ht((a=i.target.files)==null?void 0:a[0])},"data-testid":"outfit-studio-thumb-input"})]}),t.jsx(w,{children:e("outfits.studio.thumbnailHint")}),t.jsx(D,{message:Bt,testId:"outfit-studio-thumb-error"})]}),t.jsxs(W,{children:[t.jsx(P,{as:"span",children:e("outfits.studio.cardPreview")}),t.jsx(pi,{"data-testid":"outfit-studio-card-preview",onClickCapture:i=>{i.preventDefault(),i.stopPropagation()},children:t.jsx(ue,{outfit:qt,resolution:g})})]})]}),t.jsxs(ei,{children:[t.jsxs(W,{children:[t.jsx(P,{htmlFor:"outfit-import",children:e("outfits.studio.import")}),t.jsxs(fi,{children:[t.jsx(kt,{id:"outfit-import",value:et,spellCheck:!1,placeholder:e("outfits.studio.importPlaceholder"),onChange:i=>pt(i.target.value),onKeyDown:i=>{i.key==="Enter"&&ft()},"data-testid":"outfit-studio-import"}),t.jsx(x,{variant:"outline",size:"sm",onClick:ft,disabled:et.trim()==="","data-testid":"outfit-studio-import-apply",children:e("outfits.studio.importApply")})]}),t.jsx(w,{children:e("outfits.studio.importHint")}),t.jsx(D,{message:Mt,testId:"outfit-studio-import-error"})]}),t.jsxs(W,{children:[t.jsx(P,{htmlFor:"outfit-name",children:e("outfits.studio.name")}),t.jsx(kt,{id:"outfit-name",value:o.name,maxLength:60,placeholder:e("outfits.studio.namePlaceholder"),onChange:i=>S({name:i.target.value}),"data-testid":"outfit-studio-name"})]}),t.jsxs(W,{children:[t.jsxs(P,{as:"span",children:[e("outfits.studio.items")," (",o.items.length,"/",J,")"]}),o.items.length===0?t.jsx(w,{children:e("outfits.studio.noItems")}):t.jsx(xi,{children:o.items.map(i=>{const a=z(i),p=g.byKey.get(a);return t.jsxs(mi,{"data-testid":"outfit-studio-selected","data-missing":!p||void 0,children:[p?t.jsx(gi,{src:p.thumbnail,alt:""}):t.jsx(bi,{className:g.isLoading?"skeleton":void 0,"aria-hidden":!0}),t.jsx(yi,{className:p?void 0:"muted",children:p?p.name:g.isLoading?t.jsx($e,{className:"skeleton",width:96,"aria-hidden":!0}):e("outfits.card.unavailable")}),a===_t?t.jsx(ji,{"data-testid":"outfit-studio-plays-in-preview",children:e("outfits.studio.playsInPreview")}):null,p?t.jsxs(vi,{children:[t.jsx(ot,{size:12}),p.priceCredits.toLocaleString()]}):null,t.jsx(Si,{type:"button","aria-label":e("outfits.studio.remove"),title:e("outfits.studio.remove"),onClick:()=>S({items:o.items.filter(Vt=>z(Vt)!==a)}),children:t.jsx(K,{name:"trash",size:16})})]},a)})}),o.items.length>0?t.jsxs(wi,{"data-testid":"outfit-studio-total",children:[t.jsx("span",{children:e("outfits.detail.totalPrice")}),t.jsxs($i,{children:[t.jsx(ot,{size:14}),Qt.toLocaleString()]})]}):null,o.items.length>=J?t.jsx(w,{children:e("outfits.studio.maxItems")}):null]}),t.jsx(Ae,{selectedKeys:_,onPick:v,canPick:l})]})]}),t.jsxs(ki,{"data-testid":"outfit-studio-savebar",children:[t.jsx(D,{message:Dt,testId:"outfit-studio-save-error"}),it?!bt&&!o.published?t.jsx(w,{"data-testid":"outfit-studio-publish-hint",children:!gt&&o.items.length>0?e("outfits.studio.needsWearable"):e("outfits.errors.notPublishable")}):null:t.jsx(w,{children:e("outfits.studio.needName")}),t.jsxs(Ti,{children:[t.jsx(x,{variant:"outline","data-testid":"outfit-studio-save",disabled:H||!it,onClick:()=>void st(o.published),children:H?e("outfits.studio.saving"):e("outfits.studio.saveDraft")}),o.published?t.jsx(x,{variant:"white","data-testid":"outfit-studio-unpublish",disabled:H,onClick:()=>void st(!1),children:e("outfits.studio.unpublish")}):t.jsx(x,{variant:"white","data-testid":"outfit-studio-publish",disabled:H||!bt,onClick:()=>void st(!0),children:e("outfits.studio.publish")})]})]})]})}export{Ki as OutfitStudio,Ki as default};
|