1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2690],{27284:(e,a,t)=>{t.r(a),t.d(a,{default:()=>v});var s=t(7267),r=t(72387),i=t(2784),c=t(85731),o=t(94497),n=t(57938);const d="Items";var l=t(82066),m=t(6777),h=t(5667),u=t(3107),g=t(32234);const{cortexApiUrl:C}=u.config,p=`${C}/items`,w=async e=>{const a=await(e=>(0,g.hj)(g.HT,p,void 0,{params:e}))(e);return(0,h.mo)(a)},f=[{accessor:"id",Header:"Id",width:120},{accessor:"name",Header:"Name",minWidth:200,width:300},{accessor:"url",Header:"Url",minWidth:200,width:300,Cell:n.Zx},{accessor:"imageUrl",Header:"Image",width:140,Cell:n.OC,resizable:!1,format:n.Z2.TEXT_CENTERED},{accessor:"quantity",Header:"Quantity",format:n.Z2.DECIMAL,width:150},{accessor:"lastPrice",Header:"Last Price",format:n.Z2.CURRENCY,width:150},{accessor:"price",Header:"Current Price",format:n.Z2.CURRENCY,width:150},{accessor:"active",Header:"Active",minWidth:80,width:80,format:n.Z2.BOOLEAN},{accessor:"parent",Header:"Parent",minWidth:80,width:80,format:n.Z2.BOOLEAN},{accessor:"createdAt",Header:"Created At",format:n.Z2.SHORT_DATE,width:150}];var H=t(52322);const j=20,x=()=>{const[e,a]=(0,i.useState)({page:1,per:j}),{data:{data:t,meta:{totalCount:s}}={data:[],meta:{totalCount:j}},isLoading:r,isFetching:h}=((e,a={})=>(0,l.useQuery)(["get-items",e],(()=>
1w(e)),Object.assign({},m.MY,{enabled:!!e},a)))(e),u=r||h,g=(0,i.useCallback)((({filterValue:e,page:t})=>{a((a=>Object.assign({},a,{page:t,q:e})))}),[a]);return(0,H.jsxs)(c.Xg.Content,{children:[(0,H.jsx)(o.Z,{title:d}),(0,H.jsx)(c.V1,{title:d}),(0,H.jsx)(n.ZP,{showPaginationBottom:!0,manual:!0,sortable:!1,onFetchData:g,columns:f,searchColumn:"name",isLoading:u,rows:t,pageSize:j,page:e.page,total:s})]})};var E=t(54274),Z=t(99800),k=t(77963);const v=()=>(0,H.jsx)(r.S,{navigateBackName:d,navigateBackUrl:E.T,children:(0,H.jsxs)(s.rs,{children:[(0,H.jsx)(k.k,{isAccessBlocked:Z.Ox,path:E.T,component:x}),(0,H.jsx)(s.l_,{to:"/"})]})})}}]);
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.