Show shop picker? option - I need to edit the query for the results

I need to find where the query is in the Frame/Grid Market theme so I can edit the query and filter the results that are shown in the shops to choose from.
Can you point me to which file in the theme/child theme this function is in?