import{j as e,d as a,aR as b,T as i,bB as f,aS as y,aQ as C}from"./index-CK33qGU_.js";import{a as F}from"./storage-connector-BuEuJyVA.js";import{s as l,S as c}from"./sort-BOLIcXtz.js";import{F as r,K as t}from"./useFeatureFilters-b9dUmI_5.js";const D={"name (A -> Z)":["name",l.string,c.asc],"name (Z -> A)":["name",l.string,c.desc]},S=({search:h,onSearchChange:x,typeFilters:m,onTypeFiltersChange:p,types:d,onToggleKey:n,keyFilter:s,storageConnectorType:u,enableStorageConnectorFilter:j,setStorageConnectorType:o,sortKey:g,setSortKey:v})=>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(b,{width:"120px",variant:"white",value:h,icon:i.glass,placeholder:"Find feature",onChange:x}),e.jsx(f,{height:"32px",maxWidth:"180px",width:"max-content",variant:"white",isMulti:!0,value:m,options:d,placeholder:"type",onChange:p,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(y,{value:u||null,options:Object.values(F),onChange:w=>o(w),flexDirection:"row",mr:"10px"})}):null,e.jsx(C,{width:"max-content",variant:"white",value:g,ml:"auto",options:Object.keys(D),label:"sort by",labelPosition:"inline",onChange:v})]})});export{S as F,D as s};
