"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useOneOfLocationIdx=void 0;const react_router_dom_1=require("react-router-dom"),react_1=require("react"),OneOfLocationRegex=/(?=oneof=)/g;function useOneOfLocationIdx(e,o){const t=(0,react_router_dom_1.useLocation)();return(0,react_1.useMemo)((()=>e.findIndex(((e,r)=>{var n;return null===(n=t.hash.split(OneOfLocationRegex)[o])||void 0===n?void 0:n.includes(`oneof=${r}`)}))),[o,t.hash,e])}exports.useOneOfLocationIdx=useOneOfLocationIdx;
//# sourceMappingURL=useOneOfLocationIdx.js.map