PageSourceSearch

https://mithai.ai/assets/gslas-3WGSd1bc.js

js mithai.ai collected 2026-10-05 12:18:19 UTC 25,335 bytes, 1 lines download raw bytes

1import{r as g,j as t}from"./index-Dz7N0PDB.js";const I="Greater St. Louis Area Scouting",P="2026",x="[email protected]",e={bg:"#FAF9F7",card:"#FFFFFF",text:"#1C1917",text2:"#57534E",text3:"#A8A29E",blue:"#2563EB",blueLight:"#EFF6FF",blueDark:"#1D4ED8",border:"#E7E5E4",greenLight:"#F0FDF4"},n={d:"'Instrument Serif', Georgia, serif",b:"'DM Sans', -apple-system, sans-serif",m:"'JetBrains Mono', monospace"},M=[{id:"leadership",label:"Executive / Leadership",icon:"◆"},{id:"program",label:"Program / Scout Experience",icon:"◉"},{id:"fundraising",label:"Fundraising / Development",icon:"◇"},{id:"communications",label:"Communications / Marketing",icon:"◊"},{id:"volunteers",label:"Volunteer Management",icon:"○"},{id:"finance",label:"Finance / Administration",icon:"◎"}],$=[{id:"ai_level",question:"How would you describe your current experience with AI tools?",subtitle:"Tools like ChatGPT, Claude, Copilot, Gemini, Grammarly AI, etc.",type:"single",options:[{label:"Haven't used any yet",value:"none"},{label:"Tried once or twice — didn't really stick",value:"tried"},{label:"Use occasionally (a few times a month)",value:"occasional"},{label:"Use weekly as part of my workflow",value:"weekly"},{label:"Use daily — it's part of how I work",value:"daily"}]},{id:"daily_software",question:"What software or tools do you use most in y
1our daily work?",subtitle:"Select all that apply.",type:"multi",options:["Microsoft Excel / Google Sheets","Microsoft Word / Google Docs","Email (Outlook / Gmail)","Scoutbook / BSA digital tools","Salesforce or other CRM","Project management tools (Asana, Monday, etc.)","Social media platforms","Accounting / finance software","Other (please specify)"]},{id:"repetitive_time",question:"How much time per week do you spend on repetitive tasks like data entry, writing, scheduling, or reporting?",type:"single",options:[{label:"Less than 1 hour",value:"lt1hr"},{label:"1–3 hours",value:"1-3hr"},{label:"3–6 hours",value:"3-6hr"},{label:"6–10 hours",value:"6-10hr"},{label:"More than 10 hours",value:"gt10hr"}]},{id:"time_drains",question:"Which of these takes up more of your time than it should?",subtitle:"Select all that apply.",type:"multi",options:["Writing emails, reports, or communications","Managing and updating spreadsheets or databases","Scheduling and coordinating with volunteers or staff","Searching for information across systems or documents","Creating presentations or materials","Tracking participation, progress, or outcomes","Administrative paperwork and compliance tasks"]},{id:"ai_wishlist",question:"What would you most want AI to help your team with?",subtitle:"Select up to 3.",type:"multi",max:3,options:["Writing and editing content faster","Summarizing reports or documents","Answering routine questions automatically","Tracking and analyzing youth participation data","Donor or volunteer outreach and follow-up","Grant writing and research","Creating training or onboarding materials","Generating insights from our data"]},{id:"tech_readiness",question:"How comfortable is your team with adopting new technology?",type:"single",options:[{label:"Very resistant — change is hard here",value:"resistant"},{label:"Cautious — we move slowly but we get there",value:"cautious"},{label:"Neutral — depends on what it is",value:"neutral"},{label:"Generally open — most people adapt well",value:"open"},{label:"Enthusiastic — we love trying new tools",value:"enthusiastic"}]},{id:"ai_concern",question:"What is your biggest concern about using AI in your work?",type:"single",options:[{label:"Privacy and data security",value:"privacy"},{label:"Accuracy — AI making mistakes we rely on",value:"accuracy"},{label:"People not knowing how to use it well",value:"adoption"},{label:"Cost of tools or implementation",value:"cost"},{label:"It replacing roles or jobs",value:"jobs"},{label:"I don't have significant concerns",value:"none"}]}],G={leadership:[{id:"r_lead_challenges",question:"Which strategic challenges are most pressing for your organization right now?",subtitle:"Select all that apply.",type:"multi",options:["Youth membership growth and retention","Volunteer recruitment and engagement","Fundraising and financial sustainability","Modernizing how we deliver programs","Staff capacity and bandwidth","Demonstrating impact to donors and stakeholders"]},{id:"r_lead_reporting",question:"How do you currently track and report on organizational performance?",type:"single",options:[{label:"Mostly manual — spreadsheets and periodic reports",value:"manual"},{label:"Some dashboards but they require effort to maintain",value:"partial"},{label:"We have solid systems but data isn't always timely",value:"solid"},{label:"Real-time data with good visibility across the org",value:"realtime"}]},{id:"r_lead_success",question:"In your own words, what would success look like for AI at GSLAS?",type:"text",placeholder:"e.g., Our staff spending less time on admin and more time with youth and volunteers…"}],program:[{id:"r_prog_time_drains",question:"What takes the most time when planning or running programs?",subtitle:"Select all that apply.",type:"multi",options:["Creating program plans and activity guides","Coordinating with volunteers and troop leaders","Tracking attendance and advancement records","Communicating updates to scouts and families","Managing logistics (venues, materials, permits)","Reporting on program outcomes"]}
1,{id:"r_prog_tracking",question:"How do you currently track youth participation and advancement?",type:"single",options:[{label:"Primarily in Scoutbook / BSA tools",value:"scoutbook"},{label:"Mix of Scoutbook and spreadsheets",value:"mixed"},{label:"Mostly spreadsheets or manual records",value:"manual"},{label:"We have gaps — tracking is inconsistent",value:"gaps"}]},{id:"r_prog_automate",question:"Which aspect of program delivery would benefit most from automation?",type:"single",options:[{label:"Generating activity plans and content",value:"content"},{label:"Sending reminders and updates to families",value:"comms"},{label:"Tracking and reporting on advancement",value:"tracking"},{label:"Scheduling and logistics coordination",value:"scheduling"}]}],fundraising:[{id:"r_fund_time_drains",question:"What takes the most time in your fundraising work?",subtitle:"Select all that apply.",type:"multi",options:["Writing grant applications and reports","Donor outreach and follow-up communications","Tracking donations and donor relationships","Planning and executing fundraising events","Researching new funding opportunities","Creating impact reports and donor materials"]},{id:"r_fund_crm",question:"How do you currently manage donor relationships?",type:"single",options:[{label:"Dedicated CRM (Salesforce, Bloomerang, etc.)",value:"crm"},{label:"Spreadsheets and email folders",value:"manual"},{label:"A mix of tools — nothing fully integrated",value:"mixed"},{label:"Mostly relationship-based, minimal tracking",value:"informal"}]},{id:"r_fund_impact",question:"What would have the biggest impact on your fundraising results?",type:"single",options:[{label:"Better donor targeting and personalization",value:"targeting"},{label:"Faster grant writing and proposal creation",value:"grants"},{label:"More consistent follow-up with lapsed donors",value:"followup"},{label:"Clearer data on what campaigns actually work",value:"analytics"}]}],communications:[{id:"r_comm_content_types",question:"What types of content do you create most often?",subtitle:"Select all that apply.",type:"multi",options:["Newsletters and email campaigns","Social media posts","Press releases and media pitches","Event promotions and flyers","Annual reports and impact stories","Internal staff or volunteer communications","Website content"]},{id:"r_comm_time",question:"How much time per week do you spend writing or editing content?",type:"single",options:[{label:"Less than 2 hours",value:"lt2hr"},{label:"2–5 hours",value:"2-5hr"},{label:"5–10 hours",value:"5-10hr"},{label:"More than 10 hours",value:"gt10hr"}]},{id:"r_comm_help",question:"What would help most with your communications work?",type:"single",options:[{label:"Drafting first versions of content faster",value:"drafting"},{label:"Repurposing content across multiple channels",value:"repurposing"},{label:"Better insight into what content performs",value:"analytics"},{label:"Scheduling and managing posting across platforms",value:"scheduling"}]}],volunteers:[{id:"r_vol_time_drains",question:"What takes the most time in managing volunteers?",subtitle:"Select all that apply.",type:"multi",options:["Recruiting and screening new volunteers","Onboarding and training new volunteers","Scheduling and coordinating shifts or assignments","Tracking volunteer hours and engagement","Communicating updates and reminders","Recognizing and retaining active volunteers"]},{id:"r_vol_recruit",question:"How do you currently recruit new volunteers?",type:"single",options:[{label:"Primarily word of mouth / personal networks",value:"word_of_mouth"},{label:"Social media and online outreach",value:"social"},{label:"Community events and partnerships",value:"events"},{label:"A mix of all of the above",value:"mixed"}]},{id:"r_vol_retention",question:"What is your biggest challenge with volunteer retention?",type:"single",options:[{label:"Volunteers burn out from too many asks",value:"burnout"},{label:"People don't feel connected to the mission",value:"connection"},{label:"Lack of recognition or appreciation",value:"recognition"},{label:"Scheduling conflicts and time commitment",value:"scheduling"},{label:"Retention is generally not a problem for us",value:"none"}]}],finance:[{id:"r_fin_time_drains",question:"Which administrative or financial tasks consume the most time?",subt
1itle:"Select all that apply.",type:"multi",options:["Monthly or quarterly financial reporting","Budget tracking and variance analysis","Processing invoices, reimbursements, or payments","Compliance and audit preparation","Grant financial tracking and reporting","Membership fee processing and reconciliation"]},{id:"r_fin_reporting",question:"How do you currently handle financial reporting?",type:"single",options:[{label:"Mostly manual — Excel or Google Sheets",value:"manual"},{label:"Accounting software (QuickBooks, Sage, etc.) with some manual work",value:"software_partial"},{label:"Well-integrated software with minimal manual steps",value:"integrated"},{label:"Reports are pulled by a third-party or shared services team",value:"outsourced"}]},{id:"r_fin_help",question:"What would help most with your finance or admin work?",type:"single",options:[{label:"Automating routine reconciliation and reporting",value:"automation"},{label:"Better visibility into spending against budget",value:"visibility"},{label:"Faster grant financial tracking and reporting",value:"grants"},{label:"Reducing the time spent on compliance prep",value:"compliance"}]}]};function T({selected:a,onClick:l,children:o,multi:c=!1}){return t.jsxs("button",{onClick:l,"data-testid":"option-btn",style:{padding:"13px 16px",borderRadius:10,border:`1.5px solid ${a?e.blue:e.border}`,background:a?e.blueLight:e.card,cursor:"pointer",textAlign:"left",fontFamily:n.b,fontSize:14,lineHeight:1.5,color:a?e.blueDark:e.text,fontWeight:a?600:400,transition:"all 0.15s",display:"flex",alignItems:"center",gap:12,width:"100%"},children:[t.jsxs("span",{style:{width:20,height:20,minWidth:20,borderRadius:c?5:"50%",border:`2px solid ${a?e.blue:e.border}`,display:"flex",alignItems:"center",justifyContent:"center",background:c&&a?e.blue:"transparent",flexShrink:0},children:[a&&!c&&t.jsx("span",{style:{width:10,height:10,borderRadius:"50%",background:e.blue}}),a&&c&&t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:t.jsx("path",{d:"M2 6L5 9L10 3",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),t.jsx("span",{style:{flex:1},children:o})]})}function N({current:a,total:l}){const o=Math.round(a/l*100);return t.jsxs("div",{style:{marginBottom:28},children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:6},children:[t.jsxs("span",{style:{fontFamily:n.b,fontSize:12,color:e.text3,fontWeight:500},children:["Question ",a," of ",l]}),t.jsxs("span",{style:{fontFamily:n.m,fontSize:11,color:e.blue,fontWeight:600},children:[o,"%"]})]}),t.jsx("div",{style:{height:3,background:e.border,borderRadius:2,overflow:"hidden"},children:t.jsx("div",{style:{height:"100%",width:`${o}%`,background:`linear-gradient(90deg, ${e.blue}, ${e.blueDark})`,borderRadius:2,transition:"width 0.4s ease"}})})]})}function Q(a,l){if(!a)return!1;const o=l[a.id];return a.type==="text"?(o||"").trim().length>0:a.type==="multi"?(o||[]).length>0:a.type==="single"?!!o:!1}function Y(){const[a,l]=g.useState("welcome"),[o,c]=g.useState({name:"",email:"",dept:"",deptOther:"",teamSize:""}),[h,B]=g.useState({}),[v,E]=g.useState({}),[m,k]=g.useState(0),[O,j]=g.useState(!0),[F,_]=g.useState(""),q=G[o.dept]||[],z=[...$,...q],C=z.length,r=z[m],W=i=>{j(!1),setTimeout(()=>{i(),j(!0)},180)},w=i=>B({...h,[r.id]:i}),D=async()=>{l("submitting"),_("");try{const i={...h};for(const[d,u]of Object.entries(v))if(u.trim()){const y=i[d]||[];i[d]=y.map(p=>p==="Other (please specify)"?`Other: ${u.trim()}`:p)}if(!(await fetch("/api/workshop-survey",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client:I,respondentName:o.name,respondentEmail:o.email,department:H||o.dept,teamSize:o.teamSize||null,answers:i,privacyConsent:!0})})).ok)throw new Error("Server error");l("done")}catch{_("Something went wrong saving your responses. Please try again."),l("survey")}},H=o.dept==="other"?o.deptOther.trim()||"":o.dept,b=o.name.trim()&&o.email.trim()&&o.email.includes("@")&&o.dept&&(o.dept!=="other"||o.deptOther.trim());if(a==="welcome")return t.jsxs("div",{style:{minHeight:"100vh",background:e.bg},children:[t.jsx("link",{href:"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif&family=JetBrains+Mono:wght@500;600&display=swap",rel:"stylesheet"}),t.jsxs("div",{style:{padding:"20px 28px",display:"flex",alignItems:"center",gap:10,borderBottom:`1px solid ${e.border}`},children:[t.jsxs("span",{style:{fontFamily:n.b,fontSize:20,fontWeight:800,color:e.text,letterSpacing:"-0.03em"},children:["mith",t.jsx("span",{style:{color:e.blue},children:"AI"})]}),t.jsx("span",{style:{width:1,height:18,background:e.border}}),t.jsx("span",{style:{fontFamily:n.b,fontSize:12,color:e.text3,fontWeight:500},children:"Pre-Workshop Survey"})]}),t.jsxs("div",{style:{maxWidth:540,margin:"0 auto",padding:"48px 24px"},children:[t.jsxs("div",{style:{display:"inline-block",padding:"5px 12px",background:e.blueLight,borderRadius:20,fontFamily:n.b,fontSize:11,fontWeight:600,color:e.blue,letterSpacing:"0.04em",textTransform:"uppercase",marginBottom:20},children:[I," × mithAI — ",P]}),t.jsx("h1",{style:{fontFamily:n.d,fontSize:34,fontWeight:400,color:e.text,lineHeight:1.2,margin:"0 0 12px",letterSpacing:"-0.01em"},children:"AI Readiness Survey"}),t.jsx("p",{style:{fontFamily:n.b,fontSize:15,color:e.text2,lineHeight:1.65,margin:"0 0 32px"},children:"Help us understand where your team is today so we can design a workshop that's genuinely useful — not generic. Takes about 5 minutes."}),t.jsxs("div",{style:{background:e.card,borderRadius:16,border:`1px solid ${e.border}`,padding:28,marginBottom:28},children:[t.jsx("div",{style:{fontFamily:n.b,fontSize:13,fontWeight:600,color:e.text,marginBottom:20,textTransform:"uppercase",letterSpacing:"0.05em"},children:"About You"}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[[{label:"Your name",key:"name",type:"text",placeholder:"First and last name"},{label:"Work email",key:"email",type:"email",placeholder:"[email protected]"}].map(i=>t.jsxs("div",{children:[t.jsx("label",{style:{fontFamily:n.b,fontSize:13,fontWeight:500,color:e.text2,display:"block",marginBottom:6},children:i.label}),t.jsx("input",{"data-testid":`input-${i.key}`,type:i.type,placeholder:i.placeholder,value:o[i.key],onChange:s=>c({...o,[i.key]:s.target.value}),style:{width:"100%",padding:"11px 14px",borderRadius:10,border:`1.5px solid ${e.border}`,background:e.bg,fontFamily:n.b,fontSize:14,color:e.text,outline:"none",boxSizing:"border-box"},onFocus:s=>s.target.style.borderColor=e.blue,onBlur:s=>s.target.style.borderColor=e.border})]},i.key)),t.jsxs("div",{children:[t.jsx("label",{style:{fontFamily:n.b,fontSize:13,fontWeight:500,color:e.text2,display:"block",marginBottom:6},children:"Your area / department"}),t.jsxs("select",{"data-testid":"select-dept",value:o.dept,onChange:i=>c({...o,dept:i.target.value,deptOther:""}),style:{width:"100%",padding:"11px 14px",borderRadius:10,border:`1.5px solid ${o.dept?e.blue:e.border}`,background:e.bg,fontFamily:n.b,fontSize:14,color:o.dept?e.text:e.text3,outline:"none",cursor:"pointer"},onFocus:i=>i.target.style.borderColor=e.blue,onBlur:i=>i.target.style.borderColor=o.dept?e.blue:e.border,children:[t.jsx("option",{value:"",children:"Select your area…"}),M.map(i=>t.jsx("option",{value:i.id,children:i.label},i.id)),t.jsx("option",{value:"other",children:"Other"})]}),o.dept==="other"&&t.jsx("input",{"data-testid":"input-dept-other",autoFocus:!0,t
1ype:"text",placeholder:"Please describe your role or area…",value:o.deptOther,onChange:i=>c({...o,deptOther:i.target.value}),style:{width:"100%",marginTop:8,padding:"11px 14px",borderRadius:10,border:`1.5px solid ${e.blue}`,background:e.bg,fontFamily:n.b,fontSize:14,color:e.text,outline:"none",boxSizing:"border-box"}})]}),t.jsxs("div",{children:[t.jsxs("label",{style:{fontFamily:n.b,fontSize:13,fontWeight:500,color:e.text2,display:"block",marginBottom:6},children:["Team size ",t.jsx("span",{style:{fontWeight:400,color:e.text3},children:"(optional)"})]}),t.jsxs("select",{"data-testid":"select-team-size",value:o.teamSize,onChange:i=>c({...o,teamSize:i.target.value}),style:{width:"100%",padding:"11px 14px",borderRadius:10,border:`1.5px solid ${e.border}`,background:e.bg,fontFamily:n.b,fontSize:14,color:o.teamSize?e.text:e.text3,outline:"none",cursor:"pointer"},children:[t.jsx("option",{value:"",children:"Select…"}),t.jsx("option",{value:"Just me",children:"Just me"}),t.jsx("option",{value:"2–5",children:"2–5"}),t.jsx("option",{value:"6–15",children:"6–15"}),t.jsx("option",{value:"16–50",children:"16–50"}),t.jsx("option",{value:"50+",children:"50+"})]})]})]})]}),t.jsx("button",{"data-testid":"button-start-survey",onClick:()=>b&&l("survey"),disabled:!b,style:{width:"100%",padding:"15px",borderRadius:12,border:"none",background:b?e.blue:e.border,color:b?"#fff":e.text3,fontFamily:n.b,fontSize:15,fontWeight:600,cursor:b?"pointer":"default",transition:"all 0.2s"},children:"Start Survey →"}),t.jsxs("p",{style:{fontFamily:n.b,fontSize:12,color:e.text3,textAlign:"center",marginTop:16,lineHeight:1.5},children:["Your responses are confidential and shared only with mithAI to shape the workshop. Questions? Email ",t.jsx("a",{href:`mailto:${x}`,style:{color:e.blue},children:x})]})]})]});if(a==="done")return t.jsxs("div",{style:{minHeight:"100vh",background:e.bg,display:"flex",alignItems:"center",justifyContent:"center"},children:[t.jsx("link",{href:"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif&display=swap",rel:"stylesheet"}),t.jsxs("div",{style:{maxWidth:480,padding:"0 24px",textAlign:"center"},children:[t.jsx("div",{style:{width:64,height:64,borderRadius:"50%",background:e.greenLight,display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px",fontSize:28},children:"✓"}),t.jsxs("h2",{style:{fontFamily:n.d,fontSize:32,fontWeight:400,color:e.text,marginBottom:12},children:["Thank you, ",o.name.split(" ")[0],"!"]}),t.jsx("p",{style:{fontFamily:n.b,fontSize:15,color:e.text2,lineHeight:1.65,marginBottom:32},children:"Your responses have been saved. The mithAI team will use your input to tailor the workshop to what matters most for Greater St. Louis Area Scouting."}),t.jsx("div",{style:{background:e.card,borderRadius:12,border:`1px solid ${e.border}`,padding:"20px 24px"},children:t.jsxs("p",{style:{fontFamily:n.b,fontSize:13,color:e.text2,margin:0,lineHeight:1.6},children:["Questions before the workshop? Reach out at"," ",t.jsx("a",{href:`mailto:${x}`,style:{color:e.blue,fontWeight:600},children:x})]})})]})]});if(a==="submitting")return t.jsxs("div",{style:{minHeight:"100vh",background:e.bg,display:"flex",alignItems:"center",justifyContent:"center"},children:[t.jsx("link",{href:"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap",rel:"stylesheet"}),t.jsxs("div",{style:{textAlign:"center"},children:[t.jsx("div",{style:{width:40,height:40,borderRadius:"50%",border:`3px solid ${e.border}`,borderTopColor:e.blue,animation:"spin 0.8s linear infinite",margin:"0 auto 16px"}}),t.jsx("style",{children:"@keyframes spin { to { transform: rotate(360deg); } }"}),t.jsx("p",{style:{fontFamily:"'DM Sans', sans-serif",fontSize:14,color:e.text2},children:"Saving your responses…"})]})]});const L=m>0,A=m===C-1,f=Q(r,h);return t.jsxs("div",{style:{minHeight:"100vh",background:e.bg},children:[t.jsx("link",{href:"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif&family=JetBrains+Mono:wght@500;600&display=swap",rel:"stylesheet"}),t.jsxs("div",{style:{padding:"16px 28px",display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:`1px solid ${e.border}`},children:[t.jsxs("span",{style:{fontFamily:n.b,fontSize:18,fontWeight:800,color:e.text,letterSpacing:"-0.03em"},children:["mith",t.jsx("span",{style:{color:e.blue},children:"AI"})]}),t.jsxs("span",{style:{fontFamily:n.b,fontSize:12,color:e.text3},children:[o.name," · ",o.dept==="other"?o.deptOther||"Other":M.find(i=>i.id===o.dept)?.label]})]}),t.jsxs("div",{style:{maxWidth:580,margin:"0 auto",padding:"40px 24px"},children:[t.jsx(N,{current:m+1,total:C}),t.jsxs("div",{style:{opacity:O?1:0,transition:"opacity 0.18s ease"},children:[r?.subtitle&&t.jsx("p",{style:{fontFamily:n.b,fontSize:13,color:e.blue,fontWeight:600,marginBottom:8,textTransform:"uppercase",letterSpacing:"0.04em"},children:r.subtitle}),t.jsx("h2",{style:{fontFamily:n.d,fontSize:26,fontWeight:400,color:e.text,lineHeight:1.3,margin:"0 0 24px",letterSpacing:"-0.01em"},children:r?.question}),r?.type==="single"&&t.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:(r.options||[]).map((i,s)=>{const d=typeof i=="object"?i.label:i,u=typeof i=="object"?i.value:i;return t.jsx(T,{selected:h[r.id]===u,onClick:()=>w(u),children:d},s)})}),r?.type==="multi"&&t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[r.max&&t.jsxs("p",{style:{fontFamily:n.b,fontSize:12,color:e.text3,margin:"-4px 0 8px"},children:["Select up to ",r.max]}),(r.options||[]).map((i,s)=>{const d=typeof i=="object"?i.label:i,u=d==="Other (please specify)",y=h[r.id]||[],p=y.includes(d),R=!!(r.max&&y.length>=r.max&&!p);return t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[t.jsx(T,{multi:!0,selected:p,onClick:()=>{R||w(p?y.filter(S=>S!==d):[...y,d])},children:t.jsx("span",{style:{opacity:R?.4:1},children:d})}
1),u&&p&&t.jsx("input",{"data-testid":"input-other-text",autoFocus:!0,type:"text",placeholder:"Please describe…",value:v[r.id]||"",onChange:S=>E({...v,[r.id]:S.target.value}),style:{marginLeft:32,padding:"10px 14px",borderRadius:8,border:`1.5px solid ${e.blue}`,background:e.card,fontFamily:n.b,fontSize:14,color:e.text,outline:"none",boxSizing:"border-box",width:"calc(100% - 32px)"}})]},s)})]}),r?.type==="text"&&t.jsx("textarea",{"data-testid":"input-text-answer",value:h[r.id]||"",onChange:i=>w(i.target.value),placeholder:r.placeholder,rows:4,style:{width:"100%",padding:14,borderRadius:10,border:`1.5px solid ${e.border}`,background:e.card,fontFamily:n.b,fontSize:14,lineHeight:1.6,color:e.text,resize:"vertical",outline:"none",boxSizing:"border-box"},onFocus:i=>i.target.style.borderColor=e.blue,onBlur:i=>i.target.style.borderColor=e.border}),F&&t.jsx("p",{style:{fontFamily:n.b,fontSize:13,color:"#DC2626",marginTop:12},children:F})]}),t.jsxs("div",{style:{display:"flex",gap:12,marginTop:32},children:[L&&t.jsx("button",{"data-testid":"button-back",onClick:()=>W(()=>k(m-1)),style:{padding:"13px 20px",borderRadius:10,border:`1.5px solid ${e.border}`,background:e.card,color:e.text2,fontFamily:n.b,fontSize:14,fontWeight:500,cursor:"pointer"},children:"← Back"}),t.jsx("button",{"data-testid":"button-next",onClick:()=>{f&&(A?D():W(()=>k(m+1)))},disabled:!f,style:{flex:1,padding:"13px 20px",borderRadius:10,border:"none",background:f?e.blue:e.border,color:f?"#fff":e.text3,fontFamily:n.b,fontSize:14,fontWeight:600,cursor:f?"pointer":"default",transition:"all 0.2s"},children:A?"Submit →":"Next →"})]}),t.jsxs("p",{"data-testid":"text-privacy-notice",style:{fontFamily:n.b,fontSize:12,color:e.text3,lineHeight:1.6,marginTop:20,textAlign:"center"},children:["By submitting, you agree to mithAI storing and processing your responses as described in our"," ",t.jsx("a",{href:"/privacy",target:"_blank",rel:"noopener noreferrer",style:{color:e.blue,textDecoration:"underline"},children:"privacy policy"}),"."]})]})]})}export{Y 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.