@dcl/landing-site 0.5.1-24667963662.commit-e7db321 → 0.5.1-24671743849.commit-e464803
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{AnimatedBackground-DBObVbM7.js → AnimatedBackground-B-L76Zza.js} +2 -2
- package/assets/{AnimatedBackground-DBObVbM7.js.map → AnimatedBackground-B-L76Zza.js.map} +1 -1
- package/assets/{AnimatedSection-Dy2CqHWv.js → AnimatedSection-C7y4e9MO.js} +1 -1
- package/assets/{AnimatedSection-Dy2CqHWv.js.map → AnimatedSection-C7y4e9MO.js.map} +1 -1
- package/assets/{ArrowBackIosNew-ClpqCBiA.js → ArrowBackIosNew-m07XLZJ3.js} +1 -1
- package/assets/{ArrowBackIosNew-ClpqCBiA.js.map → ArrowBackIosNew-m07XLZJ3.js.map} +1 -1
- package/assets/{AuthorPage-pJ7qR6DU.js → AuthorPage-HEjEdZnQ.js} +1 -1
- package/assets/{AuthorPage-pJ7qR6DU.js.map → AuthorPage-HEjEdZnQ.js.map} +1 -1
- package/assets/{Badges-DLM7WLac.js → Badges-C3LP2L14.js} +1 -1
- package/assets/{Badges-DLM7WLac.js.map → Badges-C3LP2L14.js.map} +1 -1
- package/assets/{BlogLayout-DdVPRVwT.js → BlogLayout-DOXQWe4b.js} +1 -1
- package/assets/{BlogLayout-DdVPRVwT.js.map → BlogLayout-DOXQWe4b.js.map} +1 -1
- package/assets/{BlogPage-DJ5seXTi.js → BlogPage-BYou2PX1.js} +1 -1
- package/assets/{BlogPage-DJ5seXTi.js.map → BlogPage-BYou2PX1.js.map} +1 -1
- package/assets/{CTAButton-G_F6A2kc.js → CTAButton-DIvER7jP.js} +1 -1
- package/assets/{CTAButton-G_F6A2kc.js.map → CTAButton-DIvER7jP.js.map} +1 -1
- package/assets/{CardContent--XD8e3JI.js → CardContent-CTD4H4a5.js} +1 -1
- package/assets/{CardContent--XD8e3JI.js.map → CardContent-CTD4H4a5.js.map} +1 -1
- package/assets/{CardMedia-DlGw2npC.js → CardMedia-DkSJQ0Yc.js} +1 -1
- package/assets/{CardMedia-DlGw2npC.js.map → CardMedia-DkSJQ0Yc.js.map} +1 -1
- package/assets/{Carousel-GdhNbXzm.js → Carousel-Bz36sWAV.js} +1 -1
- package/assets/{Carousel-GdhNbXzm.js.map → Carousel-Bz36sWAV.js.map} +1 -1
- package/assets/{CategoryPage-DahoLfHy.js → CategoryPage-5N-S_EtG.js} +1 -1
- package/assets/{CategoryPage-DahoLfHy.js.map → CategoryPage-5N-S_EtG.js.map} +1 -1
- package/assets/{CircleAndArrow-C6RrImNk.js → CircleAndArrow-DDOq4aRv.js} +1 -1
- package/assets/{CircleAndArrow-C6RrImNk.js.map → CircleAndArrow-DDOq4aRv.js.map} +1 -1
- package/assets/{CircularProgress-DcmGIHDk.js → CircularProgress-DMJbftwB.js} +1 -1
- package/assets/{CircularProgress-DcmGIHDk.js.map → CircularProgress-DMJbftwB.js.map} +1 -1
- package/assets/{ContentCopy-DZXGXqqg.js → ContentCopy-Die7TKLF.js} +1 -1
- package/assets/{ContentCopy-DZXGXqqg.js.map → ContentCopy-Die7TKLF.js.map} +1 -1
- package/assets/{CreateEventPage-CLt56AWQ.js → CreateEventPage-DB5tddNm.js} +1 -1
- package/assets/{CreateEventPage-CLt56AWQ.js.map → CreateEventPage-DB5tddNm.js.map} +1 -1
- package/assets/{CreatorHubDownload-C7cTzZ_n.js → CreatorHubDownload-DVIZjVQI.js} +1 -1
- package/assets/{CreatorHubDownload-C7cTzZ_n.js.map → CreatorHubDownload-DVIZjVQI.js.map} +1 -1
- package/assets/{CreatorHubDownloadSuccess-DipAyW_h.js → CreatorHubDownloadSuccess-D0krvgHC.js} +1 -1
- package/assets/{CreatorHubDownloadSuccess-DipAyW_h.js.map → CreatorHubDownloadSuccess-D0krvgHC.js.map} +1 -1
- package/assets/DappsShell-DXZfdOqe.js +1 -0
- package/assets/DappsShell-DXZfdOqe.js.map +1 -0
- package/assets/{DownloadSuccessLayout-Di5Qa-ZM.js → DownloadSuccessLayout-B5KxILAh.js} +1 -1
- package/assets/{DownloadSuccessLayout-Di5Qa-ZM.js.map → DownloadSuccessLayout-B5KxILAh.js.map} +1 -1
- package/assets/{Grow-BmtKtm1i.js → Grow-BbhVo4-Q.js} +1 -1
- package/assets/{Grow-BmtKtm1i.js.map → Grow-BbhVo4-Q.js.map} +1 -1
- package/assets/HomePage-CSW35au2.js +3 -0
- package/assets/HomePage-CSW35au2.js.map +1 -0
- package/assets/{InviteFaqs-4RRixgP-.js → InviteFaqs-BZEDqRWz.js} +1 -1
- package/assets/{InviteFaqs-4RRixgP-.js.map → InviteFaqs-BZEDqRWz.js.map} +1 -1
- package/assets/{InvitePage-CtNmz2y6.js → InvitePage-CNSVnM5F.js} +2 -2
- package/assets/{InvitePage-CtNmz2y6.js.map → InvitePage-CNSVnM5F.js.map} +1 -1
- package/assets/{JumpInIcon-DGqWIU4o.js → JumpInIcon-DsVzhXWI.js} +1 -1
- package/assets/{JumpInIcon-DGqWIU4o.js.map → JumpInIcon-DsVzhXWI.js.map} +1 -1
- package/assets/{LegalPageLayout-l-OS4ZYa.js → LegalPageLayout-BGd6IPpz.js} +1 -1
- package/assets/{LegalPageLayout-l-OS4ZYa.js.map → LegalPageLayout-BGd6IPpz.js.map} +1 -1
- package/assets/{Link-B-065zLP.js → Link-C-K90yR0.js} +1 -1
- package/assets/{Link-B-065zLP.js.map → Link-C-K90yR0.js.map} +1 -1
- package/assets/{MenuItem-ChXNXZTb.js → MenuItem-DJBLDqfL.js} +1 -1
- package/assets/{MenuItem-ChXNXZTb.js.map → MenuItem-DJBLDqfL.js.map} +1 -1
- package/assets/{Paper-BJ-Nl60w.js → Paper-BcsxEQWA.js} +1 -1
- package/assets/{Paper-BJ-Nl60w.js.map → Paper-BcsxEQWA.js.map} +1 -1
- package/assets/{PostCard-DajPpr0c.js → PostCard-CalYnkvr.js} +1 -1
- package/assets/{PostCard-DajPpr0c.js.map → PostCard-CalYnkvr.js.map} +1 -1
- package/assets/{PostPage-DIcWHUae.js → PostPage-DYDVBmyR.js} +1 -1
- package/assets/{PostPage-DIcWHUae.js.map → PostPage-DYDVBmyR.js.map} +1 -1
- package/assets/{PostPage.styled-COnewpe7.js → PostPage.styled-B-fdiFDU.js} +3 -3
- package/assets/{PostPage.styled-COnewpe7.js.map → PostPage.styled-B-fdiFDU.js.map} +1 -1
- package/assets/{PreviewPage-Cn2WEC12.js → PreviewPage-BE7HyZTt.js} +1 -1
- package/assets/{PreviewPage-Cn2WEC12.js.map → PreviewPage-BE7HyZTt.js.map} +1 -1
- package/assets/{SEO-DlSMNiIG.js → SEO-P8y8JbS9.js} +1 -1
- package/assets/{SEO-DlSMNiIG.js.map → SEO-P8y8JbS9.js.map} +1 -1
- package/assets/{SearchPage-BsXG81Nf.js → SearchPage-BraoruXd.js} +1 -1
- package/assets/{SearchPage-BsXG81Nf.js.map → SearchPage-BraoruXd.js.map} +1 -1
- package/assets/{SignInRedirect-D3cos3JN.js → SignInRedirect-COcA7WhX.js} +1 -1
- package/assets/{SignInRedirect-D3cos3JN.js.map → SignInRedirect-COcA7WhX.js.map} +1 -1
- package/assets/{SignInRedirect-Q4rx62U6.js → SignInRedirect-CS5Xkoa_.js} +1 -1
- package/assets/{SignInRedirect-Q4rx62U6.js.map → SignInRedirect-CS5Xkoa_.js.map} +1 -1
- package/assets/{Skeleton-D8JfGaaX.js → Skeleton-o93N4ZZz.js} +1 -1
- package/assets/{Skeleton-D8JfGaaX.js.map → Skeleton-o93N4ZZz.js.map} +1 -1
- package/assets/{TwitterEmbed-DeMZkX3S.js → TwitterEmbed-C3w4WnFA.js} +1 -1
- package/assets/{TwitterEmbed-DeMZkX3S.js.map → TwitterEmbed-C3w4WnFA.js.map} +1 -1
- package/assets/{Video-CiAQnrOo.js → Video-DF4ljNzn.js} +1 -1
- package/assets/{Video-CiAQnrOo.js.map → Video-DF4ljNzn.js.map} +1 -1
- package/assets/WearablePreview-5JNPj6PX.js +4 -0
- package/assets/{WearablePreview-CFkTJn9i.js.map → WearablePreview-5JNPj6PX.js.map} +1 -1
- package/assets/{auto-track-_HUtnguT.js → auto-track-UkqTRxye.js} +1 -1
- package/assets/{auto-track-_HUtnguT.js.map → auto-track-UkqTRxye.js.map} +1 -1
- package/assets/{ccip-DNbAsZz-.js → ccip-cqtPy8Xz.js} +1 -1
- package/assets/{ccip-DNbAsZz-.js.map → ccip-cqtPy8Xz.js.map} +1 -1
- package/assets/{createSvgIcon-BLdKozgH.js → createSvgIcon-DH_tCoWL.js} +1 -1
- package/assets/{createSvgIcon-BLdKozgH.js.map → createSvgIcon-DH_tCoWL.js.map} +1 -1
- package/assets/{download-oFyIG5OP.js → download-DQLaB97z.js} +2 -2
- package/assets/{download-oFyIG5OP.js.map → download-DQLaB97z.js.map} +1 -1
- package/assets/{downloadWithIdentity-BYnQvFTU.js → downloadWithIdentity-dAd_6Xjv.js} +1 -1
- package/assets/{downloadWithIdentity-BYnQvFTU.js.map → downloadWithIdentity-dAd_6Xjv.js.map} +1 -1
- package/assets/{events.client-LWw5jd-t.js → events.client-DDwZtrCh.js} +1 -1
- package/assets/{events.client-LWw5jd-t.js.map → events.client-DDwZtrCh.js.map} +1 -1
- package/assets/{index-BCgaMgYt.js → index-71royYUE.js} +1 -1
- package/assets/{index-BCgaMgYt.js.map → index-71royYUE.js.map} +1 -1
- package/assets/{index-CM5Uohwh.js → index-B4ReIH01.js} +1 -1
- package/assets/{index-CM5Uohwh.js.map → index-B4ReIH01.js.map} +1 -1
- package/assets/{index-BLczpcuT.js → index-BQaEVpup.js} +1 -1
- package/assets/{index-BLczpcuT.js.map → index-BQaEVpup.js.map} +1 -1
- package/assets/{index-8P9wWk_Z.js → index-Bi1_667A.js} +1 -1
- package/assets/{index-8P9wWk_Z.js.map → index-Bi1_667A.js.map} +1 -1
- package/assets/{index-DVTinPKV.js → index-Bo0hqmw3.js} +1 -1
- package/assets/{index-DVTinPKV.js.map → index-Bo0hqmw3.js.map} +1 -1
- package/assets/{index-Czi9R2pR.js → index-BpUUMJJL.js} +2 -2
- package/assets/{index-Czi9R2pR.js.map → index-BpUUMJJL.js.map} +1 -1
- package/assets/{index-HZ_h_54S.js → index-BqghIvCc.js} +3 -3
- package/assets/{index-HZ_h_54S.js.map → index-BqghIvCc.js.map} +1 -1
- package/assets/{index-58xN71Vu.js → index-BsykSOSe.js} +1 -1
- package/assets/{index-58xN71Vu.js.map → index-BsykSOSe.js.map} +1 -1
- package/assets/{index-TaLrFo1W.js → index-BxxIREHz.js} +4 -4
- package/assets/{index-TaLrFo1W.js.map → index-BxxIREHz.js.map} +1 -1
- package/assets/{index-u4hJejM4.js → index-C2gGmY4r.js} +1 -1
- package/assets/{index-u4hJejM4.js.map → index-C2gGmY4r.js.map} +1 -1
- package/assets/{index-C1oFIVjZ.js → index-CM-Dg90Z.js} +1 -1
- package/assets/{index-C1oFIVjZ.js.map → index-CM-Dg90Z.js.map} +1 -1
- package/assets/{index-B5OoPTnM.js → index-CYTF85t8.js} +1 -1
- package/assets/{index-B5OoPTnM.js.map → index-CYTF85t8.js.map} +1 -1
- package/assets/{index-DbaTk9pY.js → index-CZS6DsWa.js} +1 -1
- package/assets/{index-DbaTk9pY.js.map → index-CZS6DsWa.js.map} +1 -1
- package/assets/{index-BrJrrR0-.js → index-C_C2-CZT.js} +1 -1
- package/assets/{index-BrJrrR0-.js.map → index-C_C2-CZT.js.map} +1 -1
- package/assets/{index-BqLCay_i.js → index-D1lz72ps.js} +1 -1
- package/assets/{index-BqLCay_i.js.map → index-D1lz72ps.js.map} +1 -1
- package/assets/{index-Bs8_TMuc.js → index-D7GZzk0M.js} +1 -1
- package/assets/{index-Bs8_TMuc.js.map → index-D7GZzk0M.js.map} +1 -1
- package/assets/{index-B9J5C5eN.js → index-DNCSZ9Ly.js} +1 -1
- package/assets/{index-B9J5C5eN.js.map → index-DNCSZ9Ly.js.map} +1 -1
- package/assets/{index-CREsCA81.js → index-DRcrw7Py.js} +1 -1
- package/assets/{index-CREsCA81.js.map → index-DRcrw7Py.js.map} +1 -1
- package/assets/{index-BQ4lI5xX.js → index-DaRevScO.js} +3 -3
- package/assets/{index-BQ4lI5xX.js.map → index-DaRevScO.js.map} +1 -1
- package/assets/{index-DfT-Sjnk.js → index-Dfjt7DKD.js} +1 -1
- package/assets/{index-DfT-Sjnk.js.map → index-Dfjt7DKD.js.map} +1 -1
- package/assets/{index-BqTu8LQP.js → index-DqPgEQko.js} +1 -1
- package/assets/{index-BqTu8LQP.js.map → index-DqPgEQko.js.map} +1 -1
- package/assets/{index-B7Bs_7eg.js → index-DsiqoitH.js} +1 -1
- package/assets/{index-B7Bs_7eg.js.map → index-DsiqoitH.js.map} +1 -1
- package/assets/{index-C5I7_h2M.js → index-LYkhcWuH.js} +1 -1
- package/assets/{index-C5I7_h2M.js.map → index-LYkhcWuH.js.map} +1 -1
- package/assets/{index-C8kkckun.js → index-Oqf5zL8M.js} +1 -1
- package/assets/{index-C8kkckun.js.map → index-Oqf5zL8M.js.map} +1 -1
- package/assets/{index-BeEdEvw9.js → index-bKbknVRg.js} +1 -1
- package/assets/{index-BeEdEvw9.js.map → index-bKbknVRg.js.map} +1 -1
- package/assets/{index-CXRPJhvA.js → index-ezM_J58e.js} +1 -1
- package/assets/{index-CXRPJhvA.js.map → index-ezM_J58e.js.map} +1 -1
- package/assets/{index-g0lykA2w.js → index-mXhpN3cS.js} +1 -1
- package/assets/{index-g0lykA2w.js.map → index-mXhpN3cS.js.map} +1 -1
- package/assets/{index-lCIXH0YF.js → index-n-p43kD4.js} +1 -1
- package/assets/{index-lCIXH0YF.js.map → index-n-p43kD4.js.map} +1 -1
- package/assets/{index-C6h0Y6Bf.js → index-ppzLK-bi.js} +1 -1
- package/assets/{index-C6h0Y6Bf.js.map → index-ppzLK-bi.js.map} +1 -1
- package/assets/{index-Ct6j5i60.js → index-pvI36Hvg.js} +1 -1
- package/assets/{index-Ct6j5i60.js.map → index-pvI36Hvg.js.map} +1 -1
- package/assets/{index-Dpp1tkiC.js → index-qFakdhOO.js} +1 -1
- package/assets/{index-Dpp1tkiC.js.map → index-qFakdhOO.js.map} +1 -1
- package/assets/{index-ZDIYW364.js → index-wq0aztJv.js} +1 -1
- package/assets/{index-ZDIYW364.js.map → index-wq0aztJv.js.map} +1 -1
- package/assets/{profile.client-Dv7yHizc.js → profile.client-CCf--pbP.js} +1 -1
- package/assets/{profile.client-Dv7yHizc.js.map → profile.client-CCf--pbP.js.map} +1 -1
- package/assets/{shared.styled-DZDSiscg.js → shared.styled-Csb0ydX4.js} +1 -1
- package/assets/{shared.styled-DZDSiscg.js.map → shared.styled-Csb0ydX4.js.map} +1 -1
- package/assets/{store-DytzPwIW.js → store-CbX2mp3S.js} +1 -1
- package/assets/{store-DytzPwIW.js.map → store-CbX2mp3S.js.map} +1 -1
- package/assets/{url-CwO7t7Da.js → url-DMbF6Zco.js} +1 -1
- package/assets/{url-CwO7t7Da.js.map → url-DMbF6Zco.js.map} +1 -1
- package/assets/{useAuthIdentity-BJka2D_h.js → useAuthIdentity-CIDWXFI8.js} +1 -1
- package/assets/{useAuthIdentity-BJka2D_h.js.map → useAuthIdentity-CIDWXFI8.js.map} +1 -1
- package/assets/{useCreatorHubDownload-htSWq2gm.js → useCreatorHubDownload-CQ5sircD.js} +1 -1
- package/assets/{useCreatorHubDownload-htSWq2gm.js.map → useCreatorHubDownload-CQ5sircD.js.map} +1 -1
- package/assets/{useInfiniteBlogPosts-b1i6T88U.js → useInfiniteBlogPosts-DspRbflz.js} +1 -1
- package/assets/{useInfiniteBlogPosts-b1i6T88U.js.map → useInfiniteBlogPosts-DspRbflz.js.map} +1 -1
- package/assets/{useSlot-DcCKMoK9.js → useSlot-BerGUD87.js} +1 -1
- package/assets/{useSlot-DcCKMoK9.js.map → useSlot-BerGUD87.js.map} +1 -1
- package/assets/{utils-DyplVMyL.js → utils-CYqFUJMv.js} +1 -1
- package/assets/{utils-DyplVMyL.js.map → utils-CYqFUJMv.js.map} +1 -1
- package/index.html +17 -17
- package/package.json +3 -3
- package/assets/DappsShell-Bq4UFy3b.js +0 -1
- package/assets/DappsShell-Bq4UFy3b.js.map +0 -1
- package/assets/HomePage-BWbNRRBq.js +0 -3
- package/assets/HomePage-BWbNRRBq.js.map +0 -1
- package/assets/WearablePreview-CFkTJn9i.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as f,a as v,c as _,b as p}from"./vendor-intl-D2lXWsDp.js";import{l as N,g as k,u as j,r as y,c as P,C as z,d as C,e as b,i as F,m as L,b as S,f as R,P as B,h as Q,j as W,k as G,n as T,o as U}from"./index-
|
|
1
|
+
import{_ as f,a as v,c as _,b as p}from"./vendor-intl-D2lXWsDp.js";import{l as N,g as k,u as j,r as y,c as P,C as z,d as C,e as b,i as F,m as L,b as S,f as R,P as B,h as Q,j as W,k as G,n as T,o as U}from"./index-BpUUMJJL.js";import{i as V}from"./is-plan-event-enabled-DeNtQvA5.js";import"./index-DaRevScO.js";import"./vendor-router-D_36sTKu.js";import"./vendor-sentry-BSvWNK4f.js";import"./vendor-crypto-uuuQA3i5.js";import"./vendor-schemas-DJzTSxpO.js";import"./vendor-ua-D7qqAxdq.js";function D(i){return i.toLowerCase().replace(".","").replace(/\s+/g,"-")}function E(i,t){return t===void 0&&(t=!1),t?btoa(i).replace(/=/g,""):void 0}function H(i){return("Integration"in i?i.Integration:i).prototype.name}function J(i,t,n){var e,a;try{var r=((a=(e=window?.performance)===null||e===void 0?void 0:e.getEntriesByName(i,"resource"))!==null&&a!==void 0?a:[])[0];r&&t.stats.gauge("legacy_destination_time",Math.round(r.duration),_([n],r.duration<100?["cached"]:[],!0))}catch{}}function K(i,t,n){var e;if("Integration"in i){var a={user:function(){return n.user()},addIntegration:function(){}};i(a),e=i.Integration}else e=i;var r=new e(t);return r.analytics=n,r}function X(i,t,n,e){return f(this,void 0,void 0,function(){var a,r,o,u,s,l;return v(this,function(d){switch(d.label){case 0:a=D(t),r=E(a,e),o=k(),u="".concat(o,"/integrations/").concat(r??a,"/").concat(n,"/").concat(r??a,".dynamic.js.gz"),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,N(u)];case 2:return d.sent(),J(u,i,t),[3,4];case 3:throw s=d.sent(),i.stats.gauge("legacy_destination_time",-1,["plugin:".concat(t),"failed"]),s;case 4:return l=window["".concat(a,"Deps")],[4,Promise.all(l.map(function(m){return N(o+m+".gz")}))];case 5:return d.sent(),window["".concat(a,"Loader")](),[2,window["".concat(a,"Integration")]]}})})}function Y(i,t,n){return f(this,void 0,void 0,function(){var e,a,r,o;return v(this,function(u){return e=k(),a=D(i),r=E(i,n),o="".concat(e,"/integrations/").concat(r??a,"/").concat(t,"/").concat(r??a,".dynamic.js.gz"),[2,j(o)]})})}function Z(i){var t,n,e,a;return(a=(n=(t=i?.versionSettings)===null||t===void 0?void 0:t.override)!==null&&n!==void 0?n:(e=i?.versionSettings)===null||e===void 0?void 0:e.version)!==null&&a!==void 0?a:"latest"}var $=function(i,t){var n,e=t.type,a=t.bundlingStatus,r=t.versionSettings,o=a!=="unbundled"&&(e==="browser"||((n=r?.componentTypes)===null||n===void 0?void 0:n.includes("browser")));return!i.startsWith("Segment")&&i!=="Iterable"&&o},q=function(i,t){var n=t.All===!1&&t[i]===void 0;return t[i]===!1||n};function x(i,t){return f(this,void 0,void 0,function(){var n,e=this;return v(this,function(a){switch(a.label){case 0:return n=[],P()?[2,t]:[4,W(function(){return t.length>0&&U()},function(){return f(e,void 0,void 0,function(){var r,o,u;return v(this,function(s){switch(s.label){case 0:return r=t.pop(),r?[4,G(r,i)]:[2];case 1:return o=s.sent(),u=o instanceof T,u||n.push(r),[2]}})})})];case 1:return a.sent(),n.map(function(r){return t.pushWithBackoff(r)}),[2,t]}})})}var tt=function(){function i(t,n,e,a,r,o){a===void 0&&(a={});var u=this;this.options={},this.type="destination",this.middleware=[],this.initializePromise=R(),this.flushing=!1,this.name=t,this.version=n,this.settings=p({},a),this.disableAutoISOConversion=r.disableAutoISOConversion||!1,this.integrationSource=o,this.settings.type&&this.settings.type==="browser"&&delete this.settings.type,this.initializePromise.promise.then(function(s){return u._initialized=s},function(){}),this.options=r,this.buffer=r.disableClientPersistence?new B(4,[]):new Q(4,"".concat(e,":dest-").concat(t)),this.scheduleFlush()}return i.prototype.isLoaded=function(){return!!this._ready},i.prototype.ready=function(){var t=this;return this.initializePromise.promise.then(function(){var n;return(n=t.onReady)!==null&&n!==void 0?n:Promise.resolve()})},i.prototype.load=function(t,n){var e;return f(this,void 0,void 0,function(){var a,r,o,u=this;return v(this,function(s){switch(s.label){case 0:if(this._ready||this.onReady!==void 0)return[2];s.label=1;case 1:return s.trys.push([1,5,,6]),(e=this.integrationSource)!==null&&e!==void 0?(r=e,[3,4]):[3,2];case 2:return[4,X(t,this.name,this.version,this.options.obfuscate)];case 3:r=s.sent(),s.label=4;case 4:return a=r,this.integration=K(a,this.settings,n),[3,6];case 5:throw o=s.sent(),y(t,{integrationName:this.name,methodName:"load",type:"classic",didError:!0}),o;case 6:this.onReady=new Promise(function(l){var d=function(){u._ready=!0,l(!0)};u.integration.once("ready",d)}),this.integration.on("initialize",function(){u.initializePromise.resolve(!0)});try{y(t,{integrationName:this.name,methodName:"initialize",type:"classic"}),this.integration.initialize()}catch(l){throw y(t,{integrationName:this.name,methodName:"initialize",type:"classic",didError:!0}),this.initializePromise.resolve(!1),l}return[2]}})})},i.prototype.unload=function(t,n){return Y(this.name,this.version,this.options.obfuscate)},i.prototype.addMiddleware=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this.middleware=(t=this.middleware).concat.apply(t,n)},i.prototype.shouldBuffer=function(t){return t.event.type!=="page"&&(P()||this._ready!==!0||this._initialized!==!0)},i.prototype.send=function(t,n,e){var a,r;return f(this,void 0,void 0,function(){var o,u,s,l,d,m;return v(this,function(h){switch(h.label){case 0:return this.shouldBuffer(t)?(this.buffer.push(t),this.scheduleFlush(),[2,t]):(o=(r=(a=this.options)===null||a===void 0?void 0:a.plan)===null||r===void 0?void 0:r.track,u=t.event.event,o&&u&&this.name!=="Segment.io"&&(s=o[u],V(o,s)?t.updateEvent("integrations",p(p({},t.event.integrations),s?.integrations)):(t.updateEvent("integrations",p(p({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new z({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),s?.enabled&&s?.integrations[this.name]===!1&&t.cancel(new z({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),[4,C(this.name,t.event,this.middleware)]);case 1:if(l=h.sent(),l===null)return[2,t];d=new n(l,{traverse:!this.disableAutoISOConversion}),y(t,{integrationName:this.name,methodName:e,type:"classic"}),h.label=2;case 2:return h.trys.push([2,5,,6]),this.integration?[4,this.integration.invoke.call(this.integration,e,d)]:[3,4];case 3:h.sent(),h.label=4;case 4:return[3,6];case 5:throw m=h.sent(),y(t,{integrationName:this.name,methodName:e,type:"classic",didError:!0}),m;case 6:return[2,t]}})})},i.prototype.track=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,b.Track,"track")]})})},i.prototype.page=function(t){var n;return f(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return!((n=this.integration)===null||n===void 0)&&n._assumesPageview&&!this._initialized&&this.integration.initialize(),[4,this.initializePromise.promise];case 1:return e.sent(),[2,this.send(t,b.Page,"page")]}})})},i.prototype.identify=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,b.Identify,"identify")]})})},i.prototype.alias=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,b.Alias,"alias")]})})},i.prototype.group=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,b.Group,"group")]})})},i.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout(function(){return f(t,void 0,void 0,function(){var n;return v(this,function(e){switch(e.label){case 0:return P()||this._ready!==!0||this._initialized!==!0?(this.scheduleFlush(),[2]):(this.flushing=!0,n=this,[4,x(this,this.buffer)]);case 1:return n.buffer=e.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}})})},Math.random()*5e3)},i}();function dt(i,t,n,e,a,r){var o,u;if(n===void 0&&(n={}),e===void 0&&(e={}),F())return[];t.plan&&(e=e??{},e.plan=t.plan);var s=(u=(o=t.middlewareSettings)===null||o===void 0?void 0:o.routingRules)!==null&&u!==void 0?u:[],l=t.integrations,d=e.integrations,m=L(t,e??{}),h=r?.reduce(function(c,w){var g;return p(p({},c),(g={},g[H(w)]=w,g))},{}),O=new Set(_(_([],Object.keys(l).filter(function(c){return $(c,l[c])}),!0),Object.keys(h||{}).filter(function(c){return S(l[c])||S(d?.[c])}),!0));return Array.from(O).filter(function(c){return!q(c,n)}).map(function(c){var w=l[c],g=Z(w),I=new tt(c,g,i,m[c],e,h?.[c]),A=s.filter(function(M){return M.destinationName===c});return A.length>0&&a&&I.addMiddleware(a),I})}export{tt as LegacyDestination,dt as ajsDestinations};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-u4hJejM4.js","sources":["../../node_modules/@segment/analytics-next/dist/pkg/plugins/ajs-destination/loader.js","../../node_modules/@segment/analytics-next/dist/pkg/plugins/ajs-destination/utils.js","../../node_modules/@segment/analytics-next/dist/pkg/plugins/ajs-destination/index.js"],"sourcesContent":["import { __awaiter, __generator, __spreadArray } from \"tslib\";\nimport { getNextIntegrationsURL } from '../../lib/parse-cdn';\nimport { loadScript, unloadScript } from '../../lib/load-script';\nfunction normalizeName(name) {\n return name.toLowerCase().replace('.', '').replace(/\\s+/g, '-');\n}\nfunction obfuscatePathName(pathName, obfuscate) {\n if (obfuscate === void 0) { obfuscate = false; }\n return obfuscate ? btoa(pathName).replace(/=/g, '') : undefined;\n}\nexport function resolveIntegrationNameFromSource(integrationSource) {\n return ('Integration' in integrationSource\n ? integrationSource.Integration\n : integrationSource).prototype.name;\n}\nfunction recordLoadMetrics(fullPath, ctx, name) {\n var _a, _b;\n try {\n var metric = ((_b = (_a = window === null || window === void 0 ? void 0 : window.performance) === null || _a === void 0 ? void 0 : _a.getEntriesByName(fullPath, 'resource')) !== null && _b !== void 0 ? _b : [])[0];\n // we assume everything that took under 100ms is cached\n metric &&\n ctx.stats.gauge('legacy_destination_time', Math.round(metric.duration), __spreadArray([\n name\n ], (metric.duration < 100 ? ['cached'] : []), true));\n }\n catch (_) {\n // not available\n }\n}\nexport function buildIntegration(integrationSource, integrationSettings, analyticsInstance) {\n var integrationCtr;\n // GA and Appcues use a different interface to instantiating integrations\n if ('Integration' in integrationSource) {\n var analyticsStub = {\n user: function () { return analyticsInstance.user(); },\n addIntegration: function () { },\n };\n integrationSource(analyticsStub);\n integrationCtr = integrationSource.Integration;\n }\n else {\n integrationCtr = integrationSource;\n }\n var integration = new integrationCtr(integrationSettings);\n integration.analytics = analyticsInstance;\n return integration;\n}\nexport function loadIntegration(ctx, name, version, obfuscate) {\n return __awaiter(this, void 0, void 0, function () {\n var pathName, obfuscatedPathName, path, fullPath, err_1, deps;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n pathName = normalizeName(name);\n obfuscatedPathName = obfuscatePathName(pathName, obfuscate);\n path = getNextIntegrationsURL();\n fullPath = \"\".concat(path, \"/integrations/\").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, \"/\").concat(version, \"/\").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, \".dynamic.js.gz\");\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, loadScript(fullPath)];\n case 2:\n _a.sent();\n recordLoadMetrics(fullPath, ctx, name);\n return [3 /*break*/, 4];\n case 3:\n err_1 = _a.sent();\n ctx.stats.gauge('legacy_destination_time', -1, [\"plugin:\".concat(name), \"failed\"]);\n throw err_1;\n case 4:\n deps = window[\"\".concat(pathName, \"Deps\")];\n return [4 /*yield*/, Promise.all(deps.map(function (dep) { return loadScript(path + dep + '.gz'); }))\n // @ts-ignore\n ];\n case 5:\n _a.sent();\n // @ts-ignore\n window[\"\".concat(pathName, \"Loader\")]();\n return [2 /*return*/, window[\n // @ts-ignore\n \"\".concat(pathName, \"Integration\")]];\n }\n });\n });\n}\nexport function unloadIntegration(name, version, obfuscate) {\n return __awaiter(this, void 0, void 0, function () {\n var path, pathName, obfuscatedPathName, fullPath;\n return __generator(this, function (_a) {\n path = getNextIntegrationsURL();\n pathName = normalizeName(name);\n obfuscatedPathName = obfuscatePathName(name, obfuscate);\n fullPath = \"\".concat(path, \"/integrations/\").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, \"/\").concat(version, \"/\").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, \".dynamic.js.gz\");\n return [2 /*return*/, unloadScript(fullPath)];\n });\n });\n}\nexport function resolveVersion(integrationConfig) {\n var _a, _b, _c, _d;\n return ((_d = (_b = (_a = integrationConfig === null || integrationConfig === void 0 ? void 0 : integrationConfig.versionSettings) === null || _a === void 0 ? void 0 : _a.override) !== null && _b !== void 0 ? _b : (_c = integrationConfig === null || integrationConfig === void 0 ? void 0 : integrationConfig.versionSettings) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : 'latest');\n}\n//# sourceMappingURL=loader.js.map","export var isInstallableIntegration = function (name, integrationSettings) {\n var _a;\n var type = integrationSettings.type, bundlingStatus = integrationSettings.bundlingStatus, versionSettings = integrationSettings.versionSettings;\n // We use `!== 'unbundled'` (versus `=== 'bundled'`) to be inclusive of\n // destinations without a defined value for `bundlingStatus`\n var deviceMode = bundlingStatus !== 'unbundled' &&\n (type === 'browser' || ((_a = versionSettings === null || versionSettings === void 0 ? void 0 : versionSettings.componentTypes) === null || _a === void 0 ? void 0 : _a.includes('browser')));\n // checking for iterable is a quick fix we need in place to prevent\n // errors showing Iterable as a failed destiantion. Ideally, we should\n // fix the Iterable metadata instead, but that's a longer process.\n return !name.startsWith('Segment') && name !== 'Iterable' && deviceMode;\n};\nexport var isDisabledIntegration = function (integrationName, integrations) {\n var allDisableAndNotDefined = integrations.All === false && integrations[integrationName] === undefined;\n return integrations[integrationName] === false || allDisableAndNotDefined;\n};\n//# sourceMappingURL=utils.js.map","import { __assign, __awaiter, __generator, __spreadArray } from \"tslib\";\nimport { Alias, Group, Identify, Page, Track } from '@segment/facade';\nimport { isOffline, isOnline } from '../../core/connection';\nimport { Context, ContextCancelation } from '../../core/context';\nimport { isServer } from '../../core/environment';\nimport { attempt } from '@segment/analytics-core';\nimport { isPlanEventEnabled } from '../../lib/is-plan-event-enabled';\nimport { mergedOptions } from '../../lib/merged-options';\nimport { pWhile } from '../../lib/p-while';\nimport { PriorityQueue } from '../../lib/priority-queue';\nimport { PersistedPriorityQueue } from '../../lib/priority-queue/persisted';\nimport { applyDestinationMiddleware, } from '../middleware';\nimport { buildIntegration, loadIntegration, resolveIntegrationNameFromSource, resolveVersion, unloadIntegration, } from './loader';\nimport { isPlainObject } from '@segment/analytics-core';\nimport { isDisabledIntegration as shouldSkipIntegration, isInstallableIntegration, } from './utils';\nimport { recordIntegrationMetric } from '../../core/stats/metric-helpers';\nimport { createDeferred } from '@segment/analytics-generic-utils';\nfunction flushQueue(xt, queue) {\n return __awaiter(this, void 0, void 0, function () {\n var failedQueue;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n failedQueue = [];\n if (isOffline()) {\n return [2 /*return*/, queue];\n }\n return [4 /*yield*/, pWhile(function () { return queue.length > 0 && isOnline(); }, function () { return __awaiter(_this, void 0, void 0, function () {\n var ctx, result, success;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n ctx = queue.pop();\n if (!ctx) {\n return [2 /*return*/];\n }\n return [4 /*yield*/, attempt(ctx, xt)];\n case 1:\n result = _a.sent();\n success = result instanceof Context;\n if (!success) {\n failedQueue.push(ctx);\n }\n return [2 /*return*/];\n }\n });\n }); })\n // re-add failed tasks\n ];\n case 1:\n _a.sent();\n // re-add failed tasks\n failedQueue.map(function (failed) { return queue.pushWithBackoff(failed); });\n return [2 /*return*/, queue];\n }\n });\n });\n}\nvar LegacyDestination = /** @class */ (function () {\n function LegacyDestination(name, version, writeKey, settings, options, integrationSource) {\n if (settings === void 0) { settings = {}; }\n var _this = this;\n this.options = {};\n this.type = 'destination';\n this.middleware = [];\n this.initializePromise = createDeferred();\n this.flushing = false;\n this.name = name;\n this.version = version;\n this.settings = __assign({}, settings);\n this.disableAutoISOConversion = options.disableAutoISOConversion || false;\n this.integrationSource = integrationSource;\n // AJS-Renderer sets an extraneous `type` setting that clobbers\n // existing type defaults. We need to remove it if it's present\n if (this.settings['type'] && this.settings['type'] === 'browser') {\n delete this.settings['type'];\n }\n this.initializePromise.promise.then(function (isInitialized) { return (_this._initialized = isInitialized); }, function () { });\n this.options = options;\n this.buffer = options.disableClientPersistence\n ? new PriorityQueue(4, [])\n : new PersistedPriorityQueue(4, \"\".concat(writeKey, \":dest-\").concat(name));\n this.scheduleFlush();\n }\n LegacyDestination.prototype.isLoaded = function () {\n return !!this._ready;\n };\n LegacyDestination.prototype.ready = function () {\n var _this = this;\n return this.initializePromise.promise.then(function () { var _a; return (_a = _this.onReady) !== null && _a !== void 0 ? _a : Promise.resolve(); });\n };\n LegacyDestination.prototype.load = function (ctx, analyticsInstance) {\n var _a;\n return __awaiter(this, void 0, void 0, function () {\n var integrationSource, _b, error_1;\n var _this = this;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n if (this._ready || this.onReady !== undefined) {\n return [2 /*return*/];\n }\n _c.label = 1;\n case 1:\n _c.trys.push([1, 5, , 6]);\n if (!((_a = this.integrationSource) !== null && _a !== void 0)) return [3 /*break*/, 2];\n _b = _a;\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, loadIntegration(ctx, this.name, this.version, this.options.obfuscate)];\n case 3:\n _b = (_c.sent());\n _c.label = 4;\n case 4:\n integrationSource = _b;\n this.integration = buildIntegration(integrationSource, this.settings, analyticsInstance);\n return [3 /*break*/, 6];\n case 5:\n error_1 = _c.sent();\n recordIntegrationMetric(ctx, {\n integrationName: this.name,\n methodName: 'load',\n type: 'classic',\n didError: true,\n });\n throw error_1;\n case 6:\n this.onReady = new Promise(function (resolve) {\n var onReadyFn = function () {\n _this._ready = true;\n resolve(true);\n };\n _this.integration.once('ready', onReadyFn);\n });\n this.integration.on('initialize', function () {\n _this.initializePromise.resolve(true);\n });\n try {\n recordIntegrationMetric(ctx, {\n integrationName: this.name,\n methodName: 'initialize',\n type: 'classic',\n });\n this.integration.initialize();\n }\n catch (error) {\n recordIntegrationMetric(ctx, {\n integrationName: this.name,\n methodName: 'initialize',\n type: 'classic',\n didError: true,\n });\n this.initializePromise.resolve(false);\n throw error;\n }\n return [2 /*return*/];\n }\n });\n });\n };\n LegacyDestination.prototype.unload = function (_ctx, _analyticsInstance) {\n return unloadIntegration(this.name, this.version, this.options.obfuscate);\n };\n LegacyDestination.prototype.addMiddleware = function () {\n var _a;\n var fn = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n fn[_i] = arguments[_i];\n }\n this.middleware = (_a = this.middleware).concat.apply(_a, fn);\n };\n LegacyDestination.prototype.shouldBuffer = function (ctx) {\n return (\n // page events can't be buffered because of destinations that automatically add page views\n ctx.event.type !== 'page' &&\n (isOffline() || this._ready !== true || this._initialized !== true));\n };\n LegacyDestination.prototype.send = function (ctx, clz, eventType) {\n var _a, _b;\n return __awaiter(this, void 0, void 0, function () {\n var plan, ev, planEvent, afterMiddleware, event, err_1;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n if (this.shouldBuffer(ctx)) {\n this.buffer.push(ctx);\n this.scheduleFlush();\n return [2 /*return*/, ctx];\n }\n plan = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.plan) === null || _b === void 0 ? void 0 : _b.track;\n ev = ctx.event.event;\n if (plan && ev && this.name !== 'Segment.io') {\n planEvent = plan[ev];\n if (!isPlanEventEnabled(plan, planEvent)) {\n ctx.updateEvent('integrations', __assign(__assign({}, ctx.event.integrations), { All: false, 'Segment.io': true }));\n ctx.cancel(new ContextCancelation({\n retry: false,\n reason: \"Event \".concat(ev, \" disabled for integration \").concat(this.name, \" in tracking plan\"),\n type: 'Dropped by plan',\n }));\n }\n else {\n ctx.updateEvent('integrations', __assign(__assign({}, ctx.event.integrations), planEvent === null || planEvent === void 0 ? void 0 : planEvent.integrations));\n }\n if ((planEvent === null || planEvent === void 0 ? void 0 : planEvent.enabled) && (planEvent === null || planEvent === void 0 ? void 0 : planEvent.integrations[this.name]) === false) {\n ctx.cancel(new ContextCancelation({\n retry: false,\n reason: \"Event \".concat(ev, \" disabled for integration \").concat(this.name, \" in tracking plan\"),\n type: 'Dropped by plan',\n }));\n }\n }\n return [4 /*yield*/, applyDestinationMiddleware(this.name, ctx.event, this.middleware)];\n case 1:\n afterMiddleware = _c.sent();\n if (afterMiddleware === null) {\n return [2 /*return*/, ctx];\n }\n event = new clz(afterMiddleware, {\n traverse: !this.disableAutoISOConversion,\n });\n recordIntegrationMetric(ctx, {\n integrationName: this.name,\n methodName: eventType,\n type: 'classic',\n });\n _c.label = 2;\n case 2:\n _c.trys.push([2, 5, , 6]);\n if (!this.integration) return [3 /*break*/, 4];\n return [4 /*yield*/, this.integration.invoke.call(this.integration, eventType, event)];\n case 3:\n _c.sent();\n _c.label = 4;\n case 4: return [3 /*break*/, 6];\n case 5:\n err_1 = _c.sent();\n recordIntegrationMetric(ctx, {\n integrationName: this.name,\n methodName: eventType,\n type: 'classic',\n didError: true,\n });\n throw err_1;\n case 6: return [2 /*return*/, ctx];\n }\n });\n });\n };\n LegacyDestination.prototype.track = function (ctx) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.send(ctx, Track, 'track')];\n });\n });\n };\n LegacyDestination.prototype.page = function (ctx) {\n var _a;\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (((_a = this.integration) === null || _a === void 0 ? void 0 : _a._assumesPageview) && !this._initialized) {\n this.integration.initialize();\n }\n return [4 /*yield*/, this.initializePromise.promise];\n case 1:\n _b.sent();\n return [2 /*return*/, this.send(ctx, Page, 'page')];\n }\n });\n });\n };\n LegacyDestination.prototype.identify = function (ctx) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.send(ctx, Identify, 'identify')];\n });\n });\n };\n LegacyDestination.prototype.alias = function (ctx) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.send(ctx, Alias, 'alias')];\n });\n });\n };\n LegacyDestination.prototype.group = function (ctx) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.send(ctx, Group, 'group')];\n });\n });\n };\n LegacyDestination.prototype.scheduleFlush = function () {\n var _this = this;\n if (this.flushing) {\n return;\n }\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (isOffline() || this._ready !== true || this._initialized !== true) {\n this.scheduleFlush();\n return [2 /*return*/];\n }\n this.flushing = true;\n _a = this;\n return [4 /*yield*/, flushQueue(this, this.buffer)];\n case 1:\n _a.buffer = _b.sent();\n this.flushing = false;\n if (this.buffer.todo > 0) {\n this.scheduleFlush();\n }\n return [2 /*return*/];\n }\n });\n }); }, Math.random() * 5000);\n };\n return LegacyDestination;\n}());\nexport { LegacyDestination };\nexport function ajsDestinations(writeKey, settings, integrations, options, routingMiddleware, legacyIntegrationSources) {\n var _a, _b;\n if (integrations === void 0) { integrations = {}; }\n if (options === void 0) { options = {}; }\n if (isServer()) {\n return [];\n }\n if (settings.plan) {\n options = options !== null && options !== void 0 ? options : {};\n options.plan = settings.plan;\n }\n var routingRules = (_b = (_a = settings.middlewareSettings) === null || _a === void 0 ? void 0 : _a.routingRules) !== null && _b !== void 0 ? _b : [];\n var remoteIntegrationsConfig = settings.integrations;\n var localIntegrationsConfig = options.integrations;\n // merged remote CDN settings with user provided options\n var integrationOptions = mergedOptions(settings, options !== null && options !== void 0 ? options : {});\n var adhocIntegrationSources = legacyIntegrationSources === null || legacyIntegrationSources === void 0 ? void 0 : legacyIntegrationSources.reduce(function (acc, integrationSource) {\n var _a;\n return (__assign(__assign({}, acc), (_a = {}, _a[resolveIntegrationNameFromSource(integrationSource)] = integrationSource, _a)));\n }, {});\n var installableIntegrations = new Set(__spreadArray(__spreadArray([], Object.keys(remoteIntegrationsConfig).filter(function (name) {\n return isInstallableIntegration(name, remoteIntegrationsConfig[name]);\n }), true), Object.keys(adhocIntegrationSources || {}).filter(function (name) {\n return isPlainObject(remoteIntegrationsConfig[name]) ||\n isPlainObject(localIntegrationsConfig === null || localIntegrationsConfig === void 0 ? void 0 : localIntegrationsConfig[name]);\n }), true));\n return Array.from(installableIntegrations)\n .filter(function (name) { return !shouldSkipIntegration(name, integrations); })\n .map(function (name) {\n var integrationSettings = remoteIntegrationsConfig[name];\n var version = resolveVersion(integrationSettings);\n var destination = new LegacyDestination(name, version, writeKey, integrationOptions[name], options, adhocIntegrationSources === null || adhocIntegrationSources === void 0 ? void 0 : adhocIntegrationSources[name]);\n var routing = routingRules.filter(function (rule) { return rule.destinationName === name; });\n if (routing.length > 0 && routingMiddleware) {\n destination.addMiddleware(routingMiddleware);\n }\n return destination;\n });\n}\n//# sourceMappingURL=index.js.map"],"names":["normalizeName","name","obfuscatePathName","pathName","obfuscate","resolveIntegrationNameFromSource","integrationSource","recordLoadMetrics","fullPath","ctx","_a","_b","metric","__spreadArray","buildIntegration","integrationSettings","analyticsInstance","integrationCtr","analyticsStub","integration","loadIntegration","version","__awaiter","obfuscatedPathName","path","err_1","deps","__generator","getNextIntegrationsURL","loadScript","dep","unloadIntegration","unloadScript","resolveVersion","integrationConfig","_c","_d","isInstallableIntegration","type","bundlingStatus","versionSettings","deviceMode","isDisabledIntegration","integrationName","integrations","allDisableAndNotDefined","flushQueue","xt","queue","failedQueue","_this","isOffline","pWhile","isOnline","result","success","attempt","Context","failed","LegacyDestination","writeKey","settings","options","createDeferred","__assign","isInitialized","PriorityQueue","PersistedPriorityQueue","error_1","recordIntegrationMetric","resolve","onReadyFn","error","_ctx","_analyticsInstance","fn","_i","clz","eventType","plan","ev","planEvent","afterMiddleware","event","isPlanEventEnabled","ContextCancelation","applyDestinationMiddleware","Track","Page","Identify","Alias","Group","ajsDestinations","routingMiddleware","legacyIntegrationSources","isServer","routingRules","remoteIntegrationsConfig","localIntegrationsConfig","integrationOptions","mergedOptions","adhocIntegrationSources","acc","installableIntegrations","isPlainObject","shouldSkipIntegration","destination","routing","rule"],"mappings":"ueAGA,SAASA,EAAcC,EAAM,CACzB,OAAOA,EAAK,YAAW,EAAG,QAAQ,IAAK,EAAE,EAAE,QAAQ,OAAQ,GAAG,CAClE,CACA,SAASC,EAAkBC,EAAUC,EAAW,CAC5C,OAAIA,IAAc,SAAUA,EAAY,IACjCA,EAAY,KAAKD,CAAQ,EAAE,QAAQ,KAAM,EAAE,EAAI,MAC1D,CACO,SAASE,EAAiCC,EAAmB,CAChE,OAAQ,gBAAiBA,EACnBA,EAAkB,YAClBA,GAAmB,UAAU,IACvC,CACA,SAASC,EAAkBC,EAAUC,EAAKR,EAAM,CAC5C,IAAIS,EAAIC,EACR,GAAI,CACA,IAAIC,IAAWD,GAAMD,EAAqD,QAAO,eAAiB,MAAQA,IAAO,OAAS,OAASA,EAAG,iBAAiBF,EAAU,UAAU,KAAO,MAAQG,IAAO,OAASA,EAAK,CAAA,GAAI,CAAC,EAEpNC,GACIH,EAAI,MAAM,MAAM,0BAA2B,KAAK,MAAMG,EAAO,QAAQ,EAAGC,EAAc,CAClFZ,CAChB,EAAgBW,EAAO,SAAW,IAAM,CAAC,QAAQ,EAAI,CAAA,EAAK,EAAI,CAAC,CAC3D,MACU,CA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,2]}
|
|
1
|
+
{"version":3,"file":"index-C2gGmY4r.js","sources":["../../node_modules/@segment/analytics-next/dist/pkg/plugins/ajs-destination/loader.js","../../node_modules/@segment/analytics-next/dist/pkg/plugins/ajs-destination/utils.js","../../node_modules/@segment/analytics-next/dist/pkg/plugins/ajs-destination/index.js"],"sourcesContent":["import { __awaiter, __generator, __spreadArray } from \"tslib\";\nimport { getNextIntegrationsURL } from '../../lib/parse-cdn';\nimport { loadScript, unloadScript } from '../../lib/load-script';\nfunction normalizeName(name) {\n return name.toLowerCase().replace('.', '').replace(/\\s+/g, '-');\n}\nfunction obfuscatePathName(pathName, obfuscate) {\n if (obfuscate === void 0) { obfuscate = false; }\n return obfuscate ? btoa(pathName).replace(/=/g, '') : undefined;\n}\nexport function resolveIntegrationNameFromSource(integrationSource) {\n return ('Integration' in integrationSource\n ? integrationSource.Integration\n : integrationSource).prototype.name;\n}\nfunction recordLoadMetrics(fullPath, ctx, name) {\n var _a, _b;\n try {\n var metric = ((_b = (_a = window === null || window === void 0 ? void 0 : window.performance) === null || _a === void 0 ? void 0 : _a.getEntriesByName(fullPath, 'resource')) !== null && _b !== void 0 ? _b : [])[0];\n // we assume everything that took under 100ms is cached\n metric &&\n ctx.stats.gauge('legacy_destination_time', Math.round(metric.duration), __spreadArray([\n name\n ], (metric.duration < 100 ? ['cached'] : []), true));\n }\n catch (_) {\n // not available\n }\n}\nexport function buildIntegration(integrationSource, integrationSettings, analyticsInstance) {\n var integrationCtr;\n // GA and Appcues use a different interface to instantiating integrations\n if ('Integration' in integrationSource) {\n var analyticsStub = {\n user: function () { return analyticsInstance.user(); },\n addIntegration: function () { },\n };\n integrationSource(analyticsStub);\n integrationCtr = integrationSource.Integration;\n }\n else {\n integrationCtr = integrationSource;\n }\n var integration = new integrationCtr(integrationSettings);\n integration.analytics = analyticsInstance;\n return integration;\n}\nexport function loadIntegration(ctx, name, version, obfuscate) {\n return __awaiter(this, void 0, void 0, function () {\n var pathName, obfuscatedPathName, path, fullPath, err_1, deps;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n pathName = normalizeName(name);\n obfuscatedPathName = obfuscatePathName(pathName, obfuscate);\n path = getNextIntegrationsURL();\n fullPath = \"\".concat(path, \"/integrations/\").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, \"/\").concat(version, \"/\").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, \".dynamic.js.gz\");\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, loadScript(fullPath)];\n case 2:\n _a.sent();\n recordLoadMetrics(fullPath, ctx, name);\n return [3 /*break*/, 4];\n case 3:\n err_1 = _a.sent();\n ctx.stats.gauge('legacy_destination_time', -1, [\"plugin:\".concat(name), \"failed\"]);\n throw err_1;\n case 4:\n deps = window[\"\".concat(pathName, \"Deps\")];\n return [4 /*yield*/, Promise.all(deps.map(function (dep) { return loadScript(path + dep + '.gz'); }))\n // @ts-ignore\n ];\n case 5:\n _a.sent();\n // @ts-ignore\n window[\"\".concat(pathName, \"Loader\")]();\n return [2 /*return*/, window[\n // @ts-ignore\n \"\".concat(pathName, \"Integration\")]];\n }\n });\n });\n}\nexport function unloadIntegration(name, version, obfuscate) {\n return __awaiter(this, void 0, void 0, function () {\n var path, pathName, obfuscatedPathName, fullPath;\n return __generator(this, function (_a) {\n path = getNextIntegrationsURL();\n pathName = normalizeName(name);\n obfuscatedPathName = obfuscatePathName(name, obfuscate);\n fullPath = \"\".concat(path, \"/integrations/\").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, \"/\").concat(version, \"/\").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, \".dynamic.js.gz\");\n return [2 /*return*/, unloadScript(fullPath)];\n });\n });\n}\nexport function resolveVersion(integrationConfig) {\n var _a, _b, _c, _d;\n return ((_d = (_b = (_a = integrationConfig === null || integrationConfig === void 0 ? void 0 : integrationConfig.versionSettings) === null || _a === void 0 ? void 0 : _a.override) !== null && _b !== void 0 ? _b : (_c = integrationConfig === null || integrationConfig === void 0 ? void 0 : integrationConfig.versionSettings) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : 'latest');\n}\n//# sourceMappingURL=loader.js.map","export var isInstallableIntegration = function (name, integrationSettings) {\n var _a;\n var type = integrationSettings.type, bundlingStatus = integrationSettings.bundlingStatus, versionSettings = integrationSettings.versionSettings;\n // We use `!== 'unbundled'` (versus `=== 'bundled'`) to be inclusive of\n // destinations without a defined value for `bundlingStatus`\n var deviceMode = bundlingStatus !== 'unbundled' &&\n (type === 'browser' || ((_a = versionSettings === null || versionSettings === void 0 ? void 0 : versionSettings.componentTypes) === null || _a === void 0 ? void 0 : _a.includes('browser')));\n // checking for iterable is a quick fix we need in place to prevent\n // errors showing Iterable as a failed destiantion. Ideally, we should\n // fix the Iterable metadata instead, but that's a longer process.\n return !name.startsWith('Segment') && name !== 'Iterable' && deviceMode;\n};\nexport var isDisabledIntegration = function (integrationName, integrations) {\n var allDisableAndNotDefined = integrations.All === false && integrations[integrationName] === undefined;\n return integrations[integrationName] === false || allDisableAndNotDefined;\n};\n//# sourceMappingURL=utils.js.map","import { __assign, __awaiter, __generator, __spreadArray } from \"tslib\";\nimport { Alias, Group, Identify, Page, Track } from '@segment/facade';\nimport { isOffline, isOnline } from '../../core/connection';\nimport { Context, ContextCancelation } from '../../core/context';\nimport { isServer } from '../../core/environment';\nimport { attempt } from '@segment/analytics-core';\nimport { isPlanEventEnabled } from '../../lib/is-plan-event-enabled';\nimport { mergedOptions } from '../../lib/merged-options';\nimport { pWhile } from '../../lib/p-while';\nimport { PriorityQueue } from '../../lib/priority-queue';\nimport { PersistedPriorityQueue } from '../../lib/priority-queue/persisted';\nimport { applyDestinationMiddleware, } from '../middleware';\nimport { buildIntegration, loadIntegration, resolveIntegrationNameFromSource, resolveVersion, unloadIntegration, } from './loader';\nimport { isPlainObject } from '@segment/analytics-core';\nimport { isDisabledIntegration as shouldSkipIntegration, isInstallableIntegration, } from './utils';\nimport { recordIntegrationMetric } from '../../core/stats/metric-helpers';\nimport { createDeferred } from '@segment/analytics-generic-utils';\nfunction flushQueue(xt, queue) {\n return __awaiter(this, void 0, void 0, function () {\n var failedQueue;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n failedQueue = [];\n if (isOffline()) {\n return [2 /*return*/, queue];\n }\n return [4 /*yield*/, pWhile(function () { return queue.length > 0 && isOnline(); }, function () { return __awaiter(_this, void 0, void 0, function () {\n var ctx, result, success;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n ctx = queue.pop();\n if (!ctx) {\n return [2 /*return*/];\n }\n return [4 /*yield*/, attempt(ctx, xt)];\n case 1:\n result = _a.sent();\n success = result instanceof Context;\n if (!success) {\n failedQueue.push(ctx);\n }\n return [2 /*return*/];\n }\n });\n }); })\n // re-add failed tasks\n ];\n case 1:\n _a.sent();\n // re-add failed tasks\n failedQueue.map(function (failed) { return queue.pushWithBackoff(failed); });\n return [2 /*return*/, queue];\n }\n });\n });\n}\nvar LegacyDestination = /** @class */ (function () {\n function LegacyDestination(name, version, writeKey, settings, options, integrationSource) {\n if (settings === void 0) { settings = {}; }\n var _this = this;\n this.options = {};\n this.type = 'destination';\n this.middleware = [];\n this.initializePromise = createDeferred();\n this.flushing = false;\n this.name = name;\n this.version = version;\n this.settings = __assign({}, settings);\n this.disableAutoISOConversion = options.disableAutoISOConversion || false;\n this.integrationSource = integrationSource;\n // AJS-Renderer sets an extraneous `type` setting that clobbers\n // existing type defaults. We need to remove it if it's present\n if (this.settings['type'] && this.settings['type'] === 'browser') {\n delete this.settings['type'];\n }\n this.initializePromise.promise.then(function (isInitialized) { return (_this._initialized = isInitialized); }, function () { });\n this.options = options;\n this.buffer = options.disableClientPersistence\n ? new PriorityQueue(4, [])\n : new PersistedPriorityQueue(4, \"\".concat(writeKey, \":dest-\").concat(name));\n this.scheduleFlush();\n }\n LegacyDestination.prototype.isLoaded = function () {\n return !!this._ready;\n };\n LegacyDestination.prototype.ready = function () {\n var _this = this;\n return this.initializePromise.promise.then(function () { var _a; return (_a = _this.onReady) !== null && _a !== void 0 ? _a : Promise.resolve(); });\n };\n LegacyDestination.prototype.load = function (ctx, analyticsInstance) {\n var _a;\n return __awaiter(this, void 0, void 0, function () {\n var integrationSource, _b, error_1;\n var _this = this;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n if (this._ready || this.onReady !== undefined) {\n return [2 /*return*/];\n }\n _c.label = 1;\n case 1:\n _c.trys.push([1, 5, , 6]);\n if (!((_a = this.integrationSource) !== null && _a !== void 0)) return [3 /*break*/, 2];\n _b = _a;\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, loadIntegration(ctx, this.name, this.version, this.options.obfuscate)];\n case 3:\n _b = (_c.sent());\n _c.label = 4;\n case 4:\n integrationSource = _b;\n this.integration = buildIntegration(integrationSource, this.settings, analyticsInstance);\n return [3 /*break*/, 6];\n case 5:\n error_1 = _c.sent();\n recordIntegrationMetric(ctx, {\n integrationName: this.name,\n methodName: 'load',\n type: 'classic',\n didError: true,\n });\n throw error_1;\n case 6:\n this.onReady = new Promise(function (resolve) {\n var onReadyFn = function () {\n _this._ready = true;\n resolve(true);\n };\n _this.integration.once('ready', onReadyFn);\n });\n this.integration.on('initialize', function () {\n _this.initializePromise.resolve(true);\n });\n try {\n recordIntegrationMetric(ctx, {\n integrationName: this.name,\n methodName: 'initialize',\n type: 'classic',\n });\n this.integration.initialize();\n }\n catch (error) {\n recordIntegrationMetric(ctx, {\n integrationName: this.name,\n methodName: 'initialize',\n type: 'classic',\n didError: true,\n });\n this.initializePromise.resolve(false);\n throw error;\n }\n return [2 /*return*/];\n }\n });\n });\n };\n LegacyDestination.prototype.unload = function (_ctx, _analyticsInstance) {\n return unloadIntegration(this.name, this.version, this.options.obfuscate);\n };\n LegacyDestination.prototype.addMiddleware = function () {\n var _a;\n var fn = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n fn[_i] = arguments[_i];\n }\n this.middleware = (_a = this.middleware).concat.apply(_a, fn);\n };\n LegacyDestination.prototype.shouldBuffer = function (ctx) {\n return (\n // page events can't be buffered because of destinations that automatically add page views\n ctx.event.type !== 'page' &&\n (isOffline() || this._ready !== true || this._initialized !== true));\n };\n LegacyDestination.prototype.send = function (ctx, clz, eventType) {\n var _a, _b;\n return __awaiter(this, void 0, void 0, function () {\n var plan, ev, planEvent, afterMiddleware, event, err_1;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n if (this.shouldBuffer(ctx)) {\n this.buffer.push(ctx);\n this.scheduleFlush();\n return [2 /*return*/, ctx];\n }\n plan = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.plan) === null || _b === void 0 ? void 0 : _b.track;\n ev = ctx.event.event;\n if (plan && ev && this.name !== 'Segment.io') {\n planEvent = plan[ev];\n if (!isPlanEventEnabled(plan, planEvent)) {\n ctx.updateEvent('integrations', __assign(__assign({}, ctx.event.integrations), { All: false, 'Segment.io': true }));\n ctx.cancel(new ContextCancelation({\n retry: false,\n reason: \"Event \".concat(ev, \" disabled for integration \").concat(this.name, \" in tracking plan\"),\n type: 'Dropped by plan',\n }));\n }\n else {\n ctx.updateEvent('integrations', __assign(__assign({}, ctx.event.integrations), planEvent === null || planEvent === void 0 ? void 0 : planEvent.integrations));\n }\n if ((planEvent === null || planEvent === void 0 ? void 0 : planEvent.enabled) && (planEvent === null || planEvent === void 0 ? void 0 : planEvent.integrations[this.name]) === false) {\n ctx.cancel(new ContextCancelation({\n retry: false,\n reason: \"Event \".concat(ev, \" disabled for integration \").concat(this.name, \" in tracking plan\"),\n type: 'Dropped by plan',\n }));\n }\n }\n return [4 /*yield*/, applyDestinationMiddleware(this.name, ctx.event, this.middleware)];\n case 1:\n afterMiddleware = _c.sent();\n if (afterMiddleware === null) {\n return [2 /*return*/, ctx];\n }\n event = new clz(afterMiddleware, {\n traverse: !this.disableAutoISOConversion,\n });\n recordIntegrationMetric(ctx, {\n integrationName: this.name,\n methodName: eventType,\n type: 'classic',\n });\n _c.label = 2;\n case 2:\n _c.trys.push([2, 5, , 6]);\n if (!this.integration) return [3 /*break*/, 4];\n return [4 /*yield*/, this.integration.invoke.call(this.integration, eventType, event)];\n case 3:\n _c.sent();\n _c.label = 4;\n case 4: return [3 /*break*/, 6];\n case 5:\n err_1 = _c.sent();\n recordIntegrationMetric(ctx, {\n integrationName: this.name,\n methodName: eventType,\n type: 'classic',\n didError: true,\n });\n throw err_1;\n case 6: return [2 /*return*/, ctx];\n }\n });\n });\n };\n LegacyDestination.prototype.track = function (ctx) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.send(ctx, Track, 'track')];\n });\n });\n };\n LegacyDestination.prototype.page = function (ctx) {\n var _a;\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (((_a = this.integration) === null || _a === void 0 ? void 0 : _a._assumesPageview) && !this._initialized) {\n this.integration.initialize();\n }\n return [4 /*yield*/, this.initializePromise.promise];\n case 1:\n _b.sent();\n return [2 /*return*/, this.send(ctx, Page, 'page')];\n }\n });\n });\n };\n LegacyDestination.prototype.identify = function (ctx) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.send(ctx, Identify, 'identify')];\n });\n });\n };\n LegacyDestination.prototype.alias = function (ctx) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.send(ctx, Alias, 'alias')];\n });\n });\n };\n LegacyDestination.prototype.group = function (ctx) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.send(ctx, Group, 'group')];\n });\n });\n };\n LegacyDestination.prototype.scheduleFlush = function () {\n var _this = this;\n if (this.flushing) {\n return;\n }\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (isOffline() || this._ready !== true || this._initialized !== true) {\n this.scheduleFlush();\n return [2 /*return*/];\n }\n this.flushing = true;\n _a = this;\n return [4 /*yield*/, flushQueue(this, this.buffer)];\n case 1:\n _a.buffer = _b.sent();\n this.flushing = false;\n if (this.buffer.todo > 0) {\n this.scheduleFlush();\n }\n return [2 /*return*/];\n }\n });\n }); }, Math.random() * 5000);\n };\n return LegacyDestination;\n}());\nexport { LegacyDestination };\nexport function ajsDestinations(writeKey, settings, integrations, options, routingMiddleware, legacyIntegrationSources) {\n var _a, _b;\n if (integrations === void 0) { integrations = {}; }\n if (options === void 0) { options = {}; }\n if (isServer()) {\n return [];\n }\n if (settings.plan) {\n options = options !== null && options !== void 0 ? options : {};\n options.plan = settings.plan;\n }\n var routingRules = (_b = (_a = settings.middlewareSettings) === null || _a === void 0 ? void 0 : _a.routingRules) !== null && _b !== void 0 ? _b : [];\n var remoteIntegrationsConfig = settings.integrations;\n var localIntegrationsConfig = options.integrations;\n // merged remote CDN settings with user provided options\n var integrationOptions = mergedOptions(settings, options !== null && options !== void 0 ? options : {});\n var adhocIntegrationSources = legacyIntegrationSources === null || legacyIntegrationSources === void 0 ? void 0 : legacyIntegrationSources.reduce(function (acc, integrationSource) {\n var _a;\n return (__assign(__assign({}, acc), (_a = {}, _a[resolveIntegrationNameFromSource(integrationSource)] = integrationSource, _a)));\n }, {});\n var installableIntegrations = new Set(__spreadArray(__spreadArray([], Object.keys(remoteIntegrationsConfig).filter(function (name) {\n return isInstallableIntegration(name, remoteIntegrationsConfig[name]);\n }), true), Object.keys(adhocIntegrationSources || {}).filter(function (name) {\n return isPlainObject(remoteIntegrationsConfig[name]) ||\n isPlainObject(localIntegrationsConfig === null || localIntegrationsConfig === void 0 ? void 0 : localIntegrationsConfig[name]);\n }), true));\n return Array.from(installableIntegrations)\n .filter(function (name) { return !shouldSkipIntegration(name, integrations); })\n .map(function (name) {\n var integrationSettings = remoteIntegrationsConfig[name];\n var version = resolveVersion(integrationSettings);\n var destination = new LegacyDestination(name, version, writeKey, integrationOptions[name], options, adhocIntegrationSources === null || adhocIntegrationSources === void 0 ? void 0 : adhocIntegrationSources[name]);\n var routing = routingRules.filter(function (rule) { return rule.destinationName === name; });\n if (routing.length > 0 && routingMiddleware) {\n destination.addMiddleware(routingMiddleware);\n }\n return destination;\n });\n}\n//# sourceMappingURL=index.js.map"],"names":["normalizeName","name","obfuscatePathName","pathName","obfuscate","resolveIntegrationNameFromSource","integrationSource","recordLoadMetrics","fullPath","ctx","_a","_b","metric","__spreadArray","buildIntegration","integrationSettings","analyticsInstance","integrationCtr","analyticsStub","integration","loadIntegration","version","__awaiter","obfuscatedPathName","path","err_1","deps","__generator","getNextIntegrationsURL","loadScript","dep","unloadIntegration","unloadScript","resolveVersion","integrationConfig","_c","_d","isInstallableIntegration","type","bundlingStatus","versionSettings","deviceMode","isDisabledIntegration","integrationName","integrations","allDisableAndNotDefined","flushQueue","xt","queue","failedQueue","_this","isOffline","pWhile","isOnline","result","success","attempt","Context","failed","LegacyDestination","writeKey","settings","options","createDeferred","__assign","isInitialized","PriorityQueue","PersistedPriorityQueue","error_1","recordIntegrationMetric","resolve","onReadyFn","error","_ctx","_analyticsInstance","fn","_i","clz","eventType","plan","ev","planEvent","afterMiddleware","event","isPlanEventEnabled","ContextCancelation","applyDestinationMiddleware","Track","Page","Identify","Alias","Group","ajsDestinations","routingMiddleware","legacyIntegrationSources","isServer","routingRules","remoteIntegrationsConfig","localIntegrationsConfig","integrationOptions","mergedOptions","adhocIntegrationSources","acc","installableIntegrations","isPlainObject","shouldSkipIntegration","destination","routing","rule"],"mappings":"ueAGA,SAASA,EAAcC,EAAM,CACzB,OAAOA,EAAK,YAAW,EAAG,QAAQ,IAAK,EAAE,EAAE,QAAQ,OAAQ,GAAG,CAClE,CACA,SAASC,EAAkBC,EAAUC,EAAW,CA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,CAAC,GAC/CuG,EAAgGN,IAAwBjG,CAAI,CAAC,CACrI,CAAC,EAAG,EAAI,CAAC,EACT,OAAO,MAAM,KAAKsG,CAAuB,EACpC,OAAO,SAAUtG,EAAM,CAAE,MAAO,CAACwG,EAAsBxG,EAAM2C,CAAY,CAAG,CAAC,EAC7E,IAAI,SAAU3C,EAAM,CACrB,IAAIc,EAAsBkF,EAAyBhG,CAAI,EACnDoB,EAAUY,EAAelB,CAAmB,EAC5C2F,EAAc,IAAI/C,GAAkB1D,EAAMoB,EAASuC,EAAUuC,EAAmBlG,CAAI,EAAG6D,EAA2FuC,IAAwBpG,CAAI,CAAC,EAC/M0G,EAAUX,EAAa,OAAO,SAAUY,EAAM,CAAE,OAAOA,EAAK,kBAAoB3G,CAAM,CAAC,EAC3F,OAAI0G,EAAQ,OAAS,GAAKd,GACtBa,EAAY,cAAcb,CAAiB,EAExCa,CACX,CAAC,CACL","x_google_ignoreList":[0,1,2]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as o,v as i,a as n,w as s,j as t}from"./index-
|
|
1
|
+
import{s as o,v as i,a as n,w as s,j as t}from"./index-DaRevScO.js";import{r}from"./vendor-router-D_36sTKu.js";import{C as c}from"./Carousel-Bz36sWAV.js";import{A as d}from"./AnimatedSection-C7y4e9MO.js";import{a as l}from"./index-BqghIvCc.js";import"./vendor-crypto-uuuQA3i5.js";import"./vendor-schemas-DJzTSxpO.js";import"./vendor-sentry-BSvWNK4f.js";import"./vendor-ua-D7qqAxdq.js";import"./vendor-intl-D2lXWsDp.js";import"./useCreatorHubDownload-CQ5sircD.js";import"./file-Cr_gl9BS.js";import"./url-DMbF6Zco.js";import"./index-mXhpN3cS.js";import"./useLatestGithubRelease-lPlpQBOj.js";import"./CTAButton-DIvER7jP.js";import"./CircularProgress-DMJbftwB.js";import"./Video-DF4ljNzn.js";const p="data:image/svg+xml,%3csvg%20width='93'%20height='80'%20viewBox='0%200%2093%2080'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%204872'%20filter='url(%23filter0_d_233_28813)'%3e%3cpath%20id='Vector'%20d='M64.9015%2019.361C61.4299%2017.7559%2057.7563%2016.6254%2053.9804%2016C53.4501%2016.9106%2052.9768%2017.8529%2052.5632%2018.8216C48.5409%2018.2405%2044.4555%2018.2405%2040.4333%2018.8216C40.0197%2017.8529%2039.5463%2016.9106%2039.016%2016C35.2448%2016.6449%2031.5737%2017.7747%2028.0949%2019.361C21.1755%2029.5685%2019.2997%2039.4855%2020.2168%2049.278C24.2725%2052.265%2028.8121%2054.5386%2033.6388%2056C34.7238%2054.5319%2035.6857%2052.9776%2036.515%2051.3527C34.9439%2050.7746%2033.4241%2050.0667%2031.9715%2049.2365L33.097%2048.4066C37.2937%2050.3539%2041.8679%2051.363%2046.4982%2051.363C51.1285%2051.363%2055.7027%2050.3539%2059.8995%2048.4066L61.0249%2049.2365C59.5732%2050.0801%2058.0535%2050.8018%2056.4814%2051.3942C57.3205%2053.0003%2058.2821%2054.5401%2059.3576%2056C64.1877%2054.547%2068.7288%2052.2728%2072.7797%2049.278C73.8634%2037.9087%2070.9039%2028.0747%2064.9015%2019.361ZM37.7238%2043.2614C35.0978%2043.2614%2032.9302%2040.8963%2032.9302%2037.9917C32.9302%2035.0871%2035.0144%2032.722%2037.6821%2032.722C40.3499%2032.722%2042.5174%2035.0871%2042.4757%2037.9917C42.4341%2040.8963%2040.3499%2043.2614%2037.7238%2043.2614ZM55.3143%2043.2614C52.6882%2043.2614%2050.5207%2040.8963%2050.5207%2037.9917C50.5207%2035.0871%2052.6048%2032.722%2055.3143%2032.722C58.0237%2032.722%2060.1079%2035.0871%2060.0662%2037.9917C60.0245%2040.8963%2057.982%2043.2614%2055.3143%2043.2614Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_233_28813'%20x='0'%20y='0'%20width='93'%20height='80'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='4'/%3e%3cfeGaussianBlur%20stdDeviation='10'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.55%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_233_28813'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_233_28813'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",g="https://cdn.decentraland.org/@dcl/landing-site/0.5.1-24671743849.commit-e464803/assets/section_connection_grid-B4v_r8xM.webp",m=o("section")({position:"relative",overflow:"hidden",width:"100%",backgroundImage:`url(${g})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",paddingLeft:0,paddingRight:0,"&::before, &::after":{content:'""',position:"absolute",top:0,width:"15%",height:"100%",zIndex:1,pointerEvents:"none"},"&::before":{left:0,background:"linear-gradient(90deg, rgba(24, 20, 26, 0.8) 0%, rgba(24, 20, 26, 0) 100%)"},"&::after":{right:0,background:"linear-gradient(270deg, rgba(24, 20, 26, 0.8) 0%, rgba(24, 20, 26, 0) 100%)"}}),f=o(i)(({theme:e})=>({textAlign:"center",fontSize:48,fontWeight:600,color:"#fcfcfc",marginTop:56,marginBottom:40,maxWidth:"80vw",marginLeft:"auto",marginRight:"auto","& span":{background:"linear-gradient(244deg, #ff2d55 -11.67%, #ffbc5b 88.23%)",backgroundClip:"text",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},[e.breakpoints.down("sm")]:{fontSize:32,lineHeight:"normal",paddingLeft:20,paddingRight:20,marginTop:41,marginBottom:36}})),h=o(n)(({theme:e})=>({width:"100%",padding:"32px 24px",background:"#fcfcfc",borderRadius:20,display:"flex",flexDirection:"column",justifyContent:"flex-start",boxSizing:"border-box",position:"relative",transition:"transform 0.3s ease-in-out",cursor:"pointer","@media (hover: hover)":{"&:hover":{transform:"scale(1.05)"}},[e.breakpoints.down("sm")]:{padding:24}})),x=o(i)(({theme:e})=>({color:"#161518",fontSize:16,lineHeight:"24px",fontWeight:400,fontStyle:"italic",[e.breakpoints.down("sm")]:{fontSize:20,lineHeight:"30px",textAlign:"center"}})),C=o(n)(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",marginTop:16,[e.breakpoints.down("sm")]:{alignItems:"center",marginTop:24}})),u=o(n)({width:40,minWidth:40,height:40,borderRadius:"50%","& img":{width:"100%",height:"100%",objectFit:"cover",borderRadius:"50%"}}),b=o(i)({color:"#161518",fontSize:18,fontWeight:700,marginTop:8,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),w=o(n)(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:56,cursor:"pointer",marginBottom:32,[e.breakpoints.down("sm")]:{marginTop:43}})),k=o(i)(({theme:e})=>({color:"#fff",textAlign:"center",textShadow:"0px 4px 20px rgba(0, 0, 0, 0.55)",fontSize:20,fontWeight:600,[e.breakpoints.down("sm")]:{fontSize:18}})),_=o(n)(({theme:e})=>({"& img":{width:93,height:80,marginTop:23},[e.breakpoints.down("sm")]:{"& img":{width:50,marginTop:0}}})),j=e=>t.jsxs(h,{onClick:()=>{e.url&&window.open(e.url,"_blank","noopener,noreferrer")},sx:{cursor:e.url?"pointer":"default"},children:[t.jsxs(x,{children:["“",e.description,"”"]}),t.jsxs(C,{children:[t.jsx(u,{children:t.jsx("img",{src:e.image,alt:e.name})}),t.jsx(b,{children:e.name})]})]}),v=e=>e.id,Z=r.memo(()=>{const e=s(),a=r.useCallback(()=>window.open(e("general.discord_cta_target"),"_blank","noopener,noreferrer"),[e]);return t.jsx(d,{children:t.jsxs(m,{children:[t.jsxs(f,{children:[t.jsx("span",{children:e("component.creators_landing.connect.title_highlight")})," ",e("component.creators_landing.connect.title")]}),t.jsx(c,{items:l,renderItem:j,keyExtractor:v,slideWidth:500,autoplayDelay:5e3,alignItems:"center"}),t.jsxs(w,{onClick:a,children:[t.jsx(k,{children:e("component.creators_landing.connect.join_the_community")}),t.jsx(_,{children:t.jsx("img",{src:p,alt:"Discord"})})]})]})})});export{Z as CreatorsConnect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-C1oFIVjZ.js","sources":["../../src/images/discord.svg","../../src/images/section_connection_grid.webp","../../src/components/Create/Connect/Connect.styled.ts","../../src/components/Create/Connect/Connect.tsx"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='93'%20height='80'%20viewBox='0%200%2093%2080'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%204872'%20filter='url(%23filter0_d_233_28813)'%3e%3cpath%20id='Vector'%20d='M64.9015%2019.361C61.4299%2017.7559%2057.7563%2016.6254%2053.9804%2016C53.4501%2016.9106%2052.9768%2017.8529%2052.5632%2018.8216C48.5409%2018.2405%2044.4555%2018.2405%2040.4333%2018.8216C40.0197%2017.8529%2039.5463%2016.9106%2039.016%2016C35.2448%2016.6449%2031.5737%2017.7747%2028.0949%2019.361C21.1755%2029.5685%2019.2997%2039.4855%2020.2168%2049.278C24.2725%2052.265%2028.8121%2054.5386%2033.6388%2056C34.7238%2054.5319%2035.6857%2052.9776%2036.515%2051.3527C34.9439%2050.7746%2033.4241%2050.0667%2031.9715%2049.2365L33.097%2048.4066C37.2937%2050.3539%2041.8679%2051.363%2046.4982%2051.363C51.1285%2051.363%2055.7027%2050.3539%2059.8995%2048.4066L61.0249%2049.2365C59.5732%2050.0801%2058.0535%2050.8018%2056.4814%2051.3942C57.3205%2053.0003%2058.2821%2054.5401%2059.3576%2056C64.1877%2054.547%2068.7288%2052.2728%2072.7797%2049.278C73.8634%2037.9087%2070.9039%2028.0747%2064.9015%2019.361ZM37.7238%2043.2614C35.0978%2043.2614%2032.9302%2040.8963%2032.9302%2037.9917C32.9302%2035.0871%2035.0144%2032.722%2037.6821%2032.722C40.3499%2032.722%2042.5174%2035.0871%2042.4757%2037.9917C42.4341%2040.8963%2040.3499%2043.2614%2037.7238%2043.2614ZM55.3143%2043.2614C52.6882%2043.2614%2050.5207%2040.8963%2050.5207%2037.9917C50.5207%2035.0871%2052.6048%2032.722%2055.3143%2032.722C58.0237%2032.722%2060.1079%2035.0871%2060.0662%2037.9917C60.0245%2040.8963%2057.982%2043.2614%2055.3143%2043.2614Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_233_28813'%20x='0'%20y='0'%20width='93'%20height='80'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='4'/%3e%3cfeGaussianBlur%20stdDeviation='10'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.55%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_233_28813'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_233_28813'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e\"","export default \"__VITE_ASSET__CSrHEWuF__\"","import { Box, Typography, styled } from 'decentraland-ui2'\nimport gridBg from '../../../images/section_connection_grid.webp'\n\n/* eslint-disable @typescript-eslint/naming-convention */\nconst ConnectSection = styled('section')({\n position: 'relative',\n overflow: 'hidden',\n width: '100%',\n backgroundImage: `url(${gridBg})`,\n backgroundSize: 'cover',\n backgroundRepeat: 'no-repeat',\n backgroundPosition: 'center',\n paddingLeft: 0,\n paddingRight: 0,\n '&::before, &::after': {\n content: '\"\"',\n position: 'absolute',\n top: 0,\n width: '15%',\n height: '100%',\n zIndex: 1,\n pointerEvents: 'none'\n },\n '&::before': {\n left: 0,\n background: 'linear-gradient(90deg, rgba(24, 20, 26, 0.8) 0%, rgba(24, 20, 26, 0) 100%)'\n },\n '&::after': {\n right: 0,\n background: 'linear-gradient(270deg, rgba(24, 20, 26, 0.8) 0%, rgba(24, 20, 26, 0) 100%)'\n }\n})\n/* eslint-enable @typescript-eslint/naming-convention */\n\nconst ConnectTitle = styled(Typography)(({ theme }) => ({\n textAlign: 'center',\n fontSize: 48,\n fontWeight: 600,\n color: '#fcfcfc',\n marginTop: 56,\n marginBottom: 40,\n maxWidth: '80vw',\n marginLeft: 'auto',\n marginRight: 'auto',\n ['& span']: {\n background: 'linear-gradient(244deg, #ff2d55 -11.67%, #ffbc5b 88.23%)',\n backgroundClip: 'text',\n ['WebkitBackgroundClip' as string]: 'text',\n ['WebkitTextFillColor' as string]: 'transparent'\n },\n [theme.breakpoints.down('sm')]: {\n fontSize: 32,\n lineHeight: 'normal',\n paddingLeft: 20,\n paddingRight: 20,\n marginTop: 41,\n marginBottom: 36\n }\n}))\n\nconst ConnectCard = styled(Box)(({ theme }) => ({\n width: '100%',\n padding: '32px 24px',\n background: '#fcfcfc',\n borderRadius: 20,\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'flex-start',\n boxSizing: 'border-box',\n position: 'relative',\n transition: 'transform 0.3s ease-in-out',\n cursor: 'pointer',\n ['@media (hover: hover)']: {\n ['&:hover']: {\n transform: 'scale(1.05)'\n }\n },\n [theme.breakpoints.down('sm')]: {\n padding: 24\n }\n}))\n\nconst ConnectCardDescription = styled(Typography)(({ theme }) => ({\n color: '#161518',\n fontSize: 16,\n lineHeight: '24px',\n fontWeight: 400,\n fontStyle: 'italic',\n [theme.breakpoints.down('sm')]: {\n fontSize: 20,\n lineHeight: '30px',\n textAlign: 'center'\n }\n}))\n\nconst ConnectCardUser = styled(Box)(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'flex-start',\n marginTop: 16,\n [theme.breakpoints.down('sm')]: {\n alignItems: 'center',\n marginTop: 24\n }\n}))\n\nconst ConnectCardUserImage = styled(Box)({\n width: 40,\n minWidth: 40,\n height: 40,\n borderRadius: '50%',\n ['& img']: {\n width: '100%',\n height: '100%',\n objectFit: 'cover',\n borderRadius: '50%'\n }\n})\n\nconst ConnectCardUserName = styled(Typography)({\n color: '#161518',\n fontSize: 18,\n fontWeight: 700,\n marginTop: 8,\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n overflow: 'hidden'\n})\n\nconst DiscordContainer = styled(Box)(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n marginTop: 56,\n cursor: 'pointer',\n marginBottom: 32,\n [theme.breakpoints.down('sm')]: {\n marginTop: 43\n }\n}))\n\nconst DiscordTitle = styled(Typography)(({ theme }) => ({\n color: '#fff',\n textAlign: 'center',\n textShadow: '0px 4px 20px rgba(0, 0, 0, 0.55)',\n fontSize: 20,\n fontWeight: 600,\n [theme.breakpoints.down('sm')]: {\n fontSize: 18\n }\n}))\n\nconst DiscordIcon = styled(Box)(({ theme }) => ({\n ['& img']: {\n width: 93,\n height: 80,\n marginTop: 23\n },\n [theme.breakpoints.down('sm')]: {\n ['& img']: {\n width: 50,\n marginTop: 0\n }\n }\n}))\n\nexport {\n ConnectCard,\n ConnectCardDescription,\n ConnectCardUser,\n ConnectCardUserImage,\n ConnectCardUserName,\n ConnectSection,\n ConnectTitle,\n DiscordContainer,\n DiscordIcon,\n DiscordTitle\n}\n","import { memo, useCallback } from 'react'\nimport { useFormatMessage } from '../../../hooks/adapters/useFormatMessage'\nimport discordImage from '../../../images/discord.svg'\nimport { Carousel } from '../../Carousel'\nimport { AnimatedSection } from '../AnimatedSection'\nimport { connectCards } from '../data'\nimport type { ConnectCardData } from '../data'\nimport {\n ConnectCard,\n ConnectCardDescription,\n ConnectCardUser,\n ConnectCardUserImage,\n ConnectCardUserName,\n ConnectSection,\n ConnectTitle,\n DiscordContainer,\n DiscordIcon,\n DiscordTitle\n} from './Connect.styled'\n\nconst renderCard = (card: ConnectCardData) => (\n <ConnectCard\n onClick={() => {\n if (card.url) window.open(card.url, '_blank', 'noopener,noreferrer')\n }}\n sx={{ cursor: card.url ? 'pointer' : 'default' }}\n >\n <ConnectCardDescription>“{card.description}”</ConnectCardDescription>\n <ConnectCardUser>\n <ConnectCardUserImage>\n <img src={card.image} alt={card.name} />\n </ConnectCardUserImage>\n <ConnectCardUserName>{card.name}</ConnectCardUserName>\n </ConnectCardUser>\n </ConnectCard>\n)\n\nconst keyExtractor = (card: ConnectCardData) => card.id\n\nconst CreatorsConnect = memo(() => {\n const l = useFormatMessage()\n const handleDiscordClick = useCallback(() => window.open(l('general.discord_cta_target'), '_blank', 'noopener,noreferrer'), [l])\n\n return (\n <AnimatedSection>\n <ConnectSection>\n <ConnectTitle>\n <span>{l('component.creators_landing.connect.title_highlight')}</span> {l('component.creators_landing.connect.title')}\n </ConnectTitle>\n <Carousel\n items={connectCards}\n renderItem={renderCard}\n keyExtractor={keyExtractor}\n slideWidth={500}\n autoplayDelay={5000}\n alignItems=\"center\"\n />\n <DiscordContainer onClick={handleDiscordClick}>\n <DiscordTitle>{l('component.creators_landing.connect.join_the_community')}</DiscordTitle>\n <DiscordIcon>\n <img src={discordImage} alt=\"Discord\" />\n </DiscordIcon>\n </DiscordContainer>\n </ConnectSection>\n </AnimatedSection>\n )\n})\n\nexport { CreatorsConnect }\n"],"names":["discordImage","gridBg","ConnectSection","styled","ConnectTitle","Typography","theme","ConnectCard","Box","ConnectCardDescription","ConnectCardUser","ConnectCardUserImage","ConnectCardUserName","DiscordContainer","DiscordTitle","DiscordIcon","renderCard","card","jsxs","jsx","keyExtractor","CreatorsConnect","memo","l","useFormatMessage","handleDiscordClick","useCallback","AnimatedSection","Carousel","connectCards"],"mappings":"grBAAA,MAAAA,EAAe,s9ECAfC,EAAe,+HCITC,EAAiBC,EAAO,SAAS,EAAE,CACvC,SAAU,WACV,SAAU,SACV,MAAO,OACP,gBAAiB,OAAOF,CAAM,IAC9B,eAAgB,QAChB,iBAAkB,YAClB,mBAAoB,SACpB,YAAa,EACb,aAAc,EACd,sBAAuB,CACrB,QAAS,KACT,SAAU,WACV,IAAK,EACL,MAAO,MACP,OAAQ,OACR,OAAQ,EACR,cAAe,MAAA,EAEjB,YAAa,CACX,KAAM,EACN,WAAY,4EAAA,EAEd,WAAY,CACV,MAAO,EACP,WAAY,6EAAA,CAEhB,CAAC,EAGKG,EAAeD,EAAOE,CAAU,EAAE,CAAC,CAAE,MAAAC,MAAa,CACtD,UAAW,SACX,SAAU,GACV,WAAY,IACZ,MAAO,UACP,UAAW,GACX,aAAc,GACd,SAAU,OACV,WAAY,OACZ,YAAa,OACZ,SAAW,CACV,WAAY,2DACZ,eAAgB,OACf,qBAAmC,OACnC,oBAAkC,aAAA,EAErC,CAACA,EAAM,YAAY,KAAK,IAAI,CAAC,EAAG,CAC9B,SAAU,GACV,WAAY,SACZ,YAAa,GACb,aAAc,GACd,UAAW,GACX,aAAc,EAAA,CAElB,EAAE,EAEIC,EAAcJ,EAAOK,CAAG,EAAE,CAAC,CAAE,MAAAF,MAAa,CAC9C,MAAO,OACP,QAAS,YACT,WAAY,UACZ,aAAc,GACd,QAAS,OACT,cAAe,SACf,eAAgB,aAChB,UAAW,aACX,SAAU,WACV,WAAY,6BACZ,OAAQ,UACP,wBAA0B,CACxB,UAAY,CACX,UAAW,aAAA,CACb,EAEF,CAACA,EAAM,YAAY,KAAK,IAAI,CAAC,EAAG,CAC9B,QAAS,EAAA,CAEb,EAAE,EAEIG,EAAyBN,EAAOE,CAAU,EAAE,CAAC,CAAE,MAAAC,MAAa,CAChE,MAAO,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I,UAAU,CAAA,CACxC,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CACF,CAEJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index-CM-Dg90Z.js","sources":["../../src/images/discord.svg","../../src/images/section_connection_grid.webp","../../src/components/Create/Connect/Connect.styled.ts","../../src/components/Create/Connect/Connect.tsx"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='93'%20height='80'%20viewBox='0%200%2093%2080'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%204872'%20filter='url(%23filter0_d_233_28813)'%3e%3cpath%20id='Vector'%20d='M64.9015%2019.361C61.4299%2017.7559%2057.7563%2016.6254%2053.9804%2016C53.4501%2016.9106%2052.9768%2017.8529%2052.5632%2018.8216C48.5409%2018.2405%2044.4555%2018.2405%2040.4333%2018.8216C40.0197%2017.8529%2039.5463%2016.9106%2039.016%2016C35.2448%2016.6449%2031.5737%2017.7747%2028.0949%2019.361C21.1755%2029.5685%2019.2997%2039.4855%2020.2168%2049.278C24.2725%2052.265%2028.8121%2054.5386%2033.6388%2056C34.7238%2054.5319%2035.6857%2052.9776%2036.515%2051.3527C34.9439%2050.7746%2033.4241%2050.0667%2031.9715%2049.2365L33.097%2048.4066C37.2937%2050.3539%2041.8679%2051.363%2046.4982%2051.363C51.1285%2051.363%2055.7027%2050.3539%2059.8995%2048.4066L61.0249%2049.2365C59.5732%2050.0801%2058.0535%2050.8018%2056.4814%2051.3942C57.3205%2053.0003%2058.2821%2054.5401%2059.3576%2056C64.1877%2054.547%2068.7288%2052.2728%2072.7797%2049.278C73.8634%2037.9087%2070.9039%2028.0747%2064.9015%2019.361ZM37.7238%2043.2614C35.0978%2043.2614%2032.9302%2040.8963%2032.9302%2037.9917C32.9302%2035.0871%2035.0144%2032.722%2037.6821%2032.722C40.3499%2032.722%2042.5174%2035.0871%2042.4757%2037.9917C42.4341%2040.8963%2040.3499%2043.2614%2037.7238%2043.2614ZM55.3143%2043.2614C52.6882%2043.2614%2050.5207%2040.8963%2050.5207%2037.9917C50.5207%2035.0871%2052.6048%2032.722%2055.3143%2032.722C58.0237%2032.722%2060.1079%2035.0871%2060.0662%2037.9917C60.0245%2040.8963%2057.982%2043.2614%2055.3143%2043.2614Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_233_28813'%20x='0'%20y='0'%20width='93'%20height='80'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='4'/%3e%3cfeGaussianBlur%20stdDeviation='10'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.55%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_233_28813'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_233_28813'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e\"","export default \"__VITE_ASSET__CSrHEWuF__\"","import { Box, Typography, styled } from 'decentraland-ui2'\nimport gridBg from '../../../images/section_connection_grid.webp'\n\n/* eslint-disable @typescript-eslint/naming-convention */\nconst ConnectSection = styled('section')({\n position: 'relative',\n overflow: 'hidden',\n width: '100%',\n backgroundImage: `url(${gridBg})`,\n backgroundSize: 'cover',\n backgroundRepeat: 'no-repeat',\n backgroundPosition: 'center',\n paddingLeft: 0,\n paddingRight: 0,\n '&::before, &::after': {\n content: '\"\"',\n position: 'absolute',\n top: 0,\n width: '15%',\n height: '100%',\n zIndex: 1,\n pointerEvents: 'none'\n },\n '&::before': {\n left: 0,\n background: 'linear-gradient(90deg, rgba(24, 20, 26, 0.8) 0%, rgba(24, 20, 26, 0) 100%)'\n },\n '&::after': {\n right: 0,\n background: 'linear-gradient(270deg, rgba(24, 20, 26, 0.8) 0%, rgba(24, 20, 26, 0) 100%)'\n }\n})\n/* eslint-enable @typescript-eslint/naming-convention */\n\nconst ConnectTitle = styled(Typography)(({ theme }) => ({\n textAlign: 'center',\n fontSize: 48,\n fontWeight: 600,\n color: '#fcfcfc',\n marginTop: 56,\n marginBottom: 40,\n maxWidth: '80vw',\n marginLeft: 'auto',\n marginRight: 'auto',\n ['& span']: {\n background: 'linear-gradient(244deg, #ff2d55 -11.67%, #ffbc5b 88.23%)',\n backgroundClip: 'text',\n ['WebkitBackgroundClip' as string]: 'text',\n ['WebkitTextFillColor' as string]: 'transparent'\n },\n [theme.breakpoints.down('sm')]: {\n fontSize: 32,\n lineHeight: 'normal',\n paddingLeft: 20,\n paddingRight: 20,\n marginTop: 41,\n marginBottom: 36\n }\n}))\n\nconst ConnectCard = styled(Box)(({ theme }) => ({\n width: '100%',\n padding: '32px 24px',\n background: '#fcfcfc',\n borderRadius: 20,\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'flex-start',\n boxSizing: 'border-box',\n position: 'relative',\n transition: 'transform 0.3s ease-in-out',\n cursor: 'pointer',\n ['@media (hover: hover)']: {\n ['&:hover']: {\n transform: 'scale(1.05)'\n }\n },\n [theme.breakpoints.down('sm')]: {\n padding: 24\n }\n}))\n\nconst ConnectCardDescription = styled(Typography)(({ theme }) => ({\n color: '#161518',\n fontSize: 16,\n lineHeight: '24px',\n fontWeight: 400,\n fontStyle: 'italic',\n [theme.breakpoints.down('sm')]: {\n fontSize: 20,\n lineHeight: '30px',\n textAlign: 'center'\n }\n}))\n\nconst ConnectCardUser = styled(Box)(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'flex-start',\n marginTop: 16,\n [theme.breakpoints.down('sm')]: {\n alignItems: 'center',\n marginTop: 24\n }\n}))\n\nconst ConnectCardUserImage = styled(Box)({\n width: 40,\n minWidth: 40,\n height: 40,\n borderRadius: '50%',\n ['& img']: {\n width: '100%',\n height: '100%',\n objectFit: 'cover',\n borderRadius: '50%'\n }\n})\n\nconst ConnectCardUserName = styled(Typography)({\n color: '#161518',\n fontSize: 18,\n fontWeight: 700,\n marginTop: 8,\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n overflow: 'hidden'\n})\n\nconst DiscordContainer = styled(Box)(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n marginTop: 56,\n cursor: 'pointer',\n marginBottom: 32,\n [theme.breakpoints.down('sm')]: {\n marginTop: 43\n }\n}))\n\nconst DiscordTitle = styled(Typography)(({ theme }) => ({\n color: '#fff',\n textAlign: 'center',\n textShadow: '0px 4px 20px rgba(0, 0, 0, 0.55)',\n fontSize: 20,\n fontWeight: 600,\n [theme.breakpoints.down('sm')]: {\n fontSize: 18\n }\n}))\n\nconst DiscordIcon = styled(Box)(({ theme }) => ({\n ['& img']: {\n width: 93,\n height: 80,\n marginTop: 23\n },\n [theme.breakpoints.down('sm')]: {\n ['& img']: {\n width: 50,\n marginTop: 0\n }\n }\n}))\n\nexport {\n ConnectCard,\n ConnectCardDescription,\n ConnectCardUser,\n ConnectCardUserImage,\n ConnectCardUserName,\n ConnectSection,\n ConnectTitle,\n DiscordContainer,\n DiscordIcon,\n DiscordTitle\n}\n","import { memo, useCallback } from 'react'\nimport { useFormatMessage } from '../../../hooks/adapters/useFormatMessage'\nimport discordImage from '../../../images/discord.svg'\nimport { Carousel } from '../../Carousel'\nimport { AnimatedSection } from '../AnimatedSection'\nimport { connectCards } from '../data'\nimport type { ConnectCardData } from '../data'\nimport {\n ConnectCard,\n ConnectCardDescription,\n ConnectCardUser,\n ConnectCardUserImage,\n ConnectCardUserName,\n ConnectSection,\n ConnectTitle,\n DiscordContainer,\n DiscordIcon,\n DiscordTitle\n} from './Connect.styled'\n\nconst renderCard = (card: ConnectCardData) => (\n <ConnectCard\n onClick={() => {\n if (card.url) window.open(card.url, '_blank', 'noopener,noreferrer')\n }}\n sx={{ cursor: card.url ? 'pointer' : 'default' }}\n >\n <ConnectCardDescription>“{card.description}”</ConnectCardDescription>\n <ConnectCardUser>\n <ConnectCardUserImage>\n <img src={card.image} alt={card.name} />\n </ConnectCardUserImage>\n <ConnectCardUserName>{card.name}</ConnectCardUserName>\n </ConnectCardUser>\n </ConnectCard>\n)\n\nconst keyExtractor = (card: ConnectCardData) => card.id\n\nconst CreatorsConnect = memo(() => {\n const l = useFormatMessage()\n const handleDiscordClick = useCallback(() => window.open(l('general.discord_cta_target'), '_blank', 'noopener,noreferrer'), [l])\n\n return (\n <AnimatedSection>\n <ConnectSection>\n <ConnectTitle>\n <span>{l('component.creators_landing.connect.title_highlight')}</span> {l('component.creators_landing.connect.title')}\n </ConnectTitle>\n <Carousel\n items={connectCards}\n renderItem={renderCard}\n keyExtractor={keyExtractor}\n slideWidth={500}\n autoplayDelay={5000}\n alignItems=\"center\"\n />\n <DiscordContainer onClick={handleDiscordClick}>\n <DiscordTitle>{l('component.creators_landing.connect.join_the_community')}</DiscordTitle>\n <DiscordIcon>\n <img src={discordImage} alt=\"Discord\" />\n </DiscordIcon>\n </DiscordContainer>\n </ConnectSection>\n </AnimatedSection>\n )\n})\n\nexport { CreatorsConnect }\n"],"names":["discordImage","gridBg","ConnectSection","styled","ConnectTitle","Typography","theme","ConnectCard","Box","ConnectCardDescription","ConnectCardUser","ConnectCardUserImage","ConnectCardUserName","DiscordContainer","DiscordTitle","DiscordIcon","renderCard","card","jsxs","jsx","keyExtractor","CreatorsConnect","memo","l","useFormatMessage","handleDiscordClick","useCallback","AnimatedSection","Carousel","connectCards"],"mappings":"grBAAA,MAAAA,EAAe,s9ECAfC,EAAe,+HCITC,EAAiBC,EAAO,SAAS,EAAE,CACvC,SAAU,WACV,SAAU,SACV,MAAO,OACP,gBAAiB,OAAOF,CAAM,IAC9B,eAAgB,QAChB,i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AAA,CAAuB,SAAA,CAAA,IAAQQ,EAAK,YAAY,GAAA,EAAO,SACvDP,EAAA,CACC,SAAA,CAAAS,EAAAA,IAACR,EAAA,CACC,eAAC,MAAA,CAAI,IAAKM,EAAK,MAAO,IAAKA,EAAK,IAAA,CAAM,CAAA,CACxC,EACAE,EAAAA,IAACP,EAAA,CAAqB,SAAAK,EAAK,IAAA,CAAK,CAAA,CAAA,CAClC,CAAA,CAAA,CACF,EAGIG,EAAgBH,GAA0BA,EAAK,GAE/CI,EAAkBC,EAAAA,KAAK,IAAM,CACjC,MAAMC,EAAIC,EAAA,EACJC,EAAqBC,EAAAA,YAAY,IAAM,OAAO,KAAKH,EAAE,4BAA4B,EAAG,SAAU,qBAAqB,EAAG,CAACA,CAAC,CAAC,EAE/H,OACEJ,EAAAA,IAACQ,EAAA,CACC,SAAAT,EAAAA,KAAChB,EAAA,CACC,SAAA,CAAAgB,OAACd,EAAA,CACC,SAAA,CAAAe,EAAAA,IAAC,OAAA,CAAM,SAAAI,EAAE,oDAAoD,CAAA,CAAE,EAAO,IAAEA,EAAE,0CAA0C,CAAA,EACtH,EACAJ,EAAAA,IAACS,EAAA,CACC,MAAOC,EACP,WAAYb,EACZ,aAAAI,EACA,WAAY,IACZ,cAAe,IACf,WAAW,QAAA,CAAA,EAEbF,EAAAA,KAACL,EAAA,CAAiB,QAASY,EACzB,SAAA,CAAAN,EAAAA,IAACL,EAAA,CAAc,SAAAS,EAAE,uDAAuD,CAAA,CAAE,EAC1EJ,EAAAA,IAACJ,GACC,SAAAI,MAAC,MAAA,CAAI,IAAKnB,EAAc,IAAI,UAAU,CAAA,CACxC,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CACF,CAEJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./index-
|
|
1
|
+
import{j as e}from"./index-DaRevScO.js";import{r}from"./vendor-router-D_36sTKu.js";import{L as s,P as a,S as n,a as t}from"./LegalPageLayout-BGd6IPpz.js";import"./vendor-crypto-uuuQA3i5.js";import"./vendor-schemas-DJzTSxpO.js";import"./vendor-sentry-BSvWNK4f.js";import"./vendor-ua-D7qqAxdq.js";import"./vendor-intl-D2lXWsDp.js";const o=[{id:"allowable-usage",label:"1. Allowable Usage"},{id:"logo-and-name-ownership",label:"2. Logo and name ownership"},{id:"wearables-and-user-names",label:"3. Wearables and user names in Decentraland"},{id:"nfts-and-other-uses",label:"4. NFTs and other uses outside the Decentraland platform"},{id:"disclaimer",label:"5. Disclaimer"},{id:"press-releases",label:"6. Press Releases"},{id:"advertisements",label:"7. Advertisements"},{id:"the-name-decentraland",label:'8. The Name "Decentraland"'},{id:"the-logo-decentraland",label:'9. The Logo "Decentraland"'},{id:"additional-rules",label:"10. Additional Rules"}],l=r.memo(()=>e.jsxs(s,{title:"Terms of Use for Decentraland's Logo and Name",activeSlug:"/brand",tableOfContents:o,children:[e.jsx(a,{children:"Decentraland is a decentralized virtual world governed by its users and as such strongly supports user generated content (UGC). People may use the Decentraland logo and name in their creations within Decentraland, but must follow the following terms."}),e.jsxs(n,{id:"allowable-usage",children:[e.jsx(t,{children:"1. Allowable Usage"}),e.jsxs(a,{children:["Users shall comply with these terms as well as Decentraland's"," ",e.jsx("a",{href:"https://decentraland.org/terms/",target:"_blank",rel:"noopener noreferrer",children:"Terms of Use"})," ","and"," ",e.jsx("a",{href:"https://decentraland.org/content/",target:"_blank",rel:"noopener noreferrer",children:"Content Policy"})," ","in order to be allowed to use the Decentraland name and logo within Decentraland."]})]}),e.jsxs(n,{id:"logo-and-name-ownership",children:[e.jsx(t,{children:"2. Logo and name ownership"}),e.jsx(a,{children:"The Decentraland Foundation is the registered owner of the Decentraland name and logo, acting for the benefit of the DAO. This is because currently the DAO lacks formal legal status."})]}),e.jsxs(n,{id:"wearables-and-user-names",children:[e.jsx(t,{children:"3. Wearables and user names in Decentraland"}),e.jsx(a,{children:"Users may create wearables and names using the Decentraland logo and name on the Decentraland platform, provided that they don't violate the platform's Content Policy and Terms of Use. As far as the Decentraland Foundation is concerned, you are not prevented from monetizing or obtaining profits from the sale of said wearables or user names. The NFT must be unique in design."}),e.jsx(a,{children:"The Decentraland Foundation has the right to deny the use of the Decentraland name and logo at its sole discretion in any case and at any time."})]}),e.jsxs(n,{id:"nfts-and-other-uses",children:[e.jsx(t,{children:"4. NFTs and other uses outside the Decentraland platform"}),e.jsx(a,{children:"The Decentraland Foundation does not authorize the creation of NFTs using the Decentraland name or logo outside the Decentraland platform. The use of the Decentraland name or logo is not allowed in other virtual platforms different from Decentraland or in the real world."})]}),e.jsxs(n,{id:"disclaimer",children:[e.jsx(t,{children:"5. Disclaimer"}),e.jsx(a,{children:"In all written materials relating to your product, including websites, publications, etc. it must be made clear that you do not have any kind of affiliation, business partnerships or other official association with Decentraland, the DAO or the Decentraland Foundation."})]}),e.jsxs(n,{id:"press-releases",children:[e.jsx(t,{children:"6. Press Releases"}),e.jsx(a,{children:"Any press releases that you distribute through social networks, media or news services should clearly state that you do not have any kind of affiliation, business partnerships or other official association with Decentraland, the DAO or the Decentraland Foundation."})]}),e.jsxs(n,{id:"advertisements",children:[e.jsx(t,{children:"7. Advertisements"}),e.jsxs(a,{children:["Any paid advertisement that uses the Decentraland name or logo is generally not allowed and must first be approved by the Decentraland Foundation or the DAO. To seek such approval, you can send an email to:"," ",e.jsx("a",{href:"mailto:legal@decentraland.org",children:"legal@decentraland.org"})," or through a DAO proposal."]})]}),e.jsxs(n,{id:"the-name-decentraland",children:[e.jsx(t,{children:'8. The Name "Decentraland"'}),e.jsx(a,{children:`Subject to these terms you can use the name "Decentraland" to promote your game(s) or wearables as long as it doesn't confuse consumers and as long as it is not used as the name of an app or any kind of merchandise or product. In other words, you can refer to "Decentraland" as the name of the platform, and you can use the name to show your interest in or affection for the Decentraland platform.`})]}),e.jsxs(n,{id:"the-logo-decentraland",children:[e.jsx(t,{children:'9. The Logo "Decentraland"'}),e.jsxs(a,{children:["Subject to these terms, you are only allowed to use the logo design that is available at the following link"," ",e.jsx("a",{href:"https://decentraland.org/press/",target:"_blank",rel:"noopener noreferrer",children:"https://decentraland.org/press/"}),". The Decentraland Foundation or the DAO may alter the form of this design from time to time. You are allowed to resize the logo as long as you do not modify the proportions. But otherwise, you cannot modify the logo design in any way and must abide by these terms."]})]}),e.jsxs(n,{id:"additional-rules",children:[e.jsx(t,{children:"10. Additional Rules"}),e.jsx(a,{children:"THE USE OF DECENTRALAND LOGO AND NAME CANNOT BE ASSOCIATED WITH ANYTHING THAT VIOLATES THE RIGHTS OF OTHER THIRD PARTIES IP, CREATES BRAND CONFUSION, HAS HARMFUL OR OBJECTIONABLE ASPECTS OR DOES NOT COMPLY WITH APPLICABLE LAWS OR ANY OF DECENTRALAND GUIDELINES, TERMS OR RULES. THE DAO AND THE DECENTRALAND FOUNDATION HAVE THE RIGHT TO DECIDE (IN THEIR SOLE DISCRETION) WHETHER THE USE IS ACCEPTABLE."}),e.jsx(a,{children:"YOU MUST NOT USE THE DECENTRALAND NAME OR LOGO IN ANY MANNER THAT IS LIKELY TO HAVE AN ADVERSE EFFECT ON THE REPUTATION OF DECENTRALAND (AS THE DAO OR DECENTRALAND FOUNDATION MAY DETERMINE IN THEIR SOLE DISCRETION). YOU MAY NOT USE THE DECENTRALAND NAME OR LOGO IN ANY WAY THAT SUGGESTS THAT YOU ARE AFFILIATED WITH DECENTRALAND, THE DAO OR THE DECENTRALAND FOUNDATION, OR IN ANY WAY THAT SUGGESTS THAT DECENTRALAND, THE DAO OR THE DECENTRALAND FOUNDATION SPONSORS OR ENDORSES YOUR USAGE."}),e.jsx(a,{children:"These terms grant you permission to use the Decentraland trademarks only in the ways described above. The Decentraland Foundation or the DAO may withdraw or change this permission at any time for any reason."}),e.jsx(a,{children:"Other uses of the Decentraland logo and name require the express approval of the Decentraland Foundation or the DAO."})]})]}));l.displayName="BrandTerms";export{l as BrandTerms};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-B5OoPTnM.js","sources":["../../src/pages/brand/BrandTerms.tsx"],"sourcesContent":["import { memo } from 'react'\nimport { LegalPageLayout, Paragraph, Section, SectionTitle } from '../../components/LegalPage'\nimport type { TOCEntry } from '../../components/LegalPage'\n\nconst TABLE_OF_CONTENTS: TOCEntry[] = [\n { id: 'allowable-usage', label: '1. Allowable Usage' },\n { id: 'logo-and-name-ownership', label: '2. Logo and name ownership' },\n { id: 'wearables-and-user-names', label: '3. Wearables and user names in Decentraland' },\n { id: 'nfts-and-other-uses', label: '4. NFTs and other uses outside the Decentraland platform' },\n { id: 'disclaimer', label: '5. Disclaimer' },\n { id: 'press-releases', label: '6. Press Releases' },\n { id: 'advertisements', label: '7. Advertisements' },\n { id: 'the-name-decentraland', label: '8. The Name \"Decentraland\"' },\n { id: 'the-logo-decentraland', label: '9. The Logo \"Decentraland\"' },\n { id: 'additional-rules', label: '10. Additional Rules' }\n]\n\nconst BrandTerms = memo(() => (\n <LegalPageLayout title=\"Terms of Use for Decentraland's Logo and Name\" activeSlug=\"/brand\" tableOfContents={TABLE_OF_CONTENTS}>\n <Paragraph>\n Decentraland is a decentralized virtual world governed by its users and as such strongly supports user generated content (UGC). People\n may use the Decentraland logo and name in their creations within Decentraland, but must follow the following terms.\n </Paragraph>\n\n <Section id=\"allowable-usage\">\n <SectionTitle>1. Allowable Usage</SectionTitle>\n <Paragraph>\n Users shall comply with these terms as well as Decentraland's{' '}\n <a href=\"https://decentraland.org/terms/\" target=\"_blank\" rel=\"noopener noreferrer\">\n Terms of Use\n </a>{' '}\n and{' '}\n <a href=\"https://decentraland.org/content/\" target=\"_blank\" rel=\"noopener noreferrer\">\n Content Policy\n </a>{' '}\n in order to be allowed to use the Decentraland name and logo within Decentraland.\n </Paragraph>\n </Section>\n\n <Section id=\"logo-and-name-ownership\">\n <SectionTitle>2. Logo and name ownership</SectionTitle>\n <Paragraph>\n The Decentraland Foundation is the registered owner of the Decentraland name and logo, acting for the benefit of the DAO. This is\n because currently the DAO lacks formal legal status.\n </Paragraph>\n </Section>\n\n <Section id=\"wearables-and-user-names\">\n <SectionTitle>3. Wearables and user names in Decentraland</SectionTitle>\n <Paragraph>\n Users may create wearables and names using the Decentraland logo and name on the Decentraland platform, provided that they\n don't violate the platform's Content Policy and Terms of Use. As far as the Decentraland Foundation is concerned, you are\n not prevented from monetizing or obtaining profits from the sale of said wearables or user names. The NFT must be unique in design.\n </Paragraph>\n <Paragraph>\n The Decentraland Foundation has the right to deny the use of the Decentraland name and logo at its sole discretion in any case and\n at any time.\n </Paragraph>\n </Section>\n\n <Section id=\"nfts-and-other-uses\">\n <SectionTitle>4. NFTs and other uses outside the Decentraland platform</SectionTitle>\n <Paragraph>\n The Decentraland Foundation does not authorize the creation of NFTs using the Decentraland name or logo outside the Decentraland\n platform. The use of the Decentraland name or logo is not allowed in other virtual platforms different from Decentraland or in the\n real world.\n </Paragraph>\n </Section>\n\n <Section id=\"disclaimer\">\n <SectionTitle>5. Disclaimer</SectionTitle>\n <Paragraph>\n In all written materials relating to your product, including websites, publications, etc. it must be made clear that you do not have\n any kind of affiliation, business partnerships or other official association with Decentraland, the DAO or the Decentraland\n Foundation.\n </Paragraph>\n </Section>\n\n <Section id=\"press-releases\">\n <SectionTitle>6. Press Releases</SectionTitle>\n <Paragraph>\n Any press releases that you distribute through social networks, media or news services should clearly state that you do not have any\n kind of affiliation, business partnerships or other official association with Decentraland, the DAO or the Decentraland Foundation.\n </Paragraph>\n </Section>\n\n <Section id=\"advertisements\">\n <SectionTitle>7. Advertisements</SectionTitle>\n <Paragraph>\n Any paid advertisement that uses the Decentraland name or logo is generally not allowed and must first be approved by the\n Decentraland Foundation or the DAO. To seek such approval, you can send an email to:{' '}\n <a href=\"mailto:legal@decentraland.org\">legal@decentraland.org</a> or through a DAO proposal.\n </Paragraph>\n </Section>\n\n <Section id=\"the-name-decentraland\">\n <SectionTitle>8. The Name "Decentraland"</SectionTitle>\n <Paragraph>\n Subject to these terms you can use the name "Decentraland" to promote your game(s) or wearables as long as it doesn't\n confuse consumers and as long as it is not used as the name of an app or any kind of merchandise or product. In other words, you can\n refer to "Decentraland" as the name of the platform, and you can use the name to show your interest in or affection for\n the Decentraland platform.\n </Paragraph>\n </Section>\n\n <Section id=\"the-logo-decentraland\">\n <SectionTitle>9. The Logo "Decentraland"</SectionTitle>\n <Paragraph>\n Subject to these terms, you are only allowed to use the logo design that is available at the following link{' '}\n <a href=\"https://decentraland.org/press/\" target=\"_blank\" rel=\"noopener noreferrer\">\n https://decentraland.org/press/\n </a>\n . The Decentraland Foundation or the DAO may alter the form of this design from time to time. You are allowed to resize the logo as\n long as you do not modify the proportions. But otherwise, you cannot modify the logo design in any way and must abide by these\n terms.\n </Paragraph>\n </Section>\n\n <Section id=\"additional-rules\">\n <SectionTitle>10. Additional Rules</SectionTitle>\n <Paragraph>\n THE USE OF DECENTRALAND LOGO AND NAME CANNOT BE ASSOCIATED WITH ANYTHING THAT VIOLATES THE RIGHTS OF OTHER THIRD PARTIES IP, CREATES\n BRAND CONFUSION, HAS HARMFUL OR OBJECTIONABLE ASPECTS OR DOES NOT COMPLY WITH APPLICABLE LAWS OR ANY OF DECENTRALAND GUIDELINES,\n TERMS OR RULES. THE DAO AND THE DECENTRALAND FOUNDATION HAVE THE RIGHT TO DECIDE (IN THEIR SOLE DISCRETION) WHETHER THE USE IS\n ACCEPTABLE.\n </Paragraph>\n <Paragraph>\n YOU MUST NOT USE THE DECENTRALAND NAME OR LOGO IN ANY MANNER THAT IS LIKELY TO HAVE AN ADVERSE EFFECT ON THE REPUTATION OF\n DECENTRALAND (AS THE DAO OR DECENTRALAND FOUNDATION MAY DETERMINE IN THEIR SOLE DISCRETION). YOU MAY NOT USE THE DECENTRALAND NAME\n OR LOGO IN ANY WAY THAT SUGGESTS THAT YOU ARE AFFILIATED WITH DECENTRALAND, THE DAO OR THE DECENTRALAND FOUNDATION, OR IN ANY WAY\n THAT SUGGESTS THAT DECENTRALAND, THE DAO OR THE DECENTRALAND FOUNDATION SPONSORS OR ENDORSES YOUR USAGE.\n </Paragraph>\n <Paragraph>\n These terms grant you permission to use the Decentraland trademarks only in the ways described above. The Decentraland Foundation or\n the DAO may withdraw or change this permission at any time for any reason.\n </Paragraph>\n <Paragraph>\n Other uses of the Decentraland logo and name require the express approval of the Decentraland Foundation or the DAO.\n </Paragraph>\n </Section>\n </LegalPageLayout>\n))\n\nBrandTerms.displayName = 'BrandTerms'\n\nexport { BrandTerms }\n"],"names":["TABLE_OF_CONTENTS","BrandTerms","memo","jsxs","LegalPageLayout","jsx","Paragraph","Section","SectionTitle"],"mappings":"yUAIA,MAAMA,EAAgC,CACpC,CAAE,GAAI,kBAAmB,MAAO,oBAAA,EAChC,CAAE,GAAI,0BAA2B,MAAO,4BAAA,EACxC,CAAE,GAAI,2BAA4B,MAAO,6CAAA,EACzC,CAAE,GAAI,sBAAuB,MAAO,0DAAA,EACpC,CAAE,GAAI,aAAc,MAAO,eAAA,EAC3B,CAAE,GAAI,iBAAkB,MAAO,mBAAA,EAC/B,CAAE,GAAI,iBAAkB,MAAO,mBAAA,EAC/B,CAAE,GAAI,wBAAyB,MAAO,4BAAA,EACtC,CAAE,GAAI,wBAAyB,MAAO,4BAAA,EACtC,CAAE,GAAI,mBAAoB,MAAO,sBAAA,CACnC,EAEMC,EAAaC,EAAAA,KAAK,IACtBC,EAAAA,KAACC,EAAA,CAAgB,MAAM,gDAAgD,WAAW,SAAS,gBAAiBJ,EAC1G,SAAA,CAAAK,EAAAA,IAACC,GAAU,SAAA,4PAAA,CAGX,EAEAH,EAAAA,KAACI,EAAA,CAAQ,GAAG,kBACV,SAAA,CAAAF,EAAAA,IAACG,GAAa,SAAA,oBAAA,CAAkB,SAC/BF,EAAA,CAAU,SAAA,CAAA,gEAC0D,IACnED,EAAAA,IAAC,KAAE,KAAK,kCAAkC,OAAO,SAAS,IAAI,sBAAsB,SAAA,cAAA,CAEpF,EAAK,IAAI,MACL,IACJA,EAAAA,IAAC,KAAE,KAAK,oCAAoC,OAAO,SAAS,IAAI,sBAAsB,SAAA,gBAAA,C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AA,+YAAA,CAKX,CAAA,EACF,EAEAH,EAAAA,KAACI,EAAA,CAAQ,GAAG,wBACV,SAAA,CAAAF,EAAAA,IAACG,GAAa,SAAA,4BAAA,CAAoC,SACjDF,EAAA,CAAU,SAAA,CAAA,8GACmG,IAC5GD,EAAAA,IAAC,KAAE,KAAK,kCAAkC,OAAO,SAAS,IAAI,sBAAsB,SAAA,iCAAA,CAEpF,EAAI,2QAAA,CAAA,CAIN,CAAA,EACF,EAEAF,EAAAA,KAACI,EAAA,CAAQ,GAAG,mBACV,SAAA,CAAAF,EAAAA,IAACG,GAAa,SAAA,sBAAA,CAAoB,EAClCH,EAAAA,IAACC,GAAU,SAAA,kZAAA,CAKX,EACAD,EAAAA,IAACC,GAAU,SAAA,0eAAA,CAKX,EACAD,EAAAA,IAACC,GAAU,SAAA,iNAAA,CAGX,EACAD,EAAAA,IAACC,GAAU,SAAA,sHAAA,CAEX,CAAA,CAAA,CACF,CAAA,EACF,CACD,EAEDL,EAAW,YAAc"}
|
|
1
|
+
{"version":3,"file":"index-CYTF85t8.js","sources":["../../src/pages/brand/BrandTerms.tsx"],"sourcesContent":["import { memo } from 'react'\nimport { LegalPageLayout, Paragraph, Section, SectionTitle } from '../../components/LegalPage'\nimport type { TOCEntry } from '../../components/LegalPage'\n\nconst TABLE_OF_CONTENTS: TOCEntry[] = [\n { id: 'allowable-usage', label: '1. Allowable Usage' },\n { id: 'logo-and-name-ownership', label: '2. Logo and name ownership' },\n { id: 'wearables-and-user-names', label: '3. Wearables and user names in Decentraland' },\n { id: 'nfts-and-other-uses', label: '4. NFTs and other uses outside the Decentraland platform' },\n { id: 'disclaimer', label: '5. Disclaimer' },\n { id: 'press-releases', label: '6. Press Releases' },\n { id: 'advertisements', label: '7. Advertisements' },\n { id: 'the-name-decentraland', label: '8. The Name \"Decentraland\"' },\n { id: 'the-logo-decentraland', label: '9. The Logo \"Decentraland\"' },\n { id: 'additional-rules', label: '10. Additional Rules' }\n]\n\nconst BrandTerms = memo(() => (\n <LegalPageLayout title=\"Terms of Use for Decentraland's Logo and Name\" activeSlug=\"/brand\" tableOfContents={TABLE_OF_CONTENTS}>\n <Paragraph>\n Decentraland is a decentralized virtual world governed by its users and as such strongly supports user generated content (UGC). People\n may use the Decentraland logo and name in their creations within Decentraland, but must follow the following terms.\n </Paragraph>\n\n <Section id=\"allowable-usage\">\n <SectionTitle>1. Allowable Usage</SectionTitle>\n <Paragraph>\n Users shall comply with these terms as well as Decentraland's{' '}\n <a href=\"https://decentraland.org/terms/\" target=\"_blank\" rel=\"noopener noreferrer\">\n Terms of Use\n </a>{' '}\n and{' '}\n <a href=\"https://decentraland.org/content/\" target=\"_blank\" rel=\"noopener noreferrer\">\n Content Policy\n </a>{' '}\n in order to be allowed to use the Decentraland name and logo within Decentraland.\n </Paragraph>\n </Section>\n\n <Section id=\"logo-and-name-ownership\">\n <SectionTitle>2. Logo and name ownership</SectionTitle>\n <Paragraph>\n The Decentraland Foundation is the registered owner of the Decentraland name and logo, acting for the benefit of the DAO. This is\n because currently the DAO lacks formal legal status.\n </Paragraph>\n </Section>\n\n <Section id=\"wearables-and-user-names\">\n <SectionTitle>3. Wearables and user names in Decentraland</SectionTitle>\n <Paragraph>\n Users may create wearables and names using the Decentraland logo and name on the Decentraland platform, provided that they\n don't violate the platform's Content Policy and Terms of Use. As far as the Decentraland Foundation is concerned, you are\n not prevented from monetizing or obtaining profits from the sale of said wearables or user names. The NFT must be unique in design.\n </Paragraph>\n <Paragraph>\n The Decentraland Foundation has the right to deny the use of the Decentraland name and logo at its sole discretion in any case and\n at any time.\n </Paragraph>\n </Section>\n\n <Section id=\"nfts-and-other-uses\">\n <SectionTitle>4. NFTs and other uses outside the Decentraland platform</SectionTitle>\n <Paragraph>\n The Decentraland Foundation does not authorize the creation of NFTs using the Decentraland name or logo outside the Decentraland\n platform. The use of the Decentraland name or logo is not allowed in other virtual platforms different from Decentraland or in the\n real world.\n </Paragraph>\n </Section>\n\n <Section id=\"disclaimer\">\n <SectionTitle>5. Disclaimer</SectionTitle>\n <Paragraph>\n In all written materials relating to your product, including websites, publications, etc. it must be made clear that you do not have\n any kind of affiliation, business partnerships or other official association with Decentraland, the DAO or the Decentraland\n Foundation.\n </Paragraph>\n </Section>\n\n <Section id=\"press-releases\">\n <SectionTitle>6. Press Releases</SectionTitle>\n <Paragraph>\n Any press releases that you distribute through social networks, media or news services should clearly state that you do not have any\n kind of affiliation, business partnerships or other official association with Decentraland, the DAO or the Decentraland Foundation.\n </Paragraph>\n </Section>\n\n <Section id=\"advertisements\">\n <SectionTitle>7. Advertisements</SectionTitle>\n <Paragraph>\n Any paid advertisement that uses the Decentraland name or logo is generally not allowed and must first be approved by the\n Decentraland Foundation or the DAO. To seek such approval, you can send an email to:{' '}\n <a href=\"mailto:legal@decentraland.org\">legal@decentraland.org</a> or through a DAO proposal.\n </Paragraph>\n </Section>\n\n <Section id=\"the-name-decentraland\">\n <SectionTitle>8. The Name "Decentraland"</SectionTitle>\n <Paragraph>\n Subject to these terms you can use the name "Decentraland" to promote your game(s) or wearables as long as it doesn't\n confuse consumers and as long as it is not used as the name of an app or any kind of merchandise or product. In other words, you can\n refer to "Decentraland" as the name of the platform, and you can use the name to show your interest in or affection for\n the Decentraland platform.\n </Paragraph>\n </Section>\n\n <Section id=\"the-logo-decentraland\">\n <SectionTitle>9. The Logo "Decentraland"</SectionTitle>\n <Paragraph>\n Subject to these terms, you are only allowed to use the logo design that is available at the following link{' '}\n <a href=\"https://decentraland.org/press/\" target=\"_blank\" rel=\"noopener noreferrer\">\n https://decentraland.org/press/\n </a>\n . The Decentraland Foundation or the DAO may alter the form of this design from time to time. You are allowed to resize the logo as\n long as you do not modify the proportions. But otherwise, you cannot modify the logo design in any way and must abide by these\n terms.\n </Paragraph>\n </Section>\n\n <Section id=\"additional-rules\">\n <SectionTitle>10. Additional Rules</SectionTitle>\n <Paragraph>\n THE USE OF DECENTRALAND LOGO AND NAME CANNOT BE ASSOCIATED WITH ANYTHING THAT VIOLATES THE RIGHTS OF OTHER THIRD PARTIES IP, CREATES\n BRAND CONFUSION, HAS HARMFUL OR OBJECTIONABLE ASPECTS OR DOES NOT COMPLY WITH APPLICABLE LAWS OR ANY OF DECENTRALAND GUIDELINES,\n TERMS OR RULES. THE DAO AND THE DECENTRALAND FOUNDATION HAVE THE RIGHT TO DECIDE (IN THEIR SOLE DISCRETION) WHETHER THE USE IS\n ACCEPTABLE.\n </Paragraph>\n <Paragraph>\n YOU MUST NOT USE THE DECENTRALAND NAME OR LOGO IN ANY MANNER THAT IS LIKELY TO HAVE AN ADVERSE EFFECT ON THE REPUTATION OF\n DECENTRALAND (AS THE DAO OR DECENTRALAND FOUNDATION MAY DETERMINE IN THEIR SOLE DISCRETION). YOU MAY NOT USE THE DECENTRALAND NAME\n OR LOGO IN ANY WAY THAT SUGGESTS THAT YOU ARE AFFILIATED WITH DECENTRALAND, THE DAO OR THE DECENTRALAND FOUNDATION, OR IN ANY WAY\n THAT SUGGESTS THAT DECENTRALAND, THE DAO OR THE DECENTRALAND FOUNDATION SPONSORS OR ENDORSES YOUR USAGE.\n </Paragraph>\n <Paragraph>\n These terms grant you permission to use the Decentraland trademarks only in the ways described above. The Decentraland Foundation or\n the DAO may withdraw or change this permission at any time for any reason.\n </Paragraph>\n <Paragraph>\n Other uses of the Decentraland logo and name require the express approval of the Decentraland Foundation or the DAO.\n </Paragraph>\n </Section>\n </LegalPageLayout>\n))\n\nBrandTerms.displayName = 'BrandTerms'\n\nexport { BrandTerms }\n"],"names":["TABLE_OF_CONTENTS","BrandTerms","memo","jsxs","LegalPageLayout","jsx","Paragraph","Section","SectionTitle"],"mappings":"yUAIA,MAAMA,EAAgC,CACpC,CAAE,GAAI,kBAAmB,MAAO,oBAAA,EAChC,CAAE,GAAI,0BAA2B,MAAO,4BAAA,EACxC,CAAE,GAAI,2BAA4B,MAAO,6CAAA,EACzC,CAAE,GAAI,sBAAuB,MAAO,0DAAA,EACpC,CAAE,GAAI,aAAc,MAAO,eAAA,EAC3B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AAA,sHAAA,CAEX,CAAA,CAAA,CACF,CAAA,EACF,CACD,EAEDL,EAAW,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as t,a as g,v as G,z as H,w as z,M as B,N,p as T,Z as R,$ as U,a0 as $,q as D,t as y,O as i,j as o,P as s,V as F,a1 as V,a2 as b,a3 as X,a4 as C,a5 as q,a6 as k,a7 as K,U as Q,a8 as Y,a9 as Z,aa as _}from"./index-
|
|
1
|
+
import{s as t,a as g,v as G,z as H,w as z,M as B,N,p as T,Z as R,$ as U,a0 as $,q as D,t as y,O as i,j as o,P as s,V as F,a1 as V,a2 as b,a3 as X,a4 as C,a5 as q,a6 as k,a7 as K,U as Q,a8 as Y,a9 as Z,aa as _}from"./index-DaRevScO.js";import{r as p}from"./vendor-router-D_36sTKu.js";import{A as J}from"./AnimatedBackground-B-L76Zza.js";import"./vendor-crypto-uuuQA3i5.js";import"./vendor-schemas-DJzTSxpO.js";import"./vendor-sentry-BSvWNK4f.js";import"./vendor-ua-D7qqAxdq.js";import"./vendor-intl-D2lXWsDp.js";const oo=t(g)(({theme:e})=>({position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",width:"100%",height:800,overflow:"hidden",[e.breakpoints.down("sm")]:{height:480}})),eo=t("img")(({theme:e})=>({position:"absolute",top:"calc(35% - 20px)",left:"50%",transform:"translateX(-50%)",width:"auto",pointerEvents:"none",[e.breakpoints.down("sm")]:{position:"absolute",top:"auto",bottom:-50,left:"50%",transform:"translateX(-50%)",width:"auto",height:"65%",minWidth:"auto",maxWidth:"none"}})),no=t(g)(({theme:e})=>({position:"relative",zIndex:1,display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(3),padding:e.spacing(10,8),[e.breakpoints.down("sm")]:{width:"100%",maxWidth:393,padding:e.spacing(6,2),gap:e.spacing(2)}})),to=t(G)(({theme:e})=>({color:H.white,fontWeight:600,fontSize:48,textAlign:"center",letterSpacing:-.5,[e.breakpoints.down("sm")]:{fontSize:32}})),ao=t(g)({display:"flex",alignItems:"center",gap:16,flexWrap:"wrap",justifyContent:"center",position:"relative",zIndex:1}),so=t("span")({display:"flex",alignItems:"center",gap:12,color:"#fff",fontSize:16,fontWeight:400,lineHeight:1.5,whiteSpace:"nowrap",minWidth:210}),lo=t("span")({width:1,height:20,backgroundColor:"rgba(255, 255, 255, 0.3)"}),io=t("span")(({theme:e})=>({display:"flex",gap:8,alignItems:"center","& a":{display:"flex",lineHeight:0},[e.breakpoints.down("sm")]:{"& a":{pointerEvents:"none",color:"inherit",textDecoration:"none"}}})),r=t("img")({width:24,height:24,filter:"brightness(0) invert(1)"});t("img")({width:32,height:32,filter:"brightness(0) invert(1)"});let v=null;const ro=p.memo(()=>{const e=z(),h=B(),{isDownloadModalOpen:O,closeDownloadModal:S,downloadModalProps:A,totalDownloads:I}=N(),[,n]=T(),[m,w]=R(async()=>U.get().getTotalDownloads(),[]),d=!w.loading&&w.loaded&&m?m:null;d&&(v=_(d));const f=$(d),M=f?_(f):v??"+400K",l=n?.os.name,u=!!n?.mobile,W=u&&l==="Android",[x,c]=p.useState(null),E=()=>W?o.jsx(b,{href:X,target:"_blank",rel:"noopener noreferrer",children:o.jsx(C,{src:q,alt:"Get it on Google Play"})}):o.jsx(b,{href:k.appStore,target:"_blank",rel:"noopener noreferrer",children:o.jsx(C,{src:s("/download-on-the-app-store.svg"),alt:"Download on the App Store"})}),L=p.useCallback(a=>{h(a),n&&(window.location.href=`/download_success?os=${n.os.name}`)},[h,n]),j=n?{[i.WINDOWS]:y,[i.MACOS]:D}[n.os.name]:null,P=()=>o.jsxs(o.Fragment,{children:[o.jsxs("div",{style:{display:"flex",gap:24,justifyContent:"center"},children:[o.jsxs(K,{href:n?`/download_success?os=${n.os.name}`:"/download","data-place":Q.LANDING_HERO,"data-event":"click",onClick:L,children:[e("page.download.download_for_short"),j?o.jsx("img",{src:j,alt:n?.os.name??"",width:32,height:32,style:{filter:"brightness(0) invert(1)"}}):o.jsx("span",{style:{display:"block",width:32,height:32,flexShrink:0}})]}),o.jsxs(Y,{href:k.epic,target:"_blank",rel:"noopener noreferrer",children:[e("page.download.download_on"),o.jsx("img",{src:s("/epic_icon.svg"),alt:"Epic Games",width:32,height:32,style:{filter:"brightness(0)"}})]})]}),o.jsxs(ao,{children:[o.jsxs(so,{children:[o.jsx(Z,{})," ",e("page.download.total_downloads",{downloads:M})]}),o.jsx(lo,{}),o.jsxs(io,{children:[l===i.MACOS&&o.jsx("a",{href:"/download_success?os=Windows",children:o.jsx(r,{src:y,alt:"Windows"})}),l===i.WINDOWS&&o.jsx("a",{href:"/download_success?os=macOS",children:o.jsx(r,{src:D,alt:"macOS"})}),!l&&o.jsx("span",{style:{display:"inline-block",width:24,height:24}}),o.jsx("a",{href:"#",onClick:a=>{a.preventDefault(),c("ios")},children:o.jsx(r,{src:s("/ios-logo.svg"),alt:"iOS"})}),o.jsx("a",{href:"#",onClick:a=>{a.preventDefault(),c("android")},children:o.jsx(r,{src:s("/google_play_icon.svg"),alt:"Android"})})]})]})]});return o.jsxs(oo,{children:[o.jsx(J,{variant:"absolute"}),o.jsxs(no,{children:[o.jsx(to,{variant:"h2",children:e("page.home.come_hang_out.title")}),u?E():P()]}),o.jsx(eo,{src:s("/come_hang_out_background.webp"),alt:"","aria-hidden":!0,width:1920,height:840,loading:"lazy"}),o.jsx(F,{open:O,onClose:S,...A}),x&&o.jsx(V,{open:!0,onClose:()=>c(null),os:x,i18n:{totalDownloads:`Total Downloads: ${I}`}})]})});ro.displayName="ComeHangOut";export{ro as ComeHangOut};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-DbaTk9pY.js","sources":["../../src/components/Home/ComeHangOut/ComeHangOut.styled.ts","../../src/components/Home/ComeHangOut/ComeHangOut.tsx"],"sourcesContent":["import { Box, Typography, dclColors, styled } from 'decentraland-ui2'\n\nconst ComeHangOutContainer = styled(Box)(({ theme }) => ({\n position: 'relative',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'flex-start',\n width: '100%',\n height: 800,\n overflow: 'hidden',\n [theme.breakpoints.down('sm')]: {\n height: 480\n }\n}))\n\nconst AvatarsImage = styled('img')(({ theme }) => ({\n position: 'absolute',\n top: 'calc(35% - 20px)',\n left: '50%',\n transform: 'translateX(-50%)',\n width: 'auto',\n pointerEvents: 'none',\n [theme.breakpoints.down('sm')]: {\n position: 'absolute',\n top: 'auto',\n bottom: -50,\n left: '50%',\n transform: 'translateX(-50%)',\n width: 'auto',\n height: '65%',\n minWidth: 'auto',\n maxWidth: 'none'\n }\n}))\n\nconst Content = styled(Box)(({ theme }) => ({\n position: 'relative',\n zIndex: 1,\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gap: theme.spacing(3),\n padding: theme.spacing(10, 8),\n [theme.breakpoints.down('sm')]: {\n width: '100%',\n maxWidth: 393,\n padding: theme.spacing(6, 2),\n gap: theme.spacing(2)\n }\n}))\n\nconst Title = styled(Typography)(({ theme }) => ({\n color: dclColors.neutral.white,\n fontWeight: 600,\n fontSize: 48,\n textAlign: 'center',\n letterSpacing: -0.5,\n [theme.breakpoints.down('sm')]: {\n fontSize: 32\n }\n}))\n\nconst DownloadInfo = styled(Box)({\n display: 'flex',\n alignItems: 'center',\n gap: 16,\n flexWrap: 'wrap',\n justifyContent: 'center',\n position: 'relative',\n zIndex: 1\n})\n\nconst DownloadCounts = styled('span')({\n display: 'flex',\n alignItems: 'center',\n gap: 12,\n color: '#fff',\n fontSize: 16,\n fontWeight: 400,\n lineHeight: 1.5,\n whiteSpace: 'nowrap',\n minWidth: 210\n})\n\nconst DownloadSeparator = styled('span')({\n width: 1,\n height: 20,\n backgroundColor: 'rgba(255, 255, 255, 0.3)'\n})\n\nconst PlatformIcons = styled('span')(({ theme }) => ({\n display: 'flex',\n gap: 8,\n alignItems: 'center',\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '& a': {\n display: 'flex',\n lineHeight: 0\n },\n [theme.breakpoints.down('sm')]: {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '& a': {\n pointerEvents: 'none',\n color: 'inherit',\n textDecoration: 'none'\n }\n }\n}))\n\nconst PlatformIcon = styled('img')({\n width: 24,\n height: 24,\n filter: 'brightness(0) invert(1)'\n})\n\nconst OsIcon = styled('img')({\n width: 32,\n height: 32,\n filter: 'brightness(0) invert(1)'\n})\n\nexport {\n AvatarsImage,\n ComeHangOutContainer,\n Content,\n DownloadCounts,\n DownloadInfo,\n DownloadSeparator,\n OsIcon,\n PlatformIcon,\n PlatformIcons,\n Title\n}\nexport { HangOutButton } from '../shared/HangOutButton.styled'\nexport {\n ComingSoonIcon,\n ComingSoonRow,\n ComingSoonText,\n GooglePlayButton,\n GooglePlayImage,\n MobileSubtitle,\n SendLinkButton\n} from '../shared/MobileCTA.styled'\n","import { memo, useCallback, useState } from 'react'\nimport { useAdvancedUserAgentData, useAsyncMemo } from '@dcl/hooks'\nimport { AnimatedBackground, DownloadModal, DownloadQRModal } from 'decentraland-ui2'\nimport { useFormatMessage } from '../../../hooks/adapters/useFormatMessage'\nimport { useTrackClick } from '../../../hooks/adapters/useTrackLinkContext'\nimport { useAnimatedCounter } from '../../../hooks/useAnimatedCounter'\nimport { useHangOutAction } from '../../../hooks/useHangOutAction'\nimport appleLogo from '../../../images/apple-logo.svg'\nimport microsoftLogo from '../../../images/microsoft-logo.svg'\nimport { DOWNLOAD_URLS } from '../../../modules/downloadConstants'\nimport { ExplorerDownloads } from '../../../modules/explorerDownloads'\nimport { formatToShorthand } from '../../../modules/number'\nimport { SectionViewedTrack } from '../../../modules/segment'\nimport { OperativeSystem } from '../../../types/download.types'\nimport { assetUrl } from '../../../utils/assetUrl'\nimport { VerifiedIcon } from '../../Icon/VerifiedIcon'\nimport { DownloadButton, EpicButton } from '../Hero/Hero.styled'\nimport { GOOGLE_PLAY_MOBILE_URL, googlePlayBadge } from '../shared/googlePlay'\nimport {\n AvatarsImage,\n ComeHangOutContainer,\n Content,\n DownloadCounts,\n DownloadInfo,\n DownloadSeparator,\n GooglePlayButton,\n GooglePlayImage,\n PlatformIcon,\n PlatformIcons,\n Title\n} from './ComeHangOut.styled'\n\nlet cachedDownloadCounts: string | null = null\n\nconst ComeHangOut = memo(() => {\n const l = useFormatMessage()\n const onClickHandle = useTrackClick()\n const { isDownloadModalOpen, closeDownloadModal, downloadModalProps, totalDownloads } = useHangOutAction()\n const [, userAgentData] = useAdvancedUserAgentData()\n const [rawDownloads, rawDownloadsStatus] = useAsyncMemo(async () => ExplorerDownloads.get().getTotalDownloads(), [])\n\n const targetDownloads = !rawDownloadsStatus.loading && rawDownloadsStatus.loaded && rawDownloads ? rawDownloads : null\n if (targetDownloads) cachedDownloadCounts = formatToShorthand(targetDownloads)\n const animatedDownloads = useAnimatedCounter(targetDownloads)\n const downloadCountsFormatted = animatedDownloads ? formatToShorthand(animatedDownloads) : cachedDownloadCounts ?? '+400K'\n\n const currentOs = userAgentData?.os.name\n const isMobile = !!userAgentData?.mobile\n const isMobileAndroid = isMobile && currentOs === 'Android'\n\n // Mobile download modal for platform icon clicks\n const [mobileModalOs, setMobileModalOs] = useState<'ios' | 'android' | null>(null)\n\n const renderMobileContent = () => {\n if (isMobileAndroid) {\n return (\n <GooglePlayButton href={GOOGLE_PLAY_MOBILE_URL} target=\"_blank\" rel=\"noopener noreferrer\">\n <GooglePlayImage src={googlePlayBadge} alt=\"Get it on Google Play\" />\n </GooglePlayButton>\n )\n }\n\n return (\n <GooglePlayButton href={DOWNLOAD_URLS.appStore} target=\"_blank\" rel=\"noopener noreferrer\">\n <GooglePlayImage src={assetUrl('/download-on-the-app-store.svg')} alt=\"Download on the App Store\" />\n </GooglePlayButton>\n )\n }\n\n const handleDownloadClick = useCallback(\n (e: React.MouseEvent<HTMLElement>) => {\n onClickHandle(e)\n if (userAgentData) {\n window.location.href = `/download_success?os=${userAgentData.os.name}`\n }\n },\n [onClickHandle, userAgentData]\n )\n\n const osImage = userAgentData\n ? { [OperativeSystem.WINDOWS]: microsoftLogo, [OperativeSystem.MACOS]: appleLogo }[userAgentData.os.name]\n : null\n\n const renderDesktopContent = () => (\n <>\n <div style={{ display: 'flex', gap: 24, justifyContent: 'center' }}>\n <DownloadButton\n href={userAgentData ? `/download_success?os=${userAgentData.os.name}` : '/download'}\n data-place={SectionViewedTrack.LANDING_HERO}\n data-event=\"click\"\n onClick={handleDownloadClick}\n >\n {l('page.download.download_for_short')}\n {osImage ? (\n <img src={osImage} alt={userAgentData?.os.name ?? ''} width={32} height={32} style={{ filter: 'brightness(0) invert(1)' }} />\n ) : (\n <span style={{ display: 'block', width: 32, height: 32, flexShrink: 0 }} />\n )}\n </DownloadButton>\n <EpicButton href={DOWNLOAD_URLS.epic} target=\"_blank\" rel=\"noopener noreferrer\">\n {l('page.download.download_on')}\n <img src={assetUrl('/epic_icon.svg')} alt=\"Epic Games\" width={32} height={32} style={{ filter: 'brightness(0)' }} />\n </EpicButton>\n </div>\n <DownloadInfo>\n <DownloadCounts>\n <VerifiedIcon /> {l('page.download.total_downloads', { downloads: downloadCountsFormatted })}\n </DownloadCounts>\n <DownloadSeparator />\n <PlatformIcons>\n {currentOs === OperativeSystem.MACOS && (\n <a href=\"/download_success?os=Windows\">\n <PlatformIcon src={microsoftLogo} alt=\"Windows\" />\n </a>\n )}\n {currentOs === OperativeSystem.WINDOWS && (\n <a href=\"/download_success?os=macOS\">\n <PlatformIcon src={appleLogo} alt=\"macOS\" />\n </a>\n )}\n {!currentOs && <span style={{ display: 'inline-block', width: 24, height: 24 }} />}\n <a\n href=\"#\"\n onClick={e => {\n e.preventDefault()\n setMobileModalOs('ios')\n }}\n >\n <PlatformIcon src={assetUrl('/ios-logo.svg')} alt=\"iOS\" />\n </a>\n <a\n href=\"#\"\n onClick={e => {\n e.preventDefault()\n setMobileModalOs('android')\n }}\n >\n <PlatformIcon src={assetUrl('/google_play_icon.svg')} alt=\"Android\" />\n </a>\n </PlatformIcons>\n </DownloadInfo>\n </>\n )\n\n return (\n <ComeHangOutContainer>\n <AnimatedBackground variant=\"absolute\" />\n <Content>\n <Title variant=\"h2\">{l('page.home.come_hang_out.title')}</Title>\n {isMobile ? renderMobileContent() : renderDesktopContent()}\n </Content>\n <AvatarsImage src={assetUrl('/come_hang_out_background.webp')} alt=\"\" aria-hidden width={1920} height={840} loading=\"lazy\" />\n <DownloadModal open={isDownloadModalOpen} onClose={closeDownloadModal} {...downloadModalProps} />\n {mobileModalOs && (\n <DownloadQRModal\n open\n onClose={() => setMobileModalOs(null)}\n os={mobileModalOs}\n i18n={{ totalDownloads: `Total Downloads: ${totalDownloads}` }}\n />\n )}\n </ComeHangOutContainer>\n )\n})\n\nComeHangOut.displayName = 'ComeHangOut'\n\nexport { ComeHangOut }\n"],"names":["ComeHangOutContainer","styled","Box","theme","AvatarsImage","Content","Title","Typography","dclColors.neutral","DownloadInfo","DownloadCounts","DownloadSeparator","PlatformIcons","PlatformIcon","cachedDownloadCounts","ComeHangOut","memo","l","useFormatMessage","onClickHandle","useTrackClick","isDownloadModalOpen","closeDownloadModal","downloadModalProps","totalDownloads","useHangOutAction","userAgentData","useAdvancedUserAgentData","rawDownloads","rawDownloadsStatus","useAsyncMemo","ExplorerDownloads","targetDownloads","formatToShorthand","animatedDownloads","useAnimatedCounter","downloadCountsFormatted","currentOs","isMobile","isMobileAndroid","mobileModalOs","setMobileModalOs","useState","renderMobileContent","jsx","GooglePlayButton","GOOGLE_PLAY_MOBILE_URL","GooglePlayImage","googlePlayBadge","DOWNLOAD_URLS","assetUrl","handleDownloadClick","useCallback","e","osImage","OperativeSystem","microsoftLogo","appleLogo","renderDesktopContent","jsxs","Fragment","DownloadButton","SectionViewedTrack","EpicButton","VerifiedIcon","AnimatedBackground","DownloadModal","DownloadQRModal"],"mappings":"+fAEA,MAAMA,GAAuBC,EAAOC,CAAG,EAAE,CAAC,CAAE,MAAAC,MAAa,CACvD,SAAU,WACV,QAAS,OACT,cAAe,SACf,WAAY,SACZ,eAAgB,aAChB,MAAO,OACP,OAAQ,IACR,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A,CAAM,QAAQ,KAAM,SAAAW,EAAE,+BAA+B,EAAE,EACvDqB,EAAWK,EAAA,EAAwBe,EAAA,CAAqB,EAC3D,EACAd,EAAAA,IAACxC,GAAA,CAAa,IAAK8C,EAAS,gCAAgC,EAAG,IAAI,GAAG,cAAW,GAAC,MAAO,KAAM,OAAQ,IAAK,QAAQ,OAAO,QAC1HgB,EAAA,CAAc,KAAM7C,EAAqB,QAASC,EAAqB,GAAGC,EAAoB,EAC9FiB,GACCI,EAAAA,IAACuB,EAAA,CACC,KAAI,GACJ,QAAS,IAAM1B,EAAiB,IAAI,EACpC,GAAID,EACJ,KAAM,CAAE,eAAgB,oBAAoBhB,CAAc,EAAA,CAAG,CAAA,CAC/D,EAEJ,CAEJ,CAAC,EAEDT,GAAY,YAAc"}
|
|
1
|
+
{"version":3,"file":"index-CZS6DsWa.js","sources":["../../src/components/Home/ComeHangOut/ComeHangOut.styled.ts","../../src/components/Home/ComeHangOut/ComeHangOut.tsx"],"sourcesContent":["import { Box, Typography, dclColors, styled } from 'decentraland-ui2'\n\nconst ComeHangOutContainer = styled(Box)(({ theme }) => ({\n position: 'relative',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'flex-start',\n width: '100%',\n height: 800,\n overflow: 'hidden',\n [theme.breakpoints.down('sm')]: {\n height: 480\n }\n}))\n\nconst AvatarsImage = styled('img')(({ theme }) => ({\n position: 'absolute',\n top: 'calc(35% - 20px)',\n left: '50%',\n transform: 'translateX(-50%)',\n width: 'auto',\n pointerEvents: 'none',\n [theme.breakpoints.down('sm')]: {\n position: 'absolute',\n top: 'auto',\n bottom: -50,\n left: '50%',\n transform: 'translateX(-50%)',\n width: 'auto',\n height: '65%',\n minWidth: 'auto',\n maxWidth: 'none'\n }\n}))\n\nconst Content = styled(Box)(({ theme }) => ({\n position: 'relative',\n zIndex: 1,\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gap: theme.spacing(3),\n padding: theme.spacing(10, 8),\n [theme.breakpoints.down('sm')]: {\n width: '100%',\n maxWidth: 393,\n padding: theme.spacing(6, 2),\n gap: theme.spacing(2)\n }\n}))\n\nconst Title = styled(Typography)(({ theme }) => ({\n color: dclColors.neutral.white,\n fontWeight: 600,\n fontSize: 48,\n textAlign: 'center',\n letterSpacing: -0.5,\n [theme.breakpoints.down('sm')]: {\n fontSize: 32\n }\n}))\n\nconst DownloadInfo = styled(Box)({\n display: 'flex',\n alignItems: 'center',\n gap: 16,\n flexWrap: 'wrap',\n justifyContent: 'center',\n position: 'relative',\n zIndex: 1\n})\n\nconst DownloadCounts = styled('span')({\n display: 'flex',\n alignItems: 'center',\n gap: 12,\n color: '#fff',\n fontSize: 16,\n fontWeight: 400,\n lineHeight: 1.5,\n whiteSpace: 'nowrap',\n minWidth: 210\n})\n\nconst DownloadSeparator = styled('span')({\n width: 1,\n height: 20,\n backgroundColor: 'rgba(255, 255, 255, 0.3)'\n})\n\nconst PlatformIcons = styled('span')(({ theme }) => ({\n display: 'flex',\n gap: 8,\n alignItems: 'center',\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '& a': {\n display: 'flex',\n lineHeight: 0\n },\n [theme.breakpoints.down('sm')]: {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '& a': {\n pointerEvents: 'none',\n color: 'inherit',\n textDecoration: 'none'\n }\n }\n}))\n\nconst PlatformIcon = styled('img')({\n width: 24,\n height: 24,\n filter: 'brightness(0) invert(1)'\n})\n\nconst OsIcon = styled('img')({\n width: 32,\n height: 32,\n filter: 'brightness(0) invert(1)'\n})\n\nexport {\n AvatarsImage,\n ComeHangOutContainer,\n Content,\n DownloadCounts,\n DownloadInfo,\n DownloadSeparator,\n OsIcon,\n PlatformIcon,\n PlatformIcons,\n Title\n}\nexport { HangOutButton } from '../shared/HangOutButton.styled'\nexport {\n ComingSoonIcon,\n ComingSoonRow,\n ComingSoonText,\n GooglePlayButton,\n GooglePlayImage,\n MobileSubtitle,\n SendLinkButton\n} from '../shared/MobileCTA.styled'\n","import { memo, useCallback, useState } from 'react'\nimport { useAdvancedUserAgentData, useAsyncMemo } from '@dcl/hooks'\nimport { AnimatedBackground, DownloadModal, DownloadQRModal } from 'decentraland-ui2'\nimport { useFormatMessage } from '../../../hooks/adapters/useFormatMessage'\nimport { useTrackClick } from '../../../hooks/adapters/useTrackLinkContext'\nimport { useAnimatedCounter } from '../../../hooks/useAnimatedCounter'\nimport { useHangOutAction } from '../../../hooks/useHangOutAction'\nimport appleLogo from '../../../images/apple-logo.svg'\nimport microsoftLogo from '../../../images/microsoft-logo.svg'\nimport { DOWNLOAD_URLS } from '../../../modules/downloadConstants'\nimport { ExplorerDownloads } from '../../../modules/explorerDownloads'\nimport { formatToShorthand } from '../../../modules/number'\nimport { SectionViewedTrack } from '../../../modules/segment'\nimport { OperativeSystem } from '../../../types/download.types'\nimport { assetUrl } from '../../../utils/assetUrl'\nimport { VerifiedIcon } from '../../Icon/VerifiedIcon'\nimport { DownloadButton, EpicButton } from '../Hero/Hero.styled'\nimport { GOOGLE_PLAY_MOBILE_URL, googlePlayBadge } from '../shared/googlePlay'\nimport {\n AvatarsImage,\n ComeHangOutContainer,\n Content,\n DownloadCounts,\n DownloadInfo,\n DownloadSeparator,\n GooglePlayButton,\n GooglePlayImage,\n PlatformIcon,\n PlatformIcons,\n Title\n} from './ComeHangOut.styled'\n\nlet cachedDownloadCounts: string | null = null\n\nconst ComeHangOut = memo(() => {\n const l = useFormatMessage()\n const onClickHandle = useTrackClick()\n const { isDownloadModalOpen, closeDownloadModal, downloadModalProps, totalDownloads } = useHangOutAction()\n const [, userAgentData] = useAdvancedUserAgentData()\n const [rawDownloads, rawDownloadsStatus] = useAsyncMemo(async () => ExplorerDownloads.get().getTotalDownloads(), [])\n\n const targetDownloads = !rawDownloadsStatus.loading && rawDownloadsStatus.loaded && rawDownloads ? rawDownloads : null\n if (targetDownloads) cachedDownloadCounts = formatToShorthand(targetDownloads)\n const animatedDownloads = useAnimatedCounter(targetDownloads)\n const downloadCountsFormatted = animatedDownloads ? formatToShorthand(animatedDownloads) : cachedDownloadCounts ?? '+400K'\n\n const currentOs = userAgentData?.os.name\n const isMobile = !!userAgentData?.mobile\n const isMobileAndroid = isMobile && currentOs === 'Android'\n\n // Mobile download modal for platform icon clicks\n const [mobileModalOs, setMobileModalOs] = useState<'ios' | 'android' | null>(null)\n\n const renderMobileContent = () => {\n if (isMobileAndroid) {\n return (\n <GooglePlayButton href={GOOGLE_PLAY_MOBILE_URL} target=\"_blank\" rel=\"noopener noreferrer\">\n <GooglePlayImage src={googlePlayBadge} alt=\"Get it on Google Play\" />\n </GooglePlayButton>\n )\n }\n\n return (\n <GooglePlayButton href={DOWNLOAD_URLS.appStore} target=\"_blank\" rel=\"noopener noreferrer\">\n <GooglePlayImage src={assetUrl('/download-on-the-app-store.svg')} alt=\"Download on the App Store\" />\n </GooglePlayButton>\n )\n }\n\n const handleDownloadClick = useCallback(\n (e: React.MouseEvent<HTMLElement>) => {\n onClickHandle(e)\n if (userAgentData) {\n window.location.href = `/download_success?os=${userAgentData.os.name}`\n }\n },\n [onClickHandle, userAgentData]\n )\n\n const osImage = userAgentData\n ? { [OperativeSystem.WINDOWS]: microsoftLogo, [OperativeSystem.MACOS]: appleLogo }[userAgentData.os.name]\n : null\n\n const renderDesktopContent = () => (\n <>\n <div style={{ display: 'flex', gap: 24, justifyContent: 'center' }}>\n <DownloadButton\n href={userAgentData ? `/download_success?os=${userAgentData.os.name}` : '/download'}\n data-place={SectionViewedTrack.LANDING_HERO}\n data-event=\"click\"\n onClick={handleDownloadClick}\n >\n {l('page.download.download_for_short')}\n {osImage ? (\n <img src={osImage} alt={userAgentData?.os.name ?? ''} width={32} height={32} style={{ filter: 'brightness(0) invert(1)' }} />\n ) : (\n <span style={{ display: 'block', width: 32, height: 32, flexShrink: 0 }} />\n )}\n </DownloadButton>\n <EpicButton href={DOWNLOAD_URLS.epic} target=\"_blank\" rel=\"noopener noreferrer\">\n {l('page.download.download_on')}\n <img src={assetUrl('/epic_icon.svg')} alt=\"Epic Games\" width={32} height={32} style={{ filter: 'brightness(0)' }} />\n </EpicButton>\n </div>\n <DownloadInfo>\n <DownloadCounts>\n <VerifiedIcon /> {l('page.download.total_downloads', { downloads: downloadCountsFormatted })}\n </DownloadCounts>\n <DownloadSeparator />\n <PlatformIcons>\n {currentOs === OperativeSystem.MACOS && (\n <a href=\"/download_success?os=Windows\">\n <PlatformIcon src={microsoftLogo} alt=\"Windows\" />\n </a>\n )}\n {currentOs === OperativeSystem.WINDOWS && (\n <a href=\"/download_success?os=macOS\">\n <PlatformIcon src={appleLogo} alt=\"macOS\" />\n </a>\n )}\n {!currentOs && <span style={{ display: 'inline-block', width: 24, height: 24 }} />}\n <a\n href=\"#\"\n onClick={e => {\n e.preventDefault()\n setMobileModalOs('ios')\n }}\n >\n <PlatformIcon src={assetUrl('/ios-logo.svg')} alt=\"iOS\" />\n </a>\n <a\n href=\"#\"\n onClick={e => {\n e.preventDefault()\n setMobileModalOs('android')\n }}\n >\n <PlatformIcon src={assetUrl('/google_play_icon.svg')} alt=\"Android\" />\n </a>\n </PlatformIcons>\n </DownloadInfo>\n </>\n )\n\n return (\n <ComeHangOutContainer>\n <AnimatedBackground variant=\"absolute\" />\n <Content>\n <Title variant=\"h2\">{l('page.home.come_hang_out.title')}</Title>\n {isMobile ? renderMobileContent() : renderDesktopContent()}\n </Content>\n <AvatarsImage src={assetUrl('/come_hang_out_background.webp')} alt=\"\" aria-hidden width={1920} height={840} loading=\"lazy\" />\n <DownloadModal open={isDownloadModalOpen} onClose={closeDownloadModal} {...downloadModalProps} />\n {mobileModalOs && (\n <DownloadQRModal\n open\n onClose={() => setMobileModalOs(null)}\n os={mobileModalOs}\n i18n={{ totalDownloads: `Total Downloads: ${totalDownloads}` }}\n />\n )}\n </ComeHangOutContainer>\n )\n})\n\nComeHangOut.displayName = 'ComeHangOut'\n\nexport { ComeHangOut }\n"],"names":["ComeHangOutContainer","styled","Box","theme","AvatarsImage","Content","Title","Typography","dclColors.neutral","DownloadInfo","DownloadCounts","DownloadSeparator","PlatformIcons","PlatformIcon","cachedDownloadCounts","ComeHangOut","memo","l","useFormatMessage","onClickHandle","useTrackClick","isDownloadModalOpen","closeDownloadModal","downloadModalProps","totalDownloads","useHangOutAction","userAgentData","useAdvancedUserAgentData","rawDownloads","rawDownloadsStatus","useAsyncMemo","ExplorerDownloads","targetDownloads","formatToShorthand","animatedDownloads","useAnimatedCounter","downloadCountsFormatted","currentOs","isMobile","isMobileAndroid","mobileModalOs","setMobileModalOs","useState","renderMobileContent","jsx","GooglePlayButton","GOOGLE_PLAY_MOBILE_URL","GooglePlayImage","googlePlayBadge","DOWNLOAD_URLS","assetUrl","handleDownloadClick","useCallback","e","osImage","OperativeSystem","microsoftLogo","appleLogo","renderDesktopContent","jsxs","Fragment","DownloadButton","SectionViewedTrack","EpicButton","VerifiedIcon","AnimatedBackground","DownloadModal","DownloadQRModal"],"mappings":"+fAEA,MAAMA,GAAuBC,EAAOC,CAAG,EAAE,CAAC,CAAE,MAAAC,MAAa,CACvD,SAAU,WACV,QAAS,OACT,cAAe,SACf,WAAY,SACZ,eAAgB,aAChB,MAAO,OACP,OAAQ,IACR,SAAU,SACV,CAACA,EAAM,YAAY,KAAK,IAAI,CAAC,EAAG,CAC9B,OAAQ,GAAA,CAEZ,EAAE,EAEIC,GAAeH,EAAO,KAAK,EAAE,CAAC,CAAE,MAAAE,MAAa,CACjD,SAAU,WACV,IAAK,mBACL,KAAM,MACN,UAAW,mBACX,MAAO,OACP,cAAe,OACf,CAACA,EAAM,YAAY,KAAK,IAAI,CAAC,EAAG,CAC9B,SAAU,WACV,IAAK,OACL,OAAQ,IACR,KAAM,MACN,UAAW,mBACX,MAAO,OACP,OAAQ,MACR,SAAU,OACV,SAAU,MAAA,CAEd,EAAE,EAEIE,GAAUJ,EAAOC,CAAG,EAAE,CAAC,CAAE,MAAAC,MAAa,CAC1C,SAAU,WACV,OAAQ,EACR,QAAS,OACT,cAAe,SACf,WAA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