PageSourceSearch

https://friday.inspiredone.ai/_next/static/chunks/176cae08160bac7f.js

js inspiredone.ai collected 2026-09-24 14:31:03 UTC 13,909 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2939],{2939:(e,t,s)=>{s.r(t),s.d(t,{default:()=>k});var n=s(26277),i=s(91297),a=s(21542),l=s(98912),c=s(33871),r=s(75301),o=s(80617),d=s(8776),x=s(72458),m=s(66357),p=s(31592),h=s(55681);let b=e=>.001*e;function u(e){let{sb:t,cub:s,opts:a,sel:c,onPick:o,xOff:d}=e,x=b(s.wMm),m=b(t.heightMm),p=b(t.depthMm),u=b(s.xMm)+x/2-d+(a.explode?(s.xMm/t.widthMm-.5)*3.2:0),j=c===s.id,f=(0,i.useMemo)(()=>new r.BoxGeometry(x,m,p),[x,m,p]);return(0,n.jsxs)("group",{children:[(0,n.jsxs)("mesh",{position:[u,m/2,0],onClick:e=>{e.stopPropagation(),o(s.id)},children:[(0,n.jsx)("primitive",{object:f,attach:"geometry"}),(0,n.jsx)("meshStandardMaterial",{color:j?"#0ea5e9":"#3f4a5c",wireframe:a.wireframe,transparent:!0,opacity:a.wireframe?.6:.55,metalness:.4,roughness:.6})]}),(0,n.jsxs)("lineSegments",{position:[u,m/2,0],children:[(0,n.jsx)("edgesGeometry",{args:[f]}),(0,n.jsx)("lineBasicMaterial",{color:j?"#38bdf8":"#64748b"})]}),(0,n.jsx)(l.E,{position:[u,m+.16,0],center:!0,distanceFactor:11,zIndexRange:[10,0],children:(0,n.jsxs)("div",{style:{pointerEvents:"none",color:j?"#7dd3fc":"#cbd5e1",fontSize:11,fontWeight:700,whiteSpace:"nowrap"},children:[s.id," \xb7 ",s.label]})}),a.devices&&s.devices.map(e=>{var t;let s=b(e.wMm),i=b(e.hMm),r=u-x/2+b(e.xMm)+s/2,d=b(e.yMm)+i/2,m=p/2+.012,j=c===e.id,f=null!=(t=h.V7[e.kind])?t:"#94a3b8";return(0,n.jsxs)("group",{children:[(0,n.jsxs)("mesh",{position:[r,d,m],onClick:t=>{t.stopPropagation(),o(e.id)},children:[(0,n.jsx)("boxGeometry",{args:[s,i,.045]}),(0,n.jsx)("meshStandardMaterial",{color:f,emissive:j?f:"#000",emissiveIntensity:j?.85:.08,wireframe:a.wireframe,metalness:.25,roughness:.65})]}),j&&(0,n.jsx)(l.E,{position:[r,d+i/2+.07,m],center:!0,distanceFactor:7,zIndexRange:[10,0],children:(0,n.jsx)("div",{style:{pointerEvents:"none",color:"#fff",fontSize:10,fontWeight:700,whiteSpace:"nowrap"},children:e.label})})]},e.id)})]})}function j(e){let{sb:t,xOff:s,sel:i,onPick:a}=e,c=b(t.widthMm);return(0,n.jsx)("group",{children:t.busbars.map(e=>{let r=b(e.yMm),o=i===e.id,d="PE"===e.phase?"#22c55e":"N"===e.phase?"#94a3b8":"#f97316";return(0,n.jsxs)("group",{children:[(0,n.jsxs)("mesh",{position:[c/2-s,r,-b(t.depthMm)/2+.16],onClick:t=>{t.stopPropagation(),a(e.id)},children:[(0,n.jsx)("boxGeometry",{args:[c,.1,.02]}),(0,n.jsx)("meshStandardMaterial",{color:o?"#ffffff":d,emissive:o?d:"#000",emissiveIntensity:o?.8:.15,metalness:.8,roughness:.3})]}),o&&(0,n.jsx)(l.E,{position:[c/2-s,r+.14,0],center:!0,distanceFactor:9,zIndexRange:[10,0],children:(0,n.jsxs)("div",{style:{pointerEvents:"none",color:"#fff",fontSize:10,fontWeight:700,whiteSpace:"nowrap"},children:[e.label," \xb7 ",e.ratingA," A"]})})]},e.id)})})}function f(e){let{sb:t,sel:s}=e;if(!s)return null;let i=t.cubicles.find(e=>e.id===s),a=t.cubicles.flatMap(e=>e.devices).find(e=>e.id===s),l=t.busbars.find(e=>e.id===s),c=e=>{let{k:t,v:s}=e;return(0,n.jsxs)("div",{className:"flex gap-2 text-[10px]",children:[(0,n.jsx)("span",{className:"w-28 shrink-0 text-zinc-500",children:t}),(0,n.jsx)("span",{className:"text-zinc-200",children:s})]})},r=s,o=null;if(a){let e=t.bom.find(e=>e.refId===a.id);r="".concat(a.id," \xb7 ").concat(a.label),o=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c,{k:"Type",v:a.kind.toUpperCase()}),a.ratingA?(0,n.jsx)(c,{k:"Rating",v:"".concat(a.ratingA," A")}):null,a.make?(0,n.jsx)(c,{k:"Make / Model",v:"".concat(a.make).concat(a.model?" "+a.model:"")}):null,(0,n.jsx)(c,{k:"Position",v:"x ".concat(a.xMm," mm, y ").concat(a.yMm," mm")}),(0,n.jsx)(c,{k:"Size",v:"".concat(a.wMm," \xd7 ").concat(a.hMm," mm")}),a.qty?(0,n.jsx)(c,{k:"Qty",v:a.qty}):null,a.feedsTag?(0,n.jsx)(c,{k:"Feeds",v:(0,n.jsx)("span",{className:"text-sky-400 font-semibold",children:a.feedsTag})}):null,e?(0,n.jsx)(c,{k:"Part no.",v:"".concat(e.partNo," \xb7 ").concat(e.procurement)}):null,(null==e?void 0:e.unitCostInr)?(0,n.jsx)(c,{k:"Unit cost",v:"₹".concat(e.unitCostInr.toLocaleString())}):null]})}else if(i)r="".concat(i.id," \xb7 ").concat(i.label),o=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c,{k:"Function",v:i.function}),(0,n.jsx)(c,{k:"Width",v:"".concat(i.wMm," mm")}),(0,n.jsx)(c,{k:"Position",v:"".concat(i.xMm," mm from port end")}),(0,n.jsx)(c,{k:"Devices",v:i.devices.length}),(0,n.jsx)("div",{className:"mt-1 max-h-40 overflow-auto",children:i.devices.map(e=>(0,n.jsxs)("div",{className:"flex items-center gap-1.5 text-[9px] text-zinc-300",children:[(0,n.jsx)("span",{className:"inline-block h-2 w-2 rounded-sm",style:{background:h.V7[e.kind]}}),(0,n.jsx)("span",{className:"font-mono text-zinc-400",children:e.kind}),(0,n.jsx)("span",{className:"truncate",children:e.label})]},e.id))})]});else{if(!l)return null;r="".concat(l.id," \xb7 ").concat(l.label),o=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c,{k:"Phase",v:l.phase}),(0,n.jsx)(c,{k:"Rating",v:"".concat(l.ratingA," A")}),(0,n.jsx)(c,{k:"CSA",v:"".concat(l.csaMm2," mm\xb2")}),(0,n.jsx)(c,{k:"Material",v:l.material})]})}return(0,n.jsxs)("div",{className:"absolute right-2 top-16 z-20 max-h-[70%] w-80 overflow-auto rounded-lg border border-zinc-700 bg-zinc-950/93 p-2.5 backdrop-blur",children:[(0,n.jsx)("div",{className:"mb-1.5 text-[11px] font-bold text-zinc-100",children:r}),(0,n.jsx)("div",{className:"space-y-0.5",children:o})]})}function g(e){let{sb:t,onClose:s}=e,[a,l]=(0,i.useState)("all"),c=(0,h.To)(t),r=Array.from(new Set(t.bom.filter(e=>e.parent).map(e=>e.category))),d=t.bom.filter(e=>e.parent&&("all"===a||e.category===a)),x=e=>e>=1e7?"₹".concat((e/1e7).toFixed(2)," Cr"):e>=1e5?"₹".concat((e/1e5).toFixed(2)," L"):"₹".concat(Math.round(e).toLocaleStr
1ing());return(0,n.jsxs)("div",{className:"absolute inset-x-2 bottom-2 z-30 max-h-[54%] overflow-hidden rounded-lg border border-zinc-700 bg-zinc-950/96 backdrop-blur",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 border-b border-zinc-800 px-3 py-2",children:[(0,n.jsx)(o.A,{className:"h-4 w-4 text-sky-400"}),(0,n.jsx)("div",{className:"text-[12px] font-bold text-zinc-100",children:"MSB-01 Bill of Materials"}),(0,n.jsxs)("div",{className:"text-[10px] text-zinc-400",children:[c.lines," lines \xb7 ",c.devices," devices \xb7 ",Math.round(c.kg).toLocaleString()," kg \xb7 ",x(c.inr)]}),(0,n.jsx)("button",{onClick:s,className:"ml-auto rounded border border-zinc-700 px-2 py-0.5 text-[10px] text-zinc-300 hover:bg-zinc-800",children:"Close"})]}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-1 px-3 py-1.5",children:[(0,n.jsx)("button",{onClick:()=>l("all"),className:"rounded px-2 py-0.5 text-[10px] font-semibold ".concat("all"===a?"bg-sky-600 text-white":"border border-zinc-700 text-zinc-300"),children:"all"}),r.map(e=>(0,n.jsx)("button",{onClick:()=>l(e),className:"rounded px-2 py-0.5 text-[10px] font-semibold ".concat(a===e?"bg-sky-600 text-white":"border border-zinc-700 text-zinc-300"),children:e},e))]}),(0,n.jsx)("div",{className:"max-h-[calc(54vh-84px)] overflow-auto px-2 pb-2",children:(0,n.jsxs)("table",{className:"w-full text-left text-[10px]",children:[(0,n.jsx)("thead",{className:"sticky top-0 bg-zinc-950 text-zinc-500",children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{className:"px-1 py-1",children:"Part No."}),(0,n.jsx)("th",{children:"Description"}),(0,n.jsx)("th",{children:"Qty"}),(0,n.jsx)("th",{children:"Make"}),(0,n.jsx)("th",{children:"Value"}),(0,n.jsx)("th",{children:"Lead"}),(0,n.jsx)("th",{children:"Status"})]})}),(0,n.jsx)("tbody",{children:d.map(e=>{var t;return(0,n.jsxs)("tr",{className:"border-t border-zinc-900 hover:bg-zinc-900/60",children:[(0,n.jsx)("td",{className:"px-1 py-0.5 font-mono text-sky-300",children:e.partNo}),(0,n.jsx)("td",{className:"text-zinc-200",children:e.desc}),(0,n.jsxs)("td",{className:"text-zinc-300",children:[e.qty,"m"===e.uom?" m":""]}),(0,n.jsx)("td",{className:"text-zinc-500",children:null!=(t=e.make)?t:"—"}),(0,n.jsx)("td",{className:"text-zinc-400",children:e.unitCostInr?x(e.unitCostInr*e.qty):"—"}),(0,n.jsx)("td",{className:"text-zinc-500",children:e.leadWeeks?"".concat(e.leadWeeks," wk"):"—"}),(0,n.jsx)("td",{children:(0,n.jsx)("span",{className:"shortage"===e.procurement?"text-red-400 font-semibold":"ordered"===e.procurement?"text-amber-400":"text-emerald-400",children:e.procurement})})]},e.partNo)})})]})})]})}function k(e){let{sb:t=h.kW,onBack:s}=e,[l,r]=(0,i.useState)(null),[k,v]=(0,i.useState)(!1),[y,N]=(0,i.useState)({wireframe:!1,devices:!0,explode:!1}),z=b(t.widthMm)/2,w=(0,h.To)(t),M=t.checks.filter(e=>"pass"!==e.status);(0,i.useEffect)(()=>(window.__FD_SCENE=function(e){let t=(0,h.To)(e);return{design:e.id,parent:e.parentShip,tag:e.tag,rating:{voltageV:e.voltageV,busbarA:e.busbarRatingA,icuKa:e.icuKa,ip:e.ip,form:e.form},counts:{cubicles:t.cubicles,devices:t.devices,bomLines:t.lines},bom:{totalKg:Math.round(t.kg),totalInr:Math.round(t.inr)},checks:e.checks.map(e=>({id:e.id,status:e.status})),bbox:{min:[-e.widthMm/2e3,0,-e.depthMm/2e3],max:[e.widthMm/2e3,e.heightMm/1e3,e.depthMm/2e3]}}}(t),()=>{delete window.__FD_SCENE}),[t]);let C=e=>{let{on:t,onClick:s,icon:i,label:a}=e;return(0,n.jsxs)("button",{onClick:s,className:"inline-flex items-center gap-1 rounded-lg border px-2 py-1 text-[10px] font-semibold ".concat(t?"border-sky-500 bg-sky-950/40 text-sky-300":"border-zinc-700 text-zinc-300 hover:bg-zinc-800"),children:[i," ",a]})};return(0,n.jsxs)("div",{className:"relative h-full w-full bg-zinc-950",children:[(0,n.jsxs)("div",{className:"absolute left-0 right-0 top-0 z-20 flex flex-wrap items-center gap-1.5 border-b border-zinc-800 bg-zinc-950/88 px-3 py-2 backdrop-blur",children:[(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsxs)("div",{className:"truncate text-[13px] font-bold text-zinc-100",children:[(0,n.jsx)("span",{className:"text-sky-400",children:t.tag})," — ",t.label]}),(0,n.jsxs)("div",{className:"truncate text-[10px] text-zinc-500",children:[t.voltageV," V \xb7 ",t.phases,"ph \xb7 ",t.freqHz," Hz \xb7 busbar ",t.busbarRatingA," A \xb7 Icu ",t.icuKa," kA \xb7 ",t.ip," \xb7 ",t.form," \xb7 ",t.widthMm/1e3," m wide \xb7 in ",t.compartmentTag]})]}),(0,n.jsxs)("div",{className:"ml-auto flex items-center gap-1.5",children:[s&&(0,n.jsx)("button",{onClick:s,className:"rounded-lg border border-zinc-700 px-2 py-1 text-[10px] font-semibold text-zinc-300 hover:bg-zinc-800",children:"↑ Back to ship"}),(0,n.jsx)(C,{on:y.wireframe,onClick:()=>N(e=>({...e,wireframe:!e.wireframe})),icon:(0,n.jsx)(d.A,{className:"h-3 w-3"}),label:"Wireframe"}),(0,n.jsx)(C,{on:y.devices,onClick:()=>N(e=>({...e,devices:!e.devices})),icon:(0,n.jsx)(x.A,{className:"h-3 w-3"}),label:"Devices"}),(0,n.jsx)(C,{on:y.explode,onClick:()=>N(e=>({...e,explode:!e.explode})),icon:(0,n.jsx)(m.A,{className:"h-3 w-3"}),label:"Explode"}),(0,n.jsx)(C,{on:k,onClick:()=>v(e=>!e),icon:(0,n.jsx)(o.A,{className:"h-3 w-3"}),label:"BOM"})]})]}),(0,n.jsxs)("div",{className:"pointer-events-none absolute left-1/2 top-14 z-10 -translate-x-1/2 roun
1ded-full border border-sky-500/40 bg-sky-950/40 px-4 py-1 text-center text-[10px] font-semibold text-sky-200 backdrop-blur",children:[w.cubicles," cubicles \xb7 ",w.devices," devices \xb7 ",w.lines," BOM lines \xb7 ",Math.round(w.kg).toLocaleString()," kg \xb7 ",M.length," rule findings"]}),(0,n.jsxs)(a.Hl,{camera:{position:[0,2.4,9.5],fov:40,near:.01,far:200},onPointerMissed:()=>r(null),style:{background:"radial-gradient(130% 130% at 50% 0%,#0b1220 0%,#070a0f 60%)"},children:[(0,n.jsx)("ambientLight",{intensity:1}),(0,n.jsx)("directionalLight",{position:[6,9,8],intensity:1.15}),(0,n.jsx)("directionalLight",{position:[-6,4,-4],intensity:.4}),(0,n.jsx)(c.N,{makeDefault:!0,enableDamping:!0,dampingFactor:.08,target:[0,1.15,0],maxDistance:60}),(0,n.jsxs)("mesh",{position:[0,-.05,0],children:[(0,n.jsx)("boxGeometry",{args:[b(t.widthMm)+.2,.1,b(t.depthMm)+.2]}),(0,n.jsx)("meshStandardMaterial",{color:"#1e293b"})]}),(0,n.jsx)(j,{sb:t,xOff:z,sel:l,onPick:r}),t.cubicles.map(e=>(0,n.jsx)(u,{sb:t,cub:e,opts:y,sel:l,onPick:r,xOff:z},e.id))]}),(0,n.jsx)(f,{sb:t,sel:l}),(0,n.jsxs)("div",{className:"absolute left-2 top-16 z-20 w-60 rounded-lg border border-zinc-700 bg-zinc-950/93 p-2 backdrop-blur",children:[(0,n.jsxs)("div",{className:"mb-1 flex items-center gap-1 text-[10px] font-bold uppercase tracking-wide text-zinc-400",children:[(0,n.jsx)(p.A,{className:"h-3 w-3"})," Design rule checks"]}),t.checks.map(e=>(0,n.jsxs)("div",{className:"mb-1 rounded border border-zinc-800 bg-zinc-900/50 p-1.5",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("span",{className:"inline-block h-2 w-2 rounded-full ".concat("pass"===e.status?"bg-emerald-500":"warn"===e.status?"bg-amber-500":"bg-red-500")}),(0,n.jsx)("span",{className:"font-mono text-[9px] text-zinc-400",children:e.id})]}),(0,n.jsx)("div",{className:"text-[9px] text-zinc-300",children:e.text}),"pass"!==e.status&&(0,n.jsx)("div",{className:"text-[9px] text-amber-300",children:e.detail})]},e.id))]}),k&&(0,n.jsx)(g,{sb:t,onClose:()=>v(!1)}),(0,n.jsx)("div",{className:"pointer-events-none absolute bottom-2 left-1/2 z-10 -translate-x-1/2 rounded-full border border-zinc-700 bg-zinc-900/85 px-3 py-1 text-[10px] text-zinc-400 backdrop-blur",children:"Click any breaker, CT, relay or busbar to inspect \xb7 feeders link back to ship equipment tags"})]})}},8776:(e,t,s)=>{s.d(t,{A:()=>n});let n=(0,s(47472).A)("frame",[["line",{x1:"22",x2:"2",y1:"6",y2:"6",key:"15w7dq"}],["line",{x1:"22",x2:"2",y1:"18",y2:"18",key:"1ip48p"}],["line",{x1:"6",x2:"6",y1:"2",y2:"22",key:"a2lnyx"}],["line",{x1:"18",x2:"18",y1:"2",y2:"22",key:"8vb6jd"}]])},80617:(e,t,s)=>{s.d(t,{A:()=>n});let n=(0,s(47472).A)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]])}}]);

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.