var u=(s,o,t)=>new Promise((a,r)=>{var y=e=>{try{n(t.next(e))}catch(m){r(m)}},d=e=>{try{n(t.throw(e))}catch(m){r(m)}},n=e=>e.done?a(e.value):Promise.resolve(e.value).then(y,d);n((t=t.apply(s,o)).next())});import{u as i}from"./useQuery-tXf2Qa8J.js";import{c as h}from"./settings-services-C1WB00Jx.js";const g=()=>{const{isPending:s,data:o,isError:t,error:a}=i({queryKey:["getPaymentMethods"],queryFn:()=>u(null,null,function*(){const r=yield h();if(r.status==200)return r.data.payment_methods;throw new Error("Error fetching")})});return{isPending:s,payment_methods:o,isError:t,error:a}};export{g as u};
