"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("../../stores/filter-store/useFilterStore.js");exports.useDrillingFilterResetEffect=function(t){var u=r.useFilterStore((function(e){var r;return null===(r=e.filters.drillingWells)||void 0===r||r})),n=t.enabled,i=t.store,s=t.queueRef,l=t.clearCache,c=t.clearTiles,o=t.handleBoundsChangeRef,f=e.useRef(void 0);e.useEffect((function(){if(void 0!==f.current&&n){if(f.current!==u){l(),c(),s.current.pending=[],f.current=u;var e=i.getState().bounds;e&&o.current(e)}}else f.current=u}),[u,n,i,l,c,s,o])};
//# sourceMappingURL=useDrillingFilterResetEffect.js.map
