PageSourceSearch

https://syrianorthodoxchurch.org/assets/EventDetail-CeKaopfk.js

js syrianorthodoxchurch.org collected 2026-10-02 12:33:25 UTC 3,046 bytes, 1 lines download raw bytes

1import{p as d,x as m,j as e,o as t,B as o,n as r,d as l,m as x,k as p,w as h,M as u,s as j}from"./index-QjZvXh_M.js";import{A as v}from"./AddToCalendarButton-BmPcGI4-.js";import{A as f}from"./arrow-left-DNTcRDXa.js";import"./dropdown-menu-Cp4Nu0kE.js";import"./index-CyIuOkcK.js";import"./index-BzH1KNfQ.js";import"./check-Be9RU9_a.js";import"./circle-nE5-jpzi.js";import"./calendar-plus-BWit1FJ_.js";import"./external-link-DgtdnZNM.js";function q(){const{id:a}=d(),{data:s,isLoading:n}=m({queryKey:["app-event",a],queryFn:async()=>{const{data:c,error:i}=await j.from("events").select("*").eq("id",a).eq("status","published").maybeSingle();if(i)throw i;return c},enabled:!!a});return n?e.jsxs("div",{className:"p-4 space-y-4",children:[e.jsx(t,{className:"h-48 rounded-xl"}),e.jsx(t,{className:"h-8 w-3/4"}),e.jsx(t,{className:"h-4 w-1/2"}),e.jsx(t,{className:"h-20"})]}):s?e.jsxs("div",{className:"pb-4",children:[e.jsxs("div",{className:"relative h-48",children:[e.jsx(l,{src:s.image_url||"/placeholder.svg",alt:s.title,className:"w-full h-full object-cover",eager:!0}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),e.jsx(r,{to:"/app/events",className:"absolute top-4 left-4 w-8 h-8 bg-white/80 rounded-full flex items-center justify-center",children:e.jsx(f,{className:"h-4 w-4"})})]}),e.jsxs("div",{className:"p-4",children:[e.jsx("h1",{className:"font-heading text-xl font-bold",children:s.title}),e.jsxs("div",{className:"flex flex-col gap-2 mt-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(x,{className:"h-4 w-4 text-primary"}),e.jsx("span",{children:p(new Date(s.event_date),"EEEE, MMMM d, yyyy")})]}),s.event_time&&e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(h,{className:"h-4 w-4 text-primary"}),e.jsx("span",{children:s.event_time.slice(0,5)}),s.end_time&&` - ${s.end_time.slice(0,5)}`]}),s.location&&e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(u,{className:"h-4 w-4 text-primary"}),e.jsx("span",{children:s.location})]})]}),e.jsx("div",{className:"mt-4",children:e.jsx(v,{fullWidth:!0,event:{title:s.title,description:s.description,location:s.location,startDate:s.event_date,startTime:s.event_time,endDate:s.end_date,endTime:s.end_time,uid:`event-${s.id}@church`}})}),s.description&&e.jsxs("div",{className:"mt-4 pt-4 border-t",children:[e.jsx("h2",{className:"font-medium mb-2",children:"About this event"}),e.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-wrap text-justify [hyphens:auto]",children:s.description})]}),s.image_url&&e.jsx("div",{className:"mt-4 rounded-xl overflow-hidden border bg-muted",children:e.jsx(l,{src:s.image_url,alt:s.title,className:"w-full h-auto object-contain"})})]})]}):e.jsxs("div",{className:"p-4 text-center",children:[e.jsx("p",{className:"text-muted-foreground",children:"Event not found"}),e.jsx(o,{asChild:!0,variant:"link",className:"mt-2",children:e.jsx(r,{to:"/app/events",children:"Back to Events"})})]})}export{q 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.