import{j as e,B as i,aM as f,Z as a,c0 as y,bn as C,bm as b}from"./index-dP1W1_bd.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-H7_GmsAw.js";const D={"name (A -> Z)":["name",l.string,c.asc],"name (Z -> A)":["name",l.string,c.desc]},k=({search:h,onSearchChange:m,typeFilters:p,onTypeFiltersChange:x,types:d,onToggleKey:n,keyFilter:s,storageConnectorType:u,enableStorageConnectorFilter:j,setStorageConnectorType:o,sortKey:g,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(f,{width:"120px",variant:"white",value:h,icon:a.glass,placeholder:"Find feature",onChange:m}),e.jsx(y,{height:"32px",maxWidth:"180px",width:"max-content",variant:"white",isMulti:!0,value:p,options:d,placeholder:"type",onChange:x,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"})]}),j&&o?e.jsx(i,{ml:"20px",alignItems:"center",children:e.jsx(C,{value:u||null,options:Object.values(F),onChange:v=>o(v),flexDirection:"row",mr:"10px"})}):null,e.jsx(b,{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};
