PageSourceSearch

https://msaucalgary.com/_next/static/chunks/62a0c333212550e0.js

js msaucalgary.com collected 2026-10-07 22:19:56 UTC 24,007 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87316,e=>{"use strict";var t=e.i(361277);e.s(["Calendar",()=>t.default])},361277,e=>{"use strict";let t=(0,e.i(475254).default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["default",()=>t])},208402,e=>{"use strict";var t=e.i(977258);e.s(["Ticket",()=>t.default])},977258,e=>{"use strict";let t=(0,e.i(475254).default)("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);e.s(["default",()=>t])},346897,e=>{"use strict";let t=(0,e.i(475254).default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);e.s(["MapPin",()=>t],346897)},463059,e=>{"use strict";var t=e.i(246349);e.s(["ChevronRight",()=>t.default])},810980,e=>{"use strict";let t=(0,e.i(475254).default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);e.s(["BookOpen",()=>t],810980)},373375,e=>{"use strict";var t=e.i(412012);e.s(["ChevronLeft",()=>t.default])},952683,e=>{"use strict";var t=e.i(843476),a=e.i(347060),s=e.i(810980),r=e.i(475254);let l=(0,r.default)("calendar-off",[["path",{d:"M4.2 4.2A2 2 0 0 0 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 1.82-1.18",key:"16swn3"}],["path",{d:"M21 15.5V6a2 2 0 0 0-2-2H9.5",key:"yhw86o"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h7",key:"1wap6i"}],["path",{d:"M21 10h-5.5",key:"quycpq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var i=e.i(208402),d=e.i(271645),c=e.i(401851),n=e.i(87316),o=e.i(346897);let m=(0,r.default)("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);var h=e.i(657688),x=e.i(522016);function g(e){let a=e.date.split("T")[0],s=e.endTime?(0,c.format)(new Date(`${a}T${e.time}`),"EEEE, MMM d, yyyy • h:mm a")+" - "+(0,c.format)(new Date(`${a}T${e.endTime}`),"h:mm a"):(0,c.format)(new Date(`${a}T${e.time}`),"EEEE, MMM d, yyyy • h:mm a"),r=e.isSoldOut||!1,l=e.slug?`/events/${e.slug}`:`/events/${e._id}`;return(0,t.jsx)(x.default,{href:l,className:"group block h-full min-w-0 max-w-full",children:(0,t.jsxs)("article",{className:"flex h-full min-w-0 max-w-full flex-col justify-between overflow-hidden rounded-[1.25rem] border border-white/12 bg-[#fffefa] text-charcoal shadow-[0_16px_42px_rgba(0,0,0,0.18)] transition duration-300 hover:-translate-y-1 hover:shadow-[0_24px_55px_rgba(0,0,0,0.25)]",children:[(0,t.jsxs)("div",{className:"relative h-56 w-full overflow-hidden",children:[(0,t.jsx)(h.default,{src:e.imageUrl||"/images/defaults/event-stock.jpg",alt:e.title,className:"h-full w-full object-cover transition duration-700 group-hover:scale-[1.035]",width:400,height:192}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/25 to-transparent"})]}),(0,t.jsxs)("div",{className:"flex-grow space-y-4 p-6 text-charcoal",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs font-semibold uppercase tracking-[0.08em] text-muted-foreground",children:[(0,t.jsx)(n.Calendar,{className:"w-4 h-4 text-emerald"}),(0,t.jsx)("span",{children:s})]}),(0,t.jsx)("h3",{className:"font-display text-2xl font-bold leading-[1.05] tracking-[-0.035em] text-charcoal",children:e.title}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:(0,t.jsxs)("ul",{className:"flex flex-wrap gap-2",children:[e.ticketOptions.price>=0?r?(0,t.jsx)("li",{className:"inline-block rounded-full border border-red-600 bg-red-50 px-3 py-1 text-xs font-semibold text-red-500",children:"Sold Out"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"inline-block rounded-full bg-emerald/12 px-3 py-1 text-xs font-semibold text-emerald",children:"Available"}),(0,t.jsx)("li",{className:"inline-flex w-fit items-center rounded-full bg-gold/15 px-3 py-1 text-xs font-semibold text-charcoal",children:0==e.ticketOptions.price?"Free":"$"+e.ticketOptions.price})]}):(0,t.jsx)("li",{className:"inline-block rounded-full bg-emerald/12 px-3 py-1 text-xs font-semibold text-emerald",children:"Drop-In"}),e.recurring&&(0,t.jsx)("li",{className:"inline-block rounded-full bg-stone-100 px-3 py-1 text-xs font-semibold text-charcoal/70",children:e.recurring.interval})]})}),(0,t.jsxs)("div",{className:"flex items-start gap-2 border-t border-charcoal/8 pt-4 text-sm text-charcoal/70",children:[(0,t.jsx)(o.MapPin,{className:"w-4 h-4 text-gold mt-0.5 flex-shrink-0 self-start"}),(0,t.jsx)("span",{children:e.location})]}),e.description&&(0,t.jsxs)("div",{className:"flex items-start gap-2 text-sm leading-relaxed text-charcoal/65",children:[(0,t.jsx)(m,{className:"w-4 h-4 text-emerald mt-0.5 flex-shrink-0 self-start"}),(0,t.jsx)("span",{className:"line-clamp-2 text-ellipsis",children:e.description})]})]})]})})}function u(){let[e,r]=(0,d.useState)([]),[c,n]=(0,d.useState)(!0);(0,d.useEffect)(()=>{!async function(){n(!0);try{let e=await fetch("/api/events/all"),t=await e.json();if(!e.ok||!Array.isArray(t))return void r([]);r(t)}catch{r([])}finally{n(!1)}}()},[]);let{recurringEvents:o,oneTimeEvents:m}=(0,d.useMemo)(()=>{let t=[],s=[];
1e.forEach(e=>{e.recurring?t.push({...e,date:(0,a.getRecurringEventNextDay)(e).toISOString()}):s.push(e)});let r=(e,t)=>new Date(e.date).getTime()-new Date(t.date).getTime();return{recurringEvents:t.sort(r),oneTimeEvents:s.sort(r)}},[e]);return(0,t.jsxs)("section",{className:"relative w-full overflow-hidden bg-forest py-20 text-white md:py-28",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_90%_10%,rgba(201,162,39,0.16),transparent_25rem),radial-gradient(rgba(255,255,255,0.055)_0.7px,transparent_0.7px)] bg-[size:auto,6px_6px]"}),(0,t.jsxs)("div",{className:"site-container relative flex flex-col gap-y-10",children:[(0,t.jsxs)("div",{className:"grid gap-5 border-b border-white/15 pb-8 md:grid-cols-[1fr_auto] md:items-end",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("span",{className:"flex h-12 w-12 items-center justify-center rounded-full border border-white/15 bg-white/8 text-gold",children:(0,t.jsx)(i.Ticket,{className:"h-5 w-5"})}),(0,t.jsx)("h2",{className:"section-title text-white",children:"Events"})]}),(0,t.jsx)("p",{className:"max-w-md text-base leading-relaxed text-white/62 md:text-right md:text-lg",children:"Don’t miss out on our latest activities and gatherings!"})]}),c?(0,t.jsx)("div",{className:"grid min-w-0 grid-cols-1 gap-5 md:grid-cols-2 lg:grid-cols-3",children:[void 0,void 0,void 0].map((e,a)=>(0,t.jsx)(p,{},a))}):(0,t.jsxs)("div",{className:"min-w-0 space-y-6",children:[m.length>0?(0,t.jsx)("div",{className:"grid min-w-0 grid-cols-1 gap-5 md:grid-cols-2 lg:grid-cols-3",children:m.map(e=>(0,t.jsx)(g,{...e},e._id?.toString()))}):(0,t.jsxs)("div",{className:"col-span-full flex flex-col items-center justify-center space-y-3 rounded-[1.5rem] border border-white/12 bg-white/5 p-12 text-white/45",children:[(0,t.jsx)(l,{className:"w-12 h-12"}),(0,t.jsx)("p",{className:"text-xl font-semibold text-white/75",children:"No Upcoming Events"}),(0,t.jsx)("p",{className:"max-w-md text-center",children:"Please check back later for new events and updates. Stay tuned!"})]}),o.length>0?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-y-4",children:[(0,t.jsxs)("h3",{className:"text-xl font-bold text-white md:text-3xl",children:[(0,t.jsx)(s.BookOpen,{className:"mr-2 inline-block h-6 w-6 text-gold md:h-8 md:w-8"}),"Halaqas"]}),(0,t.jsx)("div",{className:"grid min-w-0 w-full grid-cols-1 gap-5 md:grid-cols-2 lg:grid-cols-3",children:o.map(e=>(0,t.jsx)(g,{...e},e._id?.toString()))})]}):(0,t.jsxs)("div",{className:"col-span-full flex flex-col items-center justify-center space-y-3 rounded-[1.5rem] border border-white/12 bg-white/5 p-12 text-white/45",children:[(0,t.jsx)(l,{className:"w-12 h-12"}),(0,t.jsx)("p",{className:"text-xl font-semibold text-white/75",children:"No Upcoming Events"}),(0,t.jsx)("p",{className:"max-w-md text-center",children:"Please check back later for new events and updates. Stay tuned!"})]})]})]})]})}function p(){return(0,t.jsxs)("div",{className:"flex h-full min-h-96 flex-col justify-between overflow-hidden rounded-[1.25rem] border border-white/10 bg-white/8 shadow-md",children:[(0,t.jsx)("div",{className:"h-48 w-full bg-gray-200 animate-pulse"}),(0,t.jsxs)("div",{className:"p-5 space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 bg-gray-300 rounded-full animate-pulse"}),(0,t.jsx)("div",{className:"w-32 h-4 bg-gray-300 rounded animate-pulse"})]}),(0,t.jsx)("div",{className:"w-3/4 h-6 bg-gray-300 rounded animate-pulse"}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("div",{className:"w-20 h-6 bg-gray-300 rounded-full animate-pulse"}),(0,t.jsx)("div",{className:"w-20 h-6 bg-gray-300 rounded-full animate-pulse"})]}),(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 bg-gray-300 rounded-full animate-pulse mt-0.5"}),(0,t.jsx)("div",{className:"w-40 h-4 bg-gray-300 rounded animate-pulse"})]}),(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 bg-gray-300 rounded-full animate-pulse mt-0.5"}),(0,t.jsx)("div",{className:"w-2/3 h-4 bg-gray-300 rounded animate-pulse"})]})]})]})}var f=e.i(503116);let b=(0,r.default)("clock-4",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),v=(0,r.default)("clock-2",[["path",{d:"M12 6v6l4-2",key:"1r2kuh"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var j=e.i(923426);function w(e){return(0,t.jsxs)("article",{className:"group relative overflow-hidden rounded-[1.25rem] border border-charcoal/10 bg-card p-5 shadow-[0_12px_35
1px_rgba(24,35,31,0.05)] transition duration-300 hover:-translate-y-1 hover:border-emerald/25 hover:shadow-[0_20px_45px_rgba(24,35,31,0.09)]",children:[(0,t.jsx)("div",{className:"absolute inset-x-0 top-0 h-1 bg-[linear-gradient(90deg,var(--emerald)_0_72%,var(--gold)_72%)]"}),(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"rounded-full bg-emerald/8 p-2 text-emerald",children:(0,t.jsx)(v,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{className:"text-lg font-bold text-charcoal",children:["Khutbah: ",(0,a.convertTo12Hour)(e.khutbah)]}),(0,t.jsxs)("p",{className:"mt-0.5 text-sm text-muted-foreground",children:["Iqamah: ",(0,a.convertTo12Hour)(e.iqamah)]})]})]}),(0,t.jsxs)("div",{className:"mt-5 flex items-center gap-3 border-t border-charcoal/8 pt-4",children:[(0,t.jsx)("div",{className:"rounded-full bg-gold/10 p-2",children:(0,t.jsx)(j.UserRound,{className:"h-4 w-4 text-gold"})}),(0,t.jsx)("p",{className:"font-medium text-charcoal/80",children:e.khateeb})]}),(0,t.jsxs)("div",{className:"mt-2.5 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"rounded-full bg-emerald/8 p-2",children:(0,t.jsx)(o.MapPin,{className:"h-4 w-4 text-emerald"})}),(0,t.jsx)("p",{className:"font-semibold text-charcoal/70",children:e.location})]}),e.additionalInfo&&(0,t.jsx)("div",{className:"mt-4 border-t border-charcoal/8 pt-4 text-sm leading-relaxed text-muted-foreground",children:e.additionalInfo})]})}function y(){return(0,t.jsxs)("div",{className:"max-w-xs rounded-2xl border border-gray-100 bg-white p-3 shadow-md animate-pulse",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("div",{className:"h-7 w-7 rounded-full bg-gray-200"}),(0,t.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,t.jsx)("div",{className:"h-4 w-3/4 rounded bg-gray-200"}),(0,t.jsx)("div",{className:"h-3 w-1/2 rounded bg-gray-200"})]})]}),(0,t.jsxs)("div",{className:"mt-3 flex items-center gap-1",children:[(0,t.jsx)("div",{className:"h-7 w-7 rounded-full bg-gray-200"}),(0,t.jsx)("div",{className:"h-4 w-2/3 rounded bg-gray-200"})]}),(0,t.jsxs)("div",{className:"mt-3 flex items-center gap-1",children:[(0,t.jsx)("div",{className:"h-7 w-7 rounded-full bg-gray-200"}),(0,t.jsx)("div",{className:"h-4 w-3/4 rounded bg-gray-200"})]})]})}function N(){return(0,t.jsx)("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:Array.from({length:3}).map((e,a)=>(0,t.jsx)(y,{},a))})}function k(){let[e,a]=(0,d.useState)(),[s,r]=(0,d.useState)(!0);return((0,d.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/club/jumuah",{method:"GET"});e.ok&&a(await e.json())}finally{r(!1)}})()},[]),s)?(0,t.jsx)(N,{}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:e&&e.length>0?e.map((e,t)=>(0,d.createElement)(w,{...e,key:t})):(0,t.jsxs)("div",{className:"col-span-full flex flex-col items-center justify-center space-y-3 rounded-[1.5rem] border border-charcoal/10 bg-white/55 p-12 text-charcoal/45",children:[(0,t.jsx)(b,{className:"h-10 w-10",strokeWidth:1.5}),(0,t.jsx)("p",{className:"text-xl font-semibold text-charcoal/70",children:"No Upcoming Jumuah"}),(0,t.jsx)("p",{className:"max-w-md text-center",children:"Please check back later for updated jumuah timings!"})]})})}function M(){return(0,t.jsx)("section",{className:"w-full bg-ivory py-20 text-charcoal md:py-28",children:(0,t.jsxs)("div",{className:"site-container flex flex-col gap-y-12",children:[(0,t.jsxs)("div",{className:"grid gap-5 border-b border-charcoal/12 pb-8 md:grid-cols-[1fr_auto] md:items-end",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("span",{className:"flex h-12 w-12 items-center justify-center rounded-full border border-emerald/15 bg-emerald/8 text-emerald",children:(0,t.jsx)(f.Clock,{className:"h-5 w-5"})}),(0,t.jsx)("h2",{className:"section-title",children:"Jumuah Timings"})]}),(0,t.jsx)("p",{className:"font-display text-xl font-semibold tracking-[-0.025em] text-emerald md:text-2xl",children:(0,a.getNextFridayFormatted)()})]}),(0,t.jsx)(d.Suspense,{fallback:(0,t.jsx)(N,{}),children:(0,t.jsx)(k,{})})]})})}var _=e.i(519455),D=e.i(489853);let S=(0,r.default)("calendar-range",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M17 14h-6",key:"bkmgh3"}],["path",{d:"M13 18H7",key:"bb0bb7"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 18h.01",key:"1bdyru"}]]);var T=e.i(373375),C=e.i(463059);function E(){let[e,a]=(0,d.useState)([]),[s,r]=(0,d.useState)("month"),[l,i]=(0,d.useState)(new Date),[c,o]=(0,d.useState)(!0);(0,d.useEffect)(()=>{o(!0),fetch("/api/calendar").then(e=>e.json()).then(e=>{a(Array.isArray(e)?e:[]),o(!1)}).catch(e=>{console.error("Failed to fetch events:",e),a([]),o(!1)})},[]);let m=(0,d.useMemo)(()=>
1l.toLocaleString("default",{month:"long"}),[l]),h=(0,d.useMemo)(()=>l.getFullYear(),[l]),x=(0,d.useCallback)(()=>{i(e=>{let t=new Date(e);return"month"===s?t.setMonth(t.getMonth()-1):t.setDate(t.getDate()-7),t})},[s]),g=(0,d.useCallback)(()=>{i(e=>{let t=new Date(e);return"month"===s?t.setMonth(t.getMonth()+1):t.setDate(t.getDate()+7),t})},[s]),u=(0,d.useMemo)(()=>{let e=[],t=new Date(l.getFullYear(),l.getMonth(),1),a=t.getDay();t.setDate(t.getDate()-a);for(let a=0;a<35;a++)e.push(new Date(t)),t.setDate(t.getDate()+1);return e},[l]),p=(0,d.useMemo)(()=>{let e=new Date(l),t=e.getDay();e.setDate(e.getDate()-t);let a=[];for(let t=0;t<7;t++)a.push(new Date(e)),e.setDate(e.getDate()+1);return a},[l]),f=(0,d.useMemo)(()=>{let t="month"===s?u:p,a=t[0],r=t[t.length-1];return(Array.isArray(e)?e:[]).filter(e=>{let t=new Date(e.start);return t>=a&&t<=r})},[e,s,u,p]),b=(0,d.useMemo)(()=>{let e={};return f.forEach(t=>{let a=new Date(t.start).toDateString();e[a]||(e[a]=[]),e[a].push(t)}),e},[f]);return(0,t.jsx)("section",{className:"w-full bg-[#f0ede4] py-20 md:py-28",children:(0,t.jsxs)("div",{className:"site-container flex flex-col gap-y-10",children:[(0,t.jsxs)("div",{className:"grid gap-5 border-b border-charcoal/12 pb-8 md:grid-cols-[1fr_auto] md:items-end",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("span",{className:"flex h-12 w-12 items-center justify-center rounded-full border border-emerald/15 bg-white text-emerald",children:(0,t.jsx)(D.CalendarDays,{className:"h-5 w-5"})}),(0,t.jsx)("h2",{className:"section-title text-charcoal",children:"MSA Calendar"})]}),(0,t.jsx)("p",{className:"text-base text-muted-foreground md:text-lg",children:"Explore out upcoming events!"})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-between gap-4 sm:flex-row sm:items-center",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(_.Button,{variant:"ghost",size:"icon",onClick:x,className:"flex h-10 w-10 items-center justify-center rounded-full border border-charcoal/10 bg-card transition hover:border-emerald/30 hover:bg-white","aria-label":"Previous",children:(0,t.jsx)(T.ChevronLeft,{className:"w-5 h-5 text-charcoal"})}),(0,t.jsxs)("h3",{className:"min-w-36 text-center text-xl font-semibold text-charcoal",children:[m," ",h]}),(0,t.jsx)(_.Button,{variant:"ghost",size:"icon",onClick:g,className:"flex h-10 w-10 items-center justify-center rounded-full border border-charcoal/10 bg-card transition hover:border-emerald/30 hover:bg-white","aria-label":"Next",children:(0,t.jsx)(C.ChevronRight,{className:"w-5 h-5 text-charcoal"})})]}),(0,t.jsxs)("div",{className:"flex w-fit gap-1 rounded-full border border-charcoal/10 bg-white/60 p-1",children:[(0,t.jsxs)(_.Button,{variant:"ghost",onClick:()=>r("month"),className:`h-auto flex items-center gap-1 rounded-full border border-transparent px-4 py-2 text-sm font-semibold transition ${"month"===s?"bg-forest text-white shadow-sm hover:bg-forest hover:text-white":"text-muted-foreground hover:bg-white hover:text-emerald hover:cursor-pointer"}`,children:[(0,t.jsx)(n.Calendar,{className:"w-4 h-4"}),"Month"]}),(0,t.jsxs)(_.Button,{variant:"ghost",onClick:()=>r("week"),className:`h-auto flex items-center gap-1 rounded-full border border-transparent px-4 py-2 text-sm font-semibold transition ${"week"===s?"bg-forest text-white shadow-sm hover:bg-forest hover:text-white":"text-muted-foreground hover:bg-white hover:text-emerald hover:cursor-pointer"}`,children:[(0,t.jsx)(S,{className:"w-4 h-4"}),"Week"]})]})]}),c&&(0,t.jsxs)("div",{className:"text-center py-12",children:[(0,t.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-charcoal border-t-transparent rounded-full animate-spin"}),(0,t.jsx)("p",{className:"mt-4 text-charcoal",children:"Loading events..."})]}),!c&&"month"===s&&(0,t.jsx)("div",{className:"overflow-x-auto rounded-[1.25rem] border border-charcoal/10 bg-card shadow-[0_18px_45px_rgba(24,35,31,0.06)]",children:(0,t.jsxs)("div",{className:"grid min-w-[46rem] grid-cols-7 overflow-hidden",children:[["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(e=>(0,t.jsx)("div",{className:"border-b border-charcoal/10 bg-forest px-3 py-4 text-center text-xs font-bold uppercase tracking-[0.12em] text-white/65",children:e},e)),u.map(e=>{let a=e.toISOString(),s=e.getMonth()===l.getMonth(),r=b[e.toDateString()]||[];return(0,t.jsxs)("div",{className:`min-h-28 border-b border-r border-charcoal/8 p-3 text-sm transition-all ${s?"bg-card":"bg-muted/45 text-gray-400"} hover:bg-emerald/5`,children:[(0,t.jsx)("div",{className:"font-semibold mb-1",children:e.getDate()}),r.length>0?(0,t.jsx)("ul",{className:"space-y-1",children:r.map(e=>(0,t.jsx)("li",{className:"truncate rounded-md border-l-4 bg-emerald/8 px-2 py-1 text-xs font-medium text-charcoal",style:{borderColor:e.color||"#2e2d2c"},children:e.title},e.id))}):(0,t.jsx)("div",{className:"text-[11px] text-gray-400 italic",children:"No events"})]},a)})]})}),!c&&"week"===s&&(0,t.jsxs)("div",{className:"w-full overflow-x-auto rounded-[1.25rem] border border-charcoal/10 bg-card shadow-[0_18px_45px_rgba(24,35,31,0.06)]",children:[(0,t.jsxs)("div",{className:"grid min-w-[52rem] grid-cols-[60px_repeat(7,1fr)] border-b bg-forest text-sm font-semibold text-white/75",children:[(0,t.jsx)("div",{className:"p-2 text-center",children:"Time"}),p.map(e=>(0,t.jsx)("div",{className:"p-2 text-center border-l",children:e.toLocaleDateString("en-CA",{weekday:"short",day:"numeric"})},e.toDateString()))]}),(0,t.jsx)("div",{className:"relative grid h-[700px] min-w-[52rem] grid-cols-[60px_repeat(7,1fr)] overflow-y-auto",children:Array.from({length:24},(e,a)=>(0,t.jsxs)("div",{className:"contents border-t text-[11px] text-gray-500",children:[(0,t.jsx)("div",{className:"p-1 text-right pr-1 border-r",children:0===a?"12 AM":a<12?`${a} AM`:12===a?"12 PM":`${a-12} PM`}),p.map(e=>(0,t.jsx)("div",{className:"relative border-r h-[28px]",children:b[e.toDateString()]?.filter(e=>new Date(e.start).getHours()===a).map(e=>{let a=new Date(e.start),s=new Date(e.end||e.start),r=(s.getTime()-a.getTime())/36e5,l=a.getMinutes()/60*28,i=Math.max(28*r,18);return(0,t.jsx)("div",{className:"absolute left-1 right-1 bg-beige/50 border-l-4 text-[11px] p-1 rounded-md shadow-sm text-charcoal overflow-hidden",style:{borderColor:e.color||"#2e2d2c",top:`${l}px`,height:`${i}px`},title:`${e.title} (${a.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}–${s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})`,children:e.title},e.id)})},`${e}-${a}`))]},a))})]})]})})}function $(){return(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("section",{className:"relative isolate flex min-h-[calc(100svh-4rem)] w-full items-end overflow-hidden bg-forest md:min-h-[calc(100svh-5rem)]",children:[(0,t.jsx)(h.default,{src:"/images/backgrounds/home-bg.jpg",alt:"MSA Backgroun
1d",fill:!0,priority:!0,quality:85,className:"-z-20 object-cover object-[52%_center] md:object-center"}),(0,t.jsx)("div",{className:"absolute inset-0 -z-10 bg-[linear-gradient(90deg,rgba(3,24,18,0.88)_0%,rgba(3,24,18,0.56)_48%,rgba(3,24,18,0.18)_78%),linear-gradient(0deg,rgba(3,24,18,0.86)_0%,transparent_58%)]"}),(0,t.jsx)("div",{className:"absolute inset-0 -z-10 opacity-55 [background-image:radial-gradient(rgba(255,255,255,0.12)_0.7px,transparent_0.7px)] [background-size:6px_6px]"}),(0,t.jsxs)("div",{className:"site-container relative pb-14 pt-36 text-left sm:pb-20 md:pb-24",children:[(0,t.jsxs)("div",{className:"mb-7 flex items-center gap-3",children:[(0,t.jsx)("span",{className:"h-0.5 w-12 bg-uc-red"}),(0,t.jsx)("span",{className:"h-0.5 w-7 bg-gold"})]}),(0,t.jsx)("h1",{className:"max-w-5xl font-display text-[clamp(3.35rem,8.7vw,8.75rem)] font-bold leading-[0.86] tracking-[-0.06em] text-white drop-shadow-sm",children:"Muslim Students' Association"}),(0,t.jsxs)("div",{className:"mt-9 flex flex-col gap-5 border-t border-white/20 pt-6 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsxs)("h2",{className:"flex items-center gap-3 text-lg font-semibold text-white/85 sm:text-xl",children:[(0,t.jsx)("span",{className:"flex h-10 w-10 items-center justify-center rounded-full border border-white/20 bg-white/10 backdrop-blur-sm",children:(0,t.jsx)(h.default,{src:"/images/logos/ucinterlock.png",alt:"UCalgary logo",height:128,width:128,className:"h-6 w-6"})}),"University of Calgary"]}),(0,t.jsx)("p",{className:"font-display text-xl font-semibold italic tracking-[-0.025em] text-gold sm:text-2xl",children:"More than a club. A family."})]})]})]}),(0,t.jsx)(M,{}),(0,t.jsx)(u,{}),(0,t.jsx)(E,{})]})}e.s(["default",()=>$],952683)}]);

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.