1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{56232:function(e,t,r){Promise.resolve().then(r.t.bind(r,58877,23)),Promise.resolve().then(r.bind(r,86487)),Promise.resolve().then(r.bind(r,19082)),Promise.resolve().then(r.bind(r,64404)),Promise.resolve().then(r.bind(r,27640)),Promise.resolve().then(r.bind(r,90239)),Promise.resolve().then(r.t.bind(r,84080,23)),Promise.resolve().then(r.t.bind(r,97017,23)),Promise.resolve().then(r.t.bind(r,25348,23))},95976:function(e,t,r){"use strict";r.d(t,{H1:function(){return i},H2:function(){return n},H5:function(){return a},H6:function(){return l},n:function(){return c}});var s=r(2265);let o=(e,t,r)=>{let o=s.forwardRef((r,o)=>{let{children:i,className:n="",muted:a,...l}=r,c="".concat("font-sans"," ").concat(t," ").concat(a?"text-muted-foreground":""," ").concat(n).trim();return s.createElement(e,{className:c,ref:o,...l},i)});return o.displayName=r,o},i=o("h1","text-4xl font-bold mb-4","H1"),n=o("h2","text-2xl font-semibold mb-3","H2");o("h3","text-xl font-medium mb-2 tracking-wide","H3"),o("h4","text-lg font-medium mb-2 tracking-wide","H4");let a=o("h5","font-normal mb-2 tracking-wide","H5"),l=o("h6","text-sm font-light mb-1 tracking-wide","H6"),c=o("p","text-sm mb-2 font-light tracking-wide leading-6","Paragraph");o("span","inline","Span")},86487:function(e,t,r){"use strict";r.d(t,{default:function(){return T}});var s=r(57437),o=r(2265),i=r(66648),n=r(87138),a=r(16463),l=r(87990),c=r(98319),d=r(86425),h=r(53891),u=r(15714),m=r(54817),p=r(13320);let f=e=>{let{isSidebarOpen:t,setIsSidebarOpen:r}=e,[f,g]=(0,o.useState)(""),v=(0,a.useRouter)(),x=(0,a.usePathname)(),b=(0,a.useSearchParams)();return(0,o.useEffect)(()=>{let e=localStorage.getItem("searchQuery");e&&g(e)},[]),(0,o.useEffect)(()=>{localStorage.setItem("searchQuery",f)},[f]),(0,o.useEffect)(()=>{x.startsWith("/search/")||(g(""),localStorage.removeItem("searchQuery"))},[x]),(0,s.jsxs)(l.R,{maxWidth:"full",className:"bg-white border-b border-gray-200 h-16 fixed",children:[(0,s.jsx)(c.k,{className:"-mx-3 w-fit sm:hidden",children:(0,s.jsx)(p.ZP,{size:20,toggled:t,onToggle:e=>r(e)})}),(0,s.jsx)(d.H,{className:"gap-4",children:(0,s.jsx)(n.default,{href:"https://med.stanford.edu/neurodiversity/ndrd.html",passHref:!0,children:(0,s.jsx)(i.default,{src:"/stanfordNeurodiversityProject.png",alt:"Stanford Medicine Logo",width:256,height:50})})}),(0,s.jsx)(h.U,{justify:"end",children:(0,s.jsx)("form",{onSubmit:e=>{if(e.preventDefault(),""!==f.trim()){let e=b.get("location"),t="/search/".concat(encodeURIComponent(f.trim())),r=e?"".concat(t,"?location=").concat(e):t;v.push(r)}},className:"max-w-72 w-full",children:(0,s.jsx)(u.Y,{classNames:{base:"w-full",mainWrapper:"h-full",input:"text-small",inputWrapper:"h-9 bg-default-100"},placeholder:"Search",size:"sm",startContent:(0,s.jsx)(m.Z,{className:"text-default-400 pointer-events-none flex-shrink-0",size:18}),type:"search",value:f,onValueChange:g,"aria-label":"Search"})})})]})};var g=e=>{let{isSidebarOpen:t,setIsSidebarOpen:r}=e;return(0,s.jsx)(o.Suspense,{fallback:(0,s.jsx)("div",{children:"Loading header..."}),children:(0,s.jsx)(f,{isSidebarOpen:t,setIsSidebarOpen:r})})},v=r(88393),x=r(8567),b=r(88819),w=r(50585),y=r(95976);let j={"Mental Health and Wellness":{"Mental Health Professionals":{sheetId:"1bpDvF8UeN7jighyvNXdc2zfM02Qoq1yR-XgCDCSXk30",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLSeitfXIpOCcVttt2HfSKFmFhfsL4MNjXeN3-eHY4CCqq88Zfg/viewform",description:"Find mental health professionals who specialize in working with neurodiverse individuals."},"Mental Health Digital Resources":{sheetId:"10XKYwHfaPfMv0OsLnfgZURNJG2N5aifyoO7TE8KkXYU",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLScXMRqgzZa03AF3epf98OnPR7UW_uFZ7m5ZUMUhXOeTTK6cXw/viewform",description:"Access digital resources and tools to support mental health and wellness."},"Mental Health Organizations":{sheetId:"1fqzviosXQP1QThlJslXQODsaOVZUaKrrQ13HF6kFqBs",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLScNi_vit5mbJMRwFS6ytLMvk2YjwB-JnLPwT4rnH4z4k5WVeA/viewform",description:"Find mental health organizations that support neurodiverse individuals."},"Mental Health Books":{sheetId:"1zfohZ1_-CNIPX0tv7Z-PSoSwLZmXcdWzowV28Hre3S0",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLSdrak6IKgyuPmSSFeiKQg2sxwHSaQ9_FeqtOyathDQXAmslLg/viewform",description:"Explore mental health books that provide information and support for neurodiverse individuals."}},Employment:{"Service Providers":{sheetId:"1umS4RWNkThEnwecZ9SoUOm8hq2B5pcnwiPxiMTG_1xQ",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLScsYk4vR6ivu4Gwqf_4MDquX3psCTJ0jlL6Wki2DVJyjF1ZDg/viewform",description:"Find service providers who specialize in supporting neurodiverse individuals in the workplace."},"Specialized Employment Program":{sheetId:"1lF4LkpYTkSrrD3im-nh7yTbvhchr-MQxKdTeS6bkM-A",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLScbm8VGv89sOASfEqurFj5v1EXE7j2flEQm1IEk9-M1B7t1pA/viewform"}},"Higher Education":{"Specialized Tutoring":{sheetId:"1HsiBxbYH8EqMyjwokGlJkILGRXOO4FMLQTcS-TqeRCs",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLSf0hO_QZAz5fLNPV5wztDYeovt_9HAd1gWHB-8SyGkrijw-3A/viewform",description:"Find educational advocacy services that support neurodiverse individuals in higher education."}
1,"Coaching Or Executive Functioning Support":{sheetId:"1kK1vpyq633PBpJcOnDAEn-wBED6SLlb6ShFK_87tiZY",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLSeZp-QTH7FoSxBtt03JEdbhcfb3YeKL2lGvYPbkCdEcTJ2k3Q/viewform",description:"Find educational advocacy services that support neurodiverse individuals in higher education."},"Organizations for Post-secondary Advocacy":{sheetId:"1NCUTr5-iAHnwOKUhgQIsiDd0jqBHnc33LUyP3NOXims",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLSfKbIIp_-5E5VC1FycExX2BP4R5EkmAYZmtl3MyxK9371kMNw/viewform",description:"Find educational advocacy services that support neurodiverse individuals in higher education."},"Digital Resources for Post-secondary":{sheetId:"1xhvQ-6X0wCPQA4f7Ps221uXkHsEUPCgGxBv2zm0rGyA",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLSf-rO1_3ByqTWxsLWxK9boXe6Urtgz6_k4XlP9AQuUxw-nqvw/viewform",description:"Find educational advocacy services that support neurodiverse individuals in higher education."},"Post-secondary Opportunities - Apprenticeships":{sheetId:"1AlkkZs6XcVEPZWvZd503pzcQIhTnkQ37Jc_q1ugFFZY",description:"Find educational advocacy services that support neurodiverse individuals in higher education."},"Post-secondary Opportunities - Transition or Gap Year Programs":{sheetId:"1uybzK0Ta90HjukUq-SnDYECzjiJaeqeUWV2fm5fAeXs",description:"Find educational advocacy services that support neurodiverse individuals in higher education."}},"K to 12 Education":{"Specialized Tutoring":{sheetId:"1HsiBxbYH8EqMyjwokGlJkILGRXOO4FMLQTcS-TqeRCs",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLSf0hO_QZAz5fLNPV5wztDYeovt_9HAd1gWHB-8SyGkrijw-3A/viewform",description:"Find educational advocacy services that support neurodiverse individuals in higher education."},"Specialized Learning Environments":{sheetId:"12MOgghRtPDlXGh5FnSdtO7Npw8B2awufe1bnBfvKdhI",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLSfjgGBmkuQleO6JOD0kUhmQZR4ycjar3mA61_OyYFBLNWLRFg/viewform",description:"Find educational advocacy services that support neurodiverse individuals in higher education."},"Digital Resources":{sheetId:"1QWsL-_g2bqhd3QuyVSHHnlKS3c7Ij-YVu_fYpE-Wxj8",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLSfUtPpdsglMwG74arz4pPRZXFEvqJ6aWkT67QP5_RJRDoFByA/viewform",description:"Find educational advocacy services that support neurodiverse individuals in higher education."},"Coaching Or Executive Functioning Support":{sheetId:"1kK1vpyq633PBpJcOnDAEn-wBED6SLlb6ShFK_87tiZY",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLSeZp-QTH7FoSxBtt03JEdbhcfb3YeKL2lGvYPbkCdEcTJ2k3Q/viewform",description:"Find educational advocacy services that support neurodiverse individuals in higher education."}},"Health and Wellness":{"Dental Health Professionals":{sheetId:"1BOWlBPGGO6e2okcHmSYDzVTBoVw7xjToFdbIR2EoBxE",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLSfdjOe8QbnblwJokD4pPm9b2r0LP8JDkwnwBpx1g2EqG6Fe1Q/viewform"},"Healthcare Professionals":{sheetId:"1d-2GfhHO4NCQDqpG2ondUsJreJliJsiY1d1pVMCqmoc",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLSe_PrnwLRgBIePhVlml99YZqoC6i8RdRhLXQyGeAtovkJCQGA/viewform",description:"Find healthcare professionals who specialize in working with neurodiverse individuals."}},Recreation:{Recreation:{sheetId:"1qKmL0ApxNaDBPWSoLvpN_FD6ltVLGPYaaR1Tw6X23Js",formUrl:"https://docs.google.com/forms/d/e/1FAIpQLSfdPPF9hE4k6eNS-MeWE0unZiOxj9kFVR6iqrAphUZjHYLeSQ/viewform",description:"Find recreational activities and programs that support neurodiverse individuals."}}};var S=r(22599),k=r.n(S);function F(e){return k().snakeCase(e)}var P=r(31196),I=r(96251),N=r(95256),H=r(81887),O=r(36620),Q=r(47971),A=r(84447),L=r(34446),E=r(14950);function C(e){let{isOpen:t,onOpenChange:r}=e;(0,a.useRouter)();let[i,n]=(0,o.useState)(""),[l,c]=(0,o.useState)([{role:"assistant",content:"Hello! I'm here to help you find resources. Type any questions here for inquiries regarding resources. For direct support, please <a href='mailto:[email protected]' class='text-primary hover:underline'>email us</a>"}]),[d,h]=(0,o.useState)(!1),u=e=>{let t=e,r=e.match(/<([^>]+)>/g);return r&&r.forEach(e=>{let r=e.slice(1,-1).toLowerCase(),s="";for(let[e,t]of Object.entries(j))if(Object.keys(t).some(e=>e.toLowerCase()===r)){s=e;break}if(s){let o=s.replace(/ /g,"_");t=t.replace(e,'<a class="text-primary font-bold cursor-pointer" href="/'.concat(o,"/").concat(r.replace(/ /g,"_"),'">').concat(e.slice(1,-1),"</a>"))}}),t},m=async()=>
1{if(!i.trim())return;let e={role:"user",content:i};c(t=>[...t,e]),h(!0);try{let t=await fetch("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:[...l,e]})}),r=await t.json(),s=u(r.content);console.log(s),c(e=>[...e,{role:"assistant",content:s}])}catch(e){console.error("Error:",e),c(e=>[...e,{role:"assistant",content:"Sorry, I encountered an error. Please try again."}])}finally{h(!1),n("")}};return(0,s.jsx)(P.R,{isOpen:t,onOpenChange:r,size:"2xl",children:(0,s.jsx)(I.A,{children:e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(N.k,{children:"AI Resource Assistant"}),(0,s.jsx)(H.I,{children:(0,s.jsxs)("div",{className:"flex flex-col gap-4 h-[400px]",children:[(0,s.jsx)("div",{className:"flex-1 overflow-y-auto space-y-4",children:(0,s.jsxs)(L.M,{children:[l.map((e,t)=>(0,s.jsx)(E.E.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"p-3 rounded-lg ".concat("user"===e.role?"bg-primary/10 ml-auto max-w-[80%]":"bg-default-100 mr-auto max-w-[80%]"),children:(0,s.jsx)("p",{className:"whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:e.content}})},t)),d&&(0,s.jsx)(E.E.div,{initial:{opacity:0}
1,animate:{opacity:1},className:"bg-default-100 p-3 rounded-lg w-16 mr-auto",children:(0,s.jsx)("p",{children:"..."})})]})}),(0,s.jsx)(O.Y,{placeholder:"Ask about the resources you're looking for...",value:i,onChange:e=>n(e.target.value),minRows:2,size:"lg",onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),m())}})]})}),(0,s.jsxs)(Q.R,{children:[(0,s.jsx)(A.A,{color:"danger",variant:"light",onPress:e,children:"Close"}),(0,s.jsx)(A.A,{color:"primary",onPress:m,isDisabled:!i.trim()||d,children:"Send"})]})]})})})}let U=e=>{let{title:t,href:r,setIsSidebarOpen:o}=e;return(0,s.jsx)(n.default,{href:r,className:"block mt-6 px-2",onClick:()=>o(!1),children:(0,s.jsx)(y.H5,{className:"!text-base !m-0",children:t})})},R=e=>{let{page:t,searchMode:r,searchTerm:i,setIsSidebarOpen:a}=e,[l,c]=(0,o.useState)(!1),d=(e,t)=>{let s=F(e);return t&&(s="".concat(s,"/").concat(F(t))),"/".concat(s).concat(r?"?s=".concat(i):"")};return(0,s.jsx)(v.d,{children:(0,s.jsx)(x.G,{"aria-label":t,classNames:{heading:"!p-0 !m-0",trigger:"!p-0 !mt-6"},title:(0,s.jsx)(y.H5,{className:"!text-base !m-0",children:t}),indicator:e=>{let{isOpen:t}=e;return(0,s.jsx)(w.X,{className:"text-slate-600 transition-transform ".concat(t?"rotate-90":"rotate-0")})},onPress:()=>{c(!l)},children:Object.keys(j[t]).map((e,r)=>(0,s.jsx)(n.default,{href:d(t,e),passHref:!0,onClick:()=>{console.log("clicked"),a(!1)},children:(0,s.jsx)(y.H6,{className:"my-3",children:e.replace(/_/g," ")})},r))},t)})};var z=e=>{let{setIsSidebarOpen:t,searchMode:r=!1,searchTerm:i}=e,[a,l]=(0,o.useState)(!1);return(0,s.jsxs)("nav",{className:"w-72 p-4 bg-white z-50 border-r fixed h-[calc(100dvh-64px)] overflow-y-auto z-20 ".concat(r?"!w-full !h-full !bg-transparent !border-none !text-slate-600 !p-3":"","\n "),children:[(0,s.jsxs)("div",{className:"flex flex-col justify-between -mt-6 h-[calc(100dvh-4.5rem)] ",children:[(0,s.jsx)("div",{className:"w-full flex flex-col justify-between overflow-auto",children:(0,s.jsxs)("div",{className:"flex flex-col overflow-y-auto w-full gap-y-0 scrollbar-hide",children:[(0,s.jsx)(U,{title:"Contribute Papers",href:"/contribute",setIsSidebarOpen:t}),Object.keys(j).map((e,o)=>(0,s.jsx)(R,{page:e,searchMode:r,searchTerm:i,setIsSidebarOpen:t},o))]})}),(0,s.jsxs)(n.default,{href:"https://med.stanford.edu/neurodiversity/ndrd.html",target:"_blank",rel:"noopener noreferrer",className:"mt-auto p-4 !bg-[#fff] opacity-100 rounded-lg border border-primary relative hover:opacity-90 transition-opacity",children:[(0,s.jsx)(b.z,{className:"absolute -top-2.5 right-4",color:"primary",variant:"solid",size:"sm",children:"New"}),(0,s.jsx)(y.H5,{className:"!text-foreground !mb-2 font-semibold",children:"We are expanding!"}),(0,s.jsx)(y.H6,{className:"!text-foreground !text-sm !mb-2",children:"Contribute to our database from anywhere in the US."})]}),!r&&(0,s.jsxs)("div",{className:"mt-4 p-4 !bg-[#fff] opacity-100 rounded-lg border border-slate-200",children:[(0,s.jsx)(y.H6,{className:"!text-foreground !text-sm !mb-2",children:"Having trouble finding a category?"}),(0,s.jsx)("button",{onClick:()=>l(!0),className:"text-sm font-medium text-primary !hover:text-primary-600 transition-colors",children:"Get Help"})]})]}),(0,s.jsx)(C,{isOpen:a,onOpenChange:l})]})};function T(e){let{children:t}=e,[r,i]=(0,o.useState)(!1);return(0,s.jsxs)("div",{children:[(0,s.jsx)(g,{isSidebarOpen:r,setIsSidebarOpen:i}),(0,s.jsx)("div",{className:"w-full h-full overflow-x-hidden",children:(0,s.jsxs)("div",{className:"overflow-x-hidden max-sm:-mr-72 h-full ".concat(r?"":"max-sm:-translate-x-72"," duration-300 pt-16"),children:[(0,s.jsx)(z,{setIsSidebarOpen:i}),(0,s.jsx)("div",{className:"w-full h-full pl-72 ".concat(r?"max-sm:blur-sm max-sm:brightness-75":""," duration-300"),children:t})]})})]})}},19082:function(e,t,r){"use strict";r.d(t,{Providers:function(){return i}});var s=r(57437),o=r(81679);function i(e){let{children:t}=e;return(0,s.jsx)(o.w,{children:t})}},58877:function(){}},function(e){e.O(0,[404,954,866,96,226,819,747,231,364,971,23,744],function(){return e(e.s=56232)}),_N_E=e.O()}]);
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.