import{j as r,S as i,H as a}from"./vendor-ClLR6ncd.js";import{D as c}from"./DirtySearchInput-D-NMdA6o.js";import{b as o}from"./highlightSearch-BTHB3jgf.js";import{B as u}from"./Box-Co2WcNPC.js";function l({initRowsLength:t}){const{rows:e}=o()||{},s=e?e.length:t;return r.jsxs(u,{children:["(",s," rows)"]})}function x({searchInput:t,setSearchInput:e,initRowsLength:s}){return r.jsxs(i,{direction:"row",spacing:2,alignItems:"center",children:[r.jsx(c,{label:"Filter rows",searchInput:t,setSearchInput:e}),r.jsx(l,{initRowsLength:s})]})}const f=()=>{};function g({resetTableState:t}){const{table:e}=o()||{},s=e?e.reset:f,n=()=>{t(),s()};return r.jsx(a,{onClick:n,children:"Reset view"})}function j(t,e,s){const n=t.getValue(e).value;return n?n.toLowerCase().includes(s.toLowerCase()):!1}function b(t,e,s){const n=t.getValue(e);return n?n.toString().toLowerCase().includes(s.toLowerCase()):!1}export{g as R,x as S,j as a,b as c};
