import{a as f}from"./chunk-EY555SK2.js";import{b as o}from"./chunk-KC6VWGIB.js";import{g as s,i as c}from"./chunk-IRFDE6LX.js";import{useEffect as p}from"react";var U=(t,e,a)=>{let{setUserDiceData:r}=o();p(()=>{a&&t&&e&&(async()=>{let m=await f(new URL(c(t,e)),{credentials:"include",useCache:!1,parseToken:!1}),i=await fetch(`${s(t,e)}/diceuserconfig/v1/get`,{headers:{Authorization:`Bearer ${m}`}});if(i.ok){let{data:D}=await i.json();r(a,D)}})()},[e,t,r,a])};export{U as a}; //# sourceMappingURL=chunk-UKGLT346.js.map