PageSourceSearch

https://app.lolafinance.com/assets/Events-BKcCk_yc.js

js lolafinance.com collected 2026-10-02 01:35:22 UTC 4,460 bytes, 1 lines download raw bytes

1import{j as e,Y as u,Z as j,P as f,_ as g,G as v,$ as N,a0 as y,Q as b,C as w,E}from"./index-DYb9XDPI.js";import{r}from"./redux-CWpIluPy.js";import{u as C,c as k}from"./react-BQvoLKUC.js";import{S as c,i as S}from"./index-DsR0E_cS.js";import{E as m}from"./event_placeholder-Sdikt3LF.js";import{i as B}from"./checkIfObjectIsTrue-DHzcPKEP.js";import{B as D}from"./index-C5hkXizQ.js";import"./ui-CCusv-BE.js";import"./vendor-B6ynCCA9.js";import"./cookieHandler-Cf2E2jTE.js";import"./chevron-right-CRvrZcZl.js";const A=({title:s,date:o,desc:t,img:i,onClick:n})=>e.jsx("div",{className:"font-avenirBook",children:e.jsxs("div",{className:"shadow-sm",children:[e.jsxs("div",{className:"relative rounded-t-lg",children:[e.jsx("div",{className:"absolute bg-[#747474] text-white m-2 right-0 p-2 rounded-full",children:e.jsx(u,{size:16,className:"transform-matrix"})}),e.jsx("img",{className:"h-[120px] w-full rounded-t-lg object-cover",src:i||m,alt:""}),e.jsx("p",{className:"absolute bottom-0 left-0 text-xs bg-black/80 text-white p-2",children:o})]}),e.jsxs("div",{className:"p-4 space-y-2 bg-white rounded-b-lg text-sm",children:[e.jsx("h5",{className:"font-gilroyBold text-[#101828] text-base",children:s}),e.jsx("p",{children:t}),e.jsxs("button",{type:"button",className:"text-[#F75500] flex gap-2 items-center",onClick:n,children:[e.jsx("span",{children:"View Details"}),e.jsx(j,{})]})]})]})}),L=s=>!(!s||!B(s)||!("datetime"in s)),G=()=>{const{state:s}=C(),{id:o}=k(),[t,i]=r.useState((s==null?void 0:s.event)??null),[n,x]=r.useState([]),[h,d]=r.useState(!1),p=async a=>{d(!0);try{const l=await S();x(l.events)}catch(l){E(l)}d(!1)};return r.useEffect(()=>{p()},[]),e.jsxs(e.Fragment,{children:[e.jsx(f,{title:"Community Events"}),e.jsxs("section",{className:"w-full mx-auto flex-1 flex flex-col",children:[e.jsxs("div",{className:"flex flex-col flex-1 gap-6 mb-10",children:[e.jsx(D,{items:[{pathname:"Community Details",href:`/communities/${o}`},{pathname:"Events",active:!0}],goBackLink:".."}),e.jsxs("div",{className:"flex flex-wrap gap-4 items-start justify-between",children:[e.jsxs("div",{className:"",children:[e.jsx("h2",{className:"text-lg xl:text-2xl uppercase font-black text-lola-black",children:"Upcoming Events"}),e.jsx("p",{className:"text-xs xl:text-sm text-muted-foreground",children:"List of all the upcoming events available"})]}),!1]})]}),e.jsx("div",{className:"grid gap-8 sm:grid-cols-2 lg:grid-cols-4",children:h?[1,2,3,4].map(a=>e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"rounded-lg",children:e.jsx(c,{height:120})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{width:160,height:15}),e.jsx(c,{width:100,height:15}),e.jsx(c,{width:120,height:15})]})]},a)):n.length>0?n.map(a=>{var l;return e.jsx(A,{title:a.title,date:((l=new Date(a.datetime))==null?void 0:l.toUTCString())??"N/A",desc:a.description,onClick:()=>i(a),img:a.bannerUrl},a.title)}):e.jsx("div",{className:"col-span-full flex items-center justify-center py-16",children:e.jsxs("div",{className:"flex flex-col items-center gap-4 text-center max-w-sm",children:[e.jsx("div",{className:"rounded-full bg-gray-200 p-4 w-fit",children:e.jsx(g,{size:48,className:"text-gray-400"})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"font-bold capitalize text-[#374151] text-sm",children:"No events yet"}),e.jsx("p",{className:"text-xs text-[#6B7280]",children:"There are no upcoming events scheduled for this community at the moment."})]})]})})})]}),L(t)&&e.jsx(v,{open:!0,title:"Event Details",handleClose:()=>i(null),children:e.jsxs("div",{className:"space-y-5 text-lola-black",children:[e.jsx("img",{src:t.bannerUrl||m,alt:t.title,className:"h-[150px] object-cover w-full rounded-md"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h2",{className:"font-gilroyBold text-xl text-lola-black",children:t.title}),e.jsx("p",{className:"text-sm",children:t.description})]}),e.jsxs("div",{children:[e.jsxs("p",{className:"flex gap-2 items-center",children:[e.jsx(N,{}),e.jsx("span",{children:new Date(t.datetime).toDateString()})]}),e.jsxs("p",{className:"flex gap-2 items-center",children:[e.jsx(y,{}),e.jsx("span",{children:new Date(t.datetime).toLocaleTimeString()})]})]}),e.jsxs("div",{className:"-space-y-2",children:[e.jsx(b,{children:"I Am Interested"}),e.jsx(w,{onClick:()=>i(null),buttonStyle:"text-red-600 text-center w-full text-sm font-avenirBook",children:"Close"})]})]})})]})};export{A as EventCard,G 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.