Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6459],{4468:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});var a=s(5155),r=s(2115),n=s(5695),i=s(6874),l=s.n(i);function o(){let{id:e}=(0,n.useParams)(),[t,s]=(0,r.useState)(null),[i,o]=(0,r.useState)({});if((0,r.useEffect)(()=>{e&&(fetch("".concat("https://forms.lasereverything.net","/items/laser_source/").concat(e,"?fields=*")).then(e=>e.json()).then(e=>s(e.data||null)),fetch("".concat("https://forms.lasereverything.net","/fields/laser_source")).then(e=>e.json()).then(e=>{let t={};(e.data||[]).forEach(e=>{var s;"select-dropdown"===e.interface&&(null==(s=e.options)?void 0:s.choices)&&(t[e.field]={},e.options.choices.forEach(s=>{t[e.field][s.value]=s.text}))}),o(t)}))},[e]),!t)return(0,a.jsx)("div",{className:"p-6",children:"Loading..."});let c=(e,t)=>{var s;if(!t)return"—";let a={op:{pm:"MOPA",pq:"Q-Switch"},cooling:{aa:"Air, Active",ap:"Air, Passive",w:"Water"}};return a[e]&&a[e][t]?a[e][t]:(null==(s=i[e])?void 0:s[t])||t};return(0,a.jsxs)("div",{className:"p-6 max-w-4xl mx-auto",children:[(0,a.jsxs)("h1",{className:"text-3xl font-bold mb-4",children:[t.make||"—"," ",t.model||""]}),(0,a.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(e=>{let{title:s,fields:r}=e;return(0,a.jsxs)("section",{className:"bg-card border border-border rounded-xl p-4",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold mb-2",children:s}),(0,a.jsx)("dl",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-4",children:Object.entries(r).map(e=>{let[s,r]=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)("dt",{className:"font-medium text-muted-foreground",children:r}),(0,a.jsx)("dd",{className:"text-base break-words",children:c(s,t[s])})]},s)})})]},s)})}),(0,a.jsx)("div",{className:"mt-8",children:(0,a.jsx)(l(),{href:"/lasers",className:"text-blue-600 underline",children:"← Back to Laser Sources"})})]})}},5695:(e,t,s)=>{"use strict";var a=s(8999);s.o(a,"useParams")&&s.d(t,{useParams:function(){return a.useParams}}),s.o(a,"useRouter")&&s.d(t,{useRouter:function(){return a.useRouter}}),s.o(a,"useSearchParams")&&s.d(t,{useSearchParams:function(){return a.useSearchParams}})},9428:(e,t,s)=>{Promise.resolve().then(s.bind(s,4468))}},e=>{var t=t=>e(e.s=t);e.O(0,[6874,8441,1684,7358],()=>t(9428)),_N_E=e.O()}]);
|
||||
1
.next/static/chunks/app/lasers/page-b5e5aab1b35d6fb3.js
Normal file
1
.next/static/chunks/app/lasers/page-b5e5aab1b35d6fb3.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue