1import{R as J,r as i,e as Y,j as e,u as X}from"./query-vendor-DeAjbjY1.js";import{d as ee,N as te,L as se}from"./react-vendor-BvYE7Gz6.js";import{C as re,s as _,B as F,u as T,l as ae,d as oe,e as ne,A as ie,f as le}from"./index-oKjeO3om.js";import{C as ce}from"./CreateEventDialog-Dma0mIU_.js";import{u as de,R as me,a as ue,b as pe,C as he}from"./ReplyThread-sIIj_19H.js";import{u as xe,E as fe}from"./useEventCardsBatchData-DX5VYRoh.js";import{u as ge}from"./useDemoFallback-kihlAFtZ.js";import{e as M}from"./eventContactColumns-CjYz_ZOU.js";import{C as ye,a as je}from"./card-B-ZVzsjo.js";import{B as H}from"./badge-CDSmOy46.js";import{F as ve}from"./ForumHtmlContent-Gb9AOWEf.js";import{Z as I,K as be,a8 as Ce,a9 as Ne,aa as we,ab as ke,Q as V,ac as _e,ad as Ee,V as Fe,ae as Se,a7 as De,$ as Le,W as Re,a6 as Ae,a5 as Be,J as Te,a4 as Pe,a3 as qe}from"./ui-vendor-CbGmq21X.js";import{R as Ie}from"./ReportContentDialog-CKx9oyTZ.js";import{U as Me,B as $e}from"./UniversalActionsBar-Dpp2107S.js";import{B as Oe}from"./BookmarkButton-BDaK2hKc.js";import{c as k}from"./cardStyles--Hd5dm3A.js";import{u as Ue,C as ze}from"./CarpoolList-DAofb5AH.js";import{S as $,a as O,b as U,c as z,d as w}from"./select-C5nS1biS.js";import{P as Ge,e as He,f as Ve}from"./UniversalChatWindow-B8q3WF4k.js";import{C as Qe}from"./calendar-C19gnWbj.js";import{f as q}from"./date-vendor-B5SO7aoS.js";import{u as Ze,c as Ke,a as We,U as Je}from"./UniversalHeader-BAisAFem.js";import"./pdf-vendor-BdCO-AL1.js";import"./charts-vendor-DxqBrLyO.js";import"./supabase-vendor-JwDR5Hgr.js";import"./form-CCz2m-FE.js";import"./types-DoLzeBTG.js";import"./EditEventDialog-D8zwIF3O.js";import"./input-Bq8-EcpP.js";import"./image-upload-Bcx9bH0U.js";import"./inputValidation-DOO1ccLH.js";import"./purify.es-CFh60W_8.js";import"./serverRateLimit-CsUblBNL.js";import"./locationPersistence-BAL_dr-K.js";import"./eventQueryKeys-D74oW-K6.js";import"./date-picker-future-optional-D4TOIo-4.js";import"./time-picker-B6eL1WZ1.js";import"./radio-group-CF13V8Yj.js";import"./AppForm-DOAjRIyG.js";import"./FormAddressAutocompleteField-CDkRpWMr.js";import"./AddressAutocomplete-UXXeSOWT.js";import"./useGeolocation-CdZEu6tO.js";import"./PhoneNumberInput-DM6ivDWl.js";import"./useFormPrefill-BSVN9us3.js";import"./checkbox-DGXzL_lp.js";import"./locationData-QjZCE8px.js";import"./form-date-picker-from-today-DYitbgSX.js";import"./CarpoolEventForm-oqmV2tuT.js";import"./calendarDate-DllbgNoZ.js";import"./ticketing.types-BHHXPrn_.js";import"./useVenueTemplates-BKuYcv1J.js";import"./tabs-BPlPC6UH.js";
1import"./scroll-area-BxRmxQWJ.js";import"./index-BdQq_4o_.js";import"./separator-BsO-bYnX.js";import"./password-input-DGc7UR0_.js";import"./forumHtml-2IV2Sklo.js";import"./contentLimits-DPB5ue0V.js";import"./character-counter-C9Q6qOfv.js";import"./alert-dialog-DZJuSujH.js";import"./EnhancedUnifiedChatDialog-ByJrchh7.js";import"./skeleton-FKyJuSPH.js";import"./useUserPresence-C_fj-M9G.js";import"./useUniversalChatSystem-Brv5ri1U.js";import"./DeleteEventDialog-C96jYFbD.js";import"./OptimizedImage-DA1W_K7g.js";import"./useEventDetail-CtR5dmx7.js";import"./useContentReports-Dcp95LdU.js";import"./usePageVisibility-DV6J4lb5.js";import"./useResponsiveBreakpoint-MPyO5MKS.js";import"./UniversalShareMenu-DWXrBXwG.js";import"./useUniversalBookmarks-D-yTad5_.js";import"./distanceUtils-CioeA-om.js";import"./addressUtils-BjASWlXQ.js";import"./ReportedMessagesSection-CipFuN06.js";import"./AuthPromptDialog-D3FXxBCA.js";import"./UserLink-gONQ0NKA.js";import"./InFeedAd-C6dt0Pv6.js";import"./adsPolicy-SX6uqcmN.js";const L=` 2 id, 3 title, 4 description, 5 location, 6 start_date, 7 end_date, 8 start_time, 9 end_time, 10 type, 11 status, 12 state, 13 city, 14 max_participants, 15 price_per_person, 16 created_at, 17 updated_at, 18 user_id, 19 preferences, 20 requirements, 21 is_demo 22`,Ye=({eventType:t,state:o,city:s})=>{const[x,l]=i.useState(1);i.useEffect(()=>{l(1)},[t,o,s]);const{data:m,isLoading:a,error:g,refetch:y}=Y({queryKey:["events-list",t,o,s,x],queryFn:async()=>{const r=await M(),d=r?`${L}, 23${r.replace(/,$/,"")}`:L;let p=_.from("community_events").select(d,{count:"exact"}).eq("status","active").eq("approval_status","approved").eq("is_demo",!1).order("start_date",{ascending:!0}).range(0,x*20-1);t&&t!=="all"&&(p=p.eq("type",t)),o&&o!=="all"&&(p=p.ilike("state",`%${o}%`)),s&&s!=="all"&&(p=p.ilike("city",`%${s}%`));const{data:R,error:A,count:P}=await p;if(A)throw A;return{rows:R||[],count:P??0}},...re.FEED_DATA,refetchOnMount:!1,refetchOnWindowFocus:!1}),b=m?.rows??[],C=m?.count??0,u=b.length<C,[c,j]=i.useState(L);i.useEffect(()=>{let r=!1;return M().then(d=>{r||j(d?`${L}, 24${d.replace(/,$/,"")}`:L)}),()=>{r=!0}},[]);const{demos:f}=ge({table:"community_events",type:"event",select:c,limit:1,enabled:!0}),v=i.useMemo(()=>{const r=f.slice(0,1),d=new Set(r.map(p=>p.id));return[...r,...b.filter(p=>!d.has(p.id))]},[f,b]),S=i.useMemo(()=>(v||[]).map(r=>r.id),[v]),{data:n}=xe(S);return a?e.jsxs("div",{className:"text-center py-12",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"Loading events..."})]}):g?e.jsx("div",{className:"text-center py-12",children:e.jsxs("div",{className:"bg-destructive/10 border border-destructive/20 rounded-lg p-6",children:[e.jsx("p",{className:"text-destructive mb-4",children:g instanceof Error?g.message:"Failed to load events"}),e.jsx("button",{onClick:()=>y(),className:"px-4 py-2 bg-destructive text-destructive-foreground rounded hover:bg-destructive/90",children:"Try Again"})]})}):v.length===0?e.jsxs("div",{className:"text-center py-12",children:[e.jsx("p",{className:"text-muted-foreground mb-4",children:"No events found for the selected criteria."}),e.jsx("p",{className:"text-sm text-muted-foreground/80",children:"Try adjusting your filters or check back later."})]}):e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-2",children:v.map(r=>e.jsx(fe,{event:r,prefetchedData:n[r.id]},r.id))}),u&&e.jsx("div",{className:"flex justify-center",children:e.jsx("button",{type:"button",onClick:()=>l(r=>r+1),className:"px-4 py-2 rounded-md border border-border bg-background hover:bg-muted text-sm",children:"Load more events"})})]})},Xe=J.memo(Ye),et=({createdAt:t})=>{const o=s=>new Date(s).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0});return e.jsxs("div",{className:"flex justify-between items-start mb-3",children:[e.jsx(H,{variant:"secondary",className:"bg-pink-100 text-pink-800",children:"Confession"}),e.jsx("span",{className:"text-xs text-gray-500",children:o(t)})]})},tt=({title:t,content:o})=>e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"text-lg font-semibold mb-3 text-gray-900",children:t}),e.jsx(ve,{html:o,className:"text-gray-700 mb-4 leading-relaxed"})]}),st=({likeCount:t,isLiked:o,onLike:s})=>e.jsxs(F,{variant:"ghost",size:"sm",onClick:s,className:`flex items-center gap-2 ${o?"text-red-500 hover:text-red-600":"text-gray-500 hover:text-red-500"}`,children:[e.jsx(I,{className:`h-4 w-4 ${o?"fill-current":""}`}),e.jsx("span",{children:t})]}),rt=({replyCount:t,showReplies:o,repliesLoading:s,onToggleReplies:h})=>e.jsxs(F,{variant:"ghost",size:"sm",onClick:h,className:"flex items-center gap-2 text-gray-500 hover:text-blue-500",disabled:s,children:[e.jsx(be,{className:"h-4 w-4"}),e.jsx("span",{children:t}),s?e.jsx("div",{className:"animate-spin rounded-full h-3 w-3 border-b-2 border-blue-500"}):o?e.jsx(Ce,{className:"h-3 w-3"}):e.jsx(Ne,{className:"h-3 w-3"})]}),at=({confessionId:t,likeCount:o,isLiked:s,replyCount:h,showReplies:x,repliesLoading:l,onLike:m,onToggleReplies:a,onShowReplyForm:g,hideOwnLike:y=!1})=>{const{user:b}=T(),[C,u]=i.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[!y&&e.jsx(st,{likeCount:o,isLiked:s,onLike:m}),e.jsx(rt,{replyCount:h,showReplies:x,repliesLoading:l,onToggleReplies:a})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[b&&e.jsx(F,{variant:"ghost",size:"sm",onClick:()=>u(!0),className:"text-muted-foreground hover:text-destructive",children:e.jsx(we,{className:"h-4 w-4"})}),e.jsx(F,{variant:"outline",size:"sm",onClick:g,className:"text-gray-600 hover:text-gray-800",children:"Reply"})]})]}),e.jsx(Ie,{contentType:"confession",contentId:t,contentLabel:"Confession",isOpen:C,onOpenChange:u})]})},ot=({confessionId:t})=>{const[o,s]=i.useState(0),[h,x]=i.useState(!1),[l,m]=i.useState(0),[a,g]=i.useState([]),{user:y}=T(),b=async u=>
24{if(!y)throw new Error("Authentication required");try{const{data:c}=await _.from("confession_interactions").select("id").eq("confession_id",u).eq("user_id",y.id).eq("interaction_type","like").single();return c?(await _.from("confession_interactions").delete().eq("id",c.id),{liked:!1}):(await _.from("confession_interactions").insert({confession_id:u,user_id:y.id,interaction_type:"like"}),{liked:!0})}catch(c){throw c}},C=async()=>{try{const{count:u,error:c}=await _.from("confession_replies").select("*",{count:"exact",head:!0}).eq("confession_id",t);if(c){ae.error("Error getting reply count:",c);return}m(u||0)}catch{}};return i.useEffect(()=>{(async()=>{if(!(!t||!y))try{const{count:c}=await _.from("confession_interactions").select("*",{count:"exact",head:!0}).eq("confession_id",t).eq("interaction_type","like");s(c||0);const{data:j}=await _.from("confession_interactions").select("id").eq("confession_id",t).eq("user_id",y.id).eq("interaction_type","like").single();x(!!j),await C()}catch{}})()},[t,y]),i.useEffect(()=>{const u=j=>{if(!j||j.length===0)return 0;let f=j.length;return j.forEach(v=>{v.replies&&v.replies.length>0&&(f+=u(v.replies))}),f},c=u(a);m(c)},[a,t]),{likeCount:o,isLiked:h,replyCount:l,replies:a,setLikeCount:s,setIsLiked:x,toggleLike:b,refreshReplyCount:C}},nt=({confession:t})=>{const[o,s]=i.useState(!1),[h,x]=i.useState(!1),[l,m]=i.useState(null),{user:a}=T(),{showLoginPrompt:g}=oe(),{createReply:y,updateReply:b,deleteReply:C,replies:u,loading:c,getReplies:j}=de(t.id),{toast:f}=ne(),{likeCount:v,isLiked:S,replyCount:n,setLikeCount:r,setIsLiked:d,toggleLike:p,refreshReplyCount:R}=ot({confessionId:t.id}),A=a?.id===t.user_id,P=async()=>{if(!a){g();return}try{const N=await p(t.id);d(N.liked),r(B=>N.liked?B+1:B-1)}catch{f({title:"Error",description:"Failed to update like. Please try again.",variant:"destructive"})}},Q=async(N,B)=>{if(!a){g();return}try{await y({confession_id:t.id,content:N,is_anonymous:B}),x(!1),m(null),await R(),f({title:"Success!",description:"Your reply has been posted."})}catch(D){const E=D instanceof Error?D.message:"";throw f(E==="rate_limit_exceeded"||E==="ip_blocked"||E==="user_banned"?{title:E==="rate_limit_exceeded"?"Slow down":"Cannot post",description:E==="rate_limit_exceeded"?"Too many replies. Try again in a little while.":E==="user_banned"?"Your account cannot post replies right now.":"Something blocked this request. Try again later.",variant:"destructive"}:{title:"Error",description:D instanceof Error?D.message:"Failed to post reply. Please try again.",variant:"destructive"}),D}},Z=()=>{s(N=>(N&&m(null),!N))},K=()=>{if(!a){g();return}x(N=>!N),m(null)},W=async()=>{await j(),await R()};return e.jsxs(ye,{className:k.card,children:[e.jsx("div",{className:k.bookmark.container,children:e.jsx(Oe,{contentId:t.id,contentType:"confession"})}),e.jsxs(je,{className:k.content.default,children:[e.jsx("div",{className:k.header.container,children:e.jsxs("div",{className:k.header.titleWrapper,children:[e.jsx("div",{className:k.header.badges,children:e.jsx(H,{variant:t.is_anonymous?"secondary":"default",className:k.badge.primary,children:t.is_anonymous?"Anonymous":"Public"})}),e.jsx(et,{createdAt:t.created_at})]})}),e.jsx(tt,{title:t.title,content:t.content}),e.jsx(at,{confessionId:t.id,likeCount:v,isLiked:S,replyCount:n,showReplies:o,repliesLoading:c,onLike:P,onToggleReplies:Z,onShowReplyForm:K,hideOwnLike:A}),e.jsx("div",{className:k.actionBar,children:e.jsx(Me,{content:{id:t.id,title:t.title,description:t.content,type:"confession",isAnonymous:t.is_anonymous},showCalendar:!1,placement:"inline",forceCompact:!0,onStartChat:()=>s(!0),onViewPeople:()=>s(!0)})}),h&&e.jsx("div",{className:"mt-4 pt-4 border-t",children:e.jsx(me,{formInstanceId:`card-top-${t.id}`,onSubmit:Q,onCancel:()=>x(!1)})}),o&&e.jsx("div",{className:"mt-4 pt-4 border-t",children:c?e.jsxs("div",{className:"flex items-center justify-center py-4",children:[e.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-primary"}),e.jsx("span",{className:"ml-2 text-muted-foreground",children:"Loading replies..."})]}):u.length>0?e.jsx(ue,{replies:u,confessionId:t.id,createReply:y,activeReplyParentId:l,setActiveReplyParentId:m,onBeginInlineReply:()=>x(!1),confessionAuthorId:t.user_id??null,confessionIsAnonymous:!!t.is_anonymous,updateReply:b,deleteReply:C,onReplyAdded:W}):e.jsx("p",{className:"text-muted-foreground text-center py-4",children:"No replies yet. Be the first to reply!"})})]})]})},G=({sortBy:t,timeFilter:o,customDateRange:s,onSortChange:h,onTimeFilterChange:x,onCustomDateChange:l,totalCount:m})=>e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 items-start sm:items-center justify-between mb-6",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("h2",{className:"text-xl font-semibold text-gray-900",children:["Confessions (",m,")"]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-500",children:[e.jsx(ke,{className:"h-4 w-4"}),e.jsx("span",{children:"Filters active"})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-3",children:[e.jsxs($,{value:t,onValueChange:a=>h(a),children:[e.jsx(O,{className:"w-40",children:e.jsx(U,{placeholder:"Sort by"})}),e.jsxs(z,{children:[e.jsx(w,{value:"recent",children:"Most Recent"}),e.jsx(w,{value:"popular",children:"Most Liked"}),e.jsx(w,{value:"most_active",children:"Most Active"}),e.jsx(w,{value:"trending",children:"Trending"})]})]}),e.jsxs($,{value:o,onValueChange:a=>x(a),children:[e.jsx(O,{className:"w-32",children:e.jsx(U,{placeholder:"Time"})}),e.jsxs(z,{children:[e.jsx(w,{value:"all",children:"All Time"}),e.jsx(w,{value:"today",children:"Today"}),e.jsx(w,{value:"week",children:"This Week"}),e.jsx(w,{value:"month",children:"This Month"}),e.jsx(w,{value:"custom",children:"Custom Range"})]})]}),o==="custom"&&e.jsxs(Ge,{children:[e.jsx(He,{asChild:!0,children:e.jsxs(F,{variant:"outline",className:"w-60 justify-start text-left font-normal",children:[e.jsx(V,{className:"mr-2 h-4 w-4"}),s?.from?s.to?e.jsxs(e.Fragment,{children:[q(s.from,"LLL dd, y")," -"," ",q(s.to,"LLL dd, y")]}):q(s.from,"LLL dd, y"):e.jsx("span",{children:"Pick a date range"})]})}),e.jsx(Ve,{className:"w-auto p-0",align:"start",children:e.jsx(Qe,{initialFocus:!0,mode:"range",defaultMonth:s?.from,selected:{from:s?.from,to:s?.to},onSelect:a=>l({from:a?.from,to:a?.to}),numberOfMonths:2})})]})]})]}),it=()=>{const{user:o,loading:s}=T(),[h,x]=i.useState("recent"),[l,m]=i.useState("all"),[a,g]=i.useState({}),[y,b]=i.useState(1),{data:C=[],isLoading:u,error:c,hasMore:j}=pe(void 0,{fetchLimit:20,page:y}),f=i.useMemo(()=>{let n=[...C];if(l!=="all"){const r=new Date,d=new Date;if(l==="custom")a.from&&(n=n.filter(p=>new Date(p.created_at)>=a.from)),a.to&&(n=n.filter(p=>new Date(p.created_at)<=a.to));else{switch(l){case"today":d.setHours(0,0,0,0);break;case"week":d.setDate(r.getDate()-7);break;case"month":d.setMonth(r.getMonth()-1);break}n=n.filter(p=>new Date(p.created_at)>=d)}}switch(h){case"popular":n.sort((r,d)=>(d.like_count||0)-(r.like_count||0));break;case"most_active":n.sort((r,d)=>(d.reply_count||0)-(r.reply_count||0));break;case"trending":n.sort((r,d)=>(d.activity_score||0)-(r.activity_score||0));break;
24case"recent":default:n.sort((r,d)=>new Date(d.created_at).getTime()-new Date(r.created_at).getTime());break}return n},[C,h,l,a]),v=i.useMemo(()=>f.map(n=>n.id),[f]),{data:S={}}=Ue("confession",v);return s||u?e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"flex justify-end",children:e.jsx("div",{className:"w-32 h-10 bg-gray-200 rounded animate-pulse"})}),e.jsx("div",{className:"grid grid-cols-1 gap-4 md:gap-6",children:[...Array(3)].map((n,r)=>e.jsxs("div",{className:"p-6 bg-gray-100 rounded-lg animate-pulse",children:[e.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-2"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/2 mb-4"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-full"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-2/3"})]})]},r))})]}):c?e.jsx("div",{className:"space-y-3",children:e.jsxs(ie,{variant:"destructive",children:[e.jsx(_e,{className:"h-4 w-4"}),e.jsx(le,{children:c instanceof Error?c.message:"Failed to load confessions"})]})}):f.length===0?e.jsxs("div",{children:[e.jsx(G,{sortBy:h,timeFilter:l,customDateRange:a,onSortChange:x,onTimeFilterChange:m,onCustomDateChange:g,totalCount:0}),e.jsxs("div",{className:"text-center py-12",children:[e.jsx(I,{className:"h-12 w-12 text-pink-400 mx-auto mb-4"}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"No Confessions Found"}),e.jsx("p",{className:"text-gray-500 text-lg",children:"Try adjusting your filters or be the first to share your thoughts!"})]})]}):e.jsxs("div",{className:"space-y-4 md:space-y-6",children:[e.jsx(G,{sortBy:h,timeFilter:l,customDateRange:a,onSortChange:x,onTimeFilterChange:m,onCustomDateChange:g,totalCount:f.length}),e.jsxs($e,{counts:S,children:[e.jsx("div",{className:"grid grid-cols-1 gap-6",children:f.map(n=>e.jsx(nt,{confession:{...n,user_id:n.user_id,activityMetrics:{replyCount:n.reply_count||0,likeCount:n.like_count||0,recentActivity:0,activityScore:n.activity_score||0}}},n.id))}),j&&e.jsx("div",{className:"flex justify-center",children:e.jsx("button",{type:"button",onClick:()=>b(n=>n+1),className:"px-4 py-2 rounded-md border border-border bg-background hover:bg-muted text-sm",children:"Load more confessions"})})]})]})},As=()=>{const{interest:t}=ee(),{selectedState:o,selectedCity:s}=Ze(),h=X(),l=t?{sports:{name:"Sports",icon:qe,color:"bg-[#D3E4FD] text-[#0EA5E9]",description:"Join local sports events and activities"},"trip-planning":{name:"Trip Planning",icon:Pe,color:"bg-[#F2FCE2] text-[#148A62]",description:"Plan and join group trips"},"social-meetups":{name:"Social Meetups",icon:Te,color:"bg-[#E5DEFF] text-[#8B5CF6]",description:"Connect with like-minded people"},events:{name:"Events",icon:V,color:"bg-[#FEF7CD] text-[#D97706]",description:"Discover local events and gatherings"},"daily-news":{name:"Daily News",icon:Be,color:"bg-[#FFDEE2] text-[#D946EF]",description:"Stay updated with local news"},"money-transfer":{name:"Money Transfer",icon:Ae,color:"bg-[#F1F0FB] text-[#6E59A5]",description:"Safe money transfer services"},"law-firms":{name:"Law Firms",icon:Re,color:"bg-[#FDE1D3] text-[#F97316]",description:"Find legal assistance"},carpool:{name:"Car Pool",icon:Le,color:"bg-[#D3E4FD] text-[#0EA5E9]",description:"Share rides and reduce costs"},"room-rental":{name:"Room Rental",icon:De,color:"bg-[#E5DEFF] text-[#8B5CF6]",description:"Find accommodation options"},marketplace:{name:"Marketplace",icon:Se,color:"bg-[#FEF7CD] text-[#D97706]",description:"Buy and sell locally"},"travel-companion":{name:"Travel Companion",icon:Fe,color:"bg-[#FFDEE2] text-[#D946EF]",description:"Find travel buddies"},confessions:{name:"Confessions",icon:I,color:"bg-[#FCE7F3] text-[#EC4899]",description:"Share anonymous thoughts"}}[t]:null;if(!t)return e.jsx(te,{to:"/communities",replace:!0});if(!l)return e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-indigo-50 via-background to-purple-50 text-foreground dark:from-background dark:via-background dark:to-background flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Category Not Found"}),e.jsx(F,{variant:"ghost",asChild:!0,className:"h-auto min-h-0 border-0 bg-transparent p-0 shadow-none hover:bg-transparent",children:e.jsxs(se,{to:"/communities",className:Ke,children:[e.jsx(Ee,{className:We,"aria-hidden":!0}),"Back to Communities"]})})]})});const m=l.icon,a=()=>t==="confessions"?e.jsx(he,{onConfessionCreated:()=>h.invalidateQueries({queryKey:["confessions"]})}):e.jsx(ce,{category:t||"sports",onEventCreated:()=>h.invalidateQueries({queryKey:["events"]})}),g=()=>t==="carpool"?e.jsx(ze,{state:o,city:s}
24):t==="confessions"?e.jsx(it,{}):e.jsx(Xe,{eventType:t,state:o,city:s});return e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-indigo-50 via-background to-purple-50 text-foreground dark:from-background dark:via-background dark:to-background",children:[e.jsx(Je,{badgeText:l.name,badgeIcon:m,rightContent:a(),backTo:"/communities",backText:"Back to Communities",showLocation:!0}),e.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[e.jsx("div",{className:"absolute top-20 left-10 w-72 h-72 bg-gradient-to-r from-blue-200/30 to-indigo-200/30 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute top-40 right-20 w-96 h-96 bg-gradient-to-r from-purple-200/20 to-pink-200/20 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-20 left-1/3 w-80 h-80 bg-gradient-to-r from-emerald-200/20 to-teal-200/20 rounded-full blur-3xl"})]}),e.jsx("div",{className:"container mx-auto px-4 py-8 relative z-10",children:e.jsx("div",{className:"bg-white/60 backdrop-blur-sm rounded-2xl p-6 shadow-xl border border-white/20",children:g()})})]})};export{As 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.