PageSourceSearch

https://mnchost.com/assets/LatestArticlesPage-D9KBfWV7.js

js mnchost.com collected 2026-10-03 02:37:58 UTC 3,742 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-ui-DyWmBLFh.js";import{h as o,r as l}from"./vendor-react-BgCmZe45.js";import{a as g}from"./vendor-utils-42ANG6Sg.js";const h=()=>e.jsx("section",{className:"w-full tracking-wide animate-pulse",children:e.jsxs("div",{className:"mx-auto px-6 lg:px-16 py-12",children:[e.jsxs("div",{className:"flex gap-3 mb-5",children:[e.jsx("div",{className:"h-4 w-20 bg-gray-200 rounded"}),e.jsx("div",{className:"h-4 w-4 bg-gray-200 rounded-full"}),e.jsx("div",{className:"h-4 w-28 bg-gray-200 rounded"})]}),e.jsx("div",{className:"h-10 w-3/4 bg-gray-200 rounded mb-8"}),e.jsx("div",{className:"w-full h-80 bg-gray-200 rounded-2xl mb-10"}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"h-5 w-full bg-gray-200 rounded"}),e.jsx("div",{className:"h-5 w-11/12 bg-gray-200 rounded"}),e.jsx("div",{className:"h-5 w-10/12 bg-gray-200 rounded"}),e.jsx("div",{className:"h-8 w-1/2 bg-gray-200 rounded mt-6"}),e.jsx("div",{className:"h-5 w-full bg-gray-200 rounded"}),e.jsx("div",{className:"h-5 w-11/12 bg-gray-200 rounded"}),e.jsx("div",{className:"h-5 w-10/12 bg-gray-200 rounded"})]}),e.jsxs("div",{className:"mt-12 bg-gray-100 rounded-2xl p-6 flex gap-6",children:[e.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-full"}),e.jsxs("div",{className:"flex-1 space-y-3",children:[e.jsx("div",{className:"h-3 w-32 bg-gray-200 rounded"}),e.jsx("div",{className:"h-5 w-48 bg-gray-200 rounded"}),e.jsx("div",{className:"h-4 w-full bg-gray-200 rounded"}),e.jsx("div",{className:"h-4 w-5/6 bg-gray-200 rounded"})]})]})]})}),f=()=>{const{id:r}=o(),[s,i]=l.useState(null),[c,d]=l.useState(!0),n=async()=>{try{d(!0);const a=await g.get(`https://backend.mnchost.com/articles/${r}`);i(a.data.article),document.title=`${a.data.article.title} | Latest Articles | MNC HOST`}catch(a){console.error("Failed to load article",a)}finally{d(!1)}};return l.useEffect(()=>{n()},[r]),c?e.jsx(h,{}):s?e.jsx("section",{className:"w-full text-[#111111] tracking-wide",children:e.jsxs("div",{className:"mx-auto px-6 lg:px-16 py-12",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm lg:text-lg text-[#666666] mb-5 font-medium",children:[e.jsx("span",{children:new Date(s.publishedDate).toLocaleDateString("en-IN",{day:"2-digit",month:"short"})}),e.jsx("span",{children:"•"}),e.jsx("span",{children:s.category})]}),e.jsx("h1",{className:"text-3xl sm:text-4xl lg:text-[42px] font-extrabold leading-tight text-[#1570c9] mb-8",children:s.title}),e.jsx("div",{className:"w-full overflow-hidden rounded-2xl mb-10",children:e.jsx("img",{loading:"lazy",src:s.image,alt:s.title,className:"w-full h-auto object-cover"})}),e.jsx("div",{className:"space-y-6 text-lg lg:text-xl",children:s.content.map((a,t)=>a.type==="heading"?e.jsx("h2",{className:"text-2xl lg:text-[32px] font-bold leading-tight text-[#1570c9]",children:a.text},t):a.type==="paragraph"?e.jsx("p",{className:"leading-relaxed",children:a.text},t):a.type==="list"?e.jsx("ul",{className:"list-disc pl-6 space-y-3 text-[#111111]",children:a.items.map((x,m)=>e.jsx("li",{children:x},m))},t):null)}),s.author?.name&&e.jsxs("div",{className:"mt-12 bg-[#f8f8f8] rounded-2xl p-6 sm:p-8 flex flex-col sm:flex-row gap-6",children:[s.author.image&&e.jsx("img",{loading:"lazy",src:s.author.image,alt:s.author.name,className:"w-16 h-16 rounded-full object-cover"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold tracking-widest text-[#666666] mb-1",children:"THE AUTHOR"}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:s.author.name}),e.jsx("p",{className:"text-sm lg:text-lg text-[#666666]",children:s.author.bio})]})]})]})}):e.jsx("p",{className:"text-center py-20 text-gray-500",children:"Article not found"})};export{f as default};

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.