var e=t=>({method:"POST",headers:{accept:"application/json","content-type":t?.contentType||"application/json","Api-Key":t.apiKey},body:JSON.stringify(t.data)}),i={getDefaults:({shop:t,apiKey:a})=>fetch("https://quotes.medicalsurgical.com.au/api/defaults/",e({data:{shop:t},apiKey:a})),saveQuote:({quote:t,apiKey:a})=>fetch("https://quotes.medicalsurgical.com.au/api/savequote/",e({data:{quote:t},apiKey:a})),savePriceMatch:({pricematch:t,apiKey:a})=>fetch("https://quotes.medicalsurgical.com.au/api/savepricematch/",{method:"POST",headers:{"Api-Key":a},body:t}),uploadImage:({image:t,shop:a,nonce:o})=>fetch(`https://quotes.medicalsurgical.com.au/scripts/uploadfile.php?s=${a}&p=${o}`,{method:"POST",body:t})};export{i as a};