1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[961],{1507:function(e,t,r){Promise.resolve().then(r.bind(r,7763))},7763:function(e,t,r){"use strict";r.d(t,{default:function(){return c}});var s=r(7437),a=r(9376),n=r(2265),o=r(7648),i=r(3145);function l(e){let{article:t}=e,r=t.description||t.paragraph_1||"",a=r.length>140?r.slice(0,140).trimEnd()+"â¦":r,n=new Date(t.created_at).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"});return(0,s.jsxs)(o.default,{href:"/journal/".concat(t.slug),className:"group block bg-white shadow-sm hover:shadow-md transition-all duration-300 overflow-hidden border border-gray-100 hover:border-crimson/20",children:[(0,s.jsxs)("div",{className:"relative h-52 bg-gray-100 overflow-hidden",children:[t.first_image_url?(0,s.jsx)(i.default,{src:t.first_image_url,alt:t.first_image_alt_text||t.title,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-500",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"}):(0,s.jsx)("div",{className:"w-full h-full flex items-center justify-center bg-cream/50",children:(0,s.jsxs)("svg",{className:"w-12 h-12 text-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 0v2m0 16v2M2 12h2m16 0h2"}),(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M15.536 8.464l-4.95 2.122-2.122 4.95 4.95-2.122 2.122-4.95z"})]})}),t.topic&&(0,s.jsx)("div",{className:"absolute top-3 left-3",children:(0,s.jsx)("span",{className:"bg-gold text-navy text-xs font-bold px-2.5 py-1 tracking-wide uppercase",children:t.topic})})]}),(0,s.jsxs)("div",{className:"p-6",children:[(0,s.jsx)("p",{className:"text-xs text-navy/40 mb-2",children:n}),(0,s.jsx)("h3",{className:"font-serif text-lg font-bold text-navy mb-2 leading-snug group-hover:text-crimson transition-colors line-clamp-2",children:t.title}),t.subtitle&&(0,s.jsx)("p",{className:"text-navy/60 text-sm mb-3 line-clamp-1",children:t.subtitle}),a&&(0,s.jsx)("p",{className:"text-navy/50 text-sm leading-relaxed line-clamp-3",children:a}),(0,s.jsxs)("div",{className:"mt-4 flex items-center gap-1 text-crimson text-xs font-semibold tracking-wide uppercase",children:["Read More",(0,s.jsx)("svg",{className:"w-3.5 h-3.5 group-hover:translate-x-1 transition-transform",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]})}function c(e){let{articles:t,total:r,topics:i,currentSearch:c,currentTopic:d,currentPage:u}=e,m=(0,a.useRouter)(),[x,h]=(0,n.useState)(c),[g,p]=(0,n.useTransition)(),f=Math.ceil(r/9);function v(e){let t=new URLSearchParams;e.search&&t.set("search",e.search),e.topic&&t.set("topic",e.topic),e.page&&"1"!==e.page&&t.set("page",e.page);let r=t.toString();return"/journal".concat(r?"?".concat(r):"")}function b(e){p(()=>{m.push(v({search:c,topic:d,page:String(e)})),window.scrollTo({top:0,behavior:"smooth"})})}let j=c||d;return(0,s.jsx)("section",{className:"py-16 bg-white min-h-[60vh]",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)("div",{className:"mb-10 flex flex-col md:flex-row gap-4 items-start md:items-center",children:[(0,s.jsxs)("form",{onSubmit:function(e){e.preventDefault(),p(()=>{m.push(v({search:x,topic:d,page:"1"}))})},className:"flex gap-2 flex-1 max-w-md",children:[(0,s.jsx)("input",{type:"text",value:x,onChange:e=>h(e.target.value),placeholder:"Search articlesâ¦",className:"flex-1 border border-gray-200 rounded-lg px-4 py-2.5 text-sm text-navy placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-crimson/30 focus:border-crimson transition-all"}),(0,s.jsx)("button",{type:"submit",className:"bg-crimson text-cream px-4 py-2.5 rounded-lg text-sm font-medium hover:bg-crimson-dark transition-colors",children:(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]}),i.length>0&&(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:i.map(e=>(0,s.jsx)("button",{onClick:()=>(function(e){let t=e===d?"":e;p(()=>{m.push(v({search:c,topic:t,page:"1"}))})})(e),className:"px-3 py-1.5 rounded-full text-xs font-semibold tracking-wide transition-all ".concat(d===e?"bg-gold text-navy":"bg-gray-100 text-navy/60 hover:bg-gray-200"),children:e},e))}),j&&(0,s.jsx)(o.default,{href:"/journal",className:"text-xs text-crimson hover:underline whitespace-nowrap",children:"Clear filters"})]}),(0,s.jsx)("div",{className:"mb-6 flex items-center justify-between",children:(0,s.jsx)("p",{className:"text-navy/50 text-sm",children:g?"Loadingâ¦":0===r?"No articles found":(0,s.jsxs)(s.Fragment,{children:[r," article",1!==r?"s":"",j?" matching your search":""]})})}),g?(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[...Array(6)].map((e,t)=>(0,s.jsxs)("div",{className:"bg-gray-50 rounded-lg overflow-hidden animate-pulse",children:[(0,s.jsx)("div",{className:"h-52 bg-gray-200"}),(0,s.jsxs)("div",{className:"p-6 space-y-3",children:[(0,s.jsx)("div",{className:"h-3 bg-gray-200 rounded w-1/4"}),(0,s.jsx)("div",{className:"h-5 bg-gray-200 rounded w-3/4"}),(0,s.jsx)("div",{className:"h-4 bg-gray-100 rounded w-full"}),(0,s.jsx)("div",{className:"h-4 bg-gray-100 rounded w-5/6"})]})]},t))}):0===t.length?(0,s.jsxs)("div",{className:"text-center py-24",children:[(0,s.jsx)("div",{className:"w-20 h-20 rounded-full bg-crimson/10 flex items-center justify-center mx-auto mb-6",children:(0,s.jsxs)("svg",{className:"w-10 h-10 text-crimson",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 0v2m0 16v2M2 12h2m16 0h2"}),(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15.536 8.464l-4.95 2.122-2.122 4.95 4.95-2.122 2.122-4.95z"})]})}),(0,s.jsx)("h3",{className:"font-serif text-2xl font-bold text-navy mb-3",children:"No Articles Yet"}),(0,s.jsx)("p",{className:"text-navy/50 text-base max-w-md mx-auto",children:j?"No articles match your search. Try different keywords or clear the filters.":"Our Adventurer's Journal is being prepared. Check back soon for expedition reports and field notes."}),j&&(0,s.jsx)(o.default,{href:"/journal",className:"inline-block mt-6 btn-primary",children:"Clear Filters"})]}):(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:t.map(e=>(0,s.jsx)(l,{article:e},e.id))}),f>1&&(0,s.jsxs)("div",{className:"mt-14 flex items-center justify-center gap-2",children:[(0,s.jsx)("button",{onClick:()=>b(u-1),disabled:1===u||g,className:"px-4 py-2 border border-gray-200 text-navy/60 hover:text-navy hover:border-navy rounded-lg text-sm disabled:opacity-40 disabled:cursor-not-allowed transition-all",children:"Previous"}),[...Array(f)].map((e,t)=>{let r=t+1;
1return 1===r||r===f||1>=Math.abs(r-u)?(0,s.jsx)("button",{onClick:()=>b(r),disabled:g,className:"w-10 h-10 rounded-lg text-sm font-medium transition-all ".concat(r===u?"bg-crimson text-cream":"border border-gray-200 text-navy/60 hover:text-navy hover:border-navy"),children:r},r):2===Math.abs(r-u)?(0,s.jsx)("span",{className:"text-gray-400",children:"â¦"},r):null}),(0,s.jsx)("button",{onClick:()=>b(u+1),disabled:u===f||g,className:"px-4 py-2 border border-gray-200 text-navy/60 hover:text-navy hover:border-navy rounded-lg text-sm disabled:opacity-40 disabled:cursor-not-allowed transition-all",children:"Next"})]})]})})}},3145:function(e,t,r){"use strict";r.d(t,{default:function(){return a.a}});var s=r(8461),a=r.n(s)},7648:function(e,t,r){"use strict";r.d(t,{default:function(){return a.a}});var s=r(2972),a=r.n(s)},9376:function(e,t,r){"use strict";var s=r(5475);r.o(s,"usePathname")&&r.d(t,{usePathname:function(){return s.usePathname}}),r.o(s,"useRouter")&&r.d(t,{useRouter:function(){return s.useRouter}})},8461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return i}});let s=r(7043),a=r(5346),n=r(5878),o=s._(r(5084));function i(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=n.Image}},function(e){e.O(0,[972,878,971,117,744],function(){return e(e.s=1507)}),_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.