1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5356],{54137:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/about/achievements-and-awards/category/[type]",function(){return n(66196)}])},16771:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var l=n(85893),s=n(25675),i=n.n(s),a=n(41664),r=n.n(a),c=n(72761);let d=["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"];function o(e){let{event:t,url:n,showDate:s}=e,a=new Date(t.date);return void 0===s&&(s=!0),(!t.date||isNaN(a.getTime()))&&(s=!1),(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"flex flex-col flex-wrap w-full bg-slate-200 rounded-2xl max-md:mb-5 overflow-clip",children:[(0,l.jsx)("div",{className:"relative overflow-clip",children:(0,l.jsxs)(r(),{href:n||"/events/event/".concat(t.slug),children:[(0,l.jsx)(i(),{src:(0,c.i)(t.featured_image),width:500,height:100,alt:"slide_iamge",className:"hover:scale-110 transition-all duration-300 object-cover w-full h-56"}),s&&(0,l.jsxs)("div",{className:" bg-iet-blue-400 text-iet-blue-50 px-4 py-2 w-18 absolute top-2 right-2 rounded-tr-xl",children:[(0,l.jsx)("span",{className:" text-3xl",children:a.getDate()}),(0,l.jsx)("span",{className:" align-super",children:function(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(a.getDate())}),(0,l.jsx)("br",{}),(0,l.jsx)("span",{className:" text-2xl",children:d[a.getMonth()]})]}),t.uni_logo&&(0,l.jsx)("div",{className:"absolute top-[-80px] left-[-80px] bg-gray-100 rotate-45 w-40 h-40 pe-1 flex items-center justify-end opacity-85",children:(0,l.jsx)(i(),{src:(0,c.i)(t.uni_logo),width:50,height:50,alt:"slide_iamge",className:"object-contain w-16 h-12 -rotate-45"})}),(0,l.jsx)("div",{className:" bg-iet-dark-blue-950 text-white text-2xl px-4 py-3 w-full absolute bottom-0 bg-opacity-90 max-[320px]:top-24",children:(0,l.jsx)("h2",{title:t.title,className:"line-clamp-2",children:t.title})})]})}),(0,l.jsx)("p",{className:" text-sm font-light text-justify px-4 py-6 line-clamp-4 text-ellipsis",children:t.short_description}),(0,l.jsx)(r(),{href:n||"/events/event/".concat(t.slug),className:"mt-auto",children:(0,l.jsx)("button",{className:"text-white hover:text-iet-dark py-2 px-4 mx-4 mt-8 mb-4 bg-iet-primary rounded-md transition duration-150",children:"Read More"})})]})})}},97461:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var l=n(85893);function s(e){let{title:t,description:n}=e;return(0,l.jsx)("section",{className:"page-title",children:(0,l.jsxs)("div",{className:"content-width-wrapper flex flex-col gap-8 items-center justify-center min-h-32 py-12",children:[(0,l.jsx)("h1",{className:"text-4xl font-bold text-center",dangerouslySetInnerHTML:{__html:t}}),n&&(0,l.jsx)("p",{className:"text-lg text-center font-light",children:n})]})})}},92492:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var l=n(85893);function s(){return(0,l.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,l.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-b-2 border-gray-900"})})}},66196:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return d},default:function(){return o}});var l=n(85893),s=n(16771),i=n(97461),a=n(92492),r=n(11163),c=n(67294),d=!0;function o(e){let{page:t,awards:n,type:d}=e,[o,u]=(0,c.useState)(null),[x,h]=(0,c.useState)(!!n&&n.length>=12),[m,p]=(0,c.useState)(!1),f=(0,r.useRouter)();(0,c.useEffect)(()=>{u(n||null)},[n]);let g=(0,c.useCallback)(()=>{if(m)return;p(!0);let e=(null==o?void 0:o.length)||0;fetch("/api/awards?type="+d+"&start="+e+"&end="+(e+12-1)).then(e=>e.json()).then(e=>{e.length<12&&h(!1),e.length>0&&(null!==o&&o.length>0?u([...o,...e]):u(e))}).catch(e=>{console.error(e),h(!1)}).finally(()=>{p(!1)})},[m,o]);if(f.isFallback||!o)return(0,l.jsx)(a.Z,{});let b=(null==t?void 0:t.title)?t.title:"Awards & Achievements",j=(null==t?void 0:t.description)?t.description:"";return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{title:b,description:j}),o&&o.length>0&&(0,l.jsxs)("section",{className:" content-width-wrapper py-12 pb-24",children:[(0,l.jsxs)("div",{className:"grid gap-6 grid-cols-1 md:grid-cols-2 lg:grid-cols-3",children:[(0,l.jsx)("div",{className:"mb-8 text-3xl font-bold w-full md:bg-iet-dark-blue-950 lg:p-5 lg:h-56 p-3 rounded-xl md:mb-5 hidden",children:(0,l.jsx)("h2",{className:"md:text-iet-blue-400 max-lg:text-center",children:"All Events"})}),null==o?void 0:o.map(e=>(0,l.jsx)(s.Z,{event:e,url:"/about/achievements-and-awards/".concat(e.slug),showDate:!1},e.slug))]}),(0,l.jsx)("div",{className:"flex justify-center mt-8",children:x&&(m?(0,l.jsx)("button",{className:"bg-iet-blue-400 text-white px-8 py-2 rounded-lg",disabled:!0,children:"Loading..."}):(0,l.jsx)("button",{className:"bg-iet-blue-400 text-white px-8 py-2 rounded-lg",onClick:g,children:"Load More"}))})]}),n&&0===n.length&&(0,l.jsx)("section",{className:"content-width-wrapper pt-12 pb-24",children:(0,l.jsxs)("h2",{className:"text-3xl font-bold text-gray-300",children:["No ","Awards"==b?"Awards":"Achievements"," Found"]})})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=54137)}),_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.