var v=Object.create;var a=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var y=(t,e)=>{for(var o in e)a(t,o,{get:e[o],enumerable:!0})},d=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of x(e))!h.call(t,r)&&r!==o&&a(t,r,{get:()=>e[r],enumerable:!(n=m(e,r))||n.enumerable});return t};var P=(t,e,o)=>(o=t!=null?v(u(t)):{},d(e||!t||!t.__esModule?a(o,"default",{value:t,enumerable:!0}):o,t)),l=t=>d(a({},"__esModule",{value:!0}),t);var A={};y(A,{getSurvey:()=>w,submitSurvey:()=>k});module.exports=l(A);var p=P(require("axios"),1);var s=require("react"),b=require("react/jsx-runtime"),S=(0,s.createContext)(void 0),c="production";var i=c==="development"?"https://qa-api-v2.bandit.network/sdk":"https://api-v2.bandit.network/sdk";var w=async t=>{try{return(await p.default.get(`${i}/users/survey?limit=10`,{headers:{"X-API-KEY":t}})).data}catch(e){throw e}},k=async(t,e,o,n)=>{try{return(await p.default.post(`${i}/users/${e}/survey`,{id:o,rating:n},{headers:{"X-API-KEY":t}})).data}catch(r){throw r}};0&&(module.exports={getSurvey,submitSurvey});
