1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[961],{8130:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/press-release",function(){return n(2319)}])},2319:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return g}});var t=n(5893),a=n(9008),i=n.n(a),l=n(7294),r=n(8533),d=n(6844),o=n(4176),c=n(4079),u=n(8445),x=n(7004),h=n(7536),m=n(536),j=n(2168),f=e=>{let{setQuery:s}=e,n=(0,h.cI)({defaultValues:{year:null}});return(0,t.jsx)(m.l0,{...n,children:(0,t.jsx)("form",{noValidate:!0,children:(0,t.jsx)(j.Z,{control:n.control,name:"year",setValue:n.setValue,className:"!w-[150px]",maxYear:2002,onValueChange:e=>{s(e)}})})})},v=n(2972),g=()=>{let e="grid grid-cols-2 gap-11 max-md:grid-cols-1 max-lg:grid-cols-2",[s,n]=(0,l.useState)("all"),{data:a,error:h,isLoading:m,size:j,setSize:g,isReachingEnd:p,isLoadingMore:N}=(0,d.Z)("/press-releases",12,{"sort[0]":"Date:desc","filters[Date][$contains]":"all"===s?"":s}),_=async()=>{g(j+1)};return h?(0,t.jsxs)("div",{children:["Error fetching data: ",h.message]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i(),{children:[(0,t.jsx)("title",{children:"Press Releases | Permanent Mission of Pakistan to The United Nations"}),(0,t.jsx)("meta",{name:"description",content:"Access the latest press releases from the Permanent Mission of Pakistan to the United Nations. Stay updated on official announcements, diplomatic engagements, and key events involving Pakistan at the UN."})]}),(0,t.jsxs)(o.Z,{containerSize:"sm",children:[(0,t.jsxs)("div",{className:"mb-10 flex items-center justify-between",children:[(0,t.jsx)("h2",{className:"font-playFair text-4xl font-semibold max-md:text-2xl",children:"Press Releases"}),(0,t.jsx)(f,{setQuery:n})]}),m&&(0,t.jsx)(o.Z,{children:(0,t.jsx)("div",{className:e,children:(0,t.jsx)(u.Z,{count:8})})}),!m&&!!a.length&&(0,t.jsx)("div",{children:(0,t.jsx)(r.Z,{dataLength:a.length,next:_,hasMore:!p,loader:(0,t.jsx)("div",{children:N&&(0,t.jsx)(x.Z,{})}),endMessage:"",children:(0,t.jsx)("div",{className:e,children:null==a?void 0:a.map((e,s)=>{var n,a,i;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(c.Z,{date:null==e?void 0:null===(n=e.attributes)||void 0===n?void 0:n.Date,description:null==e?void 0:null===(a=e.attributes)||void 0===a?void 0:a.Title,size:"sm",path:"/press-release/".concat(null==e?void 0:null===(i=e.attributes)||void 0===i?void 0:i.Slug)},s)})})})})}),!a.length&&!m&&(0,t.jsx)("div",{className:"flex h-[350px] items-center justify-center ",children:(0,t.jsx)(v.Z,{noRecordTitle:"No press releases found"})})]})]})}}},function(e){e.O(0,[43,722,489,888,774,179],function(){return e(e.s=8130)}),_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.