import{j as e,$ as i,b2 as b,C as a,c3 as C,be as y,gZ as f,bd as F}from"./index-46ma1THH.js";import{s as l,S as c}from"./sort-BOLIcXtz.js";import{F as r,K as t}from"./useFeatureFilters-DTSd2vm9.js";const D={"name (A -> Z)":["name",l.string,c.asc],"name (Z -> A)":["name",l.string,c.desc]},Z=({search:h,onSearchChange:x,typeFilters:p,onTypeFiltersChange:m,types:d,onToggleKey:n,keyFilter:s,storageConnectorType:u,enableStorageConnectorFilter:g,setStorageConnectorType:o,sortKey:j,setSortKey:w})=>e.jsx(i,{width:"100%",flexDirection:"column",alignItems:"center",children:e.jsxs(i,{width:"100%",sx:{gap:"8px"},children:[e.jsxs(i,{sx:{gap:"8px"},children:[e.jsx(b,{width:"120px",variant:"white",value:h,icon:a.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(i,{sx:{gap:"8px",mt:"-2px"},children:[e.jsx(r,{white:!0,icon:a.primary,checked:s===t.primary,onChange:n(t.primary),children:"Primary Keys"}),e.jsx(r,{white:!0,icon:a.partition,checked:s===t.partition,onChange:n(t.partition),children:"Partition Keys"}),e.jsx(r,{white:!0,icon:a.time,checked:s===t.eventTime,onChange:n(t.eventTime),children:"Event Time"})]}),g&&o?e.jsx(i,{ml:"20px",alignItems:"center",children:e.jsx(y,{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:j,ml:"auto",options:Object.keys(D),label:"sort by",labelPosition:"inline",onChange:w})]})});export{Z as F,D as s};
