makearmy-app/.next/server/app/laser-toolkit/pulse-overlap/page.js
2025-09-22 10:37:53 -04:00

1 line
No EOL
8.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(()=>{var e={};e.id=5957,e.ids=[5957],e.modules={2376:(e,t,s)=>{"use strict";s.r(t),s.d(t,{GlobalError:()=>n.a,__next_app__:()=>m,pages:()=>c,routeModule:()=>p,tree:()=>d});var r=s(65239),a=s(48088),i=s(88170),n=s.n(i),l=s(30893),o={};for(let e in l)0>["default","tree","pages","GlobalError","__next_app__","routeModule"].indexOf(e)&&(o[e]=()=>l[e]);s.d(t,o);let d={children:["",{children:["laser-toolkit",{children:["pulse-overlap",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,42386)),"/app/app/laser-toolkit/pulse-overlap/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/laser-toolkit/pulse-overlap/page.tsx"],m={require:s,loadChunk:()=>Promise.resolve()},p=new r.AppPageRouteModule({definition:{kind:a.RouteKind.APP_PAGE,page:"/laser-toolkit/pulse-overlap/page",pathname:"/laser-toolkit/pulse-overlap",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},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")},19121:e=>{"use strict";e.exports=require("next/dist/server/app-render/action-async-storage.external.js")},23032:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var r=s(60687),a=s(85814),i=s.n(a);function n({title:e,subtitle:t,children:s}){return(0,r.jsxs)("div",{className:"mx-auto max-w-4xl px-4 py-8 space-y-6",children:[(0,r.jsxs)("header",{className:"flex items-start justify-between gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-semibold",children:e}),t&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:t})]}),(0,r.jsx)(i(),{href:"https://makearmy.io",className:"rounded-lg px-3 py-2 border hover:bg-muted transition-colors text-sm",children:"Back to Main Menu"})]}),s]})}},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:()=>{},42386:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>r});let r=(0,s(12907).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/app/app/laser-toolkit/pulse-overlap/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/laser-toolkit/pulse-overlap/page.tsx","default")},55192:(e,t,s)=>{"use strict";s.d(t,{Wu:()=>d,ZB:()=>o,Zp:()=>n,aR:()=>l});var r=s(60687),a=s(43210),i=s(96241);let n=a.forwardRef(({className:e,...t},s)=>(0,r.jsx)("div",{ref:s,className:(0,i.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));n.displayName="Card";let l=a.forwardRef(({className:e,...t},s)=>(0,r.jsx)("div",{ref:s,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",e),...t}));l.displayName="CardHeader";let o=a.forwardRef(({className:e,...t},s)=>(0,r.jsx)("div",{ref:s,className:(0,i.cn)("text-2xl font-semibold leading-none tracking-tight",e),...t}));o.displayName="CardTitle",a.forwardRef(({className:e,...t},s)=>(0,r.jsx)("div",{ref:s,className:(0,i.cn)("text-sm text-muted-foreground",e),...t})).displayName="CardDescription";let d=a.forwardRef(({className:e,...t},s)=>(0,r.jsx)("div",{ref:s,className:(0,i.cn)("p-6 pt-0",e),...t}));d.displayName="CardContent",a.forwardRef(({className:e,...t},s)=>(0,r.jsx)("div",{ref:s,className:(0,i.cn)("flex items-center p-6 pt-0",e),...t})).displayName="CardFooter"},56444:(e,t,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,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>i,metadata:()=>a});var r=s(37413);s(90061);let a={title:"LE-DB",description:"Laser Everything Community Database"};function i({children:e}){return(0,r.jsx)("html",{lang:"en",className:"dark",children:(0,r.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,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))},68988:(e,t,s)=>{"use strict";s.d(t,{p:()=>n});var r=s(60687),a=s(43210),i=s(96241);let n=a.forwardRef(({className:e,type:t="text",...s},a)=>(0,r.jsx)("input",{type:t,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm","shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium","placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...s}));n.displayName="Input"},83696:(e,t,s)=>{Promise.resolve().then(s.bind(s,99712))},90061:()=>{},90320:(e,t,s)=>{Promise.resolve().then(s.bind(s,42386))},96241:(e,t,s)=>{"use strict";s.d(t,{cn:()=>i});var r=s(49384),a=s(82348);function i(...e){return(0,a.QP)((0,r.$)(e))}},96999:()=>{},99712:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>d});var r=s(60687),a=s(43210),i=s(23032),n=s(55192),l=s(68988);function o(e){let t=parseFloat(e);return Number.isFinite(t)?t:0}function d(){let[e,t]=(0,a.useState)("800"),[s,d]=(0,a.useState)("60"),[c,m]=(0,a.useState)("50"),p=(0,a.useMemo)(()=>{let t=o(e),r=o(s),a=o(c);if(t<=0||r<=0||a<=0)return{spacingUm:0,spacingMm:0,overlapPct:0,pulsesPerMm:0};let i=t/r,n=Math.max(0,Math.min(100,100*(1-i/a)));return{spacingUm:i,spacingMm:i/1e3,overlapPct:n,pulsesPerMm:1e3*r/t}},[e,s,c]);return(0,r.jsxs)(i.A,{title:"Pulse Overlap",children:[(0,r.jsxs)(n.Zp,{children:[(0,r.jsx)(n.aR,{children:(0,r.jsx)(n.ZB,{className:"text-base",children:"Inputs"})}),(0,r.jsxs)(n.Wu,{className:"grid gap-3 sm:grid-cols-3",children:[(0,r.jsxs)("label",{className:"text-[11px] sm:text-xs",children:[(0,r.jsx)("div",{className:"mb-1 text-muted-foreground",children:"Speed (mm/s)"}),(0,r.jsx)(l.p,{inputMode:"decimal",value:e,onChange:e=>t(e.target.value)})]}),(0,r.jsxs)("label",{className:"text-[11px] sm:text-xs",children:[(0,r.jsx)("div",{className:"mb-1 text-muted-foreground",children:"Frequency (kHz)"}),(0,r.jsx)(l.p,{inputMode:"decimal",value:s,onChange:e=>d(e.target.value)})]}),(0,r.jsxs)("label",{className:"text-[11px] sm:text-xs",children:[(0,r.jsx)("div",{className:"mb-1 text-muted-foreground",children:"Spot size (\xb5m)"}),(0,r.jsx)(l.p,{inputMode:"decimal",value:c,onChange:e=>m(e.target.value)})]})]})]}),(0,r.jsxs)(n.Zp,{className:"mt-4",children:[(0,r.jsx)(n.aR,{children:(0,r.jsx)(n.ZB,{className:"text-base",children:"Results"})}),(0,r.jsxs)(n.Wu,{className:"grid gap-3 sm:grid-cols-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-sm text-muted-foreground",children:"Pulse spacing"}),(0,r.jsxs)("div",{className:"text-lg",children:[p.spacingMm.toFixed(4)," mm"]}),(0,r.jsxs)("div",{className:"text-xs text-muted-foreground",children:[p.spacingUm.toFixed(1)," \xb5m"]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-sm text-muted-foreground",children:"Overlap"}),(0,r.jsxs)("div",{className:"text-lg",children:[p.overlapPct.toFixed(1),"%"]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-sm text-muted-foreground",children:"Pulses per mm"}),(0,r.jsx)("div",{className:"text-lg",children:p.pulsesPerMm.toFixed(1)})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-sm text-muted-foreground",children:"Rule of thumb"}),(0,r.jsx)("div",{className:"text-xs",children:"6080% overlap is common for marking; deeper engraving often higher."})]})]})]})]})}}};var t=require("../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[7719,4825,5814,9069],()=>s(2376));module.exports=r})();