@dcl/shop 0.6.1 → 0.6.2-30958394678.commit-3968c2a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/_assets/{Activity-CCVwnN-d.js → Activity-3zyI1IRX.js} +3 -3
  2. package/_assets/{AnimatedBackground-CNn-Vax_.js → AnimatedBackground-nIupuP8l.js} +1 -1
  3. package/_assets/{Assets-BPgkfGkc.js → Assets-BI3c9ohq.js} +8 -8
  4. package/_assets/{Assets.styles-BAy3by3Z.js → Assets.styles-9ki_t5x3.js} +1 -1
  5. package/_assets/{Authorizations-CdqHugnL.js → Authorizations-DXc8lpwm.js} +1 -1
  6. package/_assets/{Cart-CzNOpZkY.js → Cart-DuHl9E6I.js} +2 -2
  7. package/_assets/{CircularProgress-DqLGsuLk.js → CircularProgress-U_mjuju1.js} +3 -3
  8. package/_assets/{Collection-DmrD6mAW.js → Collection-CIcLTFPZ.js} +1 -1
  9. package/_assets/{CollectionCarousel-BpMj1RRH.js → CollectionCarousel-B7TB_OMj.js} +7 -7
  10. package/_assets/{Creator-DYPK74k6.js → Creator-BFMpAq2T.js} +7 -7
  11. package/_assets/{ErrorNotice-6j32LCd-.js → ErrorNotice-B5gvtysl.js} +1 -1
  12. package/_assets/{ExchangeController-CjtWowut.js → ExchangeController-Chujc587.js} +1 -1
  13. package/_assets/{GetCredits-9nCD-_vL.js → GetCredits-DUE68Ofv.js} +17 -17
  14. package/_assets/{HelpersUtil-6C8PzEL7.js → HelpersUtil-DzsKL2ac.js} +1 -1
  15. package/_assets/{ItemDetail-lJyiLtT6.js → ItemDetail-Ch7JVJ39.js} +193 -194
  16. package/_assets/LazyEmoteControls-BwHr8-X7.js +2 -0
  17. package/_assets/{LoadMore-C6sUcyIf.js → LoadMore-BO9-NgF0.js} +1 -1
  18. package/_assets/{ManaPricingBanner.styles-zp0428S7.js → ManaPricingBanner.styles-LfXG3P0z.js} +3 -3
  19. package/_assets/{MenuList-BTdUxA4D.js → MenuList-BX6yO7Ac.js} +2 -2
  20. package/_assets/{MyAssets-BbmsS4SI.js → MyAssets-DVZ_pZXb.js} +1 -1
  21. package/_assets/{MyFavorites-B_Mv89Yf.js → MyFavorites-CbvKYAiN.js} +35 -24
  22. package/_assets/{NotFound-0lsOfC5s.js → NotFound-B3230xyR.js} +1 -1
  23. package/_assets/NotificationsBell-x9qG4JAm.js +34 -0
  24. package/_assets/OutfitDetail-DQa5i9Jk.js +334 -0
  25. package/_assets/OutfitPreview-D4-9krF1.js +6 -0
  26. package/_assets/OutfitStudio-8RdjVeCY.js +537 -0
  27. package/_assets/{StoreSettings-BxTLlxHn.js → StoreSettings-DWBD4fbU.js} +1 -1
  28. package/_assets/{Success-DMCTT33h.js → Success-Couk7Hdv.js} +5 -5
  29. package/_assets/{SwapController-Ci7sPB_-.js → SwapController-k6QIzYEE.js} +1 -1
  30. package/_assets/{Tooltip-BZ-qUO0l.js → Tooltip-BQX-SlPA.js} +1 -1
  31. package/_assets/{TradeService-Cu6fpwnh.js → TradeService-mV7WtrBG.js} +1 -1
  32. package/_assets/{W3MFrameProviderSingleton-8GeYldkk.js → W3MFrameProviderSingleton-DrpRVilu.js} +3 -3
  33. package/_assets/{WebCryptoP256-fMzbuVHl.js → WebCryptoP256-CMlkql0I.js} +1 -1
  34. package/_assets/{authorizations-DOwEBZw0.js → authorizations-CtiOXVNn.js} +1 -1
  35. package/_assets/{basic-CNB5RbBM.js → basic-DdbQHLj0.js} +1 -1
  36. package/_assets/{biconomy-VIh33SiE.js → biconomy-2kmLuYrH.js} +1 -1
  37. package/_assets/{builder-ENYhtC9A.js → builder-Be5eHY-S.js} +1 -1
  38. package/_assets/{buy-DME37PMo.js → buy-Bm7LPL_y.js} +1 -1
  39. package/_assets/{buy-gasless-CsB_UciL.js → buy-gasless-Cna5Um4K.js} +1 -1
  40. package/_assets/{categories-SI1YlvJt.js → categories-B0u9Kgh7.js} +1 -1
  41. package/_assets/{ccip-r6C5X7kR.js → ccip-Ci5E3IwV.js} +1 -1
  42. package/_assets/{ccip-BWQZvTr_.js → ccip-DGfiuVqj.js} +1 -1
  43. package/_assets/clsx-WwvpwSg0.js +1 -0
  44. package/_assets/{collectionPage.styles-DTQE0MEN.js → collectionPage.styles-zJMtUweU.js} +5 -5
  45. package/_assets/{controller-D4hrVQu3.js → controller-DsSvMbNo.js} +2 -2
  46. package/_assets/{core-CG9Ai3BM.js → core-Cq1jU2ZC.js} +4 -4
  47. package/_assets/{createSvgIcon-BBqN76DB.js → createSvgIcon-WjfcCScq.js} +2 -2
  48. package/_assets/{custom-CoESkeU0.js → custom-C3YA4NkW.js} +1 -1
  49. package/_assets/{data-capture-DsD2q2fn.js → data-capture-CEkcLxes.js} +1 -1
  50. package/_assets/{email-2Crwdpgb.js → email-Dsb8bC4V.js} +1 -1
  51. package/_assets/{embedded-wallet-B5qGTlLf.js → embedded-wallet-DYwTFWHC.js} +1 -1
  52. package/_assets/emotion-styled.browser.esm-CXHuvzN7.js +1 -0
  53. package/_assets/{engine-DMQKkPgK.js → engine-CRG7y_Dc.js} +1 -1
  54. package/_assets/{errors-BNZ7sBF_.js → errors-md0_v65i.js} +1 -1
  55. package/_assets/{estimate-l1-fee-D7epFE-D.js → estimate-l1-fee-pM-7mo0C.js} +1 -1
  56. package/_assets/{execute-DKumTrX9.js → execute-By-QAyMu.js} +2 -2
  57. package/_assets/{features-DI5UMV_W.js → features-CE9fos6_.js} +1 -1
  58. package/_assets/{fetchTokenMetadata-D4n2TjLB.js → fetchTokenMetadata-CCRHppyJ.js} +2 -2
  59. package/_assets/{field.styles-CjeX0pR0.js → field.styles-I7yK67N6.js} +1 -1
  60. package/_assets/{get-ecosystem-wallet-info-b6CDxjL2.js → get-ecosystem-wallet-info-CfkIBkrv.js} +1 -1
  61. package/_assets/{getBalance-k1LJAZwU.js → getBalance-r2d5SR8J.js} +1 -1
  62. package/_assets/{getNFT-B39rY-PL.js → getNFT-CdMO9Qsb.js} +1 -1
  63. package/_assets/{getNFT-BMgMzvsZ.js → getNFT-DJwtmi5E.js} +1 -1
  64. package/_assets/{getThemeProps-CppRRpEN.js → getThemeProps-Dfsert1D.js} +1 -1
  65. package/_assets/{grid.styles-Ckr_d1Os.js → grid.styles-nOJmORwE.js} +1 -1
  66. package/_assets/{hashTypedData-CiesaRhT.js → hashTypedData-BUyuoUS1.js} +1 -1
  67. package/_assets/{hashTypedData-DUwT6kJz.js → hashTypedData-Cn4NLSva.js} +1 -1
  68. package/_assets/{in-app-B5W9FA6J.js → in-app-Bbyp_hac.js} +1 -1
  69. package/_assets/{in-app-wallet-calls--fTMhgRz.js → in-app-wallet-calls-B-gR9DjX.js} +1 -1
  70. package/_assets/{index-COM-LGX-.js → index-2aeigaSb.js} +1 -1
  71. package/_assets/{index-DmlHhfEt.js → index-2hXh3Lug.js} +1 -1
  72. package/_assets/{index-C4Mo9qnf.js → index-40kmd_aK.js} +3 -3
  73. package/_assets/{index-8Gs8aT7x.js → index-42pSYxn6.js} +1 -1
  74. package/_assets/{index-Ct4YR2LP.js → index-7y51FKRL.js} +1 -1
  75. package/_assets/{index-CjmdU7lV.js → index-8KyAMGS-.js} +3 -3
  76. package/_assets/{index-D0JaJVwf.js → index-B-vjn9pq.js} +1 -1
  77. package/_assets/{index-C2R_7cZP.js → index-BF0WiBHh.js} +1 -1
  78. package/_assets/{index-CqYYwjL0.js → index-BF64P65M.js} +1 -1
  79. package/_assets/{index-BwnQwSAu.js → index-BLLKqfcD.js} +2 -2
  80. package/_assets/{index-MSDyZgBz.js → index-BLT6_sje.js} +2 -2
  81. package/_assets/{index-DIYC-eqY.js → index-BRbJkxhy.js} +1 -1
  82. package/_assets/{index-C_8wyBUp.js → index-BRg1smL5.js} +1 -1
  83. package/_assets/{index-CROLwqLK.js → index-BSPthC5D.js} +1 -1
  84. package/_assets/{index-6lOpuU8D.js → index-BVV_fmte.js} +1 -1
  85. package/_assets/{index--5-WNACO.js → index-BmI_VY2L.js} +1 -1
  86. package/_assets/{index-DCUHwzVB.js → index-BmXWASOw.js} +1 -1
  87. package/_assets/{index-BlTW8bE5.js → index-C4paiR8G.js} +1 -1
  88. package/_assets/{index-pzI9SPYg.js → index-C74Kz078.js} +1 -1
  89. package/_assets/index-CFNN4IQh.js +1 -0
  90. package/_assets/{index-CWl1zAsC.js → index-CGvsSnH5.js} +2 -2
  91. package/_assets/{index-7Jx0RbBI.js → index-CHP45HLF.js} +1 -1
  92. package/_assets/{index-r_ie-fYk.js → index-CKh-MxqM.js} +1 -1
  93. package/_assets/{index-D1Kwe229.js → index-CN7oQ8au.js} +1 -1
  94. package/_assets/{index-hzUEG0Wn.js → index-CT-IhRIi.js} +1 -1
  95. package/_assets/{index-D3b-6hLL.js → index-C_2RtD-k.js} +3 -3
  96. package/_assets/{index-DyyMlzME.js → index-Cjv0VYHk.js} +1 -1
  97. package/_assets/{index-BjDpMJu4.js → index-ClooG4VA.js} +1 -1
  98. package/_assets/{index-baUyxxA5.js → index-CoQL2VdI.js} +1 -1
  99. package/_assets/{index-6hXQkpzo.js → index-Cqxr1K7X.js} +1 -1
  100. package/_assets/{index-CnU32wDE.js → index-CrL-oicn.js} +1 -1
  101. package/_assets/{index-BvHiSowo.js → index-CxyxAB7h.js} +1 -1
  102. package/_assets/{index-BPLQs7pP.js → index-CyPEmEh2.js} +1 -1
  103. package/_assets/index-DBKr5jDP.js +3318 -0
  104. package/_assets/{index-DUdz_zrJ.js → index-DD3YA4Xc.js} +1 -1
  105. package/_assets/{index-CMt6SGgd.js → index-DItNTWlM.js} +1 -1
  106. package/_assets/{index-D0VlnNE3.js → index-DVtU3QsJ.js} +1 -1
  107. package/_assets/{index-Cz0mItuU.js → index-DWFeJSdC.js} +1 -1
  108. package/_assets/{index-DIpNccsB.js → index-Dvtk0M13.js} +1 -1
  109. package/_assets/{index-3Gl3qzVg.js → index-Dz2HX_tG.js} +1 -1
  110. package/_assets/{index-CiVLOnq4.js → index-DzE64ywR.js} +1 -1
  111. package/_assets/{index-DN_XFLDI.js → index-M6ot6iel.js} +9 -9
  112. package/_assets/index-T0WMmU10.js +2 -0
  113. package/_assets/{index-CWDp9PWh.js → index-UVas8o3a.js} +1 -1
  114. package/_assets/{index-BH9Lj6j_.js → index-YodNRE0F.js} +1 -1
  115. package/_assets/{index-BSMtncI0.js → index-aPDIsvsp.js} +1 -1
  116. package/_assets/{index-DLJMJNYR.js → index-cNFvNcyv.js} +1 -1
  117. package/_assets/{index-DIGH_-jR.js → index-g_bSpYWE.js} +1 -1
  118. package/_assets/{index-CdMXnYZl.js → index-nD_B3x2a.js} +1 -1
  119. package/_assets/{index-brzaaZ1P.js → index-o26JQUSX.js} +1 -1
  120. package/_assets/{index-DJigbyYH.js → index-wYE8B-zV.js} +1 -1
  121. package/_assets/index-yT06p0hy.js +4 -0
  122. package/_assets/{index.es-BfycRISM.js → index.es-AvY6da-n.js} +1 -1
  123. package/_assets/{index.es-Dz4gJjtG.js → index.es-BjABjHDS.js} +1 -1
  124. package/_assets/{index.es-CEspgBOo.js → index.es-CjrBlA2t.js} +4 -4
  125. package/_assets/{localBatchGatewayRequest-C2ejDWSe.js → localBatchGatewayRequest-DASiMtj6.js} +1 -1
  126. package/_assets/{networks-C8W7qTmi.js → networks-C8ez-bvH.js} +1 -1
  127. package/_assets/{onramp-gMYCcz-L.js → onramp-Mm39n2H9.js} +1 -1
  128. package/_assets/{openzeppelin-DoXqKfoL.js → openzeppelin-DM4th0ON.js} +1 -1
  129. package/_assets/{parseNft-CG6mXwGw.js → parseNft-jU70OzWf.js} +2 -2
  130. package/_assets/{parseSignature-YB0y-EIH.js → parseSignature-DgPEk7JG.js} +3 -3
  131. package/_assets/{parseSignature-BtFyUMyh.js → parseSignature-Vz1kWqBf.js} +1 -1
  132. package/_assets/{passkeys-DMD6dHpE.js → passkeys-DUP0d8Zb.js} +1 -1
  133. package/_assets/{pay-with-exchange-DmOk5KUk.js → pay-with-exchange-bcJ8587x.js} +1 -1
  134. package/_assets/{qr-overlay-BmfI4Van.js → qr-overlay-BgqdrAQN.js} +1 -1
  135. package/_assets/{receive-C8CxHyfZ.js → receive-DLQ1rgxk.js} +1 -1
  136. package/_assets/{resolveImplementation-D10q4uG8.js → resolveImplementation-D5VOTogv.js} +1 -1
  137. package/_assets/{rpc-C6XV-dPj.js → rpc-CZqGf5Pw.js} +1 -1
  138. package/_assets/{secp256k1-BmbnB2T6.js → secp256k1-CeIqoHzM.js} +1 -1
  139. package/_assets/{secp256k1-i1ynB1kh.js → secp256k1-DFodyUE2.js} +1 -1
  140. package/_assets/{secp256k1-CplZyQx1.js → secp256k1-wpoFdYyv.js} +1 -1
  141. package/_assets/{send-r-sbW-NR.js → send-5wSIIKSl.js} +1 -1
  142. package/_assets/{send-batch-transaction-DPGUnjFL.js → send-batch-transaction-BsHJzRR6.js} +1 -1
  143. package/_assets/{send-eip712-transaction-DDBiSwZa.js → send-eip712-transaction-CfdZenAu.js} +2 -2
  144. package/_assets/{send-gasless-transaction-TUww1FFr.js → send-gasless-transaction-DdUHdO7Q.js} +2 -2
  145. package/_assets/{send-transaction-INP2LgJd.js → send-transaction-BI-LBwbQ.js} +2 -2
  146. package/_assets/{sendMetaTransaction-CtlcvZ2u.js → sendMetaTransaction-DZqdC6fw.js} +1 -1
  147. package/_assets/{sendRawTransaction-BiF1pCL3.js → sendRawTransaction-BHUyxFbw.js} +3 -3
  148. package/_assets/{serializeTransaction-_CDXrMP2.js → serializeTransaction-ByXeuyQy.js} +1 -1
  149. package/_assets/{session-proposal-Cyo4-zWW.js → session-proposal-BbxUdmu_.js} +1 -1
  150. package/_assets/{session-request-DhBEeqtM.js → session-request-iIRNVfwz.js} +2 -2
  151. package/_assets/{signing-eZY4IKkr.js → signing-Cnwo6tva.js} +3 -3
  152. package/_assets/{socials-ez11BKnF.js → socials-JesVWt33.js} +1 -1
  153. package/_assets/styled-B0-_jC66.js +9 -0
  154. package/_assets/{swaps-D50dXpS9.js → swaps-DiHFkz3h.js} +1 -1
  155. package/_assets/{thirdweb-DtMwg5nw.js → thirdweb-BgDawyw0.js} +3 -3
  156. package/_assets/{to-serializable-transaction-Bo2k0bHN.js → to-serializable-transaction-Cy2ugr3u.js} +2 -2
  157. package/_assets/{trade-encoding-DBrxq_08.js → trade-encoding-DYGW0EG6.js} +1 -1
  158. package/_assets/{transactionReceipt-D84_cL1Y.js → transactionReceipt-BN5uajuZ.js} +1 -1
  159. package/_assets/{transactions-BxDrgH0T.js → transactions-vLsZNFPY.js} +1 -1
  160. package/_assets/{useCreditPacks-DJGSwrlc.js → useCreditPacks-Bxxs5gPt.js} +1 -1
  161. package/_assets/{useImportable-8-eoe6U0.js → useImportable-DaFCiZt-.js} +1 -1
  162. package/_assets/{useInfiniteGrid-BioQWUj3.js → useInfiniteGrid-aaW1umo4.js} +1 -1
  163. package/_assets/{useTheme-CuHYv3yr.js → useTheme-CWDPVAdC.js} +1 -1
  164. package/_assets/{verifyHash-Dp410C0R.js → verifyHash-Bfqcsnfy.js} +1 -1
  165. package/_assets/{w3m-modal-q1294Ir0.js → w3m-modal-7IzsWep_.js} +1 -1
  166. package/_assets/{w3m-modal-ChBvc6av.js → w3m-modal-dbHO42vZ.js} +1 -1
  167. package/_assets/{wait-for-tx-receipt-GGiAUH7I.js → wait-for-tx-receipt-CNCHrX28.js} +1 -1
  168. package/_assets/{wallets-B8DTTYN0.js → wallets-D-L32AGp.js} +5 -5
  169. package/_assets/{web-connector-CwvhuMom.js → web-connector-PVStra29.js} +3 -3
  170. package/_assets/{writeContract-CsfeVlnc.js → writeContract-znr6ni3L.js} +1 -1
  171. package/_assets/{zoraTestnet-CaYytGcL.js → zoraTestnet-Ux1B_UMW.js} +1 -1
  172. package/index.html +11 -11
  173. package/package.json +2 -2
  174. package/_assets/NotificationsBell-CaKoTXrL.js +0 -34
  175. package/_assets/OutfitDetail-ME6t5FNU.js +0 -326
  176. package/_assets/OutfitPreview-BCoX8M6g.js +0 -6
  177. package/_assets/OutfitStudio-DeiWpnBW.js +0 -500
  178. package/_assets/clsx-Dp2xNKFR.js +0 -9
  179. package/_assets/emotion-styled.browser.esm-Cc0eNU1p.js +0 -1
  180. package/_assets/index-BQADEYsi.js +0 -1
  181. package/_assets/index-BYQ4eOXE.js +0 -2
  182. package/_assets/index-C50bRdDg.js +0 -3318
  183. package/_assets/index-C5xtRArG.js +0 -4
@@ -1,500 +0,0 @@
1
- import{r as u,j as t,L as O,u as Gt,b as qt,d as Wt}from"./react-DehiWSvs.js";import{s as o,t as st,I as M,ax as Qt,d as e,x as X,B as m,ad as vt,l as q,M as Vt,v as Jt,y as wt,o as $t,O as Yt,V as B,ay as K,az as Xt,aA as G,$ as Zt,Y as te,Z as ee,S as St,a0 as ie,aB as Z,aC as se,aD as oe,aE as ae,A as F,aF as kt,aG as Tt,aH as P,D as tt,aI as et,aJ as ne,aK as re,aL as de,U as le,aM as ue,aN as ce,a7 as pe}from"./index-C50bRdDg.js";import{E as D}from"./ErrorNotice-6j32LCd-.js";import{L as fe}from"./LoadMore-C6sUcyIf.js";import{u as he}from"./useInfiniteGrid-BioQWUj3.js";import{O as me}from"./OutfitPreview-BCoX8M6g.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./disposePreview-DIA1G1eQ.js";const{colors:x,radius:ot,media:xe}=st,ge=o.div`
2
- display: flex;
3
- flex-direction: column;
4
- gap: 12px;
5
- `,be=o.div`
6
- display: flex;
7
- align-items: center;
8
- gap: 8px;
9
- border: 1px solid ${x.lineStrong};
10
- border-radius: ${ot.pill};
11
- padding: 0 14px;
12
- height: 44px;
13
-
14
- input {
15
- flex: 1;
16
- min-width: 0;
17
- border: 0;
18
- outline: 0;
19
- background: none;
20
- font: inherit;
21
- color: ${x.text};
22
- }
23
- `,xt=o.div`
24
- display: grid;
25
- grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
26
- gap: 10px;
27
-
28
- ${xe.maxWidth("mobile")} {
29
- grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
30
- }
31
- `,ye=o.span`
32
- height: 190px;
33
- border-radius: ${ot.card};
34
- `,je=o.button`
35
- position: relative;
36
- display: flex;
37
- flex-direction: column;
38
- gap: 6px;
39
- padding: 8px;
40
- background: ${x.bg};
41
- border: 1px solid ${x.line};
42
- border-radius: ${ot.card};
43
- text-align: left;
44
- font: inherit;
45
- color: ${x.text};
46
- cursor: pointer;
47
-
48
- &:hover:not(:disabled) {
49
- border-color: ${x.magenta};
50
- }
51
-
52
- &[data-selected] {
53
- border-color: ${x.accent};
54
- box-shadow: 0 0 0 1px ${x.accent};
55
- }
56
-
57
- &:disabled {
58
- opacity: 0.5;
59
- cursor: default;
60
- }
61
- `,ve=o.img`
62
- width: 100%;
63
- aspect-ratio: 1;
64
- object-fit: cover;
65
- border-radius: 8px;
66
- background: ${x.media};
67
- `,we=o.span`
68
- font-size: 13px;
69
- font-weight: 600;
70
- white-space: nowrap;
71
- overflow: hidden;
72
- text-overflow: ellipsis;
73
- `,$e=o.span`
74
- display: inline-flex;
75
- align-items: center;
76
- gap: 4px;
77
- font-size: 12px;
78
- color: ${x.muted};
79
- `,Se=o(M)`
80
- position: absolute;
81
- top: 12px;
82
- right: 12px;
83
- color: ${x.accent};
84
- background: ${x.bg};
85
- border-radius: 50%;
86
- `;function ke({selectedKeys:r,onPick:h,canPick:f}){const[p,g]=u.useState(""),[j,b]=u.useState("");u.useEffect(()=>{const d=setTimeout(()=>b(p.trim()),300);return()=>clearTimeout(d)},[p]);const{items:s,isLoading:k,isPlaceholderData:w,isError:T,hasNextPage:l,isFetchingNextPage:C,fetchNextPage:I}=he(["outfit-picker",j],d=>Qt({search:j||void 0,category:"wearable",onSale:!0,listingType:"primary",first:24,skip:d,sortBy:"cheapest"})),U=new Set,y=s.filter(d=>{if(!d.itemId)return!1;const $=`${d.contractAddress.toLowerCase()}-${d.itemId}`;return U.has($)?!1:(U.add($),!0)});return t.jsxs(ge,{"data-testid":"outfit-picker",children:[t.jsxs(be,{children:[t.jsx(M,{name:"search",color:st.colors.muted}),t.jsx("input",{value:p,placeholder:e("outfits.studio.searchPlaceholder"),"aria-label":e("outfits.studio.searchPlaceholder"),onChange:d=>g(d.target.value),"data-testid":"outfit-picker-search"})]}),T?t.jsx("p",{className:"muted small",children:e("outfits.errors.generic")}):k||w?t.jsx(xt,{"aria-busy":"true",children:Array.from({length:8},(d,$)=>t.jsx(ye,{className:"skeleton","aria-hidden":!0},$))}):y.length===0?t.jsx("p",{className:"muted small",children:e("outfits.studio.noResults")}):t.jsx(xt,{children:y.map(d=>{const $=`${d.contractAddress.toLowerCase()}-${d.itemId}`,R=r.has($);return t.jsxs(je,{type:"button","data-testid":"outfit-picker-item","data-selected":R||void 0,disabled:!R&&!f(d),onClick:()=>h(d),title:d.name,children:[t.jsx(ve,{src:d.thumbnail,alt:"",loading:"lazy"}),t.jsx(we,{children:d.name}),t.jsxs($e,{children:[t.jsx(X,{size:12}),d.priceCredits.toLocaleString()]}),R?t.jsx(Se,{name:"check-rounded",size:18}):null]},$)})}),!T&&!k&&!w?t.jsx(fe,{auto:!1,hasNextPage:!!l,isFetching:C,onLoadMore:()=>void I()}):null]})}const{colors:a,radius:v,media:W,z:Te}=st,Ct=o.div`
87
- max-width: 1200px;
88
- margin: 0 auto;
89
- display: flex;
90
- flex-direction: column;
91
- gap: 20px;
92
- `,z=o.div`
93
- min-height: 52vh;
94
- display: flex;
95
- flex-direction: column;
96
- align-items: center;
97
- justify-content: center;
98
- text-align: center;
99
- gap: 14px;
100
- `,gt=o.h1`
101
- font-size: 24px;
102
- `,It=o.div`
103
- display: flex;
104
- align-items: center;
105
- gap: 12px;
106
- `,Et=o.h1`
107
- font-size: 24px;
108
- font-weight: 800;
109
- margin-right: auto;
110
- `,Ce=o(O)`
111
- display: inline-flex;
112
- align-items: center;
113
- justify-content: center;
114
- width: 44px;
115
- height: 44px;
116
- border-radius: 50%;
117
- color: ${a.text};
118
-
119
- &:hover {
120
- background: ${a.panel};
121
- }
122
- `,Lt=o.span`
123
- font-size: 12px;
124
- font-weight: 700;
125
- text-transform: uppercase;
126
- letter-spacing: 0.03em;
127
- padding: 3px 10px;
128
- border-radius: ${v.pill};
129
- background: ${a.chip};
130
- color: ${a.muted1};
131
-
132
- &[data-state='published'] {
133
- background: rgba(30, 166, 114, 0.14);
134
- color: ${a.okStrong};
135
- }
136
- `,bt=o.div`
137
- display: flex;
138
- flex-direction: column;
139
- gap: 10px;
140
- `,Ie=o.span`
141
- height: 76px;
142
- border-radius: ${v.card};
143
- `,Ee=o.div`
144
- display: flex;
145
- align-items: center;
146
- gap: 14px;
147
- padding: 12px;
148
- border: 1px solid ${a.line};
149
- border-radius: ${v.card};
150
-
151
- ${W.maxWidth("mobile")} {
152
- flex-wrap: wrap;
153
- }
154
- `,Nt=vt`
155
- width: 52px;
156
- height: 52px;
157
- border-radius: 8px;
158
- background: ${a.media};
159
- flex-shrink: 0;
160
- `,Le=o.div`
161
- ${Nt};
162
- overflow: hidden;
163
-
164
- img {
165
- width: 100%;
166
- height: 100%;
167
- object-fit: cover;
168
- display: block;
169
- }
170
- `,Ne=o.span`
171
- ${Nt};
172
- display: inline-block;
173
- `,ze=o.div`
174
- flex: 1;
175
- min-width: 0;
176
- display: flex;
177
- flex-direction: column;
178
- gap: 4px;
179
- `,Re=o.span`
180
- font-size: 15px;
181
- font-weight: 700;
182
- white-space: nowrap;
183
- overflow: hidden;
184
- text-overflow: ellipsis;
185
- `,Pe=o.span`
186
- display: inline-flex;
187
- align-items: center;
188
- gap: 8px;
189
- font-size: 13px;
190
- color: ${a.muted};
191
- `,Oe=o.div`
192
- display: flex;
193
- align-items: center;
194
- gap: 8px;
195
-
196
- ${W.maxWidth("mobile")} {
197
- width: 100%;
198
- justify-content: flex-end;
199
- }
200
- `,Fe=o.button`
201
- display: inline-flex;
202
- align-items: center;
203
- justify-content: center;
204
- width: 44px;
205
- height: 44px;
206
- border: 0;
207
- background: none;
208
- border-radius: 50%;
209
- color: ${a.muted};
210
- cursor: pointer;
211
-
212
- &:hover {
213
- color: ${a.errStrong};
214
- background: ${a.panel};
215
- }
216
-
217
- &:disabled {
218
- opacity: 0.5;
219
- cursor: default;
220
- }
221
- `,Ae=o.div`
222
- position: fixed;
223
- inset: 0;
224
- z-index: ${Te.overlay};
225
- display: grid;
226
- place-items: center;
227
- padding: 16px;
228
- `,Be=o.div`
229
- position: absolute;
230
- inset: 0;
231
- background: rgba(22, 21, 24, 0.5);
232
- `,De=o.div`
233
- position: relative;
234
- background: ${a.bg};
235
- border-radius: ${v.card};
236
- padding: 24px;
237
- max-width: 420px;
238
- width: 100%;
239
- display: flex;
240
- flex-direction: column;
241
- gap: 12px;
242
- `,Me=o.h2`
243
- font-size: 18px;
244
- font-weight: 800;
245
- `,Ue=o.div`
246
- display: flex;
247
- flex-wrap: wrap;
248
- gap: 10px;
249
- margin-top: 6px;
250
- `,He=o.div`
251
- display: grid;
252
- grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
253
- gap: 32px;
254
- align-items: start;
255
-
256
- ${W.maxWidth("mobile")} {
257
- grid-template-columns: 1fr;
258
- gap: 20px;
259
- }
260
- `,_e=o.div`
261
- display: flex;
262
- flex-direction: column;
263
- gap: 18px;
264
- `,Ke=o.div`
265
- display: flex;
266
- flex-direction: column;
267
- gap: 18px;
268
- `,Ge=o.div`
269
- position: relative;
270
- aspect-ratio: 3 / 4;
271
- border-radius: 16px;
272
- overflow: hidden;
273
- background: ${a.media};
274
-
275
- ${W.maxWidth("mobile")} {
276
- aspect-ratio: 1 / 1;
277
- }
278
-
279
- & iframe {
280
- width: 100%;
281
- height: 100%;
282
- border: 0;
283
- display: block;
284
- }
285
-
286
- [data-preview-viewport] {
287
- position: absolute;
288
- inset: 0;
289
- pointer-events: none;
290
- }
291
- `,qe=o.p`
292
- position: absolute;
293
- inset: 0;
294
- display: grid;
295
- place-items: center;
296
- padding: 24px;
297
- text-align: center;
298
- `,L=o.div`
299
- display: flex;
300
- flex-direction: column;
301
- gap: 8px;
302
- `,N=o.label`
303
- font-size: 13px;
304
- font-weight: 700;
305
- letter-spacing: 0.04em;
306
- text-transform: uppercase;
307
- color: ${a.muted1};
308
- `,We=o.div`
309
- display: flex;
310
- gap: 8px;
311
- `,Qe=o.button`
312
- min-height: 44px;
313
- padding: 0 16px;
314
- border-radius: ${v.pill};
315
- border: 1px solid ${a.lineStrong};
316
- background: none;
317
- font: inherit;
318
- font-weight: 600;
319
- color: ${a.text};
320
- cursor: pointer;
321
-
322
- &[data-selected] {
323
- border-color: ${a.accent};
324
- background: ${a.accent};
325
- color: ${a.white};
326
- }
327
- `,Ve=o.div`
328
- width: 240px;
329
- aspect-ratio: 3 / 4;
330
- border-radius: ${v.card};
331
- overflow: hidden;
332
- background: ${a.media};
333
-
334
- &[data-busy] {
335
- opacity: 0.6;
336
- }
337
-
338
- img {
339
- width: 100%;
340
- height: 100%;
341
- object-fit: cover;
342
- display: block;
343
- }
344
- `,Je=o.div`
345
- display: flex;
346
- align-items: center;
347
- gap: 12px;
348
- flex-wrap: wrap;
349
- `,Ye=o.div`
350
- display: flex;
351
- align-items: center;
352
- gap: 8px;
353
- `,Xe=o.input`
354
- width: 44px;
355
- height: 44px;
356
- padding: 2px;
357
- border: 1px solid ${a.lineStrong};
358
- border-radius: ${v.btn};
359
- background: none;
360
- cursor: pointer;
361
-
362
- &::-webkit-color-swatch-wrapper {
363
- padding: 0;
364
- }
365
- &::-webkit-color-swatch {
366
- border: 0;
367
- border-radius: 4px;
368
- }
369
- `,Ze=o.div`
370
- display: flex;
371
- flex-direction: column;
372
- gap: 2px;
373
- font-size: 12px;
374
- color: ${a.muted};
375
- `,ti=o.input`
376
- width: 88px;
377
- height: 26px;
378
- padding: 0 6px;
379
- border: 1px solid ${a.line};
380
- border-radius: ${v.chip};
381
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
382
- font-size: 12px;
383
- color: ${a.text};
384
- text-transform: lowercase;
385
-
386
- &[data-invalid] {
387
- border-color: ${a.errStrong};
388
- }
389
- `,ei=o.div`
390
- width: 281px;
391
- max-width: 100%;
392
- `,ii=o(m)`
393
- align-self: flex-start;
394
- `,si=o.div`
395
- display: flex;
396
- align-items: stretch;
397
- gap: 8px;
398
-
399
- input {
400
- flex: 1;
401
- min-width: 0;
402
- }
403
- `,yt=o.input`
404
- height: 44px;
405
- padding: 0 14px;
406
- border: 1px solid ${a.lineStrong};
407
- border-radius: ${v.btn};
408
- font: inherit;
409
- color: ${a.text};
410
-
411
- &:focus {
412
- outline: 2px solid ${a.accent};
413
- outline-offset: -1px;
414
- }
415
- `,oi=o.ul`
416
- list-style: none;
417
- margin: 0;
418
- padding: 0;
419
- display: flex;
420
- flex-direction: column;
421
- gap: 6px;
422
- `,ai=o.li`
423
- display: flex;
424
- align-items: center;
425
- gap: 10px;
426
- padding: 6px 8px;
427
- border: 1px solid ${a.line};
428
- border-radius: ${v.card};
429
-
430
- &[data-missing] {
431
- opacity: 0.6;
432
- }
433
- `,zt=vt`
434
- width: 40px;
435
- height: 40px;
436
- border-radius: 8px;
437
- background: ${a.media};
438
- flex-shrink: 0;
439
- `,ni=o.img`
440
- ${zt};
441
- object-fit: cover;
442
- `,ri=o.span`
443
- ${zt};
444
- display: inline-block;
445
- `,di=o.span`
446
- flex: 1;
447
- min-width: 0;
448
- font-size: 14px;
449
- font-weight: 600;
450
- white-space: nowrap;
451
- overflow: hidden;
452
- text-overflow: ellipsis;
453
- `,li=o.span`
454
- display: inline-flex;
455
- align-items: center;
456
- gap: 4px;
457
- font-size: 13px;
458
- color: ${a.muted};
459
- white-space: nowrap;
460
- `,ui=o.div`
461
- display: flex;
462
- align-items: center;
463
- justify-content: space-between;
464
- padding-top: 10px;
465
- border-top: 1px solid ${a.line};
466
- font-size: 13px;
467
- font-weight: 700;
468
- `,ci=o.span`
469
- display: inline-flex;
470
- align-items: center;
471
- gap: 4px;
472
- font-size: 15px;
473
- font-weight: 700;
474
- `,pi=o.button`
475
- display: inline-flex;
476
- align-items: center;
477
- justify-content: center;
478
- width: 40px;
479
- height: 40px;
480
- border: 0;
481
- background: none;
482
- border-radius: 50%;
483
- color: ${a.muted};
484
- cursor: pointer;
485
-
486
- &:hover {
487
- color: ${a.errStrong};
488
- background: ${a.panel};
489
- }
490
- `,fi=o.div`
491
- display: flex;
492
- flex-direction: column;
493
- gap: 8px;
494
- padding-top: 16px;
495
- border-top: 1px solid ${a.line};
496
- `,hi=o.div`
497
- display: flex;
498
- flex-wrap: wrap;
499
- gap: 10px;
500
- `;function Ni(){const{id:r}=Gt(),{pathname:h}=qt(),f=q(b=>b.session),p=q(b=>b.signIn),g=Vt();Jt({title:e("outfits.studio.title"),noindex:!0});const j=h.endsWith("/new")?"new":r?"edit":"list";return g==="pending"?t.jsx(z,{"aria-busy":"true","data-testid":"outfit-studio-loading",children:t.jsx("span",{className:"spinner","aria-hidden":!0})}):f?g!=="creator"?t.jsxs(z,{"data-testid":"outfit-studio-unavailable",children:[t.jsx(gt,{children:e("outfits.studio.title")}),t.jsx("p",{className:"muted",children:e("outfits.studio.notAvailable")}),t.jsx(m,{as:O,to:"/overview",variant:"purple",children:e("outfits.studio.backToShop")})]}):j==="list"?t.jsx(xi,{}):t.jsx(yi,{outfitId:j==="edit"?r:null},r??"new"):t.jsxs(z,{"data-testid":"outfit-studio-signin",children:[t.jsx(gt,{children:e("outfits.studio.title")}),t.jsx("p",{className:"muted",children:e("outfits.studio.signInPrompt")}),t.jsx(m,{variant:"purple",onClick:()=>p(),children:e("outfits.studio.signIn")})]})}function mi({outfit:r}){const h=St(r.thumbnailHash);return h?t.jsx(Le,{style:{background:oe(r)},children:t.jsx("img",{src:h,alt:"",loading:"lazy"})}):t.jsx(Ne,{"aria-hidden":!0})}function xi(){const r=q(l=>l.session),h=wt(),[f,p]=u.useState(null),[g,j]=u.useState(null),{data:b=[],isLoading:s,isError:k,refetch:w}=$t({queryKey:["outfits-all"],enabled:!!r,staleTime:3e4,queryFn:()=>ce(r.identity)});async function T(l,C){if(r){j(l.id);try{C==="delete"?(await ae(l.id,r.identity),F.success(e("outfits.studio.deleted"))):(await kt({...it(l),published:!1},r.identity,"update"),F.success(e("outfits.studio.unpublished"))),Tt(h)}catch(I){I instanceof P||tt(I,{flow:`outfit-${C}`}),F.error(e(I instanceof P?et(I.code):"outfits.errors.generic"))}finally{j(null),p(null)}}}return t.jsxs(Ct,{"data-testid":"outfit-studio-list",children:[t.jsxs(It,{children:[t.jsx(Et,{children:e("outfits.studio.myOutfits")}),t.jsx(m,{as:O,to:"/outfits/new",variant:"purple","data-testid":"outfit-studio-new",children:e("outfits.studio.new")})]}),s?t.jsx(bt,{"aria-busy":"true",children:Array.from({length:3},(l,C)=>t.jsx(Ie,{className:"skeleton","aria-hidden":!0},C))}):k?t.jsxs(z,{children:[t.jsx(D,{message:e("outfits.errors.generic")}),t.jsx(m,{variant:"purple",onClick:()=>void w(),children:e("outfits.detail.retry")})]}):b.length===0?t.jsx("p",{className:"muted",children:e("outfits.studio.empty")}):t.jsx(bt,{children:b.map(l=>t.jsxs(Ee,{"data-testid":"outfit-studio-row","data-published":l.published||void 0,children:[t.jsx(mi,{outfit:l}),t.jsxs(ze,{children:[t.jsx(Re,{children:l.name||e("outfits.studio.untitled")}),t.jsxs(Pe,{children:[t.jsx(Lt,{"data-state":l.published?"published":"draft",children:l.published?e("outfits.studio.publishedState"):e("outfits.studio.draft")}),e("outfits.card.items",{count:l.items.length})]})]}),t.jsxs(Oe,{children:[l.published?t.jsx(m,{as:O,to:`/items/outfits/${l.id}`,variant:"ghost",size:"sm",children:e("outfits.studio.view")}):null,t.jsx(m,{as:O,to:`/outfits/${l.id}/edit`,variant:"outline",size:"sm","data-testid":"outfit-studio-edit",children:e("outfits.studio.edit")}),t.jsx(Fe,{type:"button","data-testid":"outfit-studio-delete","aria-label":e("outfits.studio.confirmDelete"),disabled:g===l.id,onClick:()=>p(l),children:t.jsx(M,{name:"trash",size:18})})]})]},l.id))}),f?t.jsxs(Ae,{role:"dialog","aria-modal":"true","aria-label":e("outfits.studio.deleteTitle"),"data-testid":"outfit-studio-confirm",children:[t.jsx(Be,{onClick:()=>p(null)}),t.jsxs(De,{children:[t.jsx(Me,{children:e("outfits.studio.deleteTitle")}),t.jsx("p",{className:"muted",children:e("outfits.studio.deleteBody")}),t.jsxs(Ue,{children:[f.published?t.jsx(m,{variant:"purple","data-testid":"outfit-studio-confirm-unpublish",disabled:g===f.id,onClick:()=>void T(f,"unpublish"),children:e("outfits.studio.unpublish")}):null,t.jsx(m,{variant:f.published?"outline":"purple","data-testid":"outfit-studio-confirm-delete",disabled:g===f.id,onClick:()=>void T(f,"delete"),children:e("outfits.studio.confirmDelete")}),t.jsx(m,{variant:"ghost",onClick:()=>p(null),children:e("outfits.studio.cancel")})]})]})]}):null]})}const jt=["image/png","image/jpeg","image/webp"];function gi(){return{id:crypto.randomUUID(),name:"",thumbnailHash:"",items:[],bodyShape:"unisex",gradientFrom:Z.from,gradientTo:Z.to,published:!1}}function it(r){return{id:r.id,name:r.name,thumbnailHash:r.thumbnailHash,items:r.items,bodyShape:r.bodyShape,gradientFrom:r.gradientFrom,gradientTo:r.gradientTo,published:r.published}}function bi(r){try{const h=sessionStorage.getItem(r);return h?JSON.parse(h):null}catch{return null}}function yi({outfitId:r}){const h=r===null,f=`outfit-draft:${r??"new"}`,p=q(i=>i.session),g=wt(),j=Wt(),[b]=u.useState(()=>bi(f)),[s,k]=u.useState(()=>b??(h?gi():null)),[w,T]=u.useState(!!b),{data:l,isLoading:C,isError:I,refetch:U}=$t({queryKey:["outfit",r,!0],enabled:!h&&!!p,staleTime:0,queryFn:()=>pe(r,p.identity)});u.useEffect(()=>{l&&k(i=>i??it(l))},[l]);function y(i){k(n=>n&&{...n,...i}),T(!0)}u.useEffect(()=>{if(!(!s||!w))try{sessionStorage.setItem(f,JSON.stringify(s))}catch{}},[s,w,f]),u.useEffect(()=>{if(!w)return;const i=n=>n.preventDefault();return window.addEventListener("beforeunload",i),()=>window.removeEventListener("beforeunload",i)},[w]),u.useEffect(()=>()=>sessionStorage.removeItem(f),[f]);const d=Yt(s??void 0),$=u.useMemo(()=>new Set(((s==null?void 0:s.items)??[]).map(B)),[s]),R=i=>ue((s==null?void 0:s.items)??[],i,d.byKey),at=i=>!!i.itemId&&R(i).length<=G;function Rt(i){!s||!at(i)||y({items:R(i)})}const[Pt,nt]=u.useState(null),E=u.useRef(null),Q=u.useRef(!0);u.useEffect(()=>(Q.current=!0,()=>{Q.current=!1}),[]);const[H,rt]=u.useState(!1),[Ot,_]=u.useState(null),[V,dt]=u.useState(""),[Ft,lt]=u.useState(null),[S,At]=u.useState();u.useEffect(()=>()=>{E.current&&URL.revokeObjectURL(E.current)},[]);function ut(){const i=de(V);if(!i){lt(e("outfits.studio.importError"));return}lt(null),dt(""),At(i.colors),y({items:i.items,...i.bodyShape?{bodyShape:i.bodyShape}:{}}),F.success(e("outfits.studio.importSuccess",{count:i.items.length}))}async function Bt(i){if(!i||!p)return;if(_(null),!jt.includes(i.type)){_(e("outfits.errors.unsupportedType"));return}if(i.size>ne){_(e("outfits.errors.tooLarge"));return}E.current&&URL.revokeObjectURL(E.current);const n=URL.createObjectURL(i);E.current=n,nt(n),rt(!0);try{const c=await re(i,p.identity);y({thumbnailHash:c})}catch(c){c instanceof P||tt(c,{flow:"outfit-thumbnail"}),_(e(c instanceof P?et(c.code):"outfits.errors.generic")),E.current&&(URL.revokeObjectURL(E.current),E.current=null),nt(null)}finally{rt(!1)}}const[A,ct]=u.useState(!1),[Dt,pt]=u.useState(null),J=!!s&&s.name.trim().length>0&&s.name.length<=60,Mt=!!s&&K(s.gradientFrom)&&K(s.gradientTo),ft=!!s&&J&&!!s.thumbnailHash&&Mt&&s.items.length>=Xt&&s.items.length<=G;async function Y(i){if(!(!p||!s||A)){ct(!0),pt(null);try{const n=await kt({...s,published:i},p.identity,h?"create":"update");if(!Q.current)return;sessionStorage.removeItem(f),k(it(n)),T(!1),Tt(g),i&&!s.published?(le("Shop Outfit Published",{outfit_id:n.id,item_count:n.items.length}),F.success(e("outfits.studio.publishedToast"))):F.success(e("outfits.studio.saved")),h&&(g.setQueryData(["outfit",n.id,!0],n),j(`/outfits/${n.id}/edit`,{replace:!0}))}catch(n){n instanceof P||tt(n,{flow:"outfit-save"}),pt(e(n instanceof P?et(n.code):"outfits.errors.generic"))}finally{ct(!1)}}}const ht=u.useMemo(()=>((s==null?void 0:s.items)??[]).map(i=>d.byKey.get(B(i))).map(i=>i?Zt(i):null).filter(i=>!!i),[s,d.byKey]),Ut=(s==null?void 0:s.bodyShape)==="female"?te:(s==null?void 0:s.bodyShape)==="male"?ee:void 0;if(!p)return null;if(!s)return I?t.jsxs(z,{children:[t.jsx(D,{message:e("outfits.errors.generic")}),t.jsx(m,{variant:"purple",onClick:()=>void U(),children:e("outfits.detail.retry")})]}):!C&&l===null?t.jsxs(z,{"data-testid":"outfit-studio-missing",children:[t.jsx("p",{className:"muted",children:e("outfits.errors.notFound")}),t.jsx(m,{as:O,to:"/outfits/manage",variant:"purple",children:e("outfits.studio.myOutfits")})]}):t.jsx(z,{"aria-busy":"true",children:t.jsx("span",{className:"spinner","aria-hidden":!0})});const mt=Pt??St(s.thumbnailHash),Ht={...s,authorAddress:(p==null?void 0:p.address)??"",createdAt:0,updatedAt:0},_t=s.items.reduce((i,n)=>{var c;return i+(((c=d.byKey.get(B(n)))==null?void 0:c.priceCredits)??0)},0);return t.jsxs(Ct,{"data-testid":"outfit-studio-editor",children:[t.jsxs(It,{children:[t.jsx(Ce,{to:"/outfits/manage","aria-label":e("outfits.studio.myOutfits"),"data-testid":"outfit-studio-back",children:t.jsx(M,{name:"arrow-left",size:18})}),t.jsx(Et,{children:h?e("outfits.studio.new"):e("outfits.studio.editTitle")}),t.jsx(Lt,{"data-state":s.published?"published":"draft",children:s.published?e("outfits.studio.publishedState"):e("outfits.studio.draft")})]}),t.jsxs(He,{children:[t.jsxs(_e,{children:[t.jsxs(Ge,{"data-testid":"outfit-studio-preview",style:{background:ie(s)},children:[t.jsx(me,{id:"outfit-studio-preview-frame",profile:"default",bodyShape:Ut,urns:ht,skin:S==null?void 0:S.skin,hair:S==null?void 0:S.hair,eyes:S==null?void 0:S.eyes,enabled:!d.isLoading}),ht.length===0&&!d.isLoading?t.jsx(qe,{className:"muted",children:e("outfits.studio.previewEmpty")}):null]}),t.jsxs(L,{children:[t.jsx(N,{as:"span",children:e("outfits.studio.bodyShape")}),t.jsx(We,{role:"group","aria-label":e("outfits.studio.bodyShape"),children:["unisex","male","female"].map(i=>t.jsx(Qe,{type:"button","data-selected":s.bodyShape===i||void 0,onClick:()=>y({bodyShape:i}),children:e(`outfits.studio.shape.${i}`)},i))})]}),t.jsxs(L,{children:[t.jsx(N,{as:"span",children:e("outfits.studio.gradient")}),t.jsx(Je,{children:["gradientFrom","gradientTo"].map(i=>t.jsxs(Ye,{children:[t.jsx(Xe,{type:"color",value:K(s[i])?s[i]:Z.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:n=>y({[i]:n.target.value.toLowerCase()})}),t.jsxs(Ze,{children:[t.jsx("span",{children:e(i==="gradientFrom"?"outfits.studio.gradientTop":"outfits.studio.gradientBottom")}),t.jsx(ti,{value:s[i],maxLength:7,spellCheck:!1,placeholder:"#000000","aria-label":e(i==="gradientFrom"?"outfits.studio.gradientTopHex":"outfits.studio.gradientBottomHex"),"data-invalid":!K(s[i])||void 0,onChange:n=>{const c=n.target.value.trim().toLowerCase();y({[i]:c.startsWith("#")||c===""?c:`#${c}`})}})]})]},i))}),t.jsx("p",{className:"muted small",children:e("outfits.studio.gradientHint")})]}),t.jsxs(L,{children:[t.jsx(N,{as:"span",children:e("outfits.studio.thumbnail")}),mt?t.jsx(Ve,{"data-busy":H||void 0,children:t.jsx("img",{src:mt,alt:""})}):null,t.jsxs(ii,{as:"label",variant:"outline",size:"sm","data-busy":H||void 0,children:[H?e("outfits.studio.uploading"):e("outfits.studio.upload"),t.jsx("input",{type:"file",accept:jt.join(","),hidden:!0,disabled:H,onChange:i=>{var n;return void Bt((n=i.target.files)==null?void 0:n[0])},"data-testid":"outfit-studio-thumb-input"})]}),t.jsx("p",{className:"muted small",children:e("outfits.studio.thumbnailHint")}),t.jsx(D,{message:Ot,testId:"outfit-studio-thumb-error"})]}),t.jsxs(L,{children:[t.jsx(N,{as:"span",children:e("outfits.studio.cardPreview")}),t.jsx(ei,{"data-testid":"outfit-studio-card-preview",onClickCapture:i=>{i.preventDefault(),i.stopPropagation()},children:t.jsx(se,{outfit:Ht,resolution:d})})]})]}),t.jsxs(Ke,{children:[t.jsxs(L,{children:[t.jsx(N,{htmlFor:"outfit-import",children:e("outfits.studio.import")}),t.jsxs(si,{children:[t.jsx(yt,{id:"outfit-import",value:V,spellCheck:!1,placeholder:e("outfits.studio.importPlaceholder"),onChange:i=>dt(i.target.value),onKeyDown:i=>{i.key==="Enter"&&ut()},"data-testid":"outfit-studio-import"}),t.jsx(m,{variant:"outline",size:"sm",onClick:ut,disabled:V.trim()==="","data-testid":"outfit-studio-import-apply",children:e("outfits.studio.importApply")})]}),t.jsx("p",{className:"muted small",children:e("outfits.studio.importHint")}),t.jsx(D,{message:Ft,testId:"outfit-studio-import-error"})]}),t.jsxs(L,{children:[t.jsx(N,{htmlFor:"outfit-name",children:e("outfits.studio.name")}),t.jsx(yt,{id:"outfit-name",value:s.name,maxLength:60,placeholder:e("outfits.studio.namePlaceholder"),onChange:i=>y({name:i.target.value}),"data-testid":"outfit-studio-name"})]}),t.jsxs(L,{children:[t.jsxs(N,{as:"span",children:[e("outfits.studio.items")," (",s.items.length,"/",G,")"]}),s.items.length===0?t.jsx("p",{className:"muted small",children:e("outfits.studio.noItems")}):t.jsx(oi,{children:s.items.map(i=>{const n=B(i),c=d.byKey.get(n);return t.jsxs(ai,{"data-testid":"outfit-studio-selected","data-missing":!c||void 0,children:[c?t.jsx(ni,{src:c.thumbnail,alt:""}):t.jsx(ri,{className:d.isLoading?"skeleton":void 0,"aria-hidden":!0}),t.jsx(di,{className:c?void 0:"muted",children:c?c.name:d.isLoading?"…":e("outfits.card.unavailable")}),c?t.jsxs(li,{children:[t.jsx(X,{size:12}),c.priceCredits.toLocaleString()]}):null,t.jsx(pi,{type:"button","aria-label":e("outfits.studio.remove"),title:e("outfits.studio.remove"),onClick:()=>y({items:s.items.filter(Kt=>B(Kt)!==n)}),children:t.jsx(M,{name:"trash",size:16})})]},n)})}),s.items.length>0?t.jsxs(ui,{"data-testid":"outfit-studio-total",children:[t.jsx("span",{children:e("outfits.detail.totalPrice")}),t.jsxs(ci,{children:[t.jsx(X,{size:14}),_t.toLocaleString()]})]}):null,s.items.length>=G?t.jsx("p",{className:"muted small",children:e("outfits.studio.maxItems")}):null]}),t.jsx(ke,{selectedKeys:$,onPick:Rt,canPick:at})]})]}),t.jsxs(fi,{"data-testid":"outfit-studio-savebar",children:[t.jsx(D,{message:Dt,testId:"outfit-studio-save-error"}),J?!ft&&!s.published?t.jsx("p",{className:"muted small",children:e("outfits.errors.notPublishable")}):null:t.jsx("p",{className:"muted small",children:e("outfits.studio.needName")}),t.jsxs(hi,{children:[t.jsx(m,{variant:"outline","data-testid":"outfit-studio-save",disabled:A||!J,onClick:()=>void Y(s.published),children:A?e("outfits.studio.saving"):e("outfits.studio.saveDraft")}),s.published?t.jsx(m,{variant:"purple","data-testid":"outfit-studio-unpublish",disabled:A,onClick:()=>void Y(!1),children:e("outfits.studio.unpublish")}):t.jsx(m,{variant:"purple","data-testid":"outfit-studio-publish",disabled:A||!ft,onClick:()=>void Y(!0),children:e("outfits.studio.publish")})]})]})]})}export{Ni as OutfitStudio,Ni as default};
@@ -1,9 +0,0 @@
1
- import{f as F,g as be}from"./react-DehiWSvs.js";import{bS as Pe,c9 as ue,ac as ge,ca as Te,bQ as Re,cb as Oe,aa as $e,ab as z,cc as ie,cd as Ce,ce as we,cf as Ae,cg as Me,f as Fe,T as je}from"./index-C50bRdDg.js";const qe=Object.freeze(Object.defineProperty({__proto__:null,default:Pe,isPlainObject:ue},Symbol.toStringTag,{value:"Module"})),Le=Object.freeze(Object.defineProperty({__proto__:null,default:ge},Symbol.toStringTag,{value:"Module"})),Ne=Object.freeze(Object.defineProperty({__proto__:null,default:Te,private_createBreakpoints:Re,unstable_applyStyles:Oe},Symbol.toStringTag,{value:"Module"})),Ie=["sx"],We=e=>{var r,s;const o={systemProps:{},otherProps:{}},i=(r=e==null||(s=e.theme)==null?void 0:s.unstable_sxConfig)!=null?r:ie;return Object.keys(e).forEach(a=>{i[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function De(e){const{sx:r}=e,s=$e(e,Ie),{systemProps:o,otherProps:i}=We(s);let a;return Array.isArray(r)?a=[o,...r]:typeof r=="function"?a=(...h)=>{const v=r(...h);return ue(v)?z({},o,v):o}:a=z({},o,r),z({},i,{sx:a})}const Ye=Object.freeze(Object.defineProperty({__proto__:null,default:Ce,extendSxProp:De,unstable_createStyleFunctionSx:we,unstable_defaultSxConfig:ie},Symbol.toStringTag,{value:"Module"})),K=e=>e,ke=()=>{let e=K;return{configure(r){e=r},generate(r){return e(r)},reset(){e=K}}},Ve=ke(),ze={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ue(e,r,s="Mui"){const o=ze[r];return o?`${s}-${o}`:`${Ve.generate(e)}-${r}`}function dt(e,r,s="Mui"){const o={};return r.forEach(i=>{o[i]=Ue(e,i,s)}),o}var U={exports:{}},u={};/**
2
- * @license React
3
- * react-is.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var ee;function Ge(){if(ee)return u;ee=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),D=Symbol.for("react.view_transition"),Y=Symbol.for("react.client.reference");function p(t){if(typeof t=="object"&&t!==null){var j=t.$$typeof;switch(j){case e:switch(t=t.type,t){case s:case i:case o:case O:case $:case D:return t;default:switch(t=t&&t.$$typeof,t){case h:case v:case C:case T:return t;case a:return t;default:return j}}case r:return j}}}return u.ContextConsumer=a,u.ContextProvider=h,u.Element=e,u.ForwardRef=v,u.Fragment=s,u.Lazy=C,u.Memo=T,u.Portal=r,u.Profiler=i,u.StrictMode=o,u.Suspense=O,u.SuspenseList=$,u.isContextConsumer=function(t){return p(t)===a},u.isContextProvider=function(t){return p(t)===h},u.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===e},u.isForwardRef=function(t){return p(t)===v},u.isFragment=function(t){return p(t)===s},u.isLazy=function(t){return p(t)===C},u.isMemo=function(t){return p(t)===T},u.isPortal=function(t){return p(t)===r},u.isProfiler=function(t){return p(t)===i},u.isStrictMode=function(t){return p(t)===o},u.isSuspense=function(t){return p(t)===O},u.isSuspenseList=function(t){return p(t)===$},u.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===s||t===i||t===o||t===O||t===$||typeof t=="object"&&t!==null&&(t.$$typeof===C||t.$$typeof===T||t.$$typeof===h||t.$$typeof===a||t.$$typeof===v||t.$$typeof===Y||t.getModuleId!==void 0)},u.typeOf=p,u}var te;function Be(){return te||(te=1,U.exports=Ge()),U.exports}var re=Be();const He=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function le(e){const r=`${e}`.match(He);return r&&r[1]||""}function ce(e,r=""){return e.displayName||e.name||le(e)||r}function ne(e,r,s){const o=ce(r);return e.displayName||(o!==""?`${s}(${o})`:s)}function Qe(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ce(e,"Component");if(typeof e=="object")switch(e.$$typeof){case re.ForwardRef:return ne(e,e.render,"ForwardRef");case re.Memo:return ne(e,e.type,"memo");default:return}}}const Xe=Object.freeze(Object.defineProperty({__proto__:null,default:Qe,getFunctionName:le},Symbol.toStringTag,{value:"Module"}));function pt(e,r,s=void 0){const o={};return Object.keys(e).forEach(i=>{o[i]=e[i].reduce((a,h)=>{if(h){const v=r(h);v!==""&&a.push(v),s&&s[h]&&a.push(s[h])}return a},[]).join(" ")}),o}var R={},G={exports:{}},oe;function Ze(){return oe||(oe=1,(function(e){function r(){return e.exports=r=Object.assign?Object.assign.bind():function(s){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var a in i)({}).hasOwnProperty.call(i,a)&&(s[a]=i[a])}return s},e.exports.__esModule=!0,e.exports.default=e.exports,r.apply(null,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(G)),G.exports}var B={exports:{}},se;function Je(){return se||(se=1,(function(e){function r(s,o){if(s==null)return{};var i={};for(var a in s)if({}.hasOwnProperty.call(s,a)){if(o.indexOf(a)!==-1)continue;i[a]=s[a]}return i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(B)),B.exports}const Ke=F(Ae),et=F(qe),tt=F(Le),rt=F(Xe),nt=F(Ne),ot=F(Ye);var ae;function st(){if(ae)return R;ae=1;var e=Me();Object.defineProperty(R,"__esModule",{value:!0}),R.default=ye,R.shouldForwardProp=p,R.systemDefaultTheme=void 0;var r=e(Ze()),s=e(Je()),o=C(Ke),i=et;e(tt),e(rt);var a=e(nt),h=e(ot);const v=["ownerState"],O=["variants"],$=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function T(n){if(typeof WeakMap!="function")return null;var c=new WeakMap,l=new WeakMap;return(T=function(d){return d?l:c})(n)}function C(n,c){if(n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var l=T(c);if(l&&l.has(n))return l.get(n);var d={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in n)if(f!=="default"&&Object.prototype.hasOwnProperty.call(n,f)){var y=E?Object.getOwnPropertyDescriptor(n,f):null;y&&(y.get||y.set)?Object.defineProperty(d,f,y):d[f]=n[f]}return d.default=n,l&&l.set(n,d),d}function D(n){return Object.keys(n).length===0}function Y(n){return typeof n=="string"&&n.charCodeAt(0)>96}function p(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}function t(n,c){return c&&n&&typeof n=="object"&&n.styles&&!n.styles.startsWith("@layer")&&(n.styles=`@layer ${c}{${String(n.styles)}}`),n}const j=R.systemDefaultTheme=(0,a.default)(),de=n=>n&&n.charAt(0).toLowerCase()+n.slice(1);function L({defaultTheme:n,theme:c,themeId:l}){return D(c)?n:c[l]||c}function pe(n){return n?(c,l)=>l[n]:null}function N(n,c,l){let{ownerState:d}=c,E=(0,s.default)(c,v);const f=typeof n=="function"?n((0,r.default)({ownerState:d},E)):n;if(Array.isArray(f))return f.flatMap(y=>N(y,(0,r.default)({ownerState:d},E),l));if(f&&typeof f=="object"&&Array.isArray(f.variants)){const{variants:y=[]}=f;let _=(0,s.default)(f,O);return y.forEach(m=>{let w=!0;if(typeof m.props=="function"?w=m.props((0,r.default)({ownerState:d},E,d)):Object.keys(m.props).forEach(b=>{(d==null?void 0:d[b])!==m.props[b]&&E[b]!==m.props[b]&&(w=!1)}),w){Array.isArray(_)||(_=[_]);const b=typeof m.style=="function"?m.style((0,r.default)({ownerState:d},E,d)):m.style;_.push(l?t((0,o.internal_serializeStyles)(b),l):b)}}),_}return l?t((0,o.internal_serializeStyles)(f),l):f}function ye(n={}){const{themeId:c,defaultTheme:l=j,rootShouldForwardProp:d=p,slotShouldForwardProp:E=p}=n,f=y=>(0,h.default)((0,r.default)({},y,{theme:L((0,r.default)({},y,{defaultTheme:l,themeId:c}))}));return f.__mui_systemSx=!0,(y,k={})=>{(0,o.internal_processStyles)(y,S=>S.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:_,slot:m,skipVariantsResolver:w,skipSx:b,overridesResolver:H=pe(de(m))}=k,me=(0,s.default)(k,$),_e=_&&_.startsWith("Mui")||m?"components":"custom",he=w!==void 0?w:m&&m!=="Root"&&m!=="root"||!1,Se=b||!1;let ve,I=p;m==="Root"||m==="root"?I=d:m?I=E:Y(y)&&(I=void 0);const V=(0,o.default)(y,(0,r.default)({shouldForwardProp:I,label:ve},me)),Q=S=>typeof S=="function"&&S.__emotion_real!==S||(0,i.isPlainObject)(S)?P=>{const A=L({theme:P.theme,defaultTheme:l,themeId:c});return N(S,(0,r.default)({},P,{theme:A}),A.modularCssLayers?_e:void 0)}:S,X=(S,...P)=>{let A=Q(S);const q=P?P.map(Q):[];_&&H&&q.push(g=>{const x=L((0,r.default)({},g,{defaultTheme:l,themeId:c}));if(!x.components||!x.components[_]||!x.components[_].styleOverrides)return null;const M=x.components[_].styleOverrides,W={};return Object.entries(M).forEach(([xe,Ee])=>{W[xe]=N(Ee,(0,r.default)({},g,{theme:x}),x.modularCssLayers?"theme":void 0)}),H(g,W)}),_&&!he&&q.push(g=>{var x;const M=L((0,r.default)({},g,{defaultTheme:l,themeId:c})),W=M==null||(x=M.components)==null||(x=x[_])==null?void 0:x.variants;return N({variants:W},(0,r.default)({},g,{theme:M}),M.modularCssLayers?"theme":void 0)}),Se||q.push(f);const Z=q.length-P.length;if(Array.isArray(S)&&Z>0){const g=new Array(Z).fill("");A=[...S,...g],A.raw=[...S.raw,...g]}const J=V(A,...q);return y.muiName&&(J.muiName=y.muiName),J};return V.withConfig&&(X.withConfig=V.withConfig),X}}return R}var at=st();const ut=be(at);function it(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const lt=e=>it(e)&&e!=="classes",yt=ut({themeId:je,defaultTheme:Fe,rootShouldForwardProp:lt});function fe(e){var r,s,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(r=0;r<i;r++)e[r]&&(s=fe(e[r]))&&(o&&(o+=" "),o+=s)}else for(s in e)e[s]&&(o&&(o+=" "),o+=s);return o}function mt(){for(var e,r,s=0,o="",i=arguments.length;s<i;s++)(e=arguments[s])&&(r=fe(e))&&(o&&(o+=" "),o+=r);return o}export{Ve as C,dt as a,pt as b,mt as c,ze as d,De as e,Ke as f,Ue as g,it as h,lt as r,yt as s};
@@ -1 +0,0 @@
1
- import{a9 as k,aa as A,ab as C,ac as P,aT as O,aU as U,aV as B,aW as M,aX as V,aY as D,aZ as q,a_ as W}from"./index-C50bRdDg.js";import{r as y,j as N}from"./react-DehiWSvs.js";import{g as G,a as L,c as X,b as Y,s as Z}from"./clsx-Dp2xNKFR.js";function H(o){return G("MuiSvgIcon",o)}L("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const J=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],K=o=>{const{color:e,fontSize:r,classes:a}=o,t={root:["root",e!=="inherit"&&`color${P(e)}`,`fontSize${P(r)}`]};return Y(t,H,a)},Q=Z("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,r.color!=="inherit"&&e[`color${P(r.color)}`],e[`fontSize${P(r.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var r,a,t,l,d,m,g,f,u,i,p,h,c;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=o.transitions)==null||(a=r.create)==null?void 0:a.call(r,"fill",{duration:(t=o.transitions)==null||(t=t.duration)==null?void 0:t.shorter}),fontSize:{inherit:"inherit",small:((l=o.typography)==null||(d=l.pxToRem)==null?void 0:d.call(l,20))||"1.25rem",medium:((m=o.typography)==null||(g=m.pxToRem)==null?void 0:g.call(m,24))||"1.5rem",large:((f=o.typography)==null||(u=f.pxToRem)==null?void 0:u.call(f,35))||"2.1875rem"}[e.fontSize],color:(i=(p=(o.vars||o).palette)==null||(p=p[e.color])==null?void 0:p.main)!=null?i:{action:(h=(o.vars||o).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.disabled,inherit:void 0}[e.color]}}),ee=y.forwardRef(function(e,r){const a=k({props:e,name:"MuiSvgIcon"}),{children:t,className:l,color:d="inherit",component:m="svg",fontSize:g="medium",htmlColor:f,inheritViewBox:u=!1,titleAccess:i,viewBox:p="0 0 24 24"}=a,h=A(a,J),c=y.isValidElement(t)&&t.type==="svg",s=C({},a,{color:d,component:m,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:c}),n={};u||(n.viewBox=p);const v=K(s);return N.jsxs(Q,C({as:m,className:X(v.root,l),focusable:"false",color:f,"aria-hidden":i?void 0:!0,role:i?"img":void 0,ref:r},n,h,c&&t.props,{ownerState:s,children:[c?t.props.children:t,i?N.jsx("title",{children:i}):null]}))});ee.muiName="SvgIcon";var te=O,oe=function(e){return e!=="theme"},T=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?te:oe},E=function(e,r,a){var t;if(r){var l=r.shouldForwardProp;t=e.__emotion_forwardProp&&l?function(d){return e.__emotion_forwardProp(d)&&l(d)}:l}return typeof t!="function"&&a&&(t=e.__emotion_forwardProp),t},re=function(e){var r=e.cache,a=e.serialized,t=e.isStringTag;return D(r,a,t),q(function(){return W(r,a,t)}),null},ae=function o(e,r){var a=e.__emotion_real===e,t=a&&e.__emotion_base||e,l,d;r!==void 0&&(l=r.label,d=r.target);var m=E(e,r,a),g=m||T(t),f=!g("as");return function(){var u=arguments,i=a&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(l!==void 0&&i.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)i.push.apply(i,u);else{var p=u[0];i.push(p[0]);for(var h=u.length,c=1;c<h;c++)i.push(u[c],p[c])}var s=U(function(n,v,_){var z=f&&n.as||t,S="",$=[],b=n;if(n.theme==null){b={};for(var I in n)b[I]=n[I];b.theme=y.useContext(B)}typeof n.className=="string"?S=M(v.registered,$,n.className):n.className!=null&&(S=n.className+" ");var F=V(i.concat($),v.registered,b);S+=v.key+"-"+F.name,d!==void 0&&(S+=" "+d);var j=f&&m===void 0?T(z):g,w={};for(var x in n)f&&x==="as"||j(x)&&(w[x]=n[x]);return w.className=S,_&&(w.ref=_),y.createElement(y.Fragment,null,y.createElement(re,{cache:v,serialized:F,isStringTag:typeof z=="string"}),y.createElement(z,w))});return s.displayName=l!==void 0?l:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",s.defaultProps=e.defaultProps,s.__emotion_real=s,s.__emotion_base=t,s.__emotion_styles=i,s.__emotion_forwardProp=m,Object.defineProperty(s,"toString",{value:function(){return"."+d}}),s.withComponent=function(n,v){var _=o(n,C({},r,v,{shouldForwardProp:E(s,v,!0)}));return _.apply(void 0,i)},s}},ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],R=ae.bind(null);ne.forEach(function(o){R[o]=R(o)});export{ee as S,R as n};