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