PageSourceSearch

https://uolrk.edu.pk/static/js/489.1309c956.chunk.js

js uolrk.edu.pk collected 2026-10-02 23:05:04 UTC 5,347 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkuol=self.webpackChunkuol||[]).push([[489],{6702(e,t,s){s(9809);var a=s(2222),l=s.n(a),r=s(8279),i=s(6664),n=s(2178),c=s(3413);const o=[{match:/tender|bid/i,label:"Tender",icon:r.vq0,badge:"bg-secondary-50 text-secondary-700",bar:"bg-secondary-500"},{match:/result/i,label:"Result",icon:r.lMP,badge:"bg-primary-50 text-primary-700",bar:"bg-primary-700"}],d={label:"Notice",icon:r.IoH,badge:"bg-accent-50 text-accent-700",bar:"bg-accent-500"},m=e=>{let t=e.update;const s=t.EVENT_DATE,a=t.EVENT_TITLE,m=t.EVENT_DESC,x=t.EVENT_IMG,b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return o.find(t=>t.match.test(e))||d}(a),p=b.icon;return(0,c.jsxs)(i.A,{className:"flex h-full flex-col p-0",children:[(0,c.jsx)("div",{className:"h-1 w-full ".concat(b.bar)}),(0,c.jsxs)("div",{className:"flex flex-1 flex-col p-4 sm:p-5",children:[(0,c.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-2",children:[(0,c.jsxs)("span",{className:"inline-flex flex-shrink-0 items-center gap-1.5 rounded-sm px-2.5 py-1 text-[11px] font-semibold uppercase tracking-wide ".concat(b.badge),children:[(0,c.jsx)(p,{className:"h-3.5 w-3.5 flex-shrink-0"}),b.label]}),(0,c.jsx)("span",{className:"flex-shrink-0 text-[11px] font-medium uppercase tracking-wide text-stone-400",children:l()(s).format("DD MMM YYYY")})]}),(0,c.jsx)("p",{className:"mb-1.5 line-clamp-1 text-sm font-semibold leading-snug text-primary-900",children:a}),(0,c.jsx)("p",{className:"mb-4 line-clamp-3 flex-grow text-sm leading-relaxed text-stone-600",children:m||"No description available."}),x&&(0,c.jsxs)(n.A,{as:"a",variant:"outline",href:x,target:"_blank",rel:"noreferrer",className:"self-start px-3 py-1.5 text-[11px]",children:[(0,c.jsx)(r.Dho,{className:"h-4 w-4"}),"Download"]})]})]})};s.d(t,["A",0,m])},2178(e,t,s){var a=s(1309),l=s(9644),r=(s(9809),s(3413));const i=["as","variant","block","className","children"],n={primary:"bg-primary text-stone-50 hover:bg-primary-700 focus-visible:outline-primary",secondary:"bg-secondary text-stone-50 hover:bg-secondary-700 focus-visible:outline-secondary",accent:"bg-accent text-primary-900 hover:bg-accent-600 focus-visible:outline-accent-700",outline:"border border-primary text-primary hover:bg-primary hover:text-white focus-visible:outline-primary",outlineLight:"border border-stone-50/50 text-stone-50 hover:border-stone-50 hover:bg-stone-50/10 focus-visible:outline-stone-50",ghost:"bg-white/10 text-white hover:bg-white/20 focus-visible:outline-white"},c=e=>{let t=e.as,s=void 0===t?"button":t,c=e.variant,o=void 0===c?"primary":c,d=e.block,m=void 0!==d&&d,x=e.className,b=void 0===x?"":x,p=e.children,u=(0,l.A)(e,i);return(0,r.jsx)(s,(0,a.A)((0,a.A)({className:"inline-flex cursor-pointer items-center justify-center gap-2 rounded-sm px-6 py-3 text-xs font-semibold uppercase tracking-wider transition-all duration-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ".concat(m?"w-full":""," ").concat(n[o]||n.primary," ").concat(b)},u),{},{children:p}))};s.d(t,["A",0,c])},6664(e,t,s){var a=s(1309),l=s(9644),r=(s(9809),s(3413));const i=["className","hoverable","children"],n=e=>{let t=e.className,s=void 0===t?"":t,n=e.hoverable,c=void 0===n||n,o=e.children,d=(0,l.A)(e,i);return(0,r.jsx)("div",(0,a.A)((0,a.A)({className:"overflow-hidden rounded-sm bg-white shadow-sm ring-1 ring-stone-200 transition-all duration-300 ".concat(c?"hover:-translate-y-1 hover:shadow-xl hover:ring-accent-200":""," ").concat(s)},d),{},{children:o}))};s.d(t,["A",0,n])},7489(e,t,s){s.r(t);var a=s(9698),l=s(9809),r=s(943),i=s(297),n=s(4118),c=s(6702),o=s(686),d=s(5219),m=s(3413);const x=function(){const e=(0,o.g)(),t=(0,l.useState)([]),s=(0,a.A)(t,2),x=s[0],b=s[1],p=(0,l.useState)(!0),u=(0,a.A)(p,2),h=u[0],g=u[1];return(0,l.useEffect)(()=>{let t=!0;return e.getAllUpdates().then(e=>{t&&b(e||[])}).catch(()=>{}).finally(()=>{t&&g(!1)}),()=>{t=!1}},[e]),(0,m.jsxs)("div",{children:[(0,m.jsx)(r.A,{}),(0,m.jsxs)("div",{className:"relative w-full overflow-hidden text-center",children:[(0,m.jsx)("img",{src:"/images/campus-life/smart-classroom.jpg",alt:"",loading:"lazy",className:"h-[140px] w-full object-cover sm:h-[180px] md:h-[230px]"}),(0,m.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-primary-900/95 via-primary-900/60 to-secondary-900/50"}),(0,m.jsx)(n.A,{level:3,className:"absolute left-1/2 top-1/2 m-0 -translate-x-1/2 -translate-y-1/2 uppercase text-stone-50",children:"Updates"})]}),(0,m.jsxs)("div",{className:"mx-auto mb-12 mt-10 max-w-6xl px-4 sm:mb-20 sm:mt-16",children:[(0,m.jsx)("p",{className:"mb-2 text-center text-xs font-semibold uppercase tracking-wider2 text-accent-600",children:"Announcements"}),(0,m.jsx)(n.A,{level:3,className:"mb-3 text-center text-primary-900",children:"All Updates"}),(0,m.jsx)("div",{className:"mx-auto mb-10 h-px w-16 bg-accent-500 sm:mb-14"}),(0,m.jsx)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6 lg:grid-cols-4",children:h?(0,m.jsx)(d.A,{count:8}):0===x.length?(0,m.jsx)("p",{className:"col-span-full text-center text-stone-500",children:"No updates available at the moment."}):x.map((e,t)=>(0,m.jsx)(c.A,{update:e},t))})]}),(0,m.jsx)(i.A,{})]})};s.d(t,["default",0,x])}}]);
2//# sourceMappingURL=489.1309c956.chunk.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.