import{aR as s}from"./main-tangy-colts-beg.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};const i=async()=>s("pro_restrict_content_get_all_levels",void 0,void 0,"GET");globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};const c=async e=>{e.setComponent("level-id",t=>{t.loading=!0});const{data:o,status:a}=await i();if(a==="error"){e.setComponent("level-id",t=>{e.util.isSelectComponent(t)&&(t.status=a,t.loading=!1,t.invalidMessage=o)}),console.error("Failed to fetch level");return}e.setComponent("level-id",t=>{e.util.isSelectComponent(t)&&(t.options=o,t.loading=!1,t.status=void 0)})};export{c as f};
