PageSourceSearch

https://neetsupport.com/_next/static/chunks/pages/universities/slug-body-ca350b84ef53055c.js

js neetsupport.com collected 2026-09-30 20:33:56 UTC 4,614 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7303],{892:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/universities/slug-body",function(){return l(18332)}])},18332:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>d});var s=l(37876),a=l(14232),r=l(49870),n=l.n(r);function d(e){let{content:t}=e,[l,r]=(0,a.useState)([]),[d,i]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e;if(!t)return;let l=[],s=/<(h[23]) id=\"([^\"]+)\">([\s\S]*?)<\/h[23]>/g,a=e=>e.replace(/<[^>]+>/g,"").replace(/&nbsp;|&#160;/gi," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").trim();for(;null!==(e=s.exec(t));){let t=e[1],s=e[2],r=a(e[3]);"h2"===t?l.push({id:s,text:r,children:[]}):"h3"===t&&(0===l.length?l.push({id:"section-".concat(s),text:"More",children:[{id:s,text:r}]}):l[l.length-1].children.push({id:s,text:r}))}r(l)},[t]);let o=e=>{let t=document.getElementById(e);if(!t)return;let l=t.getBoundingClientRect().top+window.pageYOffset+-100;window.scrollTo({top:l,behavior:"smooth"})},h=d?l:l.slice(0,5),c=l.some(e=>e.children&&e.children.length>0);return(0,s.jsx)("div",{className:"w-full px-4 sm:px-6 md:px-8 lg:px-10 bg-gray-50",children:(0,s.jsxs)("div",{className:"mx-auto w-full    px-5 py-7  sm:px-8 sm:py-10 lg:px-10 lg:py-12",children:[l.length>0&&(0,s.jsx)("div",{className:"w-full mb-6",children:(0,s.jsxs)("div",{className:"bg-white rounded-lg border border-gray-200 p-4 shadow-md max-w-full",children:[(0,s.jsx)("div",{className:"flex items-start justify-between mb-3",children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 bg-[#fff4ef] rounded-md",children:(0,s.jsxs)("svg",{width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{x:"0",y:"1",width:"18",height:"2",rx:"1",fill:"#ff9245"}),(0,s.jsx)("rect",{x:"0",y:"6",width:"18",height:"2",rx:"1",fill:"#ff9245"}),(0,s.jsx)("rect",{x:"0",y:"11",width:"18",height:"2",rx:"1",fill:"#ff9245"})]})}),(0,s.jsx)("h3",{className:"text-sm font-bold text-[#ff9245] uppercase",children:"Table of Contents"})]})}),(0,s.jsx)("ul",{className:"space-y-2",children:h.map((e,t)=>(0,s.jsxs)("li",{className:"",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("div",{className:"text-sm text-gray-500 font-bold w-6 text-right",children:l.indexOf(e)+1}),(0,s.jsx)("button",{onClick:()=>o(e.id),className:"text-sm text-left text-[#222] hover:text-[#FF914D]",children:e.text})]}),d&&e.children&&e.children.length>0&&(0,s.jsx)("ul",{className:"mt-2 ml-8 space-y-2",children:e.children.map((t,a)=>(0,s.jsxs)("li",{className:"flex items-start gap-3",children:[(0,s.jsx)("div",{className:"text-sm text-gray-500 font-bold w-10 text-right",children:"".concat(l.indexOf(e)+1,".").concat(a+1)}),(0,s.jsx)("button",{onClick:()=>o(t.id),className:"text-sm text-left text-[#222] hover:text-[#FF914D]",children:t.text})]},t.id))})]},e.id))}),(0,s.jsx)("div",{className:"text-center mt-4",children:(c||l.length>5)&&(0,s.jsx)("button",{onClick:()=>i(e=>!e),className:"text-sm font-semibold text-[#FF914D]",children:d?"See less ↑":"See more sections ↓"})})]})}),(0,s.jsx)("div",{className:"".concat(n().markdown," max-w-none text-[16px] leading-8 text-slate-700 [&_a]:font-semibold [&_a]:text-[#FF914D] [&_a]:underline-offset-4 hover:[&_a]:underline [&_h1]:text-3xl [&_h1]:font-black [&_h1]:text-slate-950 [&_h1]:mt-8 [&_h1]:mb-5 [&_h2]:text-[22px] [&_h2]:font-black [&_h2]:text-[#1a2b5f] [&_h2]:leading-tight [&_h2]:mt-8 [&_h2]:mb-4 [&_h2]:border-b [&_h2]:border-slate-200 [&_h2]:pb-2 [&_h3]:text-lg [&_h3]:font-extrabold [&_h3]:text-slate-900 [&_h3]:mt-7 [&_h3]:mb-3 [&_h4]:text-base [&_h4]:font-bold [&_h4]:text-slate-900 [&_p]:mb-5 [&_ul]:mb-6 [&_ul]:pl-6 [&_ul]:space-y-2 [&_ol]:mb-6 [&_ol]:pl-6 [&_ol]:space-y-2 [&_li]:leading-7 [&_img]:my-8 [&_img]:w-full [&_img]:rounded-3xl [&_img]:shadow-lg [&_blockquote]:my-8 [&_blockquote]:rounded-2xl [&_blockquote]:border-l-4 [&_blockquote]:border-[#FF914D] [&_blockquote]:bg-[#fff8f2] [&_blockquote]:px-6 [&_blockquote]:py-5 [&_table]:my-8 [&_table]:w-full [&_table]:border-collapse [&_table]:text-sm [&_th]:border [&_th]:border-slate-200 [&_th]:bg-[#fff1e5] [&_th]:px-4 [&_th]:py-3 [&_th]:text-left [&_th]:font-extrabold [&_td]:border [&_td]:border-slate-200 [&_td]:px-4 [&_td]:py-3"),dangerouslySetInnerHTML:{__html:t}})]})})}},49870:e=>{e.exports={markdown:"markdown-styles_markdown__HwUWZ"}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(892)),_N_E=e.O()}]);
2//# sourceMappingURL=slug-body-ca350b84ef53055c.js.map

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.