import{bu as i,bv as s}from"./Spacing.module-72784ec1.js";const r={async postApplication(t,a,o,e){const n={method:"POST",body:JSON.stringify(t),signal:e,headers:{"Content-Type":"application/json",...l()}},p=await i(`/api/n2/o2-application/${a}/${o}/application`,n);return await s(p,"O2Service.PostApplication",n),await p.text()},async status(t,a,o){const e=a?`/${a}`:"",n=await i(`/api/n2/o2-application/status/${t}${e}`,{method:"GET",signal:o,headers:{"Content-Type":"application/json"}});return await s(n,"O2Service.Status"),n.status==200?await n.json():null},async userTaskComplete(t,a,o){const e=await i(`/api/n2/o2-application/user-task-complete/${t}`,{method:"POST",body:JSON.stringify(a),signal:o,headers:{"Content-Type":"application/json"}});await s(e,"O2Service.UserTaskComplete")},async submitConsents(t,a,o,e){const n=await i(`/api/n2/o2-application/consent/${t}/${a}`,{method:"PUT",body:JSON.stringify(o),signal:e,headers:{"Content-Type":"application/json"}});await s(n,"O2Service.SubmitConsents")},async uploadDocuments(t,a,o,e,n){const p=`/api/n2/o2-application/upload-documents/${t}/${a}/${o}`,c=await i(p,{method:"POST",body:e,signal:n});return await s(c,"O2Service.UploadDocuments"),await c.json()},async deleteDocument(t,a,o,e){const n=await i(`/api/n2/o2-application/delete-document/${t}/${a}/${o}`,{method:"DELETE",signal:e,headers:{"Content-Type":"application/json"}});await s(n,"O2Service.DeleteDocument")},async lookupBankName(t,a,o){const e=await i(`/api/n2/o2-application/payoutbank/${t}/${a}`,{method:"GET",signal:o,headers:{"Content-Type":"application/json"}});return await s(e,"O2Service.LookupBankName"),e.status==200?await e.json():null},async getSetPinUrl(t,a,o,e){const n=await i(`/api/n2/o2-application/set-pin-url/${t}/${a}/${o}`,{method:"GET",signal:e,headers:{"Content-Type":"application/json"}});return await s(n,"O2Service.GetSetPinUrl"),n.status==200?await n.text():null}},d=r;function l(){const t=localStorage.getItem("Scenario");return t?{Scenario:t}:void 0}export{d as o};
//# sourceMappingURL=index-8402748a.js.map
