@dcl/landing-site 0.5.1-24803483354.commit-bb6520e → 0.5.1-24846465451.commit-1f3abc7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/assets/{AccessTime-DpsycoTx.js → AccessTime-HgE1uMjl.js} +1 -1
  2. package/assets/{AccessTime-DpsycoTx.js.map → AccessTime-HgE1uMjl.js.map} +1 -1
  3. package/assets/{Add-CtUiG6Qa.js → Add-DWpGYLEy.js} +1 -1
  4. package/assets/{Add-CtUiG6Qa.js.map → Add-DWpGYLEy.js.map} +1 -1
  5. package/assets/AdminLayout.styled-CQwL2XEi.js +1 -0
  6. package/assets/AdminLayout.styled-CQwL2XEi.js.map +1 -0
  7. package/assets/{AnimatedBackground-CO__t7bG.js → AnimatedBackground-CY9KApzI.js} +2 -2
  8. package/assets/{AnimatedBackground-CO__t7bG.js.map → AnimatedBackground-CY9KApzI.js.map} +1 -1
  9. package/assets/{AnimatedSection-CpvtnDxq.js → AnimatedSection-atlqhaaJ.js} +1 -1
  10. package/assets/{AnimatedSection-CpvtnDxq.js.map → AnimatedSection-atlqhaaJ.js.map} +1 -1
  11. package/assets/{AuthorPage-Bpt5CD2Q.js → AuthorPage-OXQ0S0tL.js} +1 -1
  12. package/assets/{AuthorPage-Bpt5CD2Q.js.map → AuthorPage-OXQ0S0tL.js.map} +1 -1
  13. package/assets/{Avatar-DM27A1Qp.js → Avatar-UH4W2WAk.js} +1 -1
  14. package/assets/{Avatar-DM27A1Qp.js.map → Avatar-UH4W2WAk.js.map} +1 -1
  15. package/assets/{AvatarFace-L7ktQqoW.js → AvatarFace-8lGZVR0F.js} +1 -1
  16. package/assets/{AvatarFace-L7ktQqoW.js.map → AvatarFace-8lGZVR0F.js.map} +1 -1
  17. package/assets/{Badges-Cfdyl8RH.js → Badges-DIf7qRfK.js} +1 -1
  18. package/assets/{Badges-Cfdyl8RH.js.map → Badges-DIf7qRfK.js.map} +1 -1
  19. package/assets/{BlogLayout-C4txjesH.js → BlogLayout-Bvlb_hEZ.js} +1 -1
  20. package/assets/{BlogLayout-C4txjesH.js.map → BlogLayout-Bvlb_hEZ.js.map} +1 -1
  21. package/assets/{BlogPage-Ck61T45y.js → BlogPage-D3i9CzrU.js} +1 -1
  22. package/assets/{BlogPage-Ck61T45y.js.map → BlogPage-D3i9CzrU.js.map} +1 -1
  23. package/assets/{CTAButton-CFiXuCIG.js → CTAButton-CIRbCRyU.js} +1 -1
  24. package/assets/{CTAButton-CFiXuCIG.js.map → CTAButton-CIRbCRyU.js.map} +1 -1
  25. package/assets/{CardContent-BmJC2B1l.js → CardContent-THhPoxmR.js} +1 -1
  26. package/assets/{CardContent-BmJC2B1l.js.map → CardContent-THhPoxmR.js.map} +1 -1
  27. package/assets/{CardMedia-BvzeWU4S.js → CardMedia-9XvH5baB.js} +1 -1
  28. package/assets/{CardMedia-BvzeWU4S.js.map → CardMedia-9XvH5baB.js.map} +1 -1
  29. package/assets/{Carousel-ByC5ldRJ.js → Carousel-BqIJDEb9.js} +1 -1
  30. package/assets/{Carousel-ByC5ldRJ.js.map → Carousel-BqIJDEb9.js.map} +1 -1
  31. package/assets/{CategoryPage-BqkILV2z.js → CategoryPage-C4u5o4mh.js} +1 -1
  32. package/assets/{CategoryPage-BqkILV2z.js.map → CategoryPage-C4u5o4mh.js.map} +1 -1
  33. package/assets/{Check-BOF4_DCU.js → Check-CFiKgYJs.js} +1 -1
  34. package/assets/{Check-BOF4_DCU.js.map → Check-CFiKgYJs.js.map} +1 -1
  35. package/assets/{CircleAndArrow-El01hGIC.js → CircleAndArrow-O8sN3E_v.js} +1 -1
  36. package/assets/{CircleAndArrow-El01hGIC.js.map → CircleAndArrow-O8sN3E_v.js.map} +1 -1
  37. package/assets/{CircularProgress-D1x03AKQ.js → CircularProgress-Z0W76ens.js} +1 -1
  38. package/assets/{CircularProgress-D1x03AKQ.js.map → CircularProgress-Z0W76ens.js.map} +1 -1
  39. package/assets/{ContentCopy-C4kDxda3.js → ContentCopy-88ne4JTk.js} +1 -1
  40. package/assets/{ContentCopy-C4kDxda3.js.map → ContentCopy-88ne4JTk.js.map} +1 -1
  41. package/assets/CreateEventPage-HI_5pzkQ.js +16 -0
  42. package/assets/CreateEventPage-HI_5pzkQ.js.map +1 -0
  43. package/assets/{CreatorHubDownload-D_CBz7M3.js → CreatorHubDownload-C_IyZZl2.js} +1 -1
  44. package/assets/{CreatorHubDownload-D_CBz7M3.js.map → CreatorHubDownload-C_IyZZl2.js.map} +1 -1
  45. package/assets/{CreatorHubDownloadSuccess-B5QI-fsj.js → CreatorHubDownloadSuccess-DVGIO7MB.js} +1 -1
  46. package/assets/{CreatorHubDownloadSuccess-B5QI-fsj.js.map → CreatorHubDownloadSuccess-DVGIO7MB.js.map} +1 -1
  47. package/assets/{DappsShell-BC3H8ts9.js → DappsShell-CFZyE77Z.js} +1 -1
  48. package/assets/{DappsShell-BC3H8ts9.js.map → DappsShell-CFZyE77Z.js.map} +1 -1
  49. package/assets/{DownloadSuccessLayout-DUmT7uWX.js → DownloadSuccessLayout-Bqi9ZKaN.js} +1 -1
  50. package/assets/{DownloadSuccessLayout-DUmT7uWX.js.map → DownloadSuccessLayout-Bqi9ZKaN.js.map} +1 -1
  51. package/assets/{EventsPage-C9kUjKcs.js → EventsPage-DQRgzFAr.js} +1 -1
  52. package/assets/{EventsPage-C9kUjKcs.js.map → EventsPage-DQRgzFAr.js.map} +1 -1
  53. package/assets/{Grow-BxJOb7Ur.js → Grow-BHy15Dn2.js} +1 -1
  54. package/assets/{Grow-BxJOb7Ur.js.map → Grow-BHy15Dn2.js.map} +1 -1
  55. package/assets/HomePage-By8bcZyK.js +1 -0
  56. package/assets/HomePage-By8bcZyK.js.map +1 -0
  57. package/assets/{InvalidPage-Bzsjkjz7.js → InvalidPage-Debgf-PV.js} +1 -1
  58. package/assets/{InvalidPage-Bzsjkjz7.js.map → InvalidPage-Debgf-PV.js.map} +1 -1
  59. package/assets/{InviteFaqs-D5mF7omx.js → InviteFaqs-GNUarAeA.js} +1 -1
  60. package/assets/{InviteFaqs-D5mF7omx.js.map → InviteFaqs-GNUarAeA.js.map} +1 -1
  61. package/assets/{InvitePage-BpKnAj4V.js → InvitePage-BWbamxve.js} +2 -2
  62. package/assets/{InvitePage-BpKnAj4V.js.map → InvitePage-BWbamxve.js.map} +1 -1
  63. package/assets/{JumpInButton-CqKycSau.js → JumpInButton-DorJjQyB.js} +1 -1
  64. package/assets/{JumpInButton-CqKycSau.js.map → JumpInButton-DorJjQyB.js.map} +1 -1
  65. package/assets/{JumpInIcon-ZOn0wOk1.js → JumpInIcon-DfpHf5gS.js} +1 -1
  66. package/assets/{JumpInIcon-ZOn0wOk1.js.map → JumpInIcon-DfpHf5gS.js.map} +1 -1
  67. package/assets/{KeyboardArrowRight-BYjm2LN-.js → KeyboardArrowRight-DdkI-avV.js} +1 -1
  68. package/assets/{KeyboardArrowRight-BYjm2LN-.js.map → KeyboardArrowRight-DdkI-avV.js.map} +1 -1
  69. package/assets/{LegacyEventRedirect-dCzyDptD.js → LegacyEventRedirect-DRboznqd.js} +1 -1
  70. package/assets/{LegacyEventRedirect-dCzyDptD.js.map → LegacyEventRedirect-DRboznqd.js.map} +1 -1
  71. package/assets/{LegalPageLayout-DINPtlgk.js → LegalPageLayout-S2fzAMXj.js} +1 -1
  72. package/assets/{LegalPageLayout-DINPtlgk.js.map → LegalPageLayout-S2fzAMXj.js.map} +1 -1
  73. package/assets/{Link-lvNSZJho.js → Link-DzgysiL-.js} +1 -1
  74. package/assets/{Link-lvNSZJho.js.map → Link-DzgysiL-.js.map} +1 -1
  75. package/assets/Menu-GeJMADr-.js +1 -0
  76. package/assets/Menu-GeJMADr-.js.map +1 -0
  77. package/assets/MenuItem-BK7OLKkT.js +1 -0
  78. package/assets/MenuItem-BK7OLKkT.js.map +1 -0
  79. package/assets/{PageContainer.styled-Bbv_6rIn.js → PageContainer.styled-DvE7NPbD.js} +1 -1
  80. package/assets/{PageContainer.styled-Bbv_6rIn.js.map → PageContainer.styled-DvE7NPbD.js.map} +1 -1
  81. package/assets/{Paper-CaFKxPzv.js → Paper-D1WB3MQ6.js} +1 -1
  82. package/assets/{Paper-CaFKxPzv.js.map → Paper-D1WB3MQ6.js.map} +1 -1
  83. package/assets/PendingEventCard-B7JbvnL5.js +3 -0
  84. package/assets/PendingEventCard-B7JbvnL5.js.map +1 -0
  85. package/assets/PendingEventsPage-CcDBEr9M.js +1 -0
  86. package/assets/PendingEventsPage-CcDBEr9M.js.map +1 -0
  87. package/assets/{PlacesPage-Btx40VGe.js → PlacesPage-MkHUyi3j.js} +1 -1
  88. package/assets/{PlacesPage-Btx40VGe.js.map → PlacesPage-MkHUyi3j.js.map} +1 -1
  89. package/assets/{PostCard-SDZ_3aVu.js → PostCard-C61NfgmU.js} +1 -1
  90. package/assets/{PostCard-SDZ_3aVu.js.map → PostCard-C61NfgmU.js.map} +1 -1
  91. package/assets/{PostPage-D9faiVAT.js → PostPage-BCzjf8V1.js} +1 -1
  92. package/assets/{PostPage-D9faiVAT.js.map → PostPage-BCzjf8V1.js.map} +1 -1
  93. package/assets/{PostPage.styled-CzIG7Tl3.js → PostPage.styled-BRWGJ8p8.js} +3 -3
  94. package/assets/{PostPage.styled-CzIG7Tl3.js.map → PostPage.styled-BRWGJ8p8.js.map} +1 -1
  95. package/assets/{PreviewPage-CF-KNgQh.js → PreviewPage-DWebBF8F.js} +1 -1
  96. package/assets/{PreviewPage-CF-KNgQh.js.map → PreviewPage-DWebBF8F.js.map} +1 -1
  97. package/assets/{RemindMeButton-BtxpQEzy.js → RemindMeButton-DnlXMDH0.js} +1 -1
  98. package/assets/{RemindMeButton-BtxpQEzy.js.map → RemindMeButton-DnlXMDH0.js.map} +1 -1
  99. package/assets/{SEO-B1EK7Y3P.js → SEO-5chg1jEQ.js} +1 -1
  100. package/assets/{SEO-B1EK7Y3P.js.map → SEO-5chg1jEQ.js.map} +1 -1
  101. package/assets/{SearchPage-B4wICXqh.js → SearchPage-Db-35tEZ.js} +1 -1
  102. package/assets/{SearchPage-B4wICXqh.js.map → SearchPage-Db-35tEZ.js.map} +1 -1
  103. package/assets/{SignInRedirect-CFIlTqwD.js → SignInRedirect-C1Hp0Nnl.js} +1 -1
  104. package/assets/{SignInRedirect-CFIlTqwD.js.map → SignInRedirect-C1Hp0Nnl.js.map} +1 -1
  105. package/assets/{SignInRedirect-DunroI2V.js → SignInRedirect-DcrAjaP6.js} +1 -1
  106. package/assets/{SignInRedirect-DunroI2V.js.map → SignInRedirect-DcrAjaP6.js.map} +1 -1
  107. package/assets/{Skeleton-iNlScP9H.js → Skeleton-CSFvCtu0.js} +1 -1
  108. package/assets/{Skeleton-iNlScP9H.js.map → Skeleton-CSFvCtu0.js.map} +1 -1
  109. package/assets/Switch-swOw3biA.js +1 -0
  110. package/assets/Switch-swOw3biA.js.map +1 -0
  111. package/assets/TextField-C018XFrK.js +2 -0
  112. package/assets/TextField-C018XFrK.js.map +1 -0
  113. package/assets/{Tooltip-Kem9dSAd.js → Tooltip-CasBLMgX.js} +1 -1
  114. package/assets/{Tooltip-Kem9dSAd.js.map → Tooltip-CasBLMgX.js.map} +1 -1
  115. package/assets/{TwitterEmbed-BRI3ivet.js → TwitterEmbed-CLNUtpsQ.js} +1 -1
  116. package/assets/{TwitterEmbed-BRI3ivet.js.map → TwitterEmbed-CLNUtpsQ.js.map} +1 -1
  117. package/assets/UsersAdminPage-UAdQmyUX.js +2 -0
  118. package/assets/UsersAdminPage-UAdQmyUX.js.map +1 -0
  119. package/assets/{Video-CKs5_Z0w.js → Video-NGhd3LeA.js} +1 -1
  120. package/assets/{Video-CKs5_Z0w.js.map → Video-NGhd3LeA.js.map} +1 -1
  121. package/assets/WearablePreview-BilBSC94.js +4 -0
  122. package/assets/{WearablePreview-Bca5KMOK.js.map → WearablePreview-BilBSC94.js.map} +1 -1
  123. package/assets/{WhatsOnLayout-BiKCXvlg.js → WhatsOnLayout-SFhGzfLv.js} +1 -1
  124. package/assets/{WhatsOnLayout-BiKCXvlg.js.map → WhatsOnLayout-SFhGzfLv.js.map} +1 -1
  125. package/assets/admin.client-B5xGzvMY.js +1 -0
  126. package/assets/admin.client-B5xGzvMY.js.map +1 -0
  127. package/assets/{auto-track-DNEnayEP.js → auto-track-CVCHvRCG.js} +1 -1
  128. package/assets/{auto-track-DNEnayEP.js.map → auto-track-CVCHvRCG.js.map} +1 -1
  129. package/assets/{ccip-BhHvKQc6.js → ccip-YeVOYAND.js} +1 -1
  130. package/assets/{ccip-BhHvKQc6.js.map → ccip-YeVOYAND.js.map} +1 -1
  131. package/assets/{createSvgIcon-B2OEoWjD.js → createSvgIcon-BXXQfd3j.js} +1 -1
  132. package/assets/{createSvgIcon-B2OEoWjD.js.map → createSvgIcon-BXXQfd3j.js.map} +1 -1
  133. package/assets/{download-BJW25sds.js → download-DIO3YpIC.js} +2 -2
  134. package/assets/{download-BJW25sds.js.map → download-DIO3YpIC.js.map} +1 -1
  135. package/assets/{downloadWithIdentity-COI7bkOD.js → downloadWithIdentity-_pqyEylP.js} +1 -1
  136. package/assets/{downloadWithIdentity-COI7bkOD.js.map → downloadWithIdentity-_pqyEylP.js.map} +1 -1
  137. package/assets/events.client-KDioNnTz.js +1 -0
  138. package/assets/events.client-KDioNnTz.js.map +1 -0
  139. package/assets/{index-Bu59k1qI.js → index-46z1cHVl.js} +1 -1
  140. package/assets/{index-Bu59k1qI.js.map → index-46z1cHVl.js.map} +1 -1
  141. package/assets/{index-BbM07Zad.js → index-B-jMtaWP.js} +1 -1
  142. package/assets/{index-BbM07Zad.js.map → index-B-jMtaWP.js.map} +1 -1
  143. package/assets/{index-CCJh3g39.js → index-BAm-Pzt1.js} +1 -1
  144. package/assets/{index-CCJh3g39.js.map → index-BAm-Pzt1.js.map} +1 -1
  145. package/assets/{index-DsKNeH7X.js → index-BFPvT5pa.js} +1 -1
  146. package/assets/{index-DsKNeH7X.js.map → index-BFPvT5pa.js.map} +1 -1
  147. package/assets/{index-gJ1MOEiZ.js → index-BP0MprVq.js} +3 -3
  148. package/assets/{index-gJ1MOEiZ.js.map → index-BP0MprVq.js.map} +1 -1
  149. package/assets/{index-DOEJnoYg.js → index-BPWecXcY.js} +1 -1
  150. package/assets/{index-DOEJnoYg.js.map → index-BPWecXcY.js.map} +1 -1
  151. package/assets/{index-B7GlY0il.js → index-BV5D6He9.js} +1 -1
  152. package/assets/{index-B7GlY0il.js.map → index-BV5D6He9.js.map} +1 -1
  153. package/assets/{index-D9krZGYy.js → index-BWvXRlTE.js} +34 -34
  154. package/assets/index-BWvXRlTE.js.map +1 -0
  155. package/assets/{index-BRm9VGyh.js → index-ButFVFTl.js} +1 -1
  156. package/assets/{index-BRm9VGyh.js.map → index-ButFVFTl.js.map} +1 -1
  157. package/assets/{index-tw_cdOWS.js → index-C-p9HFH_.js} +1 -1
  158. package/assets/{index-tw_cdOWS.js.map → index-C-p9HFH_.js.map} +1 -1
  159. package/assets/{index-BDx-bY1l.js → index-C5LUyd00.js} +2 -2
  160. package/assets/{index-BDx-bY1l.js.map → index-C5LUyd00.js.map} +1 -1
  161. package/assets/{index-DErVyQiP.js → index-CMGrnQsz.js} +1 -1
  162. package/assets/{index-DErVyQiP.js.map → index-CMGrnQsz.js.map} +1 -1
  163. package/assets/{index-ch8SCHpn.js → index-CeEWUadA.js} +1 -1
  164. package/assets/{index-ch8SCHpn.js.map → index-CeEWUadA.js.map} +1 -1
  165. package/assets/{index-BqjJBRSi.js → index-CgMXgkmG.js} +1 -1
  166. package/assets/{index-BqjJBRSi.js.map → index-CgMXgkmG.js.map} +1 -1
  167. package/assets/index-CjU0loIz.js +1 -0
  168. package/assets/{index-Dg4AWVL8.js.map → index-CjU0loIz.js.map} +1 -1
  169. package/assets/{index-XmZQan5Q.js → index-CjsVUu5b.js} +1 -1
  170. package/assets/{index-XmZQan5Q.js.map → index-CjsVUu5b.js.map} +1 -1
  171. package/assets/{index-DytFFz4y.js → index-D-HyZoai.js} +3 -3
  172. package/assets/{index-DytFFz4y.js.map → index-D-HyZoai.js.map} +1 -1
  173. package/assets/{index-eL7TPZy3.js → index-D4XK2ofK.js} +1 -1
  174. package/assets/{index-eL7TPZy3.js.map → index-D4XK2ofK.js.map} +1 -1
  175. package/assets/{index-DukWSxvV.js → index-DBoeO0yj.js} +1 -1
  176. package/assets/{index-DukWSxvV.js.map → index-DBoeO0yj.js.map} +1 -1
  177. package/assets/{index-h1t0zAy8.js → index-DHyrb8Ae.js} +1 -1
  178. package/assets/{index-h1t0zAy8.js.map → index-DHyrb8Ae.js.map} +1 -1
  179. package/assets/{index-BEU_7_ne.js → index-DJYAOhbz.js} +1 -1
  180. package/assets/{index-BEU_7_ne.js.map → index-DJYAOhbz.js.map} +1 -1
  181. package/assets/{index-aBiQGEwK.js → index-DUwBC5EP.js} +1 -1
  182. package/assets/{index-aBiQGEwK.js.map → index-DUwBC5EP.js.map} +1 -1
  183. package/assets/{index-Ds3h83Za.js → index-DVUi9PgH.js} +1 -1
  184. package/assets/{index-Ds3h83Za.js.map → index-DVUi9PgH.js.map} +1 -1
  185. package/assets/{index-Cec4TfYr.js → index-DZpTCrkB.js} +1 -1
  186. package/assets/{index-Cec4TfYr.js.map → index-DZpTCrkB.js.map} +1 -1
  187. package/assets/{index-CbJkiIwc.js → index-DrcOL406.js} +1 -1
  188. package/assets/{index-CbJkiIwc.js.map → index-DrcOL406.js.map} +1 -1
  189. package/assets/{index-PzH_zo30.js → index-DwmSadCe.js} +1 -1
  190. package/assets/{index-PzH_zo30.js.map → index-DwmSadCe.js.map} +1 -1
  191. package/assets/{index-TNlEMSkO.js → index-Dy9lOKvc.js} +1 -1
  192. package/assets/{index-TNlEMSkO.js.map → index-Dy9lOKvc.js.map} +1 -1
  193. package/assets/{index-DskznNlR.js → index-EndbBmWs.js} +1 -1
  194. package/assets/{index-DskznNlR.js.map → index-EndbBmWs.js.map} +1 -1
  195. package/assets/index-FOXwt2hH.js +1 -0
  196. package/assets/{index-B-X7xo-v.js.map → index-FOXwt2hH.js.map} +1 -1
  197. package/assets/{index-B3_NlVHL.js → index-PNT9J6AQ.js} +1 -1
  198. package/assets/{index-B3_NlVHL.js.map → index-PNT9J6AQ.js.map} +1 -1
  199. package/assets/{index-DvT2DV5d.js → index-U6w71K7Y.js} +1 -1
  200. package/assets/{index-DvT2DV5d.js.map → index-U6w71K7Y.js.map} +1 -1
  201. package/assets/{index-BM3mFwuT.js → index-mJ6v7MBb.js} +1 -1
  202. package/assets/{index-BM3mFwuT.js.map → index-mJ6v7MBb.js.map} +1 -1
  203. package/assets/{placesClient-Brx26wG2.js → placesClient-C2aFU8QL.js} +1 -1
  204. package/assets/{placesClient-Brx26wG2.js.map → placesClient-C2aFU8QL.js.map} +1 -1
  205. package/assets/{profile.client-BhwopOt8.js → profile.client-X_-2wpWn.js} +1 -1
  206. package/assets/{profile.client-BhwopOt8.js.map → profile.client-X_-2wpWn.js.map} +1 -1
  207. package/assets/rtk-query-react.modern-eNgJtwbJ.js +9 -0
  208. package/assets/{rtk-query-react.modern-BAShPeSa.js.map → rtk-query-react.modern-eNgJtwbJ.js.map} +1 -1
  209. package/assets/{shared.styled-CwLQaYli.js → shared.styled-CzGNFzDn.js} +1 -1
  210. package/assets/{shared.styled-CwLQaYli.js.map → shared.styled-CzGNFzDn.js.map} +1 -1
  211. package/assets/{signedFetch-BH66xky9.js → signedFetch-wfXfas0G.js} +1 -1
  212. package/assets/{signedFetch-BH66xky9.js.map → signedFetch-wfXfas0G.js.map} +1 -1
  213. package/assets/store-Yluidaqz.js +1 -0
  214. package/assets/store-Yluidaqz.js.map +1 -0
  215. package/assets/{url-D90migVD.js → url-BvNOSdx9.js} +1 -1
  216. package/assets/{url-D90migVD.js.map → url-BvNOSdx9.js.map} +1 -1
  217. package/assets/useAdminPermissions-DtBORrGI.js +1 -0
  218. package/assets/useAdminPermissions-DtBORrGI.js.map +1 -0
  219. package/assets/{useAuthIdentity-B6QSalIu.js → useAuthIdentity-B89tP4lt.js} +1 -1
  220. package/assets/{useAuthIdentity-B6QSalIu.js.map → useAuthIdentity-B89tP4lt.js.map} +1 -1
  221. package/assets/useCanEditEvent-BhQzxRgL.js +1 -0
  222. package/assets/useCanEditEvent-BhQzxRgL.js.map +1 -0
  223. package/assets/{useCreatorHubDownload-Cqo_jiD_.js → useCreatorHubDownload-BI1AVMM2.js} +1 -1
  224. package/assets/{useCreatorHubDownload-Cqo_jiD_.js.map → useCreatorHubDownload-BI1AVMM2.js.map} +1 -1
  225. package/assets/{useInfiniteBlogPosts-DJkZrrll.js → useInfiniteBlogPosts-Dhb_txNw.js} +1 -1
  226. package/assets/{useInfiniteBlogPosts-DJkZrrll.js.map → useInfiniteBlogPosts-Dhb_txNw.js.map} +1 -1
  227. package/assets/{useManaBalances.impl-CnS1IZqg.js → useManaBalances.impl-Byl7YHKM.js} +3 -3
  228. package/assets/{useManaBalances.impl-CnS1IZqg.js.map → useManaBalances.impl-Byl7YHKM.js.map} +1 -1
  229. package/assets/{useProfileAvatar-C_W2tZIS.js → useProfileAvatar-BAqgxJ1A.js} +1 -1
  230. package/assets/{useProfileAvatar-C_W2tZIS.js.map → useProfileAvatar-BAqgxJ1A.js.map} +1 -1
  231. package/assets/{useSlot-8XCS788i.js → useSlot-GF7Jj78E.js} +1 -1
  232. package/assets/{useSlot-8XCS788i.js.map → useSlot-GF7Jj78E.js.map} +1 -1
  233. package/assets/{utils-CNAAosuZ.js → utils-CmqDRpr2.js} +1 -1
  234. package/assets/{utils-CNAAosuZ.js.map → utils-CmqDRpr2.js.map} +1 -1
  235. package/index.html +15 -15
  236. package/package.json +3 -3
  237. package/assets/AdminLayout.styled-nMbBrmih.js +0 -1
  238. package/assets/AdminLayout.styled-nMbBrmih.js.map +0 -1
  239. package/assets/ArrowBackIosNew-Dvsk5ZUT.js +0 -1
  240. package/assets/ArrowBackIosNew-Dvsk5ZUT.js.map +0 -1
  241. package/assets/CreateEventPage-ZOlXojoA.js +0 -16
  242. package/assets/CreateEventPage-ZOlXojoA.js.map +0 -1
  243. package/assets/FutureCard-WKBFz6qp.js +0 -3
  244. package/assets/FutureCard-WKBFz6qp.js.map +0 -1
  245. package/assets/HomePage-CUPFKRVr.js +0 -1
  246. package/assets/HomePage-CUPFKRVr.js.map +0 -1
  247. package/assets/MenuItem-duRqfCJq.js +0 -1
  248. package/assets/MenuItem-duRqfCJq.js.map +0 -1
  249. package/assets/PendingEventsPage-CM3liVzS.js +0 -1
  250. package/assets/PendingEventsPage-CM3liVzS.js.map +0 -1
  251. package/assets/TextField-DpWq-ZfM.js +0 -2
  252. package/assets/TextField-DpWq-ZfM.js.map +0 -1
  253. package/assets/UsersAdminPage-Bv_kpY6k.js +0 -2
  254. package/assets/UsersAdminPage-Bv_kpY6k.js.map +0 -1
  255. package/assets/WearablePreview-Bca5KMOK.js +0 -4
  256. package/assets/admin.client-BVloTpEY.js +0 -1
  257. package/assets/admin.client-BVloTpEY.js.map +0 -1
  258. package/assets/events.client-By7Zddj9.js +0 -1
  259. package/assets/events.client-By7Zddj9.js.map +0 -1
  260. package/assets/index-B-X7xo-v.js +0 -1
  261. package/assets/index-D9krZGYy.js.map +0 -1
  262. package/assets/index-Dg4AWVL8.js +0 -1
  263. package/assets/rtk-query-react.modern-BAShPeSa.js +0 -9
  264. package/assets/store-CyqSuDHi.js +0 -1
  265. package/assets/store-CyqSuDHi.js.map +0 -1
  266. package/assets/useAdminPermissions-CkjK7NYZ.js +0 -1
  267. package/assets/useAdminPermissions-CkjK7NYZ.js.map +0 -1
@@ -1 +1 @@
1
- import{s as c,a as l,j as r,g as a}from"./index-D9krZGYy.js";import{r as s,O as p}from"./vendor-router-D7SOoytt.js";import{P as u}from"./rtk-query-react.modern-BAShPeSa.js";import{s as m}from"./store-CyqSuDHi.js";import{C as f}from"./CircularProgress-D1x03AKQ.js";import"./vendor-crypto-CXsBIwXr.js";import"./vendor-schemas-DJzTSxpO.js";import"./vendor-sentry-DCdewyWN.js";import"./vendor-ua-D7qqAxdq.js";import"./vendor-intl-D2lXWsDp.js";import"./admin.client-BVloTpEY.js";import"./signedFetch-BH66xky9.js";import"./events.client-By7Zddj9.js";import"./placesClient-Brx26wG2.js";const h=c(l)({display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"});function d(){return r.jsx(h,{children:r.jsx(f,{color:"inherit"})})}function i(o){const t=a(o);if(!t)return null;try{return new URL(t).origin}catch{return null}}function x(){s.useEffect(()=>{const o=new Set([i("PEER_URL"),i("PLACES_API_URL")].filter(e=>e!==null)),t=[];return o.forEach(e=>{if(document.head.querySelector(`link[rel="preconnect"][href="${CSS.escape(e)}"]`))return;const n=document.createElement("link");n.rel="preconnect",n.href=e,n.crossOrigin="anonymous",document.head.appendChild(n),t.push(n)}),()=>{t.forEach(e=>e.remove())}},[])}function b(){return x(),r.jsx(u,{store:m,children:r.jsx(s.Suspense,{fallback:r.jsx(d,{}),children:r.jsx(p,{})})})}export{b as DappsShell};
1
+ import{s as c,a as l,j as r,g as a}from"./index-BWvXRlTE.js";import{r as s,O as p}from"./vendor-router-D7SOoytt.js";import{P as u}from"./rtk-query-react.modern-eNgJtwbJ.js";import{s as m}from"./store-Yluidaqz.js";import{C as f}from"./CircularProgress-Z0W76ens.js";import"./vendor-crypto-CXsBIwXr.js";import"./vendor-schemas-DJzTSxpO.js";import"./vendor-sentry-DCdewyWN.js";import"./vendor-ua-D7qqAxdq.js";import"./vendor-intl-D2lXWsDp.js";import"./admin.client-B5xGzvMY.js";import"./signedFetch-wfXfas0G.js";import"./events.client-KDioNnTz.js";import"./placesClient-C2aFU8QL.js";const h=c(l)({display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"});function d(){return r.jsx(h,{children:r.jsx(f,{color:"inherit"})})}function i(o){const t=a(o);if(!t)return null;try{return new URL(t).origin}catch{return null}}function x(){s.useEffect(()=>{const o=new Set([i("PEER_URL"),i("PLACES_API_URL")].filter(e=>e!==null)),t=[];return o.forEach(e=>{if(document.head.querySelector(`link[rel="preconnect"][href="${CSS.escape(e)}"]`))return;const n=document.createElement("link");n.rel="preconnect",n.href=e,n.crossOrigin="anonymous",document.head.appendChild(n),t.push(n)}),()=>{t.forEach(e=>e.remove())}},[])}function b(){return x(),r.jsx(u,{store:m,children:r.jsx(s.Suspense,{fallback:r.jsx(d,{}),children:r.jsx(p,{})})})}export{b as DappsShell};
@@ -1 +1 @@
1
- {"version":3,"file":"DappsShell-BC3H8ts9.js","sources":["../../src/App.styled.ts","../../src/shells/DappsShell.tsx"],"sourcesContent":["import { Box, styled } from 'decentraland-ui2'\n\n// Centered 60vh container — reused for both the DappsShell Suspense fallback\n// and the pending-migration placeholder. Shared from the main bundle so both\n// App.tsx (lightweight) and DappsShell.tsx (lazy) use the same source.\nconst CenteredBox = styled(Box)({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n minHeight: '60vh'\n})\n\nexport { CenteredBox }\n","import { Suspense, useEffect } from 'react'\nimport { Provider } from 'react-redux'\nimport { Outlet } from 'react-router-dom'\nimport { CircularProgress } from 'decentraland-ui2'\nimport { CenteredBox } from '../App.styled'\nimport { getEnv } from '../config/env'\nimport { store } from './store'\n\nfunction DappsShellFallback() {\n return (\n <CenteredBox>\n <CircularProgress color=\"inherit\" />\n </CenteredBox>\n )\n}\n\nfunction getOrigin(envKey: string): string | null {\n const value = getEnv(envKey)\n if (!value) return null\n try {\n return new URL(value).origin\n } catch {\n return null\n }\n}\n\nfunction usePreconnectHints() {\n useEffect(() => {\n // Origins that differ per env (zone/today/org). Injected at runtime so\n // the correct host is hit without wasting TCP/TLS on homepage visitors.\n const origins = new Set([getOrigin('PEER_URL'), getOrigin('PLACES_API_URL')].filter((v): v is string => v !== null))\n const links: HTMLLinkElement[] = []\n origins.forEach(origin => {\n // Skip if index.html (or a prior mount) already preconnected this origin.\n if (document.head.querySelector(`link[rel=\"preconnect\"][href=\"${CSS.escape(origin)}\"]`)) return\n const link = document.createElement('link')\n link.rel = 'preconnect'\n link.href = origin\n link.crossOrigin = 'anonymous'\n document.head.appendChild(link)\n links.push(link)\n })\n return () => {\n links.forEach(link => link.remove())\n }\n }, [])\n}\n\nfunction DappsShell() {\n usePreconnectHints()\n\n return (\n <Provider store={store}>\n <Suspense fallback={<DappsShellFallback />}>\n <Outlet />\n </Suspense>\n </Provider>\n )\n}\n\nexport { DappsShell }\n"],"names":["CenteredBox","styled","Box","DappsShellFallback","jsx","CircularProgress","getOrigin","envKey","value","getEnv","usePreconnectHints","useEffect","origins","v","links","origin","link","DappsShell","Provider","store","Suspense","Outlet"],"mappings":"mkBAKA,MAAMA,EAAcC,EAAOC,CAAG,EAAE,CAC9B,QAAS,OACT,eAAgB,SAChB,WAAY,SACZ,UAAW,MACb,CAAC,ECFD,SAASC,GAAqB,CAC5B,aACGH,EAAA,CACC,SAAAI,EAAAA,IAACC,EAAA,CAAiB,MAAM,UAAU,EACpC,CAEJ,CAEA,SAASC,EAAUC,EAA+B,CAChD,MAAMC,EAAQC,EAAOF,CAAM,EAC3B,GAAI,CAACC,EAAO,OAAO,KACnB,GAAI,CACF,OAAO,IAAI,IAAIA,CAAK,EAAE,MACxB,MAAQ,CACN,OAAO,IACT,CACF,CAEA,SAASE,GAAqB,CAC5BC,EAAAA,UAAU,IAAM,CAGd,MAAMC,EAAU,IAAI,IAAI,CAACN,EAAU,UAAU,EAAGA,EAAU,gBAAgB,CAAC,EAAE,OAAQO,GAAmBA,IAAM,IAAI,CAAC,EAC7GC,EAA2B,CAAA,EACjC,OAAAF,EAAQ,QAAQG,GAAU,CAExB,GAAI,SAAS,KAAK,cAAc,gCAAgC,IAAI,OAAOA,CAAM,CAAC,IAAI,EAAG,OACzF,MAAMC,EAAO,SAAS,cAAc,MAAM,EAC1CA,EAAK,IAAM,aACXA,EAAK,KAAOD,EACZC,EAAK,YAAc,YACnB,SAAS,KAAK,YAAYA,CAAI,EAC9BF,EAAM,KAAKE,CAAI,CACjB,CAAC,EACM,IAAM,CACXF,EAAM,QAAQE,GAAQA,EAAK,OAAA,CAAQ,CACrC,CACF,EAAG,CAAA,CAAE,CACP,CAEA,SAASC,GAAa,CACpB,OAAAP,EAAA,EAGEN,EAAAA,IAACc,EAAA,CAAS,MAAAC,EACR,SAAAf,EAAAA,IAACgB,EAAAA,SAAA,CAAS,SAAUhB,EAAAA,IAACD,EAAA,CAAA,CAAmB,EACtC,SAAAC,EAAAA,IAACiB,EAAA,CAAA,CAAO,CAAA,CACV,EACF,CAEJ"}
1
+ {"version":3,"file":"DappsShell-CFZyE77Z.js","sources":["../../src/App.styled.ts","../../src/shells/DappsShell.tsx"],"sourcesContent":["import { Box, styled } from 'decentraland-ui2'\n\n// Centered 60vh container — reused for both the DappsShell Suspense fallback\n// and the pending-migration placeholder. Shared from the main bundle so both\n// App.tsx (lightweight) and DappsShell.tsx (lazy) use the same source.\nconst CenteredBox = styled(Box)({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n minHeight: '60vh'\n})\n\nexport { CenteredBox }\n","import { Suspense, useEffect } from 'react'\nimport { Provider } from 'react-redux'\nimport { Outlet } from 'react-router-dom'\nimport { CircularProgress } from 'decentraland-ui2'\nimport { CenteredBox } from '../App.styled'\nimport { getEnv } from '../config/env'\nimport { store } from './store'\n\nfunction DappsShellFallback() {\n return (\n <CenteredBox>\n <CircularProgress color=\"inherit\" />\n </CenteredBox>\n )\n}\n\nfunction getOrigin(envKey: string): string | null {\n const value = getEnv(envKey)\n if (!value) return null\n try {\n return new URL(value).origin\n } catch {\n return null\n }\n}\n\nfunction usePreconnectHints() {\n useEffect(() => {\n // Origins that differ per env (zone/today/org). Injected at runtime so\n // the correct host is hit without wasting TCP/TLS on homepage visitors.\n const origins = new Set([getOrigin('PEER_URL'), getOrigin('PLACES_API_URL')].filter((v): v is string => v !== null))\n const links: HTMLLinkElement[] = []\n origins.forEach(origin => {\n // Skip if index.html (or a prior mount) already preconnected this origin.\n if (document.head.querySelector(`link[rel=\"preconnect\"][href=\"${CSS.escape(origin)}\"]`)) return\n const link = document.createElement('link')\n link.rel = 'preconnect'\n link.href = origin\n link.crossOrigin = 'anonymous'\n document.head.appendChild(link)\n links.push(link)\n })\n return () => {\n links.forEach(link => link.remove())\n }\n }, [])\n}\n\nfunction DappsShell() {\n usePreconnectHints()\n\n return (\n <Provider store={store}>\n <Suspense fallback={<DappsShellFallback />}>\n <Outlet />\n </Suspense>\n </Provider>\n )\n}\n\nexport { DappsShell }\n"],"names":["CenteredBox","styled","Box","DappsShellFallback","jsx","CircularProgress","getOrigin","envKey","value","getEnv","usePreconnectHints","useEffect","origins","v","links","origin","link","DappsShell","Provider","store","Suspense","Outlet"],"mappings":"mkBAKA,MAAMA,EAAcC,EAAOC,CAAG,EAAE,CAC9B,QAAS,OACT,eAAgB,SAChB,WAAY,SACZ,UAAW,MACb,CAAC,ECFD,SAASC,GAAqB,CAC5B,aACGH,EAAA,CACC,SAAAI,EAAAA,IAACC,EAAA,CAAiB,MAAM,UAAU,EACpC,CAEJ,CAEA,SAASC,EAAUC,EAA+B,CAChD,MAAMC,EAAQC,EAAOF,CAAM,EAC3B,GAAI,CAACC,EAAO,OAAO,KACnB,GAAI,CACF,OAAO,IAAI,IAAIA,CAAK,EAAE,MACxB,MAAQ,CACN,OAAO,IACT,CACF,CAEA,SAASE,GAAqB,CAC5BC,EAAAA,UAAU,IAAM,CAGd,MAAMC,EAAU,IAAI,IAAI,CAACN,EAAU,UAAU,EAAGA,EAAU,gBAAgB,CAAC,EAAE,OAAQO,GAAmBA,IAAM,IAAI,CAAC,EAC7GC,EAA2B,CAAA,EACjC,OAAAF,EAAQ,QAAQG,GAAU,CAExB,GAAI,SAAS,KAAK,cAAc,gCAAgC,IAAI,OAAOA,CAAM,CAAC,IAAI,EAAG,OACzF,MAAMC,EAAO,SAAS,cAAc,MAAM,EAC1CA,EAAK,IAAM,aACXA,EAAK,KAAOD,EACZC,EAAK,YAAc,YACnB,SAAS,KAAK,YAAYA,CAAI,EAC9BF,EAAM,KAAKE,CAAI,CACjB,CAAC,EACM,IAAM,CACXF,EAAM,QAAQE,GAAQA,EAAK,OAAA,CAAQ,CACrC,CACF,EAAG,CAAA,CAAE,CACP,CAEA,SAASC,GAAa,CACpB,OAAAP,EAAA,EAGEN,EAAAA,IAACc,EAAA,CAAS,MAAAC,EACR,SAAAf,EAAAA,IAACgB,EAAAA,SAAA,CAAS,SAAUhB,EAAAA,IAACD,EAAA,CAAA,CAAmB,EACtC,SAAAC,EAAAA,IAACiB,EAAA,CAAA,CAAO,CAAA,CACV,EACF,CAEJ"}
@@ -1,4 +1,4 @@
1
- import{E as F,F as M,G as A,_ as T,c as b,ar as N,j as o,H as q,I as t,J as H,s as e,K as I,as as W,at as O,M as w,a as s,au as f,w as m,x as U,L as E}from"./index-D9krZGYy.js";import{r as z}from"./vendor-router-D7SOoytt.js";import{C as K,a as X}from"./CardContent-BmJC2B1l.js";import{C as G}from"./CardMedia-BvzeWU4S.js";function J(r){return F("MuiLinearProgress",r)}M("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Q=["className","color","value","valueBuffer","variant"];let x=r=>r,$,B,L,R,S,_;const j=4,V=w($||($=x`
1
+ import{E as F,F as M,G as A,_ as T,c as b,ar as N,j as o,H as q,I as t,J as H,s as e,K as I,as as W,at as O,M as w,a as s,au as f,w as m,x as U,L as E}from"./index-BWvXRlTE.js";import{r as z}from"./vendor-router-D7SOoytt.js";import{C as K,a as X}from"./CardContent-THhPoxmR.js";import{C as G}from"./CardMedia-9XvH5baB.js";function J(r){return F("MuiLinearProgress",r)}M("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Q=["className","color","value","valueBuffer","variant"];let x=r=>r,$,B,L,R,S,_;const j=4,V=w($||($=x`
2
2
  0% {
3
3
  left: -35%;
4
4
  right: 100%;
@@ -1 +1 @@
1
- {"version":3,"file":"DownloadSuccessLayout-DUmT7uWX.js","sources":["../../node_modules/decentraland-ui2/node_modules/@mui/material/LinearProgress/linearProgressClasses.js","../../node_modules/decentraland-ui2/node_modules/@mui/material/LinearProgress/LinearProgress.js","../../src/pages/DownloadSuccess/DownloadSuccess.styled.ts","../../src/pages/DownloadSuccess/DownloadSuccessLayout.tsx"],"sourcesContent":["import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getLinearProgressUtilityClass(slot) {\n return generateUtilityClass('MuiLinearProgress', slot);\n}\nconst linearProgressClasses = generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'dashedColorPrimary', 'dashedColorSecondary', 'bar', 'barColorPrimary', 'barColorSecondary', 'bar1Indeterminate', 'bar1Determinate', 'bar1Buffer', 'bar2Indeterminate', 'bar2Buffer']);\nexport default linearProgressClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"color\", \"value\", \"valueBuffer\", \"variant\"];\nlet _ = t => t,\n _t,\n _t2,\n _t3,\n _t4,\n _t5,\n _t6;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { keyframes, css } from '@mui/system';\nimport { darken, lighten } from '@mui/system/colorManipulator';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport capitalize from '../utils/capitalize';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport { getLinearProgressUtilityClass } from './linearProgressClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst TRANSITION_DURATION = 4; // seconds\nconst indeterminate1Keyframe = keyframes(_t || (_t = _`\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n`));\nconst indeterminate2Keyframe = keyframes(_t2 || (_t2 = _`\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n`));\nconst bufferKeyframe = keyframes(_t3 || (_t3 = _`\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n`));\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n variant,\n color\n } = ownerState;\n const slots = {\n root: ['root', `color${capitalize(color)}`, variant],\n dashed: ['dashed', `dashedColor${capitalize(color)}`],\n bar1: ['bar', `barColor${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar1Indeterminate', variant === 'determinate' && 'bar1Determinate', variant === 'buffer' && 'bar1Buffer'],\n bar2: ['bar', variant !== 'buffer' && `barColor${capitalize(color)}`, variant === 'buffer' && `color${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar2Indeterminate', variant === 'buffer' && 'bar2Buffer']\n };\n return composeClasses(slots, getLinearProgressUtilityClass, classes);\n};\nconst getColorShade = (theme, color) => {\n if (color === 'inherit') {\n return 'currentColor';\n }\n if (theme.vars) {\n return theme.vars.palette.LinearProgress[`${color}Bg`];\n }\n return theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.5);\n};\nconst LinearProgressRoot = styled('span', {\n name: 'MuiLinearProgress',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`color${capitalize(ownerState.color)}`], styles[ownerState.variant]];\n }\n})(({\n ownerState,\n theme\n}) => _extends({\n position: 'relative',\n overflow: 'hidden',\n display: 'block',\n height: 4,\n zIndex: 0,\n // Fix Safari's bug during composition of different paint.\n '@media print': {\n colorAdjust: 'exact'\n },\n backgroundColor: getColorShade(theme, ownerState.color)\n}, ownerState.color === 'inherit' && ownerState.variant !== 'buffer' && {\n backgroundColor: 'none',\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n left: 0,\n top: 0,\n right: 0,\n bottom: 0,\n backgroundColor: 'currentColor',\n opacity: 0.3\n }\n}, ownerState.variant === 'buffer' && {\n backgroundColor: 'transparent'\n}, ownerState.variant === 'query' && {\n transform: 'rotate(180deg)'\n}));\nconst LinearProgressDashed = styled('span', {\n name: 'MuiLinearProgress',\n slot: 'Dashed',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.dashed, styles[`dashedColor${capitalize(ownerState.color)}`]];\n }\n})(({\n ownerState,\n theme\n}) => {\n const backgroundColor = getColorShade(theme, ownerState.color);\n return _extends({\n position: 'absolute',\n marginTop: 0,\n height: '100%',\n width: '100%'\n }, ownerState.color === 'inherit' && {\n opacity: 0.3\n }, {\n backgroundImage: `radial-gradient(${backgroundColor} 0%, ${backgroundColor} 16%, transparent 42%)`,\n backgroundSize: '10px 10px',\n backgroundPosition: '0 -23px'\n });\n}, css(_t4 || (_t4 = _`\n animation: ${0} 3s infinite linear;\n `), bufferKeyframe));\nconst LinearProgressBar1 = styled('span', {\n name: 'MuiLinearProgress',\n slot: 'Bar1',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar1Indeterminate, ownerState.variant === 'determinate' && styles.bar1Determinate, ownerState.variant === 'buffer' && styles.bar1Buffer];\n }\n})(({\n ownerState,\n theme\n}) => _extends({\n width: '100%',\n position: 'absolute',\n left: 0,\n bottom: 0,\n top: 0,\n transition: 'transform 0.2s linear',\n transformOrigin: 'left',\n backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main\n}, ownerState.variant === 'determinate' && {\n transition: `transform .${TRANSITION_DURATION}s linear`\n}, ownerState.variant === 'buffer' && {\n zIndex: 1,\n transition: `transform .${TRANSITION_DURATION}s linear`\n}), ({\n ownerState\n}) => (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && css(_t5 || (_t5 = _`\n width: auto;\n animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n `), indeterminate1Keyframe));\nconst LinearProgressBar2 = styled('span', {\n name: 'MuiLinearProgress',\n slot: 'Bar2',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];\n }\n})(({\n ownerState,\n theme\n}) => _extends({\n width: '100%',\n position: 'absolute',\n left: 0,\n bottom: 0,\n top: 0,\n transition: 'transform 0.2s linear',\n transformOrigin: 'left'\n}, ownerState.variant !== 'buffer' && {\n backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main\n}, ownerState.color === 'inherit' && {\n opacity: 0.3\n}, ownerState.variant === 'buffer' && {\n backgroundColor: getColorShade(theme, ownerState.color),\n transition: `transform .${TRANSITION_DURATION}s linear`\n}), ({\n ownerState\n}) => (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && css(_t6 || (_t6 = _`\n width: auto;\n animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n `), indeterminate2Keyframe));\n\n/**\n * ## ARIA\n *\n * If the progress bar is describing the loading progress of a particular region of a page,\n * you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\n * attribute to `true` on that region until it has finished loading.\n */\nconst LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiLinearProgress'\n });\n const {\n className,\n color = 'primary',\n value,\n valueBuffer,\n variant = 'indeterminate'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n color,\n variant\n });\n const classes = useUtilityClasses(ownerState);\n const isRtl = useRtl();\n const rootProps = {};\n const inlineStyles = {\n bar1: {},\n bar2: {}\n };\n if (variant === 'determinate' || variant === 'buffer') {\n if (value !== undefined) {\n rootProps['aria-valuenow'] = Math.round(value);\n rootProps['aria-valuemin'] = 0;\n rootProps['aria-valuemax'] = 100;\n let transform = value - 100;\n if (isRtl) {\n transform = -transform;\n }\n inlineStyles.bar1.transform = `translateX(${transform}%)`;\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('MUI: You need to provide a value prop ' + 'when using the determinate or buffer variant of LinearProgress .');\n }\n }\n if (variant === 'buffer') {\n if (valueBuffer !== undefined) {\n let transform = (valueBuffer || 0) - 100;\n if (isRtl) {\n transform = -transform;\n }\n inlineStyles.bar2.transform = `translateX(${transform}%)`;\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('MUI: You need to provide a valueBuffer prop ' + 'when using the buffer variant of LinearProgress.');\n }\n }\n return /*#__PURE__*/_jsxs(LinearProgressRoot, _extends({\n className: clsx(classes.root, className),\n ownerState: ownerState,\n role: \"progressbar\"\n }, rootProps, {\n ref: ref\n }, other, {\n children: [variant === 'buffer' ? /*#__PURE__*/_jsx(LinearProgressDashed, {\n className: classes.dashed,\n ownerState: ownerState\n }) : null, /*#__PURE__*/_jsx(LinearProgressBar1, {\n className: classes.bar1,\n ownerState: ownerState,\n style: inlineStyles.bar1\n }), variant === 'determinate' ? null : /*#__PURE__*/_jsx(LinearProgressBar2, {\n className: classes.bar2,\n ownerState: ownerState,\n style: inlineStyles.bar2\n })]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? LinearProgress.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The value of the progress indicator for the determinate and buffer variants.\n * Value between 0 and 100.\n */\n value: PropTypes.number,\n /**\n * The value for the buffer variant.\n * Value between 0 and 100.\n */\n valueBuffer: PropTypes.number,\n /**\n * The variant to use.\n * Use indeterminate or query when there is no progress value.\n * @default 'indeterminate'\n */\n variant: PropTypes.oneOf(['buffer', 'determinate', 'indeterminate', 'query'])\n} : void 0;\nexport default LinearProgress;","import { keyframes } from '@emotion/react'\nimport { Box, Card, CardContent, CardMedia, LinearProgress, Typography, dclColors, styled } from 'decentraland-ui2'\n\nconst DownloadSuccessPageContainer = styled(Box)(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n background: '#830e5b',\n backgroundImage: `linear-gradient(99.92deg, ${dclColors.brand.lavender} -16.74%, #481A5F 28.57%, #33144C 56.18%, #501C66 76.26%, ${dclColors.brand.lavender} 100%)`,\n flex: 1,\n minHeight: '900px',\n alignItems: 'center',\n justifyContent: 'center',\n [theme.breakpoints.down('sm')]: {\n minHeight: 'auto',\n padding: theme.spacing(4, 0)\n }\n}))\n\nconst DownloadSuccessHeaderContainer = styled(Box)(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'flex-start',\n alignItems: 'center',\n position: 'relative',\n textAlign: 'center',\n padding: theme.spacing(0, 2)\n}))\n\nconst DownloadSuccessOsIcon = styled('img')(({ theme }) => ({\n width: theme.spacing(10),\n height: theme.spacing(10),\n filter: 'brightness(0) invert(1)'\n}))\n\nconst DownloadSuccessTitle = styled(Typography)(({ theme }) => ({\n marginTop: theme.spacing(4)\n}))\n\nconst DownloadSuccessSubtitle = styled(Typography)(({ theme }) => ({\n marginTop: theme.spacing(2),\n ['& span']: {\n color: theme.palette.primary.main\n }\n}))\n\nconst DownloadSuccessCardWrapper = styled(Box)(({ theme }) => ({\n display: 'flex',\n margin: theme.spacing(10),\n flexWrap: 'nowrap',\n justifyContent: 'center',\n [theme.breakpoints.down('md')]: {\n flexDirection: 'column',\n alignItems: 'center',\n margin: theme.spacing(6, 4)\n }\n}))\n\nconst DownloadSuccessCard = styled(Card)(({ theme }) => ({\n position: 'relative',\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'space-between',\n maxWidth: '350px',\n flex: 1,\n height: '420px',\n borderRadius: theme.spacing(3),\n border: '1px solid #A09BA87A',\n backgroundColor: '#1c072fe6',\n marginRight: theme.spacing(4),\n marginBottom: theme.spacing(4),\n ['&:last-child']: {\n marginRight: 0\n },\n [theme.breakpoints.down('md')]: {\n maxWidth: '100%',\n width: '100%',\n marginRight: 0,\n height: 'auto'\n }\n}))\n\nconst DownloadSuccessCardMedia = styled(CardMedia)(({ theme }) => ({\n minHeight: '240px',\n backgroundColor: '#5122545e',\n [theme.breakpoints.down('md')]: {\n minHeight: '200px'\n }\n}))\n\nconst highlightFadeIn = keyframes`\n 0% { box-shadow: 0 0 0 0 ${dclColors.brand.lavender}; }\n 50% { box-shadow: 0 0 25px 18.5px ${dclColors.brand.lavender}; }\n 100% { box-shadow: 0 0 0 0 ${dclColors.brand.lavender}; }\n`\n\nconst HighlightAnimation = styled(Box)(({ theme }) => ({\n position: 'absolute',\n top: '272px',\n right: '86px',\n width: '25.6px',\n height: '25.6px',\n borderRadius: '50%',\n pointerEvents: 'none',\n zIndex: 1,\n backgroundColor: 'transparent',\n animation: `${highlightFadeIn} 1s ease-in-out infinite`,\n [theme.breakpoints.down('lg')]: {\n display: 'none'\n }\n}))\n\nconst DownloadSuccessCardContent = styled(CardContent)({})\n\nconst DownloadSuccessCardTitle = styled(Typography)({\n fontSize: '1.775rem'\n})\n\nconst DownloadSuccessCardSubtitle = styled(Typography)(({ theme }) => ({\n marginTop: theme.spacing(1),\n fontSize: '0.875rem',\n fontWeight: 700,\n color: '#CFCDD4',\n ['& span']: {\n color: theme.palette.common.white\n }\n}))\n\nconst DownloadSuccessFooterContainer = styled(Box)(({ theme }) => ({\n textAlign: 'center',\n padding: theme.spacing(0, 2),\n ['& a']: {\n color: theme.palette.primary.main,\n textDecoration: 'underline',\n ['&:hover']: {\n color: theme.palette.primary.light\n }\n }\n}))\n\nconst DownloadBackdrop = styled(Box)<{ open: boolean }>(({ theme, open }) => ({\n position: 'fixed',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n zIndex: theme.zIndex.drawer + 1,\n display: open ? 'flex' : 'none',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n gap: theme.spacing(3),\n backgroundColor: 'rgba(26, 9, 28, 0.2)',\n backdropFilter: 'blur(8px)',\n ['WebkitBackdropFilter' as string]: 'blur(8px)',\n color: theme.palette.common.white\n}))\n\nconst DownloadBackdropContent = styled(Box)(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n width: 493,\n height: 251,\n borderRadius: theme.spacing(4),\n padding: theme.spacing(6),\n gap: theme.spacing(4),\n backgroundColor: dclColors.brand.purple,\n [theme.breakpoints.down('sm')]: {\n width: 'calc(100% - 32px)',\n height: 'auto',\n padding: theme.spacing(4)\n }\n}))\n\nconst DownloadBackdropText = styled(Typography)(({ theme }) => ({\n ...theme.typography.h6,\n textAlign: 'center'\n}))\n\nconst DownloadDetailContainer = styled(Box)(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gap: theme.spacing(1),\n width: '100%'\n}))\n\nconst DownloadProgressContainer = styled(Box)(({ theme }) => ({\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: theme.spacing(2),\n width: '100%'\n}))\n\nconst DownloadProgressBar = styled(LinearProgress)(({ theme }) => ({\n flex: 1,\n height: theme.spacing(2),\n borderRadius: theme.spacing(1),\n backgroundColor: 'rgba(255, 255, 255, 0.2)',\n ['& .MuiLinearProgress-bar']: {\n background: 'linear-gradient(90deg, #FF2D55 0%, #FFBC5B 100%)',\n borderRadius: theme.spacing(1)\n }\n}))\n\nexport {\n DownloadBackdrop,\n DownloadBackdropContent,\n DownloadBackdropText,\n DownloadDetailContainer,\n DownloadProgressBar,\n DownloadProgressContainer,\n DownloadSuccessCard,\n DownloadSuccessCardContent,\n DownloadSuccessCardMedia,\n DownloadSuccessCardSubtitle,\n DownloadSuccessCardTitle,\n DownloadSuccessCardWrapper,\n DownloadSuccessFooterContainer,\n DownloadSuccessHeaderContainer,\n DownloadSuccessOsIcon,\n DownloadSuccessPageContainer,\n DownloadSuccessSubtitle,\n DownloadSuccessTitle,\n HighlightAnimation\n}\n","import { memo } from 'react'\nimport type { ReactNode } from 'react'\nimport { Logo, Typography } from 'decentraland-ui2'\nimport { useFormatMessage } from '../../hooks/adapters/useFormatMessage'\nimport type { DownloadSuccessStep } from './DownloadSuccess.types'\nimport {\n DownloadBackdrop,\n DownloadBackdropContent,\n DownloadBackdropText,\n DownloadDetailContainer,\n DownloadProgressBar,\n DownloadProgressContainer,\n DownloadSuccessCard,\n DownloadSuccessCardContent,\n DownloadSuccessCardMedia,\n DownloadSuccessCardSubtitle,\n DownloadSuccessCardTitle,\n DownloadSuccessCardWrapper,\n DownloadSuccessFooterContainer,\n DownloadSuccessHeaderContainer,\n DownloadSuccessOsIcon,\n DownloadSuccessPageContainer,\n DownloadSuccessSubtitle,\n DownloadSuccessTitle\n} from './DownloadSuccess.styled'\n\ntype DownloadSuccessLayoutProps = {\n /** Whether the loading backdrop is visible */\n loading: boolean\n /** Content to render inside the backdrop (defaults to standard loading indicator) */\n backdropContent?: ReactNode\n /** The OS icon to display in the header */\n osIcon: string\n /** The page title */\n title: ReactNode\n /** The page subtitle */\n subtitle: ReactNode\n /** The steps to render as cards */\n steps: DownloadSuccessStep[]\n /** Optional render function for extra content on a card (e.g. highlight animation) */\n renderCardOverlay?: (step: DownloadSuccessStep, index: number) => ReactNode\n /** Footer content */\n footer: ReactNode\n /** Content rendered after the page container (e.g. LandingFooter) */\n afterContent?: ReactNode\n /** Optional sx overrides for the page container */\n containerSx?: Record<string, unknown>\n}\n\nconst DownloadSuccessLayout = memo(\n ({\n loading,\n backdropContent,\n osIcon,\n title,\n subtitle,\n steps,\n renderCardOverlay,\n footer,\n afterContent,\n containerSx\n }: DownloadSuccessLayoutProps) => {\n const l = useFormatMessage()\n\n const defaultBackdropContent = (\n <DownloadBackdropContent>\n <Logo size=\"huge\" />\n <DownloadDetailContainer>\n <DownloadBackdropText variant=\"h6\">{l('page.download.downloading')}</DownloadBackdropText>\n <DownloadProgressContainer>\n <DownloadProgressBar />\n </DownloadProgressContainer>\n </DownloadDetailContainer>\n </DownloadBackdropContent>\n )\n\n return (\n <>\n <DownloadBackdrop open={loading}>{backdropContent ?? defaultBackdropContent}</DownloadBackdrop>\n\n <DownloadSuccessPageContainer sx={containerSx}>\n <DownloadSuccessHeaderContainer>\n <DownloadSuccessOsIcon src={osIcon} alt=\"\" loading=\"lazy\" />\n <DownloadSuccessTitle variant=\"h3\">{title}</DownloadSuccessTitle>\n <DownloadSuccessSubtitle variant=\"h5\">{subtitle}</DownloadSuccessSubtitle>\n </DownloadSuccessHeaderContainer>\n\n <DownloadSuccessCardWrapper>\n {steps.map((step, index) => (\n <DownloadSuccessCard key={index}>\n <DownloadSuccessCardContent>\n <Typography variant=\"overline\">\n {l('page.download.success.step')} {index + 1}\n </Typography>\n <DownloadSuccessCardTitle variant=\"h4\">{step.title}</DownloadSuccessCardTitle>\n <DownloadSuccessCardSubtitle variant=\"body1\">{step.text}</DownloadSuccessCardSubtitle>\n </DownloadSuccessCardContent>\n <DownloadSuccessCardMedia image={step.image} />\n {renderCardOverlay?.(step, index)}\n </DownloadSuccessCard>\n ))}\n </DownloadSuccessCardWrapper>\n\n <DownloadSuccessFooterContainer>{footer}</DownloadSuccessFooterContainer>\n </DownloadSuccessPageContainer>\n\n {afterContent}\n </>\n )\n }\n)\n\nDownloadSuccessLayout.displayName = 'DownloadSuccessLayout'\n\nexport { DownloadSuccessLayout }\nexport type { DownloadSuccessLayoutProps }\n"],"names":["getLinearProgressUtilityClass","slot","generateUtilityClass","generateUtilityClasses","_excluded","_","t","_t","_t2","_t3","_t4","_t5","_t6","TRANSITION_DURATION","indeterminate1Keyframe","keyframes","indeterminate2Keyframe","bufferKeyframe","useUtilityClasses","ownerState","classes","variant","color","slots","capitalize","composeClasses","getColorShade","theme","lighten","darken","LinearProgressRoot","styled","props","styles","_extends","LinearProgressDashed","backgroundColor","css","LinearProgressBar1","LinearProgressBar2","LinearProgress","React.forwardRef","inProps","ref","useDefaultProps","className","value","valueBuffer","other","_objectWithoutPropertiesLoose","isRtl","useRtl","rootProps","inlineStyles","transform","_jsxs","clsx","_jsx","DownloadSuccessPageContainer","Box","dclColors.brand","DownloadSuccessHeaderContainer","DownloadSuccessOsIcon","DownloadSuccessTitle","Typography","DownloadSuccessSubtitle","DownloadSuccessCardWrapper","DownloadSuccessCard","Card","DownloadSuccessCardMedia","CardMedia","highlightFadeIn","HighlightAnimation","DownloadSuccessCardContent","CardContent","DownloadSuccessCardTitle","DownloadSuccessCardSubtitle","DownloadSuccessFooterContainer","DownloadBackdrop","open","DownloadBackdropContent","DownloadBackdropText","DownloadDetailContainer","DownloadProgressContainer","DownloadProgressBar","DownloadSuccessLayout","memo","loading","backdropContent","osIcon","title","subtitle","steps","renderCardOverlay","footer","afterContent","containerSx","l","useForm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E,SAAA0B,EAAM,IAAI,CAACY,EAAMC,WACftC,GAAA,CACC,SAAA,CAAAmC,OAAC7B,GAAA,CACC,SAAA,CAAA6B,EAAAA,KAACtC,EAAA,CAAW,QAAQ,WACjB,SAAA,CAAAiC,EAAE,4BAA4B,EAAE,IAAEQ,EAAQ,CAAA,EAC7C,EACAL,EAAAA,IAACzB,GAAA,CAAyB,QAAQ,KAAM,WAAK,MAAM,EACnDyB,EAAAA,IAACxB,GAAA,CAA4B,QAAQ,QAAS,WAAK,IAAA,CAAK,CAAA,EAC1D,EACAwB,EAAAA,IAAC/B,GAAA,CAAyB,MAAOmC,EAAK,KAAA,CAAO,EAC5CX,IAAoBW,EAAMC,CAAK,CAAA,GATRA,CAU1B,CACD,EACH,EAEAL,EAAAA,IAACvB,IAAgC,SAAAiB,CAAA,CAAO,CAAA,EAC1C,EAECC,CAAA,EACH,CAEJ,CACF,EAEAV,GAAsB,YAAc","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"DownloadSuccessLayout-Bqi9ZKaN.js","sources":["../../node_modules/decentraland-ui2/node_modules/@mui/material/LinearProgress/linearProgressClasses.js","../../node_modules/decentraland-ui2/node_modules/@mui/material/LinearProgress/LinearProgress.js","../../src/pages/DownloadSuccess/DownloadSuccess.styled.ts","../../src/pages/DownloadSuccess/DownloadSuccessLayout.tsx"],"sourcesContent":["import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getLinearProgressUtilityClass(slot) {\n return generateUtilityClass('MuiLinearProgress', slot);\n}\nconst linearProgressClasses = generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'dashedColorPrimary', 'dashedColorSecondary', 'bar', 'barColorPrimary', 'barColorSecondary', 'bar1Indeterminate', 'bar1Determinate', 'bar1Buffer', 'bar2Indeterminate', 'bar2Buffer']);\nexport default linearProgressClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"color\", \"value\", \"valueBuffer\", \"variant\"];\nlet _ = t => t,\n _t,\n _t2,\n _t3,\n _t4,\n _t5,\n _t6;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { keyframes, css } from '@mui/system';\nimport { darken, lighten } from '@mui/system/colorManipulator';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport capitalize from '../utils/capitalize';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport { getLinearProgressUtilityClass } from './linearProgressClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst TRANSITION_DURATION = 4; // seconds\nconst indeterminate1Keyframe = keyframes(_t || (_t = _`\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n`));\nconst indeterminate2Keyframe = keyframes(_t2 || (_t2 = _`\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n`));\nconst bufferKeyframe = keyframes(_t3 || (_t3 = _`\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n`));\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n variant,\n color\n } = ownerState;\n const slots = {\n root: ['root', `color${capitalize(color)}`, variant],\n dashed: ['dashed', `dashedColor${capitalize(color)}`],\n bar1: ['bar', `barColor${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar1Indeterminate', variant === 'determinate' && 'bar1Determinate', variant === 'buffer' && 'bar1Buffer'],\n bar2: ['bar', variant !== 'buffer' && `barColor${capitalize(color)}`, variant === 'buffer' && `color${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar2Indeterminate', variant === 'buffer' && 'bar2Buffer']\n };\n return composeClasses(slots, getLinearProgressUtilityClass, classes);\n};\nconst getColorShade = (theme, color) => {\n if (color === 'inherit') {\n return 'currentColor';\n }\n if (theme.vars) {\n return theme.vars.palette.LinearProgress[`${color}Bg`];\n }\n return theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.5);\n};\nconst LinearProgressRoot = styled('span', {\n name: 'MuiLinearProgress',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`color${capitalize(ownerState.color)}`], styles[ownerState.variant]];\n }\n})(({\n ownerState,\n theme\n}) => _extends({\n position: 'relative',\n overflow: 'hidden',\n display: 'block',\n height: 4,\n zIndex: 0,\n // Fix Safari's bug during composition of different paint.\n '@media print': {\n colorAdjust: 'exact'\n },\n backgroundColor: getColorShade(theme, ownerState.color)\n}, ownerState.color === 'inherit' && ownerState.variant !== 'buffer' && {\n backgroundColor: 'none',\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n left: 0,\n top: 0,\n right: 0,\n bottom: 0,\n backgroundColor: 'currentColor',\n opacity: 0.3\n }\n}, ownerState.variant === 'buffer' && {\n backgroundColor: 'transparent'\n}, ownerState.variant === 'query' && {\n transform: 'rotate(180deg)'\n}));\nconst LinearProgressDashed = styled('span', {\n name: 'MuiLinearProgress',\n slot: 'Dashed',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.dashed, styles[`dashedColor${capitalize(ownerState.color)}`]];\n }\n})(({\n ownerState,\n theme\n}) => {\n const backgroundColor = getColorShade(theme, ownerState.color);\n return _extends({\n position: 'absolute',\n marginTop: 0,\n height: '100%',\n width: '100%'\n }, ownerState.color === 'inherit' && {\n opacity: 0.3\n }, {\n backgroundImage: `radial-gradient(${backgroundColor} 0%, ${backgroundColor} 16%, transparent 42%)`,\n backgroundSize: '10px 10px',\n backgroundPosition: '0 -23px'\n });\n}, css(_t4 || (_t4 = _`\n animation: ${0} 3s infinite linear;\n `), bufferKeyframe));\nconst LinearProgressBar1 = styled('span', {\n name: 'MuiLinearProgress',\n slot: 'Bar1',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar1Indeterminate, ownerState.variant === 'determinate' && styles.bar1Determinate, ownerState.variant === 'buffer' && styles.bar1Buffer];\n }\n})(({\n ownerState,\n theme\n}) => _extends({\n width: '100%',\n position: 'absolute',\n left: 0,\n bottom: 0,\n top: 0,\n transition: 'transform 0.2s linear',\n transformOrigin: 'left',\n backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main\n}, ownerState.variant === 'determinate' && {\n transition: `transform .${TRANSITION_DURATION}s linear`\n}, ownerState.variant === 'buffer' && {\n zIndex: 1,\n transition: `transform .${TRANSITION_DURATION}s linear`\n}), ({\n ownerState\n}) => (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && css(_t5 || (_t5 = _`\n width: auto;\n animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n `), indeterminate1Keyframe));\nconst LinearProgressBar2 = styled('span', {\n name: 'MuiLinearProgress',\n slot: 'Bar2',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];\n }\n})(({\n ownerState,\n theme\n}) => _extends({\n width: '100%',\n position: 'absolute',\n left: 0,\n bottom: 0,\n top: 0,\n transition: 'transform 0.2s linear',\n transformOrigin: 'left'\n}, ownerState.variant !== 'buffer' && {\n backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main\n}, ownerState.color === 'inherit' && {\n opacity: 0.3\n}, ownerState.variant === 'buffer' && {\n backgroundColor: getColorShade(theme, ownerState.color),\n transition: `transform .${TRANSITION_DURATION}s linear`\n}), ({\n ownerState\n}) => (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && css(_t6 || (_t6 = _`\n width: auto;\n animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n `), indeterminate2Keyframe));\n\n/**\n * ## ARIA\n *\n * If the progress bar is describing the loading progress of a particular region of a page,\n * you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\n * attribute to `true` on that region until it has finished loading.\n */\nconst LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiLinearProgress'\n });\n const {\n className,\n color = 'primary',\n value,\n valueBuffer,\n variant = 'indeterminate'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n color,\n variant\n });\n const classes = useUtilityClasses(ownerState);\n const isRtl = useRtl();\n const rootProps = {};\n const inlineStyles = {\n bar1: {},\n bar2: {}\n };\n if (variant === 'determinate' || variant === 'buffer') {\n if (value !== undefined) {\n rootProps['aria-valuenow'] = Math.round(value);\n rootProps['aria-valuemin'] = 0;\n rootProps['aria-valuemax'] = 100;\n let transform = value - 100;\n if (isRtl) {\n transform = -transform;\n }\n inlineStyles.bar1.transform = `translateX(${transform}%)`;\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('MUI: You need to provide a value prop ' + 'when using the determinate or buffer variant of LinearProgress .');\n }\n }\n if (variant === 'buffer') {\n if (valueBuffer !== undefined) {\n let transform = (valueBuffer || 0) - 100;\n if (isRtl) {\n transform = -transform;\n }\n inlineStyles.bar2.transform = `translateX(${transform}%)`;\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('MUI: You need to provide a valueBuffer prop ' + 'when using the buffer variant of LinearProgress.');\n }\n }\n return /*#__PURE__*/_jsxs(LinearProgressRoot, _extends({\n className: clsx(classes.root, className),\n ownerState: ownerState,\n role: \"progressbar\"\n }, rootProps, {\n ref: ref\n }, other, {\n children: [variant === 'buffer' ? /*#__PURE__*/_jsx(LinearProgressDashed, {\n className: classes.dashed,\n ownerState: ownerState\n }) : null, /*#__PURE__*/_jsx(LinearProgressBar1, {\n className: classes.bar1,\n ownerState: ownerState,\n style: inlineStyles.bar1\n }), variant === 'determinate' ? null : /*#__PURE__*/_jsx(LinearProgressBar2, {\n className: classes.bar2,\n ownerState: ownerState,\n style: inlineStyles.bar2\n })]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? LinearProgress.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The value of the progress indicator for the determinate and buffer variants.\n * Value between 0 and 100.\n */\n value: PropTypes.number,\n /**\n * The value for the buffer variant.\n * Value between 0 and 100.\n */\n valueBuffer: PropTypes.number,\n /**\n * The variant to use.\n * Use indeterminate or query when there is no progress value.\n * @default 'indeterminate'\n */\n variant: PropTypes.oneOf(['buffer', 'determinate', 'indeterminate', 'query'])\n} : void 0;\nexport default LinearProgress;","import { keyframes } from '@emotion/react'\nimport { Box, Card, CardContent, CardMedia, LinearProgress, Typography, dclColors, styled } from 'decentraland-ui2'\n\nconst DownloadSuccessPageContainer = styled(Box)(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n background: '#830e5b',\n backgroundImage: `linear-gradient(99.92deg, ${dclColors.brand.lavender} -16.74%, #481A5F 28.57%, #33144C 56.18%, #501C66 76.26%, ${dclColors.brand.lavender} 100%)`,\n flex: 1,\n minHeight: '900px',\n alignItems: 'center',\n justifyContent: 'center',\n [theme.breakpoints.down('sm')]: {\n minHeight: 'auto',\n padding: theme.spacing(4, 0)\n }\n}))\n\nconst DownloadSuccessHeaderContainer = styled(Box)(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'flex-start',\n alignItems: 'center',\n position: 'relative',\n textAlign: 'center',\n padding: theme.spacing(0, 2)\n}))\n\nconst DownloadSuccessOsIcon = styled('img')(({ theme }) => ({\n width: theme.spacing(10),\n height: theme.spacing(10),\n filter: 'brightness(0) invert(1)'\n}))\n\nconst DownloadSuccessTitle = styled(Typography)(({ theme }) => ({\n marginTop: theme.spacing(4)\n}))\n\nconst DownloadSuccessSubtitle = styled(Typography)(({ theme }) => ({\n marginTop: theme.spacing(2),\n ['& span']: {\n color: theme.palette.primary.main\n }\n}))\n\nconst DownloadSuccessCardWrapper = styled(Box)(({ theme }) => ({\n display: 'flex',\n margin: theme.spacing(10),\n flexWrap: 'nowrap',\n justifyContent: 'center',\n [theme.breakpoints.down('md')]: {\n flexDirection: 'column',\n alignItems: 'center',\n margin: theme.spacing(6, 4)\n }\n}))\n\nconst DownloadSuccessCard = styled(Card)(({ theme }) => ({\n position: 'relative',\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'space-between',\n maxWidth: '350px',\n flex: 1,\n height: '420px',\n borderRadius: theme.spacing(3),\n border: '1px solid #A09BA87A',\n backgroundColor: '#1c072fe6',\n marginRight: theme.spacing(4),\n marginBottom: theme.spacing(4),\n ['&:last-child']: {\n marginRight: 0\n },\n [theme.breakpoints.down('md')]: {\n maxWidth: '100%',\n width: '100%',\n marginRight: 0,\n height: 'auto'\n }\n}))\n\nconst DownloadSuccessCardMedia = styled(CardMedia)(({ theme }) => ({\n minHeight: '240px',\n backgroundColor: '#5122545e',\n [theme.breakpoints.down('md')]: {\n minHeight: '200px'\n }\n}))\n\nconst highlightFadeIn = keyframes`\n 0% { box-shadow: 0 0 0 0 ${dclColors.brand.lavender}; }\n 50% { box-shadow: 0 0 25px 18.5px ${dclColors.brand.lavender}; }\n 100% { box-shadow: 0 0 0 0 ${dclColors.brand.lavender}; }\n`\n\nconst HighlightAnimation = styled(Box)(({ theme }) => ({\n position: 'absolute',\n top: '272px',\n right: '86px',\n width: '25.6px',\n height: '25.6px',\n borderRadius: '50%',\n pointerEvents: 'none',\n zIndex: 1,\n backgroundColor: 'transparent',\n animation: `${highlightFadeIn} 1s ease-in-out infinite`,\n [theme.breakpoints.down('lg')]: {\n display: 'none'\n }\n}))\n\nconst DownloadSuccessCardContent = styled(CardContent)({})\n\nconst DownloadSuccessCardTitle = styled(Typography)({\n fontSize: '1.775rem'\n})\n\nconst DownloadSuccessCardSubtitle = styled(Typography)(({ theme }) => ({\n marginTop: theme.spacing(1),\n fontSize: '0.875rem',\n fontWeight: 700,\n color: '#CFCDD4',\n ['& span']: {\n color: theme.palette.common.white\n }\n}))\n\nconst DownloadSuccessFooterContainer = styled(Box)(({ theme }) => ({\n textAlign: 'center',\n padding: theme.spacing(0, 2),\n ['& a']: {\n color: theme.palette.primary.main,\n textDecoration: 'underline',\n ['&:hover']: {\n color: theme.palette.primary.light\n }\n }\n}))\n\nconst DownloadBackdrop = styled(Box)<{ open: boolean }>(({ theme, open }) => ({\n position: 'fixed',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n zIndex: theme.zIndex.drawer + 1,\n display: open ? 'flex' : 'none',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n gap: theme.spacing(3),\n backgroundColor: 'rgba(26, 9, 28, 0.2)',\n backdropFilter: 'blur(8px)',\n ['WebkitBackdropFilter' as string]: 'blur(8px)',\n color: theme.palette.common.white\n}))\n\nconst DownloadBackdropContent = styled(Box)(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n width: 493,\n height: 251,\n borderRadius: theme.spacing(4),\n padding: theme.spacing(6),\n gap: theme.spacing(4),\n backgroundColor: dclColors.brand.purple,\n [theme.breakpoints.down('sm')]: {\n width: 'calc(100% - 32px)',\n height: 'auto',\n padding: theme.spacing(4)\n }\n}))\n\nconst DownloadBackdropText = styled(Typography)(({ theme }) => ({\n ...theme.typography.h6,\n textAlign: 'center'\n}))\n\nconst DownloadDetailContainer = styled(Box)(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gap: theme.spacing(1),\n width: '100%'\n}))\n\nconst DownloadProgressContainer = styled(Box)(({ theme }) => ({\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: theme.spacing(2),\n width: '100%'\n}))\n\nconst DownloadProgressBar = styled(LinearProgress)(({ theme }) => ({\n flex: 1,\n height: theme.spacing(2),\n borderRadius: theme.spacing(1),\n backgroundColor: 'rgba(255, 255, 255, 0.2)',\n ['& .MuiLinearProgress-bar']: {\n background: 'linear-gradient(90deg, #FF2D55 0%, #FFBC5B 100%)',\n borderRadius: theme.spacing(1)\n }\n}))\n\nexport {\n DownloadBackdrop,\n DownloadBackdropContent,\n DownloadBackdropText,\n DownloadDetailContainer,\n DownloadProgressBar,\n DownloadProgressContainer,\n DownloadSuccessCard,\n DownloadSuccessCardContent,\n DownloadSuccessCardMedia,\n DownloadSuccessCardSubtitle,\n DownloadSuccessCardTitle,\n DownloadSuccessCardWrapper,\n DownloadSuccessFooterContainer,\n DownloadSuccessHeaderContainer,\n DownloadSuccessOsIcon,\n DownloadSuccessPageContainer,\n DownloadSuccessSubtitle,\n DownloadSuccessTitle,\n HighlightAnimation\n}\n","import { memo } from 'react'\nimport type { ReactNode } from 'react'\nimport { Logo, Typography } from 'decentraland-ui2'\nimport { useFormatMessage } from '../../hooks/adapters/useFormatMessage'\nimport type { DownloadSuccessStep } from './DownloadSuccess.types'\nimport {\n DownloadBackdrop,\n DownloadBackdropContent,\n DownloadBackdropText,\n DownloadDetailContainer,\n DownloadProgressBar,\n DownloadProgressContainer,\n DownloadSuccessCard,\n DownloadSuccessCardContent,\n DownloadSuccessCardMedia,\n DownloadSuccessCardSubtitle,\n DownloadSuccessCardTitle,\n DownloadSuccessCardWrapper,\n DownloadSuccessFooterContainer,\n DownloadSuccessHeaderContainer,\n DownloadSuccessOsIcon,\n DownloadSuccessPageContainer,\n DownloadSuccessSubtitle,\n DownloadSuccessTitle\n} from './DownloadSuccess.styled'\n\ntype DownloadSuccessLayoutProps = {\n /** Whether the loading backdrop is visible */\n loading: boolean\n /** Content to render inside the backdrop (defaults to standard loading indicator) */\n backdropContent?: ReactNode\n /** The OS icon to display in the header */\n osIcon: string\n /** The page title */\n title: ReactNode\n /** The page subtitle */\n subtitle: ReactNode\n /** The steps to render as cards */\n steps: DownloadSuccessStep[]\n /** Optional render function for extra content on a card (e.g. highlight animation) */\n renderCardOverlay?: (step: DownloadSuccessStep, index: number) => ReactNode\n /** Footer content */\n footer: ReactNode\n /** Content rendered after the page container (e.g. LandingFooter) */\n afterContent?: ReactNode\n /** Optional sx overrides for the page container */\n containerSx?: Record<string, unknown>\n}\n\nconst DownloadSuccessLayout = memo(\n ({\n loading,\n backdropContent,\n osIcon,\n title,\n subtitle,\n steps,\n renderCardOverlay,\n footer,\n afterContent,\n containerSx\n }: DownloadSuccessLayoutProps) => {\n const l = useFormatMessage()\n\n const defaultBackdropContent = (\n <DownloadBackdropContent>\n <Logo size=\"huge\" />\n <DownloadDetailContainer>\n <DownloadBackdropText variant=\"h6\">{l('page.download.downloading')}</DownloadBackdropText>\n <DownloadProgressContainer>\n <DownloadProgressBar />\n </DownloadProgressContainer>\n </DownloadDetailContainer>\n </DownloadBackdropContent>\n )\n\n return (\n <>\n <DownloadBackdrop open={loading}>{backdropContent ?? defaultBackdropContent}</DownloadBackdrop>\n\n <DownloadSuccessPageContainer sx={containerSx}>\n <DownloadSuccessHeaderContainer>\n <DownloadSuccessOsIcon src={osIcon} alt=\"\" loading=\"lazy\" />\n <DownloadSuccessTitle variant=\"h3\">{title}</DownloadSuccessTitle>\n <DownloadSuccessSubtitle variant=\"h5\">{subtitle}</DownloadSuccessSubtitle>\n </DownloadSuccessHeaderContainer>\n\n <DownloadSuccessCardWrapper>\n {steps.map((step, index) => (\n <DownloadSuccessCard key={index}>\n <DownloadSuccessCardContent>\n <Typography variant=\"overline\">\n {l('page.download.success.step')} {index + 1}\n </Typography>\n <DownloadSuccessCardTitle variant=\"h4\">{step.title}</DownloadSuccessCardTitle>\n <DownloadSuccessCardSubtitle variant=\"body1\">{step.text}</DownloadSuccessCardSubtitle>\n </DownloadSuccessCardContent>\n <DownloadSuccessCardMedia image={step.image} />\n {renderCardOverlay?.(step, index)}\n </DownloadSuccessCard>\n ))}\n </DownloadSuccessCardWrapper>\n\n <DownloadSuccessFooterContainer>{footer}</DownloadSuccessFooterContainer>\n </DownloadSuccessPageContainer>\n\n {afterContent}\n </>\n )\n }\n)\n\nDownloadSuccessLayout.displayName = 'DownloadSuccessLayout'\n\nexport { DownloadSuccessLayout }\nexport type { DownloadSuccessLayoutProps }\n"],"names":["getLinearProgressUtilityClass","slot","generateUtilityClass","generateUtilityClasses","_excluded","_","t","_t","_t2","_t3","_t4","_t5","_t6","TRANSITION_DURATION","indeterminate1Keyframe","keyframes","indeterminate2Keyframe","bufferKeyframe","useUtilityClasses","ownerState","classes","variant","color","slots","capitalize","composeClasses","getColorShade","theme","lighten","darken","LinearProgressRoot","styled","props","styles","_extends","LinearProgressDashed","backgroundColor","css","LinearProgressBar1","LinearProgressBar2","LinearProgress","React.forwardRef","inProps","ref","useDefaultProps","className","value","valueBuffer","other","_objectWithoutPropertiesLoose","isRtl","useRtl","rootProps","inlineStyles","transform","_jsxs","clsx","_jsx","DownloadSuccessPageContainer","Box","dclColors.brand","DownloadSuccessHeaderContainer","DownloadSuccessOsIcon","DownloadSuccessTitle","Typography","DownloadSuccessSubtitle","DownloadSuccessCardWrapper","DownloadSuccessCard","Card","DownloadSuccessCardMedia","CardMedia","highlightFadeIn","HighlightAnimation","DownloadSuccessCardContent","CardContent","DownloadSuccessCardTitle","DownloadSuccessCardSubtitle","DownloadSuccessFooterContainer","DownloadBackdrop","open","DownloadBackdropContent","DownloadBackdropText","DownloadDetailContainer","DownloadProgressContainer","DownloadProgressBar","DownloadSuccessLayout","memo","loading","backdropContent","osIcon","title","subtitle","steps","renderCardOverlay","footer","afterContent","containerSx","l","useFormatMessage","defaultBackdropContent","jsx","Logo","jsxs","Fragment","step","index"],"mappings":"kUAEO,SAASA,EAA8BC,EAAM,CAClD,OAAOC,EAAqB,oBAAqBD,CAAI,CACvD,CAC8BE,EAAuB,oBAAqB,CAAC,OAAQ,eAAgB,iBAAkB,cAAe,gBAAiB,SAAU,QAAS,SAAU,qBAAsB,uBAAwB,MAAO,kBAAmB,oBAAqB,oBAAqB,kBAAmB,aAAc,oBAAqB,YAAY,CAAC,ECDvW,MAAMC,EAAY,CAAC,YAAa,QAAS,QAAS,cAAe,SAAS,EAC1E,IAAIC,EAAIC,GAAKA,EACXC,EACAC,EACAC,EACAC,EACAC,EACAC,EAcF,MAAMC,EAAsB,EACtBC,EAAyBC,EAAUR,IAAOA,EAAKF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAenD,EACIW,EAAyBD,EAAUP,IAAQA,EAAMH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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as Q,r as c}from"./vendor-router-D7SOoytt.js";import{d as J,e as G,u as z,g as N,h as V,i as W,J as O,c as H,C as q}from"./PageContainer.styled-Bbv_6rIn.js";import{u as K,C as X,R as Y}from"./RemindMeButton-BtxpQEzy.js";import{D as Z,a as L,p as oo,e as eo,f as M}from"./JumpInButton-CqKycSau.js";import{A as to}from"./AnimatedBackground-CO__t7bG.js";import"./vendor-crypto-CXsBIwXr.js";import"./vendor-schemas-DJzTSxpO.js";import"./vendor-sentry-DCdewyWN.js";import"./vendor-ua-D7qqAxdq.js";import"./vendor-intl-D2lXWsDp.js";import"./AccessTime-DpsycoTx.js";import"./CircularProgress-D1x03AKQ.js";import"./Skeleton-iNlScP9H.js";import"./placesClient-Brx26wG2.js";import"./rtk-query-react.modern-BAShPeSa.js";import"./events.client-By7Zddj9.js";import"./signedFetch-BH66xky9.js";import"./useAuthIdentity-B6QSalIu.js";import"./ContentCopy-C4kDxda3.js";import"./JumpInIcon-ZOn0wOk1.js";const R=C(D,{shouldForwardProp:e=>e!=="isMobile"})(({isMobile:e})=>({display:"flex",flexDirection:e?"column":"row",gap:12,width:"100%",marginTop:e?0:16})),ro=C(F)({color:"#FCFCFC",borderColor:"#FCFCFC",borderRadius:8,textTransform:"none",fontWeight:600,fontSize:14,padding:"8px 24px","&:hover":{backgroundColor:"#4A0F5F",borderColor:"#FCFCFC",color:"#FCFCFC"}}),ao=C(F)({backgroundColor:"#FCFCFC",color:"#161518",borderColor:"#E0E0E0",borderRadius:8,minWidth:"auto",width:48,height:40,padding:0,"&:hover":{backgroundColor:"#F5F5F5",borderColor:"#FF2D55"}}),no=C(F)({color:"#161518"});function so(e,i){const t=new URLSearchParams;t.set("text",e.name);const d=`${b("JUMP_IN_URL")??"https://decentraland.org/jump"}/events?position=${e.x??0},${e.y??0}`,u=e.description?`${e.description}
1
+ import{s as C,a as D,B as F,x as T,z as U,g as b,j as r}from"./index-BWvXRlTE.js";import{a as A,b as Q,r as c}from"./vendor-router-D7SOoytt.js";import{d as J,e as G,u as z,g as N,h as V,i as W,J as O,c as H,C as q}from"./PageContainer.styled-DvE7NPbD.js";import{u as K,C as X,R as Y}from"./RemindMeButton-DnlXMDH0.js";import{D as Z,a as L,p as oo,e as eo,f as M}from"./JumpInButton-DorJjQyB.js";import{A as to}from"./AnimatedBackground-CY9KApzI.js";import"./vendor-crypto-CXsBIwXr.js";import"./vendor-schemas-DJzTSxpO.js";import"./vendor-sentry-DCdewyWN.js";import"./vendor-ua-D7qqAxdq.js";import"./vendor-intl-D2lXWsDp.js";import"./AccessTime-HgE1uMjl.js";import"./CircularProgress-Z0W76ens.js";import"./Skeleton-CSFvCtu0.js";import"./placesClient-C2aFU8QL.js";import"./rtk-query-react.modern-eNgJtwbJ.js";import"./events.client-KDioNnTz.js";import"./signedFetch-wfXfas0G.js";import"./useAuthIdentity-B89tP4lt.js";import"./ContentCopy-88ne4JTk.js";import"./JumpInIcon-DfpHf5gS.js";const R=C(D,{shouldForwardProp:e=>e!=="isMobile"})(({isMobile:e})=>({display:"flex",flexDirection:e?"column":"row",gap:12,width:"100%",marginTop:e?0:16})),ro=C(F)({color:"#FCFCFC",borderColor:"#FCFCFC",borderRadius:8,textTransform:"none",fontWeight:600,fontSize:14,padding:"8px 24px","&:hover":{backgroundColor:"#4A0F5F",borderColor:"#FCFCFC",color:"#FCFCFC"}}),ao=C(F)({backgroundColor:"#FCFCFC",color:"#161518",borderColor:"#E0E0E0",borderRadius:8,minWidth:"auto",width:48,height:40,padding:0,"&:hover":{backgroundColor:"#F5F5F5",borderColor:"#FF2D55"}}),no=C(F)({color:"#161518"});function so(e,i){const t=new URLSearchParams;t.set("text",e.name);const d=`${b("JUMP_IN_URL")??"https://decentraland.org/jump"}/events?position=${e.x??0},${e.y??0}`,u=e.description?`${e.description}
2
2
 
3
3
  ${i}: ${d}`:`${i}: ${d}`;t.set("details",u);const p=M(new Date(e.start_at)),n=M(new Date(e.finish_at));return t.set("dates",`${p}/${n}`),`https://calendar.google.com/calendar/r/eventedit?${t.toString()}`}const Lo=()=>{const[e]=A(),i=Q(),t=T(),d=U(),u=e.get("position")??Z,p=e.get("realm")??L,n=e.get("id"),m=c.useMemo(()=>oo(u),[u]),_=p===L?void 0:p,g=J({id:n??""},{skip:!n}),h=G({position:m.coordinates,realm:_},{skip:!!n}),v=z({position:m.coordinates,realm:_}),x=g.isLoading||h.isLoading,o=n?g.data:h.data?.[0],w=N({address:o?.user??""},{skip:!o?.user});c.useEffect(()=>{if(!n&&!m.isValid||g.isError||h.isError){i("/jump/events/invalid");return}!x&&!o&&i("/jump/events/invalid")},[n,m.isValid,g.isError,h.isError,o,x,i]);const s=c.useMemo(()=>{if(!o)return;const a=V(o);if(o.live&&v.data){const f=v.data.find(l=>l.title===o.scene_name||l.base_position===o.coordinates.join(","));if(f)return{...a,user_count:f.user_count||0}}return a},[o,v.data]),{isReminded:j,isLoading:E,isShaking:y,handleToggle:P}=K(o?.id??"",!!s?.attending),k=c.useCallback(()=>{if(!o)return;const a=t("component.jump.events_page.calendar_label");window.open(so(o,a),"_blank","noopener,noreferrer")},[o,t]),$=c.useCallback(async()=>{if(!o)return;const a=o.name,f=o.description,l=`${b("JUMP_IN_URL")??"https://decentraland.org/jump"}/events?position=${o.x??0},${o.y??0}`;if(typeof navigator.share=="function")try{await navigator.share({title:a,text:f,url:l});return}catch{}try{await navigator.clipboard.writeText(l)}catch(S){console.error("Share failed",S)}},[o]),I=c.useMemo(()=>{if(!s||!s.start_at)return null;const a=eo(s);return s.live?null:a?r.jsx(R,{isMobile:d,children:r.jsx(no,{variant:"contained",color:"secondary",href:b("EVENTS_URL"),size:"large",fullWidth:!0,children:t("component.jump.events_page.explore_events_button")})}):r.jsxs(R,{isMobile:d,children:[r.jsx(ro,{variant:"outlined",startIcon:r.jsx(X,{size:16}),"aria-label":t("component.jump.card.accessibility.add_to_calendar_button"),onClick:k,children:t("component.jump.card.event.add_to_calendar")}),r.jsx(Y,{isReminded:j,isLoading:E,isShaking:y,label:t("component.jump.card.event.interested"),onClick:P}),r.jsx(ao,{variant:"outlined","aria-label":t("component.jump.card.accessibility.share_button"),onClick:$,children:r.jsx(W,{sx:{fontSize:16,color:"#FF2D55"}})})]})},[s,d,j,E,y,t,k,P,$]),B=w.data??void 0;return r.jsxs(O,{children:[r.jsx(to,{variant:"fixed"}),r.jsx(H,{children:r.jsx(q,{data:s,isLoading:x,creator:B,children:I})})]})};export{Lo as EventsPage};
@@ -1 +1 @@
1
- {"version":3,"file":"EventsPage-C9kUjKcs.js","sources":["../../src/pages/jump/EventsPage.styled.ts","../../src/pages/jump/EventsPage.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\nimport { Box, Button, styled } from 'decentraland-ui2'\n\ninterface ActionsProps {\n isMobile: boolean\n}\n\nconst EventActions = styled(Box, {\n shouldForwardProp: prop => prop !== 'isMobile'\n})<ActionsProps>(({ isMobile }) => ({\n display: 'flex',\n flexDirection: isMobile ? 'column' : 'row',\n gap: 12,\n width: '100%',\n marginTop: isMobile ? 0 : 16\n}))\n\nconst CalendarButton = styled(Button)({\n color: '#FCFCFC',\n borderColor: '#FCFCFC',\n borderRadius: 8,\n textTransform: 'none',\n fontWeight: 600,\n fontSize: 14,\n padding: '8px 24px',\n '&:hover': {\n backgroundColor: '#4A0F5F',\n borderColor: '#FCFCFC',\n color: '#FCFCFC'\n }\n})\n\nconst ShareIconButton = styled(Button)({\n backgroundColor: '#FCFCFC',\n color: '#161518',\n borderColor: '#E0E0E0',\n borderRadius: 8,\n minWidth: 'auto',\n width: 48,\n height: 40,\n padding: 0,\n '&:hover': {\n backgroundColor: '#F5F5F5',\n borderColor: '#FF2D55'\n }\n})\n\nconst ExploreEventsButton = styled(Button)({\n color: '#161518'\n})\n\nexport { CalendarButton, EventActions, ExploreEventsButton, ShareIconButton }\n","/* eslint-disable @typescript-eslint/naming-convention */\nimport { useCallback, useEffect, useMemo } from 'react'\nimport { useNavigate, useSearchParams } from 'react-router-dom'\nimport ShareIcon from '@mui/icons-material/Share'\nimport { AnimatedBackground, useMobileMediaQuery } from 'decentraland-ui2'\nimport { Card } from '../../components/jump/Card'\nimport { CalendarAddIcon } from '../../components/whats-on/common/CalendarAddIcon'\nimport { RemindMeButton as WatsonRemindMeButton } from '../../components/whats-on/common/RemindMeButton'\nimport { getEnv } from '../../config/env'\nimport {\n DEFAULT_POSITION,\n DEFAULT_REALM,\n eventHasEnded,\n formatDateForGoogleCalendar,\n fromEvent,\n parsePosition,\n useGetJumpEventByIdQuery,\n useGetJumpEventsQuery,\n useGetJumpPlacesQuery,\n useGetProfileCreatorQuery\n} from '../../features/jump'\nimport type { CardData, JumpEvent } from '../../features/jump/jump.types'\nimport { useFormatMessage } from '../../hooks/adapters/useFormatMessage'\nimport { useRemindMe } from '../../hooks/useRemindMe'\nimport { CalendarButton, EventActions, ExploreEventsButton, ShareIconButton } from './EventsPage.styled'\nimport { JumpPageContainer, JumpPageContent } from './PageContainer.styled'\n\nfunction buildGoogleCalendarUrl(event: JumpEvent, label: string): string {\n const params = new URLSearchParams()\n params.set('text', event.name)\n const jumpInUrl = `${getEnv('JUMP_IN_URL') ?? 'https://decentraland.org/jump'}/events?position=${event.x ?? 0},${event.y ?? 0}`\n const details = event.description ? `${event.description}\\n\\n${label}: ${jumpInUrl}` : `${label}: ${jumpInUrl}`\n params.set('details', details)\n const start = formatDateForGoogleCalendar(new Date(event.start_at))\n const finish = formatDateForGoogleCalendar(new Date(event.finish_at))\n params.set('dates', `${start}/${finish}`)\n return `https://calendar.google.com/calendar/r/eventedit?${params.toString()}`\n}\n\nconst EventsPage = () => {\n const [searchParams] = useSearchParams()\n const navigate = useNavigate()\n const formatMessage = useFormatMessage()\n const isMobile = useMobileMediaQuery()\n\n const positionParam = searchParams.get('position') ?? DEFAULT_POSITION\n const realmParam = searchParams.get('realm') ?? DEFAULT_REALM\n const idParam = searchParams.get('id')\n\n const parsedPosition = useMemo(() => parsePosition(positionParam), [positionParam])\n const realm = realmParam === DEFAULT_REALM ? undefined : realmParam\n\n const byIdQuery = useGetJumpEventByIdQuery({ id: idParam ?? '' }, { skip: !idParam })\n const byPositionQuery = useGetJumpEventsQuery({ position: parsedPosition.coordinates, realm }, { skip: Boolean(idParam) })\n const placesQuery = useGetJumpPlacesQuery({ position: parsedPosition.coordinates, realm })\n\n const isLoading = byIdQuery.isLoading || byPositionQuery.isLoading\n const event = idParam ? byIdQuery.data : byPositionQuery.data?.[0]\n\n const creatorQuery = useGetProfileCreatorQuery({ address: event?.user ?? '' }, { skip: !event?.user })\n\n useEffect(() => {\n const isInvalidPosition = !idParam && !parsedPosition.isValid\n if (isInvalidPosition || byIdQuery.isError || byPositionQuery.isError) {\n navigate('/jump/events/invalid')\n return\n }\n if (!isLoading && !event) {\n navigate('/jump/events/invalid')\n }\n }, [idParam, parsedPosition.isValid, byIdQuery.isError, byPositionQuery.isError, event, isLoading, navigate])\n\n const cardData: CardData | undefined = useMemo(() => {\n if (!event) return undefined\n const mapped = fromEvent(event)\n if (event.live && placesQuery.data) {\n const match = placesQuery.data.find(place => place.title === event.scene_name || place.base_position === event.coordinates.join(','))\n if (match) return { ...mapped, user_count: match.user_count || 0 }\n }\n return mapped\n }, [event, placesQuery.data])\n\n // Watson-style Remind Me: identity check, optimistic update, bell shake.\n const {\n isReminded,\n isLoading: remindLoading,\n isShaking,\n handleToggle: handleRemindToggle\n } = useRemindMe(event?.id ?? '', Boolean(cardData?.attending))\n\n const handleAddToCalendar = useCallback(() => {\n if (!event) return\n const label = formatMessage('component.jump.events_page.calendar_label')\n window.open(buildGoogleCalendarUrl(event, label), '_blank', 'noopener,noreferrer')\n }, [event, formatMessage])\n\n const handleShare = useCallback(async () => {\n if (!event) return\n const title = event.name\n const text = event.description\n const url = `${getEnv('JUMP_IN_URL') ?? 'https://decentraland.org/jump'}/events?position=${event.x ?? 0},${event.y ?? 0}`\n if (typeof navigator.share === 'function') {\n try {\n await navigator.share({ title, text, url })\n return\n } catch {\n /* fallback to clipboard */\n }\n }\n try {\n await navigator.clipboard.writeText(url)\n } catch (error) {\n console.error('Share failed', error)\n }\n }, [event])\n\n const actions = useMemo(() => {\n if (!cardData || !cardData.start_at) return null\n const hasEnded = eventHasEnded(cardData)\n if (cardData.live) return null\n\n if (hasEnded) {\n return (\n <EventActions isMobile={isMobile}>\n <ExploreEventsButton variant=\"contained\" color=\"secondary\" href={getEnv('EVENTS_URL')} size=\"large\" fullWidth>\n {formatMessage('component.jump.events_page.explore_events_button')}\n </ExploreEventsButton>\n </EventActions>\n )\n }\n\n return (\n <EventActions isMobile={isMobile}>\n <CalendarButton\n variant=\"outlined\"\n startIcon={<CalendarAddIcon size={16} />}\n aria-label={formatMessage('component.jump.card.accessibility.add_to_calendar_button')}\n onClick={handleAddToCalendar}\n >\n {formatMessage('component.jump.card.event.add_to_calendar')}\n </CalendarButton>\n <WatsonRemindMeButton\n isReminded={isReminded}\n isLoading={remindLoading}\n isShaking={isShaking}\n label={formatMessage('component.jump.card.event.interested')}\n onClick={handleRemindToggle}\n />\n <ShareIconButton\n variant=\"outlined\"\n aria-label={formatMessage('component.jump.card.accessibility.share_button')}\n onClick={handleShare}\n >\n <ShareIcon sx={{ fontSize: 16, color: '#FF2D55' }} />\n </ShareIconButton>\n </EventActions>\n )\n }, [cardData, isMobile, isReminded, remindLoading, isShaking, formatMessage, handleAddToCalendar, handleRemindToggle, handleShare])\n\n const creator = creatorQuery.data ?? undefined\n\n return (\n <JumpPageContainer>\n <AnimatedBackground variant=\"fixed\" />\n <JumpPageContent>\n <Card data={cardData} isLoading={isLoading} creator={creator}>\n {actions}\n </Card>\n </JumpPageContent>\n </JumpPageContainer>\n )\n}\n\nexport { EventsPage }\n"],"names":["EventActions","styled","Box","prop","isMobile","CalendarButton","Button","ShareIconButton","ExploreEventsButton","buildGoogleCalendarUrl","event","label","params","jumpInUrl","getEnv","details","start","formatDateForGoogleCalendar","finish","EventsPage","searchParams","useSearchParams","navigate","useNavigate","formatMessage","useFormatMessage","useMobileMediaQuery","positionParam","DEFAULT_POSITION","realmParam","DEFAULT_REALM","idParam","parsedPosition","useMemo","parsePosition","realm","byIdQuery","useGetJumpEventByIdQuery","byPositionQuery","useGetJumpEventsQuery","placesQuery","useGetJumpPlacesQuery","isLoading","creatorQuery","useGetProfileCreatorQuery","useEffect","cardData","mapped","fromEvent","match","place","isReminded","remindLoading","isShaking","handleRemindToggle","useRemindMe","handleAddToCalendar","useCallback","handleShare","title","text","url","error","actions","hasEnded","eventHasEnded","jsx","jsxs","CalendarAddIcon","WatsonRemindMeButton","ShareIcon","creator","JumpPageContainer","AnimatedBackground","JumpPageContent","Card"],"mappings":"s9BAOA,MAAMA,EAAeC,EAAOC,EAAK,CAC/B,qBAA2BC,IAAS,UACtC,CAAC,EAAgB,CAAC,CAAE,SAAAC,MAAgB,CAClC,QAAS,OACT,cAAeA,EAAW,SAAW,MACrC,IAAK,GACL,MAAO,OACP,UAAWA,EAAW,EAAI,EAC5B,EAAE,EAEIC,GAAiBJ,EAAOK,CAAM,EAAE,CACpC,MAAO,UACP,YAAa,UACb,aAAc,EACd,cAAe,OACf,WAAY,IACZ,SAAU,GACV,QAAS,WACT,UAAW,CACT,gBAAiB,UACjB,YAAa,UACb,MAAO,SAAA,CAEX,CAAC,EAEKC,GAAkBN,EAAOK,CAAM,EAAE,CACrC,gBAAiB,UACjB,MAAO,UACP,YAAa,UACb,aAAc,EACd,SAAU,OACV,MAAO,GACP,OAAQ,GACR,QAAS,EACT,UAAW,CACT,gBAAiB,UACjB,YAAa,SAAA,CAEjB,CAAC,EAEKE,GAAsBP,EAAOK,CAAM,EAAE,CACzC,MAAO,SACT,CAAC,ECtBD,SAASG,GAAuBC,EAAkBC,EAAuB,CACvE,MAAMC,EAAS,IAAI,gBACnBA,EAAO,IAAI,OAAQF,EAAM,IAAI,EAC7B,MAAMG,EAAY,GAAGC,EAAO,aAAa,GAAK,+BAA+B,oBAAoBJ,EAAM,GAAK,CAAC,IAAIA,EAAM,GAAK,CAAC,GACvHK,EAAUL,EAAM,YAAc,GA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,CAAK,KAAM7B,EAAU,UAAAJ,EAAsB,QAAA6B,EACzC,SAAAR,CAAA,CACH,CAAA,CACF,CAAA,EACF,CAEJ"}
1
+ {"version":3,"file":"EventsPage-DQRgzFAr.js","sources":["../../src/pages/jump/EventsPage.styled.ts","../../src/pages/jump/EventsPage.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\nimport { Box, Button, styled } from 'decentraland-ui2'\n\ninterface ActionsProps {\n isMobile: boolean\n}\n\nconst EventActions = styled(Box, {\n shouldForwardProp: prop => prop !== 'isMobile'\n})<ActionsProps>(({ isMobile }) => ({\n display: 'flex',\n flexDirection: isMobile ? 'column' : 'row',\n gap: 12,\n width: '100%',\n marginTop: isMobile ? 0 : 16\n}))\n\nconst CalendarButton = styled(Button)({\n color: '#FCFCFC',\n borderColor: '#FCFCFC',\n borderRadius: 8,\n textTransform: 'none',\n fontWeight: 600,\n fontSize: 14,\n padding: '8px 24px',\n '&:hover': {\n backgroundColor: '#4A0F5F',\n borderColor: '#FCFCFC',\n color: '#FCFCFC'\n }\n})\n\nconst ShareIconButton = styled(Button)({\n backgroundColor: '#FCFCFC',\n color: '#161518',\n borderColor: '#E0E0E0',\n borderRadius: 8,\n minWidth: 'auto',\n width: 48,\n height: 40,\n padding: 0,\n '&:hover': {\n backgroundColor: '#F5F5F5',\n borderColor: '#FF2D55'\n }\n})\n\nconst ExploreEventsButton = styled(Button)({\n color: '#161518'\n})\n\nexport { CalendarButton, EventActions, ExploreEventsButton, ShareIconButton }\n","/* eslint-disable @typescript-eslint/naming-convention */\nimport { useCallback, useEffect, useMemo } from 'react'\nimport { useNavigate, useSearchParams } from 'react-router-dom'\nimport ShareIcon from '@mui/icons-material/Share'\nimport { AnimatedBackground, useMobileMediaQuery } from 'decentraland-ui2'\nimport { Card } from '../../components/jump/Card'\nimport { CalendarAddIcon } from '../../components/whats-on/common/CalendarAddIcon'\nimport { RemindMeButton as WatsonRemindMeButton } from '../../components/whats-on/common/RemindMeButton'\nimport { getEnv } from '../../config/env'\nimport {\n DEFAULT_POSITION,\n DEFAULT_REALM,\n eventHasEnded,\n formatDateForGoogleCalendar,\n fromEvent,\n parsePosition,\n useGetJumpEventByIdQuery,\n useGetJumpEventsQuery,\n useGetJumpPlacesQuery,\n useGetProfileCreatorQuery\n} from '../../features/jump'\nimport type { CardData, JumpEvent } from '../../features/jump/jump.types'\nimport { useFormatMessage } from '../../hooks/adapters/useFormatMessage'\nimport { useRemindMe } from '../../hooks/useRemindMe'\nimport { CalendarButton, EventActions, ExploreEventsButton, ShareIconButton } from './EventsPage.styled'\nimport { JumpPageContainer, JumpPageContent } from './PageContainer.styled'\n\nfunction buildGoogleCalendarUrl(event: JumpEvent, label: string): string {\n const params = new URLSearchParams()\n params.set('text', event.name)\n const jumpInUrl = `${getEnv('JUMP_IN_URL') ?? 'https://decentraland.org/jump'}/events?position=${event.x ?? 0},${event.y ?? 0}`\n const details = event.description ? `${event.description}\\n\\n${label}: ${jumpInUrl}` : `${label}: ${jumpInUrl}`\n params.set('details', details)\n const start = formatDateForGoogleCalendar(new Date(event.start_at))\n const finish = formatDateForGoogleCalendar(new Date(event.finish_at))\n params.set('dates', `${start}/${finish}`)\n return `https://calendar.google.com/calendar/r/eventedit?${params.toString()}`\n}\n\nconst EventsPage = () => {\n const [searchParams] = useSearchParams()\n const navigate = useNavigate()\n const formatMessage = useFormatMessage()\n const isMobile = useMobileMediaQuery()\n\n const positionParam = searchParams.get('position') ?? DEFAULT_POSITION\n const realmParam = searchParams.get('realm') ?? DEFAULT_REALM\n const idParam = searchParams.get('id')\n\n const parsedPosition = useMemo(() => parsePosition(positionParam), [positionParam])\n const realm = realmParam === DEFAULT_REALM ? undefined : realmParam\n\n const byIdQuery = useGetJumpEventByIdQuery({ id: idParam ?? '' }, { skip: !idParam })\n const byPositionQuery = useGetJumpEventsQuery({ position: parsedPosition.coordinates, realm }, { skip: Boolean(idParam) })\n const placesQuery = useGetJumpPlacesQuery({ position: parsedPosition.coordinates, realm })\n\n const isLoading = byIdQuery.isLoading || byPositionQuery.isLoading\n const event = idParam ? byIdQuery.data : byPositionQuery.data?.[0]\n\n const creatorQuery = useGetProfileCreatorQuery({ address: event?.user ?? '' }, { skip: !event?.user })\n\n useEffect(() => {\n const isInvalidPosition = !idParam && !parsedPosition.isValid\n if (isInvalidPosition || byIdQuery.isError || byPositionQuery.isError) {\n navigate('/jump/events/invalid')\n return\n }\n if (!isLoading && !event) {\n navigate('/jump/events/invalid')\n }\n }, [idParam, parsedPosition.isValid, byIdQuery.isError, byPositionQuery.isError, event, isLoading, navigate])\n\n const cardData: CardData | undefined = useMemo(() => {\n if (!event) return undefined\n const mapped = fromEvent(event)\n if (event.live && placesQuery.data) {\n const match = placesQuery.data.find(place => place.title === event.scene_name || place.base_position === event.coordinates.join(','))\n if (match) return { ...mapped, user_count: match.user_count || 0 }\n }\n return mapped\n }, [event, placesQuery.data])\n\n // Watson-style Remind Me: identity check, optimistic update, bell shake.\n const {\n isReminded,\n isLoading: remindLoading,\n isShaking,\n handleToggle: handleRemindToggle\n } = useRemindMe(event?.id ?? '', Boolean(cardData?.attending))\n\n const handleAddToCalendar = useCallback(() => {\n if (!event) return\n const label = formatMessage('component.jump.events_page.calendar_label')\n window.open(buildGoogleCalendarUrl(event, label), '_blank', 'noopener,noreferrer')\n }, [event, formatMessage])\n\n const handleShare = useCallback(async () => {\n if (!event) return\n const title = event.name\n const text = event.description\n const url = `${getEnv('JUMP_IN_URL') ?? 'https://decentraland.org/jump'}/events?position=${event.x ?? 0},${event.y ?? 0}`\n if (typeof navigator.share === 'function') {\n try {\n await navigator.share({ title, text, url })\n return\n } catch {\n /* fallback to clipboard */\n }\n }\n try {\n await navigator.clipboard.writeText(url)\n } catch (error) {\n console.error('Share failed', error)\n }\n }, [event])\n\n const actions = useMemo(() => {\n if (!cardData || !cardData.start_at) return null\n const hasEnded = eventHasEnded(cardData)\n if (cardData.live) return null\n\n if (hasEnded) {\n return (\n <EventActions isMobile={isMobile}>\n <ExploreEventsButton variant=\"contained\" color=\"secondary\" href={getEnv('EVENTS_URL')} size=\"large\" fullWidth>\n {formatMessage('component.jump.events_page.explore_events_button')}\n </ExploreEventsButton>\n </EventActions>\n )\n }\n\n return (\n <EventActions isMobile={isMobile}>\n <CalendarButton\n variant=\"outlined\"\n startIcon={<CalendarAddIcon size={16} />}\n aria-label={formatMessage('component.jump.card.accessibility.add_to_calendar_button')}\n onClick={handleAddToCalendar}\n >\n {formatMessage('component.jump.card.event.add_to_calendar')}\n </CalendarButton>\n <WatsonRemindMeButton\n isReminded={isReminded}\n isLoading={remindLoading}\n isShaking={isShaking}\n label={formatMessage('component.jump.card.event.interested')}\n onClick={handleRemindToggle}\n />\n <ShareIconButton\n variant=\"outlined\"\n aria-label={formatMessage('component.jump.card.accessibility.share_button')}\n onClick={handleShare}\n >\n <ShareIcon sx={{ fontSize: 16, color: '#FF2D55' }} />\n </ShareIconButton>\n </EventActions>\n )\n }, [cardData, isMobile, isReminded, remindLoading, isShaking, formatMessage, handleAddToCalendar, handleRemindToggle, handleShare])\n\n const creator = creatorQuery.data ?? undefined\n\n return (\n <JumpPageContainer>\n <AnimatedBackground variant=\"fixed\" />\n <JumpPageContent>\n <Card data={cardData} isLoading={isLoading} creator={creator}>\n {actions}\n </Card>\n </JumpPageContent>\n </JumpPageContainer>\n )\n}\n\nexport { EventsPage }\n"],"names":["EventActions","styled","Box","prop","isMobile","CalendarButton","Button","ShareIconButton","ExploreEventsButton","buildGoogleCalendarUrl","event","label","params","jumpInUrl","getEnv","details","start","formatDateForGoogleCalendar","finish","EventsPage","searchParams","useSearchParams","navigate","useNavigate","formatMessage","useFormatMessage","useMobileMediaQuery","positionParam","DEFAULT_POSITION","realmParam","DEFAULT_REALM","idParam","parsedPosition","useMemo","parsePosition","realm","byIdQuery","useGetJumpEventByIdQuery","byPositionQuery","useGetJumpEventsQuery","placesQuery","useGetJumpPlacesQuery","isLoading","creatorQuery","useGetProfileCreatorQuery","useEffect","cardData","mapped","fromEvent","match","place","isReminded","remindLoading","isShaking","handleRemindToggle","useRemindMe","handleAddToCalendar","useCallback","handleShare","title","text","url","error","actions","hasEnded","eventHasEnded","jsx","jsxs","CalendarAddIcon","WatsonRemindMeButton","ShareIcon","creator","JumpPageContainer","AnimatedBackground","JumpPageContent","Card"],"mappings":"s9BAOA,MAAMA,EAAeC,EAAOC,EAAK,CAC/B,qBAA2BC,IAAS,UACtC,CAAC,EAAgB,CAAC,CAAE,SAAAC,MAAgB,CAClC,QAAS,OACT,cAAeA,EAAW,SAAW,MACrC,IAAK,GACL,MAAO,OACP,UAAWA,EAAW,EAAI,EAC5B,EAAE,EAEIC,GAAiBJ,EAAOK,CAAM,EAAE,CACpC,MAAO,UACP,YAAa,UACb,aAAc,EACd,cAAe,OACf,WAAY,IACZ,SAAU,GACV,QAAS,WACT,UAAW,CACT,gBAAiB,UACjB,YAAa,UACb,MAAO,SAAA,CAEX,CAAC,EAEKC,GAAkBN,EAAOK,CAAM,EAAE,CACrC,gBAAiB,UACjB,MAAO,UACP,YAAa,UACb,aAAc,EACd,SAAU,OACV,MAAO,GACP,OAAQ,GACR,QAAS,EACT,UAAW,CACT,gBAAiB,UACjB,YAAa,SAAA,CAEjB,CAAC,EAEKE,GAAsBP,EAAOK,CAAM,EAAE,CACzC,MAAO,SACT,CAAC,ECtBD,SAASG,GAAuBC,EAAkBC,EAAuB,CACvE,MAAMC,EAAS,IAAI,gBACnBA,EAAO,IAAI,OAAQF,EAAM,IAAI,EAC7B,MAAMG,EAAY,GAAGC,EAAO,aAAa,GAAK,+BAA+B,oBAAoBJ,EAAM,GAAK,CAAC,IAAIA,EAAM,GAAK,CAAC,GACvHK,EAAUL,EAAM,YAAc,GAAGA,EAAM,WAAW;AAAA;AAAA,EAAOC,CAAK,KAAKE,CAAS,GAAK,GAAGF,CAAK,KAAKE,CAAS,GAC7GD,EAAO,IAAI,UAAWG,CAAO,EAC7B,MAAMC,EAAQC,EAA4B,IAAI,KAAKP,EAAM,QAAQ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krZGYy.js";import{r as c}from"./vendor-router-D7SOoytt.js";const V=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(l){return`scale(${l}, ${l**2})`}const X={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},h=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Y=c.forwardRef(function(x,L){const{addEndListener:y,appear:_=!0,children:f,easing:T,in:R,onEnter:j,onEntered:w,onEntering:D,onExit:v,onExited:H,onExiting:C,style:E,timeout:o="auto",TransitionComponent:F=B}=x,G=J(x,V),P=M(),g=c.useRef(),r=N(),d=c.useRef(null),b=O(d,f.ref,L),s=t=>e=>{if(t){const i=d.current;e===void 0?t(i):t(i,e)}},S=s(D),W=s((t,e)=>{U(t);const{duration:i,delay:u,easing:n}=A({style:E,timeout:o,easing:T},{mode:"enter"});let a;o==="auto"?(a=r.transitions.getAutoHeightDuration(t.clientHeight),g.current=a):a=i,t.style.transition=[r.transitions.create("opacity",{duration:a,delay:u}),r.transitions.create("transform",{duration:h?a:a*.666,delay:u,easing:n})].join(","),j&&j(t,e)}),$=s(w),k=s(C),z=s(t=>{const{duration:e,delay:i,easing:u}=A({style:E,timeout:o,easing:T},{mode:"exit"});let n;o==="auto"?(n=r.transitions.getAutoHeightDuration(t.clientHeight),g.current=n):n=e,t.style.transition=[r.transitions.create("opacity",{duration:n,delay:i}),r.transitions.create("transform",{duration:h?n:n*.666,delay:h?i:i||n*.333,easing:u})].join(","),t.style.opacity=0,t.style.transform=p(.75),v&&v(t)}),K=s(H),q=t=>{o==="auto"&&P.start(g.current||0,t),y&&y(d.current,t)};return Q.jsx(F,m({appear:_,in:R,nodeRef:d,onEnter:W,onEntered:$,onEntering:S,onExit:z,onExited:K,onExiting:k,addEndListener:q,timeout:o==="auto"?null:o},G,{children:(t,e)=>c.cloneElement(f,m({style:m({opacity:0,transform:p(.75),visibility:t==="exited"&&!R?"hidden":void 0},X[t],E,f.props.style),ref:b},e))}))});Y.muiSupportAuto=!0;export{Y as G};
1
+ import{T as B,_ as J,h as M,i as N,e as O,j as Q,c as m,k as U,l as A}from"./index-BWvXRlTE.js";import{r as c}from"./vendor-router-D7SOoytt.js";const V=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(l){return`scale(${l}, ${l**2})`}const X={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},h=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Y=c.forwardRef(function(x,L){const{addEndListener:y,appear:_=!0,children:f,easing:T,in:R,onEnter:j,onEntered:w,onEntering:D,onExit:v,onExited:H,onExiting:C,style:E,timeout:o="auto",TransitionComponent:F=B}=x,G=J(x,V),P=M(),g=c.useRef(),r=N(),d=c.useRef(null),b=O(d,f.ref,L),s=t=>e=>{if(t){const i=d.current;e===void 0?t(i):t(i,e)}},S=s(D),W=s((t,e)=>{U(t);const{duration:i,delay:u,easing:n}=A({style:E,timeout:o,easing:T},{mode:"enter"});let a;o==="auto"?(a=r.transitions.getAutoHeightDuration(t.clientHeight),g.current=a):a=i,t.style.transition=[r.transitions.create("opacity",{duration:a,delay:u}),r.transitions.create("transform",{duration:h?a:a*.666,delay:u,easing:n})].join(","),j&&j(t,e)}),$=s(w),k=s(C),z=s(t=>{const{duration:e,delay:i,easing:u}=A({style:E,timeout:o,easing:T},{mode:"exit"});let n;o==="auto"?(n=r.transitions.getAutoHeightDuration(t.clientHeight),g.current=n):n=e,t.style.transition=[r.transitions.create("opacity",{duration:n,delay:i}),r.transitions.create("transform",{duration:h?n:n*.666,delay:h?i:i||n*.333,easing:u})].join(","),t.style.opacity=0,t.style.transform=p(.75),v&&v(t)}),K=s(H),q=t=>{o==="auto"&&P.start(g.current||0,t),y&&y(d.current,t)};return Q.jsx(F,m({appear:_,in:R,nodeRef:d,onEnter:W,onEntered:$,onEntering:S,onExit:z,onExited:K,onExiting:k,addEndListener:q,timeout:o==="auto"?null:o},G,{children:(t,e)=>c.cloneElement(f,m({style:m({opacity:0,transform:p(.75),visibility:t==="exited"&&!R?"hidden":void 0},X[t],E,f.props.style),ref:b},e))}))});Y.muiSupportAuto=!0;export{Y as G};
@@ -1 +1 @@
1
- {"version":3,"file":"Grow-BxJOb7Ur.js","sources":["../../node_modules/decentraland-ui2/node_modules/@mui/material/Grow/Grow.js"],"sourcesContent":["'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"addEndListener\", \"appear\", \"children\", \"easing\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"timeout\", \"TransitionComponent\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useTimeout from '@mui/utils/useTimeout';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport { Transition } from 'react-transition-group';\nimport useTheme from '../styles/useTheme';\nimport { getTransitionProps, reflow } from '../transitions/utils';\nimport useForkRef from '../utils/useForkRef';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getScale(value) {\n return `scale(${value}, ${value ** 2})`;\n}\nconst styles = {\n entering: {\n opacity: 1,\n transform: getScale(1)\n },\n entered: {\n opacity: 1,\n transform: 'none'\n }\n};\n\n/*\n TODO v6: remove\n Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.\n */\nconst isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\\/)15(.|_)4/i.test(navigator.userAgent);\n\n/**\n * The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and\n * [Popover](/material-ui/react-popover/) components.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {\n const {\n addEndListener,\n appear = true,\n children,\n easing,\n in: inProp,\n onEnter,\n onEntered,\n onEntering,\n onExit,\n onExited,\n onExiting,\n style,\n timeout = 'auto',\n // eslint-disable-next-line react/prop-types\n TransitionComponent = Transition\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const timer = useTimeout();\n const autoTimeout = React.useRef();\n const theme = useTheme();\n const nodeRef = React.useRef(null);\n const handleRef = useForkRef(nodeRef, children.ref, ref);\n const normalizedTransitionCallback = callback => maybeIsAppearing => {\n if (callback) {\n const node = nodeRef.current;\n\n // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n if (maybeIsAppearing === undefined) {\n callback(node);\n } else {\n callback(node, maybeIsAppearing);\n }\n }\n };\n const handleEntering = normalizedTransitionCallback(onEntering);\n const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n reflow(node); // So the animation always start from the start.\n\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'enter'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay,\n easing: transitionTimingFunction\n })].join(',');\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n const handleEntered = normalizedTransitionCallback(onEntered);\n const handleExiting = normalizedTransitionCallback(onExiting);\n const handleExit = normalizedTransitionCallback(node => {\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'exit'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay: isWebKit154 ? delay : delay || duration * 0.333,\n easing: transitionTimingFunction\n })].join(',');\n node.style.opacity = 0;\n node.style.transform = getScale(0.75);\n if (onExit) {\n onExit(node);\n }\n });\n const handleExited = normalizedTransitionCallback(onExited);\n const handleAddEndListener = next => {\n if (timeout === 'auto') {\n timer.start(autoTimeout.current || 0, next);\n }\n if (addEndListener) {\n // Old call signature before `react-transition-group` implemented `nodeRef`\n addEndListener(nodeRef.current, next);\n }\n };\n return /*#__PURE__*/_jsx(TransitionComponent, _extends({\n appear: appear,\n in: inProp,\n nodeRef: nodeRef,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n timeout: timeout === 'auto' ? null : timeout\n }, other, {\n children: (state, childProps) => {\n return /*#__PURE__*/React.cloneElement(children, _extends({\n style: _extends({\n opacity: 0,\n transform: getScale(0.75),\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n }, styles[state], style, children.props.style),\n ref: handleRef\n }, childProps));\n }\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Grow.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Add a custom transition end trigger. Called with the transitioning DOM\n * node and a done callback. Allows for more fine grained transition end\n * logic. Note: Timeouts are still used as a fallback if provided.\n */\n addEndListener: PropTypes.func,\n /**\n * Perform the enter transition when it first mounts if `in` is also `true`.\n * Set this to `false` to disable this behavior.\n * @default true\n */\n appear: PropTypes.bool,\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * The transition timing function.\n * You may specify a single easing or a object containing enter and exit values.\n */\n easing: PropTypes.oneOfType([PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string\n }), PropTypes.string]),\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n *\n * Set to 'auto' to automatically calculate transition time based on height.\n * @default 'auto'\n */\n timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nGrow.muiSupportAuto = true;\nexport default Grow;"],"names":["_excluded","getScale","value","styles","isWebKit154","Grow","React.forwardRef","props","ref","addEndListener","appear","children","easing","inProp","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent","Transition","other","_objectWithoutPropertiesLoose","timer","useTimeout","autoTimeout","React.useRef","theme","useTheme","nodeRef","handleRef","useForkRef","normalizedTransitionCallback","maybeIsAppearing","callback","node","handleEntering","handleEnter","isAppearing","reflow","transitionDuration","delay","transitionTimingFunction","getTransitionProps","duration","handleEntered","handleExiting","handleExit","handleExited","handleAddEndListener","next","_jsx","_extends","state","childProps","React.cloneElement"],"mappings":"gJAIA,MAAMA,EAAY,CAAC,iBAAkB,SAAU,WAAY,SAAU,KAAM,UAAW,YAAa,aAAc,SAAU,WAAY,YAAa,QAAS,UAAW,qBAAqB,EAU7L,SAASC,EAASC,EAAO,CACvB,MAAO,SAASA,CAA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EACR,SAAUC,EACV,UAAWF,EACX,eAAgBG,EAChB,QAAS/B,IAAY,OAAS,KAAOA,CAAA,EACpCG,EAAO,CACR,SAAU,CAACgC,EAAOC,IACIC,EAAAA,aAAmB/C,EAAU4C,EAAS,CACxD,MAAOA,EAAS,CACd,QAAS,EACT,UAAWtD,EAAS,GAAI,EACxB,WAAYuD,IAAU,UAAY,CAAC3C,EAAS,SAAW,MAAA,EACtDV,EAAOqD,CAAK,EAAGpC,EAAOT,EAAS,MAAM,KAAK,EAC7C,IAAKsB,CAAA,EACJwB,CAAU,CAAC,CAChB,CACD,CAAC,CACJ,CAAC,EA2EDpD,EAAK,eAAiB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"Grow-BHy15Dn2.js","sources":["../../node_modules/decentraland-ui2/node_modules/@mui/material/Grow/Grow.js"],"sourcesContent":["'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"addEndListener\", \"appear\", \"children\", \"easing\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"timeout\", \"TransitionComponent\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useTimeout from '@mui/utils/useTimeout';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport { Transition } from 'react-transition-group';\nimport useTheme from '../styles/useTheme';\nimport { getTransitionProps, reflow } from '../transitions/utils';\nimport useForkRef from '../utils/useForkRef';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getScale(value) {\n return `scale(${value}, ${value ** 2})`;\n}\nconst styles = {\n entering: {\n opacity: 1,\n transform: getScale(1)\n },\n entered: {\n opacity: 1,\n transform: 'none'\n }\n};\n\n/*\n TODO v6: remove\n Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.\n */\nconst isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\\/)15(.|_)4/i.test(navigator.userAgent);\n\n/**\n * The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and\n * [Popover](/material-ui/react-popover/) components.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {\n const {\n addEndListener,\n appear = true,\n children,\n easing,\n in: inProp,\n onEnter,\n onEntered,\n onEntering,\n onExit,\n onExited,\n onExiting,\n style,\n timeout = 'auto',\n // eslint-disable-next-line react/prop-types\n TransitionComponent = Transition\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const timer = useTimeout();\n const autoTimeout = React.useRef();\n const theme = useTheme();\n const nodeRef = React.useRef(null);\n const handleRef = useForkRef(nodeRef, children.ref, ref);\n const normalizedTransitionCallback = callback => maybeIsAppearing => {\n if (callback) {\n const node = nodeRef.current;\n\n // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n if (maybeIsAppearing === undefined) {\n callback(node);\n } else {\n callback(node, maybeIsAppearing);\n }\n }\n };\n const handleEntering = normalizedTransitionCallback(onEntering);\n const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n reflow(node); // So the animation always start from the start.\n\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'enter'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay,\n easing: transitionTimingFunction\n })].join(',');\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n const handleEntered = normalizedTransitionCallback(onEntered);\n const handleExiting = normalizedTransitionCallback(onExiting);\n const handleExit = normalizedTransitionCallback(node => {\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'exit'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay: isWebKit154 ? delay : delay || duration * 0.333,\n easing: transitionTimingFunction\n })].join(',');\n node.style.opacity = 0;\n node.style.transform = getScale(0.75);\n if (onExit) {\n onExit(node);\n }\n });\n const handleExited = normalizedTransitionCallback(onExited);\n const handleAddEndListener = next => {\n if (timeout === 'auto') {\n timer.start(autoTimeout.current || 0, next);\n }\n if (addEndListener) {\n // Old call signature before `react-transition-group` implemented `nodeRef`\n addEndListener(nodeRef.current, next);\n }\n };\n return /*#__PURE__*/_jsx(TransitionComponent, _extends({\n appear: appear,\n in: inProp,\n nodeRef: nodeRef,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n timeout: timeout === 'auto' ? null : timeout\n }, other, {\n children: (state, childProps) => {\n return /*#__PURE__*/React.cloneElement(children, _extends({\n style: _extends({\n opacity: 0,\n transform: getScale(0.75),\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n }, styles[state], style, children.props.style),\n ref: handleRef\n }, childProps));\n }\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Grow.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Add a custom transition end trigger. Called with the transitioning DOM\n * node and a done callback. Allows for more fine grained transition end\n * logic. Note: Timeouts are still used as a fallback if provided.\n */\n addEndListener: PropTypes.func,\n /**\n * Perform the enter transition when it first mounts if `in` is also `true`.\n * Set this to `false` to disable this behavior.\n * @default true\n */\n appear: PropTypes.bool,\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * The transition timing function.\n * You may specify a single easing or a object containing enter and exit values.\n */\n easing: PropTypes.oneOfType([PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string\n }), PropTypes.string]),\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n *\n * Set to 'auto' to automatically calculate transition time based on height.\n * @default 'auto'\n */\n timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nGrow.muiSupportAuto = true;\nexport default Grow;"],"names":["_excluded","getScale","value","styles","isWebKit154","Grow","React.forwardRef","props","ref","addEndListener","appear","children","easing","inProp","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent","Transition","other","_objectWithoutPropertiesLoose","timer","useTimeout","autoTimeout","React.useRef","theme","useTheme","nodeRef","handleRef","useForkRef","normalizedTransitionCallback","maybeIsAppearing","callback","node","handleEntering","handleEnter","isAppearing","reflow","transitionDuration","delay","transitionTimingFunction","getTransitionProps","duration","handleEntered","handleExiting","handleExit","handleExited","handleAddEndListener","next","_jsx","_extends","state","childProps","React.cloneElement"],"mappings":"gJAIA,MA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ASqB,CAAI,CAExC,EACA,OAAoBC,EAAAA,IAAKhC,EAAqBiC,EAAS,CACrD,OAAA7C,EACA,GAAIG,EACJ,QAAAmB,EACA,QAASQ,EACT,UAAWQ,EACX,WAAYT,EACZ,OAAQW,EACR,SAAUC,EACV,UAAWF,EACX,eAAgBG,EAChB,QAAS/B,IAAY,OAAS,KAAOA,CAAA,EACpCG,EAAO,CACR,SAAU,CAACgC,EAAOC,IACIC,EAAAA,aAAmB/C,EAAU4C,EAAS,CACxD,MAAOA,EAAS,CACd,QAAS,EACT,UAAWtD,EAAS,GAAI,EACxB,WAAYuD,IAAU,UAAY,CAAC3C,EAAS,SAAW,MAAA,EACtDV,EAAOqD,CAAK,EAAGpC,EAAOT,EAAS,MAAM,KAAK,EAC7C,IAAKsB,CAAA,EACJwB,CAAU,CAAC,CAChB,CACD,CAAC,CACJ,CAAC,EA2EDpD,EAAK,eAAiB","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ import{s as o,a as l,w as M,j as t,A as S,B as ye,y as L,r as Je,C as ke,D as je,aX as Qe,aG as Se,b2 as Ze,b3 as et,U as tt,am as nt}from"./index-BWvXRlTE.js";import{r as a,b as _e,u as ot}from"./vendor-router-D7SOoytt.js";import"./vendor-ua-D7qqAxdq.js";import{b as at}from"./admin.client-B5xGzvMY.js";import{h as it,j as Ae,k as rt}from"./events.client-KDioNnTz.js";import{u as st}from"./useAdminPermissions-DtBORrGI.js";import{u as Y}from"./useAuthIdentity-B89tP4lt.js";import{a as lt,b as ct,d as dt,g as pt,i as gt,c as ut,L as ft,F as mt,P as ht,u as Me,E as ee,f as xt,n as bt}from"./PendingEventCard-B7JbvnL5.js";import{d as De}from"./Add-DWpGYLEy.js";import{d as vt}from"./Check-CFiKgYJs.js";import{u as Ct,a as wt,R as yt,i as kt,C as re,j as jt,k as se,l as St}from"./RemindMeButton-DnlXMDH0.js";import{T as le}from"./Tooltip-CasBLMgX.js";import{d as _t}from"./AccessTime-HgE1uMjl.js";import{E as At,B as Ee,L as Ie,U as Le,C as Mt,d as Dt}from"./Badges-DIf7qRfK.js";import{s as Et}from"./rtk-query-react.modern-eNgJtwbJ.js";import{C as It,a as Lt}from"./CardContent-THhPoxmR.js";import{J as Tt}from"./JumpInIcon-DfpHf5gS.js";import"./vendor-crypto-CXsBIwXr.js";import"./vendor-schemas-DJzTSxpO.js";import"./vendor-sentry-DCdewyWN.js";import"./vendor-intl-D2lXWsDp.js";import"./signedFetch-wfXfas0G.js";import"./ContentCopy-88ne4JTk.js";import"./useProfileAvatar-BAqgxJ1A.js";import"./Paper-D1WB3MQ6.js";import"./profile.client-X_-2wpWn.js";import"./useCanEditEvent-BhQzxRgL.js";import"./Grow-BHy15Dn2.js";import"./Skeleton-CSFvCtu0.js";import"./CardMedia-9XvH5baB.js";import"./Link-DzgysiL-.js";import"./createSvgIcon-BXXQfd3j.js";import"./AvatarFace-8lGZVR0F.js";import"./Avatar-UH4W2WAk.js";import"./useSlot-GF7Jj78E.js";const Rt="0px 2px 12px 12px rgba(255, 255, 255, 0.3)",Wt="0px 2px 12px 4px rgba(0, 0, 0, 0.12)",Bt=o(l)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),backgroundColor:e.palette.mode==="dark"?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.06)",borderRadius:e.spacing(.75),padding:e.spacing(.25,1,.25,.5),height:24,width:"fit-content",maxWidth:"100%",transition:"opacity 0.2s ease"})),Nt=o(l)(({theme:e})=>({position:"absolute",bottom:0,left:0,right:0,padding:e.spacing(1.5),display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(.5),opacity:0,transform:"translateY(8px)",transition:"opacity 0.2s ease, transform 0.2s ease",flexWrap:"nowrap"})),Ot=o(l,{shouldForwardProp:e=>e!=="disableHover"})(({theme:e,disableHover:n})=>({display:"flex",flexDirection:"row",borderRadius:e.spacing(2),overflow:"hidden",cursor:"pointer",height:140,minWidth:300,maxWidth:430,backgroundColor:e.palette.mode==="dark"?"rgba(0, 0, 0, 0.3)":"rgba(0, 0, 0, 0.05)",transition:"transform 0.2s ease, box-shadow 0.2s ease",...!n&&{"&:hover":{transform:"translateY(-4px)",boxShadow:e.palette.mode==="dark"?Rt:Wt},'&:hover [data-role="hover-actions"]':{opacity:1,transform:"translateY(0)"},'&:hover [data-role="time-pill"]':{opacity:0}},[e.breakpoints.down("md")]:{minWidth:0,'& [data-role="hover-actions"]':{display:"none"}}})),Ht=o(l)({width:"42%",height:140,flexShrink:0,overflow:"hidden"}),Pt=o("img")({width:"100%",height:"100%",objectFit:"cover",display:"block"}),zt=o(l)(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",flex:1,minWidth:0,padding:e.spacing(1.5),position:"relative"})),Ft=o(l)(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(.5),overflow:"hidden"})),$t=o(M)(({theme:e})=>({fontWeight:600,fontSize:16,lineHeight:1.5,color:e.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",flex:1,minWidth:0,WebkitLineClamp:2,WebkitBoxOrient:"vertical"})),Ut=o(l)(({theme:e})=>({display:"flex",gap:e.spacing(1),alignItems:"flex-start"})),Gt=o(l)(({theme:e})=>({display:"none",[e.breakpoints.down("md")]:{display:"flex",flexShrink:0}})),Yt=o("img")(({theme:e})=>({width:19,height:19,borderRadius:"50%",border:`1.4px solid ${e.palette.mode==="dark"?"rgba(255, 255, 255, 0.3)":"rgba(0, 0, 0, 0.15)"}`,flexShrink:0,objectFit:"cover"})),qt=o(l)(({theme:e})=>({width:19,height:19,borderRadius:"50%",backgroundColor:e.palette.success.dark,border:`1.4px solid ${e.palette.mode==="dark"?"rgba(255, 255, 255, 0.3)":"rgba(0, 0, 0, 0.15)"}`,flexShrink:0})),Vt=o(l)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1)})),Xt=o(M)(({theme:e})=>({fontSize:12,lineHeight:1,color:e.palette.text.secondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})),Kt=o("span")(({theme:e})=>({color:e.palette.primary.main})),Jt=o(M)(({theme:e})=>({fontSize:14,fontWeight:600,lineHeight:1.5,color:e.palette.text.primary,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"})),Te=a.memo(({image:e,title:n,creatorName:i,creatorAvatarUrl:s,timeLabel:r,onClick:c,disableHover:d,action:f,hoverActions:p})=>{const m=a.useCallback(g=>{(g.key==="Enter"||g.key===" ")&&c&&(g.preventDefault(),c())},[c]);return t.jsxs(Ot,{onClick:c,disableHover:d,...c&&{role:"button",tabIndex:0,onKeyDown:m},children:[e&&t.jsx(Ht,{children:t.jsx(Pt,{src:e,alt:n,loading:"lazy"})}),t.jsxs(zt,{children:[t.jsxs(Ft,{children:[t.jsxs(Ut,{children:[t.jsx($t,{children:n}),f&&t.jsx(Gt,{children:f})]}),i&&t.jsxs(Vt,{children:[s?t.jsx(Yt,{src:s,alt:i}):t.jsx(qt,{}),t.jsxs(Xt,{children:["by ",t.jsx(Kt,{children:i})]})]})]}),r&&t.jsxs(Bt,{"data-role":"time-pill",children:[t.jsx(_t,{sx:{fontSize:20,color:"inherit"}}),t.jsx(Jt,{children:r})]}),p&&t.jsx(Nt,{"data-role":"hover-actions",children:p})]})]})});Te.displayName="EventSmallCard";const Qt=5,Re=[{query:"(min-width: 1536px)",columns:Qt},{query:"(min-width: 1200px)",columns:4},{query:"(min-width: 900px)",columns:3},{query:"(min-width: 600px)",columns:2}];function ce(){for(const{query:e,columns:n}of Re)if(window.matchMedia(e).matches)return n;return 1}function Zt(){const[e,n]=a.useState(ce);return a.useEffect(()=>{const i=Re.map(({query:r})=>window.matchMedia(r)),s=()=>{n(ce())};for(const r of i)r.addEventListener("change",s);return()=>{for(const r of i)r.removeEventListener("change",s)}},[]),e}function We(e,n){if(n<1)return[];const i=[];for(let s=0;s<e.length;s+=n)i.push(e.slice(s,s+n));return i}function te(e,n){const i=new Date(e);return i.setDate(i.getDate()+n),i}function en(e){const n=new Date(e);return n.setHours(0,0,0,0),n}function tn(e){const n=new Date(e);return n.setHours(23,59,59,999),n}function de(e){return{from:en(e).toISOString(),to:tn(e).toISOString()}}function J(e,n){return e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()&&e.getDate()===n.getDate()}function nn(e,n,i=new Date){if(J(e,i))return n("all_experiences.today");const s=te(i,1);if(J(e,s))return n("all_experiences.tomorrow");const r=e.toLocaleDateString(void 0,{weekday:"short"}),c=e.toLocaleDateString(void 0,{month:"short"}),d=e.getDate();return`${r}, ${c} ${d}`}function Be(e){return e.toLocaleDateString(void 0,{weekday:"long",month:"long",day:"numeric",year:"numeric"})}const on="https://cdn.decentraland.org/@dcl/landing-site/0.5.1-24846465451.commit-1f3abc7/assets/host_avatar-Gho9W3pF.webp",an="https://cdn.decentraland.org/@dcl/landing-site/0.5.1-24846465451.commit-1f3abc7/assets/host_scene-BStngEfA.webp",rn="#3C1C4B",sn="rgba(0, 0, 0, 0.35)",ln=o("section")(({theme:e})=>({position:"relative",zIndex:8,overflow:"hidden",borderRadius:24,display:"flex",alignItems:"center",gap:e.spacing(4),paddingLeft:60,marginTop:e.spacing(8),minHeight:308,backgroundColor:sn,[e.breakpoints.down("md")]:{flexDirection:"column",gap:0,paddingLeft:0,marginTop:e.spacing(3),minHeight:"auto"}})),cn=o(l)(({theme:e})=>({position:"relative",flex:"1 1 0",alignSelf:"stretch",minWidth:0,overflow:"hidden",[e.breakpoints.down(1024)]:{display:"none"}})),dn=o("img")({position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",objectPosition:"left center",display:"block"}),pn=o("img")(({theme:e})=>({width:212,height:308,objectFit:"contain",objectPosition:"center",flexShrink:0,alignSelf:"center",[e.breakpoints.down("lg")]:{width:170,height:246},[e.breakpoints.down("md")]:{width:160,height:232}})),gn=o(l)(({theme:e})=>({flex:1,minWidth:0,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.spacing(4),padding:e.spacing(4),[e.breakpoints.down("sm")]:{padding:e.spacing(3,2),gap:e.spacing(3)}})),un=o(M)(({theme:e})=>({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:32,fontWeight:700,lineHeight:1.235,color:e.palette.common.white,margin:0,[e.breakpoints.down("sm")]:{fontSize:26}})),fn=o(M)(({theme:e})=>({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:20,fontWeight:500,lineHeight:1.6,color:S.softWhite,margin:0,[e.breakpoints.down("sm")]:{fontSize:18}})),mn=o(l)(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(1.5)})),hn=o(l)({display:"flex",alignItems:"center",gap:14,width:"100%"}),xn=o(l)(({theme:e})=>({width:24,height:24,flexShrink:0,borderRadius:5,backgroundColor:rn,border:`1px solid ${e.palette.primary.main}`,display:"flex",alignItems:"center",justifyContent:"center"})),bn=o(vt)(({theme:e})=>({fontSize:18,color:e.palette.common.white})),vn=o(M)(({theme:e})=>({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:20,fontWeight:500,lineHeight:1.6,color:S.softWhite,margin:0,[e.breakpoints.down("sm")]:{fontSize:16}})),Cn=o(l)(({theme:e})=>({display:"flex",alignItems:"flex-start",gap:e.spacing(3),[e.breakpoints.down("sm")]:{flexDirection:"column",alignItems:"stretch",gap:e.spacing(1.5),width:"100%"}})),pe=o(ye)(({theme:e})=>({padding:e.spacing(1,2.75),fontSize:15,fontWeight:600,lineHeight:"24px",letterSpacing:"0.46px",textTransform:"uppercase",borderRadius:6,boxShadow:"none",whiteSpace:"nowrap","&:hover":{boxShadow:"none"}})),wn="https://docs.decentraland.org/creator/events/",yn=["check_1","check_2","check_3"];function kn(){const{t:e}=L(),n=_e(),{hasValidIdentity:i}=Y(),s=a.useCallback(()=>{i?n("/whats-on/new-event"):Je("/whats-on/new-event")},[i,n]),r=a.useCallback(()=>{window.open(wn,"_blank","noopener")},[]);return t.jsxs(ln,{"aria-label":e("host_banner.title"),children:[t.jsx(pn,{src:on,alt:"","aria-hidden":"true"}),t.jsxs(gn,{children:[t.jsx(un,{children:e("host_banner.title")}),t.jsx(fn,{children:e("host_banner.subtitle")}),t.jsx(mn,{children:yn.map(c=>t.jsxs(hn,{children:[t.jsx(xn,{"aria-hidden":"true",children:t.jsx(bn,{})}),t.jsx(vn,{children:e(`host_banner.${c}`)})]},c))}),t.jsxs(Cn,{children:[t.jsx(pe,{"data-testid":"create-button",variant:"contained",color:"primary",size:"large",startIcon:t.jsx(De,{}),onClick:s,children:e("host_banner.create_event")}),t.jsx(pe,{"data-testid":"learn-more-button",variant:"contained",color:"secondary",size:"large",disableElevation:!0,onClick:r,children:e("host_banner.learn_more")})]})]}),t.jsx(cn,{children:t.jsx(dn,{src:an,alt:"","aria-hidden":"true"})})]})}const ge=o("button")(({theme:e})=>({display:"none",[e.breakpoints.down("md")]:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:6,border:"none",backgroundColor:"rgba(255, 255, 255, 0.15)",cursor:"pointer",padding:0,color:"#FCFCFC","&:active":{backgroundColor:"rgba(255, 255, 255, 0.3)"}}})),U=a.memo(function({event:n,onClick:i,disableHover:s}){const{t:r}=L(),{hasValidIdentity:c}=Y(),{creatorName:d,avatarFace:f}=lt(n.user,n.user_name,r("upcoming.unknown_creator")),{copied:p,calendarAdded:m,handleCopy:g,handleAddToCalendar:x}=ct({name:n.name,description:n.description,startAt:n.start_at,finishAt:n.finish_at,x:n.x,y:n.y}),{isReminded:v,isLoading:b,isShaking:C,handleToggle:y}=Ct(n.id,n.attending),k=a.useCallback(()=>{i(n)},[i,n]),D=c?t.jsx(ge,{onClick:y,disabled:b,"aria-label":r("upcoming.remind_me"),children:t.jsx(wt,{active:v,shaking:C,size:16})}):t.jsx(ge,{onClick:x,"aria-label":r("upcoming.add_to_calendar"),children:t.jsx(dt,{sx:{fontSize:16}})}),T=t.jsxs(t.Fragment,{children:[c?t.jsx(yt,{isReminded:v,isLoading:b,isShaking:C,label:r("upcoming.remind_me"),onClick:y}):t.jsxs(kt,{onClick:x,children:[t.jsx(re,{}),t.jsx(jt,{children:r("upcoming.add_to_calendar")})]}),c&&t.jsx(le,{title:r("upcoming.add_to_calendar"),placement:"top",arrow:!0,children:t.jsx(se,{onClick:x,"data-active":m,children:t.jsx(re,{})})}),t.jsx(le,{title:r(p?"upcoming.copied":"upcoming.copy_link"),placement:"top",arrow:!0,children:t.jsx(se,{onClick:g,"data-active":p,children:t.jsx(St,{})})})]});return t.jsx(Te,{image:n.image??void 0,title:n.name,creatorName:d,creatorAvatarUrl:f,timeLabel:pt(n.start_at,r),onClick:k,disableHover:s,action:D,hoverActions:T})});U.displayName="UpcomingCard";const jn="https://profile-images.decentraland.org";function Sn(e){if(gt(e))return`${jn}/entities/${e.toLowerCase()}/face.png`}const _n=5*60*1e3,Q=new Map;function Ne(e){const n=Q.get(e);return n===void 0?!1:n<=Date.now()?(Q.delete(e),!1):!0}function ue(e){Q.set(e,Date.now()+_n)}function An(e){return!e||Ne(e)?"broken":"pending"}function Oe(e,n){const i=e?Sn(e):void 0,[s,r]=a.useState(()=>An(i));a.useEffect(()=>{if(!i){r("broken");return}if(Ne(i)){r("broken");return}r("pending");const f=new AbortController;let p=!1;return fetch(i,{method:"HEAD",cache:"force-cache",signal:f.signal}).then(m=>{if(!p){if(m.ok){r("ready");return}ue(i),r("broken")}}).catch(m=>{p||m instanceof DOMException&&m.name==="AbortError"||(ue(i),r("broken"))}),()=>{p=!0,f.abort()}},[i]);const c=i&&s==="ready"?i:void 0;return{avatar:a.useMemo(()=>{if(e)return ut({name:n??"",ethAddress:e,faceUrl:c})},[e,n,c]),avatarFace:c}}const He=a.memo(({event:e,onClick:n})=>{const{avatar:i}=Oe(e.user,e.user_name??void 0),s=a.useCallback(()=>{n(e)},[n,e]);return t.jsx(ft,{children:t.jsx(At,{image:e.image??"",sceneName:e.name,coordinates:`${e.x},${e.y}`,avatar:i,onClick:s,leftBadge:t.jsxs(Ee,{children:[t.jsx(Ie,{}),t.jsx(Le,{count:e.total_attendees})]}),leftBadgeTransparent:!0,hideLocation:!0})})});He.displayName="LiveCard";const Pe=a.memo(({event:e,onClick:n})=>e.live?t.jsx(He,{event:e,onClick:n}):t.jsx(mt,{event:e,onClick:n}));Pe.displayName="AllExperiencesCard";var ne={},Mn=je;Object.defineProperty(ne,"__esModule",{value:!0});var oe=ne.default=void 0,Dn=Mn(ke()),En=t;oe=ne.default=(0,Dn.default)((0,En.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var ae={},In=je;Object.defineProperty(ae,"__esModule",{value:!0});var ie=ae.default=void 0,Ln=In(ke()),Tn=t;ie=ae.default=(0,Ln.default)((0,Tn.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");const Rn=50,Wn=12,fe=20,Bn=o(l)({display:"flex",alignItems:"center",height:Rn,marginBottom:Wn,position:"relative",backgroundColor:Qe.backdrop,borderRadius:12,padding:0}),Nn=o("span",{shouldForwardProp:e=>e!=="isToday"})(({isToday:e})=>({flex:1,textAlign:"center",fontWeight:600,fontSize:16,lineHeight:"100%",letterSpacing:0,color:e?S.softWhite:"rgba(255, 255, 255, 0.7)"})),me=o("button")(({disabled:e,side:n})=>({display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",padding:0,cursor:e?"default":"pointer",color:e?"rgba(255, 255, 255, 0.3)":S.softWhite,height:fe,width:fe,position:"absolute",top:"50%",transform:"translateY(-50%)",[n]:8,zIndex:1,"&:focus-visible":{outline:`2px solid ${S.softWhite}`,outlineOffset:2}})),ze=a.memo(({startOffset:e,columnCount:n,today:i,onNavigateLeft:s,onNavigateRight:r})=>{const{t:c}=L(),d=e>0,f=a.useMemo(()=>Array.from({length:n},(p,m)=>te(i,e+m)),[i,e,n]);return t.jsxs(Bn,{role:"navigation","aria-label":c("all_experiences.title"),children:[t.jsx(me,{side:"left",onClick:s,disabled:!d,"aria-label":c("all_experiences.navigate_previous"),"aria-disabled":!d,tabIndex:d?0:-1,children:t.jsx(oe,{sx:{fontSize:20}})}),f.map((p,m)=>t.jsx(Nn,{isToday:e+m===0,"aria-label":Be(p),"aria-current":e+m===0?"date":void 0,children:nn(p,c,i)},p.toISOString())),t.jsx(me,{side:"right",onClick:r,"aria-label":c("all_experiences.navigate_next"),children:t.jsx(ie,{sx:{fontSize:20}})})]})});ze.displayName="DateNavigation";const On=24,Hn="calc(100vh - 280px)",Pn=8,zn=8,Z=12,Fn=200,$n=o(l)(({theme:e})=>({borderRadius:On,backgroundColor:"rgba(179, 32, 255, 0.25)",border:`2px solid ${Se.subtle}`,display:"flex",flexDirection:"column",height:Hn,overflow:"hidden",[e.breakpoints.down("sm")]:{height:"auto"}})),Un=o(l)({flex:1,overflowY:"auto",display:"flex",flexDirection:"column",gap:Pn,padding:zn,scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Gn=o(l)({flex:1,minHeight:Z,backgroundColor:Se.subtle,borderRadius:Z}),K=o(l)({height:Fn,borderRadius:Z,backgroundColor:"rgba(255, 255, 255, 0.08)",animation:"pulse 1.5s ease-in-out infinite","@keyframes pulse":{"0%, 100%":{opacity:.4},"50%":{opacity:.15}}}),Fe=a.memo(({events:e,isLoading:n,dateLabel:i,renderCard:s})=>{const r=a.useRef(null),c=a.useRef({isDown:!1,startY:0,scrollTop:0}),[d,f]=a.useState(!1);a.useEffect(()=>{const x=r.current;if(!x)return;const v=()=>f(x.scrollHeight>x.clientHeight);v();const b=new ResizeObserver(v);return b.observe(x),()=>b.disconnect()},[e,n]);const p=a.useCallback(x=>{const v=r.current;v&&(c.current={isDown:!0,startY:x.clientY,scrollTop:v.scrollTop})},[]),m=a.useCallback(x=>{if(!c.current.isDown)return;const v=r.current;if(!v)return;x.preventDefault();const b=x.clientY-c.current.startY;v.scrollTop=c.current.scrollTop-b},[]),g=a.useCallback(()=>{c.current.isDown=!1},[]);return t.jsx($n,{role:"list","aria-label":i,children:t.jsxs(Un,{ref:r,onMouseDown:p,onMouseMove:m,onMouseUp:g,onMouseLeave:g,children:[n&&t.jsxs(t.Fragment,{children:[t.jsx(K,{role:"listitem","aria-hidden":"true"}),t.jsx(K,{role:"listitem","aria-hidden":"true"}),t.jsx(K,{role:"listitem","aria-hidden":"true"})]}),!n&&e.map(x=>t.jsx("div",{role:"listitem",children:s(x)},x.id)),!d&&t.jsx(Gn,{"aria-hidden":"true"})]})})});Fe.displayName="DayColumn";const Yn=o(l)(({theme:e})=>({alignItems:"center",display:"flex",flexWrap:"wrap",gap:e.spacing(2),marginBottom:e.spacing(3.5),[e.breakpoints.down("sm")]:{justifyContent:"center",marginBottom:e.spacing(2)}})),qn=o("button",{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:n})=>({alignItems:"center",backgroundColor:n?S.softWhite:"rgba(255, 255, 255, 0.1)",border:"none",borderRadius:50,color:n?S.softBlack1:S.softWhite,cursor:"pointer",display:"inline-flex",fontFamily:e.typography.fontFamily,fontSize:15,fontWeight:600,letterSpacing:"0.46px",lineHeight:"24px",padding:e.spacing(1,2),textTransform:"uppercase",transition:"background-color 150ms ease, color 150ms ease","&:hover":{backgroundColor:n?S.softWhite:"rgba(255, 255, 255, 0.2)"},"&:focus-visible":{outline:`2px solid ${S.softWhite}`,outlineOffset:2}})),H=["all","my"],$e=a.memo(({value:e,onChange:n,panelId:i})=>{const{t:s}=L(),r=a.useRef(null),c=a.useCallback(f=>()=>n(f),[n]),d=a.useCallback(f=>{if(f.key!=="ArrowRight"&&f.key!=="ArrowLeft")return;f.preventDefault();const p=H.indexOf(e),m=f.key==="ArrowRight"?1:-1,g=(p+m+H.length)%H.length,x=H[g];n(x),r.current?.querySelector(`[data-tab-value="${x}"]`)?.focus()},[n,e]);return t.jsx(Yn,{ref:r,role:"tablist","aria-label":s("all_experiences.title"),children:H.map(f=>{const p=f===e;return t.jsx(qn,{type:"button",role:"tab","data-tab-value":f,"aria-selected":p,"aria-controls":i,tabIndex:p?0:-1,isActive:p,onClick:c(f),onKeyDown:d,children:s(f==="all"?"all_experiences.tab_all":"all_experiences.tab_my")},f)})})});$e.displayName="ExperiencesTabs";const Vn=o(l)(({theme:e})=>({alignItems:"center",backgroundColor:"rgba(179, 47, 255, 0.25)",border:"2px solid rgba(255, 255, 255, 0.1)",borderRadius:24,display:"flex",flexDirection:"column",gap:e.spacing(3),justifyContent:"center",minHeight:320,padding:e.spacing(6,3),textAlign:"center",[e.breakpoints.down("sm")]:{minHeight:240,padding:e.spacing(4,2)}})),Xn=o(M)({color:S.softWhite,fontSize:20,fontWeight:500,lineHeight:1.6}),Kn=o(ye)(({theme:e})=>({borderColor:S.softWhite,borderRadius:6,color:S.softWhite,fontSize:15,fontWeight:600,letterSpacing:"0.46px",lineHeight:"24px",padding:e.spacing(1,3),textTransform:"uppercase","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)",borderColor:S.softWhite}}));function Jn(){const{t:e}=L(),n=_e(),i=a.useCallback(()=>{n("/whats-on/new-event")},[n]);return t.jsxs(Vn,{role:"status",children:[t.jsx(Xn,{children:e("my_experiences.empty_title")}),t.jsx(Kn,{variant:"outlined",startIcon:t.jsx(De,{}),onClick:i,children:e("my_experiences.empty_cta")})]})}const Qn=o(l)(({theme:e})=>({backgroundColor:"rgba(179, 47, 255, 0.15)",border:"1px solid rgba(255, 255, 255, 0.08)",borderRadius:24,padding:e.spacing(3)})),Zn=o(M)(({theme:e})=>({color:S.softWhite,fontSize:16,fontWeight:600,marginBottom:e.spacing(2)})),eo=o(l)(({theme:e})=>({display:"grid",gap:e.spacing(2),gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))"})),to=a.memo(function({events:n,onCardClick:i}){const{t:s}=L();return t.jsxs(Qn,{children:[t.jsx(Zn,{variant:"h6",children:s("my_experiences.hosted_by_me")}),t.jsx(eo,{children:n.map(r=>t.jsx(ht,{event:r,onClick:i},r.id))})]})}),no=28,oo=16,ao="0.4s",io="0.15s",ro=o("section")(({theme:e})=>({position:"relative",zIndex:8,marginTop:e.spacing(4),scrollMarginTop:96,[e.breakpoints.down("md")]:{scrollMarginTop:72},animation:`slideUp ${ao} ease-out ${io}`,"@keyframes slideUp":{from:{transform:"translateY(20px)"},to:{transform:"translateY(0)"}},marginLeft:e.spacing(-8),marginRight:e.spacing(-8),padding:e.spacing(8,8),background:"radial-gradient(63.39% 112.69% at 49.33% 50.11%, #6B2A8A 0%, #1E0A2E 100%)",[e.breakpoints.down("lg")]:{marginLeft:e.spacing(-4),marginRight:e.spacing(-4),padding:e.spacing(8,4)},[e.breakpoints.down("md")]:{marginLeft:e.spacing(-3),marginRight:e.spacing(-3),padding:e.spacing(6,3)},[e.breakpoints.down("sm")]:{marginLeft:0,marginRight:0,padding:e.spacing(4,2)}})),so=o(M)(({theme:e})=>({fontWeight:500,fontSize:32,lineHeight:1.235,marginBottom:no,[e.breakpoints.down("sm")]:{fontSize:24,textAlign:"center"}})),lo=o(l)({display:"grid",gap:oo}),co=o(l)({display:"flex",gap:12,overflowX:"auto",scrollSnapType:"x mandatory",scrollBehavior:"smooth",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),po=o(l)({display:"flex",flexDirection:"column",gap:12,flex:"0 0 100%",scrollSnapAlign:"start"}),he="my-experiences-panel";function go({today:e,startOffset:n,columnCount:i,identity:s,creator:r,list:c}){const d=a.useMemo(()=>Array.from({length:i},(C,y)=>te(e,n+y)),[e,n,i]),f=a.useMemo(()=>de(d[0]),[d]),p=a.useMemo(()=>de(d[d.length-1]),[d]),m=!!r,{data:g=[],isLoading:x,isError:v}=it({list:c,from:m?void 0:f.from,to:m?void 0:p.to,order:"asc",world:!1,limit:200,identity:s,creator:r},{refetchOnMountOrArgChange:m}),b=a.useMemo(()=>d.map(C=>({date:C,events:g.filter(y=>J(new Date(y.start_at),C)),isLoading:x,isError:v})),[d,g,x,v]);return{allEvents:g,dayData:b,isLoading:x}}function uo(){const{t:e}=L(),{identity:n,hasValidIdentity:i,address:s}=Y(),r=Zt(),[c,d]=a.useState(0),p=ot().state?.activeTab,[m,g]=a.useState(p==="my"?"my":"all"),x=a.useRef(null),v=a.useRef(!1),{closeEventDetailModal:b,editActiveEvent:C,modalData:y,openEventDetailModal:k}=Me(),[D,T]=a.useState(()=>{const w=new Date;return w.setHours(0,0,0,0),w});a.useEffect(()=>{const w=()=>{const I=new Date;I.setHours(0,0,0,0),I.getTime()!==D.getTime()&&(T(I),d(0))};return document.addEventListener("visibilitychange",w),()=>document.removeEventListener("visibilitychange",w)},[D]),a.useEffect(()=>{!i&&m==="my"&&(g("all"),d(0))},[i,m]);const E=i&&m==="my",{isAdmin:P}=st(),{allEvents:z,dayData:R,isLoading:q}=go({today:D,startOffset:c,columnCount:r,identity:n,creator:E?s:void 0,list:E?"all":"active"}),{data:W=[],isLoading:V}=at(E&&P&&n?{identity:n}:Et,{refetchOnMountOrArgChange:!0}),F=a.useMemo(()=>{if(!E)return[];const w=s?.toLowerCase()??"",I=new Map;for(const j of z)I.set(j.id,j);for(const j of W)(j.user??"").toLowerCase()===w&&I.set(j.id,j);const B=Date.now();return Array.from(I.values()).map(j=>j.recurrent&&j.next_start_at&&j.next_finish_at?{...j,start_at:j.next_start_at,finish_at:j.next_finish_at}:j).filter(j=>new Date(j.finish_at).getTime()>=B).sort((j,Ke)=>new Date(j.start_at).getTime()-new Date(Ke.start_at).getTime())},[s,W,z,E]),u=F.length>0,h=q||E&&P&&V;a.useEffect(()=>{p!=="my"||v.current||h||!x.current||(v.current=!0,x.current.scrollIntoView({behavior:"smooth",block:"start"}))},[p,h]);const _=a.useCallback(()=>{d(w=>Math.max(0,w-r))},[r]),A=a.useCallback(()=>{d(w=>w+r)},[r]),N=a.useCallback(w=>{g(w),d(0)},[]),O=a.useCallback(w=>t.jsx(Pe,{event:w,onClick:k}),[k]),$=a.useMemo(()=>We(R.flatMap(w=>w.events),2),[R]),X=E&&!h&&!u;return t.jsxs(ro,{ref:x,"aria-label":e("all_experiences.title"),children:[i?t.jsx($e,{value:m,onChange:N,panelId:he}):t.jsx(so,{variant:"h4",children:e("all_experiences.title")}),t.jsx("div",{role:i?"tabpanel":void 0,id:i?he:void 0,children:E?X?t.jsx(Jn,{}):t.jsx(to,{events:F,onCardClick:k}):t.jsxs(t.Fragment,{children:[t.jsx(ze,{startOffset:c,columnCount:r,today:D,onNavigateLeft:_,onNavigateRight:A}),r<=1?t.jsx(co,{children:$.map((w,I)=>t.jsx(po,{children:w.map(B=>t.jsx(U,{event:B,onClick:k},B.id))},I))}):t.jsx(lo,{sx:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:R.map(({date:w,events:I,isLoading:B})=>t.jsx(Fe,{events:I,isLoading:B,dateLabel:Be(w),renderCard:O},w.toISOString()))})]})}),t.jsx(kn,{}),t.jsx(ee,{open:!!y,onClose:b,data:y,onEdit:C})]})}function fo(){const[e,n]=a.useState(Ze);return a.useEffect(()=>et(n),[]),e}function Ue(){return a.useMemo(()=>{const n=new URLSearchParams(window.location.search).get("minUsers");if(n!==null&&!Number.isNaN(Number(n)))return{minUsers:Number(n)}},[])}const Ge=o(l)(({theme:e})=>({display:"flex",justifyContent:"center",gap:e.spacing(.75),marginTop:e.spacing(2)})),Ye=o("button")(({theme:e,active:n})=>({width:8,height:8,borderRadius:"50%",border:"none",padding:0,cursor:"pointer",backgroundColor:n?e.palette.common.white:"rgba(255, 255, 255, 0.3)",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short})})),qe=46,mo=o(It)(({theme:e})=>({borderRadius:e.spacing(2),boxSizing:"border-box",minWidth:400,maxWidth:850,display:"flex",flexDirection:"column",flex:1,height:"100%",backgroundColor:"transparent",position:"relative",overflow:"hidden",transition:e.transitions.create(["transform","box-shadow"],{duration:e.transitions.duration.complex}),[e.breakpoints.up("sm")]:{"&:hover":{transform:"translateY(-4px)",boxShadow:"0px 2px 12px 12px rgba(255, 255, 255, 0.3)"}}})),ho=o(Mt)(({theme:e})=>({borderRadius:e.spacing(2),flex:1,display:"flex",flexDirection:"column",position:"relative",backgroundColor:"transparent"})),xo=o(l)(({theme:e})=>({position:"relative",width:"100%",overflow:"hidden",backgroundColor:e.palette.mode==="dark"?"#2a2435":"#e8e8e8",borderRadius:`${e.spacing(2)} ${e.spacing(2)} 0 0`})),bo=o("img")(({theme:e})=>({display:"block",width:"100%",height:"100%",objectFit:"cover",borderRadius:`${e.spacing(2)} ${e.spacing(2)} 0 0`,userSelect:"none",pointerEvents:"none"})),vo=o(l)(({theme:e})=>({position:"absolute",top:e.spacing(2),left:e.spacing(2),right:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),zIndex:2,pointerEvents:"none","& > *":{pointerEvents:"auto"}})),Co=o(Lt)(({theme:e})=>({backgroundColor:e.palette.mode==="dark"?"rgba(0, 0, 0, 0.4)":"rgba(255, 255, 255, 0.4)",borderRadius:`0 0 ${e.spacing(2)} ${e.spacing(2)}`,display:"flex",flexDirection:"column",flex:1,width:"100%",position:"relative",overflow:"hidden",padding:e.spacing(2),minHeight:123,"&:last-child":{paddingBottom:e.spacing(2)},[e.breakpoints.down("sm")]:{minHeight:149}})),wo=o(l)({display:"flex",flexDirection:"column",flex:1,width:"100%"}),yo=o(M)({display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:600}),ko=o(l)(({theme:e})=>({display:"flex",gap:e.spacing(1),alignItems:"center",marginTop:"auto",minWidth:0,maxWidth:"100%",overflow:"hidden",[e.breakpoints.up("sm")]:{transition:e.transitions.create("margin-bottom",{duration:e.transitions.duration.complex}),".MuiCardActionArea-root:hover &":{marginBottom:`calc(${qe}px + ${e.spacing(2)})`}}})),jo=o(l)({flex:1,minWidth:0,overflow:"hidden","& .MuiTypography-root":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}),G=32,So=o("img")(({theme:e})=>({width:G,height:G,borderRadius:"50%",border:`1.4px solid ${e.palette.mode==="dark"?"rgba(255, 255, 255, 0.3)":"rgba(0, 0, 0, 0.15)"}`,flexShrink:0,objectFit:"cover",backgroundColor:e.palette.success.dark})),_o=o(l)(({theme:e})=>({width:G,height:G,borderRadius:"50%",backgroundColor:e.palette.success.dark,border:`1.4px solid ${e.palette.mode==="dark"?"rgba(255, 255, 255, 0.3)":"rgba(0, 0, 0, 0.15)"}`,flexShrink:0})),Ao=o(l)(({theme:e})=>({position:"absolute",bottom:e.spacing(2),left:e.spacing(2),right:e.spacing(2),opacity:0,transform:`translateY(calc(100% + ${e.spacing(2)}))`,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.complex}),[e.breakpoints.up("sm")]:{".MuiCardActionArea-root:hover &":{opacity:1,transform:"translateY(0)"}},[e.breakpoints.down("sm")]:{position:"relative",opacity:1,transform:"none",bottom:"auto",left:"auto",right:"auto",marginTop:e.spacing(1)}})),Mo=o(l)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(1),width:"100%",height:qe,border:"none",borderRadius:e.spacing(2),backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,fontSize:16,fontWeight:e.typography.fontWeightBold,textTransform:"uppercase",cursor:"pointer","& svg":{width:24,height:24},"&:hover":{backgroundColor:e.palette.primary.dark}})),Ve=a.memo(({card:e,creatorName:n,creatorFaceUrl:i,eager:s=!1,onClick:r})=>{const{t:c}=L(),d=a.useCallback(()=>{r(e)},[r,e]);return t.jsx(mo,{children:t.jsxs(ho,{onClick:d,children:[t.jsx(vo,{children:t.jsxs(Ee,{children:[e.type==="event"&&t.jsx(Ie,{}),t.jsx(Le,{count:e.users})]})}),t.jsx(xo,{className:"MuiCardMedia-root",role:"img","aria-label":e.title,children:t.jsx(bo,{src:e.image,alt:"",width:500,height:329,loading:s?"eager":"lazy",fetchpriority:s?"high":void 0,decoding:"async"})}),t.jsxs(Co,{children:[t.jsxs(wo,{children:[t.jsx(yo,{variant:"h6",gutterBottom:!0,children:e.title}),n&&t.jsxs(ko,{children:[i?t.jsx(So,{src:i,alt:n}):t.jsx(_o,{}),t.jsx(jo,{children:t.jsxs(M,{variant:"body2",children:[c("live_now.by_prefix"),t.jsx("strong",{children:n})]})})]})]}),t.jsx(Ao,{children:t.jsxs(Mo,{children:[t.jsx("span",{children:c("live_now.jump_in")}),t.jsx(Tt,{})]})})]})]})})});Ve.displayName="LiveNowCard";const Do=tt("/dcl-logo.svg"),Eo="Decentraland Foundation";function Io(e,n){return e.creatorName?e.creatorName:e.isGenesisPlaza?Eo:e.creatorAddress?xt(e.creatorAddress):n}const Xe=a.memo(({card:e,onClick:n,eager:i})=>{const{t:s}=L(),{avatarFace:r}=Oe(e.isGenesisPlaza?void 0:e.creatorAddress,e.creatorName??void 0),c=Io(e,s("live_now.unknown_creator")),d=e.isGenesisPlaza?Do:r;return t.jsx(Ve,{card:e,creatorName:c,creatorFaceUrl:d,eager:i,onClick:n})});Xe.displayName="LiveNowCardItem";const Lo=o("section")(({theme:e})=>({position:"relative",zIndex:10,marginTop:e.spacing(4),padding:e.spacing(4,3),background:"radial-gradient(63.39% 112.69% at 49.33% 50.11%, #A042CD 0%, #32134C 100%)",borderRadius:e.spacing(2),boxShadow:"0px 4px 25px 0px rgba(255, 255, 255, 0.25)",[e.breakpoints.down("sm")]:{padding:e.spacing(3,2),marginTop:0,marginLeft:0,marginRight:0,background:"radial-gradient(63.39% 112.69% at 49.33% 50.11%, #A042CD 0%, #32134C 100%)",borderRadius:0,boxShadow:"none"}})),To=o(l)(({theme:e})=>({display:"flex",alignItems:"center",gap:8,marginBottom:24,[e.breakpoints.down("sm")]:{justifyContent:"center",padding:e.spacing(0,2)}})),Ro=o(M)(({theme:e})=>({fontWeight:600,fontSize:32,[e.breakpoints.down("sm")]:{fontSize:24,textAlign:"center",width:"100%"}})),xe=62,be=60,Wo=o(l,{shouldForwardProp:e=>e!=="fadeLeft"&&e!=="fadeRight"&&e!=="hasScroll"})(({theme:e,fadeLeft:n,fadeRight:i,hasScroll:s})=>{const r=[];return n&&r.push(`linear-gradient(to right, transparent, black ${be}px)`),i&&r.push(`linear-gradient(to left, transparent, black ${be}px)`),{position:"relative",...s?{overflowX:"auto",padding:"24px 16px 16px",margin:"-24px -16px -16px",scrollSnapType:"x mandatory",scrollPaddingInline:16,scrollBehavior:"smooth",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}:{overflow:"visible"},...r.length>0&&{maskImage:r.join(", "),WebkitMaskImage:r.join(", ")},...r.length>1&&{maskComposite:"intersect",WebkitMaskComposite:"source-in"},[e.breakpoints.down("sm")]:{maskImage:"none",WebkitMaskImage:"none"}}}),ve=o(nt)(({theme:e,side:n})=>({position:"absolute",top:"50%",transform:"translateY(-50%)",[n]:e.spacing(1),zIndex:2,backgroundColor:"rgba(0, 0, 0, 0.5)",color:e.palette.common.white,"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.7)"},[e.breakpoints.down("sm")]:{display:"none"}})),Bo=o(l)(({theme:e})=>({display:"flex",gap:e.spacing(2),justifyContent:"safe center",alignItems:"stretch","&::after":{content:'""',flexShrink:0,width:1},"& .MuiCard-root":{minWidth:"max(300px, calc((100% - 48px) / 4))",maxWidth:850,flex:"1 1 0",containerType:"inline-size",scrollSnapAlign:"start",overflow:"hidden"},"& .MuiCardActionArea-root":{height:"100%"},"&& .MuiCardMedia-root":{height:"min(62.5cqw, 297px)"},"&& .MuiCardActionArea-root:hover .MuiCardMedia-root":{height:"min(62.5cqw, 297px)"},"&& .MuiCardActionArea-root:hover .MuiCardContent-root > div:first-of-type > div:last-child":{marginBottom:0},"& .MuiCardContent-root .MuiTypography-h6":{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",WebkitLineClamp:"unset",WebkitBoxOrient:"unset"},"& .MuiCardContent-root .MuiBox-root .MuiBox-root:has(.MuiAvatar-root)":{maxWidth:"100%"},[e.breakpoints.down("sm")]:{"& .MuiCard-root":{minWidth:"unset",maxWidth:"unset",maxHeight:"none",flex:"0 0 100%"},"&& .MuiCardMedia-root":{height:`calc(62.5cqw - ${xe}px)`},"&& .MuiCardActionArea-root:hover .MuiCardMedia-root":{height:`calc(62.5cqw - ${xe}px)`},"&& .MuiCardActionArea-root:hover .MuiCardContent-root > div:first-of-type > div:last-child":{marginBottom:0},"&& .MuiCardContent-root > .MuiBox-root:last-child":{display:"flex",opacity:1,transform:"translateY(0)"}}})),No=o(Dt)(({theme:e})=>({color:"#E00000",[e.breakpoints.down("sm")]:{display:"none"}})),Oo=o(l)({position:"relative"}),Ce=300,we=2,Ho=".MuiCard-root";function Po(){const{t:e}=L(),n=Ue(),i=fo(),{data:s=[]}=Ae(n,{pollingInterval:i?6e4:0}),[r,c]=a.useState(0),[d,f]=a.useState(!1),[p,m]=a.useState(!1),[g,x]=a.useState(1),[v,b]=a.useState(!1),[C,y]=a.useState(null),k=a.useRef(null),D=a.useRef({isDown:!1,startX:0,scrollLeft:0}),T=a.useCallback(()=>{const u=k.current;if(!u)return;const _=u.querySelector(Ho)?.offsetWidth??0,A=_>0&&u.clientWidth>0?Math.max(1,Math.round(u.clientWidth/_)):1,N=Math.max(1,Math.ceil(s.length/A)),O=N>1;x(N),f(O&&u.scrollLeft>we),m(O&&u.scrollLeft+u.clientWidth<u.scrollWidth-we);const $=u.scrollWidth-u.clientWidth;if(!O||$<=0)c(0);else{const X=u.scrollLeft/$;c(Math.round(X*(N-1)))}},[s.length]);a.useEffect(()=>{const u=k.current;if(!u)return;T();const h=new ResizeObserver(T);return h.observe(u),()=>h.disconnect()},[s.length,T]);const E=a.useCallback(u=>{const h=k.current;if(!h)return;const _=u==="left"?-Ce:Ce;h.scrollBy({left:_,behavior:"smooth"})},[]),P=a.useCallback(u=>{const h=k.current;h&&(D.current={isDown:!0,startX:u.pageX-h.offsetLeft,scrollLeft:h.scrollLeft},b(!1))},[]),z=a.useCallback(u=>{if(!D.current.isDown)return;const h=k.current;if(!h)return;u.preventDefault();const A=u.pageX-h.offsetLeft-D.current.startX;Math.abs(A)>5&&b(!0),h.scrollLeft=D.current.scrollLeft-A},[]),R=a.useCallback(()=>{D.current.isDown=!1},[]),q=a.useCallback(u=>{v&&u.stopPropagation()},[v]),W=a.useCallback(u=>{const h=k.current;if(!h)return;const _=h.scrollWidth-h.clientWidth,A=g<=1?0:_*u/(g-1);h.scrollTo({left:A,behavior:"smooth"})},[g]),V=a.useCallback(u=>{y(bt(u))},[]),F=a.useCallback(()=>{y(null)},[]);return s.length===0?null:t.jsxs(Lo,{children:[t.jsxs(To,{children:[t.jsx(No,{}),t.jsx(Ro,{variant:"h5",children:e("live_now.title")})]}),t.jsxs(Oo,{children:[d&&t.jsx(ve,{side:"left",onClick:()=>E("left"),children:t.jsx(oe,{})}),p&&t.jsx(ve,{side:"right",onClick:()=>E("right"),children:t.jsx(ie,{})}),t.jsx(Wo,{ref:k,onScroll:T,fadeLeft:d,fadeRight:p,hasScroll:g>1,onMouseDown:P,onMouseMove:z,onMouseUp:R,onMouseLeave:R,onClickCapture:q,sx:{cursor:v?"grabbing":"grab"},children:t.jsx(Bo,{children:s.map((u,h)=>t.jsx(Xe,{card:u,onClick:V,eager:h===0},u.id))})})]}),g>1&&t.jsx(Ge,{role:"tablist","aria-label":e("live_now.title"),children:Array.from({length:g},(u,h)=>{const _=h===r;return t.jsx(Ye,{active:_,role:"tab","aria-selected":_,"aria-current":_?"true":void 0,tabIndex:_?0:-1,onClick:()=>W(h),onKeyDown:A=>{A.key==="ArrowRight"?(A.preventDefault(),W((h+1)%g)):A.key==="ArrowLeft"&&(A.preventDefault(),W((h-1+g)%g))},"aria-label":e("pagination.go_to_page",{page:h+1})},h)})}),t.jsx(ee,{open:!!C,onClose:F,data:C})]})}const zo="0.4s",Fo=o("section")(({theme:e})=>({position:"relative",zIndex:9,marginTop:e.spacing(4),animation:`slideUp ${zo} ease-out`,"@keyframes slideUp":{from:{transform:"translateY(20px)"},to:{transform:"translateY(0)"}},marginLeft:e.spacing(-8),marginRight:e.spacing(-8),padding:e.spacing(4,8),[e.breakpoints.down("lg")]:{marginLeft:e.spacing(-4),marginRight:e.spacing(-4),padding:e.spacing(4,4)},[e.breakpoints.down("md")]:{marginLeft:e.spacing(-3),marginRight:e.spacing(-3),padding:e.spacing(4,3)},[e.breakpoints.down("sm")]:{marginLeft:0,marginRight:0,padding:e.spacing(3,2)}})),$o=o(M)(({theme:e})=>({fontWeight:500,fontSize:32,lineHeight:1.235,marginBottom:32,[e.breakpoints.down("md")]:{textAlign:"center"},[e.breakpoints.down("sm")]:{fontSize:24}})),Uo=o(l)(({theme:e})=>({display:"none",[e.breakpoints.down("md")]:{display:"block"}})),Go=o(l)({display:"flex",gap:12,overflowX:"auto",scrollSnapType:"x mandatory",scrollBehavior:"smooth",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Yo=o(l)(()=>({display:"grid",gridTemplateColumns:"1fr 1fr",gap:12,flex:"0 0 100%",scrollSnapAlign:"start","@media (max-width: 600px)":{gridTemplateColumns:"minmax(0, 430px)",justifyContent:"center","& > *:nth-of-type(n+3)":{display:"none"}}})),qo=o(l)(({theme:e})=>({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(max(300px, calc((100% - 72px) / 4)), 1fr))",gap:24,[e.breakpoints.down("md")]:{display:"none"}})),Vo=4;function Xo(){const{t:e}=L(),{identity:n}=Y(),{data:i=[]}=rt(n?{identity:n}:void 0),[s,r]=a.useState(0),{closeEventDetailModal:c,editActiveEvent:d,modalData:f,openEventDetailModal:p}=Me(),m=a.useRef(null),g=a.useMemo(()=>We(i,Vo),[i]),x=a.useCallback(()=>{const b=m.current;if(!b||b.clientWidth===0)return;const C=Math.round(b.scrollLeft/b.clientWidth);r(C)},[]),v=a.useCallback(b=>{const C=m.current;C&&C.scrollTo({left:b*C.clientWidth,behavior:"smooth"})},[]);return i.length===0?null:t.jsxs(Fo,{children:[t.jsx($o,{variant:"h5",children:e("upcoming.title")}),t.jsx(qo,{children:i.map(b=>t.jsx(U,{event:b,onClick:p},b.id))}),t.jsxs(Uo,{children:[t.jsx(Go,{ref:m,onScroll:x,children:g.map((b,C)=>t.jsx(Yo,{children:b.map(y=>t.jsx(U,{event:y,onClick:p,disableHover:!0},y.id))},C))}),g.length>1&&t.jsx(Ge,{role:"tablist","aria-label":e("upcoming.title"),children:g.map((b,C)=>{const y=C===s;return t.jsx(Ye,{active:y,role:"tab","aria-selected":y,"aria-current":y?"true":void 0,tabIndex:y?0:-1,onClick:()=>v(C),onKeyDown:k=>{k.key==="ArrowRight"?(k.preventDefault(),v((C+1)%g.length)):k.key==="ArrowLeft"&&(k.preventDefault(),v((C-1+g.length)%g.length))},"aria-label":e("pagination.go_to_page",{page:C+1})},C)})})]}),t.jsx(ee,{open:!!f,onClose:c,data:f,onEdit:d})]})}const Ko="https://cdn.decentraland.org/@dcl/landing-site/0.5.1-24846465451.commit-1f3abc7/assets/top_background-Bnd2vX_F.webp",Jo=o(l)(({theme:e})=>({position:"relative",background:"radial-gradient(61.64% 109.58% at 50% 54.49%, #A042CD 0%, #270537 100%)","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%)",pointerEvents:"none",zIndex:1},overflow:"hidden",minHeight:"100vh",padding:e.spacing(5,8,0,8),[e.breakpoints.down("lg")]:{padding:e.spacing(5,4,0,4)},[e.breakpoints.down("md")]:{padding:e.spacing(5,3,0,3)},[e.breakpoints.down("sm")]:{padding:e.spacing(0,0,0,0),background:"#1A0A2E"}})),Qo=o("img")(({theme:e})=>({position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"100%",maxWidth:"none",height:700,objectFit:"cover",objectPosition:"top center",pointerEvents:"none",userSelect:"none",zIndex:0,[e.breakpoints.down("sm")]:{display:"none"}})),Zo=o(l)(({theme:e})=>({position:"relative",zIndex:1,display:"flex",flexDirection:"column",gap:e.spacing(4),paddingTop:"66px",[e.breakpoints.down("sm")]:{paddingTop:"56px",gap:0}})),ea=o(l,{shouldForwardProp:e=>e!=="deferred"})(({deferred:e})=>({display:e?"none":"contents"}));function Ba(){const e=Ue(),{isLoading:n}=Ae(e);return t.jsxs(Jo,{component:"main",children:[t.jsx(Qo,{src:Ko,alt:"","aria-hidden":"true",loading:"eager",decoding:"async",width:1440,height:700}),t.jsx(Zo,{children:t.jsx(Po,{})}),t.jsxs(ea,{deferred:n,children:[t.jsx(Xo,{}),t.jsx(uo,{})]})]})}export{Ba as HomePage};