PageSourceSearch

https://www.ulatus.com/_next/static/chunks/3l926qeyzjvqz.js

js ulatus.com collected 2026-09-24 21:42:08 UTC 6,978 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,861153,e=>{"use strict";let t=(0,e.i(685158).default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);e.s(["Home",0,t],861153)},253875,e=>{"use strict";let t=(0,e.i(685158).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],253875)},669287,e=>{"use strict";let t=(0,e.i(685158).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],669287)},519222,e=>{"use strict";var t=e.i(691541),s=e.i(40701),a=e.i(245434),l=e.i(509681),r=e.i(253875),n=e.i(669287),i=e.i(861153),o=e.i(710668);let d=["January","February","March","April","May","June","July","August","September","October","November","December"],c=["2025","2024","2023","2022","2021","2020","2019","2018","2017","2016","2015","2014"];e.s(["default",0,({initialData:e,initialPage:x,initialYear:m})=>{let h=(0,l.useSearchParams)(),u=(0,l.useRouter)(),p=parseInt(h.get("page")||"1"),b=h.get("year")||"allnews",g=!!e&&p===(x??1)&&b===(m??"allnews"),[v,j]=(0,s.useState)(g?e.data:[]),[f,w]=(0,s.useState)(g?e.totalPages:1),[N,y]=(0,s.useState)(!g),[S,C]=(0,s.useState)(""),k=(0,s.useRef)(g),R=(0,s.useCallback)(async()=>{y(!0),C("");try{let e=new URLSearchParams({page:String(p)});b&&"allnews"!==b&&e.set("year",b);let t=await fetch(`/api/news?${e}`);if(!t.ok)throw Error("Failed to load news");let s=await t.json();j(s.data),w(s.totalPages)}catch{C("Unable to load news. Please try again later.")}finally{y(!1)}},[p,b]);(0,s.useEffect)(()=>{if(k.current){k.current=!1;return}R()},[R]);let P=e=>{let t=new URLSearchParams(h);t.set("page",String(e)),u.push("?"+t.toString()),window.scrollTo(0,0)};return(0,t.jsxs)("div",{className:"pt-20",children:[(0,t.jsx)("div",{className:"bg-slate-50 border-b border-slate-100 py-2",children:(0,t.jsxs)("div",{className:"container mx-auto px-6 max-w-7xl flex items-center gap-2 text-xs md:text-sm text-slate-600",children:[(0,t.jsx)(i.Home,{size:14,className:"text-slate-400"}),(0,t.jsx)(a.default,{href:"/",className:"font-medium text-slate-900 hover:text-brand-600 transition-colors",children:"Ulatus"}),(0,t.jsx)(r.ChevronRight,{size:14}),(0,t.jsx)("span",{className:"text-slate-400",children:"News"})]})}),(0,t.jsxs)("div",{className:"relative py-20 lg:py-20 overflow-hidden bg-slate-900",children:[(0,t.jsxs)("div",{className:"absolute inset-0",children:[(0,t.jsx)("img",{src:"https://www.crimsoni.com/assets/imgs/common/english-editing.jpg",alt:"Ulatus News",className:"absolute inset-0 w-full h-full object-cover opacity-80"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-slate-950 via-slate-950/60 to-transparent"})]}),(0,t.jsx)("div",{className:"container mx-auto px-6 max-w-7xl relative z-10",children:(0,t.jsxs)("div",{className:"max-w-3xl",children:[(0,t.jsx)("h1",{className:"text-3xl md:text-5xl lg:text-7xl font-bold text-white mb-6 leading-tight tracking-tight",children:"News"}),(0,t.jsx)("p",{className:"text-base md:text-xl text-slate-200 mb-6 md:mb-10 leading-relaxed max-w-xl",children:"There have been many milestones in Ulatus's journey so far and every passing day adds something new. Stay updated with the latest happenings at Ulatus."})]})})]}),(0,t.jsx)("section",{className:"py-12 min-h-[60vh]",children:(0,t.jsxs)("div",{className:"container mx-auto px-6 max-w-5xl",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-8",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-700",children:"Select Year:"}),(0,t.jsxs)("select",{value:b,onChange:e=>{var t;return t=e.target.value,void(u.push("?year="+t+"&page=1"),window.scrollTo(0,0))},className:"border border-slate-300 rounded px-4 py-2 text-sm text-slate-700 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:border-brand-500 cursor-pointer",children:[(0,t.jsx)("option",{value:"allnews",className:"cursor-pointer",children:"All"}),c.map(e=>(0,t.jsx)("option",{value:e,className:"cursor-pointer",children:e},e))]})]}),N?(0,t.jsx)("div",{className:"space-y-6",children:[void 0,void 0,void 0,void 0,void 0].map((e,s)=>(0,t.jsxs)("div",{className:"border-b border-slate-200 pb-6 animate-pulse",children:[(0,t.jsx)("div",{className:"h-5 bg-slate-200 rounded w-3/4 mb-2"}),(0,t.jsx)("div",{className:"h-3 bg-slate-100 rounded w-24 mb-3"}),(0,t.jsx)("div",{className:"h-3 bg-slate-100 rounded w-full mb-1"}),(0,t.jsx)("div",{className:"h-3 bg-slate-100 rounded w-5/6"})]},s))}):S?(0,t.jsx)("p",{className:"text-red-500 text-sm",children:S}):0===v.length?(0,t.jsx)("p",{className:"text-slate-600",children:"No news found for the selected filter."}):(0,t.jsx)("div",{className:"space-y-0",children:v.map(e=>{var s;let l,r,n;return(0,t.jsxs)(a.default,{href:`/news/${e.url}`,className:"block border-b border-slate-200 py-6 hover:bg-slate-50 transition-colors group px-2 -mx-2 rounded",children:[(0,t.jsx)("h2",{className:"text-3xl md:text-5xl font-bold text-slate-900 tracking-tight group-hover:text-brand-600 transition-colors mb-4",children:e.headline}),(0,t.jsx)("div",{className:"text-xs text-slate-400 mb-2",children:(r=d[parseInt((l=e.date.split("-"))[1])-1]||"",`${r} ${l[0]}`)}),(0,t.jsxs)("p",{className:"text-lg text-slate-600 leading-relaxed line-clamp-3",children:[(s=e.content,(n=document.createElement("div")).innerHTML=s,n.textContent||n.innerText||"").substring(0,300),"…"]}),(0,t.jsxs)("span",{className:"mt-3 flex items-center gap-1.5 text-brand-600 font-bold text-sm group-hover:gap-3 transition-all",children:["Read More ",(0,t.jsx)(o.ArrowRight,{size:14})]})]},e.id)})}),!N&&!S&&(()=>{if(f<=1)return null;let e=[];for(let t=1;t<=f;t++)1===t||t===f||2>=Math.abs(t-p)?e.push(t):"..."!==e[e.length-1]&&e.push("...");return(0,t.jsxs)("div",{className:"flex items-center justify-center gap-1 mt-10 flex-wrap",children:[(0,t.jsxs)("button",{onClick:()=>P(p-1),disabled:1===p,className:"px-3 py-2 border border-slate-300 text-sm text-slate-600 rounded-l-md hover:bg-slate-100 disabled:opacity-40 disabled:cursor-not-allowed flex items-center gap-1 cursor-pointer",children:[(0,t.jsx)(n.ChevronLeft,{size:14})," Prev"]}),e.map((e,s)=>"..."===e?(0,t.jsx)("span",{className:"px-3 py-2 border border-slate-300 text-sm text-slate-400",children:"…"},`e${s}`):(0,t.jsx)("button",{onClick:()=>P(e),className:`px-3 py-2 border text-sm ${e===p?"bg-slate-800 text-white border-slate-800":"border-slate-300 text-slate-600 hover:bg-slate-100"} cursor-pointer`,children:e},e)),(0,t.jsxs)("button",{onClick:()=>P(p+1),disabled:p===f,className:"px-3 py-2 border border-slate-300 text-sm text-slate-600 rounded-r-md hover:bg-slate-100 disabled:opacity-40 disabled:cursor-not-allowed flex items-center gap-1 cursor-pointer",children:["Next ",(0,t.jsx)(r.ChevronRight,{size:14})]})]})})()]})})]})}])}]);

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.