PageSourceSearch

https://cdn.shef.com/assets/AdminAllOrders-fc9b216f.js

js shef.com collected 2026-09-24 18:13:33 UTC 2,000 bytes, 2 lines download raw bytes

1import{r as o,f as a,j as s}from"./vendor-4b5ffb89.js";import{u3 as g}from"./index-196c1c55.js";import{P as x}from"./styles-9ce22615.js";import"./Checkbox-4fb3639c.js";import"./PrinterDocument-ba6642fe.js";import{A as j}from"./AdminOrderTable-838dc4c1.js";import{A as q}from"./AdminPageHeader-cf326efc.js";import"./Table-f80e5ca2.js";import"./Pagination-d2c09275.js";import{G as A}from"./GqlQueryWrapper-f40991e7.js";import{Q as O}from"./QuerySearch-c53629b1.js";import"./Card-a4e9c2d1.js";import"./ExpandableSection-ea200fbb.js";import"./generateAllLabelData-1c9b2aba.js";import"./CustomizationUtils-336bd3fe.js";import"./Utilities-03516389.js";import"./util-b5207cf1.js";import"./index-c475fece.js";import"./Page-33027195.js";import"./index-2eee9758.js";import"./ownerDocument-6e6538f1.js";import"./warning-a5baaab0.js";import"./index-aa59607d.js";import"./FoodUtils-731edcf3.js";import"./DietaryIcons-97e3f800.js";import"./Tabs-af341c61.js";import"./TimeWindowUtils-38921e34.js";import"./NetworkingError-7cc924ec.js";const Z=({match:d,history:m,location:e})=>{const i=o.useMemo(()=>{const r=a.parse(e.search);return typeof r.query=="string"?r.query:""},[e.search]),[t,n]=o.useState(i),{loading:u,error:l,data:p,refetch:c}=g({variables:{search:i}}),{groupOrders:h,pagination:f}=p&&p.adminGroupOrders||{orders:[],pagination:void 0},y=o.useCallback(()=>{const r=a.parse(e.search);t?r.query=t:delete r.query,m.replace({pathname:e.pathname,search:a.stringify(r)})},[t,m,e.pathname,e.search]);return s.jsxs("div",{className:"admin-orders",children:[s.jsx(q,{header:"Orders",subHeader:"All Orders"}),s.jsx(x,{children:s.jsx(O,{placeholder:"Shef ID, Customer ID, GoID, Order ID, customer first or last name, or phone",query:t,onQueryPressed:y,onQueryChanged:n})}),s.jsx(A,{loading:u,error:l,errorMessage:"Failed to load orders",children:s.jsx(j,{match:d,orders:h,pagination:f,requestPage:r=>c({page:r})})})]})};export{Z as AdminAllOrders,Z as default};
2//# sourceMappingURL=AdminAllOrders-fc9b216f.js.map

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.