1import { 2 init_esm, 3 useMatches 4} from "/build/_shared/chunk-46RNFGVL.js"; 5import { 6 __toESM, 7 init_react, 8 require_react 9} from "/build/_shared/chunk-BNRLY3XL.js"; 10 11// app/useMatchesData.ts 12init_react(); 13init_esm(); 14var import_react2 = __toESM(require_react()); 15function useMatchesData(id, nestedRoute) { 16 var _a, _b, _c, _d, _e, _f, _g, _h, _i; 17 const matchingRoutes = useMatches(); 18 const route = (0, import_react2.useMemo)(() => matchingRoutes.find((route2) => route2.pathname === id), [matchingRoutes, id]); 19 if (nestedRoute && (route == null ? void 0 : route.data) && ((_a = route == null ? void 0 : route.data) == null ? void 0 : _a.static)) { 20 const staticData = (_c = (_b = route == null ? void 0 : route.data) == null ? void 0 : _b.static) == null ? void 0 : _c.filter((item) => item.id === nestedRoute); 21 return { 22 filterData: (_d = route == null ? void 0 : route.data) == null ? void 0 : _d.filterData, 23 mainFilterData: (_e = route == null ? void 0 : route.data) == null ? void 0 : _e.mainFilterData, 24 tagsList: (_f = route == null ? void 0 : route.data) == null ? void 0 : _f.tagsList, 25 authors: (_g = route == null ? void 0 : route.data) == null ? void 0 : _g.authors, 26 defaultValuesMainForm: (_h = route == null ? void 0 : route.data) == null ? void 0 : _h.defaultValuesMainForm, 27 item: staticData[0] ? staticData[0] : { 28 id: "", 29 title: "", 30 subtitle: "", 31 isLandingPage: false, 32 hasPageIntro: false, 33 hasLogo: false, 34 body: "" 35 }, 36 themeSession: route == null ? void 0 : route.data.themeSession, 37 links: route == null ? void 0 : route.data.links, 38 gdprConsent: (_i = route == null ? void 0 : route.data) == null ? void 0 : _i.gdprConsent 39 }; 40 } 41 return route == null ? void 0 : route.data; 42} 43 44export { 45 useMatchesData 46}; 47//# sourceMappingURL=/build/_shared/chunk-UHQDUM2S.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.