import{jsxs as e,jsx as t}from"react/jsx-runtime";import{memo as l}from"react";import{TextInput as a}from"../../TextInput/TextInput.js";import{Autocomplete as n}from"../../Autocomplete/Autocomplete.js";import{useOptions as o}from"./useOptions.js";import{useAssetFiltersHandlers as s}from"./useAssetFiltersHandlers.js";import r from"./AssetFilters.scss.js";var i=l((function(l){var i=l.pads,d=l.selectedPadId,m=l.filters,p=l.setFilters,c=o(i,d),u=c.fracFleetOptions,h=c.formationOptions,v=c.padOptions,f=s(p),b=f.handlePadStatusChange,F=f.handleTvdMinChange,C=f.handleTvdMaxChange,g=f.handleFracFleetsSelect,A=f.handleFormationsSelect;return e("div",{className:r.filters,children:[t("div",{children:t(n,{clearable:!1,className:r.autocomplete,label:"Pad",value:m.padStatus,onChange:b,options:v})}),t("div",{children:t(n,{clearable:!1,className:r.autocomplete,label:"Frac Fleet",value:m.selectedFracFleets,onChange:g,useAllOption:!0,dropdownClassName:r.dropdown,multiple:!0,options:u.map((function(e){return{id:e.value,title:e.label}}))})}),t("div",{children:t(n,{clearable:!1,className:r.autocomplete,useAllOption:!0,label:"Formation",value:m.selectedFormations,onChange:A,multiple:!0,dropdownClassName:r.dropdown,options:h.map((function(e){return{id:e.value,title:e.label}}))})}),t("div",{children:t(a,{className:r.input,label:"TVD (Min)",placeholder:"0",type:"number",htmlAttributes:{min:0},value:m.tvdMin,onChange:F})}),t("div",{children:t(a,{className:r.input,label:"TVD (Max)",placeholder:"10000",type:"number",htmlAttributes:{min:0},value:m.tvdMax,onChange:C})})]})}));export{i as default};
//# sourceMappingURL=AssetFilters.js.map
