import{ag as n,z as c,x as r,y as o}from"./main-crazy-owls-work.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,e){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,e),e)}};function g(){const{data:t,isLoading:e}=n({queryFn:()=>c("pro_plugin-improvement",void 0,void 0,"GET"),queryKey:["tracking"]});return{isTrackingLoading:e,tracking:t==null?void 0:t.data}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,e){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,e),e)}};function h(){const t=r(),{isPending:e,mutateAsync:s}=o({mutationFn:i=>c("pro_plugin-improvement",{allowTracking:i},void 0,"POST"),mutationKey:["update-tracking"],onSuccess:i=>{var a;i.status==="success"&&t.setQueryData(["tracking"],{data:{allowTracking:(a=i==null?void 0:i.data)==null?void 0:a.allowTracking}})}});return{isUpdatingTracking:e,updateTracking:s}}export{h as a,g as u};
