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