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-DGaD2i6Y.js";import{c as h}from"./settings-services-CMNk-eHJ.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};
