1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[36179],{3255:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(12115);let l=e=>e<768?"mobile":e>=768&&e<1024?"tablet":e>=1024?"desktop":void 0,n=()=>{let[e,t]=(0,a.useState)({width:window.innerWidth,height:window.innerHeight,deviceType:l(window.innerWidth)});return(0,a.useEffect)(()=>{let e=()=>{let e=window.innerWidth,s=window.innerHeight,a=l(e);t({width:e,height:s,deviceType:a})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}},43172:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});let a={src:"/_next/static/media/org_icon.5ee30f0d.png",height:42,width:48,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAAYFBMVEVMaXGKiq1jdaiiTmWQQ11geZuQS2KrYnleWYOOPFZTbqiRTGdpgK2AkLqHP1eeSWWlYHKud45Rd7CmhZ8/WJl+faOZOlK3jaCaXXq6g5SJWnSITGuYZ4J/f5RJWoqHeZv33fJiAAAAIHRSTlMAGZmqeilR+j1mu5COWSDUjq9ru6GZq4S5Zam9vQxasx1JT4IAAAAJcEhZcwAACxMAAAsTAQCanBgAAAA7SURBVHicBcGFAcAgEACxQx8tdZf9t2wCWBEPEGUaWgfkLY19hCcfaTYWnDf3vgbHq7/rXHQAVUupih9CAQJTStPd6gAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:7}},52554:(e,t,s)=>{s.d(t,{default:()=>k});var a=s(95155),l=s(35405),n=s(72473),i=s(15239),r=s(52619),c=s.n(r),o=s(20063),d=s(12115),x=s(3255),m=s(14932),h=s(39273),p=s(72145),f=s(1524),u=s(16485),g=s(26983),b=s(99708),v=s(20508),A=s(21873),j=s(88927),w=s(64269),N=s(3705);let y=[],k=(0,d.memo)(e=>{let{id:t,slug:s,imageSrc:r,organizerIcon:d,organizerName:k,heading:z,fromDate:M,toDate:P,location:C,clickHandler:G,isPasswordProtected:W,eventTimeStatus:E,isPastEvent:S=!1,friendCount:H=0,sampleFriends:T=y,goingCount:Z=0,priority:J=!1,discoveryReason:R,trendingRank:q,trendingReason:O}=e,U=(0,o.useRouter)(),{deviceType:_,width:D}=(0,x.A)(),{isDialogOpen:Q,closeDialog:B,handleEventAccess:L,handlePasswordSuccess:Y}=(0,p.x)({eventId:t,isPasswordProtected:W||!1,autoNavigateOnSuccess:!G});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.s,{isOpen:Q,onOpenChange:B,eventId:t,onSuccess:()=>{Y(),G&&G(t,z)}}),(0,a.jsx)("div",{className:(0,w.cn)("group relative h-full overflow-hidden bg-[#1a1d23] border border-white/5 p-1 shadow-xl transition-all duration-500 hover:border-[#ffbf00]/30 hover:shadow-[#ffbf00]/10 hover:-translate-y-1",S?"rounded-[1.5rem]":"rounded-[2rem]"),onClick:()=>{if(L())if(G)G(t,z);else{let e=s||t;U.push("/events/".concat(e))}},onMouseEnter:()=>U.prefetch("/events/".concat(s||t)),children:(0,a.jsxs)("div",{className:(0,w.cn)("relative h-full flex flex-col overflow-hidden bg-card transition-all duration-500",S?"rounded-[1.25rem]":"rounded-[1.75rem]"),children:[(0,a.jsxs)("div",{className:"relative w-full overflow-hidden z-0 mb-[-1px] ".concat(S?"h-40":"h-56"),children:[(0,a.jsx)(i.default,{src:r,alt:z,className:"block h-full w-full object-cover transition-transform duration-700 group-hover:scale-110",width:400,height:224,sizes:"(min-width: 1536px) 384px, (min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw",priority:J,loading:J?void 0:"lazy",fetchPriority:J?"high":"auto"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/40 to-transparent z-0 transition-opacity duration-300 group-hover:from-black/90"}),(()=>{if("trending"===R&&"ongoing"!==E)return(0,a.jsx)(N.A,{reason:"trending",label:q?"#".concat(q," Trending"):void 0,className:(0,w.cn)("absolute z-10",S?"top-2 left-2":"top-4 left-4")});if(!E)return null;let e={ongoing:{label:"Live Now",className:"bg-green-500 text-white animate-pulse",icon:(0,a.jsx)(f.A,{size:14})},upcoming:{label:"Upcoming",className:"bg-primary text-black",icon:(0,a.jsx)(u.A,{size:14})},past:{label:"Past Event",className:"bg-gray-500 text-white",icon:(0,a.jsx)(g.A,{size:14})}}[E];return e?(0,a.jsxs)("div",{className:"absolute z-10 flex items-center gap-1.5 rounded-full font-semibold shadow-lg backdrop-blur-sm ".concat(e.className," ").concat(S?"top-2 left-2 px-2 py-1 text-[10px]":"top-4 left-4 px-3 py-1.5 text-xs"),children:[e.icon,(0,a.jsx)("span",{children:e.label})]}):null})(),W&&(0,a.jsxs)("div",{className:"absolute z-10 flex items-center gap-1.5 rounded-full bg-yellow-500 font-semibold text-black shadow-lg backdrop-blur-sm ".concat(S?"top-2 right-2 px-2 py-1 text-[10px]":"top-4 right-4 px-3 py-1.5 text-xs"),children:[(0,a.jsx)(b.A,{size:S?12:14}),(0,a.jsx)("span",{children:"Protected"})]}),(0,a.jsx)("div",{className:"absolute z-10 flex items-center gap-2 rounded-xl bg-black/60 backdrop-blur-md ".concat(S?"bottom-2 left-2 px-2 py-1.5":"bottom-4 left-4 px-3 py-2"),children:(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("p",{className:"text-primary leading-none font-bold ".concat(S?"text-lg":"text-2xl"),children:(0,n.GP)(new Date(M),"dd")}),(0,a.jsx)("p",{className:"font-semibold text-white uppercase ".concat(S?"text-[10px]":"text-xs"),children:(0,n.GP)(new Date(M),"MMM")})]})}),(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/60 opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:(0,a.jsx)(m.A,{className:"scale-90 transform transition-transform duration-300 group-hover:scale-100",children:"View Details"})})]}),(0,a.jsxs)("div",{className:"relative z-10 flex flex-col flex-1 bg-card ".concat(S?"gap-2 p-3":"gap-3 p-5"),children:[(0,a.jsx)(c(),{href:"/events/".concat(s||t),onClick:e=>e.stopPropagation(),className:"block",children:(0,a.jsx)("h3",{className:"text-foreground group-hover:text-primary line-clamp-2 font-bold transition-colors min-h-[3.5rem] ".concat(S?"text-base":"text-xl"),children:z})}),O&&(0,a.jsxs)("p",{className:"text-primary/80 flex items-center gap-1.5 text-[11px] font-medium line-clamp-1",children:[(0,a.jsx)(f.A,{size:11,className:"shrink-0"}),O]}),k&&(0,a.jsxs)("div",{className:"text-muted-foreground flex items-center gap-2 ".concat(S?"text-xs":"text-sm"),children:[(0,a.jsx)("div",{className:"bg-primary/10 flex items-center justify-center rounded-full ".concat(S?"h-5 w-5":"h-6 w-6"),children:d?(0,a.jsx)(i.default,{src:d,alt:k,className:"h-full w-full rounded-full object-cover",width:S?20:24,height:S?20:24}):(0,a.jsx)(v.A,{size:S?12:14,className:"text-primary"})}),(0,a.jsxs)("span",{className:"font-medium",children:["by ",k]})]}),(0,a.jsx)("div",{className:"bg-border h-px"}),(0,a.jsxs)("div",{className:"flex flex-col ".concat(S?"gap-1.5":"gap-2"),children:[!W&&C&&(0,a.jsxs)("div",{className:"text-muted-foreground flex items-start gap-2 ".concat(S?"text-xs":"text-sm"),children:[(0,a.jsx)(A.A,{size:S?14:16,className:"text-primary mt-0.5 flex-shrink-0"}),(0,a.jsx)("span",{className:"line-clamp-1",children:C})]}),(0,a.jsxs)("div",{className:"text-muted-foreground flex items-start gap-2 ".concat(S?"text-xs":"text-sm"),children:[(0,a.jsx)(g.A,{size:S?14:16,className:"text-primary mt-0.5 flex-shrink-0"}),(0,a.jsx)("span",{className:"line-clamp-1",children:(()=>{let e=new Date(M),t=new Date(P);return(0,l.r)(e,t)?"".concat((0,n.GP)(e,"MMM dd, yyyy")," ⢠").concat((0,n.GP)(e,"h:mm a")," - ").concat((0,n.GP)(t,"h:mm a")):"".concat((0,n.GP)(e,"MMM dd")," - ").concat((0,n.GP)(t,"MMM dd, yyyy"))})()})]})]}),(H>0||Z>0)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"bg-border h-px w-full my-1"}),(0,a.jsx)("div",{className:"flex items-center justify-between mt-2",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[H>0&&T&&T.length>
10&&(0,a.jsx)("div",{className:"flex -space-x-3",children:T.slice(0,3).map(e=>(0,a.jsx)(j.H,{src:e.profile_image,name:e.first_name,size:"sm",className:"border-2 border-card"},e._id))}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:"text-foreground font-bold text-xs leading-none",children:Z.toLocaleString()||"0"}),(0,a.jsxs)("span",{className:"text-muted-foreground text-[9px] font-medium uppercase tracking-wide",children:["Going",H>0&&(0,a.jsxs)("span",{className:"text-primary font-bold",children:[" ","\xb7 ",H," ",1===H?"friend":"friends"]})]})]})]})})]})]})]})})]})})}}]);
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.