@dcl/shop 0.6.2-30958394678.commit-3968c2a → 0.6.2-30962062551.commit-60f59d7
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-3zyI1IRX.js → Activity-8jgSJ-5a.js} +6 -6
- package/_assets/{AnimatedBackground-nIupuP8l.js → AnimatedBackground-BiLr0OAr.js} +1 -1
- package/_assets/{Assets-BI3c9ohq.js → Assets-CEPt9Wgq.js} +10 -10
- package/_assets/{Assets.styles-9ki_t5x3.js → Assets.styles-BV05fk07.js} +1 -1
- package/_assets/{Authorizations-DXc8lpwm.js → Authorizations-Bk5NvKto.js} +3 -3
- package/_assets/{Cart-DuHl9E6I.js → Cart-BsU_4z3_.js} +10 -10
- package/_assets/{CircularProgress-U_mjuju1.js → CircularProgress-ClS-mihM.js} +5 -5
- package/_assets/{Collection-CIcLTFPZ.js → Collection-CddvYjbv.js} +9 -9
- package/_assets/{CollectionCarousel-B7TB_OMj.js → CollectionCarousel-BZ1rY7df.js} +13 -13
- package/_assets/{Creator-BFMpAq2T.js → Creator-VqM3vs1z.js} +10 -10
- package/_assets/{ErrorNotice-B5gvtysl.js → ErrorNotice-CyiptEa7.js} +1 -1
- package/_assets/{ExchangeController-Chujc587.js → ExchangeController-Bzvk5eWQ.js} +1 -1
- package/_assets/{GetCredits-DUE68Ofv.js → GetCredits-CUEWEysN.js} +6 -6
- package/_assets/Grow-DmwDKR8X.js +1 -0
- package/_assets/{HelpersUtil-DzsKL2ac.js → HelpersUtil-CSn6RRWm.js} +1 -1
- package/_assets/{ItemDetail-Ch7JVJ39.js → ItemDetail-DwFhXtAU.js} +19 -19
- package/_assets/LazyEmoteControls-C04wPJag.js +2 -0
- package/_assets/{LoadMore-BO9-NgF0.js → LoadMore-DhMl82KM.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-LfXG3P0z.js → ManaPricingBanner.styles-CNL9sVyd.js} +1 -1
- package/_assets/{MyAssets-DVZ_pZXb.js → MyAssets-sD3RlLbg.js} +1 -1
- package/_assets/{MyFavorites-CbvKYAiN.js → MyFavorites-C2SzF25q.js} +1 -1
- package/_assets/{NotFound-B3230xyR.js → NotFound-e-_KxlkB.js} +1 -1
- package/_assets/NotificationsBell-Cea5SV09.js +141 -0
- package/_assets/{OutfitDetail-DQa5i9Jk.js → OutfitDetail-7yuensb7.js} +8 -8
- package/_assets/{OutfitPreview-D4-9krF1.js → OutfitPreview-jTckZ13F.js} +2 -2
- package/_assets/{OutfitStudio-8RdjVeCY.js → OutfitStudio-CfM5nGNL.js} +17 -17
- package/_assets/{StoreSettings-DWBD4fbU.js → StoreSettings-BtSz4kXE.js} +5 -5
- package/_assets/{Success-Couk7Hdv.js → Success-LeAAWyNA.js} +1 -1
- package/_assets/{SwapController-k6QIzYEE.js → SwapController-fEbuc6l-.js} +1 -1
- package/_assets/{Tooltip-BQX-SlPA.js → Tooltip-Bt1xTSZ8.js} +1 -1
- package/_assets/{TradeService-mV7WtrBG.js → TradeService-DNPpThZ7.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-DrpRVilu.js → W3MFrameProviderSingleton-Binytfp9.js} +3 -3
- package/_assets/{WebCryptoP256-CMlkql0I.js → WebCryptoP256-DgSBDO0u.js} +1 -1
- package/_assets/{authorizations-CtiOXVNn.js → authorizations-C_Tm5Y68.js} +1 -1
- package/_assets/{basic-DdbQHLj0.js → basic-BruKgjTy.js} +1 -1
- package/_assets/{biconomy-2kmLuYrH.js → biconomy-Bip21UTy.js} +1 -1
- package/_assets/{builder-Be5eHY-S.js → builder-gKkHqQW4.js} +1 -1
- package/_assets/{buy-Bm7LPL_y.js → buy-e7Mj-c4D.js} +1 -1
- package/_assets/{buy-gasless-Cna5Um4K.js → buy-gasless-CKKxe9I0.js} +1 -1
- package/_assets/{categories-B0u9Kgh7.js → categories-BZTqLeq0.js} +1 -1
- package/_assets/{ccip-DGfiuVqj.js → ccip-DxAaefaL.js} +1 -1
- package/_assets/{ccip-Ci5E3IwV.js → ccip-_dHEg53x.js} +1 -1
- package/_assets/collectionPage.styles-d2_ZXGM9.js +48 -0
- package/_assets/{controller-DsSvMbNo.js → controller-R-_3c6je.js} +2 -2
- package/_assets/{core-Cq1jU2ZC.js → core-opZreyBn.js} +4 -4
- package/_assets/createSvgIcon-Bcodx_4R.js +74 -0
- package/_assets/{custom-C3YA4NkW.js → custom-CG7h1-86.js} +1 -1
- package/_assets/{data-capture-CEkcLxes.js → data-capture-CAYwKR8J.js} +1 -1
- package/_assets/{email-Dsb8bC4V.js → email-DdGSICgn.js} +1 -1
- package/_assets/{embedded-wallet-DYwTFWHC.js → embedded-wallet-BwI75LEa.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-CXHuvzN7.js → emotion-styled.browser.esm-CQiqY7Kq.js} +1 -1
- package/_assets/{engine-CRG7y_Dc.js → engine-RVittIJs.js} +1 -1
- package/_assets/{errors-md0_v65i.js → errors-CPtHy7ml.js} +1 -1
- package/_assets/{estimate-l1-fee-pM-7mo0C.js → estimate-l1-fee-DLv2rele.js} +1 -1
- package/_assets/{execute-By-QAyMu.js → execute-BM6SpNXE.js} +2 -2
- package/_assets/{features-CE9fos6_.js → features-BMWcyUjS.js} +1 -1
- package/_assets/{fetchTokenMetadata-CCRHppyJ.js → fetchTokenMetadata-DTIkWXyH.js} +2 -2
- package/_assets/{field.styles-I7yK67N6.js → field.styles-Bzdc6lLU.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-CfkIBkrv.js → get-ecosystem-wallet-info-CLLRIQau.js} +1 -1
- package/_assets/{getBalance-r2d5SR8J.js → getBalance-C1w8qzZ3.js} +1 -1
- package/_assets/{getNFT-DJwtmi5E.js → getNFT-C17Ty-77.js} +1 -1
- package/_assets/{getNFT-CdMO9Qsb.js → getNFT-iSGXoSCZ.js} +1 -1
- package/_assets/{grid.styles-nOJmORwE.js → grid.styles-DnJBwJyN.js} +1 -1
- package/_assets/{hashTypedData-Cn4NLSva.js → hashTypedData-B8loOfgu.js} +1 -1
- package/_assets/{hashTypedData-BUyuoUS1.js → hashTypedData-BnbZgBbn.js} +1 -1
- package/_assets/{in-app-Bbyp_hac.js → in-app-Dgar2quY.js} +1 -1
- package/_assets/{in-app-wallet-calls-B-gR9DjX.js → in-app-wallet-calls-CVFk1iyX.js} +1 -1
- package/_assets/{index-CT-IhRIi.js → index-2oyT-wOQ.js} +1 -1
- package/_assets/{index-DItNTWlM.js → index-5YpRyO2D.js} +1 -1
- package/_assets/{index-BLT6_sje.js → index-9KQ4qngH.js} +2 -2
- package/_assets/{index-ClooG4VA.js → index-B2fnQBZO.js} +1 -1
- package/_assets/{index-BF64P65M.js → index-B77yIQdd.js} +1 -1
- package/_assets/{index-Cjv0VYHk.js → index-B8z9fijc.js} +1 -1
- package/_assets/index-BA_POXgF.js +2 -0
- package/_assets/{index-8KyAMGS-.js → index-BC4QdzZu.js} +3 -3
- package/_assets/{index-C4paiR8G.js → index-BGes3U0-.js} +1 -1
- package/_assets/{index-DVtU3QsJ.js → index-BJp_uKbu.js} +1 -1
- package/_assets/{index-BmI_VY2L.js → index-BMjEKuGZ.js} +1 -1
- package/_assets/{index-wYE8B-zV.js → index-BOhPMUqP.js} +1 -1
- package/_assets/{index-M6ot6iel.js → index-BQZzriH4.js} +14 -14
- package/_assets/{index-Cqxr1K7X.js → index-BScXg_xS.js} +1 -1
- package/_assets/{index-BLLKqfcD.js → index-BYhRYzxz.js} +2 -2
- package/_assets/{index-CxyxAB7h.js → index-BoaSg3Ei.js} +1 -1
- package/_assets/{index-Dz2HX_tG.js → index-BqzFKBKA.js} +1 -1
- package/_assets/{index-2hXh3Lug.js → index-C0mKV1jT.js} +1 -1
- package/_assets/index-C1_8mfgf.js +1 -0
- package/_assets/{index-CHP45HLF.js → index-C3UmaT-x.js} +1 -1
- package/_assets/{index-BSPthC5D.js → index-C5uZx9Q_.js} +1 -1
- package/_assets/{index-CFNN4IQh.js → index-C8iEZyPu.js} +1 -1
- package/_assets/{index-2aeigaSb.js → index-CAWrjGGY.js} +1 -1
- package/_assets/{index-CKh-MxqM.js → index-CC8kBYLp.js} +1 -1
- package/_assets/{index-cNFvNcyv.js → index-CLiBA7-Y.js} +1 -1
- package/_assets/{index-DWFeJSdC.js → index-CRPftrn9.js} +1 -1
- package/_assets/{index-B-vjn9pq.js → index-CUbSu9JD.js} +1 -1
- package/_assets/{index-DBKr5jDP.js → index-CVsFBRi4.js} +390 -330
- package/_assets/{index-YodNRE0F.js → index-CWk2GBNA.js} +1 -1
- package/_assets/{index-CrL-oicn.js → index-Cd8-vSdJ.js} +1 -1
- package/_assets/{index-40kmd_aK.js → index-Cfgjph7M.js} +3 -3
- package/_assets/{index-Dvtk0M13.js → index-CgjlvAiL.js} +1 -1
- package/_assets/{index-nD_B3x2a.js → index-CvxpFfRo.js} +1 -1
- package/_assets/{index-7y51FKRL.js → index-CyDHSPgK.js} +1 -1
- package/_assets/{index-BRg1smL5.js → index-D1uz-T9B.js} +1 -1
- package/_assets/{index-o26JQUSX.js → index-D7vDV__Q.js} +1 -1
- package/_assets/{index-42pSYxn6.js → index-DUCernGu.js} +1 -1
- package/_assets/{index-CyPEmEh2.js → index-DVgsl_NW.js} +1 -1
- package/_assets/{index-DzE64ywR.js → index-DcxtlclQ.js} +1 -1
- package/_assets/{index-g_bSpYWE.js → index-DkN1a5Qm.js} +1 -1
- package/_assets/{index-CGvsSnH5.js → index-Dyr40Mqv.js} +2 -2
- package/_assets/{index-BF0WiBHh.js → index-GCDXOi1M.js} +1 -1
- package/_assets/{index-C_2RtD-k.js → index-I9UkC2fI.js} +3 -3
- package/_assets/{index-UVas8o3a.js → index-Ij-UQse4.js} +1 -1
- package/_assets/{index-DD3YA4Xc.js → index-VqNFt8Pb.js} +1 -1
- package/_assets/{index-BVV_fmte.js → index-WQPCInz9.js} +1 -1
- package/_assets/{index-CN7oQ8au.js → index-XbJTwbuN.js} +1 -1
- package/_assets/index-aFZnnRfg.js +12 -0
- package/_assets/{index-BmXWASOw.js → index-f4YnP6fN.js} +1 -1
- package/_assets/{index-BRbJkxhy.js → index-meujUoJx.js} +1 -1
- package/_assets/{index-C74Kz078.js → index-oPgDYeWk.js} +1 -1
- package/_assets/{index-CoQL2VdI.js → index-ugGvSkAe.js} +1 -1
- package/_assets/{index.es-BjABjHDS.js → index.es-BlZXgezC.js} +1 -1
- package/_assets/{index.es-CjrBlA2t.js → index.es-CYCaSMwc.js} +4 -4
- package/_assets/{index.es-AvY6da-n.js → index.es-s0Hmc7fm.js} +1 -1
- package/_assets/{localBatchGatewayRequest-DASiMtj6.js → localBatchGatewayRequest-UgshUPuG.js} +1 -1
- package/_assets/{networks-C8ez-bvH.js → networks-CZF7Qxbs.js} +1 -1
- package/_assets/{onramp-Mm39n2H9.js → onramp-C9bGIKHb.js} +1 -1
- package/_assets/{openzeppelin-DM4th0ON.js → openzeppelin-CSrNq9pP.js} +1 -1
- package/_assets/{parseNft-jU70OzWf.js → parseNft-BQNcBpVq.js} +2 -2
- package/_assets/{parseSignature-Vz1kWqBf.js → parseSignature-D-03H70X.js} +1 -1
- package/_assets/{parseSignature-DgPEk7JG.js → parseSignature-gV81tN-5.js} +3 -3
- package/_assets/{passkeys-DUP0d8Zb.js → passkeys-sUyzh-MT.js} +1 -1
- package/_assets/{pay-with-exchange-bcJ8587x.js → pay-with-exchange-DMmJSHmu.js} +1 -1
- package/_assets/{qr-overlay-BgqdrAQN.js → qr-overlay-iZBJQsGv.js} +1 -1
- package/_assets/{receive-DLQ1rgxk.js → receive-BgqqK_yn.js} +1 -1
- package/_assets/{resolveImplementation-D5VOTogv.js → resolveImplementation-DjcY2xD-.js} +1 -1
- package/_assets/{rpc-CZqGf5Pw.js → rpc-BTvF8F3y.js} +1 -1
- package/_assets/{secp256k1-CeIqoHzM.js → secp256k1-CDcnlJh0.js} +1 -1
- package/_assets/{secp256k1-DFodyUE2.js → secp256k1-ChfZyie7.js} +1 -1
- package/_assets/{secp256k1-wpoFdYyv.js → secp256k1-DTBjgGBV.js} +1 -1
- package/_assets/{send-5wSIIKSl.js → send-CGQ4BXfF.js} +1 -1
- package/_assets/{send-batch-transaction-BsHJzRR6.js → send-batch-transaction-B1zqqdov.js} +1 -1
- package/_assets/{send-eip712-transaction-CfdZenAu.js → send-eip712-transaction-C47HX6Y3.js} +2 -2
- package/_assets/{send-gasless-transaction-DdUHdO7Q.js → send-gasless-transaction-CMn5Dbj9.js} +2 -2
- package/_assets/{send-transaction-BI-LBwbQ.js → send-transaction-0UGyfIrO.js} +2 -2
- package/_assets/{sendMetaTransaction-DZqdC6fw.js → sendMetaTransaction-DEEpoFiw.js} +1 -1
- package/_assets/{sendRawTransaction-BHUyxFbw.js → sendRawTransaction-BWBNamdz.js} +3 -3
- package/_assets/{serializeTransaction-ByXeuyQy.js → serializeTransaction--SYG4ucA.js} +1 -1
- package/_assets/{session-proposal-BbxUdmu_.js → session-proposal-BYh_OG9t.js} +1 -1
- package/_assets/{session-request-iIRNVfwz.js → session-request-CY4NStQo.js} +2 -2
- package/_assets/{signing-Cnwo6tva.js → signing-Ok6wHB0p.js} +3 -3
- package/_assets/{socials-JesVWt33.js → socials-B8S69gWM.js} +1 -1
- package/_assets/{styled-B0-_jC66.js → styled-zAnjhJ-0.js} +2 -2
- package/_assets/{swaps-DiHFkz3h.js → swaps-CjF5MnB-.js} +1 -1
- package/_assets/{thirdweb-BgDawyw0.js → thirdweb-D5bvqyMu.js} +3 -3
- package/_assets/{to-serializable-transaction-Cy2ugr3u.js → to-serializable-transaction-DAc5IhqX.js} +2 -2
- package/_assets/{trade-encoding-DYGW0EG6.js → trade-encoding-Big1WdSd.js} +1 -1
- package/_assets/{transactionReceipt-BN5uajuZ.js → transactionReceipt-CZrGEIIp.js} +1 -1
- package/_assets/{transactions-vLsZNFPY.js → transactions-vZJjQgXH.js} +1 -1
- package/_assets/{useCreditPacks-Bxxs5gPt.js → useCreditPacks-CaEmGAYa.js} +1 -1
- package/_assets/{useImportable-DaFCiZt-.js → useImportable-BE4Mkmpi.js} +1 -1
- package/_assets/{useInfiniteGrid-aaW1umo4.js → useInfiniteGrid-DDBSAEnp.js} +1 -1
- package/_assets/{useTheme-CWDPVAdC.js → useTheme-DQklrtt-.js} +1 -1
- package/_assets/{verifyHash-Bfqcsnfy.js → verifyHash-DZe7V-OY.js} +1 -1
- package/_assets/{w3m-modal-dbHO42vZ.js → w3m-modal-Cw5vVcGp.js} +1 -1
- package/_assets/{w3m-modal-7IzsWep_.js → w3m-modal-xF80rj1r.js} +1 -1
- package/_assets/{wait-for-tx-receipt-CNCHrX28.js → wait-for-tx-receipt-C4A9-An8.js} +1 -1
- package/_assets/{wallets-D-L32AGp.js → wallets-CphAR9Li.js} +5 -5
- package/_assets/{web-connector-PVStra29.js → web-connector-Bxz9_4Uo.js} +3 -3
- package/_assets/{writeContract-znr6ni3L.js → writeContract-B2QHkaZ0.js} +1 -1
- package/_assets/{zoraTestnet-Ux1B_UMW.js → zoraTestnet-DGDO4YQF.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/LazyEmoteControls-BwHr8-X7.js +0 -2
- package/_assets/MenuList-BX6yO7Ac.js +0 -9
- package/_assets/NotificationsBell-x9qG4JAm.js +0 -34
- package/_assets/collectionPage.styles-zJMtUweU.js +0 -48
- package/_assets/createSvgIcon-WjfcCScq.js +0 -74
- package/_assets/getThemeProps-Dfsert1D.js +0 -1
- package/_assets/index-T0WMmU10.js +0 -2
- package/_assets/index-aPDIsvsp.js +0 -1
- package/_assets/index-yT06p0hy.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a9 as N,aa as U,ab as o,ac as n,ad as D,o as M}from"./index-CVsFBRi4.js";import{r as w,j as g}from"./react-DehiWSvs.js";import{g as z,a as E,c as I,b as F}from"./clsx-WwvpwSg0.js";import{s as v}from"./styled-zAnjhJ-0.js";function K(r){return z("MuiCircularProgress",r)}E("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const W=["className","color","disableShrink","size","style","thickness","value","variant"];let l=r=>r,P,b,S,$;const a=44,B=M(P||(P=l`
|
|
2
2
|
0% {
|
|
3
3
|
transform: rotate(0deg);
|
|
4
4
|
}
|
|
@@ -6,7 +6,7 @@ import{aa as N,ab as U,ac as o,ad as n,ae as D,q as M}from"./index-DBKr5jDP.js";
|
|
|
6
6
|
100% {
|
|
7
7
|
transform: rotate(360deg);
|
|
8
8
|
}
|
|
9
|
-
`)),
|
|
9
|
+
`)),G=M(b||(b=l`
|
|
10
10
|
0% {
|
|
11
11
|
stroke-dasharray: 1px, 200px;
|
|
12
12
|
stroke-dashoffset: 0;
|
|
@@ -21,8 +21,8 @@ import{aa as N,ab as U,ac as o,ad as n,ae as D,q as M}from"./index-DBKr5jDP.js";
|
|
|
21
21
|
stroke-dasharray: 100px, 200px;
|
|
22
22
|
stroke-dashoffset: -125px;
|
|
23
23
|
}
|
|
24
|
-
`)),
|
|
24
|
+
`)),L=r=>{const{classes:e,variant:s,color:t,disableShrink:d}=r,m={root:["root",s,`color${n(t)}`],svg:["svg"],circle:["circle",`circle${n(s)}`,d&&"circleDisableShrink"]};return F(m,K,e)},V=v("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:s}=r;return[e.root,e[s.variant],e[`color${n(s.color)}`]]}})(({ownerState:r,theme:e})=>o({display:"inline-block"},r.variant==="determinate"&&{transition:e.transitions.create("transform")},r.color!=="inherit"&&{color:(e.vars||e).palette[r.color].main}),({ownerState:r})=>r.variant==="indeterminate"&&D(S||(S=l`
|
|
25
25
|
animation: ${0} 1.4s linear infinite;
|
|
26
|
-
`),
|
|
26
|
+
`),B)),Z=v("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(r,e)=>e.svg})({display:"block"}),q=v("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(r,e)=>{const{ownerState:s}=r;return[e.circle,e[`circle${n(s.variant)}`],s.disableShrink&&e.circleDisableShrink]}})(({ownerState:r,theme:e})=>o({stroke:"currentColor"},r.variant==="determinate"&&{transition:e.transitions.create("stroke-dashoffset")},r.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:r})=>r.variant==="indeterminate"&&!r.disableShrink&&D($||($=l`
|
|
27
27
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
28
|
-
`),
|
|
28
|
+
`),G)),Q=w.forwardRef(function(e,s){const t=N({props:e,name:"MuiCircularProgress"}),{className:d,color:m="primary",disableShrink:R=!1,size:u=40,style:_,thickness:i=3.6,value:p=0,variant:k="indeterminate"}=t,j=U(t,W),c=o({},t,{color:m,disableShrink:R,size:u,thickness:i,value:p,variant:k}),f=L(c),h={},x={},y={};if(k==="determinate"){const C=2*Math.PI*((a-i)/2);h.strokeDasharray=C.toFixed(3),y["aria-valuenow"]=Math.round(p),h.strokeDashoffset=`${((100-p)/100*C).toFixed(3)}px`,x.transform="rotate(-90deg)"}return g.jsx(V,o({className:I(f.root,d),style:o({width:u,height:u},x,_),ownerState:c,ref:s,role:"progressbar"},y,j,{children:g.jsx(Z,{className:f.svg,ownerState:c,viewBox:`${a/2} ${a/2} ${a} ${a}`,children:g.jsx(q,{className:f.circle,style:h,ownerState:c,cx:a,cy:a,r:(a-i)/2,fill:"none",strokeWidth:i})})}))});export{Q as C};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,r as h,u as
|
|
1
|
+
import{j as e,r as h,u as J,d as X}from"./react-DehiWSvs.js";import{t as b,s,bk as ee,W as te,y as z,bl as ae,bm as oe,I as ie,d as a,c as re,A as se,n as ne,q as ce,e as le,ai as F,aj as de,bn as pe,bo as xe}from"./index-CVsFBRi4.js";import{E as me}from"./ErrorNotice-CyiptEa7.js";import{d as he,P as ue,C as ge,a as be,b as fe,A as ve}from"./collectionPage.styles-d2_ZXGM9.js";import{S as L,C as je,F as ye,c as we,P as Ce,d as $e,H as ke,e as Ne}from"./categories-BZTqLeq0.js";import{L as Ae}from"./LoadMore-DhMl82KM.js";import{u as Pe}from"./useInfiniteGrid-DDBSAEnp.js";import{G as Se}from"./grid.styles-DnJBwJyN.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";const Me=s.section`
|
|
2
2
|
position: relative;
|
|
3
3
|
border-radius: ${b.radius.card};
|
|
4
4
|
overflow: hidden;
|
|
@@ -11,20 +11,20 @@ import{j as e,r as h,u as Z,d as J}from"./react-DehiWSvs.js";import{t as b,s,bl
|
|
|
11
11
|
${b.media.maxWidth("mobile")} {
|
|
12
12
|
min-height: 140px;
|
|
13
13
|
}
|
|
14
|
-
`,
|
|
14
|
+
`,Ee=s.div`
|
|
15
15
|
position: absolute;
|
|
16
16
|
inset: 0;
|
|
17
17
|
z-index: 0;
|
|
18
|
-
`,
|
|
18
|
+
`,Re=s.img`
|
|
19
19
|
width: 100%;
|
|
20
20
|
height: 100%;
|
|
21
21
|
object-fit: cover;
|
|
22
22
|
display: block;
|
|
23
|
-
`,
|
|
23
|
+
`,Te=s.div`
|
|
24
24
|
position: absolute;
|
|
25
25
|
inset: 0;
|
|
26
26
|
background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
|
|
27
|
-
`,
|
|
27
|
+
`,ze=s.h1`
|
|
28
28
|
position: relative;
|
|
29
29
|
z-index: 1;
|
|
30
30
|
margin: 0;
|
|
@@ -42,7 +42,7 @@ import{j as e,r as h,u as Z,d as J}from"./react-DehiWSvs.js";import{t as b,s,bl
|
|
|
42
42
|
padding: 24px 16px;
|
|
43
43
|
font-size: 26px;
|
|
44
44
|
}
|
|
45
|
-
`;function Fe({name:o,creator:t}){const{data:n}=ee(t),d=(n==null?void 0:n.cover)||he;return e.jsxs(Me,{"data-testid":"collection-hero","aria-label":o,children:[e.jsxs(
|
|
45
|
+
`;function Fe({name:o,creator:t}){const{data:n}=ee(t),d=(n==null?void 0:n.cover)||he;return e.jsxs(Me,{"data-testid":"collection-hero","aria-label":o,children:[e.jsxs(Ee,{children:[e.jsx(Re,{src:d,alt:"",loading:"eager"}),e.jsx(Te,{"aria-hidden":!0})]}),e.jsx(ze,{"data-testid":"collection-hero-title",children:o})]})}const{colors:c,radius:I}=b,Le=s.div`
|
|
46
46
|
display: flex;
|
|
47
47
|
flex-direction: column;
|
|
48
48
|
align-items: center;
|
|
@@ -116,7 +116,7 @@ import{j as e,r as h,u as Z,d as J}from"./react-DehiWSvs.js";import{t as b,s,bl
|
|
|
116
116
|
background: ${c.accent};
|
|
117
117
|
color: ${c.white};
|
|
118
118
|
}
|
|
119
|
-
`;function _e({address:o}){var v,l;const{data:t}=te(o),[n,d]=h.useState(!1);if(!o)return null;const p=(t==null?void 0:t.name)||
|
|
119
|
+
`;function _e({address:o}){var v,l;const{data:t}=te(o),[n,d]=h.useState(!1);if(!o)return null;const p=(t==null?void 0:t.name)||z(o),u=(l=(v=t==null?void 0:t.avatar)==null?void 0:v.snapshots)==null?void 0:l.face256,g=`${re.profileUrl}/${o}`,f=ae(oe({name:t==null?void 0:t.name,hasClaimedName:t==null?void 0:t.hasClaimedName,ethAddress:(t==null?void 0:t.ethAddress)??o}));async function x(){try{await navigator.clipboard.writeText(o),d(!0),window.setTimeout(()=>d(!1),1500)}catch(y){se(y,{flow:"copy_creator_address"})}}return e.jsxs(Le,{"data-testid":"creator-card",children:[u?e.jsx(B,{src:u,alt:"",loading:"eager",style:{backgroundColor:f}}):e.jsx(B,{as:"span","aria-hidden":!0,style:{backgroundColor:f}}),e.jsx(Be,{title:p,children:p}),e.jsxs(Ie,{type:"button",onClick:()=>void x(),title:n?a("collection.copied"):a("collection.copyAddress"),"aria-label":n?a("collection.copied"):a("collection.copyAddress"),children:[e.jsx("span",{children:z(o)}),e.jsx(ie,{name:"copy",size:16})]}),e.jsx(We,{"data-testid":"creator-card-view",href:g,target:"_blank",rel:"noopener noreferrer",children:a("collection.viewProfile")})]})}const{colors:Ge,media:$}=b,He=s.div`
|
|
120
120
|
position: relative;
|
|
121
121
|
display: flex;
|
|
122
122
|
gap: 32px;
|
|
@@ -132,7 +132,7 @@ import{j as e,r as h,u as Z,d as J}from"./react-DehiWSvs.js";import{t as b,s,bl
|
|
|
132
132
|
${$.maxWidth("lg")} {
|
|
133
133
|
width: 100%;
|
|
134
134
|
}
|
|
135
|
-
`,
|
|
135
|
+
`,qe=s.aside`
|
|
136
136
|
flex: none;
|
|
137
137
|
width: 265px;
|
|
138
138
|
|
|
@@ -159,4 +159,4 @@ import{j as e,r as h,u as Z,d as J}from"./react-DehiWSvs.js";import{t as b,s,bl
|
|
|
159
159
|
visibility: visible;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
`,
|
|
162
|
+
`,Ye=48;function it(){var T;const{contractAddress:o}=J(),t=X(),[n,d]=h.useState("wearable"),[p,u]=h.useState(null),[g,f]=h.useState([]),[x,v]=h.useState(""),[l,y]=h.useState(""),[k,W]=h.useState("newest"),N=x&&!Number.isNaN(Number(x))?Number(x):void 0,A=l&&!Number.isNaN(Number(l))?Number(l):void 0,_=p?Ne[p]:void 0,G=(L.find(i=>i.key===k)??L[0]).server,P={category:n,rarities:g.length?g:void 0,wearableCategories:_,minPriceCredits:N,maxPriceCredits:A,sortBy:G},{items:j,total:H,isLoading:w,error:S,hasNextPage:U,isFetchingNextPage:M,isFetchNextPageError:q,fetchNextPage:Y}=Pe(["collection-page",o,P],i=>pe(o,{...P,first:Ye,skip:i}),{enabled:!!o}),{data:r}=ne({queryKey:["collection-meta",o],queryFn:()=>xe(o),enabled:!!o,staleTime:5*6e4}),E=(r==null?void 0:r.name)||a("collection.fallbackTitle");ce({title:r==null?void 0:r.name,description:r!=null&&r.name?a("seo.collection.description",{name:r.name}):void 0});const R=(r==null?void 0:r.creator)||((T=j[0])==null?void 0:T.creator);function K(i){d(i),u(null)}function D(i){f(m=>m.includes(i)?m.filter(Z=>Z!==i):[...m,i])}function O(){d("wearable"),u(null),f([]),v(""),y("")}const C=!!(N||A),Q=C?`${x||"0"}–${l||"∞"}`:a("filter.price"),V=n!=="wearable"||!!p||g.length>0||C;return e.jsxs(ue,{"data-testid":"collection-page",children:[e.jsxs(ge,{"aria-label":a("collection.breadcrumbAria"),children:[e.jsx(be,{onClick:()=>t("/items"),children:a("collection.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(fe,{children:E})]}),e.jsx(Fe,{name:E,creator:R}),e.jsxs(He,{"data-testid":"browse",children:[e.jsxs(qe,{"data-testid":"browse-sidebar",children:[e.jsx(_e,{address:R}),e.jsx(je,{category:n,subCategory:p,onCategory:K,onSub:u,title:a("collection.category"),flat:!0})]}),e.jsxs(Ue,{children:[!w&&j.length>0?e.jsx(ve,{items:j,source:"collection"}):null,e.jsx(ye,{rarities:g,onToggleRarity:D,sort:k,onSort:W,total:H,loading:w,anyActive:V,onClear:O,renderTrailing:i=>e.jsx(we,{panelKey:"price",label:Q,active:C,panel:i,children:e.jsxs(Ce,{"data-variant":"price",children:[e.jsxs($e,{children:[e.jsx("input",{type:"number",min:"0","aria-label":a("collection.priceMin"),placeholder:a("collection.priceMinPlaceholder"),value:x,onChange:m=>v(m.target.value)}),e.jsx("span",{children:"–"}),e.jsx("input",{type:"number",min:"0","aria-label":a("collection.priceMax"),placeholder:a("collection.priceMaxPlaceholder"),value:l,onChange:m=>y(m.target.value)})]}),e.jsx(ke,{children:a("collection.priceHint",{currency:le.name})})]})})}),S?e.jsx(me,{message:a("collection.error")}):null,e.jsx(Se,{"data-testid":"grid",children:w?e.jsx(F,{count:15}):e.jsxs(e.Fragment,{children:[j.map(i=>e.jsx(de,{item:i},i.id)),M?e.jsx(F,{count:6}):null]})}),e.jsx(Ae,{hasNextPage:U,isFetching:M,isError:q,onLoadMore:()=>void Y()}),!w&&!S&&j.length===0?e.jsx("p",{className:"muted",children:a("collection.empty")}):null]})]})]})}export{it as Collection,it as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,
|
|
1
|
+
import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,w as k,ax as j,bF as C,e as G,o as Y,I as Q,A as X,g as W,C as B,a as Z,a1 as J,bP as F,aj as q}from"./index-CVsFBRi4.js";import{s as ee,i as U,A as H,g as K,r as te,m as ne,c as ae,M as ie,e as oe}from"./authorizations-C_Tm5Y68.js";import{i as se}from"./errors-CPtHy7ml.js";import{E as re}from"./ErrorNotice-CyiptEa7.js";import{a as ce}from"./buy-e7Mj-c4D.js";import{g as de,a as le}from"./trade-encoding-Big1WdSd.js";import{s as pe,M as he,E as ue}from"./sendMetaTransaction-DEEpoFiw.js";import{I as xe,C as ge}from"./ethers-CtNGBird.js";const R="shop:resume_after_signin",fe=900*1e3;function dt(a){try{sessionStorage.setItem(R,JSON.stringify({...a,at:Date.now()}))}catch{}}function lt(a){let n;try{n=sessionStorage.getItem(R)}catch{return null}if(!n)return null;try{sessionStorage.removeItem(R)}catch{}let i;try{i=JSON.parse(n)}catch{return null}return!i||i.type!==a||typeof i.at!="number"||Date.now()-i.at>fe?null:i.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:i.path}}function me(a,n){return(a+n-1n)/n}function be(a,n,i){return a<=0||n<=0?0n:a>=n?i:me(i*BigInt(a),BigInt(n))}function pt(a){var b,y,w;const n=Number.isFinite(a.priceCents)?Math.max(0,Math.trunc(a.priceCents)):0,i=Number.isFinite(a.balanceCents)?Math.max(0,Math.trunc(a.balanceCents)):0,s=a.priceManaWei>0n?a.priceManaWei:0n,l=a.manaBalanceWei>0n?a.manaBalanceWei:0n;if(n<=0)return{options:[],preferred:null,manaShortfall:null};const c=[];if(i>=n&&c.push({method:"credits",creditsCents:n,manaWei:0n}),s>0n&&i>0&&i<n){const d=n-i,m=be(d,n,s);l>=m&&c.push({method:"combined",creditsCents:i,manaWei:m})}s>0n&&l>=s&&c.push({method:"mana",creditsCents:0,manaWei:s});const p=((b=c.find(d=>d.method==="credits"))==null?void 0:b.method)??((y=c.find(d=>d.method==="combined"))==null?void 0:y.method)??((w=c.find(d=>d.method==="mana"))==null?void 0:w.method)??null,u=!c.some(d=>d.method==="mana"||d.method==="combined")&&s>0n&&l>0n?{manaWei:l,manaCents:ye(l,n,s),priceCents:n}:null;return{options:c,preferred:p,manaShortfall:u}}function ye(a,n,i){return Number(a*BigInt(n)/i)}function ht(a,n){let i=Number.isFinite(n)?Math.max(0,Math.trunc(n)):0;return a.map(s=>{const l=Number.isFinite(s)?Math.max(0,Math.trunc(s)):0,c=Math.min(l,i);return i-=c,c})}function M(a){return Number.isFinite(a)?Math.max(0,a)/10:0}function ut(a,n){return a.options.find(i=>i.method===n)??null}function xt(a,n){if(!Number.isFinite(a)||a<=0||n<=0n)return null;const i=a/10;return Number(n)/1e18/i}const T="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%201'%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%202L22%2012L12%2022L2%2012L12%202ZM12%204.8L19.2%2012L12%2019.2L4.8%2012L12%204.8ZM12%2015.6C12.9548%2015.6001%2013.8705%2015.2209%2014.5457%2014.5459C15.2209%2013.8708%2015.6003%2012.9552%2015.6004%2012.0004C15.6005%2011.0456%2015.2213%2010.1299%2014.5463%209.45471C13.8712%208.7795%2012.9556%208.40011%2012.0008%208.4C11.0461%208.4%2010.1304%208.77928%209.45525%209.45442C8.78012%2010.1295%208.40083%2011.0452%208.40083%2012C8.40083%2012.9548%208.78012%2013.8705%209.45525%2014.5456C10.1304%2015.2207%2011.0461%2015.6%2012.0008%2015.6H12Z'%20fill='white'/%3e%3cg%20id='Rectangle%201'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",we=e.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
@@ -248,7 +248,7 @@ import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,x as
|
|
|
248
248
|
outline: 2px solid ${o.colors.accent};
|
|
249
249
|
outline-offset: 2px;
|
|
250
250
|
}
|
|
251
|
-
`,
|
|
251
|
+
`,Ke=e.button`
|
|
252
252
|
flex: 1 1 0;
|
|
253
253
|
display: inline-flex;
|
|
254
254
|
align-items: center;
|
|
@@ -278,7 +278,7 @@ import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,x as
|
|
|
278
278
|
outline: 2px solid ${o.colors.accent};
|
|
279
279
|
outline-offset: 2px;
|
|
280
280
|
}
|
|
281
|
-
`,
|
|
281
|
+
`,De=e.span`
|
|
282
282
|
width: 16px;
|
|
283
283
|
height: 16px;
|
|
284
284
|
border-radius: 50%;
|
|
@@ -289,7 +289,7 @@ import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,x as
|
|
|
289
289
|
@media (prefers-reduced-motion: reduce) {
|
|
290
290
|
animation: none;
|
|
291
291
|
}
|
|
292
|
-
`;function mt({auth:a,signer:n,title:i,reason:s,name:l,image:c,icon:p,onAuthorized:x,onCancel:u,onClose:b}){const[y,w]=v.useState(!1),[d,m]=v.useState(null);async function $(){w(!0),m(null);try{await ee({auth:a,signer:n,active:!0}),x()}catch(h){se(h)?m(f("authorizeStep.errorRejected")):(X(h,{flow:"authorize_step",kind:a.kind}),m(f("authorizeStep.errorGeneric"))),w(!1)}}return t.jsx(ze,{onClick:y?void 0:b,role:"presentation",children:t.jsxs(Ae,{onClick:h=>h.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i,children:[t.jsxs(We,{children:[t.jsx(Ie,{children:i}),t.jsx(Se,{onClick:b,disabled:y,"aria-label":f("authorizeStep.close"),children:t.jsx(Q,{name:"close",className:"ico"})})]}),t.jsxs(Te,{"data-testid":"authorize-step-row",children:[t.jsx(Ne,{children:c?t.jsx("img",{src:c,alt:""}):p}),t.jsxs(Ee,{children:[t.jsx(Be,{title:l,children:l}),t.jsx(Re,{children:s})]})]}),t.jsx(Le,{children:f("authorizeStep.note")}),t.jsx(re,{message:d}),t.jsxs(Pe,{children:[t.jsx(Fe,{type:"button",onClick:u,disabled:y,children:f("authorizeStep.cancel")}),t.jsx(
|
|
292
|
+
`;function mt({auth:a,signer:n,title:i,reason:s,name:l,image:c,icon:p,onAuthorized:x,onCancel:u,onClose:b}){const[y,w]=v.useState(!1),[d,m]=v.useState(null);async function $(){w(!0),m(null);try{await ee({auth:a,signer:n,active:!0}),x()}catch(h){se(h)?m(f("authorizeStep.errorRejected")):(X(h,{flow:"authorize_step",kind:a.kind}),m(f("authorizeStep.errorGeneric"))),w(!1)}}return t.jsx(ze,{onClick:y?void 0:b,role:"presentation",children:t.jsxs(Ae,{onClick:h=>h.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i,children:[t.jsxs(We,{children:[t.jsx(Ie,{children:i}),t.jsx(Se,{onClick:b,disabled:y,"aria-label":f("authorizeStep.close"),children:t.jsx(Q,{name:"close",className:"ico"})})]}),t.jsxs(Te,{"data-testid":"authorize-step-row",children:[t.jsx(Ne,{children:c?t.jsx("img",{src:c,alt:""}):p}),t.jsxs(Ee,{children:[t.jsx(Be,{title:l,children:l}),t.jsx(Re,{children:s})]})]}),t.jsx(Le,{children:f("authorizeStep.note")}),t.jsx(re,{message:d}),t.jsxs(Pe,{children:[t.jsx(Fe,{type:"button",onClick:u,disabled:y,children:f("authorizeStep.cancel")}),t.jsx(Ke,{type:"button","data-testid":"authorize-step-action",onClick:()=>void $(),disabled:y,children:y?t.jsxs(t.Fragment,{children:[t.jsx(De,{"aria-hidden":!0}),f("authorizeStep.authorizing")]}):f("authorizeStep.authorize")})]})]})})}async function bt(a){const[n]=await Qe({...a,trades:[a.trade]});return n}async function Qe(a){const{trades:n,buyer:i,signer:s,onSigned:l}=a;if(n.length===0)throw new Error("No items to buy");const c=new Map;for(const x of n){const u=`${x.chainId}:${x.contract.toLowerCase()}`,b=c.get(u);b?b.push(x):c.set(u,[x])}const p=[];for(const x of c.values())p.push(await Ue({trades:x,buyer:i,signer:s,onSigned:l}));return p}async function Ue(a){const{trades:n,buyer:i,signer:s,onSigned:l}=a,c=n[0],p=W(Z(c.contract),c.chainId),x=W(B.MANAToken,c.chainId);await U({auth:{kind:H.Allowance,contractAddress:x.address,spenderAddress:p.address,chainId:c.chainId},signer:s});const u=n.map(d=>de(d,i));if(K.enabled)try{const d=new xe(p.abi).encodeFunctionData("accept",[u]),m=te(),$=ne(s.provider,m),h=await pe($,m,d,p,{serverURL:K.relayerUrl});return l==null||l(),await ae(h,"the MANA purchase"),h}catch(d){if(d instanceof he&&d.code===ue.USER_DENIED||d instanceof ie)throw d;console.warn("[buyWithMana] gasless meta-tx failed, falling back to a direct tx:",d)}await oe(s.provider,c.chainId);const y=await new ge(p.address,p.abi,s).accept(u,le(c.chainId));return l==null||l(),(await y.wait()).transactionHash}async function yt(a){const{trade:n,buyer:i,signer:s,credits:l,manaGapWei:c,onBroadcast:p,onReverted:x}=a;if(l.length===0)throw new Error("No credits to spend — use buyWithMana for a MANA-only purchase");if(c<=0n)throw new Error("No MANA gap to cover — use buyWithCredits for a credits-only purchase");const u=W(B.MANAToken,n.chainId),b=W(B.CreditsManager,n.chainId);await U({auth:{kind:H.Allowance,contractAddress:u.address,spenderAddress:b.address,chainId:n.chainId},signer:s});const w=(l.reduce((d,m)=>d+BigInt(m.availableAmount),0n)+c).toString();return ce({trade:n,buyer:i,signer:s,credits:l,maxCreditedValue:w,onBroadcast:p,onReverted:x})}function wt(a){return t.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,...a,children:t.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})}function vt(a){return t.jsxs("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":!0,...a,children:[t.jsx("path",{d:"M12 3L2 20h20L12 3z",fill:"none",stroke:"#691fa9",strokeWidth:"1.8",strokeLinejoin:"round"}),t.jsx("path",{d:"M12 9v5",stroke:"#691fa9",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("circle",{cx:"12",cy:"17",r:"1.1",fill:"#691fa9"})]})}const{colors:r,gradients:O,radius:V,z:He}=o,kt=e.div`
|
|
293
293
|
position: fixed;
|
|
294
294
|
inset: 0;
|
|
295
295
|
z-index: ${He.overlay};
|
|
@@ -422,7 +422,7 @@ import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,x as
|
|
|
422
422
|
color: ${r.text};
|
|
423
423
|
overflow: hidden;
|
|
424
424
|
text-overflow: ellipsis;
|
|
425
|
-
`,Pt=e(
|
|
425
|
+
`,Pt=e(J)`
|
|
426
426
|
font-size: 10px;
|
|
427
427
|
line-height: 1.43;
|
|
428
428
|
color: ${r.muted};
|
|
@@ -436,11 +436,11 @@ import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,x as
|
|
|
436
436
|
font-weight: 600;
|
|
437
437
|
color: ${r.text2};
|
|
438
438
|
}
|
|
439
|
-
`,
|
|
439
|
+
`,Kt=e(k)`
|
|
440
440
|
width: 24px;
|
|
441
441
|
height: 24px;
|
|
442
442
|
background: ${r.text2};
|
|
443
|
-
`,
|
|
443
|
+
`,Dt=e.div`
|
|
444
444
|
display: flex;
|
|
445
445
|
align-items: center;
|
|
446
446
|
gap: 8px;
|
|
@@ -509,7 +509,7 @@ import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,x as
|
|
|
509
509
|
font-size: 14px;
|
|
510
510
|
font-weight: 600;
|
|
511
511
|
color: ${r.muted1};
|
|
512
|
-
`,
|
|
512
|
+
`,Jt=e.div`
|
|
513
513
|
position: sticky;
|
|
514
514
|
bottom: 0;
|
|
515
515
|
display: flex;
|
|
@@ -517,7 +517,7 @@ import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,x as
|
|
|
517
517
|
margin-top: -8px;
|
|
518
518
|
padding-top: 8px;
|
|
519
519
|
background: ${r.white};
|
|
520
|
-
`,
|
|
520
|
+
`,qt=e.button`
|
|
521
521
|
flex: 1;
|
|
522
522
|
/* Let the CTAs shrink so their min-content can't widen the modal past the viewport on mobile. */
|
|
523
523
|
min-width: 0;
|
|
@@ -698,7 +698,7 @@ import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,x as
|
|
|
698
698
|
transform: rotate(-90deg);
|
|
699
699
|
`,Xe=e.div`
|
|
700
700
|
position: relative;
|
|
701
|
-
`,
|
|
701
|
+
`,D=e.button`
|
|
702
702
|
position: absolute;
|
|
703
703
|
top: 112px;
|
|
704
704
|
transform: translateY(-50%);
|
|
@@ -773,13 +773,13 @@ import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,x as
|
|
|
773
773
|
${A.maxWidth("sm")} {
|
|
774
774
|
grid-auto-columns: calc((100% - 16px) / 2);
|
|
775
775
|
}
|
|
776
|
-
`,
|
|
776
|
+
`,Je=e.div`
|
|
777
777
|
display: flex;
|
|
778
778
|
align-items: center;
|
|
779
779
|
justify-content: center;
|
|
780
780
|
gap: 8px;
|
|
781
781
|
margin-top: 18px;
|
|
782
|
-
`,
|
|
782
|
+
`,qe=e.button`
|
|
783
783
|
width: 10px;
|
|
784
784
|
height: 10px;
|
|
785
785
|
border-radius: 50%;
|
|
@@ -801,4 +801,4 @@ import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,x as
|
|
|
801
801
|
opacity: 1;
|
|
802
802
|
transform: scale(1.1);
|
|
803
803
|
}
|
|
804
|
-
`;function ln({title:a,items:n,onViewAll:i}){const s=v.useRef(null),[l,c]=v.useState(1),[p,x]=v.useState(0),[u,b]=v.useState(!0),[y,w]=v.useState(!1),d=v.useCallback(()=>{const h=s.current;if(!h)return;const{scrollLeft:g,scrollWidth:L,clientWidth:S}=h,P=Math.max(1,Math.ceil(L/S));c(P),x(Math.min(P-1,Math.round(g/S))),b(g<=1),w(g+S>=L-1)},[]);if(v.useEffect(()=>{d();const h=s.current;if(h)return h.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d),()=>{h.removeEventListener("scroll",d),window.removeEventListener("resize",d)}},[d,n.length]),n.length===0)return null;function m(h){const g=s.current;g&&g.scrollBy({left:h*g.clientWidth,behavior:"smooth"})}function $(h){const g=s.current;g&&g.scrollTo({left:h*g.clientWidth,behavior:"smooth"})}return t.jsxs(_e,{children:[t.jsxs(Oe,{children:[t.jsx(Ve,{children:a}),i?t.jsxs(Ge,{onClick:i,children:[f("collectionCarousel.viewAll"),t.jsx(Ye,{name:"chevron-down",size:16})]}):null]}),t.jsxs(Xe,{children:[t.jsx(
|
|
804
|
+
`;function ln({title:a,items:n,onViewAll:i}){const s=v.useRef(null),[l,c]=v.useState(1),[p,x]=v.useState(0),[u,b]=v.useState(!0),[y,w]=v.useState(!1),d=v.useCallback(()=>{const h=s.current;if(!h)return;const{scrollLeft:g,scrollWidth:L,clientWidth:S}=h,P=Math.max(1,Math.ceil(L/S));c(P),x(Math.min(P-1,Math.round(g/S))),b(g<=1),w(g+S>=L-1)},[]);if(v.useEffect(()=>{d();const h=s.current;if(h)return h.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d),()=>{h.removeEventListener("scroll",d),window.removeEventListener("resize",d)}},[d,n.length]),n.length===0)return null;function m(h){const g=s.current;g&&g.scrollBy({left:h*g.clientWidth,behavior:"smooth"})}function $(h){const g=s.current;g&&g.scrollTo({left:h*g.clientWidth,behavior:"smooth"})}return t.jsxs(_e,{children:[t.jsxs(Oe,{children:[t.jsx(Ve,{children:a}),i?t.jsxs(Ge,{onClick:i,children:[f("collectionCarousel.viewAll"),t.jsx(Ye,{name:"chevron-down",size:16})]}):null]}),t.jsxs(Xe,{children:[t.jsx(D,{"data-side":"left",onClick:()=>m(-1),"aria-label":f("collectionCarousel.scrollLeft"),disabled:u,children:t.jsx("img",{src:F,alt:"","aria-hidden":!0})}),t.jsx(Ze,{ref:s,children:n.map(h=>t.jsx(q,{item:h},h.id))}),t.jsx(D,{"data-side":"right",onClick:()=>m(1),"aria-label":f("collectionCarousel.scrollRight"),disabled:y,children:t.jsx("img",{src:F,alt:"","aria-hidden":!0})})]}),l>1?t.jsx(Je,{"aria-label":f("collectionCarousel.pages"),children:Array.from({length:l}).map((h,g)=>t.jsx(qe,{"data-active":g===p||void 0,"aria-label":f("collectionCarousel.goToPage",{page:g+1}),"aria-current":g===p?"true":void 0,onClick:()=>$(g)},g))}):null]})}export{M as $,Et as A,Wt as B,jt as C,Ot as D,Vt as E,Gt as F,Yt as G,Ct as H,Xt as I,Zt as J,pt as K,en as L,kt as M,lt as N,ln as O,gt as P,mt as Q,T as R,$t as S,zt as T,dt as U,ft as V,Dt as W,At as X,Qe as Y,ht as Z,be as _,Mt as a,cn as a0,dn as a1,bt as a2,ut as a3,yt as a4,wt as b,It as c,St as d,Tt as e,Nt as f,tn as g,nn as h,an as i,Jt as j,qt as k,on as l,xt as m,sn as n,rn as o,vt as p,Qt as q,Bt as r,Rt as s,Lt as t,Pt as u,Ft as v,Kt as w,Ut as x,Ht as y,_t as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as de,j as e,L as Ee,u as Fe,e as Le,r as f}from"./react-DehiWSvs.js";import{t as he,
|
|
1
|
+
import{d as de,j as e,L as Ee,u as Fe,e as Le,r as f}from"./react-DehiWSvs.js";import{t as he,G as Ae,J as Z,H as X,s,bG as Ie,aw as Re,bH as ze,d as o,bI as Be,bJ as ee,B as Me,ad as me,W as xe,bk as _e,k as Te,y as ue,br as We,bl as Ge,bm as De,I as te,c as Oe,q as Ke,n as He,ae as Ue,ai as A,aj as oe,bK as re,bL as qe}from"./index-CVsFBRi4.js";import{d as Ve,P as Je,C as Qe,a as Ye,b as Ze,A as Xe,c as et,e as tt}from"./collectionPage.styles-d2_ZXGM9.js";import{g as ot,h as rt,i as it,j as st,k as at,C as nt,l as lt,o as ct,m as dt,n as ht,M as mt,E as xt,p as ut,q as pt,r as gt,s as ft,t as bt}from"./Assets.styles-BV05fk07.js";import{S as ie,R as wt,F as jt,e as vt}from"./categories-BZTqLeq0.js";import{L as se}from"./LoadMore-DhMl82KM.js";import{u as ae}from"./useInfiniteGrid-DDBSAEnp.js";import{E as W}from"./ErrorNotice-CyiptEa7.js";import{G as ne}from"./grid.styles-DnJBwJyN.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./Tooltip-Bt1xTSZ8.js";function yt(r){const{gridLoading:i,gridError:a,gridCount:n,baselinePending:h,baselineError:l,baselineCount:m}=r;return i?"skeletons":a?"error":n>0?"items":h?"skeletons":l?"error":m===0?"no-creations":"filters"}const{colors:b,radius:pe,media:Ct}=he,kt=s.article`
|
|
2
2
|
height: 300px;
|
|
3
3
|
background: ${b.bg};
|
|
4
4
|
border-radius: ${pe.card};
|
|
@@ -15,10 +15,10 @@ import{d as de,j as e,L as Ee,u as Fe,e as Le,r as f}from"./react-DehiWSvs.js";i
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&:focus-visible {
|
|
18
|
-
${
|
|
18
|
+
${Z};
|
|
19
19
|
}
|
|
20
20
|
&:focus-visible::after {
|
|
21
|
-
${
|
|
21
|
+
${X};
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// The swap is a pointer affordance only: keyboard focus must not hide the creator row, whose profile
|
|
@@ -26,10 +26,10 @@ import{d as de,j as e,L as Ee,u as Fe,e as Le,r as f}from"./react-DehiWSvs.js";i
|
|
|
26
26
|
// already opens the collection.
|
|
27
27
|
@media (hover: hover) {
|
|
28
28
|
&:hover {
|
|
29
|
-
${
|
|
29
|
+
${Z};
|
|
30
30
|
}
|
|
31
31
|
&:hover::after {
|
|
32
|
-
${
|
|
32
|
+
${X};
|
|
33
33
|
}
|
|
34
34
|
&:hover [data-view] {
|
|
35
35
|
visibility: visible;
|
|
@@ -135,7 +135,7 @@ import{d as de,j as e,L as Ee,u as Fe,e as Le,r as f}from"./react-DehiWSvs.js";i
|
|
|
135
135
|
&:active {
|
|
136
136
|
background: ${b.accentActive};
|
|
137
137
|
}
|
|
138
|
-
`;function
|
|
138
|
+
`;function Bt({collection:r,cover:i,itemCount:a}){const n=de(),{contractAddress:h,name:l,creator:m}=r,C=i==null||a==null,{data:x}=ze(h,C),j=i==null?(x==null?void 0:x.items)??[]:[],g=a??(x==null?void 0:x.total);function w(){n(`/collection/${h}`)}return e.jsxs(kt,{"data-testid":"coll-card",role:"link",tabIndex:0,onClick:w,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),w())},children:[e.jsx($t,{children:i?e.jsx(St,{"data-testid":"coll-card-img",src:i,alt:"",loading:"lazy"}):j.length>0?e.jsx(Nt,{items:j,tinted:!1}):null}),e.jsxs(Pt,{children:[e.jsx(Et,{title:l,children:l}),e.jsxs(Ft,{children:[e.jsxs(Lt,{"data-meta":!0,"data-testid":"coll-card-meta",children:[m?e.jsx(At,{address:m,linkToProfile:!0}):e.jsx(It,{children:" "}),e.jsx(Rt,{children:g==null?"…":o("collectionCard.itemCount",{count:g})})]}),e.jsx(zt,{"data-view":!0,"data-testid":"coll-card-view",onClick:u=>{u.stopPropagation(),w()},tabIndex:-1,children:o("collectionCard.viewCollection")})]})]})]})}function Mt({address:r,className:i=""}){const a=Be(),n=ee(l=>l.followed.includes(r.toLowerCase())),h=ee(l=>l.toggle);return!a||!r?null:e.jsx(Me,{type:"button",size:"sm",variant:n?"ghost":"outline",className:i||void 0,"data-testid":"follow-button","aria-pressed":n,title:n?o("creator.unfollowTitle"):o("creator.followTitle"),onClick:()=>h(r),children:n?o("creator.following"):o("creator.follow")})}const{colors:y,radius:ge,media:v}=he,fe=me`
|
|
139
139
|
display: inline-flex;
|
|
140
140
|
align-items: center;
|
|
141
141
|
justify-content: center;
|
|
@@ -179,11 +179,11 @@ import{d as de,j as e,L as Ee,u as Fe,e as Le,r as f}from"./react-DehiWSvs.js";i
|
|
|
179
179
|
height: 100%;
|
|
180
180
|
object-fit: cover;
|
|
181
181
|
display: block;
|
|
182
|
-
`,
|
|
182
|
+
`,Gt=s.div`
|
|
183
183
|
position: absolute;
|
|
184
184
|
inset: 0;
|
|
185
185
|
background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
|
|
186
|
-
`,
|
|
186
|
+
`,Dt=s.div`
|
|
187
187
|
position: absolute;
|
|
188
188
|
top: 16px;
|
|
189
189
|
right: 16px;
|
|
@@ -219,7 +219,7 @@ import{d as de,j as e,L as Ee,u as Fe,e as Le,r as f}from"./react-DehiWSvs.js";i
|
|
|
219
219
|
}
|
|
220
220
|
`,Ot=s.a`
|
|
221
221
|
${be};
|
|
222
|
-
`,
|
|
222
|
+
`,Kt=s(Ee)`
|
|
223
223
|
${be};
|
|
224
224
|
width: 32px;
|
|
225
225
|
height: 32px;
|
|
@@ -303,4 +303,4 @@ import{d as de,j as e,L as Ee,u as Fe,e as Le,r as f}from"./react-DehiWSvs.js";i
|
|
|
303
303
|
&:hover {
|
|
304
304
|
background: rgba(255, 255, 255, 0.14);
|
|
305
305
|
}
|
|
306
|
-
`,Qt={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function
|
|
306
|
+
`,Qt={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function Yt({address:r}){var u,k;const{data:i}=xe(r),{data:a}=_e(r),n=Te(c=>{var $;return($=c.session)==null?void 0:$.address}),h=!!n&&n.toLowerCase()===r.toLowerCase(),l=(i==null?void 0:i.name)||ue(r),m=(k=(u=i==null?void 0:i.avatar)==null?void 0:u.snapshots)==null?void 0:k.face256,C=(a==null?void 0:a.cover)||Ve,x=a==null?void 0:a.description,j=`${Oe.profileUrl}/${r}`,g=We.filter(c=>a==null?void 0:a.links[c]),w=Ge(De({name:i==null?void 0:i.name,hasClaimedName:i==null?void 0:i.hasClaimedName,ethAddress:(i==null?void 0:i.ethAddress)??r}));return e.jsxs(_t,{"aria-label":`${l} storefront`,children:[e.jsxs(Tt,{children:[e.jsx(Wt,{src:C,alt:"",loading:"eager"}),e.jsx(Gt,{"aria-hidden":!0})]}),(g.length>0||h)&&e.jsxs(Dt,{children:[g.map(c=>e.jsx(Ot,{"data-testid":"creator-hero-link",href:(a==null?void 0:a.links[c])??"",target:"_blank",rel:"noopener noreferrer",title:o(`creator.link.${c}`),"aria-label":o(`creator.link.${c}`),children:e.jsx(te,{name:Qt[c]})},c)),h&&e.jsx(Kt,{to:"/store-settings",title:o("creator.editStore"),"aria-label":o("creator.editStore"),children:e.jsx(te,{name:"pen"})})]}),e.jsxs(Ht,{children:[m?e.jsx(le,{src:m,alt:"",loading:"eager",style:{backgroundColor:w}}):e.jsx(le,{as:"span","aria-hidden":!0,style:{backgroundColor:w}}),e.jsxs("div",{children:[e.jsx(Ut,{children:l}),x?e.jsx(qt,{children:x}):null]}),e.jsxs(Vt,{children:[e.jsx(Jt,{"data-testid":"creator-hero-view",href:j,target:"_blank",rel:"noopener noreferrer",children:o("creator.viewProfile")}),e.jsx(Mt,{address:r,className:"creator-hero__follow"})]})]})]})}const ce=48;function xo(){const{address:r}=Fe(),i=de(),[a]=Le(),n=a.has("collections"),{data:h}=xe(r),l=(h==null?void 0:h.name)||(r?ue(r):o("creator.fallbackName"));Ke({title:l,description:o("seo.creator.description",{name:l})});const[m,C]=f.useState("all"),[x,j]=f.useState(null),[g,w]=f.useState([]),[u,k]=f.useState(""),[c,$]=f.useState(""),[N,I]=f.useState("all"),[R,z]=f.useState(!1),[G,we]=f.useState("newest"),[E,P]=f.useState(!1);f.useEffect(()=>{if(!E)return;const t=T=>{T.key==="Escape"&&P(!1)};document.addEventListener("keydown",t);const d=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=d}},[E]);const D=u&&!Number.isNaN(Number(u))?Number(u):void 0,O=c&&!Number.isNaN(Number(c))?Number(c):void 0,je=x?vt[x]:void 0,ve=(ie.find(t=>t.key===G)??ie[0]).server,K={creator:r,category:m,rarities:g.length?g:void 0,wearableCategories:je,minPriceCredits:D,maxPriceCredits:O,isWearableSmart:R||void 0,isOnSale:N==="all"?void 0:N==="on_sale",sortBy:ve},{items:B,total:ye,isLoading:Ce,isPlaceholderData:ke,error:H,hasNextPage:$e,isFetchingNextPage:U,isFetchNextPageError:Se,fetchNextPage:Ne}=ae(["creator-items",K],t=>re({...K,first:ce,skip:t}),{enabled:!!r&&!n}),F=He({queryKey:["creator-item-count",r],queryFn:()=>re({creator:r,first:1}).then(t=>t.total),enabled:!!r}),p=ae(["creator-collections",r],t=>qe(r,{first:ce,skip:t}).then(d=>({items:d.collections,total:d.total})),{enabled:!!r&&n});function q(t){C(t),j(null),n&&V()}function V(){const t=new URLSearchParams(a);t.delete("collections");const d=t.toString();i({search:d?`?${d}`:""},{replace:!0})}function Pe(){if(n){V();return}const t=new URLSearchParams(a);t.delete("collections");const d=t.toString();i({search:d?`?${d}&collections`:"?collections"},{replace:!0})}function J(t){w(d=>d.includes(t)?d.filter(T=>T!==t):[...d,t])}function Q(){C("all"),j(null),w([]),k(""),$(""),I("all"),z(!1)}const S=[];(m==="wearable"||m==="emote")&&S.push({key:"category",label:o(m==="emote"?"categories.emotes":"categories.wearables"),onRemove:()=>q("all")}),(D!=null||O!=null)&&S.push({key:"price",label:o("filter.price"),onRemove:()=>{k(""),$("")}});for(const t of wt)g.includes(t)&&S.push({key:`rarity-${t}`,label:Ue(t),onRemove:()=>J(t)});R&&S.push({key:"smart",label:o("filter.smart"),onRemove:()=>z(!1)}),N!=="all"&&S.push({key:"status",label:N==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>I("all")});const L=yt({gridLoading:Ce||ke,gridError:!!H,gridCount:B.length,baselinePending:F.isPending,baselineError:F.isError,baselineCount:F.data}),M=L==="skeletons",Y=B.filter(t=>t.priceCredits>0),_=L==="items"||L==="skeletons"?null:L;return e.jsxs(Je,{children:[e.jsxs(Qe,{"aria-label":o("creator.breadcrumbAria"),children:[e.jsx(Ye,{onClick:()=>i("/items"),children:o("creator.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(Ze,{children:l})]}),r?e.jsx(Yt,{address:r}):null,!n&&!M&&Y.length>0?e.jsx(Xe,{items:Y,source:"creator"}):null,e.jsxs(ot,{children:[E?e.jsx(rt,{onClick:()=>P(!1),"aria-hidden":!0}):null,e.jsxs(it,{"data-open":E||void 0,"data-testid":"creator-sidebar",children:[e.jsxs(st,{children:[e.jsx(at,{children:o("assets.filters")}),e.jsx(nt,{onClick:()=>P(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(lt,{children:e.jsx(ct,{category:m,subCategory:x,onCategory:q,onSub:j,priceMin:u,priceMax:c,onPriceMin:k,onPriceMax:$,rarities:g,onToggleRarity:J,status:N,onStatus:I,smart:R,onSmart:z,hideNames:!0,collections:n,onCollections:Pe})}),e.jsx(dt,{children:e.jsx(ht,{type:"button",onClick:()=>P(!1),children:o("assets.showItems")})})]}),e.jsx(mt,{children:n?e.jsxs(e.Fragment,{children:[e.jsx(et,{children:e.jsx(tt,{children:p.isLoading?"…":o("creator.collectionsCount",{count:p.total})})}),p.error?e.jsx(W,{message:o("creator.error")}):null,e.jsx(ne,{"data-variant":"collections",children:p.isLoading?e.jsx(A,{count:9}):e.jsxs(e.Fragment,{children:[p.items.map(t=>e.jsx(Bt,{collection:t,itemCount:t.itemCount},t.contractAddress)),p.isFetchingNextPage?e.jsx(A,{count:6}):null]})}),e.jsx(se,{hasNextPage:p.hasNextPage,isFetching:p.isFetchingNextPage,isError:p.isFetchNextPageError,onLoadMore:()=>void p.fetchNextPage()}),!p.isLoading&&!p.error&&p.items.length===0?e.jsx("p",{className:"muted",children:o("creator.collectionsEmpty")}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(jt,{sort:G,onSort:we,total:ye,loading:M,onOpenFilters:()=>P(!0),chips:S,onClearChips:Q}),H?e.jsx(W,{message:o("creator.error"),testId:"creator-error"}):null,e.jsx(ne,{"data-testid":"creator-grid",children:M?e.jsx(A,{count:15}):e.jsxs(e.Fragment,{children:[B.map(t=>t.priceCredits>0?e.jsx(oe,{item:t},t.id):e.jsx(oe,{item:t,mode:"view"},t.id)),U?e.jsx(A,{count:6}):null]})}),e.jsx(se,{hasNextPage:$e,isFetching:U,isError:Se,onLoadMore:()=>void Ne()}),_==="error"?e.jsx(W,{message:o("creator.error"),testId:"creator-empty-error"}):_==="no-creations"?e.jsx("p",{className:"muted","data-testid":"creator-empty-none",children:o("creator.emptyNoCreations")}):_==="filters"?e.jsxs(xt,{"data-testid":"creator-empty-filters",children:[e.jsxs(ut,{children:[e.jsx(pt,{children:o("creator.emptyFilters.title")}),e.jsx(gt,{children:o("creator.emptyFilters.body",{count:F.data??0})})]}),e.jsx(ft,{children:e.jsx(bt,{type:"button",onClick:Q,children:o("filterBar.clearAll")})})]}):null]})})]})]})}export{xo as Creator,xo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r}from"./react-DehiWSvs.js";import{I as i}from"./index-
|
|
1
|
+
import{j as r}from"./react-DehiWSvs.js";import{I as i}from"./index-CVsFBRi4.js";function a({message:e,className:o,testId:t}){return e?r.jsxs("p",{className:o?`error-notice ${o}`:"error-notice","data-testid":t,role:"alert",children:[r.jsx(i,{name:"alert",className:"error-notice__ico",size:18}),r.jsx("span",{className:"error-notice__msg",children:e})]}):null}export{a as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as l,E as w,b as E,S as A,d as k,O as U,N as P,g as f,B as x,e as N,i as I,p as L}from"./W3MFrameProviderSingleton-
|
|
1
|
+
import{C as l,E as w,b as E,S as A,d as k,O as U,N as P,g as f,B as x,e as N,i as I,p as L}from"./W3MFrameProviderSingleton-Binytfp9.js";import{g as T,a as W,f as b,b as _,c as v}from"./index-I9UkC2fI.js";const D=0,C={paymentAsset:null,amount:null,tokenAmount:0,priceLoading:!1,error:null,exchanges:[],isLoading:!1,currentPayment:void 0,isPaymentInProgress:!1,paymentId:"",assets:[]},e=L(C),m={state:e,subscribe(t){return I(e,()=>t(e))},subscribeKey(t,n){return N(e,t,n)},resetState(){Object.assign(e,{...C})},async getAssetsForNetwork(t){const n=v(t),s=await m.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,p,y;const u=a.asset==="native"?f():`${a.network}:${a.asset}`,i=s.find(S=>{var g,d,h;return((h=(d=(g=S.fungibles)==null?void 0:g[0])==null?void 0:d.address)==null?void 0:h.toLowerCase())===u.toLowerCase()});return{...a,price:((o=(c=i==null?void 0:i.fungibles)==null?void 0:c[0])==null?void 0:o.price)||1,metadata:{...a.metadata,iconUrl:(y=(p=i==null?void 0:i.fungibles)==null?void 0:p[0])==null?void 0:y.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?f():`${r.network}:${r.asset}`);return await Promise.all(n.map(r=>x.fetchTokenPrice({addresses:[r]})))},getTokenAmount(){var s;if(!((s=e==null?void 0:e.paymentAsset)!=null&&s.price))throw new Error("Cannot get token price");const t=P.bigNumber(e.amount??0).round(8),n=P.bigNumber(e.paymentAsset.price).round(8);return t.div(n).round(8).toNumber()},setAmount(t){var n;e.amount=t,(n=e.paymentAsset)!=null&&n.price&&(e.tokenAmount=m.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return m.isPayWithExchangeEnabled()&&l.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(l.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=m.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await _({page:D,asset:b(e.paymentAsset.network,e.paymentAsset.asset),amount:((t=e.amount)==null?void 0:t.toString())??"0"});e.exchanges=s.exchanges.slice(0,2)}catch{throw A.showError("Unable to get exchanges"),new Error("Unable to get exchanges")}finally{e.isLoading=!1}},async getPayUrl(t,n){try{const s=Number(n.amount),r=await W({exchangeId:t,asset:b(n.network,n.asset),amount:s.toString(),recipient:`${n.network}:${n.recipient}`});return w.sendEvent({type:"track",event:"PAY_EXCHANGE_SELECTED",properties:{exchange:{id:t},configuration:{network:n.network,asset:n.asset,recipient:n.recipient,amount:s},currentPayment:{type:"exchange",exchangeId:t},source:"fund-from-exchange",headless:!1}}),r}catch(s){throw s instanceof Error&&s.message.includes("is not supported")?new Error("Asset not supported"):new Error(s.message)}},async handlePayWithExchange(t){var n;try{const s=(n=l.getAccountData())==null?void 0:n.address;if(!s)throw new Error("No account connected");if(!e.paymentAsset)throw new Error("No payment asset selected");const r=E.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!r)throw new Error("Could not create popup window");e.isPaymentInProgress=!0,e.paymentId=crypto.randomUUID(),e.currentPayment={type:"exchange",exchangeId:t};const{network:a,asset:u}=e.paymentAsset,i={network:a,asset:u,amount:e.tokenAmount,recipient:s},c=await m.getPayUrl(t,i);if(!c){try{r.close()}catch(o){console.error("Unable to close popup window",o)}throw new Error("Unable to initiate payment")}e.currentPayment.sessionId=c.sessionId,e.currentPayment.status="IN_PROGRESS",e.currentPayment.exchangeId=t,r.location.href=c.url}catch{e.error="Unable to initiate payment",A.showError(e.error)}},async waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r=20}){const a=await m.getBuyStatus(t,n,s);if(a.status==="SUCCESS"||a.status==="FAILED")return a;if(r===0)throw new Error("Unable to get deposit status");return await new Promise(u=>{setTimeout(u,5e3)}),m.waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r-1})},async getBuyStatus(t,n,s){var r,a,u,i,c;try{if(!e.currentPayment)throw new Error("No current payment");const o=await T({sessionId:n,exchangeId:t});if(e.currentPayment.status=o.status,o.status==="SUCCESS"||o.status==="FAILED"){const p=(r=l.getAccountData())==null?void 0:r.address;e.currentPayment.result=o.txHash,e.isPaymentInProgress=!1,w.sendEvent({type:"track",event:o.status==="SUCCESS"?"PAY_SUCCESS":"PAY_ERROR",properties:{message:o.status==="FAILED"?E.parseError(e.error):void 0,source:"fund-from-exchange",paymentId:s,configuration:{network:((a=e.paymentAsset)==null?void 0:a.network)||"",asset:((u=e.paymentAsset)==null?void 0:u.asset)||"",recipient:p||"",amount:e.amount??0},currentPayment:{type:"exchange",exchangeId:(i=e.currentPayment)==null?void 0:i.exchangeId,sessionId:(c=e.currentPayment)==null?void 0:c.sessionId,result:o.txHash}}})}return o}catch{return{status:"UNKNOWN",txHash:""}}},reset(){e.currentPayment=void 0,e.isPaymentInProgress=!1,e.paymentId="",e.paymentAsset=null,e.amount=0,e.tokenAmount=0,e.priceLoading=!1,e.error=null,e.exchanges=[],e.isLoading=!1}};export{m as E};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t as e,
|
|
1
|
+
import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t as e,o as B,q as ue,d as n,e as p,k as ge,x as fe,S as g,b9 as me,A as G,bi as U,bM as be,I as ie,b3 as H,w as re,bN as O}from"./index-CVsFBRi4.js";import{R as D}from"./resume-buy-Bf0zIH7y.js";import{u as we,a as ye,R as ke,c as Ce,i as ve,b as $e}from"./useCreditPacks-CaEmGAYa.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";const P="https://cdn.decentraland.org/@dcl/shop/0.6.2-30962062551.commit-60f59d7/_assets/pack-coins-BDh1ZDbh.webp",ne="https://cdn.decentraland.org/@dcl/shop/0.6.2-30962062551.commit-60f59d7/_assets/pack-stacks-D-V2jSHW.webp",oe="https://cdn.decentraland.org/@dcl/shop/0.6.2-30962062551.commit-60f59d7/_assets/pack-chest-BX_j84xW.webp",je="https://cdn.decentraland.org/@dcl/shop/0.6.2-30962062551.commit-60f59d7/_assets/credit-coin-CmcTCd5i.webp",Se="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",Pe="https://cdn.decentraland.org/@dcl/shop/0.6.2-30962062551.commit-60f59d7/_assets/packs-backdrop-BcXiUPeP.webp",K="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",_e=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 24px;
|
|
@@ -341,7 +341,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
341
341
|
height: 100%;
|
|
342
342
|
object-fit: contain;
|
|
343
343
|
}
|
|
344
|
-
`,
|
|
344
|
+
`,He=i.span`
|
|
345
345
|
display: flex;
|
|
346
346
|
align-items: center;
|
|
347
347
|
justify-content: center;
|
|
@@ -365,7 +365,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
365
365
|
letter-spacing: 0.46px;
|
|
366
366
|
color: ${e.colors.text2};
|
|
367
367
|
text-transform: uppercase;
|
|
368
|
-
`,
|
|
368
|
+
`,Oe=B`
|
|
369
369
|
to {
|
|
370
370
|
background-position: -200% 0;
|
|
371
371
|
}
|
|
@@ -378,12 +378,12 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
378
378
|
rgba(255, 255, 255, 0.08) 70%
|
|
379
379
|
);
|
|
380
380
|
background-size: 200% 100%;
|
|
381
|
-
animation: ${
|
|
381
|
+
animation: ${Oe} 1.4s infinite linear;
|
|
382
382
|
|
|
383
383
|
@media (prefers-reduced-motion: reduce) {
|
|
384
384
|
animation: none;
|
|
385
385
|
}
|
|
386
|
-
`,
|
|
386
|
+
`,De=i(E)`
|
|
387
387
|
width: 60%;
|
|
388
388
|
height: 30px;
|
|
389
389
|
border-radius: ${e.radius.chip};
|
|
@@ -668,4 +668,4 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
668
668
|
margin: 0;
|
|
669
669
|
font-family: ${e.font.sans};
|
|
670
670
|
color: ${e.colors.err};
|
|
671
|
-
`,v=ve()?"mock":"stripe",ee=[P,P,ne,oe],wt={pack_5:P,pack_10:P,pack_25:ne,pack_50:oe};function ae(a,o){return wt[a.id]??ee[o%ee.length]}function yt(a,o){return a.artUrl??ae(a,o)}const kt="https://docs.decentraland.org";function te(a){const o=a;if((o==null?void 0:o.name)==="AbortError")return n("getCredits.errorCanceled");const f=((o==null?void 0:o.message)??"").toLowerCase();return f.includes("sign in")?n("getCredits.errorSignIn",{currency:p.name}):f.includes("timed out")?n("getCredits.errorTimeout",{currency:p.name}):n("getCredits.errorGeneric")}function At(){var W;ue({title:n("nav.getCredits",{currency:p.name}),noindex:!0});const a=he(),{session:o,signIn:f}=ge(),s=fe(),[m,b]=xe(),{packs:$,isLoading:y}=we(),[x,h]=l.useState("select"),[c,F]=l.useState(null),[j,L]=l.useState(null),de=(j!=null?(W=$.find(r=>r.credits===j))==null?void 0:W.artUrl:void 0)??je,[ce,k]=l.useState(null),[le,_]=l.useState(!1),R=l.useRef(null);l.useEffect(()=>()=>{var r;return(r=R.current)==null?void 0:r.abort()},[]);const I=l.useCallback(()=>{b(r=>{const d=new URLSearchParams(r);return d.delete("order"),d.delete("canceled"),d},{replace:!0})},[b]),T=l.useCallback(async r=>{h("processing");const d=new AbortController;R.current=d;try{const u=await ye(r,{signal:d.signal,address:o==null?void 0:o.address,identity:o==null?void 0:o.identity});if(u.status==="credited"){const w=u.creditsGranted??(c==null?void 0:c.credits)??0;L(w>0?w:null),h("success"),g("Shop Completed Buy Credits",{order_id:r,pack_usd:(c==null?void 0:c.usd)??null,credits:w>0?w:null,provider:v}),s.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(ke)){const S={resumeCheckout:!0,...w>0?{creditsAdded:w}:{}};a("/cart",{state:S});return}}catch{}try{const S=sessionStorage.getItem(
|
|
671
|
+
`,v=ve()?"mock":"stripe",ee=[P,P,ne,oe],wt={pack_5:P,pack_10:P,pack_25:ne,pack_50:oe};function ae(a,o){return wt[a.id]??ee[o%ee.length]}function yt(a,o){return a.artUrl??ae(a,o)}const kt="https://docs.decentraland.org";function te(a){const o=a;if((o==null?void 0:o.name)==="AbortError")return n("getCredits.errorCanceled");const f=((o==null?void 0:o.message)??"").toLowerCase();return f.includes("sign in")?n("getCredits.errorSignIn",{currency:p.name}):f.includes("timed out")?n("getCredits.errorTimeout",{currency:p.name}):n("getCredits.errorGeneric")}function At(){var W;ue({title:n("nav.getCredits",{currency:p.name}),noindex:!0});const a=he(),{session:o,signIn:f}=ge(),s=fe(),[m,b]=xe(),{packs:$,isLoading:y}=we(),[x,h]=l.useState("select"),[c,F]=l.useState(null),[j,L]=l.useState(null),de=(j!=null?(W=$.find(r=>r.credits===j))==null?void 0:W.artUrl:void 0)??je,[ce,k]=l.useState(null),[le,_]=l.useState(!1),R=l.useRef(null);l.useEffect(()=>()=>{var r;return(r=R.current)==null?void 0:r.abort()},[]);const I=l.useCallback(()=>{b(r=>{const d=new URLSearchParams(r);return d.delete("order"),d.delete("canceled"),d},{replace:!0})},[b]),T=l.useCallback(async r=>{h("processing");const d=new AbortController;R.current=d;try{const u=await ye(r,{signal:d.signal,address:o==null?void 0:o.address,identity:o==null?void 0:o.identity});if(u.status==="credited"){const w=u.creditsGranted??(c==null?void 0:c.credits)??0;L(w>0?w:null),h("success"),g("Shop Completed Buy Credits",{order_id:r,pack_usd:(c==null?void 0:c.usd)??null,credits:w>0?w:null,provider:v}),s.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(ke)){const S={resumeCheckout:!0,...w>0?{creditsAdded:w}:{}};a("/cart",{state:S});return}}catch{}try{const S=sessionStorage.getItem(D);if(S){sessionStorage.removeItem(D);const M=JSON.parse(S),N=me(M);if(N){a(N,{state:{item:M,resumeBuy:!0}});return}}}catch{}}else u.status==="pending"?(g("Shop Buy Credits Pending",{step:"grant",pack_usd:(c==null?void 0:c.usd)??null}),s.invalidateQueries({queryKey:["usd-balance"]}),h("pending")):(g("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(c==null?void 0:c.usd)??null}),k(u.error??n("getCredits.errorGrant",{currency:p.name})),h("error"))}catch(u){G(u,{flow:"get_credits",step:"grant",order_id:r}),g("Shop Buy Credits Failed",{step:"grant",error_code:U(u),pack_usd:(c==null?void 0:c.usd)??null}),k(te(u)),h("error")}},[c,o,s,a]),pe=l.useCallback(async r=>{if(!o){f();return}k(null),_(!1),F(r),h(v==="mock"?"processing":"redirecting"),g("Shop Started Buy Credits",{pack_usd:r.usd,credits:r.credits,provider:v});try{const d=await Ce(r.id,{address:o.address,identity:o.identity});if(d.mock)T(d.orderId);else if(d.url)g("Shop Redirected To Stripe",{order_id:d.orderId,pack_usd:r.usd,credits:r.credits}),window.location.href=d.url;else throw new Error("Checkout did not return a redirect url")}catch(d){G(d,{flow:"get_credits",step:"checkout",provider:v}),g("Shop Buy Credits Failed",{step:"checkout",error_code:U(d),pack_usd:r.usd}),k(te(d)),h("error")}},[o,f,T]),A=l.useRef(!1);l.useEffect(()=>{if(A.current)return;const r=m.get("order");if(m.get("canceled")!=null){A.current=!0,g("Shop Buy Credits Cancelled",{order_id:r,provider:v}),r&&o&&be(r,o.identity),I(),_(!0),h("select");return}r&&(h("processing"),o&&(A.current=!0,I(),T(r)))},[m,o]);function z(){var r;(r=R.current)==null||r.abort(),h("select"),F(null),L(null),k(null),_(!1)}return t.jsxs(_e,{children:[(x==="select"||x==="redirecting")&&t.jsxs(Re,{"data-testid":"credits-hero",children:[t.jsx(Te,{"aria-hidden":!0}),t.jsxs(Ae,{$hidden:x==="redirecting",children:[t.jsxs(ze,{children:[t.jsx(Be,{children:n("getCredits.title",{currency:p.name})}),t.jsxs(Ee,{children:[t.jsx(Fe,{children:n("getCredits.subtitle",{currency:p.nameSingular})}),t.jsxs(Le,{href:kt,target:"_blank",rel:"noreferrer",children:[n("getCredits.learnMore"),t.jsx(ie,{name:"link-out"})]})]})]}),le&&t.jsx(Ie,{role:"status",children:n("getCredits.canceledNote")}),t.jsx(Ct,{packs:$,loading:y,onSelect:r=>void pe(r)})]}),x==="redirecting"&&t.jsxs(qe,{role:"status","aria-live":"polite",children:[t.jsx(Je,{src:H,alt:"",width:72,height:72}),t.jsx(Xe,{children:n("getCredits.redirecting")})]})]}),x==="processing"&&t.jsxs(Ze,{role:"status","aria-live":"polite",children:[t.jsx(se,{src:H,alt:"",width:61,height:61}),t.jsxs(et,{children:[t.jsxs(tt,{children:[t.jsx("strong",{children:n("getCredits.processing")}),"…"]}),t.jsxs(it,{"aria-hidden":!0,children:[t.jsx(nt,{children:t.jsx(ot,{})}),t.jsx(st,{children:"1/1"})]})]})]}),x==="success"&&t.jsxs(at,{role:"status","aria-live":"polite",children:[t.jsxs(dt,{children:[t.jsx(ct,{src:Se,alt:"",width:60,height:60}),t.jsxs(lt,{children:[t.jsx("strong",{children:n("getCredits.successTitle")})," ",n("getCredits.successBody",{currency:p.name})]})]}),j!=null&&t.jsx(pt,{children:t.jsxs(ht,{children:[t.jsx(xt,{src:de,alt:"",width:93,height:93}),t.jsxs(ut,{children:[t.jsx(re,{}),t.jsxs("span",{children:[t.jsx(gt,{children:n("getCredits.creditsAmount",{credits:j,currency:p.name})})," ",t.jsx(ft,{children:n("getCredits.creditsAdded")})]})]})]})}),t.jsxs(mt,{children:[t.jsx(C,{"data-variant":"outline",onClick:z,children:n("getCredits.buyMore",{currency:p.name})}),t.jsx(C,{onClick:()=>a("/items"),children:n("getCredits.startShopping")})]})]}),x==="pending"&&t.jsxs(Q,{role:"status","aria-live":"polite",children:[t.jsx(Z,{children:n("getCredits.pendingTitle",{currency:p.name})}),t.jsx(Ve,{children:n("getCredits.pendingBody")}),t.jsxs(J,{children:[t.jsx(C,{onClick:()=>a("/items"),children:n("getCredits.startShopping")}),t.jsx(C,{"data-variant":"outline",onClick:z,children:n("getCredits.done")})]})]}),x==="error"&&t.jsxs(Q,{role:"alert",children:[t.jsx(Z,{"data-tone":"error",children:n("getCredits.errorTitle")}),t.jsx(bt,{children:ce}),t.jsx(J,{children:t.jsx(C,{onClick:z,children:n("getCredits.tryAgain")})})]})]})}function Ct({packs:a,loading:o,onSelect:f}){return o?t.jsx(Y,{"aria-busy":"true","aria-label":n("getCredits.packsLoading",{currency:p.name}),children:[0,1,2,3].map(s=>t.jsxs(V,{as:"div","data-skeleton":"true","data-testid":"pack-skeleton","aria-hidden":!0,children:[t.jsxs(q,{children:[t.jsx(X,{children:t.jsx(De,{})}),t.jsx(Ke,{})]}),t.jsx(Ye,{})]},s))}):t.jsx(Y,{children:a.map((s,m)=>{const b=$e(s,a);return t.jsxs(V,{type:"button","data-testid":"pack","data-best":s.bestValue?"true":void 0,onClick:()=>f(s),"aria-label":b?n("getCredits.packAriaBonus",{amount:O(s.credits),usd:s.usd,bonus:b.bonus,baseline:b.baseline}):n("getCredits.packAria",{amount:O(s.credits),usd:s.usd}),children:[s.bestValue&&t.jsxs(We,{children:[t.jsx(ie,{name:"star-rounded"}),n("getCredits.packBadge")]}),t.jsxs(q,{children:[t.jsxs(X,{children:[t.jsxs(Me,{children:[t.jsx(re,{}),t.jsx(Ne,{children:s.credits})]}),t.jsx(Ge,{children:n("getCredits.packUnit",{currency:p.name})})]}),t.jsx(Ue,{children:t.jsx("img",{src:yt(s,m),alt:"",loading:"lazy",width:507,height:507,onError:$=>{const y=$.currentTarget;y.dataset.artFallback||(y.dataset.artFallback="done",y.src=ae(s,m))}})})]}),t.jsxs(He,{children:["$",s.usd.toFixed(2)]})]},s.id)})})}export{At as GetCredits,At as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aa as ct,ab as N,cl as jt,a9 as Fe}from"./index-CVsFBRi4.js";import{h as Tt,R as St,r as S,j as nt,a as Ue,i as _e,g as Ve}from"./react-DehiWSvs.js";import{r as Ie,s as qe}from"./styled-zAnjhJ-0.js";import{d as Xe,b as Ge}from"./clsx-WwvpwSg0.js";import{_ as Ye,T as we,u as xt,s as ae,o as se,a as ze}from"./createSvgIcon-Bcodx_4R.js";import{u as Ze}from"./useTheme-DQklrtt-.js";const le={disabled:!1};var Ke=function(e){return e.scrollTop},ht="unmounted",Q="exited",tt="entering",at="entered",Ht="exiting",Y=(function(t){Ye(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Q,i.appearStatus=tt):l=at:r.unmountOnExit||r.mountOnEnter?l=ht:l=Q,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===ht?{status:Q}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==tt&&a!==at&&(i=tt):(a===tt||a===at)&&(i=Ht)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===tt){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Tt.findDOMNode(this);a&&Ke(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Q&&this.setState({status:ht})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Tt.findDOMNode(this),s],f=l[0],u=l[1],c=this.getTimeouts(),m=s?c.appear:c.enter;if(!o&&!a||le.disabled){this.safeSetState({status:at},function(){i.props.onEntered(f)});return}this.props.onEnter(f,u),this.safeSetState({status:tt},function(){i.props.onEntering(f,u),i.onTransitionEnd(m,function(){i.safeSetState({status:at},function(){i.props.onEntered(f,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Tt.findDOMNode(this);if(!i||le.disabled){this.safeSetState({status:Q},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ht},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Q},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Tt.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=l[0],u=l[1];this.props.addEndListener(f,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ht)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=ct(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return St.createElement(we.Provider,{value:null},typeof a=="function"?a(o,s):St.cloneElement(St.Children.only(a),s))},e})(St.Component);Y.contextType=we;Y.propTypes={};function it(){}Y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:it,onEntering:it,onEntered:it,onExit:it,onExiting:it,onExited:it};Y.UNMOUNTED=ht;Y.EXITED=Q;Y.ENTERING=tt;Y.ENTERED=at;Y.EXITING=Ht;const Je=t=>t.scrollTop;function ue(t,e){var n,r;const{timeout:o,easing:i,style:a={}}=t;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[e.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[e.mode]:i,delay:a.transitionDelay}}function Qe(t){return typeof t=="string"}function tn(t,e,n){return t===void 0||Qe(t)?e:N({},e,{ownerState:N({},e.ownerState,n)})}const en={disableDefaultClasses:!1},nn=S.createContext(en);function rn(t){const{disableDefaultClasses:e}=S.useContext(nn);return n=>e?"":t(n)}function on(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function an(t,e,n){return typeof t=="function"?t(e,n):t}function Oe(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=Oe(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function fe(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=Oe(t))&&(r&&(r+=" "),r+=e);return r}function ce(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function sn(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=t;if(!e){const v=fe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),x=N({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=N({},n,o,r);return v.length>0&&(p.className=v),Object.keys(x).length>0&&(p.style=x),{props:p,internalRef:void 0}}const a=on(N({},o,r)),s=ce(r),l=ce(o),f=e(a),u=fe(f==null?void 0:f.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),c=N({},f==null?void 0:f.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=N({},f,n,l,s);return u.length>0&&(m.className=u),Object.keys(c).length>0&&(m.style=c),{props:m,internalRef:f.ref}}const ln=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function un(t){var e;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=t,a=ct(t,ln),s=i?{}:an(r,o),{props:l,internalRef:f}=sn(N({},a,{externalSlotProps:s})),u=xt(f,s==null?void 0:s.ref,(e=t.additionalProps)==null?void 0:e.ref);return tn(n,N({},l,{ref:u}),o)}const Pe="base";function fn(t){return`${Pe}--${t}`}function cn(t,e){return`${Pe}-${t}-${e}`}function pn(t,e){const n=Xe[e];return n?fn(n):cn(t,e)}function dn(t){return typeof t=="function"?t():t}const vn=S.forwardRef(function(e,n){const{children:r,container:o,disablePortal:i=!1}=e,[a,s]=S.useState(null),l=xt(S.isValidElement(r)?r.ref:null,n);if(jt(()=>{i||s(dn(o)||document.body)},[o,i]),jt(()=>{if(a&&!i)return ae(n,a),()=>{ae(n,null)}},[n,a,i]),i){if(S.isValidElement(r)){const f={ref:l};return S.cloneElement(r,f)}return nt.jsx(S.Fragment,{children:r})}return nt.jsx(S.Fragment,{children:a&&Ue.createPortal(r,a)})});var L="top",U="bottom",_="right",W="left",It="auto",wt=[L,U,_,W],st="start",bt="end",mn="clippingParents",Re="viewport",vt="popper",hn="reference",pe=wt.reduce(function(t,e){return t.concat([e+"-"+st,e+"-"+bt])},[]),Ce=[].concat(wt,[It]).reduce(function(t,e){return t.concat([e,e+"-"+st,e+"-"+bt])},[]),gn="beforeRead",yn="read",xn="afterRead",bn="beforeMain",En="main",wn="afterMain",On="beforeWrite",Pn="write",Rn="afterWrite",Cn=[gn,yn,xn,bn,En,wn,On,Pn,Rn];function X(t){return t?(t.nodeName||"").toLowerCase():null}function H(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function rt(t){var e=H(t).Element;return t instanceof e||t instanceof Element}function F(t){var e=H(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function qt(t){if(typeof ShadowRoot>"u")return!1;var e=H(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Tn(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!F(i)||!X(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function Sn(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=a.reduce(function(l,f){return l[f]="",l},{});!F(o)||!X(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Dn={name:"applyStyles",enabled:!0,phase:"write",fn:Tn,effect:Sn,requires:["computeStyles"]};function q(t){return t.split("-")[0]}var et=Math.max,kt=Math.min,lt=Math.round;function Ft(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Te(){return!/^((?!chrome|android).)*safari/i.test(Ft())}function ut(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&F(t)&&(o=t.offsetWidth>0&<(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&<(r.height)/t.offsetHeight||1);var a=rt(t)?H(t):window,s=a.visualViewport,l=!Te()&&n,f=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,c=r.width/o,m=r.height/i;return{width:c,height:m,top:u,right:f+c,bottom:u+m,left:f,x:f,y:u}}function Xt(t){var e=ut(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Se(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&qt(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function G(t){return H(t).getComputedStyle(t)}function An(t){return["table","td","th"].indexOf(X(t))>=0}function Z(t){return((rt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Nt(t){return X(t)==="html"?t:t.assignedSlot||t.parentNode||(qt(t)?t.host:null)||Z(t)}function de(t){return!F(t)||G(t).position==="fixed"?null:t.offsetParent}function jn(t){var e=/firefox/i.test(Ft()),n=/Trident/i.test(Ft());if(n&&F(t)){var r=G(t);if(r.position==="fixed")return null}var o=Nt(t);for(qt(o)&&(o=o.host);F(o)&&["html","body"].indexOf(X(o))<0;){var i=G(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ot(t){for(var e=H(t),n=de(t);n&&An(n)&&G(n).position==="static";)n=de(n);return n&&(X(n)==="html"||X(n)==="body"&&G(n).position==="static")?e:n||jn(t)||e}function Gt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function gt(t,e,n){return et(t,kt(e,n))}function kn(t,e,n){var r=gt(t,e,n);return r>n?n:r}function De(){return{top:0,right:0,bottom:0,left:0}}function Ae(t){return Object.assign({},De(),t)}function je(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Nn=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Ae(typeof e!="number"?e:je(e,wt))};function $n(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=q(n.placement),l=Gt(s),f=[W,_].indexOf(s)>=0,u=f?"height":"width";if(!(!i||!a)){var c=Nn(o.padding,n),m=Xt(i),v=l==="y"?L:W,x=l==="y"?U:_,p=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],g=a[l]-n.rects.reference[l],w=Ot(i),P=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,b=p/2-g/2,d=c[v],h=P-m[u]-c[x],y=P/2-m[u]/2+b,E=gt(d,y,h),D=l;n.modifiersData[r]=(e={},e[D]=E,e.centerOffset=E-y,e)}}function Mn(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||Se(e.elements.popper,o)&&(e.elements.arrow=o))}const Ln={name:"arrow",enabled:!0,phase:"main",fn:$n,effect:Mn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ft(t){return t.split("-")[1]}var Wn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bn(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:lt(n*o)/o||0,y:lt(r*o)/o||0}}function ve(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,f=t.adaptive,u=t.roundOffsets,c=t.isFixed,m=a.x,v=m===void 0?0:m,x=a.y,p=x===void 0?0:x,g=typeof u=="function"?u({x:v,y:p}):{x:v,y:p};v=g.x,p=g.y;var w=a.hasOwnProperty("x"),P=a.hasOwnProperty("y"),b=W,d=L,h=window;if(f){var y=Ot(n),E="clientHeight",D="clientWidth";if(y===H(n)&&(y=Z(n),G(y).position!=="static"&&s==="absolute"&&(E="scrollHeight",D="scrollWidth")),y=y,o===L||(o===W||o===_)&&i===bt){d=U;var T=c&&y===h&&h.visualViewport?h.visualViewport.height:y[E];p-=T-r.height,p*=l?1:-1}if(o===W||(o===L||o===U)&&i===bt){b=_;var C=c&&y===h&&h.visualViewport?h.visualViewport.width:y[D];v-=C-r.width,v*=l?1:-1}}var j=Object.assign({position:s},f&&Wn),M=u===!0?Bn({x:v,y:p},H(n)):{x:v,y:p};if(v=M.x,p=M.y,l){var k;return Object.assign({},j,(k={},k[d]=P?"0":"",k[b]=w?"0":"",k.transform=(h.devicePixelRatio||1)<=1?"translate("+v+"px, "+p+"px)":"translate3d("+v+"px, "+p+"px, 0)",k))}return Object.assign({},j,(e={},e[d]=P?p+"px":"",e[b]=w?v+"px":"",e.transform="",e))}function Hn(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,f={placement:q(e.placement),variation:ft(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ve(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ve(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Fn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Hn,data:{}};var Dt={passive:!0};function Un(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=H(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&f.forEach(function(u){u.addEventListener("scroll",n.update,Dt)}),s&&l.addEventListener("resize",n.update,Dt),function(){i&&f.forEach(function(u){u.removeEventListener("scroll",n.update,Dt)}),s&&l.removeEventListener("resize",n.update,Dt)}}const _n={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Un,data:{}};var Vn={left:"right",right:"left",bottom:"top",top:"bottom"};function At(t){return t.replace(/left|right|bottom|top/g,function(e){return Vn[e]})}var In={start:"end",end:"start"};function me(t){return t.replace(/start|end/g,function(e){return In[e]})}function Yt(t){var e=H(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function zt(t){return ut(Z(t)).left+Yt(t).scrollLeft}function qn(t,e){var n=H(t),r=Z(t),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var f=Te();(f||!f&&e==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+zt(t),y:l}}function Xn(t){var e,n=Z(t),r=Yt(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=et(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=et(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+zt(t),l=-r.scrollTop;return G(o||n).direction==="rtl"&&(s+=et(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function Zt(t){var e=G(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ke(t){return["html","body","#document"].indexOf(X(t))>=0?t.ownerDocument.body:F(t)&&Zt(t)?t:ke(Nt(t))}function yt(t,e){var n;e===void 0&&(e=[]);var r=ke(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=H(r),a=o?[i].concat(i.visualViewport||[],Zt(r)?r:[]):r,s=e.concat(a);return o?s:s.concat(yt(Nt(a)))}function Ut(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Gn(t,e){var n=ut(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function he(t,e,n){return e===Re?Ut(qn(t,n)):rt(e)?Gn(e,n):Ut(Xn(Z(t)))}function Yn(t){var e=yt(Nt(t)),n=["absolute","fixed"].indexOf(G(t).position)>=0,r=n&&F(t)?Ot(t):t;return rt(r)?e.filter(function(o){return rt(o)&&Se(o,r)&&X(o)!=="body"}):[]}function zn(t,e,n,r){var o=e==="clippingParents"?Yn(t):[].concat(e),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,f){var u=he(t,f,r);return l.top=et(u.top,l.top),l.right=kt(u.right,l.right),l.bottom=kt(u.bottom,l.bottom),l.left=et(u.left,l.left),l},he(t,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ne(t){var e=t.reference,n=t.element,r=t.placement,o=r?q(r):null,i=r?ft(r):null,a=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(o){case L:l={x:a,y:e.y-n.height};break;case U:l={x:a,y:e.y+e.height};break;case _:l={x:e.x+e.width,y:s};break;case W:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var f=o?Gt(o):null;if(f!=null){var u=f==="y"?"height":"width";switch(i){case st:l[f]=l[f]-(e[u]/2-n[u]/2);break;case bt:l[f]=l[f]+(e[u]/2-n[u]/2);break}}return l}function Et(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,a=i===void 0?t.strategy:i,s=n.boundary,l=s===void 0?mn:s,f=n.rootBoundary,u=f===void 0?Re:f,c=n.elementContext,m=c===void 0?vt:c,v=n.altBoundary,x=v===void 0?!1:v,p=n.padding,g=p===void 0?0:p,w=Ae(typeof g!="number"?g:je(g,wt)),P=m===vt?hn:vt,b=t.rects.popper,d=t.elements[x?P:m],h=zn(rt(d)?d:d.contextElement||Z(t.elements.popper),l,u,a),y=ut(t.elements.reference),E=Ne({reference:y,element:b,placement:o}),D=Ut(Object.assign({},b,E)),T=m===vt?D:y,C={top:h.top-T.top+w.top,bottom:T.bottom-h.bottom+w.bottom,left:h.left-T.left+w.left,right:T.right-h.right+w.right},j=t.modifiersData.offset;if(m===vt&&j){var M=j[o];Object.keys(C).forEach(function(k){var V=[_,U].indexOf(k)>=0?1:-1,O=[L,U].indexOf(k)>=0?"y":"x";C[k]+=M[O]*V})}return C}function Zn(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,f=l===void 0?Ce:l,u=ft(r),c=u?s?pe:pe.filter(function(x){return ft(x)===u}):wt,m=c.filter(function(x){return f.indexOf(x)>=0});m.length===0&&(m=c);var v=m.reduce(function(x,p){return x[p]=Et(t,{placement:p,boundary:o,rootBoundary:i,padding:a})[q(p)],x},{});return Object.keys(v).sort(function(x,p){return v[x]-v[p]})}function Kn(t){if(q(t)===It)return[];var e=At(t);return[me(t),e,me(e)]}function Jn(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,f=n.padding,u=n.boundary,c=n.rootBoundary,m=n.altBoundary,v=n.flipVariations,x=v===void 0?!0:v,p=n.allowedAutoPlacements,g=e.options.placement,w=q(g),P=w===g,b=l||(P||!x?[At(g)]:Kn(g)),d=[g].concat(b).reduce(function(ot,z){return ot.concat(q(z)===It?Zn(e,{placement:z,boundary:u,rootBoundary:c,padding:f,flipVariations:x,allowedAutoPlacements:p}):z)},[]),h=e.rects.reference,y=e.rects.popper,E=new Map,D=!0,T=d[0],C=0;C<d.length;C++){var j=d[C],M=q(j),k=ft(j)===st,V=[L,U].indexOf(M)>=0,O=V?"width":"height",R=Et(e,{placement:j,boundary:u,rootBoundary:c,altBoundary:m,padding:f}),A=V?k?_:W:k?U:L;h[O]>y[O]&&(A=At(A));var B=At(A),$=[];if(i&&$.push(R[M]<=0),s&&$.push(R[A]<=0,R[B]<=0),$.every(function(ot){return ot})){T=j,D=!1;break}E.set(j,$)}if(D)for(var I=x?3:1,$t=function(z){var dt=d.find(function(Rt){var K=E.get(Rt);if(K)return K.slice(0,z).every(function(Mt){return Mt})});if(dt)return T=dt,"break"},pt=I;pt>0;pt--){var Pt=$t(pt);if(Pt==="break")break}e.placement!==T&&(e.modifiersData[r]._skip=!0,e.placement=T,e.reset=!0)}}const Qn={name:"flip",enabled:!0,phase:"main",fn:Jn,requiresIfExists:["offset"],data:{_skip:!1}};function ge(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function ye(t){return[L,_,U,W].some(function(e){return t[e]>=0})}function tr(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=Et(e,{elementContext:"reference"}),s=Et(e,{altBoundary:!0}),l=ge(a,r),f=ge(s,o,i),u=ye(l),c=ye(f);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:u,hasPopperEscaped:c},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}const er={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tr};function nr(t,e,n){var r=q(t),o=[W,L].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[W,_].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function rr(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,a=Ce.reduce(function(u,c){return u[c]=nr(c,e.rects,i),u},{}),s=a[e.placement],l=s.x,f=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=f),e.modifiersData[r]=a}const or={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rr};function ir(t){var e=t.state,n=t.name;e.modifiersData[n]=Ne({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const ar={name:"popperOffsets",enabled:!0,phase:"read",fn:ir,data:{}};function sr(t){return t==="x"?"y":"x"}function lr(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,f=n.rootBoundary,u=n.altBoundary,c=n.padding,m=n.tether,v=m===void 0?!0:m,x=n.tetherOffset,p=x===void 0?0:x,g=Et(e,{boundary:l,rootBoundary:f,padding:c,altBoundary:u}),w=q(e.placement),P=ft(e.placement),b=!P,d=Gt(w),h=sr(d),y=e.modifiersData.popperOffsets,E=e.rects.reference,D=e.rects.popper,T=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,C=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),j=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,M={x:0,y:0};if(y){if(i){var k,V=d==="y"?L:W,O=d==="y"?U:_,R=d==="y"?"height":"width",A=y[d],B=A+g[V],$=A-g[O],I=v?-D[R]/2:0,$t=P===st?E[R]:D[R],pt=P===st?-D[R]:-E[R],Pt=e.elements.arrow,ot=v&&Pt?Xt(Pt):{width:0,height:0},z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:De(),dt=z[V],Rt=z[O],K=gt(0,E[R],ot[R]),Mt=b?E[R]/2-I-K-dt-C.mainAxis:$t-K-dt-C.mainAxis,$e=b?-E[R]/2+I+K+Rt+C.mainAxis:pt+K+Rt+C.mainAxis,Lt=e.elements.arrow&&Ot(e.elements.arrow),Me=Lt?d==="y"?Lt.clientTop||0:Lt.clientLeft||0:0,Kt=(k=j==null?void 0:j[d])!=null?k:0,Le=A+Mt-Kt-Me,We=A+$e-Kt,Jt=gt(v?kt(B,Le):B,A,v?et($,We):$);y[d]=Jt,M[d]=Jt-A}if(s){var Qt,Be=d==="x"?L:W,He=d==="x"?U:_,J=y[h],Ct=h==="y"?"height":"width",te=J+g[Be],ee=J-g[He],Wt=[L,W].indexOf(w)!==-1,ne=(Qt=j==null?void 0:j[h])!=null?Qt:0,re=Wt?te:J-E[Ct]-D[Ct]-ne+C.altAxis,oe=Wt?J+E[Ct]+D[Ct]-ne-C.altAxis:ee,ie=v&&Wt?kn(re,J,oe):gt(v?re:te,J,v?oe:ee);y[h]=ie,M[h]=ie-J}e.modifiersData[r]=M}}const ur={name:"preventOverflow",enabled:!0,phase:"main",fn:lr,requiresIfExists:["offset"]};function fr(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function cr(t){return t===H(t)||!F(t)?Yt(t):fr(t)}function pr(t){var e=t.getBoundingClientRect(),n=lt(e.width)/t.offsetWidth||1,r=lt(e.height)/t.offsetHeight||1;return n!==1||r!==1}function dr(t,e,n){n===void 0&&(n=!1);var r=F(e),o=F(e)&&pr(e),i=Z(e),a=ut(t,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((X(e)!=="body"||Zt(i))&&(s=cr(e)),F(e)?(l=ut(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=zt(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function vr(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=e.get(s);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function mr(t){var e=vr(t);return Cn.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function hr(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function gr(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var xe={placement:"bottom",modifiers:[],strategy:"absolute"};function be(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function yr(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?xe:o;return function(s,l,f){f===void 0&&(f=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},xe,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},c=[],m=!1,v={state:u,setOptions:function(w){var P=typeof w=="function"?w(u.options):w;p(),u.options=Object.assign({},i,u.options,P),u.scrollParents={reference:rt(s)?yt(s):s.contextElement?yt(s.contextElement):[],popper:yt(l)};var b=mr(gr([].concat(r,u.options.modifiers)));return u.orderedModifiers=b.filter(function(d){return d.enabled}),x(),v.update()},forceUpdate:function(){if(!m){var w=u.elements,P=w.reference,b=w.popper;if(be(P,b)){u.rects={reference:dr(P,Ot(b),u.options.strategy==="fixed"),popper:Xt(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(C){return u.modifiersData[C.name]=Object.assign({},C.data)});for(var d=0;d<u.orderedModifiers.length;d++){if(u.reset===!0){u.reset=!1,d=-1;continue}var h=u.orderedModifiers[d],y=h.fn,E=h.options,D=E===void 0?{}:E,T=h.name;typeof y=="function"&&(u=y({state:u,options:D,name:T,instance:v})||u)}}}},update:hr(function(){return new Promise(function(g){v.forceUpdate(),g(u)})}),destroy:function(){p(),m=!0}};if(!be(s,l))return v;v.setOptions(f).then(function(g){!m&&f.onFirstUpdate&&f.onFirstUpdate(g)});function x(){u.orderedModifiers.forEach(function(g){var w=g.name,P=g.options,b=P===void 0?{}:P,d=g.effect;if(typeof d=="function"){var h=d({state:u,name:w,instance:v,options:b}),y=function(){};c.push(h||y)}})}function p(){c.forEach(function(g){return g()}),c=[]}return v}}var xr=[_n,ar,Fn,Dn,or,Qn,ur,Ln,er],br=yr({defaultModifiers:xr});const Er="Popper";function wr(t){return pn(Er,t)}const Or=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Pr=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Rr(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function _t(t){return typeof t=="function"?t():t}function Cr(t){return t.nodeType!==void 0}const Tr=()=>Ge({root:["root"]},rn(wr)),Sr={},Dr=S.forwardRef(function(e,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:f,placement:u,popperOptions:c,popperRef:m,slotProps:v={},slots:x={},TransitionProps:p}=e,g=ct(e,Or),w=S.useRef(null),P=xt(w,n),b=S.useRef(null),d=xt(b,m),h=S.useRef(d);jt(()=>{h.current=d},[d]),S.useImperativeHandle(m,()=>b.current,[]);const y=Rr(u,a),[E,D]=S.useState(y),[T,C]=S.useState(_t(o));S.useEffect(()=>{b.current&&b.current.forceUpdate()}),S.useEffect(()=>{o&&C(_t(o))},[o]),jt(()=>{if(!T||!f)return;const O=B=>{D(B.placement)};let R=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{O(B)}}];l!=null&&(R=R.concat(l)),c&&c.modifiers!=null&&(R=R.concat(c.modifiers));const A=br(T,w.current,N({placement:y},c,{modifiers:R}));return h.current(A),()=>{A.destroy(),h.current(null)}},[T,s,l,f,c,y]);const j={placement:E};p!==null&&(j.TransitionProps=p);const M=Tr(),k=(r=x.root)!=null?r:"div",V=un({elementType:k,externalSlotProps:v.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:P},ownerState:e,className:M.root});return nt.jsx(k,N({},V,{children:typeof i=="function"?i(j):i}))}),Ar=S.forwardRef(function(e,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:f,open:u,placement:c="bottom",popperOptions:m=Sr,popperRef:v,style:x,transition:p=!1,slotProps:g={},slots:w={}}=e,P=ct(e,Pr),[b,d]=S.useState(!0),h=()=>{d(!1)},y=()=>{d(!0)};if(!l&&!u&&(!p||b))return null;let E;if(i)E=i;else if(r){const C=_t(r);E=C&&Cr(C)?se(C).body:se(null).body}const D=!u&&l&&(!p||b)?"none":void 0,T=p?{in:u,onEnter:h,onExited:y}:void 0;return nt.jsx(vn,{disablePortal:s,container:E,children:nt.jsx(Dr,N({anchorEl:r,direction:a,disablePortal:s,modifiers:f,ref:n,open:p?!b:u,placement:c,popperOptions:m,popperRef:v,slotProps:g,slots:w},P,{style:N({position:"fixed",top:0,left:0,display:D},x),TransitionProps:T,children:o}))})});var mt={},Ee;function jr(){if(Ee)return mt;Ee=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.default=void 0;var t=r(_e()),e=Ie;function n(a){if(typeof WeakMap!="function")return null;var s=new WeakMap,l=new WeakMap;return(n=function(f){return f?l:s})(a)}function r(a,s){if(a&&a.__esModule)return a;if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var l=n(s);if(l&&l.has(a))return l.get(a);var f={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in a)if(c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)){var m=u?Object.getOwnPropertyDescriptor(a,c):null;m&&(m.get||m.set)?Object.defineProperty(f,c,m):f[c]=a[c]}return f.default=a,l&&l.set(a,f),f}function o(a){return Object.keys(a).length===0}function i(a=null){const s=t.useContext(e.ThemeContext);return!s||o(s)?a:s}return mt.default=i,mt}var kr=jr();const Nr=Ve(kr),$r=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Mr=qe(Ar,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),qr=S.forwardRef(function(e,n){var r;const o=Nr(),i=Fe({props:e,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:f,container:u,disablePortal:c,keepMounted:m,modifiers:v,open:x,placement:p,popperOptions:g,popperRef:w,transition:P,slots:b,slotProps:d}=i,h=ct(i,$r),y=(r=b==null?void 0:b.root)!=null?r:l==null?void 0:l.Root,E=N({anchorEl:a,container:u,disablePortal:c,keepMounted:m,modifiers:v,open:x,placement:p,popperOptions:g,popperRef:w,transition:P},h);return nt.jsx(Mr,N({as:s,direction:o==null?void 0:o.direction,slots:{root:y},slotProps:d??f},E,{ref:n}))}),Lr=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Vt(t){return`scale(${t}, ${t**2})`}const Wr={entering:{opacity:1,transform:Vt(1)},entered:{opacity:1,transform:"none"}},Bt=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Br=S.forwardRef(function(e,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:f,onEntering:u,onExit:c,onExited:m,onExiting:v,style:x,timeout:p="auto",TransitionComponent:g=Y}=e,w=ct(e,Lr),P=ze(),b=S.useRef(),d=Ze(),h=S.useRef(null),y=xt(h,i.ref,n),E=O=>R=>{if(O){const A=h.current;R===void 0?O(A):O(A,R)}},D=E(u),T=E((O,R)=>{Je(O);const{duration:A,delay:B,easing:$}=ue({style:x,timeout:p,easing:a},{mode:"enter"});let I;p==="auto"?(I=d.transitions.getAutoHeightDuration(O.clientHeight),b.current=I):I=A,O.style.transition=[d.transitions.create("opacity",{duration:I,delay:B}),d.transitions.create("transform",{duration:Bt?I:I*.666,delay:B,easing:$})].join(","),l&&l(O,R)}),C=E(f),j=E(v),M=E(O=>{const{duration:R,delay:A,easing:B}=ue({style:x,timeout:p,easing:a},{mode:"exit"});let $;p==="auto"?($=d.transitions.getAutoHeightDuration(O.clientHeight),b.current=$):$=R,O.style.transition=[d.transitions.create("opacity",{duration:$,delay:A}),d.transitions.create("transform",{duration:Bt?$:$*.666,delay:Bt?A:A||$*.333,easing:B})].join(","),O.style.opacity=0,O.style.transform=Vt(.75),c&&c(O)}),k=E(m),V=O=>{p==="auto"&&P.start(b.current||0,O),r&&r(h.current,O)};return nt.jsx(g,N({appear:o,in:s,nodeRef:h,onEnter:T,onEntered:C,onEntering:D,onExit:M,onExited:k,onExiting:j,addEndListener:V,timeout:p==="auto"?null:p},w,{children:(O,R)=>S.cloneElement(i,N({style:N({opacity:0,transform:Vt(.75),visibility:O==="exited"&&!s?"hidden":void 0},Wr[O],x,i.props.style),ref:y},R))}))});Br.muiSupportAuto=!0;export{Br as G,qr as P,tn as a,on as e,Qe as i,un as u};
|