PageSourceSearch

https://www.mda.mv/_next/static/chunks/app/(main)/events/page-b5e6…?dpl=dpl_EBwzaj1FU1n7Dew5f4VwrXVhGj4P

js mda.mv collected 2026-10-02 20:33:55 UTC 12,693 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4545],{64269:(e,t,s)=>{"use strict";s.d(t,{cn:()=>i});var a=s(2821),r=s(75889);function i(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,r.QP)((0,a.$)(t))}},65189:(e,t,s)=>{"use strict";s.d(t,{I:()=>n,o:()=>o});var a=s(95155),r=s(12115);let i={en:{home:"Home",mda:"MDA",news:"News",events:"Events",majilis:"Majilis",leadership:"Leadership",committees:"Committees",aboutUs:"About Us",hero_title:"MDA",hero_subtitle:"Maldivian Democratic Alliance",upcoming_events:"Upcoming Events",recent_news:"Recent News",core_values:"Our Core Values",core_value_1:"Individual freedom and civil rights",core_value_2:"Equal opportunities for all citizens",core_value_3:"Social stability and economic development",core_value_4:"Religious values rooted in Islam",core_value_5:"Decentralized, people-first governance",become_member:"Become a Member",join_member_title:"JOIN US AS A MEMBER NOW",apply_membership:"Apply for membership",leadership_title:"MDA Leadership",leadership_subtitle:"Party Leaders & Committee Chairpersons",executive_leadership:"Executive Leadership",committee_chairpersons:"Committee Chairpersons",party_leader:"Party Leader",deputy_leader:"Deputy Leader/Presidential Advisor",chairperson:"Chairperson",committees_title:"MDA Committees",committees_subtitle:"Committee Structure & Members",leadership_section:"Leadership",members_section:"Members",vice_chairperson:"Vice Chairperson",member:"Member",majilis_title:"Majilis",majilis_subtitle:"Regional Representatives",atoll_representatives:"Atoll Representatives",one_per_atoll:"One representative from each atoll and city",dev_council:"MDA Development Council",social_economic:"Social & Economic Council",media_council:"MDA Media Council",women_council:"Women's Council",youth_council:"MDA Youth Council",sports_council:"Sports & Recreation Council",dheene_majlis:"Dheene Majlis",social_feed:"Social Feed",social_feed_description:"Stay connected with us on social media",latest_news:"Latest News",news_page_description:"Stay updated with the latest announcements, achievements, and updates from our community.",all_news:"All News",events_page_title:"Events",events_page_description:"Join us for upcoming events and explore what we've accomplished in the past.",past_events:"Past Events",to_be_announced:"To be announced",view_more:"View More",read_more:"Read More",register:"Register",phone_number:"Phone number",email_us:"Email us",sitemap:"Sitemap",people:"People",about:"About",all_rights_reserved:"All rights reserved."},dv:{home:"ފުރަތަމަ",mda:"އެމްޑީއޭ",news:"ޚަބަރު",events:"ހަރަކާތްތައް",majilis:"މަޖިލިސް",leadership:"ލީޑަރޝިޕް",committees:"ކޮމިޓީތައް",hero_title:"އެމްޑީއޭ",hero_subtitle:"ދިވެހި ޑިމޮކްރެޓިކް އެލަޔަންސް",upcoming_events:"ކުރިއަށް އޮތް ހަރަކާތްތައް",recent_news:"ފަހުގެ ޚަބަރުތައް",core_values:"އަސާސީ އުސޫލުތައް",core_value_1:"ފަރުދީ މިނިވަންކަމާއި ރައްޔިތުންގެ ހައްގުތައް",core_value_2:"ހުރިހާ ރައްޔިތުންނަށް އެއްވަރުގެ ފުރުސަތު",core_value_3:"އިޖްތިމާއީ ސަލާމަތާއި އިގްތިސާދީ ތަރައްގީ",core_value_4:"އިސްލާމް ދީނުގައި ލެނބޭ ދީނީ އުސޫލުތައް",core_value_5:"ރައްޔިތުންނަށް އިސްކަންދޭ ރަށުކަނޑު އަވަށްޓެރިކަން",become_member:"މެމްބަރަކަށް ވުން",join_member_title:"މެމްބަރުކަން ހޯދާ",apply_membership:"އެޕްލައި ކުރޭ",leadership_title:"އެމްޑީއޭ ލީޑަރޝިޕް",leadership_subtitle:"ޕާޓީގެ ލީޑަރުންނާއި ކޮމިޓީ ޗެއަރޕާސަންސް",executive_leadership:"އެގްޒެކެޓިވް ލީޑަރޝިޕް",committee_chairpersons:"ކޮމިޓީ ޗެއަރޕާސަންސް",party_leader:"ޕާޓީ ލީޑަރ",deputy_leader:"ޑެޕިއުޓީ ލީޑަރ/ރައީސުލްޖުމްހޫރިއްޔާގެ މަޝްވަރާދޭ ބޭފުޅާ",chairperson:"ޗެއަރޕާސަން",committees_title:"އެމްޑީއޭ ކޮމިޓީތައް",committees_subtitle:"ކޮމިޓީގެ ހަރުދަނާ އިންތިޒާމާއި މެމްބަރުން",leadership_section:"ލީޑަރޝިޕް",members_section:"މެމްބަރުން",vice_chairperson:"ނައިބު ރައީސް",member:"މެމްބަރު",majilis_title:"މަޖިލިސް",majilis_subtitle:"ސަރަހައްދީ ވަކީލުން",atoll_representatives:"އަތޮޅުތަކުގެ ވަކީލުން",one_per_atoll:"ކޮންމެ އަތޮޅަކާއި ސިޓީއަކުން އެކަކު",dev_council:"އެމްޑީއޭ ތަރައްގީ މަޖިލިސް",social_economic:"އިޖްތިމާއީ އަދި އިގްތިސާދީ މަޖިލިސް",media_council:"އެމްޑީއޭ މީޑިއާ މަޖިލިސް",women_council:"ނިސާ މަޖިލިސް",youth_council:"އެމްޑީއޭ ޒުވާން މަޖިލިސް",sports_council:"ކުޅިވަރާއި ރެކްރިއޭޝަން މަޖިލިސް",dheene_majlis:"ދީނީ މަޖިލިސް",social_feed:"ސޯޝަލް ފީޑް",social_feed_description:"ސޯޝަލް މީޑިއާގައި އަހަރެމެންނާއި ގުޅިގެން",latest_news:"ފަހުގެ ޚަބަރުތައް",news_page_description:"ޖަމާއަތުގެ އެންމެ ފަހުގެ އިއުލާންތަކާއި ކާމިޔާބީތަކާއި އަޕްޑޭޓްތައް",all_news:"ހުރިހާ ޚަބަރުތައް",events_page_title:"ހަރަކާތްތައް",events_page_description:"ކުރިއަށް އޮތް ހަރަކާތްތަކާއި ފަހުގެ ހަރަކާތްތައް ބައްލަވާލައްވާ",past_events:"ފާއިތުވި ހަރަކާތްތައް",to_be_announced:"އިއުލާންކުރެވޭނެ",view_more:"ތަފްޞީލް",read_more:"އިތުރަށް ކިޔާލާ",register:"ރަޖިސްޓަރ ކުރޭ",phone_number:"ފޯން ނަންބަރު",email_us:"އީމެއިލް",sitemap:"ސައިޓްމެޕް",people:"މީހުން",about:"އަހަރެމެންގެ ވާހަކަ",all_rights_reserved:"ހުރިހާ ހައްގުތަކެއް ހިފަހައްޓައި."}},l=(0,r.createContext)(void 0);function n(e){let{children:t}=e,[s,n]=(0,r.useState)("en");return(0,a.jsx)(l.Provider,{value:{language:s,setLanguage:n,t:e=>i[s][e]||e},children:t})}function o(){let e=(0,r.useContext)(l);if(void 0===e)throw Error("useLanguage must be used within a LanguageProvider");return e}},86948:(e,t,s)=>{"use strict";s.d(t,{BT:()=>o,Wu:()=>c,ZB:()=>n,Zp:()=>i,aR:()=>l,wL:()=>d});var a=s(95155);s(12115);var r=s(64269);function i(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,r.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...s})}function l(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...s})}function n(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("leading-none font-semibold",t),...s})}function o(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-muted-foreground text-sm",t),...s})}function c(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",t),...s})}function d(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center px-6 [.border-t]:pt-6",t),...s})}},87745:(e,t,s)=>{Promise.resolve().then(s.bind(s,95664))},95664:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>u});var a=s(95155),r=s(86948),i=s(26438),l=s(15239),n=s(52619),o=s.n(n),c=s(65189),d=s(12115);async function m(){try{let e=await fetch("".concat("http://localhost:3000","/api/events?limit=50"),{cache:"no-store"});if(!e.ok)throw Error("Failed to fetch events");let t=await e.json();return t.success?t.data:[]}catch(e){return console.error("Error fetching events:",e),[]}}function u(){let{language:e,t}=(0,c.o)(),[s,n]=(0,d.useState)([]);(0,d.useEffect)(()=>{m().then(n)},[]);let u=new Date,p=s.filter(e=>new Date(e.endDate)>=u),h=s.filter(e=>new Date(e.endDate)<u);return(0,a.jsx)("div",{className:"w-full min-h-screen bg-background",dir:"dv"===e?"rtl":"ltr",style:{fontFamily:"dv"===e?"AK-Rasmee, serif":"inherit"},children:(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-5 md:px-16 lg:px-2 py-12",children:[(0,a.jsxs)("div",{className:"mb-12",children:[(0,a.jsx)("h1",{className:"font-bebas text-6xl md:text-7xl text-foreground mb-4",children:t("events_page_title")}),(0,a.jsx)("p",{className:"text-muted-foreground text-lg max-w-2xl",children:t("events_page_description")})]}),p.length>0&&(0,a.jsxs)("section",{className:"mb-16",children:[(0,a.jsx)("h2",{className:"font-bebas text-4xl text-muted-foreground mb-6",children:t("upcoming_events")}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:p.map(e=>{var t,s,n;return(0,a.jsx)(o(),{href:"/events/".concat(e.slug),className:"group",children:(0,a.jsxs)(r.Zp,{className:"h-full border-black rounded-none overflow-hidden hover:shadow-lg transition-shadow duration-300",children:[(e.featuredImageUrl||e.featuredImage)&&(0,a.jsx)("div",{className:"relative w-full h-48 overflow-hidden",children:(0,a.jsx)(l.default,{src:e.featuredImageUrl||(null==(t=e.featuredImage)?void 0:t.url)||"",alt:(null==(s=e.featuredImage)?void 0:s.alt)||e.name,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-300"})}),(0,a.jsxs)(r.aR,{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"px-2 py-1 text-xs font-semibold bg-green-600 text-white",children:"UPCOMING"}),(0,a.jsx)("span",{className:"px-2 py-1 text-xs font-semibold bg-black text-white",children:null==(n=e.category)?void 0:n.toUpperCase()})]}),(0,a.jsx)(r.ZB,{className:"font-raleway text-2xl tracking-tight font-bold group-hover:underline",children:e.name}),(0,a.jsx)(r.BT,{className:"font-raleway line-clamp-3",children:e.description})]}),(0,a.jsx)(r.Wu,{children:(0,a.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,a.jsxs)("p",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"font-semibold",children:"\uD83D\uDCCD"}),e.location]}),(0,a.jsxs)("p",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"font-semibold",children:"\uD83D\uDCC5"}),(0,i.GP)(new Date(e.startDate),"MMM dd, yyyy"),e.endDate&&" - ".concat((0,i.GP)(new Date(e.endDate),"MMM dd, yyyy"))]})]})})]})},e.id)})})]}),h.length>0&&(0,a.jsxs)("section",{children:[(0,a.jsx)("h2",{className:"font-bebas text-4xl text-muted-foreground mb-6",children:t("past_events")}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:h.map(e=>{var t,s,n;return(0,a.jsx)(o(),{href:"/events/".concat(e.slug),className:"group",children:(0,a.jsxs)(r.Zp,{className:"h-full border-black rounded-none overflow-hidden hover:shadow-lg transition-shadow duration-300",children:[(e.featuredImageUrl||e.featuredImage)&&(0,a.jsx)("div",{className:"relative w-full h-48 overflow-hidden",children:(0,a.jsx)(l.default,{src:e.featuredImageUrl||(null==(t=e.featuredImage)?void 0:t.url)||"",alt:(null==(s=e.featuredImage)?void 0:s.alt)||e.name,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-300"})}),(0,a.jsxs)(r.aR,{className:"space-y-3",children:[(0,a.jsx)("span",{className:"px-2 py-1 text-xs font-semibold bg-black text-white w-fit",children:null==(n=e.category)?void 0:n.toUpperCase()}),(0,a.jsx)(r.ZB,{className:"font-raleway text-2xl tracking-tight font-bold group-hover:underline",children:e.name}),(0,a.jsx)(r.BT,{className:"font-raleway line-clamp-3",children:e.description})]}),(0,a.jsx)(r.Wu,{children:(0,a.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,a.jsxs)("p",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{children:"\uD83D\uDCCD"}),e.location]}),(0,a.jsxs)("p",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{children:"\uD83D\uDCC5"}),(0,i.GP)(new Date(e.startDate),"MMM dd, yyyy")]})]})})]})},e.id)})})]}),0===p.length&&0===h.length&&(0,a.jsx)("div",{className:"text-center py-20",children:(0,a.jsx)("p",{className:"text-muted-foreground text-base",children:"No events available yet. Check back soon!"})})]})})}}},e=>{e.O(0,[1356,2619,6438,1475,8441,1255,7358],()=>e(e.s=87745)),_N_E=e.O()}]);

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.