var p=(r,e,o)=>new Promise((a,n)=>{var v=t=>{try{s(o.next(t))}catch(i){n(i)}},x=t=>{try{s(o.throw(t))}catch(i){n(i)}},s=t=>t.done?a(t.value):Promise.resolve(t.value).then(v,x);s((o=o.apply(r,e)).next())});import m from"axios";import{createContext as u,useMemo as b}from"react";import{jsx as A}from"react/jsx-runtime";var w=u(void 0),c="production";var d=c==="development"?"https://qa-api-v2.bandit.network/sdk":"https://api-v2.bandit.network/sdk";var N=r=>p(void 0,null,function*(){try{return(yield m.get(`${d}/users/survey?limit=10`,{headers:{"X-API-KEY":r}})).data}catch(e){throw e}}),B=(r,e,o,a)=>p(void 0,null,function*(){try{return(yield m.post(`${d}/users/${e}/survey`,{id:o,rating:a},{headers:{"X-API-KEY":r}})).data}catch(n){throw n}});export{N as getSurvey,B as submitSurvey};
