PageSourceSearch

https://zerentalabs.com/assets/GuestbookApp-io2MSxdN.js

js zerentalabs.com collected 2026-10-02 01:00:37 UTC 2,188 bytes, 3 lines download raw bytes

1import{m as f,r as s,j as e,p as l}from"./index-xVY8_4fS.js";const k=()=>{const{pushToast:n}=f(),[o,c]=s.useState(""),[r,d]=s.useState(""),[a,i]=s.useState(!1),[p,u]=s.useState([]),m=()=>u(l.approvedGuestbook());s.useEffect(()=>{m()},[]);const h=t=>{if(t.preventDefault(),!r.trim())return;const b=a?`${r.trim()}
2
3[Referral sticky — happy to intro a founder]`:r.trim(),x=l.addGuestbook(o,b);if(!x.ok){n(x.error);return}a&&l.track("referral",o||"anonymous"),c(""),d(""),i(!1),n(a?"Thanks — referral sticky pending (credit on closed deal)":"Thanks — note pending moderation"),m()};return e.jsxs("div",{className:"space-y-4 p-5",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold",children:"Guestbook"}),e.jsx("p",{className:"text-sm text-white/60",children:"Leave a sticky on the desktop. Founder referrals get a small credit when a deal closes."})]}),e.jsxs("form",{onSubmit:h,className:"space-y-2 rounded-xl border border-white/10 bg-white/5 p-3",children:[e.jsx("input",{value:o,onChange:t=>c(t.target.value),placeholder:"Name",className:"w-full rounded-lg border border-white/10 bg-black/20 px-3 py-2 text-sm"}),e.jsx("textarea",{value:r,onChange:t=>d(t.target.value),required:!0,rows:3,placeholder:"What brought you here?",className:"w-full rounded-lg border border-white/10 bg-black/20 px-3 py-2 text-sm"}),e.jsxs("label",{className:"flex items-center gap-2 text-xs text-white/60",children:[e.jsx("input",{type:"checkbox",checked:a,onChange:t=>i(t.target.checked)}),"This is a referral intro (credit on closed deal)"]}),e.jsx("button",{type:"submit",className:"rounded-lg bg-violet-500 px-4 py-2 text-sm font-semibold",children:"Pin sticky"})]}),e.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[p.length===0&&e.jsx("p",{className:"text-sm text-white/40",children:"No approved notes yet."}),p.map(t=>e.jsxs("article",{className:"rounded-xl border border-amber-300/20 bg-amber-200/10 p-3 text-amber-50",children:[e.jsx("p",{className:"text-sm leading-6 whitespace-pre-wrap",children:t.message}),e.jsxs("p",{className:"mt-2 text-[10px] uppercase tracking-wider text-amber-200/60",children:["— ",t.name]})]},t.id))]})]})};export{k 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.