"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("react");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(e);function u(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 o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){n.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}exports.useAssetFiltersHandlers=function(e){return{handlePadStatusChange:t.useCallback((function(t){e((function(e){return o(o({},e),{},{padStatus:null==t?void 0:t.id})}))}),[e]),handleTvdMinChange:t.useCallback((function(t){e((function(e){return o(o({},e),{},{tvdMin:""===t?void 0:Number(t)})}))}),[e]),handleTvdMaxChange:t.useCallback((function(t){e((function(e){return o(o({},e),{},{tvdMax:""===t?void 0:Number(t)})}))}),[e]),handleFracFleetsSelect:t.useCallback((function(t){var r=t.map((function(e){return e.id.toString()}));e((function(e){return o(o({},e),{},{selectedFracFleets:r})}))}),[e]),handleFormationsSelect:t.useCallback((function(t){var r=t.map((function(e){return e.id.toString()}));e((function(e){return o(o({},e),{},{selectedFormations:r})}))}),[e])}};
//# sourceMappingURL=useAssetFiltersHandlers.js.map
