1import{a as l,b as d,c,F as g,j as r,P as u}from"./componentLoader.jsx-2026.10.01-3d77ab87.js";import"./logger-3e1e3eff.js";import{u as y}from"./useAxios-1f749f5b.js";import{f}from"./universe.js-2026.10.01-3d77ab87.js";import{C as h}from"./Card-493c490c.js";import{P as b}from"./ProgressBar-117c3054.js";import{W as _}from"./WidgetHeader-652b3942.js";import{c as e}from"./commonReportColumns-cc3d5b88.js";import{T}from"./TableWithEmpty-4c7d74d6.js";import{D as v}from"./constants-9e5fc5e0.js";import"./vendor-21ae10b1.js";import"./brand-387037d2.js";import"./index-213dd4d3.js";import"./index-b6a278bc.js";import"./Button-daed7707.js";import"./Title-9de200f3.js";import"./Tooltip-9af70d1f.js";import"./index-e642497c.js";import"./Cross-eb4df075.js";import"./ExternalLink-e1ff08bc.js";import"./index-2506ba77.js";import"./Link-bec2c870.js";import"./TableCell-bc13db52.js";import"./TableHeader-146e1398.js";import"./Text-db1ebb07.js";import"./StatusDot-969459df.js";import"./dates-d2ad9abb.js";import"./CurrencyField-7dd4444c.js";import"./TextField-9054bcd3.js";import"./CurrencyLabel-7f777d48.js";import"./customerside.js-2026.10.01-3d77ab87.js";import"./toNumber-8f88376b.js";import"./isSymbol-34885b27.js";import"./Table-78d06123.js";import"./EmptyState-cc61b9d7.js";P.propTypes={onRemove:u.func};function P({onRemove:m=()=>null}){const i=l(),n=d(),a=f(new Date,v),[{data:s,loading:p,error:k}]=y({url:"/",params:{widget:"inventoryReport"}});return c(g,{children:[r(_,{title:i.widgets.inventory_summary,onRemove:m,externalUrl:n.checkReportPermission("daily_list")?"/booking/list/":""}),r(h.Section,{className:"widget-card--section widget-card--section__fixed-height",children:r(T,{isLoading:p,emptyState:"There is no inventory data",emptyStateImage:"inventory.png",hidePagination:!0,defaultPageSize:300,size:"sm",data:s?s.data:[],columns:[e({label:i.item,accessor:"item",Cell:({value:o,original:{item_id:t}})=>r("a",{href:`/booking/daily/?date=${a}&item_id=${t}`,children:r("strong",{children:o})})}),e({label:i.inventoryConsumed,accessor:"bookings",Cell:({value:o,original:{stock:t}})=>r(b,{progress:o/t*100,color:"blue",className:"inventory-summary-progressbar"})}),e({label:"Qty",accessor:"bookings",Cell:({value:o,original:{item_id:t}})=>r("a",{href:`/booking/daily/?date=${a}&item_id=${t}`,children:r("strong",{children:o})})})],sortable:!0})})]})}export{P as default};
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.