PageSourceSearch

https://vidapeps.com/assets/ImpactPage-Cu9Kuz9m.js

js vidapeps.com collected 2026-10-04 08:10:07 UTC 22,551 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-query-CniT1WJL.js";import{r as l,f as re,L as U}from"./vendor-react-69GsFwrV.js";import{f as le,e7 as oe,aI as q,F as R,G as x,V as b,P as C,at as de,t as g,M as A,e8 as ce,u as me,b1 as ue,e9 as he,ea as xe,aa as pe,eb as fe,ab as ge,ec as we,e1 as be,ed as je,bX as ye,ee as Ne,bZ as Y,bY as ke,c_ as Ce,m as Q,ef as ve,eg as Se}from"./index-KjAD5lCC.js";import{p as _e}from"./prayer-bridge-xtgJoFug.js";import{g as Ae,bp as Pe,v as D,a9 as P,bK as K,d as O,aj as Le,b5 as Ee,b9 as Te,af as Ie,O as Me,bI as ze}from"./vendor-ui-Ad3ANzF6.js";import"./vendor-forms-q6h4WU-p.js";function Z({html:t,className:a,testId:s}){const i=l.useMemo(()=>({__html:t}),[t]);return e.jsx("div",{"data-testid":s,className:le("vf-story max-w-none text-body leading-relaxed text-ink-2 dark:text-white/70","[&_a]:text-vida-green-700 [&_a]:underline","[&_blockquote]:border-l-2 [&_blockquote]:border-vida-green-600/40 [&_blockquote]:pl-4 [&_blockquote]:italic","[&_h2]:mt-5 [&_h2]:text-t3 [&_h2]:font-semibold [&_h2]:text-ink dark:[&_h2]:text-white","[&_h3]:mt-4 [&_h3]:font-semibold [&_h3]:text-ink dark:[&_h3]:text-white","[&_hr]:my-5 [&_hr]:border-[--vp-hairline]","[&_li]:ml-5 [&_ol]:my-2 [&_ol]:list-decimal [&_p]:my-3 [&_ul]:my-2 [&_ul]:list-disc","[&_img]:my-4 [&_img]:block [&_img]:h-auto [&_img]:rounded-2xl","[&_img]:w-full","[&_img[data-width='25']]:w-1/4 [&_img[data-width='50']]:w-1/2","[&_img[data-width='75']]:w-3/4 [&_img[data-width='100']]:w-full","[&_img[data-align='left']]:mr-auto [&_img[data-align='right']]:ml-auto","[&_img[data-align='center']]:mx-auto","max-shell:[&_img[data-width='25']]:w-full max-shell:[&_img[data-width='50']]:w-full",a),dangerouslySetInnerHTML:i})}const Ve={individual:"an individual",organization:"an organization",qualified_charity:"a qualified charity"},Fe={live:"Live now",paused:"Paused",ended:"Ended",reconciling:"Ended",settled:"Settled"};function $e(t){return String(Number((t/100).toFixed(2)))}function Re({campaign:t}){const[a,s]=l.useState(!1);if(!t.supportCode)return null;const i=async()=>{try{await navigator.clipboard.writeText(t.supportCode??""),s(!0),setTimeout(()=>s(!1),2e3)}catch{s(!1)}};return e.jsx(x,{className:"mt-6",children:e.jsxs("div",{className:"flex flex-col items-center py-2 text-center",children:[e.jsx("p",{className:"text-caption font-medium uppercase tracking-wide text-ink-3 dark:text-white/55",children:"Support Code"}),e.jsx("p",{className:"mt-2 font-mono text-2xl font-semibold tracking-wider text-ink dark:text-white",children:t.supportCode}),e.jsxs("div",{className:"mt-4 flex flex-col items-center gap-2.5 sm:flex-row",children:[e.jsxs(b,{type:"button",variant:"ghost",onClick:i,children:[a?e.jsx(O,{className:"mr-1.5 inline size-4"}):e.jsx(Le,{className:"mr-1.5 inline size-4"}),a?"Copied":"Copy code"]}),e.jsx(b,{asChild:!0,onClick:()=>ce(t.supportCode??""),"data-testid":"button-shop-with-code",children:e.jsx(U,{href:"/products",children:"Shop with this code"})})]}),e.jsxs("p",{className:"mt-4 inline-flex items-center gap-1.5 text-caption text-ink-3 dark:text-white/55",children:[e.jsx(Ee,{className:"size-3.5"}),A(t.startsAt)," to ",A(t.endsAt)]})]})})}function qe({campaign:t}){const a=t.settledContributionCents!=null,s=a?t.settledContributionCents??0:t.estimatedContributionCents,i=t.goalCents,r=t.leafTotalCents,c=s+r,d=i&&i>0?Math.min(100,Math.round(c/i*100)):null,m=_e(t.prayerSupport);return e.jsx(x,{className:"mt-8",children:e.jsxs("div",{className:"flex flex-col items-center py-2 text-center",children:[e.jsx("p",{className:"text-caption font-medium uppercase tracking-wide text-ink-3 dark:text-white/55",children:a?"Final settled amount":"Estimated contribution"}),e.jsx("p",{className:"mt-2 text-4xl font-semibold tracking-tight text-ink dark:text-white",children:g(s)}),e.jsx("div",{className:"mt-3",children:a?e.jsxs(C,{variant:"mint",children:[e.jsx(O,{className:"mr-1 inline size-3.5"}),"Final settled amount",t.settledAt?` on ${A(t.settledAt)}`:""]}):e.jsxs(e.Fragment,{children:[e.jsx(C,{variant:"gold",children:"Estimated"}),e.jsx("p",{className:"mt-2 max-w-sm text-caption text-ink-3 dark:text-white/55",children:"The final amount is set after the campaign settles."})]})}),d!=null&&i!=null&&e.jsxs("div",{className:"mt-6 w-full max-w-md",children:[e.jsx("div",{className:"h-2.5 w-full overflow-hidden rounded-full bg-ink/10 dark:bg-white/10",role:"progressbar","aria-valuenow":d,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Progress toward the campaign goal",children:e.jsx("div",{className:"h-full rounded-full bg-vida-green-600 transition-[width]",style:{width:`${d}%`}})}),e.jsxs("p",{className:"mt-2 text-caption text-ink-3 dark:text-white/55",children:[g(c)," of ",g(i)," goal (",d,"%)"]}),e.jsx("p",{className:"mt-1 text-caption text-ink-3 dark:text-white/55",children:a?"Progress combines VidaLeaf contributions with the final settled amount.":"Progress combines VidaLeaf contributions with the estimated profit share."})]}),e.jsx("p",{className:"mt-4 text-sm text-ink-2 dark:text-white/70",children:t.attributedOrders===1?"1 order contributed":`${t.attributedOrders} orders contributed`}),t.leafCount>0&&e.jsxs("p",{className:"mt-1 text-sm text-ink-2 dark:text-white/70",children:[t.leafCount===1?"1 VidaLeaf":`${t.leafCount} VidaLeafs`," totaling"," ",g(r)," contributed directly"]}),m?e.jsx("p",{className:"mt-1 text-sm text-ink-2 dark:text-white/70","data-testid":"text-vf-prayer-support",children:m}):null,e.jsxs("p",{className:"mt-1 text-caption text-ink-3 dark:text-white/55",children:["Last updated ",A(t.calculatedAt)]})]})})}function J({children:t}){return e.jsx(e.Fragment,{children:t})}function G({icon:t,title:a,hint:s,defaultOpen:i,testId:r,children:c}){const[d,m]=l.useState(!!i);return e.jsxs(x,{className:"mt-4",children:[e.jsxs("button",{type:"button",className:"flex w-full items-center gap-3 text-left",onClick:()=>m(v=>!v),"aria-expanded":d,"data-testid":r,children:[e.jsx("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-vida-mint-soft text-vida-green-700",children:e.jsx(t,{className:"size-4.5"})}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsx("span",{className:"block text-body font-semibold text-ink dark:text-white",children:a}),s?e.jsx("span",{className:"mt-0.5 block text-caption text-ink-3 dark:text-white/55",children:s}):null]}),e.jsx(Ie,{className:`size-4 shrink-0 text-ink-3 transition-transform dark:text-white/55 ${d?"rotate-180":""}`,"aria-hidden":"true"})]}),d?e.jsx("div",{className:"mt-4",children:c}):null]})}function De({campaign:t}){const a=$e(t.contributionBps),s=t.beneficiary.displayName,i=[{icon:Me,text:t.supportCode?`Shop with code ${t.supportCode}
1`:"Shop with this campaign's Support Code"},{icon:P,text:`${a}% of the profit goes to ${s}`},{icon:D,text:t.payoutCapCents!=null?`Paid out after settlement, up to ${g(t.payoutCapCents)}`:"Paid out to them after the campaign settles"}];return e.jsxs(x,{className:"mt-4",children:[e.jsx("h2",{className:"text-body font-semibold text-ink dark:text-white",children:"How it works"}),e.jsx("ol",{className:"mt-3 grid gap-2.5 shell:grid-cols-3",children:i.map((r,c)=>e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-full bg-vida-mint-soft text-caption font-semibold text-vida-green-700",children:c+1}),e.jsx("span",{className:"text-caption text-ink-2 dark:text-white/70",children:r.text})]},r.text))}),e.jsxs("p",{className:"mt-3 text-caption text-ink-3 dark:text-white/55",children:[e.jsx(ze,{className:"mr-1 inline size-3.5"}),t.supportCode?`Exactly: ${a}% of the profit from paid orders placed with code ${t.supportCode} during this campaign goes to ${s}.`:`Exactly: ${a}% of the profit from paid orders placed with this campaign's Supp
1ort Code goes to ${s}.`," ","Amounts shown are estimates until final settlement. Purchases support this campaign through our profit share and are not tax-deductible."]})]})}const Ue=100,Ke=1e5,Oe=/^[^@\s]+@[^@\s]+\.[^@\s]+$/,We=500,k="w-full rounded-lg border border-ink/15 bg-white px-3 py-2 text-base sm:text-sm text-ink placeholder:text-ink-3 outline-none focus:border-vida-green-600 dark:border-white/15 dark:bg-white/5 dark:text-white dark:placeholder:text-white/40";function He(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:null}function Be({campaign:t,slug:a,bare:s}){const i=s?J:x,{isAuthenticated:r}=me(),{toast:c}=Q(),d=ue(),[m,v]=l.useState(""),[j,S]=l.useState(""),[y,L]=l.useState(""),[w,M]=l.useState(""),[u,E]=l.useState(null),[T,I]=l.useState(!1),[p,ee]=l.useState(null),[te,se]=l.useState(null),[z,ae]=l.useState(null),V=he({query:{queryKey:ve(),retry:!1}}),_=l.useMemo(()=>(V.data??[]).filter(n=>n.checkoutMode!=="embedded_card").slice().sort((n,f)=>n.sortOrder-f.sortOrder),[V.data]);l.useEffect(()=>{u===null&&_.length>0&&E(_[0].key)},[u,_]);const F=xe(),W=Number(m.trim()),N=Number.isFinite(W)&&m.trim()?Math.round(W*100):0,$=N>=Ue&&N<=Ke,ie=r||Oe.test(w.trim()),ne=$&&ie&&!!u&&!F.isPending,H=n=>{const f=ye("support-leaf-purchase",{campaign:a,valueCents:N,actor:r?"signed-in":w.trim().toLowerCase()});F.mutate({slug:a,data:{clientAttemptId:f.attemptId,...n?{confirmRepeatOfAttemptId:n}:{},valueCents:N,railKey:u,...r?{}:{email:w.trim()},...j.trim()?{displayName:j.trim()}:{},...y.trim()?{message:y.trim()}:{}}},{onSuccess:o=>{I(!1),r&&ke(o)&&Y(f);const h=o.payment?.paymentUrl;if(h){Ce(o.contributionUrl),window.location.assign(h);return}ee(o.payment),se(o.documentNo),ae(o.contributionUrl)},onError:async o=>{o instanceof q&&Ne(o,{preserveGuestReplayCapability:!r})&&Y(f);const h=o instanceof q?o.data:null;if(h?.code==="PAYMENT_ATTEMPT_POSSIBLE_DUPLICATE"&&h.requiresAuthenticationForRepeat===!0&&!r){I(!0);return}if(h?.code==="PAYMENT_ATTEMPT_POSSIBLE_DUPLICATE"&&h.canConfirmRepeat===!0&&Number.isInteger(h.priorAttemptId)&&await d({title:"Contribute this amount again?",description:"A matching contribution already completed.",confirmLabel:"Contribute again"})){H(h.priorAttemptId);return}const B=o;c({title:"Could not complete the contribution",description:B.data?.error??B.message??"Please try again.",variant:"destructive"})}})};if(p){const n=p.status==="confirming",f=!n&&!p.paymentUrl;return e.jsxs(i,{children:[e.jsxs("div",{className:"flex flex-col items-center py-4 text-center",children:[e.jsx("div",{className:"mx-auto flex size-14 items-center justify-center rounded-full bg-vida-mint-soft text-vida-green-700",children:e.jsx(P,{className:"size-7"})}),e.jsx("h2",{className:"mt-4 text-t3 font-semibold text-ink dark:text-white",children:n?"Payment status is being reconciled":f?"One more step":"Thank you for your VidaLeaf"}),e.jsx("p",{className:"mt-2 max-w-md text-body text-ink-2 dark:text-white/70",children:n?"Do not retry or send another payment. Keep this page open or check your contribution link for an update. If the status does not update, contact support.":f?"Send the amount below using the details shown, and type the reference code into the payment memo so we can match your contribution.":`Your contribution is on its way. Once it clears, the full amount is recorded as owed to ${t.beneficiary.displayName} and paid out on the payout method they choose.`}),n&&z?e.jsx("a",{href:z,className:"mt-4 text-sm font-medium text-vida-green-700 underline underline-offset-4",children:"Check your contribution status"}):null]}),f&&e.jsxs("div",{className:"mt-4 text-left",children:[e.jsx(pe,{railKey:p.railKey,amountCents:p.amountCents,discountCents:p.discountCents,referenceCode:p.referenceCode,expiresAt:p.expiresAt,memoDocumentNo:te,instructions:He(p.instructions),reportPayer:(()=>{const o=fe(z);return o?ge(h=>we(o.leafId,h,{t:o.t})):null})()}),e.jsxs("p",{className:"mt-3 text-caption text-ink-3 dark:text-white/55",children:["Keep this reference code. Once your payment clears, the full amount is recorded as owed to ",t.beneficiary.displayName," and paid out on the payout method they choose."]})]})]})}return e.jsxs(i,{children:[e.jsxs("h2",{className:"flex items-center gap-2 text-t3 font-semibold text-ink dark:text-white",children:[e.jsx(P,{className:"size-5 text-vida-green-700"}),"Contribute with a VidaLeaf"]}),e.jsxs("p",{className:"mt-2 text-body text-ink-2 dark:text-white/70",children:["A VidaLeaf is a direct contribution to this campaign. O
1nce your payment clears, the full amount is recorded as owed to ",t.beneficiary.displayName," and paid out to them on the payout method they choose."]}),t.leafCount>0&&e.jsxs("p",{className:"mt-2 text-sm text-ink-2 dark:text-white/70",children:["So far: ",t.leafCount===1?"1 VidaLeaf":`${t.leafCount} VidaLeafs`," ","totaling ",g(t.leafTotalCents)," contributed directly."]}),e.jsxs("div",{className:"mt-4 space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"leaf-amount",className:"mb-1.5 block text-sm font-medium",children:"Amount in dollars ($1 to $1,000) *"}),e.jsx("input",{id:"leaf-amount",inputMode:"decimal",value:m,onChange:n=>{v(n.target.value),I(!1)},className:k,placeholder:"25"})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"leaf-name",className:"mb-1.5 block text-sm font-medium",children:"Display name (optional)"}),e.jsx("input",{id:"leaf-name",value:j,maxLength:80,onChange:n=>S(n.target.value),className:k,placeholder:"Shown with your well wish"})]}),!r&&e.jsxs("div",{children:[e.jsx("label",{htmlFor:"leaf-email",className:"mb-1.5 block text-sm font-medium",children:"Your email *"}),e.jsx("input",{id:"leaf-email",type:"email",value:w,onChange:n=>{M(n.target.value),I(!1)},className:k,placeholder:"[email protected]","aria-describedby":"leaf-email-help"}),e.jsx("p",{id:"leaf-email-help",className:"mt-1 text-caption text-ink-3 dark:text-white/55",children:"We send your receipt here, and we set up a Vida account with this email if you do not have one yet."})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"leaf-message",className:"mb-1.5 block text-sm font-medium",children:"Short message (optional)"}),e.jsx("textarea",{id:"leaf-message",value:y,maxLength:We,rows:2,onChange:n=>L(n.target.value),className:k,placeholder:"A few kind words"}),e.jsx("p",{className:"mt-1 text-caption text-ink-3 dark:text-white/55",children:"Your message posts to the well wishes wall after a quick moderation check."})]}),_.length>0?e.jsx(be,{methods:_,listPriceCents:$?N:0,value:u,onChange:E}):e.jsx("p",{className:"text-sm text-ink-3 dark:text-white/55",children:V.isLoading?"Loading payment methods...":"No payment methods are available right now."}),T?e.jsxs("div",{className:"rounded-xl border border-vida-gold-700/20 bg-vida-gold-soft p-4 text-sm text-vida-gold-700",role:"status",children:[e.jsx("p",{className:"font-semibold",children:"Sign in with the same email to contribute this amount again"}),e.jsx("p",{className:"mt-1",children:"Your earlier contribution remains recoverable. Signing in proves this is an intentional new contribution without exposing its details to someone who only knows your email."}),e.jsx(b,{asChild:!0,className:"mt-3",variant:"ghost",children:e.jsx(U,{href:`/login?redirect=${encodeURIComponent(`/forward/c/${a}`)}`,children:"Sign in to contribute again"})})]}):null,e.jsx(b,{type:"button",onClick:()=>H(),disabled:!ne,className:"w-full",children:F.isPending?"Processing...":`Contribute ${$?g(N):""} with a VidaLeaf`.trim()}),e.jsx("p",{className:"text-caption text-ink-3 dark:text-white/55",children:"VidaLeaf contributions are final and are not tax-deductible."})]})]})}const Ye=80,X=500;function Ge({slug:t,bare:a}){const s=a?J:x,{toast:i}=Q(),[r,c]=l.useState(""),[d,m]=l.useState(""),[v,j]=l.useState(!1),S=je(),y=r.trim(),L=d.trim(),w=!!y&&!!L&&!S.isPending,M=u=>{u.preventDefault(),w&&S.mutate({slug:t,data:{displayName:y,message:L}},{onSuccess:()=>{c(""),m(""),j(!0)},onError:E=>{const T=E;i({title:"Could not send your message",description:T.data?.error??T.message??"Please try again.",variant:"destructive"})}})};return v?e.jsx(s,{children:e.jsxs("div",{className:"flex flex-col items-center py-4 text-center",children:[e.jsx("div",{className:"mx-auto flex size-14 items-center justify-center rounded-full bg-vida-mint-soft text-vida-green-700",children:e.jsx(O,{className:"size-7"})}),e.jsx("h2",{className:"mt-4 text-t3 font-semibold text-ink dark:text-white",children:"Thank you for your message"}),e.jsx("p",{className:"mt-2 max-w-md text-body text-ink-2 dark:text-white/70",children:"It goes to the well wishes wall after a quick moderation check, so it will not appear right away."}),e.jsx(b,{type:"button",variant:"ghost",className:"mt-4",onClick:()=>j(!1),children:"Leave another message"})]})}):e.jsxs(s,{children:[e.jsxs("h2",{className:"flex items-center gap-2 text-t3 font-semibold text-ink dark:text-white",children:[e.jsx(K,{className:"size-5 text-vida-green-700"}),"Leave a well wish"]}),e.jsx("p",{className:"mt-2 text-body text-ink-2 dark:text-white/70",children:"Send a few kind words. This is free, and it does not require a contribution or an account."}),e.jsxs("form",{onSubmit:M,className:"mt-4 space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"wish-name",className:"mb-1.5 block text-sm font-medium",children:"Display name *"}),e.jsx("input",{id:"wish-name",value:r,maxLength:Ye,onChange:u=>c(u.target.value),className:k,placeholder:"Shown with your well wish"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"wish-message",className:"mb-1.5 block text-sm font-medium",children:"Your message *"}),e.jsx("textarea",{id:"wish-message",value:d,maxLength:X,rows:3,onChange:u=>m(u.target.value),className:k,placeholder:"A few kind words"}),e.jsxs("p",{className:"mt-1 text-caption text-ink-3 dark:text-white/55",children:["Up to ",X," characters. Your message posts to the well wishes wall after a quick moderation check."]})]}),e.jsx(b,{type:"submit",disabled:!w,className:"w-full",children:S.isPending?"Sending...":"Send well wish"})]})]})}function Xe({campaign:t}){const a=[...t.updates].sort((s,i)=>new Date(i.createdAt).getTime()-new Date(s.createdAt).getTime());return a.length===0?null:e.jsxs(x,{className:"mt-6",children:[e.jsxs("h2",{className:"flex items-center gap-2 text-t3 font-semibold text-ink dark:text-white",children:[e.jsx(Te,{className:"size-5 text-vida-green-700"}),"Campaign updates"]}),e.jsx("ol",{className:"mt-4 space-y-4",children:a.map((s,i)=>e.jsxs("li",{className:"border-l-2 border-vida-green-600/30 pl-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(C,{variant:s.authorKind==="owner"?"mint":"neutral",children:s.authorKind==="owner"?"Campaign owner":"
1VidaPeps team"}),e.jsx("span",{className:"text-caption text-ink-3 dark:text-white/55",children:A(s.createdAt)})]}),e.jsx(Z,{html:s.body,className:"mt-2",testId:`story-vf-update-${i}`})]},i))})]})}function Qe({campaign:t}){const a=t.wishes;return a.length===0?null:e.jsxs(x,{className:"mt-6",children:[e.jsxs("h2",{className:"flex items-center gap-2 text-t3 font-semibold text-ink dark:text-white",children:[e.jsx(K,{className:"size-5 text-vida-green-700"}),"Well wishes"]}),e.jsx("ul",{className:"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2",children:a.map((s,i)=>e.jsxs("li",{className:"rounded-xl bg-ink/5 p-3.5 dark:bg-white/5",children:[e.jsx("p",{className:"text-sm font-semibold text-ink dark:text-white",children:s.displayName}),e.jsx("p",{className:"mt-1 text-sm text-ink-2 dark:text-white/70",children:s.message}),s.leafValueCents!=null&&e.jsx("p",{className:"mt-2",children:e.jsxs(C,{variant:"gold",children:[e.jsx(P,{className:"mr-1 inline size-3.5"}),"VidaLeaf ",g(s.leafValueCents)]})})]},i))})]})}function nt(){const{slug:t=""}=re(),a=oe(t,{query:{enabled:t.length>0,retry:!1,queryKey:Se(t)}}),s=a.data??null,i=a.isError&&a.error instanceof q&&a.error.status===404;return a.isLoading?e.jsx(R,{className:"py-16",children:e.jsxs("div",{className:"flex items-center justify-center gap-2 text-ink-3 dark:text-white/55",children:[e.jsx(Ae,{className:"size-5 animate-spin"}),e.jsx("span",{className:"text-body",children:"Loading campaign..."})]})}):i||a.isError&&!i||!s?e.jsx(R,{className:"py-16",children:e.jsx(x,{className:"mx-auto max-w-xl",children:e.jsxs("div",{className:"flex flex-col items-center py-6 text-center",children:[e.jsx(Pe,{className:"size-10 text-ink-3 dark:text-white/55"}),e.jsx("h1",{className:"mt-4 text-t2 font-semibold text-ink dark:text-white",children:"This campaign isn't available"}),e.jsx("p",{className:"mt-2 max-w-md text-body text-ink-2 dark:text-white/70",children:i?"This VidaForward Campaign may have ended or the link may be incorrect.":"We could not load this campaign just now. Refresh the page to try again."}),e.jsx(b,{asChild:!0,className:"mt-6",children:e.jsx(U,{href:"/",children:"Back to VidaPeps"})})]})})}):e.jsxs(R,{className:"py-8 md:py-12",width:"narrow",children:[e.jsxs("div",{className:"mx-auto max-w-2xl text-center",children:[s.heroImageUrl?e.jsx("div",{className:"relative mb-6 aspect-[16/9] w-full overflow-hidden rounded-2xl bg-ink/5 dark:bg-white/5",children:e.jsx("img",{src:s.heroImageUrl,alt:"",className:"h-full w-full object-cover",loading:"lazy"})}):e.jsx("div",{className:"mb-6 flex aspect-[16/9] w-full items-center justify-center rounded-2xl bg-vida-mint-soft",children:e.jsx(D,{className:"size-16 text-vida-green-700"})}),e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[e.jsxs(C,{variant:"mint",children:[e.jsx(D,{className:"mr-1 inline size-3.5"}),"VidaForward Campaign"]}),e.jsx(C,{variant:"neutral",children:Fe[s.status]??s.status})]}),e.jsx(de,{as:"h1",center:!0,className:"mt-4",title:s.title}),e.jsxs("p",{className:"mt-2 text-body text-ink-2 dark:text-white/70",children:["Supporting ",s.beneficiary.displayName,","," ",Ve[s.beneficiary.kind]??s.beneficiary.kind]})]}),e.jsx(qe,{campaign:s}),e.jsx(Re,{campaign:s}),s.storyMarkdown?e.jsxs(x,{className:"mt-4",children:[e.jsx("h2",{className:"text-t3 font-semibold text-ink dark:text-white",children:"The story"}),e.jsx(Z,{html:s.storyMarkdown,className:"mt-3",testId:"story-vf-campaign"})]}):null,e.jsx(Xe,{campaign:s}),e.jsx(G,{icon:P,title:"Contribute with a VidaLeaf",hint:"A direct contribution, paid out in full to this campaign",testId:"disclosure-vf-contribute",children:e.jsx(Be,{campaign:s,slug:t,bare:!0})}),e.jsx(G,{icon:K,title:"Leave a well wish",hint:"Free, and it does not need an account",testId:"disclosure-vf-wish",children:e.jsx(Ge,{slug:t,bare:!0})}),e.jsx(Qe,{campaign:s}),e.jsx(De,{campaign:s})]})}export{nt as default};

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.