(()=>{var e={};e.id=990,e.ids=[990],e.modules={3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},7156:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var s=r(60687),a=r(43210);function n(){let[e,t]=(0,a.useState)("Testing..."),[r,n]=(0,a.useState)(null),[o,i]=(0,a.useState)(null),[l,d]=(0,a.useState)([]);return(0,s.jsxs)("div",{className:"container mx-auto p-8",children:[(0,s.jsx)("h1",{className:"text-3xl font-bold mb-8",children:"API Debug Page"}),(0,s.jsxs)("div",{className:"mb-8 p-4 bg-gray-100 rounded",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold mb-2",children:"API Status"}),(0,s.jsx)("p",{children:e})]}),(0,s.jsxs)("div",{className:"mb-8 p-4 bg-red-50 rounded",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold mb-2",children:"Debug Log"}),l.map((e,t)=>(0,s.jsx)("p",{className:"text-sm font-mono",children:e},t))]}),r&&(0,s.jsxs)("div",{className:"mb-8 p-4 bg-green-50 rounded",children:[(0,s.jsxs)("h2",{className:"text-xl font-semibold mb-2",children:["Categories (",Array.isArray(r)?r.length:"Not array",")"]}),(0,s.jsx)("pre",{className:"text-xs overflow-auto max-h-40",children:JSON.stringify(r,null,2)})]}),o&&(0,s.jsxs)("div",{className:"mb-8 p-4 bg-blue-50 rounded",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold mb-2",children:"Products"}),(0,s.jsxs)("p",{children:["Data type: ",Array.isArray(o?.data)?"Array":typeof o?.data]}),(0,s.jsxs)("p",{children:["Count: ",Array.isArray(o?.data)?o.data.length:"Unknown"]}),(0,s.jsx)("pre",{className:"text-xs overflow-auto max-h-40",children:JSON.stringify(o,null,2)})]})]})}},10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:e=>{"use strict";e.exports=require("next/dist/server/app-render/action-async-storage.external.js")},23779:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>o.a,__next_app__:()=>c,pages:()=>p,routeModule:()=>m,tree:()=>d});var s=r(65239),a=r(48088),n=r(88170),o=r.n(n),i=r(30893),l={};for(let e in i)0>["default","tree","pages","GlobalError","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>i[e]);r.d(t,l);let d={children:["",{children:["test-api",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,32022)),"C:\\Users\\jaafa\\OneDrive\\Documents\\myProjects\\samer_api-front\\samer_webshop_v1\\src\\app\\test-api\\page.tsx"]}]},{metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,70440))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(r.bind(r,94431)),"C:\\Users\\jaafa\\OneDrive\\Documents\\myProjects\\samer_api-front\\samer_webshop_v1\\src\\app\\layout.tsx"],"not-found":[()=>Promise.resolve().then(r.t.bind(r,57398,23)),"next/dist/client/components/not-found-error"],forbidden:[()=>Promise.resolve().then(r.t.bind(r,89999,23)),"next/dist/client/components/forbidden-error"],unauthorized:[()=>Promise.resolve().then(r.t.bind(r,65284,23)),"next/dist/client/components/unauthorized-error"],metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,70440))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]}.children,p=["C:\\Users\\jaafa\\OneDrive\\Documents\\myProjects\\samer_api-front\\samer_webshop_v1\\src\\app\\test-api\\page.tsx"],c={require:r,loadChunk:()=>Promise.resolve()},m=new s.AppPageRouteModule({definition:{kind:a.RouteKind.APP_PAGE,page:"/test-api/page",pathname:"/test-api",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32022:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});let s=(0,r(12907).registerClientReference)(function(){throw Error("Attempted to call the default export of \"C:\\\\Users\\\\jaafa\\\\OneDrive\\\\Documents\\\\myProjects\\\\samer_api-front\\\\samer_webshop_v1\\\\src\\\\app\\\\test-api\\\\page.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"C:\\Users\\jaafa\\OneDrive\\Documents\\myProjects\\samer_api-front\\samer_webshop_v1\\src\\app\\test-api\\page.tsx","default")},33873:e=>{"use strict";e.exports=require("path")},50717:(e,t,r)=>{Promise.resolve().then(r.bind(r,7156))},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64221:(e,t,r)=>{Promise.resolve().then(r.bind(r,32022))},70440:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var s=r(31658);let a=async e=>[{type:"image/x-icon",sizes:"16x16",url:(0,s.fillMetadataSegment)(".",await e.params,"favicon.ico")+""}]},79551:e=>{"use strict";e.exports=require("url")}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[447,726,658,191],()=>r(23779));module.exports=s})();