(()=>{var e={};e.id=883,e.ids=[883],e.modules={3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4536:(e,r,t)=>{let{createProxy:s}=t(39844);e.exports=s("D:\\Repositories\\badagry-heritage-app\\node_modules\\next\\dist\\client\\app-dir\\link.js")},10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},15904:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>o});var s=t(37413),a=t(4536),i=t.n(a);function o(){return(0,s.jsxs)("div",{className:"p-6 max-w-2xl mx-auto text-center",children:[(0,s.jsx)("h2",{className:"text-3xl font-bold mb-4",children:"History Not Found"}),(0,s.jsx)("p",{className:"text-gray-600 mb-6",children:"We couldn’t find the history you were looking for."}),(0,s.jsx)(i(),{href:"/histories",className:"text-blue-600 underline",children:"Go back to histories"})]})}},19121:e=>{"use strict";e.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21592:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>a});var s=t(37413);function a(){return(0,s.jsxs)("div",{className:"p-6 max-w-3xl mx-auto animate-pulse",children:[(0,s.jsx)("h1",{className:"text-2xl font-semibold bg-gray-200 h-8 w-3/4 mb-4"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("div",{className:"bg-gray-200 h-4 w-full rounded"}),(0,s.jsx)("div",{className:"bg-gray-200 h-4 w-5/6 rounded"}),(0,s.jsx)("div",{className:"bg-gray-200 h-4 w-2/3 rounded"})]})]})}t(61120)},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:e=>{"use strict";e.exports=require("path")},47056:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,4536,23))},56736:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>d,generateMetadata:()=>n,generateStaticParams:()=>o});var s=t(37413);let a="https://museumcall-badagry-backend.onrender.com/api/v1";var i=t(19984);t(61120);let o=async()=>{try{let e=await fetch(a+"/histories");if(!e.ok)return console.error("Failed to fetch histories for static generation"),[];let r=await e.json();return r.data?.map(e=>({slug:e.slug}))}catch(e){return console.error("\n\n Error in generateStaticParams:",e),[]}},n=async({params:e})=>{let{slug:r}=await e;try{let e=await fetch(a+"/histories/"+r),t=await e.json();return{title:t?.title,description:t?.etaDescription,image:t?.imageUrl}}catch{return{title:"history title"}}},d=async({params:e})=>{let{slug:r}=await e;return(0,s.jsx)(i.default,{slug:r})}},56784:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,85814,23))},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},75540:(e,r,t)=>{"use strict";t.r(r),t.d(r,{GlobalError:()=>o.a,__next_app__:()=>u,pages:()=>p,routeModule:()=>c,tree:()=>l});var s=t(65239),a=t(48088),i=t(88170),o=t.n(i),n=t(30893),d={};for(let e in n)0>["default","tree","pages","GlobalError","__next_app__","routeModule"].indexOf(e)&&(d[e]=()=>n[e]);t.d(r,d);let l={children:["",{children:["history",{children:["[slug]",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(t.bind(t,56736)),"D:\\Repositories\\badagry-heritage-app\\src\\app\\history\\[slug]\\page.tsx"]}]},{loading:[()=>Promise.resolve().then(t.bind(t,21592)),"D:\\Repositories\\badagry-heritage-app\\src\\app\\history\\[slug]\\loading.tsx"],"not-found":[()=>Promise.resolve().then(t.bind(t,15904)),"D:\\Repositories\\badagry-heritage-app\\src\\app\\history\\[slug]\\not-found.tsx"]}]},{metadata:{icon:[async e=>(await Promise.resolve().then(t.bind(t,70440))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(t.bind(t,94431)),"D:\\Repositories\\badagry-heritage-app\\src\\app\\layout.tsx"],"not-found":[()=>Promise.resolve().then(t.bind(t,52608)),"D:\\Repositories\\badagry-heritage-app\\src\\app\\not-found.tsx"],forbidden:[()=>Promise.resolve().then(t.t.bind(t,89999,23)),"next/dist/client/components/forbidden-error"],unauthorized:[()=>Promise.resolve().then(t.t.bind(t,65284,23)),"next/dist/client/components/unauthorized-error"],metadata:{icon:[async e=>(await Promise.resolve().then(t.bind(t,70440))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]}.children,p=["D:\\Repositories\\badagry-heritage-app\\src\\app\\history\\[slug]\\page.tsx"],u={require:t,loadChunk:()=>Promise.resolve()},c=new s.AppPageRouteModule({definition:{kind:a.RouteKind.APP_PAGE,page:"/history/[slug]/page",pathname:"/history/[slug]",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:l}})},79551:e=>{"use strict";e.exports=require("url")}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[447,12,67,837],()=>t(75540));module.exports=s})();