System.register(["./rolldown-runtime-legacy-Djb2rrqm.js","./sdks-legacy-C6EUhykB.js","./index-legacy-Bbj6l0yZ.js"],function(t,n){var e,a,l,o,s,i;return t("t",function({lat:t,lng:n}){const{client:e}=a(),o={lat:t||NaN,lng:n||NaN},{isLoading:u,data:r}=l({queryKey:s.list(o),queryFn:async()=>e.getLocation(o),enabled:!!o});return{isLoading:u,data:(0,i.useMemo)(()=>{var t;return"united states"===(null==r||null===(t=r.country)||void 0===t?void 0:t.toLowerCase())?{country:"USA",state:r.state}:{country:"CAN",state:(null==r?void 0:r.state)||""}},[r])}}),{setters:[function(t){e=t.a},function(t){a=t.i,l=t.m},function(t){o=t.St}],execute:function(){s={all:()=>["locations"],list:t=>[...s.all(),t]},i=e(o(),1)}}});
//# sourceMappingURL=useLocation-legacy-CgI1vp8g.js.map