import{u as y}from"./Chip-4IhPI0f3.js";var l=function(r,o){var i={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&o.indexOf(e)<0&&(i[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(r);n<e.length;n++)o.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(r,e[n])&&(i[e[n]]=r[e[n]]);return i},h=function(r){var o=r.reference,i=r.id,e=r.options,n=e===void 0?{}:e,f=n.meta,c=l(n,["meta"]),t=y(o,{ids:[i],meta:f},c),a=t.data,d=t.error,s=t.isLoading,u=t.isFetching,g=t.isPending,p=t.refetch;return{referenceRecord:d?void 0:a?a[0]:void 0,refetch:p,error:d,isLoading:s,isFetching:u,isPending:g}};export{h as u};
