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