import{a as t}from"./rolldown-runtime-C_ttsnZz.js";import{i as a,m as s}from"./sdks-Iaiwpgkq.js";import{St as o}from"./index-BT8Vuu3B.js";var e={all:()=>["locations"],list:t=>[...e.all(),t]},n=t(o(),1);function r({lat:t,lng:o}){const{client:r}=a(),i={lat:t||NaN,lng:o||NaN},{isLoading:l,data:u}=s({queryKey:e.list(i),queryFn:async()=>r.getLocation(i),enabled:!!i});return{isLoading:l,data:(0,n.useMemo)(()=>"united states"===u?.country?.toLowerCase()?{country:"USA",state:u.state}:{country:"CAN",state:u?.state||""},[u])}}export{r as t};
//# sourceMappingURL=useLocation-BHTOjWYB.js.map