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

1 line
No EOL
5.8 KiB
JavaScript

(()=>{var e={};e.id=6459,e.ids=[6459],e.modules={3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10292:(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 \"/app/app/lasers/[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/lasers/[id]/page.tsx","default")},10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16189:(e,t,r)=>{"use strict";var s=r(65773);r.o(s,"useParams")&&r.d(t,{useParams:function(){return s.useParams}}),r.o(s,"useRouter")&&r.d(t,{useRouter:function(){return s.useRouter}}),r.o(s,"useSearchParams")&&r.d(t,{useSearchParams:function(){return s.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")},36319:()=>{},39804:(e,t,r)=>{Promise.resolve().then(r.bind(r,10292))},45840:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>a.a,__next_app__:()=>c,pages:()=>m,routeModule:()=>p,tree:()=>d});var s=r(65239),n=r(48088),i=r(88170),a=r.n(i),o=r(30893),l={};for(let e in o)0>["default","tree","pages","GlobalError","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>o[e]);r.d(t,l);let d={children:["",{children:["lasers",{children:["[id]",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,10292)),"/app/app/lasers/[id]/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(r.bind(r,58014)),"/app/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"]}]}.children,m=["/app/app/lasers/[id]/page.tsx"],c={require:r,loadChunk:()=>Promise.resolve()},p=new s.AppPageRouteModule({definition:{kind:n.RouteKind.APP_PAGE,page:"/lasers/[id]/page",pathname:"/lasers/[id]",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},56444:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,16444,23)),Promise.resolve().then(r.t.bind(r,16042,23)),Promise.resolve().then(r.t.bind(r,88170,23)),Promise.resolve().then(r.t.bind(r,49477,23)),Promise.resolve().then(r.t.bind(r,29345,23)),Promise.resolve().then(r.t.bind(r,12089,23)),Promise.resolve().then(r.t.bind(r,46577,23)),Promise.resolve().then(r.t.bind(r,31307,23))},58014:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i,metadata:()=>n});var s=r(37413);r(90061);let n={title:"LE-DB",description:"Laser Everything Community Database"};function i({children:e}){return(0,s.jsx)("html",{lang:"en",className:"dark",children:(0,s.jsx)("body",{children:e})})}},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66172:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,86346,23)),Promise.resolve().then(r.t.bind(r,27924,23)),Promise.resolve().then(r.t.bind(r,35656,23)),Promise.resolve().then(r.t.bind(r,40099,23)),Promise.resolve().then(r.t.bind(r,38243,23)),Promise.resolve().then(r.t.bind(r,28827,23)),Promise.resolve().then(r.t.bind(r,62763,23)),Promise.resolve().then(r.t.bind(r,97173,23))},90061:()=>{},91718:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var s=r(60687),n=r(43210),i=r(16189),a=r(85814),o=r.n(a);function l(){let{id:e}=(0,i.useParams)(),[t,r]=(0,n.useState)(null),[a,l]=(0,n.useState)({});if(!t)return(0,s.jsx)("div",{className:"p-6",children:"Loading..."});let d=(e,t)=>{if(!t)return"—";let r={op:{pm:"MOPA",pq:"Q-Switch"},cooling:{aa:"Air, Active",ap:"Air, Passive",w:"Water"}};return r[e]&&r[e][t]?r[e][t]:a[e]?.[t]||t};return(0,s.jsxs)("div",{className:"p-6 max-w-4xl mx-auto",children:[(0,s.jsxs)("h1",{className:"text-3xl font-bold mb-4",children:[t.make||"—"," ",t.model||""]}),(0,s.jsx)("div",{className:"space-y-6",children:[{title:"General Information",fields:{make:"Make",model:"Model",op:"Pulse Operation Mode",notes:"Notes"}},{title:"Optical Specifications",fields:{w:"Laser Wattage (W)",mj:"milliJoule Max (mJ)",nm:"Wavelength (nm)",k_hz:"Pulse Repetition Rate (kHz)",ns:"Pulse Width (ns)",d:"Beam Diameter (mm)",m2:"M\xb2 - Quality",instability:"Instability",polarization:"Polarization",band:"Band (nm)",anti:"Anti-Reflection Coating",mw:"Red Dot Wattage (mW)"}},{title:"Electrical & Timing",fields:{v:"Operating Voltage (V)",temp_op:"Operating Temperature (\xb0C)",temp_store:"Storage Temperature (\xb0C)",l_on:"l_on",l_off:"l_off",mj_c:"mj_c",ns_c:"ns_c",d_c:"d_c",on_c:"on_c",off_c:"off_c"}},{title:"Integration & Physical",fields:{cable:"Cable Length (m)",cooling:"Cooling Method",weight:"Weight (kg)",dimensions:"Dimensions (cm)"}}].map(({title:e,fields:r})=>(0,s.jsxs)("section",{className:"bg-card border border-border rounded-xl p-4",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold mb-2",children:e}),(0,s.jsx)("dl",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-4",children:Object.entries(r).map(([e,r])=>(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{className:"font-medium text-muted-foreground",children:r}),(0,s.jsx)("dd",{className:"text-base break-words",children:d(e,t[e])})]},e))})]},e))}),(0,s.jsx)("div",{className:"mt-8",children:(0,s.jsx)(o(),{href:"/lasers",className:"text-blue-600 underline",children:"← Back to Laser Sources"})})]})}},96999:()=>{},97948:(e,t,r)=>{Promise.resolve().then(r.bind(r,91718))}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[7719,4825,5814],()=>r(45840));module.exports=s})();