File tree Expand file tree Collapse file tree
lxl-web/src/routes/(app)/[[lang=lang]] Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 import addDefaultSearchParams from ' $lib/utils/addDefaultSearchParams' ;
55 import getSortedSearchParams from ' $lib/utils/getSortedSearchParams' ;
66 import { displayMappingToString } from ' $lib/utils/displayMappingToString' ;
7-
7+ import { getCookieConsentContext } from ' $lib/contexts/cookieConsent ' ;
88 let cursor: number | null = $state (null );
99
10+ const cookieConsentContext = getCookieConsentContext ();
1011 const isHomeRoute = $derived (page .route .id === ' /(app)/[[lang=lang]]' );
1112
1213 const ariaLabelledBy = $derived (isHomeRoute ? ' page-title' : undefined );
1617 ? ` ${page .data .t (' header.searchSubsetPlaceholder' )}: ${displayMappingToString (page .data .subsetMapping )} `
1718 : page .data .t (' header.searchPlaceholder' )
1819 );
19- const autofocus = $derived (isHomeRoute ? true : undefined );
20+ const autofocus = $derived (isHomeRoute && ! cookieConsentContext . visibleModal ? true : undefined );
2021
2122 const pageParams = $derived .by (() => {
2223 let p = getSortedSearchParams (addDefaultSearchParams (page .url .searchParams ));
You can’t perform that action at this time.
0 commit comments