1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2324],{11456:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(92068).A)("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]])},13235:(e,t,a)=>{"use strict";a.d(t,{NewsPortalLive:()=>V});var r=a(54568),l=a(7620),s=a(19664),i=a.n(s),n=a(32536),c=a(87551),d=a(92068);let o=(0,d.A)("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);var p=a(70419),x=a(75892),h=a(71946),m=a(32064);let g=(0,d.A)("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),u=[{slug:"pvpa-congratulates-dr-obaidullah-drap-sitara-e-imtiaz-2026",title:"PVPA Congratulates Dr Obaidullah, CEO DRAP, on Sitara-e-Imtiaz",excerpt:"On behalf of PVPA leadership and Executive Members â a proud moment for Animal Health and Public Health in Pakistan.",publishedAt:"2026-08-15",posterSrc:"/images/drap/dr-obaidullah-sitara-e-imtiaz-poster.png",posterAlt:"PVPA congratulations poster â Dr Obaidullah, CEO DRAP, conferred Sitara-e-Imtiaz. United for Animal Health ⢠Committed to Public Health.",featured:!0},{slug:"chairman-pvpa-drap-38th-khuli-kachehri-july-2026",title:"Chairman PVPA at DRAP's 38th Khuli Kachehri",excerpt:"Dr Asim Mahmood Khan featured in live coverage of DRAP's 38th Khuli Kachehri â 29 July 2026.",publishedAt:"2026-07-29"},{slug:"pvpa-request-drap-psw-gateway-training-2026",title:"PVPA Requests DRAPâPSW Gateway Training",excerpt:"Stakeholder awareness session requested for veterinary nutraceuticals, feed supplements, and animal health products.",publishedAt:"2026-07-28"},{slug:"pvpa-question-drap-hotc-fee-challan-nutraceuticals-2026",title:"PVPA Query â HOTC Fee Challan for Veterinary Nutraceuticals",excerpt:"Regulatory query on registration pathways for non-therapeutic veterinary products under DRAP HOTC.",publishedAt:"2026-07-27"}],f={portals:"Online Portals",tools:"Industry Tools",reporting:"Reporting & Facilitation",resources:"Forms, Guidelines & Resources"},b={portals:c.A,tools:o,reporting:p.A,resources:x.A};function y(e){return new Date(e).toLocaleDateString("en-PK",{day:"numeric",month:"short",year:"numeric"})}function v(e){var t;let{feed:a}=e,[s,d]=(0,l.useState)("all"),o=u.find(e=>e.featured),p=u.filter(e=>!e.featured),x=(0,l.useMemo)(()=>{let e={portals:[],tools:[],reporting:[],resources:[]};for(let t of a.eservices)e[t.group].push(t);return e},[a.eservices]),v=(0,l.useMemo)(()=>"all"===s?a.regulatoryNews:a.regulatoryNews.filter(e=>e.categoryId===s),[a.regulatoryNews,s]);return(0,r.jsx)("section",{id:"drap-regulatory-hub",className:"mb-12 scroll-mt-24",children:(0,r.jsxs)("div",{className:"card p-6 md:p-8 border-l-4 border-l-pvpa-600 bg-gradient-to-br from-pvpa-50 to-white",children:[(0,r.jsxs)("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4 mb-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"section-eyebrow text-pvpa-700 mb-1",children:"Regulations & DRAP"}),(0,r.jsx)("h2",{className:"font-heading text-2xl font-bold text-pvpa-900",children:"Drug Regulatory Authority of Pakistan"}),(0,r.jsxs)("p",{className:"text-sm text-gray-600 mt-2 max-w-2xl",children:["Live regulatory updates, official e-services, application forms, and industry tools from"," ",(0,r.jsx)("a",{href:a.sourceUrl,target:"_blank",rel:"noopener noreferrer",className:"text-pvpa-700 font-semibold hover:underline",children:"dra.gov.pk"}),". Relevant for veterinary pharmaceutical manufacturers, importers, and distributors."]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-2 shrink-0",children:[(0,r.jsxs)("a",{href:a.sourceUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-pvpa-200 bg-white px-3 py-1.5 text-xs font-semibold text-pvpa-800 hover:border-pvpa-400",children:[(0,r.jsx)(c.A,{className:"h-3.5 w-3.5"}),"DRAP Website"]}),(0,r.jsxs)("a",{href:a.facebookUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg bg-[#1877F2] px-3 py-1.5 text-xs font-semibold text-white hover:opacity-90",children:[(0,r.jsx)(h.A,{className:"h-3.5 w-3.5"}),"Official Facebook"]})]})]}),(null==o?void 0:o.posterSrc)&&(0,r.jsxs)("div",{className:"mb-8 rounded-xl border border-pvpa-200 bg-white overflow-hidden shadow-sm",children:[(0,r.jsx)("div",{className:"bg-pvpa-800 text-white px-4 py-2.5",children:(0,r.jsx)("p",{className:"text-[11px] font-bold uppercase tracking-wider text-accent-gold-light",children:"PVPA & DRAP News"})}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-[minmax(0,11rem)_1fr] gap-0 md:gap-6 p-4 md:p-5",children:[(0,r.jsx)(i(),{href:"/news/".concat(o.slug),className:"relative mx-auto md:mx-0 w-full max-w-[11rem] aspect-[2/3] overflow-hidden rounded-lg border border-pvpa-100 bg-slate-50 shadow-sm hover:ring-2 hover:ring-pvpa-300 transition",children:(0,r.jsx)(n.default,{src:o.posterSrc,alt:null!=(t=o.posterAlt)?t:o.title,fill:!0,className:"object-contain object-top p-0.5",sizes:"(max-width: 768px) 40vw, 176px"})}),(0,r.jsxs)("div",{className:"flex flex-col min-w-0 pt-2 md:pt-0",children:[(0,r.jsxs)("p",{className:"text-[11px] font-semibold uppercase tracking-wider text-pvpa-700 mb-1",children:[y(o.publishedAt)," \xb7 PVPA Secretariat"]}),(0,r.jsx)("h3",{className:"font-heading text-lg font-bold text-pvpa-950 leading-snug mb-2",children:o.title}),(0,r.jsx)("p",{className:"text-sm text-gray-600 leading-relaxed mb-4 flex-1",children:o.excerpt}),(0,r.jsx)(i(),{href:"/news/".concat(o.slug),className:"btn-primary text-sm w-fit",children:"Read full message & view poster"})]})]})]}),p.length>0&&(0,r.jsxs)("div",{className:"mb-8",children:[(0,r.jsx)("h3",{className:"font-heading font-bold text-gray-900 mb-3 text-sm",children:"More PVPA & DRAP coverage"}),(0,r.jsx)("div",{className:"space-y-2",children:p.map(e=>(0,r.jsxs)(i(),{href:"/news/".concat(e.slug),className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-1 rounded-lg border border-gray-100 bg-white px-4 py-3 hover:border-pvpa-400 transition",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-gray-900 line-clamp-2",children:e.title}),(0,r.jsx)("span",{className:"text-xs text-gray-500 shrink-0",children:y(e.publishedAt)})]},e.slug))})]}),(0,r.jsxs)("p",{className:"text-xs text-gray-500 mb-6",children:["Last synced ",y(a.scrapedAt)," \xb7 ",a.regulatoryNews.length," regulatory updates indexed",a.usedFallback&&(0,r.jsxs)("span",{className:"text-amber-700",children:[" ","\xb7 Showing cached highlights â live sync temporarily unavailable"]})]}),Object.keys(x).map(e=>{let t=b[e],a=x[e];return 0===a.length?null:(0,r.jsxs)("div",{className:"mb-8",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,r.jsx)(t,{className:"h-4 w-4 text-pvpa-700"}),(0,r.jsx)("h3",{className:"font-heading font-bold text-gray-900",children:f[e]})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:a.map(e=>(0,r.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"group rounded-lg border border-gray-200 bg-white p-4 hover:border-pvpa-500 hover:shadow-sm transition",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,r.jsx)("p",{className:"text-sm font-semibold text-gray-900 group-hover:text-pvpa-800",children:e.name}),(0,r.jsx)(m.A,{className:"h-3.5 w-3.5 text-gray-400 shrink-0 mt-0.5"})]}),(0,r.jsx)("p",{className:"text-xs text-gray-600 mt-1.5 line-clamp-2",children:e.description})]},e.url))})]},e)}),(0,r.jsxs)("div",{className:"border-t border-gray-200 pt-8",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,r.jsx)(g,{className:"h-4 w-4 text-pvpa-700"}),(0,r.jsx)("h3",{className:"font-heading font-bold text-gray-900",children:"DRAP Regulatory Updates"})]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-2 mb-4",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>d("all"),className:"text-xs font-semibold px-3 py-1 rounded-full border transition ".concat("all"===s?"bg-pvpa-700 text-white border-pvpa-700":"bg-white text-gray-600 border-gray-200"),children:["All (",a.regulatoryNews.length,")"]}),a.categories.map(e=>{let t=a.regulatoryNews.filter(t=>t.categoryId===e.id).length;return 0===t?null:(0,r.jsxs)("button",{type:"button",onClick:()=>d(e.id),className:"text-xs font-semibold px-3 py-1 rounded-full border transition ".concat(s===e.id?"bg-pvpa-700 text-white border-pvpa-700":"bg-white text-gray-600 border-gray-200"),children:[e.label," (",t,")"]},e.id)})]}),(0,r.jsxs)("div",{className:"space-y-2 max-h-[28rem] overflow-y-auto pr-1",children:[v.map(e=>(0,r.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-1 rounded-lg border border-gray-100 bg-white px-4 py-3 hover:border-pvpa-400 transition",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-gray-900 line-clamp-2",children:e.title}),(0,r.jsxs)("p",{className:"text-xs text-gray-500 mt-0.5",children:[e.categoryLabel,e.pdfUrl&&(0,r.jsxs)(r.Fragment,{children:[" ","\xb7"," ",(0,r.jsx)("span",{className:"text-pvpa-700",children:"PDF available"})]})]})]}),(0,r.jsxs)("span",{className:"text-xs text-gray-500 shrink-0 flex items-center gap-1",children:[y(e.publishedAt),(0,r.jsx)(m.A,{className:"h-3 w-3"})]})]},e.url)),0===v.length&&(0,r.jsx)("p",{className:"text-sm text-gray-500 py-4",children:"No updates in this category right now. Check the official DRAP website."})]})]})]})})}var w=a(65202);let j=(0,d.A)("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);var N=a(11456),k=a(24643),A=a(78522),P=a(44558),C=a(80292),M=a(99784),_=a(36378);function D(e){let{article:t,className:a,children:l}=e;return t.externalUrl?(0,r.jsx)("a",{href:t.externalUrl,target:"_blank",rel:"noopener noreferrer",className:a,children:l}):(0,r.jsx)(i(),{href:"/news/".concat(t.slug),className:a,children:l})}function S(e){let{article:t}=e;return t.source?(0,r.jsxs)("span",{className:"inline-flex items-center gap-0.5 text-[10px] font-semibold uppercase tracking-wide text-pvpa-600",children:[t.source,t.externalUrl&&(0,r.jsx)(m.A,{className:"h-2.5 w-2.5"})]}):null}function L(e){var t,a,s;let{articles:n,trending:c,featured:d}=e,[o,p]=(0,l.useState)(""),[h,g]=(0,l.useState)(null),[u,f]=(0,l.useState)(null),b=(0,l.useMemo)(()=>[...new Set(n.flatMap(e=>{var t;return null!=(t=e.tags)?t:[]}))].slice(0,10),[n]),y=(0,l.useMemo)(()=>{let e={};for(let t of n){let a=(0,P.b)(t.category);e[a]=(e[a]||0)+1}return e},[n]),v=(0,l.useMemo)(()=>n.filter(e=>{var t,a;let r=!h||(0,P.b)(e.category)===h,l=!u||(null!=(t=e.tags)?t:[]).includes(u),s=o.trim().toLowerCase(),i=!s||e.title.toLowerCase().includes(s)||e.excerpt.toLowerCase().includes(s)||e.category.toLowerCase().includes(s)||(null!=(a=e.tags)?a:[]).some(e=>e.toLowerCase().includes(s));return r&&l&&i}),[n,h,u,o]),L=null!=(a=d[0])?a:v[0],R=d.slice(1,3),U=(0,C.fq)(v),z=n.filter(e=>e.isBreaking&&e.slug!==(null==U?void 0:U.slug)).slice(0,4);return(0,r.jsxs)("div",{id:"news-feed",className:"space-y-10 scroll-mt-24",children:[(0,r.jsxs)("div",{className:"card p-4 md:p-5 flex flex-col md:flex-row gap-3",children:[(0,r.jsxs)("div",{className:"relative flex-1",children:[(0,r.jsx)(w.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),(0,r.jsx)("input",{type:"search",placeholder:"Search poultry, livestock, DRAP, vaccines, tradeâ¦",value:o,onChange:e=>p(e.target.value),className:"w-full pl-10 pr-4 py-2.5 border border-gray-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-pvpa-500"})]}
1),(0,r.jsxs)("select",{value:null!=h?h:"",onChange:e=>g(e.target.value||null),className:"border border-gray-200 rounded-lg px-3 py-2.5 text-sm text-gray-700",children:[(0,r.jsx)("option",{value:"",children:"All categories"}),A.Uo.map(e=>(0,r.jsxs)("option",{value:e.id,children:[e.label,y[e.id]?" (".concat(y[e.id],")"):""]},e.id))]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,r.jsx)("button",{type:"button",onClick:()=>g(null),className:"text-xs font-semibold px-3 py-1.5 rounded-full border transition ".concat(h?"bg-white text-gray-600 border-gray-200 hover:border-pvpa-400":"bg-pvpa-800 text-white border-pvpa-800"),children:"All"}),A.Uo.map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>g(h===e.id?null:e.id),className:"text-xs font-semibold px-3 py-1.5 rounded-full border transition ".concat(h===e.id?"bg-pvpa-800 text-white border-pvpa-800":"bg-white text-gray-600 border-gray-200 hover:border-pvpa-400"),children:[e.label,y[e.id]?(0,r.jsx)("span",{className:"ml-1 opacity-70",children:y[e.id]}):null]},e.id))]}),("poultry"===h||/\bpoultry\b/i.test(o))&&(0,r.jsxs)("aside",{className:"rounded-xl border border-pvpa-100 bg-pvpa-50/70 px-4 py-3 sm:px-5 sm:py-4 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-wider text-pvpa-700",children:"Poultry tools"}),(0,r.jsx)("p",{className:"text-sm text-slate-700 mt-0.5",children:"Live market intelligence and farmer economics for Pakistan's poultry value chain."})]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-2 shrink-0",children:[(0,r.jsxs)("a",{href:_.Y.liveUrl,target:"_blank",rel:"noopener noreferrer",className:"btn-primary text-xs py-2 px-3 inline-flex items-center gap-1",children:["PoultryIntel Live",(0,r.jsx)(m.A,{className:"h-3 w-3"})]}),(0,r.jsxs)("a",{href:_.Y.farmerEconomicsUrl,target:"_blank",rel:"noopener noreferrer",className:"btn-secondary text-xs py-2 px-3 inline-flex items-center gap-1",children:["Farmer economics",(0,r.jsx)(m.A,{className:"h-3 w-3"})]})]})]}),U?(0,r.jsx)("section",{"aria-label":"PVPA flash news",children:(0,r.jsx)(M.l,{...U})}):null,z.length>0?(0,r.jsxs)("section",{className:"overflow-hidden rounded-xl border border-red-100 bg-white",children:[(0,r.jsxs)("div",{className:"bg-pvpa-800 text-white px-4 py-2 flex items-center gap-2",children:[(0,r.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,r.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-400 opacity-75"}),(0,r.jsx)("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-red-500"})]}),(0,r.jsx)("span",{className:"text-xs font-bold uppercase tracking-wider",children:"Breaking & flash news"})]}),(0,r.jsx)("div",{className:"divide-y divide-gray-100 md:grid md:grid-cols-2 md:divide-y-0",children:z.map(e=>{var t;let a=(null!=(t=e.tags)?t:[]).some(e=>"flash"===e.toLowerCase());return(0,r.jsxs)(D,{article:e,className:"block px-4 py-3 hover:bg-gray-50 transition md:border-r md:border-gray-100 last:border-r-0 ".concat(a?"bg-red-50/40":""),children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 mb-1",children:[a&&(0,r.jsx)("span",{className:"inline-flex items-center text-[10px] font-bold uppercase tracking-wide text-red-700 bg-red-50 border border-red-200 px-2 py-0.5 rounded-full",children:"Flash"}),(0,r.jsx)("span",{className:"category-pill text-[10px]",children:(0,P.C)(e.category)})]}),(0,r.jsx)("h4",{className:"text-sm font-semibold text-gray-900 leading-snug",children:e.title})]},e.id)})})]}):null,L?(0,r.jsxs)("section",{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,r.jsx)(j,{className:"w-5 h-5 text-amber-500"}),(0,r.jsx)("h2",{className:"section-title text-xl",children:"Featured News"})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-4",children:[(0,r.jsxs)(D,{article:L,className:"lg:col-span-3 card p-6 md:p-8 hover:border-pvpa-500 transition block bg-gradient-to-br from-pvpa-50/80 to-white",children:[(0,r.jsx)("span",{className:"category-pill",children:(0,P.C)(L.category)}),(0,r.jsx)("h3",{className:"font-heading text-2xl md:text-3xl font-bold text-pvpa-950 mt-3 mb-3 tracking-tight leading-tight",children:L.title}),(0,r.jsx)("p",{className:"text-gray-600 leading-relaxed mb-4",children:L.excerpt}),(0,r.jsxs)("p",{className:"text-xs text-gray-500 flex items-center gap-2",children:[(0,r.jsxs)("span",{children:[L.readingTimeMin," min \xb7"," ",new Date(L.publishedAt).toLocaleDateString("en-PK")]}),(0,r.jsx)(S,{article:L})]})]}),(0,r.jsxs)("div",{className:"lg:col-span-2 flex flex-col gap-4",children:[R.map(e=>(0,r.jsxs)(D,{article:e,className:"card p-5 hover:border-pvpa-500 transition block flex-1",children:[(0,r.jsx)("span",{className:"category-pill",children:(0,P.C)(e.category)}),(0,r.jsx)("h3",{className:"font-heading font-bold text-gray-900 mt-2 mb-2",children:e.title}),(0,r.jsx)("p",{className:"text-sm text-gray-600 line-clamp-2",children:e.excerpt})]},e.id)),(0,r.jsxs)(i(),{href:"/advertise/sponsored-article",className:"card p-5 border-dashed border-accent-gold/50 bg-amber-50/40 hover:border-accent-gold transition flex items-start gap-3",children:[(0,r.jsx)(N.A,{className:"w-5 h-5 text-pvpa-700 shrink-0 mt-0.5"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"font-heading font-bold text-pvpa-900 text-sm",children:"Sponsored article"}),(0,r.jsx)("p",{className:"text-xs text-gray-600 mt-1",children:"Place your company story in this Forbes-style news feed."})]})]})]})]})]}):null,b.length>0?(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:b.map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>f(u===e?null:e),className:"text-xs font-semibold px-3 py-1 rounded-full border transition ".concat(u===e?"bg-pvpa-700 text-white border-pvpa-700":"bg-white text-gray-600 border-gray-200"),children:["#",e]},e))}):null,(0,r.jsxs)("section",{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,r.jsx)(k.A,{className:"w-5 h-5 text-pvpa-700"}),(0,r.jsx)("h2",{className:"section-title text-xl",children:"Trending Stories"})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:c.map((e,t)=>(0,r.jsxs)(D,{article:e,className:"card p-4 hover:border-pvpa-500 transition flex gap-3",children:[(0,r.jsx)("span",{className:"text-2xl font-bold text-pvpa-200",children:t+1}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-semibold text-gray-900 line-clamp-2",children:e.title}),(0,r.jsxs)("p",{className:"text-xs text-gray-500 mt-1 flex items-center gap-1 flex-wrap",children:[(0,P.C)(e.category),(0,r.jsx)(S,{article:e})]})]})]},e.id))})]}),(0,r.jsxs)("section",{children:[(0,r.jsxs)("h2",{className:"section-title text-xl mb-4",children:[v.length," ",h?"".concat(null!=(s=null==(t=A.Uo.find(e=>e.id===h))?void 0:t.label)?s:""," "):"latest ","stories"]}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:v.map(e=>(0,r.jsxs)("div",{className:"card p-5 hover:border-pvpa-500 transition",children:[(0,r.jsxs)(D,{article:e,className:"block",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsx)("span",{className:"category-pill",children:(0,P.C)(e.category)}),(0,r.jsx)(S,{article:e})]}),(0,r.jsx)("h3",{className:"font-heading text-lg font-bold text-gray-900 mt-2 mb-2",children:e.title}),(0,r.jsx)("p",{className:"text-sm text-gray-600 line-clamp-3 mb-3",children:e.excerpt}),(0,r.jsxs)("p",{className:"text-xs text-gray-500",children:[e.readingTimeMin," min \xb7"," ",new Date(e.publishedAt).toLocaleDateString("en-PK")]})]}),e.pdfUrl&&(0,r.jsxs)("a",{href:e.pdfUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs font-semibold text-pvpa-700 hover:underline mt-2",children:[(0,r.jsx)(x.A,{className:"h-3 w-3"}),"Download PDF"]})]},e.id))}),0===v.length&&(0,r.jsx)("p",{className:"text-gray-500 text-sm",children:"No stories match your filters. Try clearing search or category."})]})]})}let R=new Map([{id:"general",label:"General",feedUrl:"https://www.dra.gov.pk/category/news_updates/regulatory_updates/general/",wpCategoryId:142},{id:"drugs",label:"Drugs",feedUrl:"https://www.dra.gov.pk/category/news_updates/regulatory_updates/drugs/",wpCategoryId:135},{id:"medical_devices",label:"Medical Devices",feedUrl:"https://www.dra.gov.pk/category/news_updates/regulatory_updates/medical_devices/",wpCategoryId:136},{id:"alternative_medicines",label:"Alternative Medicines",feedUrl:"https://www.dra.gov.pk/category/news_updates/regulatory_updates/alternative_medicines/",wpCategoryId:138},{id:"controlled_substances",label:"Controlled Substances",feedUrl:"https://www.dra.gov.pk/category/news_updates/regulatory_updates/controlled_substances/",wpCategoryId:137},{id:"clinical_trials",label:"Clinical Trials",feedUrl:"https://www.dra.gov.pk/category/news_updates/regulatory_updates/clinical_trials/",wpCategoryId:141}].map(e=>[e.wpCategoryId,e]));function U(e){return e.replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim().replace(/–/g,"â").replace(/’/g,"'").replace(/&/g,"&").replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(Number(t)))}function z(e){let t="drap-".concat(e.categoryId,"-").concat(e.title.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,48)).slice(0,72);return{id:function(e){let t=0;for(let a=0;a<e.length;a++)t=(t<<5)-t+e.charCodeAt(a)|0;return"drap-".concat(Math.abs(t))}(e.url),title:e.title,slug:t,excerpt:e.excerpt||"Official DRAP regulatory update â ".concat(e.categoryLabel,". View on dra.gov.pk."),category:"Regulations",author:"DRAP",publishedAt:e.publishedAt,readingTimeMin:3,tags:["DRAP",e.categoryLabel],externalUrl:e.url,source:"dra.gov.pk",pdfUrl:e.pdfUrl}}async function F(){let e=await fetch("https://www.dra.gov.pk/wp-json/wp/v2/posts?categories=26&per_page=50&_fields=title,link,date,excerpt,categories",{headers:{Accept:"application/json"}});if(!e.ok)return[];let t=await e.json();if(!Array.isArray(t)||0===t.length)return[];let a=new Set;return t.map(e=>{let{categoryId:t,categoryLabel:a}=function(e){for(let t of e){let e=R.get(t);if(e)return{categoryId:e.id,categoryLabel:e.label}}return{categoryId:"general",categoryLabel:"General"}}(e.categories),r=U(e.title.rendered);return{title:r,url:e.link,publishedAt:e.date,excerpt:U(e.excerpt.rendered).slice(0,280)||r,categoryId:t,categoryLabel:a}}).filter(e=>!a.has(e.url)&&(a.add(e.url),!0)).sort((e,t)=>
1new Date(t.publishedAt).getTime()-new Date(e.publishedAt).getTime())}function I(e,t){return[...e.filter(e=>"dra.gov.pk"!==e.source),...t].sort((e,t)=>new Date(t.publishedAt).getTime()-new Date(e.publishedAt).getTime())}async function O(e,t){try{let r=await fetch("/api/drap/feed",{cache:"no-store"});if(r.ok){var a;let l=await r.json();if((null==l||null==(a=l.regulatoryNews)?void 0:a.length)&&!l.usedFallback){let a=l.regulatoryNews.map(z);return e(()=>l),t(e=>I(e,a)),!0}}}catch(e){}let r=await F();if(!r.length)return!1;let l=r.map(z);return e(e=>({...e,regulatoryNews:r,usedFallback:!1,scrapedAt:new Date().toISOString()})),t(e=>I(e,l)),!0}function V(e){let{initialDrapFeed:t,initialArticles:a,trending:s,featured:i}=e,[n,c]=(0,l.useState)(t),[d,o]=(0,l.useState)(a),[p,x]=(0,l.useState)(t.usedFallback);(0,l.useEffect)(()=>{if(!(n.usedFallback||n.regulatoryNews.length<8))return void x(!1);let e=!1;return(async()=>{try{await O(t=>{e||c(t)},t=>{e||o(t)})}finally{e||x(!1)}})(),()=>{e=!0}},[n.usedFallback,n.regulatoryNews.length]);let h=(0,l.useMemo)(()=>{let e=d.filter(e=>"dra.gov.pk"===e.source).slice(0,4);return[...d.filter(e=>e.isBreaking).slice(0,2),...e].slice(0,4)},[d]),m=(0,l.useMemo)(()=>{let e=d.filter(e=>e.isFeatured);return e.length>=3?e.slice(0,3):[...e,...d.filter(e=>!e.isFeatured&&"dra.gov.pk"!==e.source)].slice(0,3)},[d]);return(0,r.jsxs)(r.Fragment,{children:[p&&(0,r.jsx)("p",{className:"text-sm text-pvpa-700 mb-4 animate-pulse",children:"Loading live DRAP regulatory updates from dra.gov.pkâ¦"}),(0,r.jsx)(v,{feed:n}),(0,r.jsx)(L,{articles:d,trending:h.length>0?h:s,featured:m.length>0?m:i})]})}},24643:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(92068).A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},30239:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(92068).A)("Syringe",[["path",{d:"m18 2 4 4",key:"22kx64"}],["path",{d:"m17 7 3-3",key:"1w1zoj"}],["path",{d:"M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5",key:"1exhtz"}],["path",{d:"m9 11 4 4",key:"rovt3i"}],["path",{d:"m5 19-3 3",key:"59f2uf"}],["path",{d:"m14 4 6 6",key:"yqp9t2"}]])},32064:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(92068).A)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},32536:(e,t,a)=>{"use strict";a.d(t,{default:()=>l.a});var r=a(54895),l=a.n(r)},54895:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(t,{default:function(){return c},getImageProps:function(){return n}});let r=a(84931),l=a(86145),s=a(10489),i=r._(a(76675));function n(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,a]of Object.entries(t))void 0===a&&delete t[e];return{props:t}}let c=s.Image},65202:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(92068).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},69354:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(92068).A)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},70419:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(92068).A)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},71946:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(92068).A)("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]])},74801:(e,t,a)=>{Promise.resolve().then(a.bind(a,13235)),Promise.resolve().then(a.t.bind(a,19664,23))},75892:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(92068).A)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},77474:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(92068).A)("HeartPulse",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]])},87551:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(92068).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},92068:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var r=a(7620);let l=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim()};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,r.forwardRef)((e,t)=>{let{color:a="currentColor",size:i=24,strokeWidth:n=2,absoluteStrokeWidth:c,className:d="",children:o,iconNode:p,...x}=e;return(0,r.createElement)("svg",{ref:t,...s,width:i,height:i,stroke:a,strokeWidth:c?24*Number(n)/Number(i):n,className:l("lucide",d),...x},[...p.map(e=>
1{let[t,a]=e;return(0,r.createElement)(t,a)}),...Array.isArray(o)?o:[o]])}),n=(e,t)=>{let a=(0,r.forwardRef)((a,s)=>{let{className:n,...c}=a;return(0,r.createElement)(i,{ref:s,iconNode:t,className:l("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),n),...c})});return a.displayName="".concat(e),a}}},e=>{e.O(0,[9664,489,9289,1582,587,18,7358],()=>e(e.s=74801)),_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.