PageSourceSearch

https://ucesco.org/_next/static/chunks/74e2a2296fd6906d.js

js ucesco.org collected 2026-10-04 04:10:36 UTC 57,180 bytes, 6 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,64007,e=>{"use strict";var s=e.i(43476),t=e.i(71645),a=e.i(57688),l=e.i(22016);e.i(77020);var r=e.i(38420),i=e.i(46391),n=e.i(16128),o=e.i(67881),d=e.i(62870),c=e.i(94179);e.i(74080);var m=e.i(91918),h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,a)=>{let l=(0,m.createSlot)(`Primitive.${a}`),r=t.forwardRef((e,t)=>{let{asChild:r,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(r?l:a,{...i,ref:t})});return r.displayName=`Primitive.${a}`,{...e,[a]:r}},{}),x="Progress",[p,u]=function(e,a=[]){let l=[],r=()=>{let s=l.map(e=>t.createContext(e));return function(a){let l=a?.[e]||s;return t.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[function(a,r){let i=t.createContext(r);i.displayName=a+"Context";let n=l.length;l=[...l,r];let o=a=>{let{scope:l,children:r,...o}=a,d=l?.[e]?.[n]||i,c=t.useMemo(()=>o,Object.values(o));return(0,s.jsx)(d.Provider,{value:c,children:r})};return o.displayName=a+"Provider",[o,function(s,l){let o=l?.[e]?.[n]||i,d=t.useContext(o);if(d)return d;if(void 0!==r)return r;throw Error(`\`${s}\` must be used within \`${a}\``)}]},function(...e){let s=e[0];if(1===e.length)return s;let a=()=>{let a=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let l=a.reduce((s,{useScope:t,scopeName:a})=>{let l=t(e)[`__scope${a}`];return{...s,...l}},{});return t.useMemo(()=>({[`__scope${s.scopeName}`]:l}),[l])}};return a.scopeName=s.scopeName,a}(r,...a)]}(x),[g,b]=p(x),j=t.forwardRef((e,t)=>{var a,l;let{__scopeProgress:r,value:i=null,max:n,getValueLabel:o=v,...d}=e;(n||0===n)&&!S(n)&&console.error((a=`${n}`,`Invalid prop \`max\` of value \`${a}\` supplied to \`Progress\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`));let c=S(n)?n:100;null===i||C(i,c)||console.error((l=`${i}`,`Invalid prop \`value\` of value \`${l}\` supplied to \`Progress\`. The \`value\` prop must be:
2  - a positive number
3  - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)
4  - \`null\` or \`undefined\` if the progress is indeterminate.
5
6Defaulting to \`null\`.`));let m=C(i,c)?i:null,x=w(m)?o(m,c):void 0;return(0,s.jsx)(g,{scope:r,value:m,max:c,children:(0,s.jsx)(h.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":w(m)?m:void 0,"aria-valuetext":x,role:"progressbar","data-state":N(m,c),"data-value":m??void 0,"data-max":c,...d,ref:t})})});j.displayName=x;var f="ProgressIndicator",y=t.forwardRef((e,t)=>{let{__scopeProgress:a,...l}=e,r=b(f,a);return(0,s.jsx)(h.div,{"data-state":N(r.value,r.max),"data-value":r.value??void 0,"data-max":r.max,...l,ref:t})});function v(e,s){return`${Math.round(e/s*100)}%`}function N(e,s){return null==e?"indeterminate":e===s?"complete":"loading"}function w(e){return"number"==typeof e}function S(e){return w(e)&&!isNaN(e)&&e>0}function C(e,s){return w(e)&&!isNaN(e)&&e<=s&&e>=0}y.displayName=f;var k=e.i(47163);function I({className:e,value:t,...a}){return(0,s.jsx)(j,{"data-slot":"progress",className:(0,k.cn)("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...a,children:(0,s.jsx)(y,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}var A=e.i(23750),P=e.i(90597),M=e.i(69638);let B=(0,e.i(75254).default)("gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);var W=e.i(55436),D=e.i(72520),T=e.i(73375),R=e.i(63059),$=e.i(32095),E=e.i(65960),G=e.i(46897),L=e.i(87316),q=e.i(30374),z=e.i(7269),O=e.i(67611),U=e.i(32549),F=e.i(31278),Y=e.i(61659),H=e.i(70137);e.i(71312);var Z=e.i(70317),V=e.i(72754),_=e.i(80384),K=e.i(13581);let J={"one-time":[{value:25},{value:100},{value:250},{value:500}
6,{value:1250,label:"Support 1 child for 1-year"},{value:5e3,label:"Support 1 child for 4-years"}],monthly:[{value:315,label:"Support 3 children"},{value:210,label:"Support 2 children"},{value:105,label:"Support 1 child"},{value:36,label:"Give school supplies"}],yearly:[{value:1e4,label:"Support 2 children for 4 years"},{value:5e3,label:"Support 1 child for 4 years"},{value:1250,label:"Support 1 child for 1 year"},{value:700,label:"Give 1-yr tertiary scholarship"}]},Q=[{key:"one-time",label:"One-time"},{key:"monthly",label:"Monthly"},{key:"yearly",label:"Yearly"}];function X(){let[e,a]=(0,t.useState)("monthly"),[l,r]=(0,t.useState)(null),[i,n]=(0,t.useState)(""),[o,d]=(0,t.useState)(!1),[c,m]=(0,t.useState)(""),[h,x]=(0,t.useState)(!1),[p,u]=(0,t.useState)("In honor of"),[g,b]=(0,t.useState)(""),[j,f]=(0,t.useState)(""),[y,v]=(0,t.useState)(""),[N,w]=(0,t.useState)(""),[S,C]=(0,t.useState)(""),[k,I]=(0,t.useState)("form"),{currency:A}=(0,_.useCurrency)(),P=(0,K.useDisplayAmount)(),[M,B]=(0,t.useState)(null),[W,D]=(0,t.useState)(""),[T,R]=(0,t.useState)(!1),[$,E]=(0,t.useState)(""),G=J[e].map(e=>({...e,value:P(e.value)})),L=()=>l??(i?parseFloat(i):null),q=async()=>{let s=L();if(!s)return void E("Please select or enter a donation amount.");if(!j.trim())return void E("Please enter your full name.");if(!y.trim())return void E("Please enter your email address.");E(""),R(!0);try{let t=await fetch("/api/payment/create-session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"donation",donorName:j.trim(),donorEmail:y.trim(),donorPhone:S||void 0,amount:s,displayCurrency:A,purpose:`Child Sponsorship (${e})`,message:[o&&c?c:null,h&&g?`${p} ${g}`:null].filter(Boolean).join(" | ")||void 0})}),a=await t.json();if(!a.success){E(a.error||"Failed to initialize payment."),R(!1);return}B(a.sessionId),D(a.orderId),I("payment"),R(!1)}catch{E("Something went wrong. Please try again."),R(!1)}},z=L();return(0,s.jsxs)("div",{className:"bg-white rounded-xl border border-slate-200 shadow-xl overflow-hidden flex flex-col w-full",children:[(0,s.jsx)("div",{className:"px-6 py-5 border-b border-slate-100 text-center",children:(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 justify-center",children:[(0,s.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M12 2L4 6v6c0 5.25 3.5 10.15 8 11.25C16.5 22.15 20 17.25 20 12V6l-8-4z",className:"fill-primary/20"}),(0,s.jsx)("path",{d:"M12 2L4 6v6c0 5.25 3.5 10.15 8 11.25C16.5 22.15 20 17.25 20 12V6l-8-4z",className:"stroke-primary",strokeWidth:"1.5",fill:"none"}),(0,s.jsx)("path",{d:"M9 12l2 2 4-4",className:"stroke-primary",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("h3",{className:"text-lg font-semibold text-slate-900",children:"form"===k?"Choose amount":"Complete Payment"})]})}),(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:["form"===k&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex bg-slate-100 rounded-lg p-1 gap-1",children:Q.map(({key:t,label:l})=>(0,s.jsx)("button",{onClick:()=>{a(t),r(null),n("")},className:`flex-1 py-2 text-sm rounded-md transition-all font-medium ${e===t?"bg-white text-primary border border-primary/30 shadow-sm":"text-slate-500 hover:text-slate-700"}`,children:l},t))}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-3",children:G.map(({value:e,label:t})=>{var a;return(0,s.jsxs)("button",{onClick:()=>{r(e),n("")},className:`p-3 rounded-xl border text-left transition-all ${l===e?"border-primary bg-primary/5":"border-slate-200 bg-slate-50 hover:border-primary/40"}`,children:[(0,s.jsx)("span",{className:`block text-lg font-semibold ${l===e?"text-primary":"text-slate-800"}`,children:(a=H.CURRENCY_META[A].symbol,e>=1e4?`${a}${(e/1e3).toFixed(0)}k`:e>=1e3?`${a}${e/1e3%1==0?(e/1e3).toFixed(0):(e/1e3).toFixed(1)}k`:`${a}${e}`)}),t&&(0,s.jsx)("span",{className:"block text-xs text-slate-500 mt-0.5 leading-tight",children:t})]},e)})}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400 text-sm",children:"$"}),(0,s.jsx)("input",{type:"number",min:1,placeholder:"Other",value:i,onChange:e=>{r(null),n(e.target.value)},className:"w-full pl-7 pr-14 py-3 border border-slate-200 rounded-xl bg-slate-50 text-slate-800 text-sm placeholder:text-slate-400 focus:outline-none focus:border-primary"}),(0,s.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 text-xs",children:"USD"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-slate-700",children:"Your details"}),(0,s.jsx)("input",{type:"text",value:j,onChange:e=>f(e.target.value),placeholder:"Full name *",required:!0,className:"w-full border border-slate-200 rounded-xl bg-slate-50 px-3 py-2.5 text-sm text-slate-800 placeholder:text-slate-400 focus:outline-none focus:border-primary"}),(0,s.jsx)("input",{type:"email",value:y,onChange:e=>v(e.target.value),placeholder:"Email address *",required:!0,className:"w-full border border-slate-200 rounded-xl bg-slate-50 px-3 py-2.5 text-sm text-slate-800 placeholder:text-slate-400 focus:outline-none focus:border-primary"}),(0,s.jsx)(O.CountryPhoneInput,{country:N,onCountryChange:w,phone:S,onPhoneChange:C,phoneRequired:!1,countryRequired:!1,phoneLabel:"Phone",countryLabel:"Country",phoneId:"sidebar-phone",countryId:"sidebar-country"})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("button",{onClick:()=>d(e=>!e),className:"flex items-center gap-2.5 w-full text-left",children:[(0,s.jsx)("span",{className:`w-5 h-5 rounded flex items-center justify-center flex-shrink-0 transition-colors ${o?"bg-primary":"bg-white border border-slate-300"}`,children:o&&(0,s.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none",children:(0,s.jsx)("path",{d:"M2 6l3 3 5-5",stroke:"white",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,s.jsx)("span",{className:"text-sm text-slate-800",children:"Add note/comment"})]}),o&&(0,s.jsx)("textarea",{value:c,onChange:e=>m(e.target.value),placeholder:"Enter comment for Kenya Education Fund...",rows:3,className:"mt-2 w-full border border-slate-200 rounded-xl bg-slate-50 px-3 py-2.5 text-sm text-slate-800 placeholder:text-slate-400 focus:outline-none focus:border-primary resize-none"})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("button",{onClick:()=>x(e=>!e),className:"flex items-center gap-2.5 w-full text-left",children:[(0,s.jsx)("span",{className:`w-5 h-5 rounded flex items-center justify-center flex-shrink-0 transition-colors ${h?"bg-primary":"bg-white border border-slate-300"}`,children:h&&(0,s.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none",children:(0,s.jsx)("path",{d:"M2 6l3 3 5-5",stroke:"white",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,s.jsx)("span",{className:"text-sm text-slate-800",children:"Give in honor/memory"})]}),h&&(0,s.jsx)("div",{className:"mt-2 flex flex-col gap-3",children:(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,s.jsxs)("select",{value:p,onChange:e=>u(e.target.value),className:"w-full sm:w-1/2 border border-slate-200 rounded-lg bg-slate-50 px-3 py-2 text-sm text-slate-800 focus:outline-none focus:border-primary",children:[(0,s.jsx)("option",{children:"In honor of"}),(0,s.jsx)("option",{children:"In memory of"})]}),(0,s.jsx)("input",{type:"text",value:g,onChange:e=>b(e.target.value),placeholder:"Honoree name",className:"w-full sm:w-1/2 border border-slate-200 rounded-lg bg-slate-50 px-3 py-2 text-sm text-slate-800 placeholder:text-slate-400 focus:outline-none focus:border-primary"})]})})]}),$&&(0,s.jsx)("p",{className:"text-sm text-red-600 bg-red-50 p-3 rounded-xl text-center",children:$}),(0,s.jsx)("button",{onClick:q,disabled:T,className:"w-full py-4 rounded-xl bg-primary hover:bg-primary/90 text-white font-semibold text-base transition-colors disabled:opacity-60 flex items-center justify-center gap-2",children:T?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(F.Loader2,{className:"h-4 w-4 animate-spin"}),"Processing..."]}
6):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Y.CreditCard,{className:"h-4 w-4"}),z?(0,s.jsxs)(s.Fragment,{children:["Donate ",(0,s.jsx)(V.DonorAmount,{value:z})," with Card"]}):"Continue"]})}),(0,s.jsx)(Z.ChargeNotice,{amount:z||0,className:"mt-2 text-center"}),(0,s.jsx)("p",{className:"text-xs text-center text-slate-500",children:"Secure payment powered by Mastercard Payment Gateway"})]}),"payment"===k&&M&&(0,s.jsx)(U.MpgsCheckout,{sessionId:M,orderId:W,paymentType:"donation",onCancel:()=>{I("form"),B(null)},onError:()=>{E("Payment failed. Please try again."),I("form"),B(null)},children:({openLightbox:e,isLoading:t})=>(0,s.jsxs)("div",{className:"space-y-4 text-center",children:[(0,s.jsxs)("div",{className:"p-6 rounded-xl bg-primary/5 border border-primary/10",children:[(0,s.jsx)(Y.CreditCard,{className:"h-10 w-10 text-primary mx-auto mb-3"}),(0,s.jsxs)("h3",{className:"text-lg font-semibold text-slate-900",children:["Ready to Pay ",(0,s.jsx)(V.DonorAmount,{value:z||0})]}),(0,s.jsx)("p",{className:"text-sm text-slate-600 mt-1 mb-4",children:"Click below to open the secure payment window"}),(0,s.jsx)("button",{onClick:e,disabled:t,className:"w-full py-3 rounded-xl bg-primary hover:bg-primary/90 text-white font-semibold text-base transition-colors disabled:opacity-60 flex items-center justify-center gap-2",children:t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(F.Loader2,{className:"h-4 w-4 animate-spin"}),"Loading payment..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Y.CreditCard,{className:"h-4 w-4"}),"Open Secure Payment"]})})]}),(0,s.jsx)("button",{type:"button",onClick:()=>{I("form"),B(null)},className:"text-sm text-slate-500 hover:text-slate-700 underline",children:"Go back and edit details"})]})})]})]})}var ee=e.i(11150),es=e.i(86448),et=e.i(10689);let ea=[{id:1,name:"Amina Wanjiku",graduationYear:"2022",course:"Bachelor of Education",location:"Mathare",quote:"Sponsorship didn't just pay my fees — it told me someone believed in me. Today I teach 40 children in Mathare, giving back what was given to me.",photo:"/images/Child_Sponsorship-/A-group-of students-with-sponsoship-cheque-with-their-teacher.jpg"},{id:2,name:"Brian Odhiambo",graduationYear:"2021",course:"Diploma in IT",location:"Kibera",quote:"I grew up in Kibera without hope of going to school. My sponsor changed that. I now work as a 
6software developer and sponsor two children myself.",photo:"/images/Child_Sponsorship-/A-group-of students-with-sponsoship-cheque-with-their-teacher.jpg"},{id:3,name:"Faith Cherotich",graduationYear:"2023",course:"Bachelor of Nursing",location:"Samburu",quote:"From a small village in Samburu to a registered nurse. I remember the day my sponsor's letter arrived — it was the happiest day of my childhood.",photo:"/images/Child_Sponsorship-/A-group-of students-with-sponsoship-cheque-with-their-teacher.jpg"},{id:4,name:"David Kiptoo",graduationYear:"2020",course:"Certificate in Agriculture",location:"Busia",quote:"My sponsor helped me complete school during the hardest years of my life. I now run a small farm and employ three people in my community.",photo:"/images/Child_Sponsorship-/A-group-of students-with-sponsoship-cheque-with-their-teacher.jpg"},{id:5,name:"Grace Nalwoga",graduationYear:"2023",course:"Bachelor of Commerce",location:"Kampala",quote:"The sponsorship program gave me stability when my family had none. Graduating was not just my achievement — it belongs to everyone who believed in me.",photo:"/images/Child_Sponsorship-/A-group-of students-with-sponsoship-cheque-with-their-teacher.jpg"}],el=["January","February","March","April","May","June","July","August","September","October","November","December"];function er(){let[e,l]=(0,t.useState)(0),[r,i]=(0,t.useState)(!1),[n,o]=(0,t.useState)(ea),[d,c]=(0,t.useState)(null);(0,t.useEffect)(()=>{fetch("/api/alumnis?populate=*&sort=order:asc&pagination[pageSize]=20").then(e=>e.json()).then(e=>{e?.data?.length>0&&o(e.data.map(e=>({id:e.id,name:e.name||"",graduationYear:e.year||"",course:e.program||e.role||"",location:e.country||"",quote:e.quote||"",photo:e.photo?.url?e.photo.url.startsWith("http")?e.photo.url:`https://ucesco.org${e.photo.url}`:"/images/Child_Sponsorship-/A-group-of students-with-sponsoship-cheque-with-their-teacher.jpg"})))}).catch(()=>{})},[]);let m=n.length,h=e=>{r||(i(!0),l((e+m)%m),setTimeout(()=>i(!1),500))};return(0,t.useEffect)(()=>{let s=setInterval(()=>h(e+1),6e3);return()=>clearInterval(s)},[e,m]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsxs)("div",{className:"relative rounded-xl overflow-hidden bg-white border border-slate-100 shadow-sm",children:[(0,s.jsx)("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${100*e}%)`},children:n.map(e=>(0,s.jsxs)("div",{className:"min-w-full grid lg:grid-cols-2 gap-0",children:[(0,s.jsxs)("div",{className:"relative h-64 lg:h-auto min-h-[380px]",children:[(0,s.jsx)(a.default,{src:e.photo,alt:e.name,fill:!0,loading:"lazy",quality:75,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",placeholder:"blur",blurDataURL:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9IiNlMmU4ZjAiLz48L3N2Zz4=",className:"object-cover"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-trans
6parent to-transparent lg:bg-gradient-to-r lg:from-transparent lg:to-black/5"}),(0,s.jsx)("div",{className:"absolute bottom-6 left-6",children:(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 bg-primary/80 text-white text-xs font-semibold px-4 py-2 rounded-full shadow-lg",children:[(0,s.jsx)($.GraduationCap,{className:"h-4 w-4"}),"Class of ",e.graduationYear]})})]}),(0,s.jsxs)("div",{className:"p-8 sm:p-10 flex flex-col justify-between bg-white",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(E.Quote,{className:"h-10 w-10 text-primary/10 mb-4",strokeWidth:2}),(0,s.jsxs)("p",{className:"text-slate-700 text-lg leading-relaxed italic line-clamp-6",children:["“",e.quote,"”"]}),e.quote.length>240&&(0,s.jsxs)("button",{onClick:()=>c(e),className:"mt-4 inline-flex items-center gap-1 text-sm font-semibold text-primary hover:text-primary/80 transition-colors cursor-pointer",children:["Read full story",(0,s.jsx)(R.ChevronRight,{className:"h-4 w-4"})]})]}),(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"flex items-end justify-between gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-bold text-slate-900 text-xl",children:e.name}),e.course&&(0,s.jsx)("p",{className:"text-sm text-primary font-semibold uppercase tracking-wider",children:e.course}),e.location&&(0,s.jsx)("p",{className:"text-xs text-slate-500 mt-1",children:e.location})]}),e.graduationYear&&(0,s.jsxs)("div",{className:"flex-shrink-0 text-right bg-slate-50 p-3 rounded-xl border border-slate-100",children:[(0,s.jsx)("p",{className:"text-[10px] uppercase font-bold text-slate-400 leading-none mb-1",children:"Class of"}),(0,s.jsx)("div",{className:"flex items-baseline justify-end gap-1",children:(0,s.jsx)("span",{className:"text-3xl font-black text-primary leading-none",children:e.graduationYear})})]})]})})]})]},e.id))}),(0,s.jsxs)("div",{className:"absolute top-1/2 -translate-y-1/2 left-0 right-0 flex justify-between px-4 pointer-events-none",children:[(0,s.jsx)("button",{onClick:()=>h(e-1),className:"w-10 h-10 cursor-pointer opacity-70 hover:opacity-90 rounded-full bg-white/90 backdrop-blur shadow-md flex items-center justify-center hover:bg-primary hover:text-white transition-all pointer-events-auto opacity-0 group-hover:opacity-100 -translate-x-2 group-hover:translate-x-0","aria-label":"Previous",children:(0,s.jsx)(T.ChevronLeft,{className:"h-5 w-5"})}),(0,s.jsx)("button",{onClick:()=>h(e+1),className:"w-10 h-10 cursor-pointer opacity-70 hover:opacity-90 rounded-full bg-white/90 backdrop-blur shadow-md flex items-center justify-center hover:bg-primary hover:text-white transition-all pointer-events-auto opacity-0 group-hover:opacity-100 translate-x-2 group-hover:translate-x-0","aria-label":"Next",children:(0,s.jsx)(R.ChevronRight,{className:"h-5 w-5"})})]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-8 mt-8",children:[(0,s.jsx)("div",{className:"flex items-center gap-2.5",children:n.map((t,a)=>(0,s.jsx)("button",{onClick:()=>h(a),className:`transition-all duration-300 rounded-full ${a===e?"bg-primary w-8 h-2":"bg-slate-200 hover:bg-slate-300 w-2 h-2"}`,"aria-label":`Go to graduate ${a+1}`},a))}),(0,s.jsx)("div",{className:"h-4 w-[1px] bg-slate-200"}),(0,s.jsxs)("p",{className:"font-mono text-[11px] font-bold text-slate-400 uppercase tracking-widest",children:[(0,s.jsx)("span",{className:"text-slate-900",children:String(e+1).padStart(2,"0")}),(0,s.jsx)("span",{className:"mx-1",children:"/"}),String(m).padStart(2,"0")," Graduates"]})]})]}),(0,s.jsx)(q.Dialog,{open:!!d,onOpenChange:e=>!e&&c(null),children:(0,s.jsx)(q.DialogContent,{className:"max-w-3xl max-h-[90vh] overflow-y-auto p-0 gap-0",children:d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"relative h-56 sm:h-72 w-full bg-slate-100",children:[(0,s.jsx)(a.default,{src:d.photo,alt:d.name,fill:!0,className:"object-cover",sizes:"(max-width: 768px) 100vw, 768px"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent"}),(0,s.jsxs)("div",{className:"absolute bottom-4 left-6 right-6 text-white",children:[(0,s.jsx)(q.DialogTitle,{className:"text-xl sm:text-2xl font-bold",children:d.name}),d.course&&(0,s.jsx)("p",{className:"text-sm text-white/90 font-medium mt
6-0.5 uppercase tracking-wider",children:d.course})]})]}),(0,s.jsxs)("div",{className:"px-6 sm:px-8 pt-6 pb-8",children:[(d.location||d.graduationYear)&&(0,s.jsxs)("div",{className:"flex flex-wrap gap-3 mb-6",children:[d.location&&(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium text-slate-600 bg-slate-100 rounded-full px-3 py-1.5",children:[(0,s.jsx)(G.MapPin,{className:"h-3.5 w-3.5"})," ",d.location]}),d.graduationYear&&(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium text-primary bg-primary/10 rounded-full px-3 py-1.5",children:[(0,s.jsx)(L.Calendar,{className:"h-3.5 w-3.5"})," Class of ",d.graduationYear]})]}),(0,s.jsx)(E.Quote,{className:"h-8 w-8 text-primary/20 mb-3",strokeWidth:2}),(0,s.jsx)("div",{className:"text-slate-700 text-base sm:text-lg leading-relaxed whitespace-pre-line",children:d.quote})]})]})})})]})}function ei({stats:e}){let[m,h]=(0,t.useState)([]),[x,p]=(0,t.useState)(!0),[u,g]=(0,t.useState)("all"),[b,j]=(0,t.useState)("all"),[f,y]=(0,t.useState)("all"),[v,N]=(0,t.useState)("all"),[w,S]=(0,t.useState)("all"),[C,k]=(0,t.useState)(""),[T,R]=(0,t.useState)(!1),[E,G]=(0,t.useState)(""),[L,q]=(0,t.useState)(),O=(0,K.useDisplayAmount)(),{currency:U}=(0,_.useCurrency)();(0,t.useEffect)(()=>{!async function(){try{let e=await (0,z.getChildren)();if(e.data&&e.data.length>0){let s=e.data.map(e=>{let s,t,a,l,r=e.photo?.url?(0,z.getStrapiMediaUrl)(e.photo.url):"/images/Child_Sponsorship-/A-group-of students-with-sponsoship-cheque-with-their-teacher.jpg",i=e.dateOfBirth||"2015-01-01",n=new Date(i),o={month:n.getMonth()+1,day:n.getDate()},d=e.fundingGoal||360,c=e.fundingReceived||0;return{id:e.id,code:e.code,firstName:e.firstName,dateOfBirth:i,age:(s=new Date(i),a=(t=new Date).getFullYear()-s.getFullYear(),((l=t.getMonth()-s.getMonth())<0||0===l&&t.getDate()<s.getDate())&&a--,a),gender:e.gender,location:e.location,birthday:o,category:e.category||"",fundingGoal:d,fundingReceived:c,bio:e.bio,needs:e.needs,photo:r}});h(s)}}catch{}finally{p(!1)}}()},[]);let F=m.filter(e=>("all"===u||e.gender===u)&&("all"===b||e.location===b)&&("5-8"!==f||!(e.age<5)&&!(e.age>8))&&("9-12"!==f||!(e.age<9)&&!(e.age>12))&&("13-17"!==f||!(e.age<13)&&!(e.age>17))&&("18+"!==f||!(e.age<18))&&("all"===v||e.birthday.month===parseInt(v))&&("all"===w||e.category===w)&&(!C||!!e.firstName.toLowerCase().includes(C.toLowerCase()))&&!0);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.Hero,{title:"Sponsor a Child",description:"Transform a child's life through needs-based support and sponsorship",backgroundImage:"/hero-images/SPONSOR-PAGE/IMG_9433.JPG",overlay:!0,overlayColor:"primary",backgroundPosition:"bg-center",size:"md"}),(0,s.jsx)(i.Section,{className:"py-14 sm:py-20 lg:py-24 bg-primary/5",children:(0,s.jsx)(n.Container,{children:(0,s.jsxs)("div",{className:"mx-auto max-w-6xl space-y-16",children:[(0,s.jsxs)("div",{className:"grid lg:grid-cols-2 gap-10 lg:gap-16 items-center",children:[(0,s.jsx)("div",{className:"relative aspect-[4/3] overflow-hidden rounded-2xl shadow-xl",children:(0,s.jsx)(a.default,{src:"/images/Child_Sponsorship-/sponsor-with two-children-one-year-sponsor.jpg",alt:"Children in vulnerable communities",fill:!0,className:"object-cover"})}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("h2",{className:"font-display text-3xl sm:text-4xl font-bold text-slate-900",children:"Give a Child the Gift of Tomorrow"}),(0,s.jsx)("p",{className:"text-slate-600 leading-relaxed",children:"Every child deserves a chance to learn, to grow, and to dream beyond their circumstances. Yet across vulnerable communities in Kenya and Uganda, thousands of children wake up each day uncertain of their next meal or whether they will ever step into a classroom again."}),(0,s.jsx)("p",{className:"text-slate-600 leading-relaxed",children:"At UCESCO Africa, we believe no child's future should be determined by poverty. Behind every small face is a big dream: a future doctor, teacher, leader, or changemaker, waiting for someone to believe in them."})]})]}),(0,s.jsxs)("div",{className:"grid lg:grid-cols-2 gap-10 lg:gap-16 items-center",children:[(0,s.jsxs)("div",{className:"space-y-4 order-2 lg:order-1",children:[(0,s.jsx)("h2",{className:"font-display text-3xl sm:text-4xl font-bold text-slate-900",children:"Be the Someone Who Changes Everything"}),(0,s.jsx)("p",{className:"text-slate-600 leading-relaxed",children:"Through our Sponsor A Child program, your monthly support becomes more than a donation. It becomes hope, dignity, and opportunity. It keeps a child in school, nourished, protected, and inspired to build a better future."}),(0,s.jsx)("p",{className:"text-slate-600 leading-relaxed",children:"This is more than sponsorship. It's a lifeline. It's the difference between hopelessness and possibility."})]}),(0,s.jsx)("div",{className:"relative aspect-[4/3] overflow-hidden rounded-2xl shadow-xl order-1 lg:order-2",children:(0,s.jsx)(a.default,{src:"/images/Programs/very-touchy-hug-with-a sponsor.jpg",alt:"Child supported through sponsorship",fill:!0,className:"object-cover"})})]})]})})}),(0,s.jsx)(i.Section,{className:"py-12 sm:py-16 lg:py-20 bg-white",children:(0,s.jsxs)(n.Container,{children:[(0,s.jsxs)("div",{className:"text-center mb-8 sm:mb-10",children:[(0,s.jsx)("h2",{className:"font-display text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl text-slate-900",children:"Meet the Children"}),(0,s.jsx)("p",{className:"mt-3 sm:mt-4 text-sm sm:text-base lg:text-lg text-slate-600",children:"Browse children waiting for sponsorship. Your support gives them a future."})]}),(0,s.jsxs)("div",{className:"mb-8 space-y-4",children:[(0,s.jsx)("div",{className:"max-w-md mx-auto",children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(W.Search,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400"}),(0,s.jsx)(A.Input,{type:"text",placeholder:"Search by name...",value:C,onChange:e=>k(e.target.value),className:"pl-10"})]})}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-3 justify-center",children:[(0,s.jsxs)(d.Select,{value:u,onValueChange:g,children:[(0,s.jsx)(d.SelectTrigger,{className:"w-[140px]",children:(0,s.jsx)(d.SelectValue,{placeholder:"Gender"})}),(0,s.jsxs)(d.SelectContent,{children:[(0,s.jsx)(d.SelectItem,{value:"all",children:"All Genders"}),(0,s.jsx)(d.SelectItem,{value:"Male",children:"Male"}),(0,s.jsx)(d.SelectItem,{value:"Female",children:"Female"})]})]}),(0,s.jsxs)(d.Select,{value:b,onValueChange:j,children:[(0,s.jsx)(d.SelectTrigger,{className:"w-[140px]",children:(0,s.jsx)(d.SelectValue,{placeholder:"Location"})}),(0,s.jsxs)(d.SelectContent,{children:[(0,s.jsx)(d.SelectItem,{value:"all",children:"All Locations"}),(0,s.jsx)(d.SelectItem,{value:"Samburu",children:"Samburu"}),(0,s.jsx)(d.SelectItem,{value:"Mathare",children:"Mathare"}),(0,s.jsx)(d.SelectItem,{value:"Kibera",children:"Kibera"}),(0,s.jsx)(d.SelectItem,{value:"Busia",children:"Busia"}),(0,s.jsx)(d.SelectItem,{value:"Kampala",children:"Kampala"})]})]}),(0,s.jsxs)(d.Select,{value:f,onValueChange:y,children:[(0,s.jsx)(d.SelectTrigger,{className:"w-[140px]",children:(0,s.jsx)(d.SelectValue,{placeholder:"Age"})}),(0,s.jsxs)(d.SelectContent,{children:[(0,s.jsx)(d.SelectItem,{value:"all",children:"All Ages"}),(0,s.jsx)(d.SelectItem,{value:"5-8",children:"5-8 years"}),(0,s.jsx)(d.SelectItem,{value:"9-12",children:"9-12 years"}),(0,s.jsx)(d.SelectItem,{value:"13-17",children:"13-17 years"}),(0,s.jsx)(d.SelectItem,{value:"18+",children:"18+ years"})]})]}),(0,s.jsxs)(d.Select,{value:v,onValueChange:N,children:[(0,s.jsx)(d.SelectTrigger,{className:"w-[160px]",children:(0,s.jsx)(d.SelectValue,{placeholder:"Birthday Month"})}),(0,s.jsxs)(d.SelectContent,{children:[(0,s.jsx)(d.SelectItem,{value:"all",children:"All Months"}),el.map((e,t)=>(0,s.jsx)(d.SelectItem,{value:String(t+1),children:e},t))]})]}),(0,s.jsxs)(d.Select,{value:w,onValueChange:S,children:[(0,s.jsx)(d.SelectTrigger,{className:"w-[160px]",children:(0,s.jsx)(d.SelectValue,{placeholder:"Category"})}),(0,s.jsxs)(d.SelectContent,{children:[(0,s.jsx)(d.SelectItem,{value:"all",children:"All Categories"}),(0,s.jsx)(d.SelectItem,{value:"Orphaned",children:"Orphaned"}),(0,s.jsx)(d.SelectItem,{value:"Has Disabilities",children:"Has Disabilities"}),(0,s.jsx)(d.SelectItem,{value:"Single Parent",children:"Single Parent"}),(0,s.jsx)(d.SelectItem,{value:"Vulnerable Family",children:"Vulnerable Family"})]})]})]}),!x&&m.length>0&&(0,s.jsxs)("p",{className:"text-center text-sm text-slate-500",children:["Showing ",F.length," of ",m.length," children"]})]}),(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row gap-8 items-start",children:[(0,s.jsx)("div",{className:"flex-1 min-w-0",children:x?(0,s.jsx)("div",{className:"grid gap-6 sm:grid-cols-2",children:[1,2,3,4].map(e=>(0,s.jsxs)("div",{className:"overflow-hidden rounded-xl sm:rounded-2xl bg-white border border-slate-100 shadow-sm",children:[(0,s.jsx)("div",{className:"h-64 animate-pulse bg-slate-200"}),(0,s.jsxs)("div",{className:"p-5 sm:p-6 space-y-3",children:[(0,s.jsx)("div",{className:"h-5 w-32 animate-pulse rounded bg-slate-200"}),(0,s.jsx)("div",{className:"h-4 w-24 animate-pulse rounded bg-slate-200"}),(0,s.jsx)("div",{className:"h-4 animate-pulse rounded bg-slate-200"}),(0,s.jsx)("div",{className:"h-4 w-3/4 animate-pulse rounded bg-slate-200"}),(0,s.jsx)("div",{className:"h-10 animate-pulse rounded bg-slate-200"})]})]},e))}):F.length>0?(0,s.jsx)("div",{className:"grid gap-6 sm:grid-cols-2",children:F.map(e=>{let t=e.fundingReceived/e.fundingGoal*100,r=el[e.birthday.month-1];return(0,s.jsxs)("div",{className:"group overflow-hidden rounded-xl sm:rounded-2xl bg-white border border-slate-100 shadow-sm hover:shadow-lg transition-all",children:[(0,s.jsxs)("div",{className:"relative h-64 overflow-hidden",children:[(0,s.jsx)(a.default,{src:e.photo,alt:e.firstName,fill:!0,loading:"lazy",quality:75,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",placeholder:"blur",blurDataURL:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9IiNlMmU4ZjAiLz48L3N2Zz4=",className:"object-cover transition-transform duration-500 group-hover:scale-105"}),e.category&&(0,s.jsx)("div",{className:"absolute top-3 left-3",children:(0,s.jsx)(c.Badge,{className:"bg-primary text-white text-xs",children:e.category})})]}),(0,s.jsxs)("div",{className:"p-5 sm:p-6",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between mb-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-lg font-semibold text-slate-900",children:e.firstName}),(0,s.jsxs)("p",{className:"text-sm text-slate-600",children:[e.age," years · ",e.gender]}),(0,s.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:["Birthday: ",r," ",e.birthday.day]})]}),(0,s.jsx)(c.Badge,{variant:"outline",className:"text-xs",children:e.location})]}),(0,s.jsx)("p",{className:"text-sm text-slate-600 line-clamp-2 mb-4",children:e.bio}),(0,s.jsxs)("div",{className:"space-y-2 mb-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between text-xs text-slate-500",children:[(0,s.jsx)("span",{className:"font-medium",children:"Funding Progress"}),(0,s.jsxs)("span",{children:[(0,s.jsx)(es.PriceTag,{amount:e.fundingReceived,approx:!1})," / ",(0,s.jsx)(es.PriceTag,{amount:e.fundingGoal})]})]}),(0,s.jsx)(I,{value:t,className:"h-2"})]}),(0,s.jsx)(o.Button,{asChild:!0,className:"w-full",children:(0,s.jsxs)(l.default,{href:`/sponsor/${e.code}`,children:["Sponsor ",e.firstName," ",(0,s.jsx)(D.ArrowRight,{className:"ml-1.5 h-4 w-4"})]})})]})]},e.id)})}):(0,s.jsxs)("div",{className:"py-12 text-center",children:[(0,s.jsx)(P.Heart,{className:"mx-auto h-12 w-12 text-slate-300 mb-4",strokeWidth:1.5}),(0,s.jsx)("p",{className:"text-lg font-medium text-slate-700",children:"No children available right now"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-slate-500",children:"Please check back soon or contact us for more information."})]})}),(0,s.jsx)("div",{className:"w-full lg:w-[440px] flex-shrink-0",children:(0,s.jsx)("div",{className:"sticky top-28",children:(0,s.jsx)(X,{})})})]})]})}),(0,s.jsx)(i.Section,{className:"py-12 sm:py-16 lg:py-20 bg-primary/5",children:(0,s.jsxs)(n.Container,{children:[(0,s.jsxs)("div",{className:"text-center mb-8 sm:mb-12",children:[(0,s.jsx)("h2",{className:"font-display text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl text-slate-900",children:"How Child Sponsorship Works"}),(0,s.jsx)("p",{className:"mt-3 sm:mt-4 text-sm sm:text-base lg:text-lg text-slate-600",children:"A needs-based support program matching children with caring sponsors"})]}),(0,s.jsxs)("div",{className:"grid gap-6 lg:grid-cols-2",children:[(0,s.jsxs)("div",{className:"rounded-xl sm:rounded-2xl bg-white border border-slate-100 shadow-sm p-6 sm:p-8",children:[(0,s.jsx)("h3",{className:"text-xl font-semibold text-slate-900 mb-4",children:"Our Approach"}),(0,s.jsx)("p",{className:"text-slate-600 leading-relaxed",children:"When a suitable sponsorship opportunity becomes available, interested sponsors are contacted and guided through the process. Our priority is matching available support with children who are most in need."}),(0,s.jsx)("p",{className:"mt-3 text-slate-600 leading-relaxed",children:"This flexible approach allows us to respond responsibly, sustainably, and with dignity."}),(0,s.jsxs)("div",{className:"mt-6 space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)(M.CheckCircle,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary",strokeWidth:1.5}),(0,s.jsxs)("span",{className:"text-sm text-slate-700",children:[(0,s.jsx)("strong",{children:"Full or Partial Sponsorship"})," — determined by the sponsor's preference"]})]}),(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)(M.CheckCircle,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary",strokeWidth:1.5}),(0,s.jsxs)("span",{className:"text-sm text-slate-700",children:[(0,s.jsx)("strong",{children:"Termly or Annual Support"})," — based on school terms or yearly cycles"]})]})]})]}),(0,s.jsxs)("div",{className:"rounded-xl sm:rounded-2xl bg-white border border-slate-100 shadow-sm p-6 sm:p-8",children:[(0,s.jsx)("h3",{className:"text-xl font-semibold text-slate-900 mb-4",children:"What Your Sponsorship Supports"}),(0,s.jsx)("div",{className:"grid gap-4 sm:grid-cols-2",children:["School fees and learning materials","School meals and basic nutrition","Uniforms and essential supplies","Safe learning environments and mentorship"].map((e,t)=>(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)(M.CheckCircle,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary",strokeWidth:1.5}),(0,s.jsx)("span",{className:"text-sm text-slate-700",children:e})]},t))}),(0,s.jsxs)("div",{className:"mt-6 pt-6 border-t border-slate-100",children:[(0,s.jsx)("h4",{className:"font-semibold text-slate-900 mb-3",children:"Benefits to Sponsors"}),(0,s.jsx)("div",{className:"space-y-2",children:["A child profile once sponsorship is matched","Periodic updates on progress and wellbeing","Insight into how your support makes a difference","Assurance of responsible and ethical use"].map((e,t)=>(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)(B,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-primary",strokeWidth:1.5}),(0,s.jsx)("span",{className:"text-sm text-slate-600",children:e})]},t))})]})]})]})]})}),(0,s.jsx)(i.Section,{className:"py-16 sm:py-20 lg:py-24 bg-primary/5",children:(0,s.jsxs)(n.Container,{children:[(0,s.jsxs)("div",{className:"text-center mb-10 sm:mb-12",children:[(0,s.jsx)("h2",{className:"font-display text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl text-slate-900",children:"Real Results, Lasting Change"}),(0,s.jsx)("p",{className:"mt-3 sm:mt-4 text-sm sm:text-base lg:text-lg text-slate-600",children:"Our child sponsorship program transforms lives with measurable outcomes"})]}),(0,s.jsx)("div",{className:"grid gap-6 sm:grid-cols-3",children:[{stat:`${e.completeEducationPercent}%`,label:"Complete Education",desc:"Sponsored children complete their full education cycle"},{stat:`${e.gainEmploymentPercent}%`,label:"Gain Employment",desc:"Graduates secure meaningful employment or start businesses"},{stat:(0,et.for
6matStat)(e.beneficiaries),label:"Lives Transformed",desc:"Children have benefited from our sponsorship program"}].map((e,t)=>(0,s.jsxs)("div",{className:"text-center p-6 bg-white border border-slate-100 rounded-xl shadow-sm",children:[(0,s.jsx)("div",{className:"text-4xl sm:text-5xl font-bold text-primary mb-2",children:e.stat}),(0,s.jsx)("h3",{className:"text-lg font-semibold text-slate-900 mb-1",children:e.label}),(0,s.jsx)("p",{className:"text-sm text-slate-600",children:e.desc})]},t))}),(0,s.jsxs)("div",{className:"mt-8 p-5 sm:p-6 bg-white border border-slate-100 rounded-xl shadow-sm flex items-center justify-center w-fit mx-auto text-center gap-4",children:[(0,s.jsx)(M.CheckCircle,{className:"h-10 w-10 flex-shrink-0 text-primary",strokeWidth:1.5}),(0,s.jsxs)("div",{className:"text-left",children:[(0,s.jsx)("h3",{className:"text-lg font-bold text-slate-900",children:"80% Directly to Programs"}),(0,s.jsx)("p",{className:"text-sm text-slate-600",children:"Every sponsorship dollar is maximized — only 20% goes to operations."})]})]})]})}),(0,s.jsx)(i.Section,{className:"py-12 sm:py-16 lg:py-20 bg-white",children:(0,s.jsxs)(n.Container,{children:[(0,s.jsxs)("div",{className:"text-center mb-8 sm:mb-12",children:[(0,s.jsx)("h2",{className:"font-display text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl text-slate-900",children:"Sponsorship Packages"}),(0,s.jsx)("p",{className:"mt-3 sm:mt-4 text-sm sm:text-base lg:text-lg text-slate-600",children:"Choose to support a child for 1 month, 6 months, or 1 year"})]}),(0,s.jsxs)("div",{className:"grid gap-6 lg:grid-cols-2",children:[(0,s.jsxs)("div",{className:"rounded-xl sm:rounded-2xl bg-white border border-slate-100 shadow-sm overflow-hidden hover:shadow-lg transition-all",children:[(0,s.jsxs)("div",{className:"p-6 sm:p-8 border-b border-slate-100",children:[(0,s.jsx)("h3",{className:"font-display text-xl font-bold text-slate-900",children:"Basic Package"}),(0,s.jsx)("p",{className:"text-sm text-slate-600 mt-1",children:"Essential support for education and nutrition"})]}),(0,s.jsxs)("div",{className:"p-6 sm:p-8 space-y-4",children:[(0,s.jsx)("div",{className:"space-y-3",children:[{period:"Per Month",price:30},{period:"6 Months",price:180},{period:"Per Year",price:360}].map((e,t)=>(0,s.jsxs)("div",{className:"flex justify-between items-center p-3 bg-primary/5 rounded-lg",children:[(0,s.jsx)("span",{className:"font-medium text-slate-900",children:e.period}),(0,s.jsx)("span",{className:"font-bold text-primary",children:(0,s.jsx)(es.PriceTag,{amount:e.price,approx:!1})})]},t))}),(0,s.jsxs)("div",{className:"pt-4 border-t border-slate-100",children:[(0,s.jsx)("h4",{className:"font-semibold text-slate-900 mb-3",children:"What's Included:"}),(0,s.jsx)("ul",{className:"space-y-2",children:["Tuition fees","Uniforms","Books and stationery","Two balanced meals daily","Stability and motivation to stay in school"].map((e,t)=>(0,s.jsxs)("li",{className:"flex items-start gap-2",children:[(0,s.jsx)(M.CheckCircle,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-primary",strokeWidth:1.5}),(0,s.jsx)("span",{className:"text-sm text-slate-700",children:e})]},t))})]})]})]}),(0,s.jsxs)("div",{className:"rounded-xl sm:rounded-2xl bg-white border-2 border-primary shadow-sm overflow-hidden hover:shadow-lg transition-all",children:[(0,s.jsxs)("div",{className:"p-6 sm:p-8 border-b border-primary/20 bg-primary/5",children:[(0,s.jsx)("h3",{className:"font-display text-xl font-bold text-slate-900",children:"Smile Package"}),(0,s.jsx)("p",{className:"text-sm text-slate-600 mt-1",children:"Comprehensive care and enrichment"})]}),(0,s.jsxs)("div",{className:"p-6 sm:p-8 space-y-4",children:[(0,s.jsxs)("div",{className:"p-4 bg-primary/5 rounded-lg text-center",children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-primary",children:"Contact us for custom pricing"}),(0,s.jsx)("p",{className:"text-xs text-slate-600 mt-1",children:"Tailored to your preferences and the child's needs"})]}),(0,s.jsxs)("div",{className:"pt-4 border-t border-slate-100",children:[(0,s.jsx)("h4",{className:"font-semibold text-slate-900 mb-3",children:"What's Included:"}),(0,s.jsx)("ul",{className:"space-y-2",children:["Age-appropriate educational toys","Engaging reading and storytelling books","Nutritious daily meals","Comprehensive learning materials and supplies","Enhanced educational support and enrichment"].map((e,t)=>(0,s.jsxs)("li",{className:"flex items-start gap-2",children:[(0,s.jsx)(M.CheckCircle,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-primary",strokeWidth:1.5}),(0,s.jsx)("span",{className:"text-sm text-slate-700",children:e})]},t))})]})]})]})]}),(0,s.jsxs)("div",{className:"mt-10 sm:mt-12 rounded-xl sm:rounded-2xl bg-white border border-slate-100 shadow-sm p-6 sm:p-8",children:[(0,s.jsx)("h3",{className:"font-semibold text-lg text-slate-900 mb-6 text-center",children:"Update Schedule"}),(0,s.jsx)("div",{className:"grid gap-6 sm:grid-cols-3",children:[{label:"1 Year Sponsors",desc:"Receive updates twice a year"},{label:"6 Month Sponsors",desc:"Update at the end of sponsorship"},{label:"1 Month Sponsors",desc:"Update upon payment"}].map((e,t)=>(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"font-semibold text-primary mb-1",children:e.label}),(0,s.jsx)("p",{className:"text-sm text-slate-600",children:e.desc})]},t))}),(0,s.jsxs)("p",{className:"mt-6 text-center text-sm text-slate-600",children:[(0,s.jsx)("strong",{children:"Everybody receives"})," a heartfelt thank-you letter upon payment with information about the student."]})]})]})}),(0,s.jsx)(i.Section,{className:"py-12 sm:py-16 lg:py-20 bg-[#d5e4ff]/30",children:(0,s.jsxs)(n.Container,{children:[(0,s.jsx)("div",{className:"text-center mb-8 sm:mb-12",children:(0,s.jsx)("h2",{className:"font-display text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl text-slate-900",children:"Frequently Asked Questions"})}),(0,s.jsx)("div",{className:"grid gap-4 sm:gap-6 lg:grid-cols-2",children:[{q:"How much does it cost to sponsor a child?",a:`Child sponsorship starts at ${(0,H.formatMoney)(O
6(30),U)} per month. This covers education, healthcare, nutrition, and comprehensive support for your sponsored child.`},{q:"Can I communicate with my sponsored child?",a:"Yes! You'll receive regular updates, photos, and progress reports. You can also write letters to your sponsored child, and they can write back to you."},{q:"How long does sponsorship last?",a:"Sponsorship typically continues until the child completes their secondary education or reaches 18 years of age. You can adjust your commitment based on your circumstances."},{q:"Is my contribution tax-deductible?",a:"Yes, UCESCO Africa is a registered charity, and your donations are tax-deductible. You'll receive a receipt for tax purposes."}].map((e,t)=>(0,s.jsxs)("div",{className:"rounded-xl sm:rounded-2xl bg-white border border-slate-100 shadow-sm p-5 sm:p-6",children:[(0,s.jsx)("h3",{className:"font-semibold text-slate-900 mb-2",children:e.q}),(0,s.jsx)("p",{className:"text-sm text-slate-600 leading-relaxed",children:e.a})]},t))})]})}),(0,s.jsx)(i.Section,{className:"py-12 sm:py-16 lg:py-20 bg-primary/5",children:(0,s.jsxs)(n.Container,{children:[(0,s.jsxs)("div",{className:"text-center mb-8 sm:mb-12",children:[(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 justify-center mb-3",children:[(0,s.jsx)($.GraduationCap,{className:"h-6 w-6 text-primary",strokeWidth:1.5}),(0,s.jsx)("span",{className:"text-sm font-semibold text-primary uppercase tracking-widest",children:"Alumni Stories"})]}),(0,s.jsx)("h2",{className:"font-display text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl text-slate-900",children:"Where Are They Now?"}),(0,s.jsx)("p",{className:"mt-3 sm:mt-4 text-sm sm:text-base lg:text-lg text-slate-600 max-w-2xl mx-auto",children:"Sponsored children who have gone on to build careers, give back to their communities, and break cycles of poverty — one education at a time."})]}),(0,s.jsx)(er,{})]})}),(0,s.jsx)(i.Section,{className:"py-12 sm:py-16 lg:py-20 bg-white",children:(0,s.jsx)(n.Container,{children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h2",{className:"font-display text-2xl font-bold tracking-tight sm:text-3xl text-slate-900",children:"Our Commitment to Safeguarding"}),(0,s.jsx)("p",{className:"mt-3 sm:mt-4 text-sm sm:text-base lg:text-lg text-slate-600",children:"UCESCO Africa is committed to the safety and protection of all children in our programs. We have strict safeguarding policies, regular monitoring, and transparent reporting."}),(0,s.jsx)(o.Button,{asChild:!0,variant:"outline",className:"mt-6 h-10",children:(0,s.jsx)(l.default,{href:"/impact/reports",children:"View Our Safeguarding Policies"})})]})})}),(0,s.jsx)(i.Section,{className:"py-12 sm:py-16 lg:py-20 bg-[#d5e4ff]/30",children:(0,s.jsxs)(n.Container,{children:[(0,s.jsxs)("div",{className:"text-center mb-8 sm:mb-12",children:[(0,s.jsx)(c.Badge,{className:"bg-primary/10 text-primary border-primary/20 mb-4",children:"For Beneficiaries"}),(0,s.jsx)("h2",{className:"font-display text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl text-slate-900",children:"How to Apply for a Scholarship"}),(0,s.jsx)("p",{className:"mt-4 text-sm sm:text-base lg:text-lg text-slate-600 max-w-2xl mx-auto",children:"UCESCO Africa provides educational sponsorships to deserving students in Kenya and Uganda. Here is how to apply."})]}),(0,s.jsxs)("div",{className:"grid gap-6 lg:grid-cols-2",children:[(0,s.jsxs)("div",{className:"rounded-xl sm:rounded-2xl bg-white border border-slate-100 shadow-sm p-6 sm:p-8",children:[(0,s.jsx)("h3",{className:"text-xl font-semibold text-slate-900 mb-6",children:"Eligibility Requirements"}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)(M.CheckCircle,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary",strokeWidth:1.5}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"font-semibold text-slate-900",children:"Kenyan or Ugandan Citizen"}),(0,s.jsx)("p",{className:"text-sm text-slate-600 mt-1",children:"Applicants must be current citizens of Kenya or Uganda."})]})]}),(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)(M.CheckCircle,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary",strokeWidth:1.5}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"font-semibold text-slate-900",children:"Demonstrated Financial Need"}),(0,s.jsx)("p",{className:"text-sm text-slate-600 mt-1",children:"Applicants must meet UCESCO Africa's standards of financial need, assessed through our verification process."})]})]}),(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)(M.CheckCircle,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary",strokeWidth:1.5}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"font-semibold text-slate-900",children:"Academic Merit"}),(0,s.jsx)("p",{className:"text-sm text-slate-600 mt-1",children:"Applicants must demonstrate strong academic performance and commitment to their studies."})]})]}),(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)(M.CheckCircle,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary",strokeWidth:1.5}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"font-semibold text-slate-900",children:"Currently Enrolled in Sc
6hool"}),(0,s.jsx)("p",{className:"text-sm text-slate-600 mt-1",children:"Applicants must be actively attending and performing well in their current school."})]})]})]})]}),(0,s.jsxs)("div",{className:"rounded-xl sm:rounded-2xl bg-white border border-slate-100 shadow-sm p-6 sm:p-8",children:[(0,s.jsx)("h3",{className:"text-xl font-semibold text-slate-900 mb-6",children:"How to Get an Application Form"}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex items-start gap-4",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center",children:(0,s.jsx)("span",{className:"text-primary font-bold",children:"1"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"font-semibold text-slate-900",children:"Book an Appointment"}),(0,s.jsx)("p",{className:"text-sm text-slate-600 mt-1",children:"Contact our office to schedule an appointment before visiting. Walk-ins may not be accommodated."})]})]}),(0,s.jsxs)("div",{className:"flex items-start gap-4",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center",children:(0,s.jsx)("span",{className:"text-primary font-bold",children:"2"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"font-semibold text-slate-900",children:"Visit Our Office"}),(0,s.jsx)("p",{className:"text-sm text-slate-600 mt-1",children:"Come to our office on the scheduled date to collect the UCESCO Africa scholarship application form."})]})]}),(0,s.jsxs)("div",{className:"flex items-start gap-4",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center",children:(0,s.jsx)("span",{className:"text-primary font-bold",children:"3"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"font-semibold text-slate-900",children:"Submit Your Application"}),(0,s.jsx)("p",{className:"text-sm text-slate-600 mt-1",children:"Complete and return the form with all required documents by the deadline provided."})]})]})]}),(0,s.jsx)("div",{className:"mt-6 p-4 bg-amber-50 border border-amber-200 rounded-lg",children:(0,s.jsx)("p",{className:"text-sm text-amber-800 font-medium",children:"Please note: Due to the high volume of applications, only successful candidates will be contacted. We appreciate your patience and understanding."})}),(0,s.jsx)("div",{className:"mt-6",children:(0,s.jsx)(o.Button,{asChild:!0,className:"w-full sm:w-auto",children:(0,s.jsxs)(l.default,{href:"/contact",children:["Book an Appointment ",(0,s.jsx)(D.ArrowRight,{className:"ml-2 h-4 w-4"})]})})})]})]})]})}),(0,s.jsx)(i.Section,{className:"py-12 sm:py-16 lg:py-20 bg-white",children:(0,s.jsxs)(n.Container,{children:[(0,s.jsxs)("div",{className:"text-center mb-8 sm:mb-12",children:[(0,s.jsx)("h2",{className:"font-display text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl text-slate-900",children:"Not Ready to Sponsor a Student?"}),(0,s.jsx)("p",{className:"mt-4 text-sm sm:text-base lg:text-lg text-slate-600 max-w-2xl mx-auto",children:"There are many ways you can donate and support a child's education and wellbeing."})]}),(0,s.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:[{title:"Sanitary Pads",price:10,description:"By donating, you will provide a young girl with a whole year’s supply of sanitary pads, helping her stay in school with dignity.",button:"Buy Sanitary Pads",color:"bg-pink-50 border-pink-200",iconBg:"bg-pink-100",iconColor:"text-pink-600"},{title:"School Shoes",price:20,description:"By donating, you can help a young student step confidently into their future with a new pair of leather school shoes.",button:"Buy a Shoe",color:"bg-amber-50 border-amber-200",iconBg:"bg-amber-100",iconColor:"text-amber-600"},{title:"Books & School Supplies",price:50,description:"By donating, you can provide a young student with essential school supplies that will equip them for success in the classroom.",button:"Give School Supplies",color:"bg-blue-50 border-blue-200",iconBg:"bg-blue-100",iconColor:"text-blue-600"},{title:"School Uniform",price:100,description:"By donating, you can provide a young student with the essential school uniform they need to go to school with confidence.",button:"Buy a Uniform",color:"bg-green-50 border-green-200",iconBg:"bg-green-100",iconColor:"text-green-600"},{title:"Life Skills Workshop",price:100,description:"By donating, you can provide a young student with essential life skills workshops that will equip them for success in life.",button:"Give Life Skills",color:"bg-purple-50 border-purple-200",iconBg:"bg-purple-100",iconColor:"text-purple-600"}].map((e,t)=>(0,s.jsx)("div",{className:`rounded-xl sm:rounded-2xl border shadow-sm overflow-hidden ${e.color}`,children:(0,s.jsxs)("div",{className:"p-6 sm:p-8",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold text-slate-900",children:e.title}),(0,s.jsx)(es.PriceTag,{amount:e.price,approx:!1,className:"text-2xl font-bold text-primary"})]}),(0,s.jsx)("p",{className:"text-sm text-slate-700 leading-relaxed mb-6",children:e.description}),(0,s.jsxs)(o.Button,{className:"w-full",onClick:()=>{var s,t;return s=e.title,t=O(e.price),void(G(s),q(t),R(!0))},children:[e.button," ",(0,s.jsx)(P.Heart,{className:"ml-2 h-4 w-4"})]})]})},t))})]})}),(0,s.jsx)("section",{className:"py-12 sm:py-16 lg:py-20 bg-white",children:(0,s.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,s.jsxs)("div",{className:"relative overflow-hidden rounded-2xl sm:rounded-3xl p-8 sm:p-12 lg:p-16 text-center shadow-xl",children:[(0,s.jsxs)("div",{className:"absolute inset-0 z-0",children:[(0,s.jsx)(a.default,{src:"/NEW/CTA-background.jpg",alt:"Sponsor a child",fill:!0,loading:"lazy",quality:75,sizes:"100vw",placeholder:"blur",blurDataURL:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9IiNlMmU4ZjAiLz48L3N2Zz4=",className:"object-cover object-[center_40%]"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/50 via-primary/25 to-primary/50"})]}),(0,s.jsxs)("div",{className:"relative z-10 mx-auto max-w-3xl",children:[(0,s.jsx)("h2",{className:"font-display text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl text-white",children:"Ready to Change a Life?"}),(0,s.jsx)("p",{className:"mt-4 sm:mt-6 text-sm sm:text-base lg:text-lg text-white/90 leading-relaxed",children:"Your sponsorship gives a child access to education, healthcare, nutrition, and hope for a brighter future."}),(0,s.jsxs)("div",{className:"mt-8 sm:mt-10 flex flex-col items-center justify-center gap-3 sm:gap-4 sm:flex-row",children:[(0,s.jsx)(o.Button,{size:"lg",asChild:!0,variant:"secondary",className:"w-full sm:w-auto",children:(0,s.jsxs)(l.default,{href:"#",children:[(0,s.jsx)(P.Heart,{className:"mr-2 h-4 w-4"})," Sponsor a Child Today"]})}),(0,s.jsx)(o.Button,{size:"lg",asChild:!0,variant:"outline",className:"w-full sm:w-auto border-white bg-white/10 text-white hover:bg-white/20 backdrop-blur",children:(0,s.jsx)(l.default,{href:"/contact",children:"Contact Us"})})]})]})]})})}),(0,s.jsx)(ee.DonationModal,{open:T,onOpenChange:R,purpose:E,suggestedAmount:L})]})}e.s(["default",()=>ei],64007)}]);

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.