1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,678745,e=>{"use strict";let t=(0,e.i(475254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t])},98919,e=>{"use strict";let t=(0,e.i(475254).default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);e.s(["Shield",0,t],98919)},643531,e=>{"use strict";var t=e.i(678745);e.s(["Check",()=>t.default])},39312,e=>{"use strict";let t=(0,e.i(475254).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",0,t],39312)},245423,e=>{"use strict";let t=(0,e.i(475254).default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);e.s(["Bell",0,t],245423)},194983,e=>{"use strict";let t=(0,e.i(475254).default)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]);e.s(["MessageCircle",0,t],194983)},915505,e=>{"use strict";let t=(0,e.i(475254).default)("arrow-left-right",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);e.s(["ArrowLeftRight",0,t],915505)},839614,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(444113),l=e.i(962607),r=e.i(824511),s=e.i(88653),n=e.i(657688);let o=[{id:0,name:"David",color:"#E37C08",angle:-90,amount:"$2,000",imageSrc:"/images/people/circular-person1.png"},{id:1,name:"Amara",color:"#176162",angle:-18,amount:"$2,000",imageSrc:"/images/people/circular-person2.png"},{id:2,name:"Mariama",color:"#DFA91B",angle:54,amount:"$2,000",imageSrc:"/images/people/circular-person3.png"},{id:3,name:"Fatou",color:"#2A8A81",angle:126,amount:"$2,000",imageSrc:"/images/people/circular-person4.png"},{id:4,name:"James",color:"#EA580C",angle:198,amount:"$2,000",imageSrc:"/images/people/circular-person5.png"}];function c(e,t){let a=e*Math.PI/180;return{x:Math.cos(a)*t,y:Math.sin(a)*t}}function d({angle:e}){let a=c(e,340);return(0,t.jsx)(r.m.div,{className:"absolute z-20 flex h-14 w-14 items-center justify-center rounded-full bg-[#00D632] text-2xl font-black text-white shadow-[0_0_0_14px_rgba(0,214,50,0.12)] sm:h-16 sm:w-16 sm:text-3xl",initial:{x:a.x,y:a.y,opacity:0,scale:.6},animate:{x:[a.x,a.x,0],y:[a.y,a.y,0],opacity:[0,1,1,0],scale:[.45,1,1,.82]},transition:{duration:2.4,ease:"linear",repeat:1/0,repeatDelay:2.8000000000000003,times:[0,.3,1]},style:{left:"50%",top:"50%",marginLeft:"-28px",marginTop:"-28px"},children:"$"})}function x(){let{activeIndex:e,phase:x,potAmount:u,recipient:m,contributors:p,payoutTarget:h}=function(){let[e,t]=(0,a.useState)(0),[i,l]=(0,a.useState)("collect"),[r,s]=(0,a.useState)(0);(0,a.useEffect)(()=>{let e=[],a=()=>{e.push(window.setTimeout(()=>s(8e3),2100))};a();let i=window.setInterval(()=>{s(0),t(e=>(e+1)%o.length),l("collect"),a(),e.push(window.setTimeout(()=>l("pay"),2850)),e.push(window.setTimeout(()=>l("reset"),3900))},5200);return e.push(window.setTimeout(()=>l("pay"),2850)),e.push(window.setTimeout(()=>l("reset"),3900)),()=>{window.clearInterval(i),e.forEach(window.clearTimeout)}},[]);let n=o[e],d=(0,a.useMemo)(()=>o.filter(e=>e.id!==n.id),[n.id]),x=c(n.angle,340);return{activeIndex:e,phase:i,potAmount:r,recipient:n,contributors:d,payoutTarget:x}}(),f=(0,a.useRef)(null),[g,y]=(0,a.useState)(1),b=(0,a.useCallback)(()=>{f.current&&y(Math.min(f.current.clientWidth/864,1))},[]);return(0,a.useEffect)(()=>{b();let e=new ResizeObserver(b);return f.current&&e.observe(f.current),()=>e.disconnect()},[b]),(0,t.jsx)(i.LazyMotion,{features:l.domAnimation,children:(0,t.jsx)("div",{ref:f,className:"relative mx-auto flex w-full items-center justify-center",style:{height:924*g},children:(0,t.jsxs)("div",{style:{width:864,height:864,transform:`scale(${g})`,transformOrigin:"center center",position:"absolute"},children:[(0,t.jsx)("div",{className:"absolute inset-4 rounded-full bg-[radial-gradient(circle_at_center,rgba(23,97,98,0.06),transparent_56%)]"}),(0,t.jsxs)("div",{className:"relative",style:{width:864,height:864},children:["collect"===x&&p.map(a=>(0,t.jsx)(d,{angle:a.angle},`${a.id}-${e}`)),(0,t.jsx)(s.AnimatePresence,{mode:"wait",children:"pay"===x?(0,t.jsxs)(r.m.div,{className:"absolute left-1/2 top-1/2 flex h-36 w-36 -translate-x-1/2 -translate-y-1/2 flex-col items-center justify-center rounded-full border border-[var(--brand-teal)]/15 bg-[var(--brand-teal)] text-white shadow-[0_22px_40px_rgba(23,97,98,0.22)] sm:h-44 sm:w-44",initial:{x:0,y:0,opacity:1,scale:1},animate:{x:h.x,y:h.y,opacity:[1,1,.65,0],scale:[1,1.08,.9]},transition:{x:{duration:1.05,ease:"easeInOut"},y:{duration:1.05,ease:"easeInOut"},opacity:{duration:1.05,times:[0,.55,.82,1],ease:"easeInOut"},scale:{duration:1.05,ease:"easeInOut"}},children:[(0,t.jsx)("span",{className:"text-sm font-black uppercase tracking-[0.2em] text-white/85 sm:text-base",children:"Pot"}),(0,t.jsxs)("span",{className:"mt-2 text-3xl font-black sm:text-4xl",children:["$",u.toLocaleStr
1ing()]})]},`pot-pay-${e}`):(0,t.jsxs)(r.m.div,{className:"absolute left-1/2 top-1/2 flex h-36 w-36 -translate-x-1/2 -translate-y-1/2 flex-col items-center justify-center rounded-full border border-[var(--brand-teal)]/15 bg-[var(--brand-teal)] text-white shadow-[0_22px_40px_rgba(23,97,98,0.22)] sm:h-44 sm:w-44",initial:"reset"===x&&{opacity:0,scale:.78},animate:{x:0,y:0,opacity:1,scale:"collect"===x&&8e3===u?[1,1.18,1.12]:1},transition:{opacity:{duration:"reset"===x?.42:.2,delay:.08*("reset"===x),ease:"easeOut"},scale:{duration:"collect"===x?1.4:.42,delay:.08*("reset"===x),ease:"easeInOut"}},children:[(0,t.jsx)("span",{className:"text-sm font-black uppercase tracking-[0.2em] text-white/85 sm:text-base",children:"Pot"}),(0,t.jsxs)("span",{className:"mt-2 text-3xl font-black sm:text-4xl",children:["$","reset"===x?"0":u.toLocaleString()]})]},`pot-${x}-${e}`)}),o.map(a=>{let i=c(a.angle,340),l=a.id===m.id;return(0,t.jsxs)(r.m.div,{className:"absolute flex -translate-x-1/2 -translate-y-1/2 flex-col items-center",style:{left:`calc(50% + ${i.x}px)`,top:`calc(50% + ${i.y}px)`},animate:{scale:l?1.08:1,opacity:l?1:.86},transition:{duration:.45,ease:"easeOut"},children:[l&&(0,t.jsxs)(r.m.span,{className:"absolute -right-12 -top-4 z-30 rounded-full px-5 py-2 text-[0.9rem] font-black uppercase tracking-[0.08em] text-white shadow-[0_12px_28px_rgba(15,23,42,0.24)] sm:-right-14 sm:-top-5 sm:px-6 sm:py-2.5 sm:text-[1rem]",style:{backgroundColor:a.color},initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},children:["Month ",e+1]}),(0,t.jsx)(r.m.div,{className:"relative flex h-44 w-44 items-center justify-center overflow-hidden rounded-full border-4 bg-white text-2xl font-black text-slate-700 shadow-[0_14px_28px_rgba(15,23,42,0.12)] sm:h-48 sm:w-48 lg:h-52 lg:w-52 sm:text-3xl",style:{borderColor:l?a.color:"rgba(148, 163, 184, 0.35)",boxShadow:l?`0 0 0 14px ${a.color}20, 0 18px 34px rgba(15,23,42,0.14)`:"0 14px 28px rgba(15,23,42,0.12)"},children:(0,t.jsx)(n.default,{src:a.imageSrc,alt:"",fill:!0,sizes:"(min-width: 1024px) 14rem, (min-width: 640px) 12rem, 10rem",quality:100,className:"object-cover"})})]},a.id)})]})]})})})}e.s(["CircleAnimation",0,x,"CircleAnimationPreview",0,function(){return(0,t.jsx)("section",{className:"min-h-screen bg-[var(--brand-cream)] px-5 py-14 sm:px-8 lg:px-10",children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsxs)("div",{className:"mx-auto max-w-4xl text-center",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.24em] text-[var(--brand-orange)]",children:"Animation Preview"}),(0,t.jsx)("h1",{className:"mt-4 font-extrabold tracking-tight text-[var(--brand-navy)]",style:{fontFamily:"var(--font-display)",fontSize:"clamp(2.4rem, 5vw, 5.8rem)",lineHeight:.94},children:"See the payout move to the right person at the right time."}),(0,t.jsx)("p",{className:"mx-auto mt-6 max-w-3xl text-slate-600",style:{fontSize:"clamp(1.15rem, 2vw, 2rem)",lineHeight:1.6},children:"This prototype focuses on one simple idea: contributions gather into a shared pot, then the full payout moves to the current recipient. One focal action. One clear month."})]}),(0,t.jsx)("div",{className:"mt-14",children:(0,t.jsxs)("div",{className:"relative mx-auto flex aspect-square w-full max-w-[76rem] items-center justify-center rounded-[2.5rem] border border-slate-200 bg-white shadow-[0_24px_80px_rgba(15,23,42,0.08)]",children:[(0,t.jsx)("div",{className:"absolute inset-8 rounded-[2.1rem] bg-[radial-gradient(circle_at_center,rgba(23,97,98,0.08),transparent_56%)]"}),(0,t.jsx)(x,{})]})})]})})}])},917887,173975,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(444113),l=e.i(962607),r=e.i(824511),s=e.i(88653),n=e.i(657688);let o=[{id:0,name:"David",color:"#176162",angle:-90,imageSrc:"/images/people/circular-person1.png"},{id:1,name:"James",color:"#E37C08",angle:0,imageSrc:"/images/people/circular-person5.png"},{id:2,name:"Fatou",color:"#2A8A81",angle:90,imageSrc:"/images/people/circular-person4.png"},{id:3,name:"Amara",color:"#DFA91B",angle:180,imageSrc:"/images/people/circular-person2.png"}],c=20/o.length,d=1e4/o.length;function x(e,t){let a=e*Math.PI/180;return{x:Math.cos(a)*t,y:Math.sin(a)*t}}e.s(["TargetSavingsAnimation",0,function(){let[e,u]=(0,a.useState)("contributing"),[m,p]=(0,a.useState)(0),[h,f]=(0,a.useState)(null),[g,y]=(0,a.useState)(!1),b=(0,a.useRef)([]),w=(0,a.useRef)(null),j=(0,a.useRef)(null),[v,S]=(0,a.useState)(1),k=(0,a.useCallback)(()=>{j.current&&S(Math.min(j.current.clientWidth/864,1))},[]);(0,a.useEffect)(()=>{k();let e=new ResizeObserver(k);return j.current&&e.observe(j.current),()=>e.disconnect()},[k]);let $=(0,a.useCallback)(()=>{b.current.forEach(window.clearTimeout),b.current=[],w.current&&(window.clearInterval(w.current),w.current=null)},[]),z=(0,a.useCallback)((e,t)=>{b.current.push(window.setTimeout(e,t))},[]),N=(0,a.useCallback)(()=>{p(0),u("contributing"),y(!1),f(null);let e=0,t=0;for(let a=0;a<c;a++){for(let a=0;a<o.length;a++){let i=(e+1)*500,l=a;z(()=>{f(l),p(i)},t),t+=800,e++}t+=1200}z(()=>f(null),t),z(()=>{u("goal-reached")},t+200),z(()=>{u("splitting"),y(!0)},t+200+2e3),z(()=>{u("split-hold")},t+200+2e3+1500),z(()=>{u("reset")},t+200+2e3+1500+2e3),z(()=>{N()},t+200+2e3+1500+2e3+1e3)},[z]);(0,a.useEffect)(()=>(N(),$),[N,$]);let M=m/1e4,C=2*Math.PI*180,A="goal-reached"===e||"splitting"===e||"split-hold"===e?"Goal Reached!":`$${m.toLocaleStr
1ing()}`;return(0,t.jsx)(i.LazyMotion,{features:l.domAnimation,children:(0,t.jsx)("div",{ref:j,className:"relative mx-auto flex w-full items-center justify-center",style:{height:924*v},children:(0,t.jsxs)("div",{style:{width:864,height:864,transform:`scale(${v})`,transformOrigin:"center center",position:"absolute"},children:[(0,t.jsxs)("svg",{width:864,height:864,style:{position:"absolute",top:0,left:0},children:[(0,t.jsx)("circle",{cx:432,cy:432,r:180,fill:"none",stroke:"rgba(23, 97, 98, 0.08)",strokeWidth:8}),(0,t.jsx)(r.m.circle,{cx:432,cy:432,r:180,fill:"none",stroke:"var(--brand-teal)",strokeWidth:8,strokeLinecap:"round",strokeDasharray:C,animate:{strokeDashoffset:C*(1-M)},transition:{duration:.3,ease:"easeOut"},style:{transform:"rotate(-90deg)",transformOrigin:"center"}})]}),(0,t.jsx)("div",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:15},children:(0,t.jsxs)(r.m.div,{className:"flex flex-col items-center justify-center rounded-full bg-[var(--brand-teal)] text-white",animate:{scale:"goal-reached"===e?[1,1.2,1.1]:1,boxShadow:"goal-reached"===e?"0 0 0 24px rgba(23, 97, 98, 0.15), 0 22px 40px rgba(23, 97, 98, 0.22)":"0 22px 40px rgba(23, 97, 98, 0.22)"},transition:{duration:.6,ease:"easeOut"},style:{width:180,height:180},children:[(0,t.jsx)("span",{style:{fontSize:13,fontWeight:900,textTransform:"uppercase",letterSpacing:"0.15em",opacity:.85},children:"goal-reached"===e||"splitting"===e||"split-hold"===e?"":"Goal"}),(0,t.jsx)(r.m.span,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},style:{fontSize:"goal-reached"===e?18:28,fontWeight:900,marginTop:2,textAlign:"center",padding:"0 12px"},children:A},A),(0,t.jsx)("span",{style:{fontSize:11,fontWeight:700,opacity:.6,marginTop:4},children:"goal-reached"!==e&&"splitting"!==e&&"split-hold"!==e?`of $${1e4.toLocaleString()}`:`$${1e4.toLocaleString()}`})]})}),(0,t.jsx)(s.AnimatePresence,{children:null!==h&&"contributing"===e&&(0,t.jsx)(r.m.div,{className:"absolute z-20 flex items-center justify-center rounded-full bg-[#00D632] font-black text-white",style:{left:"50%",top:"50%",marginLeft:-24,marginTop:-24,width:48,height:48,fontSize:14,boxShadow:"0 0 0 10px rgba(0, 214, 50, 0.15)"},initial:{x:x(o[h].angle,340).x,y:x(o[h].angle,340).y,opacity:0,scale:.5},animate:{x:0,y:0,opacity:[0,1,1,0],scale:[.5,1,1,.6]},exit:{opacity:0},transition:{duration:.7,ease:"easeInOut"},children:"$"},`contrib-${m}`)}),(0,t.jsx)(s.AnimatePresence,{children:g&&o.map(e=>{let a=x(e.angle,340);return(0,t.jsxs)(r.m.div,{className:"absolute z-20 flex items-center justify-center rounded-full bg-[#00D632] font-black text-white",style:{left:"50%",top:"50%",marginLeft:-36,marginTop:-36,width:72,height:72,fontSize:13,boxShadow:"0 8px 24px rgba(0, 214, 50, 0.2)"},initial:{x:0,y:0,opacity:1,scale:.6},animate:{x:a.x,y:a.y,opacity:1,scale:1},transition:{duration:1.5,ease:"easeOut",delay:.1*e.id},children:["$",d.toLocaleString()]},`split-${e.id}`)})}),o.map(a=>{let i=x(a.angle,340),l=h===a.id&&"contributing"===e;return(0,t.jsxs)(r.m.div,{className:"absolute flex -translate-x-1/2 -translate-y-1/2 flex-col items-center",style:{left:`calc(50% + ${i.x}px)`,top:`calc(50% + ${i.y}px)`,zIndex:10},animate:{scale:l?1.12:g?1.08:1,opacity:l?1:.85},transition:{duration:.3},children:[(0,t.jsx)(s.AnimatePresence,{children:g&&(0,t.jsxs)(r.m.span,{className:"absolute -right-14 -top-4 z-30 rounded-full px-4 py-1.5 text-[0.85rem] font-black text-white shadow-[0_8px_20px_rgba(0,0,0,0.2)]",style:{backgroundColor:a.color},initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0},transition:{delay:.1*a.id+1.5},children:["+$",d.toLocaleString()]})}),(0,t.jsx)(r.m.div,{className:"relative flex h-44 w-44 items-center justify-center overflow-hidden rounded-full border-4 bg-white shadow-[0_14px_28px_rgba(15,23,42,0.12)] sm:h-48 sm:w-48 lg:h-52 lg:w-52",style:{borderColor:l||g?a.color:"rgba(148, 163, 184, 0.35)",boxShadow:l||g?`0 0 0 10px ${a.color}20, 0 14px 28px rgba(15,23,42,0.12)`:"0 14px 28px rgba(15,23,42,0.12)"},children:(0,t.jsx)(n.default,{src:a.imageSrc,alt:"",fill:!0,sizes:"(min-width: 1024px) 14rem, (min-width: 640px) 12rem, 10rem",quality:100,className:"object-cover"})}),(0,t.jsx)("span",{style:{marginTop:8,fontSize:14,fontWeight:l?800:600,color:l?a.color:"#64748b"},children:a.name})]},a.id)})]})})})}],917887);let u=[{id:0,name:"David",imageSrc:"/images/people/circular-person1.png"},{id:1,name:"Amara",imageSrc:"/images/people/circular-person2.png"},{id:2,name:"Mariama",imageSrc:"/images/people/circular-person3.png"},{id:3,name:"Fatou",imageSrc:"/images/people/circular-person4.png"},{id:4,name:"James",imageSrc:"/images/people/circular-person5.png"}],m=[{id:0,label:"Sarah K.",emoji:"ð"},{id:1,label:"Anonymous",emoji:"ð¤²"},{id:2,label:"Omar T.",emoji:"ð"}],p=[function({active:e}){return(0,t.jsxs)("svg",{width:"96",height:"96",viewBox:"0 0 48 48",fill:"none",children:[(0,t.jsx)("circle",{cx:"24",cy:"24",r:"22",fill:e?"#FEE2E2":"#f1f5f9",style:{transition:"fill 0.4s"}}),(0,t.jsx)("path",{d:"M24 12C24 12 15 18 15 26a9 9 0 0 0 18 0c0-8-9-14-9-14Z",fill:e?"#DC2626":"#cbd5e1",style:{transition:"fill 0.4s"},opacity:.85}),(0,t.jsx)("path",{d:"M24 22v6M24 30v1",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})]})},function({active:e}){let a=e?"#475569":"#cbd5e1";return(0,t.jsxs)("svg",{width:"96",height:"96",viewBox:"0 0 48 48",fill:"none",children:[(0,t.jsx)("circle",{cx:"24",cy:"24",r:"22",fill:e?"#E2E8F0":"#f1f5f9",style:{transition:"fill 0.4s"}}),(0,t.jsx)("path",{d:"M24 10c0 0-4 4-4 7a4 4 0 0 0 8 0c0-3-4-7-4-7Z",fill:e?"#F59E0B":"#e2e8f0",style:{transition:"fill 0.4s"}}),(0,t.jsx)("path",{d:"M24 13c0 0-2 2-2 3.5a2 2 0 0 0 4 0c0-1.5-2-3.5-2-3.5Z",fill:e?"#FBBF24":"#f1f5f9",style:{transition:"fill 0.4s"}}),(0,t.jsx)("rect",{x:"21",y:"18",width:"6",height:"16",rx:"1.5",fill:a,style:{transition:"fill 0.4s"},opacity:.85}),(0,t.jsx)("rect",{x:"19",y:"34",width:"10",height:"3",rx:"1.5",fill:a,style:{transition:"fill 0.4s"},opacity:.6}),e&&(0,t.jsx)("circle",{cx:"24",cy:"14",r:"6",fill:"#F59E0B",opacity:.15})]})},function({active:e}){let a=e?"#D97706":"#cbd5e1";return(0,t.jsxs)("svg",{width:"96",height:"96",viewBox:"0 0 48 48",fill:"none",children:[(0,t.jsx)("circle",{cx:"24",cy:"24",r:"22",fill:e?"#FEF3C7":"#f1f5f9",style:{transition:"fill 0.4s"}}),(0,t.jsx)("path",{d:"M12 26l12-10 12 10",stroke:a,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"stroke 0.4s"}}),(0,t.jsx)("rect",{x:"16",y:"25",width:"16",height:"10",rx:"1.5",fill:a,style:{transition:"fill 0.4s"},opacity:.85}),(0,t.jsx)("rect",{x:"21",y:"28",width:"6",height:"7",rx:"1",fill:"white",opacity:.9}),(0,t.jsx)("circle",{cx:"24",cy:"14",r:"2",fill:a,style:{transition:"fill 0.4s"},opacity:.5})]})}],h=[{id:0,label:"Emergency Relief",amount:800,emoji:"",color:"#DC2626"},{id:1,label:"Funeral Support",amount:600,emoji:"",color:"#475569"},{id:2,label:"Homeless Shelter",amount:500,emoji:"",color:"#D97706"}],f=437;e.s(["CommunityFundAnimation",0,function(){let e,o,c,d,[x,g]=(0,a.useState)(1200),[y,b]=(0,a.useState)(null),[w,j]=(0,a.useState)(null),[v,S]=(0,a.useState)(null),[k,$]=(0,a.useState)(!1),[z,N]=(0,a.useState)(0),[M,C]=(0,a.useState)(0),A=(0,a.useRef)(0),_=(0,a.useRef)(0),T=(0,a.useRef)([]),O=(0,a.useRef)(null),[I,W]=(0,a.useState)(1),[D,L]=(0,a.useState)(0),E=(0,a.useCallback)(()=>
1{if(!O.current)return;let e=O.current.clientWidth;L(e);let t=e/1100,a=e<768,i=e>=768&&e<1100;W(a?Math.min(1.2*t,.5):i?Math.min(1.08*t,.78):Math.min(t,1))},[]);(0,a.useEffect)(()=>{E();let e=new ResizeObserver(E);return O.current&&e.observe(O.current),()=>e.disconnect()},[E]);let R=(0,a.useCallback)(()=>{T.current.forEach(window.clearTimeout),T.current=[]},[]),F=(0,a.useCallback)((e,t)=>{T.current.push(window.setTimeout(e,t))},[]),P=D>0&&D<768,B=D>=768&&D<1100,q=P?u.slice(1,4):B?u.slice(0,4):u,H=q.length,Z=(0,a.useCallback)(()=>{let e=A.current,t=_.current,a=h[e%h.length],i=m[t%m.length];$(!1),b(null),j(null);for(let e=0;e<H;e++)F(()=>{b(e),g(e=>e+200)},800*e);F(()=>b(null),800*H+400),F(()=>{j(i.id)},3500),F(()=>{g(e=>e+500),j(null)},4300),F(()=>{$(!0),S(a)},7e3),F(()=>{g(e=>e-a.amount),$(!1)},8e3),F(()=>{A.current+=1,_.current+=1,Z()},13e3)},[F,H]);(0,a.useEffect)(()=>(R(),Z(),R),[Z,R]);let J=P?28:B?-120:-260,K=P?0:B?18:48,Y=P?602:B?560:550,G=P?890:B?930:1020,Q=P?210:B?165:110,U=H>1?((P?G-170:B?G-150:880)-Q)/(H-1):0,X=[{x:J+K+30,y:255},{x:J+K,y:395},{x:J+K+30,y:535}],V=395-(h.length-1)*120/2;return(0,t.jsx)(i.LazyMotion,{features:l.domAnimation,children:(0,t.jsx)("div",{ref:O,className:"relative mx-auto flex w-full items-center justify-center",style:{height:750*I},children:(0,t.jsxs)("div",{style:{width:1100,height:750,transform:`scale(${I})`,transformOrigin:"center center",position:"absolute"},children:[(o=(e=Math.max(...X.map(e=>e.x+86))+170)-118,c=f-178,d=f+178,(0,t.jsxs)("svg",{width:1100,height:750,style:{position:"absolute",top:0,left:0,zIndex:1,pointerEvents:"none",overflow:"visible"},children:[(0,t.jsx)("path",{d:`M ${o} ${c} Q ${e-10} ${f-97.9} ${e} ${f} Q ${e-10} ${f+97.9} ${o} ${d}`,fill:"none",stroke:"var(--brand-teal)",strokeWidth:3,opacity:.28,strokeLinecap:"round"}),(0,t.jsx)("line",{x1:e,y1:f,x2:Y-96,y2:f,stroke:"var(--brand-teal)",strokeWidth:3,strokeDasharray:"10 6",opacity:.7}),(0,t.jsx)("polygon",{points:`${Y-96},${f-8} ${Y-96},${f+8} ${Y-84},${f}`,fill:"var(--brand-teal)",opacity:.7}),(0,t.jsx)("circle",{cx:e,cy:f,r:8,fill:"var(--brand-teal)",opacity:.8}),(0,t.jsx)("text",{x:(e+Y-96)/2,y:f-18,textAnchor:"middle",fontSize:18,fontWeight:900,fill:"#176162",opacity:1,children:"Shareable Donation Link"})]})),q.map((e,a)=>{let i=y===a;return(0,t.jsxs)(r.m.div,{className:"absolute flex flex-col items-center",style:{left:Q+a*U,top:60,transform:"translateX(-50%)"},animate:{scale:i?1.1:1,opacity:i?1:.85},transition:{duration:.3},children:[(0,t.jsx)("div",{className:"relative overflow-hidden rounded-full bg-white",style:{width:120,height:120,border:i?"3px solid var(--brand-gold)":"3px solid rgba(148,163,184,0.3)",boxShadow:i?"0 0 0 6px rgba(223,169,27,0.15), 0 8px 20px rgba(0,0,0,0.1)":"0 4px 12px rgba(0,0,0,0.08)"},children:(0,t.jsx)(n.default,{src:e.imageSrc,alt:"",fill:!0,sizes:"240px",quality:90,className:"object-cover"})}),(0,t.jsx)("span",{style:{marginTop:8,fontSize:15,fontWeight:i?800:600,color:i?"#D4940A":"#64748b"},children:e.name})]},e.id)}),(0,t.jsx)(s.AnimatePresence,{children:null!==y&&(0,t.jsx)(r.m.div,{className:"absolute z-20 flex items-center justify-center rounded-full font-black text-white",style:{width:52,height:52,fontSize:18,backgroundColor:"#00D632",boxShadow:"0 0 0 10px rgba(0,214,50,0.15)"},initial:{left:Q+y*U-26,top:94,opacity:0,scale:.5},animate:{left:[Q+y*U-26,Q+y*U-26,Y-26],top:[94,94,f-26],opacity:[0,1,1,1,0],scale:[.5,1,1,1,.6]},exit:{opacity:0},transition:{duration:1.4,ease:"easeInOut",times:[0,.3,1]},children:"$"},`contrib-${y}-${x}`)}),(P?[{id:0,x:J-10,y:175},{id:1,x:J+18,y:230},{id:2,x:J-24,y:317},{id:3,x:J-6,y:471},{id:4,x:J+12,y:571},{id:5,x:J-28,y:639}]:[{id:0,x:J-70,y:165},{id:1,x:J-28,y:210},{id:2,x:J-78,y:320},{id:3,x:J-58,y:465},{id:4,x:J-18,y:585},{id:5,x:J-88,y:640}]).map((e,a)=>(0,t.jsx)(r.m.div,{className:"absolute",style:{left:e.x,top:e.y,transform:"translateY(-50%)",zIndex:0},animate:{opacity:[.28,.4,.28],scale:[1,1.035,1]},transition:{duration:4.8,repeat:1/0,ease:"easeInOut",delay:.25*a},children:(0,t.jsx)("div",{style:{width:74,height:74,borderRadius:"50%",backgroundColor:"rgba(248,250,252,0.9)",border:"2px s
1olid rgba(148,163,184,0.55)",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 6px 18px rgba(15,23,42,0.08)"},children:(0,t.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{cx:"12",cy:"8",r:"4",stroke:"#64748b",strokeWidth:"2",fill:"rgba(100,116,139,0.08)"}),(0,t.jsx)("path",{d:"M4 20c0-3.3 3.6-6 8-6s8 2.7 8 6",stroke:"#64748b",strokeWidth:"2",strokeLinecap:"round"})]})})},`background-donor-${e.id}`)),m.map((e,a)=>{let i=X[a],l=w===e.id;return(0,t.jsxs)(r.m.div,{className:"absolute flex items-center gap-3",style:{left:i.x,top:i.y,transform:"translateY(-50%)"},animate:{opacity:l?1:.55,scale:l?1.08:1},transition:{duration:.3},children:[(0,t.jsx)("div",{style:{width:86,height:86,borderRadius:"50%",backgroundColor:l?"rgba(23, 97, 98, 0.06)":"#f8fafc",border:l?"3px solid var(--brand-teal)":"3px solid #94a3b8",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:l?"0 0 0 6px rgba(23,97,98,0.1), 0 6px 20px rgba(23,97,98,0.15)":"0 4px 12px rgba(0,0,0,0.06)",transition:"all 0.3s"},children:(0,t.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{cx:"12",cy:"8",r:"4",stroke:l?"#176162":"#64748b",strokeWidth:"2",fill:l?"rgba(23,97,98,0.1)":"rgba(100,116,139,0.08)"}),(0,t.jsx)("path",{d:"M4 20c0-3.3 3.6-6 8-6s8 2.7 8 6",stroke:l?"#176162":"#64748b",strokeWidth:"2",strokeLinecap:"round"})]})}),(0,t.jsx)("span",{style:{fontSize:16,fontWeight:800,color:l?"var(--brand-teal)":"#475569",whiteSpace:"nowrap"},children:e.label})]},e.id)}),(0,t.jsx)(s.AnimatePresence,{children:null!==w&&(0,t.jsx)(r.m.div,{className:"absolute z-20 flex items-center justify-center rounded-full font-black text-white",style:{width:52,height:52,fontSize:18,backgroundColor:"#00D632",boxShadow:"0 0 0 10px rgba(0,214,50,0.15)"},initial:{left:X[w%X.length].x+43-26,top:X[w%X.length].y-26,opacity:0,scale:.5},animate:{left:Y-26,top:f-26,opacity:[0,1,1,0],scale:[.5,1,1,.7]},exit:{opacity:0},transition:{duration:1.1,ease:"easeInOut"},children:"$"},`donation-${M}`)}),(0,t.jsx)("div",{style:{position:"absolute",left:Y,top:f,transform:"translate(-50%, -50%)",zIndex:15},children:(0,t.jsxs)(r.m.div,{className:"flex flex-col items-center justify-center rounded-full text-white",style:{width:150,height:150,background:"linear-gradient(135deg, var(--brand-gold) 0%, #D4940A 100%)",boxShadow:"0 22px 40px rgba(223,169,27,0.25)"},animate:{scale:null!==y||null!==w?[1,1.04,1]:k?[1,.96,1]:1},transition:{duration:.4},children:[(0,t.jsx)("span",{style:{fontSize:11,fontWeight:900,textTransform:"uppercase",letterSpacing:"0.15em",opacity:.9},children:"Fund"}),(0,t.jsxs)(r.m.span,{initial:{opacity:.6},animate:{opacity:1},style:{fontSize:24,fontWeight:900,marginTop:2},children:["$",x.toLocaleString()]},x)]})}),(0,t.jsx)("div",{style:{position:"absolute",left:550,top:8,fontSize:18,fontWeight:900,color:"#334155",textTransform:"uppercase",letterSpacing:"0.14em",transform:"translateX(-50%)"},children:"Members"}),(0,t.jsx)(s.AnimatePresence,{children:k&&v&&(0,t.jsx)(r.m.div,{className:"absolute z-20 flex items-center justify-center rounded-full font-black text-white",style:{width:52,height:52,fontSize:18,backgroundColor:"#00D632",boxShadow:"0 0 0 10px rgba(0,214,50,0.15)"},initial:{left:524,top:f-26,opacity:1,scale:1},animate:{left:G-40,top:(v?V+120*h.findIndex(e=>e.id===v.id):f)+22,opacity:[1,1,.6,0],scale:[1,1.1,.8]},transition:{duration:1.2,ease:"easeInOut"},children:"$"}
1,`disburse-${v.id}`)}),h.map((e,a)=>{let i=v?.id===e.id,l=(h.length-1)*120,s=p[a];return(0,t.jsxs)(r.m.div,{className:"absolute z-20 flex items-center gap-3",style:{left:G-40,top:395-l/2+120*a,transform:"translateY(-50%)",maxWidth:"140px"},animate:{opacity:i?1:.5,scale:i?1.08:1},transition:{duration:.4},children:[(0,t.jsx)(s,{active:i}),(0,t.jsx)("span",{style:{fontSize:20,fontWeight:i?900:700,color:i?e.color:"#94a3b8",transition:"color 0.4s"},children:e.label})]},`cause-${e.id}`)})]})})})}],173975)}]);
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.