makearmy-app/.next/server/app/materials/[id]/page.js
2025-09-22 10:37:53 -04:00

1 line
No EOL
5.6 KiB
JavaScript

(()=>{var e={};e.id=999,e.ids=[999],e.modules={3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16189:(e,r,s)=>{"use strict";var t=s(65773);s.o(t,"useParams")&&s.d(r,{useParams:function(){return t.useParams}}),s.o(t,"useRouter")&&s.d(r,{useRouter:function(){return t.useRouter}}),s.o(t,"useSearchParams")&&s.d(r,{useSearchParams:function(){return t.useSearchParams}})},19121:e=>{"use strict";e.exports=require("next/dist/server/app-render/action-async-storage.external.js")},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")},34912:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>t});let t=(0,s(12907).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/app/app/materials/[id]/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.")},"/app/app/materials/[id]/page.tsx","default")},36319:()=>{},45802:(e,r,s)=>{Promise.resolve().then(s.bind(s,34912))},56444:(e,r,s)=>{Promise.resolve().then(s.t.bind(s,16444,23)),Promise.resolve().then(s.t.bind(s,16042,23)),Promise.resolve().then(s.t.bind(s,88170,23)),Promise.resolve().then(s.t.bind(s,49477,23)),Promise.resolve().then(s.t.bind(s,29345,23)),Promise.resolve().then(s.t.bind(s,12089,23)),Promise.resolve().then(s.t.bind(s,46577,23)),Promise.resolve().then(s.t.bind(s,31307,23))},58014:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>a,metadata:()=>n});var t=s(37413);s(90061);let n={title:"LE-DB",description:"Laser Everything Community Database"};function a({children:e}){return(0,t.jsx)("html",{lang:"en",className:"dark",children:(0,t.jsx)("body",{children:e})})}},60582:(e,r,s)=>{"use strict";s.r(r),s.d(r,{GlobalError:()=>i.a,__next_app__:()=>h,pages:()=>c,routeModule:()=>p,tree:()=>l});var t=s(65239),n=s(48088),a=s(88170),i=s.n(a),o=s(30893),d={};for(let e in o)0>["default","tree","pages","GlobalError","__next_app__","routeModule"].indexOf(e)&&(d[e]=()=>o[e]);s.d(r,d);let l={children:["",{children:["materials",{children:["[id]",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,34912)),"/app/app/materials/[id]/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(s.bind(s,58014)),"/app/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(s.t.bind(s,57398,23)),"next/dist/client/components/not-found-error"],forbidden:[()=>Promise.resolve().then(s.t.bind(s,89999,23)),"next/dist/client/components/forbidden-error"],unauthorized:[()=>Promise.resolve().then(s.t.bind(s,65284,23)),"next/dist/client/components/unauthorized-error"]}]}.children,c=["/app/app/materials/[id]/page.tsx"],h={require:s,loadChunk:()=>Promise.resolve()},p=new t.AppPageRouteModule({definition:{kind:n.RouteKind.APP_PAGE,page:"/materials/[id]/page",pathname:"/materials/[id]",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:l}})},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},65234:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>d});var t=s(60687),n=s(85814),a=s.n(n),i=s(43210),o=s(16189);function d(){let{id:e}=(0,o.useParams)(),[r,s]=(0,i.useState)(null);return r?(0,t.jsxs)("div",{className:"p-6 max-w-4xl mx-auto",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold mb-4",children:r.name}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Category:"})," ",r.material_cat?.name||"—"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Status:"})," ",r.material_status?.name||"—"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Abbreviation:"})," ",r.abbreviation||"—"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Common Names:"})," ",r.common_names||"—"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Technical Name:"})," ",r.technical_name||"—"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Composition:"})," ",r.composition||"—"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Notes:"})," ",r.notes||"—"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Override Reason:"})," ",r.override_reason||"—"]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("strong",{children:"Hazard Tags"}),(0,t.jsx)("ul",{className:"list-disc pl-6",children:Array.isArray(r.hazard_tags)&&r.hazard_tags.length>0?r.hazard_tags.map((e,r)=>(0,t.jsxs)("li",{children:[e.hazard_tags_id?.hazard_source?.source||"—"," |"," ",e.hazard_tags_id?.hazard_danger?.danger||"—"," |"," ",e.hazard_tags_id?.hazard_severity?.severity||"—"]},r)):(0,t.jsx)("li",{children:"None"})})]})]}),(0,t.jsx)("div",{className:"mt-8",children:(0,t.jsx)(a(),{href:"/materials",className:"text-blue-600 underline",children:"← Back to Materials"})})]}):(0,t.jsx)("div",{className:"p-6",children:"Loading..."})}},66172:(e,r,s)=>{Promise.resolve().then(s.t.bind(s,86346,23)),Promise.resolve().then(s.t.bind(s,27924,23)),Promise.resolve().then(s.t.bind(s,35656,23)),Promise.resolve().then(s.t.bind(s,40099,23)),Promise.resolve().then(s.t.bind(s,38243,23)),Promise.resolve().then(s.t.bind(s,28827,23)),Promise.resolve().then(s.t.bind(s,62763,23)),Promise.resolve().then(s.t.bind(s,97173,23))},85554:(e,r,s)=>{Promise.resolve().then(s.bind(s,65234))},90061:()=>{},96999:()=>{}};var r=require("../../../webpack-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[7719,4825,5814],()=>s(60582));module.exports=t})();