import{j as e,a,aH as y,d as i,c4 as C,be as b,h6 as f,bd as F}from"./index-_eM6l4Nf.js";import{s as l,S as c}from"./sort-BOLIcXtz.js";import{F as r,K as t}from"./useFeatureFilters-DHl2jdlW.js";const D={"name (A -> Z)":["name",l.string,c.asc],"name (Z -> A)":["name",l.string,c.desc]},K=({search:h,onSearchChange:x,typeFilters:p,onTypeFiltersChange:m,types:d,onToggleKey:n,keyFilter:s,storageConnectorType:u,enableStorageConnectorFilter:j,setStorageConnectorType:o,sortKey:g,setSortKey:w})=>e.jsx(a,{width:"100%",flexDirection:"column",alignItems:"center",children:e.jsxs(a,{width:"100%",sx:{gap:"8px"},children:[e.jsxs(a,{sx:{gap:"8px"},children:[e.jsx(y,{width:"120px",variant:"white",value:h,icon:i.glass,placeholder:"Find feature",onChange:x}),e.jsx(C,{height:"32px",maxWidth:"180px",width:"max-content",variant:"white",isMulti:!0,value:p,options:d,placeholder:"type",onChange:m,noDataMessage:"type all"})]}),e.jsxs(a,{sx:{gap:"8px",mt:"-2px"},children:[e.jsx(r,{white:!0,icon:i.primary,checked:s===t.primary,onChange:n(t.primary),children:"Primary Keys"}),e.jsx(r,{white:!0,icon:i.partition,checked:s===t.partition,onChange:n(t.partition),children:"Partition Keys"}),e.jsx(r,{white:!0,icon:i.time,checked:s===t.eventTime,onChange:n(t.eventTime),children:"Event Time"})]}),j&&o?e.jsx(a,{ml:"20px",alignItems:"center",children:e.jsx(b,{value:u||null,options:Object.values(f),onChange:v=>o(v),flexDirection:"row",mr:"10px"})}):null,e.jsx(F,{width:"max-content",variant:"white",value:g,ml:"auto",options:Object.keys(D),label:"sort by",labelPosition:"inline",onChange:w})]})});export{K as F,D as s};
