import{j as e}from"./index-B1H8BCL7.js";import{r as t,s as o,t as r,f as a}from"./stockApi-D1nxeMJU.js";import{M as s}from"./MasterCrudPage-CDZ3AmII.js";import"./Add-DvXlrcIU.js";import"./EditOutlined-DJ1zS7Rv.js";import"./DeleteOutline-DENqzAfR.js";import"./Search-B5Qac1u3.js";import"./snackbarUtils-DGP0fyXd.js";import"./DialogBox-CKrZZv0I.js";import"./Close-CR51dqFW.js";import"./Stack-BIAbaqpj.js";import"./useThemeProps-DL_l3A7P.js";import"./InputAdornment-BMBVR6Ec.js";import"./TableContainer-CXAjhAg6.js";import"./TableRow-BfKE_xn9.js";import"./TableCell-D8CotAsC.js";import"./Grid-CTEl0Elf.js";const i=[{key:"code",header:"Code",width:100},{key:"name",header:"Name"},{key:"baseUomCode",header:"Base UOM",width:120},{key:"conversionFactor",header:"Factor",width:110,align:"right"}],m=[{key:"code",label:"Code",required:!0,helperText:"Short code e.g. NOS, ML, BOX"},{key:"name",label:"Name",required:!0,fullWidth:!0},{key:"baseUomCode",label:"Base UOM Code",helperText:"Optional: target unit for conversion"},{key:"conversionFactor",label:"Conversion Factor",type:"number",helperText:"How many base-units per 1 of this UOM"}],d={code:"",name:"",baseUomCode:"",conversionFactor:1,active:!0},g=()=>e.jsx(s,{title:"Units of Measure",subtitle:"Org-scoped catalog. NOS / ML / GM / KG / LITRE / BOX / KIT / PACK / VIAL come pre-seeded.",hooks:{useList:a,useCreate:r,useUpdate:o,useDeactivate:t},columns:i,formFields:m,defaultRow:d,searchKeys:["code","name"]});export{g as default};
