PageSourceSearch

https://thekingdomlaunchpad.com/assets/launch90-form-BP0t2GuQ.js

js thekingdomlaunchpad.com collected 2026-10-09 22:03:51 UTC 2,793 bytes, 1 lines download raw bytes

1import{r as e}from"./chunk-QTnfLwEv.js";import{t}from"./react-xd4aoMiW.js";import{t as n}from"./jsx-runtime-DsKLSDJq.js";import{n as r}from"./client-COt5zSUx.js";import{t as i}from"./circle-check-DRpl9M0z.js";import{Ft as a,Pt as o,in as s}from"./index-DS-UY_B6.js";import{t as c}from"./input-fEA9zEht.js";import{t as l}from"./label-BOppJYwh.js";var u=e(t(),1),d=n();function f({defaultEmail:e}){let[t,n]=(0,u.useState)(!1),[f,p]=(0,u.useState)(!1);async function m(e){e.preventDefault();let t=new FormData(e.currentTarget);p(!0);let{data:i}=await r.auth.getUser(),{error:a}=await r.from(`launch90_applications`).insert({user_id:i.user?.id??null,full_name:String(t.get(`full_name`)??``),email:String(t.get(`email`)??``),phone:String(t.get(`phone`)??``)||null,expertise:String(t.get(`expertise`)??``)||null,has_offer:String(t.get(`has_offer`)??``)||null,goals:String(t.get(`goals`)??``)||null});if(p(!1),a){s.error(`We couldn't send your application. Please try again.`);return}n(!0),s.success(`Application received — we'll be in touch by email.`)}return t?(0,d.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-8 text-center`,children:[(0,d.jsx)(i,{className:`h-7 w-7 text-[oklch(0.5_0.14_75)]`}),(0,d.jsx)(`p`,{className:`font-medium`,children:`Your application is in.`}),(0,d.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Our team reviews applications weekly and will reply by email.`})]}):(0,d.jsxs)(`form`,{onSubmit:m,className:`space-y-4`,children:[(0,d.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,d.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,d.jsx)(l,{htmlFor:`full_name`,children:`Full name`}),(0,d.jsx)(c,{id:`full_name`,name:`full_name`,required:!0})]}),(0,d.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,d.jsx)(l,{htmlFor:`email`,children:`Email`}),(0,d.jsx)(c,{id:`email`,name:`email`,type:`email`,required:!0,defaultValue:e})]})]}),(0,d.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,d.jsx)(l,{htmlFor:`phone`,children:`Phone (optional)`}),(0,d.jsx)(c,{id:`phone`,name:`phone`})]}),(0,d.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,d.jsx)(l,{htmlFor:`expertise`,children:`Your expertise or lived experience`}),(0,d.jsx)(o,{id:`expertise`,name:`expertise`,rows:3,required:!0})]}),(0,d.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,d.jsx)(l,{htmlFor:`has_offer`,children:`Do you have an offer today?`}),(0,d.jsx)(c,{id:`has_offer`,name:`has_offer`,placeholder:`Not yet / an idea / an early version`})]}),(0,d.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,d.jsx)(l,{htmlFor:`goals`,children:`What do you want to have built in 90 days?`}),(0,d.jsx)(o,{id:`goals`,name:`goals`,rows:3})]}),(0,d.jsx)(a,{type:`submit`,disabled:f,className:`w-full`,children:f?`Sending…`:`Submit application`})]})}export{f as t};

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.