Looking for the query for the shop picker in the Frame Grid Theme

In the Frame/Grid Market theme which file in the theme/child theme has the query that that the shop picker results are based on?
I want to filter the results.