"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("@babel/runtime/helpers/defineProperty"));function l(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),l.push.apply(l,r)}return l}function r(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?l(Object(n),!0).forEach((function(l){t.default(e,l,n[l])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}exports.applyPartitionToOffsetSettings=function(e,t){return r(r({},e),{},{idasWellIds:t.idasWellIds,owsWellIds:t.owsWellIds,wellhubWellIds:t.wellhubWellIds,handpickedWellIds:t.handpickedWellIds,manualWellIds:t.handpickedWellIds})},exports.partitionSelectedWellIds=function(e){var t=e.selectedWellIds,l=e.subjectWellId,r=e.idasWellIds,n=e.owsWellIds,s=e.wellhubWellIds,d=new Set(t),o=new Set,i=function(e){var t=[];return e.forEach((function(e){e!==l&&d.has(e)&&!o.has(e)&&(o.add(e),t.push(e))})),t};return{idasWellIds:i(r),owsWellIds:i(n),wellhubWellIds:i(s),handpickedWellIds:t.filter((function(e){return e!==l&&!o.has(e)}))}};
//# sourceMappingURL=partitionSelectedWellIds.js.map
