@dcl/shop 1.0.2-31061650925.commit-fa244eb → 1.0.2-31075138109.commit-b4b8f60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_assets/{Activity-DAMRT2bN.js → Activity-CNizYJay.js} +24 -24
- package/_assets/{AnimatedBackground-N_wcSf6D.js → AnimatedBackground-C1p4psE2.js} +2 -2
- package/_assets/Assets-BcQ10xPp.js +892 -0
- package/_assets/{Assets.styles-9R6ppWqo.js → Assets.styles-B9PWoIMZ.js} +80 -72
- package/_assets/{Authorizations-DCP2Yevg.js → Authorizations-C_xGdM-p.js} +1 -1
- package/_assets/Cart-DYZGi78I.js +706 -0
- package/_assets/{CircularProgress-BYXbDw8X.js → CircularProgress-B_hinbN9.js} +1 -1
- package/_assets/{Collection-CA94Ylrk.js → Collection-DTJYViBJ.js} +13 -13
- package/_assets/{CollectionCarousel-BkFV4le7.js → CollectionCarousel-DZxVlfxf.js} +183 -127
- package/_assets/{Confetti-D7bsXMqQ.js → Confetti-mgEJ457s.js} +1 -1
- package/_assets/Creator-BVn3jG76.js +307 -0
- package/_assets/{ErrorNotice-CCsvrT3H.js → ErrorNotice-CCUuPON0.js} +1 -1
- package/_assets/{ExchangeController-KIbY1TeV.js → ExchangeController-CXuE8lHA.js} +1 -1
- package/_assets/{Faq-YyrvPI25.js → Faq-Bkcjo8OM.js} +1 -1
- package/_assets/{GetCredits-gCz6CMY3.js → GetCredits-Bq6LvsYg.js} +16 -9
- package/_assets/{Grow-B6W2xyXd.js → Grow-DBDllnzs.js} +1 -1
- package/_assets/{HelpersUtil-BmHoBPAz.js → HelpersUtil-CTTzLGBA.js} +1 -1
- package/_assets/ItemDetail-CBafDPtx.js +3552 -0
- package/_assets/JumpInIcon-CfzbSVBF.js +1 -0
- package/_assets/LazyEmoteControls-PQ3Pg2sc.js +2 -0
- package/_assets/{LoadMore-ChGcAM1i.js → LoadMore-DY0yTnWX.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-CZgGH3OR.js → ManaPricingBanner.styles-CLzKIrR0.js} +2 -2
- package/_assets/MyAssets-BuEVkMOy.js +396 -0
- package/_assets/{MyFavorites-B_oQzUR9.js → MyFavorites-5YJaSyop.js} +20 -17
- package/_assets/{NotFound-CjDp1Ys_.js → NotFound-1ks_XjFT.js} +1 -1
- package/_assets/{NotificationsBell-Dkr9JB0w.js → NotificationsBell-CPTnotbb.js} +1 -1
- package/_assets/OutfitDetail-N4whvhsJ.js +377 -0
- package/_assets/{OutfitPreview-J5m3e8Gl.js → OutfitPreview-D7BVurmj.js} +2 -2
- package/_assets/{OutfitStudio-xpf5tPAA.js → OutfitStudio-WKWXKKDM.js} +54 -54
- package/_assets/{StoreSettings-BkFED3xP.js → StoreSettings-CDOaTUdX.js} +21 -21
- package/_assets/Success-CAR1N5YA.js +353 -0
- package/_assets/{SwapController-DKvQsgHw.js → SwapController-DFi1XX34.js} +1 -1
- package/_assets/{Tooltip-BBYuQHQb.js → Tooltip-Cwe0Yraw.js} +1 -1
- package/_assets/{TradeService-CkbprpVw.js → TradeService-BaPRI5UX.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-6oL2Do5B.js → W3MFrameProviderSingleton-ZccF4Y9V.js} +3 -3
- package/_assets/{WebCryptoP256-6t0_XFco.js → WebCryptoP256-Jedmnano.js} +1 -1
- package/_assets/{authorizations-CbXH-W_L.js → authorizations-CAdQPCMI.js} +1 -1
- package/_assets/{basic-DSLXBfxu.js → basic-D7xW8zKi.js} +1 -1
- package/_assets/{biconomy-DKrndD59.js → biconomy-DSBuvNuK.js} +1 -1
- package/_assets/{builder-CVMQir9d.js → builder-0yNVIzVD.js} +1 -1
- package/_assets/{buy-gasless-BuzErI_K.js → buy-gasless-BqufOfFB.js} +1 -1
- package/_assets/{buy-BllmT-mt.js → buy-p0P2Zs7_.js} +1 -1
- package/_assets/{categories-Bjf-PXbG.js → categories-Q8-sA-ag.js} +73 -58
- package/_assets/{ccip-DI15Urx-.js → ccip-DARfTvaF.js} +1 -1
- package/_assets/{ccip-DyRqdu6M.js → ccip-DsdggBKA.js} +1 -1
- package/_assets/collectionPage.styles-DQbgY52P.js +32 -0
- package/_assets/{controller-BSVA5WKe.js → controller-Zsb3xV7z.js} +2 -2
- package/_assets/{core-CflNwoXZ.js → core-CkqGyNBY.js} +4 -4
- package/_assets/{createSvgIcon-BCgRSx6l.js → createSvgIcon-CZWQfAYI.js} +1 -1
- package/_assets/{custom-ekboJ4XZ.js → custom-Bxjd11Bv.js} +1 -1
- package/_assets/{data-capture-C00Edv8o.js → data-capture-C_h8eQxX.js} +1 -1
- package/_assets/{email-D7bKqbcO.js → email-CoonlLSw.js} +1 -1
- package/_assets/{embedded-wallet-BgZe_e0-.js → embedded-wallet-CZSkNi4z.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-BsZP4P-B.js → emotion-styled.browser.esm-BbXohUUc.js} +1 -1
- package/_assets/{engine-Cnqy1olA.js → engine-C7WUjAl2.js} +1 -1
- package/_assets/{errors-BXmP5k3l.js → errors-BUHoc-y5.js} +1 -1
- package/_assets/{estimate-l1-fee-9ryWwmxC.js → estimate-l1-fee-UKT25sin.js} +1 -1
- package/_assets/{execute-CY4XWL-J.js → execute-CPTN8FKu.js} +2 -2
- package/_assets/{features-MG4MlDMD.js → features-D6748kEh.js} +1 -1
- package/_assets/{fetchTokenMetadata-qCCUs6iE.js → fetchTokenMetadata-CPl8yMoH.js} +2 -2
- package/_assets/{field.styles-DEvu6yNO.js → field.styles-dfnZT-br.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-DEImAnzE.js → get-ecosystem-wallet-info-CUrAtQ3b.js} +1 -1
- package/_assets/{getBalance-J5grsfOj.js → getBalance-CUN1GDsO.js} +1 -1
- package/_assets/{getNFT-Dm5aL9u2.js → getNFT-BDJqqYqb.js} +1 -1
- package/_assets/{getNFT-ByNh7y6k.js → getNFT-DFlqYNlO.js} +1 -1
- package/_assets/{grid.styles-CtrXwvIr.js → grid.styles-DODm717m.js} +1 -1
- package/_assets/{hashTypedData-BxKbqj1M.js → hashTypedData-D3XiRshp.js} +1 -1
- package/_assets/{hashTypedData-CgttwS7E.js → hashTypedData-bAoo1co0.js} +1 -1
- package/_assets/identity-icon-C8yAW_Gq.svg +8 -0
- package/_assets/{in-app-DF-fkkCZ.js → in-app-Dx0lK6d1.js} +1 -1
- package/_assets/{in-app-wallet-calls-D9z1I0uV.js → in-app-wallet-calls-H4N-BNbO.js} +1 -1
- package/_assets/{index-B5TGt1q8.js → index--4i0Lw-m.js} +1 -1
- package/_assets/{index-BlIt7KpC.js → index-1YcJ_AMk.js} +1 -1
- package/_assets/{index-Z6tclw43.js → index-4jPZivXl.js} +1 -1
- package/_assets/{index-DVJFosyx.js → index-5tC1hlhU.js} +1 -1
- package/_assets/{index-gmA5M3R1.js → index-AaJs3SZg.js} +1 -1
- package/_assets/{index-CjSsletQ.js → index-B8xkUObo.js} +1 -1
- package/_assets/{index-CuZ7SJno.js → index-BBYOztfl.js} +1 -1
- package/_assets/{index-zG9t0hxJ.js → index-BGKTqnNJ.js} +13 -13
- package/_assets/{index-DbCIWeQF.js → index-BPiB7yPn.js} +2 -2
- package/_assets/{index-BcQ98rhd.js → index-BTVtZV-4.js} +1 -1
- package/_assets/{index-DXpGefPo.js → index-BY8CUKv-.js} +1 -1
- package/_assets/{index-CAj85Mcv.js → index-BhTQhn8o.js} +1 -1
- package/_assets/{index-CszjRehO.js → index-BiAWEM1Y.js} +1 -1
- package/_assets/{index-BSmKDErh.js → index-BpsSIJDP.js} +1 -1
- package/_assets/{index--tlhUPhu.js → index-BzIFn1gg.js} +1 -1
- package/_assets/{index-DYQXXAKt.js → index-C-Qu30M3.js} +1 -1
- package/_assets/{index-C0xt2SIQ.js → index-C1TeecjZ.js} +1 -1
- package/_assets/{index-Dc_jl2yy.js → index-C3oB2anL.js} +1 -1
- package/_assets/{index-DRjhhI6j.js → index-CA_IOkJ5.js} +1 -1
- package/_assets/{index-D7foy_c1.js → index-CEwRybny.js} +3 -3
- package/_assets/{index-CKXjZ-Kd.js → index-CKW9ikJj.js} +1 -1
- package/_assets/{index-CgKz1pmK.js → index-CLKXx6rf.js} +1 -1
- package/_assets/{index-CpxvlmGa.js → index-CPsldIhs.js} +1 -1
- package/_assets/{index-B7sgFJOZ.js → index-CcYSrQZB.js} +1 -1
- package/_assets/{index-CbQYrUIv.js → index-Ci8wltbz.js} +1 -1
- package/_assets/{index-7eX0SEVb.js → index-CkTj0rBr.js} +1 -1
- package/_assets/{index-gbxeK1C-.js → index-Cwuc6_4X.js} +1 -1
- package/_assets/{index-BiSRuBrK.js → index-CzAnnYNM.js} +1 -1
- package/_assets/{index-D20327nw.js → index-D0g-gu9R.js} +1 -1
- package/_assets/{index-D5jN8YQk.js → index-D2Uzczc0.js} +2 -2
- package/_assets/{index-BcW0TBOx.js → index-DAnmGKDS.js} +1 -1
- package/_assets/{index-BYP7oMPZ.css → index-DB6GvbxL.css} +1 -1
- package/_assets/{index-BKC-pfo2.js → index-DFQi7e3d.js} +1 -1
- package/_assets/{index-C6RxhKIE.js → index-DGCl01Aq.js} +1 -1
- package/_assets/{index-BDPRDW4c.js → index-DLa23Ln5.js} +1 -1
- package/_assets/{index-DlewIau_.js → index-DPvEn0Us.js} +1 -1
- package/_assets/{index-C2s-_3dE.js → index-DQTv184M.js} +1 -1
- package/_assets/{index-Cbj1bJsc.js → index-DWpfZF5x.js} +1 -1
- package/_assets/{index-CuZGDrIM.js → index-Di8inWXw.js} +1 -1
- package/_assets/{index-CAzui_hj.js → index-DidVPhMo.js} +1 -1
- package/_assets/{index-Fn-DLeUg.js → index-DmMEC2q9.js} +1 -1
- package/_assets/{index-CkHS5p_Q.js → index-Ds0rafrR.js} +1 -1
- package/_assets/{index-lIySTE8R.js → index-DvCZhQ4M.js} +1 -1
- package/_assets/{index-BZNkhtbZ.js → index-DzcxBj5H.js} +1 -1
- package/_assets/{index-B7Mvi-Fg.js → index-FSR-tXEG.js} +3 -3
- package/_assets/{index-D7dTUoYt.js → index-H0_FOTS1.js} +526 -451
- package/_assets/{index-BybKxZca.js → index-IiqyrxDp.js} +3 -3
- package/_assets/{index-BsD9lKdu.js → index-P6CBRm57.js} +1 -1
- package/_assets/{index-B6xwPPMs.js → index-bQcvt8Yc.js} +1 -1
- package/_assets/{index-CIKoh-oU.js → index-eG9hxr4C.js} +1 -1
- package/_assets/{index-C5fUw5Ha.js → index-gFP2sFjS.js} +1 -1
- package/_assets/{index-BFgGvh7x.js → index-h6pTnuHR.js} +1 -1
- package/_assets/{index-D_a1Dj89.js → index-xIqXdiX9.js} +2 -2
- package/_assets/{index.es-6tzroQMk.js → index.es-Bezpyz9G.js} +1 -1
- package/_assets/{index.es-11O0MAa5.js → index.es-C5RZM_Pw.js} +4 -4
- package/_assets/{index.es-BOuSF7GL.js → index.es-CfiB2nB-.js} +1 -1
- package/_assets/invite-icon-Bz6lCTuB.svg +11 -0
- package/_assets/{localBatchGatewayRequest-CByVkxJB.js → localBatchGatewayRequest-BEJ4F0kB.js} +1 -1
- package/_assets/{networks-CLAHX11r.js → networks-sj6IF-js.js} +1 -1
- package/_assets/{onramp-X6DWjNa-.js → onramp-BubqiUY-.js} +1 -1
- package/_assets/{openzeppelin-DWrLU4le.js → openzeppelin-Chy7gkut.js} +1 -1
- package/_assets/{parseNft-C0F1eSr9.js → parseNft-kgJMEL-I.js} +2 -2
- package/_assets/{parseSignature-Cfa0bf3p.js → parseSignature-49G14sv1.js} +3 -3
- package/_assets/{parseSignature-B1BDTVRI.js → parseSignature-CJ8NsFbD.js} +1 -1
- package/_assets/{passkeys-Bq7ndAcy.js → passkeys-BvVbeMXS.js} +1 -1
- package/_assets/{pay-with-exchange-DU8q52b9.js → pay-with-exchange-Cc0055L1.js} +1 -1
- package/_assets/{qr-overlay-2pcgXiq0.js → qr-overlay-D10vlv1f.js} +1 -1
- package/_assets/{receive-UZ0WD1OR.js → receive-Cuwu3mHS.js} +1 -1
- package/_assets/{resolveImplementation-C5KIPshP.js → resolveImplementation-Dfj0L4Ai.js} +1 -1
- package/_assets/{rpc-q5JetAPC.js → rpc-CnHNtgxw.js} +1 -1
- package/_assets/{secp256k1-C79pdbKP.js → secp256k1-B3l9Rkyd.js} +1 -1
- package/_assets/{secp256k1-CYrjGZQC.js → secp256k1-CR-cgYPx.js} +1 -1
- package/_assets/{secp256k1-C35ing1J.js → secp256k1-Cc9GlXlU.js} +1 -1
- package/_assets/{send-_ymraJKw.js → send-CsVYUzzr.js} +1 -1
- package/_assets/{send-batch-transaction-DkYVZ1xj.js → send-batch-transaction-B6mk0_i_.js} +1 -1
- package/_assets/{send-eip712-transaction-BzZBuy56.js → send-eip712-transaction-BfUkLu-i.js} +2 -2
- package/_assets/{send-gasless-transaction-ByRZPFH6.js → send-gasless-transaction-BlLmbQ26.js} +2 -2
- package/_assets/{send-transaction-CUkh0xRu.js → send-transaction-D0wENyPk.js} +2 -2
- package/_assets/{sendMetaTransaction-De85nOcx.js → sendMetaTransaction-CnhA6a-k.js} +1 -1
- package/_assets/{sendRawTransaction-D5RykxPX.js → sendRawTransaction-BsyxcfGv.js} +3 -3
- package/_assets/{serializeTransaction-EYy94JNM.js → serializeTransaction-DVId8Rs6.js} +1 -1
- package/_assets/{session-proposal-Bf_Po3Sl.js → session-proposal-DUVy-dyq.js} +1 -1
- package/_assets/{session-request-DEDmAqA-.js → session-request-DSQfWHt6.js} +2 -2
- package/_assets/{signing-DqKP5KUZ.js → signing-Bd6C4KXQ.js} +3 -3
- package/_assets/{skeleton.styles-CVQk0siV.js → skeleton.styles-sGub2C43.js} +1 -1
- package/_assets/{socials-3pLrS-E7.js → socials-Bx-bKnd9.js} +1 -1
- package/_assets/{styled-8pFgehSd.js → styled-B8vpPdOK.js} +1 -1
- package/_assets/{swaps-C-dgABl9.js → swaps-BwNRCNkw.js} +1 -1
- package/_assets/{thirdweb-C6_KggNb.js → thirdweb-bDUpez-k.js} +3 -3
- package/_assets/{to-serializable-transaction-BWUJjZdO.js → to-serializable-transaction-CrmYGVf0.js} +2 -2
- package/_assets/{transactionReceipt-DmwkwkkP.js → transactionReceipt-Dwol6pvh.js} +1 -1
- package/_assets/{transactions-BSJMdJi4.js → transactions-CJMbROug.js} +1 -1
- package/_assets/{useCreditPacks-DQxqJepP.js → useCreditPacks-D_gG97Vg.js} +1 -1
- package/_assets/{useImportable-Co0AaRPY.js → useImportable-G1z46qnF.js} +1 -1
- package/_assets/{useInfiniteGrid-UHC0Jjfu.js → useInfiniteGrid-BHHEAbZ5.js} +1 -1
- package/_assets/{useTheme-B-55uBZP.js → useTheme-BxVqPd4e.js} +1 -1
- package/_assets/{verifyHash-BGJh7VH4.js → verifyHash-BtpuSxEE.js} +1 -1
- package/_assets/{w3m-modal-CjXODL26.js → w3m-modal-BJMDIvH7.js} +1 -1
- package/_assets/{w3m-modal-CwXD068w.js → w3m-modal-Co4ZJh9U.js} +1 -1
- package/_assets/{wait-for-tx-receipt-DRA8zhkS.js → wait-for-tx-receipt-CKXB2fpc.js} +1 -1
- package/_assets/{wallets-DOXRX-PZ.js → wallets-BNoMqUPP.js} +5 -5
- package/_assets/{web-connector-CXxJTFl4.js → web-connector-DxsgtKod.js} +3 -3
- package/_assets/world-icon-6xQ-PmmW.svg +7 -0
- package/_assets/{writeContract-BdEWRAPa.js → writeContract-PCmQXj1B.js} +1 -1
- package/_assets/{zoraTestnet-CzfX948o.js → zoraTestnet-sfJI3-xK.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Assets-7wgiv5MU.js +0 -866
- package/_assets/Cart-CpLaRQWb.js +0 -706
- package/_assets/Creator-DWKYxWTB.js +0 -305
- package/_assets/ItemDetail-DsP2PTh3.js +0 -3551
- package/_assets/LazyEmoteControls-lVtDIvME.js +0 -2
- package/_assets/MyAssets-jgTQywGo.js +0 -381
- package/_assets/OutfitDetail-BNlw-NwV.js +0 -334
- package/_assets/Success-lmJVKgtL.js +0 -280
- package/_assets/collectionPage.styles-BgKDi1Aa.js +0 -49
- package/_assets/governance-DnazlIjy.webp +0 -0
- package/_assets/identity-B4DXDuJP.webp +0 -0
- package/_assets/invite-BfwIhP2C.webp +0 -0
- package/_assets/world-B-9aPlxu.webp +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as d,j as t,L as F,d as
|
|
1
|
+
import{r as d,j as t,L as F,d as Xt,a as Yt,b as Jt}from"./react-BYHuwl8r.js";import{s,t as lt,I as K,aX as Zt,b as e,z as ot,B as x,K as Ct,o as Y,R as te,x as ee,A as It,v as Et,V as ie,$ as z,aY as V,aZ as se,a_ as oe,a$ as X,a4 as re,a5 as ae,a2 as ne,a3 as de,S as Lt,a8 as le,b0 as rt,b1 as ue,b2 as ce,b3 as pe,E as N,b4 as Rt,b5 as zt,b6 as A,F as at,b7 as nt,b8 as he,b9 as fe,ba as xe,Z as me,bb as ge,bc as be,af as ye}from"./index-H0_FOTS1.js";import{E as D}from"./ErrorNotice-CCUuPON0.js";import{L as je}from"./LoadMore-DY0yTnWX.js";import{u as ve}from"./useInfiniteGrid-BHHEAbZ5.js";import{O as we}from"./OutfitPreview-D7BVurmj.js";import{T as $e}from"./skeleton.styles-sGub2C43.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:J,media:Se}=lt,ke=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
@@ -7,7 +7,7 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
7
7
|
align-items: center;
|
|
8
8
|
gap: 8px;
|
|
9
9
|
border: 1px solid rgba(255, 255, 255, 0.45);
|
|
10
|
-
border-radius: ${
|
|
10
|
+
border-radius: ${J.pill};
|
|
11
11
|
padding: 0 14px;
|
|
12
12
|
height: 44px;
|
|
13
13
|
background: rgba(0, 0, 0, 0.25);
|
|
@@ -35,7 +35,7 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
35
35
|
`,Ie=s.button`
|
|
36
36
|
min-height: 44px;
|
|
37
37
|
padding: 0 16px;
|
|
38
|
-
border-radius: ${
|
|
38
|
+
border-radius: ${J.pill};
|
|
39
39
|
border: 1px solid rgba(255, 255, 255, 0.45);
|
|
40
40
|
background: none;
|
|
41
41
|
font: inherit;
|
|
@@ -58,7 +58,7 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
58
58
|
}
|
|
59
59
|
`,Ee=s.span`
|
|
60
60
|
height: 190px;
|
|
61
|
-
border-radius: ${
|
|
61
|
+
border-radius: ${J.card};
|
|
62
62
|
`,Le=s.button`
|
|
63
63
|
position: relative;
|
|
64
64
|
display: flex;
|
|
@@ -67,7 +67,7 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
67
67
|
padding: 8px;
|
|
68
68
|
background: rgba(0, 0, 0, 0.4);
|
|
69
69
|
border: 1px solid transparent;
|
|
70
|
-
border-radius: ${
|
|
70
|
+
border-radius: ${J.card};
|
|
71
71
|
text-align: left;
|
|
72
72
|
font: inherit;
|
|
73
73
|
color: ${m.softWhite};
|
|
@@ -98,26 +98,26 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
98
98
|
white-space: nowrap;
|
|
99
99
|
overflow: hidden;
|
|
100
100
|
text-overflow: ellipsis;
|
|
101
|
-
`,
|
|
101
|
+
`,Pe=s.span`
|
|
102
102
|
display: inline-flex;
|
|
103
103
|
align-items: center;
|
|
104
104
|
gap: 4px;
|
|
105
105
|
font-size: 12px;
|
|
106
106
|
color: ${m.gray4};
|
|
107
|
-
`,
|
|
107
|
+
`,We=s(K)`
|
|
108
108
|
position: absolute;
|
|
109
109
|
top: 12px;
|
|
110
110
|
right: 12px;
|
|
111
111
|
color: ${m.accent};
|
|
112
112
|
background: ${m.white};
|
|
113
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,
|
|
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,H=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))}):H.length===0?t.jsx(vt,{children:e("outfits.studio.noResults")}):t.jsx(wt,{children:H.map(l=>{const v=`${l.contractAddress.toLowerCase()}-${l.itemId}`,M=n.has(v);return t.jsxs(Le,{type:"button","data-testid":"outfit-picker-item","data-selected":M||void 0,disabled:!M&&!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(Pe,{children:[t.jsx(ot,{size:12}),l.priceCredits.toLocaleString()]}),M?t.jsx(We,{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:a,radius:$,media:B,z:Fe}=lt,Pt=s.div`
|
|
115
115
|
max-width: 1200px;
|
|
116
116
|
margin: 0 auto;
|
|
117
117
|
display: flex;
|
|
118
118
|
flex-direction: column;
|
|
119
119
|
gap: 20px;
|
|
120
|
-
color: ${
|
|
120
|
+
color: ${a.softWhite};
|
|
121
121
|
`,O=s.div`
|
|
122
122
|
min-height: 52vh;
|
|
123
123
|
display: flex;
|
|
@@ -126,14 +126,14 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
126
126
|
justify-content: center;
|
|
127
127
|
text-align: center;
|
|
128
128
|
gap: 14px;
|
|
129
|
-
color: ${
|
|
129
|
+
color: ${a.softWhite};
|
|
130
130
|
`,$t=s.h1`
|
|
131
131
|
font-size: 24px;
|
|
132
132
|
`,w=s.p`
|
|
133
133
|
margin: 0;
|
|
134
134
|
font-size: 13px;
|
|
135
|
-
color: ${
|
|
136
|
-
`,
|
|
135
|
+
color: ${a.gray4};
|
|
136
|
+
`,Wt=s.div`
|
|
137
137
|
display: flex;
|
|
138
138
|
align-items: center;
|
|
139
139
|
gap: 12px;
|
|
@@ -148,7 +148,7 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
148
148
|
width: 44px;
|
|
149
149
|
height: 44px;
|
|
150
150
|
border-radius: 50%;
|
|
151
|
-
color: ${
|
|
151
|
+
color: ${a.softWhite};
|
|
152
152
|
|
|
153
153
|
&:hover {
|
|
154
154
|
background: rgba(255, 255, 255, 0.14);
|
|
@@ -161,11 +161,11 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
161
161
|
padding: 3px 10px;
|
|
162
162
|
border-radius: ${$.pill};
|
|
163
163
|
background: rgba(255, 255, 255, 0.16);
|
|
164
|
-
color: ${
|
|
164
|
+
color: ${a.softWhite};
|
|
165
165
|
|
|
166
166
|
&[data-state='published'] {
|
|
167
167
|
background: rgba(30, 166, 114, 0.35);
|
|
168
|
-
color: ${
|
|
168
|
+
color: ${a.white};
|
|
169
169
|
}
|
|
170
170
|
`,St=s.div`
|
|
171
171
|
display: flex;
|
|
@@ -174,7 +174,7 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
174
174
|
`,Be=s.span`
|
|
175
175
|
height: 76px;
|
|
176
176
|
border-radius: ${$.card};
|
|
177
|
-
`,
|
|
177
|
+
`,He=s.div`
|
|
178
178
|
display: flex;
|
|
179
179
|
align-items: center;
|
|
180
180
|
gap: 14px;
|
|
@@ -189,9 +189,9 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
189
189
|
width: 52px;
|
|
190
190
|
height: 52px;
|
|
191
191
|
border-radius: 8px;
|
|
192
|
-
background: ${
|
|
192
|
+
background: ${a.media};
|
|
193
193
|
flex-shrink: 0;
|
|
194
|
-
`,
|
|
194
|
+
`,Me=s.div`
|
|
195
195
|
${Ft};
|
|
196
196
|
overflow: hidden;
|
|
197
197
|
|
|
@@ -201,7 +201,7 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
201
201
|
object-fit: cover;
|
|
202
202
|
display: block;
|
|
203
203
|
}
|
|
204
|
-
`,
|
|
204
|
+
`,Ue=s.span`
|
|
205
205
|
${Ft};
|
|
206
206
|
display: inline-block;
|
|
207
207
|
`,De=s.div`
|
|
@@ -221,7 +221,7 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
221
221
|
align-items: center;
|
|
222
222
|
gap: 8px;
|
|
223
223
|
font-size: 13px;
|
|
224
|
-
color: ${
|
|
224
|
+
color: ${a.gray4};
|
|
225
225
|
`,Ge=s.div`
|
|
226
226
|
display: flex;
|
|
227
227
|
align-items: center;
|
|
@@ -240,11 +240,11 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
240
240
|
border: 0;
|
|
241
241
|
background: none;
|
|
242
242
|
border-radius: 50%;
|
|
243
|
-
color: ${
|
|
243
|
+
color: ${a.gray4};
|
|
244
244
|
cursor: pointer;
|
|
245
245
|
|
|
246
246
|
&:hover {
|
|
247
|
-
color: ${
|
|
247
|
+
color: ${a.dclRed};
|
|
248
248
|
background: rgba(255, 255, 255, 0.14);
|
|
249
249
|
}
|
|
250
250
|
|
|
@@ -263,9 +263,9 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
263
263
|
position: absolute;
|
|
264
264
|
inset: 0;
|
|
265
265
|
background: rgba(22, 21, 24, 0.5);
|
|
266
|
-
`,
|
|
266
|
+
`,Xe=s.div`
|
|
267
267
|
position: relative;
|
|
268
|
-
background: ${
|
|
268
|
+
background: ${a.bg};
|
|
269
269
|
border-radius: ${$.card};
|
|
270
270
|
padding: 24px;
|
|
271
271
|
max-width: 420px;
|
|
@@ -273,10 +273,10 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
273
273
|
display: flex;
|
|
274
274
|
flex-direction: column;
|
|
275
275
|
gap: 12px;
|
|
276
|
-
`,
|
|
276
|
+
`,Ye=s.h2`
|
|
277
277
|
font-size: 18px;
|
|
278
278
|
font-weight: 800;
|
|
279
|
-
`,
|
|
279
|
+
`,Je=s.div`
|
|
280
280
|
display: flex;
|
|
281
281
|
flex-wrap: wrap;
|
|
282
282
|
gap: 10px;
|
|
@@ -304,7 +304,7 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
304
304
|
aspect-ratio: 3 / 4;
|
|
305
305
|
border-radius: 16px;
|
|
306
306
|
overflow: hidden;
|
|
307
|
-
background: ${
|
|
307
|
+
background: ${a.media};
|
|
308
308
|
|
|
309
309
|
${B.maxWidth("mobile")} {
|
|
310
310
|
aspect-ratio: 1 / 1;
|
|
@@ -329,22 +329,22 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
329
329
|
place-items: center;
|
|
330
330
|
padding: 24px;
|
|
331
331
|
text-align: center;
|
|
332
|
-
color: ${
|
|
332
|
+
color: ${a.softWhite};
|
|
333
333
|
text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
|
|
334
|
-
`,
|
|
334
|
+
`,P=s.div`
|
|
335
335
|
display: flex;
|
|
336
336
|
flex-direction: column;
|
|
337
337
|
gap: 8px;
|
|
338
|
-
`,
|
|
338
|
+
`,W=s.label`
|
|
339
339
|
font-size: 13px;
|
|
340
340
|
font-weight: 700;
|
|
341
341
|
letter-spacing: 0.04em;
|
|
342
342
|
text-transform: uppercase;
|
|
343
|
-
color: ${
|
|
343
|
+
color: ${a.gray4};
|
|
344
344
|
`,oi=s.div`
|
|
345
345
|
display: flex;
|
|
346
346
|
gap: 8px;
|
|
347
|
-
`,
|
|
347
|
+
`,ri=s.button`
|
|
348
348
|
min-height: 44px;
|
|
349
349
|
padding: 0 16px;
|
|
350
350
|
border-radius: ${$.pill};
|
|
@@ -352,20 +352,20 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
352
352
|
background: none;
|
|
353
353
|
font: inherit;
|
|
354
354
|
font-weight: 600;
|
|
355
|
-
color: ${
|
|
355
|
+
color: ${a.softWhite};
|
|
356
356
|
cursor: pointer;
|
|
357
357
|
|
|
358
358
|
&[data-selected] {
|
|
359
|
-
border-color: ${
|
|
360
|
-
background: ${
|
|
361
|
-
color: ${
|
|
359
|
+
border-color: ${a.softWhite};
|
|
360
|
+
background: ${a.softWhite};
|
|
361
|
+
color: ${a.text};
|
|
362
362
|
}
|
|
363
|
-
`,
|
|
363
|
+
`,ai=s.div`
|
|
364
364
|
width: 240px;
|
|
365
365
|
aspect-ratio: 3 / 4;
|
|
366
366
|
border-radius: ${$.card};
|
|
367
367
|
overflow: hidden;
|
|
368
|
-
background: ${
|
|
368
|
+
background: ${a.media};
|
|
369
369
|
|
|
370
370
|
&[data-busy] {
|
|
371
371
|
opacity: 0.6;
|
|
@@ -390,7 +390,7 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
390
390
|
width: 44px;
|
|
391
391
|
height: 44px;
|
|
392
392
|
padding: 2px;
|
|
393
|
-
border: 1px solid ${
|
|
393
|
+
border: 1px solid ${a.lineStrong};
|
|
394
394
|
border-radius: ${$.btn};
|
|
395
395
|
background: none;
|
|
396
396
|
cursor: pointer;
|
|
@@ -407,21 +407,21 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
407
407
|
flex-direction: column;
|
|
408
408
|
gap: 2px;
|
|
409
409
|
font-size: 12px;
|
|
410
|
-
color: ${
|
|
410
|
+
color: ${a.gray4};
|
|
411
411
|
`,ci=s.input`
|
|
412
412
|
width: 88px;
|
|
413
413
|
height: 26px;
|
|
414
414
|
padding: 0 6px;
|
|
415
|
-
border: 1px solid ${
|
|
415
|
+
border: 1px solid ${a.lineStrong};
|
|
416
416
|
border-radius: ${$.chip};
|
|
417
|
-
background: ${
|
|
417
|
+
background: ${a.white};
|
|
418
418
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
419
419
|
font-size: 12px;
|
|
420
|
-
color: ${
|
|
420
|
+
color: ${a.text};
|
|
421
421
|
text-transform: lowercase;
|
|
422
422
|
|
|
423
423
|
&[data-invalid] {
|
|
424
|
-
border-color: ${
|
|
424
|
+
border-color: ${a.errStrong};
|
|
425
425
|
}
|
|
426
426
|
`,pi=s.div`
|
|
427
427
|
width: 281px;
|
|
@@ -440,14 +440,14 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
440
440
|
`,kt=s.input`
|
|
441
441
|
height: 44px;
|
|
442
442
|
padding: 0 14px;
|
|
443
|
-
border: 1px solid ${
|
|
443
|
+
border: 1px solid ${a.lineStrong};
|
|
444
444
|
border-radius: ${$.btn};
|
|
445
|
-
background: ${
|
|
445
|
+
background: ${a.white};
|
|
446
446
|
font: inherit;
|
|
447
|
-
color: ${
|
|
447
|
+
color: ${a.text};
|
|
448
448
|
|
|
449
449
|
&:focus {
|
|
450
|
-
outline: 2px solid ${
|
|
450
|
+
outline: 2px solid ${a.accent};
|
|
451
451
|
outline-offset: -1px;
|
|
452
452
|
}
|
|
453
453
|
`,xi=s.ul`
|
|
@@ -476,7 +476,7 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
476
476
|
width: 40px;
|
|
477
477
|
height: 40px;
|
|
478
478
|
border-radius: 8px;
|
|
479
|
-
background: ${
|
|
479
|
+
background: ${a.media};
|
|
480
480
|
flex-shrink: 0;
|
|
481
481
|
`,gi=s.img`
|
|
482
482
|
${Nt};
|
|
@@ -499,7 +499,7 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
499
499
|
border: 1px solid rgba(255, 255, 255, 0.45);
|
|
500
500
|
font-size: 11px;
|
|
501
501
|
font-weight: 600;
|
|
502
|
-
color: ${
|
|
502
|
+
color: ${a.softWhite};
|
|
503
503
|
white-space: nowrap;
|
|
504
504
|
|
|
505
505
|
${B.maxWidth("mobile")} {
|
|
@@ -511,7 +511,7 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
511
511
|
align-items: center;
|
|
512
512
|
gap: 4px;
|
|
513
513
|
font-size: 13px;
|
|
514
|
-
color: ${
|
|
514
|
+
color: ${a.gray4};
|
|
515
515
|
white-space: nowrap;
|
|
516
516
|
`,wi=s.div`
|
|
517
517
|
display: flex;
|
|
@@ -536,11 +536,11 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
536
536
|
border: 0;
|
|
537
537
|
background: none;
|
|
538
538
|
border-radius: 50%;
|
|
539
|
-
color: ${
|
|
539
|
+
color: ${a.gray4};
|
|
540
540
|
cursor: pointer;
|
|
541
541
|
|
|
542
542
|
&:hover {
|
|
543
|
-
color: ${
|
|
543
|
+
color: ${a.dclRed};
|
|
544
544
|
background: rgba(255, 255, 255, 0.14);
|
|
545
545
|
}
|
|
546
546
|
`,ki=s.div`
|
|
@@ -553,4 +553,4 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-BYHuwl8r.js";im
|
|
|
553
553
|
display: flex;
|
|
554
554
|
flex-wrap: wrap;
|
|
555
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};
|
|
556
|
+
`;function Ki(){const{id:n}=Xt(),{pathname:f}=Yt(),h=Y(b=>b.session),c=Y(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(Me,{style:{background:ce(n)},children:t.jsx("img",{src:f,alt:"",loading:"lazy"})}):t.jsx(Ue,{"aria-hidden":!0})}function Ii(){const n=Y(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||at(E,{flow:`outfit-${k}`}),N.error(e(E instanceof A?nt(E.code):"outfits.errors.generic"))}finally{j(null),c(null)}}}return t.jsxs(Pt,{"data-testid":"outfit-studio-list",children:[t.jsxs(Wt,{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(He,{"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(Xe,{children:[t.jsx(Ye,{children:e("outfits.studio.deleteTitle")}),t.jsx("p",{className:"muted",children:e("outfits.studio.deleteBody")}),t.jsxs(Je,{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:rt.from,gradientTo:rt.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=Y(i=>i.session),y=It(),j=Jt(),[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(r=>r&&{...r,...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=r=>r.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]),H=i=>ge((o==null?void 0:o.items)??[],i,g.byKey),l=i=>!!i.itemId&&H(i).length<=X;function v(i){!o||!l(i)||S({items:H(i)})}const[M,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(""),[Ht,ht]=d.useState(null),[T,Mt]=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(""),Mt(i.colors),S({items:i.items,...i.bodyShape?{bodyShape:i.bodyShape}:{}}),N.success(e("outfits.studio.importSuccess",{count:i.items.length}))}async function Ut(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 r=URL.createObjectURL(i);L.current=r,ut(r),ct(!0);try{const p=await fe(i,c.identity);S({thumbnailHash:p})}catch(p){p instanceof A||at(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[U,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 r=g.byKey.get(z(i));return!r||se(r)}),bt=!!o&&it&&!!o.thumbnailHash&&Kt&>&&o.items.length>=oe&&o.items.length<=X;async function st(i){if(!(!c||!o||U)){xt(!0),mt(null);try{const r=await Rt({...o,published:i},c.identity,f?"create":"update");if(!tt.current)return;sessionStorage.removeItem(h),R(dt(r)),I(!1),zt(y),i&&!o.published?(me("Shop Outfit Published",{outfit_id:r.id,item_count:r.items.length}),N.success(e("outfits.studio.publishedToast"))):N.success(e("outfits.studio.saved")),f&&(y.setQueryData(["outfit",r.id,!0],r),j(`/outfits/${r.id}/edit`,{replace:!0}))}catch(r){r instanceof A||at(r,{flow:"outfit-save"}),mt(e(r instanceof A?nt(r.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(()=>re(Q),[Q]),_t=d.useMemo(()=>{const i=ae(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=M??Lt(o.thumbnailHash),qt={...o,authorAddress:(c==null?void 0:c.address)??"",createdAt:0,updatedAt:0},Qt=o.items.reduce((i,r)=>{var p;return i+(((p=g.byKey.get(z(r)))==null?void 0:p.priceCredits)??0)},0);return t.jsxs(Pt,{"data-testid":"outfit-studio-editor",children:[t.jsxs(Wt,{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(P,{children:[t.jsx(W,{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(ri,{type:"button","data-selected":o.bodyShape===i||void 0,onClick:()=>S({bodyShape:i}),children:e(`outfits.studio.shape.${i}`)},i))})]}),t.jsxs(P,{children:[t.jsx(W,{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]:rt.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:r=>S({[i]:r.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:r=>{const p=r.target.value.trim().toLowerCase();S({[i]:p.startsWith("#")||p===""?p:`#${p}`})}})]})]},i))}),t.jsx(w,{children:e("outfits.studio.gradientHint")})]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.thumbnail")}),jt?t.jsx(ai,{"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 r;return void Ut((r=i.target.files)==null?void 0:r[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(P,{children:[t.jsx(W,{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(P,{children:[t.jsx(W,{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:Ht,testId:"outfit-studio-import-error"})]}),t.jsxs(P,{children:[t.jsx(W,{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(P,{children:[t.jsxs(W,{as:"span",children:[e("outfits.studio.items")," (",o.items.length,"/",X,")"]}),o.items.length===0?t.jsx(w,{children:e("outfits.studio.noItems")}):t.jsx(xi,{children:o.items.map(i=>{const r=z(i),p=g.byKey.get(r);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")}),r===_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)!==r)}),children:t.jsx(K,{name:"trash",size:16})})]},r)})}),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>=X?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:U||!it,onClick:()=>void st(o.published),children:U?e("outfits.studio.saving"):e("outfits.studio.saveDraft")}),o.published?t.jsx(x,{variant:"white","data-testid":"outfit-studio-unpublish",disabled:U,onClick:()=>void st(!1),children:e("outfits.studio.unpublish")}):t.jsx(x,{variant:"white","data-testid":"outfit-studio-publish",disabled:U||!bt,onClick:()=>void st(!0),children:e("outfits.studio.publish")})]})]})]})}export{Ki as OutfitStudio,Ki as default};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{j as t,L as oe,b as le,r as l}from"./react-BYHuwl8r.js";import{b as
|
|
1
|
+
import{j as t,L as oe,b as le,r as l}from"./react-BYHuwl8r.js";import{b as n,t as j,s as a,w as ce,B as G,x as de,o as pe,A as ue,bs as ge,bx as me,by as xe,bz as he,bA as R,I as C,bB as f,bC as fe,E as F}from"./index-H0_FOTS1.js";import{E as M}from"./ErrorNotice-CCUuPON0.js";import{F as w}from"./field.styles-dfnZT-br.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";const ve="https://cdn.decentraland.org/@dcl/shop/1.0.2-31075138109.commit-b4b8f60/_assets/template-cover-1-BETekfHg.jpeg",be="https://cdn.decentraland.org/@dcl/shop/1.0.2-31075138109.commit-b4b8f60/_assets/template-cover-2-Dni9s0i_.jpeg",we=Object.assign({"../assets/creator-covers/template-cover-1.jpeg":ve,"../assets/creator-covers/template-cover-2.jpeg":be}),v=Object.entries(we).sort(([r],[u])=>r.localeCompare(u)).map(([r,u])=>({name:r.split("/").pop(),url:u})),je=ce`
|
|
2
2
|
to {
|
|
3
3
|
transform: rotate(360deg);
|
|
4
4
|
}
|
|
5
|
-
`,Se=
|
|
5
|
+
`,Se=a.div`
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: center;
|
|
@@ -16,7 +16,7 @@ import{j as t,L as oe,b as le,r as l}from"./react-BYHuwl8r.js";import{b as a,t a
|
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
text-align: center;
|
|
18
18
|
}
|
|
19
|
-
`,ke=
|
|
19
|
+
`,ke=a.span`
|
|
20
20
|
flex: none;
|
|
21
21
|
border-radius: 50%;
|
|
22
22
|
border-style: solid;
|
|
@@ -43,21 +43,21 @@ import{j as t,L as oe,b as le,r as l}from"./react-BYHuwl8r.js";import{b as a,t a
|
|
|
43
43
|
@media (prefers-reduced-motion: reduce) {
|
|
44
44
|
animation-duration: 2s;
|
|
45
45
|
}
|
|
46
|
-
`,$e=
|
|
46
|
+
`,$e=a.span`
|
|
47
47
|
font-size: 14px;
|
|
48
48
|
font-weight: 600;
|
|
49
|
-
`;function ye({label:r,size:u="medium",direction:S="column",className:k}){return t.jsxs(Se,{className:k,"data-testid":"spinner-box","data-direction":S,role:"status","aria-live":"polite","aria-label":r?void 0:
|
|
49
|
+
`;function ye({label:r,size:u="medium",direction:S="column",className:k}){return t.jsxs(Se,{className:k,"data-testid":"spinner-box","data-direction":S,role:"status","aria-live":"polite","aria-label":r?void 0:n("spinner.loading"),children:[t.jsx(ke,{"data-testid":"spinner-box-ring","data-size":u,"aria-hidden":!0}),r?t.jsx($e,{children:r}):null]})}const{colors:s,radius:_e,media:K}=j,Ee=a(ye)`
|
|
50
50
|
display: grid;
|
|
51
51
|
place-items: center;
|
|
52
52
|
min-height: 60vh;
|
|
53
|
-
`,ze=
|
|
53
|
+
`,ze=a(G)`
|
|
54
54
|
align-self: center;
|
|
55
55
|
min-width: 200px;
|
|
56
56
|
margin-top: 8px;
|
|
57
|
-
`,Ce=
|
|
57
|
+
`,Ce=a.p`
|
|
58
58
|
margin: 0;
|
|
59
59
|
color: ${s.gray4};
|
|
60
|
-
`,
|
|
60
|
+
`,O=a.section`
|
|
61
61
|
max-width: 640px;
|
|
62
62
|
margin: 0 auto;
|
|
63
63
|
padding: 8px 0 48px;
|
|
@@ -88,17 +88,17 @@ import{j as t,L as oe,b as le,r as l}from"./react-BYHuwl8r.js";import{b as a,t a
|
|
|
88
88
|
resize: vertical;
|
|
89
89
|
min-height: 88px;
|
|
90
90
|
}
|
|
91
|
-
`,Ne=
|
|
91
|
+
`,Ne=a.div`
|
|
92
92
|
display: flex;
|
|
93
93
|
align-items: baseline;
|
|
94
94
|
justify-content: space-between;
|
|
95
95
|
gap: 16px;
|
|
96
96
|
flex-wrap: wrap;
|
|
97
|
-
`,Le=
|
|
97
|
+
`,Le=a.div`
|
|
98
98
|
display: flex;
|
|
99
99
|
align-items: center;
|
|
100
100
|
gap: 10px;
|
|
101
|
-
`,He=
|
|
101
|
+
`,He=a(oe)`
|
|
102
102
|
display: flex;
|
|
103
103
|
align-items: center;
|
|
104
104
|
justify-content: center;
|
|
@@ -112,10 +112,10 @@ import{j as t,L as oe,b as le,r as l}from"./react-BYHuwl8r.js";import{b as a,t a
|
|
|
112
112
|
width: 22px;
|
|
113
113
|
height: 22px;
|
|
114
114
|
}
|
|
115
|
-
`,
|
|
115
|
+
`,W=a.h1`
|
|
116
116
|
font-size: 24px;
|
|
117
117
|
font-weight: 800;
|
|
118
|
-
`,Ie=
|
|
118
|
+
`,Ie=a.a`
|
|
119
119
|
display: inline-flex;
|
|
120
120
|
align-items: center;
|
|
121
121
|
gap: 6px;
|
|
@@ -131,7 +131,7 @@ import{j as t,L as oe,b as le,r as l}from"./react-BYHuwl8r.js";import{b as a,t a
|
|
|
131
131
|
width: 15px;
|
|
132
132
|
height: 15px;
|
|
133
133
|
}
|
|
134
|
-
`,Te=
|
|
134
|
+
`,Te=a.div`
|
|
135
135
|
display: flex;
|
|
136
136
|
align-items: stretch;
|
|
137
137
|
border: 1px solid ${s.lineStrong};
|
|
@@ -145,7 +145,7 @@ import{j as t,L as oe,b as le,r as l}from"./react-BYHuwl8r.js";import{b as a,t a
|
|
|
145
145
|
flex: 1;
|
|
146
146
|
min-width: 0;
|
|
147
147
|
}
|
|
148
|
-
`,Be=
|
|
148
|
+
`,Be=a.span`
|
|
149
149
|
display: flex;
|
|
150
150
|
align-items: center;
|
|
151
151
|
padding: 0 10px;
|
|
@@ -154,7 +154,7 @@ import{j as t,L as oe,b as le,r as l}from"./react-BYHuwl8r.js";import{b as a,t a
|
|
|
154
154
|
font-size: 13px;
|
|
155
155
|
white-space: nowrap;
|
|
156
156
|
border-right: 1px solid ${s.lineStrong};
|
|
157
|
-
`,Pe=
|
|
157
|
+
`,Pe=a.div`
|
|
158
158
|
display: grid;
|
|
159
159
|
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
|
160
160
|
gap: 12px;
|
|
@@ -162,7 +162,7 @@ import{j as t,L as oe,b as le,r as l}from"./react-BYHuwl8r.js";import{b as a,t a
|
|
|
162
162
|
${K.maxWidth("mobile")} {
|
|
163
163
|
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
164
164
|
}
|
|
165
|
-
`,N=
|
|
165
|
+
`,N=a.button`
|
|
166
166
|
position: relative;
|
|
167
167
|
padding: 0;
|
|
168
168
|
border: 2px solid ${s.lineStrong};
|
|
@@ -223,21 +223,21 @@ import{j as t,L as oe,b as le,r as l}from"./react-BYHuwl8r.js";import{b as a,t a
|
|
|
223
223
|
&[data-variant='upload']:hover .ico {
|
|
224
224
|
background: ${s.accent};
|
|
225
225
|
}
|
|
226
|
-
`,Ae=
|
|
226
|
+
`,Ae=a.input`
|
|
227
227
|
position: absolute;
|
|
228
228
|
width: 1px;
|
|
229
229
|
height: 1px;
|
|
230
230
|
opacity: 0;
|
|
231
231
|
pointer-events: none;
|
|
232
|
-
`,
|
|
232
|
+
`,Re=a.div`
|
|
233
233
|
display: flex;
|
|
234
234
|
justify-content: flex-end;
|
|
235
235
|
gap: 12px;
|
|
236
236
|
margin-top: 8px;
|
|
237
|
-
`,
|
|
237
|
+
`,Fe=a(G)`
|
|
238
238
|
min-width: 180px;
|
|
239
239
|
|
|
240
240
|
${K.maxWidth("mobile")} {
|
|
241
241
|
width: 100%;
|
|
242
242
|
}
|
|
243
|
-
`,
|
|
243
|
+
`,D=1e6,V={cover:"",coverName:"",coverHash:"",description:"",links:{website:"",twitter:"",discord:"",facebook:""}};function Y(r){return`${(r/1e6).toLocaleString(void 0,{maximumFractionDigits:2})}MB`}function qe(){de({title:n("seo.storeSettings.title"),noindex:!0});const{session:r,signIn:u}=pe(),S=le(),k=ue(),p=r==null?void 0:r.address,{data:$,isLoading:q}=ge(p),[o,g]=l.useState(V),[L,H]=l.useState(V),[y,x]=l.useState(),[h,I]=l.useState(!1),[c,_]=l.useState(null),[b,J]=l.useState({}),T=l.useRef(null);l.useEffect(()=>{if($){const e=me($);g(e),H(e),x(void 0),_(e.cover?{url:e.cover,name:e.coverName,hash:e.coverHash}:null)}},[$]),l.useEffect(()=>{let e=!1;return Promise.all(v.map(async i=>[i.name,await xe(i.url)])).then(i=>{e||J(Object.fromEntries(i))}).catch(()=>{}),()=>{e=!0}},[]);const E=l.useMemo(()=>{const e=v.find(d=>o.coverName===`cover/${d.name}`);if(e)return e.name;const i=o.coverHash?v.find(d=>b[d.name]===o.coverHash):void 0;return i==null?void 0:i.name},[o.coverName,o.coverHash,b]);l.useEffect(()=>{c!=null&&c.hash&&v.some(e=>b[e.name]===c.hash)&&_(null)},[b,c]);const B=y!==void 0&&y>D,Q=l.useMemo(()=>he.filter(e=>!R(e,o.links[e])),[o.links]),U=B||Q.length>0,z=l.useMemo(()=>JSON.stringify(o)!==JSON.stringify(L),[o,L]),X=z&&!U&&!h;if(l.useEffect(()=>{if(!z)return;const e=i=>{i.preventDefault()};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[z]),!r)return t.jsxs(O,{"data-signin":!0,"aria-label":n("storeSettings.title"),children:[t.jsx(W,{children:n("storeSettings.title")}),t.jsx(Ce,{children:n("storeSettings.signInPrompt")}),t.jsx(ze,{variant:"white",onClick:u,children:n("storeSettings.signIn")})]});function Z(e,i){x(void 0),g(d=>({...d,cover:i,coverName:`cover/${e}`,coverHash:""}))}const ee=["image/png","image/jpeg","image/webp"];function te(e){var P;const i=(P=e.target.files)==null?void 0:P[0];if(!i||!ee.includes(i.type))return;x(i.size);const d=`cover/${i.name}`,m=new FileReader;m.onload=()=>{const A=m.result;_({url:A,name:d,hash:""}),g(re=>({...re,cover:A,coverName:d,coverHash:""}))},m.readAsDataURL(i)}function ie(){c&&(x(void 0),g(e=>({...e,cover:c.url,coverName:c.name,coverHash:c.hash})))}function se(e,i){const d=i?(f[e]+i).replace(/\s/g,""):"";g(m=>({...m,links:{...m.links,[e]:d}}))}function ne(e){const i=o.links[e];return e==="website"?i:i.replace(f[e],"")}async function ae(){if(!(!p||!r)){I(!0);try{await fe(p,o,r.identity),H(o),x(void 0),await k.invalidateQueries({queryKey:["store",p.toLowerCase()]}),F.success(n("storeSettings.saved")),S(`/items/creator/${p}`)}catch{F.error(n("storeSettings.saveError"))}finally{I(!1)}}}return t.jsxs(O,{"aria-label":n("storeSettings.title"),children:[t.jsxs(Ne,{children:[t.jsxs(Le,{children:[p?t.jsx(He,{to:`/items/creator/${p}`,title:n("storeSettings.back"),"aria-label":n("storeSettings.back"),children:t.jsx(C,{name:"arrow-left"})}):null,t.jsx(W,{children:n("storeSettings.title")})]}),p?t.jsxs(Ie,{href:`/items/creator/${p}`,target:"_blank",rel:"noopener noreferrer",children:[n("storeSettings.seeAsGuest"),t.jsx(C,{name:"external-link"})]}):null]}),q?t.jsx(Ee,{size:"large",label:n("storeSettings.loading")}):t.jsxs(t.Fragment,{children:[t.jsxs(w,{children:[t.jsx("span",{className:"field__label",children:n("storeSettings.cover")}),t.jsxs(Pe,{role:"group","aria-label":n("storeSettings.cover"),children:[v.map(e=>{const i=E===e.name;return t.jsx(N,{type:"button","data-testid":"cover-picker-tile","data-selected":i,"aria-pressed":i,onClick:()=>Z(e.name,e.url),children:t.jsx("img",{src:e.url,alt:"",loading:"lazy"})},e.name)}),c?t.jsx(N,{type:"button","data-testid":"cover-picker-tile","data-variant":"custom","data-selected":!E,"aria-pressed":!E,onClick:ie,children:t.jsx("img",{src:c.url,alt:""})}):null,t.jsxs(N,{type:"button","data-testid":"cover-picker-tile","data-variant":"upload",onClick:()=>{var e;return(e=T.current)==null?void 0:e.click()},children:[t.jsx(C,{name:"upload"}),t.jsx("span",{children:n("storeSettings.upload")})]}),t.jsx(Ae,{ref:T,type:"file",accept:"image/png, image/jpeg, image/webp","data-testid":"cover-picker-input",onChange:te})]}),B?t.jsx(M,{message:n("storeSettings.sizeError",{max:Y(D),current:Y(y)})}):null]}),t.jsxs(w,{as:"label",children:[t.jsx("span",{className:"field__label",children:n("storeSettings.description")}),t.jsx("textarea",{value:o.description,rows:4,disabled:h,onChange:e=>g(i=>({...i,description:e.target.value}))})]}),t.jsxs(w,{as:"label",children:[t.jsx("span",{className:"field__label",children:n("storeSettings.website")}),t.jsx("input",{type:"url",value:o.links.website,placeholder:f.website,disabled:h,onChange:e=>g(i=>({...i,links:{...i.links,website:e.target.value.replace(/\s/g,"")}}))}),R("website",o.links.website)?null:t.jsx(M,{message:n("storeSettings.linkError",{value:f.website})})]}),["twitter","discord","facebook"].map(e=>t.jsxs(w,{as:"label",children:[t.jsx("span",{className:"field__label",children:n(`storeSettings.${e}`)}),t.jsxs(Te,{children:[t.jsx(Be,{children:f[e]}),t.jsx("input",{type:"text",value:ne(e),disabled:h,onChange:i=>se(e,i.target.value)})]})]},e)),t.jsx(Re,{children:t.jsx(Fe,{variant:"white","data-testid":"store-settings-save",onClick:()=>void ae(),disabled:!X,children:h?n("storeSettings.saving"):n("storeSettings.save")})})]})]})}export{qe as StoreSettings,qe as default};
|