import{K as n}from"./vendor-CmAScyG3.js";import{b as s}from"./page-index.tsx-D0oEuWOa.js";import"./page-FortuneWheel.ts-CaqHFvhq.js";import{a as i}from"./page-FortuneWheelWinModalContent.tsx-DESnY6qd.js";import{u as t}from"./page-fortuneWheel.ts-BU2wXqek.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="5a5df0d6-1e89-4fd6-a42f-c8de22cac3ee",e._sentryDebugIdIdentifier="sentry-dbid-5a5df0d6-1e89-4fd6-a42f-c8de22cac3ee")}catch{}const l=()=>{const e=t(r=>r.setSectionList),o=t(r=>r.setError);return n({queryKey:["fortuneWheel","config"],queryFn:async()=>{const r=await s.get(i.config.api.fortuneWheel.config);if(!r||!Array.isArray(r.sections))throw o("config_failed"),new Error("Invalid fortune wheel config payload");return e(r),r},staleTime:5*6e4,gcTime:30*6e4,refetchOnWindowFocus:!1,retry:2})};export{l as u};
//# sourceMappingURL=page-useConfigWheel.tsx-CttGGJtP.js.map