1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="912ae775-ee4b-5fa7-8afd-0f7e4b572398")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90642],{2880:()=>{},9647:()=>{},17501:(e,t,s)=>{"use strict";s.d(t,{a:()=>h});var a=s(65321),r=s(97109),n=s(91527),l=s(21935),i=s(91635),c=s(32022),o=s.n(c),d=s(86970);function h(e){let{open:t,setOpen:s,children:c,handleClosing:h=()=>s(!1),classOverride:u=""}=e;return(0,a.jsx)(n.e.Root,{show:t,as:r.Fragment,children:(0,a.jsx)(l.l,{as:"div",className:(0,d.QP)("fixed inset-0 z-[9999] overflow-y-auto",o().className),onClose:()=>{h(),s(!1)},children:(0,a.jsxs)("div",{className:"flex min-h-screen items-center justify-center px-4 pb-20 pt-4 text-center sm:block sm:p-0",children:[(0,a.jsx)(n.e.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)(l.l.Overlay,{className:"fixed inset-0 bg-black/70 backdrop-blur-sm transition-opacity"})}),(0,a.jsx)("span",{className:"hidden sm:inline-block sm:h-screen sm:align-middle","aria-hidden":"true",children:"â"}),(0,a.jsx)(n.e.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",afterLeave:h,children:(0,a.jsxs)("div",{className:(0,d.QP)("inline-block transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left align-bottom shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-3xl sm:p-6 sm:align-middle",u),children:[c,(0,a.jsx)("div",{className:"absolute right-0 top-0 pr-3 pt-3",children:(0,a.jsxs)("button",{type:"button",className:"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2",onClick:()=>{s(!1),h()},children:[(0,a.jsx)("span",{className:"sr-only",children:"Close"}),(0,a.jsx)(i.A,{className:"size-6","aria-hidden":"true"})]})})]})})]})})})}},38592:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>O});var a=s(65321),r=s(97109),n=s(15532),l=s(9427),i=s(80592),c=s(41163),o=s(38482),d=s(99958),h=s(43573),u=s.n(h),m=s(81950),x=s(24850),p=s(9667),g=s(11366),y=s(68110),b=s(44403),f=s(74846),v=s(35503),j=s(14374),N=s(33233),k=s(17501),w=s(26742),A=s(85355),_=s(42278);let C={hackathon:{label:"Hackathons",Icon:x.A,href:e=>"".concat(_.B.Event,"/").concat(e)},tutorial:{label:"Tutorials",Icon:p.A,href:e=>"".concat(_.B.Tutorials,"/").concat(e)},article:{label:"Articles",Icon:g.A,href:e=>"".concat(_.B.Article,"/").concat(e)},stream:{label:"Streams",Icon:y.A,href:e=>"".concat(_.B.Stream,"/").concat(e)},submission:{label:"Projects",Icon:b.A,href:e=>"".concat(_.B.Apps,"/submissions/").concat(e)},"hackathon-submission":{label:"Hackathon Submissions",Icon:f.A,href:e=>"/submissions/".concat(e)},profile:{label:"People",Icon:v.A,href:e=>"".concat(_.B.User,"/").concat(e)},technology:{label:"Technologies",Icon:j.A,href:e=>"".concat(_.B.Tech,"/").concat(e)}},S=["AI Agents","RAG","LangChain","Computer Vision","Generative AI","LLM"];function E(){let{items:e,refine:t}=(0,n.J)({attribute:"type"}),{refine:s}=(0,l.X)({includedAttributes:["type"]});if(!e.length)return null;let r=e.some(e=>e.isRefined);return(0,a.jsxs)("div",{className:"flex flex-wrap gap-1.5 border-b border-gray-100 px-3 py-2",children:[(0,a.jsx)("button",{onClick:()=>s(),className:"rounded-full border px-3 py-1 text-xs font-medium transition-colors ".concat(r?"border-gray-200 bg-white text-gray-600 hover:bg-gray-50":"border-indigo-200 bg-indigo-50 text-indigo-600"),children:"All"}),e.map(e=>{var s;let r=C[e.value];return(0,a.jsxs)("button",{onClick:()=>t(e.value),className:"rounded-full border px-3 py-1 text-xs font-medium transition-colors ".concat(e.isRefined?"border-indigo-200 bg-indigo-50 text-indigo-600":"border-gray-200 bg-white text-gray-600 hover:bg-gray-50"),children:[null!=(s=null==r?void 0:r.label)?s:e.label," (",e.count,")"]},e.value)})]})}function P(e){let{refine:t}=e;return(0,a.jsxs)("div",{className:"px-4 pb-3 pt-3",children:[(0,a.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-gray-400",children:"Suggested searches"}),(0,a.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:S.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>t(e),className:"rounded-full border border-gray-200 bg-white px-3 py-1 text-xs font-medium text-gray-600 transition-colors hover:bg-gray-50",children:e},e))})]})}function T(e){let{hackathons:t,loading:s,setOpen:r}=e;return s||t.length?(0,a.jsxs)("div",{className:"border-t border-gray-100",children:[(0,a.jsx)("div",{className:"px-4 pb-1 pt-3",children:(0,a.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-gray-400",children:"Recent hackathons"})}),s?(0,a.jsx)("div",{className:"space-y-2 px-4 py-2.5",children:[0,1,2].map(e=>(0,a.jsx)("div",{className:"h-4 w-2/3 animate-pulse rounded bg-gray-100"},e))}):t.map(e=>(0,a.jsxs)(u(),{href:"".concat(_.B.Event,"/").concat(e.slug),className:"flex items-center gap-3 px-4 py-2.5 hover:bg-gray-50",onClick:()=>r(!1),children:[(0,a.jsx)(x.A,{className:"size-4 shrink-0 text-gray-400",strokeWidth:1.5}),(0,a.jsx)("span",{className:"truncate text-sm text-gray-900",children:e.name})]},e.slug))]}):null}function I(e){let{refine:t,hackathons:s,loading:r,setOpen:n}=e;return(0,a.jsxs)("div",{className:"pb-2",children:[(0,a.jsx)(P,{refine:t}),(0,a.jsx)(T,{hackathons:s,loading:r,setOpen:n})]})}function B(e){let{refine:t,hackathons:s,loadingHackathons:r,setOpen:n}=e,{hits:l,results:c}=(0,i.u)();if(!(null==c?void 0:c.query))return(0,a.jsx)(I,{refine:t,hackathons:s,loading:r,setOpen:n});if(!l.length)return(0,a.jsxs)("div",{className:"flex items-center justify-center py-10 text-sm text-gray-500",children:["No results for â",c.query,"â"]}
2);let o={};for(let e of l)o[e.type]||(o[e.type]=[]),o[e.type].push(e);let d=Object.keys(o),h=d.length>1;return(0,a.jsx)("div",{children:d.map(e=>{var t;let s=C[e],r=null==s?void 0:s.Icon;return(0,a.jsxs)("div",{children:[h&&(0,a.jsx)("div",{className:"px-4 pb-1 pt-3",children:(0,a.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-gray-400",children:null!=(t=null==s?void 0:s.label)?t:e})}),o[e].map(e=>{var t;let l=null!=(t=null==s?void 0:s.href(e.slug))?t:"/",i=("hackathon"===e.type||"stream"===e.type)&&e.date;return(0,a.jsxs)(u(),{href:l,className:"flex items-center justify-between gap-3 px-4 py-2.5 hover:bg-gray-50",onClick:()=>n(!1),children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[r&&(0,a.jsx)(r,{className:"size-4 shrink-0 text-gray-400",strokeWidth:1.5}),(0,a.jsx)("span",{className:"truncate text-sm text-gray-900",children:e.title})]}),i&&(0,a.jsx)("span",{className:"shrink-0 text-xs tabular-nums text-gray-400",children:new Date(e.date).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})})]},e.objectID)})]},e)})})}function L(e){let{hackathons:t,loadingHackathons:s,setOpen:r}=e,{query:n,refine:l}=(0,c.V)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"px-3 pb-2 pt-3",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border border-gray-300 bg-white px-3 shadow-sm",children:[(0,a.jsx)(N.A,{className:"size-4 shrink-0 text-gray-400",strokeWidth:1.5,"aria-hidden":"true"}
2),(0,a.jsx)("input",{autoFocus:!0,type:"text",value:n,onChange:e=>l(e.target.value),placeholder:"Search hackathons, tutorials, projects, peopleâ¦","aria-label":"Search",className:"flex-1 border-none bg-transparent py-2 text-sm text-gray-900 outline-none ring-0 placeholder:text-gray-400 focus:border-none focus:outline-none focus:ring-0"})]})}),(0,a.jsx)(E,{}),(0,a.jsx)("div",{className:"max-h-[28rem] overflow-auto",children:(0,a.jsx)(B,{refine:l,hackathons:t,loadingHackathons:s,setOpen:r})})]})}let O=e=>{let{open:t,setOpen:s}=e,[n,l]=(0,r.useState)([]),[i,c]=(0,r.useState)(!0);(0,r.useEffect)(()=>{let e=!0;return(0,m.y6)({numberOfEvents:5}).then(t=>{e&&l(Array.isArray(t)?[...t].reverse():[])}).catch(()=>{e&&l([])}).finally(()=>{e&&c(!1)}),()=>{e=!1}},[]);let h=(0,r.useMemo)(()=>{let e=new w.A({server:{apiKey:A._.NEXT_PUBLIC_TYPESENSE_SEARCH_KEY,nodes:[{host:A._.NEXT_PUBLIC_TYPESENSE_HOST,port:443,protocol:"https"}],cacheSearchResultsForSeconds:120},additionalSearchParameters:{query_by:"title,excerpt,techList",query_by_weights:"3,2,1",num_typos:2,sort_by:"_text_match:desc"}}).searchClient;return{...e,search:t=>t.every(e=>{let{params:t}=e;return!t.query})?Promise.resolve({results:t.map(()=>({hits:[],nbHits:0,nbPages:0,page:0,processingTimeMS:0,hitsPerPage:0,exhaustiveNbHits:!1,query:"",params:""}))}):e.search(t)}},[]);return(0,a.jsx)(k.a,{open:t,setOpen:s,children:(0,a.jsxs)(o.G,{searchClient:h,indexName:A._.NEXT_PUBLIC_TYPESENSE_COLLECTION,children:[(0,a.jsx)(d.Z,{analytics:!1,hitsPerPage:20}),(0,a.jsx)(L,{hackathons:n,loadingHackathons:i,setOpen:s})]})})}},92982:()=>{}}]); 3//# chunkId=912ae775-ee4b-5fa7-8afd-0f7e4b572398
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.