PageSourceSearch

https://pakun.org/_next/static/chunks/pages/press-release/[slug]-d5c05b423121e54a.js

js pakun.org collected 2026-10-02 04:19:26 UTC 9,188 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[474],{6999:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/press-release/[slug]",function(){return n(735)}])},9974:function(e,t,n){"use strict";var i=n(5893),a=n(7294),r=n(2749),s=n(2467),o=n(4339);let l=(0,a.forwardRef)((e,t)=>{let{icon:n,label:a,loading:l,iconStyle:c,size:d,variant:u,hasDropdown:h,disabled:m,modifier:x,labelClass:f,styleAsInput:v,...b}=e;return(0,i.jsxs)(r.z,{...b,ref:t,variant:u,size:d,disabled:m,className:(0,o.cn)("relative",l?"pointer-events-none":"",m?(0,o.cn)("border border-foreground-300",v?"bg-transparent placeholder:text-muted-foreground":"bg-foreground-100 text-foreground-400"):""),children:[(0,i.jsxs)("div",{className:(0,o.cn)(h?"flex w-full items-center justify-between":""),children:[(0,i.jsxs)("div",{className:(0,o.cn)("flex items-center",l?"invisible":"",x),children:[(0,i.jsx)("span",{className:f,children:a}),n&&(0,i.jsx)(s.Z,{name:n,className:(0,o.cn)("size-4 shrink-0",a?"ml-[6px]":"",c||"")})]}),h&&(0,i.jsx)(s.Z,{name:"ChevronDown",className:"ml-[6px] size-4 shrink-0 stroke-2"})]}),l&&(0,i.jsx)("span",{className:"absolute",children:(0,i.jsx)(s.Z,{name:"LoaderCircle",className:"animate-spin"})})]})});l.displayName="CustomButton",t.Z=l},5607:function(e,t,n){"use strict";var i=n(5893),a=n(7294),r=n(2191),s=n(6117),o=n(9037);n(7405),n(3483);var l=n(9974),c=n(4339);r.default.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(r.default.version,"/pdf.worker.js"),t.Z=e=>{let{title:t,pdfUrl:n,wrapperClass:r,handleMobileClick:d}=e,[u,h]=(0,a.useState)(null),[m,x]=(0,a.useState)(1),[f,v]=(0,a.useState)(100),[b,p]=(0,a.useState)(0),[g,w]=(0,a.useState)(1),k=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=()=>{window.innerWidth<=640?(x(.65),v(Math.round(65))):window.innerWidth<=1024?(x(.9),v(Math.round(90))):(x(1),v(Math.round(100)))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,i.jsxs)("div",{className:(0,c.cn)("overflow-hidden rounded-xl shadow",r),children:[(0,i.jsxs)("div",{ref:k,className:"pdf-toolbar",children:[(0,i.jsxs)("div",{className:"hidden items-center max-md:flex",children:[(0,i.jsx)(l.Z,{variant:"link",type:"button",icon:"ChevronsLeft",iconStyle:"stroke-white size-6",className:"h-10 bg-transparent pl-0 text-white",onClick:d}),(0,i.jsx)("div",{className:"ml-0 mr-1 hidden h-6 w-0.5 bg-foreground-500 max-sm:block"})]}),(0,i.jsx)("div",{className:"font-inter",children:(null==t?void 0:t.length)>20?"".concat(t.slice(0,20),"..."):t}),(0,i.jsxs)("div",{className:"ml-auto flex items-center justify-center",children:[(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("input",{type:"text",value:g,onChange:e=>{w(e.target.value)},onKeyDown:e=>{if("Enter"===e.key){let e=document.querySelector('[data-page-number="'.concat(g,'"]'));e&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}},className:"relative top-0.5 w-8 bg-black text-center text-white outline-none"}),(0,i.jsx)("div",{className:"relative top-1 mx-1 h-4 w-0.5 rotate-12 bg-foreground-500"})," ",u]}),(0,i.jsx)("div",{className:"ml-4 h-6 w-0.5 bg-foreground-500"}),(0,i.jsx)(l.Z,{variant:"link",type:"button",icon:"Minus",iconStyle:"stroke-white size-6",className:"h-10 bg-transparent p-2 text-white",onClick:()=>{let e=Math.max(m-.1,.25);x(e),v(Math.round(100*e))}}),(0,i.jsxs)("div",{className:"flex items-center justify-center bg-black px-2 py-1",children:[(0,i.jsx)("input",{type:"text",value:f,onChange:e=>{v(e.target.value)},onKeyDown:e=>{if("Enter"===e.key){let e=Math.min(Math.max(parseFloat(f)/100,.25),2);v(Math.round(100*e)),x(e)}},className:"w-8 bg-black text-white outline-none"}),(0,i.jsx)("label",{children:"%"})]}),(0,i.jsx)(l.Z,{variant:"link",type:"button",icon:"Plus",iconStyle:"stroke-white size-6",className:"h-10 bg-transparent p-2 text-white",onClick:()=>{let e=Math.min(m+.1,2);x(e),v(Math.round(100*e))}}),(0,i.jsx)("div",{className:"mr-2 h-6 w-0.5 bg-foreground-500"}),(0,i.jsx)(l.Z,{variant:"link",type:"button",icon:"Rotate3d",iconStyle:"stroke-white size-6",className:"h-10 bg-transparent p-2 text-white",onClick:()=>{p(e=>(e+90)%360)}}),(0,i.jsx)(l.Z,{variant:"link",type:"button",icon:"ChevronsUpDown",iconStyle:"stroke-white size-6",className:"h-10 bg-transparent p-2 text-white",onClick:()=>
1{if(k.current){let e=k.current.clientWidth/619;x(e),v(Math.round(100*e))}}})]}),(0,i.jsxs)("div",{className:"ml-auto",children:[(0,i.jsx)(l.Z,{variant:"link",type:"button",icon:"Download",iconStyle:"stroke-white size-6",className:"h-10 bg-transparent p-2 text-white max-sm:p-1",onClick:()=>{if(!n)return;let e=document.createElement("a");e.href=n,e.download="document.pdf",document.body.appendChild(e),e.click(),document.body.removeChild(e)}}),(0,i.jsx)(l.Z,{variant:"link",type:"button",icon:"Printer",iconStyle:"stroke-white size-6",className:"h-10 bg-transparent p-2 text-white max-sm:p-1",onClick:()=>{if(!n)return;let e=document.createElement("iframe");e.setAttribute("style","display: none;"),document.body.appendChild(e),e.onload=function(){e.contentWindow.print()},e.src=n}})]})]}),(0,i.jsx)("div",{className:"pdf-container scrollable",children:(0,i.jsx)(s.Z,{file:n,onLoadSuccess:e=>{var t;h(null==e?void 0:null===(t=e._pdfInfo)||void 0===t?void 0:t.numPages)},children:Array.from(Array(u),(e,t)=>(0,i.jsx)(o.Z,{pageNumber:t+1,scale:m,rotate:b},"page_".concat(t+1)))})})]})}},2749:function(e,t,n){"use strict";n.d(t,{z:function(){return c}});var i=n(5893),a=n(7294),r=n(8426),s=n(5139),o=n(4339);let l=(0,s.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-zinc-950 dark:focus-visible:ring-zinc-300",{variants:{variant:{default:"bg-zinc-900 text-zinc-50 hover:bg-zinc-900/90 dark:bg-zinc-50 dark:text-zinc-900 dark:hover:bg-zinc-50/90",destructive:"bg-red-500 text-zinc-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-zinc-50 dark:hover:bg-red-900/90",outline:"border border-zinc-200 bg-white hover:bg-zinc-100 hover:text-zinc-900 dark:border-zinc-800 dark:bg-zinc-950 dark:hover:bg-zinc-800 dark:hover:text-zinc-50",secondary:"bg-zinc-100 text-zinc-900 hover:bg-zinc-100/80 dark:bg-zinc-800 dark:text-zinc-50 dark:hover:bg-zinc-800/80",ghost:"hover:bg-zinc-100 hover:text-zinc-900 dark:hover:bg-zinc-800 dark:hover:text-zinc-50",link:"text-primary-600",launch:"bg-[#163B1E] font-inter text-lg font-bold text-white hover:bg-[#163B1E]/90"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"size-10",link:"h-5",launch:"p-6 max-[767px]:p-4 max-[767px]:text-bas"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,t)=>{let{className:n,variant:a,size:s,asChild:c=!1,...d}=e,u=c?r.g7:"button";return(0,i.jsx)(u,{className:(0,o.cn)(l({variant:a,size:s,className:n})),ref:t,...d})});c.displayName="Button"},735:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return d}});var i=n(5893),a=n(7484),r=n.n(a),s=n(9008),o=n.n(s),l=n(5607),c=n(9974),d=!0;t.default=e=>{var t,n,a,s,d,u;let{data:h}=e,m=async(e,t)=>{try{let n=await fetch(e),i=await n.blob(),a=window.URL.createObjectURL(i),r=document.createElement("a");r.href=a,r.download=t,document.body.appendChild(r),r.click(),window.URL.revokeObjectURL(a),document.body.removeChild(r)}catch(e){console.log("Failed to fetch file",e)}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o(),{children:(0,i.jsx)("title",{children:"".concat(null==h?void 0:h.Title," | Press Release | ").concat("Pakistan Mission to The United Nations")})}),h&&(0,i.jsxs)("div",{className:"mx-auto max-w-[960px] px-6 py-[64px]",children:[(0,i.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-x-4",children:[(0,i.jsx)("h1",{className:"text-4xl font-bold",children:"Press Release"}),(0,i.jsx)(c.Z,{variant:"link",icon:"Download",label:"Download PDF",size:"link",iconStyle:"size-5 stroke-2",labelClass:"text-sm font-medium max-md:hidden",onClick:()=>{m("".concat("https://cdn.pakun.org").concat(h.PDF.data.attributes.url),"press release")}})]}),(0,i.jsx)("p",{className:"mb-3 text-2xl font-bold leading-[36px] text-primary-600 max-lg:text-xl max-md:text-lg",children:null==h?void 0:h.Title}),(0,i.jsx)("div",{className:"mb-11 ",children:(0,i.jsx)("time",{dateTime:r()(null==h?void 0:h.Date).format("DD MMM, YYYY"),className:"font-inter text-base text-foreground-600",children:r()(null==h?void 0:h.Date).format("DD MMM, YYYY")})}),(null==h?void 0:null===(a=h.PDF)||void 0===a?void 0:null===(n=a.data)||void 0===n?void 0:null===(t=n.attributes)||void 0===t?void 0:t.url)&&(0,i.jsx)(l.Z,{title:null==h?void 0:null===(u=h.PDF)||void 0===u?void 0:null===(d=u.data)||void 0===d?void 0:null===(s=d.attributes)||void 0===s?void 0:s.name,pdfUrl:"".concat("https://cdn.pakun.org").concat(h.PDF.data.attributes.url)})]})]})}},3414:function(){},172:function(){},2001:function(){},1895:function(){},2258:function(){}},function(e){e.O(0,[577,978,888,774,179],function(){return e(e.s=6999)}),_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.