PageSourceSearch

https://tg10x.com/_assets/feed.events-CqeM2jPV.js

js tg10x.com collected 2026-10-02 00:35:17 UTC 9,761 bytes, 1 lines download raw bytes

1import{e as ce,r as n,R as A,bU as ie,j as e,m as le,c4 as de,L as $,ao as me,a7 as ue}from"./vendor-DCKdIk_f.js";import{u as fe,a as he,l as pe,B as ge,S as p}from"./index-BDzfgULb.js";import{u as ve,a as _e,b as xe,c as je}from"./useFeed-FRH5ahxT.js";import{a as Se,P as ye}from"./PostComposer-DDFOouEF.js";import{P as Te}from"./PostCard-Dudul-jB.js";import{F as we}from"./FeedSidebar-C1m_F-0u.js";import{S as Ce}from"./Spinner-CwCuwTV8.js";import{UniversalSearch as ke}from"./UniversalSearch-De_1S7Sr.js";import{F as Ie}from"./FeedTabs-Cpz8mgOm.js";import{J as Be,c as Ne}from"./seoStructuredData-B4gR-SSf.js";import"./useUserOrganizations-CpScpiTZ.js";import"./useUserPersonas-DcJDiEej.js";import"./useImageDrop-DHzfrFgZ.js";import"./useCallbackRef-6aZLL_rv.js";import"./compressImage-BHJhYvWG.js";import"./FormattingToolbar-BHWuQKIP.js";import"./VoiceInputButton-CINp-Hut.js";import"./Checkbox-6j7JCpRx.js";import"./useUserSearch-DtnW16hl.js";import"./useDebounce-CmYCTunm.js";import"./Dialog-aId4dDLu.js";import"./RadioGroup-B1Wi6awW.js";import"./SharePopover-DeBkOoub.js";import"./Separator-WZ9KgzJy.js";import"./useLinkPreview-mbARpMd3.js";import"./renderMentions-DGudp1NA.js";import"./useProfileAnalytics-DNJweVWu.js";import"./StreakWidget-CP8s1lMT.js";import"./Progress-D32aQ8JF.js";import"./index-_W6fyHS1.js";import"./useGroups--C4HAyb4.js";import"./useDismissRecommendation-BmcmCdJq.js";import"./directoryConstants-wG0zakEs.js";const be="_pageLayout_d9fc4_1",Fe="_mainColumn_d9fc4_20",Me="_refreshIndicatorWrapper_d9fc4_28",Ye="_refreshIndicator_d9fc4_28",Re="_spinning_d9fc4_49",Ee="_refreshIcon_d9fc4_49",Le="_feedContent_d9fc4_68",Pe="_loginCtaBanner_d9fc4_80",He="_loginCtaText_d9fc4_98",Oe="_eventsBanner_d9fc4_116",Ae="_eventsBannerIcon_d9fc4_136",$e="_eventsBannerText_d9fc4_141",De="_eventsBannerArrow_d9fc4_146",We="_composerWrapper_d9fc4_151",Ue="_postsList_d9fc4_165",ze="_loadMoreSentinel_d9fc4_177",Je="_loadingMore_d9fc4_184",qe="_endOfFeed_d9fc4_193",Ve="_loadingState_d9fc4_199",Ge="_skeletonCard_d9fc4_211",Ke="_skeletonHeader_d9fc4_228",Qe="_emptyState_d9fc4_235",s={pageLayout:be,mainColumn:Fe,refreshIndicatorWrapper:Me,refreshIndicator:Ye,spinning:Re,refreshIcon:Ee,feedContent:Le,loginCtaBanner:Pe,loginCtaText:He,eventsBanner:Oe,eventsBannerIcon:Ae,eventsBannerText:$e,eventsBannerArrow:De,composerWrapper:We,postsList:Ue,loadMoreSentinel:ze,loadingMore:Je,endOfFeed:qe,loadingState:Ve,skeletonCard:Ge,skeletonHeader:Ke,emptyState:Qe};function Ft(){const{authState:g}=fe(),m=g.type==="authenticated",N=g.type==="authenticated"?g.user:null,i=he(),v=ce(),{mutate:b}=pe(),F=n.useRef(!1);n.useEffect(()=>{m&&!F.current&&(F.current=!0,b({feedType:"events"}))},[m,b]);const[l,M]=n.useState(()=>{try{return sessionStorage.getItem("feed_events_activeTab")||"all"}catch{return"all"}}),[u,D]=n.useState(()=>{try{return sessionStorage.getItem("feed_events_feedSort")||"latest"}catch{return"latest"}}),[d,_]=n.useState(()=>{try{return sessionStorage.getItem("feed_events_customHashtag")||null}catch{return null}});n.useEffect(()=>{try{sessionStorage.setItem("feed_events_activeTab",l)}catch{}},[l]),n.useEffect(()=>{try{sessionStorage.setItem("feed_events_feedSort",u)}catch{}},[u]),n.useEffect(()=>{try{d?sessionStorage.setItem("feed_events_customHashtag",d):sessionStorage.removeItem("feed_events_customHashtag")}catch{}},[d]);const[W,U]=n.useState(!1),z=A.useMemo(()=>{if(d)return{limit:10,feedType:"events",hashtagFilter:d.replace(/^#/,"")};if(l==="trending")return{limit:10,feedType:"events",trending:!0};if(l==="following")return{limit:10,feedType:"events",followingOnly:!0};const t={limit:10,feedType:"events"};return l==="all"&&u==="latest"&&(t.personalized=!1),t},[l,d,u]),J=t=>{M(t),_(null);try{sessionStorage.removeItem("feed_events_scrollY")}catch{}},Y=ie(),x=n.useRef(!1),f=n.useRef(null),R=n.useRef(null),a=n.useRef(null);n.useEffect(()=>{if(Y==="POP")x.current=!0;else try{sessionStorage.removeItem("feed_events_scrollY")}catch{}},[Y]),n.useEffect(()=>{let t=R.current?.parentElement??null;for(;t&&t!==document.body&&t!==document.documentElement;){const c=window.getComputedStyle(t).overflowY;if((c==="auto"||c==="scroll")&&t.scrollHeight>t.clientHeight){a.current=t;break}t=t.parentElement}const r=a.current||window,o=()=>{f.current||(f.current=setTimeout(()=>{try{const c=a.current?a.current.scrollTop:window.scrollY;sessionStorage.setItem("feed_events_scrollY",c.toString())}catch{}f.current=null},200))};return r.addEventListener("scroll",o,{passive:!0}),()=>{r.removeEventListener("scroll",o),f.current&&clearTimeout(f.current)}},[]);const{data:h,isLoading:q,isFetchingNextPage:j,fetchNextPage:E,hasNextPage:S,refetch:V}=ve(z),G=_e(),K=xe(),Q=je(),y=n.useRef(null),[T,L]=n.useState(0),[w,P]=n.useState(null),[H,O]=n.useState(!1);n.useEffect(()=>{if(!y.current)return;const t=new IntersectionObserver(r=>
1{r[0].isIntersecting&&S&&!j&&E()},{rootMargin:"200px"});return t.observe(y.current),()=>t.disconnect()},[S,j,E]);const X=t=>{(a.current?a.current.scrollTop:window.scrollY)===0&&P(t.touches[0].clientY)},Z=t=>{if(w===null)return;const o=t.touches[0].clientY-w,c=a.current?a.current.scrollTop:window.scrollY;o>0&&c===0&&L(Math.min(o*.5,120))},ee=async()=>{T>=60&&!H&&(O(!0),await V(),O(!1)),P(null),L(0)},te=(t,r)=>G.mutate({postId:t,reactionType:r}),se=t=>K.mutate({postId:t}),ne=t=>Q.mutate({postId:t}),re=t=>{_(t),M("all");try{sessionStorage.removeItem("feed_events_scrollY")}catch{}a.current?a.current.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"})},oe=t=>{v(t==="social"?"/feed":t==="hiring"?"/feed/jobs":`/feed/${t}`)},C=A.useMemo(()=>{const t=h?.pages.flatMap(o=>o.data)||[],r=new Set;return t.filter(o=>r.has(o.id)?!1:(r.add(o.id),!0))},[h]),ae=i.stateFilter==="telangana"?"Telangana":i.stateFilter==="andhra_pradesh"?"Andhra Pradesh":"India",k=`Startup Events & Meetups | ${i.name}`,I=`Discover upcoming startup events, meetups, workshops, and networking sessions across the ${ae} ecosystem on ${i.name}.`,B=`${i.url}/feed/events`;return n.useEffect(()=>{h&&x.current&&requestAnimationFrame(()=>{try{const t=sessionStorage.getItem("feed_events_scrollY");if(t){const r=parseInt(t,10),o=c=>{a.current?(a.current.scrollTo(0,r),Math.abs(a.current.scrollTop-r)>5&&c>0&&setTimeout(()=>o(c-1),100)):(window.scrollTo(0,r),Math.abs(window.scrollY-r)>5&&c>0&&setTimeout(()=>o(c-1),100))};o(3)}}catch{}x.current=!1})},[h]),e.jsxs("div",{className:s.pageLayout,children:[e.jsxs(le,{children:[e.jsx("title",{children:k}),e.jsx("meta",{name:"description",content:I}),e.jsx("link",{rel:"canonical",href:B}),e.jsx("meta",{property:"og:title",content:k}),e.jsx("meta",{property:"og:description",content:I}),e.jsx("meta",{property:"og:url",content:B}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:image",content:i.logoUrl}),e.jsx("meta",{name:"twitter:card",content:"summary"}),e.jsx("meta",{name:"twitter:title",content:k}),e.jsx("meta",{name:"twitter:description",content:I}),e.jsx("meta",{name:"twitter:image",content:i.logoUrl}),e.jsx("meta",{name:"robots",content:"index, follow"})]}),e.jsx(Be,{data:Ne([{name:"Home",url:i.url},{name:"Feed",url:`${i.url}/feed`},{name:"Events",url:B}])}),e.jsxs("div",{ref:R,className:s.mainColumn,onTouchStart:X,onTouchMove:Z,onTouchEnd:ee,children:[e.jsx("div",{className:s.refreshIndicatorWrapper,style:{height:`${T}px`,opacity:T>10?1:0,transition:w===null?"height 0.3s ease, opacity 0.3s ease":"none"},children:e.jsx("div",{className:`${s.refreshIndicator} ${H?s.spinning:""}`,children:e.jsx(de,{size:24,className:s.refreshIcon})})}),e.jsxs("div",{className:s.feedContent,children:[e.jsx(Ie,{activeTab:l,onTabChange:J,customHashtag:d,onClearHashtag:()=>_(null),feedSort:u,onSortChange:D,isAuthenticated:m}),e.jsxs($,{to:"/events",className:s.eventsBanner,children:[e.jsx(me,{size:18,className:s.eventsBannerIcon}),e.jsx("span",{className:s.eventsBannerText,children:"Browse upcoming events with RSVP & check-in"}),e.jsx(ue,{size:16,className:s.eventsBannerArrow})]}),m?e.jsxs("div",{className:s.composerWrapper,children:[e.jsx(Se,{feedType:"events",onChange:oe}),e.jsx(ye,{feedType:"events"})]}):e.jsxs("div",{className:s.loginCtaBanner,children:[e.jsxs("div",{className:s.loginCtaText,children:[e.jsx("h3",{children:"Join the ecosystem to share events"}),e.jsx("p",{children:"Sign in to post your own events, meetups, and workshops."})]}),e.jsx(ge,{asChild:!0,children:e.jsx($,{to:"/login",children:"Login"})})]}),e.jsx("div",{className:s.postsList,children:q&&C.length===0?e.jsx("div",{className:s.loadingState,children:[1,2,3].map(t=>e.jsxs("div",{className:s.skeletonCard,children:[e.jsxs("div",{className:s.skeletonHeader,children:[e.jsx(p,{style:{width:"3rem",height:"3rem",borderRadius:"50%"}}),e.jsxs("div",{style:{flex:1},children:[e.jsx(p,{style:{width:"40%",height:"1.25rem",marginBottom:"0.5rem"}}),e.jsx(p,{style:{width:"20%",height:"1rem"}})]})]}),e.jsx(p,{style:{width:"100%",height:"4rem",marginBottom:"1rem"}})]},t))}):C.length>0?e.jsxs(e.Fragment,{children:[C.map(t=>e.jsx(Te,{post:t,onLike:te,onDislike:se,onBookmark:ne,isAuthenticated:m,currentUserId:N?.id??null,currentUserRole:N?.role},t.id)),e.jsx("div",{ref:y,className:s.loadMoreSentinel,children:j?e.jsxs("div",{className:s.loadingMore,children:[e.jsx(Ce,{size:"md"}),e.jsx("span",{children:"Loading more events..."})]}):S?null:e.jsx("div",{className:s.endOfFeed,children:e.jsx("p",{children:"You're all caught up!"})})})]}):e.jsxs("div",{className:s.emptyState,children:[e.jsx("h3",{children:"No events posted yet"}),e.jsx("p",{children:"Be the first to share an upcoming event, meetup, or workshop!"})]})})]})]}),e.jsx(we,{isAuthenticated:m,onHashtagClick:re,feedType:"events"}),e.jsx(ke,{open:W,onOpenChange:U})]})}export{Ft as default};

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.