"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../../utils/doesWellPassFilters.js");exports.useFilterPruneEffect=function(r){var i=r.filterMutationSeq,l=r.lastFilterMutationSource,n=r.open,s=r.filters,u=r.includeHidden,c=r.subjectWellId,o=r.setSelectedWells,f=r.setCurrentSelectionZone,a=r.hasUserSelectionEditsRef,d=e.useRef(i);e.useEffect((function(){d.current!==i&&(d.current=i,n&&s&&"manual_ui"===l&&o((function(e){var r=e.filter((function(e){return e.id===c||t.doesWellPassVisibilityAndFilters(e,s,u)}));return r.length===e.length?e:(a.current=!0,f(null),r)})))}),[i,l,n,s,u,c,o,f,a])};
//# sourceMappingURL=useFilterPruneEffect.js.map
