1import{aP as o,aQ as n,aH as d}from"./index-CpeGhXo5.js";const u=[{id:"SYS-1425",title:"Assets Purchase Dashboard item 1",owner:"Sara Joshi",vendor:"Flipkart",value:377e3,date:"2026-05-21",status:"Active",category:"Laptop",brand:"Dell",model:"Latitude 5440",reason:"New Employee Onboarding",expectedDelivery:"2026-05-25",quantity:5,invoiceNumber:"INV-2026-001",poNumber:"PO-4455",paymentStatus:"Paid",paymentMethod:"Bank Transfer",notes:"Urgent delivery required",serialNumbers:["LAP-2026-001","LAP-2026-002"],history:[{user:"Sara Joshi",action:"Created",details:"assets purchase dashboard #1025",time:"48m ago",timestamp:Date.now()-48*6e4}]},{id:"SYS-1426",title:"Assets Purchase Dashboard item 2",owner:"Aarav Patel",vendor:"Paytm",value:392e3,date:"2026-05-18",status:"Completed",category:"Monitor",brand:"Dell",model:"U2723QE",reason:"Expansion Requirement",expectedDelivery:"2026-05-20",quantity:10,invoiceNumber:"INV-2026-002",poNumber:"PO-4456",paymentStatus:"Paid",paymentMethod:"Credit Card",notes:"Monitors for new wing",serialNumbers:["MON-2026-001"],history:[{user:"Aarav Patel",action:"Updated",details:"assets purchase dashboard #1026",time:"1h ago",timestamp:Date.now()-60*6e4}]},{id:"SYS-1427",title:"Assets Purchase Dashboard item 3",owner:"Meera Nair",vendor:"BYJU'S",value:486e3,date:"2026-05-15",status:"Pending",category:"Server",brand:"HP",model:"ProLiant DL380",reason:"Upgrade Requirement",expectedDelivery:"2026-06-01",quantity:2,invoiceNumber:"INV-2026-003",poNumber:"PO-4457",paymentStatus:"Pending",paymentMethod:"Net 30",notes:"Server upgrade",serialNumbers:["SRV-2026-001"],history:[{user:"Meera Nair",action:"Commented on",details:"assets purchase dashboard #1027",time:"1h ago",timestamp:Date.now()-65*6e4}]},{id:"SYS-1428",title:"Assets Purchase Dashboard item 4",owner:"Vikram Singh",vendor:"Ola",value:421e3,date:"2026-05-12",status:"Draft",category:"Mobile",brand:"Apple",model:"iPhone 15 Pro",reason:"Replacement of Damaged Device",expectedDelivery:"2026-05-16",quantity:3,invoiceNumber:"INV-2026-004",poNumber:"PO-4458",paymentStatus:"Partial",paymentMethod:"Corporate Card",notes:"Sales team replacements",serialNumbers:[],history:[{user:"Vikram Singh",action:"Approved",details:"assets purchase dashboard #1028",time:"2h ago",timestamp:Date.now()-120*6e4}]}],m=o()(n((t,s)=>({purchases:[],addPurchase:a=>t(e=>({purchases:[a,...e.purchases]})),updatePurchase:(a,e)=>t(r=>({purchases:r.purchases.map(i=>i.id===a?e:i)})),deletePurchase:a=>t(e=>({purchases:e.purchases.filter(r=>r.id!==a)})),fetchPurchases:async()=>{try{const a=await d.get("/sysadmin/purchases"),e=Array.isArray(a.data)?a.data:[];t({purchases:e})}catch{const e=s().purchases;(!e||e.length===0)&&t({purchases:u})}},getPurchase:a=>s().purchases.find(e=>e.id===a)}),{name:"purchase-store"}));export{m as u};
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.