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.