import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import o from"@babel/runtime/helpers/slicedToArray";import{omit as t}from"lodash";var n=["selectionMode","polygonCoords"];function i(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),o.push.apply(o,t)}return o}function l(r){for(var o=1;o<arguments.length;o++){var t=null!=arguments[o]?arguments[o]:{};o%2?i(Object(t),!0).forEach((function(o){e(r,o,t[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}var s=function(e){if(null!=e){var i,s=Object.fromEntries(Object.entries(e).filter((function(e){return null!==o(e,2)[1]}))),c=t(s,"hasUserConfirmedAllCompaniesLoadAll"),p=c.selectionMode,b=c.polygonCoords,f=r(c,n);return"lasso"!==p||(i=b,Boolean(i&&i.length>=3))?l(l(l({},f),void 0!==p&&{selectionMode:p}),void 0!==b&&{polygonCoords:b}):l(l({},f),{},{selectionMode:"radius"},void 0!==b&&{polygonCoords:b})}};export{s as normalizeFilters};
//# sourceMappingURL=normalizeFilters.js.map
