1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[602],{6629:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/official-statements",function(){return a(4601)}])},4601:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return g}});var l=a(5893),n=a(7294),i=a(9008),o=a.n(i),r=a(8533),s=a(6844),c=a(4176),m=a(4079),d=a(8445),u=a(7004),x=a(7536),f=a(536),h=a(4403),v=a(2168);let y=[{label:"All Categories",value:"all"},{label:"Security Council",value:"Security Council"},{label:"Security Council Reform",value:"Security Council Reform"},{label:"Plenary of General Assembly",value:"Plenary of General Assembly"},{label:"First Committee",value:"First Committee"},{label:"Second Committee",value:"Second Committee"},{label:"Third Committee",value:"Third Committee"},{label:"Fourth Committee",value:"Fourth Committee"},{label:"Fifth Committee",value:"Fifth Committee"},{label:"Sixth Committee & Counter-Terrorism",value:"Sixth Committee & Counter-Terrorism"},{label:"Economic and Social Council",value:"Economic and Social Council"},{label:"Side Events hosted by Pakistan",value:"Side Events hosted by Pakistan"},{label:"International Days",value:"International Days"},{label:"Other International Fora",value:"Other International Fora"},{label:"Statements on behalf of G77",value:"Statements on behalf of G77"}];var b=e=>{var t;let{setQuery:a,query:n}=e,i=(0,x.cI)({defaultValues:{...n}});return(0,l.jsx)(f.l0,{...i,children:(0,l.jsxs)("form",{noValidate:!0,className:"flex items-center gap-x-4 max-[766px]:grid max-[766px]:grid-cols-2",children:[(0,l.jsx)(h.Z,{control:i.control,placeholder:"Select category",name:"category",options:y,onValueChange:e=>{i.setValue("category",e),a(t=>({...t,category:e}))},variant:(null===(t=i.errors)||void 0===t?void 0:t.year)?"error":"",noSpace:!0,className:"w-[181px] max-[766px]:w-full",dropdownClass:"h-[200px]"}),(0,l.jsx)(v.Z,{control:i.control,name:"year",setValue:i.setValue,maxYear:2002,onValueChange:e=>{a(t=>({...t,year:e}))}})]})})},p=a(2972),g=()=>{let e="grid grid-cols-2 gap-11 max-md:grid-cols-1",[t,a]=(0,n.useState)({year:"all",category:"all"}),i={"sort[0]":"Date:desc"};"all"!==t.year&&(i["filters[Date][$contains]"]=t.year),"all"!==t.category&&(i["filters[Category][$eqi]"]=t.category);let{data:x,error:f,isLoading:h,size:v,setSize:y,isReachingEnd:g,isLoadingMore:C}=(0,s.Z)("/official-statements",12,i),j=async()=>{y(v+1)};return f?(0,l.jsxs)("div",{children:["Error fetching data: ",f.message]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o(),{children:[(0,l.jsx)("title",{children:"Official Statements | Latest from Permanent Mission of Pakistan to The United Nations"}),(0,l.jsx)("meta",{name:"description",content:"Read all official statements from Permanent Mission of Pakistan to The United Nations. Find comprehensive information on policy positions, diplomatic responses, and important announcements regarding international relations and national interests."})]}),(0,l.jsxs)(c.Z,{containerSize:"sm",children:[(0,l.jsxs)("div",{className:"mb-12 flex items-center justify-between max-[766px]:mb-6 max-[766px]:block",children:[(0,l.jsx)("h2",{className:"font-playFair text-4xl font-semibold max-md:text-2xl max-[766px]:mb-4",children:"Official Statements"}),(0,l.jsx)(b,{setQuery:a,query:t})]}),h&&(0,l.jsx)(c.Z,{children:(0,l.jsx)("div",{className:e,children:(0,l.jsx)(d.Z,{count:6})})}),(0,l.jsx)("div",{children:(0,l.jsx)(r.Z,{dataLength:x.length,next:j,hasMore:!g,loader:(0,l.jsx)("div",{children:C&&(0,l.jsx)(u.Z,{})}),endMessage:"",children:(0,l.jsx)("div",{className:e,children:null==x?void 0:x.map(e=>{var t,a;return(0,l.jsx)(m.Z,{date:null==e?void 0:null===(t=e.attributes)||void 0===t?void 0:t.Date,description:null==e?void 0:null===(a=e.attributes)||void 0===a?void 0:a.Title,path:"/official-statements/".concat(null==e?void 0:e.attributes.Slug)},null==e?void 0:e.id)})})})}),!x.length&&!h&&(0,l.jsx)("div",{className:"flex h-[350px] items-center justify-center ",children:(0,l.jsx)(p.Z,{noRecordTitle:"No official statement found"})})]})]})}}},function(e){e.O(0,[43,722,489,888,774,179],function(){return e(e.s=6629)}),_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.