PageSourceSearch

https://pakun.org/_next/static/chunks/489-0e5b1af15dd33b90.js

js pakun.org collected 2026-10-02 04:19:44 UTC 11,661 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[489],{4403:function(e,a,t){t.d(a,{Z:function(){return g}});var l=t(5893),s=t(536),r=t(7294),n=t(9722),i=t(1568),d=t(4098),o=t(4339);let c=n.fC,m=n.ZA;n.B4;let u=r.forwardRef((e,a)=>{let{className:t,children:s,...r}=e;return(0,l.jsxs)(n.xz,{ref:a,className:(0,o.cn)("flex h-10 w-full items-center justify-between rounded-md border border-zinc-200 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-foreground-500 focus:outline-none focus:ring-1 focus:ring-foreground-300 focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50 dark:border-zinc-800 dark:bg-zinc-950 dark:ring-offset-zinc-950 dark:placeholder:text-zinc-400 dark:focus:ring-zinc-300 [&>span]:line-clamp-1",t),...r,children:[s,(0,l.jsx)(n.JO,{asChild:!0,children:(0,l.jsx)(i.Z,{className:"size-4 opacity-50"})})]})});u.displayName=n.xz.displayName;let x=r.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,l.jsx)(n.u_,{ref:a,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",t),...s,children:(0,l.jsx)(d.Z,{className:"size-4"})})});x.displayName=n.u_.displayName;let f=r.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,l.jsx)(n.$G,{ref:a,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",t),...s,children:(0,l.jsx)(i.Z,{className:"size-4"})})});f.displayName=n.$G.displayName;let h=r.forwardRef((e,a)=>{let{className:t,children:s,position:r="popper",...i}=e;return(0,l.jsx)(n.h_,{children:(0,l.jsxs)(n.VY,{ref:a,className:(0,o.cn)("relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border border-zinc-200 bg-white text-zinc-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...i,children:[(0,l.jsx)(x,{}),(0,l.jsx)(n.l_,{className:(0,o.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,l.jsx)(f,{})]})})});h.displayName=n.VY.displayName,r.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,l.jsx)(n.__,{ref:a,className:(0,o.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...s})}).displayName=n.__.displayName;let p=r.forwardRef((e,a)=>{let{className:t,children:s,...r}=e;return(0,l.jsx)(n.ck,{ref:a,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50",t),...r,children:(0,l.jsx)(n.eT,{className:"bg-foreground-300",children:s})})});p.displayName=n.ck.displayName,r.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,l.jsx)(n.Z0,{ref:a,className:(0,o.cn)("-mx-1 my-1 h-px bg-zinc-100 dark:bg-zinc-800",t),...s})}).displayName=n.Z0.displayName;var v=t(2467),j=t(2014),g=e=>{let{control:a,name:t,label:r,placeholder:n,icon:i,errorMsg:d,noSpace:x=!1,variant:f,className:g,options:b=[],onValueChange:N,isLoading:w,dropdownClass:y,selectClass:z}=e,k=e=>{var a;return(null==e?void 0:e.value)?null==b?void 0:null===(a=b.find(a=>(null==a?void 0:a.value)===(null==e?void 0:e.value)))||void 0===a?void 0:a.label:n};return(0,l.jsx)("div",{className:(0,o.cn)("relative w-full",x?"mb-0":"mb-4"),children:(0,l.jsx)(s.Wi,{control:a,name:t,render:e=>{let{field:a}=e;return(0,l.jsxs)(s.xJ,{children:[r&&(0,l.jsx)(s.lX,{children:(0,l.jsx)("span",{className:"mb-[6px] block text-sm font-medium text-foreground",children:r})}),(0,l.jsxs)(c,{onValueChange:N||(null==a?void 0:a.onChange),defaultValue:null==a?void 0:a.value,className:z,children:[(0,l.jsx)(s.NI,{children:(0,l.jsx)(u,{className:(0,o.cn)("flex w-full items-center justify-between truncate",(0,j.N)({variant:f}),g),children:(0,l.jsxs)("div",{className:"flex w-full items-center justify-between overflow-hidden font-medium text-foreground-600",children:[i&&(0,l.jsx)("div",{className:"w-4",children:(0,l.jsx)(v.Z,{name:i,className:"stroke-1.5 relative -left-px mr-0.5 size-4 stroke-foreground-600"})}),k(a)]})})}),(0,l.jsxs)(h,{className:y,children:[w&&(0,l.jsx)("div",{className:"flex h-full items-center justify-center p-2",children:(0,l.jsx)(v.Z,{name:"LoaderCircle",className:"w-8 animate-spin stroke-primary-600"})}),!w&&b.length&&(0,l.jsx)(m,{children:null==b?void 0:b.map((e,a)=>(0,l.jsx)(p,{value:null==e?void 0:e.value,children:null==e?void 0:e.label},(null==e?void 0:e.value)+" --"+a))})]})]}),d&&(0,l.jsx)("div",{className:"absolute right-0 top-[-8px] ",children:(0,l.jsx)(s.zG,{})})]})}})})}}
1,2168:function(e,a,t){var l=t(5893),s=t(7294),r=t(4403),n=t(4339);a.Z=e=>{let{name:a,control:t,setValue:i,onValueChange:d,maxYear:o=2e3,className:c}=e,m=new Date().getFullYear(),[u,x]=(0,s.useState)([{label:"All years",value:"all"}]);return(0,s.useEffect)(()=>{for(let e=m;e>=o;e--)x(a=>[...a,{label:e,value:e.toString()}])},[]),(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(r.Z,{control:t,placeholder:"Select year",name:"year",options:u,onValueChange:e=>{i(a,e),d&&d(e)},noSpace:!0,className:(0,n.cn)("w-[150px] max-[766px]:w-full",c),dropdownClass:"h-[200px]"})})}},4079:function(e,a,t){var l=t(5893);t(7294);var s=t(1664),r=t.n(s),n=t(5675),i=t.n(n),d=t(7027),o=t(4339);let c={default:{dateColor:"text-primary-600",content:"text-foreground-900"},pressRelease:{dateColor:"text-foreground-500",content:"text-primary-600 font-medium"},gallery:{dateColor:"text-primary-600",content:"text-foreground-900"}};a.Z=e=>{var a,t,s,n;let{path:m,src:u,country:x,date:f,size:h,description:p,descriptionSize:v,variant:j="default",title:g,designation:b,email:N,listType:w="default",imageHeight:y,imageIcon:z,imageIconWidth:k,imageIconHeight:Z,imageIconAlt:C,newsModification:_,alternativeText:R}=e;return(0,l.jsxs)("div",{className:"relative",children:["default"===w&&(0,l.jsxs)(l.Fragment,{children:[m&&(0,l.jsx)(r(),{href:m,className:"absolute left-0 top-0 z-10 size-full"}),u&&(0,l.jsxs)("div",{className:"relative mb-4 bg-foreground-300 ".concat(y),children:[(0,l.jsx)(i(),{src:u,priority:!0,width:1160,height:240,alt:R}),z&&(0,l.jsx)("span",{className:"absolute bottom-3 right-3",children:(0,l.jsx)(i(),{src:z,alt:C,priority:!0,width:k,height:Z})})]}),(0,l.jsxs)("p",{className:(0,o.cn)("mb-3 font-inter","sm"===h?"text-sm":"text-base font-medium",null===(a=c[j])||void 0===a?void 0:a.dateColor),children:[x&&(0,l.jsxs)("span",{className:null===(t=c[j])||void 0===t?void 0:t.dateColor,children:[x," -"," "]}),(0,l.jsx)("span",{className:null===(s=c[j])||void 0===s?void 0:s.dateColor,children:(0,d.Z)(f)})]}),(0,l.jsx)("p",{className:(0,o.cn)("mb-0 font-normal","sm"===v?"text-sm":"text-base",null===(n=c[j])||void 0===n?void 0:n.content),children:p})]}),"mission"===w&&(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("div",{className:"mr-4 w-[160px] shrink-0",children:u&&(0,l.jsx)(i(),{src:u,alt:R,priority:!0,width:"548",height:"480"})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"max-md:text-md mb-1 font-playFair text-2xl font-bold max-lg:text-lg",children:g}),(0,l.jsx)("p",{className:"mb-2 text-base font-medium text-primary-600",children:b}),(0,l.jsx)(r(),{href:"mailto:".concat(N),className:"block text-sm text-foreground-600 underline",children:N})]})]}),"news-updates"===w&&(0,l.jsx)(r(),{href:m,children:(0,l.jsxs)("div",{className:"flex gap-6 max-md:block",children:[u&&(0,l.jsx)("div",{className:"mb-4 h-auto w-[386px] overflow-hidden max-md:w-full max-sm:mb-5 max-sm:h-auto",children:(0,l.jsx)(i(),{src:u,priority:!0,width:386,height:240,alt:R,className:"max-md:w-full"})}),(0,l.jsxs)("div",{className:(0,o.cn)("w-[calc(100%-386px)]  max-md:w-full",_),children:[(0,l.jsx)("span",{className:"mb-2 block font-inter text-xs text-foreground-600",children:(0,d.Z)(f)}),g&&(0,l.jsx)("h2",{className:"mb-3 font-playFair text-2xl font-bold max-lg:text-lg",children:g}),p&&(0,l.jsx)("p",{className:"mb-3",children:p}),(0,l.jsx)("span",{className:"text-sm font-semibold text-primary-600",children:"Read more"})]})]})})]})}},2972:function(e,a,t){var l=t(5893);t(7294);var s=t(5675),r=t.n(s),n=t(4339);a.Z=e=>{let{noRecordTitle:a,noRecordDescription:t="There is no data available currently.",className:s,imageClasses:i,titleClass:d}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"mt-6 flex flex-col justify-center",children:[(0,l.jsx)("div",{className:(0,n.cn)("mx-auto mb-0 w-[200px]",i),children:(0,l.jsx)(r(),{src:"/no-record-found.svg",alt:"no record found.",width:"550",height:"572"})}),(0,l.jsxs)("div",{className:(0,n.cn)("mobile:w-[300px] mx-auto w-[360px]",s),children:[(0,l.jsx)("h4",{className:(0,n.cn)("text-interface-900 mb-1 mt-3 text-center text-lg",d),children:a||"No data available."}),t&&(0,l.jsx)("p",{className:"text-interface-600 mb-0 text-center text-base",children:t})]})]})})}}
1,8445:function(e,a,t){var l=t(5893);t(7294);var s=t(549);t(462),a.Z=e=>{let{count:a=6,height:t="h-[90px]",className:r}=e;return(0,l.jsx)(l.Fragment,{children:Array(a).fill(null).map((e,a)=>(0,l.jsx)(s.Z,{className:"".concat(t," ").concat(r),baseColor:"#e4e4e7"},a))})}},7004:function(e,a,t){var l=t(5893);t(7294);var s=t(5675),r=t.n(s),n=t(4339);a.Z=e=>{let{className:a}=e;return(0,l.jsx)("div",{className:(0,n.cn)("pt-8",a),children:(0,l.jsx)("div",{className:"mx-auto w-11",children:(0,l.jsx)(r(),{src:"/spinner.svg",alt:"Pakistan Mission to The United Nations",priority:!0,width:100,height:100})})})}},7027:function(e,a,t){var l=t(7294),s=t(7484),r=t.n(s);a.Z=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DD MMMM, YYYY",[t,s]=(0,l.useState)("");return(0,l.useEffect)(()=>{e&&s(r()(e).format(a))},[e,a]),t}},6844:function(e,a,t){t.d(a,{Z:function(){return d}});var l=t(3856),s=t(2353),r=t.n(s);let n=(e,a,t,l,s)=>{if(!t||a&&!a.length)return null;let r=new URLSearchParams({populate:"*","pagination[page]":e+1,"pagination[pageSize]":l,...s}).toString();return"".concat(t,"?").concat(r)},i=async e=>{if(!e)return null;let a=await fetch("".concat("https://pakun.org/api").concat(e),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat("d466167644ad6dc0cdfb6713967521353d5a1fbeec6b87a59651bff132ac7c0b6c0cd9a6d45330fb69cea2882139a9a2425dd9355c06749e9ce565752f860ecfb01a4ca6874d62bc36c868142276d957ea931f5eccdb1cf04366363ac2f29fbfe20327f9147f6313e71018dde6b187404a205da8e74e0ef68e291df2e0c3a45e")}});if(!a.ok)throw Error("HTTP error! Status: ".concat(a.status));return(await a.json()).data};function d(e){var a,t,s;let d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=!(arguments.length>3)||void 0===arguments[3]||arguments[3],{data:m,error:u,size:x,setSize:f,isValidating:h,mutate:p}=(0,l.ZP)(function(){for(var a=arguments.length,t=Array(a),l=0;l<a;l++)t[l]=arguments[l];return[n(...t,e,d,o)]},i,{revalidateFirstPage:c}),v=m?m.flat():[],j=!m&&!u||x>0&&m&&r()(m[x-1]),g=(null==m?void 0:null===(a=m[0])||void 0===a?void 0:a.length)===0||(null==m?void 0:null===(t=m[m.length-1])||void 0===t?void 0:t.length)<d,b=h&&m&&(null==m?void 0:null===(s=m[0])||void 0===s?void 0:s.length)===x;return{data:v,error:u,size:x,setSize:f,isReachingEnd:g,isLoading:!m&&!u,isLoadingMore:j,isRefreshing:b,mutate:p}}}}]);

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.