1import{j as e}from"./index-BDt_aO0d.js";import{r as n}from"./vendor-recharts-DtEcSOQ2.js";import{M as C}from"./mail-Bev-Xn7g.js";import{C as v,a as T}from"./copy-CVGAKV-Z.js";import{L as E}from"./link-Cr_x_Euk.js";import{S as b}from"./shield-check-B78cFtKC.js";import{A as L}from"./arrow-right-OC0wx1zO.js";import{X as A}from"./x-d0jOa0v-.js";const u="https://www.lsars.com",f=[{id:"developer",label:"Email the developer or applicant",shortLabel:"Developer",subject:"Independent data for your community engagement",body:({shareUrl:r,developerPageUrl:a,questionList:s,topic:o})=>`Hi, 2 3I am a community member with concerns about ${o}. The questions on my mind are specific: 4 5${s} 6 7I came across LSARS, an independent health and environmental data platform. The applicant pays for the analysis but the methodology is published (EPA AirToxScreen, California OEHHA), so the developer cannot change the numbers. The same report goes to the council, the community, and the applicant. 8 9Would you consider funding an independent LSARS analysis for this project? It would address the questions above transparently, before they become a public hearing problem. 10 11Reference page I read: ${r} 12Developer overview: ${a} 13 14Thank you for considering it. 15 16[Your name]`},{id:"official",label:"Email a council member or planning staff",shortLabel:"Council",subject:"Independent data for our community on this project",body:({shareUrl:r,officialsPageUrl:a,questionList:s,topic:o})=>`Dear [Council Member or Planning Staff], 17 18I am a constituent with concerns about ${o}. The questions I and my neighbors keep asking are: 19 20${s} 21 22I found LSARS, an independent platform that produces regulator-grade analysis using published EPA and OEHHA methods. The applicant funds it, but the analysis is reproducible and the same report is shared with your office and the community. 23 24Would you consider asking the applicant to fund an independent LSARS analysis as a condition of the entitlement? Your office gets a complete record before the vote. We get answers we can verify. 25 26Reference: ${r} 27Officials overview: ${a} 28 29Thank you for your time, 30[Your name]`},{id:"neighbor",label:"Send to a neighbor",shortLabel:"Neighbor",subject:"Heads up about a project near us",body:({shareUrl:r,questionList:a,topic:s})=>`Hey, 31 32I have been reading about ${s} and I wanted to share what I found. Specific things I am tracking: 33 34${a} 35 36There is an independent platform called LSARS that runs the regulatory analysis transparently and publishes a community-facing dashboard. Same numbers go to the council, the developer, and us. 37 38Worth a look before the next public hearing: 39${r} 40 41[Your name]`}],R=["What will this project do to our water supply, our air, and our property values, and who is checking those numbers independently?","How much truck traffic will this add, and on which roads, during what hours?","What tax breaks did the developer receive, and what specific commitments does our community get in return?"],z=r=>r.slice(0,5).map((a,s)=>`${s+1}. ${a}`).join(` 42`),D=({topic:r="this proposed project",sampleQuestions:a,shareUrl:s,bgClass:o="bg-blue-50/50 dark:bg-white/[0.02]",accentClass:i="text-blue-700 dark:text-blue-400",variant:w="section"})=>{const[g,N]=n.useState("developer"),[l,h]=n.useState(null),[m,d]=n.useState(!1),k=n.useMemo(()=>({shareUrl:s||(typeof window<"u"?window.location.href:`${u}/for/community`),developerPageUrl:`${u}/for/developers`,officialsPageUrl:`${u}/for/officials`,questionList:z(a&&a.length>0?a:R),topic:r}),[s,a,r]),c=f.find(t=>t.id===g)??f[0],p=c.body(k),y=async(t,x)=>{if(!(typeof navigator>"u"||!navigator.clipboard))try{await navigator.clipboard.writeText(t),h(x),window.setTimeout(()=>h(null),2e3)}catch{h(null)}},S=`mailto:?subject=${encodeURIComponent(c.subject)}&body=${encodeURIComponent(p)}`;n.useEffect(()=>{if(!m)return;const t=I=>{I.key==="Escape"&&d(!1)};document.addEventListener("keydown",t);const x=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=x}},[m]);const $=w==="compact",j=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex justify-center mb-5",children:e.jsx("div",{className:"inline-flex p-1 rounded-full bg-slate-100 dar
42k:bg-white/5 border border-black/10 dark:border-white/10 flex-wrap gap-1",children:f.map(t=>e.jsx("button",{onClick:()=>N(t.id),className:`px-4 sm:px-5 py-2 rounded-full text-sm font-bold transition-colors ${g===t.id?"bg-blue-600 text-white shadow-sm":"text-slate-600 dark:text-white/70 hover:text-slate-900 dark:hover:text-white"}`,children:t.shortLabel},t.id))})}),e.jsx("p",{className:"text-center text-sm text-slate-500 dark:text-white/40 mb-5",children:c.label}),e.jsx("div",{className:"rounded-2xl bg-white dark:bg-white/5 border border-black/10 dark:border-white/10 p-5 md:p-7 shadow-sm dark:shadow-none mb-5",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[auto_1fr] gap-x-4 gap-y-3 text-sm",children:[e.jsx("div",{className:"text-xs uppercase tracking-widest text-slate-500 dark:text-white/40 font-bold pt-1",children:"Subject"}),e.jsx("div",{className:"font-medium text-slate-900 dark:text-white",children:c.subject}),e.jsx("div",{className:"text-xs uppercase tracking-widest text-slate-500 dark:text-white/40 font-bold pt-1",children:"Body"}),e.jsx("pre",{className:`whitespace-pre-wrap text-slate-700 dark:text-white/75 leading-relaxed font-sans text-[0.9rem] ${$?"max-h-[34vh] overflow-y-auto pr-3 -mr-2 rounded-md ring-1 ring-inset ring-black/5 dark:ring-white/10 bg-slate-50/60 dark:bg-white/[0.02] p-3":""}`,children:p})]})}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[e.jsxs("a",{href:S,className:"inline-flex items-center justify-center gap-2 px-6 py-3 bg-slate-900 dark:bg-white text-white dark:text-black font-bold rounded-full hover:bg-blue-600 hover:text-white transition-all",children:[e.jsx(C,{size:16}),"Open in email"]}),e.jsxs("button",{onClick:()=>y(p,"body"),className:"inline-flex items-center justify-center gap-2 px-6 py-3 border border-black/20 dark:border-white/20 hover:bg-black/5 dark:hover:bg-white/5 rounded-full font-bold transition-all",children:[l==="body"?e.jsx(v,{size:16}):e.jsx(T,{size:16}),l==="body"?"Copied":"Copy message"]}),e.jsxs("button",{onClick:()=>y(k.shareUrl,"link"),className:"inline-flex items-center justify-center gap-2 px-6 py-3 border border-black/20 dark:border-white/20 hover:bg-black/5 dark:hover:bg-white/5 rounded-full font-bold transition-all",children:[l==="link"?e.jsx(v,{size:16}):e.jsx(E,{size:16}),l==="link"?"Copied":"Copy link"]})]}),e.jsxs("p",{className:"text-center text-xs text-slate-500 dark:text-white/40 mt-5 max-w-xl mx-auto",children:["The message opens in your default email app where you can edit before sending. Replace"," ",e.jsx("span",{className:"font-mono text-slate-600 dark:text-white/60",children:"[Your name]"})," and any bracketed placeholders. The reference link points back to this page so the recipient sees exactly what you read."]})]});return w==="compact"?e.jsxs(e.Fragment,{children:[e.jsx("section",{className:"py-12",children:e.jsx("div",{className:"container mx-auto px-3 sm:px-4 xl:px-6",children:e.jsxs("div",{className:"rounded-2xl border border-black/10 dark:border-white/10 bg-white dark:bg-white/5 p-6 md:p-8 flex flex-col md:flex-row md:items-center md:justify-between gap-5 shadow-sm dark:shadow-none",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:`shrink-0 w-11 h-11 rounded-xl bg-blue-500/10 ${i} flex items-center justify-center`,children:e.jsx(b,{size:20})}),e.jsxs("div",{children:[e.jsx("p",{className:`text-xs uppercase tracking-[0.2em] font-bold ${i} mb-1`,children:"Pass it on"}),e.jsx("p",{className:"text-base md:text-lg font-bold text-slate-900 dark:text-white leading-snug",children:"Send a pre-written email to your council, the developer, or a neighbor."})]})]}),e.jsxs("button",{onClick:()=>d(!0),className:"shrink-0 inline-flex items-center justify-center gap-2 px-6 py-3 bg-slate-900 dark:bg-white text-white dark:text-black font-bold rounded-full hover:bg-blue-600 hover:text-white transition-all",children:["Open share templates",e.jsx(L,{size:16})]})]})})}),m&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-900/70 backdrop-blur-sm",role:"dialog","aria-modal":"true","aria-label":"Share templates",onClick:()=>d(!1),children:e.jsxs("div",{className:"relative w-full max-w-3xl max-h-[90vh] overflow-y-auto rounded-3xl bg-white dark:bg-lsars-dark border border-black/10 dark:border-white/10 shadow-2xl",onClick:t=>t.stopPropagation(),children:[e.jsxs("div",{className:"sticky top-0 z-10 flex items-start justify-between gap-4 p-6 md:p-8 pb-4 bg-white dark:bg-lsars-dark border-b border-black/5 dark:border-white/10",children:[e.jsxs("div",{children:[e.jsxs("p",{className:`text-xs uppercase tracking-[0.2em] font-bold ${i} mb-2`,children:[e.jsx(b,{size:12,className:"inline mr-1.5 -mt-0.5"}),"Send this to someone who can act"]}),e.jsx("h2",{className:"text-2xl md:text-3xl font-black text-slate-900 dark:text-white",children:"Pre-written templates."})]}),e.jsx("button",{onClick:()=>d(!1),"aria-label":"Close share templates",className:"shrink-0 w-9 h-9 rounded-full border border-black/10 dark:border-white/15 hover:bg-black/5 dark:hover:bg-white/10 flex items-center justify-center text-slate-600 dar
42k:text-white/70 transition-colors",children:e.jsx(A,{size:18})})]}),e.jsx("div",{className:"p-6 md:p-8 pt-2",children:j})]})})]}):e.jsx("section",{className:`py-20 ${o} border-y border-black/5 dark:border-white/5`,children:e.jsx("div",{className:"container mx-auto px-3 sm:px-4 xl:px-6",children:e.jsxs("div",{children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsxs("p",{className:`text-xs uppercase tracking-[0.2em] font-bold ${i} mb-3`,children:[e.jsx(b,{size:12,className:"inline mr-1.5 -mt-0.5"}),"Send this to someone who can act"]}),e.jsx("h2",{className:"text-3xl md:text-4xl font-black text-slate-900 dark:text-white mb-4",children:"Pass it on. We did the homework so you do not have to write the email."}),e.jsx("p",{className:"text-slate-600 dark:text-white/60",children:"Pre-written templates you can review, edit, and send. No signup, no tracking. Pick who you want to reach."})]}),j]})})})};export{D as S};
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.