(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{4887:(e,s,t)=>{"use strict";t.d(s,{N:()=>o});var l=t(3464);let o=async()=>(await l.A.get("".concat("https://www.samimramizfellowship.org/api","/classes"))).data},6600:(e,s,t)=>{"use strict";t.d(s,{default:()=>d});var l=t(5155),o=t(2115),i=t(6874),a=t.n(i),r=t(6766);let n={src:"/_next/static/media/favicon.6983628e.ico",height:512,width:512,blurWidth:0,blurHeight:0};var c=t(9911),h=t(4887);let d=()=>{let[e,s]=(0,o.useState)(!1),[t,i]=(0,o.useState)(null),[d,m]=(0,o.useState)(!1),[x,u]=(0,o.useState)(!1),[p,f]=(0,o.useState)([]),b=()=>{s(e=>!e)},w=e=>{i(t===e?null:e)},v=()=>{u(!0)};return(0,o.useEffect)(()=>{(async()=>{try{let e=await (0,h.N)();f(e)}catch(e){console.error("Failed to load classes for the menu:",e)}})()},[]),(0,o.useEffect)(()=>{let e=e=>{if(window.innerWidth<768)return;let s=e.target;s.closest(".dropdown")||s.closest(".dropdown-button")||d||i(null)};return document.addEventListener("mousemove",e),()=>{document.removeEventListener("mousemove",e)}},[d]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-0 flex justify-between items-center ",children:[(0,l.jsx)(r.default,{src:n,alt:"logo",className:"w-40"}),(0,l.jsx)("a",{href:"https://buy.stripe.com/00g9Cn2dkahvaVa6oq",className:"md:block px-5 h-10 rounded-md border-black border-2 text-black font-medium transition duration-300 hover:bg-[#BE4C19] hover:border-[#BE4C19] hover:text-white pt-[0.31rem]",children:"Donate Here"}),(0,l.jsx)("button",{className:"md:hidden flex items-center text-gray-700",onClick:b,children:(0,l.jsx)("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:e?"M6 18L18 6M6 6l12 12":"M4 6h16M4 12h16M4 18h16"})})})]}),(0,l.jsxs)("div",{className:"fixed inset-0 bg-[#BE4C19] text-white z-50 transform transition-transform duration-300 md:hidden ".concat(e?"translate-x-0":"-translate-x-full"),children:[(0,l.jsx)("button",{className:"absolute top-4 right-4 text-white",onClick:b,"aria-label":"Close menu",children:(0,l.jsx)("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,l.jsxs)("nav",{className:"flex flex-col items-start justify-center h-full space-y-6 px-6 font-semibold text-lg",children:[(0,l.jsx)(a(),{href:"/",onClick:b,children:"Home"}),(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsxs)("button",{className:"flex items-center justify-between w-full",onClick:()=>i("fellowship"===t?null:"fellowship"),children:[(0,l.jsx)("span",{children:"The Fellowship"}),(0,l.jsx)(c.Vr3,{className:"ml-2 transition-transform duration-300 ".concat("fellowship"===t?"rotate-180":"")})]}),(0,l.jsxs)("div",{className:"overflow-hidden transition-all duration-300 ".concat("fellowship"===t?"max-h-[40rem] mt-2":"max-h-0"),children:[p.map(e=>(0,l.jsxs)(a(),{href:"/classes/?year=".concat(e.year),onClick:b,className:"block py-1",children:["Class ",e.year]},e.id)),(0,l.jsx)(a(),{href:"/the-fellowship/#overview",onClick:b,className:"block py-1",children:"Overview"}),(0,l.jsx)(a(),{href:"/the-fellowship/#mission",onClick:b,className:"block py-1",children:"Our Mission"}),(0,l.jsx)(a(),{href:"/the-fellowship/#program",onClick:b,className:"block py-1",children:"Program Structure"}),(0,l.jsx)(a(),{href:"/the-fellowship/#process",onClick:b,className:"block py-1",children:"Application Process"})]})]}),(0,l.jsx)(a(),{href:"/biography",onClick:b,children:"About Us"}),(0,l.jsx)(a(),{href:"/blogs",onClick:b,children:"Blogs"}),(0,l.jsx)(a(),{href:"/contact-us",onClick:b,children:"Contact Us"}),(0,l.jsx)("button",{onClick:()=>{b(),v()},className:"bg-white text-black px-4 py-2 rounded-md shadow-md hover:bg-black hover:text-white font-medium",children:"Apply"})]})]}),(0,l.jsx)("nav",{className:"hidden md:block bg-[#BE4C19] shadow-md",children:(0,l.jsx)("div",{className:"max-w-6xl mx-auto w-full px-4 sm:px-6 lg:px-0",children:(0,l.jsxs)("div",{className:"flex justify-between items-center py-3",children:[(0,l.jsx)("div",{}),(0,l.jsx)("div",{}),(0,l.jsxs)("div",{className:"hidden md:flex justify-around items-center space-x-20 font-bold text-white",children:[(0,l.jsx)(a(),{href:"/",className:"text-white font-medium hover:text-black",children:"Home"}),(0,l.jsxs)("div",{className:"relative dropdown",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[(0,l.jsx)("button",{className:"dropdown-button text-white hover:text-black",onMouseEnter:()=>w("fellowship"),children:(0,l.jsxs)("span",{className:"flex items-center font-medium",children:["The Fellowship"," ",(0,l.jsx)("span",{className:"ms-2",children:(0,l.jsx)(c.Vr3,{})})]})}),"fellowship"===t&&(0,l.jsxs)("div",{className:"absolute left-0 z-50",children:[(0,l.jsx)("div",{className:"pt-[1.39rem] "}),(0,l.jsxs)("div",{className:" w-44 font-light bg-white border text-sm transition-all duration-300",children:[p.map(e=>(0,l.jsxs)(a(),{href:"/classes/?year=".concat(e.year),className:"block px-4 py-2 text-black hover:bg-gray-100 font-medium",onClick:()=>i(null),children:["Class ",e.year]},e.id)),(0,l.jsx)(a(),{href:"/the-fellowship/#overview",className:"block px-4 py-2 text-black hover:bg-gray-100 font-medium",onClick:()=>i(null),children:"Overview"}),(0,l.jsx)(a(),{href:"/the-fellowship/#mission",className:"block px-4 py-2 text-black hover:bg-gray-100 font-medium",onClick:()=>i(null),children:"Our Mission"}),(0,l.jsx)(a(),{href:"/the-fellowship/#program",className:"block px-4 py-2 text-black hover:bg-gray-100 font-medium",onClick:()=>i(null),children:"Program Structure"}),(0,l.jsx)(a(),{href:"/the-fellowship/#process",className:"block px-4 py-2 text-black hover:bg-gray-100 font-medium",onClick:()=>i(null),children:"Application Process"})]})]})]}),(0,l.jsx)(a(),{href:"/biography",className:"text-white hover:text-black font-medium",children:"About Us"}),(0,l.jsx)(a(),{href:"/blogs",className:"text-white hover:text-black font-medium",children:"Blogs"}),(0,l.jsx)(a(),{href:"/contact-us",className:"text-white hover:text-black font-medium",children:"Contact Us"})]}),(0,l.jsx)("button",{onClick:v,className:"bg-white text-black px-4 py-2 rounded-md shadow-md hover:bg-black hover:text-white font-medium transition duration-300 pb-3",children:"Apply"})]})})}),x&&(0,l.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",children:(0,l.jsxs)("div",{className:"bg-white p-6 rounded-lg shadow-lg max-w-md w-full",children:[(0,l.jsx)("h2",{className:"text-lg font-bold text-center mb-2",children:"2026 Applications are Closed"}),(0,l.jsx)("p",{children:"Applications for Class 2027 will open in September 2026."}),(0,l.jsx)("button",{className:"mt-4 px-4 py-2 text-white bg-[#BE4C19] rounded-md hover:bg-black",onClick:()=>{u(!1)},children:"Close"})]})})]})}},7781:(e,s,t)=>{Promise.resolve().then(t.t.bind(t,9324,23)),Promise.resolve().then(t.bind(t,6600)),Promise.resolve().then(t.t.bind(t,4638,23))},9324:()=>{}},e=>{var s=s=>e(e.s=s);e.O(0,[533,711,464,766,874,855,441,684,358],()=>s(7781)),_N_E=e.O()}]);