enterprise-saa-s-dashboard-.../.next/server/chunks/ssr/[root-of-the-server]__5905f...

3 lines
12 KiB
JavaScript

module.exports=[36313,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.HooksClientContext},18341,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.ServerInsertedHtml},18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},42602,(a,b,c)=>{"use strict";b.exports=a.r(18622)},87924,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactJsxRuntime},72131,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].React},9270,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.AppRouterContext},38783,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactServerDOMTurbopackClient},70106,a=>{"use strict";var b=a.i(72131);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)};var e={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let f=(0,b.createContext)({}),g=(0,b.forwardRef)(({color:a,size:d,strokeWidth:g,absoluteStrokeWidth:h,className:i="",children:j,iconNode:k,...l},m)=>{let{size:n=24,strokeWidth:o=2,absoluteStrokeWidth:p=!1,color:q="currentColor",className:r=""}=(0,b.useContext)(f)??{},s=h??p?24*Number(g??o)/Number(d??n):g??o;return(0,b.createElement)("svg",{ref:m,...e,width:d??n??e.width,height:d??n??e.height,stroke:a??q,strokeWidth:s,className:c("lucide",r,i),...!j&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(l)&&{"aria-hidden":"true"},...l},[...k.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(j)?j:[j]])}),h=(a,e)=>{let f=(0,b.forwardRef)(({className:f,...h},i)=>(0,b.createElement)(g,{ref:i,iconNode:e,className:c(`lucide-${d(a).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${a}`,f),...h}));return f.displayName=d(a),f};a.s(["default",()=>h],70106)},46058,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},39118,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={DEFAULT_SEGMENT_KEY:function(){return l},NOT_FOUND_SEGMENT_KEY:function(){return m},PAGE_SEGMENT_KEY:function(){return k},addSearchParamsIfPageSegment:function(){return i},computeSelectedLayoutSegment:function(){return j},getSegmentValue:function(){return f},getSelectedLayoutSegmentPath:function(){return function a(b,c,d=!0,e=[]){let g;if(d)g=b[1][c];else{let a=b[1];g=a.children??Object.values(a)[0]}if(!g)return e;let h=f(g[0]);return!h||h.startsWith(k)?e:(e.push(h),a(g,c,!1,e))}},isGroupSegment:function(){return g},isParallelRouteSegment:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});function f(a){return Array.isArray(a)?a[1]:a}function g(a){return"("===a[0]&&a.endsWith(")")}function h(a){return a.startsWith("@")&&"@children"!==a}function i(a,b){if(a.includes(k)){let a=JSON.stringify(b);return"{}"!==a?k+"?"+a:k}return a}function j(a,b){if(!a||0===a.length)return null;let c="children"===b?a[0]:a[a.length-1];return c===l?null:c}let k="__PAGE__",l="__DEFAULT__",m="/_not-found"},79808,a=>{"use strict";let b=(0,a.i(70106).default)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]);a.s(["Wrench",()=>b],79808)},39761,a=>{"use strict";let b=(0,a.i(70106).default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);a.s(["BarChart3",()=>b],39761)},65994,a=>{"use strict";var b=a.i(87924),c=a.i(38246),d=a.i(50944),e=a.i(70106);let f=(0,e.default)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),g=(0,e.default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]),h=(0,e.default)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]),i=(0,e.default)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]),j=(0,e.default)("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]),k=(0,e.default)("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);var l=a.i(79808);let m=(0,e.default)("recycle",[["path",{d:"M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5",key:"x6z5xu"}],["path",{d:"M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12",key:"1x4zh5"}],["path",{d:"m14 16-3 3 3 3",key:"f6jyew"}],["path",{d:"M8.293 13.596 7.196 9.5 3.1 10.598",key:"wf1obh"}],["path",{d:"m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843",key:"9tzpgr"}],["path",{d:"m13.378 9.633 4.096 1.098 1.097-4.096",key:"1oe83g"}]]),n=[{title:"设备",items:[{path:"/devices",label:"设备列表",icon:f},{path:"/models",label:"设备型号管理",icon:g},{path:"/boards",label:"板卡型号管理",icon:i}]},{title:"授权",items:[{path:"/licenses",label:"授权管理",icon:h}]},{title:"配置",items:[{path:"/config-files",label:"配置管理",icon:j}]},{title:"校准",items:[{path:"/calibration",label:"校准记录",icon:k}]},{title:"维修",items:[{path:"/repair",label:"维修工单",icon:l.Wrench},{path:"/scrap",label:"报废回收",icon:m}]}];function o(){let a=(0,d.usePathname)(),e=b=>"/"===b?"/"===a:a===b||a.startsWith(b+"/");return(0,b.jsxs)("aside",{className:"w-[200px] h-screen flex-shrink-0 overflow-y-auto",style:{backgroundColor:"#fff",borderRight:"1px solid #e8e8e8"},children:[(0,b.jsx)("div",{className:"px-4 py-4",style:{borderBottom:"1px solid #f0f0f0"},children:(0,b.jsx)("div",{className:"text-lg font-semibold",style:{color:"#4a7c59"},children:"Geomative"})}),(0,b.jsx)(c.default,{href:"/",className:"flex items-center gap-2 px-4 py-3 text-sm transition-colors",style:{color:e("/")?"#4a7c59":"rgba(0,0,0,0.65)",backgroundColor:e("/")?"#eef5f0":"transparent",borderLeft:e("/")?"3px solid #4a7c59":"3px solid transparent",fontWeight:e("/")?600:400},children:"首页"}),n.map(a=>(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"px-4 py-2.5 text-xs font-semibold uppercase tracking-wider",style:{color:"rgba(0,0,0,0.35)"},children:a.title}),a.items.map(a=>{let d=a.icon;return(0,b.jsxs)(c.default,{href:a.path,className:"flex items-center gap-2 px-4 py-2 text-sm transition-colors",style:{color:e(a.path)?"#4a7c59":"rgba(0,0,0,0.65)",backgroundColor:e(a.path)?"#eef5f0":"transparent",borderLeft:e(a.path)?"3px solid #4a7c59":"3px solid transparent",fontWeight:e(a.path)?600:400},children:[(0,b.jsx)(d,{size:16,style:{color:e(a.path)?"#4a7c59":"rgba(0,0,0,0.35)"}}),a.label]},a.path)})]},a.title))]})}a.s(["Sidebar",()=>o],65994)},12456,a=>{"use strict";var b=a.i(87924),c=a.i(38246),d=a.i(72131),e=a.i(39761);let f=(0,a.i(70106).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),g=[{path:"/users",label:"用户管理"},{path:"/roles",label:"角色权限"},{path:"/logs",label:"操作日志"},{path:"/settings",label:"系统设置"}];function h(){let[a,h]=(0,d.useState)(!1),i=(0,d.useRef)(null);return(0,d.useEffect)(()=>{let a=a=>{i.current&&!i.current.contains(a.target)&&h(!1)};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[]),(0,b.jsxs)("header",{className:"h-14 flex items-center justify-between px-6 flex-shrink-0",style:{backgroundColor:"#fff",borderBottom:"1px solid #e8e8e8"},children:[(0,b.jsx)("div",{className:"flex items-center gap-2",children:(0,b.jsx)("h1",{className:"text-base font-semibold",style:{color:"#1a1a1a"},children:"地空业务支撑平台——生产管理子系统"})}),(0,b.jsxs)("div",{className:"flex items-center gap-4",children:[(0,b.jsx)(c.default,{href:"/reports",className:"text-gray-500 hover:text-gray-900 transition-colors",title:"数据统计",children:(0,b.jsx)(e.BarChart3,{size:18})}),(0,b.jsx)(c.default,{href:"/cost-reports",className:"text-gray-500 hover:text-gray-900 transition-colors",title:"运营报告",children:(0,b.jsx)(f,{size:18})}),(0,b.jsx)("div",{className:"w-px h-5 bg-gray-200"}),(0,b.jsxs)("div",{ref:i,className:"relative",children:[(0,b.jsxs)("button",{onClick:()=>h(!a),className:"flex items-center gap-2 cursor-pointer",children:[(0,b.jsx)("span",{className:"text-sm",style:{color:"#1a1a1a"},children:"Super Admin"}),(0,b.jsx)("span",{className:"px-2 py-0.5 rounded text-xs text-white",style:{backgroundColor:"#4a7c59"},children:"管理员"})]}),a&&(0,b.jsxs)("div",{className:"absolute right-0 top-10 w-36 rounded shadow-lg py-1 z-50",style:{backgroundColor:"#fff",border:"1px solid #e8e8e8"},children:[g.map(a=>(0,b.jsx)(c.default,{href:a.path,onClick:()=>h(!1),className:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 transition-colors",children:a.label},a.path)),(0,b.jsx)("div",{style:{borderTop:"1px solid #F0F0F0"}}),(0,b.jsx)("button",{className:"block w-full text-left px-4 py-2 text-sm",style:{color:"#FF4D4F"},children:"退出"})]})]})]})]})}a.s(["Header",()=>h],12456)}];
//# sourceMappingURL=%5Broot-of-the-server%5D__5905f731._.js.map