PageSourceSearch

https://vidapeps.com/assets/SupportApply-D1R55iNW.js

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

1import{b as Ee,j as e}from"./vendor-query-CniT1WJL.js";import{u as Fe,aH as Pe,aI as M,e4 as ze,e5 as Ve,F as Oe,P as Le,at as We,G as h,V as l,f as F,aO as q,O as _e,aN as De,e6 as Be}from"./index-KjAD5lCC.js";import{r as i,L as f}from"./vendor-react-69GsFwrV.js";import{v as qe,g as H,d as ee,X as Me,bI as Qe,aO as Ke,ai as Ye,_ as te,bJ as Re,J as Ue}from"./vendor-ui-Ad3ANzF6.js";import"./vendor-forms-q6h4WU-p.js";const c="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",$={draft:{title:"Application received",body:"Your VidaForward application has been received. Our team will review it shortly.",tone:"pending"},submitted:{title:"Under review",body:"Your application is under review. Our team reads every application and will be in touch by email.",tone:"pending"},needs_info:{title:"We need a bit more info",body:"We need a little more information before we can finish reviewing your application.",tone:"info"}
1,approved:{title:"Approved",body:"You are approved. Your campaign page is waiting for you: add a photo, finish your story, then take it live yourself.",tone:"ok"},rejected:{title:"Application not approved",body:"We were not able to approve this application. If you have questions, reach out to our team and we can share more.",tone:"muted"},withdrawn:{title:"Application withdrawn",body:"This application was withdrawn. If that was a mistake, you can start a new application below.",tone:"muted"},suspended:{title:"Campaign paused",body:"This campaign is currently paused. Our team will be in touch if anything changes.",tone:"muted"}},ae={individual:"Individual",organization:"Organization",qualified_charity:"Qualified charity"},Ge={pending:"bg-vida-gold-soft text-vida-gold-700",info:"bg-vida-mint-soft text-vida-green-700",ok:"bg-vida-mint-soft text-vida-green-700",muted:"bg-ink/5 text-ink-2 dark:bg-white/5 dark:text-white/70"},k=[{value:"beneficiary",label:"Beneficiary"},{value:"campaign",label:"Campaign"},{value:"story",label:"Story"},{value:"code",label:"Support Code"},{value:"review",label:"Review"}],J=/^[a-z0-9]+(?:-[a-z0-9]+)*$/i,He=/^[^@\s]+@[^@\s]+\.[^@\s]+$/;function X(t){if(!t.trim())return;const s=new Date(t);return Number.isNaN(s.getTime())?void 0:s.toISOString()}function $e(t){const s=De(t);return s!==null&&s>0?s:null}function Je(t){if(t instanceof M&&t.data&&typeof t.data=="object"){const s=t.data.error;if(typeof s=="string"&&s.trim())return s}return null}function Xe(t){if(!t.data||typeof t.data!="object")return!1;const s=t.data.taken;return s==="code"||s==="slug"}function Ze(t){const s=t instanceof Date?t:new Date(t);return Number.isNaN(s.getTime())?"":s.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function Z(t){const s=new Date(t);return Number.isNaN(s.getTime())?"":s.toLocaleString("en-US",{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"})}function et({tone:t}){return t==="ok"?e.jsx(te,{className:"size-8 text-vida-green-700"}):t==="info"?e.jsx(Re,{className:"size-8 text-vida-green-700"}):e.jsx(Ue,{className:"size-8 text-vida-gold-700"})}function tt({application:t}){const s=$[t.status]??$.submitted,n=t.status==="needs_info"?t.needsInfoMessage:null;return e.jsx(h,{className:"mx-auto mt-10 max-w-2xl",children:e.jsxs("div",{className:"flex flex-col items-center py-4 text-center",children:[e.jsx("div",{className:F("mx-auto flex size-16 items-center justify-center rounded-full",Ge[s.tone]),children:e.jsx(et,{tone:s.tone})}),e.jsx("h2",{className:"mt-4 text-t2 font-semibold text-ink dark:text-white",children:s.title}),e.jsx("p",{className:"mt-2 max-w-md text-body text-ink-2 dark:text-white/70",children:s.body}),n?e.jsxs("div",{className:"mt-4 w-full max-w-md rounded-2xl bg-vida-mint-soft p-4 text-left","data-testid":"text-application-needs-info",children:[e.jsx("p",{className:"text-overline uppercase text-vida-green-700",children:"What we need"}),e.jsx("p",{className:"mt-1.5 whitespace-pre-wrap text-body text-ink-2",children:n}),e.jsx("p",{className:"mt-2 text-caption text-ink-3",children:"Reply by email and we will pick it up."})]}):t.status==="needs_info"?e.jsx("p",{className:"mt-2 max-w-md text-body text-ink-2 dark:text-white/70",children:"Keep an eye on your inbox for a note from our team."}):null,e.jsxs("dl",{className:"mt-6 w-full max-w-sm space-y-2 rounded-2xl bg-ink/5 p-4 text-left dark:bg-white/5",children:[e.jsxs("div",{className:"flex justify-between gap-4 text-sm",children:[e.jsx("dt",{className:"text-ink-3 dark:text-white/55",children:"Supporting"}),e.jsx("dd",{className:"font-medium text-ink dark:text-white",children:t.displayName})]}),e.jsxs("div",{className:"flex justify-between gap-4 text-sm",children:[e.jsx("dt",{className:"text-ink-3 dark:text-white/55",children:"Applicant type"}),e.jsx("dd",{className:"font-medium text-ink dark:text-white",children:ae[t.kind]??t.kind})]}),e.jsxs("div",{className:"flex justify-between gap-4 text-sm",children:[e.jsx("dt",{className:"text-ink-3 dark:text-white/55",children:"Submitted"}),e.jsx("dd",{className:"font-medium text-ink dark:text-white",children:Ze(t.createdAt)})]})]}),t.status==="approved"?e.jsxs(e.Fragment,{children:[e.jsx(l,{asChild:!0,className:"mt-6",children:e.jsx(f,{href:"/account/forward",children:"Set up and launch your campaign"})}),e.jsx("p",{className:"mt-3 max-w-md text-caption text-ink-3 dark:text-white/55",children:"Nothing is public until you press the launch button yourself."})]}):e.jsx(l,{asChild:!0,variant:"ghost",className:"mt-6",children:e.jsx(f,{href:"/account/forward",children:"Track it in your account"})})]})})}function at({campaignCreated:t,campaignError:s}){return e.jsx(h,{className:"mx-auto mt-10 max-w-2xl",children:e.jsxs("div",{className:"flex flex-col items-center py-4 text-center",children:[e.jsx("div",{className:"mx-auto flex size-16 items-center justify-center rounded-full bg-vida-mint-soft text-vida-green-700",children:e.jsx(te,{className:"size-8"})}),e.jsx("h2",{className:"mt-4 text-t2 font-semibold text-ink dark:text-white",children:"Application received"}),e.jsxs("p",{className:"mt-2 max-w-md text-body text-ink-2 dark:text-white/70",children:["Our team reviews every VidaForward application by hand and will be in touch by email.",t?" Your campaign is saved as a draft and goe
1s live once the review is complete.":" Once your beneficiary is approved, you can finish setting up the campaign from your account."]}),s&&e.jsx("div",{className:"mt-4 max-w-md rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700",children:s}),e.jsx("p",{className:"mt-3 max-w-md text-caption text-ink-3 dark:text-white/55",children:"Any amounts shown publicly during a campaign are estimates until final settlement."}),e.jsxs("div",{className:"mt-6 flex flex-col items-center justify-center gap-2.5 sm:flex-row",children:[e.jsx(l,{asChild:!0,children:e.jsx(f,{href:"/account/forward",children:"Go to your VidaForward page"})}),e.jsx(l,{asChild:!0,variant:"ghost",children:e.jsx(f,{href:"/forward",children:"Explore VidaForward"})})]})]})})}function st({step:t}){const s=k.findIndex(n=>n.value===t);return e.jsx("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-1.5",children:k.map((n,g)=>{const o=n.value===t,m=g<s;return e.jsxs("span",{className:F("flex items-center gap-1.5 rounded-pill px-3 py-1.5 text-xs font-semibold",o?"bg-primary text-primary-foreground":m?"bg-vida-mint-soft text-vida-green-700":"bg-ink/5 text-ink-3 dark:bg-white/5 dark:text-white/55"),children:[m?e.jsx(ee,{className:"size-3"}):null,n.label]},n.value)})})}function ct(){const{user:t,isAuthenticated:s,isLoading:n}=Fe(),g=Ee(),o=Pe({query:{enabled:s,retry:!1,queryKey:q()}}),m=o.data??null,se=new Set(["withdrawn","rejected"]),ie=m!=null&&!se.has(m.status),ne=o.isError&&o.error instanceof M&&o.error.status===404,re=o.isError&&!ne,le=ze(),[r,N]=i.useState("beneficiary"),[d,oe]=i.useState("myself"),[S,de]=i.useState("individual"),[C,ce]=i.useState(""),[A,me]=i.useState(""),[T,xe]=i.useState(""),[y,ue]=i.useState(""),[b,pe]=i.useState(""),[P,he]=i.useState(""),[z,fe]=i.useState(""),[I,ge]=i.useState(""),[j,ye]=i.useState(""),[V,Q]=i.useState(!1),[K,w]=i.useState(null),[O,be]=i.useState(null),E=[t?.firstName,t?.lastName].filter(Boolean).join(" ")||t?.email||"";i.useEffect(()=>{const a=setTimeout(()=>ye(I.trim()),400);return()=>clearTimeout(a)},[I]);const u=I.trim(),L=u.length>=2&&J.test(u),je=j.length>=2&&J.test(j),Y=Ve({code:j},{query:{enabled:je,retry:!1,queryKey:Be({code:j})}}),p=Y.data??null,W=L&&(u!==j||Y.isFetching),R=!W&&p?.codeAvailable===!0&&p?.slugAvailable===!0,we=!W&&p!=null&&(!p.codeAvailable||!p.slugAvailable),ve=d==="myself"?E.trim().length>=2:C.trim().length>=2&&He.test(A.trim()),v=$e(P),ke=T.trim().length>=2&&y.trim().length>0&&b.trim().length>0&&new Date(b).getTime()>new Date(y).getTime()&&(P.trim()===""||v!=null),Ne=z.trim().length>=10,Se={beneficiary:ve,campaign:ke,story:Ne,code:L&&R,review:!0},_=k.findIndex(a=>a.value===r);function Ce(){const a=k[_+1];a&&N(a.value)}function Ae(){const a=k[_-1];a&&N(a.value)}const Te=async()=>{w(null);const a=X(y),G=X(b);if(!a||!G){N("campaign"),w("Pick a valid campaign window before submitting.");return}Q(!0);const Ie=d==="myself"?E.trim():C.trim();try{const x=await le.mutateAsync({data:{kind:S,displayName:Ie,contactEmail:t?.email??"",applicationText:z.trim(),...d==="someone_else"?{onBehalfEmail:A.trim()}:{},campaign:{title:T.trim(),startsAt:a,endsAt:G,...v!=null?{goalCents:v}:{},supportCode:{code:u.toUpperCase()}}}});g.invalidateQueries({queryKey:q()}),g.invalidateQueries({queryKey:_e()}),be({campaignCreated:x.campaign!=null,campaignError:x.campaignError??null})}catch(x){const B=Je(x);x instanceof M&&x.status===409?Xe(x)?(N("code"),w(B??"That Support Code is already taken. Pick another one.")):(g.invalidateQueries({queryKey:q()}),w(B??"You already have an open VidaForward application.")):w(B??"Failed to submit application. Please try again.")}finally{Q(!1)}},D=u.toUpperCase(),U=u.toLowerCase();return e.jsxs(Oe,{className:"py-8 md:py-12",children:[e.jsxs("div",{className:"mx-auto max-w-2xl text-center",children:[e.jsxs(Le,{variant:"mint",children:[e.jsx(qe,{className:"inline size-3.5 mr-1"}),"VidaForward"]}
1),e.jsx(We,{as:"h1",center:!0,className:"mt-4",title:"Apply to run a VidaForward Campaign",sub:"Your beneficiary receives a percentage of the profit from paid orders placed with their Support Code during the campaign window."}),e.jsx("p",{className:"mx-auto mt-3 max-w-xl text-caption text-ink-3 dark:text-white/55",children:"Our team reviews every application. Amounts shown publicly are estimates until final settlement."})]}),n||s&&o.isLoading?e.jsx(h,{className:"mx-auto mt-10 max-w-2xl",children:e.jsxs("div",{className:"flex items-center justify-center gap-2 py-10 text-ink-3 dark:text-white/55",children:[e.jsx(H,{className:"size-5 animate-spin"}),e.jsx("span",{className:"text-body",children:"Loading..."})]})}):s?ie&&m?e.jsx(tt,{application:m}):re?e.jsx(h,{className:"mx-auto mt-10 max-w-2xl",children:e.jsx("div",{className:"py-8 text-center",children:e.jsx("p",{className:"text-body text-ink-2 dark:text-white/70",children:"We could not check your application status just now. Refresh the page to try again."})})}):O?e.jsx(at,{campaignCreated:O.campaignCreated,campaignError:O.campaignError}):e.jsxs("div",{className:"mx-auto mt-8 max-w-2xl",children:[e.jsx(st,{step:r}),K&&e.jsx("div",{role:"alert",className:"mt-6 rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700",children:K}),e.jsxs(h,{className:"mt-6",children:[r==="beneficiary"&&e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("span",{className:"mb-1.5 block text-sm font-medium",children:"Who is this campaign for? *"}),e.jsx("div",{className:"grid grid-cols-2 gap-2",children:[{value:"myself",label:"Myself"},{value:"someone_else",label:"Someone else"}].map(a=>e.jsx("button",{type:"button",onClick:()=>oe(a.value),"aria-pressed":d===a.value,className:F("rounded-lg border px-3 py-2 text-sm font-medium transition-colors",d===a.value?"border-vida-green-600 bg-vida-mint-soft text-vida-green-700":"border-ink/15 text-ink-2 hover:border-ink/30 dark:border-white/15 dark:text-white/70"),children:a.label},a.value))})]}),d==="myself"?e.jsxs("dl",{className:"space-y-2 rounded-2xl bg-ink/5 p-4 dark:bg-white/5",children:[e.jsxs("div",{className:"flex justify-between gap-4 text-sm",children:[e.jsx("dt",{className:"text-ink-3 dark:text-white/55",children:"Name"}),e.jsx("dd",{className:"font-medium text-ink dark:text-white",children:E})]}),e.jsxs("div",{className:"flex justify-between gap-4 text-sm",children:[e.jsx("dt",{className:"text-ink-3 dark:text-white/55",children:"Email"}),e.jsx("dd",{className:"font-medium text-ink dark:text-white",children:t?.email})]}),e.jsx("p",{className:"text-caption text-ink-3 dark:text-white/55",children:"Pulled from your account. To change these, update your researcher profile first."})]}):e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"support-beneficiary-name",className:"mb-1.5 block text-sm font-medium",children:"Their name or organization *"}),e.jsx("input",{id:"support-beneficiary-name",value:C,onChange:a=>ce(a.target.value),className:c,placeholder:"The public name for the campaign"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"support-on-behalf-email",className:"mb-1.5 block text-sm font-medium",children:"Their email *"}),e.jsx("input",{id:"support-on-behalf-email",type:"email",value:A,onChange:a=>me(a.target.value),className:c,placeholder:"[email protected]"}),e.jsx("p",{className:"mt-1 text-caption text-ink-3 dark:text-white/55",children:"We email them an invitation to create their account so contributions can reach them once the campaign is approved."})]})]}),e.jsxs("div",{children:[e.jsx("span",{className:"mb-1.5 block text-sm font-medium",children:"Beneficiary type *"}),e.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-3",children:[{value:"individual",label:"Individual"},{value:"organization",label:"Organization"},{value:"qualified_charity",label:"Qualified charity"}].map(a=>e.jsx("button",{type:"button",onClick:()=>de(a.value),"aria-pressed":S===a.value,className:F("rounded-lg border px-3 py-2 text-sm font-medium transition-colors",S===a.value?"border-vida-green-600 bg-vida-mint-soft text-vida-green-700":"border-ink/15 text-ink-2 hover:border-ink/30 dark:border-white/15 dark:text-white/70"),children:a.label},a.value))})]})]}),r==="campaign"&&e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"support-campaign-title",className:"mb-1.5 block text-sm font-medium",children:"Campaign title *"}),e.jsx("input",{id:"support-campaign-title",value:T,onChange:a=>xe(a.target.value),className:c,placeholder:"The public name for your campaign page"})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"support-starts-at",className:"mb-1.5 block text-sm font-medium",children:"Window opens *"}),e.jsx("input",{id:"support-starts-at",type:"datetime-local",value:y,onChange:a=>ue(a.target.value),className:c})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"support-ends-at",className:"mb-1.5 block text-sm font-medium",children:"Window closes *"}),e.jsx("input",{id:"support-ends-at",type:"datetime-local",value:b,onChange:a=>pe(a.target.value),className:c})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"support-goal",className:"mb-1.5 block text-sm font-medium",children:"Goal in dollars (optional)"}),e.jsx("input",{id:"support-goal",inputMode:"decimal",value:P,onChange:a=>he(a.target.value),className:c,placeholder:"500"}),e.jsx("p",{className:"mt-1 text-caption text-ink-3 dark:text-white/55",children:"Shown on your Impact Page as a progress goal. Progress toward it is always an estimate until final settlement."})]})]}),r==="story"&&e.jsx("div",{className:"space-y-5",children:e.jsxs("div",{children:[e.jsx("label",{htmlFor:"support-story",className:"mb-1.5 block text-sm font-medium",children:"Tell us who this would support and why *"}),e.jsx("textarea",{id:"support-story",minLength:10,value:z,onChange:a=>fe(a.target.value),rows:6,className:c,placeholder:"Who the campaign is for, your connection to them, and how you plan to share your Support Code..."}),e.jsx("p",{className:"mt-1 text-caption text-ink-3 dark:text-white/55",children:"This is your public Impact Page story. Write it the way you would tell a friend. Contributions through VidaForward are not tax-deductible and are not a charity collection run by VidaPeps."})]})}),r==="code"&&e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"support-code",className:"mb-1.5 block text-sm font-medium",children:"Choose your Support Code *"}),e.jsx("input",{id:"support-code",value:I,onChange:a=>ge(a.target.value),className:c,placeholder:"community-strong",autoCapitalize:"none",autoCorrect:"off"}),e.jsx("p",{className:"mt-1 text-caption text-ink-3 dark:text-white/55",children:"Letters, numbers, and dashes only. One name works as both your Support Code at checkout and your Impact Page address."})]}),L&&e.jsxs("div",{className:"rounded-2xl bg-ink/5 p-4 dark:bg-white/5",children:[e.jsxs("div",{className:"flex items-center justify-between gap-4 text-sm",children:[e.jsx("span",{className:"text-ink-3 dark:text-white/55",children:"Support Code"}),e.jsx("span",{className:"font-mono font-semibold tracking-wider text-ink dark:text-white",children:D})]}),e.jsxs("div",{className:"mt-2 flex items-center justify-between gap-4 text-sm",children:[e.jsx("span",{className:"text-ink-3 dark:text-white/55",children:"Impact Page"}),e.jsxs("span",{className:"font-mono text-ink dark:text-white",children:["/forward/c/",U]})]}),e.jsx("div",{className:"mt-3 border-t border-ink/10 pt-3 dark:border-white/10",children:W?e.jsxs("p",{className:"flex items-center gap-1.5 text-sm text-ink-3 dark:text-white/55",children:[e.jsx(H,{className:"size-4 animate-spin"}),"Checking availability..."]}):R?e.jsxs("p",{className:"flex items-center gap-1.5 text-sm font-medium text-vida-green-700",children:[e.jsx(ee,{className:"size-4"}),D," is available"]}):we?e.jsxs("p",{className:"flex items-center gap-1.5 text-sm font-medium text-red-600",children:[e.jsx(Me,{className:"size-4"}),p?.codeAvailable?"That Impact Page address is already taken":"That Support Code is already taken"]}):null})]})]}),r==="review"&&e.jsxs("div",{className:"space-y-5",children:[e.jsxs("dl",{className:"space-y-2 rounded-2xl bg-ink/5 p-4 dark:bg-white/5",children:[e.jsxs("div",{className:"flex justify-between gap-4 text-sm",children:[e.jsx("dt",{className:"text-ink-3 dark:text-white/55",children:"Beneficiary"}),e.jsxs("dd",{className:"text-right font-medium text-ink dark:text-white",children:[d==="myself"?E:C.trim(),e.jsx("span",{className:"block text-caption font-normal text-ink-3 dark:text-white/55",children:d==="myself"?t?.email:A.trim()})]})]}),e.jsxs("div",{className:"flex justify-between gap-4 text-sm",children:[e.jsx("dt",{className:"text-ink-3 dark:text-white/55",children:"Beneficiary type"}),e.jsx("dd",{className:"font-medium text-ink dark:text-white",children:ae[S]})]}),e.jsxs("div",{className:"flex justify-between gap-4 text-sm",children:[e.jsx("dt",{className:"text-ink-3 dark:text-white/55",children:"Campaign"}),e.jsx("dd",{className:"font-medium text-ink dark:text-white",children:T.trim()})]}),e.jsxs("div",{className:"flex justify-between gap-4 text-sm",children:[e.jsx("dt",{className:"text-ink-3 dark:text-white/55",children:"Window"}),e.jsxs("dd",{className:"text-right font-medium text-ink dark:text-white",children:[Z(y)," to ",Z(b)]})]}),v!=null&&e.jsxs("div",{className:"flex justify-between gap-4 text-sm",children:[e.jsx("dt",{className:"text-ink-3 dark:text-white/55",children:"Goal"}),e.jsxs("dd",{className:"font-medium text-ink dark:text-white",children:["$",(v/100).toFixed(2)," (estimated until settled)"]})]}),e.jsxs("div",{className:"flex justify-between gap-4 text-sm",children:[e.jsx("dt",{className:"text-ink-3 dark:text-white/55",children:"Support Code"}),e.jsxs("dd",{className:"text-right font-medium text-ink dark:text-white",children:[e.jsx("span",{className:"font-mono tracking-wider",children:D}),e.jsxs("span",{className:"block text-caption font-normal text-ink-3 dark:text-white/55",children:["/forward/c/",U]})]})]})]}),e.jsxs("div",{className:"rounded-lg bg-vida-mint-soft px-4 py-3 text-caption text-vida-green-700",children:[e.jsx(Qe,{className:"mr-1 inline size-3.5"}),"Tell your story in your own words, including your health situation if that is what this is about. One rule: do not say a VidaPeps product treats or cures anything. We may remove copy that does."]}),e.jsx(l,{type:"button",onClick:Te,disabled:V,className:"w-full",children:V?"Submitting...":"Submit application"}),e.jsx("p",{className:"text-center text-caption text-ink-3 dark:text-white/55",children:"Our team reviews every application before a campaign goe
1s live."})]})]}),e.jsxs("div",{className:"mt-4 flex items-center justify-between gap-3",children:[e.jsxs(l,{variant:"ghost",onClick:Ae,disabled:_===0||V,children:[e.jsx(Ke,{className:"size-4"}),"Back"]}),r!=="review"?e.jsxs(l,{onClick:Ce,disabled:!Se[r],children:["Next",e.jsx(Ye,{className:"size-4"})]}):e.jsx("span",{})]})]}):e.jsx(h,{className:"mx-auto mt-10 max-w-2xl",children:e.jsxs("div",{className:"py-8 text-center",children:[e.jsx("p",{className:"text-body text-ink-2 dark:text-white/70",children:"You need a VidaPeps account to apply for a VidaForward Campaign. Sign in first, then return to this page."}),e.jsxs("div",{className:"mt-4 flex flex-col items-center justify-center gap-2.5 sm:flex-row",children:[e.jsx(l,{asChild:!0,children:e.jsx(f,{href:"/login?redirect=/forward/apply",children:"Sign in"})}),e.jsx(l,{asChild:!0,variant:"ghost",children:e.jsx(f,{href:"/register?redirect=/forward/apply",children:"Create your account"})})]})]})})]})}export{ct 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.