1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7942],{36525:(e,t,n)=>{Promise.resolve().then(n.bind(n,59236))},59236:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(81647),s=n(41063);function a(e){let{error:t,reset:n}=e,[a,r]=s.useState(!1),o=function(e){var t,n;let i=(null==(t=e.message)?void 0:t.toLowerCase())||"",s=(null==(n=e.name)?void 0:n.toLowerCase())||"";return i.includes("column")&&(i.includes("does not exist")||i.includes("not exist"))?{type:"database",title:"Database Schema Mismatch",description:"The database schema is out of sync with the application. This typically happens after code changes that add new fields.",devHint:"Run migrations: pnpm migrate:dev:<instance> (e.g. firstresponse, dealer, transport)"}:i.includes("relation")&&i.includes("does not exist")?{type:"database",title:"Missing Database Table",description:"A required database table is missing. This may indicate migrations need to be run.",devHint:"Run migrations: pnpm migrate:dev:<instance> (e.g. firstresponse, dealer, transport)"}:i.includes("econnrefused")||i.includes("connection refused")||i.includes("fetch failed")||i.includes("network")?{type:"connection",title:"Backend Connection Error",description:"Unable to connect to the CMS backend. The server may be starting up or experiencing issues.",devHint:"Ensure the backend is running: pnpm dev:<instance> (e.g. firstresponse, dealer, transport)"}:i.includes("graphql")||s.includes("graphql")?{type:"graphql",title:"API Error",description:"The GraphQL API returned an error. Check the backend logs for more details.",devHint:"Check terminal for GraphQL/Payload errors"}:i.includes("drizzle")||i.includes("queryerror")?{type:"database",title:"Database Query Error",description:"A database query failed. This may be due to schema changes or connection issues.",devHint:"Check if migrations are needed: pnpm migrate:create:bbmcms <name>"}:{type:"unknown",title:"Something Went Wrong",description:"We're experiencing technical difficulties. Please try again later."}}(t);return s.useEffect(()=>{console.error("Error boundary caught:",t)},[t]),(0,i.jsx)("div",{className:"flex items-center justify-center bg-gray-100 px-4 py-20",children:(0,i.jsxs)("div",{className:"text-center max-w-2xl w-full",children:[(0,i.jsx)("div",{"aria-hidden":"true",className:"text-6xl mb-4",children:{database:"\uD83D\uDDC4ï¸",connection:"\uD83D\uDD0C",graphql:"\uD83D\uDCE1",unknown:"â ï¸"}[o.type]}),(0,i.jsx)("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"500"}),(0,i.jsx)("h2",{className:"text-2xl font-semibold text-gray-700 mb-4",children:o.title}),(0,i.jsx)("p",{className:"text-gray-600 mb-6",children:o.description}),!1,(0,i.jsxs)("div",{className:"flex gap-4 justify-center flex-wrap",children:[(0,i.jsx)("button",{onClick:n,className:"inline-block bg-blue-600 text-white px-6 py-3 rounded-lg hover:bg-blue-700 transition-colors",children:"Try Again"}),(0,i.jsx)("a",{href:"/",className:"inline-block button-solid px-6 py-3 rounded-lg hover:opacity-90 transition-opacity",children:"Go Home"})]}),!1]})})}}},e=>{e.O(0,[6649,3192,7358],()=>e(e.s=36525)),_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.