1import{u as d,a as h,r,j as e,L as p,ax as u,ap as f,ay as g,x as j,az as v}from"./index-DJqYQI6A.js";import{B as N,P as b}from"./PageFooterRow-BoOeDSrM.js";import{a as y}from"./calendarApi-DFOkUrnX.js";const m=s=>new Date(s).toLocaleString("en-IN",{day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),_=()=>{d("Event");const{id:s}=h(),[o,n]=r.useState(!0),[t,x]=r.useState(null);if(r.useEffect(()=>{let a=!1;return n(!0),y(s||"").then(c=>{a||x(c)}).finally(()=>{a||n(!1)}),()=>{a=!0}},[s]),o)return e.jsx("div",{className:"max-w-12xl px-2 py-6 sm:px-4 md:px-18 lg:px-15",children:e.jsx("div",{className:"h-64 animate-pulse rounded-lg bg-gray-100"})});if(!t)return e.jsxs("div",{className:"max-w-12xl px-4 py-16 text-center lg:px-15",children:[e.jsx("h1",{className:"text-xl font-semibold text-gray-800",children:"Event not found"}),e.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"This event may have been removed or is no longer active."}),e.jsx("div",{className:"mt-6 flex justify-center",children:e.jsx(N,{})})]});const l="Event Document",i=[t.document_format,t.document_size].filter(Boolean).join(", ");return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"bg-[#f1f1f1] px-4 py-3 text-sm lg:px-15",children:[e.jsx(p,{to:"/",className:"text-[#0B4173] hover:underline",children:"Home"}),e.jsx("span",{className:"mx-1 text-gray-500",children:"/"}),e.jsx("span",{className:"font-semibold text-gray-800",children:"Event Detail"})]}),e.jsxs("div",{className:"max-w-12xl px-2 py-6 sm:px-4 md:px-18 lg:px-15",children:[e.jsx("h2",{className:"mb-5 border-b border-[#E6E5E5] pb-2 text-lg font-semibold text-gray-800",children:"Event Detail"}),e.jsxs("div",{className:"flex flex-col gap-6 sm:flex-row",children:[t.image&&e.jsx("img",{src:t.image,alt:t.title,title:t.title,className:"w-full shrink-0 rounded-lg border border-gray-200 object-cover shadow-sm sm:w-64"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h1",{className:"text-xl font-bold leading-snug text-[#8b1e1e]",children:t.title}),e.jsxs("div",{className:"mt-3 space-y-2 text-sm text-gray-700",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(u,{className:"mt-1 shrink-0 text-[#0B4173]"}),e.jsxs("span",{children:[m(t.start_at),t.end_at&&t.end_at!==t.start_at&&e.jsxs(e.Fragment,{children:["  to ",m(t.end_at)]})]})]}),t.address&&e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(f,{className:"mt-1 shrink-0 text-[#0B4173]"}),e.jsx("span",{children:t.address})]})]}),t.description&&e.jsx("div",{className:"mt-4 whitespace-pre-line text-sm leading-6 text-gray-700",children:t.description}),(t.document||t.external_link)&&e.jsxs("div",{className:"mt-5 flex flex-wrap items-center gap-3 border-t border-[#E6E5E5] pt-4",children:[t.document&&e.jsxs("a",{href:t.document,target:"_blank",rel:"noreferrer","aria-label":j(l,{format:t.document_format,size:t.document_size,newWindow:!0,href:t.document,isDocument:!0}),className:"inline-flex items-center gap-2 rounded border border-[#0B4173] px-4 py-2 text-sm font-medium text-[#0B4173] hover:bg-[#0B4173] hover:text-white",children:[e.jsx(g,{className:"shrink-0"}),l,i&&e.jsxs("span",{className:"text-xs font-normal opacity-80",children:["(",i,")"]})]}),t.external_link&&e.jsxs("a",{href:t.external_link,target:"_blank",rel:"noreferrer","aria-label":"Event link (opens in new window)",className:"inline-flex items-center gap-2 rounded bg-[#0B4173] px-4 py-2 text-sm font-medium text-white hover:opacity-90",children:[e.jsx(v,{className:"shrink-0"}),"Event Link"]})]})]})]}),e.jsx(b,{})]})]})};export{_ 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.