import{_ as p,c as g,o as k,i as w,w as o,v as h,g as f,b as e,d as s,e as r,F as l,k as a}from"./index-QAlcqU00.js";import{u as b}from"./parts-imZSnlsl.js";import{F as x,a as y}from"./FPPageHeader-CFIwZZgQ.js";import{F as M}from"./FPStats-DOY0PQQF.js";import"./FPCard-AB6NRXg5.js";const C={class:"p-6"},B={class:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8"},j={class:"bg-white rounded-lg shadow-sm border border-gray-200 p-6 hover:shadow-md transition-shadow"},P={class:"bg-white rounded-lg shadow-sm border border-gray-200 p-6 hover:shadow-md transition-shadow"},S={class:"bg-white rounded-lg shadow-sm border border-gray-200 p-6 hover:shadow-md transition-shadow"},z={__name:"InventoryView",setup(_){const i=h(),d=b(),v=g(()=>{const n=d.inventoryStats;return n?[{name:"Total Parts",value:n.totalParts,subtitle:"Active parts in inventory",icon:{template:''},iconBg:"bg-blue-100",iconColor:"text-blue-600",change:0},{name:"Low Stock",value:n.lowStockParts,subtitle:"Parts below minimum",icon:{template:''},iconBg:"bg-red-100",iconColor:"text-red-600",change:0},{name:"Total Value",value:`$${(n.totalValue/1e3).toFixed(1)}K`,subtitle:"Inventory value",icon:{template:''},iconBg:"bg-green-100",iconColor:"text-green-600",change:0},{name:"Suppliers",value:n.totalSuppliers,subtitle:"Active suppliers",icon:{template:''},iconBg:"bg-yellow-100",iconColor:"text-yellow-600",change:0}]:[]}),c=()=>{i.push("/inventory/parts")},u=()=>{i.push("/inventory/stock-alerts")},m=()=>{i.push("/inventory/transfers")};return k(async()=>{await d.initializeParts()}),(n,t)=>(f(),w(x,null,{header:o(()=>[s(y,{title:"Inventory Management",description:"Manage parts, supplies, and spare equipment inventory",breadcrumbs:[{text:"Inventory",to:null}]},{actions:o(()=>[s(r(l),{variant:"outline",size:"sm",onClick:u},{default:o(()=>t[0]||(t[0]=[e("svg",{class:"w-4 h-4 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.728-.833-2.498 0L4.316 16.5c-.77.833.192 2.5 1.732 2.5z"})],-1),a(" Stock Alerts ",-1)])),_:1,__:[0]}),s(r(l),{variant:"outline",size:"sm",onClick:m},{default:o(()=>t[1]||(t[1]=[e("svg",{class:"w-4 h-4 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})],-1),a(" Transfers ",-1)])),_:1,__:[1]}),s(r(l),{variant:"primary",size:"sm",onClick:c},{default:o(()=>t[2]||(t[2]=[e("svg",{class:"w-4 h-4 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"})],-1),a(" Manage Parts ",-1)])),_:1,__:[2]})]),stats:o(()=>[s(r(M),{stats:v.value},null,8,["stats"])]),_:1})]),default:o(()=>[e("div",C,[e("div",B,[e("div",j,[t[4]||(t[4]=e("div",{class:"flex items-center justify-between mb-4"},[e("div",{class:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center"},[e("svg",{class:"w-6 h-6 text-blue-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"})])])],-1)),t[5]||(t[5]=e("h3",{class:"text-lg font-semibold text-gray-900 mb-2"},"Parts Management",-1)),t[6]||(t[6]=e("p",{class:"text-gray-600 mb-4"},"Manage parts catalog, stock levels, and inventory tracking",-1)),s(r(l),{variant:"primary",class:"w-full",onClick:c},{default:o(()=>t[3]||(t[3]=[e("svg",{class:"w-4 h-4 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 7l5 5m0 0l-5 5m5-5H6"})],-1),a(" Manage Parts ",-1)])),_:1,__:[3]})]),e("div",P,[t[8]||(t[8]=e("div",{class:"flex items-center justify-between mb-4"},[e("div",{class:"w-12 h-12 bg-red-100 rounded-lg flex items-center justify-center"},[e("svg",{class:"w-6 h-6 text-red-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.728-.833-2.498 0L4.316 16.5c-.77.833.192 2.5 1.732 2.5z"})])])],-1)),t[9]||(t[9]=e("h3",{class:"text-lg font-semibold text-gray-900 mb-2"},"Stock Alerts",-1)),t[10]||(t[10]=e("p",{class:"text-gray-600 mb-4"},"Monitor low stock, out of stock, and critical inventory alerts",-1)),s(r(l),{variant:"primary",class:"w-full",onClick:u},{default:o(()=>t[7]||(t[7]=[e("svg",{class:"w-4 h-4 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 7l5 5m0 0l-5 5m5-5H6"})],-1),a(" View Alerts ",-1)])),_:1,__:[7]})]),e("div",S,[t[12]||(t[12]=e("div",{class:"flex items-center justify-between mb-4"},[e("div",{class:"w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center"},[e("svg",{class:"w-6 h-6 text-green-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})])])],-1)),t[13]||(t[13]=e("h3",{class:"text-lg font-semibold text-gray-900 mb-2"},"Inventory Transfers",-1)),t[14]||(t[14]=e("p",{class:"text-gray-600 mb-4"},"Manage transfers between locations and track shipments",-1)),s(r(l),{variant:"primary",class:"w-full",onClick:m},{default:o(()=>t[11]||(t[11]=[e("svg",{class:"w-4 h-4 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 7l5 5m0 0l-5 5m5-5H6"})],-1),a(" Manage Transfers ",-1)])),_:1,__:[11]})])]),t[15]||(t[15]=e("div",{class:"bg-blue-50 rounded-lg p-6"},[e("div",{class:"flex items-start"},[e("div",{class:"flex-shrink-0"},[e("svg",{class:"w-6 h-6 text-blue-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])]),e("div",{class:"ml-3"},[e("h3",{class:"text-sm font-medium text-blue-900"},"Enhanced Inventory Management"),e("div",{class:"mt-2 text-sm text-blue-700"},[e("p",null,"The inventory system now includes comprehensive stock management features:"),e("ul",{class:"mt-2 list-disc list-inside space-y-1"},[e("li",null,"Real-time stock alerts with severity levels"),e("li",null,"Inter-location inventory transfers"),e("li",null,"Automated reorder point calculations"),e("li",null,"Comprehensive inventory analytics")])])])])],-1))])]),_:1}))}},T=p(z,[["__scopeId","data-v-e5001f6f"]]);export{T as default};