1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17386],{97012:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/module/assets/categories",function(){return t(64349)}])},64349:function(e,n,t){"use strict";t.r(n);var i=t(85893),l=t(67294),s=t(77443),a=t(80957),r=t(61548),c=t(75069),u=t(59876),o=t(88329),d=t(63162),f=t(9008),h=t.n(f),x=t(83461);let _=()=>{let{client:e}=(0,c.C)(e=>e.apiData.favourite);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h(),{children:(0,i.jsx)("title",{children:"Admin | Asset Categories"})}),(0,i.jsx)(a.Z,{p:0,children:(0,i.jsx)(o.k,{w:"full",direction:"column",children:(0,i.jsx)(r.Z,{additionalActions:[p],defaultHiddenColumns:["order"],apiRoot:"client/".concat(e,"/categoryAsset"),allowCreate:!0})})})]})};_.getLayout=function(e){return(0,i.jsx)(s.Z,{children:e})},n.default=_;let p=e=>{let n=(0,l.useRef)(null),[t,s]=(0,l.useState)([]),{clients:a,suppliers:r}=(0,c.C)(e=>e.apiData),{rows:o,selectedRows:f}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.CSVLink,{ref:n,data:t,asyncOnClick:!0,onClick:()=>{},filename:"Export.csv"}),(0,i.jsx)(d.s,{icon:(0,i.jsx)(u._8,{fill:"gray"}),onClick:async()=>{var e,t;console.clear();let i=[];f.map(e=>{let n={},t=o.find(n=>n.values.id===e);if(!t)return!1;let l=t.values;n.id=l.id,n.name=l.name,i.push(n)}),await s(i),null==n||null===(t=n.current)||void 0===t||null===(e=t.link)||void 0===e||e.click()},isDisabled:0===f.length,children:"CSV Export"})]})}}},function(e){e.O(0,[19440,76660,5970,73768,78845,47665,74232,40123,60509,23219,15443,44321,41664,27606,133,92575,79679,92888,49774,40179],function(){return e(e.s=97012)}),_N_E=e.O()}]); 2//# sourceMappingURL=categories-f7d00d9fca6b6cb2.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.