(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,970065,e=>{"use strict";var r=e.i(843476),s=e.i(647163);e.s(["Card",0,function({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"card",className:(0,s.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})},"CardContent",0,function({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,s.cn)("px-6",e),...t})},"CardDescription",0,function({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"card-description",className:(0,s.cn)("text-muted-foreground text-sm",e),...t})},"CardHeader",0,function({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"card-header",className:(0,s.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})},"CardTitle",0,function({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"card-title",className:(0,s.cn)("leading-none font-semibold",e),...t})}])},491310,e=>{"use strict";var r=e.i(843476),s=e.i(522016),t=e.i(970065),a=e.i(167881);e.s(["default",0,function(){return(0,r.jsxs)("div",{className:"flex-1 space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-3xl font-bold text-foreground",children:"Purchase & Receiving"}),(0,r.jsx)("p",{className:"mt-2 text-muted-foreground",children:"Manage work orders, receiving, invoices, and supplier payments"})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[{title:"Purchase Work Orders",description:"Create supplier work orders, track receiving, and generate invoices",href:"/purchases/work-orders",code:"WO"},{title:"Purchase Invoices",description:"Create and manage purchase invoices from suppliers",href:"/purchases/invoices",code:"PI"},{title:"Supplier Payments",description:"Record and track payments to suppliers",href:"/purchases/payments",code:"SP"},{title:"Cost Allocation",description:"Allocate transport and other costs to purchases",href:"#",code:"CA",comingSoon:!0}].map(e=>(0,r.jsxs)(t.Card,{className:"border-border bg-card transition-colors hover:border-primary/50",children:[(0,r.jsx)(t.CardHeader,{children:(0,r.jsxs)("div",{className:"flex items-start justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(t.CardTitle,{className:"text-foreground",children:e.title}),(0,r.jsx)(t.CardDescription,{className:"mt-1 text-muted-foreground",children:e.description})]}),(0,r.jsx)("span",{className:"font-mono text-sm text-muted-foreground",children:e.code})]})}),(0,r.jsx)(t.CardContent,{children:e.comingSoon?(0,r.jsx)(a.Button,{disabled:!0,className:"w-full opacity-50",children:"Coming Soon"}):(0,r.jsx)(s.default,{href:e.href,children:(0,r.jsxs)(a.Button,{className:"w-full bg-primary text-primary-foreground hover:bg-primary/90",children:["Access",(0,r.jsx)("svg",{className:"ml-2 h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})})})]},e.title))})]})}])}]);