System.register(["./sdks-legacy-C6EUhykB.js"],function(e,t){var n,l,i;return e("t",function({lat:e,lng:t,geogId:s,include:u,radius:c=2e3,buffer:r=0,limit:a=30,attemptMinimum:o,includeCatchments:d=!1}){var m;const{client:g}=n(),f={include:u,limit:a,attemptMinimum:o,include_catchments:d};return s?(f.geogId=s,f.buffer=r):(f.lat=e,f.lng=t,f.radius=c),l({queryKey:i.list(f),queryFn:async()=>g.getSchools(f),staleTime:1/0,enabled:!!(f&&null!==(m=f.include)&&void 0!==m&&m.length&&(s||f.lat&&f.lng))})}),{setters:[function(e){n=e.i,l=e.m}],execute:function(){e("n",e=>e.charAt(0).toUpperCase()+e.slice(1)),e("r",({houseNumber:e,street:t,city:n,state:l,country:i,postalCode:s})=>[`${e?e&&t?`${e} `:`${e}`:""}${t||""}`,n,l,i,s].reduceRight((e,t)=>e&&t?`${t}, ${e}`:t||e||"")||""),i={all:()=>["schools"],list:e=>[...i.all(),e]}}}});
//# sourceMappingURL=useSchools-legacy-Bvw9h_9Q.js.map