1define(function () { 2 return { 3 getPagingParam() { 4 return algoliaConfig.routing.pagingParameter; 5 }, 6 getSortingParam() { 7 return algoliaConfig.routing.sortingParameter; 8 }, 9 getCategoryParam() { 10 return algoliaConfig.routing.categoryParameter; 11 }, 12 getPriceSeparator() { 13 return algoliaConfig.routing.priceRouteSeparator; 14 }, 15 getPriceParamValue(currentFacetAttribute, routeParameters) { 16 // Guard against prototype pollution 17 if (Object.hasOwn(Object.prototype, currentFacetAttribute)) { 18 return ''; 19 } 20 21 // eslint-disable-next-line security/detect-object-injection 22 return routeParameters[currentFacetAttribute]; 23 }, 24 getSortingValueFromUiState(uiStateProductIndex) { 25 return uiStateProductIndex.sortBy; 26 }, 27 getSortingFromRoute(routeParameters) { 28 return routeParameters.sortBy; 29 } 30 } 31});
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.