1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72003],{2552:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(59167).A)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},7331:(e,t,a)=>{a.d(t,{A:()=>f});var s=a(1629),i=a(6249),l=a(8804),r=a(20798),n=a.n(r),o=a(22309),c=a(78137),d=a(94947),m=a(2552),p=a(27163),h=a(31962);let x="var(--font-outfit), var(--font-dm-sans), sans-serif",u="var(--font-jetbrains-mono), monospace";function f({open:e,project:t,initialMode:a="choose",signals:r,onClose:f,onSuccess:y}){let b="choose"!==a,[g,w]=(0,i.useState)(a),[j,k]=(0,i.useState)(""),[N,v]=(0,i.useState)(""),[A,C]=(0,i.useState)(!1),[F,$]=(0,i.useState)(null),[z,S]=(0,i.useState)(null);if((0,i.useEffect)(()=>{if(e){w(a);try{let e=window.localStorage.getItem("bloomHandle");e&&v(e)}catch{}}else k(""),v(""),C(!1),$(null),S(null)},[e,a]),(0,i.useEffect)(()=>{if(!e)return;let t=e=>{"Escape"===e.key&&f()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e,f]),!e||!t)return null;async function L(e){if(t){$(null),C(!0);try{let a={};if(r&&(r.interests?.length||r.vibe||r.lifeContext)&&(a.signals=r),"signup"===e){if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(j.trim()))throw Error("Enter a valid email so Bloom can notify you.");a.email=j.trim()}else{let e=N.trim().replace(/^@/,"").toLowerCase();if(!/^[a-z0-9_][a-z0-9_-]{1,30}$/.test(e))throw Error("Handle must be 2-30 chars: letters, digits, underscores, dashes.");a.handle=e}let s="signup"===e?"signup":"support",i=await fetch(`/api/projects/${encodeURIComponent(t.projectId)}/${s}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),n=await i.json();if(!i.ok||n?.success===!1)throw Error(n?.error||`Could not back this (${i.status})`);let o="signup"===e?(j.split("@")[0]||"you").toLowerCase().replace(/[^a-z0-9_-]/g,"_"):N.trim().replace(/^@/,"").toLowerCase(),c=n?.data?.whyFits||"";if("support"===e)try{window.localStorage.setItem("bloomHandle",o)}catch{}S({kind:e,handle:o,whyFits:c}),w("success"),(0,l.u)("back_success"),y?.(e,o)}catch(e){$(e instanceof Error?e.message:"Something went wrong.")}finally{C(!1)}}}return(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-end justify-center bg-[rgba(15,12,20,0.55)] backdrop-blur-sm desktop:items-center",role:"dialog","aria-modal":"true","aria-labelledby":"back-this-title",onClick:f,children:(0,s.jsxs)("div",{className:"relative w-full max-w-[520px] rounded-t-[24px] bg-white p-6 shadow-[0_24px_80px_rgba(15,12,20,0.25)] desktop:rounded-[24px] desktop:p-7",onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("button",{type:"button",onClick:f,"aria-label":"Close",className:"absolute right-4 top-4 inline-flex h-8 w-8 items-center justify-center rounded-full text-[#62574c] transition hover:bg-[#fbfaf6]",children:(0,s.jsx)(o.A,{size:16,"aria-hidden":"true"})}),(0,s.jsxs)("header",{className:"flex items-start gap-3 pr-8",children:[(0,s.jsx)("img",{src:t.thumbnailUrl||function(e){if(!e)return"/favicon.ico";try{let t=new URL(e).hostname.replace(/^www\./,"");return`https://www.google.com/s2/favicons?domain=${t}&sz=128`}catch{return"/favicon.ico"}}(t.website),alt:"",className:"h-12 w-12 shrink-0 rounded-[12px] border border-[#eee7dc] bg-[#fbfaf6] object-cover"}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.16em] text-emerald-700",style:{fontFamily:u},children:"notify"===g?"Get ship updates":"Back this on Bloom"}),(0,s.jsx)("h3",{id:"back-this-title",className:"mt-1 truncate text-[18px] font-bold text-[#29231c]",style:{fontFamily:"var(--font-dm-serif-display), DM Serif Display, serif"},children:t.name}),(0,s.jsx)("p",{className:"mt-0.5 line-clamp-1 text-[12px] text-[#62574c]",style:{fontFamily:x},children:t.tagline})]})]}),"choose"===g&&(0,s.jsxs)("div",{className:"mt-5 grid gap-2.5",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>w("back"),className:"group flex items-center gap-3 rounded-[16px] border-2 border-[#241229] bg-[#241229] p-3.5 text-left text-white transition hover:bg-[#392040]",children:[(0,s.jsx)("span",{className:"inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-white/15 text-white ring-1 ring-white/25",children:(0,s.jsx)(c.A,{size:16,"aria-hidden":"true"})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-[14.5px] font-bold",style:{fontFamily:x},children:"Back it"}),(0,s.jsx)("p",{className:"text-[12px] leading-tight text-white/80",style:{fontFamily:x},children:"Public. Under your @handle."})]})]}),t.website&&(0,s.jsxs)("a",{href:t.website,target:"_blank",rel:"noopener noreferrer",onClick:f,className:"group flex items-center gap-3 rounded-[16px] border border-[#e8e2d8] bg-white p-3.5 text-left no-underline transition hover:border-emerald-300 hover:bg-emerald-50/40",children:[(0,s.jsx)("span",{className:"inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-emerald-50 text-emerald-700 ring-1 ring-emerald-100",children:(0,s.jsx)(d.A,{size:15,"aria-hidden":"true"})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-[14px] font-bold text-[#29231c]",style:{fontFamily:x},children:"Visit site"}),(0,s.jsxs)("p",{className:"text-[12px] leading-tight text-[#62574c]",style:{fontFamily:x},children:["Opens ",function(e){if(!e)return"";try{return new URL(e).hostname.replace(/^www\./,"")}catch{return""}}(t.website)||"their site"," in a new tab."]})]})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>w("notify"),className:"group flex items-center gap-3 rounded-[16px] border border-[#e8e2d8] bg-white p-3.5 text-left transition hover:border-emerald-300 hover:bg-emerald-50/40",children:[(0,s.jsx)("span",{className:"inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-emerald-50 text-emerald-700 ring-1 ring-emerald-100",children:(0,s.jsx)(m.A,{size:15,"aria-hidden":"true"})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-[14px] font-bold text-[#29231c]",style:{fontFamily:x},children:"Notify me"}),(0,s.jsx)("p",{className:"text-[12px] leading-tight text-[#62574c]",style:{fontFamily:x},children:"Email when they ship updates."})]})]})]}),"notify"===g&&(0,s.jsxs)("form",{className:"mt-5 space-y-3",onSubmit:e=>{e.preventDefault(),L("signup")},children:[(0,s.jsxs)("label",{className:"block",children:[(0,s.jsx)("span",{className:"block text-[11px] font-bold uppercase tracking-[0.14em] text-[#675b4e]",style:{fontFamily:u}
1,children:"Email me at"}),(0,s.jsx)("input",{type:"email",required:!0,value:j,onChange:e=>k(e.target.value),placeholder:"[email protected]",className:"mt-1.5 block w-full rounded-xl border border-[#e8e2d8] bg-[#fbfaf6] px-4 py-3 text-[14px] outline-none transition focus:border-emerald-600",style:{fontFamily:x},autoFocus:!0})]}),F&&(0,s.jsx)("p",{className:"text-[12px] font-semibold text-red-700",style:{fontFamily:x},children:F}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsx)("button",{type:"button",onClick:()=>b?f():w("choose"),className:"text-[12px] font-semibold text-[#62574c] hover:text-[#29231c]",style:{fontFamily:x},children:b?"Cancel":"â Back"}),(0,s.jsxs)("button",{type:"submit",disabled:A,className:"inline-flex items-center gap-2 rounded-full bg-emerald-700 px-5 py-2.5 text-[13px] font-bold text-white transition hover:bg-emerald-800 disabled:opacity-60",style:{fontFamily:x},children:[A?(0,s.jsx)(p.A,{size:14,className:"animate-spin"}):(0,s.jsx)(m.A,{size:14,"aria-hidden":"true"}),"Notify me"]})]})]}),"back"===g&&(0,s.jsxs)("form",{className:"mt-5 space-y-3",onSubmit:e=>{e.preventDefault(),L("support")},children:[(0,s.jsxs)("label",{className:"block",children:[(0,s.jsx)("span",{className:"block text-[11px] font-bold uppercase tracking-[0.14em] text-[#675b4e]",style:{fontFamily:u},children:"Bloom handle"}),(0,s.jsxs)("div",{className:"mt-1.5 flex items-center rounded-xl border border-[#e8e2d8] bg-[#fbfaf6] focus-within:border-[#a59af3]",children:[(0,s.jsx)("span",{className:"pl-3 pr-1 text-[14px] text-[#8b8174]",style:{fontFamily:x},children:"@"}),(0,s.jsx)("input",{type:"text",required:!0,value:N,onChange:e=>v(e.target.value),placeholder:"andrea_indie",className:"block w-full bg-transparent py-3 pr-4 text-[14px] outline-none",style:{fontFamily:x},autoFocus:!0})]}),(0,s.jsx)("p",{className:"mt-1 text-[11px] text-[#8b8174]",style:{fontFamily:x},children:"Your public taste record lives at bloomprotocol.ai/agents/you â proof you were early. 2-30 chars, lowercase."})]}),F&&(0,s.jsx)("p",{className:"text-[12px] font-semibold text-red-700",style:{fontFamily:x},children:F}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsx)("button",{type:"button",onClick:()=>b?f():w("choose"),className:"text-[12px] font-semibold text-[#62574c] hover:text-[#29231c]",style:{fontFamily:x},children:b?"Cancel":"â Back"}),(0,s.jsxs)("button",{type:"submit",disabled:A,className:"inline-flex items-center gap-2 rounded-full bg-[#241229] px-5 py-2.5 text-[13px] font-bold text-white transition hover:bg-[#392040] disabled:opacity-60",style:{fontFamily:x},children:[A?(0,s.jsx)(p.A,{size:14,className:"animate-spin"}):(0,s.jsx)(c.A,{size:14,"aria-hidden":"true"}),"Back it"]})]})]}),"success"===g&&z&&(0,s.jsxs)("div",{className:"mt-5 space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3 rounded-[18px] border border-emerald-200 bg-emerald-50 p-4",children:[(0,s.jsx)(h.A,{size:18,className:"mt-0.5 shrink-0 text-emerald-700","aria-hidden":"true"}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-[13px] font-bold text-emerald-900",style:{fontFamily:x},children:"signup"===z.kind?`You'll get an email when ${t.name} ships.`:`You're publicly backing ${t.name} as @${z.handle}.`}),z.whyFits&&(0,s.jsx)("p",{className:"mt-1 text-[12px] leading-relaxed text-emerald-900/80",style:{fontFamily:x},children:z.whyFits})]})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:["support"===z.kind?(0,s.jsxs)(n(),{href:`/agents/${z.handle}`,className:"inline-flex items-center gap-1.5 rounded-full bg-[#241229] px-4 py-2 text-[12px] font-bold text-white no-underline transition hover:bg-[#392040]",style:{fontFamily:x},children:["See your profile",(0,s.jsx)(d.A,{size:12,"aria-hidden":"true"})]}):(0,s.jsx)("span",{}),(0,s.jsx)("button",{type:"button",onClick:f,className:"text-[12px] font-semibold text-[#62574c] hover:text-[#29231c]",style:{fontFamily:x},children:"Done"})]})]})]})})}},8804:(e,t,a)=>{a.d(t,{u:()=>l});let s="bloomSrc",i=[[/(^|\.)chatgpt\.com$/i,"ai:chatgpt"],[/(^|\.)chat\.openai\.com$/i,"ai:chatgpt"],[/(^|\.)claude\.ai$/i,"ai:claude"],[/(^|\.)perplexity\.ai$/i,"ai:perplexity"],[/(^|\.)copilot\.microsoft\.com$/i,"ai:copilot"],[/(^|\.)bing\.com$/i,"ai:bing"],[/(^|\.)gemini\.google\.com$/i,"ai:gemini"],[/(^|\.)you\.com$/i,"ai:you"],[/(^|\.)phind\.com$/i,"ai:phind"],[/(^|\.)poe\.com$/i,"ai:poe"]];function l(e){try{let t=JSON.stringify({event:e,source:function(){try{let e=new URLSearchParams(window.location.search).get("src");if(e&&/^[a-z0-9_.:-]{1,40}$/i.test(e))return window.sessionStorage.setItem(s,e.toLowerCase()),e.toLowerCase();let t=window.sessionStorage.getItem(s);if(t)return t;let a=function(){try{if(!document.referrer)return null;let e=new URL(document.referrer).hostname;if(e===window.location.hostname)return null;for(let[t,a]of i)if(t.test(e))return a;return null}catch{return null}}();if(a)return window.sessionStorage.setItem(s,a),a;return null}catch{return null}}()??void 0,path:window.location.pathname});navigator.sendBeacon?navigator.sendBeacon("/api/metrics",new Blob([t],{type:"application/json"})):fetch("/api/metrics",{method:"POST",headers:{"Content-Type":"application/json"},body:t,keepalive:!0}
1).catch(()=>{})}catch{}}},22309:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(59167).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},27163:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(59167).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},31962:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(59167).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},39749:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(59167).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},52404:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(59167).A)("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},59167:(e,t,a)=>{a.d(t,{A:()=>o});var s=a(6249);let i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},l=(...e)=>e.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim();var r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,s.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:n="",children:o,iconNode:c,...d},m)=>(0,s.createElement)("svg",{ref:m,...r,width:t,height:t,stroke:e,strokeWidth:i?24*Number(a)/Number(t):a,className:l("lucide",n),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(o)?o:[o]])),o=(e,t)=>{let a=(0,s.forwardRef)(({className:a,...r},o)=>(0,s.createElement)(n,{ref:o,iconNode:t,className:l(`lucide-${i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...r}));return a.displayName=i(e),a}},77754:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(59167).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},78137:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(59167).A)("heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]])},94947:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(59167).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])}}]);
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.