import e from"@babel/runtime/helpers/defineProperty";import{useCallback as t}from"react";function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var o=function(e){return{handlePadStatusChange:t((function(t){e((function(e){return n(n({},e),{},{padStatus:null==t?void 0:t.id})}))}),[e]),handleTvdMinChange:t((function(t){e((function(e){return n(n({},e),{},{tvdMin:""===t?void 0:Number(t)})}))}),[e]),handleTvdMaxChange:t((function(t){e((function(e){return n(n({},e),{},{tvdMax:""===t?void 0:Number(t)})}))}),[e]),handleFracFleetsSelect:t((function(t){var r=t.map((function(e){return e.id.toString()}));e((function(e){return n(n({},e),{},{selectedFracFleets:r})}))}),[e]),handleFormationsSelect:t((function(t){var r=t.map((function(e){return e.id.toString()}));e((function(e){return n(n({},e),{},{selectedFormations:r})}))}),[e])}};export{o as useAssetFiltersHandlers};
//# sourceMappingURL=useAssetFiltersHandlers.js.map
