PageSourceSearch

https://aleo.org/component---src-pages-events-js-1c148736d3d9f2181baa.js

js aleo.org collected 2026-10-03 19:31:09 UTC 5,569 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkweb_aleo_org=self.webpackChunkweb_aleo_org||[]).push([[6],{1422:function(e,t,a){a.r(t),a.d(t,{Head:function(){return A}});var n=a(4506),s=a(9401),l=a(3068),r=a(4839),c=a(2507),i=a(5588),o=a(6540),d=a(4011),m=a(3645);const v="Register",u="View",E="Load More";t.default=e=>{let{data:t}=e;const c=t.sanityEvents,A=t.allSanityEvent,{0:p,1:_}=(0,o.useState)([]),{0:g,1:h}=(0,o.useState)([]),{0:f,1:b}=(0,o.useState)([]),{0:w,1:N}=(0,o.useState)(!1),{0:k,1:y}=(0,o.useState)(!1),{0:S,1:q}=(0,o.useState)(!1),D=(0,o.useRef)(),I=e=>{e[0].isIntersecting&&y(!0)};(0,o.useEffect)(()=>{const e=new Date,t=A.edges.reduce((t,a)=>{var n,s;const l=null==a||null===(n=a.node)||void 0===n?void 0:n.date;if(!l)return t;const r=e=>e?new Date(e.replace(/\s+/,"�").split("�")[1]):null,c=r(l),i=r(null==a||null===(s=a.node)||void 0===s?void 0:s.endDate);return(i&&i>c?i:c)<e?t.pastEventsArray.push(a):t.upcomingEventsArray.push(a),t},{pastEventsArray:[],upcomingEventsArray:[]}),{pastEventsArray:a,upcomingEventsArray:n}=t;_(n.reverse()),h(a),b(a.slice(0,10)),q(a.length>10);const s=new IntersectionObserver(I,{root:null,rootMargin:"20px",threshold:1});D.current&&s.observe(D.current)},[w,A.edges]),(0,o.useEffect)(()=>{if(k&&S){const e=f.length,t=e<g.length?g.slice(e,e+10):[];b([].concat((0,n.A)(f),(0,n.A)(t))),y(!1)}},[w,k,S]),(0,o.useEffect)(()=>{const e=f.length<g.length;q(e)},[f,g.length]);const X=(e,t)=>{const{date:a,dateFormat:n,endDate:l,link:r,title:c,location:i,description:v}=e.node||{},u=n||a||"",{dayName:E,dayNumber:A,monthYear:p}=(0,m.y0)(u),_=[i,(0,m.Ho)(u,l||null)].filter(Boolean).join(", ");return o.createElement("li",{key:c+u,className:"events__card-wrapper"},o.createElement("a",{className:"events__card",onClick:()=>s.Ay.track("event_clicked",{event:c}),target:"_blank",rel:"noreferrer",href:r},o.createElement("div",{className:"events__date"},o.createElement("span",{className:"events__day"},E),o.createElement("span",{className:"events__number"},A),o.createElement("span",{className:"events__year"},p),o.createElement("div",{className:"events__register-label events__register-label--mobile"},o.createElement("span",null,t),o.createElement(d.A,null))),o.createElement("div",{className:"events__details"},o.createElement("div",{className:"events__header"},o.createElement("h3",{className:"events__event-title"},c),o.createElement("div",{className:"events__register-label events__register-label--desktop"},o.createElement("span",null,t),o.createElement(d.A,null))),o.createElement("h4",{className:"events__location"},_),v&&Array.isArray(v)&&v.length>0&&o.createElement("p",{className:"events__description"},(0,m.P)(v)))))};return o.createElement(l.A,{pageName:"events"},o.createElement("div",{className:"events"},o.createElement(i.S,{src:"../assets/images/how-aleo-works-timeline-bg.webp",alt:"Abstract illustration",quality:90,placeholder:"blurred",loading:"eager",fetchPriority:"high",__imageData:a(6054)}),o.createElement("div",{className:"events__container"},o.createElement("div",{className:"events__hero"},o.createElement("div",{className:"events__section-header on-dark"},o.createElement(r.X,{tag:"h1",data:{title:c.title}}))),p&&p.length>0&&o.createElement("section",{className:"events__section"},o.createElement("div",{className:"events__section-header on-dark"},o.createElement(r.X,{data:{label:"Be in touch",title:"Upcoming events"}})),o.createElement("ul",{className:"events__list"},p.map(e=>X(e,v)))),f&&f.length>0&&o.createElement("section",{className:"events__section"},o.createElement("div",{className:"events__section-header on-dark"},o.createElement(r.X,{data:{title:"Past Events"}})),o.createElement("ul",{className:"events__list"},f.map(e=>X(e,u))),w?o.createElement("div",{ref:D}):o.createElement("button",{className:"events__load-more-button",onClick:()=>N(!0)},E)))))};const A=()=>o.createElement(c.G,{title:"Events and Meetups | Aleo",description:"Discover exciting events and meetups in the field of cryptography. Aleo offers a platform to connect with like-minded individuals and stay ahead in the industry"})},4839:function(e,t,a){a.d(t,{X:function(){return r}});var n=a(6540),s=a(5559),l=a(3645);const r=e=>{let{data:t={},tag:a="h2"}=e;const r=a,c=(0,s.A)(),{label:i="",title:o="",description:d=""}=t||{};return n.createElement(n.Fragment,null,i&&n.createElement("span",null,(0,l.e4)(i,c)),o&&n.createElement(r,
1null,(0,l.e4)(o,c)),d&&n.createElement("p",null,(0,l.e4)(d,c)))}},6054:function(e){e.exports=JSON.parse('{"layout":"constrained","placeholder":{"fallback":"data:image/webp;base64,UklGRlABAABXRUJQVlA4WAoAAAAQAAAAEwAAEwAAQUxQSGkAAAAFcBhJsqrs3sPJP9enu8ijvhFAREwAVqXXSNIKRPcysGsFeHhRGujLrq1JXsJUS1vUaal4wUjhztq/6Fl+8lJrIBvpZFgyfLryqowIuI1hTK93XtBaM4b8A/EIekgSbHgyJQgbiwnjHwIAVlA4IMAAAAAwBQCdASoUABQAPjEWiEMiISEUBqggAwS0gAnEpsKczXfK/0ADpoJERdRDvJxqETc3gAD+/Gs/3397In8s4rQf/qE2Hr8sb4HwSzpDgL54NmKukDL9X+h54Tl4Sxrkfvt/862rH+x+qZ4NiELHEQ0ApaVuMD5/s7pBfI87AfTfLthdLGFbWvX2rpYJf/7AND6oZ11/xYeOC9L7Q5qzgrYqyjNa66ROqGGfQOy+/YtAieGH6sf7p5//kbkf4A1cAAA="},"images":{"fallback":{"src":"/static/5307b13a41c8fda703f6cde5ada1f943/ce350/how-aleo-works-timeline-bg.webp","srcSet":"/static/5307b13a41c8fda703f6cde5ada1f943/26284/how-aleo-works-timeline-bg.webp 939w,\\n/static/5307b13a41c8fda703f6cde5ada1f943/736d4/how-aleo-works-timeline-bg.webp 1878w,\\n/static/5307b13a41c8fda703f6cde5ada1f943/ce350/how-aleo-works-timeline-bg.webp 3756w","sizes":"(min-width: 3756px) 3756px, 100vw"},"sources":[]},"width":3756,"height":3684}')}}]);
2//# sourceMappingURL=component---src-pages-events-js-1c148736d3d9f2181baa.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.