1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[496],{1068:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/updates/[id]",function(){return r(2215)}])},1629:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(4232);let s=a.forwardRef(function(e,t){let{title:r,titleId:s,...l}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},l),r?a.createElement("title",{id:s},r):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))})},2215:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var a=r(7876),s=r(4232),l=r(9099),n=r(7328),o=r.n(n),i=r(8230),c=r.n(i),d=r(4587),u=r.n(d);let m=s.forwardRef(function(e,t){let{title:r,titleId:a,...l}=e;return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},l),r?s.createElement("title",{id:a},r):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"}))});var h=r(8620),x=r(5565),p=r(5427);function b(e){let{content:t,onImageClick:r,className:l="",imageUrlMap:n={}}=e,o=(0,s.useRef)(null),i=(0,s.useCallback)(e=>{e.preventDefault(),e.stopPropagation();let t=e.target;t.src&&r(n[t.src]||t.src)},[n,r]),c=(0,s.useCallback)(e=>{e.target.style.boxShadow="0 0 0 2px rgba(59, 130, 246, 0.3)"},[]),d=(0,s.useCallback)(e=>{e.target.style.boxShadow="none"},[]);return(0,s.useEffect)(()=>{if(!o.current)return;let e=o.current.querySelectorAll("img");return e.forEach(e=>{e.style.cursor="pointer",e.classList.add("hover:opacity-90","transition-opacity","rounded-lg"),e.addEventListener("mouseenter",c),e.addEventListener("mouseleave",d),e.removeEventListener("click",i),e.addEventListener("click",i,{capture:!0}),e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},{capture:!0}),e.hasAttribute("onclick")&&e.removeAttribute("onclick");let t=e.closest("a");t&&(t.style.pointerEvents="none",e.style.pointerEvents="auto",t.hasAttribute("href")&&t.removeAttribute("href"),t.hasAttribute("onclick")&&t.removeAttribute("onclick"))}),()=>{e.forEach(e=>{e.removeEventListener("click",i),e.removeEventListener("mouseenter",c),e.removeEventListener("mouseleave",d);let t=e.closest("a");t&&(t.style.pointerEvents="auto")})}},[t,i,c,d]),(0,a.jsx)("div",{ref:o,className:l,dangerouslySetInnerHTML:{__html:t}})}function g(){var e;let{id:t}=(0,l.useRouter)().query,[r,n]=(0,s.useState)(null),[i,d]=(0,s.useState)(!0),[g,f]=(0,s.useState)(null),[v,w]=(0,s.useState)(!1),[j,y]=(0,s.useState)(0),k=(0,s.useCallback)(async()=>{try{d(!0);let e=await fetch("/api/blogger-post?id=".concat(t));if(!e.ok)throw Error("Failed to fetch post");let r=await e.json();n(r.post)}catch(e){f(e instanceof Error?e.message:"An error occurred")}finally{d(!1)}},[t]);(0,s.useEffect)(()=>{t&&k()},[t,k]);let N=(0,x.dH)((null==r?void 0:r.content)||""),E=(0,s.useCallback)(e=>{let t=N.findIndex(t=>t===e);-1!==t&&(y(t),w(!0))},[N]);if(i)return(0,a.jsxs)("div",{className:"min-h-screen bg-gray-50",children:[(0,a.jsx)(o(),{children:(0,a.jsx)("title",{children:"Loading... - Together for Treaty"})}),(0,a.jsx)("div",{className:"max-w-4xl mx-auto px-4 py-12",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary-600 mx-auto"}),(0,a.jsx)("p",{className:"mt-4 text-gray-600",children:"Loading post..."})]})})]});if(g||!r)return(0,a.jsxs)("div",{className:"min-h-screen bg-gray-50",children:[(0,a.jsx)(o(),{children:(0,a.jsx)("title",{children:"Post Not Found - Together for Treaty"})}),(0,a.jsx)("div",{className:"max-w-4xl mx-auto px-4 py-12",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Post Not Found"}),(0,a.jsx)("p",{className:"text-gray-600 mb-8",children:"The post you're looking for doesn't exist or has been removed."}),(0,a.jsxs)(c(),{href:"/updates",className:"inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-primary-600 hover:bg-primary-700 transition-colors duration-200",children:[(0,a.jsx)(m,{className:"h-5 w-5 mr-2"}),"Back to Updates"]})]})})]});let C=(null==(e=r.content.match(/<img[^>]+src="([^"]+)"/g))?void 0:e.map(e=>{let t=e.match(/src="([^"]+)"/);return t?t[1]:""}
1).filter(Boolean))||[],L={};return C.forEach((e,t)=>{N[t]&&(L[e]=N[t])}),(0,a.jsxs)("div",{className:"min-h-screen bg-gray-50",children:[(0,a.jsxs)(o(),{children:[(0,a.jsxs)("title",{children:[r.title," - Together for Treaty"]}),(0,a.jsx)("meta",{name:"description",content:r.excerpt})]}),(0,a.jsxs)("section",{className:"bg-gray-50 py-16 sm:py-24 relative overflow-hidden",children:[(0,a.jsx)("div",{className:"absolute inset-0 opacity-10",children:(0,a.jsx)(u(),{src:"/images/shapes-texture.png",alt:"",fill:!0,className:"object-cover"})}),(0,a.jsxs)("div",{className:"relative z-10 mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[(0,a.jsx)("div",{className:"mb-8",children:(0,a.jsxs)(c(),{href:"/updates",className:"inline-flex items-center text-primary-600 hover:text-primary-700 font-medium",children:[(0,a.jsx)(m,{className:"h-5 w-4 mr-2"}),"Back to Updates"]})}),(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-8 mb-8",children:[(0,a.jsx)("div",{className:"flex items-center space-x-4 text-sm text-gray-500 mb-4",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(h.A,{className:"h-4 w-4 mr-1"}),(0,x.Yq)(r.published)]})}),(0,a.jsx)("h1",{className:"text-4xl font-bold text-gray-900 mb-6",children:r.title}),(0,a.jsx)("div",{className:"border-t border-gray-200 pt-6",children:(0,a.jsx)(b,{content:(0,x.XY)(r.content),onImageClick:E,className:"prose prose-lg max-w-none",imageUrlMap:L})})]}),(0,a.jsx)("div",{className:"mt-8 text-center",children:(0,a.jsxs)(c(),{href:"/updates",className:"inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-primary-600 hover:bg-primary-700 transition-colors duration-200",children:[(0,a.jsx)(m,{className:"h-5 w-5 mr-2"}),"Back to Updates"]})}),N.length>0&&(0,a.jsx)(p.A,{images:N,initialIndex:j,isOpen:v,onClose:()=>w(!1)})]})]})]})}},5427:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var a=r(7876),s=r(4232),l=r(4587),n=r.n(l),o=r(1629),i=r(8306),c=r(6439);function d(e){let{images:t,initialIndex:r,isOpen:l,onClose:d,downloadUrls:u,onDownloadRequest:m}=e,[h,x]=(0,s.useState)(r),[p,b]=(0,s.useState)(null),[g,f]=(0,s.useState)(null);(0,s.useEffect)(()=>{x(r)},[r]);let v=(0,s.useCallback)(()=>{x(e=>0===e?t.length-1:e-1)},[t.length]),w=(0,s.useCallback)(()=>{x(e=>e===t.length-1?0:e+1)},[t.length]);(0,s.useEffect)(()=>{let e=e=>{if(l)switch(e.key){case"Escape":d();break;case"ArrowLeft":v();break;case"ArrowRight":w()}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[l,w,v,d]);let j=(0,s.useCallback)(e=>{b(e.targetTouches[0].clientX)},[]),y=(0,s.useCallback)(e=>{f(e.targetTouches[0].clientX)},[]),k=(0,s.useCallback)(()=>{if(!p||!g)return;let e=p-g;e>50?w():e<-50&&v(),b(null),f(null)},[p,g,w,v]);return l?(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-90",children:[(0,a.jsx)("button",{onClick:d,className:"absolute top-4 right-4 z-10 p-2 text-white hover:text-gray-300 transition-colors","aria-label":"Close lightbox",children:(0,a.jsx)(o.A,{className:"h-8 w-8"})}),u&&u[h]&&(0,a.jsxs)("button",{onClick:()=>{if(m)m(u[h],"Treaty-Poster-".concat(h+1,".pdf"));else{let e=document.createElement("a");e.href=u[h],e.download="Treaty-Poster-".concat(h+1,".pdf"),document.body.appendChild(e),e.click(),document.body.removeChild(e)}},className:"absolute top-4 right-16 z-10 px-4 py-2 text-white hover:text-gray-100 transition-colors bg-primary-700 hover:bg-primary-800 rounded-lg font-semibold text-base flex items-center gap-2 cursor-pointer","aria-label":"Download poster PDF",children:["Download Poster",(0,a.jsx)("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})]}),t.length>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{onClick:v,className:"absolute left-4 top-1/2 -translate-y-1/2 z-10 p-2 text-white hover:text-gray-300 transition-colors","aria-label":"Previous image",children:(0,a.jsx)(i.A,{className:"h-12 w-12"})}),(0,a.jsx)("button",{onClick:w,className:"absolute right-4 top-1/2 -translate-y-1/2 z-10 p-2 text-white hover:text-gray-300 transition-colors","aria-label":"Next image",children:(0,a.jsx)(c.A,{className:"h-12 w-12"})})]}),(0,a.jsx)("div",{className:"relative w-full h-full flex items-center justify-center p-8",onTouchStart:j,onTouchMove:y,onTouchEnd:k,role:"region","aria-label":"Image gallery",children:(0,a.jsx)(n(),{src:t[h],alt:"Image ".concat(h+1," of ").concat(t.length),className:"max-w-full max-h-full w-auto h-auto object-contain",draggable:!1,fill:!0})}),t.length>1&&(0,a.jsxs)("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 text-white text-sm bg-black bg-opacity-50 px-3 py-1 rounded-full",children:[h+1," / ",t.length]}),t.length>1&&(0,a.jsx)("div",{className:"absolute bottom-16 left-1/2 -translate-x-1/2 flex space-x-2",children:t.map((e,t)=>(0,a.jsx)("button",{onClick:()=>x(t),className:"w-16 h-16 rounded overflow-hidden border-2 transition-all ".concat(t===h?"border-white":"border-transparent hover:border-gray-400"),children:(0,a.jsx)(n(),{src:e,alt:"Thumbn
1ail ".concat(t+1),className:"w-full h-full object-cover",width:64,height:64})},t))})]}):null}},6439:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(4232);let s=a.forwardRef(function(e,t){let{title:r,titleId:s,...l}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},l),r?a.createElement("title",{id:s},r):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))})},7328:(e,t,r)=>{e.exports=r(9269)},8306:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(4232);let s=a.forwardRef(function(e,t){let{title:r,titleId:s,...l}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},l),r?a.createElement("title",{id:s},r):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))})},8620:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(4232);let s=a.forwardRef(function(e,t){let{title:r,titleId:s,...l}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},l),r?a.createElement("title",{id:s},r):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"}))})}},e=>{e.O(0,[636,593,792],()=>e(e.s=1068)),_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.